{"version":3,"file":"chunk.570.fc42a3181740477e0cc4.js","names":["Object","defineProperty","exports","value","target","all","name","enumerable","get","getOwnPropertyDescriptor","NodeList","_default","this","n","_proto","prototype","last","len","length","has","flush","pop","undefined","push","ref","COLUMN_ID","END_POS_ID","LINE_ID","START_POS_ID","TYPE_ATTR_NAME","TYPE_ATTR_VALUE","TYPE_ID","TYPE_NEW_LINE","TYPE_SPACE","TYPE_TAG","TYPE_WORD","Token","VALUE_ID","_pluginhelper","require","getTokenValue","token","isTagEnd","charCodeAt","SLASH","type","row","col","start","end","String","protoProps","isEmpty","isNaN","isText","isTag","isAttrName","isAttrValue","isStart","isEnd","getName","slice","getValue","getLine","getColumn","getStart","getEnd","toString","param","_ref","_ref_openTag","openTag","OPEN_BRAKET","_ref_closeTag","closeTag","CLOSE_BRAKET","text","key","props","i","descriptor","configurable","writable","_defineProperties","TagNode","_parse","default","obj","__esModule","_interop_require_default","_export_star","from","to","keys","forEach","k","hasOwnProperty","call","createLexer","createTokenOfType","_Token","_utils","r","cl","p","e","isWhiteSpace","char","SPACE","TAB","isEscapeChar","BACKSLASH","unq","val","unquote","trimChar","QUOTEMARK","buffer","options","prevCol","tokenIndex","stateMode","tagMode","contextFreeTag","tokens","Array","Math","floor","escapeTags","enableEscapeTags","contextFreeTags","filter","Boolean","map","tag","toLowerCase","caseFreeTags","nestedMap","Map","onToken","RESERVED_CHARS_SET","Set","EQ","N","isCharToken","onSkip","setupContextFreeTag","isClosingTag","tagName","isTokenNested","includes","toEndTag","chars","createCharGrabber","emitToken","startPos","endPos","nextTagState","tagChars","isSingleValueTag","masterStartPos","grabWhile","isLast","isValue","getCurr","skip","stateSpecial","name1","isQM","prevChar","getPrev","nextChar","getNext","isPrevSLASH","isNextEQ","isWS","isNextWS","getPos","name2","getLength","stateTag","currChar","isNextCharReserved","substr","substrUntilChar","hasInvalidChars","indexOf","isLastChar","isSpaceRestricted","whitespaceInTags","isNoAttrsInTag","stateAttrs","tagStr","tagGrabber","split","isEndTag","isSingleAttrTag","hasNext","stateWord","word","fullTagName","grabN","word1","word2","lowercaseBuffer","tokenValue","status","set","tokenize","parse","_lexer","_NodeList","createList","input","opts","onlyAllowTags","tokenizer","nodes","nestedNodes","activeTagNode","activeTagNodesAttrName","nestedTagsMap","isTagNested","activeTagNodeFlush","getNodesContent","lastNestedNode","isTagNode","content","nodesAppendAsString","node","isNested","isArray","toTagStart","item","toTagEnd","nodesAppend","toTagNode","lexer","createTokenizer","tagNode","create","add","setEnd","onError","line","column","lineNumber","columnNumber","attr","append","CharGrabber","source","s","pos","num","silent","getRest","substring","nextPos","prevPos","condition","idx","str","charToRemove","replace","_char","_helpers","_extends","assign","arguments","apply","attrs","appendToNode","setStart","params","uniqAttr","getUniqAttr","tagAttr","attrValue","attrsToString","reduce","tagStart","toJSON","isOf","getNodeLength","F","R","escapeAttrValue","escapeHTML","isEOL","isStringNode","_type_of","Symbol","constructor","el","keysReduce","def","acc","count","contentNode","CONTROL_CHARS_RE","JSON","stringify","values","arr","concat","join","res","WAITERS","symbolName","symbol","for","global","globalThis","self","window","Error","waiters","register","waiter","unregister","delete","getWaiters","result","_reset","isRegistered","clear","getPendingWaiterState","pending","waitUntil","debugInfo","hasPendingWaiters","WAITER_NAMES","_resetWaiterNames","NoopTestWaiter","beginAsync","endAsync","reset","buildWaiter","waitForPromise","promise","label","waitFor","args","fn","fns","async","waitForFetch","fetchPromise","response","Proxy","prop","receiver","maybeProp","some","original","Reflect","maybeFn","sides","alignments","placements","side","min","max","round","createCoords","v","x","y","oppositeSideMap","left","right","bottom","top","clamp","evaluate","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","getSideAxis","firstChar","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","mainAlignmentSide","reference","floating","getOppositePlacement","getOppositeAlignmentPlacement","lrPlacement","rlPlacement","tbPlacement","btPlacement","getPaddingObject","padding","_padding$top","_padding$right","_padding$bottom","_padding$left","rectToClientRect","rect","width","height","computeCoordsFromPlacement","sideAxis","alignLength","isVertical","commonX","commonY","commonAlign","coords","detectOverflow","state","_await$platform$isEle","platform","elements","strategy","boundary","rootBoundary","elementContext","altBoundary","paddingObject","element","clippingClientRect","getClippingRect","isElement","contextElement","getDocumentElement","offsetParent","getOffsetParent","offsetScale","getScale","elementClientRect","convertOffsetParentRelativeRectToViewportRelativeRect","getSideOffsets","overflow","isAnySideFullyClipped","getBoundingRect","minX","minY","originSides","hasWindow","getNodeName","isNode","nodeName","getWindow","_node$ownerDocument","ownerDocument","defaultView","document","documentElement","Node","Element","isHTMLElement","HTMLElement","isShadowRoot","ShadowRoot","isOverflowElement","overflowX","overflowY","display","getComputedStyle","test","isTableElement","isTopLayer","matches","_e","willChangeRe","containRe","isNotNone","isWebKitValue","isContainingBlock","elementOrCss","css","transform","translate","scale","rotate","perspective","isWebKit","backdropFilter","willChange","contain","CSS","supports","isLastTraversableNode","getNodeScroll","scrollLeft","scrollTop","scrollX","scrollY","getParentNode","assignedSlot","parentNode","host","getNearestOverflowAncestor","body","getOverflowAncestors","list","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win","frameElement","getFrameElement","visualViewport","parent","getPrototypeOf","getCssDimensions","getComputedStyle$1","parseFloat","hasOffset","offsetWidth","offsetHeight","shouldFallback","$","unwrapElement","domElement","getBoundingClientRect","Number","isFinite","noOffsets","getVisualOffsets","offsetLeft","offsetTop","includeScale","isFixedStrategy","clientRect","visualOffsets","isFixed","floatingOffsetParent","offsetWin","currentWin","currentIFrame","iframeScale","iframeRect","clientLeft","paddingLeft","clientTop","paddingTop","getWindowScrollBarX","leftScroll","getHTMLOffset","scroll","htmlRect","getClientRectFromClippingAncestor","clippingAncestor","isLayoutViewport","html","clientWidth","clientHeight","layoutRelativeClientCoords","doc","bodyStyles","bodyMarginInline","compatMode","marginLeft","marginRight","reservedWidth","abs","gutter","scrollbarGutter","scrollWidth","scrollHeight","direction","getRectRelativeToOffsetParent","isOffsetParentAnElement","offsets","offsetRect","htmlOffset","isStaticPositioned","position","getTrueOffsetParent","polyfill","rawOffsetParent","svgOffsetParent","currentNode","topLayer","z","clippingAncestors","cache","cachedResult","lastKeptComputedStyle","elementIsFixed","computedStyle","currentNodeIsContaining","lastPosition","ancestor","_c","firstRect","getElementRects","data","getOffsetParentFn","getDimensionsFn","getDimensions","floatingDimensions","getClientRects","B","isRTL","rectsAreEqual","a","b","autoUpdate","update","ancestorScroll","ancestorResize","elementResize","ResizeObserver","layoutShift","IntersectionObserver","animationFrame","referenceEl","ancestors","addEventListener","cleanupIo","onMove","timeoutId","io","root","cleanup","_io","clearTimeout","disconnect","refresh","threshold","elementRectForRootMargin","rootMargin","isFirstUpdate","handleObserve","entries","ratio","intersectionRatio","setTimeout","observe","handleResize","removeEventListener","frameId","reobserveFrame","resizeObserver","firstEntry","unobserve","cancelAnimationFrame","requestAnimationFrame","_resizeObserver","prevRefRect","frameLoop","nextRefRect","_resizeObserver2","detectOverflow$1","offset","_middlewareData$offse","_middlewareData$arrow","middlewareData","diffCoords","mainAxisMulti","crossAxisMulti","rawValue","mainAxis","crossAxis","arrow","alignmentOffset","autoPlacement","_middlewareData$autoP","_middlewareData$autoP2","_placementsThatFitOnE","allowedPlacements","autoAlignment","detectOverflowOptions","placements$1","currentIndex","index","currentPlacement","alignmentSides","currentOverflows","allOverflows","overflows","nextPlacement","placementsSortedByMostSpace","d","sort","resetPlacement","every","shift","checkMainAxis","checkCrossAxis","limiter","mainAxisCoord","crossAxisCoord","clampCoord","coord","limitedCoords","m","enabled","flip","_middlewareData$flip","initialPlacement","fallbackPlacements","specifiedFallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment","initialSideAxis","isBasePlacement","oppositePlacement","hasFallbackAxisSideDirection","overflowsData","_middlewareData$flip2","_overflowsData$filter","nextIndex","_overflowsData$filter2","currentSideAxis","size","isYAxis","heightSide","widthSide","maximumClippingHeight","maximumClippingWidth","overflowAvailableHeight","overflowAvailableWidth","shiftData","noShift","availableHeight","availableWidth","nextDimensions","hide","referenceHiddenOffsets","referenceHidden","escapedOffsets","escaped","arrowDimensions","minProp","maxProp","clientProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","largestPossiblePadding","minPadding","maxPadding","center","shouldAddOffset","centerOffset","inline","nativeClientRects","clientRects","sortedRects","groups","prevRect","fallback","resetRects","find","lastRect","isTop","isLeftSide","maxRight","minLeft","measureRects","limitShift","_rawOffset$mainAxis","_rawOffset$crossAxis","rawOffset","computedOffset","limitMin","limitMax","_middlewareData$offse2","isOriginSide","computePosition","mergedOptions","platformWithCache","config","middleware","platformWithDetectOverflow","statefulPlacement","resetCount","currentMiddleware","nextX","nextY","objectWithKey","FaIconComponent","Component","abstractIcon","children","cur","toHtml","htmlSafe","safeStyle","iconAttributes","style","iconExists","flipHorizontal","flipVertical","classList","classes","spin","pulse","fixedWidth","border","listItem","rotation","pull","title","iconLookup","normalizeIconArgs","icon","prefix","console","warn","mask","o","renderedIcon","abstract","iconName","attributes","dataPrefix","dataIcon","dataFaTransform","dataFaMask","dataFaProcessed","ariaHidden","ariaLabelledBy","viewBox","appConfig","getOwner","resolveRegistration","defaultPrefix","fontawesome","_FaIconComponent","setComponentTemplate","createTemplateFactory","id","block","moduleName","scope","l","isStrictMode","aliases","unicode","svgPathData","definition","faClipboard","ligatures","faCopy","faAngleDown","faAngleLeft","faAngleRight","faAngleUp","faAnglesDown","faAnglesUp","faArrowDown","faArrowDownWideShort","faArrowLeft","faArrowRight","faArrowUp","faArrowUpShortWide","faArrowsRotate","faBackward","faBan","faBars","faBell","faBroom","faCheck","faCircleCheck","faCircleDot","faCircleExclamation","faCircleInfo","faCirclePause","faCircleQuestion","faClock","faClockRotateLeft","faDownload","faEye","faEyeSlash","faFlag","faFlagCheckered","faGear","faGhost","faHandPointer","faHashtag","faHeartCrack","faHeartPulse","faHourglassEnd","faHourglassHalf","faKey","faLocationDot","faLock","faMagnifyingGlass","faMagnifyingGlassMinus","faMagnifyingGlassPlus","faMap","faMinus","faPaperPlane","faPen","faPersonRunning","faPersonWalking","faPlay","faPlug","faPlus","faPowerOff","faRightLeft","faRotateLeft","faRoute","faServer","faShieldHalved","faShoePrints","faShuffle","faSkull","faStairs","faStop","faTerminal","faToggleOn","faTowerBroadcast","faTrash","faTriangleExclamation","faUser","faWater","faXmark","auto","basePlacements","clippingParents","viewport","popper","variationPlacements","beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite","modifierPhases","phase","styles","removeAttribute","setAttribute","effect","_ref2","initialStyles","margin","property","attribute","requires","getBasePlacement","getUAString","uaData","navigator","userAgentData","brands","brand","version","userAgent","scaleX","scaleY","addVisualOffsets","getLayoutRect","contains","child","rootNode","getRootNode","next","isSameNode","isFirefox","getMainAxisFromPlacement","within","mathMax","mathMin","mergePaddingObject","expandToHashMap","hashMap","Z","_state$modifiersData$","arrowElement","popperOffsets","modifiersData","basePlacement","arrowRect","axisProp","_options$element","querySelector","requiresIfExists","getVariation","unsetSides","mapToStyles","_Object$assign2","popperRect","variation","gpuAcceleration","adaptive","roundOffsets","_offsets$x","_offsets$y","_ref3","hasX","hasY","sideX","sideY","heightProp","widthProp","_Object$assign","commonStyles","_ref4","dpr","devicePixelRatio","re","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","passive","se","instance","_options$scroll","_options$resize","resize","scrollParents","scrollParent","hash","matched","getOppositeVariationPlacement","getWindowScroll","pageXOffset","pageYOffset","isScrollParent","_getComputedStyle","getScrollParent","listScrollParents","_element$ownerDocumen","updatedList","getClientRectFromMixedType","clippingParent","layoutViewport","winScroll","computeOffsets","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","_options$altBoundary","_options$padding","altContext","mainClippingParents","clipperElement","firstClippingParent","clippingRect","accRect","referenceClientRect","popperClientRect","overflowOffsets","offsetData","multiply","ye","_skip","_options$mainAxis","_options$altAxis","altAxis","checkAltAxis","_options$flipVariatio","flipVariations","allowedAutoPlacements","preferredPlacement","_options$allowedAutoP","allPlacements","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","mainVariationSide","altVariationSide","checks","check","_loop","_i","fittingPlacement","preventedOffsets","Ee","preventOverflow","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","Se","_options$offset","invertDistance","skidding","distance","_data$state$placement","Te","Pe","_options$tether","tether","_options$tetherOffset","tetherOffset","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_len","_min","_max","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","getCompositeRect","elementOrVirtualElement","offsetParentIsScaled","order","modifiers","visited","modifier","dep","depModifier","DEFAULT_OPTIONS","areValidElements","_key","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","orderedModifiers","effectCleanupFns","isDestroyed","setOptions","setOptionsAction","cleanupModifierEffects","merged","current","existing","_ref$options","cleanupFn","forceUpdate","_state$elements","_state$orderedModifie","_state$orderedModifie2","Promise","resolve","then","destroy","onFirstUpdate","createPopper","eventListeners","computeStyles","applyStyles","elementMap","Data","instanceMap","error","remove","TRANSITION_END","parseSelector","selector","escape","match","toType","object","triggerTransitionEnd","dispatchEvent","Event","jquery","nodeType","getElement","isVisible","elementIsVisible","getPropertyValue","closedDetails","closest","summary","isDisabled","ELEMENT_NODE","disabled","hasAttribute","getAttribute","findShadowRoot","attachShadow","noop","reflow","getjQuery","jQuery","DOMContentLoadedCallbacks","dir","defineJQueryPlugin","plugin","callback","NAME","JQUERY_NO_CONFLICT","jQueryInterface","Constructor","noConflict","readyState","execute","possibleCallback","defaultValue","executeAfterTransition","transitionElement","waitForTransition","emulatedDuration","transitionDuration","transitionDelay","floatTransitionDuration","floatTransitionDelay","called","handler","getNextActiveElement","activeElement","shouldGetNext","isCycleAllowed","listLength","namespaceRegex","stripNameRegex","stripUidRegex","eventRegistry","uidEvent","customEvents","mouseenter","mouseleave","nativeEvents","makeEventUid","uid","getElementEvents","findHandler","events","callable","delegationSelector","event","normalizeParameters","originalTypeEvent","delegationFunction","isDelegated","typeEvent","getTypeEvent","addHandler","oneOff","wrapFunction","relatedTarget","delegateTarget","handlers","previousFunction","domElements","querySelectorAll","hydrateObj","EventHandler","off","removeHandler","removeNamespacedHandlers","namespace","storeElementEvent","handlerKey","on","one","inNamespace","isNamespace","startsWith","elementEvent","keyHandlers","trigger","jQueryEvent","bubbles","nativeDispatch","defaultPrevented","isPropagationStopped","isImmediatePropagationStopped","isDefaultPrevented","evt","cancelable","preventDefault","meta","_unused","normalizeData","decodeURIComponent","normalizeDataKey","chr","Manipulator","setDataAttribute","removeDataAttribute","getDataAttributes","bsKeys","dataset","pureKey","charAt","getDataAttribute","Config","Default","DefaultType","_getConfig","_mergeConfigObj","_configAfterMerge","_typeCheckConfig","jsonConfig","configTypes","expectedTypes","valueType","RegExp","TypeError","toUpperCase","BaseComponent","super","_element","_config","DATA_KEY","dispose","EVENT_KEY","propertyName","getOwnPropertyNames","_queueCallback","isAnimated","getInstance","getOrCreateInstance","VERSION","eventName","getSelector","hrefAttribute","trim","sel","SelectorEngine","findOne","parents","prev","previous","previousElementSibling","nextElementSibling","focusableChildren","focusables","getSelectorFromElement","getElementFromSelector","getMultipleElementsFromSelector","enableDismissTrigger","component","method","clickEvent","EVENT_CLOSE","EVENT_CLOSED","Alert","close","_destroyElement","each","SELECTOR_DATA_TOGGLE","Button","toggle","SELECTOR_DATA_TOGGLE$5","button","EVENT_TOUCHSTART","EVENT_TOUCHMOVE","EVENT_TOUCHEND","EVENT_POINTERDOWN","EVENT_POINTERUP","endCallback","leftCallback","rightCallback","Swipe","isSupported","_deltaX","_supportPointerEvents","PointerEvent","_initEvents","_start","_eventIsPointerPenTouch","clientX","touches","_end","_handleSwipe","_move","absDeltaX","pointerType","maxTouchPoints","DATA_API_KEY","ARROW_LEFT_KEY","ARROW_RIGHT_KEY","ORDER_NEXT","ORDER_PREV","DIRECTION_LEFT","DIRECTION_RIGHT","EVENT_SLIDE","EVENT_SLID","EVENT_KEYDOWN","EVENT_KEY$8","EVENT_MOUSEENTER","EVENT_MOUSELEAVE","EVENT_DRAG_START","EVENT_LOAD_DATA_API","DATA_API_KEY$5","EVENT_CLICK_DATA_API","CLASS_NAME_CAROUSEL","CLASS_NAME_ACTIVE","SELECTOR_ACTIVE","SELECTOR_ITEM","SELECTOR_ACTIVE_ITEM","KEY_TO_DIRECTION","Ut","$t","interval","keyboard","pause","ride","touch","wrap","Carousel","_interval","_activeElement","_isSliding","touchTimeout","_swipeHelper","_indicatorsElement","_addEventListeners","cycle","_slide","nextWhenVisible","hidden","_clearInterval","_updateInterval","setInterval","_maybeEnableCycle","items","_getItems","activeIndex","_getItemIndex","_getActive","defaultInterval","_keydown","_addTouchEventListeners","img","swipeConfig","_directionToOrder","endCallBack","_setActiveIndicatorElement","activeIndicator","newActiveIndicator","elementInterval","parseInt","isNext","nextElement","nextElementIndex","triggerEvent","_orderToDirection","isCycling","directionalClassName","orderClassName","completeCallBack","_isAnimated","clearInterval","carousel","slideIndex","carousels","EVENT_SHOW","EVENT_KEY$7","EVENT_SHOWN","EVENT_HIDE","EVENT_HIDDEN","CLASS_NAME_SHOW","CLASS_NAME_COLLAPSE","CLASS_NAME_COLLAPSING","CLASS_NAME_DEEPER_CHILDREN","Collapse","_isTransitioning","_triggerArray","toggleList","elem","filterElement","foundElement","_initializeChildren","_addAriaAndCollapsedClass","_isShown","show","activeChildren","_getFirstLevelChildren","activeInstance","dimension","_getDimension","scrollSize","complete","selected","triggerArray","isOpen","SELECTOR_DATA_TOGGLE$4","ARROW_UP_KEY","ARROW_DOWN_KEY","EVENT_KEY$6","DATA_API_KEY$3","EVENT_KEYDOWN_DATA_API","EVENT_KEYUP_DATA_API","SELECTOR_DATA_TOGGLE_SHOWN","CLASS_NAME_SHOW$6","SELECTOR_MENU","PLACEMENT_TOP","PLACEMENT_TOPEND","PLACEMENT_BOTTOM","PLACEMENT_BOTTOMEND","PLACEMENT_RIGHT","PLACEMENT_LEFT","autoClose","popperConfig","Dropdown","_popper","_parent","_menu","_inNavbar","_detectNavbar","_createPopper","focus","_completeHide","referenceElement","_getPopperConfig","Popper","_getPlacement","parentDropdown","_getOffset","popperData","defaultBsPopperConfig","_selectMenuItem","clearMenus","openToggles","context","composedPath","isMenuTarget","dataApiKeydownHandler","isInput","isEscapeEvent","isUpOrDownEvent","ARROW_DOWN_KEY$1","getToggleButton","SELECTOR_DATA_TOGGLE$3","stopPropagation","EVENT_MOUSEDOWN","className","clickCallback","rootElement","Backdrop","_isAppended","_append","_getElement","_emulateAnimation","backdrop","createElement","EVENT_FOCUSIN","EVENT_KEY$5","EVENT_KEYDOWN_TAB","TAB_NAV_BACKWARD","autofocus","trapElement","FocusTrap","_isActive","_lastTabNavDirection","activate","_handleFocusin","_handleKeydown","deactivate","shiftKey","SELECTOR_FIXED_CONTENT","SELECTOR_STICKY_CONTENT","PROPERTY_PADDING","PROPERTY_MARGIN","ScrollBarHelper","getWidth","documentWidth","innerWidth","_disableOverFlow","_setElementAttributes","calculatedValue","_resetElementAttributes","isOverflowing","_saveInitialAttribute","styleProperty","scrollbarWidth","_applyManipulationCallback","setProperty","actualValue","removeProperty","callBack","EVENT_KEY$4","EVENT_HIDE_PREVENTED","EVENT_RESIZE","EVENT_CLICK_DISMISS","EVENT_MOUSEDOWN_DISMISS","EVENT_KEYDOWN_DISMISS","CLASS_NAME_OPEN","CLASS_NAME_STATIC","Modal","_dialog","_backdrop","_initializeBackDrop","_focustrap","_initializeFocusTrap","_scrollBar","_adjustDialog","_showElement","_hideModal","handleUpdate","modalBody","transitionComplete","_triggerBackdropTransition","event2","_resetAdjustments","isModalOverflowing","initialOverflowY","isBodyOverflowing","paddingRight","showEvent","alreadyOpen","EVENT_KEY$3","DATA_API_KEY$1","CLASS_NAME_SHOWING","CLASS_NAME_HIDING","OPEN_SELECTOR","Offcanvas","blur","completeCallback","DefaultAllowlist","area","br","code","dd","div","dl","dt","em","hr","h1","h2","h3","h4","h5","h6","li","ol","pre","small","span","sub","sup","strong","u","ul","uriAttributes","SAFE_URL_PATTERN","allowedAttribute","allowedAttributeList","attributeName","nodeValue","attributeRegex","regex","allowList","extraClass","sanitize","sanitizeFn","template","DefaultContentType","entry","TemplateFactory","getContent","_resolvePossibleFunction","hasContent","changeContent","_checkContent","templateWrapper","innerHTML","_maybeSanitize","_setContent","arg","templateElement","_putElementInTemplate","textContent","unsafeHtml","sanitizeFunction","createdDocument","DOMParser","parseFromString","elementName","attributeList","allowedAttributes","DISALLOWED_ATTRIBUTES","CLASS_NAME_FADE","SELECTOR_TOOLTIP_INNER","SELECTOR_MODAL","EVENT_MODAL_HIDE","TRIGGER_HOVER","TRIGGER_FOCUS","TRIGGER_CLICK","AttachmentMap","AUTO","TOP","RIGHT","BOTTOM","LEFT","animation","container","customClass","delay","Tooltip","_isEnabled","_timeout","_isHovered","_activeTrigger","_templateFactory","_newContent","tip","_setListeners","_fixTitle","enable","disable","toggleEnabled","_leave","_enter","_hideModalHandler","_disposePopper","_isWithContent","isInTheDom","_getTipElement","_isWithActiveTrigger","_getTitle","_createTipElement","_getContentForTemplate","_getTemplateFactory","CLASS_NAME_SHOW$2","tipId","random","getElementById","setContent","ai","_initializeOnDelegatedTarget","_getDelegateConfig","CLASS_NAME_FADE$2","attachment","triggers","eventIn","eventOut","_setTimeout","timeout","dataAttributes","dataAttribute","SELECTOR_TITLE","SELECTOR_CONTENT","Popover","_getContent","bi","vi","EVENT_ACTIVATE","EVENT_CLICK","EVENT_KEY$2","SELECTOR_TARGET_LINKS","SELECTOR_NAV_LINKS","SELECTOR_LINK_ITEMS","smoothScroll","ScrollSpy","_targetLinks","_observableSections","_rootElement","_activeTarget","_observer","_previousScrollData","visibleEntryTop","parentScrollTop","_initializeTargetsAndObservables","_maybeEnableSmoothScroll","_getNewObserver","section","observableSection","scrollTo","behavior","_observerCallback","targetElement","_process","userScrollsDown","isIntersecting","_clearActiveClass","entryIsLowerThanPrevious","targetLinks","anchor","decodeURI","_activateParents","CLASS_NAME_ACTIVE$1","listGroup","activeNodes","spy","EVENT_KEY$1","HOME_KEY","END_KEY","SELECTOR_DROPDOWN_TOGGLE","NOT_SELECTOR_DROPDOWN_TOGGLE","SELECTOR_INNER_ELEM","SELECTOR_DATA_TOGGLE_ACTIVE","Tab","_setInitialAttributes","_getChildren","innerElem","_elemIsActive","active","_getActiveElem","hideEvent","EVENT_HIDE$1","_deactivate","_activate","relatedElem","_toggleDropDown","nextActiveElement","preventScroll","_setAttributeIfNotExists","_setInitialAttributesOnChild","_getInnerElement","isActive","outerElem","_getOuterElement","_setInitialAttributesOnTargetPanel","open","EVENT_MOUSEOVER","EVENT_MOUSEOUT","EVENT_FOCUSOUT","CLASS_NAME_HIDE","autohide","Toast","_hasMouseInteraction","_hasKeyboardInteraction","_clearTimeout","_maybeScheduleHide","isShown","_onInteraction","isInteracting","grad","turn","rad","PI","t","pow","g","h","f","c","M","H","string","exec","j","w","S","C","E","parsed","rgba","isValid","brightness","isDark","isLight","toHex","toRgb","toRgbString","toHsl","toHslString","toHsv","invert","saturate","desaturate","grayscale","lighten","darken","hue","alpha","isEqual","O","Colord","colord","extend","getFormat","module","luminance","contrast","isReadable","level","scrollLineHeight","getScrollDeltas","deltaX","deltaY","deltaMode","iframe","src","visibility","appendChild","iframeDocument","contentWindow","firstElementChild","removeChild","getScrollLineHeight","calculateScrollDistribution","accumulator","scrollInformation","scrollLeftMax","scrollTopMax","availableScroll","elementStyle","distributeScroll","scrollInfos","info","BasicDropdownContent","T","transitioningInClass","transitionedInClass","transitioningOutClass","isTouchDevice","dropdown","uniqueId","_classPrivateFieldInitSpec","_contentWormhole","_animationClass","_defineProperty","dropdownContentWormhole","dropdownElement","actions","registerDropdownElement","triggerElement","getTriggerElement","handleRootMouseDown","hasMoved","touchMoveEvent","dropdownIsValidParent","dropdownId","rootEventType","repositionBound","touchStartHandlerBound","scrollableAncestors","nextScrollable","nextParent","addScrollHandling","removeGlobalEvents","removeScrollHandling","reposition","animationEnabled","waitForAnimations","animationClass","parentElement","destinationElement","renderInPlace","clone","cloneNode","mutationObserver","MutationObserver","mutations","shouldReposition","record","containsRelevantMutation","addedNodes","removedNodes","childList","subtree","touchMoveHandler","touchStartHandler","destination","animationEnabledArg","positionStyles","htmlTag","touchMoveHandlerBound","wheelHandler","deltaXNegative","deltaXPositive","deltaYNegative","deltaYPositive","capture","addScrollEvents","removeScrollEvents","bind","nodeList","closestContent","animationName","animationPlayState","eventCallback","closestDropdown","parentAttrId","_BasicDropdownContent","tracked","action","or","BasicDropdownTrigger","disableDocumentTextSelect","_BasicDropdownTrigger","DropdownTriggerModifier","BasicDropdownWormhole","getDestinationId","getConfig","_BasicDropdownWormhole","IGNORED_STYLES","_hPosition","WeakMap","_vPosition","_top","_left","_right","_width","_height","_otherStyles","_renderInPlace","_isOpen","BasicDropdown","horizontalPosition","verticalPosition","_getDestinationId","publicAPI","_uid","_actions","owner","guidFor","updatePublicApi","registerTriggerElement","onInit","registerAPI","willDestroy","onOpen","_getTriggerElement","_dropdownId","skipFocus","onClose","hPosition","vPosition","previousVerticalPosition","previousHorizontalPosition","tabIndex","_getDropdownElement","triggerRectBefore","changes","_calculateAndApplyPosition","triggerRectAfter","matchTriggerWidth","positionData","calculatePosition","applyReposition","_trigger","positions","otherStyles","triggerComponent","contentComponent","_BasicDropdown","initiallyOpened","Modifier","handleMouseEvent","handleKeyDown","handleTouchStart","handleTouchEnd","_touchMoveHandler","registerDestructor","modify","positional","named","assert","desiredEventType","eventType","didSetup","setup","_previousDisabled","handleMouseEventBound","handleKeyDownBound","handleTouchStartBound","handleTouchEndBound","_positional","notLeftClick","toggleIsBeingHandledByTouchEvents","keyCode","createEvent","initMouseEvent","_DropdownTriggerModifier","getViewData","triggerLeft","triggerTop","triggerWidth","triggerHeight","dropdownHeight","dropdownWidth","viewportWidth","viewportBottom","innerHeight","excludeStaticParent","overflowRegex","_destination","dropdownRect","triggerRect","viewportRight","viewData","anchorElement","anchorPosition","isBodyPositionRelative","triggerLeftWithScroll","leftVisible","rightVisible","triggerTopWithScroll","enoughRoomBelow","enoughRoomAbove","endEvent","moveEvent","changedTouches","touchType","horizontalDistance","pageX","verticalDistance","pageY","EmberEnvironment","Environment","schedule","reportUncaughtRejection","getOnerror","defer","globalDebuggingEnabled","EMBER_ENVIRONMENT","deferable","reject","DEFAULT_ENVIRONMENT","TYPE_CANCELLED","TYPE_STARTED","STARTED","reason","LAST_APPLIED_TAGS","Refresh","schedulerPolicy","stateTracker","taskInstances","initialTaskInstances","startingInstances","process","numRunning","numQueued","filterFinishedTaskInstances","reducer","makeReducer","finalTaskInstances","taskInstance","setTaskInstanceExecutionState","step","computeFinalStates","applyState","taskState","stateFor","task","executorState","executor","isFinished","onCompletion","hasStarted","desiredState","counted","onPerformed","cancel","onStart","onRunning","TYPE_QUEUED","onQueued","taskable","onState","guid","numPerformedInc","RefreshState","completionState","lastRunning","lastComplete","COMPLETION_SUCCESS","lastSuccessful","COMPLETION_ERROR","lastErrored","COMPLETION_CANCEL","lastCanceled","lastIncomplete","lastPerformed","applyStateFrom","other","CURRENT_REFRESH_TAGS","StateTracker","states","currentTag","forEachState","NULL_STATE","NullStateTracker","Scheduler","stateTrackingEnabled","cancelAll","cancelRequest","cancelations","guids","cancelation","perform","onFinalize","scheduleRefresh","SchedulerRefresh","BoundedPolicy","maxConcurrency","CANCELLED","makeCancelState","DropReducer","remainingSlots","DropPolicy","EnqueuedReducer","QUEUED","EnqueuedPolicy","KeepLatestReducer","numToCancel","KeepLatestPolicy","totalRunning","RestartableReducer","RestartablePolicy","SINGLETON_REDUCER","UnboundedPolicy","MODIFIER_REGISTRY","enqueue","factory","setBufferPolicy","debug","setDebug","drop","keepLatest","setMaxConcurrency","onStateCallback","setOnState","restartable","registerModifier","getModifier","hasModifier","taskDefinition","_","setState","UnboundedSchedulerPolicy","_processModifierOptions","createTask","getTaskOptions","Task","generatorFactory","getOptions","getScheduler","scheduler","_onStateCallback","_schedulerPolicyClass","_maxConcurrency","_debug","env","group","hasEnabledEvents","_hasEnabledEvents","enabledModifiers","_enabledModifiers","modifierOptions","policy","_hasSetBufferPolicy","_hasSetConcurrencyConstraint","setEvented","setName","setTaskDefinition","TASK_CANCELATION_NAME","didCancel","CancelRequest","kind","finalize","COMPLETION_PENDING","isSuccessful","isError","isCanceled","DEFAULT_STATE","performCount","freeze","GeneratorStepResult","done","errored","GeneratorState","iterator","resolvedValue","iteratorMethod","getIterator","PERFORM_TYPE_DEFAULT","PERFORM_TYPE_UNLINKED","PERFORM_TYPE_LINKED","CANCEL_RETURN_VALUE_SENTINEL","TASK_INSTANCE_STACK","TaskInstanceExecutor","generatorState","INITIAL_STATE","disposers","finalizeCallbacks","proceedSync","YIELDABLE_CONTINUE","requestCancel","proceedWithCancelAsync","finalizeWithCancel","proceedChecked","yieldResumeType","advanceIndex","YIELDABLE_CANCEL","CANCEL_KIND_YIELDABLE_CANCEL","proceedAsync","YIELDABLE_RETURN","handleResolvedReturnedValue","handleResolvedContinueValue","resumeValue","beforeIndex","stepResult","generatorStep","handleYieldedValue","YIELDABLE_THROW","handleYieldedUnknownThenable","thenable","resumeIndex","yieldedValue","addDisposer","cancelableSymbol","yieldableSymbol","invokeYieldable","proceedWithSimpleValue","maybeDisposer","disposer","nextValue","_expectsLinkedYield","performType","maybeResolveDefer","runFinalizeCallbacks","cb","maybeThrowUnhandledTaskErrorLater","asyncErrorsHandled","request","finalizeShared","cancelReason","formatCancelReason","debugEnabled","log","onYielded","proceed","getPerformType","detectSelfCancelLoop","CANCEL_KIND_PARENT_CANCEL","parentCancelRequest","CANCEL_KIND_LIFESPAN_END","selfCancelLoopWarning","guidId","Taskable","cancelRequestKind","resetState","CANCEL_KIND_EXPLICIT","_resetState","_isAlive","isRunning","isQueued","isIdle","TaskLinkProxy","linkedObject","_performShared","_perform","linked","unlinked","_clone","_curry","_curryArgs","fullArgs","_taskInstanceFactory","_taskInstanceOptions","_linkedObject","YieldableState","_taskInstance","_resumeIndex","getTaskInstance","return","throw","Yieldable","onYield","_deferable","_toPromise","thinInstance","_index","resumeType","catch","finally","AnimationFrameYieldable","timerId","RawTimeoutYieldable","ms","forever","rawTimeout","taskHelperClosure","helperName","taskMethod","_args","outerArgs","innerArgs","getValueFromStringPath","BaseTaskInstance","parentTaskInstance","isDropped","TaskInstance","_recomputeState","parentName","childName","allArgs","eventNamespace","TRACKED_INITIAL_INSTANCE_STATE","defineProperties","TASKABLE_MIXIN","_performCount","derivedState","Task$1","isDestroying","TRACKED_INITIAL_TASK_STATE","applyTracked","proto","initial","propDesc","initializer","desc","INITIAL_TASK_STATE","INITIAL_INSTANCE_STATE","isEventedObject","EmberYieldable","TimeoutYieldable","later","path","part","EmberScheduler","once","TaskFactory","TaskFactory$1","taskFn","buildTask","contextFn","taskName","bufferPolicyName","optionsWithBufferPolicy","generator","cancelHelper","helper","maybeReportError","performHelper","taskAwareVariantOf","RSVP","identity","allSettled","race","Promise$1","getValues","hashSettled","castForPromiseHelper","castable","getItems","awaitable","awaitables","arrOrHash","hasCancelled","it","WaitForQueueYieldable","queueName","WaitForEventYieldable","usesDOMEvents","WaitForPropertyYieldable","predicateCallback","deprecate","since","until","observerBound","observerFn","addObserver","removeObserver","waitForQueue","waitForEvent","waitForProperty","UNINITIALIZED","ElementHelper","Helper","compute","componentClass","EmberComponent","runInDebug","message","FormatDateRangeHelper","_intl","intl","formatDateRange","_FormatDateRangeHelper","service","FormatDateHelper","formatDate","_FormatDateHelper","FormatDisplayNameHelper","formatDisplayName","_FormatDisplayNameHelper","FormatListHelper","formatList","_FormatListHelper","FormatMessageHelper","formatMessage","_FormatMessageHelper","FormatNumberHelper","formatNumber","_FormatNumberHelper","FormatRelativeTimeHelper","formatRelativeTime","_FormatRelativeTimeHelper","FormatTimeHelper","formatTime","_FormatTimeHelper","tKey","THelper","positionalOptions","namedOptions","_THelper","memoize","cacheDefault","serializer","serializerDefault","strategyDefault","monadic","cacheKey","computedValue","variadic","assemble","serialize","ObjectWithoutPrototypeCache","strategies","DATE_TIME_REGEX","parseDateTimeSkeleton","skeleton","era","year","RangeError","month","day","weekday","hour12","hourCycle","hour","minute","second","timeZoneName","WHITE_SPACE_REGEX","icuUnitToEcma","unit","FRACTION_PRECISION_REGEX","SIGNIFICANT_PRECISION_REGEX","INTEGER_WIDTH_REGEX","CONCISE_INTEGER_WIDTH_REGEX","parseSignificantPrecision","roundingPriority","g1","g2","minimumSignificantDigits","maximumSignificantDigits","parseSign","signDisplay","currencySign","parseConciseScientificAndEngineeringStem","stem","notation","minimumIntegerDigits","parseNotationOptions","opt","parseNumberSkeleton","currency","useGrouping","maximumFractionDigits","compactDisplay","currencyDisplay","unitDisplay","roundingMode","g3","g4","g5","minimumFractionDigits","trailingZeroDisplay","signOpts","conciseScientificAndEngineeringOpts","ErrorKind","EXPECT_ARGUMENT_CLOSING_BRACE","EMPTY_ARGUMENT","MALFORMED_ARGUMENT","EXPECT_ARGUMENT_TYPE","INVALID_ARGUMENT_TYPE","EXPECT_ARGUMENT_STYLE","INVALID_NUMBER_SKELETON","INVALID_DATE_TIME_SKELETON","EXPECT_NUMBER_SKELETON","EXPECT_DATE_TIME_SKELETON","UNCLOSED_QUOTE_IN_ARGUMENT_STYLE","EXPECT_SELECT_ARGUMENT_OPTIONS","EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE","INVALID_PLURAL_ARGUMENT_OFFSET_VALUE","EXPECT_SELECT_ARGUMENT_SELECTOR","EXPECT_PLURAL_ARGUMENT_SELECTOR","EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT","EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT","INVALID_PLURAL_ARGUMENT_SELECTOR","DUPLICATE_PLURAL_ARGUMENT_SELECTOR","DUPLICATE_SELECT_ARGUMENT_SELECTOR","MISSING_OTHER_CLAUSE","INVALID_TAG","INVALID_TAG_NAME","UNMATCHED_CLOSING_TAG","UNCLOSED_TAG","TYPE","literal","argument","number","date","time","select","plural","pound","isLiteralElement","isArgumentElement","isNumberElement","isDateElement","isTimeElement","isSelectElement","isPluralElement","isPoundElement","isTagElement","isNumberSkeleton","isDateTimeSkeleton","SPACE_SEPARATOR_REGEX","IDENTIFIER_PREFIX_REGEX","timeData","AC","AD","AE","AF","AG","AI","AL","AM","AO","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CP","CR","CU","CV","CW","CX","CY","CZ","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HN","HR","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TL","TM","TN","TO","TR","TT","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW","getDefaultHourSymbolFromLocale","locale","localeWithHourCycles","getHourCycles","hourCycles","languageTag","language","regionTag","maximize","region","SPACE_SEPARATOR_START_REGEX","SPACE_SEPARATOR_END_REGEX","createLocation","hasNativeFromEntries","fromEntries","hasTrimStart","trimStart","hasTrimEnd","trimEnd","IDENTIFIER_PREFIX_RE","Parser","ignoreTag","requiresOtherClause","shouldParseSkeletons","firstCode","plainEndPosition","clonePosition","location","err","parseMessage","nestingLevel","parentArgType","expectingCloseTag","isEOF","parseArgument","peek","_isAlpha","parseTag","parseLiteral","bump","startPosition","parseTagName","bumpSpace","bumpIf","childrenResult","endTagStartPosition","closingTagNameStartPosition","startOffset","_isPotentialElementNameChar","parseQuoteResult","tryParseQuote","parseUnquotedResult","tryParseUnquoted","parseLeftAngleResult","tryParseLeftAngleBracket","codepoint","codePoints","ch","fromCodePoint","openingBracePosition","parseIdentifierIfPossible","parseArgumentOptions","startingPosition","lastIndex","endOffset","bumpTo","typeStartPosition","argType","typeEndPosition","styleAndLocation","styleStartPosition","parseSimpleArgStyleIfPossible","styleLocation","argCloseResult","tryParseArgumentClose","parseNumberSkeletonFromString","dateTimePattern","skeletonCopy","patternPos","patternChar","extraLength","hourLen","dayPeriodLen","dayPeriodChar","hourChar","pattern","parsedOptions","identifierAndLocation","pluralOffset","tryParseDecimalInteger","optionsResult","tryParsePluralOrSelectOptions","pluralType","nestedBraces","apostrophePosition","bumpUntil","stringTokens","stringToken","stemAndOptions","option","expectCloseTag","parsedFirstIdentifier","hasOtherClause","parsedSelectors","selectorLocation","fragmentResult","expectNumberError","invalidNumberError","sign","hasDigits","decimal","isSafeInteger","codePointAt","currentOffset","targetOffset","_isWhiteSpace","pruneLocation","els","ErrorCode","MISSING_VALUE","INVALID_VALUE","MISSING_INTL_API","FormatError","msg","originalMessage","InvalidValueError","variableId","InvalidValueTypeError","MissingValueError","isFormatXMLElementFn","formatToParts","locales","formatters","formats","currentPluralValue","getNumberFormat","format","varName","getDateTimeFormat","medium","isInteger","BigInt","formatFn","chunks","exactKey","Intl","PluralRules","numericValue","rule","getPluralRules","parts","lastPart","createFastMemoizeCache","store","IntlMessageFormat","_IntlMessageFormat","defaultLocale","overrideFormats","formatterCache","dateTime","pluralRules","ast","resolvedOptions","resolvedLocale","NumberFormat","supportedLocalesOf","getAst","resolveLocale","__parse","parseOpts","defaultConfig","configs","c1","c2","DateTimeFormat","memoizedDefaultLocale","Locale","supportedLocales","SyntaxError","captureLocation","integer","percent","short","long","full","IntlError","exception","stack","captureStackTrace","UnsupportedFormatterError","InvalidConfigError","MissingDataError","IntlFormatError","MessageFormatError","defaultMessage","description","MissingTranslationError","filterProps","allowlist","defaults","filtered","DEFAULT_INTL_CONFIG","messages","timeZone","defaultFormats","fallbackOnEmptyString","onWarn","warning","getNamedFormat","formatType","setTimeZoneInOptions","deepMergeOptions","opts1","opts2","deepMergeFormatsAndSetTimeZone","f1","mfFormats","defaultRichTextElements","messageDescriptor","msgId","Err","invariant","getMessageFormat","DATE_TIME_FORMAT_OPTIONS","getFormatter$3","filteredOptions","timeStyle","dateStyle","Date","formatDateTimeRange","fromDate","toDate","formatRange","formatDateToParts","formatTimeToParts","DURATION_FORMAT_OPTIONS","getFormatter","getDurationFormat","DurationFormat","formatDuration","getFormatter$2","formatDurationToParts","DISPLAY_NAMES_OPTONS","getDisplayNames","DisplayNames","of","LIST_FORMAT_OPTIONS","now","getListFormat","results","formatListToParts","ListFormat","richValues","serializedValues","PLURAL_FORMAT_OPTIONS","formatPlural","RELATIVE_TIME_FORMAT_OPTIONS","getRelativeTimeFormat","RelativeTimeFormat","NUMBER_FORMAT_OPTIONS","formatNumberToParts","intlShape","convertToArray","convertToString","normalizeLocale","_intls","_locales","IntlService","Service","duration","relativeTime","displayNames","lt","_localesOrThrow","primaryLocale","addTranslations","translations","updateIntl","createIntl","dateTimeRange","relative","_formats","resolvedConfig","_onFormatjsError","_cache","exists","getTranslation","formatOptions","getIntlShape","output","getIntl","setFormats","setLocale","proposedLocale","locale1","locale2","_timer","updateDocumentLanguage","setOnFormatjsError","onFormatjsError","setOnMissingTranslation","onMissingTranslation","_onMissingTranslation","translation","documentService","lookup","newIntl","_IntlService","ClassBasedModifierManager","capabilities","createModifier","modifierClass","installModifier","createdState","installedState","updateModifier","destroyModifier","ClassBasedModifier","setOwner","setModifierManager","MANAGER","teardown","getDebugName","getDebugInstance","PageTitle","_dec","_class","_initializerDefineProperty","_descriptor","tokenId","userOptions","scheduleTitleUpdate","_applyDecoratedDescriptor","isFastBoot","FastBoot","RouterEvent","configKeys","PageTitleService","_dec2","_descriptor2","separator","prepend","scheduleOnce","_updateTitle","_validateExistingTitleElement","fromEnv","configValue","pageTitle","_defaultConfig","router","applyTokenDefaults","defaultSeparator","defaultPrepend","defaultReplace","inheritFromPrevious","tokenForId","_findTokenById","splice","visibleTokens","visible","unshift","sortedTokens","appending","frontGroups","front","toBeTitle","updateFastbootTitle","titleDidUpdate","head","headElement","headChildNodes","childNodes","titleEl","titleContents","createTextNode","_title","isPromiseLike","thing","isCancellablePromise","toPlainArray","collection","coll","getOptionMatcher","matcher","defaultMatcher","searchField","_resolvedOptions","_resolvedSelected","_repeatingChar","_expirableSearchText","_searchResult","_loading","_searchText","_lastSearchedText","_highlighted","PowerSelect","search","_search","highlight","_highlight","_select","choose","_choose","_scrollTo","labelClick","_labelClick","__updateOptions","eager","__updateSelected","__registerAPI","term","__performSearch","multiple","highlighted","resultsCount","loading","searchText","lastSearchedText","_publicAPIActions","searchStartOffset","repeatingChar","storedAPI","indexOfOption","findWithOffset","onChange","highlightOnHover","labelClickAction","highlightedIndex","pathForOption","searchMessage","noMatchesMessage","resultCountMessage","mustShowSearchMessage","mustShowNoMessages","_filter","countOptions","isSelectedPresent","emberPowerSelectIsSelectedPresent","ariaMultiSelectable","triggerId","labelId","labelText","labelComponent","searchFieldPosition","tabindex","searchEnabled","buildSelection","_defaultMultipleBuildSelection","PowerSelectLabel","PowerSelectTrigger","placeholderComponent","PowerSelectPlaceholder","beforeOptionsComponent","PowerSelectBeforeOptions","searchMessageComponent","PowerSelectSearchMessage","noMatchesMessageComponent","PowerSelectNoMatchesMessage","optionsComponent","PowerSelectOptions","groupComponent","PowerSelectPowerSelectGroup","selectedItemComponent","afterOptionsComponent","handleOpen","focusInput","KeyboardEvent","_resetHighlighted","handleClose","handleInput","correctedTerm","onInput","handleKeydown","onKeydown","_routeKeydown","handleTriggerKeydown","stopImmediatePropagation","ctrlKey","metaKey","triggerTypingTask","_handleKeySpace","detail","handleFocus","_updateIsActive","onFocus","handleBlur","onBlur","_updateHighlighted","selection","closeOnSelect","optionsList","optionElement","optionTopScroll","optionBottomScroll","_lastOptionsPromise","currentOptionsPromise","_lastSelectedPromise","currentSelectedPromise","resolvedSelected","_lastSearchPromise","searchResult","newSelection","_handleKeyUpDown","_handleKeyEnter","_handleKeyTab","_handleKeyESC","newHighlighted","advanceSelectableOption","defHighlighted","defaultHighlighted","skipDisabled","optionMatcher","filterOptions","typeAheadOptionMatcher","defaultTypeAheadMatcher","findOptionWithOffset","_PowerSelect","cached","P","I","and","not","notEq","A","_focusInput","focusLaterTask","_PowerSelectBeforeOptions","eq","PowerSelectInput","_openChanged","placeholder","isDefaultPlaceholder","searchPlaceholder","lastSelection","_lastIsOpen","_PowerSelectInput","onLabelClick","_PowerSelectLabel","_PowerSelectNoMatchesMessage","ElementProto","msMatchesSelector","mozMatchesSelector","webkitMatchesSelector","extra","_isTouchDevice","_didHandlerSetup","_listElement","_addHandlers","_removeHandlers","isOptionDisabled","groupTyping","optionTyping","_optionFromIndex","_hasMoved","changedTouch","findOptionAndPerform","optionItem","optionIndex","mouseUpHandler","mouseOverHandler","touchEndHandler","_PowerSelectOptions","emberPowerSelectIsGroup","emberPowerSelectIsEqual","_PowerSelectPlaceholder","_PowerSelectPowerSelectGroup","_PowerSelectSearchMessage","inputComponent","selectedMultiple","chooseOption","selectedIndex","numericIndex","selectedObject","_el","objectAt","_PowerSelectTrigger","emberPowerSelectIsArray","maybeArray","maybeGroup","isGroup","getTime","groupName","counter","walk","optionAtIndex","originalCollection","ancestorIsDisabled","localCounter","found","copyGroup","subOptions","groupCopy","foundBeforeOffset","foundAfterOffset","canStop","entryIsDisabled","suboptions","currentOption","resultsLength","startIndex","DIACRITICS","Ａ","À","Á","Â","Ầ","Ấ","Ẫ","Ẩ","Ã","Ā","Ă","Ằ","Ắ","Ẵ","Ẳ","Ȧ","Ǡ","Ä","Ǟ","Ả","Å","Ǻ","Ǎ","Ȁ","Ȃ","Ạ","Ậ","Ặ","Ḁ","Ą","Ⱥ","Ɐ","Ꜳ","Æ","Ǽ","Ǣ","Ꜵ","Ꜷ","Ꜹ","Ꜻ","Ꜽ","Ｂ","Ḃ","Ḅ","Ḇ","Ƀ","Ƃ","Ɓ","Ｃ","Ć","Ĉ","Ċ","Č","Ç","Ḉ","Ƈ","Ȼ","Ꜿ","Ｄ","Ḋ","Ď","Ḍ","Ḑ","Ḓ","Ḏ","Đ","Ƌ","Ɗ","Ɖ","Ꝺ","Ǳ","Ǆ","ǲ","ǅ","Ｅ","È","É","Ê","Ề","Ế","Ễ","Ể","Ẽ","Ē","Ḕ","Ḗ","Ĕ","Ė","Ë","Ẻ","Ě","Ȅ","Ȇ","Ẹ","Ệ","Ȩ","Ḝ","Ę","Ḙ","Ḛ","Ɛ","Ǝ","Ｆ","Ḟ","Ƒ","Ꝼ","Ｇ","Ǵ","Ĝ","Ḡ","Ğ","Ġ","Ǧ","Ģ","Ǥ","Ɠ","Ꞡ","Ᵹ","Ꝿ","Ｈ","Ĥ","Ḣ","Ḧ","Ȟ","Ḥ","Ḩ","Ḫ","Ħ","Ⱨ","Ⱶ","Ɥ","Ｉ","Ì","Í","Î","Ĩ","Ī","Ĭ","İ","Ï","Ḯ","Ỉ","Ǐ","Ȉ","Ȋ","Ị","Į","Ḭ","Ɨ","Ｊ","Ĵ","Ɉ","Ｋ","Ḱ","Ǩ","Ḳ","Ķ","Ḵ","Ƙ","Ⱪ","Ꝁ","Ꝃ","Ꝅ","Ꞣ","Ｌ","Ŀ","Ĺ","Ľ","Ḷ","Ḹ","Ļ","Ḽ","Ḻ","Ł","Ƚ","Ɫ","Ⱡ","Ꝉ","Ꝇ","Ꞁ","Ǉ","ǈ","Ｍ","Ḿ","Ṁ","Ṃ","Ɱ","Ɯ","Ｎ","Ǹ","Ń","Ñ","Ṅ","Ň","Ṇ","Ņ","Ṋ","Ṉ","Ƞ","Ɲ","Ꞑ","Ꞥ","Ǌ","ǋ","Ｏ","Ò","Ó","Ô","Ồ","Ố","Ỗ","Ổ","Õ","Ṍ","Ȭ","Ṏ","Ō","Ṑ","Ṓ","Ŏ","Ȯ","Ȱ","Ö","Ȫ","Ỏ","Ő","Ǒ","Ȍ","Ȏ","Ơ","Ờ","Ớ","Ỡ","Ở","Ợ","Ọ","Ộ","Ǫ","Ǭ","Ø","Ǿ","Ɔ","Ɵ","Ꝋ","Ꝍ","Ƣ","Ꝏ","Ȣ","Ｐ","Ṕ","Ṗ","Ƥ","Ᵽ","Ꝑ","Ꝓ","Ꝕ","Ｑ","Ꝗ","Ꝙ","Ɋ","Ｒ","Ŕ","Ṙ","Ř","Ȑ","Ȓ","Ṛ","Ṝ","Ŗ","Ṟ","Ɍ","Ɽ","Ꝛ","Ꞧ","Ꞃ","Ｓ","ẞ","Ś","Ṥ","Ŝ","Ṡ","Š","Ṧ","Ṣ","Ṩ","Ș","Ş","Ȿ","Ꞩ","Ꞅ","Ｔ","Ṫ","Ť","Ṭ","Ț","Ţ","Ṱ","Ṯ","Ŧ","Ƭ","Ʈ","Ⱦ","Ꞇ","Ꜩ","Ｕ","Ù","Ú","Û","Ũ","Ṹ","Ū","Ṻ","Ŭ","Ü","Ǜ","Ǘ","Ǖ","Ǚ","Ủ","Ů","Ű","Ǔ","Ȕ","Ȗ","Ư","Ừ","Ứ","Ữ","Ử","Ự","Ụ","Ṳ","Ų","Ṷ","Ṵ","Ʉ","Ｖ","Ṽ","Ṿ","Ʋ","Ꝟ","Ʌ","Ꝡ","Ｗ","Ẁ","Ẃ","Ŵ","Ẇ","Ẅ","Ẉ","Ⱳ","Ｘ","Ẋ","Ẍ","Ｙ","Ỳ","Ý","Ŷ","Ỹ","Ȳ","Ẏ","Ÿ","Ỷ","Ỵ","Ƴ","Ɏ","Ỿ","Ｚ","Ź","Ẑ","Ż","Ž","Ẓ","Ẕ","Ƶ","Ȥ","Ɀ","Ⱬ","Ꝣ","ａ","ẚ","à","á","â","ầ","ấ","ẫ","ẩ","ã","ā","ă","ằ","ắ","ẵ","ẳ","ȧ","ǡ","ä","ǟ","ả","å","ǻ","ǎ","ȁ","ȃ","ạ","ậ","ặ","ḁ","ą","ⱥ","ɐ","ꜳ","æ","ǽ","ǣ","ꜵ","ꜷ","ꜹ","ꜻ","ꜽ","ｂ","ḃ","ḅ","ḇ","ƀ","ƃ","ɓ","ｃ","ć","ĉ","ċ","č","ç","ḉ","ƈ","ȼ","ꜿ","ↄ","ｄ","ḋ","ď","ḍ","ḑ","ḓ","ḏ","đ","ƌ","ɖ","ɗ","ꝺ","ǳ","ǆ","ｅ","è","é","ê","ề","ế","ễ","ể","ẽ","ē","ḕ","ḗ","ĕ","ė","ë","ẻ","ě","ȅ","ȇ","ẹ","ệ","ȩ","ḝ","ę","ḙ","ḛ","ɇ","ɛ","ǝ","ｆ","ḟ","ƒ","ꝼ","ｇ","ǵ","ĝ","ḡ","ğ","ġ","ǧ","ģ","ǥ","ɠ","ꞡ","ᵹ","ꝿ","ｈ","ĥ","ḣ","ḧ","ȟ","ḥ","ḩ","ḫ","ẖ","ħ","ⱨ","ⱶ","ɥ","ƕ","ｉ","ì","í","î","ĩ","ī","ĭ","ï","ḯ","ỉ","ǐ","ȉ","ȋ","ị","į","ḭ","ɨ","ı","ｊ","ĵ","ǰ","ɉ","ｋ","ḱ","ǩ","ḳ","ķ","ḵ","ƙ","ⱪ","ꝁ","ꝃ","ꝅ","ꞣ","ｌ","ŀ","ĺ","ľ","ḷ","ḹ","ļ","ḽ","ḻ","ſ","ł","ƚ","ɫ","ⱡ","ꝉ","ꞁ","ꝇ","ǉ","ｍ","ḿ","ṁ","ṃ","ɱ","ɯ","ｎ","ǹ","ń","ñ","ṅ","ň","ṇ","ņ","ṋ","ṉ","ƞ","ɲ","ŉ","ꞑ","ꞥ","ǌ","ｏ","ò","ó","ô","ồ","ố","ỗ","ổ","õ","ṍ","ȭ","ṏ","ō","ṑ","ṓ","ŏ","ȯ","ȱ","ö","ȫ","ỏ","ő","ǒ","ȍ","ȏ","ơ","ờ","ớ","ỡ","ở","ợ","ọ","ộ","ǫ","ǭ","ø","ǿ","ɔ","ꝋ","ꝍ","ɵ","ƣ","ȣ","ꝏ","ｐ","ṕ","ṗ","ƥ","ᵽ","ꝑ","ꝓ","ꝕ","ｑ","ɋ","ꝗ","ꝙ","ｒ","ŕ","ṙ","ř","ȑ","ȓ","ṛ","ṝ","ŗ","ṟ","ɍ","ɽ","ꝛ","ꞧ","ꞃ","ｓ","ß","ś","ṥ","ŝ","ṡ","š","ṧ","ṣ","ṩ","ș","ş","ȿ","ꞩ","ꞅ","ẛ","ｔ","ṫ","ẗ","ť","ṭ","ț","ţ","ṱ","ṯ","ŧ","ƭ","ʈ","ⱦ","ꞇ","ꜩ","ｕ","ù","ú","û","ũ","ṹ","ū","ṻ","ŭ","ü","ǜ","ǘ","ǖ","ǚ","ủ","ů","ű","ǔ","ȕ","ȗ","ư","ừ","ứ","ữ","ử","ự","ụ","ṳ","ų","ṷ","ṵ","ʉ","ｖ","ṽ","ṿ","ʋ","ꝟ","ʌ","ꝡ","ｗ","ẁ","ẃ","ŵ","ẇ","ẅ","ẘ","ẉ","ⱳ","ｘ","ẋ","ẍ","ｙ","ỳ","ý","ŷ","ỹ","ȳ","ẏ","ÿ","ỷ","ẙ","ỵ","ƴ","ɏ","ỿ","ｚ","ź","ẑ","ż","ž","ẓ","ẕ","ƶ","ȥ","ɀ","ⱬ","ꝣ","Ά","Έ","Ή","Ί","Ϊ","Ό","Ύ","Ϋ","Ώ","ά","έ","ή","ί","ϊ","ΐ","ό","ύ","ϋ","ΰ","ω","ς","stripDiacritics","Cache","limit","func","misses","hits","purge","STRING_DASHERIZE_REGEXP","STRING_DASHERIZE_CACHE","decamelize","DECAMELIZE_CACHE","STRING_CLASSIFY_REGEXP_1","STRING_CLASSIFY_REGEXP_2","STRING_CLASSIFY_REGEXP_3","CLASSIFY_CACHE","replace1","_match","_separator","replace2","initialChar","STRING_UNDERSCORE_REGEXP_1","STRING_UNDERSCORE_REGEXP_2","UNDERSCORE_CACHE","STRING_DECAMELIZE_REGEXP","ModuleRegistry","_entries","requirejs","moduleNames","Resolver","withModules","explicitModules","_Class","podBasedModuleName","podBasedComponentsInSubdir","mainModuleName","defaultModuleName","nestedColocationComponentModuleName","_moduleRegistry","addModules","modules","_eak_seen","pluralizedTypes","makeToString","fullName","modulePrefix","shouldWrapInClassFactory","parseName","parsedName","fullNameParts","prefixParts","nameParts","lastIndexOf","fullNameWithoutType","resolveMethodName","resolveOther","normalizedModuleName","findModuleName","defaultExport","_extractDefaultExport","klass","injections","normalize","_normalizeCache","_normalize","resolved","pluralize","podBasedLookupWithPrefix","podPrefix","podModulePrefix","resolveEngine","engineModule","resolveRouteMap","engineName","engineRoutesModule","routeMap","isRouteMap","resolveTemplate","tmpPrefix","moduleNameLookupPatterns","tmpModuleName","chooseModuleName","underscoredModuleName","knownForType","moduleKeys","fullname","translateToContainerFullname","podSuffix","nonPodPrefix","isObject","DASHERIZE_REGEX","StyleModifier","setStyles","newStyles","existingStyles","rulesToRemove","typeOf","priority","flat","mod","__create","__defProp","__getOwnPropDesc","__getOwnPropNames","__getProtoOf","__hasOwnProp","__copyProps","except","require_toggle_selection","module2","getSelection","rangeCount","ranges","getRangeAt","removeAllRanges","range","addRange","index_exports","index_default","import_index","isNodeMode","toggle_selection_default","isSecureContext","clipboard","onCopy","writeText","Blob","ClipboardItem","reselectPrevious","createRange","mark","clip","whiteSpace","webkitUserSelect","MozUserSelect","msUserSelect","userSelect","clipboardData","setData","fullscreenElement","success","selectNodeContents","execCommand","removeRange","fallbackToPrompt","copyKey","prompt","_arrayLikeToArray","_createForOfIteratorHelper","_unsupportedIterableToArray","_toPropertyKey","ownKeys","getOwnPropertySymbols","_objectSpread2","getOwnPropertyDescriptors","_slicedToArray","_toConsumableArray","toPrimitive","_typeof","_WINDOW","_DOCUMENT","_MUTATION_OBSERVER","_PERFORMANCE","measure","performance","_cl","_jl","_ref$userAgent","WINDOW","DOCUMENT","MUTATION_OBSERVER","PERFORMANCE","IS_DOM","IS_IE","rl","classic","fa","fas","far","fal","fat","fab","duotone","fad","fadr","fadl","fadt","sharp","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","slab","faslr","faslpr","fasldr","faslpdr","thumbprint","fatl","vellum","favs","pixel","fapr","mosaic","fams","whiteboard","fawsb","notdog","fans","fands","etch","faes","graphite","fagt","jelly","fajr","fajfr","fajdr","chisel","facr","utility","fausb","faudsb","faufsb","xl","Ql","defaultShortPrefixId","defaultStyleId","styleIds","futureStyleIds","defaultFontWeight","at","St","kit","da","ha","sl$1","ol$1","ga","NAMESPACE_IDENTIFIER","DEFAULT_REPLACEMENT_CLASS","DATA_FA_I2SVG","DATA_FA_PSEUDO_ELEMENT","DATA_PREFIX","DATA_ICON","HTML_CLASS_I2SVG_BASE_CLASS","TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS","PSEUDO_ELEMENTS","PRODUCTION","e$$1","familyProxy","_PREFIX_TO_STYLE","fak","fakd","PREFIX_TO_STYLE","_STYLE_TO_PREFIX","regular","light","solid","thin","semibold","STYLE_TO_PREFIX","_PREFIX_TO_LONG_STYLE","PREFIX_TO_LONG_STYLE","_LONG_STYLE_TO_PREFIX","ICON_SELECTION_SYNTAX_PATTERN","LAYERS_TEXT_CLASSNAME","FONT_FAMILY_PATTERN","ATTRIBUTES_WATCHED_FOR_MUTATION","normal","RESERVED_CLASSES","FontAwesomeConfig","styleDefault","familyDefault","cssPrefix","replacementClass","autoReplaceSvg","autoAddCss","searchPseudoElements","searchPseudoElementsWarnings","searchPseudoElementsFullScan","observeMutations","mutateApproach","keepOriginalSource","measurePerformance","showMissingIcons","familyPrefix","_onChangeCb","d$2","meaninglessTransform","flipX","flipY","nextUniqueId","toArray","array","classArray","htmlEscape","joinStyles","styleName","transformIsMeaningful","dcp","drc","fp","rc","dPatt","customPropPatt","rPatt","_cssInserted","ensureCss","headChildren","beforeChild","insertBefore","InjectCSS","mixout","dom","insertCss","hooks","beforeDOMElementCreation","beforeI2svg","w$2","shims","functions","_listener","loaded","abstractNodes","_abstractNodes$attrib","_abstractNodes$childr","iconFromMapping","mapping","doScroll","subject","initialValue","thisContext","normalizeIcons","icons","defineIcons","_params$skipHooks","skipHooks","normalized","addPack","FAMILY_NAMES","PREFIXES_FOR_FAMILY","familyId","_defaultUsablePrefix","_byUnicode","_byLigature","_byOldName","_byOldUnicode","_byAlias","build","o$$1","a$$1","alias","hasRegular","autoFetchSvg","shimLookups","shim","maybeNameMaybeUnicode","names","unicodes","getCanonicalPrefix","family","byUnicode","byAlias","byOldName","getDefaultUsablePrefix","styleOrPrefix","_params$family","defined","sortedUniqueValues","c$$1","_faCombinedClasses","getCanonicalIcon","rest","_params$skipLookups","skipLookups","givenPrefix","faStyleOrFamilyClasses","cls","nonStyleOrFamilyClasses","_faStyles$","styleFromValues","famProps","v$$1","canonical","prefixOptions","_prefixOptions$givenP","_prefixOptions$styles","_prefixOptions$config","config$$1","isDuotoneFamily","valuesHasDuotone","defaultFamilyIsDuotone","canonicalPrefixIsDuotone","newCanonicalFamilies","newCanonicalStyles","aliasIconName","Library","definitions","_this","additions","_pullDefinitions","longPrefix","_normalized$key","_plugins","_hooks","providers","defaultProviderKeys","chainHooks","hook","hookFn","callHooks","_len2","_key2","callProvided","findIconDefinition","library","i2svg","watch","autoReplaceSvgRoot","autoReplace","api","noAuto","_icon","canonicalIcon","_prefix","_params$autoReplaceSv","domVariants","abstractCreator","makeInlineSvgAbstract","_params$icons","maskId","_params$watchable","watchable","attrClass","class","role","makeLayersTextAbstract","_params$watchable2","_ref2$width","_ref2$height","_ref2$startCentered","startCentered","styleString","styles$1","asFoundIcon","vectorData","fill","missingIconResolutionMixin","findIcon","noop$1","p$2","preamble","perf","noop$2","isWatched","createElementNS","convertSVG","abstractObj","_params$ceFn","ceFn","mutators","mutation","comment","createComment","outerHTML","replaceChild","nest","forSvg","splitClasses","toSvg","toNode","newInnerHTML","performOperationSync","op","callbackFunction","frame","mutator","disableObservation","enableObservation","mo","_options$treeCallback","treeCallback","_options$nodeCallback","nodeCallback","_options$pseudoElemen","pseudoElementsCallback","_options$observeMutat","observeMutationsRoot","objects","mutationRecord","_getCanonicalIcon","characterData","parseMeta","parser","styleParser","_classParser","ligature","existingPrefix","existingIconName","innerText","firstChild","TEXT_NODE","extraClasses","extraAttributes","pluginMeta","extraStyles","styles$2","generateMutation","nodeMeta","onTree","htmlClassList","hclAdd","suffix","hclRemove","prefixes","prefixesDomQuery","p$$1","candidates","resolvedMutations","onNode","render","iconDefinition","_params$transform","_params$symbol","_params$mask","_params$maskId","_params$classes","_params$attributes","_params$styles","ReplaceElements","maybeIconDefinition","mutationObserverCallbacks","provides","providers$$1","_params$node","_params$callback","generateSvgReplacementMutation","generateAbstractIcon","nextChild","containerWidth","iconWidth","Layers","layer","assembler","LayersCounter","_params$title","LayersText","generateLayersText","computedFontSize","fontSize","boundingClientRect","CLEAN_CONTENT_PATTERN","SECONDARY_UNICODE_RANGE","_FONT_FAMILY_WEIGHT_TO_PREFIX","FontAwesome","FONT_FAMILY_WEIGHT_TO_PREFIX","FONT_FAMILY_WEIGHT_FALLBACK","fontFamily","weights","replaceForPosition","pendingAttribute","oldUnicode","newUnicode","alreadyProcessedPseudoElement","fontFamilyMatch","fontWeight","_content","fontFamilySanitized","fontWeightInteger","fontWeightSanitized","hexValue","isV4","isSecondary","hasStylisticSet","cleaned","codePoint","isPrependTen","isDoubled","iconIdentifier","iconName4","processable","hasPseudoElement","pseudoSelector","parseCSSRuleForPseudos","selectorText","selectorSet","selectors","s$$1","flatMap","_step","_iterator","selectorWithoutPseudo","_step2","_iterator2","styleSheets","stylesheet","_step3","_iterator3","cssRules","_step4","_iterator4","href","cleanSelectors","operations","PseudoElements","pseudoElements2svg","_unwatched","parseTransformString","transformString","first","PowerTransforms","parseNodeAttributes","generateAbstractTransformGrouping","outer","innerTranslate","innerScale","innerRotate","inner","ALL_SPACE","fillBlack","force","Masks","maskData","generateAbstractMask","explicitMaskId","mainWidth","mainPath","maskWidth","maskPath","trans","maskRect","maskInnerGroupChildrenMixin","maskInnerGroup","maskOuterGroup","clipId","maskTag","maskUnits","maskContentUnits","defs","MissingIconIndicator","reduceMotion","matchMedia","missingIconAbstract","gChildren","FILL","ANIMATION_BASE","attributeType","repeatCount","dur","OPACITY_ANIMATE","dot","cx","cy","opacity","mixoutsTo","unwatch","bootstrap","symbolData","tk","sk","noAuto$1","config$1","library$1","dom$1","parse$1","findIconDefinition$1","toHtml$1","IS_DESTROYING_KEY","IS_DESTROYED_KEY","GlimmerComponent","BaseComponentManager","createComponent","ComponentClass","getContext","CAPABILITIES","destructor","asyncLifecycleCallbacks","updateHook","scheduledDestroyComponent","EmberGlimmerComponentManager","destroyComponent","setComponentManager","proxyMarker","createEndpoint","releaseProxy","finalizer","throwMarker","transferHandlers","canHandle","port1","port2","MessageChannel","expose","deserialize","port","serialized","ep","allowedOrigins","ev","origin","allowedOrigin","argumentList","fromWireValue","returnValue","proxy","transfer","wireValue","transferables","toWireValue","postMessage","closeEndPoint","endpoint","pendingListeners","resolver","createProxy","throwIfProxyReleased","isReleased","releaseEndpoint","requestResponseMessage","proxyCounter","proxyFinalizers","FinalizationRegistry","newCount","isProxyReleased","_target","_thisArg","rawArgumentList","processArguments","construct","processed","transferCache","transfers","windowEndpoint","targetOrigin","serializedValue","MAX_SAFE_INTEGER","deferred","decorateFieldV2","decorators","decorator","decorateMethodV2","initializeDeferredDecorator","_a","cursor","resolveInitializer","load","loadInitializers","app","initializerPrefix","instanceInitializerPrefix","initializers","instanceInitializers","endsWith","instanceInitializer","VALID_FULL_NAME_REGEXP","Registry","registrations","makeDictionary","_resolveCache","_failSet","_typeOptions","Container","normalizedName","registry","_normalizedName","describe","lookupDescription","normalizeFullName","isValidFullName","optionsForType","getOptionsForType","getOption","optionName","fallbackKnown","resolverKnown","localKnown","registeredNames","privateNames","privateSuffix","privatize","rawName","intern","isEnabled","ENV","_ALL_DEPRECATIONS_ENABLED","numEmberVersion","_OVERRIDE_DEPRECATION_VERSION","emberVersionGte","emberVersion","significantUntil","isRemoved","deprecation","DEPRECATIONS","DEPRECATE_IMPORT_EMBER","importName","dasherize","available","url","DEPRECATE_IMPORT_INJECT","DEPRECATE_COMPARABLE_MIXIN","DEPRECATE_TARGET_ACTION_SUPPORT","DEPRECATE_EVENTED","DEPRECATE_MIXINS","DEPRECATE_ARRAY_PROXY","DEPRECATE_OBJECT_PROXY","DEPRECATE_PROMISE_PROXY_MIXIN","deprecateUntil","Ember","imports","getLookup","setLookup","TEMPLATES","setTemplates","templates","getTemplates","getTemplate","hasTemplate","setTemplate","objectPrototype","UNDEFINED","ListenerKind","ADD","ONCE","REMOVE","currentListenerVersion","Meta","_descriptors","_mixins","_lazyChains","_values","_revisions","_isInit","_listeners","setInitializing","unsetInitializing","isInitializing","isPrototypeMeta","_getOrCreateOwnMap","_getOrCreateOwnSet","_findInheritedMap","subkey","pointer","_hasInInheritedSet","valueFor","setValueFor","revisionFor","revisions","setRevisionFor","revision","writableLazyChainsFor","lazyChains","chains","readableLazyChainsFor","addMixin","mixin","hasMixin","forEachMixins","seen","writeDescriptors","peekDescriptors","possibleDesc","removeDescriptors","forEachDescriptors","addToListeners","sync","pushListener","removeFromListeners","listeners","writableListeners","indexOfListener","_inheritedEnd","listener","_flattenedVersion","flattenedListeners","parentListeners","matchingListeners","observerEvents","metaStore","setMeta","peekMeta","maybeMeta","newMeta","Libraries","_registry","_coreLibIndex","_getLibraryByName","libs","lib","isCoreLibrary","registerCoreLibrary","deRegister","LIBRARIES","deprecateProperty","deprecatedKey","newKey","EACH_PROXIES","eachProxyArrayWillChange","removedCnt","addedCnt","eachProxy","arrayWillChange","eachProxyArrayDidChange","arrayDidChange","isFactory","getOwner$1","setOwner$1","onerrorDefault","withErrorThrown","errorThrown","overrideDispatch","getDispatchOverride","configure","_backburner","_rsvpErrorQueue","contentFor","UPDATE_TAG","tagForObject","customTagForProxy","addMandatorySetter","tagMetaFor","tagFor","tags","tagForProperty","combine","ProxyMixin","Mixin","INTERNAL_MIXIN_CREATE","init","_super","setProxy","setCustomTagFor","isTruthy","computed","unknownProperty","setUnknownProperty","ActionHandler","mergedProperties","send","actionName","Comparable","compare","ContainerProxyMixin","__container__","ownerInjection","factoryFor","RegistryProxyMixin","__registry__","registryAlias","hasRegistration","registeredOption","registerOptions","registeredOptions","registerOptionsForType","registeredOptionsForType","TargetActionSupport","actionContext","actionContextObject","triggerAction","ret","classify","Opaque","objectToString","isNone","canInvoke","methodName","MUTABLE_CELL","ActionSupport","ROOT_ELEMENT_CLASS","EventDispatcher","EmberObject","touchstart","touchmove","touchend","touchcancel","keydown","keyup","keypress","mousedown","mouseup","contextmenu","click","dblclick","focusin","focusout","submit","change","dragstart","drag","dragenter","dragleave","dragover","dragend","addedEvents","finalEventNameMapping","_reverseEventNameMapping","lazyEvents","specifiedRootElement","_sanitizedRootElement","_didSetup","setupHandlerForBrowserEvent","setupHandler","setupHandlerForEmberEvent","viewHandler","view","getElementView","handleEvent","_eventHandlers","cancelBubble","isSimpleClick","MouseEvent","altKey","secondaryClick","constructStyleDeprecationMessage","affectedStyle","getRootViews","rootViews","parentView","getViewId","elementId","ELEMENT_VIEW","VIEW_ELEMENT","getViewElement","setElementView","setViewElement","clearElementView","clearViewElement","CHILD_VIEW_IDS","getChildViews","views","childViews","addChildView","getViewBounds","renderer","getBounds","getViewRange","bounds","setStartBefore","firstNode","setEndAfter","lastNode","getViewClientRects","getViewBoundingClientRect","sendCoreViewEvent","sendEvent","hasCoreViewListener","hasListeners","_renderer","CoreView","FrameworkObject","properties","_state","_currentState","_states","preRender","instrumentDetails","containerKey","_debugContainerKey","eventedOn","eventedOne","eventedTrigger","eventedOff","eventedHas","_CoreView","Evented","inject","DEFAULT","rerender","PRE_RENDER","HAS_ELEMENT","flaggedInstrument","IN_DOM","enter","DESTROYING","inDOM","hasElement","destroying","Application","Engine","buildRegistry","EmberRouter","Route","HashLocation","HistoryLocation","NoneLocation","BucketCache","RouterService","setupApplicationRegistry","_document","eventDispatcher","autoboot","hasDOM","_readinessDeferrals","_booted","_applicationInstances","Router","_buildDeprecatedInstance","waitForDOMReady","buildInstance","ApplicationInstance","base","application","_watchInstance","_unwatchInstance","__deprecatedInstance__","domReady","run","_bootSync","deferReadiness","advanceReadiness","didBecomeReady","boot","_bootPromise","_bootResolver","runInitializers","ready","startRouting","visit","buildInitializerMethod","EngineInstance","instantiate","_BootOptions","setupRegistry","runInstanceInitializers","isInteractive","setupEventDispatcher","_router","didCreateRootView","appendTo","setupRouter","handleURL","dispatcher","applicationCustomEvents","instanceCustomEvents","getURL","bootOptions","setURL","followRedirects","handleTransitionResolve","shouldRender","renderSettled","coptions","toEnvironment","_renderMode","isBrowser","environment","Namespace","addNamespace","existing_name","findNamespaces","nameClasses","processNamespace","removeNamespace","NAMESPACES","NAMESPACES_BY_ID","processAllNamespaces","findNamespace","EMBER_ARRAYS","WeakSet","setEmberArray","isEmberArray","EMPTY_ARRAY","identityFunction","uniqBy","keyOrFunc","getter","iter","valueProvided","findIndex","predicate","startAt","any","withNaNCheck","removeAt","insertAt","nonEnumerableComputed","mapBy","EmberArray","Enumerable","objectsAt","indexes","firstObject","readOnly","lastObject","beginIndex","endIndex","validatedEndIndex","getEach","setEach","filterBy","rejectBy","findBy","isEvery","isAny","invoke","compact","sortBy","sortKeys","propA","propB","compareValue","uniq","without","MutableArray","MutableEnumerable","pushObject","pushObjects","popObject","shiftObject","unshiftObject","unshiftObjects","reverseObjects","reverse","setObjects","removeObject","loc","removeObjects","beginPropertyChanges","endPropertyChanges","addObject","addObjects","NativeArray","Observable","deleteCount","replaceInNativeArray","ignore","makeArray","ARRAY_OBSERVER_MAPPING","didChange","customTagForArrayProxy","_revalidate","_arrTag","_lengthTag","ArrayProxy","PROPERTY_DID_CHANGE","_removeArrangedContentArrayObserver","objectAtContent","arrangedContent","amt","replaceContent","_objects","_objectsDirtyIndex","_lengthDirty","_length","consumeTag","added","removedCount","_invalidate","_updateArrangedContentArray","oldLength","newLength","arrayContentWillChange","arrayContentDidChange","_addArrangedContentArrayObserver","addArrayObserver","_arrangedContent","removeArrayObserver","_arrangedContentArrayWillChange","_arrangedContentArrayDidChange","_proxy","dirtyIndex","_arrangedContentIsUpdating","_arrangedContentTag","validateTag","_arrangedContentRevision","arrangedContentTag","valueForTag","reopen","DEFAULT_FEATURES","FEATURES","feature","ENABLE_OPTIONAL_FEATURES","RECOMPUTE_TAG","createTag","recompute","DIRTY_TAG","IS_CLASSIC_HELPER","ClassicHelperManager","helperCapabilities","hasValue","hasDestroyable","createHelper","getDestroyable","setHelperManager","Wrapper","SIMPLE_CLASSIC_HELPER_MANAGER","helperFn","lazyEventsProcessed","didReceiveAttrs","didRender","didUpdate","didUpdateAttrs","willRender","willUpdate","concatenatedProperties","classNames","classNameBindings","_superRerender","_rerender","IS_DISPATCHING_ATTRS","BOUNDS","_dispatcher","lazyEventsProcessedForComponentClass","mappedEventName","__dispatcher","DIRTY_TAG$1","getComponentCapturedArgs","isUpdatableRef","updateRef","getAttr","readDOMAttr","isSVG","namespaceURI","normalizeProperty","_transitionTo","priorState","currentState","exit","nearestOfType","detect","nearestWithProperty","willInsertElement","didInsertElement","willClearRender","willDestroyElement","didDestroyElement","parentViewDidChange","manager","setComponentManager$1","_Component","nativeDescDecorator","reopenClass","positionalParams","setInternalComponentManager","CURLY_COMPONENT_MANAGER","templateOnly","templateOnlyComponent","MODEL","ControllerMixin","isController","model","queryParams","_qpDelegate","_qpChanged","controller","_prop","dotIndex","Controller","inject$1","ContainerDebugAdapter","canCatalogEntriesByType","catalogEntriesByType","namespaces","types","typeSuffixRegex","iterate","RecordsWatcher","getCacheForItem","recordCache","recordCaches","hasBeenAdded","createCache","updated","wrapRecord","records","recordsAdded","recordsUpdated","recordsRemoved","release","recordArrayCache","untrack","removed","revalidate","TypeWatcher","hasBeenAccessed","DataAdapter","containerDebugAdapter","getFilters","watchModelTypes","typesAdded","typesUpdated","typesToSend","modelTypes","getModelTypes","releaseMethods","wrapped","wrapModelType","observeModelType","_nameToClass","Factory","watchRecords","modelName","getRecords","recordsWatchers","recordsWatcher","updateFlushWatchers","flushWatchers","typeWatchers","watcher","_klass","columnsForType","typeWatcher","columns","_getObjectsOnNamespaces","_name","columnValues","getRecordColumnValues","searchKeywords","getRecordKeywords","filterValues","getRecordFilterValues","color","getRecordColor","_record","debugSeal","debugFreeze","setDebugFunction","getDebugFunction","deprecateFunc","deprecate$1","captureRenderTree","_app","renderers","debugRenderTree","registerHandler","missingOptionDeprecation","HANDLERS","_type","_callback","functionToString","Function","objectKeys","LIST_LIMIT","SAFE_KEY","inspect","inspectValue","depth","valueIsArray","inspectKey","testing","isTesting","setTesting","destroyable","registerDestructor$1","unregisterDestructor","unregisterDestructor$1","StrictResolver","_StrictResolver_brand","_modules","_classPrivateFieldGet","_assertClassBrand","_normalizeModule","_normalizeName","_resolveSelf","_mainLookup","_defaultLookup","_nestedColocationLookup","hit","fileExtension","leadingDotSlash","_plural","camelCaseBoundary","spacesAndUnderscores","resolverFor","singleton","RoutingService","setupEngineRegistry","ensureInitializers","_initializersRan","_runInitializer","initialize","bucketName","initializersByName","graph","DAG","before","after","topsort","humanName","superclass","D","ENGINE_PARENT","cloneParentDependencies","buildChildEngineInstance","ChildEngine","engineInstance","setEngineParent","getEngineParent","registration","singletons","engine","setHelperManager$1","invokeHelper","invokeHelper$1","hash$1","array$1","concat$1","get$1","fn$1","gt","gt$1","gte","gte$1","lt$1","lte","lte$1","element$1","uniqueId$1","eq$1","neq","neq$1","and$1","or$1","not$1","subscribers","instrument","p1","p2","p3","_payload","binding","payload","_instrumentStart","NOOP","payloadFunc","payloadArg","subscriber","timeName","STRUCTURED_PROFILE","beforeValues","timestamp","constListeners","timeEnd","subscribe","paths","regexes","unsubscribe","setModifierManager$1","on$1","wrapGetterSetter","originalGet","propertyTag","track","dependentKeyCompat","isElementDescriptor","_desc","_meta","isClassicDecorator","setClassicDecorator","hasSetUnknownProperty","wasApplied","prototypeMixinMap","destroyCalled","ensureDestroyCalled","keyNames","keyName","descriptorForProperty","isDescriptor","baseValue","activateObserver","CoreObject","OWNER","applyMixin","_properties","_value","extension","toStringExtension","getFactoryFor","mixins","Class","PrototypeMixin","setFactoryFor","flattenProps","willReopen","detectInstance","metaForProperty","eachComputedProperty","empty","prototypeMixin","ownerConstructor","initProperties","addListener","addListener$1","removeListener","removeListener$1","sendEvent$1","BINDINGS_MAP","setupAction","actionFn","parentActions","bindings","observer","dependentKeys","funcOrDef","_DEFAULT_ASYNC_OBSERVERS","dependentKey","expandProperties","setObservers","generateComputedWithPredicate","additionalDependentKeys","predicateName","expandedProperties","extractProperty","lastIdx","notEmpty","none","bool","regexp","equal","oneWay","deprecatingAlias","isNativeOrEmberArray","reduceMacro","arrayMacro","multiArrayMacro","_dependentKeys","sum","Infinity","additionalDependentKeysOrCallback","cCallback","propertyKey","uniqBy$1","union","intersect","arrays","candidate","setDiff","setAProperty","setBProperty","setA","setB","collect","itemsKey","additionalDependentKeysOrDefinition","sortDefinition","sortDefinitionOrString","comparator","sortPropertiesKey","autoComputed","sortProperties","itemsKeyIsAtThis","normalizedSortProperties","itemA","itemB","getProperties","setProperties","notifyPropertyChange","hasObserverFor","incrementProperty","increment","decrementProperty","decrement","toggleProperty","cacheFor","PromiseProxyMixin","isPending","isSettled","isRejected","isFulfilled","promiseAlias","ObjectProxy","_location","_hashchangeHandler","getHash","originalPath","outPath","lastSetURL","replaceURL","onUpdateURL","_removeEventListener","_event","formatURL","_uuid","baseURL","_popstateHandler","initState","history","replaceState","rootURL","pathname","escapeRegExp","pushState","uuid","LinkToTemplate","templateFactory","EMPTY_QUERY_PARAMS","isMissing","isQueryParams","_routing","_LinkTo","InternalComponent","routing","currentRouteName","validateArguments","classFor","willBeActive","isLoading","route","models","query","generateURL","currentTarget","SVGAElement","baseVal","transition","transitionTo","namespaceRoute","currentRoute","currentRouteCache","isActiveForState","targetState","isEngine","engineMountPoint","mountPoint","currentWhen","isActiveForRoute","isSupportedArgument","_LinkTo2","descriptorFor","superOnUnsupportedArgument","onUnsupportedArgument","superModelsGetter","superQueryGetter","qp","LinkTo","opaquify","bucketKey","stash","bucket","controllerFor","controllerName","lookupOptions","isCallback","DSLImpl","enableLoadingSubstates","dummyErrorRoute","createRoute","resetNamespace","getFullName","dsl","generate","engineInfo","localFullName","routeInfo","serializeMethod","addRouteForEngine","explicitIndex","dslMatches","mount","engineRouteMap","as","instanceId","shouldResetEngineInfo","oldEngineInfo","optionsForChild","childDSL","substateName","generateControllerFactory","generateController","getPath","getQuery","getFullPath","QueryParams","RouterState","emberRouter","routerJsState","isActiveIntent","routeName","visibleQueryParams","_prepareQueryParams","shallowEqual","ROUTER","hasRoute","shouldReplace","_doTransition","normalizeQueryParams","_generateURL","_initialTransitionStarted","contexts","routerState","_routerMicrolib","recognizer","handlersFor","leafName","maximumContexts","handlerName","handlerInfos","req","currentPath","ALL_PERIODS_REGEX","extractRouteArgs","possibleOptions","qps","getActiveTargetName","routeInfos","activeTransition","STATE_SYMBOL","stashParamNames","_namesStashed","dynamicParent","targetRouteName","recogHandlers","_names","_stashNames","_calculateCacheValuePrefix","currPrefix","currPart","calculateCacheKey","suffixes","cacheValuePrefix","partRemovedPrefix","normalizeControllerQueryParams","qpMap","queryParam","accumulateQueryParamDescriptors","accum","_singleDesc","singleDesc","resemblesURL","prefixRouteNameArg","routable","aCount","bCount","kA","kB","updateCallback","RENDER","RENDER_STATE","bucketCache","_bucketCache","_topLevelViewTemplate","_environment","isProxy","_setRouteName","fullRouteName","getEngineRouteName","namePaths","_activeQPChanged","scopedPropertyName","_updatingQPChanged","urlKey","paramsFor","getQueryParamsFor","serializeQueryParamKey","controllerPropertyName","serializeQueryParam","_urlKey","defaultValueType","_serializeQueryParam","deserializeQueryParam","_deserializeQueryParam","_optionsForQueryParam","resetController","_controller","_isExiting","_transition","teardownViews","_internalReset","isExiting","inactive","intermediateTransitionTo","preparedArgs","propNames","propertyNames","lookupDescriptor","allowOverrides","PARAMS_SYMBOL","aQp","undecoratedDefaultValue","qpValues","setupController","flushAsyncObservers","beforeModel","afterModel","_resolvedModel","redirect","_model","contextDidChange","currentModel","sawParams","resolveIndex","_params","_paramsFor","_skipAssert","modelFor","modelLookupName","resolvedModels","templateFactoryOrComponent","templateName","hasInternalComponentManager","buildRouteInfoMetadata","_store","modelClass","_qp","combinedQueryParameterConfiguration","queryParameterConfiguraton","hasRouterDefinedQueryParams","controllerDefinedQueryParameterConfiguration","controllerQP","routeQP","keysAlreadyMergedOrSkippable","cqpName","rqpName","mergeEachQueryParams","propName","copyDefaultValue","defaultValueSerialized","serializedDefaultValue","getRenderState","getFullQueryParams","fullQueryParams","haveAllRouteInfosResolved","fullQueryParamsState","_deserializeQueryParams","queryParamsFor","qpValueWasPassedIn","_Route","defaultSerialize","hasDefaultSerialize","queryParamsDidChange","changed","_totalPresent","totalChanged","finalizeQueryParamChange","finalParams","replaceUrl","qpMeta","_queryParamsFor","_qpUpdates","qpUpdated","svalue","presentKey","queryParamsOnly","replaceConfigValue","routeQpMeta","cleanURL","_currentRouteName","_currentURL","_rootURL","_currentRoute","_doURLTransition","replaceWith","urlFor","routerMicrolib","currentQueryParams","recognize","internalURL","recognizeAndLoad","pivotRouteName","pivotRoute","_RouterService","K","dslCallbacks","_routePath","oldNameParts","intersectionMatches","a1","a2","_resetQueuedQueryParameterChanges","routerService","_routerService","_initRouterJs","PrivateRouter","getRoute","routeOwner","_engineInfoByRoute","_getEngineInstance","DefaultRoute","getSerializer","updateURL","didTransition","infos","willTransition","oldInfos","newInfos","ignoreFailure","routeWillChange","isIntermediate","routeDidChange","transitionDidError","wasAborted","isAborted","logAbort","_isErrorHandled","rollback","abort","doReplaceURL","_buildDSL","overrideNameAssertion","_hasModuleBasedResolver","_queuedQPChanges","initialURL","initialTransition","_didSetupRouter","_setupLocation","_setOutlets","currentRouteInfos","outlets","_toplevelView","setOutletState","OutletView","_url","routerJsMethod","didBeginTransition","updatePaths","instances","_engineInstances","queryParameterName","newValue","_fireQueryParamTransition","resolvedLocation","_serializeQueryParams","forEachQueryParam","defaultType","valueOf","_pruneDefaultQueryParamValues","_targetRouteName","_queryParams","_fromRouterService","_processActiveTransitionQueryParams","unchangedQPs","qpUpdates","_fullyScopeQueryParams","calculatePostTransitionState","_hydrateUnsuppliedQueryParams","_getQPMeta","leafRouteName","_qpCache","shouldCache","finalQPMeta","presentProp","appCache","qpLen","_scheduleLoadingEvent","originRoute","_cancelSlowTransitionTimer","_slowTransitionTimer","_handleSlowTransition","_markErrorAsHandled","_handledErrors","_clearHandledError","engineInstances","namedInstances","forEachRouteAbove","_EmberRouter","defaultActionHandlers","willResolveModel","_routeInfos","routeInfoWithError","errorRouteName","findRouteStateName","errorSubstateName","findRouteSubstateName","_error","initialMessage","errorArgs","targetName","routeInfoWithSlowLoading","loadingRouteName","loadingSubstateName","pivotHandler","substateNameFull","routeHasBeenDefined","stateNameFull","localName","routerHasRoute","ownerHasRoute","actionHandler","eventWasHandled","defaultHandler","applyIntent","isResolved","currentURL","qpCache","currentRunLoop","_getCurrentRunLoop","_queues","Backburner","defaultQueue","onBegin","onEnd","_current","onErrorTarget","onErrorMethod","methodOrTarget","methodOrArg","additionalArgs","curried","begin","_hasScheduledTimers","hasTimers","_cancelTimers","cancelTimers","timer","debounce","throttle","__emberTemplateCompiler","__registerTemplateCompiler","compileTemplate","compile","registerWaiter","unregisterWaiter","_impl","testingNotAvailableMessage","registerTestImplementation","impl","Test","TYPE_ORDER","null","boolean","function","filelist","spaceship","type1","type2","isComparable","localeCompare","vLen","wLen","maybeComparable","isBlank","hasUnknownProperty","isPresent","TYPE_MAP","DESTROYABLE_META","branded","isBrandedArray","newItem","getDestroyableMeta","slotted","own","DESTROYABLE_META_KEY","eagerDestructors","destructors","associateDestroyableChild","parentMeta","childMeta","destructorsKey","scheduleDestroy","scheduleDestroyed","destroyChildren","peekDestroyableMeta","_hasDestroyableChildren","InstructionEncoderImpl","encode","machine","TYPE_SIZE","ARG_SHIFT","patch","toIterator","toBool","getProp","setProp","setPath","warnIfStyleNotTrusted","scheduleRevalidate","debugAssert","setGlobalContext","NodeDOMTreeConstruction","DOMTreeConstruction","createHTMLDocument","setupUselessElement","insertHTMLBefore","raw","createRawHTMLSection","ConcreteBounds","dynamicLayout","dynamicTag","prepareArgs","createArgs","attributeHook","elementHook","dynamicScope","createCaller","createInstance","hasSubOwner","DEFAULT_TEMPLATE_BLOCK","opcodes","Yield","DEFAULT_TEMPLATE","WELL_KNOWN_EMPTY_ARRAY","STARTER_CONSTANTS","constants","WELL_KNOWN_EMPTY_ARRAY_POSITION","ConstantsImpl","indexMap","handles","toPool","hasHandle","handle","definitionState","_resolvedName","isOptional","helperDefinitionCache","managerOrHelper","getInternalHelperManager","getHelper","helperDefinitionCount","resolvedName","modifierDefinitionCache","getInternalModifierManager","modifierDefinitionCount","debugName","componentDefinitionCache","getInternalComponentManager","capabilityFlagsFrom","getCapabilities","getComponentTemplate","compilable","managerHasCapability","InternalComponentCapabilities","defaultTemplate","unwrapTemplate","asWrappedLayout","asLayout","componentDefinitionCount","resolvedComponent","resolvedDefinition","expect","getArray","reifiedArrs","reified","enumerate","artifacts","heap","ProgramHeapImpl","NULL_IDENTITY","KEY","INDEX","IDENTITY","WeakMapWithPrimitives","weakMap","_weakMap","primitiveMap","_primitiveMap","isIndexable","IDENTITIES","uniqueKeyFor","keyFor","memo","identities","createIteratorRef","listRef","createComputeRef","iterable","valueForRef","ArrayIterator","maybeIterator","IteratorWrapper","createIteratorItemRef","caches","LOCAL_LOGGER","LOGGER","clearElement","nextSibling","SERIALIZATION_FIRST_NODE_STRING","isSerializationFirstNode","strip","strings","out","lines","isPresentArray","getFirst","getLast","leading","stripped","assertNever","ARRAY_GETTER_METHODS","ARRAY_WRITE_THEN_READ_METHODS","convertToInt","_collection","_storages","_TrackedArray_brand","TrackedArray","_classPrivateMethodInitSpec","createUpdatableTag","_classPrivateFieldSet","boundFns","nativelyAccessingLengthFromWriteMethod","_readStorageFor","equals","_dirtyStorageFor","_dirtyCollection","storage","trackedArray","is","setPrototypeOf","_options2","_storages2","_collection2","_TrackedObject_brand","TrackedObject","descs","_readStorageFor2","_dirtyStorageFor2","_dirtyCollection2","deleteProperty","trackedObject","trackedSet","storages","dirtyStorageFor","trackedWeakSet","trackedMap","storageFor","trackedWeakMap","GLIMMER_VALIDATOR_REGISTRATION","Empty","SafeString","Fragment","Other","WellKnownAttrNames","WellKnownTagNames","resolution","Strict","ResolveAsComponentOrHelperHead","ResolveAsHelperHead","ResolveAsModifierHead","ResolveAsComponentHead","variant","isFlushElement","FlushElement","isAttribute","StaticAttr","DynamicAttr","TrustingDynamicAttr","ComponentAttr","StaticComponentAttr","TrustingComponentAttr","AttrSplat","isStringLiteral","expr","getStringFromValue","isHelper","Call","isGet","GetSymbol","EMPTY_ATTRS","indexOfAttribute","adjustAttrName","specified","ChildNodes","stale","oldLen","newChild","refChild","invalidate","previousSibling","lastChild","fragment","oldChild","_childNodes","SimpleNodeImpl","deep","copy","insertAdjacentHTML","getAttributeNS","setAttributeNS","qualifiedName","removeAttributeNS","doctype","createDocumentFragment","SET_TIMEOUT","buildNext","autorunPromise","iterations","buildPlatform","clearNext","NUMBER","isCoercableNumber","suspect","getOnError","findItem","findTimerItem","getQueueItems","queueItemLength","queueItemPositionOffset","queueItems","maybeError","queueItem","binarySearch","timers","middle","Queue","globalOptions","_queueBeingFlushed","targetQueues","_queue","stackFor","errorRecordedForStack","invokeWithOnError","mustYield","hasWork","queue","targetQueueMap","pushUnique","localQueueMap","queueIndex","_getDebugInfo","DeferredActionQueues","queueNames","queues","queueNameIndex","onceFlag","fromAutorun","numberOfQueues","iteratorDrain","DISABLE_SCHEDULE","parseArgs","argsIndex","methodOrArgs","parseDebounceArgs","isImmediate","wait","UUID","beginCount","endCount","beginEventCount","runCount","joinCount","deferCount","scheduleCount","scheduleIterableCount","deferOnceCount","scheduleOnceCount","setTimeoutCount","laterCount","throttleCount","debounceCount","cancelTimersCount","cancelCount","autorunsCreatedCount","autorunsCompletedCount","deferredActionQueuesCreatedCount","nestedDeferredActionQueuesCreated","DEBUG","currentInstance","instanceStack","_eventCallbacks","_timerTimeoutId","_timers","_autorun","_autorunStack","_defaultQueue","_onBegin","_onEnd","_boundRunExpiredTimers","_runExpiredTimers","_boundAutorunEnd","builder","_buildPlatform","_platform","counters","autoruns","created","completed","scheduleIterable","deferOnce","loops","total","nested","previousInstance","_cancelAutorun","callbacks","callbackFound","_run","_join","_ensureInstance","_later","argIndex","executeAt","_reinstallTimerTimeout","_clearTimerTimeout","timerType","_cancelLaterTimer","ensureInstance","getDebugInfo","autorun","deferredActionQueue","nextInstance","finallyAlreadyCalled","plannedNextQueue","_scheduleAutorun","_installTimerTimeout","arg1","arg2","_scheduleExpiredTimers","minExpiresAt","_vertices","Vertices","vertices","addEdge","addEdges","IntStack","vertex","flag","msg_1","pushIncoming","incomming","indices","createObject","createMap","__","Target","delegate","willAddRoute","addChild","Matcher","routes","generateMatch","startingPath","fullPath","addRoute","routeArray","eachRoute","baseRoute","normalizePath","normalizeSegment","contextEntered","SEGMENT_RESERVED_CHARS","segment","encodeURIComponent","PATH_SEGMENT_ENCODINGS","encodePathSegment","escapeRegex","getParam","eachChar","put","RouteRecognizer","ENCODE_AND_DECODE_PATH_SEGMENTS","EmptyObject","EmptyArray","segments","shouldDecodes","flags","isEqualCharSpec","spec","negate","State","repeat","nextStates","_regex","isMatch","recognizeChar","child$1","returned","RecognizeResults","decodeQueryParamPart","rootState","allSegments","generateQueryString","pairs","pair","arrayPair","parseQueryString","queryString","keyLength","isSlashDropped","hashStart","queryStart","pathLen","solutions","i$1","astatics","adynamics","astars","ref$1","bstatics","bdynamics","bstars","captures","currentCapture","isDynamic","Normalizer","addRouteCallback","ROUTE_INFOS","toReadOnlyRouteInfo","includeAttributes","localizeMapUpdates","LOCAL_ROUTE_INFOS","paramNames","metadata","isExtensible","routeInfoWithAttribute","createRouteInfoWithAttributes","routeInfosRef","thisArg","publicInfo","InternalRouteInfo","_processRoute","getModel","_context","routePromise","throwIfAborted","runBeforeModelHook","resolvedModel","runAfterModelHook","becomeResolved","resolvedContext","stashResolvedModel","contextsMatch","ResolvedRouteInfo","shouldSupersede","_route","fetchRoute","_routePromise","updateRoute","_internalName","isTransition","prepareResult","isPromise","UnresolvedRouteInfoByParam","fullParams","QUERY_PARAMS_SYMBOL","merge","UnresolvedRouteInfoByObject","isParam","TransitionIntent","handleError","errorHandlerIndex","TransitionError","resolveOneRouteInfo","promiseLabel","resolvedRouteInfo","wasAlreadyResolved","TransitionState","errorHandler","NamedTransitionIntent","applyToState","oldState","applyToHandlers","parsedHandlers","checkingIfActive","newState","invalidateIndex","oldHandlerInfo","newHandlerInfo","createParamHandlerInfo","getHandlerInfoForDynamicSegment","oldContext","handlerToUse","invalidateChildren","objectToUse","preTransitionState","preTransitionHandlerInfo","numNames","missingParams","oldParams","paramName","URLTransitionIntent","UnrecognizedURLError","statesDiffer","checkHandlerAccessibility","inaccessibleByURL","newRouteInfo","oldRouteInfo","logger","queryParamsTransition","changelist","wasTransitioning","fireQueryParamDidChange","newTransition","Transition","toReadOnlyInfos","_updateURL","toInfos","transitionByIntent","intent","getTransitionByIntent","generateNewState","readonlyInfos","routeInfosWithAttributes","queryParamChangelist","getChangelist","routeInfosEqual","setupContexts","otherRouteInfos","paramsEqual","finalizeTransition","notifyExistingHandlers","doTransition","modelsArray","lastArg","sequence","isTransitionAborted","partition","partitionRoutes","exited","unchanged","updatedContext","routeEnteredOrUpdated","entered","_changedQueryParams","_routeEnteredOrUpdated","routeChanged","oldRouteInfos","newRouteInfos","contextChanged","urlMethod","_visibleQueryParams","isCausedByInitialTransition","replaceAndNotAborting","isCausedByAbortingTransition","isQueryParamsRefreshTransition","replacingReplace","isCausedByAbortingReplaceTransition","resolvedHandlers","newQueryParams","finalQueryParamsArray","finalQueryParams","fromInfos","_lastQueryParams","oldRouteInfoLen","oldHandler","previousTransition","partitionedArgs","extractQueryParams","suppliedParams","routeParams","targetRouteInfos","targetHandler","recognizerHandlers","testState","routesEqual","activeQPsOnNewHandler","activeQueryParams","otherParams","otherKeys","makeComputedDecorator","AliasedProperty","AliasDecoratorImpl","descriptorForDecorator","ComputedDescriptor","propertyDesc","CHAIN_PASS_THROUGH","meta$1","tagMeta","lastRevision","getChainTagsForKey","finishLazyChains","_keyName","AliasedProperty_readOnlySet","AliasedProperty_oneWaySet","NS_MATHML","NS_SVG","badProtocols","badTags","badTagsForDataURI","badTagsForDataProtocol","badAttributes","badAttributesForDataURI","badAttributesForDataProtocol","checkURI","checkDataURI","checkDataProtocol","requiresSanitization","_protocolForUrlImplementation","protocolForUrl","weirdURL","URL","nodeURL","protocol","sanitizeAttributeValue","isSafeString","toHTML","normalizeStringValue","dynamicAttribute","isTrusting","buildDynamicAttribute","SafeDynamicProperty","InputValueDynamicAttribute","OptionSelectedDynamicAttribute","DefaultDynamicProperty","SafeDynamicAttribute","SimpleDynamicAttribute","DynamicAttribute","_env","normalizedValue","normalizeValue","__setAttribute","__setProperty","sanitized","castToBrowser","currentValue","First","Last","NewTreeBuilder","forInitialRender","resume","pushBlock","StackImpl","pushElement","getAppendOperations","updateOperations","getDOM","pushAppendingBlock","debugBlocks","blockStack","cursors","hasBlocks","popElement","AppendingBlockImpl","pushResettableBlock","ResettableBlockImpl","pushBlockList","AppendingBlockList","isRemote","didAppendBounds","__openBlock","popBlock","__closeBlock","openElement","__openElement","constructing","flushElement","__flushElement","pushModifiers","didOpenElement","closeElement","willCloseElement","popModifiers","pushRemoteElement","__pushRemoteElement","_guid","RemoteBlock","popRemoteElement","CursorImpl","modifierStack","didAppendNode","appendText","__appendText","__appendNode","__appendFragment","__appendComment","__appendHTML","appendDynamicHTML","trustedContent","appendDynamicText","untrustedContent","appendDynamicFragment","appendDynamicNode","appendComment","setStaticAttribute","setDynamicAttribute","trusting","setLocalDebugType","nesting","boundList","_node","_bounds","_stack","clientBuilder","SVG_INTEGRATION_POINTS","foreignObject","BLACKLIST_TABLE","DOMOperations","uselessElement","isElementInSVGNamespace","isHTMLIntegrationPoint","isElementInMathMlNamespace","ns","componentCapabilities","managerAPI","buildCapabilities","asyncLifeCycleCallbacks","hasAsyncLifeCycleCallbacks","hasUpdateHook","CustomComponentManager","getDelegateFor","componentManagerDelegates","vmArgs","argsProxyFor","CustomComponentState","updateComponent","didCreate","didCreateComponent","didUpdateComponent","didRenderLayout","didUpdateLayout","getSelf","createConstRef","modifierCapabilities","optionalFeatures","disableAutoTracking","CustomModifierManager","capturedArgs","getTag","install","setInternalModifierManager","setInternalHelperManager","CustomHelperManager","hasScheduledEffect","getDelegateForOwner","helperManagerDelegates","undefinedDelegate","UNDEFINED_REFERENCE","FunctionHelperManager","COMPONENT_MANAGERS","MODIFIER_MANAGERS","HELPER_MANAGERS","setManager","getManager","DEFAULT_MANAGER","hasInternalHelperManager","hasInternalModifierManager","CUSTOM_TAG_FOR","getCustomTagFor","customTagFn","NamedArgsProxy","PositionalArgsProxy","namedHandler","positionalHandler","namedTarget","namedProxy","positionalProxy","getNamedTag","_obj","namedArgs","getPositionalTag","positionalArgs","checker","hasCustomDebugRenderTreeLifecycle","validate","$s0","$s1","$sp","$fp","$ra","$pc","$t0","$t1","$v0","expected","INNER","ARGS","RESOLVED","CURRIED_VALUES","isCurriedValue","isCurriedType","CurriedValue","resolveCurriedValue","curriedValue","currentWrapper","curriedArgs","curriedNamed","curriedPositional","curry","GUID","Ref","DebugRenderTreeImpl","internalNode","refs","nodeFor","commit","captureRefs","roots","captured","captureNode","captureBounds","reifyArgsDebug","externs","vm","APPEND_OPCODES","VM_SYSCALL_SIZE","evaluateOpcode","syscall","opcode","operation","unwrap","isMachine","lowlevel","VM_CHILD_SCOPE_OP","pushChildScope","VM_POP_SCOPE_OP","popScope","VM_PUSH_DYNAMIC_SCOPE_OP","pushDynamicScope","VM_POP_DYNAMIC_SCOPE_OP","popDynamicScope","VM_CONSTANT_OP","op1","decodeHandle","VM_CONSTANT_REFERENCE_OP","VM_PRIMITIVE_OP","primitive","isHandle","decodeImmediate","VM_PRIMITIVE_REFERENCE_OP","NULL_REFERENCE","TRUE_REFERENCE","FALSE_REFERENCE","createPrimitiveRef","VM_DUP_OP","op2","fetchValue","dup","VM_POP_OP","VM_LOAD_OP","VM_FETCH_OP","fetch","VM_BIND_DYNAMIC_SCOPE_OP","bindDynamicScope","VM_ENTER_OP","VM_EXIT_OP","VM_PUSH_SYMBOL_TABLE_OP","_table","VM_PUSH_BLOCK_SCOPE_OP","VM_COMPILE_BLOCK_OP","VM_INVOKE_YIELD_OP","table","pushFrame","pushScope","invokingScope","locals","parameters","localsCount","bindSymbol","VM_JUMP_UNLESS_OP","isConstRef","goto","updateWith","Assert","VM_JUMP_EQ_OP","comparison","VM_ASSERT_SAME_OP","VM_TO_BOOLEAN_OP","valueRef","AssertFilter","JumpIfNotModifiedOpcode","CONSTANT_TAG","INITIAL","didModify","alwaysRevalidate","BeginTrackFrameOpcode","debugLabel","beginTrackFrame","EndTrackFrameOpcode","endTrackFrame","VM_TEXT_OP","tree","VM_COMMENT_OP","VM_OPEN_ELEMENT_OP","VM_OPEN_DYNAMIC_ELEMENT_OP","VM_PUSH_REMOTE_ELEMENT_OP","elementRef","insertBeforeRef","guidRef","associateDestroyable","createCapturedArgs","VM_POP_REMOTE_ELEMENT_OP","VM_FLUSH_ELEMENT_OP","loadValue","VM_CLOSE_ELEMENT_OP","scheduleInstallModifier","VM_MODIFIER_OP","addModifier","UpdateModifierOpcode","VM_DYNAMIC_MODIFIER_OP","outerPositional","outerNamed","initialOwner","instanceRef","hostDefinition","CURRIED_MODIFIER","curriedOwner","updateOpcode","UpdateDynamicModifierOpcode","lastUpdated","scheduleUpdateModifier","CURRENT_TAG","newInstance","VM_STATIC_ATTR_OP","op3","_namespace","VM_DYNAMIC_ATTR_OP","_trusting","UpdateDynamicAttributeOpcode","initialized","VM_PUSH_COMPONENT_DEFINITION_OP","VM_RESOLVE_DYNAMIC_COMPONENT_OP","_isStrict","lookupComponent","VM_RESOLVE_CURRIED_COMPONENT_OP","VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP","VM_PUSH_ARGS_OP","_blockNames","positionalCount","atNames","blockNames","EMPTY_STRING_ARRAY","VM_PUSH_EMPTY_ARGS_OP","VM_CAPTURE_ARGS_OP","VM_PREPARE_ARGS_OP","CURRIED_COMPONENT","realloc","blocks","VM_CREATE_COMPONENT_OP","hasDefaultBlock","UpdateComponentOpcode","VM_REGISTER_COMPONENT_DESTRUCTOR_OP","VM_BEGIN_COMPONENT_TRANSACTION_OP","beginCacheGroup","VM_PUT_COMPONENT_OPERATIONS_OP","ComponentElementOperations","VM_COMPONENT_ATTR_OP","VM_STATIC_COMPONENT_ATTR_OP","dict","DebugRenderTreeUpdateOpcode","DebugRenderTreeDidRenderOpcode","setDeferredAttr","mergeClasses","bindBlock","blockName","symbols","VM_DID_CREATE_ELEMENT_OP","didCreateElement","VM_GET_COMPONENT_SELF_OP","selfRef","getDynamicLayout","getDebugCustomRenderTree","VM_GET_COMPONENT_TAG_NAME_OP","getTagName","VM_GET_COMPONENT_LAYOUT_OP","symbolTable","VM_MAIN_OP","invocation","VM_POPULATE_LAYOUT_OP","VM_VIRTUAL_ROOT_SCOPE_OP","pushRootScope","VM_SET_NAMED_VARIABLES_OP","callerNames","atName","VM_SET_BLOCKS_OP","symbolNames","VM_INVOKE_COMPONENT_LAYOUT_OP","VM_DID_RENDER_LAYOUT_OP","EMPTY_ARGS","DidUpdateLayoutOpcode","VM_COMMIT_COMPONENT_TRANSACTION_OP","commitCacheGroup","_vm","REFERENCE","VMArgumentsImpl","PositionalArgumentsImpl","NamedArgumentsImpl","BlockArgumentsImpl","registers","namedCount","namedBase","positionalBase","blocksCount","blocksBase","newBase","EMPTY_POSITIONAL","EMPTY_NAMED","EMPTY_REFERENCES","emptyArray","_references","references","_atNames","toSyntheticName","toAtName","newNames","toSymbolName","EMPTY_BLOCK_VALUES","_symbolNames","internalTag","internalValues","CapturedBlockArgumentsImpl","reifyNamed","reifyPositional","reifyArgs","ARGUMENT_ERROR","isArgumentError","ArgumentErrorImpl","he","startIdx","removeAmt","addAmt","notify","removedAmount","previousLength","normalStartIdx","CHUNK_SIZE","chunk","arrayObserversHelper","EMPTY_NUMBER_ARRAY","isEmptyArray","zipTuples","zipArrays","$REVISION","COMPUTE","snapshot","MonomorphicTagImpl","subtag","lastChecked","isUpdating","subtagValue","subtagBufferCache","lastValue","updateTag","_tag","_subtag","dirtyTag","disableConsumptionAssertion","isConstTag","VolatileTag","NaN","VOLATILE_TAG","CurrentTag","tag1","tag2","tag3","Tracker","CURRENT_TRACKER","OPEN_TRACK_FRAMES","debuggingContext","beginUntrackFrame","endUntrackFrame","resetTracking","isTracking","FN","LAST_VALUE","TAG","SNAPSHOT","debuggingLabel","L","isConst","EMPTY","capability","_manager","hasCapability","SELF_TAG","customTagFor","markObjectAsDirty","dirtyTagFor","lazyTags","deps","getChainTagsForKeys","getChainTags","chainTags","currentTagMeta","currentMeta","pathLength","segmentEnd","lastSegmentEnd","arrLength","instanceMeta","placeholderTag","isDict","nth","END_WITH_EACH_REGEX","dive","newStart","arrayLength","tempArr","previousDesc","wasDescriptor","defineDecorator","defineValue","revalidateObservers","flushSyncObservers","suspendedObserverDeactivation","resumeObserverDeactivation","changeProperties","ComputedProperty","maybeConfig","_hasConfig","_getter","objectConfig","_setter","_property","passedArgs","addArg","_readOnly","_throwReadOnlyError","isComponent","_set","hadCachedValue","cachedValue","setObserverSuspended","AutoComputedProperty","ComputedDecoratorImpl","isComputed","getCachedValueFor","factoryManagerCache","isSingleton","factoryManager","isInstantiatable","destroyDestroyables","finalizeDestroy","resetCache","member","injection","InternalFactoryManager","INIT_FACTORY","madeToString","problem","referenceForParts","rootRef","childRefFor","childRefFromParts","parseAttributeBinding","microsyntax","colonIndex","installAttributeBinding","isSimple","elementIdRef","createSimpleClassNameBindingRef","dasherizedPath","ComponentStateBucket","argsTag","hasWrappedElement","classRef","argsRevision","processComponentArgs","MutableCell","REF","COMPONENT_ARGS_MAP","EMBER_VIEW_REF","CurlyComponentManager","CURLY_MANAGER_BRAND","templateFor","layout","layoutName","CURLY_CAPABILITIES","__ARGS__","__args__","callerSelfRef","initialRenderInstrumentDetails","attributeBindings","truthy","falsy","isPath","rerenderInstrumentDetails","initialRender","isCurlyManager","maybeTarget","maybeKey","maybeDesc","_propertyDesc","DESCRIPTOR_SETTER_FUNCTION","COMPUTED_SETTERS","DecoratorClass","DECORATOR_DESCRIPTOR_MAP","dec","_dict","ELEMENT_CAPABILITIES","ELEMENT_COMPONENT_MANAGER","_owner","ElementComponentDefinition","ELEMENT_DEFINITIONS","internalHelper","getElementDefinition","EXTEND_PROTOTYPES","LOG_STACKTRACE_ON_DEPRECATION","LOG_VERSION","LOG_INSPECTOR_HINT","RAISE_ON_DEPRECATION","_DEBUG_RENDER_TREE","_RERENDER_LOOP_LIMIT","EmberENV","getENV","targetOrFunction","functionOrName","setListeners","normalizeTextValue","sourceRef","pathRef","GUID_PREFIX","OBJECT_GUIDS","NON_OBJECT_GUIDS","GUID_KEY","generateGuid","Window","callbackRef","invocationArgs","isInvokableRef","isClassicHelper","disallowDynamicResolution","nameOrValueRef","typeRef","locRef","originalRef","inElementNullCheckHelper","normalizeClassHelper","classNameArg","valueArg","classNameParts","fullNameRef","trackArray","EachInWrapper","eachIn","instrumentationPayload","BUILTIN_KEYWORD_HELPERS","mut","createInvokableRef","readonly","firstArg","createReadOnlyRef","unbound","createUnboundRef","BUILTIN_HELPERS","BUILTIN_KEYWORD_MODIFIERS","BUILTIN_MODIFIERS","ResolverImpl","lookupPartial","lookupHelper","lookupBuiltInHelper","lookupModifier","builtin","lookupBuiltInModifier","cachedComponentDefinition","TEMPLATE_ONLY_COMPONENT_MANAGER","BoundedIterator","memoFor","fromForEachable","EmberArrayIterator","ObjectIterator","fromIndexable","isMapLike","NativeIterator","ArrayLikeNativeIterator","_result","MapLikeNativeIterator","hasForEach","isNativeIterable","isHTMLSafe","_getProp","_setProp","finalizeDestructor","EmberEnvironmentDelegate","onTransactionCommit","NO_OP","errorLoopTransaction","_result2","_render","ComponentRootState","renderComponent$1","into","isFor","_possibleRoot","destroyed","_resetRenderers","renderSettledDeferred","_data","_lastRevision","_inRenderTransaction","_destroyed","_roots","_removedRoots","_registered","_RendererState_brand","RendererState","clearAllRoots","inRenderTransaction","renderRoot","_removeRoot","_register","_renderRootsTransaction","renderRoots","initialRootsLength","removedRoots","inTransaction","_deregister","completedWithoutError","rootIndex","renderComponent","RENDERER_CACHE","BaseRenderer","strict","RENDER_CACHE","glimmerResult","renderTarget","innerResult","envOptions","sharedArtifacts","runtimeOptions","EvaluationContextImpl","RuntimeOpImpl","isChrome","chrome","opera","__proto__","toStringTag","TrustedHTML","__string","trustHTML","isTrustedHTML","makeResolutionTypeVerifier","typeToVerify","GetStrictKeyword","GetLexicalSymbol","isGetFreeComponent","GetFreeAsComponentHead","isGetFreeModifier","GetFreeAsModifierHead","isGetFreeHelper","GetFreeAsHelperHead","isGetFreeComponentOrHelper","GetFreeAsComponentOrHelperHead","upvars","HighLevelResolutionOpcodes","HighLevelBuilderOpcodes","labelOperand","stdlibOperand","symbolTableOperand","layoutOperand","Labels","labels","targets","address","getbyaddr","setbyaddr","encodeOp","encoder","program","operands","startLabels","stopLabels","scopeValues","lexical","ifComponent","ifHelper","ifValue","freeVar","andThen","valueIndex","EncoderImpl","stdlib","malloc","errors","pushMachine","VM_RETURN_OP","finishMalloc","MACHINE_MASK","pushRaw","operand","encodeHandle","currentLabels","containing","CompilableTemplateImpl","labelsStack","templateCompilationContext","evaluation","Compilers","funcs","sexp","EXPRESSIONS","withPath","VM_GET_PROPERTY_OP","expression","PushPrimitive","PushPrimitiveReference","isSmallInt","encodeImmediate","VM_PUSH_FRAME_OP","SimpleArgs","VM_HELPER_OP","VM_POP_FRAME_OP","CallDynamic","VM_DYNAMIC_HELPER_OP","YieldBlock","VM_GET_BLOCK_OP","VM_SPREAD_BLOCK_OP","PushYieldableBlock","PushCompilable","InvokeStaticBlock","VM_INVOKE_VIRTUAL_OP","InvokeStaticBlockWithStack","callerCount","calleeCount","VM_SET_VARIABLE_OP","_block","CompilePositional","scopeRecord","Concat","VM_CONCAT_OP","Curry","VM_CURRY_OP","sym","VM_GET_VARIABLE_OP","Undefined","HasBlock","VM_HAS_BLOCK_OP","HasBlockParams","VM_HAS_BLOCK_PARAMS_OP","IfInline","VM_IF_INLINE_OP","Not","VM_NOT_OP","GetDynamicVar","VM_GET_DYNAMIC_VAR_OP","Log","VM_LOG_OP","NamedBlocksImpl","with","hasAny","EMPTY_BLOCKS","namedBlocks","SwitchCases","clauses","clause","VM_JUMP_OP","Replayable","VM_RETURN_TO_OP","ReplayableIf","ifTrue","ifFalse","ATTRS_BLOCK","InvokeComponent","_elementBlock","_blocks","elementBlock","InvokeNonStaticComponent","blockSymbols","argSymbols","argNames","VM_ROOT_SCOPE_OP","VM_SET_BLOCK_OP","InvokeDynamicComponent","bindableBlocks","bindableAtNames","invokePreparedComponent","hasBlock","populateLayout","InvokeBareComponent","STATEMENTS","INFLATE_ATTR_TABLE","INFLATE_TAG_TABLE","inflateTagName","inflateAttrName","attrName","hashToArgs","Comment","CloseElement","OpenElement","OpenElementWithSplat","Debugger","VM_DEBUGGER_OP","Append","VM_INVOKE_STATIC_OP","VM_DYNAMIC_CONTENT_TYPE_OP","when","ContentType","TrustingAppend","Block","InElement","If","inverse","Each","VM_ENTER_LIST_OP","VM_ITERATE_OP","VM_EXIT_LIST_OP","Let","WithDynamicVars","expressions","statements","compiled","compileStatements","syntaxContext","sCompiler","pushOp","statement","WrappedBuilder","attrsBlockIndex","attrsBlockNumber","syntax","clientId","templateCacheCounters","cacheHit","cacheMiss","templateId","parsedBlock","ownerlessTemplate","templateCache","TemplateImpl","__id","__meta","parsedLayout","referrer","wrappedLayout","elementDescriptor","caller","listenerFor","OPAQUE_CONSTRUCTOR_MAP","opaque","INTERNAL_COMPONENT_MANAGER","_dynamicScope","getArgs","argsCache","SimpleArgsProxy","computeArgs","PROXIES","TRACKED_TAGS","a_concat","concatenatedMixinProperties","concatProp","concats","giveDecoratorSuper","originalGetter","superDesc","superProperty","superGetter","originalSetter","superSetter","newProperty","giveMethodSuper","superMethod","simpleMakeArray","applyConcatenatedProperties","applyMergedProperties","hasFunction","propValue","ROOT","mergeMixins","keysWithSuper","currentMixin","MIXINS","mergeProps","_without","mergings","propKeys","updateObserversAndListeners","isFunction","observerListenerMetaFor","observers","updateObserver","updateListener","_hideKeys","buildMixinsArray","setUnprocessedMixins","applyPartial","_detect","_keys","curMixin","targetMixin","NAMES","searchDisabled","_unprocessedNamespaces","unprocessedNamespaces","unprocessedMixins","isUppercase","tryIsNamespace","_processNamespace","isSearchDisabled","setSearchDisabled","move","shouldCoerce","isString","isFragment","changeEvent","SYNC_DEFAULT","SYNC_OBSERVERS","ASYNC_OBSERVERS","deactivateObserver","activeObservers","observerMap","suspended","DEACTIVATE_SUSPENDED","SCHEDULED_DEACTIVATE","lastKnownRevision","_schedule","currentRevision","sendObserver","OnModifierState","arg0","userProvidedCallback","_once","_passive","_capture","shouldUpdate","adds","removes","OPERAND_LEN_MASK","TYPE_MASK","PAGE_SIZE","Int32Array","handleTable","handleState","sizeCheck","newHeap","getaddr","sizeof","free","compactedSize","ProgramImpl","_opcode","StdLib","trustingGuardedAppend","cautiousGuardedAppend","trustingNonDynamicAppend","cautiousNonDynamicAppend","getAppend","StdAppend","nonDynamicAppend","VM_CONTENT_TYPE_OP","VM_APPEND_HTML_OP","VM_APPEND_TEXT_OP","VM_APPEND_SAFE_HTML_OP","VM_APPEND_DOCUMENT_FRAGMENT_OP","VM_APPEND_NODE_OP","compileStd","mainHandle","trustingGuardedNonDynamicAppend","cautiousGuardedNonDynamicAppend","trustingGuardedDynamicAppend","cautiousGuardedDynamicAppend","STDLIB_META","createOp","runtime","firstDotIndexCache","PROXY_CONTENT","_getPath","forSet","fakeProxy","tolerant","newRoot","trySet","slotName","lower","ATTR_OVERRIDES","INPUT","form","autocorrect","SELECT","OPTION","TEXTAREA","LABEL","FIELDSET","LEGEND","OBJECT","OUTPUT","BUTTON","EmberTesting","Adapter","ReferenceImpl","newTag","_parentRef","parentRef","isLowLevelRegister","RehydratingCursor","startingBlockDepth","openBlockDepth","RehydrateTree","currentCursor","isOpenBlock","startingBlockOffset","getBlockDepth","newBlockDepth","newCandidate","closingNode","isCloseBlock","newClosingBlock","disableRehydration","enableRehydration","blockDepth","clearMismatch","getBlockDepthWithOffset","isRehydrating","candidateBounds","markerBounds","newBounds","possibleEmptyMarker","_candidate","isMarker","COMMENT_NODE","unmatchedAttributes","injectedOmittedNode","unmatched","findByName","getMarker","marker","castToSimple","cursorId","rehydrationBuilder","DynamicScopeImpl","ScopeImpl","sized","slots","callerScope","getSymbol","getBlock","bindSelf","bindCallerScope","getCallerScope","WHITESPACE","isWhitespace","DOMChangesImpl","insertAfter","DOMChanges","TRANSACTION","TransactionImpl","createdComponents","updatedComponents","scheduledInstallModifiers","scheduledUpdateModifiers","modifierTag","EnvironmentImpl","enableDebugTooling","isArgumentCaptureError","appendOperations","transaction","castToString","resolveHelper","isUndefinedReference","curriedDefinition","helperRef","helperInstanceRef","CURRIED_HELPER","resolvedDef","helperValueRef","referenceForSymbol","handleOrCompilable","hasBlockParams","partsRefs","nameRef","DynamicTextContent","toContentType","toDynamicContentType","debugCallback","setDebuggerCallback","resetDebuggerCallback","_symbols","ScopeInspector","tail","_debugInfo","debuggerInfo","inspector","relativeStart","elseTarget","keyRef","keyValue","iteratorRef","enterList","exitList","breaks","registerItem","enterItem","LowLevelVM","fetchRegister","loadRegister","setPc","pc","popFrame","pushSmallFrame","popSmallFrame","currentOpSize","returnTo","nextStatement","operationSize","evaluateOuter","evaluateInner","evaluateMachine","evaluateSyscall","UpdatingVM","_execute","frameStack","try","ops","UpdatingVMFrame","handleException","BlockOpcode","TryOpcode","pushUpdating","ListItemOpcode","shouldRemove","retained","ListBlockOpcode","iterableRef","lastIterator","initializeChild","opcodeMap","itemMap","currentOpcodeIndex","seenIndex","retainItem","itemOpcode","moveItem","seenUnretained","insertItem","deleteItem","elementStack","currentSibling","exceptionHandler","RenderResultImpl","updating","EvaluationStackImpl","restore","Drop","Stacks","_stacks","_registers","_tree","VM","evalStack","unwrapHandle","captureClosure","Closure","guard","tryOpcode","didEnter","memoRef","listBlock","addr","popUpdating","TemplateIteratorImpl","renderSync","renderMain","numSymbols","argList","callbacksFor","_promiseCallbacks","EventTarget","allCallbacks","queue$1","_guidKey","_id","childId","_label","timeStamp","childGuid","resolve$2","resolve$1","PENDING","handleMaybeThenable","maybeThenable","then$1","fulfill","_onError","reject$2","sealed","publishRejection","publish","_subscribers","onFulfillment","onRejection","settled","invokeCallback","hasCallback","succeeded","Enumerator","abortOnReject","_instanceConstructor","_abortOnReject","_isUsingOwnPromise","_isUsingOwnResolve","_init","_remaining","_enumerate","_eachEntry","_checkFullfillment","_settleMaybeThenable","firstPass","_settledAt","_willSettleAt","_setResultAt","setSettledResult","guidKey","wrapThenable","onFulFillment","denodeify","nodeFunc","promiseInput","argumentNames","handleValueInput","cast","AllSettled","PromiseHash","HashSettled","rethrow","MapEnumerator","mapFn","_mapFn","promises","EMPTY_OBJECT","FilterEnumerator","filterFn","vertxNext","asap","scheduleFlush","browserWindow","browserGlobal","BrowserMutationObserver","WebKitMutationObserver","isWorker","Uint8ClampedArray","importScripts","useSetTimeout","nextTick","versions","setImmediate","channel","onmessage","vertx","runOnLoop","runOnContext","__PROMISE_INSTRUMENTATION__","rsvp","NEEDS_EXTRA_CLOSE","SerializeBuilder","serializeBlockDepth","openIndex","script","serializeBuilder","CAPABILITIES_MASK","OUTLET_MANAGER","parentStateRef","currentStateRef","parentState","parentOwner","currentOwner","_definition","OUTLET_COMPONENT_TEMPLATE","OutletComponent","RootTemplate","RootComponentManager","ROOT_CAPABILITIES","RootComponentDefinition","CAPABILITIES$1","MOUNT_MANAGER","modelRef","controllerFactory","MountDefinition","mountHelper","lastName","lastDef","ROUTE_TEMPLATE_MANAGER","RouteTemplate","unwrapped","makeRouteTemplate","routeTemplate","outletHelper","outletRef","lastState","outlet","outletState","outletOwner","outletController","currentOutlet","ROUTER_KEYWORD_HELPERS","RouterResolver","TOP_LEVEL_NAME","outletStateTag","DynamicScope","ClassicRootState","possibleRoot","Renderer","_viewRegistry","rootTemplate","viewRegistry","_rootTemplate","appendOutletView","outletView","_appendDefinition","cleanupRootFor","_isInteractive","OutletTemplate","Input","Textarea","sugaryCheck","HAS_SUPER_PATTERN","fnToString","checkHasSuper","HAS_SUPER_MAP","hasSuper","ObserverListenerMeta","OBSERVERS_LISTENERS_MAP","createObserverListenerMetaFor","IS_WRAPPED_FUNCTION_SET","superFunc","_wrap","superWrapper","orig","SIGN_BIT","MAX_INT","MIN_INT","TemplateOnlyComponentManager","TemplateOnlyComponentDefinition","InputTemplate","valueForEvent","valueFrom","LocalValue","UpstreamValue","ForkedValue","_LocalValue","upstream","upstreamValue","lastUpstreamValue","local","AbstractInput","valueDidChange","keyUp","isVirtualEventListener","isValidInputType","_AbstractInput","INPUT_TYPES","INPUT_ELEMENT","checkbox","_Input","checked","isCheckbox","_checked","checkedDidChange","_Input2","TextareaTemplate","_Textarea","_Textarea2","descriptorForField","DECORATOR_OPTION_KEYS","trackedValue","setter","trackedData","newDesc","isTracked","TrackedDescriptor","_get","hasInitializer","_isFrozen","TrackedValue","updater","buildTransitionAborted","maybe","maybeAbortable","coerceQueryParamsToString","oldObject","newObject","oldElement","newElement","REDIRECT_DESTINATION_SYMBOL","handlerInfo","currentSequence","onFulfilled","onRejected","retry","ANSI_COLORS","linkRegex","Anser","escapeForHtml","txt","linkify","ansiToHtml","ansiToJson","ansiToText","fg","bg","fg_truecolor","bg_truecolor","bright","decorations","setupPalette","PALETTE_COLORS","levels","json","clearLine","markup","raw_text_chunks","first_chunk","color_chunks","processChunk","processChunkJson","remove_empty","use_classes","isInverted","decoration","was_processed","nums","num_str","removeDecoration","is_foreground","mode","palette_index","jsonChunk","tmpFg","tmpFgTrue","colors","textDecorations","render_data","fragments","ansiSegments","classNamesFor","LINE_END","Uint8Array","NO_BYTES","IAC","OPTION_COMMANDS","SECURE_MODES","LINE_MODES","LOCKING_MODES","textEncoder","TextEncoder","textDecoder","TextDecoder","isParameterByte","byte","windowFrom","bytes","mostBytes","subarray","_bytes","ByteWriter","_this$length","writeAll","written","_mode","_lockedMode","_pending","_isLineStarted","_GameTextRenderer_brand","GameTextRenderer","game","_rendered","command","_endLine","newBytes","consumed","_telnet","_escape","_character","_unfinished","_subnegotiation","subnegotiation","bracket","final","decode","_setMode","_tagEnd","closingQuote","wholeLog"],"sources":["webpack://__ember_auto_import__/node_modules/.pnpm/@bbob+parser@4.4.1/node_modules/@bbob/parser/lib/NodeList.js","webpack://__ember_auto_import__/node_modules/.pnpm/@bbob+parser@4.4.1/node_modules/@bbob/parser/lib/Token.js","webpack://__ember_auto_import__/node_modules/.pnpm/@bbob+parser@4.4.1/node_modules/@bbob/parser/lib/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/@bbob+parser@4.4.1/node_modules/@bbob/parser/lib/lexer.js","webpack://__ember_auto_import__/node_modules/.pnpm/@bbob+parser@4.4.1/node_modules/@bbob/parser/lib/parse.js","webpack://__ember_auto_import__/node_modules/.pnpm/@bbob+parser@4.4.1/node_modules/@bbob/parser/lib/utils.js","webpack://__ember_auto_import__/node_modules/.pnpm/@bbob+plugin-helper@4.4.1/node_modules/@bbob/plugin-helper/lib/TagNode.js","webpack://__ember_auto_import__/node_modules/.pnpm/@bbob+plugin-helper@4.4.1/node_modules/@bbob/plugin-helper/lib/char.js","webpack://__ember_auto_import__/node_modules/.pnpm/@bbob+plugin-helper@4.4.1/node_modules/@bbob/plugin-helper/lib/helpers.js","webpack://__ember_auto_import__/node_modules/.pnpm/@bbob+plugin-helper@4.4.1/node_modules/@bbob/plugin-helper/lib/index.js","webpack://__ember_auto_import__/src/waiter-manager.ts","webpack://__ember_auto_import__/src/build-waiter.ts","webpack://__ember_auto_import__/src/wait-for-promise.ts","webpack://__ember_auto_import__/src/wait-for.ts","webpack://__ember_auto_import__/src/wait-for-fetch.ts","webpack://__ember_auto_import__/node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","webpack://__ember_auto_import__/node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs","webpack://__ember_auto_import__/node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","webpack://__ember_auto_import__/node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js","webpack://__ember_auto_import__/src/components/fa-icon.gts","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-regular-svg-icons@7.3.1/node_modules/@fortawesome/free-regular-svg-icons/faClipboard.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-regular-svg-icons@7.3.1/node_modules/@fortawesome/free-regular-svg-icons/faCopy.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faAngleDown.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faAngleLeft.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faAngleRight.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faAngleUp.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faAnglesDown.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faAnglesUp.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faArrowDown.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faArrowDownWideShort.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faArrowLeft.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faArrowRight.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faArrowUp.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faArrowUpShortWide.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faArrowsRotate.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faBackward.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faBan.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faBars.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faBell.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faBroom.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faCheck.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faCircleCheck.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faCircleDot.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faCircleExclamation.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faCircleInfo.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faCirclePause.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faCircleQuestion.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faClock.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faClockRotateLeft.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faDownload.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faEye.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faEyeSlash.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faFlag.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faFlagCheckered.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faGear.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faGhost.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faHandPointer.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faHashtag.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faHeartCrack.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faHeartPulse.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faHourglassEnd.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faHourglassHalf.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faKey.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faLocationDot.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faLock.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faMagnifyingGlass.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faMagnifyingGlassMinus.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faMagnifyingGlassPlus.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faMap.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faMinus.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faPaperPlane.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faPen.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faPersonRunning.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faPersonWalking.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faPlay.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faPlug.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faPlus.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faPowerOff.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faRightLeft.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faRotateLeft.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faRoute.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faServer.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faShieldHalved.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faShoePrints.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faShuffle.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faSkull.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faStairs.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faStop.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faTerminal.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faToggleOn.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faTowerBroadcast.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faTrash.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faTriangleExclamation.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faUser.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faWater.js","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+free-solid-svg-icons@7.3.1/node_modules/@fortawesome/free-solid-svg-icons/faXmark.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/enums.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindow.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/applyStyles.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getBasePlacement.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/math.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/userAgent.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/contains.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/within.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/expandToHashMap.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/arrow.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getVariation.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/computeStyles.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/eventListeners.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/rectToClientRect.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/computeOffsets.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/detectOverflow.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/flip.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/hide.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/offset.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/getAltAxis.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/orderModifiers.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/createPopper.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/debounce.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/utils/mergeByName.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/popper.js","webpack://__ember_auto_import__/node_modules/.pnpm/@popperjs+core@2.11.8/node_modules/@popperjs/core/lib/popper-lite.js","webpack://__ember_auto_import__/js/src/dom/data.js","webpack://__ember_auto_import__/js/src/util/index.js","webpack://__ember_auto_import__/js/src/dom/event-handler.js","webpack://__ember_auto_import__/js/src/dom/manipulator.js","webpack://__ember_auto_import__/js/src/util/config.js","webpack://__ember_auto_import__/js/src/base-component.js","webpack://__ember_auto_import__/js/src/dom/selector-engine.js","webpack://__ember_auto_import__/js/src/util/component-functions.js","webpack://__ember_auto_import__/js/src/alert.js","webpack://__ember_auto_import__/js/src/button.js","webpack://__ember_auto_import__/js/src/util/swipe.js","webpack://__ember_auto_import__/js/src/carousel.js","webpack://__ember_auto_import__/js/src/collapse.js","webpack://__ember_auto_import__/js/src/dropdown.js","webpack://__ember_auto_import__/js/src/util/backdrop.js","webpack://__ember_auto_import__/js/src/util/focustrap.js","webpack://__ember_auto_import__/js/src/util/scrollbar.js","webpack://__ember_auto_import__/js/src/modal.js","webpack://__ember_auto_import__/js/src/offcanvas.js","webpack://__ember_auto_import__/js/src/util/sanitizer.js","webpack://__ember_auto_import__/js/src/util/template-factory.js","webpack://__ember_auto_import__/js/src/tooltip.js","webpack://__ember_auto_import__/js/src/popover.js","webpack://__ember_auto_import__/js/src/scrollspy.js","webpack://__ember_auto_import__/js/src/tab.js","webpack://__ember_auto_import__/js/src/toast.js","webpack://__ember_auto_import__/node_modules/.pnpm/colord@2.10.0/node_modules/colord/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/colord@2.10.0/node_modules/colord/plugins/a11y.js","webpack://__ember_auto_import__/src/utils/scroll-helpers.ts","webpack://__ember_auto_import__/src/components/basic-dropdown-content.gts","webpack://__ember_auto_import__/src/components/basic-dropdown-trigger.gts","webpack://__ember_auto_import__/src/components/basic-dropdown-wormhole.gts","webpack://__ember_auto_import__/src/components/basic-dropdown.gts","webpack://__ember_auto_import__/src/config.ts","webpack://__ember_auto_import__/src/modifiers/basic-dropdown-trigger.ts","webpack://__ember_auto_import__/src/utils/calculate-position.ts","webpack://__ember_auto_import__/src/utils/has-moved.ts","webpack://__ember_auto_import__/src/-private/ember-environment.js","webpack://__ember_auto_import__/src/-private/external/environment.js","webpack://__ember_auto_import__/src/-private/external/scheduler/policies/execution-states.js","webpack://__ember_auto_import__/src/-private/external/scheduler/refresh.js","webpack://__ember_auto_import__/src/-private/external/scheduler/state-tracker/state.js","webpack://__ember_auto_import__/src/-private/external/scheduler/state-tracker/state-tracker.js","webpack://__ember_auto_import__/src/-private/external/scheduler/state-tracker/null-state-tracker.js","webpack://__ember_auto_import__/src/-private/external/scheduler/state-tracker/null-state.js","webpack://__ember_auto_import__/src/-private/external/scheduler/scheduler.js","webpack://__ember_auto_import__/src/-private/external/scheduler/policies/bounded-policy.js","webpack://__ember_auto_import__/src/-private/external/scheduler/policies/drop-policy.js","webpack://__ember_auto_import__/src/-private/external/scheduler/policies/enqueued-policy.js","webpack://__ember_auto_import__/src/-private/external/scheduler/policies/keep-latest-policy.js","webpack://__ember_auto_import__/src/-private/external/scheduler/policies/restartable-policy.js","webpack://__ember_auto_import__/src/-private/external/scheduler/policies/unbounded-policy.js","webpack://__ember_auto_import__/src/-private/external/task-factory.js","webpack://__ember_auto_import__/src/-private/external/task-instance/cancelation.js","webpack://__ember_auto_import__/src/-private/external/task-instance/initial-state.js","webpack://__ember_auto_import__/src/-private/external/task/default-state.js","webpack://__ember_auto_import__/src/-private/external/generator-state.js","webpack://__ember_auto_import__/src/-private/external/task-instance/executor.js","webpack://__ember_auto_import__/src/-private/external/task/taskable.js","webpack://__ember_auto_import__/src/-private/external/task/task.js","webpack://__ember_auto_import__/src/-private/external/yieldables.js","webpack://__ember_auto_import__/src/-private/helpers.js","webpack://__ember_auto_import__/src/-private/external/task-instance/base.js","webpack://__ember_auto_import__/src/-private/task-instance.js","webpack://__ember_auto_import__/src/-private/taskable-mixin.js","webpack://__ember_auto_import__/src/-private/task.js","webpack://__ember_auto_import__/src/-private/tracked-state.js","webpack://__ember_auto_import__/src/-private/utils.js","webpack://__ember_auto_import__/src/-private/scheduler/ember-scheduler.js","webpack://__ember_auto_import__/src/-private/task-factory.js","webpack://__ember_auto_import__/src/-private/async-arrow-runtime.js","webpack://__ember_auto_import__/src/helpers/cancel-all.ts","webpack://__ember_auto_import__/src/helpers/perform.ts","webpack://__ember_auto_import__/src/helpers/task.ts","webpack://__ember_auto_import__/src/-private/cancelable-promise-helpers.js","webpack://__ember_auto_import__/src/-private/task-public-api.js","webpack://__ember_auto_import__/src/-private/wait-for.js","webpack://__ember_auto_import__/src/helpers/element.ts","webpack://__ember_auto_import__/src/helpers/format-date-range.ts","webpack://__ember_auto_import__/src/helpers/format-date.ts","webpack://__ember_auto_import__/src/helpers/format-display-name.ts","webpack://__ember_auto_import__/src/helpers/format-list.ts","webpack://__ember_auto_import__/src/helpers/format-message.ts","webpack://__ember_auto_import__/src/helpers/format-number.ts","webpack://__ember_auto_import__/src/helpers/format-relative-time.ts","webpack://__ember_auto_import__/src/helpers/format-time.ts","webpack://__ember_auto_import__/src/helpers/t-key.ts","webpack://__ember_auto_import__/src/helpers/t.ts","webpack://__ember_auto_import__/index.ts","webpack://__ember_auto_import__/date-time.ts","webpack://__ember_auto_import__/node_modules/.aspect_rules_js/@formatjs_generated+unicode@0.0.0/node_modules/@formatjs_generated/unicode/icu-skeleton-parser-regex.js","webpack://__ember_auto_import__/number.ts","webpack://__ember_auto_import__/error.ts","webpack://__ember_auto_import__/types.ts","webpack://__ember_auto_import__/node_modules/.aspect_rules_js/@formatjs_generated+unicode@0.0.0/node_modules/@formatjs_generated/unicode/icu-messageformat-parser-regex.js","webpack://__ember_auto_import__/node_modules/.aspect_rules_js/@formatjs_generated+cldr.core@0.0.0/node_modules/@formatjs_generated/cldr.core/time-data.js","webpack://__ember_auto_import__/date-time-pattern-generator.ts","webpack://__ember_auto_import__/parser.ts","webpack://__ember_auto_import__/formatters.ts","webpack://__ember_auto_import__/core.ts","webpack://__ember_auto_import__/utils.ts","webpack://__ember_auto_import__/message.ts","webpack://__ember_auto_import__/dateTime.ts","webpack://__ember_auto_import__/duration.ts","webpack://__ember_auto_import__/displayName.ts","webpack://__ember_auto_import__/list.ts","webpack://__ember_auto_import__/plural.ts","webpack://__ember_auto_import__/relativeTime.ts","webpack://__ember_auto_import__/src/-private/formatjs/format-message.ts","webpack://__ember_auto_import__/src/-private/utils/locale.ts","webpack://__ember_auto_import__/src/services/intl.ts","webpack://__ember_auto_import__/src/-private/formatjs/formats.ts","webpack://__ember_auto_import__/create-intl.ts","webpack://__ember_auto_import__/src/-private/formatjs/format-date.ts","webpack://__ember_auto_import__/src/-private/formatjs/format-date-range.ts","webpack://__ember_auto_import__/src/-private/formatjs/format-display-name.ts","webpack://__ember_auto_import__/src/-private/formatjs/format-list.ts","webpack://__ember_auto_import__/src/-private/formatjs/format-number.ts","webpack://__ember_auto_import__/src/-private/formatjs/format-relative-time.ts","webpack://__ember_auto_import__/src/-private/formatjs/format-time.ts","webpack://__ember_auto_import__/src/-private/utils/get-html-element.ts","webpack://__ember_auto_import__/src/-private/class-based/modifier-manager.ts","webpack://__ember_auto_import__/src/-private/class-based/modifier.ts","webpack://__ember_auto_import__/src/-private/function-based/modifier.ts","webpack://__ember_auto_import__/src/-private/function-based/modifier-manager.ts","webpack://__ember_auto_import__/src/helpers/page-title.ts","webpack://__ember_auto_import__/src/services/page-title.ts","webpack://__ember_auto_import__/src/components/power-select.gts","webpack://__ember_auto_import__/src/components/power-select/before-options.gts","webpack://__ember_auto_import__/src/components/power-select/input.gts","webpack://__ember_auto_import__/src/components/power-select/label.gts","webpack://__ember_auto_import__/src/components/power-select/no-matches-message.gts","webpack://__ember_auto_import__/src/components/power-select/options.gts","webpack://__ember_auto_import__/src/components/power-select/placeholder.gts","webpack://__ember_auto_import__/src/components/power-select/power-select-group.gts","webpack://__ember_auto_import__/src/components/power-select/search-message.gts","webpack://__ember_auto_import__/src/components/power-select/trigger.gts","webpack://__ember_auto_import__/src/helpers/ember-power-select-is-array.ts","webpack://__ember_auto_import__/src/helpers/ember-power-select-is-equal.ts","webpack://__ember_auto_import__/src/helpers/ember-power-select-is-group.ts","webpack://__ember_auto_import__/src/helpers/ember-power-select-is-selected-present.ts","webpack://__ember_auto_import__/src/utils/equal.ts","webpack://__ember_auto_import__/src/utils/group-utils.ts","webpack://__ember_auto_import__/node_modules/.pnpm/ember-resolver@13.2.0/node_modules/ember-resolver/addon/string/cache.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-resolver@13.2.0/node_modules/ember-resolver/addon/string/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-resolver@13.2.0/node_modules/ember-resolver/addon/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-resolver@13.2.0/node_modules/ember-resolver/addon/utils/class-factory.js","webpack://__ember_auto_import__/src/modifiers/style.ts","webpack://__ember_auto_import__/node_modules/.pnpm/copy-to-clipboard@4.0.2/node_modules/copy-to-clipboard/dist/index.cjs","webpack://__ember_auto_import__/node_modules/.pnpm/@fortawesome+fontawesome-svg-core@7.3.1/node_modules/@fortawesome/fontawesome-svg-core/index.mjs","webpack://__ember_auto_import__/node_modules/.pnpm/@glimmer+component@2.2.1/node_modules/@glimmer/component/dist/prod/index.js","webpack://__ember_auto_import__/src/comlink.ts","webpack://__ember_auto_import__/src/runtime.ts","webpack://__ember_auto_import__/node_modules/.pnpm/ember-load-initializers@3.0.1_ember-source@7.4.0_@glimmer+component@2.2.1_/node_modules/ember-load-initializers/dist/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/container/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/deprecations/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/environment/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/glimmer/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/meta/lib/meta.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/libraries-Dx5DiBJv.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/metal/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/owner/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/runtime/lib/ext/rsvp.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/runtime/lib/mixins/comparable.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/runtime/lib/mixins/container_proxy.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/string/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/utility-types/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/utils/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/views/lib/compat/attrs.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/views/lib/system/utils.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/views/lib/views/core-view-utils.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/views/lib/views/core_view.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/-internals/views/lib/views/states.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/application/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/application/instance.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/application/namespace.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/array/-internals.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/array/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/array/lib/is-array.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/array/lib/make-array.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/array/proxy.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/canary-features/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/component/helper.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/component/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/component/template-only.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/controller/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/debug/container-debug-adapter.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/debug/data-adapter.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/debug/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/debug/lib/assert.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/debug/lib/capture-render-tree.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/debug/lib/deprecate.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/debug/lib/handlers.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/debug/lib/inspect.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/debug/lib/testing.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/debug/lib/warn.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/destroyable/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/engine/lib/strict-resolver.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/engine/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/engine/instance.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/engine/lib/engine-parent.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/enumerable/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/enumerable/mutable.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/helper/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/instrumentation/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/modifier/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/modifier/on.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/object/-internals.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/object/compat.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/object/core.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/object/events.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/object/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/object/lib/computed/computed_macros.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/object/observable.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/object/promise-proxy-mixin.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/object/proxy.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/owner/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/hash-location.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/history-location.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/lib/cache.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/lib/controller_for.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/lib/dsl.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/lib/generate_controller.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/lib/location-utils.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/lib/query_params.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/lib/router_state.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/lib/routing-service.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/lib/utils.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/none-location.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/route.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/router-service.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/routing/router.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/runloop/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/service/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/template-compilation/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/test/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/utils/lib/compare.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/utils/lib/is-equal.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/utils/lib/is_blank.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/utils/lib/is_empty.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/utils/lib/is_none.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/utils/lib/is_present.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/utils/lib/type-of.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@glimmer/destroyable/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@glimmer/encoder/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@glimmer/global-context/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@glimmer/node/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@glimmer/opcode-compiler/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@glimmer/owner/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@glimmer/program/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@glimmer/reference/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@glimmer/tracking/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@glimmer/util/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@ember/reactive/collections.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@glimmer/validator/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@glimmer/vm/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/well-known-_EVO9RaV.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@glimmer/wire-format/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/@simple-dom/document/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/backburner.js/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/dag-map/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/ember/version.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/route-recognizer/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/router_js/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/alias-DvgufSYq.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/api-B3M8aF1d.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/api-CoUjEXgs.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/api-DJnXAjon.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/args-proxy-BHODnDyt.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/arguments-xjTAZ6VE.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/array-CK__rqeu.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/array-utils-CZQxrdD3.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/assert-Zqc4wiAV.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/cache-CofLhaS4.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/cache-qDyqAcpg.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/capabilities-BuVYh-vx.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/chain-tags-BlsXEpE-.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/collections-GpG8lT2g.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/computed-ZvOk7SJQ.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/computed_cache-DmYKevAP.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/container-BYOnjnwz.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/curly-Bg--Dj0X.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/curly-brand-B_F79Dep.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/debug-brand-B1TWjOCH.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/decorator-DcvVDSJV.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/destroyable-key-BsfVBM7f.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/dictionary-gc5gpyOG.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/element-CZnh4CbF.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/env-DXxsTFkM.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/evented-DYsL5t87.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/events-3Q5Qvo6Q.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/flags-BZxHQ0yn.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/get-B1Vq9Mmk.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/get_properties-CkJ_mhLz.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/guid-Cbq2sNV_.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/has-dom-DdQORPzI.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/hash-pP7ZP_NN.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/helper-brand-C9_8vvOf.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/index-CZW6QzcF.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/index-Cc8WmrB-.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/index-D-xTBV4B.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/index-kwuZeaNz.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/vm-ops-ImHv0Wtg.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/injected_property-4vB_6fM8.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/intern-zquhAEIg.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/internal-D1sloI2P.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/internal-helper-Becm19An.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/invoke-BqNxG81o.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/is_proxy-Bzg0d4m4.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/lookup-descriptor-CwcVgaLv.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/meta-BJtIZDir.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/mixin-AGmJaAAY.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/name-Clp4Vsod.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/namespace_search-TFdmjK_a.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/normalize-C_IStty9.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/not-BRssU6nS.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/object-utils-AijlD-JH.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/observers-B1wiwQeH.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/on-BFt-Sx9A.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/opcodes-DDajoGhq.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/program-BAh__OXZ.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/program-context-WVlzpPdi.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/property_get-DuDs6rLg.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/property_set-CVmdjPdh.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/props-fiqxqhAH.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/public-api-C3KlJmEr.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/reference-CccCE8mJ.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/registers-C_W2qYHJ.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/rehydrate-builder-B9bh-2Dy.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/render-C_iak8Db.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/renderers-BjnN26_f.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/rsvp-aLN_pQtn.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/serialize-builder-Du-432zt.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/set_properties-BObIgkE-.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/outlet-bc38zkd8.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/setup-registry-C7HGofi1.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/simple-cast-DCvJLSin.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/spec-BXl1reqK.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/super-BBBjgF69.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/syscall-ops-CkPT1Kfx.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/template-BRrQR6KS.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/template-Dc_cBOoX.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/template-only-CWsfnbVm.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/textarea-D_2paF6I.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/tracked-CR6xx3iR.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/tracked-value-CR6kx-73.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/unique-id-DNqsbhfh.js","webpack://__ember_auto_import__/node_modules/.pnpm/ember-source@7.4.0_@glimmer+component@2.2.1/node_modules/ember-source/dist/prod/packages/shared-chunks/unrecognized-url-error-xC654tCo.js","webpack://__ember_auto_import__/node_modules/.pnpm/anser@2.3.5/node_modules/anser/lib/index.js","webpack://__ember_auto_import__/node_modules/.pnpm/t2t-game-text@git+https+++git@github.com+spansh+t2t-game-text.git+599ae92b7f460b8384458cd83ba0d000a27e0f95/node_modules/t2t-game-text/src/ansi-segments.js","webpack://__ember_auto_import__/node_modules/.pnpm/t2t-game-text@git+https+++git@github.com+spansh+t2t-game-text.git+599ae92b7f460b8384458cd83ba0d000a27e0f95/node_modules/t2t-game-text/src/game-text-renderer.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nfunction _export(target, all) {\n    for(var name in all)Object.defineProperty(target, name, {\n        enumerable: true,\n        get: Object.getOwnPropertyDescriptor(all, name).get\n    });\n}\n_export(exports, {\n    get NodeList () {\n        return NodeList;\n    },\n    get default () {\n        return _default;\n    }\n});\nvar NodeList = /*#__PURE__*/ function() {\n    \"use strict\";\n    function NodeList() {\n        this.n = [];\n    }\n    var _proto = NodeList.prototype;\n    _proto.last = function last() {\n        var len = this.n.length;\n        if (len > 0) {\n            return this.n[len - 1];\n        }\n        return undefined;\n    };\n    _proto.has = function has() {\n        return this.n.length > 0;\n    };\n    _proto.flush = function flush() {\n        return this.n.length ? this.n.pop() : undefined;\n    };\n    _proto.push = function push(value) {\n        this.n.push(value);\n    };\n    _proto.ref = function ref() {\n        return this.n;\n    };\n    return NodeList;\n}();\nvar _default = NodeList;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nfunction _export(target, all) {\n    for(var name in all)Object.defineProperty(target, name, {\n        enumerable: true,\n        get: Object.getOwnPropertyDescriptor(all, name).get\n    });\n}\n_export(exports, {\n    get COLUMN_ID () {\n        return COLUMN_ID;\n    },\n    get END_POS_ID () {\n        return END_POS_ID;\n    },\n    get LINE_ID () {\n        return LINE_ID;\n    },\n    get START_POS_ID () {\n        return START_POS_ID;\n    },\n    get TYPE_ATTR_NAME () {\n        return TYPE_ATTR_NAME;\n    },\n    get TYPE_ATTR_VALUE () {\n        return TYPE_ATTR_VALUE;\n    },\n    get TYPE_ID () {\n        return TYPE_ID;\n    },\n    get TYPE_NEW_LINE () {\n        return TYPE_NEW_LINE;\n    },\n    get TYPE_SPACE () {\n        return TYPE_SPACE;\n    },\n    get TYPE_TAG () {\n        return TYPE_TAG;\n    },\n    get TYPE_WORD () {\n        return TYPE_WORD;\n    },\n    get Token () {\n        return Token;\n    },\n    get VALUE_ID () {\n        return VALUE_ID;\n    },\n    get default () {\n        return _default;\n    }\n});\nvar _pluginhelper = require(\"@bbob/plugin-helper\");\nfunction _defineProperties(target, props) {\n    for(var i = 0; i < props.length; i++){\n        var descriptor = props[i];\n        descriptor.enumerable = descriptor.enumerable || false;\n        descriptor.configurable = true;\n        if (\"value\" in descriptor) descriptor.writable = true;\n        Object.defineProperty(target, descriptor.key, descriptor);\n    }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n    if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n    if (staticProps) _defineProperties(Constructor, staticProps);\n    return Constructor;\n}\nvar TYPE_ID = 't'; // 0;\nvar VALUE_ID = 'v'; // 1;\nvar LINE_ID = 'l'; // 3;\nvar COLUMN_ID = 'r'; // 2;\nvar START_POS_ID = 's'; // 4;\nvar END_POS_ID = 'e'; // 5;\nvar TYPE_WORD = 1; // 'word';\nvar TYPE_TAG = 2; // 'tag';\nvar TYPE_ATTR_NAME = 3; // 'attr-name';\nvar TYPE_ATTR_VALUE = 4; // 'attr-value';\nvar TYPE_SPACE = 5; // 'space';\nvar TYPE_NEW_LINE = 6; // 'new-line';\nvar getTokenValue = function getTokenValue(token) {\n    if (token && typeof token[VALUE_ID] !== 'undefined') {\n        return token[VALUE_ID];\n    }\n    return '';\n};\nvar getTokenLine = function getTokenLine(token) {\n    return token && token[LINE_ID] || 0;\n};\nvar getTokenColumn = function getTokenColumn(token) {\n    return token && token[COLUMN_ID] || 0;\n};\nvar getStartPosition = function getStartPosition(token) {\n    return token && token[START_POS_ID] || 0;\n};\nvar getEndPosition = function getEndPosition(token) {\n    return token && token[END_POS_ID] || 0;\n};\nvar isTextToken = function isTextToken(token) {\n    if (token && typeof token[TYPE_ID] !== 'undefined') {\n        return token[TYPE_ID] === TYPE_SPACE || token[TYPE_ID] === TYPE_NEW_LINE || token[TYPE_ID] === TYPE_WORD;\n    }\n    return false;\n};\nvar isTagToken = function isTagToken(token) {\n    if (token && typeof token[TYPE_ID] !== 'undefined') {\n        return token[TYPE_ID] === TYPE_TAG;\n    }\n    return false;\n};\nvar isTagEnd = function isTagEnd(token) {\n    return getTokenValue(token).charCodeAt(0) === _pluginhelper.SLASH.charCodeAt(0);\n};\nvar isTagStart = function isTagStart(token) {\n    return !isTagEnd(token);\n};\nvar isAttrNameToken = function isAttrNameToken(token) {\n    if (token && typeof token[TYPE_ID] !== 'undefined') {\n        return token[TYPE_ID] === TYPE_ATTR_NAME;\n    }\n    return false;\n};\nvar isAttrValueToken = function isAttrValueToken(token) {\n    if (token && typeof token[TYPE_ID] !== 'undefined') {\n        return token[TYPE_ID] === TYPE_ATTR_VALUE;\n    }\n    return false;\n};\nvar getTagName = function getTagName(token) {\n    var value = getTokenValue(token);\n    return isTagEnd(token) ? value.slice(1) : value;\n};\nvar tokenToText = function tokenToText(token, openTag, closeTag) {\n    if (openTag === void 0) openTag = _pluginhelper.OPEN_BRAKET;\n    if (closeTag === void 0) closeTag = _pluginhelper.CLOSE_BRAKET;\n    var text = openTag;\n    text += getTokenValue(token);\n    text += closeTag;\n    return text;\n};\n/**\n * @export\n * @class Token\n */ var Token = /*#__PURE__*/ function() {\n    \"use strict\";\n    function Token(type, value, row, col, start, end) {\n        if (row === void 0) row = 0;\n        if (col === void 0) col = 0;\n        if (start === void 0) start = 0;\n        if (end === void 0) end = 0;\n        this[LINE_ID] = row;\n        this[COLUMN_ID] = col;\n        this[TYPE_ID] = type || 0;\n        this[VALUE_ID] = String(value);\n        this[START_POS_ID] = start;\n        this[END_POS_ID] = end;\n    }\n    var _proto = Token.prototype;\n    _proto.isEmpty = function isEmpty() {\n        return this[TYPE_ID] === 0 || isNaN(this[TYPE_ID]);\n    };\n    _proto.isText = function isText() {\n        return isTextToken(this);\n    };\n    _proto.isTag = function isTag() {\n        return isTagToken(this);\n    };\n    _proto.isAttrName = function isAttrName() {\n        return isAttrNameToken(this);\n    };\n    _proto.isAttrValue = function isAttrValue() {\n        return isAttrValueToken(this);\n    };\n    _proto.isStart = function isStart() {\n        return isTagStart(this);\n    };\n    _proto.isEnd = function isEnd() {\n        return isTagEnd(this);\n    };\n    _proto.getName = function getName() {\n        return getTagName(this);\n    };\n    _proto.getValue = function getValue() {\n        return getTokenValue(this);\n    };\n    _proto.getLine = function getLine() {\n        return getTokenLine(this);\n    };\n    _proto.getColumn = function getColumn() {\n        return getTokenColumn(this);\n    };\n    _proto.getStart = function getStart() {\n        return getStartPosition(this);\n    };\n    _proto.getEnd = function getEnd() {\n        return getEndPosition(this);\n    };\n    _proto.toString = function toString(param) {\n        var _ref = param === void 0 ? {} : param, _ref_openTag = _ref.openTag, openTag = _ref_openTag === void 0 ? _pluginhelper.OPEN_BRAKET : _ref_openTag, _ref_closeTag = _ref.closeTag, closeTag = _ref_closeTag === void 0 ? _pluginhelper.CLOSE_BRAKET : _ref_closeTag;\n        return tokenToText(this, openTag, closeTag);\n    };\n    _create_class(Token, [\n        {\n            key: \"type\",\n            get: function get() {\n                return this[TYPE_ID];\n            }\n        }\n    ]);\n    return Token;\n}();\nvar _default = Token;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nfunction _export(target, all) {\n    for(var name in all)Object.defineProperty(target, name, {\n        enumerable: true,\n        get: Object.getOwnPropertyDescriptor(all, name).get\n    });\n}\n_export(exports, {\n    get TagNode () {\n        return _pluginhelper.TagNode;\n    },\n    get default () {\n        return _parse.default;\n    }\n});\nvar _pluginhelper = require(\"@bbob/plugin-helper\");\nvar _parse = /*#__PURE__*/ _interop_require_default(_export_star(require(\"./parse.js\"), exports));\n_export_star(require(\"./lexer.js\"), exports);\nfunction _export_star(from, to) {\n    Object.keys(from).forEach(function(k) {\n        if (k !== \"default\" && !Object.prototype.hasOwnProperty.call(to, k)) {\n            Object.defineProperty(to, k, {\n                enumerable: true,\n                get: function() {\n                    return from[k];\n                }\n            });\n        }\n    });\n    return from;\n}\nfunction _interop_require_default(obj) {\n    return obj && obj.__esModule ? obj : {\n        default: obj\n    };\n}\n","/* eslint-disable no-plusplus,no-param-reassign */ \"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nfunction _export(target, all) {\n    for(var name in all)Object.defineProperty(target, name, {\n        enumerable: true,\n        get: Object.getOwnPropertyDescriptor(all, name).get\n    });\n}\n_export(exports, {\n    get createLexer () {\n        return createLexer;\n    },\n    get createTokenOfType () {\n        return createTokenOfType;\n    }\n});\nvar _pluginhelper = require(\"@bbob/plugin-helper\");\nvar _Token = require(\"./Token.js\");\nvar _utils = require(\"./utils.js\");\n// for cases <!-- -->\nvar EM = '!';\nfunction createTokenOfType(type, value, r, cl, p, e) {\n    if (r === void 0) r = 0;\n    if (cl === void 0) cl = 0;\n    if (p === void 0) p = 0;\n    if (e === void 0) e = 0;\n    return new _Token.Token(type, value, r, cl, p, e);\n}\nvar STATE_WORD = 0;\nvar STATE_TAG = 1;\nvar STATE_TAG_ATTRS = 2;\nvar TAG_STATE_NAME = 0;\nvar TAG_STATE_ATTR = 1;\nvar TAG_STATE_VALUE = 2;\nvar END_POS_OFFSET = 2; // length + start position offset\nvar isWhiteSpace = function isWhiteSpace(char) {\n    return char === _pluginhelper.SPACE || char === _pluginhelper.TAB;\n};\nvar isEscapeChar = function isEscapeChar(char) {\n    return char === _pluginhelper.BACKSLASH;\n};\nvar isSpecialChar = function isSpecialChar(char) {\n    return char === _pluginhelper.EQ || char === _pluginhelper.SPACE || char === _pluginhelper.TAB;\n};\nvar isNewLine = function isNewLine(char) {\n    return char === _pluginhelper.N;\n};\nvar unq = function unq(val) {\n    return (0, _utils.unquote)((0, _utils.trimChar)(val, _pluginhelper.QUOTEMARK));\n};\nfunction createLexer(buffer, options) {\n    if (options === void 0) options = {};\n    var row = 0;\n    var prevCol = 0;\n    var col = 0;\n    var tokenIndex = -1;\n    var stateMode = STATE_WORD;\n    var tagMode = TAG_STATE_NAME;\n    var contextFreeTag = '';\n    var tokens = new Array(Math.floor(buffer.length));\n    var openTag = options.openTag || _pluginhelper.OPEN_BRAKET;\n    var closeTag = options.closeTag || _pluginhelper.CLOSE_BRAKET;\n    var escapeTags = !!options.enableEscapeTags;\n    var contextFreeTags = (options.contextFreeTags || []).filter(Boolean).map(function(tag) {\n        return tag.toLowerCase();\n    });\n    var caseFreeTags = options.caseFreeTags || false;\n    var nestedMap = new Map();\n    var onToken = options.onToken || function() {};\n    var RESERVED_CHARS_SET = new Set([\n        closeTag,\n        openTag,\n        _pluginhelper.QUOTEMARK,\n        _pluginhelper.BACKSLASH,\n        _pluginhelper.SPACE,\n        _pluginhelper.TAB,\n        _pluginhelper.EQ,\n        _pluginhelper.N,\n        EM\n    ]);\n    var isCharReserved = function isCharReserved(char) {\n        return RESERVED_CHARS_SET.has(char);\n    };\n    var isCharToken = function isCharToken(char) {\n        return char !== openTag && char !== _pluginhelper.SPACE && char !== _pluginhelper.TAB && char !== _pluginhelper.N;\n    };\n    var isEscapableChar = function isEscapableChar(char) {\n        return char === openTag || char === closeTag || char === _pluginhelper.BACKSLASH;\n    };\n    var onSkip = function onSkip() {\n        col++;\n    };\n    var setupContextFreeTag = function setupContextFreeTag(name, isClosingTag) {\n        if (contextFreeTag !== '' && isClosingTag) {\n            contextFreeTag = '';\n        }\n        var tagName = name.toLowerCase();\n        if (contextFreeTag === '' && isTokenNested(name) && contextFreeTags.includes(tagName)) {\n            contextFreeTag = tagName;\n        }\n    };\n    var toEndTag = function toEndTag(tagName) {\n        return \"\" + openTag + _pluginhelper.SLASH + tagName + closeTag;\n    };\n    var chars = (0, _utils.createCharGrabber)(buffer, {\n        onSkip: onSkip\n    });\n    /**\n   * Emits newly created token to subscriber\n   *\n   * @param {number} type - 1 - word, 2 - tag, 3 - attr-name, 4 - attr-value, 5 - space, 6 - new-line\n   * @param {string} value - token value\n   * @param {number} startPos - start position\n   * @param {number} endPos - end position\n   */ function emitToken(type, value, startPos, endPos) {\n        var token = createTokenOfType(type, value, row, prevCol, startPos, endPos);\n        onToken(token);\n        prevCol = col;\n        tokenIndex += 1;\n        tokens[tokenIndex] = token;\n    }\n    function nextTagState(tagChars, isSingleValueTag, masterStartPos) {\n        if (tagMode === TAG_STATE_ATTR) {\n            var validAttrName = function validAttrName(char) {\n                return !(char === _pluginhelper.EQ || isWhiteSpace(char));\n            };\n            var name = tagChars.grabWhile(validAttrName);\n            var isEnd = tagChars.isLast();\n            var isValue = tagChars.getCurr() !== _pluginhelper.EQ;\n            tagChars.skip();\n            if (isEnd || isValue) {\n                emitToken(_Token.TYPE_ATTR_VALUE, unq(name));\n            } else {\n                emitToken(_Token.TYPE_ATTR_NAME, name);\n            }\n            if (isEnd) {\n                return TAG_STATE_NAME;\n            }\n            if (isValue) {\n                return TAG_STATE_ATTR;\n            }\n            return TAG_STATE_VALUE;\n        }\n        if (tagMode === TAG_STATE_VALUE) {\n            var stateSpecial = false;\n            var validAttrValue = function validAttrValue(char) {\n                // const isEQ = char === EQ;\n                var isQM = char === _pluginhelper.QUOTEMARK;\n                var prevChar = tagChars.getPrev();\n                var nextChar = tagChars.getNext();\n                var isPrevSLASH = prevChar === _pluginhelper.BACKSLASH;\n                var isNextEQ = nextChar === _pluginhelper.EQ;\n                var isWS = isWhiteSpace(char);\n                // const isPrevWS = isWhiteSpace(prevChar);\n                var isNextWS = !!nextChar && isWhiteSpace(nextChar);\n                if (stateSpecial && isSpecialChar(char)) {\n                    return true;\n                }\n                if (isQM && !isPrevSLASH) {\n                    stateSpecial = !stateSpecial;\n                    if (!stateSpecial && !(isNextEQ || isNextWS)) {\n                        return false;\n                    }\n                }\n                if (!isSingleValueTag) {\n                    return !isWS;\n                // return (isEQ || isWS) === false;\n                }\n                return true;\n            };\n            var name1 = tagChars.grabWhile(validAttrValue);\n            tagChars.skip();\n            emitToken(_Token.TYPE_ATTR_VALUE, unq(name1));\n            if (tagChars.getPrev() === _pluginhelper.QUOTEMARK) {\n                prevCol++;\n            }\n            if (tagChars.isLast()) {\n                return TAG_STATE_NAME;\n            }\n            return TAG_STATE_ATTR;\n        }\n        var start = masterStartPos + tagChars.getPos() - 1;\n        var validName = function validName(char) {\n            return !(char === _pluginhelper.EQ || isWhiteSpace(char) || tagChars.isLast());\n        };\n        var name2 = tagChars.grabWhile(validName);\n        emitToken(_Token.TYPE_TAG, name2, start, masterStartPos + tagChars.getLength() + 1);\n        setupContextFreeTag(name2);\n        tagChars.skip();\n        prevCol++;\n        // in cases when we have [url=someval]GET[/url] and we don't need to parse all\n        if (isSingleValueTag) {\n            return TAG_STATE_VALUE;\n        }\n        var hasEQ = tagChars.includes(_pluginhelper.EQ);\n        return hasEQ ? TAG_STATE_ATTR : TAG_STATE_VALUE;\n    }\n    function stateTag() {\n        var currChar = chars.getCurr();\n        var nextChar = chars.getNext();\n        var isNextCharReserved = Boolean(nextChar && isCharReserved(nextChar));\n        chars.skip(); // skip openTag\n        // detect case where we have '[My word [tag][/tag]' or we have '[My last line word'\n        var substr = chars.substrUntilChar(closeTag);\n        var hasInvalidChars = substr.length === 0 || substr.indexOf(openTag) >= 0;\n        var isLastChar = chars.isLast();\n        var hasSpace = substr.indexOf(_pluginhelper.SPACE) >= 0;\n        var isSpaceRestricted = hasSpace && options.whitespaceInTags === false;\n        if (isNextCharReserved || hasInvalidChars || isLastChar || isSpaceRestricted) {\n            emitToken(_Token.TYPE_WORD, currChar);\n            return STATE_WORD;\n        }\n        // [myTag   ]\n        var isNoAttrsInTag = substr.indexOf(_pluginhelper.EQ) === -1;\n        // [/myTag]\n        var isClosingTag = substr[0] === _pluginhelper.SLASH;\n        // [url] or [/url]\n        if (isNoAttrsInTag || isClosingTag) {\n            var startPos = chars.getPos() - 1;\n            var name = chars.grabWhile(function(char) {\n                return char !== closeTag;\n            });\n            var endPos = startPos + name.length + END_POS_OFFSET;\n            chars.skip(); // skip closeTag\n            emitToken(_Token.TYPE_TAG, name, startPos, endPos);\n            setupContextFreeTag(name, isClosingTag);\n            return STATE_WORD;\n        }\n        return STATE_TAG_ATTRS;\n    }\n    function stateAttrs() {\n        var startPos = chars.getPos();\n        var silent = true;\n        var tagStr = chars.grabWhile(function(char) {\n            return char !== closeTag;\n        }, silent);\n        var tagGrabber = (0, _utils.createCharGrabber)(tagStr, {\n            onSkip: onSkip\n        });\n        var eqParts = tagStr.split(_pluginhelper.EQ);\n        var tagName = eqParts[0];\n        var isEndTag = tagName[0] === _pluginhelper.SLASH;\n        var isSingleAttrTag = tagName.indexOf(_pluginhelper.SPACE) === -1;\n        var isSingleValueTag = !isEndTag && isSingleAttrTag;\n        tagMode = TAG_STATE_NAME;\n        while(tagGrabber.hasNext()){\n            tagMode = nextTagState(tagGrabber, isSingleValueTag, startPos);\n        }\n        chars.skip(); // skip closeTag\n        return STATE_WORD;\n    }\n    function stateWord() {\n        if (isNewLine(chars.getCurr())) {\n            emitToken(_Token.TYPE_NEW_LINE, chars.getCurr());\n            chars.skip();\n            col = 0;\n            prevCol = 0;\n            row++;\n            return STATE_WORD;\n        }\n        if (isWhiteSpace(chars.getCurr())) {\n            var word = chars.grabWhile(isWhiteSpace);\n            emitToken(_Token.TYPE_SPACE, word);\n            return STATE_WORD;\n        }\n        if (chars.getCurr() === openTag) {\n            if (contextFreeTag) {\n                var fullTagName = toEndTag(contextFreeTag);\n                var foundTag = chars.grabN(fullTagName.length);\n                var isContextFreeEnded = foundTag.toLowerCase() === fullTagName.toLowerCase();\n                if (isContextFreeEnded) {\n                    return STATE_TAG;\n                }\n            } else if (chars.includes(closeTag)) {\n                return STATE_TAG;\n            }\n            emitToken(_Token.TYPE_WORD, chars.getCurr());\n            chars.skip();\n            prevCol++;\n            return STATE_WORD;\n        }\n        if (escapeTags) {\n            if (isEscapeChar(chars.getCurr())) {\n                var currChar = chars.getCurr();\n                var nextChar = chars.getNext();\n                chars.skip(); // skip the \\ without emitting anything\n                if (nextChar && isEscapableChar(nextChar)) {\n                    chars.skip(); // skip past the [, ] or \\ as well\n                    emitToken(_Token.TYPE_WORD, nextChar);\n                    return STATE_WORD;\n                }\n                emitToken(_Token.TYPE_WORD, currChar);\n                return STATE_WORD;\n            }\n            var isChar = function isChar(char) {\n                return isCharToken(char) && !isEscapeChar(char);\n            };\n            var word1 = chars.grabWhile(isChar);\n            emitToken(_Token.TYPE_WORD, word1);\n            return STATE_WORD;\n        }\n        var word2 = chars.grabWhile(isCharToken);\n        emitToken(_Token.TYPE_WORD, word2);\n        return STATE_WORD;\n    }\n    function tokenize() {\n        stateMode = STATE_WORD;\n        while(chars.hasNext()){\n            switch(stateMode){\n                case STATE_TAG:\n                    stateMode = stateTag();\n                    break;\n                case STATE_TAG_ATTRS:\n                    stateMode = stateAttrs();\n                    break;\n                case STATE_WORD:\n                default:\n                    stateMode = stateWord();\n                    break;\n            }\n        }\n        tokens.length = tokenIndex + 1;\n        return tokens;\n    }\n    var lowercaseBuffer = null;\n    function isTokenNested(tokenValue) {\n        var value = toEndTag(tokenValue);\n        if (nestedMap.has(value)) {\n            return !!nestedMap.get(value);\n        }\n        var status;\n        if (caseFreeTags) {\n            if (!lowercaseBuffer) lowercaseBuffer = buffer.toLowerCase();\n            status = lowercaseBuffer.indexOf(value.toLowerCase()) > -1;\n        } else {\n            status = buffer.indexOf(value) > -1;\n        }\n        nestedMap.set(value, status);\n        return status;\n    }\n    return {\n        tokenize: tokenize,\n        isTokenNested: isTokenNested\n    };\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nfunction _export(target, all) {\n    for(var name in all)Object.defineProperty(target, name, {\n        enumerable: true,\n        get: Object.getOwnPropertyDescriptor(all, name).get\n    });\n}\n_export(exports, {\n    get default () {\n        return _default;\n    },\n    get parse () {\n        return parse;\n    }\n});\nvar _pluginhelper = require(\"@bbob/plugin-helper\");\nvar _lexer = require(\"./lexer.js\");\nvar _Token = require(\"./Token.js\");\nvar _NodeList = require(\"./NodeList.js\");\nvar createList = function createList() {\n    return new _NodeList.NodeList();\n};\nfunction parse(input, opts) {\n    if (opts === void 0) opts = {};\n    var options = opts;\n    var openTag = options.openTag || _pluginhelper.OPEN_BRAKET;\n    var closeTag = options.closeTag || _pluginhelper.CLOSE_BRAKET;\n    var onlyAllowTags = (options.onlyAllowTags || []).filter(Boolean).map(function(tag) {\n        return tag.toLowerCase();\n    });\n    var caseFreeTags = options.caseFreeTags || false;\n    var tokenizer = null;\n    /**\n   * Result AST of nodes\n   * @private\n   * @type {NodeList}\n   */ var nodes = createList();\n    /**\n   * Temp buffer of nodes that's nested to another node\n   * @private\n   */ var nestedNodes = createList();\n    /**\n   * Temp buffer of nodes [tag..]...[/tag]\n   * @private\n   * @type {NodeList}\n   */ var activeTagNode = null;\n    /**\n   * Temp buffer of tag attributes\n   * @private\n   * @type {NodeList}\n   */ var activeTagNodesAttrName = null;\n    /**\n   * Cache for nested tags checks\n   */ var nestedTagsMap = new Set();\n    function getValue(tokenValue) {\n        return caseFreeTags ? tokenValue.toLowerCase() : tokenValue;\n    }\n    function isTokenNested(token) {\n        var tokenValue = token.getValue();\n        var value = getValue(tokenValue);\n        var isTokenNested = (tokenizer || {}).isTokenNested;\n        if (!nestedTagsMap.has(value) && typeof isTokenNested === \"function\") {\n            if (isTokenNested(value)) {\n                nestedTagsMap.add(value);\n                return true;\n            }\n        }\n        return nestedTagsMap.has(value);\n    }\n    /**\n   * @private\n   */ function isTagNested(tagName) {\n        return Boolean(nestedTagsMap.has(getValue(tagName)));\n    }\n    /**\n   * @private\n   */ function isTagAllowed(value) {\n        if (onlyAllowTags.length) {\n            return onlyAllowTags.indexOf(value.toLowerCase()) >= 0;\n        }\n        return true;\n    }\n    /**\n   * Flushes temp tag nodes and its attributes buffers\n   * @private\n   */ function activeTagNodeFlush() {\n        if (activeTagNode) {\n            activeTagNode = null;\n            activeTagNodesAttrName = null;\n        }\n    }\n    /**\n   * @private\n   */ function getNodesContent() {\n        var lastNestedNode = nestedNodes.last();\n        if (lastNestedNode && (0, _pluginhelper.isTagNode)(lastNestedNode)) {\n            return lastNestedNode.content;\n        }\n        return nodes.ref();\n    }\n    /**\n   * @private\n   */ function nodesAppendAsString(nodes, node, isNested) {\n        if (isNested === void 0) isNested = true;\n        if (Array.isArray(nodes) && typeof node !== \"undefined\") {\n            nodes.push(node.toTagStart({\n                openTag: openTag,\n                closeTag: closeTag\n            }));\n            if (Array.isArray(node.content) && node.content.length) {\n                node.content.forEach(function(item) {\n                    nodes.push(item);\n                });\n                if (isNested) {\n                    nodes.push(node.toTagEnd({\n                        openTag: openTag,\n                        closeTag: closeTag\n                    }));\n                }\n            }\n        }\n    }\n    /**\n   * @private\n   */ function nodesAppend(node) {\n        var nodes = getNodesContent();\n        if (Array.isArray(nodes) && typeof node !== \"undefined\") {\n            if ((0, _pluginhelper.isTagNode)(node)) {\n                if (isTagAllowed(node.tag)) {\n                    nodes.push(node.toTagNode());\n                } else {\n                    nodesAppendAsString(nodes, node);\n                }\n            } else {\n                nodes.push(node);\n            }\n        }\n    }\n    /**\n   * @private\n   * @param {Token} token\n   */ function tagHandleStart(token) {\n        activeTagNodeFlush();\n        var tagNode = _pluginhelper.TagNode.create(token.getValue(), {}, [], {\n            from: token.getStart(),\n            to: token.getEnd()\n        });\n        var isNested = isTokenNested(token);\n        activeTagNode = tagNode;\n        if (isNested) {\n            nestedNodes.push(tagNode);\n        } else {\n            nodesAppend(tagNode);\n        }\n    }\n    /**\n   * @private\n   * @param {Token} token\n   */ function tagHandleEnd(token) {\n        var tagName = token.getValue().slice(1);\n        var lastNestedNode = nestedNodes.flush();\n        activeTagNodeFlush();\n        if (lastNestedNode) {\n            if ((0, _pluginhelper.isTagNode)(lastNestedNode)) {\n                lastNestedNode.setEnd({\n                    from: token.getStart(),\n                    to: token.getEnd()\n                });\n            }\n            nodesAppend(lastNestedNode);\n        } else if (!isTagNested(tagName)) {\n            nodesAppend(token.toString({\n                openTag: openTag,\n                closeTag: closeTag\n            }));\n        } else if (typeof options.onError === \"function\") {\n            var tag = token.getValue();\n            var line = token.getLine();\n            var column = token.getColumn();\n            options.onError({\n                tagName: tag,\n                lineNumber: line,\n                columnNumber: column\n            });\n        }\n    }\n    /**\n   * @private\n   * @param {Token} token\n   */ function nodeHandle(token) {\n        var tokenValue = token.getValue();\n        var isNested = isTagNested(token.toString());\n        if (activeTagNode) {\n            switch(token.type){\n                case _Token.TYPE_ATTR_NAME:\n                    activeTagNodesAttrName = tokenValue;\n                    if (tokenValue) {\n                        activeTagNode.attr(tokenValue, \"\");\n                    }\n                    break;\n                case _Token.TYPE_ATTR_VALUE:\n                    if (activeTagNodesAttrName) {\n                        activeTagNode.attr(activeTagNodesAttrName, tokenValue);\n                        activeTagNodesAttrName = null;\n                    } else {\n                        activeTagNode.attr(tokenValue, tokenValue);\n                    }\n                    break;\n                case _Token.TYPE_SPACE:\n                case _Token.TYPE_NEW_LINE:\n                case _Token.TYPE_WORD:\n                    if (isNested) {\n                        activeTagNode.append(tokenValue);\n                    } else {\n                        nodesAppend(tokenValue);\n                    }\n                    break;\n                case _Token.TYPE_TAG:\n                    // if tag is not allowed, just pass it as is\n                    nodesAppend(token.toString({\n                        openTag: openTag,\n                        closeTag: closeTag\n                    }));\n                    break;\n            }\n        } else if (token.isText()) {\n            nodesAppend(tokenValue);\n        } else if (token.isTag()) {\n            // if tag is not allowed, just pass it as is\n            nodesAppend(token.toString({\n                openTag: openTag,\n                closeTag: closeTag\n            }));\n        }\n    }\n    /**\n   * @private\n   * @param {Token} token\n   */ function onToken(token) {\n        if (token.isTag()) {\n            // [tag]\n            if (token.isStart()) {\n                tagHandleStart(token);\n            }\n            // [/tag]\n            if (token.isEnd()) {\n                tagHandleEnd(token);\n            }\n        } else {\n            nodeHandle(token);\n        }\n    }\n    var lexer = opts.createTokenizer ? opts.createTokenizer : _lexer.createLexer;\n    tokenizer = lexer(input, {\n        onToken: onToken,\n        openTag: openTag,\n        closeTag: closeTag,\n        onlyAllowTags: options.onlyAllowTags,\n        contextFreeTags: options.contextFreeTags,\n        caseFreeTags: options.caseFreeTags,\n        enableEscapeTags: options.enableEscapeTags,\n        whitespaceInTags: options.whitespaceInTags\n    });\n    // eslint-disable-next-line no-unused-vars\n    var tokens = tokenizer.tokenize();\n    // handles situations where we opened tag, but forget to close them\n    // for ex [q]test[/q][u]some[/u][q]some [u]some[/u] // forgot to close [/q]\n    // so we need to flush nested content to nodes array\n    do {\n        var node = nestedNodes.flush();\n        if ((0, _pluginhelper.isTagNode)(node) && isTagNested(node.tag)) {\n            nodesAppendAsString(getNodesContent(), node, false);\n        } else if (typeof node !== 'undefined') {\n            nodesAppend(node);\n        }\n    }while (nestedNodes.has());\n    return nodes.ref();\n}\nvar _default = parse;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nfunction _export(target, all) {\n    for(var name in all)Object.defineProperty(target, name, {\n        enumerable: true,\n        get: Object.getOwnPropertyDescriptor(all, name).get\n    });\n}\n_export(exports, {\n    get CharGrabber () {\n        return CharGrabber;\n    },\n    get createCharGrabber () {\n        return createCharGrabber;\n    },\n    get trimChar () {\n        return trimChar;\n    },\n    get unquote () {\n        return unquote;\n    }\n});\nvar _pluginhelper = require(\"@bbob/plugin-helper\");\nvar CharGrabber = /*#__PURE__*/ function() {\n    \"use strict\";\n    function CharGrabber(source, options) {\n        if (options === void 0) options = {};\n        this.s = source;\n        this.pos = 0;\n        this.len = source.length;\n        this.onSkip = options.onSkip || null;\n    }\n    var _proto = CharGrabber.prototype;\n    _proto.skip = function skip(num, silent) {\n        if (num === void 0) num = 1;\n        this.pos += num;\n        if (!silent && this.onSkip) {\n            this.onSkip();\n        }\n    };\n    _proto.hasNext = function hasNext() {\n        return this.len > this.pos;\n    };\n    _proto.getCurr = function getCurr() {\n        return this.pos < this.len ? this.s[this.pos] : '';\n    };\n    _proto.getPos = function getPos() {\n        return this.pos;\n    };\n    _proto.getLength = function getLength() {\n        return this.len;\n    };\n    _proto.getRest = function getRest() {\n        return this.s.substring(this.pos);\n    };\n    _proto.getNext = function getNext() {\n        var nextPos = this.pos + 1;\n        return nextPos < this.len ? this.s[nextPos] : null;\n    };\n    _proto.getPrev = function getPrev() {\n        var prevPos = this.pos - 1;\n        return prevPos >= 0 ? this.s[prevPos] : null;\n    };\n    _proto.isLast = function isLast() {\n        return this.pos === this.len;\n    };\n    _proto.includes = function includes(val) {\n        return this.s.indexOf(val, this.pos) >= 0;\n    };\n    _proto.grabWhile = function grabWhile(condition, silent) {\n        var start = 0;\n        if (this.hasNext()) {\n            start = this.pos;\n            var onSkip = silent ? null : this.onSkip;\n            while(this.pos < this.len && condition(this.s[this.pos])){\n                this.pos++;\n                if (onSkip) onSkip();\n            }\n        }\n        return this.s.substring(start, this.pos);\n    };\n    _proto.grabN = function grabN(num) {\n        if (num === void 0) num = 0;\n        return this.s.substring(this.pos, this.pos + num);\n    };\n    /**\n   * Grabs rest of string until it find a char\n   */ _proto.substrUntilChar = function substrUntilChar(char) {\n        var pos = this.pos;\n        var idx = this.s.indexOf(char, pos);\n        return idx >= 0 ? this.s.substring(pos, idx) : '';\n    };\n    return CharGrabber;\n}();\nvar createCharGrabber = function createCharGrabber(source, options) {\n    return new CharGrabber(source, options);\n};\nvar trimChar = function trimChar(str, charToRemove) {\n    var start = 0;\n    var end = str.length;\n    while(start < end && str[start] === charToRemove)start++;\n    while(end > start && str[end - 1] === charToRemove)end--;\n    return start === 0 && end === str.length ? str : str.substring(start, end);\n};\nvar unquote = function unquote(str) {\n    return str.replace(_pluginhelper.BACKSLASH + _pluginhelper.QUOTEMARK, _pluginhelper.QUOTEMARK);\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nObject.defineProperty(exports, \"TagNode\", {\n    enumerable: true,\n    get: function() {\n        return TagNode;\n    }\n});\nvar _char = require(\"./char.js\");\nvar _helpers = require(\"./helpers.js\");\nfunction _defineProperties(target, props) {\n    for(var i = 0; i < props.length; i++){\n        var descriptor = props[i];\n        descriptor.enumerable = descriptor.enumerable || false;\n        descriptor.configurable = true;\n        if (\"value\" in descriptor) descriptor.writable = true;\n        Object.defineProperty(target, descriptor.key, descriptor);\n    }\n}\nfunction _create_class(Constructor, protoProps, staticProps) {\n    if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n    if (staticProps) _defineProperties(Constructor, staticProps);\n    return Constructor;\n}\nfunction _extends() {\n    _extends = Object.assign || function(target) {\n        for(var i = 1; i < arguments.length; i++){\n            var source = arguments[i];\n            for(var key in source){\n                if (Object.prototype.hasOwnProperty.call(source, key)) {\n                    target[key] = source[key];\n                }\n            }\n        }\n        return target;\n    };\n    return _extends.apply(this, arguments);\n}\nvar getTagAttrs = function getTagAttrs(tag, params) {\n    var uniqAttr = (0, _helpers.getUniqAttr)(params);\n    if (uniqAttr) {\n        var tagAttr = (0, _helpers.attrValue)(tag, uniqAttr);\n        var attrs = _extends({}, params);\n        delete attrs[String(uniqAttr)];\n        var attrsStr = (0, _helpers.attrsToString)(attrs);\n        return \"\" + tagAttr + attrsStr;\n    }\n    return \"\" + tag + (0, _helpers.attrsToString)(params);\n};\nvar toString = function toString(node, openTag, closeTag) {\n    if ((0, _helpers.isTagNode)(node)) {\n        return node.toString({\n            openTag: openTag,\n            closeTag: closeTag\n        });\n    }\n    return String(node);\n};\nvar nodeTreeToString = function nodeTreeToString(content, openTag, closeTag) {\n    if (Array.isArray(content)) {\n        return content.reduce(function(r, node) {\n            if (node !== null) {\n                return r + toString(node, openTag, closeTag);\n            }\n            return r;\n        }, '');\n    }\n    if (content) {\n        return toString(content, openTag, closeTag);\n    }\n    return null;\n};\nvar TagNode = /*#__PURE__*/ function() {\n    \"use strict\";\n    function TagNode(tag, attrs, content, start, end) {\n        this.tag = tag;\n        this.attrs = attrs;\n        this.content = content;\n        this.start = start;\n        this.end = end;\n    }\n    var _proto = TagNode.prototype;\n    _proto.attr = function attr(name, value) {\n        if (typeof value !== 'undefined') {\n            this.attrs[name] = value;\n        }\n        return this.attrs[name];\n    };\n    _proto.append = function append(value) {\n        return (0, _helpers.appendToNode)(this, value);\n    };\n    _proto.setStart = function setStart(value) {\n        this.start = value;\n    };\n    _proto.setEnd = function setEnd(value) {\n        this.end = value;\n    };\n    _proto.toTagStart = function toTagStart(param) {\n        var _ref = param === void 0 ? {} : param, _ref_openTag = _ref.openTag, openTag = _ref_openTag === void 0 ? _char.OPEN_BRAKET : _ref_openTag, _ref_closeTag = _ref.closeTag, closeTag = _ref_closeTag === void 0 ? _char.CLOSE_BRAKET : _ref_closeTag;\n        var tagAttrs = getTagAttrs(String(this.tag), this.attrs);\n        return \"\" + openTag + tagAttrs + closeTag;\n    };\n    _proto.toTagEnd = function toTagEnd(param) {\n        var _ref = param === void 0 ? {} : param, _ref_openTag = _ref.openTag, openTag = _ref_openTag === void 0 ? _char.OPEN_BRAKET : _ref_openTag, _ref_closeTag = _ref.closeTag, closeTag = _ref_closeTag === void 0 ? _char.CLOSE_BRAKET : _ref_closeTag;\n        return \"\" + openTag + _char.SLASH + this.tag + closeTag;\n    };\n    _proto.toTagNode = function toTagNode() {\n        return new TagNode(this.tag, this.attrs, this.content, this.start, this.end);\n    };\n    _proto.toString = function toString(param) {\n        var _ref = param === void 0 ? {} : param, _ref_openTag = _ref.openTag, openTag = _ref_openTag === void 0 ? _char.OPEN_BRAKET : _ref_openTag, _ref_closeTag = _ref.closeTag, closeTag = _ref_closeTag === void 0 ? _char.CLOSE_BRAKET : _ref_closeTag;\n        var content = this.content ? nodeTreeToString(this.content, openTag, closeTag) : '';\n        var tagStart = this.toTagStart({\n            openTag: openTag,\n            closeTag: closeTag\n        });\n        if (this.content === null || Array.isArray(this.content) && this.content.length === 0) {\n            return tagStart;\n        }\n        return \"\" + tagStart + content + this.toTagEnd({\n            openTag: openTag,\n            closeTag: closeTag\n        });\n    };\n    _proto.toJSON = function toJSON() {\n        return {\n            tag: this.tag,\n            attrs: this.attrs,\n            content: this.content,\n            start: this.start,\n            end: this.end\n        };\n    };\n    TagNode.create = function create(tag, attrs, content, start) {\n        if (attrs === void 0) attrs = {};\n        if (content === void 0) content = null;\n        return new TagNode(tag, attrs, content, start);\n    };\n    TagNode.isOf = function isOf(node, type) {\n        return node.tag === type;\n    };\n    _create_class(TagNode, [\n        {\n            key: \"length\",\n            get: function get() {\n                return (0, _helpers.getNodeLength)(this);\n            }\n        }\n    ]);\n    return TagNode;\n}();\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nfunction _export(target, all) {\n    for(var name in all)Object.defineProperty(target, name, {\n        enumerable: true,\n        get: Object.getOwnPropertyDescriptor(all, name).get\n    });\n}\n_export(exports, {\n    get BACKSLASH () {\n        return BACKSLASH;\n    },\n    get CLOSE_BRAKET () {\n        return CLOSE_BRAKET;\n    },\n    get EQ () {\n        return EQ;\n    },\n    get F () {\n        return F;\n    },\n    get N () {\n        return N;\n    },\n    get OPEN_BRAKET () {\n        return OPEN_BRAKET;\n    },\n    get QUOTEMARK () {\n        return QUOTEMARK;\n    },\n    get R () {\n        return R;\n    },\n    get SLASH () {\n        return SLASH;\n    },\n    get SPACE () {\n        return SPACE;\n    },\n    get TAB () {\n        return TAB;\n    }\n});\nvar N = '\\n';\nvar TAB = '\\t';\nvar F = '\\f';\nvar R = '\\r';\nvar EQ = '=';\nvar QUOTEMARK = '\"';\nvar SPACE = ' ';\nvar OPEN_BRAKET = '[';\nvar CLOSE_BRAKET = ']';\nvar SLASH = '/';\nvar BACKSLASH = '\\\\';\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\nfunction _export(target, all) {\n    for(var name in all)Object.defineProperty(target, name, {\n        enumerable: true,\n        get: Object.getOwnPropertyDescriptor(all, name).get\n    });\n}\n_export(exports, {\n    get appendToNode () {\n        return appendToNode;\n    },\n    get attrValue () {\n        return attrValue;\n    },\n    get attrsToString () {\n        return attrsToString;\n    },\n    get escapeAttrValue () {\n        return escapeAttrValue;\n    },\n    get escapeHTML () {\n        return escapeHTML;\n    },\n    get getNodeLength () {\n        return getNodeLength;\n    },\n    get getUniqAttr () {\n        return getUniqAttr;\n    },\n    get isEOL () {\n        return isEOL;\n    },\n    get isStringNode () {\n        return isStringNode;\n    },\n    get isTagNode () {\n        return isTagNode;\n    }\n});\nvar _char = require(\"./char.js\");\nfunction _type_of(obj) {\n    \"@swc/helpers - typeof\";\n    return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nfunction isTagNode(el) {\n    return (typeof el === \"undefined\" ? \"undefined\" : _type_of(el)) === 'object' && el !== null && 'tag' in el;\n}\nfunction isStringNode(el) {\n    return typeof el === 'string';\n}\n// check string is end of line\nfunction isEOL(el) {\n    return el === _char.N;\n}\nfunction keysReduce(obj, reduce, def) {\n    var keys = Object.keys(obj);\n    return keys.reduce(function(acc, key) {\n        return reduce(acc, key, obj);\n    }, def);\n}\nfunction getNodeLength(node) {\n    if (isTagNode(node) && Array.isArray(node.content)) {\n        return node.content.reduce(function(count, contentNode) {\n            return count + getNodeLength(contentNode);\n        }, 0);\n    }\n    if (isStringNode(node)) {\n        return String(node).length;\n    }\n    return 0;\n}\nfunction appendToNode(node, value) {\n    if (Array.isArray(node.content)) {\n        node.content.push(value);\n    }\n}\n/**\n * C0 control characters (plus DEL). Browsers remove ASCII tab/newline/CR and\n * ignore other control chars when resolving a URL scheme, so a control char\n * inside the scheme keyword (e.g. \"java\\tscript:\") would otherwise slip past\n * the scheme guard below while still executing. Strip them so the scheme can't\n * be split apart. Harmless for non-URL attributes, where such chars aren't valid.\n */ var CONTROL_CHARS_RE = /[\\u0000-\\u001F\\u007F]/g;\n/**\n * Escapes an attribute value for safe HTML output and neutralizes\n * dangerous URL schemes.\n * @param {string} value\n */ function escapeAttrValue(value) {\n    return value.replace(CONTROL_CHARS_RE, '').replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;').replace(/'/g, '&#039;')// eslint-disable-next-line no-script-url\n    .replace(/(javascript|data|vbscript|file):/gi, '$1%3A');\n}\n/**\n * @deprecated use escapeAttrValue\n */ var escapeHTML = escapeAttrValue;\n/**\n * Accept name and value and return valid html5 attribute string\n */ function attrValue(name, value) {\n    // in case of performance\n    switch(typeof value === \"undefined\" ? \"undefined\" : _type_of(value)){\n        case 'boolean':\n            return value ? \"\" + name : '';\n        case 'number':\n            return name + '=\"' + value + '\"';\n        case 'string':\n            return name + '=\"' + escapeAttrValue(value) + '\"';\n        case 'object':\n            return name + '=\"' + escapeAttrValue(JSON.stringify(value)) + '\"';\n        default:\n            return '';\n    }\n}\n/**\n * Transforms attrs to html params string\n * @example\n * attrsToString({ 'foo': true, 'bar': bar' }) => 'foo=\"true\" bar=\"bar\"'\n */ function attrsToString(values) {\n    // To avoid some malformed attributes\n    if (values == null) {\n        return '';\n    }\n    return keysReduce(values, function(arr, key, obj) {\n        return [].concat(arr, [\n            attrValue(key, obj[key])\n        ]);\n    }, [\n        ''\n    ]).join(' ');\n}\n/**\n * Gets value from\n * @example\n * getUniqAttr({ 'foo': true, 'bar': bar' }) => 'bar'\n */ function getUniqAttr(attrs) {\n    return keysReduce(attrs || {}, function(res, key, obj) {\n        return obj[key] === key ? obj[key] : null;\n    }, null);\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n    value: true\n});\n_export_star(require(\"./helpers.js\"), exports);\n_export_star(require(\"./char.js\"), exports);\n_export_star(require(\"./TagNode.js\"), exports);\nfunction _export_star(from, to) {\n    Object.keys(from).forEach(function(k) {\n        if (k !== \"default\" && !Object.prototype.hasOwnProperty.call(to, k)) {\n            Object.defineProperty(to, k, {\n                enumerable: true,\n                get: function() {\n                    return from[k];\n                }\n            });\n        }\n    });\n    return from;\n}\n","import type { PendingWaiterState, Waiter, WaiterName } from './types/index.ts';\n\ntype Indexable = Record<any, unknown>;\n\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)\nconst WAITERS: Map<WaiterName, Waiter> = (function () {\n  const HAS_SYMBOL = typeof Symbol !== 'undefined';\n\n  const symbolName = 'TEST_WAITERS';\n  const symbol = HAS_SYMBOL ? (Symbol.for(symbolName) as any) : symbolName;\n\n  const global = getGlobal();\n\n  let waiters = global[symbol];\n  if (waiters === undefined) {\n    waiters = global[symbol] = new Map<WaiterName, Waiter>();\n  }\n\n  return waiters as Map<WaiterName, Waiter>;\n})();\n\nfunction indexable<T extends object>(input: T): T & Indexable {\n  return input as T & Indexable;\n}\n\nfunction getGlobal(): Indexable {\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\n  throw new Error('unable to locate global object');\n}\n\n/**\n * Registers a waiter.\n *\n * @public\n * @param waiter {Waiter} A test waiter instance\n */\nexport function register(waiter: Waiter): void {\n  WAITERS.set(waiter.name, waiter);\n}\n\n/**\n * Un-registers a waiter.\n *\n * @public\n * @param waiter {Waiter} A test waiter instance\n */\nexport function unregister(waiter: Waiter): void {\n  WAITERS.delete(waiter.name);\n}\n\n/**\n * Gets an array of all waiters current registered.\n *\n * @public\n * @returns {Waiter[]}\n */\nexport function getWaiters(): Waiter[] {\n  const result: Waiter[] = [];\n\n  WAITERS.forEach((value) => {\n    result.push(value);\n  });\n\n  return result;\n}\n\n/**\n * Clears all waiters.\n *\n * @private\n */\nexport function _reset(): void {\n  for (const waiter of getWaiters()) {\n    (waiter as any).isRegistered = false;\n  }\n\n  WAITERS.clear();\n}\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 */\nexport function getPendingWaiterState(): PendingWaiterState {\n  const result: PendingWaiterState = {\n    pending: 0,\n    waiters: {},\n  };\n\n  WAITERS.forEach((waiter) => {\n    if (!waiter.waitUntil()) {\n      result.pending++;\n\n      const debugInfo = waiter.debugInfo();\n      result.waiters[waiter.name] = debugInfo || true;\n    }\n  });\n\n  return result;\n}\n\n/**\n * Determines if there are any pending waiters.\n *\n * @returns {boolean} `true` if there are pending waiters, otherwise `false`.\n */\nexport function hasPendingWaiters(): boolean {\n  const state = getPendingWaiterState();\n\n  return state.pending > 0;\n}\n","import type { Primitive, TestWaiter, TestWaiterDebugInfo, WaiterName } from './types/index.ts';\nimport { macroCondition, isDevelopingApp } from '@embroider/macros';\nimport { warn } from '@ember/debug';\nimport Token from './token.ts';\nimport { register } from './waiter-manager.ts';\n\nconst WAITER_NAME_PATTERN = /^[^:]*:?.*/;\nlet WAITER_NAMES = macroCondition(isDevelopingApp()) ? new Set() : undefined;\n\nexport function _resetWaiterNames() {\n  WAITER_NAMES = new Set();\n}\n\nfunction getNextToken(): Token {\n  return new Token();\n}\n\nclass TestWaiterImpl<T extends object | Primitive = Token> implements TestWaiter<T> {\n  public name: WaiterName;\n  private nextToken: () => T;\n  private isRegistered = false;\n\n  items = new Map<T, TestWaiterDebugInfo>();\n  completedOperationsForTokens = new WeakMap<Token, boolean>();\n  completedOperationsForPrimitives = new Map<Primitive, boolean>();\n\n  constructor(name: WaiterName, nextToken?: () => T) {\n    this.name = name;\n    // @ts-ignore\n    this.nextToken = nextToken || getNextToken;\n  }\n\n  beginAsync(token: T = this.nextToken(), label?: string): T {\n    this._register();\n\n    if (this.items.has(token)) {\n      // SAFETY: force stringification of a potential symbol\n      throw new Error(`beginAsync called for ${token as string} but it is already pending.`);\n    }\n\n    const error = new Error();\n\n    this.items.set(token, {\n      get stack() {\n        return error.stack;\n      },\n      label,\n    });\n\n    return token;\n  }\n\n  endAsync(token: T): void {\n    if (!this.items.has(token) && !this._getCompletedOperations(token).has(token)) {\n      throw new Error(\n        `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    }\n\n    this.items.delete(token);\n    // Mark when a waiter operation has completed so we can distinguish\n    // whether endAsync is being called before a prior beginAsync call above.\n    this._getCompletedOperations(token).set(token, true);\n  }\n\n  waitUntil(): boolean {\n    return this.items.size === 0;\n  }\n\n  debugInfo(): TestWaiterDebugInfo[] {\n    const result: TestWaiterDebugInfo[] = [];\n\n    this.items.forEach((value) => {\n      result.push(value);\n    });\n\n    return result;\n  }\n\n  reset(): void {\n    this.items.clear();\n  }\n\n  private _register(): void {\n    if (!this.isRegistered) {\n      register(this);\n      this.isRegistered = true;\n    }\n  }\n\n  private _getCompletedOperations(token: T) {\n    const type = typeof token;\n\n    const isFunction = type === 'function';\n    const isObject = token !== null && type === 'object';\n    const isPrimitive = !isFunction && !isObject;\n\n    return isPrimitive ? this.completedOperationsForPrimitives : this.completedOperationsForTokens;\n  }\n}\n\nclass NoopTestWaiter implements TestWaiter {\n  name: string;\n  constructor(name: string) {\n    this.name = name;\n  }\n\n  beginAsync(): Token {\n    return this;\n  }\n\n  endAsync(): void {}\n\n  waitUntil(): boolean {\n    return true;\n  }\n\n  debugInfo(): TestWaiterDebugInfo[] {\n    return [];\n  }\n\n  reset(): void {}\n}\n\n/**\n * Builds and returns a test waiter. The type of the\n * returned waiter is dependent on whether the app or\n * addon is in `isDevelopingApp()` 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 (macroCondition(isDevelopingApp())) {\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 */\nexport default function buildWaiter(name: string): TestWaiter {\n  if (macroCondition(isDevelopingApp())) {\n    warn(`The waiter name '${name}' is already in use`, !WAITER_NAMES!.has(name), {\n      id: '@ember/test-waiters.duplicate-waiter-name',\n    });\n    WAITER_NAMES!.add(name);\n  }\n\n  if (macroCondition(!isDevelopingApp())) {\n    return new NoopTestWaiter(name);\n  } else {\n    warn(\n      `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}`,\n      WAITER_NAME_PATTERN.test(name),\n      { id: '@ember/test-waiters.invalid-waiter-name' }\n    );\n\n    return new TestWaiterImpl(name);\n  }\n}\n","import { macroCondition, isDevelopingApp } from '@embroider/macros';\nimport buildWaiter from './build-waiter.ts';\n\nimport type { PromiseType, Thenable } from './types/index.ts';\n\nconst PROMISE_WAITER = buildWaiter('@ember/test-waiters:promise-waiter');\n\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 */\nexport default function waitForPromise<T, KindOfPromise extends PromiseType<T>>(\n  promise: KindOfPromise,\n  label?: string\n): KindOfPromise {\n  let result = promise;\n\n  if (macroCondition(isDevelopingApp())) {\n    PROMISE_WAITER.beginAsync(promise, label);\n\n    result = (promise as unknown as Thenable<T, KindOfPromise>).then(\n      (value: T) => {\n        PROMISE_WAITER.endAsync(promise);\n        return value;\n      },\n      (error: Error) => {\n        PROMISE_WAITER.endAsync(promise);\n        throw error;\n      }\n    );\n  }\n\n  return result;\n}\n","import { macroCondition, isDevelopingApp } from '@embroider/macros';\nimport waitForPromise from './wait-for-promise.ts';\nimport buildWaiter from './build-waiter.ts';\nimport type { PromiseType } from './types/index.ts';\n\ntype AsyncFunction<A extends Array<any>, PromiseReturn> = (...args: A) => Promise<PromiseReturn>;\ntype AsyncFunctionArguments = [AsyncFunction<any[], any>, string?];\n\ntype CoroutineGenerator<T> = Generator<any, T, any>;\ntype CoroutineFunction<A extends Array<any>, T> = (...args: A) => CoroutineGenerator<T>;\ntype CoroutineFunctionArguments = [CoroutineFunction<any[], any>, string?];\n\ntype DecoratorArguments = [object, string, PropertyDescriptor, string?];\n\n/**\n * A convenient utility function to simplify waiting for async. Can be used\n * in both decorator and function form. When applied to an async function, it\n * will cause tests to wait until the returned promise has resolves. When\n * applied to a generator function, it will cause tests to wait until the\n * returned iterator has run to completion, which is useful for wrapping\n * ember-concurrency task functions.\n *\n *\n * @public\n * @param promise {Function} An async function or a generator function\n * @param label {string} An optional string to identify the promise\n *\n * @example\n *\n * import Component from '@ember/component';\n * import { waitFor } from '@ember/test-waiters';\n *\n * export default Component.extend({\n *   doAsyncStuff: waitFor(async function doAsyncStuff() {\n *     await somethingAsync();\n *   }\n * });\n *\n * @example\n *\n * import Component from '@ember/component';\n * import { waitFor } from '@ember/test-waiters';\n *\n * export default class Friendz extends Component {\n *   @waitFor\n *   async doAsyncStuff() {\n *     await somethingAsync();\n *   }\n * }\n *\n */\nexport default function waitFor<A extends Array<any>, PromiseReturn>(\n  fn: AsyncFunction<A, PromiseReturn>,\n  label?: string\n): AsyncFunction<A, PromiseReturn>;\nexport default function waitFor<A extends Array<any>, T>(\n  fn: CoroutineFunction<A, T>,\n  label?: string\n): CoroutineFunction<A, T>;\nexport default function waitFor(\n  target: object,\n  _key: string,\n  descriptor: PropertyDescriptor,\n  label?: string\n): PropertyDescriptor;\nexport default function waitFor(\n  ...args: AsyncFunctionArguments | CoroutineFunctionArguments | DecoratorArguments\n): PropertyDescriptor | Function | CoroutineFunction<any[], any> {\n  const isFunction = args.length < 3;\n\n  if (isFunction) {\n    const [fn, label] = args as AsyncFunctionArguments | CoroutineFunctionArguments;\n\n    return wrapFunction(fn, label);\n  } else {\n    const [, , descriptor, label] = args as DecoratorArguments;\n\n    if (macroCondition(!isDevelopingApp())) {\n      return descriptor;\n    }\n\n    const fn = descriptor.value;\n\n    descriptor.value = wrapFunction(fn, label);\n\n    return descriptor;\n  }\n}\n\nfunction wrapFunction(fn: Function, label?: string) {\n  if (macroCondition(!isDevelopingApp())) {\n    return fn;\n  }\n\n  return function (this: any, ...args: any[]) {\n    const result = fn.call(this, ...args);\n\n    if (isThenable(result)) {\n      return waitForPromise(result, label);\n    } else if (isGenerator(result)) {\n      return waitForGenerator(result, label);\n    } else {\n      return result;\n    }\n  };\n}\n\nfunction isThenable(\n  maybePromise: any | PromiseType<unknown>\n): maybePromise is PromiseType<unknown> {\n  const type = typeof maybePromise;\n\n  return (\n    ((maybePromise !== null && type === 'object') || type === 'function') &&\n    typeof maybePromise.then === 'function'\n  );\n}\n\nfunction isGenerator(\n  maybeGenerator: any | CoroutineGenerator<unknown>\n): maybeGenerator is CoroutineGenerator<unknown> {\n  // Because we don't have Symbol.iterator in IE11\n  return (\n    typeof maybeGenerator.next === 'function' &&\n    typeof maybeGenerator.return === 'function' &&\n    typeof maybeGenerator.throw === 'function'\n  );\n}\n\nconst GENERATOR_WAITER = buildWaiter('@ember/test-waiters:generator-waiter');\n\nfunction waitForGenerator<T>(\n  generator: CoroutineGenerator<T>,\n  label?: string\n): CoroutineGenerator<T> {\n  GENERATOR_WAITER.beginAsync(generator, label);\n\n  let isWaiting = true;\n  function stopWaiting() {\n    if (isWaiting) {\n      GENERATOR_WAITER.endAsync(generator);\n      isWaiting = false;\n    }\n  }\n\n  return {\n    next(...args) {\n      let hasErrored = true;\n      try {\n        const val = generator.next(...args);\n        hasErrored = false;\n\n        if (val.done) {\n          stopWaiting();\n        }\n        return val;\n      } finally {\n        // If generator.next() throws, we need to stop waiting. But if we catch\n        // and re-throw exceptions, it could move the location from which the\n        // uncaught exception is thrown, interfering with the developer\n        // debugging experience if they have break-on-exceptions enabled. So we\n        // use a boolean flag and a finally block to emulate a catch block.\n        if (hasErrored) {\n          stopWaiting();\n        }\n      }\n    },\n    return(...args) {\n      stopWaiting();\n      return generator.return(...args);\n    },\n    throw(...args) {\n      stopWaiting();\n      return generator.throw(...args);\n    },\n  } as CoroutineGenerator<T>;\n}\n","import { default as waitForPromise } from './wait-for-promise.ts';\n\nconst props = [\n  'body',\n  'bodyUsed',\n  'headers',\n  'ok',\n  'redirected',\n  'status',\n  'statusText',\n  'type',\n  'url',\n] as const satisfies (keyof Response)[];\ntype ResponseProp = (typeof props)[number];\nfunction isResponseProperty(maybeProp: string): maybeProp is ResponseProp {\n  return props.some((prop) => maybeProp === prop);\n}\n\nconst fns = [\n  'arrayBuffer',\n  'blob',\n  'bytes',\n  'clone',\n  'formData',\n  'json',\n  'text',\n] as const satisfies (keyof Response)[];\ntype ResponseFn = (typeof fns)[number];\nfunction isResponseFn(maybeFn: string): maybeFn is ResponseFn {\n  return fns.some((fn) => maybeFn === fn);\n}\n\n/**\n * Wraps the fetch promise in a test waiter, and also wraps the returned promises' async functions (like json()) in a\n * test waiter.\n */\nexport async function waitForFetch(fetchPromise: ReturnType<typeof fetch>) {\n  const response = await waitForPromise(fetchPromise);\n\n  return new Proxy(response, {\n    get(target, prop, receiver) {\n      /* Depending on the stack, Response is often already a Proxy. Reflect.get() will error for property values, when\n       * using a Proxy as the _receiver_ arg, so just return the value the normal way to avoid that issue. */\n      if (typeof prop === 'string' && isResponseProperty(prop)) {\n        return target[prop];\n      }\n      const original = Reflect.get(target, prop, receiver);\n\n      // Wrap Response functions in test waiter\n      if (typeof prop === 'string' && isResponseFn(prop)) {\n        // clone() is sync, no need to wrap in test-waiter\n        if (prop === 'clone') {\n          return (...args: unknown[]) => {\n            return original.call(target, ...args);\n          };\n        }\n        return (...args: unknown[]) => {\n          return waitForPromise(original.call(target, ...args));\n        };\n      }\n      // return the Reflect.get() result for anything else\n      return original;\n    },\n  });\n}\n","/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n  x: v,\n  y: v\n});\nconst oppositeSideMap = {\n  left: 'right',\n  right: 'left',\n  bottom: 'top',\n  top: 'bottom'\n};\nfunction clamp(start, value, end) {\n  return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n  return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n  return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n  return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n  return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n  return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n  const firstChar = placement[0];\n  return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n  return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n  if (rtl === void 0) {\n    rtl = false;\n  }\n  const alignment = getAlignment(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const length = getAxisLength(alignmentAxis);\n  let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n  if (rects.reference[length] > rects.floating[length]) {\n    mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n  }\n  return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n  const oppositePlacement = getOppositePlacement(placement);\n  return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n  return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n  switch (side) {\n    case 'top':\n    case 'bottom':\n      if (rtl) return isStart ? rlPlacement : lrPlacement;\n      return isStart ? lrPlacement : rlPlacement;\n    case 'left':\n    case 'right':\n      return isStart ? tbPlacement : btPlacement;\n    default:\n      return [];\n  }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n  const alignment = getAlignment(placement);\n  let list = getSideList(getSide(placement), direction === 'start', rtl);\n  if (alignment) {\n    list = list.map(side => side + \"-\" + alignment);\n    if (flipAlignment) {\n      list = list.concat(list.map(getOppositeAlignmentPlacement));\n    }\n  }\n  return list;\n}\nfunction getOppositePlacement(placement) {\n  const side = getSide(placement);\n  return oppositeSideMap[side] + placement.slice(side.length);\n}\nfunction expandPaddingObject(padding) {\n  var _padding$top, _padding$right, _padding$bottom, _padding$left;\n  return {\n    top: (_padding$top = padding.top) != null ? _padding$top : 0,\n    right: (_padding$right = padding.right) != null ? _padding$right : 0,\n    bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,\n    left: (_padding$left = padding.left) != null ? _padding$left : 0\n  };\n}\nfunction getPaddingObject(padding) {\n  return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n    top: padding,\n    right: padding,\n    bottom: padding,\n    left: padding\n  };\n}\nfunction rectToClientRect(rect) {\n  const {\n    x,\n    y,\n    width,\n    height\n  } = rect;\n  return {\n    width,\n    height,\n    top: y,\n    left: x,\n    right: x + width,\n    bottom: y + height,\n    x,\n    y\n  };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n","import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';\nexport { rectToClientRect } from '@floating-ui/utils';\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n  let {\n    reference,\n    floating\n  } = _ref;\n  const sideAxis = getSideAxis(placement);\n  const alignmentAxis = getAlignmentAxis(placement);\n  const alignLength = getAxisLength(alignmentAxis);\n  const side = getSide(placement);\n  const isVertical = sideAxis === 'y';\n  const commonX = reference.x + reference.width / 2 - floating.width / 2;\n  const commonY = reference.y + reference.height / 2 - floating.height / 2;\n  const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n  let coords;\n  switch (side) {\n    case 'top':\n      coords = {\n        x: commonX,\n        y: reference.y - floating.height\n      };\n      break;\n    case 'bottom':\n      coords = {\n        x: commonX,\n        y: reference.y + reference.height\n      };\n      break;\n    case 'right':\n      coords = {\n        x: reference.x + reference.width,\n        y: commonY\n      };\n      break;\n    case 'left':\n      coords = {\n        x: reference.x - floating.width,\n        y: commonY\n      };\n      break;\n    default:\n      coords = {\n        x: reference.x,\n        y: reference.y\n      };\n  }\n  const alignment = getAlignment(placement);\n  if (alignment) {\n    coords[alignmentAxis] += commonAlign * (alignment === 'end' ? 1 : -1) * (rtl && isVertical ? -1 : 1);\n  }\n  return coords;\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n  var _await$platform$isEle;\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    x,\n    y,\n    platform,\n    rects,\n    elements,\n    strategy\n  } = state;\n  const {\n    boundary = 'clippingAncestors',\n    rootBoundary = 'viewport',\n    elementContext = 'floating',\n    altBoundary = false,\n    padding = 0\n  } = evaluate(options, state);\n  const paddingObject = getPaddingObject(padding);\n  const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n  const element = elements[altBoundary ? altContext : elementContext];\n  const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n    element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n    boundary,\n    rootBoundary,\n    strategy\n  }));\n  const rect = elementContext === 'floating' ? {\n    x,\n    y,\n    width: rects.floating.width,\n    height: rects.floating.height\n  } : rects.reference;\n  const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n  const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) && (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n    x: 1,\n    y: 1\n  };\n  const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n    elements,\n    rect,\n    offsetParent,\n    strategy\n  }) : rect);\n  return {\n    top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n    bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n    left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n    right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n  };\n}\n\n// Maximum number of resets that can occur before bailing to avoid infinite reset loops.\nconst MAX_RESET_COUNT = 50;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n  const {\n    placement = 'bottom',\n    strategy = 'absolute',\n    middleware = [],\n    platform\n  } = config;\n  const platformWithDetectOverflow = platform.detectOverflow ? platform : {\n    ...platform,\n    detectOverflow\n  };\n  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n  let rects = await platform.getElementRects({\n    reference,\n    floating,\n    strategy\n  });\n  let {\n    x,\n    y\n  } = computeCoordsFromPlacement(rects, placement, rtl);\n  let statefulPlacement = placement;\n  let resetCount = 0;\n  const middlewareData = {};\n  for (let i = 0; i < middleware.length; i++) {\n    const currentMiddleware = middleware[i];\n    if (!currentMiddleware) {\n      continue;\n    }\n    const {\n      name,\n      fn\n    } = currentMiddleware;\n    const {\n      x: nextX,\n      y: nextY,\n      data,\n      reset\n    } = await fn({\n      x,\n      y,\n      initialPlacement: placement,\n      placement: statefulPlacement,\n      strategy,\n      middlewareData,\n      rects,\n      platform: platformWithDetectOverflow,\n      elements: {\n        reference,\n        floating\n      }\n    });\n    x = nextX != null ? nextX : x;\n    y = nextY != null ? nextY : y;\n    middlewareData[name] = {\n      ...middlewareData[name],\n      ...data\n    };\n    if (reset && resetCount < MAX_RESET_COUNT) {\n      resetCount++;\n      if (typeof reset === 'object') {\n        if (reset.placement) {\n          statefulPlacement = reset.placement;\n        }\n        if (reset.rects) {\n          rects = reset.rects === true ? await platform.getElementRects({\n            reference,\n            floating,\n            strategy\n          }) : reset.rects;\n        }\n        ({\n          x,\n          y\n        } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n      }\n      i = -1;\n    }\n  }\n  return {\n    x,\n    y,\n    placement: statefulPlacement,\n    strategy,\n    middlewareData\n  };\n};\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n  name: 'arrow',\n  options,\n  async fn(state) {\n    const {\n      x,\n      y,\n      placement,\n      rects,\n      platform,\n      elements,\n      middlewareData\n    } = state;\n    // Since `element` is required, we don't Partial<> the type.\n    const {\n      element,\n      padding = 0\n    } = evaluate(options, state) || {};\n    if (element == null) {\n      return {};\n    }\n    const paddingObject = getPaddingObject(padding);\n    const coords = {\n      x,\n      y\n    };\n    const axis = getAlignmentAxis(placement);\n    const length = getAxisLength(axis);\n    const arrowDimensions = await platform.getDimensions(element);\n    const isYAxis = axis === 'y';\n    const minProp = isYAxis ? 'top' : 'left';\n    const maxProp = isYAxis ? 'bottom' : 'right';\n    const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n    const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n    const startDiff = coords[axis] - rects.reference[axis];\n    const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n    let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n    // DOM platform can return `window` as the `offsetParent`.\n    if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n      clientSize = elements.floating[clientProp] || rects.floating[length];\n    }\n    const centerToReference = endDiff / 2 - startDiff / 2;\n\n    // If the padding is large enough that it causes the arrow to no longer be\n    // centered, modify the padding so that it is centered.\n    const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n    const minPadding = min(paddingObject[minProp], largestPossiblePadding);\n    const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);\n\n    // Make sure the arrow doesn't overflow the floating element if the center\n    // point is outside the floating element's bounds.\n    const max = clientSize - arrowDimensions[length] - maxPadding;\n    const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n    const offset = clamp(minPadding, center, max);\n\n    // If the reference is small enough that the arrow's padding causes it to\n    // to point to nothing for an aligned placement, adjust the offset of the\n    // floating element itself. To ensure `shift()` continues to take action,\n    // a single reset is performed when this is true.\n    const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < minPadding ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n    const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max : 0;\n    return {\n      [axis]: coords[axis] + alignmentOffset,\n      data: {\n        [axis]: offset,\n        centerOffset: center - offset - alignmentOffset,\n        ...(shouldAddOffset && {\n          alignmentOffset\n        })\n      },\n      reset: shouldAddOffset\n    };\n  }\n});\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n  const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n  return allowedPlacementsSortedByAlignment.filter(placement => {\n    if (alignment) {\n      return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n    }\n    return true;\n  });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'autoPlacement',\n    options,\n    async fn(state) {\n      var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n      const {\n        rects,\n        middlewareData,\n        placement,\n        platform,\n        elements\n      } = state;\n      const {\n        crossAxis = false,\n        alignment,\n        allowedPlacements = placements,\n        autoAlignment = true,\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n      const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n      const currentPlacement = placements$1[currentIndex];\n      if (currentPlacement == null) {\n        return {};\n      }\n\n      // Make `computeCoords` start from the right place.\n      if (placement !== currentPlacement) {\n        return {\n          reset: {\n            placement: placements$1[0]\n          }\n        };\n      }\n      const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n      const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n      const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];\n      const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n        placement: currentPlacement,\n        overflows: currentOverflows\n      }];\n      const nextPlacement = placements$1[currentIndex + 1];\n\n      // There are more placements to check.\n      if (nextPlacement) {\n        return {\n          data: {\n            index: currentIndex + 1,\n            overflows: allOverflows\n          },\n          reset: {\n            placement: nextPlacement\n          }\n        };\n      }\n      const placementsSortedByMostSpace = allOverflows.map(d => {\n        const alignment = getAlignment(d.placement);\n        return [d.placement, alignment && crossAxis ?\n        // Check along the mainAxis and main crossAxis side.\n        d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n        // Check only the mainAxis.\n        d.overflows[0], d.overflows];\n      }).sort((a, b) => a[1] - b[1]);\n      const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n      // Aligned placements should not check their opposite crossAxis\n      // side.\n      getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n      const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n      if (resetPlacement !== placement) {\n        return {\n          data: {\n            index: currentIndex + 1,\n            overflows: allOverflows\n          },\n          reset: {\n            placement: resetPlacement\n          }\n        };\n      }\n      return {};\n    }\n  };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'flip',\n    options,\n    async fn(state) {\n      var _middlewareData$arrow, _middlewareData$flip;\n      const {\n        placement,\n        middlewareData,\n        rects,\n        initialPlacement,\n        platform,\n        elements\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = true,\n        fallbackPlacements: specifiedFallbackPlacements,\n        fallbackStrategy = 'bestFit',\n        fallbackAxisSideDirection = 'none',\n        flipAlignment = true,\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n\n      // If a reset by the arrow was caused due to an alignment offset being\n      // added, we should skip any logic now since `flip()` has already done its\n      // work.\n      // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643\n      if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n        return {};\n      }\n      const side = getSide(placement);\n      const initialSideAxis = getSideAxis(initialPlacement);\n      const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n      const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n      const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n      const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';\n      if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {\n        fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n      }\n      const placements = [initialPlacement, ...fallbackPlacements];\n      const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n      const overflows = [];\n      let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n      if (checkMainAxis) {\n        overflows.push(overflow[side]);\n      }\n      if (checkCrossAxis) {\n        const sides = getAlignmentSides(placement, rects, rtl);\n        overflows.push(overflow[sides[0]], overflow[sides[1]]);\n      }\n      overflowsData = [...overflowsData, {\n        placement,\n        overflows\n      }];\n\n      // One or more sides is overflowing.\n      if (!overflows.every(side => side <= 0)) {\n        var _middlewareData$flip2, _overflowsData$filter;\n        const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n        const nextPlacement = placements[nextIndex];\n        if (nextPlacement) {\n          const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;\n          if (!ignoreCrossAxisOverflow ||\n          // We leave the current main axis only if every placement on that axis\n          // overflows the main axis.\n          overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {\n            // Try next placement and re-run the lifecycle.\n            return {\n              data: {\n                index: nextIndex,\n                overflows: overflowsData\n              },\n              reset: {\n                placement: nextPlacement\n              }\n            };\n          }\n        }\n\n        // First, find the candidates that fit on the mainAxis side of overflow,\n        // then find the placement that fits the best on the main crossAxis side.\n        let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n        // Otherwise fallback.\n        if (!resetPlacement) {\n          switch (fallbackStrategy) {\n            case 'bestFit':\n              {\n                var _overflowsData$filter2;\n                const placement = (_overflowsData$filter2 = overflowsData.filter(d => {\n                  if (hasFallbackAxisSideDirection) {\n                    const currentSideAxis = getSideAxis(d.placement);\n                    return currentSideAxis === initialSideAxis ||\n                    // Create a bias to the `y` side axis due to horizontal\n                    // reading directions favoring greater width.\n                    currentSideAxis === 'y';\n                  }\n                  return true;\n                }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];\n                if (placement) {\n                  resetPlacement = placement;\n                }\n                break;\n              }\n            case 'initialPlacement':\n              resetPlacement = initialPlacement;\n              break;\n          }\n        }\n        if (placement !== resetPlacement) {\n          return {\n            reset: {\n              placement: resetPlacement\n            }\n          };\n        }\n      }\n      return {};\n    }\n  };\n};\n\nfunction getSideOffsets(overflow, rect) {\n  return {\n    top: overflow.top - rect.height,\n    right: overflow.right - rect.width,\n    bottom: overflow.bottom - rect.height,\n    left: overflow.left - rect.width\n  };\n}\nfunction isAnySideFullyClipped(overflow) {\n  return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'hide',\n    options,\n    async fn(state) {\n      const {\n        rects,\n        platform\n      } = state;\n      const {\n        strategy = 'referenceHidden',\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      switch (strategy) {\n        case 'referenceHidden':\n          {\n            const overflow = await platform.detectOverflow(state, {\n              ...detectOverflowOptions,\n              elementContext: 'reference'\n            });\n            const offsets = getSideOffsets(overflow, rects.reference);\n            return {\n              data: {\n                referenceHiddenOffsets: offsets,\n                referenceHidden: isAnySideFullyClipped(offsets)\n              }\n            };\n          }\n        case 'escaped':\n          {\n            const overflow = await platform.detectOverflow(state, {\n              ...detectOverflowOptions,\n              altBoundary: true\n            });\n            const offsets = getSideOffsets(overflow, rects.floating);\n            return {\n              data: {\n                escapedOffsets: offsets,\n                escaped: isAnySideFullyClipped(offsets)\n              }\n            };\n          }\n        default:\n          {\n            return {};\n          }\n      }\n    }\n  };\n};\n\nfunction getBoundingRect(rects) {\n  const minX = min(...rects.map(rect => rect.left));\n  const minY = min(...rects.map(rect => rect.top));\n  const maxX = max(...rects.map(rect => rect.right));\n  const maxY = max(...rects.map(rect => rect.bottom));\n  return {\n    x: minX,\n    y: minY,\n    width: maxX - minX,\n    height: maxY - minY\n  };\n}\nfunction getRectsByLine(rects) {\n  const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n  const groups = [];\n  let prevRect = null;\n  for (let i = 0; i < sortedRects.length; i++) {\n    const rect = sortedRects[i];\n    if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n      groups.push([rect]);\n    } else {\n      groups[groups.length - 1].push(rect);\n    }\n    prevRect = rect;\n  }\n  return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'inline',\n    options,\n    async fn(state) {\n      const {\n        placement,\n        elements,\n        rects,\n        platform,\n        strategy\n      } = state;\n      // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n      // ClientRect's bounds, despite the event listener being triggered. A\n      // padding of 2 seems to handle this issue.\n      const {\n        padding = 2,\n        x,\n        y\n      } = evaluate(options, state);\n      const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n\n      // No rects (e.g. a hidden or detached reference, or a collapsed range) —\n      // keep the existing reference rect rather than resetting to an invalid\n      // one with non-finite values.\n      if (!nativeClientRects.length) {\n        return {};\n      }\n      const clientRects = getRectsByLine(nativeClientRects);\n      const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n      const paddingObject = getPaddingObject(padding);\n      function getBoundingClientRect() {\n        // There are two rects and they are disjoined.\n        if (clientRects.length === 2 && (clientRects[0].left > clientRects[1].right || clientRects[1].left > clientRects[0].right) && x != null && y != null) {\n          // Find the first rect in which the point is fully inside.\n          return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n        }\n\n        // There are 2 or more connected rects.\n        if (clientRects.length >= 2) {\n          if (getSideAxis(placement) === 'y') {\n            const firstRect = clientRects[0];\n            const lastRect = clientRects[clientRects.length - 1];\n            const isTop = getSide(placement) === 'top';\n            const top = firstRect.top;\n            const bottom = lastRect.bottom;\n            const left = isTop ? firstRect.left : lastRect.left;\n            const right = isTop ? firstRect.right : lastRect.right;\n            return rectToClientRect({\n              x: left,\n              y: top,\n              width: right - left,\n              height: bottom - top\n            });\n          }\n          const isLeftSide = getSide(placement) === 'left';\n          const maxRight = max(...clientRects.map(rect => rect.right));\n          const minLeft = min(...clientRects.map(rect => rect.left));\n          const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n          const top = measureRects[0].top;\n          const bottom = measureRects[measureRects.length - 1].bottom;\n          return rectToClientRect({\n            x: minLeft,\n            y: top,\n            width: maxRight - minLeft,\n            height: bottom - top\n          });\n        }\n        return fallback;\n      }\n      const resetRects = await platform.getElementRects({\n        reference: {\n          getBoundingClientRect\n        },\n        floating: elements.floating,\n        strategy\n      });\n      if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n        return {\n          reset: {\n            rects: resetRects\n          }\n        };\n      }\n      return {};\n    }\n  };\n};\n\nconst originSides = /*#__PURE__*/new Set(['left', 'top']);\n\n// For type backwards-compatibility, the `OffsetOptions` type was also\n// Derivable.\n\nasync function convertValueToCoords(state, options) {\n  const {\n    placement,\n    platform,\n    elements\n  } = state;\n  const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n  const side = getSide(placement);\n  const alignment = getAlignment(placement);\n  const isVertical = getSideAxis(placement) === 'y';\n  const mainAxisMulti = originSides.has(side) ? -1 : 1;\n  const crossAxisMulti = rtl && isVertical ? -1 : 1;\n  const rawValue = evaluate(options, state);\n\n  // eslint-disable-next-line prefer-const\n  let {\n    mainAxis,\n    crossAxis,\n    alignmentAxis\n  } = typeof rawValue === 'number' ? {\n    mainAxis: rawValue,\n    crossAxis: 0,\n    alignmentAxis: null\n  } : {\n    mainAxis: rawValue.mainAxis || 0,\n    crossAxis: rawValue.crossAxis || 0,\n    alignmentAxis: rawValue.alignmentAxis\n  };\n  if (alignment && typeof alignmentAxis === 'number') {\n    crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n  }\n  return isVertical ? {\n    x: crossAxis * crossAxisMulti,\n    y: mainAxis * mainAxisMulti\n  } : {\n    x: mainAxis * mainAxisMulti,\n    y: crossAxis * crossAxisMulti\n  };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (options) {\n  if (options === void 0) {\n    options = 0;\n  }\n  return {\n    name: 'offset',\n    options,\n    async fn(state) {\n      var _middlewareData$offse, _middlewareData$arrow;\n      const {\n        x,\n        y,\n        placement,\n        middlewareData\n      } = state;\n      const diffCoords = await convertValueToCoords(state, options);\n\n      // If the placement is the same and the arrow caused an alignment offset\n      // then we don't need to change the positioning coordinates.\n      if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n        return {};\n      }\n      return {\n        x: x + diffCoords.x,\n        y: y + diffCoords.y,\n        data: {\n          ...diffCoords,\n          placement\n        }\n      };\n    }\n  };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'shift',\n    options,\n    async fn(state) {\n      const {\n        x,\n        y,\n        placement,\n        platform\n      } = state;\n      const {\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = false,\n        limiter = {\n          fn: _ref => {\n            let {\n              x,\n              y\n            } = _ref;\n            return {\n              x,\n              y\n            };\n          }\n        },\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      const coords = {\n        x,\n        y\n      };\n      const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n      const crossAxis = getSideAxis(placement);\n      const mainAxis = getOppositeAxis(crossAxis);\n      let mainAxisCoord = coords[mainAxis];\n      let crossAxisCoord = coords[crossAxis];\n      const clampCoord = (axis, coord) => clamp(coord + overflow[axis === 'y' ? 'top' : 'left'], coord, coord - overflow[axis === 'y' ? 'bottom' : 'right']);\n      if (checkMainAxis) {\n        mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);\n      }\n      if (checkCrossAxis) {\n        crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);\n      }\n      const limitedCoords = limiter.fn({\n        ...state,\n        [mainAxis]: mainAxisCoord,\n        [crossAxis]: crossAxisCoord\n      });\n      return {\n        ...limitedCoords,\n        data: {\n          x: limitedCoords.x - x,\n          y: limitedCoords.y - y,\n          enabled: {\n            [mainAxis]: checkMainAxis,\n            [crossAxis]: checkCrossAxis\n          }\n        }\n      };\n    }\n  };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    options,\n    fn(state) {\n      var _rawOffset$mainAxis, _rawOffset$crossAxis;\n      const {\n        x,\n        y,\n        placement,\n        rects,\n        middlewareData\n      } = state;\n      const {\n        offset = 0,\n        mainAxis: checkMainAxis = true,\n        crossAxis: checkCrossAxis = true\n      } = evaluate(options, state);\n      const coords = {\n        x,\n        y\n      };\n      const crossAxis = getSideAxis(placement);\n      const mainAxis = getOppositeAxis(crossAxis);\n      let mainAxisCoord = coords[mainAxis];\n      let crossAxisCoord = coords[crossAxis];\n      const rawOffset = evaluate(offset, state);\n      const computedOffset = typeof rawOffset === 'number' ? {\n        mainAxis: rawOffset,\n        crossAxis: 0\n      } : {\n        mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,\n        crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0\n      };\n      if (checkMainAxis) {\n        const len = mainAxis === 'y' ? 'height' : 'width';\n        const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n        const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n        if (mainAxisCoord < limitMin) {\n          mainAxisCoord = limitMin;\n        } else if (mainAxisCoord > limitMax) {\n          mainAxisCoord = limitMax;\n        }\n      }\n      if (checkCrossAxis) {\n        var _middlewareData$offse, _middlewareData$offse2;\n        const len = mainAxis === 'y' ? 'width' : 'height';\n        const isOriginSide = originSides.has(getSide(placement));\n        const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n        const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n        if (crossAxisCoord < limitMin) {\n          crossAxisCoord = limitMin;\n        } else if (crossAxisCoord > limitMax) {\n          crossAxisCoord = limitMax;\n        }\n      }\n      return {\n        [mainAxis]: mainAxisCoord,\n        [crossAxis]: crossAxisCoord\n      };\n    }\n  };\n};\n\n// Method syntax keeps callback parameters bivariant, but expressing the\n// explicit `| undefined` required by `exactOptionalPropertyTypes` needs\n// property syntax, which is contravariant under `strictFunctionTypes`.\n// Extracting the function from a method position restores that bivariance so\n// consumers can still assign callbacks with narrower parameter types.\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n  if (options === void 0) {\n    options = {};\n  }\n  return {\n    name: 'size',\n    options,\n    async fn(state) {\n      const {\n        placement,\n        rects,\n        platform,\n        elements\n      } = state;\n      const {\n        apply = () => {},\n        ...detectOverflowOptions\n      } = evaluate(options, state);\n      const overflow = await platform.detectOverflow(state, detectOverflowOptions);\n      const side = getSide(placement);\n      const alignment = getAlignment(placement);\n      const isYAxis = getSideAxis(placement) === 'y';\n      const {\n        width,\n        height\n      } = rects.floating;\n      let heightSide;\n      let widthSide;\n      if (side === 'top' || side === 'bottom') {\n        heightSide = side;\n        widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n      } else {\n        widthSide = side;\n        heightSide = alignment === 'end' ? 'top' : 'bottom';\n      }\n      const maximumClippingHeight = height - overflow.top - overflow.bottom;\n      const maximumClippingWidth = width - overflow.left - overflow.right;\n      const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);\n      const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);\n      const shiftData = state.middlewareData.shift;\n      const noShift = !shiftData;\n      let availableHeight = overflowAvailableHeight;\n      let availableWidth = overflowAvailableWidth;\n      if (shiftData != null && shiftData.enabled.x) {\n        availableWidth = maximumClippingWidth;\n      }\n      if (shiftData != null && shiftData.enabled.y) {\n        availableHeight = maximumClippingHeight;\n      }\n      if (noShift && !alignment) {\n        if (isYAxis) {\n          availableWidth = width - 2 * max(overflow.left, overflow.right);\n        } else {\n          availableHeight = height - 2 * max(overflow.top, overflow.bottom);\n        }\n      }\n      await apply({\n        ...state,\n        availableWidth,\n        availableHeight\n      });\n      const nextDimensions = await platform.getDimensions(elements.floating);\n      if (width !== nextDimensions.width || height !== nextDimensions.height) {\n        return {\n          reset: {\n            rects: true\n          }\n        };\n      }\n      return {};\n    }\n  };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };\n","function hasWindow() {\n  return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n  if (isNode(node)) {\n    return (node.nodeName || '').toLowerCase();\n  }\n  // Mocked nodes in testing environments may not be instances of Node. By\n  // returning `#document` an infinite loop won't occur.\n  // https://github.com/floating-ui/floating-ui/issues/2317\n  return '#document';\n}\nfunction getWindow(node) {\n  var _node$ownerDocument;\n  return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n  var _ref;\n  return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n  if (!hasWindow()) {\n    return false;\n  }\n  return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n  if (!hasWindow()) {\n    return false;\n  }\n  return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n  if (!hasWindow()) {\n    return false;\n  }\n  return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n  if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n    return false;\n  }\n  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n  const {\n    overflow,\n    overflowX,\n    overflowY,\n    display\n  } = getComputedStyle(element);\n  return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';\n}\nfunction isTableElement(element) {\n  return /^(table|td|th)$/.test(getNodeName(element));\n}\nfunction isTopLayer(element) {\n  try {\n    if (element.matches(':popover-open')) {\n      return true;\n    }\n  } catch (_e) {\n    // no-op\n  }\n  try {\n    return element.matches(':modal');\n  } catch (_e) {\n    return false;\n  }\n}\nconst willChangeRe = /transform|translate|scale|rotate|perspective|filter/;\nconst containRe = /paint|layout|strict|content/;\nconst isNotNone = value => !!value && value !== 'none';\nlet isWebKitValue;\nfunction isContainingBlock(elementOrCss) {\n  const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n  // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n  return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');\n}\nfunction getContainingBlock(element) {\n  let currentNode = getParentNode(element);\n  while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    if (isContainingBlock(currentNode)) {\n      return currentNode;\n    } else if (isTopLayer(currentNode)) {\n      return null;\n    }\n    currentNode = getParentNode(currentNode);\n  }\n  return null;\n}\nfunction isWebKit() {\n  if (isWebKitValue == null) {\n    isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');\n  }\n  return isWebKitValue;\n}\nfunction isLastTraversableNode(node) {\n  return /^(html|body|#document)$/.test(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n  return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n  if (isElement(element)) {\n    return {\n      scrollLeft: element.scrollLeft,\n      scrollTop: element.scrollTop\n    };\n  }\n  return {\n    scrollLeft: element.scrollX,\n    scrollTop: element.scrollY\n  };\n}\nfunction getParentNode(node) {\n  if (getNodeName(node) === 'html') {\n    return node;\n  }\n  const result =\n  // Step into the shadow DOM of the parent of a slotted node.\n  node.assignedSlot ||\n  // DOM Element detected.\n  node.parentNode ||\n  // ShadowRoot detected.\n  isShadowRoot(node) && node.host ||\n  // Fallback.\n  getDocumentElement(node);\n  return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n  const parentNode = getParentNode(node);\n  if (isLastTraversableNode(parentNode)) {\n    return (node.ownerDocument || node).body;\n  }\n  if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n    return parentNode;\n  }\n  return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n  var _node$ownerDocument2;\n  if (list === void 0) {\n    list = [];\n  }\n  if (traverseIframes === void 0) {\n    traverseIframes = true;\n  }\n  const scrollableAncestor = getNearestOverflowAncestor(node);\n  const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n  const win = getWindow(scrollableAncestor);\n  if (isBody) {\n    const frameElement = getFrameElement(win);\n    return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n  } else {\n    return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n  }\n}\nfunction getFrameElement(win) {\n  return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n","import { rectToClientRect, arrow as arrow$1, autoPlacement as autoPlacement$1, detectOverflow as detectOverflow$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle as getComputedStyle$1, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getNodeScroll, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n  const css = getComputedStyle$1(element);\n  // In testing environments, the `width` and `height` properties are empty\n  // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n  let width = parseFloat(css.width) || 0;\n  let height = parseFloat(css.height) || 0;\n  const hasOffset = isHTMLElement(element);\n  const offsetWidth = hasOffset ? element.offsetWidth : width;\n  const offsetHeight = hasOffset ? element.offsetHeight : height;\n  const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n  if (shouldFallback) {\n    width = offsetWidth;\n    height = offsetHeight;\n  }\n  return {\n    width,\n    height,\n    $: shouldFallback\n  };\n}\n\nfunction unwrapElement(element) {\n  return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n  const domElement = unwrapElement(element);\n  if (!isHTMLElement(domElement)) {\n    return createCoords(1);\n  }\n  const rect = domElement.getBoundingClientRect();\n  const {\n    width,\n    height,\n    $\n  } = getCssDimensions(domElement);\n  let x = ($ ? round(rect.width) : rect.width) / width;\n  let y = ($ ? round(rect.height) : rect.height) / height;\n\n  // 0, NaN, or Infinity should always fallback to 1.\n\n  if (!x || !Number.isFinite(x)) {\n    x = 1;\n  }\n  if (!y || !Number.isFinite(y)) {\n    y = 1;\n  }\n  return {\n    x,\n    y\n  };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n  const win = getWindow(element);\n  if (!isWebKit() || !win.visualViewport) {\n    return noOffsets;\n  }\n  return {\n    x: win.visualViewport.offsetLeft,\n    y: win.visualViewport.offsetTop\n  };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n  if (isFixed === void 0) {\n    isFixed = false;\n  }\n  return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n  if (includeScale === void 0) {\n    includeScale = false;\n  }\n  if (isFixedStrategy === void 0) {\n    isFixedStrategy = false;\n  }\n  const clientRect = element.getBoundingClientRect();\n  const domElement = unwrapElement(element);\n  let scale = createCoords(1);\n  if (includeScale) {\n    if (offsetParent) {\n      if (isElement(offsetParent)) {\n        scale = getScale(offsetParent);\n      }\n    } else {\n      scale = getScale(element);\n    }\n  }\n  const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n  let x = (clientRect.left + visualOffsets.x) / scale.x;\n  let y = (clientRect.top + visualOffsets.y) / scale.y;\n  let width = clientRect.width / scale.x;\n  let height = clientRect.height / scale.y;\n  if (domElement && offsetParent) {\n    const win = getWindow(domElement);\n    const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n    let currentWin = win;\n    let currentIFrame = getFrameElement(currentWin);\n    while (currentIFrame && offsetWin !== currentWin) {\n      const iframeScale = getScale(currentIFrame);\n      const iframeRect = currentIFrame.getBoundingClientRect();\n      const css = getComputedStyle$1(currentIFrame);\n      const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n      const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n      x *= iframeScale.x;\n      y *= iframeScale.y;\n      width *= iframeScale.x;\n      height *= iframeScale.y;\n      x += left;\n      y += top;\n      currentWin = getWindow(currentIFrame);\n      currentIFrame = getFrameElement(currentWin);\n    }\n  }\n  return rectToClientRect({\n    width,\n    height,\n    x,\n    y\n  });\n}\n\n// If <html> has a CSS width greater than the viewport, then this will be\n// incorrect for RTL.\nfunction getWindowScrollBarX(element, rect) {\n  const leftScroll = getNodeScroll(element).scrollLeft;\n  if (!rect) {\n    return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;\n  }\n  return rect.left + leftScroll;\n}\n\nfunction getHTMLOffset(documentElement, scroll) {\n  const htmlRect = documentElement.getBoundingClientRect();\n  const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);\n  const y = htmlRect.top + scroll.scrollTop;\n  return {\n    x,\n    y\n  };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n  let {\n    elements,\n    rect,\n    offsetParent,\n    strategy\n  } = _ref;\n  const isFixed = strategy === 'fixed';\n  const documentElement = getDocumentElement(offsetParent);\n  const topLayer = elements ? isTopLayer(elements.floating) : false;\n  if (offsetParent === documentElement || topLayer && isFixed) {\n    return rect;\n  }\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  let scale = createCoords(1);\n  const offsets = createCoords(0);\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  if (isOffsetParentAnElement || !isFixed) {\n    if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isOffsetParentAnElement) {\n      const offsetRect = getBoundingClientRect(offsetParent);\n      scale = getScale(offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    }\n  }\n  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n  return {\n    width: rect.width * scale.x,\n    height: rect.height * scale.y,\n    x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,\n    y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y\n  };\n}\n\nfunction getClientRects(element) {\n  return element.getClientRects ? Array.from(element.getClientRects()) : [];\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(html) {\n  const scroll = getNodeScroll(html);\n  const body = html.ownerDocument.body;\n  const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n  const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n  let x = -scroll.scrollLeft + getWindowScrollBarX(html);\n  const y = -scroll.scrollTop;\n  if (getComputedStyle$1(body).direction === 'rtl') {\n    x += max(html.clientWidth, body.clientWidth) - width;\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\n\n// Safety check: ensure the scrollbar space is reasonable in case this\n// calculation is affected by unusual styles.\n// Most scrollbars leave 15-18px of space.\nconst SCROLLBAR_MAX = 25;\nfunction getViewportRect(element, strategy, rootBoundary) {\n  if (rootBoundary === void 0) {\n    rootBoundary = 'viewport';\n  }\n  const isLayoutViewport = rootBoundary === 'layoutViewport';\n  const win = getWindow(element);\n  const html = getDocumentElement(element);\n  const visualViewport = win.visualViewport;\n  let width = html.clientWidth;\n  let height = html.clientHeight;\n  let x = 0;\n  let y = 0;\n  if (visualViewport) {\n    // Client coordinates are relative to the layout viewport, except in\n    // WebKit with an `absolute` strategy, where they are relative to the\n    // visual viewport.\n    const layoutRelativeClientCoords = !isWebKit() || strategy === 'fixed';\n    if (isLayoutViewport) {\n      if (!layoutRelativeClientCoords) {\n        x = -visualViewport.offsetLeft;\n        y = -visualViewport.offsetTop;\n      }\n    } else {\n      width = visualViewport.width;\n      height = visualViewport.height;\n      if (layoutRelativeClientCoords) {\n        x = visualViewport.offsetLeft;\n        y = visualViewport.offsetTop;\n      }\n    }\n  }\n  const windowScrollbarX = getWindowScrollBarX(html);\n  // `scrollbar-gutter: stable` on the <html> reserves gutter space that shrinks\n  // the visual width but isn't reflected in `html.clientWidth`, so subtract it.\n  // Only the inline-end (right) gutter can hold the scrollbar; `both-edges` also\n  // reserves an empty inline-start gutter that clips nothing, so exclude just\n  // the one scrollbar-side gutter — halve the measured (two-gutter) total. A\n  // left-side scrollbar (`windowScrollbarX > 0`) is already handled by\n  // `getHTMLOffset`/`visualViewport.width`; skip it here.\n  if (windowScrollbarX <= 0) {\n    const doc = html.ownerDocument;\n    const body = doc.body;\n    const bodyStyles = getComputedStyle(body);\n    const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;\n    const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);\n    const gutter = getComputedStyle(html).scrollbarGutter === 'stable both-edges' ? reservedWidth / 2 : reservedWidth;\n    if (gutter <= SCROLLBAR_MAX) {\n      width -= gutter;\n    }\n  }\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\n\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n  const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n  const top = clientRect.top + element.clientTop;\n  const left = clientRect.left + element.clientLeft;\n  const scale = getScale(element);\n  const width = element.clientWidth * scale.x;\n  const height = element.clientHeight * scale.y;\n  const x = left * scale.x;\n  const y = top * scale.y;\n  return {\n    width,\n    height,\n    x,\n    y\n  };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n  let rect;\n  if (clippingAncestor === 'viewport' || clippingAncestor === 'layoutViewport') {\n    rect = getViewportRect(element, strategy, clippingAncestor);\n  } else if (clippingAncestor === 'document') {\n    rect = getDocumentRect(getDocumentElement(element));\n  } else if (isElement(clippingAncestor)) {\n    rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n  } else {\n    const visualOffsets = getVisualOffsets(element);\n    rect = {\n      x: clippingAncestor.x - visualOffsets.x,\n      y: clippingAncestor.y - visualOffsets.y,\n      width: clippingAncestor.width,\n      height: clippingAncestor.height\n    };\n  }\n  return rectToClientRect(rect);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n  const cachedResult = cache.get(element);\n  if (cachedResult) {\n    return cachedResult;\n  }\n  let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n  let lastKeptComputedStyle = null;\n  const elementIsFixed = getComputedStyle$1(element).position === 'fixed';\n  let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n  // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n  while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n    const computedStyle = getComputedStyle$1(currentNode);\n    const currentNodeIsContaining = isContainingBlock(currentNode);\n    // Position of the containing block chain below the current node. A fixed\n    // element whose containing block hasn't been found yet is a fixed chain.\n    const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? 'fixed' : '';\n\n    // A non-containing ancestor does not clip the element when the chain\n    // below it escapes it: a fixed chain escapes all ancestors up to the\n    // next containing block, an absolute chain escapes static ancestors.\n    const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === 'fixed' || lastPosition === 'absolute' && computedStyle.position === 'static');\n    if (shouldDropCurrentNode) {\n      // Drop non-containing blocks.\n      result = result.filter(ancestor => ancestor !== currentNode);\n    } else {\n      // The kept node carries the chain position for the next iteration.\n      lastKeptComputedStyle = computedStyle;\n    }\n    currentNode = getParentNode(currentNode);\n  }\n  cache.set(element, result);\n  return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n  let {\n    element,\n    boundary,\n    rootBoundary,\n    strategy\n  } = _ref;\n  const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n  const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n  const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);\n  let top = firstRect.top;\n  let right = firstRect.right;\n  let bottom = firstRect.bottom;\n  let left = firstRect.left;\n  for (let i = 1; i < clippingAncestors.length; i++) {\n    const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);\n    top = max(rect.top, top);\n    right = min(rect.right, right);\n    bottom = min(rect.bottom, bottom);\n    left = max(rect.left, left);\n  }\n  return {\n    width: right - left,\n    height: bottom - top,\n    x: left,\n    y: top\n  };\n}\n\nfunction getDimensions(element) {\n  const {\n    width,\n    height\n  } = getCssDimensions(element);\n  return {\n    width,\n    height\n  };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n  const isOffsetParentAnElement = isHTMLElement(offsetParent);\n  const documentElement = getDocumentElement(offsetParent);\n  const isFixed = strategy === 'fixed';\n  const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n  let scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  const offsets = createCoords(0);\n  if (isOffsetParentAnElement || !isFixed) {\n    if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n    if (isOffsetParentAnElement) {\n      const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n      offsets.x = offsetRect.x + offsetParent.clientLeft;\n      offsets.y = offsetRect.y + offsetParent.clientTop;\n    }\n  }\n\n  // If the <body> scrollbar appears on the left (e.g. RTL systems). Use\n  // Firefox with layout.scrollbar.side = 3 in about:config to test this.\n  if (!isOffsetParentAnElement && documentElement) {\n    offsets.x = getWindowScrollBarX(documentElement);\n  }\n  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n  const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;\n  const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;\n  return {\n    x,\n    y,\n    width: rect.width,\n    height: rect.height\n  };\n}\n\nfunction isStaticPositioned(element) {\n  return getComputedStyle$1(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n  if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {\n    return null;\n  }\n  if (polyfill) {\n    return polyfill(element);\n  }\n  let rawOffsetParent = element.offsetParent;\n\n  // Firefox returns the <html> element as the offsetParent if it's non-static,\n  // while Chrome and Safari return the <body> element. The <body> element must\n  // be used to perform the correct calculations even if the <html> element is\n  // non-static.\n  if (getDocumentElement(element) === rawOffsetParent) {\n    rawOffsetParent = rawOffsetParent.ownerDocument.body;\n  }\n  return rawOffsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n  const win = getWindow(element);\n  if (isTopLayer(element)) {\n    return win;\n  }\n  if (!isHTMLElement(element)) {\n    let svgOffsetParent = getParentNode(element);\n    while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n      if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n        return svgOffsetParent;\n      }\n      svgOffsetParent = getParentNode(svgOffsetParent);\n    }\n    return win;\n  }\n  let offsetParent = getTrueOffsetParent(element, polyfill);\n  while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n    offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n  }\n  if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n    return win;\n  }\n  return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n  const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n  const getDimensionsFn = this.getDimensions;\n  const floatingDimensions = await getDimensionsFn(data.floating);\n  return {\n    reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n    floating: {\n      x: 0,\n      y: 0,\n      width: floatingDimensions.width,\n      height: floatingDimensions.height\n    }\n  };\n};\n\nfunction isRTL(element) {\n  return getComputedStyle$1(element).direction === 'rtl';\n}\n\nconst platform = {\n  convertOffsetParentRelativeRectToViewportRelativeRect,\n  getDocumentElement,\n  getClippingRect,\n  getOffsetParent,\n  getElementRects,\n  getClientRects,\n  getDimensions,\n  getScale,\n  isElement,\n  isRTL\n};\n\nfunction rectsAreEqual(a, b) {\n  return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;\n}\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove, ancestorResize) {\n  let io = null;\n  let timeoutId;\n  const root = getDocumentElement(element);\n  function cleanup() {\n    var _io;\n    clearTimeout(timeoutId);\n    (_io = io) == null || _io.disconnect();\n    io = null;\n  }\n  function refresh(skip, threshold) {\n    if (skip === void 0) {\n      skip = false;\n    }\n    if (threshold === void 0) {\n      threshold = 1;\n    }\n    cleanup();\n    const elementRectForRootMargin = element.getBoundingClientRect();\n    const {\n      left,\n      top,\n      width,\n      height\n    } = elementRectForRootMargin;\n    if (!skip) {\n      onMove();\n    }\n    if (!width || !height) {\n      return;\n    }\n    const insetTop = floor(top);\n    const insetRight = floor(root.clientWidth - (left + width));\n    const insetBottom = floor(root.clientHeight - (top + height));\n    const insetLeft = floor(left);\n    const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n    const options = {\n      rootMargin,\n      threshold: max(0, min(1, threshold)) || 1\n    };\n    let isFirstUpdate = true;\n    function handleObserve(entries) {\n      const ratio = entries[0].intersectionRatio;\n\n      // The entry is a snapshot, so the reference may have moved since the\n      // intersection was computed (under performance constraints, or between\n      // consecutive frames of a multi-frame layout shift). The reported ratio\n      // and the observed area are stale in that case and cannot be trusted to\n      // detect subsequent movement, so refresh regardless of the ratio.\n      if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {\n        return refresh();\n      }\n      if (ratio !== threshold) {\n        if (!isFirstUpdate) {\n          return refresh();\n        }\n        if (!ratio) {\n          // If the reference is clipped in place, the ratio is 0. Throttle\n          // the refresh to prevent an infinite loop of updates.\n          timeoutId = setTimeout(() => {\n            refresh(false, 1e-7);\n          }, 1000);\n        } else {\n          refresh(false, ratio);\n        }\n      }\n      isFirstUpdate = false;\n    }\n\n    // Older browsers don't support a `document` as the root and will throw an\n    // error.\n    try {\n      io = new IntersectionObserver(handleObserve, {\n        ...options,\n        // Handle <iframe>s\n        root: root.ownerDocument\n      });\n    } catch (_e) {\n      io = new IntersectionObserver(handleObserve, options);\n    }\n    io.observe(element);\n  }\n  const win = getWindow(element);\n  // The window is a resize ancestor, so when `ancestorResize` is enabled its\n  // listener already runs the update on resize. Here we only need to rebuild\n  // the `IntersectionObserver` for the new root size, skipping a redundant\n  // update. When `ancestorResize` is disabled, this becomes the sole update.\n  const handleResize = () => refresh(ancestorResize);\n  win.addEventListener('resize', handleResize);\n  refresh(true);\n  return () => {\n    win.removeEventListener('resize', handleResize);\n    cleanup();\n  };\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n  if (options === void 0) {\n    options = {};\n  }\n  const {\n    ancestorScroll = true,\n    ancestorResize = true,\n    elementResize = typeof ResizeObserver === 'function',\n    layoutShift = typeof IntersectionObserver === 'function',\n    animationFrame = false\n  } = options;\n  const referenceEl = unwrapElement(reference);\n  const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...(floating ? getOverflowAncestors(floating) : [])] : [];\n  ancestors.forEach(ancestor => {\n    ancestorScroll && ancestor.addEventListener('scroll', update);\n    ancestorResize && ancestor.addEventListener('resize', update);\n  });\n  const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update, ancestorResize) : null;\n  let reobserveFrame = -1;\n  let resizeObserver = null;\n  if (elementResize) {\n    resizeObserver = new ResizeObserver(_ref => {\n      let [firstEntry] = _ref;\n      if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {\n        // Prevent update loops when using the `size` middleware.\n        // https://github.com/floating-ui/floating-ui/issues/1740\n        resizeObserver.unobserve(floating);\n        cancelAnimationFrame(reobserveFrame);\n        reobserveFrame = requestAnimationFrame(() => {\n          var _resizeObserver;\n          (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n        });\n      }\n      update();\n    });\n    if (referenceEl && !animationFrame) {\n      resizeObserver.observe(referenceEl);\n    }\n    if (floating) {\n      resizeObserver.observe(floating);\n    }\n  }\n  let frameId;\n  let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n  if (animationFrame) {\n    frameLoop();\n  }\n  function frameLoop() {\n    const nextRefRect = getBoundingClientRect(reference);\n    if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {\n      update();\n    }\n    prevRefRect = nextRefRect;\n    frameId = requestAnimationFrame(frameLoop);\n  }\n  update();\n  return () => {\n    var _resizeObserver2;\n    ancestors.forEach(ancestor => {\n      ancestorScroll && ancestor.removeEventListener('scroll', update);\n      ancestorResize && ancestor.removeEventListener('resize', update);\n    });\n    cleanupIo == null || cleanupIo();\n    (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n    resizeObserver = null;\n    if (animationFrame) {\n      cancelAnimationFrame(frameId);\n    }\n  };\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nconst detectOverflow = detectOverflow$1;\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = offset$1;\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n  // This caches the expensive `getClippingElementAncestors` function so that\n  // multiple lifecycle resets re-use the same result. It only lives for a\n  // single call. If other functions become expensive, we can add them as well.\n  const cache = new Map();\n  const mergedOptions = options != null ? options : {};\n  const platformWithCache = {\n    ...platform,\n    ...mergedOptions.platform,\n    _c: cache\n  };\n  return computePosition$1(reference, floating, {\n    ...mergedOptions,\n    platform: platformWithCache\n  });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, platform, shift, size };\n","import Component from '@glimmer/component';\nimport {\n  icon,\n  parse,\n  toHtml,\n  type AbstractElement,\n  type FaSymbol,\n  type FlipProp,\n  type IconDefinition,\n  type IconLookup,\n  type IconName,\n  type IconParams,\n  type IconPrefix,\n  type PullProp,\n  type RotateProp,\n  type SizeProp,\n  type Transform,\n} from '@fortawesome/fontawesome-svg-core';\nimport { htmlSafe, type SafeString } from '@ember/template';\nimport { getOwner } from '@ember/application';\nimport { get } from '@ember/helper';\nimport { dependencySatisfies, macroCondition } from '@embroider/macros';\n\nfunction objectWithKey(\n  key: string,\n  value: string[] | IconLookup | Transform | null,\n): {\n  [x: string]: string[] | IconLookup | Transform | null;\n} {\n  return (Array.isArray(value) && value.length > 0) ||\n    (!Array.isArray(value) && value)\n    ? { [key]: value }\n    : {};\n}\n\ninterface FaIconSignature {\n  Element: SVGElement;\n  Args: {\n    icon: IconName | IconLookup | IconDefinition;\n    prefix?: IconPrefix;\n    flip?: FlipProp;\n    spin?: boolean;\n    pulse?: boolean;\n    fixedWidth?: boolean;\n    border?: boolean;\n    listItem?: boolean;\n    size?: SizeProp;\n    rotation?: RotateProp;\n    pull?: PullProp;\n    transform?: Transform | string;\n    symbol?: FaSymbol;\n    // Note: Title is only supported for FA 5 + 6... for FA 7+ pass title as aria-label https://docs.fontawesome.com/upgrade/whats-changed#simpler-accessibility\n    title?: string;\n    mask?: IconName | IconLookup | IconDefinition;\n  };\n}\n\nexport default class FaIconComponent extends Component<FaIconSignature> {\n  get content(): SafeString {\n    const children = this.abstractIcon?.children ?? [];\n    const html = children.reduce((acc, cur) => {\n      return `${acc}${toHtml(cur)}`;\n    }, '');\n\n    return htmlSafe(html);\n  }\n\n  get safeStyle(): SafeString | undefined {\n    return this.iconAttributes['style']\n      ? htmlSafe(`${this.iconAttributes['style']}`)\n      : undefined;\n  }\n\n  get iconExists(): boolean {\n    return Boolean(this.abstractIcon);\n  }\n\n  get flipHorizontal(): boolean {\n    return this.args.flip === 'horizontal' || this.args.flip === 'both';\n  }\n\n  get flipVertical(): boolean {\n    return this.args.flip === 'vertical' || this.args.flip === 'both';\n  }\n\n  get classList(): string[] {\n    const classes = {\n      'fa-spin': this.args.spin,\n      'fa-pulse': this.args.pulse,\n      'fa-fw': this.args.fixedWidth,\n      'fa-border': this.args.border,\n      'fa-li': this.args.listItem,\n      'fa-flip-horizontal': this.flipHorizontal,\n      'fa-flip-vertical': this.flipVertical,\n      [`fa-${this.args.size}`]: this.args.size,\n      [`fa-rotate-${this.args.rotation}`]: this.args.rotation,\n      [`fa-pull-${this.args.pull}`]: this.args.pull,\n    };\n\n    return Object.keys(classes).filter((key) => classes[key]);\n  }\n\n  get abstractIcon(): AbstractElement | null {\n    if (\n      macroCondition(\n        dependencySatisfies('@fortawesome/fontawesome-svg-core', '>=7.0.0'),\n      )\n    ) {\n      if (this.args.title !== undefined) {\n        throw new Error(\n          '@title has no effect in Font Awesome 7+. If you want to keep this behavior, use aria-label instead. For more details, see: https://docs.fontawesome.com/upgrade/whats-changed#simpler-accessibility',\n        );\n      }\n    }\n\n    const iconLookup = this.normalizeIconArgs(this.args.icon, this.args.prefix);\n    if (!iconLookup) {\n      console.warn(\n        'Could not find icon: Icon argument was passed empty, undefined or null!',\n      );\n      return null;\n    }\n    const classes = objectWithKey('classes', this.classList);\n    const transform = objectWithKey(\n      'transform',\n      typeof this.args.transform === 'string'\n        ? parse.transform(this.args.transform)\n        : (this.args.transform ?? {}),\n    );\n    const mask = objectWithKey(\n      'mask',\n      this.args.mask ? this.normalizeIconArgs(this.args.mask) : null,\n    );\n    const symbol = this.args.symbol ?? false;\n    // Title is only supported for FA 5 + 6... for FA 7+ pass title as aria-label https://docs.fontawesome.com/upgrade/whats-changed#simpler-accessibility\n    const title = this.args.title ? `${this.args.title}` : null;\n\n    const o = Object.assign({}, classes, transform, mask, {\n      symbol,\n      title,\n    }) as IconParams;\n\n    const renderedIcon = icon(iconLookup, o);\n    if (!renderedIcon) {\n      console.warn(\n        `Could not find icon: iconName=${iconLookup.iconName}, prefix=${iconLookup.prefix}. You may need to add it to your font-awesome.js/ts.`,\n      );\n      return null;\n    }\n\n    return renderedIcon.abstract[0] ?? null;\n  }\n\n  get iconAttributes(): Record<string, string> {\n    return (this.abstractIcon?.attributes as Record<string, string>) ?? {};\n  }\n\n  get dataPrefix(): string | undefined {\n    return this.iconAttributes['data-prefix'];\n  }\n\n  get dataIcon(): string | undefined {\n    return this.iconAttributes['data-icon'];\n  }\n\n  get dataFaTransform(): string | undefined {\n    return this.iconAttributes['data-fa-transform'];\n  }\n\n  get dataFaMask(): string | undefined {\n    return this.iconAttributes['data-fa-mask'];\n  }\n\n  get dataFaProcessed(): string | undefined {\n    return this.iconAttributes['data-fa-processed'];\n  }\n\n  get ariaHidden(): string | undefined {\n    return this.iconAttributes['aria-hidden'];\n  }\n\n  get ariaLabelledBy(): string | undefined {\n    return this.iconAttributes['aria-labelledby'];\n  }\n\n  get viewBox(): string {\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n    return (this.abstractIcon?.attributes?.viewBox as string) ?? '0 0 448 512';\n  }\n\n  private normalizeIconArgs(\n    icon: IconName | IconLookup | IconDefinition,\n    prefix?: IconPrefix,\n  ): IconLookup | null {\n    // @ts-expect-error Property 'resolveRegistration' does not exist on type 'Owner'.\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n    const appConfig = getOwner(this).resolveRegistration(\n      'config:environment',\n    ) as {\n      fontawesome?: {\n        defaultPrefix?: IconPrefix;\n      };\n    };\n\n    const defaultPrefix: IconPrefix =\n      appConfig?.fontawesome?.defaultPrefix ?? 'fas';\n\n    if (!icon) {\n      return null;\n    }\n\n    if (typeof icon === 'object' && icon.prefix && icon.iconName) {\n      return icon;\n    }\n\n    if (parse.icon) {\n      if (typeof prefix === 'string' && typeof icon === 'string') {\n        return parse.icon({ prefix: prefix, iconName: icon });\n      }\n\n      if (typeof icon === 'string') {\n        return parse.icon({ prefix: defaultPrefix, iconName: icon });\n      }\n    }\n\n    if (typeof prefix === 'string' && typeof icon === 'string') {\n      return { prefix: prefix, iconName: icon };\n    }\n\n    if (typeof icon === 'string') {\n      return { prefix: defaultPrefix, iconName: icon };\n    }\n\n    return null;\n  }\n\n  <template>\n    {{~#if this.iconExists~}}\n      <svg\n        style={{this.safeStyle}}\n        class={{get this.iconAttributes \"class\"}}\n        data-prefix={{this.dataPrefix}}\n        data-icon={{this.dataIcon}}\n        data-fa-transform={{this.dataFaTransform}}\n        data-fa-mask={{this.dataFaMask}}\n        data-fa-processed={{this.dataFaProcessed}}\n        aria-hidden={{this.ariaHidden}}\n        aria-labelledby={{this.ariaLabelledBy}}\n        focusable={{get this.iconAttributes \"focusable\"}}\n        role={{get this.iconAttributes \"role\"}}\n        xmlns={{get this.iconAttributes \"xmlns\"}}\n        viewBox={{this.viewBox}}\n        ...attributes\n      >\n        {{this.content}}\n      </svg>\n    {{~/if~}}\n  </template>\n}\n","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'far';\nvar iconName = 'clipboard';\nvar width = 384;\nvar height = 512;\nvar aliases = [128203];\nvar unicode = 'f328';\nvar svgPathData = 'M232 96l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24s-10.7 24-24 24zm0 48c37.1 0 67.6-28 71.6-64L320 80c8.8 0 16 7.2 16 16l0 352c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16L48 96c0-8.8 7.2-16 16-16l16.4 0c4 36 34.5 64 71.6 64l80 0zM291.9 32C279 12.7 257 0 232 0L152 0c-25 0-47 12.7-59.9 32L64 32C28.7 32 0 60.7 0 96L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-352c0-35.3-28.7-64-64-64l-28.1 0z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faClipboard = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'far';\nvar iconName = 'copy';\nvar width = 448;\nvar height = 512;\nvar aliases = [];\nvar unicode = 'f0c5';\nvar svgPathData = 'M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l58.5 58.5c3 3 4.7 7.1 4.7 11.3L400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-197.5c0-17-6.7-33.3-18.7-45.3L370.7 18.7C358.7 6.7 342.5 0 325.5 0L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-48 0 0 16c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l16 0 0-48-16 0z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faCopy = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'angle-down';\nvar width = 384;\nvar height = 512;\nvar aliases = [8964];\nvar unicode = 'f107';\nvar svgPathData = 'M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faAngleDown = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'angle-left';\nvar width = 256;\nvar height = 512;\nvar aliases = [8249];\nvar unicode = 'f104';\nvar svgPathData = 'M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faAngleLeft = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'angle-right';\nvar width = 256;\nvar height = 512;\nvar aliases = [8250];\nvar unicode = 'f105';\nvar svgPathData = 'M247.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L179.2 256 41.9 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faAngleRight = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'angle-up';\nvar width = 384;\nvar height = 512;\nvar aliases = [8963];\nvar unicode = 'f106';\nvar svgPathData = 'M169.4 137.4c12.5-12.5 32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L192 205.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faAngleUp = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'angles-down';\nvar width = 384;\nvar height = 512;\nvar aliases = [\"angle-double-down\"];\nvar unicode = 'f103';\nvar svgPathData = 'M214.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 402.7 329.4 265.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160zm160-352l-160 160c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 210.7 329.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faAnglesDown = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'angles-up';\nvar width = 384;\nvar height = 512;\nvar aliases = [\"angle-double-up\"];\nvar unicode = 'f102';\nvar svgPathData = 'M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 109.3 329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160zm160 352l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 329.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faAnglesUp = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'arrow-down';\nvar width = 384;\nvar height = 512;\nvar aliases = [8595];\nvar unicode = 'f063';\nvar svgPathData = 'M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faArrowDown = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'arrow-down-wide-short';\nvar width = 576;\nvar height = 512;\nvar aliases = [\"sort-amount-asc\",\"sort-amount-down\"];\nvar unicode = 'f160';\nvar svgPathData = 'M246.6 374.6l-96 96c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L96 370.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 306.7 41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faArrowDownWideShort = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'arrow-left';\nvar width = 512;\nvar height = 512;\nvar aliases = [8592];\nvar unicode = 'f060';\nvar svgPathData = 'M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 105.4-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faArrowLeft = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'arrow-right';\nvar width = 512;\nvar height = 512;\nvar aliases = [8594];\nvar unicode = 'f061';\nvar svgPathData = 'M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faArrowRight = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'arrow-up';\nvar width = 384;\nvar height = 512;\nvar aliases = [8593];\nvar unicode = 'f062';\nvar svgPathData = 'M214.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 109.3 160 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-370.7 105.4 105.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faArrowUp = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'arrow-up-short-wide';\nvar width = 576;\nvar height = 512;\nvar aliases = [\"sort-amount-up-alt\"];\nvar unicode = 'f885';\nvar svgPathData = 'M320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0zm0 128c-17.7 0-32 14.3-32 32s14.3 32 32 32l224 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-224 0zM150.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L96 141.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7 41.4 41.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-96-96z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faArrowUpShortWide = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'arrows-rotate';\nvar width = 512;\nvar height = 512;\nvar aliases = [128472,\"refresh\",\"sync\"];\nvar unicode = 'f021';\nvar svgPathData = 'M65.9 228.5c13.3-93 93.4-164.5 190.1-164.5 53 0 101 21.5 135.8 56.2 .2 .2 .4 .4 .6 .6l7.6 7.2-47.9 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 53.4-11.3-10.7C390.5 28.6 326.5 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1zm443.5 64c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-53 0-101-21.5-135.8-56.2-.2-.2-.4-.4-.6-.6l-7.6-7.2 47.9 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 320c-8.5 0-16.7 3.4-22.7 9.5S-.1 343.7 0 352.3l1 127c.1 17.7 14.6 31.9 32.3 31.7S65.2 496.4 65 478.7l-.4-51.5 10.7 10.1c46.3 46.1 110.2 74.7 180.7 74.7 129 0 235.7-95.4 253.4-219.5z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faArrowsRotate = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'backward';\nvar width = 576;\nvar height = 512;\nvar aliases = [9194];\nvar unicode = 'f04a';\nvar svgPathData = 'M204.3 43.1C215.9 32 233 28.9 247.7 35.2S272 56 272 72l0 136.3 172.3-165.1C455.9 32 473 28.9 487.7 35.2S512 56 512 72l0 368c0 16-9.6 30.5-24.3 36.8s-31.8 3.2-43.4-7.9L272 303.7 272 440c0 16-9.6 30.5-24.3 36.8s-31.8 3.2-43.4-7.9l-192-184C4.5 277.3 0 266.9 0 256s4.5-21.3 12.3-28.9l192-184z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faBackward = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'ban';\nvar width = 512;\nvar height = 512;\nvar aliases = [128683,\"cancel\"];\nvar unicode = 'f05e';\nvar svgPathData = 'M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faBan = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'bars';\nvar width = 448;\nvar height = 512;\nvar aliases = [\"navicon\"];\nvar unicode = 'f0c9';\nvar svgPathData = 'M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faBars = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'bell';\nvar width = 448;\nvar height = 512;\nvar aliases = [128276,61602];\nvar unicode = 'f0f3';\nvar svgPathData = 'M224 0c-17.7 0-32 14.3-32 32l0 3.2C119 50 64 114.6 64 192l0 21.7c0 48.1-16.4 94.8-46.4 132.4L7.8 358.3C2.7 364.6 0 372.4 0 380.5 0 400.1 15.9 416 35.5 416l376.9 0c19.6 0 35.5-15.9 35.5-35.5 0-8.1-2.7-15.9-7.8-22.2l-9.8-12.2C400.4 308.5 384 261.8 384 213.7l0-21.7c0-77.4-55-142-128-156.8l0-3.2c0-17.7-14.3-32-32-32zM162 464c7.1 27.6 32.2 48 62 48s54.9-20.4 62-48l-124 0z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faBell = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'broom';\nvar width = 576;\nvar height = 512;\nvar aliases = [129529];\nvar unicode = 'f51a';\nvar svgPathData = 'M566.6 54.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192-34.7-34.7c-4.2-4.2-10-6.6-16-6.6-12.5 0-22.6 10.1-22.6 22.6l0 29.1 108.3 108.3 29.1 0c12.5 0 22.6-10.1 22.6-22.6 0-6-2.4-11.8-6.6-16l-34.7-34.7 192-192zM341.1 353.4L222.6 234.9c-42.7-3.7-85.2 11.7-115.8 42.3l-8 8c-22.3 22.3-34.8 52.5-34.8 84 0 6.8 7.1 11.2 13.2 8.2l51.1-25.5c5-2.5 9.5 4.1 5.4 7.9L7.3 473.4C2.7 477.6 0 483.6 0 489.9 0 502.1 9.9 512 22.1 512l173.3 0c38.8 0 75.9-15.4 103.4-42.8 30.6-30.6 45.9-73.1 42.3-115.8z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faBroom = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'check';\nvar width = 448;\nvar height = 512;\nvar aliases = [10003,10004];\nvar unicode = 'f00c';\nvar svgPathData = 'M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faCheck = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'circle-check';\nvar width = 512;\nvar height = 512;\nvar aliases = [61533,\"check-circle\"];\nvar unicode = 'f058';\nvar svgPathData = 'M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faCircleCheck = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'circle-dot';\nvar width = 512;\nvar height = 512;\nvar aliases = [128280,\"dot-circle\"];\nvar unicode = 'f192';\nvar svgPathData = 'M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faCircleDot = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'circle-exclamation';\nvar width = 512;\nvar height = 512;\nvar aliases = [\"exclamation-circle\"];\nvar unicode = 'f06a';\nvar svgPathData = 'M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faCircleExclamation = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'circle-info';\nvar width = 512;\nvar height = 512;\nvar aliases = [\"info-circle\"];\nvar unicode = 'f05a';\nvar svgPathData = 'M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faCircleInfo = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'circle-pause';\nvar width = 512;\nvar height = 512;\nvar aliases = [62092,\"pause-circle\"];\nvar unicode = 'f28b';\nvar svgPathData = 'M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 192l0 128c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-128c0-17.7 14.3-32 32-32s32 14.3 32 32zm128 0l0 128c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-128c0-17.7 14.3-32 32-32s32 14.3 32 32z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faCirclePause = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'circle-question';\nvar width = 512;\nvar height = 512;\nvar aliases = [62108,\"question-circle\"];\nvar unicode = 'f059';\nvar svgPathData = 'M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-336c-17.7 0-32 14.3-32 32 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-44.2 35.8-80 80-80s80 35.8 80 80c0 47.2-36 67.2-56 74.5l0 3.8c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-8.1c0-20.5 14.8-35.2 30.1-40.2 6.4-2.1 13.2-5.5 18.2-10.3 4.3-4.2 7.7-10 7.7-19.6 0-17.7-14.3-32-32-32zM224 368a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faCircleQuestion = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'clock';\nvar width = 512;\nvar height = 512;\nvar aliases = [128339,\"clock-four\"];\nvar unicode = 'f017';\nvar svgPathData = 'M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faClock = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'clock-rotate-left';\nvar width = 576;\nvar height = 512;\nvar aliases = [\"history\"];\nvar unicode = 'f1da';\nvar svgPathData = 'M288 64c106 0 192 86 192 192S394 448 288 448c-65.2 0-122.9-32.5-157.6-82.3-10.1-14.5-30.1-18-44.6-7.9s-18 30.1-7.9 44.6C124.1 468.6 201 512 288 512 429.4 512 544 397.4 544 256S429.4 0 288 0C202.3 0 126.5 42.1 80 106.7L80 80c0-17.7-14.3-32-32-32S16 62.3 16 80l0 112c0 17.7 14.3 32 32 32l24.6 0c.5 0 1 0 1.5 0l86 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-38.3 0C154.9 102.6 217 64 288 64zm24 88c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faClockRotateLeft = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'download';\nvar width = 448;\nvar height = 512;\nvar aliases = [];\nvar unicode = 'f019';\nvar svgPathData = 'M256 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 210.7-41.4-41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 242.7 256 32zM64 320c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-46.9 0-56.6 56.6c-31.2 31.2-81.9 31.2-113.1 0L110.9 320 64 320zm304 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faDownload = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'eye';\nvar width = 576;\nvar height = 512;\nvar aliases = [128065];\nvar unicode = 'f06e';\nvar svgPathData = 'M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faEye = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'eye-slash';\nvar width = 576;\nvar height = 512;\nvar aliases = [];\nvar unicode = 'f070';\nvar svgPathData = 'M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faEyeSlash = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'flag';\nvar width = 448;\nvar height = 512;\nvar aliases = [127988,61725];\nvar unicode = 'f024';\nvar svgPathData = 'M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32L0 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-121.6 62.7-18.8c41.9-12.6 87.1-8.7 126.2 10.9 42.7 21.4 92.5 24 137.2 7.2l37.1-13.9c12.5-4.7 20.8-16.6 20.8-30l0-247.7c0-23-24.2-38-44.8-27.7l-11.8 5.9c-44.9 22.5-97.8 22.5-142.8 0-36.4-18.2-78.3-21.8-117.2-10.1L64 54.4 64 32z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faFlag = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'flag-checkered';\nvar width = 448;\nvar height = 512;\nvar aliases = [127937];\nvar unicode = 'f11e';\nvar svgPathData = 'M32 0C49.7 0 64 14.3 64 32l0 16 69-17.2c38.1-9.5 78.3-5.1 113.5 12.5 46.3 23.2 100.8 23.2 147.1 0l9.6-4.8C423.8 28.1 448 43.1 448 66.1l0 279.7c0 13.3-8.3 25.3-20.8 30l-34.7 13c-46.2 17.3-97.6 14.6-141.7-7.4-37.9-19-81.4-23.7-122.5-13.4L64 384 64 480c0 17.7-14.3 32-32 32S0 497.7 0 480L0 32C0 14.3 14.3 0 32 0zM64 187.1l64-13.9 0 65.5-64 13.9 0 65.5 48.8-12.2c5.1-1.3 10.1-2.4 15.2-3.3l0-63.9 38.9-8.4c8.3-1.8 16.7-2.5 25.1-2.1l0-64c13.6 .4 27.2 2.6 40.4 6.4l23.6 6.9 0 66.7-41.7-12.3c-7.3-2.1-14.8-3.4-22.3-3.8l0 71.4c21.8 1.9 43.3 6.7 64 14.4l0-69.8 22.7 6.7c13.5 4 27.3 6.4 41.3 7.4l0-64.2c-7.8-.8-15.6-2.3-23.2-4.5l-40.8-12 0-62c-13-3.8-25.8-8.8-38.2-15-8.2-4.1-16.9-7-25.8-8.8l0 72.4c-13-.4-26 .8-38.7 3.6l-25.3 5.5 0-75.2-64 16 0 73.1zM320 335.7c16.8 1.5 33.9-.7 50-6.8l14-5.2 0-71.7-7.9 1.8c-18.4 4.3-37.3 5.7-56.1 4.5l0 77.4zm64-149.4l0-70.8c-20.9 6.1-42.4 9.1-64 9.1l0 69.4c13.9 1.4 28 .5 41.7-2.6l22.3-5.2z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faFlagCheckered = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'gear';\nvar width = 512;\nvar height = 512;\nvar aliases = [9881,\"cog\"];\nvar unicode = 'f013';\nvar svgPathData = 'M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 336a80 80 0 1 0 -.6-160 80 80 0 1 0 .6 160z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faGear = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'ghost';\nvar width = 384;\nvar height = 512;\nvar aliases = [128123];\nvar unicode = 'f6e2';\nvar svgPathData = 'M40.1 467.1l-11.2 9C25.7 478.6 21.8 480 17.8 480 8 480 0 472 0 462.2L0 192C0 86 86 0 192 0S384 86 384 192l0 270.2c0 9.8-8 17.8-17.8 17.8-4 0-7.9-1.4-11.1-3.9l-11.2-9c-13.4-10.7-32.8-9-44.1 3.9L269.3 506c-3.3 3.8-8.2 6-13.3 6s-9.9-2.2-13.3-6l-26.6-30.5c-12.7-14.6-35.4-14.6-48.2 0L141.3 506c-3.3 3.8-8.2 6-13.3 6s-9.9-2.2-13.3-6L84.2 471c-11.3-12.9-30.7-14.6-44.1-3.9zM160 192a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faGhost = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'hand-pointer';\nvar width = 448;\nvar height = 512;\nvar aliases = [];\nvar unicode = 'f25a';\nvar svgPathData = 'M128 40c0-22.1 17.9-40 40-40s40 17.9 40 40l0 148.2c8.5-7.6 19.7-12.2 32-12.2 20.6 0 38.2 13 45 31.2 8.8-9.3 21.2-15.2 35-15.2 25.3 0 46 19.5 47.9 44.3 8.5-7.7 19.8-12.3 32.1-12.3 26.5 0 48 21.5 48 48l0 112c0 70.7-57.3 128-128 128l-85.3 0c-5 0-9.9-.3-14.7-1-55.3-5.6-106.2-34-140-79L8 336c-13.3-17.7-9.7-42.7 8-56s42.7-9.7 56 8l56 74.7 0-322.7zM240 304c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-96zm48-16c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-96c0-8.8-7.2-16-16-16zm80 16c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-96z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faHandPointer = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'hashtag';\nvar width = 512;\nvar height = 512;\nvar aliases = [62098];\nvar unicode = '23';\nvar svgPathData = 'M214.7 .7c17.3 3.7 28.3 20.7 24.6 38l-19.1 89.3 126.5 0 22-102.7C372.4 8 389.4-3 406.7 .7s28.3 20.7 24.6 38L412.2 128 480 128c17.7 0 32 14.3 32 32s-14.3 32-32 32l-81.6 0-27.4 128 67.8 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-81.6 0-22 102.7c-3.7 17.3-20.7 28.3-38 24.6s-28.3-20.7-24.6-38l19.1-89.3-126.5 0-22 102.7c-3.7 17.3-20.7 28.3-38 24.6s-28.3-20.7-24.6-38L99.8 384 32 384c-17.7 0-32-14.3-32-32s14.3-32 32-32l81.6 0 27.4-128-67.8 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l81.6 0 22-102.7C180.4 8 197.4-3 214.7 .7zM206.4 192l-27.4 128 126.5 0 27.4-128-126.5 0z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faHashtag = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'heart-crack';\nvar width = 512;\nvar height = 512;\nvar aliases = [128148,\"heart-broken\"];\nvar unicode = 'f7a9';\nvar svgPathData = 'M133.1 32c17.3 0 34.2 3.4 49.9 9.7l54.8 85.2-75.4 75.4c-1.5 1.5-2.4 3.6-2.3 5.8s1 4.2 2.6 5.7l112 104c2.9 2.7 7.4 2.9 10.5 .3s3.8-7 1.7-10.4l-60.4-98.1 90.7-75.6c2.6-2.1 3.5-5.7 2.4-8.8L296.4 60.6C319.6 42.3 348.6 32 378.9 32 452.4 32 512 91.6 512 165.1l0 2.6c0 112.2-139.9 242.5-212.9 298.2-12.4 9.4-27.6 14.1-43.1 14.1s-30.8-4.6-43.1-14.1C139.9 410.2 0 279.9 0 167.7l0-2.6C0 91.6 59.6 32 133.1 32z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faHeartCrack = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'heart-pulse';\nvar width = 512;\nvar height = 512;\nvar aliases = [\"heartbeat\"];\nvar unicode = 'f21e';\nvar svgPathData = 'M256 107.9L241 87.1C216 52.5 175.9 32 133.1 32 59.6 32 0 91.6 0 165.1l0 2.6c0 23.6 6.2 48 16.6 72.3l106 0c3.2 0 6.1-1.9 7.4-4.9l31.8-76.3c3.7-8.8 12.3-14.6 21.8-14.8s18.3 5.4 22.2 14.1l51.3 113.9 41.4-82.8c4.1-8.1 12.4-13.3 21.5-13.3s17.4 5.1 21.5 13.3l23.2 46.3c1.4 2.7 4.1 4.4 7.2 4.4l123.6 0c10.5-24.3 16.6-48.7 16.6-72.3l0-2.6C512 91.6 452.4 32 378.9 32 336.2 32 296 52.5 271 87.1l-15 20.7zM469.6 288l-97.8 0c-21.2 0-40.6-12-50.1-31l-1.7-3.4-42.5 85.1c-4.1 8.3-12.7 13.5-22 13.3s-17.6-5.7-21.4-14.1l-49.3-109.5-10.5 25.2c-8.7 20.9-29.1 34.5-51.7 34.5l-80.2 0c47.2 73.8 123 141.7 170.4 177.9 12.4 9.4 27.6 14.1 43.1 14.1s30.8-4.6 43.1-14.1C346.6 429.7 422.4 361.8 469.6 288z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faHeartPulse = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'hourglass-end';\nvar width = 384;\nvar height = 512;\nvar aliases = [8987,\"hourglass-3\"];\nvar unicode = 'f253';\nvar svgPathData = 'M32 0C14.3 0 0 14.3 0 32S14.3 64 32 64l0 11c0 42.4 16.9 83.1 46.9 113.1l67.9 67.9-67.9 67.9C48.9 353.9 32 394.6 32 437l0 11c-17.7 0-32 14.3-32 32s14.3 32 32 32l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-11c0-42.4-16.9-83.1-46.9-113.1l-67.9-67.9 67.9-67.9c30-30 46.9-70.7 46.9-113.1l0-11c17.7 0 32-14.3 32-32S369.7 0 352 0L32 0zM96 75l0-11 192 0 0 11c0 25.5-10.1 49.9-28.1 67.9l-67.9 67.9-67.9-67.9C106.1 124.9 96 100.4 96 75z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faHourglassEnd = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'hourglass-half';\nvar width = 384;\nvar height = 512;\nvar aliases = [\"hourglass-2\"];\nvar unicode = 'f252';\nvar svgPathData = 'M32 0C14.3 0 0 14.3 0 32S14.3 64 32 64l0 11c0 42.4 16.9 83.1 46.9 113.1l67.9 67.9-67.9 67.9C48.9 353.9 32 394.6 32 437l0 11c-17.7 0-32 14.3-32 32s14.3 32 32 32l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-11c0-42.4-16.9-83.1-46.9-113.1l-67.9-67.9 67.9-67.9c30-30 46.9-70.7 46.9-113.1l0-11c17.7 0 32-14.3 32-32S369.7 0 352 0L32 0zM96 75l0-11 192 0 0 11c0 19-5.6 37.4-16 53L112 128c-10.3-15.6-16-34-16-53zm16 309c3.5-5.3 7.6-10.3 12.1-14.9l67.9-67.9 67.9 67.9c4.6 4.6 8.6 9.6 12.2 14.9L112 384z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faHourglassHalf = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'key';\nvar width = 512;\nvar height = 512;\nvar aliases = [128273];\nvar unicode = 'f084';\nvar svgPathData = 'M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0 160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faKey = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'location-dot';\nvar width = 384;\nvar height = 512;\nvar aliases = [\"map-marker-alt\"];\nvar unicode = 'f3c5';\nvar svgPathData = 'M0 188.6C0 84.4 86 0 192 0S384 84.4 384 188.6c0 119.3-120.2 262.3-170.4 316.8-11.8 12.8-31.5 12.8-43.3 0-50.2-54.5-170.4-197.5-170.4-316.8zM192 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faLocationDot = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'lock';\nvar width = 384;\nvar height = 512;\nvar aliases = [128274];\nvar unicode = 'f023';\nvar svgPathData = 'M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faLock = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'magnifying-glass';\nvar width = 512;\nvar height = 512;\nvar aliases = [128269,\"search\"];\nvar unicode = 'f002';\nvar svgPathData = 'M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faMagnifyingGlass = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'magnifying-glass-minus';\nvar width = 512;\nvar height = 512;\nvar aliases = [\"search-minus\"];\nvar unicode = 'f010';\nvar svgPathData = 'M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM136 184c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faMagnifyingGlassMinus = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'magnifying-glass-plus';\nvar width = 512;\nvar height = 512;\nvar aliases = [\"search-plus\"];\nvar unicode = 'f00e';\nvar svgPathData = 'M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 112c-13.3 0-24 10.7-24 24l0 48-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l48 0 0 48c0 13.3 10.7 24 24 24s24-10.7 24-24l0-48 48 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-48 0 0-48c0-13.3-10.7-24-24-24z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faMagnifyingGlassPlus = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'map';\nvar width = 512;\nvar height = 512;\nvar aliases = [128506,62072];\nvar unicode = 'f279';\nvar svgPathData = 'M512 48c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4L349.5 77.5 170.1 17.6c-8.1-2.7-16.8-2.1-24.4 1.7l-128 64C6.8 88.8 0 99.9 0 112L0 464c0 11.1 5.7 21.4 15.2 27.2s21.2 6.4 31.1 1.4l116.1-58.1 179.4 59.8c8.1 2.7 16.8 2.1 24.4-1.7l128-64c10.8-5.4 17.7-16.5 17.7-28.6l0-352zM192 376.9l0-284.5 128 42.7 0 284.5-128-42.7z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faMap = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'minus';\nvar width = 448;\nvar height = 512;\nvar aliases = [8211,8722,10134,\"subtract\"];\nvar unicode = 'f068';\nvar svgPathData = 'M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faMinus = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'paper-plane';\nvar width = 576;\nvar height = 512;\nvar aliases = [61913];\nvar unicode = 'f1d8';\nvar svgPathData = 'M536.4-26.3c9.8-3.5 20.6-1 28 6.3s9.8 18.2 6.3 28l-178 496.9c-5 13.9-18.1 23.1-32.8 23.1-14.2 0-27-8.6-32.3-21.7l-64.2-158c-4.5-11-2.5-23.6 5.2-32.6l94.5-112.4c5.1-6.1 4.7-15-.9-20.6s-14.6-6-20.6-.9L229.2 276.1c-9.1 7.6-21.6 9.6-32.6 5.2L38.1 216.8c-13.1-5.3-21.7-18.1-21.7-32.3 0-14.7 9.2-27.8 23.1-32.8l496.9-178z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faPaperPlane = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'pen';\nvar width = 512;\nvar height = 512;\nvar aliases = [128394];\nvar unicode = 'f304';\nvar svgPathData = 'M352.9 21.2L308 66.1 445.9 204 490.8 159.1C504.4 145.6 512 127.2 512 108s-7.6-37.6-21.2-51.1L455.1 21.2C441.6 7.6 423.2 0 404 0s-37.6 7.6-51.1 21.2zM274.1 100L58.9 315.1c-10.7 10.7-18.5 24.1-22.6 38.7L.9 481.6c-2.3 8.3 0 17.3 6.2 23.4s15.1 8.5 23.4 6.2l127.8-35.5c14.6-4.1 27.9-11.8 38.7-22.6L412 237.9 274.1 100z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faPen = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'person-running';\nvar width = 448;\nvar height = 512;\nvar aliases = [127939,\"running\"];\nvar unicode = 'f70c';\nvar svgPathData = 'M256.5-32a56 56 0 1 1 0 112 56 56 0 1 1 0-112zM123.6 176c-3.3 0-6.2 2-7.4 5L94.2 235.9c-6.6 16.4-25.2 24.4-41.6 17.8s-24.4-25.2-17.8-41.6l21.9-54.9C67.7 129.9 94.1 112 123.6 112l97.3 0c28.5 0 54.8 15.1 69.1 39.7l32.8 56.3 61.6 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-61.6 0c-22.8 0-43.8-12.1-55.3-31.8l-10-17.1-20.7 70.4 75.4 22.6c27.7 8.3 41.8 39 30.1 65.5L285.7 509c-7.2 16.2-26.1 23.4-42.2 16.2s-23.4-26.1-16.2-42.2l49.2-110.8-95.9-28.8c-32.7-9.8-52-43.7-43.7-76.8l22.7-90.6-35.9 0zm-8 181c13.3 14.9 30.7 26.3 51.2 32.4l4.7 1.4-6.9 19.3c-5.8 16.3-16 30.8-29.3 41.8L52.9 519.8c-13.6 11.2-33.8 9.3-45-4.3s-9.3-33.8 4.3-45l82.4-67.9c4.5-3.7 7.8-8.5 9.8-13.9L115.6 357z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faPersonRunning = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'person-walking';\nvar width = 384;\nvar height = 512;\nvar aliases = [128694,\"walking\"];\nvar unicode = 'f554';\nvar svgPathData = 'M192 80a56 56 0 1 0 0-112 56 56 0 1 0 0 112zM105.4 227.9l22.6-22.6 0 69.3c0 28 12.2 54.7 33.5 72.9l71.4 61.2c5.9 5.1 9.8 12.1 10.9 19.8l12.6 88.1c2.5 17.5 18.7 29.7 36.2 27.2s29.7-18.7 27.2-36.2l-12.6-88.1c-3.3-23.1-14.9-44.1-32.6-59.3l-34.5-29.6 0-115.2 3.8 4.7c18.2 22.8 45.8 36 75 36l33.2 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-33.2 0c-9.7 0-18.9-4.4-25-12l-17.9-22.4c-23-28.8-57.9-45.6-94.8-45.6-32.2 0-63.1 12.8-85.8 35.6L60.1 182.6C42.1 200.6 32 225 32 250.5L32 288c0 17.7 14.3 32 32 32s32-14.3 32-32l0-37.5c0-8.5 3.4-16.6 9.4-22.6zm12.4 179.4c-1.5 5.2-4.3 10-8.1 13.8L41.4 489.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l68.3-68.3c11.5-11.5 19.9-25.8 24.4-41.5l2.2-7.6-46-39.4c-2.5-2.2-5-4.4-7.4-6.8l-10.4 36.2z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faPersonWalking = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'play';\nvar width = 448;\nvar height = 512;\nvar aliases = [9654];\nvar unicode = 'f04b';\nvar svgPathData = 'M91.2 36.9c-12.4-6.8-27.4-6.5-39.6 .7S32 57.9 32 72l0 368c0 14.1 7.5 27.2 19.6 34.4s27.2 7.5 39.6 .7l336-184c12.8-7 20.8-20.5 20.8-35.1s-8-28.1-20.8-35.1l-336-184z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faPlay = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'plug';\nvar width = 448;\nvar height = 512;\nvar aliases = [128268];\nvar unicode = 'f1e6';\nvar svgPathData = 'M128-32c17.7 0 32 14.3 32 32l0 96 128 0 0-96c0-17.7 14.3-32 32-32s32 14.3 32 32l0 96 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l0 64c0 95.1-69.2 174.1-160 189.3l0 66.7c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-66.7C101.2 398.1 32 319.1 32 224l0-64c-17.7 0-32-14.3-32-32S14.3 96 32 96l64 0 0-96c0-17.7 14.3-32 32-32z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faPlug = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'plus';\nvar width = 448;\nvar height = 512;\nvar aliases = [10133,61543,\"add\"];\nvar unicode = '2b';\nvar svgPathData = 'M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faPlus = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'power-off';\nvar width = 512;\nvar height = 512;\nvar aliases = [9211];\nvar unicode = 'f011';\nvar svgPathData = 'M288 0c0-17.7-14.3-32-32-32S224-17.7 224 0l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32L288 0zM146.3 98.4c14.5-10.1 18-30.1 7.9-44.6s-30.1-18-44.6-7.9C43.4 92.1 0 169 0 256 0 397.4 114.6 512 256 512S512 397.4 512 256c0-87-43.4-163.9-109.7-210.1-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6c49.8 34.8 82.3 92.4 82.3 157.6 0 106-86 192-192 192S64 362 64 256c0-65.2 32.5-122.9 82.3-157.6z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faPowerOff = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'right-left';\nvar width = 512;\nvar height = 512;\nvar aliases = [\"exchange-alt\"];\nvar unicode = 'f362';\nvar svgPathData = 'M502.6 150.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9S352 236.9 352 224l0-64-320 0c-17.7 0-32-14.3-32-32S14.3 96 32 96l320 0 0-64c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c12.5 12.5 12.5 32.8 0 45.3zm-397.3 352l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c9.2-9.2 22.9-11.9 34.9-6.9S160 275.1 160 288l0 64 320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-320 0 0 64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faRightLeft = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'rotate-left';\nvar width = 512;\nvar height = 512;\nvar aliases = [\"rotate-back\",\"rotate-backward\",\"undo-alt\"];\nvar unicode = 'f2ea';\nvar svgPathData = 'M24 192l144 0c9.7 0 18.5-5.8 22.2-14.8s1.7-19.3-5.2-26.2l-46.7-46.7c75.3-58.6 184.3-53.3 253.5 15.9 75 75 75 196.5 0 271.5s-196.5 75-271.5 0c-10.2-10.2-19-21.3-26.4-33-9.5-14.9-29.3-19.3-44.2-9.8s-19.3 29.3-9.8 44.2C49.7 408.7 61.4 423.5 75 437 175 537 337 537 437 437S537 175 437 75C342.8-19.3 193.3-24.7 92.7 58.8L41 7C34.1 .2 23.8-1.9 14.8 1.8S0 14.3 0 24L0 168c0 13.3 10.7 24 24 24z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faRotateLeft = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'route';\nvar width = 512;\nvar height = 512;\nvar aliases = [];\nvar unicode = 'f4d7';\nvar svgPathData = 'M512 96c0 50.2-59.1 125.1-84.6 155-3.8 4.4-9.4 6.1-14.5 5L320 256c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c53 0 96 43 96 96s-43 96-96 96l-276.4 0c8.7-9.9 19.3-22.6 30-36.8 6.3-8.4 12.8-17.6 19-27.2L416 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-53 0-96-43-96-96s43-96 96-96l39.8 0c-21-31.5-39.8-67.7-39.8-96 0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8-25.2-27.4-85-97.9-85-148.4 0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faRoute = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'server';\nvar width = 448;\nvar height = 512;\nvar aliases = [];\nvar unicode = 'f233';\nvar svgPathData = 'M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faServer = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'shield-halved';\nvar width = 512;\nvar height = 512;\nvar aliases = [\"shield-alt\"];\nvar unicode = 'f3ed';\nvar svgPathData = 'M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0-172.4-82.5-213.1-264-213.6-363.2-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.9 1 251.4 0 256 0zm0 66.8l0 378.1c138-66.8 175.1-214.8 176-303.4l-176-74.6 0 0z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faShieldHalved = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'shoe-prints';\nvar width = 576;\nvar height = 512;\nvar aliases = [];\nvar unicode = 'f54b';\nvar svgPathData = 'M296 192c-21.1-12.1-42.3-24.2-72-29.3l0-140.3C257.7 13 311.4 0 352 0 448 0 576 48 576 128s-119.6 96-176 96c-48 0-76-16-104-32zM128 32l48 0 0 128-48 0c-35.3 0-64-28.7-64-64s28.7-64 64-64zM232 320c28-16 56-32 104-32 56.4 0 176 16 176 96S384 512 288 512c-40.5 0-94.3-13-128-22.4l0-140.3c29.7-5.2 50.9-17.3 72-29.4zM64 480c-35.3 0-64-28.7-64-64s28.7-64 64-64l48 0 0 128-48 0z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faShoePrints = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'shuffle';\nvar width = 512;\nvar height = 512;\nvar aliases = [128256,\"random\"];\nvar unicode = 'f074';\nvar svgPathData = 'M403.8 34.4c12-5 25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64c-9.2 9.2-22.9 11.9-34.9 6.9S384 204.9 384 192l0-32-32 0c-10.1 0-19.6 4.7-25.6 12.8l-32.4 43.2-40-53.3 21.2-28.3C293.3 110.2 321.8 96 352 96l32 0 0-32c0-12.9 7.8-24.6 19.8-29.6zM154 296l40 53.3-21.2 28.3C154.7 401.8 126.2 416 96 416l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c10.1 0 19.6-4.7 25.6-12.8L154 296zM438.6 470.6c-9.2 9.2-22.9 11.9-34.9 6.9S384 460.9 384 448l0-32-32 0c-30.2 0-58.7-14.2-76.8-38.4L121.6 172.8c-6-8.1-15.5-12.8-25.6-12.8l-64 0c-17.7 0-32-14.3-32-32S14.3 96 32 96l64 0c30.2 0 58.7 14.2 76.8 38.4L326.4 339.2c6 8.1 15.5 12.8 25.6 12.8l32 0 0-32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faShuffle = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'skull';\nvar width = 512;\nvar height = 512;\nvar aliases = [128128];\nvar unicode = 'f54c';\nvar svgPathData = 'M416 427.4c58.5-44 96-111.6 96-187.4 0-132.5-114.6-240-256-240S0 107.5 0 240c0 75.8 37.5 143.4 96 187.4L96 464c0 26.5 21.5 48 48 48l32 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 64 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 32 0c26.5 0 48-21.5 48-48l0-36.6zM96 256a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zm256-64a64 64 0 1 1 0 128 64 64 0 1 1 0-128z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faSkull = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'stairs';\nvar width = 576;\nvar height = 512;\nvar aliases = [];\nvar unicode = 'e289';\nvar svgPathData = 'M384 64c0-17.7 14.3-32 32-32l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0 0 96c0 17.7-14.3 32-32 32l-96 0 0 96c0 17.7-14.3 32-32 32l-96 0 0 96c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0 0-96c0-17.7 14.3-32 32-32l96 0 0-96c0-17.7 14.3-32 32-32l96 0 0-96z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faStairs = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'stop';\nvar width = 448;\nvar height = 512;\nvar aliases = [9209];\nvar unicode = 'f04d';\nvar svgPathData = 'M64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96C0 60.7 28.7 32 64 32z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faStop = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'terminal';\nvar width = 512;\nvar height = 512;\nvar aliases = [];\nvar unicode = 'f120';\nvar svgPathData = 'M9.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L146.7 256 9.4 118.6zM224 384l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faTerminal = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'toggle-on';\nvar width = 576;\nvar height = 512;\nvar aliases = [];\nvar unicode = 'f205';\nvar svgPathData = 'M192 64C86 64 0 150 0 256S86 448 192 448l192 0c106 0 192-86 192-192S490 64 384 64L192 64zm192 96a96 96 0 1 1 0 192 96 96 0 1 1 0-192z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faToggleOn = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'tower-broadcast';\nvar width = 576;\nvar height = 512;\nvar aliases = [\"broadcast-tower\"];\nvar unicode = 'f519';\nvar svgPathData = 'M87.9 11.5c-11.3-6.9-26.1-3.2-33 8.1-24.8 41-39 89.1-39 140.4s14.2 99.4 39 140.4c6.9 11.3 21.6 15 33 8.1s15-21.6 8.1-33C75.7 241.9 64 202.3 64 160S75.7 78.1 96.1 44.4c6.9-11.3 3.2-26.1-8.1-33zm400.1 0c-11.3 6.9-15 21.6-8.1 33 20.4 33.7 32.1 73.3 32.1 115.6s-11.7 81.9-32.1 115.6c-6.9 11.3-3.2 26.1 8.1 33s26.1 3.2 33-8.1c24.8-41 39-89.1 39-140.4S545.8 60.6 521 19.6c-6.9-11.3-21.6-15-33-8.1zM320 215.4c19.1-11.1 32-31.7 32-55.4 0-35.3-28.7-64-64-64s-64 28.7-64 64c0 23.7 12.9 44.4 32 55.4L256 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-264.6zM180.2 91c7.2-11.2 3.9-26-7.2-33.2s-26-3.9-33.2 7.2c-17.6 27.4-27.8 60-27.8 95s10.2 67.6 27.8 95c7.2 11.2 22 14.4 33.2 7.2s14.4-22 7.2-33.2c-12.8-19.9-20.2-43.6-20.2-69s7.4-49.1 20.2-69zM436.2 65c-7.2-11.2-22-14.4-33.2-7.2s-14.4 22-7.2 33.2c12.8 19.9 20.2 43.6 20.2 69s-7.4 49.1-20.2 69c-7.2 11.2-3.9 26 7.2 33.2s26 3.9 33.2-7.2c17.6-27.4 27.8-60 27.8-95s-10.2-67.6-27.8-95z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faTowerBroadcast = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'trash';\nvar width = 448;\nvar height = 512;\nvar aliases = [];\nvar unicode = 'f1f8';\nvar svgPathData = 'M136.7 5.9L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-8.7-26.1C306.9-7.2 294.7-16 280.9-16L167.1-16c-13.8 0-26 8.8-30.4 21.9zM416 144L32 144 53.1 467.1C54.7 492.4 75.7 512 101 512L347 512c25.3 0 46.3-19.6 47.9-44.9L416 144z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faTrash = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'triangle-exclamation';\nvar width = 512;\nvar height = 512;\nvar aliases = [9888,\"exclamation-triangle\",\"warning\"];\nvar unicode = 'f071';\nvar svgPathData = 'M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faTriangleExclamation = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'user';\nvar width = 448;\nvar height = 512;\nvar aliases = [128100,62144,62470,\"user-alt\",\"user-large\"];\nvar unicode = 'f007';\nvar svgPathData = 'M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faUser = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'water';\nvar width = 512;\nvar height = 512;\nvar aliases = [];\nvar unicode = 'f773';\nvar svgPathData = 'M410.6 124.1c20.7 15.6 46 30.7 74.2 34.5 13.1 1.8 25.2-7.5 27-20.6s-7.5-25.2-20.6-27c-15.9-2.1-33.2-11.3-51.7-25.2-38.4-29-90.5-29-129 0-24 18.1-40.7 26.3-54.5 26.3s-30.5-8.2-54.5-26.3c-38.4-29-90.5-29-129 0-18.5 13.9-35.8 23.1-51.7 25.2-13.1 1.8-22.4 13.8-20.6 27s13.8 22.4 27 20.6c28.2-3.8 53.6-18.9 74.2-34.5 21.3-16.1 49.9-16.1 71.2 0 24.2 18.3 52.3 35.9 83.4 35.9s59.1-17.7 83.4-35.9c21.3-16.1 49.9-16.1 71.2 0zm0 144c20.7 15.6 46 30.7 74.2 34.5 13.1 1.8 25.2-7.5 27-20.6s-7.5-25.2-20.6-27c-15.9-2.1-33.2-11.3-51.7-25.2-38.4-29-90.5-29-129 0-24 18.1-40.7 26.3-54.5 26.3s-30.5-8.2-54.5-26.3c-38.4-29-90.5-29-129 0-18.5 13.9-35.8 23.1-51.7 25.2-13.1 1.7-22.4 13.8-20.6 27s13.8 22.4 27 20.6c28.2-3.8 53.6-18.9 74.2-34.5 21.3-16.1 49.9-16.1 71.2 0 24.2 18.3 52.3 35.9 83.4 35.9s59.1-17.7 83.4-35.9c21.3-16.1 49.9-16.1 71.2 0zm-71.2 144c21.3-16.1 49.9-16.1 71.2 0 20.7 15.6 46 30.7 74.2 34.5 13.1 1.8 25.2-7.5 27-20.6s-7.5-25.2-20.6-27c-15.9-2.1-33.2-11.3-51.7-25.2-38.4-29-90.5-29-129 0-24 18.1-40.7 26.3-54.5 26.3s-30.5-8.2-54.5-26.3c-38.4-29-90.5-29-129 0-18.5 13.9-35.8 23.1-51.7 25.2-13.1 1.8-22.4 13.8-20.6 27s13.8 22.4 27 20.6c28.2-3.8 53.6-18.9 74.2-34.5 21.3-16.1 49.9-16.1 71.2 0 24.2 18.3 52.3 35.9 83.4 35.9s59.1-17.7 83.4-35.9z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faWater = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","'use strict';\nObject.defineProperty(exports, '__esModule', { value: true });\nvar prefix = 'fas';\nvar iconName = 'xmark';\nvar width = 384;\nvar height = 512;\nvar aliases = [128473,10005,10006,10060,215,\"close\",\"multiply\",\"remove\",\"times\"];\nvar unicode = 'f00d';\nvar svgPathData = 'M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z';\n\nexports.definition = {\n  prefix: prefix,\n  iconName: iconName,\n  icon: [\n    width,\n    height,\n    aliases,\n    unicode,\n    svgPathData\n  ]};\n\nexports.faXmark = exports.definition;\nexports.prefix = prefix;\nexports.iconName = iconName;\nexports.width = width;\nexports.height = height;\nexports.ligatures = aliases;\nexports.unicode = unicode;\nexports.svgPathData = svgPathData;\nexports.aliases = aliases;","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n  return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n  return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","export default function getNodeName(element) {\n  return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n  if (node == null) {\n    return window;\n  }\n\n  if (node.toString() !== '[object Window]') {\n    var ownerDocument = node.ownerDocument;\n    return ownerDocument ? ownerDocument.defaultView || window : window;\n  }\n\n  return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n  var OwnElement = getWindow(node).Element;\n  return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n  var OwnElement = getWindow(node).HTMLElement;\n  return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n  // IE 11 has no ShadowRoot\n  if (typeof ShadowRoot === 'undefined') {\n    return false;\n  }\n\n  var OwnElement = getWindow(node).ShadowRoot;\n  return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n  var state = _ref.state;\n  Object.keys(state.elements).forEach(function (name) {\n    var style = state.styles[name] || {};\n    var attributes = state.attributes[name] || {};\n    var element = state.elements[name]; // arrow is optional + virtual elements\n\n    if (!isHTMLElement(element) || !getNodeName(element)) {\n      return;\n    } // Flow doesn't support to extend this property, but it's the most\n    // effective way to apply styles to an HTMLElement\n    // $FlowFixMe[cannot-write]\n\n\n    Object.assign(element.style, style);\n    Object.keys(attributes).forEach(function (name) {\n      var value = attributes[name];\n\n      if (value === false) {\n        element.removeAttribute(name);\n      } else {\n        element.setAttribute(name, value === true ? '' : value);\n      }\n    });\n  });\n}\n\nfunction effect(_ref2) {\n  var state = _ref2.state;\n  var initialStyles = {\n    popper: {\n      position: state.options.strategy,\n      left: '0',\n      top: '0',\n      margin: '0'\n    },\n    arrow: {\n      position: 'absolute'\n    },\n    reference: {}\n  };\n  Object.assign(state.elements.popper.style, initialStyles.popper);\n  state.styles = initialStyles;\n\n  if (state.elements.arrow) {\n    Object.assign(state.elements.arrow.style, initialStyles.arrow);\n  }\n\n  return function () {\n    Object.keys(state.elements).forEach(function (name) {\n      var element = state.elements[name];\n      var attributes = state.attributes[name] || {};\n      var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n      var style = styleProperties.reduce(function (style, property) {\n        style[property] = '';\n        return style;\n      }, {}); // arrow is optional + virtual elements\n\n      if (!isHTMLElement(element) || !getNodeName(element)) {\n        return;\n      }\n\n      Object.assign(element.style, style);\n      Object.keys(attributes).forEach(function (attribute) {\n        element.removeAttribute(attribute);\n      });\n    });\n  };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'applyStyles',\n  enabled: true,\n  phase: 'write',\n  fn: applyStyles,\n  effect: effect,\n  requires: ['computeStyles']\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n  return placement.split('-')[0];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n  var uaData = navigator.userAgentData;\n\n  if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n    return uaData.brands.map(function (item) {\n      return item.brand + \"/\" + item.version;\n    }).join(' ');\n  }\n\n  return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n  return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n  if (includeScale === void 0) {\n    includeScale = false;\n  }\n\n  if (isFixedStrategy === void 0) {\n    isFixedStrategy = false;\n  }\n\n  var clientRect = element.getBoundingClientRect();\n  var scaleX = 1;\n  var scaleY = 1;\n\n  if (includeScale && isHTMLElement(element)) {\n    scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n    scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n  }\n\n  var _ref = isElement(element) ? getWindow(element) : window,\n      visualViewport = _ref.visualViewport;\n\n  var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n  var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n  var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n  var width = clientRect.width / scaleX;\n  var height = clientRect.height / scaleY;\n  return {\n    width: width,\n    height: height,\n    top: y,\n    right: x + width,\n    bottom: y + height,\n    left: x,\n    x: x,\n    y: y\n  };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n  var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n  // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n  var width = element.offsetWidth;\n  var height = element.offsetHeight;\n\n  if (Math.abs(clientRect.width - width) <= 1) {\n    width = clientRect.width;\n  }\n\n  if (Math.abs(clientRect.height - height) <= 1) {\n    height = clientRect.height;\n  }\n\n  return {\n    x: element.offsetLeft,\n    y: element.offsetTop,\n    width: width,\n    height: height\n  };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n  var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n  if (parent.contains(child)) {\n    return true;\n  } // then fallback to custom implementation with Shadow DOM support\n  else if (rootNode && isShadowRoot(rootNode)) {\n      var next = child;\n\n      do {\n        if (next && parent.isSameNode(next)) {\n          return true;\n        } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n        next = next.parentNode || next.host;\n      } while (next);\n    } // Give up, the result is false\n\n\n  return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n  return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n  return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n  // $FlowFixMe[incompatible-return]: assume body is always available\n  return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n  element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n  if (getNodeName(element) === 'html') {\n    return element;\n  }\n\n  return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n    // $FlowFixMe[incompatible-return]\n    // $FlowFixMe[prop-missing]\n    element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n    element.parentNode || ( // DOM Element detected\n    isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n    // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n    getDocumentElement(element) // fallback\n\n  );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n  if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n  getComputedStyle(element).position === 'fixed') {\n    return null;\n  }\n\n  return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n  var isFirefox = /firefox/i.test(getUAString());\n  var isIE = /Trident/i.test(getUAString());\n\n  if (isIE && isHTMLElement(element)) {\n    // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n    var elementCss = getComputedStyle(element);\n\n    if (elementCss.position === 'fixed') {\n      return null;\n    }\n  }\n\n  var currentNode = getParentNode(element);\n\n  if (isShadowRoot(currentNode)) {\n    currentNode = currentNode.host;\n  }\n\n  while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n    var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n    // create a containing block.\n    // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n    if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n      return currentNode;\n    } else {\n      currentNode = currentNode.parentNode;\n    }\n  }\n\n  return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n  var window = getWindow(element);\n  var offsetParent = getTrueOffsetParent(element);\n\n  while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n    offsetParent = getTrueOffsetParent(offsetParent);\n  }\n\n  if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n    return window;\n  }\n\n  return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n  return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n  return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n  var v = within(min, value, max);\n  return v > max ? max : v;\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n  return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function getFreshSideObject() {\n  return {\n    top: 0,\n    right: 0,\n    bottom: 0,\n    left: 0\n  };\n}","export default function expandToHashMap(value, keys) {\n  return keys.reduce(function (hashMap, key) {\n    hashMap[key] = value;\n    return hashMap;\n  }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n  padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n    placement: state.placement\n  })) : padding;\n  return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n  var _state$modifiersData$;\n\n  var state = _ref.state,\n      name = _ref.name,\n      options = _ref.options;\n  var arrowElement = state.elements.arrow;\n  var popperOffsets = state.modifiersData.popperOffsets;\n  var basePlacement = getBasePlacement(state.placement);\n  var axis = getMainAxisFromPlacement(basePlacement);\n  var isVertical = [left, right].indexOf(basePlacement) >= 0;\n  var len = isVertical ? 'height' : 'width';\n\n  if (!arrowElement || !popperOffsets) {\n    return;\n  }\n\n  var paddingObject = toPaddingObject(options.padding, state);\n  var arrowRect = getLayoutRect(arrowElement);\n  var minProp = axis === 'y' ? top : left;\n  var maxProp = axis === 'y' ? bottom : right;\n  var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n  var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n  var arrowOffsetParent = getOffsetParent(arrowElement);\n  var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n  var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n  // outside of the popper bounds\n\n  var min = paddingObject[minProp];\n  var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n  var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n  var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n  var axisProp = axis;\n  state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n  var state = _ref2.state,\n      options = _ref2.options;\n  var _options$element = options.element,\n      arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n  if (arrowElement == null) {\n    return;\n  } // CSS selector\n\n\n  if (typeof arrowElement === 'string') {\n    arrowElement = state.elements.popper.querySelector(arrowElement);\n\n    if (!arrowElement) {\n      return;\n    }\n  }\n\n  if (!contains(state.elements.popper, arrowElement)) {\n    return;\n  }\n\n  state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'arrow',\n  enabled: true,\n  phase: 'main',\n  fn: arrow,\n  effect: effect,\n  requires: ['popperOffsets'],\n  requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n  return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n  top: 'auto',\n  right: 'auto',\n  bottom: 'auto',\n  left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n  var x = _ref.x,\n      y = _ref.y;\n  var dpr = win.devicePixelRatio || 1;\n  return {\n    x: round(x * dpr) / dpr || 0,\n    y: round(y * dpr) / dpr || 0\n  };\n}\n\nexport function mapToStyles(_ref2) {\n  var _Object$assign2;\n\n  var popper = _ref2.popper,\n      popperRect = _ref2.popperRect,\n      placement = _ref2.placement,\n      variation = _ref2.variation,\n      offsets = _ref2.offsets,\n      position = _ref2.position,\n      gpuAcceleration = _ref2.gpuAcceleration,\n      adaptive = _ref2.adaptive,\n      roundOffsets = _ref2.roundOffsets,\n      isFixed = _ref2.isFixed;\n  var _offsets$x = offsets.x,\n      x = _offsets$x === void 0 ? 0 : _offsets$x,\n      _offsets$y = offsets.y,\n      y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n  var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n    x: x,\n    y: y\n  }) : {\n    x: x,\n    y: y\n  };\n\n  x = _ref3.x;\n  y = _ref3.y;\n  var hasX = offsets.hasOwnProperty('x');\n  var hasY = offsets.hasOwnProperty('y');\n  var sideX = left;\n  var sideY = top;\n  var win = window;\n\n  if (adaptive) {\n    var offsetParent = getOffsetParent(popper);\n    var heightProp = 'clientHeight';\n    var widthProp = 'clientWidth';\n\n    if (offsetParent === getWindow(popper)) {\n      offsetParent = getDocumentElement(popper);\n\n      if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n        heightProp = 'scrollHeight';\n        widthProp = 'scrollWidth';\n      }\n    } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n    offsetParent = offsetParent;\n\n    if (placement === top || (placement === left || placement === right) && variation === end) {\n      sideY = bottom;\n      var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n      offsetParent[heightProp];\n      y -= offsetY - popperRect.height;\n      y *= gpuAcceleration ? 1 : -1;\n    }\n\n    if (placement === left || (placement === top || placement === bottom) && variation === end) {\n      sideX = right;\n      var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n      offsetParent[widthProp];\n      x -= offsetX - popperRect.width;\n      x *= gpuAcceleration ? 1 : -1;\n    }\n  }\n\n  var commonStyles = Object.assign({\n    position: position\n  }, adaptive && unsetSides);\n\n  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n    x: x,\n    y: y\n  }, getWindow(popper)) : {\n    x: x,\n    y: y\n  };\n\n  x = _ref4.x;\n  y = _ref4.y;\n\n  if (gpuAcceleration) {\n    var _Object$assign;\n\n    return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n  }\n\n  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n  var state = _ref5.state,\n      options = _ref5.options;\n  var _options$gpuAccelerat = options.gpuAcceleration,\n      gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n      _options$adaptive = options.adaptive,\n      adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n      _options$roundOffsets = options.roundOffsets,\n      roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n  var commonStyles = {\n    placement: getBasePlacement(state.placement),\n    variation: getVariation(state.placement),\n    popper: state.elements.popper,\n    popperRect: state.rects.popper,\n    gpuAcceleration: gpuAcceleration,\n    isFixed: state.options.strategy === 'fixed'\n  };\n\n  if (state.modifiersData.popperOffsets != null) {\n    state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n      offsets: state.modifiersData.popperOffsets,\n      position: state.options.strategy,\n      adaptive: adaptive,\n      roundOffsets: roundOffsets\n    })));\n  }\n\n  if (state.modifiersData.arrow != null) {\n    state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n      offsets: state.modifiersData.arrow,\n      position: 'absolute',\n      adaptive: false,\n      roundOffsets: roundOffsets\n    })));\n  }\n\n  state.attributes.popper = Object.assign({}, state.attributes.popper, {\n    'data-popper-placement': state.placement\n  });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'computeStyles',\n  enabled: true,\n  phase: 'beforeWrite',\n  fn: computeStyles,\n  data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n  passive: true\n};\n\nfunction effect(_ref) {\n  var state = _ref.state,\n      instance = _ref.instance,\n      options = _ref.options;\n  var _options$scroll = options.scroll,\n      scroll = _options$scroll === void 0 ? true : _options$scroll,\n      _options$resize = options.resize,\n      resize = _options$resize === void 0 ? true : _options$resize;\n  var window = getWindow(state.elements.popper);\n  var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n  if (scroll) {\n    scrollParents.forEach(function (scrollParent) {\n      scrollParent.addEventListener('scroll', instance.update, passive);\n    });\n  }\n\n  if (resize) {\n    window.addEventListener('resize', instance.update, passive);\n  }\n\n  return function () {\n    if (scroll) {\n      scrollParents.forEach(function (scrollParent) {\n        scrollParent.removeEventListener('scroll', instance.update, passive);\n      });\n    }\n\n    if (resize) {\n      window.removeEventListener('resize', instance.update, passive);\n    }\n  };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'eventListeners',\n  enabled: true,\n  phase: 'write',\n  fn: function fn() {},\n  effect: effect,\n  data: {}\n};","var hash = {\n  left: 'right',\n  right: 'left',\n  bottom: 'top',\n  top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n  return placement.replace(/left|right|bottom|top/g, function (matched) {\n    return hash[matched];\n  });\n}","var hash = {\n  start: 'end',\n  end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n  return placement.replace(/start|end/g, function (matched) {\n    return hash[matched];\n  });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n  var win = getWindow(node);\n  var scrollLeft = win.pageXOffset;\n  var scrollTop = win.pageYOffset;\n  return {\n    scrollLeft: scrollLeft,\n    scrollTop: scrollTop\n  };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n  // If <html> has a CSS width greater than the viewport, then this will be\n  // incorrect for RTL.\n  // Popper 1 is broken in this case and never had a bug report so let's assume\n  // it's not an issue. I don't think anyone ever specifies width on <html>\n  // anyway.\n  // Browsers where the left scrollbar doesn't cause an issue report `0` for\n  // this (e.g. Edge 2019, IE11, Safari)\n  return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n  // Firefox wants us to check `-x` and `-y` variations as well\n  var _getComputedStyle = getComputedStyle(element),\n      overflow = _getComputedStyle.overflow,\n      overflowX = _getComputedStyle.overflowX,\n      overflowY = _getComputedStyle.overflowY;\n\n  return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n  if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n    // $FlowFixMe[incompatible-return]: assume body is always available\n    return node.ownerDocument.body;\n  }\n\n  if (isHTMLElement(node) && isScrollParent(node)) {\n    return node;\n  }\n\n  return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n  var _element$ownerDocumen;\n\n  if (list === void 0) {\n    list = [];\n  }\n\n  var scrollParent = getScrollParent(element);\n  var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n  var win = getWindow(scrollParent);\n  var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n  var updatedList = list.concat(target);\n  return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n  updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n  return Object.assign({}, rect, {\n    left: rect.x,\n    top: rect.y,\n    right: rect.x + rect.width,\n    bottom: rect.y + rect.height\n  });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n  var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n  rect.top = rect.top + element.clientTop;\n  rect.left = rect.left + element.clientLeft;\n  rect.bottom = rect.top + element.clientHeight;\n  rect.right = rect.left + element.clientWidth;\n  rect.width = element.clientWidth;\n  rect.height = element.clientHeight;\n  rect.x = rect.left;\n  rect.y = rect.top;\n  return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n  return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n  var clippingParents = listScrollParents(getParentNode(element));\n  var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n  var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n  if (!isElement(clipperElement)) {\n    return [];\n  } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n  return clippingParents.filter(function (clippingParent) {\n    return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n  });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n  var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n  var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n  var firstClippingParent = clippingParents[0];\n  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n    var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n    accRect.top = max(rect.top, accRect.top);\n    accRect.right = min(rect.right, accRect.right);\n    accRect.bottom = min(rect.bottom, accRect.bottom);\n    accRect.left = max(rect.left, accRect.left);\n    return accRect;\n  }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n  clippingRect.width = clippingRect.right - clippingRect.left;\n  clippingRect.height = clippingRect.bottom - clippingRect.top;\n  clippingRect.x = clippingRect.left;\n  clippingRect.y = clippingRect.top;\n  return clippingRect;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n  var win = getWindow(element);\n  var html = getDocumentElement(element);\n  var visualViewport = win.visualViewport;\n  var width = html.clientWidth;\n  var height = html.clientHeight;\n  var x = 0;\n  var y = 0;\n\n  if (visualViewport) {\n    width = visualViewport.width;\n    height = visualViewport.height;\n    var layoutViewport = isLayoutViewport();\n\n    if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n      x = visualViewport.offsetLeft;\n      y = visualViewport.offsetTop;\n    }\n  }\n\n  return {\n    width: width,\n    height: height,\n    x: x + getWindowScrollBarX(element),\n    y: y\n  };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n  var _element$ownerDocumen;\n\n  var html = getDocumentElement(element);\n  var winScroll = getWindowScroll(element);\n  var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n  var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n  var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n  var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n  var y = -winScroll.scrollTop;\n\n  if (getComputedStyle(body || html).direction === 'rtl') {\n    x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n  }\n\n  return {\n    width: width,\n    height: height,\n    x: x,\n    y: y\n  };\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n  var reference = _ref.reference,\n      element = _ref.element,\n      placement = _ref.placement;\n  var basePlacement = placement ? getBasePlacement(placement) : null;\n  var variation = placement ? getVariation(placement) : null;\n  var commonX = reference.x + reference.width / 2 - element.width / 2;\n  var commonY = reference.y + reference.height / 2 - element.height / 2;\n  var offsets;\n\n  switch (basePlacement) {\n    case top:\n      offsets = {\n        x: commonX,\n        y: reference.y - element.height\n      };\n      break;\n\n    case bottom:\n      offsets = {\n        x: commonX,\n        y: reference.y + reference.height\n      };\n      break;\n\n    case right:\n      offsets = {\n        x: reference.x + reference.width,\n        y: commonY\n      };\n      break;\n\n    case left:\n      offsets = {\n        x: reference.x - element.width,\n        y: commonY\n      };\n      break;\n\n    default:\n      offsets = {\n        x: reference.x,\n        y: reference.y\n      };\n  }\n\n  var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n  if (mainAxis != null) {\n    var len = mainAxis === 'y' ? 'height' : 'width';\n\n    switch (variation) {\n      case start:\n        offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n        break;\n\n      case end:\n        offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n        break;\n\n      default:\n    }\n  }\n\n  return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n  if (options === void 0) {\n    options = {};\n  }\n\n  var _options = options,\n      _options$placement = _options.placement,\n      placement = _options$placement === void 0 ? state.placement : _options$placement,\n      _options$strategy = _options.strategy,\n      strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n      _options$boundary = _options.boundary,\n      boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n      _options$rootBoundary = _options.rootBoundary,\n      rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n      _options$elementConte = _options.elementContext,\n      elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n      _options$altBoundary = _options.altBoundary,\n      altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n      _options$padding = _options.padding,\n      padding = _options$padding === void 0 ? 0 : _options$padding;\n  var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n  var altContext = elementContext === popper ? reference : popper;\n  var popperRect = state.rects.popper;\n  var element = state.elements[altBoundary ? altContext : elementContext];\n  var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n  var referenceClientRect = getBoundingClientRect(state.elements.reference);\n  var popperOffsets = computeOffsets({\n    reference: referenceClientRect,\n    element: popperRect,\n    strategy: 'absolute',\n    placement: placement\n  });\n  var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n  var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n  // 0 or negative = within the clipping rect\n\n  var overflowOffsets = {\n    top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n    bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n    left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n    right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n  };\n  var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n  if (elementContext === popper && offsetData) {\n    var offset = offsetData[placement];\n    Object.keys(overflowOffsets).forEach(function (key) {\n      var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n      var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n      overflowOffsets[key] += offset[axis] * multiply;\n    });\n  }\n\n  return overflowOffsets;\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n  if (getBasePlacement(placement) === auto) {\n    return [];\n  }\n\n  var oppositePlacement = getOppositePlacement(placement);\n  return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n  var state = _ref.state,\n      options = _ref.options,\n      name = _ref.name;\n\n  if (state.modifiersData[name]._skip) {\n    return;\n  }\n\n  var _options$mainAxis = options.mainAxis,\n      checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n      _options$altAxis = options.altAxis,\n      checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n      specifiedFallbackPlacements = options.fallbackPlacements,\n      padding = options.padding,\n      boundary = options.boundary,\n      rootBoundary = options.rootBoundary,\n      altBoundary = options.altBoundary,\n      _options$flipVariatio = options.flipVariations,\n      flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n      allowedAutoPlacements = options.allowedAutoPlacements;\n  var preferredPlacement = state.options.placement;\n  var basePlacement = getBasePlacement(preferredPlacement);\n  var isBasePlacement = basePlacement === preferredPlacement;\n  var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n  var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n    return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n      placement: placement,\n      boundary: boundary,\n      rootBoundary: rootBoundary,\n      padding: padding,\n      flipVariations: flipVariations,\n      allowedAutoPlacements: allowedAutoPlacements\n    }) : placement);\n  }, []);\n  var referenceRect = state.rects.reference;\n  var popperRect = state.rects.popper;\n  var checksMap = new Map();\n  var makeFallbackChecks = true;\n  var firstFittingPlacement = placements[0];\n\n  for (var i = 0; i < placements.length; i++) {\n    var placement = placements[i];\n\n    var _basePlacement = getBasePlacement(placement);\n\n    var isStartVariation = getVariation(placement) === start;\n    var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n    var len = isVertical ? 'width' : 'height';\n    var overflow = detectOverflow(state, {\n      placement: placement,\n      boundary: boundary,\n      rootBoundary: rootBoundary,\n      altBoundary: altBoundary,\n      padding: padding\n    });\n    var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n    if (referenceRect[len] > popperRect[len]) {\n      mainVariationSide = getOppositePlacement(mainVariationSide);\n    }\n\n    var altVariationSide = getOppositePlacement(mainVariationSide);\n    var checks = [];\n\n    if (checkMainAxis) {\n      checks.push(overflow[_basePlacement] <= 0);\n    }\n\n    if (checkAltAxis) {\n      checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n    }\n\n    if (checks.every(function (check) {\n      return check;\n    })) {\n      firstFittingPlacement = placement;\n      makeFallbackChecks = false;\n      break;\n    }\n\n    checksMap.set(placement, checks);\n  }\n\n  if (makeFallbackChecks) {\n    // `2` may be desired in some cases – research later\n    var numberOfChecks = flipVariations ? 3 : 1;\n\n    var _loop = function _loop(_i) {\n      var fittingPlacement = placements.find(function (placement) {\n        var checks = checksMap.get(placement);\n\n        if (checks) {\n          return checks.slice(0, _i).every(function (check) {\n            return check;\n          });\n        }\n      });\n\n      if (fittingPlacement) {\n        firstFittingPlacement = fittingPlacement;\n        return \"break\";\n      }\n    };\n\n    for (var _i = numberOfChecks; _i > 0; _i--) {\n      var _ret = _loop(_i);\n\n      if (_ret === \"break\") break;\n    }\n  }\n\n  if (state.placement !== firstFittingPlacement) {\n    state.modifiersData[name]._skip = true;\n    state.placement = firstFittingPlacement;\n    state.reset = true;\n  }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'flip',\n  enabled: true,\n  phase: 'main',\n  fn: flip,\n  requiresIfExists: ['offset'],\n  data: {\n    _skip: false\n  }\n};","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n  if (options === void 0) {\n    options = {};\n  }\n\n  var _options = options,\n      placement = _options.placement,\n      boundary = _options.boundary,\n      rootBoundary = _options.rootBoundary,\n      padding = _options.padding,\n      flipVariations = _options.flipVariations,\n      _options$allowedAutoP = _options.allowedAutoPlacements,\n      allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n  var variation = getVariation(placement);\n  var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n    return getVariation(placement) === variation;\n  }) : basePlacements;\n  var allowedPlacements = placements.filter(function (placement) {\n    return allowedAutoPlacements.indexOf(placement) >= 0;\n  });\n\n  if (allowedPlacements.length === 0) {\n    allowedPlacements = placements;\n  } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n  var overflows = allowedPlacements.reduce(function (acc, placement) {\n    acc[placement] = detectOverflow(state, {\n      placement: placement,\n      boundary: boundary,\n      rootBoundary: rootBoundary,\n      padding: padding\n    })[getBasePlacement(placement)];\n    return acc;\n  }, {});\n  return Object.keys(overflows).sort(function (a, b) {\n    return overflows[a] - overflows[b];\n  });\n}","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n  if (preventedOffsets === void 0) {\n    preventedOffsets = {\n      x: 0,\n      y: 0\n    };\n  }\n\n  return {\n    top: overflow.top - rect.height - preventedOffsets.y,\n    right: overflow.right - rect.width + preventedOffsets.x,\n    bottom: overflow.bottom - rect.height + preventedOffsets.y,\n    left: overflow.left - rect.width - preventedOffsets.x\n  };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n  return [top, right, bottom, left].some(function (side) {\n    return overflow[side] >= 0;\n  });\n}\n\nfunction hide(_ref) {\n  var state = _ref.state,\n      name = _ref.name;\n  var referenceRect = state.rects.reference;\n  var popperRect = state.rects.popper;\n  var preventedOffsets = state.modifiersData.preventOverflow;\n  var referenceOverflow = detectOverflow(state, {\n    elementContext: 'reference'\n  });\n  var popperAltOverflow = detectOverflow(state, {\n    altBoundary: true\n  });\n  var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n  var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n  var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n  var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n  state.modifiersData[name] = {\n    referenceClippingOffsets: referenceClippingOffsets,\n    popperEscapeOffsets: popperEscapeOffsets,\n    isReferenceHidden: isReferenceHidden,\n    hasPopperEscaped: hasPopperEscaped\n  };\n  state.attributes.popper = Object.assign({}, state.attributes.popper, {\n    'data-popper-reference-hidden': isReferenceHidden,\n    'data-popper-escaped': hasPopperEscaped\n  });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'hide',\n  enabled: true,\n  phase: 'main',\n  requiresIfExists: ['preventOverflow'],\n  fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n  var basePlacement = getBasePlacement(placement);\n  var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n  var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n    placement: placement\n  })) : offset,\n      skidding = _ref[0],\n      distance = _ref[1];\n\n  skidding = skidding || 0;\n  distance = (distance || 0) * invertDistance;\n  return [left, right].indexOf(basePlacement) >= 0 ? {\n    x: distance,\n    y: skidding\n  } : {\n    x: skidding,\n    y: distance\n  };\n}\n\nfunction offset(_ref2) {\n  var state = _ref2.state,\n      options = _ref2.options,\n      name = _ref2.name;\n  var _options$offset = options.offset,\n      offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n  var data = placements.reduce(function (acc, placement) {\n    acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n    return acc;\n  }, {});\n  var _data$state$placement = data[state.placement],\n      x = _data$state$placement.x,\n      y = _data$state$placement.y;\n\n  if (state.modifiersData.popperOffsets != null) {\n    state.modifiersData.popperOffsets.x += x;\n    state.modifiersData.popperOffsets.y += y;\n  }\n\n  state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'offset',\n  enabled: true,\n  phase: 'main',\n  requires: ['popperOffsets'],\n  fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n  var state = _ref.state,\n      name = _ref.name;\n  // Offsets are the actual position the popper needs to have to be\n  // properly positioned near its reference element\n  // This is the most basic placement, and will be adjusted by\n  // the modifiers in the next step\n  state.modifiersData[name] = computeOffsets({\n    reference: state.rects.reference,\n    element: state.rects.popper,\n    strategy: 'absolute',\n    placement: state.placement\n  });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'popperOffsets',\n  enabled: true,\n  phase: 'read',\n  fn: popperOffsets,\n  data: {}\n};","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n  var state = _ref.state,\n      options = _ref.options,\n      name = _ref.name;\n  var _options$mainAxis = options.mainAxis,\n      checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n      _options$altAxis = options.altAxis,\n      checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n      boundary = options.boundary,\n      rootBoundary = options.rootBoundary,\n      altBoundary = options.altBoundary,\n      padding = options.padding,\n      _options$tether = options.tether,\n      tether = _options$tether === void 0 ? true : _options$tether,\n      _options$tetherOffset = options.tetherOffset,\n      tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n  var overflow = detectOverflow(state, {\n    boundary: boundary,\n    rootBoundary: rootBoundary,\n    padding: padding,\n    altBoundary: altBoundary\n  });\n  var basePlacement = getBasePlacement(state.placement);\n  var variation = getVariation(state.placement);\n  var isBasePlacement = !variation;\n  var mainAxis = getMainAxisFromPlacement(basePlacement);\n  var altAxis = getAltAxis(mainAxis);\n  var popperOffsets = state.modifiersData.popperOffsets;\n  var referenceRect = state.rects.reference;\n  var popperRect = state.rects.popper;\n  var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n    placement: state.placement\n  })) : tetherOffset;\n  var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n    mainAxis: tetherOffsetValue,\n    altAxis: tetherOffsetValue\n  } : Object.assign({\n    mainAxis: 0,\n    altAxis: 0\n  }, tetherOffsetValue);\n  var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n  var data = {\n    x: 0,\n    y: 0\n  };\n\n  if (!popperOffsets) {\n    return;\n  }\n\n  if (checkMainAxis) {\n    var _offsetModifierState$;\n\n    var mainSide = mainAxis === 'y' ? top : left;\n    var altSide = mainAxis === 'y' ? bottom : right;\n    var len = mainAxis === 'y' ? 'height' : 'width';\n    var offset = popperOffsets[mainAxis];\n    var min = offset + overflow[mainSide];\n    var max = offset - overflow[altSide];\n    var additive = tether ? -popperRect[len] / 2 : 0;\n    var minLen = variation === start ? referenceRect[len] : popperRect[len];\n    var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n    // outside the reference bounds\n\n    var arrowElement = state.elements.arrow;\n    var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n      width: 0,\n      height: 0\n    };\n    var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n    var arrowPaddingMin = arrowPaddingObject[mainSide];\n    var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n    // to include its full size in the calculation. If the reference is small\n    // and near the edge of a boundary, the popper can overflow even if the\n    // reference is not overflowing as well (e.g. virtual elements with no\n    // width or height)\n\n    var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n    var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n    var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n    var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n    var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n    var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n    var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n    var tetherMax = offset + maxOffset - offsetModifierValue;\n    var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n    popperOffsets[mainAxis] = preventedOffset;\n    data[mainAxis] = preventedOffset - offset;\n  }\n\n  if (checkAltAxis) {\n    var _offsetModifierState$2;\n\n    var _mainSide = mainAxis === 'x' ? top : left;\n\n    var _altSide = mainAxis === 'x' ? bottom : right;\n\n    var _offset = popperOffsets[altAxis];\n\n    var _len = altAxis === 'y' ? 'height' : 'width';\n\n    var _min = _offset + overflow[_mainSide];\n\n    var _max = _offset - overflow[_altSide];\n\n    var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n    var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n    var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n    var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n    var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n    popperOffsets[altAxis] = _preventedOffset;\n    data[altAxis] = _preventedOffset - _offset;\n  }\n\n  state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'preventOverflow',\n  enabled: true,\n  phase: 'main',\n  fn: preventOverflow,\n  requiresIfExists: ['offset']\n};","export default function getAltAxis(axis) {\n  return axis === 'x' ? 'y' : 'x';\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n  var rect = element.getBoundingClientRect();\n  var scaleX = round(rect.width) / element.offsetWidth || 1;\n  var scaleY = round(rect.height) / element.offsetHeight || 1;\n  return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n  if (isFixed === void 0) {\n    isFixed = false;\n  }\n\n  var isOffsetParentAnElement = isHTMLElement(offsetParent);\n  var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n  var documentElement = getDocumentElement(offsetParent);\n  var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n  var scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  var offsets = {\n    x: 0,\n    y: 0\n  };\n\n  if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n    if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n    isScrollParent(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n\n    if (isHTMLElement(offsetParent)) {\n      offsets = getBoundingClientRect(offsetParent, true);\n      offsets.x += offsetParent.clientLeft;\n      offsets.y += offsetParent.clientTop;\n    } else if (documentElement) {\n      offsets.x = getWindowScrollBarX(documentElement);\n    }\n  }\n\n  return {\n    x: rect.left + scroll.scrollLeft - offsets.x,\n    y: rect.top + scroll.scrollTop - offsets.y,\n    width: rect.width,\n    height: rect.height\n  };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n  if (node === getWindow(node) || !isHTMLElement(node)) {\n    return getWindowScroll(node);\n  } else {\n    return getHTMLElementScroll(node);\n  }\n}","export default function getHTMLElementScroll(element) {\n  return {\n    scrollLeft: element.scrollLeft,\n    scrollTop: element.scrollTop\n  };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n  var map = new Map();\n  var visited = new Set();\n  var result = [];\n  modifiers.forEach(function (modifier) {\n    map.set(modifier.name, modifier);\n  }); // On visiting object, check for its dependencies and visit them recursively\n\n  function sort(modifier) {\n    visited.add(modifier.name);\n    var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n    requires.forEach(function (dep) {\n      if (!visited.has(dep)) {\n        var depModifier = map.get(dep);\n\n        if (depModifier) {\n          sort(depModifier);\n        }\n      }\n    });\n    result.push(modifier);\n  }\n\n  modifiers.forEach(function (modifier) {\n    if (!visited.has(modifier.name)) {\n      // check for visited object\n      sort(modifier);\n    }\n  });\n  return result;\n}\n\nexport default function orderModifiers(modifiers) {\n  // order based on dependencies\n  var orderedModifiers = order(modifiers); // order based on phase\n\n  return modifierPhases.reduce(function (acc, phase) {\n    return acc.concat(orderedModifiers.filter(function (modifier) {\n      return modifier.phase === phase;\n    }));\n  }, []);\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n  placement: 'bottom',\n  modifiers: [],\n  strategy: 'absolute'\n};\n\nfunction areValidElements() {\n  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n    args[_key] = arguments[_key];\n  }\n\n  return !args.some(function (element) {\n    return !(element && typeof element.getBoundingClientRect === 'function');\n  });\n}\n\nexport function popperGenerator(generatorOptions) {\n  if (generatorOptions === void 0) {\n    generatorOptions = {};\n  }\n\n  var _generatorOptions = generatorOptions,\n      _generatorOptions$def = _generatorOptions.defaultModifiers,\n      defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n      _generatorOptions$def2 = _generatorOptions.defaultOptions,\n      defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n  return function createPopper(reference, popper, options) {\n    if (options === void 0) {\n      options = defaultOptions;\n    }\n\n    var state = {\n      placement: 'bottom',\n      orderedModifiers: [],\n      options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n      modifiersData: {},\n      elements: {\n        reference: reference,\n        popper: popper\n      },\n      attributes: {},\n      styles: {}\n    };\n    var effectCleanupFns = [];\n    var isDestroyed = false;\n    var instance = {\n      state: state,\n      setOptions: function setOptions(setOptionsAction) {\n        var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n        cleanupModifierEffects();\n        state.options = Object.assign({}, defaultOptions, state.options, options);\n        state.scrollParents = {\n          reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n          popper: listScrollParents(popper)\n        }; // Orders the modifiers based on their dependencies and `phase`\n        // properties\n\n        var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n        state.orderedModifiers = orderedModifiers.filter(function (m) {\n          return m.enabled;\n        });\n        runModifierEffects();\n        return instance.update();\n      },\n      // Sync update – it will always be executed, even if not necessary. This\n      // is useful for low frequency updates where sync behavior simplifies the\n      // logic.\n      // For high frequency updates (e.g. `resize` and `scroll` events), always\n      // prefer the async Popper#update method\n      forceUpdate: function forceUpdate() {\n        if (isDestroyed) {\n          return;\n        }\n\n        var _state$elements = state.elements,\n            reference = _state$elements.reference,\n            popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n        // anymore\n\n        if (!areValidElements(reference, popper)) {\n          return;\n        } // Store the reference and popper rects to be read by modifiers\n\n\n        state.rects = {\n          reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n          popper: getLayoutRect(popper)\n        }; // Modifiers have the ability to reset the current update cycle. The\n        // most common use case for this is the `flip` modifier changing the\n        // placement, which then needs to re-run all the modifiers, because the\n        // logic was previously ran for the previous placement and is therefore\n        // stale/incorrect\n\n        state.reset = false;\n        state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n        // is filled with the initial data specified by the modifier. This means\n        // it doesn't persist and is fresh on each update.\n        // To ensure persistent data, use `${name}#persistent`\n\n        state.orderedModifiers.forEach(function (modifier) {\n          return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n        });\n\n        for (var index = 0; index < state.orderedModifiers.length; index++) {\n          if (state.reset === true) {\n            state.reset = false;\n            index = -1;\n            continue;\n          }\n\n          var _state$orderedModifie = state.orderedModifiers[index],\n              fn = _state$orderedModifie.fn,\n              _state$orderedModifie2 = _state$orderedModifie.options,\n              _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n              name = _state$orderedModifie.name;\n\n          if (typeof fn === 'function') {\n            state = fn({\n              state: state,\n              options: _options,\n              name: name,\n              instance: instance\n            }) || state;\n          }\n        }\n      },\n      // Async and optimistically optimized update – it will not be executed if\n      // not necessary (debounced to run at most once-per-tick)\n      update: debounce(function () {\n        return new Promise(function (resolve) {\n          instance.forceUpdate();\n          resolve(state);\n        });\n      }),\n      destroy: function destroy() {\n        cleanupModifierEffects();\n        isDestroyed = true;\n      }\n    };\n\n    if (!areValidElements(reference, popper)) {\n      return instance;\n    }\n\n    instance.setOptions(options).then(function (state) {\n      if (!isDestroyed && options.onFirstUpdate) {\n        options.onFirstUpdate(state);\n      }\n    }); // Modifiers have the ability to execute arbitrary code before the first\n    // update cycle runs. They will be executed in the same order as the update\n    // cycle. This is useful when a modifier adds some persistent data that\n    // other modifiers need to use, but the modifier is run after the dependent\n    // one.\n\n    function runModifierEffects() {\n      state.orderedModifiers.forEach(function (_ref) {\n        var name = _ref.name,\n            _ref$options = _ref.options,\n            options = _ref$options === void 0 ? {} : _ref$options,\n            effect = _ref.effect;\n\n        if (typeof effect === 'function') {\n          var cleanupFn = effect({\n            state: state,\n            name: name,\n            instance: instance,\n            options: options\n          });\n\n          var noopFn = function noopFn() {};\n\n          effectCleanupFns.push(cleanupFn || noopFn);\n        }\n      });\n    }\n\n    function cleanupModifierEffects() {\n      effectCleanupFns.forEach(function (fn) {\n        return fn();\n      });\n      effectCleanupFns = [];\n    }\n\n    return instance;\n  };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","export default function debounce(fn) {\n  var pending;\n  return function () {\n    if (!pending) {\n      pending = new Promise(function (resolve) {\n        Promise.resolve().then(function () {\n          pending = undefined;\n          resolve(fn());\n        });\n      });\n    }\n\n    return pending;\n  };\n}","export default function mergeByName(modifiers) {\n  var merged = modifiers.reduce(function (merged, current) {\n    var existing = merged[current.name];\n    merged[current.name] = existing ? Object.assign({}, existing, current, {\n      options: Object.assign({}, existing.options, current.options),\n      data: Object.assign({}, existing.data, current.data)\n    }) : current;\n    return merged;\n  }, {}); // IE11 does not support Object.values\n\n  return Object.keys(merged).map(function (key) {\n    return merged[key];\n  });\n}","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n  defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles];\nvar createPopper = /*#__PURE__*/popperGenerator({\n  defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow };","/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * Constants\n */\n\nconst elementMap = new Map()\n\nexport default {\n  set(element, key, instance) {\n    if (!elementMap.has(element)) {\n      elementMap.set(element, new Map())\n    }\n\n    const instanceMap = elementMap.get(element)\n\n    // make it clear we only want one instance per element\n    // can be removed later when multiple key/instances are fine to be used\n    if (!instanceMap.has(key) && instanceMap.size !== 0) {\n      // eslint-disable-next-line no-console\n      console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`)\n      return\n    }\n\n    instanceMap.set(key, instance)\n  },\n\n  get(element, key) {\n    if (elementMap.has(element)) {\n      return elementMap.get(element).get(key) || null\n    }\n\n    return null\n  },\n\n  remove(element, key) {\n    if (!elementMap.has(element)) {\n      return\n    }\n\n    const instanceMap = elementMap.get(element)\n\n    instanceMap.delete(key)\n\n    // free up element references if there are no instances left for an element\n    if (instanceMap.size === 0) {\n      elementMap.delete(element)\n    }\n  }\n}\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/index.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst MAX_UID = 1_000_000\nconst MILLISECONDS_MULTIPLIER = 1000\nconst TRANSITION_END = 'transitionend'\n\n/**\n * Properly escape IDs selectors to handle weird IDs\n * @param {string} selector\n * @returns {string}\n */\nconst parseSelector = selector => {\n  if (selector && window.CSS && window.CSS.escape) {\n    // document.querySelector needs escaping to handle IDs (html5+) containing for instance /\n    selector = selector.replace(/#([^\\s\"#']+)/g, (match, id) => `#${CSS.escape(id)}`)\n  }\n\n  return selector\n}\n\n// Shout-out Angus Croll (https://goo.gl/pxwQGp)\nconst toType = object => {\n  if (object === null || object === undefined) {\n    return `${object}`\n  }\n\n  return Object.prototype.toString.call(object).match(/\\s([a-z]+)/i)[1].toLowerCase()\n}\n\n/**\n * Public Util API\n */\n\nconst getUID = prefix => {\n  do {\n    prefix += Math.floor(Math.random() * MAX_UID)\n  } while (document.getElementById(prefix))\n\n  return prefix\n}\n\nconst getTransitionDurationFromElement = element => {\n  if (!element) {\n    return 0\n  }\n\n  // Get transition-duration of the element\n  let { transitionDuration, transitionDelay } = window.getComputedStyle(element)\n\n  const floatTransitionDuration = Number.parseFloat(transitionDuration)\n  const floatTransitionDelay = Number.parseFloat(transitionDelay)\n\n  // Return 0 if element or transition duration is not found\n  if (!floatTransitionDuration && !floatTransitionDelay) {\n    return 0\n  }\n\n  // If multiple durations are defined, take the first\n  transitionDuration = transitionDuration.split(',')[0]\n  transitionDelay = transitionDelay.split(',')[0]\n\n  return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER\n}\n\nconst triggerTransitionEnd = element => {\n  element.dispatchEvent(new Event(TRANSITION_END))\n}\n\nconst isElement = object => {\n  if (!object || typeof object !== 'object') {\n    return false\n  }\n\n  if (typeof object.jquery !== 'undefined') {\n    object = object[0]\n  }\n\n  return typeof object.nodeType !== 'undefined'\n}\n\nconst getElement = object => {\n  // it's a jQuery object or a node element\n  if (isElement(object)) {\n    return object.jquery ? object[0] : object\n  }\n\n  if (typeof object === 'string' && object.length > 0) {\n    return document.querySelector(parseSelector(object))\n  }\n\n  return null\n}\n\nconst isVisible = element => {\n  if (!isElement(element) || element.getClientRects().length === 0) {\n    return false\n  }\n\n  const elementIsVisible = getComputedStyle(element).getPropertyValue('visibility') === 'visible'\n  // Handle `details` element as its content may falsie appear visible when it is closed\n  const closedDetails = element.closest('details:not([open])')\n\n  if (!closedDetails) {\n    return elementIsVisible\n  }\n\n  if (closedDetails !== element) {\n    const summary = element.closest('summary')\n    if (summary && summary.parentNode !== closedDetails) {\n      return false\n    }\n\n    if (summary === null) {\n      return false\n    }\n  }\n\n  return elementIsVisible\n}\n\nconst isDisabled = element => {\n  if (!element || element.nodeType !== Node.ELEMENT_NODE) {\n    return true\n  }\n\n  if (element.classList.contains('disabled')) {\n    return true\n  }\n\n  if (typeof element.disabled !== 'undefined') {\n    return element.disabled\n  }\n\n  return element.hasAttribute('disabled') && element.getAttribute('disabled') !== 'false'\n}\n\nconst findShadowRoot = element => {\n  if (!document.documentElement.attachShadow) {\n    return null\n  }\n\n  // Can find the shadow root otherwise it'll return the document\n  if (typeof element.getRootNode === 'function') {\n    const root = element.getRootNode()\n    return root instanceof ShadowRoot ? root : null\n  }\n\n  if (element instanceof ShadowRoot) {\n    return element\n  }\n\n  // when we don't find a shadow root\n  if (!element.parentNode) {\n    return null\n  }\n\n  return findShadowRoot(element.parentNode)\n}\n\nconst noop = () => {}\n\n/**\n * Trick to restart an element's animation\n *\n * @param {HTMLElement} element\n * @return void\n *\n * @see https://www.harrytheo.com/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation\n */\nconst reflow = element => {\n  element.offsetHeight // eslint-disable-line no-unused-expressions\n}\n\nconst getjQuery = () => {\n  if (window.jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {\n    return window.jQuery\n  }\n\n  return null\n}\n\nconst DOMContentLoadedCallbacks = []\n\nconst onDOMContentLoaded = callback => {\n  if (document.readyState === 'loading') {\n    // add listener on the first call when the document is in loading state\n    if (!DOMContentLoadedCallbacks.length) {\n      document.addEventListener('DOMContentLoaded', () => {\n        for (const callback of DOMContentLoadedCallbacks) {\n          callback()\n        }\n      })\n    }\n\n    DOMContentLoadedCallbacks.push(callback)\n  } else {\n    callback()\n  }\n}\n\nconst isRTL = () => document.documentElement.dir === 'rtl'\n\nconst defineJQueryPlugin = plugin => {\n  onDOMContentLoaded(() => {\n    const $ = getjQuery()\n    /* istanbul ignore if */\n    if ($) {\n      const name = plugin.NAME\n      const JQUERY_NO_CONFLICT = $.fn[name]\n      $.fn[name] = plugin.jQueryInterface\n      $.fn[name].Constructor = plugin\n      $.fn[name].noConflict = () => {\n        $.fn[name] = JQUERY_NO_CONFLICT\n        return plugin.jQueryInterface\n      }\n    }\n  })\n}\n\nconst execute = (possibleCallback, args = [], defaultValue = possibleCallback) => {\n  return typeof possibleCallback === 'function' ? possibleCallback.call(...args) : defaultValue\n}\n\nconst executeAfterTransition = (callback, transitionElement, waitForTransition = true) => {\n  if (!waitForTransition) {\n    execute(callback)\n    return\n  }\n\n  const durationPadding = 5\n  const emulatedDuration = getTransitionDurationFromElement(transitionElement) + durationPadding\n\n  let called = false\n\n  const handler = ({ target }) => {\n    if (target !== transitionElement) {\n      return\n    }\n\n    called = true\n    transitionElement.removeEventListener(TRANSITION_END, handler)\n    execute(callback)\n  }\n\n  transitionElement.addEventListener(TRANSITION_END, handler)\n  setTimeout(() => {\n    if (!called) {\n      triggerTransitionEnd(transitionElement)\n    }\n  }, emulatedDuration)\n}\n\n/**\n * Return the previous/next element of a list.\n *\n * @param {array} list    The list of elements\n * @param activeElement   The active element\n * @param shouldGetNext   Choose to get next or previous element\n * @param isCycleAllowed\n * @return {Element|elem} The proper element\n */\nconst getNextActiveElement = (list, activeElement, shouldGetNext, isCycleAllowed) => {\n  const listLength = list.length\n  let index = list.indexOf(activeElement)\n\n  // if the element does not exist in the list return an element\n  // depending on the direction and if cycle is allowed\n  if (index === -1) {\n    return !shouldGetNext && isCycleAllowed ? list[listLength - 1] : list[0]\n  }\n\n  index += shouldGetNext ? 1 : -1\n\n  if (isCycleAllowed) {\n    index = (index + listLength) % listLength\n  }\n\n  return list[Math.max(0, Math.min(index, listLength - 1))]\n}\n\nexport {\n  defineJQueryPlugin,\n  execute,\n  executeAfterTransition,\n  findShadowRoot,\n  getElement,\n  getjQuery,\n  getNextActiveElement,\n  getTransitionDurationFromElement,\n  getUID,\n  isDisabled,\n  isElement,\n  isRTL,\n  isVisible,\n  noop,\n  onDOMContentLoaded,\n  parseSelector,\n  reflow,\n  triggerTransitionEnd,\n  toType\n}\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/event-handler.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport { getjQuery } from '../util/index.js'\n\n/**\n * Constants\n */\n\nconst namespaceRegex = /[^.]*(?=\\..*)\\.|.*/\nconst stripNameRegex = /\\..*/\nconst stripUidRegex = /::\\d+$/\nconst eventRegistry = {} // Events storage\nlet uidEvent = 1\nconst customEvents = {\n  mouseenter: 'mouseover',\n  mouseleave: 'mouseout'\n}\n\nconst nativeEvents = new Set([\n  'click',\n  'dblclick',\n  'mouseup',\n  'mousedown',\n  'contextmenu',\n  'mousewheel',\n  'DOMMouseScroll',\n  'mouseover',\n  'mouseout',\n  'mousemove',\n  'selectstart',\n  'selectend',\n  'keydown',\n  'keypress',\n  'keyup',\n  'orientationchange',\n  'touchstart',\n  'touchmove',\n  'touchend',\n  'touchcancel',\n  'pointerdown',\n  'pointermove',\n  'pointerup',\n  'pointerleave',\n  'pointercancel',\n  'gesturestart',\n  'gesturechange',\n  'gestureend',\n  'focus',\n  'blur',\n  'change',\n  'reset',\n  'select',\n  'submit',\n  'focusin',\n  'focusout',\n  'load',\n  'unload',\n  'beforeunload',\n  'resize',\n  'move',\n  'DOMContentLoaded',\n  'readystatechange',\n  'error',\n  'abort',\n  'scroll'\n])\n\n/**\n * Private methods\n */\n\nfunction makeEventUid(element, uid) {\n  return (uid && `${uid}::${uidEvent++}`) || element.uidEvent || uidEvent++\n}\n\nfunction getElementEvents(element) {\n  const uid = makeEventUid(element)\n\n  element.uidEvent = uid\n  eventRegistry[uid] = eventRegistry[uid] || {}\n\n  return eventRegistry[uid]\n}\n\nfunction bootstrapHandler(element, fn) {\n  return function handler(event) {\n    hydrateObj(event, { delegateTarget: element })\n\n    if (handler.oneOff) {\n      EventHandler.off(element, event.type, fn)\n    }\n\n    return fn.apply(element, [event])\n  }\n}\n\nfunction bootstrapDelegationHandler(element, selector, fn) {\n  return function handler(event) {\n    const domElements = element.querySelectorAll(selector)\n\n    for (let { target } = event; target && target !== this; target = target.parentNode) {\n      for (const domElement of domElements) {\n        if (domElement !== target) {\n          continue\n        }\n\n        hydrateObj(event, { delegateTarget: target })\n\n        if (handler.oneOff) {\n          EventHandler.off(element, event.type, selector, fn)\n        }\n\n        return fn.apply(target, [event])\n      }\n    }\n  }\n}\n\nfunction findHandler(events, callable, delegationSelector = null) {\n  return Object.values(events)\n    .find(event => event.callable === callable && event.delegationSelector === delegationSelector)\n}\n\nfunction normalizeParameters(originalTypeEvent, handler, delegationFunction) {\n  const isDelegated = typeof handler === 'string'\n  // TODO: tooltip passes `false` instead of selector, so we need to check\n  const callable = isDelegated ? delegationFunction : (handler || delegationFunction)\n  let typeEvent = getTypeEvent(originalTypeEvent)\n\n  if (!nativeEvents.has(typeEvent)) {\n    typeEvent = originalTypeEvent\n  }\n\n  return [isDelegated, callable, typeEvent]\n}\n\nfunction addHandler(element, originalTypeEvent, handler, delegationFunction, oneOff) {\n  if (typeof originalTypeEvent !== 'string' || !element) {\n    return\n  }\n\n  let [isDelegated, callable, typeEvent] = normalizeParameters(originalTypeEvent, handler, delegationFunction)\n\n  // in case of mouseenter or mouseleave wrap the handler within a function that checks for its DOM position\n  // this prevents the handler from being dispatched the same way as mouseover or mouseout does\n  if (originalTypeEvent in customEvents) {\n    const wrapFunction = fn => {\n      return function (event) {\n        if (!event.relatedTarget || (event.relatedTarget !== event.delegateTarget && !event.delegateTarget.contains(event.relatedTarget))) {\n          return fn.call(this, event)\n        }\n      }\n    }\n\n    callable = wrapFunction(callable)\n  }\n\n  const events = getElementEvents(element)\n  const handlers = events[typeEvent] || (events[typeEvent] = {})\n  const previousFunction = findHandler(handlers, callable, isDelegated ? handler : null)\n\n  if (previousFunction) {\n    previousFunction.oneOff = previousFunction.oneOff && oneOff\n\n    return\n  }\n\n  const uid = makeEventUid(callable, originalTypeEvent.replace(namespaceRegex, ''))\n  const fn = isDelegated ?\n    bootstrapDelegationHandler(element, handler, callable) :\n    bootstrapHandler(element, callable)\n\n  fn.delegationSelector = isDelegated ? handler : null\n  fn.callable = callable\n  fn.oneOff = oneOff\n  fn.uidEvent = uid\n  handlers[uid] = fn\n\n  element.addEventListener(typeEvent, fn, isDelegated)\n}\n\nfunction removeHandler(element, events, typeEvent, handler, delegationSelector) {\n  const fn = findHandler(events[typeEvent], handler, delegationSelector)\n\n  if (!fn) {\n    return\n  }\n\n  element.removeEventListener(typeEvent, fn, Boolean(delegationSelector))\n  delete events[typeEvent][fn.uidEvent]\n}\n\nfunction removeNamespacedHandlers(element, events, typeEvent, namespace) {\n  const storeElementEvent = events[typeEvent] || {}\n\n  for (const [handlerKey, event] of Object.entries(storeElementEvent)) {\n    if (handlerKey.includes(namespace)) {\n      removeHandler(element, events, typeEvent, event.callable, event.delegationSelector)\n    }\n  }\n}\n\nfunction getTypeEvent(event) {\n  // allow to get the native events from namespaced events ('click.bs.button' --> 'click')\n  event = event.replace(stripNameRegex, '')\n  return customEvents[event] || event\n}\n\nconst EventHandler = {\n  on(element, event, handler, delegationFunction) {\n    addHandler(element, event, handler, delegationFunction, false)\n  },\n\n  one(element, event, handler, delegationFunction) {\n    addHandler(element, event, handler, delegationFunction, true)\n  },\n\n  off(element, originalTypeEvent, handler, delegationFunction) {\n    if (typeof originalTypeEvent !== 'string' || !element) {\n      return\n    }\n\n    const [isDelegated, callable, typeEvent] = normalizeParameters(originalTypeEvent, handler, delegationFunction)\n    const inNamespace = typeEvent !== originalTypeEvent\n    const events = getElementEvents(element)\n    const storeElementEvent = events[typeEvent] || {}\n    const isNamespace = originalTypeEvent.startsWith('.')\n\n    if (typeof callable !== 'undefined') {\n      // Simplest case: handler is passed, remove that listener ONLY.\n      if (!Object.keys(storeElementEvent).length) {\n        return\n      }\n\n      removeHandler(element, events, typeEvent, callable, isDelegated ? handler : null)\n      return\n    }\n\n    if (isNamespace) {\n      for (const elementEvent of Object.keys(events)) {\n        removeNamespacedHandlers(element, events, elementEvent, originalTypeEvent.slice(1))\n      }\n    }\n\n    for (const [keyHandlers, event] of Object.entries(storeElementEvent)) {\n      const handlerKey = keyHandlers.replace(stripUidRegex, '')\n\n      if (!inNamespace || originalTypeEvent.includes(handlerKey)) {\n        removeHandler(element, events, typeEvent, event.callable, event.delegationSelector)\n      }\n    }\n  },\n\n  trigger(element, event, args) {\n    if (typeof event !== 'string' || !element) {\n      return null\n    }\n\n    const $ = getjQuery()\n    const typeEvent = getTypeEvent(event)\n    const inNamespace = event !== typeEvent\n\n    let jQueryEvent = null\n    let bubbles = true\n    let nativeDispatch = true\n    let defaultPrevented = false\n\n    if (inNamespace && $) {\n      jQueryEvent = $.Event(event, args)\n\n      $(element).trigger(jQueryEvent)\n      bubbles = !jQueryEvent.isPropagationStopped()\n      nativeDispatch = !jQueryEvent.isImmediatePropagationStopped()\n      defaultPrevented = jQueryEvent.isDefaultPrevented()\n    }\n\n    const evt = hydrateObj(new Event(event, { bubbles, cancelable: true }), args)\n\n    if (defaultPrevented) {\n      evt.preventDefault()\n    }\n\n    if (nativeDispatch) {\n      element.dispatchEvent(evt)\n    }\n\n    if (evt.defaultPrevented && jQueryEvent) {\n      jQueryEvent.preventDefault()\n    }\n\n    return evt\n  }\n}\n\nfunction hydrateObj(obj, meta = {}) {\n  for (const [key, value] of Object.entries(meta)) {\n    try {\n      obj[key] = value\n    } catch {\n      Object.defineProperty(obj, key, {\n        configurable: true,\n        get() {\n          return value\n        }\n      })\n    }\n  }\n\n  return obj\n}\n\nexport default EventHandler\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/manipulator.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nfunction normalizeData(value) {\n  if (value === 'true') {\n    return true\n  }\n\n  if (value === 'false') {\n    return false\n  }\n\n  if (value === Number(value).toString()) {\n    return Number(value)\n  }\n\n  if (value === '' || value === 'null') {\n    return null\n  }\n\n  if (typeof value !== 'string') {\n    return value\n  }\n\n  try {\n    return JSON.parse(decodeURIComponent(value))\n  } catch {\n    return value\n  }\n}\n\nfunction normalizeDataKey(key) {\n  return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`)\n}\n\nconst Manipulator = {\n  setDataAttribute(element, key, value) {\n    element.setAttribute(`data-bs-${normalizeDataKey(key)}`, value)\n  },\n\n  removeDataAttribute(element, key) {\n    element.removeAttribute(`data-bs-${normalizeDataKey(key)}`)\n  },\n\n  getDataAttributes(element) {\n    if (!element) {\n      return {}\n    }\n\n    const attributes = {}\n    const bsKeys = Object.keys(element.dataset).filter(key => key.startsWith('bs') && !key.startsWith('bsConfig'))\n\n    for (const key of bsKeys) {\n      let pureKey = key.replace(/^bs/, '')\n      pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1)\n      attributes[pureKey] = normalizeData(element.dataset[key])\n    }\n\n    return attributes\n  },\n\n  getDataAttribute(element, key) {\n    return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`))\n  }\n}\n\nexport default Manipulator\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/config.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Manipulator from '../dom/manipulator.js'\nimport { isElement, toType } from './index.js'\n\n/**\n * Class definition\n */\n\nclass Config {\n  // Getters\n  static get Default() {\n    return {}\n  }\n\n  static get DefaultType() {\n    return {}\n  }\n\n  static get NAME() {\n    throw new Error('You have to implement the static method \"NAME\", for each component!')\n  }\n\n  _getConfig(config) {\n    config = this._mergeConfigObj(config)\n    config = this._configAfterMerge(config)\n    this._typeCheckConfig(config)\n    return config\n  }\n\n  _configAfterMerge(config) {\n    return config\n  }\n\n  _mergeConfigObj(config, element) {\n    const jsonConfig = isElement(element) ? Manipulator.getDataAttribute(element, 'config') : {} // try to parse\n\n    return {\n      ...this.constructor.Default,\n      ...(typeof jsonConfig === 'object' ? jsonConfig : {}),\n      ...(isElement(element) ? Manipulator.getDataAttributes(element) : {}),\n      ...(typeof config === 'object' ? config : {})\n    }\n  }\n\n  _typeCheckConfig(config, configTypes = this.constructor.DefaultType) {\n    for (const [property, expectedTypes] of Object.entries(configTypes)) {\n      const value = config[property]\n      const valueType = isElement(value) ? 'element' : toType(value)\n\n      if (!new RegExp(expectedTypes).test(valueType)) {\n        throw new TypeError(\n          `${this.constructor.NAME.toUpperCase()}: Option \"${property}\" provided type \"${valueType}\" but expected type \"${expectedTypes}\".`\n        )\n      }\n    }\n  }\n}\n\nexport default Config\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap base-component.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Data from './dom/data.js'\nimport EventHandler from './dom/event-handler.js'\nimport Config from './util/config.js'\nimport { executeAfterTransition, getElement } from './util/index.js'\n\n/**\n * Constants\n */\n\nconst VERSION = '5.3.8'\n\n/**\n * Class definition\n */\n\nclass BaseComponent extends Config {\n  constructor(element, config) {\n    super()\n\n    element = getElement(element)\n    if (!element) {\n      return\n    }\n\n    this._element = element\n    this._config = this._getConfig(config)\n\n    Data.set(this._element, this.constructor.DATA_KEY, this)\n  }\n\n  // Public\n  dispose() {\n    Data.remove(this._element, this.constructor.DATA_KEY)\n    EventHandler.off(this._element, this.constructor.EVENT_KEY)\n\n    for (const propertyName of Object.getOwnPropertyNames(this)) {\n      this[propertyName] = null\n    }\n  }\n\n  // Private\n  _queueCallback(callback, element, isAnimated = true) {\n    executeAfterTransition(callback, element, isAnimated)\n  }\n\n  _getConfig(config) {\n    config = this._mergeConfigObj(config, this._element)\n    config = this._configAfterMerge(config)\n    this._typeCheckConfig(config)\n    return config\n  }\n\n  // Static\n  static getInstance(element) {\n    return Data.get(getElement(element), this.DATA_KEY)\n  }\n\n  static getOrCreateInstance(element, config = {}) {\n    return this.getInstance(element) || new this(element, typeof config === 'object' ? config : null)\n  }\n\n  static get VERSION() {\n    return VERSION\n  }\n\n  static get DATA_KEY() {\n    return `bs.${this.NAME}`\n  }\n\n  static get EVENT_KEY() {\n    return `.${this.DATA_KEY}`\n  }\n\n  static eventName(name) {\n    return `${name}${this.EVENT_KEY}`\n  }\n}\n\nexport default BaseComponent\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/selector-engine.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport { isDisabled, isVisible, parseSelector } from '../util/index.js'\n\nconst getSelector = element => {\n  let selector = element.getAttribute('data-bs-target')\n\n  if (!selector || selector === '#') {\n    let hrefAttribute = element.getAttribute('href')\n\n    // The only valid content that could double as a selector are IDs or classes,\n    // so everything starting with `#` or `.`. If a \"real\" URL is used as the selector,\n    // `document.querySelector` will rightfully complain it is invalid.\n    // See https://github.com/twbs/bootstrap/issues/32273\n    if (!hrefAttribute || (!hrefAttribute.includes('#') && !hrefAttribute.startsWith('.'))) {\n      return null\n    }\n\n    // Just in case some CMS puts out a full URL with the anchor appended\n    if (hrefAttribute.includes('#') && !hrefAttribute.startsWith('#')) {\n      hrefAttribute = `#${hrefAttribute.split('#')[1]}`\n    }\n\n    selector = hrefAttribute && hrefAttribute !== '#' ? hrefAttribute.trim() : null\n  }\n\n  return selector ? selector.split(',').map(sel => parseSelector(sel)).join(',') : null\n}\n\nconst SelectorEngine = {\n  find(selector, element = document.documentElement) {\n    return [].concat(...Element.prototype.querySelectorAll.call(element, selector))\n  },\n\n  findOne(selector, element = document.documentElement) {\n    return Element.prototype.querySelector.call(element, selector)\n  },\n\n  children(element, selector) {\n    return [].concat(...element.children).filter(child => child.matches(selector))\n  },\n\n  parents(element, selector) {\n    const parents = []\n    let ancestor = element.parentNode.closest(selector)\n\n    while (ancestor) {\n      parents.push(ancestor)\n      ancestor = ancestor.parentNode.closest(selector)\n    }\n\n    return parents\n  },\n\n  prev(element, selector) {\n    let previous = element.previousElementSibling\n\n    while (previous) {\n      if (previous.matches(selector)) {\n        return [previous]\n      }\n\n      previous = previous.previousElementSibling\n    }\n\n    return []\n  },\n  // TODO: this is now unused; remove later along with prev()\n  next(element, selector) {\n    let next = element.nextElementSibling\n\n    while (next) {\n      if (next.matches(selector)) {\n        return [next]\n      }\n\n      next = next.nextElementSibling\n    }\n\n    return []\n  },\n\n  focusableChildren(element) {\n    const focusables = [\n      'a',\n      'button',\n      'input',\n      'textarea',\n      'select',\n      'details',\n      '[tabindex]',\n      '[contenteditable=\"true\"]'\n    ].map(selector => `${selector}:not([tabindex^=\"-\"])`).join(',')\n\n    return this.find(focusables, element).filter(el => !isDisabled(el) && isVisible(el))\n  },\n\n  getSelectorFromElement(element) {\n    const selector = getSelector(element)\n\n    if (selector) {\n      return SelectorEngine.findOne(selector) ? selector : null\n    }\n\n    return null\n  },\n\n  getElementFromSelector(element) {\n    const selector = getSelector(element)\n\n    return selector ? SelectorEngine.findOne(selector) : null\n  },\n\n  getMultipleElementsFromSelector(element) {\n    const selector = getSelector(element)\n\n    return selector ? SelectorEngine.find(selector) : []\n  }\n}\n\nexport default SelectorEngine\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/component-functions.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport EventHandler from '../dom/event-handler.js'\nimport SelectorEngine from '../dom/selector-engine.js'\nimport { isDisabled } from './index.js'\n\nconst enableDismissTrigger = (component, method = 'hide') => {\n  const clickEvent = `click.dismiss${component.EVENT_KEY}`\n  const name = component.NAME\n\n  EventHandler.on(document, clickEvent, `[data-bs-dismiss=\"${name}\"]`, function (event) {\n    if (['A', 'AREA'].includes(this.tagName)) {\n      event.preventDefault()\n    }\n\n    if (isDisabled(this)) {\n      return\n    }\n\n    const target = SelectorEngine.getElementFromSelector(this) || this.closest(`.${name}`)\n    const instance = component.getOrCreateInstance(target)\n\n    // Method argument is left, for Alert and only, as it doesn't implement the 'hide' method\n    instance[method]()\n  })\n}\n\nexport {\n  enableDismissTrigger\n}\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap alert.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js'\nimport EventHandler from './dom/event-handler.js'\nimport { enableDismissTrigger } from './util/component-functions.js'\nimport { defineJQueryPlugin } from './util/index.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'alert'\nconst DATA_KEY = 'bs.alert'\nconst EVENT_KEY = `.${DATA_KEY}`\n\nconst EVENT_CLOSE = `close${EVENT_KEY}`\nconst EVENT_CLOSED = `closed${EVENT_KEY}`\nconst CLASS_NAME_FADE = 'fade'\nconst CLASS_NAME_SHOW = 'show'\n\n/**\n * Class definition\n */\n\nclass Alert extends BaseComponent {\n  // Getters\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  close() {\n    const closeEvent = EventHandler.trigger(this._element, EVENT_CLOSE)\n\n    if (closeEvent.defaultPrevented) {\n      return\n    }\n\n    this._element.classList.remove(CLASS_NAME_SHOW)\n\n    const isAnimated = this._element.classList.contains(CLASS_NAME_FADE)\n    this._queueCallback(() => this._destroyElement(), this._element, isAnimated)\n  }\n\n  // Private\n  _destroyElement() {\n    this._element.remove()\n    EventHandler.trigger(this._element, EVENT_CLOSED)\n    this.dispose()\n  }\n\n  // Static\n  static jQueryInterface(config) {\n    return this.each(function () {\n      const data = Alert.getOrCreateInstance(this)\n\n      if (typeof config !== 'string') {\n        return\n      }\n\n      if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n        throw new TypeError(`No method named \"${config}\"`)\n      }\n\n      data[config](this)\n    })\n  }\n}\n\n/**\n * Data API implementation\n */\n\nenableDismissTrigger(Alert, 'close')\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Alert)\n\nexport default Alert\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap button.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js'\nimport EventHandler from './dom/event-handler.js'\nimport { defineJQueryPlugin } from './util/index.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'button'\nconst DATA_KEY = 'bs.button'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst DATA_API_KEY = '.data-api'\n\nconst CLASS_NAME_ACTIVE = 'active'\nconst SELECTOR_DATA_TOGGLE = '[data-bs-toggle=\"button\"]'\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`\n\n/**\n * Class definition\n */\n\nclass Button extends BaseComponent {\n  // Getters\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  toggle() {\n    // Toggle class and sync the `aria-pressed` attribute with the return value of the `.toggle()` method\n    this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE))\n  }\n\n  // Static\n  static jQueryInterface(config) {\n    return this.each(function () {\n      const data = Button.getOrCreateInstance(this)\n\n      if (config === 'toggle') {\n        data[config]()\n      }\n    })\n  }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, event => {\n  event.preventDefault()\n\n  const button = event.target.closest(SELECTOR_DATA_TOGGLE)\n  const data = Button.getOrCreateInstance(button)\n\n  data.toggle()\n})\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Button)\n\nexport default Button\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/swipe.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport EventHandler from '../dom/event-handler.js'\nimport Config from './config.js'\nimport { execute } from './index.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'swipe'\nconst EVENT_KEY = '.bs.swipe'\nconst EVENT_TOUCHSTART = `touchstart${EVENT_KEY}`\nconst EVENT_TOUCHMOVE = `touchmove${EVENT_KEY}`\nconst EVENT_TOUCHEND = `touchend${EVENT_KEY}`\nconst EVENT_POINTERDOWN = `pointerdown${EVENT_KEY}`\nconst EVENT_POINTERUP = `pointerup${EVENT_KEY}`\nconst POINTER_TYPE_TOUCH = 'touch'\nconst POINTER_TYPE_PEN = 'pen'\nconst CLASS_NAME_POINTER_EVENT = 'pointer-event'\nconst SWIPE_THRESHOLD = 40\n\nconst Default = {\n  endCallback: null,\n  leftCallback: null,\n  rightCallback: null\n}\n\nconst DefaultType = {\n  endCallback: '(function|null)',\n  leftCallback: '(function|null)',\n  rightCallback: '(function|null)'\n}\n\n/**\n * Class definition\n */\n\nclass Swipe extends Config {\n  constructor(element, config) {\n    super()\n    this._element = element\n\n    if (!element || !Swipe.isSupported()) {\n      return\n    }\n\n    this._config = this._getConfig(config)\n    this._deltaX = 0\n    this._supportPointerEvents = Boolean(window.PointerEvent)\n    this._initEvents()\n  }\n\n  // Getters\n  static get Default() {\n    return Default\n  }\n\n  static get DefaultType() {\n    return DefaultType\n  }\n\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  dispose() {\n    EventHandler.off(this._element, EVENT_KEY)\n  }\n\n  // Private\n  _start(event) {\n    if (!this._supportPointerEvents) {\n      this._deltaX = event.touches[0].clientX\n\n      return\n    }\n\n    if (this._eventIsPointerPenTouch(event)) {\n      this._deltaX = event.clientX\n    }\n  }\n\n  _end(event) {\n    if (this._eventIsPointerPenTouch(event)) {\n      this._deltaX = event.clientX - this._deltaX\n    }\n\n    this._handleSwipe()\n    execute(this._config.endCallback)\n  }\n\n  _move(event) {\n    this._deltaX = event.touches && event.touches.length > 1 ?\n      0 :\n      event.touches[0].clientX - this._deltaX\n  }\n\n  _handleSwipe() {\n    const absDeltaX = Math.abs(this._deltaX)\n\n    if (absDeltaX <= SWIPE_THRESHOLD) {\n      return\n    }\n\n    const direction = absDeltaX / this._deltaX\n\n    this._deltaX = 0\n\n    if (!direction) {\n      return\n    }\n\n    execute(direction > 0 ? this._config.rightCallback : this._config.leftCallback)\n  }\n\n  _initEvents() {\n    if (this._supportPointerEvents) {\n      EventHandler.on(this._element, EVENT_POINTERDOWN, event => this._start(event))\n      EventHandler.on(this._element, EVENT_POINTERUP, event => this._end(event))\n\n      this._element.classList.add(CLASS_NAME_POINTER_EVENT)\n    } else {\n      EventHandler.on(this._element, EVENT_TOUCHSTART, event => this._start(event))\n      EventHandler.on(this._element, EVENT_TOUCHMOVE, event => this._move(event))\n      EventHandler.on(this._element, EVENT_TOUCHEND, event => this._end(event))\n    }\n  }\n\n  _eventIsPointerPenTouch(event) {\n    return this._supportPointerEvents && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH)\n  }\n\n  // Static\n  static isSupported() {\n    return 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0\n  }\n}\n\nexport default Swipe\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap carousel.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js'\nimport EventHandler from './dom/event-handler.js'\nimport Manipulator from './dom/manipulator.js'\nimport SelectorEngine from './dom/selector-engine.js'\nimport {\n  defineJQueryPlugin,\n  getNextActiveElement,\n  isRTL,\n  isVisible,\n  reflow,\n  triggerTransitionEnd\n} from './util/index.js'\nimport Swipe from './util/swipe.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'carousel'\nconst DATA_KEY = 'bs.carousel'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst DATA_API_KEY = '.data-api'\n\nconst ARROW_LEFT_KEY = 'ArrowLeft'\nconst ARROW_RIGHT_KEY = 'ArrowRight'\nconst TOUCHEVENT_COMPAT_WAIT = 500 // Time for mouse compat events to fire after touch\n\nconst ORDER_NEXT = 'next'\nconst ORDER_PREV = 'prev'\nconst DIRECTION_LEFT = 'left'\nconst DIRECTION_RIGHT = 'right'\n\nconst EVENT_SLIDE = `slide${EVENT_KEY}`\nconst EVENT_SLID = `slid${EVENT_KEY}`\nconst EVENT_KEYDOWN = `keydown${EVENT_KEY}`\nconst EVENT_MOUSEENTER = `mouseenter${EVENT_KEY}`\nconst EVENT_MOUSELEAVE = `mouseleave${EVENT_KEY}`\nconst EVENT_DRAG_START = `dragstart${EVENT_KEY}`\nconst EVENT_LOAD_DATA_API = `load${EVENT_KEY}${DATA_API_KEY}`\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`\n\nconst CLASS_NAME_CAROUSEL = 'carousel'\nconst CLASS_NAME_ACTIVE = 'active'\nconst CLASS_NAME_SLIDE = 'slide'\nconst CLASS_NAME_END = 'carousel-item-end'\nconst CLASS_NAME_START = 'carousel-item-start'\nconst CLASS_NAME_NEXT = 'carousel-item-next'\nconst CLASS_NAME_PREV = 'carousel-item-prev'\n\nconst SELECTOR_ACTIVE = '.active'\nconst SELECTOR_ITEM = '.carousel-item'\nconst SELECTOR_ACTIVE_ITEM = SELECTOR_ACTIVE + SELECTOR_ITEM\nconst SELECTOR_ITEM_IMG = '.carousel-item img'\nconst SELECTOR_INDICATORS = '.carousel-indicators'\nconst SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]'\nconst SELECTOR_DATA_RIDE = '[data-bs-ride=\"carousel\"]'\n\nconst KEY_TO_DIRECTION = {\n  [ARROW_LEFT_KEY]: DIRECTION_RIGHT,\n  [ARROW_RIGHT_KEY]: DIRECTION_LEFT\n}\n\nconst Default = {\n  interval: 5000,\n  keyboard: true,\n  pause: 'hover',\n  ride: false,\n  touch: true,\n  wrap: true\n}\n\nconst DefaultType = {\n  interval: '(number|boolean)', // TODO:v6 remove boolean support\n  keyboard: 'boolean',\n  pause: '(string|boolean)',\n  ride: '(boolean|string)',\n  touch: 'boolean',\n  wrap: 'boolean'\n}\n\n/**\n * Class definition\n */\n\nclass Carousel extends BaseComponent {\n  constructor(element, config) {\n    super(element, config)\n\n    this._interval = null\n    this._activeElement = null\n    this._isSliding = false\n    this.touchTimeout = null\n    this._swipeHelper = null\n\n    this._indicatorsElement = SelectorEngine.findOne(SELECTOR_INDICATORS, this._element)\n    this._addEventListeners()\n\n    if (this._config.ride === CLASS_NAME_CAROUSEL) {\n      this.cycle()\n    }\n  }\n\n  // Getters\n  static get Default() {\n    return Default\n  }\n\n  static get DefaultType() {\n    return DefaultType\n  }\n\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  next() {\n    this._slide(ORDER_NEXT)\n  }\n\n  nextWhenVisible() {\n    // FIXME TODO use `document.visibilityState`\n    // Don't call next when the page isn't visible\n    // or the carousel or its parent isn't visible\n    if (!document.hidden && isVisible(this._element)) {\n      this.next()\n    }\n  }\n\n  prev() {\n    this._slide(ORDER_PREV)\n  }\n\n  pause() {\n    if (this._isSliding) {\n      triggerTransitionEnd(this._element)\n    }\n\n    this._clearInterval()\n  }\n\n  cycle() {\n    this._clearInterval()\n    this._updateInterval()\n\n    this._interval = setInterval(() => this.nextWhenVisible(), this._config.interval)\n  }\n\n  _maybeEnableCycle() {\n    if (!this._config.ride) {\n      return\n    }\n\n    if (this._isSliding) {\n      EventHandler.one(this._element, EVENT_SLID, () => this.cycle())\n      return\n    }\n\n    this.cycle()\n  }\n\n  to(index) {\n    const items = this._getItems()\n    if (index > items.length - 1 || index < 0) {\n      return\n    }\n\n    if (this._isSliding) {\n      EventHandler.one(this._element, EVENT_SLID, () => this.to(index))\n      return\n    }\n\n    const activeIndex = this._getItemIndex(this._getActive())\n    if (activeIndex === index) {\n      return\n    }\n\n    const order = index > activeIndex ? ORDER_NEXT : ORDER_PREV\n\n    this._slide(order, items[index])\n  }\n\n  dispose() {\n    if (this._swipeHelper) {\n      this._swipeHelper.dispose()\n    }\n\n    super.dispose()\n  }\n\n  // Private\n  _configAfterMerge(config) {\n    config.defaultInterval = config.interval\n    return config\n  }\n\n  _addEventListeners() {\n    if (this._config.keyboard) {\n      EventHandler.on(this._element, EVENT_KEYDOWN, event => this._keydown(event))\n    }\n\n    if (this._config.pause === 'hover') {\n      EventHandler.on(this._element, EVENT_MOUSEENTER, () => this.pause())\n      EventHandler.on(this._element, EVENT_MOUSELEAVE, () => this._maybeEnableCycle())\n    }\n\n    if (this._config.touch && Swipe.isSupported()) {\n      this._addTouchEventListeners()\n    }\n  }\n\n  _addTouchEventListeners() {\n    for (const img of SelectorEngine.find(SELECTOR_ITEM_IMG, this._element)) {\n      EventHandler.on(img, EVENT_DRAG_START, event => event.preventDefault())\n    }\n\n    const endCallBack = () => {\n      if (this._config.pause !== 'hover') {\n        return\n      }\n\n      // If it's a touch-enabled device, mouseenter/leave are fired as\n      // part of the mouse compatibility events on first tap - the carousel\n      // would stop cycling until user tapped out of it;\n      // here, we listen for touchend, explicitly pause the carousel\n      // (as if it's the second time we tap on it, mouseenter compat event\n      // is NOT fired) and after a timeout (to allow for mouse compatibility\n      // events to fire) we explicitly restart cycling\n\n      this.pause()\n      if (this.touchTimeout) {\n        clearTimeout(this.touchTimeout)\n      }\n\n      this.touchTimeout = setTimeout(() => this._maybeEnableCycle(), TOUCHEVENT_COMPAT_WAIT + this._config.interval)\n    }\n\n    const swipeConfig = {\n      leftCallback: () => this._slide(this._directionToOrder(DIRECTION_LEFT)),\n      rightCallback: () => this._slide(this._directionToOrder(DIRECTION_RIGHT)),\n      endCallback: endCallBack\n    }\n\n    this._swipeHelper = new Swipe(this._element, swipeConfig)\n  }\n\n  _keydown(event) {\n    if (/input|textarea/i.test(event.target.tagName)) {\n      return\n    }\n\n    const direction = KEY_TO_DIRECTION[event.key]\n    if (direction) {\n      event.preventDefault()\n      this._slide(this._directionToOrder(direction))\n    }\n  }\n\n  _getItemIndex(element) {\n    return this._getItems().indexOf(element)\n  }\n\n  _setActiveIndicatorElement(index) {\n    if (!this._indicatorsElement) {\n      return\n    }\n\n    const activeIndicator = SelectorEngine.findOne(SELECTOR_ACTIVE, this._indicatorsElement)\n\n    activeIndicator.classList.remove(CLASS_NAME_ACTIVE)\n    activeIndicator.removeAttribute('aria-current')\n\n    const newActiveIndicator = SelectorEngine.findOne(`[data-bs-slide-to=\"${index}\"]`, this._indicatorsElement)\n\n    if (newActiveIndicator) {\n      newActiveIndicator.classList.add(CLASS_NAME_ACTIVE)\n      newActiveIndicator.setAttribute('aria-current', 'true')\n    }\n  }\n\n  _updateInterval() {\n    const element = this._activeElement || this._getActive()\n\n    if (!element) {\n      return\n    }\n\n    const elementInterval = Number.parseInt(element.getAttribute('data-bs-interval'), 10)\n\n    this._config.interval = elementInterval || this._config.defaultInterval\n  }\n\n  _slide(order, element = null) {\n    if (this._isSliding) {\n      return\n    }\n\n    const activeElement = this._getActive()\n    const isNext = order === ORDER_NEXT\n    const nextElement = element || getNextActiveElement(this._getItems(), activeElement, isNext, this._config.wrap)\n\n    if (nextElement === activeElement) {\n      return\n    }\n\n    const nextElementIndex = this._getItemIndex(nextElement)\n\n    const triggerEvent = eventName => {\n      return EventHandler.trigger(this._element, eventName, {\n        relatedTarget: nextElement,\n        direction: this._orderToDirection(order),\n        from: this._getItemIndex(activeElement),\n        to: nextElementIndex\n      })\n    }\n\n    const slideEvent = triggerEvent(EVENT_SLIDE)\n\n    if (slideEvent.defaultPrevented) {\n      return\n    }\n\n    if (!activeElement || !nextElement) {\n      // Some weirdness is happening, so we bail\n      // TODO: change tests that use empty divs to avoid this check\n      return\n    }\n\n    const isCycling = Boolean(this._interval)\n    this.pause()\n\n    this._isSliding = true\n\n    this._setActiveIndicatorElement(nextElementIndex)\n    this._activeElement = nextElement\n\n    const directionalClassName = isNext ? CLASS_NAME_START : CLASS_NAME_END\n    const orderClassName = isNext ? CLASS_NAME_NEXT : CLASS_NAME_PREV\n\n    nextElement.classList.add(orderClassName)\n\n    reflow(nextElement)\n\n    activeElement.classList.add(directionalClassName)\n    nextElement.classList.add(directionalClassName)\n\n    const completeCallBack = () => {\n      nextElement.classList.remove(directionalClassName, orderClassName)\n      nextElement.classList.add(CLASS_NAME_ACTIVE)\n\n      activeElement.classList.remove(CLASS_NAME_ACTIVE, orderClassName, directionalClassName)\n\n      this._isSliding = false\n\n      triggerEvent(EVENT_SLID)\n    }\n\n    this._queueCallback(completeCallBack, activeElement, this._isAnimated())\n\n    if (isCycling) {\n      this.cycle()\n    }\n  }\n\n  _isAnimated() {\n    return this._element.classList.contains(CLASS_NAME_SLIDE)\n  }\n\n  _getActive() {\n    return SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element)\n  }\n\n  _getItems() {\n    return SelectorEngine.find(SELECTOR_ITEM, this._element)\n  }\n\n  _clearInterval() {\n    if (this._interval) {\n      clearInterval(this._interval)\n      this._interval = null\n    }\n  }\n\n  _directionToOrder(direction) {\n    if (isRTL()) {\n      return direction === DIRECTION_LEFT ? ORDER_PREV : ORDER_NEXT\n    }\n\n    return direction === DIRECTION_LEFT ? ORDER_NEXT : ORDER_PREV\n  }\n\n  _orderToDirection(order) {\n    if (isRTL()) {\n      return order === ORDER_PREV ? DIRECTION_LEFT : DIRECTION_RIGHT\n    }\n\n    return order === ORDER_PREV ? DIRECTION_RIGHT : DIRECTION_LEFT\n  }\n\n  // Static\n  static jQueryInterface(config) {\n    return this.each(function () {\n      const data = Carousel.getOrCreateInstance(this, config)\n\n      if (typeof config === 'number') {\n        data.to(config)\n        return\n      }\n\n      if (typeof config === 'string') {\n        if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n          throw new TypeError(`No method named \"${config}\"`)\n        }\n\n        data[config]()\n      }\n    })\n  }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_SLIDE, function (event) {\n  const target = SelectorEngine.getElementFromSelector(this)\n\n  if (!target || !target.classList.contains(CLASS_NAME_CAROUSEL)) {\n    return\n  }\n\n  event.preventDefault()\n\n  const carousel = Carousel.getOrCreateInstance(target)\n  const slideIndex = this.getAttribute('data-bs-slide-to')\n\n  if (slideIndex) {\n    carousel.to(slideIndex)\n    carousel._maybeEnableCycle()\n    return\n  }\n\n  if (Manipulator.getDataAttribute(this, 'slide') === 'next') {\n    carousel.next()\n    carousel._maybeEnableCycle()\n    return\n  }\n\n  carousel.prev()\n  carousel._maybeEnableCycle()\n})\n\nEventHandler.on(window, EVENT_LOAD_DATA_API, () => {\n  const carousels = SelectorEngine.find(SELECTOR_DATA_RIDE)\n\n  for (const carousel of carousels) {\n    Carousel.getOrCreateInstance(carousel)\n  }\n})\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Carousel)\n\nexport default Carousel\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap collapse.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js'\nimport EventHandler from './dom/event-handler.js'\nimport SelectorEngine from './dom/selector-engine.js'\nimport {\n  defineJQueryPlugin,\n  getElement,\n  reflow\n} from './util/index.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'collapse'\nconst DATA_KEY = 'bs.collapse'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst DATA_API_KEY = '.data-api'\n\nconst EVENT_SHOW = `show${EVENT_KEY}`\nconst EVENT_SHOWN = `shown${EVENT_KEY}`\nconst EVENT_HIDE = `hide${EVENT_KEY}`\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`\n\nconst CLASS_NAME_SHOW = 'show'\nconst CLASS_NAME_COLLAPSE = 'collapse'\nconst CLASS_NAME_COLLAPSING = 'collapsing'\nconst CLASS_NAME_COLLAPSED = 'collapsed'\nconst CLASS_NAME_DEEPER_CHILDREN = `:scope .${CLASS_NAME_COLLAPSE} .${CLASS_NAME_COLLAPSE}`\nconst CLASS_NAME_HORIZONTAL = 'collapse-horizontal'\n\nconst WIDTH = 'width'\nconst HEIGHT = 'height'\n\nconst SELECTOR_ACTIVES = '.collapse.show, .collapse.collapsing'\nconst SELECTOR_DATA_TOGGLE = '[data-bs-toggle=\"collapse\"]'\n\nconst Default = {\n  parent: null,\n  toggle: true\n}\n\nconst DefaultType = {\n  parent: '(null|element)',\n  toggle: 'boolean'\n}\n\n/**\n * Class definition\n */\n\nclass Collapse extends BaseComponent {\n  constructor(element, config) {\n    super(element, config)\n\n    this._isTransitioning = false\n    this._triggerArray = []\n\n    const toggleList = SelectorEngine.find(SELECTOR_DATA_TOGGLE)\n\n    for (const elem of toggleList) {\n      const selector = SelectorEngine.getSelectorFromElement(elem)\n      const filterElement = SelectorEngine.find(selector)\n        .filter(foundElement => foundElement === this._element)\n\n      if (selector !== null && filterElement.length) {\n        this._triggerArray.push(elem)\n      }\n    }\n\n    this._initializeChildren()\n\n    if (!this._config.parent) {\n      this._addAriaAndCollapsedClass(this._triggerArray, this._isShown())\n    }\n\n    if (this._config.toggle) {\n      this.toggle()\n    }\n  }\n\n  // Getters\n  static get Default() {\n    return Default\n  }\n\n  static get DefaultType() {\n    return DefaultType\n  }\n\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  toggle() {\n    if (this._isShown()) {\n      this.hide()\n    } else {\n      this.show()\n    }\n  }\n\n  show() {\n    if (this._isTransitioning || this._isShown()) {\n      return\n    }\n\n    let activeChildren = []\n\n    // find active children\n    if (this._config.parent) {\n      activeChildren = this._getFirstLevelChildren(SELECTOR_ACTIVES)\n        .filter(element => element !== this._element)\n        .map(element => Collapse.getOrCreateInstance(element, { toggle: false }))\n    }\n\n    if (activeChildren.length && activeChildren[0]._isTransitioning) {\n      return\n    }\n\n    const startEvent = EventHandler.trigger(this._element, EVENT_SHOW)\n    if (startEvent.defaultPrevented) {\n      return\n    }\n\n    for (const activeInstance of activeChildren) {\n      activeInstance.hide()\n    }\n\n    const dimension = this._getDimension()\n\n    this._element.classList.remove(CLASS_NAME_COLLAPSE)\n    this._element.classList.add(CLASS_NAME_COLLAPSING)\n\n    this._element.style[dimension] = 0\n\n    this._addAriaAndCollapsedClass(this._triggerArray, true)\n    this._isTransitioning = true\n\n    const complete = () => {\n      this._isTransitioning = false\n\n      this._element.classList.remove(CLASS_NAME_COLLAPSING)\n      this._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW)\n\n      this._element.style[dimension] = ''\n\n      EventHandler.trigger(this._element, EVENT_SHOWN)\n    }\n\n    const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1)\n    const scrollSize = `scroll${capitalizedDimension}`\n\n    this._queueCallback(complete, this._element, true)\n    this._element.style[dimension] = `${this._element[scrollSize]}px`\n  }\n\n  hide() {\n    if (this._isTransitioning || !this._isShown()) {\n      return\n    }\n\n    const startEvent = EventHandler.trigger(this._element, EVENT_HIDE)\n    if (startEvent.defaultPrevented) {\n      return\n    }\n\n    const dimension = this._getDimension()\n\n    this._element.style[dimension] = `${this._element.getBoundingClientRect()[dimension]}px`\n\n    reflow(this._element)\n\n    this._element.classList.add(CLASS_NAME_COLLAPSING)\n    this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW)\n\n    for (const trigger of this._triggerArray) {\n      const element = SelectorEngine.getElementFromSelector(trigger)\n\n      if (element && !this._isShown(element)) {\n        this._addAriaAndCollapsedClass([trigger], false)\n      }\n    }\n\n    this._isTransitioning = true\n\n    const complete = () => {\n      this._isTransitioning = false\n      this._element.classList.remove(CLASS_NAME_COLLAPSING)\n      this._element.classList.add(CLASS_NAME_COLLAPSE)\n      EventHandler.trigger(this._element, EVENT_HIDDEN)\n    }\n\n    this._element.style[dimension] = ''\n\n    this._queueCallback(complete, this._element, true)\n  }\n\n  // Private\n  _isShown(element = this._element) {\n    return element.classList.contains(CLASS_NAME_SHOW)\n  }\n\n  _configAfterMerge(config) {\n    config.toggle = Boolean(config.toggle) // Coerce string values\n    config.parent = getElement(config.parent)\n    return config\n  }\n\n  _getDimension() {\n    return this._element.classList.contains(CLASS_NAME_HORIZONTAL) ? WIDTH : HEIGHT\n  }\n\n  _initializeChildren() {\n    if (!this._config.parent) {\n      return\n    }\n\n    const children = this._getFirstLevelChildren(SELECTOR_DATA_TOGGLE)\n\n    for (const element of children) {\n      const selected = SelectorEngine.getElementFromSelector(element)\n\n      if (selected) {\n        this._addAriaAndCollapsedClass([element], this._isShown(selected))\n      }\n    }\n  }\n\n  _getFirstLevelChildren(selector) {\n    const children = SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN, this._config.parent)\n    // remove children if greater depth\n    return SelectorEngine.find(selector, this._config.parent).filter(element => !children.includes(element))\n  }\n\n  _addAriaAndCollapsedClass(triggerArray, isOpen) {\n    if (!triggerArray.length) {\n      return\n    }\n\n    for (const element of triggerArray) {\n      element.classList.toggle(CLASS_NAME_COLLAPSED, !isOpen)\n      element.setAttribute('aria-expanded', isOpen)\n    }\n  }\n\n  // Static\n  static jQueryInterface(config) {\n    const _config = {}\n    if (typeof config === 'string' && /show|hide/.test(config)) {\n      _config.toggle = false\n    }\n\n    return this.each(function () {\n      const data = Collapse.getOrCreateInstance(this, _config)\n\n      if (typeof config === 'string') {\n        if (typeof data[config] === 'undefined') {\n          throw new TypeError(`No method named \"${config}\"`)\n        }\n\n        data[config]()\n      }\n    })\n  }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n  // preventDefault only for <a> elements (which change the URL) not inside the collapsible element\n  if (event.target.tagName === 'A' || (event.delegateTarget && event.delegateTarget.tagName === 'A')) {\n    event.preventDefault()\n  }\n\n  for (const element of SelectorEngine.getMultipleElementsFromSelector(this)) {\n    Collapse.getOrCreateInstance(element, { toggle: false }).toggle()\n  }\n})\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Collapse)\n\nexport default Collapse\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap dropdown.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport * as Popper from '@popperjs/core'\nimport BaseComponent from './base-component.js'\nimport EventHandler from './dom/event-handler.js'\nimport Manipulator from './dom/manipulator.js'\nimport SelectorEngine from './dom/selector-engine.js'\nimport {\n  defineJQueryPlugin,\n  execute,\n  getElement,\n  getNextActiveElement,\n  isDisabled,\n  isElement,\n  isRTL,\n  isVisible,\n  noop\n} from './util/index.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'dropdown'\nconst DATA_KEY = 'bs.dropdown'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst DATA_API_KEY = '.data-api'\n\nconst ESCAPE_KEY = 'Escape'\nconst TAB_KEY = 'Tab'\nconst ARROW_UP_KEY = 'ArrowUp'\nconst ARROW_DOWN_KEY = 'ArrowDown'\nconst RIGHT_MOUSE_BUTTON = 2 // MouseEvent.button value for the secondary button, usually the right button\n\nconst EVENT_HIDE = `hide${EVENT_KEY}`\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`\nconst EVENT_SHOW = `show${EVENT_KEY}`\nconst EVENT_SHOWN = `shown${EVENT_KEY}`\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`\nconst EVENT_KEYDOWN_DATA_API = `keydown${EVENT_KEY}${DATA_API_KEY}`\nconst EVENT_KEYUP_DATA_API = `keyup${EVENT_KEY}${DATA_API_KEY}`\n\nconst CLASS_NAME_SHOW = 'show'\nconst CLASS_NAME_DROPUP = 'dropup'\nconst CLASS_NAME_DROPEND = 'dropend'\nconst CLASS_NAME_DROPSTART = 'dropstart'\nconst CLASS_NAME_DROPUP_CENTER = 'dropup-center'\nconst CLASS_NAME_DROPDOWN_CENTER = 'dropdown-center'\n\nconst SELECTOR_DATA_TOGGLE = '[data-bs-toggle=\"dropdown\"]:not(.disabled):not(:disabled)'\nconst SELECTOR_DATA_TOGGLE_SHOWN = `${SELECTOR_DATA_TOGGLE}.${CLASS_NAME_SHOW}`\nconst SELECTOR_MENU = '.dropdown-menu'\nconst SELECTOR_NAVBAR = '.navbar'\nconst SELECTOR_NAVBAR_NAV = '.navbar-nav'\nconst SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)'\n\nconst PLACEMENT_TOP = isRTL() ? 'top-end' : 'top-start'\nconst PLACEMENT_TOPEND = isRTL() ? 'top-start' : 'top-end'\nconst PLACEMENT_BOTTOM = isRTL() ? 'bottom-end' : 'bottom-start'\nconst PLACEMENT_BOTTOMEND = isRTL() ? 'bottom-start' : 'bottom-end'\nconst PLACEMENT_RIGHT = isRTL() ? 'left-start' : 'right-start'\nconst PLACEMENT_LEFT = isRTL() ? 'right-start' : 'left-start'\nconst PLACEMENT_TOPCENTER = 'top'\nconst PLACEMENT_BOTTOMCENTER = 'bottom'\n\nconst Default = {\n  autoClose: true,\n  boundary: 'clippingParents',\n  display: 'dynamic',\n  offset: [0, 2],\n  popperConfig: null,\n  reference: 'toggle'\n}\n\nconst DefaultType = {\n  autoClose: '(boolean|string)',\n  boundary: '(string|element)',\n  display: 'string',\n  offset: '(array|string|function)',\n  popperConfig: '(null|object|function)',\n  reference: '(string|element|object)'\n}\n\n/**\n * Class definition\n */\n\nclass Dropdown extends BaseComponent {\n  constructor(element, config) {\n    super(element, config)\n\n    this._popper = null\n    this._parent = this._element.parentNode // dropdown wrapper\n    // TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/\n    this._menu = SelectorEngine.next(this._element, SELECTOR_MENU)[0] ||\n      SelectorEngine.prev(this._element, SELECTOR_MENU)[0] ||\n      SelectorEngine.findOne(SELECTOR_MENU, this._parent)\n    this._inNavbar = this._detectNavbar()\n  }\n\n  // Getters\n  static get Default() {\n    return Default\n  }\n\n  static get DefaultType() {\n    return DefaultType\n  }\n\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  toggle() {\n    return this._isShown() ? this.hide() : this.show()\n  }\n\n  show() {\n    if (isDisabled(this._element) || this._isShown()) {\n      return\n    }\n\n    const relatedTarget = {\n      relatedTarget: this._element\n    }\n\n    const showEvent = EventHandler.trigger(this._element, EVENT_SHOW, relatedTarget)\n\n    if (showEvent.defaultPrevented) {\n      return\n    }\n\n    this._createPopper()\n\n    // If this is a touch-enabled device we add extra\n    // empty mouseover listeners to the body's immediate children;\n    // only needed because of broken event delegation on iOS\n    // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n    if ('ontouchstart' in document.documentElement && !this._parent.closest(SELECTOR_NAVBAR_NAV)) {\n      for (const element of [].concat(...document.body.children)) {\n        EventHandler.on(element, 'mouseover', noop)\n      }\n    }\n\n    this._element.focus()\n    this._element.setAttribute('aria-expanded', true)\n\n    this._menu.classList.add(CLASS_NAME_SHOW)\n    this._element.classList.add(CLASS_NAME_SHOW)\n    EventHandler.trigger(this._element, EVENT_SHOWN, relatedTarget)\n  }\n\n  hide() {\n    if (isDisabled(this._element) || !this._isShown()) {\n      return\n    }\n\n    const relatedTarget = {\n      relatedTarget: this._element\n    }\n\n    this._completeHide(relatedTarget)\n  }\n\n  dispose() {\n    if (this._popper) {\n      this._popper.destroy()\n    }\n\n    super.dispose()\n  }\n\n  update() {\n    this._inNavbar = this._detectNavbar()\n    if (this._popper) {\n      this._popper.update()\n    }\n  }\n\n  // Private\n  _completeHide(relatedTarget) {\n    const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE, relatedTarget)\n    if (hideEvent.defaultPrevented) {\n      return\n    }\n\n    // If this is a touch-enabled device we remove the extra\n    // empty mouseover listeners we added for iOS support\n    if ('ontouchstart' in document.documentElement) {\n      for (const element of [].concat(...document.body.children)) {\n        EventHandler.off(element, 'mouseover', noop)\n      }\n    }\n\n    if (this._popper) {\n      this._popper.destroy()\n    }\n\n    this._menu.classList.remove(CLASS_NAME_SHOW)\n    this._element.classList.remove(CLASS_NAME_SHOW)\n    this._element.setAttribute('aria-expanded', 'false')\n    Manipulator.removeDataAttribute(this._menu, 'popper')\n    EventHandler.trigger(this._element, EVENT_HIDDEN, relatedTarget)\n  }\n\n  _getConfig(config) {\n    config = super._getConfig(config)\n\n    if (typeof config.reference === 'object' && !isElement(config.reference) &&\n      typeof config.reference.getBoundingClientRect !== 'function'\n    ) {\n      // Popper virtual elements require a getBoundingClientRect method\n      throw new TypeError(`${NAME.toUpperCase()}: Option \"reference\" provided type \"object\" without a required \"getBoundingClientRect\" method.`)\n    }\n\n    return config\n  }\n\n  _createPopper() {\n    if (typeof Popper === 'undefined') {\n      throw new TypeError('Bootstrap\\'s dropdowns require Popper (https://popper.js.org/docs/v2/)')\n    }\n\n    let referenceElement = this._element\n\n    if (this._config.reference === 'parent') {\n      referenceElement = this._parent\n    } else if (isElement(this._config.reference)) {\n      referenceElement = getElement(this._config.reference)\n    } else if (typeof this._config.reference === 'object') {\n      referenceElement = this._config.reference\n    }\n\n    const popperConfig = this._getPopperConfig()\n    this._popper = Popper.createPopper(referenceElement, this._menu, popperConfig)\n  }\n\n  _isShown() {\n    return this._menu.classList.contains(CLASS_NAME_SHOW)\n  }\n\n  _getPlacement() {\n    const parentDropdown = this._parent\n\n    if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {\n      return PLACEMENT_RIGHT\n    }\n\n    if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {\n      return PLACEMENT_LEFT\n    }\n\n    if (parentDropdown.classList.contains(CLASS_NAME_DROPUP_CENTER)) {\n      return PLACEMENT_TOPCENTER\n    }\n\n    if (parentDropdown.classList.contains(CLASS_NAME_DROPDOWN_CENTER)) {\n      return PLACEMENT_BOTTOMCENTER\n    }\n\n    // We need to trim the value because custom properties can also include spaces\n    const isEnd = getComputedStyle(this._menu).getPropertyValue('--bs-position').trim() === 'end'\n\n    if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {\n      return isEnd ? PLACEMENT_TOPEND : PLACEMENT_TOP\n    }\n\n    return isEnd ? PLACEMENT_BOTTOMEND : PLACEMENT_BOTTOM\n  }\n\n  _detectNavbar() {\n    return this._element.closest(SELECTOR_NAVBAR) !== null\n  }\n\n  _getOffset() {\n    const { offset } = this._config\n\n    if (typeof offset === 'string') {\n      return offset.split(',').map(value => Number.parseInt(value, 10))\n    }\n\n    if (typeof offset === 'function') {\n      return popperData => offset(popperData, this._element)\n    }\n\n    return offset\n  }\n\n  _getPopperConfig() {\n    const defaultBsPopperConfig = {\n      placement: this._getPlacement(),\n      modifiers: [{\n        name: 'preventOverflow',\n        options: {\n          boundary: this._config.boundary\n        }\n      },\n      {\n        name: 'offset',\n        options: {\n          offset: this._getOffset()\n        }\n      }]\n    }\n\n    // Disable Popper if we have a static display or Dropdown is in Navbar\n    if (this._inNavbar || this._config.display === 'static') {\n      Manipulator.setDataAttribute(this._menu, 'popper', 'static') // TODO: v6 remove\n      defaultBsPopperConfig.modifiers = [{\n        name: 'applyStyles',\n        enabled: false\n      }]\n    }\n\n    return {\n      ...defaultBsPopperConfig,\n      ...execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])\n    }\n  }\n\n  _selectMenuItem({ key, target }) {\n    const items = SelectorEngine.find(SELECTOR_VISIBLE_ITEMS, this._menu).filter(element => isVisible(element))\n\n    if (!items.length) {\n      return\n    }\n\n    // if target isn't included in items (e.g. when expanding the dropdown)\n    // allow cycling to get the last item in case key equals ARROW_UP_KEY\n    getNextActiveElement(items, target, key === ARROW_DOWN_KEY, !items.includes(target)).focus()\n  }\n\n  // Static\n  static jQueryInterface(config) {\n    return this.each(function () {\n      const data = Dropdown.getOrCreateInstance(this, config)\n\n      if (typeof config !== 'string') {\n        return\n      }\n\n      if (typeof data[config] === 'undefined') {\n        throw new TypeError(`No method named \"${config}\"`)\n      }\n\n      data[config]()\n    })\n  }\n\n  static clearMenus(event) {\n    if (event.button === RIGHT_MOUSE_BUTTON || (event.type === 'keyup' && event.key !== TAB_KEY)) {\n      return\n    }\n\n    const openToggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE_SHOWN)\n\n    for (const toggle of openToggles) {\n      const context = Dropdown.getInstance(toggle)\n      if (!context || context._config.autoClose === false) {\n        continue\n      }\n\n      const composedPath = event.composedPath()\n      const isMenuTarget = composedPath.includes(context._menu)\n      if (\n        composedPath.includes(context._element) ||\n        (context._config.autoClose === 'inside' && !isMenuTarget) ||\n        (context._config.autoClose === 'outside' && isMenuTarget)\n      ) {\n        continue\n      }\n\n      // Tab navigation through the dropdown menu or events from contained inputs shouldn't close the menu\n      if (context._menu.contains(event.target) && ((event.type === 'keyup' && event.key === TAB_KEY) || /input|select|option|textarea|form/i.test(event.target.tagName))) {\n        continue\n      }\n\n      const relatedTarget = { relatedTarget: context._element }\n\n      if (event.type === 'click') {\n        relatedTarget.clickEvent = event\n      }\n\n      context._completeHide(relatedTarget)\n    }\n  }\n\n  static dataApiKeydownHandler(event) {\n    // If not an UP | DOWN | ESCAPE key => not a dropdown command\n    // If input/textarea && if key is other than ESCAPE => not a dropdown command\n\n    const isInput = /input|textarea/i.test(event.target.tagName)\n    const isEscapeEvent = event.key === ESCAPE_KEY\n    const isUpOrDownEvent = [ARROW_UP_KEY, ARROW_DOWN_KEY].includes(event.key)\n\n    if (!isUpOrDownEvent && !isEscapeEvent) {\n      return\n    }\n\n    if (isInput && !isEscapeEvent) {\n      return\n    }\n\n    event.preventDefault()\n\n    // TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/\n    const getToggleButton = this.matches(SELECTOR_DATA_TOGGLE) ?\n      this :\n      (SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE)[0] ||\n        SelectorEngine.next(this, SELECTOR_DATA_TOGGLE)[0] ||\n        SelectorEngine.findOne(SELECTOR_DATA_TOGGLE, event.delegateTarget.parentNode))\n\n    const instance = Dropdown.getOrCreateInstance(getToggleButton)\n\n    if (isUpOrDownEvent) {\n      event.stopPropagation()\n      instance.show()\n      instance._selectMenuItem(event)\n      return\n    }\n\n    if (instance._isShown()) { // else is escape and we check if it is shown\n      event.stopPropagation()\n      instance.hide()\n      getToggleButton.focus()\n    }\n  }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE, Dropdown.dataApiKeydownHandler)\nEventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown.dataApiKeydownHandler)\nEventHandler.on(document, EVENT_CLICK_DATA_API, Dropdown.clearMenus)\nEventHandler.on(document, EVENT_KEYUP_DATA_API, Dropdown.clearMenus)\nEventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n  event.preventDefault()\n  Dropdown.getOrCreateInstance(this).toggle()\n})\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Dropdown)\n\nexport default Dropdown\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/backdrop.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport EventHandler from '../dom/event-handler.js'\nimport Config from './config.js'\nimport {\n  execute, executeAfterTransition, getElement, reflow\n} from './index.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'backdrop'\nconst CLASS_NAME_FADE = 'fade'\nconst CLASS_NAME_SHOW = 'show'\nconst EVENT_MOUSEDOWN = `mousedown.bs.${NAME}`\n\nconst Default = {\n  className: 'modal-backdrop',\n  clickCallback: null,\n  isAnimated: false,\n  isVisible: true, // if false, we use the backdrop helper without adding any element to the dom\n  rootElement: 'body' // give the choice to place backdrop under different elements\n}\n\nconst DefaultType = {\n  className: 'string',\n  clickCallback: '(function|null)',\n  isAnimated: 'boolean',\n  isVisible: 'boolean',\n  rootElement: '(element|string)'\n}\n\n/**\n * Class definition\n */\n\nclass Backdrop extends Config {\n  constructor(config) {\n    super()\n    this._config = this._getConfig(config)\n    this._isAppended = false\n    this._element = null\n  }\n\n  // Getters\n  static get Default() {\n    return Default\n  }\n\n  static get DefaultType() {\n    return DefaultType\n  }\n\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  show(callback) {\n    if (!this._config.isVisible) {\n      execute(callback)\n      return\n    }\n\n    this._append()\n\n    const element = this._getElement()\n    if (this._config.isAnimated) {\n      reflow(element)\n    }\n\n    element.classList.add(CLASS_NAME_SHOW)\n\n    this._emulateAnimation(() => {\n      execute(callback)\n    })\n  }\n\n  hide(callback) {\n    if (!this._config.isVisible) {\n      execute(callback)\n      return\n    }\n\n    this._getElement().classList.remove(CLASS_NAME_SHOW)\n\n    this._emulateAnimation(() => {\n      this.dispose()\n      execute(callback)\n    })\n  }\n\n  dispose() {\n    if (!this._isAppended) {\n      return\n    }\n\n    EventHandler.off(this._element, EVENT_MOUSEDOWN)\n\n    this._element.remove()\n    this._isAppended = false\n  }\n\n  // Private\n  _getElement() {\n    if (!this._element) {\n      const backdrop = document.createElement('div')\n      backdrop.className = this._config.className\n      if (this._config.isAnimated) {\n        backdrop.classList.add(CLASS_NAME_FADE)\n      }\n\n      this._element = backdrop\n    }\n\n    return this._element\n  }\n\n  _configAfterMerge(config) {\n    // use getElement() with the default \"body\" to get a fresh Element on each instantiation\n    config.rootElement = getElement(config.rootElement)\n    return config\n  }\n\n  _append() {\n    if (this._isAppended) {\n      return\n    }\n\n    const element = this._getElement()\n    this._config.rootElement.append(element)\n\n    EventHandler.on(element, EVENT_MOUSEDOWN, () => {\n      execute(this._config.clickCallback)\n    })\n\n    this._isAppended = true\n  }\n\n  _emulateAnimation(callback) {\n    executeAfterTransition(callback, this._getElement(), this._config.isAnimated)\n  }\n}\n\nexport default Backdrop\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/focustrap.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport EventHandler from '../dom/event-handler.js'\nimport SelectorEngine from '../dom/selector-engine.js'\nimport Config from './config.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'focustrap'\nconst DATA_KEY = 'bs.focustrap'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst EVENT_FOCUSIN = `focusin${EVENT_KEY}`\nconst EVENT_KEYDOWN_TAB = `keydown.tab${EVENT_KEY}`\n\nconst TAB_KEY = 'Tab'\nconst TAB_NAV_FORWARD = 'forward'\nconst TAB_NAV_BACKWARD = 'backward'\n\nconst Default = {\n  autofocus: true,\n  trapElement: null // The element to trap focus inside of\n}\n\nconst DefaultType = {\n  autofocus: 'boolean',\n  trapElement: 'element'\n}\n\n/**\n * Class definition\n */\n\nclass FocusTrap extends Config {\n  constructor(config) {\n    super()\n    this._config = this._getConfig(config)\n    this._isActive = false\n    this._lastTabNavDirection = null\n  }\n\n  // Getters\n  static get Default() {\n    return Default\n  }\n\n  static get DefaultType() {\n    return DefaultType\n  }\n\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  activate() {\n    if (this._isActive) {\n      return\n    }\n\n    if (this._config.autofocus) {\n      this._config.trapElement.focus()\n    }\n\n    EventHandler.off(document, EVENT_KEY) // guard against infinite focus loop\n    EventHandler.on(document, EVENT_FOCUSIN, event => this._handleFocusin(event))\n    EventHandler.on(document, EVENT_KEYDOWN_TAB, event => this._handleKeydown(event))\n\n    this._isActive = true\n  }\n\n  deactivate() {\n    if (!this._isActive) {\n      return\n    }\n\n    this._isActive = false\n    EventHandler.off(document, EVENT_KEY)\n  }\n\n  // Private\n  _handleFocusin(event) {\n    const { trapElement } = this._config\n\n    if (event.target === document || event.target === trapElement || trapElement.contains(event.target)) {\n      return\n    }\n\n    const elements = SelectorEngine.focusableChildren(trapElement)\n\n    if (elements.length === 0) {\n      trapElement.focus()\n    } else if (this._lastTabNavDirection === TAB_NAV_BACKWARD) {\n      elements[elements.length - 1].focus()\n    } else {\n      elements[0].focus()\n    }\n  }\n\n  _handleKeydown(event) {\n    if (event.key !== TAB_KEY) {\n      return\n    }\n\n    this._lastTabNavDirection = event.shiftKey ? TAB_NAV_BACKWARD : TAB_NAV_FORWARD\n  }\n}\n\nexport default FocusTrap\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/scrollBar.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Manipulator from '../dom/manipulator.js'\nimport SelectorEngine from '../dom/selector-engine.js'\nimport { isElement } from './index.js'\n\n/**\n * Constants\n */\n\nconst SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top'\nconst SELECTOR_STICKY_CONTENT = '.sticky-top'\nconst PROPERTY_PADDING = 'padding-right'\nconst PROPERTY_MARGIN = 'margin-right'\n\n/**\n * Class definition\n */\n\nclass ScrollBarHelper {\n  constructor() {\n    this._element = document.body\n  }\n\n  // Public\n  getWidth() {\n    // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes\n    const documentWidth = document.documentElement.clientWidth\n    return Math.abs(window.innerWidth - documentWidth)\n  }\n\n  hide() {\n    const width = this.getWidth()\n    this._disableOverFlow()\n    // give padding to element to balance the hidden scrollbar width\n    this._setElementAttributes(this._element, PROPERTY_PADDING, calculatedValue => calculatedValue + width)\n    // trick: We adjust positive paddingRight and negative marginRight to sticky-top elements to keep showing fullwidth\n    this._setElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING, calculatedValue => calculatedValue + width)\n    this._setElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN, calculatedValue => calculatedValue - width)\n  }\n\n  reset() {\n    this._resetElementAttributes(this._element, 'overflow')\n    this._resetElementAttributes(this._element, PROPERTY_PADDING)\n    this._resetElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING)\n    this._resetElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN)\n  }\n\n  isOverflowing() {\n    return this.getWidth() > 0\n  }\n\n  // Private\n  _disableOverFlow() {\n    this._saveInitialAttribute(this._element, 'overflow')\n    this._element.style.overflow = 'hidden'\n  }\n\n  _setElementAttributes(selector, styleProperty, callback) {\n    const scrollbarWidth = this.getWidth()\n    const manipulationCallBack = element => {\n      if (element !== this._element && window.innerWidth > element.clientWidth + scrollbarWidth) {\n        return\n      }\n\n      this._saveInitialAttribute(element, styleProperty)\n      const calculatedValue = window.getComputedStyle(element).getPropertyValue(styleProperty)\n      element.style.setProperty(styleProperty, `${callback(Number.parseFloat(calculatedValue))}px`)\n    }\n\n    this._applyManipulationCallback(selector, manipulationCallBack)\n  }\n\n  _saveInitialAttribute(element, styleProperty) {\n    const actualValue = element.style.getPropertyValue(styleProperty)\n    if (actualValue) {\n      Manipulator.setDataAttribute(element, styleProperty, actualValue)\n    }\n  }\n\n  _resetElementAttributes(selector, styleProperty) {\n    const manipulationCallBack = element => {\n      const value = Manipulator.getDataAttribute(element, styleProperty)\n      // We only want to remove the property if the value is `null`; the value can also be zero\n      if (value === null) {\n        element.style.removeProperty(styleProperty)\n        return\n      }\n\n      Manipulator.removeDataAttribute(element, styleProperty)\n      element.style.setProperty(styleProperty, value)\n    }\n\n    this._applyManipulationCallback(selector, manipulationCallBack)\n  }\n\n  _applyManipulationCallback(selector, callBack) {\n    if (isElement(selector)) {\n      callBack(selector)\n      return\n    }\n\n    for (const sel of SelectorEngine.find(selector, this._element)) {\n      callBack(sel)\n    }\n  }\n}\n\nexport default ScrollBarHelper\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap modal.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js'\nimport EventHandler from './dom/event-handler.js'\nimport SelectorEngine from './dom/selector-engine.js'\nimport Backdrop from './util/backdrop.js'\nimport { enableDismissTrigger } from './util/component-functions.js'\nimport FocusTrap from './util/focustrap.js'\nimport {\n  defineJQueryPlugin, isRTL, isVisible, reflow\n} from './util/index.js'\nimport ScrollBarHelper from './util/scrollbar.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'modal'\nconst DATA_KEY = 'bs.modal'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst DATA_API_KEY = '.data-api'\nconst ESCAPE_KEY = 'Escape'\n\nconst EVENT_HIDE = `hide${EVENT_KEY}`\nconst EVENT_HIDE_PREVENTED = `hidePrevented${EVENT_KEY}`\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`\nconst EVENT_SHOW = `show${EVENT_KEY}`\nconst EVENT_SHOWN = `shown${EVENT_KEY}`\nconst EVENT_RESIZE = `resize${EVENT_KEY}`\nconst EVENT_CLICK_DISMISS = `click.dismiss${EVENT_KEY}`\nconst EVENT_MOUSEDOWN_DISMISS = `mousedown.dismiss${EVENT_KEY}`\nconst EVENT_KEYDOWN_DISMISS = `keydown.dismiss${EVENT_KEY}`\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`\n\nconst CLASS_NAME_OPEN = 'modal-open'\nconst CLASS_NAME_FADE = 'fade'\nconst CLASS_NAME_SHOW = 'show'\nconst CLASS_NAME_STATIC = 'modal-static'\n\nconst OPEN_SELECTOR = '.modal.show'\nconst SELECTOR_DIALOG = '.modal-dialog'\nconst SELECTOR_MODAL_BODY = '.modal-body'\nconst SELECTOR_DATA_TOGGLE = '[data-bs-toggle=\"modal\"]'\n\nconst Default = {\n  backdrop: true,\n  focus: true,\n  keyboard: true\n}\n\nconst DefaultType = {\n  backdrop: '(boolean|string)',\n  focus: 'boolean',\n  keyboard: 'boolean'\n}\n\n/**\n * Class definition\n */\n\nclass Modal extends BaseComponent {\n  constructor(element, config) {\n    super(element, config)\n\n    this._dialog = SelectorEngine.findOne(SELECTOR_DIALOG, this._element)\n    this._backdrop = this._initializeBackDrop()\n    this._focustrap = this._initializeFocusTrap()\n    this._isShown = false\n    this._isTransitioning = false\n    this._scrollBar = new ScrollBarHelper()\n\n    this._addEventListeners()\n  }\n\n  // Getters\n  static get Default() {\n    return Default\n  }\n\n  static get DefaultType() {\n    return DefaultType\n  }\n\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  toggle(relatedTarget) {\n    return this._isShown ? this.hide() : this.show(relatedTarget)\n  }\n\n  show(relatedTarget) {\n    if (this._isShown || this._isTransitioning) {\n      return\n    }\n\n    const showEvent = EventHandler.trigger(this._element, EVENT_SHOW, {\n      relatedTarget\n    })\n\n    if (showEvent.defaultPrevented) {\n      return\n    }\n\n    this._isShown = true\n    this._isTransitioning = true\n\n    this._scrollBar.hide()\n\n    document.body.classList.add(CLASS_NAME_OPEN)\n\n    this._adjustDialog()\n\n    this._backdrop.show(() => this._showElement(relatedTarget))\n  }\n\n  hide() {\n    if (!this._isShown || this._isTransitioning) {\n      return\n    }\n\n    const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE)\n\n    if (hideEvent.defaultPrevented) {\n      return\n    }\n\n    this._isShown = false\n    this._isTransitioning = true\n    this._focustrap.deactivate()\n\n    this._element.classList.remove(CLASS_NAME_SHOW)\n\n    this._queueCallback(() => this._hideModal(), this._element, this._isAnimated())\n  }\n\n  dispose() {\n    EventHandler.off(window, EVENT_KEY)\n    EventHandler.off(this._dialog, EVENT_KEY)\n\n    this._backdrop.dispose()\n    this._focustrap.deactivate()\n\n    super.dispose()\n  }\n\n  handleUpdate() {\n    this._adjustDialog()\n  }\n\n  // Private\n  _initializeBackDrop() {\n    return new Backdrop({\n      isVisible: Boolean(this._config.backdrop), // 'static' option will be translated to true, and booleans will keep their value,\n      isAnimated: this._isAnimated()\n    })\n  }\n\n  _initializeFocusTrap() {\n    return new FocusTrap({\n      trapElement: this._element\n    })\n  }\n\n  _showElement(relatedTarget) {\n    // try to append dynamic modal\n    if (!document.body.contains(this._element)) {\n      document.body.append(this._element)\n    }\n\n    this._element.style.display = 'block'\n    this._element.removeAttribute('aria-hidden')\n    this._element.setAttribute('aria-modal', true)\n    this._element.setAttribute('role', 'dialog')\n    this._element.scrollTop = 0\n\n    const modalBody = SelectorEngine.findOne(SELECTOR_MODAL_BODY, this._dialog)\n    if (modalBody) {\n      modalBody.scrollTop = 0\n    }\n\n    reflow(this._element)\n\n    this._element.classList.add(CLASS_NAME_SHOW)\n\n    const transitionComplete = () => {\n      if (this._config.focus) {\n        this._focustrap.activate()\n      }\n\n      this._isTransitioning = false\n      EventHandler.trigger(this._element, EVENT_SHOWN, {\n        relatedTarget\n      })\n    }\n\n    this._queueCallback(transitionComplete, this._dialog, this._isAnimated())\n  }\n\n  _addEventListeners() {\n    EventHandler.on(this._element, EVENT_KEYDOWN_DISMISS, event => {\n      if (event.key !== ESCAPE_KEY) {\n        return\n      }\n\n      if (this._config.keyboard) {\n        this.hide()\n        return\n      }\n\n      this._triggerBackdropTransition()\n    })\n\n    EventHandler.on(window, EVENT_RESIZE, () => {\n      if (this._isShown && !this._isTransitioning) {\n        this._adjustDialog()\n      }\n    })\n\n    EventHandler.on(this._element, EVENT_MOUSEDOWN_DISMISS, event => {\n      // a bad trick to segregate clicks that may start inside dialog but end outside, and avoid listen to scrollbar clicks\n      EventHandler.one(this._element, EVENT_CLICK_DISMISS, event2 => {\n        if (this._element !== event.target || this._element !== event2.target) {\n          return\n        }\n\n        if (this._config.backdrop === 'static') {\n          this._triggerBackdropTransition()\n          return\n        }\n\n        if (this._config.backdrop) {\n          this.hide()\n        }\n      })\n    })\n  }\n\n  _hideModal() {\n    this._element.style.display = 'none'\n    this._element.setAttribute('aria-hidden', true)\n    this._element.removeAttribute('aria-modal')\n    this._element.removeAttribute('role')\n    this._isTransitioning = false\n\n    this._backdrop.hide(() => {\n      document.body.classList.remove(CLASS_NAME_OPEN)\n      this._resetAdjustments()\n      this._scrollBar.reset()\n      EventHandler.trigger(this._element, EVENT_HIDDEN)\n    })\n  }\n\n  _isAnimated() {\n    return this._element.classList.contains(CLASS_NAME_FADE)\n  }\n\n  _triggerBackdropTransition() {\n    const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED)\n    if (hideEvent.defaultPrevented) {\n      return\n    }\n\n    const isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight\n    const initialOverflowY = this._element.style.overflowY\n    // return if the following background transition hasn't yet completed\n    if (initialOverflowY === 'hidden' || this._element.classList.contains(CLASS_NAME_STATIC)) {\n      return\n    }\n\n    if (!isModalOverflowing) {\n      this._element.style.overflowY = 'hidden'\n    }\n\n    this._element.classList.add(CLASS_NAME_STATIC)\n    this._queueCallback(() => {\n      this._element.classList.remove(CLASS_NAME_STATIC)\n      this._queueCallback(() => {\n        this._element.style.overflowY = initialOverflowY\n      }, this._dialog)\n    }, this._dialog)\n\n    this._element.focus()\n  }\n\n  /**\n   * The following methods are used to handle overflowing modals\n   */\n\n  _adjustDialog() {\n    const isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight\n    const scrollbarWidth = this._scrollBar.getWidth()\n    const isBodyOverflowing = scrollbarWidth > 0\n\n    if (isBodyOverflowing && !isModalOverflowing) {\n      const property = isRTL() ? 'paddingLeft' : 'paddingRight'\n      this._element.style[property] = `${scrollbarWidth}px`\n    }\n\n    if (!isBodyOverflowing && isModalOverflowing) {\n      const property = isRTL() ? 'paddingRight' : 'paddingLeft'\n      this._element.style[property] = `${scrollbarWidth}px`\n    }\n  }\n\n  _resetAdjustments() {\n    this._element.style.paddingLeft = ''\n    this._element.style.paddingRight = ''\n  }\n\n  // Static\n  static jQueryInterface(config, relatedTarget) {\n    return this.each(function () {\n      const data = Modal.getOrCreateInstance(this, config)\n\n      if (typeof config !== 'string') {\n        return\n      }\n\n      if (typeof data[config] === 'undefined') {\n        throw new TypeError(`No method named \"${config}\"`)\n      }\n\n      data[config](relatedTarget)\n    })\n  }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n  const target = SelectorEngine.getElementFromSelector(this)\n\n  if (['A', 'AREA'].includes(this.tagName)) {\n    event.preventDefault()\n  }\n\n  EventHandler.one(target, EVENT_SHOW, showEvent => {\n    if (showEvent.defaultPrevented) {\n      // only register focus restorer if modal will actually get shown\n      return\n    }\n\n    EventHandler.one(target, EVENT_HIDDEN, () => {\n      if (isVisible(this)) {\n        this.focus()\n      }\n    })\n  })\n\n  // avoid conflict when clicking modal toggler while another one is open\n  const alreadyOpen = SelectorEngine.findOne(OPEN_SELECTOR)\n  if (alreadyOpen) {\n    Modal.getInstance(alreadyOpen).hide()\n  }\n\n  const data = Modal.getOrCreateInstance(target)\n\n  data.toggle(this)\n})\n\nenableDismissTrigger(Modal)\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Modal)\n\nexport default Modal\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap offcanvas.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js'\nimport EventHandler from './dom/event-handler.js'\nimport SelectorEngine from './dom/selector-engine.js'\nimport Backdrop from './util/backdrop.js'\nimport { enableDismissTrigger } from './util/component-functions.js'\nimport FocusTrap from './util/focustrap.js'\nimport {\n  defineJQueryPlugin,\n  isDisabled,\n  isVisible\n} from './util/index.js'\nimport ScrollBarHelper from './util/scrollbar.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'offcanvas'\nconst DATA_KEY = 'bs.offcanvas'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst DATA_API_KEY = '.data-api'\nconst EVENT_LOAD_DATA_API = `load${EVENT_KEY}${DATA_API_KEY}`\nconst ESCAPE_KEY = 'Escape'\n\nconst CLASS_NAME_SHOW = 'show'\nconst CLASS_NAME_SHOWING = 'showing'\nconst CLASS_NAME_HIDING = 'hiding'\nconst CLASS_NAME_BACKDROP = 'offcanvas-backdrop'\nconst OPEN_SELECTOR = '.offcanvas.show'\n\nconst EVENT_SHOW = `show${EVENT_KEY}`\nconst EVENT_SHOWN = `shown${EVENT_KEY}`\nconst EVENT_HIDE = `hide${EVENT_KEY}`\nconst EVENT_HIDE_PREVENTED = `hidePrevented${EVENT_KEY}`\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`\nconst EVENT_RESIZE = `resize${EVENT_KEY}`\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`\nconst EVENT_KEYDOWN_DISMISS = `keydown.dismiss${EVENT_KEY}`\n\nconst SELECTOR_DATA_TOGGLE = '[data-bs-toggle=\"offcanvas\"]'\n\nconst Default = {\n  backdrop: true,\n  keyboard: true,\n  scroll: false\n}\n\nconst DefaultType = {\n  backdrop: '(boolean|string)',\n  keyboard: 'boolean',\n  scroll: 'boolean'\n}\n\n/**\n * Class definition\n */\n\nclass Offcanvas extends BaseComponent {\n  constructor(element, config) {\n    super(element, config)\n\n    this._isShown = false\n    this._backdrop = this._initializeBackDrop()\n    this._focustrap = this._initializeFocusTrap()\n    this._addEventListeners()\n  }\n\n  // Getters\n  static get Default() {\n    return Default\n  }\n\n  static get DefaultType() {\n    return DefaultType\n  }\n\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  toggle(relatedTarget) {\n    return this._isShown ? this.hide() : this.show(relatedTarget)\n  }\n\n  show(relatedTarget) {\n    if (this._isShown) {\n      return\n    }\n\n    const showEvent = EventHandler.trigger(this._element, EVENT_SHOW, { relatedTarget })\n\n    if (showEvent.defaultPrevented) {\n      return\n    }\n\n    this._isShown = true\n    this._backdrop.show()\n\n    if (!this._config.scroll) {\n      new ScrollBarHelper().hide()\n    }\n\n    this._element.setAttribute('aria-modal', true)\n    this._element.setAttribute('role', 'dialog')\n    this._element.classList.add(CLASS_NAME_SHOWING)\n\n    const completeCallBack = () => {\n      if (!this._config.scroll || this._config.backdrop) {\n        this._focustrap.activate()\n      }\n\n      this._element.classList.add(CLASS_NAME_SHOW)\n      this._element.classList.remove(CLASS_NAME_SHOWING)\n      EventHandler.trigger(this._element, EVENT_SHOWN, { relatedTarget })\n    }\n\n    this._queueCallback(completeCallBack, this._element, true)\n  }\n\n  hide() {\n    if (!this._isShown) {\n      return\n    }\n\n    const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE)\n\n    if (hideEvent.defaultPrevented) {\n      return\n    }\n\n    this._focustrap.deactivate()\n    this._element.blur()\n    this._isShown = false\n    this._element.classList.add(CLASS_NAME_HIDING)\n    this._backdrop.hide()\n\n    const completeCallback = () => {\n      this._element.classList.remove(CLASS_NAME_SHOW, CLASS_NAME_HIDING)\n      this._element.removeAttribute('aria-modal')\n      this._element.removeAttribute('role')\n\n      if (!this._config.scroll) {\n        new ScrollBarHelper().reset()\n      }\n\n      EventHandler.trigger(this._element, EVENT_HIDDEN)\n    }\n\n    this._queueCallback(completeCallback, this._element, true)\n  }\n\n  dispose() {\n    this._backdrop.dispose()\n    this._focustrap.deactivate()\n    super.dispose()\n  }\n\n  // Private\n  _initializeBackDrop() {\n    const clickCallback = () => {\n      if (this._config.backdrop === 'static') {\n        EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED)\n        return\n      }\n\n      this.hide()\n    }\n\n    // 'static' option will be translated to true, and booleans will keep their value\n    const isVisible = Boolean(this._config.backdrop)\n\n    return new Backdrop({\n      className: CLASS_NAME_BACKDROP,\n      isVisible,\n      isAnimated: true,\n      rootElement: this._element.parentNode,\n      clickCallback: isVisible ? clickCallback : null\n    })\n  }\n\n  _initializeFocusTrap() {\n    return new FocusTrap({\n      trapElement: this._element\n    })\n  }\n\n  _addEventListeners() {\n    EventHandler.on(this._element, EVENT_KEYDOWN_DISMISS, event => {\n      if (event.key !== ESCAPE_KEY) {\n        return\n      }\n\n      if (this._config.keyboard) {\n        this.hide()\n        return\n      }\n\n      EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED)\n    })\n  }\n\n  // Static\n  static jQueryInterface(config) {\n    return this.each(function () {\n      const data = Offcanvas.getOrCreateInstance(this, config)\n\n      if (typeof config !== 'string') {\n        return\n      }\n\n      if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n        throw new TypeError(`No method named \"${config}\"`)\n      }\n\n      data[config](this)\n    })\n  }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n  const target = SelectorEngine.getElementFromSelector(this)\n\n  if (['A', 'AREA'].includes(this.tagName)) {\n    event.preventDefault()\n  }\n\n  if (isDisabled(this)) {\n    return\n  }\n\n  EventHandler.one(target, EVENT_HIDDEN, () => {\n    // focus on trigger when it is closed\n    if (isVisible(this)) {\n      this.focus()\n    }\n  })\n\n  // avoid conflict when clicking a toggler of an offcanvas, while another is open\n  const alreadyOpen = SelectorEngine.findOne(OPEN_SELECTOR)\n  if (alreadyOpen && alreadyOpen !== target) {\n    Offcanvas.getInstance(alreadyOpen).hide()\n  }\n\n  const data = Offcanvas.getOrCreateInstance(target)\n  data.toggle(this)\n})\n\nEventHandler.on(window, EVENT_LOAD_DATA_API, () => {\n  for (const selector of SelectorEngine.find(OPEN_SELECTOR)) {\n    Offcanvas.getOrCreateInstance(selector).show()\n  }\n})\n\nEventHandler.on(window, EVENT_RESIZE, () => {\n  for (const element of SelectorEngine.find('[aria-modal][class*=show][class*=offcanvas-]')) {\n    if (getComputedStyle(element).position !== 'fixed') {\n      Offcanvas.getOrCreateInstance(element).hide()\n    }\n  }\n})\n\nenableDismissTrigger(Offcanvas)\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Offcanvas)\n\nexport default Offcanvas\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/sanitizer.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n// js-docs-start allow-list\nconst ARIA_ATTRIBUTE_PATTERN = /^aria-[\\w-]*$/i\n\nexport const DefaultAllowlist = {\n  // Global attributes allowed on any supplied element below.\n  '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],\n  a: ['target', 'href', 'title', 'rel'],\n  area: [],\n  b: [],\n  br: [],\n  col: [],\n  code: [],\n  dd: [],\n  div: [],\n  dl: [],\n  dt: [],\n  em: [],\n  hr: [],\n  h1: [],\n  h2: [],\n  h3: [],\n  h4: [],\n  h5: [],\n  h6: [],\n  i: [],\n  img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],\n  li: [],\n  ol: [],\n  p: [],\n  pre: [],\n  s: [],\n  small: [],\n  span: [],\n  sub: [],\n  sup: [],\n  strong: [],\n  u: [],\n  ul: []\n}\n// js-docs-end allow-list\n\nconst uriAttributes = new Set([\n  'background',\n  'cite',\n  'href',\n  'itemtype',\n  'longdesc',\n  'poster',\n  'src',\n  'xlink:href'\n])\n\n/**\n * A pattern that recognizes URLs that are safe wrt. XSS in URL navigation\n * contexts.\n *\n * Shout-out to Angular https://github.com/angular/angular/blob/15.2.8/packages/core/src/sanitization/url_sanitizer.ts#L38\n */\nconst SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i\n\nconst allowedAttribute = (attribute, allowedAttributeList) => {\n  const attributeName = attribute.nodeName.toLowerCase()\n\n  if (allowedAttributeList.includes(attributeName)) {\n    if (uriAttributes.has(attributeName)) {\n      return Boolean(SAFE_URL_PATTERN.test(attribute.nodeValue))\n    }\n\n    return true\n  }\n\n  // Check if a regular expression validates the attribute.\n  return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp)\n    .some(regex => regex.test(attributeName))\n}\n\nexport function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {\n  if (!unsafeHtml.length) {\n    return unsafeHtml\n  }\n\n  if (sanitizeFunction && typeof sanitizeFunction === 'function') {\n    return sanitizeFunction(unsafeHtml)\n  }\n\n  const domParser = new window.DOMParser()\n  const createdDocument = domParser.parseFromString(unsafeHtml, 'text/html')\n  const elements = [].concat(...createdDocument.body.querySelectorAll('*'))\n\n  for (const element of elements) {\n    const elementName = element.nodeName.toLowerCase()\n\n    if (!Object.keys(allowList).includes(elementName)) {\n      element.remove()\n      continue\n    }\n\n    const attributeList = [].concat(...element.attributes)\n    const allowedAttributes = [].concat(allowList['*'] || [], allowList[elementName] || [])\n\n    for (const attribute of attributeList) {\n      if (!allowedAttribute(attribute, allowedAttributes)) {\n        element.removeAttribute(attribute.nodeName)\n      }\n    }\n  }\n\n  return createdDocument.body.innerHTML\n}\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap util/template-factory.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport SelectorEngine from '../dom/selector-engine.js'\nimport Config from './config.js'\nimport { DefaultAllowlist, sanitizeHtml } from './sanitizer.js'\nimport { execute, getElement, isElement } from './index.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'TemplateFactory'\n\nconst Default = {\n  allowList: DefaultAllowlist,\n  content: {}, // { selector : text ,  selector2 : text2 , }\n  extraClass: '',\n  html: false,\n  sanitize: true,\n  sanitizeFn: null,\n  template: '<div></div>'\n}\n\nconst DefaultType = {\n  allowList: 'object',\n  content: 'object',\n  extraClass: '(string|function)',\n  html: 'boolean',\n  sanitize: 'boolean',\n  sanitizeFn: '(null|function)',\n  template: 'string'\n}\n\nconst DefaultContentType = {\n  entry: '(string|element|function|null)',\n  selector: '(string|element)'\n}\n\n/**\n * Class definition\n */\n\nclass TemplateFactory extends Config {\n  constructor(config) {\n    super()\n    this._config = this._getConfig(config)\n  }\n\n  // Getters\n  static get Default() {\n    return Default\n  }\n\n  static get DefaultType() {\n    return DefaultType\n  }\n\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  getContent() {\n    return Object.values(this._config.content)\n      .map(config => this._resolvePossibleFunction(config))\n      .filter(Boolean)\n  }\n\n  hasContent() {\n    return this.getContent().length > 0\n  }\n\n  changeContent(content) {\n    this._checkContent(content)\n    this._config.content = { ...this._config.content, ...content }\n    return this\n  }\n\n  toHtml() {\n    const templateWrapper = document.createElement('div')\n    templateWrapper.innerHTML = this._maybeSanitize(this._config.template)\n\n    for (const [selector, text] of Object.entries(this._config.content)) {\n      this._setContent(templateWrapper, text, selector)\n    }\n\n    const template = templateWrapper.children[0]\n    const extraClass = this._resolvePossibleFunction(this._config.extraClass)\n\n    if (extraClass) {\n      template.classList.add(...extraClass.split(' '))\n    }\n\n    return template\n  }\n\n  // Private\n  _typeCheckConfig(config) {\n    super._typeCheckConfig(config)\n    this._checkContent(config.content)\n  }\n\n  _checkContent(arg) {\n    for (const [selector, content] of Object.entries(arg)) {\n      super._typeCheckConfig({ selector, entry: content }, DefaultContentType)\n    }\n  }\n\n  _setContent(template, content, selector) {\n    const templateElement = SelectorEngine.findOne(selector, template)\n\n    if (!templateElement) {\n      return\n    }\n\n    content = this._resolvePossibleFunction(content)\n\n    if (!content) {\n      templateElement.remove()\n      return\n    }\n\n    if (isElement(content)) {\n      this._putElementInTemplate(getElement(content), templateElement)\n      return\n    }\n\n    if (this._config.html) {\n      templateElement.innerHTML = this._maybeSanitize(content)\n      return\n    }\n\n    templateElement.textContent = content\n  }\n\n  _maybeSanitize(arg) {\n    return this._config.sanitize ? sanitizeHtml(arg, this._config.allowList, this._config.sanitizeFn) : arg\n  }\n\n  _resolvePossibleFunction(arg) {\n    return execute(arg, [undefined, this])\n  }\n\n  _putElementInTemplate(element, templateElement) {\n    if (this._config.html) {\n      templateElement.innerHTML = ''\n      templateElement.append(element)\n      return\n    }\n\n    templateElement.textContent = element.textContent\n  }\n}\n\nexport default TemplateFactory\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap tooltip.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport * as Popper from '@popperjs/core'\nimport BaseComponent from './base-component.js'\nimport EventHandler from './dom/event-handler.js'\nimport Manipulator from './dom/manipulator.js'\nimport {\n  defineJQueryPlugin, execute, findShadowRoot, getElement, getUID, isRTL, noop\n} from './util/index.js'\nimport { DefaultAllowlist } from './util/sanitizer.js'\nimport TemplateFactory from './util/template-factory.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'tooltip'\nconst DISALLOWED_ATTRIBUTES = new Set(['sanitize', 'allowList', 'sanitizeFn'])\n\nconst CLASS_NAME_FADE = 'fade'\nconst CLASS_NAME_MODAL = 'modal'\nconst CLASS_NAME_SHOW = 'show'\n\nconst SELECTOR_TOOLTIP_INNER = '.tooltip-inner'\nconst SELECTOR_MODAL = `.${CLASS_NAME_MODAL}`\n\nconst EVENT_MODAL_HIDE = 'hide.bs.modal'\n\nconst TRIGGER_HOVER = 'hover'\nconst TRIGGER_FOCUS = 'focus'\nconst TRIGGER_CLICK = 'click'\nconst TRIGGER_MANUAL = 'manual'\n\nconst EVENT_HIDE = 'hide'\nconst EVENT_HIDDEN = 'hidden'\nconst EVENT_SHOW = 'show'\nconst EVENT_SHOWN = 'shown'\nconst EVENT_INSERTED = 'inserted'\nconst EVENT_CLICK = 'click'\nconst EVENT_FOCUSIN = 'focusin'\nconst EVENT_FOCUSOUT = 'focusout'\nconst EVENT_MOUSEENTER = 'mouseenter'\nconst EVENT_MOUSELEAVE = 'mouseleave'\n\nconst AttachmentMap = {\n  AUTO: 'auto',\n  TOP: 'top',\n  RIGHT: isRTL() ? 'left' : 'right',\n  BOTTOM: 'bottom',\n  LEFT: isRTL() ? 'right' : 'left'\n}\n\nconst Default = {\n  allowList: DefaultAllowlist,\n  animation: true,\n  boundary: 'clippingParents',\n  container: false,\n  customClass: '',\n  delay: 0,\n  fallbackPlacements: ['top', 'right', 'bottom', 'left'],\n  html: false,\n  offset: [0, 6],\n  placement: 'top',\n  popperConfig: null,\n  sanitize: true,\n  sanitizeFn: null,\n  selector: false,\n  template: '<div class=\"tooltip\" role=\"tooltip\">' +\n            '<div class=\"tooltip-arrow\"></div>' +\n            '<div class=\"tooltip-inner\"></div>' +\n            '</div>',\n  title: '',\n  trigger: 'hover focus'\n}\n\nconst DefaultType = {\n  allowList: 'object',\n  animation: 'boolean',\n  boundary: '(string|element)',\n  container: '(string|element|boolean)',\n  customClass: '(string|function)',\n  delay: '(number|object)',\n  fallbackPlacements: 'array',\n  html: 'boolean',\n  offset: '(array|string|function)',\n  placement: '(string|function)',\n  popperConfig: '(null|object|function)',\n  sanitize: 'boolean',\n  sanitizeFn: '(null|function)',\n  selector: '(string|boolean)',\n  template: 'string',\n  title: '(string|element|function)',\n  trigger: 'string'\n}\n\n/**\n * Class definition\n */\n\nclass Tooltip extends BaseComponent {\n  constructor(element, config) {\n    if (typeof Popper === 'undefined') {\n      throw new TypeError('Bootstrap\\'s tooltips require Popper (https://popper.js.org/docs/v2/)')\n    }\n\n    super(element, config)\n\n    // Private\n    this._isEnabled = true\n    this._timeout = 0\n    this._isHovered = null\n    this._activeTrigger = {}\n    this._popper = null\n    this._templateFactory = null\n    this._newContent = null\n\n    // Protected\n    this.tip = null\n\n    this._setListeners()\n\n    if (!this._config.selector) {\n      this._fixTitle()\n    }\n  }\n\n  // Getters\n  static get Default() {\n    return Default\n  }\n\n  static get DefaultType() {\n    return DefaultType\n  }\n\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  enable() {\n    this._isEnabled = true\n  }\n\n  disable() {\n    this._isEnabled = false\n  }\n\n  toggleEnabled() {\n    this._isEnabled = !this._isEnabled\n  }\n\n  toggle() {\n    if (!this._isEnabled) {\n      return\n    }\n\n    if (this._isShown()) {\n      this._leave()\n      return\n    }\n\n    this._enter()\n  }\n\n  dispose() {\n    clearTimeout(this._timeout)\n\n    EventHandler.off(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler)\n\n    if (this._element.getAttribute('data-bs-original-title')) {\n      this._element.setAttribute('title', this._element.getAttribute('data-bs-original-title'))\n    }\n\n    this._disposePopper()\n    super.dispose()\n  }\n\n  show() {\n    if (this._element.style.display === 'none') {\n      throw new Error('Please use show on visible elements')\n    }\n\n    if (!(this._isWithContent() && this._isEnabled)) {\n      return\n    }\n\n    const showEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOW))\n    const shadowRoot = findShadowRoot(this._element)\n    const isInTheDom = (shadowRoot || this._element.ownerDocument.documentElement).contains(this._element)\n\n    if (showEvent.defaultPrevented || !isInTheDom) {\n      return\n    }\n\n    // TODO: v6 remove this or make it optional\n    this._disposePopper()\n\n    const tip = this._getTipElement()\n\n    this._element.setAttribute('aria-describedby', tip.getAttribute('id'))\n\n    const { container } = this._config\n\n    if (!this._element.ownerDocument.documentElement.contains(this.tip)) {\n      container.append(tip)\n      EventHandler.trigger(this._element, this.constructor.eventName(EVENT_INSERTED))\n    }\n\n    this._popper = this._createPopper(tip)\n\n    tip.classList.add(CLASS_NAME_SHOW)\n\n    // If this is a touch-enabled device we add extra\n    // empty mouseover listeners to the body's immediate children;\n    // only needed because of broken event delegation on iOS\n    // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n    if ('ontouchstart' in document.documentElement) {\n      for (const element of [].concat(...document.body.children)) {\n        EventHandler.on(element, 'mouseover', noop)\n      }\n    }\n\n    const complete = () => {\n      EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOWN))\n\n      if (this._isHovered === false) {\n        this._leave()\n      }\n\n      this._isHovered = false\n    }\n\n    this._queueCallback(complete, this.tip, this._isAnimated())\n  }\n\n  hide() {\n    if (!this._isShown()) {\n      return\n    }\n\n    const hideEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDE))\n    if (hideEvent.defaultPrevented) {\n      return\n    }\n\n    const tip = this._getTipElement()\n    tip.classList.remove(CLASS_NAME_SHOW)\n\n    // If this is a touch-enabled device we remove the extra\n    // empty mouseover listeners we added for iOS support\n    if ('ontouchstart' in document.documentElement) {\n      for (const element of [].concat(...document.body.children)) {\n        EventHandler.off(element, 'mouseover', noop)\n      }\n    }\n\n    this._activeTrigger[TRIGGER_CLICK] = false\n    this._activeTrigger[TRIGGER_FOCUS] = false\n    this._activeTrigger[TRIGGER_HOVER] = false\n    this._isHovered = null // it is a trick to support manual triggering\n\n    const complete = () => {\n      if (this._isWithActiveTrigger()) {\n        return\n      }\n\n      if (!this._isHovered) {\n        this._disposePopper()\n      }\n\n      this._element.removeAttribute('aria-describedby')\n      EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDDEN))\n    }\n\n    this._queueCallback(complete, this.tip, this._isAnimated())\n  }\n\n  update() {\n    if (this._popper) {\n      this._popper.update()\n    }\n  }\n\n  // Protected\n  _isWithContent() {\n    return Boolean(this._getTitle())\n  }\n\n  _getTipElement() {\n    if (!this.tip) {\n      this.tip = this._createTipElement(this._newContent || this._getContentForTemplate())\n    }\n\n    return this.tip\n  }\n\n  _createTipElement(content) {\n    const tip = this._getTemplateFactory(content).toHtml()\n\n    // TODO: remove this check in v6\n    if (!tip) {\n      return null\n    }\n\n    tip.classList.remove(CLASS_NAME_FADE, CLASS_NAME_SHOW)\n    // TODO: v6 the following can be achieved with CSS only\n    tip.classList.add(`bs-${this.constructor.NAME}-auto`)\n\n    const tipId = getUID(this.constructor.NAME).toString()\n\n    tip.setAttribute('id', tipId)\n\n    if (this._isAnimated()) {\n      tip.classList.add(CLASS_NAME_FADE)\n    }\n\n    return tip\n  }\n\n  setContent(content) {\n    this._newContent = content\n    if (this._isShown()) {\n      this._disposePopper()\n      this.show()\n    }\n  }\n\n  _getTemplateFactory(content) {\n    if (this._templateFactory) {\n      this._templateFactory.changeContent(content)\n    } else {\n      this._templateFactory = new TemplateFactory({\n        ...this._config,\n        // the `content` var has to be after `this._config`\n        // to override config.content in case of popover\n        content,\n        extraClass: this._resolvePossibleFunction(this._config.customClass)\n      })\n    }\n\n    return this._templateFactory\n  }\n\n  _getContentForTemplate() {\n    return {\n      [SELECTOR_TOOLTIP_INNER]: this._getTitle()\n    }\n  }\n\n  _getTitle() {\n    return this._resolvePossibleFunction(this._config.title) || this._element.getAttribute('data-bs-original-title')\n  }\n\n  // Private\n  _initializeOnDelegatedTarget(event) {\n    return this.constructor.getOrCreateInstance(event.delegateTarget, this._getDelegateConfig())\n  }\n\n  _isAnimated() {\n    return this._config.animation || (this.tip && this.tip.classList.contains(CLASS_NAME_FADE))\n  }\n\n  _isShown() {\n    return this.tip && this.tip.classList.contains(CLASS_NAME_SHOW)\n  }\n\n  _createPopper(tip) {\n    const placement = execute(this._config.placement, [this, tip, this._element])\n    const attachment = AttachmentMap[placement.toUpperCase()]\n    return Popper.createPopper(this._element, tip, this._getPopperConfig(attachment))\n  }\n\n  _getOffset() {\n    const { offset } = this._config\n\n    if (typeof offset === 'string') {\n      return offset.split(',').map(value => Number.parseInt(value, 10))\n    }\n\n    if (typeof offset === 'function') {\n      return popperData => offset(popperData, this._element)\n    }\n\n    return offset\n  }\n\n  _resolvePossibleFunction(arg) {\n    return execute(arg, [this._element, this._element])\n  }\n\n  _getPopperConfig(attachment) {\n    const defaultBsPopperConfig = {\n      placement: attachment,\n      modifiers: [\n        {\n          name: 'flip',\n          options: {\n            fallbackPlacements: this._config.fallbackPlacements\n          }\n        },\n        {\n          name: 'offset',\n          options: {\n            offset: this._getOffset()\n          }\n        },\n        {\n          name: 'preventOverflow',\n          options: {\n            boundary: this._config.boundary\n          }\n        },\n        {\n          name: 'arrow',\n          options: {\n            element: `.${this.constructor.NAME}-arrow`\n          }\n        },\n        {\n          name: 'preSetPlacement',\n          enabled: true,\n          phase: 'beforeMain',\n          fn: data => {\n            // Pre-set Popper's placement attribute in order to read the arrow sizes properly.\n            // Otherwise, Popper mixes up the width and height dimensions since the initial arrow style is for top placement\n            this._getTipElement().setAttribute('data-popper-placement', data.state.placement)\n          }\n        }\n      ]\n    }\n\n    return {\n      ...defaultBsPopperConfig,\n      ...execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])\n    }\n  }\n\n  _setListeners() {\n    const triggers = this._config.trigger.split(' ')\n\n    for (const trigger of triggers) {\n      if (trigger === 'click') {\n        EventHandler.on(this._element, this.constructor.eventName(EVENT_CLICK), this._config.selector, event => {\n          const context = this._initializeOnDelegatedTarget(event)\n          context._activeTrigger[TRIGGER_CLICK] = !(context._isShown() && context._activeTrigger[TRIGGER_CLICK])\n          context.toggle()\n        })\n      } else if (trigger !== TRIGGER_MANUAL) {\n        const eventIn = trigger === TRIGGER_HOVER ?\n          this.constructor.eventName(EVENT_MOUSEENTER) :\n          this.constructor.eventName(EVENT_FOCUSIN)\n        const eventOut = trigger === TRIGGER_HOVER ?\n          this.constructor.eventName(EVENT_MOUSELEAVE) :\n          this.constructor.eventName(EVENT_FOCUSOUT)\n\n        EventHandler.on(this._element, eventIn, this._config.selector, event => {\n          const context = this._initializeOnDelegatedTarget(event)\n          context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true\n          context._enter()\n        })\n        EventHandler.on(this._element, eventOut, this._config.selector, event => {\n          const context = this._initializeOnDelegatedTarget(event)\n          context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] =\n            context._element.contains(event.relatedTarget)\n\n          context._leave()\n        })\n      }\n    }\n\n    this._hideModalHandler = () => {\n      if (this._element) {\n        this.hide()\n      }\n    }\n\n    EventHandler.on(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler)\n  }\n\n  _fixTitle() {\n    const title = this._element.getAttribute('title')\n\n    if (!title) {\n      return\n    }\n\n    if (!this._element.getAttribute('aria-label') && !this._element.textContent.trim()) {\n      this._element.setAttribute('aria-label', title)\n    }\n\n    this._element.setAttribute('data-bs-original-title', title) // DO NOT USE IT. Is only for backwards compatibility\n    this._element.removeAttribute('title')\n  }\n\n  _enter() {\n    if (this._isShown() || this._isHovered) {\n      this._isHovered = true\n      return\n    }\n\n    this._isHovered = true\n\n    this._setTimeout(() => {\n      if (this._isHovered) {\n        this.show()\n      }\n    }, this._config.delay.show)\n  }\n\n  _leave() {\n    if (this._isWithActiveTrigger()) {\n      return\n    }\n\n    this._isHovered = false\n\n    this._setTimeout(() => {\n      if (!this._isHovered) {\n        this.hide()\n      }\n    }, this._config.delay.hide)\n  }\n\n  _setTimeout(handler, timeout) {\n    clearTimeout(this._timeout)\n    this._timeout = setTimeout(handler, timeout)\n  }\n\n  _isWithActiveTrigger() {\n    return Object.values(this._activeTrigger).includes(true)\n  }\n\n  _getConfig(config) {\n    const dataAttributes = Manipulator.getDataAttributes(this._element)\n\n    for (const dataAttribute of Object.keys(dataAttributes)) {\n      if (DISALLOWED_ATTRIBUTES.has(dataAttribute)) {\n        delete dataAttributes[dataAttribute]\n      }\n    }\n\n    config = {\n      ...dataAttributes,\n      ...(typeof config === 'object' && config ? config : {})\n    }\n    config = this._mergeConfigObj(config)\n    config = this._configAfterMerge(config)\n    this._typeCheckConfig(config)\n    return config\n  }\n\n  _configAfterMerge(config) {\n    config.container = config.container === false ? document.body : getElement(config.container)\n\n    if (typeof config.delay === 'number') {\n      config.delay = {\n        show: config.delay,\n        hide: config.delay\n      }\n    }\n\n    if (typeof config.title === 'number') {\n      config.title = config.title.toString()\n    }\n\n    if (typeof config.content === 'number') {\n      config.content = config.content.toString()\n    }\n\n    return config\n  }\n\n  _getDelegateConfig() {\n    const config = {}\n\n    for (const [key, value] of Object.entries(this._config)) {\n      if (this.constructor.Default[key] !== value) {\n        config[key] = value\n      }\n    }\n\n    config.selector = false\n    config.trigger = 'manual'\n\n    // In the future can be replaced with:\n    // const keysWithDifferentValues = Object.entries(this._config).filter(entry => this.constructor.Default[entry[0]] !== this._config[entry[0]])\n    // `Object.fromEntries(keysWithDifferentValues)`\n    return config\n  }\n\n  _disposePopper() {\n    if (this._popper) {\n      this._popper.destroy()\n      this._popper = null\n    }\n\n    if (this.tip) {\n      this.tip.remove()\n      this.tip = null\n    }\n  }\n\n  // Static\n  static jQueryInterface(config) {\n    return this.each(function () {\n      const data = Tooltip.getOrCreateInstance(this, config)\n\n      if (typeof config !== 'string') {\n        return\n      }\n\n      if (typeof data[config] === 'undefined') {\n        throw new TypeError(`No method named \"${config}\"`)\n      }\n\n      data[config]()\n    })\n  }\n}\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Tooltip)\n\nexport default Tooltip\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap popover.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Tooltip from './tooltip.js'\nimport { defineJQueryPlugin } from './util/index.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'popover'\n\nconst SELECTOR_TITLE = '.popover-header'\nconst SELECTOR_CONTENT = '.popover-body'\n\nconst Default = {\n  ...Tooltip.Default,\n  content: '',\n  offset: [0, 8],\n  placement: 'right',\n  template: '<div class=\"popover\" role=\"tooltip\">' +\n    '<div class=\"popover-arrow\"></div>' +\n    '<h3 class=\"popover-header\"></h3>' +\n    '<div class=\"popover-body\"></div>' +\n    '</div>',\n  trigger: 'click'\n}\n\nconst DefaultType = {\n  ...Tooltip.DefaultType,\n  content: '(null|string|element|function)'\n}\n\n/**\n * Class definition\n */\n\nclass Popover extends Tooltip {\n  // Getters\n  static get Default() {\n    return Default\n  }\n\n  static get DefaultType() {\n    return DefaultType\n  }\n\n  static get NAME() {\n    return NAME\n  }\n\n  // Overrides\n  _isWithContent() {\n    return this._getTitle() || this._getContent()\n  }\n\n  // Private\n  _getContentForTemplate() {\n    return {\n      [SELECTOR_TITLE]: this._getTitle(),\n      [SELECTOR_CONTENT]: this._getContent()\n    }\n  }\n\n  _getContent() {\n    return this._resolvePossibleFunction(this._config.content)\n  }\n\n  // Static\n  static jQueryInterface(config) {\n    return this.each(function () {\n      const data = Popover.getOrCreateInstance(this, config)\n\n      if (typeof config !== 'string') {\n        return\n      }\n\n      if (typeof data[config] === 'undefined') {\n        throw new TypeError(`No method named \"${config}\"`)\n      }\n\n      data[config]()\n    })\n  }\n}\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Popover)\n\nexport default Popover\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap scrollspy.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js'\nimport EventHandler from './dom/event-handler.js'\nimport SelectorEngine from './dom/selector-engine.js'\nimport {\n  defineJQueryPlugin, getElement, isDisabled, isVisible\n} from './util/index.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'scrollspy'\nconst DATA_KEY = 'bs.scrollspy'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst DATA_API_KEY = '.data-api'\n\nconst EVENT_ACTIVATE = `activate${EVENT_KEY}`\nconst EVENT_CLICK = `click${EVENT_KEY}`\nconst EVENT_LOAD_DATA_API = `load${EVENT_KEY}${DATA_API_KEY}`\n\nconst CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item'\nconst CLASS_NAME_ACTIVE = 'active'\n\nconst SELECTOR_DATA_SPY = '[data-bs-spy=\"scroll\"]'\nconst SELECTOR_TARGET_LINKS = '[href]'\nconst SELECTOR_NAV_LIST_GROUP = '.nav, .list-group'\nconst SELECTOR_NAV_LINKS = '.nav-link'\nconst SELECTOR_NAV_ITEMS = '.nav-item'\nconst SELECTOR_LIST_ITEMS = '.list-group-item'\nconst SELECTOR_LINK_ITEMS = `${SELECTOR_NAV_LINKS}, ${SELECTOR_NAV_ITEMS} > ${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`\nconst SELECTOR_DROPDOWN = '.dropdown'\nconst SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle'\n\nconst Default = {\n  offset: null, // TODO: v6 @deprecated, keep it for backwards compatibility reasons\n  rootMargin: '0px 0px -25%',\n  smoothScroll: false,\n  target: null,\n  threshold: [0.1, 0.5, 1]\n}\n\nconst DefaultType = {\n  offset: '(number|null)', // TODO v6 @deprecated, keep it for backwards compatibility reasons\n  rootMargin: 'string',\n  smoothScroll: 'boolean',\n  target: 'element',\n  threshold: 'array'\n}\n\n/**\n * Class definition\n */\n\nclass ScrollSpy extends BaseComponent {\n  constructor(element, config) {\n    super(element, config)\n\n    // this._element is the observablesContainer and config.target the menu links wrapper\n    this._targetLinks = new Map()\n    this._observableSections = new Map()\n    this._rootElement = getComputedStyle(this._element).overflowY === 'visible' ? null : this._element\n    this._activeTarget = null\n    this._observer = null\n    this._previousScrollData = {\n      visibleEntryTop: 0,\n      parentScrollTop: 0\n    }\n    this.refresh() // initialize\n  }\n\n  // Getters\n  static get Default() {\n    return Default\n  }\n\n  static get DefaultType() {\n    return DefaultType\n  }\n\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  refresh() {\n    this._initializeTargetsAndObservables()\n    this._maybeEnableSmoothScroll()\n\n    if (this._observer) {\n      this._observer.disconnect()\n    } else {\n      this._observer = this._getNewObserver()\n    }\n\n    for (const section of this._observableSections.values()) {\n      this._observer.observe(section)\n    }\n  }\n\n  dispose() {\n    this._observer.disconnect()\n    super.dispose()\n  }\n\n  // Private\n  _configAfterMerge(config) {\n    // TODO: on v6 target should be given explicitly & remove the {target: 'ss-target'} case\n    config.target = getElement(config.target) || document.body\n\n    // TODO: v6 Only for backwards compatibility reasons. Use rootMargin only\n    config.rootMargin = config.offset ? `${config.offset}px 0px -30%` : config.rootMargin\n\n    if (typeof config.threshold === 'string') {\n      config.threshold = config.threshold.split(',').map(value => Number.parseFloat(value))\n    }\n\n    return config\n  }\n\n  _maybeEnableSmoothScroll() {\n    if (!this._config.smoothScroll) {\n      return\n    }\n\n    // unregister any previous listeners\n    EventHandler.off(this._config.target, EVENT_CLICK)\n\n    EventHandler.on(this._config.target, EVENT_CLICK, SELECTOR_TARGET_LINKS, event => {\n      const observableSection = this._observableSections.get(event.target.hash)\n      if (observableSection) {\n        event.preventDefault()\n        const root = this._rootElement || window\n        const height = observableSection.offsetTop - this._element.offsetTop\n        if (root.scrollTo) {\n          root.scrollTo({ top: height, behavior: 'smooth' })\n          return\n        }\n\n        // Chrome 60 doesn't support `scrollTo`\n        root.scrollTop = height\n      }\n    })\n  }\n\n  _getNewObserver() {\n    const options = {\n      root: this._rootElement,\n      threshold: this._config.threshold,\n      rootMargin: this._config.rootMargin\n    }\n\n    return new IntersectionObserver(entries => this._observerCallback(entries), options)\n  }\n\n  // The logic of selection\n  _observerCallback(entries) {\n    const targetElement = entry => this._targetLinks.get(`#${entry.target.id}`)\n    const activate = entry => {\n      this._previousScrollData.visibleEntryTop = entry.target.offsetTop\n      this._process(targetElement(entry))\n    }\n\n    const parentScrollTop = (this._rootElement || document.documentElement).scrollTop\n    const userScrollsDown = parentScrollTop >= this._previousScrollData.parentScrollTop\n    this._previousScrollData.parentScrollTop = parentScrollTop\n\n    for (const entry of entries) {\n      if (!entry.isIntersecting) {\n        this._activeTarget = null\n        this._clearActiveClass(targetElement(entry))\n\n        continue\n      }\n\n      const entryIsLowerThanPrevious = entry.target.offsetTop >= this._previousScrollData.visibleEntryTop\n      // if we are scrolling down, pick the bigger offsetTop\n      if (userScrollsDown && entryIsLowerThanPrevious) {\n        activate(entry)\n        // if parent isn't scrolled, let's keep the first visible item, breaking the iteration\n        if (!parentScrollTop) {\n          return\n        }\n\n        continue\n      }\n\n      // if we are scrolling up, pick the smallest offsetTop\n      if (!userScrollsDown && !entryIsLowerThanPrevious) {\n        activate(entry)\n      }\n    }\n  }\n\n  _initializeTargetsAndObservables() {\n    this._targetLinks = new Map()\n    this._observableSections = new Map()\n\n    const targetLinks = SelectorEngine.find(SELECTOR_TARGET_LINKS, this._config.target)\n\n    for (const anchor of targetLinks) {\n      // ensure that the anchor has an id and is not disabled\n      if (!anchor.hash || isDisabled(anchor)) {\n        continue\n      }\n\n      const observableSection = SelectorEngine.findOne(decodeURI(anchor.hash), this._element)\n\n      // ensure that the observableSection exists & is visible\n      if (isVisible(observableSection)) {\n        this._targetLinks.set(decodeURI(anchor.hash), anchor)\n        this._observableSections.set(anchor.hash, observableSection)\n      }\n    }\n  }\n\n  _process(target) {\n    if (this._activeTarget === target) {\n      return\n    }\n\n    this._clearActiveClass(this._config.target)\n    this._activeTarget = target\n    target.classList.add(CLASS_NAME_ACTIVE)\n    this._activateParents(target)\n\n    EventHandler.trigger(this._element, EVENT_ACTIVATE, { relatedTarget: target })\n  }\n\n  _activateParents(target) {\n    // Activate dropdown parents\n    if (target.classList.contains(CLASS_NAME_DROPDOWN_ITEM)) {\n      SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE, target.closest(SELECTOR_DROPDOWN))\n        .classList.add(CLASS_NAME_ACTIVE)\n      return\n    }\n\n    for (const listGroup of SelectorEngine.parents(target, SELECTOR_NAV_LIST_GROUP)) {\n      // Set triggered links parents as active\n      // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor\n      for (const item of SelectorEngine.prev(listGroup, SELECTOR_LINK_ITEMS)) {\n        item.classList.add(CLASS_NAME_ACTIVE)\n      }\n    }\n  }\n\n  _clearActiveClass(parent) {\n    parent.classList.remove(CLASS_NAME_ACTIVE)\n\n    const activeNodes = SelectorEngine.find(`${SELECTOR_TARGET_LINKS}.${CLASS_NAME_ACTIVE}`, parent)\n    for (const node of activeNodes) {\n      node.classList.remove(CLASS_NAME_ACTIVE)\n    }\n  }\n\n  // Static\n  static jQueryInterface(config) {\n    return this.each(function () {\n      const data = ScrollSpy.getOrCreateInstance(this, config)\n\n      if (typeof config !== 'string') {\n        return\n      }\n\n      if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n        throw new TypeError(`No method named \"${config}\"`)\n      }\n\n      data[config]()\n    })\n  }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(window, EVENT_LOAD_DATA_API, () => {\n  for (const spy of SelectorEngine.find(SELECTOR_DATA_SPY)) {\n    ScrollSpy.getOrCreateInstance(spy)\n  }\n})\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(ScrollSpy)\n\nexport default ScrollSpy\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap tab.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js'\nimport EventHandler from './dom/event-handler.js'\nimport SelectorEngine from './dom/selector-engine.js'\nimport { defineJQueryPlugin, getNextActiveElement, isDisabled } from './util/index.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'tab'\nconst DATA_KEY = 'bs.tab'\nconst EVENT_KEY = `.${DATA_KEY}`\n\nconst EVENT_HIDE = `hide${EVENT_KEY}`\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`\nconst EVENT_SHOW = `show${EVENT_KEY}`\nconst EVENT_SHOWN = `shown${EVENT_KEY}`\nconst EVENT_CLICK_DATA_API = `click${EVENT_KEY}`\nconst EVENT_KEYDOWN = `keydown${EVENT_KEY}`\nconst EVENT_LOAD_DATA_API = `load${EVENT_KEY}`\n\nconst ARROW_LEFT_KEY = 'ArrowLeft'\nconst ARROW_RIGHT_KEY = 'ArrowRight'\nconst ARROW_UP_KEY = 'ArrowUp'\nconst ARROW_DOWN_KEY = 'ArrowDown'\nconst HOME_KEY = 'Home'\nconst END_KEY = 'End'\n\nconst CLASS_NAME_ACTIVE = 'active'\nconst CLASS_NAME_FADE = 'fade'\nconst CLASS_NAME_SHOW = 'show'\nconst CLASS_DROPDOWN = 'dropdown'\n\nconst SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle'\nconst SELECTOR_DROPDOWN_MENU = '.dropdown-menu'\nconst NOT_SELECTOR_DROPDOWN_TOGGLE = `:not(${SELECTOR_DROPDOWN_TOGGLE})`\n\nconst SELECTOR_TAB_PANEL = '.list-group, .nav, [role=\"tablist\"]'\nconst SELECTOR_OUTER = '.nav-item, .list-group-item'\nconst SELECTOR_INNER = `.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role=\"tab\"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`\nconst SELECTOR_DATA_TOGGLE = '[data-bs-toggle=\"tab\"], [data-bs-toggle=\"pill\"], [data-bs-toggle=\"list\"]' // TODO: could only be `tab` in v6\nconst SELECTOR_INNER_ELEM = `${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`\n\nconst SELECTOR_DATA_TOGGLE_ACTIVE = `.${CLASS_NAME_ACTIVE}[data-bs-toggle=\"tab\"], .${CLASS_NAME_ACTIVE}[data-bs-toggle=\"pill\"], .${CLASS_NAME_ACTIVE}[data-bs-toggle=\"list\"]`\n\n/**\n * Class definition\n */\n\nclass Tab extends BaseComponent {\n  constructor(element) {\n    super(element)\n    this._parent = this._element.closest(SELECTOR_TAB_PANEL)\n\n    if (!this._parent) {\n      return\n      // TODO: should throw exception in v6\n      // throw new TypeError(`${element.outerHTML} has not a valid parent ${SELECTOR_INNER_ELEM}`)\n    }\n\n    // Set up initial aria attributes\n    this._setInitialAttributes(this._parent, this._getChildren())\n\n    EventHandler.on(this._element, EVENT_KEYDOWN, event => this._keydown(event))\n  }\n\n  // Getters\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  show() { // Shows this elem and deactivate the active sibling if exists\n    const innerElem = this._element\n    if (this._elemIsActive(innerElem)) {\n      return\n    }\n\n    // Search for active tab on same parent to deactivate it\n    const active = this._getActiveElem()\n\n    const hideEvent = active ?\n      EventHandler.trigger(active, EVENT_HIDE, { relatedTarget: innerElem }) :\n      null\n\n    const showEvent = EventHandler.trigger(innerElem, EVENT_SHOW, { relatedTarget: active })\n\n    if (showEvent.defaultPrevented || (hideEvent && hideEvent.defaultPrevented)) {\n      return\n    }\n\n    this._deactivate(active, innerElem)\n    this._activate(innerElem, active)\n  }\n\n  // Private\n  _activate(element, relatedElem) {\n    if (!element) {\n      return\n    }\n\n    element.classList.add(CLASS_NAME_ACTIVE)\n\n    this._activate(SelectorEngine.getElementFromSelector(element)) // Search and activate/show the proper section\n\n    const complete = () => {\n      if (element.getAttribute('role') !== 'tab') {\n        element.classList.add(CLASS_NAME_SHOW)\n        return\n      }\n\n      element.removeAttribute('tabindex')\n      element.setAttribute('aria-selected', true)\n      this._toggleDropDown(element, true)\n      EventHandler.trigger(element, EVENT_SHOWN, {\n        relatedTarget: relatedElem\n      })\n    }\n\n    this._queueCallback(complete, element, element.classList.contains(CLASS_NAME_FADE))\n  }\n\n  _deactivate(element, relatedElem) {\n    if (!element) {\n      return\n    }\n\n    element.classList.remove(CLASS_NAME_ACTIVE)\n    element.blur()\n\n    this._deactivate(SelectorEngine.getElementFromSelector(element)) // Search and deactivate the shown section too\n\n    const complete = () => {\n      if (element.getAttribute('role') !== 'tab') {\n        element.classList.remove(CLASS_NAME_SHOW)\n        return\n      }\n\n      element.setAttribute('aria-selected', false)\n      element.setAttribute('tabindex', '-1')\n      this._toggleDropDown(element, false)\n      EventHandler.trigger(element, EVENT_HIDDEN, { relatedTarget: relatedElem })\n    }\n\n    this._queueCallback(complete, element, element.classList.contains(CLASS_NAME_FADE))\n  }\n\n  _keydown(event) {\n    if (!([ARROW_LEFT_KEY, ARROW_RIGHT_KEY, ARROW_UP_KEY, ARROW_DOWN_KEY, HOME_KEY, END_KEY].includes(event.key))) {\n      return\n    }\n\n    event.stopPropagation()// stopPropagation/preventDefault both added to support up/down keys without scrolling the page\n    event.preventDefault()\n\n    const children = this._getChildren().filter(element => !isDisabled(element))\n    let nextActiveElement\n\n    if ([HOME_KEY, END_KEY].includes(event.key)) {\n      nextActiveElement = children[event.key === HOME_KEY ? 0 : children.length - 1]\n    } else {\n      const isNext = [ARROW_RIGHT_KEY, ARROW_DOWN_KEY].includes(event.key)\n      nextActiveElement = getNextActiveElement(children, event.target, isNext, true)\n    }\n\n    if (nextActiveElement) {\n      nextActiveElement.focus({ preventScroll: true })\n      Tab.getOrCreateInstance(nextActiveElement).show()\n    }\n  }\n\n  _getChildren() { // collection of inner elements\n    return SelectorEngine.find(SELECTOR_INNER_ELEM, this._parent)\n  }\n\n  _getActiveElem() {\n    return this._getChildren().find(child => this._elemIsActive(child)) || null\n  }\n\n  _setInitialAttributes(parent, children) {\n    this._setAttributeIfNotExists(parent, 'role', 'tablist')\n\n    for (const child of children) {\n      this._setInitialAttributesOnChild(child)\n    }\n  }\n\n  _setInitialAttributesOnChild(child) {\n    child = this._getInnerElement(child)\n    const isActive = this._elemIsActive(child)\n    const outerElem = this._getOuterElement(child)\n    child.setAttribute('aria-selected', isActive)\n\n    if (outerElem !== child) {\n      this._setAttributeIfNotExists(outerElem, 'role', 'presentation')\n    }\n\n    if (!isActive) {\n      child.setAttribute('tabindex', '-1')\n    }\n\n    this._setAttributeIfNotExists(child, 'role', 'tab')\n\n    // set attributes to the related panel too\n    this._setInitialAttributesOnTargetPanel(child)\n  }\n\n  _setInitialAttributesOnTargetPanel(child) {\n    const target = SelectorEngine.getElementFromSelector(child)\n\n    if (!target) {\n      return\n    }\n\n    this._setAttributeIfNotExists(target, 'role', 'tabpanel')\n\n    if (child.id) {\n      this._setAttributeIfNotExists(target, 'aria-labelledby', `${child.id}`)\n    }\n  }\n\n  _toggleDropDown(element, open) {\n    const outerElem = this._getOuterElement(element)\n    if (!outerElem.classList.contains(CLASS_DROPDOWN)) {\n      return\n    }\n\n    const toggle = (selector, className) => {\n      const element = SelectorEngine.findOne(selector, outerElem)\n      if (element) {\n        element.classList.toggle(className, open)\n      }\n    }\n\n    toggle(SELECTOR_DROPDOWN_TOGGLE, CLASS_NAME_ACTIVE)\n    toggle(SELECTOR_DROPDOWN_MENU, CLASS_NAME_SHOW)\n    outerElem.setAttribute('aria-expanded', open)\n  }\n\n  _setAttributeIfNotExists(element, attribute, value) {\n    if (!element.hasAttribute(attribute)) {\n      element.setAttribute(attribute, value)\n    }\n  }\n\n  _elemIsActive(elem) {\n    return elem.classList.contains(CLASS_NAME_ACTIVE)\n  }\n\n  // Try to get the inner element (usually the .nav-link)\n  _getInnerElement(elem) {\n    return elem.matches(SELECTOR_INNER_ELEM) ? elem : SelectorEngine.findOne(SELECTOR_INNER_ELEM, elem)\n  }\n\n  // Try to get the outer element (usually the .nav-item)\n  _getOuterElement(elem) {\n    return elem.closest(SELECTOR_OUTER) || elem\n  }\n\n  // Static\n  static jQueryInterface(config) {\n    return this.each(function () {\n      const data = Tab.getOrCreateInstance(this)\n\n      if (typeof config !== 'string') {\n        return\n      }\n\n      if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n        throw new TypeError(`No method named \"${config}\"`)\n      }\n\n      data[config]()\n    })\n  }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {\n  if (['A', 'AREA'].includes(this.tagName)) {\n    event.preventDefault()\n  }\n\n  if (isDisabled(this)) {\n    return\n  }\n\n  Tab.getOrCreateInstance(this).show()\n})\n\n/**\n * Initialize on focus\n */\nEventHandler.on(window, EVENT_LOAD_DATA_API, () => {\n  for (const element of SelectorEngine.find(SELECTOR_DATA_TOGGLE_ACTIVE)) {\n    Tab.getOrCreateInstance(element)\n  }\n})\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Tab)\n\nexport default Tab\n","/**\n * --------------------------------------------------------------------------\n * Bootstrap toast.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js'\nimport EventHandler from './dom/event-handler.js'\nimport { enableDismissTrigger } from './util/component-functions.js'\nimport { defineJQueryPlugin, reflow } from './util/index.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'toast'\nconst DATA_KEY = 'bs.toast'\nconst EVENT_KEY = `.${DATA_KEY}`\n\nconst EVENT_MOUSEOVER = `mouseover${EVENT_KEY}`\nconst EVENT_MOUSEOUT = `mouseout${EVENT_KEY}`\nconst EVENT_FOCUSIN = `focusin${EVENT_KEY}`\nconst EVENT_FOCUSOUT = `focusout${EVENT_KEY}`\nconst EVENT_HIDE = `hide${EVENT_KEY}`\nconst EVENT_HIDDEN = `hidden${EVENT_KEY}`\nconst EVENT_SHOW = `show${EVENT_KEY}`\nconst EVENT_SHOWN = `shown${EVENT_KEY}`\n\nconst CLASS_NAME_FADE = 'fade'\nconst CLASS_NAME_HIDE = 'hide' // @deprecated - kept here only for backwards compatibility\nconst CLASS_NAME_SHOW = 'show'\nconst CLASS_NAME_SHOWING = 'showing'\n\nconst DefaultType = {\n  animation: 'boolean',\n  autohide: 'boolean',\n  delay: 'number'\n}\n\nconst Default = {\n  animation: true,\n  autohide: true,\n  delay: 5000\n}\n\n/**\n * Class definition\n */\n\nclass Toast extends BaseComponent {\n  constructor(element, config) {\n    super(element, config)\n\n    this._timeout = null\n    this._hasMouseInteraction = false\n    this._hasKeyboardInteraction = false\n    this._setListeners()\n  }\n\n  // Getters\n  static get Default() {\n    return Default\n  }\n\n  static get DefaultType() {\n    return DefaultType\n  }\n\n  static get NAME() {\n    return NAME\n  }\n\n  // Public\n  show() {\n    const showEvent = EventHandler.trigger(this._element, EVENT_SHOW)\n\n    if (showEvent.defaultPrevented) {\n      return\n    }\n\n    this._clearTimeout()\n\n    if (this._config.animation) {\n      this._element.classList.add(CLASS_NAME_FADE)\n    }\n\n    const complete = () => {\n      this._element.classList.remove(CLASS_NAME_SHOWING)\n      EventHandler.trigger(this._element, EVENT_SHOWN)\n\n      this._maybeScheduleHide()\n    }\n\n    this._element.classList.remove(CLASS_NAME_HIDE) // @deprecated\n    reflow(this._element)\n    this._element.classList.add(CLASS_NAME_SHOW, CLASS_NAME_SHOWING)\n\n    this._queueCallback(complete, this._element, this._config.animation)\n  }\n\n  hide() {\n    if (!this.isShown()) {\n      return\n    }\n\n    const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE)\n\n    if (hideEvent.defaultPrevented) {\n      return\n    }\n\n    const complete = () => {\n      this._element.classList.add(CLASS_NAME_HIDE) // @deprecated\n      this._element.classList.remove(CLASS_NAME_SHOWING, CLASS_NAME_SHOW)\n      EventHandler.trigger(this._element, EVENT_HIDDEN)\n    }\n\n    this._element.classList.add(CLASS_NAME_SHOWING)\n    this._queueCallback(complete, this._element, this._config.animation)\n  }\n\n  dispose() {\n    this._clearTimeout()\n\n    if (this.isShown()) {\n      this._element.classList.remove(CLASS_NAME_SHOW)\n    }\n\n    super.dispose()\n  }\n\n  isShown() {\n    return this._element.classList.contains(CLASS_NAME_SHOW)\n  }\n\n  // Private\n  _maybeScheduleHide() {\n    if (!this._config.autohide) {\n      return\n    }\n\n    if (this._hasMouseInteraction || this._hasKeyboardInteraction) {\n      return\n    }\n\n    this._timeout = setTimeout(() => {\n      this.hide()\n    }, this._config.delay)\n  }\n\n  _onInteraction(event, isInteracting) {\n    switch (event.type) {\n      case 'mouseover':\n      case 'mouseout': {\n        this._hasMouseInteraction = isInteracting\n        break\n      }\n\n      case 'focusin':\n      case 'focusout': {\n        this._hasKeyboardInteraction = isInteracting\n        break\n      }\n\n      default: {\n        break\n      }\n    }\n\n    if (isInteracting) {\n      this._clearTimeout()\n      return\n    }\n\n    const nextElement = event.relatedTarget\n    if (this._element === nextElement || this._element.contains(nextElement)) {\n      return\n    }\n\n    this._maybeScheduleHide()\n  }\n\n  _setListeners() {\n    EventHandler.on(this._element, EVENT_MOUSEOVER, event => this._onInteraction(event, true))\n    EventHandler.on(this._element, EVENT_MOUSEOUT, event => this._onInteraction(event, false))\n    EventHandler.on(this._element, EVENT_FOCUSIN, event => this._onInteraction(event, true))\n    EventHandler.on(this._element, EVENT_FOCUSOUT, event => this._onInteraction(event, false))\n  }\n\n  _clearTimeout() {\n    clearTimeout(this._timeout)\n    this._timeout = null\n  }\n\n  // Static\n  static jQueryInterface(config) {\n    return this.each(function () {\n      const data = Toast.getOrCreateInstance(this, config)\n\n      if (typeof config === 'string') {\n        if (typeof data[config] === 'undefined') {\n          throw new TypeError(`No method named \"${config}\"`)\n        }\n\n        data[config](this)\n      }\n    })\n  }\n}\n\n/**\n * Data API implementation\n */\n\nenableDismissTrigger(Toast)\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Toast)\n\nexport default Toast\n","Object.defineProperty(exports,\"__esModule\",{value:!0});for(var r={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(r){return\"string\"==typeof r?r.length>0:\"number\"==typeof r},n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},u=function(r){return(r=isFinite(r)?r%360:0)<0?r+360:r},o=function(r,t){return void 0===t&&(t=0),n(r,t)%360},a=function(r){return{r:e(r.r,0,255),g:e(r.g,0,255),b:e(r.b,0,255),a:e(r.a)}},i=function(r){return{r:n(r.r),g:n(r.g),b:n(r.b),a:n(r.a,3)}},s=/^#([0-9a-f]{3,8})$/i,d=function(r,t){var n=r.charCodeAt(t);return(15&n)+9*(n>>6)},h=function(r,t){return d(r,t)<<4|d(r,t+1)},b=[],f=0;f<256;f++)b.push((f<16?\"0\":\"\")+f.toString(16));var g=function(r){return b[e(r,0,255)]},c=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,o=Math.max(t,n,e),a=o-Math.min(t,n,e),i=a?o===t?(n-e)/a:o===n?2+(e-t)/a:4+(t-n)/a:0;return{h:60*(i<0?i+6:i),s:o?a/o*100:0,v:o/255*100,a:u}},l=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var o=Math.floor(t),a=e*(1-n),i=e*(1-(t-o)*n),s=e*(1-(1-t+o)*n),d=o%6;return{r:255*[e,i,a,a,s,e][d],g:255*[s,e,e,i,a,a][d],b:255*[a,a,s,e,e,i][d],a:u}},p=function(r){return{h:u(r.h),s:e(r.s,0,100),l:e(r.l,0,100),a:e(r.a)}},v=function(r){return{h:o(r.h),s:n(r.s),l:n(r.l),a:n(r.a,3)}},m=function(r){return l((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},y=function(r){return{h:(t=c(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},N=/^hsla?\\(\\s*([+-]?(?:\\d*\\.\\d+|\\d+))(deg|rad|grad|turn)?\\s*,\\s*([+-]?(?:\\d*\\.\\d+|\\d+))%\\s*,\\s*([+-]?(?:\\d*\\.\\d+|\\d+))%\\s*(?:,\\s*([+-]?(?:\\d*\\.\\d+|\\d+))(%)?\\s*)?\\)$/i,x=/^hsla?\\(\\s*([+-]?(?:\\d*\\.\\d+|\\d+))(deg|rad|grad|turn)?\\s+([+-]?(?:\\d*\\.\\d+|\\d+))%\\s+([+-]?(?:\\d*\\.\\d+|\\d+))%\\s*(?:\\/\\s*([+-]?(?:\\d*\\.\\d+|\\d+))(%)?\\s*)?\\)$/i,M=/^rgba?\\(\\s*([+-]?(?:\\d*\\.\\d+|\\d+))(%)?\\s*,\\s*([+-]?(?:\\d*\\.\\d+|\\d+))(%)?\\s*,\\s*([+-]?(?:\\d*\\.\\d+|\\d+))(%)?\\s*(?:,\\s*([+-]?(?:\\d*\\.\\d+|\\d+))(%)?\\s*)?\\)$/i,H=/^rgba?\\(\\s*([+-]?(?:\\d*\\.\\d+|\\d+))(%)?\\s+([+-]?(?:\\d*\\.\\d+|\\d+))(%)?\\s+([+-]?(?:\\d*\\.\\d+|\\d+))(%)?\\s*(?:\\/\\s*([+-]?(?:\\d*\\.\\d+|\\d+))(%)?\\s*)?\\)$/i,$={string:[[function(r){if(!s.test(r))return null;var t=r.length;return t<=5?{r:17*d(r,1),g:17*d(r,2),b:17*d(r,3),a:5===t?n(17*d(r,4)/255,2):1}:7===t||9===t?{r:h(r,1),g:h(r,3),b:h(r,5),a:9===t?n(h(r,7)/255,2):1}:null},\"hex\"],[function(r){var t=M.exec(r)||H.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},\"rgb\"],[function(t){var n=N.exec(t)||x.exec(t);if(!n)return null;var e,u,o=p({h:(e=n[1],u=n[2],void 0===u&&(u=\"deg\"),Number(e)*(r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return m(o)},\"hsl\"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return t(n)&&t(e)&&t(u)?a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},\"rgb\"],[function(r){var n=r.h,e=r.s,u=r.l,o=r.a,a=void 0===o?1:o;if(!t(n)||!t(e)||!t(u))return null;var i=p({h:Number(n),s:Number(e),l:Number(u),a:Number(a)});return m(i)},\"hsl\"],[function(r){var n=r.h,o=r.s,a=r.v,i=r.a,s=void 0===i?1:i;if(!t(n)||!t(o)||!t(a))return null;var d=function(r){return{h:u(r.h),s:e(r.s,0,100),v:e(r.v,0,100),a:e(r.a)}}({h:Number(n),s:Number(o),v:Number(a),a:Number(s)});return l(d)},\"hsv\"]]},j=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},w=function(r){return\"string\"==typeof r?j(r.trim(),$.string):\"object\"==typeof r&&null!==r?j(r,$.object):[null,void 0]},S=function(r,t){var n=y(r);return{h:n.h,s:e(n.s+100*t,0,100),l:n.l,a:n.a}},k=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},C=function(r,t){var n=y(r);return{h:n.h,s:n.s,l:e(n.l+100*t,0,100),a:n.a}},E=function(){function r(r){this.parsed=w(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return n(k(this.rgba),2)},r.prototype.isDark=function(){return k(this.rgba)<.5},r.prototype.isLight=function(){return k(this.rgba)>=.5},r.prototype.toHex=function(){return r=i(this.rgba),t=r.r,e=r.g,u=r.b,a=(o=r.a)<1?g(n(255*o)):\"\",\"#\"+g(t)+g(e)+g(u)+a;var r,t,e,u,o,a},r.prototype.toRgb=function(){return i(this.rgba)},r.prototype.toRgbString=function(){return r=i(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?\"rgba(\"+t+\", \"+n+\", \"+e+\", \"+u+\")\":\"rgb(\"+t+\", \"+n+\", \"+e+\")\";var r,t,n,e,u},r.prototype.toHsl=function(){return v(y(this.rgba))},r.prototype.toHslString=function(){return r=v(y(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?\"hsla(\"+t+\", \"+n+\"%, \"+e+\"%, \"+u+\")\":\"hsl(\"+t+\", \"+n+\"%, \"+e+\"%)\";var r,t,n,e,u},r.prototype.toHsv=function(){return r=c(this.rgba),{h:o(r.h),s:n(r.s),v:n(r.v),a:n(r.a,3)};var r},r.prototype.invert=function(){return F({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),F(S(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),F(S(this.rgba,-r))},r.prototype.grayscale=function(){return F(S(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),F(C(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),F(C(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(y(this.rgba).h+r)},r.prototype.alpha=function(r){return\"number\"==typeof r?F({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=y(this.rgba);return\"number\"==typeof r?F({h:r,s:t.s,l:t.l,a:t.a}):o(t.h)},r.prototype.isEqual=function(r){return this.toHex()===F(r).toHex()},r}(),F=function(r){return r instanceof E?r:new E(r)},O=[];exports.Colord=E,exports.colord=F,exports.extend=function(r){r.forEach(function(r){O.indexOf(r)<0&&(r(E,$),O.push(r))})},exports.getFormat=function(r){return w(r)[1]},exports.random=function(){return new E({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};\n","var o=function(o){var t=o/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},t=function(t){return.2126*o(t.r)+.7152*o(t.g)+.0722*o(t.b)};module.exports=function(o){o.prototype.luminance=function(){return o=t(this.rgba),void 0===(r=2)&&(r=0),void 0===n&&(n=Math.pow(10,r)),Math.round(n*o)/n+0;var o,r,n},o.prototype.contrast=function(r){void 0===r&&(r=\"#FFF\");var n,i,a,e,v,u,d,c=r instanceof o?r:new o(r);return e=this.rgba,v=c.toRgb(),u=t(e),d=t(v),n=u>d?(u+.05)/(d+.05):(d+.05)/(u+.05),void 0===(i=2)&&(i=0),void 0===a&&(a=Math.pow(10,i)),Math.floor(a*n)/a+0},o.prototype.isReadable=function(o,t){return void 0===o&&(o=\"#FFF\"),void 0===t&&(t={}),this.contrast(o)>=(e=void 0===(a=(r=t).size)?\"normal\":a,\"AAA\"===(i=void 0===(n=r.level)?\"AA\":n)&&\"normal\"===e?7:\"AA\"===i&&\"large\"===e?3:4.5);var r,n,i,a,e}};\n","interface ScrollDeltas {\n  deltaX: number;\n  deltaY: number;\n}\ninterface ScrollInformation {\n  element: Element;\n  scrollLeft: number;\n  scrollTop: number;\n}\n\n/**\n * Mode that expresses the deltas in pixels.\n */\nexport const DOM_DELTA_PIXEL = 0;\n/**\n * Mode that expresses the deltas in lines.\n *\n * This only happens in Firefox for Windows.\n *\n * Reference: https://stackoverflow.com/a/37474225\n */\nexport const DOM_DELTA_LINE = 1;\n/**\n * Mode that expresses the deltas in pages.\n *\n * This only happens in Firefox for Windows with\n * a custom OS setting activated.\n *\n * Reference: https://stackoverflow.com/a/37474225\n */\nexport const DOM_DELTA_PAGE = 2;\n\n/**\n * Number of lines per page considered for\n * DOM_DELTA_PAGE.\n *\n */\nexport const LINES_PER_PAGE = 3;\n\nlet scrollLineHeight: number | undefined = undefined;\n\nexport function getScrollDeltas({\n  deltaX = 0,\n  deltaY = 0,\n  deltaMode = DOM_DELTA_PIXEL,\n}): ScrollDeltas {\n  if (deltaMode !== DOM_DELTA_PIXEL) {\n    if (deltaMode === DOM_DELTA_PAGE) {\n      deltaX *= LINES_PER_PAGE;\n      deltaY *= LINES_PER_PAGE;\n    }\n    const scrollLineHeight = getScrollLineHeight();\n    if (scrollLineHeight !== undefined) {\n      deltaX *= scrollLineHeight;\n      deltaY *= scrollLineHeight;\n    }\n  }\n\n  return { deltaX, deltaY };\n}\n\nexport function getScrollLineHeight(): number | undefined {\n  if (scrollLineHeight === undefined) {\n    const iframe = document.createElement('iframe');\n    iframe.src = '#';\n    iframe.style.position = 'absolute';\n    iframe.style.visibility = 'hidden';\n    iframe.style.width = '0px';\n    iframe.style.height = '0px';\n    iframe.style.border = 'none';\n    document.body.appendChild(iframe);\n    const iframeDocument = (iframe.contentWindow as Window).document;\n    iframeDocument.open();\n    iframeDocument.write(\n      '<!doctype html><html><head></head><body><span>X</span></body></html>',\n    );\n    iframeDocument.close();\n    const body = iframeDocument.body;\n    scrollLineHeight = (body.firstElementChild as HTMLElement).offsetHeight;\n    document.body.removeChild(iframe);\n  }\n  return scrollLineHeight;\n}\n\nexport function getAvailableScroll(element: Element, container: Element) {\n  const availableScroll = {\n    deltaXNegative: 0,\n    deltaXPositive: 0,\n    deltaYNegative: 0,\n    deltaYPositive: 0,\n  };\n\n  let scrollLeftMax, scrollTopMax;\n  while (container.contains(element) || container === element) {\n    scrollLeftMax = element.scrollWidth - element.clientWidth;\n    scrollTopMax = element.scrollHeight - element.clientHeight;\n\n    availableScroll.deltaXNegative += -element.scrollLeft;\n    availableScroll.deltaXPositive += scrollLeftMax - element.scrollLeft;\n    availableScroll.deltaYNegative += -element.scrollTop;\n    availableScroll.deltaYPositive += scrollTopMax - element.scrollTop;\n    const parent = element.parentNode;\n    if (parent === null) break;\n    element = parent as Element;\n  }\n\n  return availableScroll;\n}\n\n/**\n * Calculates the scroll distribution for `element` inside` container.\n */\nfunction calculateScrollDistribution(\n  deltaX: number,\n  deltaY: number,\n  element: Element,\n  container: Element,\n  accumulator: ScrollInformation[] = [],\n): ScrollInformation[] {\n  const scrollInformation: ScrollInformation = {\n    element,\n    scrollLeft: 0,\n    scrollTop: 0,\n  };\n  const scrollLeftMax = element.scrollWidth - element.clientWidth;\n  const scrollTopMax = element.scrollHeight - element.clientHeight;\n\n  const availableScroll = {\n    deltaXNegative: -element.scrollLeft,\n    deltaXPositive: scrollLeftMax - element.scrollLeft,\n    deltaYNegative: -element.scrollTop,\n    deltaYPositive: scrollTopMax - element.scrollTop,\n  };\n\n  const elementStyle = window.getComputedStyle(element);\n\n  if (elementStyle.overflowX !== 'hidden') {\n    // The `deltaX` can be larger than the available scroll for the element, thus overshooting.\n    // The result of that is that it scrolls the element as far as possible. We don't need to\n    // calculate exactly because we reduce the amount of desired scroll for the\n    // parent elements by the correct amount below.\n    scrollInformation.scrollLeft = element.scrollLeft + deltaX;\n    if (deltaX > availableScroll.deltaXPositive) {\n      deltaX = deltaX - availableScroll.deltaXPositive;\n    } else if (deltaX < availableScroll.deltaXNegative) {\n      deltaX = deltaX - availableScroll.deltaXNegative;\n    } else {\n      deltaX = 0;\n    }\n  }\n\n  if (elementStyle.overflowY !== 'hidden') {\n    scrollInformation.scrollTop = element.scrollTop + deltaY;\n    if (deltaY > availableScroll.deltaYPositive) {\n      deltaY = deltaY - availableScroll.deltaYPositive;\n    } else if (deltaY < availableScroll.deltaYNegative) {\n      deltaY = deltaY - availableScroll.deltaYNegative;\n    } else {\n      deltaY = 0;\n    }\n  }\n\n  if (element !== container && (deltaX || deltaY)) {\n    return calculateScrollDistribution(\n      deltaX,\n      deltaY,\n      element.parentNode as Element,\n      container,\n      accumulator.concat([scrollInformation]),\n    );\n  }\n\n  return accumulator.concat([scrollInformation]);\n}\n\n// Recursively walks up scroll containers until the delta is distributed or we\n// run out of elements in the allowed-to-scroll container.\nexport function distributeScroll(\n  deltaX: number,\n  deltaY: number,\n  element: Element,\n  container: Element,\n) {\n  const scrollInfos = calculateScrollDistribution(\n    deltaX,\n    deltaY,\n    element,\n    container,\n  );\n  let info;\n\n  for (let i = 0; i < scrollInfos.length; i++) {\n    info = scrollInfos[i];\n    if (info) {\n      info.element.scrollLeft = info.scrollLeft;\n      info.element.scrollTop = info.scrollTop;\n    }\n  }\n}\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { getScrollParent } from '../utils/calculate-position.ts';\nimport {\n  distributeScroll,\n  getAvailableScroll,\n  getScrollDeltas,\n} from '../utils/scroll-helpers.ts';\nimport hasMoved from '../utils/has-moved.ts';\nimport { isTesting } from '@embroider/macros';\nimport { modifier } from 'ember-modifier';\nimport { element, type ElementFromTagName } from 'ember-element-helper';\nimport { or } from 'ember-truth-helpers';\nimport style from 'ember-style-modifier';\nimport { on } from '@ember/modifier';\nimport { fn } from '@ember/helper';\nimport { hash } from '@ember/helper';\nimport type {\n  Dropdown,\n  TRootEventType,\n  HorizontalPosition,\n  VerticalPosition,\n} from '../types.ts';\n\nexport interface BasicDropdownContentSignature<\n  T extends keyof HTMLElementTagNameMap = 'div',\n> {\n  Element: ElementFromTagName<T>;\n  Args: {\n    animationEnabled?: boolean;\n    transitioningInClass?: string;\n    transitionedInClass?: string;\n    transitioningOutClass?: string;\n    isTouchDevice?: boolean;\n    destination?: string;\n    destinationElement?: HTMLElement | null;\n    dropdown?: Dropdown;\n    renderInPlace?: boolean;\n    preventScroll?: boolean | undefined;\n    rootEventType?: TRootEventType;\n    top?: string | undefined;\n    left?: string | undefined;\n    right?: string | undefined;\n    width?: string | undefined;\n    height?: string | undefined;\n    otherStyles?: Record<string, string | number | undefined>;\n    hPosition?: HorizontalPosition | null;\n    vPosition?: VerticalPosition | null;\n    defaultClass?: string;\n    overlay?: boolean;\n    htmlTag?: T | undefined;\n    onFocusIn?: (dropdown?: Dropdown, event?: FocusEvent) => void;\n    onFocusOut?: (dropdown?: Dropdown, event?: FocusEvent) => void;\n    onMouseEnter?: (dropdown?: Dropdown, event?: MouseEvent) => void;\n    onMouseLeave?: (dropdown?: Dropdown, event?: MouseEvent) => void;\n    shouldReposition?: (\n      mutations: MutationRecord[],\n      dropdown?: Dropdown,\n    ) => boolean;\n  };\n  Blocks: {\n    default: [];\n  };\n}\n\ntype RootMouseDownHandler = (ev: MouseEvent | TouchEvent) => void;\n\nexport default class BasicDropdownContent<\n  T extends keyof HTMLElementTagNameMap,\n> extends Component<BasicDropdownContentSignature<T>> {\n  transitioningInClass =\n    this.args.transitioningInClass || 'ember-basic-dropdown--transitioning-in';\n  transitionedInClass =\n    this.args.transitionedInClass || 'ember-basic-dropdown--transitioned-in';\n  transitioningOutClass =\n    this.args.transitioningOutClass ||\n    'ember-basic-dropdown--transitioning-out';\n  isTouchDevice =\n    this.args.isTouchDevice || Boolean(!!window && 'ontouchstart' in window);\n  dropdownId = `ember-basic-dropdown-content-${this.args.dropdown?.uniqueId}`;\n  private touchMoveEvent: TouchEvent | undefined;\n  private handleRootMouseDown?: RootMouseDownHandler;\n  private scrollableAncestors: Element[] = [];\n  private mutationObserver: MutationObserver | undefined;\n  private rootElement: HTMLElement | undefined;\n  @tracked private _contentWormhole?: Element;\n  @tracked animationClass = this.transitioningInClass;\n\n  get destinationElement(): Element | null {\n    if (this.args.destinationElement) {\n      return this.args.destinationElement;\n    }\n\n    if (!this.args.destination) {\n      return null;\n    }\n\n    const element = document.getElementById(this.args.destination);\n\n    if (element) {\n      return element;\n    }\n\n    if (this._contentWormhole) {\n      return (\n        this._contentWormhole.getRootNode() as HTMLElement\n      )?.querySelector('#' + this.args.destination);\n    }\n\n    return null;\n  }\n\n  get animationEnabled(): boolean {\n    const { animationEnabled: animationEnabledArg = true } = this.args;\n\n    return animationEnabledArg && !isTesting();\n  }\n\n  get positionStyles(): Record<string, string> {\n    const style: Record<string, string> = {};\n    if (this.args.top !== undefined) {\n      style['top'] = this.args.top;\n    }\n    if (this.args.left !== undefined) {\n      style['left'] = this.args.left;\n    }\n    if (this.args.right !== undefined) {\n      style['right'] = this.args.right;\n    }\n    if (this.args.width !== undefined) {\n      style['width'] = this.args.width;\n    }\n    if (this.args.height !== undefined) {\n      style['height'] = this.args.height;\n    }\n    return style;\n  }\n\n  get tag(): T {\n    // `T` defaults to `'div'` in the signature, so the fallback matches `ElementFromTagName<T>`\n    return this.args.htmlTag || ('div' as T);\n  }\n\n  /**\n   * Allows similair behaviour to `ember-composable-helpers`' `optional` helper.\n   * Avoids adding extra dependencies.\n   * Can be removed when the template `V1` compatability event handlers are removed.\n   *\n   * @see https://github.com/ember-power-addons/ember-basic-dropdown/issues/498\n   * @memberof BasicDropdownContent\n   */\n  noop(): void {}\n\n  registerDropdownContentWormhole = modifier(\n    (dropdownContentWormhole: Element) => {\n      this._contentWormhole = dropdownContentWormhole;\n    },\n  );\n\n  respondToEvents = modifier((dropdownElement: Element): (() => void) => {\n    if (this.args.dropdown?.actions?.registerDropdownElement) {\n      this.args.dropdown.actions.registerDropdownElement(\n        dropdownElement as HTMLElement,\n      );\n    }\n\n    const selector = `[data-ebd-id=${this.args.dropdown?.uniqueId}-trigger]`;\n    let triggerElement: HTMLElement | null = null;\n    if (typeof this.args.dropdown?.actions?.getTriggerElement === 'function') {\n      triggerElement = this.args.dropdown?.actions?.getTriggerElement();\n    }\n    if (!triggerElement) {\n      triggerElement = document.querySelector(selector);\n    }\n    this.handleRootMouseDown = (e: MouseEvent | TouchEvent): void => {\n      const target = (e.composedPath?.()[0] || e.target) as Element;\n      if (target === null) return;\n      if (\n        hasMoved(e as TouchEvent, this.touchMoveEvent) ||\n        dropdownElement.contains(target) ||\n        (triggerElement && triggerElement.contains(target))\n      ) {\n        this.touchMoveEvent = undefined;\n        return;\n      }\n\n      if (dropdownIsValidParent(triggerElement, target, this.dropdownId)) {\n        this.touchMoveEvent = undefined;\n        return;\n      }\n\n      if (this.args.dropdown?.actions?.close) {\n        this.args.dropdown.actions.close(e, true);\n      }\n    };\n    document.addEventListener(\n      this.args.rootEventType || 'click',\n      this.handleRootMouseDown,\n      true,\n    );\n\n    // We need to register closing event on shadow dom element, otherwise all clicks inside a shadow dom are not closing the dropdown\n    // In additional store the rootElement for outside clicks (ensure that we do removeEventListener on correct element)\n    if (\n      this._contentWormhole &&\n      this._contentWormhole.getRootNode() instanceof ShadowRoot\n    ) {\n      this.rootElement = this._contentWormhole.getRootNode() as HTMLElement;\n    } else {\n      this.rootElement = undefined;\n    }\n\n    if (this.rootElement) {\n      this.rootElement.addEventListener(\n        this.args.rootEventType || 'click',\n        this.handleRootMouseDown,\n        true,\n      );\n    }\n\n    window.addEventListener('resize', this.repositionBound);\n    window.addEventListener('orientationchange', this.repositionBound);\n\n    if (this.isTouchDevice) {\n      document.addEventListener(\n        'touchstart',\n        this.touchStartHandlerBound,\n        true,\n      );\n      document.addEventListener('touchend', this.handleRootMouseDown, true);\n\n      if (this.rootElement) {\n        this.rootElement.addEventListener(\n          'touchstart',\n          this.touchStartHandlerBound,\n          true,\n        );\n        this.rootElement.addEventListener(\n          'touchend',\n          this.handleRootMouseDown,\n          true,\n        );\n      }\n    }\n    if (\n      triggerElement !== null &&\n      !(triggerElement.getRootNode() instanceof ShadowRoot)\n    ) {\n      this.scrollableAncestors = getScrollableAncestors(triggerElement);\n    }\n    this.addScrollHandling(dropdownElement);\n    return () => {\n      this.removeGlobalEvents();\n      this.removeScrollHandling();\n      this.scrollableAncestors = [];\n\n      document.removeEventListener(\n        this.args.rootEventType || 'click',\n        this.handleRootMouseDown as RootMouseDownHandler,\n        true,\n      );\n\n      if (this.rootElement) {\n        this.rootElement.removeEventListener(\n          this.args.rootEventType || 'click',\n          this.handleRootMouseDown as RootMouseDownHandler,\n          true,\n        );\n      }\n\n      if (this.isTouchDevice) {\n        document.removeEventListener(\n          'touchstart',\n          this.touchStartHandlerBound,\n          true,\n        );\n        document.removeEventListener(\n          'touchend',\n          this.handleRootMouseDown as RootMouseDownHandler,\n          true,\n        );\n\n        if (this.rootElement) {\n          this.rootElement.removeEventListener(\n            'touchstart',\n            this.touchStartHandlerBound,\n            true,\n          );\n          this.rootElement.removeEventListener(\n            'touchend',\n            this.handleRootMouseDown as RootMouseDownHandler,\n            true,\n          );\n        }\n      }\n    };\n  });\n\n  initiallyReposition = modifier(() => {\n    // Escape autotracking frame and avoid backtracking re-render\n    void Promise.resolve().then(() => {\n      this.args.dropdown?.actions.reposition();\n    });\n  });\n\n  animateInAndOut = modifier((dropdownElement: Element): (() => void) => {\n    if (!this.animationEnabled) return () => {};\n    waitForAnimations(dropdownElement, () => {\n      this.animationClass = this.transitionedInClass;\n    });\n    return () => {\n      if (!this.animationEnabled) return;\n      let parentElement =\n        dropdownElement.parentElement ?? this.destinationElement;\n      if (parentElement === null) return;\n      if (this.args.renderInPlace) {\n        parentElement = parentElement.parentElement;\n      }\n      if (parentElement === null) return;\n      const clone = dropdownElement.cloneNode(true) as Element;\n      clone.id = `${clone.id}--clone`;\n      clone.classList.remove(...this.transitioningInClass.split(' '));\n      clone.classList.add(...this.transitioningOutClass.split(' '));\n      parentElement.appendChild(clone);\n      this.animationClass = this.transitioningInClass;\n      waitForAnimations(clone, function () {\n        (parentElement as HTMLElement).removeChild(clone);\n      });\n    };\n  });\n\n  observeMutations = modifier((dropdownElement: Element): (() => void) => {\n    this.mutationObserver = new MutationObserver((mutations) => {\n      let shouldReposition = mutations.some(\n        (record: MutationRecord) =>\n          containsRelevantMutation(record.addedNodes) ||\n          containsRelevantMutation(record.removedNodes),\n      );\n\n      if (shouldReposition && this.args.shouldReposition) {\n        shouldReposition = this.args.shouldReposition(\n          mutations,\n          this.args.dropdown,\n        );\n      }\n\n      if (shouldReposition) {\n        this.reposition();\n      }\n    });\n    this.mutationObserver.observe(dropdownElement, {\n      childList: true,\n      subtree: true,\n    });\n    return () => {\n      if (this.mutationObserver !== undefined) {\n        this.mutationObserver.disconnect();\n        this.mutationObserver = undefined;\n      }\n    };\n  });\n\n  @action\n  touchStartHandler(): void {\n    document.addEventListener('touchmove', this.touchMoveHandlerBound, true);\n\n    if (\n      this._contentWormhole &&\n      this._contentWormhole.getRootNode() instanceof ShadowRoot\n    ) {\n      const rootElement = this._contentWormhole.getRootNode() as HTMLElement;\n      rootElement.addEventListener(\n        'touchmove',\n        this.touchMoveHandlerBound,\n        true,\n      );\n    }\n  }\n\n  @action\n  touchMoveHandler(e: TouchEvent): void {\n    this.touchMoveEvent = e;\n    document.removeEventListener('touchmove', this.touchMoveHandlerBound, true);\n\n    if (\n      this._contentWormhole &&\n      this._contentWormhole.getRootNode() instanceof ShadowRoot\n    ) {\n      const rootElement = this._contentWormhole.getRootNode() as HTMLElement;\n      rootElement.removeEventListener(\n        'touchmove',\n        this.touchMoveHandlerBound,\n        true,\n      );\n    }\n  }\n\n  @action\n  reposition(): void {\n    if (!this.args.dropdown) {\n      return;\n    }\n\n    this.args.dropdown.actions.reposition();\n  }\n\n  @action\n  removeGlobalEvents(): void {\n    window.removeEventListener('resize', this.repositionBound);\n    window.removeEventListener('orientationchange', this.repositionBound);\n  }\n\n  touchMoveHandlerBound = (e: TouchEvent) => this.touchMoveHandler(e);\n  repositionBound = () => this.reposition();\n  touchStartHandlerBound = () => this.touchStartHandler();\n\n  // Methods\n  addScrollHandling(dropdownElement: Element): void {\n    if (this.args.preventScroll === true) {\n      const wheelHandler = (event: WheelEvent) => {\n        const target = (event.composedPath?.()[0] || event.target) as Element;\n        if (target === null) return;\n        if (\n          dropdownElement.contains(target) ||\n          dropdownElement === event.target\n        ) {\n          // Discover the amount of scrollable canvas that is within the dropdown.\n          const availableScroll = getAvailableScroll(target, dropdownElement);\n\n          // Calculate what the event's desired change to that scrollable canvas is.\n          let { deltaX, deltaY } = getScrollDeltas(event);\n\n          // If the consequence of the wheel action would result in scrolling beyond\n          // the scrollable canvas of the dropdown, call preventDefault() and clamp\n          // the value of the delta to the available scroll size.\n          if (deltaX < availableScroll.deltaXNegative) {\n            deltaX = availableScroll.deltaXNegative;\n            event.preventDefault();\n          } else if (deltaX > availableScroll.deltaXPositive) {\n            deltaX = availableScroll.deltaXPositive;\n            event.preventDefault();\n          } else if (deltaY < availableScroll.deltaYNegative) {\n            deltaY = availableScroll.deltaYNegative;\n            event.preventDefault();\n          } else if (deltaY > availableScroll.deltaYPositive) {\n            deltaY = availableScroll.deltaYPositive;\n            event.preventDefault();\n          }\n\n          // Add back in the default behavior for the two good states that the above\n          // `preventDefault()` code will break.\n          // - Two-axis scrolling on a one-axis scroll container\n          // - The last relevant wheel event if the scroll is overshooting\n\n          // Also, don't attempt to do this if both of `deltaX` or `deltaY` are 0.\n          if (event.defaultPrevented && (deltaX || deltaY)) {\n            distributeScroll(deltaX, deltaY, target, dropdownElement);\n          }\n        } else {\n          // Scrolling outside of the dropdown is prohibited.\n          event.preventDefault();\n        }\n      };\n      document.addEventListener('wheel', wheelHandler, {\n        capture: true,\n        passive: false,\n      });\n\n      if (\n        this._contentWormhole &&\n        this._contentWormhole.getRootNode() instanceof ShadowRoot\n      ) {\n        const rootElement = this._contentWormhole.getRootNode() as HTMLElement;\n        rootElement.addEventListener('wheel', wheelHandler, {\n          capture: true,\n          passive: false,\n        });\n      }\n\n      this.removeScrollHandling = () => {\n        document.removeEventListener('wheel', wheelHandler, { capture: true });\n\n        if (\n          this._contentWormhole &&\n          this._contentWormhole.getRootNode() instanceof ShadowRoot\n        ) {\n          const rootElement =\n            this._contentWormhole.getRootNode() as HTMLElement;\n          rootElement.removeEventListener('wheel', wheelHandler, {\n            capture: true,\n          });\n        }\n      };\n    } else {\n      this.addScrollEvents();\n      this.removeScrollHandling = this.removeScrollEvents.bind(this);\n    }\n  }\n\n  // Assigned at runtime to ensure that changes to the `preventScroll` property\n  // don't result in not cleaning up after ourselves.\n  removeScrollHandling(): void {}\n\n  // These two functions wire up scroll handling if `preventScroll` is false.\n  // These trigger reposition of the dropdown.\n  addScrollEvents(): void {\n    window.addEventListener('scroll', this.repositionBound);\n    this.scrollableAncestors.forEach((el) => {\n      el.addEventListener('scroll', this.repositionBound);\n    });\n  }\n\n  removeScrollEvents(): void {\n    window.removeEventListener('scroll', this.repositionBound);\n    this.scrollableAncestors.forEach((el) => {\n      el.removeEventListener('scroll', this.repositionBound);\n    });\n  }\n\n  <template>\n    {{#if @dropdown.isOpen}}\n      <div\n        class=\"ember-basic-dropdown-content-wormhole-origin\"\n        {{this.registerDropdownContentWormhole}}\n      >\n        {{#if @renderInPlace}}\n          {{#if @overlay}}\n            <div class=\"ember-basic-dropdown-overlay\"></div>\n          {{/if}}\n\n          {{#let (element this.tag) as |OptionalTag|}}\n            <OptionalTag\n              id={{this.dropdownId}}\n              class=\"ember-basic-dropdown-content ember-basic-dropdown-content--{{@hPosition}}\n                ember-basic-dropdown-content--{{@vPosition}}\n                {{this.animationClass}}{{if\n                  @renderInPlace\n                  ' ember-basic-dropdown-content--in-place'\n                }}\n                {{@defaultClass}}\"\n              ...attributes\n              {{style @otherStyles this.positionStyles}}\n              {{this.respondToEvents}}\n              {{this.initiallyReposition}}\n              {{this.observeMutations}}\n              {{this.animateInAndOut}}\n              {{on \"focusin\" (fn (or @onFocusIn this.noop) @dropdown)}}\n              {{on \"focusout\" (fn (or @onFocusOut this.noop) @dropdown)}}\n              {{on \"mouseenter\" (fn (or @onMouseEnter this.noop) @dropdown)}}\n              {{on \"mouseleave\" (fn (or @onMouseLeave this.noop) @dropdown)}}\n              {{! V1 compatibility - See #498 }}\n            >\n              {{yield}}\n            </OptionalTag>\n          {{/let}}\n        {{else if this.destinationElement}}\n          {{#in-element this.destinationElement insertBefore=null}}\n            {{#if @overlay}}\n              <div class=\"ember-basic-dropdown-overlay\"></div>\n            {{/if}}\n\n            {{#let (element this.tag) as |OptionalTag|}}\n              <OptionalTag\n                id={{this.dropdownId}}\n                class=\"ember-basic-dropdown-content ember-basic-dropdown-content--{{@hPosition}}\n                  ember-basic-dropdown-content--{{@vPosition}}\n                  {{this.animationClass}}{{if\n                    @renderInPlace\n                    ' ember-basic-dropdown-content--in-place'\n                  }}\n                  {{@defaultClass}}\"\n                ...attributes\n                {{style @otherStyles this.positionStyles}}\n                {{this.respondToEvents}}\n                {{this.initiallyReposition}}\n                {{this.observeMutations}}\n                {{this.animateInAndOut}}\n                {{on \"focusin\" (fn (or @onFocusIn this.noop) @dropdown)}}\n                {{on \"focusout\" (fn (or @onFocusOut this.noop) @dropdown)}}\n                {{on \"mouseenter\" (fn (or @onMouseEnter this.noop) @dropdown)}}\n                {{on \"mouseleave\" (fn (or @onMouseLeave this.noop) @dropdown)}}\n                {{! V1 compatibility - See #498 }}\n              >\n                {{yield}}\n              </OptionalTag>\n            {{/let}}\n          {{/in-element}}\n        {{/if}}\n      </div>\n    {{else}}\n      <div\n        id={{this.dropdownId}}\n        class=\"ember-basic-dropdown-content-placeholder\"\n        {{style (hash display=\"none\")}}\n      ></div>\n    {{/if}}\n  </template>\n}\n\nfunction containsRelevantMutation(nodeList: NodeList): boolean {\n  for (let i = 0; i < nodeList.length; i++) {\n    const node = nodeList[i];\n    if (\n      node !== undefined &&\n      node.nodeName !== '#comment' &&\n      !(node.nodeName === '#text' && node.nodeValue === '')\n    ) {\n      return true;\n    }\n  }\n  return false;\n}\n\n// All ancestors with scroll (except the BODY, which is treated differently)\nfunction getScrollableAncestors(triggerElement: Element): Element[] {\n  const scrollableAncestors = [];\n  if (triggerElement) {\n    const parent = triggerElement.parentNode;\n    if (parent !== null) {\n      let nextScrollable: Element | undefined = getScrollParent(\n        parent as Element,\n      );\n      while (\n        nextScrollable &&\n        nextScrollable.tagName.toUpperCase() !== 'BODY' &&\n        nextScrollable.tagName.toUpperCase() !== 'HTML'\n      ) {\n        scrollableAncestors.push(nextScrollable);\n        const nextParent = nextScrollable.parentNode;\n        if (nextParent === null) {\n          nextScrollable = undefined;\n        } else {\n          nextScrollable = getScrollParent(nextParent as Element);\n        }\n      }\n    }\n  }\n  return scrollableAncestors;\n}\n\nfunction closestContent(el: Element): Element | null {\n  while (\n    el &&\n    (!el.classList || !el.classList.contains('ember-basic-dropdown-content'))\n  ) {\n    if (el.parentElement === null) return null;\n    el = el.parentElement;\n  }\n  return el;\n}\n\nfunction waitForAnimations(element: Element, callback: () => void): void {\n  window.requestAnimationFrame(function () {\n    const computedStyle = window.getComputedStyle(element);\n    if (\n      computedStyle.animationName !== 'none' &&\n      computedStyle.animationPlayState === 'running'\n    ) {\n      const eventCallback = function () {\n        element.removeEventListener('animationend', eventCallback);\n        callback();\n      };\n      element.addEventListener('animationend', eventCallback);\n    } else {\n      callback();\n    }\n  });\n}\n\n/**\n * Evaluates if the given element is in a dropdown or any of its parent dropdowns.\n *\n * @param {any} owner\n * @param {HTMLElement} el\n * @param {String} dropdownId\n */\nfunction dropdownIsValidParent(\n  triggerElement: HTMLElement | null,\n  el: Element,\n  dropdownId: string,\n): boolean {\n  const closestDropdown = closestContent(el);\n  if (closestDropdown === null) {\n    return false;\n  } else {\n    const closestAttrId = closestDropdown.getAttribute('id') ?? '';\n    const selector = `[aria-controls=${closestAttrId}]`;\n    const trigger =\n      document.querySelector(selector) ??\n      (triggerElement?.getRootNode() as HTMLElement)?.querySelector(selector);\n    if (trigger === null) return false;\n    const parentDropdown = closestContent(trigger);\n    if (parentDropdown === null) return false;\n    const parentAttrId = parentDropdown.getAttribute('id') ?? '';\n    return (\n      (parentDropdown && parentAttrId === dropdownId) ||\n      dropdownIsValidParent(triggerElement, parentDropdown, dropdownId)\n    );\n  }\n}\n","import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { element, type ElementFromTagName } from 'ember-element-helper';\nimport { or } from 'ember-truth-helpers';\nimport { concat } from '@ember/helper';\nimport basicDropdownTriggerModifier from '../modifiers/basic-dropdown-trigger.ts';\nimport { on } from '@ember/modifier';\nimport { fn } from '@ember/helper';\nimport type {\n  Dropdown,\n  HorizontalPosition,\n  VerticalPosition,\n} from '../types.ts';\n\nexport interface BasicDropdownTriggerSignature<\n  T extends keyof HTMLElementTagNameMap = 'div',\n> {\n  Element: ElementFromTagName<T>;\n  Args: {\n    dropdown?: Dropdown;\n    eventType?: 'click' | 'mousedown';\n    stopPropagation?: boolean;\n    vPosition?: VerticalPosition | null;\n    hPosition?: HorizontalPosition | null;\n    defaultClass?: string;\n    renderInPlace?: boolean;\n    htmlTag?: T | undefined;\n    onBlur?: (dropdown?: Dropdown, event?: FocusEvent) => void;\n    onClick?: (dropdown?: Dropdown, event?: MouseEvent) => void;\n    onFocus?: (dropdown?: Dropdown, event?: FocusEvent) => void;\n    onFocusIn?: (dropdown?: Dropdown, event?: FocusEvent) => void;\n    onFocusOut?: (dropdown?: Dropdown, event?: FocusEvent) => void;\n    onKeyDown?: (dropdown?: Dropdown, event?: KeyboardEvent) => void;\n    onMouseDown?: (dropdown?: Dropdown, event?: MouseEvent) => void;\n    onMouseEnter?: (dropdown?: Dropdown, event?: MouseEvent) => void;\n    onMouseLeave?: (dropdown?: Dropdown, event?: MouseEvent) => void;\n    onTouchEnd?: (dropdown?: Dropdown, event?: TouchEvent) => void;\n  };\n  Blocks: {\n    default: [];\n  };\n}\n\nexport default class BasicDropdownTrigger<\n  T extends keyof HTMLElementTagNameMap,\n> extends Component<BasicDropdownTriggerSignature<T>> {\n  get tag(): T {\n    // `T` defaults to `'div'` in the signature, so the fallback matches `ElementFromTagName<T>`\n    return this.args.htmlTag || ('div' as T);\n  }\n\n  // Actions\n  /**\n   * Allows similar behavior to `ember-composable-helpers`' `optional` helper.\n   * Avoids adding extra dependencies.\n   * Can be removed when the template `V1` compatibility event handlers are removed.\n   *\n   * @see https://github.com/ember-power-addons/ember-basic-dropdown/issues/498\n   * @memberof BasicDropdownContent\n   */\n  noop(): void {}\n\n  @action\n  disableDocumentTextSelect(disable: boolean) {\n    if (disable) {\n      document.body.classList.add('ember-basic-dropdown-text-select-disabled');\n    } else {\n      document.body.classList.remove(\n        'ember-basic-dropdown-text-select-disabled',\n      );\n    }\n  }\n\n  <template>\n    {{#if @dropdown}}\n      {{#let (element this.tag) as |OptionalTag|}}\n        {{! template-lint-disable no-pointer-down-event-binding }}\n        <OptionalTag\n          class=\"ember-basic-dropdown-trigger\n            {{if @renderInPlace ' ember-basic-dropdown-trigger--in-place'}}\n            {{if\n              @hPosition\n              (concat ' ember-basic-dropdown-trigger--' @hPosition)\n            }}\n            {{if\n              @vPosition\n              (concat ' ember-basic-dropdown-trigger--' @vPosition)\n            }}\n            {{@defaultClass}}\"\n          {{basicDropdownTriggerModifier\n            dropdown=@dropdown\n            eventType=@eventType\n            stopPropagation=@stopPropagation\n          }}\n          tabindex={{unless @dropdown.disabled \"0\"}}\n          ...attributes\n          {{on \"mousedown\" (fn this.disableDocumentTextSelect true)}}\n          {{on \"mouseup\" (fn this.disableDocumentTextSelect false)}}\n          {{! V1 compatibility - See #498 }}\n          {{on \"keydown\" (fn (or @onKeyDown this.noop) @dropdown)}}\n          {{on \"mousedown\" (fn (or @onMouseDown this.noop) @dropdown)}}\n          {{on \"touchend\" (fn (or @onTouchEnd this.noop) @dropdown)}}\n          {{on \"click\" (fn (or @onClick this.noop) @dropdown)}}\n          {{on \"mouseenter\" (fn (or @onMouseEnter this.noop) @dropdown)}}\n          {{on \"mouseleave\" (fn (or @onMouseLeave this.noop) @dropdown)}}\n          {{on \"focus\" (fn (or @onFocus this.noop) @dropdown)}}\n          {{on \"blur\" (fn (or @onBlur this.noop) @dropdown)}}\n          {{on \"focusin\" (fn (or @onFocusIn this.noop) @dropdown)}}\n          {{on \"focusout\" (fn (or @onFocusOut this.noop) @dropdown)}}\n        >\n          {{yield}}\n        </OptionalTag>\n      {{/let}}\n    {{/if}}\n  </template>\n}\n","import Component from '@glimmer/component';\nimport { getConfig } from '../config.ts';\n\nexport interface BasicDropdownWormholeSignature {\n  Element: HTMLElement;\n}\n\nexport default class BasicDropdownWormhole extends Component<BasicDropdownWormholeSignature> {\n  get getDestinationId(): string {\n    const config = getConfig();\n\n    return config.destination || 'ember-basic-dropdown-wormhole';\n  }\n\n  <template>\n    <div id={{this.getDestinationId}} ...attributes></div>\n  </template>\n}\n","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport calculatePosition from '../utils/calculate-position.ts';\nimport { hash } from '@ember/helper';\nimport BasicDropdownTrigger from './basic-dropdown-trigger.gts';\nimport BasicDropdownContent from './basic-dropdown-content.gts';\nimport { or } from 'ember-truth-helpers';\nimport { isTesting } from '@embroider/macros';\nimport { getConfig } from '../config.ts';\nimport type Owner from '@ember/owner';\nimport type { ComponentLike } from '@glint/template';\nimport type {\n  CalculatePosition,\n  CalculatePositionResult,\n  HorizontalPosition,\n  VerticalPosition,\n} from '../utils/calculate-position.ts';\nimport type { BasicDropdownTriggerSignature } from './basic-dropdown-trigger.gts';\nimport type { BasicDropdownContentSignature } from './basic-dropdown-content.gts';\nimport type {\n  Dropdown,\n  DropdownActions,\n  RepositionChanges,\n  TRootEventType,\n} from '../types.ts';\n\nconst IGNORED_STYLES = ['top', 'left', 'right', 'width', 'height'];\n\nexport interface BasicDropdownDefaultBlock<\n  TriggerHtmlTag extends keyof HTMLElementTagNameMap = 'div',\n  ContentHtmlTag extends keyof HTMLElementTagNameMap = 'div',\n> {\n  uniqueId: string;\n  disabled: boolean;\n  isOpen: boolean;\n  actions: DropdownActions;\n  Trigger: ComponentLike<\n    Omit<BasicDropdownTriggerSignature<TriggerHtmlTag>, 'Args'> & {\n      Args: Omit<\n        BasicDropdownTriggerSignature<TriggerHtmlTag>['Args'],\n        'htmlTag' | 'dropdown' | 'hPosition' | 'vPosition' | 'renderInPlace'\n      >;\n    }\n  >;\n  Content: ComponentLike<\n    Omit<BasicDropdownContentSignature<ContentHtmlTag>, 'Args'> & {\n      Args: Omit<\n        BasicDropdownContentSignature<ContentHtmlTag>['Args'],\n        | 'htmlTag'\n        | 'dropdown'\n        | 'hPosition'\n        | 'vPosition'\n        | 'renderInPlace'\n        | 'destination'\n        | 'destinationElement'\n        | 'top'\n        | 'left'\n        | 'right'\n        | 'width'\n        | 'height'\n        | 'otherStyles'\n        | 'preventScroll'\n        | 'rootEventType'\n      >;\n    }\n  >;\n}\n\nexport interface BasicDropdownSignature<\n  TriggerHtmlTag extends keyof HTMLElementTagNameMap = 'div',\n  ContentHtmlTag extends keyof HTMLElementTagNameMap = 'div',\n> {\n  Element: HTMLElement;\n  Args: BasicDropdownArgs<TriggerHtmlTag, ContentHtmlTag>;\n  Blocks: {\n    default: [BasicDropdownDefaultBlock<TriggerHtmlTag, ContentHtmlTag>];\n  };\n}\n\nexport interface BasicDropdownArgs<\n  TriggerHtmlTag extends keyof HTMLElementTagNameMap = 'div',\n  ContentHtmlTag extends keyof HTMLElementTagNameMap = 'div',\n> {\n  initiallyOpened?: boolean;\n  renderInPlace?: boolean;\n  verticalPosition?: VerticalPosition;\n  horizontalPosition?: HorizontalPosition;\n  destination?: string;\n  destinationElement?: HTMLElement;\n  disabled?: boolean;\n  rootEventType?: TRootEventType;\n  preventScroll?: boolean;\n  matchTriggerWidth?: boolean;\n  triggerHtmlTag?: TriggerHtmlTag;\n  contentHtmlTag?: ContentHtmlTag;\n  onInit?: (dropdown: Dropdown) => void;\n  registerAPI?: (dropdown: Dropdown | null) => void;\n  onOpen?: (dropdown: Dropdown, e?: Event) => boolean | void;\n  onClose?: (dropdown: Dropdown, e?: Event) => boolean | void;\n  triggerComponent?:\n    ComponentLike<BasicDropdownTriggerSignature<TriggerHtmlTag>> | undefined;\n  contentComponent?:\n    ComponentLike<BasicDropdownContentSignature<ContentHtmlTag>> | undefined;\n  calculatePosition?: CalculatePosition;\n}\n\nexport default class BasicDropdown<\n  TriggerHtmlTag extends keyof HTMLElementTagNameMap = 'div',\n  ContentHtmlTag extends keyof HTMLElementTagNameMap = 'div',\n> extends Component<BasicDropdownSignature<TriggerHtmlTag, ContentHtmlTag>> {\n  @tracked hPosition: HorizontalPosition | null = null;\n  @tracked vPosition: VerticalPosition | null = null;\n  @tracked top: string | undefined;\n  @tracked left: string | undefined;\n  @tracked right: string | undefined;\n  @tracked width: string | undefined;\n  @tracked height: string | undefined;\n  @tracked otherStyles: Record<string, string | number | undefined> = {};\n  @tracked renderInPlace =\n    this.args.renderInPlace !== undefined ? this.args.renderInPlace : false;\n  @tracked private _isOpen = this.args.initiallyOpened || false;\n\n  private previousVerticalPosition?: VerticalPosition | undefined;\n  private previousHorizontalPosition?: HorizontalPosition | undefined;\n  private triggerElement: HTMLElement | null = null;\n  private dropdownElement: HTMLElement | null = null;\n\n  private _uid = guidFor(this);\n  private _dropdownId: string = `ember-basic-dropdown-content-${this._uid}`;\n  private _actions: DropdownActions = {\n    open: this.open.bind(this),\n    close: this.close.bind(this),\n    toggle: this.toggle.bind(this),\n    reposition: this.reposition.bind(this),\n    updatePublicApi: this.updatePublicApi.bind(this),\n    registerTriggerElement: this.registerTriggerElement.bind(this),\n    registerDropdownElement: this.registerDropdownElement.bind(this),\n    getTriggerElement: () => this.triggerElement,\n  };\n\n  private get horizontalPosition(): HorizontalPosition {\n    return this.args.horizontalPosition || 'auto'; // auto-right | right | center | left\n  }\n\n  private get verticalPosition(): VerticalPosition {\n    return this.args.verticalPosition || 'auto'; // above | below\n  }\n\n  get isOpen(): boolean {\n    return !this.disabled && this._isOpen;\n  }\n\n  set isOpen(v: boolean) {\n    this._isOpen = v;\n  }\n\n  get destination(): string {\n    return this.args.destination || this._getDestinationId();\n  }\n\n  get destinationElement(): HTMLElement | null {\n    if (this.args.destinationElement) {\n      return this.args.destinationElement;\n    }\n\n    const element = document.getElementById(this.destination);\n\n    if (element) {\n      return element;\n    }\n\n    if (\n      this.triggerElement &&\n      this.triggerElement.getRootNode() instanceof ShadowRoot\n    ) {\n      return (this.triggerElement.getRootNode() as HTMLElement)?.querySelector(\n        `#${this.destination}`,\n      );\n    }\n\n    return null;\n  }\n\n  get disabled(): boolean {\n    return this.args.disabled || false;\n  }\n\n  get publicAPI(): Dropdown {\n    return {\n      uniqueId: this._uid,\n      isOpen: this.isOpen,\n      disabled: this.disabled,\n      actions: this._actions,\n    };\n  }\n\n  // Lifecycle hooks\n  constructor(\n    owner: Owner,\n    args: BasicDropdownArgs<TriggerHtmlTag, ContentHtmlTag>,\n  ) {\n    super(owner, args);\n    if (this.args.onInit) {\n      this.args.onInit(this.publicAPI);\n    }\n    if (this.args.registerAPI) {\n      this.args.registerAPI(this.publicAPI);\n    }\n  }\n\n  override willDestroy(): void {\n    super.willDestroy();\n    if (this.args.registerAPI) {\n      this.args.registerAPI(null);\n    }\n  }\n\n  // Actions\n  @action\n  open(e?: Event): void {\n    if (this.isDestroyed) {\n      return;\n    }\n    if (this.publicAPI.disabled || this.publicAPI.isOpen) {\n      return;\n    }\n    if (this.args.onOpen && this.args.onOpen(this.publicAPI, e) === false) {\n      return;\n    }\n    this.isOpen = true;\n    if (this.args.registerAPI) {\n      this.args.registerAPI(this.publicAPI);\n    }\n    const trigger = this._getTriggerElement();\n    if (trigger) {\n      const parent = trigger.parentElement;\n      if (parent) {\n        parent.setAttribute('aria-owns', this._dropdownId);\n      }\n    }\n  }\n\n  @action\n  close(e?: Event, skipFocus?: boolean): void {\n    if (this.isDestroyed) {\n      return;\n    }\n    if (this.publicAPI.disabled || !this.publicAPI.isOpen) {\n      return;\n    }\n    if (this.args.onClose && this.args.onClose(this.publicAPI, e) === false) {\n      return;\n    }\n    if (this.isDestroyed) {\n      return; // To check that the `onClose` didn't destroy the dropdown\n    }\n    this.hPosition = this.vPosition = null;\n    this.top = this.left = this.right = this.width = this.height = undefined;\n    this.previousVerticalPosition = this.previousHorizontalPosition = undefined;\n    this.isOpen = false;\n    if (this.args.registerAPI) {\n      this.args.registerAPI(this.publicAPI);\n    }\n    const trigger = this._getTriggerElement();\n    if (!trigger) {\n      return;\n    }\n    const parent = trigger.parentElement;\n    if (parent) {\n      parent.removeAttribute('aria-owns');\n    }\n    if (skipFocus) {\n      return;\n    }\n    if (trigger.tabIndex > -1) {\n      trigger.focus();\n    }\n  }\n\n  @action\n  toggle(e?: Event): void {\n    if (this.publicAPI.isOpen) {\n      this.close(e);\n    } else {\n      this.open(e);\n    }\n  }\n\n  @action\n  reposition(): undefined | RepositionChanges {\n    if (!this.publicAPI.isOpen) {\n      return;\n    }\n    const dropdownElement = this._getDropdownElement();\n    const triggerElement = this._getTriggerElement();\n    if (!dropdownElement || !triggerElement || !this.destinationElement) {\n      return;\n    }\n\n    const triggerRectBefore =\n      this.top === undefined\n        ? triggerElement.getBoundingClientRect()\n        : undefined;\n\n    const changes = this._calculateAndApplyPosition(\n      triggerElement,\n      dropdownElement,\n      this.destinationElement,\n    );\n\n    if (triggerRectBefore) {\n      // Before the first reposition the content is rendered unpositioned at the end of\n      // its destination, which can make the page (or a scrollable ancestor) temporarily\n      // overflow and show a scrollbar. Once positioned the scrollbar may disappear again,\n      // shifting the trigger, so the calculated position would be stale (see ember-power-select#2081).\n      const triggerRectAfter = triggerElement.getBoundingClientRect();\n      if (\n        triggerRectAfter.left !== triggerRectBefore.left ||\n        triggerRectAfter.top !== triggerRectBefore.top ||\n        triggerRectAfter.width !== triggerRectBefore.width\n      ) {\n        return this._calculateAndApplyPosition(\n          triggerElement,\n          dropdownElement,\n          this.destinationElement,\n        );\n      }\n    }\n\n    return changes;\n  }\n\n  _calculateAndApplyPosition(\n    triggerElement: HTMLElement,\n    dropdownElement: HTMLElement,\n    destinationElement: HTMLElement,\n  ): RepositionChanges {\n    const {\n      horizontalPosition,\n      verticalPosition,\n      previousHorizontalPosition,\n      previousVerticalPosition,\n    } = this;\n    const { renderInPlace = false, matchTriggerWidth = false } = this.args;\n    const calculatePositionFn =\n      this.args.calculatePosition || calculatePosition;\n    const positionData = calculatePositionFn(\n      triggerElement,\n      dropdownElement,\n      destinationElement,\n      {\n        horizontalPosition,\n        verticalPosition,\n        previousHorizontalPosition,\n        previousVerticalPosition,\n        renderInPlace,\n        matchTriggerWidth,\n      },\n    );\n    return this.applyReposition(triggerElement, dropdownElement, positionData);\n  }\n\n  @action\n  updatePublicApi() {\n    if (!this.args.registerAPI) {\n      return;\n    }\n\n    this.args.registerAPI(this.publicAPI);\n  }\n\n  @action\n  registerTriggerElement(element: HTMLElement): void {\n    this.triggerElement = element;\n  }\n\n  @action\n  registerDropdownElement(element: HTMLElement): void {\n    this.dropdownElement = element;\n  }\n\n  applyReposition(\n    _trigger: Element,\n    dropdown: HTMLElement,\n    positions: CalculatePositionResult,\n  ): RepositionChanges {\n    const changes: RepositionChanges = {\n      hPosition: positions.horizontalPosition,\n      vPosition: positions.verticalPosition,\n      otherStyles: Object.assign({}, this.otherStyles),\n    };\n\n    if (positions.style) {\n      if (positions.style.top !== undefined) {\n        changes.top = `${positions.style.top}px`;\n      }\n      // The component can be aligned from the right or from the left, but not from both.\n      if (positions.style.left !== undefined) {\n        changes.left = `${positions.style.left}px`;\n        changes.right = undefined;\n        // Since we set the first run manually we may need to unset the `right` property.\n        if (positions.style.right !== undefined) {\n          positions.style.right = undefined;\n        }\n      } else if (positions.style.right !== undefined) {\n        changes.right = `${positions.style.right}px`;\n        changes.left = undefined;\n      }\n      if (positions.style.width !== undefined) {\n        changes.width = `${positions.style.width}px`;\n      }\n      if (positions.style.height !== undefined) {\n        changes.height = `${positions.style.height}px`;\n      }\n      if (this.top === undefined) {\n        // Bypass Ember on the first reposition only to avoid flickering.\n        for (const prop in positions.style) {\n          if (positions.style[prop] !== undefined) {\n            if (typeof positions.style[prop] === 'number') {\n              dropdown.style.setProperty(prop, `${positions.style[prop]}px`);\n            } else {\n              dropdown.style.setProperty(prop, `${positions.style[prop]}`);\n            }\n          }\n        }\n      }\n    }\n    for (const prop in positions.style) {\n      if (!IGNORED_STYLES.includes(prop)) {\n        changes.otherStyles[prop] = positions.style[prop];\n      }\n    }\n\n    this.hPosition = changes.hPosition;\n    this.vPosition = changes.vPosition;\n    this.top = changes.top;\n    this.left = changes.left;\n    this.right = changes.right;\n    this.width = changes.width;\n    this.height = changes.height;\n    this.otherStyles = changes.otherStyles;\n    this.previousHorizontalPosition = positions.horizontalPosition;\n    this.previousVerticalPosition = positions.verticalPosition;\n    return changes;\n  }\n\n  _getDestinationId(): string {\n    const config = getConfig();\n\n    if (isTesting()) {\n      // document doesn't exist in fastboot apps, for this reason we need this check\n      if (typeof document === 'undefined') {\n        return 'ember-basic-dropdown-wormhole';\n      }\n\n      // check if destination exists in tests:\n      if (config.destination) {\n        const destination = config.destination;\n        if (document.getElementById(destination) !== null) {\n          return destination;\n        }\n      }\n\n      // check if default element exists in tests:\n      if (document.getElementById('ember-basic-dropdown-wormhole') !== null) {\n        return 'ember-basic-dropdown-wormhole';\n      }\n\n      // fall back to rootElement as destination\n      const rootElement = config.rootElement;\n      return (\n        (rootElement ? document.querySelector(rootElement)?.id : undefined) ??\n        'ember-basic-dropdown-wormhole'\n      );\n    }\n\n    return config.destination || 'ember-basic-dropdown-wormhole';\n  }\n\n  _getDropdownElement(): HTMLElement | null {\n    if (this.dropdownElement) {\n      return this.dropdownElement;\n    }\n\n    return document.querySelector(`[id=\"${this._dropdownId}\"]`);\n  }\n\n  _getTriggerElement(): HTMLElement | null {\n    if (this.triggerElement) {\n      return this.triggerElement;\n    }\n\n    return document.querySelector(\n      `[data-ebd-id=${this.publicAPI.uniqueId}-trigger]`,\n    );\n  }\n\n  get triggerComponent(): ComponentLike<\n    BasicDropdownTriggerSignature<TriggerHtmlTag>\n  > {\n    return this.args.triggerComponent || BasicDropdownTrigger;\n  }\n\n  get contentComponent(): ComponentLike<\n    BasicDropdownContentSignature<ContentHtmlTag>\n  > {\n    return this.args.contentComponent || BasicDropdownContent;\n  }\n\n  <template>\n    {{#let\n      (hash\n        uniqueId=this.publicAPI.uniqueId\n        isOpen=this.publicAPI.isOpen\n        disabled=this.publicAPI.disabled\n        actions=this.publicAPI.actions\n        Trigger=(component\n          this.triggerComponent\n          dropdown=this.publicAPI\n          hPosition=this.hPosition\n          renderInPlace=this.renderInPlace\n          vPosition=this.vPosition\n          htmlTag=@triggerHtmlTag\n        )\n        Content=(component\n          this.contentComponent\n          dropdown=this.publicAPI\n          hPosition=this.hPosition\n          renderInPlace=this.renderInPlace\n          preventScroll=@preventScroll\n          rootEventType=(or @rootEventType \"click\")\n          vPosition=this.vPosition\n          htmlTag=@contentHtmlTag\n          destination=this.destination\n          destinationElement=this.destinationElement\n          top=this.top\n          left=this.left\n          right=this.right\n          width=this.width\n          height=this.height\n          otherStyles=this.otherStyles\n        )\n      )\n      as |api|\n    }}\n      {{#if this.renderInPlace}}\n        <div class=\"ember-basic-dropdown\" ...attributes>{{yield api}}</div>\n      {{else}}\n        {{yield api}}\n      {{/if}}\n    {{/let}}\n  </template>\n}\n","export interface Config {\n  destination?: string;\n  rootElement?: string;\n}\n\nlet _config: Config = {};\n\nexport function setConfig(config: Config) {\n  _config = config;\n}\n\nexport function getConfig(): Config {\n  return _config;\n}\n","import Modifier from 'ember-modifier';\nimport type { ArgsFor, PositionalArgs, NamedArgs } from 'ember-modifier';\nimport { assert } from '@ember/debug';\nimport { action } from '@ember/object';\nimport { isDestroyed, registerDestructor } from '@ember/destroyable';\nimport hasMoved from '../utils/has-moved.ts';\nimport type Owner from '@ember/owner';\nimport type { Dropdown } from '../types.ts';\n\ninterface Signature {\n  Element: HTMLElement;\n  Args: {\n    Named: {\n      dropdown: Dropdown;\n      eventType?: 'click' | 'mousedown' | undefined;\n      stopPropagation?: boolean | undefined;\n      [named: string]: unknown;\n    };\n    Positional: unknown[];\n  };\n}\n\nexport default class DropdownTriggerModifier extends Modifier<Signature> {\n  didSetup = false;\n\n  triggerElement: HTMLElement | undefined;\n\n  toggleIsBeingHandledByTouchEvents: boolean = false;\n  touchMoveEvent: TouchEvent | undefined;\n\n  dropdown?: Dropdown;\n  desiredEventType!: string;\n  stopPropagation: boolean | undefined;\n\n  private _previousDisabled: boolean | undefined = undefined;\n\n  constructor(owner: Owner, args: ArgsFor<Signature>) {\n    super(owner, args);\n    registerDestructor(this, cleanup);\n  }\n\n  override modify(\n    element: HTMLElement,\n    positional: PositionalArgs<Signature>,\n    named: NamedArgs<Signature>,\n  ): void {\n    assert('must be provided dropdown object', named.dropdown);\n    this.dropdown = named.dropdown;\n    this.desiredEventType = named.eventType ?? 'click';\n    this.stopPropagation = named.stopPropagation;\n\n    if (!this.didSetup) {\n      this.setup(element);\n      this.didSetup = true;\n    }\n\n    if (this._previousDisabled === undefined) {\n      this._previousDisabled = this.dropdown.disabled;\n    }\n\n    if (this.dropdown.disabled !== this._previousDisabled) {\n      this._previousDisabled = this.dropdown.disabled;\n\n      this.dropdown.actions.updatePublicApi();\n    }\n\n    this.update(element, positional, named);\n  }\n\n  setup(element: HTMLElement) {\n    // Keep a reference to the element for cleanup\n    this.triggerElement = element;\n    if (this.dropdown?.actions?.registerTriggerElement) {\n      this.dropdown.actions.registerTriggerElement(element);\n    }\n\n    if (!element.getAttribute('role')) element.setAttribute('role', 'button');\n\n    element.addEventListener('click', this.handleMouseEventBound);\n    element.addEventListener('mousedown', this.handleMouseEventBound);\n    element.addEventListener('keydown', this.handleKeyDownBound);\n    element.addEventListener('touchstart', this.handleTouchStartBound, {\n      passive: false,\n    });\n    element.addEventListener('touchend', this.handleTouchEndBound);\n  }\n\n  update(\n    element: HTMLElement,\n    _positional: PositionalArgs<Signature>,\n    named: NamedArgs<Signature>,\n  ) {\n    const { dropdown } = named;\n\n    element.setAttribute('data-ebd-id', `${dropdown.uniqueId}-trigger`);\n\n    if (element.getAttribute('aria-owns') === null) {\n      element.setAttribute(\n        'aria-owns',\n        `ember-basic-dropdown-content-${dropdown.uniqueId}`,\n      );\n    }\n\n    if (element.getAttribute('aria-controls') === null) {\n      element.setAttribute(\n        'aria-controls',\n        `ember-basic-dropdown-content-${dropdown.uniqueId}`,\n      );\n    }\n\n    element.setAttribute('aria-expanded', dropdown.isOpen ? 'true' : 'false');\n    element.setAttribute('aria-disabled', dropdown.disabled ? 'true' : 'false');\n  }\n\n  @action\n  handleMouseEvent(e: MouseEvent): void {\n    if (typeof document === 'undefined') return;\n    const { dropdown, desiredEventType, stopPropagation } = this;\n\n    if (isDestroyed(this) || !dropdown || dropdown.disabled) return;\n\n    const eventType = e.type;\n    const notLeftClick = e.button !== 0;\n    if (eventType !== desiredEventType || notLeftClick) return;\n\n    if (stopPropagation) e.stopPropagation();\n\n    if (this.toggleIsBeingHandledByTouchEvents) {\n      // Some devises have both touchscreen & mouse, and they are not mutually exclusive\n      // In those cases the touchdown handler is fired first, and it sets a flag to\n      // short-circuit the mouseup so the component is not opened and immediately closed.\n      this.toggleIsBeingHandledByTouchEvents = false;\n      return;\n    }\n    dropdown.actions.toggle(e);\n  }\n\n  @action\n  handleKeyDown(e: KeyboardEvent): void {\n    const disabled = this.dropdown?.disabled,\n      actions = this.dropdown?.actions;\n\n    if (disabled || !actions) return;\n    if (e.keyCode === 13) {\n      // Enter\n      actions.toggle(e);\n    } else if (e.keyCode === 32) {\n      // Space\n      e.preventDefault(); // prevents the space to trigger a scroll page-next\n      actions.toggle(e);\n    } else if (e.keyCode === 27) {\n      actions.close(e);\n    }\n  }\n\n  @action\n  handleTouchStart(): void {\n    document.addEventListener('touchmove', this.touchMoveHandlerBound);\n    if (this.triggerElement?.getRootNode() instanceof ShadowRoot) {\n      (this.triggerElement?.getRootNode() as HTMLElement).addEventListener(\n        'touchmove',\n        this.touchMoveHandlerBound,\n      );\n    }\n  }\n\n  @action\n  handleTouchEnd(e: TouchEvent): void {\n    this.toggleIsBeingHandledByTouchEvents = true;\n    const disabled = this.dropdown?.disabled,\n      actions = this.dropdown?.actions;\n\n    if ((e && e.defaultPrevented) || disabled || !actions) {\n      return;\n    }\n    if (!hasMoved(e, this.touchMoveEvent)) {\n      actions.toggle(e);\n    }\n    this.touchMoveEvent = undefined;\n    document.removeEventListener('touchmove', this.touchMoveHandlerBound);\n    // This next three lines are stolen from hammertime. This prevents the default\n    // behaviour of the touchend, but synthetically trigger a focus and a (delayed) click\n    // to simulate natural behaviour.\n    const target = (e.composedPath?.()[0] || e.target) as HTMLElement;\n    if (target !== null) {\n      target.focus();\n    }\n    setTimeout(function () {\n      if (!e.target) {\n        return;\n      }\n      try {\n        const event = document.createEvent('MouseEvents');\n        event.initMouseEvent(\n          'click',\n          true,\n          true,\n          window,\n          0,\n          0,\n          0,\n          0,\n          0,\n          false,\n          false,\n          false,\n          false,\n          0,\n          null,\n        );\n        e.target.dispatchEvent(event);\n      } catch {\n        const event = new Event('click');\n        e.target.dispatchEvent(event);\n      }\n    }, 0);\n    e.preventDefault();\n  }\n\n  @action\n  _touchMoveHandler(e: TouchEvent): void {\n    this.touchMoveEvent = e;\n    document.removeEventListener('touchmove', this.touchMoveHandlerBound);\n\n    if (this.triggerElement?.getRootNode() instanceof ShadowRoot) {\n      (this.triggerElement?.getRootNode() as HTMLElement).removeEventListener(\n        'touchmove',\n        this.touchMoveHandlerBound,\n      );\n    }\n  }\n\n  handleMouseEventBound = (e: MouseEvent) => this.handleMouseEvent(e);\n  handleKeyDownBound = (e: KeyboardEvent) => this.handleKeyDown(e);\n  handleTouchStartBound = () => this.handleTouchStart();\n  handleTouchEndBound = (e: TouchEvent) => this.handleTouchEnd(e);\n  touchMoveHandlerBound = (e: TouchEvent) => this._touchMoveHandler(e);\n}\n\nfunction cleanup(instance: DropdownTriggerModifier) {\n  const { triggerElement } = instance;\n  if (triggerElement) {\n    if (typeof document !== 'undefined')\n      document.removeEventListener('touchmove', instance.touchMoveHandlerBound);\n\n    if (triggerElement?.getRootNode() instanceof ShadowRoot) {\n      (triggerElement?.getRootNode() as HTMLElement).removeEventListener(\n        'touchmove',\n        instance.touchMoveHandlerBound,\n      );\n    }\n\n    triggerElement.removeEventListener('click', instance.handleMouseEventBound);\n    triggerElement.removeEventListener(\n      'mousedown',\n      instance.handleMouseEventBound,\n    );\n    triggerElement.removeEventListener('keydown', instance.handleKeyDownBound);\n    triggerElement.removeEventListener(\n      'touchstart',\n      instance.handleTouchStartBound,\n    );\n    triggerElement.removeEventListener(\n      'touchend',\n      instance.handleTouchEndBound,\n    );\n  }\n}\n","import type { VerticalPosition, HorizontalPosition } from '../types.ts';\n\n// To avoid breaking the current types export we need this\nexport type { VerticalPosition, HorizontalPosition };\n\nexport interface CalculatePositionOptions {\n  horizontalPosition: HorizontalPosition;\n  verticalPosition: VerticalPosition;\n  matchTriggerWidth: boolean;\n  previousHorizontalPosition?: HorizontalPosition | undefined;\n  previousVerticalPosition?: VerticalPosition | undefined;\n  renderInPlace: boolean;\n}\n\nexport type CalculatePositionResultStyle = {\n  top?: number | undefined;\n  left?: number | undefined;\n  right?: number | undefined;\n  width?: number | undefined;\n  height?: number | undefined;\n  [key: string]: string | number | undefined;\n};\n\nexport type CalculatePositionResult = {\n  horizontalPosition: HorizontalPosition;\n  verticalPosition: VerticalPosition;\n  style: CalculatePositionResultStyle;\n};\n\nexport type CalculatePosition = (\n  trigger: HTMLElement,\n  content: HTMLElement,\n  destination: HTMLElement,\n  options: CalculatePositionOptions,\n) => CalculatePositionResult;\n\ntype GetViewDataResult = {\n  scroll: { left: number; top: number };\n  triggerLeft: number;\n  triggerTop: number;\n  triggerWidth: number;\n  triggerHeight: number;\n  dropdownHeight: number;\n  dropdownWidth: number;\n  viewportWidth: number;\n  viewportBottom: number;\n};\n\ntype GetViewData = (\n  trigger: Element,\n  content: HTMLElement,\n  renderInPlace: boolean,\n) => GetViewDataResult;\n\nconst getViewData: GetViewData = (trigger, content, renderInPlace) => {\n  let scroll = { left: window.pageXOffset, top: window.pageYOffset };\n  if (renderInPlace) {\n    scroll = {\n      left: window.scrollX,\n      top: window.scrollY,\n    };\n  }\n\n  const {\n    left: triggerLeft,\n    top: triggerTop,\n    width: triggerWidth,\n    height: triggerHeight,\n  } = trigger.getBoundingClientRect();\n  const { height: dropdownHeight, width: dropdownWidth } =\n    content.getBoundingClientRect();\n  const viewportWidth = document.body.clientWidth || window.innerWidth;\n  const viewportBottom = scroll.top + window.innerHeight;\n\n  return {\n    scroll,\n    // The properties top and left of the trigger client rectangle need to be absolute to\n    // the top left corner of the document as the value it's compared to is also the total\n    // height and not only the viewport height (window client height + scroll offset).\n    triggerLeft: triggerLeft + (renderInPlace ? window.scrollX : 0),\n    triggerTop: triggerTop + (renderInPlace ? window.scrollY : 0),\n    triggerWidth,\n    triggerHeight,\n    dropdownHeight,\n    dropdownWidth,\n    viewportWidth,\n    viewportBottom,\n  };\n};\n\nexport function calculateWormholedPosition(\n  trigger: HTMLElement,\n  content: HTMLElement,\n  destination: HTMLElement,\n  {\n    horizontalPosition,\n    verticalPosition,\n    matchTriggerWidth,\n    previousHorizontalPosition,\n    previousVerticalPosition,\n  }: CalculatePositionOptions,\n): CalculatePositionResult {\n  // Collect information about all the involved DOM elements\n  const viewData = getViewData(trigger, content, false);\n  const {\n    scroll,\n    triggerWidth,\n    triggerHeight,\n    dropdownHeight,\n    viewportWidth,\n    viewportBottom,\n  } = viewData;\n  let { triggerLeft, triggerTop, dropdownWidth } = viewData;\n  const style: CalculatePositionResultStyle = {};\n\n  // Apply containers' offset\n  let anchorElement = destination.parentNode as HTMLElement;\n\n  if (anchorElement instanceof ShadowRoot) {\n    anchorElement = anchorElement.host as HTMLElement;\n  }\n\n  let anchorPosition = window.getComputedStyle(anchorElement).position;\n  while (\n    anchorPosition !== 'relative' &&\n    anchorPosition !== 'absolute' &&\n    anchorElement.tagName.toUpperCase() !== 'BODY' &&\n    !(anchorElement.parentNode instanceof ShadowRoot)\n  ) {\n    anchorElement = anchorElement.parentNode as HTMLElement;\n    anchorPosition = window.getComputedStyle(anchorElement).position;\n  }\n  if (anchorPosition === 'relative' || anchorPosition === 'absolute') {\n    const rect = anchorElement.getBoundingClientRect();\n    triggerLeft = triggerLeft - rect.left;\n    triggerTop = triggerTop - rect.top;\n    const { offsetParent } = anchorElement;\n    if (offsetParent) {\n      triggerLeft -= offsetParent.scrollLeft;\n      triggerTop -= offsetParent.scrollTop;\n    }\n  }\n\n  // Calculate drop down width\n  dropdownWidth = matchTriggerWidth ? triggerWidth : dropdownWidth;\n  if (matchTriggerWidth) {\n    style.width = dropdownWidth;\n  }\n\n  /**\n   * Fixes bug where the dropdown always stays on the same position on the screen when\n   * the <body> is relatively positioned\n   */\n  const isBodyPositionRelative =\n    window.getComputedStyle(document.body).getPropertyValue('position') ===\n    'relative';\n\n  // Calculate horizontal position\n  let triggerLeftWithScroll = triggerLeft;\n\n  if (!isBodyPositionRelative) {\n    triggerLeftWithScroll += scroll.left;\n  }\n\n  if (horizontalPosition === 'auto' || horizontalPosition === 'auto-left') {\n    // Calculate the number of visible horizontal pixels if we were to place the\n    // dropdown on the left and right\n    const leftVisible =\n      Math.min(viewportWidth, triggerLeft + dropdownWidth) -\n      Math.max(0, triggerLeft);\n    const rightVisible =\n      Math.min(viewportWidth, triggerLeft + triggerWidth) -\n      Math.max(0, triggerLeft + triggerWidth - dropdownWidth);\n\n    if (dropdownWidth > leftVisible && rightVisible > leftVisible) {\n      // If the drop down won't fit left-aligned, and there is more space on the\n      // right than on the left, then force right-aligned\n      horizontalPosition = 'right';\n    } else if (dropdownWidth > rightVisible && leftVisible > rightVisible) {\n      // If the drop down won't fit right-aligned, and there is more space on\n      // the left than on the right, then force left-aligned\n      horizontalPosition = 'left';\n    } else {\n      // Keep same position as previous\n      horizontalPosition = previousHorizontalPosition || 'left';\n    }\n  } else if (horizontalPosition === 'auto-right') {\n    // Calculate the number of visible horizontal pixels if we were to place the\n    // dropdown on the left and right\n    const leftVisible =\n      Math.min(viewportWidth, triggerLeft + dropdownWidth) -\n      Math.max(0, triggerLeft);\n    const rightVisible =\n      Math.min(viewportWidth, triggerLeft + triggerWidth) -\n      Math.max(0, triggerLeft + triggerWidth - dropdownWidth);\n\n    if (dropdownWidth > rightVisible && leftVisible > rightVisible) {\n      // If the drop down won't fit right-aligned, and there is more space on the\n      // left than on the right, then force left-aligned\n      horizontalPosition = 'left';\n    } else if (dropdownWidth > leftVisible && rightVisible > leftVisible) {\n      // If the drop down won't fit left-aligned, and there is more space on\n      // the right than on the left, then force right-aligned\n      horizontalPosition = 'right';\n    } else {\n      // Keep same position as previous\n      horizontalPosition = previousHorizontalPosition || 'right';\n    }\n  }\n  if (horizontalPosition === 'right') {\n    style.right = viewportWidth - (triggerLeftWithScroll + triggerWidth);\n  } else if (horizontalPosition === 'center') {\n    style.left = triggerLeftWithScroll + (triggerWidth - dropdownWidth) / 2;\n  } else {\n    style.left = triggerLeftWithScroll;\n  }\n\n  // Calculate vertical position\n  let triggerTopWithScroll = triggerTop;\n\n  if (!isBodyPositionRelative) {\n    triggerTopWithScroll += scroll.top;\n  }\n\n  if (verticalPosition === 'above') {\n    style.top = triggerTopWithScroll - dropdownHeight;\n  } else if (verticalPosition === 'below') {\n    style.top = triggerTopWithScroll + triggerHeight;\n  } else {\n    const enoughRoomBelow =\n      triggerTopWithScroll + triggerHeight + dropdownHeight < viewportBottom;\n    const enoughRoomAbove = triggerTop > dropdownHeight;\n\n    if (!enoughRoomBelow && !enoughRoomAbove) {\n      verticalPosition = 'below';\n    } else if (\n      previousVerticalPosition === 'below' &&\n      !enoughRoomBelow &&\n      enoughRoomAbove\n    ) {\n      verticalPosition = 'above';\n    } else if (\n      previousVerticalPosition === 'above' &&\n      !enoughRoomAbove &&\n      enoughRoomBelow\n    ) {\n      verticalPosition = 'below';\n    } else if (!previousVerticalPosition) {\n      verticalPosition = enoughRoomBelow ? 'below' : 'above';\n    } else {\n      verticalPosition = previousVerticalPosition;\n    }\n    style.top =\n      triggerTopWithScroll +\n      (verticalPosition === 'below' ? triggerHeight : -dropdownHeight);\n  }\n\n  return { horizontalPosition, verticalPosition, style };\n}\n\nexport function calculateInPlacePosition(\n  trigger: HTMLElement,\n  content: HTMLElement,\n  _destination: HTMLElement,\n  { horizontalPosition, verticalPosition }: CalculatePositionOptions,\n): CalculatePositionResult {\n  let dropdownRect;\n  const positionData: CalculatePositionResult = {\n    horizontalPosition: 'left',\n    verticalPosition: 'below',\n    style: {},\n  };\n  if (horizontalPosition === 'auto') {\n    const triggerRect = trigger.getBoundingClientRect();\n    dropdownRect = content.getBoundingClientRect();\n    const viewportRight = window.pageXOffset + window.innerWidth;\n    positionData.horizontalPosition =\n      triggerRect.left + dropdownRect.width > viewportRight ? 'right' : 'left';\n  } else if (horizontalPosition === 'center') {\n    const { width: triggerWidth } = trigger.getBoundingClientRect();\n    const { width: dropdownWidth } = content.getBoundingClientRect();\n    positionData.style = { left: (triggerWidth - dropdownWidth) / 2 };\n  } else if (horizontalPosition === 'auto-right') {\n    const triggerRect = trigger.getBoundingClientRect();\n    const dropdownRect = content.getBoundingClientRect();\n    positionData.horizontalPosition =\n      triggerRect.right > dropdownRect.width ? 'right' : 'left';\n  } else if (horizontalPosition === 'right') {\n    positionData.horizontalPosition = 'right';\n  }\n\n  if (verticalPosition === 'above') {\n    positionData.verticalPosition = verticalPosition;\n    dropdownRect = dropdownRect || content.getBoundingClientRect();\n    positionData.style.top = -dropdownRect.height;\n  } else if (verticalPosition === 'below') {\n    positionData.verticalPosition = 'below';\n  } else {\n    // Automatically determine if there is enough space above or below\n    const { triggerTop, triggerHeight, dropdownHeight, viewportBottom } =\n      getViewData(trigger, content, true);\n\n    const enoughRoomBelow =\n      triggerTop + triggerHeight + dropdownHeight < viewportBottom;\n    const enoughRoomAbove = triggerTop > dropdownHeight;\n\n    if (enoughRoomBelow) {\n      verticalPosition = 'below';\n    } else if (enoughRoomAbove) {\n      verticalPosition = 'above';\n      dropdownRect = dropdownRect || content.getBoundingClientRect();\n      positionData.style.top = -dropdownRect.height;\n    } else {\n      // Not enough space above or below\n      verticalPosition = 'below';\n    }\n    positionData.verticalPosition = verticalPosition;\n  }\n  return positionData;\n}\n\nexport function getScrollParent(element: Element) {\n  let style = window.getComputedStyle(element);\n  const excludeStaticParent = style.position === 'absolute';\n  const overflowRegex = /(auto|scroll)/;\n\n  if (style.position === 'fixed') return document.body;\n  for (let parent: Element | null = element; (parent = parent.parentElement);) {\n    style = window.getComputedStyle(parent);\n    if (excludeStaticParent && style.position === 'static') {\n      continue;\n    }\n    if (\n      overflowRegex.test(style.overflow + style.overflowY + style.overflowX)\n    ) {\n      return parent;\n    }\n  }\n\n  return document.body;\n}\n\nfunction calculatePosition(\n  trigger: HTMLElement,\n  content: HTMLElement,\n  destination: HTMLElement,\n  options: CalculatePositionOptions,\n): CalculatePositionResult {\n  if (options.renderInPlace) {\n    return calculateInPlacePosition(trigger, content, destination, options);\n  } else {\n    return calculateWormholedPosition(trigger, content, destination, options);\n  }\n}\n\nexport default calculatePosition;\n","export default function hasMoved(\n  endEvent: TouchEvent,\n  moveEvent?: TouchEvent,\n): boolean {\n  if (!moveEvent) {\n    return false;\n  }\n\n  if (\n    !endEvent.changedTouches?.[0] ||\n    (moveEvent.changedTouches[0] as unknown as { touchType: string })\n      .touchType !== 'stylus'\n  ) {\n    return true;\n  }\n\n  // Distinguish stylus scroll and tap: if touch \"distance\" < 5px, we consider it a tap\n  const horizontalDistance = Math.abs(\n    (moveEvent.changedTouches[0]?.pageX ?? 0) -\n      endEvent.changedTouches[0].pageX,\n  );\n  const verticalDistance = Math.abs(\n    (moveEvent.changedTouches[0]?.pageY ?? 0) -\n      endEvent.changedTouches[0].pageY,\n  );\n  return horizontalDistance >= 5 || verticalDistance >= 5;\n}\n","import { defer } from 'rsvp';\nimport { Environment } from './external/environment';\nimport { assert } from '@ember/debug';\nimport { join, next, schedule } from '@ember/runloop';\nimport { getOnerror } from '@ember/-internals/error-handling';\n\nexport class EmberEnvironment extends Environment {\n  assert(...args) {\n    assert(...args);\n  }\n\n  async(callback) {\n    join(() => schedule('actions', callback));\n  }\n\n  reportUncaughtRejection(error) {\n    next(null, function () {\n      const onError = getOnerror();\n      if (onError) {\n        onError(error);\n      } else {\n        throw error;\n      }\n    });\n  }\n\n  defer() {\n    return defer();\n  }\n\n  globalDebuggingEnabled() {\n    // TODO figure out how to reinstate. In the meantime people can use `{ debug: true }` on tasks of interest.\n    // return Ember.ENV.DEBUG_TASKS;\n    return false;\n  }\n}\n\nexport const EMBER_ENVIRONMENT = new EmberEnvironment();\n","export class Environment {\n  assert() {}\n\n  async(callback) {\n    Promise.resolve().then(callback);\n  }\n\n  reportUncaughtRejection() {\n    this.async((error) => {\n      throw error;\n    });\n  }\n\n  defer() {\n    let deferable = {\n      promise: null,\n      resolve: null,\n      reject: null,\n    };\n\n    let promise = new Promise((resolve, reject) => {\n      deferable.resolve = resolve;\n      deferable.reject = reject;\n    });\n\n    deferable.promise = promise;\n\n    return deferable;\n  }\n\n  globalDebuggingEnabled() {\n    return false;\n  }\n}\n\nexport const DEFAULT_ENVIRONMENT = new Environment();\n","export const TYPE_CANCELLED = 'CANCELLED';\nexport const TYPE_STARTED = 'STARTED';\nexport const TYPE_QUEUED = 'QUEUED';\n\nexport const STARTED = { type: TYPE_STARTED };\nexport const QUEUED = { type: TYPE_QUEUED };\n\nexport const makeCancelState = (reason) => ({ type: TYPE_CANCELLED, reason });\n","import {\n  TYPE_STARTED,\n  TYPE_QUEUED,\n  TYPE_CANCELLED,\n} from './policies/execution-states';\n\nconst LAST_APPLIED_TAGS = new Map();\n\nclass Refresh {\n  constructor(schedulerPolicy, stateTracker, taskInstances) {\n    this.stateTracker = stateTracker;\n    this.schedulerPolicy = schedulerPolicy;\n    this.initialTaskInstances = taskInstances;\n    this.startingInstances = [];\n  }\n\n  process() {\n    let [taskInstances, numRunning, numQueued] =\n      this.filterFinishedTaskInstances();\n    let reducer = this.schedulerPolicy.makeReducer(numRunning, numQueued);\n\n    let finalTaskInstances = taskInstances.filter((taskInstance) => {\n      return this.setTaskInstanceExecutionState(taskInstance, reducer.step());\n    });\n\n    this.stateTracker.computeFinalStates((state) => this.applyState(state));\n    this.startingInstances.forEach((taskInstance) => taskInstance.start());\n\n    return finalTaskInstances;\n  }\n\n  filterFinishedTaskInstances() {\n    let numRunning = 0,\n      numQueued = 0;\n    let taskInstances = this.initialTaskInstances.filter((taskInstance) => {\n      let taskState = this.stateTracker.stateFor(taskInstance.task);\n      let executorState = taskInstance.executor.state;\n\n      if (executorState.isFinished) {\n        taskState.onCompletion(taskInstance);\n        return false;\n      }\n\n      if (executorState.hasStarted) {\n        numRunning += 1;\n      } else {\n        numQueued += 1;\n      }\n\n      return true;\n    });\n    return [taskInstances, numRunning, numQueued];\n  }\n\n  setTaskInstanceExecutionState(taskInstance, desiredState) {\n    let taskState = this.stateTracker.stateFor(taskInstance.task);\n\n    if (!taskInstance.executor.counted) {\n      taskInstance.executor.counted = true;\n      taskState.onPerformed(taskInstance);\n    }\n\n    switch (desiredState.type) {\n      case TYPE_CANCELLED:\n        // this will cause a follow up flush which will detect and recompute cancellation state\n        taskInstance.cancel(desiredState.reason);\n        return false;\n      case TYPE_STARTED:\n        if (!taskInstance.executor.state.hasStarted) {\n          this.startingInstances.push(taskInstance);\n          taskState.onStart(taskInstance);\n        }\n        taskState.onRunning(taskInstance);\n        return true;\n      case TYPE_QUEUED:\n        taskState.onQueued(taskInstance);\n        // TODO: assert taskInstance hasn't started?\n        // Or perhaps this can be a way to pause a task?\n        return true;\n    }\n  }\n\n  applyState(state) {\n    let { taskable } = state;\n\n    if (!taskable.onState) {\n      return;\n    }\n\n    const { guid } = taskable;\n\n    if (\n      LAST_APPLIED_TAGS.has(guid) &&\n      state.tag < LAST_APPLIED_TAGS.get(guid)\n    ) {\n      return;\n    }\n\n    let props = Object.assign(\n      {\n        numRunning: state.numRunning,\n        numQueued: state.numQueued,\n        numPerformedInc: state.numPerformedInc,\n      },\n      state.attrs,\n    );\n\n    taskable.onState(props, taskable);\n\n    LAST_APPLIED_TAGS.set(guid, state.tag);\n  }\n}\n\nexport default Refresh;\n","import {\n  COMPLETION_SUCCESS,\n  COMPLETION_ERROR,\n  COMPLETION_CANCEL,\n} from '../../task-instance/completion-states';\n\nclass RefreshState {\n  constructor(taskable, tag) {\n    this.taskable = taskable;\n    this.numRunning = 0;\n    this.numQueued = 0;\n    this.numPerformedInc = 0;\n    this.attrs = {};\n    this.tag = tag;\n  }\n\n  onCompletion(taskInstance) {\n    let state = taskInstance.completionState;\n    this.attrs.lastRunning = null;\n    this.attrs.lastComplete = taskInstance;\n    if (state === COMPLETION_SUCCESS) {\n      this.attrs.lastSuccessful = taskInstance;\n    } else {\n      if (state === COMPLETION_ERROR) {\n        this.attrs.lastErrored = taskInstance;\n      } else if (state === COMPLETION_CANCEL) {\n        this.attrs.lastCanceled = taskInstance;\n      }\n      this.attrs.lastIncomplete = taskInstance;\n    }\n  }\n\n  onPerformed(taskInstance) {\n    this.numPerformedInc += 1;\n    this.attrs.lastPerformed = taskInstance;\n  }\n\n  onStart(taskInstance) {\n    this.attrs.last = taskInstance;\n  }\n\n  onRunning(taskInstance) {\n    this.attrs.lastRunning = taskInstance;\n    this.numRunning += 1;\n  }\n\n  onQueued() {\n    this.numQueued += 1;\n  }\n\n  applyStateFrom(other) {\n    Object.assign(this.attrs, other.attrs);\n    this.numRunning += other.numRunning;\n    this.numQueued += other.numQueued;\n    this.numPerformedInc += other.numPerformedInc;\n  }\n}\n\nexport default RefreshState;\n","import RefreshState from './state';\n\nconst CURRENT_REFRESH_TAGS = new Map();\n\nclass StateTracker {\n  constructor() {\n    this.states = new Map();\n  }\n\n  stateFor(taskable) {\n    let guid = taskable.guid;\n    let taskState = this.states.get(guid);\n    if (!taskState) {\n      let currentTag = CURRENT_REFRESH_TAGS.has(guid)\n        ? CURRENT_REFRESH_TAGS.get(guid)\n        : 0;\n      taskState = new RefreshState(taskable, ++currentTag);\n      this.states.set(guid, taskState);\n      CURRENT_REFRESH_TAGS.set(guid, currentTag);\n    }\n    return taskState;\n  }\n\n  computeFinalStates(callback) {\n    this.forEachState((state) => callback(state));\n  }\n\n  forEachState(callback) {\n    this.states.forEach((state) => callback(state));\n  }\n}\n\nexport default StateTracker;\n","import NullState from './null-state';\n\nconst NULL_STATE = new NullState();\n\nclass NullStateTracker {\n  stateFor() {\n    return NULL_STATE;\n  }\n\n  computeFinalStates() {}\n}\n\nexport default NullStateTracker;\n","class NullState {\n  onCompletion() {}\n  onPerformed() {}\n  onStart() {}\n  onRunning() {}\n  onQueued() {}\n}\n\nexport default NullState;\n","import SchedulerRefresh from './refresh';\nimport StateTracker from './state-tracker/state-tracker';\nimport NullStateTracker from './state-tracker/null-state-tracker';\n\n// Scheduler base class\n\n// When a Task is performed, it creates an unstarted TaskInstance and\n// passes it to the Scheduler to determine when it should run. The\n// scheduler consults the schedulerPolicy (e.g. DropPolicy, RestartablePolicy, etc)\n// to determine whether the task instance should start executing, be enqueued\n// for later execution, or be immediately cancelled. As TaskInstances start\n// and run to completion, the Scheduler's `refresh()` method is called to\n// give it an opportunity to start (or cancel) previously enqueued task instances,\n// as well as update the derived state on Tasks.\n\n// Every Task has its own Scheduler instance, unless it is part of a group,\n// in which case all the Tasks in a group share a single Scheduler.\n\nclass Scheduler {\n  constructor(schedulerPolicy, stateTrackingEnabled) {\n    this.schedulerPolicy = schedulerPolicy;\n    this.stateTrackingEnabled = stateTrackingEnabled;\n    this.taskInstances = [];\n  }\n\n  cancelAll(guid, cancelRequest) {\n    let cancelations = this.taskInstances\n      .map((taskInstance) => {\n        if (taskInstance.task.guids[guid]) {\n          taskInstance.executor.cancel(cancelRequest);\n        }\n      })\n      .filter((cancelation) => !!cancelation);\n\n    return Promise.all(cancelations);\n  }\n\n  perform(taskInstance) {\n    taskInstance.onFinalize(() => this.scheduleRefresh());\n    this.taskInstances.push(taskInstance);\n    this.refresh();\n  }\n\n  scheduleRefresh() {\n    Promise.resolve().then(() => this.refresh());\n  }\n\n  refresh() {\n    let stateTracker = this.stateTrackingEnabled\n      ? new StateTracker()\n      : new NullStateTracker();\n    let refresh = new SchedulerRefresh(\n      this.schedulerPolicy,\n      stateTracker,\n      this.taskInstances,\n    );\n    this.taskInstances = refresh.process();\n  }\n}\n\nexport default Scheduler;\n","class BoundedPolicy {\n  constructor(maxConcurrency) {\n    this.maxConcurrency = maxConcurrency || 1;\n  }\n}\n\nexport default BoundedPolicy;\n","import BoundedPolicy from './bounded-policy';\nimport { makeCancelState, STARTED } from './execution-states';\n\nconst CANCELLED = makeCancelState(\n  `it belongs to a 'drop' Task that was already running`,\n);\n\nclass DropReducer {\n  constructor(remainingSlots) {\n    this.remainingSlots = remainingSlots;\n  }\n\n  step() {\n    if (this.remainingSlots > 0) {\n      this.remainingSlots--;\n      return STARTED;\n    }\n\n    return CANCELLED;\n  }\n}\n\nclass DropPolicy extends BoundedPolicy {\n  makeReducer() {\n    return new DropReducer(this.maxConcurrency);\n  }\n}\n\nexport default DropPolicy;\n","import BoundedPolicy from './bounded-policy';\nimport { STARTED, QUEUED } from './execution-states';\n\nclass EnqueuedReducer {\n  constructor(remainingSlots) {\n    this.remainingSlots = remainingSlots;\n  }\n\n  step() {\n    if (this.remainingSlots > 0) {\n      this.remainingSlots--;\n      return STARTED;\n    } else {\n      return QUEUED;\n    }\n  }\n}\n\nclass EnqueuedPolicy extends BoundedPolicy {\n  makeReducer() {\n    return new EnqueuedReducer(this.maxConcurrency);\n  }\n}\n\nexport default EnqueuedPolicy;\n","import BoundedPolicy from './bounded-policy';\nimport { STARTED, QUEUED, makeCancelState } from './execution-states';\n\nconst CANCELLED = makeCancelState(\n  `it belongs to a 'keepLatest' Task that was already running`,\n);\n\n// Given:\n// - started tasks: [a,b,_]\n// - queued tasks:  [c,d,e,f]\n// KeepLatest will cancel all but the last queued task instance, producing:\n// - started tasks: [a,b,c]\n// - queued tasks: [f]\n\n// TODO: perhaps we should expose another config for the number to keep enqueued.\n//       this would also make sense for enqueued, e.g. perform a max of maxConcurrency\n//       concurrent task instances, but after a number of queued instances has been\n//       reached, they should be cancelled.\n\nclass KeepLatestReducer {\n  constructor(remainingSlots, numToCancel) {\n    this.remainingSlots = remainingSlots;\n    this.numToCancel = numToCancel;\n  }\n\n  step() {\n    if (this.remainingSlots > 0) {\n      this.remainingSlots--;\n      return STARTED;\n    } else {\n      if (this.numToCancel > 0) {\n        this.numToCancel--;\n        return CANCELLED;\n      } else {\n        return QUEUED;\n      }\n    }\n  }\n}\n\nclass KeepLatestPolicy extends BoundedPolicy {\n  makeReducer(numRunning, numQueued) {\n    let maxEnqueued = 1;\n    let totalRunning = numRunning + numQueued;\n    return new KeepLatestReducer(\n      this.maxConcurrency,\n      totalRunning - this.maxConcurrency - maxEnqueued,\n    );\n  }\n}\n\nexport default KeepLatestPolicy;\n","import BoundedPolicy from './bounded-policy';\nimport { STARTED, makeCancelState } from './execution-states';\n\nconst CANCELLED = makeCancelState(\n  `it belongs to a 'restartable' Task that was .perform()ed again`,\n);\n\nclass RestartableReducer {\n  constructor(numToCancel) {\n    this.numToCancel = numToCancel;\n  }\n\n  step() {\n    if (this.numToCancel > 0) {\n      this.numToCancel--;\n      return CANCELLED;\n    } else {\n      return STARTED;\n    }\n  }\n}\n\nclass RestartablePolicy extends BoundedPolicy {\n  makeReducer(numRunning, numQueued) {\n    return new RestartableReducer(numRunning + numQueued - this.maxConcurrency);\n  }\n}\n\nexport default RestartablePolicy;\n","import { STARTED } from './execution-states';\n\nclass UnboundedReducer {\n  step() {\n    return STARTED;\n  }\n}\n\nconst SINGLETON_REDUCER = new UnboundedReducer();\n\nclass UnboundedPolicy {\n  makeReducer() {\n    return SINGLETON_REDUCER;\n  }\n}\n\nexport default UnboundedPolicy;\n","import { DEFAULT_ENVIRONMENT } from './environment';\nimport DropSchedulerPolicy from './scheduler/policies/drop-policy';\nimport EnqueueSchedulerPolicy from './scheduler/policies/enqueued-policy';\nimport KeepLatestSchedulerPolicy from './scheduler/policies/keep-latest-policy';\nimport RestartableSchedulerPolicy from './scheduler/policies/restartable-policy';\nimport UnboundedSchedulerPolicy from './scheduler/policies/unbounded-policy';\nimport Scheduler from './scheduler/scheduler';\nimport { Task } from './task/task';\n\nfunction assertUnsetBufferPolicy(obj) {\n  if (obj._hasSetBufferPolicy) {\n    throw new Error(\n      `Cannot set multiple buffer policies on a task. ${obj._schedulerPolicyClass} has already been set for task '${obj.name}'`,\n    );\n  }\n}\n\nconst MODIFIER_REGISTRY = {\n  enqueue: (factory, value) =>\n    value && factory.setBufferPolicy(EnqueueSchedulerPolicy),\n  debug: (factory, value) => value && factory.setDebug(value),\n  drop: (factory, value) =>\n    value && factory.setBufferPolicy(DropSchedulerPolicy),\n  keepLatest: (factory, value) =>\n    value && factory.setBufferPolicy(KeepLatestSchedulerPolicy),\n  maxConcurrency: (factory, maxConcurrency) =>\n    factory.setMaxConcurrency(maxConcurrency),\n  onState: (factory, onStateCallback) => factory.setOnState(onStateCallback),\n  restartable: (factory, value) =>\n    value && factory.setBufferPolicy(RestartableSchedulerPolicy),\n};\n\n/**\n * Callback type defining a task modifier\n *\n * @callback TaskFactory~TaskModifier\n * @param {TaskFactory} factory\n * @param {*} taskModifierOption\n */\n\n/**\n * Registers a new modifier with the modifier registry\n *\n * @param {string} name Name of the modifier\n * @param {TaskFactory~TaskModifier} callback\n */\nexport function registerModifier(name, callback) {\n  if (MODIFIER_REGISTRY[name]) {\n    throw new Error(\n      `A modifier with the name '${name}' has already been defined.`,\n    );\n  }\n\n  MODIFIER_REGISTRY[name] = callback;\n}\n\n/**\n * Returns a specified modifier, if it exists in the registry\n *\n * @param {string} name Name of the modifier\n * @returns {TaskFactory~TaskModifier?}\n */\nexport function getModifier(name) {\n  return MODIFIER_REGISTRY[name];\n}\n\n/**\n * Returns whether a specified modifier exists in the registry\n *\n * @param {string} name Name of the modifier\n * @returns {boolean}\n */\nexport function hasModifier(name) {\n  return name in MODIFIER_REGISTRY;\n}\n\n/**\n * Factory used for instantiating Tasks. Mostly for internal\n * use, but some public APIs exposed via the Task Modifier APIs.\n *\n * <style>\n *  .ignore-this--this-is-here-to-hide-constructor,\n *  #TaskFactory { display: none }\n * </style>\n *\n * @class TaskFactory\n */\nexport class TaskFactory {\n  env = DEFAULT_ENVIRONMENT;\n\n  _debug = null;\n  _enabledModifiers = [];\n  _hasSetConcurrencyConstraint = false;\n  _hasSetBufferPolicy = false;\n  _hasEnabledEvents = false;\n  _maxConcurrency = null;\n  _onStateCallback = (state, taskable) => taskable.setState(state);\n  _schedulerPolicyClass = UnboundedSchedulerPolicy;\n\n  constructor(name = '<unknown>', taskDefinition = null, options = {}) {\n    this.name = name;\n    this.taskDefinition = taskDefinition;\n    this.options = options;\n    this._processModifierOptions(options);\n  }\n\n  /**\n   * Returns a new Task bound to the given context\n   *\n   * @protected\n   * @param {*} context\n   * @returns {Task}\n   */\n  createTask(context) {\n    let options = this.getTaskOptions(context);\n\n    return new Task(\n      Object.assign(\n        {\n          generatorFactory: (args) => this.taskDefinition.apply(context, args),\n        },\n        options,\n      ),\n    );\n  }\n\n  /**\n   * Returns a modifier callback with the given name bound to this TaskFactory,\n   * if registered.\n   *\n   * @protected\n   * @param {string} name\n   * @returns {TaskFactory~TaskModifier?}\n   */\n  getModifier(name) {\n    if (hasModifier(name)) {\n      return MODIFIER_REGISTRY[name].bind(null, this);\n    }\n  }\n\n  /**\n   * Returns the options provided to TaskFactory\n   *\n   * @public\n   * @returns {object}\n   */\n  getOptions() {\n    return this.options;\n  }\n\n  /**\n   * Returns a new Scheduler instance\n   *\n   * @protected\n   * @param {*} schedulerPolicy\n   * @param {boolean} stateTrackingEnabled\n   * @returns {Scheduler}\n   */\n  getScheduler(schedulerPolicy, stateTrackingEnabled) {\n    return new Scheduler(schedulerPolicy, stateTrackingEnabled);\n  }\n\n  /**\n   * Returns the options to pass to a Task constructor\n   *\n   * @protected\n   * @param {*} context\n   * @returns {object}\n   */\n  getTaskOptions(context) {\n    let group, scheduler;\n    let onStateCallback = this._onStateCallback;\n\n    let schedulerPolicy = new this._schedulerPolicyClass(this._maxConcurrency);\n    scheduler = this.getScheduler(\n      schedulerPolicy,\n      onStateCallback && typeof onStateCallback === 'function',\n    );\n\n    return {\n      context,\n      debug: this._debug,\n      env: this.env,\n      name: this.name,\n      group,\n      scheduler,\n      hasEnabledEvents: this._hasEnabledEvents,\n      onStateCallback,\n      enabledModifiers: this._enabledModifiers,\n      modifierOptions: this.getOptions(),\n    };\n  }\n\n  /**\n   * Sets the Scheduler buffer policy class to the specified value.\n   *\n   * Will raise an assertion if a buffer policy has already been specified\n   *\n   * @param {*} policy\n   * @returns {TaskFactory}\n   */\n  setBufferPolicy(policy) {\n    assertUnsetBufferPolicy(this);\n    this._hasSetBufferPolicy = true;\n    this._hasSetConcurrencyConstraint = true;\n    this._schedulerPolicyClass = policy;\n\n    return this;\n  }\n\n  /**\n   * Sets debug mode\n   *\n   * @param {boolean} enabled\n   * @returns {TaskFactory}\n   */\n  setDebug(enabled) {\n    this._debug = enabled;\n    return this;\n  }\n\n  /**\n   * Sets whether Task will dispatch Task events or not\n   *\n   * @param {boolean} enabled\n   * @returns {TaskFactory}\n   */\n  setEvented(enabled) {\n    this._hasEnabledEvents = enabled;\n    return this;\n  }\n\n  /**\n   * Sets Scheduling policy's `maxConcurrency`\n   *\n   * @param {number} maxConcurrency\n   * @returns {TaskFactory}\n   */\n  setMaxConcurrency(maxConcurrency) {\n    this._hasSetConcurrencyConstraint = true;\n    this._maxConcurrency = maxConcurrency;\n    return this;\n  }\n\n  /**\n   * Sets the name of tasks created from this factory\n   *\n   * @param {string} name\n   * @returns {TaskFactory}\n   */\n  setName(name) {\n    this.name = name;\n    return this;\n  }\n\n  /**\n   * Sets the callback used on state updates. Can be set to null to disable\n   * state tracking on tasks.\n   *\n   * @param {function} onStateCallback\n   * @returns {TaskFactory}\n   */\n  setOnState(onStateCallback) {\n    this._onStateCallback = onStateCallback;\n    return this;\n  }\n\n  /**\n   * Sets the definition for tasks created from this factory\n   *\n   * @param {*} taskDefinition\n   * @returns {TaskFactory}\n   */\n  setTaskDefinition(taskDefinition) {\n    this.taskDefinition = taskDefinition;\n    return this;\n  }\n\n  _processModifierOptions(options) {\n    if (!options) {\n      return;\n    }\n\n    for (let key of Object.keys(options)) {\n      let value = options[key];\n      let modifier = this.getModifier(key);\n\n      if (typeof modifier === 'function' && modifier(value)) {\n        this._enabledModifiers.push(key);\n      }\n    }\n  }\n}\n","export const TASK_CANCELATION_NAME = 'TaskCancelation';\n\n/**\n * Returns true if the object passed to it is a TaskCancelation error.\n * If you call `someTask.perform().catch(...)` or otherwise treat\n * a {@linkcode TaskInstance} like a promise, you may need to\n * handle the cancelation of a TaskInstance differently from\n * other kinds of errors it might throw, and you can use this\n * convenience function to distinguish cancelation from errors.\n *\n * ```js\n * click() {\n *   this.myTask.perform().catch(e => {\n *     if (!didCancel(e)) { throw e; }\n *   });\n * }\n * ```\n *\n * @param {object} error the caught error, which might be a TaskCancelation\n * @returns {boolean}\n */\nexport function didCancel(e) {\n  return e && e.name === TASK_CANCELATION_NAME;\n}\n\nexport const CANCEL_KIND_EXPLICIT = 'explicit';\nexport const CANCEL_KIND_YIELDABLE_CANCEL = 'yielded';\nexport const CANCEL_KIND_LIFESPAN_END = 'lifespan_end';\nexport const CANCEL_KIND_PARENT_CANCEL = 'parent_cancel';\n\nexport class CancelRequest {\n  constructor(kind, reason) {\n    this.kind = kind;\n    this.reason = reason;\n    this.promise = new Promise((resolve) => {\n      this.finalize = resolve;\n    });\n  }\n}\n","import { COMPLETION_PENDING } from './completion-states';\n\nexport const INITIAL_STATE = {\n  completionState: COMPLETION_PENDING,\n\n  /**\n   * If this TaskInstance runs to completion by returning a property\n   * other than a rejecting promise, this property will be set\n   * with that value.\n   *\n   * @memberof TaskInstance\n   * @instance\n   * @readOnly\n   */\n  value: null,\n\n  /**\n   * If this TaskInstance is canceled or throws an error (or yields\n   * a promise that rejects), this property will be set with that error.\n   * Otherwise, it is null.\n   *\n   * @memberof TaskInstance\n   * @instance\n   * @readOnly\n   */\n  error: null,\n\n  /**\n   * True if the task instance is fulfilled.\n   *\n   * @memberof TaskInstance\n   * @instance\n   * @readOnly\n   */\n  isSuccessful: false,\n\n  /**\n   * True if the task instance resolves to a rejection.\n   *\n   * @memberof TaskInstance\n   * @instance\n   * @readOnly\n   */\n  isError: false,\n\n  /**\n   * True if the task instance is canceled\n   *\n   * @memberof TaskInstance\n   * @instance\n   * @readOnly\n   */\n  isCanceled: false,\n\n  /**\n   * True if the task instance has started, else false.\n   *\n   * @memberof TaskInstance\n   * @instance\n   * @readOnly\n   */\n  hasStarted: false,\n\n  /**\n   * True if the task has run to completion.\n   *\n   * @memberof TaskInstance\n   * @instance\n   * @readOnly\n   */\n  isFinished: false,\n};\n","export const DEFAULT_STATE = {\n  last: null,\n  lastRunning: null,\n  lastPerformed: null,\n  lastSuccessful: null,\n  lastComplete: null,\n  lastErrored: null,\n  lastCanceled: null,\n  lastIncomplete: null,\n  performCount: 0,\n};\n\nObject.freeze(DEFAULT_STATE);\n","export class GeneratorStepResult {\n  constructor(value, done, errored) {\n    this.value = value;\n    this.done = done;\n    this.errored = errored;\n  }\n}\n\nexport class GeneratorState {\n  constructor(generatorFactory) {\n    this.done = false;\n    this.generatorFactory = generatorFactory;\n    this.iterator = null;\n  }\n\n  step(resolvedValue, iteratorMethod) {\n    try {\n      let iterator = this.getIterator();\n      let { value, done } = iterator[iteratorMethod](resolvedValue);\n\n      if (done) {\n        return this.finalize(value, false);\n      } else {\n        return new GeneratorStepResult(value, false, false);\n      }\n    } catch (e) {\n      return this.finalize(e, true);\n    }\n  }\n\n  getIterator() {\n    if (!this.iterator && !this.done) {\n      this.iterator = this.generatorFactory();\n    }\n    return this.iterator;\n  }\n\n  finalize(value, errored) {\n    this.done = true;\n    this.iterator = null;\n    return new GeneratorStepResult(value, true, errored);\n  }\n}\n","import { GeneratorState } from '../generator-state';\nimport {\n  cancelableSymbol,\n  YIELDABLE_CANCEL,\n  YIELDABLE_CONTINUE,\n  YIELDABLE_RETURN,\n  YIELDABLE_THROW,\n  yieldableSymbol,\n} from '../yieldables';\nimport { INITIAL_STATE } from './initial-state';\n\nimport {\n  CANCEL_KIND_LIFESPAN_END,\n  CANCEL_KIND_PARENT_CANCEL,\n  CANCEL_KIND_YIELDABLE_CANCEL,\n  CancelRequest,\n  didCancel,\n  TASK_CANCELATION_NAME,\n} from './cancelation';\nimport {\n  COMPLETION_CANCEL,\n  COMPLETION_ERROR,\n  COMPLETION_SUCCESS,\n} from './completion-states';\n\nexport const PERFORM_TYPE_DEFAULT = 'PERFORM_TYPE_DEFAULT';\nexport const PERFORM_TYPE_UNLINKED = 'PERFORM_TYPE_UNLINKED';\nexport const PERFORM_TYPE_LINKED = 'PERFORM_TYPE_LINKED';\n\nconst CANCEL_RETURN_VALUE_SENTINEL = {};\nlet TASK_INSTANCE_STACK = [];\n\nexport function getRunningInstance() {\n  return TASK_INSTANCE_STACK[TASK_INSTANCE_STACK.length - 1];\n}\n\nexport class TaskInstanceExecutor {\n  constructor({ generatorFactory, env, debug }) {\n    this.generatorState = new GeneratorState(generatorFactory);\n    this.state = Object.assign({}, INITIAL_STATE);\n    this.index = 1;\n    this.disposers = [];\n    this.finalizeCallbacks = [];\n    this.env = env;\n    this.debug = debug;\n    this.cancelRequest = null;\n  }\n\n  start() {\n    if (this.state.hasStarted || this.cancelRequest) {\n      return;\n    }\n    this.setState({ hasStarted: true });\n    this.proceedSync(YIELDABLE_CONTINUE, undefined);\n  }\n\n  cancel(cancelRequest) {\n    if (!this.requestCancel(cancelRequest)) {\n      cancelRequest.finalize();\n      return cancelRequest.promise;\n    }\n\n    if (this.state.hasStarted) {\n      this.proceedWithCancelAsync();\n    } else {\n      this.finalizeWithCancel();\n    }\n\n    return this.cancelRequest.promise;\n  }\n\n  setState(state) {\n    Object.assign(this.state, state);\n    this.taskInstance.setState(this.state);\n  }\n\n  proceedChecked(index, yieldResumeType, value) {\n    if (this.state.isFinished) {\n      return;\n    }\n    if (!this.advanceIndex(index)) {\n      return;\n    }\n\n    if (yieldResumeType === YIELDABLE_CANCEL) {\n      this.requestCancel(\n        new CancelRequest(CANCEL_KIND_YIELDABLE_CANCEL),\n        value,\n      );\n      this.proceedWithCancelAsync();\n    } else {\n      this.proceedAsync(yieldResumeType, value);\n    }\n  }\n\n  proceedWithCancelAsync() {\n    this.proceedAsync(YIELDABLE_RETURN, CANCEL_RETURN_VALUE_SENTINEL);\n  }\n\n  proceedAsync(yieldResumeType, value) {\n    this.advanceIndex(this.index);\n    this.env.async(() => this.proceedSync(yieldResumeType, value));\n  }\n\n  proceedSync(yieldResumeType, value) {\n    if (this.state.isFinished) {\n      return;\n    }\n\n    this.dispose();\n\n    if (this.generatorState.done) {\n      this.handleResolvedReturnedValue(yieldResumeType, value);\n    } else {\n      this.handleResolvedContinueValue(yieldResumeType, value);\n    }\n  }\n\n  /**\n   * This method is called when a previously yielded value from\n   * the generator has been resolved, and now it's time to pass\n   * it back into the generator. There are 3 ways to \"resume\" a\n   * generator:\n   *\n   * - call `.next(value)` on it, which is used to pass in a resolved\n   *   value (the fulfilled value of a promise), e.g. if a task generator fn\n   *   does `await Promise.resolve(5)`, then we take that promise yielded\n   *   by the generator, detect that it's a promise, resolve it, and then\n   *   pass its fulfilled value `5` back into the generator function so\n   *   that it can continue executing.\n   * - call `.throw(error)` on it, which throw an exception from where the\n   *   the generator previously yielded. We do this when the previously\n   *   yielded value resolves to an error value (e.g. a rejected promise\n   *   or a TaskInstance that finished with an error). Note that when you\n   *   resume a generator with a `.throw()`, it can still recover from that\n   *   thrown error and continue executing normally so long as the `yield`\n   *   was inside a `try/catch` statement.\n   * - call `.return(value)` on it, causes the generator function to return\n   *   from where it previously `yield`ed. We use `.return()` when cancelling\n   *   a TaskInstance; by `.return`ing, rather than `.throw`ing, it allows\n   *   the generator function to skip `catch(e) {}` blocks, which is usually\n   *   reserved for actual errors/exceptions; if we `.throw`'d cancellations,\n   *   it would require all tasks that used try/catch to conditionally ignore\n   *   cancellations, which is annoying. So we `.return()` from generator functions\n   *   in the case of errors as a matter of convenience.\n   *\n   * @private\n   */\n  handleResolvedContinueValue(iteratorMethod, resumeValue) {\n    let beforeIndex = this.index;\n    let stepResult = this.generatorStep(resumeValue, iteratorMethod);\n\n    // TODO: what is this doing? write breaking test.\n    if (!this.advanceIndex(beforeIndex)) {\n      return;\n    }\n\n    if (stepResult.errored) {\n      this.finalize(stepResult.value, COMPLETION_ERROR);\n      return;\n    }\n\n    this.handleYieldedValue(stepResult);\n  }\n\n  /**\n   * This method is called when the generator function is all\n   * out of values, and the last value returned from the function\n   * (possible a thenable/yieldable/promise/etc) has been resolved.\n   *\n   * Possible cases:\n   * - `return \"simple value\";` // resolved value is \"simple value\"\n   * - `return undefined;` // (or omitted return) resolved value is undefined\n   * - `return someTask.perform()` // resolved value is the value returned/resolved from someTask\n   *\n   * @private\n   */\n  handleResolvedReturnedValue(yieldResumeType, value) {\n    switch (yieldResumeType) {\n      case YIELDABLE_CONTINUE:\n      case YIELDABLE_RETURN:\n        this.finalize(value, COMPLETION_SUCCESS);\n        break;\n      case YIELDABLE_THROW:\n        this.finalize(value, COMPLETION_ERROR);\n        break;\n    }\n  }\n\n  handleYieldedUnknownThenable(thenable) {\n    let resumeIndex = this.index;\n    thenable.then(\n      (value) => {\n        this.proceedChecked(resumeIndex, YIELDABLE_CONTINUE, value);\n      },\n      (error) => {\n        this.proceedChecked(resumeIndex, YIELDABLE_THROW, error);\n      },\n    );\n  }\n\n  /**\n   * The TaskInstance internally tracks an index/sequence number\n   * (the `index` property) which gets incremented every time the\n   * task generator function iterator takes a step. When a task\n   * function is paused at a `yield`, there are two events that\n   * cause the TaskInstance to take a step: 1) the yielded value\n   * \"resolves\", thus resuming the TaskInstance's execution, or\n   * 2) the TaskInstance is canceled. We need some mechanism to prevent\n   * stale yielded value resolutions from resuming the TaskFunction\n   * after the TaskInstance has already moved on (either because\n   * the TaskInstance has since been canceled or because an\n   * implementation of the Yieldable API tried to resume the\n   * TaskInstance more than once). The `index` serves as\n   * that simple mechanism: anyone resuming a TaskInstance\n   * needs to pass in the `index` they were provided that acts\n   * as a ticket to resume the TaskInstance that expires once\n   * the TaskInstance has moved on.\n   *\n   * @private\n   */\n  advanceIndex(index) {\n    if (this.index === index) {\n      return ++this.index;\n    }\n  }\n\n  handleYieldedValue(stepResult) {\n    let yieldedValue = stepResult.value;\n    if (!yieldedValue) {\n      this.proceedWithSimpleValue(yieldedValue);\n      return;\n    }\n\n    this.addDisposer(yieldedValue[cancelableSymbol]);\n\n    if (yieldedValue[yieldableSymbol]) {\n      this.invokeYieldable(yieldedValue);\n    } else if (typeof yieldedValue.then === 'function') {\n      this.handleYieldedUnknownThenable(yieldedValue);\n    } else {\n      this.proceedWithSimpleValue(yieldedValue);\n    }\n  }\n\n  proceedWithSimpleValue(yieldedValue) {\n    this.proceedAsync(YIELDABLE_CONTINUE, yieldedValue);\n  }\n\n  addDisposer(maybeDisposer) {\n    if (typeof maybeDisposer !== 'function') {\n      return;\n    }\n\n    this.disposers.push(maybeDisposer);\n  }\n\n  /**\n   * Runs any disposers attached to the task's most recent `yield`.\n   * For instance, when a task yields a TaskInstance, it registers that\n   * child TaskInstance's disposer, so that if the parent task is canceled,\n   * dispose() will run that disposer and cancel the child TaskInstance.\n   *\n   * @private\n   */\n  dispose() {\n    let disposers = this.disposers;\n    if (disposers.length === 0) {\n      return;\n    }\n    this.disposers = [];\n    disposers.forEach((disposer) => disposer());\n  }\n\n  /**\n   * Calls .next()/.throw()/.return() on the task's generator function iterator,\n   * essentially taking a single step of execution on the task function.\n   *\n   * @private\n   */\n  generatorStep(nextValue, iteratorMethod) {\n    TASK_INSTANCE_STACK.push(this);\n    let stepResult = this.generatorState.step(nextValue, iteratorMethod);\n    TASK_INSTANCE_STACK.pop();\n\n    // TODO: fix this!\n    if (this._expectsLinkedYield) {\n      let value = stepResult.value;\n      if (!value || value.performType !== PERFORM_TYPE_LINKED) {\n        // eslint-disable-next-line no-console\n        console.warn(\n          'You performed a .linked() task without immediately yielding/returning it. This is currently unsupported (but might be supported in future version of ember-concurrency).',\n        );\n      }\n      this._expectsLinkedYield = false;\n    }\n\n    return stepResult;\n  }\n\n  maybeResolveDefer() {\n    if (!this.defer || !this.state.isFinished) {\n      return;\n    }\n\n    if (this.state.completionState === COMPLETION_SUCCESS) {\n      this.defer.resolve(this.state.value);\n    } else {\n      this.defer.reject(this.state.error);\n    }\n  }\n\n  onFinalize(callback) {\n    this.finalizeCallbacks.push(callback);\n\n    if (this.state.isFinished) {\n      this.runFinalizeCallbacks();\n    }\n  }\n\n  runFinalizeCallbacks() {\n    this.finalizeCallbacks.forEach((cb) => cb());\n    this.finalizeCallbacks = [];\n    this.maybeResolveDefer();\n    this.maybeThrowUnhandledTaskErrorLater();\n  }\n\n  promise() {\n    if (!this.defer) {\n      this.defer = this.env.defer();\n      this.asyncErrorsHandled = true;\n      this.maybeResolveDefer();\n    }\n    return this.defer.promise;\n  }\n\n  maybeThrowUnhandledTaskErrorLater() {\n    if (\n      !this.asyncErrorsHandled &&\n      this.state.completionState === COMPLETION_ERROR &&\n      !didCancel(this.state.error)\n    ) {\n      this.env.async(() => {\n        if (!this.asyncErrorsHandled) {\n          this.env.reportUncaughtRejection(this.state.error);\n        }\n      });\n    }\n  }\n\n  requestCancel(request) {\n    if (this.cancelRequest || this.state.isFinished) {\n      return false;\n    }\n    this.cancelRequest = request;\n    return true;\n  }\n\n  finalize(value, completionState) {\n    if (this.cancelRequest) {\n      return this.finalizeWithCancel();\n    }\n\n    let state = { completionState };\n\n    if (completionState === COMPLETION_SUCCESS) {\n      state.isSuccessful = true;\n      state.value = value;\n    } else if (completionState === COMPLETION_ERROR) {\n      state.isError = true;\n      state.error = value;\n    } else if (completionState === COMPLETION_CANCEL) {\n      state.error = value;\n    }\n\n    this.finalizeShared(state);\n  }\n\n  finalizeWithCancel() {\n    let cancelReason = this.taskInstance.formatCancelReason(\n      this.cancelRequest.reason,\n    );\n    let error = new Error(cancelReason);\n\n    if (this.debugEnabled()) {\n      // eslint-disable-next-line no-console\n      console.log(cancelReason);\n    }\n\n    error.name = TASK_CANCELATION_NAME;\n\n    this.finalizeShared({\n      isCanceled: true,\n      completionState: COMPLETION_CANCEL,\n      error,\n      cancelReason,\n    });\n\n    this.cancelRequest.finalize();\n  }\n\n  debugEnabled() {\n    return this.debug || this.env.globalDebuggingEnabled();\n  }\n\n  finalizeShared(state) {\n    this.index++;\n    state.isFinished = true;\n    this.setState(state);\n    this.runFinalizeCallbacks();\n  }\n\n  invokeYieldable(yieldedValue) {\n    try {\n      let maybeDisposer = yieldedValue[yieldableSymbol](\n        this.taskInstance,\n        this.index,\n      );\n      this.addDisposer(maybeDisposer);\n    } catch (e) {\n      this.env.reportUncaughtRejection(e);\n    }\n  }\n\n  /**\n   * `onYielded` is called when this task instance has been\n   * yielded in another task instance's execution. We take\n   * this opportunity to conditionally link up the tasks\n   * so that when the parent or child cancels, the other\n   * is cancelled.\n   *\n   * Given the following case:\n   *\n   * ```js\n   * parentTask = task(async () => {\n   *   await otherTask.perform();\n   * });\n   * ```\n   *\n   * Then the `parent` param is the task instance that is executing, `this`\n   * is the `otherTask` task instance that was yielded.\n   *\n   * @private\n   */\n  onYielded(parent, resumeIndex) {\n    this.asyncErrorsHandled = true;\n\n    this.onFinalize(() => {\n      let completionState = this.state.completionState;\n      if (completionState === COMPLETION_SUCCESS) {\n        parent.proceed(resumeIndex, YIELDABLE_CONTINUE, this.state.value);\n      } else if (completionState === COMPLETION_ERROR) {\n        parent.proceed(resumeIndex, YIELDABLE_THROW, this.state.error);\n      } else if (completionState === COMPLETION_CANCEL) {\n        parent.proceed(resumeIndex, YIELDABLE_CANCEL, null);\n      }\n    });\n\n    let performType = this.getPerformType();\n    if (performType === PERFORM_TYPE_UNLINKED) {\n      return;\n    }\n\n    return () => {\n      this.detectSelfCancelLoop(performType, parent);\n      this.cancel(new CancelRequest(CANCEL_KIND_PARENT_CANCEL));\n    };\n  }\n\n  getPerformType() {\n    return this.taskInstance.performType || PERFORM_TYPE_DEFAULT;\n  }\n\n  detectSelfCancelLoop(performType, parent) {\n    if (performType !== PERFORM_TYPE_DEFAULT) {\n      return;\n    }\n\n    let parentCancelRequest = parent.executor && parent.executor.cancelRequest;\n\n    // Detect that the parent was cancelled by a lifespan ending and\n    // that the child is still running and not cancelled.\n    if (\n      parentCancelRequest &&\n      parentCancelRequest.kind === CANCEL_KIND_LIFESPAN_END &&\n      !this.cancelRequest &&\n      !this.state.isFinished\n    ) {\n      this.taskInstance.selfCancelLoopWarning(parent);\n    }\n  }\n}\n","import { DEFAULT_STATE } from './default-state';\nimport {\n  CancelRequest,\n  CANCEL_KIND_EXPLICIT,\n} from '../task-instance/cancelation';\n\nlet guidId = 0;\nfunction makeGuid() {\n  return `ec_${guidId++}`;\n}\n\nexport class Taskable {\n  constructor(options) {\n    this.context = options.context;\n    this.debug = options.debug || false;\n    this.enabledModifiers = options.enabledModifiers;\n    this.env = options.env;\n    this.group = options.group;\n    this.hasEnabledEvents = options.hasEnabledEvents;\n    this.modifierOptions = options.modifierOptions;\n    this.name = options.name;\n    this.onStateCallback = options.onStateCallback;\n    this.scheduler = options.scheduler;\n\n    this.guid = makeGuid();\n    this.guids = {};\n    this.guids[this.guid] = true;\n    if (this.group) {\n      Object.assign(this.guids, this.group.guids);\n    }\n  }\n\n  cancelAll(options) {\n    let { reason, cancelRequestKind, resetState } = options || {};\n    reason = reason || '.cancelAll() was explicitly called on the Task';\n\n    let cancelRequest = new CancelRequest(\n      cancelRequestKind || CANCEL_KIND_EXPLICIT,\n      reason,\n    );\n    return this.scheduler.cancelAll(this.guid, cancelRequest).then(() => {\n      if (resetState) {\n        this._resetState();\n      }\n    });\n  }\n\n  get _isAlive() {\n    return true;\n  }\n\n  _resetState() {\n    this.setState(DEFAULT_STATE);\n  }\n\n  // override\n  setState() {}\n}\n\nObject.assign(Taskable.prototype, DEFAULT_STATE);\nObject.assign(Taskable.prototype, {\n  numRunning: 0,\n  numQueued: 0,\n  isRunning: false,\n  isQueued: false,\n  isIdle: true,\n  state: 'idle',\n});\n","import {\n  getRunningInstance,\n  PERFORM_TYPE_DEFAULT,\n  PERFORM_TYPE_LINKED,\n  PERFORM_TYPE_UNLINKED,\n  TaskInstanceExecutor,\n} from '../task-instance/executor';\nimport { Taskable } from './taskable';\n\nclass TaskLinkProxy {\n  constructor(task, performType, linkedObject) {\n    this.task = task;\n    this.performType = performType;\n    this.linkedObject = linkedObject;\n  }\n\n  perform(...args) {\n    return this.task._performShared(args, this.performType, this.linkedObject);\n  }\n}\n\nexport class Task extends Taskable {\n  constructor(options) {\n    super(options);\n    this.generatorFactory = options.generatorFactory;\n    this.perform = this._perform.bind(this);\n  }\n\n  linked() {\n    let linkedObject = getRunningInstance();\n    if (!linkedObject) {\n      throw new Error(`You can only call .linked() from within a task.`);\n    }\n\n    return new TaskLinkProxy(this, PERFORM_TYPE_LINKED, linkedObject);\n  }\n\n  unlinked() {\n    return new TaskLinkProxy(this, PERFORM_TYPE_UNLINKED, null);\n  }\n\n  toString() {\n    return `<Task:${this.name}>`;\n  }\n\n  _clone() {\n    return new Task({\n      context: this.context,\n      debug: this.debug,\n      env: this.env,\n      generatorFactory: this.generatorFactory,\n      group: this.group,\n      hasEnabledEvents: this.hasEnabledEvents,\n      name: this.name,\n      onStateCallback: this.onStateCallback,\n      scheduler: this.scheduler,\n    });\n  }\n\n  _curry(...args) {\n    let task = this._clone();\n    task._curryArgs = [...(this._curryArgs || []), ...args];\n    return task;\n  }\n\n  _perform(...args) {\n    return this._performShared(args, PERFORM_TYPE_DEFAULT, null);\n  }\n\n  _performShared(args, performType, linkedObject) {\n    let fullArgs = this._curryArgs ? [...this._curryArgs, ...args] : args;\n    let taskInstance = this._taskInstanceFactory(\n      fullArgs,\n      performType,\n      linkedObject,\n    );\n\n    if (performType === PERFORM_TYPE_LINKED) {\n      linkedObject._expectsLinkedYield = true;\n    }\n\n    if (!this._isAlive) {\n      // a task linked to a dead lifetime should immediately cancel.\n      taskInstance.cancel();\n    }\n\n    this.scheduler.perform(taskInstance);\n    return taskInstance;\n  }\n\n  // eslint-disable-next-line no-unused-vars\n  _taskInstanceOptions(args, performType, _linkedObject) {\n    let generatorFactory = () => this.generatorFactory(args);\n    let taskInstanceOptions = {\n      args,\n      executor: new TaskInstanceExecutor({\n        generatorFactory,\n        env: this.env,\n        debug: this.debug,\n      }),\n      performType,\n      hasEnabledEvents: this.hasEnabledEvents,\n    };\n\n    return taskInstanceOptions;\n  }\n}\n","export const cancelableSymbol = '__ec_cancel__';\nexport const yieldableSymbol = '__ec_yieldable__';\nexport const YIELDABLE_CONTINUE = 'next';\nexport const YIELDABLE_THROW = 'throw';\nexport const YIELDABLE_RETURN = 'return';\nexport const YIELDABLE_CANCEL = 'cancel';\n\n/**\n * @class YieldableState\n * @hideconstructor\n */\nclass YieldableState {\n  constructor(taskInstance, resumeIndex) {\n    this._taskInstance = taskInstance;\n    this._resumeIndex = resumeIndex;\n  }\n\n  /**\n   * Return yielded TaskInstance. Useful for introspection on instance state.\n   * @method getTaskInstance\n   * @memberof YieldableState\n   * @public\n   * @instance\n   */\n  getTaskInstance() {\n    return this._taskInstance;\n  }\n\n  /**\n   * Cancel the yielded TaskInstance.\n   * @method cancel\n   * @memberof YieldableState\n   * @public\n   * @instance\n   */\n  cancel() {\n    let taskInstance = this._taskInstance;\n    taskInstance.proceed.call(\n      taskInstance,\n      this._resumeIndex,\n      YIELDABLE_CANCEL,\n    );\n  }\n\n  /**\n   * Cause the TaskInstance to return from its awaited with an optional value,\n   * and continue executing.\n   * @method next\n   * @memberof YieldableState\n   * @param value\n   * @public\n   * @instance\n   */\n  next(value) {\n    let taskInstance = this._taskInstance;\n    taskInstance.proceed.call(\n      taskInstance,\n      this._resumeIndex,\n      YIELDABLE_CONTINUE,\n      value,\n    );\n  }\n\n  /**\n   * Short-circuit TaskInstance execution and have it return with an optional\n   * value.\n   * @method return\n   * @memberof YieldableState\n   * @param value\n   * @public\n   * @instance\n   */\n  return(value) {\n    let taskInstance = this._taskInstance;\n    taskInstance.proceed.call(\n      taskInstance,\n      this._resumeIndex,\n      YIELDABLE_RETURN,\n      value,\n    );\n  }\n\n  /**\n   * Raise a given error within the given task instance and halt execution\n   * @method throw\n   * @memberof YieldableState\n   * @param error\n   * @public\n   * @instance\n   */\n  throw(error) {\n    let taskInstance = this._taskInstance;\n    taskInstance.proceed.call(\n      taskInstance,\n      this._resumeIndex,\n      YIELDABLE_THROW,\n      error,\n    );\n  }\n}\n\n/**\n * Yieldables are a primitive for building safe, cancelation-aware ways to\n * instrument and introspect the runtime of a task. Many Yieldables are built-in\n * to ember-concurrency today, such as `timeout`, `animationFrame`, and\n * `rawTimeout`.\n *\n * For example, if I wanted to implement a yieldable for `requestIdleCallback`,\n * I could do the following:\n *\n * ```javascript\n * import Component from '@glimmer/component';\n * import { task, Yieldable } from 'ember-concurrency';\n *\n * class IdleCallbackYieldable extends Yieldable {\n *   onYield(state) {\n *     let callbackId = requestIdleCallback(() => state.next());\n *\n *     return () => cancelIdleCallback(callbackId);\n *   }\n * }\n *\n * const idleCallback = () => new IdleCallbackYieldable();\n *\n * class MyComponent extends Component {\n *   backgroundTask = task(async () => {\n *     while (1) {\n *       await idleCallback();\n *\n *       const data = this.complicatedNumberCrunching();\n *       await this.sendData(data);\n *     }\n *   });\n * }\n * ```\n *\n * In general, `Yieldable` instances **should** be reusable across calls, and thus\n * care should be taken to ensure that teardown is provided and state not\n * intended to be shared across calls stay inside `onYield`.\n *\n * `Yieldable` also provides automatic Promise-casting.\n *\n * <style>\n *   .ignore-this--this-is-here-to-hide-constructor,\n *   #Yieldable { display: none }\n * </style>\n *\n * @class Yieldable\n */\nexport class Yieldable {\n  constructor() {\n    this[yieldableSymbol] = this[yieldableSymbol].bind(this);\n  }\n\n  /**\n   * Defines what happens when the task encounters `await myYieldable` and returns\n   * a disposer function that handles any cleanup.\n   *\n   * The state parameter is provided by the runtime, and provides operations for\n   * interacting with the yielding task instance and advancing, returning,\n   * throwing, or canceling its execution.\n   *\n   * @method onYield\n   * @memberof Yieldable\n   * @param {YieldableState} state\n   * @instance\n   * @public\n   */\n  onYield() {}\n\n  _deferable() {\n    let def = { resolve: undefined, reject: undefined };\n\n    def.promise = new Promise((resolve, reject) => {\n      def.resolve = resolve;\n      def.reject = reject;\n    });\n\n    return def;\n  }\n\n  _toPromise() {\n    let def = this._deferable();\n\n    let thinInstance = {\n      proceed(_index, resumeType, value) {\n        if (\n          resumeType == YIELDABLE_CONTINUE ||\n          resumeType == YIELDABLE_RETURN\n        ) {\n          def.resolve(value);\n        } else {\n          def.reject(value);\n        }\n      },\n    };\n\n    let maybeDisposer = this[yieldableSymbol](thinInstance, 0);\n    def.promise[cancelableSymbol] = maybeDisposer;\n\n    return def.promise;\n  }\n\n  /**\n   * Returns a promise that resolves with the value yielded back to or returned\n   * to the yielded task, or rejects with either the exception thrown from the\n   * Yieldable, or an error with a `.name` property with value `\"TaskCancelation\"`.\n   *\n   * @method then\n   * @memberof Yieldable\n   * @instance\n   * @return {Promise}\n   */\n  then(...args) {\n    return this._toPromise().then(...args);\n  }\n\n  /**\n   * @method catch\n   * @memberof Yieldable\n   * @instance\n   * @return {Promise}\n   */\n  catch(...args) {\n    return this._toPromise().catch(...args);\n  }\n\n  /**\n   * @method finally\n   * @memberof Yieldable\n   * @instance\n   * @return {Promise}\n   */\n  finally(...args) {\n    return this._toPromise().finally(...args);\n  }\n\n  [yieldableSymbol](taskInstance, resumeIndex) {\n    let state = new YieldableState(taskInstance, resumeIndex);\n\n    return this.onYield(state);\n  }\n}\n\nclass AnimationFrameYieldable extends Yieldable {\n  onYield(state) {\n    let timerId = requestAnimationFrame(() => state.next());\n\n    return () => cancelAnimationFrame(timerId);\n  }\n}\n\nclass ForeverYieldable extends Yieldable {\n  onYield() {}\n}\n\nclass RawTimeoutYieldable extends Yieldable {\n  constructor(ms) {\n    super();\n    this.ms = ms;\n  }\n\n  onYield(state) {\n    let timerId = setTimeout(() => state.next(), this.ms);\n\n    return () => clearTimeout(timerId);\n  }\n}\n\n/**\n * Yielding `animationFrame()` will pause a task until after the next animation\n * frame using the native `requestAnimationFrame()` browser API.\n *\n * The task below, when performed, will print the time since the last loop run\n * for every animation frame.\n *\n * ```js\n * export default class MyComponent extends Component {\n *   myTask = task(async () => {\n *     let lastNow = performance.now();\n *     while (true) {\n *       await animationFrame();\n *\n *       let now = performance.now();\n *       let dt = now - lastNow;\n *       lastNow = now;\n *\n *       console.log(dt);\n *     }\n *   });\n * }\n * ```\n */\nexport function animationFrame() {\n  return new AnimationFrameYieldable();\n}\n\n/**\n *\n * Yielding `forever` will pause a task indefinitely until\n * it is cancelled (i.e. via host object destruction, the restartable modifier,\n * or manual cancellation).\n *\n * This is often useful in cases involving animation: if you're\n * using Liquid Fire, or some other animation scheme, sometimes you'll\n * notice buttons visibly reverting to their inactive states during\n * a route transition. By yielding `forever` in a Component task that drives a\n * button's active state, you can keep a task indefinitely running\n * until the animation runs to completion.\n *\n * NOTE: Liquid Fire also includes a useful `waitUntilIdle()` method\n * on the `liquid-fire-transitions` service that you can use in a lot\n * of these cases, but it won't cover cases of asynchrony that are\n * unrelated to animation, in which case `forever` might be better suited\n * to your needs.\n *\n * ```js\n * import { task, forever } from 'ember-concurrency';\n * export default class MyComponent extends Component {\n *   &#64;service myService;\n *   myTask = task(async () => {\n *     await this.myService.doSomethingThatCausesATransition();\n *     await forever;\n *   });\n * }\n * ```\n */\nexport const forever = new ForeverYieldable();\n\n/**\n *\n * Yielding `rawTimeout(ms)` will pause a task for the duration\n * of time passed in, in milliseconds.\n *\n * The timeout will use the native `setTimeout()` browser API,\n * instead of the Ember runloop, which means that test helpers\n * will *not* wait for it to complete.\n *\n * The task below, when performed, will print a message to the\n * console every second.\n *\n * ```js\n * export default class MyComponent extends Component {\n *   myTask = task(async () => {\n *     while (true) {\n *       console.log(\"Hello!\");\n *       await rawTimeout(1000);\n *     }\n *   });\n * }\n * ```\n *\n * @param {number} ms - the amount of time to sleep before resuming\n *   the task, in milliseconds\n */\nexport function rawTimeout(ms) {\n  return new RawTimeoutYieldable(ms);\n}\n","import { assert } from '@ember/debug';\nimport { getValueFromStringPath } from './utils';\n\nexport function taskHelperClosure(helperName, taskMethod, _args, hash) {\n  let task = _args[0];\n  let outerArgs = _args.slice(1);\n\n  return function (...innerArgs) {\n    if (!task || typeof task[taskMethod] !== 'function') {\n      assert(\n        `The first argument passed to the \\`${helperName}\\` helper should be a Task object (without quotes); you passed ${task}`,\n        false,\n      );\n      return;\n    }\n\n    if (hash && hash.value) {\n      let event = innerArgs.pop();\n      innerArgs.push(getValueFromStringPath(event, hash.value));\n    }\n\n    return task[taskMethod](...outerArgs, ...innerArgs);\n  };\n}\n","import { INITIAL_STATE } from './initial-state';\nimport { yieldableSymbol } from '../yieldables';\nimport { CancelRequest, CANCEL_KIND_EXPLICIT } from './cancelation';\nconst EXPLICIT_CANCEL_REASON = '.cancel() was explicitly called';\n\nexport class BaseTaskInstance {\n  constructor({ task, args, executor, performType, hasEnabledEvents }) {\n    this.task = task;\n    this.args = args;\n    this.performType = performType;\n    this.executor = executor;\n    this.executor.taskInstance = this;\n    this.hasEnabledEvents = hasEnabledEvents;\n  }\n\n  setState() {}\n  formatCancelReason() {}\n  selfCancelLoopWarning() {}\n\n  onFinalize(callback) {\n    this.executor.onFinalize(callback);\n  }\n\n  proceed(index, yieldResumeType, value) {\n    this.executor.proceedChecked(index, yieldResumeType, value);\n  }\n\n  [yieldableSymbol](parentTaskInstance, resumeIndex) {\n    return this.executor.onYielded(parentTaskInstance, resumeIndex);\n  }\n\n  cancel(cancelReason = EXPLICIT_CANCEL_REASON) {\n    this.executor.cancel(new CancelRequest(CANCEL_KIND_EXPLICIT, cancelReason));\n  }\n\n  then(...args) {\n    return this.executor.promise().then(...args);\n  }\n\n  catch(...args) {\n    return this.executor.promise().catch(...args);\n  }\n\n  finally(...args) {\n    return this.executor.promise().finally(...args);\n  }\n\n  toString() {\n    return `${this.task} TaskInstance`;\n  }\n\n  start() {\n    this.executor.start();\n    return this;\n  }\n}\n\nObject.assign(BaseTaskInstance.prototype, INITIAL_STATE);\nObject.assign(BaseTaskInstance.prototype, {\n  state: 'waiting',\n  isDropped: false,\n  isRunning: true,\n});\n","import { BaseTaskInstance } from './external/task-instance/base';\nimport { TRACKED_INITIAL_INSTANCE_STATE } from './tracked-state';\n\n/**\n  A `TaskInstance` represent a single execution of a\n  {@linkcode Task}. Every call to {@linkcode Task#perform} returns\n  a `TaskInstance`.\n\n  `TaskInstance`s are cancelable, either explicitly\n  via {@linkcode TaskInstance#cancel} or {@linkcode Task#cancelAll},\n  or automatically due to the host object being destroyed, or\n  because concurrency policy enforced by a\n  {@linkcode Task Modifier} canceled the task instance.\n\n  <style>\n    .ignore-this--this-is-here-to-hide-constructor,\n    #TaskInstance { display: none }\n  </style>\n\n  @class TaskInstance\n*/\n\nexport class TaskInstance extends BaseTaskInstance {\n  setState(props) {\n    let state = this._recomputeState(props);\n    Object.assign(this, {\n      ...props,\n      isRunning: !props.isFinished,\n      isDropped: state === 'dropped',\n      state,\n    });\n  }\n\n  _recomputeState(props) {\n    if (props.isDropped) {\n      return 'dropped';\n    } else if (props.isCanceled) {\n      if (props.hasStarted) {\n        return 'canceled';\n      } else {\n        return 'dropped';\n      }\n    } else if (props.isFinished) {\n      return 'finished';\n    } else if (props.hasStarted) {\n      return 'running';\n    } else {\n      return 'waiting';\n    }\n  }\n\n  formatCancelReason(reason) {\n    return `TaskInstance '${this.getName()}' was canceled because ${reason}. For more information, see: http://ember-concurrency.com/docs/task-cancelation-help`;\n  }\n\n  getName() {\n    if (!this.name) {\n      this.name = (this.task && this.task.name) || '<unknown>';\n    }\n    return this.name;\n  }\n\n  selfCancelLoopWarning(parent) {\n    let parentName = `\\`${parent.getName()}\\``;\n    let childName = `\\`${this.getName()}\\``;\n    // eslint-disable-next-line no-console\n    console.warn(\n      `ember-concurrency detected a potentially hazardous \"self-cancel loop\" between parent task ${parentName} and child task ${childName}. If you want child task ${childName} to be canceled when parent task ${parentName} is canceled, please change \\`.perform()\\` to \\`.linked().perform()\\`. If you want child task ${childName} to keep running after parent task ${parentName} is canceled, change it to \\`.unlinked().perform()\\``,\n    );\n  }\n\n  triggerEvent(...allArgs) {\n    if (!this.hasEnabledEvents) {\n      return;\n    }\n\n    let taskInstance = this;\n    let task = taskInstance.task;\n    let host = task.context;\n    let eventNamespace = task && task.name;\n\n    if (host && host.trigger && eventNamespace) {\n      let [eventType, ...args] = allArgs;\n      host.trigger(`${eventNamespace}:${eventType}`, ...args);\n    }\n  }\n\n  /**\n   * Describes the state that the task instance is in. Can be used for debugging,\n   * or potentially driving some UI state. Possible values are:\n   *\n   * - `\"dropped\"`: task instance was canceled before it started\n   * - `\"canceled\"`: task instance was canceled before it could finish\n   * - `\"finished\"`: task instance ran to completion (even if an exception was thrown)\n   * - `\"running\"`: task instance is currently running (returns true even if\n   *     is paused on a yielded promise)\n   * - `\"waiting\"`: task instance hasn't begun running yet (usually\n   *     because the task is using the enqueue task modifier)\n   *\n   * The animated timeline examples on the [Task Concurrency](/docs/task-concurrency)\n   * docs page make use of this property.\n   *\n   * @name state\n   * @memberof TaskInstance\n   * @instance\n   * @readOnly\n   */\n\n  /**\n   * True if the TaskInstance was canceled before it could\n   * ever start running. For example, calling\n   * {@linkcode Task#perform .perform()} twice on a\n   * task with the drop modifier applied\n   * will result in the second task instance being dropped.\n   *\n   * @name isDropped\n   * @memberof TaskInstance\n   * @instance\n   * @readOnly\n   */\n\n  /**\n   * True if the task is still running.\n   *\n   * @name isRunning\n   * @memberof TaskInstance\n   * @instance\n   * @readOnly\n   */\n\n  /**\n   * Cancels the task instance. Has no effect if the task instance has\n   * already been canceled or has already finished running.\n   *\n   * @method cancel\n   * @memberof TaskInstance\n   * @instance\n   * @async\n   */\n\n  /**\n   * Returns a promise that resolves with the value returned\n   * from the task's (generator) function, or rejects with\n   * either the exception thrown from the task function, or\n   * an error with a `.name` property with value `\"TaskCancelation\"`.\n   *\n   * @method then\n   * @memberof TaskInstance\n   * @instance\n   * @return {Promise}\n   */\n\n  /**\n   * @method catch\n   * @memberof TaskInstance\n   * @instance\n   * @return {Promise}\n   */\n\n  /**\n   * @method finally\n   * @memberof TaskInstance\n   * @instance\n   * @return {Promise}\n   */\n}\n\nif (TRACKED_INITIAL_INSTANCE_STATE) {\n  Object.defineProperties(\n    TaskInstance.prototype,\n    TRACKED_INITIAL_INSTANCE_STATE,\n  );\n}\n","export const TASKABLE_MIXIN = {\n  _performCount: 0,\n\n  setState(state) {\n    this._performCount = this._performCount + (state.numPerformedInc || 0);\n\n    let isRunning = state.numRunning > 0;\n    let isQueued = state.numQueued > 0;\n    let derivedState = Object.assign({}, state, {\n      performCount: this._performCount,\n      isRunning,\n      isQueued,\n      isIdle: !isRunning && !isQueued,\n      state: isRunning ? 'running' : 'idle',\n    });\n    Object.assign(this, derivedState);\n  },\n\n  onState(state, task) {\n    if (task.onStateCallback) {\n      task.onStateCallback(state, task);\n    }\n  },\n};\n","import { isDestroying, registerDestructor } from '@ember/destroyable';\nimport { CANCEL_KIND_LIFESPAN_END } from './external/task-instance/cancelation';\nimport { Task as BaseTask } from './external/task/task';\nimport { TaskInstance } from './task-instance';\nimport { TASKABLE_MIXIN } from './taskable-mixin';\nimport { TRACKED_INITIAL_TASK_STATE } from './tracked-state';\n\n/**\n  The `Task` object lives on a host Ember object (e.g.\n  a Component, Route, or Controller). You call the\n  {@linkcode Task#perform .perform()} method on this object\n  to create run individual {@linkcode TaskInstance}s,\n  and at any point, you can call the {@linkcode Task#cancelAll .cancelAll()}\n  method on this object to cancel all running or enqueued\n  {@linkcode TaskInstance}s.\n\n  <style>\n    .ignore-this--this-is-here-to-hide-constructor,\n    #Task { display: none }\n  </style>\n\n  @class Task\n*/\nexport class Task extends BaseTask {\n  /**\n   * `true` if any current task instances are running.\n   *\n   * @memberof Task\n   * @member {boolean} isRunning\n   * @instance\n   * @readOnly\n   */\n  /**\n   * `true` if any future task instances are queued.\n   *\n   * @memberof Task\n   * @member {boolean} isQueued\n   * @instance\n   * @readOnly\n   */\n  /**\n   * `true` if the task is not in the running or queued state.\n   *\n   * @memberof Task\n   * @member {boolean} isIdle\n   * @instance\n   * @readOnly\n   */\n  /**\n   * The current state of the task: `\"running\"`, `\"queued\"` or `\"idle\"`.\n   *\n   * @memberof Task\n   * @member {string} state\n   * @instance\n   * @readOnly\n   */\n  /**\n   * The most recently started task instance.\n   *\n   * @memberof Task\n   * @member {TaskInstance} last\n   * @instance\n   * @readOnly\n   */\n  /**\n   * The most recent task instance that is currently running.\n   *\n   * @memberof Task\n   * @member {TaskInstance} lastRunning\n   * @instance\n   * @readOnly\n   */\n  /**\n   * The most recently performed task instance.\n   *\n   * @memberof Task\n   * @member {TaskInstance} lastPerformed\n   * @instance\n   * @readOnly\n   */\n  /**\n   * The most recent task instance that succeeded.\n   *\n   * @memberof Task\n   * @member {TaskInstance} lastSuccessful\n   * @instance\n   * @readOnly\n   */\n  /**\n   * The most recently completed task instance.\n   *\n   * @memberof Task\n   * @member {TaskInstance} lastComplete\n   * @instance\n   * @readOnly\n   */\n  /**\n   * The most recent task instance that errored.\n   *\n   * @memberof Task\n   * @member {TaskInstance} lastErrored\n   * @instance\n   * @readOnly\n   */\n  /**\n   * The most recently canceled task instance.\n   *\n   * @memberof Task\n   * @member {TaskInstance} lastCanceled\n   * @instance\n   * @readOnly\n   */\n  /**\n   * The most recent task instance that is incomplete.\n   *\n   * @memberof Task\n   * @member {TaskInstance} lastIncomplete\n   * @instance\n   * @readOnly\n   */\n  /**\n   * The number of times this task has been performed.\n   *\n   * @memberof Task\n   * @member {number} performCount\n   * @instance\n   * @readOnly\n   */\n\n  constructor(options) {\n    super(options);\n\n    if (!isDestroying(this.context)) {\n      registerDestructor(this.context, () => {\n        this.cancelAll({\n          reason: 'the object it lives on was destroyed or unrendered',\n          cancelRequestKind: CANCEL_KIND_LIFESPAN_END,\n        });\n      });\n    }\n  }\n\n  /**\n   * Flags the task as linked to the parent task's lifetime. Must be called\n   * within another task's perform function. The task will be cancelled if the\n   * parent task is canceled as well.\n   *\n   * ember-concurrency will indicate when this may be needed.\n   *\n   * @method linked\n   * @memberof Task\n   * @instance\n   *\n   */\n\n  /**\n   * Flags the task as not linked to the parent task's lifetime. Must be called\n   * within another task's perform function. The task will NOT be cancelled if the\n   * parent task is canceled.\n   *\n   * This is useful for avoiding the so-called \"self-cancel loop\" for tasks.\n   * ember-concurrency will indicate when this may be needed.\n   *\n   * @method unlinked\n   * @memberof Task\n   * @instance\n   *\n   */\n\n  /**\n   * Creates a new {@linkcode TaskInstance} and attempts to run it right away.\n   * If running this task instance would increase the task's concurrency\n   * to a number greater than the task's maxConcurrency, this task\n   * instance might be immediately canceled (dropped), or enqueued\n   * to run at later time, after the currently running task(s) have finished.\n   *\n   * @method perform\n   * @memberof Task\n   * @param {*} arg* - args to pass to the task function\n   * @instance\n   *\n   * @fires TaskInstance#TASK_NAME:started\n   * @fires TaskInstance#TASK_NAME:succeeded\n   * @fires TaskInstance#TASK_NAME:errored\n   * @fires TaskInstance#TASK_NAME:canceled\n   *\n   */\n\n  /**\n   * Cancels all running or queued `TaskInstance`s for this Task.\n   * If you're trying to cancel a specific TaskInstance (rather\n   * than all of the instances running under this task) call\n   * `.cancel()` on the specific TaskInstance.\n   *\n   * @method cancelAll\n   * @memberof Task\n   * @param options.reason A descriptive reason the task was\n   *   cancelled. Defaults to `\".cancelAll() was explicitly called\n   *   on the Task\"`.\n   * @param options.resetState If true, will clear the task state\n   *   (`last*` and `performCount` properties will be set to initial\n   *   values). Defaults to false.\n   * @instance\n   * @async\n   *\n   */\n\n  get _isAlive() {\n    return !isDestroying(this.context);\n  }\n\n  _taskInstanceFactory(args, performType, linkedObject) {\n    let options = this._taskInstanceOptions(args, performType, linkedObject);\n    options.task = this;\n    let taskInstance = new TaskInstance(options);\n    return taskInstance;\n  }\n\n  _clone() {\n    return new Task({\n      context: this.context,\n      debug: this.debug,\n      env: this.env,\n      generatorFactory: this.generatorFactory,\n      group: this.group,\n      hasEnabledEvents: this.hasEnabledEvents,\n      name: this.name,\n      onStateCallback: this.onStateCallback,\n      scheduler: this.scheduler,\n    });\n  }\n}\n\nif (TRACKED_INITIAL_TASK_STATE) {\n  Object.defineProperties(Task.prototype, TRACKED_INITIAL_TASK_STATE);\n}\n\nObject.assign(Task.prototype, TASKABLE_MIXIN);\n","import { tracked } from '@glimmer/tracking';\nimport { DEFAULT_STATE as INITIAL_TASK_STATE } from './external/task/default-state';\nimport { INITIAL_STATE as INITIAL_INSTANCE_STATE } from './external/task-instance/initial-state';\n\nfunction trackMixin(proto, obj, key) {\n  const propDesc = Object.getOwnPropertyDescriptor(proto, key);\n  propDesc.initializer = propDesc.initializer || (() => proto[key]);\n  delete propDesc.value;\n  const desc = tracked(obj, key, propDesc);\n  obj[key] = desc;\n  return obj;\n}\n\nfunction applyTracked(proto, initial) {\n  return Object.keys(proto).reduce((acc, key) => {\n    return trackMixin(proto, acc, key);\n  }, initial);\n}\n\nexport let TRACKED_INITIAL_TASK_STATE;\nexport let TRACKED_INITIAL_INSTANCE_STATE;\n\nTRACKED_INITIAL_TASK_STATE = applyTracked(INITIAL_TASK_STATE, {});\nTRACKED_INITIAL_TASK_STATE = applyTracked(\n  {\n    numRunning: 0,\n    numQueued: 0,\n    isRunning: false,\n    isQueued: false,\n    isIdle: true,\n    state: 'idle',\n  },\n  TRACKED_INITIAL_TASK_STATE,\n);\n\nTRACKED_INITIAL_INSTANCE_STATE = applyTracked(INITIAL_INSTANCE_STATE, {});\nTRACKED_INITIAL_INSTANCE_STATE = applyTracked(\n  {\n    state: 'waiting',\n    isDropped: false,\n    isRunning: false,\n  },\n  TRACKED_INITIAL_INSTANCE_STATE,\n);\n\nObject.freeze(TRACKED_INITIAL_TASK_STATE);\nObject.freeze(TRACKED_INITIAL_INSTANCE_STATE);\n","import { cancel, later } from '@ember/runloop';\nimport { EMBER_ENVIRONMENT } from './ember-environment';\nimport { Yieldable } from './external/yieldables';\n\nexport function isEventedObject(c) {\n  return (\n    c &&\n    ((typeof c.one === 'function' && typeof c.off === 'function') ||\n      (typeof c.on === 'function' && typeof c.off === 'function') ||\n      (typeof c.addEventListener === 'function' &&\n        typeof c.removeEventListener === 'function'))\n  );\n}\n\nexport class EmberYieldable extends Yieldable {\n  _deferable() {\n    return EMBER_ENVIRONMENT.defer();\n  }\n}\n\nclass TimeoutYieldable extends EmberYieldable {\n  constructor(ms) {\n    super();\n    this.ms = ms;\n  }\n\n  onYield(state) {\n    let timerId = later(() => state.next(), this.ms);\n\n    return () => cancel(timerId);\n  }\n}\n\n/**\n *\n * Yielding `timeout(ms)` will pause a task for the duration\n * of time passed in, in milliseconds.\n *\n * This timeout will be scheduled on the Ember runloop, which\n * means that test helpers will wait for it to complete before\n * continuing with the test. See `rawTimeout()` if you need\n * different behavior.\n *\n * The task below, when performed, will print a message to the\n * console every second.\n *\n * ```js\n * export default class MyComponent extends Component {\n *   myTask = task(async () => {\n *     while (true) {\n *       console.log(\"Hello!\");\n *       await timeout(1000);\n *     }\n *   });\n * }\n * ```\n *\n * @param {number} ms - the amount of time to sleep before resuming\n *   the task, in milliseconds\n */\nexport function timeout(ms) {\n  return new TimeoutYieldable(ms);\n}\n\nexport function deprecatePrivateModule(moduleName) {\n  // eslint-disable-next-line no-console\n  console.warn(\n    `an Ember addon is importing a private ember-concurrency module '${moduleName}' that has moved`,\n  );\n}\n\n// This does what Ember.get used to do.\nexport function getValueFromStringPath(obj, path) {\n  return path.split('.').reduce((acc, part) => acc[part], obj);\n}\n","import Scheduler from '../external/scheduler/scheduler';\nimport { once } from '@ember/runloop';\n\nclass EmberScheduler extends Scheduler {\n  scheduleRefresh() {\n    once(this, this.refresh);\n  }\n}\n\nexport default EmberScheduler;\n","import { assert } from '@ember/debug';\nimport { TaskFactory as BaseTaskFactory } from './external/task-factory';\n\nimport { EMBER_ENVIRONMENT } from './ember-environment';\nimport EmberScheduler from './scheduler/ember-scheduler';\nimport { Task } from './task';\n\nexport class TaskFactory extends BaseTaskFactory {\n  env = EMBER_ENVIRONMENT;\n\n  createTask(context) {\n    assert(\n      `Cannot create task if a task definition is not provided as generator function`,\n      this.taskDefinition,\n    );\n\n    let options = this.getTaskOptions(context);\n\n    return new Task(\n      Object.assign(\n        {\n          generatorFactory: (args) => this.taskDefinition.apply(context, args),\n        },\n        options,\n      ),\n    );\n  }\n\n  getModifier(name) {\n    let modifier = super.getModifier(name);\n\n    assert(\n      `Task option '${name}' is not recognized as a supported option.`,\n      modifier,\n    );\n\n    return modifier;\n  }\n\n  getScheduler(schedulerPolicy, stateTrackingEnabled) {\n    return new EmberScheduler(schedulerPolicy, stateTrackingEnabled);\n  }\n\n  // Provided for compatibility with the now-removed ember-concurrency TaskProperty extension\n  // methods. TODO: delete this?\n  get taskFn() {\n    return this.taskDefinition;\n  }\n\n  set taskFn(fn) {\n    this.setTaskDefinition(fn);\n  }\n}\n","import { TaskFactory } from './task-factory';\n\n/**\n * This builder function is called by the transpiled code from\n * `task(async () => {})`. See async-arrow-task-transform.js\n *\n * @private\n */\nexport function buildTask(contextFn, options, taskName, bufferPolicyName) {\n  let optionsWithBufferPolicy = options;\n\n  if (bufferPolicyName) {\n    optionsWithBufferPolicy = Object.assign({}, optionsWithBufferPolicy);\n    optionsWithBufferPolicy[bufferPolicyName] = true;\n  }\n\n  const result = contextFn();\n\n  const taskFactory = new TaskFactory(\n    taskName || '<unknown>',\n    result.generator,\n    optionsWithBufferPolicy,\n  );\n  return taskFactory.createTask(result.context);\n}\n","import { helper } from '@ember/component/helper';\nimport { assert } from '@ember/debug';\nimport { taskHelperClosure } from '../-private/helpers';\nimport type { Task } from '../index';\n\nconst CANCEL_REASON = \"the 'cancel-all' template helper was invoked\";\n\ntype CancelAllParams = [task: Task<any, any[]>];\n\nexport function cancelHelper(args: CancelAllParams) {\n  let cancelable = args[0];\n  if (!cancelable || typeof cancelable.cancelAll !== 'function') {\n    assert(\n      `The first argument passed to the \\`cancel-all\\` helper should be a Task (without quotes); you passed ${cancelable}`,\n      false,\n    );\n  }\n\n  return taskHelperClosure('cancel-all', 'cancelAll', [\n    cancelable,\n    { reason: CANCEL_REASON },\n  ]);\n}\n\nexport default helper(cancelHelper);\n","import { helper } from '@ember/component/helper';\nimport { assert } from '@ember/debug';\nimport { taskHelperClosure } from '../-private/helpers';\nimport type { Task } from '../index';\n\nfunction maybeReportError(\n  onError: (error: unknown) => void | null | undefined,\n) {\n  return function (e: unknown) {\n    if (typeof onError === 'function') {\n      onError(e);\n    } else if (onError === null) {\n      // Do nothing\n    } else {\n      assert(\n        `The onError argument passed to the \\`perform\\` helper should be a function or null; you passed ${onError}`,\n        false,\n      );\n    }\n  };\n}\n\ntype PerformParams = [task: Task<any, any[]>, ...args: any[]];\n\nexport function performHelper(args: PerformParams, hash: any) {\n  let perform = taskHelperClosure('perform', 'perform', args, hash);\n\n  if (hash && typeof hash.onError !== 'undefined') {\n    return function (...innerArgs: any[]) {\n      try {\n        let taskInstance = perform(...innerArgs);\n        return taskInstance.catch(maybeReportError(hash.onError));\n        // eslint-disable-next-line no-empty\n      } catch {\n        maybeReportError(hash.onError);\n      }\n    };\n  } else {\n    return perform;\n  }\n}\n\nexport default helper(performHelper);\n","import { helper } from '@ember/component/helper';\nimport type { Task } from '../index';\n\ntype TaskParams = [task: Task<any, any[]>, ...args: any[]];\n\nfunction taskHelper(positional: TaskParams) {\n  let [task, ...args] = positional;\n\n  // @ts-expect-errors _curry isn't typed yet\n  return task._curry(...args);\n}\n\nexport default helper(taskHelper);\n","import { assert } from '@ember/debug';\nimport RSVP, { Promise } from 'rsvp';\nimport { TaskInstance } from './task-instance';\nimport { cancelableSymbol, Yieldable } from './external/yieldables';\n\n/**\n * A cancelation-aware variant of [Promise.all](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all).\n * The normal version of a `Promise.all` just returns a regular, uncancelable\n * Promise. The `ember-concurrency` variant of `all()` has the following\n * additional behavior:\n *\n * - if the task that `yield`ed `all()` is canceled, any of the\n *   {@linkcode TaskInstance}s passed in to `all` will be canceled\n * - if any of the {@linkcode TaskInstance}s (or regular promises) passed in reject (or\n *   are canceled), all of the other unfinished `TaskInstance`s will\n *   be automatically canceled.\n */\nexport const all = taskAwareVariantOf(RSVP.Promise, 'all', identity);\n\n/**\n * A cancelation-aware variant of [RSVP.allSettled](https://api.emberjs.com/ember/release/functions/rsvp/allSettled).\n * The normal version of a `RSVP.allSettled` just returns a regular, uncancelable\n * Promise. The `ember-concurrency` variant of `allSettled()` has the following\n * additional behavior:\n *\n * - if the task that `yield`ed `allSettled()` is canceled, any of the\n *   {@linkcode TaskInstance}s passed in to `allSettled` will be canceled\n */\nexport const allSettled = taskAwareVariantOf(RSVP, 'allSettled', identity);\n\n/**\n * A cancelation-aware variant of [Promise.race](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race).\n * The normal version of a `Promise.race` just returns a regular, uncancelable\n * Promise. The `ember-concurrency` variant of `race()` has the following\n * additional behavior:\n *\n * - if the task that `yield`ed `race()` is canceled, any of the\n *   {@linkcode TaskInstance}s passed in to `race` will be canceled\n * - once any of the tasks/promises passed in complete (either success, failure,\n *   or cancelation), any of the {@linkcode TaskInstance}s passed in will be canceled\n */\nexport const race = taskAwareVariantOf(Promise, 'race', identity);\n\n/**\n * A cancelation-aware variant of [RSVP.hash](https://api.emberjs.com/ember/release/functions/rsvp/hash).\n * The normal version of a `RSVP.hash` just returns a regular, uncancelable\n * Promise. The `ember-concurrency` variant of `hash()` has the following\n * additional behavior:\n *\n * - if the task that `yield`ed `hash()` is canceled, any of the\n *   {@linkcode TaskInstance}s passed in to `hash` will be canceled\n * - if any of the items rejects/cancels, all other cancelable items\n *   (e.g. {@linkcode TaskInstance}s) will be canceled\n */\nexport const hash = taskAwareVariantOf(RSVP, 'hash', getValues);\n\n/**\n * A cancelation-aware variant of [RSVP.hashSettled](https://api.emberjs.com/ember/release/functions/rsvp/hashSettled).\n * The normal version of a `RSVP.hashSettled` just returns a regular, uncancelable\n * Promise. The `ember-concurrency` variant of `hashSettled()` has the following\n * additional behavior:\n *\n * - if the task that `yield`ed `hashSettled()` is canceled, any of the\n *   {@linkcode TaskInstance}s passed in to `hashSettled` will be canceled\n */\nexport const hashSettled = taskAwareVariantOf(RSVP, 'hashSettled', getValues);\n\nfunction identity(obj) {\n  return obj;\n}\n\nfunction getValues(obj) {\n  return Object.keys(obj).map((k) => obj[k]);\n}\n\nfunction castForPromiseHelper(castable) {\n  if (castable) {\n    if (castable instanceof TaskInstance) {\n      // Mark TaskInstances, including those that performed synchronously and\n      // have finished already, as having their errors handled, as if they had\n      // been then'd, which this is emulating.\n      castable.executor.asyncErrorsHandled = true;\n    } else if (castable instanceof Yieldable) {\n      // Cast to promise\n      return castable._toPromise();\n    }\n  }\n\n  return castable;\n}\n\nfunction castAwaitables(arrOrHash, callback) {\n  if (Array.isArray(arrOrHash)) {\n    return arrOrHash.map(callback);\n  } else if (typeof arrOrHash === 'object' && arrOrHash !== null) {\n    let obj = {};\n    Object.keys(arrOrHash).forEach((key) => {\n      obj[key] = callback(arrOrHash[key]);\n    });\n    return obj;\n  } else {\n    // :shruggie:\n    return arrOrHash;\n  }\n}\n\nfunction taskAwareVariantOf(obj, method, getItems) {\n  return function (awaitable) {\n    let awaitables = castAwaitables(awaitable, castForPromiseHelper);\n\n    let items = getItems(awaitables);\n    assert(`'${method}' expects an array.`, Array.isArray(items));\n\n    let defer = RSVP.defer();\n\n    obj[method](awaitables).then(defer.resolve, defer.reject);\n\n    let hasCancelled = false;\n    let cancelAll = () => {\n      if (hasCancelled) {\n        return;\n      }\n      hasCancelled = true;\n      items.forEach((it) => {\n        if (it) {\n          if (it instanceof TaskInstance) {\n            it.cancel();\n          } else if (typeof it[cancelableSymbol] === 'function') {\n            it[cancelableSymbol]();\n          }\n        }\n      });\n    };\n\n    let promise = defer.promise.finally(cancelAll);\n    promise[cancelableSymbol] = cancelAll;\n    return promise;\n  };\n}\n","import { assert } from '@ember/debug';\n\n/**\n * A Task is a cancelable, restartable, asynchronous operation that\n * is driven by an async function. Tasks are automatically canceled\n * when the object they live on is destroyed (e.g. a Component\n * is unrendered).\n *\n * To define a task, use the `task(...)` function, and pass in\n * an async arrow function, which will be invoked when the task\n * is performed. Async functions with the await keyword can\n * be used to elegantly express asynchronous, cancelable\n * operations.\n *\n * The following Component defines a task called `myTask` that,\n * when performed, prints a message to the console, sleeps for 1 second,\n * prints a final message to the console, and then completes.\n *\n * ```js\n * import Component from '@glimmer/component';\n * import { task, timeout } from 'ember-concurrency';\n *\n * export default class MyComponent extends Component {\n *   myTask = task(async () => {\n *     console.log(\"Pausing for a second...\");\n *     await timeout(1000);\n *     console.log(\"Done!\");\n *   });\n * }\n * ```\n *\n * ```hbs\n * <button {{on \"click\" myTask.perform}}>Perform Task</button>\n * ```\n *\n * By default, tasks have no concurrency constraints\n * (multiple instances of a task can be running at the same time)\n * but much of a power of tasks lies in proper usage of Task Modifiers\n * that you can apply to a task.\n *\n * @param {function} taskFunction the async function backing the task.\n * @returns {TaskProperty}\n */\nexport function task() {\n  assert(\n    `It appears you're attempting to use the new task(async () => { ... }) syntax, but the async arrow task function you've provided is not being properly compiled by Babel.\\n\\nPossible causes / remedies:\\n\\n1. You must pass the async function expression directly to the task() function (it is not currently supported to pass in a variable containing the async arrow fn, or any other kind of indirection)\\n2. The new task syntax is only supported by native classes. Ensure that this is one.\\n3. If this code is in an addon, please ensure the addon specifies ember-concurrency \"2.3.0\" or higher in \"dependencies\" (not \"devDependencies\")\\n4. Ensure that there is only one version of ember-concurrency v2.3.0+ being used in your project (including nested dependencies) and consider using npm/yarn/pnpm resolutions to enforce a single version is used\\n5. Ensure that you have registered the Babel transform that Ember Concurrency uses to transform tasks in the \"async-arrow\" notation, see https://ember-concurrency.com/docs/v4-upgrade`,\n    !isUntranspiledAsyncFn(arguments[arguments.length - 1]),\n  );\n\n  assert(\n    `Using task(...) in any form other than \\`task(async () => {})\\` is no longer supported since ember-concurrency v5. Please use the modern syntax instead (and consider using one of ember-concurrency's codemods).`,\n    false,\n  );\n}\n\nfunction isUntranspiledAsyncFn(obj) {\n  return obj && obj.constructor && obj.constructor.name === 'AsyncFunction';\n}\n","import { assert, deprecate } from '@ember/debug';\nimport { addObserver, removeObserver } from '@ember/object/observers';\nimport { cancel, schedule } from '@ember/runloop';\nimport {\n  EmberYieldable,\n  getValueFromStringPath,\n  isEventedObject,\n} from './utils';\n\nclass WaitForQueueYieldable extends EmberYieldable {\n  constructor(queueName) {\n    super();\n    this.queueName = queueName;\n  }\n\n  onYield(state) {\n    let timerId;\n\n    try {\n      timerId = schedule(this.queueName, () => state.next());\n    } catch (error) {\n      state.throw(error);\n    }\n\n    return () => cancel(timerId);\n  }\n}\n\nclass WaitForEventYieldable extends EmberYieldable {\n  constructor(object, eventName) {\n    super();\n    this.object = object;\n    this.eventName = eventName;\n    this.usesDOMEvents = false;\n  }\n\n  on(callback) {\n    if (typeof this.object.addEventListener === 'function') {\n      // assume that we're dealing with a DOM `EventTarget`.\n      this.usesDOMEvents = true;\n      this.object.addEventListener(this.eventName, callback);\n    } else {\n      this.object.on(this.eventName, callback);\n    }\n  }\n\n  off(callback) {\n    if (this.usesDOMEvents) {\n      this.object.removeEventListener(this.eventName, callback);\n    } else {\n      this.object.off(this.eventName, callback);\n    }\n  }\n\n  onYield(state) {\n    let fn = null;\n    let disposer = () => {\n      fn && this.off(fn);\n      fn = null;\n    };\n\n    fn = (event) => {\n      disposer();\n      state.next(event);\n    };\n\n    this.on(fn);\n\n    return disposer;\n  }\n}\n\nclass WaitForPropertyYieldable extends EmberYieldable {\n  constructor(object, key, predicateCallback = Boolean) {\n    super();\n    this.object = object;\n    this.key = key;\n\n    deprecate(\n      'waitForProperty is deprecated due to its use of observers. Consider using a polling approach instead.',\n      false,\n      {\n        id: 'ember-concurrency.deprecate-wait-for-property',\n        for: 'ember-concurrency',\n        since: '4.0.5',\n        until: '5.0.0',\n      },\n    );\n\n    if (typeof predicateCallback === 'function') {\n      this.predicateCallback = predicateCallback;\n    } else {\n      this.predicateCallback = (v) => v === predicateCallback;\n    }\n  }\n\n  onYield(state) {\n    let observerBound = false;\n    let observerFn = () => {\n      let value = getValueFromStringPath(this.object, this.key);\n      let predicateValue = this.predicateCallback(value);\n      if (predicateValue) {\n        state.next(value);\n        return true;\n      }\n    };\n\n    if (!observerFn()) {\n      // eslint-disable-next-line ember/no-observers\n      addObserver(this.object, this.key, null, observerFn);\n      observerBound = true;\n    }\n\n    return () => {\n      if (observerBound && observerFn) {\n        removeObserver(this.object, this.key, null, observerFn);\n      }\n    };\n  }\n}\n\n/**\n * Use `waitForQueue` to pause the task until a certain run loop queue is reached.\n *\n * ```js\n * import { task, waitForQueue } from 'ember-concurrency';\n * export default class MyComponent extends Component {\n *   myTask = task(async () => {\n *     await waitForQueue('afterRender');\n *     console.log(\"now we're in the afterRender queue\");\n *   });\n * }\n * ```\n *\n * @param {string} queueName the name of the Ember run loop queue\n */\nexport function waitForQueue(queueName) {\n  return new WaitForQueueYieldable(queueName);\n}\n\n/**\n * Use `waitForEvent` to pause the task until an event is fired. The event\n * can either be a jQuery event or an Ember.Evented event (or any event system\n * where the object supports `.on()` `.one()` and `.off()`).\n *\n * ```js\n * import { task, waitForEvent } from 'ember-concurrency';\n * export default class MyComponent extends Component {\n *   myTask = task(async () => {\n *     console.log(\"Please click anywhere..\");\n *     let clickEvent = await waitForEvent($('body'), 'click');\n *     console.log(\"Got event\", clickEvent);\n *\n *     let emberEvent = await waitForEvent(this, 'foo');\n *     console.log(\"Got foo event\", emberEvent);\n *\n *     // somewhere else: component.trigger('foo', { value: 123 });\n *   });\n * }\n * ```\n *\n * @param {object} object the Ember Object, jQuery element, or other object with .on() and .off() APIs\n *                 that the event fires from\n * @param {function} eventName the name of the event to wait for\n */\nexport function waitForEvent(object, eventName) {\n  assert(\n    `${object} must include Ember.Evented (or support \\`.on()\\` and \\`.off()\\`) or DOM EventTarget (or support \\`addEventListener\\` and  \\`removeEventListener\\`) to be able to use \\`waitForEvent\\``,\n    isEventedObject(object),\n  );\n  return new WaitForEventYieldable(object, eventName);\n}\n\n/**\n * Use `waitForProperty` to pause the task until a property on an object\n * changes to some expected value. This can be used for a variety of use\n * cases, including synchronizing with another task by waiting for it\n * to become idle, or change state in some other way. If you omit the\n * callback, `waitForProperty` will resume execution when the observed\n * property becomes truthy. If you provide a callback, it'll be called\n * immediately with the observed property's current value, and multiple\n * times thereafter whenever the property changes, until you return\n * a truthy value from the callback, or the current task is canceled.\n * You can also pass in a non-Function value in place of the callback,\n * in which case the task will continue executing when the property's\n * value becomes the value that you passed in.\n *\n * ```js\n * import { task, waitForProperty } from 'ember-concurrency';\n * export default class MyComponent extends Component {\n *   &#64;tracked foo = 0;\n *\n *   myTask = task(async () => {\n *     console.log(\"Waiting for `foo` to become 5\");\n *\n *     await waitForProperty(this, 'foo', v => v === 5);\n *     // alternatively: await waitForProperty(this, 'foo', 5);\n *\n *     // somewhere else: this.foo = 5;\n *\n *     console.log(\"`foo` is 5!\");\n *\n *     // wait for another task to be idle before running:\n *     await waitForProperty(this, 'otherTask.isIdle');\n *     console.log(\"otherTask is idle!\");\n *   });\n * }\n * ```\n *\n * @deprecated Deprecated due to use of classic observers. Consider using a polling approach instead.\n * @param {object} object an object (most likely an Ember Object)\n * @param {string} key the property name that is observed for changes\n * @param {function} callbackOrValue a Function that should return a truthy value\n *                                   when the task should continue executing, or\n *                                   a non-Function value that the watched property\n *                                   needs to equal before the task will continue running\n */\nexport function waitForProperty(object, key, predicateCallback) {\n  return new WaitForPropertyYieldable(object, key, predicateCallback);\n}\n","// eslint-disable-next-line ember/no-classic-components\nimport EmberComponent from '@ember/component';\nimport Helper from '@ember/component/helper';\nimport { assert, runInDebug } from '@ember/debug';\n\nimport type { ComponentLike } from '@glint/template';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nfunction UNINITIALIZED() { }\n\nexport type ElementFromTagName<T extends string> = T extends keyof HTMLElementTagNameMap\n  ? HTMLElementTagNameMap[T]\n  : Element;\n\ntype Positional<T extends string> = [name: T];\ntype Return<T extends string> = ComponentLike<{\n  Element: ElementFromTagName<T>;\n  Blocks: { default: [] };\n}>;\n\nexport interface ElementSignature<T extends string> {\n  Args: {\n    Positional: Positional<T>;\n  };\n  Return: Return<T> | undefined;\n}\n\nexport default class ElementHelper<T extends string> extends Helper<ElementSignature<T>> {\n  tagName: string | (() => void) = UNINITIALIZED;\n  componentClass?: Return<T>;\n\n  compute(params: Positional<T>, hash: object) {\n    assert('The `element` helper takes a single positional argument', params.length === 1);\n    assert(\n      'The `element` helper does not take any named arguments',\n      Object.keys(hash).length === 0\n    );\n\n    let tagName = params[0];\n\n    if (tagName !== this.tagName) {\n      this.tagName = tagName;\n\n      if (typeof tagName === 'string') {\n        this.componentClass =\n          class DynamicElement extends EmberComponent {\n            tagName = tagName;\n          } as unknown as Return<T>;\n      } else {\n        this.componentClass = undefined;\n\n        runInDebug(() => {\n          let message = 'The argument passed to the `element` helper must be a string';\n\n          try {\n            message += ` (you passed \\`${tagName}\\`)`;\n          } catch (e) {\n            // ignore\n          }\n\n          assert(message, tagName === undefined || tagName === null);\n        });\n      }\n    }\n\n    return this.componentClass;\n  }\n}\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nimport type IntlService from '../services/intl.ts';\n\ntype FormatParameters = Parameters<IntlService['formatDateRange']>;\ntype From = FormatParameters[0];\ntype To = FormatParameters[1];\ntype Options = FormatParameters[2];\n\ninterface FormatDateRangeSignature {\n  Args: {\n    Named?: Options;\n    Positional: [From, To];\n  };\n  Return: string;\n}\n\nexport default class FormatDateRangeHelper extends Helper<FormatDateRangeSignature> {\n  @service declare intl: IntlService;\n\n  compute(\n    [from, to]: FormatDateRangeSignature['Args']['Positional'],\n    options: FormatDateRangeSignature['Args']['Named'],\n  ): FormatDateRangeSignature['Return'] {\n    return this.intl.formatDateRange(from, to, options);\n  }\n}\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nimport type IntlService from '../services/intl.ts';\n\ntype FormatParameters = Parameters<IntlService['formatDate']>;\ntype Value = FormatParameters[0];\ntype Options = FormatParameters[1];\n\ninterface FormatDateSignature {\n  Args: {\n    Named?: Options;\n    Positional: [Value];\n  };\n  Return: string;\n}\n\nexport default class FormatDateHelper extends Helper<FormatDateSignature> {\n  @service declare intl: IntlService;\n\n  compute(\n    [value]: FormatDateSignature['Args']['Positional'],\n    options: FormatDateSignature['Args']['Named'],\n  ): FormatDateSignature['Return'] {\n    return this.intl.formatDate(value, options);\n  }\n}\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nimport type IntlService from '../services/intl.ts';\n\ntype FormatParameters = Parameters<IntlService['formatDisplayName']>;\ntype Value = FormatParameters[0];\ntype Options = FormatParameters[1];\n\ninterface FormatDisplayNameSignature {\n  Args: {\n    Named: Options;\n    Positional: [Value];\n  };\n  Return: string;\n}\n\nexport default class FormatDisplayNameHelper extends Helper<FormatDisplayNameSignature> {\n  @service declare intl: IntlService;\n\n  compute(\n    [value]: FormatDisplayNameSignature['Args']['Positional'],\n    options: FormatDisplayNameSignature['Args']['Named'],\n  ): FormatDisplayNameSignature['Return'] {\n    return this.intl.formatDisplayName(value, options);\n  }\n}\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nimport type IntlService from '../services/intl.ts';\n\ntype FormatParameters = Parameters<IntlService['formatList']>;\ntype Value = FormatParameters[0];\ntype Options = FormatParameters[1];\n\ninterface FormatListSignature {\n  Args: {\n    Named?: Options;\n    Positional: [Value];\n  };\n  Return: string;\n}\n\nexport default class FormatListHelper extends Helper<FormatListSignature> {\n  @service declare intl: IntlService;\n\n  compute(\n    [value]: FormatListSignature['Args']['Positional'],\n    options: FormatListSignature['Args']['Named'],\n  ): FormatListSignature['Return'] {\n    return this.intl.formatList(value, options);\n  }\n}\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nimport type IntlService from '../services/intl.ts';\n\ntype FormatParameters = Parameters<IntlService['formatMessage']>;\ntype Value = FormatParameters[0];\ntype Options = FormatParameters[1];\n\ninterface FormatMessageSignature {\n  Args: {\n    Named?: Options;\n    Positional: [Value];\n  };\n  Return: string;\n}\n\nexport default class FormatMessageHelper extends Helper<FormatMessageSignature> {\n  @service declare intl: IntlService;\n\n  compute(\n    [value]: FormatMessageSignature['Args']['Positional'],\n    options: FormatMessageSignature['Args']['Named'],\n  ): FormatMessageSignature['Return'] {\n    return this.intl.formatMessage(value, options);\n  }\n}\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nimport type IntlService from '../services/intl.ts';\n\ntype FormatParameters = Parameters<IntlService['formatNumber']>;\ntype Value = FormatParameters[0];\ntype Options = FormatParameters[1];\n\ninterface FormatNumberSignature {\n  Args: {\n    Named?: Options;\n    Positional: [Value];\n  };\n  Return: string;\n}\n\nexport default class FormatNumberHelper extends Helper<FormatNumberSignature> {\n  @service declare intl: IntlService;\n\n  compute(\n    [value]: FormatNumberSignature['Args']['Positional'],\n    options: FormatNumberSignature['Args']['Named'],\n  ): FormatNumberSignature['Return'] {\n    return this.intl.formatNumber(value, options);\n  }\n}\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nimport type IntlService from '../services/intl.ts';\n\ntype FormatParameters = Parameters<IntlService['formatRelativeTime']>;\ntype Value = FormatParameters[0];\ntype Options = FormatParameters[1];\n\ninterface FormatRelativeTimeSignature {\n  Args: {\n    Named?: Options;\n    Positional: [Value];\n  };\n  Return: string;\n}\n\nexport default class FormatRelativeTimeHelper extends Helper<FormatRelativeTimeSignature> {\n  @service declare intl: IntlService;\n\n  compute(\n    [value]: FormatRelativeTimeSignature['Args']['Positional'],\n    options: FormatRelativeTimeSignature['Args']['Named'],\n  ): FormatRelativeTimeSignature['Return'] {\n    return this.intl.formatRelativeTime(value, options);\n  }\n}\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nimport type IntlService from '../services/intl.ts';\n\ntype FormatParameters = Parameters<IntlService['formatTime']>;\ntype Value = FormatParameters[0];\ntype Options = FormatParameters[1];\n\ninterface FormatTimeSignature {\n  Args: {\n    Named?: Options;\n    Positional: [Value];\n  };\n  Return: string;\n}\n\nexport default class FormatTimeHelper extends Helper<FormatTimeSignature> {\n  @service declare intl: IntlService;\n\n  compute(\n    [value]: FormatTimeSignature['Args']['Positional'],\n    options: FormatTimeSignature['Args']['Named'],\n  ): FormatTimeSignature['Return'] {\n    return this.intl.formatTime(value, options);\n  }\n}\n","export default function tKey<T extends string>(key: T): T {\n  return key;\n}\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nimport type IntlService from '../services/intl.ts';\n\ntype TParameters = Parameters<IntlService['t']>;\ntype Key = TParameters[0];\ntype Options = TParameters[1];\n\ninterface TSignature {\n  Args: {\n    Named?: Options;\n    Positional: [Key, Options] | [Key];\n  };\n  Return: string;\n}\n\nexport default class THelper extends Helper<TSignature> {\n  @service declare intl: IntlService;\n\n  compute(\n    [key, positionalOptions]: TSignature['Args']['Positional'],\n    namedOptions: TSignature['Args']['Named'],\n  ): TSignature['Return'] {\n    const options = positionalOptions\n      ? Object.assign({}, positionalOptions, namedOptions)\n      : namedOptions;\n\n    return this.intl.t(key, options);\n  }\n}\n","//\n// Main\n//\n\ntype Func = (...args: any[]) => any\n\nexport interface Cache<K, V> {\n  create: CacheCreateFunc<K, V>\n}\n\ninterface CacheCreateFunc<K, V> {\n  (): DefaultCache<K, V>\n}\n\ninterface DefaultCache<K, V> {\n  get(key: K): V | undefined\n  set(key: K, value: V | undefined): void\n}\n\nexport type Serializer = (args: any[]) => string\n\nexport interface Options<F extends Func> {\n  cache?: Cache<string, ReturnType<F>>\n  serializer?: Serializer\n  strategy?: MemoizeFunc<F>\n}\n\nexport interface ResolvedOptions<F extends Func> {\n  cache: Cache<string, ReturnType<F>>\n  serializer: Serializer\n}\n\nexport interface MemoizeFunc<F extends Func> {\n  (fn: F, options?: Options<F>): F\n}\n\nexport function memoize<F extends Func>(fn: F, options?: Options<F>): F {\n  const cache = options && options.cache ? options.cache : cacheDefault\n\n  const serializer =\n    options && options.serializer ? options.serializer : serializerDefault\n\n  const strategy =\n    options && options.strategy ? options.strategy : strategyDefault\n\n  return strategy(fn, {\n    cache,\n    serializer,\n  })\n}\n\n//\n// Strategy\n//\n\nfunction isPrimitive(value: any): boolean {\n  return (\n    value == null || typeof value === 'number' || typeof value === 'boolean'\n  ) // || typeof value === \"string\" 'unsafe' primitive for our needs\n}\n\nexport type StrategyFn = <F extends Func>(\n  this: unknown,\n  fn: F,\n  cache: DefaultCache<string, ReturnType<F>>,\n  serializer: Serializer,\n  arg: any\n) => any\n\nfunction monadic<F extends Func>(\n  this: unknown,\n  fn: F,\n  cache: DefaultCache<string, ReturnType<F>>,\n  serializer: Serializer,\n  arg: any\n) {\n  const cacheKey = isPrimitive(arg) ? arg : serializer(arg)\n\n  let computedValue = cache.get(cacheKey)\n  if (typeof computedValue === 'undefined') {\n    computedValue = fn.call(this, arg)\n    cache.set(cacheKey, computedValue)\n  }\n\n  return computedValue\n}\n\nfunction variadic<F extends Func>(\n  this: unknown,\n  fn: F,\n  cache: DefaultCache<string, ReturnType<F>>,\n  serializer: Serializer\n) {\n  const args = Array.prototype.slice.call(arguments, 3)\n  const cacheKey = serializer(args)\n\n  let computedValue = cache.get(cacheKey)\n  if (typeof computedValue === 'undefined') {\n    computedValue = fn.apply(this, args)\n    cache.set(cacheKey, computedValue)\n  }\n\n  return computedValue\n}\n\nfunction assemble<F extends Func>(\n  fn: F,\n  context: unknown,\n  strategy: StrategyFn,\n  cache: DefaultCache<string, ReturnType<F>>,\n  serialize: Serializer\n): F {\n  return strategy.bind(context, fn, cache, serialize) as F\n}\n\nfunction strategyDefault<F extends Func>(\n  this: unknown,\n  fn: F,\n  options: ResolvedOptions<F>\n) {\n  const strategy = fn.length === 1 ? monadic : variadic\n\n  return assemble(\n    fn,\n    this,\n    strategy,\n    options.cache.create(),\n    options.serializer\n  )\n}\n\nfunction strategyVariadic<F extends Func>(\n  this: unknown,\n  fn: F,\n  options: ResolvedOptions<F>\n) {\n  return assemble(\n    fn,\n    this,\n    variadic,\n    options.cache.create(),\n    options.serializer\n  )\n}\n\nfunction strategyMonadic<F extends Func>(\n  this: unknown,\n  fn: F,\n  options: ResolvedOptions<F>\n) {\n  return assemble(fn, this, monadic, options.cache.create(), options.serializer)\n}\n\n//\n// Serializer\n//\n\nconst serializerDefault: Serializer = function (): string {\n  return JSON.stringify(arguments)\n}\n\n//\n// Cache\n//\n\nclass ObjectWithoutPrototypeCache {\n  private cache: Record<string, any>\n\n  constructor() {\n    this.cache = Object.create(null) as Record<string, any>\n  }\n\n  get(key: string) {\n    return this.cache[key]\n  }\n\n  set<T>(key: string, value: T): void {\n    this.cache[key] = value\n  }\n}\n\nconst cacheDefault: Cache<any, any> = {\n  create: function create() {\n    return new ObjectWithoutPrototypeCache()\n  },\n}\n\n//\n// API\n//\n\nexport interface Strategies<F extends Func> {\n  variadic: MemoizeFunc<F>\n  monadic: MemoizeFunc<F>\n}\n\nexport const strategies: Strategies<Func> = {\n  variadic: strategyVariadic as MemoizeFunc<Func>,\n  monadic: strategyMonadic as MemoizeFunc<Func>,\n}\n","/**\n * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js\n * with some tweaks\n */\nconst DATE_TIME_REGEX =\n  /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g\n\n/**\n * Parse Date time skeleton into Intl.DateTimeFormatOptions\n * Ref: https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * @public\n * @param skeleton skeleton string\n */\nexport function parseDateTimeSkeleton(\n  skeleton: string\n): Intl.DateTimeFormatOptions {\n  const result: Intl.DateTimeFormatOptions = {}\n  skeleton.replace(DATE_TIME_REGEX, match => {\n    const len = match.length\n    switch (match[0]) {\n      // Era\n      case 'G':\n        result.era = len === 4 ? 'long' : len === 5 ? 'narrow' : 'short'\n        break\n      // Year\n      case 'y':\n        result.year = len === 2 ? '2-digit' : 'numeric'\n        break\n      case 'Y':\n      case 'u':\n      case 'U':\n      case 'r':\n        throw new RangeError(\n          '`Y/u/U/r` (year) patterns are not supported, use `y` instead'\n        )\n      // Quarter\n      case 'q':\n      case 'Q':\n        throw new RangeError('`q/Q` (quarter) patterns are not supported')\n      // Month\n      case 'M':\n      case 'L':\n        result.month = ['numeric', '2-digit', 'short', 'long', 'narrow'][\n          len - 1\n        ] as 'numeric'\n        break\n      // Week\n      case 'w':\n      case 'W':\n        throw new RangeError('`w/W` (week) patterns are not supported')\n      case 'd':\n        result.day = ['numeric', '2-digit'][len - 1] as 'numeric'\n        break\n      case 'D':\n      case 'F':\n      case 'g':\n        throw new RangeError(\n          '`D/F/g` (day) patterns are not supported, use `d` instead'\n        )\n      // Weekday\n      case 'E':\n        result.weekday = len === 4 ? 'long' : len === 5 ? 'narrow' : 'short'\n        break\n      case 'e':\n        if (len < 4) {\n          throw new RangeError('`e..eee` (weekday) patterns are not supported')\n        }\n        result.weekday = ['short', 'long', 'narrow', 'short'][\n          len - 3\n        ] as 'short'\n        break\n      case 'c':\n        if (len < 4) {\n          throw new RangeError('`c..ccc` (weekday) patterns are not supported')\n        }\n        result.weekday = ['short', 'long', 'narrow', 'short'][\n          len - 3\n        ] as 'short'\n        break\n\n      // Period\n      case 'a': // AM, PM\n        result.hour12 = true\n        break\n      case 'b': // am, pm, noon, midnight\n      case 'B': // flexible day periods\n        throw new RangeError(\n          '`b/B` (period) patterns are not supported, use `a` instead'\n        )\n      // Hour\n      case 'h':\n        result.hourCycle = 'h12'\n        result.hour = ['numeric', '2-digit'][len - 1] as 'numeric'\n        break\n      case 'H':\n        result.hourCycle = 'h23'\n        result.hour = ['numeric', '2-digit'][len - 1] as 'numeric'\n        break\n      case 'K':\n        result.hourCycle = 'h11'\n        result.hour = ['numeric', '2-digit'][len - 1] as 'numeric'\n        break\n      case 'k':\n        result.hourCycle = 'h24'\n        result.hour = ['numeric', '2-digit'][len - 1] as 'numeric'\n        break\n      case 'j':\n      case 'J':\n      case 'C':\n        throw new RangeError(\n          '`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead'\n        )\n      // Minute\n      case 'm':\n        result.minute = ['numeric', '2-digit'][len - 1] as 'numeric'\n        break\n      // Second\n      case 's':\n        result.second = ['numeric', '2-digit'][len - 1] as 'numeric'\n        break\n      case 'S':\n      case 'A':\n        throw new RangeError(\n          '`S/A` (second) patterns are not supported, use `s` instead'\n        )\n      // Zone\n      case 'z': // 1..3, 4: specific non-location format\n        result.timeZoneName = len < 4 ? 'short' : 'long'\n        break\n      case 'Z': // 1..3, 4, 5: The ISO8601 varios formats\n      case 'O': // 1, 4: milliseconds in day short, long\n      case 'v': // 1, 4: generic non-location format\n      case 'V': // 1, 2, 3, 4: time zone ID or city\n      case 'X': // 1, 2, 3, 4: The ISO8601 varios formats\n      case 'x': // 1, 2, 3, 4: The ISO8601 varios formats\n        throw new RangeError(\n          '`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead'\n        )\n    }\n    return ''\n  })\n  return result\n}\n","// @generated from regex-gen.ts\nexport const WHITE_SPACE_REGEX = /[\\t-\\r \\x85\\u200E\\u200F\\u2028\\u2029]/i;\n","import type {NumberFormatOptions} from '#packages/ecma402-abstract/types/number.js'\nimport {WHITE_SPACE_REGEX} from '@formatjs_generated/unicode/icu-skeleton-parser-regex.js'\n\nexport interface ExtendedNumberFormatOptions extends NumberFormatOptions {\n  scale?: number\n}\nexport interface NumberSkeletonToken {\n  stem: string\n  options: string[]\n}\n\nexport function parseNumberSkeletonFromString(\n  skeleton: string\n): NumberSkeletonToken[] {\n  if (skeleton.length === 0) {\n    throw new Error('Number skeleton cannot be empty')\n  }\n  // Parse the skeleton\n  const stringTokens = skeleton\n    .split(WHITE_SPACE_REGEX)\n    .filter(x => x.length > 0)\n\n  const tokens: NumberSkeletonToken[] = []\n  for (const stringToken of stringTokens) {\n    let stemAndOptions = stringToken.split('/')\n    if (stemAndOptions.length === 0) {\n      throw new Error('Invalid number skeleton')\n    }\n\n    const [stem, ...options] = stemAndOptions\n    for (const option of options) {\n      if (option.length === 0) {\n        throw new Error('Invalid number skeleton')\n      }\n    }\n\n    tokens.push({stem, options})\n  }\n  return tokens\n}\n\nfunction icuUnitToEcma(unit: string): ExtendedNumberFormatOptions['unit'] {\n  return unit.replace(/^(.*?)-/, '') as ExtendedNumberFormatOptions['unit']\n}\n\nconst FRACTION_PRECISION_REGEX = /^\\.(?:(0+)(\\*)?|(#+)|(0+)(#+))$/g\nconst SIGNIFICANT_PRECISION_REGEX = /^(@+)?(\\+|#+)?[rs]?$/g\nconst INTEGER_WIDTH_REGEX = /(\\*)(0+)|(#+)(0+)|(0+)/g\nconst CONCISE_INTEGER_WIDTH_REGEX = /^(0+)$/\n\nfunction parseSignificantPrecision(str: string): ExtendedNumberFormatOptions {\n  const result: ExtendedNumberFormatOptions = {}\n  if (str[str.length - 1] === 'r') {\n    result.roundingPriority = 'morePrecision'\n  } else if (str[str.length - 1] === 's') {\n    result.roundingPriority = 'lessPrecision'\n  }\n  str.replace(\n    SIGNIFICANT_PRECISION_REGEX,\n    function (_: string, g1: string, g2: string | number) {\n      // @@@ case\n      if (typeof g2 !== 'string') {\n        result.minimumSignificantDigits = g1.length\n        result.maximumSignificantDigits = g1.length\n      }\n      // @@@+ case\n      else if (g2 === '+') {\n        result.minimumSignificantDigits = g1.length\n      }\n      // .### case\n      else if (g1[0] === '#') {\n        result.maximumSignificantDigits = g1.length\n      }\n      // .@@## or .@@@ case\n      else {\n        result.minimumSignificantDigits = g1.length\n        result.maximumSignificantDigits =\n          g1.length + (typeof g2 === 'string' ? g2.length : 0)\n      }\n      return ''\n    }\n  )\n  return result\n}\n\nfunction parseSign(str: string): ExtendedNumberFormatOptions | undefined {\n  switch (str) {\n    case 'sign-auto':\n      return {\n        signDisplay: 'auto',\n      }\n    case 'sign-accounting':\n    case '()':\n      return {\n        currencySign: 'accounting',\n      }\n    case 'sign-always':\n    case '+!':\n      return {\n        signDisplay: 'always',\n      }\n    case 'sign-accounting-always':\n    case '()!':\n      return {\n        signDisplay: 'always',\n        currencySign: 'accounting',\n      }\n    case 'sign-except-zero':\n    case '+?':\n      return {\n        signDisplay: 'exceptZero',\n      }\n    case 'sign-accounting-except-zero':\n    case '()?':\n      return {\n        signDisplay: 'exceptZero',\n        currencySign: 'accounting',\n      }\n    case 'sign-never':\n    case '+_':\n      return {\n        signDisplay: 'never',\n      }\n  }\n}\n\nfunction parseConciseScientificAndEngineeringStem(\n  stem: string\n): ExtendedNumberFormatOptions | undefined {\n  // Engineering\n  let result: ExtendedNumberFormatOptions | undefined\n  if (stem[0] === 'E' && stem[1] === 'E') {\n    result = {\n      notation: 'engineering',\n    }\n    stem = stem.slice(2)\n  } else if (stem[0] === 'E') {\n    result = {\n      notation: 'scientific',\n    }\n    stem = stem.slice(1)\n  }\n  if (result) {\n    const signDisplay = stem.slice(0, 2)\n    if (signDisplay === '+!') {\n      result.signDisplay = 'always'\n      stem = stem.slice(2)\n    } else if (signDisplay === '+?') {\n      result.signDisplay = 'exceptZero'\n      stem = stem.slice(2)\n    }\n    if (!CONCISE_INTEGER_WIDTH_REGEX.test(stem)) {\n      throw new Error('Malformed concise eng/scientific notation')\n    }\n    result.minimumIntegerDigits = stem.length\n  }\n  return result\n}\n\nfunction parseNotationOptions(opt: string): ExtendedNumberFormatOptions {\n  const result: ExtendedNumberFormatOptions = {}\n  const signOpts = parseSign(opt)\n  if (signOpts) {\n    return signOpts\n  }\n  return result\n}\n\n/**\n * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options\n */\nexport function parseNumberSkeleton(\n  tokens: NumberSkeletonToken[]\n): ExtendedNumberFormatOptions {\n  let result: ExtendedNumberFormatOptions = {}\n  for (const token of tokens) {\n    switch (token.stem) {\n      case 'percent':\n      case '%':\n        result.style = 'percent'\n        continue\n      case '%x100':\n        result.style = 'percent'\n        result.scale = 100\n        continue\n      case 'currency':\n        result.style = 'currency'\n        result.currency = token.options[0]\n        continue\n      case 'group-off':\n      case ',_':\n        result.useGrouping = false\n        continue\n      case 'precision-integer':\n      case '.':\n        result.maximumFractionDigits = 0\n        continue\n      case 'measure-unit':\n      case 'unit':\n        result.style = 'unit'\n        result.unit = icuUnitToEcma(token.options[0])\n        continue\n      case 'compact-short':\n      case 'K':\n        result.notation = 'compact'\n        result.compactDisplay = 'short'\n        continue\n      case 'compact-long':\n      case 'KK':\n        result.notation = 'compact'\n        result.compactDisplay = 'long'\n        continue\n      case 'scientific':\n        result = {\n          ...result,\n          notation: 'scientific',\n          ...token.options.reduce(\n            (all, opt) => ({...all, ...parseNotationOptions(opt)}),\n            {}\n          ),\n        }\n        continue\n      case 'engineering':\n        result = {\n          ...result,\n          notation: 'engineering',\n          ...token.options.reduce(\n            (all, opt) => ({...all, ...parseNotationOptions(opt)}),\n            {}\n          ),\n        }\n        continue\n      case 'notation-simple':\n        result.notation = 'standard'\n        continue\n      // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h\n      case 'unit-width-narrow':\n        result.currencyDisplay = 'narrowSymbol'\n        result.unitDisplay = 'narrow'\n        continue\n      case 'unit-width-short':\n        result.currencyDisplay = 'code'\n        result.unitDisplay = 'short'\n        continue\n      case 'unit-width-full-name':\n        result.currencyDisplay = 'name'\n        result.unitDisplay = 'long'\n        continue\n      case 'unit-width-iso-code':\n        result.currencyDisplay = 'symbol'\n        continue\n      case 'scale':\n        result.scale = parseFloat(token.options[0])\n        continue\n      case 'rounding-mode-floor':\n        result.roundingMode = 'floor'\n        continue\n      case 'rounding-mode-ceiling':\n        result.roundingMode = 'ceil'\n        continue\n      case 'rounding-mode-down':\n        result.roundingMode = 'trunc'\n        continue\n      case 'rounding-mode-up':\n        result.roundingMode = 'expand'\n        continue\n      case 'rounding-mode-half-even':\n        result.roundingMode = 'halfEven'\n        continue\n      case 'rounding-mode-half-down':\n        result.roundingMode = 'halfTrunc'\n        continue\n      case 'rounding-mode-half-up':\n        result.roundingMode = 'halfExpand'\n        continue\n      // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width\n      case 'integer-width':\n        if (token.options.length > 1) {\n          throw new RangeError(\n            'integer-width stems only accept a single optional option'\n          )\n        }\n        token.options[0].replace(\n          INTEGER_WIDTH_REGEX,\n          function (\n            _: string,\n            g1: string,\n            g2: string,\n            g3: string,\n            g4: string,\n            g5: string\n          ) {\n            if (g1) {\n              result.minimumIntegerDigits = g2.length\n            } else if (g3 && g4) {\n              throw new Error(\n                'We currently do not support maximum integer digits'\n              )\n            } else if (g5) {\n              throw new Error(\n                'We currently do not support exact integer digits'\n              )\n            }\n            return ''\n          }\n        )\n        continue\n    }\n    // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width\n    if (CONCISE_INTEGER_WIDTH_REGEX.test(token.stem)) {\n      result.minimumIntegerDigits = token.stem.length\n      continue\n    }\n    if (FRACTION_PRECISION_REGEX.test(token.stem)) {\n      // Precision\n      // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision\n      // precision-integer case\n      if (token.options.length > 1) {\n        throw new RangeError(\n          'Fraction-precision stems only accept a single optional option'\n        )\n      }\n      token.stem.replace(\n        FRACTION_PRECISION_REGEX,\n        function (\n          _: string,\n          g1: string,\n          g2: string | number,\n          g3: string,\n          g4: string,\n          g5: string\n        ) {\n          // .000* case (before ICU67 it was .000+)\n          if (g2 === '*') {\n            result.minimumFractionDigits = g1.length\n          }\n          // .### case\n          else if (g3 && g3[0] === '#') {\n            result.maximumFractionDigits = g3.length\n          }\n          // .00## case\n          else if (g4 && g5) {\n            result.minimumFractionDigits = g4.length\n            result.maximumFractionDigits = g4.length + g5.length\n          } else {\n            result.minimumFractionDigits = g1.length\n            result.maximumFractionDigits = g1.length\n          }\n          return ''\n        }\n      )\n\n      const opt = token.options[0]\n      // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display\n      if (opt === 'w') {\n        result = {...result, trailingZeroDisplay: 'stripIfInteger'}\n      } else if (opt) {\n        result = {...result, ...parseSignificantPrecision(opt)}\n      }\n      continue\n    }\n    // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision\n    if (SIGNIFICANT_PRECISION_REGEX.test(token.stem)) {\n      result = {...result, ...parseSignificantPrecision(token.stem)}\n      continue\n    }\n    const signOpts = parseSign(token.stem)\n    if (signOpts) {\n      result = {...result, ...signOpts}\n    }\n    const conciseScientificAndEngineeringOpts =\n      parseConciseScientificAndEngineeringStem(token.stem)\n    if (conciseScientificAndEngineeringOpts) {\n      result = {...result, ...conciseScientificAndEngineeringOpts}\n    }\n  }\n  return result\n}\n","import {type Location} from '#packages/icu-messageformat-parser/types.js'\n\nexport interface ParserError {\n  kind: ErrorKind\n  message: string\n  location: Location\n}\n\nexport enum ErrorKind {\n  /** Argument is unclosed (e.g. `{0`) */\n  EXPECT_ARGUMENT_CLOSING_BRACE = 1,\n  /** Argument is empty (e.g. `{}`). */\n  EMPTY_ARGUMENT = 2,\n  /** Argument is malformed (e.g. `{foo!}``) */\n  MALFORMED_ARGUMENT = 3,\n  /** Expect an argument type (e.g. `{foo,}`) */\n  EXPECT_ARGUMENT_TYPE = 4,\n  /** Unsupported argument type (e.g. `{foo,foo}`) */\n  INVALID_ARGUMENT_TYPE = 5,\n  /** Expect an argument style (e.g. `{foo, number, }`) */\n  EXPECT_ARGUMENT_STYLE = 6,\n  /** The number skeleton is invalid. */\n  INVALID_NUMBER_SKELETON = 7,\n  /** The date time skeleton is invalid. */\n  INVALID_DATE_TIME_SKELETON = 8,\n  /** Exepct a number skeleton following the `::` (e.g. `{foo, number, ::}`) */\n  EXPECT_NUMBER_SKELETON = 9,\n  /** Exepct a date time skeleton following the `::` (e.g. `{foo, date, ::}`) */\n  EXPECT_DATE_TIME_SKELETON = 10,\n  /** Unmatched apostrophes in the argument style (e.g. `{foo, number, 'test`) */\n  UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11,\n  /** Missing select argument options (e.g. `{foo, select}`) */\n  EXPECT_SELECT_ARGUMENT_OPTIONS = 12,\n\n  /** Expecting an offset value in `plural` or `selectordinal` argument (e.g `{foo, plural, offset}`) */\n  EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13,\n  /** Offset value in `plural` or `selectordinal` is invalid (e.g. `{foo, plural, offset: x}`) */\n  INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14,\n\n  /** Expecting a selector in `select` argument (e.g `{foo, select}`) */\n  EXPECT_SELECT_ARGUMENT_SELECTOR = 15,\n  /** Expecting a selector in `plural` or `selectordinal` argument (e.g `{foo, plural}`) */\n  EXPECT_PLURAL_ARGUMENT_SELECTOR = 16,\n\n  /** Expecting a message fragment after the `select` selector (e.g. `{foo, select, apple}`) */\n  EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17,\n  /**\n   * Expecting a message fragment after the `plural` or `selectordinal` selector\n   * (e.g. `{foo, plural, one}`)\n   */\n  EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18,\n\n  /** Selector in `plural` or `selectordinal` is malformed (e.g. `{foo, plural, =x {#}}`) */\n  INVALID_PLURAL_ARGUMENT_SELECTOR = 19,\n\n  /**\n   * Duplicate selectors in `plural` or `selectordinal` argument.\n   * (e.g. {foo, plural, one {#} one {#}})\n   */\n  DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20,\n  /** Duplicate selectors in `select` argument.\n   * (e.g. {foo, select, apple {apple} apple {apple}})\n   */\n  DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21,\n\n  /** Plural or select argument option must have `other` clause. */\n  MISSING_OTHER_CLAUSE = 22,\n\n  /** The tag is malformed. (e.g. `<bold!>foo</bold!>) */\n  INVALID_TAG = 23,\n  /** The tag name is invalid. (e.g. `<123>foo</123>`) */\n  INVALID_TAG_NAME = 25,\n  /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */\n  UNMATCHED_CLOSING_TAG = 26,\n  /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */\n  UNCLOSED_TAG = 27,\n}\n","import type {NumberFormatOptions} from '#packages/ecma402-abstract/types/number.js'\nimport {type NumberSkeletonToken} from '@formatjs/icu-skeleton-parser'\n\nexport interface ExtendedNumberFormatOptions extends NumberFormatOptions {\n  scale?: number\n}\n\nexport enum TYPE {\n  /**\n   * Raw text\n   */\n  literal,\n  /**\n   * Variable w/o any format, e.g `var` in `this is a {var}`\n   */\n  argument,\n  /**\n   * Variable w/ number format\n   */\n  number,\n  /**\n   * Variable w/ date format\n   */\n  date,\n  /**\n   * Variable w/ time format\n   */\n  time,\n  /**\n   * Variable w/ select format\n   */\n  select,\n  /**\n   * Variable w/ plural format\n   */\n  plural,\n  /**\n   * Only possible within plural argument.\n   * This is the `#` symbol that will be substituted with the count.\n   */\n  pound,\n  /**\n   * XML-like tag\n   */\n  tag,\n}\n\nexport enum SKELETON_TYPE {\n  number,\n  dateTime,\n}\n\nexport interface LocationDetails {\n  offset: number\n  line: number\n  column: number\n}\nexport interface Location {\n  start: LocationDetails\n  end: LocationDetails\n}\n\nexport interface BaseElement<T extends TYPE> {\n  type: T\n  value: string\n  location?: Location\n}\n\nexport type LiteralElement = BaseElement<TYPE.literal>\nexport type ArgumentElement = BaseElement<TYPE.argument>\nexport interface TagElement extends BaseElement<TYPE.tag> {\n  children: MessageFormatElement[]\n}\n\nexport interface SimpleFormatElement<\n  T extends TYPE,\n  S extends Skeleton,\n> extends BaseElement<T> {\n  style?: string | S | null\n}\n\nexport type NumberElement = SimpleFormatElement<TYPE.number, NumberSkeleton>\nexport type DateElement = SimpleFormatElement<TYPE.date, DateTimeSkeleton>\nexport type TimeElement = SimpleFormatElement<TYPE.time, DateTimeSkeleton>\n\nexport type ValidPluralRule =\n  | 'zero'\n  | 'one'\n  | 'two'\n  | 'few'\n  | 'many'\n  | 'other'\n  | string\n\nexport interface PluralOrSelectOption {\n  value: MessageFormatElement[]\n  location?: Location\n}\n\nexport interface SelectElement extends BaseElement<TYPE.select> {\n  options: Record<string, PluralOrSelectOption>\n}\n\nexport interface PluralElement extends BaseElement<TYPE.plural> {\n  options: Record<ValidPluralRule, PluralOrSelectOption>\n  offset: number\n  pluralType: Intl.PluralRulesOptions['type']\n}\n\nexport interface PoundElement {\n  type: TYPE.pound\n  location?: Location\n}\n\nexport type MessageFormatElement =\n  | ArgumentElement\n  | DateElement\n  | LiteralElement\n  | NumberElement\n  | PluralElement\n  | PoundElement\n  | SelectElement\n  | TagElement\n  | TimeElement\n\nexport interface NumberSkeleton {\n  type: SKELETON_TYPE.number\n  tokens: NumberSkeletonToken[]\n  location?: Location\n  parsedOptions: ExtendedNumberFormatOptions\n}\n\nexport interface DateTimeSkeleton {\n  type: SKELETON_TYPE.dateTime\n  pattern: string\n  location?: Location\n  parsedOptions: Intl.DateTimeFormatOptions\n}\n\nexport type Skeleton = NumberSkeleton | DateTimeSkeleton\n\n/**\n * Type Guards\n */\nexport function isLiteralElement(\n  el: MessageFormatElement\n): el is LiteralElement {\n  return el.type === TYPE.literal\n}\nexport function isArgumentElement(\n  el: MessageFormatElement\n): el is ArgumentElement {\n  return el.type === TYPE.argument\n}\nexport function isNumberElement(el: MessageFormatElement): el is NumberElement {\n  return el.type === TYPE.number\n}\nexport function isDateElement(el: MessageFormatElement): el is DateElement {\n  return el.type === TYPE.date\n}\nexport function isTimeElement(el: MessageFormatElement): el is TimeElement {\n  return el.type === TYPE.time\n}\nexport function isSelectElement(el: MessageFormatElement): el is SelectElement {\n  return el.type === TYPE.select\n}\nexport function isPluralElement(el: MessageFormatElement): el is PluralElement {\n  return el.type === TYPE.plural\n}\nexport function isPoundElement(el: MessageFormatElement): el is PoundElement {\n  return el.type === TYPE.pound\n}\nexport function isTagElement(el: MessageFormatElement): el is TagElement {\n  return el.type === TYPE.tag\n}\nexport function isNumberSkeleton(\n  el: NumberElement['style'] | Skeleton\n): el is NumberSkeleton {\n  return !!(el && typeof el === 'object' && el.type === SKELETON_TYPE.number)\n}\nexport function isDateTimeSkeleton(\n  el?: DateElement['style'] | TimeElement['style'] | Skeleton\n): el is DateTimeSkeleton {\n  return !!(el && typeof el === 'object' && el.type === SKELETON_TYPE.dateTime)\n}\n\nexport function createLiteralElement(value: string): LiteralElement {\n  return {\n    type: TYPE.literal,\n    value,\n  }\n}\n\nexport function createNumberElement(\n  value: string,\n  style?: string | null\n): NumberElement {\n  return {\n    type: TYPE.number,\n    value,\n    style,\n  }\n}\n","// @generated from regex-gen.ts\nexport const SPACE_SEPARATOR_REGEX = /[ \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000]/;\nexport const WHITE_SPACE_REGEX = /[\\t-\\r \\x85\\u200E\\u200F\\u2028\\u2029]/;\nexport const IDENTIFIER_PREFIX_REGEX = /([^\\t-\\r -\\/:-@\\[-\\^`\\{-~\\x85\\xA0-\\xA7\\xA9\\xAB\\xAC\\xAE\\xB0\\xB1\\xB6\\xBB\\xBF\\xD7\\xF7\\u1680\\u2000-\\u200A\\u2010-\\u2029\\u202F-\\u203E\\u2041-\\u2053\\u2055-\\u205F\\u2190-\\u245F\\u2500-\\u2775\\u2794-\\u2BFF\\u2E00-\\u2E7F\\u3000-\\u3003\\u3008-\\u3020\\u3030\\uFD3E\\uFD3F\\uFE45\\uFE46]*)/g;\n","// @generated from time-data-gen.ts\n// prettier-ignore\nexport const timeData = {\n\t\"001\": [\"H\", \"h\"],\n\t\"419\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"AC\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"AD\": [\"H\", \"hB\"],\n\t\"AE\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"AF\": [\n\t\t\"H\",\n\t\t\"hb\",\n\t\t\"hB\",\n\t\t\"h\"\n\t],\n\t\"AG\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"AI\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"AL\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"AM\": [\"H\", \"hB\"],\n\t\"AO\": [\"H\", \"hB\"],\n\t\"AR\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"AS\": [\"h\", \"H\"],\n\t\"AT\": [\"H\", \"hB\"],\n\t\"AU\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"AW\": [\"H\", \"hB\"],\n\t\"AX\": [\"H\"],\n\t\"AZ\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"h\"\n\t],\n\t\"BA\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"h\"\n\t],\n\t\"BB\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"BD\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"H\"\n\t],\n\t\"BE\": [\"H\", \"hB\"],\n\t\"BF\": [\"H\", \"hB\"],\n\t\"BG\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"h\"\n\t],\n\t\"BH\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"BI\": [\"H\", \"h\"],\n\t\"BJ\": [\"H\", \"hB\"],\n\t\"BL\": [\"H\", \"hB\"],\n\t\"BM\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"BN\": [\n\t\t\"hb\",\n\t\t\"hB\",\n\t\t\"h\",\n\t\t\"H\"\n\t],\n\t\"BO\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"BQ\": [\"H\"],\n\t\"BR\": [\"H\", \"hB\"],\n\t\"BS\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"BT\": [\"h\", \"H\"],\n\t\"BW\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"BY\": [\"H\", \"h\"],\n\t\"BZ\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"CA\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"CC\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"CD\": [\"hB\", \"H\"],\n\t\"CF\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"CG\": [\"H\", \"hB\"],\n\t\"CH\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"h\"\n\t],\n\t\"CI\": [\"H\", \"hB\"],\n\t\"CK\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"CL\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"CM\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"CN\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"h\"\n\t],\n\t\"CO\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"CP\": [\"H\"],\n\t\"CR\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"CU\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"CV\": [\"H\", \"hB\"],\n\t\"CW\": [\"H\", \"hB\"],\n\t\"CX\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"CY\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"CZ\": [\"H\"],\n\t\"DE\": [\"H\", \"hB\"],\n\t\"DG\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"DJ\": [\"h\", \"H\"],\n\t\"DK\": [\"H\"],\n\t\"DM\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"DO\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"DZ\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"EA\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"EC\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"EE\": [\"H\", \"hB\"],\n\t\"EG\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"EH\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"ER\": [\"h\", \"H\"],\n\t\"ES\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"h\",\n\t\t\"hb\"\n\t],\n\t\"ET\": [\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"h\",\n\t\t\"H\"\n\t],\n\t\"FI\": [\"H\"],\n\t\"FJ\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"FK\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"FM\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"FO\": [\"H\", \"h\"],\n\t\"FR\": [\"H\", \"hB\"],\n\t\"GA\": [\"H\", \"hB\"],\n\t\"GB\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"GD\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"GE\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"h\"\n\t],\n\t\"GF\": [\"H\", \"hB\"],\n\t\"GG\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"GH\": [\"h\", \"H\"],\n\t\"GI\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"GL\": [\"H\", \"h\"],\n\t\"GM\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"GN\": [\"H\", \"hB\"],\n\t\"GP\": [\"H\", \"hB\"],\n\t\"GQ\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"h\",\n\t\t\"hb\"\n\t],\n\t\"GR\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"GS\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"GT\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"GU\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"GW\": [\"H\", \"hB\"],\n\t\"GY\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"HK\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"HN\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"HR\": [\"H\", \"hB\"],\n\t\"HU\": [\"H\", \"h\"],\n\t\"IC\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"ID\": [\"H\"],\n\t\"IE\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"IL\": [\"H\", \"hB\"],\n\t\"IM\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"IN\": [\"h\", \"H\"],\n\t\"IO\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"IQ\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"IR\": [\"hB\", \"H\"],\n\t\"IS\": [\"H\"],\n\t\"IT\": [\"H\", \"hB\"],\n\t\"JE\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"JM\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"JO\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"JP\": [\n\t\t\"H\",\n\t\t\"K\",\n\t\t\"h\"\n\t],\n\t\"KE\": [\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"h\"\n\t],\n\t\"KG\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"KH\": [\n\t\t\"hB\",\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hb\"\n\t],\n\t\"KI\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"KM\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"KN\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"KP\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"KR\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"KW\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"KY\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"KZ\": [\"H\", \"hB\"],\n\t\"LA\": [\n\t\t\"H\",\n\t\t\"hb\",\n\t\t\"hB\",\n\t\t\"h\"\n\t],\n\t\"LB\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"LC\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"LI\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"h\"\n\t],\n\t\"LK\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"LR\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"LS\": [\"h\", \"H\"],\n\t\"LT\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"LU\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"LV\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"h\"\n\t],\n\t\"LY\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"MA\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"MC\": [\"H\", \"hB\"],\n\t\"MD\": [\"H\", \"hB\"],\n\t\"ME\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"h\"\n\t],\n\t\"MF\": [\"H\", \"hB\"],\n\t\"MG\": [\"H\", \"h\"],\n\t\"MH\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"MK\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"ML\": [\"H\"],\n\t\"MM\": [\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"h\"\n\t],\n\t\"MN\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"MO\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"MP\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"MQ\": [\"H\", \"hB\"],\n\t\"MR\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"MS\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"MT\": [\"H\", \"h\"],\n\t\"MU\": [\"H\", \"h\"],\n\t\"MV\": [\"H\", \"h\"],\n\t\"MW\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"MX\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"MY\": [\n\t\t\"hb\",\n\t\t\"hB\",\n\t\t\"h\",\n\t\t\"H\"\n\t],\n\t\"MZ\": [\"H\", \"hB\"],\n\t\"NA\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"NC\": [\"H\", \"hB\"],\n\t\"NE\": [\"H\"],\n\t\"NF\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"NG\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"NI\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"NL\": [\"H\", \"hB\"],\n\t\"NO\": [\"H\", \"h\"],\n\t\"NP\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"NR\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"NU\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"NZ\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"OM\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"PA\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"PE\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"PF\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"PG\": [\"h\", \"H\"],\n\t\"PH\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"PK\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"H\"\n\t],\n\t\"PL\": [\"H\", \"h\"],\n\t\"PM\": [\"H\", \"hB\"],\n\t\"PN\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"PR\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"PS\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"PT\": [\"H\", \"hB\"],\n\t\"PW\": [\"h\", \"H\"],\n\t\"PY\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"QA\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"RE\": [\"H\", \"hB\"],\n\t\"RO\": [\"H\", \"hB\"],\n\t\"RS\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"h\"\n\t],\n\t\"RU\": [\"H\"],\n\t\"RW\": [\"H\", \"h\"],\n\t\"SA\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"SB\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"SC\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"SD\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"SE\": [\"H\"],\n\t\"SG\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"SH\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"SI\": [\"H\", \"hB\"],\n\t\"SJ\": [\"H\"],\n\t\"SK\": [\"H\"],\n\t\"SL\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"SM\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"SN\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"SO\": [\"h\", \"H\"],\n\t\"SR\": [\"H\", \"hB\"],\n\t\"SS\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"ST\": [\"H\", \"hB\"],\n\t\"SV\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"SX\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"SY\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"SZ\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"TA\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"TC\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"TD\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"TF\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"TG\": [\"H\", \"hB\"],\n\t\"TH\": [\"H\", \"h\"],\n\t\"TJ\": [\"H\", \"h\"],\n\t\"TL\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"h\"\n\t],\n\t\"TM\": [\"H\", \"h\"],\n\t\"TN\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"TO\": [\"h\", \"H\"],\n\t\"TR\": [\"H\", \"hB\"],\n\t\"TT\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"TW\": [\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"h\",\n\t\t\"H\"\n\t],\n\t\"TZ\": [\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"h\"\n\t],\n\t\"UA\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"h\"\n\t],\n\t\"UG\": [\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"h\"\n\t],\n\t\"UM\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"US\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"UY\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"UZ\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"h\"\n\t],\n\t\"VA\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"VC\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"VE\": [\n\t\t\"h\",\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"VG\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"VI\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"VN\": [\"H\", \"h\"],\n\t\"VU\": [\"h\", \"H\"],\n\t\"WF\": [\"H\", \"hB\"],\n\t\"WS\": [\"h\", \"H\"],\n\t\"XK\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"h\"\n\t],\n\t\"YE\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"YT\": [\"H\", \"hB\"],\n\t\"ZA\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"ZM\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"ZW\": [\"H\", \"h\"],\n\t\"af-ZA\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"ar-001\": [\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"ca-ES\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"en-001\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"en-HK\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"en-IL\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"hB\"\n\t],\n\t\"en-MY\": [\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\",\n\t\t\"hB\"\n\t],\n\t\"es-BR\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"es-ES\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"es-GQ\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\",\n\t\t\"hb\"\n\t],\n\t\"fr-CA\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"gl-ES\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"gu-IN\": [\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"h\",\n\t\t\"H\"\n\t],\n\t\"hi-IN\": [\n\t\t\"hB\",\n\t\t\"h\",\n\t\t\"H\"\n\t],\n\t\"it-CH\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"it-IT\": [\n\t\t\"H\",\n\t\t\"h\",\n\t\t\"hB\"\n\t],\n\t\"kn-IN\": [\n\t\t\"hB\",\n\t\t\"h\",\n\t\t\"H\"\n\t],\n\t\"ku-SY\": [\"H\", \"hB\"],\n\t\"ml-IN\": [\n\t\t\"hB\",\n\t\t\"h\",\n\t\t\"H\"\n\t],\n\t\"mr-IN\": [\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"h\",\n\t\t\"H\"\n\t],\n\t\"pa-IN\": [\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"h\",\n\t\t\"H\"\n\t],\n\t\"ta-IN\": [\n\t\t\"hB\",\n\t\t\"h\",\n\t\t\"hb\",\n\t\t\"H\"\n\t],\n\t\"te-IN\": [\n\t\t\"hB\",\n\t\t\"h\",\n\t\t\"H\"\n\t],\n\t\"zu-ZA\": [\n\t\t\"H\",\n\t\t\"hB\",\n\t\t\"hb\",\n\t\t\"h\"\n\t]\n};\n","import {timeData} from '@formatjs_generated/cldr.core/time-data.js'\n\n/**\n * Returns the best matching date time pattern if a date time skeleton\n * pattern is provided with a locale. Follows the Unicode specification:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#table-mapping-requested-time-skeletons-to-patterns\n * @param skeleton date time skeleton pattern that possibly includes j, J or C\n * @param locale\n */\nexport function getBestPattern(skeleton: string, locale: Intl.Locale): string {\n  let skeletonCopy = ''\n  for (let patternPos = 0; patternPos < skeleton.length; patternPos++) {\n    const patternChar = skeleton.charAt(patternPos)\n\n    if (patternChar === 'j') {\n      let extraLength = 0\n      while (\n        patternPos + 1 < skeleton.length &&\n        skeleton.charAt(patternPos + 1) === patternChar\n      ) {\n        extraLength++\n        patternPos++\n      }\n\n      let hourLen = 1 + (extraLength & 1)\n      let dayPeriodLen = extraLength < 2 ? 1 : 3 + (extraLength >> 1)\n      let dayPeriodChar = 'a'\n      let hourChar = getDefaultHourSymbolFromLocale(locale)\n\n      if (hourChar == 'H' || hourChar == 'k') {\n        dayPeriodLen = 0\n      }\n\n      while (dayPeriodLen-- > 0) {\n        skeletonCopy += dayPeriodChar\n      }\n      while (hourLen-- > 0) {\n        skeletonCopy = hourChar + skeletonCopy\n      }\n    } else if (patternChar === 'J') {\n      skeletonCopy += 'H'\n    } else {\n      skeletonCopy += patternChar\n    }\n  }\n\n  return skeletonCopy\n}\n\n/**\n * Maps the [hour cycle type](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/hourCycle)\n * of the given `locale` to the corresponding time pattern.\n * @param locale\n */\nfunction getDefaultHourSymbolFromLocale(locale: Intl.Locale): string {\n  let hourCycle: string | undefined = locale.hourCycle\n\n  if (hourCycle === undefined) {\n    const localeWithHourCycles = locale as Intl.Locale & {\n      getHourCycles?: () => string[]\n      hourCycles?: string[]\n    }\n    hourCycle =\n      localeWithHourCycles.getHourCycles?.()[0] ??\n      localeWithHourCycles.hourCycles?.[0]\n  }\n\n  if (hourCycle) {\n    switch (hourCycle) {\n      case 'h24':\n        return 'k'\n      case 'h23':\n        return 'H'\n      case 'h12':\n        return 'h'\n      case 'h11':\n        return 'K'\n      default:\n        throw new Error('Invalid hourCycle')\n    }\n  }\n\n  // TODO: Once hourCycle is fully supported remove the following with data generation\n  const languageTag = locale.language\n  let regionTag: string | undefined\n  if (languageTag !== 'root') {\n    regionTag = locale.maximize().region\n  }\n  const hourCycles =\n    timeData[`${languageTag}-${regionTag}`] ||\n    timeData[regionTag || ''] ||\n    timeData[languageTag || ''] ||\n    timeData[`${languageTag}-001`] ||\n    timeData['001']\n  return hourCycles[0].charAt(0)\n}\n","import {\n  ErrorKind,\n  type ParserError,\n} from '#packages/icu-messageformat-parser/error.js'\nimport {\n  type DateTimeSkeleton,\n  type LiteralElement,\n  type Location,\n  type MessageFormatElement,\n  type NumberSkeleton,\n  type PluralOrSelectOption,\n  SKELETON_TYPE,\n  type TagElement,\n  TYPE,\n} from '#packages/icu-messageformat-parser/types.js'\nimport {\n  IDENTIFIER_PREFIX_REGEX,\n  SPACE_SEPARATOR_REGEX,\n} from '@formatjs_generated/unicode/icu-messageformat-parser-regex.js'\nimport {\n  type NumberSkeletonToken,\n  parseNumberSkeleton,\n  parseNumberSkeletonFromString,\n  parseDateTimeSkeleton,\n} from '@formatjs/icu-skeleton-parser'\nimport {getBestPattern} from '#packages/icu-messageformat-parser/date-time-pattern-generator.js'\n\nconst SPACE_SEPARATOR_START_REGEX = new RegExp(\n  `^${SPACE_SEPARATOR_REGEX.source}*`\n)\nconst SPACE_SEPARATOR_END_REGEX = new RegExp(\n  `${SPACE_SEPARATOR_REGEX.source}*$`\n)\n\nexport interface Position {\n  /** Offset in terms of UTF-16 *code unit*. */\n  offset: number\n  line: number\n  /** Column offset in terms of unicode *code point*. */\n  column: number\n}\n\nexport interface ParserOptions {\n  /**\n   * Whether to treat HTML/XML tags as string literal\n   * instead of parsing them as tag token.\n   * When this is false we only allow simple tags without\n   * any attributes\n   */\n  ignoreTag?: boolean\n  /**\n   * Should `select`, `selectordinal`, and `plural` arguments always include\n   * the `other` case clause.\n   */\n  requiresOtherClause?: boolean\n  /**\n   * Whether to parse number/datetime skeleton\n   * into Intl.NumberFormatOptions and Intl.DateTimeFormatOptions, respectively.\n   */\n  shouldParseSkeletons?: boolean\n  /**\n   * Capture location info in AST\n   * Default is false\n   */\n  captureLocation?: boolean\n  /**\n   * Instance of Intl.Locale to resolve locale-dependent skeleton\n   */\n  locale?: Intl.Locale\n}\n\nexport type Result<T, E> = {val: T; err: null} | {val: null; err: E}\ntype ArgType =\n  | 'number'\n  | 'date'\n  | 'time'\n  | 'select'\n  | 'plural'\n  | 'selectordinal'\n  | ''\n\nfunction createLocation(start: Position, end: Position): Location {\n  return {start, end}\n}\n\n// #region Ponyfills\n// Consolidate these variables up top for easier toggling during debugging\nconst hasNativeFromEntries = !!(Object as any).fromEntries\nconst hasTrimStart = !!(String.prototype as any).trimStart\nconst hasTrimEnd = !!(String.prototype as any).trimEnd\n\nconst fromEntries: <T = any>(\n  entries: readonly (readonly [string, T])[]\n) => {[k: string]: T} =\n  // native\n  hasNativeFromEntries\n    ? (Object as any).fromEntries\n    : // Ponyfill\n      function fromEntries(entries) {\n        const obj: Record<string, any> = {}\n        for (const [k, v] of entries) {\n          obj[k] = v\n        }\n        return obj\n      }\n\nconst trimStart: (s: string) => string = hasTrimStart\n  ? // Native\n    function trimStart(s) {\n      return (s as any).trimStart()\n    }\n  : // Ponyfill\n    function trimStart(s) {\n      return s.replace(SPACE_SEPARATOR_START_REGEX, '')\n    }\n\nconst trimEnd: (s: string) => string = hasTrimEnd\n  ? // Native\n    function trimEnd(s) {\n      return (s as any).trimEnd()\n    }\n  : // Ponyfill\n    function trimEnd(s) {\n      return s.replace(SPACE_SEPARATOR_END_REGEX, '')\n    }\n\n// #endregion\n\nlet IDENTIFIER_PREFIX_RE = createIdentifierPrefixRegex()\n\nfunction createIdentifierPrefixRegex(): RegExp {\n  try {\n    const regex = new RegExp('([^\\\\p{White_Space}\\\\p{Pattern_Syntax}]*)', 'yu')\n\n    // Some engines accept the flags but do not implement these properties.\n    if (regex.exec('a ')?.[1] === 'a') {\n      return regex\n    }\n  } catch {\n    // Generated ranges also work without Unicode or sticky regex support.\n  }\n  return IDENTIFIER_PREFIX_REGEX\n}\n\n/** @internal\n * Runs synchronous parser tests with the fallback, restoring the previous matcher.\n */\nexport function withIdentifierFallbackForTesting<T>(run: () => T): T {\n  const previous = IDENTIFIER_PREFIX_RE\n  IDENTIFIER_PREFIX_RE = IDENTIFIER_PREFIX_REGEX\n  try {\n    return run()\n  } finally {\n    IDENTIFIER_PREFIX_RE = previous\n  }\n}\n\nfunction matchIdentifierAtIndex(s: string, index: number): string {\n  IDENTIFIER_PREFIX_RE.lastIndex = index\n  const match = IDENTIFIER_PREFIX_RE.exec(s)!\n  return match[1] ?? ''\n}\n\nfunction plainTopLevelEndPosition(message: string): Position | null {\n  if (message.length === 0) {\n    return null\n  }\n  let line = 1\n  let column = 1\n  for (let offset = 0; offset < message.length;) {\n    const code = message.charCodeAt(offset)\n    switch (code) {\n      case 35: // #\n      case 39: // '\n      case 60: // <\n      case 123: // {\n      case 125: // }\n        return null\n    }\n    if (code === 10 /* '\\n' */) {\n      line++\n      column = 1\n      offset++\n    } else {\n      column++\n      if (code >= 0xd800 && code <= 0xdbff && offset + 1 < message.length) {\n        const next = message.charCodeAt(offset + 1)\n        offset += next >= 0xdc00 && next <= 0xdfff ? 2 : 1\n      } else {\n        offset++\n      }\n    }\n  }\n  return {offset: message.length, line, column}\n}\n\nexport class Parser {\n  private message: string\n  private position: Position\n  private locale?: Intl.Locale\n\n  private ignoreTag: boolean\n  private requiresOtherClause: boolean\n  private shouldParseSkeletons?: boolean\n\n  constructor(message: string, options: ParserOptions = {}) {\n    this.message = message\n    this.position = {offset: 0, line: 1, column: 1}\n    this.ignoreTag = !!options.ignoreTag\n    this.locale = options.locale\n    this.requiresOtherClause = !!options.requiresOtherClause\n    this.shouldParseSkeletons = !!options.shouldParseSkeletons\n  }\n\n  parse(): Result<MessageFormatElement[], ParserError> {\n    if (this.offset() !== 0) {\n      throw Error('parser can only be used once')\n    }\n    if (this.message.length > 0) {\n      const firstCode = this.message.charCodeAt(0)\n      if (\n        firstCode !== 35 /* # */ &&\n        firstCode !== 39 /* ' */ &&\n        firstCode !== 60 /* < */ &&\n        firstCode !== 123 /* { */ &&\n        firstCode !== 125 /* } */\n      ) {\n        const plainEndPosition = plainTopLevelEndPosition(this.message)\n        if (plainEndPosition) {\n          const start = this.clonePosition()\n          this.position = plainEndPosition\n          return {\n            val: [\n              {\n                type: TYPE.literal,\n                value: this.message,\n                location: createLocation(start, this.clonePosition()),\n              },\n            ],\n            err: null,\n          }\n        }\n      }\n    }\n    return this.parseMessage(0, '', false)\n  }\n\n  private parseMessage(\n    nestingLevel: number,\n    parentArgType: ArgType,\n    expectingCloseTag: boolean\n  ): Result<MessageFormatElement[], ParserError> {\n    let elements: MessageFormatElement[] = []\n\n    while (!this.isEOF()) {\n      const char = this.char()\n      if (char === 123 /* `{` */) {\n        const result = this.parseArgument(nestingLevel, expectingCloseTag)\n        if (result.err) {\n          return result\n        }\n        elements.push(result.val)\n      } else if (char === 125 /* `}` */ && nestingLevel > 0) {\n        break\n      } else if (\n        char === 35 /* `#` */ &&\n        (parentArgType === 'plural' || parentArgType === 'selectordinal')\n      ) {\n        const position = this.clonePosition()\n        this.bump()\n        elements.push({\n          type: TYPE.pound,\n          location: createLocation(position, this.clonePosition()),\n        })\n      } else if (\n        char === 60 /* `<` */ &&\n        !this.ignoreTag &&\n        this.peek() === 47 // char code for '/'\n      ) {\n        if (expectingCloseTag) {\n          break\n        } else {\n          return this.error(\n            ErrorKind.UNMATCHED_CLOSING_TAG,\n            createLocation(this.clonePosition(), this.clonePosition())\n          )\n        }\n      } else if (\n        char === 60 /* `<` */ &&\n        !this.ignoreTag &&\n        _isAlpha(this.peek() || 0)\n      ) {\n        const result = this.parseTag(nestingLevel, parentArgType)\n        if (result.err) {\n          return result\n        }\n        elements.push(result.val)\n      } else {\n        const result = this.parseLiteral(nestingLevel, parentArgType)\n        if (result.err) {\n          return result\n        }\n        elements.push(result.val)\n      }\n    }\n\n    return {val: elements, err: null}\n  }\n  /**\n   * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the\n   * [custom element name][] except that a dash is NOT always mandatory and uppercase letters\n   * are accepted:\n   *\n   * ```\n   * tag ::= \"<\" tagName (whitespace)* \"/>\" | \"<\" tagName (whitespace)* \">\" message \"</\" tagName (whitespace)* \">\"\n   * tagName ::= [a-z] (PENChar)*\n   * PENChar ::=\n   *     \"-\" | \".\" | [0-9] | \"_\" | [a-z] | [A-Z] | #xB7 | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x37D] |\n   *     [#x37F-#x1FFF] | [#x200C-#x200D] | [#x203F-#x2040] | [#x2070-#x218F] | [#x2C00-#x2FEF] |\n   *     [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]\n   * ```\n   *\n   * [custom element name]: https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name\n   * NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do\n   * since other tag-based engines like React allow it\n   */\n  private parseTag(\n    nestingLevel: number,\n    parentArgType: ArgType\n  ): Result<TagElement | LiteralElement, ParserError> {\n    const startPosition = this.clonePosition()\n    this.bump() // `<`\n\n    const tagName = this.parseTagName()\n    this.bumpSpace()\n\n    if (this.bumpIf('/>')) {\n      // Self closing tag\n      return {\n        val: {\n          type: TYPE.literal,\n          value: `<${tagName}/>`,\n          location: createLocation(startPosition, this.clonePosition()),\n        } as LiteralElement,\n        err: null,\n      }\n    } else if (this.bumpIf('>')) {\n      const childrenResult = this.parseMessage(\n        nestingLevel + 1,\n        parentArgType,\n        true\n      )\n      if (childrenResult.err) {\n        return childrenResult\n      }\n      const children = childrenResult.val\n\n      // Expecting a close tag\n      const endTagStartPosition = this.clonePosition()\n\n      if (this.bumpIf('</')) {\n        if (this.isEOF() || !_isAlpha(this.char())) {\n          return this.error(\n            ErrorKind.INVALID_TAG,\n            createLocation(endTagStartPosition, this.clonePosition())\n          )\n        }\n\n        const closingTagNameStartPosition = this.clonePosition()\n        const closingTagName = this.parseTagName()\n        if (tagName !== closingTagName) {\n          return this.error(\n            ErrorKind.UNMATCHED_CLOSING_TAG,\n            createLocation(closingTagNameStartPosition, this.clonePosition())\n          )\n        }\n\n        this.bumpSpace()\n        if (!this.bumpIf('>')) {\n          return this.error(\n            ErrorKind.INVALID_TAG,\n            createLocation(endTagStartPosition, this.clonePosition())\n          )\n        }\n\n        return {\n          val: {\n            type: TYPE.tag,\n            value: tagName,\n            children,\n            location: createLocation(startPosition, this.clonePosition()),\n          },\n          err: null,\n        }\n      } else {\n        return this.error(\n          ErrorKind.UNCLOSED_TAG,\n          createLocation(startPosition, this.clonePosition())\n        )\n      }\n    } else {\n      return this.error(\n        ErrorKind.INVALID_TAG,\n        createLocation(startPosition, this.clonePosition())\n      )\n    }\n  }\n\n  /**\n   * This method assumes that the caller has peeked ahead for the first tag character.\n   */\n  private parseTagName(): string {\n    const startOffset = this.offset()\n\n    this.bump() // the first tag name character\n    while (!this.isEOF() && _isPotentialElementNameChar(this.char())) {\n      this.bump()\n    }\n    return this.message.slice(startOffset, this.offset())\n  }\n\n  private parseLiteral(\n    nestingLevel: number,\n    parentArgType: ArgType\n  ): Result<LiteralElement, ParserError> {\n    const start = this.clonePosition()\n\n    let value = ''\n    while (true) {\n      const parseQuoteResult = this.tryParseQuote(parentArgType)\n      if (parseQuoteResult) {\n        value += parseQuoteResult\n        continue\n      }\n\n      const parseUnquotedResult = this.tryParseUnquoted(\n        nestingLevel,\n        parentArgType\n      )\n      if (parseUnquotedResult) {\n        value += parseUnquotedResult\n        continue\n      }\n\n      const parseLeftAngleResult = this.tryParseLeftAngleBracket()\n      if (parseLeftAngleResult) {\n        value += parseLeftAngleResult\n        continue\n      }\n\n      break\n    }\n\n    const location = createLocation(start, this.clonePosition())\n    return {\n      val: {type: TYPE.literal, value, location},\n      err: null,\n    }\n  }\n\n  tryParseLeftAngleBracket(): string | null {\n    if (\n      !this.isEOF() &&\n      this.char() === 60 /* `<` */ &&\n      (this.ignoreTag ||\n        // If at the opening tag or closing tag position, bail.\n        !_isAlphaOrSlash(this.peek() || 0))\n    ) {\n      this.bump() // `<`\n      return '<'\n    }\n    return null\n  }\n\n  /**\n   * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes\n   * a character that requires quoting (that is, \"only where needed\"), and works the same in\n   * nested messages as on the top level of the pattern. The new behavior is otherwise compatible.\n   */\n  private tryParseQuote(parentArgType: ArgType): string | null {\n    if (this.isEOF() || this.char() !== 39 /* `'` */) {\n      return null\n    }\n\n    // Parse escaped char following the apostrophe, or early return if there is no escaped char.\n    // Check if is valid escaped character\n    switch (this.peek()) {\n      case 39 /* `'` */:\n        // double quote, should return as a single quote.\n        this.bump()\n        this.bump()\n        return \"'\"\n      // '{', '<', '>', '}'\n      case 123:\n      case 60:\n      case 62:\n      case 125:\n        break\n      case 35: // '#'\n        if (parentArgType === 'plural' || parentArgType === 'selectordinal') {\n          break\n        }\n        return null\n      default:\n        return null\n    }\n\n    this.bump() // apostrophe\n    const codePoints = [this.char()] // escaped char\n    this.bump()\n\n    // read chars until the optional closing apostrophe is found\n    while (!this.isEOF()) {\n      const ch = this.char()\n      if (ch === 39 /* `'` */) {\n        if (this.peek() === 39 /* `'` */) {\n          codePoints.push(39)\n          // Bump one more time because we need to skip 2 characters.\n          this.bump()\n        } else {\n          // Optional closing apostrophe.\n          this.bump()\n          break\n        }\n      } else {\n        codePoints.push(ch)\n      }\n      this.bump()\n    }\n\n    return String.fromCodePoint(...codePoints)\n  }\n\n  private tryParseUnquoted(\n    nestingLevel: number,\n    parentArgType: ArgType\n  ): string | null {\n    if (this.isEOF()) {\n      return null\n    }\n    const ch = this.char()\n\n    if (\n      ch === 60 /* `<` */ ||\n      ch === 123 /* `{` */ ||\n      (ch === 35 /* `#` */ &&\n        (parentArgType === 'plural' || parentArgType === 'selectordinal')) ||\n      (ch === 125 /* `}` */ && nestingLevel > 0)\n    ) {\n      return null\n    } else {\n      this.bump()\n      return String.fromCodePoint(ch)\n    }\n  }\n\n  private parseArgument(\n    nestingLevel: number,\n    expectingCloseTag: boolean\n  ): Result<MessageFormatElement, ParserError> {\n    const openingBracePosition = this.clonePosition()\n    this.bump() // `{`\n\n    this.bumpSpace()\n\n    if (this.isEOF()) {\n      return this.error(\n        ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,\n        createLocation(openingBracePosition, this.clonePosition())\n      )\n    }\n\n    if (this.char() === 125 /* `}` */) {\n      this.bump()\n      return this.error(\n        ErrorKind.EMPTY_ARGUMENT,\n        createLocation(openingBracePosition, this.clonePosition())\n      )\n    }\n\n    // argument name\n    let value = this.parseIdentifierIfPossible().value\n    if (!value) {\n      return this.error(\n        ErrorKind.MALFORMED_ARGUMENT,\n        createLocation(openingBracePosition, this.clonePosition())\n      )\n    }\n\n    this.bumpSpace()\n\n    if (this.isEOF()) {\n      return this.error(\n        ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,\n        createLocation(openingBracePosition, this.clonePosition())\n      )\n    }\n\n    switch (this.char()) {\n      // Simple argument: `{name}`\n      case 125 /* `}` */: {\n        this.bump() // `}`\n        return {\n          val: {\n            type: TYPE.argument,\n            // value does not include the opening and closing braces.\n            value,\n            location: createLocation(\n              openingBracePosition,\n              this.clonePosition()\n            ),\n          },\n          err: null,\n        }\n      }\n      // Argument with options: `{name, format, ...}`\n      case 44 /* `,` */: {\n        this.bump() // `,`\n        this.bumpSpace()\n\n        if (this.isEOF()) {\n          return this.error(\n            ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,\n            createLocation(openingBracePosition, this.clonePosition())\n          )\n        }\n\n        return this.parseArgumentOptions(\n          nestingLevel,\n          expectingCloseTag,\n          value,\n          openingBracePosition\n        )\n      }\n      default:\n        return this.error(\n          ErrorKind.MALFORMED_ARGUMENT,\n          createLocation(openingBracePosition, this.clonePosition())\n        )\n    }\n  }\n\n  /**\n   * Advance the parser until the end of the identifier, if it is currently on\n   * an identifier character. Return an empty string otherwise.\n   */\n  private parseIdentifierIfPossible(): {value: string; location: Location} {\n    const startingPosition = this.clonePosition()\n\n    const startOffset = this.offset()\n    const value = matchIdentifierAtIndex(this.message, startOffset)\n    const endOffset = startOffset + value.length\n\n    this.bumpTo(endOffset)\n\n    const endPosition = this.clonePosition()\n    const location = createLocation(startingPosition, endPosition)\n\n    return {value, location}\n  }\n\n  private parseArgumentOptions(\n    nestingLevel: number,\n    expectingCloseTag: boolean,\n    value: string,\n    openingBracePosition: Position\n  ): Result<MessageFormatElement, ParserError> {\n    // Parse this range:\n    // {name, type, style}\n    //        ^---^\n    let typeStartPosition = this.clonePosition()\n    let argType = this.parseIdentifierIfPossible().value\n    let typeEndPosition = this.clonePosition()\n\n    switch (argType) {\n      case '':\n        // Expecting a style string number, date, time, plural, selectordinal, or select.\n        return this.error(\n          ErrorKind.EXPECT_ARGUMENT_TYPE,\n          createLocation(typeStartPosition, typeEndPosition)\n        )\n      case 'number':\n      case 'date':\n      case 'time': {\n        // Parse this range:\n        // {name, number, style}\n        //              ^-------^\n        this.bumpSpace()\n        let styleAndLocation: {\n          style: string\n          styleLocation: Location\n        } | null = null\n\n        if (this.bumpIf(',')) {\n          this.bumpSpace()\n\n          const styleStartPosition = this.clonePosition()\n          const result = this.parseSimpleArgStyleIfPossible()\n          if (result.err) {\n            return result\n          }\n          const style = trimEnd(result.val)\n\n          if (style.length === 0) {\n            return this.error(\n              ErrorKind.EXPECT_ARGUMENT_STYLE,\n              createLocation(this.clonePosition(), this.clonePosition())\n            )\n          }\n\n          const styleLocation = createLocation(\n            styleStartPosition,\n            this.clonePosition()\n          )\n          styleAndLocation = {style, styleLocation}\n        }\n\n        const argCloseResult = this.tryParseArgumentClose(openingBracePosition)\n        if (argCloseResult.err) {\n          return argCloseResult\n        }\n\n        const location = createLocation(\n          openingBracePosition,\n          this.clonePosition()\n        )\n\n        // Extract style or skeleton\n        if (styleAndLocation && styleAndLocation.style.startsWith('::')) {\n          // Skeleton starts with `::`.\n          let skeleton = trimStart(styleAndLocation.style.slice(2))\n\n          if (argType === 'number') {\n            const result = this.parseNumberSkeletonFromString(\n              skeleton,\n              styleAndLocation.styleLocation\n            )\n            if (result.err) {\n              return result\n            }\n            return {\n              val: {type: TYPE.number, value, location, style: result.val},\n              err: null,\n            }\n          } else {\n            if (skeleton.length === 0) {\n              return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON, location)\n            }\n\n            let dateTimePattern = skeleton\n\n            // Get \"best match\" pattern only if locale is passed, if not, let it\n            // pass as-is where `parseDateTimeSkeleton()` will throw an error\n            // for unsupported patterns.\n            if (this.locale) {\n              dateTimePattern = getBestPattern(skeleton, this.locale)\n            }\n\n            const style: DateTimeSkeleton = {\n              type: SKELETON_TYPE.dateTime,\n              pattern: dateTimePattern,\n              location: styleAndLocation.styleLocation,\n              parsedOptions: this.shouldParseSkeletons\n                ? parseDateTimeSkeleton(dateTimePattern)\n                : {},\n            }\n\n            const type = argType === 'date' ? TYPE.date : TYPE.time\n            return {\n              val: {type, value, location, style},\n              err: null,\n            }\n          }\n        }\n\n        // Regular style or no style.\n        return {\n          val: {\n            type:\n              argType === 'number'\n                ? TYPE.number\n                : argType === 'date'\n                  ? TYPE.date\n                  : TYPE.time,\n            value,\n            location,\n            style: styleAndLocation?.style ?? null,\n          },\n          err: null,\n        }\n      }\n      case 'plural':\n      case 'selectordinal':\n      case 'select': {\n        // Parse this range:\n        // {name, plural, options}\n        //              ^---------^\n        const typeEndPosition = this.clonePosition()\n        this.bumpSpace()\n\n        if (!this.bumpIf(',')) {\n          return this.error(\n            ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,\n            createLocation(typeEndPosition, {...typeEndPosition})\n          )\n        }\n        this.bumpSpace()\n\n        // Parse offset:\n        // {name, plural, offset:1, options}\n        //                ^-----^\n        //\n        // or the first option:\n        //\n        // {name, plural, one {...} other {...}}\n        //                ^--^\n        let identifierAndLocation = this.parseIdentifierIfPossible()\n\n        let pluralOffset = 0\n        if (argType !== 'select' && identifierAndLocation.value === 'offset') {\n          if (!this.bumpIf(':')) {\n            return this.error(\n              ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,\n              createLocation(this.clonePosition(), this.clonePosition())\n            )\n          }\n          this.bumpSpace()\n          const result = this.tryParseDecimalInteger(\n            ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,\n            ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE\n          )\n          if (result.err) {\n            return result\n          }\n\n          // Parse another identifier for option parsing\n          this.bumpSpace()\n          identifierAndLocation = this.parseIdentifierIfPossible()\n\n          pluralOffset = result.val\n        }\n\n        const optionsResult = this.tryParsePluralOrSelectOptions(\n          nestingLevel,\n          argType,\n          expectingCloseTag,\n          identifierAndLocation\n        )\n        if (optionsResult.err) {\n          return optionsResult\n        }\n\n        const argCloseResult = this.tryParseArgumentClose(openingBracePosition)\n        if (argCloseResult.err) {\n          return argCloseResult\n        }\n\n        const location = createLocation(\n          openingBracePosition,\n          this.clonePosition()\n        )\n\n        if (argType === 'select') {\n          return {\n            val: {\n              type: TYPE.select,\n              value,\n              options: fromEntries(optionsResult.val),\n              location,\n            },\n            err: null,\n          }\n        } else {\n          return {\n            val: {\n              type: TYPE.plural,\n              value,\n              options: fromEntries(optionsResult.val),\n              offset: pluralOffset,\n              pluralType: argType === 'plural' ? 'cardinal' : 'ordinal',\n              location,\n            },\n            err: null,\n          }\n        }\n      }\n      default:\n        return this.error(\n          ErrorKind.INVALID_ARGUMENT_TYPE,\n          createLocation(typeStartPosition, typeEndPosition)\n        )\n    }\n  }\n\n  private tryParseArgumentClose(\n    openingBracePosition: Position\n  ): Result<true, ParserError> {\n    // Parse: {value, number, ::currency/GBP }\n    //\n    if (this.isEOF() || this.char() !== 125 /* `}` */) {\n      return this.error(\n        ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,\n        createLocation(openingBracePosition, this.clonePosition())\n      )\n    }\n    this.bump() // `}`\n    return {val: true, err: null}\n  }\n\n  /**\n   * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659\n   */\n  private parseSimpleArgStyleIfPossible(): Result<string, ParserError> {\n    let nestedBraces = 0\n\n    const startPosition = this.clonePosition()\n    while (!this.isEOF()) {\n      const ch = this.char()\n      switch (ch) {\n        case 39 /* `'` */: {\n          // Treat apostrophe as quoting but include it in the style part.\n          // Find the end of the quoted literal text.\n          this.bump()\n          let apostrophePosition = this.clonePosition()\n\n          if (!this.bumpUntil(\"'\")) {\n            return this.error(\n              ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,\n              createLocation(apostrophePosition, this.clonePosition())\n            )\n          }\n          this.bump()\n          break\n        }\n        case 123 /* `{` */: {\n          nestedBraces += 1\n          this.bump()\n          break\n        }\n        case 125 /* `}` */: {\n          if (nestedBraces > 0) {\n            nestedBraces -= 1\n          } else {\n            return {\n              val: this.message.slice(startPosition.offset, this.offset()),\n              err: null,\n            }\n          }\n          break\n        }\n        default:\n          this.bump()\n          break\n      }\n    }\n    return {\n      val: this.message.slice(startPosition.offset, this.offset()),\n      err: null,\n    }\n  }\n\n  private parseNumberSkeletonFromString(\n    skeleton: string,\n    location: Location\n  ): Result<NumberSkeleton, ParserError> {\n    let tokens: NumberSkeletonToken[] = []\n    try {\n      tokens = parseNumberSkeletonFromString(skeleton)\n    } catch {\n      return this.error(ErrorKind.INVALID_NUMBER_SKELETON, location)\n    }\n\n    return {\n      val: {\n        type: SKELETON_TYPE.number,\n        tokens,\n        location,\n        parsedOptions: this.shouldParseSkeletons\n          ? parseNumberSkeleton(tokens)\n          : {},\n      },\n      err: null,\n    }\n  }\n\n  /**\n   * @param nesting_level The current nesting level of messages.\n   *     This can be positive when parsing message fragment in select or plural argument options.\n   * @param parent_arg_type The parent argument's type.\n   * @param parsed_first_identifier If provided, this is the first identifier-like selector of\n   *     the argument. It is a by-product of a previous parsing attempt.\n   * @param expecting_close_tag If true, this message is directly or indirectly nested inside\n   *     between a pair of opening and closing tags. The nested message will not parse beyond\n   *     the closing tag boundary.\n   */\n  private tryParsePluralOrSelectOptions(\n    nestingLevel: number,\n    parentArgType: ArgType,\n    expectCloseTag: boolean,\n    parsedFirstIdentifier: {value: string; location: Location}\n  ): Result<[string, PluralOrSelectOption][], ParserError> {\n    let hasOtherClause = false\n    const options: [string, PluralOrSelectOption][] = []\n    const parsedSelectors = new Set<string>()\n    let {value: selector, location: selectorLocation} = parsedFirstIdentifier\n\n    // Parse:\n    // one {one apple}\n    // ^--^\n    while (true) {\n      if (selector.length === 0) {\n        const startPosition = this.clonePosition()\n        if (parentArgType !== 'select' && this.bumpIf('=')) {\n          // Try parse `={number}` selector\n          const result = this.tryParseDecimalInteger(\n            ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,\n            ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR\n          )\n          if (result.err) {\n            return result\n          }\n          selectorLocation = createLocation(startPosition, this.clonePosition())\n          selector = this.message.slice(startPosition.offset, this.offset())\n        } else {\n          break\n        }\n      }\n\n      // Duplicate selector clauses\n      if (parsedSelectors.has(selector)) {\n        return this.error(\n          parentArgType === 'select'\n            ? ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR\n            : ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,\n          selectorLocation\n        )\n      }\n\n      if (selector === 'other') {\n        hasOtherClause = true\n      }\n\n      // Parse:\n      // one {one apple}\n      //     ^----------^\n      this.bumpSpace()\n      const openingBracePosition = this.clonePosition()\n      if (!this.bumpIf('{')) {\n        return this.error(\n          parentArgType === 'select'\n            ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT\n            : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,\n          createLocation(this.clonePosition(), this.clonePosition())\n        )\n      }\n\n      const fragmentResult = this.parseMessage(\n        nestingLevel + 1,\n        parentArgType,\n        expectCloseTag\n      )\n      if (fragmentResult.err) {\n        return fragmentResult\n      }\n      const argCloseResult = this.tryParseArgumentClose(openingBracePosition)\n      if (argCloseResult.err) {\n        return argCloseResult\n      }\n\n      options.push([\n        selector,\n        {\n          value: fragmentResult.val,\n          location: createLocation(openingBracePosition, this.clonePosition()),\n        },\n      ])\n      // Keep track of the existing selectors\n      parsedSelectors.add(selector)\n\n      // Prep next selector clause.\n      this.bumpSpace()\n      ;({value: selector, location: selectorLocation} =\n        this.parseIdentifierIfPossible())\n    }\n\n    if (options.length === 0) {\n      return this.error(\n        parentArgType === 'select'\n          ? ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR\n          : ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,\n        createLocation(this.clonePosition(), this.clonePosition())\n      )\n    }\n\n    if (this.requiresOtherClause && !hasOtherClause) {\n      return this.error(\n        ErrorKind.MISSING_OTHER_CLAUSE,\n        createLocation(this.clonePosition(), this.clonePosition())\n      )\n    }\n\n    return {val: options, err: null}\n  }\n\n  private tryParseDecimalInteger(\n    expectNumberError: ErrorKind,\n    invalidNumberError: ErrorKind\n  ): Result<number, ParserError> {\n    let sign = 1\n    const startingPosition = this.clonePosition()\n\n    if (this.bumpIf('+')) {\n    } else if (this.bumpIf('-')) {\n      sign = -1\n    }\n\n    let hasDigits = false\n    let decimal = 0\n    while (!this.isEOF()) {\n      const ch = this.char()\n      if (ch >= 48 /* `0` */ && ch <= 57 /* `9` */) {\n        hasDigits = true\n        decimal = decimal * 10 + (ch - 48)\n        this.bump()\n      } else {\n        break\n      }\n    }\n\n    const location = createLocation(startingPosition, this.clonePosition())\n\n    if (!hasDigits) {\n      return this.error(expectNumberError, location)\n    }\n\n    decimal *= sign\n    if (!Number.isSafeInteger(decimal)) {\n      return this.error(invalidNumberError, location)\n    }\n\n    return {val: decimal, err: null}\n  }\n\n  private offset(): number {\n    return this.position.offset\n  }\n\n  private isEOF(): boolean {\n    return this.offset() === this.message.length\n  }\n\n  private clonePosition(): Position {\n    // This is much faster than `Object.assign` or spread.\n    return {\n      offset: this.position.offset,\n      line: this.position.line,\n      column: this.position.column,\n    }\n  }\n\n  /**\n   * Return the code point at the current position of the parser.\n   * Throws if the index is out of bound.\n   */\n  private char(): number {\n    const offset = this.position.offset\n    if (offset >= this.message.length) {\n      throw Error('out of bound')\n    }\n    const code = this.message.codePointAt(offset)\n    if (code === undefined) {\n      throw Error(`Offset ${offset} is at invalid UTF-16 code unit boundary`)\n    }\n    return code\n  }\n\n  private error(\n    kind: ErrorKind,\n    location: Location\n  ): Result<never, ParserError> {\n    return {\n      val: null,\n      err: {\n        kind,\n        message: this.message,\n        location,\n      },\n    }\n  }\n\n  /** Bump the parser to the next UTF-16 code unit. */\n  private bump(): void {\n    if (this.isEOF()) {\n      return\n    }\n    const code = this.char()\n    if (code === 10 /* '\\n' */) {\n      this.position.line += 1\n      this.position.column = 1\n      this.position.offset += 1\n    } else {\n      this.position.column += 1\n      // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.\n      this.position.offset += code < 0x10000 ? 1 : 2\n    }\n  }\n\n  /**\n   * If the substring starting at the current position of the parser has\n   * the given prefix, then bump the parser to the character immediately\n   * following the prefix and return true. Otherwise, don't bump the parser\n   * and return false.\n   */\n  private bumpIf(prefix: string): boolean {\n    const offset = this.offset()\n    if (this.message.slice(offset, offset + prefix.length) === prefix) {\n      for (let i = 0; i < prefix.length; i++) {\n        this.bump()\n      }\n      return true\n    }\n    return false\n  }\n\n  /**\n   * Bump the parser until the pattern character is found and return `true`.\n   * Otherwise bump to the end of the file and return `false`.\n   */\n  private bumpUntil(pattern: string): boolean {\n    const currentOffset = this.offset()\n    const index = this.message.indexOf(pattern, currentOffset)\n    if (index >= 0) {\n      this.bumpTo(index)\n      return true\n    } else {\n      this.bumpTo(this.message.length)\n      return false\n    }\n  }\n\n  /**\n   * Bump the parser to the target offset.\n   * If target offset is beyond the end of the input, bump the parser to the end of the input.\n   */\n  private bumpTo(targetOffset: number) {\n    if (this.offset() > targetOffset) {\n      throw Error(\n        `targetOffset ${targetOffset} must be greater than or equal to the current offset ${this.offset()}`\n      )\n    }\n\n    targetOffset = Math.min(targetOffset, this.message.length)\n    while (true) {\n      const offset = this.offset()\n      if (offset === targetOffset) {\n        break\n      }\n      if (offset > targetOffset) {\n        throw Error(\n          `targetOffset ${targetOffset} is at invalid UTF-16 code unit boundary`\n        )\n      }\n\n      this.bump()\n      if (this.isEOF()) {\n        break\n      }\n    }\n  }\n\n  /** advance the parser through all whitespace to the next non-whitespace code unit. */\n  private bumpSpace() {\n    while (!this.isEOF() && _isWhiteSpace(this.char())) {\n      this.bump()\n    }\n  }\n\n  /**\n   * Peek at the *next* Unicode codepoint in the input without advancing the parser.\n   * If the input has been exhausted, then this returns null.\n   */\n  private peek(): number | null {\n    if (this.isEOF()) {\n      return null\n    }\n    const code = this.char()\n    const offset = this.offset()\n    const nextCode = this.message.charCodeAt(offset + (code >= 0x10000 ? 2 : 1))\n    return nextCode ?? null\n  }\n}\n\n/**\n * This check if codepoint is alphabet (lower & uppercase)\n * @param codepoint\n * @returns\n */\nfunction _isAlpha(codepoint: number): boolean {\n  return (\n    (codepoint >= 97 && codepoint <= 122) ||\n    (codepoint >= 65 && codepoint <= 90)\n  )\n}\n\nfunction _isAlphaOrSlash(codepoint: number): boolean {\n  return _isAlpha(codepoint) || codepoint === 47 /* '/' */\n}\n\n/** See `parseTag` function docs. */\nfunction _isPotentialElementNameChar(c: number): boolean {\n  return (\n    c === 45 /* '-' */ ||\n    c === 46 /* '.' */ ||\n    (c >= 48 && c <= 57) /* 0..9 */ ||\n    c === 95 /* '_' */ ||\n    (c >= 97 && c <= 122) /** a..z */ ||\n    (c >= 65 && c <= 90) /* A..Z */ ||\n    c == 0xb7 ||\n    (c >= 0xc0 && c <= 0xd6) ||\n    (c >= 0xd8 && c <= 0xf6) ||\n    (c >= 0xf8 && c <= 0x37d) ||\n    (c >= 0x37f && c <= 0x1fff) ||\n    (c >= 0x200c && c <= 0x200d) ||\n    (c >= 0x203f && c <= 0x2040) ||\n    (c >= 0x2070 && c <= 0x218f) ||\n    (c >= 0x2c00 && c <= 0x2fef) ||\n    (c >= 0x3001 && c <= 0xd7ff) ||\n    (c >= 0xf900 && c <= 0xfdcf) ||\n    (c >= 0xfdf0 && c <= 0xfffd) ||\n    (c >= 0x10000 && c <= 0xeffff)\n  )\n}\n\n/**\n * Code point equivalent of regex `\\p{White_Space}`.\n * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt\n */\nfunction _isWhiteSpace(c: number) {\n  return (\n    (c >= 0x0009 && c <= 0x000d) ||\n    c === 0x0020 ||\n    c === 0x0085 ||\n    (c >= 0x200e && c <= 0x200f) ||\n    c === 0x2028 ||\n    c === 0x2029\n  )\n}\n","import {type NumberFormatOptions} from '#packages/ecma402-abstract/types/number.js'\nimport {\n  type ExtendedNumberFormatOptions,\n  isArgumentElement,\n  isDateElement,\n  isDateTimeSkeleton,\n  isLiteralElement,\n  isNumberElement,\n  isNumberSkeleton,\n  isPluralElement,\n  isPoundElement,\n  isSelectElement,\n  isTagElement,\n  isTimeElement,\n  type MessageFormatElement,\n} from '@formatjs/icu-messageformat-parser'\nimport {\n  ErrorCode,\n  FormatError,\n  InvalidValueError,\n  InvalidValueTypeError,\n  MissingValueError,\n} from '#packages/intl-messageformat/error.js'\n\ndeclare global {\n  namespace FormatjsIntl {\n    interface Message {}\n    interface IntlConfig {}\n    interface Formats {}\n  }\n}\n\ntype Format<Source = string> = Source extends keyof FormatjsIntl.Formats\n  ? FormatjsIntl.Formats[Source]\n  : string\n\nexport interface Formats {\n  number: Record<Format<'number'>, NumberFormatOptions>\n  date: Record<Format<'date'>, Intl.DateTimeFormatOptions>\n  time: Record<Format<'time'>, Intl.DateTimeFormatOptions>\n}\n\nexport interface FormatterCache {\n  number: Record<string, NumberFormatOptions>\n  dateTime: Record<string, Intl.DateTimeFormat>\n  pluralRules: Record<string, Intl.PluralRules>\n}\n\nexport interface Formatters {\n  getNumberFormat(\n    locals?: string | string[],\n    opts?: NumberFormatOptions\n  ): Intl.NumberFormat\n  getDateTimeFormat(\n    ...args: ConstructorParameters<typeof Intl.DateTimeFormat>\n  ): Intl.DateTimeFormat\n  getPluralRules(\n    ...args: ConstructorParameters<typeof Intl.PluralRules>\n  ): Intl.PluralRules\n}\n\nexport enum PART_TYPE {\n  literal,\n  object,\n}\n\nexport interface LiteralPart {\n  type: PART_TYPE.literal\n  value: string\n}\n\nexport interface ObjectPart<T = any> {\n  type: PART_TYPE.object\n  value: T\n}\n\nexport type MessageFormatPart<T> = LiteralPart | ObjectPart<T>\n\nexport type PrimitiveType =\n  | string\n  | number\n  | bigint\n  | boolean\n  | null\n  | undefined\n  | Date\n\nfunction mergeLiteral<T>(\n  parts: MessageFormatPart<T>[]\n): MessageFormatPart<T>[] {\n  if (parts.length < 2) {\n    return parts\n  }\n  return parts.reduce((all, part) => {\n    const lastPart = all[all.length - 1]\n    if (\n      !lastPart ||\n      lastPart.type !== PART_TYPE.literal ||\n      part.type !== PART_TYPE.literal\n    ) {\n      all.push(part)\n    } else {\n      lastPart.value += part.value\n    }\n    return all\n  }, [] as MessageFormatPart<T>[])\n}\n\nexport function isFormatXMLElementFn<T>(\n  el: PrimitiveType | T | FormatXMLElementFn<T>\n): el is FormatXMLElementFn<T> {\n  return typeof el === 'function'\n}\n\n// TODO(skeleton): add skeleton support\nexport function formatToParts<T>(\n  els: MessageFormatElement[],\n  locales: string | string[],\n  formatters: Formatters,\n  formats: Formats,\n  values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T>>,\n  currentPluralValue?: number,\n  // For debugging\n  originalMessage?: string\n): MessageFormatPart<T>[] {\n  // Hot path for straight simple msg translations\n  if (els.length === 1 && isLiteralElement(els[0])) {\n    return [\n      {\n        type: PART_TYPE.literal,\n        value: els[0].value,\n      },\n    ]\n  }\n  const result: MessageFormatPart<T>[] = []\n  for (const el of els) {\n    // Exit early for string parts.\n    if (isLiteralElement(el)) {\n      result.push({\n        type: PART_TYPE.literal,\n        value: el.value,\n      })\n      continue\n    }\n    // TODO: should this part be literal type?\n    // Replace `#` in plural rules with the actual numeric value.\n    if (isPoundElement(el)) {\n      if (typeof currentPluralValue === 'number') {\n        result.push({\n          type: PART_TYPE.literal,\n          value: formatters.getNumberFormat(locales).format(currentPluralValue),\n        })\n      }\n      continue\n    }\n\n    const {value: varName} = el\n\n    // Enforce that all required values are provided by the caller.\n    if (!(values && varName in values)) {\n      throw new MissingValueError(varName, originalMessage)\n    }\n\n    let value = values[varName]\n    if (isArgumentElement(el)) {\n      if (\n        !value ||\n        typeof value === 'string' ||\n        typeof value === 'number' ||\n        typeof value === 'bigint'\n      ) {\n        value =\n          typeof value === 'string' ||\n          typeof value === 'number' ||\n          typeof value === 'bigint'\n            ? String(value)\n            : ''\n      }\n      result.push({\n        type: typeof value === 'string' ? PART_TYPE.literal : PART_TYPE.object,\n        value,\n      } as ObjectPart<T>)\n      continue\n    }\n\n    // Recursively format plural and select parts' option — which can be a\n    // nested pattern structure. The choosing of the option to use is\n    // abstracted-by and delegated-to the part helper object.\n    if (isDateElement(el)) {\n      const style =\n        typeof el.style === 'string'\n          ? formats.date[el.style]\n          : isDateTimeSkeleton(el.style)\n            ? el.style.parsedOptions\n            : undefined\n      result.push({\n        type: PART_TYPE.literal,\n        value: formatters\n          .getDateTimeFormat(locales, style)\n          .format(value as number),\n      })\n      continue\n    }\n    if (isTimeElement(el)) {\n      const style =\n        typeof el.style === 'string'\n          ? formats.time[el.style]\n          : isDateTimeSkeleton(el.style)\n            ? el.style.parsedOptions\n            : formats.time.medium\n      result.push({\n        type: PART_TYPE.literal,\n        value: formatters\n          .getDateTimeFormat(locales, style)\n          .format(value as number),\n      })\n      continue\n    }\n    if (isNumberElement(el)) {\n      const style =\n        typeof el.style === 'string'\n          ? formats.number[el.style]\n          : isNumberSkeleton(el.style)\n            ? el.style.parsedOptions\n            : undefined\n\n      if (style && (style as ExtendedNumberFormatOptions).scale) {\n        const scale = (style as ExtendedNumberFormatOptions).scale || 1\n        // Handle bigint scale multiplication\n        // BigInt can only be multiplied by BigInt\n        if (typeof value === 'bigint') {\n          // Check if scale is a safe integer that can be converted to BigInt\n          if (!Number.isInteger(scale)) {\n            throw new TypeError(\n              `Cannot apply fractional scale ${scale} to bigint value. Scale must be an integer when formatting bigint.`\n            )\n          }\n          value = value * BigInt(scale)\n        } else {\n          value = (value as number) * scale\n        }\n      }\n      result.push({\n        type: PART_TYPE.literal,\n        value: formatters\n          .getNumberFormat(locales, style)\n          .format(value as number | bigint),\n      })\n      continue\n    }\n    if (isTagElement(el)) {\n      const {children, value} = el\n      const formatFn = values[value]\n      if (!isFormatXMLElementFn<T>(formatFn)) {\n        throw new InvalidValueTypeError(value, 'function', originalMessage)\n      }\n      const parts = formatToParts<T>(\n        children,\n        locales,\n        formatters,\n        formats,\n        values,\n        currentPluralValue\n      )\n      let chunks = formatFn(parts.map(p => p.value))\n      if (!Array.isArray(chunks)) {\n        chunks = [chunks]\n      }\n      result.push(\n        ...chunks.map((c): MessageFormatPart<T> => {\n          return {\n            type: typeof c === 'string' ? PART_TYPE.literal : PART_TYPE.object,\n            value: c,\n          } as MessageFormatPart<T>\n        })\n      )\n    }\n    if (isSelectElement(el)) {\n      // GH #4490: Use hasOwnProperty to avoid prototype chain issues with keys like \"constructor\"\n      const key = value as string\n      const opt =\n        (Object.prototype.hasOwnProperty.call(el.options, key)\n          ? el.options[key]\n          : undefined) || el.options.other\n      if (!opt) {\n        throw new InvalidValueError(\n          el.value,\n          value,\n          Object.keys(el.options),\n          originalMessage\n        )\n      }\n      result.push(\n        ...formatToParts(opt.value, locales, formatters, formats, values)\n      )\n      continue\n    }\n    if (isPluralElement(el)) {\n      // GH #4490: Use hasOwnProperty to avoid prototype chain issues\n      const exactKey = `=${value}`\n      let opt = Object.prototype.hasOwnProperty.call(el.options, exactKey)\n        ? el.options[exactKey]\n        : undefined\n      if (!opt) {\n        if (!Intl.PluralRules) {\n          throw new FormatError(\n            `Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n`,\n            ErrorCode.MISSING_INTL_API,\n            originalMessage\n          )\n        }\n        // Convert bigint to number for PluralRules (which only accepts number)\n        const numericValue =\n          typeof value === 'bigint' ? Number(value) : (value as number)\n        const rule = formatters\n          .getPluralRules(locales, {type: el.pluralType})\n          .select(numericValue - (el.offset || 0))\n        opt =\n          (Object.prototype.hasOwnProperty.call(el.options, rule)\n            ? el.options[rule]\n            : undefined) || el.options.other\n      }\n      if (!opt) {\n        throw new InvalidValueError(\n          el.value,\n          value,\n          Object.keys(el.options),\n          originalMessage\n        )\n      }\n      // Convert bigint to number for currentPluralValue\n      const numericValue =\n        typeof value === 'bigint' ? Number(value) : (value as number)\n      result.push(\n        ...formatToParts(\n          opt.value,\n          locales,\n          formatters,\n          formats,\n          values,\n          numericValue - (el.offset || 0)\n        )\n      )\n      continue\n    }\n  }\n  return mergeLiteral(result)\n}\n\nexport type FormatXMLElementFn<T, R = string | T | (string | T)[]> = (\n  parts: Array<string | T>\n) => R\n","/*\nCopyright (c) 2014, Yahoo! Inc. All rights reserved.\nCopyrights licensed under the New BSD License.\nSee the accompanying LICENSE file for terms.\n*/\n\nimport {type Cache, memoize, strategies} from '@formatjs/fast-memoize'\nimport {\n  type MessageFormatElement,\n  parse,\n  type ParserOptions,\n} from '@formatjs/icu-messageformat-parser'\nimport {\n  type Formats,\n  type FormatterCache,\n  type Formatters,\n  formatToParts,\n  type FormatXMLElementFn,\n  type MessageFormatPart,\n  PART_TYPE,\n  type PrimitiveType,\n} from '#packages/intl-messageformat/formatters.js'\n\nimport type {\n  MessageValues,\n  MessageFormatFunction,\n  MessageFormatToPartsFunction,\n  UntypedMessageFormatToParts,\n} from '#packages/intl-messageformat/message-types.js'\n\n// -- MessageFormat --------------------------------------------------------\n\nfunction mergeConfig(c1: Record<string, object>, c2?: Record<string, object>) {\n  if (!c2) {\n    return c1\n  }\n  return {\n    ...c1,\n    ...c2,\n    ...Object.keys(c1).reduce((all: Record<string, object>, k) => {\n      all[k] = {\n        ...c1[k],\n        ...c2[k],\n      }\n      return all\n    }, {}),\n  }\n}\n\nfunction mergeConfigs(\n  defaultConfig: Formats,\n  configs?: Partial<Formats>\n): Formats {\n  if (!configs) {\n    return defaultConfig\n  }\n\n  return (Object.keys(defaultConfig) as Array<keyof Formats>).reduce(\n    (all: Formats, k: keyof Formats) => {\n      all[k] = mergeConfig(defaultConfig[k], configs[k])\n      return all\n    },\n    {...defaultConfig}\n  )\n}\n\nexport interface Options extends Omit<ParserOptions, 'locale'> {\n  formatters?: Formatters\n}\n\nfunction createFastMemoizeCache<V>(\n  store: Record<string, V | undefined>\n): Cache<string, V> {\n  return {\n    create() {\n      return {\n        get(key) {\n          return store[key]\n        },\n        set(key, value) {\n          store[key] = value\n        },\n      }\n    },\n  }\n}\n\nfunction createDefaultFormatters(\n  cache: FormatterCache = {\n    number: {},\n    dateTime: {},\n    pluralRules: {},\n  }\n): Formatters {\n  return {\n    getNumberFormat: memoize((...args) => new Intl.NumberFormat(...args), {\n      cache: createFastMemoizeCache(cache.number),\n      strategy: strategies.variadic,\n    }),\n    getDateTimeFormat: memoize((...args) => new Intl.DateTimeFormat(...args), {\n      cache: createFastMemoizeCache(cache.dateTime),\n      strategy: strategies.variadic,\n    }),\n    getPluralRules: memoize((...args) => new Intl.PluralRules(...args), {\n      cache: createFastMemoizeCache(cache.pluralRules),\n      strategy: strategies.variadic,\n    }),\n  }\n}\n\nexport class IntlMessageFormat<\n  V extends MessageValues | undefined = undefined,\n> {\n  private readonly ast: MessageFormatElement[]\n  private readonly locales: string | string[]\n  private readonly resolvedLocale?: Intl.Locale\n  private readonly formatters: Formatters\n  private readonly formats: Formats\n  private readonly message: string | undefined\n  private readonly formatterCache: FormatterCache = {\n    number: {},\n    dateTime: {},\n    pluralRules: {},\n  }\n  constructor(\n    message: string | MessageFormatElement[],\n    locales: string | string[] = IntlMessageFormat.defaultLocale,\n    overrideFormats?: Partial<Formats>,\n    opts?: Options\n  ) {\n    // Defined first because it's used to build the format pattern.\n    this.locales = locales\n    this.resolvedLocale = IntlMessageFormat.resolveLocale(locales)\n\n    if (typeof message === 'string') {\n      this.message = message\n      if (!IntlMessageFormat.__parse) {\n        throw new TypeError(\n          'IntlMessageFormat.__parse must be set to process `message` of type `string`'\n        )\n      }\n      const {...parseOpts} = opts || {}\n      // Parse string messages into an AST.\n      this.ast = IntlMessageFormat.__parse(message, {\n        ...parseOpts,\n        locale: this.resolvedLocale,\n      })\n    } else {\n      this.ast = message\n    }\n\n    if (!Array.isArray(this.ast)) {\n      throw new TypeError('A message must be provided as a String or AST.')\n    }\n\n    // Creates a new object with the specified `formats` merged with the default\n    // formats.\n    this.formats = mergeConfigs(IntlMessageFormat.formats, overrideFormats)\n\n    this.formatters =\n      (opts && opts.formatters) || createDefaultFormatters(this.formatterCache)\n  }\n\n  format = (<T = void>(\n    values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T>>\n  ): string | T | (string | T)[] => {\n    const parts = (this.formatToParts as UntypedMessageFormatToParts)<T>(values)\n    // Hot path for straight simple msg translations\n    if (parts.length === 1) {\n      return parts[0].value\n    }\n    const result = parts.reduce(\n      (all, part) => {\n        if (\n          !all.length ||\n          part.type !== PART_TYPE.literal ||\n          typeof all[all.length - 1] !== 'string'\n        ) {\n          all.push(part.value)\n        } else {\n          all[all.length - 1] += part.value\n        }\n        return all\n      },\n      [] as Array<string | T>\n    )\n\n    if (result.length <= 1) {\n      return result[0] || ''\n    }\n    return result\n  }) as MessageFormatFunction<V>\n  formatToParts = (<T>(\n    values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T>>\n  ): MessageFormatPart<T>[] =>\n    formatToParts(\n      this.ast,\n      this.locales,\n      this.formatters,\n      this.formats,\n      values,\n      undefined,\n      this.message\n    )) as MessageFormatToPartsFunction<V>\n  resolvedOptions = (): {\n    locale: string\n  } => ({\n    locale:\n      this.resolvedLocale?.toString() ||\n      Intl.NumberFormat.supportedLocalesOf(this.locales)[0],\n  })\n  getAst = (): MessageFormatElement[] => this.ast\n  private static memoizedDefaultLocale: string | null = null\n\n  static get defaultLocale(): string {\n    if (!IntlMessageFormat.memoizedDefaultLocale) {\n      IntlMessageFormat.memoizedDefaultLocale =\n        new Intl.NumberFormat().resolvedOptions().locale\n    }\n\n    return IntlMessageFormat.memoizedDefaultLocale\n  }\n  static resolveLocale = (\n    locales: string | string[]\n  ): Intl.Locale | undefined => {\n    if (typeof Intl.Locale === 'undefined') {\n      return\n    }\n    const supportedLocales = Intl.NumberFormat.supportedLocalesOf(locales)\n    if (supportedLocales.length > 0) {\n      return new Intl.Locale(supportedLocales[0])\n    }\n\n    return new Intl.Locale(typeof locales === 'string' ? locales : locales[0])\n  }\n  static __parse: typeof parse | undefined = parse\n  // Default format options used as the prototype of the `formats` provided to the\n  // constructor. These are used when constructing the internal Intl.NumberFormat\n  // and Intl.DateTimeFormat instances.\n  static formats: Formats = {\n    number: {\n      integer: {\n        maximumFractionDigits: 0,\n      },\n      currency: {\n        style: 'currency',\n      },\n\n      percent: {\n        style: 'percent',\n      },\n    },\n\n    date: {\n      short: {\n        month: 'numeric',\n        day: 'numeric',\n        year: '2-digit',\n      },\n\n      medium: {\n        month: 'short',\n        day: 'numeric',\n        year: 'numeric',\n      },\n\n      long: {\n        month: 'long',\n        day: 'numeric',\n        year: 'numeric',\n      },\n\n      full: {\n        weekday: 'long',\n        month: 'long',\n        day: 'numeric',\n        year: 'numeric',\n      },\n    },\n\n    time: {\n      short: {\n        hour: 'numeric',\n        minute: 'numeric',\n      },\n\n      medium: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric',\n      },\n\n      long: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric',\n        timeZoneName: 'short',\n      },\n\n      full: {\n        hour: 'numeric',\n        minute: 'numeric',\n        second: 'numeric',\n        timeZoneName: 'short',\n      },\n    },\n  }\n}\n","import type {DurationFormatOptions} from '#packages/ecma402-abstract/types/duration.js'\nimport {type NumberFormatOptions} from '#packages/ecma402-abstract/types/number.js'\nimport {type Cache, memoize, strategies} from '@formatjs/fast-memoize'\nimport {IntlMessageFormat} from 'intl-messageformat'\nimport {UnsupportedFormatterError} from '#packages/intl/error.js'\nimport {\n  type CustomFormats,\n  type Formatters,\n  type IntlCache,\n  type OnErrorFn,\n  type OnWarnFn,\n  type ResolvedIntlConfig,\n} from '#packages/intl/types.js'\n\nexport function invariant(\n  condition: boolean,\n  message: string,\n  Err: any = Error\n): asserts condition {\n  if (!condition) {\n    throw new Err(message)\n  }\n}\n\nexport function filterProps<T extends Record<string, any>, K extends string>(\n  props: T,\n  allowlist: Array<K>,\n  defaults: Partial<T> = {}\n): Pick<T, K> {\n  return allowlist.reduce(\n    (filtered, name) => {\n      if (name in props) {\n        filtered[name] = props[name]\n      } else if (name in defaults) {\n        filtered[name] = defaults[name]!\n      }\n\n      return filtered\n    },\n    {} as Pick<T, K>\n  )\n}\n\nconst defaultErrorHandler: OnErrorFn = error => {\n  // @ts-ignore just so we don't need to declare dep on @types/node\n  if (process.env.NODE_ENV !== 'production') {\n    console.error(error)\n  }\n}\n\nconst defaultWarnHandler: OnWarnFn = (warning: string) => {\n  // @ts-ignore just so we don't need to declare dep on @types/node\n  if (process.env.NODE_ENV !== 'production') {\n    console.warn(warning)\n  }\n}\n\nexport const DEFAULT_INTL_CONFIG: Pick<\n  ResolvedIntlConfig<any>,\n  | 'fallbackOnEmptyString'\n  | 'formats'\n  | 'messages'\n  | 'timeZone'\n  | 'defaultLocale'\n  | 'defaultFormats'\n  | 'onError'\n  | 'onWarn'\n> = {\n  formats: {},\n  messages: {},\n  timeZone: undefined,\n\n  defaultLocale: 'en',\n  defaultFormats: {},\n\n  fallbackOnEmptyString: true,\n\n  onError: defaultErrorHandler,\n  onWarn: defaultWarnHandler,\n}\n\nexport function createIntlCache(): IntlCache {\n  return {\n    dateTime: {},\n    number: {},\n    message: {},\n    duration: {},\n    relativeTime: {},\n    pluralRules: {},\n    list: {},\n    displayNames: {},\n  }\n}\n\nfunction createFastMemoizeCache<V>(\n  store: Record<string, V | undefined>\n): Cache<string, V> {\n  return {\n    create() {\n      return {\n        get(key) {\n          return store[key]\n        },\n        set(key, value) {\n          store[key] = value\n        },\n      }\n    },\n  }\n}\n\n/**\n * Create intl formatters and populate cache\n * @param cache explicit cache to prevent leaking memory\n */\nexport function createFormatters(\n  cache: IntlCache = createIntlCache()\n): Formatters {\n  const RelativeTimeFormat = (Intl as any).RelativeTimeFormat\n  const ListFormat = (Intl as any).ListFormat\n  const DisplayNames = (Intl as any).DisplayNames\n  const getDateTimeFormat = memoize(\n    (...args) => new Intl.DateTimeFormat(...args),\n    {\n      cache: createFastMemoizeCache(cache.dateTime),\n      strategy: strategies.variadic,\n    }\n  )\n  const getNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), {\n    cache: createFastMemoizeCache(cache.number),\n    strategy: strategies.variadic,\n  })\n  const getPluralRules = memoize((...args) => new Intl.PluralRules(...args), {\n    cache: createFastMemoizeCache(cache.pluralRules),\n    strategy: strategies.variadic,\n  })\n  return {\n    getDateTimeFormat,\n    getNumberFormat,\n    getMessageFormat: memoize(\n      (message, locales, overrideFormats, opts) =>\n        new IntlMessageFormat(message, locales, overrideFormats, {\n          formatters: {\n            getNumberFormat,\n            getDateTimeFormat,\n            getPluralRules,\n          },\n          ...opts,\n        }),\n      {\n        cache: createFastMemoizeCache(cache.message),\n        strategy: strategies.variadic,\n      }\n    ),\n    getDurationFormat: memoize((...args) => new Intl.DurationFormat(...args), {\n      cache: createFastMemoizeCache(cache.duration),\n      strategy: strategies.variadic,\n    }),\n    getRelativeTimeFormat: memoize(\n      (...args) => new RelativeTimeFormat(...args),\n      {\n        cache: createFastMemoizeCache(cache.relativeTime),\n        strategy: strategies.variadic,\n      }\n    ),\n    getPluralRules,\n    getListFormat: memoize((...args) => new ListFormat(...args), {\n      cache: createFastMemoizeCache(cache.list),\n      strategy: strategies.variadic,\n    }),\n    getDisplayNames: memoize((...args) => new DisplayNames(...args), {\n      cache: createFastMemoizeCache(cache.displayNames),\n      strategy: strategies.variadic,\n    }),\n  }\n}\n\nexport function getNamedFormat<T extends keyof CustomFormats>(\n  formats: CustomFormats,\n  type: T,\n  name: string,\n  onError: OnErrorFn\n):\n  | NumberFormatOptions\n  | Intl.DateTimeFormatOptions\n  | Intl.RelativeTimeFormatOptions\n  | DurationFormatOptions\n  | undefined {\n  const formatType = formats && formats[type]\n  let format\n  if (formatType) {\n    format = formatType[name]\n  }\n  if (format) {\n    return format\n  }\n\n  onError(new UnsupportedFormatterError(`No ${type} format named: ${name}`))\n}\n","import {\n  type CustomFormats,\n  type Formatters,\n  type MessageDescriptor,\n  type OnErrorFn,\n} from '#packages/intl/types.js'\n\nimport {\n  type MessageFormatElement,\n  TYPE,\n} from '@formatjs/icu-messageformat-parser'\nimport {\n  type FormatXMLElementFn,\n  IntlMessageFormat,\n  type Formatters as IntlMessageFormatFormatters,\n  type Options,\n  type PrimitiveType,\n} from 'intl-messageformat'\nimport {\n  MessageFormatError,\n  MissingTranslationError,\n} from '#packages/intl/error.js'\nimport {invariant} from '#packages/intl/utils.js'\n\nfunction setTimeZoneInOptions(\n  opts: Record<string, Intl.DateTimeFormatOptions>,\n  timeZone: string\n): Record<string, Intl.DateTimeFormatOptions> {\n  return Object.keys(opts).reduce(\n    (all: Record<string, Intl.DateTimeFormatOptions>, k) => {\n      all[k] = {\n        timeZone,\n        ...opts[k],\n      }\n      return all\n    },\n    {}\n  )\n}\n\nfunction deepMergeOptions(\n  opts1: Record<string, Intl.DateTimeFormatOptions>,\n  opts2: Record<string, Intl.DateTimeFormatOptions>\n): Record<string, Intl.DateTimeFormatOptions> {\n  const keys = Object.keys({...opts1, ...opts2})\n  return keys.reduce((all: Record<string, Intl.DateTimeFormatOptions>, k) => {\n    all[k] = {\n      ...opts1[k],\n      ...opts2[k],\n    }\n    return all\n  }, {})\n}\n\nfunction deepMergeFormatsAndSetTimeZone(\n  f1: CustomFormats,\n  timeZone?: string\n): CustomFormats {\n  if (!timeZone) {\n    return f1\n  }\n  const mfFormats = IntlMessageFormat.formats\n  return {\n    ...mfFormats,\n    ...f1,\n    date: deepMergeOptions(\n      setTimeZoneInOptions(mfFormats.date, timeZone),\n      setTimeZoneInOptions(f1.date || {}, timeZone)\n    ),\n    time: deepMergeOptions(\n      setTimeZoneInOptions(mfFormats.time, timeZone),\n      setTimeZoneInOptions(f1.time || {}, timeZone)\n    ),\n  }\n}\n\nexport type FormatMessageFn<T> = (\n  {\n    locale,\n    formats,\n    messages,\n    defaultLocale,\n    defaultFormats,\n    fallbackOnEmptyString,\n    onError,\n    timeZone,\n    defaultRichTextElements,\n  }: {\n    locale: string\n    timeZone?: string\n    formats: CustomFormats\n    messages: Record<string, string> | Record<string, MessageFormatElement[]>\n    defaultLocale: string\n    defaultFormats: CustomFormats\n    defaultRichTextElements?: Record<string, FormatXMLElementFn<T>>\n    fallbackOnEmptyString?: boolean\n    onError: OnErrorFn\n  },\n  state: IntlMessageFormatFormatters & Pick<Formatters, 'getMessageFormat'>,\n  messageDescriptor: MessageDescriptor,\n  values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T>>,\n  opts?: Options\n) => T extends string ? string : Array<T | string> | string | T\n\nfunction getMessageDescriptorContext(\n  messageDescriptor: MessageDescriptor\n): string {\n  const {defaultMessage} = messageDescriptor\n  try {\n    return defaultMessage !== undefined\n      ? `\\nDefault Message: ${\n          typeof defaultMessage === 'string'\n            ? defaultMessage\n            : JSON.stringify(defaultMessage)\n        }`\n      : `\\nMessage Descriptor: ${JSON.stringify(messageDescriptor)}`\n  } catch {\n    return ''\n  }\n}\n\nexport const formatMessage: FormatMessageFn<any> = (\n  {\n    locale,\n    formats,\n    messages,\n    defaultLocale,\n    defaultFormats,\n    fallbackOnEmptyString,\n    onError,\n    timeZone,\n    defaultRichTextElements,\n  },\n  state,\n  messageDescriptor = {id: ''},\n  values,\n  opts\n) => {\n  const {id: msgId, defaultMessage} = messageDescriptor\n\n  // `id` is a required field of a Message Descriptor.\n  if (!msgId) {\n    invariant(\n      false,\n      `[@formatjs/intl] An \\`id\\` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your \\`eslint\\` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue${getMessageDescriptorContext(messageDescriptor)}`\n    )\n  }\n  const id = String(msgId)\n  const message =\n    // In case messages is Object.create(null)\n    // e.g import('foo.json') from webpack)\n    // See https://github.com/formatjs/formatjs/issues/1914\n    messages &&\n    Object.prototype.hasOwnProperty.call(messages, id) &&\n    messages[id]\n\n  // IMPORTANT: Hot path if `message` is AST with a single literal node\n  if (\n    Array.isArray(message) &&\n    message.length === 1 &&\n    message[0].type === TYPE.literal\n  ) {\n    return message[0].value\n  }\n\n  values = {\n    ...defaultRichTextElements,\n    ...values,\n  }\n  formats = deepMergeFormatsAndSetTimeZone(formats, timeZone)\n  defaultFormats = deepMergeFormatsAndSetTimeZone(defaultFormats, timeZone)\n\n  if (!message) {\n    if (fallbackOnEmptyString === false && message === '') {\n      return message\n    }\n\n    if (\n      !defaultMessage ||\n      (locale && locale.toLowerCase() !== defaultLocale.toLowerCase())\n    ) {\n      // This prevents warnings from littering the console in development\n      // when no `messages` are passed into the <IntlProvider> for the\n      // default locale.\n      onError(new MissingTranslationError(messageDescriptor, locale))\n    }\n    if (defaultMessage) {\n      try {\n        const formatter = state.getMessageFormat(\n          defaultMessage,\n          defaultLocale,\n          defaultFormats,\n          opts\n        )\n\n        return formatter.format(values)\n      } catch (e) {\n        onError(\n          new MessageFormatError(\n            `Error formatting default message for: \"${id}\", rendering default message verbatim`,\n            locale,\n            messageDescriptor,\n            e\n          )\n        )\n        return typeof defaultMessage === 'string' ? defaultMessage : id\n      }\n    }\n    return id\n  }\n\n  // We have the translated message\n  try {\n    const formatter = state.getMessageFormat(message, locale, formats, {\n      formatters: state,\n      ...opts,\n    })\n\n    return formatter.format<any>(values)\n  } catch (e) {\n    onError(\n      new MessageFormatError(\n        `Error formatting message: \"${id}\", using ${\n          defaultMessage ? 'default message' : 'id'\n        } as fallback.`,\n        locale,\n        messageDescriptor,\n        e\n      )\n    )\n  }\n\n  if (defaultMessage) {\n    try {\n      const formatter = state.getMessageFormat(\n        defaultMessage,\n        defaultLocale,\n        defaultFormats,\n        opts\n      )\n\n      return formatter.format(values)\n    } catch (e) {\n      onError(\n        new MessageFormatError(\n          `Error formatting the default message for: \"${id}\", rendering message verbatim`,\n          locale,\n          messageDescriptor,\n          e\n        )\n      )\n    }\n  }\n\n  if (typeof message === 'string') {\n    return message\n  }\n  if (typeof defaultMessage === 'string') {\n    return defaultMessage\n  }\n  return id\n}\n","import {\n  type CustomFormats,\n  type Formatters,\n  type IntlFormatters,\n  type OnErrorFn,\n} from '#packages/intl/types.js'\n\nimport {IntlFormatError} from '#packages/intl/error.js'\nimport {filterProps, getNamedFormat} from '#packages/intl/utils.js'\n\nconst DATE_TIME_FORMAT_OPTIONS: Array<keyof Intl.DateTimeFormatOptions> = [\n  'formatMatcher',\n\n  'timeZone',\n  'hour12',\n\n  'weekday',\n  'era',\n  'year',\n  'month',\n  'day',\n  'hour',\n  'minute',\n  'second',\n  'timeZoneName',\n  'hourCycle',\n  'dateStyle',\n  'timeStyle',\n  'calendar',\n  // 'dayPeriod',\n  'numberingSystem',\n  'fractionalSecondDigits',\n]\n\nexport function getFormatter(\n  {\n    locale,\n    formats,\n    onError,\n    timeZone,\n  }: {\n    locale: string\n    timeZone?: string\n    formats: CustomFormats\n    onError: OnErrorFn\n  },\n  type: 'date' | 'time' | 'dateTimeRange',\n  getDateTimeFormat: Formatters['getDateTimeFormat'],\n  options: Parameters<IntlFormatters['formatDate']>[1] = {}\n): Intl.DateTimeFormat {\n  const {format} = options\n  const defaults = {\n    ...(timeZone && {timeZone}),\n    ...(format && getNamedFormat(formats!, type, format, onError)),\n  }\n\n  let filteredOptions = filterProps(\n    options,\n    DATE_TIME_FORMAT_OPTIONS,\n    defaults\n  ) as Intl.DateTimeFormatOptions\n\n  if (\n    type === 'time' &&\n    !filteredOptions.hour &&\n    !filteredOptions.minute &&\n    !filteredOptions.second &&\n    !filteredOptions.timeStyle &&\n    !filteredOptions.dateStyle\n  ) {\n    // Add default formatting options if hour, minute, or second isn't defined.\n    filteredOptions = {...filteredOptions, hour: 'numeric', minute: 'numeric'}\n  }\n\n  return getDateTimeFormat(locale, filteredOptions)\n}\n\nexport function formatDate(\n  config: {\n    locale: string\n    timeZone?: string\n    formats: CustomFormats\n    onError: OnErrorFn\n  },\n  getDateTimeFormat: Formatters['getDateTimeFormat'],\n  value: Parameters<IntlFormatters['formatDate']>[0],\n  options: Parameters<IntlFormatters['formatDate']>[1] = {}\n): string {\n  const date = typeof value === 'string' ? new Date(value || 0) : value\n  try {\n    return getFormatter(config, 'date', getDateTimeFormat, options).format(date)\n  } catch (e) {\n    config.onError(\n      new IntlFormatError('Error formatting date.', config.locale, e)\n    )\n  }\n\n  return String(date)\n}\n\nexport function formatTime(\n  config: {\n    locale: string\n    timeZone?: string\n    formats: CustomFormats\n    onError: OnErrorFn\n  },\n  getDateTimeFormat: Formatters['getDateTimeFormat'],\n  value: Parameters<IntlFormatters['formatTime']>[0],\n  options: Parameters<IntlFormatters['formatTime']>[1] = {}\n): string {\n  const date = typeof value === 'string' ? new Date(value || 0) : value\n\n  try {\n    return getFormatter(config, 'time', getDateTimeFormat, options).format(date)\n  } catch (e) {\n    config.onError(\n      new IntlFormatError('Error formatting time.', config.locale, e)\n    )\n  }\n\n  return String(date)\n}\n\nexport function formatDateTimeRange(\n  config: {\n    locale: string\n    timeZone?: string\n    formats: CustomFormats\n    onError: OnErrorFn\n  },\n  getDateTimeFormat: Formatters['getDateTimeFormat'],\n  from: Parameters<IntlFormatters['formatDateTimeRange']>[0],\n  to: Parameters<IntlFormatters['formatDateTimeRange']>[1],\n  options: Parameters<IntlFormatters['formatDateTimeRange']>[2] = {}\n): string {\n  const fromDate = typeof from === 'string' ? new Date(from || 0) : from\n  const toDate = typeof to === 'string' ? new Date(to || 0) : to\n\n  try {\n    return getFormatter(\n      config,\n      'dateTimeRange',\n      getDateTimeFormat,\n      options\n    ).formatRange(fromDate, toDate)\n  } catch (e) {\n    config.onError(\n      new IntlFormatError('Error formatting date time range.', config.locale, e)\n    )\n  }\n\n  return String(fromDate)\n}\n\nexport function formatDateToParts(\n  config: {\n    locale: string\n    timeZone?: string\n    formats: CustomFormats\n    onError: OnErrorFn\n  },\n  getDateTimeFormat: Formatters['getDateTimeFormat'],\n  value: Parameters<IntlFormatters['formatDate']>[0],\n  options: Parameters<IntlFormatters['formatDate']>[1] = {}\n): Intl.DateTimeFormatPart[] {\n  const date = typeof value === 'string' ? new Date(value || 0) : value\n  try {\n    return getFormatter(\n      config,\n      'date',\n      getDateTimeFormat,\n      options\n    ).formatToParts(date) as Intl.DateTimeFormatPart[] // TODO: remove this when https://github.com/microsoft/TypeScript/pull/50402 is merged\n  } catch (e) {\n    config.onError(\n      new IntlFormatError('Error formatting date.', config.locale, e)\n    )\n  }\n\n  return []\n}\n\nexport function formatTimeToParts(\n  config: {\n    locale: string\n    timeZone?: string\n    formats: CustomFormats\n    onError: OnErrorFn\n  },\n  getDateTimeFormat: Formatters['getDateTimeFormat'],\n  value: Parameters<IntlFormatters['formatTimeToParts']>[0],\n  options: Parameters<IntlFormatters['formatTimeToParts']>[1] = {}\n): Intl.DateTimeFormatPart[] {\n  const date = typeof value === 'string' ? new Date(value || 0) : value\n\n  try {\n    return getFormatter(\n      config,\n      'time',\n      getDateTimeFormat,\n      options\n    ).formatToParts(date) as Intl.DateTimeFormatPart[] // TODO: remove this when https://github.com/microsoft/TypeScript/pull/50402 is merged\n  } catch (e) {\n    config.onError(\n      new IntlFormatError('Error formatting time.', config.locale, e)\n    )\n  }\n\n  return []\n}\n","import {IntlFormatError} from '#packages/intl/error.js'\nimport type {\n  CustomFormats,\n  FormatDurationOptions,\n  Formatters,\n  IntlFormatters,\n  OnErrorFn,\n} from '#packages/intl/types.js'\nimport {filterProps, getNamedFormat} from '#packages/intl/utils.js'\nimport {ErrorCode, FormatError} from 'intl-messageformat'\n\nconst DURATION_FORMAT_OPTIONS: Array<\n  Exclude<keyof FormatDurationOptions, 'format'>\n> = [\n  'style',\n  'numberingSystem',\n  'years',\n  'yearsDisplay',\n  'months',\n  'monthsDisplay',\n  'weeks',\n  'weeksDisplay',\n  'days',\n  'daysDisplay',\n  'hours',\n  'hoursDisplay',\n  'minutes',\n  'minutesDisplay',\n  'seconds',\n  'secondsDisplay',\n  'milliseconds',\n  'millisecondsDisplay',\n  'microseconds',\n  'microsecondsDisplay',\n  'nanoseconds',\n  'nanosecondsDisplay',\n  'fractionalDigits',\n]\n\ntype Config = {\n  locale: string\n  formats: CustomFormats\n  onError: OnErrorFn\n}\n\nfunction getFormatter(\n  {locale, formats, onError}: Config,\n  getDurationFormat: Formatters['getDurationFormat'],\n  options: FormatDurationOptions\n): ReturnType<Formatters['getDurationFormat']> | undefined {\n  if (!Intl.DurationFormat) {\n    onError(\n      new FormatError(\n        'Intl.DurationFormat is not available in this environment.\\nTry polyfilling it using \"@formatjs/intl-durationformat\"',\n        ErrorCode.MISSING_INTL_API\n      )\n    )\n    return\n  }\n\n  const {format} = options\n  const defaults = ((format &&\n    getNamedFormat(formats, 'duration', format, onError)) ||\n    {}) as FormatDurationOptions\n  return getDurationFormat(\n    locale,\n    filterProps(options, DURATION_FORMAT_OPTIONS, defaults)\n  )\n}\n\nexport function formatDuration(\n  config: Config,\n  getDurationFormat: Formatters['getDurationFormat'],\n  value: Parameters<IntlFormatters['formatDuration']>[0],\n  options: FormatDurationOptions = {}\n): string {\n  try {\n    return getFormatter(config, getDurationFormat, options)?.format(value) ?? ''\n  } catch (e) {\n    config.onError(\n      new IntlFormatError('Error formatting duration.', config.locale, e)\n    )\n  }\n  return ''\n}\n\nexport function formatDurationToParts(\n  config: Config,\n  getDurationFormat: Formatters['getDurationFormat'],\n  value: Parameters<IntlFormatters['formatDuration']>[0],\n  options: FormatDurationOptions = {}\n): ReturnType<IntlFormatters['formatDurationToParts']> {\n  try {\n    return (\n      getFormatter(config, getDurationFormat, options)?.formatToParts(value) ??\n      []\n    )\n  } catch (e) {\n    config.onError(\n      new IntlFormatError('Error formatting duration.', config.locale, e)\n    )\n  }\n  return []\n}\n","import {\n  type Formatters,\n  type IntlFormatters,\n  type OnErrorFn,\n} from '#packages/intl/types.js'\nimport {filterProps} from '#packages/intl/utils.js'\n\nimport {ErrorCode, FormatError} from 'intl-messageformat'\nimport {IntlFormatError} from '#packages/intl/error.js'\n\nconst DISPLAY_NAMES_OPTONS: Array<keyof Intl.DisplayNamesOptions> = [\n  'style',\n  'type',\n  'fallback',\n  'languageDisplay',\n]\n\nexport function formatDisplayName(\n  {\n    locale,\n    onError,\n  }: {\n    locale: string\n    onError: OnErrorFn\n  },\n  getDisplayNames: Formatters['getDisplayNames'],\n  value: Parameters<IntlFormatters['formatDisplayName']>[0],\n  options: Parameters<IntlFormatters['formatDisplayName']>[1]\n): string | undefined {\n  const DisplayNames: typeof Intl.DisplayNames = (Intl as any).DisplayNames\n  if (!DisplayNames) {\n    onError(\n      new FormatError(\n        `Intl.DisplayNames is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-displaynames\"\n`,\n        ErrorCode.MISSING_INTL_API\n      )\n    )\n  }\n  const filteredOptions = filterProps(\n    options,\n    DISPLAY_NAMES_OPTONS\n  ) as Intl.DisplayNamesOptions\n  try {\n    return getDisplayNames(locale, filteredOptions).of(value)\n  } catch (e) {\n    onError(new IntlFormatError('Error formatting display name.', locale, e))\n  }\n}\n","import {ErrorCode, FormatError} from 'intl-messageformat'\nimport {IntlFormatError} from '#packages/intl/error.js'\nimport {\n  type Formatters,\n  type IntlFormatters,\n  type OnErrorFn,\n  type Part,\n} from '#packages/intl/types.js'\nimport {filterProps} from '#packages/intl/utils.js'\n\nconst LIST_FORMAT_OPTIONS: Array<keyof Intl.ListFormatOptions> = [\n  'type',\n  'style',\n]\n\nconst now = Date.now()\n\nfunction generateToken(i: number): string {\n  return `${now}_${i}_${now}`\n}\n\nexport function formatList(\n  opts: {\n    locale: string\n    onError: OnErrorFn\n  },\n  getListFormat: Formatters['getListFormat'],\n  values: Iterable<string>,\n  options: Parameters<IntlFormatters['formatList']>[1]\n): string\nexport function formatList<T>(\n  opts: {\n    locale: string\n    onError: OnErrorFn\n  },\n  getListFormat: Formatters['getListFormat'],\n  values: Iterable<string | T>,\n  options: Parameters<IntlFormatters['formatList']>[1] = {}\n): Array<T | string> | T | string {\n  const results = formatListToParts(\n    opts,\n    getListFormat,\n    values,\n    options\n  ).reduce((all: Array<string | T>, el) => {\n    const val = el.value\n    if (typeof val !== 'string') {\n      all.push(val)\n    } else if (typeof all[all.length - 1] === 'string') {\n      all[all.length - 1] += val\n    } else {\n      all.push(val)\n    }\n    return all\n  }, [])\n  return results.length === 1 ? results[0] : results.length === 0 ? '' : results\n}\n\nexport function formatListToParts<T>(\n  opts: {\n    locale: string\n    onError: OnErrorFn\n  },\n  getListFormat: Formatters['getListFormat'],\n  values: Iterable<string | T>,\n  options: Parameters<IntlFormatters['formatList']>[1]\n): Part[]\nexport function formatListToParts<T>(\n  {\n    locale,\n    onError,\n  }: {\n    locale: string\n    onError: OnErrorFn\n  },\n  getListFormat: Formatters['getListFormat'],\n  values: Parameters<IntlFormatters['formatList']>[0],\n  options: Parameters<IntlFormatters['formatList']>[1] = {}\n): Part<T>[] {\n  const ListFormat: typeof Intl.ListFormat = Intl.ListFormat\n  if (!ListFormat) {\n    onError(\n      new FormatError(\n        `Intl.ListFormat is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-listformat\"\n`,\n        ErrorCode.MISSING_INTL_API\n      )\n    )\n  }\n  const filteredOptions = filterProps(\n    options,\n    LIST_FORMAT_OPTIONS\n  ) as Intl.ListFormatOptions\n\n  try {\n    const richValues: Record<string, T> = {}\n    const serializedValues = Array.from(values).map((v, i) => {\n      if (typeof v === 'object' && v !== null) {\n        const id = generateToken(i)\n        richValues[id] = v as any\n        return id\n      }\n      return String(v)\n    })\n    return getListFormat(locale, filteredOptions)\n      .formatToParts(serializedValues)\n      .map(\n        part =>\n          (part.type === 'literal'\n            ? part\n            : {...part, value: richValues[part.value] || part.value}) as Part<T>\n      )\n  } catch (e) {\n    onError(new IntlFormatError('Error formatting list.', locale, e))\n  }\n\n  // @ts-ignore\n  return values\n}\n","import {ErrorCode, FormatError} from 'intl-messageformat'\nimport {IntlFormatError} from '#packages/intl/error.js'\nimport {\n  type Formatters,\n  type IntlFormatters,\n  type OnErrorFn,\n} from '#packages/intl/types.js'\nimport {filterProps} from '#packages/intl/utils.js'\n\nconst PLURAL_FORMAT_OPTIONS: Array<keyof Intl.PluralRulesOptions> = ['type']\n\nexport function formatPlural(\n  {\n    locale,\n    onError,\n  }: {\n    locale: string\n    onError: OnErrorFn\n  },\n  getPluralRules: Formatters['getPluralRules'],\n  value: Parameters<IntlFormatters['formatPlural']>[0],\n  options: Parameters<IntlFormatters['formatPlural']>[1] = {}\n): Intl.LDMLPluralRule {\n  if (!Intl.PluralRules) {\n    onError(\n      new FormatError(\n        `Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n`,\n        ErrorCode.MISSING_INTL_API\n      )\n    )\n  }\n  const filteredOptions = filterProps(\n    options,\n    PLURAL_FORMAT_OPTIONS\n  ) as Intl.PluralRulesOptions\n\n  try {\n    return getPluralRules(locale, filteredOptions).select(\n      value\n    ) as Intl.LDMLPluralRule\n  } catch (e) {\n    onError(new IntlFormatError('Error formatting plural.', locale, e))\n  }\n\n  return 'other'\n}\n","import {\n  type IntlFormatters,\n  type Formatters,\n  type CustomFormats,\n  type OnErrorFn,\n} from '#packages/intl/types.js'\n\nimport {getNamedFormat, filterProps} from '#packages/intl/utils.js'\nimport {FormatError, ErrorCode} from 'intl-messageformat'\nimport {IntlFormatError} from '#packages/intl/error.js'\n\nconst RELATIVE_TIME_FORMAT_OPTIONS: Array<\n  keyof Intl.RelativeTimeFormatOptions\n> = ['numeric', 'style']\n\nfunction getFormatter(\n  {\n    locale,\n    formats,\n    onError,\n  }: {\n    locale: string\n    formats: CustomFormats\n    onError: OnErrorFn\n  },\n  getRelativeTimeFormat: Formatters['getRelativeTimeFormat'],\n  options: Parameters<IntlFormatters['formatRelativeTime']>[2] = {}\n): Intl.RelativeTimeFormat {\n  const {format} = options\n\n  const defaults =\n    (!!format && getNamedFormat(formats, 'relative', format, onError)) || {}\n  const filteredOptions = filterProps(\n    options,\n    RELATIVE_TIME_FORMAT_OPTIONS,\n    defaults as Intl.RelativeTimeFormatOptions\n  ) as Intl.RelativeTimeFormatOptions\n\n  return getRelativeTimeFormat(locale, filteredOptions)\n}\n\nexport function formatRelativeTime(\n  config: {\n    locale: string\n    formats: CustomFormats\n    onError: OnErrorFn\n  },\n  getRelativeTimeFormat: Formatters['getRelativeTimeFormat'],\n  value: Parameters<IntlFormatters['formatRelativeTime']>[0],\n  unit?: Parameters<IntlFormatters['formatRelativeTime']>[1],\n  options: Parameters<IntlFormatters['formatRelativeTime']>[2] = {}\n): string {\n  if (!unit) {\n    unit = 'second'\n  }\n  const RelativeTimeFormat = Intl.RelativeTimeFormat\n  if (!RelativeTimeFormat) {\n    config.onError(\n      new FormatError(\n        `Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-relativetimeformat\"\n`,\n        ErrorCode.MISSING_INTL_API\n      )\n    )\n  }\n  try {\n    return getFormatter(config, getRelativeTimeFormat, options).format(\n      value,\n      unit\n    )\n  } catch (e) {\n    config.onError(\n      new IntlFormatError('Error formatting relative time.', config.locale, e)\n    )\n  }\n\n  return String(value)\n}\n","import type { IntlShape, MessageDescriptor } from '@formatjs/intl';\n\nexport type FormatMessageParameters = [\n  descriptor: MessageDescriptor,\n  data?: Parameters<IntlShape<string>['formatMessage']>[1],\n];\n\nexport function formatMessage(\n  intlShape: IntlShape,\n  ...[descriptor, data]: FormatMessageParameters\n): string {\n  return intlShape.formatMessage(descriptor, data, {\n    ignoreTag: true,\n  }) as string;\n}\n","export type Locales = [string, ...string[]];\n\n/**\n * @private\n */\nexport function convertToArray(locale: Locales | string): Locales {\n  if (Array.isArray(locale)) {\n    return locale;\n  }\n\n  return [locale];\n}\n\n/**\n * @private\n */\nexport function convertToString(locale: Locales | string): string {\n  if (Array.isArray(locale)) {\n    return locale[0];\n  }\n\n  return locale;\n}\n\n/**\n * @private\n */\nexport function hasLocaleChanged(locale1: Locales, locale2?: Locales): boolean {\n  if (locale2 === undefined) {\n    return true;\n  }\n\n  return locale1.toString() !== locale2.toString();\n}\n\n/**\n * @private\n */\nexport function normalizeLocale(locale: string): string {\n  return locale.replace(/_/g, '-').toLowerCase();\n}\n","import { assert } from '@ember/debug';\nimport { cancel, next, type Timer as EmberRunTimer } from '@ember/runloop';\nimport Service from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport type { TranslationJson } from '@ember-intl/utils/translations';\nimport { tracked } from '@glimmer/tracking';\n\nimport type {\n  FormatDateParameters,\n  FormatDateRangeParameters,\n  FormatDisplayNameParameters,\n  FormatListParameters,\n  FormatMessageParameters,\n  FormatNumberParameters,\n  FormatRelativeTimeParameters,\n  Formats,\n  FormatTimeParameters,\n  IntlShape,\n  OnErrorFn,\n} from '../-private/formatjs/index.ts';\nimport {\n  convertToFormatjsFormats,\n  createIntl,\n  createIntlCache,\n  formatDate,\n  formatDateRange,\n  formatDisplayName,\n  formatList,\n  formatMessage,\n  formatNumber,\n  formatRelativeTime,\n  formatTime,\n} from '../-private/formatjs/index.ts';\nimport { getHtmlElement } from '../-private/utils/get-html-element.ts';\nimport {\n  convertToArray,\n  convertToString,\n  hasLocaleChanged,\n  type Locales,\n  normalizeLocale,\n} from '../-private/utils/locale.ts';\n\nexport type { Formats };\n\ntype OnFormatjsError = (error: Parameters<OnErrorFn>[0]) => void;\n\ntype OnMissingTranslation = (\n  key: string,\n  locales: Locales,\n  data?: Record<string, unknown>,\n) => string;\n\nexport default class IntlService extends Service {\n  @tracked private _intls: Record<string, IntlShape> = {};\n  @tracked private _locales?: Locales;\n\n  private _cache = createIntlCache();\n  private _formats: Formats = {};\n  private _onFormatjsError: OnFormatjsError = (error) => {\n    switch (error.code) {\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison\n      case 'MISSING_DATA': {\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        // Do nothing\n        break;\n      }\n\n      default: {\n        throw error;\n      }\n    }\n  };\n  private _onMissingTranslation: OnMissingTranslation = (key, locales) => {\n    const locale = locales.join(', ');\n\n    return `Missing translation \"${key}\" for locale \"${locale}\"`;\n  };\n  private _timer?: EmberRunTimer;\n\n  private get _localesOrThrow(): Locales {\n    assert(\n      'No locales set. Did you call `intl.setLocale()`?',\n      this._locales?.length,\n    );\n\n    return this._locales;\n  }\n\n  get locales(): string[] {\n    return Object.keys(this._intls);\n  }\n\n  get primaryLocale(): string {\n    return this._localesOrThrow[0];\n  }\n\n  addTranslations(locale: string, translations: TranslationJson): void {\n    this.updateIntl(locale, translations);\n  }\n\n  private createIntl(\n    locale: Locales | string,\n    messages: Record<string, unknown> = {},\n  ): IntlShape {\n    const resolvedLocale = convertToString(locale);\n    const formats = convertToFormatjsFormats(this._formats);\n\n    return createIntl(\n      {\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      },\n      this._cache,\n    );\n  }\n\n  exists(key: string, locale?: Locales | string): boolean {\n    const locales = locale ? convertToArray(locale) : this._localesOrThrow;\n\n    return locales.some((locale) => {\n      return this.getTranslation(key, locale) !== undefined;\n    });\n  }\n\n  formatDate(\n    value: FormatDateParameters[0] | null | undefined,\n    options?: FormatDateParameters[1] & {\n      locale?: string;\n    },\n  ): string {\n    if (value === undefined || value === null) {\n      return '';\n    }\n\n    const intlShape = this.getIntlShape(options?.locale);\n\n    return formatDate(intlShape, value, options);\n  }\n\n  formatDateRange(\n    from: FormatDateRangeParameters[0] | null | undefined,\n    to: FormatDateRangeParameters[1] | null | undefined,\n    options?: FormatDateRangeParameters[2] & {\n      locale?: string;\n    },\n  ): string {\n    if (from === undefined || from === null) {\n      return '';\n    }\n\n    if (to === undefined || to === null) {\n      return '';\n    }\n\n    const intlShape = this.getIntlShape(options?.locale);\n\n    return formatDateRange(intlShape, from, to, options);\n  }\n\n  formatDisplayName(\n    value: FormatDisplayNameParameters[0] | null | undefined,\n    options: FormatDisplayNameParameters[1] & {\n      locale?: string;\n    },\n  ): string {\n    if (value === undefined || value === null) {\n      return '';\n    }\n\n    const intlShape = this.getIntlShape(options?.locale);\n\n    return formatDisplayName(intlShape, value, options);\n  }\n\n  formatList(\n    value: FormatListParameters[0] | null | undefined,\n    options?: FormatListParameters[1] & {\n      locale?: string;\n    },\n  ): string {\n    if (value === undefined || value === null) {\n      return '';\n    }\n\n    const intlShape = this.getIntlShape(options?.locale);\n\n    return formatList(intlShape, value, options);\n  }\n\n  formatMessage(\n    value: FormatMessageParameters[0] | null | string | undefined,\n    options?: FormatMessageParameters[1] & {\n      htmlSafe?: boolean;\n      locale?: string;\n    },\n  ): string {\n    if (value === undefined || value === null) {\n      return '';\n    }\n\n    const intlShape = this.getIntlShape(options?.locale);\n\n    const descriptor =\n      typeof value === 'object'\n        ? value\n        : {\n            defaultMessage: value,\n            id: value,\n          };\n\n    if (options?.htmlSafe) {\n      const output = formatMessage(intlShape, descriptor, options);\n\n      return htmlSafe(output) as unknown as string;\n    }\n\n    return formatMessage(intlShape, descriptor, options);\n  }\n\n  formatNumber(\n    value: FormatNumberParameters[0] | null | undefined,\n    options?: FormatNumberParameters[1] & {\n      locale?: string;\n    },\n  ): string {\n    if (value === undefined || value === null) {\n      return '';\n    }\n\n    const intlShape = this.getIntlShape(options?.locale);\n\n    return formatNumber(intlShape, value, options);\n  }\n\n  formatRelativeTime(\n    value: FormatRelativeTimeParameters[0] | null | undefined,\n    options?: FormatRelativeTimeParameters[2] & {\n      locale?: string;\n      unit?: FormatRelativeTimeParameters[1];\n    },\n  ): string {\n    if (value === undefined || value === null) {\n      return '';\n    }\n\n    const intlShape = this.getIntlShape(options?.locale);\n\n    return formatRelativeTime(intlShape, value, options?.unit, options);\n  }\n\n  formatTime(\n    value: FormatTimeParameters[0] | null | undefined,\n    options?: FormatTimeParameters[1] & {\n      locale?: string;\n    },\n  ): string {\n    if (value === undefined || value === null) {\n      return '';\n    }\n\n    const intlShape = this.getIntlShape(options?.locale);\n\n    return formatTime(intlShape, value, options);\n  }\n\n  private getIntl(locale: Locales | string): IntlShape | undefined {\n    const resolvedLocale = normalizeLocale(convertToString(locale));\n\n    return this._intls[resolvedLocale];\n  }\n\n  private getIntlShape(locale?: string): IntlShape {\n    if (locale) {\n      return this.createIntl(locale);\n    }\n\n    return this.getIntl(this._localesOrThrow)!;\n  }\n\n  getTranslation(key: string, locale: string): string | undefined {\n    const messages = this.getIntl(locale)?.messages;\n\n    if (!messages) {\n      return;\n    }\n\n    return messages[key] as string | undefined;\n  }\n\n  setFormats(formats: Formats): void {\n    this._formats = formats;\n\n    // Call `updateIntl` to update `formats` for each locale\n    this.locales.forEach((locale) => {\n      this.updateIntl(locale, {});\n    });\n  }\n\n  setLocale(locale: Locales | string): void {\n    const proposedLocale = convertToArray(locale);\n\n    if (hasLocaleChanged(proposedLocale, this._locales)) {\n      this._locales = proposedLocale;\n\n      // eslint-disable-next-line ember/no-runloop\n      cancel(this._timer);\n\n      // eslint-disable-next-line ember/no-runloop\n      this._timer = next(() => {\n        this.updateDocumentLanguage();\n      });\n    }\n\n    this.updateIntl(proposedLocale);\n  }\n\n  setOnFormatjsError(onFormatjsError: OnFormatjsError): void {\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\n  setOnMissingTranslation(onMissingTranslation: OnMissingTranslation): void {\n    this._onMissingTranslation = onMissingTranslation;\n  }\n\n  t(\n    key: string,\n    options?: FormatMessageParameters[1] & {\n      htmlSafe?: boolean;\n      locale?: string;\n    },\n  ): string {\n    const locales: Locales = options?.locale\n      ? [options.locale]\n      : this._localesOrThrow;\n\n    let translation: string | undefined;\n\n    for (const locale of locales) {\n      translation = this.getTranslation(key, locale);\n\n      if (translation !== undefined) {\n        break;\n      }\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\n    return this.formatMessage(\n      {\n        defaultMessage: translation,\n        id: key,\n      },\n      options,\n    );\n  }\n\n  private updateDocumentLanguage(): void {\n    const html = getHtmlElement(this);\n\n    if (!html) {\n      return;\n    }\n\n    html.setAttribute('lang', this.primaryLocale);\n  }\n\n  private updateIntl(\n    locale: Locales | string,\n    messages?: Record<string, unknown>,\n  ): void {\n    const resolvedLocale = normalizeLocale(convertToString(locale));\n    const intl = this._intls[resolvedLocale];\n\n    let newIntl;\n\n    if (!intl) {\n      newIntl = this.createIntl(resolvedLocale, messages);\n    } else if (messages) {\n      newIntl = this.createIntl(resolvedLocale, {\n        ...(intl.messages ?? {}),\n        ...messages,\n      });\n    }\n\n    if (!newIntl) {\n      return;\n    }\n\n    this._intls = {\n      ...this._intls,\n      [resolvedLocale]: newIntl,\n    };\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n\n    // eslint-disable-next-line ember/no-runloop\n    cancel(this._timer);\n  }\n}\n\n// DO NOT DELETE: this is how TypeScript knows how to look up your services.\ndeclare module '@ember/service' {\n  interface Registry {\n    intl: IntlService;\n  }\n}\n","import type { CustomFormats as FormatjsFormats } from '@formatjs/intl';\n\nexport type Formats = Partial<{\n  formatDate: FormatjsFormats['date'];\n  formatDateRange: FormatjsFormats['dateTimeRange'];\n  formatNumber: FormatjsFormats['number'];\n  formatRelativeTime: FormatjsFormats['relative'];\n  formatTime: FormatjsFormats['time'];\n}>;\n\nexport function convertToFormatjsFormats(formats: Formats): FormatjsFormats {\n  const formatjsFormats: FormatjsFormats = {\n    dateTimeRange: formats.formatDateRange,\n    date: formats.formatDate,\n    number: formats.formatNumber,\n    relative: formats.formatRelativeTime,\n    time: formats.formatTime,\n  };\n\n  return formatjsFormats;\n}\n","import {\n  formatDate,\n  formatDateTimeRange,\n  formatDateToParts,\n  formatTime,\n  formatTimeToParts,\n} from '#packages/intl/dateTime.js'\nimport {formatDisplayName} from '#packages/intl/displayName.js'\nimport {formatDuration, formatDurationToParts} from '#packages/intl/duration.js'\nimport {InvalidConfigError, MissingDataError} from '#packages/intl/error.js'\nimport {formatList, formatListToParts} from '#packages/intl/list.js'\nimport {formatMessage} from '#packages/intl/message.js'\nimport {formatNumber, formatNumberToParts} from '#packages/intl/number.js'\nimport {formatPlural} from '#packages/intl/plural.js'\nimport {formatRelativeTime} from '#packages/intl/relativeTime.js'\nimport {\n  type IntlCache,\n  type IntlConfig,\n  type IntlShape,\n  type ResolvedIntlConfig,\n} from '#packages/intl/types.js'\nimport {createFormatters, DEFAULT_INTL_CONFIG} from '#packages/intl/utils.js'\nimport {type MessageFormatElement} from '@formatjs/icu-messageformat-parser'\n\nexport interface CreateIntlFn<\n  T = string,\n  C extends IntlConfig<T> = IntlConfig<T>,\n  S extends IntlShape<T> = IntlShape<T>,\n> {\n  (config: C, cache?: IntlCache): S\n}\n\nfunction messagesContainString(\n  messages: Record<string, string> | Record<string, MessageFormatElement[]>\n): messages is Record<string, MessageFormatElement[]> {\n  const firstMessage = messages ? messages[Object.keys(messages)[0]] : undefined\n\n  return typeof firstMessage === 'string'\n}\n\nfunction verifyConfigMessages<T = string>(config: IntlConfig<T>) {\n  if (\n    config.onWarn &&\n    config.defaultRichTextElements &&\n    messagesContainString(config.messages || {})\n  ) {\n    config.onWarn(`[@formatjs/intl] \"defaultRichTextElements\" was specified but \"message\" was not pre-compiled. \nPlease consider using \"@formatjs/cli\" to pre-compile your messages for performance.\nFor more details see https://formatjs.github.io/docs/getting-started/message-distribution`)\n  }\n}\n\n/**\n * Create intl object\n * @param config intl config\n * @param cache cache for formatter instances to prevent memory leak\n */\nexport function createIntl<T = string>(\n  config: IntlConfig<T>,\n  cache?: IntlCache\n): IntlShape<T> {\n  const formatters = createFormatters(cache)\n  const resolvedConfig: ResolvedIntlConfig<T> = {\n    ...DEFAULT_INTL_CONFIG,\n    ...config,\n  }\n\n  const {locale, defaultLocale, onError} = resolvedConfig\n  if (!locale) {\n    if (onError) {\n      onError(\n        new InvalidConfigError(\n          `\"locale\" was not configured, using \"${defaultLocale}\" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details`\n        )\n      )\n    }\n    // Since there's no registered locale data for `locale`, this will\n    // fallback to the `defaultLocale` to make sure things can render.\n    // The `messages` are overridden to the `defaultProps` empty object\n    // to maintain referential equality across re-renders. It's assumed\n    // each <FormattedMessage> contains a `defaultMessage` prop.\n    resolvedConfig.locale = resolvedConfig.defaultLocale || 'en'\n  } else if (!Intl.NumberFormat.supportedLocalesOf(locale).length && onError) {\n    onError(\n      new MissingDataError(\n        `Missing locale data for locale: \"${locale}\" in Intl.NumberFormat. Using default locale: \"${defaultLocale}\" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`\n      )\n    )\n  } else if (\n    !Intl.DateTimeFormat.supportedLocalesOf(locale).length &&\n    onError\n  ) {\n    onError(\n      new MissingDataError(\n        `Missing locale data for locale: \"${locale}\" in Intl.DateTimeFormat. Using default locale: \"${defaultLocale}\" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`\n      )\n    )\n  }\n\n  verifyConfigMessages(resolvedConfig)\n  return {\n    ...resolvedConfig,\n    formatters,\n    formatNumber: formatNumber.bind(\n      null,\n      resolvedConfig,\n      formatters.getNumberFormat\n    ),\n    formatNumberToParts: formatNumberToParts.bind(\n      null,\n      resolvedConfig,\n      formatters.getNumberFormat\n    ),\n    formatDuration: formatDuration.bind(\n      null,\n      resolvedConfig,\n      formatters.getDurationFormat\n    ),\n    formatDurationToParts: formatDurationToParts.bind(\n      null,\n      resolvedConfig,\n      formatters.getDurationFormat\n    ),\n    formatRelativeTime: formatRelativeTime.bind(\n      null,\n      resolvedConfig,\n      formatters.getRelativeTimeFormat\n    ),\n    formatDate: formatDate.bind(\n      null,\n      resolvedConfig,\n      formatters.getDateTimeFormat\n    ),\n    formatDateToParts: formatDateToParts.bind(\n      null,\n      resolvedConfig,\n      formatters.getDateTimeFormat\n    ),\n    formatTime: formatTime.bind(\n      null,\n      resolvedConfig,\n      formatters.getDateTimeFormat\n    ),\n    formatDateTimeRange: formatDateTimeRange.bind(\n      null,\n      resolvedConfig,\n      formatters.getDateTimeFormat\n    ),\n    formatTimeToParts: formatTimeToParts.bind(\n      null,\n      resolvedConfig,\n      formatters.getDateTimeFormat\n    ),\n    formatPlural: formatPlural.bind(\n      null,\n      resolvedConfig,\n      formatters.getPluralRules\n    ),\n    formatMessage: formatMessage.bind(null, resolvedConfig, formatters),\n    $t: formatMessage.bind(null, resolvedConfig, formatters),\n    formatList: formatList.bind(null, resolvedConfig, formatters.getListFormat),\n    formatListToParts: formatListToParts.bind(\n      null,\n      resolvedConfig,\n      formatters.getListFormat\n    ),\n    formatDisplayName: formatDisplayName.bind(\n      null,\n      resolvedConfig,\n      formatters.getDisplayNames\n    ),\n  }\n}\n","import type { IntlShape } from '@formatjs/intl';\n\nexport type FormatDateParameters = Parameters<IntlShape<string>['formatDate']>;\n\nexport function formatDate(\n  intlShape: IntlShape,\n  ...[value, formatOptions]: FormatDateParameters\n): string {\n  return intlShape.formatDate(value, formatOptions);\n}\n","import type { IntlShape } from '@formatjs/intl';\n\nexport type FormatDateRangeParameters = Parameters<\n  IntlShape<string>['formatDateTimeRange']\n>;\n\nexport function formatDateRange(\n  intlShape: IntlShape,\n  ...[from, to, formatOptions]: FormatDateRangeParameters\n): string {\n  return intlShape.formatDateTimeRange(from, to, formatOptions);\n}\n","import type { IntlShape } from '@formatjs/intl';\n\ntype FormatjsParameters = Parameters<IntlShape<string>['formatDisplayName']>;\n\nexport type FormatDisplayNameParameters = [\n  FormatjsParameters[0],\n  (\n    | {\n        fallback?: FormatjsParameters[1]['fallback'];\n        languageDisplay?: FormatjsParameters[1]['languageDisplay'];\n        locale?: string;\n        style?: FormatjsParameters[1]['style'];\n        type: 'language';\n      }\n    | {\n        fallback?: FormatjsParameters[1]['fallback'];\n        locale?: string;\n        style?: FormatjsParameters[1]['style'];\n        type: Exclude<FormatjsParameters[1]['type'], 'language'>;\n      }\n  ),\n];\n\nexport function formatDisplayName(\n  intlShape: IntlShape,\n  ...[value, formatOptions]: FormatDisplayNameParameters\n): string {\n  return intlShape.formatDisplayName(value, formatOptions) ?? '';\n}\n","import type { IntlShape } from '@formatjs/intl';\n\nexport type FormatListParameters = Parameters<IntlShape<string>['formatList']>;\n\nexport function formatList(\n  intlShape: IntlShape,\n  ...[value, formatOptions]: FormatListParameters\n): string {\n  return intlShape.formatList(value, formatOptions);\n}\n","import type { IntlShape } from '@formatjs/intl';\n\nexport type FormatNumberParameters = Parameters<\n  IntlShape<string>['formatNumber']\n>;\n\nexport function formatNumber(\n  intlShape: IntlShape,\n  ...[value, formatOptions]: FormatNumberParameters\n): string {\n  return intlShape.formatNumber(value, formatOptions);\n}\n","import type { IntlShape } from '@formatjs/intl';\n\nexport type FormatRelativeTimeParameters = Parameters<\n  IntlShape<string>['formatRelativeTime']\n>;\n\nexport function formatRelativeTime(\n  intlShape: IntlShape,\n  ...[value, unit, formatOptions]: FormatRelativeTimeParameters\n): string {\n  return intlShape.formatRelativeTime(value, unit, formatOptions);\n}\n","import type { IntlShape } from '@formatjs/intl';\n\nexport type FormatTimeParameters = Parameters<IntlShape<string>['formatTime']>;\n\nexport function formatTime(\n  intlShape: IntlShape,\n  ...[value, formatOptions]: FormatTimeParameters\n): string {\n  return intlShape.formatTime(value, formatOptions);\n}\n","import { getOwner } from '@ember/owner';\n\ntype SimpleDocument = {\n  documentElement: HTMLHtmlElement;\n};\n\n/**\n * @private\n */\nexport function getHtmlElement(context: object): HTMLHtmlElement | undefined {\n  const owner = getOwner(context);\n\n  if (owner === undefined) {\n    return undefined;\n  }\n\n  const documentService = owner.lookup('service:-document') as\n    SimpleDocument | undefined;\n\n  return documentService?.documentElement;\n}\n","import { capabilities } from '@ember/modifier';\nimport { destroy } from '@ember/destroyable';\nimport type Owner from '@ember/owner';\n\nimport type ClassBasedModifier from './modifier';\nimport type { ArgsFor, ElementFor } from '../signature';\n\n/**\n * The state bucket used throughout the life-cycle of the modifier. Basically a\n * state *machine*, where the framework calls us with the version we hand back\n * to it at each phase. The two states are the two `extends` versions of this\n * below.\n *\n * @internal\n */\ninterface State<S> {\n  instance: ClassBasedModifier<S>;\n}\n\n/**\n * The `State` after calling `createModifier`, and therefore the state available\n * at the start of `InstallModifier`.\n * @internal\n */\ninterface CreatedState<S> extends State<S> {\n  element: null;\n}\n\n/**\n * The `State` after calling `installModifier`, and therefore the state\n * available in all `updateModifier` calls and in `destroyModifier`.\n * @internal\n */\ninterface InstalledState<S> extends State<S> {\n  element: ElementFor<S>;\n}\n\n// Wraps the unsafe (b/c it mutates, rather than creating new state) code that\n// TS does not yet understand.\nfunction installElement<S>(\n  state: CreatedState<S>,\n  element: ElementFor<S>,\n): InstalledState<S> {\n  // SAFETY: this cast represents how we are actually handling the state machine\n  // transition: from this point forward in the lifecycle of the modifier, it\n  // always behaves as `InstalledState<S>`. It is safe because, and *only*\n  // because, we immediately initialize `element`. (We cannot create a new state\n  // from the old one because the modifier manager API expects mutation of a\n  // single state bucket rather than updating it at hook calls.)\n  const installedState = state as State<S> as InstalledState<S>;\n  installedState.element = element;\n  return installedState;\n}\n\nexport default class ClassBasedModifierManager<S> {\n  capabilities = capabilities('3.22');\n\n  constructor(private owner: Owner) {}\n\n  createModifier(\n    modifierClass: typeof ClassBasedModifier,\n    args: ArgsFor<S>,\n  ): CreatedState<S> {\n    const instance = new modifierClass(this.owner, args);\n    return { instance, element: null };\n  }\n\n  installModifier(\n    createdState: CreatedState<S>,\n    element: ElementFor<S>,\n    args: ArgsFor<S>,\n  ): void {\n    const state = installElement(createdState, element);\n    state.instance.modify(element, args.positional, args.named);\n  }\n\n  updateModifier(state: InstalledState<S>, args: ArgsFor<S>): void {\n    state.instance.modify(state.element, args.positional, args.named);\n  }\n\n  destroyModifier({ instance }: InstalledState<S>): void {\n    destroy(instance);\n  }\n}\n","import { setOwner } from '@ember/application';\nimport { setModifierManager } from '@ember/modifier';\nimport type Owner from '@ember/owner';\nimport Manager from './modifier-manager.ts';\nimport type {\n  ElementFor,\n  ArgsFor,\n  DefaultSignature,\n  PositionalArgs,\n  NamedArgs,\n} from '../signature';\nimport type Opaque from '../opaque';\n\n// Preserve the signature on a class-based modifier, so it can be plucked off\n// later (by e.g. Glint), using interface merging with an opaque item to\n// preserve it in the type system. The fact that it's an empty interface is\n// actually the point: it *only* hooks the type parameter into the opaque\n// (nominal) type. Note that this is distinct from the function-based modifier\n// type intentionally, because it is actually the static class side of a\n// class-based modifier which corresponds to the result of calling `modifier()`\n// with a callback defining a function-based modifier.\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport default interface ClassBasedModifier<S = DefaultSignature>\n  extends Opaque<S> {}\n\n/**\n * A base class for modifiers which need more capabilities than function-based\n * modifiers. Useful if, for example:\n *\n * 1. You need to inject services and access them\n * 2. You need fine-grained control of updates, either for performance or\n *    convenience reasons, and don't want to teardown the state of your modifier\n *    every time only to set it up again.\n * 3. You need to store some local state within your modifier.\n *\n * The lifecycle hooks of class modifiers are tracked. When they run, they any\n * values they access will be added to the modifier, and the modifier will\n * update if any of those values change.\n */\n// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging\nexport default class ClassBasedModifier<S = DefaultSignature> {\n  // `args` is passed here for the sake of subclasses to have access to args in\n  // their constructors while having constructors which are properly asssignable\n  // for the superclass.\n  /**\n   *\n   * @param owner An instance of an Owner (for service injection etc.).\n   * @param args The positional and named arguments passed to the modifier.\n   */\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  constructor(owner: Owner, args: ArgsFor<S>) {\n    setOwner(this, owner);\n  }\n\n  /**\n   * Called when the modifier is installed and any time any tracked state used\n   * in the modifier changes.\n   *\n   * If you need to do first-time-only setup, create a class field representing\n   * the initialization state and check it when running the hook. That is also\n   * where and when you should use `registerDestructor` for any teardown you\n   * need to do. For example:\n   *\n   * ```js\n   * function disconnect(instance) {\n   *  instance.observer?.disconnect();\n   * }\n   *\n   * class IntersectionObserver extends Modifier {\n   *   observer;\n   *\n   *   constructor(owner, args) {\n   *     super(owner, args);\n   *     registerDestructor(this, disconnect);\n   *   }\n   *\n   *   modify(element, callback, options) {\n   *     disconnect(this);\n   *\n   *     this.observer = new IntersectionObserver(callback, options);\n   *     this.observer.observe(element);\n   *   }\n   * }\n   * ```\n   *\n   * @param element The element to which the modifier is applied.\n   * @param positional The positional arguments to the modifier.\n   * @param named The named arguments to the modifier.\n   */\n  modify(\n    /* eslint-disable @typescript-eslint/no-unused-vars */\n    element: ElementFor<S>,\n    positional: PositionalArgs<S>,\n    named: NamedArgs<S>,\n    /* eslint-enable @typescript-eslint/no-unused-vars */\n  ): void {\n    /* no op, for subclassing */\n  }\n}\n\nsetModifierManager((owner) => new Manager(owner), ClassBasedModifier);\n","import { setModifierManager } from '@ember/modifier';\nimport type {\n  ElementFor,\n  EmptyObject,\n  NamedArgs,\n  PositionalArgs,\n} from '../signature';\nimport type Modifier from '../class-based/modifier';\nimport FunctionBasedModifierManager from './modifier-manager.ts';\n\n// Provide a singleton manager.\nconst MANAGER = new FunctionBasedModifierManager();\n\n// This type exists to provide a non-user-constructible, non-subclassable\n// type representing the conceptual \"instance type\" of a function modifier.\n// The abstract field of type `never` prevents subclassing in userspace of\n// the value returned from `modifier()`. By extending `Modifier<S>`, any\n// augmentations of the `Modifier` type performed by tools like Glint will\n// also apply to function-based modifiers as well.\nexport declare abstract class FunctionBasedModifierInstance<\n  S,\n> extends Modifier<S> {\n  protected abstract __concrete__: never;\n}\n\n// This provides a type whose only purpose here is to represent the runtime\n// type of a function-based modifier: a virtually opaque item. The fact that it's\n// a bare constructor type allows `modifier()` to preserve type parameters from\n// a generic function it's passed, and by making it abstract and impossible to\n// subclass (see above) we prevent users from attempting to instantiate the return\n// value from a `modifier()` call.\nexport type FunctionBasedModifier<S> =\n  abstract new () => FunctionBasedModifierInstance<S>;\n\n/**\n * The (optional) return type for a modifier which needs to perform some kind of\n * cleanup or teardown -- for example, removing an event listener from an\n * element besides the one passed into the modifier.\n */\nexport type Teardown = () => unknown;\n\n/**\n * An API for writing simple modifiers.\n *\n * This function runs the first time when the element the modifier was applied\n * to is inserted into the DOM, and it *autotracks* while running. Any values\n * that it accesses will be tracked, including any of its arguments that it\n * accesses, and if any of them changes, the function will run again.\n *\n * **Note:** this will *not* automatically rerun because an argument changes. It\n * will only rerun if it is *using* that argument (the same as with auto-tracked\n * state in general).\n *\n * The modifier can also optionally return a *destructor*. The destructor\n * function will be run just before the next update, and when the element is\n * being removed entirely. It should generally clean up the changes that the\n * modifier made in the first place.\n *\n * @param fn The function which defines the modifier.\n */\n// This overload allows users to write types directly on the callback passed to\n// the `modifier` function and infer the resulting type correctly.\nexport default function modifier<\n  E extends Element,\n  P extends unknown[],\n  N = EmptyObject,\n>(\n  fn: (element: E, positional: P, named: N) => void | Teardown,\n): FunctionBasedModifier<{\n  Args: {\n    Positional: P;\n    Named: N;\n  };\n  Element: E;\n}>;\n\n/**\n * An API for writing simple modifiers.\n *\n * This function runs the first time when the element the modifier was applied\n * to is inserted into the DOM, and it *autotracks* while running. Any values\n * that it accesses will be tracked, including any of its arguments that it\n * accesses, and if any of them changes, the function will run again.\n *\n * **Note:** this will *not* automatically rerun because an argument changes. It\n * will only rerun if it is *using* that argument (the same as with auto-tracked\n * state in general).\n *\n * The modifier can also optionally return a *destructor*. The destructor\n * function will be run just before the next update, and when the element is\n * being removed entirely. It should generally clean up the changes that the\n * modifier made in the first place.\n *\n * @param fn The function which defines the modifier.\n */\n// This overload allows users to provide a `Signature` type explicitly at the\n// modifier definition site, e.g. `modifier<Sig>((el, pos, named) => {...})`.\n// **Note:** this overload must appear second, since TS' inference engine will\n// not correctly infer the type of `S` here from the types on the supplied\n// callback.\nexport default function modifier<S>(\n  fn: (\n    element: ElementFor<S>,\n    positional: PositionalArgs<S>,\n    named: NamedArgs<S>,\n  ) => void | Teardown,\n): FunctionBasedModifier<{\n  Element: ElementFor<S>;\n  Args: {\n    Named: NamedArgs<S>;\n    Positional: PositionalArgs<S>;\n  };\n}>;\n\n// This is the runtime signature; it performs no inference whatsover and just\n// uses the simplest version of the invocation possible since, for the case of\n// setting it on the modifier manager, we don't *need* any of that info, and\n// the two previous overloads capture all invocations from a type perspective.\nexport default function modifier(\n  fn: (\n    element: Element,\n    positional: unknown[],\n    named: object,\n  ) => void | Teardown,\n  options?: {\n    name: string;\n  },\n): FunctionBasedModifier<{\n  Element: Element;\n  Args: {\n    Named: object;\n    Positional: unknown[];\n  };\n}> {\n  fn.toString = () => options?.name || fn.name;\n  // SAFETY: the cast here is a *lie*, but it is a useful one. The actual return\n  // type of `setModifierManager` today is `void`; we pretend it actually\n  // returns an opaque `Modifier` type so that we can provide a result from this\n  // type which is useful to TS-aware tooling (e.g. Glint).\n  return setModifierManager(\n    () => MANAGER,\n    fn,\n  ) as unknown as FunctionBasedModifier<{\n    Element: Element;\n    Args: {\n      Named: object;\n      Positional: unknown[];\n    };\n  }>;\n}\n\n/**\n * @internal\n */\nexport type FunctionBasedModifierDefinition<S> = (\n  element: ElementFor<S>,\n  positional: PositionalArgs<S>,\n  named: NamedArgs<S>,\n) => void | Teardown;\n","import { capabilities } from '@ember/modifier';\nimport type { FunctionBasedModifierDefinition, Teardown } from './modifier';\nimport type { ArgsFor, ElementFor } from '../signature';\n\ninterface State<S> {\n  instance: FunctionBasedModifierDefinition<S>;\n}\n\ninterface CreatedState<S> extends State<S> {\n  element: null;\n}\n\ninterface InstalledState<S> extends State<S> {\n  element: ElementFor<S>;\n  teardown?: Teardown;\n}\n\n// Wraps the unsafe (b/c it mutates, rather than creating new state) code that\n// TS does not yet understand.\nfunction installElement<S>(\n  state: CreatedState<S>,\n  element: ElementFor<S>,\n): InstalledState<S> {\n  // SAFETY: this cast represents how we are actually handling the state machine\n  // transition: from this point forward in the lifecycle of the modifier, it\n  // always behaves as `InstalledState<S>`. It is safe because, and *only*\n  // because, we immediately initialize `element`. (We cannot create a new state\n  // from the old one because the modifier manager API expects mutation of a\n  // single state bucket rather than updating it at hook calls.)\n  const installedState = state as State<S> as InstalledState<S>;\n  installedState.element = element;\n  return installedState;\n}\n\nexport default class FunctionBasedModifierManager<S> {\n  capabilities = capabilities('3.22');\n\n  createModifier(\n    instance: FunctionBasedModifierDefinition<S>,\n  ): CreatedState<S> {\n    return { element: null, instance };\n  }\n\n  installModifier(\n    createdState: CreatedState<S>,\n    element: ElementFor<S>,\n    args: ArgsFor<S>,\n  ): void {\n    const state = installElement(createdState, element);\n\n    const { positional, named } = args;\n    const teardown = createdState.instance(element, positional, named);\n    if (typeof teardown === 'function') {\n      state.teardown = teardown;\n    }\n  }\n\n  updateModifier(state: InstalledState<S>, args: ArgsFor<S>): void {\n    if (typeof state.teardown === 'function') {\n      state.teardown();\n    }\n\n    const teardown = state.instance(state.element, args.positional, args.named);\n    if (typeof teardown === 'function') {\n      state.teardown = teardown;\n    }\n  }\n\n  destroyModifier(state: InstalledState<S>): void {\n    if (typeof state.teardown === 'function') {\n      state.teardown();\n    }\n  }\n\n  getDebugName(state: InstalledState<S>): string {\n    return state.instance.toString();\n  }\n\n  getDebugInstance(state: InstalledState<S>): InstalledState<S> {\n    return state;\n  }\n}\n","import { service } from '@ember/service';\nimport Helper from '@ember/component/helper';\nimport { guidFor } from '@ember/object/internals';\n\nimport type Owner from '@ember/owner';\nimport type PageTitleService from '../services/page-title.ts';\nimport type { PageTitleToken } from '../private-types.ts';\n\nexport type PageTitleHelperOptions = Pick<\n  PageTitleToken,\n  'prepend' | 'front' | 'replace' | 'separator'\n>;\n\ninterface Signature {\n  Args: {\n    Positional: string[];\n    Named: PageTitleHelperOptions;\n  };\n  Return: void;\n}\n\n/**\n * `{{pageTitle}}` helper used to set the title of the current route context.\n *\n * ```gjs\n * import { pageTitle } from 'ember-page-title';\n *\n * <template>\n *   {{pageTitle \"the text to set the tab's title to\"}}\n *   {{pageTitle \\@model.post.title}}\n * </template>\n * ```\n */\nexport default class PageTitle extends Helper<Signature> {\n  @service('page-title') declare tokens: PageTitleService;\n\n  tokenId = guidFor(this);\n\n  constructor(owner: Owner) {\n    super(owner);\n    this.tokens.push({ id: this.tokenId });\n  }\n\n  compute(params: string[], userOptions: PageTitleHelperOptions) {\n    const options = {\n      ...userOptions,\n      id: this.tokenId,\n      title: params.join(''),\n    };\n\n    this.tokens.push(options);\n    this.tokens.scheduleTitleUpdate();\n    // We must return an empty value here because otherwise\n    // invoking the pageTitle helper will render something\n    // in the component it's used in, and we don't want that.\n    //\n    // pageTitle is a side-effecting helper.\n    // We *synchronize* the document.title with our internal state.\n    return '';\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.tokens.remove(this.tokenId);\n    this.tokens.scheduleTitleUpdate();\n  }\n}\n","import { scheduleOnce } from '@ember/runloop';\nimport Service, { service } from '@ember/service';\nimport { assert } from '@ember/debug';\nimport type ApplicationInstance from '@ember/application/instance';\nimport type RouterService from '@ember/routing/router-service';\nimport type Owner from '@ember/owner';\n\nimport type {\n  FastBootDocument,\n  PageTitleToken,\n  PageTitleConfig,\n} from '../private-types.ts';\n\nconst isFastBoot = typeof FastBoot !== 'undefined';\n\nconst RouterEvent = {\n  ROUTE_DID_CHANGE: 'routeDidChange',\n} as const;\n\nfunction hasResolveRegistration(owner: Owner): owner is ApplicationInstance {\n  return `resolveRegistration` in owner;\n}\n\nfunction hasPageTitleConfig(\n  fromEnv: unknown,\n): fromEnv is { pageTitle: PageTitleConfig } {\n  if (typeof fromEnv !== 'object') return false;\n  if (fromEnv === null) return false;\n\n  // all properties on the pageTitle config are optional,\n  // so we can't check for more\n  return 'pageTitle' in fromEnv;\n}\n\nconst configKeys = ['separator', 'prepend', 'replace'] as const;\n\n/**\n  @class page-title\n  @extends Ember.Service\n */\nexport default class PageTitleService extends Service {\n  @service('router') declare router: RouterService;\n\n  // in fastboot context \"document\" is instance of\n  // ember-fastboot/simple-dom document\n  @service('-document') declare private document: FastBootDocument;\n\n  tokens: PageTitleToken[] = [];\n\n  _defaultConfig: PageTitleConfig = {\n    // The default separator to use between tokens.\n    separator: ' | ',\n\n    // The default prepend value to use.\n    prepend: true,\n\n    // The default replace value to use.\n    replace: null,\n  };\n\n  constructor(owner: Owner) {\n    super(owner);\n    this._validateExistingTitleElement();\n\n    if (hasResolveRegistration(owner)) {\n      const config = owner.resolveRegistration('config:environment');\n\n      if (hasPageTitleConfig(config)) {\n        configKeys.forEach((key) => {\n          const configValue = config.pageTitle[key];\n\n          if (\n            configValue !== undefined &&\n            configValue !== null &&\n            configValue !== ''\n          ) {\n            // SAFETY: how is one supposed to iterate over keys for an object and have it\n            //         known to the compiler that both objects, having the same shape,\n            //         will have the same type per-value?\n            //         as-is, the `configValue` is a union of all value-types from the object.\n            // eslint-disable-next-line @typescript-eslint/no-explicit-any\n            (this._defaultConfig[key] as any) = configValue;\n          }\n        });\n      }\n    }\n    this.router.on(RouterEvent.ROUTE_DID_CHANGE, this.scheduleTitleUpdate);\n  }\n\n  applyTokenDefaults(token: PageTitleToken) {\n    const defaultSeparator = this._defaultConfig.separator;\n    const defaultPrepend = this._defaultConfig.prepend;\n    const defaultReplace = this._defaultConfig.replace;\n\n    token.previous ??= null;\n    token.next ??= null;\n\n    if (token.separator == null) {\n      token.separator = defaultSeparator;\n    }\n\n    if (token.prepend == null && defaultPrepend != null) {\n      token.prepend = defaultPrepend;\n    }\n\n    if (token.replace == null && defaultReplace != null) {\n      token.replace = defaultReplace;\n    }\n  }\n\n  inheritFromPrevious(token: PageTitleToken) {\n    const previous = token.previous;\n    if (previous) {\n      if (token.separator == null) {\n        token.separator = previous.separator;\n      }\n\n      if (token.prepend == null) {\n        token.prepend = previous.prepend;\n      }\n    }\n  }\n\n  push(token: PageTitleToken) {\n    const tokenForId = this._findTokenById(token.id);\n    if (tokenForId) {\n      const index = this.tokens.indexOf(tokenForId);\n      const tokens = [...this.tokens];\n      const previous = tokenForId.previous;\n      token.previous = previous;\n      token.next = tokenForId.next;\n      this.inheritFromPrevious(token);\n      this.applyTokenDefaults(token);\n\n      tokens.splice(index, 1, token);\n      this.tokens = tokens;\n      return;\n    }\n\n    const previous = this.tokens.slice(-1)[0];\n    if (previous) {\n      token.previous = previous ?? null;\n      previous.next = token;\n      this.inheritFromPrevious(token);\n    }\n\n    this.applyTokenDefaults(token);\n    this.tokens = [...this.tokens, token];\n  }\n\n  remove(id: PageTitleToken['id']) {\n    const token = this._findTokenById(id);\n\n    if (!token) return;\n\n    const { next, previous } = token;\n    if (next) {\n      next.previous = previous;\n    }\n\n    if (previous) {\n      previous.next = next;\n    }\n\n    token.previous = token.next = null;\n\n    const tokens = [...this.tokens];\n    tokens.splice(tokens.indexOf(token), 1);\n    this.tokens = tokens;\n  }\n\n  get visibleTokens(): PageTitleToken[] {\n    const tokens = this.tokens;\n    let i = tokens ? tokens.length : 0;\n    const visible = [];\n    while (i--) {\n      const token = tokens[i];\n\n      if (!token) continue;\n\n      if (token.replace) {\n        visible.unshift(token);\n        break;\n      } else {\n        visible.unshift(token);\n      }\n    }\n    return visible;\n  }\n\n  get sortedTokens(): PageTitleToken[] {\n    const visible = this.visibleTokens;\n    if (!visible) return [];\n\n    let appending = true;\n    let group: PageTitleToken[] = [];\n    const groups = [group];\n    const frontGroups: PageTitleToken[] = [];\n\n    visible.forEach((token) => {\n      if (token.front) {\n        frontGroups.unshift(token);\n      } else if (token.prepend) {\n        if (appending) {\n          appending = false;\n          group = [];\n          groups.push(group);\n        }\n        group.unshift(token);\n      } else {\n        if (!appending) {\n          appending = true;\n          group = [];\n          groups.push(group);\n        }\n        group.push(token);\n      }\n    });\n\n    return frontGroups.concat(groups.reduce((E, group) => E.concat(group), []));\n  }\n\n  scheduleTitleUpdate = () => {\n    // eslint-disable-next-line ember/no-runloop, @typescript-eslint/unbound-method\n    scheduleOnce('afterRender', this, this._updateTitle);\n  };\n\n  toString(): string {\n    const tokens = this.sortedTokens;\n    const title = [];\n\n    for (let i = 0, len = tokens.length; i < len; i++) {\n      const token = tokens[i];\n      if (!token) continue;\n\n      if (token.title) {\n        title.push(token.title);\n        if (i + 1 < len) {\n          title.push(token.separator);\n        }\n      }\n    }\n\n    return title.join('');\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.router.off(RouterEvent.ROUTE_DID_CHANGE, this.scheduleTitleUpdate);\n  }\n\n  private _updateTitle() {\n    const toBeTitle = this.toString();\n\n    if (isFastBoot) {\n      this.updateFastbootTitle(toBeTitle);\n    } else {\n      /**\n       * When rendering app with \"?fastboot=false\" (http://ember-fastboot.com/docs/user-guide#disabling-fastboot)\n       * We will not have <title> element present in DOM.\n       *\n       * But this is fine as by HTML spec,\n       * one is created upon assigning \"document.title\" value;\n       *\n       * https://html.spec.whatwg.org/multipage/dom.html#dom-tree-accessors\n       */\n      this.document.title = toBeTitle;\n    }\n\n    this.titleDidUpdate(toBeTitle);\n  }\n\n  /**\n   * Validate if there's more than one title element present.\n   *\n   * Example: ember-cli-head can cause conflicting updates.\n   * @private\n   */\n  private _validateExistingTitleElement() {\n    if (isFastBoot) {\n      return;\n    }\n    assert(\n      '[ember-page-title]: Multiple title elements found. Check for other addons like ember-cli-head updating <title> as well.',\n      document.head.querySelectorAll('title').length <= 1,\n    );\n  }\n\n  /**\n   * Find token by id\n   *\n   * @param {String} id\n   * @private\n   */\n  private _findTokenById(id: PageTitleToken['id']) {\n    return this.tokens.find((token) => token.id === id);\n  }\n\n  updateFastbootTitle(toBeTitle: string) {\n    if (!isFastBoot) {\n      return;\n    }\n    const headElement = this.document.head;\n    const headChildNodes = headElement.childNodes;\n\n    // Remove existing title elements from previous render cycle\n    for (let i = 0; i < headChildNodes.length; i++) {\n      const node = headChildNodes[i];\n      if (!node) continue;\n\n      if (node.nodeName.toLowerCase() === 'title') {\n        headElement.removeChild(node);\n      }\n    }\n\n    // Add title element with latest value\n    const titleEl = this.document.createElement('title');\n    const titleContents = this.document.createTextNode(toBeTitle);\n    titleEl.appendChild(titleContents);\n    headElement.appendChild(titleEl);\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  titleDidUpdate(_title: string) {\n    // default is empty, meant to be overriden by user if desired\n  }\n}\n","import Component from '@glimmer/component';\nimport { cached, tracked } from '@glimmer/tracking';\nimport { action, get } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport isEqual from '../utils/equal.ts';\nimport { assert } from '@ember/debug';\nimport {\n  indexOfOption,\n  filterOptions,\n  findOptionWithOffset,\n  countOptions,\n  defaultHighlighted,\n  advanceSelectableOption,\n  defaultMatcher,\n  defaultTypeAheadMatcher,\n  pathForOption,\n} from '../utils/group-utils.ts';\nimport isSelectedPresent from '../helpers/ember-power-select-is-selected-present.ts';\nimport { task, timeout } from 'ember-concurrency';\nimport { modifier } from 'ember-modifier';\nimport PowerSelectLabel from './power-select/label.gts';\nimport PowerSelectTrigger from './power-select/trigger.gts';\nimport PowerSelectPlaceholderComponent from './power-select/placeholder.gts';\nimport PowerSelectBeforeOptions from './power-select/before-options.gts';\nimport SearchMessageComponent from './power-select/search-message.gts';\nimport NoMatchesMessageComponent from './power-select/no-matches-message.gts';\nimport PowerSelectOptions from './power-select/options.gts';\nimport PowerSelectGroupComponent from './power-select/power-select-group.gts';\nimport type { BasicDropdownDefaultBlock } from 'ember-basic-dropdown/components/basic-dropdown';\nimport type { Dropdown, TRootEventType } from 'ember-basic-dropdown/types';\nimport type Owner from '@ember/owner';\nimport type {\n  CalculatePosition,\n  HorizontalPosition,\n  VerticalPosition,\n} from 'ember-basic-dropdown/utils/calculate-position';\nimport type { ComponentLike } from '@glint/template';\nimport type { PowerSelectPlaceholderSignature } from './power-select/placeholder.gts';\nimport type { PowerSelectSearchMessageSignature } from './power-select/search-message.gts';\nimport type { PowerSelectNoMatchesMessageSignature } from './power-select/no-matches-message.gts';\nimport type { BasicDropdownTriggerSignature } from 'ember-basic-dropdown/components/basic-dropdown-trigger';\nimport type { BasicDropdownContentSignature } from 'ember-basic-dropdown/components/basic-dropdown-content';\nimport type { PowerSelectLabelSignature } from './power-select/label.gts';\nimport type { PowerSelectTriggerSignature } from './power-select/trigger.gts';\nimport type { PowerSelectBeforeOptionsSignature } from './power-select/before-options.gts';\nimport type { PowerSelectOptionsSignature } from './power-select/options.gts';\nimport type { PowerSelectPowerSelectGroupSignature } from './power-select/power-select-group.gts';\nimport type {\n  DefaultHighlightedParams,\n  MatcherFn,\n  Option,\n  PowerSelectAfterOptionsSignature,\n  PowerSelectSelectedItemSignature,\n  Select,\n  Selected,\n  TLabelClickAction,\n  TSearchFieldPosition,\n} from '../types.ts';\nimport BasicDropdown from 'ember-basic-dropdown/components/basic-dropdown';\nimport { on } from '@ember/modifier';\nimport { or, and, not, notEq } from 'ember-truth-helpers';\nimport { concat } from '@ember/helper';\n\ninterface PromiseProxy<T = unknown> extends Promise<T> {\n  content: T;\n}\n\ninterface CancellablePromise<T> extends Promise<T> {\n  cancel: () => void;\n}\n\ninterface Sliceable<T> {\n  slice(): T[];\n}\n\n// Some args are not listed here because they are only accessed from the template. Should I list them?\nexport interface PowerSelectArgs<\n  T,\n  IsMultiple extends boolean = false,\n  TExtra = unknown,\n> {\n  highlightOnHover?: boolean;\n  placeholderComponent?:\n    | ComponentLike<\n        PowerSelectPlaceholderSignature<NoInfer<T>, TExtra, NoInfer<IsMultiple>>\n      >\n    | ComponentLike<PowerSelectPlaceholderSignature<unknown>>;\n  searchMessage?: string;\n  searchMessageComponent?:\n    | ComponentLike<\n        PowerSelectSearchMessageSignature<\n          NoInfer<T>,\n          TExtra,\n          NoInfer<IsMultiple>\n        >\n      >\n    | ComponentLike<PowerSelectSearchMessageSignature<unknown>>;\n  noMatchesMessage?: string;\n  noMatchesMessageComponent?:\n    | ComponentLike<\n        PowerSelectNoMatchesMessageSignature<\n          NoInfer<T>,\n          TExtra,\n          NoInfer<IsMultiple>\n        >\n      >\n    | ComponentLike<PowerSelectNoMatchesMessageSignature<unknown>>;\n  matchTriggerWidth?: boolean;\n  resultCountMessage?: (resultCount: number) => string;\n  options?: readonly T[] | Promise<readonly T[]>;\n  selected?: Selected<T, IsMultiple> | Promise<Selected<T, IsMultiple>>;\n  multiple?: IsMultiple;\n  destination?: string;\n  destinationElement?: HTMLElement;\n  closeOnSelect?: boolean;\n  renderInPlace?: boolean;\n  preventScroll?: boolean;\n  defaultHighlighted?:\n    | ((params: DefaultHighlightedParams<T>) => Option<T> | undefined)\n    | Option<T>\n    | undefined;\n  searchField?: string;\n  labelClass?: string;\n  labelText?: string;\n  labelTag?: keyof HTMLElementTagNameMap;\n  labelClickAction?: TLabelClickAction;\n  ariaLabel?: string;\n  ariaLabelledBy?: string;\n  loadingMessage?: string;\n  placeholder?: string;\n  dropdownClass?: string;\n  allowClear?: boolean;\n  searchEnabled?: boolean;\n  animationEnabled?: boolean;\n  tabindex?: number | string;\n  searchPlaceholder?: string;\n  searchFieldPosition?: TSearchFieldPosition;\n  verticalPosition?: VerticalPosition;\n  horizontalPosition?: HorizontalPosition;\n  triggerId?: string;\n  disabled?: boolean;\n  title?: string;\n  triggerRole?: string;\n  required?: string;\n  triggerClass?: string;\n  ariaInvalid?: string;\n  eventType?: BasicDropdownTriggerSignature['Args']['eventType'];\n  rootEventType?: TRootEventType;\n  ariaDescribedBy?: string;\n  calculatePosition?: CalculatePosition;\n  ebdTriggerComponent?: ComponentLike<BasicDropdownTriggerSignature>;\n  ebdContentComponent?: ComponentLike<BasicDropdownContentSignature>;\n  labelComponent?:\n    | ComponentLike<\n        PowerSelectLabelSignature<NoInfer<T>, TExtra, NoInfer<IsMultiple>>\n      >\n    | ComponentLike<PowerSelectLabelSignature<unknown>>;\n  triggerComponent?:\n    | ComponentLike<\n        PowerSelectTriggerSignature<NoInfer<T>, TExtra, NoInfer<IsMultiple>>\n      >\n    | ComponentLike<PowerSelectTriggerSignature<unknown>>;\n  selectedItemComponent?:\n    | ComponentLike<\n        PowerSelectSelectedItemSignature<\n          NoInfer<T>,\n          TExtra,\n          NoInfer<IsMultiple>\n        >\n      >\n    | ComponentLike<PowerSelectSelectedItemSignature<unknown>>;\n  beforeOptionsComponent?:\n    | ComponentLike<\n        PowerSelectBeforeOptionsSignature<\n          NoInfer<T>,\n          TExtra,\n          NoInfer<IsMultiple>\n        >\n      >\n    | ComponentLike<PowerSelectBeforeOptionsSignature<unknown>>;\n  optionsComponent?:\n    | ComponentLike<\n        PowerSelectOptionsSignature<NoInfer<T>, TExtra, NoInfer<IsMultiple>>\n      >\n    | ComponentLike<PowerSelectOptionsSignature<unknown>>;\n  groupComponent?:\n    | ComponentLike<\n        PowerSelectPowerSelectGroupSignature<\n          NoInfer<T>,\n          TExtra,\n          NoInfer<IsMultiple>\n        >\n      >\n    | ComponentLike<PowerSelectPowerSelectGroupSignature<unknown>>;\n  afterOptionsComponent?:\n    | ComponentLike<\n        PowerSelectAfterOptionsSignature<\n          NoInfer<T>,\n          TExtra,\n          NoInfer<IsMultiple>\n        >\n      >\n    | ComponentLike<PowerSelectAfterOptionsSignature<unknown>>;\n  extra?: TExtra;\n  matcher?: MatcherFn<T>;\n  initiallyOpened?: boolean;\n  typeAheadOptionMatcher?: MatcherFn<T>;\n  buildSelection?: (\n    selected: Option<T>,\n    select: Select<T, IsMultiple>,\n  ) => Selected<T, IsMultiple>;\n  onChange: (\n    selection: Selected<T, IsMultiple>,\n    select: Select<T, IsMultiple>,\n    event?: Event,\n  ) => void;\n  search?: (\n    term: string,\n    select: Select<T, IsMultiple>,\n  ) => readonly T[] | Promise<readonly T[]> | Promise<void> | void;\n  onOpen?: (\n    select: Select<T, IsMultiple>,\n    e: Event | undefined,\n  ) => boolean | void | undefined;\n  onClose?: (\n    select: Select<T, IsMultiple>,\n    e: Event | undefined,\n  ) => boolean | void | undefined;\n  onInput?: (\n    term: string,\n    select: Select<T, IsMultiple>,\n    e: Event,\n  ) => string | false | void | PromiseLike<void>;\n  onKeydown?: (\n    select: Select<T, IsMultiple>,\n    e: KeyboardEvent,\n  ) => boolean | void | undefined;\n  onFocus?: (select: Select<T, IsMultiple>, event: FocusEvent) => void;\n  onBlur?: (select: Select<T, IsMultiple>, event: FocusEvent) => void;\n  scrollTo?: (option: Selected<T>, select: Select<T, IsMultiple>) => void;\n  registerAPI?: (select: Select<T, IsMultiple>) => void;\n}\n\nexport interface PowerSelectSignature<\n  T,\n  IsMultiple extends boolean = false,\n  TExtra = undefined,\n> {\n  Element: Element;\n  Args: PowerSelectArgs<T, IsMultiple, TExtra>;\n  Blocks: {\n    default: [option: Option<T>, select: Select<T, IsMultiple>];\n  };\n}\n\nconst isSliceable = <T,>(coll: unknown): coll is Sliceable<T> => {\n  return Array.isArray(coll);\n};\n\nconst isPromiseLike = <T,>(thing: unknown): thing is Promise<T> => {\n  return (\n    typeof thing === 'object' &&\n    thing !== null &&\n    typeof (thing as { then?: unknown }).then === 'function'\n  );\n};\n\nconst isCancellablePromise = <T,>(\n  thing: unknown,\n): thing is CancellablePromise<T> => {\n  return (\n    typeof thing === 'object' &&\n    thing !== null &&\n    typeof (thing as { cancel?: unknown }).cancel === 'function'\n  );\n};\n\nconst toPlainArray = <T,>(\n  collection: T | readonly T[] | Sliceable<T>,\n): readonly T[] | T => {\n  if (isSliceable<T>(collection)) {\n    return collection.slice();\n  } else {\n    return collection;\n  }\n};\n\nfunction getOptionMatcher<T>(\n  matcher: MatcherFn<T>,\n  defaultMatcher: MatcherFn<T>,\n  searchField: string | undefined,\n): MatcherFn<T> {\n  if (searchField && matcher === defaultMatcher) {\n    return (option: T | undefined, text: string) =>\n      matcher(get(option, searchField) as T | undefined, text);\n  } else {\n    return (option: T | undefined, text: string) => {\n      assert(\n        '<PowerSelect> If you want the default filtering to work on options that are not plain strings, you need to provide `@searchField`',\n        matcher !== defaultMatcher || typeof option === 'string',\n      );\n      return matcher(option, text);\n    };\n  }\n}\n\nexport default class PowerSelect<\n  T,\n  IsMultiple extends boolean = false,\n  TExtra = undefined,\n> extends Component<PowerSelectSignature<T, IsMultiple, TExtra>> {\n  // Untracked properties\n  _publicAPIActions = {\n    search: this._search.bind(this),\n    highlight: this._highlight.bind(this),\n    select: this._select.bind(this),\n    choose: this._choose.bind(this),\n    scrollTo: this._scrollTo.bind(this),\n    labelClick: this._labelClick.bind(this),\n  };\n\n  // Tracked properties\n  @tracked private _resolvedOptions?: T | readonly T[];\n  @tracked private _resolvedSelected?: Selected<T, IsMultiple> | undefined;\n  @tracked private _repeatingChar = '';\n  @tracked private _expirableSearchText = '';\n  @tracked private _searchResult?: readonly T[];\n  @tracked isActive = false;\n  @tracked loading = false;\n  @tracked searchText = '';\n  @tracked lastSearchedText = '';\n  @tracked highlighted?: Option<T> | undefined;\n  storedAPI!: Select<T, IsMultiple>;\n\n  private _uid = guidFor(this);\n  private _lastOptionsPromise?: Promise<readonly T[]>;\n  private _lastSelectedPromise?:\n    PromiseProxy<Selected<T, IsMultiple>> | Promise<Selected<T, IsMultiple>>;\n  private _lastSearchPromise?:\n    Promise<readonly T[]> | CancellablePromise<readonly T[]> | Promise<void>;\n\n  // Lifecycle hooks\n  constructor(owner: Owner, args: PowerSelectArgs<T, IsMultiple, TExtra>) {\n    super(owner, args);\n    assert(\n      '<PowerSelect> requires an `@onChange` function',\n      this.args.onChange && typeof this.args.onChange === 'function',\n    );\n  }\n\n  willDestroy() {\n    super.willDestroy();\n  }\n\n  // Getters\n  get highlightOnHover(): boolean {\n    return this.args.highlightOnHover === undefined\n      ? true\n      : this.args.highlightOnHover;\n  }\n\n  get labelClickAction(): TLabelClickAction {\n    return this.args.labelClickAction === undefined\n      ? 'focus'\n      : this.args.labelClickAction;\n  }\n\n  get highlightedIndex(): string {\n    const results = this.results;\n    const highlighted = this.highlighted;\n    return pathForOption(results, highlighted);\n  }\n\n  get searchMessage(): string {\n    return this.args.searchMessage === undefined\n      ? 'Type to search'\n      : this.args.searchMessage;\n  }\n\n  get noMatchesMessage(): string {\n    return this.args.noMatchesMessage === undefined\n      ? 'No results found'\n      : this.args.noMatchesMessage;\n  }\n\n  get resultCountMessage(): string {\n    if (typeof this.args.resultCountMessage === 'function') {\n      return this.args.resultCountMessage(this.resultsCount);\n    }\n\n    if (this.resultsCount === 1) {\n      return `${this.resultsCount} result`;\n    }\n\n    return `${this.resultsCount} results`;\n  }\n\n  get matchTriggerWidth() {\n    return this.args.matchTriggerWidth === undefined\n      ? true\n      : this.args.matchTriggerWidth;\n  }\n\n  get mustShowSearchMessage(): boolean {\n    return (\n      !this.loading &&\n      this.searchText.length === 0 &&\n      !!this.args.search &&\n      !!this.searchMessage &&\n      this.resultsCount === 0\n    );\n  }\n\n  get mustShowNoMessages(): boolean {\n    return (\n      !this.loading &&\n      this.resultsCount === 0 &&\n      (!this.args.search || this.lastSearchedText.length > 0)\n    );\n  }\n\n  // Cached so that unrelated state changes (e.g. `highlighted`) don't produce a new array.\n  // Filtering copies groups, so recomputing would give new group objects on every access,\n  // causing `{{#each}}` to tear down and re-render all grouped options (see #2088).\n  @cached\n  get results(): readonly T[] {\n    if (this.searchText.length > 0) {\n      if (this.args.search) {\n        return toPlainArray(this._searchResult || this.options) as readonly T[];\n      } else {\n        return this._filter(this.options, this.searchText);\n      }\n    } else {\n      return this.options;\n    }\n  }\n\n  @cached\n  get options(): readonly T[] {\n    if (this._resolvedOptions) {\n      return toPlainArray(this._resolvedOptions) as readonly T[];\n    }\n    if (this.args.options) {\n      return toPlainArray(this.args.options as readonly T[]) as readonly T[];\n    } else {\n      return [];\n    }\n  }\n\n  get resultsCount(): number {\n    return countOptions(this.results);\n  }\n\n  get selected(): Selected<T, IsMultiple> | undefined {\n    if (isSelectedPresent(this._resolvedSelected)) {\n      return toPlainArray(this._resolvedSelected) as Selected<T, IsMultiple>;\n    } else if (\n      isSelectedPresent(this.args.selected) &&\n      !isPromiseLike(this.args.selected)\n    ) {\n      return toPlainArray(this.args.selected) as Selected<T, IsMultiple>;\n    }\n    return undefined;\n  }\n\n  get ariaMultiSelectable(): boolean {\n    return Array.isArray(this.args.selected);\n  }\n\n  get triggerId(): string {\n    return this.args.triggerId || `${this._uid}-trigger`;\n  }\n\n  get labelId(): string {\n    return `${this._uid}-label`;\n  }\n\n  get ariaLabelledBy(): string | undefined {\n    if (this.args.ariaLabelledBy) {\n      return this.args.ariaLabelledBy;\n    }\n\n    if (this.args.labelText || this.args.labelComponent) {\n      return this.labelId;\n    }\n  }\n\n  get searchFieldPosition(): TSearchFieldPosition {\n    if (this.args.searchFieldPosition !== undefined) {\n      return this.args.searchFieldPosition;\n    }\n\n    if (this.args.multiple) {\n      return 'trigger';\n    }\n\n    return 'before-options';\n  }\n\n  get tabindex(): string | number {\n    if (this.args.multiple) {\n      if (this.args.triggerComponent === undefined && this.args.searchEnabled) {\n        return '-1';\n      } else {\n        return this.args.tabindex || '0';\n      }\n    }\n\n    if (\n      this.args.searchEnabled &&\n      this.args.tabindex === undefined &&\n      this.searchFieldPosition === 'trigger'\n    ) {\n      return '-1';\n    }\n\n    return this.args.tabindex || '0';\n  }\n\n  get buildSelection(): PowerSelectArgs<\n    T,\n    IsMultiple,\n    TExtra\n  >['buildSelection'] {\n    if (this.args.buildSelection) {\n      return this.args.buildSelection;\n    }\n\n    if (this.args.multiple) {\n      return this._defaultMultipleBuildSelection.bind(this);\n    }\n  }\n\n  get labelComponent(): ComponentLike<\n    PowerSelectLabelSignature<T, TExtra, IsMultiple>\n  > {\n    return (this.args.labelComponent ?? PowerSelectLabel) as ComponentLike<\n      PowerSelectLabelSignature<T, TExtra, IsMultiple>\n    >;\n  }\n\n  get triggerComponent(): ComponentLike<\n    PowerSelectTriggerSignature<T, TExtra, IsMultiple>\n  > {\n    return (this.args.triggerComponent ?? PowerSelectTrigger) as ComponentLike<\n      PowerSelectTriggerSignature<T, TExtra, IsMultiple>\n    >;\n  }\n\n  get placeholderComponent(): ComponentLike<\n    PowerSelectPlaceholderSignature<T, TExtra, IsMultiple>\n  > {\n    return (this.args.placeholderComponent ??\n      PowerSelectPlaceholderComponent) as ComponentLike<\n      PowerSelectPlaceholderSignature<T, TExtra, IsMultiple>\n    >;\n  }\n\n  get beforeOptionsComponent(): ComponentLike<\n    PowerSelectBeforeOptionsSignature<T, TExtra, IsMultiple>\n  > {\n    return (this.args.beforeOptionsComponent ??\n      PowerSelectBeforeOptions) as ComponentLike<\n      PowerSelectBeforeOptionsSignature<T, TExtra, IsMultiple>\n    >;\n  }\n\n  get searchMessageComponent(): ComponentLike<\n    PowerSelectSearchMessageSignature<T, TExtra, IsMultiple>\n  > {\n    return (this.args.searchMessageComponent ??\n      SearchMessageComponent) as ComponentLike<\n      PowerSelectSearchMessageSignature<T, TExtra, IsMultiple>\n    >;\n  }\n\n  get noMatchesMessageComponent(): ComponentLike<\n    PowerSelectNoMatchesMessageSignature<T, TExtra, IsMultiple>\n  > {\n    return (this.args.noMatchesMessageComponent ??\n      NoMatchesMessageComponent) as ComponentLike<\n      PowerSelectNoMatchesMessageSignature<T, TExtra, IsMultiple>\n    >;\n  }\n\n  get optionsComponent(): ComponentLike<\n    PowerSelectOptionsSignature<T, TExtra, IsMultiple>\n  > {\n    return (this.args.optionsComponent ?? PowerSelectOptions) as ComponentLike<\n      PowerSelectOptionsSignature<T, TExtra, IsMultiple>\n    >;\n  }\n\n  get groupComponent(): ComponentLike<\n    PowerSelectPowerSelectGroupSignature<T, TExtra, IsMultiple>\n  > {\n    return (this.args.groupComponent ??\n      PowerSelectGroupComponent) as ComponentLike<\n      PowerSelectPowerSelectGroupSignature<T, TExtra, IsMultiple>\n    >;\n  }\n\n  get selectedItemComponent():\n    | ComponentLike<PowerSelectSelectedItemSignature<T, TExtra, IsMultiple>>\n    | undefined {\n    return this.args.selectedItemComponent as\n      | ComponentLike<PowerSelectSelectedItemSignature<T, TExtra, IsMultiple>>\n      | undefined;\n  }\n\n  get afterOptionsComponent():\n    | ComponentLike<PowerSelectAfterOptionsSignature<T, TExtra, IsMultiple>>\n    | undefined {\n    return this.args.afterOptionsComponent as\n      | ComponentLike<PowerSelectAfterOptionsSignature<T, TExtra, IsMultiple>>\n      | undefined;\n  }\n\n  // Actions\n  @action\n  handleOpen(_select: Dropdown, e: Event | undefined): boolean | void {\n    if (this.args.onOpen && this.args.onOpen(this.storedAPI, e) === false) {\n      return false;\n    }\n\n    this.focusInput(this.storedAPI);\n\n    if (e) {\n      if (\n        e instanceof KeyboardEvent &&\n        e.type === 'keydown' &&\n        (e.key === 'ArrowUp' || e.key === 'ArrowDown')\n      ) {\n        e.preventDefault();\n      }\n    }\n    this._resetHighlighted();\n  }\n\n  @action\n  handleClose(_select: Dropdown, e: Event | undefined): boolean | void {\n    // Prevent closing, when somebody was in input field and has clicked into an other position of input field\n    if (\n      this.searchFieldPosition === 'trigger' &&\n      this.storedAPI.isOpen &&\n      e?.type === 'mousedown' &&\n      document.activeElement === e?.target &&\n      (e?.target as HTMLElement).tagName === 'INPUT' &&\n      (e?.target as HTMLElement)?.closest(\n        '[data-ebd-id=\"' + this.storedAPI.uniqueId + '-trigger\"]',\n      )\n    ) {\n      return false;\n    }\n\n    if (this.args.onClose && this.args.onClose(this.storedAPI, e) === false) {\n      return false;\n    }\n    this._highlight(undefined);\n  }\n\n  @action\n  handleInput(e: InputEvent): void {\n    if (e.target === null) return;\n    const term = (e.target as HTMLInputElement).value;\n    let correctedTerm;\n    if (this.args.onInput) {\n      correctedTerm = this.args.onInput(term, this.storedAPI, e);\n      if (correctedTerm === false) {\n        return;\n      }\n    }\n    this._publicAPIActions.search(\n      typeof correctedTerm === 'string' ? correctedTerm : term,\n    );\n  }\n\n  @action\n  handleKeydown(e: KeyboardEvent): boolean | void {\n    if (\n      this.args.onKeydown &&\n      this.args.onKeydown(this.storedAPI, e) === false\n    ) {\n      return false;\n    }\n\n    if (this.args.multiple && e.key === 'Enter' && this.storedAPI.isOpen) {\n      e.stopPropagation();\n      if (this.storedAPI.highlighted !== undefined) {\n        if (\n          !Array.isArray(this.storedAPI.selected) ||\n          this.storedAPI.selected.indexOf(this.storedAPI.highlighted) === -1\n        ) {\n          this.storedAPI.actions.choose(this.storedAPI.highlighted, e);\n          return false;\n        } else {\n          this.storedAPI.actions.close(e);\n          return false;\n        }\n      } else {\n        this.storedAPI.actions.close(e);\n        return false;\n      }\n    }\n\n    if (\n      this.searchFieldPosition === 'trigger' &&\n      !this.storedAPI.isOpen &&\n      e.key !== 'Tab' && // TAB\n      e.key !== 'Enter' && // ENTER\n      e.key !== 'Escape' // ESC\n    ) {\n      this.storedAPI.actions.open(e);\n    }\n    return this._routeKeydown(this.storedAPI, e);\n  }\n\n  @action\n  handleTriggerKeydown(e: KeyboardEvent) {\n    if (\n      this.args.onKeydown &&\n      this.args.onKeydown(this.storedAPI, e) === false\n    ) {\n      e.stopImmediatePropagation();\n      return;\n    }\n    if (e.ctrlKey || e.metaKey) {\n      e.stopImmediatePropagation();\n      return;\n    }\n    if (e.key?.length === 1 && /^[a-z0-9]$/i.test(e.key)) {\n      // Keys 0-9, a-z or numpad keys\n      void this.triggerTypingTask.perform(e);\n    } else if (e.key === ' ') {\n      // Space\n      this._handleKeySpace(this.storedAPI, e);\n    } else {\n      return this._routeKeydown(this.storedAPI, e);\n    }\n  }\n\n  @action\n  _labelClick(event: MouseEvent) {\n    if (!this.storedAPI) {\n      return;\n    }\n\n    // Double-click, do nothing\n    if (event.detail > 1) {\n      return;\n    }\n\n    if (this.labelClickAction === 'open') {\n      this.storedAPI.actions.open();\n      return;\n    } else if (this.labelClickAction === 'focus') {\n      const trigger = this.storedAPI.actions.getTriggerElement();\n\n      if (!trigger) {\n        return;\n      }\n\n      trigger.focus();\n    }\n\n    return true;\n  }\n\n  @action\n  handleFocus(event: FocusEvent): void {\n    if (!this.isDestroying) {\n      void Promise.resolve().then(() => {\n        this._updateIsActive(true);\n      });\n    }\n    if (this.searchFieldPosition === 'trigger') {\n      if (event.target) {\n        const target = event.target as HTMLElement;\n        const input = target.querySelector<HTMLInputElement>(\n          'input[type=\"search\"]',\n        );\n        input?.focus();\n      }\n    }\n    if (this.args.onFocus) {\n      this.args.onFocus(this.storedAPI, event);\n    }\n  }\n\n  @action\n  handleBlur(event: FocusEvent): void {\n    if (!this.isDestroying) {\n      void Promise.resolve().then(() => {\n        this._updateIsActive(false);\n      });\n    }\n    if (this.args.onBlur) {\n      this.args.onBlur(this.storedAPI, event);\n    }\n  }\n\n  // Methods\n  @action\n  _search(term: string): void {\n    if (this.searchText === term) return;\n    this.searchText = term;\n    if (!this.args.search) {\n      this.lastSearchedText = term;\n      this._resetHighlighted();\n    }\n  }\n\n  @action\n  _updateHighlighted(): void {\n    if (this.storedAPI.isOpen) {\n      this._resetHighlighted();\n    }\n  }\n\n  @action\n  _highlight(opt: Option<T> | undefined): void {\n    if (opt && typeof opt === 'object' && 'disabled' in opt && opt.disabled) {\n      return;\n    }\n    this.highlighted = opt;\n  }\n\n  @action\n  _select(selected: Selected<T, IsMultiple>, e?: Event): void {\n    if (!isEqual(this.storedAPI.selected, selected)) {\n      this.args.onChange(selected, this.storedAPI, e);\n    }\n  }\n\n  @action\n  _choose(selected: Option<T>, e?: Event): void {\n    const buildSelection = this.buildSelection;\n    const selection = buildSelection\n      ? buildSelection(selected, this.storedAPI)\n      : selected;\n    this.storedAPI.actions.select(selection as Selected<T, IsMultiple>, e);\n    if (this.args.closeOnSelect !== false) {\n      this.storedAPI.actions.close(e);\n      if (this.searchFieldPosition === 'trigger') {\n        this.searchText = '';\n      }\n      // return false;\n    }\n  }\n\n  @action\n  _scrollTo(option: Selected<T>): void {\n    const select = this.storedAPI;\n    if (!document || !option) {\n      return;\n    }\n    if (this.args.scrollTo) {\n      return this.args.scrollTo(option, select);\n    }\n\n    let root: Document | HTMLElement;\n\n    const triggerElement = select.actions.getTriggerElement();\n    if (triggerElement && triggerElement.getRootNode() instanceof ShadowRoot) {\n      root = triggerElement.getRootNode() as HTMLElement;\n    } else {\n      root = document;\n    }\n\n    const optionsList = root.querySelector(\n      `#ember-power-select-options-${select.uniqueId}`,\n    ) as HTMLElement;\n    if (!optionsList) {\n      return;\n    }\n    const index = indexOfOption(select.results, option);\n    if (index === -1) {\n      return;\n    }\n    const optionElement = optionsList.querySelector(\n      `[data-option-index='${index}']`,\n    ) as HTMLElement;\n    if (!optionElement) {\n      return;\n    }\n    const optionTopScroll = optionElement.offsetTop - optionsList.offsetTop;\n    const optionBottomScroll = optionTopScroll + optionElement.offsetHeight;\n    if (optionBottomScroll > optionsList.offsetHeight + optionsList.scrollTop) {\n      optionsList.scrollTop = optionBottomScroll - optionsList.offsetHeight;\n    } else if (optionTopScroll < optionsList.scrollTop) {\n      optionsList.scrollTop = optionTopScroll;\n    }\n  }\n\n  updateOptions = modifier(\n    () => {\n      this.__updateOptions();\n    },\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    { eager: false },\n  );\n\n  updateSelected = modifier(\n    () => {\n      this.__updateSelected();\n    },\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    { eager: false },\n  );\n\n  updateRegisterAPI = modifier(\n    (triggerElement: Element, [publicAPI]: [Select<T, IsMultiple>]) => {\n      this.__registerAPI(triggerElement, [publicAPI]);\n    },\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    { eager: false },\n  );\n\n  updatePerformSearch = modifier(\n    (triggerElement: Element, [term]: [string]) => {\n      this.__performSearch(triggerElement, [term]);\n    },\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    { eager: false },\n  );\n\n  private __updateOptions() {\n    if (!this.args.options) return;\n    if (isPromiseLike(this.args.options)) {\n      if (this._lastOptionsPromise === this.args.options) return; // promise is still the same\n      const currentOptionsPromise = this.args.options;\n      this._lastOptionsPromise = currentOptionsPromise;\n      this.loading = true;\n      this._lastOptionsPromise\n        .then((resolvedOptions) => {\n          if (this._lastOptionsPromise === currentOptionsPromise) {\n            this.loading = false;\n            this._resolvedOptions = resolvedOptions;\n            this._resetHighlighted();\n          }\n        })\n        .catch(() => {\n          if (this._lastOptionsPromise === currentOptionsPromise) {\n            this.loading = false;\n          }\n        });\n    } else {\n      void Promise.resolve().then(() => {\n        this._resetHighlighted();\n      });\n    }\n  }\n\n  private __updateSelected(): void {\n    if (!isSelectedPresent(this.args.selected)) return;\n    if (isPromiseLike(this.args.selected)) {\n      if (this._lastSelectedPromise === this.args.selected) return; // promise is still the same\n      const currentSelectedPromise = this.args.selected;\n      this._lastSelectedPromise = currentSelectedPromise;\n      void this._lastSelectedPromise.then((resolvedSelected) => {\n        if (this._lastSelectedPromise === currentSelectedPromise) {\n          this._resolvedSelected = resolvedSelected;\n          if (!Array.isArray(resolvedSelected)) {\n            this._highlight(resolvedSelected as Option<T>);\n          }\n        }\n      });\n    } else {\n      this._resolvedSelected = undefined;\n      // Don't highlight args.selected array on multi-select\n      if (!Array.isArray(this.args.selected)) {\n        this._highlight(this.args.selected as Option<T>);\n      }\n    }\n  }\n\n  private __registerAPI(\n    _: Element,\n    [publicAPI]: [Select<T, IsMultiple>],\n  ): void {\n    this.storedAPI = publicAPI;\n    if (this.args.registerAPI) {\n      void Promise.resolve().then(() => {\n        if (this.args.registerAPI) {\n          this.args.registerAPI(publicAPI);\n        }\n      });\n    }\n  }\n\n  private __performSearch(_: Element, [term]: [string]): void {\n    if (!this.args.search) return;\n    if (term === '') {\n      this.loading = false;\n      this.lastSearchedText = term;\n      if (this._lastSearchPromise !== undefined) {\n        if (isCancellablePromise(this._lastSearchPromise)) {\n          this._lastSearchPromise.cancel(); // Cancel ember-concurrency tasks\n        }\n        this._lastSearchPromise = undefined;\n      }\n      return;\n    }\n    const searchResult = this.args.search(term, this.storedAPI);\n    if (searchResult && isPromiseLike(searchResult)) {\n      this.loading = true;\n      if (\n        this._lastSearchPromise !== undefined &&\n        isCancellablePromise(this._lastSearchPromise)\n      ) {\n        this._lastSearchPromise.cancel(); // Cancel ember-concurrency tasks\n      }\n      this._lastSearchPromise = searchResult;\n      searchResult\n        .then((results) => {\n          if (this._lastSearchPromise === searchResult) {\n            this._searchResult = results || undefined;\n            this.loading = false;\n            this.lastSearchedText = term;\n            void Promise.resolve().then(() => {\n              this._resetHighlighted();\n            });\n          }\n        })\n        .catch(() => {\n          if (this._lastSearchPromise === searchResult) {\n            this.loading = false;\n            this.lastSearchedText = term;\n          }\n        });\n    } else {\n      this.lastSearchedText = term;\n      this._searchResult = searchResult || undefined;\n      void Promise.resolve().then(() => {\n        this._resetHighlighted();\n      });\n    }\n  }\n\n  @action\n  private _defaultMultipleBuildSelection(\n    selected: Option<T>,\n    select: Select<T, IsMultiple>,\n  ): Selected<T, IsMultiple> {\n    if (!this.args.multiple) {\n      throw new Error('The defaultBuildSelection is only allowed for multiple');\n    }\n\n    const newSelection: Option<T>[] = Array.isArray(select.selected)\n      ? (select.selected as Option<T>[]).slice(0)\n      : [];\n    let idx = -1;\n    for (let i = 0; i < newSelection.length; i++) {\n      if (isEqual(newSelection[i], selected)) {\n        idx = i;\n        break;\n      }\n    }\n    if (idx > -1) {\n      newSelection.splice(idx, 1);\n    } else {\n      newSelection.push(selected);\n    }\n\n    return newSelection as Selected<T, IsMultiple>;\n  }\n\n  focusInput(select: Select<T, IsMultiple>) {\n    if (select) {\n      const input = document.querySelector(\n        `#ember-power-select-trigger-input-${select.uniqueId}`,\n      ) as HTMLElement;\n      if (input) {\n        input.focus();\n      }\n    }\n  }\n\n  _routeKeydown(\n    select: Select<T, IsMultiple>,\n    e: KeyboardEvent,\n  ): boolean | void {\n    if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {\n      // Up & Down\n      return this._handleKeyUpDown(select, e);\n    } else if (e.key === 'Enter') {\n      // ENTER\n      return this._handleKeyEnter(select, e);\n    } else if (e.key === 'Tab') {\n      // Tab\n      return this._handleKeyTab(select, e);\n    } else if (e.key === 'Escape') {\n      // ESC\n      return this._handleKeyESC(select, e);\n    }\n  }\n\n  _handleKeyTab(select: Select<T, IsMultiple>, e: KeyboardEvent): void {\n    select.actions.close(e);\n  }\n\n  _handleKeyESC(select: Select<T, IsMultiple>, e: KeyboardEvent): void {\n    select.actions.close(e);\n  }\n\n  _handleKeyEnter(\n    select: Select<T, IsMultiple>,\n    e: KeyboardEvent,\n  ): boolean | void {\n    if (select.isOpen && select.highlighted !== undefined) {\n      select.actions.choose(select.highlighted, e);\n      e.stopImmediatePropagation();\n      return false;\n    }\n  }\n\n  _handleKeySpace(select: Select<T, IsMultiple>, e: KeyboardEvent): void {\n    if (\n      e.target !== null &&\n      ['TEXTAREA', 'INPUT'].includes((e.target as Element).nodeName)\n    ) {\n      e.stopImmediatePropagation();\n    } else if (select.isOpen && select.highlighted !== undefined) {\n      e.stopImmediatePropagation();\n      e.preventDefault(); // Prevents scrolling of the page.\n      select.actions.choose(select.highlighted, e);\n    }\n  }\n\n  _handleKeyUpDown(select: Select<T, IsMultiple>, e: KeyboardEvent): void {\n    if (select.isOpen) {\n      e.preventDefault();\n      e.stopPropagation();\n      const step: 1 | -1 = e.key === 'ArrowDown' ? 1 : -1;\n      const newHighlighted = advanceSelectableOption(\n        select.results,\n        select.highlighted,\n        step,\n      );\n      select.actions.highlight(newHighlighted);\n      select.actions.scrollTo(newHighlighted);\n    } else {\n      select.actions.open(e);\n    }\n  }\n\n  _resetHighlighted(): void {\n    let highlighted: Option<T> | undefined;\n    const defHighlighted = this.args.defaultHighlighted || defaultHighlighted;\n    if (typeof defHighlighted === 'function') {\n      highlighted = (defHighlighted as typeof defaultHighlighted)({\n        results: this.results,\n        highlighted: this.highlighted,\n        selected: this.selected,\n      });\n    } else {\n      highlighted = defHighlighted;\n    }\n    this._highlight(highlighted);\n  }\n\n  _filter(\n    options: readonly T[],\n    term: string,\n    skipDisabled = false,\n  ): readonly T[] {\n    const matcher = this.args.matcher || defaultMatcher;\n    const optionMatcher = getOptionMatcher(\n      matcher as MatcherFn<T>,\n      defaultMatcher as MatcherFn<T>,\n      this.args.searchField,\n    );\n    return filterOptions(options || [], term, optionMatcher, skipDisabled);\n  }\n\n  _updateIsActive(value: boolean) {\n    this.isActive = value;\n  }\n\n  findWithOffset(\n    options: readonly T[],\n    term: string,\n    offset: number,\n    skipDisabled = false,\n  ): Option<T> | undefined {\n    const typeAheadOptionMatcher = getOptionMatcher(\n      this.args.typeAheadOptionMatcher ||\n        (defaultTypeAheadMatcher as MatcherFn<T>),\n      defaultTypeAheadMatcher as MatcherFn<T>,\n      this.args.searchField,\n    );\n    return findOptionWithOffset(\n      options || [],\n      term,\n      typeAheadOptionMatcher,\n      offset,\n      skipDisabled,\n    );\n  }\n\n  publicAPI = (dropdown: BasicDropdownDefaultBlock): Select<T, IsMultiple> => {\n    return Object.assign({}, dropdown, {\n      selected: this.selected,\n      multiple: this.args.multiple ?? false,\n      highlighted: this.highlighted,\n      options: this.options,\n      results: this.results,\n      resultsCount: this.resultsCount,\n      loading: this.loading,\n      isActive: this.isActive,\n      searchText: this.searchText,\n      lastSearchedText: this.lastSearchedText,\n      actions: Object.assign({}, dropdown.actions, this._publicAPIActions),\n    }) as Select<T, IsMultiple>;\n  };\n\n  // Tasks\n  triggerTypingTask = task({ restartable: true }, async (e: KeyboardEvent) => {\n    // In general, a user doing this interaction means to have a different result.\n    let searchStartOffset = 1;\n    let repeatingChar = this._repeatingChar;\n    let term;\n\n    // Check if user intends to cycle through results. _repeatingChar can only be the first character.\n    const c = e.key?.length === 1 ? e.key : '';\n    if (c === this._repeatingChar) {\n      term = c;\n    } else {\n      term = this._expirableSearchText + c;\n    }\n\n    if (term.length > 1) {\n      // If the term is longer than one char, the user is in the middle of a non-cycling interaction\n      // so the offset is just zero (the current selection is a valid match).\n      searchStartOffset = 0;\n      repeatingChar = '';\n    } else {\n      repeatingChar = c;\n    }\n\n    // When the select is open, the \"selection\" is just highlighted.\n    if (this.storedAPI.isOpen && this.storedAPI.highlighted) {\n      searchStartOffset += indexOfOption(\n        this.storedAPI.options,\n        this.storedAPI.highlighted,\n      );\n    } else if (\n      !this.storedAPI.isOpen &&\n      this.selected !== undefined &&\n      this.selected !== null\n    ) {\n      searchStartOffset += indexOfOption(this.storedAPI.options, this.selected);\n    } else {\n      searchStartOffset = 0;\n    }\n\n    // The char is always appended. That way, searching for words like \"Aaron\" will work even\n    // if \"Aa\" would cycle through the results.\n    this._expirableSearchText = this._expirableSearchText + c;\n    this._repeatingChar = repeatingChar;\n    const match = this.findWithOffset(\n      this.storedAPI.options,\n      term,\n      searchStartOffset,\n      true,\n    );\n    if (match !== undefined) {\n      if (this.storedAPI.isOpen) {\n        this.storedAPI.actions.highlight(match);\n        this.storedAPI.actions.scrollTo(match);\n      } else {\n        let selected: Option<T> | Option<T>[] = match;\n        if (this.args.multiple) {\n          selected = [match];\n        }\n\n        this.storedAPI.actions.select(selected as Selected<T, IsMultiple>, e);\n      }\n    }\n    await timeout(1000);\n    this._expirableSearchText = '';\n    this._repeatingChar = '';\n  });\n\n  <template>\n    {{#if (or @labelText @labelComponent)}}\n      <this.labelComponent\n        @select={{this.storedAPI}}\n        @labelText={{@labelText}}\n        @labelId={{this.labelId}}\n        @triggerId={{this.triggerId}}\n        @labelTag={{@labelTag}}\n        @extra={{@extra}}\n        class={{@labelClass}}\n      />\n    {{/if}}\n    <BasicDropdown\n      @horizontalPosition={{@horizontalPosition}}\n      @destinationElement={{@destinationElement}}\n      @destination={{@destination}}\n      @initiallyOpened={{@initiallyOpened}}\n      @matchTriggerWidth={{this.matchTriggerWidth}}\n      @preventScroll={{or @preventScroll false}}\n      @onClose={{this.handleClose}}\n      @onOpen={{this.handleOpen}}\n      @renderInPlace={{@renderInPlace}}\n      @verticalPosition={{@verticalPosition}}\n      @disabled={{@disabled}}\n      @calculatePosition={{@calculatePosition}}\n      @triggerComponent={{@ebdTriggerComponent}}\n      @contentComponent={{@ebdContentComponent}}\n      @rootEventType={{or @rootEventType \"mousedown\"}}\n      as |dropdown|\n    >\n      {{#let\n        (this.publicAPI dropdown)\n        (concat \"ember-power-select-options-\" dropdown.uniqueId)\n        as |publicAPI listboxId|\n      }}\n        {{! template-lint-disable no-positive-tabindex }}\n        <dropdown.Trigger\n          @eventType={{or @eventType \"mousedown\"}}\n          {{this.updateOptions @options}}\n          {{this.updateSelected @selected}}\n          {{this.updateRegisterAPI publicAPI}}\n          {{this.updatePerformSearch this.searchText}}\n          {{on \"keydown\" this.handleTriggerKeydown}}\n          {{on \"focus\" this.handleFocus}}\n          {{on \"blur\" this.handleBlur}}\n          class=\"ember-power-select-trigger\n            {{if @multiple ' ember-power-select-multiple-trigger'}}\n            {{@triggerClass}}{{if\n              publicAPI.isActive\n              ' ember-power-select-trigger--active'\n            }}\"\n          aria-activedescendant={{if\n            dropdown.isOpen\n            (unless\n              @searchEnabled\n              (concat publicAPI.uniqueId \"-\" this.highlightedIndex)\n            )\n          }}\n          aria-controls={{if\n            (and dropdown.isOpen (not @searchEnabled))\n            listboxId\n          }}\n          aria-describedby={{@ariaDescribedBy}}\n          aria-haspopup={{unless @searchEnabled \"listbox\"}}\n          aria-invalid={{@ariaInvalid}}\n          aria-label={{@ariaLabel}}\n          aria-labelledby={{this.ariaLabelledBy}}\n          aria-owns={{if (and dropdown.isOpen (not @searchEnabled)) listboxId}}\n          aria-required={{@required}}\n          aria-autocomplete={{if @searchEnabled \"list\"}}\n          role={{or @triggerRole \"combobox\"}}\n          title={{@title}}\n          id={{this.triggerId}}\n          tabindex={{and (not @disabled) (or this.tabindex \"0\")}}\n          ...attributes\n        >\n          <this.triggerComponent\n            @allowClear={{@allowClear}}\n            @buildSelection={{this.buildSelection}}\n            @loadingMessage={{or @loadingMessage \"Loading options...\"}}\n            @selectedItemComponent={{this.selectedItemComponent}}\n            @select={{publicAPI}}\n            @searchEnabled={{@searchEnabled}}\n            @searchField={{@searchField}}\n            @searchFieldPosition={{this.searchFieldPosition}}\n            @onFocus={{this.handleFocus}}\n            @onBlur={{this.handleBlur}}\n            @extra={{@extra}}\n            @listboxId={{listboxId}}\n            @onInput={{this.handleInput}}\n            @onKeydown={{this.handleKeydown}}\n            @placeholder={{@placeholder}}\n            @searchPlaceholder={{@searchPlaceholder}}\n            @placeholderComponent={{this.placeholderComponent}}\n            @ariaActiveDescendant={{concat\n              publicAPI.uniqueId\n              \"-\"\n              this.highlightedIndex\n            }}\n            @ariaLabelledBy={{this.ariaLabelledBy}}\n            @ariaDescribedBy={{@ariaDescribedBy}}\n            @ariaLabel={{@ariaLabel}}\n            @role={{@triggerRole}}\n            @tabindex={{@tabindex}}\n            as |opt select|\n          >\n            {{yield opt select}}\n          </this.triggerComponent>\n        </dropdown.Trigger>\n        <dropdown.Content\n          class=\"ember-power-select-dropdown{{if\n              publicAPI.isActive\n              ' ember-power-select-dropdown--active'\n            }}\n            {{@dropdownClass}}\"\n          @animationEnabled={{@animationEnabled}}\n        >\n          {{#if (notEq @beforeOptionsComponent null)}}\n            <this.beforeOptionsComponent\n              @select={{publicAPI}}\n              @searchEnabled={{@searchEnabled}}\n              @onInput={{this.handleInput}}\n              @onKeydown={{this.handleKeydown}}\n              @onFocus={{this.handleFocus}}\n              @onBlur={{this.handleBlur}}\n              @placeholder={{@placeholder}}\n              @placeholderComponent={{this.placeholderComponent}}\n              @extra={{@extra}}\n              @listboxId={{listboxId}}\n              @ariaActiveDescendant={{if\n                this.highlightedIndex\n                (concat publicAPI.uniqueId \"-\" this.highlightedIndex)\n              }}\n              @selectedItemComponent={{this.selectedItemComponent}}\n              @searchPlaceholder={{@searchPlaceholder}}\n              @searchFieldPosition={{this.searchFieldPosition}}\n              @ariaLabel={{@ariaLabel}}\n              @ariaLabelledBy={{this.ariaLabelledBy}}\n              @ariaDescribedBy={{@ariaDescribedBy}}\n              @triggerRole={{@triggerRole}}\n            />\n          {{/if}}\n          <div class=\"ember-power-select-options-wrapper\">\n            {{#if this.mustShowSearchMessage}}\n              <this.searchMessageComponent\n                @searchMessage={{this.searchMessage}}\n                @select={{publicAPI}}\n                @extra={{@extra}}\n                id={{listboxId}}\n                aria-label={{@ariaLabel}}\n                aria-labelledby={{this.ariaLabelledBy}}\n              />\n            {{else if this.mustShowNoMessages}}\n              <this.noMatchesMessageComponent\n                @noMatchesMessage={{this.noMatchesMessage}}\n                @select={{publicAPI}}\n                @extra={{@extra}}\n                id={{listboxId}}\n                aria-label={{@ariaLabel}}\n                aria-labelledby={{this.ariaLabelledBy}}\n              />\n            {{else}}\n              <this.optionsComponent\n                @loadingMessage={{or @loadingMessage \"Loading options...\"}}\n                @select={{publicAPI}}\n                @options={{publicAPI.results}}\n                @groupIndex=\"\"\n                @optionsComponent={{this.optionsComponent}}\n                @extra={{@extra}}\n                @highlightOnHover={{this.highlightOnHover}}\n                @groupComponent={{this.groupComponent}}\n                role=\"listbox\"\n                aria-multiselectable={{if this.ariaMultiSelectable \"true\"}}\n                id={{listboxId}}\n                class=\"ember-power-select-options\"\n                as |option select|\n              >\n                {{yield option select}}\n              </this.optionsComponent>\n            {{/if}}\n\n            {{#if this.afterOptionsComponent}}\n              {{#let this.afterOptionsComponent as |AfterOptions|}}\n                <AfterOptions @extra={{@extra}} @select={{publicAPI}} />\n              {{/let}}\n            {{/if}}\n            <div\n              role=\"status\"\n              aria-live=\"polite\"\n              aria-atomic=\"true\"\n              class=\"ember-power-select-visually-hidden\"\n            >\n              {{this.resultCountMessage}}\n            </div>\n          </div>\n        </dropdown.Content>\n      {{/let}}\n    </BasicDropdown>\n  </template>\n}\n","import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { modifier } from 'ember-modifier';\nimport { task, timeout } from 'ember-concurrency';\nimport { on } from '@ember/modifier';\nimport { and, eq, or } from 'ember-truth-helpers';\nimport type { ComponentLike } from '@glint/template';\nimport type { PowerSelectPlaceholderSignature } from './placeholder.gts';\nimport type {\n  PowerSelectSelectedItemSignature,\n  Select,\n  TSearchFieldPosition,\n} from '../../types';\n\nexport interface PowerSelectBeforeOptionsSignature<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> {\n  Element: HTMLDivElement;\n  Args: {\n    select: Select<T, IsMultiple>;\n    searchEnabled?: boolean;\n    ariaLabel?: string;\n    ariaLabelledBy?: string;\n    ariaDescribedBy?: string;\n    role?: string;\n    searchPlaceholder?: string;\n    searchFieldPosition?: TSearchFieldPosition;\n    ariaActiveDescendant?: string;\n    listboxId?: string;\n    placeholder?: string;\n    autofocus?: boolean;\n    extra?: TExtra;\n    triggerRole?: string;\n    onKeydown: (e: KeyboardEvent) => boolean | void;\n    onBlur: (e: FocusEvent) => void;\n    onFocus: (e: FocusEvent) => void;\n    onInput: (e: InputEvent) => boolean | void;\n    placeholderComponent?: ComponentLike<\n      PowerSelectPlaceholderSignature<T, TExtra, IsMultiple>\n    >;\n    selectedItemComponent?: ComponentLike<\n      PowerSelectSelectedItemSignature<T, TExtra, IsMultiple>\n    >;\n  };\n}\n\nexport default class PowerSelectBeforeOptions<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> extends Component<PowerSelectBeforeOptionsSignature<T, TExtra, IsMultiple>> {\n  didSetup: boolean = false;\n\n  @action\n  handleKeydown(e: KeyboardEvent): false | void {\n    if (this.args.onKeydown(e) === false) {\n      return false;\n    }\n    if (e.key === 'Enter') {\n      this.args.select.actions.close(e);\n    }\n  }\n\n  @action\n  handleInput(event: Event): false | void {\n    const e = event as InputEvent;\n    if (this.args.onInput(e) === false) {\n      return false;\n    }\n  }\n\n  setupInput = modifier(\n    (el: HTMLElement) => {\n      if (this.didSetup) {\n        return;\n      }\n\n      this.didSetup = true;\n\n      this._focusInput(el);\n\n      return () => {\n        this.args.select.actions?.search('');\n      };\n    },\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    { eager: false },\n  );\n\n  private _focusInput(el: HTMLElement) {\n    void this.focusLaterTask.perform(el);\n  }\n\n  private focusLaterTask = task(async (el: HTMLElement) => {\n    await timeout(0);\n    if (this.args.autofocus !== false) {\n      el.focus();\n    }\n  });\n\n  <template>\n    {{#if\n      (and\n        @searchEnabled\n        (or\n          (eq @searchFieldPosition \"before-options\")\n          (eq @searchFieldPosition undefined)\n        )\n      )\n    }}\n      <div class=\"ember-power-select-search\">\n        {{! template-lint-disable require-input-label }}\n        <input\n          type=\"search\"\n          autocomplete=\"off\"\n          autocorrect=\"off\"\n          autocapitalize=\"off\"\n          spellcheck={{false}}\n          class=\"ember-power-select-search-input\"\n          value={{@select.searchText}}\n          role={{or @role \"combobox\"}}\n          aria-activedescendant={{@ariaActiveDescendant}}\n          aria-controls={{@listboxId}}\n          aria-owns={{@listboxId}}\n          aria-autocomplete=\"list\"\n          aria-haspopup=\"listbox\"\n          aria-expanded={{if @select.isOpen \"true\" \"false\"}}\n          placeholder={{@searchPlaceholder}}\n          aria-label={{@ariaLabel}}\n          aria-labelledby={{@ariaLabelledBy}}\n          aria-describedby={{@ariaDescribedBy}}\n          {{on \"input\" this.handleInput}}\n          {{on \"focus\" @onFocus}}\n          {{on \"blur\" @onBlur}}\n          {{on \"keydown\" this.handleKeydown}}\n          {{this.setupInput}}\n        />\n      </div>\n    {{/if}}\n  </template>\n}\n","import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { modifier } from 'ember-modifier';\nimport { assert } from '@ember/debug';\nimport { get } from '@ember/object';\nimport { task, timeout } from 'ember-concurrency';\nimport { on } from '@ember/modifier';\nimport { or } from 'ember-truth-helpers';\nimport type { ComponentLike } from '@glint/template';\nimport type { PowerSelectPlaceholderSignature } from './placeholder.gts';\nimport type { Select, Selected, TSearchFieldPosition } from '../../types';\nimport type { PowerSelectArgs } from '../power-select.gts';\n\nexport interface PowerSelectInputSignature<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> {\n  Element: HTMLInputElement;\n  Args: {\n    select: Select<T, IsMultiple>;\n    ariaLabel?: string;\n    ariaLabelledBy?: string;\n    ariaDescribedBy?: string;\n    role?: string;\n    searchField?: string;\n    searchPlaceholder?: string;\n    searchFieldPosition?: TSearchFieldPosition;\n    ariaActiveDescendant?: string;\n    isDefaultPlaceholder?: boolean;\n    listboxId?: string;\n    autofocus?: boolean;\n    tabindex?: number | string;\n    extra?: TExtra;\n    placeholderComponent?: ComponentLike<\n      PowerSelectPlaceholderSignature<T, TExtra, IsMultiple>\n    >;\n    onKeydown?: (e: KeyboardEvent) => boolean | void;\n    onBlur?: (e: FocusEvent) => void;\n    onFocus?: (e: FocusEvent) => void;\n    onInput?: (e: InputEvent) => void | boolean;\n    buildSelection?: PowerSelectArgs<T, IsMultiple, TExtra>['buildSelection'];\n  };\n}\n\nexport default class PowerSelectInput<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> extends Component<PowerSelectInputSignature<T, TExtra, IsMultiple>> {\n  didSetup: boolean = false;\n\n  private _lastIsOpen: boolean = this.args.select.isOpen;\n\n  get placeholder() {\n    if (!this.args.isDefaultPlaceholder) {\n      return undefined;\n    }\n\n    if (this.args.select.multiple) {\n      return !this.args.select.selected ||\n        (Array.isArray(this.args.select.selected) &&\n          this.args.select.selected.length === 0)\n        ? this.args.searchPlaceholder || ''\n        : '';\n    }\n\n    return this.args.searchPlaceholder;\n  }\n\n  @action\n  handleKeydown(e: KeyboardEvent): false | void {\n    if (e.target === null) return;\n    if (this.args.onKeydown && this.args.onKeydown(e) === false) {\n      e.stopPropagation();\n      return false;\n    }\n    if (this.args.select.multiple) {\n      if (e.key === 'Backspace') {\n        e.stopPropagation();\n        if (\n          !(e.target as HTMLInputElement).value.trim() &&\n          this.args.buildSelection &&\n          Array.isArray(this.args.select.selected)\n        ) {\n          const selected = this.args.select.selected as Selected<T, true>;\n          const lastSelection = selected[selected.length - 1];\n\n          if (lastSelection) {\n            this.args.select.actions.select(\n              this.args.buildSelection(lastSelection, this.args.select),\n              e,\n            );\n            if (typeof lastSelection === 'string') {\n              this.args.select.actions.search(lastSelection);\n            } else {\n              assert(\n                '`<PowerSelect>` requires a `@searchField` when the options are not strings to remove options using backspace',\n                this.args.searchField,\n              );\n              this.args.select.actions.search(\n                (get(lastSelection, this.args.searchField) || '') as string,\n              );\n            }\n            this.args.select.actions.open(e);\n          }\n        }\n      } else if (e.key?.length === 1 && /[a-z0-9 ]/i.test(e.key)) {\n        // Keys 0-9, a-z or SPACE\n        e.stopPropagation();\n      }\n    } else if (e.key === 'Enter') {\n      this.args.select.actions.close(e);\n    }\n  }\n\n  @action\n  handleInput(event: Event): false | void {\n    const e = event as InputEvent;\n    if (this.args.onInput && this.args.onInput(e) === false) {\n      return false;\n    }\n\n    this.args.select.actions.open(e);\n  }\n\n  @action\n  handleBlur(event: Event) {\n    if (!this._lastIsOpen && this.args.searchFieldPosition === 'trigger') {\n      this.args.select.actions?.search('');\n    }\n\n    if (this.args.onBlur) {\n      this.args.onBlur(event as FocusEvent);\n    }\n  }\n\n  @action\n  handleFocus(event: Event) {\n    if (this.args.onFocus) {\n      this.args.onFocus(event as FocusEvent);\n    }\n  }\n\n  setupInput = modifier(\n    (el: HTMLElement) => {\n      if (this.didSetup) {\n        return;\n      }\n\n      this.didSetup = true;\n\n      if (\n        this.args.searchFieldPosition === undefined ||\n        this.args.searchFieldPosition === 'before-options'\n      ) {\n        this._focusInput(el);\n      }\n\n      return () => {\n        // We don't need to reset search value, when searchFieldPosition is trigger, because complete power select will be destroyed\n        if (this.args.searchFieldPosition === 'trigger') {\n          return;\n        }\n\n        this.args.select.actions?.search('');\n      };\n    },\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    { eager: false },\n  );\n\n  openChange = modifier((element: HTMLElement, [isOpen]: [boolean]) => {\n    this._openChanged(element, [isOpen]);\n  });\n\n  private _openChanged(element: HTMLElement, [isOpen]: [boolean]) {\n    if (\n      isOpen === false &&\n      this._lastIsOpen === true &&\n      document.activeElement !== element\n    ) {\n      void Promise.resolve().then(() => {\n        this.args.select.actions?.search('');\n      });\n    }\n    this._lastIsOpen = isOpen;\n  }\n\n  private _focusInput(el: HTMLElement) {\n    void this.focusLaterTask.perform(el);\n  }\n\n  private focusLaterTask = task(async (el: HTMLElement) => {\n    await timeout(0);\n    if (this.args.autofocus !== false) {\n      el.focus();\n    }\n  });\n\n  <template>\n    <div class=\"ember-power-select-input\">\n      {{! template-lint-disable require-input-label }}\n      {{! template-lint-disable no-positive-tabindex }}\n      {{! template-lint-disable require-aria-activedescendant-tabindex }}\n      <input\n        type=\"search\"\n        autocomplete=\"off\"\n        autocorrect=\"off\"\n        autocapitalize=\"off\"\n        spellcheck={{false}}\n        class={{if\n          @select.multiple\n          \"ember-power-select-trigger-multiple-input\"\n          \"ember-power-select-search-input-field\"\n        }}\n        value={{@select.searchText}}\n        role={{or @role \"combobox\"}}\n        aria-activedescendant={{if @select.isOpen @ariaActiveDescendant}}\n        aria-controls={{if @select.isOpen @listboxId}}\n        aria-owns={{if @select.isOpen @listboxId}}\n        aria-autocomplete=\"list\"\n        aria-haspopup=\"listbox\"\n        aria-expanded={{if @select.isOpen \"true\" \"false\"}}\n        placeholder={{this.placeholder}}\n        aria-label={{@ariaLabel}}\n        aria-labelledby={{@ariaLabelledBy}}\n        aria-describedby={{@ariaDescribedBy}}\n        disabled={{@select.disabled}}\n        tabindex={{@tabindex}}\n        form=\"power-select-fake-form\"\n        id=\"ember-power-select-trigger-input-{{@select.uniqueId}}\"\n        {{on \"input\" this.handleInput}}\n        {{on \"focus\" this.handleFocus}}\n        {{on \"blur\" this.handleBlur}}\n        {{on \"keydown\" this.handleKeydown}}\n        {{this.setupInput}}\n        {{this.openChange @select.isOpen}}\n        ...attributes\n      />\n    </div>\n  </template>\n}\n","import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { eq, or } from 'ember-truth-helpers';\nimport element from 'ember-element-helper/helpers/element';\nimport { on } from '@ember/modifier';\nimport type { Select } from '../../types.js';\n\nexport interface PowerSelectLabelArgs<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> {\n  select: Select<T, IsMultiple>;\n  labelText?: string;\n  labelId: string;\n  triggerId: string;\n  labelTag?: keyof HTMLElementTagNameMap;\n  extra?: TExtra;\n}\n\nexport interface PowerSelectLabelSignature<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> {\n  Element: HTMLElement;\n  Args: PowerSelectLabelArgs<T, TExtra, IsMultiple>;\n}\n\nexport default class PowerSelectLabel<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> extends Component<PowerSelectLabelSignature<T, TExtra, IsMultiple>> {\n  @action\n  onLabelClick(e: MouseEvent): void {\n    if (!this.args.select) {\n      return;\n    }\n\n    this.args.select.actions.labelClick(e);\n  }\n\n  <template>\n    {{#let\n      (or @labelTag \"div\") (element (or @labelTag \"div\"))\n      as |tagName LabelTag|\n    }}\n      <LabelTag\n        id={{@labelId}}\n        class=\"ember-power-select-label\"\n        ...attributes\n        for={{if (eq tagName \"label\") @triggerId}}\n        {{on \"click\" this.onLabelClick}}\n      >\n        {{@labelText}}\n      </LabelTag>\n    {{/let}}\n  </template>\n}\n","import Component from '@glimmer/component';\nimport type { Select } from '../../types.js';\n\nexport interface PowerSelectNoMatchesMessageSignature<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> {\n  Element: HTMLUListElement;\n  Args: {\n    noMatchesMessage?: string;\n    select?: Select<T, IsMultiple>;\n    extra?: TExtra;\n  };\n}\n\nexport default class PowerSelectNoMatchesMessage<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> extends Component<\n  PowerSelectNoMatchesMessageSignature<T, TExtra, IsMultiple>\n> {\n  <template>\n    {{#if @noMatchesMessage}}\n      <ul class=\"ember-power-select-options\" role=\"listbox\" ...attributes>\n        <li\n          class=\"ember-power-select-option ember-power-select-option--no-matches-message\"\n          role=\"option\"\n          aria-selected={{false}}\n        >\n          {{@noMatchesMessage}}\n        </li>\n      </ul>\n    {{/if}}\n  </template>\n}\n","import Component from '@glimmer/component';\nimport { modifier } from 'ember-modifier';\nimport emberPowerSelectIsGroup from '../../helpers/ember-power-select-is-group.ts';\nimport emberPowerSelectIsEqual from '../../helpers/ember-power-select-is-equal.ts';\nimport type { ComponentLike } from '@glint/template';\nimport type { PowerSelectPowerSelectGroupSignature } from './power-select-group.gts';\nimport type { GroupObject, Option, Select } from '../../types';\n\ndeclare const FastBoot: unknown;\n\nexport interface PowerSelectOptionsSignature<\n  T,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> {\n  Element: HTMLUListElement;\n  Args: PowerSelectOptionsArgs<T, TExtra, IsMultiple>;\n  Blocks: {\n    default: [opt: Option<T>, select: Select<T, IsMultiple>];\n  };\n}\n\ninterface PowerSelectOptionsArgs<\n  T,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> {\n  select: Select<T, IsMultiple>;\n  highlightOnHover?: boolean;\n  listboxId?: string;\n  groupIndex: string;\n  loadingMessage?: string;\n  options: readonly T[];\n  extra?: TExtra;\n  groupComponent?: ComponentLike<\n    PowerSelectPowerSelectGroupSignature<T, TExtra, IsMultiple>\n  >;\n  optionsComponent?: ComponentLike<\n    PowerSelectOptionsSignature<T, TExtra, IsMultiple>\n  >;\n}\n\nconst isTouchDevice = !!window && 'ontouchstart' in window;\nif (typeof FastBoot === 'undefined') {\n  (function (ElementProto) {\n    if (typeof ElementProto.matches !== 'function') {\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n      ElementProto.matches =\n        // @ts-expect-error Property 'msMatchesSelector' does not exist on type 'Element'.\n        ElementProto.msMatchesSelector ||\n        // @ts-expect-error Property 'mozMatchesSelector' does not exist on type 'Element'.\n        ElementProto.mozMatchesSelector ||\n        // eslint-disable-next-line @typescript-eslint/unbound-method\n        ElementProto.webkitMatchesSelector;\n    }\n\n    if (typeof ElementProto.closest !== 'function') {\n      ElementProto.closest = function closest(selector: string) {\n        // eslint-disable-next-line @typescript-eslint/no-this-alias\n        let element: Element | null = this;\n        while (element !== null && element.nodeType === 1) {\n          if (element.matches(selector)) {\n            return element;\n          }\n          element = element.parentNode as Element;\n        }\n        return null;\n      };\n    }\n  })(window.Element.prototype);\n}\n\nexport default class PowerSelectOptions<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> extends Component<PowerSelectOptionsSignature<T, TExtra, IsMultiple>> {\n  <template>\n    {{! template-lint-disable require-context-role }}\n    <ul {{this.setupHandlers}} ...attributes>\n      {{#if @select.loading}}\n        {{#if @loadingMessage}}\n          <li\n            class=\"ember-power-select-option ember-power-select-option--loading-message\"\n            role=\"option\"\n            aria-selected={{false}}\n          >{{@loadingMessage}}</li>\n        {{/if}}\n      {{/if}}\n      {{#let @groupComponent @optionsComponent as |Group Options|}}\n        {{#each @options as |opt index|}}\n          {{#if (emberPowerSelectIsGroup opt)}}\n            {{#let (this.groupTyping opt) as |groupOpt|}}\n              <Group @group={{groupOpt}} @select={{@select}} @extra={{@extra}}>\n                <Options\n                  @options={{this.options groupOpt}}\n                  @select={{@select}}\n                  @groupIndex=\"{{@groupIndex}}{{index}}.\"\n                  @optionsComponent={{@optionsComponent}}\n                  @groupComponent={{@groupComponent}}\n                  @extra={{@extra}}\n                  role=\"presentation\"\n                  data-optgroup=\"true\"\n                  class=\"ember-power-select-options\"\n                  as |option|\n                >\n                  {{yield option @select}}\n                </Options>\n              </Group>\n            {{/let}}\n          {{else}}\n            <li\n              class=\"ember-power-select-option\"\n              id=\"{{@select.uniqueId}}-{{@groupIndex}}{{index}}\"\n              aria-selected=\"{{emberPowerSelectIsEqual opt @select.selected}}\"\n              aria-disabled={{if (this.isOptionDisabled opt) \"true\"}}\n              aria-current=\"{{emberPowerSelectIsEqual opt @select.highlighted}}\"\n              data-option-index=\"{{@groupIndex}}{{index}}\"\n              role=\"option\"\n            >\n              {{yield (this.optionTyping opt) @select}}\n            </li>\n          {{/if}}\n        {{/each}}\n      {{/let}}\n    </ul>\n  </template>\n  // extra._isTouchDevice is a workaround for test,!\n  private isTouchDevice =\n    (this.args.extra as (TExtra & { _isTouchDevice?: boolean }) | undefined)\n      ?._isTouchDevice || isTouchDevice;\n  private touchMoveEvent?: TouchEvent;\n  private mouseOverHandler: EventListener = ((\n    // eslint-disable-next-line @typescript-eslint/no-unused-vars\n    _: MouseEvent,\n  ): void => {}) as EventListener;\n  private mouseUpHandler: EventListener = ((\n    // eslint-disable-next-line @typescript-eslint/no-unused-vars\n    _: MouseEvent,\n  ): void => {}) as EventListener;\n  private touchEndHandler: EventListener = ((\n    // eslint-disable-next-line @typescript-eslint/no-unused-vars\n    _: TouchEvent,\n  ): void => {}) as EventListener;\n  private touchMoveHandler: EventListener = ((\n    // eslint-disable-next-line @typescript-eslint/no-unused-vars\n    _: TouchEvent,\n  ): void => {}) as EventListener;\n  private touchStartHandler: EventListener = ((\n    // eslint-disable-next-line @typescript-eslint/no-unused-vars\n    _: TouchEvent,\n  ): void => {}) as EventListener;\n\n  private _listElement: Element | null = null;\n  private _didHandlerSetup: boolean = false;\n\n  willDestroy(): void {\n    super.willDestroy();\n    if (this._listElement) {\n      this._removeHandlers(this._listElement);\n    }\n  }\n\n  setupHandlers = modifier((element: Element) => {\n    if (this._didHandlerSetup) {\n      return;\n    }\n    this._didHandlerSetup = true;\n    this._listElement = element;\n    this._addHandlers(element);\n  });\n\n  isOptionDisabled(option: T): boolean {\n    if (option && typeof option === 'object' && 'disabled' in option) {\n      return option.disabled as boolean;\n    }\n\n    return false;\n  }\n\n  options(group: GroupObject<T>): readonly T[] {\n    if (group && typeof group === 'object' && 'options' in group) {\n      return group.options as readonly T[];\n    }\n\n    return [];\n  }\n\n  groupTyping(opt: T) {\n    return opt as GroupObject<T>;\n  }\n\n  optionTyping(opt: T) {\n    return opt as Option<T>;\n  }\n\n  _optionFromIndex(index: string): Option<T> {\n    const parts = index.split('.');\n    let option = this.args.options[parseInt(parts[0] ?? '', 10)];\n    for (let i = 1; i < parts.length; i++) {\n      if (\n        option &&\n        typeof option === 'object' &&\n        'options' in option &&\n        option.options\n      ) {\n        option = (option.options as readonly T[])[parseInt(parts[i] ?? '', 10)];\n      }\n    }\n    return option as Option<T>;\n  }\n\n  _hasMoved(endEvent: TouchEvent): boolean {\n    const moveEvent = this.touchMoveEvent;\n    if (!moveEvent) {\n      return false;\n    }\n\n    if (!moveEvent.changedTouches) {\n      return false;\n    }\n\n    const changedTouch = moveEvent.changedTouches[0];\n\n    if (\n      !endEvent.changedTouches?.[0] ||\n      // @ts-expect-error Property 'touchType' does not exist on type 'Touch'.\n      changedTouch?.touchType !== 'stylus'\n    ) {\n      return true;\n    }\n\n    // Distinguish stylus scroll and tap: if touch \"distance\" < 5px, we consider it a tap\n    const horizontalDistance = Math.abs(\n      (changedTouch?.pageX ?? 0) - endEvent.changedTouches[0].pageX,\n    );\n    const verticalDistance = Math.abs(\n      (changedTouch?.pageY ?? 0) - endEvent.changedTouches[0].pageY,\n    );\n    return horizontalDistance >= 5 || verticalDistance >= 5;\n  }\n\n  private _addHandlers(element: Element) {\n    const isGroup = element.getAttribute('data-optgroup') === 'true';\n    if (isGroup) {\n      return;\n    }\n    const findOptionAndPerform = (\n      action: (selected: Option<T> | undefined, e?: Event) => void,\n      e: MouseEvent,\n    ): void => {\n      if (e.target === null) return;\n      const optionItem = (e.target as Element).closest('[data-option-index]');\n      if (!optionItem) {\n        return;\n      }\n      if (optionItem.closest('[aria-disabled=true]')) {\n        return; // Abort if the item or an ancestor is disabled\n      }\n      const optionIndex = optionItem.getAttribute('data-option-index');\n      if (optionIndex === null) return;\n      action(this._optionFromIndex(optionIndex), e);\n    };\n    this.mouseUpHandler = ((e: MouseEvent): void =>\n      findOptionAndPerform(\n        this.args.select.actions.choose,\n        e,\n      )) as EventListener;\n    element.addEventListener('mouseup', this.mouseUpHandler);\n    if (this.args.highlightOnHover) {\n      this.mouseOverHandler = ((e: MouseEvent): void =>\n        findOptionAndPerform(\n          this.args.select.actions.highlight,\n          e,\n        )) as EventListener;\n      element.addEventListener('mouseover', this.mouseOverHandler);\n    }\n    if (this.isTouchDevice) {\n      this.touchMoveHandler = ((e: TouchEvent): void => {\n        this.touchMoveEvent = e;\n        if (element) {\n          element.removeEventListener('touchmove', this.touchMoveHandler);\n        }\n      }) as EventListener;\n      // Add touch event handlers to detect taps\n      // eslint-disable-next-line @typescript-eslint/no-unused-vars\n      this.touchStartHandler = ((_: TouchEvent): void => {\n        element.addEventListener('touchmove', this.touchMoveHandler);\n      }) as EventListener;\n      this.touchEndHandler = ((e: TouchEvent): void => {\n        if (e.target === null) return;\n        const optionItem = (e.target as Element).closest('[data-option-index]');\n        if (optionItem === null) return;\n        e.preventDefault();\n        if (this._hasMoved(e)) {\n          this.touchMoveEvent = undefined;\n          return;\n        }\n\n        if (optionItem.closest('[aria-disabled=true]')) {\n          return; // Abort if the item or an ancestor is disabled\n        }\n\n        const optionIndex = optionItem.getAttribute('data-option-index');\n        if (optionIndex === null) return;\n        this.args.select.actions.choose(this._optionFromIndex(optionIndex), e);\n      }) as EventListener;\n      element.addEventListener('touchstart', this.touchStartHandler);\n      element.addEventListener('touchend', this.touchEndHandler);\n    }\n\n    this.args.select.actions.scrollTo(this.args.select.highlighted);\n  }\n\n  private _removeHandlers(element: Element) {\n    element.removeEventListener('mouseup', this.mouseUpHandler);\n    element.removeEventListener('mouseover', this.mouseOverHandler);\n    element.removeEventListener('touchstart', this.touchStartHandler);\n    element.removeEventListener('touchmove', this.touchMoveHandler);\n    element.removeEventListener('touchend', this.touchEndHandler);\n  }\n}\n","import Component from '@glimmer/component';\nimport type { ComponentLike } from '@glint/template';\nimport type { PowerSelectInputSignature } from './input.gts';\nimport type { Select } from '../../types.ts';\n\nexport interface PowerSelectPlaceholderSignatureArgs<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> {\n  select: Select<T, IsMultiple>;\n  isMultipleWithSearch?: boolean;\n  placeholder?: string;\n  displayPlaceholder?: boolean;\n  extra?: TExtra;\n  inputComponent?: ComponentLike<\n    PowerSelectInputSignature<T, TExtra, IsMultiple>\n  >;\n}\n\nexport interface PowerSelectPlaceholderSignature<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> {\n  Element: HTMLSpanElement;\n  Args: PowerSelectPlaceholderSignatureArgs<T, TExtra, IsMultiple>;\n}\n\nexport default class PowerSelectPlaceholder<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> extends Component<PowerSelectPlaceholderSignature<T, TExtra, IsMultiple>> {\n  <template>\n    {{#if @isMultipleWithSearch}}\n      {{#let @inputComponent as |InputComponent|}}\n        <InputComponent @isDefaultPlaceholder={{true}} @select={{@select}} />\n      {{/let}}\n    {{else if @placeholder}}\n      <span\n        class=\"ember-power-select-placeholder\"\n        ...attributes\n      >{{@placeholder}}</span>\n    {{/if}}\n  </template>\n}\n","import Component from '@glimmer/component';\nimport { guidFor } from '@ember/object/internals';\nimport type { GroupBase, GroupObject, Select } from '../../types.ts';\n\nexport interface PowerSelectPowerSelectGroupSignature<\n  T,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> {\n  Element: HTMLLIElement;\n  Args: {\n    group: GroupObject<T>;\n    select: Select<T, IsMultiple>;\n    extra?: TExtra;\n  };\n  Blocks: {\n    default: [];\n  };\n}\n\nexport default class PowerSelectPowerSelectGroup<\n  T extends GroupBase,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> extends Component<\n  PowerSelectPowerSelectGroupSignature<T, TExtra, IsMultiple>\n> {\n  uniqueId = guidFor(this);\n\n  <template>\n    <li\n      class=\"ember-power-select-group\"\n      aria-disabled={{if @group.disabled \"true\"}}\n      role=\"group\"\n      aria-labelledby={{this.uniqueId}}\n    >\n      <span\n        class=\"ember-power-select-group-name\"\n        id={{this.uniqueId}}\n      >{{@group.groupName}}</span>\n      {{yield}}\n    </li>\n  </template>\n}\n","import Component from '@glimmer/component';\nimport type { Select } from '../../types.ts';\n\nexport interface PowerSelectSearchMessageSignature<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> {\n  Element: HTMLUListElement;\n  Args: {\n    searchMessage: string;\n    select?: Select<T, IsMultiple>;\n    extra?: TExtra;\n  };\n}\n\nexport default class PowerSelectSearchMessage<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> extends Component<PowerSelectSearchMessageSignature<T, TExtra, IsMultiple>> {\n  <template>\n    <ul class=\"ember-power-select-options\" role=\"listbox\" ...attributes>\n      <li\n        class=\"ember-power-select-option ember-power-select-option--search-message\"\n        role=\"option\"\n        aria-selected={{false}}\n      >\n        {{@searchMessage}}\n      </li>\n    </ul>\n  </template>\n}\n","import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { get } from '@ember/object';\nimport { modifier } from 'ember-modifier';\nimport PowerSelectInput, { type PowerSelectInputSignature } from './input.gts';\nimport { and, eq, not, notEq, or } from 'ember-truth-helpers';\nimport { on } from '@ember/modifier';\nimport selectIsSelectedPresent from '../../helpers/ember-power-select-is-selected-present.ts';\nimport type { PowerSelectArgs } from '../power-select.gts';\nimport type { ComponentLike } from '@glint/template';\nimport type { PowerSelectPlaceholderSignature } from './placeholder.gts';\nimport type {\n  Option,\n  PowerSelectSelectedItemSignature,\n  Select,\n  Selected,\n  TSearchFieldPosition,\n} from '../../types.ts';\n\nexport interface PowerSelectTriggerSignature<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> {\n  Element: HTMLUListElement;\n  Args: {\n    select: Select<T, IsMultiple>;\n    allowClear?: boolean;\n    searchEnabled?: boolean;\n    placeholder?: string;\n    searchPlaceholder?: string;\n    searchField?: string;\n    searchFieldPosition?: TSearchFieldPosition;\n    listboxId?: string;\n    tabindex?: number | string;\n    ariaLabel?: string;\n    ariaLabelledBy?: string;\n    ariaDescribedBy?: string;\n    loadingMessage?: string;\n    role?: string;\n    ariaActiveDescendant: string;\n    extra?: TExtra;\n    buildSelection?: PowerSelectArgs<T, IsMultiple, TExtra>['buildSelection'];\n    placeholderComponent?: ComponentLike<\n      PowerSelectPlaceholderSignature<T, TExtra, IsMultiple>\n    >;\n    selectedItemComponent?: ComponentLike<\n      PowerSelectSelectedItemSignature<T, TExtra, IsMultiple>\n    >;\n    onInput?: (e: InputEvent) => void | boolean;\n    onKeydown?: (e: KeyboardEvent) => void | boolean;\n    onFocus?: (e: FocusEvent) => void;\n    onBlur?: (e: FocusEvent) => void;\n  };\n  Blocks: {\n    default: [selected: Option<T>, select: Select<T, IsMultiple>];\n  };\n}\n\nexport default class PowerSelectTrigger<\n  T = unknown,\n  TExtra = unknown,\n  IsMultiple extends boolean = false,\n> extends Component<PowerSelectTriggerSignature<T, TExtra, IsMultiple>> {\n  private _lastIsOpen: boolean = this.args.select.isOpen;\n\n  get inputComponent(): ComponentLike<\n    PowerSelectInputSignature<T, TExtra, IsMultiple>\n  > {\n    return PowerSelectInput;\n  }\n\n  get selected() {\n    return this.args.select.selected as Selected<T, false>;\n  }\n\n  get selectedMultiple() {\n    return this.args.select.selected as Selected<T, true>;\n  }\n\n  @action\n  clear(e: Event): void {\n    e.stopPropagation();\n    const value = this.args.select.multiple ? [] : undefined;\n    this.args.select.actions.select(value as Selected<T, IsMultiple>);\n  }\n\n  isOptionDisabled(option: Option<T>): boolean {\n    if (option && typeof option === 'object' && 'disabled' in option) {\n      return option.disabled as boolean;\n    }\n\n    return false;\n  }\n\n  @action\n  chooseOption(e: Event) {\n    if (!this.args.select.multiple) {\n      return;\n    }\n\n    if (e.target === null) return;\n    const selectedIndex = (e.target as Element).getAttribute(\n      'data-selected-index',\n    );\n    if (selectedIndex) {\n      const numericIndex = parseInt(selectedIndex, 10);\n      e.stopPropagation();\n      e.preventDefault();\n      const object = this.selectedObject(this.selectedMultiple, numericIndex);\n      this.args.select.actions.choose(object);\n    }\n  }\n\n  stopPropagation(e: Event): void {\n    e.stopPropagation();\n  }\n\n  openChange = modifier((element: Element, [isOpen]: [boolean]) => {\n    this._openChanged(element, [isOpen]);\n  });\n\n  private _openChanged(_el: Element, [isOpen]: [boolean]) {\n    if (isOpen === false && this._lastIsOpen === true) {\n      void Promise.resolve().then(() => {\n        this.args.select.actions?.search('');\n      });\n    }\n    this._lastIsOpen = isOpen;\n  }\n\n  selectedObject<T>(\n    list: readonly Option<T>[] | undefined,\n    index: number,\n  ): Option<T> | undefined {\n    if (list && 'objectAt' in list && typeof list.objectAt === 'function') {\n      return (\n        list as readonly Option<T>[] & {\n          objectAt(index: number): T | undefined;\n        }\n      ).objectAt(index) as Option<T> | undefined;\n    } else if (list) {\n      return get(list, index);\n    }\n  }\n\n  <template>\n    {{#if @select.multiple}}\n      {{! template-lint-disable no-invalid-interactive }}\n      {{! template-lint-disable no-unsupported-role-attributes }}\n      {{! template-lint-disable require-aria-activedescendant-tabindex }}\n      <ul\n        id=\"ember-power-select-multiple-options-{{@select.uniqueId}}\"\n        aria-activedescendant={{if\n          (and @select.isOpen (not @searchEnabled))\n          @ariaActiveDescendant\n        }}\n        class=\"ember-power-select-multiple-options\"\n        {{this.openChange @select.isOpen}}\n        {{on \"click\" this.chooseOption}}\n        ...attributes\n      >\n        {{#if (selectIsSelectedPresent this.selectedMultiple)}}\n          {{#each this.selectedMultiple as |opt idx|}}\n            <li\n              class=\"ember-power-select-multiple-option\n                {{if\n                  (this.isOptionDisabled opt)\n                  'ember-power-select-multiple-option--disabled'\n                }}\"\n            >\n              {{#unless @select.disabled}}\n                {{! template-lint-disable no-pointer-down-event-binding }}\n                <span\n                  role=\"button\"\n                  aria-label=\"remove element\"\n                  class=\"ember-power-select-multiple-remove-btn\"\n                  data-selected-index={{idx}}\n                  {{on \"touchend\" this.stopPropagation}}\n                  {{on \"mousedown\" this.stopPropagation}}\n                >\n                  &times;\n                </span>\n              {{/unless}}\n              {{#if @selectedItemComponent}}\n                {{#let @selectedItemComponent as |SelectedItemComponent|}}\n                  <SelectedItemComponent\n                    @extra={{@extra}}\n                    @selected={{opt}}\n                    @select={{@select}}\n                  />\n                {{/let}}\n              {{else}}\n                {{yield opt @select}}\n              {{/if}}\n            </li>\n          {{/each}}\n        {{else}}\n          {{#if\n            (and\n              @placeholder\n              (or\n                (not @searchEnabled) (eq @searchFieldPosition \"before-options\")\n              )\n            )\n          }}\n            <li>\n              {{#let @placeholderComponent as |PlaceholderComponent|}}\n                <PlaceholderComponent\n                  @placeholder={{@placeholder}}\n                  @select={{@select}}\n                />\n              {{/let}}\n            </li>\n          {{/if}}\n        {{/if}}\n        {{#if (and @searchEnabled (eq @searchFieldPosition \"trigger\"))}}\n          <li class=\"ember-power-select-trigger-multiple-input-container\">\n            {{#let\n              (component\n                this.inputComponent\n                select=@select\n                extra=@extra\n                ariaActiveDescendant=@ariaActiveDescendant\n                ariaLabelledBy=@ariaLabelledBy\n                ariaDescribedBy=@ariaDescribedBy\n                role=@role\n                ariaLabel=@ariaLabel\n                listboxId=@listboxId\n                tabindex=@tabindex\n                buildSelection=@buildSelection\n                searchPlaceholder=(or @placeholder @searchPlaceholder)\n                placeholderComponent=@placeholderComponent\n                searchField=@searchField\n                searchFieldPosition=@searchFieldPosition\n                onFocus=@onFocus\n                onBlur=@onBlur\n                onKeydown=@onKeydown\n                onInput=@onInput\n              )\n              as |InputComponent|\n            }}\n              {{#let @placeholderComponent as |PlaceholderComponent|}}\n                <PlaceholderComponent\n                  @select={{@select}}\n                  @extra={{@extra}}\n                  @placeholder={{@placeholder}}\n                  @isMultipleWithSearch={{true}}\n                  @inputComponent={{InputComponent}}\n                  @displayPlaceholder={{and\n                    (not @select.searchText)\n                    (not this.selectedMultiple.length)\n                  }}\n                />\n              {{/let}}\n            {{/let}}\n          </li>\n        {{/if}}\n      </ul>\n    {{else}}\n      {{#if (selectIsSelectedPresent this.selected)}}\n        {{#if\n          (or (notEq @searchFieldPosition \"trigger\") (not @select.searchText))\n        }}\n          {{#if @selectedItemComponent}}\n            {{#let @selectedItemComponent as |SelectedItemComponent|}}\n              <SelectedItemComponent\n                @extra={{@extra}}\n                @selected={{this.selected}}\n                @select={{@select}}\n              />\n            {{/let}}\n          {{else}}\n            <span class=\"ember-power-select-selected-item\">\n              {{yield this.selected @select}}\n            </span>\n          {{/if}}\n        {{/if}}\n        {{#if (and @searchEnabled (eq @searchFieldPosition \"trigger\"))}}\n          <PowerSelectInput\n            @select={{@select}}\n            @extra={{@extra}}\n            @ariaActiveDescendant={{@ariaActiveDescendant}}\n            @ariaLabelledBy={{@ariaLabelledBy}}\n            @ariaDescribedBy={{@ariaDescribedBy}}\n            @role={{@role}}\n            @ariaLabel={{@ariaLabel}}\n            @listboxId={{@listboxId}}\n            @tabindex={{@tabindex}}\n            @buildSelection={{@buildSelection}}\n            @searchPlaceholder={{or @placeholder @searchPlaceholder}}\n            @placeholderComponent={{@placeholderComponent}}\n            @searchField={{@searchField}}\n            @onFocus={{@onFocus}}\n            @onBlur={{@onBlur}}\n            @onKeydown={{@onKeydown}}\n            @onInput={{@onInput}}\n            @searchFieldPosition={{@searchFieldPosition}}\n            @autofocus={{false}}\n          />\n        {{/if}}\n        {{#if (and @allowClear (not @select.disabled))}}\n          {{! template-lint-disable no-pointer-down-event-binding }}\n          <span\n            class=\"ember-power-select-clear-btn\"\n            role=\"button\"\n            {{on \"touchend\" this.stopPropagation}}\n            {{on \"mousedown\" this.stopPropagation}}\n            {{on \"click\" this.clear}}\n          >&times;</span>\n        {{/if}}\n      {{else}}\n        {{#if (and @searchEnabled (eq @searchFieldPosition \"trigger\"))}}\n          {{#let\n            (component\n              this.inputComponent\n              select=@select\n              extra=@extra\n              ariaActiveDescendant=@ariaActiveDescendant\n              ariaLabelledBy=@ariaLabelledBy\n              ariaDescribedBy=@ariaDescribedBy\n              role=@role\n              ariaLabel=@ariaLabel\n              listboxId=@listboxId\n              searchPlaceholder=(or @placeholder @searchPlaceholder)\n              onFocus=@onFocus\n              onBlur=@onBlur\n              onKeydown=@onKeydown\n              onInput=@onInput\n              searchFieldPosition=@searchFieldPosition\n              autofocus=false\n            )\n            as |InputComponent|\n          }}\n            {{#let @placeholderComponent as |PlaceholderComponent|}}\n              <PlaceholderComponent\n                @select={{@select}}\n                @placeholder={{@placeholder}}\n                @isMultipleWithSearch={{true}}\n                @inputComponent={{InputComponent}}\n                @extra={{@extra}}\n                @displayPlaceholder={{not @select.searchText}}\n              />\n            {{/let}}\n          {{/let}}\n        {{else}}\n          {{#let @placeholderComponent as |PlaceholderComponent|}}\n            <PlaceholderComponent\n              @placeholder={{@placeholder}}\n              @select={{@select}}\n              @extra={{@extra}}\n            />\n          {{/let}}\n        {{/if}}\n      {{/if}}\n    {{/if}}\n    <span class=\"ember-power-select-status-icon\"></span>\n  </template>\n}\n","export default function emberPowerSelectIsArray<T>(\n  maybeArray: T | readonly T[] | undefined,\n): maybeArray is readonly T[] {\n  return Array.isArray(maybeArray);\n}\n","import isEqual from '../utils/equal.ts';\n\nexport default function emberPowerSelectIsEqual(\n  option: unknown,\n  selected: unknown,\n): boolean {\n  if (selected === undefined || selected === null) {\n    return false;\n  }\n  if (Array.isArray(selected)) {\n    for (let i = 0; i < selected.length; i++) {\n      if (isEqual(selected[i], option)) {\n        return true;\n      }\n    }\n    return false;\n  } else {\n    return isEqual(option, selected);\n  }\n}\n","import { isGroup } from '../utils/group-utils.ts';\nimport type { GroupBase } from '../types.ts';\n\nexport default function emberPowerSelectIsGroup<T>(\n  maybeGroup: unknown,\n): maybeGroup is GroupBase<T> {\n  return isGroup(maybeGroup);\n}\n","export default function emberPowerSelectIsSelectedPresent<T>(\n  value: T | undefined,\n): value is T {\n  return value !== null && value !== undefined && value !== '';\n}\n","export default function isEqual(a: unknown, b: unknown): boolean {\n  if (\n    a &&\n    typeof a === 'object' &&\n    'isEqual' in a &&\n    typeof (a as IsEqual).isEqual === 'function'\n  ) {\n    return (a as IsEqual).isEqual(b);\n  }\n\n  if (a instanceof Date && b instanceof Date) {\n    return a.getTime() === b.getTime();\n  }\n\n  return a === b;\n}\n\ninterface IsEqual {\n  isEqual(val: unknown): boolean;\n}\n","import isEqual from '../utils/equal.ts';\nimport type {\n  DefaultHighlightedParams,\n  GroupBase,\n  MatcherFn,\n  Option,\n  Selected,\n} from '../types';\n\nexport function isGroup<T>(entry: unknown): entry is GroupBase<T> {\n  return (\n    !!entry &&\n    typeof entry === 'object' &&\n    'groupName' in entry &&\n    'options' in entry &&\n    !!entry.groupName &&\n    !!entry.options\n  );\n}\n\nexport function countOptions<T = unknown>(collection: readonly T[]): number {\n  let counter = 0;\n  (function walk(collection): void {\n    if (!collection) {\n      return;\n    }\n    for (let i = 0; i < collection.length; i++) {\n      const entry = collection[i];\n      if (isGroup(entry)) {\n        walk((entry as unknown as GroupBase<T>).options);\n      } else {\n        counter++;\n      }\n    }\n  })(collection);\n  return counter;\n}\n\nexport function indexOfOption<T, Option>(\n  collection: readonly T[],\n  option: Option,\n): number {\n  let index = 0;\n  return (function walk(collection): number {\n    if (!collection) {\n      return -1;\n    }\n    for (let i = 0; i < collection.length; i++) {\n      const entry = collection[i];\n      if (isGroup(entry)) {\n        const result = walk((entry as unknown as GroupBase<T>).options);\n        if (result > -1) {\n          return result;\n        }\n      } else if (isEqual(entry, option)) {\n        return index;\n      } else {\n        index++;\n      }\n    }\n    return -1;\n  })(collection);\n}\n\nexport function pathForOption<T = unknown>(\n  collection: readonly T[],\n  option: unknown,\n): string {\n  return (function walk(collection): string {\n    if (!collection) {\n      return '';\n    }\n    for (let i = 0; i < collection.length; i++) {\n      const entry = collection[i];\n      if (isGroup(entry)) {\n        const result = walk((entry as unknown as GroupBase<T>).options);\n        if (result.length > 0) {\n          return i + '.' + result;\n        }\n      } else if (isEqual(entry, option)) {\n        return i + '';\n      }\n    }\n    return '';\n  })(collection);\n}\n\nexport function optionAtIndex<T>(\n  originalCollection: readonly T[],\n  index: number,\n): { disabled: boolean; option: Option<T> | undefined } {\n  let counter = 0;\n  return (\n    (function walk(\n      collection,\n      ancestorIsDisabled,\n    ): { disabled: boolean; option: Option<T> | undefined } | void {\n      if (!collection || index < 0) {\n        return { disabled: false, option: undefined };\n      }\n      let localCounter = 0;\n      const length = collection.length;\n      while (counter <= index && localCounter < length) {\n        const entry = collection[localCounter];\n        if (isGroup(entry)) {\n          const found = walk(\n            (entry as unknown as GroupBase<T>).options,\n            ancestorIsDisabled ||\n              (typeof entry === 'object' &&\n                'disabled' in entry &&\n                !!(entry as unknown as GroupBase<T>).disabled),\n          );\n          if (found) {\n            return found;\n          }\n        } else if (counter === index) {\n          return {\n            disabled:\n              ancestorIsDisabled ||\n              (typeof entry === 'object' &&\n                'disabled' in (entry as GroupBase<T>) &&\n                !!(entry as unknown as GroupBase<T>).disabled),\n            option: entry as Option<T>,\n          };\n        } else {\n          counter++;\n        }\n        localCounter++;\n      }\n    })(originalCollection, false) || { disabled: false, option: undefined }\n  );\n}\n\nfunction copyGroup<T = unknown, IsMultiple extends boolean = false>(\n  group: GroupBase<Selected<T, IsMultiple>>,\n  subOptions: Selected<T, IsMultiple>[],\n): GroupBase<Selected<T, IsMultiple>> {\n  const groupCopy: GroupBase<Selected<T, IsMultiple>> = {\n    ...group,\n    options: subOptions,\n  };\n  if (Object.prototype.hasOwnProperty.call(group, 'disabled')) {\n    groupCopy.disabled = group.disabled;\n  }\n  return groupCopy;\n}\n\nexport function findOptionWithOffset<T>(\n  options: readonly T[],\n  text: string,\n  matcher: MatcherFn<T>,\n  offset: number,\n  skipDisabled = false,\n): Option<T> | undefined {\n  let counter = 0;\n  let foundBeforeOffset: Option<T> | undefined;\n  let foundAfterOffset: Option<T> | undefined | false = false;\n  const canStop = () => !!foundAfterOffset;\n\n  (function walk(options: readonly T[], ancestorIsDisabled: boolean): void {\n    const length = options.length;\n\n    for (let i = 0; i < length; i++) {\n      const entry = options[i];\n      const entryIsDisabled =\n        !!entry &&\n        typeof entry === 'object' &&\n        'disabled' in entry &&\n        !!entry.disabled;\n      if (!skipDisabled || !entryIsDisabled) {\n        if (isGroup(entry)) {\n          walk(\n            (entry as unknown as GroupBase<T>).options,\n            ancestorIsDisabled || entryIsDisabled,\n          );\n          if (canStop()) {\n            return;\n          }\n        } else if (matcher(entry, text) >= 0) {\n          if (counter < offset) {\n            if (!foundBeforeOffset) {\n              foundBeforeOffset = entry as Option<T>;\n            }\n          } else {\n            foundAfterOffset = entry as Option<T>;\n          }\n          counter++;\n        } else {\n          counter++;\n        }\n\n        if (canStop()) {\n          return;\n        }\n      }\n    }\n  })(options, false);\n\n  return foundAfterOffset ? foundAfterOffset : foundBeforeOffset;\n}\n\nexport function filterOptions<\n  T = unknown,\n  MT = unknown,\n  IsMultiple extends boolean = false,\n>(\n  options: readonly T[],\n  text: string,\n  matcher: MatcherFn<MT>,\n  skipDisabled = false,\n): T[] {\n  const opts: T[] = [];\n  const length = options.length;\n  for (let i = 0; i < length; i++) {\n    const entry = options[i];\n    if (\n      !skipDisabled ||\n      !(\n        entry &&\n        typeof entry === 'object' &&\n        'disabled' in entry &&\n        entry.disabled\n      )\n    ) {\n      if (isGroup(entry)) {\n        const suboptions = filterOptions(\n          (entry as unknown as GroupBase<Selected<T, IsMultiple>>).options,\n          text,\n          matcher,\n          skipDisabled,\n        );\n        if (suboptions.length > 0) {\n          opts.push(\n            copyGroup(\n              entry as GroupBase<Selected<T, IsMultiple>>,\n              suboptions,\n            ) as T,\n          );\n        }\n      } else if (entry && matcher(entry as MT, text) >= 0) {\n        opts.push(entry);\n      }\n    }\n  }\n  return opts;\n}\n\nexport function defaultHighlighted<T>({\n  results,\n  highlighted,\n  selected,\n}: DefaultHighlightedParams<T>): Option<T> | undefined {\n  let option: Option<T> | undefined = highlighted;\n\n  if (!option) {\n    if (Array.isArray(selected)) {\n      option = undefined; // Maybe correct is selected[0], but tests do fail right now\n    } else {\n      option = selected;\n    }\n  }\n\n  if (option === undefined || indexOfOption(results, option) === -1) {\n    return advanceSelectableOption(results, option, 1);\n  }\n  return option;\n}\n\nexport function advanceSelectableOption<T, IsMultiple extends boolean = false>(\n  options: readonly T[],\n  currentOption: Selected<T, IsMultiple>,\n  step: 1 | -1,\n): Option<T> | undefined {\n  const resultsLength = countOptions(options);\n  let startIndex = Math.min(\n    Math.max(indexOfOption(options, currentOption) + step, 0),\n    resultsLength - 1,\n  );\n  let { disabled, option } = optionAtIndex(options, startIndex);\n  while (option && disabled) {\n    const next = optionAtIndex(options, (startIndex += step));\n    disabled = next.disabled;\n    option = next.option;\n  }\n  return option;\n}\n\nconst DIACRITICS: Record<string, string> = {\n  'Ⓐ': 'A',\n  Ａ: 'A',\n  À: 'A',\n  Á: 'A',\n  Â: 'A',\n  Ầ: 'A',\n  Ấ: 'A',\n  Ẫ: 'A',\n  Ẩ: 'A',\n  Ã: 'A',\n  Ā: 'A',\n  Ă: 'A',\n  Ằ: 'A',\n  Ắ: 'A',\n  Ẵ: 'A',\n  Ẳ: 'A',\n  Ȧ: 'A',\n  Ǡ: 'A',\n  Ä: 'A',\n  Ǟ: 'A',\n  Ả: 'A',\n  Å: 'A',\n  Ǻ: 'A',\n  Ǎ: 'A',\n  Ȁ: 'A',\n  Ȃ: 'A',\n  Ạ: 'A',\n  Ậ: 'A',\n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ꝗ: 'q',\n  ꝙ: 'q',\n  'ⓡ': 'r',\n  ｒ: 'r',\n  ŕ: 'r',\n  ṙ: 'r',\n  ř: 'r',\n  ȑ: 'r',\n  ȓ: 'r',\n  ṛ: 'r',\n  ṝ: 'r',\n  ŗ: 'r',\n  ṟ: 'r',\n  ɍ: 'r',\n  ɽ: 'r',\n  ꝛ: 'r',\n  ꞧ: 'r',\n  ꞃ: 'r',\n  'ⓢ': 's',\n  ｓ: 's',\n  ß: 's',\n  ś: 's',\n  ṥ: 's',\n  ŝ: 's',\n  ṡ: 's',\n  š: 's',\n  ṧ: 's',\n  ṣ: 's',\n  ṩ: 's',\n  ș: 's',\n  ş: 's',\n  ȿ: 's',\n  ꞩ: 's',\n  ꞅ: 's',\n  ẛ: 's',\n  'ⓣ': 't',\n  ｔ: 't',\n  ṫ: 't',\n  ẗ: 't',\n  ť: 't',\n  ṭ: 't',\n  ț: 't',\n  ţ: 't',\n  ṱ: 't',\n  ṯ: 't',\n  ŧ: 't',\n  ƭ: 't',\n  ʈ: 't',\n  ⱦ: 't',\n  ꞇ: 't',\n  ꜩ: 'tz',\n  'ⓤ': 'u',\n  ｕ: 'u',\n  ù: 'u',\n  ú: 'u',\n  û: 'u',\n  ũ: 'u',\n  ṹ: 'u',\n  ū: 'u',\n  ṻ: 'u',\n  ŭ: 'u',\n  ü: 'u',\n  ǜ: 'u',\n  ǘ: 'u',\n  ǖ: 'u',\n  ǚ: 'u',\n  ủ: 'u',\n  ů: 'u',\n  ű: 'u',\n  ǔ: 'u',\n  ȕ: 'u',\n  ȗ: 'u',\n  ư: 'u',\n  ừ: 'u',\n  ứ: 'u',\n  ữ: 'u',\n  ử: 'u',\n  ự: 'u',\n  ụ: 'u',\n  ṳ: 'u',\n  ų: 'u',\n  ṷ: 'u',\n  ṵ: 'u',\n  ʉ: 'u',\n  'ⓥ': 'v',\n  ｖ: 'v',\n  ṽ: 'v',\n  ṿ: 'v',\n  ʋ: 'v',\n  ꝟ: 'v',\n  ʌ: 'v',\n  ꝡ: 'vy',\n  'ⓦ': 'w',\n  ｗ: 'w',\n  ẁ: 'w',\n  ẃ: 'w',\n  ŵ: 'w',\n  ẇ: 'w',\n  ẅ: 'w',\n  ẘ: 'w',\n  ẉ: 'w',\n  ⱳ: 'w',\n  'ⓧ': 'x',\n  ｘ: 'x',\n  ẋ: 'x',\n  ẍ: 'x',\n  'ⓨ': 'y',\n  ｙ: 'y',\n  ỳ: 'y',\n  ý: 'y',\n  ŷ: 'y',\n  ỹ: 'y',\n  ȳ: 'y',\n  ẏ: 'y',\n  ÿ: 'y',\n  ỷ: 'y',\n  ẙ: 'y',\n  ỵ: 'y',\n  ƴ: 'y',\n  ɏ: 'y',\n  ỿ: 'y',\n  'ⓩ': 'z',\n  ｚ: 'z',\n  ź: 'z',\n  ẑ: 'z',\n  ż: 'z',\n  ž: 'z',\n  ẓ: 'z',\n  ẕ: 'z',\n  ƶ: 'z',\n  ȥ: 'z',\n  ɀ: 'z',\n  ⱬ: 'z',\n  ꝣ: 'z',\n  Ά: 'Α',\n  Έ: 'Ε',\n  Ή: 'Η',\n  Ί: 'Ι',\n  Ϊ: 'Ι',\n  Ό: 'Ο',\n  Ύ: 'Υ',\n  Ϋ: 'Υ',\n  Ώ: 'Ω',\n  ά: 'α',\n  έ: 'ε',\n  ή: 'η',\n  ί: 'ι',\n  ϊ: 'ι',\n  ΐ: 'ι',\n  ό: 'ο',\n  ύ: 'υ',\n  ϋ: 'υ',\n  ΰ: 'υ',\n  ω: 'ω',\n  ς: 'σ',\n};\n\n// Copied from Select2\nexport function stripDiacritics(text: string | number) {\n  // Used 'uni range + named function' from http://jsperf.com/diacritics/18\n  function match(a: string) {\n    return DIACRITICS[a] || a;\n  }\n\n  return `${text}`.replace(/[^\\u0000-\\u007E]/g, match); // eslint-disable-line\n}\n\nexport function defaultMatcher(value: string, text: string) {\n  return stripDiacritics(value)\n    .toUpperCase()\n    .indexOf(stripDiacritics(text).toUpperCase());\n}\n\nexport function defaultTypeAheadMatcher(value: string, text: string): number {\n  return stripDiacritics(value)\n    .toUpperCase()\n    .startsWith(stripDiacritics(text).toUpperCase())\n    ? 1\n    : -1;\n}\n","export default 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","/* eslint-disable no-useless-escape */\nimport Cache from './cache';\nlet STRINGS = {};\nexport function setStrings(strings) {\n  STRINGS = strings;\n}\nexport function getStrings() {\n  return STRINGS;\n}\nexport function getString(name) {\n  return STRINGS[name];\n}\nconst STRING_DASHERIZE_REGEXP = /[ _]/g;\nconst STRING_DASHERIZE_CACHE = new Cache(1000, (key) =>\n  decamelize(key).replace(STRING_DASHERIZE_REGEXP, '-')\n);\nconst STRING_CLASSIFY_REGEXP_1 = /^(\\-|_)+(.)?/;\nconst STRING_CLASSIFY_REGEXP_2 = /(.)(\\-|\\_|\\.|\\s)+(.)?/g;\nconst STRING_CLASSIFY_REGEXP_3 = /(^|\\/|\\.)([a-z])/g;\nconst CLASSIFY_CACHE = new Cache(1000, (str) => {\n  const replace1 = (_match, _separator, chr) =>\n    chr ? `_${chr.toUpperCase()}` : '';\n  const replace2 = (_match, initialChar, _separator, chr) =>\n    initialChar + (chr ? chr.toUpperCase() : '');\n  const parts = str.split('/');\n  for (let i = 0; i < parts.length; i++) {\n    parts[i] = parts[i]\n      .replace(STRING_CLASSIFY_REGEXP_1, replace1)\n      .replace(STRING_CLASSIFY_REGEXP_2, replace2);\n  }\n  return parts\n    .join('/')\n    .replace(STRING_CLASSIFY_REGEXP_3, (match /*, separator, chr */) =>\n      match.toUpperCase()\n    );\n});\nconst STRING_UNDERSCORE_REGEXP_1 = /([a-z\\d])([A-Z]+)/g;\nconst STRING_UNDERSCORE_REGEXP_2 = /\\-|\\s+/g;\nconst UNDERSCORE_CACHE = new Cache(1000, (str) =>\n  str\n    .replace(STRING_UNDERSCORE_REGEXP_1, '$1_$2')\n    .replace(STRING_UNDERSCORE_REGEXP_2, '_')\n    .toLowerCase()\n);\nconst STRING_DECAMELIZE_REGEXP = /([a-z\\d])([A-Z])/g;\nconst DECAMELIZE_CACHE = new Cache(1000, (str) =>\n  str.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase()\n);\n/**\n  Converts a camelized string into all lower case separated by underscores.\n\n  ```javascript\n  import { decamelize } from '@ember/string';\n\n  decamelize('innerHTML');          // 'inner_html'\n  decamelize('action_name');        // 'action_name'\n  decamelize('css-class-name');     // 'css-class-name'\n  decamelize('my favorite items');  // 'my favorite items'\n  ```\n\n  @method decamelize\n  @param {String} str The string to decamelize.\n  @return {String} the decamelized string.\n  @public\n*/\nexport function decamelize(str) {\n  return DECAMELIZE_CACHE.get(str);\n}\n/**\n  Replaces underscores, spaces, or camelCase with dashes.\n\n  ```javascript\n  import { dasherize } from '@ember/string';\n\n  dasherize('innerHTML');                // 'inner-html'\n  dasherize('action_name');              // 'action-name'\n  dasherize('css-class-name');           // 'css-class-name'\n  dasherize('my favorite items');        // 'my-favorite-items'\n  dasherize('privateDocs/ownerInvoice';  // 'private-docs/owner-invoice'\n  ```\n\n  @method dasherize\n  @param {String} str The string to dasherize.\n  @return {String} the dasherized string.\n  @public\n*/\nexport 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*/\nexport function classify(str) {\n  return CLASSIFY_CACHE.get(str);\n}\n/**\n  More general than decamelize. Returns the lower\\_case\\_and\\_underscored\n  form of a string.\n\n  ```javascript\n  import { underscore } from '@ember/string';\n\n  underscore('innerHTML');                 // 'inner_html'\n  underscore('action_name');               // 'action_name'\n  underscore('css-class-name');            // 'css_class_name'\n  underscore('my favorite items');         // 'my_favorite_items'\n  underscore('privateDocs/ownerInvoice');  // 'private_docs/owner_invoice'\n  ```\n\n  @method underscore\n  @param {String} str The string to underscore.\n  @return {String} the underscored string.\n  @public\n*/\nexport function underscore(str) {\n  return UNDERSCORE_CACHE.get(str);\n}\n","import { dasherize, classify, underscore } from './string';\nimport classFactory from './utils/class-factory';\n\nexport class ModuleRegistry {\n  constructor(entries) {\n    this._entries = entries || globalThis.requirejs.entries;\n  }\n  moduleNames() {\n    return Object.keys(this._entries);\n  }\n  has(moduleName) {\n    return moduleName in this._entries;\n  }\n  get(...args) {\n    return globalThis.require(...args);\n  }\n}\n\n/**\n * This module defines a subclass of Ember.DefaultResolver that adds two\n * important features:\n *\n *  1) The resolver makes the container aware of es6 modules via the AMD\n *     output. The loader's _moduleEntries is consulted so that classes can be\n *     resolved directly via the module loader, without needing a manual\n *     `import`.\n *  2) is able to provide injections to classes that implement `extend`\n *     (as is typical with Ember).\n */\nexport default class Resolver {\n  static moduleBasedResolver = true;\n  moduleBasedResolver = true;\n\n  _deprecatedPodModulePrefix = false;\n  _normalizeCache = Object.create(null);\n\n  static create(props) {\n    return new this(props);\n  }\n\n  /**\n   A listing of functions to test for moduleName's based on the provided\n   `parsedName`. This allows easy customization of additional module based\n   lookup patterns.\n\n   @property moduleNameLookupPatterns\n   @returns {Ember.Array}\n   */\n  moduleNameLookupPatterns = [\n    this.podBasedModuleName,\n    this.podBasedComponentsInSubdir,\n    this.mainModuleName,\n    this.defaultModuleName,\n    this.nestedColocationComponentModuleName,\n  ];\n\n  static withModules(explicitModules) {\n    return class extends this {\n      static explicitModules = explicitModules;\n    };\n  }\n\n  constructor(props) {\n    Object.assign(this, props);\n    if (!this._moduleRegistry) {\n      let explicitModules = this.constructor.explicitModules;\n      if (explicitModules) {\n        this._moduleRegistry = {\n          moduleNames() {\n            return Object.keys(explicitModules);\n          },\n          has(name) {\n            return Boolean(explicitModules[name]);\n          },\n          get(name) {\n            return explicitModules[name];\n          },\n          addModules(modules) {\n            explicitModules = Object.assign({}, explicitModules, modules);\n          },\n        };\n      } else {\n        if (typeof globalThis.requirejs.entries === 'undefined') {\n          globalThis.requirejs.entries = globalThis.requirejs._eak_seen;\n        }\n        this._moduleRegistry = new ModuleRegistry();\n      }\n    }\n\n    this.pluralizedTypes = this.pluralizedTypes || Object.create(null);\n\n    if (!this.pluralizedTypes.config) {\n      this.pluralizedTypes.config = 'config';\n    }\n  }\n\n  makeToString(factory, fullName) {\n    return '' + this.namespace.modulePrefix + '@' + fullName + ':';\n  }\n\n  shouldWrapInClassFactory(/* module, parsedName */) {\n    return false;\n  }\n\n  parseName(fullName) {\n    if (fullName.parsedName === true) {\n      return fullName;\n    }\n\n    let prefix, type, name;\n    let fullNameParts = fullName.split('@');\n\n    if (fullNameParts.length === 3) {\n      if (fullNameParts[0].length === 0) {\n        // leading scoped namespace: `@scope/pkg@type:name`\n        prefix = `@${fullNameParts[1]}`;\n        let prefixParts = fullNameParts[2].split(':');\n        type = prefixParts[0];\n        name = prefixParts[1];\n      } else {\n        // interweaved scoped namespace: `type:@scope/pkg@name`\n        prefix = `@${fullNameParts[1]}`;\n        type = fullNameParts[0].slice(0, -1);\n        name = fullNameParts[2];\n      }\n\n      if (type === 'template:components') {\n        name = `components/${name}`;\n        type = 'template';\n      }\n    } else if (fullNameParts.length === 2) {\n      let prefixParts = fullNameParts[0].split(':');\n\n      if (prefixParts.length === 2) {\n        if (prefixParts[1].length === 0) {\n          type = prefixParts[0];\n          name = `@${fullNameParts[1]}`;\n        } else {\n          prefix = prefixParts[1];\n          type = prefixParts[0];\n          name = fullNameParts[1];\n        }\n      } else {\n        let nameParts = fullNameParts[1].split(':');\n\n        prefix = fullNameParts[0];\n        type = nameParts[0];\n        name = nameParts[1];\n      }\n\n      if (type === 'template' && prefix.lastIndexOf('components/', 0) === 0) {\n        name = `components/${name}`;\n        prefix = prefix.slice(11);\n      }\n    } else {\n      fullNameParts = fullName.split(':');\n      type = fullNameParts[0];\n      name = fullNameParts[1];\n    }\n\n    let fullNameWithoutType = name;\n    let namespace = this.namespace;\n    let root = namespace;\n\n    return {\n      parsedName: true,\n      fullName: fullName,\n      prefix: prefix || this.prefix({ type: type }),\n      type: type,\n      fullNameWithoutType: fullNameWithoutType,\n      name: name,\n      root: root,\n      resolveMethodName: 'resolve' + classify(type),\n    };\n  }\n\n  resolveOther(parsedName) {\n    assert('`modulePrefix` must be defined', this.namespace.modulePrefix);\n\n    let normalizedModuleName = this.findModuleName(parsedName);\n\n    if (normalizedModuleName) {\n      let defaultExport = this._extractDefaultExport(\n        normalizedModuleName,\n        parsedName\n      );\n\n      if (defaultExport === undefined) {\n        throw new Error(\n          ` Expected to find: '${parsedName.fullName}' within '${normalizedModuleName}' but got 'undefined'. Did you forget to 'export default' within '${normalizedModuleName}'?`\n        );\n      }\n\n      if (this.shouldWrapInClassFactory(defaultExport, parsedName)) {\n        defaultExport = classFactory(defaultExport);\n      }\n\n      return defaultExport;\n    }\n  }\n\n  normalize(fullName) {\n    return (\n      this._normalizeCache[fullName] ||\n      (this._normalizeCache[fullName] = this._normalize(fullName))\n    );\n  }\n\n  resolve(fullName) {\n    if (fullName === 'resolver:current') {\n      return { create: () => this };\n    }\n    let parsedName = this.parseName(fullName);\n    let resolveMethodName = parsedName.resolveMethodName;\n    let resolved;\n\n    if (typeof this[resolveMethodName] === 'function') {\n      resolved = this[resolveMethodName](parsedName);\n    }\n\n    if (resolved == null) {\n      resolved = this.resolveOther(parsedName);\n    }\n\n    return resolved;\n  }\n\n  addModules(modules) {\n    if (!this._moduleRegistry.addModules) {\n      throw new Error(\n        `addModules is only supported when your Resolver has been configured to use static modules via Resolver.withModules()`\n      );\n    }\n    this._moduleRegistry.addModules(modules);\n  }\n\n  _normalize(fullName) {\n    // A) Convert underscores to dashes\n    // B) Convert camelCase to dash-case, except for components (their\n    //    templates) and helpers where we want to avoid shadowing camelCase\n    //    expressions\n    // C) replace `.` with `/` in order to make nested controllers work in the following cases\n    //      1. `needs: ['posts/post']`\n    //      2. `{{render \"posts/post\"}}`\n    //      3. `this.render('posts/post')` from Route\n\n    let split = fullName.split(':');\n    if (split.length > 1) {\n      let type = split[0];\n\n      if (\n        type === 'component' ||\n        type === 'helper' ||\n        type === 'modifier' ||\n        (type === 'template' && split[1].indexOf('components/') === 0)\n      ) {\n        return type + ':' + split[1].replace(/_/g, '-');\n      } else {\n        return type + ':' + dasherize(split[1].replace(/\\./g, '/'));\n      }\n    } else {\n      return fullName;\n    }\n  }\n\n  pluralize(type) {\n    return (\n      this.pluralizedTypes[type] || (this.pluralizedTypes[type] = type + 's')\n    );\n  }\n\n  podBasedLookupWithPrefix(podPrefix, parsedName) {\n    let fullNameWithoutType = parsedName.fullNameWithoutType;\n\n    if (parsedName.type === 'template') {\n      fullNameWithoutType = fullNameWithoutType.replace(/^components\\//, '');\n    }\n\n    return podPrefix + '/' + fullNameWithoutType + '/' + parsedName.type;\n  }\n\n  podBasedModuleName(parsedName) {\n    let podPrefix =\n      this.namespace.podModulePrefix || this.namespace.modulePrefix;\n\n    return this.podBasedLookupWithPrefix(podPrefix, parsedName);\n  }\n\n  podBasedComponentsInSubdir(parsedName) {\n    let podPrefix =\n      this.namespace.podModulePrefix || this.namespace.modulePrefix;\n    podPrefix = podPrefix + '/components';\n\n    if (\n      parsedName.type === 'component' ||\n      /^components/.test(parsedName.fullNameWithoutType)\n    ) {\n      return this.podBasedLookupWithPrefix(podPrefix, parsedName);\n    }\n  }\n\n  resolveEngine(parsedName) {\n    let engineName = parsedName.fullNameWithoutType;\n    let engineModule = engineName + '/engine';\n\n    if (this._moduleRegistry.has(engineModule)) {\n      return this._extractDefaultExport(engineModule);\n    }\n  }\n\n  resolveRouteMap(parsedName) {\n    let engineName = parsedName.fullNameWithoutType;\n    let engineRoutesModule = engineName + '/routes';\n\n    if (this._moduleRegistry.has(engineRoutesModule)) {\n      let routeMap = this._extractDefaultExport(engineRoutesModule);\n\n      assert(\n        `The route map for ${engineName} should be wrapped by 'buildRoutes' before exporting.`,\n        routeMap.isRouteMap\n      );\n\n      return routeMap;\n    }\n  }\n\n  resolveTemplate(parsedName) {\n    return this.resolveOther(parsedName);\n  }\n\n  mainModuleName(parsedName) {\n    if (parsedName.fullNameWithoutType === 'main') {\n      // if router:main or adapter:main look for a module with just the type first\n      return parsedName.prefix + '/' + parsedName.type;\n    }\n  }\n\n  defaultModuleName(parsedName) {\n    return (\n      parsedName.prefix +\n      '/' +\n      this.pluralize(parsedName.type) +\n      '/' +\n      parsedName.fullNameWithoutType\n    );\n  }\n\n  nestedColocationComponentModuleName(parsedName) {\n    if (parsedName.type === 'component') {\n      return (\n        parsedName.prefix +\n        '/' +\n        this.pluralize(parsedName.type) +\n        '/' +\n        parsedName.fullNameWithoutType +\n        '/index'\n      );\n    }\n  }\n\n  prefix(parsedName) {\n    let tmpPrefix = this.namespace.modulePrefix;\n\n    if (this.namespace[parsedName.type + 'Prefix']) {\n      tmpPrefix = this.namespace[parsedName.type + 'Prefix'];\n    }\n\n    return tmpPrefix;\n  }\n\n  findModuleName(parsedName) {\n    let moduleNameLookupPatterns = this.moduleNameLookupPatterns;\n    let moduleName;\n\n    for (\n      let index = 0, length = moduleNameLookupPatterns.length;\n      index < length;\n      index++\n    ) {\n      let item = moduleNameLookupPatterns[index];\n\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);\n      }\n\n      if (tmpModuleName && this._moduleRegistry.has(tmpModuleName)) {\n        moduleName = tmpModuleName;\n      }\n\n      if (moduleName) {\n        return moduleName;\n      }\n    }\n  }\n\n  chooseModuleName(moduleName) {\n    let underscoredModuleName = underscore(moduleName);\n\n    if (\n      moduleName !== underscoredModuleName &&\n      this._moduleRegistry.has(moduleName) &&\n      this._moduleRegistry.has(underscoredModuleName)\n    ) {\n      throw new TypeError(\n        `Ambiguous module names: '${moduleName}' and '${underscoredModuleName}'`\n      );\n    }\n\n    if (this._moduleRegistry.has(moduleName)) {\n      return moduleName;\n    } else if (this._moduleRegistry.has(underscoredModuleName)) {\n      return underscoredModuleName;\n    }\n  }\n\n  knownForType(type) {\n    let moduleKeys = this._moduleRegistry.moduleNames();\n\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\n      if (fullname) {\n        items[fullname] = true;\n      }\n    }\n\n    return items;\n  }\n\n  translateToContainerFullname(type, moduleName) {\n    let prefix = this.prefix({ type });\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\n    if (\n      start === 0 &&\n      end === moduleName.length - podSuffix.length &&\n      moduleName.length > podPrefix.length + podSuffix.length\n    ) {\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\n    if (\n      moduleName.indexOf(nonPodPrefix) === 0 &&\n      moduleName.length > nonPodPrefix.length\n    ) {\n      return type + ':' + moduleName.slice(nonPodPrefix.length);\n    }\n  }\n\n  _extractDefaultExport(normalizedModuleName) {\n    let module = this._moduleRegistry.get(\n      normalizedModuleName,\n      null,\n      null,\n      true /* force sync */\n    );\n\n    if (module && module['default']) {\n      module = module['default'];\n    }\n\n    return module;\n  }\n}\n\nfunction assert(message, check) {\n  if (!check) {\n    throw new Error(message);\n  }\n}\n","export default 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","import Modifier from 'ember-modifier';\nimport { assert } from '@ember/debug';\nimport { typeOf } from '@ember/utils';\nimport type * as CSS from 'csstype';\n\n// Cannot be typed as `Partial<CSSStyleDeclaration>` because `CSSStyleDeclaration`\n// interface does _not_ included dashed CSS property names. It only includes the\n// camelCase version of a CSS property.\n// https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1672\ntype CSSStyles =\n  | Partial<CSS.Properties>\n  | Partial<CSS.PropertiesHyphen>\n  | { readonly [key: `--${string}`]: string };\n\nfunction isObject(o: unknown): boolean {\n  return typeof o === 'object' && Boolean(o);\n}\n\nconst DASHERIZE_REGEX = /([a-z\\d])([A-Z])/g;\nconst DASHERIZE_REPLACEMENT = '$1-$2';\n\nfunction dasherize(str: string): string {\n  return str.replace(DASHERIZE_REGEX, DASHERIZE_REPLACEMENT).toLowerCase();\n}\n\n/**\n * Returns a two-dimensional array, like:\n *\n * ```js\n * [\n *   ['font-size', '16px'],\n *   ['text-align', 'center'],\n *   ['color', 'red']\n * ]\n * ```\n *\n * This data structure is slightly faster to process than an object / dictionary.\n */\nfunction compileStyles(\n  positional: CSSStyles[],\n  named: CSSStyles,\n): [string, string][] {\n  return [...positional.filter(isObject), named]\n    .map((obj) =>\n      Object.entries(obj).map(\n        ([k, v]) => [dasherize(k), v] as [string, string],\n      ),\n    )\n    .flat();\n}\n\nexport interface StyleModifierSignature {\n  Element: Element & ElementCSSInlineStyle;\n  Args: {\n    Positional: CSSStyles[];\n    Named: CSSStyles;\n  };\n}\n\nexport default class StyleModifier extends Modifier<StyleModifierSignature> {\n  existingStyles: Set<string> = new Set();\n\n  setStyles(\n    element: StyleModifierSignature['Element'],\n    newStyles: [string, string][],\n  ) {\n    const { existingStyles } = this;\n    const rulesToRemove: Set<string> = new Set(existingStyles);\n\n    // clear cache of existing styles\n    existingStyles.clear();\n\n    newStyles.forEach(([property, value]) => {\n      assert(\n        `Your given value for property '${property}' is ${value} (${typeOf(\n          value,\n        )}). ` +\n          'Accepted types are string and undefined. Please change accordingly.',\n        typeof value === 'undefined' || typeOf(value) === 'string',\n      );\n\n      // priority must be specified as separate argument\n      // value must not contain \"!important\"\n      let priority = '';\n      if (value && value.includes('!important')) {\n        priority = 'important';\n        value = value.replace('!important', '');\n      }\n\n      // update CSSOM\n      element.style.setProperty(property, value, priority);\n\n      // should not remove rules that have been updated in this cycle\n      rulesToRemove.delete(property);\n\n      // cache styles that have been set for potential clean-up when argument changes\n      existingStyles.add(property);\n    });\n\n    // remove rules that were present in last cycle but aren't present in this one\n    rulesToRemove.forEach((rule) => element.style.removeProperty(rule));\n  }\n\n  modify(\n    element: StyleModifierSignature['Element'],\n    positional: [CSSStyles] | [],\n    named: CSSStyles,\n  ) {\n    this.setStyles(element, compileStyles(positional, named));\n  }\n}\n","\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJS = (cb, mod) => function __require() {\n  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __export = (target, all) => {\n  for (var name in all)\n    __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n  if (from && typeof from === \"object\" || typeof from === \"function\") {\n    for (let key of __getOwnPropNames(from))\n      if (!__hasOwnProp.call(to, key) && key !== except)\n        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n  }\n  return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n  // If the importer is in node compatibility mode or this is not an ESM\n  // file that has been converted to a CommonJS file using a Babel-\n  // compatible transform (i.e. \"__esModule\" has not been set), then set\n  // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n  isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n  mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// node_modules/toggle-selection/index.js\nvar require_toggle_selection = __commonJS({\n  \"node_modules/toggle-selection/index.js\"(exports, module2) {\n    \"use strict\";\n    module2.exports = function() {\n      var selection = document.getSelection();\n      if (!selection.rangeCount) {\n        return function() {\n        };\n      }\n      var active = document.activeElement;\n      var ranges = [];\n      for (var i = 0; i < selection.rangeCount; i++) {\n        ranges.push(selection.getRangeAt(i));\n      }\n      switch (active.tagName.toUpperCase()) {\n        // .toUpperCase handles XHTML\n        case \"INPUT\":\n        case \"TEXTAREA\":\n          active.blur();\n          break;\n        default:\n          active = null;\n          break;\n      }\n      selection.removeAllRanges();\n      return function() {\n        selection.type === \"Caret\" && selection.removeAllRanges();\n        if (!selection.rangeCount) {\n          ranges.forEach(function(range) {\n            selection.addRange(range);\n          });\n        }\n        active && active.focus();\n      };\n    };\n  }\n});\n\n// index.ts\nvar index_exports = {};\n__export(index_exports, {\n  default: () => index_default\n});\nmodule.exports = __toCommonJS(index_exports);\n\n// node_modules/toggle-selection/index.mjs\nvar import_index = __toESM(require_toggle_selection(), 1);\nvar toggle_selection_default = import_index.default;\n\n// index.ts\nvar defaultMessage = \"Copy to clipboard: #{key}, Enter\";\nfunction formatPromptMessage(message) {\n  var isMac = navigator.userAgentData ? /mac/i.test(navigator.userAgentData.platform) : /mac os x/i.test(navigator.userAgent);\n  var copyKey = (isMac ? \"\\u2318\" : \"Ctrl\") + \"+C\";\n  return message.replace(/#{\\s*key\\s*}/g, copyKey);\n}\nfunction buildClipboardItem(text, format) {\n  var items = {};\n  items[\"text/plain\"] = new Blob([text], { type: \"text/plain\" });\n  if (format && format !== \"text/plain\") {\n    items[format] = new Blob([text], { type: format });\n  }\n  return new ClipboardItem(items);\n}\nasync function copyViaClipboardAPI(text, options) {\n  if (!options.format && !options.onCopy) {\n    await navigator.clipboard.writeText(text);\n    return true;\n  }\n  var item = buildClipboardItem(text, options.format);\n  if (options.onCopy) {\n    item = options.onCopy(item) || item;\n  }\n  await navigator.clipboard.write([item]);\n  return true;\n}\nfunction createHiddenSpan(text, options) {\n  var mark = document.createElement(\"span\");\n  mark.textContent = text;\n  mark.ariaHidden = \"true\";\n  mark.style.all = \"unset\";\n  mark.style.position = \"fixed\";\n  mark.style.top = \"0\";\n  mark.style.clip = \"rect(0, 0, 0, 0)\";\n  mark.style.whiteSpace = \"pre\";\n  mark.style.webkitUserSelect = \"text\";\n  mark.style.MozUserSelect = \"text\";\n  mark.style.msUserSelect = \"text\";\n  mark.style.userSelect = \"text\";\n  mark.addEventListener(\"copy\", function(e) {\n    e.stopPropagation();\n    if (options.format) {\n      e.preventDefault();\n      if (e.clipboardData) {\n        e.clipboardData.setData(options.format, text);\n      }\n    }\n    if (options.onCopy && e.clipboardData) {\n      options.onCopy(e.clipboardData);\n    }\n  });\n  return mark;\n}\nfunction findOpenedModalDialog() {\n  let element = document.activeElement;\n  while (element) {\n    if (element.tagName === \"DIALOG\" && element.open) {\n      return element;\n    }\n    element = element.parentElement;\n  }\n  return null;\n}\nfunction copyViaExecCommand(text, options) {\n  var reselectPrevious = toggle_selection_default();\n  var range = document.createRange();\n  var selection = document.getSelection();\n  var mark = createHiddenSpan(text, options);\n  var root = findOpenedModalDialog() || document.fullscreenElement || document.body;\n  var success = false;\n  try {\n    root.appendChild(mark);\n    range.selectNodeContents(mark);\n    selection.removeAllRanges();\n    selection.addRange(range);\n    var successful = document.execCommand(\"copy\");\n    if (!successful) {\n      throw new Error(\"copy command was unsuccessful\");\n    }\n    success = true;\n  } finally {\n    if (typeof selection.removeRange == \"function\") {\n      selection.removeRange(range);\n    } else {\n      selection.removeAllRanges();\n    }\n    root.removeChild(mark);\n    reselectPrevious();\n  }\n  return success;\n}\nasync function copy(text, options = {}) {\n  var debug = options.debug || false;\n  if (window.isSecureContext && navigator.clipboard) {\n    try {\n      return await copyViaClipboardAPI(text, options);\n    } catch (err) {\n      debug && console.error(\"unable to copy using navigator.clipboard: \", err);\n      debug && console.warn(\"falling back to execCommand\");\n    }\n  } else {\n    debug && !window.isSecureContext && console.warn(\"copy-to-clipboard: navigator.clipboard requires a secure context (HTTPS/localhost). Falling back to execCommand.\");\n  }\n  try {\n    return copyViaExecCommand(text, options);\n  } catch (err) {\n    debug && console.error(\"unable to copy using execCommand: \", err);\n    debug && console.error(\"falling back to prompt\");\n    if (options.fallbackToPrompt) {\n      var message = formatPromptMessage(\"message\" in options ? options.message : defaultMessage);\n      window.prompt(message, text);\n    }\n  }\n  return false;\n}\nvar index_default = copy;\n","/*!\n * Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n * Copyright 2026 Fonticons, Inc.\n */\nfunction _arrayLikeToArray(r, a) {\n  (null == a || a > r.length) && (a = r.length);\n  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n  return n;\n}\nfunction _arrayWithHoles(r) {\n  if (Array.isArray(r)) return r;\n}\nfunction _arrayWithoutHoles(r) {\n  if (Array.isArray(r)) return _arrayLikeToArray(r);\n}\nfunction _classCallCheck(a, n) {\n  if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\");\n}\nfunction _defineProperties(e, r) {\n  for (var t = 0; t < r.length; t++) {\n    var o = r[t];\n    o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);\n  }\n}\nfunction _createClass(e, r, t) {\n  return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", {\n    writable: !1\n  }), e;\n}\nfunction _createForOfIteratorHelper(r, e) {\n  var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n  if (!t) {\n    if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) {\n      t && (r = t);\n      var n = 0,\n        F = function () {};\n      return {\n        s: F,\n        n: function () {\n          return n >= r.length ? {\n            done: !0\n          } : {\n            done: !1,\n            value: r[n++]\n          };\n        },\n        e: function (r) {\n          throw r;\n        },\n        f: F\n      };\n    }\n    throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n  }\n  var o,\n    a = !0,\n    u = !1;\n  return {\n    s: function () {\n      t = t.call(r);\n    },\n    n: function () {\n      var r = t.next();\n      return a = r.done, r;\n    },\n    e: function (r) {\n      u = !0, o = r;\n    },\n    f: function () {\n      try {\n        a || null == t.return || t.return();\n      } finally {\n        if (u) throw o;\n      }\n    }\n  };\n}\nfunction _defineProperty(e, r, t) {\n  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n    value: t,\n    enumerable: !0,\n    configurable: !0,\n    writable: !0\n  }) : e[r] = t, e;\n}\nfunction _inherits(t, e) {\n  if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\");\n  t.prototype = Object.create(e && e.prototype, {\n    constructor: {\n      value: t,\n      writable: !0,\n      configurable: !0\n    }\n  }), Object.defineProperty(t, \"prototype\", {\n    writable: !1\n  }), e && _setPrototypeOf(t, e);\n}\nfunction _iterableToArray(r) {\n  if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nfunction _iterableToArrayLimit(r, l) {\n  var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n  if (null != t) {\n    var e,\n      n,\n      i,\n      u,\n      a = [],\n      f = !0,\n      o = !1;\n    try {\n      if (i = (t = t.call(r)).next, 0 === l) {\n        if (Object(t) !== t) return;\n        f = !1;\n      } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n    } catch (r) {\n      o = !0, n = r;\n    } finally {\n      try {\n        if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;\n      } finally {\n        if (o) throw n;\n      }\n    }\n    return a;\n  }\n}\nfunction _nonIterableRest() {\n  throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _nonIterableSpread() {\n  throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction ownKeys(e, r) {\n  var t = Object.keys(e);\n  if (Object.getOwnPropertySymbols) {\n    var o = Object.getOwnPropertySymbols(e);\n    r && (o = o.filter(function (r) {\n      return Object.getOwnPropertyDescriptor(e, r).enumerable;\n    })), t.push.apply(t, o);\n  }\n  return t;\n}\nfunction _objectSpread2(e) {\n  for (var r = 1; r < arguments.length; r++) {\n    var t = null != arguments[r] ? arguments[r] : {};\n    r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n      _defineProperty(e, r, t[r]);\n    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n      Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n    });\n  }\n  return e;\n}\nfunction _setPrototypeOf(t, e) {\n  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n    return t.__proto__ = e, t;\n  }, _setPrototypeOf(t, e);\n}\nfunction _slicedToArray(r, e) {\n  return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();\n}\nfunction _toConsumableArray(r) {\n  return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();\n}\nfunction _toPrimitive(t, r) {\n  if (\"object\" != typeof t || !t) return t;\n  var e = t[Symbol.toPrimitive];\n  if (void 0 !== e) {\n    var i = e.call(t, r || \"default\");\n    if (\"object\" != typeof i) return i;\n    throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n  }\n  return (\"string\" === r ? String : Number)(t);\n}\nfunction _toPropertyKey(t) {\n  var i = _toPrimitive(t, \"string\");\n  return \"symbol\" == typeof i ? i : i + \"\";\n}\nfunction _typeof(o) {\n  \"@babel/helpers - typeof\";\n\n  return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n    return typeof o;\n  } : function (o) {\n    return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n  }, _typeof(o);\n}\nfunction _unsupportedIterableToArray(r, a) {\n  if (r) {\n    if (\"string\" == typeof r) return _arrayLikeToArray(r, a);\n    var t = {}.toString.call(r).slice(8, -1);\n    return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;\n  }\n}\nfunction _wrapRegExp() {\n  _wrapRegExp = function (e, r) {\n    return new BabelRegExp(e, void 0, r);\n  };\n  var e = RegExp.prototype,\n    r = new WeakMap();\n  function BabelRegExp(e, t, p) {\n    var o = RegExp(e, t);\n    return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype);\n  }\n  function buildGroups(e, t) {\n    var p = r.get(t);\n    return Object.keys(p).reduce(function (r, t) {\n      var o = p[t];\n      if (\"number\" == typeof o) r[t] = e[o];else {\n        for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;\n        r[t] = e[o[i]];\n      }\n      return r;\n    }, Object.create(null));\n  }\n  return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {\n    var t = e.exec.call(this, r);\n    if (t) {\n      t.groups = buildGroups(t, this);\n      var p = t.indices;\n      p && (p.groups = buildGroups(p, this));\n    }\n    return t;\n  }, BabelRegExp.prototype[Symbol.replace] = function (t, p) {\n    if (\"string\" == typeof p) {\n      var o = r.get(this);\n      return e[Symbol.replace].call(this, t, p.replace(/\\$<([^>]+)(>|$)/g, function (e, r, t) {\n        if (\"\" === t) return e;\n        var p = o[r];\n        return Array.isArray(p) ? \"$\" + p.join(\"$\") : \"number\" == typeof p ? \"$\" + p : \"\";\n      }));\n    }\n    if (\"function\" == typeof p) {\n      var i = this;\n      return e[Symbol.replace].call(this, t, function () {\n        var e = arguments;\n        return \"object\" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e);\n      });\n    }\n    return e[Symbol.replace].call(this, t, p);\n  }, _wrapRegExp.apply(this, arguments);\n}\n\nvar noop = function noop() {};\nvar _WINDOW = {};\nvar _DOCUMENT = {};\nvar _MUTATION_OBSERVER = null;\nvar _PERFORMANCE = {\n  mark: noop,\n  measure: noop\n};\ntry {\n  if (typeof window !== 'undefined') _WINDOW = window;\n  if (typeof document !== 'undefined') _DOCUMENT = document;\n  if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;\n  if (typeof performance !== 'undefined') _PERFORMANCE = performance;\n} catch (e) {} // eslint-disable-line no-empty\n\nvar _ref = _WINDOW.navigator || {},\n  _ref$userAgent = _ref.userAgent,\n  userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;\nvar WINDOW = _WINDOW;\nvar DOCUMENT = _DOCUMENT;\nvar MUTATION_OBSERVER = _MUTATION_OBSERVER;\nvar PERFORMANCE = _PERFORMANCE;\nvar IS_BROWSER = !!WINDOW.document;\nvar IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';\nvar IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');\n\nvar _cl;\nvar Z = /fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt|sldr|slpdr|pr|ms|vs)?[\\-\\ ]/,\n  $ = /Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Slab Duo|Slab Press Duo|Pixel|Mosaic|Vellum|Whiteboard)?.*/i;\nvar rl = {\n    classic: {\n      fa: \"solid\",\n      fas: \"solid\",\n      \"fa-solid\": \"solid\",\n      far: \"regular\",\n      \"fa-regular\": \"regular\",\n      fal: \"light\",\n      \"fa-light\": \"light\",\n      fat: \"thin\",\n      \"fa-thin\": \"thin\",\n      fab: \"brands\",\n      \"fa-brands\": \"brands\"\n    },\n    duotone: {\n      fa: \"solid\",\n      fad: \"solid\",\n      \"fa-solid\": \"solid\",\n      \"fa-duotone\": \"solid\",\n      fadr: \"regular\",\n      \"fa-regular\": \"regular\",\n      fadl: \"light\",\n      \"fa-light\": \"light\",\n      fadt: \"thin\",\n      \"fa-thin\": \"thin\"\n    },\n    sharp: {\n      fa: \"solid\",\n      fass: \"solid\",\n      \"fa-solid\": \"solid\",\n      fasr: \"regular\",\n      \"fa-regular\": \"regular\",\n      fasl: \"light\",\n      \"fa-light\": \"light\",\n      fast: \"thin\",\n      \"fa-thin\": \"thin\"\n    },\n    \"sharp-duotone\": {\n      fa: \"solid\",\n      fasds: \"solid\",\n      \"fa-solid\": \"solid\",\n      fasdr: \"regular\",\n      \"fa-regular\": \"regular\",\n      fasdl: \"light\",\n      \"fa-light\": \"light\",\n      fasdt: \"thin\",\n      \"fa-thin\": \"thin\"\n    },\n    slab: {\n      \"fa-regular\": \"regular\",\n      faslr: \"regular\"\n    },\n    \"slab-press\": {\n      \"fa-regular\": \"regular\",\n      faslpr: \"regular\"\n    },\n    \"slab-duo\": {\n      \"fa-regular\": \"regular\",\n      fasldr: \"regular\"\n    },\n    \"slab-press-duo\": {\n      \"fa-regular\": \"regular\",\n      faslpdr: \"regular\"\n    },\n    thumbprint: {\n      \"fa-light\": \"light\",\n      fatl: \"light\"\n    },\n    vellum: {\n      \"fa-solid\": \"solid\",\n      favs: \"solid\"\n    },\n    pixel: {\n      \"fa-regular\": \"regular\",\n      fapr: \"regular\"\n    },\n    mosaic: {\n      \"fa-solid\": \"solid\",\n      fams: \"solid\"\n    },\n    whiteboard: {\n      \"fa-semibold\": \"semibold\",\n      fawsb: \"semibold\"\n    },\n    notdog: {\n      \"fa-solid\": \"solid\",\n      fans: \"solid\"\n    },\n    \"notdog-duo\": {\n      \"fa-solid\": \"solid\",\n      fands: \"solid\"\n    },\n    etch: {\n      \"fa-solid\": \"solid\",\n      faes: \"solid\"\n    },\n    graphite: {\n      \"fa-thin\": \"thin\",\n      fagt: \"thin\"\n    },\n    jelly: {\n      \"fa-regular\": \"regular\",\n      fajr: \"regular\"\n    },\n    \"jelly-fill\": {\n      \"fa-regular\": \"regular\",\n      fajfr: \"regular\"\n    },\n    \"jelly-duo\": {\n      \"fa-regular\": \"regular\",\n      fajdr: \"regular\"\n    },\n    chisel: {\n      \"fa-regular\": \"regular\",\n      facr: \"regular\"\n    },\n    utility: {\n      \"fa-semibold\": \"semibold\",\n      fausb: \"semibold\"\n    },\n    \"utility-duo\": {\n      \"fa-semibold\": \"semibold\",\n      faudsb: \"semibold\"\n    },\n    \"utility-fill\": {\n      \"fa-semibold\": \"semibold\",\n      faufsb: \"semibold\"\n    }\n  },\n  il = {\n    GROUP: \"duotone-group\",\n    SWAP_OPACITY: \"swap-opacity\",\n    PRIMARY: \"primary\",\n    SECONDARY: \"secondary\"\n  },\n  dl = [\"fa-classic\", \"fa-duotone\", \"fa-sharp\", \"fa-sharp-duotone\", \"fa-thumbprint\", \"fa-whiteboard\", \"fa-notdog\", \"fa-notdog-duo\", \"fa-chisel\", \"fa-etch\", \"fa-graphite\", \"fa-jelly\", \"fa-jelly-fill\", \"fa-jelly-duo\", \"fa-slab\", \"fa-slab-press\", \"fa-slab-press-duo\", \"fa-slab-duo\", \"fa-mosaic\", \"fa-pixel\", \"fa-vellum\", \"fa-utility\", \"fa-utility-duo\", \"fa-utility-fill\"];\nvar u = \"classic\",\n  l = \"duotone\",\n  h = \"sharp\",\n  t = \"sharp-duotone\",\n  g = \"chisel\",\n  n = \"etch\",\n  m = \"graphite\",\n  p = \"jelly\",\n  s = \"jelly-duo\",\n  y = \"jelly-fill\",\n  w = \"mosaic\",\n  x = \"notdog\",\n  e = \"notdog-duo\",\n  b = \"pixel\",\n  c = \"slab\",\n  o = \"slab-duo\",\n  I = \"slab-press\",\n  a = \"slab-press-duo\",\n  r = \"thumbprint\",\n  v = \"utility\",\n  i = \"utility-duo\",\n  F = \"utility-fill\",\n  d = \"vellum\",\n  S = \"whiteboard\",\n  A = \"Classic\",\n  P = \"Duotone\",\n  j = \"Sharp\",\n  B = \"Sharp Duotone\",\n  N = \"Chisel\",\n  D = \"Etch\",\n  k = \"Graphite\",\n  T = \"Jelly\",\n  C = \"Jelly Duo\",\n  W = \"Jelly Fill\",\n  R = \"Mosaic\",\n  K = \"Notdog\",\n  L = \"Notdog Duo\",\n  U = \"Pixel\",\n  J = \"Slab\",\n  _ = \"Slab Duo\",\n  M = \"Slab Press\",\n  E = \"Slab Press Duo\",\n  G = \"Thumbprint\",\n  V = \"Utility\",\n  z = \"Utility Duo\",\n  O = \"Utility Fill\",\n  Y = \"Vellum\",\n  q = \"Whiteboard\",\n  xl = [u, l, h, t, g, n, m, p, s, y, w, x, e, b, c, o, I, a, r, v, i, F, d, S],\n  cl = (_cl = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cl, u, A), l, P), h, j), t, B), g, N), n, D), m, k), p, T), s, C), y, W), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cl, w, R), x, K), e, L), b, U), c, J), o, _), I, M), a, E), r, G), v, V), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_cl, i, z), F, O), d, Y), S, q));\nvar Al = {\n    classic: {\n      900: \"fas\",\n      400: \"far\",\n      normal: \"far\",\n      300: \"fal\",\n      100: \"fat\"\n    },\n    duotone: {\n      900: \"fad\",\n      400: \"fadr\",\n      300: \"fadl\",\n      100: \"fadt\"\n    },\n    sharp: {\n      900: \"fass\",\n      400: \"fasr\",\n      300: \"fasl\",\n      100: \"fast\"\n    },\n    \"sharp-duotone\": {\n      900: \"fasds\",\n      400: \"fasdr\",\n      300: \"fasdl\",\n      100: \"fasdt\"\n    },\n    slab: {\n      400: \"faslr\"\n    },\n    \"slab-press\": {\n      400: \"faslpr\"\n    },\n    \"slab-duo\": {\n      400: \"fasldr\"\n    },\n    \"slab-press-duo\": {\n      400: \"faslpdr\"\n    },\n    vellum: {\n      900: \"favs\"\n    },\n    mosaic: {\n      900: \"fams\"\n    },\n    pixel: {\n      400: \"fapr\"\n    },\n    whiteboard: {\n      600: \"fawsb\"\n    },\n    thumbprint: {\n      300: \"fatl\"\n    },\n    notdog: {\n      900: \"fans\"\n    },\n    \"notdog-duo\": {\n      900: \"fands\"\n    },\n    etch: {\n      900: \"faes\"\n    },\n    graphite: {\n      100: \"fagt\"\n    },\n    chisel: {\n      400: \"facr\"\n    },\n    jelly: {\n      400: \"fajr\"\n    },\n    \"jelly-fill\": {\n      400: \"fajfr\"\n    },\n    \"jelly-duo\": {\n      400: \"fajdr\"\n    },\n    utility: {\n      600: \"fausb\"\n    },\n    \"utility-duo\": {\n      600: \"faudsb\"\n    },\n    \"utility-fill\": {\n      600: \"faufsb\"\n    }\n  };\nvar zl = {\n    \"Font Awesome 7 Free\": {\n      900: \"fas\",\n      400: \"far\"\n    },\n    \"Font Awesome 7 Pro\": {\n      900: \"fas\",\n      400: \"far\",\n      normal: \"far\",\n      300: \"fal\",\n      100: \"fat\"\n    },\n    \"Font Awesome 7 Brands\": {\n      400: \"fab\",\n      normal: \"fab\"\n    },\n    \"Font Awesome 7 Duotone\": {\n      900: \"fad\",\n      400: \"fadr\",\n      normal: \"fadr\",\n      300: \"fadl\",\n      100: \"fadt\"\n    },\n    \"Font Awesome 7 Sharp\": {\n      900: \"fass\",\n      400: \"fasr\",\n      normal: \"fasr\",\n      300: \"fasl\",\n      100: \"fast\"\n    },\n    \"Font Awesome 7 Sharp Duotone\": {\n      900: \"fasds\",\n      400: \"fasdr\",\n      normal: \"fasdr\",\n      300: \"fasdl\",\n      100: \"fasdt\"\n    },\n    \"Font Awesome 7 Jelly\": {\n      400: \"fajr\",\n      normal: \"fajr\"\n    },\n    \"Font Awesome 7 Jelly Fill\": {\n      400: \"fajfr\",\n      normal: \"fajfr\"\n    },\n    \"Font Awesome 7 Jelly Duo\": {\n      400: \"fajdr\",\n      normal: \"fajdr\"\n    },\n    \"Font Awesome 7 Slab\": {\n      400: \"faslr\",\n      normal: \"faslr\"\n    },\n    \"Font Awesome 7 Slab Press\": {\n      400: \"faslpr\",\n      normal: \"faslpr\"\n    },\n    \"Font Awesome 7 Slab Duo\": {\n      400: \"fasldr\",\n      normal: \"fasldr\"\n    },\n    \"Font Awesome 7 Slab Press Duo\": {\n      400: \"faslpdr\",\n      normal: \"faslpdr\"\n    },\n    \"Font Awesome 7 Pixel\": {\n      400: \"fapr\",\n      normal: \"fapr\"\n    },\n    \"Font Awesome 7 Mosaic\": {\n      900: \"fams\",\n      normal: \"fams\"\n    },\n    \"Font Awesome 7 Vellum\": {\n      900: \"favs\",\n      normal: \"favs\"\n    },\n    \"Font Awesome 7 Thumbprint\": {\n      300: \"fatl\",\n      normal: \"fatl\"\n    },\n    \"Font Awesome 7 Notdog\": {\n      900: \"fans\",\n      normal: \"fans\"\n    },\n    \"Font Awesome 7 Notdog Duo\": {\n      900: \"fands\",\n      normal: \"fands\"\n    },\n    \"Font Awesome 7 Etch\": {\n      900: \"faes\",\n      normal: \"faes\"\n    },\n    \"Font Awesome 7 Graphite\": {\n      100: \"fagt\",\n      normal: \"fagt\"\n    },\n    \"Font Awesome 7 Chisel\": {\n      400: \"facr\",\n      normal: \"facr\"\n    },\n    \"Font Awesome 7 Whiteboard\": {\n      600: \"fawsb\",\n      normal: \"fawsb\"\n    },\n    \"Font Awesome 7 Utility\": {\n      600: \"fausb\",\n      normal: \"fausb\"\n    },\n    \"Font Awesome 7 Utility Duo\": {\n      600: \"faudsb\",\n      normal: \"faudsb\"\n    },\n    \"Font Awesome 7 Utility Fill\": {\n      600: \"faufsb\",\n      normal: \"faufsb\"\n    }\n  };\nvar Ql = new Map([[\"classic\", {\n    defaultShortPrefixId: \"fas\",\n    defaultStyleId: \"solid\",\n    styleIds: [\"solid\", \"regular\", \"light\", \"thin\", \"brands\"],\n    futureStyleIds: [],\n    defaultFontWeight: 900\n  }], [\"duotone\", {\n    defaultShortPrefixId: \"fad\",\n    defaultStyleId: \"solid\",\n    styleIds: [\"solid\", \"regular\", \"light\", \"thin\"],\n    futureStyleIds: [],\n    defaultFontWeight: 900\n  }], [\"sharp\", {\n    defaultShortPrefixId: \"fass\",\n    defaultStyleId: \"solid\",\n    styleIds: [\"solid\", \"regular\", \"light\", \"thin\"],\n    futureStyleIds: [],\n    defaultFontWeight: 900\n  }], [\"sharp-duotone\", {\n    defaultShortPrefixId: \"fasds\",\n    defaultStyleId: \"solid\",\n    styleIds: [\"solid\", \"regular\", \"light\", \"thin\"],\n    futureStyleIds: [],\n    defaultFontWeight: 900\n  }], [\"chisel\", {\n    defaultShortPrefixId: \"facr\",\n    defaultStyleId: \"regular\",\n    styleIds: [\"regular\"],\n    futureStyleIds: [],\n    defaultFontWeight: 400\n  }], [\"etch\", {\n    defaultShortPrefixId: \"faes\",\n    defaultStyleId: \"solid\",\n    styleIds: [\"solid\"],\n    futureStyleIds: [],\n    defaultFontWeight: 900\n  }], [\"graphite\", {\n    defaultShortPrefixId: \"fagt\",\n    defaultStyleId: \"thin\",\n    styleIds: [\"thin\"],\n    futureStyleIds: [],\n    defaultFontWeight: 100\n  }], [\"jelly\", {\n    defaultShortPrefixId: \"fajr\",\n    defaultStyleId: \"regular\",\n    styleIds: [\"regular\"],\n    futureStyleIds: [],\n    defaultFontWeight: 400\n  }], [\"jelly-duo\", {\n    defaultShortPrefixId: \"fajdr\",\n    defaultStyleId: \"regular\",\n    styleIds: [\"regular\"],\n    futureStyleIds: [],\n    defaultFontWeight: 400\n  }], [\"jelly-fill\", {\n    defaultShortPrefixId: \"fajfr\",\n    defaultStyleId: \"regular\",\n    styleIds: [\"regular\"],\n    futureStyleIds: [],\n    defaultFontWeight: 400\n  }], [\"mosaic\", {\n    defaultShortPrefixId: \"fams\",\n    defaultStyleId: \"solid\",\n    styleIds: [\"solid\"],\n    futureStyleIds: [],\n    defaultFontWeight: 900\n  }], [\"notdog\", {\n    defaultShortPrefixId: \"fans\",\n    defaultStyleId: \"solid\",\n    styleIds: [\"solid\"],\n    futureStyleIds: [],\n    defaultFontWeight: 900\n  }], [\"notdog-duo\", {\n    defaultShortPrefixId: \"fands\",\n    defaultStyleId: \"solid\",\n    styleIds: [\"solid\"],\n    futureStyleIds: [],\n    defaultFontWeight: 900\n  }], [\"pixel\", {\n    defaultShortPrefixId: \"fapr\",\n    defaultStyleId: \"regular\",\n    styleIds: [\"regular\"],\n    futureStyleIds: [],\n    defaultFontWeight: 400\n  }], [\"slab\", {\n    defaultShortPrefixId: \"faslr\",\n    defaultStyleId: \"regular\",\n    styleIds: [\"regular\"],\n    futureStyleIds: [],\n    defaultFontWeight: 400\n  }], [\"slab-duo\", {\n    defaultShortPrefixId: \"fasldr\",\n    defaultStyleId: \"regular\",\n    styleIds: [\"regular\"],\n    futureStyleIds: [],\n    defaultFontWeight: 400\n  }], [\"slab-press\", {\n    defaultShortPrefixId: \"faslpr\",\n    defaultStyleId: \"regular\",\n    styleIds: [\"regular\"],\n    futureStyleIds: [],\n    defaultFontWeight: 400\n  }], [\"slab-press-duo\", {\n    defaultShortPrefixId: \"faslpdr\",\n    defaultStyleId: \"regular\",\n    styleIds: [\"regular\"],\n    futureStyleIds: [],\n    defaultFontWeight: 400\n  }], [\"thumbprint\", {\n    defaultShortPrefixId: \"fatl\",\n    defaultStyleId: \"light\",\n    styleIds: [\"light\"],\n    futureStyleIds: [],\n    defaultFontWeight: 300\n  }], [\"utility\", {\n    defaultShortPrefixId: \"fausb\",\n    defaultStyleId: \"semibold\",\n    styleIds: [\"semibold\"],\n    futureStyleIds: [],\n    defaultFontWeight: 600\n  }], [\"utility-duo\", {\n    defaultShortPrefixId: \"faudsb\",\n    defaultStyleId: \"semibold\",\n    styleIds: [\"semibold\"],\n    futureStyleIds: [],\n    defaultFontWeight: 600\n  }], [\"utility-fill\", {\n    defaultShortPrefixId: \"faufsb\",\n    defaultStyleId: \"semibold\",\n    styleIds: [\"semibold\"],\n    futureStyleIds: [],\n    defaultFontWeight: 600\n  }], [\"vellum\", {\n    defaultShortPrefixId: \"favs\",\n    defaultStyleId: \"solid\",\n    styleIds: [\"solid\"],\n    futureStyleIds: [],\n    defaultFontWeight: 900\n  }], [\"whiteboard\", {\n    defaultShortPrefixId: \"fawsb\",\n    defaultStyleId: \"semibold\",\n    styleIds: [\"semibold\"],\n    futureStyleIds: [],\n    defaultFontWeight: 600\n  }]]),\n  $l = {\n    chisel: {\n      regular: \"facr\"\n    },\n    classic: {\n      brands: \"fab\",\n      light: \"fal\",\n      regular: \"far\",\n      solid: \"fas\",\n      thin: \"fat\"\n    },\n    duotone: {\n      light: \"fadl\",\n      regular: \"fadr\",\n      solid: \"fad\",\n      thin: \"fadt\"\n    },\n    etch: {\n      solid: \"faes\"\n    },\n    graphite: {\n      thin: \"fagt\"\n    },\n    jelly: {\n      regular: \"fajr\"\n    },\n    \"jelly-duo\": {\n      regular: \"fajdr\"\n    },\n    \"jelly-fill\": {\n      regular: \"fajfr\"\n    },\n    mosaic: {\n      solid: \"fams\"\n    },\n    notdog: {\n      solid: \"fans\"\n    },\n    \"notdog-duo\": {\n      solid: \"fands\"\n    },\n    pixel: {\n      regular: \"fapr\"\n    },\n    sharp: {\n      light: \"fasl\",\n      regular: \"fasr\",\n      solid: \"fass\",\n      thin: \"fast\"\n    },\n    \"sharp-duotone\": {\n      light: \"fasdl\",\n      regular: \"fasdr\",\n      solid: \"fasds\",\n      thin: \"fasdt\"\n    },\n    slab: {\n      regular: \"faslr\"\n    },\n    \"slab-duo\": {\n      regular: \"fasldr\"\n    },\n    \"slab-press\": {\n      regular: \"faslpr\"\n    },\n    \"slab-press-duo\": {\n      regular: \"faslpdr\"\n    },\n    thumbprint: {\n      light: \"fatl\"\n    },\n    utility: {\n      semibold: \"fausb\"\n    },\n    \"utility-duo\": {\n      semibold: \"faudsb\"\n    },\n    \"utility-fill\": {\n      semibold: \"faufsb\"\n    },\n    vellum: {\n      solid: \"favs\"\n    },\n    whiteboard: {\n      semibold: \"fawsb\"\n    }\n  };\nvar at = [\"fak\", \"fa-kit\", \"fakd\", \"fa-kit-duotone\"],\n  rt = {\n    kit: {\n      fak: \"kit\",\n      \"fa-kit\": \"kit\"\n    },\n    \"kit-duotone\": {\n      fakd: \"kit-duotone\",\n      \"fa-kit-duotone\": \"kit-duotone\"\n    }\n  },\n  it = [\"kit\"];\nvar H = \"kit\",\n  f = \"kit-duotone\",\n  Q = \"Kit\",\n  X = \"Kit Duotone\",\n  ht = _defineProperty(_defineProperty({}, H, Q), f, X);\nvar mt = {\n  kit: {\n    \"fa-kit\": \"fak\"\n  },\n  \"kit-duotone\": {\n    \"fa-kit-duotone\": \"fakd\"\n  }\n};\nvar ct = {\n    \"Font Awesome Kit\": {\n      400: \"fak\",\n      normal: \"fak\"\n    },\n    \"Font Awesome Kit Duotone\": {\n      400: \"fakd\",\n      normal: \"fakd\"\n    }\n  },\n  It = {\n    kit: {\n      fak: \"fa-kit\"\n    },\n    \"kit-duotone\": {\n      fakd: \"fa-kit-duotone\"\n    }\n  };\nvar St = {\n    kit: {\n      kit: \"fak\"\n    },\n    \"kit-duotone\": {\n      \"kit-duotone\": \"fakd\"\n    }\n  };\n\nvar _jl;\nvar l$1 = {\n    GROUP: \"duotone-group\",\n    SWAP_OPACITY: \"swap-opacity\",\n    PRIMARY: \"primary\",\n    SECONDARY: \"secondary\"\n  },\n  n$1 = [\"fa-classic\", \"fa-duotone\", \"fa-sharp\", \"fa-sharp-duotone\", \"fa-thumbprint\", \"fa-whiteboard\", \"fa-notdog\", \"fa-notdog-duo\", \"fa-chisel\", \"fa-etch\", \"fa-graphite\", \"fa-jelly\", \"fa-jelly-fill\", \"fa-jelly-duo\", \"fa-slab\", \"fa-slab-press\", \"fa-slab-press-duo\", \"fa-slab-duo\", \"fa-mosaic\", \"fa-pixel\", \"fa-vellum\", \"fa-utility\", \"fa-utility-duo\", \"fa-utility-fill\"];\nvar g$1 = \"classic\",\n  a$1 = \"duotone\",\n  m$1 = \"sharp\",\n  t$1 = \"sharp-duotone\",\n  p$1 = \"chisel\",\n  y$1 = \"etch\",\n  b$1 = \"graphite\",\n  w$1 = \"jelly\",\n  e$1 = \"jelly-duo\",\n  x$1 = \"jelly-fill\",\n  c$1 = \"mosaic\",\n  I$1 = \"notdog\",\n  o$1 = \"notdog-duo\",\n  v$1 = \"pixel\",\n  F$1 = \"slab\",\n  r$1 = \"slab-duo\",\n  S$1 = \"slab-press\",\n  i$1 = \"slab-press-duo\",\n  d$1 = \"thumbprint\",\n  A$1 = \"utility\",\n  f$1 = \"utility-duo\",\n  P$1 = \"utility-fill\",\n  u$1 = \"vellum\",\n  j$1 = \"whiteboard\",\n  B$1 = \"Classic\",\n  N$1 = \"Duotone\",\n  D$1 = \"Sharp\",\n  k$1 = \"Sharp Duotone\",\n  C$1 = \"Chisel\",\n  T$1 = \"Etch\",\n  L$1 = \"Graphite\",\n  W$1 = \"Jelly\",\n  R$1 = \"Jelly Duo\",\n  K$1 = \"Jelly Fill\",\n  U$1 = \"Mosaic\",\n  J$1 = \"Notdog\",\n  _$1 = \"Notdog Duo\",\n  M$1 = \"Pixel\",\n  E$1 = \"Slab\",\n  G$1 = \"Slab Duo\",\n  O$1 = \"Slab Press\",\n  V$1 = \"Slab Press Duo\",\n  z$1 = \"Thumbprint\",\n  Y$1 = \"Utility\",\n  $$1 = \"Utility Duo\",\n  q$1 = \"Utility Fill\",\n  H$1 = \"Vellum\",\n  Q$1 = \"Whiteboard\",\n  jl$1 = (_jl = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_jl, g$1, B$1), a$1, N$1), m$1, D$1), t$1, k$1), p$1, C$1), y$1, T$1), b$1, L$1), w$1, W$1), e$1, R$1), x$1, K$1), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_jl, c$1, U$1), I$1, J$1), o$1, _$1), v$1, M$1), F$1, E$1), r$1, G$1), S$1, O$1), i$1, V$1), d$1, z$1), A$1, Y$1), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_jl, f$1, $$1), P$1, q$1), u$1, H$1), j$1, Q$1));\nvar X$1 = \"kit\",\n  h$1 = \"kit-duotone\",\n  Z$1 = \"Kit\",\n  ll$1 = \"Kit Duotone\",\n  ws = _defineProperty(_defineProperty({}, X$1, Z$1), h$1, ll$1);\nvar ra = {\n    classic: {\n      \"fa-brands\": \"fab\",\n      \"fa-duotone\": \"fad\",\n      \"fa-light\": \"fal\",\n      \"fa-regular\": \"far\",\n      \"fa-solid\": \"fas\",\n      \"fa-thin\": \"fat\"\n    },\n    duotone: {\n      \"fa-regular\": \"fadr\",\n      \"fa-light\": \"fadl\",\n      \"fa-thin\": \"fadt\"\n    },\n    sharp: {\n      \"fa-solid\": \"fass\",\n      \"fa-regular\": \"fasr\",\n      \"fa-light\": \"fasl\",\n      \"fa-thin\": \"fast\"\n    },\n    \"sharp-duotone\": {\n      \"fa-solid\": \"fasds\",\n      \"fa-regular\": \"fasdr\",\n      \"fa-light\": \"fasdl\",\n      \"fa-thin\": \"fasdt\"\n    },\n    slab: {\n      \"fa-regular\": \"faslr\"\n    },\n    \"slab-press\": {\n      \"fa-regular\": \"faslpr\"\n    },\n    \"slab-duo\": {\n      \"fa-regular\": \"fasldr\"\n    },\n    \"slab-press-duo\": {\n      \"fa-regular\": \"faslpdr\"\n    },\n    pixel: {\n      \"fa-regular\": \"fapr\"\n    },\n    mosaic: {\n      \"fa-solid\": \"fams\"\n    },\n    vellum: {\n      \"fa-solid\": \"favs\"\n    },\n    whiteboard: {\n      \"fa-semibold\": \"fawsb\"\n    },\n    thumbprint: {\n      \"fa-light\": \"fatl\"\n    },\n    notdog: {\n      \"fa-solid\": \"fans\"\n    },\n    \"notdog-duo\": {\n      \"fa-solid\": \"fands\"\n    },\n    etch: {\n      \"fa-solid\": \"faes\"\n    },\n    graphite: {\n      \"fa-thin\": \"fagt\"\n    },\n    jelly: {\n      \"fa-regular\": \"fajr\"\n    },\n    \"jelly-fill\": {\n      \"fa-regular\": \"fajfr\"\n    },\n    \"jelly-duo\": {\n      \"fa-regular\": \"fajdr\"\n    },\n    chisel: {\n      \"fa-regular\": \"facr\"\n    },\n    utility: {\n      \"fa-semibold\": \"fausb\"\n    },\n    \"utility-duo\": {\n      \"fa-semibold\": \"faudsb\"\n    },\n    \"utility-fill\": {\n      \"fa-semibold\": \"faufsb\"\n    }\n  },\n  al$1 = {\n    classic: [\"fas\", \"far\", \"fal\", \"fat\", \"fad\"],\n    duotone: [\"fadr\", \"fadl\", \"fadt\"],\n    sharp: [\"fass\", \"fasr\", \"fasl\", \"fast\"],\n    \"sharp-duotone\": [\"fasds\", \"fasdr\", \"fasdl\", \"fasdt\"],\n    slab: [\"faslr\"],\n    \"slab-press\": [\"faslpr\"],\n    \"slab-duo\": [\"fasldr\"],\n    \"slab-press-duo\": [\"faslpdr\"],\n    pixel: [\"fapr\"],\n    mosaic: [\"fams\"],\n    vellum: [\"favs\"],\n    whiteboard: [\"fawsb\"],\n    thumbprint: [\"fatl\"],\n    notdog: [\"fans\"],\n    \"notdog-duo\": [\"fands\"],\n    etch: [\"faes\"],\n    graphite: [\"fagt\"],\n    jelly: [\"fajr\"],\n    \"jelly-fill\": [\"fajfr\"],\n    \"jelly-duo\": [\"fajdr\"],\n    chisel: [\"facr\"],\n    utility: [\"fausb\"],\n    \"utility-duo\": [\"faudsb\"],\n    \"utility-fill\": [\"faufsb\"]\n  },\n  da = {\n    classic: {\n      fab: \"fa-brands\",\n      fad: \"fa-duotone\",\n      fal: \"fa-light\",\n      far: \"fa-regular\",\n      fas: \"fa-solid\",\n      fat: \"fa-thin\"\n    },\n    duotone: {\n      fadr: \"fa-regular\",\n      fadl: \"fa-light\",\n      fadt: \"fa-thin\"\n    },\n    sharp: {\n      fass: \"fa-solid\",\n      fasr: \"fa-regular\",\n      fasl: \"fa-light\",\n      fast: \"fa-thin\"\n    },\n    \"sharp-duotone\": {\n      fasds: \"fa-solid\",\n      fasdr: \"fa-regular\",\n      fasdl: \"fa-light\",\n      fasdt: \"fa-thin\"\n    },\n    slab: {\n      faslr: \"fa-regular\"\n    },\n    \"slab-press\": {\n      faslpr: \"fa-regular\"\n    },\n    \"slab-duo\": {\n      fasldr: \"fa-regular\"\n    },\n    \"slab-press-duo\": {\n      faslpdr: \"fa-regular\"\n    },\n    pixel: {\n      fapr: \"fa-regular\"\n    },\n    mosaic: {\n      fams: \"fa-solid\"\n    },\n    vellum: {\n      favs: \"fa-solid\"\n    },\n    whiteboard: {\n      fawsb: \"fa-semibold\"\n    },\n    thumbprint: {\n      fatl: \"fa-light\"\n    },\n    notdog: {\n      fans: \"fa-solid\"\n    },\n    \"notdog-duo\": {\n      fands: \"fa-solid\"\n    },\n    etch: {\n      faes: \"fa-solid\"\n    },\n    graphite: {\n      fagt: \"fa-thin\"\n    },\n    jelly: {\n      fajr: \"fa-regular\"\n    },\n    \"jelly-fill\": {\n      fajfr: \"fa-regular\"\n    },\n    \"jelly-duo\": {\n      fajdr: \"fa-regular\"\n    },\n    chisel: {\n      facr: \"fa-regular\"\n    },\n    utility: {\n      fausb: \"fa-semibold\"\n    },\n    \"utility-duo\": {\n      faudsb: \"fa-semibold\"\n    },\n    \"utility-fill\": {\n      faufsb: \"fa-semibold\"\n    }\n  },\n  tl = [\"fa-solid\", \"fa-regular\", \"fa-light\", \"fa-thin\", \"fa-duotone\", \"fa-brands\", \"fa-semibold\"],\n  ha = [\"fa\", \"fas\", \"far\", \"fal\", \"fat\", \"fad\", \"fadr\", \"fadl\", \"fadt\", \"fab\", \"fass\", \"fasr\", \"fasl\", \"fast\", \"fasds\", \"fasdr\", \"fasdl\", \"fasdt\", \"faslr\", \"faslpr\", \"fasldr\", \"faslpdr\", \"fapr\", \"fams\", \"favs\", \"fawsb\", \"fatl\", \"fans\", \"fands\", \"faes\", \"fagt\", \"fajr\", \"fajfr\", \"fajdr\", \"facr\", \"fausb\", \"faudsb\", \"faufsb\"].concat(n$1, tl),\n  el$1 = [\"solid\", \"regular\", \"light\", \"thin\", \"duotone\", \"brands\", \"semibold\"],\n  sl$1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],\n  ol$1 = sl$1.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]),\n  rl$1 = [\"aw\", \"fw\", \"pull-left\", \"pull-right\"],\n  ga = [].concat(_toConsumableArray(Object.keys(al$1)), el$1, rl$1, [\"2xs\", \"xs\", \"sm\", \"lg\", \"xl\", \"2xl\", \"beat\", \"beat-fade\", \"border\", \"bounce\", \"buzz\", \"canvas-square\", \"canvas-roomy\", \"fade\", \"flip-360\", \"flip-both\", \"flip-horizontal\", \"flip-vertical\", \"flip\", \"float\", \"inverse\", \"jello\", \"layers\", \"layers-bottom-left\", \"layers-bottom-right\", \"layers-counter\", \"layers-text\", \"layers-top-left\", \"layers-top-right\", \"li\", \"pull-end\", \"pull-start\", \"pulse\", \"rotate-180\", \"rotate-270\", \"rotate-90\", \"rotate-by\", \"shake\", \"spin-pulse\", \"spin-reverse\", \"spin\", \"spin-snap\", \"spin-snap-4\", \"spin-snap-8\", \"stack-1x\", \"stack-2x\", \"stack\", \"swing\", \"ul\", \"wag\", \"width-auto\", \"width-fixed\", l$1.GROUP, l$1.SWAP_OPACITY, l$1.PRIMARY, l$1.SECONDARY]).concat(sl$1.map(function (s) {\n    return \"\".concat(s, \"x\");\n  })).concat(ol$1.map(function (s) {\n    return \"w-\".concat(s);\n  }));\nvar wa = {\n    \"Font Awesome 5 Free\": {\n      900: \"fas\",\n      400: \"far\"\n    },\n    \"Font Awesome 5 Pro\": {\n      900: \"fas\",\n      400: \"far\",\n      normal: \"far\",\n      300: \"fal\"\n    },\n    \"Font Awesome 5 Brands\": {\n      400: \"fab\",\n      normal: \"fab\"\n    },\n    \"Font Awesome 5 Duotone\": {\n      900: \"fad\"\n    }\n  };\n\nvar NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';\nvar UNITS_IN_GRID = 16;\nvar DEFAULT_CSS_PREFIX = 'fa';\nvar DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';\nvar DATA_FA_I2SVG = 'data-fa-i2svg';\nvar DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';\nvar DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';\nvar DATA_PREFIX = 'data-prefix';\nvar DATA_ICON = 'data-icon';\nvar HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';\nvar MUTATION_APPROACH_ASYNC = 'async';\nvar TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];\nvar PSEUDO_ELEMENTS = ['::before', '::after', ':before', ':after'];\nvar PRODUCTION = function () {\n  try {\n    return process.env.NODE_ENV === 'production';\n  } catch (e$$1) {\n    return false;\n  }\n}();\nfunction familyProxy(obj) {\n  // Defaults to the classic family if family is not available\n  return new Proxy(obj, {\n    get: function get(target, prop) {\n      return prop in target ? target[prop] : target[u];\n    }\n  });\n}\nvar _PREFIX_TO_STYLE = _objectSpread2({}, rl);\n\n// We changed FACSSClassesToStyleId in the icons repo to be canonical and as such, \"classic\" family does not have any\n// duotone styles.  But we do still need duotone in _PREFIX_TO_STYLE below, so we are manually adding\n// {'fa-duotone': 'duotone'}\n_PREFIX_TO_STYLE[u] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {\n  'fa-duotone': 'duotone'\n}), rl[u]), rt['kit']), rt['kit-duotone']);\nvar PREFIX_TO_STYLE = familyProxy(_PREFIX_TO_STYLE);\nvar _STYLE_TO_PREFIX = _objectSpread2({}, $l);\n\n// We changed FAStyleIdToShortPrefixId in the icons repo to be canonical and as such, \"classic\" family does not have any\n// duotone styles.  But we do still need duotone in _STYLE_TO_PREFIX below, so we are manually adding {duotone: 'fad'}\n_STYLE_TO_PREFIX[u] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {\n  duotone: 'fad'\n}), _STYLE_TO_PREFIX[u]), St['kit']), St['kit-duotone']);\nvar STYLE_TO_PREFIX = familyProxy(_STYLE_TO_PREFIX);\nvar _PREFIX_TO_LONG_STYLE = _objectSpread2({}, da);\n_PREFIX_TO_LONG_STYLE[u] = _objectSpread2(_objectSpread2({}, _PREFIX_TO_LONG_STYLE[u]), It['kit']);\nvar PREFIX_TO_LONG_STYLE = familyProxy(_PREFIX_TO_LONG_STYLE);\nvar _LONG_STYLE_TO_PREFIX = _objectSpread2({}, ra);\n_LONG_STYLE_TO_PREFIX[u] = _objectSpread2(_objectSpread2({}, _LONG_STYLE_TO_PREFIX[u]), mt['kit']);\nvar LONG_STYLE_TO_PREFIX = familyProxy(_LONG_STYLE_TO_PREFIX);\nvar ICON_SELECTION_SYNTAX_PATTERN = Z;\nvar LAYERS_TEXT_CLASSNAME = 'fa-layers-text';\nvar FONT_FAMILY_PATTERN = $;\nvar _FONT_WEIGHT_TO_PREFIX = _objectSpread2({}, Al);\nvar FONT_WEIGHT_TO_PREFIX = familyProxy(_FONT_WEIGHT_TO_PREFIX);\nvar ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];\nvar DUOTONE_CLASSES = il;\nvar RESERVED_CLASSES = [].concat(_toConsumableArray(it), _toConsumableArray(ga));\n\nvar initial = WINDOW.FontAwesomeConfig || {};\nfunction getAttrConfig(attr) {\n  var element = DOCUMENT.querySelector('script[' + attr + ']');\n  if (element) {\n    return element.getAttribute(attr);\n  }\n}\nfunction coerce(val) {\n  // Getting an empty string will occur if the attribute is set on the HTML tag but without a value\n  // We'll assume that this is an indication that it should be toggled to true\n  if (val === '') return true;\n  if (val === 'false') return false;\n  if (val === 'true') return true;\n  return val;\n}\nif (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {\n  var attrs = [['data-family-prefix', 'familyPrefix'], ['data-css-prefix', 'cssPrefix'], ['data-family-default', 'familyDefault'], ['data-style-default', 'styleDefault'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-search-pseudo-elements-warnings', 'searchPseudoElementsWarnings'], ['data-search-pseudo-elements-full-scan', 'searchPseudoElementsFullScan'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];\n  attrs.forEach(function (_ref) {\n    var _ref2 = _slicedToArray(_ref, 2),\n      attr = _ref2[0],\n      key = _ref2[1];\n    var val = coerce(getAttrConfig(attr));\n    if (val !== undefined && val !== null) {\n      initial[key] = val;\n    }\n  });\n}\nvar _default = {\n  styleDefault: 'solid',\n  familyDefault: u,\n  cssPrefix: DEFAULT_CSS_PREFIX,\n  replacementClass: DEFAULT_REPLACEMENT_CLASS,\n  autoReplaceSvg: true,\n  autoAddCss: true,\n  searchPseudoElements: false,\n  searchPseudoElementsWarnings: true,\n  searchPseudoElementsFullScan: false,\n  observeMutations: true,\n  mutateApproach: 'async',\n  keepOriginalSource: true,\n  measurePerformance: false,\n  showMissingIcons: true\n};\n\n// familyPrefix is deprecated but we must still support it if present\nif (initial.familyPrefix) {\n  initial.cssPrefix = initial.familyPrefix;\n}\nvar _config = _objectSpread2(_objectSpread2({}, _default), initial);\nif (!_config.autoReplaceSvg) _config.observeMutations = false;\nvar config = {};\nObject.keys(_default).forEach(function (key) {\n  Object.defineProperty(config, key, {\n    enumerable: true,\n    set: function set(val) {\n      _config[key] = val;\n      _onChangeCb.forEach(function (cb) {\n        return cb(config);\n      });\n    },\n    get: function get() {\n      return _config[key];\n    }\n  });\n});\n\n// familyPrefix is deprecated as of 6.2.0 and should be removed in 7.0.0\nObject.defineProperty(config, 'familyPrefix', {\n  enumerable: true,\n  set: function set(val) {\n    _config.cssPrefix = val;\n    _onChangeCb.forEach(function (cb) {\n      return cb(config);\n    });\n  },\n  get: function get() {\n    return _config.cssPrefix;\n  }\n});\nWINDOW.FontAwesomeConfig = config;\nvar _onChangeCb = [];\nfunction onChange(cb) {\n  _onChangeCb.push(cb);\n  return function () {\n    _onChangeCb.splice(_onChangeCb.indexOf(cb), 1);\n  };\n}\n\nvar d$2 = UNITS_IN_GRID;\nvar meaninglessTransform = {\n  size: 16,\n  x: 0,\n  y: 0,\n  rotate: 0,\n  flipX: false,\n  flipY: false\n};\nfunction insertCss(css) {\n  if (!css || !IS_DOM) {\n    return;\n  }\n  var style = DOCUMENT.createElement('style');\n  style.setAttribute('type', 'text/css');\n  style.innerHTML = css;\n  var headChildren = DOCUMENT.head.childNodes;\n  var beforeChild = null;\n  for (var i = headChildren.length - 1; i > -1; i--) {\n    var child = headChildren[i];\n    var tagName = (child.tagName || '').toUpperCase();\n    if (['STYLE', 'LINK'].indexOf(tagName) > -1) {\n      beforeChild = child;\n    }\n  }\n  DOCUMENT.head.insertBefore(style, beforeChild);\n  return css;\n}\nvar idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\nfunction nextUniqueId() {\n  var size = 12;\n  var id = '';\n  while (size-- > 0) {\n    id += idPool[Math.random() * 62 | 0];\n  }\n  return id;\n}\nfunction toArray(obj) {\n  var array = [];\n  for (var i = (obj || []).length >>> 0; i--;) {\n    array[i] = obj[i];\n  }\n  return array;\n}\nfunction classArray(node) {\n  if (node.classList) {\n    return toArray(node.classList);\n  } else {\n    return (node.getAttribute('class') || '').split(' ').filter(function (i) {\n      return i;\n    });\n  }\n}\nfunction htmlEscape(str) {\n  return \"\".concat(str).replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');\n}\nfunction joinAttributes(attributes) {\n  return Object.keys(attributes || {}).reduce(function (acc, attributeName) {\n    return acc + \"\".concat(attributeName, \"=\\\"\").concat(htmlEscape(attributes[attributeName]), \"\\\" \");\n  }, '').trim();\n}\nfunction joinStyles(styles) {\n  return Object.keys(styles || {}).reduce(function (acc, styleName) {\n    return acc + \"\".concat(styleName, \": \").concat(styles[styleName].trim(), \";\");\n  }, '');\n}\nfunction transformIsMeaningful(transform) {\n  return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;\n}\nfunction transformForSvg(_ref) {\n  var transform = _ref.transform,\n    containerWidth = _ref.containerWidth,\n    iconWidth = _ref.iconWidth;\n  var outer = {\n    transform: \"translate(\".concat(containerWidth / 2, \" 256)\")\n  };\n  var innerTranslate = \"translate(\".concat(transform.x * 32, \", \").concat(transform.y * 32, \") \");\n  var innerScale = \"scale(\".concat(transform.size / 16 * (transform.flipX ? -1 : 1), \", \").concat(transform.size / 16 * (transform.flipY ? -1 : 1), \") \");\n  var innerRotate = \"rotate(\".concat(transform.rotate, \" 0 0)\");\n  var inner = {\n    transform: \"\".concat(innerTranslate, \" \").concat(innerScale, \" \").concat(innerRotate)\n  };\n  var path = {\n    transform: \"translate(\".concat(iconWidth / 2 * -1, \" -256)\")\n  };\n  return {\n    outer: outer,\n    inner: inner,\n    path: path\n  };\n}\nfunction transformForCss(_ref2) {\n  var transform = _ref2.transform,\n    _ref2$width = _ref2.width,\n    width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,\n    _ref2$height = _ref2.height,\n    height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,\n    _ref2$startCentered = _ref2.startCentered,\n    startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;\n  var val = '';\n  if (startCentered && IS_IE) {\n    val += \"translate(\".concat(transform.x / d$2 - width / 2, \"em, \").concat(transform.y / d$2 - height / 2, \"em) \");\n  } else if (startCentered) {\n    val += \"translate(calc(-50% + \".concat(transform.x / d$2, \"em), calc(-50% + \").concat(transform.y / d$2, \"em)) \");\n  } else {\n    val += \"translate(\".concat(transform.x / d$2, \"em, \").concat(transform.y / d$2, \"em) \");\n  }\n  val += \"scale(\".concat(transform.size / d$2 * (transform.flipX ? -1 : 1), \", \").concat(transform.size / d$2 * (transform.flipY ? -1 : 1), \") \");\n  val += \"rotate(\".concat(transform.rotate, \"deg) \");\n  return val;\n}\n\nvar baseStyles = \":root, :host {\\n  --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';\\n  --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';\\n  --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';\\n  --fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro';\\n  --fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone';\\n  --fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone';\\n  --fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone';\\n  --fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone';\\n  --fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands';\\n  --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp';\\n  --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp';\\n  --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp';\\n  --fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp';\\n  --fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone';\\n  --fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone';\\n  --fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone';\\n  --fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone';\\n  --fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab';\\n  --fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press';\\n  --fa-font-slab-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Duo';\\n  --fa-font-slab-press-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Press Duo';\\n  --fa-font-pixel-regular: normal 400 1em/1 'Font Awesome 7 Pixel';\\n  --fa-font-mosaic-solid: normal 900 1em/1 'Font Awesome 7 Mosaic';\\n  --fa-font-vellum-solid: normal 900 1em/1 'Font Awesome 7 Vellum';\\n  --fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard';\\n  --fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint';\\n  --fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog';\\n  --fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo';\\n  --fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch';\\n  --fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite';\\n  --fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly';\\n  --fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill';\\n  --fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo';\\n  --fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel';\\n  --fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility';\\n  --fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo';\\n  --fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill';\\n}\\n\\n.svg-inline--fa {\\n  box-sizing: content-box;\\n  display: var(--fa-display, inline-block);\\n  height: 1em;\\n  overflow: visible;\\n  vertical-align: -0.125em;\\n  width: var(--fa-width, 1.25em);\\n}\\n.svg-inline--fa.fa-2xs {\\n  vertical-align: 0.1em;\\n}\\n.svg-inline--fa.fa-xs {\\n  vertical-align: 0em;\\n}\\n.svg-inline--fa.fa-sm {\\n  vertical-align: -0.0714285714em;\\n}\\n.svg-inline--fa.fa-lg {\\n  vertical-align: -0.2em;\\n}\\n.svg-inline--fa.fa-xl {\\n  vertical-align: -0.25em;\\n}\\n.svg-inline--fa.fa-2xl {\\n  vertical-align: -0.3125em;\\n}\\n.svg-inline--fa.fa-pull-left,\\n.svg-inline--fa .fa-pull-start {\\n  float: inline-start;\\n  margin-inline-end: var(--fa-pull-margin, 0.3em);\\n}\\n.svg-inline--fa.fa-pull-right,\\n.svg-inline--fa .fa-pull-end {\\n  float: inline-end;\\n  margin-inline-start: var(--fa-pull-margin, 0.3em);\\n}\\n.svg-inline--fa.fa-li {\\n  width: var(--fa-li-width, 2em);\\n  inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\\n  inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\\n}\\n\\n.fa-layers-counter, .fa-layers-text {\\n  display: inline-block;\\n  position: absolute;\\n  text-align: center;\\n}\\n\\n.fa-layers {\\n  display: inline-block;\\n  height: 1em;\\n  position: relative;\\n  text-align: center;\\n  vertical-align: -0.125em;\\n  width: var(--fa-width, 1.25em);\\n}\\n.fa-layers .svg-inline--fa {\\n  inset: 0;\\n  margin: auto;\\n  position: absolute;\\n  transform-origin: center center;\\n}\\n\\n.fa-layers-text {\\n  left: 50%;\\n  top: 50%;\\n  transform: translate(-50%, -50%);\\n  transform-origin: center center;\\n}\\n\\n.fa-layers-counter {\\n  background-color: var(--fa-counter-background-color, #ff253a);\\n  border-radius: var(--fa-counter-border-radius, 1em);\\n  box-sizing: border-box;\\n  color: var(--fa-inverse, #fff);\\n  line-height: var(--fa-counter-line-height, 1);\\n  max-width: var(--fa-counter-max-width, 5em);\\n  min-width: var(--fa-counter-min-width, 1.5em);\\n  overflow: hidden;\\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\\n  right: var(--fa-right, 0);\\n  text-overflow: ellipsis;\\n  top: var(--fa-top, 0);\\n  transform: scale(var(--fa-counter-scale, 0.25));\\n  transform-origin: top right;\\n}\\n\\n.fa-layers-bottom-right {\\n  bottom: var(--fa-bottom, 0);\\n  right: var(--fa-right, 0);\\n  top: auto;\\n  transform: scale(var(--fa-layers-scale, 0.25));\\n  transform-origin: bottom right;\\n}\\n\\n.fa-layers-bottom-left {\\n  bottom: var(--fa-bottom, 0);\\n  left: var(--fa-left, 0);\\n  right: auto;\\n  top: auto;\\n  transform: scale(var(--fa-layers-scale, 0.25));\\n  transform-origin: bottom left;\\n}\\n\\n.fa-layers-top-right {\\n  top: var(--fa-top, 0);\\n  right: var(--fa-right, 0);\\n  transform: scale(var(--fa-layers-scale, 0.25));\\n  transform-origin: top right;\\n}\\n\\n.fa-layers-top-left {\\n  left: var(--fa-left, 0);\\n  right: auto;\\n  top: var(--fa-top, 0);\\n  transform: scale(var(--fa-layers-scale, 0.25));\\n  transform-origin: top left;\\n}\\n\\n.fa-1x {\\n  font-size: 1em;\\n}\\n\\n.fa-2x {\\n  font-size: 2em;\\n}\\n\\n.fa-3x {\\n  font-size: 3em;\\n}\\n\\n.fa-4x {\\n  font-size: 4em;\\n}\\n\\n.fa-5x {\\n  font-size: 5em;\\n}\\n\\n.fa-6x {\\n  font-size: 6em;\\n}\\n\\n.fa-7x {\\n  font-size: 7em;\\n}\\n\\n.fa-8x {\\n  font-size: 8em;\\n}\\n\\n.fa-9x {\\n  font-size: 9em;\\n}\\n\\n.fa-10x {\\n  font-size: 10em;\\n}\\n\\n.fa-2xs {\\n  font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */\\n  line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */\\n  vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\\n}\\n\\n.fa-xs {\\n  font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */\\n  line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */\\n  vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\\n}\\n\\n.fa-sm {\\n  font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */\\n  line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */\\n  vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\\n}\\n\\n.fa-lg {\\n  font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */\\n  line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */\\n  vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\\n}\\n\\n.fa-xl {\\n  font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */\\n  line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */\\n  vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\\n}\\n\\n.fa-2xl {\\n  font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */\\n  line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */\\n  vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\\n}\\n\\n.fa-width-auto {\\n  --fa-width: auto;\\n}\\n\\n.fa-fw,\\n.fa-width-fixed {\\n  --fa-width: 1.25em;\\n}\\n\\n.fa-canvas-square {\\n  padding-block: 0.125em;\\n  margin-block-end: -0.125em;\\n}\\n\\n.fa-canvas-roomy {\\n  padding-block: 0.25em;\\n  padding-inline: 0.125em;\\n  margin-block-end: -0.25em;\\n  box-sizing: content-box;\\n}\\n\\n.fa-ul {\\n  list-style-type: none;\\n  margin-inline-start: var(--fa-li-margin, 2.5em);\\n  padding-inline-start: 0;\\n}\\n.fa-ul > li {\\n  position: relative;\\n}\\n\\n.fa-li {\\n  inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\\n  position: absolute;\\n  text-align: center;\\n  width: var(--fa-li-width, 2em);\\n  line-height: inherit;\\n}\\n\\n/* Heads Up: Bordered Icons will not be supported in the future!\\n  - This feature will be deprecated in the next major release of Font Awesome (v8)!\\n  - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\\n*/\\n/* Notes:\\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\\n* --@{v.$css-prefix}-border-padding =\\n  ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)\\n  ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\\n*/\\n.fa-border {\\n  border-color: var(--fa-border-color, #eee);\\n  border-radius: var(--fa-border-radius, 0.1em);\\n  border-style: var(--fa-border-style, solid);\\n  border-width: var(--fa-border-width, 0.0625em);\\n  box-sizing: var(--fa-border-box-sizing, content-box);\\n  padding: var(--fa-border-padding, 0.1875em 0.25em);\\n}\\n\\n.fa-pull-left,\\n.fa-pull-start {\\n  float: inline-start;\\n  margin-inline-end: var(--fa-pull-margin, 0.3em);\\n}\\n\\n.fa-pull-right,\\n.fa-pull-end {\\n  float: inline-end;\\n  margin-inline-start: var(--fa-pull-margin, 0.3em);\\n}\\n\\n.fa-beat {\\n  animation-name: fa-beat;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 1s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\\n}\\n\\n.fa-bounce {\\n  animation-name: fa-bounce;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 1s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\\n}\\n\\n.fa-fade {\\n  animation-name: fa-fade;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 1s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\\n}\\n\\n.fa-beat-fade {\\n  animation-name: fa-beat-fade;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 1s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\\n}\\n\\n.fa-flip {\\n  animation-name: fa-flip;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 1.5s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\\n}\\n\\n.fa-flip-360 {\\n  animation-name: fa-flip-360;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 1s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\\n}\\n\\n.fa-shake {\\n  animation-name: fa-shake;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 0.75s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\\n}\\n\\n.fa-spin {\\n  animation-name: fa-spin;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 2s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, linear);\\n}\\n\\n.fa-spin-reverse {\\n  --fa-animation-direction: reverse;\\n}\\n\\n.fa-pulse,\\n.fa-spin-pulse {\\n  animation-name: fa-spin;\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 1s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, steps(8));\\n}\\n\\n.fa-spin-snap {\\n  animation-name: fa-spin-snap;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 3s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, linear);\\n}\\n\\n.fa-spin-snap-4 {\\n  animation-name: fa-spin-snap-4;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 2.4s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, linear);\\n}\\n\\n.fa-spin-snap-8 {\\n  animation-name: fa-spin-snap-8;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 4s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, linear);\\n}\\n\\n.fa-buzz {\\n  animation-name: fa-buzz;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 0.6s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, linear);\\n}\\n\\n.fa-wag {\\n  animation-name: fa-wag;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 0.9s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, ease-out);\\n  transform-origin: bottom center;\\n}\\n\\n.fa-float {\\n  animation-name: fa-float;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 3s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\\n  will-change: transform;\\n}\\n\\n.fa-swing {\\n  animation-name: fa-swing;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 1.2s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, ease-out);\\n  transform-origin: top center;\\n}\\n\\n.fa-jello {\\n  animation-name: fa-jello;\\n  animation-delay: var(--fa-animation-delay, 0s);\\n  animation-direction: var(--fa-animation-direction, normal);\\n  animation-duration: var(--fa-animation-duration, 0.9s);\\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\\n  animation-timing-function: var(--fa-animation-timing, ease-out);\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .fa-beat,\\n  .fa-bounce,\\n  .fa-fade,\\n  .fa-beat-fade,\\n  .fa-flip,\\n  .fa-flip-360,\\n  .fa-pulse,\\n  .fa-shake,\\n  .fa-spin,\\n  .fa-spin-pulse,\\n  .fa-buzz,\\n  .fa-float,\\n  .fa-jello,\\n  .fa-spin-snap,\\n  .fa-spin-snap-4,\\n  .fa-spin-snap-8,\\n  .fa-swing,\\n  .fa-wag {\\n    animation: none !important;\\n    transition: none !important;\\n  }\\n}\\n@keyframes fa-beat {\\n  0% {\\n    transform: scale(1);\\n  }\\n  25% {\\n    transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));\\n  }\\n  45% {\\n    transform: scale(calc(1.22 * var(--fa-beat-scale, 1.22)));\\n  }\\n  65% {\\n    transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));\\n  }\\n  90% {\\n    transform: scale(1);\\n  }\\n}\\n@keyframes fa-bounce {\\n  0% {\\n    transform: scale(1, 1) translateY(0);\\n    animation-timing-function: var(--fa-animation-timing);\\n  }\\n  14% {\\n    transform: scale(var(--fa-bounce-start-scale-x, 1.06), var(--fa-bounce-start-scale-y, 0.94)) translateY(var(--fa-bounce-anticipation, 3px));\\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\\n  }\\n  32% {\\n    transform: scale(var(--fa-bounce-jump-scale-x, 0.94), var(--fa-bounce-jump-scale-y, 1.12)) translateY(calc(-1 * var(--fa-bounce-height, 0.5em)));\\n    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\\n  }\\n  52% {\\n    transform: scale(1, 1) translateY(calc(-1 * var(--fa-bounce-height, 0.5em) * 1.1));\\n    animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);\\n  }\\n  70% {\\n    transform: scale(var(--fa-bounce-land-scale-x, 1.06), var(--fa-bounce-land-scale-y, 0.92)) translateY(0);\\n    animation-timing-function: cubic-bezier(0.33, 0.33, 0.66, 1);\\n  }\\n  85% {\\n    transform: scale(0.98, 1.04) translateY(calc(-2px * var(--fa-bounce-rebound, 1)));\\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\\n  }\\n  100% {\\n    transform: scale(1, 1) translateY(0);\\n  }\\n}\\n@keyframes fa-fade {\\n  0% {\\n    opacity: 1;\\n    transform: scale(1);\\n    animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\\n  }\\n  40% {\\n    opacity: var(--fa-fade-opacity, 0.4);\\n    transform: scale(0.98);\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\\n  }\\n  100% {\\n    opacity: 1;\\n    transform: scale(1);\\n  }\\n}\\n@keyframes fa-beat-fade {\\n  0% {\\n    opacity: var(--fa-beat-fade-opacity, 0.4);\\n    transform: scale(1);\\n    animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\\n  }\\n  25% {\\n    opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);\\n    transform: scale(var(--fa-beat-fade-scale, 1.28));\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\\n  }\\n  45% {\\n    opacity: 1;\\n    transform: scale(var(--fa-beat-fade-scale, 1.25));\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\\n  }\\n  65% {\\n    opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);\\n    transform: scale(var(--fa-beat-fade-scale, 1.28));\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\\n  }\\n  100% {\\n    opacity: var(--fa-beat-fade-opacity, 0.4);\\n    transform: scale(1);\\n  }\\n}\\n@keyframes fa-flip {\\n  0% {\\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\\n    animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\\n  }\\n  8% {\\n    transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\\n  }\\n  35% {\\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));\\n    animation-timing-function: linear;\\n  }\\n  65% {\\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.5));\\n    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\\n  }\\n  92% {\\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));\\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\\n  }\\n  100% {\\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));\\n  }\\n}\\n@keyframes fa-flip-360 {\\n  0% {\\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\\n    animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\\n  }\\n  8% {\\n    transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\\n  }\\n  50% {\\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));\\n    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\\n  }\\n  80% {\\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));\\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\\n  }\\n  100% {\\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));\\n  }\\n}\\n@keyframes fa-shake {\\n  0% {\\n    transform: rotate(0deg);\\n    animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\\n  }\\n  8% {\\n    transform: rotate(35deg) translateX(1px);\\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\\n  }\\n  20% {\\n    transform: rotate(-22deg) translateX(-1px);\\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\\n  }\\n  35% {\\n    transform: rotate(15deg) translateX(1px);\\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\\n  }\\n  50% {\\n    transform: rotate(-9deg);\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\\n  }\\n  65% {\\n    transform: rotate(5deg);\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\\n  }\\n  78% {\\n    transform: rotate(-3deg);\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\\n  }\\n  90% {\\n    transform: rotate(1deg);\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\\n  }\\n  100% {\\n    transform: rotate(0deg);\\n  }\\n}\\n@keyframes fa-spin {\\n  0% {\\n    transform: rotate(0deg);\\n  }\\n  100% {\\n    transform: rotate(360deg);\\n  }\\n}\\n@keyframes fa-spin-snap {\\n  0% {\\n    transform: rotate(0deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  12% {\\n    transform: rotate(60deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  16.67% {\\n    transform: rotate(60deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  28.67% {\\n    transform: rotate(120deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  33.33% {\\n    transform: rotate(120deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  45.33% {\\n    transform: rotate(180deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  50% {\\n    transform: rotate(180deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  62% {\\n    transform: rotate(240deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  66.67% {\\n    transform: rotate(240deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  78.67% {\\n    transform: rotate(300deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  83.33% {\\n    transform: rotate(300deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  95.33% {\\n    transform: rotate(360deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  100% {\\n    transform: rotate(360deg);\\n  }\\n}\\n@keyframes fa-spin-snap-4 {\\n  0% {\\n    transform: rotate(0deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  15% {\\n    transform: rotate(90deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  25% {\\n    transform: rotate(90deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  40% {\\n    transform: rotate(180deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  50% {\\n    transform: rotate(180deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  65% {\\n    transform: rotate(270deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  75% {\\n    transform: rotate(270deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  90% {\\n    transform: rotate(360deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  100% {\\n    transform: rotate(360deg);\\n  }\\n}\\n@keyframes fa-spin-snap-8 {\\n  0% {\\n    transform: rotate(0deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  9% {\\n    transform: rotate(45deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  12.5% {\\n    transform: rotate(45deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  21.5% {\\n    transform: rotate(90deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  25% {\\n    transform: rotate(90deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  34% {\\n    transform: rotate(135deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  37.5% {\\n    transform: rotate(135deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  46.5% {\\n    transform: rotate(180deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  50% {\\n    transform: rotate(180deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  59% {\\n    transform: rotate(225deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  62.5% {\\n    transform: rotate(225deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  71.5% {\\n    transform: rotate(270deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  75% {\\n    transform: rotate(270deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  84% {\\n    transform: rotate(315deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  87.5% {\\n    transform: rotate(315deg);\\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\\n  }\\n  96.5% {\\n    transform: rotate(360deg);\\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\\n  }\\n  100% {\\n    transform: rotate(360deg);\\n  }\\n}\\n@keyframes fa-buzz {\\n  0% {\\n    transform: translateX(0) rotate(0deg);\\n    animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1);\\n  }\\n  5% {\\n    transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.5deg);\\n  }\\n  10% {\\n    transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.5deg);\\n  }\\n  15% {\\n    transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.3deg);\\n  }\\n  20% {\\n    transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.3deg);\\n  }\\n  25% {\\n    transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.7)) rotate(0.2deg);\\n  }\\n  30% {\\n    transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px) * 0.7)) rotate(-0.2deg);\\n  }\\n  35% {\\n    transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.4)) rotate(0.1deg);\\n  }\\n  40% {\\n    transform: translateX(0) rotate(0deg);\\n  }\\n  100% {\\n    transform: translateX(0) rotate(0deg);\\n  }\\n}\\n@keyframes fa-wag {\\n  0% {\\n    transform: rotate(0deg);\\n    animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\\n  }\\n  12% {\\n    transform: rotate(var(--fa-wag-angle, 12deg));\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\\n  }\\n  24% {\\n    transform: rotate(2deg);\\n    animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\\n  }\\n  36% {\\n    transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.85));\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\\n  }\\n  48% {\\n    transform: rotate(1deg);\\n    animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\\n  }\\n  58% {\\n    transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.6));\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\\n  }\\n  68% {\\n    transform: rotate(0deg);\\n  }\\n  100% {\\n    transform: rotate(0deg);\\n  }\\n}\\n@keyframes fa-float {\\n  0% {\\n    transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\\n  }\\n  15% {\\n    transform: translateY(calc(-0.4 * var(--fa-float-height, 6px))) translateX(var(--fa-float-drift, 1px)) rotate(var(--fa-float-tilt, 1deg)) scale(1, 1);\\n    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\\n  }\\n  35% {\\n    transform: translateY(calc(-1 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-stretch-x, 0.98), var(--fa-float-stretch-y, 1.03));\\n    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 0);\\n  }\\n  50% {\\n    transform: translateY(calc(-0.92 * var(--fa-float-height, 6px))) translateX(calc(-0.5 * var(--fa-float-drift, 1px))) rotate(calc(-0.5 * var(--fa-float-tilt, 1deg))) scale(0.995, 1.01);\\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\\n  }\\n  70% {\\n    transform: translateY(calc(-0.3 * var(--fa-float-height, 6px))) translateX(calc(-1 * var(--fa-float-drift, 1px))) rotate(calc(-1 * var(--fa-float-tilt, 1deg))) scale(1, 1);\\n    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\\n  }\\n  90% {\\n    transform: translateY(calc(0.05 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\\n  }\\n  100% {\\n    transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\\n  }\\n}\\n@keyframes fa-swing {\\n  0% {\\n    transform: rotate(0deg);\\n    animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\\n  }\\n  8% {\\n    transform: rotate(var(--fa-swing-angle, 22deg));\\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\\n  }\\n  18% {\\n    transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.85));\\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\\n  }\\n  28% {\\n    transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.65));\\n    animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);\\n  }\\n  38% {\\n    transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.45));\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\\n  }\\n  48% {\\n    transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.25));\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\\n  }\\n  56% {\\n    transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.1));\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\\n  }\\n  64% {\\n    transform: rotate(0deg);\\n  }\\n  100% {\\n    transform: rotate(0deg);\\n  }\\n}\\n@keyframes fa-jello {\\n  0% {\\n    transform: scale(1, 1);\\n    animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\\n  }\\n  12% {\\n    transform: scale(var(--fa-jello-scale-x, 1.15), calc(2 - var(--fa-jello-scale-x, 1.15)));\\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\\n  }\\n  24% {\\n    transform: scale(calc(2 - var(--fa-jello-scale-y, 1.12)), var(--fa-jello-scale-y, 1.12));\\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\\n  }\\n  36% {\\n    transform: scale(calc(1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5), calc(2 - (1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5)));\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\\n  }\\n  48% {\\n    transform: scale(calc(2 - (1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)), calc(1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3));\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\\n  }\\n  58% {\\n    transform: scale(1.02, 0.98);\\n    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\\n  }\\n  68% {\\n    transform: scale(1, 1);\\n  }\\n  100% {\\n    transform: scale(1, 1);\\n  }\\n}\\n.fa-rotate-90 {\\n  transform: rotate(90deg);\\n}\\n\\n.fa-rotate-180 {\\n  transform: rotate(180deg);\\n}\\n\\n.fa-rotate-270 {\\n  transform: rotate(270deg);\\n}\\n\\n.fa-flip-horizontal {\\n  transform: scale(-1, 1);\\n}\\n\\n.fa-flip-vertical {\\n  transform: scale(1, -1);\\n}\\n\\n.fa-flip-both,\\n.fa-flip-horizontal.fa-flip-vertical {\\n  transform: scale(-1, -1);\\n}\\n\\n.fa-rotate-by {\\n  transform: rotate(var(--fa-rotate-angle, 0));\\n}\\n\\n.svg-inline--fa .fa-primary {\\n  fill: var(--fa-primary-color, currentColor);\\n  opacity: var(--fa-primary-opacity, 1);\\n}\\n\\n.svg-inline--fa .fa-secondary {\\n  fill: var(--fa-secondary-color, currentColor);\\n  opacity: var(--fa-secondary-opacity, 0.4);\\n}\\n\\n.svg-inline--fa.fa-swap-opacity .fa-primary {\\n  opacity: var(--fa-secondary-opacity, 0.4);\\n}\\n\\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\\n  opacity: var(--fa-primary-opacity, 1);\\n}\\n\\n.svg-inline--fa mask .fa-primary,\\n.svg-inline--fa mask .fa-secondary {\\n  fill: black;\\n}\\n\\n.svg-inline--fa.fa-inverse {\\n  fill: var(--fa-inverse, #fff);\\n}\\n\\n.fa-stack {\\n  display: inline-block;\\n  height: 2em;\\n  line-height: 2em;\\n  position: relative;\\n  vertical-align: middle;\\n  width: 2.5em;\\n}\\n\\n.fa-inverse {\\n  color: var(--fa-inverse, #fff);\\n}\\n\\n.svg-inline--fa.fa-stack-1x {\\n  --fa-width: 1.25em;\\n  height: 1em;\\n  width: var(--fa-width);\\n}\\n.svg-inline--fa.fa-stack-2x {\\n  --fa-width: 2.5em;\\n  height: 2em;\\n  width: var(--fa-width);\\n}\\n\\n.fa-stack-1x,\\n.fa-stack-2x {\\n  inset: 0;\\n  margin: auto;\\n  position: absolute;\\n  z-index: var(--fa-stack-z-index, auto);\\n}\";\n\nfunction css() {\n  var dcp = DEFAULT_CSS_PREFIX;\n  var drc = DEFAULT_REPLACEMENT_CLASS;\n  var fp = config.cssPrefix;\n  var rc = config.replacementClass;\n  var s = baseStyles;\n  if (fp !== dcp || rc !== drc) {\n    var dPatt = new RegExp(\"\\\\.\".concat(dcp, \"\\\\-\"), 'g');\n    var customPropPatt = new RegExp(\"\\\\--\".concat(dcp, \"\\\\-\"), 'g');\n    var rPatt = new RegExp(\"\\\\.\".concat(drc), 'g');\n    s = s.replace(dPatt, \".\".concat(fp, \"-\")).replace(customPropPatt, \"--\".concat(fp, \"-\")).replace(rPatt, \".\".concat(rc));\n  }\n  return s;\n}\nvar _cssInserted = false;\nfunction ensureCss() {\n  if (config.autoAddCss && !_cssInserted) {\n    insertCss(css());\n    _cssInserted = true;\n  }\n}\nvar InjectCSS = {\n  mixout: function mixout() {\n    return {\n      dom: {\n        css: css,\n        insertCss: ensureCss\n      }\n    };\n  },\n  hooks: function hooks() {\n    return {\n      beforeDOMElementCreation: function beforeDOMElementCreation() {\n        ensureCss();\n      },\n      beforeI2svg: function beforeI2svg() {\n        ensureCss();\n      }\n    };\n  }\n};\n\nvar w$2 = WINDOW || {};\nif (!w$2[NAMESPACE_IDENTIFIER]) w$2[NAMESPACE_IDENTIFIER] = {};\nif (!w$2[NAMESPACE_IDENTIFIER].styles) w$2[NAMESPACE_IDENTIFIER].styles = {};\nif (!w$2[NAMESPACE_IDENTIFIER].hooks) w$2[NAMESPACE_IDENTIFIER].hooks = {};\nif (!w$2[NAMESPACE_IDENTIFIER].shims) w$2[NAMESPACE_IDENTIFIER].shims = [];\nvar namespace = w$2[NAMESPACE_IDENTIFIER];\n\nvar functions = [];\nvar _listener = function listener() {\n  DOCUMENT.removeEventListener('DOMContentLoaded', _listener);\n  loaded = 1;\n  functions.map(function (fn) {\n    return fn();\n  });\n};\nvar loaded = false;\nif (IS_DOM) {\n  loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);\n  if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', _listener);\n}\nfunction domready (fn) {\n  if (!IS_DOM) return;\n  loaded ? setTimeout(fn, 0) : functions.push(fn);\n}\n\nfunction toHtml(abstractNodes) {\n  var tag = abstractNodes.tag,\n    _abstractNodes$attrib = abstractNodes.attributes,\n    attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,\n    _abstractNodes$childr = abstractNodes.children,\n    children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;\n  if (typeof abstractNodes === 'string') {\n    return htmlEscape(abstractNodes);\n  } else {\n    return \"<\".concat(tag, \" \").concat(joinAttributes(attributes), \">\").concat(children.map(toHtml).join(''), \"</\").concat(tag, \">\");\n  }\n}\n\nfunction iconFromMapping(mapping, prefix, iconName) {\n  if (mapping && mapping[prefix] && mapping[prefix][iconName]) {\n    return {\n      prefix: prefix,\n      iconName: iconName,\n      icon: mapping[prefix][iconName]\n    };\n  }\n}\n\n/**\n * Internal helper to bind a function known to have 4 arguments\n * to a given context.\n */\nvar bindInternal4 = function bindInternal4(func, thisContext) {\n  return function (a, b, c, d) {\n    return func.call(thisContext, a, b, c, d);\n  };\n};\n\n/**\n * # Reduce\n *\n * A fast object `.reduce()` implementation.\n *\n * @param  {Object}   subject      The object to reduce over.\n * @param  {Function} fn           The reducer function.\n * @param  {mixed}    initialValue The initial value for the reducer, defaults to subject[0].\n * @param  {Object}   thisContext  The context for the reducer.\n * @return {mixed}                 The final result.\n */\nvar reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {\n  var keys = Object.keys(subject),\n    length = keys.length,\n    iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,\n    i,\n    key,\n    result;\n  if (initialValue === undefined) {\n    i = 1;\n    result = subject[keys[0]];\n  } else {\n    i = 0;\n    result = initialValue;\n  }\n  for (; i < length; i++) {\n    key = keys[i];\n    result = iterator(result, subject[key], key, subject);\n  }\n  return result;\n};\n\n/**\n * Return hexadecimal string for a unicode character\n * Returns `null` when more than one character (not bytes!) are passed\n * For example: 'K' → '7B'\n */\nfunction toHex(unicode) {\n  if (_toConsumableArray(unicode).length !== 1) return null;\n  return unicode.codePointAt(0).toString(16);\n}\n\nfunction normalizeIcons(icons) {\n  return Object.keys(icons).reduce(function (acc, iconName) {\n    var icon = icons[iconName];\n    var expanded = !!icon.icon;\n    if (expanded) {\n      acc[icon.iconName] = icon.icon;\n    } else {\n      acc[iconName] = icon;\n    }\n    return acc;\n  }, {});\n}\nfunction defineIcons(prefix, icons) {\n  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n  var _params$skipHooks = params.skipHooks,\n    skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;\n  var normalized = normalizeIcons(icons);\n  if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {\n    namespace.hooks.addPack(prefix, normalizeIcons(icons));\n  } else {\n    namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);\n  }\n\n  /**\n   * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction\n   * of new styles we needed to differentiate between them. Prefix `fa` is now an alias\n   * for `fas` so we'll ease the upgrade process for our users by automatically defining\n   * this as well.\n   */\n  if (prefix === 'fas') {\n    defineIcons('fa', icons);\n  }\n}\n\nvar MONO = 0x1;\nvar DUO = 0x2;\n\n// New v7 compatible matchers using the style attribute to determine layer membership\nvar modernMatches = [[DUO, /*#__PURE__*/_wrapRegExp(/path opacity=\"([^\"]*)\".*d=\"([^\"]*)\".*path.*d=\"([^\"]*)\"/, {\n  d2: 2,\n  d1: 3\n})], [DUO, /*#__PURE__*/_wrapRegExp(/path opacity=\"([^\"]*)\".*d=\"([^\"]*)\"/, {\n  d2: 2\n})], [MONO, /*#__PURE__*/_wrapRegExp(/path fill=\"currentColor\".*d=\"([^\"]+)\"/, {\n  d1: 1\n})]];\n\n// Old <= v6 matchers, these should rarely get used.\n//\n// Why are there so many? Over the lifecycle of version 5 and 6 we modified the\n// syntax for our source SVG files several times. These patterns match the\n// historical record and attempt to handle backwards-compatibility in rare edge\n// cases (loading version 6 SVG source files using the version 7 SVG parser)\nvar legacyMatches = [[DUO, /*#__PURE__*/_wrapRegExp(/path class=\"([^\"]*secondary[^\"]*)\".*d=\"([^\"]+)\".*path class=\"([^\"]*primary[^\"]*)\".*d=\"([^\"]+)\"/, {\n  attr2: 1,\n  d2: 2,\n  attr1: 3,\n  d1: 4\n})], [DUO, /*#__PURE__*/_wrapRegExp(/path class=\"([^\"]*primary[^\"]*)\".*d=\"([^\"]+)\".*path class=\"([^\"]*secondary[^\"]*)\".*d=\"([^\"]+)\"/, {\n  attr1: 1,\n  d1: 2,\n  attr2: 3,\n  d2: 4\n})], [DUO, /*#__PURE__*/_wrapRegExp(/path class=\"([^\"]*primary[^\"]*)\".*d=\"([^\"]+)\"/, {\n  attr1: 1,\n  d1: 2\n})], [DUO, /*#__PURE__*/_wrapRegExp(/path class=\"([^\"]*secondary[^\"]*)\".*d=\"([^\"]+)\"/, {\n  attr2: 1,\n  d2: 2\n})], [DUO, /*#__PURE__*/_wrapRegExp(/path d=\"([^\"]+)\".*class=\"([^\"]*secondary[^\"]*)\".*path d=\"([^\"]+)\".*class=\"([^\"]*primary[^\"]*)\"/, {\n  d2: 1,\n  attr2: 2,\n  d1: 3,\n  attr1: 4\n})], [DUO, /*#__PURE__*/_wrapRegExp(/path d=\"([^\"]+)\".*class=\"([^\"]*primary[^\"]*)\".*path d=\"([^\"]+)\".*class=\"([^\"]*secondary[^\"]*)\"/, {\n  d1: 1,\n  attr1: 2,\n  d2: 3,\n  attr2: 4\n})], [DUO, /*#__PURE__*/_wrapRegExp(/path d=\"([^\"]+)\".*class=\"([^\"]*primary[^\"]*)\"/, {\n  d1: 1,\n  attr1: 2\n})], [DUO, /*#__PURE__*/_wrapRegExp(/path d=\"([^\"]+)\".*class=\"([^\"]*secondary[^\"]*)\"/, {\n  d2: 1,\n  attr2: 2\n})], [DUO, /*#__PURE__*/_wrapRegExp(/path d=\"([^\"]+)\".*path d=\"([^\"]+)\"/, {\n  d1: 1,\n  d2: 2\n})], [MONO, /*#__PURE__*/_wrapRegExp(/path d=\"([^\"]+)\"/, {\n  d1: 1\n})], [MONO, /*#__PURE__*/_wrapRegExp(/path style=\"([^\"]+)\".*d=\"([^\"]+)\"/, {\n  attr1: 1,\n  d1: 2\n})]];\n\nvar styles = namespace.styles,\n  shims = namespace.shims;\nvar FAMILY_NAMES = Object.keys(PREFIX_TO_LONG_STYLE);\nvar PREFIXES_FOR_FAMILY = FAMILY_NAMES.reduce(function (acc, familyId) {\n  acc[familyId] = Object.keys(PREFIX_TO_LONG_STYLE[familyId]);\n  return acc;\n}, {});\nvar _defaultUsablePrefix = null;\nvar _byUnicode = {};\nvar _byLigature = {};\nvar _byOldName = {};\nvar _byOldUnicode = {};\nvar _byAlias = {};\nfunction isReserved(name) {\n  return ~RESERVED_CLASSES.indexOf(name);\n}\nfunction getIconName(cssPrefix, cls) {\n  var parts = cls.split('-');\n  var prefix = parts[0];\n  var iconName = parts.slice(1).join('-');\n  if (prefix === cssPrefix && iconName !== '' && !isReserved(iconName)) {\n    return iconName;\n  } else {\n    return null;\n  }\n}\nvar build = function build() {\n  var lookup = function lookup(reducer) {\n    return reduce(styles, function (o$$1, style, prefix) {\n      o$$1[prefix] = reduce(style, reducer, {});\n      return o$$1;\n    }, {});\n  };\n  _byUnicode = lookup(function (acc, icon, iconName) {\n    if (icon[3]) {\n      acc[icon[3]] = iconName;\n    }\n    if (icon[2]) {\n      var aliases = icon[2].filter(function (a$$1) {\n        return typeof a$$1 === 'number';\n      });\n      aliases.forEach(function (alias) {\n        acc[alias.toString(16)] = iconName;\n      });\n    }\n    return acc;\n  });\n  _byLigature = lookup(function (acc, icon, iconName) {\n    acc[iconName] = iconName;\n    if (icon[2]) {\n      var aliases = icon[2].filter(function (a$$1) {\n        return typeof a$$1 === 'string';\n      });\n      aliases.forEach(function (alias) {\n        acc[alias] = iconName;\n      });\n    }\n    return acc;\n  });\n  _byAlias = lookup(function (acc, icon, iconName) {\n    var aliases = icon[2];\n    acc[iconName] = iconName;\n    aliases.forEach(function (alias) {\n      acc[alias] = iconName;\n    });\n    return acc;\n  });\n\n  // If we have a Kit, we can't determine if regular is available since we\n  // could be auto-fetching it. We'll have to assume that it is available.\n  var hasRegular = 'far' in styles || config.autoFetchSvg;\n  var shimLookups = reduce(shims, function (acc, shim) {\n    var maybeNameMaybeUnicode = shim[0];\n    var prefix = shim[1];\n    var iconName = shim[2];\n    if (prefix === 'far' && !hasRegular) {\n      prefix = 'fas';\n    }\n    if (typeof maybeNameMaybeUnicode === 'string') {\n      acc.names[maybeNameMaybeUnicode] = {\n        prefix: prefix,\n        iconName: iconName\n      };\n    }\n    if (typeof maybeNameMaybeUnicode === 'number') {\n      acc.unicodes[maybeNameMaybeUnicode.toString(16)] = {\n        prefix: prefix,\n        iconName: iconName\n      };\n    }\n    return acc;\n  }, {\n    names: {},\n    unicodes: {}\n  });\n  _byOldName = shimLookups.names;\n  _byOldUnicode = shimLookups.unicodes;\n  _defaultUsablePrefix = getCanonicalPrefix(config.styleDefault, {\n    family: config.familyDefault\n  });\n};\nonChange(function (c$$1) {\n  _defaultUsablePrefix = getCanonicalPrefix(c$$1.styleDefault, {\n    family: config.familyDefault\n  });\n});\nbuild();\nfunction byUnicode(prefix, unicode) {\n  return (_byUnicode[prefix] || {})[unicode];\n}\nfunction byLigature(prefix, ligature) {\n  return (_byLigature[prefix] || {})[ligature];\n}\nfunction byAlias(prefix, alias) {\n  return (_byAlias[prefix] || {})[alias];\n}\nfunction byOldName(name) {\n  return _byOldName[name] || {\n    prefix: null,\n    iconName: null\n  };\n}\nfunction byOldUnicode(unicode) {\n  var oldUnicode = _byOldUnicode[unicode];\n  var newUnicode = byUnicode('fas', unicode);\n  return oldUnicode || (newUnicode ? {\n    prefix: 'fas',\n    iconName: newUnicode\n  } : null) || {\n    prefix: null,\n    iconName: null\n  };\n}\nfunction getDefaultUsablePrefix() {\n  return _defaultUsablePrefix;\n}\nvar emptyCanonicalIcon = function emptyCanonicalIcon() {\n  return {\n    prefix: null,\n    iconName: null,\n    rest: []\n  };\n};\nfunction getFamilyId(values) {\n  var family = u;\n  var famProps = FAMILY_NAMES.reduce(function (acc, familyId) {\n    acc[familyId] = \"\".concat(config.cssPrefix, \"-\").concat(familyId);\n    return acc;\n  }, {});\n  xl.forEach(function (familyId) {\n    if (values.includes(famProps[familyId]) || values.some(function (v$$1) {\n      return PREFIXES_FOR_FAMILY[familyId].includes(v$$1);\n    })) {\n      family = familyId;\n    }\n  });\n  return family;\n}\nfunction getCanonicalPrefix(styleOrPrefix) {\n  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var _params$family = params.family,\n    family = _params$family === void 0 ? u : _params$family;\n  var style = PREFIX_TO_STYLE[family][styleOrPrefix];\n\n  // handles the exception of passing in only a family of 'duotone' with no style\n  if (family === l && !styleOrPrefix) {\n    return 'fad';\n  }\n  var prefix = STYLE_TO_PREFIX[family][styleOrPrefix] || STYLE_TO_PREFIX[family][style];\n  var defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;\n  var result = prefix || defined || null;\n  return result;\n}\nfunction moveNonFaClassesToRest(classNames) {\n  var rest = [];\n  var iconName = null;\n  classNames.forEach(function (cls) {\n    var result = getIconName(config.cssPrefix, cls);\n    if (result) {\n      iconName = result;\n    } else if (cls) {\n      rest.push(cls);\n    }\n  });\n  return {\n    iconName: iconName,\n    rest: rest\n  };\n}\nfunction sortedUniqueValues(arr) {\n  return arr.sort().filter(function (value, index, arr) {\n    return arr.indexOf(value) === index;\n  });\n}\nvar _faCombinedClasses = ha.concat(at);\nfunction getCanonicalIcon(values) {\n  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var _params$skipLookups = params.skipLookups,\n    skipLookups = _params$skipLookups === void 0 ? false : _params$skipLookups;\n  var givenPrefix = null;\n  var faStyleOrFamilyClasses = sortedUniqueValues(values.filter(function (cls) {\n    return _faCombinedClasses.includes(cls);\n  }));\n  var nonStyleOrFamilyClasses = sortedUniqueValues(values.filter(function (cls) {\n    return !_faCombinedClasses.includes(cls);\n  }));\n  var faStyles = faStyleOrFamilyClasses.filter(function (cls) {\n    givenPrefix = cls;\n    return !dl.includes(cls);\n  });\n  var _faStyles = _slicedToArray(faStyles, 1),\n    _faStyles$ = _faStyles[0],\n    styleFromValues = _faStyles$ === void 0 ? null : _faStyles$;\n  var family = getFamilyId(faStyleOrFamilyClasses);\n  var canonical = _objectSpread2(_objectSpread2({}, moveNonFaClassesToRest(nonStyleOrFamilyClasses)), {}, {\n    prefix: getCanonicalPrefix(styleFromValues, {\n      family: family\n    })\n  });\n  return _objectSpread2(_objectSpread2(_objectSpread2({}, canonical), getDefaultCanonicalPrefix({\n    values: values,\n    family: family,\n    styles: styles,\n    config: config,\n    canonical: canonical,\n    givenPrefix: givenPrefix\n  })), applyShimAndAlias(skipLookups, givenPrefix, canonical));\n}\nfunction applyShimAndAlias(skipLookups, givenPrefix, canonical) {\n  var prefix = canonical.prefix,\n    iconName = canonical.iconName;\n  if (skipLookups || !prefix || !iconName) {\n    return {\n      prefix: prefix,\n      iconName: iconName\n    };\n  }\n  var shim = givenPrefix === 'fa' ? byOldName(iconName) : {};\n  var aliasIconName = byAlias(prefix, iconName);\n  iconName = shim.iconName || aliasIconName || iconName;\n  prefix = shim.prefix || prefix;\n  if (prefix === 'far' && !styles['far'] && styles['fas'] && !config.autoFetchSvg) {\n    // Allow a fallback from the regular style to solid if regular is not available\n    // but only if we aren't auto-fetching SVGs\n    prefix = 'fas';\n  }\n  return {\n    prefix: prefix,\n    iconName: iconName\n  };\n}\nvar newCanonicalFamilies = xl.filter(function (familyId) {\n  return familyId !== u || familyId !== l;\n});\nvar newCanonicalStyles = Object.keys(da).filter(function (key) {\n  return key !== u;\n}).map(function (key) {\n  return Object.keys(da[key]);\n}).flat();\nfunction getDefaultCanonicalPrefix(prefixOptions) {\n  var values = prefixOptions.values,\n    family = prefixOptions.family,\n    canonical = prefixOptions.canonical,\n    _prefixOptions$givenP = prefixOptions.givenPrefix,\n    givenPrefix = _prefixOptions$givenP === void 0 ? '' : _prefixOptions$givenP,\n    _prefixOptions$styles = prefixOptions.styles,\n    styles = _prefixOptions$styles === void 0 ? {} : _prefixOptions$styles,\n    _prefixOptions$config = prefixOptions.config,\n    config$$1 = _prefixOptions$config === void 0 ? {} : _prefixOptions$config;\n  var isDuotoneFamily = family === l;\n  var valuesHasDuotone = values.includes('fa-duotone') || values.includes('fad');\n  var defaultFamilyIsDuotone = config$$1.familyDefault === 'duotone';\n  var canonicalPrefixIsDuotone = canonical.prefix === 'fad' || canonical.prefix === 'fa-duotone';\n  if (!isDuotoneFamily && (valuesHasDuotone || defaultFamilyIsDuotone || canonicalPrefixIsDuotone)) {\n    canonical.prefix = 'fad';\n  }\n  if (values.includes('fa-brands') || values.includes('fab')) {\n    canonical.prefix = 'fab';\n  }\n  if (!canonical.prefix && newCanonicalFamilies.includes(family)) {\n    var validPrefix = Object.keys(styles).find(function (key) {\n      return newCanonicalStyles.includes(key);\n    });\n    if (validPrefix || config$$1.autoFetchSvg) {\n      var defaultPrefix = Ql.get(family).defaultShortPrefixId;\n      canonical.prefix = defaultPrefix;\n      canonical.iconName = byAlias(canonical.prefix, canonical.iconName) || canonical.iconName;\n    }\n  }\n  if (canonical.prefix === 'fa' || givenPrefix === 'fa') {\n    // The fa prefix is not canonical. So if it has made it through until this point\n    // we will shift it to the correct prefix.\n    canonical.prefix = getDefaultUsablePrefix() || 'fas';\n  }\n  return canonical;\n}\n\nvar Library = /*#__PURE__*/function () {\n  function Library() {\n    _classCallCheck(this, Library);\n    this.definitions = {};\n  }\n  return _createClass(Library, [{\n    key: \"add\",\n    value: function add() {\n      var _this = this;\n      for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {\n        definitions[_key] = arguments[_key];\n      }\n      var additions = definitions.reduce(this._pullDefinitions, {});\n      Object.keys(additions).forEach(function (key) {\n        _this.definitions[key] = _objectSpread2(_objectSpread2({}, _this.definitions[key] || {}), additions[key]);\n        defineIcons(key, additions[key]);\n\n        // To keep support for older Classic styles, also add longer prefixes\n        var longPrefix = PREFIX_TO_LONG_STYLE[u][key];\n        if (longPrefix) defineIcons(longPrefix, additions[key]);\n        build();\n      });\n    }\n  }, {\n    key: \"reset\",\n    value: function reset() {\n      this.definitions = {};\n    }\n  }, {\n    key: \"_pullDefinitions\",\n    value: function _pullDefinitions(additions, definition) {\n      var normalized = definition.prefix && definition.iconName && definition.icon ? {\n        0: definition\n      } : definition;\n      Object.keys(normalized).map(function (key) {\n        var _normalized$key = normalized[key],\n          prefix = _normalized$key.prefix,\n          iconName = _normalized$key.iconName,\n          icon = _normalized$key.icon;\n        var aliases = icon[2];\n        if (!additions[prefix]) additions[prefix] = {};\n        if (aliases.length > 0) {\n          aliases.forEach(function (alias) {\n            if (typeof alias === 'string') {\n              additions[prefix][alias] = icon;\n            }\n          });\n        }\n        additions[prefix][iconName] = icon;\n      });\n      return additions;\n    }\n  }]);\n}();\n\nvar _plugins = [];\nvar _hooks = {};\nvar providers = {};\nvar defaultProviderKeys = Object.keys(providers);\nfunction registerPlugins(nextPlugins, _ref) {\n  var obj = _ref.mixoutsTo;\n  _plugins = nextPlugins;\n  _hooks = {};\n  Object.keys(providers).forEach(function (k) {\n    if (defaultProviderKeys.indexOf(k) === -1) {\n      delete providers[k];\n    }\n  });\n  _plugins.forEach(function (plugin) {\n    var mixout = plugin.mixout ? plugin.mixout() : {};\n    Object.keys(mixout).forEach(function (tk) {\n      if (typeof mixout[tk] === 'function') {\n        obj[tk] = mixout[tk];\n      }\n      if (_typeof(mixout[tk]) === 'object') {\n        Object.keys(mixout[tk]).forEach(function (sk) {\n          if (!obj[tk]) {\n            obj[tk] = {};\n          }\n          obj[tk][sk] = mixout[tk][sk];\n        });\n      }\n    });\n    if (plugin.hooks) {\n      var hooks = plugin.hooks();\n      Object.keys(hooks).forEach(function (hook) {\n        if (!_hooks[hook]) {\n          _hooks[hook] = [];\n        }\n        _hooks[hook].push(hooks[hook]);\n      });\n    }\n    if (plugin.provides) {\n      plugin.provides(providers);\n    }\n  });\n  return obj;\n}\nfunction chainHooks(hook, accumulator) {\n  for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n    args[_key - 2] = arguments[_key];\n  }\n  var hookFns = _hooks[hook] || [];\n  hookFns.forEach(function (hookFn) {\n    accumulator = hookFn.apply(null, [accumulator].concat(args));\n  });\n  return accumulator;\n}\nfunction callHooks(hook) {\n  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n    args[_key2 - 1] = arguments[_key2];\n  }\n  var hookFns = _hooks[hook] || [];\n  hookFns.forEach(function (hookFn) {\n    hookFn.apply(null, args);\n  });\n  return undefined;\n}\nfunction callProvided() {\n  var hook = arguments[0];\n  var args = Array.prototype.slice.call(arguments, 1);\n  return providers[hook] ? providers[hook].apply(null, args) : undefined;\n}\n\nfunction findIconDefinition(iconLookup) {\n  if (iconLookup.prefix === 'fa') {\n    iconLookup.prefix = 'fas';\n  }\n  var iconName = iconLookup.iconName;\n  var prefix = iconLookup.prefix || getDefaultUsablePrefix();\n  if (!iconName) return;\n  iconName = byAlias(prefix, iconName) || iconName;\n  return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);\n}\nvar library = new Library();\nvar noAuto = function noAuto() {\n  config.autoReplaceSvg = false;\n  config.observeMutations = false;\n  callHooks('noAuto');\n};\nvar dom = {\n  i2svg: function i2svg() {\n    var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    if (IS_DOM) {\n      callHooks('beforeI2svg', params);\n      callProvided('pseudoElements2svg', params);\n      return callProvided('i2svg', params);\n    } else {\n      return Promise.reject(new Error('Operation requires a DOM of some kind.'));\n    }\n  },\n  watch: function watch() {\n    var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    var autoReplaceSvgRoot = params.autoReplaceSvgRoot;\n    if (config.autoReplaceSvg === false) {\n      config.autoReplaceSvg = true;\n    }\n    config.observeMutations = true;\n    domready(function () {\n      autoReplace({\n        autoReplaceSvgRoot: autoReplaceSvgRoot\n      });\n      callHooks('watch', params);\n    });\n  }\n};\nvar parse = {\n  icon: function icon(_icon) {\n    if (_icon === null) {\n      return null;\n    }\n    if (_typeof(_icon) === 'object' && _icon.prefix && _icon.iconName) {\n      return {\n        prefix: _icon.prefix,\n        iconName: byAlias(_icon.prefix, _icon.iconName) || _icon.iconName\n      };\n    }\n    if (Array.isArray(_icon) && _icon.length === 2) {\n      var iconName = _icon[1].indexOf('fa-') === 0 ? _icon[1].slice(3) : _icon[1];\n      var prefix = getCanonicalPrefix(_icon[0]);\n      return {\n        prefix: prefix,\n        iconName: byAlias(prefix, iconName) || iconName\n      };\n    }\n    if (typeof _icon === 'string' && (_icon.indexOf(\"\".concat(config.cssPrefix, \"-\")) > -1 || _icon.match(ICON_SELECTION_SYNTAX_PATTERN))) {\n      var canonicalIcon = getCanonicalIcon(_icon.split(' '), {\n        skipLookups: true\n      });\n      return {\n        prefix: canonicalIcon.prefix || getDefaultUsablePrefix(),\n        iconName: byAlias(canonicalIcon.prefix, canonicalIcon.iconName) || canonicalIcon.iconName\n      };\n    }\n    if (typeof _icon === 'string') {\n      var _prefix = getDefaultUsablePrefix();\n      return {\n        prefix: _prefix,\n        iconName: byAlias(_prefix, _icon) || _icon\n      };\n    }\n  }\n};\nvar api = {\n  noAuto: noAuto,\n  config: config,\n  dom: dom,\n  parse: parse,\n  library: library,\n  findIconDefinition: findIconDefinition,\n  toHtml: toHtml\n};\nvar autoReplace = function autoReplace() {\n  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  var _params$autoReplaceSv = params.autoReplaceSvgRoot,\n    autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;\n  if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({\n    node: autoReplaceSvgRoot\n  });\n};\n\nfunction domVariants(val, abstractCreator) {\n  Object.defineProperty(val, 'abstract', {\n    get: abstractCreator\n  });\n  Object.defineProperty(val, 'html', {\n    get: function get() {\n      return val.abstract.map(function (a) {\n        return toHtml(a);\n      });\n    }\n  });\n  Object.defineProperty(val, 'node', {\n    get: function get() {\n      if (!IS_DOM) return undefined;\n      var container = DOCUMENT.createElement('div');\n      container.innerHTML = val.html;\n      return container.children;\n    }\n  });\n  return val;\n}\n\nfunction asIcon (_ref) {\n  var children = _ref.children,\n    main = _ref.main,\n    mask = _ref.mask,\n    attributes = _ref.attributes,\n    styles = _ref.styles,\n    transform = _ref.transform;\n  if (transformIsMeaningful(transform) && main.found && !mask.found) {\n    var width = main.width,\n      height = main.height;\n    var offset = {\n      x: width / height / 2,\n      y: 0.5\n    };\n    attributes['style'] = joinStyles(_objectSpread2(_objectSpread2({}, styles), {}, {\n      'transform-origin': \"\".concat(offset.x + transform.x / 16, \"em \").concat(offset.y + transform.y / 16, \"em\")\n    }));\n  }\n  return [{\n    tag: 'svg',\n    attributes: attributes,\n    children: children\n  }];\n}\n\nfunction asSymbol (_ref) {\n  var prefix = _ref.prefix,\n    iconName = _ref.iconName,\n    children = _ref.children,\n    attributes = _ref.attributes,\n    symbol = _ref.symbol;\n  var id = symbol === true ? \"\".concat(prefix, \"-\").concat(config.cssPrefix, \"-\").concat(iconName) : symbol;\n  return [{\n    tag: 'svg',\n    attributes: {\n      style: 'display: none;'\n    },\n    children: [{\n      tag: 'symbol',\n      attributes: _objectSpread2(_objectSpread2({}, attributes), {}, {\n        id: id\n      }),\n      children: children\n    }]\n  }];\n}\n\n// If any of these attributes are present, don't assume the icon is decorative\nfunction isLabeled(attributes) {\n  var labels = ['aria-label', 'aria-labelledby', 'title', 'role'];\n  return labels.some(function (label) {\n    return label in attributes;\n  });\n}\nfunction makeInlineSvgAbstract(params) {\n  var _params$icons = params.icons,\n    main = _params$icons.main,\n    mask = _params$icons.mask,\n    prefix = params.prefix,\n    iconName = params.iconName,\n    transform = params.transform,\n    symbol = params.symbol,\n    maskId = params.maskId,\n    extra = params.extra,\n    _params$watchable = params.watchable,\n    watchable = _params$watchable === void 0 ? false : _params$watchable;\n  var _ref = mask.found ? mask : main,\n    width = _ref.width,\n    height = _ref.height;\n  var attrClass = [config.replacementClass, iconName ? \"\".concat(config.cssPrefix, \"-\").concat(iconName) : ''].filter(function (c) {\n    return extra.classes.indexOf(c) === -1;\n  }).filter(function (c) {\n    return c !== '' || !!c;\n  }).concat(extra.classes).join(' ');\n  var content = {\n    children: [],\n    attributes: _objectSpread2(_objectSpread2({}, extra.attributes), {}, {\n      'data-prefix': prefix,\n      'data-icon': iconName,\n      'class': attrClass,\n      'role': extra.attributes.role || 'img',\n      'viewBox': \"0 0 \".concat(width, \" \").concat(height)\n    })\n  };\n  if (!isLabeled(extra.attributes) && !extra.attributes['aria-hidden']) {\n    content.attributes['aria-hidden'] = 'true';\n  }\n  if (watchable) {\n    content.attributes[DATA_FA_I2SVG] = '';\n  }\n  var args = _objectSpread2(_objectSpread2({}, content), {}, {\n    prefix: prefix,\n    iconName: iconName,\n    main: main,\n    mask: mask,\n    maskId: maskId,\n    transform: transform,\n    symbol: symbol,\n    styles: _objectSpread2({}, extra.styles)\n  });\n  var _ref2 = mask.found && main.found ? callProvided('generateAbstractMask', args) || {\n      children: [],\n      attributes: {}\n    } : callProvided('generateAbstractIcon', args) || {\n      children: [],\n      attributes: {}\n    },\n    children = _ref2.children,\n    attributes = _ref2.attributes;\n  args.children = children;\n  args.attributes = attributes;\n  if (symbol) {\n    return asSymbol(args);\n  } else {\n    return asIcon(args);\n  }\n}\nfunction makeLayersTextAbstract(params) {\n  var content = params.content,\n    width = params.width,\n    height = params.height,\n    transform = params.transform,\n    extra = params.extra,\n    _params$watchable2 = params.watchable,\n    watchable = _params$watchable2 === void 0 ? false : _params$watchable2;\n  var attributes = _objectSpread2(_objectSpread2({}, extra.attributes), {}, {\n    class: extra.classes.join(' ')\n  });\n  if (watchable) {\n    attributes[DATA_FA_I2SVG] = '';\n  }\n  var styles = _objectSpread2({}, extra.styles);\n  if (transformIsMeaningful(transform)) {\n    styles['transform'] = transformForCss({\n      transform: transform,\n      startCentered: true,\n      width: width,\n      height: height\n    });\n    styles['-webkit-transform'] = styles['transform'];\n  }\n  var styleString = joinStyles(styles);\n  if (styleString.length > 0) {\n    attributes['style'] = styleString;\n  }\n  var val = [];\n  val.push({\n    tag: 'span',\n    attributes: attributes,\n    children: [content]\n  });\n  return val;\n}\nfunction makeLayersCounterAbstract(params) {\n  var content = params.content,\n    extra = params.extra;\n  var attributes = _objectSpread2(_objectSpread2({}, extra.attributes), {}, {\n    class: extra.classes.join(' ')\n  });\n  var styleString = joinStyles(extra.styles);\n  if (styleString.length > 0) {\n    attributes['style'] = styleString;\n  }\n  var val = [];\n  val.push({\n    tag: 'span',\n    attributes: attributes,\n    children: [content]\n  });\n  return val;\n}\n\nvar styles$1 = namespace.styles;\nfunction asFoundIcon(icon) {\n  var width = icon[0];\n  var height = icon[1];\n  var _icon$slice = icon.slice(4),\n    _icon$slice2 = _slicedToArray(_icon$slice, 1),\n    vectorData = _icon$slice2[0];\n  var element = null;\n  if (Array.isArray(vectorData)) {\n    element = {\n      tag: 'g',\n      attributes: {\n        class: \"\".concat(config.cssPrefix, \"-\").concat(DUOTONE_CLASSES.GROUP)\n      },\n      children: [{\n        tag: 'path',\n        attributes: {\n          class: \"\".concat(config.cssPrefix, \"-\").concat(DUOTONE_CLASSES.SECONDARY),\n          fill: 'currentColor',\n          d: vectorData[0]\n        }\n      }, {\n        tag: 'path',\n        attributes: {\n          class: \"\".concat(config.cssPrefix, \"-\").concat(DUOTONE_CLASSES.PRIMARY),\n          fill: 'currentColor',\n          d: vectorData[1]\n        }\n      }]\n    };\n  } else {\n    element = {\n      tag: 'path',\n      attributes: {\n        fill: 'currentColor',\n        d: vectorData\n      }\n    };\n  }\n  return {\n    found: true,\n    width: width,\n    height: height,\n    icon: element\n  };\n}\nvar missingIconResolutionMixin = {\n  found: false,\n  width: 512,\n  height: 512\n};\nfunction maybeNotifyMissing(iconName, prefix) {\n  if (!PRODUCTION && !config.showMissingIcons && iconName) {\n    console.error(\"Icon with name \\\"\".concat(iconName, \"\\\" and prefix \\\"\").concat(prefix, \"\\\" is missing.\"));\n  }\n}\nfunction findIcon(iconName, prefix) {\n  var givenPrefix = prefix;\n  if (prefix === 'fa' && config.styleDefault !== null) {\n    prefix = getDefaultUsablePrefix();\n  }\n  return new Promise(function (resolve, reject) {\n    if (givenPrefix === 'fa') {\n      var shim = byOldName(iconName) || {};\n      iconName = shim.iconName || iconName;\n      prefix = shim.prefix || prefix;\n    }\n    if (iconName && prefix && styles$1[prefix] && styles$1[prefix][iconName]) {\n      var icon = styles$1[prefix][iconName];\n      return resolve(asFoundIcon(icon));\n    }\n    maybeNotifyMissing(iconName, prefix);\n    resolve(_objectSpread2(_objectSpread2({}, missingIconResolutionMixin), {}, {\n      icon: config.showMissingIcons && iconName ? callProvided('missingIconAbstract') || {} : {}\n    }));\n  });\n}\n\nvar noop$1 = function noop() {};\nvar p$2 = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {\n  mark: noop$1,\n  measure: noop$1\n};\nvar preamble = \"FA \\\"7.3.1\\\"\";\nvar begin = function begin(name) {\n  p$2.mark(\"\".concat(preamble, \" \").concat(name, \" begins\"));\n  return function () {\n    return end(name);\n  };\n};\nvar end = function end(name) {\n  p$2.mark(\"\".concat(preamble, \" \").concat(name, \" ends\"));\n  p$2.measure(\"\".concat(preamble, \" \").concat(name), \"\".concat(preamble, \" \").concat(name, \" begins\"), \"\".concat(preamble, \" \").concat(name, \" ends\"));\n};\nvar perf = {\n  begin: begin,\n  end: end\n};\n\nvar noop$2 = function noop() {};\nfunction isWatched(node) {\n  var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;\n  return typeof i2svg === 'string';\n}\nfunction hasPrefixAndIcon(node) {\n  var prefix = node.getAttribute ? node.getAttribute(DATA_PREFIX) : null;\n  var icon = node.getAttribute ? node.getAttribute(DATA_ICON) : null;\n  return prefix && icon;\n}\nfunction hasBeenReplaced(node) {\n  return node && node.classList && node.classList.contains && node.classList.contains(config.replacementClass);\n}\nfunction getMutator() {\n  if (config.autoReplaceSvg === true) {\n    return mutators.replace;\n  }\n  var mutator = mutators[config.autoReplaceSvg];\n  return mutator || mutators.replace;\n}\nfunction createElementNS(tag) {\n  return DOCUMENT.createElementNS('http://www.w3.org/2000/svg', tag);\n}\nfunction createElement(tag) {\n  return DOCUMENT.createElement(tag);\n}\nfunction convertSVG(abstractObj) {\n  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var _params$ceFn = params.ceFn,\n    ceFn = _params$ceFn === void 0 ? abstractObj.tag === 'svg' ? createElementNS : createElement : _params$ceFn;\n  if (typeof abstractObj === 'string') {\n    return DOCUMENT.createTextNode(abstractObj);\n  }\n  var tag = ceFn(abstractObj.tag);\n  Object.keys(abstractObj.attributes || []).forEach(function (key) {\n    tag.setAttribute(key, abstractObj.attributes[key]);\n  });\n  var children = abstractObj.children || [];\n  children.forEach(function (child) {\n    tag.appendChild(convertSVG(child, {\n      ceFn: ceFn\n    }));\n  });\n  return tag;\n}\nfunction nodeAsComment(node) {\n  var comment = \" \".concat(node.outerHTML, \" \");\n  /* BEGIN.ATTRIBUTION */\n  comment = \"\".concat(comment, \"Font Awesome fontawesome.com \");\n  /* END.ATTRIBUTION */\n  return comment;\n}\nvar mutators = {\n  replace: function replace(mutation) {\n    var node = mutation[0];\n    if (node.parentNode) {\n      mutation[1].forEach(function (abstract) {\n        node.parentNode.insertBefore(convertSVG(abstract), node);\n      });\n      if (node.getAttribute(DATA_FA_I2SVG) === null && config.keepOriginalSource) {\n        var comment = DOCUMENT.createComment(nodeAsComment(node));\n        node.parentNode.replaceChild(comment, node);\n      } else {\n        node.remove();\n      }\n    }\n  },\n  nest: function nest(mutation) {\n    var node = mutation[0];\n    var abstract = mutation[1];\n\n    // If we already have a replaced node we do not want to continue nesting within it.\n    // Short-circuit to the standard replacement\n    if (~classArray(node).indexOf(config.replacementClass)) {\n      return mutators.replace(mutation);\n    }\n    var forSvg = new RegExp(\"\".concat(config.cssPrefix, \"-.*\"));\n    delete abstract[0].attributes.id;\n    if (abstract[0].attributes.class) {\n      var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {\n        if (cls === config.replacementClass || cls.match(forSvg)) {\n          acc.toSvg.push(cls);\n        } else {\n          acc.toNode.push(cls);\n        }\n        return acc;\n      }, {\n        toNode: [],\n        toSvg: []\n      });\n      abstract[0].attributes.class = splitClasses.toSvg.join(' ');\n      if (splitClasses.toNode.length === 0) {\n        node.removeAttribute('class');\n      } else {\n        node.setAttribute('class', splitClasses.toNode.join(' '));\n      }\n    }\n    var newInnerHTML = abstract.map(function (a) {\n      return toHtml(a);\n    }).join('\\n');\n    node.setAttribute(DATA_FA_I2SVG, '');\n    node.innerHTML = newInnerHTML;\n  }\n};\nfunction performOperationSync(op) {\n  op();\n}\nfunction perform(mutations, callback) {\n  var callbackFunction = typeof callback === 'function' ? callback : noop$2;\n  if (mutations.length === 0) {\n    callbackFunction();\n  } else {\n    var frame = performOperationSync;\n    if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {\n      frame = WINDOW.requestAnimationFrame || performOperationSync;\n    }\n    frame(function () {\n      var mutator = getMutator();\n      var mark = perf.begin('mutate');\n      mutations.map(mutator);\n      mark();\n      callbackFunction();\n    });\n  }\n}\nvar disabled = false;\nfunction disableObservation() {\n  disabled = true;\n}\nfunction enableObservation() {\n  disabled = false;\n}\nvar mo = null;\nfunction observe(options) {\n  if (!MUTATION_OBSERVER) {\n    return;\n  }\n  if (!config.observeMutations) {\n    return;\n  }\n  var _options$treeCallback = options.treeCallback,\n    treeCallback = _options$treeCallback === void 0 ? noop$2 : _options$treeCallback,\n    _options$nodeCallback = options.nodeCallback,\n    nodeCallback = _options$nodeCallback === void 0 ? noop$2 : _options$nodeCallback,\n    _options$pseudoElemen = options.pseudoElementsCallback,\n    pseudoElementsCallback = _options$pseudoElemen === void 0 ? noop$2 : _options$pseudoElemen,\n    _options$observeMutat = options.observeMutationsRoot,\n    observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;\n  mo = new MUTATION_OBSERVER(function (objects) {\n    if (disabled) return;\n    var defaultPrefix = getDefaultUsablePrefix();\n    toArray(objects).forEach(function (mutationRecord) {\n      if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {\n        if (config.searchPseudoElements) {\n          pseudoElementsCallback(mutationRecord.target);\n        }\n        treeCallback(mutationRecord.target);\n      }\n      if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {\n        pseudoElementsCallback([mutationRecord.target], true);\n      }\n      if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {\n        if (mutationRecord.attributeName === 'class' && hasPrefixAndIcon(mutationRecord.target)) {\n          var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),\n            prefix = _getCanonicalIcon.prefix,\n            iconName = _getCanonicalIcon.iconName;\n          mutationRecord.target.setAttribute(DATA_PREFIX, prefix || defaultPrefix);\n          if (iconName) mutationRecord.target.setAttribute(DATA_ICON, iconName);\n        } else if (hasBeenReplaced(mutationRecord.target)) {\n          nodeCallback(mutationRecord.target);\n        }\n      }\n    });\n  });\n  if (!IS_DOM) return;\n  mo.observe(observeMutationsRoot, {\n    childList: true,\n    attributes: true,\n    characterData: true,\n    subtree: true\n  });\n}\nfunction disconnect() {\n  if (!mo) return;\n  mo.disconnect();\n}\n\nfunction styleParser (node) {\n  var style = node.getAttribute('style');\n  var val = [];\n  if (style) {\n    val = style.split(';').reduce(function (acc, style) {\n      var styles = style.split(':');\n      var prop = styles[0];\n      var value = styles.slice(1);\n      if (prop && value.length > 0) {\n        acc[prop] = value.join(':').trim();\n      }\n      return acc;\n    }, {});\n  }\n  return val;\n}\n\nfunction classParser (node) {\n  var existingPrefix = node.getAttribute('data-prefix');\n  var existingIconName = node.getAttribute('data-icon');\n  var innerText = node.innerText !== undefined ? node.innerText.trim() : '';\n  var val = getCanonicalIcon(classArray(node));\n  if (!val.prefix) {\n    val.prefix = getDefaultUsablePrefix();\n  }\n  if (existingPrefix && existingIconName) {\n    val.prefix = existingPrefix;\n    val.iconName = existingIconName;\n  }\n  if (val.iconName && val.prefix) {\n    return val;\n  }\n  if (val.prefix && innerText.length > 0) {\n    val.iconName = byLigature(val.prefix, node.innerText) || byUnicode(val.prefix, toHex(node.innerText));\n  }\n  if (!val.iconName && config.autoFetchSvg && node.firstChild && node.firstChild.nodeType === Node.TEXT_NODE) {\n    val.iconName = node.firstChild.data;\n  }\n  return val;\n}\n\nfunction attributesParser (node) {\n  var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {\n    if (acc.name !== 'class' && acc.name !== 'style') {\n      acc[attr.name] = attr.value;\n    }\n    return acc;\n  }, {});\n  return extraAttributes;\n}\n\nfunction blankMeta() {\n  return {\n    iconName: null,\n    prefix: null,\n    transform: meaninglessTransform,\n    symbol: false,\n    mask: {\n      iconName: null,\n      prefix: null,\n      rest: []\n    },\n    maskId: null,\n    extra: {\n      classes: [],\n      styles: {},\n      attributes: {}\n    }\n  };\n}\nfunction parseMeta(node) {\n  var parser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n    styleParser: true\n  };\n  var _classParser = classParser(node),\n    iconName = _classParser.iconName,\n    prefix = _classParser.prefix,\n    extraClasses = _classParser.rest;\n  var extraAttributes = attributesParser(node);\n  var pluginMeta = chainHooks('parseNodeAttributes', {}, node);\n  var extraStyles = parser.styleParser ? styleParser(node) : [];\n  return _objectSpread2({\n    iconName: iconName,\n    prefix: prefix,\n    transform: meaninglessTransform,\n    mask: {\n      iconName: null,\n      prefix: null,\n      rest: []\n    },\n    maskId: null,\n    symbol: false,\n    extra: {\n      classes: extraClasses,\n      styles: extraStyles,\n      attributes: extraAttributes\n    }\n  }, pluginMeta);\n}\n\nvar styles$2 = namespace.styles;\nfunction generateMutation(node) {\n  var nodeMeta = config.autoReplaceSvg === 'nest' ? parseMeta(node, {\n    styleParser: false\n  }) : parseMeta(node);\n  if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {\n    return callProvided('generateLayersText', node, nodeMeta);\n  } else {\n    return callProvided('generateSvgReplacementMutation', node, nodeMeta);\n  }\n}\nfunction getKnownPrefixes() {\n  return [].concat(_toConsumableArray(at), _toConsumableArray(ha));\n}\nfunction onTree(root) {\n  var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n  if (!IS_DOM) return Promise.resolve();\n  var htmlClassList = DOCUMENT.documentElement.classList;\n  var hclAdd = function hclAdd(suffix) {\n    return htmlClassList.add(\"\".concat(HTML_CLASS_I2SVG_BASE_CLASS, \"-\").concat(suffix));\n  };\n  var hclRemove = function hclRemove(suffix) {\n    return htmlClassList.remove(\"\".concat(HTML_CLASS_I2SVG_BASE_CLASS, \"-\").concat(suffix));\n  };\n  var prefixes = config.autoFetchSvg ? getKnownPrefixes() : dl.concat(Object.keys(styles$2));\n  if (!prefixes.includes('fa')) {\n    prefixes.push('fa');\n  }\n  var prefixesDomQuery = [\".\".concat(LAYERS_TEXT_CLASSNAME, \":not([\").concat(DATA_FA_I2SVG, \"])\")].concat(prefixes.map(function (p$$1) {\n    return \".\".concat(p$$1, \":not([\").concat(DATA_FA_I2SVG, \"])\");\n  })).join(', ');\n  if (prefixesDomQuery.length === 0) {\n    return Promise.resolve();\n  }\n  var candidates = [];\n  try {\n    candidates = toArray(root.querySelectorAll(prefixesDomQuery));\n  } catch (e$$1) {\n    // noop\n  }\n  if (candidates.length > 0) {\n    hclAdd('pending');\n    hclRemove('complete');\n  } else {\n    return Promise.resolve();\n  }\n  var mark = perf.begin('onTree');\n  var mutations = candidates.reduce(function (acc, node) {\n    try {\n      var mutation = generateMutation(node);\n      if (mutation) {\n        acc.push(mutation);\n      }\n    } catch (e$$1) {\n      if (!PRODUCTION) {\n        if (e$$1.name === 'MissingIcon') {\n          console.error(e$$1);\n        }\n      }\n    }\n    return acc;\n  }, []);\n  return new Promise(function (resolve, reject) {\n    Promise.all(mutations).then(function (resolvedMutations) {\n      perform(resolvedMutations, function () {\n        hclAdd('active');\n        hclAdd('complete');\n        hclRemove('pending');\n        if (typeof callback === 'function') callback();\n        mark();\n        resolve();\n      });\n    }).catch(function (e$$1) {\n      mark();\n      reject(e$$1);\n    });\n  });\n}\nfunction onNode(node) {\n  var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n  generateMutation(node).then(function (mutation) {\n    if (mutation) {\n      perform([mutation], callback);\n    }\n  });\n}\nfunction resolveIcons(next) {\n  return function (maybeIconDefinition) {\n    var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});\n    var mask = params.mask;\n    if (mask) {\n      mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});\n    }\n    return next(iconDefinition, _objectSpread2(_objectSpread2({}, params), {}, {\n      mask: mask\n    }));\n  };\n}\nvar render = function render(iconDefinition) {\n  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  var _params$transform = params.transform,\n    transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,\n    _params$symbol = params.symbol,\n    symbol = _params$symbol === void 0 ? false : _params$symbol,\n    _params$mask = params.mask,\n    mask = _params$mask === void 0 ? null : _params$mask,\n    _params$maskId = params.maskId,\n    maskId = _params$maskId === void 0 ? null : _params$maskId,\n    _params$classes = params.classes,\n    classes = _params$classes === void 0 ? [] : _params$classes,\n    _params$attributes = params.attributes,\n    attributes = _params$attributes === void 0 ? {} : _params$attributes,\n    _params$styles = params.styles,\n    styles = _params$styles === void 0 ? {} : _params$styles;\n  if (!iconDefinition) return;\n  var prefix = iconDefinition.prefix,\n    iconName = iconDefinition.iconName,\n    icon = iconDefinition.icon;\n  return domVariants(_objectSpread2({\n    type: 'icon'\n  }, iconDefinition), function () {\n    callHooks('beforeDOMElementCreation', {\n      iconDefinition: iconDefinition,\n      params: params\n    });\n    return makeInlineSvgAbstract({\n      icons: {\n        main: asFoundIcon(icon),\n        mask: mask ? asFoundIcon(mask.icon) : {\n          found: false,\n          width: null,\n          height: null,\n          icon: {}\n        }\n      },\n      prefix: prefix,\n      iconName: iconName,\n      transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),\n      symbol: symbol,\n      maskId: maskId,\n      extra: {\n        attributes: attributes,\n        styles: styles,\n        classes: classes\n      }\n    });\n  });\n};\nvar ReplaceElements = {\n  mixout: function mixout() {\n    return {\n      icon: resolveIcons(render)\n    };\n  },\n  hooks: function hooks() {\n    return {\n      mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {\n        accumulator.treeCallback = onTree;\n        accumulator.nodeCallback = onNode;\n        return accumulator;\n      }\n    };\n  },\n  provides: function provides(providers$$1) {\n    providers$$1.i2svg = function (params) {\n      var _params$node = params.node,\n        node = _params$node === void 0 ? DOCUMENT : _params$node,\n        _params$callback = params.callback,\n        callback = _params$callback === void 0 ? function () {} : _params$callback;\n      return onTree(node, callback);\n    };\n    providers$$1.generateSvgReplacementMutation = function (node, nodeMeta) {\n      var iconName = nodeMeta.iconName,\n        prefix = nodeMeta.prefix,\n        transform = nodeMeta.transform,\n        symbol = nodeMeta.symbol,\n        mask = nodeMeta.mask,\n        maskId = nodeMeta.maskId,\n        extra = nodeMeta.extra;\n      return new Promise(function (resolve, reject) {\n        Promise.all([findIcon(iconName, prefix), mask.iconName ? findIcon(mask.iconName, mask.prefix) : Promise.resolve({\n          found: false,\n          width: 512,\n          height: 512,\n          icon: {}\n        })]).then(function (_ref) {\n          var _ref2 = _slicedToArray(_ref, 2),\n            main = _ref2[0],\n            mask = _ref2[1];\n          resolve([node, makeInlineSvgAbstract({\n            icons: {\n              main: main,\n              mask: mask\n            },\n            prefix: prefix,\n            iconName: iconName,\n            transform: transform,\n            symbol: symbol,\n            maskId: maskId,\n            extra: extra,\n            watchable: true\n          })]);\n        }).catch(reject);\n      });\n    };\n    providers$$1.generateAbstractIcon = function (_ref3) {\n      var children = _ref3.children,\n        attributes = _ref3.attributes,\n        main = _ref3.main,\n        transform = _ref3.transform,\n        styles = _ref3.styles;\n      var styleString = joinStyles(styles);\n      if (styleString.length > 0) {\n        attributes['style'] = styleString;\n      }\n      var nextChild;\n      if (transformIsMeaningful(transform)) {\n        nextChild = callProvided('generateAbstractTransformGrouping', {\n          main: main,\n          transform: transform,\n          containerWidth: main.width,\n          iconWidth: main.width\n        });\n      }\n      children.push(nextChild || main.icon);\n      return {\n        children: children,\n        attributes: attributes\n      };\n    };\n  }\n};\n\nvar Layers = {\n  mixout: function mixout() {\n    return {\n      layer: function layer(assembler) {\n        var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n        var _params$classes = params.classes,\n          classes = _params$classes === void 0 ? [] : _params$classes;\n        return domVariants({\n          type: 'layer'\n        }, function () {\n          callHooks('beforeDOMElementCreation', {\n            assembler: assembler,\n            params: params\n          });\n          var children = [];\n          assembler(function (args) {\n            Array.isArray(args) ? args.map(function (a) {\n              children = children.concat(a.abstract);\n            }) : children = children.concat(args.abstract);\n          });\n          return [{\n            tag: 'span',\n            attributes: {\n              class: [\"\".concat(config.cssPrefix, \"-layers\")].concat(_toConsumableArray(classes)).join(' ')\n            },\n            children: children\n          }];\n        });\n      }\n    };\n  }\n};\n\nvar LayersCounter = {\n  mixout: function mixout() {\n    return {\n      counter: function counter(content) {\n        var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n        var _params$title = params.title,\n          title = _params$title === void 0 ? null : _params$title,\n          _params$classes = params.classes,\n          classes = _params$classes === void 0 ? [] : _params$classes,\n          _params$attributes = params.attributes,\n          attributes = _params$attributes === void 0 ? {} : _params$attributes,\n          _params$styles = params.styles,\n          styles = _params$styles === void 0 ? {} : _params$styles;\n        return domVariants({\n          type: 'counter',\n          content: content\n        }, function () {\n          callHooks('beforeDOMElementCreation', {\n            content: content,\n            params: params\n          });\n          return makeLayersCounterAbstract({\n            content: content.toString(),\n            title: title,\n            extra: {\n              attributes: attributes,\n              styles: styles,\n              classes: [\"\".concat(config.cssPrefix, \"-layers-counter\")].concat(_toConsumableArray(classes))\n            }\n          });\n        });\n      }\n    };\n  }\n};\n\nvar LayersText = {\n  mixout: function mixout() {\n    return {\n      text: function text(content) {\n        var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n        var _params$transform = params.transform,\n          transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,\n          _params$classes = params.classes,\n          classes = _params$classes === void 0 ? [] : _params$classes,\n          _params$attributes = params.attributes,\n          attributes = _params$attributes === void 0 ? {} : _params$attributes,\n          _params$styles = params.styles,\n          styles = _params$styles === void 0 ? {} : _params$styles;\n        return domVariants({\n          type: 'text',\n          content: content\n        }, function () {\n          callHooks('beforeDOMElementCreation', {\n            content: content,\n            params: params\n          });\n          return makeLayersTextAbstract({\n            content: content,\n            transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),\n            extra: {\n              attributes: attributes,\n              styles: styles,\n              classes: [\"\".concat(config.cssPrefix, \"-layers-text\")].concat(_toConsumableArray(classes))\n            }\n          });\n        });\n      }\n    };\n  },\n  provides: function provides(providers$$1) {\n    providers$$1.generateLayersText = function (node, nodeMeta) {\n      var transform = nodeMeta.transform,\n        extra = nodeMeta.extra;\n      var width = null;\n      var height = null;\n      if (IS_IE) {\n        var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);\n        var boundingClientRect = node.getBoundingClientRect();\n        width = boundingClientRect.width / computedFontSize;\n        height = boundingClientRect.height / computedFontSize;\n      }\n      return Promise.resolve([node, makeLayersTextAbstract({\n        content: node.innerHTML,\n        width: width,\n        height: height,\n        transform: transform,\n        extra: extra,\n        watchable: true\n      })]);\n    };\n  }\n};\n\nvar CLEAN_CONTENT_PATTERN = new RegExp(\"\\\"\", 'ug');\nvar SECONDARY_UNICODE_RANGE = [1105920, 1112319];\nvar _FONT_FAMILY_WEIGHT_TO_PREFIX = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {\n  FontAwesome: {\n    normal: 'fas',\n    400: 'fas'\n  }\n}), zl), wa), ct);\nvar FONT_FAMILY_WEIGHT_TO_PREFIX = Object.keys(_FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(function (acc, key) {\n  acc[key.toLowerCase()] = _FONT_FAMILY_WEIGHT_TO_PREFIX[key];\n  return acc;\n}, {});\nvar FONT_FAMILY_WEIGHT_FALLBACK = Object.keys(FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(function (acc, fontFamily) {\n  var weights = FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamily];\n  acc[fontFamily] = weights[900] || _toConsumableArray(Object.entries(weights))[0][1];\n  return acc;\n}, {});\n\n// Return hex value of *first* character in `content`\nfunction hexValueFromContent(content) {\n  var cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');\n  return toHex(_toConsumableArray(cleaned)[0] || '');\n}\n\n// Check if it's a secondary Duotone layer, by checking if:\n// - Unicode value in `content` is repeated\n// - Unicode value in `content` is above 0x10000\n// - The \"ss01\" font feature is enabled on the `content`\nfunction isSecondaryLayer(styles) {\n  var hasStylisticSet = styles.getPropertyValue('font-feature-settings').includes('ss01');\n  var content = styles.getPropertyValue('content');\n  var cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');\n  var codePoint = cleaned.codePointAt(0);\n  var isPrependTen = codePoint >= SECONDARY_UNICODE_RANGE[0] && codePoint <= SECONDARY_UNICODE_RANGE[1];\n  var isDoubled = cleaned.length === 2 ? cleaned[0] === cleaned[1] : false;\n  return isPrependTen || isDoubled || hasStylisticSet;\n}\nfunction getPrefix(fontFamily, fontWeight) {\n  var fontFamilySanitized = fontFamily.replace(/^['\"]|['\"]$/g, '').toLowerCase();\n  var fontWeightInteger = parseInt(fontWeight);\n  var fontWeightSanitized = isNaN(fontWeightInteger) ? 'normal' : fontWeightInteger;\n  return (FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamilySanitized] || {})[fontWeightSanitized] || FONT_FAMILY_WEIGHT_FALLBACK[fontFamilySanitized];\n}\nfunction replaceForPosition(node, position) {\n  var pendingAttribute = \"\".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));\n  return new Promise(function (resolve, reject) {\n    if (node.getAttribute(pendingAttribute) !== null) {\n      // This node is already being processed\n      return resolve();\n    }\n    var children = toArray(node.children);\n    var alreadyProcessedPseudoElement = children.filter(function (c$$1) {\n      return c$$1.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;\n    })[0];\n    var styles = WINDOW.getComputedStyle(node, position);\n    var fontFamily = styles.getPropertyValue('font-family');\n    var fontFamilyMatch = fontFamily.match(FONT_FAMILY_PATTERN);\n    var fontWeight = styles.getPropertyValue('font-weight');\n    var content = styles.getPropertyValue('content');\n    if (alreadyProcessedPseudoElement && !fontFamilyMatch) {\n      // If we've already processed it but the current computed style does not result in a font-family,\n      // that probably means that a class name that was previously present to make the icon has been\n      // removed. So we now should delete the icon.\n      node.removeChild(alreadyProcessedPseudoElement);\n      return resolve();\n    } else if (fontFamilyMatch && content !== 'none' && content !== '') {\n      var _content = styles.getPropertyValue('content');\n      var prefix = getPrefix(fontFamily, fontWeight);\n      var hexValue = hexValueFromContent(_content);\n      var isV4 = fontFamilyMatch[0].startsWith('FontAwesome');\n      var isSecondary = isSecondaryLayer(styles);\n      var iconName = byUnicode(prefix, hexValue);\n      var iconIdentifier = iconName;\n      if (isV4) {\n        var iconName4 = byOldUnicode(hexValue);\n        if (iconName4.iconName && iconName4.prefix) {\n          iconName = iconName4.iconName;\n          prefix = iconName4.prefix;\n        }\n      }\n\n      // Only convert the pseudo element in this ::before/::after position into an icon if we haven't\n      // already done so with the same prefix and iconName\n      if (iconName && !isSecondary && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {\n        node.setAttribute(pendingAttribute, iconIdentifier);\n        if (alreadyProcessedPseudoElement) {\n          // Delete the old one, since we're replacing it with a new one\n          node.removeChild(alreadyProcessedPseudoElement);\n        }\n        var meta = blankMeta();\n        var extra = meta.extra;\n        extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;\n        findIcon(iconName, prefix).then(function (main) {\n          var abstract = makeInlineSvgAbstract(_objectSpread2(_objectSpread2({}, meta), {}, {\n            icons: {\n              main: main,\n              mask: emptyCanonicalIcon()\n            },\n            prefix: prefix,\n            iconName: iconIdentifier,\n            extra: extra,\n            watchable: true\n          }));\n          var element = DOCUMENT.createElementNS('http://www.w3.org/2000/svg', 'svg');\n          if (position === '::before') {\n            node.insertBefore(element, node.firstChild);\n          } else {\n            node.appendChild(element);\n          }\n          element.outerHTML = abstract.map(function (a$$1) {\n            return toHtml(a$$1);\n          }).join('\\n');\n          node.removeAttribute(pendingAttribute);\n          resolve();\n        }).catch(reject);\n      } else {\n        resolve();\n      }\n    } else {\n      resolve();\n    }\n  });\n}\nfunction replace(node) {\n  return Promise.all([replaceForPosition(node, '::before'), replaceForPosition(node, '::after')]);\n}\nfunction processable(node) {\n  return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== 'svg');\n}\nvar hasPseudoElement = function hasPseudoElement(selector) {\n  return !!selector && PSEUDO_ELEMENTS.some(function (pseudoSelector) {\n    return selector.includes(pseudoSelector);\n  });\n};\n\n// Return selectors from all available stylesheets that have\n// pseudo-elements defined.\nvar parseCSSRuleForPseudos = function parseCSSRuleForPseudos(selectorText) {\n  if (!selectorText) return [];\n  var selectorSet = new Set();\n  var selectors = selectorText.split(/,(?![^()]*\\))/).map(function (s$$1) {\n    return s$$1.trim();\n  });\n  selectors = selectors.flatMap(function (selector) {\n    return selector.includes('(') ? selector : selector.split(',').map(function (s$$1) {\n      return s$$1.trim();\n    });\n  });\n  var _iterator = _createForOfIteratorHelper(selectors),\n    _step;\n  try {\n    for (_iterator.s(); !(_step = _iterator.n()).done;) {\n      var selector = _step.value;\n      if (hasPseudoElement(selector)) {\n        // Remove pseudo-elements from the selector\n        var selectorWithoutPseudo = PSEUDO_ELEMENTS.reduce(function (acc, pseudoSelector) {\n          return acc.replace(pseudoSelector, '');\n        }, selector);\n        if (selectorWithoutPseudo !== '' && selectorWithoutPseudo !== '*') {\n          selectorSet.add(selectorWithoutPseudo);\n        }\n      }\n    }\n  } catch (err) {\n    _iterator.e(err);\n  } finally {\n    _iterator.f();\n  }\n  return selectorSet;\n};\nfunction searchPseudoElements(root) {\n  var useAsNodeList = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n  if (!IS_DOM) return;\n  var nodeList;\n  if (useAsNodeList) {\n    nodeList = root;\n  } else if (config.searchPseudoElementsFullScan) {\n    nodeList = root.querySelectorAll('*');\n  } else {\n    // Get elements that have pseudo elements defined in the CSS\n    var selectorSet = new Set();\n    var _iterator2 = _createForOfIteratorHelper(document.styleSheets),\n      _step2;\n    try {\n      for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n        var stylesheet = _step2.value;\n        try {\n          var _iterator3 = _createForOfIteratorHelper(stylesheet.cssRules),\n            _step3;\n          try {\n            for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n              var rule = _step3.value;\n              var parsedSelectors = parseCSSRuleForPseudos(rule.selectorText);\n              var _iterator4 = _createForOfIteratorHelper(parsedSelectors),\n                _step4;\n              try {\n                for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n                  var selector = _step4.value;\n                  selectorSet.add(selector);\n                }\n              } catch (err) {\n                _iterator4.e(err);\n              } finally {\n                _iterator4.f();\n              }\n            }\n          } catch (err) {\n            _iterator3.e(err);\n          } finally {\n            _iterator3.f();\n          }\n        } catch (e$$1) {\n          if (config.searchPseudoElementsWarnings) {\n            console.warn(\"Font Awesome: cannot parse stylesheet: \".concat(stylesheet.href, \" (\").concat(e$$1.message, \")\\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin=\\\"anonymous\\\" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.\"));\n          }\n        }\n      }\n    } catch (err) {\n      _iterator2.e(err);\n    } finally {\n      _iterator2.f();\n    }\n    if (!selectorSet.size) return;\n    var cleanSelectors = Array.from(selectorSet).join(', ');\n    try {\n      nodeList = root.querySelectorAll(cleanSelectors);\n    } catch (_unused) {} // eslint-disable-line no-empty\n  }\n  return new Promise(function (resolve, reject) {\n    var operations = toArray(nodeList).filter(processable).map(replace);\n    var end = perf.begin('searchPseudoElements');\n    disableObservation();\n    Promise.all(operations).then(function () {\n      end();\n      enableObservation();\n      resolve();\n    }).catch(function () {\n      end();\n      enableObservation();\n      reject();\n    });\n  });\n}\nvar PseudoElements = {\n  hooks: function hooks() {\n    return {\n      mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {\n        accumulator.pseudoElementsCallback = searchPseudoElements;\n        return accumulator;\n      }\n    };\n  },\n  provides: function provides(providers) {\n    providers.pseudoElements2svg = function (params) {\n      var _params$node = params.node,\n        node = _params$node === void 0 ? DOCUMENT : _params$node;\n      if (config.searchPseudoElements) {\n        searchPseudoElements(node);\n      }\n    };\n  }\n};\n\nvar _unwatched = false;\nvar MutationObserver$1 = {\n  mixout: function mixout() {\n    return {\n      dom: {\n        unwatch: function unwatch() {\n          disableObservation();\n          _unwatched = true;\n        }\n      }\n    };\n  },\n  hooks: function hooks() {\n    return {\n      bootstrap: function bootstrap() {\n        observe(chainHooks('mutationObserverCallbacks', {}));\n      },\n      noAuto: function noAuto() {\n        disconnect();\n      },\n      watch: function watch(params) {\n        var observeMutationsRoot = params.observeMutationsRoot;\n        if (_unwatched) {\n          enableObservation();\n        } else {\n          observe(chainHooks('mutationObserverCallbacks', {\n            observeMutationsRoot: observeMutationsRoot\n          }));\n        }\n      }\n    };\n  }\n};\n\nvar parseTransformString = function parseTransformString(transformString) {\n  var transform = {\n    size: 16,\n    x: 0,\n    y: 0,\n    flipX: false,\n    flipY: false,\n    rotate: 0\n  };\n  return transformString.toLowerCase().split(' ').reduce(function (acc, n) {\n    var parts = n.toLowerCase().split('-');\n    var first = parts[0];\n    var rest = parts.slice(1).join('-');\n    if (first && rest === 'h') {\n      acc.flipX = true;\n      return acc;\n    }\n    if (first && rest === 'v') {\n      acc.flipY = true;\n      return acc;\n    }\n    rest = parseFloat(rest);\n    if (isNaN(rest)) {\n      return acc;\n    }\n    switch (first) {\n      case 'grow':\n        acc.size = acc.size + rest;\n        break;\n      case 'shrink':\n        acc.size = acc.size - rest;\n        break;\n      case 'left':\n        acc.x = acc.x - rest;\n        break;\n      case 'right':\n        acc.x = acc.x + rest;\n        break;\n      case 'up':\n        acc.y = acc.y - rest;\n        break;\n      case 'down':\n        acc.y = acc.y + rest;\n        break;\n      case 'rotate':\n        acc.rotate = acc.rotate + rest;\n        break;\n    }\n    return acc;\n  }, transform);\n};\nvar PowerTransforms = {\n  mixout: function mixout() {\n    return {\n      parse: {\n        transform: function transform(transformString) {\n          return parseTransformString(transformString);\n        }\n      }\n    };\n  },\n  hooks: function hooks() {\n    return {\n      parseNodeAttributes: function parseNodeAttributes(accumulator, node) {\n        var transformString = node.getAttribute('data-fa-transform');\n        if (transformString) {\n          accumulator.transform = parseTransformString(transformString);\n        }\n        return accumulator;\n      }\n    };\n  },\n  provides: function provides(providers) {\n    providers.generateAbstractTransformGrouping = function (_ref) {\n      var main = _ref.main,\n        transform = _ref.transform,\n        containerWidth = _ref.containerWidth,\n        iconWidth = _ref.iconWidth;\n      var outer = {\n        transform: \"translate(\".concat(containerWidth / 2, \" 256)\")\n      };\n      var innerTranslate = \"translate(\".concat(transform.x * 32, \", \").concat(transform.y * 32, \") \");\n      var innerScale = \"scale(\".concat(transform.size / 16 * (transform.flipX ? -1 : 1), \", \").concat(transform.size / 16 * (transform.flipY ? -1 : 1), \") \");\n      var innerRotate = \"rotate(\".concat(transform.rotate, \" 0 0)\");\n      var inner = {\n        transform: \"\".concat(innerTranslate, \" \").concat(innerScale, \" \").concat(innerRotate)\n      };\n      var path = {\n        transform: \"translate(\".concat(iconWidth / 2 * -1, \" -256)\")\n      };\n      var operations = {\n        outer: outer,\n        inner: inner,\n        path: path\n      };\n      return {\n        tag: 'g',\n        attributes: _objectSpread2({}, operations.outer),\n        children: [{\n          tag: 'g',\n          attributes: _objectSpread2({}, operations.inner),\n          children: [{\n            tag: main.icon.tag,\n            children: main.icon.children,\n            attributes: _objectSpread2(_objectSpread2({}, main.icon.attributes), operations.path)\n          }]\n        }]\n      };\n    };\n  }\n};\n\nvar ALL_SPACE = {\n  x: 0,\n  y: 0,\n  width: '100%',\n  height: '100%'\n};\nfunction fillBlack(abstract) {\n  var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n  if (abstract.attributes && (abstract.attributes.fill || force)) {\n    abstract.attributes.fill = 'black';\n  }\n  return abstract;\n}\nfunction deGroup(abstract) {\n  if (abstract.tag === 'g') {\n    return abstract.children;\n  } else {\n    return [abstract];\n  }\n}\nvar Masks = {\n  hooks: function hooks() {\n    return {\n      parseNodeAttributes: function parseNodeAttributes(accumulator, node) {\n        var maskData = node.getAttribute('data-fa-mask');\n        var mask = !maskData ? emptyCanonicalIcon() : getCanonicalIcon(maskData.split(' ').map(function (i) {\n          return i.trim();\n        }));\n        if (!mask.prefix) {\n          mask.prefix = getDefaultUsablePrefix();\n        }\n        accumulator.mask = mask;\n        accumulator.maskId = node.getAttribute('data-fa-mask-id');\n        return accumulator;\n      }\n    };\n  },\n  provides: function provides(providers) {\n    providers.generateAbstractMask = function (_ref) {\n      var children = _ref.children,\n        attributes = _ref.attributes,\n        main = _ref.main,\n        mask = _ref.mask,\n        explicitMaskId = _ref.maskId,\n        transform = _ref.transform;\n      var mainWidth = main.width,\n        mainPath = main.icon;\n      var maskWidth = mask.width,\n        maskPath = mask.icon;\n      var trans = transformForSvg({\n        transform: transform,\n        containerWidth: maskWidth,\n        iconWidth: mainWidth\n      });\n      var maskRect = {\n        tag: 'rect',\n        attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {\n          fill: 'white'\n        })\n      };\n      var maskInnerGroupChildrenMixin = mainPath.children ? {\n        children: mainPath.children.map(fillBlack)\n      } : {};\n      var maskInnerGroup = {\n        tag: 'g',\n        attributes: _objectSpread2({}, trans.inner),\n        children: [fillBlack(_objectSpread2({\n          tag: mainPath.tag,\n          attributes: _objectSpread2(_objectSpread2({}, mainPath.attributes), trans.path)\n        }, maskInnerGroupChildrenMixin))]\n      };\n      var maskOuterGroup = {\n        tag: 'g',\n        attributes: _objectSpread2({}, trans.outer),\n        children: [maskInnerGroup]\n      };\n      var maskId = \"mask-\".concat(explicitMaskId || nextUniqueId());\n      var clipId = \"clip-\".concat(explicitMaskId || nextUniqueId());\n      var maskTag = {\n        tag: 'mask',\n        attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {\n          id: maskId,\n          maskUnits: 'userSpaceOnUse',\n          maskContentUnits: 'userSpaceOnUse'\n        }),\n        children: [maskRect, maskOuterGroup]\n      };\n      var defs = {\n        tag: 'defs',\n        children: [{\n          tag: 'clipPath',\n          attributes: {\n            id: clipId\n          },\n          children: deGroup(maskPath)\n        }, maskTag]\n      };\n      children.push(defs, {\n        tag: 'rect',\n        attributes: _objectSpread2({\n          'fill': 'currentColor',\n          'clip-path': \"url(#\".concat(clipId, \")\"),\n          'mask': \"url(#\".concat(maskId, \")\")\n        }, ALL_SPACE)\n      });\n      return {\n        children: children,\n        attributes: attributes\n      };\n    };\n  }\n};\n\nvar MissingIconIndicator = {\n  provides: function provides(providers) {\n    var reduceMotion = false;\n    if (WINDOW.matchMedia) {\n      reduceMotion = WINDOW.matchMedia('(prefers-reduced-motion: reduce)').matches;\n    }\n    providers.missingIconAbstract = function () {\n      var gChildren = [];\n      var FILL = {\n        fill: 'currentColor'\n      };\n      var ANIMATION_BASE = {\n        attributeType: 'XML',\n        repeatCount: 'indefinite',\n        dur: '2s'\n      };\n\n      // Ring\n      gChildren.push({\n        tag: 'path',\n        attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {\n          d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'\n        })\n      });\n      var OPACITY_ANIMATE = _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {\n        attributeName: 'opacity'\n      });\n      var dot = {\n        tag: 'circle',\n        attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {\n          cx: '256',\n          cy: '364',\n          r: '28'\n        }),\n        children: []\n      };\n      if (!reduceMotion) {\n        dot.children.push({\n          tag: 'animate',\n          attributes: _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {\n            attributeName: 'r',\n            values: '28;14;28;28;14;28;'\n          })\n        }, {\n          tag: 'animate',\n          attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {\n            values: '1;0;1;1;0;1;'\n          })\n        });\n      }\n      gChildren.push(dot);\n      gChildren.push({\n        tag: 'path',\n        attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {\n          opacity: '1',\n          d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'\n        }),\n        children: reduceMotion ? [] : [{\n          tag: 'animate',\n          attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {\n            values: '1;0;0;0;0;1;'\n          })\n        }]\n      });\n      if (!reduceMotion) {\n        // Exclamation\n        gChildren.push({\n          tag: 'path',\n          attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {\n            opacity: '0',\n            d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'\n          }),\n          children: [{\n            tag: 'animate',\n            attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {\n              values: '0;0;1;1;0;0;'\n            })\n          }]\n        });\n      }\n      return {\n        tag: 'g',\n        attributes: {\n          class: 'missing'\n        },\n        children: gChildren\n      };\n    };\n  }\n};\n\nvar SvgSymbols = {\n  hooks: function hooks() {\n    return {\n      parseNodeAttributes: function parseNodeAttributes(accumulator, node) {\n        var symbolData = node.getAttribute('data-fa-symbol');\n        var symbol = symbolData === null ? false : symbolData === '' ? true : symbolData;\n        accumulator['symbol'] = symbol;\n        return accumulator;\n      }\n    };\n  }\n};\n\nvar plugins = [InjectCSS, ReplaceElements, Layers, LayersCounter, LayersText, PseudoElements, MutationObserver$1, PowerTransforms, Masks, MissingIconIndicator, SvgSymbols];\n\nregisterPlugins(plugins, {\n  mixoutsTo: api\n});\nvar noAuto$1 = api.noAuto;\nvar config$1 = api.config;\nvar library$1 = api.library;\nvar dom$1 = api.dom;\nvar parse$1 = api.parse;\nvar findIconDefinition$1 = api.findIconDefinition;\nvar toHtml$1 = api.toHtml;\nvar icon = api.icon;\nvar layer = api.layer;\nvar text = api.text;\nvar counter = api.counter;\n\nexport { noAuto$1 as noAuto, config$1 as config, library$1 as library, dom$1 as dom, parse$1 as parse, findIconDefinition$1 as findIconDefinition, toHtml$1 as toHtml, icon, layer, text, counter, api };\n","import { capabilities, setComponentManager } from '@ember/component';\nimport { destroy } from '@ember/destroyable';\nimport { schedule } from '@ember/runloop';\nimport { setOwner } from '@ember/owner';\n\nconst IS_DESTROYING_KEY = Symbol('__is_destroying__');\nconst IS_DESTROYED_KEY = Symbol('__is_destroyed__');\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 */\nclass GlimmerComponent {\n  [IS_DESTROYING_KEY] = false;\n  [IS_DESTROYED_KEY] = false;\n\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    this.args = args;\n  }\n\n  /**\n   * Named arguments passed to the component from its parent component.\n   * They can be accessed in JavaScript via `this.args.argumentName` and in the template via `@argumentName`.\n   *\n   * Say you have the following component, which will have two `args`, `firstName` and `lastName`:\n   *\n   * ```hbs\n   * <my-component @firstName=\"Arthur\" @lastName=\"Dent\" />\n   * ```\n   *\n   * If you needed to calculate `fullName` by combining both of them, you would do:\n   *\n   * ```ts\n   * didInsertElement() {\n   *   console.log(`Hi, my full name is ${this.args.firstName} ${this.args.lastName}`);\n   * }\n   * ```\n   *\n   * While in the template you could do:\n   *\n   * ```hbs\n   * <p>Welcome, {{@firstName}} {{@lastName}}!</p>\n   * ```\n   */\n  args;\n  get isDestroying() {\n    return this[IS_DESTROYING_KEY];\n  }\n  get isDestroyed() {\n    return this[IS_DESTROYED_KEY];\n  }\n\n  /**\n   * Called before the component has been removed from the DOM.\n   */\n  willDestroy() {}\n}\n\nclass BaseComponentManager {\n  owner;\n  constructor(owner) {\n    this.owner = owner;\n  }\n  createComponent(ComponentClass, args) {\n    return new ComponentClass(this.owner, args.named);\n  }\n  getContext(component) {\n    return component;\n  }\n}\n\nconst CAPABILITIES = capabilities('3.13', {\n  destructor: true,\n  asyncLifecycleCallbacks: false,\n  updateHook: false\n});\nfunction scheduledDestroyComponent(component) {\n  if (component.isDestroyed) {\n    return;\n  }\n  destroy(component);\n  component[IS_DESTROYED_KEY] = true;\n}\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 */\nclass EmberGlimmerComponentManager extends BaseComponentManager {\n  capabilities = CAPABILITIES;\n  destroyComponent(component) {\n    if (component.isDestroying) {\n      return;\n    }\n    component[IS_DESTROYING_KEY] = true;\n    schedule('actions', component, component.willDestroy);\n    schedule('destroy', this, scheduledDestroyComponent, component);\n  }\n}\n\n/**\n  A component is a reusable UI element that consists of a 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.\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 components 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 Template-only and Glimmer components. If you\n  are looking for the API documentation for Classic components, it is\n  [available here](/ember/release/classes/Component). The source code for\n  Glimmer components can be found in [`@glimmer/component`](https://github.com/emberjs/ember.js/tree/main/packages/%40glimmer/component).\n\n  Note: Prior to Ember 6.8, by default, components were authored in paired `.hbs` and `.js` \n  files. This is still supported, but the default authoring format is now `.gjs` or \"template tag\".\n  To read more about how components were previously authored, see the \n  [6.7 version of this API documentation](https://api.emberjs.com/ember/6.7/modules/@glimmer%2Fcomponent).\n    \n  ## Defining a Template-only Component\n\n  The simplest way to create a component is to create a `gjs` file in\n  `app/components` with a `<template>` tag wrapper:\n\n  ```gjs {data-filename=\"app/components/person-profile.gjs\"}\n  <template>\n    <h1>{{@person.name}}</h1>\n    <img src={{@person.avatar}}>\n    <p class='signature'>{{@person.signature}}</p>\n  </template>\n  ```\n\n  You will be able to use `<PersonProfile />` to invoke this component elsewhere\n  in your application:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import PersonProfile from '../components/person-profile';\n    \n  <template>\n    <PersonProfile @person={{@model.currentUser}} />\n  </template>\n  ```\n\n  Note that component names are capitalized here in order to distinguish them\n  from regular HTML elements.\n\n  Ember will render the content of the component template we\n  created above. The end result will be something like this:\n\n  ```html\n  <h1>Tomster</h1>\n  <img src=\"https://emberjs.com/tomster.jpg\">\n  <p class='signature'>Out of office this week</p>\n  ```\n\n  ## File System Nesting\n\n  In Ember templates, “invokables” are things you can invoke in a template. These include components, \n  helpers, and modifiers. In the template tag format, these invokables need to be imported before \n  they can be used. This makes it easier to understand where values come from and what they do, as \n  well as unlocks build optimizations.\n\n  When making use of the `PersonProfile` component as defined before in a different component file, \n  it first needs to be imported. This is done using the import statement, just like you would import \n  any other JavaScript module -- from your local project or from an external package.\n\n  Since they are imported, Components can be placed anywhere in your project on the filesystem, but \n  they are conventionally placed within `app/components` for reusable components and within \n  `app/templates` for Route components. \n    \n  Route components must be named after the route they are associated with -- and placed in the \n  `app/templates` directory. For example, a `Person` route would have a corresponding `Person` \n  component defined in `app/templates/person.gjs`. This component would then be rendered whenever \n  the user visits the `/person` route. For more information, see the \n  [Routing](https://guides.emberjs.com/release/routing/) section of the guides.\n\n  ## Using Blocks\n\n  You can use `yield` inside a template to include the **contents** of any block\n  attached to the component. For instance, if we added a `{{yield}}` to our\n  component like so:\n\n  ```gjs {data-filename=\"app/components/person-profile.gjs\"}\n  <template>\n    <h1>{{@person.name}}</h1>\n    {{yield}}\n  </template>\n  ```\n\n  We could then invoke it like this:\n\n  ```gjs\n  import PersonProfile from '../components/person-profile';\n    \n  <template>\n    <PersonProfile @person={{@model.currentUser}}>\n      <p>Admin mode</p>\n    </PersonProfile>\n  </template>\n  ```\n    \n  And the content passed in between the brackets of the component would be\n  rendered in the same place as the `{{yield}}` within it, replacing it.\n\n  Blocks are executed in their original context, meaning they have access to the\n  scope and any in-scope variables where they were defined.\n\n  ### Passing parameters to blocks\n\n  You can also pass positional parameters to `{{yield}}`, which are then made\n  available in the block:\n\n  ```gjs {data-filename=\"app/components/person-profile.gjs\"}\n  <template>\n    <h1>{{@person.name}}</h1>\n    {{yield @person.signature}}\n  </template>\n  ```\n\n  We can then use this value in the block like so:\n\n  ```gjs\n  import PersonProfile from '../components/person-profile';\n    \n  <template>\n    <PersonProfile @person={{@model.currentUser}} as |signature|>\n      {{signature}}\n    </PersonProfile>\n  </template>\n  ```\n\n  ### Passing multiple blocks\n\n  You can pass multiple blocks to a component by giving them names, and\n  specifying which block you are yielding to with `{{yield}}`. For instance, if\n  we wanted to add a way for users to customize the title of our\n  `<PersonProfile>` component, we could add a named block inside of the header:\n\n  ```gjs {data-filename=\"app/components/person-profile.gjs\"}\n  <template>\n    <h1>{{yield to=\"title\"}}</h1>\n    {{yield}}\n  </template>\n  ```\n\n  This component could then be invoked like so:\n\n  ```gjs\n  import PersonProfile from '../components/person-profile';\n\n  <template>\n    <PersonProfile @person={{@model.currentUser}}>\n      <:title>{{@model.currentUser.name}}</:title>\n      <:default>{{@model.currentUser.signature}}</:default>\n    </PersonProfile>\n  </template>\n  ```\n\n  When passing named blocks, you must name every block, including the `default`\n  block, which is the block that is defined if you do not pass a `to` parameter\n  to `{{yield}}`. Whenever you invoke a component without passing explicitly\n  named blocks, the passed block is considered the `default` block.\n\n  ### Passing parameters to named blocks\n\n  You can also pass parameters to named blocks:\n\n  ```gjs {data-filename=\"app/components/person-profile.gjs\"}\n  <template>\n    <h1>{{yield @person.name to=\"title\"}}</h1>\n    {{yield @person.signature}}\n  </template>\n  ```\n\n  These parameters can then be used like so:\n\n  ```gjs\n  import PersonProfile from '../components/person-profile';\n\n  <template>\n    <PersonProfile @person={{@model.currentUser}}>\n      <:title as |name|>{{name}}</:title>\n      <:default as |signature|>{{signature}}</:default>\n    </PersonProfile>\n  </template>\n  ```\n\n  ### Checking to see if a block exists\n\n  You can also check to see if a block exists using the `(has-block)` keyword,\n  and conditionally use it, or provide a default template instead.\n\n  ```gjs {data-filename=\"app/components/person-profile.gjs\"}\n  <template>\n    <h1>\n      {{#if (has-block \"title\")}}\n        {{yield @person.name to=\"title\"}}\n      {{else}}\n        {{@person.name}}\n      {{/if}}\n    </h1>\n  \n    {{#if (has-block)}}\n      {{yield @person.signature}}\n    {{else}}\n      {{@person.signature}}\n    {{/if}}\n  </template>\n  ```\n\n  With this template, we can then optionally pass in one block, both blocks, or\n  none at all:\n\n  ```gjs\n  import PersonProfile from '../components/person-profile';\n\n  <template>\n    {{! passing both blocks }}\n    <PersonProfile @person={{@model.currentUser}}>\n      <:title as |name|>{{name}}</:title>\n      <:default as |signature|>{{signature}}</:default>\n    </PersonProfile>\n  \n    {{! passing just the title block }}\n    <PersonProfile @person={{@model.currentUser}}>\n      <:title as |name|>{{name}}</:title>\n    </PersonProfile>\n  \n    {{! passing just the default block }}\n    <PersonProfile @person={{@model.currentUser}} as |signature|>\n      {{signature}}\n    </PersonProfile>\n  \n    {{! not passing any blocks }}\n    <PersonProfile @person={{@model.currentUser}}/>\n  </template>\n  ```\n\n  ### Checking to see if a block has parameters\n\n  We can also check if a block receives parameters using the `(has-block-params)`\n  keyword, and conditionally yield different values if so.\n\n  ```gjs {data-filename=\"app/components/person-profile.gjs\"}\n  <template>\n    {{#if (has-block-params)}}\n      {{yield @person.signature}}\n    {{else}}\n      {{yield}}\n    {{/if}}\n  </template>\n  ```\n\n  ## Customizing Components With JavaScript\n\n  To add JavaScript to a component, add a class extending from `@glimmer/component` to the `gjs` \n  file, wrapping your `<template>` tag.\n  For example, to add JavaScript to the `PersonProfile` component which we defined above:\n\n  ```gjs {data-filename=\"app/components/person-profile.gjs\"}\n  import Component from '@glimmer/component';\n\n  export default class PersonProfile extends Component {\n    get displayName() {\n      let { title, firstName, lastName } = this.args.person;\n\n      if (title) {\n        return `${title} ${lastName}`;\n      } else {\n        return `${firstName} ${lastName}`;\n      }\n    })\n    \n    <template>\n      <h1>{{this.displayName}}</h1>\n      {{yield}}\n    </template>\n  }\n  ```\n\n  You can add your own properties, methods, and lifecycle hooks to this\n  subclass to customize its behavior, and you can reference the instance of the\n  class in your template using `{{this}}`. In the example above, we access the\n  `displayName` property of our `PersonProfile` component instance in the\n  template.\n\n  ## `constructor`\n\n  params: `owner` object and `args` object\n\n  Constructs a new component and assigns itself the passed properties. The\n  constructor is run whenever a new instance of the component is created, and\n  can be used to setup the initial state of the component.\n\n  ```gjs\n  import Component from '@glimmer/component';\n\n  export default class SomeComponent extends Component {\n    constructor(owner, args) {\n      super(owner, args);\n\n      if (this.args.displayMode === 'list') {\n        this.items = [];\n      }\n    }\n  }\n  ```\n\n  Service injections and arguments are available in the constructor.\n\n  ```gjs\n  import Component from '@glimmer/component';\n  import { service } from '@ember/service';\n\n  export default class SomeComponent extends Component {\n    @service myAnimations;\n\n    constructor(owner, args) {\n      super(owner, args);\n\n      if (this.args.fadeIn === true) {\n        this.myAnimations.register(this, 'fade-in');\n      }\n    }\n  }\n  ```\n\n  ## `willDestroy`\n\n  `willDestroy` is called after the component has been removed from the DOM, but\n  before the component is fully destroyed. This lifecycle hook can be used to\n  cleanup the component and any related state.\n    \n  You may prefer the [@ember/destroyable](/ember/release/modules//@ember%2Fdestroyable) APIs for\n  this purpose.\n\n  ```gjs\n  import Component from '@glimmer/component';\n  import { service } from '@ember/service';\n\n  export default class SomeComponent extends Component {\n    @service myAnimations;\n\n    willDestroy() {\n      super.willDestroy();\n\n      this.myAnimations.unregister(this);\n    }\n  }\n  ```\n\n  ## `args`\n\n  The `args` property of Glimmer components is an object that contains the\n  _arguments_ that are passed to the component. For instance, the\n  following component usage:\n\n  ```gjs\n  <template>\n    <SomeComponent @fadeIn={{true}} />\n  </template>\n  ```\n\n  Would result in the following `args` object to be passed to the component:\n\n  ```javascript\n  { fadeIn: true }\n  ```\n\n  `args` can be accessed at any point in the component lifecycle, including\n  `constructor` and `willDestroy`. They are also automatically marked as tracked\n  properties, and they can be depended on to update as any other tracked property:\n\n  ```gjs\n  import Component from '@glimmer/component';\n  import { computed } from '@ember/object';\n\n  export default class SomeComponent extends Component {\n    get standardGetter() {\n      // updates whenever args.anotherValue updates\n      return this.args.anotherValue;\n    }\n  }\n  ```\n    \n  A components arguments are accessible in the template using the `@` prefix - for example, \n  `this.args.fadeIn` from the example above can be accessed in the template as `@fadeIn`.\n\n  ## `isDestroying`\n\n  A boolean flag to tell if the component is in the process of destroying. This is set to\n  true before `willDestroy` is called.\n\n  ## `isDestroyed`\n  A boolean to tell if the component has been fully destroyed. This is set to true\n  after `willDestroy` is called.\n\n  @module @glimmer/component\n  @public\n*/\nclass Component extends GlimmerComponent {\n  constructor(owner, args) {\n    super(owner, args);\n    setOwner(this, owner);\n  }\n}\nsetComponentManager(owner => {\n  return new EmberGlimmerComponentManager(owner);\n}, Component);\n\nexport { Component as default };\n",null,"export interface Descriptor {\n  configurable?: boolean;\n  enumerable?: boolean;\n  writable?: boolean;\n  get?(): any;\n  set?(v: any): void;\n  initializer?: null | (() => any);\n  value?: any;\n}\nexport type LegacyDecorator = (\n  target: object,\n  prop: unknown,\n  desc: Descriptor,\n) => Descriptor | null | undefined | void;\n\nexport type LegacyClassDecorator = (target: new (...args: any) => any) =>\n  | {\n      new (...args: any): any;\n    }\n  | null\n  | undefined\n  | void;\n\nconst deferred: WeakMap<\n  object,\n  Map<string | number | symbol, Descriptor>\n> = new WeakMap();\n\nfunction deferDecorator(\n  proto: object,\n  prop: string | number | symbol,\n  desc: Descriptor,\n): void {\n  let map = deferred.get(proto);\n  if (!map) {\n    map = new Map();\n    deferred.set(proto, map);\n  }\n  map.set(prop, desc);\n}\n\nfunction findDeferredDecorator(\n  target: object,\n  prop: string | number | symbol,\n): Descriptor | undefined {\n  let cursor: object = (target as any).prototype;\n  while (cursor) {\n    let desc = deferred.get(cursor)?.get(prop);\n    if (desc) {\n      return desc;\n    }\n    cursor = Object.getPrototypeOf(cursor);\n  }\n}\n\nfunction decorateFieldV1(\n  target: { prototype: object },\n  prop: string | number | symbol,\n  decorators: LegacyDecorator[],\n  initializer?: () => any,\n): void {\n  return decorateFieldV2(target.prototype, prop, decorators, initializer);\n}\n\nfunction decorateFieldV2(\n  prototype: object,\n  prop: string | number | symbol,\n  decorators: LegacyDecorator[],\n  initializer?: () => any,\n): void {\n  let desc: Descriptor = {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null,\n  };\n  if (initializer) {\n    desc.initializer = initializer;\n  }\n  for (let decorator of decorators) {\n    desc = decorator(prototype, prop, desc) || desc;\n  }\n  if (desc.initializer === undefined) {\n    Object.defineProperty(prototype, prop, desc);\n  } else {\n    deferDecorator(prototype, prop, desc);\n  }\n}\n\nfunction decorateMethodV1(\n  { prototype }: { prototype: object },\n  prop: string | number | symbol,\n  decorators: LegacyDecorator[],\n): void {\n  return decorateMethodV2(prototype, prop, decorators);\n}\n\nfunction decorateMethodV2(\n  prototype: object,\n  prop: string | number | symbol,\n  decorators: LegacyDecorator[],\n): void {\n  const origDesc = Object.getOwnPropertyDescriptor(prototype, prop);\n  let desc: Descriptor = { ...origDesc };\n  for (let decorator of decorators) {\n    desc = decorator(prototype, prop, desc) || desc;\n  }\n  if (desc.initializer !== undefined) {\n    desc.value = desc.initializer ? desc.initializer.call(prototype) : void 0;\n    desc.initializer = undefined;\n  }\n  Object.defineProperty(prototype, prop, desc);\n}\n\nfunction initializeDeferredDecorator(\n  target: object,\n  prop: string | number | symbol,\n): void {\n  let desc = findDeferredDecorator(target.constructor, prop);\n  if (desc) {\n    Object.defineProperty(target, prop, {\n      enumerable: desc.enumerable,\n      configurable: desc.configurable,\n      writable: desc.writable,\n      value: desc.initializer ? desc.initializer.call(target) : undefined,\n    });\n  }\n}\n\nfunction decorateClass(\n  target: new (...args: any) => any,\n  decorators: LegacyClassDecorator[],\n): new (...args: any) => any {\n  return decorators.reduce(\n    (accum, decorator) => decorator(accum) || accum,\n    target,\n  );\n}\n\nfunction decoratePOJO(\n  pojo: object,\n  decorated: [\n    'field' | 'method',\n    string | number | symbol,\n    LegacyDecorator[],\n  ][],\n) {\n  for (let [type, prop, decorators] of decorated) {\n    if (type === 'field') {\n      decoratePojoField(pojo, prop, decorators);\n    } else {\n      decorateMethodV2(pojo, prop, decorators);\n    }\n  }\n  return pojo;\n}\nfunction decoratePojoField(\n  pojo: object,\n  prop: string | number | symbol,\n  decorators: LegacyDecorator[],\n) {\n  let desc: Descriptor = {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: () => Object.getOwnPropertyDescriptor(pojo, prop)?.value,\n  };\n  for (let decorator of decorators) {\n    desc = decorator(pojo, prop, desc) || desc;\n  }\n  if (desc.initializer) {\n    desc.value = desc.initializer.call(pojo);\n    delete desc.initializer;\n  }\n  Object.defineProperty(pojo, prop, desc);\n}\n\nexport {\n  decorateFieldV1 as f,\n  decorateFieldV2 as g,\n  decorateMethodV1 as m,\n  decorateMethodV2 as n,\n  initializeDeferredDecorator as i,\n  decorateClass as c,\n  decoratePOJO as p,\n};\n","function resolveInitializer(modules, moduleName) {\n    let module = modules.load(moduleName);\n    if (!module) {\n        throw new Error(moduleName + ' must export an initializer.');\n    }\n    let 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}\nfunction registerInitializers(app, modules, moduleNames) {\n    for (let moduleName of moduleNames) {\n        app.initializer(resolveInitializer(modules, moduleName));\n    }\n}\nfunction registerInstanceInitializers(app, modules, moduleNames) {\n    for (let moduleName of moduleNames) {\n        app.instanceInitializer(resolveInitializer(modules, moduleName));\n    }\n}\n/**\n * Configure your application as it boots\n */\nexport default function loadInitializers(app, prefix, explicitModules) {\n    var initializerPrefix = prefix + '/initializers/';\n    var instanceInitializerPrefix = prefix + '/instance-initializers/';\n    var initializers = [];\n    var instanceInitializers = [];\n    let modules;\n    if (explicitModules) {\n        modules = {\n            names() {\n                return Object.keys(explicitModules);\n            },\n            load(name) {\n                return explicitModules[name];\n            }\n        };\n    }\n    else {\n        modules = {\n            names() {\n                let requirejs = globalThis.requirejs;\n                if (!requirejs || !requirejs._eak_seen) {\n                    throw new Error(\"No global AMD loader found. To use loadInitializers without a global AMD loader you must provide explicit modules\");\n                }\n                return Object.keys(requirejs._eak_seen);\n            },\n            load(name) {\n                return globalThis.require(name, null, null, true);\n            }\n        };\n    }\n    for (let moduleName of modules.names()) {\n        if (moduleName.startsWith(initializerPrefix) && !moduleName.endsWith('-test')) {\n            initializers.push(moduleName);\n        }\n        else if (moduleName.startsWith(instanceInitializerPrefix) && !moduleName.endsWith('-test')) {\n            instanceInitializers.push(moduleName);\n        }\n    }\n    registerInitializers(app, modules, initializers);\n    registerInstanceInitializers(app, modules, instanceInitializers);\n}\n","import { m as makeDictionary } from '../../../shared-chunks/dictionary-gc5gpyOG.js';\nimport { i as intern } from '../../../shared-chunks/intern-zquhAEIg.js';\nimport { C as Container } from '../../../shared-chunks/container-BYOnjnwz.js';\nexport { I as INIT_FACTORY, g as getFactoryFor, s as setFactoryFor } from '../../../shared-chunks/container-BYOnjnwz.js';\n\nconst VALID_FULL_NAME_REGEXP = /^[^:]+:[^:]+$/;\n\n/**\n A registry used to store factory and option information keyed\n by type.\n\n A `Registry` stores the factory and option information needed by a\n `Container` to instantiate and cache objects.\n\n The API for `Registry` is still in flux and should not be considered stable.\n\n @private\n @class Registry\n @since 1.11.0\n*/\nclass Registry {\n  _failSet;\n  resolver;\n  fallback;\n  registrations;\n  _normalizeCache;\n  _options;\n  _resolveCache;\n  _typeOptions;\n  constructor(options = {}) {\n    this.fallback = options.fallback || null;\n    this.resolver = options.resolver || null;\n    this.registrations = makeDictionary(options.registrations || null);\n    this._normalizeCache = makeDictionary(null);\n    this._resolveCache = makeDictionary(null);\n    this._failSet = new Set();\n    this._options = makeDictionary(null);\n    this._typeOptions = makeDictionary(null);\n  }\n\n  /**\n   A backup registry for resolving registrations when no matches can be found.\n    @private\n   @property fallback\n   @type Registry\n   */\n\n  /**\n   An object that has a `resolve` method that resolves a name.\n    @private\n   @property resolver\n   @type Resolver\n   */\n\n  /**\n   @private\n   @property registrations\n   @type InheritingDict\n   */\n\n  /**\n   @private\n    @property _normalizeCache\n   @type InheritingDict\n   */\n\n  /**\n   @private\n    @property _resolveCache\n   @type InheritingDict\n   */\n\n  /**\n   @private\n    @property _options\n   @type InheritingDict\n   */\n\n  /**\n   @private\n    @property _typeOptions\n   @type InheritingDict\n   */\n\n  /**\n   Creates a container based on this registry.\n    @private\n   @method container\n   @param {Object} options\n   @return {Container} created container\n   */\n  container(options) {\n    return new Container(this, options);\n  }\n\n  /**\n   Registers a factory for later injection.\n    Example:\n    ```javascript\n   let registry = new Registry();\n    registry.register('model:user', Person, {singleton: false });\n   registry.register('fruit:favorite', Orange);\n   registry.register('communication:main', Email, {singleton: false});\n   ```\n    @private\n   @method register\n   @param {String} fullName\n   @param {Function} factory\n   @param {Object} options\n   */\n\n  register(fullName, factory, options = {}) {\n    let normalizedName = this.normalize(fullName);\n    this._failSet.delete(normalizedName);\n    this.registrations[normalizedName] = factory;\n    this._options[normalizedName] = options;\n  }\n\n  /**\n   Unregister a fullName\n    ```javascript\n   let registry = new Registry();\n   registry.register('model:user', User);\n    registry.resolve('model:user').create() instanceof User //=> true\n    registry.unregister('model:user')\n   registry.resolve('model:user') === undefined //=> true\n   ```\n    @private\n   @method unregister\n   @param {String} fullName\n   */\n  unregister(fullName) {\n    let normalizedName = this.normalize(fullName);\n    delete this.registrations[normalizedName];\n    delete this._resolveCache[normalizedName];\n    delete this._options[normalizedName];\n    this._failSet.delete(normalizedName);\n  }\n\n  /**\n   Given a fullName return the corresponding factory.\n    By default `resolve` will retrieve the factory from\n   the registry.\n    ```javascript\n   let registry = new Registry();\n   registry.register('api:twitter', Twitter);\n    registry.resolve('api:twitter') // => Twitter\n   ```\n    Optionally the registry can be provided with a custom resolver.\n   If provided, `resolve` will first provide the custom resolver\n   the opportunity to resolve the fullName, otherwise it will fallback\n   to the registry.\n    ```javascript\n   let registry = new Registry();\n   registry.resolver = function(fullName) {\n      // lookup via the module system of choice\n    };\n    // the twitter factory is added to the module system\n   registry.resolve('api:twitter') // => Twitter\n   ```\n    @private\n   @method resolve\n   @param {String} fullName\n   @return {Function} fullName's factory\n   */\n  resolve(fullName) {\n    let factory = resolve(this, this.normalize(fullName));\n    if (factory === undefined && this.fallback !== null) {\n      factory = this.fallback.resolve(fullName);\n    }\n    return factory;\n  }\n\n  /**\n   A hook that can be used to describe how the resolver will\n   attempt to find the factory.\n    For example, the default Ember `.describe` returns the full\n   class name (including namespace) where Ember's resolver expects\n   to find the `fullName`.\n    @private\n   @method describe\n   @param {String} fullName\n   @return {string} described fullName\n   */\n  describe(fullName) {\n    if (this.resolver !== null && this.resolver.lookupDescription) {\n      return this.resolver.lookupDescription(fullName);\n    } else if (this.fallback !== null) {\n      return this.fallback.describe(fullName);\n    } else {\n      return fullName;\n    }\n  }\n\n  /**\n   A hook to enable custom fullName normalization behavior\n    @private\n   @method normalizeFullName\n   @param {String} fullName\n   @return {string} normalized fullName\n   */\n  normalizeFullName(fullName) {\n    if (this.resolver !== null && this.resolver.normalize) {\n      return this.resolver.normalize(fullName);\n    } else if (this.fallback !== null) {\n      return this.fallback.normalizeFullName(fullName);\n    } else {\n      return fullName;\n    }\n  }\n\n  /**\n   Normalize a fullName based on the application's conventions\n    @private\n   @method normalize\n   @param {String} fullName\n   @return {string} normalized fullName\n   */\n  normalize(fullName) {\n    return this._normalizeCache[fullName] || (this._normalizeCache[fullName] = this.normalizeFullName(fullName));\n  }\n\n  /**\n   @method makeToString\n    @private\n   @param {any} factory\n   @param {string} fullName\n   @return {function} toString function\n   */\n  makeToString(factory, fullName) {\n    if (this.resolver !== null && this.resolver.makeToString) {\n      return this.resolver.makeToString(factory, fullName);\n    } else if (this.fallback !== null) {\n      return this.fallback.makeToString(factory, fullName);\n    } else {\n      return typeof factory === 'string' ? factory : factory.name ?? '(unknown class)';\n    }\n  }\n\n  /**\n   Given a fullName check if the container is aware of its factory\n   or singleton instance.\n    @private\n   @method has\n   @param {String} fullName\n   @param {Object} [options]\n   @param {String} [options.source] the fullname of the request source (used for local lookups)\n   @return {Boolean}\n   */\n  has(fullName) {\n    if (!this.isValidFullName(fullName)) {\n      return false;\n    }\n    return has(this, this.normalize(fullName));\n  }\n\n  /**\n   Allow registering options for all factories of a type.\n    ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n    // if all of type `connection` must not be singletons\n   registry.optionsForType('connection', { singleton: false });\n    registry.register('connection:twitter', TwitterConnection);\n   registry.register('connection:facebook', FacebookConnection);\n    let twitter = container.lookup('connection:twitter');\n   let twitter2 = container.lookup('connection:twitter');\n    twitter === twitter2; // => false\n    let facebook = container.lookup('connection:facebook');\n   let facebook2 = container.lookup('connection:facebook');\n    facebook === facebook2; // => false\n   ```\n    @private\n   @method optionsForType\n   @param {String} type\n   @param {Object} options\n   */\n  optionsForType(type, options) {\n    this._typeOptions[type] = options;\n  }\n  getOptionsForType(type) {\n    let optionsForType = this._typeOptions[type];\n    if (optionsForType === undefined && this.fallback !== null) {\n      optionsForType = this.fallback.getOptionsForType(type);\n    }\n    return optionsForType;\n  }\n\n  /**\n   @private\n   @method options\n   @param {String} fullName\n   @param {Object} options\n   */\n  options(fullName, options) {\n    let normalizedName = this.normalize(fullName);\n    this._options[normalizedName] = options;\n  }\n  getOptions(fullName) {\n    let normalizedName = this.normalize(fullName);\n    let options = this._options[normalizedName];\n    if (options === undefined && this.fallback !== null) {\n      options = this.fallback.getOptions(fullName);\n    }\n    return options;\n  }\n  getOption(fullName, optionName) {\n    let options = this._options[fullName];\n    if (options !== undefined && options[optionName] !== undefined) {\n      return options[optionName];\n    }\n    let type = fullName.split(':')[0];\n    options = this._typeOptions[type];\n    if (options && options[optionName] !== undefined) {\n      return options[optionName];\n    } else if (this.fallback !== null) {\n      return this.fallback.getOption(fullName, optionName);\n    }\n    return undefined;\n  }\n\n  /**\n   @private\n   @method knownForType\n   @param {String} type the type to iterate over\n  */\n  knownForType(type) {\n    let localKnown = makeDictionary(null);\n    let registeredNames = Object.keys(this.registrations);\n    for (let fullName of registeredNames) {\n      let itemType = fullName.split(':')[0];\n      if (itemType === type) {\n        localKnown[fullName] = true;\n      }\n    }\n    let fallbackKnown, resolverKnown;\n    if (this.fallback !== null) {\n      fallbackKnown = this.fallback.knownForType(type);\n    }\n    if (this.resolver !== null && this.resolver.knownForType) {\n      resolverKnown = this.resolver.knownForType(type);\n    }\n    return Object.assign({}, fallbackKnown, localKnown, resolverKnown);\n  }\n  isValidFullName(fullName) {\n    return VALID_FULL_NAME_REGEXP.test(fullName);\n  }\n}\nfunction resolve(registry, _normalizedName) {\n  let normalizedName = _normalizedName;\n  let cached = registry._resolveCache[normalizedName];\n  if (cached !== undefined) {\n    return cached;\n  }\n  if (registry._failSet.has(normalizedName)) {\n    return;\n  }\n  let resolved;\n  if (registry.resolver) {\n    resolved = registry.resolver.resolve(normalizedName);\n  }\n  if (resolved === undefined) {\n    resolved = registry.registrations[normalizedName];\n  }\n  if (resolved === undefined) {\n    registry._failSet.add(normalizedName);\n  } else {\n    registry._resolveCache[normalizedName] = resolved;\n  }\n  return resolved;\n}\nfunction has(registry, fullName) {\n  return registry.resolve(fullName) !== undefined;\n}\nconst privateNames = makeDictionary(null);\nconst privateSuffix = `${Math.random()}${Date.now()}`.replace('.', '');\nfunction privatize([fullName]) {\n  let name = privateNames[fullName];\n  if (name) {\n    return name;\n  }\n  let [type, rawName] = fullName.split(':');\n  return privateNames[fullName] = intern(`${type}:${rawName}-${privateSuffix}`);\n}\n\nexport { Container, Registry, privatize };\n","import { E as ENV } from '../../../shared-chunks/env-DXxsTFkM.js';\nimport VERSION from '../../../ember/version.js';\nimport { dasherize } from '../string/index.js';\n\nfunction isEnabled(options) {\n  return Object.hasOwnProperty.call(options.since, 'enabled') || ENV._ALL_DEPRECATIONS_ENABLED;\n}\nlet numEmberVersion = parseFloat(ENV._OVERRIDE_DEPRECATION_VERSION ?? VERSION);\n\n/* until must only be a minor version or major version */\nfunction emberVersionGte(until, emberVersion = numEmberVersion) {\n  let significantUntil = until.replace(/(\\.0+)/g, '');\n  return emberVersion >= parseFloat(significantUntil);\n}\nfunction isRemoved(options) {\n  return emberVersionGte(options.until);\n}\nfunction deprecation(options) {\n  return {\n    options,\n    test: !isEnabled(options),\n    isEnabled: isEnabled(options) || isRemoved(options),\n    isRemoved: isRemoved(options)\n  };\n}\n\n/*\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 */\nconst DEPRECATIONS = {\n  DEPRECATE_IMPORT_EMBER(importName) {\n    return deprecation({\n      id: `deprecate-import-${dasherize(importName).toLowerCase()}-from-ember`,\n      for: 'ember-source',\n      since: {\n        available: '5.10.0',\n        enabled: '6.5.0'\n      },\n      until: '7.0.0',\n      url: `https://deprecations.emberjs.com/id/import-${dasherize(importName).toLowerCase()}-from-ember`\n    });\n  },\n  DEPRECATE_IMPORT_INJECT: deprecation({\n    for: 'ember-source',\n    id: 'importing-inject-from-ember-service',\n    since: {\n      available: '6.2.0',\n      enabled: '6.3.0'\n    },\n    until: '7.0.0',\n    url: 'https://deprecations.emberjs.com/id/importing-inject-from-ember-service'\n  }),\n  DEPRECATE_COMPARABLE_MIXIN: deprecation({\n    for: 'ember-source',\n    id: 'deprecate-comparable-mixin',\n    since: {\n      available: '7.2.0',\n      enabled: '7.2.0'\n    },\n    until: '7.5.0',\n    url: 'https://deprecations.emberjs.com/id/deprecate-comparable-mixin'\n  }),\n  DEPRECATE_TARGET_ACTION_SUPPORT: deprecation({\n    for: 'ember-source',\n    id: 'deprecate-target-action-support',\n    since: {\n      available: '7.3.0'\n    },\n    until: '8.0.0',\n    url: 'https://deprecations.emberjs.com/id/deprecate-target-action-support'\n  }),\n  DEPRECATE_EVENTED: deprecation({\n    id: 'deprecate-evented',\n    for: 'ember-source',\n    since: {\n      available: '7.3.0'\n    },\n    until: '8.0.0',\n    url: 'https://deprecations.emberjs.com/id/deprecate-evented'\n  }),\n  DEPRECATE_MIXINS: deprecation({\n    id: 'deprecate-mixins',\n    for: 'ember-source',\n    since: {\n      available: '7.4.0'\n    },\n    until: '8.0.0',\n    url: 'https://deprecations.emberjs.com/id/deprecate-mixins'\n  }),\n  DEPRECATE_ARRAY_PROXY: deprecation({\n    id: 'deprecate-array-proxy',\n    for: 'ember-source',\n    since: {\n      available: '7.4.0'\n    },\n    until: '8.0.0',\n    url: 'https://deprecations.emberjs.com/id/deprecate-array-proxy'\n  }),\n  DEPRECATE_OBJECT_PROXY: deprecation({\n    id: 'deprecate-object-proxy',\n    for: 'ember-source',\n    since: {\n      available: '7.4.0'\n    },\n    until: '8.0.0',\n    url: 'https://deprecations.emberjs.com/id/deprecate-object-proxy'\n  }),\n  DEPRECATE_PROMISE_PROXY_MIXIN: deprecation({\n    id: 'deprecate-promise-proxy-mixin',\n    for: 'ember-source',\n    since: {\n      available: '7.4.0'\n    },\n    until: '8.0.0',\n    url: 'https://deprecations.emberjs.com/id/deprecate-promise-proxy-mixin'\n  })\n};\nfunction deprecateUntil(message, deprecation) {\n  const {\n    options\n  } = deprecation;\n  if (deprecation.isRemoved) {\n    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.`);\n  }\n}\n\nexport { DEPRECATIONS, deprecateUntil, emberVersionGte, isRemoved };\n","export { E as ENV, g as getENV } from '../../../shared-chunks/env-DXxsTFkM.js';\n\nconst global = globalThis;\nconst Ember = global['Ember'];\n\n// legacy imports/exports/lookup stuff (should we keep this??)\nconst context = Ember === undefined ? {\n  imports: global,\n  exports: global,\n  lookup: global\n} : {\n  // import jQuery\n  imports: Ember.imports || global,\n  // export Ember\n  exports: Ember.exports || global,\n  // search for Namespaces\n  lookup: Ember.lookup || global\n};\nfunction getLookup() {\n  return context.lookup;\n}\nfunction setLookup(value) {\n  context.lookup = value;\n}\n\nexport { context, getLookup, setLookup };\n","export { t as template, a as templateCacheCounters } from '../../../shared-chunks/index-kwuZeaNz.js';\nexport { O as OutletView, R as Renderer, a as RootTemplate, s as setupApplicationRegistry, b as setupEngineRegistry } from '../../../shared-chunks/setup-registry-C7HGofi1.js';\nexport { I as Input, T as Textarea } from '../../../shared-chunks/textarea-D_2paF6I.js';\nexport { LinkTo } from '../../routing/index.js';\nexport { default as Component, setComponentManager } from '../../component/index.js';\nexport { default as Helper, helper } from '../../component/helper.js';\nexport { S as SafeString, T as TrustedHTML, h as htmlSafe, i as isHTMLSafe, a as isTrustedHTML, t as trustHTML } from '../../../shared-chunks/index-D-xTBV4B.js';\nexport { D as DOMChanges } from '../../../shared-chunks/render-C_iak8Db.js';\nexport { D as DOMTreeConstruction } from '../../../shared-chunks/api-B3M8aF1d.js';\nexport { i as isSerializationFirstNode } from '../../../shared-chunks/rehydrate-builder-B9bh-2Dy.js';\nexport { NodeDOMTreeConstruction } from '../../../@glimmer/node/index.js';\nexport { e as element } from '../../../shared-chunks/element-CZnh4CbF.js';\nexport { u as uniqueId } from '../../../shared-chunks/unique-id-DNqsbhfh.js';\nexport { _ as _resetRenderers, r as renderComponent, a as renderSettled } from '../../../shared-chunks/index-CZW6QzcF.js';\nexport { c as componentCapabilities, m as modifierCapabilities } from '../../../shared-chunks/api-CoUjEXgs.js';\n\n// STATE within a module is frowned upon, this exists\n// to support Ember.TEMPLATES but shield ember internals from this legacy\n// global API.\n\nlet TEMPLATES = {};\nfunction setTemplates(templates) {\n  TEMPLATES = templates;\n}\nfunction getTemplates() {\n  return TEMPLATES;\n}\nfunction getTemplate(name) {\n  if (Object.prototype.hasOwnProperty.call(TEMPLATES, name)) {\n    return TEMPLATES[name];\n  }\n}\nfunction hasTemplate(name) {\n  return Object.prototype.hasOwnProperty.call(TEMPLATES, name);\n}\nfunction setTemplate(name, template) {\n  return TEMPLATES[name] = template;\n}\n\nexport { getTemplate, getTemplates, hasTemplate, setTemplate, setTemplates };\n","const objectPrototype = Object.prototype;\nlet counters;\n\n/**\n@module ember\n*/\n\nconst UNDEFINED = Symbol('undefined');\nvar ListenerKind = /*#__PURE__*/function (ListenerKind) {\n  ListenerKind[ListenerKind[\"ADD\"] = 0] = \"ADD\";\n  ListenerKind[ListenerKind[\"ONCE\"] = 1] = \"ONCE\";\n  ListenerKind[ListenerKind[\"REMOVE\"] = 2] = \"REMOVE\";\n  return ListenerKind;\n}(ListenerKind || {});\nlet currentListenerVersion = 1;\nclass Meta {\n  /** @internal */\n  _descriptors;\n  /** @internal */\n  _mixins;\n  /** @internal */\n  _isInit;\n  /** @internal */\n  _lazyChains;\n  /** @internal */\n  _values;\n  /** @internal */\n  _revisions;\n  /** @internal */\n  source;\n  /** @internal */\n  proto;\n  /** @internal */\n  _parent;\n\n  /** @internal */\n  _listeners;\n  /** @internal */\n  _listenersVersion = 1;\n  /** @internal */\n  _inheritedEnd = -1;\n  /** @internal */\n  _flattenedVersion = 0;\n\n  // DEBUG\n  /** @internal */\n  constructor(obj) {\n    this._parent = undefined;\n    this._descriptors = undefined;\n    this._mixins = undefined;\n    this._lazyChains = undefined;\n    this._values = undefined;\n    this._revisions = undefined;\n\n    // initial value for all flags right now is false\n    // see FLAGS const for detailed list of flags used\n    this._isInit = false;\n\n    // used only internally\n    this.source = obj;\n    this.proto = obj.constructor === undefined ? undefined : obj.constructor.prototype;\n    this._listeners = undefined;\n  }\n\n  /** @internal */\n  get parent() {\n    let parent = this._parent;\n    if (parent === undefined) {\n      let proto = getPrototypeOf(this.source);\n      this._parent = parent = proto === null || proto === objectPrototype ? null : meta(proto);\n    }\n    return parent;\n  }\n  setInitializing() {\n    this._isInit = true;\n  }\n\n  /** @internal */\n  unsetInitializing() {\n    this._isInit = false;\n  }\n\n  /** @internal */\n  isInitializing() {\n    return this._isInit;\n  }\n\n  /** @internal */\n  isPrototypeMeta(obj) {\n    return this.proto === this.source && this.source === obj;\n  }\n\n  /** @internal */\n  _getOrCreateOwnMap(key) {\n    return this[key] || (this[key] = Object.create(null));\n  }\n\n  /** @internal */\n  _getOrCreateOwnSet(key) {\n    return this[key] || (this[key] = new Set());\n  }\n\n  /** @internal */\n  _findInheritedMap(key, subkey) {\n    let pointer = this;\n    while (pointer !== null) {\n      let map = pointer[key];\n      if (map !== undefined) {\n        let value = map.get(subkey);\n        if (value !== undefined) {\n          return value;\n        }\n      }\n      pointer = pointer.parent;\n    }\n  }\n\n  /** @internal */\n  _hasInInheritedSet(key, value) {\n    let pointer = this;\n    while (pointer !== null) {\n      let set = pointer[key];\n      if (set !== undefined && set.has(value)) {\n        return true;\n      }\n      pointer = pointer.parent;\n    }\n    return false;\n  }\n\n  /** @internal */\n  valueFor(key) {\n    let values = this._values;\n    return values !== undefined ? values[key] : undefined;\n  }\n\n  /** @internal */\n  setValueFor(key, value) {\n    let values = this._getOrCreateOwnMap('_values');\n    values[key] = value;\n  }\n\n  /** @internal */\n  revisionFor(key) {\n    let revisions = this._revisions;\n    return revisions !== undefined ? revisions[key] : undefined;\n  }\n\n  /** @internal */\n  setRevisionFor(key, revision) {\n    let revisions = this._getOrCreateOwnMap('_revisions');\n    revisions[key] = revision;\n  }\n\n  /** @internal */\n  writableLazyChainsFor(key) {\n    let lazyChains = this._getOrCreateOwnMap('_lazyChains');\n    let chains = lazyChains[key];\n    if (chains === undefined) {\n      chains = lazyChains[key] = [];\n    }\n    return chains;\n  }\n\n  /** @internal */\n  readableLazyChainsFor(key) {\n    let lazyChains = this._lazyChains;\n    if (lazyChains !== undefined) {\n      return lazyChains[key];\n    }\n    return undefined;\n  }\n\n  /** @internal */\n  addMixin(mixin) {\n    let set = this._getOrCreateOwnSet('_mixins');\n    set.add(mixin);\n  }\n\n  /** @internal */\n  hasMixin(mixin) {\n    return this._hasInInheritedSet('_mixins', mixin);\n  }\n\n  /** @internal */\n  forEachMixins(fn) {\n    let pointer = this;\n    let seen;\n    while (pointer !== null) {\n      let set = pointer._mixins;\n      if (set !== undefined) {\n        seen = seen === undefined ? new Set() : seen;\n        // TODO cleanup typing here\n        set.forEach(mixin => {\n          if (!seen.has(mixin)) {\n            seen.add(mixin);\n            fn(mixin);\n          }\n        });\n      }\n      pointer = pointer.parent;\n    }\n  }\n\n  /** @internal */\n  writeDescriptors(subkey, value) {\n    let map = this._descriptors || (this._descriptors = new Map());\n    map.set(subkey, value);\n  }\n\n  /** @internal */\n  peekDescriptors(subkey) {\n    let possibleDesc = this._findInheritedMap('_descriptors', subkey);\n    return possibleDesc === UNDEFINED ? undefined : possibleDesc;\n  }\n\n  /** @internal */\n  removeDescriptors(subkey) {\n    this.writeDescriptors(subkey, UNDEFINED);\n  }\n\n  /** @internal */\n  forEachDescriptors(fn) {\n    let pointer = this;\n    let seen;\n    while (pointer !== null) {\n      let map = pointer._descriptors;\n      if (map !== undefined) {\n        seen = seen === undefined ? new Set() : seen;\n        map.forEach((value, key) => {\n          if (!seen.has(key)) {\n            seen.add(key);\n            if (value !== UNDEFINED) {\n              fn(key, value);\n            }\n          }\n        });\n      }\n      pointer = pointer.parent;\n    }\n  }\n\n  /** @internal */\n  addToListeners(eventName, target, method, once, sync) {\n    this.pushListener(eventName, target, method, once ? ListenerKind.ONCE : ListenerKind.ADD, sync);\n  }\n\n  /** @internal */\n  removeFromListeners(eventName, target, method) {\n    this.pushListener(eventName, target, method, ListenerKind.REMOVE);\n  }\n  pushListener(event, target, method, kind, sync = false) {\n    let listeners = this.writableListeners();\n    let i = indexOfListener(listeners, event, target, method);\n\n    // remove if found listener was inherited\n    if (i !== -1 && i < this._inheritedEnd) {\n      listeners.splice(i, 1);\n      this._inheritedEnd--;\n      i = -1;\n    }\n\n    // if not found, push. Note that we must always push if a listener is not\n    // found, even in the case of a function listener remove, because we may be\n    // attempting to add or remove listeners _before_ flattening has occurred.\n    if (i === -1) {\n      listeners.push({\n        event,\n        target,\n        method,\n        kind,\n        sync\n      });\n    } else {\n      let listener = listeners[i];\n      // want to splice it out entirely so we don't hold onto a reference.\n      if (kind === ListenerKind.REMOVE && listener.kind !== ListenerKind.REMOVE) {\n        listeners.splice(i, 1);\n      } else {\n        listener.kind = kind;\n        listener.sync = sync;\n      }\n    }\n  }\n  writableListeners() {\n    // Check if we need to invalidate and reflatten. We need to do this if we\n    // have already flattened (flattened version is the current version) and\n    // we are either writing to a prototype meta OR we have never inherited, and\n    // may have cached the parent's listeners.\n    if (this._flattenedVersion === currentListenerVersion && (this.source === this.proto || this._inheritedEnd === -1)) {\n      currentListenerVersion++;\n    }\n\n    // Inherited end has not been set, then we have never created our own\n    // listeners, but may have cached the parent's\n    if (this._inheritedEnd === -1) {\n      this._inheritedEnd = 0;\n      this._listeners = [];\n    }\n    return this._listeners;\n  }\n\n  /**\n    Flattening is based on a global revision counter. If the revision has\n    bumped it means that somewhere in a class inheritance chain something has\n    changed, so we need to reflatten everything. This can only happen if:\n     1. A meta has been flattened (listener has been called)\n    2. The meta is a prototype meta with children who have inherited its\n       listeners\n    3. A new listener is subsequently added to the meta (e.g. via `.reopen()`)\n     This is a very rare occurrence, so while the counter is global it shouldn't\n    be updated very often in practice.\n  */\n  flattenedListeners() {\n    if (this._flattenedVersion < currentListenerVersion) {\n      let parent = this.parent;\n      if (parent !== null) {\n        // compute\n        let parentListeners = parent.flattenedListeners();\n        if (parentListeners !== undefined) {\n          if (this._listeners === undefined) {\n            this._listeners = parentListeners;\n          } else {\n            let listeners = this._listeners;\n            if (this._inheritedEnd > 0) {\n              listeners.splice(0, this._inheritedEnd);\n              this._inheritedEnd = 0;\n            }\n            for (let listener of parentListeners) {\n              let index = indexOfListener(listeners, listener.event, listener.target, listener.method);\n              if (index === -1) {\n                listeners.unshift(listener);\n                this._inheritedEnd++;\n              }\n            }\n          }\n        }\n      }\n      this._flattenedVersion = currentListenerVersion;\n    }\n    return this._listeners;\n  }\n\n  /** @internal */\n  matchingListeners(eventName) {\n    let listeners = this.flattenedListeners();\n    let result;\n    if (listeners !== undefined) {\n      for (let listener of listeners) {\n        // REMOVE listeners are placeholders that tell us not to\n        // inherit, so they never match. Only ADD and ONCE can match.\n        if (listener.event === eventName && (listener.kind === ListenerKind.ADD || listener.kind === ListenerKind.ONCE)) {\n          if (result === undefined) {\n            // we create this array only after we've found a listener that\n            // matches to avoid allocations when no matches are found.\n            result = [];\n          }\n          result.push(listener.target, listener.method, listener.kind === ListenerKind.ONCE);\n        }\n      }\n    }\n    return result;\n  }\n\n  /** @internal */\n  observerEvents() {\n    let listeners = this.flattenedListeners();\n    let result;\n    if (listeners !== undefined) {\n      for (let listener of listeners) {\n        // REMOVE listeners are placeholders that tell us not to\n        // inherit, so they never match. Only ADD and ONCE can match.\n        if ((listener.kind === ListenerKind.ADD || listener.kind === ListenerKind.ONCE) && listener.event.indexOf(':change') !== -1) {\n          if (result === undefined) {\n            // we create this array only after we've found a listener that\n            // matches to avoid allocations when no matches are found.\n            result = [];\n          }\n          result.push(listener);\n        }\n      }\n    }\n    return result;\n  }\n}\nconst getPrototypeOf = Object.getPrototypeOf;\nconst metaStore = new WeakMap();\nfunction setMeta(obj, meta) {\n  metaStore.set(obj, meta);\n}\nfunction peekMeta(obj) {\n  let meta = metaStore.get(obj);\n  if (meta !== undefined) {\n    return meta;\n  }\n  let pointer = getPrototypeOf(obj);\n  while (pointer !== null) {\n    meta = metaStore.get(pointer);\n    if (meta !== undefined) {\n      if (meta.proto !== pointer) {\n        // The meta was a prototype meta which was not marked as initializing.\n        // This can happen when a prototype chain was created manually via\n        // Object.create() and the source object does not have a constructor.\n        meta.proto = pointer;\n      }\n      return meta;\n    }\n    pointer = getPrototypeOf(pointer);\n  }\n  return null;\n}\n\n/**\n  Retrieves the meta hash for an object. If `writable` is true ensures the\n  hash is writable for this object as well.\n\n  The meta object contains information about computed property descriptors as\n  well as any watched properties and other information. You generally will\n  not access this information directly but instead work with higher level\n  methods that manipulate this hash indirectly.\n\n  @method meta\n  @for Ember\n  @private\n\n  @param {Object} obj The object to retrieve meta for\n  @param {Boolean} [writable=true] Pass `false` if you do not intend to modify\n    the meta hash, allowing the method to avoid making an unnecessary copy.\n  @return {Object} the meta hash for an object\n*/\nconst meta = function meta(obj) {\n  let maybeMeta = peekMeta(obj);\n\n  // remove this code, in-favor of explicit parent\n  if (maybeMeta !== null && maybeMeta.source === obj) {\n    return maybeMeta;\n  }\n  let newMeta = new Meta(obj);\n  setMeta(obj, newMeta);\n  return newMeta;\n};\nfunction indexOfListener(listeners, event, target, method) {\n  for (let i = listeners.length - 1; i >= 0; i--) {\n    let listener = listeners[i];\n    if (listener.event === event && listener.target === target && listener.method === method) {\n      return i;\n    }\n  }\n  return -1;\n}\n\nexport { Meta, UNDEFINED, counters, meta, peekMeta, setMeta };\n","import VERSION from '../ember/version.js';\nimport './property_get-DuDs6rLg.js';\n\n/**\n @module ember\n*/\n/**\n  Helper class that allows you to register your library with Ember.\n\n  Singleton created at `Ember.libraries`.\n\n  @class Libraries\n  @constructor\n  @private\n*/\nclass Libraries {\n  _registry;\n  _coreLibIndex;\n  constructor() {\n    this._registry = [];\n    this._coreLibIndex = 0;\n  }\n  _getLibraryByName(name) {\n    let libs = this._registry;\n    for (let lib of libs) {\n      if (lib.name === name) {\n        return lib;\n      }\n    }\n    return undefined;\n  }\n  register(name, version, isCoreLibrary) {\n    let index = this._registry.length;\n    if (!this._getLibraryByName(name)) {\n      if (isCoreLibrary) {\n        index = this._coreLibIndex++;\n      }\n      this._registry.splice(index, 0, {\n        name,\n        version\n      });\n    }\n  }\n  registerCoreLibrary(name, version) {\n    this.register(name, version, true);\n  }\n  deRegister(name) {\n    let lib = this._getLibraryByName(name);\n    let index;\n    if (lib) {\n      index = this._registry.indexOf(lib);\n      this._registry.splice(index, 1);\n    }\n  }\n}\nconst LIBRARIES = new Libraries();\nLIBRARIES.registerCoreLibrary('Ember', VERSION);\n\nexport { Libraries as L, LIBRARIES as a };\n","export { C as ComputedProperty, P as PROPERTY_DID_CHANGE, g as autoComputed, b as beginPropertyChanges, f as changeProperties, c as computed, h as defineDecorator, d as defineProperty, i as defineValue, a as endPropertyChanges, e as expandProperties, j as isComputed, n as notifyPropertyChange } from '../../../shared-chunks/computed-ZvOk7SJQ.js';\nexport { g as getCachedValueFor } from '../../../shared-chunks/computed_cache-DmYKevAP.js';\nexport { a as alias } from '../../../shared-chunks/alias-DvgufSYq.js';\nimport { g as get } from '../../../shared-chunks/property_get-DuDs6rLg.js';\nexport { P as PROXY_CONTENT, _ as _getPath, a as _getProp, h as hasUnknownProperty } from '../../../shared-chunks/property_get-DuDs6rLg.js';\nimport { s as set } from '../../../shared-chunks/property_set-CVmdjPdh.js';\nexport { _ as _setProp, t as trySet } from '../../../shared-chunks/property_set-CVmdjPdh.js';\nexport { c as addArrayObserver, b as arrayContentDidChange, a as arrayContentWillChange, d as removeArrayObserver, r as replace, e as replaceInNativeArray } from '../../../shared-chunks/array-CK__rqeu.js';\nexport { a as addListener, h as hasListeners, o as on, r as removeListener, s as sendEvent } from '../../../shared-chunks/events-3Q5Qvo6Q.js';\nexport { b as ComputedDescriptor, a as descriptorForDecorator, d as descriptorForProperty, c as isClassicDecorator, i as isElementDescriptor, m as makeComputedDecorator, n as nativeDescDecorator, s as setClassicDecorator } from '../../../shared-chunks/decorator-DcvVDSJV.js';\nexport { L as Libraries, a as libraries } from '../../../shared-chunks/libraries-Dx5DiBJv.js';\nexport { g as getProperties } from '../../../shared-chunks/get_properties-CkJ_mhLz.js';\nexport { s as setProperties } from '../../../shared-chunks/set_properties-BObIgkE-.js';\nexport { A as ASYNC_OBSERVERS, S as SYNC_OBSERVERS, a as activateObserver, b as addObserver, f as flushAsyncObservers, r as removeObserver, c as revalidateObservers } from '../../../shared-chunks/observers-B1wiwQeH.js';\nexport { D as DEBUG_INJECTION_FUNCTIONS, i as inject } from '../../../shared-chunks/injected_property-4vB_6fM8.js';\nexport { m as markObjectAsDirty, o as objectAt, t as tagForObject, a as tagForProperty } from '../../../shared-chunks/chain-tags-BlsXEpE-.js';\nexport { T as TrackedDescriptor, t as tracked } from '../../../shared-chunks/tracked-CR6xx3iR.js';\nexport { cached } from '../../../@glimmer/tracking/index.js';\nexport { e as createCache, g as getValue, i as isConst } from '../../../shared-chunks/cache-CofLhaS4.js';\nexport { N as NAMESPACES, a as NAMESPACES_BY_ID, b as addNamespace, f as findNamespace, c as findNamespaces, i as isNamespaceSearchDisabled, p as processAllNamespaces, d as processNamespace, r as removeNamespace, s as setNamespaceSearchDisabled, e as setUnprocessedMixins } from '../../../shared-chunks/namespace_search-TFdmjK_a.js';\n\n/**\n@module ember\n*/\n\n\n/**\n  Used internally to allow changing properties in a backwards compatible way, and print a helpful\n  deprecation warning.\n\n  @method deprecateProperty\n  @param {Object} object The object to add the deprecated property to.\n  @param {String} deprecatedKey The property to add (and print deprecation warnings upon accessing).\n  @param {String} newKey The property that will be aliased.\n  @private\n  @since 1.7.0\n*/\n\nfunction deprecateProperty(object, deprecatedKey, newKey, options) {\n  Object.defineProperty(object, deprecatedKey, {\n    configurable: true,\n    enumerable: false,\n    set(value) {\n      set(this, newKey, value);\n    },\n    get() {\n      return get(this, newKey);\n    }\n  });\n}\n\nconst EACH_PROXIES = new WeakMap();\nfunction eachProxyArrayWillChange(array, idx, removedCnt, addedCnt) {\n  let eachProxy = EACH_PROXIES.get(array);\n  if (eachProxy !== undefined) {\n    eachProxy.arrayWillChange(array, idx, removedCnt, addedCnt);\n  }\n}\nfunction eachProxyArrayDidChange(array, idx, removedCnt, addedCnt) {\n  let eachProxy = EACH_PROXIES.get(array);\n  if (eachProxy !== undefined) {\n    eachProxy.arrayDidChange(array, idx, removedCnt, addedCnt);\n  }\n}\n\nexport { deprecateProperty, eachProxyArrayDidChange, eachProxyArrayWillChange, get, set };\n","import { getOwner as getOwner$1, setOwner as setOwner$1 } from '../../../@glimmer/owner/index.js';\n\n/**\n  @module @ember/owner\n */\n\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\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 */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\n\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\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\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\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\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\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\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\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\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\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\n/**\n  @private\n  @method isFactory\n  @param {Object} obj\n  @return {Boolean}\n  @static\n */\nfunction isFactory(obj) {\n  return obj != null && typeof obj.create === 'function';\n}\n\n// 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(object) {\n  // SAFETY: this is a convention. From the glimmer perspective, the owner really can be any object.\n  return getOwner$1(object);\n}\n\n/**\n  `setOwner` forces a new owner on a given object instance. This is primarily\n  useful in some testing cases.\n\n  @method setOwner\n  @static\n  @for @ember/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*/\nfunction setOwner(object, owner) {\n  setOwner$1(object, owner);\n}\n\n// 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\n/**\n * @class RegistryProxy\n * @extends BasicRegistry\n * @private\n * @for @ember/owner\n */\n\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 */\n\nexport { getOwner, isFactory, setOwner };\n","import { c as configure, o as on, R as RSVP } from '../../../../../shared-chunks/rsvp-aLN_pQtn.js';\nimport { _backburner, _rsvpErrorQueue } from '../../../../runloop/index.js';\nimport { getDispatchOverride } from '../../../error-handling/index.js';\n\nconfigure('async', (callback, promise) => {\n  _backburner.schedule('actions', null, callback, promise);\n});\nconfigure('after', cb => {\n  _backburner.schedule(_rsvpErrorQueue, null, cb);\n});\non('error', onerrorDefault);\nfunction onerrorDefault(reason) {\n  let error = errorFor(reason);\n  if (error) {\n    let overrideDispatch = getDispatchOverride();\n    if (overrideDispatch) {\n      overrideDispatch(error);\n    } else {\n      throw error;\n    }\n  }\n}\nfunction errorFor(reason) {\n  if (!reason) return;\n  let withErrorThrown = reason;\n  if (withErrorThrown.errorThrown) {\n    return unwrapErrorThrown(withErrorThrown);\n  }\n  let withName = reason;\n  if (withName.name === 'UnrecognizedURLError') {\n    return;\n  }\n  if (reason.name === 'TransitionAborted') {\n    return;\n  }\n  return reason;\n}\nfunction unwrapErrorThrown(reason) {\n  let error = reason.errorThrown;\n  if (typeof error === 'string') {\n    error = new Error(error);\n  }\n  Object.defineProperty(error, '__reason_with_error_thrown__', {\n    value: reason,\n    enumerable: false\n  });\n  return error;\n}\n\nexport { RSVP as default, onerrorDefault };\n","import { meta } from '../../../meta/lib/meta.js';\nimport { M as Mixin, I as INTERNAL_MIXIN_CREATE } from '../../../../../shared-chunks/mixin-AGmJaAAY.js';\nimport { g as get } from '../../../../../shared-chunks/property_get-DuDs6rLg.js';\nimport { s as set } from '../../../../../shared-chunks/property_set-CVmdjPdh.js';\nimport { d as defineProperty, c as computed } from '../../../../../shared-chunks/computed-ZvOk7SJQ.js';\nimport { t as tagForObject, a as tagForProperty } from '../../../../../shared-chunks/chain-tags-BlsXEpE-.js';\nimport { s as setProxy } from '../../../../../shared-chunks/is_proxy-Bzg0d4m4.js';\nimport { i as isObject } from '../../../../../shared-chunks/spec-BXl1reqK.js';\nimport { s as setCustomTagFor } from '../../../../../shared-chunks/args-proxy-BHODnDyt.js';\nimport { U as UPDATE_TAG, d as combine } from '../../../../../shared-chunks/cache-CofLhaS4.js';\nimport { a as tagMetaFor, t as tagFor } from '../../../../../shared-chunks/meta-BJtIZDir.js';\n\n/**\n@module ember\n*/\n\nfunction contentFor(proxy) {\n  let content = get(proxy, 'content');\n  // 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.\n  UPDATE_TAG(tagForObject(proxy), tagForObject(content));\n  return content;\n}\nfunction customTagForProxy(proxy, key, addMandatorySetter) {\n  let meta = tagMetaFor(proxy);\n  let tag = tagFor(proxy, key, meta);\n  if (key in proxy) {\n    return tag;\n  } else {\n    let tags = [tag, tagFor(proxy, 'content', meta)];\n    let content = contentFor(proxy);\n    if (isObject(content)) {\n      tags.push(tagForProperty(content, key, addMandatorySetter));\n    }\n    return combine(tags);\n  }\n}\n\n/**\n  `ProxyMixin` forwards all properties not defined by the proxy itself\n  to a proxied `content` object.  See ObjectProxy for more details.\n\n  @class ProxyMixin\n  @namespace Ember\n  @private\n*/\n\nconst ProxyMixin = /*@__PURE__*/Mixin[INTERNAL_MIXIN_CREATE]({\n  /**\n    The object whose properties will be forwarded.\n     @property content\n    @type {unknown}\n    @default null\n    @public\n  */\n  content: null,\n  init() {\n    this._super(...arguments);\n    setProxy(this);\n    tagForObject(this);\n    setCustomTagFor(this, customTagForProxy);\n  },\n  willDestroy() {\n    this.set('content', null);\n    this._super(...arguments);\n  },\n  isTruthy: computed('content', function () {\n    return Boolean(get(this, 'content'));\n  }),\n  unknownProperty(key) {\n    let content = contentFor(this);\n    return content ? get(content, key) : undefined;\n  },\n  setUnknownProperty(key, value) {\n    let m = meta(this);\n    if (m.isInitializing() || m.isPrototypeMeta(this)) {\n      // if marked as prototype or object is initializing then just\n      // defineProperty rather than delegate\n      defineProperty(this, key, null, value);\n      return value;\n    }\n    let content = contentFor(this);\n    return set(content, key, value);\n  }\n});\n\nexport { contentFor, ProxyMixin as default };\n","import { M as Mixin, I as INTERNAL_MIXIN_CREATE } from '../../../../../shared-chunks/mixin-AGmJaAAY.js';\nimport { g as get } from '../../../../../shared-chunks/property_get-DuDs6rLg.js';\nimport { deprecateUntil, DEPRECATIONS } from '../../../deprecations/index.js';\n\n/**\n@module ember\n*/\n\n\n/**\n  `ActionHandler` is available on some familiar classes including\n  `Route`, `Component`, and `Controller`.\n  (Internally the mixin is used by `CoreView`, `ControllerMixin`,\n  and `Route` and available to the above classes through\n  inheritance.)\n\n  @class ActionHandler\n  @namespace Ember\n  @private\n*/\n\nconst ActionHandler = Mixin[INTERNAL_MIXIN_CREATE]({\n  mergedProperties: ['actions'],\n  /**\n    The collection of functions, keyed by name, available on this\n    `ActionHandler` as action targets.\n     These functions will be invoked when a matching `{{action}}` is triggered\n    from within a template and the application's current route is this route.\n     Actions can also be invoked from other parts of your application\n    via `ActionHandler#send`.\n     The `actions` hash will inherit action handlers from\n    the `actions` hash defined on extended parent classes\n    or mixins rather than just replace the entire hash, e.g.:\n     ```app/mixins/can-display-banner.js\n    import Mixin from '@ember/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    @deprecated Use the `@action` decorator instead.\n    @type Object\n    @default null\n    @public\n  */\n\n  /**\n    Triggers a named action on the `ActionHandler`. Any parameters\n    supplied after the `actionName` string will be passed as arguments\n    to the action target function.\n     If the `ActionHandler` has its `target` property set, actions may\n    bubble to the `target`. Bubbling happens when an `actionName` can\n    not be found in the `ActionHandler`'s `actions` hash or if the\n    action target function returns `true`.\n     Example\n     ```app/routes/welcome.js\n    import Route from '@ember/routing/route';\n     export default Route.extend({\n      actions: {\n        playTheme() {\n          this.send('playMusic', 'theme.mp3');\n        },\n        playMusic(track) {\n          // ...\n        }\n      }\n    });\n    ```\n     @method send\n    @deprecated Use direct method calls instead.\n    @param {String} actionName The action to trigger\n    @param {*} context a context to send with the action\n    @public\n  */\n  send(actionName, ...args) {\n    deprecateUntil(`Calling \\`.send()\\` on ${this} is deprecated. Invoke the corresponding method directly.`, DEPRECATIONS.DEPRECATE_TARGET_ACTION_SUPPORT);\n    if (this.actions && this.actions[actionName]) {\n      let shouldBubble = this.actions[actionName].apply(this, args) === true;\n      if (!shouldBubble) {\n        return;\n      }\n    }\n    let target = get(this, 'target');\n    if (target) {\n      target.send(...arguments);\n    }\n  }\n});\n\nexport { ActionHandler as default };\n","import { M as Mixin, I as INTERNAL_MIXIN_CREATE } from '../../../../../shared-chunks/mixin-AGmJaAAY.js';\nimport { deprecateUntil, DEPRECATIONS } from '../../../deprecations/index.js';\n\n/**\n@module ember\n*/\n\n/**\n  Implements some standard methods for comparing objects. Add this mixin to\n  any class you create that can compare its instances.\n\n  You should implement the `compare()` method.\n\n  @class Comparable\n  @namespace Ember\n  @since Ember 0.9\n  @private\n*/\n\nconst Comparable = Mixin[INTERNAL_MIXIN_CREATE]({\n  /**\n    __Required.__ You must implement this method to apply this mixin.\n     Override to return the result of the comparison of the two parameters. The\n    compare method should return:\n     - `-1` if `a < b`\n    - `0` if `a == b`\n    - `1` if `a > b`\n     Default implementation raises an exception.\n     @method compare\n    @param a {Object} the first object to compare\n    @param b {Object} the second object to compare\n    @return {Number} the result of the comparison\n    @private\n  */\n  init() {\n    this._super(...arguments);\n    deprecateUntil('The `Comparable` mixin is deprecated. Implement a `compare` method directly on your class instead.', DEPRECATIONS.DEPRECATE_COMPARABLE_MIXIN);\n  },\n  compare: null\n});\n\nexport { Comparable as default };\n","import { join, schedule } from '../../../../runloop/index.js';\nimport { M as Mixin, I as INTERNAL_MIXIN_CREATE } from '../../../../../shared-chunks/mixin-AGmJaAAY.js';\n\n// 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/**\n  ContainerProxyMixin is used to provide public access to specific\n  container functionality.\n\n  @class ContainerProxyMixin\n  @extends ContainerProxy\n  @private\n*/\n\nconst ContainerProxyMixin = Mixin[INTERNAL_MIXIN_CREATE]({\n  /**\n   The container stores state.\n    @private\n   @property {Ember.Container} __container__\n   */\n  __container__: null,\n  ownerInjection() {\n    return this.__container__.ownerInjection();\n  },\n  lookup(fullName, options) {\n    return this.__container__.lookup(fullName, options);\n  },\n  destroy() {\n    let container = this.__container__;\n    if (container) {\n      join(() => {\n        container.destroy();\n        schedule('destroy', container, 'finalizeDestroy');\n      });\n    }\n    this._super();\n  },\n  factoryFor(fullName) {\n    return this.__container__.factoryFor(fullName);\n  }\n});\n\nexport { ContainerProxyMixin as default };\n","import { M as Mixin, I as INTERNAL_MIXIN_CREATE } from '../../../../../shared-chunks/mixin-AGmJaAAY.js';\n\n/**\n@module ember\n*/\n\n\n/**\n  RegistryProxyMixin is used to provide public access to specific\n  registry functionality.\n\n  @class RegistryProxyMixin\n  @extends RegistryProxy\n  @private\n*/\n\nconst RegistryProxyMixin = Mixin[INTERNAL_MIXIN_CREATE]({\n  __registry__: null,\n  resolveRegistration(fullName) {\n    return this.__registry__.resolve(fullName);\n  },\n  register: registryAlias('register'),\n  unregister: registryAlias('unregister'),\n  hasRegistration: registryAlias('has'),\n  registeredOption: registryAlias('getOption'),\n  registerOptions: registryAlias('options'),\n  registeredOptions: registryAlias('getOptions'),\n  registerOptionsForType: registryAlias('optionsForType'),\n  registeredOptionsForType: registryAlias('getOptionsForType')\n});\nfunction registryAlias(name) {\n  return function (...args) {\n    // 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).\n    return this.__registry__[name](...args);\n  };\n}\n\nexport { RegistryProxyMixin as default };\n","import { context } from '../../../environment/index.js';\nimport { g as get } from '../../../../../shared-chunks/property_get-DuDs6rLg.js';\nimport { c as computed } from '../../../../../shared-chunks/computed-ZvOk7SJQ.js';\nimport { M as Mixin, I as INTERNAL_MIXIN_CREATE } from '../../../../../shared-chunks/mixin-AGmJaAAY.js';\nimport { deprecateUntil, DEPRECATIONS } from '../../../deprecations/index.js';\n\n/**\n@module ember\n*/\n\n\n/**\n`TargetActionSupport` is a mixin that can be included in a class\nto add a `triggerAction` method with semantics similar to the\n`{{action}}` helper. In normal Ember usage, the `{{action}}` helper is\nusually the best choice. This mixin is most often useful when you are\ndoing more complex event handling in Components.\n\n@class TargetActionSupport\n@namespace Ember\n@extends Mixin\n@private\n*/\n\nconst TargetActionSupport = Mixin[INTERNAL_MIXIN_CREATE]({\n  target: null,\n  action: null,\n  actionContext: null,\n  actionContextObject: computed('actionContext', function () {\n    let actionContext = get(this, 'actionContext');\n    if (typeof actionContext === 'string') {\n      let value = get(this, actionContext);\n      if (value === undefined) {\n        value = get(context.lookup, actionContext);\n      }\n      return value;\n    } else {\n      return actionContext;\n    }\n  }),\n  /**\n  The following is private and vestigial.\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  @deprecated Use a direct method call or closure action instead.\n  @param opts {Object} (optional, with the optional keys action, target and/or actionContext)\n  @return {Boolean} true if the action was sent successfully and did not return false\n  @private\n  */\n  triggerAction(opts = {}) {\n    deprecateUntil(`Calling \\`triggerAction\\` on ${this} is deprecated. Invoke the target method directly.`, DEPRECATIONS.DEPRECATE_TARGET_ACTION_SUPPORT);\n    let {\n      action,\n      target,\n      actionContext\n    } = opts;\n    action = action || get(this, 'action');\n    target = target || getTarget(this);\n    if (actionContext === undefined) {\n      actionContext = get(this, 'actionContextObject') || this;\n    }\n    let context = Array.isArray(actionContext) ? actionContext : [actionContext];\n    if (target && action) {\n      let ret;\n      if (isSendable(target)) {\n        ret = target.send(action, ...context);\n      } else {\n        ret = target[action](...context);\n      }\n      if (ret !== false) {\n        return true;\n      }\n    }\n    return false;\n  }\n});\nfunction isSendable(obj) {\n  return obj != null && typeof obj === 'object' && typeof obj.send === 'function';\n}\nfunction getTarget(instance) {\n  let target = get(instance, 'target');\n  if (target) {\n    if (typeof target === 'string') {\n      let value = get(instance, target);\n      if (value === undefined) {\n        value = get(context.lookup, target);\n      }\n      return value;\n    } else {\n      return target;\n    }\n  }\n  if (instance._target) {\n    return instance._target;\n  }\n  return null;\n}\n\nexport { TargetActionSupport as default };\n","import { C as Cache } from '../../../shared-chunks/cache-qDyqAcpg.js';\n\n/*\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*/\n\nconst STRING_DASHERIZE_REGEXP = /[ _]/g;\nconst STRING_DASHERIZE_CACHE = new Cache(1000, key => decamelize(key).replace(STRING_DASHERIZE_REGEXP, '-'));\nconst STRING_CLASSIFY_REGEXP_1 = /^(-|_)+(.)?/;\nconst STRING_CLASSIFY_REGEXP_2 = /(.)(-|_|\\.|\\s)+(.)?/g;\nconst STRING_CLASSIFY_REGEXP_3 = /(^|\\/|\\.)([a-z])/g;\nconst CLASSIFY_CACHE = new Cache(1000, str => {\n  let replace1 = (_match, _separator, chr) => chr ? `_${chr.toUpperCase()}` : '';\n  let replace2 = (_match, initialChar, _separator, chr) => initialChar + (chr ? chr.toUpperCase() : '');\n  let 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});\nconst STRING_DECAMELIZE_REGEXP = /([a-z\\d])([A-Z])/g;\nconst DECAMELIZE_CACHE = new Cache(1000, str => str.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase());\n\n/**\n Defines string helper methods used internally in ember-source.\n\n @class String\n @private\n */\n\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 */\nfunction dasherize(str) {\n  return STRING_DASHERIZE_CACHE.get(str);\n}\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 @private\n */\nfunction classify(str) {\n  return CLASSIFY_CACHE.get(str);\n}\n\n/**\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 */\nfunction decamelize(str) {\n  return DECAMELIZE_CACHE.get(str);\n}\n\nexport { classify, dasherize };\n","// 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\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).\n\nclass Opaque {}\n\nexport { Opaque };\n","export { m as dictionary } from '../../../shared-chunks/dictionary-gc5gpyOG.js';\nexport { g as getDebugName } from '../../../shared-chunks/get-debug-name-BDxIL2Y1.js';\nexport { G as GUID_KEY, a as generateGuid, g as guidFor, u as uuid } from '../../../shared-chunks/guid-Cbq2sNV_.js';\nexport { i as intern } from '../../../shared-chunks/intern-zquhAEIg.js';\nexport { R as ROOT, c as checkHasSuper, o as observerListenerMetaFor, a as setListeners, s as setObservers, w as wrap } from '../../../shared-chunks/super-BBBjgF69.js';\nexport { l as lookupDescriptor } from '../../../shared-chunks/lookup-descriptor-CwcVgaLv.js';\nexport { g as getName, s as setName } from '../../../shared-chunks/name-Clp4Vsod.js';\nexport { i as isObject } from '../../../shared-chunks/spec-BXl1reqK.js';\nexport { i as isProxy, s as setProxy } from '../../../shared-chunks/is_proxy-Bzg0d4m4.js';\nexport { C as Cache } from '../../../shared-chunks/cache-qDyqAcpg.js';\n\nconst objectToString = Object.prototype.toString;\nfunction isNone(obj) {\n  return obj === null || obj === undefined;\n}\n\n/*\n A `toString` util function that supports objects without a `toString`\n method, e.g. an object created with `Object.create(null)`.\n*/\nfunction toString(obj) {\n  if (typeof obj === 'string') {\n    return obj;\n  }\n  if (null === obj) return 'null';\n  if (undefined === obj) return 'undefined';\n  if (Array.isArray(obj)) {\n    // Reimplement Array.prototype.join according to spec (22.1.3.13)\n    // Changing ToString(element) with this safe version of ToString.\n    let r = '';\n    for (let k = 0; k < obj.length; k++) {\n      if (k > 0) {\n        r += ',';\n      }\n      if (!isNone(obj[k])) {\n        r += toString(obj[k]);\n      }\n    }\n    return r;\n  }\n  if (typeof obj.toString === 'function') {\n    return obj.toString();\n  }\n  return objectToString.call(obj);\n}\n\nlet setupMandatorySetter;\nlet teardownMandatorySetter;\nlet setWithMandatorySetter;\n\n/**\n  Checks to see if the `methodName` exists on the `obj`.\n\n  ```javascript\n  let foo = { bar: function() { return 'bar'; }, baz: null };\n\n  Ember.canInvoke(foo, 'bar'); // true\n  Ember.canInvoke(foo, 'baz'); // false\n  Ember.canInvoke(foo, 'bat'); // false\n  ```\n\n  @method canInvoke\n  @for Ember\n  @param {Object} obj The object to check for the method\n  @param {String} methodName The method name to check for\n  @return {Boolean}\n  @private\n*/\nfunction canInvoke(obj, methodName) {\n  return obj != null && typeof obj[methodName] === 'function';\n}\n\n/**\n  @module @ember/utils\n*/\n\nexport { canInvoke, setWithMandatorySetter, setupMandatorySetter, teardownMandatorySetter, toString };\n","const MUTABLE_CELL = Symbol('MUTABLE_CELL');\n\nexport { MUTABLE_CELL };\n","import { g as get } from '../../../../../shared-chunks/property_get-DuDs6rLg.js';\nimport { M as Mixin, I as INTERNAL_MIXIN_CREATE } from '../../../../../shared-chunks/mixin-AGmJaAAY.js';\nimport { deprecateUntil, DEPRECATIONS } from '../../../deprecations/index.js';\n\n/**\n @module ember\n*/\n\n/**\n @class ActionSupport\n @namespace Ember\n @private\n*/\n\nconst ActionSupport = Mixin[INTERNAL_MIXIN_CREATE]({\n  send(actionName, ...args) {\n    deprecateUntil(`Calling \\`.send()\\` on ${this} is deprecated. Invoke the corresponding method directly.`, DEPRECATIONS.DEPRECATE_TARGET_ACTION_SUPPORT);\n    let action = this.actions && this.actions[actionName];\n    if (action) {\n      let shouldBubble = action.apply(this, args) === true;\n      if (!shouldBubble) {\n        return;\n      }\n    }\n    let target = get(this, 'target');\n    if (target) {\n      target.send(...arguments);\n    }\n  }\n});\n\nexport { ActionSupport as default };\n","import { g as get } from '../../../../../shared-chunks/property_get-DuDs6rLg.js';\nimport { s as set } from '../../../../../shared-chunks/property_set-CVmdjPdh.js';\nimport EmberObject from '../../../../object/index.js';\nimport { getElementView } from './utils.js';\n\n/**\n@module ember\n*/\n\nconst ROOT_ELEMENT_CLASS = 'ember-application';\n\n/**\n  `EventDispatcher` handles delegating browser events to their\n  corresponding `Ember.Views.` For example, when you click on a view,\n  `EventDispatcher` ensures that that view's `mouseDown` method gets\n  called.\n\n  @class EventDispatcher\n  @namespace Ember\n  @private\n  @extends EmberObject\n*/\nclass EventDispatcher extends EmberObject {\n  /**\n    The set of events names (and associated handler function names) to be setup\n    and dispatched by the `EventDispatcher`. Modifications to this list can be done\n    at setup time, generally via the `Application.customEvents` hash.\n     To add new events to be listened to:\n     ```javascript\n    import Application from '@ember/application';\n     let App = Application.create({\n      customEvents: {\n        paste: 'paste'\n      }\n    });\n    ```\n     To prevent default events from being listened to:\n     ```javascript\n    import Application from '@ember/application';\n     let App = Application.create({\n      customEvents: {\n        mouseenter: null,\n        mouseleave: null\n      }\n    });\n    ```\n    @property events\n    @type Object\n    @private\n  */\n  events = {\n    touchstart: 'touchStart',\n    touchmove: 'touchMove',\n    touchend: 'touchEnd',\n    touchcancel: 'touchCancel',\n    keydown: 'keyDown',\n    keyup: 'keyUp',\n    keypress: 'keyPress',\n    mousedown: 'mouseDown',\n    mouseup: 'mouseUp',\n    contextmenu: 'contextMenu',\n    click: 'click',\n    dblclick: 'doubleClick',\n    focusin: 'focusIn',\n    focusout: 'focusOut',\n    submit: 'submit',\n    input: 'input',\n    change: 'change',\n    dragstart: 'dragStart',\n    drag: 'drag',\n    dragenter: 'dragEnter',\n    dragleave: 'dragLeave',\n    dragover: 'dragOver',\n    drop: 'drop',\n    dragend: 'dragEnd'\n  };\n\n  /**\n    The root DOM element to which event listeners should be attached. Event\n    listeners will be attached to the document unless this is overridden.\n     Can be specified as a DOMElement or a selector string.\n     The default body is a string since this may be evaluated before document.body\n    exists in the DOM.\n     @private\n    @property rootElement\n    @type DOMElement\n    @default 'body'\n  */\n  rootElement = 'body';\n  _eventHandlers = Object.create(null);\n  _didSetup = false;\n  finalEventNameMapping = null;\n  _sanitizedRootElement = null;\n  lazyEvents = new Map();\n  _reverseEventNameMapping = null;\n\n  /**\n    Sets up event listeners for standard browser events.\n     This will be called after the browser sends a `DOMContentReady` event. By\n    default, it will set up all of the listeners on the document body. If you\n    would like to register the listeners on a different element, set the event\n    dispatcher's `root` property.\n     @private\n    @method setup\n    @param addedEvents {Object}\n  */\n  setup(addedEvents, _rootElement) {\n    let events = this.finalEventNameMapping = {\n      ...get(this, 'events'),\n      ...addedEvents\n    };\n    this._reverseEventNameMapping = Object.keys(events).reduce((result, key) => {\n      let eventName = events[key];\n      return eventName ? {\n        ...result,\n        [eventName]: key\n      } : result;\n    }, {});\n    let lazyEvents = this.lazyEvents;\n    if (_rootElement !== undefined && _rootElement !== null) {\n      set(this, 'rootElement', _rootElement);\n    }\n    let specifiedRootElement = get(this, 'rootElement');\n    let rootElement = typeof specifiedRootElement !== 'string' ? specifiedRootElement : document.querySelector(specifiedRootElement);\n    rootElement.classList.add(ROOT_ELEMENT_CLASS);\n    this._sanitizedRootElement = rootElement;\n\n    // setup event listeners for the non-lazily setup events\n    for (let event in events) {\n      if (Object.prototype.hasOwnProperty.call(events, event)) {\n        lazyEvents.set(event, events[event] ?? null);\n      }\n    }\n    this._didSetup = true;\n  }\n\n  /**\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  */\n  setupHandlerForBrowserEvent(event) {\n    this.setupHandler(this._sanitizedRootElement, event, this.finalEventNameMapping[event] ?? null);\n  }\n\n  /**\n    Setup event listeners for the given Ember event name (camel case)\n     @private\n    @method setupHandlerForEmberEvent\n    @param eventName\n  */\n  setupHandlerForEmberEvent(eventName) {\n    let event = this._reverseEventNameMapping?.[eventName];\n    if (event) {\n      this.setupHandler(this._sanitizedRootElement, event, eventName);\n    }\n  }\n\n  /**\n    Registers an event listener on the rootElement. If the given event is\n    triggered, the provided event handler will be triggered on the target view.\n     If the target view does not implement the event handler, or if the handler\n    returns `false`, the parent view will be called. The event will continue to\n    bubble to each successive parent view until it reaches the top.\n     @private\n    @method setupHandler\n    @param {Element} rootElement\n    @param {String} event the name of the event in the browser\n    @param {String} eventName the name of the method to call on the view\n  */\n  setupHandler(rootElement, event, eventName) {\n    if (eventName === null || !this.lazyEvents.has(event)) {\n      return; // nothing to do\n    }\n    let viewHandler = (target, event) => {\n      let view = getElementView(target);\n      let result = true;\n      if (view) {\n        // SAFETY: As currently written, this is not safe. Though it seems to always be true.\n        result = view.handleEvent(eventName, event);\n      }\n      return result;\n    };\n    let handleEvent = this._eventHandlers[event] = event => {\n      let target = event.target;\n      do {\n        if (getElementView(target)) {\n          if (viewHandler(target, event) === false) {\n            event.preventDefault();\n            event.stopPropagation();\n            break;\n          } else if (event.cancelBubble === true) {\n            break;\n          }\n        }\n        target = target.parentNode;\n      } while (target instanceof Element);\n    };\n    rootElement.addEventListener(event, handleEvent);\n    this.lazyEvents.delete(event);\n  }\n  destroy() {\n    if (this._didSetup === false) {\n      return;\n    }\n    let rootElement = this._sanitizedRootElement;\n    if (!rootElement) {\n      return;\n    }\n    for (let event in this._eventHandlers) {\n      rootElement.removeEventListener(event, this._eventHandlers[event]);\n    }\n    rootElement.classList.remove(ROOT_ELEMENT_CLASS);\n    return this._super(...arguments);\n  }\n  toString() {\n    return '(EventDispatcher)';\n  }\n}\n\nexport { EventDispatcher as default };\n","import { getOwner } from '../../../owner/index.js';\nimport { g as guidFor } from '../../../../../shared-chunks/guid-Cbq2sNV_.js';\n\n/**\n@module ember\n*/\n\nfunction isSimpleClick(event) {\n  if (!(event instanceof MouseEvent)) {\n    return false;\n  }\n  let modifier = event.shiftKey || event.metaKey || event.altKey || event.ctrlKey;\n  let secondaryClick = event.button !== 0;\n  return !modifier && !secondaryClick;\n}\nfunction constructStyleDeprecationMessage(affectedStyle) {\n  return '' + 'Binding style attributes may introduce cross-site scripting vulnerabilities; ' + 'please ensure that values being bound are properly escaped. For more information, ' + 'including how to disable this warning, see ' + 'https://deprecations.emberjs.com/v1.x/#toc_binding-style-attributes. ' + 'Style affected: \"' + affectedStyle + '\"';\n}\n\n/**\n  @private\n  @method getRootViews\n  @param {Object} owner\n*/\nfunction getRootViews(owner) {\n  let registry = owner.lookup('-view-registry:main');\n  let rootViews = [];\n  Object.keys(registry).forEach(id => {\n    let view = registry[id];\n    if (view.parentView === null) {\n      rootViews.push(view);\n    }\n  });\n  return rootViews;\n}\n\n/**\n  @private\n  @method getViewId\n  @param {Ember.View} view\n */\nfunction getViewId(view) {\n  if (view.tagName !== '' && view.elementId) {\n    return view.elementId;\n  } else {\n    return guidFor(view);\n  }\n}\nconst ELEMENT_VIEW = new WeakMap();\nconst VIEW_ELEMENT = new WeakMap();\nfunction getElementView(element) {\n  return ELEMENT_VIEW.get(element) || null;\n}\n\n/**\n  @private\n  @method getViewElement\n  @param {Ember.View} view\n */\nfunction getViewElement(view) {\n  return VIEW_ELEMENT.get(view) || null;\n}\nfunction setElementView(element, view) {\n  ELEMENT_VIEW.set(element, view);\n}\nfunction setViewElement(view, element) {\n  VIEW_ELEMENT.set(view, element);\n}\n\n// These are not needed for GC, but for correctness. We want to be able to\n// null-out these links while the objects are still live. Specifically, in\n// this case, we want to prevent access to the element (and vice verse) during\n// destruction.\n\nfunction clearElementView(element) {\n  ELEMENT_VIEW.delete(element);\n}\nfunction clearViewElement(view) {\n  VIEW_ELEMENT.delete(view);\n}\nconst CHILD_VIEW_IDS = new WeakMap();\n\n/**\n  @private\n  @method getChildViews\n  @param {Ember.View} view\n*/\nfunction getChildViews(view) {\n  let owner = getOwner(view);\n  let registry = owner.lookup('-view-registry:main');\n  return collectChildViews(view, registry);\n}\nfunction initChildViews(view) {\n  let childViews = new Set();\n  CHILD_VIEW_IDS.set(view, childViews);\n  return childViews;\n}\nfunction addChildView(parent, child) {\n  let childViews = CHILD_VIEW_IDS.get(parent);\n  if (childViews === undefined) {\n    childViews = initChildViews(parent);\n  }\n  childViews.add(getViewId(child));\n}\nfunction collectChildViews(view, registry) {\n  let views = [];\n  let childViews = CHILD_VIEW_IDS.get(view);\n  if (childViews !== undefined) {\n    childViews.forEach(id => {\n      let view = registry[id];\n      if (view && !view.isDestroying && !view.isDestroyed) {\n        views.push(view);\n      }\n    });\n  }\n  return views;\n}\n\n/**\n  @private\n  @method getViewBounds\n  @param {Ember.View} view\n*/\nfunction getViewBounds(view) {\n  return view.renderer.getBounds(view);\n}\n\n/**\n  @private\n  @method getViewRange\n  @param {Ember.View} view\n*/\nfunction getViewRange(view) {\n  let bounds = getViewBounds(view);\n  let range = document.createRange();\n  range.setStartBefore(bounds.firstNode);\n  range.setEndAfter(bounds.lastNode);\n  return range;\n}\n\n/**\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\n  @private\n  @method getViewClientRects\n  @param {Ember.View} view\n*/\nfunction getViewClientRects(view) {\n  let range = getViewRange(view);\n  return range.getClientRects();\n}\n\n/**\n  `getViewBoundingClientRect` provides information about the position of the\n  bounding border box edges of a view relative to the viewport.\n\n  It is only intended to be used by development tools like the Ember Inspector.\n\n  @private\n  @method getViewBoundingClientRect\n  @param {Ember.View} view\n*/\nfunction getViewBoundingClientRect(view) {\n  let range = getViewRange(view);\n  return range.getBoundingClientRect();\n}\n\nexport { addChildView, clearElementView, clearViewElement, constructStyleDeprecationMessage, getChildViews, getElementView, getRootViews, getViewBoundingClientRect, getViewBounds, getViewClientRects, getViewElement, getViewId, isSimpleClick, setElementView, setViewElement };\n","import { h as hasListeners, s as sendEvent } from '../../../../../shared-chunks/events-3Q5Qvo6Q.js';\n\nfunction sendCoreViewEvent(view, name, args = []) {\n  sendEvent(view, name, args);\n  let method = view[name];\n  if (typeof method === 'function') {\n    return method.apply(view, args);\n  }\n}\nfunction hasCoreViewListener(view, name) {\n  return typeof view[name] === 'function' || hasListeners(view, name);\n}\n\nexport { hasCoreViewListener, sendCoreViewEvent };\n","import { meta } from '../../../meta/lib/meta.js';\nimport { i as inject } from '../../../../../shared-chunks/injected_property-4vB_6fM8.js';\nimport { E as Evented, e as eventedOn, a as eventedOne, b as eventedTrigger, c as eventedOff, d as eventedHas } from '../../../../../shared-chunks/evented-DYsL5t87.js';\nimport ActionHandler from '../../../runtime/lib/mixins/action_handler.js';\nimport { FrameworkObject } from '../../../../object/-internals.js';\nimport states from './states.js';\nimport { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../../../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';\n\nclass CoreView extends FrameworkObject.extend(ActionHandler) {\n  static {\n    // The deprecated Evented mixin is no longer applied, but instances still\n    // provide its methods, so `Evented.detect` must keep returning true.\n    meta(this.prototype).addMixin(Evented);\n  }\n  isView = true;\n\n  /**\n    If the view is currently inserted into the DOM of a parent view, this\n    property will point to the parent of the view.\n     @property parentView\n    @type Ember.View\n    @default null\n    @private\n  */\n\n  init(properties) {\n    super.init(properties);\n    this.parentView ??= null;\n    this._state = 'preRender';\n    this._currentState = this._states.preRender;\n  }\n  static {\n    decorateFieldV2(this.prototype, \"renderer\", [inject('renderer', '-dom')]);\n  }\n  #renderer = (initializeDeferredDecorator(this, \"renderer\"), void 0);\n  instrumentDetails(hash) {\n    hash['object'] = this.toString();\n    hash['containerKey'] = this._debugContainerKey;\n    hash['view'] = this;\n    return hash;\n  }\n  on(name, target, method) {\n    eventedOn(this, name, target, method);\n    return this;\n  }\n  one(name, target, method) {\n    eventedOne(this, name, target, method);\n    return this;\n  }\n\n  /**\n    Override the default event firing from `Evented` to\n    also call methods with the given name.\n     @method trigger\n    @param name {String}\n    @private\n  */\n  trigger(name, ...args) {\n    eventedTrigger(this, name, args);\n    let method = this[name];\n    if (typeof method === 'function') {\n      return method.apply(this, args);\n    }\n  }\n  off(name, target, method) {\n    eventedOff(this, name, target, method);\n    return this;\n  }\n  has(name) {\n    return typeof this[name] === 'function' || eventedHas(this, name);\n  }\n  static isViewFactory = true;\n}\n\n// Declare on the prototype to have a single shared value.\nCoreView.prototype._states = states;\n\nexport { CoreView as default };\n","import { flaggedInstrument } from '../../../../instrumentation/index.js';\nimport { join } from '../../../../runloop/index.js';\nimport { hasCoreViewListener, sendCoreViewEvent } from './core-view-utils.js';\n\nconst DEFAULT = Object.freeze({\n  // appendChild is only legal while rendering the buffer.\n  appendChild() {\n    throw new Error(\"You can't use appendChild outside of the rendering process\");\n  },\n  // Handle events from `Ember.EventDispatcher`\n  handleEvent() {\n    return true; // continue event propagation\n  },\n  rerender() {},\n  destroy() {}\n});\nconst PRE_RENDER = Object.freeze({\n  ...DEFAULT\n});\nconst HAS_ELEMENT = Object.freeze({\n  ...DEFAULT,\n  rerender(view) {\n    view.renderer.rerender();\n  },\n  destroy(view) {\n    view.renderer.remove(view);\n  },\n  // Handle events from `Ember.EventDispatcher`\n  handleEvent(view, eventName, event) {\n    if (hasCoreViewListener(view, eventName)) {\n      // Handler should be able to re-dispatch events, so we don't\n      // preventDefault or stopPropagation.\n      return flaggedInstrument(`interaction.${eventName}`, {\n        }, () => {\n        return join(() => {\n          return sendCoreViewEvent(view, eventName, [event]);\n        });\n      });\n    } else {\n      return true; // continue event propagation\n    }\n  }\n});\nconst IN_DOM = Object.freeze({\n  ...HAS_ELEMENT,\n  enter(view) {\n    // Register the view for event handling. This hash is used by\n    // Ember.EventDispatcher to dispatch incoming events.\n    view.renderer.register(view);\n  }\n});\nconst DESTROYING = Object.freeze({\n  ...DEFAULT,\n  appendChild() {\n    throw new Error(\"You can't call appendChild on a view being destroyed\");\n  },\n  rerender() {\n    throw new Error(\"You can't call rerender on a view being destroyed\");\n  }\n});\n\n/*\n  Describe how the specified actions should behave in the various\n  states that a view can exist in. Possible states:\n\n  * preRender: when a view is first instantiated, and after its\n    element was destroyed, it is in the preRender state\n  * hasElement: the DOM representation of the view is created,\n    and is ready to be inserted\n  * inDOM: once a view has been inserted into the DOM it is in\n    the inDOM state. A view spends the vast majority of its\n    existence in this state.\n  * destroyed: once a view has been destroyed (using the destroy\n    method), it is in this state. No further actions can be invoked\n    on a destroyed view.\n*/\nconst states = Object.freeze({\n  preRender: PRE_RENDER,\n  inDOM: IN_DOM,\n  hasElement: HAS_ELEMENT,\n  destroying: DESTROYING\n});\n\nexport { states as default };\n","import { setOwner as setOwner$1 } from '../-internals/owner/index.js';\nimport { getOwner as getOwner$1 } from '../owner/index.js';\nimport { m as makeDictionary } from '../../shared-chunks/dictionary-gc5gpyOG.js';\nimport '../../shared-chunks/env-DXxsTFkM.js';\nimport { h as hasDOM } from '../../shared-chunks/has-dom-DdQORPzI.js';\nimport { assert } from '../debug/lib/assert.js';\nimport { schedule, once, join, run } from '../runloop/index.js';\nimport '../../shared-chunks/libraries-Dx5DiBJv.js';\nimport '../-internals/runtime/lib/ext/rsvp.js';\nimport EventDispatcher from '../-internals/views/lib/system/event_dispatcher.js';\nimport Route from '../routing/route.js';\nimport EmberRouter from '../routing/router.js';\nimport HashLocation from '../routing/hash-location.js';\nimport HistoryLocation from '../routing/history-location.js';\nimport NoneLocation from '../routing/none-location.js';\nimport '../../shared-chunks/property_get-DuDs6rLg.js';\nimport '../engine/instance.js';\nimport '../../route-recognizer/index.js';\nimport { R as RSVP } from '../../shared-chunks/rsvp-aLN_pQtn.js';\nimport '../../shared-chunks/unrecognized-url-error-xC654tCo.js';\nimport '../routing/lib/routing-service.js';\nimport BucketCache from '../routing/lib/cache.js';\nimport ApplicationInstance from './instance.js';\nimport Engine, { buildInitializerMethod } from '../engine/index.js';\nimport { privatize } from '../-internals/container/index.js';\nimport { s as setupApplicationRegistry } from '../../shared-chunks/setup-registry-C7HGofi1.js';\nimport RouterService from '../routing/router-service.js';\n\n/**\n@module @ember/application\n*/\n\n/**\n * @deprecated Use `import { getOwner } from '@ember/owner';` instead.\n */\nconst getOwner = getOwner$1;\n\n/**\n * @deprecated Use `import { setOwner } from '@ember/owner';` instead.\n */\nconst setOwner = setOwner$1;\n\n/**\n  An instance of `Application` is the starting point for every Ember\n  application. It instantiates, initializes and coordinates the\n  objects that make up your app.\n\n  Each Ember app has one and only one `Application` object. Although\n  Ember CLI creates this object implicitly, the `Application` class\n  is defined in the `app/app.js`. You can define a `ready` method on the\n  `Application` class, which will be run by Ember when the application is\n  initialized.\n\n  ```app/app.js\n  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*/\n\nclass Application extends Engine {\n  /**\n    This creates a registry with the default Ember naming conventions.\n     It also configures the registry:\n     * registered views are created every time they are looked up (they are\n      not singletons)\n    * registered templates are not factories; the registered value is\n      returned directly.\n    * the router receives the application as its `namespace` property\n    * all controllers receive the router as their `target` and `controllers`\n      properties\n    * all controllers receive the application as their `namespace` property\n    * the application view receives the application controller as its\n      `controller` property\n    * the application view receives the application template as its\n      `defaultTemplate` property\n     @method buildRegistry\n    @static\n    @param {Application} namespace the application for which to\n      build the registry\n    @return {Ember.Registry} the built registry\n    @private\n  */\n  static buildRegistry(namespace) {\n    let registry = super.buildRegistry(namespace);\n    commonSetupRegistry(registry);\n    setupApplicationRegistry(registry);\n    return registry;\n  }\n  static initializer = buildInitializerMethod('initializers');\n  static instanceInitializer = buildInitializerMethod('instanceInitializers');\n\n  /**\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\n  /**\n     @property _document\n    @type Document | null\n    @default 'window.document'\n    @private\n  */\n\n  /**\n    The `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 `EventDispatcher` for more information.\n     @property eventDispatcher\n    @type Ember.EventDispatcher\n    @default null\n    @public\n  */\n\n  /**\n    The DOM events for which the event dispatcher should listen.\n     By default, the application's `Ember.EventDispatcher` listens\n    for a set of standard DOM events, such as `mousedown` and\n    `keyup`, and delegates them to your application's `Ember.View`\n    instances.\n     If you would like additional bubbling events to be delegated to your\n    views, set your `Application`'s `customEvents` property\n    to a hash containing the DOM event name as the key and the\n    corresponding view method name as the value. Setting an event to\n    a value of `null` will prevent a default event listener from being\n    added for that event.\n     To add new events to be listened to:\n     ```app/app.js\n    import Application from '@ember/application';\n     let App = Application.extend({\n      customEvents: {\n        // add support for the paste event\n        paste: 'paste'\n      }\n    });\n    ```\n     To prevent default events from being listened to:\n     ```app/app.js\n    import Application from '@ember/application';\n     let App = Application.extend({\n      customEvents: {\n        // remove support for mouseenter / mouseleave events\n        mouseenter: null,\n        mouseleave: null\n      }\n    });\n    ```\n    @property customEvents\n    @type Object\n    @default null\n    @public\n  */\n\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\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  */\n\n  init(properties) {\n    super.init(properties);\n    this.rootElement ??= 'body';\n    this._document ??= null;\n    this.eventDispatcher ??= null;\n    this.customEvents ??= null;\n    this.autoboot ??= true;\n    this._document ??= hasDOM ? window.document : null;\n\n    // Start off the number of deferrals at 1. This will be decremented by\n    // the Application's own `boot` method.\n    this._readinessDeferrals = 1;\n    this._booted = false;\n    this._applicationInstances = new Set();\n    this.autoboot = Boolean(this.autoboot);\n    if (this.autoboot) {\n      // Create subclass of Router for this Application instance.\n      // This is to ensure that someone reopening `App.Router` does not\n      // tamper with the default `Router`.\n      this.Router = (this.Router || EmberRouter).extend();\n      this._buildDeprecatedInstance();\n      this.waitForDOMReady();\n    }\n  }\n\n  /**\n    Create an ApplicationInstance for this application.\n     @public\n    @method buildInstance\n    @return {ApplicationInstance} the application instance\n  */\n  buildInstance(options = {}) {\n    return ApplicationInstance.create({\n      ...options,\n      base: this,\n      application: this\n    });\n  }\n\n  /**\n    Start tracking an ApplicationInstance for this application.\n    Used when the ApplicationInstance is created.\n     @private\n    @method _watchInstance\n  */\n  _watchInstance(instance) {\n    this._applicationInstances.add(instance);\n  }\n\n  /**\n    Stop tracking an ApplicationInstance for this application.\n    Used when the ApplicationInstance is about to be destroyed.\n     @private\n    @method _unwatchInstance\n  */\n  _unwatchInstance(instance) {\n    return this._applicationInstances.delete(instance);\n  }\n  Router;\n  __deprecatedInstance__;\n  __container__;\n\n  /*\n    Build the deprecated instance for legacy globals mode support.\n    Called when creating and resetting the application.\n     This is orthogonal to autoboot: the deprecated instance needs to\n    be created at Application construction (not boot) time to expose\n    App.__container__. If autoboot sees that this instance exists,\n    it will continue booting it to avoid doing unncessary work (as\n    opposed to building a new instance at boot time), but they are\n    otherwise unrelated.\n     @private\n    @method _buildDeprecatedInstance\n  */\n  _buildDeprecatedInstance() {\n    // Build a default instance\n    let instance = this.buildInstance();\n\n    // Legacy support for App.__container__ and other global methods\n    // on App that rely on a single, default instance.\n    this.__deprecatedInstance__ = instance;\n    this.__container__ = instance.__container__;\n  }\n\n  /**\n    Automatically kick-off the boot process for the application once the\n    DOM has become ready.\n     The initialization itself is scheduled on the actions queue which\n    ensures that code-loading finishes before booting.\n     If you are asynchronously loading code, you should call `deferReadiness()`\n    to defer booting, and then call `advanceReadiness()` once all of your code\n    has finished loading.\n     @private\n    @method waitForDOMReady\n  */\n  waitForDOMReady() {\n    const document = this._document;\n\n    // 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.\n    if (document === null || document.readyState !== 'loading') {\n      schedule('actions', this, this.domReady);\n    } else {\n      let callback = () => {\n        document.removeEventListener('DOMContentLoaded', callback);\n        run(this, this.domReady);\n      };\n      document.addEventListener('DOMContentLoaded', callback);\n    }\n  }\n\n  /**\n    This is the autoboot flow:\n     1. Boot the app by calling `this.boot()`\n    2. Create an instance (or use the `__deprecatedInstance__` in globals mode)\n    3. Boot the instance by calling `instance.boot()`\n    4. Invoke the `App.ready()` callback\n    5. Kick-off routing on the instance\n     Ideally, this is all we would need to do:\n     ```javascript\n    _autoBoot() {\n      this.boot().then(() => {\n        let instance = this.__deprecatedInstance__;\n        return instance.boot();\n      }).then((instance) => {\n        App.ready();\n        instance.startRouting();\n      });\n    }\n    ```\n     Unfortunately, we cannot actually write this because we need to participate\n    in the \"synchronous\" boot process. While the code above would work fine on\n    the initial boot (i.e. DOM ready), when `App.reset()` is called, we need to\n    boot a new instance synchronously (see the documentation on `_bootSync()`\n    for details).\n     Because of this restriction, the actual logic of this method is located\n    inside `didBecomeReady()`.\n     @private\n    @method domReady\n  */\n  domReady() {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n    this._bootSync();\n\n    // Continues to `didBecomeReady`\n  }\n\n  /**\n    Use this to defer readiness until some condition is true.\n     Example:\n     ```javascript\n    import Application from '@ember/application';\n     let App = Application.create();\n     App.deferReadiness();\n     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  */\n  deferReadiness() {\n    this._readinessDeferrals++;\n  }\n\n  /**\n    Call `advanceReadiness` after any asynchronous setup logic has completed.\n    Each call to `deferReadiness` must be matched by a call to `advanceReadiness`\n    or the application will never become ready and routing will not begin.\n     @method advanceReadiness\n    @see {Application#deferReadiness}\n    @public\n  */\n  advanceReadiness() {\n    this._readinessDeferrals--;\n    if (this._readinessDeferrals === 0) {\n      once(this, this.didBecomeReady);\n    }\n  }\n  _bootPromise = null;\n\n  /**\n    Initialize the application and return a promise that resolves with the `Application`\n    object when the boot process is complete.\n     Run any application initializers and run the application load hook. These hooks may\n    choose to defer readiness. For example, an authentication hook might want to defer\n    readiness until the auth token has been retrieved.\n     By default, this method is called automatically on \"DOM ready\"; however, if autoboot\n    is disabled, this is automatically called when the first application instance is\n    created via `visit`.\n     @public\n    @method boot\n    @return {Promise<Application,Error>}\n  */\n  boot() {\n    if (this._bootPromise) {\n      return this._bootPromise;\n    }\n    try {\n      this._bootSync();\n    } catch (_) {\n      // Ignore the error: in the asynchronous boot path, the error is already reflected\n      // in the promise rejection\n    }\n    return this._bootPromise;\n  }\n  _bootResolver = null;\n\n  /**\n    Unfortunately, a lot of existing code assumes the booting process is\n    \"synchronous\". Specifically, a lot of tests assumes the last call to\n    `app.advanceReadiness()` or `app.reset()` will result in the app being\n    fully-booted when the current runloop completes.\n     We would like new code (like the `visit` API) to stop making this assumption,\n    so we created the asynchronous version above that returns a promise. But until\n    we have migrated all the code, we would have to expose this method for use\n    *internally* in places where we need to boot an app \"synchronously\".\n     @private\n  */\n  _bootSync() {\n    if (this._booted || this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    // Even though this returns synchronously, we still need to make sure the\n    // boot promise exists for book-keeping purposes: if anything went wrong in\n    // the boot process, we need to store the error as a rejection on the boot\n    // promise so that a future caller of `boot()` can tell what failed.\n    let defer = this._bootResolver = RSVP.defer();\n    this._bootPromise = defer.promise;\n    try {\n      this.runInitializers();\n      this.advanceReadiness();\n      // Continues to `didBecomeReady`\n    } catch (error) {\n      // For the asynchronous boot path\n      defer.reject(error);\n\n      // For the synchronous boot path\n      throw error;\n    }\n  }\n\n  /**\n    Reset the application. This is typically used only in tests. It cleans up\n    the application in the following order:\n     1. Deactivate existing routes\n    2. Destroy all objects in the container\n    3. Create a new application container\n    4. Re-route to the existing url\n     Typical Example:\n     ```javascript\n    import Application from '@ember/application';\n    let App;\n     run(function() {\n      App = Application.create();\n    });\n     module('acceptance test', {\n      setup: function() {\n        App.reset();\n      }\n    });\n     test('first test', function() {\n      // App is freshly reset\n    });\n     test('second test', function() {\n      // App is again freshly reset\n    });\n    ```\n     Advanced Example:\n     Occasionally you may want to prevent the app from initializing during\n    setup. This could enable extra configuration, or enable asserting prior\n    to the app becoming ready.\n     ```javascript\n    import Application from '@ember/application';\n    let App;\n     run(function() {\n      App = Application.create();\n    });\n     module('acceptance test', {\n      setup: function() {\n        run(function() {\n          App.reset();\n          App.deferReadiness();\n        });\n      }\n    });\n     test('first test', function() {\n      ok(true, 'something before app is initialized');\n       run(function() {\n        App.advanceReadiness();\n      });\n       ok(true, 'something after app is initialized');\n    });\n    ```\n     @method reset\n    @public\n  */\n  reset() {\n    let instance = this.__deprecatedInstance__;\n    this._readinessDeferrals = 1;\n    this._bootPromise = null;\n    this._bootResolver = null;\n    this._booted = false;\n    function handleReset() {\n      run(instance, 'destroy');\n      this._buildDeprecatedInstance();\n      schedule('actions', this, '_bootSync');\n    }\n    join(this, handleReset);\n  }\n\n  /**\n    @private\n    @method didBecomeReady\n  */\n  didBecomeReady() {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n    try {\n      // See documentation on `_autoboot()` for details\n      if (this.autoboot) {\n        // If we already have the __deprecatedInstance__ lying around, boot it to\n        // avoid unnecessary work\n        let instance = this.__deprecatedInstance__;\n        (false && !(instance) && assert('expected instance', instance));\n        instance._bootSync();\n\n        // TODO: App.ready() is not called when autoboot is disabled, is this correct?\n        this.ready();\n        instance.startRouting();\n      }\n\n      // For the asynchronous boot path\n      this._bootResolver.resolve(this);\n\n      // For the synchronous boot path\n      this._booted = true;\n    } catch (error) {\n      // For the asynchronous boot path\n      this._bootResolver.reject(error);\n\n      // For the synchronous boot path\n      throw error;\n    }\n  }\n\n  /**\n    Called when the Application has become ready, immediately before routing\n    begins. The call will be delayed until the DOM has become ready.\n     @event ready\n    @public\n  */\n  ready() {\n    return this;\n  }\n\n  // This method must be moved to the application instance object\n  willDestroy() {\n    super.willDestroy();\n    if (this._applicationInstances.size) {\n      this._applicationInstances.forEach(i => i.destroy());\n      this._applicationInstances.clear();\n    }\n  }\n\n  /**\n    Boot a new instance of `ApplicationInstance` for the current\n    application and navigate it to the given `url`. Returns a `Promise` that\n    resolves with the instance when the initial routing and rendering is\n    complete, or rejects with any error that occurred during the boot process.\n     When `autoboot` is disabled, calling `visit` would first cause the\n    application to boot, which runs the application initializers.\n     This method also takes a hash of boot-time configuration options for\n    customizing the instance's behavior. See the documentation on\n    `ApplicationInstance.BootOptions` for details.\n     `ApplicationInstance.BootOptions` is an interface class that exists\n    purely to document the available options; you do not need to construct it\n    manually. Simply pass a regular JavaScript object containing of the\n    desired options:\n     ```javascript\n    MyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n    ```\n     ### Supported Scenarios\n     While the `BootOptions` class exposes a large number of knobs, not all\n    combinations of them are valid; certain incompatible combinations might\n    result in unexpected behavior.\n     For example, booting the instance in the full browser environment\n    while specifying a foreign `document` object (e.g. `{ isBrowser: true,\n    document: iframe.contentDocument }`) does not work correctly today,\n    largely due to Ember's jQuery dependency.\n     Currently, there are three officially supported scenarios/configurations.\n    Usages outside of these scenarios are not guaranteed to work, but please\n    feel free to file bug reports documenting your experience and any issues\n    you encountered to help expand support.\n     #### Browser Applications (Manual Boot)\n     The setup is largely similar to how Ember works out-of-the-box. Normally,\n    Ember will boot a default instance for your Application on \"DOM ready\".\n    However, you can customize this behavior by disabling `autoboot`.\n     For example, this allows you to render a miniture demo of your application\n    into a specific area on your marketing website:\n     ```javascript\n    import MyApp from 'my-app';\n     $(function() {\n      let App = MyApp.create({ autoboot: false });\n       let options = {\n        // Override the router's location adapter to prevent it from updating\n        // the URL in the address bar\n        location: 'none',\n         // Override the default `rootElement` on the app to render into a\n        // specific `div` on the page\n        rootElement: '#demo'\n      };\n       // Start the app at the special demo URL\n      App.visit('/demo', options);\n    });\n    ```\n     Or perhaps you might want to boot two instances of your app on the same\n    page for a split-screen multiplayer experience:\n     ```javascript\n    import MyApp from 'my-app';\n     $(function() {\n      let App = MyApp.create({ autoboot: false });\n       let sessionId = MyApp.generateSessionID();\n       let player1 = App.visit(`/matches/join?name=Player+1&session=${sessionId}`, { rootElement: '#left', location: 'none' });\n      let player2 = App.visit(`/matches/join?name=Player+2&session=${sessionId}`, { rootElement: '#right', location: 'none' });\n       Promise.all([player1, player2]).then(() => {\n        // Both apps have completed the initial render\n        $('#loading').fadeOut();\n      });\n    });\n    ```\n     Do note that each app instance maintains their own registry/container, so\n    they will run in complete isolation by default.\n     #### Server-Side Rendering (also known as FastBoot)\n     This setup allows you to run your Ember app in a server environment using\n    Node.js and render its content into static HTML for SEO purposes.\n     ```javascript\n    const HTMLSerializer = new SimpleDOM.HTMLSerializer(SimpleDOM.voidMap);\n     function renderURL(url) {\n      let dom = new SimpleDOM.Document();\n      let rootElement = dom.body;\n      let options = { isBrowser: false, document: dom, rootElement: rootElement };\n       return MyApp.visit(options).then(instance => {\n        try {\n          return HTMLSerializer.serialize(rootElement.firstChild);\n        } finally {\n          instance.destroy();\n        }\n      });\n    }\n    ```\n     In this scenario, because Ember does not have access to a global `document`\n    object in the Node.js environment, you must provide one explicitly. In practice,\n    in the non-browser environment, the stand-in `document` object only needs to\n    implement a limited subset of the full DOM API. The `SimpleDOM` library is known\n    to work.\n     Since there is no 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  */\n  visit(url, options) {\n    return this.boot().then(() => {\n      let instance = this.buildInstance();\n      return instance.boot(options).then(() => instance.visit(url)).catch(error => {\n        run(instance, 'destroy');\n        throw error;\n      });\n    });\n  }\n}\nfunction commonSetupRegistry(registry) {\n  registry.register('router:main', EmberRouter);\n  registry.register('-view-registry:main', {\n    create() {\n      return makeDictionary(null);\n    }\n  });\n  registry.register('route:basic', Route);\n  registry.register('event_dispatcher:main', EventDispatcher);\n  registry.register('location:hash', HashLocation);\n  registry.register('location:history', HistoryLocation);\n  registry.register('location:none', NoneLocation);\n  registry.register(privatize`-bucket-cache:main`, {\n    create() {\n      return new BucketCache();\n    }\n  });\n  registry.register('service:router', RouterService);\n}\n\nexport { Application as default, getOwner, setOwner };\n","import { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { s as set } from '../../shared-chunks/property_set-CVmdjPdh.js';\nimport { e as environment } from '../../shared-chunks/index-Cc8WmrB-.js';\nimport EngineInstance from '../engine/instance.js';\nimport '../-internals/container/index.js';\nimport '../../shared-chunks/guid-Cbq2sNV_.js';\nimport '../../shared-chunks/super-BBBjgF69.js';\nimport '../-internals/deprecations/index.js';\nimport '../../shared-chunks/reference-CccCE8mJ.js';\nimport '../../shared-chunks/arguments-xjTAZ6VE.js';\nimport '../../shared-chunks/cache-CofLhaS4.js';\nimport '../../shared-chunks/render-C_iak8Db.js';\nimport '../../shared-chunks/curly-Bg--Dj0X.js';\nimport '../../shared-chunks/outlet-bc38zkd8.js';\nimport '../../shared-chunks/env-DXxsTFkM.js';\nimport '../../shared-chunks/capabilities-BuVYh-vx.js';\nimport '../../shared-chunks/hash-pP7ZP_NN.js';\nimport '../../shared-chunks/get-B1Vq9Mmk.js';\nimport '../../shared-chunks/on-BFt-Sx9A.js';\nimport '../../shared-chunks/template-only-CWsfnbVm.js';\nimport { a as renderSettled } from '../../shared-chunks/index-CZW6QzcF.js';\nimport '../../shared-chunks/unique-id-DNqsbhfh.js';\nimport '../runloop/index.js';\nimport '../routing/router.js';\nimport '../object/index.js';\nimport { h as hasDOM } from '../../shared-chunks/has-dom-DdQORPzI.js';\n\n/**\n@module @ember/application\n*/\n\n/**\n  The `ApplicationInstance` encapsulates all of the stateful aspects of a\n  running `Application`.\n\n  At a high-level, we break application boot into two distinct phases:\n\n  * Definition time, where all of the classes, templates, and other\n    dependencies are loaded (typically in the browser).\n  * Run time, where we begin executing the application once everything\n    has loaded.\n\n  Definition time can be expensive and only needs to happen once since it is\n  an idempotent operation. For example, between test runs and FastBoot\n  requests, the application stays the same. It is only the state that we want\n  to reset.\n\n  That state is what the `ApplicationInstance` manages: it is responsible for\n  creating the container that contains all application state, and disposing of\n  it once the particular test run or FastBoot request has finished.\n\n  @public\n  @class ApplicationInstance\n  @extends EngineInstance\n*/\n\nclass ApplicationInstance extends EngineInstance {\n  /**\n    The `Application` for which this is an instance.\n     @property {Application} application\n    @private\n  */\n\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  */\n  rootElement = null;\n  init(properties) {\n    super.init(properties);\n    this.application._watchInstance(this);\n\n    // Register this instance in the per-instance registry.\n    //\n    // Why do we need to register the instance in the first place?\n    // Because we need a good way for the root route (a.k.a ApplicationRoute)\n    // to notify us when it has created the root-most view. That view is then\n    // appended to the rootElement, in the case of apps, to the fixture harness\n    // in tests, or rendered to a string in the case of FastBoot.\n    this.register('-application-instance:main', this, {\n      instantiate: false\n    });\n  }\n\n  /**\n    Overrides the base `EngineInstance._bootSync` method with concerns relevant\n    to booting application (instead of engine) instances.\n     This method should only contain synchronous boot concerns. Asynchronous\n    boot concerns should eventually be moved to the `boot` method, which\n    returns a promise.\n     Until all boot code has been made asynchronous, we need to continue to\n    expose this method for use *internally* in places where we need to boot an\n    instance synchronously.\n     @private\n  */\n  _bootSync(options) {\n    if (this._booted) {\n      return this;\n    }\n    options = new _BootOptions(options);\n    this.setupRegistry(options);\n    if (options.rootElement) {\n      this.rootElement = options.rootElement;\n    } else {\n      this.rootElement = this.application.rootElement;\n    }\n    if (options.location) {\n      set(this.router, 'location', options.location);\n    }\n    this.application.runInstanceInitializers(this);\n    if (options.isInteractive) {\n      this.setupEventDispatcher();\n    }\n    this._booted = true;\n    return this;\n  }\n  setupRegistry(options) {\n    this.constructor.setupRegistry(this.__registry__, options);\n  }\n  _router;\n  get router() {\n    if (!this._router) {\n      let router = this.lookup('router:main');\n      this._router = router;\n    }\n    return this._router;\n  }\n\n  /**\n    This hook is called by the root-most Route (a.k.a. the ApplicationRoute)\n    when it has finished creating the root View. By default, we simply take the\n    view and append it to the `rootElement` specified on the Application.\n     In cases like FastBoot and testing, we can override this hook and implement\n    custom behavior, such as serializing to a string and sending over an HTTP\n    socket rather than appending to DOM.\n     @param view {Ember.View} the root-most view\n    @deprecated\n    @private\n  */\n  didCreateRootView(view) {\n    view.appendTo(this.rootElement);\n  }\n\n  /**\n    Tells the router to start routing. The router will ask the location for the\n    current URL of the page to determine the initial URL to start routing to.\n    To start the app at a specific URL, call `handleURL` instead.\n     @private\n  */\n  startRouting() {\n    this.router.startRouting();\n  }\n\n  /**\n    Sets up the router, initializing the child router and configuring the\n    location before routing begins.\n     Because setup should only occur once, multiple calls to `setupRouter`\n    beyond the first call have no effect.\n     This is commonly used in order to confirm things that rely on the router\n    are functioning properly from tests that are primarily rendering related.\n     For example, from within [ember-qunit](https://github.com/emberjs/ember-qunit)'s\n    `setupRenderingTest` calling `this.owner.setupRouter()` would allow that\n    rendering test to confirm that any `<LinkTo></LinkTo>`'s that are rendered\n    have the correct URL.\n     @public\n  */\n  setupRouter() {\n    this.router.setupRouter();\n  }\n\n  /**\n    Directs the router to route to a particular URL. This is useful in tests,\n    for example, to tell the app to start at a particular URL.\n     @param url {String} the URL the router should route to\n    @private\n  */\n  handleURL(url) {\n    this.setupRouter();\n    return this.router.handleURL(url);\n  }\n\n  /**\n    @private\n  */\n  setupEventDispatcher() {\n    let dispatcher = this.lookup('event_dispatcher:main');\n    let applicationCustomEvents = get(this.application, 'customEvents');\n    let instanceCustomEvents = get(this, 'customEvents');\n    let customEvents = Object.assign({}, applicationCustomEvents, instanceCustomEvents);\n    dispatcher.setup(customEvents, this.rootElement);\n    return dispatcher;\n  }\n\n  /**\n    Returns the current URL of the app instance. This is useful when your\n    app does not update the browsers URL bar (i.e. it uses the `'none'`\n    location adapter).\n     @public\n    @return {String} the current URL\n  */\n  getURL() {\n    return this.router.url;\n  }\n\n  // `instance.visit(url)` should eventually replace `instance.handleURL()`;\n  // the test helpers can probably be switched to use this implementation too\n\n  /**\n    Navigate the instance to a particular URL. This is useful in tests, for\n    example, or to tell the app to start at a particular URL. This method\n    returns a promise that resolves with the app instance when the transition\n    is complete, or rejects if the transition was aborted due to an error.\n     @public\n    @param url {String} the destination URL\n    @return {Promise<ApplicationInstance>}\n  */\n  visit(url) {\n    this.setupRouter();\n    let bootOptions = this.__container__.lookup('-environment:main');\n    let router = this.router;\n    let handleTransitionResolve = () => {\n      if (!bootOptions.options.shouldRender) {\n        // No rendering is needed, and routing has completed, simply return.\n        return this;\n      } else {\n        // Ensure that the visit promise resolves when all rendering has completed\n        return renderSettled().then(() => this);\n      }\n    };\n    let handleTransitionReject = error => {\n      if (error.error && error.error instanceof Error) {\n        throw error.error;\n      } else if (error.name === 'TransitionAborted') {\n        throw new Error(error.message);\n      } else {\n        throw error;\n      }\n    };\n    let location = get(router, 'location');\n    location.setURL(url);\n\n    // getURL returns the set url with the rootURL stripped off\n    return router.handleURL(location.getURL()).followRedirects().then(handleTransitionResolve, handleTransitionReject);\n  }\n  willDestroy() {\n    super.willDestroy();\n    this.application._unwatchInstance(this);\n  }\n\n  /**\n   @private\n   @method setupRegistry\n   @param {Registry} registry\n   @param {BootOptions} options\n  */\n  static setupRegistry(registry, options = {}) {\n    let coptions = options instanceof _BootOptions ? options : new _BootOptions(options);\n    registry.register('-environment:main', coptions.toEnvironment(), {\n      instantiate: false\n    });\n    registry.register('service:-document', coptions.document, {\n      instantiate: false\n    });\n    super.setupRegistry(registry, coptions);\n  }\n}\n\n/**\n  A list of boot-time configuration options for customizing the behavior of\n  an `ApplicationInstance`.\n\n  This is an interface class that exists purely to document the available\n  options; you do not need to construct it manually. Simply pass a regular\n  JavaScript object containing the desired options into methods that require\n  one of these options object:\n\n  ```javascript\n  MyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n  ```\n\n  Not all combinations of the supported options are valid. See the documentation\n  on `Application#visit` for the supported configurations.\n\n  Internal, experimental or otherwise unstable flags are marked as private.\n\n  @class BootOptions\n  @namespace ApplicationInstance\n  @public\n*/\nclass _BootOptions {\n  /**\n    Interactive mode: whether we need to set up event delegation and invoke\n    lifecycle callbacks on Components.\n     @property isInteractive\n    @type boolean\n    @default auto-detected\n    @private\n  */\n  isInteractive;\n\n  /**\n    @property _renderMode\n    @type string\n    @default undefined\n    @private\n  */\n  _renderMode;\n\n  /**\n    Run in a full browser environment.\n     When this flag is set to `false`, it will disable most browser-specific\n    and interactive features. Specifically:\n     * It does not use `jQuery` to append the root view; the `rootElement`\n      (either specified as a subsequent option or on the application itself)\n      must already be an `Element` in the given `document` (as opposed to a\n      string selector).\n     * It does not set up an `EventDispatcher`.\n     * It does not run any `Component` lifecycle hooks (such as `didInsertElement`).\n     * It sets the `location` option to `\"none\"`. (If you would like to use\n      the location adapter specified in the app's router instead, you can also\n      specify `{ location: null }` to specifically opt-out.)\n     @property isBrowser\n    @type boolean\n    @default auto-detected\n    @public\n  */\n  isBrowser;\n\n  /**\n    If present, overrides the router's `location` property with this\n    value. This is useful for environments where trying to modify the\n    URL would be inappropriate.\n     @property location\n    @type string\n    @default null\n    @public\n  */\n  location = null;\n\n  /**\n    Disable rendering completely.\n     When this flag is set to `false`, it will disable the entire rendering\n    pipeline. Essentially, this puts the app into \"routing-only\" mode. No\n    templates will be rendered, and no Components will be created.\n     @property shouldRender\n    @type boolean\n    @default true\n    @public\n  */\n  shouldRender;\n\n  /**\n    If present, render into the given `Document` object instead of the\n    global `window.document` object.\n     In practice, this is only useful in non-browser environment or in\n    non-interactive mode, because Ember's `jQuery` dependency is\n    implicitly bound to the current document, causing event delegation\n    to not work properly when the app is rendered into a foreign\n    document object (such as an iframe's `contentDocument`).\n     In non-browser mode, this could be a \"`Document`-like\" object as\n    Ember only interact with a small subset of the DOM API in non-\n    interactive mode. While the exact requirements have not yet been\n    formalized, the `SimpleDOM` library's implementation is known to\n    work.\n     @property document\n    @type Document\n    @default the global `document` object\n    @public\n  */\n  document;\n\n  /**\n    If present, overrides the application's `rootElement` property on\n    the instance. This is useful for testing environment, where you\n    might want to append the root view to a fixture area.\n     In non-browser mode, because Ember does not have access to jQuery,\n    this options must be specified as a DOM `Element` object instead of\n    a selector string.\n     See the documentation on `Application`'s `rootElement` for\n    details.\n     @property rootElement\n    @type String|Element\n    @default null\n    @public\n  */\n  rootElement;\n  constructor(options = {}) {\n    this.isInteractive = Boolean(hasDOM); // This default is overridable below\n    this._renderMode = options._renderMode;\n    if (options.isBrowser !== undefined) {\n      this.isBrowser = Boolean(options.isBrowser);\n    } else {\n      this.isBrowser = Boolean(hasDOM);\n    }\n    if (!this.isBrowser) {\n      this.isInteractive = false;\n      this.location = 'none';\n    }\n    if (options.shouldRender !== undefined) {\n      this.shouldRender = Boolean(options.shouldRender);\n    } else {\n      this.shouldRender = true;\n    }\n    if (!this.shouldRender) {\n      this.isInteractive = false;\n    }\n    if (options.document) {\n      this.document = options.document;\n    } else {\n      this.document = typeof document !== 'undefined' ? document : null;\n    }\n    if (options.rootElement) {\n      this.rootElement = options.rootElement;\n    }\n\n    // Set these options last to give the user a chance to override the\n    // defaults from the \"combo\" options like `isBrowser` (although in\n    // practice, the resulting combination is probably invalid)\n\n    if (options.location !== undefined) {\n      this.location = options.location;\n    }\n    if (options.isInteractive !== undefined) {\n      this.isInteractive = Boolean(options.isInteractive);\n    }\n  }\n  toEnvironment() {\n    // Do we really want to assign all of this!?\n    return {\n      ...environment,\n      // For compatibility with existing code\n      hasDOM: this.isBrowser,\n      isInteractive: this.isInteractive,\n      _renderMode: this._renderMode,\n      options: this\n    };\n  }\n}\n\nexport { ApplicationInstance as default };\n","import { N as NAMESPACES, a as NAMESPACES_BY_ID, p as processAllNamespaces, f as findNamespace, b as addNamespace, c as findNamespaces, d as processNamespace, r as removeNamespace } from '../../shared-chunks/namespace_search-TFdmjK_a.js';\nimport { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { g as getName, s as setName } from '../../shared-chunks/name-Clp4Vsod.js';\nimport { g as guidFor } from '../../shared-chunks/guid-Cbq2sNV_.js';\nimport EmberObject from '../object/index.js';\n\n/**\n@module @ember/application/namespace\n*/\n\n\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  import Namespace from '@ember/application/namespace';\n  MyFramework = Namespace.create({\n    VERSION: '1.0.0'\n  });\n  ```\n\n  @class Namespace\n  @extends EmberObject\n  @public\n*/\nclass Namespace extends EmberObject {\n  static NAMESPACES = NAMESPACES;\n  static NAMESPACES_BY_ID = NAMESPACES_BY_ID;\n  static processAll = processAllNamespaces;\n  static byName = findNamespace;\n  init(properties) {\n    super.init(properties);\n    addNamespace(this);\n  }\n  toString() {\n    let existing_name = get(this, 'name') || get(this, 'modulePrefix');\n    if (existing_name) {\n      return existing_name;\n    }\n    findNamespaces();\n    let name = getName(this);\n    if (name === undefined) {\n      name = guidFor(this);\n      setName(this, name);\n    }\n    return name;\n  }\n  nameClasses() {\n    processNamespace(this);\n  }\n  destroy() {\n    removeNamespace(this);\n    return super.destroy();\n  }\n}\n\n// Declare on the prototype to have a single shared value.\nNamespace.prototype.isNamespace = true;\n\nexport { Namespace as default };\n","const EMBER_ARRAYS = new WeakSet();\nfunction setEmberArray(obj) {\n  EMBER_ARRAYS.add(obj);\n}\nfunction isEmberArray(obj) {\n  return EMBER_ARRAYS.has(obj);\n}\n\nexport { isEmberArray, setEmberArray };\n","import { o as objectAt } from '../../shared-chunks/chain-tags-BlsXEpE-.js';\nimport { e as replaceInNativeArray, r as replace } from '../../shared-chunks/array-CK__rqeu.js';\nimport { b as beginPropertyChanges, a as endPropertyChanges, c as computed } from '../../shared-chunks/computed-ZvOk7SJQ.js';\nimport { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { s as set } from '../../shared-chunks/property_set-CVmdjPdh.js';\nimport { M as Mixin, I as INTERNAL_MIXIN_CREATE } from '../../shared-chunks/mixin-AGmJaAAY.js';\nimport Enumerable from '../enumerable/index.js';\nimport MutableEnumerable from '../enumerable/mutable.js';\nimport compare from '../utils/lib/compare.js';\nimport Observable from '../object/observable.js';\nimport { setEmberArray, isEmberArray } from './-internals.js';\nexport { default as isArray } from './lib/is-array.js';\nexport { default as makeArray } from './lib/make-array.js';\n\n/**\n@module @ember/array\n*/\nconst EMPTY_ARRAY = Object.freeze([]);\nconst identityFunction = item => item;\nfunction uniqBy(array, keyOrFunc = identityFunction) {\n  let ret = A();\n  let seen = new Set();\n  let getter = typeof keyOrFunc === 'function' ? keyOrFunc : item => get(item, keyOrFunc);\n  array.forEach(item => {\n    let val = getter(item);\n    if (!seen.has(val)) {\n      seen.add(val);\n      ret.push(item);\n    }\n  });\n  return ret;\n}\nfunction iter(...args) {\n  let valueProvided = args.length === 2;\n  let [key, value] = args;\n  return valueProvided ? item => value === get(item, key) : item => Boolean(get(item, key));\n}\nfunction findIndex(array, predicate, startAt) {\n  let len = array.length;\n  for (let index = startAt; index < len; index++) {\n    // SAFETY: Because we're checking the index this value should always be set.\n    let item = objectAt(array, index);\n    if (predicate(item, index, array)) {\n      return index;\n    }\n  }\n  return -1;\n}\nfunction find(array, callback, target = null) {\n  let predicate = callback.bind(target);\n  let index = findIndex(array, predicate, 0);\n  return index === -1 ? undefined : objectAt(array, index);\n}\nfunction any(array, callback, target = null) {\n  let predicate = callback.bind(target);\n  return findIndex(array, predicate, 0) !== -1;\n}\nfunction every(array, callback, target = null) {\n  let cb = callback.bind(target);\n  let predicate = (item, index, array) => !cb(item, index, array);\n  return findIndex(array, predicate, 0) === -1;\n}\nfunction indexOf(array, val, startAt = 0, withNaNCheck) {\n  let len = array.length;\n  if (startAt < 0) {\n    startAt += len;\n  }\n\n  // SameValueZero comparison (NaN !== NaN)\n  let predicate = withNaNCheck && val !== val ? item => item !== item : item => item === val;\n  return findIndex(array, predicate, startAt);\n}\nfunction removeAt(array, index, len) {\n  replace(array, index, len ?? 1, EMPTY_ARRAY);\n  return array;\n}\nfunction insertAt(array, index, item) {\n  replace(array, index, 0, [item]);\n  return item;\n}\n\n/*\n  This allows us to define computed properties that are not enumerable.\n*/\nfunction nonEnumerableComputed(callback) {\n  let property = computed(callback);\n  property.enumerable = false;\n  return property;\n}\nfunction mapBy(key) {\n  return this.map(next => get(next, key));\n}\n\n// ..........................................................\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*/\n\nconst EmberArray = Mixin[INTERNAL_MIXIN_CREATE](Enumerable, {\n  init() {\n    this._super(...arguments);\n    setEmberArray(this);\n  },\n  objectsAt(indexes) {\n    return indexes.map(idx => objectAt(this, idx));\n  },\n  '[]': nonEnumerableComputed({\n    get() {\n      return this;\n    },\n    set(_key, value) {\n      this.replace(0, this.length, value);\n      return this;\n    }\n  }),\n  firstObject: nonEnumerableComputed(function () {\n    return objectAt(this, 0);\n  }).readOnly(),\n  lastObject: nonEnumerableComputed(function () {\n    return objectAt(this, this.length - 1);\n  }).readOnly(),\n  // Add any extra methods to EmberArray that are native to the built-in Array.\n  slice(beginIndex = 0, endIndex) {\n    let ret = A();\n    let length = this.length;\n    if (beginIndex < 0) {\n      beginIndex = length + beginIndex;\n    }\n    let validatedEndIndex;\n    if (endIndex === undefined || endIndex > length) {\n      validatedEndIndex = length;\n    } else if (endIndex < 0) {\n      validatedEndIndex = length + endIndex;\n    } else {\n      validatedEndIndex = endIndex;\n    }\n    while (beginIndex < validatedEndIndex) {\n      ret[ret.length] = objectAt(this, beginIndex++);\n    }\n    return ret;\n  },\n  indexOf(object, startAt) {\n    return indexOf(this, object, startAt, false);\n  },\n  lastIndexOf(object, startAt) {\n    let len = this.length;\n    if (startAt === undefined || startAt >= len) {\n      startAt = len - 1;\n    }\n    if (startAt < 0) {\n      startAt += len;\n    }\n    for (let idx = startAt; idx >= 0; idx--) {\n      if (objectAt(this, idx) === object) {\n        return idx;\n      }\n    }\n    return -1;\n  },\n  forEach(callback, target = null) {\n    let length = this.length;\n    for (let index = 0; index < length; index++) {\n      let item = this.objectAt(index);\n      callback.call(target, item, index, this);\n    }\n    return this;\n  },\n  getEach: mapBy,\n  setEach(key, value) {\n    return this.forEach(item => set(item, key, value));\n  },\n  map(callback, target = null) {\n    let ret = A();\n    this.forEach((x, idx, i) => ret[idx] = callback.call(target, x, idx, i));\n    return ret;\n  },\n  mapBy,\n  filter(callback, target = null) {\n    let ret = A();\n    this.forEach((x, idx, i) => {\n      if (callback.call(target, x, idx, i)) {\n        ret.push(x);\n      }\n    });\n    return ret;\n  },\n  reject(callback, target = null) {\n    return this.filter(function () {\n      // @ts-expect-error TS doesn't like us using arguments like this\n      return !callback.apply(target, arguments);\n    });\n  },\n  filterBy() {\n    // @ts-expect-error TS doesn't like the ...arguments spread here.\n    return this.filter(iter(...arguments));\n  },\n  rejectBy() {\n    // @ts-expect-error TS doesn't like the ...arguments spread here.\n    return this.reject(iter(...arguments));\n  },\n  find(callback, target = null) {\n    return find(this, callback, target);\n  },\n  findBy() {\n    // @ts-expect-error TS doesn't like the ...arguments spread here.\n    let callback = iter(...arguments);\n    return find(this, callback);\n  },\n  every(callback, target = null) {\n    return every(this, callback, target);\n  },\n  isEvery() {\n    // @ts-expect-error TS doesn't like the ...arguments spread here.\n    let callback = iter(...arguments);\n    return every(this, callback);\n  },\n  any(callback, target = null) {\n    return any(this, callback, target);\n  },\n  isAny() {\n    // @ts-expect-error TS doesn't like us using arguments like this\n    let callback = iter(...arguments);\n    return any(this, callback);\n  },\n  // FIXME: When called without initialValue, behavior does not match native behavior\n  reduce(callback, initialValue) {\n    let hasInitialValue = arguments.length > 1;\n    let ret = initialValue;\n    let startIndex = 0;\n    if (!hasInitialValue) {\n      if (this.length === 0) {\n        throw new TypeError('Reduce of empty array with no initial value');\n      }\n      ret = this.objectAt(0);\n      startIndex = 1;\n    }\n    for (let i = startIndex; i < this.length; i++) {\n      let item = this.objectAt(i);\n      ret = callback(ret, item, i, this);\n    }\n    return ret;\n  },\n  invoke(methodName, ...args) {\n    let ret = A();\n\n    // SAFETY: This is not entirely safe and the code will not work with Ember proxies\n    this.forEach(item => ret.push(item[methodName]?.(...args)));\n    return ret;\n  },\n  toArray() {\n    return this.map(item => item);\n  },\n  compact() {\n    return this.filter(value => value != null);\n  },\n  includes(object, startAt) {\n    return indexOf(this, object, startAt, true) !== -1;\n  },\n  sortBy() {\n    let sortKeys = arguments;\n    return this.toArray().sort((a, b) => {\n      for (let i = 0; i < sortKeys.length; i++) {\n        let key = sortKeys[i];\n        let propA = get(a, key);\n        let propB = get(b, key);\n        // return 1 or -1 else continue to the next sortKey\n        let compareValue = compare(propA, propB);\n        if (compareValue) {\n          return compareValue;\n        }\n      }\n      return 0;\n    });\n  },\n  uniq() {\n    return uniqBy(this);\n  },\n  uniqBy(key) {\n    return uniqBy(this, key);\n  },\n  without(value) {\n    if (!this.includes(value)) {\n      return this; // nothing to do\n    }\n\n    // SameValueZero comparison (NaN !== NaN)\n    let predicate = value === value ? item => item !== value : item => item === item;\n    return this.filter(predicate);\n  }\n});\n\n/**\n  This mixin defines the API for modifying array-like objects. These methods\n  can be applied only to a collection that keeps its items in an ordered set.\n  It builds upon the Array mixin and adds methods to modify the array.\n  One concrete implementations of this class include ArrayProxy.\n\n  It is important to use the methods in this class to modify arrays so that\n  changes are observable. This allows the binding system in Ember to function\n  correctly.\n\n\n  Note that an Array can change even if it does not implement this mixin.\n  For example, one might implement a SparseArray that cannot be directly\n  modified, but if its underlying enumerable changes, it will change also.\n\n  @class MutableArray\n  @uses EmberArray\n  @uses MutableEnumerable\n  @public\n*/\n\nconst MutableArray = Mixin[INTERNAL_MIXIN_CREATE](EmberArray, MutableEnumerable, {\n  clear() {\n    let len = this.length;\n    if (len === 0) {\n      return this;\n    }\n    this.replace(0, len, EMPTY_ARRAY);\n    return this;\n  },\n  insertAt(idx, object) {\n    insertAt(this, idx, object);\n    return this;\n  },\n  removeAt(start, len) {\n    return removeAt(this, start, len);\n  },\n  pushObject(obj) {\n    return insertAt(this, this.length, obj);\n  },\n  pushObjects(objects) {\n    this.replace(this.length, 0, objects);\n    return this;\n  },\n  popObject() {\n    let len = this.length;\n    if (len === 0) {\n      return null;\n    }\n    let ret = objectAt(this, len - 1);\n    this.removeAt(len - 1, 1);\n    return ret;\n  },\n  shiftObject() {\n    if (this.length === 0) {\n      return null;\n    }\n    let ret = objectAt(this, 0);\n    this.removeAt(0);\n    return ret;\n  },\n  unshiftObject(obj) {\n    return insertAt(this, 0, obj);\n  },\n  unshiftObjects(objects) {\n    this.replace(0, 0, objects);\n    return this;\n  },\n  reverseObjects() {\n    let len = this.length;\n    if (len === 0) {\n      return this;\n    }\n    let objects = this.toArray().reverse();\n    this.replace(0, len, objects);\n    return this;\n  },\n  setObjects(objects) {\n    if (objects.length === 0) {\n      return this.clear();\n    }\n    let len = this.length;\n    this.replace(0, len, objects);\n    return this;\n  },\n  removeObject(obj) {\n    let loc = this.length || 0;\n    while (--loc >= 0) {\n      let curObject = objectAt(this, loc);\n      if (curObject === obj) {\n        this.removeAt(loc);\n      }\n    }\n    return this;\n  },\n  removeObjects(objects) {\n    beginPropertyChanges();\n    for (let i = objects.length - 1; i >= 0; i--) {\n      // SAFETY: Due to the loop structure we know this will always exist.\n      this.removeObject(objects[i]);\n    }\n    endPropertyChanges();\n    return this;\n  },\n  addObject(obj) {\n    let included = this.includes(obj);\n    if (!included) {\n      this.pushObject(obj);\n    }\n    return this;\n  },\n  addObjects(objects) {\n    beginPropertyChanges();\n    objects.forEach(obj => this.addObject(obj));\n    endPropertyChanges();\n    return this;\n  }\n});\n\n/**\n  Creates an `NativeArray` from an Array-like object.\n  Does not modify the original object's contents.\n    \n  This exists primarily for historic reasons and should not be used\n  in new code. Prefer native [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)\n  or [trackedArray](/ember/release/functions/@ember%2Freactive%2Fcollections/trackedArray).\n\n  Example\n\n  ```app/components/my-component.js\n  import Component from '@ember/component';\n  import { A } from '@ember/array';\n\n  export default Component.extend({\n    tagName: 'ul',\n    classNames: ['pagination'],\n\n    init() {\n      this._super(...arguments);\n\n      if (!this.get('content')) {\n        this.set('content', A());\n        this.set('otherContent', A([1,2,3]));\n      }\n    }\n  });\n  ```\n\n  @method A\n  @static\n  @for @ember/array\n  @return {Ember.NativeArray}\n  @public\n*/\n\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\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\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 */\n\n// This is the same as MutableArray, but removes the actual native methods that exist on Array.prototype.\n\n/**\n  The NativeArray mixin contains the properties needed to make the native\n  Array support MutableArray and all of its dependent APIs.\n\n  @class Ember.NativeArray\n  @uses MutableArray\n  @uses Observable\n  @public\n*/\n\nlet NativeArray = Mixin[INTERNAL_MIXIN_CREATE](MutableArray, Observable, {\n  objectAt(idx) {\n    return this[idx];\n  },\n  // primitive for array support.\n  replace(start, deleteCount, items = EMPTY_ARRAY) {\n    replaceInNativeArray(this, start, deleteCount, items);\n    return this;\n  }\n});\n\n// Remove any methods implemented natively so we don't override them\nconst ignore = ['length'];\nNativeArray.keys().forEach(methodName => {\n  // SAFETY: It's safe to read unknown properties from an object\n  if (Array.prototype[methodName]) {\n    ignore.push(methodName);\n  }\n});\nNativeArray = NativeArray.without(...ignore);\nlet A;\nA = function (arr) {\n  if (isEmberArray(arr)) {\n    // SAFETY: If it's a true native array and it is also an EmberArray then it should be an Ember NativeArray\n    return arr;\n  } else {\n    // SAFETY: This will return an NativeArray but TS can't infer that.\n    return NativeArray.apply(arr ?? []);\n  }\n};\n\nexport { A, MutableArray, NativeArray, EmberArray as default, removeAt, uniqBy };\n","import '../../../shared-chunks/property_get-DuDs6rLg.js';\nimport typeOf from '../../utils/lib/type-of.js';\nimport { isEmberArray } from '../-internals.js';\n\n/**\n @module @ember/array\n*/\n\n/**\n  Returns true if the passed object is an array or Array-like.\n\n  Objects are considered Array-like if any of the following are true:\n\n    - the object is a native Array\n    - the object has an objectAt property\n    - the object is an Object, and has a length property\n\n  Unlike `typeOf` this method returns true even if the passed object is\n  not formally an array but appears to be array-like (i.e. implements `Array`)\n\n  ```javascript\n  import { isArray } from '@ember/array';\n  import ArrayProxy from '@ember/array/proxy';\n\n  isArray();                                      // false\n  isArray([]);                                    // true\n  isArray(ArrayProxy.create({ content: [] }));    // true\n  ```\n\n  @method isArray\n  @static\n  @for @ember/array\n  @param {Object} obj The object to test\n  @return {Boolean} true if the passed object is an array or Array-like\n  @public\n*/\nfunction isArray(obj) {\n\n  // SAFETY: Property read checks are safe if it's an object\n  if (!obj || obj.setInterval) {\n    return false;\n  }\n\n  // EmberArray's `init` brands every instance via `setEmberArray`; the only\n  // unbranded EmberArray objects are native arrays upgraded by `A()`, which\n  // `Array.isArray` catches. So this matches `EmberArray.detect` without\n  // pulling in the mixin's module.\n  if (Array.isArray(obj) || isEmberArray(obj)) {\n    return true;\n  }\n  let type = typeOf(obj);\n  if ('array' === type) {\n    return true;\n  }\n\n  // SAFETY: Property read checks are safe if it's an object\n  let length = obj.length;\n  if (typeof length === 'number' && length === length && 'object' === type) {\n    return true;\n  }\n  return false;\n}\n\nexport { isArray as default };\n","const {\n  isArray\n} = Array;\n/**\n @module @ember/array\n*/\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 */\n\nfunction makeArray(obj) {\n  if (obj === null || obj === undefined) {\n    return [];\n  }\n  return isArray(obj) ? obj : [obj];\n}\n\nexport { makeArray as default };\n","import { o as objectAt, a as tagForProperty } from '../../shared-chunks/chain-tags-BlsXEpE-.js';\nimport { a as alias } from '../../shared-chunks/alias-DvgufSYq.js';\nimport { P as PROPERTY_DID_CHANGE } from '../../shared-chunks/computed-ZvOk7SJQ.js';\nimport { r as replace, a as arrayContentWillChange, b as arrayContentDidChange, c as addArrayObserver, d as removeArrayObserver } from '../../shared-chunks/array-CK__rqeu.js';\nimport { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { i as isObject } from '../../shared-chunks/spec-BXl1reqK.js';\nimport EmberObject from '../object/index.js';\nimport { MutableArray } from './index.js';\nimport { deprecateUntil, DEPRECATIONS } from '../-internals/deprecations/index.js';\nimport { s as setCustomTagFor } from '../../shared-chunks/args-proxy-BHODnDyt.js';\nimport { c as consumeTag, v as validateTag, a as valueForTag, d as combine } from '../../shared-chunks/cache-CofLhaS4.js';\nimport { t as tagFor } from '../../shared-chunks/meta-BJtIZDir.js';\n\n/**\n@module @ember/array/proxy\n*/\n\nconst ARRAY_OBSERVER_MAPPING = {\n  willChange: '_arrangedContentArrayWillChange',\n  didChange: '_arrangedContentArrayDidChange'\n};\nfunction customTagForArrayProxy(proxy, key) {\n  if (key === '[]') {\n    proxy._revalidate();\n    return proxy._arrTag;\n  } else if (key === 'length') {\n    proxy._revalidate();\n    return proxy._lengthTag;\n  }\n  return tagFor(proxy, key);\n}\n\n/**\n  An ArrayProxy wraps any other object that implements `Array` and/or\n  `MutableArray,` forwarding all requests. This makes it very useful for\n  a number of binding use cases or other cases where being able to swap\n  out the underlying array is useful.\n\n  A simple example of usage:\n\n  ```javascript\n  import { A } from '@ember/array';\n  import ArrayProxy from '@ember/array/proxy';\n\n  let pets = ['dog', 'cat', 'fish'];\n  let ap = ArrayProxy.create({ content: A(pets) });\n\n  ap.get('firstObject');                        // 'dog'\n  ap.set('content', ['amoeba', 'paramecium']);\n  ap.get('firstObject');                        // 'amoeba'\n  ```\n\n  This class can also be useful as a layer to transform the contents of\n  an array, as they are accessed. This can be done by overriding\n  `objectAtContent`:\n\n  ```javascript\n  import { A } from '@ember/array';\n  import ArrayProxy from '@ember/array/proxy';\n\n  let pets = ['dog', 'cat', 'fish'];\n  let ap = ArrayProxy.create({\n      content: A(pets),\n      objectAtContent: function(idx) {\n          return this.get('content').objectAt(idx).toUpperCase();\n      }\n  });\n\n  ap.get('firstObject'); // . 'DOG'\n  ```\n\n  When overriding this class, it is important to place the call to\n  `_super` *after* setting `content` so the internal observers have\n  a chance to fire properly:\n\n  ```javascript\n  import { A } from '@ember/array';\n  import ArrayProxy from '@ember/array/proxy';\n\n  export default ArrayProxy.extend({\n    init() {\n      this.set('content', A(['dog', 'cat', 'fish']));\n      this._super(...arguments);\n    }\n  });\n  ```\n\n  @class ArrayProxy\n  @extends EmberObject\n  @uses MutableArray\n  @public\n  @deprecated Use a tracked array or a native `Proxy` instead.\n*/\n\nclass ArrayProxy extends EmberObject {\n  /*\n    `this._objectsDirtyIndex` determines which indexes in the `this._objects`\n    cache are dirty.\n     If `this._objectsDirtyIndex === -1` then no indexes are dirty.\n    Otherwise, an index `i` is dirty if `i >= this._objectsDirtyIndex`.\n     Calling `objectAt` with a dirty index will cause the `this._objects`\n    cache to be recomputed.\n  */\n  /** @internal */\n  _objectsDirtyIndex = 0;\n  /** @internal */\n  _objects = null;\n\n  /** @internal */\n  _lengthDirty = true;\n  /** @internal */\n  _length = 0;\n\n  /** @internal */\n  _arrangedContent = null;\n  /** @internal */\n  _arrangedContentIsUpdating = false;\n  /** @internal */\n  _arrangedContentTag = null;\n  /** @internal */\n  _arrangedContentRevision = null;\n  /** @internal */\n  _lengthTag = null;\n  /** @internal */\n  _arrTag = null;\n  init(props) {\n    super.init(props);\n    deprecateUntil('`ArrayProxy` is deprecated. Use a tracked array (for example `TrackedArray` from `tracked-built-ins`) or a native `Proxy` instead.', DEPRECATIONS.DEPRECATE_ARRAY_PROXY);\n    setCustomTagFor(this, customTagForArrayProxy);\n  }\n  [PROPERTY_DID_CHANGE]() {\n    this._revalidate();\n  }\n  willDestroy() {\n    this._removeArrangedContentArrayObserver();\n  }\n  objectAtContent(idx) {\n    let arrangedContent = get(this, 'arrangedContent');\n    return objectAt(arrangedContent, idx);\n  }\n\n  // See additional docs for `replace` from `MutableArray`:\n  // https://api.emberjs.com/ember/release/classes/MutableArray/methods/replace?anchor=replace\n  replace(idx, amt, objects) {\n    this.replaceContent(idx, amt, objects);\n  }\n  replaceContent(idx, amt, objects) {\n    let content = get(this, 'content');\n    replace(content, idx, amt, objects);\n  }\n\n  // Overriding objectAt is not supported.\n  objectAt(idx) {\n    this._revalidate();\n    if (this._objects === null) {\n      this._objects = [];\n    }\n    if (this._objectsDirtyIndex !== -1 && idx >= this._objectsDirtyIndex) {\n      let arrangedContent = get(this, 'arrangedContent');\n      if (arrangedContent) {\n        let length = this._objects.length = get(arrangedContent, 'length');\n        for (let i = this._objectsDirtyIndex; i < length; i++) {\n          // 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.\n          this._objects[i] = this.objectAtContent(i);\n        }\n      } else {\n        this._objects.length = 0;\n      }\n      this._objectsDirtyIndex = -1;\n    }\n    return this._objects[idx];\n  }\n\n  // Overriding length is not supported.\n  get length() {\n    this._revalidate();\n    if (this._lengthDirty) {\n      let arrangedContent = get(this, 'arrangedContent');\n      this._length = arrangedContent ? get(arrangedContent, 'length') : 0;\n      this._lengthDirty = false;\n    }\n    consumeTag(this._lengthTag);\n    return this._length;\n  }\n  set length(value) {\n    let length = this.length;\n    let removedCount = length - value;\n    let added;\n    if (removedCount === 0) {\n      return;\n    } else if (removedCount < 0) {\n      added = new Array(-removedCount);\n      removedCount = 0;\n    }\n    let content = get(this, 'content');\n    if (content) {\n      replace(content, value, removedCount, added);\n      this._invalidate();\n    }\n  }\n  _updateArrangedContentArray(arrangedContent) {\n    let oldLength = this._objects === null ? 0 : this._objects.length;\n    let newLength = arrangedContent ? get(arrangedContent, 'length') : 0;\n    this._removeArrangedContentArrayObserver();\n    arrayContentWillChange(this, 0, oldLength, newLength);\n    this._invalidate();\n    arrayContentDidChange(this, 0, oldLength, newLength, false);\n    this._addArrangedContentArrayObserver(arrangedContent);\n  }\n  _addArrangedContentArrayObserver(arrangedContent) {\n    if (arrangedContent && !arrangedContent.isDestroyed) {\n      addArrayObserver(arrangedContent, this, ARRAY_OBSERVER_MAPPING);\n      this._arrangedContent = arrangedContent;\n    }\n  }\n  _removeArrangedContentArrayObserver() {\n    if (this._arrangedContent) {\n      removeArrayObserver(this._arrangedContent, this, ARRAY_OBSERVER_MAPPING);\n    }\n  }\n  _arrangedContentArrayWillChange() {}\n  _arrangedContentArrayDidChange(_proxy, idx, removedCnt, addedCnt) {\n    arrayContentWillChange(this, idx, removedCnt, addedCnt);\n    let dirtyIndex = idx;\n    if (dirtyIndex < 0) {\n      let length = get(this._arrangedContent, 'length');\n      dirtyIndex += length + removedCnt - addedCnt;\n    }\n    if (this._objectsDirtyIndex === -1 || this._objectsDirtyIndex > dirtyIndex) {\n      this._objectsDirtyIndex = dirtyIndex;\n    }\n    this._lengthDirty = true;\n    arrayContentDidChange(this, idx, removedCnt, addedCnt, false);\n  }\n  _invalidate() {\n    this._objectsDirtyIndex = 0;\n    this._lengthDirty = true;\n  }\n  _revalidate() {\n    if (this._arrangedContentIsUpdating === true) return;\n    if (this._arrangedContentTag === null || !validateTag(this._arrangedContentTag, this._arrangedContentRevision)) {\n      let arrangedContent = this.get('arrangedContent');\n      if (this._arrangedContentTag === null) {\n        // This is the first time the proxy has been setup, only add the observer\n        // don't trigger any events\n        this._addArrangedContentArrayObserver(arrangedContent);\n      } else {\n        this._arrangedContentIsUpdating = true;\n        this._updateArrangedContentArray(arrangedContent);\n        this._arrangedContentIsUpdating = false;\n      }\n      let arrangedContentTag = this._arrangedContentTag = tagFor(this, 'arrangedContent');\n      this._arrangedContentRevision = valueForTag(this._arrangedContentTag);\n      if (isObject(arrangedContent)) {\n        this._lengthTag = combine([arrangedContentTag, tagForProperty(arrangedContent, 'length')]);\n        this._arrTag = combine([arrangedContentTag, tagForProperty(arrangedContent, '[]')]);\n      } else {\n        this._lengthTag = this._arrTag = arrangedContentTag;\n      }\n    }\n  }\n}\nArrayProxy.reopen(MutableArray, {\n  arrangedContent: alias('content')\n});\n\nexport { ArrayProxy as default };\n","import { E as ENV } from '../../shared-chunks/env-DXxsTFkM.js';\n\n/**\n  Set `EmberENV.FEATURES` in your application's `config/environment.js` file\n  to enable canary features in your application.\n\n  See the [feature flag guide](https://guides.emberjs.com/release/configuring-ember/feature-flags/)\n  for more details.\n\n  @module @ember/canary-features\n  @public\n*/\n\nconst DEFAULT_FEATURES = {\n  // FLAG_NAME: true/false\n};\n\n/**\n  The hash of enabled Canary features. Add to this, any canary features\n  before creating your application.\n\n  @class FEATURES\n  @static\n  @since 1.1.0\n  @public\n*/\nconst FEATURES = Object.assign(DEFAULT_FEATURES, ENV.FEATURES);\n\n/**\n  Determine whether the specified `feature` is enabled. Used by Ember's\n  build tools to exclude experimental features from beta/stable builds.\n\n  You can define the following configuration options:\n\n  * `EmberENV.ENABLE_OPTIONAL_FEATURES` - enable any features that have not been explicitly\n    enabled/disabled.\n\n  @method isEnabled\n  @param {String} feature The feature to check\n  @return {Boolean}\n  @since 1.1.0\n  @public\n*/\nfunction isEnabled(feature) {\n  let value = FEATURES[feature];\n  if (value === true || value === false) {\n    return value;\n  } else if (ENV.ENABLE_OPTIONAL_FEATURES) {\n    return true;\n  } else {\n    return false;\n  }\n}\n\n// Uncomment the below when features are present:\n\n// function featureValue(value: null | boolean) {\n//   if (ENV.ENABLE_OPTIONAL_FEATURES && value === null) {\n//     return true;\n//   }\n\n//   return value;\n// }\n//\n// export const FLAG_NAME = featureValue(FEATURES.FLAG_NAME);\n\nexport { DEFAULT_FEATURES, FEATURES, isEnabled };\n","import { setOwner } from '../-internals/owner/index.js';\nimport { FrameworkObject } from '../object/-internals.js';\nimport { g as getDebugName } from '../../shared-chunks/get-debug-name-BDxIL2Y1.js';\nimport { join } from '../runloop/index.js';\nimport { i as helperCapabilities } from '../../shared-chunks/api-DJnXAjon.js';\nimport { b as setHelperManager } from '../../shared-chunks/api-CoUjEXgs.js';\nimport { r as createTag, D as DIRTY_TAG, c as consumeTag } from '../../shared-chunks/cache-CofLhaS4.js';\nimport { I as IS_CLASSIC_HELPER } from '../../shared-chunks/helper-brand-C9_8vvOf.js';\n\n/**\n@module @ember/component\n*/\n\nconst RECOMPUTE_TAG = Symbol('RECOMPUTE_TAG');\n\n// Signature type utilities\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\n\n// Implements Ember's `Factory` interface and tags it for narrowing/checking.\n\n// A zero-runtime-overhead private symbol to use in branding the component to\n// preserve its type parameter.\n\n/**\n  Ember Helpers are functions that can compute values, and are used in templates.\n  For example, this code calls a helper named `format-currency`:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import Cost from '../components/cost';\n\n  <template>\n    <Cost @cents={{230}} />\n  </template>\n  ```\n\n  ```gjs {data-filename=\"app/components/cost.gjs\"}\n  import formatCurrency from '../helpers/format-currency';\n\n  <template>\n    <div>{{formatCurrency @cents currency=\"$\"}}</div>\n  </template>\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  ```gjs\n  import formatCurrency from '../helpers/format-currency';\n\n  <template>\n    {{if @showMoney (formatCurrency @cents currency=\"$\")}}\n  </template>\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*/\n// ESLint doesn't understand declaration merging.\n/* eslint-disable import/export */\n\nclass Helper extends FrameworkObject {\n  static isHelperFactory = true;\n  static [IS_CLASSIC_HELPER] = true;\n\n  // `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 */\n  static helper = helper;\n\n  // 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\n  // SAFETY: this has no runtime existence whatsoever; it is a \"phantom type\"\n  // here to preserve the type param.\n\n  init(properties) {\n    super.init(properties);\n    this[RECOMPUTE_TAG] = createTag();\n  }\n\n  /**\n    On a class-based helper, it may be useful to force a recomputation of that\n    helpers value. This is akin to `rerender` on a component.\n     In most cases, `recompute` is not needed because accessing tracked\n    properties in `compute` will automatically re-run the helper when\n    those properties change. Use `recompute` only when you need to\n    trigger a recomputation imperatively, for example in response to an\n    external event:\n     ```app/helpers/current-time.js\n    import Helper from '@ember/component/helper';\n     export default class CurrentTimeHelper extends Helper {\n      interval = null;\n       compute() {\n        return new Date().toLocaleTimeString();\n      }\n       constructor() {\n        super(...arguments);\n        this.interval = setInterval(() => this.recompute(), 1000);\n      }\n       willDestroy() {\n        super.willDestroy();\n        clearInterval(this.interval);\n      }\n    }\n    ```\n     @method recompute\n    @public\n    @since 1.13.0\n  */\n  recompute() {\n    join(() => DIRTY_TAG(this[RECOMPUTE_TAG]));\n  }\n}\n/* eslint-enable import/export */\n\nclass ClassicHelperManager {\n  capabilities = helperCapabilities('3.23', {\n    hasValue: true,\n    hasDestroyable: true\n  });\n  ownerInjection;\n  constructor(owner) {\n    let ownerInjection = {};\n    setOwner(ownerInjection, owner);\n    this.ownerInjection = ownerInjection;\n  }\n  createHelper(definition, args) {\n    let instance = isFactoryManager(definition) ? definition.create() : definition.create(this.ownerInjection);\n    return {\n      instance,\n      args\n    };\n  }\n  getDestroyable({\n    instance\n  }) {\n    return instance;\n  }\n  getValue({\n    instance,\n    args\n  }) {\n    let {\n      positional,\n      named\n    } = args;\n    let ret = instance.compute(positional, named);\n    consumeTag(instance[RECOMPUTE_TAG]);\n    return ret;\n  }\n  getDebugName(definition) {\n    return getDebugName((definition.class || definition)['prototype']);\n  }\n}\nfunction isFactoryManager(obj) {\n  return obj != null && 'class' in obj;\n}\nsetHelperManager(owner => {\n  return new ClassicHelperManager(owner);\n}, Helper);\n\n///////////\n\nclass Wrapper {\n  isHelperFactory = true;\n  constructor(compute) {\n    this.compute = compute;\n  }\n  create() {\n    // needs new instance or will leak containers\n    return {\n      compute: this.compute\n    };\n  }\n}\nclass SimpleClassicHelperManager {\n  capabilities = helperCapabilities('3.23', {\n    hasValue: true\n  });\n  createHelper(definition, args) {\n    return () => definition.compute.call(null, args.positional, args.named);\n  }\n  getValue(fn) {\n    return fn();\n  }\n  getDebugName(definition) {\n    return getDebugName(definition.compute);\n  }\n}\nconst SIMPLE_CLASSIC_HELPER_MANAGER = new SimpleClassicHelperManager();\nsetHelperManager(() => SIMPLE_CLASSIC_HELPER_MANAGER, Wrapper.prototype);\n\n/*\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\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 */\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\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/**\n  In many cases it is not necessary to use the full `Helper` class.\n  The `helper` method create pure-function helpers without instances.\n  For example:\n\n  ```app/helpers/format-currency.js\n  import { helper } from '@ember/component/helper';\n\n  export default helper(function([cents], {currency}) {\n    return `${currency}${cents * 0.01}`;\n  });\n  ```\n\n  @static\n  @param {Function} helper The helper function\n  @method helper\n  @for @ember/component/helper\n  @public\n  @since 1.13.0\n*/\n// This overload allows users to write types directly on the callback passed to\n// the `helper` function and infer the resulting type correctly.\n\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.\n\nfunction helper(helperFn) {\n  // 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.\n  return new Wrapper(helperFn);\n}\n\nexport { Helper as default, helper };\n","export { g as getComponentTemplate, s as setComponentTemplate } from '../../shared-chunks/template-Dc_cBOoX.js';\nimport { n as nativeDescDecorator } from '../../shared-chunks/decorator-DcvVDSJV.js';\nimport { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { P as PROPERTY_DID_CHANGE } from '../../shared-chunks/computed-ZvOk7SJQ.js';\nimport { getOwner } from '../-internals/owner/index.js';\nimport TargetActionSupport from '../-internals/runtime/lib/mixins/target_action_support.js';\nimport ActionSupport from '../-internals/views/lib/mixins/action_support.js';\nimport { getViewElement, getChildViews, addChildView } from '../-internals/views/lib/system/utils.js';\nimport CoreView from '../-internals/views/lib/views/core_view.js';\nimport '../object/index.js';\nimport { g as guidFor } from '../../shared-chunks/guid-Cbq2sNV_.js';\nimport { s as setInternalComponentManager } from '../../shared-chunks/api-DJnXAjon.js';\nimport { b as isUpdatableRef, u as updateRef } from '../../shared-chunks/reference-CccCE8mJ.js';\nimport { n as normalizeProperty } from '../../shared-chunks/props-fiqxqhAH.js';\nimport { r as createTag, D as DIRTY_TAG$1 } from '../../shared-chunks/cache-CofLhaS4.js';\nimport { I as IS_DISPATCHING_ATTRS, D as DIRTY_TAG, B as BOUNDS, g as getComponentCapturedArgs, b as CURLY_COMPONENT_MANAGER } from '../../shared-chunks/curly-Bg--Dj0X.js';\nimport { h as hasDOM } from '../../shared-chunks/has-dom-DdQORPzI.js';\nimport { a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';\nexport { I as Input, T as Textarea } from '../../shared-chunks/textarea-D_2paF6I.js';\nimport { s as setComponentManager$1 } from '../../shared-chunks/api-CoUjEXgs.js';\nexport { c as capabilities } from '../../shared-chunks/api-CoUjEXgs.js';\nimport '../../shared-chunks/capabilities-BuVYh-vx.js';\n\nlet lazyEventsProcessed = new WeakMap();\nconst EMPTY_ARRAY = Object.freeze([]);\n\n/**\n@module @ember/component\n*/\n\n// A zero-runtime-overhead private symbol to use in branding the component to\n// preserve its type parameter.\n\n/**\n  A component is a reusable UI element that consists of a `.hbs` template and an\n  optional JavaScript class that defines its behavior. For example, someone\n  might make a `button` in the template and handle the click behavior in the\n  JavaScript file that shares the same name as the template.\n\n  Components are broken down into two categories:\n\n  - Components _without_ JavaScript, that are based only on a template. These\n    are called Template-only or TO components.\n  - Components _with_ JavaScript, which consist of a template and a backing\n    class.\n\n  Ember ships with two types of JavaScript classes for components:\n\n  1. Glimmer components, imported from `@glimmer/component`, which are the\n     default component's for Ember Octane (3.15) and more recent editions.\n  2. Classic components, imported from `@ember/component`, which were the\n     default for older editions of Ember (pre 3.15).\n\n  Below is the documentation for Classic components. If you are looking for the\n  API documentation for Template-only or Glimmer components, it is [available\n  here](/ember/release/modules/@glimmer%2Fcomponent).\n\n  Note: Prior to Ember 6.8, by default, components were authored in paired `.hbs` and `.js`\n  files. This is still supported, but the default authoring format is now `.gjs` or \"template tag\".\n  The documentation for `@ember/component` still refers to the older authoring format. To read about\n  the new authoring format, see the \n  [Glimmer Component API documentation](/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 class extends Component {\n    @computed('person.title', 'person.firstName', 'person.lastName')\n    get displayName() {\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/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 class extends Component {\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 class extends Component {\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 class extends Component {\n    classNames = ['my-class', 'my-other-class'];\n    classNameBindings = ['propertyA', 'propertyB'];\n\n    propertyA = 'from-a';\n\n    get propertyB {\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 class extends Component {\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 class extends Component {\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 class extends Component {\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 class extends Component {\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 class extends Component {\n    classNameBindings = ['isEnabled:enabled:disabled'];\n\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 class extends Component {\n    classNameBindings = ['isEnabled::disabled'];\n\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 class extends Component {\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 class extends Component {\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 class extends Component {\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 class extends Component {\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 class extends Component {\n    tagName = 'input';\n    attributeBindings = ['disabled'];\n\n    get disabled() {\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 class extends Component {\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/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 class extends Component {\n      layout = 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`](../functions/Keywords/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 class extends Component {\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.ActionSupport\n  @public\n*/\n// This type param is used in the class, so must appear here.\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\nclass Component extends CoreView.extend(TargetActionSupport, ActionSupport, {\n  // 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.\n  didReceiveAttrs() {},\n  didRender() {},\n  didUpdate() {},\n  didUpdateAttrs() {},\n  willRender() {},\n  willUpdate() {}\n}, {\n  concatenatedProperties: ['attributeBindings', 'classNames', 'classNameBindings'],\n  classNames: EMPTY_ARRAY,\n  classNameBindings: EMPTY_ARRAY\n}) {\n  isComponent = true;\n\n  // SAFETY: this has no runtime existence whatsoever; it is a \"phantom type\"\n  // here to preserve the type param.\n\n  // SAFTEY: This is set in `init`.\n\n  /**\n    Standard CSS class names to apply to the view's outer element. This\n    property automatically inherits any class names defined by the view's\n    superclasses as well.\n     @property classNames\n    @type Array\n    @default ['ember-view']\n    @public\n  */\n\n  /**\n    A list of properties of the view to apply as class names. If the property\n    is a string value, the value of that string will be applied as a class\n    name.\n     ```javascript\n    // Applies the 'high' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['priority'],\n      priority: 'high'\n    });\n    ```\n     If the value of the property is a Boolean, the name of that property is\n    added as a dasherized class name.\n     ```javascript\n    // Applies the 'is-urgent' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['isUrgent'],\n      isUrgent: true\n    });\n    ```\n     If you would prefer to use a custom value instead of the dasherized\n    property name, you can pass a binding like this:\n     ```javascript\n    // Applies the 'urgent' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['isUrgent:urgent'],\n      isUrgent: true\n    });\n    ```\n     If you would like to specify a class that should only be added when the\n    property is false, you can declare a binding like this:\n     ```javascript\n    // Applies the 'disabled' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['isEnabled::disabled'],\n      isEnabled: false\n    });\n    ```\n     This list of properties is inherited from the component's superclasses as well.\n     @property classNameBindings\n    @type Array\n    @default []\n    @public\n  */\n\n  init(properties) {\n    super.init(properties);\n\n    // 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.\n    this._superRerender = this.rerender;\n    this.rerender = this._rerender;\n    this[IS_DISPATCHING_ATTRS] = false;\n    this[DIRTY_TAG] = createTag();\n    this[BOUNDS] = null;\n    const eventDispatcher = this._dispatcher;\n    if (eventDispatcher) {\n      let lazyEventsProcessedForComponentClass = lazyEventsProcessed.get(eventDispatcher);\n      if (!lazyEventsProcessedForComponentClass) {\n        lazyEventsProcessedForComponentClass = new WeakSet();\n        lazyEventsProcessed.set(eventDispatcher, lazyEventsProcessedForComponentClass);\n      }\n      let proto = Object.getPrototypeOf(this);\n      if (!lazyEventsProcessedForComponentClass.has(proto)) {\n        let lazyEvents = eventDispatcher.lazyEvents;\n        lazyEvents.forEach((mappedEventName, event) => {\n          if (mappedEventName !== null && typeof this[mappedEventName] === 'function') {\n            eventDispatcher.setupHandlerForBrowserEvent(event);\n          }\n        });\n        lazyEventsProcessedForComponentClass.add(proto);\n      }\n    }\n    if (!this.elementId && this.tagName !== '') {\n      this.elementId = guidFor(this);\n    }\n  }\n  __dispatcher;\n  get _dispatcher() {\n    if (this.__dispatcher === undefined) {\n      let owner = getOwner(this);\n      if (owner.lookup('-environment:main').isInteractive) {\n        let dispatcher = owner.lookup('event_dispatcher:main');\n        this.__dispatcher = dispatcher;\n      } else {\n        // In FastBoot we have no EventDispatcher. Set to null to not try again to look it up.\n        this.__dispatcher = null;\n      }\n    }\n    return this.__dispatcher;\n  }\n  on(name, target, method) {\n    this._dispatcher?.setupHandlerForEmberEvent(name);\n    // 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`.\n    return super.on(name, target, method);\n  }\n\n  // Changed to `rerender` on init\n  _rerender() {\n    DIRTY_TAG$1(this[DIRTY_TAG]);\n    this._superRerender();\n  }\n  [PROPERTY_DID_CHANGE](key, value) {\n    if (this[IS_DISPATCHING_ATTRS]) {\n      return;\n    }\n    let args = getComponentCapturedArgs(this);\n    let reference = args !== undefined ? args[key] : undefined;\n    if (reference !== undefined && isUpdatableRef(reference)) {\n      updateRef(reference, arguments.length === 2 ? value : get(this, key));\n    }\n  }\n  getAttr(key) {\n    // TODO Intimate API should be deprecated\n    return this.get(key);\n  }\n\n  /**\n    Normally, Ember's component model is \"write-only\". The component takes a\n    bunch of attributes that it got passed in, and uses them to render its\n    template.\n     One nice thing about this model is that if you try to set a value to the\n    same thing as last time, Ember (through HTMLBars) will avoid doing any\n    work on the DOM.\n     This is not just a performance optimization. If an attribute has not\n    changed, it is important not to clobber the element's \"hidden state\".\n    For example, if you set an input's `value` to the same value as before,\n    it will clobber selection state and cursor position. In other words,\n    setting an attribute is not **always** idempotent.\n     This method provides a way to read an element's attribute and also\n    update the last value Ember knows about at the same time. This makes\n    setting an attribute idempotent.\n     In particular, what this means is that if you get an `<input>` element's\n    `value` attribute and then re-render the template with the same value,\n    it will avoid clobbering the cursor and selection position.\n    Since most attribute sets are idempotent in the browser, you typically\n    can get away with reading attributes using jQuery, but the most reliable\n    way to do so is through this method.\n    @method readDOMAttr\n     @param {String} name the name of the attribute\n    @return String\n    @public\n    */\n  readDOMAttr(name) {\n    // TODO revisit this\n    let _element = getViewElement(this);\n    let element = _element;\n    let isSVG = element.namespaceURI === 'http://www.w3.org/2000/svg';\n    let {\n      type,\n      normalized\n    } = normalizeProperty(element, name);\n    if (isSVG || type === 'attr') {\n      return element.getAttribute(normalized);\n    }\n    return element[normalized];\n  }\n\n  // --- 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  /**\n   A list of properties of the view to apply as attributes. If the property\n   is a string value, the value of that string will be applied as the value\n   for an attribute of the property's name.\n    The following example creates a tag like `<div priority=\"high\" />`.\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    export default Component.extend({\n      attributeBindings: ['priority'],\n      priority: 'high'\n    });\n   ```\n    If the value of the property is a Boolean, the attribute is treated as\n   an HTML Boolean attribute. It will be present if the property is `true`\n   and omitted if the property is `false`.\n    The following example creates markup like `<div visible />`.\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    export default Component.extend({\n      attributeBindings: ['visible'],\n      visible: true\n    });\n   ```\n    If you would prefer to use a custom value instead of the property name,\n   you can create the same markup as the last example with a binding like\n   this:\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    export default Component.extend({\n      attributeBindings: ['isVisible:visible'],\n      isVisible: true\n    });\n   ```\n    This list of attributes is inherited from the component's superclasses,\n   as well.\n    @property attributeBindings\n   @type Array\n   @default []\n   @public\n   */\n\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     export default class MyComponent extends Component {\n      static positionalParams = ['name', 'age'];\n    }\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     export default class MyComponent extends Component {\n      static positionalParams = 'names';\n    }\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       export default class MyComponent extends Component {\n       static positionalParams = ['name', 'age'];\n       }\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       export default class MyComponent extends Component {\n       static positionalParams = 'names';\n       }\n       ```\n       It can then be invoked like this:\n       ```hbs\n       {{my-component \"John\" \"Michael\" \"Scott\"}}\n       ```\n       The parameters can then be referred to by enumerating over the list:\n       ```hbs\n       {{#each names as |name|}}{{name}}{{/each}}\n       ```\n       @static\n       @public\n       @property positionalParams\n       @since 1.13.0\n       */\n\n  /**\n    Layout can be used to wrap content in a component.\n    @property layout\n    @type Function\n    @public\n  */\n\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\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    */\n\n  /**\n    Array of child views. You should never edit this array directly.\n     @property childViews\n    @type Array\n    @default []\n    @private\n  */\n  // @ts-expect-error TODO: Fix these types\n  get childViews() {\n    return getChildViews(this);\n  }\n  static {\n    decorateMethodV2(this.prototype, \"childViews\", [nativeDescDecorator({\n      configurable: false,\n      enumerable: false\n    })]);\n  }\n  appendChild(view) {\n    addChildView(this, view);\n  }\n  _transitionTo(state) {\n    let priorState = this._currentState;\n    let currentState = this._currentState = this._states[state];\n    this._state = state;\n    if (priorState && priorState.exit) {\n      priorState.exit(this);\n    }\n    if (currentState.enter) {\n      currentState.enter(this);\n    }\n  }\n\n  // Begin ViewMixin\n\n  // ..........................................................\n  // TEMPLATE SUPPORT\n  //\n\n  /**\n   Return the nearest ancestor that is an instance of the provided\n   class or mixin.\n    @method nearestOfType\n   @param {Class,Mixin} klass Subclass of Ember.View (or Ember.View itself),\n   or an instance of Mixin.\n   @return Ember.View\n   @deprecated use `yield` and contextual components for composition instead.\n   @private\n   */\n  nearestOfType(klass) {\n    let view = this.parentView;\n    while (view) {\n      if (klass.detect(view.constructor)) {\n        return view;\n      }\n      view = view.parentView;\n    }\n    return;\n  }\n\n  /**\n   Return the nearest ancestor that has a given property.\n    @method nearestWithProperty\n   @param {String} property A property name\n   @return Ember.View\n   @deprecated use `yield` and contextual components for composition instead.\n   @private\n   */\n  nearestWithProperty(property) {\n    let view = this.parentView;\n    while (view) {\n      if (property in view) {\n        return view;\n      }\n      view = view.parentView;\n    }\n    return;\n  }\n\n  /**\n   Renders the view again. This will work regardless of whether the\n   view is already in the DOM or not. If the view is in the DOM, the\n   rendering process will be deferred to give bindings a chance\n   to synchronize.\n    If children were added during the rendering process using `appendChild`,\n   `rerender` will remove them, because they will be added again\n   if needed by the next `render`.\n    In general, if the display of your view changes, you should modify\n   the DOM element directly instead of manually calling `rerender`, which can\n   be slow.\n    @method rerender\n   @public\n   */\n  rerender() {\n    return this._currentState.rerender(this);\n  }\n\n  // ..........................................................\n  // ELEMENT SUPPORT\n  //\n\n  /**\n   Returns the current DOM element for the view.\n     @property element\n    @type DOMElement\n    @public\n  */\n  // @ts-expect-error The types are not correct here\n  get element() {\n    return this.renderer.getElement(this);\n  }\n\n  /**\n   Appends the view's element to the specified parent element.\n    Note that this method just schedules the view to be appended; the DOM\n   element will not be appended to the given element until all bindings have\n   finished synchronizing.\n    This is not typically a function that you will need to call directly when\n   building your application. If you do need to use `appendTo`, be sure that\n   the target element you are providing is associated with an `Application`\n   and does not have an ancestor element that is associated with an Ember view.\n    @method appendTo\n   @param {String|DOMElement} A selector, element, HTML string\n   @return {Ember.View} receiver\n   @private\n   */\n  static {\n    decorateMethodV2(this.prototype, \"element\", [nativeDescDecorator({\n      configurable: false,\n      enumerable: false\n    })]);\n  }\n  appendTo(selector) {\n    let target;\n    if (hasDOM) {\n      target = typeof selector === 'string' ? document.querySelector(selector) : selector;\n    } else {\n      target = selector;\n    }\n\n    // 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`.\n    this.renderer.appendTo(this, target);\n    return this;\n  }\n\n  /**\n   Appends the view's element to the document body. If the view does\n   not have an HTML representation yet\n   the element will be generated automatically.\n    If your application uses the `rootElement` property, you must append\n   the view within that element. Rendering views outside of the `rootElement`\n   is not supported.\n    Note that this method just schedules the view to be appended; the DOM\n   element will not be appended to the document body until all bindings have\n   finished synchronizing.\n    @method append\n   @return {Ember.View} receiver\n   @private\n   */\n  append() {\n    return this.appendTo(document.body);\n  }\n\n  /**\n   The HTML `id` of the view's element in the DOM. You can provide this\n   value yourself but it must be unique (just as in HTML):\n    ```handlebars\n   {{my-component elementId=\"a-really-cool-id\"}}\n   ```\n    If not manually set a default value will be provided by the framework.\n    Once rendered an element's `elementId` is considered immutable and you\n   should never change it. If you need to compute a dynamic value for the\n   `elementId`, you should do this when the component or element is being\n   instantiated:\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    export default Component.extend({\n      init() {\n        this._super(...arguments);\n        let index = this.get('index');\n        this.set('elementId', 'component-id' + index);\n      }\n    });\n   ```\n    @property elementId\n   @type String\n   @public\n   */\n\n  /**\n   Called when a view is going to insert an element into the DOM.\n    @event willInsertElement\n   @public\n   */\n  willInsertElement() {\n    return this;\n  }\n\n  /**\n   Called when the element of the view has been inserted into the DOM.\n   Override this function to do any set up that requires an element\n   in the document body.\n    When a view has children, didInsertElement will be called on the\n   child view(s) first and on itself afterwards.\n    @event didInsertElement\n   @public\n   */\n  didInsertElement() {\n    return this;\n  }\n\n  /**\n   Called when the view is about to rerender, but before anything has\n   been torn down. This is a good opportunity to tear down any manual\n   observers you have installed based on the DOM state\n    @event willClearRender\n   @public\n   */\n  willClearRender() {\n    return this;\n  }\n\n  /**\n   You must call `destroy` on a view to destroy the view (and all of its\n   child views). This will remove the view from any parent node, then make\n   sure that the DOM element managed by the view can be released by the\n   memory manager.\n    @method destroy\n   @private\n   */\n  destroy() {\n    super.destroy();\n    this._currentState.destroy(this);\n    return this;\n  }\n\n  /**\n   Called when the element of the view is going to be destroyed. Override\n   this function to do any teardown that requires an element, like removing\n   event listeners.\n    Please note: any property changes made during this event will have no\n   effect on object observers.\n    @event willDestroyElement\n   @public\n   */\n  willDestroyElement() {\n    return this;\n  }\n\n  /**\n   Called after the element of the view is destroyed.\n    @event willDestroyElement\n   @public\n   */\n  didDestroyElement() {\n    return this;\n  }\n\n  /**\n   Called when the parentView property has changed.\n    @event parentViewDidChange\n   @private\n   */\n  parentViewDidChange() {\n    return this;\n  }\n\n  // ..........................................................\n  // STANDARD RENDER PROPERTIES\n  //\n\n  /**\n   Tag name for the view's outer element. The tag name is only used when an\n   element is first created. If you change the `tagName` for an element, you\n   must destroy and recreate the view element.\n    By default, the render buffer will use a `<div>` tag for views.\n    If the tagName is `''`, the view will be tagless, with no outer element.\n   Component properties that depend on the presence of an outer element, such\n   as `classNameBindings` and `attributeBindings`, do not work with tagless\n   components. Tagless components cannot implement methods to handle events,\n   and their `element` property has a `null` value.\n    @property tagName\n   @type String\n   @default null\n   @public\n   */\n\n  // We leave this null by default so we can tell the difference between\n  // the default case and a user-specified tag.\n\n  // .......................................................\n  // EVENT HANDLING\n  //\n\n  /**\n   Handle events from `EventDispatcher`\n    @method handleEvent\n   @param eventName {String}\n   @param evt {Event}\n   @private\n   */\n  handleEvent(eventName, evt) {\n    return this._currentState.handleEvent(this, eventName, evt);\n  }\n\n  // End ViewMixin\n\n  static isComponentFactory = true;\n  static toString() {\n    return '@ember/component';\n  }\n}\n\n// We continue to use reopenClass here so that positionalParams can be overridden with reopenClass in subclasses.\nComponent.reopenClass({\n  positionalParams: []\n});\nsetInternalComponentManager(CURLY_COMPONENT_MANAGER, Component);\n\n/**\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  */\nfunction setComponentManager(manager, obj) {\n  return setComponentManager$1(manager, obj);\n}\n\nexport { Component as default, setComponentManager };\n","import { t as templateOnlyComponent } from '../../shared-chunks/template-only-CWsfnbVm.js';\n\n/**\n  @module @ember/component/template-only\n  @public\n*/\n\n\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 */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\n\n/**\n * A convenience alias for {@link TemplateOnlyComponent}\n */\n\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;\n\nexport { templateOnly as default };\n","import { getOwner } from '../-internals/owner/index.js';\nimport { c as computed } from '../../shared-chunks/computed-ZvOk7SJQ.js';\nimport { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { FrameworkObject } from '../object/-internals.js';\nimport { i as inject$1 } from '../../shared-chunks/injected_property-4vB_6fM8.js';\nimport { M as Mixin, I as INTERNAL_MIXIN_CREATE } from '../../shared-chunks/mixin-AGmJaAAY.js';\nimport ActionHandler from '../-internals/runtime/lib/mixins/action_handler.js';\n\nconst MODEL = Symbol('MODEL');\n\n/**\n@module @ember/controller\n*/\n\n/**\n  @class ControllerMixin\n  @namespace Ember\n  @uses Ember.ActionHandler\n  @private\n*/\n\nconst ControllerMixin = Mixin[INTERNAL_MIXIN_CREATE](ActionHandler, {\n  /* ducktype as a controller */\n  isController: true,\n  concatenatedProperties: ['queryParams'],\n  target: null,\n  store: null,\n  init() {\n    this._super(...arguments);\n    let owner = getOwner(this);\n    if (owner) {\n      this.namespace = owner.lookup('application:main');\n      this.target = owner.lookup('router:main');\n    }\n  },\n  model: computed({\n    get() {\n      return this[MODEL];\n    },\n    set(_key, value) {\n      return this[MODEL] = value;\n    }\n  }),\n  queryParams: null,\n  /**\n   This property is updated to various different callback functions depending on\n   the current \"state\" of the backing route. It is used by\n   `Controller.prototype._qpChanged`.\n    The methods backing each state can be found in the `Route.prototype._qp` computed\n   property return value (the `.states` property). The current values are listed here for\n   the sanity of future travelers:\n    * `inactive` - This state is used when this controller instance is not part of the active\n     route hierarchy. Set in `Route.prototype._reset` (a `router.js` microlib hook) and\n     `Route.prototype.actions.finalizeQueryParamChange`.\n   * `active` - This state is used when this controller instance is part of the active\n     route hierarchy. Set in `Route.prototype.actions.finalizeQueryParamChange`.\n   * `allowOverrides` - This state is used in `Route.prototype.setup` (`route.js` microlib hook).\n     @method _qpDelegate\n    @private\n  */\n  _qpDelegate: null,\n  // set by route\n\n  /**\n   During `Route#setup` observers are created to invoke this method\n   when any of the query params declared in `Controller#queryParams` property\n   are changed.\n    When invoked this method uses the currently active query param update delegate\n   (see `Controller.prototype._qpDelegate` for details) and invokes it with\n   the QP key/value being changed.\n     @method _qpChanged\n    @private\n  */\n  _qpChanged(controller, _prop) {\n    let dotIndex = _prop.indexOf('.[]');\n    let prop = dotIndex === -1 ? _prop : _prop.slice(0, dotIndex);\n    let delegate = controller._qpDelegate;\n    let value = get(controller, prop);\n    delegate(prop, value);\n  }\n});\n\n// NOTE: This doesn't actually extend EmberObject.\n/**\n  @class Controller\n  @extends EmberObject\n  @uses Ember.ControllerMixin\n  @public\n*/\n\nclass Controller extends FrameworkObject.extend(ControllerMixin) {}\n\n/**\n  Creates a property that lazily looks up another controller in the container.\n  Can only be used when defining another controller.\n\n  Example:\n\n  ```app/controllers/post.js\n  import Controller, {\n    inject as controller\n  } from '@ember/controller';\n\n  export default class PostController extends Controller {\n    @controller posts;\n  }\n  ```\n\n  Classic Class Example:\n\n  ```app/controllers/post.js\n  import Controller, {\n    inject as controller\n  } from '@ember/controller';\n\n  export default Controller.extend({\n    posts: controller()\n  });\n  ```\n\n  This example will create a `posts` property on the `post` controller that\n  looks up the `posts` controller in the container, making it easy to reference\n  other controllers.\n\n  @method inject\n  @static\n  @for @ember/controller\n  @since 1.10.0\n  @param {String} name (optional) name of the controller to inject, defaults to\n         the property's name\n  @return {ComputedDecorator} injection decorator instance\n  @public\n*/\n\nfunction inject(...args) {\n  return inject$1('controller', ...args);\n}\n\n/**\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*/\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\n\nexport { ControllerMixin, Controller as default, inject };\n","import { classify, dasherize } from '../-internals/string/index.js';\nimport EmberObject from '../object/index.js';\nimport typeOf from '../utils/lib/type-of.js';\nimport { getOwner } from '../-internals/owner/index.js';\nimport Namespace from '../application/namespace.js';\n\n/**\n@module @ember/debug/container-debug-adapter\n*/\n\n/**\n  The `ContainerDebugAdapter` helps the container and resolver interface\n  with tools that debug Ember such as the\n  [Ember Inspector](https://github.com/emberjs/ember-inspector)\n  for Chrome and Firefox.\n\n  This class can be extended by a custom resolver implementer\n  to override some of the methods with library-specific code.\n\n  The methods likely to be overridden are:\n\n  * `canCatalogEntriesByType`\n  * `catalogEntriesByType`\n\n  The adapter will need to be registered\n  in the application's container as `container-debug-adapter:main`.\n\n  Example:\n\n  ```javascript\n  Application.initializer({\n    name: \"containerDebugAdapter\",\n\n    initialize(application) {\n      application.register('container-debug-adapter:main', require('app/container-debug-adapter'));\n    }\n  });\n  ```\n\n  @class ContainerDebugAdapter\n  @extends EmberObject\n  @since 1.5.0\n  @public\n*/\nclass ContainerDebugAdapter extends EmberObject {\n  constructor(owner) {\n    super(owner);\n    this.resolver = getOwner(this).lookup('resolver-for-debugging:main');\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    @public\n  */\n  resolver;\n\n  /**\n    Returns true if it is possible to catalog a list of available\n    classes in the resolver for a given type.\n     @method canCatalogEntriesByType\n    @param {String} type The type. e.g. \"model\", \"controller\", \"route\".\n    @return {boolean} whether a list is available for this type.\n    @public\n  */\n  canCatalogEntriesByType(type) {\n    if (type === 'model' || type === 'template') {\n      return false;\n    }\n    return true;\n  }\n\n  /**\n    Returns the available classes a given type.\n     @method catalogEntriesByType\n    @param {String} type The type. e.g. \"model\", \"controller\", \"route\".\n    @return {Array} An array of strings.\n    @public\n  */\n  catalogEntriesByType(type) {\n    let namespaces = Namespace.NAMESPACES;\n    let types = [];\n    let typeSuffixRegex = new RegExp(`${classify(type)}$`);\n    namespaces.forEach(namespace => {\n      for (let key in namespace) {\n        if (!Object.prototype.hasOwnProperty.call(namespace, key)) {\n          continue;\n        }\n        if (typeSuffixRegex.test(key)) {\n          let klass = namespace[key];\n          if (typeOf(klass) === 'class') {\n            types.push(dasherize(key.replace(typeSuffixRegex, '')));\n          }\n        }\n      }\n    });\n    return types;\n  }\n}\n\nexport { ContainerDebugAdapter as default };\n","import { getOwner } from '../-internals/owner/index.js';\nimport { _backburner, next } from '../runloop/index.js';\nimport { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { dasherize } from '../-internals/string/index.js';\nimport Namespace from '../application/namespace.js';\nimport EmberObject from '../object/index.js';\nimport { A } from '../array/index.js';\nimport { e as createCache, c as consumeTag, u as untrack, g as getValue } from '../../shared-chunks/cache-CofLhaS4.js';\nimport { t as tagFor } from '../../shared-chunks/meta-BJtIZDir.js';\nimport '../../shared-chunks/env-DXxsTFkM.js';\nimport { assert } from './lib/assert.js';\n\n/**\n@module @ember/debug/data-adapter\n*/\n\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.\n\nfunction iterate(arr, fn) {\n  if (Symbol.iterator in arr) {\n    for (let item of arr) {\n      fn(item);\n    }\n  } else {\n    // 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.)\n    assert('', typeof arr.forEach === 'function');\n    arr.forEach(fn);\n  }\n}\nclass RecordsWatcher {\n  recordCaches = new Map();\n  added = [];\n  updated = [];\n  removed = [];\n  getCacheForItem(record) {\n    let recordCache = this.recordCaches.get(record);\n    if (!recordCache) {\n      let hasBeenAdded = false;\n      recordCache = createCache(() => {\n        if (!hasBeenAdded) {\n          this.added.push(this.wrapRecord(record));\n          hasBeenAdded = true;\n        } else {\n          this.updated.push(this.wrapRecord(record));\n        }\n      });\n      this.recordCaches.set(record, recordCache);\n    }\n    return recordCache;\n  }\n  constructor(records, recordsAdded, recordsUpdated, recordsRemoved, wrapRecord, release) {\n    this.wrapRecord = wrapRecord;\n    this.release = release;\n    this.recordArrayCache = createCache(() => {\n      let seen = new Set();\n\n      // Track `[]` for legacy support\n      consumeTag(tagFor(records, '[]'));\n      iterate(records, record => {\n        getValue(this.getCacheForItem(record));\n        seen.add(record);\n      });\n\n      // Untrack this operation because these records are being removed, they\n      // should not be polled again in the future\n      untrack(() => {\n        this.recordCaches.forEach((_cache, record) => {\n          if (!seen.has(record)) {\n            this.removed.push(wrapRecord(record));\n            this.recordCaches.delete(record);\n          }\n        });\n      });\n      if (this.added.length > 0) {\n        recordsAdded(this.added);\n        this.added = [];\n      }\n      if (this.updated.length > 0) {\n        recordsUpdated(this.updated);\n        this.updated = [];\n      }\n      if (this.removed.length > 0) {\n        recordsRemoved(this.removed);\n        this.removed = [];\n      }\n    });\n  }\n  revalidate() {\n    getValue(this.recordArrayCache);\n  }\n}\nclass TypeWatcher {\n  constructor(records, onChange, release) {\n    this.release = release;\n    let hasBeenAccessed = false;\n    this.cache = createCache(() => {\n      // Empty iteration, we're doing this just\n      // to track changes to the records array\n      iterate(records, () => {});\n\n      // Also track `[]` for legacy support\n      consumeTag(tagFor(records, '[]'));\n      if (hasBeenAccessed === true) {\n        next(onChange);\n      } else {\n        hasBeenAccessed = true;\n      }\n    });\n    this.release = release;\n  }\n  revalidate() {\n    getValue(this.cache);\n  }\n}\n\n/**\n  The `DataAdapter` helps a data persistence library\n  interface with tools that debug Ember such\n  as the [Ember Inspector](https://github.com/emberjs/ember-inspector)\n  for Chrome and Firefox.\n\n  This class will be extended by a persistence library\n  which will override some of the methods with\n  library-specific code.\n\n  The methods likely to be overridden are:\n\n  * `getFilters`\n  * `detect`\n  * `columnsForType`\n  * `getRecords`\n  * `getRecordColumnValues`\n  * `getRecordKeywords`\n  * `getRecordFilterValues`\n  * `getRecordColor`\n\n  The adapter will need to be registered\n  in the application's container as `dataAdapter:main`.\n\n  Example:\n\n  ```javascript\n  Application.initializer({\n    name: \"data-adapter\",\n\n    initialize: function(application) {\n      application.register('data-adapter:main', DS.DataAdapter);\n    }\n  });\n  ```\n\n  @class DataAdapter\n  @extends EmberObject\n  @public\n*/\nclass DataAdapter extends EmberObject {\n  releaseMethods = A();\n  recordsWatchers = new Map();\n  typeWatchers = new Map();\n  flushWatchers = null;\n\n  // TODO: Revisit this\n\n  constructor(owner) {\n    super(owner);\n    this.containerDebugAdapter = getOwner(this).lookup('container-debug-adapter:main');\n  }\n\n  /**\n    The container-debug-adapter which is used\n    to list all models.\n     @property containerDebugAdapter\n    @default undefined\n    @since 1.5.0\n    @public\n  **/\n\n  /**\n    The number of attributes to send\n    as columns. (Enough to make the record\n    identifiable).\n     @private\n    @property attributeLimit\n    @default 3\n    @since 1.3.0\n  */\n  attributeLimit = 3;\n\n  /**\n     Ember Data > v1.0.0-beta.18\n     requires string model names to be passed\n     around instead of the actual factories.\n      This is a stamp for the Ember Inspector\n     to differentiate between the versions\n     to be able to support older versions too.\n      @public\n     @property acceptsModelName\n   */\n  acceptsModelName = true;\n\n  /**\n     Map from records arrays to RecordsWatcher instances\n      @private\n     @property recordsWatchers\n     @since 3.26.0\n   */\n\n  /**\n    Map from records arrays to TypeWatcher instances\n     @private\n    @property typeWatchers\n    @since 3.26.0\n   */\n\n  /**\n    Callback that is currently scheduled on backburner end to flush and check\n    all active watchers.\n     @private\n    @property flushWatchers\n    @since 3.26.0\n    */\n\n  /**\n    Stores all methods that clear observers.\n    These methods will be called on destruction.\n     @private\n    @property releaseMethods\n    @since 1.3.0\n  */\n\n  /**\n    Specifies how records can be filtered.\n    Records returned will need to have a `filterValues`\n    property with a key for every name in the returned array.\n     @public\n    @method getFilters\n    @return {Array} List of objects defining filters.\n     The object should have a `name` and `desc` property.\n  */\n  getFilters() {\n    return A();\n  }\n\n  /**\n    Fetch the model types and observe them for changes.\n     @public\n    @method watchModelTypes\n     @param {Function} typesAdded Callback to call to add types.\n    Takes an array of objects containing wrapped types (returned from `wrapModelType`).\n     @param {Function} typesUpdated Callback to call when a type has changed.\n    Takes an array of objects containing wrapped types.\n     @return {Function} Method to call to remove all observers\n  */\n  watchModelTypes(typesAdded, typesUpdated) {\n    let modelTypes = this.getModelTypes();\n    let releaseMethods = A();\n    let typesToSend;\n    typesToSend = modelTypes.map(type => {\n      let klass = type.klass;\n      let wrapped = this.wrapModelType(klass, type.name);\n      releaseMethods.push(this.observeModelType(type.name, typesUpdated));\n      return wrapped;\n    });\n    typesAdded(typesToSend);\n    let release = () => {\n      releaseMethods.forEach(fn => fn());\n      this.releaseMethods.removeObject(release);\n    };\n    this.releaseMethods.pushObject(release);\n    return release;\n  }\n  _nameToClass(type) {\n    if (typeof type === 'string') {\n      let owner = getOwner(this);\n      let Factory = owner.factoryFor(`model:${type}`);\n      type = Factory && Factory.class;\n    }\n    return type;\n  }\n\n  /**\n    Fetch the records of a given type and observe them for changes.\n     @public\n    @method watchRecords\n     @param {String} modelName The model name.\n     @param {Function} recordsAdded Callback to call to add records.\n    Takes an array of objects containing wrapped records.\n    The object should have the following properties:\n      columnValues: {Object} The key and value of a table cell.\n      object: {Object} The actual record object.\n     @param {Function} recordsUpdated Callback to call when a record has changed.\n    Takes an array of objects containing wrapped records.\n     @param {Function} recordsRemoved Callback to call when a record has removed.\n    Takes an array of objects containing wrapped records.\n     @return {Function} Method to call to remove all observers.\n  */\n  watchRecords(modelName, recordsAdded, recordsUpdated, recordsRemoved) {\n    let klass = this._nameToClass(modelName);\n    let records = this.getRecords(klass, modelName);\n    let {\n      recordsWatchers\n    } = this;\n    let recordsWatcher = recordsWatchers.get(records);\n    if (!recordsWatcher) {\n      recordsWatcher = new RecordsWatcher(records, recordsAdded, recordsUpdated, recordsRemoved, record => this.wrapRecord(record), () => {\n        recordsWatchers.delete(records);\n        this.updateFlushWatchers();\n      });\n      recordsWatchers.set(records, recordsWatcher);\n      this.updateFlushWatchers();\n      recordsWatcher.revalidate();\n    }\n    return recordsWatcher.release;\n  }\n  updateFlushWatchers() {\n    if (this.flushWatchers === null) {\n      if (this.typeWatchers.size > 0 || this.recordsWatchers.size > 0) {\n        this.flushWatchers = () => {\n          this.typeWatchers.forEach(watcher => watcher.revalidate());\n          this.recordsWatchers.forEach(watcher => watcher.revalidate());\n        };\n        _backburner.on('end', this.flushWatchers);\n      }\n    } else if (this.typeWatchers.size === 0 && this.recordsWatchers.size === 0) {\n      _backburner.off('end', this.flushWatchers);\n      this.flushWatchers = null;\n    }\n  }\n\n  /**\n    Clear all observers before destruction\n    @private\n    @method willDestroy\n  */\n  willDestroy() {\n    this._super(...arguments);\n    this.typeWatchers.forEach(watcher => watcher.release());\n    this.recordsWatchers.forEach(watcher => watcher.release());\n    this.releaseMethods.forEach(fn => fn());\n    if (this.flushWatchers) {\n      _backburner.off('end', this.flushWatchers);\n    }\n  }\n\n  /**\n    Detect whether a class is a model.\n     Test that against the model class\n    of your persistence library.\n     @public\n    @method detect\n    @return boolean Whether the class is a model class or not.\n  */\n  detect(_klass) {\n    return false;\n  }\n\n  /**\n    Get the columns for a given model type.\n     @public\n    @method columnsForType\n    @return {Array} An array of columns of the following format:\n     name: {String} The name of the column.\n     desc: {String} Humanized description (what would show in a table column name).\n  */\n  columnsForType(_klass) {\n    return A();\n  }\n\n  /**\n    Adds observers to a model type class.\n     @private\n    @method observeModelType\n    @param {String} modelName The model type name.\n    @param {Function} typesUpdated Called when a type is modified.\n    @return {Function} The function to call to remove observers.\n  */\n\n  observeModelType(modelName, typesUpdated) {\n    let klass = this._nameToClass(modelName);\n    let records = this.getRecords(klass, modelName);\n    let onChange = () => {\n      typesUpdated([this.wrapModelType(klass, modelName)]);\n    };\n    let {\n      typeWatchers\n    } = this;\n    let typeWatcher = typeWatchers.get(records);\n    if (!typeWatcher) {\n      typeWatcher = new TypeWatcher(records, onChange, () => {\n        typeWatchers.delete(records);\n        this.updateFlushWatchers();\n      });\n      typeWatchers.set(records, typeWatcher);\n      this.updateFlushWatchers();\n      typeWatcher.revalidate();\n    }\n    return typeWatcher.release;\n  }\n\n  /**\n    Wraps a given model type and observes changes to it.\n     @private\n    @method wrapModelType\n    @param {Class} klass A model class.\n    @param {String} modelName Name of the class.\n    @return {Object} 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  */\n  wrapModelType(klass, name) {\n    let records = this.getRecords(klass, name);\n    return {\n      name,\n      count: get(records, 'length'),\n      columns: this.columnsForType(klass),\n      object: klass\n    };\n  }\n\n  /**\n    Fetches all models defined in the application.\n     @private\n    @method getModelTypes\n    @return {Array} Array of model types.\n  */\n  getModelTypes() {\n    let containerDebugAdapter = this.containerDebugAdapter;\n    let stringTypes = containerDebugAdapter.canCatalogEntriesByType('model') ? containerDebugAdapter.catalogEntriesByType('model') : this._getObjectsOnNamespaces();\n\n    // New adapters return strings instead of classes.\n    let klassTypes = stringTypes.map(name => {\n      return {\n        klass: this._nameToClass(name),\n        name\n      };\n    });\n    return klassTypes.filter(type => this.detect(type.klass));\n  }\n\n  /**\n    Loops over all namespaces and all objects\n    attached to them.\n     @private\n    @method _getObjectsOnNamespaces\n    @return {Array} Array of model type strings.\n  */\n  _getObjectsOnNamespaces() {\n    let namespaces = Namespace.NAMESPACES;\n    let types = [];\n    namespaces.forEach(namespace => {\n      for (let key in namespace) {\n        if (!Object.prototype.hasOwnProperty.call(namespace, key)) {\n          continue;\n        }\n        // Even though we will filter again in `getModelTypes`,\n        // we should not call `lookupFactory` on non-models\n        if (!this.detect(namespace[key])) {\n          continue;\n        }\n        let name = dasherize(key);\n        types.push(name);\n      }\n    });\n    return types;\n  }\n\n  /**\n    Fetches all loaded records for a given type.\n     @public\n    @method getRecords\n    @return {Array} An array of records.\n     This array will be observed for changes,\n     so it should update when new records are added/removed.\n  */\n  getRecords(_klass, _name) {\n    return A();\n  }\n\n  /**\n    Wraps a record and observers changes to it.\n     @private\n    @method wrapRecord\n    @param {Object} record The record instance.\n    @return {Object} The wrapped record. Format:\n    columnValues: {Array}\n    searchKeywords: {Array}\n  */\n  wrapRecord(record) {\n    return {\n      object: record,\n      columnValues: this.getRecordColumnValues(record),\n      searchKeywords: this.getRecordKeywords(record),\n      filterValues: this.getRecordFilterValues(record),\n      color: this.getRecordColor(record)\n    };\n  }\n\n  /**\n    Gets the values for each column.\n     @public\n    @method getRecordColumnValues\n    @return {Object} Keys should match column names defined\n    by the model type.\n  */\n  getRecordColumnValues(_record) {\n    return {};\n  }\n\n  /**\n    Returns keywords to match when searching records.\n     @public\n    @method getRecordKeywords\n    @return {Array} Relevant keywords for search.\n  */\n  getRecordKeywords(_record) {\n    return A();\n  }\n\n  /**\n    Returns the values of filters defined by `getFilters`.\n     @public\n    @method getRecordFilterValues\n    @param {Object} record The record instance.\n    @return {Object} The filter values.\n  */\n  getRecordFilterValues(_record) {\n    return {};\n  }\n\n  /**\n    Each record can have a color that represents its state.\n     @public\n    @method getRecordColor\n    @param {Object} record The record instance\n    @return {String} The records color.\n      Possible options: black, red, blue, green.\n  */\n  getRecordColor(_record) {\n    return null;\n  }\n}\n\nexport { DataAdapter as default };\n","import '../../shared-chunks/env-DXxsTFkM.js';\nimport deprecate$1 from './lib/deprecate.js';\nexport { registerHandler as registerDeprecationHandler } from './lib/deprecate.js';\nexport { isTesting, setTesting } from './lib/testing.js';\nexport { registerHandler as registerWarnHandler } from './lib/warn.js';\nexport { assert } from './lib/assert.js';\nexport { default as inspect } from './lib/inspect.js';\nexport { default as captureRenderTree } from './lib/capture-render-tree.js';\n\n// These are the default production build versions:\nconst noop = () => {};\n\n// 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;\nlet warn = noop;\nlet debug = noop;\nlet debugSeal = noop;\nlet debugFreeze = noop;\nlet runInDebug = noop;\nlet setDebugFunction = noop;\nlet getDebugFunction = noop;\nlet deprecateFunc = function () {\n  return arguments[arguments.length - 1];\n};\nfunction deprecate(...args) {\n  return (deprecate$1)(...args);\n}\nlet _warnIfUsingStrippedFeatureFlags;\n\nexport { _warnIfUsingStrippedFeatureFlags, debug, debugFreeze, debugSeal, deprecate, deprecateFunc, getDebugFunction, info, runInDebug, setDebugFunction, warn };\n","let assert = () => {};\nfunction setAssert(implementation) {\n  assert = implementation;\n  return implementation;\n}\n\nexport { assert, setAssert };\n","import { r as renderers } from '../../../shared-chunks/renderers-BjnN26_f.js';\n\n/**\n  @module @ember/debug\n*/\n/**\n  Ember Inspector calls this function to capture the current render tree.\n\n  The result has the tree of every renderer with live roots:\n  each application, and each `renderComponent` call, whatever its owner.\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} Unused. Ember Inspector still passes it.\n  @since 3.14.0\n*/\nfunction captureRenderTree(_app) {\n  let nodes = [];\n  for (let renderer of renderers) {\n    for (let node of renderer.debugRenderTree.capture()) {\n      nodes.push(node);\n    }\n  }\n  return nodes;\n}\n\nexport { captureRenderTree as default };\n","import '../../../shared-chunks/env-DXxsTFkM.js';\n\n// 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/**\n @module @ember/debug\n @public\n*/\n/**\n  Allows for runtime registration of handler functions that override the default deprecation behavior.\n  Deprecations are invoked by calls to [@ember/debug/deprecate](/ember/release/classes/@ember%2Fdebug/methods/deprecate?anchor=deprecate).\n  The following example demonstrates its usage by registering a handler that throws an error if the\n  message contains the word \"should\", otherwise defers to the default handler.\n\n  ```javascript\n  import { registerDeprecationHandler } from '@ember/debug';\n\n  registerDeprecationHandler((message, options, next) => {\n    if (message.indexOf('should') !== -1) {\n      throw new Error(`Deprecation message with should: ${message}`);\n    } else {\n      // defer to whatever handler was registered before this one\n      next(message, options);\n    }\n  });\n  ```\n\n  The handler function takes the following arguments:\n\n  <ul>\n    <li> <code>message</code> - The message received from the deprecation call.</li>\n    <li> <code>options</code> - An object passed in with the deprecation call containing additional information including:</li>\n      <ul>\n        <li> <code>id</code> - An id of the deprecation in the form of <code>package-name.specific-deprecation</code>.</li>\n        <li> <code>until</code> - The Ember version number the feature and deprecation will be removed in.</li>\n      </ul>\n    <li> <code>next</code> - A function that calls into the previously registered handler.</li>\n  </ul>\n\n  @public\n  @static\n  @method registerDeprecationHandler\n  @for @ember/debug\n  @param handler {Function} A function to handle deprecation calls.\n  @since 2.1.0\n*/\nlet registerHandler = () => {};\nlet missingOptionsDeprecation;\nlet missingOptionsIdDeprecation;\nlet missingOptionDeprecation = () => '';\nlet deprecate = () => {};\n\nexport { deprecate as default, missingOptionDeprecation, missingOptionsDeprecation, missingOptionsIdDeprecation, registerHandler };\n","let HANDLERS = {};\nlet registerHandler = function registerHandler(_type, _callback) {};\nlet invoke = () => {};\n\nexport { HANDLERS, invoke, registerHandler };\n","import { assert } from './assert.js';\n\nconst {\n  toString: objectToString\n} = Object.prototype;\nconst {\n  toString: functionToString\n} = Function.prototype;\nconst {\n  isArray\n} = Array;\nconst {\n  keys: objectKeys\n} = Object;\nconst {\n  stringify\n} = JSON;\nconst LIST_LIMIT = 100;\nconst DEPTH_LIMIT = 4;\nconst SAFE_KEY = /^[\\w$]+$/;\n\n/**\n @module @ember/debug\n*/\n/**\n  Convenience method to inspect an object. This method will attempt to\n  convert the object into a useful string description.\n\n  It is a pretty simple implementation. If you want something more robust,\n  use something like JSDump: https://github.com/NV/jsDump\n\n  @method inspect\n  @static\n  @param {Object} obj The object you want to inspect.\n  @return {String} A description of the object\n  @since 1.4.0\n  @private\n*/\nfunction inspect(obj) {\n  // detect Node util.inspect call inspect(depth: number, opts: object)\n  if (typeof obj === 'number' && arguments.length === 2) {\n    return this;\n  }\n  return inspectValue(obj, 0);\n}\nfunction inspectValue(value, depth, seen) {\n  let valueIsArray = false;\n  switch (typeof value) {\n    case 'undefined':\n      return 'undefined';\n    case 'object':\n      if (value === null) return 'null';\n      if (isArray(value)) {\n        valueIsArray = true;\n        break;\n      }\n      // is toString Object.prototype.toString or undefined then traverse\n      if (value.toString === objectToString || value.toString === undefined) {\n        break;\n      }\n      // custom toString\n      return value.toString();\n    case 'function':\n      return value.toString === functionToString ? value.name ? `[Function:${value.name}]` : `[Function]` : value.toString();\n    case 'string':\n      return stringify(value);\n    case 'symbol':\n    case 'boolean':\n    case 'number':\n    default:\n      return value.toString();\n  }\n  if (seen === undefined) {\n    seen = new WeakSet();\n  } else {\n    if (seen.has(value)) return `[Circular]`;\n  }\n  seen.add(value);\n  return valueIsArray ? inspectArray(value, depth + 1, seen) : inspectObject(value, depth + 1, seen);\n}\nfunction inspectKey(key) {\n  return SAFE_KEY.test(key) ? key : stringify(key);\n}\nfunction inspectObject(obj, depth, seen) {\n  if (depth > DEPTH_LIMIT) {\n    return '[Object]';\n  }\n  let s = '{';\n  let keys = objectKeys(obj);\n  for (let i = 0; i < keys.length; i++) {\n    s += i === 0 ? ' ' : ', ';\n    if (i >= LIST_LIMIT) {\n      s += `... ${keys.length - LIST_LIMIT} more keys`;\n      break;\n    }\n    let key = keys[i];\n    assert('has key', key); // Looping over array\n    s += `${inspectKey(String(key))}: ${inspectValue(obj[key], depth, seen)}`;\n  }\n  s += ' }';\n  return s;\n}\nfunction inspectArray(arr, depth, seen) {\n  if (depth > DEPTH_LIMIT) {\n    return '[Array]';\n  }\n  let s = '[';\n  for (let i = 0; i < arr.length; i++) {\n    s += i === 0 ? ' ' : ', ';\n    if (i >= LIST_LIMIT) {\n      s += `... ${arr.length - LIST_LIMIT} more items`;\n      break;\n    }\n    s += inspectValue(arr[i], depth, seen);\n  }\n  s += ' ]';\n  return s;\n}\n\nexport { inspect as default };\n","let testing = false;\nfunction isTesting() {\n  return testing;\n}\nfunction setTesting(value) {\n  testing = Boolean(value);\n}\n\nexport { isTesting, setTesting };\n","let registerHandler = () => {};\nlet warn = () => {};\nlet missingOptionsDeprecation;\nlet missingOptionsIdDeprecation;\n\nexport { warn as default, missingOptionsDeprecation, missingOptionsIdDeprecation, registerHandler };\n","import { registerDestructor as registerDestructor$1, unregisterDestructor as unregisterDestructor$1 } from '../../@glimmer/destroyable/index.js';\nexport { assertDestroyablesDestroyed, associateDestroyableChild, destroy, enableDestroyableTracking, isDestroyed, isDestroying } from '../../@glimmer/destroyable/index.js';\n\n/**\n  Ember manages the lifecycles and lifetimes of many built in constructs, such\n  as components, and does so in a hierarchical way - when a parent component is\n  destroyed, all of its children are destroyed as well.\n\n  This destroyables API exposes the basic building blocks for destruction:\n\n  * registering a function to be ran when an object is 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\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\n/**\n Receives a destroyable, and returns true if the destroyable has begun destroying. Otherwise returns\n false.\n\n  ```js\n  let obj = {};\n  isDestroying(obj); // false\n  destroy(obj);\n  isDestroying(obj); // true\n  // ...sometime later, after scheduled destruction\n  isDestroyed(obj); // true\n  isDestroying(obj); // true\n  ```\n\n  @method isDestroying\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the object to check\n  @returns {Boolean}\n  @static\n  @public\n*/\n\n/**\n  Receives a destroyable, and returns true if the destroyable has finished destroying. Otherwise\n  returns false.\n\n  ```js\n  let obj = {};\n\n  isDestroyed(obj); // false\n  destroy(obj);\n\n  // ...sometime later, after scheduled destruction\n\n  isDestroyed(obj); // true\n  ```\n\n  @method isDestroyed\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the object to check\n  @returns {Boolean}\n  @static\n  @public\n*/\n\n/**\n  Initiates the destruction of a destroyable object. It runs all associated destructors, and then\n  destroys all children recursively.\n\n  ```js\n  let obj = {};\n\n  registerDestructor(obj, () => console.log('destroyed!'));\n\n  destroy(obj); // this will schedule the destructor to be called\n\n  // ...some time later, during scheduled destruction\n\n  // destroyed!\n  ```\n\n  Destruction via `destroy()` follows these steps:\n\n  1, Mark the destroyable such that `isDestroying(destroyable)` returns `true`\n  2, Call `destroy()` on each of the destroyable's associated children\n  3, Schedule calling the destroyable's destructors\n  4, Schedule setting destroyable such that `isDestroyed(destroyable)` returns `true`\n\n  This results in the entire tree of destroyables being first marked as destroying,\n  then having all of their destructors called, and finally all being marked as isDestroyed.\n  There won't be any in between states where some items are marked as `isDestroying` while\n  destroying, while others are not.\n\n  @method destroy\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the object to destroy\n  @static\n  @public\n*/\n\n/**\n  This function asserts that all objects which have associated destructors or associated children\n  have been destroyed at the time it is called. It is meant to be a low level hook that testing\n  frameworks can use to hook into and validate that all destroyables have in fact been destroyed.\n\n  This function requires that `enableDestroyableTracking` was called previously, and is only\n  available in non-production builds.\n\n  @method assertDestroyablesDestroyed\n  @for @ember/destroyable\n  @static\n  @public\n*/\n\n/**\n  This function instructs the destroyable system to keep track of all destroyables (their\n  children, destructors, etc). This enables a future usage of `assertDestroyablesDestroyed`\n  to be used to ensure that all destroyable tasks (registered destructors and associated children)\n  have completed when `assertDestroyablesDestroyed` is called.\n\n  @method enableDestroyableTracking\n  @for @ember/destroyable\n  @static\n  @public\n*/\n\n/**\n  Receives a destroyable object and a destructor function, and associates the\n  function with it. When the destroyable is destroyed with destroy, or when its\n  parent is destroyed, the destructor function will be called.\n\n  ```js\n  import 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*/\nfunction registerDestructor(destroyable, destructor) {\n  return registerDestructor$1(destroyable, destructor);\n}\n\n/**\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*/\nfunction unregisterDestructor(destroyable, destructor) {\n  return unregisterDestructor$1(destroyable, destructor);\n}\n\nexport { registerDestructor, unregisterDestructor };\n","class StrictResolver {\n  // Ember's router uses this flag to decide whether to auto-generate\n  // `${name}_loading` and `${name}_error` substates for routes defined in\n  // `Router.map(...)`. Since we always resolve against an ES module registry,\n  // we unconditionally opt in.\n  moduleBasedResolver = true;\n  #modules = new Map();\n  original;\n  static create({\n    namespace\n  }) {\n    return new StrictResolver(namespace.modules);\n  }\n  constructor(modules) {\n    this.addModules(modules);\n  }\n  addModules(modules) {\n    for (let [moduleName, module] of Object.entries(modules)) {\n      this.#modules.set(this.#normalizeModule(moduleName), module);\n    }\n  }\n  #normalizeModule(moduleName) {\n    return moduleName.replace(fileExtension, '').replace(leadingDotSlash, '');\n  }\n  #plural(word) {\n    if (word === 'config') {\n      return word;\n    }\n    return word + 's';\n  }\n  resolve(fullName) {\n    let [type, name] = fullName.split(':');\n    name = this.#normalizeName(type, name);\n    for (let strategy of [this.#resolveSelf, this.#mainLookup, this.#defaultLookup, this.#nestedColocationLookup]) {\n      let result = strategy.call(this, type, name);\n      if (result) {\n        return this.#extractDefaultExport(result.hit);\n      }\n    }\n    return undefined;\n  }\n  #extractDefaultExport(module) {\n    if (module && module['default']) {\n      module = module['default'];\n    }\n    return module;\n  }\n  normalize(fullName) {\n    let [type, name] = fullName.split(':');\n    name = this.#normalizeName(type, name);\n    return `${type}:${name}`;\n  }\n  #normalizeName(type, name) {\n    if (type === 'component' || type === 'helper' || type === 'modifier' || type === 'template' && name.indexOf('components/') === 0) {\n      return name.replace(/_/g, '-');\n    } else {\n      return dasherize(name.replace(/\\./g, '/'));\n    }\n  }\n  #resolveSelf(type, name) {\n    if (type === 'resolver' && name === 'current') {\n      return {\n        hit: {\n          create: () => this\n        }\n      };\n    }\n    return undefined;\n  }\n  #mainLookup(type, name) {\n    if (name === 'main') {\n      let module = this.#modules.get(type);\n      if (module) {\n        return {\n          hit: module\n        };\n      }\n    }\n    return undefined;\n  }\n  #defaultLookup(type, name) {\n    let dir = this.#plural(type);\n    let target = `${dir}/${name}`;\n    let module = this.#modules.get(target);\n    if (module) {\n      return {\n        hit: module\n      };\n    }\n    return undefined;\n  }\n\n  // Supports the nested colocation pattern where `component:my-widget`\n  // resolves to `./components/my-widget/index.{js,ts,gjs,gts}`. The index\n  // file is typically the component class, and it's commonly paired with a\n  // sibling `index.hbs` inside the same folder.\n  #nestedColocationLookup(type, name) {\n    if (type !== 'component') return undefined;\n    let dir = this.#plural(type);\n    let target = `${dir}/${name}/index`;\n    let module = this.#modules.get(target);\n    if (module) {\n      return {\n        hit: module\n      };\n    }\n    return undefined;\n  }\n}\nconst fileExtension = /\\.\\w{1,4}$/;\nconst leadingDotSlash = /^\\.\\//;\nconst camelCaseBoundary = /([a-z\\d])([A-Z])/g;\nconst spacesAndUnderscores = /[ _]/g;\nfunction dasherize(str) {\n  return str.replace(camelCaseBoundary, '$1_$2').toLowerCase().replace(spacesAndUnderscores, '-');\n}\n\nexport { StrictResolver };\n","export { getEngineParent, setEngineParent } from './lib/engine-parent.js';\nimport Controller from '../controller/index.js';\nimport Namespace from '../application/namespace.js';\nimport { Registry } from '../-internals/container/index.js';\nimport DAG from '../../dag-map/index.js';\nimport ContainerDebugAdapter from '../debug/container-debug-adapter.js';\nimport { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { s as set } from '../../shared-chunks/property_set-CVmdjPdh.js';\nimport EngineInstance from './instance.js';\nimport '../../route-recognizer/index.js';\nimport '../../shared-chunks/rsvp-aLN_pQtn.js';\nimport '../../shared-chunks/unrecognized-url-error-xC654tCo.js';\nimport RoutingService from '../routing/lib/routing-service.js';\nimport { b as setupEngineRegistry } from '../../shared-chunks/setup-registry-C7HGofi1.js';\nimport RegistryProxyMixin from '../-internals/runtime/lib/mixins/registry_proxy.js';\nimport { StrictResolver } from './lib/strict-resolver.js';\n\nfunction props(obj) {\n  let properties = [];\n  for (let key in obj) {\n    properties.push(key);\n  }\n  return properties;\n}\n\n/**\n@module @ember/engine\n*/\n\n/**\n  The `Engine` class contains core functionality for both applications and\n  engines.\n\n  Each engine manages a registry that's used for dependency injection and\n  exposed through `RegistryProxy`.\n\n  Engines also manage initializers and instance initializers.\n\n  Engines can spawn `EngineInstance` instances via `buildInstance()`.\n\n  @class Engine\n  @extends Ember.Namespace\n  @uses RegistryProxyMixin\n  @public\n*/\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\n\nclass Engine extends Namespace.extend(RegistryProxyMixin) {\n  static initializers = Object.create(null);\n  static instanceInitializers = Object.create(null);\n\n  /**\n    The goal of initializers should be to register dependencies and injections.\n    This phase runs once. Because these initializers may load code, they are\n    allowed to defer application readiness and advance it. If you need to access\n    the container or store you should use an InstanceInitializer that will be run\n    after all initializers and therefore after all code is loaded and the app is\n    ready.\n     Initializer receives an object which has the following attributes:\n    `name`, `before`, `after`, `initialize`. The only required attribute is\n    `initialize`, all others are optional.\n     * `name` allows you to specify under which name the initializer is registered.\n    This must be a unique name, as trying to register two initializers with the\n    same name will result in an error.\n     ```app/initializer/named-initializer.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Running namedInitializer!');\n    }\n     export default {\n      name: 'named-initializer',\n      initialize\n    };\n    ```\n     * `before` and `after` are used to ensure that this initializer is ran prior\n    or after the one identified by the value. This value can be a single string\n    or an array of strings, referencing the `name` of other initializers.\n     An example of ordering initializers, we create an initializer named `first`:\n     ```app/initializer/first.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('First initializer!');\n    }\n     export default {\n      name: 'first',\n      initialize\n    };\n    ```\n     ```bash\n    // DEBUG: First initializer!\n    ```\n     We add another initializer named `second`, specifying that it should run\n    after the initializer named `first`:\n     ```app/initializer/second.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Second initializer!');\n    }\n     export default {\n      name: 'second',\n      after: 'first',\n      initialize\n    };\n    ```\n     ```\n    // DEBUG: First initializer!\n    // DEBUG: Second initializer!\n    ```\n     Afterwards we add a further initializer named `pre`, this time specifying\n    that it should run before the initializer named `first`:\n     ```app/initializer/pre.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Pre initializer!');\n    }\n     export default {\n      name: 'pre',\n      before: 'first',\n      initialize\n    };\n    ```\n     ```bash\n    // DEBUG: Pre initializer!\n    // DEBUG: First initializer!\n    // DEBUG: Second initializer!\n    ```\n     Finally we add an initializer named `post`, specifying it should run after\n    both the `first` and the `second` initializers:\n     ```app/initializer/post.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Post initializer!');\n    }\n     export default {\n      name: 'post',\n      after: ['first', 'second'],\n      initialize\n    };\n    ```\n     ```bash\n    // DEBUG: Pre initializer!\n    // DEBUG: First initializer!\n    // DEBUG: Second initializer!\n    // DEBUG: Post initializer!\n    ```\n     * `initialize` is a callback function that receives one argument,\n      `application`, on which you can operate.\n     Example of using `application` to register an adapter:\n     ```app/initializer/api-adapter.js\n    import ApiAdapter from '../utils/api-adapter';\n     export function initialize(application) {\n      application.register('api-adapter:main', ApiAdapter);\n    }\n     export default {\n      name: 'post',\n      after: ['first', 'second'],\n      initialize\n    };\n    ```\n     @method initializer\n    @param initializer {Object}\n    @public\n  */\n\n  static initializer = buildInitializerMethod('initializers');\n\n  /**\n    Instance initializers run after all initializers have run. Because\n    instance initializers run after the app is fully set up. We have access\n    to the store, container, and other items. However, these initializers run\n    after code has loaded and are not allowed to defer readiness.\n     Instance initializer receives an object which has the following attributes:\n    `name`, `before`, `after`, `initialize`. The only required attribute is\n    `initialize`, all others are optional.\n     * `name` allows you to specify under which name the instanceInitializer is\n    registered. This must be a unique name, as trying to register two\n    instanceInitializer with the same name will result in an error.\n     ```app/initializer/named-instance-initializer.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Running named-instance-initializer!');\n    }\n     export default {\n      name: 'named-instance-initializer',\n      initialize\n    };\n    ```\n     * `before` and `after` are used to ensure that this initializer is ran prior\n    or after the one identified by the value. This value can be a single string\n    or an array of strings, referencing the `name` of other initializers.\n     * See Application.initializer for discussion on the usage of before\n    and after.\n     Example instanceInitializer to preload data into the store.\n     ```app/initializer/preload-data.js\n     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  */\n  static instanceInitializer = buildInitializerMethod('instanceInitializers');\n\n  /**\n    This creates a registry with the default Ember naming conventions.\n     It also configures the registry:\n     * registered views are created every time they are looked up (they are\n      not singletons)\n    * registered templates are not factories; the registered value is\n      returned directly.\n    * the router receives the application as its `namespace` property\n    * all controllers receive the router as their `target` and `controllers`\n      properties\n    * all controllers receive the application as their `namespace` property\n    * the application view receives the application controller as its\n      `controller` property\n    * the application view receives the application template as its\n      `defaultTemplate` property\n     @method buildRegistry\n    @static\n    @param {Application} namespace the application for which to\n      build the registry\n    @return {Ember.Registry} the built registry\n    @private\n  */\n  static buildRegistry(namespace) {\n    let registry = new Registry({\n      resolver: resolverFor(namespace)\n    });\n    registry.set = set;\n    registry.register('application:main', namespace, {\n      instantiate: false\n    });\n    commonSetupRegistry(registry);\n    setupEngineRegistry(registry);\n    return registry;\n  }\n\n  /**\n    Set this to provide an alternate class to `DefaultResolver`\n     @property resolver\n    @public\n  */\n  Resolver = StrictResolver;\n\n  /**\n    Set this to opt-in to using a strict resolver that will only return the\n    given set of ES modules. The names of the modules should all be relative to\n    the root of the app and start with \"./\"\n     @property modules\n    @public\n  */\n\n  init(properties) {\n    super.init(properties);\n    this.buildRegistry();\n  }\n\n  /**\n    A private flag indicating whether an engine's initializers have run yet.\n     @private\n    @property _initializersRan\n  */\n  _initializersRan = false;\n\n  /**\n    Ensure that initializers are run once, and only once, per engine.\n     @private\n    @method ensureInitializers\n  */\n  ensureInitializers() {\n    if (!this._initializersRan) {\n      this.runInitializers();\n      this._initializersRan = true;\n    }\n  }\n\n  /**\n    Create an EngineInstance for this engine.\n     @public\n    @method buildInstance\n    @return {EngineInstance} the engine instance\n  */\n  buildInstance(options = {}) {\n    this.ensureInitializers();\n    return EngineInstance.create({\n      ...options,\n      base: this\n    });\n  }\n\n  /**\n    Build and configure the registry for the current engine.\n     @private\n    @method buildRegistry\n    @return {Ember.Registry} the configured registry\n  */\n  buildRegistry() {\n    let registry = this.__registry__ = this.constructor.buildRegistry(this);\n    return registry;\n  }\n\n  /**\n    @private\n    @method initializer\n  */\n  initializer(initializer) {\n    this.constructor.initializer(initializer);\n  }\n\n  /**\n    @private\n    @method instanceInitializer\n  */\n  instanceInitializer(initializer) {\n    this.constructor.instanceInitializer(initializer);\n  }\n\n  /**\n    @private\n    @method runInitializers\n  */\n  runInitializers() {\n    this._runInitializer('initializers', (name, initializer) => {\n      initializer.initialize(this);\n    });\n  }\n\n  /**\n    @private\n    @since 1.12.0\n    @method runInstanceInitializers\n  */\n  runInstanceInitializers(instance) {\n    this._runInitializer('instanceInitializers', (name, initializer) => {\n      initializer.initialize(instance);\n    });\n  }\n  _runInitializer(bucketName, cb) {\n    let initializersByName = get(this.constructor, bucketName);\n    let initializers = props(initializersByName);\n    let graph = new DAG();\n    let initializer;\n    for (let name of initializers) {\n      initializer = initializersByName[name];\n      graph.add(initializer.name, initializer, initializer.before, initializer.after);\n    }\n    graph.topsort(cb);\n  }\n}\n\n/**\n  This function defines the default lookup rules for container lookups:\n\n  * templates are looked up on `Ember.TEMPLATES`\n  * other names are looked up on the application after classifying the name.\n    For example, `controller:post` looks up `App.PostController` by default.\n  * if the default lookup fails, look for registered classes on the container\n\n  This allows the application to register default injections in the container\n  that could be overridden by the normal naming convention.\n\n  @private\n  @method resolverFor\n  @param {Ember.Enginer} namespace the namespace to look for classes\n  @return {*} the resolved value for a given lookup\n*/\nfunction resolverFor(namespace) {\n  let ResolverClass = namespace.Resolver;\n  let props = {\n    namespace\n  };\n  return ResolverClass.create(props);\n}\n\n/** @internal */\nfunction buildInitializerMethod(bucketName, humanName) {\n  return function (initializer) {\n    // If this is the first initializer being added to a subclass, we are going to reopen the class\n    // to make sure we have a new `initializers` object, which extends from the parent class' using\n    // prototypal inheritance. Without this, attempting to add initializers to the subclass would\n    // pollute the parent class as well as other subclasses.\n    // SAFETY: The superclass may be an Engine, we don't call unless we confirmed it was ok.\n    let superclass = this.superclass;\n    if (superclass[bucketName] !== undefined && superclass[bucketName] === this[bucketName]) {\n      let attrs = {\n        [bucketName]: Object.create(this[bucketName])\n      };\n      this.reopenClass(attrs);\n    }\n    let initializers = this[bucketName];\n    initializers[initializer.name] = initializer;\n  };\n}\nfunction commonSetupRegistry(registry) {\n  registry.optionsForType('component', {\n    singleton: false\n  });\n  registry.optionsForType('view', {\n    singleton: false\n  });\n  registry.register('controller:basic', Controller, {\n    instantiate: false\n  });\n\n  // Register the routing service...\n  registry.register('service:-routing', RoutingService);\n\n  // DEBUGGING\n  registry.register('resolver-for-debugging:main', registry.resolver, {\n    instantiate: false\n  });\n  registry.register('container-debug-adapter:main', ContainerDebugAdapter);\n}\n\nexport { buildInitializerMethod, Engine as default };\n","import EmberObject from '../object/index.js';\nimport '../-internals/runtime/lib/ext/rsvp.js';\nimport { Registry, privatize } from '../-internals/container/index.js';\nimport { g as guidFor } from '../../shared-chunks/guid-Cbq2sNV_.js';\nimport { ENGINE_PARENT, setEngineParent, getEngineParent } from './lib/engine-parent.js';\nimport ContainerProxyMixin from '../-internals/runtime/lib/mixins/container_proxy.js';\nimport RegistryProxyMixin from '../-internals/runtime/lib/mixins/registry_proxy.js';\nimport { R as RSVP } from '../../shared-chunks/rsvp-aLN_pQtn.js';\n\n/**\n@module @ember/engine\n*/\n\n\n/**\n  The `EngineInstance` encapsulates all of the stateful aspects of a\n  running `Engine`.\n\n  @public\n  @class EngineInstance\n  @extends EmberObject\n  @uses RegistryProxyMixin\n  @uses ContainerProxyMixin\n*/\n\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`.\n\nclass EngineInstance extends EmberObject.extend(RegistryProxyMixin, ContainerProxyMixin) {\n  /**\n   @private\n   @method setupRegistry\n   @param {Registry} registry\n   @param {BootOptions} options\n   */\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.\n  static setupRegistry(_registry, _options) {}\n\n  /**\n    The base `Engine` for which this is an instance.\n     @property {Engine} engine\n    @private\n  */\n\n  [ENGINE_PARENT];\n  _booted = false;\n  init(properties) {\n    super.init(properties);\n\n    // Ensure the guid gets setup for this instance\n    guidFor(this);\n    this.base ??= this.application;\n\n    // Create a per-instance registry that will use the application's registry\n    // as a fallback for resolving registrations.\n    let registry = this.__registry__ = new Registry({\n      fallback: this.base.__registry__\n    });\n\n    // Create a per-instance container from the instance's registry\n    this.__container__ = registry.container({\n      owner: this\n    });\n    this._booted = false;\n  }\n  _bootPromise = null;\n\n  /**\n    Initialize the `EngineInstance` and return a promise that resolves\n    with the instance itself when the boot process is complete.\n     The primary task here is to run any registered instance initializers.\n     See the documentation on `BootOptions` for the options it takes.\n     @public\n    @method boot\n    @param options {Object}\n    @return {Promise<EngineInstance,Error>}\n  */\n  boot(options) {\n    if (this._bootPromise) {\n      return this._bootPromise;\n    }\n    this._bootPromise = new RSVP.Promise(resolve => {\n      resolve(this._bootSync(options));\n    });\n    return this._bootPromise;\n  }\n\n  /**\n    Unfortunately, a lot of existing code assumes booting an instance is\n    synchronous – specifically, a lot of tests assume the last call to\n    `app.advanceReadiness()` or `app.reset()` will result in a new instance\n    being fully-booted when the current runloop completes.\n     We would like new code (like the `visit` API) to stop making this\n    assumption, so we created the asynchronous version above that returns a\n    promise. But until we have migrated all the code, we would have to expose\n    this method for use *internally* in places where we need to boot an instance\n    synchronously.\n     @private\n  */\n  _bootSync(options) {\n    if (this._booted) {\n      return this;\n    }\n    this.cloneParentDependencies();\n    this.setupRegistry(options);\n    this.base.runInstanceInitializers(this);\n    this._booted = true;\n    return this;\n  }\n  setupRegistry(options = this.__container__.lookup('-environment:main')) {\n    this.constructor.setupRegistry(this.__registry__, options);\n  }\n\n  /**\n   Unregister a factory.\n    Overrides `RegistryProxy#unregister` in order to clear any cached instances\n   of the unregistered factory.\n    @public\n   @method unregister\n   @param {String} fullName\n   */\n  unregister(fullName) {\n    this.__container__.reset(fullName);\n\n    // We overwrote this method from RegistryProxyMixin.\n    this.__registry__.unregister(fullName);\n  }\n\n  /**\n    Build a new `EngineInstance` that's a child of this instance.\n     Engines must be registered by name with their parent engine\n    (or application).\n     @private\n    @method buildChildEngineInstance\n    @param name {String} the registered name of the engine.\n    @param options {Object} options provided to the engine instance.\n    @return {EngineInstance,Error}\n  */\n  buildChildEngineInstance(name, options = {}) {\n    let ChildEngine = this.lookup(`engine:${name}`);\n    if (!ChildEngine) {\n      throw new Error(`You attempted to mount the engine '${name}', but it is not registered with its parent.`);\n    }\n    let engineInstance = ChildEngine.buildInstance(options);\n    setEngineParent(engineInstance, this);\n    return engineInstance;\n  }\n\n  /**\n    Clone dependencies shared between an engine instance and its parent.\n     @private\n    @method cloneParentDependencies\n  */\n  cloneParentDependencies() {\n    const parent = getEngineParent(this);\n    let registrations = ['route:basic', 'service:-routing'];\n    registrations.forEach(key => {\n      let registration = parent.resolveRegistration(key);\n      this.register(key, registration);\n    });\n    let env = parent.lookup('-environment:main');\n    this.register('-environment:main', env, {\n      instantiate: false\n    });\n\n    // 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()`.\n    let singletons = ['router:main', privatize`-bucket-cache:main`, '-view-registry:main', `renderer:-dom`, 'service:-document'];\n    if (env['isInteractive']) {\n      singletons.push('event_dispatcher:main');\n    }\n    singletons.forEach(key => {\n      // SAFETY: We already expect this to be a singleton\n      let singleton = parent.lookup(key);\n      this.register(key, singleton, {\n        instantiate: false\n      });\n    });\n  }\n}\n\nexport { EngineInstance as default };\n","/**\n@module @ember/engine\n*/\n\nconst ENGINE_PARENT = Symbol('ENGINE_PARENT');\n\n/**\n  `getEngineParent` retrieves an engine instance's parent instance.\n\n  @method getEngineParent\n  @param {EngineInstance} engine An engine instance.\n  @return {EngineInstance} The parent engine instance.\n  @for @ember/engine\n  @static\n  @private\n*/\nfunction getEngineParent(engine) {\n  return engine[ENGINE_PARENT];\n}\n\n/**\n  `setEngineParent` sets an engine instance's parent instance.\n\n  @method setEngineParent\n  @param {EngineInstance} engine An engine instance.\n  @param {EngineInstance} parent The parent engine instance.\n  @private\n*/\nfunction setEngineParent(engine, parent) {\n  engine[ENGINE_PARENT] = parent;\n}\n\nexport { ENGINE_PARENT, getEngineParent, setEngineParent };\n","import { M as Mixin, I as INTERNAL_MIXIN_CREATE } from '../../shared-chunks/mixin-AGmJaAAY.js';\n\n/**\n@module @ember/enumerable\n@private\n*/\n\n/**\n  The methods in this mixin have been moved to [MutableArray](/ember/release/classes/MutableArray). This mixin has\n  been intentionally preserved to avoid breaking Enumerable.detect checks\n  until the community migrates away from them.\n\n  @class Enumerable\n  @private\n*/\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\n\nconst Enumerable = Mixin[INTERNAL_MIXIN_CREATE]();\n\nexport { Enumerable as default };\n","import Enumerable from './index.js';\nimport { M as Mixin, I as INTERNAL_MIXIN_CREATE } from '../../shared-chunks/mixin-AGmJaAAY.js';\n\n/**\n@module ember\n*/\n\n/**\n  The methods in this mixin have been moved to MutableArray. This mixin has\n  been intentionally preserved to avoid breaking MutableEnumerable.detect\n  checks until the community migrates away from them.\n\n  @class MutableEnumerable\n  @namespace Ember\n  @uses Enumerable\n  @private\n*/\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\n\nconst MutableEnumerable = Mixin[INTERNAL_MIXIN_CREATE](Enumerable);\n\nexport { MutableEnumerable as default };\n","import { b as setHelperManager$1 } from '../../shared-chunks/api-CoUjEXgs.js';\nimport { i as helperCapabilities } from '../../shared-chunks/api-DJnXAjon.js';\nimport { i as invokeHelper$1 } from '../../shared-chunks/invoke-BqNxG81o.js';\nimport { a as array$1, f as fn$1, h as hash$1 } from '../../shared-chunks/hash-pP7ZP_NN.js';\nimport { c as concat$1, g as get$1 } from '../../shared-chunks/get-B1Vq9Mmk.js';\nimport { a as and$1, e as eq$1, g as gt$1, b as gte$1, l as lt$1, c as lte$1, n as neq$1, d as not$1, o as or$1 } from '../../shared-chunks/not-BRssU6nS.js';\nimport { e as element$1 } from '../../shared-chunks/element-CZnh4CbF.js';\nimport { u as uniqueId$1 } from '../../shared-chunks/unique-id-DNqsbhfh.js';\n\n/**\n@module @ember/helper\n*/\n\n/**\n  `capabilities` returns a capabilities configuration which can be used to modify\n  the behavior of the manager. Manager capabilities _must_ be provided using the\n  `capabilities` function, as the underlying implementation can change over time.\n\n  The first argument to capabilities is a version string, which is the version of\n  Ember that the capabilities were defined in. Ember can add new versions at any\n  time, and these may have entirely different behaviors, but it will not remove\n  old versions until the next major version.\n\n  ```js\n  capabilities('3.23');\n  ```\n\n  The second argument is an object of capabilities and boolean values indicating\n  whether they are enabled or disabled.\n\n  ```js\n  capabilities('3.23', {\n    hasValue: true,\n    hasDestructor: true,\n  });\n  ```\n\n  If no value is specified, then the default value will be used.\n\n  ### `3.23` capabilities\n\n  #### `hasDestroyable`\n\n  - Default value: false\n\n  Determines if the helper has a destroyable to include in the destructor\n  hierarchy. If enabled, the `getDestroyable` hook will be called, and its result\n  will be associated with the destroyable parent block.\n\n  #### `hasValue`\n\n  - Default value: false\n\n  Determines if the helper has a value which can be used externally. The helper's\n  `getValue` hook will be run whenever the value of the helper is accessed if this\n  capability is enabled.\n\n  @method capabilities\n  @static\n  @for @ember/helper\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  @since 3.23.0\n  @public\n*/\nconst capabilities = helperCapabilities;\n\n/**\n  Sets the helper manager for an object or function.\n\n  ```js\n  setHelperManager((owner) => new ClassHelperManager(owner), Helper)\n  ```\n\n  When a value is used as a helper in a template, the helper manager is looked up\n  on the object by walking up its prototype chain and finding the first helper\n  manager. This manager then receives the value and can create and manage an\n  instance of a helper from it. This provides a layer of indirection that allows\n  users to design high-level helper APIs, without Ember needing to worry about the\n  details. High-level APIs can be experimented with and iterated on while the\n  core of Ember helpers remains stable, and new APIs can be introduced gradually\n  over time to existing code bases.\n\n  `setHelperManager` receives two arguments:\n\n  1. A factory function, which receives the `owner` and returns an instance of a\n    helper manager.\n  2. A helper definition, which is the object or function to associate the factory function with.\n\n  The first time the object is looked up, the factory function will be called to\n  create the helper manager. It will be cached, and in subsequent lookups the\n  cached helper manager will be used instead.\n\n  Only one helper manager is guaranteed to exist per `owner` and per usage of\n  `setHelperManager`, so many helpers will end up using the same instance of the\n  helper manager. As such, you should only store state that is related to the\n  manager itself. If you want to store state specific to a particular helper\n  definition, you should assign a unique helper manager to that helper. In\n  general, most managers should either be stateless, or only have the `owner` they\n  were created with as state.\n\n  Helper managers must fulfill the following interface (This example uses\n  [TypeScript interfaces](https://www.typescriptlang.org/docs/handbook/interfaces.html)\n  for precision, you do not need to write helper managers using TypeScript):\n\n  ```ts\n  interface HelperManager<HelperStateBucket> {\n    capabilities: HelperCapabilities;\n\n    createHelper(definition: HelperDefinition, args: TemplateArgs): HelperStateBucket;\n\n    getValue?(bucket: HelperStateBucket): unknown;\n\n    runEffect?(bucket: HelperStateBucket): void;\n\n    getDestroyable?(bucket: HelperStateBucket): object;\n  }\n  ```\n\n  The capabilities property _must_ be provided using the `capabilities()` function\n  imported from the same module as `setHelperManager`:\n\n  ```js\n  import { capabilities } from '@ember/helper';\n\n  class MyHelperManager {\n    capabilities = capabilities('3.21.0', { hasValue: true });\n\n    // ...snip...\n  }\n  ```\n\n  Below is a description of each of the methods on the interface and their\n  functions.\n\n  #### `createHelper`\n\n  `createHelper` is a required hook on the HelperManager interface. The hook is\n  passed the definition of the helper that is currently being created, and is\n  expected to return a _state bucket_. This state bucket is what represents the\n  current state of the helper, and will be passed to the other lifecycle hooks at\n  appropriate times. It is not necessarily related to the definition of the\n  helper itself - for instance, you could return an object _containing_ an\n  instance of the helper:\n\n  ```js\n  class MyManager {\n    createHelper(Definition, args) {\n      return {\n        instance: new Definition(args);\n      };\n    }\n  }\n  ```\n\n  This allows the manager to store metadata that it doesn't want to expose to the\n  user.\n\n  This hook is _not_ autotracked - changes to tracked values used within this hook\n  will _not_ result in a call to any of the other lifecycle hooks. This is because\n  it is unclear what should happen if it invalidates, and rather than make a\n  decision at this point, the initial API is aiming to allow as much expressivity\n  as possible. This could change in the future with changes to capabilities and\n  their behaviors.\n\n  If users do want to autotrack some values used during construction, they can\n  either create the instance of the helper in `runEffect` or `getValue`, or they\n  can use the `cache` API to autotrack the `createHelper` hook themselves. This\n  provides maximum flexibility and expressiveness to manager authors.\n\n  This hook has the following timing semantics:\n\n  **Always**\n  - called as discovered during DOM construction\n  - called in definition order in the template\n\n  #### `getValue`\n\n  `getValue` is an optional hook that should return the value of the helper. This\n  is the value that is returned from the helper and passed into the template.\n\n  This hook is called when the value is requested from the helper (e.g. when the\n  template is rendering and the helper value is needed). The hook is autotracked,\n  and will rerun whenever any tracked values used inside of it are updated.\n  Otherwise it does not rerun.\n\n  > Note: This means that arguments which are not _consumed_ within the hook will\n  > not trigger updates.\n\n  This hook is only called for helpers with the `hasValue` capability enabled.\n  This hook has the following timing semantics:\n\n  **Always**\n  - called the first time the helper value is requested\n  - called after autotracked state has changed\n\n  **Never**\n  - called if the `hasValue` capability is disabled\n\n  #### `runEffect`\n\n  `runEffect` is an optional hook that should run the effect that the helper is\n  applying, setting it up or updating it.\n\n  This hook is scheduled to be called some time after render and prior to paint.\n  There is not a guaranteed, 1-to-1 relationship between a render pass and this\n  hook firing. For instance, multiple render passes could occur, and the hook may\n  only trigger once. It may also never trigger if it was dirtied in one render\n  pass and then destroyed in the next.\n\n  The hook is autotracked, and will rerun whenever any tracked values used inside\n  of it are updated. Otherwise it does not rerun.\n\n  The hook is also run during a time period where state mutations are _disabled_\n  in Ember. Any tracked state mutation will throw an error during this time,\n  including changes to tracked properties, changes made using `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  @since 3.23.0\n  @public\n*/\nconst setHelperManager = setHelperManager$1;\n\n/**\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  ```gjs {data-filename=\"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  <template>\n    {{this.value}}\n  </template>\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  @since 3.23.0\n  @public\n*/\nconst invokeHelper = invokeHelper$1;\n\n// 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-object-type */\n\n/**\n * Using the `{{hash}}` helper, you can pass objects directly from the template\n * as an argument to your components.\n *\n * ```gjs\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 *\n * Note that the hash is an empty object with no prototype chain, therefore\n * common methods like `toString` are not available in the resulting hash.\n * If you need to use such a method, you can use the `call` or `apply`\n * approach:\n *\n * ```js\n * function toString(obj) {\n *   return Object.prototype.toString.apply(obj);\n * }\n * ```\n * The `hash` helper is available as a keyword and does not need to be imported.\n *\n * @method hash\n * @public\n * @static\n * @for Keywords\n * @noimport\n * @param {Object} options\n * @return {Object} Hash\n * @since 2.3.0\n */\nconst hash = hash$1;\n/**\n * Using the `{{array}}` helper, you can pass arrays directly from the template\n * as an argument to your components.\n *\n * ```gjs\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 *\n * The `array` helper is available as a keyword and does not need to be imported.\n *\n * @method array\n * @public\n * @static\n * @for Keywords\n * @noimport\n * @param {Array} options\n * @return {Array} Array\n * @since 3.8.0\n */\nconst array = array$1;\n/**\n * The `{{concat}}` helper Concatenates the given arguments into a string.\n *\n * Example:\n *\n ```gjs\n  import { concat } from '@ember/helper';\n\n  <template>\n    {{yield (concat firstName \" \" lastName)}}\n\n    {{! would yield name=\"<first name value> <last name value>\" to the component}}\n  </template>\n  ```\n\n  or for angle bracket invocation, you actually don't need concat at all:\n\n  ```handlebars\n  <SomeComponent @name=\"{{firstName}} {{lastName}}\" />\n  ```\n *\n * @method concat\n * @for @ember/helper\n * @exampleimport import { concat } from '@ember/helper';\n * @public\n * @static\n * @since 1.13.0\n */\nconst concat = concat$1;\n/**\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 * ```gjs\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 * ```gjs\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 * ```gjs\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 * @method get\n * @for @ember/helper\n * @since 2.1.0\n * @exampleimport import { get } from '@ember/helper';\n * @public\n * @static\n */\nconst get = get$1;\n/**\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 * ```gjs\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 *\n * For example, if you have an `each` helper looping over a number of items, you\n * may need to pass a function that expects to receive the item as an argument\n * to a component invoked within the loop. Here's how you could use the `fn`\n * helper to pass both the function and its arguments together:\n *\n * ```gjs {data-filename=\"app/components/items-listing.gjs\"}\n * <template>\n *   {{#each @items as |item|}}\n *     <DisplayItem @item=item @select={{fn this.handleSelected item}} />\n *   {{/each}}\n * </template>\n * ```\n *\n * ```gjs {data-filename=\"app/components/items-list.gjs\"}\n * import Component from '@glimmer/component';\n * import { action } from '@ember/object';\n *\n * export default class ItemsList extends Component {\n *   @action\n *   handleSelected(item) {\n *     // ...snip...\n *   }\n * }\n * ```\n *\n * In this case the `DisplayItem` component will receive a normal function\n * that it can invoke. When it invokes the function, the `handleSelected`\n * function will receive the `item` and any arguments passed, thanks to the\n * `fn` helper.\n *\n * Let's take a look at what that means in a couple circumstances:\n *\n * - When invoked as `this.args.select()` the `handleSelected` function will\n * receive the `item` from the loop as its first and only argument.\n * - When invoked as `this.args.select('foo')` the `handleSelected` function\n * will receive the `item` from the loop as its first argument and the\n * string `'foo'` as its second argument.\n *\n * See also [partial application](https://en.wikipedia.org/wiki/Partial_application).\n *\n * The `fn` helper is available as a keyword and does not need to be imported.\n *\n * @method fn\n * @for Keywords\n * @noimport\n * @public\n * @since 3.11.0\n * @static\n */\nconst fn = fn$1;\n/**\n * The `{{gt}}` helper returns `true` if the first argument is greater than\n * the second argument.\n *\n * ```gjs\n * <template>\n *   {{if (gt @score 100) \"High score!\" \"Keep trying\"}}\n * </template>\n * ```\n *\n * The `gt` helper is available as a keyword and does not need to be imported.\n *\n * @method gt\n * @param {number} left\n * @param {number} right\n * @return {boolean}\n * @noimport\n * @for Keywords\n * @since 7.1.0\n * @static\n * @public\n */\nconst gt = gt$1;\n/**\n * The `{{gte}}` helper returns `true` if the first argument is greater than\n * or equal to the second argument.\n *\n * ```gjs\n * <template>\n *   {{if (gte @age 18) \"Adult\" \"Minor\"}}\n * </template>\n * ```\n *\n * The `gte` helper is available as a keyword and does not need to be imported.\n *\n * @method gte\n * @param {number} left\n * @param {number} right\n * @return {boolean}\n * @noimport\n * @for Keywords\n * @since 7.1.0\n * @static\n * @public\n */\nconst gte = gte$1;\n/**\n * The `{{lt}}` helper returns `true` if the first argument is less than\n * the second argument.\n *\n * ```gjs\n * <template>\n *   {{if (lt @temperature 0) \"Freezing\" \"Above zero\"}}\n * </template>\n * ```\n *\n * The `lt` helper is available as a keyword and does not need to be imported.\n *\n * @method lt\n * @param {number} left\n * @param {number} right\n * @return {boolean}\n * @noimport\n * @for Keywords\n * @since 7.1.0\n * @static\n * @public\n */\nconst lt = lt$1;\n/**\n * The `{{lte}}` helper returns `true` if the first argument is less than\n * or equal to the second argument.\n *\n * ```gjs\n * <template>\n *   {{if (lte @count 0) \"Empty\" \"Has items\"}}\n * </template>\n * ```\n *\n * The `lte` helper is available as a keyword and does not need to be imported.\n *\n * @method lte\n * @param {number} left\n * @param {number} right\n * @return {boolean}\n * @noimport\n * @for Keywords\n * @since 7.1.0\n * @static\n * @public\n */\nconst lte = lte$1;\n/**\n * The `element` helper lets you dynamically set the tag name of an element.\n *\n * ```gjs\n * <template>\n *   {{#let (element @tagName) as |Tag|}}\n *     <Tag class=\"my-element\">Hello</Tag>\n *   {{/let}}\n * </template>\n * ```\n *\n * When `@tagName` is `\"h1\"`, this renders `<h1 class=\"my-element\">Hello</h1>`.\n * When `@tagName` is an empty string, the block content is rendered without a\n * wrapping element. When `@tagName` is `null` or `undefined`, nothing is rendered.\n *\n * The `element` helper is available as a keyword and does not need to be imported.\n *\n * @method element\n * @param {string} tagName\n * @noimport\n * @for Keywords\n * @since 7.1.0\n * @static\n * @public\n */\nconst element = element$1;\n/**\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 * ```gjs\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 *\n * @method uniqueId\n * @for @ember/helper\n * @public\n * @static\n * @exampleimport import { uniqueId } from '@ember/helper';\n * @since 4.4.0\n */\nconst uniqueId = uniqueId$1;\n/**\n * The `{{eq}}` helper returns `true` if its two arguments are strictly equal\n * (`===`). Takes exactly two arguments.\n *\n * ```gjs\n * <template>\n *   {{if (eq @status \"active\") \"Active\" \"Inactive\"}}\n * </template>\n * ```\n *\n * The `eq` helper is available as a keyword and does not need to be imported.\n *\n * @method eq\n * @param {unknown} left\n * @param {unknown} right\n * @return {boolean}\n * @noimport\n * @for Keywords\n * @static\n * @since 7.1.0\n * @public\n */\nconst eq = eq$1;\n/**\n * The `{{neq}}` helper returns `true` if its two arguments are strictly\n * not equal (`!==`). Takes exactly two arguments.\n *\n * ```gjs\n * <template>\n *   {{if (neq @status \"active\") \"Not active\" \"Active\"}}\n * </template>\n * ```\n *\n * The `neq` helper is available as a keyword and does not need to be imported.\n *\n * @method neq\n * @param {unknown} left\n * @param {unknown} right\n * @return {boolean}\n * @for Keywords\n * @noimport\n * @static\n * @since 7.1.0\n * @public\n */\nconst neq = neq$1;\n/**\n * The `{{and}}` helper evaluates arguments left to right, returning the first\n * falsy value (using Handlebars truthiness) or the right-most value if all\n * are truthy. Requires at least two arguments.\n *\n * ```gjs\n * <template>\n *   {{if (and @isAdmin @isLoggedIn) \"Welcome, admin!\" \"Access denied\"}}\n * </template>\n * ```\n *\n * The `and` helper is available as a keyword and does not need to be imported.\n *\n * @method and\n * @param {unknown} args Two or more values to evaluate\n * @return {unknown} The first falsy value or the last value\n * @noimport\n * @for Keywords\n * @static\n * @since 7.1.0\n * @public\n */\nconst and = and$1;\n/**\n * The `{{or}}` helper evaluates arguments left to right, returning the first\n * truthy value (using Handlebars truthiness) or the right-most value if all\n * are falsy. Requires at least two arguments.\n *\n * ```gjs\n * <template>\n *   {{if (or @hasAccess @isAdmin) \"Welcome!\" \"No access\"}}\n * </template>\n * ```\n *\n * In strict-mode (gjs/gts) templates, `or` is available as a keyword and\n * does not need to be imported.\n *\n * @method or\n * @param {unknown} args Two or more values to evaluate\n * @return {unknown} The first truthy value or the last value\n * @noimport\n * @for Keywords\n * @static\n * @since 7.1.0\n * @public\n */\nconst or = or$1;\n/**\n * The `{{not}}` helper returns the logical negation of its argument using\n * Handlebars truthiness. Takes exactly one argument.\n *\n * ```gjs\n * <template>\n *   {{if (not @isDisabled) \"Enabled\" \"Disabled\"}}\n * </template>\n * ```\n *\n * In strict-mode (gjs/gts) templates, `not` is available as a keyword and\n * does not need to be imported.\n *\n * @method not\n * @param {unknown} value The value to negate\n * @return {boolean}\n * @for Keywords\n * @noimport\n * @static\n * @since 7.1.0\n * @public\n */\nconst not = not$1;\n\n/**\n  `{{yield}}` denotes an area of a template that will be rendered inside\n  of another template.\n\n  ### Use with `Component`\n\n  When designing components, `{{yield}}` is used to denote where, inside the component's\n  template, an optional block passed to the component should render:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import LabeledTextField from '../components/labeled-textfield';\n    \n  <template>\n    <LabeledTextField @value={{@model.name}}>\n      First name:\n    </LabeledTextField>\n  </template>\n  ```\n\n  ```gjs {data-filename=\"app/components/labeled-textfield.gjs\"}\n  import { Input } from '@ember/component';\n    \n  <template>\n    <label>\n      {{yield}} <Input @value={{@value}} />\n    </label>\n  </template>\n  ```\n\n  Result:\n\n  ```html\n  <label>\n    First name: <input type=\"text\" />\n  </label>\n  ```\n\n  Additionally, you can `yield` properties into the context for use by the consumer:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import Component from '@glimmer/component';\n  import LabeledTextField from '../components/labeled-textfield';\n    \n  export default class Application extends Component {\n    firstNameValidator = (value) => {\n      // validates\n    }\n    \n    <template>\n      <LabeledTextField @value={{@model.validation}} @validator={{this.firstNameValidator}} as |validationError|>\n        {{#if validationError}}\n          <p class=\"error\">{{validationError}}</p>\n        {{/if}}\n        First name:\n      </LabeledTextField>\n    </template>\n  }\n  ```\n\n  ```gjs {data-filename=\"app/components/labeled-textfield.gjs\"}\n  import { Input } from '@ember/component';\n    \n  <template>\n    <label>\n      {{yield this.validationError}} <Input @value={{@value}} />\n    </label>\n  </template>\n  ```\n\n  Result:\n\n  ```html\n  <label>\n    <p class=\"error\">First Name must be at least 3 characters long.</p>\n    First name: <input type=\"text\" />\n  </label>\n  ```\n\n  `yield` can also be used with the `hash` helper:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import DateRanges from '../components/date-ranges';\n    \n  <template>\n    <DateRanges @value={{@model.date}} as |range|>\n      Start date: {{range.start}}\n      End date: {{range.end}}\n    </DateRanges>\n  </template>\n  ```\n\n  ```gjs {data-filename=\"app/components/date-ranges.gjs\"}\n  <template>\n    <div>\n      {{yield (hash start=@value.start end=@value.end)}}\n    </div>\n  </template>\n  ```\n\n  Result:\n\n  ```html\n  <div>\n    Start date: July 1st\n    End date: July 30th\n  </div>\n  ```\n\n  Multiple values can be yielded as block params:\n    \n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import Banner from '../components/banner';\n    \n  <template>\n    <Banner @value={{@model}} as |title subtitle body|>\n      <h1>{{title}}</h1>\n      <h2>{{subtitle}}</h2>\n      {{body}}\n    </Banner>\n  </template>\n  ```\n\n  ```gjs {data-filename=\"app/components/banner.gjs\"}\n  <template>\n    <div>\n      {{yield \"Hello title\" \"hello subtitle\" \"body text\"}}\n    </div>\n  </template>\n  ```\n\n  Result:\n\n  ```html\n  <div>\n    <h1>Hello title</h1>\n    <h2>hello subtitle</h2>\n    body text\n  </div>\n  ```\n\n  However, it is preferred to use the hash helper, as this can prevent breaking changes to your component and also simplify the api for the component.\n\n  Multiple components can be yielded with the `hash` and `component` helper:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import Banner from '../components/banner';\n\n  <template>\n    <Banner @value={{@model}} as |banner|>\n      <banner.Title>Banner title</banner.Title>\n      <banner.Subtitle>Banner subtitle</banner.Subtitle>\n      <banner.Body>A load of body text</banner.Body>\n    </Banner>\n  </template>\n  ```\n\n  ```gjs {data-filename=\"app/components/banner.gjs\"}\n  import Title from './banner/title';\n  import Subtitle from './banner/subtitle';\n  import Body from './banner/body';\n\n  export default class Banner extends Component {\n    Title = Title;\n    Subtitle = Subtitle;\n    Body = Body;\n    \n    <template>\n      <div>\n        {{yield (hash\n          Title=this.Title\n          Subtitle=this.Subtitle\n          Body=(component this.Body defaultArg=\"some value\")\n        )}}\n      </div>\n    </template>\n  }\n  ```\n\n  Result:\n\n  ```html\n  <div>\n    <h1>Banner title</h1>\n    <h2>Banner subtitle</h2>\n    A load of body text\n  </div>\n  ```\n\n  A benefit of using this pattern is that the user of the component can change the order the components are displayed.\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import Banner from '../components/banner';\n\n  <template>\n    <Banner @value={{@model}} as |banner|>\n      <banner.Subtitle>Banner subtitle</banner.Subtitle>\n      <banner.Title>Banner title</banner.Title>\n      <banner.Body>A load of body text</banner.Body>\n    </Banner>\n  </template>\n  ```\n\n  Result:\n\n  ```html\n  <div>\n    <h2>Banner subtitle</h2>\n    <h1>Banner title</h1>\n    A load of body text\n  </div>\n  ```\n\n  Another benefit to using `yield` with the `hash` and `component` helper\n  is you can pass attributes and arguments to these components:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import Banner from '../components/banner';\n\n  <template>\n    <Banner @value={{@model}} as |banner|>\n      <banner.Subtitle class=\"mb-1\">Banner subtitle</banner.Subtitle>\n      <banner.Title @variant=\"loud\">Banner title</banner.Title>\n      <banner.Body>A load of body text</banner.Body>\n    </Banner>\n  </template>\n  ```\n\n  ```gjs {data-filename=\"app/components/banner/subtitle.gjs\"}\n  {{!-- note the use of ..attributes --}}\n  <h2 ...attributes>\n    {{yield}}\n  </h2>\n  ```\n\n  ```gjs {data-filename=\"app/components/banner/title.gjs\"}\n  <template>\n    {{#if (eq @variant \"loud\")}}\n      <h1 class=\"loud\">{{yield}}</h1>\n    {{else}}\n      <h1 class=\"quiet\">{{yield}}</h1>\n    {{/if}}\n  </template>\n  ```\n\n  Result:\n\n  ```html\n  <div>\n    <h2 class=\"mb-1\">Banner subtitle</h2>\n    <h1 class=\"loud\">Banner title</h1>\n    A load of body text\n  </div>\n  ```\n\n  `yield` is available as a keyword and does not need to be imported.\n\n  @method yield\n  @param {Hash} options\n  @return {String} HTML string\n  @static\n  @for Keywords\n  @noimport\n  @public\n */\n\n/**\n  `{{(has-block)}}` indicates if the component was invoked with a block.\n\n  This component is invoked with a block:\n\n  ```handlebars\n  <MyComponent>\n    Hi Jen!\n  </MyComponent>\n  ```\n\n  This component is invoked without a block:\n\n  ```handlebars\n  <MyComponent />\n  ```\n\n  This is useful when you want to create a component that can optionally take a block\n  and then render a default template when it is not invoked with a block.\n\n  ```gjs {data-filename=\"app/components/my-component.gjs\"}\n  <template>\n    {{#if (has-block)}}\n      Welcome {{yield}}, we are happy you're here!\n    {{else}}\n      Hey you! You're great!\n    {{/if}}\n  </template>\n  ```\n\n  `has-block` is available as a keyword and does not need to be imported.\n\n  @method has-block\n  @param {String} blockName the name of the block. The name is either \"main\" or \"inverse\" (though only curly components support inverse) or the name given to a named block.\n  @return {Boolean} `true` if the component was invoked with a block\n  @static\n  @for Keywords\n  @noimport\n  @public\n */\n\n/**\n  `{{(has-block-params)}}` indicates if the component was invoked with block params.\n\n  This component is invoked with block params:\n    \n  ```handlebars\n  <MyComponent as |favoriteFlavor|>\n    Hi Jen!\n  </MyComponent>\n  ```\n\n  And without block params:\n\n  ```handlebars\n  <MyComponent>\n    Hi Jen!\n  </MyComponent>\n  ```\n\n  This is useful when you want to create a component that can render itself\n  differently when it is not invoked with block params.\n\n  ```gjs {data-filename=\"app/components/my-component.gjs\"}\n  <template>\n    {{#if (has-block-params)}}\n      Welcome {{yield this.favoriteFlavor}}, we're happy you're here and hope you\n      enjoy your favorite ice cream flavor.\n    {{else}}\n      Welcome {{yield}}, we're happy you're here, but we're unsure what\n      flavor ice cream you would enjoy.\n    {{/if}}\n  </template>\n  ```\n\n  @method has-block-params\n  @static\n  @for Keywords\n  @noimport\n  @param {String} blockName the name of the block. The name is either \"main\" or \"inverse\" (though only curly components support inverse) or the name given to a named block.\n  @return {Boolean} `true` if the component was invoked with block params\n  @public\n */\n\n/**\n  Execute the `debugger` statement in the current template's context.\n\n  ```handlebars\n  {{debugger}}\n  ```\n\n  When using the debugger helper you will have access to a `get` function. This\n  function retrieves values available in the context of the template.\n  For example, if you're wondering why a value `{{foo}}` isn't rendering as\n  expected within a template, you could place a `{{debugger}}` statement and,\n  when the `debugger;` breakpoint is hit, you can attempt to retrieve this value:\n\n  ```\n  > get('foo')\n  ```\n\n  `get` is also aware of keywords. So in this situation\n\n  ```handlebars\n  {{#each this.items as |item|}}\n    {{debugger}}\n  {{/each}}\n  ```\n\n  You'll be able to get values from the current item:\n\n  ```\n  > get('item.name')\n  ```\n\n  You can also access the context of the view to make sure it is the object that\n  you expect:\n\n  ```\n  > context\n  ```\n\n  @method debugger\n  @static\n  @for Keywords\n  @noimport\n  @public\n */\n\n/**\n  The `component` helper is used to package a Component with initial arguments.\n  The included arguments can then be merged during the final invocation.\n\n  See [Component](/ember/release/modules/@glimmer%2Fcomponent/) for\n  additional information on how a `Component` functions.\n\n  This is similar to the concept of Partial Application.\n    \n  For example, given a `FullName` component:\n  \n  ```gjs {data-filename=\"app/components/full-name.gjs\"}\n  import MyInputComponent from './my-input-component';\n  \n  <template>\n    {{yield (component MyInputComponent value=@model.name placeholder=\"Username\")}}\n  </template>\n  ```\n  \n  The yielded component can be invoked by the calling component.\n  See the following snippet:\n  \n  ```gjs {data-filename=\"app/components/person-form.gjs\"}\n  import FullName from './full-name';\n    \n  <template>\n    <FullName @model={{@model}} as |Field|>\n      <Field />\n    </FullName>\n  </template>\n  ```\n  \n  Which will output an input whose value is already bound to `@model.name` and `placeholder`\n  is \"Username\".\n    \n  Any arguments passed at the invocation site of the component will override those applied via\n  the `component` helper. For example, if the invocation site of the component is:\n\n  ```gjs {data-filename=\"app/components/person-form.gjs\"}\n  import FullName from './full-name';\n\n  <template>\n    <FullName @model={{@model}} as |Field|>\n      <Field @placeholder=\"Your name\" />\n    </FullName>\n  </template>\n  ```\n\n  The output will be an input whose value is bound to `@model.name` and `placeholder`\n  is \"Your name\".\n    \n  The `component` helper is built-in and does not need to be imported. \n    \n  Prior to Strict Mode aka \"Template Tag\" or gjs, the component helper was also used to invoke\n  components dynamically. This is no longer necessary, and they can be directly invoked, as above.\n\n  ### Dynamic Component Invocation\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n  import { component } from '@ember/helper';\n  import LiveUpdatingChart from '../components/live-updating-chart';\n  import MarketCloseSummary from '../components/market-close-summary';\n\n  export default class Application extends Component {\n    @tracked isMarketOpen = false;\n\n    get infographicComponent() {\n      return this.isMarketOpen ? LiveUpdatingChart : MarketCloseSummary;\n    }\n\n    <template>\n      {{!-- The component can be invoked directly --}}\n      <this.infographicComponent />\n    \n      {{!-- The component helper here is no longer necessary --}}\n      {{component this.infographicComponentName}}\n    </template>\n  }\n  ```\n\n  @method component\n  @since 1.11.0\n  @static\n  @for Keywords\n  @noimport\n  @public\n*/\n\n/**\n Use the `{{helper}}` helper to create contextual helper so\n that it can be passed around as first-class values in templates.\n\n ```handlebars\n {{#let (helper \"join-words\" \"foo\" \"bar\" separator=\" \") as |foo-bar|}}\n\n   {{!-- this is equivalent to invoking `{{join-words \"foo\" \"bar\" separator=\" \"}}` --}}\n   {{foo-bar}}\n\n   {{!-- this will pass the helper itself into the component, instead of invoking it now --}}\n   <MyComponent @helper={{helper foo-bar \"baz\"}} />\n\n   {{!-- this will yield the helper itself (\"contextual helper\"), instead of invoking it now --}}\n   {{yield foo-bar}}\n {{/let}}\n ```\n\n ### Arguments\n\n The `{{helper}}` helper works similarly to the [`{{component}}`](./component?anchor=component) and\n [`{{modifier}}`](./modifier?anchor=modifier) helper:\n\n * When passed a string (e.g. `(helper \"foo\")`) as the first argument,\n   it will produce an opaque, internal \"helper definition\" object\n   that can be passed around and invoked elsewhere.\n\n * Any additional positional and/or named arguments (a.k.a. params and hash)\n   will be stored (\"curried\") inside the definition object, such that, when invoked,\n   these arguments will be passed along to the referenced helper.\n\n\n @method helper\n @static\n @for Keywords\n @noimport\n @public\n @since 3.27.0\n */\n\n/**\n  The `if` helper allows you to conditionally render one of two branches,\n  depending on the \"truthiness\" of a property.\n  For example the following values are all falsey: `false`, `undefined`, `null`, `\"\"`, `0`, `NaN` or an empty array.\n\n  This helper has two forms, block and inline.\n\n  ## Block form\n\n  You can use the block form of `if` to conditionally render a section of the template.\n\n  To use it, pass the conditional value to the `if` helper,\n  using the block form to wrap the section of template you want to conditionally render.\n  Like so:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import Weather from '../components/weather';\n    \n  <template>\n    <Weather />\n  </template>\n  ```\n\n  ```gjs {data-filename=\"app/components/weather.gjs\"}\n  <template>\n    {{! will not render because greeting is undefined}}\n    {{#if @isRaining}}\n      Yes, grab an umbrella!\n    {{/if}}\n  </template>\n  ```\n\n  You can also define what to show if the property is falsey by using\n  the `else` helper.\n\n  ```gjs {data-filename=\"app/components/weather.gjs\"}\n  <template>\n    {{#if @isRaining}}\n      Yes, grab an umbrella!\n    {{else}}\n      No, it's lovely outside!\n    {{/if}}\n  </template>\n  ```\n\n  You are also able to combine `else` and `if` helpers to create more complex\n  conditional logic.\n\n  For the following template:\n\n   ```gjs {data-filename=\"app/components/weather.gjs\"}\n  <template>\n    {{#if @isRaining}}\n      Yes, grab an umbrella!\n    {{else if @isCold}}\n      Grab a coat, it's chilly!\n    {{else}}\n      No, it's lovely outside!\n    {{/if}}\n  </template>  \n  ```\n\n  If you call it by saying `isCold` is true:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import Weather from '../components/weather';\n    \n  <template>\n    <Weather @isCold={{true}} />\n  </template>\n  ```\n\n  Then `Grab a coat, it's chilly!` will be rendered.\n\n  ## Inline form\n\n  The inline `if` helper conditionally renders a single property or string.\n\n  In this form, the `if` helper receives three arguments, the conditional value,\n  the value to render when truthy, and the value to render when falsey.\n\n  For example, if `useLongGreeting` is truthy, the following:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import Greeting from '../components/greeting';\n  \n  <template>\n    <Greeting @useLongGreeting={{true}} />\n  <template>\n  ```\n\n  ```gjs {data-filename=\"app/components/greeting.gjs\"}\n  <template>\n    {{if @useLongGreeting \"Hello\" \"Hi\"}} Alex\n  <template>\n  ```\n\n  Will render:\n\n  ```html\n  Hello Alex\n  ```\n\n  One detail to keep in mind is that both branches of the `if` helper will be evaluated,\n  so if you have `{{if condition \"foo\" (expensive-operation \"bar\")`,\n  `expensive-operation` will always calculate.\n \n  `if` is built-in and does not need to be imported.\n \n  @method if\n  @static\n  @for Keywords\n  @noimport\n  @public\n*/\n\n/**\n  The `unless` helper is the inverse of the `if` helper. It displays if a value\n  is falsey (\"not true\" or \"is false\"). Example values that will display with\n  `unless`: `false`, `undefined`, `null`, `\"\"`, `0`, `NaN` or an empty array.\n\n  ## Inline form\n\n  The inline `unless` helper conditionally renders a single property or string.\n  This helper acts like a ternary operator. If the first property is falsy,\n  the second argument will be displayed, otherwise, the third argument will be\n  displayed\n\n  For example, if you pass a falsey `useLongGreeting` to the `Greeting` component:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import Greeting from '../components/greeting';\n    \n  <template>\n    <Greeting @useLongGreeting={{false}} />\n  </template>\n  ```\n\n  ```gjs {data-filename=\"app/components/greeting.gjs\"}\n  <template>\n    {{unless @useLongGreeting \"Hi\" \"Hello\"}} Ben\n  </template>\n  ```\n\n  Then it will display:\n\n  ```html\n  Hi Ben\n  ```\n\n  ## Block form\n\n  Like the `if` helper, the `unless` helper also has a block form.\n\n  The following will not render anything:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import Greeting from '../components/greeting';\n    \n  <template>\n    <Greeting />\n  </template>\n  ```\n\n  ```gjs {data-filename=\"app/components/greeting.gjs\"}\n  <template>\n    {{#unless @greeting}}\n      No greeting was found. Why not set one?\n    {{/unless}}\n  </template>\n  ```\n\n  You can also use an `else` helper with the `unless` block. The\n  `else` will display if the value is truthy.\n\n  If you have the following component:\n\n  ```gjs {data-filename=\"app/components/logged-in.gjs\"}\n  <template>\n    {{#unless @userData}}\n      Please login.\n    {{else}}\n      Welcome back!\n    {{/unless}}\n  </template>\n  ```\n\n  Calling it with a truthy `userData`:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import LoggedIn from '../components/logged-in';\n    \n  <template>\n    <LoggedIn @userData={{hash username=\"Zoey\"}} />\n  </template>\n  ```\n\n  Will render:\n\n  ```html\n  Welcome back!\n  ```\n\n  and calling it with a falsey `userData`:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import LoggedIn from '../components/logged-in';\n\n  <template>\n    <LoggedIn @userData={{false}} />\n  </template>\n  ```\n\n  Will render:\n\n  ```html\n  Please login.\n  ```\n \n  `unless` is built-in and does not need to be imported.\n \n  @method unless\n  @for Keywords\n  @noimport\n  @static\n  @public\n*/\n\n/**\n  `log` allows you to output the value of variables in the current rendering\n  context. `log` also accepts primitive types such as strings or numbers.\n\n  ```handlebars\n  {{log \"myVariable:\" myVariable }}\n  ```\n \n  `log` is built-in as a template keyword and does not need to be imported.\n\n  @method log\n  @for Keywords\n  @noimport\n  @static\n  @param {Array} params\n  @public\n*/\n\n/**\n Use the `{{modifier}}` helper to create contextual modifier so\n that it can be passed around as first-class values in templates.\n\n ```handlebars\n {{#let (modifier \"click-outside\" click=this.submit) as |on-click-outside|}}\n\n   {{!-- this is equivalent to `<MyComponent {{click-outside click=this.submit}} />` --}}\n   <MyComponent {{on-click-outside}} />\n\n   {{!-- this will pass the modifier itself into the component, instead of invoking it now --}}\n   <MyComponent @modifier={{modifier on-click-outside \"extra\" \"args\"}} />\n\n   {{!-- this will yield the modifier itself (\"contextual modifier\"), instead of invoking it now --}}\n   {{yield on-click-outside}}\n {{/let}}\n ```\n\n ### Arguments\n\n The `{{modifier}}` helper works similarly to the [`{{component}}`](./component?anchor=component) and\n [`{{helper}}`](./helper?anchor=helper) helper:\n\n * When passed a string (e.g. `(modifier \"foo\")`) as the first argument,\n   it will produce an opaque, internal \"modifier definition\" object\n   that can be passed around and invoked elsewhere.\n\n * Any additional positional and/or named arguments (a.k.a. params and hash)\n   will be stored (\"curried\") inside the definition object, such that, when invoked,\n   these arguments will be passed along to the referenced modifier.\n\n `modifier` is built-in as a template keyword and does not need to be imported.\n \n @method modifier\n @for Keywords\n @static\n @public\n @since 3.27.0\n */\n\n/**\n  `pageTitle` allows you to set the title of any page in your application and\n  append additional titles for each route. For complete documentation, see\n  https://github.com/ember-cli/ember-page-title.\n\n  ```gjs\n  import { pageTitle } from 'ember-page-title';\n    \n  <template>\n    {{pageTitle \"My Page Title\" }}\n  </template>\n  ```\n\n  @method pageTitle\n  @for External\n  @param {String} param\n  @static\n  @public\n*/\n\n/**\n    The `let` helper receives one or more positional arguments and yields\n    them out as block params.\n\n    This allows the developer to introduce shorter names for certain computations\n    in the template.\n\n    This is especially useful if you are passing properties to a component\n    that receives a lot of options and you want to clean up the invocation.\n\n    For the following example, the template receives a `post` object with\n    `content` and `title` properties.\n\n    We are going to call the `my-post` component, passing a title which is\n    the title of the post suffixed with the name of the blog, the content\n    of the post, and a series of options defined in-place.\n\n    ```handlebars\n    {{#let\n        (concat post.title ' | The Ember.js Blog')\n        post.content\n        (hash\n          theme=\"high-contrast\"\n          enableComments=true\n        )\n        as |title content options|\n    }}\n      <MyPost @title={{title}} @content={{content}} @options={{options}} />\n    {{/let}}\n  ```\n\n `let` is built-in and does not need to be imported.\n \n  @method let\n  @static\n  @noimport\n  @for Keywords\n  @public\n*/\n\n/**\n The `in-element` helper renders its block content outside of the regular flow,\n into a DOM element given by its `destinationElement` positional argument.\n\n Common use cases - often referred to as \"portals\" or \"wormholes\" - are rendering\n dropdowns, modals or tooltips close to the root of the page to bypass CSS overflow\n rules, or to render content to parts of the page that are outside of the control\n of the Ember app itself (e.g. embedded into a static or server rendered HTML page).\n\n ```handlebars\n {{#in-element this.destinationElement}}\n   <div>Some content</div>\n {{/in-element}}\n ```\n\n ### Arguments\n\n `{{in-element}}` requires a single positional argument:\n\n - `destinationElement` -- the DOM element to render into. It must exist at the time\n of rendering.\n\n It also supports an optional named argument:\n\n - `insertBefore` -- by default the DOM element's content is replaced when used as\n `destinationElement`. Passing `null` to `insertBefore` changes the behaviour to\n append the block content to the end of any existing content. Any other value than\n `null` is currently not supported.\n\n     For example:\n\n     ```handlebars\n     {{#in-element this.destinationElement insertBefore=null}}\n       <div>Some content</div>\n     {{/in-element}}\n     ```\n\n `in-element` is built-in and does not need to be imported.\n \n @method in-element\n @for Keywords\n @param {Element} destinationElement the DOM element to render into. It must exist at the time\n  of rendering.\n @param {Boolean} insertBefore named argument, by default the DOM element's content is replaced when used as\n  `destinationElement`. Passing `null` to `insertBefore` changes the behaviour to\n  append the block content to the end of any existing content. Any other value than\n  `null` is currently not supported.\n @static\n @noimport\n @public\n */\n\n/* eslint-enable @typescript-eslint/no-empty-object-type */\n\nexport { and, array, capabilities, concat, element, eq, fn, get, gt, gte, hash, invokeHelper, lt, lte, neq, not, or, setHelperManager, uniqueId };\n","import { E as ENV } from '../../shared-chunks/env-DXxsTFkM.js';\n\n/* eslint no-console:off */\n/* global console */\n\n/**\n@module @ember/instrumentation\n@private\n*/\n\n/**\n  The purpose of the Ember Instrumentation module is\n  to provide efficient, general-purpose instrumentation\n  for Ember.\n\n  Subscribe to a listener by using `subscribe`:\n\n  ```javascript\n  import { subscribe } from '@ember/instrumentation';\n\n  subscribe(\"render\", {\n    before(name, timestamp, payload) {\n\n    },\n\n    after(name, timestamp, payload) {\n\n    }\n  });\n  ```\n\n  If you return a value from the `before` callback, that same\n  value will be passed as a fourth parameter to the `after`\n  callback.\n\n  Instrument a block of code by using `instrument`:\n\n  ```javascript\n  import { instrument } from '@ember/instrumentation';\n\n  instrument(\"render.handlebars\", payload, function() {\n    // rendering logic\n  }, binding);\n  ```\n\n  Event names passed to `instrument` are namespaced\n  by periods, from more general to more specific. Subscribers\n  can listen for events by whatever level of granularity they\n  are interested in.\n\n  In the above example, the event is `render.handlebars`,\n  and the subscriber listened for all events beginning with\n  `render`. It would receive callbacks for events named\n  `render`, `render.handlebars`, `render.container`, or\n  even `render.handlebars.layout`.\n\n  @class Instrumentation\n  @static\n  @private\n*/\nlet subscribers = [];\nlet cache = {};\nfunction populateListeners(name) {\n  let listeners = [];\n  for (let subscriber of subscribers) {\n    if (subscriber.regex.test(name)) {\n      listeners.push(subscriber.object);\n    }\n  }\n  cache[name] = listeners;\n  return listeners;\n}\nconst time = () => performance.now();\nfunction isCallback(value) {\n  return typeof value === 'function';\n}\n\n/**\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*/\n\nfunction instrument(name, p1, p2, p3) {\n  let _payload;\n  let callback;\n  let binding;\n  if (arguments.length <= 3 && isCallback(p1)) {\n    callback = p1;\n    binding = p2;\n  } else {\n    _payload = p1;\n    callback = p2;\n    binding = p3;\n  }\n\n  // fast path\n  if (subscribers.length === 0) {\n    return callback.call(binding);\n  }\n\n  // avoid allocating the payload in fast path\n  let payload = _payload || {};\n  let finalizer = _instrumentStart(name, () => payload);\n  if (finalizer === NOOP) {\n    return callback.call(binding);\n  } else {\n    return withFinalizer(callback, finalizer, payload, binding);\n  }\n}\nfunction flaggedInstrument(_name, _payload, callback) {\n  return callback();\n}\nfunction withFinalizer(callback, finalizer, payload, binding) {\n  try {\n    return callback.call(binding);\n  } catch (e) {\n    payload.exception = e;\n    throw e;\n  } finally {\n    finalizer();\n  }\n}\nfunction NOOP() {}\n\n// private for now\n\nfunction _instrumentStart(name, payloadFunc, payloadArg) {\n  if (subscribers.length === 0) {\n    return NOOP;\n  }\n  let listeners = cache[name];\n  if (!listeners) {\n    listeners = populateListeners(name);\n  }\n  if (listeners.length === 0) {\n    return NOOP;\n  }\n  let payload = payloadFunc(payloadArg);\n  let STRUCTURED_PROFILE = ENV.STRUCTURED_PROFILE;\n  let timeName;\n  if (STRUCTURED_PROFILE) {\n    timeName = `${name}: ${payload.object}`;\n    console.time(timeName);\n  }\n  let beforeValues = [];\n  let timestamp = time();\n  for (let listener of listeners) {\n    beforeValues.push(listener.before(name, timestamp, payload));\n  }\n  const constListeners = listeners;\n  return function _instrumentEnd() {\n    let timestamp = time();\n    for (let i = 0; i < constListeners.length; i++) {\n      let listener = constListeners[i];\n      if (typeof listener.after === 'function') {\n        listener.after(name, timestamp, payload, beforeValues[i]);\n      }\n    }\n    if (STRUCTURED_PROFILE) {\n      console.timeEnd(timeName);\n    }\n  };\n}\n\n/**\n  Subscribes to a particular event or instrumented block of code.\n\n  @method subscribe\n  @for @ember/instrumentation\n  @static\n\n  @param {String} [pattern] Namespaced event name.\n  @param {Object} [object] Before and After hooks.\n\n  @return {Subscriber}\n  @private\n*/\nfunction subscribe(pattern, object) {\n  let paths = pattern.split('.');\n  let regexes = [];\n  for (let path of paths) {\n    if (path === '*') {\n      regexes.push('[^\\\\.]*');\n    } else {\n      regexes.push(path);\n    }\n  }\n  let regex = regexes.join('\\\\.');\n  regex = `${regex}(\\\\..*)?`;\n  let subscriber = {\n    pattern,\n    regex: new RegExp(`^${regex}$`),\n    object\n  };\n  subscribers.push(subscriber);\n  cache = {};\n  return subscriber;\n}\n\n/**\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*/\nfunction unsubscribe(subscriber) {\n  let index = 0;\n  for (let i = 0; i < subscribers.length; i++) {\n    if (subscribers[i] === subscriber) {\n      index = i;\n    }\n  }\n  subscribers.splice(index, 1);\n  cache = {};\n}\n\n/**\n  Resets `Instrumentation` by flushing list of subscribers.\n\n  @method reset\n  @for @ember/instrumentation\n  @static\n  @private\n*/\nfunction reset() {\n  subscribers.length = 0;\n  cache = {};\n}\n\nexport { _instrumentStart, flaggedInstrument, instrument, reset, subscribe, subscribers, unsubscribe };\n","import { d as setModifierManager$1 } from '../../shared-chunks/api-CoUjEXgs.js';\nexport { m as capabilities } from '../../shared-chunks/api-CoUjEXgs.js';\nexport { on } from './on.js';\n\n// 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;\n\nexport { setModifierManager };\n","import { o as on$1 } from '../../shared-chunks/on-BFt-Sx9A.js';\n\n// 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-object-type\n\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;\n\nexport { on };\n","export { g as cacheFor } from '../../shared-chunks/computed_cache-DmYKevAP.js';\nexport { g as guidFor } from '../../shared-chunks/guid-Cbq2sNV_.js';\nimport '../../shared-chunks/super-BBBjgF69.js';\nimport '../-internals/deprecations/index.js';\nimport EmberObject from './index.js';\n\n// 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\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\n\nlet FrameworkObject = class FrameworkObject extends EmberObject {};\n\nexport { FrameworkObject };\n","import { s as setClassicDecorator, i as isElementDescriptor } from '../../shared-chunks/decorator-DcvVDSJV.js';\nimport { t as track, U as UPDATE_TAG, c as consumeTag } from '../../shared-chunks/cache-CofLhaS4.js';\nimport { t as tagFor } from '../../shared-chunks/meta-BJtIZDir.js';\n\nlet wrapGetterSetter = function (target, key, desc) {\n  let {\n    get: originalGet\n  } = desc;\n  if (originalGet !== undefined) {\n    desc.get = function () {\n      let propertyTag = tagFor(this, key);\n      let ret;\n      let tag = track(() => {\n        ret = originalGet.call(this);\n      });\n      UPDATE_TAG(propertyTag, tag);\n      consumeTag(tag);\n      return ret;\n    };\n  }\n  return desc;\n};\n\n/**\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  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 */\n\nfunction dependentKeyCompat(...args) {\n  if (isElementDescriptor(args)) {\n    let [target, key, desc] = args;\n    return wrapGetterSetter(target, key, desc);\n  } else {\n    const desc = args[0];\n    let decorator = function (target, key, _desc, _meta, isClassicDecorator) {\n      return wrapGetterSetter(target, key, desc);\n    };\n    setClassicDecorator(decorator);\n    return decorator;\n  }\n}\nsetClassicDecorator(dependentKeyCompat);\n\nexport { dependentKeyCompat };\n","import { g as getFactoryFor, s as setFactoryFor } from '../../shared-chunks/container-BYOnjnwz.js';\nimport { getOwner } from '../-internals/owner/index.js';\nimport { g as guidFor } from '../../shared-chunks/guid-Cbq2sNV_.js';\nimport { meta } from '../-internals/meta/lib/meta.js';\nimport '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { s as sendEvent } from '../../shared-chunks/events-3Q5Qvo6Q.js';\nimport { a as activateObserver } from '../../shared-chunks/observers-B1wiwQeH.js';\nimport { d as descriptorForProperty } from '../../shared-chunks/decorator-DcvVDSJV.js';\nimport { registerDestructor, isDestroyed, isDestroying, destroy } from '../../@glimmer/destroyable/index.js';\nimport '../../shared-chunks/cache-CofLhaS4.js';\nimport '../../shared-chunks/reference-CccCE8mJ.js';\nimport { M as Mixin, a as applyMixin, I as INTERNAL_MIXIN_CREATE } from '../../shared-chunks/mixin-AGmJaAAY.js';\nimport '../-internals/runtime/lib/mixins/action_handler.js';\nimport makeArray from '../array/lib/make-array.js';\nimport { OWNER } from '../../@glimmer/owner/index.js';\n\n/**\n  @module @ember/object/core\n*/\n\n\n// TODO: Is this correct?\n\nfunction hasSetUnknownProperty(val) {\n  return typeof val === 'object' && val !== null && typeof val.setUnknownProperty === 'function';\n}\nfunction hasToStringExtension(val) {\n  return typeof val === 'object' && val !== null && typeof val.toStringExtension === 'function';\n}\nconst reopen = Mixin.prototype.reopen;\nconst wasApplied = new WeakSet();\nconst prototypeMixinMap = new WeakMap();\n\nconst destroyCalled = new Set();\nfunction ensureDestroyCalled(instance) {\n  if (!destroyCalled.has(instance)) {\n    instance.destroy();\n  }\n}\nfunction initialize(obj, properties) {\n  let m = meta(obj);\n  if (properties !== undefined) {\n    let concatenatedProperties = obj.concatenatedProperties;\n    let mergedProperties = obj.mergedProperties;\n    let keyNames = Object.keys(properties);\n    for (let keyName of keyNames) {\n      // 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.\n      let value = properties[keyName];\n      let possibleDesc = descriptorForProperty(obj, keyName, m);\n      let isDescriptor = possibleDesc !== undefined;\n      if (!isDescriptor) {\n        if (concatenatedProperties !== undefined && concatenatedProperties.length > 0 && concatenatedProperties.includes(keyName)) {\n          let baseValue = obj[keyName];\n          if (baseValue) {\n            value = makeArray(baseValue).concat(value);\n          } else {\n            value = makeArray(value);\n          }\n        }\n        if (mergedProperties !== undefined && mergedProperties.length > 0 && mergedProperties.includes(keyName)) {\n          let baseValue = obj[keyName];\n          value = Object.assign({}, baseValue, value);\n        }\n      }\n      if (isDescriptor) {\n        possibleDesc.set(obj, keyName, value);\n      } else if (hasSetUnknownProperty(obj) && !(keyName in obj)) {\n        obj.setUnknownProperty(keyName, value);\n      } else {\n        {\n          obj[keyName] = value;\n        }\n      }\n    }\n  }\n  obj.init(properties);\n  m.unsetInitializing();\n  let observerEvents = m.observerEvents();\n  if (observerEvents !== undefined) {\n    for (let i = 0; i < observerEvents.length; i++) {\n      activateObserver(obj, observerEvents[i].event, observerEvents[i].sync);\n    }\n  }\n  sendEvent(obj, 'init', undefined, undefined, m);\n}\n\n/**\n  `CoreObject` is the base class for all Ember constructs. It establishes a\n  class system based on Ember's Mixin system, and provides the basis for the\n  Ember Object Model. `CoreObject` should generally not be used directly,\n  instead you should use `EmberObject`.\n\n  ## Usage\n\n  You can define a class by extending from `CoreObject` using the `extend`\n  method:\n\n  ```js\n  const Person = CoreObject.extend({\n    name: 'Tomster',\n  });\n  ```\n\n  For detailed usage, see the [Object Model](https://guides.emberjs.com/release/object-model/)\n  section of the guides.\n\n  ## Usage with Native Classes\n\n  Native JavaScript `class` syntax can be used to extend from any `CoreObject`\n  based class:\n\n  ```js\n  class Person extends CoreObject {\n    init() {\n      super.init(...arguments);\n      this.name = 'Tomster';\n    }\n  }\n  ```\n\n  Some notes about `class` usage:\n\n  * `new` syntax is not currently supported with classes that extend from\n    `EmberObject` or `CoreObject`. You must continue to use the `create` method\n    when making new instances of classes, even if they are defined using native\n    class syntax. If you want to use `new` syntax, consider creating classes\n    which do _not_ extend from `EmberObject` or `CoreObject`. Ember features,\n    such as computed properties and decorators, will still work with base-less\n    classes.\n  * Instead of using `this._super()`, you must use standard `super` syntax in\n    native classes. See the [MDN docs on classes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Super_class_calls_with_super)\n    for more details.\n  * Native classes support using [constructors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Constructor)\n    to set up newly-created instances. Ember uses these to, among other things,\n    support features that need to retrieve other entities by name, like Service\n    injection and `getOwner`. To ensure your custom instance setup logic takes\n    place after this important work is done, avoid using the `constructor` in\n    favor of `init`.\n  * Properties passed to `create` will be available on the instance by the time\n    `init` runs, so any code that requires these values should work at that\n    time.\n  * Using native classes, and switching back to the old Ember Object model is\n    fully supported.\n\n  @class CoreObject\n  @public\n*/\n\nclass CoreObject {\n  /** @internal */\n  [OWNER];\n  constructor(owner) {\n    this[OWNER] = owner;\n\n    // prepare prototype...\n    this.constructor.proto();\n    let self;\n    {\n      self = this;\n    }\n    const destroyable = self;\n    registerDestructor(self, ensureDestroyCalled, true);\n    registerDestructor(self, () => destroyable.willDestroy());\n\n    // disable chains\n    let m = meta(self);\n    m.setInitializing();\n  }\n  reopen(...args) {\n    applyMixin(this, args);\n    return this;\n  }\n\n  /**\n    An overridable method called when objects are instantiated. By default,\n    does nothing unless it is overridden during class definition.\n     Example:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      init() {\n        alert(`Name is ${this.get('name')}`);\n      }\n    });\n     let steve = Person.create({\n      name: 'Steve'\n    });\n     // alerts 'Name is Steve'.\n    ```\n     NOTE: If you do override `init` for a framework class like `Component`\n    from `@ember/component`, be sure to call `this._super(...arguments)`\n    in your `init` declaration!\n    If you don't, Ember may not have an opportunity to\n    do important setup work, and you'll see strange behavior in your\n    application.\n     @method init\n    @public\n  */\n  init(_properties) {}\n\n  /**\n    Defines the properties that will be concatenated from the superclass\n    (instead of overridden).\n     By default, when you extend an Ember class a property defined in\n    the subclass overrides a property with the same name that is defined\n    in the superclass. However, there are some cases where it is preferable\n    to build up a property's value by combining the superclass' property\n    value with the subclass' value. An example of this in use within Ember\n    is the `classNames` property of `Component` from `@ember/component`.\n     Here is some sample code showing the difference between a concatenated\n    property and a normal one:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Bar = EmberObject.extend({\n      // Configure which properties to concatenate\n      concatenatedProperties: ['concatenatedProperty'],\n       someNonConcatenatedProperty: ['bar'],\n      concatenatedProperty: ['bar']\n    });\n     const FooBar = Bar.extend({\n      someNonConcatenatedProperty: ['foo'],\n      concatenatedProperty: ['foo']\n    });\n     let fooBar = FooBar.create();\n    fooBar.get('someNonConcatenatedProperty'); // ['foo']\n    fooBar.get('concatenatedProperty'); // ['bar', 'foo']\n    ```\n     This behavior extends to object creation as well. Continuing the\n    above example:\n     ```javascript\n    let fooBar = FooBar.create({\n      someNonConcatenatedProperty: ['baz'],\n      concatenatedProperty: ['baz']\n    })\n    fooBar.get('someNonConcatenatedProperty'); // ['baz']\n    fooBar.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n    ```\n     Adding a single property that is not an array will just add it in the array:\n     ```javascript\n    let fooBar = FooBar.create({\n      concatenatedProperty: 'baz'\n    })\n    view.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n    ```\n     Using the `concatenatedProperties` property, we can tell Ember to mix the\n    content of the properties.\n     In `Component` the `classNames`, `classNameBindings` and\n    `attributeBindings` properties are concatenated.\n     This feature is available for you to use throughout the Ember object model,\n    although typical app developers are likely to use it infrequently. Since\n    it changes expectations about behavior of properties, you should properly\n    document its usage in each individual concatenated property (to not\n    mislead your users to think they can override the property in a subclass).\n     @property concatenatedProperties\n    @type Array\n    @default null\n    @public\n  */\n\n  /**\n    Defines the properties that will be merged from the superclass\n    (instead of overridden).\n     By default, when you extend an Ember class a property defined in\n    the subclass overrides a property with the same name that is defined\n    in the superclass. However, there are some cases where it is preferable\n    to build up a property's value by merging the superclass property value\n    with the subclass property's value. An example of this in use within Ember\n    is the `queryParams` property of routes.\n     Here is some sample code showing the difference between a merged\n    property and a normal one:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Bar = EmberObject.extend({\n      // Configure which properties are to be merged\n      mergedProperties: ['mergedProperty'],\n       someNonMergedProperty: {\n        nonMerged: 'superclass value of nonMerged'\n      },\n      mergedProperty: {\n        page: { replace: false },\n        limit: { replace: true }\n      }\n    });\n     const FooBar = Bar.extend({\n      someNonMergedProperty: {\n        completelyNonMerged: 'subclass value of nonMerged'\n      },\n      mergedProperty: {\n        limit: { replace: false }\n      }\n    });\n     let fooBar = FooBar.create();\n     fooBar.get('someNonMergedProperty');\n    // => { completelyNonMerged: 'subclass value of nonMerged' }\n    //\n    // Note the entire object, including the nonMerged property of\n    // the superclass object, has been replaced\n     fooBar.get('mergedProperty');\n    // => {\n    //   page: {replace: false},\n    //   limit: {replace: false}\n    // }\n    //\n    // Note the page remains from the superclass, and the\n    // `limit` property's value of `false` has been merged from\n    // the subclass.\n    ```\n     This behavior is not available during object `create` calls. It is only\n    available at `extend` time.\n     In `Route` the `queryParams` property is merged.\n     This feature is available for you to use throughout the Ember object model,\n    although typical app developers are likely to use it infrequently. Since\n    it changes expectations about behavior of properties, you should properly\n    document its usage in each individual merged property (to not\n    mislead your users to think they can override the property in a subclass).\n     @property mergedProperties\n    @type Array\n    @default null\n    @public\n  */\n\n  /**\n    Destroyed object property flag.\n     if this property is `true` the observers and bindings were already\n    removed by the effect of calling the `destroy()` method.\n     @property isDestroyed\n    @default false\n    @public\n  */\n  get isDestroyed() {\n    return isDestroyed(this);\n  }\n  set isDestroyed(_value) {\n  }\n\n  /**\n    Destruction scheduled flag. The `destroy()` method has been called.\n     The object stays intact until the end of the run loop at which point\n    the `isDestroyed` flag is set.\n     @property isDestroying\n    @default false\n    @public\n  */\n  get isDestroying() {\n    return isDestroying(this);\n  }\n  set isDestroying(_value) {\n  }\n\n  /**\n    Destroys an object by setting the `isDestroyed` flag and removing its\n    metadata, which effectively destroys observers and bindings.\n     If you try to set a property on a destroyed object, an exception will be\n    raised.\n     Note that destruction is scheduled for the end of the run loop and does not\n    happen immediately.  It will set an isDestroying flag immediately.\n     @method destroy\n    @return {EmberObject} receiver\n    @public\n  */\n  destroy() {\n    // Used to ensure that manually calling `.destroy()` does not immediately call destroy again\n    destroyCalled.add(this);\n    try {\n      destroy(this);\n    } finally {\n      destroyCalled.delete(this);\n    }\n    return this;\n  }\n\n  /**\n    Override to implement teardown.\n     @method willDestroy\n    @public\n  */\n  willDestroy() {}\n\n  /**\n    Returns a string representation which attempts to provide more information\n    than Javascript's `toString` typically does, in a generic way for all Ember\n    objects.\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend();\n    person = Person.create();\n    person.toString(); //=> \"<Person:ember1024>\"\n    ```\n     If the object's class is not defined on an Ember namespace, it will\n    indicate it is a subclass of the registered superclass:\n     ```javascript\n    const Student = Person.extend();\n    let student = Student.create();\n    student.toString(); //=> \"<(subclass of Person):ember1025>\"\n    ```\n     If the method `toStringExtension` is defined, its return value will be\n    included in the output.\n     ```javascript\n    const Teacher = Person.extend({\n      toStringExtension() {\n        return this.get('fullName');\n      }\n    });\n    teacher = Teacher.create();\n    teacher.toString(); //=> \"<Teacher:ember1026:Tom Dale>\"\n    ```\n     @method toString\n    @return {String} string representation\n    @public\n  */\n  toString() {\n    let extension = hasToStringExtension(this) ? `:${this.toStringExtension()}` : '';\n    return `<${getFactoryFor(this) || '(unknown)'}:${guidFor(this)}${extension}>`;\n  }\n\n  /**\n    Creates a new subclass.\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      say(thing) {\n        alert(thing);\n       }\n    });\n    ```\n     This defines a new subclass of EmberObject: `Person`. It contains one method: `say()`.\n     You can also create a subclass from any existing class by calling its `extend()` method.\n    For example, you might want to create a subclass of Ember's built-in `Component` class:\n     ```javascript\n    import Component from '@ember/component';\n     const PersonComponent = Component.extend({\n      tagName: 'li',\n      classNameBindings: ['isAdministrator']\n    });\n    ```\n     When defining a subclass, you can override methods but still access the\n    implementation of your parent class by calling the special `_super()` method:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      say(thing) {\n        let name = this.get('name');\n        alert(`${name} says: ${thing}`);\n      }\n    });\n     const Soldier = Person.extend({\n      say(thing) {\n        this._super(`${thing}, sir!`);\n      },\n      march(numberOfHours) {\n        alert(`${this.get('name')} marches for ${numberOfHours} hours.`);\n      }\n    });\n     let yehuda = Soldier.create({\n      name: 'Yehuda Katz'\n    });\n     yehuda.say('Yes');  // alerts \"Yehuda Katz says: Yes, sir!\"\n    ```\n     The `create()` on line #17 creates an *instance* of the `Soldier` class.\n    The `extend()` on line #8 creates a *subclass* of `Person`. Any instance\n    of the `Person` class will *not* have the `march()` method.\n     You can also pass `Mixin` classes to add additional properties to the subclass.\n     ```javascript\n    import EmberObject from '@ember/object';\n    import Mixin from '@ember/object/mixin';\n     const Person = EmberObject.extend({\n      say(thing) {\n        alert(`${this.get('name')} says: ${thing}`);\n      }\n    });\n     const SingingMixin = Mixin.create({\n      sing(thing) {\n        alert(`${this.get('name')} sings: la la la ${thing}`);\n      }\n    });\n     const BroadwayStar = Person.extend(SingingMixin, {\n      dance() {\n        alert(`${this.get('name')} dances: tap tap tap tap `);\n      }\n    });\n    ```\n     The `BroadwayStar` class contains three methods: `say()`, `sing()`, and `dance()`.\n     @method extend\n    @static\n    @for @ember/object\n    @param {Mixin} [mixins]* One or more Mixin classes\n    @param {Object} [arguments]* Object containing values to use within the new class\n    @public\n  */\n\n  static extend(...mixins) {\n    let Class = class extends this {};\n    reopen.apply(Class.PrototypeMixin, mixins);\n    return Class;\n  }\n\n  /**\n    Creates an instance of a class. Accepts either no arguments, or an object\n    containing values to initialize the newly instantiated object with.\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      helloWorld() {\n        alert(`Hi, my name is ${this.get('name')}`);\n      }\n    });\n     let tom = Person.create({\n      name: 'Tom Dale'\n    });\n     tom.helloWorld(); // alerts \"Hi, my name is Tom Dale\".\n    ```\n     `create` will call the `init` function if defined during\n    `AnyObject.extend`\n     If no arguments are passed to `create`, it will not set values to the new\n    instance during initialization:\n     ```javascript\n    let noName = Person.create();\n    noName.helloWorld(); // alerts undefined\n    ```\n     NOTE: For performance reasons, you cannot declare methods or computed\n    properties during `create`. You should instead declare methods and computed\n    properties when using `extend`.\n     @method create\n    @for @ember/object\n    @static\n    @param [arguments]*\n    @public\n  */\n\n  static create(...args) {\n    let props = args[0];\n    let instance;\n    if (props !== undefined) {\n      instance = new this(getOwner(props));\n      // 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.\n      let factory = getFactoryFor(props);\n      // assert(`missing factory when creating object ${instance}`, factory !== undefined);\n      setFactoryFor(instance, factory);\n    } else {\n      instance = new this();\n    }\n    if (args.length <= 1) {\n      initialize(instance, props);\n    } else {\n      initialize(instance, flattenProps.apply(this, args));\n    }\n\n    // SAFETY: The `initialize` call is responsible to merge the prototype chain\n    // so that this holds.\n    return instance;\n  }\n\n  /**\n    Augments a constructor's prototype with additional\n    properties and functions:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const MyObject = EmberObject.extend({\n      name: 'an object'\n    });\n     o = MyObject.create();\n    o.get('name'); // 'an object'\n     MyObject.reopen({\n      say(msg) {\n        console.log(msg);\n      }\n    });\n     o2 = MyObject.create();\n    o2.say('hello'); // logs \"hello\"\n     o.say('goodbye'); // logs \"goodbye\"\n    ```\n     To add functions and properties to the constructor itself,\n    see `reopenClass`\n     @method reopen\n    @for @ember/object\n    @static\n    @public\n  */\n  static reopen(...args) {\n    this.willReopen();\n    reopen.apply(this.PrototypeMixin, args);\n    return this;\n  }\n  static willReopen() {\n    let p = this.prototype;\n    if (wasApplied.has(p)) {\n      wasApplied.delete(p);\n\n      // If the base mixin already exists and was applied, create a new mixin to\n      // make sure that it gets properly applied. Reusing the same mixin after\n      // the first `proto` call will cause it to get skipped.\n      if (prototypeMixinMap.has(this)) {\n        prototypeMixinMap.set(this, Mixin[INTERNAL_MIXIN_CREATE](this.PrototypeMixin));\n      }\n    }\n  }\n\n  /**\n    Augments a constructor's own properties and functions:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const MyObject = EmberObject.extend({\n      name: 'an object'\n    });\n     MyObject.reopenClass({\n      canBuild: false\n    });\n     MyObject.canBuild; // false\n    o = MyObject.create();\n    ```\n     In other words, this creates static properties and functions for the class.\n    These are only available on the class and not on any instance of that class.\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      name: '',\n      sayHello() {\n        alert(`Hello. My name is ${this.get('name')}`);\n      }\n    });\n     Person.reopenClass({\n      species: 'Homo sapiens',\n       createPerson(name) {\n        return Person.create({ name });\n      }\n    });\n     let tom = Person.create({\n      name: 'Tom Dale'\n    });\n    let yehuda = Person.createPerson('Yehuda Katz');\n     tom.sayHello(); // \"Hello. My name is Tom Dale\"\n    yehuda.sayHello(); // \"Hello. My name is Yehuda Katz\"\n    alert(Person.species); // \"Homo sapiens\"\n    ```\n     Note that `species` and `createPerson` are *not* valid on the `tom` and `yehuda`\n    variables. They are only valid on `Person`.\n     To add functions and properties to instances of\n    a constructor by extending the constructor's prototype\n    see `reopen`\n     @method reopenClass\n    @for @ember/object\n    @static\n    @public\n  */\n  static reopenClass(...mixins) {\n    applyMixin(this, mixins);\n    return this;\n  }\n  static detect(obj) {\n    if ('function' !== typeof obj) {\n      return false;\n    }\n    while (obj) {\n      if (obj === this) {\n        return true;\n      }\n      obj = obj.superclass;\n    }\n    return false;\n  }\n  static detectInstance(obj) {\n    return obj instanceof this;\n  }\n\n  /**\n    In some cases, you may want to annotate computed properties with additional\n    metadata about how they function or what values they operate on. For\n    example, computed property functions may close over variables that are then\n    no longer available for introspection.\n     You can pass a hash of these values to a computed property like this:\n     ```javascript\n    import { computed } from '@ember/object';\n     person: computed(function() {\n      let personId = this.get('personId');\n      return Person.create({ id: personId });\n    }).meta({ type: Person })\n    ```\n     Once you've done this, you can retrieve the values saved to the computed\n    property from your class like this:\n     ```javascript\n    MyClass.metaForProperty('person');\n    ```\n     This will return the original hash that was passed to `meta()`.\n     @static\n    @method metaForProperty\n    @param key {String} property name\n    @private\n  */\n  static metaForProperty(key) {\n    let proto = this.proto(); // ensure prototype is initialized\n    let possibleDesc = descriptorForProperty(proto, key);\n    return possibleDesc._meta || {};\n  }\n\n  /**\n    Iterate over each computed property for the class, passing its name\n    and any associated metadata (see `metaForProperty`) to the callback.\n     @static\n    @method eachComputedProperty\n    @param {Function} callback\n    @param {Object} binding\n    @private\n  */\n  static eachComputedProperty(callback, binding = this) {\n    this.proto(); // ensure prototype is initialized\n    let empty = {};\n    meta(this.prototype).forEachDescriptors((name, descriptor) => {\n      if (descriptor.enumerable) {\n        let meta = descriptor._meta || empty;\n        callback.call(binding, name, meta);\n      }\n    });\n  }\n  static get PrototypeMixin() {\n    let prototypeMixin = prototypeMixinMap.get(this);\n    if (prototypeMixin === undefined) {\n      prototypeMixin = Mixin[INTERNAL_MIXIN_CREATE]();\n      prototypeMixin.ownerConstructor = this;\n      prototypeMixinMap.set(this, prototypeMixin);\n    }\n    return prototypeMixin;\n  }\n  static get superclass() {\n    let c = Object.getPrototypeOf(this);\n    return c !== Function.prototype ? c : undefined;\n  }\n  static proto() {\n    let p = this.prototype;\n    if (!wasApplied.has(p)) {\n      wasApplied.add(p);\n      let parent = this.superclass;\n      if (parent) {\n        parent.proto();\n      }\n\n      // If the prototype mixin exists, apply it. In the case of native classes,\n      // it will not exist (unless the class has been reopened).\n      if (prototypeMixinMap.has(this)) {\n        this.PrototypeMixin.apply(p);\n      }\n    }\n    return p;\n  }\n  static toString() {\n    return `<${getFactoryFor(this) || '(unknown)'}:constructor>`;\n  }\n  static isClass = true;\n  static isMethod = false;\n  static _onLookup;\n  static _lazyInjections;\n}\nfunction flattenProps(...props) {\n  let initProperties = {};\n  for (let properties of props) {\n    let keyNames = Object.keys(properties);\n    for (let j = 0, k = keyNames.length; j < k; j++) {\n      let keyName = keyNames[j];\n      let value = properties[keyName];\n      initProperties[keyName] = value;\n    }\n  }\n  return initProperties;\n}\n\nexport { CoreObject as default };\n","import { a as addListener$1, r as removeListener$1, s as sendEvent$1 } from '../../shared-chunks/events-3Q5Qvo6Q.js';\nimport { deprecateUntil, DEPRECATIONS } from '../-internals/deprecations/index.js';\n\nfunction addListener(obj, eventName, target, method, once, sync) {\n  deprecateUntil('Importing `addListener` from `@ember/object/events` is deprecated. Use native JavaScript events or a dedicated event library instead.', DEPRECATIONS.DEPRECATE_EVENTED);\n  return addListener$1(obj, eventName, target, method, once, sync);\n}\nfunction removeListener(obj, eventName, target, method) {\n  deprecateUntil('Importing `removeListener` from `@ember/object/events` is deprecated. Use native JavaScript events or a dedicated event library instead.', DEPRECATIONS.DEPRECATE_EVENTED);\n  return removeListener$1(obj, eventName, target, method);\n}\nconst sendEvent = (...args) => {\n  deprecateUntil('Importing `sendEvent` from `@ember/object/events` is deprecated. Use native JavaScript events or a dedicated event library instead.', DEPRECATIONS.DEPRECATE_EVENTED);\n  return sendEvent$1(...args);\n};\n\nexport { addListener, removeListener, sendEvent };\n","import { E as ENV } from '../../shared-chunks/env-DXxsTFkM.js';\nimport { s as setClassicDecorator, i as isElementDescriptor } from '../../shared-chunks/decorator-DcvVDSJV.js';\nimport { e as expandProperties } from '../../shared-chunks/computed-ZvOk7SJQ.js';\nexport { c as computed, d as defineProperty, n as notifyPropertyChange } from '../../shared-chunks/computed-ZvOk7SJQ.js';\nimport { g as getFactoryFor } from '../../shared-chunks/container-BYOnjnwz.js';\nimport { s as setObservers } from '../../shared-chunks/super-BBBjgF69.js';\nimport CoreObject from './core.js';\nimport Observable from './observable.js';\nexport { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';\nexport { s as set, t as trySet } from '../../shared-chunks/property_set-CVmdjPdh.js';\nexport { g as getProperties } from '../../shared-chunks/get_properties-CkJ_mhLz.js';\nexport { s as setProperties } from '../../shared-chunks/set_properties-BObIgkE-.js';\n\n/**\n@module @ember/object\n*/\n\n/**\n  `EmberObject` is the main base class for all Ember objects. It is a subclass\n  of `CoreObject` with the `Observable` mixin applied. For details,\n  see the documentation for each of these.\n\n  @class EmberObject\n  @extends CoreObject\n  @uses Observable\n  @public\n*/\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\n\nclass EmberObject extends CoreObject.extend(Observable) {\n  get _debugContainerKey() {\n    let factory = getFactoryFor(this);\n    return factory !== undefined && factory.fullName;\n  }\n}\n\n/**\n  Decorator that turns the target function into an Action which can be accessed\n  directly by reference.\n\n  ```gjs\n  import Component from '@glimmer/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    <template>\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    </template>\n  }\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  ```gjs\n  import Component from '@glimmer/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    <template>\n      {{!-- ...--}}\n    </template>\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*/\n\nconst BINDINGS_MAP = new WeakMap();\nfunction hasProto(obj) {\n  return obj != null && obj.constructor !== undefined && typeof obj.constructor.proto === 'function';\n}\nfunction setupAction(target, key, actionFn) {\n  if (hasProto(target)) {\n    target.constructor.proto();\n  }\n  if (!Object.prototype.hasOwnProperty.call(target, 'actions')) {\n    let parentActions = target.actions;\n    // we need to assign because of the way mixins copy actions down when inheriting\n    target.actions = parentActions ? Object.assign({}, parentActions) : {};\n  }\n  target.actions[key] = actionFn;\n  return {\n    get() {\n      let bindings = BINDINGS_MAP.get(this);\n      if (bindings === undefined) {\n        bindings = new Map();\n        BINDINGS_MAP.set(this, bindings);\n      }\n      let fn = bindings.get(actionFn);\n      if (fn === undefined) {\n        fn = actionFn.bind(this);\n        bindings.set(actionFn, fn);\n      }\n      return fn;\n    }\n  };\n}\nfunction action(...args) {\n  let actionFn;\n  if (!isElementDescriptor(args)) {\n    actionFn = args[0];\n    let decorator = function (target, key, _desc, _meta, isClassicDecorator) {\n      return setupAction(target, key, actionFn);\n    };\n    setClassicDecorator(decorator);\n    return decorator;\n  }\n  let [target, key, desc] = args;\n  actionFn = desc?.value;\n  return setupAction(target, key, actionFn);\n}\n\n// SAFETY: TS types are weird with decorators. This should work.\nsetClassicDecorator(action);\n\n// ..........................................................\n// OBSERVER HELPER\n//\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  While observers are still supported, there are [plans to deprecate them](https://github.com/emberjs/rfcs/pull/1115)\n  See the [in-progress deprecation guide](https://github.com/ember-learn/deprecation-app/pull/1407) \n  for guidance on how to avoid using observers.\n \n  @method observer\n  @for @ember/object\n  @param {String} propertyNames*\n  @param {Function} func\n  @return func\n  @public\n  @static\n*/\nfunction observer(...args) {\n  let funcOrDef = args.pop();\n  let func;\n  let dependentKeys;\n  let sync;\n  if (typeof funcOrDef === 'function') {\n    func = funcOrDef;\n    dependentKeys = args;\n    sync = !ENV._DEFAULT_ASYNC_OBSERVERS;\n  } else {\n    func = funcOrDef.fn;\n    dependentKeys = funcOrDef.dependentKeys;\n    sync = funcOrDef.sync;\n  }\n  let paths = [];\n  for (let dependentKey of dependentKeys) {\n    expandProperties(dependentKey, path => paths.push(path));\n  }\n  setObservers(func, {\n    paths,\n    sync\n  });\n  return func;\n}\n\nexport { action, EmberObject as default, observer };\n","import { c as computed, e as expandProperties } from '../../../../shared-chunks/computed-ZvOk7SJQ.js';\nimport { a as alias } from '../../../../shared-chunks/alias-DvgufSYq.js';\nimport { g as get } from '../../../../shared-chunks/property_get-DuDs6rLg.js';\nimport { s as set } from '../../../../shared-chunks/property_set-CVmdjPdh.js';\nimport isEmpty from '../../../utils/lib/is_empty.js';\nimport isNone from '../../../utils/lib/is_none.js';\n\n/**\n@module @ember/object\n*/\n\nfunction expandPropertiesToArray(predicateName, properties) {\n  let expandedProperties = [];\n  function extractProperty(entry) {\n    expandedProperties.push(entry);\n  }\n  for (let property of properties) {\n    expandProperties(property, extractProperty);\n  }\n  return expandedProperties;\n}\nfunction generateComputedWithPredicate(name, predicate) {\n  return (dependentKey, ...additionalDependentKeys) => {\n    let properties = [dependentKey, ...additionalDependentKeys];\n    let dependentKeys = expandPropertiesToArray(name, properties);\n    let computedFunc = computed(...dependentKeys, function () {\n      let lastIdx = dependentKeys.length - 1;\n      for (let i = 0; i < lastIdx; i++) {\n        // SAFETY: `i` is derived from the length of `dependentKeys`\n        let value = get(this, dependentKeys[i]);\n        if (!predicate(value)) {\n          return value;\n        }\n      }\n\n      // SAFETY: `lastIdx` is derived from the length of `dependentKeys`\n      return get(this, dependentKeys[lastIdx]);\n    });\n    return computedFunc;\n  };\n}\n\n/**\n  A computed property macro that returns true if the value of the dependent\n  property is null, an empty string, empty array, or empty function.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { empty } from '@ember/object/computed';\n\n  class ToDoList {\n    constructor(todos) {\n      set(this, 'todos', todos);\n    }\n\n    @empty('todos') isDone;\n  }\n\n  let todoList = new ToDoList(\n    ['Unit Test', 'Documentation', 'Release']\n  );\n\n  todoList.isDone; // false\n  set(todoList, 'todos', []);\n  todoList.isDone; // true\n  ```\n\n  @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*/\nfunction empty(dependentKey) {\n  return computed(`${dependentKey}.length`, function () {\n    return isEmpty(get(this, dependentKey));\n  });\n}\n\n/**\n  A computed property that returns true if the value of the dependent property\n  is NOT null, an empty string, empty array, or empty function.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { notEmpty } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(backpack) {\n      set(this, 'backpack', backpack);\n    }\n\n    @notEmpty('backpack') hasStuff\n  }\n\n  let hamster = new Hamster(\n    ['Food', 'Sleeping Bag', 'Tent']\n  );\n\n  hamster.hasStuff; // true\n  set(hamster, 'backpack', []);\n  hamster.hasStuff; // false\n  ```\n\n  @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*/\nfunction notEmpty(dependentKey) {\n  return computed(`${dependentKey}.length`, function () {\n    return !isEmpty(get(this, dependentKey));\n  });\n}\n\n/**\n  A computed property that returns true if the value of the dependent property\n  is null or undefined. This avoids errors from JSLint complaining about use of\n  ==, which can be technically confusing.\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { none } from '@ember/object/computed';\n\n  class Hamster {\n    @none('food') isHungry;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.isHungry; // true\n\n  set(hamster, 'food', 'Banana');\n  hamster.isHungry; // false\n\n  set(hamster, 'food', null);\n  hamster.isHungry; // true\n  ```\n\n  @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*/\nfunction none(dependentKey) {\n  return computed(dependentKey, function () {\n    return isNone(get(this, dependentKey));\n  });\n}\n\n/**\n  A computed property that returns the inverse boolean value of the original\n  value for the dependent property.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { not } from '@ember/object/computed';\n\n  class User {\n    loggedIn = false;\n\n    @not('loggedIn') isAnonymous;\n  }\n\n  let user = new User();\n\n  user.isAnonymous; // true\n  set(user, 'loggedIn', true);\n  user.isAnonymous; // false\n  ```\n\n  @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*/\nfunction not(dependentKey) {\n  return computed(dependentKey, function () {\n    return !get(this, dependentKey);\n  });\n}\n\n/**\n  A computed property that converts the provided dependent property into a\n  boolean value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { bool } from '@ember/object/computed';\n\n\n  class Hamster {\n    @bool('numBananas') hasBananas\n  }\n\n  let hamster = new Hamster();\n\n  hamster.hasBananas; // false\n\n  set(hamster, 'numBananas', 0);\n  hamster.hasBananas; // false\n\n  set(hamster, 'numBananas', 1);\n  hamster.hasBananas; // true\n\n  set(hamster, 'numBananas', null);\n  hamster.hasBananas; // false\n  ```\n\n  @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*/\nfunction bool(dependentKey) {\n  return computed(dependentKey, function () {\n    return Boolean(get(this, dependentKey));\n  });\n}\n\n/**\n  A computed property which matches the original value for the dependent\n  property against a given RegExp, returning `true` if the value matches the\n  RegExp and `false` if it does not.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { match } from '@ember/object/computed';\n\n  class User {\n    @match('email', /^.+@.+\\..+$/) hasValidEmail;\n  }\n\n  let user = new User();\n\n  user.hasValidEmail; // false\n\n  set(user, 'email', '');\n  user.hasValidEmail; // false\n\n  set(user, 'email', 'ember_hamster@example.com');\n  user.hasValidEmail; // true\n  ```\n\n  @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*/\nfunction match(dependentKey, regexp) {\n  return computed(dependentKey, function () {\n    let value = get(this, dependentKey);\n    return regexp.test(value);\n  });\n}\n\n/**\n  A computed property that returns true if the provided dependent property is\n  equal to the given value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { equal } from '@ember/object/computed';\n\n  class Hamster {\n    @equal('percentCarrotsEaten', 100) satisfied;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.satisfied; // false\n\n  set(hamster, 'percentCarrotsEaten', 100);\n  hamster.satisfied; // true\n\n  set(hamster, 'percentCarrotsEaten', 50);\n  hamster.satisfied; // false\n  ```\n\n  @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*/\nfunction equal(dependentKey, value) {\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) === value;\n  });\n}\n\n/**\n  A computed property that returns true if the provided dependent property is\n  greater than the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { gt } from '@ember/object/computed';\n\n  class Hamster {\n    @gt('numBananas', 10) hasTooManyBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 11);\n  hamster.hasTooManyBananas; // true\n  ```\n\n  @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*/\nfunction gt(dependentKey, value) {\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) > value;\n  });\n}\n\n/**\n  A computed property that returns true if the provided dependent property is\n  greater than or equal to the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { gte } from '@ember/object/computed';\n\n  class Hamster {\n    @gte('numBananas', 10) hasTooManyBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 10);\n  hamster.hasTooManyBananas; // true\n  ```\n\n  @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*/\nfunction gte(dependentKey, value) {\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) >= value;\n  });\n}\n\n/**\n  A computed property that returns true if the provided dependent property is\n  less than the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { lt } from '@ember/object/computed';\n\n  class Hamster {\n    @lt('numBananas', 3) needsMoreBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.needsMoreBananas; // true\n\n  set(hamster, 'numBananas', 3);\n  hamster.needsMoreBananas; // false\n\n  set(hamster, 'numBananas', 2);\n  hamster.needsMoreBananas; // true\n  ```\n\n  @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*/\nfunction lt(dependentKey, value) {\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) < value;\n  });\n}\n\n/**\n  A computed property that returns true if the provided dependent property is\n  less than or equal to the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { lte } from '@ember/object/computed';\n\n  class Hamster {\n    @lte('numBananas', 3) needsMoreBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.needsMoreBananas; // true\n\n  set(hamster, 'numBananas', 5);\n  hamster.needsMoreBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.needsMoreBananas; // true\n  ```\n\n  @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*/\nfunction lte(dependentKey, value) {\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) <= value;\n  });\n}\n\n/**\n  A computed property that performs a logical `and` on the original values for\n  the provided dependent properties.\n\n  You may pass in more than two properties and even use property brace\n  expansion.  The computed property will return the first falsy value or last\n  truthy value just like JavaScript's `&&` operator.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { and } from '@ember/object/computed';\n\n  class Hamster {\n    @and('hasTent', 'hasBackpack') readyForCamp;\n    @and('hasWalkingStick', 'hasBackpack') readyForHike;\n  }\n\n  let tomster = new Hamster();\n\n  tomster.readyForCamp; // false\n\n  set(tomster, 'hasTent', true);\n  tomster.readyForCamp; // false\n\n  set(tomster, 'hasBackpack', true);\n  tomster.readyForCamp; // true\n\n  set(tomster, 'hasBackpack', 'Yes');\n  tomster.readyForCamp; // 'Yes'\n\n  set(tomster, 'hasWalkingStick', null);\n  tomster.readyForHike; // null\n  ```\n\n  @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*/\nconst and = generateComputedWithPredicate('and', value => value);\n\n/**\n  A computed property which performs a logical `or` on the original values for\n  the provided dependent properties.\n\n  You may pass in more than two properties and even use property brace\n  expansion.  The computed property will return the first truthy value or last\n  falsy value just like JavaScript's `||` operator.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { or } from '@ember/object/computed';\n\n  class Hamster {\n    @or('hasJacket', 'hasUmbrella') readyForRain;\n    @or('hasSunscreen', 'hasUmbrella') readyForBeach;\n  }\n\n  let tomster = new Hamster();\n\n  tomster.readyForRain; // undefined\n\n  set(tomster, 'hasUmbrella', true);\n  tomster.readyForRain; // true\n\n  set(tomster, 'hasJacket', 'Yes');\n  tomster.readyForRain; // 'Yes'\n\n  set(tomster, 'hasSunscreen', 'Check');\n  tomster.readyForBeach; // 'Check'\n  ```\n\n  @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*/\nconst or = generateComputedWithPredicate('or', value => !value);\n\n/**\n  Creates a new property that is an alias for another property on an object.\n  Calls to `get` or `set` this property behave as though they were called on the\n  original property.\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\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*/\nfunction oneWay(dependentKey) {\n  return alias(dependentKey).oneWay();\n}\n\n/**\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\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*/\nfunction readOnly(dependentKey) {\n  return alias(dependentKey).readOnly();\n}\n\n/**\n  Creates a new property that is an alias for another property on an object.\n  Calls to `get` or `set` this property behave as though they were called on the\n  original property, but also print a deprecation warning.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { deprecatingAlias } from '@ember/object/computed';\n\n  class Hamster {\n    @deprecatingAlias('cavendishCount', {\n      id: 'hamster.deprecate-banana',\n      until: '3.0.0'\n    })\n    bananaCount;\n  }\n\n  let hamster = new Hamster();\n\n  set(hamster, 'bananaCount', 5); // Prints a deprecation warning.\n  hamster.cavendishCount; // 5\n  ```\n\n  @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*/\nfunction deprecatingAlias(dependentKey, options) {\n  return computed(dependentKey, {\n    get(key) {\n      return get(this, dependentKey);\n    },\n    set(key, value) {\n      set(this, dependentKey, value);\n      return value;\n    }\n  });\n}\n\nexport { and, bool, deprecatingAlias, empty, equal, gt, gte, lt, lte, match, none, not, notEmpty, oneWay, or, readOnly };\n","import { c as computed, g as autoComputed } from '../../../../shared-chunks/computed-ZvOk7SJQ.js';\nimport { g as get } from '../../../../shared-chunks/property_get-DuDs6rLg.js';\nimport compare from '../../../utils/lib/compare.js';\nimport EmberArray, { A, uniqBy as uniqBy$1 } from '../../../array/index.js';\n\n/**\n@module @ember/object\n*/\n\nfunction isNativeOrEmberArray(obj) {\n  return Array.isArray(obj) || EmberArray.detect(obj);\n}\nfunction reduceMacro(dependentKey, callback, initialValue, name) {\n  return computed(`${dependentKey}.[]`, function () {\n    let arr = get(this, dependentKey);\n    if (arr === null || typeof arr !== 'object') {\n      return initialValue;\n    }\n    return arr.reduce(callback, initialValue, this);\n  }).readOnly();\n}\nfunction arrayMacro(dependentKey, additionalDependentKeys, callback) {\n  // This is a bit ugly\n  let propertyName;\n  if (/@each/.test(dependentKey)) {\n    propertyName = dependentKey.replace(/\\.@each.*$/, '');\n  } else {\n    propertyName = dependentKey;\n    dependentKey += '.[]';\n  }\n  return computed(dependentKey, ...additionalDependentKeys, function () {\n    let value = get(this, propertyName);\n    if (isNativeOrEmberArray(value)) {\n      return A(callback.call(this, value));\n    } else {\n      return A();\n    }\n  }).readOnly();\n}\nfunction multiArrayMacro(_dependentKeys, callback, name) {\n  let dependentKeys = _dependentKeys.map(key => `${key}.[]`);\n  return computed(...dependentKeys, function () {\n    return A(callback.call(this, _dependentKeys));\n  }).readOnly();\n}\n\n/**\n  A computed property that returns the sum of the values in the dependent array.\n\n  Example:\n\n  ```javascript\n  import { sum } from '@ember/object/computed';\n\n  class Invoice {\n    lineItems = [1.00, 2.50, 9.99];\n\n    @sum('lineItems') total;\n  }\n\n  let invoice = new Invoice();\n\n  invoice.total; // 13.49\n  ```\n\n  @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*/\nfunction sum(dependentKey) {\n  return reduceMacro(dependentKey, (sum, item) => sum + item, 0);\n}\n\n/**\n  A computed property that calculates the maximum value in the dependent array.\n  This will return `-Infinity` when the dependent array is empty.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { mapBy, max } from '@ember/object/computed';\n\n  class Person {\n    children = [];\n\n    @mapBy('children', 'age') childAges;\n    @max('childAges') maxChildAge;\n  }\n\n  let lordByron = new Person();\n\n  lordByron.maxChildAge; // -Infinity\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.maxChildAge; // 7\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.maxChildAge; // 8\n  ```\n\n  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*/\nfunction max(dependentKey) {\n  return reduceMacro(dependentKey, (max, item) => Math.max(max, item), -Infinity);\n}\n\n/**\n  A computed property that calculates the minimum value in the dependent array.\n  This will return `Infinity` when the dependent array is empty.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { mapBy, min } from '@ember/object/computed';\n\n  class Person {\n    children = [];\n\n    @mapBy('children', 'age') childAges;\n    @min('childAges') minChildAge;\n  }\n\n  let lordByron = Person.create({ children: [] });\n\n  lordByron.minChildAge; // Infinity\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.minChildAge; // 7\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.minChildAge; // 5\n  ```\n\n  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*/\nfunction min(dependentKey) {\n  return reduceMacro(dependentKey, (min, item) => Math.min(min, item), Infinity);\n}\n\n/**\n  Returns an array mapped via the callback\n\n  The callback method you provide should have the following signature:\n  - `item` is the current item in the iteration.\n  - `index` is the integer index of the current item in the iteration.\n\n  ```javascript\n  function mapCallback(item, index);\n  ```\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { map } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @map('chores', function(chore, index) {\n      return `${chore.toUpperCase()}!`;\n    })\n    excitingChores;\n  });\n\n  let hamster = new Hamster(['clean', 'write more unit tests']);\n\n  hamster.excitingChores; // ['CLEAN!', 'WRITE MORE UNIT TESTS!']\n  ```\n\n  You can optionally pass an array of additional dependent keys as the second\n  parameter to the macro, if your map function relies on any external values:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { map } from '@ember/object/computed';\n\n  class Hamster {\n    shouldUpperCase = false;\n\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @map('chores', ['shouldUpperCase'], function(chore, index) {\n      if (this.shouldUpperCase) {\n        return `${chore.toUpperCase()}!`;\n      } else {\n        return `${chore}!`;\n      }\n    })\n    excitingChores;\n  }\n\n  let hamster = new Hamster(['clean', 'write more unit tests']);\n\n  hamster.excitingChores; // ['clean!', 'write more unit tests!']\n\n  set(hamster, 'shouldUpperCase', true);\n  hamster.excitingChores; // ['CLEAN!', 'WRITE MORE UNIT TESTS!']\n  ```\n\n  @method map\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {Array} [additionalDependentKeys] optional array of additional\n  dependent keys\n  @param {Function} callback\n  @return {ComputedProperty} an array mapped via the callback\n  @public\n*/\n\nfunction map(dependentKey, additionalDependentKeysOrCallback, callback) {\n  let additionalDependentKeys;\n  if (typeof additionalDependentKeysOrCallback === 'function') {\n    callback = additionalDependentKeysOrCallback;\n    additionalDependentKeys = [];\n  } else {\n    additionalDependentKeys = additionalDependentKeysOrCallback;\n  }\n  const cCallback = callback;\n  return arrayMacro(dependentKey, additionalDependentKeys, function (value) {\n    // This is so dumb...\n    return Array.isArray(value) ? value.map(cCallback, this) : value.map(cCallback, this);\n  });\n}\n\n/**\n  Returns an array mapped to the specified key.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { mapBy } from '@ember/object/computed';\n\n  class Person {\n    children = [];\n\n    @mapBy('children', 'age') childAges;\n  }\n\n  let lordByron = new Person();\n\n  lordByron.childAges; // []\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.childAges; // [7]\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.childAges; // [7, 5, 8]\n  ```\n\n  @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*/\nfunction mapBy(dependentKey, propertyKey) {\n  return map(`${dependentKey}.@each.${propertyKey}`, item => get(item, propertyKey));\n}\n\n/**\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*/\n\nfunction filter(dependentKey, additionalDependentKeysOrCallback, callback) {\n  let additionalDependentKeys;\n  if (typeof additionalDependentKeysOrCallback === 'function') {\n    callback = additionalDependentKeysOrCallback;\n    additionalDependentKeys = [];\n  } else {\n    additionalDependentKeys = additionalDependentKeysOrCallback;\n  }\n  const cCallback = callback;\n  return arrayMacro(dependentKey, additionalDependentKeys, function (value) {\n    // This is a really silly way to keep TS happy\n    return Array.isArray(value) ? value.filter(cCallback, this) : value.filter(cCallback, this);\n  });\n}\n\n/**\n  Filters the array by the property and value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { filterBy } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @filterBy('chores', 'done', false) remainingChores;\n  }\n\n  let hamster = new Hamster([\n    { name: 'cook', done: true },\n    { name: 'clean', done: true },\n    { name: 'write more unit tests', done: false }\n  ]);\n\n  hamster.remainingChores; // [{ name: 'write more unit tests', done: false }]\n  ```\n\n  @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*/\nfunction filterBy(dependentKey, propertyKey, value) {\n  let callback;\n  if (arguments.length === 2) {\n    callback = item => get(item, propertyKey);\n  } else {\n    callback = item => get(item, propertyKey) === value;\n  }\n  return filter(`${dependentKey}.@each.${propertyKey}`, callback);\n}\n\n/**\n  A computed property which returns a new array with all the unique elements\n  from one or more dependent arrays.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { uniq } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(fruits) {\n      set(this, 'fruits', fruits);\n    }\n\n    @uniq('fruits') uniqueFruits;\n  }\n\n  let hamster = new Hamster([\n    'banana',\n    'grape',\n    'kale',\n    'banana'\n  ]);\n\n  hamster.uniqueFruits; // ['banana', 'grape', 'kale']\n  ```\n\n  @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*/\nfunction uniq(dependentKey, ...additionalDependentKeys) {\n  let args = [dependentKey, ...additionalDependentKeys];\n  return multiArrayMacro(args, function (dependentKeys) {\n    let uniq = A();\n    let seen = new Set();\n    dependentKeys.forEach(dependentKey => {\n      let value = get(this, dependentKey);\n      if (isNativeOrEmberArray(value)) {\n        value.forEach(item => {\n          if (!seen.has(item)) {\n            seen.add(item);\n            uniq.push(item);\n          }\n        });\n      }\n    });\n    return uniq;\n  });\n}\n\n/**\n  A computed property which returns a new array with all the unique elements\n  from an array, with uniqueness determined by specific key.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { uniqBy } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(fruits) {\n      set(this, 'fruits', fruits);\n    }\n\n    @uniqBy('fruits', 'id') uniqueFruits;\n  }\n\n  let hamster = new Hamster([\n    { id: 1, 'banana' },\n    { id: 2, 'grape' },\n    { id: 3, 'peach' },\n    { id: 1, 'banana' }\n  ]);\n\n  hamster.uniqueFruits; // [ { id: 1, 'banana' }, { id: 2, 'grape' }, { id: 3, 'peach' }]\n  ```\n\n  @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*/\nfunction uniqBy(dependentKey, propertyKey) {\n  return computed(`${dependentKey}.[]`, function () {\n    let list = get(this, dependentKey);\n    return isNativeOrEmberArray(list) ? uniqBy$1(list, propertyKey) : A();\n  }).readOnly();\n}\n\n/**\n  A computed property which returns a new array with all the unique elements\n  from one or more dependent arrays.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { union } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(fruits, vegetables) {\n      set(this, 'fruits', fruits);\n      set(this, 'vegetables', vegetables);\n    }\n\n    @union('fruits', 'vegetables') uniqueFruits;\n  });\n\n  let hamster = new, Hamster(\n    [\n      'banana',\n      'grape',\n      'kale',\n      'banana',\n      'tomato'\n    ],\n    [\n      'tomato',\n      'carrot',\n      'lettuce'\n    ]\n  );\n\n  hamster.uniqueFruits; // ['banana', 'grape', 'kale', 'tomato', 'carrot', 'lettuce']\n  ```\n\n  @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*/\nlet union = uniq;\n\n/**\n  A computed property which returns a new array with all the elements\n  two or more dependent arrays have in common.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { intersect } from '@ember/object/computed';\n\n  class FriendGroups {\n    constructor(adaFriends, charlesFriends) {\n      set(this, 'adaFriends', adaFriends);\n      set(this, 'charlesFriends', charlesFriends);\n    }\n\n    @intersect('adaFriends', 'charlesFriends') friendsInCommon;\n  }\n\n  let groups = new FriendGroups(\n    ['Charles Babbage', 'John Hobhouse', 'William King', 'Mary Somerville'],\n    ['William King', 'Mary Somerville', 'Ada Lovelace', 'George Peacock']\n  );\n\n  groups.friendsInCommon; // ['William King', 'Mary Somerville']\n  ```\n\n  @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*/\nfunction intersect(dependentKey, ...additionalDependentKeys) {\n  let args = [dependentKey, ...additionalDependentKeys];\n  return multiArrayMacro(args, function (dependentKeys) {\n    let arrays = dependentKeys.map(dependentKey => {\n      let array = get(this, dependentKey);\n      return Array.isArray(array) ? array : [];\n    });\n    let firstArray = arrays.pop();\n    let results = firstArray.filter(candidate => {\n      for (let array of arrays) {\n        let found = false;\n        for (let item of array) {\n          if (item === candidate) {\n            found = true;\n            break;\n          }\n        }\n        if (found === false) {\n          return false;\n        }\n      }\n      return true;\n    });\n    return A(results);\n  });\n}\n\n/**\n  A computed property which returns a new array with all the properties from the\n  first dependent array that are not in the second dependent array.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { setDiff } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(likes, fruits) {\n      set(this, 'likes', likes);\n      set(this, 'fruits', fruits);\n    }\n\n    @setDiff('likes', 'fruits') wants;\n  }\n\n  let hamster = new Hamster(\n    [\n      'banana',\n      'grape',\n      'kale'\n    ],\n    [\n      'grape',\n      'kale',\n    ]\n  );\n\n  hamster.wants; // ['banana']\n  ```\n\n  @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*/\nfunction setDiff(setAProperty, setBProperty) {\n  return computed(`${setAProperty}.[]`, `${setBProperty}.[]`, function () {\n    let setA = get(this, setAProperty);\n    let setB = get(this, setBProperty);\n    if (!isNativeOrEmberArray(setA)) {\n      return A();\n    }\n    if (!isNativeOrEmberArray(setB)) {\n      return setA;\n    }\n    return setA.filter(x => setB.indexOf(x) === -1);\n  }).readOnly();\n}\n\n/**\n  A computed property that returns the array of values for the provided\n  dependent properties.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { collect } from '@ember/object/computed';\n\n  class Hamster {\n    @collect('hat', 'shirt') clothes;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.clothes; // [null, null]\n\n  set(hamster, 'hat', 'Camp Hat');\n  set(hamster, 'shirt', 'Camp Shirt');\n  hamster.clothes; // ['Camp Hat', 'Camp Shirt']\n  ```\n\n  @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*/\nfunction collect(dependentKey, ...additionalDependentKeys) {\n  let dependentKeys = [dependentKey, ...additionalDependentKeys];\n  return multiArrayMacro(dependentKeys, function () {\n    let res = dependentKeys.map(key => {\n      let val = get(this, key);\n      return val === undefined ? null : val;\n    });\n    return A(res);\n  });\n}\n\n// (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/**\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*/\n\nfunction sort(itemsKey, additionalDependentKeysOrDefinition, sortDefinition) {\n  let additionalDependentKeys;\n  let sortDefinitionOrString;\n  if (Array.isArray(additionalDependentKeysOrDefinition)) {\n    additionalDependentKeys = additionalDependentKeysOrDefinition;\n    sortDefinitionOrString = sortDefinition;\n  } else {\n    additionalDependentKeys = [];\n    sortDefinitionOrString = additionalDependentKeysOrDefinition;\n  }\n  if (typeof sortDefinitionOrString === 'function') {\n    return customSort(itemsKey, additionalDependentKeys, sortDefinitionOrString);\n  } else {\n    return propertySort(itemsKey, sortDefinitionOrString);\n  }\n}\nfunction customSort(itemsKey, additionalDependentKeys, comparator) {\n  return arrayMacro(itemsKey, additionalDependentKeys, function (value) {\n    return value.slice().sort((x, y) => comparator.call(this, x, y));\n  });\n}\n\n// This one needs to dynamically set up and tear down observers on the itemsKey\n// depending on the sortProperties\nfunction propertySort(itemsKey, sortPropertiesKey) {\n  let cp = autoComputed(function (key) {\n    let sortProperties = get(this, sortPropertiesKey);\n    let itemsKeyIsAtThis = itemsKey === '@this';\n    let normalizedSortProperties = normalizeSortProperties(sortProperties);\n    let items = itemsKeyIsAtThis ? this : get(this, itemsKey);\n    if (!isNativeOrEmberArray(items)) {\n      return A();\n    }\n    if (normalizedSortProperties.length === 0) {\n      return A(items.slice());\n    } else {\n      return sortByNormalizedSortProperties(items, normalizedSortProperties);\n    }\n  }).readOnly();\n  return cp;\n}\nfunction normalizeSortProperties(sortProperties) {\n  let callback = p => {\n    let [prop, direction] = p.split(':');\n    direction = direction || 'asc';\n\n    // SAFETY: There will always be at least one value returned by split\n    return [prop, direction];\n  };\n  // This nonsense is necessary since technically the two map implementations diverge.\n  return Array.isArray(sortProperties) ? sortProperties.map(callback) : sortProperties.map(callback);\n}\nfunction sortByNormalizedSortProperties(items, normalizedSortProperties) {\n  return A(items.slice().sort((itemA, itemB) => {\n    for (let [prop, direction] of normalizedSortProperties) {\n      let result = compare(get(itemA, prop), get(itemB, prop));\n      if (result !== 0) {\n        return direction === 'desc' ? -1 * result : result;\n      }\n    }\n    return 0;\n  }));\n}\n\nexport { collect, filter, filterBy, intersect, map, mapBy, max, min, setDiff, sort, sum, union, uniq, uniqBy };\n","import { peekMeta } from '../-internals/meta/lib/meta.js';\nimport { h as hasListeners } from '../../shared-chunks/events-3Q5Qvo6Q.js';\nimport { n as notifyPropertyChange, a as endPropertyChanges, b as beginPropertyChanges } from '../../shared-chunks/computed-ZvOk7SJQ.js';\nimport { r as removeObserver, b as addObserver } from '../../shared-chunks/observers-B1wiwQeH.js';\nimport { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { s as set } from '../../shared-chunks/property_set-CVmdjPdh.js';\nimport { g as getProperties } from '../../shared-chunks/get_properties-CkJ_mhLz.js';\nimport { s as setProperties } from '../../shared-chunks/set_properties-BObIgkE-.js';\nimport { M as Mixin, I as INTERNAL_MIXIN_CREATE } from '../../shared-chunks/mixin-AGmJaAAY.js';\n\n/**\n@module @ember/object/observable\n*/\n\n\n/**\n  ## Overview\n\n  This mixin provides properties and property observing functionality, core\n  features of the Ember object model.\n\n  Properties and observers allow one object to observe changes to a\n  property on another object. This is one of the fundamental ways that\n  models, controllers and views communicate with each other in an Ember\n  application.\n\n  Any object that has this mixin applied can be used in observer\n  operations. That includes `EmberObject` and most objects you will\n  interact with as you write your Ember application.\n\n  Note that you will not generally apply this mixin to classes yourself,\n  but you will use the features provided by this module frequently, so it\n  is important to understand how to use it.\n\n  ## Using `get()` and `set()`\n\n  Because of Ember's support for bindings and observers, you will always\n  access properties using the get method, and set properties using the\n  set method. This allows the observing objects to be notified and\n  computed properties to be handled properly.\n\n  More documentation about `get` and `set` are below.\n\n  ## Observing Property Changes\n\n  You typically observe property changes simply by using the `observer`\n  function in classes that you write.\n\n  For example:\n\n  ```javascript\n  import { observer } from '@ember/object';\n  import EmberObject from '@ember/object';\n\n  EmberObject.extend({\n    valueObserver: observer('value', function(sender, key, value, rev) {\n      // Executes whenever the \"value\" property changes\n      // See the addObserver method for more information about the callback arguments\n    })\n  });\n  ```\n\n  Although this is the most common way to add an observer, this capability\n  is actually built into the `EmberObject` class on top of two methods\n  defined in this mixin: `addObserver` and `removeObserver`. You can use\n  these two methods to add and remove observers yourself if you need to\n  do so at runtime.\n\n  To add an observer for a property, call:\n\n  ```javascript\n  object.addObserver('propertyKey', targetObject, targetAction)\n  ```\n\n  This will call the `targetAction` method on the `targetObject` whenever\n  the value of the `propertyKey` changes.\n\n  Note that if `propertyKey` is a computed property, the observer will be\n  called when any of the property dependencies are changed, even if the\n  resulting value of the computed property is unchanged. This is necessary\n  because computed properties are not computed until `get` is called.\n\n  @class Observable\n  @public\n*/\n\nconst Observable = Mixin[INTERNAL_MIXIN_CREATE]({\n  get(keyName) {\n    return get(this, keyName);\n  },\n  getProperties(...args) {\n    return getProperties(this, ...args);\n  },\n  set(keyName, value) {\n    return set(this, keyName, value);\n  },\n  setProperties(hash) {\n    return setProperties(this, hash);\n  },\n  /**\n    Begins a grouping of property changes.\n     You can use this method to group property changes so that notifications\n    will not be sent until the changes are finished. If you plan to make a\n    large number of changes to an object at one time, you should call this\n    method at the beginning of the changes to begin deferring change\n    notifications. When you are done making changes, call\n    `endPropertyChanges()` to deliver the deferred change notifications and end\n    deferring.\n     @method beginPropertyChanges\n    @return {Observable}\n    @private\n  */\n  beginPropertyChanges() {\n    beginPropertyChanges();\n    return this;\n  },\n  /**\n    Ends a grouping of property changes.\n     You can use this method to group property changes so that notifications\n    will not be sent until the changes are finished. If you plan to make a\n    large number of changes to an object at one time, you should call\n    `beginPropertyChanges()` at the beginning of the changes to defer change\n    notifications. When you are done making changes, call this method to\n    deliver the deferred change notifications and end deferring.\n     @method endPropertyChanges\n    @return {Observable}\n    @private\n  */\n  endPropertyChanges() {\n    endPropertyChanges();\n    return this;\n  },\n  notifyPropertyChange(keyName) {\n    notifyPropertyChange(this, keyName);\n    return this;\n  },\n  addObserver(key, target, method, sync) {\n    addObserver(this, key, target, method, sync);\n    return this;\n  },\n  removeObserver(key, target, method, sync) {\n    removeObserver(this, key, target, method, sync);\n    return this;\n  },\n  /**\n    Returns `true` if the object currently has observers registered for a\n    particular key. You can use this method to potentially defer performing\n    an expensive action until someone begins observing a particular property\n    on the object.\n     @method hasObserverFor\n    @param {String} key Key to check\n    @return {Boolean}\n    @private\n  */\n  hasObserverFor(key) {\n    return hasListeners(this, `${key}:change`);\n  },\n  incrementProperty(keyName, increment = 1) {\n    return set(this, keyName, (parseFloat(get(this, keyName)) || 0) + increment);\n  },\n  decrementProperty(keyName, decrement = 1) {\n    return set(this, keyName, (get(this, keyName) || 0) - decrement);\n  },\n  toggleProperty(keyName) {\n    return set(this, keyName, !get(this, keyName));\n  },\n  cacheFor(keyName) {\n    let meta = peekMeta(this);\n    return meta !== null ? meta.valueFor(keyName) : undefined;\n  }\n});\n\nexport { Observable as default };\n","import { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { s as setProperties } from '../../shared-chunks/set_properties-BObIgkE-.js';\nimport { c as computed } from '../../shared-chunks/computed-ZvOk7SJQ.js';\nimport { M as Mixin, I as INTERNAL_MIXIN_CREATE } from '../../shared-chunks/mixin-AGmJaAAY.js';\nimport { deprecateUntil, DEPRECATIONS } from '../-internals/deprecations/index.js';\n\n/**\n  @module @ember/object/promise-proxy-mixin\n*/\n\nfunction tap(proxy, promise) {\n  setProperties(proxy, {\n    isFulfilled: false,\n    isRejected: false\n  });\n  return promise.then(value => {\n    if (!proxy.isDestroyed && !proxy.isDestroying) {\n      setProperties(proxy, {\n        content: value,\n        isFulfilled: true\n      });\n    }\n    return value;\n  }, reason => {\n    if (!proxy.isDestroyed && !proxy.isDestroying) {\n      setProperties(proxy, {\n        reason,\n        isRejected: true\n      });\n    }\n    throw reason;\n  }, 'Ember: PromiseProxy');\n}\n\n/**\n  A low level mixin making ObjectProxy promise-aware.\n\n  ```javascript\n  import { resolve } from 'rsvp';\n  import $ from 'jquery';\n  import ObjectProxy from '@ember/object/proxy';\n  import PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\n\n  let ObjectPromiseProxy = ObjectProxy.extend(PromiseProxyMixin);\n\n  let proxy = ObjectPromiseProxy.create({\n    promise: resolve($.getJSON('/some/remote/data.json'))\n  });\n\n  proxy.then(function(json){\n     // the json\n  }, function(reason) {\n     // the reason why you have no json\n  });\n  ```\n\n  the proxy has bindable attributes which\n  track the promises life cycle\n\n  ```javascript\n  proxy.get('isPending')   //=> true\n  proxy.get('isSettled')  //=> false\n  proxy.get('isRejected')  //=> false\n  proxy.get('isFulfilled') //=> false\n  ```\n\n  When the $.getJSON completes, and the promise is fulfilled\n  with json, the life cycle attributes will update accordingly.\n  Note that $.getJSON doesn't return an ECMA specified promise,\n  it is useful to wrap this with an `RSVP.resolve` so that it behaves\n  as a spec compliant promise.\n\n  ```javascript\n  proxy.get('isPending')   //=> false\n  proxy.get('isSettled')   //=> true\n  proxy.get('isRejected')  //=> false\n  proxy.get('isFulfilled') //=> true\n  ```\n\n  As the proxy is an ObjectProxy, and the json now its content,\n  all the json properties will be available directly from the proxy.\n\n  ```javascript\n  // Assuming the following json:\n  {\n    firstName: 'Stefan',\n    lastName: 'Penner'\n  }\n\n  // both properties will accessible on the proxy\n  proxy.get('firstName') //=> 'Stefan'\n  proxy.get('lastName')  //=> 'Penner'\n  ```\n\n  @class PromiseProxyMixin\n  @public\n  @deprecated Use native `async`/`await` and promises directly instead.\n*/\n\nconst PromiseProxyMixin = Mixin[INTERNAL_MIXIN_CREATE]({\n  init() {\n    this._super(...arguments);\n    deprecateUntil('`PromiseProxyMixin` is deprecated. Use native `async`/`await` and promises directly, tracking the loading state on your own class instead.', DEPRECATIONS.DEPRECATE_PROMISE_PROXY_MIXIN);\n  },\n  reason: null,\n  isPending: computed('isSettled', function () {\n    return !get(this, 'isSettled');\n  }).readOnly(),\n  isSettled: computed('isRejected', 'isFulfilled', function () {\n    return get(this, 'isRejected') || get(this, 'isFulfilled');\n  }).readOnly(),\n  isRejected: false,\n  isFulfilled: false,\n  promise: computed({\n    get() {\n      throw new Error(\"PromiseProxy's promise must be set\");\n    },\n    set(_key, promise) {\n      return tap(this, promise);\n    }\n  }),\n  then: promiseAlias('then'),\n  catch: promiseAlias('catch'),\n  finally: promiseAlias('finally')\n});\nfunction promiseAlias(name) {\n  return function (...args) {\n    let promise = get(this, 'promise');\n\n    // 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).\n    return promise[name](...args);\n  };\n}\n\nexport { PromiseProxyMixin as default };\n","import { FrameworkObject } from './-internals.js';\nimport ProxyMixin from '../-internals/runtime/lib/mixins/-proxy.js';\nimport { deprecateUntil, DEPRECATIONS } from '../-internals/deprecations/index.js';\n\n/**\n@module @ember/object/proxy\n*/\n\n\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  class ProxyWithComputedProperty extends ObjectProxy {\n    @computed('firstName', 'lastName')\n    get fullName() {\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  @deprecated Use tracked properties or a native `Proxy` instead.\n*/\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nclass ObjectProxy extends FrameworkObject {\n  init(properties) {\n    super.init(properties);\n    deprecateUntil('`ObjectProxy` is deprecated. Use tracked properties or a native `Proxy` instead.', DEPRECATIONS.DEPRECATE_OBJECT_PROXY);\n  }\n}\nObjectProxy.PrototypeMixin.reopen(ProxyMixin);\n\nexport { ObjectProxy as default };\n","import { getOwner as getOwner$1 } from '../-internals/owner/index.js';\nexport { setOwner } from '../-internals/owner/index.js';\n\n/**\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*/\n\n\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*/\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 = getOwner$1;\n\nexport { getOwner };\n","import EmberObject from '../object/index.js';\nimport { bind } from '../runloop/index.js';\nimport { getHash } from './lib/location-utils.js';\n\n/**\n@module @ember/routing/hash-location\n*/\n\n/**\n  `HashLocation` implements the location API using the browser's\n  hash. At present, it relies on a `hashchange` event existing in the\n  browser.\n\n  Using `HashLocation` results in URLs with a `#` (hash sign) separating the\n  server side URL portion of the URL from the portion that is used by Ember.\n\n  Example:\n\n  ```app/router.js\n  Router.map(function() {\n    this.route('posts', function() {\n      this.route('new');\n    });\n  });\n\n  Router.reopen({\n    location: 'hash'\n  });\n  ```\n\n  This will result in a posts.new url of `/#/posts/new`.\n\n  @class HashLocation\n  @extends EmberObject\n  @protected\n*/\nclass HashLocation extends EmberObject {\n  _hashchangeHandler;\n  _location;\n  init() {\n    this.location = this._location ?? window.location;\n    this._hashchangeHandler = undefined;\n  }\n\n  /**\n    @private\n     Returns normalized location.hash\n     @since 1.5.1\n    @method getHash\n  */\n  getHash() {\n    return getHash(this.location);\n  }\n\n  /**\n    Returns the normalized URL, constructed from `location.hash`.\n     e.g. `#/foo` => `/foo` as well as `#/foo#bar` => `/foo#bar`.\n     By convention, hashed paths must begin with a forward slash, otherwise they\n    are not treated as a path so we can distinguish intent.\n     @private\n    @method getURL\n  */\n  getURL() {\n    let originalPath = this.getHash().substring(1);\n    let outPath = originalPath;\n    if (outPath[0] !== '/') {\n      outPath = '/';\n\n      // Only add the # if the path isn't empty.\n      // We do NOT want `/#` since the hash\n      // is only included (conventionally) when\n      // the location.hash has a value\n      if (originalPath) {\n        outPath += `#${originalPath}`;\n      }\n    }\n    return outPath;\n  }\n\n  /**\n    Set the `location.hash` and remembers what was set. This prevents\n    `onUpdateURL` callbacks from triggering when the hash was set by\n    `HashLocation`.\n     @private\n    @method setURL\n    @param path {String}\n  */\n  setURL(path) {\n    this.location.hash = path;\n    this.lastSetURL = path;\n  }\n\n  /**\n    Uses location.replace to update the url without a page reload\n    or history modification.\n     @private\n    @method replaceURL\n    @param path {String}\n  */\n  replaceURL(path) {\n    this.location.replace(`#${path}`);\n    this.lastSetURL = path;\n  }\n  lastSetURL = null;\n\n  /**\n    Register a callback to be invoked when the hash changes. These\n    callbacks will execute when the user presses the back or forward\n    button, but not after `setURL` is invoked.\n     @private\n    @method onUpdateURL\n    @param callback {Function}\n  */\n  onUpdateURL(callback) {\n    this._removeEventListener();\n    this._hashchangeHandler = bind(this, function (_event) {\n      let path = this.getURL();\n      if (this.lastSetURL === path) {\n        return;\n      }\n      this.lastSetURL = null;\n      callback(path);\n    });\n    window.addEventListener('hashchange', this._hashchangeHandler);\n  }\n\n  /**\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  */\n  formatURL(url) {\n    return `#${url}`;\n  }\n\n  /**\n    Cleans up the HashLocation event listener.\n     @private\n    @method willDestroy\n  */\n  willDestroy() {\n    this._removeEventListener();\n  }\n  _removeEventListener() {\n    if (this._hashchangeHandler) {\n      window.removeEventListener('hashchange', this._hashchangeHandler);\n    }\n  }\n}\n\nexport { HashLocation as default };\n","import EmberObject from '../object/index.js';\nimport { getHash, escapeRegExp } from './lib/location-utils.js';\n\n/**\n@module @ember/routing/history-location\n*/\n\nfunction _uuid() {\n  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n    let r, v;\n    r = Math.random() * 16 | 0;\n    v = c === 'x' ? r : r & 3 | 8;\n    return v.toString(16);\n  });\n}\n\n/**\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*/\nclass HistoryLocation extends EmberObject {\n  // SAFETY: both of these properties initialized via `init`.\n\n  history;\n  _popstateHandler;\n\n  /**\n    Will be pre-pended to path upon state change\n     @property rootURL\n    @default '/'\n    @private\n  */\n  rootURL = '/';\n\n  /**\n    @private\n     Returns normalized location.hash\n     @method getHash\n  */\n  getHash() {\n    return getHash(this.location);\n  }\n  init() {\n    this._super(...arguments);\n    let base = document.querySelector('base');\n    let baseURL = '';\n    if (base !== null && base.hasAttribute('href')) {\n      baseURL = base.getAttribute('href') ?? '';\n    }\n    this.baseURL = baseURL;\n    this.location = this.location ?? window.location;\n    this._popstateHandler = undefined;\n  }\n\n  /**\n    Used to set state on first call to setURL\n     @private\n    @method initState\n  */\n  initState() {\n    let history = this.history ?? window.history;\n    this.history = history;\n    let {\n      state\n    } = history;\n    let path = this.formatURL(this.getURL());\n    if (!state || state.path !== path) {\n      this.replaceState(path);\n    }\n  }\n\n  /**\n    Returns the current `location.pathname` without `rootURL` or `baseURL`\n     @private\n    @method getURL\n    @return url {String}\n  */\n  getURL() {\n    let {\n      location,\n      rootURL,\n      baseURL\n    } = this;\n    let path = location.pathname;\n\n    // remove trailing slashes if they exists\n    rootURL = rootURL.replace(/\\/$/, '');\n    baseURL = baseURL.replace(/\\/$/, '');\n\n    // remove baseURL and rootURL from start of path\n    let url = path.replace(new RegExp(`^${escapeRegExp(baseURL)}(?=/|$)`), '').replace(new RegExp(`^${escapeRegExp(rootURL)}(?=/|$)`), '').replace(/\\/\\//g, '/'); // remove extra slashes\n\n    let search = location.search || '';\n    url += search + this.getHash();\n    return url;\n  }\n\n  /**\n    Uses `history.pushState` to update the url without a page reload.\n     @private\n    @method setURL\n    @param path {String}\n  */\n  setURL(path) {\n    let {\n      state\n    } = this.history;\n    path = this.formatURL(path);\n    if (!state || state.path !== path) {\n      this.pushState(path);\n    }\n  }\n\n  /**\n    Uses `history.replaceState` to update the url without a page reload\n    or history modification.\n     @private\n    @method replaceURL\n    @param path {String}\n  */\n  replaceURL(path) {\n    let {\n      state\n    } = this.history;\n    path = this.formatURL(path);\n    if (!state || state.path !== path) {\n      this.replaceState(path);\n    }\n  }\n\n  /**\n   Pushes a new state.\n    @private\n   @method pushState\n   @param path {String}\n  */\n  pushState(path) {\n    let state = {\n      path,\n      uuid: _uuid()\n    };\n    this.history.pushState(state, '', path);\n  }\n\n  /**\n   Replaces the current state.\n    @private\n   @method replaceState\n   @param path {String}\n  */\n  replaceState(path) {\n    let state = {\n      path,\n      uuid: _uuid()\n    };\n    this.history.replaceState(state, '', path);\n  }\n\n  /**\n    Register a callback to be invoked whenever the browser\n    history changes, including using forward and back buttons.\n     @private\n    @method onUpdateURL\n    @param callback {Function}\n  */\n  onUpdateURL(callback) {\n    this._removeEventListener();\n    this._popstateHandler = () => {\n      callback(this.getURL());\n    };\n    window.addEventListener('popstate', this._popstateHandler);\n  }\n\n  /**\n    Formats url to be placed into href attribute.\n     @private\n    @method formatURL\n    @param url {String}\n    @return formatted url {String}\n  */\n  formatURL(url) {\n    let {\n      rootURL,\n      baseURL\n    } = this;\n    if (url !== '') {\n      // remove trailing slashes if they exists\n      rootURL = rootURL.replace(/\\/$/, '');\n      baseURL = baseURL.replace(/\\/$/, '');\n    } else if (baseURL[0] === '/' && rootURL[0] === '/') {\n      // if baseURL and rootURL both start with a slash\n      // ... remove trailing slash from baseURL if it exists\n      baseURL = baseURL.replace(/\\/$/, '');\n    }\n    return baseURL + rootURL + url;\n  }\n\n  /**\n    Cleans up the HistoryLocation event listener.\n     @private\n    @method willDestroy\n  */\n  willDestroy() {\n    this._removeEventListener();\n  }\n  _removeEventListener() {\n    if (this._popstateHandler) {\n      window.removeEventListener('popstate', this._popstateHandler);\n    }\n  }\n}\n\nexport { HistoryLocation as default };\n","import { isSimpleClick } from '../-internals/views/lib/system/utils.js';\nimport { getEngineParent } from '../engine/lib/engine-parent.js';\nimport { flaggedInstrument } from '../instrumentation/index.js';\nimport { action } from '../object/index.js';\nimport { service } from '../service/index.js';\nimport { c as consumeTag, e as createCache, g as getValue, u as untrack } from '../../shared-chunks/cache-CofLhaS4.js';\nimport { t as tagFor } from '../../shared-chunks/meta-BJtIZDir.js';\nimport { on } from '../modifier/on.js';\nimport { t as templateFactory } from '../../shared-chunks/index-kwuZeaNz.js';\nimport { I as InternalComponent, o as opaquify } from '../../shared-chunks/internal-D1sloI2P.js';\nimport { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';\n\nconst LinkToTemplate = templateFactory(\n/*\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*/\n{\n  \"id\": null,\n  \"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\\\"],[\\\"yield\\\"]]\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/link-to.hbs\",\n  \"scope\": () => ({\n    on\n  }),\n  \"isStrictMode\": true\n});\n\nconst EMPTY_ARRAY = [];\nconst EMPTY_QUERY_PARAMS = {};\nfunction isMissing(value) {\n  return value === null || value === undefined;\n}\nfunction isPresent(value) {\n  return !isMissing(value);\n}\nfunction isQueryParams(value) {\n  return typeof value === 'object' && value !== null && value['isQueryParams'] === true;\n}\n\n/**\n @module @ember/routing\n */\n\n/**\n  The `LinkTo` component renders a link to the supplied `routeName` passing an optionally\n  supplied model to the route as its `model` context of the route. The block for `LinkTo`\n  becomes the contents of the rendered element:\n\n  ```gjs\n  import { LinkTo } from '@ember/routing';\n    \n  <template>\n    <LinkTo @route='photoGallery'>\n      Great Hamster Photos\n    </LinkTo>\n  </template>\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/routing\n  @method LinkTo\n  @static\n  @public\n*/\n\nclass _LinkTo extends InternalComponent {\n  static toString() {\n    return 'LinkTo';\n  }\n  static {\n    decorateFieldV2(this.prototype, \"routing\", [service('-routing')]);\n  }\n  #routing = (initializeDeferredDecorator(this, \"routing\"), void 0);\n  validateArguments() {\n    super.validateArguments();\n  }\n  get class() {\n    let classes = 'ember-view';\n    if (this.isActive) {\n      classes += this.classFor('active');\n      if (this.willBeActive === false) {\n        classes += ' ember-transitioning-out';\n      }\n    } else if (this.willBeActive) {\n      classes += ' ember-transitioning-in';\n    }\n    if (this.isLoading) {\n      classes += this.classFor('loading');\n    }\n    if (this.isDisabled) {\n      classes += this.classFor('disabled');\n    }\n    return classes;\n  }\n  get href() {\n    if (this.isLoading) {\n      return '#';\n    }\n    let {\n      routing,\n      route,\n      models,\n      query\n    } = this;\n    // TODO: can we narrow this down to QP changes only?\n    consumeTag(tagFor(routing, 'currentState'));\n    {\n      return routing.generateURL(route, models, query);\n    }\n  }\n  click(event) {\n    if (!isSimpleClick(event)) {\n      return;\n    }\n    let element = event.currentTarget;\n    let target = element instanceof SVGAElement ? element.target.baseVal : element.target;\n    let isSelf = target === '' || target === '_self';\n    if (isSelf) {\n      this.preventDefault(event);\n    } else {\n      return;\n    }\n    if (this.isDisabled) {\n      return;\n    }\n    if (this.isLoading) {\n      return;\n    }\n    let {\n      routing,\n      route,\n      models,\n      query,\n      replace\n    } = this;\n    let payload = {\n      transition: undefined\n    };\n    flaggedInstrument('interaction.link-to', payload, () => {\n      payload.transition = routing.transitionTo(route, models, query, replace);\n    });\n  }\n  static {\n    decorateMethodV2(this.prototype, \"click\", [action]);\n  }\n  get route() {\n    if ('route' in this.args.named) {\n      let route = this.named('route');\n      return route && this.namespaceRoute(route);\n    } else {\n      return this.currentRoute;\n    }\n  }\n\n  // GH #17963\n  currentRouteCache = createCache(() => {\n    consumeTag(tagFor(this.routing, 'currentState'));\n    return untrack(() => this.routing.currentRouteName);\n  });\n  get currentRoute() {\n    return getValue(this.currentRouteCache);\n  }\n\n  // TODO: not sure why generateURL takes {}[] instead of unknown[]\n  // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n  get models() {\n    if ('models' in this.args.named) {\n      let models = this.named('models');\n      return models;\n    } else if ('model' in this.args.named) {\n      // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n      return [this.named('model')];\n    } else {\n      return EMPTY_ARRAY;\n    }\n  }\n  get query() {\n    if ('query' in this.args.named) {\n      let query = this.named('query');\n      if (query === null || query === undefined) {\n        return EMPTY_QUERY_PARAMS;\n      }\n      return {\n        ...query\n      };\n    } else {\n      return EMPTY_QUERY_PARAMS;\n    }\n  }\n  get replace() {\n    return this.named('replace') === true;\n  }\n  get isActive() {\n    return this.isActiveForState(this.routing.currentState);\n  }\n  get willBeActive() {\n    let current = this.routing.currentState;\n    let target = this.routing.targetState;\n    if (current === target) {\n      return null;\n    } else {\n      return this.isActiveForState(target);\n    }\n  }\n  get isLoading() {\n    return isMissing(this.route) || this.models.some(model => isMissing(model));\n  }\n  get isDisabled() {\n    return Boolean(this.named('disabled'));\n  }\n  get isEngine() {\n    let owner = this.owner;\n    return getEngineParent(owner) !== undefined;\n  }\n  get engineMountPoint() {\n    let owner = this.owner;\n    return owner.mountPoint;\n  }\n  classFor(state) {\n    let className = this.named(`${state}Class`);\n    if (className === true || isMissing(className)) {\n      return ` ${state}`;\n    } else if (className) {\n      return ` ${className}`;\n    } else {\n      return '';\n    }\n  }\n  namespaceRoute(route) {\n    let {\n      engineMountPoint\n    } = this;\n    if (engineMountPoint === undefined) {\n      return route;\n    } else if (route === 'application') {\n      return engineMountPoint;\n    } else {\n      return `${engineMountPoint}.${route}`;\n    }\n  }\n  isActiveForState(state) {\n    if (!isPresent(state)) {\n      return false;\n    }\n    if (this.isLoading) {\n      return false;\n    }\n    let currentWhen = this.named('current-when');\n    if (typeof currentWhen === 'boolean') {\n      return currentWhen;\n    } else if (typeof currentWhen === 'string') {\n      let {\n        routing\n      } = this;\n      return currentWhen.split(' ').some(route => routing.isActiveForRoute([], undefined, this.namespaceRoute(route), state));\n    } else {\n      let {\n        route,\n        models,\n        query,\n        routing\n      } = this;\n      return routing.isActiveForRoute(models, query, route, state);\n    }\n  }\n  preventDefault(event) {\n    event.preventDefault();\n  }\n  isSupportedArgument(name) {\n    let supportedArguments = ['route', 'model', 'models', 'query', 'replace', 'disabled', 'current-when', 'activeClass', 'loadingClass', 'disabledClass'];\n    return supportedArguments.indexOf(name) !== -1 || super.isSupportedArgument(name);\n  }\n}\nlet {\n  prototype\n} = _LinkTo;\nlet descriptorFor = (target, property) => {\n  if (target) {\n    return Object.getOwnPropertyDescriptor(target, property) || descriptorFor(Object.getPrototypeOf(target), property);\n  } else {\n    return null;\n  }\n};\n\n// @href\n{\n  let superOnUnsupportedArgument = prototype['onUnsupportedArgument'];\n  Object.defineProperty(prototype, 'onUnsupportedArgument', {\n    configurable: true,\n    enumerable: false,\n    value: function onUnsupportedArgument(name) {\n      if (name === 'href') ; else {\n        superOnUnsupportedArgument.call(this, name);\n      }\n    }\n  });\n}\n\n// QP\n{\n  let superModelsDescriptor = descriptorFor(prototype, 'models');\n  let superModelsGetter = superModelsDescriptor.get;\n  Object.defineProperty(prototype, 'models', {\n    configurable: true,\n    enumerable: false,\n    // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n    get: function models() {\n      let models = superModelsGetter.call(this);\n      if (models.length > 0 && !('query' in this.args.named)) {\n        if (isQueryParams(models[models.length - 1])) {\n          models = models.slice(0, -1);\n        }\n      }\n      return models;\n    }\n  });\n  let superQueryDescriptor = descriptorFor(prototype, 'query');\n  let superQueryGetter = superQueryDescriptor.get;\n  Object.defineProperty(prototype, 'query', {\n    configurable: true,\n    enumerable: false,\n    // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n    get: function query() {\n      if ('query' in this.args.named) {\n        let qp = superQueryGetter.call(this);\n        if (isQueryParams(qp)) {\n          return qp.values ?? EMPTY_QUERY_PARAMS;\n        } else {\n          return qp;\n        }\n      } else {\n        let models = superModelsGetter.call(this);\n        if (models.length > 0) {\n          let qp = models[models.length - 1];\n          if (isQueryParams(qp) && qp.values !== null) {\n            return qp.values;\n          }\n        }\n        return EMPTY_QUERY_PARAMS;\n      }\n    }\n  });\n}\n\n// Positional Arguments\n{\n  let superOnUnsupportedArgument = prototype['onUnsupportedArgument'];\n  Object.defineProperty(prototype, 'onUnsupportedArgument', {\n    configurable: true,\n    enumerable: false,\n    value: function onUnsupportedArgument(name) {\n      if (name !== 'params') {\n        superOnUnsupportedArgument.call(this, name);\n      }\n    }\n  });\n}\nconst LinkTo = opaquify(_LinkTo, LinkToTemplate);\n\nexport { LinkTo };\n","/**\n  A two-tiered cache with support for fallback values when doing lookups.\n  Uses \"buckets\" and then \"keys\" to cache values.\n\n  @private\n  @class BucketCache\n*/\nclass BucketCache {\n  cache;\n  constructor() {\n    this.cache = new Map();\n  }\n  has(bucketKey) {\n    return this.cache.has(bucketKey);\n  }\n  stash(bucketKey, key, value) {\n    let bucket = this.cache.get(bucketKey);\n    if (bucket === undefined) {\n      bucket = new Map();\n      this.cache.set(bucketKey, bucket);\n    }\n    bucket.set(key, value);\n  }\n  lookup(bucketKey, prop, defaultValue) {\n    if (!this.has(bucketKey)) {\n      return defaultValue;\n    }\n    let bucket = this.cache.get(bucketKey);\n    if (bucket.has(prop)) {\n      return bucket.get(prop);\n    } else {\n      return defaultValue;\n    }\n  }\n}\n\nexport { BucketCache as default };\n","/**\n  @module @ember/routing\n*/\n\n/**\n  Finds a controller instance.\n\n  @for Ember\n  @method controllerFor\n  @private\n*/\nfunction controllerFor(container, controllerName, lookupOptions) {\n  return container.lookup(`controller:${controllerName}`, lookupOptions);\n}\n\nexport { controllerFor as default };\n","let uuid = 0;\nfunction isCallback(value) {\n  return typeof value === 'function';\n}\nclass DSLImpl {\n  parent;\n  // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types\n  matches;\n  enableLoadingSubstates;\n  explicitIndex = false;\n  options;\n  constructor(name = null, options) {\n    this.parent = name;\n    this.enableLoadingSubstates = Boolean(options && options.enableLoadingSubstates);\n    this.matches = [];\n    this.options = options;\n  }\n  route(name, _options, _callback) {\n    let options;\n    let callback = null;\n    let dummyErrorRoute = `/_unused_dummy_error_path_route_${name}/:error`;\n    if (isCallback(_options)) {\n      options = {};\n      callback = _options;\n    } else if (isCallback(_callback)) {\n      options = _options;\n      callback = _callback;\n    } else {\n      options = _options || {};\n    }\n    if (this.enableLoadingSubstates) {\n      createRoute(this, `${name}_loading`, {\n        resetNamespace: options.resetNamespace\n      });\n      createRoute(this, `${name}_error`, {\n        resetNamespace: options.resetNamespace,\n        path: dummyErrorRoute\n      });\n    }\n    if (callback) {\n      let fullName = getFullName(this, name, options.resetNamespace);\n      let dsl = new DSLImpl(fullName, this.options);\n      createRoute(dsl, 'loading');\n      createRoute(dsl, 'error', {\n        path: dummyErrorRoute\n      });\n      callback.call(dsl);\n      createRoute(this, name, options, dsl.generate());\n    } else {\n      createRoute(this, name, options);\n    }\n  }\n  push(url, name, callback,\n  // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n  serialize) {\n    let parts = name.split('.');\n    if (this.options.engineInfo) {\n      let localFullName = name.slice(this.options.engineInfo.fullName.length + 1);\n      let routeInfo = Object.assign({\n        localFullName\n      }, this.options.engineInfo);\n      if (serialize) {\n        routeInfo.serializeMethod = serialize;\n      }\n      this.options.addRouteForEngine(name, routeInfo);\n    } else if (serialize) {\n      throw new Error(`Defining a route serializer on route '${name}' outside an Engine is not allowed.`);\n    }\n    if (url === '' || url === '/' || parts[parts.length - 1] === 'index') {\n      this.explicitIndex = true;\n    }\n    this.matches.push(url, name, callback);\n  }\n  generate() {\n    let dslMatches = this.matches;\n    if (!this.explicitIndex) {\n      this.route('index', {\n        path: '/'\n      });\n    }\n    return match => {\n      for (let i = 0; i < dslMatches.length; i += 3) {\n        match(dslMatches[i]).to(dslMatches[i + 1], dslMatches[i + 2]);\n      }\n    };\n  }\n  mount(_name, options = {}) {\n    let engineRouteMap = this.options.resolveRouteMap(_name);\n    let name = _name;\n    if (options.as) {\n      name = options.as;\n    }\n    let fullName = getFullName(this, name, options.resetNamespace);\n    let engineInfo = {\n      name: _name,\n      instanceId: uuid++,\n      mountPoint: fullName,\n      fullName\n    };\n    let path = options.path;\n    if (typeof path !== 'string') {\n      path = `/${name}`;\n    }\n    let callback;\n    let dummyErrorRoute = `/_unused_dummy_error_path_route_${name}/:error`;\n    if (engineRouteMap) {\n      let shouldResetEngineInfo = false;\n      let oldEngineInfo = this.options.engineInfo;\n      if (oldEngineInfo) {\n        shouldResetEngineInfo = true;\n        this.options.engineInfo = engineInfo;\n      }\n      let optionsForChild = Object.assign({\n        engineInfo\n      }, this.options);\n      let childDSL = new DSLImpl(fullName, optionsForChild);\n      createRoute(childDSL, 'loading');\n      createRoute(childDSL, 'error', {\n        path: dummyErrorRoute\n      });\n      engineRouteMap.class.call(childDSL);\n      callback = childDSL.generate();\n      if (shouldResetEngineInfo) {\n        this.options.engineInfo = oldEngineInfo;\n      }\n    }\n    let localFullName = 'application';\n    let routeInfo = Object.assign({\n      localFullName\n    }, engineInfo);\n    if (this.enableLoadingSubstates) {\n      // These values are important to register the loading routes under their\n      // proper names for the Router and within the Engine's registry.\n      let substateName = `${name}_loading`;\n      let localFullName = `application_loading`;\n      let routeInfo = Object.assign({\n        localFullName\n      }, engineInfo);\n      createRoute(this, substateName, {\n        resetNamespace: options.resetNamespace\n      });\n      this.options.addRouteForEngine(substateName, routeInfo);\n      substateName = `${name}_error`;\n      localFullName = `application_error`;\n      routeInfo = Object.assign({\n        localFullName\n      }, engineInfo);\n      createRoute(this, substateName, {\n        resetNamespace: options.resetNamespace,\n        path: dummyErrorRoute\n      });\n      this.options.addRouteForEngine(substateName, routeInfo);\n    }\n    this.options.addRouteForEngine(fullName, routeInfo);\n    this.push(path, fullName, callback);\n  }\n}\nfunction canNest(dsl) {\n  return dsl.parent !== 'application';\n}\nfunction getFullName(dsl, name, resetNamespace) {\n  if (canNest(dsl) && resetNamespace !== true) {\n    return `${dsl.parent}.${name}`;\n  } else {\n    return name;\n  }\n}\nfunction createRoute(dsl, name, options = {}, callback) {\n  let fullName = getFullName(dsl, name, options.resetNamespace);\n  if (typeof options.path !== 'string') {\n    options.path = `/${name}`;\n  }\n  dsl.push(options.path, fullName, callback, options.serialize);\n}\n\nexport { DSLImpl as default };\n","import '../../../shared-chunks/property_get-DuDs6rLg.js';\n\n/**\n @module @ember/routing\n*/\n\n/**\n  Generates a controller factory\n\n  @for Ember\n  @method generateControllerFactory\n  @private\n*/\n\n/* eslint-disable @typescript-eslint/no-empty-object-type */\nfunction generateControllerFactory(owner, controllerName) {\n  /* eslint-enable @typescript-eslint/no-empty-object-type */\n  let factoryManager = owner.factoryFor('controller:basic');\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.\n  let Factory = factoryManager.class;\n  // assert(\n  //   '[BUG] factory for `controller:main` is unexpectedly not a Controller',\n  //   ((factory): factory is typeof Controller => factory === Controller)(Factory)\n  // );\n\n  Factory = class extends Factory {\n    toString() {\n      return `(generated ${controllerName} controller)`;\n    }\n  };\n  let fullName = `controller:${controllerName}`;\n  owner.register(fullName, Factory);\n\n  // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n  return owner.factoryFor(fullName);\n}\n\n/**\n  Generates and instantiates a controller extending from `controller:basic`\n  if present, or `Controller` if not.\n\n  @for Ember\n  @method generateController\n  @private\n  @since 1.3.0\n*/\nfunction generateController(owner, controllerName) {\n  generateControllerFactory(owner, controllerName);\n  let fullName = `controller:${controllerName}`;\n  let instance = owner.lookup(fullName);\n  return instance;\n}\n\nexport { generateController as default, generateControllerFactory };\n","/**\n  @private\n\n  Escapes any regular-expression metacharacters in `str` so it can be safely\n  interpolated into a `RegExp` and matched as a literal.\n\n  TODO: delete this in favor of `RegExp.escape` once our minimum supported\n  browsers all include it (https://caniuse.com/mdn-javascript_builtins_regexp_escape).\n*/\nfunction escapeRegExp(str) {\n  return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n}\n\n/**\n  @private\n\n  Returns the current `location.pathname`, ensuring it has a leading slash.\n*/\nfunction getPath(location) {\n  let pathname = location.pathname;\n  if (pathname[0] !== '/') {\n    pathname = `/${pathname}`;\n  }\n  return pathname;\n}\n\n/**\n  @private\n\n  Returns the current `location.search`.\n*/\nfunction getQuery(location) {\n  return location.search;\n}\n\n/**\n  @private\n\n  Returns the hash or empty string\n*/\nfunction getHash(location) {\n  if (location.hash !== undefined) {\n    return location.hash.substring(0);\n  }\n  return '';\n}\nfunction getFullPath(location) {\n  return getPath(location) + getQuery(location) + getHash(location);\n}\n\nexport { escapeRegExp, getFullPath, getHash, getPath, getQuery };\n","class QueryParams {\n  values;\n  isQueryParams = true;\n  constructor(values = null) {\n    this.values = values;\n  }\n}\n\nexport { QueryParams as default };\n","import { shallowEqual } from './utils.js';\n\nclass RouterState {\n  router;\n  emberRouter;\n  routerJsState;\n  constructor(emberRouter, router, routerJsState) {\n    this.emberRouter = emberRouter;\n    this.router = router;\n    this.routerJsState = routerJsState;\n  }\n  isActiveIntent(routeName, models, queryParams) {\n    let state = this.routerJsState;\n    if (!this.router.isActiveIntent(routeName, models, undefined, state)) {\n      return false;\n    }\n    if (queryParams !== undefined && Object.keys(queryParams).length > 0) {\n      let visibleQueryParams = Object.assign({}, queryParams);\n      this.emberRouter._prepareQueryParams(routeName, models, visibleQueryParams);\n      return shallowEqual(visibleQueryParams, state.queryParams);\n    }\n    return true;\n  }\n}\n\nexport { RouterState as default };\n","import { getOwner } from '../../-internals/owner/index.js';\nimport '../../../shared-chunks/cache-CofLhaS4.js';\nimport '../../../shared-chunks/reference-CccCE8mJ.js';\nimport '../../../shared-chunks/observers-B1wiwQeH.js';\nimport '../../../shared-chunks/property_get-DuDs6rLg.js';\nimport { readOnly } from '../../object/lib/computed/computed_macros.js';\nimport '../../object/core.js';\nimport '../../array/index.js';\nimport Service from '../../service/index.js';\nimport '../router.js';\nimport { ROUTER } from '../router-service.js';\n\n/**\n@module ember\n*/\n\n\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*/\nclass RoutingService extends Service {\n  [ROUTER];\n  get router() {\n    let router = this[ROUTER];\n    if (router !== undefined) {\n      return router;\n    }\n    let owner = getOwner(this);\n    let _router = owner.lookup('router:main');\n    _router.setupRouter();\n    return this[ROUTER] = _router;\n  }\n  hasRoute(routeName) {\n    return this.router.hasRoute(routeName);\n  }\n  transitionTo(routeName, models, queryParams, shouldReplace) {\n    let transition = this.router._doTransition(routeName, models, queryParams);\n    if (shouldReplace) {\n      transition.method('replace');\n    }\n    return transition;\n  }\n  normalizeQueryParams(routeName, models, queryParams) {\n    this.router._prepareQueryParams(routeName, models, queryParams);\n  }\n  _generateURL(routeName, models, queryParams) {\n    let visibleQueryParams = {};\n    if (queryParams) {\n      Object.assign(visibleQueryParams, queryParams);\n      this.normalizeQueryParams(routeName, models, visibleQueryParams);\n    }\n    return this.router.generate(routeName, ...models, {\n      queryParams: visibleQueryParams\n    });\n  }\n  generateURL(routeName, models, queryParams) {\n    if (this.router._initialTransitionStarted) {\n      return this._generateURL(routeName, models, queryParams);\n    } else {\n      // Swallow error when transition has not started.\n      // When rendering in tests without visit(), we cannot infer the route context which <LinkTo/> needs be aware of\n      try {\n        return this._generateURL(routeName, models, queryParams);\n      } catch (_e) {\n        return;\n      }\n    }\n  }\n  isActiveForRoute(contexts, queryParams, routeName, routerState) {\n    let handlers = this.router._routerMicrolib.recognizer.handlersFor(routeName);\n    let leafName = handlers[handlers.length - 1].handler;\n    let maximumContexts = numberOfContextsAcceptedByHandler(routeName, handlers);\n\n    // 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\n    // if we don't have enough contexts revert back to full route name\n    // this is because the leaf route will use one of the contexts\n    if (contexts.length > maximumContexts) {\n      routeName = leafName;\n    }\n    return routerState.isActiveIntent(routeName, contexts, queryParams);\n  }\n}\nRoutingService.reopen({\n  targetState: readOnly('router.targetState'),\n  currentState: readOnly('router.currentState'),\n  currentRouteName: readOnly('router.currentRouteName'),\n  currentPath: readOnly('router.currentPath')\n});\nfunction numberOfContextsAcceptedByHandler(handlerName, handlerInfos) {\n  let req = 0;\n  for (let i = 0; i < handlerInfos.length; i++) {\n    req += handlerInfos[i].names.length;\n    if (handlerInfos[i].handler === handlerName) {\n      break;\n    }\n  }\n  return req;\n}\n\nexport { RoutingService as default };\n","import { g as get } from '../../../shared-chunks/property_get-DuDs6rLg.js';\nimport { getOwner } from '../../-internals/owner/index.js';\nimport '../../engine/instance.js';\nimport '../../../route-recognizer/index.js';\nimport '../../../shared-chunks/rsvp-aLN_pQtn.js';\nimport { S as STATE_SYMBOL } from '../../../shared-chunks/unrecognized-url-error-xC654tCo.js';\n\nconst ALL_PERIODS_REGEX = /\\./g;\nfunction extractRouteArgs(args) {\n  // SAFETY: This should just be the same thing\n  args = args.slice();\n  let possibleOptions = args[args.length - 1];\n  let queryParams;\n  if (isRouteOptions(possibleOptions)) {\n    args.pop(); // Remove options\n    queryParams = possibleOptions.queryParams;\n  } else {\n    queryParams = {};\n  }\n  let routeName;\n  if (typeof args[0] === 'string') {\n    routeName = args.shift();\n  }\n\n  // SAFTEY: We removed the name and options if they existed, only models left.\n  let models = args;\n  return {\n    routeName,\n    models,\n    queryParams\n  };\n}\nfunction getActiveTargetName(router) {\n  let routeInfos = router.activeTransition ? router.activeTransition[STATE_SYMBOL].routeInfos : router.state.routeInfos;\n  let lastRouteInfo = routeInfos[routeInfos.length - 1];\n  return lastRouteInfo.name;\n}\nfunction stashParamNames(router, routeInfos) {\n  if (routeInfos['_namesStashed']) {\n    return;\n  }\n\n  // This helper exists because router.js/route-recognizer.js awkwardly\n  // keeps separate a routeInfo's list of parameter names depending\n  // on whether a URL transition or named transition is happening.\n  // Hopefully we can remove this in the future.\n  let routeInfo = routeInfos[routeInfos.length - 1];\n  let targetRouteName = routeInfo.name;\n  let recogHandlers = router._routerMicrolib.recognizer.handlersFor(targetRouteName);\n  let dynamicParent;\n  for (let i = 0; i < routeInfos.length; ++i) {\n    let routeInfo = routeInfos[i];\n    let names = recogHandlers[i].names;\n    if (names.length) {\n      dynamicParent = routeInfo;\n    }\n    routeInfo['_names'] = names;\n    let route = routeInfo.route;\n    route._stashNames(routeInfo, dynamicParent);\n  }\n  routeInfos['_namesStashed'] = true;\n}\nfunction _calculateCacheValuePrefix(prefix, part) {\n  // calculates the dot separated sections from prefix that are also\n  // at the start of part - which gives us the route name\n\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\n  // given : prefix = site.article, part = site.article.id\n  //      - returns: site.article. (use get(values[site.article], 'id') to get the dynamic part - used below)\n\n  let prefixParts = prefix.split('.');\n  let currPrefix = '';\n  for (let i = 0; i < prefixParts.length; i++) {\n    let currPart = prefixParts.slice(0, i + 1).join('.');\n    if (part.indexOf(currPart) !== 0) {\n      break;\n    }\n    currPrefix = currPart;\n  }\n  return currPrefix;\n}\n\n/*\n  Stolen from Controller\n*/\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nfunction calculateCacheKey(prefix, parts = [], values) {\n  let suffixes = '';\n  for (let part of parts) {\n    let cacheValuePrefix = _calculateCacheValuePrefix(prefix, part);\n    let value;\n    if (values) {\n      if (cacheValuePrefix && cacheValuePrefix in values) {\n        let partRemovedPrefix = part.indexOf(cacheValuePrefix) === 0 ? part.substring(cacheValuePrefix.length + 1) : part;\n        value = get(values[cacheValuePrefix], partRemovedPrefix);\n      } else {\n        value = get(values, part);\n      }\n    }\n    suffixes += `::${part}:${value}`;\n  }\n  return prefix + suffixes.replace(ALL_PERIODS_REGEX, '-');\n}\n\n/*\n  Controller-defined query parameters can come in three shapes:\n\n  Array\n    queryParams: ['foo', 'bar']\n  Array of simple objects where value is an alias\n    queryParams: [\n      {\n        'foo': 'rename_foo_to_this'\n      },\n      {\n        'bar': 'call_bar_this_instead'\n      }\n    ]\n  Array of fully defined objects\n    queryParams: [\n      {\n        'foo': {\n          as: 'rename_foo_to_this'\n        },\n      }\n      {\n        'bar': {\n          as: 'call_bar_this_instead',\n          scope: 'controller'\n        }\n      }\n    ]\n\n  This helper normalizes all three possible styles into the\n  'Array of fully defined objects' style.\n*/\nfunction normalizeControllerQueryParams(queryParams) {\n  let qpMap = {};\n  for (let queryParam of queryParams) {\n    accumulateQueryParamDescriptors(queryParam, qpMap);\n  }\n  return qpMap;\n}\nfunction accumulateQueryParamDescriptors(_desc, accum) {\n  let desc = typeof _desc === 'string' ? {\n    [_desc]: {\n      as: null\n    }\n  } : _desc;\n  for (let key in desc) {\n    if (!Object.prototype.hasOwnProperty.call(desc, key)) {\n      return;\n    }\n    let _singleDesc = desc[key];\n    let singleDesc = typeof _singleDesc === 'string' ? {\n      as: _singleDesc\n    } : _singleDesc;\n    let partialVal = accum[key] || {\n      as: null,\n      scope: 'model'\n    };\n    let val = {\n      ...partialVal,\n      ...singleDesc\n    };\n    accum[key] = val;\n  }\n}\n\n/*\n  Check if a routeName resembles a url instead\n\n  @private\n*/\nfunction resemblesURL(str) {\n  return typeof str === 'string' && (str === '' || str[0] === '/');\n}\n\n/*\n  Returns an arguments array where the route name arg is prefixed based on the mount point\n\n  @private\n*/\nfunction prefixRouteNameArg(route, args) {\n  let routeName;\n  let owner = getOwner(route);\n  let prefix = owner.mountPoint;\n\n  // only alter the routeName if it's actually referencing a route.\n  if (owner.routable && typeof args[0] === 'string') {\n    routeName = args[0];\n    if (resemblesURL(routeName)) {\n      throw new Error('Programmatic transitions by URL cannot be used within an Engine. Please use the route name instead.');\n    } else {\n      routeName = `${prefix}.${routeName}`;\n      args[0] = routeName;\n    }\n  }\n  return args;\n}\nfunction shallowEqual(a, b) {\n  let aCount = 0;\n  let bCount = 0;\n  for (let kA in a) {\n    if (Object.prototype.hasOwnProperty.call(a, kA)) {\n      if (a[kA] !== b[kA]) {\n        return false;\n      }\n      aCount++;\n    }\n  }\n  for (let kB in b) {\n    if (Object.prototype.hasOwnProperty.call(b, kB)) {\n      bCount++;\n    }\n  }\n  return aCount === bCount;\n}\nfunction isRouteOptions(value) {\n  if (value && typeof value === 'object') {\n    let qps = value.queryParams;\n    if (qps && typeof qps === 'object') {\n      return Object.keys(qps).every(k => typeof k === 'string');\n    }\n  }\n  return false;\n}\n\nexport { calculateCacheKey, extractRouteArgs, getActiveTargetName, normalizeControllerQueryParams, prefixRouteNameArg, resemblesURL, shallowEqual, stashParamNames };\n","import EmberObject from '../object/index.js';\nimport { escapeRegExp } from './lib/location-utils.js';\n\n/**\n@module @ember/routing/none-location\n*/\n\n/**\n  NoneLocation does not interact with the browser. It is useful for\n  testing, or when you need to manage state with your Router, but temporarily\n  don't want it to muck with the URL (for example when you embed your\n  application in a larger page).\n\n  Using `NoneLocation` causes Ember to not store the applications URL state\n  in the actual URL. This is generally used for testing purposes.\n\n  @class NoneLocation\n  @extends EmberObject\n  @protected\n*/\nclass NoneLocation extends EmberObject {\n  updateCallback;\n\n  // Set in reopen so it can be overwritten with extend\n\n  /**\n    Will be pre-pended to path.\n     @private\n    @property rootURL\n    @default '/'\n  */\n  // Set in reopen so it can be overwritten with extend\n\n  initState() {\n    this._super(...arguments);\n    let {\n      rootURL\n    } = this;\n  }\n\n  /**\n    Returns the current path without `rootURL`.\n     @private\n    @method getURL\n    @return {String} path\n  */\n  getURL() {\n    let {\n      path,\n      rootURL\n    } = this;\n\n    // remove trailing slashes if they exists\n    rootURL = rootURL.replace(/\\/$/, '');\n\n    // remove rootURL from url\n    return path.replace(new RegExp(`^${escapeRegExp(rootURL)}(?=/|$)`), '');\n  }\n\n  /**\n    Set the path and remembers what was set. Using this method\n    to change the path will not invoke the `updateURL` callback.\n     @private\n    @method setURL\n    @param path {String}\n  */\n  setURL(path) {\n    this.path = path;\n  }\n\n  /**\n    Register a callback to be invoked when the path changes. These\n    callbacks will execute when the user presses the back or forward\n    button, but not after `setURL` is invoked.\n     @private\n    @method onUpdateURL\n    @param callback {Function}\n  */\n  onUpdateURL(callback) {\n    this.updateCallback = callback;\n  }\n\n  /**\n    Sets the path and calls the `updateURL` callback.\n     @private\n    @method handleURL\n    @param url {String}\n  */\n  handleURL(url) {\n    this.path = url;\n    if (this.updateCallback) {\n      this.updateCallback(url);\n    }\n  }\n\n  /**\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  */\n  formatURL(url) {\n    let {\n      rootURL\n    } = this;\n    if (url !== '') {\n      // remove trailing slashes if they exists\n      rootURL = rootURL.replace(/\\/$/, '');\n    }\n    return rootURL + url;\n  }\n}\nNoneLocation.reopen({\n  path: '',\n  rootURL: '/'\n});\n\nexport { NoneLocation as default };\n","import { privatize } from '../-internals/container/index.js';\nimport { f as flushAsyncObservers, b as addObserver } from '../../shared-chunks/observers-B1wiwQeH.js';\nimport { c as computed, d as defineProperty } from '../../shared-chunks/computed-ZvOk7SJQ.js';\nimport { d as descriptorForProperty } from '../../shared-chunks/decorator-DcvVDSJV.js';\nimport { s as sendEvent } from '../../shared-chunks/events-3Q5Qvo6Q.js';\nimport { E as Evented, e as eventedOn, a as eventedOne, b as eventedTrigger, c as eventedOff, d as eventedHas } from '../../shared-chunks/evented-DYsL5t87.js';\nimport { getOwner } from '../-internals/owner/index.js';\nimport { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { s as set } from '../../shared-chunks/property_set-CVmdjPdh.js';\nimport { g as getProperties } from '../../shared-chunks/get_properties-CkJ_mhLz.js';\nimport { s as setProperties } from '../../shared-chunks/set_properties-BObIgkE-.js';\nimport EmberObject from '../object/index.js';\nimport { meta } from '../-internals/meta/lib/meta.js';\nimport { A } from '../array/index.js';\nimport ActionHandler from '../-internals/runtime/lib/mixins/action_handler.js';\nimport typeOf from '../utils/lib/type-of.js';\nimport { i as isProxy } from '../../shared-chunks/is_proxy-Bzg0d4m4.js';\nimport { l as lookupDescriptor } from '../../shared-chunks/lookup-descriptor-CwcVgaLv.js';\nimport '../controller/index.js';\nimport { isTesting } from '../debug/lib/testing.js';\nimport '../engine/instance.js';\nimport { dependentKeyCompat } from '../object/compat.js';\nimport { once } from '../runloop/index.js';\nimport { c as hasInternalComponentManager } from '../../shared-chunks/api-DJnXAjon.js';\nimport '../../route-recognizer/index.js';\nimport '../../shared-chunks/rsvp-aLN_pQtn.js';\nimport { S as STATE_SYMBOL, P as PARAMS_SYMBOL } from '../../shared-chunks/unrecognized-url-error-xC654tCo.js';\nimport generateController from './lib/generate_controller.js';\nimport { prefixRouteNameArg, stashParamNames, calculateCacheKey, normalizeControllerQueryParams } from './lib/utils.js';\nimport { a as decorateMethodV2 } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';\n\nconst RENDER = Symbol('render');\nconst RENDER_STATE = Symbol('render-state');\n\n/**\n@module @ember/routing/route\n*/\n\n/**\n  The `Route` class is used to define individual routes. Refer to\n  the [routing guide](https://guides.emberjs.com/release/routing/) for documentation.\n\n  @class Route\n  @extends EmberObject\n  @uses ActionHandler\n  @uses Evented\n  @since 1.0.0\n  @public\n*/\n\nclass Route extends EmberObject.extend(ActionHandler) {\n  static {\n    // The deprecated Evented mixin is no longer applied, but instances still\n    // provide its methods, so `Evented.detect` must keep returning true.\n    meta(this.prototype).addMixin(Evented);\n  }\n  static isRouteFactory = true;\n\n  // 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 */\n  context = {};\n  /** @internal */\n\n  /** @internal */\n  _bucketCache;\n  /** @internal */\n  _internalName;\n  _names;\n  _router;\n  constructor(owner) {\n    super(owner);\n    if (owner) {\n      let router = owner.lookup('router:main');\n      let bucketCache = owner.lookup(privatize`-bucket-cache:main`);\n      this._router = router;\n      this._bucketCache = bucketCache;\n      this._topLevelViewTemplate = owner.lookup('template:-outlet');\n      this._environment = owner.lookup('-environment:main');\n    }\n  }\n\n  /**\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  */\n  serialize(model, params) {\n    if (params.length < 1 || !model) {\n      return;\n    }\n    let object = {};\n    if (params.length === 1) {\n      let [name] = params;\n      if (typeof model === 'object' && name in model) {\n        object[name] = get(model, name);\n      } else if (/_id$/.test(name)) {\n        object[name] = get(model, 'id');\n      } else if (isProxy(model)) {\n        object[name] = get(model, name);\n      }\n    } else {\n      object = getProperties(model, params);\n    }\n    return object;\n  }\n\n  /**\n    Configuration hash for this route's queryParams. The possible\n    configuration options and their defaults are as follows\n    (assuming a query param whose controller property is `page`):\n     ```javascript\n    queryParams = {\n      page: {\n        // By default, controller query param properties don't\n        // cause a full transition when they are changed, but\n        // rather only cause the URL to update. Setting\n        // `refreshModel` to true will cause an \"in-place\"\n        // transition to occur, whereby the model hooks for\n        // this route (and any child routes) will re-fire, allowing\n        // you to reload models (e.g., from the server) using the\n        // updated query param values.\n        refreshModel: false,\n         // By default, changes to controller query param properties\n        // cause the URL to update via `pushState`, which means an\n        // item will be added to the browser's history, allowing\n        // you to use the back button to restore the app to the\n        // previous state before the query param property was changed.\n        // Setting `replace` to true will use `replaceState` (or its\n        // hash location equivalent), which causes no browser history\n        // item to be added. This options name and default value are\n        // the same as the `link-to` helper's `replace` option.\n        replace: false,\n         // By default, the query param URL key is the same name as\n        // the controller property name. Use `as` to specify a\n        // different URL key.\n        as: 'page'\n      }\n    };\n    ```\n     @property queryParams\n    @for Route\n    @type Object\n    @since 1.6.0\n    @public\n  */\n  // Set in reopen so it can be overriden with extend\n\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  */\n  // Set in reopen so it can be overriden with extend\n\n  /**\n    The name of the controller to associate with this route.\n     By default, Ember will lookup a route's controller that matches the name\n    of the route (i.e. `posts.new`). However,\n    if you would like to define a specific controller to use, you can do so\n    using this property.\n     This is useful in many ways, as the controller specified will be:\n     * passed to the `setupController` method.\n    * used as the controller for the template being rendered by the route.\n    * returned from a call to `controllerFor` for the route.\n     @property controllerName\n    @type String\n    @default null\n    @since 1.4.0\n    @public\n  */\n  // Set in reopen so it can be overriden with extend\n\n  /**\n    The controller associated with this route.\n     Example\n     ```app/routes/form.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n     export default class FormRoute extends Route {\n      @action\n      willTransition(transition) {\n        if (this.controller.get('userHasEnteredData') &&\n            !confirm('Are you sure you want to abandon progress?')) {\n          transition.abort();\n        } else {\n          // Bubble the `willTransition` action so that\n          // parent routes can decide whether or not to abort.\n          return true;\n        }\n      }\n    }\n    ```\n     @property controller\n    @type Controller\n    @since 1.6.0\n    @public\n  */\n\n  /**\n    The name of the route, dot-delimited.\n     For example, a route found at `app/routes/posts/post.js` will have\n    a `routeName` of `posts.post`.\n     @property routeName\n    @for Route\n    @type String\n    @since 1.0.0\n    @public\n  */\n\n  /**\n    The name of the route, dot-delimited, including the engine prefix\n    if applicable.\n     For example, a route found at `addon/routes/posts/post.js` within an\n    engine named `admin` will have a `fullRouteName` of `admin.posts.post`.\n     @property fullRouteName\n    @for Route\n    @type String\n    @since 2.10.0\n    @public\n  */\n\n  /**\n    Sets the name for this route, including a fully resolved name for routes\n    inside engines.\n     @private\n    @method _setRouteName\n    @param {String} name\n  */\n  _setRouteName(name) {\n    this.routeName = name;\n    let owner = getOwner(this);\n    this.fullRouteName = getEngineRouteName(owner, name);\n  }\n\n  /**\n    @private\n     @method _stashNames\n  */\n  _stashNames(routeInfo, dynamicParent) {\n    if (this._names) {\n      return;\n    }\n    let names = this._names = routeInfo['_names'];\n    if (!names.length) {\n      routeInfo = dynamicParent;\n      names = routeInfo && routeInfo['_names'] || [];\n    }\n\n    // SAFETY: Since `_qp` is protected we can't infer the type\n    let qps = get(this, '_qp').qps;\n    let namePaths = new Array(names.length);\n    for (let a = 0; a < names.length; ++a) {\n      namePaths[a] = `${routeInfo.name}.${names[a]}`;\n    }\n    for (let qp of qps) {\n      if (qp.scope === 'model') {\n        qp.parts = namePaths;\n      }\n    }\n  }\n\n  /**\n    @private\n     @property _activeQPChanged\n  */\n  _activeQPChanged(qp, value) {\n    this._router._activeQPChanged(qp.scopedPropertyName, value);\n  }\n\n  /**\n    @private\n    @method _updatingQPChanged\n  */\n  _updatingQPChanged(qp) {\n    this._router._updatingQPChanged(qp.urlKey);\n  }\n\n  /**\n    Returns a hash containing the parameters of an ancestor route.\n     You may notice that `this.paramsFor` sometimes works when referring to a\n    child route, but this behavior should not be relied upon as only ancestor\n    routes are certain to be loaded in time.\n     Example\n     ```app/router.js\n    // ...\n     Router.map(function() {\n      this.route('member', { path: ':name' }, function() {\n        this.route('interest', { path: ':interest' });\n      });\n    });\n    ```\n     ```app/routes/member.js\n    import Route from '@ember/routing/route';\n     export default class MemberRoute extends Route {\n      queryParams = {\n        memberQp: { refreshModel: true }\n      }\n    }\n    ```\n     ```app/routes/member/interest.js\n    import Route from '@ember/routing/route';\n     export default class MemberInterestRoute extends Route {\n      queryParams = {\n        interestQp: { refreshModel: true }\n      }\n       model() {\n        return this.paramsFor('member');\n      }\n    }\n    ```\n     If we visit `/turing/maths?memberQp=member&interestQp=interest` the model for\n    the `member.interest` route is a hash with:\n     * `name`: `turing`\n    * `memberQp`: `member`\n     @method paramsFor\n    @param {String} name\n    @return {Object} hash containing the parameters of the route `name`\n    @since 1.4.0\n    @public\n  */\n  paramsFor(name) {\n    let owner = getOwner(this);\n    let route = owner.lookup(`route:${name}`);\n    if (route === undefined) {\n      return {};\n    }\n    let transition = this._router._routerMicrolib.activeTransition;\n    let state = transition ? transition[STATE_SYMBOL] : this._router._routerMicrolib.state;\n    let fullName = route.fullRouteName;\n    let params = {\n      ...state.params[fullName]\n    };\n    let queryParams = getQueryParamsFor(route, state);\n    return Object.entries(queryParams).reduce((params, [key, value]) => {\n      params[key] = value;\n      return params;\n    }, params);\n  }\n\n  /**\n    Serializes the query parameter key\n     @method serializeQueryParamKey\n    @param {String} controllerPropertyName\n    @private\n  */\n  serializeQueryParamKey(controllerPropertyName) {\n    return controllerPropertyName;\n  }\n\n  /**\n    Serializes value of the query parameter based on defaultValueType\n     @method serializeQueryParam\n    @param {Object} value\n    @param {String} urlKey\n    @param {String} defaultValueType\n    @private\n  */\n  serializeQueryParam(value, _urlKey, defaultValueType) {\n    // urlKey isn't used here, but anyone overriding\n    // can use it to provide serialization specific\n    // to a certain query param.\n    return this._router._serializeQueryParam(value, defaultValueType);\n  }\n\n  /**\n    Deserializes value of the query parameter based on defaultValueType\n     @method deserializeQueryParam\n    @param {Object} value\n    @param {String} urlKey\n    @param {String} defaultValueType\n    @private\n  */\n  deserializeQueryParam(value, _urlKey, defaultValueType) {\n    // urlKey isn't used here, but anyone overriding\n    // can use it to provide deserialization specific\n    // to a certain query param.\n    return this._router._deserializeQueryParam(value, defaultValueType);\n  }\n\n  /**\n    @private\n     @property _optionsForQueryParam\n  */\n  // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n  _optionsForQueryParam(qp) {\n    const queryParams = get(this, 'queryParams');\n    return get(queryParams, qp.urlKey) || get(queryParams, qp.prop) || queryParams[qp.urlKey] || queryParams[qp.prop] || {};\n  }\n\n  /**\n    A hook you can use to reset controller values either when the model\n    changes or the route is exiting.\n     ```app/routes/articles.js\n    import Route from '@ember/routing/route';\n     export default class ArticlesRoute extends Route {\n      resetController(controller, isExiting, transition) {\n        if (isExiting && transition.targetName !== 'error') {\n          controller.set('page', 1);\n        }\n      }\n    }\n    ```\n     @method resetController\n    @param {Controller} controller instance\n    @param {Boolean} isExiting\n    @param {Object} transition\n    @since 1.7.0\n    @public\n  */\n  resetController(_controller, _isExiting, _transition) {\n    // 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`.\n    return this;\n  }\n\n  /**\n    @private\n     @method exit\n  */\n  exit(transition) {\n    this.deactivate(transition);\n    sendEvent(this, 'deactivate', [transition]);\n    this.teardownViews();\n  }\n  on(name, target, method) {\n    eventedOn(this, name, target, method);\n    return this;\n  }\n  one(name, target, method) {\n    eventedOne(this, name, target, method);\n    return this;\n  }\n  trigger(name, ...args) {\n    eventedTrigger(this, name, args);\n  }\n  off(name, target, method) {\n    eventedOff(this, name, target, method);\n    return this;\n  }\n  has(name) {\n    return eventedHas(this, name);\n  }\n\n  /**\n    @private\n     @method _internalReset\n    @since 3.6.0\n  */\n  _internalReset(isExiting, transition) {\n    let controller = this.controller;\n    // SAFETY: Since `_qp` is protected we can't infer the type\n    controller['_qpDelegate'] = get(this, '_qp').states.inactive;\n    this.resetController(controller, isExiting, transition);\n  }\n\n  /**\n    @private\n     @method enter\n  */\n  enter(transition) {\n    this[RENDER_STATE] = undefined;\n    this.activate(transition);\n    sendEvent(this, 'activate', [transition]);\n  }\n\n  /**\n    This event is triggered when the router enters the route. It is\n    not executed when the model for the route changes.\n     ```app/routes/application.js\n    import { on } from '@ember/object/evented';\n    import Route from '@ember/routing/route';\n     export default Route.extend({\n      collectAnalytics: on('activate', function(){\n        collectAnalytics();\n      })\n    });\n    ```\n     @event activate\n    @since 1.9.0\n    @public\n  */\n\n  /**\n    This event is triggered when the router completely exits this\n    route. It is not executed when the model for the route changes.\n     ```app/routes/index.js\n    import { on } from '@ember/object/evented';\n    import Route from '@ember/routing/route';\n     export default Route.extend({\n      trackPageLeaveAnalytics: on('deactivate', function(){\n        trackPageLeaveAnalytics();\n      })\n    });\n    ```\n     @event deactivate\n    @since 1.9.0\n    @public\n  */\n\n  /**\n    This hook is executed when the router completely exits this route. It is\n    not executed when the model for the route changes.\n     @method deactivate\n    @param {Transition} transition\n    @since 1.0.0\n    @public\n  */\n  deactivate(_transition) {}\n\n  /**\n    This hook is executed when the router enters the route. It is not executed\n    when the model for the route changes.\n     @method activate\n    @param {Transition} transition\n    @since 1.0.0\n    @public\n  */\n  activate(_transition) {}\n\n  /**\n    Perform a synchronous transition into another route without attempting\n    to resolve promises, update the URL, or abort any currently active\n    asynchronous transitions (i.e. regular transitions caused by\n    `transitionTo` or URL changes).\n     This method is handy for performing intermediate transitions on the\n    way to a final destination route, and is called internally by the\n    default implementations of the `error` and `loading` handlers.\n     @method intermediateTransitionTo\n    @param {String} name the name of the route\n    @param {...Object} models the model(s) to be used while transitioning\n    to the route.\n    @since 1.2.0\n    @public\n   */\n  intermediateTransitionTo(...args) {\n    let [name, ...preparedArgs] = prefixRouteNameArg(this, args);\n    this._router.intermediateTransitionTo(name, ...preparedArgs);\n  }\n\n  /**\n    Refresh the model on this route and any child routes, firing the\n    `beforeModel`, `model`, and `afterModel` hooks in a similar fashion\n    to how routes are entered when transitioning in from other route.\n    The current route params (e.g. `article_id`) will be passed in\n    to the respective model hooks, and if a different model is returned,\n    `setupController` and associated route hooks will re-fire as well.\n     An example usage of this method is re-querying the server for the\n    latest information using the same parameters as when the route\n    was first entered.\n     Note that this will cause `model` hooks to fire even on routes\n    that were provided a model object when the route was initially\n    entered.\n     @method refresh\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @since 1.4.0\n    @public\n   */\n  refresh() {\n    return this._router._routerMicrolib.refresh(this);\n  }\n\n  /**\n    This hook is the entry point for router.js\n     @private\n    @method setup\n  */\n  setup(context, transition) {\n    let controllerName = this.controllerName || this.routeName;\n    let definedController = this.controllerFor(controllerName, true);\n    let controller = definedController ?? this.generateController(controllerName);\n\n    // SAFETY: Since `_qp` is protected we can't infer the type\n    let queryParams = get(this, '_qp');\n\n    // Assign the route's controller so that it can more easily be\n    // referenced in action handlers. Side effects. Side effects everywhere.\n    if (!this.controller) {\n      let propNames = queryParams.propertyNames;\n      addQueryParamsObservers(controller, propNames);\n      this.controller = controller;\n    }\n    let states = queryParams.states;\n    controller._qpDelegate = states.allowOverrides;\n    if (transition) {\n      // Update the model dep values used to calculate cache keys.\n      stashParamNames(this._router, transition[STATE_SYMBOL].routeInfos);\n      let cache = this._bucketCache;\n      let params = transition[PARAMS_SYMBOL];\n      let allParams = queryParams.propertyNames;\n      allParams.forEach(prop => {\n        let aQp = queryParams.map[prop];\n        aQp.values = params;\n        let cacheKey = calculateCacheKey(aQp.route.fullRouteName, aQp.parts, aQp.values);\n        let value = cache.lookup(cacheKey, prop, aQp.undecoratedDefaultValue);\n        set(controller, prop, value);\n      });\n      let qpValues = getQueryParamsFor(this, transition[STATE_SYMBOL]);\n      setProperties(controller, qpValues);\n    }\n    this.setupController(controller, context, transition);\n    if (this._environment.options.shouldRender) {\n      this[RENDER]();\n    }\n\n    // Setup can cause changes to QPs which need to be propogated immediately in\n    // some situations. Eventually, we should work on making these async somehow.\n    flushAsyncObservers(false);\n  }\n\n  /*\n    Called when a query parameter for this route changes, regardless of whether the route\n    is currently part of the active route hierarchy. This will update the query parameter's\n    value in the cache so if this route becomes active, the cache value has been updated.\n  */\n  _qpChanged(prop, value, qp) {\n    if (!qp) {\n      return;\n    }\n\n    // Update model-dep cache\n    let cache = this._bucketCache;\n    let cacheKey = calculateCacheKey(qp.route.fullRouteName, qp.parts, qp.values);\n    cache.stash(cacheKey, prop, value);\n  }\n\n  /**\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  */\n\n  beforeModel(_transition) {}\n\n  /**\n    This hook is called after this route's model has resolved.\n    It follows identical async/promise semantics to `beforeModel`\n    but is provided the route's resolved model in addition to\n    the `transition`, and is therefore suited to performing\n    logic that can only take place after the model has already\n    resolved.\n     ```app/routes/posts.js\n    import Route from '@ember/routing/route';\n    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   */\n\n  afterModel(_resolvedModel, _transition) {}\n\n  /**\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  */\n  redirect(_model, _transition) {}\n\n  /**\n    Called when the context is changed by router.js.\n     @private\n    @method contextDidChange\n  */\n  contextDidChange() {\n    this.currentModel = this.context;\n  }\n\n  /**\n    A hook you can implement to convert the URL into the model for\n    this route.\n     ```app/router.js\n    // ...\n     Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' });\n    });\n     export default Router;\n    ```\n     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` 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  */\n  model(params, transition) {\n    let name, sawParams;\n    // SAFETY: Since `_qp` is protected we can't infer the type\n    let queryParams = get(this, '_qp').map;\n    for (let prop in params) {\n      if (prop === 'queryParams' || queryParams && prop in queryParams) {\n        continue;\n      }\n      let match = prop.match(/^(.*)_id$/);\n      if (match !== null) {\n        name = match[1];\n      }\n      sawParams = true;\n    }\n    if (!name) {\n      if (sawParams) {\n        // SAFETY: This should be equivalent\n        return Object.assign({}, params);\n      } else {\n        if (transition.resolveIndex < 1) {\n          return;\n        }\n        // SAFETY: This should be correct, but TS is unable to infer this.\n        return transition[STATE_SYMBOL].routeInfos[transition.resolveIndex - 1].context;\n      }\n    }\n    return undefined;\n  }\n\n  /**\n    @private\n    @method deserialize\n    @param {Object} params the parameters extracted from the URL\n    @param {Transition} transition\n    @return {any | Promise<any>} the model for this route.\n     Router.js hook.\n   */\n  deserialize(_params, transition) {\n    return this.model(this._paramsFor(this.routeName, _params), transition);\n  }\n\n  /**\n    A hook you can use to setup the controller for the current route.\n     This method is called with the controller for the current route and the\n    model supplied by the `model` hook.\n     By default, the `setupController` hook sets the `model` property of\n    the controller to the specified `model` when it is not `undefined`.\n     If you implement the `setupController` hook in your Route, it will\n    prevent this default behavior. If you want to preserve that behavior\n    when implementing your `setupController` function, make sure to call\n    `super`:\n     ```app/routes/photos.js\n    import Route from '@ember/routing/route';\n    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  */\n  setupController(controller, context, _transition) {\n    if (controller && context !== undefined) {\n      set(controller, 'model', context);\n    }\n  }\n\n  /**\n    Returns the controller of the current route, or a parent (or any ancestor)\n    route in a route hierarchy.\n     The controller instance must already have been created, either through entering the\n    associated route or using `generateController`.\n     ```app/routes/post.js\n    import Route from '@ember/routing/route';\n     export default class PostRoute extends Route {\n      setupController(controller, post) {\n        super.setupController(controller, post);\n         this.controllerFor('posts').set('currentPost', post);\n      }\n    }\n    ```\n     @method controllerFor\n    @param {String} name the name of the route or controller\n    @return {Controller | undefined}\n    @since 1.0.0\n    @public\n  */\n\n  controllerFor(name, _skipAssert = false) {\n    let owner = getOwner(this);\n    let route = owner.lookup(`route:${name}`);\n    if (route && route.controllerName) {\n      name = route.controllerName;\n    }\n    let controller = owner.lookup(`controller:${name}`);\n    return controller;\n  }\n\n  /**\n    Generates a controller for a route.\n     Example\n     ```app/routes/post.js\n    import Route from '@ember/routing/route';\n     export default class Post extends Route {\n      setupController(controller, post) {\n        super.setupController(controller, post);\n         this.generateController('posts');\n      }\n    }\n    ```\n     @method generateController\n    @param {String} name the name of the controller\n    @private\n  */\n  generateController(name) {\n    let owner = getOwner(this);\n    return generateController(owner, name);\n  }\n\n  /**\n    Returns the resolved model of a parent (or any ancestor) route\n    in a route hierarchy.  During a transition, all routes\n    must resolve a model object, and if a route\n    needs access to a parent route's model in order to\n    resolve a model (or just reuse the model from a parent),\n    it can call `this.modelFor(theNameOfParentRoute)` to\n    retrieve it. If the ancestor route's model was a promise,\n    its resolved result is returned.\n     Example\n     ```app/router.js\n    // ...\n     Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' }, function() {\n        this.route('comments');\n      });\n    });\n     export default Router;\n    ```\n     ```app/routes/post/comments.js\n    import Route from '@ember/routing/route';\n     export default class PostCommentsRoute extends Route {\n      model() {\n        let post = this.modelFor('post');\n         return post.comments;\n      }\n    }\n    ```\n     @method modelFor\n    @param {String} name the name of the route\n    @return {Object} the model object\n    @since 1.0.0\n    @public\n  */\n  modelFor(_name) {\n    let name;\n    let owner = getOwner(this);\n    let transition = this._router && this._router._routerMicrolib ? this._router._routerMicrolib.activeTransition : undefined;\n\n    // Only change the route name when there is an active transition.\n    // Otherwise, use the passed in route name.\n    if (owner.routable && transition !== undefined) {\n      name = getEngineRouteName(owner, _name);\n    } else {\n      name = _name;\n    }\n    let route = owner.lookup(`route:${name}`);\n    // If we are mid-transition, we want to try and look up\n    // resolved parent contexts on the current transitionEvent.\n    if (transition !== undefined && transition !== null) {\n      let modelLookupName = route && route.routeName || name;\n      if (Object.prototype.hasOwnProperty.call(transition.resolvedModels, modelLookupName)) {\n        return transition.resolvedModels[modelLookupName];\n      }\n    }\n    return route?.currentModel;\n  }\n  [RENDER_STATE] = undefined;\n\n  /**\n    `this[RENDER]` is used to set up the rendering option for the outlet state.\n    @method this[RENDER]\n    @private\n   */\n  [RENDER]() {\n    this[RENDER_STATE] = buildRenderState(this);\n    once(this._router, '_setOutlets');\n  }\n  willDestroy() {\n    this.teardownViews();\n  }\n\n  /**\n    @private\n     @method teardownViews\n  */\n  teardownViews() {\n    if (this[RENDER_STATE]) {\n      this[RENDER_STATE] = undefined;\n      once(this._router, '_setOutlets');\n    }\n  }\n\n  /**\n    Allows you to produce custom metadata for the route.\n    The return value of this method will be attached to\n    its corresponding RouteInfoWithAttributes object.\n     Example\n     ```app/routes/posts/index.js\n    import Route from '@ember/routing/route';\n     export default class PostsIndexRoute extends Route {\n      buildRouteInfoMetadata() {\n        return { title: 'Posts Page' }\n      }\n    }\n    ```\n     ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { service } from '@ember/service';\n     export default class ApplicationRoute extends Route {\n      @service router\n       constructor() {\n        super(...arguments);\n         this.router.on('routeDidChange', transition => {\n          document.title = transition.to.metadata.title;\n          // would update document's title to \"Posts Page\"\n        });\n      }\n    }\n    ```\n    @method buildRouteInfoMetadata\n    @return any\n    @since 3.10.0\n    @public\n   */\n\n  buildRouteInfoMetadata() {}\n  _paramsFor(routeName, params) {\n    let transition = this._router._routerMicrolib.activeTransition;\n    if (transition !== undefined) {\n      return this.paramsFor(routeName);\n    }\n    return params;\n  }\n\n  /** @deprecated Manually define your own store, such as with `@service store` */\n  get _store() {\n    const owner = getOwner(this);\n    this.routeName;\n    return {\n      find(name, value) {\n        let modelClass = owner.factoryFor(`model:${name}`);\n        if (!modelClass) {\n          return;\n        }\n        modelClass = modelClass.class;\n        return modelClass.find(value);\n      }\n    };\n  }\n\n  /**\n    @private\n    @property _qp\n    */\n  static {\n    decorateMethodV2(this.prototype, \"_store\", [computed]);\n  }\n  get _qp() {\n    let combinedQueryParameterConfiguration = {};\n    let controllerName = this.controllerName || this.routeName;\n    let owner = getOwner(this);\n    let controller = owner.lookup(`controller:${controllerName}`);\n    let queryParameterConfiguraton = get(this, 'queryParams');\n    let hasRouterDefinedQueryParams = Object.keys(queryParameterConfiguraton).length > 0;\n    if (controller) {\n      // this route find its query params and normalize their object shape them\n      // merge in the query params for the route. As a mergedProperty,\n      // Route#queryParams is always at least `{}`\n      let controllerDefinedQueryParameterConfiguration = get(controller, 'queryParams') || [];\n      let normalizedControllerQueryParameterConfiguration = normalizeControllerQueryParams(controllerDefinedQueryParameterConfiguration);\n      combinedQueryParameterConfiguration = mergeEachQueryParams(normalizedControllerQueryParameterConfiguration, queryParameterConfiguraton);\n    } else if (hasRouterDefinedQueryParams) {\n      // the developer has not defined a controller but *has* supplied route query params.\n      // Generate a class for them so we can later insert default values\n      controller = generateController(owner, controllerName);\n      combinedQueryParameterConfiguration = queryParameterConfiguraton;\n    }\n    let qps = [];\n    let map = {};\n    let propertyNames = [];\n    for (let propName in combinedQueryParameterConfiguration) {\n      if (!Object.prototype.hasOwnProperty.call(combinedQueryParameterConfiguration, propName)) {\n        continue;\n      }\n\n      // to support the dubious feature of using unknownProperty\n      // on queryParams configuration\n      if (propName === 'unknownProperty' || propName === '_super') {\n        // possible todo: issue deprecation warning?\n        continue;\n      }\n      let desc = combinedQueryParameterConfiguration[propName];\n      let scope = desc.scope || 'model';\n      let parts = undefined;\n      if (scope === 'controller') {\n        parts = [];\n      }\n      let urlKey = desc.as || this.serializeQueryParamKey(propName);\n      let defaultValue = get(controller, propName);\n      defaultValue = copyDefaultValue(defaultValue);\n      let type = desc.type || typeOf(defaultValue);\n      let defaultValueSerialized = this.serializeQueryParam(defaultValue, urlKey, type);\n      let scopedPropertyName = `${controllerName}:${propName}`;\n      let qp = {\n        undecoratedDefaultValue: get(controller, propName),\n        defaultValue,\n        serializedDefaultValue: defaultValueSerialized,\n        serializedValue: defaultValueSerialized,\n        type,\n        urlKey,\n        prop: propName,\n        scopedPropertyName,\n        controllerName,\n        route: this,\n        parts,\n        // provided later when stashNames is called if 'model' scope\n        values: null,\n        // provided later when setup is called. no idea why.\n        scope\n      };\n      map[propName] = map[urlKey] = map[scopedPropertyName] = qp;\n      qps.push(qp);\n      propertyNames.push(propName);\n    }\n    return {\n      qps,\n      map,\n      propertyNames,\n      states: {\n        /*\n          Called when a query parameter changes in the URL, this route cares\n          about that query parameter, but the route is not currently\n          in the active route hierarchy.\n        */\n        inactive: (prop, value) => {\n          let qp = map[prop];\n          this._qpChanged(prop, value, qp);\n        },\n        /*\n          Called when a query parameter changes in the URL, this route cares\n          about that query parameter, and the route is currently\n          in the active route hierarchy.\n        */\n        active: (prop, value) => {\n          let qp = map[prop];\n          this._qpChanged(prop, value, qp);\n          return this._activeQPChanged(qp, value);\n        },\n        /*\n          Called when a value of a query parameter this route handles changes in a controller\n          and the route is currently in the active route hierarchy.\n        */\n        allowOverrides: (prop, value) => {\n          let qp = map[prop];\n          this._qpChanged(prop, value, qp);\n          return this._updatingQPChanged(qp);\n        }\n      }\n    };\n  }\n\n  // Set in reopen\n  static {\n    decorateMethodV2(this.prototype, \"_qp\", [computed]);\n  }\n  /**\n    Sends an action to the router, which will delegate it to the currently\n    active route hierarchy per the bubbling rules explained under `actions`.\n     Example\n     ```app/router.js\n    // ...\n     Router.map(function() {\n      this.route('index');\n    });\n     export default Router;\n    ```\n     ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n     export default class ApplicationRoute extends Route {\n      @action\n      track(arg) {\n        console.log(arg, 'was clicked');\n      }\n    }\n    ```\n     ```app/routes/index.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n     export default class IndexRoute extends Route {\n      @action\n      trackIfDebug(arg) {\n        if (debug) {\n          this.send('track', arg);\n        }\n      }\n    }\n    ```\n     @method send\n    @param {String} name the name of the action to trigger\n    @param {...*} args\n    @since 1.0.0\n    @public\n  */\n  // Set with reopen to override parent behavior\n}\nfunction getRenderState(route) {\n  return route[RENDER_STATE];\n}\nfunction buildRenderState(route) {\n  let owner = getOwner(route);\n  let name = route.routeName;\n  let controller = owner.lookup(`controller:${route.controllerName || name}`);\n  let model = route.currentModel;\n  let templateFactoryOrComponent = owner.lookup(`template:${route.templateName || name}`);\n\n  // Now we support either a component or a template to be returned by this\n  // resolver call, but if it's a `TemplateFactory`, we need to instantiate\n  // it into a `Template`, since that's what `RenderState` wants. We can't\n  // easily change it, it's intimate API used by @ember/test-helpers and the\n  // like. We could compatibly allow `Template` | `TemplateFactory`, and that's\n  // what it used to do but we _just_ went through deprecations to get that\n  // removed. It's also not ideal since once you mix the two types, they are\n  // not exactly easy to tell apart.\n  //\n  // It may also be tempting to just normalize `Template` into `RouteTemplate`\n  // here, and we could. However, this is not the only entrypoint where this\n  // `RenderState` is made – @ember/test-helpers punches through an impressive\n  // amount of private API to set it directly, and this feature would also be\n  // useful for them. So, even if we had normalized here, we'd still have to\n  // check and do that again during render anyway.\n  let template;\n  if (templateFactoryOrComponent) {\n    if (hasInternalComponentManager(templateFactoryOrComponent)) {\n      template = templateFactoryOrComponent;\n    } else {\n      template = templateFactoryOrComponent(owner);\n    }\n  } else {\n    // default `{{outlet}}`\n    template = route._topLevelViewTemplate(owner);\n  }\n  let render = {\n    owner,\n    name,\n    controller,\n    model,\n    template\n  };\n  return render;\n}\nfunction getFullQueryParams(router, state) {\n  if (state.fullQueryParams) {\n    return state.fullQueryParams;\n  }\n  let haveAllRouteInfosResolved = state.routeInfos.every(routeInfo => routeInfo.route);\n  let fullQueryParamsState = {\n    ...state.queryParams\n  };\n  router._deserializeQueryParams(state.routeInfos, fullQueryParamsState);\n\n  // only cache query params state if all routeinfos have resolved; it's possible\n  // for lazy routes to not have resolved when `getFullQueryParams` is called, so\n  // we wait until all routes have resolved prior to caching query params state\n  if (haveAllRouteInfosResolved) {\n    state.fullQueryParams = fullQueryParamsState;\n  }\n  return fullQueryParamsState;\n}\nfunction getQueryParamsFor(route, state) {\n  state.queryParamsFor = state.queryParamsFor || {};\n  let name = route.fullRouteName;\n  let existing = state.queryParamsFor[name];\n  if (existing) {\n    return existing;\n  }\n  let fullQueryParams = getFullQueryParams(route._router, state);\n  let params = state.queryParamsFor[name] = {};\n\n  // 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\n  let qps = get(route, '_qp').qps;\n  for (let qp of qps) {\n    // Put deserialized qp on params hash.\n    let qpValueWasPassedIn = qp.prop in fullQueryParams;\n    params[qp.prop] = qpValueWasPassedIn ? fullQueryParams[qp.prop] : copyDefaultValue(qp.defaultValue);\n  }\n  return params;\n}\n\n// FIXME: This should probably actually return a `NativeArray` if the passed in value is an Array.\nfunction copyDefaultValue(value) {\n  if (Array.isArray(value)) {\n    // SAFETY: We lost the type data about the array if we don't cast.\n    return A(value.slice());\n  }\n  return value;\n}\n\n/*\n  Merges all query parameters from a controller with those from\n  a route, returning a new object and avoiding any mutations to\n  the existing objects.\n*/\nfunction mergeEachQueryParams(controllerQP, routeQP) {\n  let qps = {};\n  let keysAlreadyMergedOrSkippable = {\n    defaultValue: true,\n    type: true,\n    scope: true,\n    as: true\n  };\n\n  // first loop over all controller qps, merging them with any matching route qps\n  // into a new empty object to avoid mutating.\n  for (let cqpName in controllerQP) {\n    if (!Object.prototype.hasOwnProperty.call(controllerQP, cqpName)) {\n      continue;\n    }\n    qps[cqpName] = {\n      ...controllerQP[cqpName],\n      ...routeQP[cqpName]\n    };\n\n    // allows us to skip this QP when we check route QPs.\n    keysAlreadyMergedOrSkippable[cqpName] = true;\n  }\n\n  // loop over all route qps, skipping those that were merged in the first pass\n  // because they also appear in controller qps\n  for (let rqpName in routeQP) {\n    if (!Object.prototype.hasOwnProperty.call(routeQP, rqpName) || keysAlreadyMergedOrSkippable[rqpName]) {\n      continue;\n    }\n    qps[rqpName] = {\n      ...routeQP[rqpName],\n      ...controllerQP[rqpName]\n    };\n  }\n  return qps;\n}\nfunction addQueryParamsObservers(controller, propNames) {\n  propNames.forEach(prop => {\n    if (descriptorForProperty(controller, prop) === undefined) {\n      let desc = lookupDescriptor(controller, prop);\n      if (desc !== null && (typeof desc.get === 'function' || typeof desc.set === 'function')) {\n        defineProperty(controller, prop, dependentKeyCompat({\n          get: desc.get,\n          set: desc.set\n        }));\n      }\n    }\n    addObserver(controller, `${prop}.[]`, controller, controller._qpChanged, false);\n  });\n}\nfunction getEngineRouteName(engine, routeName) {\n  if (engine.routable) {\n    let prefix = engine.mountPoint;\n    if (routeName === 'application') {\n      return prefix;\n    } else {\n      return `${prefix}.${routeName}`;\n    }\n  }\n  return routeName;\n}\nconst defaultSerialize = Route.prototype.serialize;\nfunction hasDefaultSerialize(route) {\n  return route.serialize === defaultSerialize;\n}\n\n// Set these here so they can be overridden with extend\nRoute.reopen({\n  mergedProperties: ['queryParams'],\n  queryParams: {},\n  templateName: null,\n  controllerName: null,\n  send(...args) {\n    if (this._router && this._router._routerMicrolib || !isTesting()) {\n      this._router.send(...args);\n    } else {\n      let name = args.shift();\n      let action = this.actions[name];\n      if (action) {\n        return action.apply(this, args);\n      }\n    }\n  },\n  /**\n    The controller associated with this route.\n     Example\n     ```app/routes/form.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n     export default class FormRoute extends Route {\n      @action\n      willTransition(transition) {\n        if (this.controller.get('userHasEnteredData') &&\n            !confirm('Are you sure you want to abandon progress?')) {\n          transition.abort();\n        } else {\n          // Bubble the `willTransition` action so that\n          // parent routes can decide whether or not to abort.\n          return true;\n        }\n      }\n    }\n    ```\n     @property controller\n    @type Controller\n    @since 1.6.0\n    @public\n  */\n\n  actions: {\n    /**\n    This action is called when one or more query params have changed. Bubbles.\n     @method queryParamsDidChange\n    @param changed {Object} Keys are names of query params that have changed.\n    @param totalPresent {Object} Keys are names of query params that are currently set.\n    @param removed {Object} Keys are names of query params that have been removed.\n    @returns {boolean}\n    @private\n    */\n    // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n    queryParamsDidChange(changed, _totalPresent, removed) {\n      // SAFETY: Since `_qp` is protected we can't infer the type\n      let qpMap = get(this, '_qp').map;\n      let totalChanged = Object.keys(changed).concat(Object.keys(removed));\n      for (let change of totalChanged) {\n        let qp = qpMap[change];\n        if (qp) {\n          let options = this._optionsForQueryParam(qp);\n          if (get(options, 'refreshModel') && this._router.currentState) {\n            // `changed` is computed from router state query params, where default values\n            // may have been pruned during finalization. A later transition can reintroduce\n            // the same serialized value via sticky QP hydration or URL parsing, making the\n            // QP appear changed even though its finalized value is unchanged. Only refresh\n            // the model when the serialized value differs from the last finalized value.\n            if (change in changed) {\n              let newSerializedValue = changed[change];\n              if (newSerializedValue === qp.serializedValue) {\n                continue;\n              }\n            }\n            this.refresh();\n            break;\n          }\n        }\n      }\n      return true;\n    },\n    finalizeQueryParamChange(params,\n    // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n    finalParams, transition) {\n      if (this.fullRouteName !== 'application') {\n        return true;\n      }\n\n      // Transition object is absent for intermediate transitions.\n      if (!transition) {\n        return;\n      }\n      let routeInfos = transition[STATE_SYMBOL].routeInfos;\n      let router = this._router;\n      let qpMeta = router._queryParamsFor(routeInfos);\n      let changes = router._qpUpdates;\n      let qpUpdated = false;\n      let replaceUrl;\n      stashParamNames(router, routeInfos);\n      for (let qp of qpMeta.qps) {\n        let route = qp.route;\n        let controller = route.controller;\n        let presentKey = qp.urlKey in params && qp.urlKey;\n\n        // Do a reverse lookup to see if the changed query\n        // param URL key corresponds to a QP property on\n        // this controller.\n        let value;\n        let svalue;\n        if (changes.has(qp.urlKey)) {\n          // Value updated in/before setupController\n          value = get(controller, qp.prop);\n          svalue = route.serializeQueryParam(value, qp.urlKey, qp.type);\n        } else {\n          if (presentKey) {\n            svalue = params[presentKey];\n            if (svalue !== undefined) {\n              value = route.deserializeQueryParam(svalue, qp.urlKey, qp.type);\n            }\n          } else {\n            // No QP provided; use default value.\n            svalue = qp.serializedDefaultValue;\n            value = copyDefaultValue(qp.defaultValue);\n          }\n        }\n\n        // SAFETY: Since `_qp` is protected we can't infer the type\n        controller._qpDelegate = get(route, '_qp').states.inactive;\n        let thisQueryParamChanged = svalue !== qp.serializedValue;\n        if (thisQueryParamChanged) {\n          if (transition.queryParamsOnly && replaceUrl !== false) {\n            let options = route._optionsForQueryParam(qp);\n            let replaceConfigValue = get(options, 'replace');\n            if (replaceConfigValue) {\n              replaceUrl = true;\n            } else if (replaceConfigValue === false) {\n              // Explicit pushState wins over any other replaceStates.\n              replaceUrl = false;\n            }\n          }\n          set(controller, qp.prop, value);\n          qpUpdated = true;\n        }\n\n        // Stash current serialized value of controller.\n        qp.serializedValue = svalue;\n        let thisQueryParamHasDefaultValue = qp.serializedDefaultValue === svalue;\n        if (!thisQueryParamHasDefaultValue) {\n          finalParams.push({\n            value: svalue,\n            visible: true,\n            key: presentKey || qp.urlKey\n          });\n        }\n      }\n\n      // Some QPs have been updated, and those changes need to be propogated\n      // immediately. Eventually, we should work on making this async somehow.\n      if (qpUpdated === true) {\n        flushAsyncObservers(false);\n      }\n      if (replaceUrl) {\n        transition.method('replace');\n      }\n      qpMeta.qps.forEach(qp => {\n        // SAFETY: Since `_qp` is protected we can't infer the type\n        let routeQpMeta = get(qp.route, '_qp');\n        let finalizedController = qp.route.controller;\n        finalizedController['_qpDelegate'] = get(routeQpMeta, 'states.active');\n      });\n      router._qpUpdates.clear();\n      return;\n    }\n  }\n});\n\nexport { Route as default, defaultSerialize, getFullQueryParams, getRenderState, hasDefaultSerialize };\n","import { getOwner } from '../-internals/owner/index.js';\nimport { c as consumeTag } from '../../shared-chunks/cache-CofLhaS4.js';\nimport { t as tagFor } from '../../shared-chunks/meta-BJtIZDir.js';\nimport '../../shared-chunks/reference-CccCE8mJ.js';\nimport '../../shared-chunks/observers-B1wiwQeH.js';\nimport '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { readOnly } from '../object/lib/computed/computed_macros.js';\nimport '../object/core.js';\nimport '../array/index.js';\nimport Service from '../service/index.js';\nimport './router.js';\nimport { resemblesURL, extractRouteArgs, shallowEqual } from './lib/utils.js';\nimport { a as addListener, s as sendEvent, r as removeListener, h as hasListeners } from '../../shared-chunks/events-3Q5Qvo6Q.js';\nimport { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../shared-chunks/runtime-CYyqkz5q-BOdRhmsS.js';\n\n/**\n * @module @ember/routing/router-service\n */\nconst ROUTER = Symbol('ROUTER');\nfunction cleanURL(url, rootURL) {\n  if (rootURL === '/') {\n    return url;\n  }\n  return url.substring(rootURL.length);\n}\n/**\n   The Router service is the public API that provides access to the router.\n\n   The immediate benefit of the Router service is that you can inject it into components,\n   giving them a friendly way to initiate transitions and ask questions about the current\n   global router state.\n\n   In this example, the Router service is injected into a component to initiate a transition\n   to a dedicated route:\n\n   ```gjs {data-filename=\"app/components/example.gjs\"}\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 */\nclass RouterService extends Service {\n  [ROUTER];\n\n  /**\n    Subscribes to a named event with given function.\n     @method on\n    @param {String} name The name of the event\n    @param {Object} [target] The \"this\" binding for the callback\n    @param {Function|String} method A function or the name of a function to be called on `target`\n    @return this\n  */\n\n  on(name, target, method) {\n    // 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.\n    addListener(this, name, target, method);\n    return this;\n  }\n\n  /**\n    Subscribes a function to a named event and then cancels the subscription\n    after the first time the event is triggered.\n     @method one\n    @param {String} name The name of the event\n    @param {Object} [target] The \"this\" binding for the callback\n    @param {Function|String} method A function or the name of a function to be called on `target`\n    @return this\n  */\n\n  one(name, target, method) {\n    // 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.\n    addListener(this, name, target, method, true);\n    return this;\n  }\n\n  /**\n    Triggers a named event for the object.\n     @method trigger\n    @param {String} name The name of the event\n    @param {Object...} args Optional arguments to pass on\n    @return {boolean} true if listeners were notified, false otherwise\n  */\n  trigger(name, ...args) {\n    return sendEvent(this, name, args);\n  }\n\n  /**\n    Cancels subscription for given name, target, and method.\n     @method off\n    @param {String} name The name of the event\n    @param {Object} target The target of the subscription\n    @param {Function|String} method The function or the name of a function of the subscription\n    @return this\n  */\n\n  off(name, target, method) {\n    // 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.\n    removeListener(this, name, target, method);\n    return this;\n  }\n\n  /**\n    Checks to see if object has any subscriptions for named event.\n     @method has\n    @param {String} name The name of the event\n    @return {Boolean} does the object have a subscription for event\n   */\n  has(name) {\n    return hasListeners(this, name);\n  }\n  get _router() {\n    let router = this[ROUTER];\n    if (router !== undefined) {\n      return router;\n    }\n    let owner = getOwner(this);\n    let _router = owner.lookup('router:main');\n    return this[ROUTER] = _router;\n  }\n  willDestroy() {\n    super.willDestroy();\n    this[ROUTER] = undefined;\n  }\n\n  /**\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      ```gjs {data-filename=\"app/components/example.gjs\"}\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   */\n  transitionTo(...args) {\n    if (resemblesURL(args[0])) {\n      // NOTE: this `args[0] as string` cast is safe and TS correctly infers it\n      // in 3.6+, so it can be removed when TS is upgraded.\n      return this._router._doURLTransition('transitionTo', args[0]);\n    }\n    let {\n      routeName,\n      models,\n      queryParams\n    } = extractRouteArgs(args);\n    let transition = this._router._doTransition(routeName, models, queryParams, true);\n    return transition;\n  }\n\n  /**\n     Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\n     it replaces the entry for the current route.\n     When the user clicks the \"back\" button in the browser, there will be fewer steps.\n     This is most commonly used to manage redirects in a way that does not cause confusing additions\n     to the user's browsing history.\n      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   */\n  replaceWith(...args) {\n    return this.transitionTo(...args).method('replace');\n  }\n\n  /**\n    Generate a URL based on the supplied route name and optionally a model. The\n    URL is returned as a string that can be used for any purpose.\n     In this example, the URL for the `author.books` route for a given author\n    is copied to the clipboard.\n     ```gjs {data-filename=\"app/templates/application.gjs\"}\n    import CopyLink from '../components/copy-link';\n      \n    <template>\n      <CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n    </template>\n    ```\n     ```gjs {data-filename=\"app/components/copy-link.gjs\"}\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     ```gjs {data-filename=\"app/templates/application.gjs\"}\n    import CopyLink from '../components/copy-link';\n     <template>\n      <CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n    </template>\n    ```\n     ```gjs {data-filename=\"app/components/copy-link.gjs\"}\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   */\n  urlFor(routeName, ...args) {\n    this._router.setupRouter();\n    return this._router.generate(routeName, ...args);\n  }\n\n  /**\n     Returns `true` if `routeName/models/queryParams` is the active route, where `models` and `queryParams` are optional.\n     See [model](api/ember/release/classes/Route/methods/model?anchor=model) and\n     [queryParams](/api/ember/3.7/classes/Route/properties/queryParams?anchor=queryParams) for more information about these arguments.\n      In the following example, `isActive` will return `true` if the current route is `/posts`.\n      ```gjs {data-filename=\"app/components/posts.gjs\"}\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      ```gjs {data-filename=\"app/components/posts.gjs\"}\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   */\n  isActive(...args) {\n    let {\n      routeName,\n      models,\n      queryParams\n    } = extractRouteArgs(args);\n    this._router.setupRouter();\n    let routerMicrolib = this._router._routerMicrolib;\n\n    // When using isActive() in a getter, we want to entagle with the auto-tracking system\n    // for example,\n    // in\n    // get isBarActive() {\n    //   return isActive('foo.bar');\n    // }\n    //\n    // you'd expect isBarActive to be dirtied when the route changes.\n    //\n    // https://github.com/emberjs/ember.js/issues/19004\n    consumeTag(tagFor(this._router, 'currentURL'));\n\n    // UNSAFE: casting `routeName as string` here encodes the existing\n    // assumption but may be wrong: `extractRouteArgs` correctly returns it as\n    // `string | undefined`. There may be bugs if `isActiveIntent` does\n    // not correctly account for `undefined` values for `routeName`. Spoilers:\n    // it *does not* account for this being `undefined`.\n    if (!routerMicrolib.isActiveIntent(routeName, models)) {\n      return false;\n    }\n    let hasQueryParams = Object.keys(queryParams).length > 0;\n    if (hasQueryParams) {\n      // UNSAFE: casting `routeName as string` here encodes the existing\n      // assumption but may be wrong: `extractRouteArgs` correctly returns it\n      // as `string | undefined`. There may be bugs if `_prepareQueryParams`\n      // does not correctly account for `undefined` values for `routeName`.\n      //  Spoilers: under the hood this currently uses router.js APIs which\n      // *do not* account for this being `undefined`.\n      let targetRouteName = routeName;\n      queryParams = Object.assign({}, queryParams);\n      this._router._prepareQueryParams(targetRouteName, models, queryParams, true /* fromRouterService */);\n      let currentQueryParams = Object.assign({}, routerMicrolib.state.queryParams);\n      this._router._prepareQueryParams(targetRouteName, models, currentQueryParams, true /* fromRouterService */);\n      return shallowEqual(queryParams, currentQueryParams);\n    }\n    return true;\n  }\n\n  /**\n     Takes a string URL and returns a `RouteInfo` for the leafmost route represented\n     by the URL. Returns `null` if the URL is not recognized. This method expects to\n     receive the actual URL as seen by the browser including the app's `rootURL`.\n      See [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n      In the following example `recognize` is used to verify if a path belongs to our\n     application before transitioning to it.\n      ```js\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    */\n  recognize(url) {\n    this._router.setupRouter();\n    let internalURL = cleanURL(url, this.rootURL);\n    return this._router._routerMicrolib.recognize(internalURL);\n  }\n\n  /**\n    Takes a string URL and returns a promise that resolves to a\n    `RouteInfoWithAttributes` for the leafmost route represented by the URL.\n    The promise rejects if the URL is not recognized or an unhandled exception\n    is encountered. This method expects to receive the actual URL as seen by\n    the browser including the app's `rootURL`.\n       @method recognizeAndLoad\n      @param {String} url\n      @return {RouteInfo}\n      @public\n   */\n  recognizeAndLoad(url) {\n    this._router.setupRouter();\n    let internalURL = cleanURL(url, this.rootURL);\n    return this._router._routerMicrolib.recognizeAndLoad(internalURL);\n  }\n\n  /**\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\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\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\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\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   */\n  refresh(pivotRouteName) {\n    if (!pivotRouteName) {\n      return this._router._routerMicrolib.refresh();\n    }\n    let owner = getOwner(this);\n    let pivotRoute = owner.lookup(`route:${pivotRouteName}`);\n    return this._router._routerMicrolib.refresh(pivotRoute);\n  }\n\n  /**\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  static {\n    decorateFieldV2(this.prototype, \"currentRouteName\", [readOnly('_router.currentRouteName')]);\n  }\n  #currentRouteName = (initializeDeferredDecorator(this, \"currentRouteName\"), void 0);\n  static {\n    decorateFieldV2(this.prototype, \"currentURL\", [readOnly('_router.currentURL')]);\n  }\n  #currentURL = (initializeDeferredDecorator(this, \"currentURL\"), void 0);\n  /**\n   Current URL for the application.\n   This property represents the URL path for this route.\n  For the following router:\n     ```app/router.js\n    Router.map(function() {\n      this.route('about');\n      this.route('blog', function () {\n        this.route('post', { path: ':post_id' });\n      });\n    });\n    ```\n     It will return:\n     * `/` when you visit `/`\n    * `/about` when you visit `/about`\n    * `/blog` when you visit `/blog`\n    * `/blog/some-post-id` when you visit `/blog/some-post-id`\n     @property currentURL\n    @type String\n    @public\n  */\n  static {\n    decorateFieldV2(this.prototype, \"location\", [readOnly('_router.location')]);\n  }\n  #location = (initializeDeferredDecorator(this, \"location\"), void 0);\n  /**\n    The `location` property returns what implementation of the `location` API\n    your application is using, which determines what type of URL is being used.\n     See [Location](/ember/release/classes/Location) for more information.\n     To force a particular `location` API implementation to be used in your\n    application you can set a location type on your `config/environment`.\n    For example, to set the `history` type:\n     ```config/environment.js\n    'use strict';\n     module.exports = function(environment) {\n      let ENV = {\n        modulePrefix: 'router-service',\n        environment,\n        rootURL: '/',\n        locationType: 'history',\n        ...\n      }\n    }\n    ```\n     The following location types are available by default:\n    `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  */\n  static {\n    decorateFieldV2(this.prototype, \"rootURL\", [readOnly('_router.rootURL')]);\n  }\n  #rootURL = (initializeDeferredDecorator(this, \"rootURL\"), void 0);\n  /**\n    The `rootURL` property represents the URL of the root of\n    the application, '/' by default.\n    This prefix is assumed on all routes defined on this app.\n     If you change the `rootURL` in your environment configuration\n    like so:\n     ```config/environment.js\n    'use strict';\n     module.exports = function(environment) {\n      let ENV = {\n        modulePrefix: 'router-service',\n        environment,\n        rootURL: '/my-root',\n      …\n      }\n    ]\n    ```\n     This property will return `/my-root`.\n     @property rootURL\n    @default '/'\n    @public\n  */\n  static {\n    decorateFieldV2(this.prototype, \"currentRoute\", [readOnly('_router.currentRoute')]);\n  }\n  #currentRoute = (initializeDeferredDecorator(this, \"currentRoute\"), void 0);\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    ```gjs {data-filename=\"app/components/header.gjs\"}\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  */\n}\n\nexport { ROUTER, RouterService as default };\n","import { privatize } from '../-internals/container/index.js';\nimport { c as computed } from '../../shared-chunks/computed-ZvOk7SJQ.js';\nimport { g as get } from '../../shared-chunks/property_get-DuDs6rLg.js';\nimport { s as set } from '../../shared-chunks/property_set-CVmdjPdh.js';\nimport { getOwner } from '../owner/index.js';\nimport DSLImpl from './lib/dsl.js';\nimport RouterState from './lib/router_state.js';\nimport { resemblesURL, extractRouteArgs, getActiveTargetName, calculateCacheKey } from './lib/utils.js';\nimport EmberObject from '../object/index.js';\nimport { E as Evented, e as eventedOn, a as eventedOne, b as eventedTrigger, c as eventedOff, d as eventedHas } from '../../shared-chunks/evented-DYsL5t87.js';\nimport { A } from '../array/index.js';\nimport typeOf from '../utils/lib/type-of.js';\nimport { run, once, scheduleOnce, cancel } from '../runloop/index.js';\nimport { getRenderState, getFullQueryParams, hasDefaultSerialize, defaultSerialize } from './route.js';\nimport Router from '../../router_js/index.js';\nimport { S as STATE_SYMBOL, l as logAbort } from '../../shared-chunks/unrecognized-url-error-xC654tCo.js';\nimport '../../shared-chunks/rsvp-aLN_pQtn.js';\nimport '../engine/instance.js';\nimport { s as sendEvent } from '../../shared-chunks/events-3Q5Qvo6Q.js';\nimport { meta } from '../-internals/meta/lib/meta.js';\n\n/**\n@module @ember/routing/router\n*/\n\nfunction defaultDidTransition(infos) {\n  updatePaths(this);\n  this._cancelSlowTransitionTimer();\n  this.notifyPropertyChange('url');\n  this.set('currentState', this.targetState);\n}\nfunction defaultWillTransition(oldInfos, newInfos) {\n}\nfunction K() {\n  return this;\n}\nconst {\n  slice\n} = Array.prototype;\n\n/**\n  The `EmberRouter` class manages the application state and URLs. Refer to\n  the [routing guide](https://guides.emberjs.com/release/routing/) for documentation.\n\n  @class EmberRouter\n  @extends EmberObject\n  @uses Evented\n  @public\n*/\nclass EmberRouter extends EmberObject {\n  static {\n    // The deprecated Evented mixin is no longer applied, but instances still\n    // provide its methods, so `Evented.detect` must keep returning true.\n    meta(this.prototype).addMixin(Evented);\n  }\n\n  /**\n   Represents the URL of the root of the application, often '/'. This prefix is\n    assumed on all routes defined on this router.\n     @property rootURL\n    @default '/'\n    @public\n  */\n  // Set with reopen to allow overriding via extend\n\n  /**\n   The `location` property determines the type of URL's that your\n    application will use.\n     The following location types are currently available:\n     * `history` - use the browser's history API to make the URLs look just like any standard URL\n    * `hash` - use `#` to separate the server part of the URL from the Ember part: `/blog/#/posts/new`\n    * `none` - do not store the Ember URL in the actual browser URL (mainly used for testing)\n    * `auto` - use the best option based on browser capabilities: `history` if possible, then `hash` if possible, otherwise `none`\n     This value is defaulted to `history` by the `locationType` setting of `/config/environment.js`\n     @property location\n    @default 'hash'\n    @see {Location}\n    @public\n  */\n  // Set with reopen to allow overriding via extend\n\n  _routerMicrolib;\n  _didSetupRouter = false;\n  _initialTransitionStarted = false;\n  currentURL = null;\n  currentRouteName = null;\n  currentPath = null;\n  currentRoute = null;\n  _qpCache = Object.create(null);\n\n  // Set of QueryParam['urlKey']\n  _qpUpdates = new Set();\n  _queuedQPChanges = {};\n  _bucketCache;\n  _toplevelView = null;\n  _handledErrors = new Set();\n  _engineInstances = Object.create(null);\n  _engineInfoByRoute = Object.create(null);\n  _routerService;\n  _slowTransitionTimer = null;\n  namespace;\n\n  // Begin Evented\n\n  on(name, target, method) {\n    eventedOn(this, name, target, method);\n    return this;\n  }\n  one(name, target, method) {\n    eventedOne(this, name, target, method);\n    return this;\n  }\n  trigger(name, ...args) {\n    eventedTrigger(this, name, args);\n  }\n  off(name, target, method) {\n    eventedOff(this, name, target, method);\n    return this;\n  }\n  has(name) {\n    return eventedHas(this, name);\n  }\n  // End Evented\n\n  // Set with reopenClass\n  static dslCallbacks;\n\n  /**\n    The `Router.map` function allows you to define mappings from URLs to routes\n    in your application. These mappings are defined within the\n    supplied callback function using `this.route`.\n     The first parameter is the name of the route which is used by default as the\n    path name as well.\n     The second parameter is the optional options hash. Available options are:\n       * `path`: allows you to provide your own path as well as mark dynamic\n        segments.\n      * `resetNamespace`: false by default; when nesting routes, ember will\n        combine the route names to form the fully-qualified route name, which is\n        used with `{{link-to}}` or manually transitioning to routes. Setting\n        `resetNamespace: true` will cause the route not to inherit from its\n        parent route's names. This is handy for preventing extremely long route names.\n        Keep in mind that the actual URL path behavior is still retained.\n     The third parameter is a function, which can be used to nest routes.\n    Nested routes, by default, will have the parent route tree's route name and\n    path prepended to it's own.\n     ```app/router.js\n    Router.map(function(){\n      this.route('post', { path: '/post/:post_id' }, function() {\n        this.route('edit');\n        this.route('comments', { resetNamespace: true }, function() {\n          this.route('new');\n        });\n      });\n    });\n    ```\n     @method map\n    @param callback\n    @public\n  */\n  static map(callback) {\n    if (!this.dslCallbacks) {\n      this.dslCallbacks = [];\n      // FIXME: Can we remove this?\n      this.reopenClass({\n        dslCallbacks: this.dslCallbacks\n      });\n    }\n    this.dslCallbacks.push(callback);\n    return this;\n  }\n  static _routePath(routeInfos) {\n    let path = [];\n\n    // We have to handle coalescing resource names that\n    // are prefixed with their parent's names, e.g.\n    // ['foo', 'foo.bar.baz'] => 'foo.bar.baz', not 'foo.foo.bar.baz'\n\n    function intersectionMatches(a1, a2) {\n      for (let i = 0; i < a1.length; ++i) {\n        if (a1[i] !== a2[i]) {\n          return false;\n        }\n      }\n      return true;\n    }\n    let name, nameParts, oldNameParts;\n    for (let i = 1; i < routeInfos.length; i++) {\n      let routeInfo = routeInfos[i];\n      name = routeInfo.name;\n      nameParts = name.split('.');\n      oldNameParts = slice.call(path);\n      while (oldNameParts.length) {\n        if (intersectionMatches(oldNameParts, nameParts)) {\n          break;\n        }\n        oldNameParts.shift();\n      }\n      path.push(...nameParts.slice(oldNameParts.length));\n    }\n    return path.join('.');\n  }\n\n  // 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.\n  constructor(owner) {\n    super(owner);\n    this._resetQueuedQueryParameterChanges();\n    this.namespace = owner.lookup('application:main');\n    let bucketCache = owner.lookup(privatize`-bucket-cache:main`);\n    this._bucketCache = bucketCache;\n    let routerService = owner.lookup('service:router');\n    this._routerService = routerService;\n  }\n  _initRouterJs() {\n    let location = get(this, 'location');\n    let router = this;\n    const owner = getOwner(this);\n    let seen = Object.create(null);\n    class PrivateRouter extends Router {\n      getRoute(name) {\n        let routeName = name;\n        let routeOwner = owner;\n        let engineInfo = router._engineInfoByRoute[routeName];\n        if (engineInfo) {\n          let engineInstance = router._getEngineInstance(engineInfo);\n          routeOwner = engineInstance;\n          routeName = engineInfo.localFullName;\n        }\n        let fullRouteName = `route:${routeName}`;\n        let route = routeOwner.lookup(fullRouteName);\n        if (seen[name]) {\n          return route;\n        }\n        seen[name] = true;\n        if (!route) {\n          // SAFETY: this is configured in `commonSetupRegistry` in the\n          // `@ember/application/lib` package.\n          let DefaultRoute = routeOwner.factoryFor('route:basic').class;\n          routeOwner.register(fullRouteName, class extends DefaultRoute {});\n          route = routeOwner.lookup(fullRouteName);\n        }\n        route._setRouteName(routeName);\n        if (engineInfo && !hasDefaultSerialize(route)) {\n          throw new Error('Defining a custom serialize method on an Engine route is not supported.');\n        }\n        return route;\n      }\n      getSerializer(name) {\n        let engineInfo = router._engineInfoByRoute[name];\n\n        // If this is not an Engine route, we fall back to the handler for serialization\n        if (!engineInfo) {\n          return;\n        }\n        return engineInfo.serializeMethod || defaultSerialize;\n      }\n      updateURL(path) {\n        once(() => {\n          location.setURL(path);\n          set(router, 'currentURL', path);\n        });\n      }\n\n      // TODO: merge into routeDidChange\n      didTransition(infos) {\n        router.didTransition(infos);\n      }\n\n      // TODO: merge into routeWillChange\n      willTransition(oldInfos, newInfos) {\n        router.willTransition(oldInfos, newInfos);\n      }\n      triggerEvent(routeInfos, ignoreFailure, name, args) {\n        return triggerEvent.bind(router)(routeInfos, ignoreFailure, name, args);\n      }\n      routeWillChange(transition) {\n        sendEvent(router, 'routeWillChange', [transition]);\n        router._routerService.trigger('routeWillChange', transition);\n\n        // in case of intermediate transition we update the current route\n        // to make router.currentRoute.name consistent with router.currentRouteName\n        // see https://github.com/emberjs/ember.js/issues/19449\n        if (transition.isIntermediate) {\n          router.set('currentRoute', transition.to);\n        }\n      }\n      routeDidChange(transition) {\n        router.set('currentRoute', transition.to);\n        once(() => {\n          sendEvent(router, 'routeDidChange', [transition]);\n          router._routerService.trigger('routeDidChange', transition);\n        });\n      }\n      transitionDidError(error, transition) {\n        if (error.wasAborted || transition.isAborted) {\n          // If the error was a transition erorr or the transition aborted\n          // log the abort.\n          return logAbort(transition);\n        } else {\n          // Otherwise trigger the \"error\" event to attempt an intermediate\n          // transition into an error substate\n          transition.trigger(false, 'error', error.error, transition, error.route);\n          if (router._isErrorHandled(error.error)) {\n            // If we handled the error with a substate just roll the state back on\n            // the transition and send the \"routeDidChange\" event for landing on\n            // the error substate and return the error.\n            transition.rollback();\n            this.routeDidChange(transition);\n            return error.error;\n          } else {\n            // If it was not handled, abort the transition completely and return\n            // the error.\n            transition.abort();\n            return error.error;\n          }\n        }\n      }\n      replaceURL(url) {\n        if (location.replaceURL) {\n          let doReplaceURL = () => {\n            location.replaceURL(url);\n            set(router, 'currentURL', url);\n          };\n          once(doReplaceURL);\n        } else {\n          this.updateURL(url);\n        }\n      }\n    }\n    let routerMicrolib = this._routerMicrolib = new PrivateRouter();\n    let dslCallbacks = this.constructor.dslCallbacks || [K];\n    let dsl = this._buildDSL();\n    dsl.route('application', {\n      path: '/',\n      resetNamespace: true,\n      overrideNameAssertion: true\n    }, function () {\n      for (let i = 0; i < dslCallbacks.length; i++) {\n        dslCallbacks[i].call(this);\n      }\n    });\n    routerMicrolib.map(dsl.generate());\n  }\n  _buildDSL() {\n    let enableLoadingSubstates = this._hasModuleBasedResolver();\n    let router = this;\n    const owner = getOwner(this);\n    let options = {\n      enableLoadingSubstates,\n      resolveRouteMap(name) {\n        return owner.factoryFor(`route-map:${name}`);\n      },\n      addRouteForEngine(name, engineInfo) {\n        if (!router._engineInfoByRoute[name]) {\n          router._engineInfoByRoute[name] = engineInfo;\n        }\n      }\n    };\n    return new DSLImpl(null, options);\n  }\n\n  /*\n    Resets all pending query parameter changes.\n    Called after transitioning to a new route\n    based on query parameter changes.\n  */\n  _resetQueuedQueryParameterChanges() {\n    this._queuedQPChanges = {};\n  }\n  _hasModuleBasedResolver() {\n    let owner = getOwner(this);\n    let resolver = get(owner, 'application.__registry__.resolver.moduleBasedResolver');\n    return Boolean(resolver);\n  }\n\n  /**\n    Initializes the current router instance and sets up the change handling\n    event listeners used by the instances `location` implementation.\n     A property named `initialURL` will be used to determine the initial URL.\n    If no value is found `/` will be used.\n     @method startRouting\n    @private\n  */\n  startRouting() {\n    if (this.setupRouter()) {\n      let initialURL = get(this, 'initialURL');\n      if (initialURL === undefined) {\n        initialURL = get(this, 'location').getURL();\n      }\n      let initialTransition = this.handleURL(initialURL);\n      if (initialTransition && initialTransition.error) {\n        throw initialTransition.error;\n      }\n    }\n  }\n  setupRouter() {\n    if (this._didSetupRouter) {\n      return false;\n    }\n    this._didSetupRouter = true;\n    this._setupLocation();\n    let location = get(this, 'location');\n\n    // Allow the Location class to cancel the router setup while it refreshes\n    // the page\n    if (get(location, 'cancelRouterSetup')) {\n      return false;\n    }\n    this._initRouterJs();\n    location.onUpdateURL(url => {\n      this.handleURL(url);\n    });\n    return true;\n  }\n  _setOutlets() {\n    // This is triggered async during Route#willDestroy.\n    // If the router is also being destroyed we do not want to\n    // to create another this._toplevelView (and leak the renderer)\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n    let routeInfos = this._routerMicrolib.currentRouteInfos;\n    if (!routeInfos) {\n      return;\n    }\n    let root = null;\n    let parent = null;\n    for (let routeInfo of routeInfos) {\n      let route = routeInfo.route;\n      let render = getRenderState(route);\n      if (render) {\n        let state = {\n          render,\n          outlets: {\n            main: undefined\n          }\n        };\n        if (parent) {\n          parent.outlets.main = state;\n        } else {\n          root = state;\n        }\n        parent = state;\n      } else {\n        // 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.\n        break;\n      }\n    }\n\n    // when a transitionTo happens after the validation phase\n    // during the initial transition _setOutlets is called\n    // when no routes are active. However, it will get called\n    // again with the correct values during the next turn of\n    // the runloop\n    if (root === null) {\n      return;\n    }\n    if (!this._toplevelView) {\n      let owner = getOwner(this);\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.\n      let OutletView = owner.factoryFor('view:-outlet');\n      let application = owner.lookup('application:main');\n      let environment = owner.lookup('-environment:main');\n      let template = owner.lookup('template:-outlet');\n      this._toplevelView = OutletView.create({\n        environment,\n        template,\n        application\n      });\n      this._toplevelView.setOutletState(root);\n\n      // `Router Service - non application test:  RouterService#transitionTo with basic route`\n      let instance = owner.lookup('-application-instance:main');\n      // cannot actually confirm at a type level *is* a `ViewMixin`. Seems:\n      // not great on multiple fronts!\n      instance.didCreateRootView(this._toplevelView);\n    } else {\n      this._toplevelView.setOutletState(root);\n    }\n  }\n  handleURL(url) {\n    // Until we have an ember-idiomatic way of accessing #hashes, we need to\n    // remove it because router.js doesn't know how to handle it.\n    let _url = url.split(/#(.+)?/)[0];\n    return this._doURLTransition('handleURL', _url);\n  }\n  _doURLTransition(routerJsMethod, url) {\n    this._initialTransitionStarted = true;\n    let transition = this._routerMicrolib[routerJsMethod](url || '/');\n    didBeginTransition(transition, this);\n    return transition;\n  }\n\n  /**\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  */\n  transitionTo(...args) {\n    if (resemblesURL(args[0])) {\n      return this._doURLTransition('transitionTo', args[0]);\n    }\n    let {\n      routeName,\n      models,\n      queryParams\n    } = extractRouteArgs(args);\n    return this._doTransition(routeName, models, queryParams);\n  }\n  intermediateTransitionTo(name, ...args) {\n    this._routerMicrolib.intermediateTransitionTo(name, ...args);\n    updatePaths(this);\n  }\n\n  /**\n    Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\n    it replaces the entry for the current route.\n    When the user clicks the \"back\" button in the browser, there will be fewer steps.\n    This is most commonly used to manage redirects in a way that does not cause confusing additions\n    to the user's browsing history.\n     @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  */\n  replaceWith(...args) {\n    return this.transitionTo(...args).method('replace');\n  }\n  generate(name, ...args) {\n    let url = this._routerMicrolib.generate(name, ...args);\n    return this.location.formatURL(url);\n  }\n\n  /**\n    Determines if the supplied route is currently active.\n     @method isActive\n    @param routeName\n    @return {Boolean}\n    @private\n  */\n  isActive(routeName) {\n    return this._routerMicrolib.isActive(routeName);\n  }\n\n  /**\n    An alternative form of `isActive` that doesn't require\n    manual concatenation of the arguments into a single\n    array.\n     @method isActiveIntent\n    @param routeName\n    @param models\n    @param queryParams\n    @return {Boolean}\n    @private\n    @since 1.7.0\n  */\n  isActiveIntent(routeName, models, queryParams) {\n    return this.currentState.isActiveIntent(routeName, models, queryParams);\n  }\n  send(name, ...args) {\n    /*name, context*/\n    this._routerMicrolib.trigger(name, ...args);\n  }\n\n  /**\n    Does this router instance have the given route.\n     @method hasRoute\n    @return {Boolean}\n    @private\n  */\n  hasRoute(route) {\n    return this._routerMicrolib.hasRoute(route);\n  }\n\n  /**\n    Resets the state of the router by clearing the current route\n    handlers and deactivating them.\n     @private\n    @method reset\n   */\n  reset() {\n    this._didSetupRouter = false;\n    this._initialTransitionStarted = false;\n    if (this._routerMicrolib) {\n      this._routerMicrolib.reset();\n    }\n  }\n  willDestroy() {\n    if (this._toplevelView) {\n      this._toplevelView.destroy();\n      this._toplevelView = null;\n    }\n    super.willDestroy();\n    this.reset();\n    let instances = this._engineInstances;\n    for (let name in instances) {\n      let instanceMap = instances[name];\n      for (let id in instanceMap) {\n        let instance = instanceMap[id];\n        run(instance, 'destroy');\n      }\n    }\n  }\n\n  /*\n    Called when an active route's query parameter has changed.\n    These changes are batched into a runloop run and trigger\n    a single transition.\n  */\n  _activeQPChanged(queryParameterName, newValue) {\n    this._queuedQPChanges[queryParameterName] = newValue;\n    once(this, this._fireQueryParamTransition);\n  }\n\n  // The queryParameterName is QueryParam['urlKey']\n  _updatingQPChanged(queryParameterName) {\n    this._qpUpdates.add(queryParameterName);\n  }\n\n  /*\n    Triggers a transition to a route based on query parameter changes.\n    This is called once per runloop, to batch changes.\n     e.g.\n     if these methods are called in succession:\n    this._activeQPChanged('foo', '10');\n      // results in _queuedQPChanges = { foo: '10' }\n    this._activeQPChanged('bar', false);\n      // results in _queuedQPChanges = { foo: '10', bar: false }\n     _queuedQPChanges will represent both of these changes\n    and the transition using `transitionTo` will be triggered\n    once.\n  */\n  _fireQueryParamTransition() {\n    this.transitionTo({\n      queryParams: this._queuedQPChanges\n    });\n    this._resetQueuedQueryParameterChanges();\n  }\n  _setupLocation() {\n    let location = this.location;\n    let rootURL = this.rootURL;\n    let owner = getOwner(this);\n    if ('string' === typeof location) {\n      let resolvedLocation = owner.lookup(`location:${location}`);\n      location = set(this, 'location', resolvedLocation);\n    }\n    if (location !== null && typeof location === 'object') {\n      if (rootURL) {\n        set(location, 'rootURL', rootURL);\n      }\n\n      // ensure that initState is called AFTER the rootURL is set on\n      // the location instance\n      if (typeof location.initState === 'function') {\n        location.initState();\n      }\n    }\n  }\n\n  /**\n    Serializes the given query params according to their QP meta information.\n     @private\n    @method _serializeQueryParams\n    @param {Arrray<RouteInfo>} routeInfos\n    @param {Object} queryParams\n    @return {Void}\n  */\n  _serializeQueryParams(routeInfos, queryParams) {\n    forEachQueryParam(this, routeInfos, queryParams, (key, value, qp) => {\n      if (qp) {\n        delete queryParams[key];\n        queryParams[qp.urlKey] = qp.route.serializeQueryParam(value, qp.urlKey, qp.type);\n      } else if (value === undefined) {\n        return; // We don't serialize undefined values\n      } else {\n        queryParams[key] = this._serializeQueryParam(value, typeOf(value));\n      }\n    });\n  }\n\n  /**\n    Serializes the value of a query parameter based on a type\n     @private\n    @method _serializeQueryParam\n    @param {Object} value\n    @param {String} type\n  */\n  _serializeQueryParam(value, type) {\n    if (value === null || value === undefined) {\n      return value;\n    } else if (type === 'array') {\n      return JSON.stringify(value);\n    }\n    return `${value}`;\n  }\n\n  /**\n    Deserializes the given query params according to their QP meta information.\n     @private\n    @method _deserializeQueryParams\n    @param {Array<RouteInfo>} routeInfos\n    @param {Object} queryParams\n    @return {Void}\n  */\n  _deserializeQueryParams(routeInfos, queryParams) {\n    forEachQueryParam(this, routeInfos, queryParams, (key, value, qp) => {\n      // If we don't have QP meta info for a given key, then we do nothing\n      // because all values will be treated as strings\n      if (qp) {\n        delete queryParams[key];\n        queryParams[qp.prop] = qp.route.deserializeQueryParam(value, qp.urlKey, qp.type);\n      }\n    });\n  }\n\n  /**\n    Deserializes the value of a query parameter based on a default type\n     @private\n    @method _deserializeQueryParam\n    @param {Object} value\n    @param {String} defaultType\n  */\n  _deserializeQueryParam(value, defaultType) {\n    if (value === null || value === undefined) {\n      return value;\n    } else if (defaultType === 'boolean') {\n      return value === 'true';\n    } else if (defaultType === 'number') {\n      return Number(value).valueOf();\n    } else if (defaultType === 'array') {\n      return A(JSON.parse(value));\n    }\n    return value;\n  }\n\n  /**\n    Removes (prunes) any query params with default values from the given QP\n    object. Default values are determined from the QP meta information per key.\n     @private\n    @method _pruneDefaultQueryParamValues\n    @param {Array<RouteInfo>} routeInfos\n    @param {Object} queryParams\n    @return {Void}\n  */\n  _pruneDefaultQueryParamValues(routeInfos, queryParams) {\n    let qps = this._queryParamsFor(routeInfos);\n    for (let key in queryParams) {\n      let qp = qps.map[key];\n      if (qp && qp.serializedDefaultValue === queryParams[key]) {\n        delete queryParams[key];\n      }\n    }\n  }\n  _doTransition(_targetRouteName, models, _queryParams, _fromRouterService) {\n    let targetRouteName = _targetRouteName || getActiveTargetName(this._routerMicrolib);\n    this._initialTransitionStarted = true;\n    let queryParams = {};\n    this._processActiveTransitionQueryParams(targetRouteName, models, queryParams, _queryParams);\n    Object.assign(queryParams, _queryParams);\n    this._prepareQueryParams(targetRouteName, models, queryParams, Boolean(_fromRouterService));\n    let transition = this._routerMicrolib.transitionTo(targetRouteName, ...models, {\n      queryParams\n    });\n    didBeginTransition(transition, this);\n    return transition;\n  }\n  _processActiveTransitionQueryParams(targetRouteName, models, queryParams,\n  // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n  _queryParams) {\n    // merge in any queryParams from the active transition which could include\n    // queryParams from the url on initial load.\n    if (!this._routerMicrolib.activeTransition) {\n      return;\n    }\n    let unchangedQPs = {};\n    let qpUpdates = this._qpUpdates;\n    let params = getFullQueryParams(this, this._routerMicrolib.activeTransition[STATE_SYMBOL]);\n    for (let key in params) {\n      if (!qpUpdates.has(key)) {\n        unchangedQPs[key] = params[key];\n      }\n    }\n\n    // We need to fully scope queryParams so that we can create one object\n    // that represents both passed-in queryParams and ones that aren't changed\n    // from the active transition.\n    this._fullyScopeQueryParams(targetRouteName, models, _queryParams);\n    this._fullyScopeQueryParams(targetRouteName, models, unchangedQPs);\n    Object.assign(queryParams, unchangedQPs);\n  }\n\n  /**\n    Prepares the query params for a URL or Transition. Restores any undefined QP\n    keys/values, serializes all values, and then prunes any default values.\n     @private\n    @method _prepareQueryParams\n    @param {String} targetRouteName\n    @param {Array<Object>} models\n    @param {Object} queryParams\n    @param {boolean} keepDefaultQueryParamValues\n    @return {Void}\n  */\n  _prepareQueryParams(targetRouteName, models, queryParams, _fromRouterService) {\n    let state = calculatePostTransitionState(this, targetRouteName, models);\n    this._hydrateUnsuppliedQueryParams(state, queryParams, Boolean(_fromRouterService));\n    this._serializeQueryParams(state.routeInfos, queryParams);\n    if (!_fromRouterService) {\n      this._pruneDefaultQueryParamValues(state.routeInfos, queryParams);\n    }\n  }\n\n  /**\n    Returns the meta information for the query params of a given route. This\n    will be overridden to allow support for lazy routes.\n     @private\n    @method _getQPMeta\n    @param {RouteInfo} routeInfo\n    @return {Object}\n  */\n  _getQPMeta(routeInfo) {\n    let route = routeInfo.route;\n    return route && get(route, '_qp');\n  }\n\n  /**\n    Returns a merged query params meta object for a given set of routeInfos.\n    Useful for knowing what query params are available for a given route hierarchy.\n     @private\n    @method _queryParamsFor\n    @param {Array<RouteInfo>} routeInfos\n    @return {Object}\n   */\n  _queryParamsFor(routeInfos) {\n    let routeInfoLength = routeInfos.length;\n    let leafRouteName = routeInfos[routeInfoLength - 1].name;\n    let cached = this._qpCache[leafRouteName];\n    if (cached !== undefined) {\n      return cached;\n    }\n    let shouldCache = true;\n    let map = {};\n    let qps = [];\n    let qpMeta;\n    for (let routeInfo of routeInfos) {\n      qpMeta = this._getQPMeta(routeInfo);\n      if (!qpMeta) {\n        shouldCache = false;\n        continue;\n      }\n\n      // Loop over each QP to make sure we don't have any collisions by urlKey\n      for (let qp of qpMeta.qps) {\n        qps.push(qp);\n      }\n      Object.assign(map, qpMeta.map);\n    }\n    let finalQPMeta = {\n      qps,\n      map\n    };\n    if (shouldCache) {\n      this._qpCache[leafRouteName] = finalQPMeta;\n    }\n    return finalQPMeta;\n  }\n\n  /**\n    Maps all query param keys to their fully scoped property name of the form\n    `controllerName:propName`.\n     @private\n    @method _fullyScopeQueryParams\n    @param {String} leafRouteName\n    @param {Array<Object>} contexts\n    @param {Object} queryParams\n    @return {Void}\n  */\n  _fullyScopeQueryParams(leafRouteName, contexts, queryParams) {\n    let state = calculatePostTransitionState(this, leafRouteName, contexts);\n    let routeInfos = state.routeInfos;\n    let qpMeta;\n    for (let routeInfo of routeInfos) {\n      qpMeta = this._getQPMeta(routeInfo);\n      if (!qpMeta) {\n        continue;\n      }\n      for (let qp of qpMeta.qps) {\n        let presentProp = qp.prop in queryParams && qp.prop || qp.scopedPropertyName in queryParams && qp.scopedPropertyName || qp.urlKey in queryParams && qp.urlKey;\n        if (presentProp) {\n          if (presentProp !== qp.scopedPropertyName) {\n            queryParams[qp.scopedPropertyName] = queryParams[presentProp];\n            delete queryParams[presentProp];\n          }\n        }\n      }\n    }\n  }\n\n  /**\n    Hydrates (adds/restores) any query params that have pre-existing values into\n    the given queryParams hash. This is what allows query params to be \"sticky\"\n    and restore their last known values for their scope.\n     @private\n    @method _hydrateUnsuppliedQueryParams\n    @param {TransitionState} state\n    @param {Object} queryParams\n    @return {Void}\n  */\n  _hydrateUnsuppliedQueryParams(state, queryParams, _fromRouterService) {\n    let routeInfos = state.routeInfos;\n    let appCache = this._bucketCache;\n    let qpMeta;\n    let qp;\n    let presentProp;\n    for (let routeInfo of routeInfos) {\n      qpMeta = this._getQPMeta(routeInfo);\n      if (!qpMeta) {\n        continue;\n      }\n\n      // Needs to stay for index loop to avoid throwIfClosureRequired\n      for (let j = 0, qpLen = qpMeta.qps.length; j < qpLen; ++j) {\n        qp = qpMeta.qps[j];\n        presentProp = qp.prop in queryParams && qp.prop || qp.scopedPropertyName in queryParams && qp.scopedPropertyName || qp.urlKey in queryParams && qp.urlKey;\n        if (presentProp) {\n          if (presentProp !== qp.scopedPropertyName) {\n            queryParams[qp.scopedPropertyName] = queryParams[presentProp];\n            delete queryParams[presentProp];\n          }\n        } else {\n          let cacheKey = calculateCacheKey(qp.route.fullRouteName, qp.parts, state.params);\n          queryParams[qp.scopedPropertyName] = appCache.lookup(cacheKey, qp.prop, qp.defaultValue);\n        }\n      }\n    }\n  }\n  _scheduleLoadingEvent(transition, originRoute) {\n    this._cancelSlowTransitionTimer();\n    this._slowTransitionTimer = scheduleOnce('routerTransitions', this, this._handleSlowTransition, transition, originRoute);\n  }\n  currentState = null;\n  targetState = null;\n  _handleSlowTransition(transition, originRoute) {\n    if (!this._routerMicrolib.activeTransition) {\n      // Don't fire an event if we've since moved on from\n      // the transition that put us in a loading state.\n      return;\n    }\n    let targetState = new RouterState(this, this._routerMicrolib, this._routerMicrolib.activeTransition[STATE_SYMBOL]);\n    this.set('targetState', targetState);\n    transition.trigger(true, 'loading', transition, originRoute);\n  }\n  _cancelSlowTransitionTimer() {\n    if (this._slowTransitionTimer) {\n      cancel(this._slowTransitionTimer);\n    }\n    this._slowTransitionTimer = null;\n  }\n\n  // These three helper functions are used to ensure errors aren't\n  // re-raised if they're handled in a route's error action.\n  _markErrorAsHandled(error) {\n    this._handledErrors.add(error);\n  }\n  _isErrorHandled(error) {\n    return this._handledErrors.has(error);\n  }\n  _clearHandledError(error) {\n    this._handledErrors.delete(error);\n  }\n  _getEngineInstance({\n    name,\n    instanceId,\n    mountPoint\n  }) {\n    let engineInstances = this._engineInstances;\n    let namedInstances = engineInstances[name];\n    if (!namedInstances) {\n      namedInstances = Object.create(null);\n      engineInstances[name] = namedInstances;\n    }\n    let engineInstance = namedInstances[instanceId];\n    if (!engineInstance) {\n      let owner = getOwner(this);\n      engineInstance = owner.buildChildEngineInstance(name, {\n        routable: true,\n        mountPoint\n      });\n      engineInstance.boot();\n      namedInstances[instanceId] = engineInstance;\n    }\n    return engineInstance;\n  }\n\n  /**\n    Handles updating the paths and notifying any listeners of the URL\n    change.\n     Triggers the router level `didTransition` hook.\n     For example, to notify google analytics when the route changes,\n    you could use this hook.  (Note: requires also including GA scripts, etc.)\n     ```javascript\n    import config from './config/environment';\n    import EmberRouter from '@ember/routing/router';\n    import { service } from '@ember/service';\n     export default class Router extends EmberRouter {\n      location = config.locationType;\n       @service()\n      router;\n       didTransition() {\n        super.didTransition(...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  */\n  // Set with reopen to allow overriding via extend\n\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  */\n  // Set with reopen to allow overriding via extend\n\n  /**\n   Represents the current URL.\n     @property url\n    @type {String}\n    @private\n  */\n  // Set with reopen to allow overriding via extend\n}\n\n/*\n  Helper function for iterating over routes in a set of routeInfos that are\n  at or above the given origin route. Example: if `originRoute` === 'foo.bar'\n  and the routeInfos given were for 'foo.bar.baz', then the given callback\n  will be invoked with the routes for 'foo.bar', 'foo', and 'application'\n  individually.\n\n  If the callback returns anything other than `true`, then iteration will stop.\n\n  @private\n  @param {Route} originRoute\n  @param {Array<RouteInfo>} routeInfos\n  @param {Function} callback\n  @return {Void}\n */\nfunction forEachRouteAbove(routeInfos, callback) {\n  for (let i = routeInfos.length - 1; i >= 0; --i) {\n    let routeInfo = routeInfos[i];\n    let route = routeInfo.route;\n\n    // routeInfo.handler being `undefined` generally means either:\n    //\n    // 1. an error occurred during creation of the route in question\n    // 2. the route is across an async boundary (e.g. within an engine)\n    //\n    // In both of these cases, we cannot invoke the callback on that specific\n    // route, because it just doesn't exist...\n    if (route === undefined) {\n      continue;\n    }\n    if (callback(route, routeInfo) !== true) {\n      return;\n    }\n  }\n}\n\n// These get invoked when an action bubbles above ApplicationRoute\n// and are not meant to be overridable.\nlet defaultActionHandlers = {\n  willResolveModel(_routeInfos, transition, originRoute) {\n    this._scheduleLoadingEvent(transition, originRoute);\n  },\n  // Attempt to find an appropriate error route or substate to enter.\n  error(routeInfos, error, transition) {\n    let router = this;\n    let routeInfoWithError = routeInfos[routeInfos.length - 1];\n    forEachRouteAbove(routeInfos, (route, routeInfo) => {\n      // We don't check the leaf most routeInfo since that would\n      // technically be below where we're at in the route hierarchy.\n      if (routeInfo !== routeInfoWithError) {\n        // Check for the existence of an 'error' route.\n        let errorRouteName = findRouteStateName(route, 'error');\n        if (errorRouteName) {\n          router._markErrorAsHandled(error);\n          router.intermediateTransitionTo(errorRouteName, error);\n          return false;\n        }\n      }\n\n      // Check for an 'error' substate route\n      let errorSubstateName = findRouteSubstateName(route, 'error');\n      if (errorSubstateName) {\n        router._markErrorAsHandled(error);\n        router.intermediateTransitionTo(errorSubstateName, error);\n        return false;\n      }\n      return true;\n    });\n    logError(error, `Error while processing route: ${transition.targetName}`);\n  },\n  // Attempt to find an appropriate loading route or substate to enter.\n  loading(routeInfos, transition) {\n    let router = this;\n    let routeInfoWithSlowLoading = routeInfos[routeInfos.length - 1];\n    forEachRouteAbove(routeInfos, (route, routeInfo) => {\n      // We don't check the leaf most routeInfos since that would\n      // technically be below where we're at in the route hierarchy.\n      if (routeInfo !== routeInfoWithSlowLoading) {\n        // Check for the existence of a 'loading' route.\n        let loadingRouteName = findRouteStateName(route, 'loading');\n        if (loadingRouteName) {\n          router.intermediateTransitionTo(loadingRouteName);\n          return false;\n        }\n      }\n\n      // Check for loading substate\n      let loadingSubstateName = findRouteSubstateName(route, 'loading');\n      if (loadingSubstateName) {\n        router.intermediateTransitionTo(loadingSubstateName);\n        return false;\n      }\n\n      // Don't bubble above pivot route.\n      return transition.pivotHandler !== route;\n    });\n  }\n};\nfunction logError(_error, initialMessage) {\n  let errorArgs = [];\n  let error;\n  if (_error && typeof _error === 'object' && typeof _error.errorThrown === 'object') {\n    error = _error.errorThrown;\n  } else {\n    error = _error;\n  }\n  if (initialMessage) {\n    errorArgs.push(initialMessage);\n  }\n  if (error) {\n    if (error.message) {\n      errorArgs.push(error.message);\n    }\n    if (error.stack) {\n      errorArgs.push(error.stack);\n    }\n    if (typeof error === 'string') {\n      errorArgs.push(error);\n    }\n  }\n  console.error(...errorArgs); //eslint-disable-line no-console\n}\n\n/**\n  Finds the name of the substate route if it exists for the given route. A\n  substate route is of the form `route_state`, such as `foo_loading`.\n\n  @private\n  @param {Route} route\n  @param {String} state\n  @return {String}\n*/\nfunction findRouteSubstateName(route, state) {\n  let owner = getOwner(route);\n  let {\n    routeName,\n    fullRouteName,\n    _router: router\n  } = route;\n  let substateName = `${routeName}_${state}`;\n  let substateNameFull = `${fullRouteName}_${state}`;\n  return routeHasBeenDefined(owner, router, substateName, substateNameFull) ? substateNameFull : '';\n}\n\n/**\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*/\nfunction findRouteStateName(route, state) {\n  let owner = getOwner(route);\n  let {\n    routeName,\n    fullRouteName,\n    _router: router\n  } = route;\n  let stateName = routeName === 'application' ? state : `${routeName}.${state}`;\n  let stateNameFull = fullRouteName === 'application' ? state : `${fullRouteName}.${state}`;\n  return routeHasBeenDefined(owner, router, stateName, stateNameFull) ? stateNameFull : '';\n}\n\n/**\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*/\nfunction routeHasBeenDefined(owner, router, localName, fullName) {\n  let routerHasRoute = router.hasRoute(fullName);\n  let ownerHasRoute = owner.factoryFor(`template:${localName}`) || owner.factoryFor(`route:${localName}`);\n  return routerHasRoute && ownerHasRoute;\n}\nfunction triggerEvent(routeInfos, ignoreFailure, name, args) {\n  if (!routeInfos) {\n    if (ignoreFailure) {\n      return;\n    }\n    // TODO: update?\n    throw 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.`);\n  }\n  let eventWasHandled = false;\n  let routeInfo, handler, actionHandler;\n  for (let i = routeInfos.length - 1; i >= 0; i--) {\n    routeInfo = routeInfos[i];\n    handler = routeInfo.route;\n    actionHandler = handler && handler.actions && handler.actions[name];\n    if (actionHandler) {\n      if (actionHandler.apply(handler, args) === true) {\n        eventWasHandled = true;\n      } else {\n        // Should only hit here if a non-bubbling error action is triggered on a route.\n        if (name === 'error') {\n          handler._router._markErrorAsHandled(args[0]);\n        }\n        return;\n      }\n    }\n  }\n  let defaultHandler = defaultActionHandlers[name];\n  if (defaultHandler) {\n    defaultHandler.call(this, routeInfos, ...args);\n    return;\n  }\n  if (!eventWasHandled && !ignoreFailure) {\n    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.`);\n  }\n}\nfunction calculatePostTransitionState(emberRouter, leafRouteName, contexts) {\n  let state = emberRouter._routerMicrolib.applyIntent(leafRouteName, contexts);\n  let {\n    routeInfos,\n    params\n  } = state;\n  for (let routeInfo of routeInfos) {\n    // If the routeInfo is not resolved, we serialize the context into params\n    if (!routeInfo.isResolved) {\n      params[routeInfo.name] = routeInfo.serialize(routeInfo.context);\n    } else {\n      params[routeInfo.name] = routeInfo.params;\n    }\n  }\n  return state;\n}\nfunction updatePaths(router) {\n  let infos = router._routerMicrolib.currentRouteInfos;\n  if (infos.length === 0) {\n    return;\n  }\n  let path = EmberRouter._routePath(infos);\n  let info = infos[infos.length - 1];\n  let currentRouteName = info.name;\n  let location = router.location;\n  let currentURL = location.getURL();\n  set(router, 'currentPath', path);\n  set(router, 'currentRouteName', currentRouteName);\n  set(router, 'currentURL', currentURL);\n}\nfunction didBeginTransition(transition, router) {\n  let routerState = new RouterState(router, router._routerMicrolib, transition[STATE_SYMBOL]);\n  if (!router.currentState) {\n    router.set('currentState', routerState);\n  }\n  router.set('targetState', routerState);\n  transition.promise = transition.catch(error => {\n    if (router._isErrorHandled(error)) {\n      router._clearHandledError(error);\n    } else {\n      throw error;\n    }\n  }, 'Transition Error');\n}\nfunction forEachQueryParam(router, routeInfos, queryParams, callback) {\n  let qpCache = router._queryParamsFor(routeInfos);\n  for (let key in queryParams) {\n    if (!Object.prototype.hasOwnProperty.call(queryParams, key)) {\n      continue;\n    }\n    let value = queryParams[key];\n    let qp = qpCache.map[key];\n    callback(key, value, qp);\n  }\n}\nEmberRouter.reopen({\n  didTransition: defaultDidTransition,\n  willTransition: defaultWillTransition,\n  rootURL: '/',\n  location: 'hash',\n  // FIXME: Does this need to be overrideable via extend?\n  url: computed(function () {\n    let location = get(this, 'location');\n    if (typeof location === 'string') {\n      return undefined;\n    }\n    return location.getURL();\n  })\n});\n\nexport { EmberRouter as default, triggerEvent };\n","import { onErrorTarget } from '../-internals/error-handling/index.js';\nimport { f as flushAsyncObservers } from '../../shared-chunks/observers-B1wiwQeH.js';\nimport Backburner from '../../backburner.js/index.js';\n\n// Partial types from https://medium.com/codex/currying-in-typescript-ca5226c85b85\n\nlet currentRunLoop = null;\nfunction _getCurrentRunLoop() {\n  return currentRunLoop;\n}\nfunction onBegin(current) {\n  currentRunLoop = current;\n}\nfunction onEnd(_current, next) {\n  currentRunLoop = next;\n  flushAsyncObservers(schedule);\n}\nfunction flush(queueName, next) {\n  if (queueName === 'render' || queueName === _rsvpErrorQueue) {\n    flushAsyncObservers(schedule);\n  }\n  next();\n}\nconst _rsvpErrorQueue = `${Math.random()}${Date.now()}`.replace('.', '');\n\n/**\n  Array of named queues. This array determines the order in which queues\n  are flushed at the end of the RunLoop. You can define your own queues by\n  simply adding the queue name to this array. Normally you should not need\n  to inspect or modify this property.\n\n  @property queues\n  @type Array\n  @default ['actions', 'destroy']\n  @private\n*/\nconst _queues = ['actions',\n// 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',\n// 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\n/**\n * @internal\n * @private\n */\nconst _backburner = new Backburner(_queues, {\n  defaultQueue: 'actions',\n  onBegin,\n  onEnd,\n  onErrorTarget,\n  onErrorMethod: 'onerror',\n  flush\n});\n\n/**\n @module @ember/runloop\n*/\n// ..........................................................\n// run - this is ideally the only public API the dev sees\n//\n\n/**\n  Runs the passed target and method inside of a RunLoop, ensuring any\n  deferred actions including bindings and views updates are flushed at the\n  end.\n\n  Normally you should not need to invoke this method yourself. However if\n  you are implementing raw event handlers when interfacing with other\n  libraries or plugins, you should probably wrap all of your code inside this\n  call.\n\n  ```javascript\n  import { run } from '@ember/runloop';\n\n  run(function() {\n    // code to be executed within a RunLoop\n  });\n  ```\n  @method run\n  @for @ember/runloop\n  @static\n  @param {Object} [target] target of method to call\n  @param {Function|String} method Method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Any additional arguments you wish to pass to the method.\n  @return {Object} return value from invoking the passed function.\n  @public\n*/\n\nfunction run(...args) {\n  // @ts-expect-error TS doesn't like our spread args\n  return _backburner.run(...args);\n}\n\n/**\n  If no run-loop is present, it creates a new one. If a run loop is\n  present it will queue itself to run on the existing run-loops action\n  queue.\n\n  Please note: This is not for normal usage, and should be used sparingly.\n\n  If invoked when not within a run loop:\n\n  ```javascript\n  import { join } from '@ember/runloop';\n\n  join(function() {\n    // creates a new run-loop\n  });\n  ```\n\n  Alternatively, if called within an existing run loop:\n\n  ```javascript\n  import { run, join } from '@ember/runloop';\n\n  run(function() {\n    // creates a new run-loop\n\n    join(function() {\n      // joins with the existing run-loop, and queues for invocation on\n      // the existing run-loops action queue.\n    });\n  });\n  ```\n\n  @method join\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to call\n  @param {Function|String} method Method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Any additional arguments you wish to pass to the method.\n  @return {Object} Return value from invoking the passed function. Please note,\n  when called within an existing loop, no return value is possible.\n  @public\n*/\n\nfunction join(methodOrTarget, methodOrArg, ...additionalArgs) {\n  return _backburner.join(methodOrTarget, methodOrArg, ...additionalArgs);\n}\n\n/**\n  Allows you to specify which context to call the specified function in while\n  adding the execution of that function to the Ember run loop. This ability\n  makes this method a great way to asynchronously integrate third-party libraries\n  into your Ember application.\n\n  `bind` takes two main arguments, the desired context and the function to\n  invoke in that context. Any additional arguments will be supplied as arguments\n  to the function that is passed in.\n\n  Let's use the creation of a TinyMCE component as an example. Currently,\n  TinyMCE provides a setup configuration option we can use to do some processing\n  after the TinyMCE instance is initialized but before it is actually rendered.\n  We can use that setup option to do some additional setup for our component.\n  The component itself could look something like the following:\n\n  ```app/components/rich-text-editor.js\n  import Component from '@ember/component';\n  import { on } from '@ember/object/evented';\n  import { bind } from '@ember/runloop';\n\n  export default Component.extend({\n    initializeTinyMCE: on('didInsertElement', function() {\n      tinymce.init({\n        selector: '#' + this.$().prop('id'),\n        setup: bind(this, this.setupEditor)\n      });\n    }),\n\n    didInsertElement() {\n      tinymce.init({\n        selector: '#' + this.$().prop('id'),\n        setup: bind(this, this.setupEditor)\n      });\n    }\n\n    setupEditor(editor) {\n      this.set('editor', editor);\n\n      editor.on('change', function() {\n        console.log('content changed!');\n      });\n    }\n  });\n  ```\n\n  In this example, we use `bind` to bind the setupEditor method to the\n  context of the RichTextEditor component and to have the invocation of that\n  method be safely handled and executed by the Ember run loop.\n\n  @method bind\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to call\n  @param {Function|String} method Method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Any additional arguments you wish to pass to the method.\n  @return {Function} returns a new function that will always have a particular context\n  @since 1.4.0\n  @public\n*/\n\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\n\nfunction bind(...curried) {\n  return (...args) => join(...curried.concat(args));\n}\n\n/**\n  Begins a new RunLoop. Any deferred actions invoked after the begin will\n  be buffered until you invoke a matching call to `end()`. This is\n  a lower-level way to use a RunLoop instead of using `run()`.\n\n  ```javascript\n  import { begin, end } from '@ember/runloop';\n\n  begin();\n  // code to be executed within a RunLoop\n  end();\n  ```\n\n  @method begin\n  @static\n  @for @ember/runloop\n  @return {void}\n  @public\n*/\nfunction begin() {\n  _backburner.begin();\n}\n\n/**\n  Ends a RunLoop. This must be called sometime after you call\n  `begin()` to flush any deferred actions. This is a lower-level way\n  to use a RunLoop instead of using `run()`.\n\n  ```javascript\n  import { begin, end } from '@ember/runloop';\n\n  begin();\n  // code to be executed within a RunLoop\n  end();\n  ```\n\n  @method end\n  @static\n  @for @ember/runloop\n  @return {void}\n  @public\n*/\nfunction end() {\n  _backburner.end();\n}\n\n/**\n  Adds the passed target/method and any optional arguments to the named\n  queue to be executed at the end of the RunLoop. If you have not already\n  started a RunLoop when calling this method one will be started for you\n  automatically.\n\n  At the end of a RunLoop, any methods scheduled in this way will be invoked.\n  Methods will be invoked in an order matching the named queues defined in\n  the `queues` property.\n\n  ```javascript\n  import { schedule } from '@ember/runloop';\n\n  schedule('afterRender', this, function() {\n    // this will be executed in the 'afterRender' queue\n    console.log('scheduled on afterRender queue');\n  });\n\n  schedule('actions', this, function() {\n    // this will be executed in the 'actions' queue\n    console.log('scheduled on actions queue');\n  });\n\n  // Note the functions will be run in order based on the run queues order.\n  // Output would be:\n  //   scheduled on actions queue\n  //   scheduled on afterRender queue\n  ```\n\n  @method schedule\n  @static\n  @for @ember/runloop\n  @param {String} queue The name of the queue to schedule against. Default queues is 'actions'\n  @param {Object} [target] target object to use as the context when invoking a method.\n  @param {String|Function} method The method to invoke. If you pass a string it\n    will be resolved on the target object at the time the scheduled item is\n    invoked allowing you to change the target function.\n  @param {Object} [arguments*] Optional arguments to be passed to the queued method.\n  @return {*} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nfunction schedule(...args) {\n  // @ts-expect-error TS doesn't like the rest args here\n  return _backburner.schedule(...args);\n}\n\n// Used by global test teardown\nfunction _hasScheduledTimers() {\n  return _backburner.hasTimers();\n}\n\n// Used by global test teardown\nfunction _cancelTimers() {\n  _backburner.cancelTimers();\n}\n\n/**\n  Invokes the passed target/method and optional arguments after a specified\n  period of time. The last parameter of this method must always be a number\n  of milliseconds.\n\n  You should use this method whenever you need to run some action after a\n  period of time instead of using `setTimeout()`. This method will ensure that\n  items that expire during the same script execution cycle all execute\n  together, which is often more efficient than using a real setTimeout.\n\n  ```javascript\n  import { later } from '@ember/runloop';\n\n  later(myContext, function() {\n    // code here will execute within a RunLoop in about 500ms with this == myContext\n  }, 500);\n  ```\n\n  @method later\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to invoke\n  @param {Function|String} method The method to invoke.\n    If you pass a string it will be resolved on the\n    target at the time the method is invoked.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @param {Number} wait Number of milliseconds to wait.\n  @return {*} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nfunction later(...args) {\n  return _backburner.later(...args);\n}\n\n/**\n Schedule a function to run one time during the current RunLoop. This is equivalent\n  to calling `scheduleOnce` with the \"actions\" queue.\n\n  @method once\n  @static\n  @for @ember/runloop\n  @param {Object} [target] The target of the method to invoke.\n  @param {Function|String} method The method to invoke.\n    If you pass a string it will be resolved on the\n    target at the time the method is invoked.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @return {Object} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nfunction once(...args) {\n  // @ts-expect-error TS doesn't like the rest args here\n  return _backburner.scheduleOnce('actions', ...args);\n}\n\n/**\n  Schedules a function to run one time in a given queue of the current RunLoop.\n  Calling this method with the same queue/target/method combination will have\n  no effect (past the initial call).\n\n  Note that although you can pass optional arguments these will not be\n  considered when looking for duplicates. New arguments will replace previous\n  calls.\n\n  ```javascript\n  import { run, scheduleOnce } from '@ember/runloop';\n\n  function sayHi() {\n    console.log('hi');\n  }\n\n  run(function() {\n    scheduleOnce('afterRender', myContext, sayHi);\n    scheduleOnce('afterRender', myContext, sayHi);\n    // sayHi will only be executed once, in the afterRender queue of the RunLoop\n  });\n  ```\n\n  Also note that for `scheduleOnce` to prevent additional calls, you need to\n  pass the same function instance. The following case works as expected:\n\n  ```javascript\n  function log() {\n    console.log('Logging only once');\n  }\n\n  function scheduleIt() {\n    scheduleOnce('actions', myContext, log);\n  }\n\n  scheduleIt();\n  scheduleIt();\n  ```\n\n  But this other case will schedule the function multiple times:\n\n  ```javascript\n  import { scheduleOnce } from '@ember/runloop';\n\n  function scheduleIt() {\n    scheduleOnce('actions', myContext, function() {\n      console.log('Closure');\n    });\n  }\n\n  scheduleIt();\n  scheduleIt();\n\n  // \"Closure\" will print twice, even though we're using `scheduleOnce`,\n  // because the function we pass to it won't match the\n  // previously scheduled operation.\n  ```\n\n  Available queues, and their order, can be found at `queues`\n\n  @method scheduleOnce\n  @static\n  @for @ember/runloop\n  @param {String} [queue] The name of the queue to schedule against. Default queues is 'actions'.\n  @param {Object} [target] The target of the method to invoke.\n  @param {Function|String} method The method to invoke.\n    If you pass a string it will be resolved on the\n    target at the time the method is invoked.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @return {Object} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nfunction scheduleOnce(...args) {\n  // @ts-expect-error TS doesn't like the rest args here\n  return _backburner.scheduleOnce(...args);\n}\n\n/**\n  Schedules an item to run from within a separate run loop, after\n  control has been returned to the system. This is equivalent to calling\n  `later` with a wait time of 1ms.\n\n  ```javascript\n  import { next } from '@ember/runloop';\n\n  next(myContext, function() {\n    // code to be executed in the next run loop,\n    // which will be scheduled after the current one\n  });\n  ```\n\n  Multiple operations scheduled with `next` will coalesce\n  into the same later run loop, along with any other operations\n  scheduled by `later` that expire right around the same\n  time that `next` operations will fire.\n\n  Note that there are often alternatives to using `next`.\n  For instance, if you'd like to schedule an operation to happen\n  after all DOM element operations have completed within the current\n  run loop, you can make use of the `afterRender` run loop queue (added\n  by the `ember-views` package, along with the preceding `render` queue\n  where all the DOM element operations happen).\n\n  Example:\n\n  ```app/components/my-component.js\n  import Component from '@ember/component';\n  import { scheduleOnce } from '@ember/runloop';\n\n  export default class MyComponent extends Component {\n    didInsertElement() {\n      super.didInsertElement();\n      scheduleOnce('afterRender', this, 'processChildElements');\n    },\n\n    processChildElements() {\n      // ... do something with component's child component\n      // elements after they've finished rendering, which\n      // can't be done within this component's\n      // `didInsertElement` hook because that gets run\n      // before the child elements have been added to the DOM.\n    }\n  }\n  ```\n\n  One benefit of the above approach compared to using `next` is\n  that you will be able to perform DOM/CSS operations before unprocessed\n  elements are rendered to the screen, which may prevent flickering or\n  other artifacts caused by delaying processing until after rendering.\n\n  The other major benefit to the above approach is that `next`\n  introduces an element of non-determinism, which can make things much\n  harder to test, due to its reliance on `setTimeout`; it's much harder\n  to guarantee the order of scheduled operations when they are scheduled\n  outside of the current run loop, i.e. with `next`.\n\n  @method next\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to invoke\n  @param {Function|String} method The method to invoke.\n    If you pass a string it will be resolved on the\n    target at the time the method is invoked.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @return {Object} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nfunction next(...args) {\n  return _backburner.later(...args, 1);\n}\n\n/**\n  Cancels a scheduled item. Must be a value returned by `later()`,\n  `once()`, `scheduleOnce()`, `next()`, `debounce()`, or\n  `throttle()`.\n\n  ```javascript\n  import {\n    next,\n    cancel,\n    later,\n    scheduleOnce,\n    once,\n    throttle,\n    debounce\n  } from '@ember/runloop';\n\n  let runNext = next(myContext, function() {\n    // will not be executed\n  });\n\n  cancel(runNext);\n\n  let runLater = later(myContext, function() {\n    // will not be executed\n  }, 500);\n\n  cancel(runLater);\n\n  let runScheduleOnce = scheduleOnce('afterRender', myContext, function() {\n    // will not be executed\n  });\n\n  cancel(runScheduleOnce);\n\n  let runOnce = once(myContext, function() {\n    // will not be executed\n  });\n\n  cancel(runOnce);\n\n  let throttle = throttle(myContext, function() {\n    // will not be executed\n  }, 1, false);\n\n  cancel(throttle);\n\n  let debounce = debounce(myContext, function() {\n    // will not be executed\n  }, 1);\n\n  cancel(debounce);\n\n  let debounceImmediate = debounce(myContext, function() {\n    // will be executed since we passed in true (immediate)\n  }, 100, true);\n\n  // the 100ms delay until this method can be called again will be canceled\n  cancel(debounceImmediate);\n  ```\n\n  @method cancel\n  @static\n  @for @ember/runloop\n  @param {Object} [timer] Timer object to cancel\n  @return {Boolean} true if canceled or false/undefined if it wasn't found\n  @public\n*/\nfunction cancel(timer) {\n  return _backburner.cancel(timer);\n}\n\n/**\n  Delay calling the target method until the debounce period has elapsed\n  with no additional debounce calls. If `debounce` is called again before\n  the specified time has elapsed, the timer is reset and the entire period\n  must pass again before the target method is called.\n\n  This method should be used when an event may be called multiple times\n  but the action should only be called once when the event is done firing.\n  A common example is for scroll events where you only want updates to\n  happen once scrolling has ceased.\n\n  ```javascript\n  import { debounce } from '@ember/runloop';\n\n  function whoRan() {\n    console.log(this.name + ' ran.');\n  }\n\n  let myContext = { name: 'debounce' };\n\n  debounce(myContext, whoRan, 150);\n\n  // less than 150ms passes\n  debounce(myContext, whoRan, 150);\n\n  // 150ms passes\n  // whoRan is invoked with context myContext\n  // console logs 'debounce ran.' one time.\n  ```\n\n  Immediate allows you to run the function immediately, but debounce\n  other calls for this function until the wait time has elapsed. If\n  `debounce` is called again before the specified time has elapsed,\n  the timer is reset and the entire period must pass again before\n  the method can be called again.\n\n  ```javascript\n  import { debounce } from '@ember/runloop';\n\n  function whoRan() {\n    console.log(this.name + ' ran.');\n  }\n\n  let myContext = { name: 'debounce' };\n\n  debounce(myContext, whoRan, 150, true);\n\n  // console logs 'debounce ran.' one time immediately.\n  // 100ms passes\n  debounce(myContext, whoRan, 150, true);\n\n  // 150ms passes and nothing else is logged to the console and\n  // the debouncee is no longer being watched\n  debounce(myContext, whoRan, 150, true);\n\n  // console logs 'debounce ran.' one time immediately.\n  // 150ms passes and nothing else is logged to the console and\n  // the debouncee is no longer being watched\n  ```\n\n  @method debounce\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to invoke\n  @param {Function|String} method The method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @param {Number} wait Number of milliseconds to wait.\n  @param {Boolean} immediate Trigger the function on the leading instead\n    of the trailing edge of the wait interval. Defaults to false.\n  @return {Array} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nfunction debounce(...args) {\n  // @ts-expect-error TS doesn't like the rest args here\n  return _backburner.debounce(...args);\n}\n\n/**\n  Ensure that the target method is never called more frequently than\n  the specified spacing period. The target method is called immediately.\n\n  ```javascript\n  import { throttle } from '@ember/runloop';\n\n  function whoRan() {\n    console.log(this.name + ' ran.');\n  }\n\n  let myContext = { name: 'throttle' };\n\n  throttle(myContext, whoRan, 150);\n  // whoRan is invoked with context myContext\n  // console logs 'throttle ran.'\n\n  // 50ms passes\n  throttle(myContext, whoRan, 150);\n\n  // 50ms passes\n  throttle(myContext, whoRan, 150);\n\n  // 150ms passes\n  throttle(myContext, whoRan, 150);\n  // whoRan is invoked with context myContext\n  // console logs 'throttle ran.'\n  ```\n\n  @method throttle\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to invoke\n  @param {Function|String} method The method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @param {Number} spacing Number of milliseconds to space out requests.\n  @param {Boolean} immediate Trigger the function on the leading instead\n    of the trailing edge of the wait interval. Defaults to true.\n  @return {Array} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nfunction throttle(...args) {\n  // @ts-expect-error TS doesn't like the rest args here\n  return _backburner.throttle(...args);\n}\n\nexport { _backburner, _cancelTimers, _getCurrentRunLoop, _hasScheduledTimers, _queues, _rsvpErrorQueue, begin, bind, cancel, debounce, end, join, later, next, once, run, schedule, scheduleOnce, throttle };\n","import { FrameworkObject } from '../object/-internals.js';\nimport { deprecateUntil, DEPRECATIONS } from '../-internals/deprecations/index.js';\nimport { i as inject$1 } from '../../shared-chunks/injected_property-4vB_6fM8.js';\n\n/**\n @module @ember/service\n @public\n */\n\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  @deprecated Please import `service` instead.\n*/\n\nfunction inject(...args) {\n  deprecateUntil('Importing `inject` from `@ember/service` is deprecated. Please import `service` instead.', DEPRECATIONS.DEPRECATE_IMPORT_INJECT);\n  return inject$1('service', ...args);\n}\n\n/**\n  Creates a property that lazily looks up a service in the container. There are\n  no restrictions as to what objects a service can be injected into.\n\n  Example:\n\n  ```app/routes/application.js\n  import Route from '@ember/routing/route';\n  import { 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 class ApplicationRoute extends Route {\n    @service('auth') authManager;\n\n    model() {\n      return this.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*/\n\nfunction service(...args) {\n  return inject$1('service', ...args);\n}\n\n/**\n  @class Service\n  @extends EmberObject\n  @since 1.10.0\n  @public\n*/\nclass Service extends FrameworkObject {\n  static isServiceFactory = true;\n}\n\n/**\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 */\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-object-type\n\nexport { Service as default, inject, service };\n","// (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.\n\nlet __emberTemplateCompiler;\nconst compileTemplate = (...args) => {\n  if (!__emberTemplateCompiler) {\n    throw new Error('Attempted to call `compileTemplate` without first loading the runtime template compiler.');\n  }\n  return __emberTemplateCompiler.compile(...args);\n};\nlet precompileTemplate;\nfunction __registerTemplateCompiler(c) {\n  __emberTemplateCompiler = c;\n}\n\nexport { __emberTemplateCompiler, __registerTemplateCompiler, compileTemplate, precompileTemplate };\n","let registerWaiter;\nlet unregisterWaiter;\nlet _impl;\nlet testingNotAvailableMessage = () => {\n  throw new Error('Attempted to use test utilities, but `ember-testing` was not included');\n};\nregisterWaiter = testingNotAvailableMessage;\nunregisterWaiter = testingNotAvailableMessage;\nfunction registerTestImplementation(impl) {\n  let {\n    Test\n  } = impl;\n  registerWaiter = Test.registerWaiter;\n  unregisterWaiter = Test.unregisterWaiter;\n  _impl = impl;\n}\n\nexport { _impl, registerTestImplementation, registerWaiter, unregisterWaiter };\n","import typeOf from './type-of.js';\n\nconst TYPE_ORDER = {\n  undefined: 0,\n  null: 1,\n  boolean: 2,\n  number: 3,\n  string: 4,\n  array: 5,\n  object: 6,\n  instance: 7,\n  function: 8,\n  class: 9,\n  date: 10,\n  regexp: 11,\n  filelist: 12,\n  error: 13\n};\n//\n// the spaceship operator\n//\n//                      `. ___\n//                     __,' __`.                _..----....____\n//         __...--.'``;.   ,.   ;``--..__     .'    ,-._    _.-'\n//   _..-''-------'   `'   `'   `'     O ``-''._   (,;') _,'\n// ,'________________                          \\`-._`-','\n//  `._              ```````````------...___   '-.._'-:\n//     ```--.._      ,.                     ````--...__\\-.\n//             `.--. `-` \"INFINITY IS LESS     ____    |  |`\n//               `. `.   THAN BEYOND\"        ,'`````.  ;  ;`\n//                 `._`.        __________   `.      \\'__/`\n//                    `-:._____/______/___/____`.     \\  `\n//                                |       `._    `.    \\\n//                                `._________`-.   `.   `.___\n//                                              SSt  `------'`\nfunction spaceship(a, b) {\n  // 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`.)\n  return Math.sign(a - b);\n}\n\n/**\n @module @ember/utils\n*/\n\n/**\n Compares two javascript values and returns:\n\n  - -1 if the first is smaller than the second,\n  - 0 if both are equal,\n  - 1 if the first is greater than the second.\n\n  ```javascript\n  import { compare } from '@ember/utils';\n\n  compare('hello', 'hello');  // 0\n  compare('abc', 'dfg');      // -1\n  compare(2, 1);              // 1\n  ```\n\n If the types of the two objects are different precedence occurs in the\n following order, with types earlier in the list considered `<` types\n later in the list:\n\n  - undefined\n  - null\n  - boolean\n  - number\n  - string\n  - array\n  - object\n  - instance\n  - function\n  - class\n  - date\n\n  ```javascript\n  import { compare } from '@ember/utils';\n\n  compare('hello', 50);       // 1\n  compare(50, 'hello');       // -1\n  ```\n\n @method compare\n @for @ember/utils\n @static\n @param {Object} v First value to compare\n @param {Object} w Second value to compare\n @return {Number} -1 if v < w, 0 if v = w and 1 if v > w.\n @public\n*/\nfunction compare(v, w) {\n  if (v === w) {\n    return 0;\n  }\n  let type1 = typeOf(v);\n  let type2 = typeOf(w);\n  if (type1 === 'instance' && isComparable(v) && v.constructor.compare) {\n    return v.constructor.compare(v, w);\n  }\n  if (type2 === 'instance' && isComparable(w) && w.constructor.compare) {\n    // SAFETY: Multiplying by a negative just changes the sign\n    return w.constructor.compare(w, v) * -1;\n  }\n  let res = spaceship(TYPE_ORDER[type1], TYPE_ORDER[type2]);\n  if (res !== 0) {\n    return res;\n  }\n\n  // types are equal - so we have to check values now\n  switch (type1) {\n    case 'boolean':\n      return spaceship(Number(v), Number(w));\n    case 'number':\n      return spaceship(v, w);\n    case 'string':\n      return spaceship(v.localeCompare(w), 0);\n    case 'array':\n      {\n        let vLen = v.length;\n        let wLen = w.length;\n        let len = Math.min(vLen, wLen);\n        for (let i = 0; i < len; i++) {\n          let r = compare(v[i], w[i]);\n          if (r !== 0) {\n            return r;\n          }\n        }\n\n        // all elements are equal now\n        // shorter array should be ordered first\n        return spaceship(vLen, wLen);\n      }\n    case 'instance':\n      if (isComparable(v) && v.compare) {\n        return v.compare(v, w);\n      }\n      return 0;\n    case 'date':\n      return spaceship(v.getTime(), w.getTime());\n    default:\n      return 0;\n  }\n}\nfunction isComparable(value) {\n  if (typeof value !== 'object' || value === null) {\n    return false;\n  }\n  let maybeComparable = value;\n  return typeof maybeComparable.constructor?.compare === 'function' || typeof maybeComparable.compare === 'function';\n}\n\nexport { compare as default };\n","/**\n @module @ember/utils\n*/\n/**\n  Compares two objects, returning true if they are equal.\n\n  ```javascript\n  import { isEqual } from '@ember/utils';\n\n  isEqual('hello', 'hello');                   // true\n  isEqual(1, 2);                               // false\n  ```\n\n  `isEqual` is a more specific comparison than a triple equal comparison.\n  It will call the `isEqual` instance method on the objects being\n  compared, allowing finer control over when objects should be considered\n  equal to each other.\n\n  ```javascript\n  import { isEqual } from '@ember/utils';\n  import EmberObject from '@ember/object';\n\n  class Person extends EmberObject {\n    isEqual(other: Person) { 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*/\nfunction isEqual(a, b) {\n  if (a && typeof a.isEqual === 'function') {\n    return a.isEqual(b);\n  }\n  if (a instanceof Date && b instanceof Date) {\n    return a.getTime() === b.getTime();\n  }\n  return a === b;\n}\n\nexport { isEqual as default };\n","import isEmpty from './is_empty.js';\n\n/**\n @module @ember/utils\n*/\n/**\n  A value is blank if it is empty or a whitespace string.\n\n  ```javascript\n  import { isBlank } from '@ember/utils';\n\n  isBlank(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*/\nfunction isBlank(obj) {\n  return isEmpty(obj) || typeof obj === 'string' && /\\S/.test(obj) === false;\n}\n\nexport { isBlank as default };\n","import { h as hasUnknownProperty, g as get } from '../../../shared-chunks/property_get-DuDs6rLg.js';\n\n/**\n @module @ember/utils\n*/\n/**\n  Verifies that a value is `null` or `undefined`, an empty string, or an empty\n  array.\n\n  Constrains the rules on `isNone` by returning true for empty strings and\n  empty arrays.\n\n  If the value is an object with a `size` property of type number, it is used\n  to check emptiness.\n\n  ```javascript\n  isEmpty(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*/\nfunction isEmpty(obj) {\n  if (obj === null || obj === undefined) {\n    return true;\n  }\n  if (!hasUnknownProperty(obj) && typeof obj.size === 'number') {\n    return !obj.size;\n  }\n  if (typeof obj === 'object') {\n    let size = get(obj, 'size');\n    if (typeof size === 'number') {\n      return !size;\n    }\n    let length = get(obj, 'length');\n    if (typeof length === 'number') {\n      return !length;\n    }\n  }\n  if (typeof obj.length === 'number' && typeof obj !== 'function') {\n    return !obj.length;\n  }\n  return false;\n}\n\nexport { isEmpty as default };\n","/**\n @module @ember/utils\n*/\n/**\n  Returns true if the passed value is null or undefined. This avoids errors\n  from JSLint complaining about use of ==, which can be technically\n  confusing.\n\n  ```javascript\n  isNone(null);          // true\n  isNone(undefined);     // true\n  isNone('');            // false\n  isNone([]);            // false\n  isNone(function() {}); // false\n  ```\n\n  @method isNone\n  @static\n  @for @ember/utils\n  @param {Object} obj Value to test\n  @return {Boolean}\n  @public\n*/\nfunction isNone(obj) {\n  return obj === null || obj === undefined;\n}\n\nexport { isNone as default };\n","import isBlank from './is_blank.js';\n\n/**\n @module @ember/utils\n*/\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*/\nfunction isPresent(obj) {\n  return !isBlank(obj);\n}\n\nexport { isPresent as default };\n","import CoreObject from '../../object/core.js';\n\n// ........................................\n// TYPING & ARRAY MESSAGING\n//\nconst TYPE_MAP = {\n  '[object Boolean]': 'boolean',\n  '[object Number]': 'number',\n  '[object String]': 'string',\n  '[object Function]': 'function',\n  '[object AsyncFunction]': 'function',\n  '[object Array]': 'array',\n  '[object Date]': 'date',\n  '[object RegExp]': 'regexp',\n  '[object Object]': 'object',\n  '[object FileList]': 'filelist'\n};\nconst {\n  toString\n} = Object.prototype;\n\n/**\n @module @ember/utils\n*/\n/**\n  Returns a consistent type for the passed object.\n\n  Use this instead of the built-in `typeof` to get the type of an item.\n  It will return the same result across all browsers and includes a bit\n  more detail. Here is what will be returned:\n\n      | Return Value  | Meaning                                              |\n      |---------------|------------------------------------------------------|\n      | 'string'      | String primitive or String object.                   |\n      | 'number'      | Number primitive or Number object.                   |\n      | 'boolean'     | Boolean primitive or Boolean object.                 |\n      | 'null'        | Null value                                           |\n      | 'undefined'   | Undefined value                                      |\n      | 'function'    | A function                                           |\n      | 'array'       | An instance of Array                                 |\n      | 'regexp'      | An instance of RegExp                                |\n      | 'date'        | An instance of Date                                  |\n      | 'filelist'    | An instance of FileList                              |\n      | 'class'       | An Ember class (created using EmberObject.extend())  |\n      | 'instance'    | An Ember object instance                             |\n      | 'error'       | An instance of the Error object                      |\n      | 'object'      | A JavaScript object not inheriting from EmberObject  |\n\n  Examples:\n\n  ```javascript\n  import { A } from '@ember/array';\n  import { typeOf } from '@ember/utils';\n  import EmberObject from '@ember/object';\n\n  typeOf();                       // 'undefined'\n  typeOf(null);                   // 'null'\n  typeOf(undefined);              // 'undefined'\n  typeOf('michael');              // 'string'\n  typeOf(new String('michael'));  // 'string'\n  typeOf(101);                    // 'number'\n  typeOf(new Number(101));        // 'number'\n  typeOf(true);                   // 'boolean'\n  typeOf(new Boolean(true));      // 'boolean'\n  typeOf(A);                      // 'function'\n  typeOf(A());                    // 'array'\n  typeOf([1, 2, 90]);             // 'array'\n  typeOf(/abc/);                  // 'regexp'\n  typeOf(new Date());             // 'date'\n  typeOf(event.target.files);     // 'filelist'\n  typeOf(EmberObject.extend());   // 'class'\n  typeOf(EmberObject.create());   // 'instance'\n  typeOf(new Error('teamocil'));  // 'error'\n\n  // 'normal' JavaScript object\n  typeOf({ a: 'b' });             // 'object'\n  ```\n\n  @method typeOf\n  @for @ember/utils\n  @param item the item to check\n  @return {String} the type\n  @public\n  @static\n*/\nfunction typeOf(item) {\n  if (item === null) {\n    return 'null';\n  }\n  if (item === undefined) {\n    return 'undefined';\n  }\n  let ret = TYPE_MAP[toString.call(item)] || 'object';\n  if (ret === 'function') {\n    if (CoreObject.detect(item)) {\n      ret = 'class';\n    }\n  } else if (ret === 'object') {\n    if (item instanceof Error) {\n      ret = 'error';\n    } else if (item instanceof CoreObject) {\n      ret = 'instance';\n    } else if (item instanceof Date) {\n      ret = 'date';\n    }\n  }\n  return ret;\n}\n\nexport { typeOf as default };\n","import { scheduleDestroyed, scheduleDestroy } from '../global-context/index.js';\nimport { D as DESTROYABLE_META_KEY } from '../../shared-chunks/destroyable-key-BsfVBM7f.js';\n\nconst LIVE_STATE = 0;\nconst DESTROYING_STATE = 1;\nconst DESTROYED_STATE = 2;\nlet DESTROYABLE_META = new WeakMap();\nconst branded = Symbol('BrandedArray');\nfunction isBrandedArray(collection) {\n  return Array.isArray(collection) && branded in collection;\n}\nfunction push(collection, newItem) {\n  if (collection === null) {\n    return newItem;\n  } else if (isBrandedArray(collection)) {\n    collection.push(newItem);\n    return collection;\n  } else {\n    const b = [collection, newItem];\n    b[branded] = true;\n    return b;\n  }\n}\nfunction iterate(collection, fn) {\n  if (isBrandedArray(collection)) {\n    collection.forEach(fn);\n  } else if (collection !== null) {\n    fn(collection);\n  }\n}\nfunction remove(collection, item, message) {\n  if (isBrandedArray(collection) && collection.length > 1) {\n    let index = collection.indexOf(item);\n    let lastIndex = collection.length - 1;\n    if (index !== lastIndex) {\n      collection[index] = collection[lastIndex];\n    }\n    collection.length = lastIndex;\n    return collection;\n  } else {\n    return null;\n  }\n}\nfunction createMeta(destroyable) {\n  let meta = {\n    parents: null,\n    children: null,\n    eagerDestructors: null,\n    destructors: null,\n    state: LIVE_STATE\n  };\n  return meta;\n}\nfunction getDestroyableMeta(destroyable) {\n  let slotted = destroyable;\n  let own = slotted[DESTROYABLE_META_KEY];\n  if (own !== undefined) return own;\n\n  // `in` rather than a write, so this stays a read for everything else.\n  if (DESTROYABLE_META_KEY in slotted) {\n    let meta = createMeta();\n    slotted[DESTROYABLE_META_KEY] = meta;\n    return meta;\n  }\n  let meta = DESTROYABLE_META.get(destroyable);\n  if (meta === undefined) {\n    meta = createMeta();\n    DESTROYABLE_META.set(destroyable, meta);\n  }\n  return meta;\n}\nfunction associateDestroyableChild(parent, child) {\n  let parentMeta = getDestroyableMeta(parent);\n  let childMeta = getDestroyableMeta(child);\n  parentMeta.children = push(parentMeta.children, child);\n  childMeta.parents = push(childMeta.parents, parent);\n  return child;\n}\nfunction registerDestructor(destroyable, destructor, eager = false) {\n  let meta = getDestroyableMeta(destroyable);\n  let destructorsKey = eager ? 'eagerDestructors' : 'destructors';\n  meta[destructorsKey] = push(meta[destructorsKey], destructor);\n  return destructor;\n}\nfunction unregisterDestructor(destroyable, destructor, eager = false) {\n  let meta = getDestroyableMeta(destroyable);\n  let destructorsKey = eager ? 'eagerDestructors' : 'destructors';\n  meta[destructorsKey] = remove(meta[destructorsKey], destructor);\n}\n\n////////////\n\nfunction destroy(destroyable) {\n  let meta = getDestroyableMeta(destroyable);\n  if (meta.state >= DESTROYING_STATE) return;\n  let {\n    parents,\n    children,\n    eagerDestructors,\n    destructors\n  } = meta;\n  meta.state = DESTROYING_STATE;\n  iterate(children, destroy);\n  iterate(eagerDestructors, destructor => {\n    destructor(destroyable);\n  });\n  iterate(destructors, destructor => {\n    scheduleDestroy(destroyable, destructor);\n  });\n  scheduleDestroyed(() => {\n    iterate(parents, parent => {\n      removeChildFromParent(destroyable, parent);\n    });\n    meta.state = DESTROYED_STATE;\n  });\n}\nfunction removeChildFromParent(child, parent) {\n  let parentMeta = getDestroyableMeta(parent);\n  if (parentMeta.state !== DESTROYED_STATE) {\n    parentMeta.children = remove(parentMeta.children, child);\n  }\n}\nfunction destroyChildren(destroyable) {\n  let {\n    children\n  } = getDestroyableMeta(destroyable);\n  iterate(children, destroy);\n}\n\n/** Meta if there is any, without creating it. Mirrors `getDestroyableMeta`. */\nfunction peekDestroyableMeta(destroyable) {\n  let slotted = destroyable;\n  let own = slotted[DESTROYABLE_META_KEY];\n  if (own !== undefined) return own;\n\n  // An empty slot is proof there is no meta, so the map can be skipped.\n  if (DESTROYABLE_META_KEY in slotted) return undefined;\n  return DESTROYABLE_META.get(destroyable);\n}\nfunction _hasDestroyableChildren(destroyable) {\n  let meta = peekDestroyableMeta(destroyable);\n  return meta === undefined ? false : meta.children !== null;\n}\nfunction isDestroying(destroyable) {\n  let meta = peekDestroyableMeta(destroyable);\n  return meta === undefined ? false : meta.state >= DESTROYING_STATE;\n}\nfunction isDestroyed(destroyable) {\n  let meta = peekDestroyableMeta(destroyable);\n  return meta === undefined ? false : meta.state >= DESTROYED_STATE;\n}\n\n////////////\n\nlet enableDestroyableTracking;\nlet assertDestroyablesDestroyed;\n\nexport { DESTROYABLE_META_KEY, _hasDestroyableChildren, assertDestroyablesDestroyed, associateDestroyableChild, destroy, destroyChildren, enableDestroyableTracking, isDestroyed, isDestroying, registerDestructor, unregisterDestructor };\n","import { a as TYPE_SIZE, A as ARG_SHIFT } from '../../shared-chunks/flags-BZxHQ0yn.js';\n\nclass InstructionEncoderImpl {\n  constructor(buffer) {\n    this.buffer = buffer;\n  }\n  size = 0;\n  encode(type, machine, ...args) {\n    if (type > TYPE_SIZE) {\n      throw new Error(`Opcode type over 8-bits. Got ${type}.`);\n    }\n    let first = type | machine | arguments.length - 2 << ARG_SHIFT;\n    this.buffer.push(first);\n    for (const op of args) {\n      this.buffer.push(op);\n    }\n    this.size = this.buffer.length;\n  }\n  patch(position, target) {\n    if (this.buffer[position + 1] === -1) {\n      this.buffer[position + 1] = target;\n    } else {\n      throw new Error('Trying to patch operand in populated slot instead of a reserved slot.');\n    }\n  }\n}\n\nexport { InstructionEncoderImpl };\n","/* eslint-disable @typescript-eslint/no-unsafe-assignment */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n/**\n * This package contains global context functions for Glimmer. These functions\n * are set by the embedding environment and must be set before initial render.\n *\n * These functions should meet the following criteria:\n *\n * - Must be provided by the embedder, due to having framework specific\n *   behaviors (e.g. interop with classic Ember behaviors that should not be\n *   upstreamed) or to being out of scope for the VM (e.g. scheduling a\n *   revalidation)\n * - Never differ between render roots\n * - Never change over time\n *\n */\n\n//////////\n\n/**\n * Interfaces\n *\n * TODO: Move these into @glimmer/interfaces, move @glimmer/interfaces to\n * @glimmer/internal-interfaces.\n */\n\n//////////\n\n/**\n * Schedules a VM revalidation.\n *\n * Note: this has a default value so that tags can warm themselves when first loaded.\n */\nlet scheduleRevalidate = () => {};\n\n/**\n * Schedules a destructor to run\n *\n * @param destroyable The destroyable being destroyed\n * @param destructor The destructor being scheduled\n */\nlet scheduleDestroy;\n\n/**\n * Finalizes destruction\n *\n * @param finalizer finalizer function\n */\nlet scheduleDestroyed;\n\n/**\n * Hook to provide iterators for `{{each}}` loops\n *\n * @param value The value to create an iterator for\n */\nlet toIterator;\n\n/**\n * Hook to specify truthiness within Glimmer templates\n *\n * @param value The value to convert to a boolean\n */\nlet toBool;\n\n/**\n * Hook for specifying how Glimmer should access properties in cases where it\n * needs to. For instance, accessing an object's values in templates.\n *\n * @param obj The object provided to get a value from\n * @param path The path to get the value from\n */\nlet getProp;\n\n/**\n * Hook for specifying how Glimmer should update props in cases where it needs\n * to. For instance, when updating a template reference (e.g. 2-way-binding)\n *\n * @param obj The object provided to get a value from\n * @param prop The prop to set the value at\n * @param value The value to set the value to\n */\nlet setProp;\n\n/**\n * Hook for specifying how Glimmer should access paths in cases where it needs\n * to. For instance, the `key` value of `{{each}}` loops.\n *\n * @param obj The object provided to get a value from\n * @param path The path to get the value from\n */\nlet getPath;\n\n/**\n * Hook for specifying how Glimmer should update paths in cases where it needs\n * to. For instance, when updating a template reference (e.g. 2-way-binding)\n *\n * @param obj The object provided to get a value from\n * @param path The path to get the value from\n */\nlet setPath;\n\n/**\n * Hook to warn if a style binding string or value was not marked as trusted\n * (e.g. HTMLSafe)\n */\nlet warnIfStyleNotTrusted;\n\n/**\n * Hook to customize assertion messages in the VM. Usages can be stripped out\n * by using the @glimmer/vm-babel-plugins package.\n */\nlet assert;\nfunction debugAssert(test, msg, options) {\n}\n\n/**\n * Hook to customize deprecation messages in the VM. Usages can be stripped out\n * by using the @glimmer/vm-babel-plugins package.\n */\nlet deprecate;\nfunction setGlobalContext(context) {\n  scheduleRevalidate = context.scheduleRevalidate;\n  scheduleDestroy = context.scheduleDestroy;\n  scheduleDestroyed = context.scheduleDestroyed;\n  toIterator = context.toIterator;\n  toBool = context.toBool;\n  getProp = context.getProp;\n  setProp = context.setProp;\n  getPath = context.getPath;\n  setPath = context.setPath;\n  warnIfStyleNotTrusted = context.warnIfStyleNotTrusted;\n  assert = context.assert;\n  deprecate = context.deprecate;\n}\nlet assertGlobalContextWasSet;\nlet testOverrideGlobalContext;\n\nexport { assert, assertGlobalContextWasSet, debugAssert, setGlobalContext as default, deprecate, getPath, getProp, scheduleDestroy, scheduleDestroyed, scheduleRevalidate, setPath, setProp, testOverrideGlobalContext, toBool, toIterator, warnIfStyleNotTrusted };\n","import { C as ConcreteBounds } from '../../shared-chunks/normalize-C_IStty9.js';\nimport { D as DOMTreeConstruction } from '../../shared-chunks/api-B3M8aF1d.js';\nimport createHTMLDocument from '../../@simple-dom/document/index.js';\nexport { s as serializeBuilder } from '../../shared-chunks/serialize-builder-Du-432zt.js';\n\nclass NodeDOMTreeConstruction extends DOMTreeConstruction {\n  // Hides property on base class\n  constructor(doc) {\n    super(doc || createHTMLDocument());\n  }\n\n  // override to prevent usage of `this.document` until after the constructor\n  setupUselessElement() {}\n  insertHTMLBefore(parent, reference, html) {\n    // eslint-disable-next-line @typescript-eslint/no-deprecated, @typescript-eslint/no-non-null-assertion\n    let raw = this.document.createRawHTMLSection(html);\n    parent.insertBefore(raw, reference);\n    return new ConcreteBounds(parent, raw, raw);\n  }\n\n  // override to avoid SVG detection/work when in node (this is not needed in SSR)\n  createElement(tag) {\n    return this.document.createElement(tag);\n  }\n\n  // override to avoid namespace shenanigans when in node (this is not needed in SSR)\n  setAttribute(element, name, value) {\n    element.setAttribute(name, value);\n  }\n}\n\nexport { NodeDOMTreeConstruction };\n","export { E as EMPTY_BLOCKS, W as WrappedBuilder, c as compilable, b as compileStatements, I as invokeStaticBlock, d as invokeStaticBlockWithStack, m as meta, a as templateCacheCounters, e as templateCompilationContext, t as templateFactory } from '../../shared-chunks/index-kwuZeaNz.js';\nexport { E as EvaluationContextImpl, S as StdLib, c as compileStd } from '../../shared-chunks/program-context-WVlzpPdi.js';\n\nlet debugCompiler;\n\nconst DEFAULT_CAPABILITIES = {\n  dynamicLayout: true,\n  dynamicTag: true,\n  prepareArgs: true,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  dynamicScope: true,\n  createCaller: false,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nconst MINIMAL_CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: false,\n  elementHook: false,\n  dynamicScope: false,\n  createCaller: false,\n  updateHook: false,\n  createInstance: false,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\n\nexport { DEFAULT_CAPABILITIES, MINIMAL_CAPABILITIES, debugCompiler };\n","// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment\nconst OWNER = Symbol('OWNER');\n/**\n  Framework objects in a Glimmer application may receive an owner object.\n  Glimmer is unopinionated about this owner, but will forward it through its\n  internal resolution system, and through its managers if it is provided.\n*/\nfunction getOwner(object) {\n  return object[OWNER];\n}\n\n/**\n  `setOwner` set's an object's owner\n*/\nfunction setOwner(object, owner) {\n  object[OWNER] = owner;\n}\n\nexport { OWNER, getOwner, setOwner };\n","import { aG as constants } from '../../shared-chunks/syscall-ops-CkPT1Kfx.js';\nimport { e as expect } from '../../shared-chunks/collections-GpG8lT2g.js';\nimport { u as unwrapTemplate } from '../../shared-chunks/template-BRrQR6KS.js';\nimport { c as capabilityFlagsFrom, m as managerHasCapability } from '../../shared-chunks/capabilities-BuVYh-vx.js';\nimport { g as getComponentTemplate } from '../../shared-chunks/template-Dc_cBOoX.js';\nimport { a as getInternalHelperManager, b as getInternalModifierManager, g as getInternalComponentManager } from '../../shared-chunks/api-DJnXAjon.js';\nimport { t as templateFactory } from '../../shared-chunks/index-kwuZeaNz.js';\nimport { e as enumerate } from '../../shared-chunks/array-utils-CZQxrdD3.js';\nimport { I as InternalComponentCapabilities } from '../../shared-chunks/flags-BZxHQ0yn.js';\nimport { o as opcodes } from '../../shared-chunks/opcodes-DDajoGhq.js';\nimport { a as ProgramHeapImpl } from '../../shared-chunks/program-BAh__OXZ.js';\nexport { P as ProgramImpl, R as RuntimeOpImpl } from '../../shared-chunks/program-BAh__OXZ.js';\n\n/**\n * Default component template, which is a plain yield\n */\nconst DEFAULT_TEMPLATE_BLOCK = [[[opcodes.Yield, 1, null]], ['&default'], []];\nconst DEFAULT_TEMPLATE = {\n  // random uuid\n  id: '1b32f5c2-7623-43d6-a0ad-9672898920a1',\n  moduleName: '__default__.hbs',\n  block: JSON.stringify(DEFAULT_TEMPLATE_BLOCK),\n  scope: null,\n  isStrictMode: true\n};\n\nconst WELL_KNOWN_EMPTY_ARRAY = Object.freeze([]);\nconst STARTER_CONSTANTS = constants(WELL_KNOWN_EMPTY_ARRAY);\nconst WELL_KNOWN_EMPTY_ARRAY_POSITION = STARTER_CONSTANTS.indexOf(WELL_KNOWN_EMPTY_ARRAY);\nclass ConstantsImpl {\n  reifiedArrs = {\n    [WELL_KNOWN_EMPTY_ARRAY_POSITION]: WELL_KNOWN_EMPTY_ARRAY\n  };\n  defaultTemplate = templateFactory(DEFAULT_TEMPLATE)();\n\n  // 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  helperDefinitionCount = 0;\n  modifierDefinitionCount = 0;\n  componentDefinitionCount = 0;\n  values = STARTER_CONSTANTS.slice();\n  indexMap = new Map(this.values.map((value, index) => [value, index]));\n  helperDefinitionCache = new WeakMap();\n  modifierDefinitionCache = new WeakMap();\n  componentDefinitionCache = new WeakMap();\n  value(value) {\n    let indexMap = this.indexMap;\n    let index = indexMap.get(value);\n    if (index === undefined) {\n      index = this.values.push(value) - 1;\n      indexMap.set(value, index);\n    }\n    return index;\n  }\n  array(values) {\n    if (values.length === 0) {\n      return WELL_KNOWN_EMPTY_ARRAY_POSITION;\n    }\n    let handles = new Array(values.length);\n    for (let i = 0; i < values.length; i++) {\n      handles[i] = this.value(values[i]);\n    }\n    return this.value(handles);\n  }\n  toPool() {\n    return this.values;\n  }\n  hasHandle(handle) {\n    return this.values.length > handle;\n  }\n  helper(definitionState,\n  // TODO: Add a way to expose resolved name for debugging\n  _resolvedName = null, isOptional) {\n    let handle = this.helperDefinitionCache.get(definitionState);\n    if (handle === undefined) {\n      let managerOrHelper = getInternalHelperManager(definitionState, isOptional);\n      if (managerOrHelper === null) {\n        this.helperDefinitionCache.set(definitionState, null);\n        return null;\n      }\n      let helper = typeof managerOrHelper === 'function' ? managerOrHelper : managerOrHelper.getHelper(definitionState);\n      handle = this.value(helper);\n      this.helperDefinitionCache.set(definitionState, handle);\n      this.helperDefinitionCount++;\n    }\n    return handle;\n  }\n  modifier(definitionState, resolvedName = null, isOptional) {\n    let handle = this.modifierDefinitionCache.get(definitionState);\n    if (handle === undefined) {\n      let manager = getInternalModifierManager(definitionState);\n      if (manager === null) {\n        this.modifierDefinitionCache.set(definitionState, null);\n        return null;\n      }\n      let definition = {\n        resolvedName,\n        manager,\n        state: definitionState\n      };\n      handle = this.value(definition);\n      this.modifierDefinitionCache.set(definitionState, handle);\n      this.modifierDefinitionCount++;\n    }\n    return handle;\n  }\n  component(definitionState, owner, isOptional, debugName) {\n    let definition = this.componentDefinitionCache.get(definitionState);\n    if (definition === undefined) {\n      let manager = getInternalComponentManager(definitionState);\n      if (manager === null) {\n        this.componentDefinitionCache.set(definitionState, null);\n        return null;\n      }\n      let capabilities = capabilityFlagsFrom(manager.getCapabilities(definitionState));\n      let templateFactory = getComponentTemplate(definitionState);\n      let compilable = null;\n      let template;\n      if (!managerHasCapability(manager, capabilities, InternalComponentCapabilities.dynamicLayout)) {\n        template = templateFactory?.(owner) ?? this.defaultTemplate;\n      } else {\n        template = templateFactory?.(owner);\n      }\n      if (template !== undefined) {\n        template = unwrapTemplate(template);\n        compilable = managerHasCapability(manager, capabilities, InternalComponentCapabilities.wrapped) ? template.asWrappedLayout() : template.asLayout();\n      }\n      definition = {\n        resolvedName: null,\n        handle: -1,\n        // replaced momentarily\n        manager,\n        capabilities,\n        state: definitionState,\n        compilable\n      };\n      definition.handle = this.value(definition);\n      if (debugName) {\n        definition.debugName = debugName;\n      }\n      this.componentDefinitionCache.set(definitionState, definition);\n      this.componentDefinitionCount++;\n    }\n    return definition;\n  }\n  resolvedComponent(resolvedDefinition, resolvedName) {\n    let definition = this.componentDefinitionCache.get(resolvedDefinition);\n    if (definition === undefined) {\n      let {\n        manager,\n        state,\n        template\n      } = resolvedDefinition;\n      let capabilities = capabilityFlagsFrom(manager.getCapabilities(resolvedDefinition));\n      let compilable = null;\n      if (!managerHasCapability(manager, capabilities, InternalComponentCapabilities.dynamicLayout)) {\n        template = template ?? this.defaultTemplate;\n      }\n      if (template !== null) {\n        template = unwrapTemplate(template);\n        compilable = managerHasCapability(manager, capabilities, InternalComponentCapabilities.wrapped) ? template.asWrappedLayout() : template.asLayout();\n      }\n      definition = {\n        resolvedName,\n        handle: -1,\n        // replaced momentarily\n        manager,\n        capabilities,\n        state,\n        compilable\n      };\n      definition.handle = this.value(definition);\n      this.componentDefinitionCache.set(resolvedDefinition, definition);\n      this.componentDefinitionCount++;\n    }\n    return expect(definition);\n  }\n  getValue(index) {\n    return this.values[index];\n  }\n  getArray(index) {\n    let reifiedArrs = this.reifiedArrs;\n    let reified = reifiedArrs[index];\n    if (reified === undefined) {\n      let names = this.getValue(index);\n      reified = new Array(names.length);\n      for (const [i, name] of enumerate(names)) {\n        reified[i] = this.getValue(name);\n      }\n      reifiedArrs[index] = reified;\n    }\n    return reified;\n  }\n}\n\nfunction artifacts() {\n  return {\n    constants: new ConstantsImpl(),\n    heap: new ProgramHeapImpl()\n  };\n}\n\nexport { ConstantsImpl, ProgramHeapImpl, artifacts };\n","import { toIterator, getPath } from '../global-context/index.js';\nimport { E as EMPTY_ARRAY } from '../../shared-chunks/array-utils-CZQxrdD3.js';\nimport { c as isIndexable } from '../../shared-chunks/collections-GpG8lT2g.js';\nimport { D as DIRTY_TAG, c as consumeTag, r as createTag } from '../../shared-chunks/cache-CofLhaS4.js';\nimport { c as createComputeRef, v as valueForRef } from '../../shared-chunks/reference-CccCE8mJ.js';\nexport { 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, l as createDebugAliasRef, h as createInvokableRef, e as createPrimitiveRef, j as createReadOnlyRef, k as createUnboundRef, i as isConstRef, d as isInvokableRef, b as isUpdatableRef, u as updateRef } from '../../shared-chunks/reference-CccCE8mJ.js';\n\nconst NULL_IDENTITY = {};\nconst KEY = (_, index) => index;\nconst INDEX = (_, index) => String(index);\nconst IDENTITY = item => {\n  if (item === null) {\n    // Returning null as an identity will cause failures since the iterator\n    // can't tell that it's actually supposed to be null\n    return NULL_IDENTITY;\n  }\n  return item;\n};\nfunction keyForPath(path) {\n  return uniqueKeyFor(item => {\n    if (item === null || item === undefined) {\n      return item;\n    }\n    return getPath(item, path);\n  });\n}\nfunction makeKeyFor(key) {\n  switch (key) {\n    case '@key':\n      return uniqueKeyFor(KEY);\n    case '@index':\n      return uniqueKeyFor(INDEX);\n    case '@identity':\n      return uniqueKeyFor(IDENTITY);\n    default:\n      return keyForPath(key);\n  }\n}\nclass WeakMapWithPrimitives {\n  _weakMap;\n  _primitiveMap;\n  get weakMap() {\n    if (this._weakMap === undefined) {\n      this._weakMap = new WeakMap();\n    }\n    return this._weakMap;\n  }\n  get primitiveMap() {\n    if (this._primitiveMap === undefined) {\n      this._primitiveMap = new Map();\n    }\n    return this._primitiveMap;\n  }\n  set(key, value) {\n    if (isIndexable(key)) {\n      this.weakMap.set(key, value);\n    } else {\n      this.primitiveMap.set(key, value);\n    }\n  }\n  get(key) {\n    if (isIndexable(key)) {\n      return this.weakMap.get(key);\n    } else {\n      return this.primitiveMap.get(key);\n    }\n  }\n}\nconst IDENTITIES = new WeakMapWithPrimitives();\nfunction identityForNthOccurence(value, count) {\n  let identities = IDENTITIES.get(value);\n  if (identities === undefined) {\n    identities = [];\n    IDENTITIES.set(value, identities);\n  }\n  let identity = identities[count];\n  if (identity === undefined) {\n    identity = {\n      value,\n      count\n    };\n    identities[count] = identity;\n  }\n  return identity;\n}\n\n/**\n * When iterating over a list, it's possible that an item with the same unique\n * key could be encountered twice:\n *\n * ```js\n * let arr = ['same', 'different', 'same', 'same'];\n * ```\n *\n * In general, we want to treat these items as _unique within the list_. To do\n * this, we track the occurences of every item as we iterate the list, and when\n * an item occurs more than once, we generate a new unique key just for that\n * item, and that occurence within the list. The next time we iterate the list,\n * and encounter an item for the nth time, we can get the _same_ key, and let\n * Glimmer know that it should reuse the DOM for the previous nth occurence.\n */\nfunction uniqueKeyFor(keyFor) {\n  let seen = new WeakMapWithPrimitives();\n  return (value, memo) => {\n    let key = keyFor(value, memo);\n    let count = seen.get(key) || 0;\n    seen.set(key, count + 1);\n    if (count === 0) {\n      return key;\n    }\n    return identityForNthOccurence(key, count);\n  };\n}\nfunction createIteratorRef(listRef, key) {\n  return createComputeRef(() => {\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    let iterable = valueForRef(listRef);\n    let keyFor = makeKeyFor(key);\n    if (Array.isArray(iterable)) {\n      return new ArrayIterator(iterable, keyFor);\n    }\n    let maybeIterator = toIterator(iterable);\n    if (maybeIterator === null) {\n      return new ArrayIterator(EMPTY_ARRAY, () => null);\n    }\n    return new IteratorWrapper(maybeIterator, keyFor);\n  });\n}\nfunction createIteratorItemRef(_value) {\n  let value = _value;\n  let tag = createTag();\n  return createComputeRef(() => {\n    consumeTag(tag);\n    return value;\n  }, newValue => {\n    if (value !== newValue) {\n      value = newValue;\n      DIRTY_TAG(tag);\n    }\n  });\n}\nclass IteratorWrapper {\n  constructor(inner, keyFor) {\n    this.inner = inner;\n    this.keyFor = keyFor;\n  }\n  isEmpty() {\n    return this.inner.isEmpty();\n  }\n  next() {\n    let nextValue = this.inner.next();\n    if (nextValue !== null) {\n      nextValue.key = this.keyFor(nextValue.value, nextValue.memo);\n    }\n    return nextValue;\n  }\n}\nclass ArrayIterator {\n  current;\n  pos = 0;\n  constructor(iterator, keyFor) {\n    this.iterator = iterator;\n    this.keyFor = keyFor;\n    if (iterator.length === 0) {\n      this.current = {\n        kind: 'empty'\n      };\n    } else {\n      this.current = {\n        kind: 'first',\n        value: iterator[this.pos]\n      };\n    }\n  }\n  isEmpty() {\n    return this.current.kind === 'empty';\n  }\n  next() {\n    let value;\n    let current = this.current;\n    if (current.kind === 'first') {\n      this.current = {\n        kind: 'progress'\n      };\n      value = current.value;\n    } else if (this.pos >= this.iterator.length - 1) {\n      return null;\n    } else {\n      value = this.iterator[++this.pos];\n    }\n    let {\n      keyFor\n    } = this;\n    let key = keyFor(value, this.pos);\n    let memo = this.pos;\n    return {\n      key,\n      value,\n      memo\n    };\n  }\n}\n\nexport { createComputeRef, createIteratorItemRef, createIteratorRef, valueForRef };\n","export { t as tracked } from '../../shared-chunks/tracked-CR6xx3iR.js';\nimport { e as createCache, g as getValue } from '../../shared-chunks/cache-CofLhaS4.js';\n\n// 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\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 */\nconst cached = (...args) => {\n  const [target, key, descriptor] = args;\n  const caches = new WeakMap();\n  const getter = descriptor.get;\n  descriptor.get = function () {\n    if (!caches.has(this)) {\n      caches.set(this, createCache(getter.bind(this)));\n    }\n    return getValue(caches.get(this));\n  };\n};\n\nexport { cached };\n","import { e as enumerate } from '../../shared-chunks/array-utils-CZQxrdD3.js';\nexport { E as EMPTY_ARRAY, a as EMPTY_NUMBER_ARRAY, b as EMPTY_STRING_ARRAY, c as emptyArray, i as isEmptyArray, r as reverse, z as zipArrays, d as zipTuples } from '../../shared-chunks/array-utils-CZQxrdD3.js';\nimport { a as isPresentArray, g as getFirst, b as getLast } from '../../shared-chunks/collections-GpG8lT2g.js';\nexport { S as Stack, d as dict, i as isDict, c as isIndexable } from '../../shared-chunks/collections-GpG8lT2g.js';\nexport { a as assign, e as entries, k as keys, v as values } from '../../shared-chunks/object-utils-AijlD-JH.js';\n\n/**\n * This constant exists to make it easier to differentiate normal logs from\n * errant console.logs. LOCAL_LOGGER should only be used inside a\n * LOCAL_TRACE_LOGGING check.\n *\n * It does not alleviate the need to check LOCAL_TRACE_LOGGING, which is used\n * for stripping.\n */\nconst LOCAL_LOGGER = console;\n\n/**\n * This constant exists to make it easier to differentiate normal logs from\n * errant console.logs. LOGGER can be used outside of LOCAL_TRACE_LOGGING checks,\n * and is meant to be used in the rare situation where a console.* call is\n * actually appropriate.\n */\nconst LOGGER = console;\n\n/// <reference types=\"qunit\" />\n\nlet beginTestSteps;\nlet endTestSteps;\nlet verifySteps;\nlet logStep;\n\nfunction clearElement(parent) {\n  let current = parent.firstChild;\n  while (current) {\n    let next = current.nextSibling;\n    parent.removeChild(current);\n    current = next;\n  }\n}\n\n/**\n  Strongly hint runtimes to intern the provided string.\n\n  When do I need to use this function?\n\n  For the most part, never. Pre-mature optimization is bad, and often the\n  runtime does exactly what you need it to, and more often the trade-off isn't\n  worth it.\n\n  Why?\n\n  Runtimes store strings in at least 2 different representations:\n  Ropes and Symbols (interned strings). The Rope provides a memory efficient\n  data-structure for strings created from concatenation or some other string\n  manipulation like splitting.\n\n  Unfortunately checking equality of different ropes can be quite costly as\n  runtimes must resort to clever string comparison algorithms. These\n  algorithms typically cost in proportion to the length of the string.\n  Luckily, this is where the Symbols (interned strings) shine. As Symbols are\n  unique by their string content, equality checks can be done by pointer\n  comparison.\n\n  How do I know if my string is a rope or symbol?\n\n  Typically (warning general sweeping statement, but truthy in runtimes at\n  present) static strings created as part of the JS source are interned.\n  Strings often used for comparisons can be interned at runtime if some\n  criteria are met.  One of these criteria can be the size of the entire rope.\n  For example, in chrome 38 a rope longer then 12 characters will not\n  intern, nor will segments of that rope.\n\n  Some numbers: http://jsperf.com/eval-vs-keys/8\n\n  Known Trick™\n\n  @private\n  @return {String} interned version of the provided string\n*/\nfunction intern(str) {\n  let obj = {};\n  obj[str] = 1;\n  for (let key in obj) {\n    if (key === str) {\n      return key;\n    }\n  }\n  return str;\n}\n\nconst SERIALIZATION_FIRST_NODE_STRING = '%+b:0%';\nfunction isSerializationFirstNode(node) {\n  return node.nodeValue === SERIALIZATION_FIRST_NODE_STRING;\n}\n\nfunction strip(strings, ...args) {\n  let out = '';\n  for (const [i, string] of enumerate(strings)) {\n    // eslint-disable-next-line @typescript-eslint/no-base-to-string -- @fixme\n    let dynamic = args[i] !== undefined ? String(args[i]) : '';\n    out += `${string}${dynamic}`;\n  }\n  let lines = out.split('\\n');\n  while (isPresentArray(lines) && /^\\s*$/u.test(getFirst(lines))) {\n    lines.shift();\n  }\n  while (isPresentArray(lines) && /^\\s*$/u.test(getLast(lines))) {\n    lines.pop();\n  }\n  let min = Infinity;\n  for (let line of lines) {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    let leading = /^\\s*/u.exec(line)[0].length;\n    min = Math.min(min, leading);\n  }\n  let stripped = [];\n  for (let line of lines) {\n    stripped.push(line.slice(min));\n  }\n  return stripped.join('\\n');\n}\n\nfunction assertNever(value, desc = 'unexpected unreachable branch') {\n  LOGGER.log('unreachable', value);\n  LOGGER.log(`${desc} :: ${JSON.stringify(value)} (${value})`);\n  throw new Error(`code reached unreachable`);\n}\n\nexport { LOCAL_LOGGER, LOGGER, SERIALIZATION_FIRST_NODE_STRING, assertNever, beginTestSteps, clearElement, endTestSteps, enumerate, intern, isSerializationFirstNode, logStep, strip, verifySteps };\n","import { c as consumeTag, b as createUpdatableTag, D as DIRTY_TAG } from '../../shared-chunks/cache-CofLhaS4.js';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n// Unfortunately, TypeScript's ability to do inference *or* type-checking in a\n// `Proxy`'s body is very limited, so we have to use a number of casts `as any`\n// to make the internal accesses work. The type safety of these is guaranteed at\n// the *call site* instead of within the body: you cannot do `Array.blah` in TS,\n// and it will blow up in JS in exactly the same way, so it is safe to assume\n// that properties within the getter have the correct type in TS.\n\nconst ARRAY_GETTER_METHODS = new Set([Symbol.iterator, 'concat', 'entries', 'every', 'filter', 'find', 'findIndex', 'flat', 'flatMap', 'forEach', 'includes', 'indexOf', 'join', 'keys', 'lastIndexOf', 'map', 'reduce', 'reduceRight', 'slice', 'some', 'values']);\n\n// For these methods, `Array` itself immediately gets the `.length` to return\n// after invoking them.\nconst ARRAY_WRITE_THEN_READ_METHODS = new Set(['fill', 'push', 'unshift']);\nfunction convertToInt(prop) {\n  if (typeof prop === 'symbol') return null;\n  const num = Number(prop);\n  if (isNaN(num)) return null;\n  return num % 1 === 0 ? num : null;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging\nclass TrackedArray {\n  #options;\n  constructor(arr, options) {\n    this.#options = options;\n    const clone = arr.slice();\n    // eslint-disable-next-line @typescript-eslint/no-this-alias\n    const self = this;\n    const boundFns = new Map();\n\n    /**\n      Flag to track whether we have *just* intercepted a call to `.push()` or\n      `.unshift()`, since in those cases (and only those cases!) the `Array`\n      itself checks `.length` to return from the function call.\n     */\n    let nativelyAccessingLengthFromWriteMethod = false;\n    return new Proxy(clone, {\n      get(target, prop /*, _receiver */) {\n        const index = convertToInt(prop);\n        if (index !== null) {\n          self.#readStorageFor(index);\n          consumeTag(self.#collection);\n          return target[index];\n        }\n        if (prop === 'length') {\n          // If we are reading `.length`, it may be a normal user-triggered\n          // read, or it may be a read triggered by Array itself. In the latter\n          // case, it is because we have just done `.push()` or `.unshift()`; in\n          // that case it is safe not to mark this as a *read* operation, since\n          // calling `.push()` or `.unshift()` cannot otherwise be part of a\n          // \"read\" operation safely, and if done during an *existing* read\n          // (e.g. if the user has already checked `.length` *prior* to this),\n          // that will still trigger the mutation-after-consumption assertion.\n          if (nativelyAccessingLengthFromWriteMethod) {\n            nativelyAccessingLengthFromWriteMethod = false;\n          } else {\n            consumeTag(self.#collection);\n          }\n          return target[prop];\n        }\n\n        // Here, track that we are doing a `.push()` or `.unshift()` by setting\n        // the flag to `true` so that when the `.length` is read by `Array` (see\n        // immediately above), it knows not to dirty the collection.\n        if (ARRAY_WRITE_THEN_READ_METHODS.has(prop)) {\n          nativelyAccessingLengthFromWriteMethod = true;\n        }\n        if (ARRAY_GETTER_METHODS.has(prop)) {\n          let fn = boundFns.get(prop);\n          if (fn === undefined) {\n            fn = (...args) => {\n              consumeTag(self.#collection);\n              // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access\n              return target[prop](...args);\n            };\n            boundFns.set(prop, fn);\n          }\n          return fn;\n        }\n\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access\n        return target[prop];\n      },\n      set(target, prop, value /*, _receiver */) {\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-argument\n        let isUnchanged = self.#options.equals(target[prop], value);\n        if (isUnchanged) return true;\n\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n        target[prop] = value;\n        const index = convertToInt(prop);\n        if (index !== null) {\n          self.#dirtyStorageFor(index);\n          self.#dirtyCollection();\n        } else if (prop === 'length') {\n          self.#dirtyCollection();\n        }\n        return true;\n      },\n      getPrototypeOf() {\n        return TrackedArray.prototype;\n      }\n    });\n  }\n  #collection = createUpdatableTag();\n  #storages = new Map();\n  #readStorageFor(index) {\n    let storage = this.#storages.get(index);\n    if (storage === undefined) {\n      storage = createUpdatableTag();\n      this.#storages.set(index, storage);\n    }\n    consumeTag(storage);\n  }\n  #dirtyStorageFor(index) {\n    const storage = this.#storages.get(index);\n    if (storage) {\n      DIRTY_TAG(storage);\n    }\n  }\n  #dirtyCollection() {\n    DIRTY_TAG(this.#collection);\n    this.#storages.clear();\n  }\n}\n\n// This rule is correct in the general case, but it doesn't understand\n// declaration merging, which is how we're using the interface here. This says\n// `TrackedArray` acts just like `Array<T>`, but also has the properties\n// declared via the `class` declaration above -- but without the cost of a\n// subclass, which is much slower that the proxied array behavior. That is: a\n// `TrackedArray` *is* an `Array`, just with a proxy in front of accessors and\n// setters, rather than a subclass of an `Array` which would be de-optimized by\n// the browsers.\n//\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\n\n// Ensure instanceof works correctly\nObject.setPrototypeOf(TrackedArray.prototype, Array.prototype);\nfunction trackedArray(data, options) {\n  return new TrackedArray(data ?? [], {\n    equals: options?.equals ?? Object.is,\n    description: options?.description\n  });\n}\n\nclass TrackedObject {\n  #options;\n  #storages = new Map();\n  #collection = createUpdatableTag();\n  #readStorageFor(key) {\n    let storage = this.#storages.get(key);\n    if (storage === undefined) {\n      storage = createUpdatableTag();\n      this.#storages.set(key, storage);\n    }\n    consumeTag(storage);\n  }\n  #dirtyStorageFor(key) {\n    const storage = this.#storages.get(key);\n    if (storage) {\n      DIRTY_TAG(storage);\n    }\n  }\n  #dirtyCollection() {\n    DIRTY_TAG(this.#collection);\n  }\n\n  /**\n   * This implementation of trackedObject is far too dynamic for TS to be happy with\n   */\n  constructor(obj, options) {\n    this.#options = options;\n\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n    const proto = Object.getPrototypeOf(obj);\n    const descs = Object.getOwnPropertyDescriptors(obj);\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n    const clone = Object.create(proto);\n    for (const prop in descs) {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n      Object.defineProperty(clone, prop, descs[prop]);\n    }\n\n    // eslint-disable-next-line @typescript-eslint/no-this-alias\n    const self = this;\n    return new Proxy(clone, {\n      get(target, prop) {\n        self.#readStorageFor(prop);\n        return target[prop];\n      },\n      has(target, prop) {\n        self.#readStorageFor(prop);\n        return prop in target;\n      },\n      ownKeys(target) {\n        consumeTag(self.#collection);\n        return Reflect.ownKeys(target);\n      },\n      set(target, prop, value) {\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n        let isUnchanged = self.#options.equals(target[prop], value);\n        if (isUnchanged) {\n          return true;\n        }\n\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n        target[prop] = value;\n        self.#dirtyStorageFor(prop);\n        self.#dirtyCollection();\n        return true;\n      },\n      deleteProperty(target, prop) {\n        if (prop in target) {\n          delete target[prop];\n          self.#dirtyStorageFor(prop);\n          self.#storages.delete(prop);\n          self.#dirtyCollection();\n        }\n        return true;\n      },\n      getPrototypeOf() {\n        return TrackedObject.prototype;\n      }\n    });\n  }\n}\nfunction trackedObject(data, options) {\n  return new TrackedObject(data ?? {}, {\n    equals: options?.equals ?? Object.is,\n    description: options?.description\n    /**\n     * SAFETY: we are trying to mimic the same behavior as a plain object, so if anything about\n     *         the object that is returned behaves differently from a native object in a surprising\n     *         way, we should fix that and make the behavior match native objects.\n     */\n  });\n}\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n// Using a Proxy-based approach so that any new methods added to the Set\n// interface are automatically supported without needing to manually\n// re-implement each one.\n\nfunction trackedSet(data, options) {\n  const equals = options?.equals ?? Object.is;\n  const target = new Set(data ?? []);\n  const collection = createUpdatableTag();\n  const storages = new Map();\n  function storageFor(key) {\n    let storage = storages.get(key);\n    if (storage === undefined) {\n      storage = createUpdatableTag();\n      storages.set(key, storage);\n    }\n    return storage;\n  }\n  function dirtyStorageFor(key) {\n    const storage = storages.get(key);\n    if (storage) {\n      DIRTY_TAG(storage);\n    }\n  }\n  const proxy = new Proxy(target, {\n    get(target, prop, receiver) {\n      if (prop === 'add') {\n        return function (value) {\n          if (target.has(value)) {\n            const isUnchanged = equals(value, value);\n            if (isUnchanged) return proxy;\n          } else {\n            DIRTY_TAG(collection);\n          }\n          dirtyStorageFor(value);\n          target.add(value);\n          return proxy;\n        };\n      }\n      if (prop === 'delete') {\n        return function (value) {\n          if (!target.has(value)) return false;\n          dirtyStorageFor(value);\n          DIRTY_TAG(collection);\n          storages.delete(value);\n          return target.delete(value);\n        };\n      }\n      if (prop === 'clear') {\n        return function () {\n          if (target.size === 0) return;\n          storages.forEach(s => DIRTY_TAG(s));\n          DIRTY_TAG(collection);\n          storages.clear();\n          target.clear();\n        };\n      }\n      if (prop === 'has') {\n        return function (value) {\n          consumeTag(storageFor(value));\n          return target.has(value);\n        };\n      }\n      if (prop === 'size') {\n        consumeTag(collection);\n        return target.size;\n      }\n\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n      const value = Reflect.get(target, prop, receiver);\n      if (typeof value === 'function') {\n        return function (...args) {\n          consumeTag(collection);\n\n          // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n          return value.apply(target, args);\n        };\n      }\n\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n      return value;\n    }\n  });\n  return proxy;\n}\n\n// Using a Proxy-based approach so that any new methods added to the WeakSet\n// interface are automatically supported without needing to manually\n// re-implement each one.\n\n/**\n * NOTE: we cannot pass a WeakSet because WeakSets are not iterable\n */\n/**\n * Creates an instanceof WeakSet from an optional list of entries\n *\n */\nfunction trackedWeakSet(data, options) {\n  const equals = options?.equals ?? Object.is;\n  const target = new WeakSet(data ?? []);\n  const storages = new WeakMap();\n  function storageFor(key) {\n    let storage = storages.get(key);\n    if (storage === undefined) {\n      storage = createUpdatableTag();\n      storages.set(key, storage);\n    }\n    return storage;\n  }\n  function dirtyStorageFor(key) {\n    const storage = storages.get(key);\n    if (storage) {\n      DIRTY_TAG(storage);\n    }\n  }\n  const proxy = new Proxy(target, {\n    get(target, prop, receiver) {\n      if (prop === 'add') {\n        return function (value) {\n          /**\n           * In a WeakSet, there is no `.get()`, but if there was,\n           * we could assume it's the same value as what we passed.\n           *\n           * So for a WeakSet, if we try to add something that already exists\n           * we no-op.\n           *\n           * WeakSet already does this internally for us,\n           * but we want the ability for the reactive behavior to reflect the same behavior.\n           *\n           * i.e.: doing weakSet.add(value) should never dirty with the defaults\n           *       if the `value` is already in the weakSet\n           */\n          if (target.has(value)) {\n            /**\n             * This looks a little silly, where a always will === b,\n             * but see the note above.\n             */\n            const isUnchanged = equals(value, value);\n            if (isUnchanged) return proxy;\n          }\n\n          // Add to vals first to get better error message\n          target.add(value);\n          dirtyStorageFor(value);\n          return proxy;\n        };\n      }\n      if (prop === 'delete') {\n        return function (value) {\n          if (!target.has(value)) return false;\n          dirtyStorageFor(value);\n          storages.delete(value);\n          return target.delete(value);\n        };\n      }\n      if (prop === 'has') {\n        return function (value) {\n          consumeTag(storageFor(value));\n          return target.has(value);\n        };\n      }\n\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n      const value = Reflect.get(target, prop, receiver);\n      if (typeof value === 'function') {\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n        return value.bind(target);\n      }\n\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n      return value;\n    }\n  });\n  return proxy;\n}\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n// Using a Proxy-based approach so that any new methods added to the Map\n// interface (like getOrInsert, getOrInsertComputed, etc.) are automatically\n// supported without needing to manually re-implement each one.\n\nfunction trackedMap(data, options) {\n  const equals = options?.equals ?? Object.is;\n  // TypeScript doesn't correctly resolve the overloads for calling the `Map`\n  // constructor for the no-value constructor. This resolves that.\n  const target = data instanceof Map ? new Map(data.entries()) : new Map(data ?? []);\n  const collection = createUpdatableTag();\n  const storages = new Map();\n  function storageFor(key) {\n    let storage = storages.get(key);\n    if (storage === undefined) {\n      storage = createUpdatableTag();\n      storages.set(key, storage);\n    }\n    return storage;\n  }\n  function dirtyStorageFor(key) {\n    const storage = storages.get(key);\n    if (storage) {\n      DIRTY_TAG(storage);\n    }\n  }\n  const proxy = new Proxy(target, {\n    get(target, prop, receiver) {\n      if (prop === 'set') {\n        return function (key, value) {\n          const hasExisting = target.has(key);\n          if (hasExisting) {\n            // TS doesn't know about the relationship between has and get\n            // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n            const isUnchanged = equals(target.get(key), value);\n            if (isUnchanged) return proxy;\n          }\n          dirtyStorageFor(key);\n          DIRTY_TAG(collection);\n          target.set(key, value);\n          return proxy;\n        };\n      }\n      if (prop === 'delete') {\n        return function (key) {\n          if (!target.has(key)) return false;\n          dirtyStorageFor(key);\n          DIRTY_TAG(collection);\n          storages.delete(key);\n          return target.delete(key);\n        };\n      }\n      if (prop === 'clear') {\n        return function () {\n          if (target.size === 0) return;\n          storages.forEach(s => DIRTY_TAG(s));\n          storages.clear();\n          DIRTY_TAG(collection);\n          target.clear();\n        };\n      }\n      if (prop === 'get') {\n        return function (key) {\n          consumeTag(storageFor(key));\n          return target.get(key);\n        };\n      }\n      if (prop === 'has') {\n        return function (key) {\n          consumeTag(storageFor(key));\n          return target.has(key);\n        };\n      }\n      if (prop === 'size') {\n        consumeTag(collection);\n        return target.size;\n      }\n\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n      const value = Reflect.get(target, prop, receiver);\n      if (typeof value === 'function') {\n        return function (...args) {\n          consumeTag(collection);\n\n          // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n          return value.apply(target, args);\n        };\n      }\n\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n      return value;\n    }\n  });\n  return proxy;\n}\n\n// Using a Proxy-based approach so that any new methods added to the WeakMap\n// interface (like getOrInsert, getOrInsertComputed, etc.) are automatically\n// supported without needing to manually re-implement each one.\n\nfunction trackedWeakMap(data, options) {\n  const equals = options?.equals ?? Object.is;\n  const existing = data ?? [];\n  /**\n   * SAFETY: note that when passing in an existing weak map, we can't\n   *         clone it as it is not iterable and not a supported type of structuredClone\n   */\n  const target = existing instanceof WeakMap ? existing : new WeakMap(existing);\n  const storages = new WeakMap();\n  function storageFor(key) {\n    let storage = storages.get(key);\n    if (storage === undefined) {\n      storage = createUpdatableTag();\n      storages.set(key, storage);\n    }\n    return storage;\n  }\n  function dirtyStorageFor(key) {\n    const storage = storages.get(key);\n    if (storage) {\n      DIRTY_TAG(storage);\n    }\n  }\n  const proxy = new Proxy(target, {\n    get(target, prop, receiver) {\n      if (prop === 'set') {\n        return function (key, value) {\n          const hasExisting = target.has(key);\n          if (hasExisting) {\n            const isUnchanged = equals(target.get(key), value);\n            if (isUnchanged) return proxy;\n          }\n          dirtyStorageFor(key);\n          target.set(key, value);\n          return proxy;\n        };\n      }\n      if (prop === 'delete') {\n        return function (key) {\n          if (!target.has(key)) return false;\n          dirtyStorageFor(key);\n          storages.delete(key);\n          return target.delete(key);\n        };\n      }\n      if (prop === 'get') {\n        return function (key) {\n          consumeTag(storageFor(key));\n          return target.get(key);\n        };\n      }\n      if (prop === 'has') {\n        return function (key) {\n          consumeTag(storageFor(key));\n          return target.has(key);\n        };\n      }\n\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n      const value = Reflect.get(target, prop, receiver);\n      if (typeof value === 'function') {\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n        return value.bind(target);\n      }\n\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n      return value;\n    }\n  });\n  return proxy;\n}\n\nexport { trackedArray, trackedMap, trackedObject, trackedSet, trackedWeakMap, trackedWeakSet };\n","export { trackedArray, trackedMap, trackedObject, trackedSet, trackedWeakMap, trackedWeakSet } from '../../@ember/reactive/collections.js';\nexport { d as dirtyTagFor, t as tagFor, a as tagMetaFor } from '../../shared-chunks/meta-BJtIZDir.js';\nexport { T as TrackedValue, a as trackedData, t as trackedValue } from '../../shared-chunks/tracked-value-CR6kx-73.js';\nexport { A as ALLOW_CYCLES, h as COMPUTE, j as CONSTANT, C as CONSTANT_TAG, k as CURRENT_TAG, l as CurrentTag, I as INITIAL, V as VOLATILE, m as VOLATILE_TAG, n as VolatileTag, o as beginTrackFrame, p as beginUntrackFrame, q as bump, d as combine, c as consumeTag, e as createCache, r as createTag, b as createUpdatableTag, D as dirtyTag, s as endTrackFrame, w as endUntrackFrame, g as getValue, i as isConst, x as isConstTag, f as isTracking, y as resetTracking, t as track, u as untrack, U as updateTag, v as validateTag, a as valueForTag } from '../../shared-chunks/cache-CofLhaS4.js';\n\n/* eslint-disable @typescript-eslint/no-non-null-assertion -- @fixme */\n\nconst debug = {};\n\nconst GLIMMER_VALIDATOR_REGISTRATION = Symbol('GLIMMER_VALIDATOR_REGISTRATION');\nif (Reflect.has(globalThis, GLIMMER_VALIDATOR_REGISTRATION)) {\n  throw new Error('The `@glimmer/validator` library has been included twice in this application. It could be different versions of the package, or the same version included twice by mistake. `@glimmer/validator` depends on having a single copy of the package in use at any time in an application, even if they are the same version. You must dedupe your build to remove the duplicate packages in order to prevent this error.');\n}\nReflect.set(globalThis, GLIMMER_VALIDATOR_REGISTRATION, true);\n\nexport { debug };\n","export { A as ARG_SHIFT, I as InternalComponentCapabilities, I as InternalComponentCapability, M as MACHINE_MASK, b as MAX_SIZE, O as OPERAND_LEN_MASK, T as TYPE_MASK, a as TYPE_SIZE } from '../../shared-chunks/flags-BZxHQ0yn.js';\nexport { f as $fp, d as $pc, e as $ra, $ as $s0, h as $s1, g as $sp, c as $t0, b as $t1, a as $v0, i as isLowLevelRegister } from '../../shared-chunks/registers-C_W2qYHJ.js';\n\nconst ContentType = {\n  Component: 0,\n  Helper: 1,\n  String: 2,\n  Empty: 3,\n  SafeString: 4,\n  Fragment: 5,\n  Node: 6,\n  Other: 8\n};\n\nexport { ContentType };\n","const WellKnownAttrNames = {\n  class: 0,\n  id: 1,\n  value: 2,\n  name: 3,\n  type: 4,\n  style: 5,\n  href: 6\n};\nconst WellKnownTagNames = {\n  div: 0,\n  span: 1,\n  p: 2,\n  a: 3\n};\n\nexport { WellKnownAttrNames as W, WellKnownTagNames as a };\n","import { o as opcodes } from '../../shared-chunks/opcodes-DDajoGhq.js';\nexport { W as WellKnownAttrNames, a as WellKnownTagNames } from '../../shared-chunks/well-known-_EVO9RaV.js';\n\nconst resolution = {\n  Strict: 0,\n  ResolveAsComponentOrHelperHead: 1,\n  ResolveAsHelperHead: 5,\n  ResolveAsModifierHead: 6,\n  ResolveAsComponentHead: 7\n};\n\nfunction is(variant) {\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  return function (value) {\n    return Array.isArray(value) && value[0] === variant;\n  };\n}\n\n// Statements\nconst isFlushElement = is(opcodes.FlushElement);\nfunction isAttribute(val) {\n  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;\n}\nfunction isStringLiteral(expr) {\n  return typeof expr === 'string';\n}\nfunction getStringFromValue(expr) {\n  return expr;\n}\nfunction isHelper(expr) {\n  return Array.isArray(expr) && expr[0] === opcodes.Call;\n}\n\n// Expressions\nconst isGet = is(opcodes.GetSymbol);\n\nexport { opcodes as SexpOpcodes, resolution as VariableResolutionContext, getStringFromValue, is, isAttribute, isFlushElement, isGet, isHelper, isStringLiteral };\n","const EMPTY_ATTRS = [];\nfunction indexOfAttribute(attributes, namespaceURI, localName) {\n  for (let i = 0; i < attributes.length; i++) {\n    const attr = attributes[i];\n    if (attr.namespaceURI === namespaceURI && attr.localName === localName) {\n      return i;\n    }\n  }\n  return -1;\n}\nfunction adjustAttrName(namespaceURI, localName) {\n  return namespaceURI === \"http://www.w3.org/1999/xhtml\" /* HTML */ ? localName.toLowerCase() : localName;\n}\nfunction getAttribute(attributes, namespaceURI, localName) {\n  const index = indexOfAttribute(attributes, namespaceURI, localName);\n  return index === -1 ? null : attributes[index].value;\n}\nfunction removeAttribute(attributes, namespaceURI, localName) {\n  const index = indexOfAttribute(attributes, namespaceURI, localName);\n  if (index !== -1) {\n    attributes.splice(index, 1);\n  }\n}\n// https://dom.spec.whatwg.org/#dom-element-setattributens\nfunction setAttribute(element, namespaceURI, prefix, localName, value) {\n  if (typeof value !== 'string') {\n    value = '' + value;\n  }\n  let {\n    attributes\n  } = element;\n  if (attributes === EMPTY_ATTRS) {\n    attributes = element.attributes = [];\n  } else {\n    const index = indexOfAttribute(attributes, namespaceURI, localName);\n    if (index !== -1) {\n      attributes[index].value = value;\n      return;\n    }\n  }\n  attributes.push({\n    localName,\n    name: prefix === null ? localName : prefix + ':' + localName,\n    namespaceURI,\n    prefix,\n    specified: true,\n    value\n  });\n}\nclass ChildNodes {\n  constructor(node) {\n    this.node = node;\n    this.stale = true;\n    this._length = 0;\n  }\n  get length() {\n    if (this.stale) {\n      this.stale = false;\n      let len = 0;\n      let child = this.node.firstChild;\n      for (; child !== null; len++) {\n        this[len] = child;\n        child = child.nextSibling;\n      }\n      const oldLen = this._length;\n      this._length = len;\n      for (; len < oldLen; len++) {\n        delete this[len];\n      }\n    }\n    return this._length;\n  }\n  item(index) {\n    return index < this.length ? this[index] : null;\n  }\n}\nfunction cloneNode(node, deep) {\n  const clone = nodeFrom(node);\n  if (deep) {\n    let child = node.firstChild;\n    let nextChild = child;\n    while (child !== null) {\n      nextChild = child.nextSibling;\n      clone.appendChild(child.cloneNode(true));\n      child = nextChild;\n    }\n  }\n  return clone;\n}\nfunction nodeFrom(node) {\n  let namespaceURI;\n  if (node.nodeType === 1 /* ELEMENT_NODE */) {\n    namespaceURI = node.namespaceURI;\n  }\n  const clone = new SimpleNodeImpl(node.ownerDocument, node.nodeType, node.nodeName, node.nodeValue, namespaceURI);\n  if (node.nodeType === 1 /* ELEMENT_NODE */) {\n    clone.attributes = copyAttrs(node.attributes);\n  }\n  return clone;\n}\nfunction copyAttrs(attrs) {\n  if (attrs === EMPTY_ATTRS) {\n    return EMPTY_ATTRS;\n  }\n  const copy = [];\n  for (let i = 0; i < attrs.length; i++) {\n    const attr = attrs[i];\n    copy.push({\n      localName: attr.localName,\n      name: attr.name,\n      namespaceURI: attr.namespaceURI,\n      prefix: attr.prefix,\n      specified: true,\n      value: attr.value\n    });\n  }\n  return copy;\n}\nfunction insertBefore(parentNode, newChild, refChild) {\n  invalidate(parentNode);\n  insertBetween(parentNode, newChild, refChild === null ? parentNode.lastChild : refChild.previousSibling, refChild);\n}\nfunction removeChild(parentNode, oldChild) {\n  invalidate(parentNode);\n  removeBetween(parentNode, oldChild, oldChild.previousSibling, oldChild.nextSibling);\n}\nfunction invalidate(parentNode) {\n  const childNodes = parentNode._childNodes;\n  if (childNodes !== undefined) {\n    childNodes.stale = true;\n  }\n}\nfunction insertBetween(parentNode, newChild, previousSibling, nextSibling) {\n  if (newChild.nodeType === 11 /* DOCUMENT_FRAGMENT_NODE */) {\n    insertFragment(newChild, parentNode, previousSibling, nextSibling);\n    return;\n  }\n  if (newChild.parentNode !== null) {\n    removeChild(newChild.parentNode, newChild);\n  }\n  newChild.parentNode = parentNode;\n  newChild.previousSibling = previousSibling;\n  newChild.nextSibling = nextSibling;\n  if (previousSibling === null) {\n    parentNode.firstChild = newChild;\n  } else {\n    previousSibling.nextSibling = newChild;\n  }\n  if (nextSibling === null) {\n    parentNode.lastChild = newChild;\n  } else {\n    nextSibling.previousSibling = newChild;\n  }\n}\nfunction removeBetween(parentNode, oldChild, previousSibling, nextSibling) {\n  oldChild.parentNode = null;\n  oldChild.previousSibling = null;\n  oldChild.nextSibling = null;\n  if (previousSibling === null) {\n    parentNode.firstChild = nextSibling;\n  } else {\n    previousSibling.nextSibling = nextSibling;\n  }\n  if (nextSibling === null) {\n    parentNode.lastChild = previousSibling;\n  } else {\n    nextSibling.previousSibling = previousSibling;\n  }\n}\nfunction insertFragment(fragment, parentNode, previousSibling, nextSibling) {\n  const firstChild = fragment.firstChild;\n  if (firstChild === null) {\n    return;\n  }\n  fragment.firstChild = null;\n  fragment.lastChild = null;\n  let lastChild = firstChild;\n  let newChild = firstChild;\n  firstChild.previousSibling = previousSibling;\n  if (previousSibling === null) {\n    parentNode.firstChild = firstChild;\n  } else {\n    previousSibling.nextSibling = firstChild;\n  }\n  while (newChild !== null) {\n    newChild.parentNode = parentNode;\n    lastChild = newChild;\n    newChild = newChild.nextSibling;\n  }\n  lastChild.nextSibling = nextSibling;\n  if (nextSibling === null) {\n    parentNode.lastChild = lastChild;\n  } else {\n    nextSibling.previousSibling = lastChild;\n  }\n}\nfunction parseQualifiedName(qualifiedName) {\n  let localName = qualifiedName;\n  let prefix = null;\n  const i = qualifiedName.indexOf(':');\n  if (i !== -1) {\n    prefix = qualifiedName.slice(0, i);\n    localName = qualifiedName.slice(i + 1);\n  }\n  return [prefix, localName];\n}\nclass SimpleNodeImpl {\n  constructor(ownerDocument, nodeType, nodeName, nodeValue, namespaceURI) {\n    this.ownerDocument = ownerDocument;\n    this.nodeType = nodeType;\n    this.nodeName = nodeName;\n    this.nodeValue = nodeValue;\n    this.namespaceURI = namespaceURI;\n    this.parentNode = null;\n    this.previousSibling = null;\n    this.nextSibling = null;\n    this.firstChild = null;\n    this.lastChild = null;\n    this.attributes = EMPTY_ATTRS;\n    /**\n     * @internal\n     */\n    this._childNodes = undefined;\n  }\n  get tagName() {\n    return this.nodeName;\n  }\n  get childNodes() {\n    let children = this._childNodes;\n    if (children === undefined) {\n      children = this._childNodes = new ChildNodes(this);\n    }\n    return children;\n  }\n  cloneNode(deep) {\n    return cloneNode(this, deep === true);\n  }\n  appendChild(newChild) {\n    insertBefore(this, newChild, null);\n    return newChild;\n  }\n  insertBefore(newChild, refChild) {\n    insertBefore(this, newChild, refChild);\n    return newChild;\n  }\n  removeChild(oldChild) {\n    removeChild(this, oldChild);\n    return oldChild;\n  }\n  insertAdjacentHTML(position, html) {\n    const raw = new SimpleNodeImpl(this.ownerDocument, -1 /* RAW_NODE */, '#raw', html, void 0);\n    let parentNode;\n    let nextSibling;\n    switch (position) {\n      case 'beforebegin':\n        parentNode = this.parentNode;\n        nextSibling = this;\n        break;\n      case 'afterbegin':\n        parentNode = this;\n        nextSibling = this.firstChild;\n        break;\n      case 'beforeend':\n        parentNode = this;\n        nextSibling = null;\n        break;\n      case 'afterend':\n        parentNode = this.parentNode;\n        nextSibling = this.nextSibling;\n        break;\n      default:\n        throw new Error('invalid position');\n    }\n    if (parentNode === null) {\n      throw new Error(`${position} requires a parentNode`);\n    }\n    insertBefore(parentNode, raw, nextSibling);\n  }\n  getAttribute(name) {\n    const localName = adjustAttrName(this.namespaceURI, name);\n    return getAttribute(this.attributes, null, localName);\n  }\n  getAttributeNS(namespaceURI, localName) {\n    return getAttribute(this.attributes, namespaceURI, localName);\n  }\n  setAttribute(name, value) {\n    const localName = adjustAttrName(this.namespaceURI, name);\n    setAttribute(this, null, null, localName, value);\n  }\n  setAttributeNS(namespaceURI, qualifiedName, value) {\n    const [prefix, localName] = parseQualifiedName(qualifiedName);\n    setAttribute(this, namespaceURI, prefix, localName, value);\n  }\n  removeAttribute(name) {\n    const localName = adjustAttrName(this.namespaceURI, name);\n    removeAttribute(this.attributes, null, localName);\n  }\n  removeAttributeNS(namespaceURI, localName) {\n    removeAttribute(this.attributes, namespaceURI, localName);\n  }\n  get doctype() {\n    return this.firstChild;\n  }\n  get documentElement() {\n    return this.lastChild;\n  }\n  get head() {\n    return this.documentElement.firstChild;\n  }\n  get body() {\n    return this.documentElement.lastChild;\n  }\n  createElement(name) {\n    return new SimpleNodeImpl(this, 1 /* ELEMENT_NODE */, name.toUpperCase(), null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n  }\n  createElementNS(namespace, qualifiedName) {\n    // Node name is case-preserving in XML contexts, but returns canonical uppercase form in HTML contexts\n    // https://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-104682815\n    const nodeName = namespace === \"http://www.w3.org/1999/xhtml\" /* HTML */ ? qualifiedName.toUpperCase() : qualifiedName;\n    // we don't care to parse the qualified name because we only support HTML documents\n    // which don't support prefixed elements\n    return new SimpleNodeImpl(this, 1 /* ELEMENT_NODE */, nodeName, null, namespace);\n  }\n  createTextNode(text) {\n    return new SimpleNodeImpl(this, 3 /* TEXT_NODE */, '#text', text, void 0);\n  }\n  createComment(text) {\n    return new SimpleNodeImpl(this, 8 /* COMMENT_NODE */, '#comment', text, void 0);\n  }\n  /**\n   * Backwards compat\n   * @deprecated\n   */\n  createRawHTMLSection(text) {\n    return new SimpleNodeImpl(this, -1 /* RAW_NODE */, '#raw', text, void 0);\n  }\n  createDocumentFragment() {\n    return new SimpleNodeImpl(this, 11 /* DOCUMENT_FRAGMENT_NODE */, '#document-fragment', null, void 0);\n  }\n}\nfunction createHTMLDocument() {\n  // dom.d.ts types ownerDocument as Document but for a document ownerDocument is null\n  const document = new SimpleNodeImpl(null, 9 /* DOCUMENT_NODE */, '#document', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n  const doctype = new SimpleNodeImpl(document, 10 /* DOCUMENT_TYPE_NODE */, 'html', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n  const html = new SimpleNodeImpl(document, 1 /* ELEMENT_NODE */, 'HTML', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n  const head = new SimpleNodeImpl(document, 1 /* ELEMENT_NODE */, 'HEAD', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n  const body = new SimpleNodeImpl(document, 1 /* ELEMENT_NODE */, 'BODY', null, \"http://www.w3.org/1999/xhtml\" /* HTML */);\n  html.appendChild(head);\n  html.appendChild(body);\n  document.appendChild(doctype);\n  document.appendChild(html);\n  return document;\n}\n\nexport { createHTMLDocument as default };\n","const SET_TIMEOUT = setTimeout;\nconst NOOP = () => {};\nfunction buildNext(flush) {\n  // Using \"promises first\" here to:\n  //\n  // 1) Ensure more consistent experience on browsers that\n  //    have differently queued microtasks (separate queues for\n  //    MutationObserver vs Promises).\n  // 2) Ensure better debugging experiences (it shows up in Chrome\n  //    call stack as \"Promise.then (async)\") which is more consistent\n  //    with user expectations\n  //\n  // When Promise is unavailable use MutationObserver (mostly so that we\n  // still get microtasks on IE11), and when neither MutationObserver and\n  // Promise are present use a plain old setTimeout.\n  if (typeof Promise === 'function') {\n    const autorunPromise = Promise.resolve();\n    return () => autorunPromise.then(flush);\n  } else if (typeof MutationObserver === 'function') {\n    let iterations = 0;\n    let observer = new MutationObserver(flush);\n    let node = document.createTextNode('');\n    observer.observe(node, {\n      characterData: true\n    });\n    return () => {\n      iterations = ++iterations % 2;\n      node.data = '' + iterations;\n      return iterations;\n    };\n  } else {\n    return () => SET_TIMEOUT(flush, 0);\n  }\n}\nfunction buildPlatform(flush) {\n  let clearNext = NOOP;\n  return {\n    setTimeout(fn, ms) {\n      return setTimeout(fn, ms);\n    },\n    clearTimeout(timerId) {\n      return clearTimeout(timerId);\n    },\n    now() {\n      return Date.now();\n    },\n    next: buildNext(flush),\n    clearNext\n  };\n}\nconst NUMBER = /\\d+/;\nconst TIMERS_OFFSET = 6;\nfunction isCoercableNumber(suspect) {\n  let type = typeof suspect;\n  return type === 'number' && suspect === suspect || type === 'string' && NUMBER.test(suspect);\n}\nfunction getOnError(options) {\n  return options.onError || options.onErrorTarget && options.onErrorTarget[options.onErrorMethod];\n}\nfunction findItem(target, method, collection) {\n  let index = -1;\n  for (let i = 0, l = collection.length; i < l; i += 4) {\n    if (collection[i] === target && collection[i + 1] === method) {\n      index = i;\n      break;\n    }\n  }\n  return index;\n}\nfunction findTimerItem(target, method, collection) {\n  let index = -1;\n  for (let i = 2, l = collection.length; i < l; i += 6) {\n    if (collection[i] === target && collection[i + 1] === method) {\n      index = i - 2;\n      break;\n    }\n  }\n  return index;\n}\nfunction getQueueItems(items, queueItemLength, queueItemPositionOffset = 0) {\n  let queueItems = [];\n  for (let i = 0; i < items.length; i += queueItemLength) {\n    let maybeError = items[i + 3 /* stack */ + queueItemPositionOffset];\n    let queueItem = {\n      target: items[i + 0 /* target */ + queueItemPositionOffset],\n      method: items[i + 1 /* method */ + queueItemPositionOffset],\n      args: items[i + 2 /* args */ + queueItemPositionOffset],\n      stack: maybeError !== undefined && 'stack' in maybeError ? maybeError.stack : ''\n    };\n    queueItems.push(queueItem);\n  }\n  return queueItems;\n}\nfunction binarySearch(time, timers) {\n  let start = 0;\n  let end = timers.length - TIMERS_OFFSET;\n  let middle;\n  let l;\n  while (start < end) {\n    // since timers is an array of pairs 'l' will always\n    // be an integer\n    l = (end - start) / TIMERS_OFFSET;\n    // compensate for the index in case even number\n    // of pairs inside timers\n    middle = start + l - l % TIMERS_OFFSET;\n    if (time >= timers[middle]) {\n      start = middle + TIMERS_OFFSET;\n    } else {\n      end = middle;\n    }\n  }\n  return time >= timers[start] ? start + TIMERS_OFFSET : start;\n}\nconst QUEUE_ITEM_LENGTH = 4;\nclass Queue {\n  constructor(name, options = {}, globalOptions = {}) {\n    this._queueBeingFlushed = [];\n    this.targetQueues = new Map();\n    this.index = 0;\n    this._queue = [];\n    this.name = name;\n    this.options = options;\n    this.globalOptions = globalOptions;\n  }\n  stackFor(index) {\n    if (index < this._queue.length) {\n      let entry = this._queue[index * 3 + QUEUE_ITEM_LENGTH];\n      if (entry) {\n        return entry.stack;\n      } else {\n        return null;\n      }\n    }\n  }\n  flush(sync) {\n    let {\n      before,\n      after\n    } = this.options;\n    let target;\n    let method;\n    let args;\n    let errorRecordedForStack;\n    this.targetQueues.clear();\n    if (this._queueBeingFlushed.length === 0) {\n      this._queueBeingFlushed = this._queue;\n      this._queue = [];\n    }\n    if (before !== undefined) {\n      before();\n    }\n    let invoke;\n    let queueItems = this._queueBeingFlushed;\n    if (queueItems.length > 0) {\n      let onError = getOnError(this.globalOptions);\n      invoke = onError ? this.invokeWithOnError : this.invoke;\n      for (let i = this.index; i < queueItems.length; i += QUEUE_ITEM_LENGTH) {\n        this.index += QUEUE_ITEM_LENGTH;\n        method = queueItems[i + 1];\n        // method could have been nullified / canceled during flush\n        if (method !== null) {\n          //\n          //    ** Attention intrepid developer **\n          //\n          //    To find out the stack of this task when it was scheduled onto\n          //    the run loop, add the following to your app.js:\n          //\n          //    Ember.run.backburner.DEBUG = true; // NOTE: This slows your app, don't leave it on in production.\n          //\n          //    Once that is in place, when you are at a breakpoint and navigate\n          //    here in the stack explorer, you can look at `errorRecordedForStack.stack`,\n          //    which will be the captured stack when this job was scheduled.\n          //\n          //    One possible long-term solution is the following Chrome issue:\n          //       https://bugs.chromium.org/p/chromium/issues/detail?id=332624\n          //\n          target = queueItems[i];\n          args = queueItems[i + 2];\n          errorRecordedForStack = queueItems[i + 3]; // Debugging assistance\n          invoke(target, method, args, onError, errorRecordedForStack);\n        }\n        if (this.index !== this._queueBeingFlushed.length && this.globalOptions.mustYield && this.globalOptions.mustYield()) {\n          return 1 /* Pause */;\n        }\n      }\n    }\n    if (after !== undefined) {\n      after();\n    }\n    this._queueBeingFlushed.length = 0;\n    this.index = 0;\n    if (sync !== false && this._queue.length > 0) {\n      // check if new items have been added\n      this.flush(true);\n    }\n  }\n  hasWork() {\n    return this._queueBeingFlushed.length > 0 || this._queue.length > 0;\n  }\n  cancel({\n    target,\n    method\n  }) {\n    let queue = this._queue;\n    let targetQueueMap = this.targetQueues.get(target);\n    if (targetQueueMap !== undefined) {\n      targetQueueMap.delete(method);\n    }\n    let index = findItem(target, method, queue);\n    if (index > -1) {\n      queue[index + 1] = null;\n      return true;\n    }\n    // if not found in current queue\n    // could be in the queue that is being flushed\n    queue = this._queueBeingFlushed;\n    index = findItem(target, method, queue);\n    if (index > -1) {\n      queue[index + 1] = null;\n      return true;\n    }\n    return false;\n  }\n  push(target, method, args, stack) {\n    this._queue.push(target, method, args, stack);\n    return {\n      queue: this,\n      target,\n      method\n    };\n  }\n  pushUnique(target, method, args, stack) {\n    let localQueueMap = this.targetQueues.get(target);\n    if (localQueueMap === undefined) {\n      localQueueMap = new Map();\n      this.targetQueues.set(target, localQueueMap);\n    }\n    let index = localQueueMap.get(method);\n    if (index === undefined) {\n      let queueIndex = this._queue.push(target, method, args, stack) - QUEUE_ITEM_LENGTH;\n      localQueueMap.set(method, queueIndex);\n    } else {\n      let queue = this._queue;\n      queue[index + 2] = args; // replace args\n      queue[index + 3] = stack; // replace stack\n    }\n    return {\n      queue: this,\n      target,\n      method\n    };\n  }\n  _getDebugInfo(debugEnabled) {\n    if (debugEnabled) {\n      let debugInfo = getQueueItems(this._queue, QUEUE_ITEM_LENGTH);\n      return debugInfo;\n    }\n    return undefined;\n  }\n  invoke(target, method, args /*, onError, errorRecordedForStack */) {\n    if (args === undefined) {\n      method.call(target);\n    } else {\n      method.apply(target, args);\n    }\n  }\n  invokeWithOnError(target, method, args, onError, errorRecordedForStack) {\n    try {\n      if (args === undefined) {\n        method.call(target);\n      } else {\n        method.apply(target, args);\n      }\n    } catch (error) {\n      onError(error, errorRecordedForStack);\n    }\n  }\n}\nclass DeferredActionQueues {\n  constructor(queueNames = [], options) {\n    this.queues = {};\n    this.queueNameIndex = 0;\n    this.queueNames = queueNames;\n    queueNames.reduce(function (queues, queueName) {\n      queues[queueName] = new Queue(queueName, options[queueName], options);\n      return queues;\n    }, this.queues);\n  }\n  /**\n   * @method schedule\n   * @param {String} queueName\n   * @param {Any} target\n   * @param {Any} method\n   * @param {Any} args\n   * @param {Boolean} onceFlag\n   * @param {Any} stack\n   * @return queue\n   */\n  schedule(queueName, target, method, args, onceFlag, stack) {\n    let queues = this.queues;\n    let queue = queues[queueName];\n    if (queue === undefined) {\n      throw new Error(`You attempted to schedule an action in a queue (${queueName}) that doesn\\'t exist`);\n    }\n    if (method === undefined || method === null) {\n      throw new Error(`You attempted to schedule an action in a queue (${queueName}) for a method that doesn\\'t exist`);\n    }\n    this.queueNameIndex = 0;\n    if (onceFlag) {\n      return queue.pushUnique(target, method, args, stack);\n    } else {\n      return queue.push(target, method, args, stack);\n    }\n  }\n  /**\n   * DeferredActionQueues.flush() calls Queue.flush()\n   *\n   * @method flush\n   * @param {Boolean} fromAutorun\n   */\n  flush(fromAutorun = false) {\n    let queue;\n    let queueName;\n    let numberOfQueues = this.queueNames.length;\n    while (this.queueNameIndex < numberOfQueues) {\n      queueName = this.queueNames[this.queueNameIndex];\n      queue = this.queues[queueName];\n      if (queue.hasWork() === false) {\n        this.queueNameIndex++;\n        if (fromAutorun && this.queueNameIndex < numberOfQueues) {\n          return 1 /* Pause */;\n        }\n      } else {\n        if (queue.flush(false /* async */) === 1 /* Pause */) {\n          return 1 /* Pause */;\n        }\n      }\n    }\n  }\n  /**\n   * Returns debug information for the current queues.\n   *\n   * @method _getDebugInfo\n   * @param {Boolean} debugEnabled\n   * @returns {IDebugInfo | undefined}\n   */\n  _getDebugInfo(debugEnabled) {\n    if (debugEnabled) {\n      let debugInfo = {};\n      let queue;\n      let queueName;\n      let numberOfQueues = this.queueNames.length;\n      let i = 0;\n      while (i < numberOfQueues) {\n        queueName = this.queueNames[i];\n        queue = this.queues[queueName];\n        debugInfo[queueName] = queue._getDebugInfo(debugEnabled);\n        i++;\n      }\n      return debugInfo;\n    }\n    return;\n  }\n}\nfunction iteratorDrain(fn) {\n  let iterator = fn();\n  let result = iterator.next();\n  while (result.done === false) {\n    result.value();\n    result = iterator.next();\n  }\n}\nconst noop = function () {};\nconst DISABLE_SCHEDULE = Object.freeze([]);\nfunction parseArgs() {\n  let length = arguments.length;\n  let args;\n  let method;\n  let target;\n  if (length === 0) ;else if (length === 1) {\n    target = null;\n    method = arguments[0];\n  } else {\n    let argsIndex = 2;\n    let methodOrTarget = arguments[0];\n    let methodOrArgs = arguments[1];\n    let type = typeof methodOrArgs;\n    if (type === 'function') {\n      target = methodOrTarget;\n      method = methodOrArgs;\n    } else if (methodOrTarget !== null && type === 'string' && methodOrArgs in methodOrTarget) {\n      target = methodOrTarget;\n      method = target[methodOrArgs];\n    } else if (typeof methodOrTarget === 'function') {\n      argsIndex = 1;\n      target = null;\n      method = methodOrTarget;\n    }\n    if (length > argsIndex) {\n      let len = length - argsIndex;\n      args = new Array(len);\n      for (let i = 0; i < len; i++) {\n        args[i] = arguments[i + argsIndex];\n      }\n    }\n  }\n  return [target, method, args];\n}\nfunction parseTimerArgs() {\n  let [target, method, args] = parseArgs(...arguments);\n  let wait = 0;\n  let length = args !== undefined ? args.length : 0;\n  if (length > 0) {\n    let last = args[length - 1];\n    if (isCoercableNumber(last)) {\n      wait = parseInt(args.pop(), 10);\n    }\n  }\n  return [target, method, args, wait];\n}\nfunction parseDebounceArgs() {\n  let target;\n  let method;\n  let isImmediate;\n  let args;\n  let wait;\n  if (arguments.length === 2) {\n    method = arguments[0];\n    wait = arguments[1];\n    target = null;\n  } else {\n    [target, method, args] = parseArgs(...arguments);\n    if (args === undefined) {\n      wait = 0;\n    } else {\n      wait = args.pop();\n      if (!isCoercableNumber(wait)) {\n        isImmediate = wait === true;\n        wait = args.pop();\n      }\n    }\n  }\n  wait = parseInt(wait, 10);\n  return [target, method, args, wait, isImmediate];\n}\nlet UUID = 0;\nlet beginCount = 0;\nlet endCount = 0;\nlet beginEventCount = 0;\nlet endEventCount = 0;\nlet runCount = 0;\nlet joinCount = 0;\nlet deferCount = 0;\nlet scheduleCount = 0;\nlet scheduleIterableCount = 0;\nlet deferOnceCount = 0;\nlet scheduleOnceCount = 0;\nlet setTimeoutCount = 0;\nlet laterCount = 0;\nlet throttleCount = 0;\nlet debounceCount = 0;\nlet cancelTimersCount = 0;\nlet cancelCount = 0;\nlet autorunsCreatedCount = 0;\nlet autorunsCompletedCount = 0;\nlet deferredActionQueuesCreatedCount = 0;\nlet nestedDeferredActionQueuesCreated = 0;\nclass Backburner {\n  constructor(queueNames, options) {\n    this.DEBUG = false;\n    this.currentInstance = null;\n    this.instanceStack = [];\n    this._eventCallbacks = {\n      end: [],\n      begin: []\n    };\n    this._timerTimeoutId = null;\n    this._timers = [];\n    this._autorun = false;\n    this._autorunStack = null;\n    this.queueNames = queueNames;\n    this.options = options || {};\n    if (typeof this.options.defaultQueue === 'string') {\n      this._defaultQueue = this.options.defaultQueue;\n    } else {\n      this._defaultQueue = this.queueNames[0];\n    }\n    this._onBegin = this.options.onBegin || noop;\n    this._onEnd = this.options.onEnd || noop;\n    this._boundRunExpiredTimers = this._runExpiredTimers.bind(this);\n    this._boundAutorunEnd = () => {\n      autorunsCompletedCount++;\n      // if the autorun was already flushed, do nothing\n      if (this._autorun === false) {\n        return;\n      }\n      this._autorun = false;\n      this._autorunStack = null;\n      this._end(true /* fromAutorun */);\n    };\n    let builder = this.options._buildPlatform || buildPlatform;\n    this._platform = builder(this._boundAutorunEnd);\n  }\n  get counters() {\n    return {\n      begin: beginCount,\n      end: endCount,\n      events: {\n        begin: beginEventCount,\n        end: endEventCount\n      },\n      autoruns: {\n        created: autorunsCreatedCount,\n        completed: autorunsCompletedCount\n      },\n      run: runCount,\n      join: joinCount,\n      defer: deferCount,\n      schedule: scheduleCount,\n      scheduleIterable: scheduleIterableCount,\n      deferOnce: deferOnceCount,\n      scheduleOnce: scheduleOnceCount,\n      setTimeout: setTimeoutCount,\n      later: laterCount,\n      throttle: throttleCount,\n      debounce: debounceCount,\n      cancelTimers: cancelTimersCount,\n      cancel: cancelCount,\n      loops: {\n        total: deferredActionQueuesCreatedCount,\n        nested: nestedDeferredActionQueuesCreated\n      }\n    };\n  }\n  get defaultQueue() {\n    return this._defaultQueue;\n  }\n  /*\n    @method begin\n    @return instantiated class DeferredActionQueues\n  */\n  begin() {\n    beginCount++;\n    let options = this.options;\n    let previousInstance = this.currentInstance;\n    let current;\n    if (this._autorun !== false) {\n      current = previousInstance;\n      this._cancelAutorun();\n    } else {\n      if (previousInstance !== null) {\n        nestedDeferredActionQueuesCreated++;\n        this.instanceStack.push(previousInstance);\n      }\n      deferredActionQueuesCreatedCount++;\n      current = this.currentInstance = new DeferredActionQueues(this.queueNames, options);\n      beginEventCount++;\n      this._trigger('begin', current, previousInstance);\n    }\n    this._onBegin(current, previousInstance);\n    return current;\n  }\n  end() {\n    endCount++;\n    this._end(false);\n  }\n  on(eventName, callback) {\n    if (typeof callback !== 'function') {\n      throw new TypeError(`Callback must be a function`);\n    }\n    let callbacks = this._eventCallbacks[eventName];\n    if (callbacks !== undefined) {\n      callbacks.push(callback);\n    } else {\n      throw new TypeError(`Cannot on() event ${eventName} because it does not exist`);\n    }\n  }\n  off(eventName, callback) {\n    let callbacks = this._eventCallbacks[eventName];\n    if (!eventName || callbacks === undefined) {\n      throw new TypeError(`Cannot off() event ${eventName} because it does not exist`);\n    }\n    let callbackFound = false;\n    if (callback) {\n      for (let i = 0; i < callbacks.length; i++) {\n        if (callbacks[i] === callback) {\n          callbackFound = true;\n          callbacks.splice(i, 1);\n          i--;\n        }\n      }\n    }\n    if (!callbackFound) {\n      throw new TypeError(`Cannot off() callback that does not exist`);\n    }\n  }\n  run() {\n    runCount++;\n    let [target, method, args] = parseArgs(...arguments);\n    return this._run(target, method, args);\n  }\n  join() {\n    joinCount++;\n    let [target, method, args] = parseArgs(...arguments);\n    return this._join(target, method, args);\n  }\n  /**\n   * @deprecated please use schedule instead.\n   */\n  defer(queueName, target, method, ...args) {\n    deferCount++;\n    return this.schedule(queueName, target, method, ...args);\n  }\n  schedule(queueName, ..._args) {\n    scheduleCount++;\n    let [target, method, args] = parseArgs(..._args);\n    let stack = this.DEBUG ? new Error() : undefined;\n    return this._ensureInstance().schedule(queueName, target, method, args, false, stack);\n  }\n  /*\n    Defer the passed iterable of functions to run inside the specified queue.\n       @method scheduleIterable\n    @param {String} queueName\n    @param {Iterable} an iterable of functions to execute\n    @return method result\n  */\n  scheduleIterable(queueName, iterable) {\n    scheduleIterableCount++;\n    let stack = this.DEBUG ? new Error() : undefined;\n    return this._ensureInstance().schedule(queueName, null, iteratorDrain, [iterable], false, stack);\n  }\n  /**\n   * @deprecated please use scheduleOnce instead.\n   */\n  deferOnce(queueName, target, method, ...args) {\n    deferOnceCount++;\n    return this.scheduleOnce(queueName, target, method, ...args);\n  }\n  scheduleOnce(queueName, ..._args) {\n    scheduleOnceCount++;\n    let [target, method, args] = parseArgs(..._args);\n    let stack = this.DEBUG ? new Error() : undefined;\n    return this._ensureInstance().schedule(queueName, target, method, args, true, stack);\n  }\n  setTimeout() {\n    setTimeoutCount++;\n    return this.later(...arguments);\n  }\n  later() {\n    laterCount++;\n    let [target, method, args, wait] = parseTimerArgs(...arguments);\n    return this._later(target, method, args, wait);\n  }\n  throttle() {\n    throttleCount++;\n    let [target, method, args, wait, isImmediate = true] = parseDebounceArgs(...arguments);\n    let index = findTimerItem(target, method, this._timers);\n    let timerId;\n    if (index === -1) {\n      timerId = this._later(target, method, isImmediate ? DISABLE_SCHEDULE : args, wait);\n      if (isImmediate) {\n        this._join(target, method, args);\n      }\n    } else {\n      timerId = this._timers[index + 1];\n      let argIndex = index + 4;\n      if (this._timers[argIndex] !== DISABLE_SCHEDULE) {\n        this._timers[argIndex] = args;\n      }\n    }\n    return timerId;\n  }\n  debounce() {\n    debounceCount++;\n    let [target, method, args, wait, isImmediate = false] = parseDebounceArgs(...arguments);\n    let _timers = this._timers;\n    let index = findTimerItem(target, method, _timers);\n    let timerId;\n    if (index === -1) {\n      timerId = this._later(target, method, isImmediate ? DISABLE_SCHEDULE : args, wait);\n      if (isImmediate) {\n        this._join(target, method, args);\n      }\n    } else {\n      let executeAt = this._platform.now() + wait;\n      let argIndex = index + 4;\n      if (_timers[argIndex] === DISABLE_SCHEDULE) {\n        args = DISABLE_SCHEDULE;\n      }\n      timerId = _timers[index + 1];\n      let i = binarySearch(executeAt, _timers);\n      if (index + TIMERS_OFFSET === i) {\n        _timers[index] = executeAt;\n        _timers[argIndex] = args;\n      } else {\n        let stack = this._timers[index + 5];\n        this._timers.splice(i, 0, executeAt, timerId, target, method, args, stack);\n        this._timers.splice(index, TIMERS_OFFSET);\n      }\n      if (index === 0) {\n        this._reinstallTimerTimeout();\n      }\n    }\n    return timerId;\n  }\n  cancelTimers() {\n    cancelTimersCount++;\n    this._clearTimerTimeout();\n    this._timers = [];\n    this._cancelAutorun();\n  }\n  hasTimers() {\n    return this._timers.length > 0 || this._autorun;\n  }\n  cancel(timer) {\n    cancelCount++;\n    if (timer === null || timer === undefined) {\n      return false;\n    }\n    let timerType = typeof timer;\n    if (timerType === 'number') {\n      // we're cancelling a setTimeout or throttle or debounce\n      return this._cancelLaterTimer(timer);\n    } else if (timerType === 'object' && timer.queue && timer.method) {\n      // we're cancelling a deferOnce\n      return timer.queue.cancel(timer);\n    }\n    return false;\n  }\n  ensureInstance() {\n    this._ensureInstance();\n  }\n  /**\n   * Returns debug information related to the current instance of Backburner\n   *\n   * @method getDebugInfo\n   * @returns {Object | undefined} Will return and Object containing debug information if\n   * the DEBUG flag is set to true on the current instance of Backburner, else undefined.\n   */\n  getDebugInfo() {\n    if (this.DEBUG) {\n      return {\n        autorun: this._autorunStack,\n        counters: this.counters,\n        timers: getQueueItems(this._timers, TIMERS_OFFSET, 2),\n        instanceStack: [this.currentInstance, ...this.instanceStack].map(deferredActionQueue => deferredActionQueue && deferredActionQueue._getDebugInfo(this.DEBUG))\n      };\n    }\n    return undefined;\n  }\n  _end(fromAutorun) {\n    let currentInstance = this.currentInstance;\n    let nextInstance = null;\n    if (currentInstance === null) {\n      throw new Error(`end called without begin`);\n    }\n    // Prevent double-finally bug in Safari 6.0.2 and iOS 6\n    // This bug appears to be resolved in Safari 6.0.5 and iOS 7\n    let finallyAlreadyCalled = false;\n    let result;\n    try {\n      result = currentInstance.flush(fromAutorun);\n    } finally {\n      if (!finallyAlreadyCalled) {\n        finallyAlreadyCalled = true;\n        if (result === 1 /* Pause */) {\n          const plannedNextQueue = this.queueNames[currentInstance.queueNameIndex];\n          this._scheduleAutorun(plannedNextQueue);\n        } else {\n          this.currentInstance = null;\n          if (this.instanceStack.length > 0) {\n            nextInstance = this.instanceStack.pop();\n            this.currentInstance = nextInstance;\n          }\n          this._trigger('end', currentInstance, nextInstance);\n          this._onEnd(currentInstance, nextInstance);\n        }\n      }\n    }\n  }\n  _join(target, method, args) {\n    if (this.currentInstance === null) {\n      return this._run(target, method, args);\n    }\n    if (target === undefined && args === undefined) {\n      return method();\n    } else {\n      return method.apply(target, args);\n    }\n  }\n  _run(target, method, args) {\n    let onError = getOnError(this.options);\n    this.begin();\n    if (onError) {\n      try {\n        return method.apply(target, args);\n      } catch (error) {\n        onError(error);\n      } finally {\n        this.end();\n      }\n    } else {\n      try {\n        return method.apply(target, args);\n      } finally {\n        this.end();\n      }\n    }\n  }\n  _cancelAutorun() {\n    if (this._autorun) {\n      this._platform.clearNext();\n      this._autorun = false;\n      this._autorunStack = null;\n    }\n  }\n  _later(target, method, args, wait) {\n    let stack = this.DEBUG ? new Error() : undefined;\n    let executeAt = this._platform.now() + wait;\n    let id = UUID++;\n    if (this._timers.length === 0) {\n      this._timers.push(executeAt, id, target, method, args, stack);\n      this._installTimerTimeout();\n    } else {\n      // find position to insert\n      let i = binarySearch(executeAt, this._timers);\n      this._timers.splice(i, 0, executeAt, id, target, method, args, stack);\n      // always reinstall since it could be out of sync\n      this._reinstallTimerTimeout();\n    }\n    return id;\n  }\n  _cancelLaterTimer(timer) {\n    for (let i = 1; i < this._timers.length; i += TIMERS_OFFSET) {\n      if (this._timers[i] === timer) {\n        this._timers.splice(i - 1, TIMERS_OFFSET);\n        if (i === 1) {\n          this._reinstallTimerTimeout();\n        }\n        return true;\n      }\n    }\n    return false;\n  }\n  /**\n   Trigger an event. Supports up to two arguments. Designed around\n   triggering transition events from one run loop instance to the\n   next, which requires an argument for the  instance and then\n   an argument for the next instance.\n      @private\n   @method _trigger\n   @param {String} eventName\n   @param {any} arg1\n   @param {any} arg2\n   */\n  _trigger(eventName, arg1, arg2) {\n    let callbacks = this._eventCallbacks[eventName];\n    if (callbacks !== undefined) {\n      for (let i = 0; i < callbacks.length; i++) {\n        callbacks[i](arg1, arg2);\n      }\n    }\n  }\n  _runExpiredTimers() {\n    this._timerTimeoutId = null;\n    if (this._timers.length > 0) {\n      this.begin();\n      this._scheduleExpiredTimers();\n      this.end();\n    }\n  }\n  _scheduleExpiredTimers() {\n    let timers = this._timers;\n    let i = 0;\n    let l = timers.length;\n    let defaultQueue = this._defaultQueue;\n    let n = this._platform.now();\n    for (; i < l; i += TIMERS_OFFSET) {\n      let executeAt = timers[i];\n      if (executeAt > n) {\n        break;\n      }\n      let args = timers[i + 4];\n      if (args !== DISABLE_SCHEDULE) {\n        let target = timers[i + 2];\n        let method = timers[i + 3];\n        let stack = timers[i + 5];\n        this.currentInstance.schedule(defaultQueue, target, method, args, false, stack);\n      }\n    }\n    timers.splice(0, i);\n    this._installTimerTimeout();\n  }\n  _reinstallTimerTimeout() {\n    this._clearTimerTimeout();\n    this._installTimerTimeout();\n  }\n  _clearTimerTimeout() {\n    if (this._timerTimeoutId === null) {\n      return;\n    }\n    this._platform.clearTimeout(this._timerTimeoutId);\n    this._timerTimeoutId = null;\n  }\n  _installTimerTimeout() {\n    if (this._timers.length === 0) {\n      return;\n    }\n    let minExpiresAt = this._timers[0];\n    let n = this._platform.now();\n    let wait = Math.max(0, minExpiresAt - n);\n    this._timerTimeoutId = this._platform.setTimeout(this._boundRunExpiredTimers, wait);\n  }\n  _ensureInstance() {\n    let currentInstance = this.currentInstance;\n    if (currentInstance === null) {\n      this._autorunStack = this.DEBUG ? new Error() : undefined;\n      currentInstance = this.begin();\n      this._scheduleAutorun(this.queueNames[0]);\n    }\n    return currentInstance;\n  }\n  _scheduleAutorun(plannedNextQueue) {\n    autorunsCreatedCount++;\n    const next = this._platform.next;\n    const flush = this.options.flush;\n    if (flush) {\n      flush(plannedNextQueue, next);\n    } else {\n      next();\n    }\n    this._autorun = true;\n  }\n}\nBackburner.Queue = Queue;\nBackburner.buildPlatform = buildPlatform;\nBackburner.buildNext = buildNext;\n\nexport { buildPlatform, Backburner as default };\n","/**\n * A topologically ordered map of key/value pairs with a simple API for adding constraints.\n *\n * Edges can forward reference keys that have not been added yet (the forward reference will\n * map the key to undefined).\n */\nvar DAG = function () {\n  function DAG() {\n    this._vertices = new Vertices();\n  }\n  /**\n   * Adds a key/value pair with dependencies on other key/value pairs.\n   *\n   * @public\n   * @param key    The key of the vertex to be added.\n   * @param value  The value of that vertex.\n   * @param before A key or array of keys of the vertices that must\n   *               be visited before this vertex.\n   * @param after  An string or array of strings with the keys of the\n   *               vertices that must be after this vertex is visited.\n   */\n  DAG.prototype.add = function (key, value, before, after) {\n    if (!key) throw new Error('argument `key` is required');\n    var vertices = this._vertices;\n    var v = vertices.add(key);\n    v.val = value;\n    if (before) {\n      if (typeof before === \"string\") {\n        vertices.addEdge(v, vertices.add(before));\n      } else {\n        for (var i = 0; i < before.length; i++) {\n          vertices.addEdge(v, vertices.add(before[i]));\n        }\n      }\n    }\n    if (after) {\n      if (typeof after === \"string\") {\n        vertices.addEdge(vertices.add(after), v);\n      } else {\n        for (var i = 0; i < after.length; i++) {\n          vertices.addEdge(vertices.add(after[i]), v);\n        }\n      }\n    }\n  };\n  /**\n   * @deprecated please use add.\n   */\n  DAG.prototype.addEdges = function (key, value, before, after) {\n    this.add(key, value, before, after);\n  };\n  /**\n   * Visits key/value pairs in topological order.\n   *\n   * @public\n   * @param callback The function to be invoked with each key/value.\n   */\n  DAG.prototype.each = function (callback) {\n    this._vertices.walk(callback);\n  };\n  /**\n   * @deprecated please use each.\n   */\n  DAG.prototype.topsort = function (callback) {\n    this.each(callback);\n  };\n  return DAG;\n}();\n/** @private */\nvar Vertices = function () {\n  function Vertices() {\n    this.length = 0;\n    this.stack = new IntStack();\n    this.path = new IntStack();\n    this.result = new IntStack();\n  }\n  Vertices.prototype.add = function (key) {\n    if (!key) throw new Error(\"missing key\");\n    var l = this.length | 0;\n    var vertex;\n    for (var i = 0; i < l; i++) {\n      vertex = this[i];\n      if (vertex.key === key) return vertex;\n    }\n    this.length = l + 1;\n    return this[l] = {\n      idx: l,\n      key: key,\n      val: undefined,\n      out: false,\n      flag: false,\n      length: 0\n    };\n  };\n  Vertices.prototype.addEdge = function (v, w) {\n    this.check(v, w.key);\n    var l = w.length | 0;\n    for (var i = 0; i < l; i++) {\n      if (w[i] === v.idx) return;\n    }\n    w.length = l + 1;\n    w[l] = v.idx;\n    v.out = true;\n  };\n  Vertices.prototype.walk = function (cb) {\n    this.reset();\n    for (var i = 0; i < this.length; i++) {\n      var vertex = this[i];\n      if (vertex.out) continue;\n      this.visit(vertex, \"\");\n    }\n    this.each(this.result, cb);\n  };\n  Vertices.prototype.check = function (v, w) {\n    if (v.key === w) {\n      throw new Error(\"cycle detected: \" + w + \" <- \" + w);\n    }\n    // quick check\n    if (v.length === 0) return;\n    // shallow check\n    for (var i = 0; i < v.length; i++) {\n      var key = this[v[i]].key;\n      if (key === w) {\n        throw new Error(\"cycle detected: \" + w + \" <- \" + v.key + \" <- \" + w);\n      }\n    }\n    // deep check\n    this.reset();\n    this.visit(v, w);\n    if (this.path.length > 0) {\n      var msg_1 = \"cycle detected: \" + w;\n      this.each(this.path, function (key) {\n        msg_1 += \" <- \" + key;\n      });\n      throw new Error(msg_1);\n    }\n  };\n  Vertices.prototype.reset = function () {\n    this.stack.length = 0;\n    this.path.length = 0;\n    this.result.length = 0;\n    for (var i = 0, l = this.length; i < l; i++) {\n      this[i].flag = false;\n    }\n  };\n  Vertices.prototype.visit = function (start, search) {\n    var _a = this,\n      stack = _a.stack,\n      path = _a.path,\n      result = _a.result;\n    stack.push(start.idx);\n    while (stack.length) {\n      var index = stack.pop() | 0;\n      if (index >= 0) {\n        // enter\n        var vertex = this[index];\n        if (vertex.flag) continue;\n        vertex.flag = true;\n        path.push(index);\n        if (search === vertex.key) break;\n        // push exit\n        stack.push(~index);\n        this.pushIncoming(vertex);\n      } else {\n        // exit\n        path.pop();\n        result.push(~index);\n      }\n    }\n  };\n  Vertices.prototype.pushIncoming = function (incomming) {\n    var stack = this.stack;\n    for (var i = incomming.length - 1; i >= 0; i--) {\n      var index = incomming[i];\n      if (!this[index].flag) {\n        stack.push(index);\n      }\n    }\n  };\n  Vertices.prototype.each = function (indices, cb) {\n    for (var i = 0, l = indices.length; i < l; i++) {\n      var vertex = this[indices[i]];\n      cb(vertex.key, vertex.val);\n    }\n  };\n  return Vertices;\n}();\n/** @private */\nvar IntStack = function () {\n  function IntStack() {\n    this.length = 0;\n  }\n  IntStack.prototype.push = function (n) {\n    this[this.length++] = n | 0;\n  };\n  IntStack.prototype.pop = function () {\n    return this[--this.length] | 0;\n  };\n  return IntStack;\n}();\n\nexport { DAG as default };\n","// this file gets replaced with the real value during the build\nconst VERSION = '7.4.0';\n\nexport { VERSION as default };\n","var createObject = Object.create;\nfunction createMap() {\n  var map = createObject(null);\n  map[\"__\"] = undefined;\n  delete map[\"__\"];\n  return map;\n}\nvar Target = function Target(path, matcher, delegate) {\n  this.path = path;\n  this.matcher = matcher;\n  this.delegate = delegate;\n};\nTarget.prototype.to = function to(target, callback) {\n  var delegate = this.delegate;\n  if (delegate && delegate.willAddRoute) {\n    target = delegate.willAddRoute(this.matcher.target, target);\n  }\n  this.matcher.add(this.path, target);\n  if (callback) {\n    if (callback.length === 0) {\n      throw new Error(\"You must have an argument in the function passed to `to`\");\n    }\n    this.matcher.addChild(this.path, target, callback, this.delegate);\n  }\n};\nvar Matcher = function Matcher(target) {\n  this.routes = createMap();\n  this.children = createMap();\n  this.target = target;\n};\nMatcher.prototype.add = function add(path, target) {\n  this.routes[path] = target;\n};\nMatcher.prototype.addChild = function addChild(path, target, callback, delegate) {\n  var matcher = new Matcher(target);\n  this.children[path] = matcher;\n  var match = generateMatch(path, matcher, delegate);\n  if (delegate && delegate.contextEntered) {\n    delegate.contextEntered(target, match);\n  }\n  callback(match);\n};\nfunction generateMatch(startingPath, matcher, delegate) {\n  function match(path, callback) {\n    var fullPath = startingPath + path;\n    if (callback) {\n      callback(generateMatch(fullPath, matcher, delegate));\n    } else {\n      return new Target(fullPath, matcher, delegate);\n    }\n  }\n  return match;\n}\nfunction addRoute(routeArray, path, handler) {\n  var len = 0;\n  for (var i = 0; i < routeArray.length; i++) {\n    len += routeArray[i].path.length;\n  }\n  path = path.substr(len);\n  var route = {\n    path: path,\n    handler: handler\n  };\n  routeArray.push(route);\n}\nfunction eachRoute(baseRoute, matcher, callback, binding) {\n  var routes = matcher.routes;\n  var paths = Object.keys(routes);\n  for (var i = 0; i < paths.length; i++) {\n    var path = paths[i];\n    var routeArray = baseRoute.slice();\n    addRoute(routeArray, path, routes[path]);\n    var nested = matcher.children[path];\n    if (nested) {\n      eachRoute(routeArray, nested, callback, binding);\n    } else {\n      callback.call(binding, routeArray);\n    }\n  }\n}\nvar map = function (callback, addRouteCallback) {\n  var matcher = new Matcher();\n  callback(generateMatch(\"\", matcher, this.delegate));\n  eachRoute([], matcher, function (routes) {\n    if (addRouteCallback) {\n      addRouteCallback(this, routes);\n    } else {\n      this.add(routes);\n    }\n  }, this);\n};\n\n// Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded\n// values that are not reserved (i.e., unicode characters, emoji, etc). The reserved\n// chars are \"/\" and \"%\".\n// Safe to call multiple times on the same path.\n// Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded\nfunction normalizePath(path) {\n  return path.split(\"/\").map(normalizeSegment).join(\"/\");\n}\n// We want to ensure the characters \"%\" and \"/\" remain in percent-encoded\n// form when normalizing paths, so replace them with their encoded form after\n// decoding the rest of the path\nvar SEGMENT_RESERVED_CHARS = /%|\\//g;\nfunction normalizeSegment(segment) {\n  if (segment.length < 3 || segment.indexOf(\"%\") === -1) {\n    return segment;\n  }\n  return decodeURIComponent(segment).replace(SEGMENT_RESERVED_CHARS, encodeURIComponent);\n}\n// We do not want to encode these characters when generating dynamic path segments\n// See https://tools.ietf.org/html/rfc3986#section-3.3\n// sub-delims: \"!\", \"$\", \"&\", \"'\", \"(\", \")\", \"*\", \"+\", \",\", \";\", \"=\"\n// others allowed by RFC 3986: \":\", \"@\"\n//\n// First encode the entire path segment, then decode any of the encoded special chars.\n//\n// The chars \"!\", \"'\", \"(\", \")\", \"*\" do not get changed by `encodeURIComponent`,\n// so the possible encoded chars are:\n// ['%24', '%26', '%2B', '%2C', '%3B', '%3D', '%3A', '%40'].\nvar PATH_SEGMENT_ENCODINGS = /%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g;\nfunction encodePathSegment(str) {\n  return encodeURIComponent(str).replace(PATH_SEGMENT_ENCODINGS, decodeURIComponent);\n}\nvar escapeRegex = /(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)/g;\nvar isArray = Array.isArray;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction getParam(params, key) {\n  if (typeof params !== \"object\" || params === null) {\n    throw new Error(\"You must pass an object as the second argument to `generate`.\");\n  }\n  if (!hasOwnProperty.call(params, key)) {\n    throw new Error(\"You must provide param `\" + key + \"` to `generate`.\");\n  }\n  var value = params[key];\n  var str = typeof value === \"string\" ? value : \"\" + value;\n  if (str.length === 0) {\n    throw new Error(\"You must provide a param `\" + key + \"`.\");\n  }\n  return str;\n}\nvar eachChar = [];\neachChar[0 /* Static */] = function (segment, currentState) {\n  var state = currentState;\n  var value = segment.value;\n  for (var i = 0; i < value.length; i++) {\n    var ch = value.charCodeAt(i);\n    state = state.put(ch, false, false);\n  }\n  return state;\n};\neachChar[1 /* Dynamic */] = function (_, currentState) {\n  return currentState.put(47 /* SLASH */, true, true);\n};\neachChar[2 /* Star */] = function (_, currentState) {\n  return currentState.put(-1 /* ANY */, false, true);\n};\neachChar[4 /* Epsilon */] = function (_, currentState) {\n  return currentState;\n};\nvar regex = [];\nregex[0 /* Static */] = function (segment) {\n  return segment.value.replace(escapeRegex, \"\\\\$1\");\n};\nregex[1 /* Dynamic */] = function () {\n  return \"([^/]+)\";\n};\nregex[2 /* Star */] = function () {\n  return \"(.+)\";\n};\nregex[4 /* Epsilon */] = function () {\n  return \"\";\n};\nvar generate = [];\ngenerate[0 /* Static */] = function (segment) {\n  return segment.value;\n};\ngenerate[1 /* Dynamic */] = function (segment, params) {\n  var value = getParam(params, segment.value);\n  if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n    return encodePathSegment(value);\n  } else {\n    return value;\n  }\n};\ngenerate[2 /* Star */] = function (segment, params) {\n  return getParam(params, segment.value);\n};\ngenerate[4 /* Epsilon */] = function () {\n  return \"\";\n};\nvar EmptyObject = Object.freeze({});\nvar EmptyArray = Object.freeze([]);\n// The `names` will be populated with the paramter name for each dynamic/star\n// segment. `shouldDecodes` will be populated with a boolean for each dyanamic/star\n// segment, indicating whether it should be decoded during recognition.\nfunction parse(segments, route, types) {\n  // normalize route as not starting with a \"/\". Recognition will\n  // also normalize.\n  if (route.length > 0 && route.charCodeAt(0) === 47 /* SLASH */) {\n    route = route.substr(1);\n  }\n  var parts = route.split(\"/\");\n  var names = undefined;\n  var shouldDecodes = undefined;\n  for (var i = 0; i < parts.length; i++) {\n    var part = parts[i];\n    var flags = 0;\n    var type = 0;\n    if (part === \"\") {\n      type = 4 /* Epsilon */;\n    } else if (part.charCodeAt(0) === 58 /* COLON */) {\n      type = 1 /* Dynamic */;\n    } else if (part.charCodeAt(0) === 42 /* STAR */) {\n      type = 2 /* Star */;\n    } else {\n      type = 0 /* Static */;\n    }\n    flags = 2 << type;\n    if (flags & 12 /* Named */) {\n      part = part.slice(1);\n      names = names || [];\n      names.push(part);\n      shouldDecodes = shouldDecodes || [];\n      shouldDecodes.push((flags & 4 /* Decoded */) !== 0);\n    }\n    if (flags & 14 /* Counted */) {\n      types[type]++;\n    }\n    segments.push({\n      type: type,\n      value: normalizeSegment(part)\n    });\n  }\n  return {\n    names: names || EmptyArray,\n    shouldDecodes: shouldDecodes || EmptyArray\n  };\n}\nfunction isEqualCharSpec(spec, char, negate) {\n  return spec.char === char && spec.negate === negate;\n}\n// A State has a character specification and (`charSpec`) and a list of possible\n// subsequent states (`nextStates`).\n//\n// If a State is an accepting state, it will also have several additional\n// properties:\n//\n// * `regex`: A regular expression that is used to extract parameters from paths\n//   that reached this accepting state.\n// * `handlers`: Information on how to convert the list of captures into calls\n//   to registered handlers with the specified parameters\n// * `types`: How many static, dynamic or star segments in this route. Used to\n//   decide which route to use if multiple registered routes match a path.\n//\n// Currently, State is implemented naively by looping over `nextStates` and\n// comparing a character specification against a character. A more efficient\n// implementation would use a hash of keys pointing at one or more next states.\nvar State = function State(states, id, char, negate, repeat) {\n  this.states = states;\n  this.id = id;\n  this.char = char;\n  this.negate = negate;\n  this.nextStates = repeat ? id : null;\n  this.pattern = \"\";\n  this._regex = undefined;\n  this.handlers = undefined;\n  this.types = undefined;\n};\nState.prototype.regex = function regex$1() {\n  if (!this._regex) {\n    this._regex = new RegExp(this.pattern);\n  }\n  return this._regex;\n};\nState.prototype.get = function get(char, negate) {\n  var this$1$1 = this;\n  var nextStates = this.nextStates;\n  if (nextStates === null) {\n    return;\n  }\n  if (isArray(nextStates)) {\n    for (var i = 0; i < nextStates.length; i++) {\n      var child = this$1$1.states[nextStates[i]];\n      if (isEqualCharSpec(child, char, negate)) {\n        return child;\n      }\n    }\n  } else {\n    var child$1 = this.states[nextStates];\n    if (isEqualCharSpec(child$1, char, negate)) {\n      return child$1;\n    }\n  }\n};\nState.prototype.put = function put(char, negate, repeat) {\n  var state;\n  // If the character specification already exists in a child of the current\n  // state, just return that state.\n  if (state = this.get(char, negate)) {\n    return state;\n  }\n  // Make a new state for the character spec\n  var states = this.states;\n  state = new State(states, states.length, char, negate, repeat);\n  states[states.length] = state;\n  // Insert the new state as a child of the current state\n  if (this.nextStates == null) {\n    this.nextStates = state.id;\n  } else if (isArray(this.nextStates)) {\n    this.nextStates.push(state.id);\n  } else {\n    this.nextStates = [this.nextStates, state.id];\n  }\n  // Return the new state\n  return state;\n};\n// Find a list of child states matching the next character\nState.prototype.match = function match(ch) {\n  var this$1$1 = this;\n  var nextStates = this.nextStates;\n  if (!nextStates) {\n    return [];\n  }\n  var returned = [];\n  if (isArray(nextStates)) {\n    for (var i = 0; i < nextStates.length; i++) {\n      var child = this$1$1.states[nextStates[i]];\n      if (isMatch(child, ch)) {\n        returned.push(child);\n      }\n    }\n  } else {\n    var child$1 = this.states[nextStates];\n    if (isMatch(child$1, ch)) {\n      returned.push(child$1);\n    }\n  }\n  return returned;\n};\nfunction isMatch(spec, char) {\n  return spec.negate ? spec.char !== char && spec.char !== -1 /* ANY */ : spec.char === char || spec.char === -1 /* ANY */;\n}\n// This is a somewhat naive strategy, but should work in a lot of cases\n// A better strategy would properly resolve /posts/:id/new and /posts/edit/:id.\n//\n// This strategy generally prefers more static and less dynamic matching.\n// Specifically, it\n//\n//  * prefers fewer stars to more, then\n//  * prefers using stars for less of the match to more, then\n//  * prefers fewer dynamic segments to more, then\n//  * prefers more static segments to more\nfunction sortSolutions(states) {\n  return states.sort(function (a, b) {\n    var ref = a.types || [0, 0, 0];\n    var astatics = ref[0];\n    var adynamics = ref[1];\n    var astars = ref[2];\n    var ref$1 = b.types || [0, 0, 0];\n    var bstatics = ref$1[0];\n    var bdynamics = ref$1[1];\n    var bstars = ref$1[2];\n    if (astars !== bstars) {\n      return astars - bstars;\n    }\n    if (astars) {\n      if (astatics !== bstatics) {\n        return bstatics - astatics;\n      }\n      if (adynamics !== bdynamics) {\n        return bdynamics - adynamics;\n      }\n    }\n    if (adynamics !== bdynamics) {\n      return adynamics - bdynamics;\n    }\n    if (astatics !== bstatics) {\n      return bstatics - astatics;\n    }\n    return 0;\n  });\n}\nfunction recognizeChar(states, ch) {\n  var nextStates = [];\n  for (var i = 0, l = states.length; i < l; i++) {\n    var state = states[i];\n    nextStates = nextStates.concat(state.match(ch));\n  }\n  return nextStates;\n}\nvar RecognizeResults = function RecognizeResults(queryParams) {\n  this.length = 0;\n  this.queryParams = queryParams || {};\n};\nRecognizeResults.prototype.splice = Array.prototype.splice;\nRecognizeResults.prototype.slice = Array.prototype.slice;\nRecognizeResults.prototype.push = Array.prototype.push;\nfunction findHandler(state, originalPath, queryParams) {\n  var handlers = state.handlers;\n  var regex = state.regex();\n  if (!regex || !handlers) {\n    throw new Error(\"state not initialized\");\n  }\n  var captures = originalPath.match(regex);\n  var currentCapture = 1;\n  var result = new RecognizeResults(queryParams);\n  result.length = handlers.length;\n  for (var i = 0; i < handlers.length; i++) {\n    var handler = handlers[i];\n    var names = handler.names;\n    var shouldDecodes = handler.shouldDecodes;\n    var params = EmptyObject;\n    var isDynamic = false;\n    if (names !== EmptyArray && shouldDecodes !== EmptyArray) {\n      for (var j = 0; j < names.length; j++) {\n        isDynamic = true;\n        var name = names[j];\n        var capture = captures && captures[currentCapture++];\n        if (params === EmptyObject) {\n          params = {};\n        }\n        if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS && shouldDecodes[j]) {\n          params[name] = capture && decodeURIComponent(capture);\n        } else {\n          params[name] = capture;\n        }\n      }\n    }\n    result[i] = {\n      handler: handler.handler,\n      params: params,\n      isDynamic: isDynamic\n    };\n  }\n  return result;\n}\nfunction decodeQueryParamPart(part) {\n  // http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1\n  part = part.replace(/\\+/gm, \"%20\");\n  var result;\n  try {\n    result = decodeURIComponent(part);\n  } catch (error) {\n    result = \"\";\n  }\n  return result;\n}\nvar RouteRecognizer = function RouteRecognizer() {\n  this.names = createMap();\n  var states = [];\n  var state = new State(states, 0, -1 /* ANY */, true, false);\n  states[0] = state;\n  this.states = states;\n  this.rootState = state;\n};\nRouteRecognizer.prototype.add = function add(routes, options) {\n  var currentState = this.rootState;\n  var pattern = \"^\";\n  var types = [0, 0, 0];\n  var handlers = new Array(routes.length);\n  var allSegments = [];\n  var isEmpty = true;\n  var j = 0;\n  for (var i = 0; i < routes.length; i++) {\n    var route = routes[i];\n    var ref = parse(allSegments, route.path, types);\n    var names = ref.names;\n    var shouldDecodes = ref.shouldDecodes;\n    // preserve j so it points to the start of newly added segments\n    for (; j < allSegments.length; j++) {\n      var segment = allSegments[j];\n      if (segment.type === 4 /* Epsilon */) {\n        continue;\n      }\n      isEmpty = false;\n      // Add a \"/\" for the new segment\n      currentState = currentState.put(47 /* SLASH */, false, false);\n      pattern += \"/\";\n      // Add a representation of the segment to the NFA and regex\n      currentState = eachChar[segment.type](segment, currentState);\n      pattern += regex[segment.type](segment);\n    }\n    handlers[i] = {\n      handler: route.handler,\n      names: names,\n      shouldDecodes: shouldDecodes\n    };\n  }\n  if (isEmpty) {\n    currentState = currentState.put(47 /* SLASH */, false, false);\n    pattern += \"/\";\n  }\n  currentState.handlers = handlers;\n  currentState.pattern = pattern + \"$\";\n  currentState.types = types;\n  var name;\n  if (typeof options === \"object\" && options !== null && options.as) {\n    name = options.as;\n  }\n  if (name) {\n    // if (this.names[name]) {\n    //   throw new Error(\"You may not add a duplicate route named `\" + name + \"`.\");\n    // }\n    this.names[name] = {\n      segments: allSegments,\n      handlers: handlers\n    };\n  }\n};\nRouteRecognizer.prototype.handlersFor = function handlersFor(name) {\n  var route = this.names[name];\n  if (!route) {\n    throw new Error(\"There is no route named \" + name);\n  }\n  var result = new Array(route.handlers.length);\n  for (var i = 0; i < route.handlers.length; i++) {\n    var handler = route.handlers[i];\n    result[i] = handler;\n  }\n  return result;\n};\nRouteRecognizer.prototype.hasRoute = function hasRoute(name) {\n  return !!this.names[name];\n};\nRouteRecognizer.prototype.generate = function generate$1(name, params) {\n  var route = this.names[name];\n  var output = \"\";\n  if (!route) {\n    throw new Error(\"There is no route named \" + name);\n  }\n  var segments = route.segments;\n  for (var i = 0; i < segments.length; i++) {\n    var segment = segments[i];\n    if (segment.type === 4 /* Epsilon */) {\n      continue;\n    }\n    output += \"/\";\n    output += generate[segment.type](segment, params);\n  }\n  if (output.charAt(0) !== \"/\") {\n    output = \"/\" + output;\n  }\n  if (params && params.queryParams) {\n    output += this.generateQueryString(params.queryParams);\n  }\n  return output;\n};\nRouteRecognizer.prototype.generateQueryString = function generateQueryString(params) {\n  var pairs = [];\n  var keys = Object.keys(params);\n  keys.sort();\n  for (var i = 0; i < keys.length; i++) {\n    var key = keys[i];\n    var value = params[key];\n    if (value == null) {\n      continue;\n    }\n    var pair = encodeURIComponent(key);\n    if (isArray(value)) {\n      for (var j = 0; j < value.length; j++) {\n        var arrayPair = key + \"[]\" + \"=\" + encodeURIComponent(value[j]);\n        pairs.push(arrayPair);\n      }\n    } else {\n      pair += \"=\" + encodeURIComponent(value);\n      pairs.push(pair);\n    }\n  }\n  if (pairs.length === 0) {\n    return \"\";\n  }\n  return \"?\" + pairs.join(\"&\");\n};\nRouteRecognizer.prototype.parseQueryString = function parseQueryString(queryString) {\n  var pairs = queryString.split(\"&\");\n  var queryParams = {};\n  for (var i = 0; i < pairs.length; i++) {\n    var pair = pairs[i].split(\"=\"),\n      key = decodeQueryParamPart(pair[0]),\n      keyLength = key.length,\n      isArray = false,\n      value = void 0;\n    if (pair.length === 1) {\n      value = \"true\";\n    } else {\n      // Handle arrays\n      if (keyLength > 2 && key.slice(keyLength - 2) === \"[]\") {\n        isArray = true;\n        key = key.slice(0, keyLength - 2);\n        if (!queryParams[key]) {\n          queryParams[key] = [];\n        }\n      }\n      value = pair[1] ? decodeQueryParamPart(pair[1]) : \"\";\n    }\n    if (isArray) {\n      queryParams[key].push(value);\n    } else {\n      queryParams[key] = value;\n    }\n  }\n  return queryParams;\n};\nRouteRecognizer.prototype.recognize = function recognize(path) {\n  var results;\n  var states = [this.rootState];\n  var queryParams = {};\n  var isSlashDropped = false;\n  var hashStart = path.indexOf(\"#\");\n  if (hashStart !== -1) {\n    path = path.substr(0, hashStart);\n  }\n  var queryStart = path.indexOf(\"?\");\n  if (queryStart !== -1) {\n    var queryString = path.substr(queryStart + 1, path.length);\n    path = path.substr(0, queryStart);\n    queryParams = this.parseQueryString(queryString);\n  }\n  if (path.charAt(0) !== \"/\") {\n    path = \"/\" + path;\n  }\n  var originalPath = path;\n  if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n    path = normalizePath(path);\n  } else {\n    path = decodeURI(path);\n    originalPath = decodeURI(originalPath);\n  }\n  var pathLen = path.length;\n  if (pathLen > 1 && path.charAt(pathLen - 1) === \"/\") {\n    path = path.substr(0, pathLen - 1);\n    originalPath = originalPath.substr(0, originalPath.length - 1);\n    isSlashDropped = true;\n  }\n  for (var i = 0; i < path.length; i++) {\n    states = recognizeChar(states, path.charCodeAt(i));\n    if (!states.length) {\n      break;\n    }\n  }\n  var solutions = [];\n  for (var i$1 = 0; i$1 < states.length; i$1++) {\n    if (states[i$1].handlers) {\n      solutions.push(states[i$1]);\n    }\n  }\n  states = sortSolutions(solutions);\n  var state = solutions[0];\n  if (state && state.handlers) {\n    // if a trailing slash was dropped and a star segment is the last segment\n    // specified, put the trailing slash back\n    if (isSlashDropped && state.pattern && state.pattern.slice(-5) === \"(.+)$\") {\n      originalPath = originalPath + \"/\";\n    }\n    results = findHandler(state, originalPath, queryParams);\n  }\n  return results;\n};\nRouteRecognizer.VERSION = \"0.3.4\";\n// Set to false to opt-out of encoding and decoding path segments.\n// See https://github.com/tildeio/route-recognizer/pull/55\nRouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS = true;\nRouteRecognizer.Normalizer = {\n  normalizeSegment: normalizeSegment,\n  normalizePath: normalizePath,\n  encodePathSegment: encodePathSegment\n};\nRouteRecognizer.prototype.map = map;\n\nexport { RouteRecognizer as default };\n","import RouteRecognizer from '../route-recognizer/index.js';\nimport { P as Promise$1 } from '../shared-chunks/rsvp-aLN_pQtn.js';\nimport { Q as QUERY_PARAMS_SYMBOL, m as merge, i as isTransition, a as isParam, t as throwIfAborted, P as PARAMS_SYMBOL, p as prepareResult, b as isPromise, f as forEach, c as promiseLabel, U as UnrecognizedURLError, T as Transition, S as STATE_SYMBOL, g as getChangelist, d as log, l as logAbort, e as isTransitionAborted, h as extractQueryParams } from '../shared-chunks/unrecognized-url-error-xC654tCo.js';\n\n/* eslint-disable no-prototype-builtins */\nlet ROUTE_INFOS = new WeakMap();\nfunction toReadOnlyRouteInfo(routeInfos, queryParams = {}, options = {\n  includeAttributes: false,\n  localizeMapUpdates: false\n}) {\n  const LOCAL_ROUTE_INFOS = new WeakMap();\n  return routeInfos.map((info, i) => {\n    let {\n      name,\n      params,\n      paramNames,\n      context,\n      route\n    } = info;\n    // SAFETY: This should be safe since it is just for use as a key\n    let key = info;\n    if (ROUTE_INFOS.has(key) && options.includeAttributes) {\n      let routeInfo = ROUTE_INFOS.get(key);\n      routeInfo = attachMetadata(route, routeInfo);\n      let routeInfoWithAttribute = createRouteInfoWithAttributes(routeInfo, context);\n      LOCAL_ROUTE_INFOS.set(key, routeInfo);\n      if (!options.localizeMapUpdates) {\n        ROUTE_INFOS.set(key, routeInfoWithAttribute);\n      }\n      return routeInfoWithAttribute;\n    }\n    const routeInfosRef = options.localizeMapUpdates ? LOCAL_ROUTE_INFOS : ROUTE_INFOS;\n    let routeInfo = {\n      find(predicate, thisArg) {\n        let publicInfo;\n        let arr = [];\n        if (predicate.length === 3) {\n          arr = routeInfos.map(\n          // SAFETY: This should be safe since it is just for use as a key\n          info => routeInfosRef.get(info));\n        }\n        for (let i = 0; routeInfos.length > i; i++) {\n          // SAFETY: This should be safe since it is just for use as a key\n          publicInfo = routeInfosRef.get(routeInfos[i]);\n          if (predicate.call(thisArg, publicInfo, i, arr)) {\n            return publicInfo;\n          }\n        }\n        return undefined;\n      },\n      get name() {\n        return name;\n      },\n      get paramNames() {\n        return paramNames;\n      },\n      get metadata() {\n        return buildRouteInfoMetadata(info.route);\n      },\n      get parent() {\n        let parent = routeInfos[i - 1];\n        if (parent === undefined) {\n          return null;\n        }\n\n        // SAFETY: This should be safe since it is just for use as a key\n        return routeInfosRef.get(parent);\n      },\n      get child() {\n        let child = routeInfos[i + 1];\n        if (child === undefined) {\n          return null;\n        }\n\n        // SAFETY: This should be safe since it is just for use as a key\n        return routeInfosRef.get(child);\n      },\n      get localName() {\n        let parts = this.name.split('.');\n        return parts[parts.length - 1];\n      },\n      get params() {\n        return params;\n      },\n      get queryParams() {\n        return queryParams;\n      }\n    };\n    if (options.includeAttributes) {\n      routeInfo = createRouteInfoWithAttributes(routeInfo, context);\n    }\n\n    // SAFETY: This should be safe since it is just for use as a key\n    LOCAL_ROUTE_INFOS.set(info, routeInfo);\n    if (!options.localizeMapUpdates) {\n      // SAFETY: This should be safe since it is just for use as a key\n      ROUTE_INFOS.set(info, routeInfo);\n    }\n    return routeInfo;\n  });\n}\nfunction createRouteInfoWithAttributes(routeInfo, context) {\n  let attributes = {\n    get attributes() {\n      return context;\n    }\n  };\n  if (!Object.isExtensible(routeInfo) || routeInfo.hasOwnProperty('attributes')) {\n    return Object.freeze(Object.assign({}, routeInfo, attributes));\n  }\n  return Object.assign(routeInfo, attributes);\n}\nfunction buildRouteInfoMetadata(route) {\n  if (route !== undefined && route !== null && route.buildRouteInfoMetadata !== undefined) {\n    return route.buildRouteInfoMetadata();\n  }\n  return null;\n}\nfunction attachMetadata(route, routeInfo) {\n  let metadata = {\n    get metadata() {\n      return buildRouteInfoMetadata(route);\n    }\n  };\n  if (!Object.isExtensible(routeInfo) || routeInfo.hasOwnProperty('metadata')) {\n    return Object.freeze(Object.assign({}, routeInfo, metadata));\n  }\n  return Object.assign(routeInfo, metadata);\n}\nclass InternalRouteInfo {\n  _routePromise = undefined;\n  _route = null;\n  router;\n  params = {};\n  isResolved = false;\n  constructor(router, name, paramNames, route) {\n    this.name = name;\n    this.paramNames = paramNames;\n    this.router = router;\n    if (route) {\n      this._processRoute(route);\n    }\n  }\n  getModel(_transition) {\n    return Promise$1.resolve(this.context);\n  }\n  serialize(_context) {\n    return this.params || {};\n  }\n  resolve(transition) {\n    return Promise$1.resolve(this.routePromise).then(route => {\n      throwIfAborted(transition);\n      return route;\n    }).then(() => this.runBeforeModelHook(transition)).then(() => throwIfAborted(transition)).then(() => this.getModel(transition)).then(resolvedModel => {\n      throwIfAborted(transition);\n      return resolvedModel;\n    }).then(resolvedModel => this.runAfterModelHook(transition, resolvedModel)).then(resolvedModel => this.becomeResolved(transition, resolvedModel));\n  }\n  becomeResolved(transition, resolvedContext) {\n    let params = this.serialize(resolvedContext);\n    if (transition) {\n      this.stashResolvedModel(transition, resolvedContext);\n      transition[PARAMS_SYMBOL] = transition[PARAMS_SYMBOL] || {};\n      transition[PARAMS_SYMBOL][this.name] = params;\n    }\n    let context;\n    let contextsMatch = resolvedContext === this.context;\n    if ('context' in this || !contextsMatch) {\n      context = resolvedContext;\n    }\n\n    // SAFETY: Since this is just for lookup, it should be safe\n    let cached = ROUTE_INFOS.get(this);\n    let resolved = new ResolvedRouteInfo(this.router, this.name, this.paramNames, params, this.route, context);\n    if (cached !== undefined) {\n      // SAFETY: This is potentially a bit risker, but for what we're doing, it should be ok.\n      ROUTE_INFOS.set(resolved, cached);\n    }\n    return resolved;\n  }\n  shouldSupersede(routeInfo) {\n    // Prefer this newer routeInfo over `other` if:\n    // 1) The other one doesn't exist\n    // 2) The names don't match\n    // 3) This route has a context that doesn't match\n    //    the other one (or the other one doesn't have one).\n    // 4) This route has parameters that don't match the other.\n    if (!routeInfo) {\n      return true;\n    }\n    let contextsMatch = routeInfo.context === this.context;\n    return routeInfo.name !== this.name || 'context' in this && !contextsMatch || this.hasOwnProperty('params') && !paramsMatch(this.params, routeInfo.params);\n  }\n  get route() {\n    // _route could be set to either a route object or undefined, so we\n    // compare against null to know when it's been set\n    if (this._route !== null) {\n      return this._route;\n    }\n    return this.fetchRoute();\n  }\n  set route(route) {\n    this._route = route;\n  }\n  get routePromise() {\n    if (this._routePromise) {\n      return this._routePromise;\n    }\n    this.fetchRoute();\n    return this._routePromise;\n  }\n  set routePromise(routePromise) {\n    this._routePromise = routePromise;\n  }\n  log(transition, message) {\n    if (transition.log) {\n      transition.log(this.name + ': ' + message);\n    }\n  }\n  updateRoute(route) {\n    route._internalName = this.name;\n    return this.route = route;\n  }\n  runBeforeModelHook(transition) {\n    if (transition.trigger) {\n      transition.trigger(true, 'willResolveModel', transition, this.route);\n    }\n    let result;\n    if (this.route) {\n      if (this.route.beforeModel !== undefined) {\n        result = this.route.beforeModel(transition);\n      }\n    }\n    if (isTransition(result)) {\n      result = null;\n    }\n    return Promise$1.resolve(result);\n  }\n  runAfterModelHook(transition, resolvedModel) {\n    // Stash the resolved model on the payload.\n    // This makes it possible for users to swap out\n    // the resolved model in afterModel.\n    let name = this.name;\n    this.stashResolvedModel(transition, resolvedModel);\n    let result;\n    if (this.route !== undefined) {\n      if (this.route.afterModel !== undefined) {\n        result = this.route.afterModel(resolvedModel, transition);\n      }\n    }\n    result = prepareResult(result);\n    return Promise$1.resolve(result).then(() => {\n      // Ignore the fulfilled value returned from afterModel.\n      // Return the value stashed in resolvedModels, which\n      // might have been swapped out in afterModel.\n      // SAFETY: We expect this to be of type T, though typing it as such is challenging.\n      return transition.resolvedModels[name];\n    });\n  }\n  stashResolvedModel(transition, resolvedModel) {\n    transition.resolvedModels = transition.resolvedModels || {};\n    // SAFETY: It's unfortunate that we have to do this cast. It should be safe though.\n    transition.resolvedModels[this.name] = resolvedModel;\n  }\n  fetchRoute() {\n    let route = this.router.getRoute(this.name);\n    return this._processRoute(route);\n  }\n  _processRoute(route) {\n    // Setup a routePromise so that we can wait for asynchronously loaded routes\n    this.routePromise = Promise$1.resolve(route);\n\n    // Wait until the 'route' property has been updated when chaining to a route\n    // that is a promise\n    if (isPromise(route)) {\n      this.routePromise = this.routePromise.then(r => {\n        return this.updateRoute(r);\n      });\n      // set to undefined to avoid recursive loop in the route getter\n      return this.route = undefined;\n    } else if (route) {\n      return this.updateRoute(route);\n    }\n    return undefined;\n  }\n}\nclass ResolvedRouteInfo extends InternalRouteInfo {\n  isResolved;\n  context;\n  constructor(router, name, paramNames, params, route, context) {\n    super(router, name, paramNames, route);\n    this.params = params;\n    this.isResolved = true;\n    this.context = context;\n  }\n  resolve(transition) {\n    // A ResolvedRouteInfo just resolved with itself.\n    if (transition && transition.resolvedModels) {\n      transition.resolvedModels[this.name] = this.context;\n    }\n    return Promise$1.resolve(this);\n  }\n}\nclass UnresolvedRouteInfoByParam extends InternalRouteInfo {\n  params = {};\n  constructor(router, name, paramNames, params, route) {\n    super(router, name, paramNames, route);\n    if (params) {\n      this.params = params;\n    }\n  }\n  getModel(transition) {\n    let fullParams = this.params;\n    if (transition && transition[QUERY_PARAMS_SYMBOL]) {\n      fullParams = {};\n      merge(fullParams, this.params);\n      fullParams['queryParams'] = transition[QUERY_PARAMS_SYMBOL];\n    }\n    let route = this.route;\n    let result;\n\n    // FIXME: Review these casts\n    if (route.deserialize) {\n      result = route.deserialize(fullParams, transition);\n    } else if (route.model) {\n      result = route.model(fullParams, transition);\n    }\n    if (result && isTransition(result)) {\n      result = undefined;\n    }\n    return Promise$1.resolve(result);\n  }\n}\nclass UnresolvedRouteInfoByObject extends InternalRouteInfo {\n  serializer;\n  constructor(router, name, paramNames, context) {\n    super(router, name, paramNames);\n    this.context = context;\n    this.serializer = this.router.getSerializer(name);\n  }\n  getModel(transition) {\n    if (this.router.log !== undefined) {\n      this.router.log(this.name + ': resolving provided model');\n    }\n    return super.getModel(transition);\n  }\n\n  /**\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  */\n  serialize(model) {\n    let {\n      paramNames,\n      context\n    } = this;\n    if (!model) {\n      // SAFETY: By the time we serialize, we expect to be resolved.\n      // This may not be an entirely safe assumption though no tests fail.\n      model = context;\n    }\n    let object = {};\n    if (isParam(model)) {\n      object[paramNames[0]] = model;\n      return object;\n    }\n\n    // Use custom serialize if it exists.\n    if (this.serializer) {\n      // invoke this.serializer unbound (getSerializer returns a stateless function)\n      return this.serializer.call(null, model, paramNames);\n    } else if (this.route !== undefined) {\n      if (this.route.serialize) {\n        return this.route.serialize(model, paramNames);\n      }\n    }\n    if (paramNames.length !== 1) {\n      return;\n    }\n    let name = paramNames[0];\n    if (/_id$/.test(name)) {\n      // SAFETY: Model is supposed to extend IModel already\n      object[name] = model.id;\n    } else {\n      object[name] = model;\n    }\n    return object;\n  }\n}\nfunction paramsMatch(a, b) {\n  if (a === b) {\n    // Both are identical, may both be undefined\n    return true;\n  }\n  if (!a || !b) {\n    // Only one is undefined, already checked they aren't identical\n    return false;\n  }\n\n  // Note: this assumes that both params have the same\n  // number of keys, but since we're comparing the\n  // same routes, they should.\n  for (let k in a) {\n    if (a.hasOwnProperty(k) && a[k] !== b[k]) {\n      return false;\n    }\n  }\n  return true;\n}\n\nclass TransitionIntent {\n  data;\n  router;\n  constructor(router, data = {}) {\n    this.router = router;\n    this.data = data;\n  }\n  preTransitionState;\n}\n\nfunction handleError(currentState, transition, error) {\n  // This is the only possible\n  // reject value of TransitionState#resolve\n  let routeInfos = currentState.routeInfos;\n  let errorHandlerIndex = transition.resolveIndex >= routeInfos.length ? routeInfos.length - 1 : transition.resolveIndex;\n  let wasAborted = transition.isAborted;\n  throw new TransitionError(error, currentState.routeInfos[errorHandlerIndex].route, wasAborted, currentState);\n}\nfunction resolveOneRouteInfo(currentState, transition) {\n  if (transition.resolveIndex === currentState.routeInfos.length) {\n    // This is is the only possible\n    // fulfill value of TransitionState#resolve\n    return;\n  }\n  let routeInfo = currentState.routeInfos[transition.resolveIndex];\n  let callback = proceed.bind(null, currentState, transition);\n  return routeInfo.resolve(transition).then(callback, null, currentState.promiseLabel('Proceed'));\n}\nfunction proceed(currentState, transition, resolvedRouteInfo) {\n  let wasAlreadyResolved = currentState.routeInfos[transition.resolveIndex].isResolved;\n\n  // Swap the previously unresolved routeInfo with\n  // the resolved routeInfo\n  currentState.routeInfos[transition.resolveIndex++] = resolvedRouteInfo;\n  if (!wasAlreadyResolved) {\n    // Call the redirect hook. The reason we call it here\n    // vs. afterModel is so that redirects into child\n    // routes don't re-run the model hooks for this\n    // already-resolved route.\n    let {\n      route\n    } = resolvedRouteInfo;\n    if (route !== undefined) {\n      if (route.redirect) {\n        route.redirect(resolvedRouteInfo.context, transition);\n      }\n    }\n  }\n\n  // Proceed after ensuring that the redirect hook\n  // didn't abort this transition by transitioning elsewhere.\n  throwIfAborted(transition);\n  return resolveOneRouteInfo(currentState, transition);\n}\nclass TransitionState {\n  routeInfos = [];\n  queryParams = {};\n  params = {};\n  promiseLabel(label) {\n    let targetName = '';\n    forEach(this.routeInfos, function (routeInfo) {\n      if (targetName !== '') {\n        targetName += '.';\n      }\n      targetName += routeInfo.name;\n      return true;\n    });\n    return promiseLabel(\"'\" + targetName + \"': \" + label);\n  }\n  resolve(transition) {\n    // First, calculate params for this state. This is useful\n    // information to provide to the various route hooks.\n    let params = this.params;\n    forEach(this.routeInfos, routeInfo => {\n      params[routeInfo.name] = routeInfo.params || {};\n      return true;\n    });\n    transition.resolveIndex = 0;\n    let callback = resolveOneRouteInfo.bind(null, this, transition);\n    let errorHandler = handleError.bind(null, this, transition);\n\n    // The prelude RSVP.resolve() async moves us into the promise land.\n    return Promise$1.resolve(null, this.promiseLabel('Start transition')).then(callback, null, this.promiseLabel('Resolve route')).catch(errorHandler, this.promiseLabel('Handle error')).then(() => this);\n  }\n}\nclass TransitionError {\n  constructor(error, route, wasAborted, state) {\n    this.error = error;\n    this.route = route;\n    this.wasAborted = wasAborted;\n    this.state = state;\n  }\n}\n\n/* eslint-disable no-prototype-builtins */\n\nclass NamedTransitionIntent extends TransitionIntent {\n  name;\n  pivotHandler;\n  contexts;\n  queryParams;\n  preTransitionState = undefined;\n  constructor(router, name, pivotHandler, contexts = [], queryParams = {}, data) {\n    super(router, data);\n    this.name = name;\n    this.pivotHandler = pivotHandler;\n    this.contexts = contexts;\n    this.queryParams = queryParams;\n  }\n  applyToState(oldState, isIntermediate) {\n    let handlers = this.router.recognizer.handlersFor(this.name);\n    let targetRouteName = handlers[handlers.length - 1].handler;\n    return this.applyToHandlers(oldState, handlers, targetRouteName, isIntermediate, false);\n  }\n  applyToHandlers(oldState, parsedHandlers, targetRouteName, isIntermediate, checkingIfActive) {\n    let i, len;\n    let newState = new TransitionState();\n    let objects = this.contexts.slice(0);\n    let invalidateIndex = parsedHandlers.length;\n\n    // Pivot handlers are provided for refresh transitions\n    if (this.pivotHandler) {\n      for (i = 0, len = parsedHandlers.length; i < len; ++i) {\n        if (parsedHandlers[i].handler === this.pivotHandler._internalName) {\n          invalidateIndex = i;\n          break;\n        }\n      }\n    }\n    for (i = parsedHandlers.length - 1; i >= 0; --i) {\n      let result = parsedHandlers[i];\n      let name = result.handler;\n      let oldHandlerInfo = oldState.routeInfos[i];\n      let newHandlerInfo = null;\n      if (result.names.length > 0) {\n        if (i >= invalidateIndex) {\n          newHandlerInfo = this.createParamHandlerInfo(name, result.names, objects, oldHandlerInfo);\n        } else {\n          newHandlerInfo = this.getHandlerInfoForDynamicSegment(name, result.names, objects, oldHandlerInfo, targetRouteName, i);\n        }\n      } else {\n        // This route has no dynamic segment.\n        // Therefore treat as a param-based handlerInfo\n        // with empty params. This will cause the `model`\n        // hook to be called with empty params, which is desirable.\n        newHandlerInfo = this.createParamHandlerInfo(name, result.names, objects, oldHandlerInfo);\n      }\n      if (checkingIfActive) {\n        // If we're performing an isActive check, we want to\n        // serialize URL params with the provided context, but\n        // ignore mismatches between old and new context.\n        newHandlerInfo = newHandlerInfo.becomeResolved(null,\n        // SAFETY: This seems to imply that it would be resolved, but it's unclear if that's actually the case.\n        newHandlerInfo.context);\n        let oldContext = oldHandlerInfo && oldHandlerInfo.context;\n        if (result.names.length > 0 && oldHandlerInfo.context !== undefined && newHandlerInfo.context === oldContext) {\n          // If contexts match in isActive test, assume params also match.\n          // This allows for flexibility in not requiring that every last\n          // handler provide a `serialize` method\n          newHandlerInfo.params = oldHandlerInfo && oldHandlerInfo.params;\n        }\n        newHandlerInfo.context = oldContext;\n      }\n      let handlerToUse = oldHandlerInfo;\n      if (i >= invalidateIndex || newHandlerInfo.shouldSupersede(oldHandlerInfo)) {\n        invalidateIndex = Math.min(i, invalidateIndex);\n        handlerToUse = newHandlerInfo;\n      }\n      if (isIntermediate && !checkingIfActive) {\n        handlerToUse = handlerToUse.becomeResolved(null,\n        // SAFETY: This seems to imply that it would be resolved, but it's unclear if that's actually the case.\n        handlerToUse.context);\n      }\n      newState.routeInfos.unshift(handlerToUse);\n    }\n    if (objects.length > 0) {\n      throw new Error('More context objects were passed than there are dynamic segments for the route: ' + targetRouteName);\n    }\n    if (!isIntermediate) {\n      this.invalidateChildren(newState.routeInfos, invalidateIndex);\n    }\n    merge(newState.queryParams, this.queryParams || {});\n    if (isIntermediate && oldState.queryParams) {\n      merge(newState.queryParams, oldState.queryParams);\n    }\n    return newState;\n  }\n  invalidateChildren(handlerInfos, invalidateIndex) {\n    for (let i = invalidateIndex, l = handlerInfos.length; i < l; ++i) {\n      let handlerInfo = handlerInfos[i];\n      if (handlerInfo.isResolved) {\n        let {\n          name,\n          params,\n          route,\n          paramNames\n        } = handlerInfos[i];\n        handlerInfos[i] = new UnresolvedRouteInfoByParam(this.router, name, paramNames, params, route);\n      }\n    }\n  }\n  getHandlerInfoForDynamicSegment(name, names, objects, oldHandlerInfo, _targetRouteName, i) {\n    let objectToUse;\n    if (objects.length > 0) {\n      // Use the objects provided for this transition.\n      objectToUse = objects[objects.length - 1];\n      if (isParam(objectToUse)) {\n        return this.createParamHandlerInfo(name, names, objects, oldHandlerInfo);\n      } else {\n        objects.pop();\n      }\n    } else if (oldHandlerInfo && oldHandlerInfo.name === name) {\n      // Reuse the matching oldHandlerInfo\n      return oldHandlerInfo;\n    } else {\n      if (this.preTransitionState) {\n        let preTransitionHandlerInfo = this.preTransitionState.routeInfos[i];\n        objectToUse = preTransitionHandlerInfo?.context;\n      } else {\n        // Ideally we should throw this error to provide maximal\n        // information to the user that not enough context objects\n        // were provided, but this proves too cumbersome in Ember\n        // in cases where inner template helpers are evaluated\n        // before parent helpers un-render, in which cases this\n        // error somewhat prematurely fires.\n        //throw new Error(\"Not enough context objects were provided to complete a transition to \" + targetRouteName + \". Specifically, the \" + name + \" route needs an object that can be serialized into its dynamic URL segments [\" + names.join(', ') + \"]\");\n        return oldHandlerInfo;\n      }\n    }\n    return new UnresolvedRouteInfoByObject(this.router, name, names, objectToUse);\n  }\n  createParamHandlerInfo(name, names, objects, oldHandlerInfo) {\n    let params = {};\n\n    // Soak up all the provided string/numbers\n    let numNames = names.length;\n    let missingParams = [];\n    while (numNames--) {\n      // Only use old params if the names match with the new handler\n      let oldParams = oldHandlerInfo && name === oldHandlerInfo.name && oldHandlerInfo.params || {};\n      let peek = objects[objects.length - 1];\n      let paramName = names[numNames];\n      if (isParam(peek)) {\n        params[paramName] = String(objects.pop());\n      } else {\n        // If we're here, this means only some of the params\n        // were string/number params, so try and use a param\n        // value from a previous handler.\n        if (oldParams.hasOwnProperty(paramName)) {\n          params[paramName] = oldParams[paramName];\n        } else {\n          missingParams.push(paramName);\n        }\n      }\n    }\n    if (missingParams.length > 0) {\n      throw new Error(`You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route ${name}.` + ` Missing params: ${missingParams}`);\n    }\n    return new UnresolvedRouteInfoByParam(this.router, name, names, params);\n  }\n}\n\nclass URLTransitionIntent extends TransitionIntent {\n  preTransitionState;\n  url;\n  constructor(router, url, data) {\n    super(router, data);\n    this.url = url;\n    this.preTransitionState = undefined;\n  }\n  applyToState(oldState) {\n    let newState = new TransitionState();\n    let results = this.router.recognizer.recognize(this.url),\n      i,\n      len;\n    if (!results) {\n      throw new UnrecognizedURLError(this.url);\n    }\n    let statesDiffer = false;\n    let _url = this.url;\n\n    // Checks if a handler is accessible by URL. If it is not, an error is thrown.\n    // For the case where the handler is loaded asynchronously, the error will be\n    // thrown once it is loaded.\n    function checkHandlerAccessibility(handler) {\n      if (handler && handler.inaccessibleByURL) {\n        throw new UnrecognizedURLError(_url);\n      }\n      return handler;\n    }\n    for (i = 0, len = results.length; i < len; ++i) {\n      let result = results[i];\n      let name = result.handler;\n      let paramNames = [];\n      if (this.router.recognizer.hasRoute(name)) {\n        paramNames = this.router.recognizer.handlersFor(name)[i].names;\n      }\n      let newRouteInfo = new UnresolvedRouteInfoByParam(this.router, name, paramNames, result.params);\n      let route = newRouteInfo.route;\n      if (route) {\n        checkHandlerAccessibility(route);\n      } else {\n        // If the handler is being loaded asynchronously, check if we can\n        // access it after it has resolved\n        newRouteInfo.routePromise = newRouteInfo.routePromise.then(checkHandlerAccessibility);\n      }\n      let oldRouteInfo = oldState.routeInfos[i];\n      if (statesDiffer || newRouteInfo.shouldSupersede(oldRouteInfo)) {\n        statesDiffer = true;\n        newState.routeInfos[i] = newRouteInfo;\n      } else {\n        newState.routeInfos[i] = oldRouteInfo;\n      }\n    }\n    merge(newState.queryParams, results.queryParams);\n    return newState;\n  }\n}\n\n/* eslint-disable no-prototype-builtins */\n\nclass Router {\n  _lastQueryParams = {};\n  log;\n  state = undefined;\n  oldState = undefined;\n  activeTransition = undefined;\n  currentRouteInfos = undefined;\n  _changedQueryParams = undefined;\n  currentSequence = 0;\n  recognizer;\n  constructor(logger) {\n    this.log = logger;\n    this.recognizer = new RouteRecognizer();\n    this.reset();\n  }\n  /**\n    The main entry point into the router. The API is essentially\n    the same as the `map` method in `route-recognizer`.\n     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  */\n  map(callback) {\n    this.recognizer.map(callback, function (recognizer, routes) {\n      for (let i = routes.length - 1, proceed = true; i >= 0 && proceed; --i) {\n        let route = routes[i];\n        let handler = route.handler;\n        recognizer.add(routes, {\n          as: handler\n        });\n        proceed = route.path === '/' || route.path === '' || handler.slice(-6) === '.index';\n      }\n    });\n  }\n  hasRoute(route) {\n    return this.recognizer.hasRoute(route);\n  }\n  queryParamsTransition(changelist, wasTransitioning, oldState, newState) {\n    this.fireQueryParamDidChange(newState, changelist);\n    if (!wasTransitioning && this.activeTransition) {\n      // One of the routes in queryParamsDidChange\n      // caused a transition. Just return that transition.\n      return this.activeTransition;\n    } else {\n      // Running queryParamsDidChange didn't change anything.\n      // Just update query params and be on our way.\n\n      // We have to return a noop transition that will\n      // perform a URL update at the end. This gives\n      // the user the ability to set the url update\n      // method (default is replaceState).\n      let newTransition = new Transition(this, undefined, undefined);\n      newTransition.queryParamsOnly = true;\n      oldState.queryParams = this.finalizeQueryParamChange(newState.routeInfos, newState.queryParams, newTransition);\n      newTransition[QUERY_PARAMS_SYMBOL] = newState.queryParams;\n      this.toReadOnlyInfos(newTransition, newState);\n      this.routeWillChange(newTransition);\n      newTransition.promise = newTransition.promise.then(result => {\n        if (!newTransition.isAborted) {\n          this._updateURL(newTransition, oldState);\n          this.didTransition(this.currentRouteInfos);\n          this.toInfos(newTransition, newState.routeInfos, true);\n          this.routeDidChange(newTransition);\n        }\n        return result;\n      }, null, promiseLabel('Transition complete'));\n      return newTransition;\n    }\n  }\n  transitionByIntent(intent, isIntermediate) {\n    try {\n      return this.getTransitionByIntent(intent, isIntermediate);\n    } catch (e) {\n      return new Transition(this, intent, undefined, e, undefined);\n    }\n  }\n  recognize(url) {\n    let intent = new URLTransitionIntent(this, url);\n    let newState = this.generateNewState(intent);\n    if (newState === null) {\n      return newState;\n    }\n    let readonlyInfos = toReadOnlyRouteInfo(newState.routeInfos, newState.queryParams, {\n      includeAttributes: false,\n      localizeMapUpdates: true\n    });\n    return readonlyInfos[readonlyInfos.length - 1];\n  }\n  recognizeAndLoad(url) {\n    let intent = new URLTransitionIntent(this, url);\n    let newState = this.generateNewState(intent);\n    if (newState === null) {\n      return Promise$1.reject(`URL ${url} was not recognized`);\n    }\n    let newTransition = new Transition(this, intent, newState, undefined);\n    return newTransition.then(() => {\n      let routeInfosWithAttributes = toReadOnlyRouteInfo(newState.routeInfos, newTransition[QUERY_PARAMS_SYMBOL], {\n        includeAttributes: true,\n        localizeMapUpdates: false\n      });\n      return routeInfosWithAttributes[routeInfosWithAttributes.length - 1];\n    });\n  }\n  generateNewState(intent) {\n    try {\n      return intent.applyToState(this.state, false);\n    } catch (_e) {\n      return null;\n    }\n  }\n  getTransitionByIntent(intent, isIntermediate) {\n    let wasTransitioning = Boolean(this.activeTransition);\n    let oldState = wasTransitioning ? this.activeTransition[STATE_SYMBOL] : this.state;\n    let newTransition;\n    let newState = intent.applyToState(oldState, isIntermediate);\n    let queryParamChangelist = getChangelist(oldState.queryParams, newState.queryParams);\n    if (routeInfosEqual(newState.routeInfos, oldState.routeInfos)) {\n      // This is a no-op transition. See if query params changed.\n      if (queryParamChangelist) {\n        if (!wasTransitioning) {\n          // Not in an active transition — use the QP-only fast path\n          // which updates the URL without re-resolving route hooks.\n          let newTransition = this.queryParamsTransition(queryParamChangelist, wasTransitioning, oldState, newState);\n          newTransition.queryParamsOnly = true;\n          // SAFETY: The returned OpaqueTransition should actually be this.\n          return newTransition;\n        }\n        // When a query-param-only transition is started during an active\n        // transition (for example, from beforeModel/afterModel), avoid the\n        // QP-only fast path and intentionally fall through to the normal\n        // transition path so it can abort and replace the active transition.\n      } else {\n        // No-op. No need to create a new transition.\n        return this.activeTransition || new Transition(this, undefined, undefined);\n      }\n    }\n    if (isIntermediate) {\n      let transition = new Transition(this, undefined, newState);\n      transition.isIntermediate = true;\n      this.toReadOnlyInfos(transition, newState);\n      this.setupContexts(newState, transition);\n      this.routeWillChange(transition);\n      return this.activeTransition;\n    }\n\n    // Create a new transition to the destination route.\n    newTransition = new Transition(this, intent, newState, undefined, this.activeTransition);\n\n    // transition is to same route with same params, only query params differ.\n    // not caught above probably because refresh() has been used\n    if (routeInfosSameExceptQueryParams(newState.routeInfos, oldState.routeInfos)) {\n      newTransition.queryParamsOnly = true;\n    }\n    this.toReadOnlyInfos(newTransition, newState);\n    // Abort and usurp any previously active transition.\n    if (this.activeTransition) {\n      this.activeTransition.redirect(newTransition);\n    }\n    this.activeTransition = newTransition;\n\n    // Transition promises by default resolve with resolved state.\n    // For our purposes, swap out the promise to resolve\n    // after the transition has been finalized.\n    newTransition.promise = newTransition.promise.then(result => {\n      return this.finalizeTransition(newTransition, result);\n    }, null, promiseLabel('Settle transition promise when transition is finalized'));\n    if (!wasTransitioning) {\n      this.notifyExistingHandlers(newState, newTransition);\n    }\n    this.fireQueryParamDidChange(newState, queryParamChangelist);\n    return newTransition;\n  }\n\n  /**\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  */\n  doTransition(name, modelsArray = [], isIntermediate = false) {\n    let lastArg = modelsArray[modelsArray.length - 1];\n    let queryParams = {};\n    if (lastArg && Object.prototype.hasOwnProperty.call(lastArg, 'queryParams')) {\n      // We just checked this.\n      // TODO: Use an assertion?\n      queryParams = modelsArray.pop().queryParams;\n    }\n    let intent;\n    if (name === undefined) {\n      log(this, 'Updating query params');\n\n      // A query param update is really just a transition\n      // into the route you're already on.\n      let {\n        routeInfos\n      } = this.state;\n      intent = new NamedTransitionIntent(this, routeInfos[routeInfos.length - 1].name, undefined, [], queryParams);\n    } else if (name.charAt(0) === '/') {\n      log(this, 'Attempting URL transition to ' + name);\n      intent = new URLTransitionIntent(this, name);\n    } else {\n      log(this, 'Attempting transition to ' + name);\n      intent = new NamedTransitionIntent(this, name, undefined,\n      // SAFETY: We know this to be the case since we removed the last item if it was QPs\n      modelsArray, queryParams);\n    }\n    return this.transitionByIntent(intent, isIntermediate);\n  }\n\n  /**\n  @private\n   Updates the URL (if necessary) and calls `setupContexts`\n  to update the router's array of `currentRouteInfos`.\n  */\n  finalizeTransition(transition, newState) {\n    try {\n      log(transition.router, transition.sequence, 'Resolved all models on destination route; finalizing transition.');\n      let routeInfos = newState.routeInfos;\n\n      // Run all the necessary enter/setup/exit hooks\n      this.setupContexts(newState, transition);\n\n      // Check if a redirect occurred in enter/setup\n      if (transition.isAborted) {\n        // TODO: cleaner way? distinguish b/w targetRouteInfos?\n        this.state.routeInfos = this.currentRouteInfos;\n        return Promise$1.reject(logAbort(transition));\n      }\n      this._updateURL(transition, newState);\n      transition.isActive = false;\n      this.activeTransition = undefined;\n      this.triggerEvent(this.currentRouteInfos, true, 'didTransition', []);\n      this.didTransition(this.currentRouteInfos);\n      this.toInfos(transition, newState.routeInfos, true);\n      this.routeDidChange(transition);\n      log(this, transition.sequence, 'TRANSITION COMPLETE.');\n\n      // Resolve with the final route.\n      return routeInfos[routeInfos.length - 1].route;\n    } catch (e) {\n      if (!isTransitionAborted(e)) {\n        let infos = transition[STATE_SYMBOL].routeInfos;\n        transition.trigger(true, 'error', e, transition, infos[infos.length - 1].route);\n        transition.abort();\n      }\n      throw e;\n    }\n  }\n\n  /**\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  */\n  setupContexts(newState, transition) {\n    let partition = this.partitionRoutes(this.state, newState);\n    let i, l, route;\n    for (i = 0, l = partition.exited.length; i < l; i++) {\n      route = partition.exited[i].route;\n      delete route.context;\n      if (route !== undefined) {\n        if (route._internalReset !== undefined) {\n          route._internalReset(true, transition);\n        }\n        if (route.exit !== undefined) {\n          route.exit(transition);\n        }\n      }\n    }\n    let oldState = this.oldState = this.state;\n    this.state = newState;\n    let currentRouteInfos = this.currentRouteInfos = partition.unchanged.slice();\n    try {\n      for (i = 0, l = partition.reset.length; i < l; i++) {\n        route = partition.reset[i].route;\n        if (route !== undefined) {\n          if (route._internalReset !== undefined) {\n            route._internalReset(false, transition);\n          }\n        }\n      }\n      for (i = 0, l = partition.updatedContext.length; i < l; i++) {\n        this.routeEnteredOrUpdated(currentRouteInfos, partition.updatedContext[i], false, transition);\n      }\n      for (i = 0, l = partition.entered.length; i < l; i++) {\n        this.routeEnteredOrUpdated(currentRouteInfos, partition.entered[i], true, transition);\n      }\n    } catch (e) {\n      this.state = oldState;\n      this.currentRouteInfos = oldState.routeInfos;\n      throw e;\n    }\n    this.state.queryParams = this.finalizeQueryParamChange(currentRouteInfos, newState.queryParams, transition);\n  }\n\n  /**\n  @private\n   Fires queryParamsDidChange event\n  */\n  fireQueryParamDidChange(newState, queryParamChangelist) {\n    // If queryParams changed trigger event\n    if (queryParamChangelist) {\n      // This is a little hacky but we need some way of storing\n      // changed query params given that no activeTransition\n      // is guaranteed to have occurred.\n      this._changedQueryParams = queryParamChangelist.all;\n      this.triggerEvent(newState.routeInfos, true, 'queryParamsDidChange', [queryParamChangelist.changed, queryParamChangelist.all, queryParamChangelist.removed]);\n      this._changedQueryParams = undefined;\n    }\n  }\n\n  /**\n  @private\n   Helper method used by setupContexts. Handles errors or redirects\n  that may happen in enter/setup.\n  */\n  routeEnteredOrUpdated(currentRouteInfos, routeInfo, enter, transition) {\n    let route = routeInfo.route,\n      context = routeInfo.context;\n    function _routeEnteredOrUpdated(route) {\n      if (enter) {\n        if (route.enter !== undefined) {\n          route.enter(transition);\n        }\n      }\n      throwIfAborted(transition);\n      route.context = context;\n      if (route.contextDidChange !== undefined) {\n        route.contextDidChange();\n      }\n      if (route.setup !== undefined) {\n        route.setup(context, transition);\n      }\n      throwIfAborted(transition);\n      currentRouteInfos.push(routeInfo);\n      return route;\n    }\n\n    // If the route doesn't exist, it means we haven't resolved the route promise yet\n    if (route === undefined) {\n      routeInfo.routePromise = routeInfo.routePromise.then(_routeEnteredOrUpdated);\n    } else {\n      _routeEnteredOrUpdated(route);\n    }\n    return true;\n  }\n\n  /**\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  */\n  partitionRoutes(oldState, newState) {\n    let oldRouteInfos = oldState.routeInfos;\n    let newRouteInfos = newState.routeInfos;\n    let routes = {\n      updatedContext: [],\n      exited: [],\n      entered: [],\n      unchanged: [],\n      reset: []\n    };\n    let routeChanged,\n      contextChanged = false,\n      i,\n      l;\n    for (i = 0, l = newRouteInfos.length; i < l; i++) {\n      let oldRouteInfo = oldRouteInfos[i],\n        newRouteInfo = newRouteInfos[i];\n      if (!oldRouteInfo || oldRouteInfo.route !== newRouteInfo.route) {\n        routeChanged = true;\n      }\n      if (routeChanged) {\n        routes.entered.push(newRouteInfo);\n        if (oldRouteInfo) {\n          routes.exited.unshift(oldRouteInfo);\n        }\n      } else if (contextChanged || oldRouteInfo.context !== newRouteInfo.context) {\n        contextChanged = true;\n        routes.updatedContext.push(newRouteInfo);\n      } else {\n        routes.unchanged.push(oldRouteInfo);\n      }\n    }\n    for (i = newRouteInfos.length, l = oldRouteInfos.length; i < l; i++) {\n      routes.exited.unshift(oldRouteInfos[i]);\n    }\n    routes.reset = routes.updatedContext.slice();\n    routes.reset.reverse();\n    return routes;\n  }\n  _updateURL(transition, state) {\n    let urlMethod = transition.urlMethod;\n    if (!urlMethod) {\n      return;\n    }\n    let {\n      routeInfos\n    } = state;\n    let {\n      name: routeName\n    } = routeInfos[routeInfos.length - 1];\n    let params = {};\n    for (let i = routeInfos.length - 1; i >= 0; --i) {\n      let routeInfo = routeInfos[i];\n      merge(params, routeInfo.params);\n      if (routeInfo.route.inaccessibleByURL) {\n        urlMethod = null;\n      }\n    }\n    if (urlMethod) {\n      params['queryParams'] = transition._visibleQueryParams || state.queryParams;\n      let url = this.recognizer.generate(routeName, params);\n\n      // transitions during the initial transition must always use replaceURL.\n      // When the app boots, you are at a url, e.g. /foo. If some route\n      // redirects to bar as part of the initial transition, you don't want to\n      // add a history entry for /foo. If you do, pressing back will immediately\n      // hit the redirect again and take you back to /bar, thus killing the back\n      // button\n      let initial = transition.isCausedByInitialTransition;\n\n      // say you are at / and you click a link to route /foo. In /foo's\n      // route, the transition is aborted using replaceWith('/bar').\n      // Because the current url is still /, the history entry for / is\n      // removed from the history. Clicking back will take you to the page\n      // you were on before /, which is often not even the app, thus killing\n      // the back button. That's why updateURL is always correct for an\n      // aborting transition that's not the initial transition\n      let replaceAndNotAborting = urlMethod === 'replace' && !transition.isCausedByAbortingTransition;\n\n      // because calling refresh causes an aborted transition, this needs to be\n      // special cased - if the initial transition is a replace transition, the\n      // urlMethod should be honored here.\n      let isQueryParamsRefreshTransition = transition.queryParamsOnly && urlMethod === 'replace';\n\n      // say you are at / and you a `replaceWith(/foo)` is called. Then, that\n      // transition is aborted with `replaceWith(/bar)`. At the end, we should\n      // end up with /bar replacing /. We are replacing the replace. We only\n      // will replace the initial route if all subsequent aborts are also\n      // replaces. However, there is some ambiguity around the correct behavior\n      // here.\n      let replacingReplace = urlMethod === 'replace' && transition.isCausedByAbortingReplaceTransition;\n      if (initial || replaceAndNotAborting || isQueryParamsRefreshTransition || replacingReplace) {\n        this.replaceURL(url);\n      } else {\n        this.updateURL(url);\n      }\n    }\n  }\n  finalizeQueryParamChange(resolvedHandlers, newQueryParams, transition) {\n    // We fire a finalizeQueryParamChange event which\n    // gives the new route hierarchy a chance to tell\n    // us which query params it's consuming and what\n    // their final values are. If a query param is\n    // no longer consumed in the final route hierarchy,\n    // its serialized segment will be removed\n    // from the URL.\n\n    for (let k in newQueryParams) {\n      if (newQueryParams.hasOwnProperty(k) && newQueryParams[k] === null) {\n        delete newQueryParams[k];\n      }\n    }\n    let finalQueryParamsArray = [];\n    this.triggerEvent(resolvedHandlers, true, 'finalizeQueryParamChange', [newQueryParams, finalQueryParamsArray, transition]);\n    if (transition) {\n      transition._visibleQueryParams = {};\n    }\n    let finalQueryParams = {};\n    for (let i = 0, len = finalQueryParamsArray.length; i < len; ++i) {\n      let qp = finalQueryParamsArray[i];\n      finalQueryParams[qp.key] = qp.value;\n      if (transition && qp.visible !== false) {\n        transition._visibleQueryParams[qp.key] = qp.value;\n      }\n    }\n    return finalQueryParams;\n  }\n  toReadOnlyInfos(newTransition, newState) {\n    let oldRouteInfos = this.state.routeInfos;\n    this.fromInfos(newTransition, oldRouteInfos);\n    this.toInfos(newTransition, newState.routeInfos);\n    this._lastQueryParams = newState.queryParams;\n  }\n  fromInfos(newTransition, oldRouteInfos) {\n    if (newTransition !== undefined && oldRouteInfos.length > 0) {\n      let fromInfos = toReadOnlyRouteInfo(oldRouteInfos, Object.assign({}, this._lastQueryParams), {\n        includeAttributes: true,\n        localizeMapUpdates: false\n      });\n      newTransition.from = fromInfos[fromInfos.length - 1] || null;\n    }\n  }\n  toInfos(newTransition, newRouteInfos, includeAttributes = false) {\n    if (newTransition !== undefined && newRouteInfos.length > 0) {\n      let toInfos = toReadOnlyRouteInfo(newRouteInfos, Object.assign({}, newTransition[QUERY_PARAMS_SYMBOL]), {\n        includeAttributes,\n        localizeMapUpdates: false\n      });\n      newTransition.to = toInfos[toInfos.length - 1] || null;\n    }\n  }\n  notifyExistingHandlers(newState, newTransition) {\n    let oldRouteInfos = this.state.routeInfos,\n      i,\n      oldRouteInfoLen,\n      oldHandler,\n      newRouteInfo;\n    oldRouteInfoLen = oldRouteInfos.length;\n    for (i = 0; i < oldRouteInfoLen; i++) {\n      oldHandler = oldRouteInfos[i];\n      newRouteInfo = newState.routeInfos[i];\n      if (!newRouteInfo || oldHandler.name !== newRouteInfo.name) {\n        break;\n      }\n      if (!newRouteInfo.isResolved) ;\n    }\n    this.triggerEvent(oldRouteInfos, true, 'willTransition', [newTransition]);\n    this.routeWillChange(newTransition);\n    this.willTransition(oldRouteInfos, newState.routeInfos, newTransition);\n  }\n\n  /**\n    Clears the current and target route routes and triggers exit\n    on each of them starting at the leaf and traversing up through\n    its ancestors.\n  */\n  reset() {\n    if (this.state) {\n      forEach(this.state.routeInfos.slice().reverse(), function (routeInfo) {\n        let route = routeInfo.route;\n        if (route !== undefined) {\n          if (route.exit !== undefined) {\n            route.exit();\n          }\n        }\n        return true;\n      });\n    }\n    this.oldState = undefined;\n    this.state = new TransitionState();\n    this.currentRouteInfos = undefined;\n  }\n\n  /**\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  */\n  handleURL(url) {\n    // Perform a URL-based transition, but don't change\n    // the URL afterward, since it already happened.\n    if (url.charAt(0) !== '/') {\n      url = '/' + url;\n    }\n    return this.doTransition(url).method(null);\n  }\n\n  /**\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  */\n  transitionTo(name, ...contexts) {\n    if (typeof name === 'object') {\n      contexts.push(name);\n      return this.doTransition(undefined, contexts, false);\n    }\n    return this.doTransition(name, contexts);\n  }\n  intermediateTransitionTo(name, ...args) {\n    return this.doTransition(name, args, true);\n  }\n  refresh(pivotRoute) {\n    let previousTransition = this.activeTransition;\n    let state = previousTransition ? previousTransition[STATE_SYMBOL] : this.state;\n    let routeInfos = state.routeInfos;\n    if (pivotRoute === undefined) {\n      pivotRoute = routeInfos[0].route;\n    }\n    log(this, 'Starting a refresh transition');\n    let name = routeInfos[routeInfos.length - 1].name;\n    let intent = new NamedTransitionIntent(this, name, pivotRoute, [], this._changedQueryParams || state.queryParams);\n    let newTransition = this.transitionByIntent(intent, false);\n\n    // if the previous transition is a replace transition, that needs to be preserved\n    if (previousTransition && previousTransition.urlMethod === 'replace') {\n      newTransition.method(previousTransition.urlMethod);\n    }\n    return newTransition;\n  }\n\n  /**\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  */\n  replaceWith(name) {\n    return this.doTransition(name).method('replace');\n  }\n\n  /**\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  */\n  generate(routeName, ...args) {\n    let partitionedArgs = extractQueryParams(args),\n      suppliedParams = partitionedArgs[0],\n      queryParams = partitionedArgs[1];\n\n    // Construct a TransitionIntent with the provided params\n    // and apply it to the present state of the router.\n    let intent = new NamedTransitionIntent(this, routeName, undefined, suppliedParams);\n    let state = intent.applyToState(this.state, false);\n    let params = {};\n    for (let i = 0, len = state.routeInfos.length; i < len; ++i) {\n      let routeInfo = state.routeInfos[i];\n      let routeParams = routeInfo.serialize();\n      merge(params, routeParams);\n    }\n    params.queryParams = queryParams;\n    return this.recognizer.generate(routeName, params);\n  }\n  applyIntent(routeName, contexts) {\n    let intent = new NamedTransitionIntent(this, routeName, undefined, contexts);\n    let state = this.activeTransition && this.activeTransition[STATE_SYMBOL] || this.state;\n    return intent.applyToState(state, false);\n  }\n  isActiveIntent(routeName, contexts, queryParams, _state) {\n    let state = _state || this.state,\n      targetRouteInfos = state.routeInfos,\n      routeInfo,\n      len;\n    if (!targetRouteInfos.length) {\n      return false;\n    }\n    let targetHandler = targetRouteInfos[targetRouteInfos.length - 1].name;\n    let recognizerHandlers = this.recognizer.handlersFor(targetHandler);\n    let index = 0;\n    for (len = recognizerHandlers.length; index < len; ++index) {\n      routeInfo = targetRouteInfos[index];\n      if (routeInfo.name === routeName) {\n        break;\n      }\n    }\n    if (index === recognizerHandlers.length) {\n      // The provided route name isn't even in the route hierarchy.\n      return false;\n    }\n    let testState = new TransitionState();\n    testState.routeInfos = targetRouteInfos.slice(0, index + 1);\n    recognizerHandlers = recognizerHandlers.slice(0, index + 1);\n    let intent = new NamedTransitionIntent(this, targetHandler, undefined, contexts);\n    let newState = intent.applyToHandlers(testState, recognizerHandlers, targetHandler, true, true);\n    let routesEqual = routeInfosEqual(newState.routeInfos, testState.routeInfos);\n    if (!queryParams || !routesEqual) {\n      return routesEqual;\n    }\n\n    // Get a hash of QPs that will still be active on new route\n    let activeQPsOnNewHandler = {};\n    merge(activeQPsOnNewHandler, queryParams);\n    let activeQueryParams = state.queryParams;\n    for (let key in activeQueryParams) {\n      if (activeQueryParams.hasOwnProperty(key) && activeQPsOnNewHandler.hasOwnProperty(key)) {\n        activeQPsOnNewHandler[key] = activeQueryParams[key];\n      }\n    }\n    return routesEqual && !getChangelist(activeQPsOnNewHandler, queryParams);\n  }\n  isActive(routeName, ...args) {\n    let [contexts, queryParams] = extractQueryParams(args);\n    return this.isActiveIntent(routeName, contexts, queryParams);\n  }\n  trigger(name, ...args) {\n    this.triggerEvent(this.currentRouteInfos, false, name, args);\n  }\n}\nfunction routeInfosEqual(routeInfos, otherRouteInfos) {\n  if (routeInfos.length !== otherRouteInfos.length) {\n    return false;\n  }\n  for (let i = 0, len = routeInfos.length; i < len; ++i) {\n    // SAFETY: Just casting for comparison\n    if (routeInfos[i] !== otherRouteInfos[i]) {\n      return false;\n    }\n  }\n  return true;\n}\nfunction routeInfosSameExceptQueryParams(routeInfos, otherRouteInfos) {\n  if (routeInfos.length !== otherRouteInfos.length) {\n    return false;\n  }\n  for (let i = 0, len = routeInfos.length; i < len; ++i) {\n    if (routeInfos[i].name !== otherRouteInfos[i].name) {\n      return false;\n    }\n    if (!paramsEqual(routeInfos[i].params, otherRouteInfos[i].params)) {\n      return false;\n    }\n  }\n  return true;\n}\nfunction paramsEqual(params, otherParams) {\n  if (params === otherParams) {\n    // Both identical or both undefined\n    return true;\n  }\n  if (!params || !otherParams) {\n    // One is falsy but other is not\n    return false;\n  }\n  let keys = Object.keys(params);\n  let otherKeys = Object.keys(otherParams);\n  if (keys.length !== otherKeys.length) {\n    return false;\n  }\n  for (let i = 0, len = keys.length; i < len; ++i) {\n    let key = keys[i];\n    if (params[key] !== otherParams[key]) {\n      return false;\n    }\n  }\n  return true;\n}\n\nexport { InternalRouteInfo, Transition as InternalTransition, PARAMS_SYMBOL, QUERY_PARAMS_SYMBOL, STATE_SYMBOL, TransitionError, TransitionState, Router as default, logAbort };\n","import { meta } from '../@ember/-internals/meta/lib/meta.js';\nimport inspect from '../@ember/debug/lib/inspect.js';\nimport { u as untrack, v as validateTag, U as UPDATE_TAG, a as valueForTag, c as consumeTag } from './cache-CofLhaS4.js';\nimport { a as tagMetaFor, t as tagFor } from './meta-BJtIZDir.js';\nimport { C as CHAIN_PASS_THROUGH, g as getChainTagsForKey, f as finishLazyChains } from './chain-tags-BlsXEpE-.js';\nimport { m as makeComputedDecorator, a as descriptorForDecorator, b as ComputedDescriptor } from './decorator-DcvVDSJV.js';\nimport { d as defineProperty } from './computed-ZvOk7SJQ.js';\nimport { g as get } from './property_get-DuDs6rLg.js';\nimport { s as set } from './property_set-CVmdjPdh.js';\n\nfunction alias(altKey) {\n  return makeComputedDecorator(new AliasedProperty(altKey), AliasDecoratorImpl);\n}\n\n// TODO: This class can be svelted once `meta` has been deprecated\nclass AliasDecoratorImpl extends Function {\n  readOnly() {\n    descriptorForDecorator(this).readOnly();\n    return this;\n  }\n  oneWay() {\n    descriptorForDecorator(this).oneWay();\n    return this;\n  }\n  meta(meta) {\n    let prop = descriptorForDecorator(this);\n    if (arguments.length === 0) {\n      return prop._meta || {};\n    } else {\n      prop._meta = meta;\n    }\n  }\n}\nclass AliasedProperty extends ComputedDescriptor {\n  altKey;\n  constructor(altKey) {\n    super();\n    this.altKey = altKey;\n  }\n  setup(obj, keyName, propertyDesc, meta) {\n    super.setup(obj, keyName, propertyDesc, meta);\n    CHAIN_PASS_THROUGH.add(this);\n  }\n  get(obj, keyName) {\n    let ret;\n    let meta$1 = meta(obj);\n    let tagMeta = tagMetaFor(obj);\n    let propertyTag = tagFor(obj, keyName, tagMeta);\n\n    // We don't use the tag since CPs are not automatic, we just want to avoid\n    // anything tracking while we get the altKey\n    untrack(() => {\n      ret = get(obj, this.altKey);\n    });\n    let lastRevision = meta$1.revisionFor(keyName);\n    if (lastRevision === undefined || !validateTag(propertyTag, lastRevision)) {\n      UPDATE_TAG(propertyTag, getChainTagsForKey(obj, this.altKey, tagMeta, meta$1));\n      meta$1.setRevisionFor(keyName, valueForTag(propertyTag));\n      finishLazyChains(meta$1, keyName, ret);\n    }\n    consumeTag(propertyTag);\n    return ret;\n  }\n  set(obj, _keyName, value) {\n    return set(obj, this.altKey, value);\n  }\n  readOnly() {\n    this.set = AliasedProperty_readOnlySet;\n  }\n  oneWay() {\n    this.set = AliasedProperty_oneWaySet;\n  }\n}\nfunction AliasedProperty_readOnlySet(obj, keyName) {\n  throw new Error(`Cannot set read-only property '${keyName}' on object: ${inspect(obj)}`);\n}\nfunction AliasedProperty_oneWaySet(obj, keyName, value) {\n  defineProperty(obj, keyName, null);\n  return set(obj, keyName, value);\n}\n\nexport { alias as a };\n","import { S as StackImpl, e as expect } from './collections-GpG8lT2g.js';\nimport { a as assert } from './assert-Zqc4wiAV.js';\nimport { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';\nimport { registerDestructor, destroy } from '../@glimmer/destroyable/index.js';\nimport { D as DESTROYABLE_META_KEY } from './destroyable-key-BsfVBM7f.js';\nimport { i as isSafeString, n as normalizeStringValue, a as CursorImpl, C as ConcreteBounds, c as clear } from './normalize-C_IStty9.js';\nimport { a as castToBrowser } from './simple-cast-DCvJLSin.js';\nimport { n as normalizeProperty } from './props-fiqxqhAH.js';\n\nconst ELEMENT_NODE = 1;\nconst TEXT_NODE = 3;\nconst COMMENT_NODE = 8;\nconst NS_MATHML = 'http://www.w3.org/1998/Math/MathML';\nconst NS_SVG = 'http://www.w3.org/2000/svg';\nconst INSERT_BEFORE_BEGIN = 'beforebegin';\nconst INSERT_BEFORE_END = 'beforeend';\n\nconst badProtocols = ['javascript:', 'vbscript:'];\nconst badTags = ['A', 'AREA', 'BODY', 'LINK', 'IMG', 'IFRAME', 'BASE', 'FORM', 'BUTTON', 'INPUT'];\nconst badTagsForDataURI = ['EMBED'];\nconst badTagsForDataProtocol = ['IFRAME', 'OBJECT'];\nconst badAttributes = ['href', 'src', 'background', 'action', 'formaction', 'xlink:href'];\nconst badAttributesForDataURI = ['src'];\nconst badAttributesForDataProtocol = ['src', 'data'];\nfunction has(array, item) {\n  return array.indexOf(item) !== -1;\n}\nfunction checkURI(tagName, attribute) {\n  // SVG tagNames are case-preserved, so the SVG `<a>` element comes through as\n  // lowercase `a` and never matches the uppercase `badTags` entries unless we\n  // normalize first. The attribute name can likewise arrive camelCased (e.g.\n  // `formAction`) when the template author writes it that way and it resolves to\n  // a DOM property, so lower-case it before matching the lowercase lists.\n  return (tagName === null || has(badTags, tagName.toUpperCase())) && has(badAttributes, attribute.toLowerCase());\n}\nfunction checkDataURI(tagName, attribute) {\n  if (tagName === null) return false;\n  return has(badTagsForDataURI, tagName.toUpperCase()) && has(badAttributesForDataURI, attribute.toLowerCase());\n}\nfunction checkDataProtocol(tagName, attribute) {\n  if (tagName === null) return false;\n  return has(badTagsForDataProtocol, tagName.toUpperCase()) && has(badAttributesForDataProtocol, attribute.toLowerCase());\n}\nfunction requiresSanitization(tagName, attribute) {\n  return checkURI(tagName, attribute) || checkDataURI(tagName, attribute) || checkDataProtocol(tagName, attribute);\n}\nfunction findProtocolForURL() {\n  const weirdURL = URL;\n  if (typeof weirdURL === 'object' && weirdURL !== null &&\n  // 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\n  typeof weirdURL.parse === 'function') {\n    // In Ember-land the `fastboot` package sets the `URL` global to `require('url')`\n    // ultimately, this should be changed (so that we can either rely on the natural `URL` global\n    // that exists) but for now we have to detect the specific `FastBoot` case first\n    //\n    // a future version of `fastboot` will detect if this legacy URL setup is required (by\n    // inspecting Ember version) and if new enough, it will avoid shadowing the `URL` global\n    // constructor with `require('url')`.\n    let nodeURL = weirdURL;\n    return url => {\n      let protocol = null;\n      if (typeof url === 'string') {\n        // browsers strip ASCII tab/newline/CR from urls before navigating, so\n        // `java\\nscript:` runs as `javascript:`. `url.parse` keeps them and reports\n        // a null protocol, slipping past the badProtocols check. Strip them here to\n        // match the WHATWG `URL` parser used on the non-fastboot path.\n        protocol = nodeURL.parse(url.replace(/[\\t\\n\\r]/gu, '')).protocol;\n      }\n      return protocol === null ? ':' : protocol;\n    };\n  } else if (typeof weirdURL === 'function') {\n    return _url => {\n      try {\n        let url = new weirdURL(_url);\n        return url.protocol;\n      } catch {\n        // any non-fully qualified url string will trigger an error (because there is no\n        // baseURI that we can provide; in that case we **know** that the protocol is\n        // \"safe\" because it isn't specifically one of the `badProtocols` listed above\n        // (and those protocols can never be the default baseURI)\n        return ':';\n      }\n    };\n  } else {\n    throw new Error(`@glimmer/runtime needs a valid \"globalThis.URL\"`);\n  }\n}\nlet _protocolForUrlImplementation;\nfunction protocolForUrl(url) {\n  if (!_protocolForUrlImplementation) {\n    _protocolForUrlImplementation = findProtocolForURL();\n  }\n  return _protocolForUrlImplementation(url);\n}\nfunction sanitizeAttributeValue(element, attribute, value) {\n  if (value === null || value === undefined) {\n    return value;\n  }\n  if (isSafeString(value)) {\n    return value.toHTML();\n  }\n  const tagName = element.tagName;\n  let str = normalizeStringValue(value);\n  if (checkURI(tagName, attribute)) {\n    let protocol = protocolForUrl(str);\n    if (has(badProtocols, protocol)) {\n      return `unsafe:${str}`;\n    }\n  }\n  if (checkDataProtocol(tagName, attribute)) {\n    let protocol = protocolForUrl(str);\n    if (protocol === 'data:' || has(badProtocols, protocol)) {\n      return `unsafe:${str}`;\n    }\n  }\n  if (checkDataURI(tagName, attribute)) {\n    return `unsafe:${str}`;\n  }\n  return str;\n}\n\nfunction dynamicAttribute(element, attr, namespace, isTrusting = false) {\n  const {\n    tagName,\n    namespaceURI\n  } = element;\n  const attribute = {\n    element,\n    name: attr,\n    namespace\n  };\n  if (namespaceURI === NS_SVG) {\n    return buildDynamicAttribute(tagName, attr, attribute);\n  }\n  const {\n    type,\n    normalized\n  } = normalizeProperty(element, attr);\n  if (type === 'attr') {\n    return buildDynamicAttribute(tagName, normalized, attribute);\n  } else {\n    return buildDynamicProperty(tagName, normalized, attribute);\n  }\n}\nfunction buildDynamicAttribute(tagName, name, attribute) {\n  if (requiresSanitization(tagName, name)) {\n    return new SafeDynamicAttribute(attribute);\n  } else {\n    return new SimpleDynamicAttribute(attribute);\n  }\n}\nfunction buildDynamicProperty(tagName, name, attribute) {\n  if (requiresSanitization(tagName, name)) {\n    return new SafeDynamicProperty(name, attribute);\n  }\n  if (isUserInputValue(tagName, name)) {\n    return new InputValueDynamicAttribute(name, attribute);\n  }\n  if (isOptionSelected(tagName, name)) {\n    return new OptionSelectedDynamicAttribute(name, attribute);\n  }\n  return new DefaultDynamicProperty(name, attribute);\n}\nclass DynamicAttribute {\n  constructor(attribute) {\n    this.attribute = attribute;\n  }\n}\nclass SimpleDynamicAttribute extends DynamicAttribute {\n  set(dom, value, _env) {\n    const normalizedValue = normalizeValue(value);\n    if (normalizedValue !== null) {\n      const {\n        name,\n        namespace\n      } = this.attribute;\n      dom.__setAttribute(name, normalizedValue, namespace);\n    }\n  }\n  update(value, _env) {\n    const normalizedValue = normalizeValue(value);\n    const {\n      element,\n      name\n    } = this.attribute;\n    if (normalizedValue === null) {\n      element.removeAttribute(name);\n    } else {\n      element.setAttribute(name, normalizedValue);\n    }\n  }\n}\nclass DefaultDynamicProperty extends DynamicAttribute {\n  constructor(normalizedName, attribute) {\n    super(attribute);\n    this.normalizedName = normalizedName;\n  }\n  value;\n  set(dom, value, _env) {\n    if (value !== null && value !== undefined) {\n      this.value = value;\n      dom.__setProperty(this.normalizedName, value);\n    }\n  }\n  update(value, _env) {\n    const {\n      element\n    } = this.attribute;\n    if (this.value !== value) {\n      element[this.normalizedName] = this.value = value;\n      if (value === null || value === undefined) {\n        this.removeAttribute();\n      }\n    }\n  }\n  removeAttribute() {\n    // TODO this sucks but to preserve properties first and to meet current\n    // semantics we must do this.\n    const {\n      element,\n      namespace\n    } = this.attribute;\n    if (namespace) {\n      element.removeAttributeNS(namespace, this.normalizedName);\n    } else {\n      element.removeAttribute(this.normalizedName);\n    }\n  }\n}\nclass SafeDynamicProperty extends DefaultDynamicProperty {\n  set(dom, value, env) {\n    const {\n      element,\n      name\n    } = this.attribute;\n    const sanitized = sanitizeAttributeValue(element, name, value);\n    super.set(dom, sanitized, env);\n  }\n  update(value, env) {\n    const {\n      element,\n      name\n    } = this.attribute;\n    const sanitized = sanitizeAttributeValue(element, name, value);\n    super.update(sanitized, env);\n  }\n}\nclass SafeDynamicAttribute extends SimpleDynamicAttribute {\n  set(dom, value, env) {\n    const {\n      element,\n      name\n    } = this.attribute;\n    const sanitized = sanitizeAttributeValue(element, name, value);\n    super.set(dom, sanitized, env);\n  }\n  update(value, env) {\n    const {\n      element,\n      name\n    } = this.attribute;\n    const sanitized = sanitizeAttributeValue(element, name, value);\n    super.update(sanitized, env);\n  }\n}\nclass InputValueDynamicAttribute extends DefaultDynamicProperty {\n  set(dom, value) {\n    const normalized = normalizeStringValue(value);\n    dom.__setProperty('value', normalized);\n\n    // GH#19219: Browsers don't reflect `input.value = ''` as a value attribute when\n    // type is later changed to \"radio\"/\"checkbox\". Explicitly set the attribute for <input>.\n    // Not needed for <textarea> (no value attribute).\n    if (value === '' && this.attribute.element.tagName === 'INPUT') {\n      dom.__setAttribute('value', '', null);\n    }\n  }\n  update(value) {\n    const input = castToBrowser(this.attribute.element);\n    const currentValue = input.value;\n    const normalizedValue = normalizeStringValue(value);\n    if (currentValue !== normalizedValue) {\n      input.value = normalizedValue;\n    }\n  }\n}\nclass OptionSelectedDynamicAttribute extends DefaultDynamicProperty {\n  set(dom, value) {\n    if (value !== null && value !== undefined && value !== false) {\n      dom.__setProperty('selected', true);\n    }\n  }\n  update(value) {\n    const option = castToBrowser(this.attribute.element);\n    if (value) {\n      option.selected = true;\n    } else {\n      option.selected = false;\n    }\n  }\n}\nfunction isOptionSelected(tagName, attribute) {\n  return tagName === 'OPTION' && attribute === 'selected';\n}\nfunction isUserInputValue(tagName, attribute) {\n  return (tagName === 'INPUT' || tagName === 'TEXTAREA') && attribute === 'value';\n}\nfunction normalizeValue(value) {\n  if (value === false || value === undefined || value === null || typeof value.toString === 'undefined') {\n    return null;\n  }\n  if (value === true) {\n    return '';\n  }\n  // onclick function etc in SSR\n  if (typeof value === 'function') {\n    return null;\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-base-to-string -- @fixme\n  return String(value);\n}\n\nclass First {\n  constructor(node) {\n    this.node = node;\n  }\n  firstNode() {\n    return this.node;\n  }\n}\nclass Last {\n  constructor(node) {\n    this.node = node;\n  }\n  lastNode() {\n    return this.node;\n  }\n}\nclass NewTreeBuilder {\n  dom;\n  updateOperations;\n  constructing = null;\n  operations = null;\n  env;\n  cursors = new StackImpl();\n  modifierStack = new StackImpl();\n  blockStack = new StackImpl();\n  static forInitialRender(env, cursor) {\n    return new this(env, cursor.element, cursor.nextSibling).initialize();\n  }\n  static resume(env, block) {\n    let parentNode = block.parentElement();\n    let nextSibling = block.reset(env);\n    let stack = new this(env, parentNode, nextSibling).initialize();\n    stack.pushBlock(block);\n    return stack;\n  }\n  constructor(env, parentNode, nextSibling) {\n    this.pushElement(parentNode, nextSibling);\n    this.env = env;\n    this.dom = env.getAppendOperations();\n    this.updateOperations = env.getDOM();\n  }\n  initialize() {\n    this.pushAppendingBlock();\n    return this;\n  }\n  debugBlocks() {\n    return this.blockStack.toArray();\n  }\n  get element() {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    return this.cursors.current.element;\n  }\n  get nextSibling() {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    return this.cursors.current.nextSibling;\n  }\n  get hasBlocks() {\n    return this.blockStack.size > 0;\n  }\n  block() {\n    return expect(this.blockStack.current);\n  }\n  popElement() {\n    this.cursors.pop();\n    expect(this.cursors.current);\n  }\n  pushAppendingBlock() {\n    return this.pushBlock(new AppendingBlockImpl(this.element));\n  }\n  pushResettableBlock() {\n    return this.pushBlock(new ResettableBlockImpl(this.element));\n  }\n  pushBlockList(list) {\n    return this.pushBlock(new AppendingBlockList(this.element, list));\n  }\n  pushBlock(block, isRemote = false) {\n    let current = this.blockStack.current;\n    if (current !== null) {\n      if (!isRemote) {\n        current.didAppendBounds(block);\n      }\n    }\n    this.__openBlock();\n    this.blockStack.push(block);\n    return block;\n  }\n  popBlock() {\n    this.block().finalize(this);\n    this.__closeBlock();\n    return expect(this.blockStack.pop());\n  }\n  __openBlock() {}\n  __closeBlock() {}\n\n  // todo return seems unused\n  openElement(tag) {\n    let element = this.__openElement(tag);\n    this.constructing = element;\n    return element;\n  }\n  __openElement(tag) {\n    return this.dom.createElement(tag, this.element);\n  }\n  flushElement(modifiers) {\n    let parent = this.element;\n    let element = expect(this.constructing);\n    this.__flushElement(parent, element);\n    this.constructing = null;\n    this.operations = null;\n    this.pushModifiers(modifiers);\n    this.pushElement(element, null);\n    this.didOpenElement(element);\n  }\n  __flushElement(parent, constructing) {\n    this.dom.insertBefore(parent, constructing, this.nextSibling);\n  }\n  closeElement() {\n    this.willCloseElement();\n    this.popElement();\n    return this.popModifiers();\n  }\n  pushRemoteElement(element, guid, insertBefore) {\n    return this.__pushRemoteElement(element, guid, insertBefore);\n  }\n  __pushRemoteElement(element, _guid, insertBefore) {\n    this.pushElement(element, insertBefore);\n    if (insertBefore === undefined) {\n      while (element.lastChild) {\n        element.removeChild(element.lastChild);\n      }\n    }\n    let block = new RemoteBlock(element);\n    return this.pushBlock(block, true);\n  }\n  popRemoteElement() {\n    const block = this.popBlock();\n    this.popElement();\n    return block;\n  }\n  pushElement(element, nextSibling = null) {\n    this.cursors.push(new CursorImpl(element, nextSibling));\n  }\n  pushModifiers(modifiers) {\n    this.modifierStack.push(modifiers);\n  }\n  popModifiers() {\n    return this.modifierStack.pop();\n  }\n  didAppendBounds(bounds) {\n    this.block().didAppendBounds(bounds);\n    return bounds;\n  }\n  didAppendNode(node) {\n    this.block().didAppendNode(node);\n    return node;\n  }\n  didOpenElement(element) {\n    this.block().openElement(element);\n    return element;\n  }\n  willCloseElement() {\n    this.block().closeElement();\n  }\n  appendText(string) {\n    return this.didAppendNode(this.__appendText(string));\n  }\n  __appendText(text) {\n    let {\n      dom,\n      element,\n      nextSibling\n    } = this;\n    let node = dom.createTextNode(text);\n    dom.insertBefore(element, node, nextSibling);\n    return node;\n  }\n  __appendNode(node) {\n    this.dom.insertBefore(this.element, node, this.nextSibling);\n    return node;\n  }\n  __appendFragment(fragment) {\n    let first = fragment.firstChild;\n    if (first) {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      let ret = new ConcreteBounds(this.element, first, fragment.lastChild);\n      this.dom.insertBefore(this.element, fragment, this.nextSibling);\n      return ret;\n    } else {\n      const comment = this.__appendComment('');\n      return new ConcreteBounds(this.element, comment, comment);\n    }\n  }\n  __appendHTML(html) {\n    return this.dom.insertHTMLBefore(this.element, this.nextSibling, html);\n  }\n  appendDynamicHTML(value) {\n    let bounds = this.trustedContent(value);\n    this.didAppendBounds(bounds);\n  }\n  appendDynamicText(value) {\n    let node = this.untrustedContent(value);\n    this.didAppendNode(node);\n    return node;\n  }\n  appendDynamicFragment(value) {\n    let bounds = this.__appendFragment(value);\n    this.didAppendBounds(bounds);\n  }\n  appendDynamicNode(value) {\n    let node = this.__appendNode(value);\n    let bounds = new ConcreteBounds(this.element, node, node);\n    this.didAppendBounds(bounds);\n  }\n  trustedContent(value) {\n    return this.__appendHTML(value);\n  }\n  untrustedContent(value) {\n    return this.__appendText(value);\n  }\n  appendComment(string) {\n    return this.didAppendNode(this.__appendComment(string));\n  }\n  __appendComment(string) {\n    let {\n      dom,\n      element,\n      nextSibling\n    } = this;\n    let node = dom.createComment(string);\n    dom.insertBefore(element, node, nextSibling);\n    return node;\n  }\n  __setAttribute(name, value, namespace) {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    this.dom.setAttribute(this.constructing, name, value, namespace);\n  }\n  __setProperty(name, value) {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    this.constructing[name] = value;\n  }\n  setStaticAttribute(name, value, namespace) {\n    this.__setAttribute(name, value, namespace);\n  }\n  setDynamicAttribute(name, value, trusting, namespace) {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    let element = this.constructing;\n    let attribute = dynamicAttribute(element, name, namespace, trusting);\n    attribute.set(this, value, this.env);\n    return attribute;\n  }\n}\nclass AppendingBlockImpl {\n  [DESTROYABLE_META_KEY];\n  first = null;\n  last = null;\n  nesting = 0;\n  constructor(parent) {\n    this.parent = parent;\n    setLocalDebugType('block:simple', this);\n  }\n  parentElement() {\n    return this.parent;\n  }\n  firstNode() {\n    let first = expect(this.first);\n    return first.firstNode();\n  }\n  lastNode() {\n    let last = expect(this.last);\n    return last.lastNode();\n  }\n  openElement(element) {\n    this.didAppendNode(element);\n    this.nesting++;\n  }\n  closeElement() {\n    this.nesting--;\n  }\n  didAppendNode(node) {\n    if (this.nesting !== 0) return;\n    if (!this.first) {\n      this.first = new First(node);\n    }\n    this.last = new Last(node);\n  }\n  didAppendBounds(bounds) {\n    if (this.nesting !== 0) return;\n    if (!this.first) {\n      this.first = bounds;\n    }\n    this.last = bounds;\n  }\n  finalize(stack) {\n    if (this.first === null) {\n      stack.appendComment('');\n    }\n  }\n}\nclass RemoteBlock extends AppendingBlockImpl {\n  constructor(parent) {\n    super(parent);\n    setLocalDebugType('block:remote', this);\n    registerDestructor(this, () => {\n      // In general, you only need to clear the root of a hierarchy, and should never\n      // need to clear any child nodes. This is an important constraint that gives us\n      // a strong guarantee that clearing a subtree is a single DOM operation.\n      //\n      // Because remote blocks are not normally physically nested inside of the tree\n      // that they are logically nested inside, we manually clear remote blocks when\n      // a logical parent is cleared.\n      //\n      // HOWEVER, it is currently possible for a remote block to be physically nested\n      // inside of the block it is logically contained inside of. This happens when\n      // the remote block is appended to the end of the application's entire element.\n      //\n      // The problem with that scenario is that Glimmer believes that it owns more of\n      // the DOM than it actually does. The code is attempting to write past the end\n      // of the Glimmer-managed root, but Glimmer isn't aware of that.\n      //\n      // The correct solution to that problem is for Glimmer to be aware of the end\n      // of the bounds that it owns, and once we make that change, this check could\n      // be removed.\n      //\n      // For now, a more targeted fix is to check whether the node was already removed\n      // and avoid clearing the node if it was. In most cases this shouldn't happen,\n      // so this might hide bugs where the code clears nested nodes unnecessarily,\n      // so we should eventually try to do the correct fix.\n      if (this.parentElement() === this.firstNode().parentNode) {\n        clear(this);\n      }\n    });\n  }\n}\nclass ResettableBlockImpl extends AppendingBlockImpl {\n  constructor(parent) {\n    super(parent);\n    setLocalDebugType('block:resettable', this);\n  }\n  reset() {\n    destroy(this);\n    let nextSibling = clear(this);\n    this.first = null;\n    this.last = null;\n    this.nesting = 0;\n    return nextSibling;\n  }\n}\n\n// FIXME: All the noops in here indicate a modelling problem\nclass AppendingBlockList {\n  constructor(parent, boundList) {\n    this.parent = parent;\n    this.boundList = boundList;\n    this.parent = parent;\n    this.boundList = boundList;\n  }\n  parentElement() {\n    return this.parent;\n  }\n  firstNode() {\n    let head = expect(this.boundList[0]);\n    return head.firstNode();\n  }\n  lastNode() {\n    let boundList = this.boundList;\n    let tail = expect(boundList[boundList.length - 1]);\n    return tail.lastNode();\n  }\n  openElement(_element) {\n  }\n  closeElement() {\n  }\n  didAppendNode(_node) {\n  }\n  didAppendBounds(_bounds) {}\n  finalize(_stack) {\n    assert(this.boundList.length > 0);\n  }\n}\nfunction clientBuilder(env, cursor) {\n  return NewTreeBuilder.forInitialRender(env, cursor);\n}\n\n// http://www.w3.org/TR/html/syntax.html#html-integration-point\nconst SVG_INTEGRATION_POINTS = {\n  foreignObject: 1,\n  desc: 1,\n  title: 1\n};\n\n// http://www.w3.org/TR/html/syntax.html#adjust-svg-attributes\n// TODO: Adjust SVG attributes\n\n// http://www.w3.org/TR/html/syntax.html#parsing-main-inforeign\n// TODO: Adjust SVG elements\n\n// http://www.w3.org/TR/html/syntax.html#parsing-main-inforeign\nconst BLACKLIST_TABLE = Object.create(null);\nclass DOMOperations {\n  // Set by this.setupUselessElement() in constructor\n\n  constructor(document) {\n    this.document = document;\n    this.setupUselessElement();\n  }\n\n  // split into separate method so that NodeDOMTreeConstruction\n  // can override it.\n  setupUselessElement() {\n    this.uselessElement = this.document.createElement('div');\n  }\n  createElement(tag, context) {\n    let isElementInSVGNamespace, isHTMLIntegrationPoint, isElementInMathMlNamespace, ns;\n    if (context) {\n      isElementInSVGNamespace = context.namespaceURI === NS_SVG || tag === 'svg';\n      isElementInMathMlNamespace = context.namespaceURI === NS_MATHML || tag === 'math';\n      isHTMLIntegrationPoint = !!SVG_INTEGRATION_POINTS[context.tagName];\n    } else {\n      isElementInSVGNamespace = tag === 'svg';\n      isElementInMathMlNamespace = tag === 'math';\n      isHTMLIntegrationPoint = false;\n    }\n    if ((isElementInMathMlNamespace || isElementInSVGNamespace) && !isHTMLIntegrationPoint) {\n      // FIXME: This does not properly handle <font> with color, face, or\n      // size attributes, which is also disallowed by the spec. We should fix\n      // this.\n      if (BLACKLIST_TABLE[tag]) {\n        throw new Error(`Cannot create a ${tag} inside an SVG context`);\n      }\n      if (isElementInMathMlNamespace) {\n        ns = NS_MATHML;\n      } else {\n        ns = NS_SVG;\n      }\n      return this.document.createElementNS(ns, tag);\n    } else {\n      return this.document.createElement(tag);\n    }\n  }\n  insertBefore(parent, node, reference) {\n    parent.insertBefore(node, reference);\n  }\n  insertHTMLBefore(parent, nextSibling, html) {\n    if (html === '') {\n      const comment = this.createComment('');\n      parent.insertBefore(comment, nextSibling);\n      return new ConcreteBounds(parent, comment, comment);\n    }\n    const prev = nextSibling ? nextSibling.previousSibling : parent.lastChild;\n    let last;\n    if (nextSibling === null) {\n      parent.insertAdjacentHTML(INSERT_BEFORE_END, html);\n      last = expect(parent.lastChild);\n    } else if (nextSibling instanceof HTMLElement) {\n      nextSibling.insertAdjacentHTML('beforebegin', html);\n      last = expect(nextSibling.previousSibling);\n    } else {\n      // Non-element nodes do not support insertAdjacentHTML, so add an\n      // element and call it on that element. Then remove the element.\n      const {\n        uselessElement\n      } = this;\n      parent.insertBefore(uselessElement, nextSibling);\n      uselessElement.insertAdjacentHTML(INSERT_BEFORE_BEGIN, html);\n      last = expect(uselessElement.previousSibling);\n      parent.removeChild(uselessElement);\n    }\n    const first = expect(prev ? prev.nextSibling : parent.firstChild);\n    return new ConcreteBounds(parent, first, last);\n  }\n  createTextNode(text) {\n    return this.document.createTextNode(text);\n  }\n  createComment(data) {\n    return this.document.createComment(data);\n  }\n}\n\nclass TreeConstruction extends DOMOperations {\n  createElementNS(namespace, tag) {\n    return this.document.createElementNS(namespace, tag);\n  }\n  setAttribute(element, name, value, namespace = null) {\n    if (namespace) {\n      element.setAttributeNS(namespace, name, value);\n    } else {\n      element.setAttribute(name, value);\n    }\n  }\n}\nconst DOMTreeConstruction = TreeConstruction;\n\nexport { BLACKLIST_TABLE as B, COMMENT_NODE as C, DOMTreeConstruction as D, ELEMENT_NODE as E, NewTreeBuilder as N, RemoteBlock as R, SimpleDynamicAttribute as S, TEXT_NODE as T, DynamicAttribute as a, ResettableBlockImpl as b, clientBuilder as c, dynamicAttribute as d, NS_SVG as e, DOMOperations as f };\n","import { j as setInternalHelperManager, k as setInternalModifierManager, s as setInternalComponentManager, C as CustomHelperManager } from './api-DJnXAjon.js';\nimport { registerDestructor } from '../@glimmer/destroyable/index.js';\nimport { a as createConstRef } from './reference-CccCE8mJ.js';\nimport { a as argsProxyFor } from './args-proxy-BHODnDyt.js';\nimport { b as buildCapabilities } from './capabilities-BuVYh-vx.js';\nimport { a as castToBrowser } from './simple-cast-DCvJLSin.js';\nimport { u as untrack, b as createUpdatableTag } from './cache-CofLhaS4.js';\n\nconst CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nfunction componentCapabilities(managerAPI, options = {}) {\n  let updateHook = Boolean(options.updateHook);\n  return buildCapabilities({\n    asyncLifeCycleCallbacks: Boolean(options.asyncLifecycleCallbacks),\n    destructor: Boolean(options.destructor),\n    updateHook\n  });\n}\nfunction hasAsyncLifeCycleCallbacks(delegate) {\n  return delegate.capabilities.asyncLifeCycleCallbacks;\n}\nfunction hasUpdateHook(delegate) {\n  return delegate.capabilities.updateHook;\n}\nfunction hasAsyncUpdateHook(delegate) {\n  return hasAsyncLifeCycleCallbacks(delegate) && hasUpdateHook(delegate);\n}\nfunction hasDestructors(delegate) {\n  return delegate.capabilities.destructor;\n}\n\n/**\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*/\nclass CustomComponentManager {\n  componentManagerDelegates = new WeakMap();\n  constructor(factory) {\n    this.factory = factory;\n  }\n  getDelegateFor(owner) {\n    let {\n      componentManagerDelegates\n    } = this;\n    let delegate = componentManagerDelegates.get(owner);\n    if (delegate === undefined) {\n      let {\n        factory\n      } = this;\n      delegate = factory(owner);\n      componentManagerDelegates.set(owner, delegate);\n    }\n    return delegate;\n  }\n  create(owner, definition, vmArgs) {\n    let delegate = this.getDelegateFor(owner);\n    let args = argsProxyFor(vmArgs.capture());\n    let component = delegate.createComponent(definition, args);\n    return new CustomComponentState(component, delegate, args);\n  }\n  getDebugName(definition) {\n    // eslint-disable-next-line @typescript-eslint/no-base-to-string\n    return typeof definition === 'function' ? definition.name : definition.toString();\n  }\n  update(bucket) {\n    let {\n      delegate\n    } = bucket;\n    if (hasUpdateHook(delegate)) {\n      let {\n        component,\n        args\n      } = bucket;\n      delegate.updateComponent(component, args);\n    }\n  }\n  didCreate({\n    component,\n    delegate\n  }) {\n    if (hasAsyncLifeCycleCallbacks(delegate)) {\n      delegate.didCreateComponent(component);\n    }\n  }\n  didUpdate({\n    component,\n    delegate\n  }) {\n    if (hasAsyncUpdateHook(delegate)) {\n      delegate.didUpdateComponent(component);\n    }\n  }\n  didRenderLayout() {}\n  didUpdateLayout() {}\n  getSelf({\n    component,\n    delegate\n  }) {\n    return createConstRef(delegate.getContext(component));\n  }\n  getDestroyable(bucket) {\n    const {\n      delegate\n    } = bucket;\n    if (hasDestructors(delegate)) {\n      const {\n        component\n      } = bucket;\n      registerDestructor(bucket, () => delegate.destroyComponent(component));\n      return bucket;\n    }\n    return null;\n  }\n  getCapabilities() {\n    return CAPABILITIES;\n  }\n}\n\n/**\n * Stores internal state about a component instance after it's been created.\n */\nclass CustomComponentState {\n  constructor(component, delegate, args) {\n    this.component = component;\n    this.delegate = delegate;\n    this.args = args;\n  }\n}\n\nfunction modifierCapabilities(managerAPI, optionalFeatures = {}) {\n  return buildCapabilities({\n    disableAutoTracking: Boolean(optionalFeatures.disableAutoTracking)\n  });\n}\n/**\n  The CustomModifierManager allows addons to provide custom modifier\n  implementations that integrate seamlessly into Ember. This is accomplished\n  through a delegate, registered with the custom modifier manager, which\n  implements a set of hooks that determine modifier behavior.\n  To create a custom modifier manager, instantiate a new CustomModifierManager\n  class and pass the delegate as the first argument:\n\n  ```js\n  let manager = new CustomModifierManager({\n    // ...delegate implementation...\n  });\n  ```\n\n  ## Delegate Hooks\n\n  Throughout the lifecycle of a modifier, the modifier manager will invoke\n  delegate hooks that are responsible for surfacing those lifecycle changes to\n  the end developer.\n  * `createModifier()` - invoked when a new instance of a modifier should be created\n  * `installModifier()` - invoked when the modifier is installed on the element\n  * `updateModifier()` - invoked when the arguments passed to a modifier change\n  * `destroyModifier()` - invoked when the modifier is about to be destroyed\n*/\nclass CustomModifierManager {\n  componentManagerDelegates = new WeakMap();\n  constructor(factory) {\n    this.factory = factory;\n  }\n  getDelegateFor(owner) {\n    let {\n      componentManagerDelegates\n    } = this;\n    let delegate = componentManagerDelegates.get(owner);\n    if (delegate === undefined) {\n      let {\n        factory\n      } = this;\n      delegate = factory(owner);\n      componentManagerDelegates.set(owner, delegate);\n    }\n    return delegate;\n  }\n  create(owner, element, definition, capturedArgs) {\n    let delegate = this.getDelegateFor(owner);\n    let args = argsProxyFor(capturedArgs);\n    let instance = delegate.createModifier(definition, args);\n    let tag = createUpdatableTag();\n    let state;\n    state = {\n      tag,\n      element,\n      delegate,\n      args,\n      modifier: instance\n    };\n    registerDestructor(state, () => delegate.destroyModifier(instance, args));\n    return state;\n  }\n  getDebugName(definition) {\n    if (typeof definition === 'function') {\n      return definition.name || definition.toString();\n    } else {\n      return '<unknown>';\n    }\n  }\n  getDebugInstance({\n    modifier\n  }) {\n    return modifier;\n  }\n  getTag({\n    tag\n  }) {\n    return tag;\n  }\n  install({\n    element,\n    args,\n    modifier,\n    delegate\n  }) {\n    let {\n      capabilities\n    } = delegate;\n    if (capabilities.disableAutoTracking) {\n      untrack(() => delegate.installModifier(modifier, castToBrowser(element, 'ELEMENT'), args));\n    } else {\n      delegate.installModifier(modifier, castToBrowser(element), args);\n    }\n  }\n  update({\n    args,\n    modifier,\n    delegate\n  }) {\n    let {\n      capabilities\n    } = delegate;\n    if (capabilities.disableAutoTracking) {\n      untrack(() => delegate.updateModifier(modifier, args));\n    } else {\n      delegate.updateModifier(modifier, args);\n    }\n  }\n  getDestroyable(state) {\n    return state;\n  }\n}\n\nfunction setComponentManager(factory, obj) {\n  return setInternalComponentManager(new CustomComponentManager(factory), obj);\n}\nfunction setModifierManager(factory, obj) {\n  return setInternalModifierManager(new CustomModifierManager(factory), obj);\n}\nfunction setHelperManager(factory, obj) {\n  return setInternalHelperManager(new CustomHelperManager(factory), obj);\n}\n\nexport { CustomComponentManager as C, CustomModifierManager as a, setHelperManager as b, componentCapabilities as c, setModifierManager as d, modifierCapabilities as m, setComponentManager as s };\n","import { associateDestroyableChild } from '../@glimmer/destroyable/index.js';\nimport { c as createComputeRef, a as createConstRef, U as UNDEFINED_REFERENCE } from './reference-CccCE8mJ.js';\nimport { a as argsProxyFor } from './args-proxy-BHODnDyt.js';\nimport { b as buildCapabilities } from './capabilities-BuVYh-vx.js';\n\nfunction helperCapabilities(managerAPI, options = {}) {\n  return buildCapabilities({\n    hasValue: Boolean(options.hasValue),\n    hasDestroyable: Boolean(options.hasDestroyable),\n    hasScheduledEffect: Boolean(options.hasScheduledEffect)\n  });\n}\n\n////////////\n\nfunction hasValue(manager) {\n  return manager.capabilities.hasValue;\n}\nfunction hasDestroyable(manager) {\n  return manager.capabilities.hasDestroyable;\n}\n\n////////////\n\nclass CustomHelperManager {\n  constructor(factory) {\n    this.factory = factory;\n  }\n  helperManagerDelegates = new WeakMap();\n  undefinedDelegate = null;\n  getDelegateForOwner(owner) {\n    let delegate = this.helperManagerDelegates.get(owner);\n    if (delegate === undefined) {\n      let {\n        factory\n      } = this;\n      delegate = factory(owner);\n      this.helperManagerDelegates.set(owner, delegate);\n    }\n    return delegate;\n  }\n  getDelegateFor(owner) {\n    if (owner === undefined) {\n      let {\n        undefinedDelegate\n      } = this;\n      if (undefinedDelegate === null) {\n        let {\n          factory\n        } = this;\n        this.undefinedDelegate = undefinedDelegate = factory(undefined);\n      }\n      return undefinedDelegate;\n    } else {\n      return this.getDelegateForOwner(owner);\n    }\n  }\n  getHelper(definition) {\n    return (capturedArgs, owner) => {\n      let manager = this.getDelegateFor(owner);\n      const args = argsProxyFor(capturedArgs);\n      const bucket = manager.createHelper(definition, args);\n      if (hasValue(manager)) {\n        let cache = createComputeRef(() => manager.getValue(bucket), null, false /* DEBUG */);\n        if (hasDestroyable(manager)) {\n          associateDestroyableChild(cache, manager.getDestroyable(bucket));\n        }\n        return cache;\n      } else if (hasDestroyable(manager)) {\n        let ref = createConstRef(undefined);\n        associateDestroyableChild(ref, manager.getDestroyable(bucket));\n        return ref;\n      } else {\n        return UNDEFINED_REFERENCE;\n      }\n    };\n  }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\nclass FunctionHelperManager {\n  capabilities = buildCapabilities({\n    hasValue: true,\n    hasDestroyable: false,\n    hasScheduledEffect: false\n  });\n  createHelper(fn, args) {\n    return {\n      fn,\n      args\n    };\n  }\n  getValue({\n    fn,\n    args\n  }) {\n    if (Object.keys(args.named).length > 0) {\n      let argsForFn = [...args.positional, args.named];\n      return fn(...argsForFn);\n    }\n    return fn(...args.positional);\n  }\n  getDebugName(fn) {\n    if (fn.name) {\n      return `(helper function ${fn.name})`;\n    }\n    return '(anonymous helper function)';\n  }\n}\n\nconst COMPONENT_MANAGERS = new WeakMap();\nconst MODIFIER_MANAGERS = new WeakMap();\nconst HELPER_MANAGERS = new WeakMap();\n\n///////////\n\n/**\n * There is also Reflect.getPrototypeOf,\n * which errors when non-objects are passed.\n *\n * Since our conditional for figuring out whether to render primitives or not\n * may contain non-object values, we don't want to throw errors when we call this.\n */\nconst getPrototypeOf = Object.getPrototypeOf;\nfunction setManager(map, manager, obj) {\n  map.set(obj, manager);\n  return obj;\n}\nfunction getManager(map, obj) {\n  let pointer = obj;\n  while (pointer !== null) {\n    const manager = map.get(pointer);\n    if (manager !== undefined) {\n      return manager;\n    }\n    pointer = getPrototypeOf(pointer);\n  }\n  return undefined;\n}\n\n///////////\n\nfunction setInternalModifierManager(manager, definition) {\n  return setManager(MODIFIER_MANAGERS, manager, definition);\n}\nfunction getInternalModifierManager(definition, isOptional) {\n  const manager = getManager(MODIFIER_MANAGERS, definition);\n  if (manager === undefined) {\n    return null;\n  }\n  return manager;\n}\nfunction setInternalHelperManager(manager, definition) {\n  return setManager(HELPER_MANAGERS, manager, definition);\n}\nconst DEFAULT_MANAGER = new CustomHelperManager(() => new FunctionHelperManager());\nfunction getInternalHelperManager(definition, isOptional) {\n  let manager = getManager(HELPER_MANAGERS, definition);\n\n  // Functions are special-cased because functions are defined\n  // as the \"default\" helper, per: https://github.com/emberjs/rfcs/pull/756\n  if (manager === undefined && typeof definition === 'function') {\n    manager = DEFAULT_MANAGER;\n  }\n  if (manager) {\n    return manager;\n  } else if (isOptional === true) {\n    return null;\n  } else ;\n  return null;\n}\nfunction setInternalComponentManager(factory, obj) {\n  return setManager(COMPONENT_MANAGERS, factory, obj);\n}\nfunction getInternalComponentManager(definition, isOptional) {\n  const manager = getManager(COMPONENT_MANAGERS, definition);\n  if (manager === undefined) {\n    return null;\n  }\n  return manager;\n}\n\n///////////\n\nfunction hasInternalComponentManager(definition) {\n  return getManager(COMPONENT_MANAGERS, definition) !== undefined;\n}\nfunction hasInternalHelperManager(definition) {\n  return hasDefaultHelperManager(definition) || getManager(HELPER_MANAGERS, definition) !== undefined;\n}\nfunction hasInternalModifierManager(definition) {\n  return getManager(MODIFIER_MANAGERS, definition) !== undefined;\n}\nfunction hasDefaultHelperManager(definition) {\n  return typeof definition === 'function';\n}\n\nexport { CustomHelperManager as C, getInternalHelperManager as a, getInternalModifierManager as b, hasInternalComponentManager as c, hasInternalHelperManager as d, hasInternalModifierManager as e, hasValue as f, getInternalComponentManager as g, hasDestroyable as h, helperCapabilities as i, setInternalHelperManager as j, setInternalModifierManager as k, setInternalComponentManager as s };\n","import { v as valueForRef } from './reference-CccCE8mJ.js';\nimport { t as track } from './cache-CofLhaS4.js';\n\nconst CUSTOM_TAG_FOR = new WeakMap();\nfunction getCustomTagFor(obj) {\n  return CUSTOM_TAG_FOR.get(obj);\n}\nfunction setCustomTagFor(obj, customTagFn) {\n  CUSTOM_TAG_FOR.set(obj, customTagFn);\n}\nfunction convertToInt(prop) {\n  if (typeof prop === 'symbol') return null;\n  const num = Number(prop);\n  if (isNaN(num)) return null;\n  return num % 1 === 0 ? num : null;\n}\nfunction tagForNamedArg(namedArgs, key) {\n  return track(() => {\n    if (key in namedArgs) {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      valueForRef(namedArgs[key]);\n    }\n  });\n}\nfunction tagForPositionalArg(positionalArgs, key) {\n  return track(() => {\n    if (key === '[]') {\n      // consume all of the tags in the positional array\n      positionalArgs.forEach(valueForRef);\n    }\n    const parsed = convertToInt(key);\n    if (parsed !== null && parsed >= 0 && parsed < positionalArgs.length) {\n      // consume the tag of the referenced index\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      valueForRef(positionalArgs[parsed]);\n    }\n  });\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type -- @fixme\nclass NamedArgsProxy {\n  // eslint-disable-next-line @typescript-eslint/no-empty-object-type -- @fixme\n\n  constructor(named) {\n    this.named = named;\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-empty-object-type -- @fixme\n  get(_target, prop) {\n    const ref = this.named[prop];\n    if (ref !== undefined) {\n      return valueForRef(ref);\n    }\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-empty-object-type -- @fixme\n  has(_target, prop) {\n    return prop in this.named;\n  }\n  ownKeys() {\n    return Object.keys(this.named);\n  }\n  isExtensible() {\n    return false;\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-empty-object-type -- @fixme\n  getOwnPropertyDescriptor(_target, prop) {\n    return {\n      enumerable: true,\n      configurable: true\n    };\n  }\n}\nclass PositionalArgsProxy {\n  constructor(positional) {\n    this.positional = positional;\n  }\n  get(target, prop) {\n    let {\n      positional\n    } = this;\n    if (prop === 'length') {\n      return positional.length;\n    }\n    const parsed = convertToInt(prop);\n    if (parsed !== null && parsed >= 0 && parsed < positional.length) {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      return valueForRef(positional[parsed]);\n    }\n\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access\n    return target[prop];\n  }\n  isExtensible() {\n    return false;\n  }\n  has(_target, prop) {\n    const parsed = convertToInt(prop);\n    return parsed !== null && parsed >= 0 && parsed < this.positional.length;\n  }\n}\nconst argsProxyFor = (capturedArgs, type) => {\n  const {\n    named,\n    positional\n  } = capturedArgs;\n  let getNamedTag = (_obj, key) => tagForNamedArg(named, key);\n  let getPositionalTag = (_obj, key) => tagForPositionalArg(positional, key);\n  const namedHandler = new NamedArgsProxy(named);\n  const positionalHandler = new PositionalArgsProxy(positional);\n\n  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n  const namedTarget = Object.create(null);\n  const positionalTarget = [];\n\n  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n  const namedProxy = new Proxy(namedTarget, namedHandler);\n  const positionalProxy = new Proxy(positionalTarget, positionalHandler);\n\n  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n  setCustomTagFor(namedProxy, getNamedTag);\n  setCustomTagFor(positionalProxy, getPositionalTag);\n  return {\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n    named: namedProxy,\n    positional: positionalProxy\n  };\n};\n\nexport { argsProxyFor as a, getCustomTagFor as g, setCustomTagFor as s };\n","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';\nimport { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';\nimport { e as expect, S as StackImpl, u as unwrap, c as isIndexable, d as dict } from './collections-GpG8lT2g.js';\nimport { 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 } from './reference-CccCE8mJ.js';\nimport { b as EMPTY_STRING_ARRAY, e as enumerate, c as emptyArray } from './array-utils-CZQxrdD3.js';\nimport { 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-CofLhaS4.js';\nimport { C as CURRIED_MODIFIER, a as CURRIED_COMPONENT } from './curried-BZnYakIg.js';\nimport { j as VM_SYSCALL_SIZE, k as VM_CHILD_SCOPE_OP, l as VM_POP_SCOPE_OP, m as VM_PUSH_DYNAMIC_SCOPE_OP, n as VM_POP_DYNAMIC_SCOPE_OP, o as VM_CONSTANT_OP, p as decodeHandle, q as VM_CONSTANT_REFERENCE_OP, r as VM_PRIMITIVE_OP, s as isHandle, t as decodeImmediate, u as VM_PRIMITIVE_REFERENCE_OP, v as VM_DUP_OP, w as VM_POP_OP, x as VM_LOAD_OP, y as VM_FETCH_OP, z as VM_BIND_DYNAMIC_SCOPE_OP, A as VM_ENTER_OP, B as VM_EXIT_OP, C as VM_PUSH_SYMBOL_TABLE_OP, D as VM_PUSH_BLOCK_SCOPE_OP, E as VM_COMPILE_BLOCK_OP, F as VM_INVOKE_YIELD_OP, G as VM_JUMP_UNLESS_OP, H as VM_JUMP_EQ_OP, b as VM_ASSERT_SAME_OP, I as VM_TO_BOOLEAN_OP, J as VM_TEXT_OP, K as VM_COMMENT_OP, L as VM_OPEN_ELEMENT_OP, M as VM_OPEN_DYNAMIC_ELEMENT_OP, N as VM_PUSH_REMOTE_ELEMENT_OP, O as VM_POP_REMOTE_ELEMENT_OP, P as VM_FLUSH_ELEMENT_OP, Q as VM_CLOSE_ELEMENT_OP, R as VM_MODIFIER_OP, S as VM_DYNAMIC_MODIFIER_OP, T as VM_STATIC_ATTR_OP, U as VM_DYNAMIC_ATTR_OP, W as VM_PUSH_COMPONENT_DEFINITION_OP, X as VM_RESOLVE_DYNAMIC_COMPONENT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, Y as VM_PUSH_ARGS_OP, Z as VM_PUSH_EMPTY_ARGS_OP, _ as VM_CAPTURE_ARGS_OP, $ as VM_PREPARE_ARGS_OP, a0 as VM_CREATE_COMPONENT_OP, a1 as VM_REGISTER_COMPONENT_DESTRUCTOR_OP, a2 as VM_BEGIN_COMPONENT_TRANSACTION_OP, a3 as VM_PUT_COMPONENT_OPERATIONS_OP, a4 as VM_COMPONENT_ATTR_OP, a5 as VM_STATIC_COMPONENT_ATTR_OP, a6 as VM_DID_CREATE_ELEMENT_OP, a7 as VM_GET_COMPONENT_SELF_OP, a8 as VM_GET_COMPONENT_TAG_NAME_OP, a9 as VM_GET_COMPONENT_LAYOUT_OP, V as VM_MAIN_OP, aa as VM_POPULATE_LAYOUT_OP, ab as VM_VIRTUAL_ROOT_SCOPE_OP, ac as VM_SET_NAMED_VARIABLES_OP, ad as VM_SET_BLOCKS_OP, ae as VM_INVOKE_COMPONENT_LAYOUT_OP, af as VM_DID_RENDER_LAYOUT_OP, ag as VM_COMMIT_COMPONENT_TRANSACTION_OP } from './syscall-ops-CkPT1Kfx.js';\nimport { a as assert } from './assert-Zqc4wiAV.js';\nimport { u as unwrapTemplate } from './template-BRrQR6KS.js';\nimport { registerDestructor, destroy, associateDestroyableChild } from '../@glimmer/destroyable/index.js';\nimport { m as managerHasCapability } from './capabilities-BuVYh-vx.js';\nimport { a as assign } from './object-utils-AijlD-JH.js';\nimport { I as InternalComponentCapabilities } from './flags-BZxHQ0yn.js';\nimport { n as normalizeStringValue, C as ConcreteBounds } from './normalize-C_IStty9.js';\nimport { b as getInternalModifierManager } from './api-DJnXAjon.js';\nimport { toBool } from '../@glimmer/global-context/index.js';\n\nfunction CheckInstanceof(Class) {\n}\nconst CheckRegister = new class {\n  validate(value) {\n    switch (value) {\n      case $s0:\n      case $s1:\n      case $sp:\n      case $fp:\n      case $ra:\n      case $pc:\n      case $t0:\n      case $t1:\n      case $v0:\n        return true;\n      default:\n        return false;\n    }\n  }\n  expected() {\n    return `Register`;\n  }\n}();\n\n/*@__NO_SIDE_EFFECTS__*/\n\nfunction check(value, checker, message) {\n  {\n    return value;\n  }\n}\n\n/** @internal */\nfunction hasCustomDebugRenderTreeLifecycle(manager) {\n  return 'getDebugCustomRenderTree' in manager;\n}\n\nfunction resolveComponent(resolver, constants, name, owner) {\n  let definition = resolver?.lookupComponent?.(name, expect(owner)) ?? null;\n\n  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n  return constants.resolvedComponent(definition, name);\n}\n\nconst TYPE = Symbol('TYPE');\nconst INNER = Symbol('INNER');\nconst OWNER = Symbol('OWNER');\nconst ARGS = Symbol('ARGS');\nconst RESOLVED = Symbol('RESOLVED');\nconst CURRIED_VALUES = new WeakSet();\nfunction isCurriedValue(value) {\n  return CURRIED_VALUES.has(value);\n}\nfunction isCurriedType(value, type) {\n  return isCurriedValue(value) && value[TYPE] === type;\n}\nclass CurriedValue {\n  [TYPE];\n  [INNER];\n  [OWNER];\n  [ARGS];\n  [RESOLVED];\n\n  /** @internal */\n  constructor(type, inner, owner, args, resolved = false) {\n    CURRIED_VALUES.add(this);\n    this[TYPE] = type;\n    this[INNER] = inner;\n    this[OWNER] = owner;\n    this[ARGS] = args;\n    this[RESOLVED] = resolved;\n  }\n}\nfunction resolveCurriedValue(curriedValue) {\n  let currentWrapper = curriedValue;\n  let positional;\n  let named;\n  let definition, owner, resolved;\n  while (true) {\n    let {\n      [ARGS]: curriedArgs,\n      [INNER]: inner\n    } = currentWrapper;\n    if (curriedArgs !== null) {\n      let {\n        named: curriedNamed,\n        positional: curriedPositional\n      } = curriedArgs;\n      if (curriedPositional.length > 0) {\n        positional = positional === undefined ? curriedPositional : curriedPositional.concat(positional);\n      }\n      if (named === undefined) {\n        named = [];\n      }\n      named.unshift(curriedNamed);\n    }\n    if (!isCurriedValue(inner)) {\n      // Save off the owner that this helper was curried with. Later on,\n      // we'll fetch the value of this register and set it as the owner on the\n      // new root scope.\n      definition = inner;\n      owner = currentWrapper[OWNER];\n      resolved = currentWrapper[RESOLVED];\n      break;\n    }\n    currentWrapper = inner;\n  }\n  return {\n    definition,\n    owner,\n    resolved,\n    positional,\n    named\n  };\n}\nfunction curry(type, spec, owner, args, resolved = false) {\n  return new CurriedValue(type, spec, owner, args, resolved);\n}\n\nlet GUID = 0;\nclass Ref {\n  id = GUID++;\n  value;\n  constructor(value) {\n    this.value = value;\n  }\n  get() {\n    return this.value;\n  }\n  release() {\n    this.value = null;\n  }\n  toString() {\n    let label = `Ref ${this.id}`;\n    if (this.value === null) {\n      return `${label} (released)`;\n    } else {\n      try {\n        // eslint-disable-next-line @typescript-eslint/no-base-to-string\n        return `${label}: ${this.value}`;\n      } catch {\n        return label;\n      }\n    }\n  }\n}\nclass DebugRenderTreeImpl {\n  stack = new StackImpl();\n  refs = new WeakMap();\n  roots = new Set();\n  nodes = new WeakMap();\n  begin() {\n    this.reset();\n  }\n  create(state, node) {\n    let internalNode = assign({}, node, {\n      bounds: null,\n      refs: new Set()\n    });\n    this.nodes.set(state, internalNode);\n    this.appendChild(internalNode, state);\n    this.enter(state);\n  }\n  update(state) {\n    this.enter(state);\n  }\n  didRender(state, bounds) {\n    this.nodeFor(state).bounds = bounds;\n    this.exit();\n  }\n  willDestroy(state) {\n    expect(this.refs.get(state)).release();\n  }\n  commit() {\n    this.reset();\n  }\n  capture() {\n    return this.captureRefs(this.roots);\n  }\n  reset() {\n    if (this.stack.size !== 0) {\n      // We probably encountered an error during the rendering loop. This will\n      // likely trigger undefined behavior and memory leaks as the error left\n      // things in an inconsistent state. It is recommended that the user\n      // refresh the page.\n\n      // TODO: We could warn here? But this happens all the time in our tests?\n\n      // Clean up the root reference to prevent errors from happening if we\n      // attempt to capture the render tree (Ember Inspector may do this)\n      let root = expect(this.stack.toArray()[0]);\n      let ref = this.refs.get(root);\n      if (ref !== undefined) {\n        this.roots.delete(ref);\n      }\n      while (!this.stack.isEmpty()) {\n        this.stack.pop();\n      }\n    }\n  }\n  enter(state) {\n    this.stack.push(state);\n  }\n  exit() {\n    this.stack.pop();\n  }\n  nodeFor(state) {\n    return expect(this.nodes.get(state));\n  }\n  appendChild(node, state) {\n    let parent = this.stack.current;\n    let ref = new Ref(state);\n    this.refs.set(state, ref);\n    if (parent) {\n      let parentNode = this.nodeFor(parent);\n      parentNode.refs.add(ref);\n      node.parent = parentNode;\n    } else {\n      this.roots.add(ref);\n    }\n  }\n  captureRefs(refs) {\n    let captured = [];\n    refs.forEach(ref => {\n      let state = ref.get();\n      if (state) {\n        captured.push(this.captureNode(`render-node:${ref.id}`, state));\n      } else {\n        refs.delete(ref);\n      }\n    });\n    return captured;\n  }\n  captureNode(id, state) {\n    let node = this.nodeFor(state);\n    let {\n      type,\n      name,\n      args,\n      instance,\n      refs\n    } = node;\n    let bounds = this.captureBounds(node);\n    let children = this.captureRefs(refs);\n    return {\n      id,\n      type,\n      name,\n      args: reifyArgsDebug(args),\n      instance,\n      bounds,\n      children\n    };\n  }\n  captureBounds(node) {\n    let bounds = expect(node.bounds);\n    let parentElement = bounds.parentElement();\n    let firstNode = bounds.firstNode();\n    let lastNode = bounds.lastNode();\n    return {\n      parentElement,\n      firstNode,\n      lastNode\n    };\n  }\n}\nfunction getDebugName(definition, manager = definition.manager) {\n  return definition.resolvedName ?? definition.debugName ?? manager.getDebugName(definition.state);\n}\n\nclass AppendOpcodes {\n  // This code is intentionally putting unsafe `null`s into the array that it\n  // will intentionally overwrite before anyone can see them.\n  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n  evaluateOpcode = new Array(VM_SYSCALL_SIZE).fill(null);\n  constructor() {\n  }\n  add(name, evaluate, kind = 'syscall') {\n    this.evaluateOpcode[name] = {\n      syscall: kind !== 'machine',\n      evaluate\n    };\n  }\n  evaluate(vm, opcode, type) {\n    let operation = unwrap(this.evaluateOpcode[type]);\n    if (operation.syscall) {\n      assert(!opcode.isMachine, `BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`);\n      operation.evaluate(vm, opcode);\n    } else {\n      assert(opcode.isMachine, `BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`);\n      operation.evaluate(vm.lowlevel, opcode);\n    }\n  }\n}\nfunction externs(vm) {\n  return undefined;\n}\nconst APPEND_OPCODES = new AppendOpcodes();\n\nfunction createClassListRef(list) {\n  return createComputeRef(() => {\n    let ret = [];\n    for (const ref of list) {\n      let value = normalizeStringValue(typeof ref === 'string' ? ref : valueForRef(ref));\n      if (value) ret.push(value);\n    }\n    return ret.length === 0 ? null : ret.join(' ');\n  });\n}\n\nAPPEND_OPCODES.add(VM_CHILD_SCOPE_OP, vm => vm.pushChildScope());\nAPPEND_OPCODES.add(VM_POP_SCOPE_OP, vm => vm.popScope());\nAPPEND_OPCODES.add(VM_PUSH_DYNAMIC_SCOPE_OP, vm => vm.pushDynamicScope());\nAPPEND_OPCODES.add(VM_POP_DYNAMIC_SCOPE_OP, vm => vm.popDynamicScope());\nAPPEND_OPCODES.add(VM_CONSTANT_OP, (vm, {\n  op1: other\n}) => {\n  vm.stack.push(vm.constants.getValue(decodeHandle(other)));\n});\nAPPEND_OPCODES.add(VM_CONSTANT_REFERENCE_OP, (vm, {\n  op1: other\n}) => {\n  vm.stack.push(createConstRef(vm.constants.getValue(decodeHandle(other))));\n});\nAPPEND_OPCODES.add(VM_PRIMITIVE_OP, (vm, {\n  op1: primitive\n}) => {\n  let stack = vm.stack;\n  if (isHandle(primitive)) {\n    // it is a handle which does not already exist on the stack\n    let value = vm.constants.getValue(decodeHandle(primitive));\n    stack.push(value);\n  } else {\n    // is already an encoded immediate or primitive handle\n    stack.push(decodeImmediate(primitive));\n  }\n});\nAPPEND_OPCODES.add(VM_PRIMITIVE_REFERENCE_OP, vm => {\n  let stack = vm.stack;\n  let value = check(stack.pop());\n  let ref;\n  if (value === undefined) {\n    ref = UNDEFINED_REFERENCE;\n  } else if (value === null) {\n    ref = NULL_REFERENCE;\n  } else if (value === true) {\n    ref = TRUE_REFERENCE;\n  } else if (value === false) {\n    ref = FALSE_REFERENCE;\n  } else {\n    ref = createPrimitiveRef(value);\n  }\n  stack.push(ref);\n});\nAPPEND_OPCODES.add(VM_DUP_OP, (vm, {\n  op1: register,\n  op2: offset\n}) => {\n  let position = check(vm.fetchValue(check(register, CheckRegister))) - offset;\n  vm.stack.dup(position);\n});\nAPPEND_OPCODES.add(VM_POP_OP, (vm, {\n  op1: count\n}) => {\n  vm.stack.pop(count);\n});\nAPPEND_OPCODES.add(VM_LOAD_OP, (vm, {\n  op1: register\n}) => {\n  vm.load(check(register));\n});\nAPPEND_OPCODES.add(VM_FETCH_OP, (vm, {\n  op1: register\n}) => {\n  vm.fetch(check(register));\n});\nAPPEND_OPCODES.add(VM_BIND_DYNAMIC_SCOPE_OP, (vm, {\n  op1: _names\n}) => {\n  let names = vm.constants.getArray(_names);\n  vm.bindDynamicScope(names);\n});\nAPPEND_OPCODES.add(VM_ENTER_OP, (vm, {\n  op1: args\n}) => {\n  vm.enter(args);\n});\nAPPEND_OPCODES.add(VM_EXIT_OP, vm => {\n  vm.exit();\n});\nAPPEND_OPCODES.add(VM_PUSH_SYMBOL_TABLE_OP, (vm, {\n  op1: _table\n}) => {\n  let stack = vm.stack;\n  stack.push(vm.constants.getValue(_table));\n});\nAPPEND_OPCODES.add(VM_PUSH_BLOCK_SCOPE_OP, vm => {\n  let stack = vm.stack;\n  stack.push(vm.scope());\n});\nAPPEND_OPCODES.add(VM_COMPILE_BLOCK_OP, vm => {\n  let stack = vm.stack;\n  let block = stack.pop();\n  if (block) {\n    stack.push(vm.compile(block));\n  } else {\n    stack.push(null);\n  }\n});\nAPPEND_OPCODES.add(VM_INVOKE_YIELD_OP, vm => {\n  let {\n    stack\n  } = vm;\n  let handle = check(stack.pop());\n  let scope = check(stack.pop());\n  let table = check(stack.pop());\n  let args = check(stack.pop());\n  if (table === null || handle === null) {\n    // To balance the pop{Frame,Scope}\n    vm.lowlevel.pushFrame();\n    vm.pushScope(scope ?? vm.scope());\n    return;\n  }\n  let invokingScope = expect(scope);\n\n  // If necessary, create a child scope\n  {\n    let locals = table.parameters;\n    let localsCount = locals.length;\n    if (localsCount > 0) {\n      invokingScope = invokingScope.child();\n      for (let i = 0; i < localsCount; i++) {\n        invokingScope.bindSymbol(unwrap(locals[i]), args.at(i));\n      }\n    }\n  }\n  vm.lowlevel.pushFrame();\n  vm.pushScope(invokingScope);\n  vm.call(handle);\n});\nAPPEND_OPCODES.add(VM_JUMP_UNLESS_OP, (vm, {\n  op1: target\n}) => {\n  let reference = check(vm.stack.pop());\n  let value = Boolean(valueForRef(reference));\n  if (isConstRef(reference)) {\n    if (!value) {\n      vm.lowlevel.goto(target);\n    }\n  } else {\n    if (!value) {\n      vm.lowlevel.goto(target);\n    }\n    vm.updateWith(new Assert(reference));\n  }\n});\nAPPEND_OPCODES.add(VM_JUMP_EQ_OP, (vm, {\n  op1: target,\n  op2: comparison\n}) => {\n  let other = check(vm.stack.peek());\n  if (other === comparison) {\n    vm.lowlevel.goto(target);\n  }\n});\nAPPEND_OPCODES.add(VM_ASSERT_SAME_OP, vm => {\n  let reference = check(vm.stack.peek());\n  if (!isConstRef(reference)) {\n    vm.updateWith(new Assert(reference));\n  }\n});\nAPPEND_OPCODES.add(VM_TO_BOOLEAN_OP, vm => {\n  let {\n    stack\n  } = vm;\n  let valueRef = check(stack.pop());\n  stack.push(createComputeRef(() => toBool(valueForRef(valueRef))));\n});\nclass Assert {\n  last;\n  constructor(ref) {\n    this.ref = ref;\n    this.last = valueForRef(ref);\n  }\n  evaluate(vm) {\n    let {\n      last,\n      ref\n    } = this;\n    let current = valueForRef(ref);\n    if (last !== current) {\n      vm.throw();\n    }\n  }\n}\nclass AssertFilter {\n  last;\n  constructor(ref, filter) {\n    this.ref = ref;\n    this.filter = filter;\n    this.last = filter(valueForRef(ref));\n  }\n  evaluate(vm) {\n    let {\n      last,\n      ref,\n      filter\n    } = this;\n    let current = filter(valueForRef(ref));\n    if (last !== current) {\n      vm.throw();\n    }\n  }\n}\nclass JumpIfNotModifiedOpcode {\n  tag = CONSTANT_TAG;\n  lastRevision = INITIAL;\n  target;\n  finalize(tag, target) {\n    this.target = target;\n    this.didModify(tag);\n  }\n  evaluate(vm) {\n    let {\n      tag,\n      target,\n      lastRevision\n    } = this;\n    if (!vm.alwaysRevalidate && validateTag(tag, lastRevision)) {\n      consumeTag(tag);\n      vm.goto(expect(target));\n    }\n  }\n  didModify(tag) {\n    this.tag = tag;\n    this.lastRevision = valueForTag(this.tag);\n    consumeTag(tag);\n  }\n}\nclass BeginTrackFrameOpcode {\n  constructor(debugLabel) {\n    this.debugLabel = debugLabel;\n  }\n  evaluate() {\n    beginTrackFrame(this.debugLabel);\n  }\n}\nclass EndTrackFrameOpcode {\n  constructor(target) {\n    this.target = target;\n  }\n  evaluate() {\n    let tag = endTrackFrame();\n    this.target.didModify(tag);\n  }\n}\n\nAPPEND_OPCODES.add(VM_TEXT_OP, (vm, {\n  op1: text\n}) => {\n  vm.tree().appendText(vm.constants.getValue(text));\n});\nAPPEND_OPCODES.add(VM_COMMENT_OP, (vm, {\n  op1: text\n}) => {\n  vm.tree().appendComment(vm.constants.getValue(text));\n});\nAPPEND_OPCODES.add(VM_OPEN_ELEMENT_OP, (vm, {\n  op1: tag\n}) => {\n  vm.tree().openElement(vm.constants.getValue(tag));\n});\nAPPEND_OPCODES.add(VM_OPEN_DYNAMIC_ELEMENT_OP, vm => {\n  let tagName = check(valueForRef(check(vm.stack.pop(), CheckReference)));\n  vm.tree().openElement(tagName);\n});\nAPPEND_OPCODES.add(VM_PUSH_REMOTE_ELEMENT_OP, vm => {\n  let elementRef = check(vm.stack.pop());\n  let insertBeforeRef = check(vm.stack.pop());\n  let guidRef = check(vm.stack.pop());\n  let element = check(valueForRef(elementRef));\n  let insertBefore = check(valueForRef(insertBeforeRef));\n  let guid = valueForRef(guidRef);\n  if (!isConstRef(elementRef)) {\n    vm.updateWith(new Assert(elementRef));\n  }\n  if (insertBefore !== undefined && !isConstRef(insertBeforeRef)) {\n    vm.updateWith(new Assert(insertBeforeRef));\n  }\n  let block = vm.tree().pushRemoteElement(element, guid, insertBefore);\n  vm.associateDestroyable(block);\n  if (vm.env.debugRenderTree !== undefined) {\n    // 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)\n    let args = createCapturedArgs(insertBefore === undefined ? {} : {\n      insertBefore: insertBeforeRef\n    }, [elementRef]);\n    vm.env.debugRenderTree.create(block, {\n      type: 'keyword',\n      name: 'in-element',\n      args,\n      instance: null\n    });\n    registerDestructor(block, () => {\n      vm.env.debugRenderTree?.willDestroy(block);\n    });\n  }\n});\nAPPEND_OPCODES.add(VM_POP_REMOTE_ELEMENT_OP, vm => {\n  let bounds = vm.tree().popRemoteElement();\n  if (vm.env.debugRenderTree !== undefined) {\n    // The RemoteBlock is also its bounds\n    vm.env.debugRenderTree.didRender(bounds, bounds);\n  }\n});\nAPPEND_OPCODES.add(VM_FLUSH_ELEMENT_OP, vm => {\n  let operations = check(vm.fetchValue($t0));\n  let modifiers = null;\n  if (operations) {\n    modifiers = operations.flush(vm);\n    vm.loadValue($t0, null);\n  }\n  vm.tree().flushElement(modifiers);\n});\nAPPEND_OPCODES.add(VM_CLOSE_ELEMENT_OP, vm => {\n  let modifiers = vm.tree().closeElement();\n  if (modifiers !== null) {\n    modifiers.forEach(modifier => {\n      vm.env.scheduleInstallModifier(modifier);\n      const d = modifier.manager.getDestroyable(modifier.state);\n      if (d !== null) {\n        vm.associateDestroyable(d);\n      }\n    });\n  }\n});\nAPPEND_OPCODES.add(VM_MODIFIER_OP, (vm, {\n  op1: handle\n}) => {\n  let args = check(vm.stack.pop());\n  if (!vm.env.isInteractive) {\n    return;\n  }\n  let owner = vm.getOwner();\n  let definition = vm.constants.getValue(handle);\n  let {\n    manager\n  } = definition;\n  let {\n    constructing\n  } = vm.tree();\n  let capturedArgs = args.capture();\n  let state = manager.create(owner, expect(constructing), definition.state, capturedArgs);\n  let instance = {\n    manager,\n    state,\n    definition\n  };\n  let operations = expect(check(vm.fetchValue($t0)));\n  operations.addModifier(vm, instance, capturedArgs);\n  let tag = manager.getTag(state);\n  if (tag !== null) {\n    consumeTag(tag);\n    return vm.updateWith(new UpdateModifierOpcode(tag, instance));\n  }\n});\nAPPEND_OPCODES.add(VM_DYNAMIC_MODIFIER_OP, vm => {\n  let {\n    stack\n  } = vm;\n  let ref = check(stack.pop());\n  let args = check(stack.pop());\n  if (!vm.env.isInteractive) {\n    return;\n  }\n  let capturedArgs = args.capture();\n  let {\n    positional: outerPositional,\n    named: outerNamed\n  } = capturedArgs;\n  let {\n    constructing\n  } = vm.tree();\n  let initialOwner = vm.getOwner();\n  let instanceRef = createComputeRef(() => {\n    let value = valueForRef(ref);\n    let owner;\n    if (!isIndexable(value)) {\n      return;\n    }\n    let hostDefinition;\n    if (isCurriedType(value, CURRIED_MODIFIER)) {\n      let {\n        definition: resolvedDefinition,\n        owner: curriedOwner,\n        positional,\n        named\n      } = resolveCurriedValue(value);\n      hostDefinition = resolvedDefinition;\n      owner = curriedOwner;\n      if (positional !== undefined) {\n        capturedArgs.positional = positional.concat(outerPositional);\n      }\n      if (named !== undefined) {\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n        capturedArgs.named = Object.assign({}, ...named, outerNamed);\n      }\n    } else {\n      hostDefinition = value;\n      owner = initialOwner;\n    }\n    let manager = getInternalModifierManager(hostDefinition);\n    if (manager === null) {\n      {\n        throw new Error('BUG: modifier manager expected');\n      }\n    }\n    let definition = {\n      resolvedName: null,\n      manager,\n      state: hostDefinition\n    };\n    let state = manager.create(owner, expect(constructing), definition.state, capturedArgs);\n    return {\n      manager,\n      state,\n      definition\n    };\n  });\n  let instance = valueForRef(instanceRef);\n  let tag = null;\n  if (instance !== undefined) {\n    let operations = expect(check(vm.fetchValue($t0)));\n    operations.addModifier(vm, instance, capturedArgs);\n    tag = instance.manager.getTag(instance.state);\n    if (tag !== null) {\n      consumeTag(tag);\n    }\n  }\n  if (!isConstRef(ref) || tag) {\n    let updateOpcode = new UpdateDynamicModifierOpcode(tag, instance, instanceRef);\n\n    // The block must own this opcode, or instances created on update are never destroyed.\n    vm.associateDestroyable(updateOpcode);\n    return vm.updateWith(updateOpcode);\n  }\n});\nclass UpdateModifierOpcode {\n  lastUpdated;\n  constructor(tag, modifier) {\n    this.tag = tag;\n    this.modifier = modifier;\n    this.lastUpdated = valueForTag(tag);\n  }\n  evaluate(vm) {\n    let {\n      modifier,\n      tag,\n      lastUpdated\n    } = this;\n    consumeTag(tag);\n    if (!validateTag(tag, lastUpdated)) {\n      vm.env.scheduleUpdateModifier(modifier);\n      this.lastUpdated = valueForTag(tag);\n    }\n  }\n}\nclass UpdateDynamicModifierOpcode {\n  lastUpdated;\n  constructor(tag, instance, instanceRef) {\n    this.tag = tag;\n    this.instance = instance;\n    this.instanceRef = instanceRef;\n    this.lastUpdated = valueForTag(tag ?? CURRENT_TAG);\n  }\n  evaluate(vm) {\n    let {\n      tag,\n      lastUpdated,\n      instance,\n      instanceRef\n    } = this;\n    let newInstance = valueForRef(instanceRef);\n    if (newInstance !== instance) {\n      if (instance !== undefined) {\n        let destroyable = instance.manager.getDestroyable(instance.state);\n        if (destroyable !== null) {\n          destroy(destroyable);\n        }\n      }\n      if (newInstance !== undefined) {\n        let {\n          manager,\n          state\n        } = newInstance;\n        let destroyable = manager.getDestroyable(state);\n        if (destroyable !== null) {\n          associateDestroyableChild(this, destroyable);\n        }\n        tag = manager.getTag(state);\n        if (tag !== null) {\n          this.lastUpdated = valueForTag(tag);\n        }\n        this.tag = tag;\n        vm.env.scheduleInstallModifier(newInstance);\n      }\n      this.instance = newInstance;\n    } else if (tag !== null && !validateTag(tag, lastUpdated)) {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      vm.env.scheduleUpdateModifier(instance);\n      this.lastUpdated = valueForTag(tag);\n    }\n    if (tag !== null) {\n      consumeTag(tag);\n    }\n  }\n}\nAPPEND_OPCODES.add(VM_STATIC_ATTR_OP, (vm, {\n  op1: _name,\n  op2: _value,\n  op3: _namespace\n}) => {\n  let name = vm.constants.getValue(_name);\n  let value = vm.constants.getValue(_value);\n  let namespace = _namespace ? vm.constants.getValue(_namespace) : null;\n  vm.tree().setStaticAttribute(name, value, namespace);\n});\nAPPEND_OPCODES.add(VM_DYNAMIC_ATTR_OP, (vm, {\n  op1: _name,\n  op2: _trusting,\n  op3: _namespace\n}) => {\n  let name = vm.constants.getValue(_name);\n  let trusting = vm.constants.getValue(_trusting);\n  let reference = check(vm.stack.pop());\n  let value = valueForRef(reference);\n  let namespace = _namespace ? vm.constants.getValue(_namespace) : null;\n  let attribute = vm.tree().setDynamicAttribute(name, value, trusting, namespace);\n  if (!isConstRef(reference)) {\n    vm.updateWith(new UpdateDynamicAttributeOpcode(reference, attribute, vm.env));\n  }\n});\nclass UpdateDynamicAttributeOpcode {\n  updateRef;\n  constructor(reference, attribute, env) {\n    let initialized = false;\n    this.updateRef = createComputeRef(() => {\n      let value = valueForRef(reference);\n      if (initialized) {\n        attribute.update(value, env);\n      } else {\n        initialized = true;\n      }\n    });\n    valueForRef(this.updateRef);\n  }\n  evaluate() {\n    valueForRef(this.updateRef);\n  }\n}\n\n/**\n * The VM creates a new ComponentInstance data structure for every component\n * invocation it encounters.\n *\n * Similar to how a ComponentDefinition contains state about all components of a\n * particular type, a ComponentInstance contains state specific to a particular\n * instance of a component type. It also contains a pointer back to its\n * component type's ComponentDefinition.\n */\n\nAPPEND_OPCODES.add(VM_PUSH_COMPONENT_DEFINITION_OP, (vm, {\n  op1: handle\n}) => {\n  let definition = vm.constants.getValue(handle);\n  let {\n    manager,\n    capabilities\n  } = definition;\n  let instance = {\n    definition,\n    manager,\n    capabilities,\n    state: null,\n    handle: null,\n    table: null,\n    lookup: null\n  };\n  vm.stack.push(instance);\n});\nAPPEND_OPCODES.add(VM_RESOLVE_DYNAMIC_COMPONENT_OP, (vm, {\n  op1: _isStrict\n}) => {\n  let stack = vm.stack;\n  let ref = check(stack.pop());\n  let component = check(valueForRef(ref));\n  let constants = vm.constants;\n  let owner = vm.getOwner();\n  constants.getValue(_isStrict);\n  vm.loadValue($t1, null); // Clear the temp register\n  let definition;\n  if (typeof component === 'string') {\n    let resolvedDefinition = resolveComponent(vm.context.resolver, constants, component, owner);\n    definition = expect(resolvedDefinition);\n  } else if (isCurriedValue(component)) {\n    definition = component;\n  } else {\n    definition = constants.component(component, owner);\n  }\n  stack.push(definition);\n});\nAPPEND_OPCODES.add(VM_RESOLVE_CURRIED_COMPONENT_OP, vm => {\n  let stack = vm.stack;\n  let ref = check(stack.pop());\n  let value = valueForRef(ref);\n  let constants = vm.constants;\n  let definition;\n  if (isCurriedValue(value)) {\n    definition = value;\n  } else {\n    definition = constants.component(value, vm.getOwner(), true);\n  }\n  stack.push(definition);\n});\nAPPEND_OPCODES.add(VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, vm => {\n  let {\n    stack\n  } = vm;\n  let definition = stack.pop();\n  let capabilities, manager;\n  if (isCurriedValue(definition)) {\n    manager = capabilities = null;\n  } else {\n    manager = definition.manager;\n    capabilities = definition.capabilities;\n  }\n  stack.push({\n    definition,\n    capabilities,\n    manager,\n    state: null,\n    handle: null,\n    table: null\n  });\n});\nAPPEND_OPCODES.add(VM_PUSH_ARGS_OP, (vm, {\n  op1: _names,\n  op2: _blockNames,\n  op3: flags\n}) => {\n  let stack = vm.stack;\n  let names = vm.constants.getArray(_names);\n  let positionalCount = flags >> 4;\n  let atNames = flags & 0b1000;\n  let blockNames = flags & 0b0111 ? vm.constants.getArray(_blockNames) : EMPTY_STRING_ARRAY;\n  vm.args.setup(stack, names, blockNames, positionalCount, !!atNames);\n  stack.push(vm.args);\n});\nAPPEND_OPCODES.add(VM_PUSH_EMPTY_ARGS_OP, vm => {\n  let {\n    stack\n  } = vm;\n  stack.push(vm.args.empty(stack));\n});\nAPPEND_OPCODES.add(VM_CAPTURE_ARGS_OP, vm => {\n  let stack = vm.stack;\n  let args = check(stack.pop());\n  let capturedArgs = args.capture();\n  stack.push(capturedArgs);\n});\nAPPEND_OPCODES.add(VM_PREPARE_ARGS_OP, (vm, {\n  op1: register\n}) => {\n  let stack = vm.stack;\n  let instance = vm.fetchValue(check(register));\n  let args = check(stack.pop());\n  let {\n    definition\n  } = instance;\n  if (isCurriedType(definition, CURRIED_COMPONENT)) {\n    assert(!definition.manager);\n    let constants = vm.constants;\n    let {\n      definition: resolvedDefinition,\n      owner,\n      resolved,\n      positional,\n      named\n    } = resolveCurriedValue(definition);\n    if (resolved) {\n      definition = resolvedDefinition;\n    } else if (typeof resolvedDefinition === 'string') {\n      let resolvedValue = vm.context.resolver?.lookupComponent?.(resolvedDefinition, owner) ?? null;\n      definition = constants.resolvedComponent(expect(resolvedValue), resolvedDefinition);\n    } else {\n      definition = constants.component(resolvedDefinition, owner);\n    }\n    if (named !== undefined) {\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n      args.named.merge(assign({}, ...named));\n    }\n    if (positional !== undefined) {\n      args.realloc(positional.length);\n      args.positional.prepend(positional);\n    }\n    let {\n      manager\n    } = definition;\n    instance.definition = definition;\n    instance.manager = manager;\n    instance.capabilities = definition.capabilities;\n\n    // Save off the owner that this component was curried with. Later on,\n    // we'll fetch the value of this register and set it as the owner on the\n    // new root scope.\n    vm.loadValue($t1, owner);\n  }\n  let {\n    manager,\n    state\n  } = definition;\n  let capabilities = instance.capabilities;\n  if (!managerHasCapability(manager, capabilities, InternalComponentCapabilities.prepareArgs)) {\n    stack.push(args);\n    return;\n  }\n  let blocks = args.blocks.values;\n  let blockNames = args.blocks.names;\n  let preparedArgs = manager.prepareArgs(state, args);\n  if (preparedArgs) {\n    args.clear();\n    for (let i = 0; i < blocks.length; i++) {\n      stack.push(blocks[i]);\n    }\n    let {\n      positional,\n      named\n    } = preparedArgs;\n    let positionalCount = positional.length;\n    for (let i = 0; i < positionalCount; i++) {\n      stack.push(positional[i]);\n    }\n    let names = Object.keys(named);\n    for (let i = 0; i < names.length; i++) {\n      stack.push(named[unwrap(names[i])]);\n    }\n    args.setup(stack, names, blockNames, positionalCount, false);\n  }\n  stack.push(args);\n});\nAPPEND_OPCODES.add(VM_CREATE_COMPONENT_OP, (vm, {\n  op1: flags\n}) => {\n  let instance = check(vm.fetchValue($s0));\n  let {\n    definition,\n    manager,\n    capabilities\n  } = instance;\n  if (!managerHasCapability(manager, capabilities, InternalComponentCapabilities.createInstance)) {\n    // TODO: Closure and Main components are always invoked dynamically, so this\n    // opcode may run even if this capability is not enabled. In the future we\n    // should handle this in a better way.\n    return;\n  }\n  let dynamicScope = null;\n  if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.dynamicScope)) {\n    dynamicScope = vm.dynamicScope();\n  }\n  let hasDefaultBlock = flags & 1;\n  let args = null;\n  if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.createArgs)) {\n    args = check(vm.stack.peek());\n  }\n  let self = null;\n  if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.createCaller)) {\n    self = vm.getSelf();\n  }\n  let state = manager.create(vm.getOwner(), definition.state, args, vm.env, dynamicScope, self, !!hasDefaultBlock);\n\n  // We want to reuse the `state` POJO here, because we know that the opcodes\n  // only transition at exactly one place.\n  instance.state = state;\n  if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.updateHook)) {\n    vm.updateWith(new UpdateComponentOpcode(state, manager, dynamicScope));\n  }\n});\nAPPEND_OPCODES.add(VM_REGISTER_COMPONENT_DESTRUCTOR_OP, (vm, {\n  op1: register\n}) => {\n  let {\n    manager,\n    state,\n    capabilities\n  } = check(vm.fetchValue(check(register, CheckRegister)));\n  let d = manager.getDestroyable(state);\n  if (d) vm.associateDestroyable(d);\n});\nAPPEND_OPCODES.add(VM_BEGIN_COMPONENT_TRANSACTION_OP, (vm, {\n  op1: register\n}) => {\n  let name;\n  vm.beginCacheGroup(name);\n  vm.tree().pushAppendingBlock();\n});\nAPPEND_OPCODES.add(VM_PUT_COMPONENT_OPERATIONS_OP, vm => {\n  vm.loadValue($t0, new ComponentElementOperations());\n});\nAPPEND_OPCODES.add(VM_COMPONENT_ATTR_OP, (vm, {\n  op1: _name,\n  op2: _trusting,\n  op3: _namespace\n}) => {\n  let name = vm.constants.getValue(_name);\n  let trusting = vm.constants.getValue(_trusting);\n  let reference = check(vm.stack.pop());\n  let namespace = _namespace ? vm.constants.getValue(_namespace) : null;\n  check(vm.fetchValue($t0), CheckInstanceof(ComponentElementOperations)).setAttribute(name, reference, trusting, namespace);\n});\nAPPEND_OPCODES.add(VM_STATIC_COMPONENT_ATTR_OP, (vm, {\n  op1: _name,\n  op2: _value,\n  op3: _namespace\n}) => {\n  let name = vm.constants.getValue(_name);\n  let value = vm.constants.getValue(_value);\n  let namespace = _namespace ? vm.constants.getValue(_namespace) : null;\n  check(vm.fetchValue($t0), CheckInstanceof(ComponentElementOperations)).setStaticAttribute(name, value, namespace);\n});\nclass ComponentElementOperations {\n  attributes = dict();\n  classes = [];\n  modifiers = [];\n  setAttribute(name, value, trusting, namespace) {\n    let deferred = {\n      value,\n      namespace,\n      trusting\n    };\n    if (name === 'class') {\n      this.classes.push(value);\n    }\n    this.attributes[name] = deferred;\n  }\n  setStaticAttribute(name, value, namespace) {\n    let deferred = {\n      value,\n      namespace\n    };\n    if (name === 'class') {\n      this.classes.push(value);\n    }\n    this.attributes[name] = deferred;\n  }\n  addModifier(vm, modifier, capturedArgs) {\n    this.modifiers.push(modifier);\n    if (vm.env.debugRenderTree !== undefined) {\n      const {\n        manager,\n        definition,\n        state\n      } = modifier;\n\n      // 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\n      if (state === null || typeof state !== 'object' && typeof state !== 'function') {\n        return;\n      }\n      let {\n        element,\n        constructing\n      } = vm.tree();\n      let name = definition.resolvedName ?? manager.getDebugName(definition.state);\n      let instance = manager.getDebugInstance(state);\n      let bounds = new ConcreteBounds(element, constructing, constructing);\n      vm.env.debugRenderTree.create(state, {\n        type: 'modifier',\n        name,\n        args: capturedArgs,\n        instance\n      });\n      vm.env.debugRenderTree.didRender(state, bounds);\n\n      // For tearing down the debugRenderTree\n      vm.associateDestroyable(state);\n      vm.updateWith(new DebugRenderTreeUpdateOpcode(state));\n      vm.updateWith(new DebugRenderTreeDidRenderOpcode(state, bounds));\n      registerDestructor(state, () => {\n        vm.env.debugRenderTree?.willDestroy(state);\n      });\n    }\n  }\n  flush(vm) {\n    let type;\n    let attributes = this.attributes;\n    for (let name in this.attributes) {\n      if (name === 'type') {\n        type = attributes[name];\n        continue;\n      }\n      let attr = unwrap(this.attributes[name]);\n      if (name === 'class') {\n        setDeferredAttr(vm, 'class', mergeClasses(this.classes), attr.namespace, attr.trusting);\n      } else {\n        setDeferredAttr(vm, name, attr.value, attr.namespace, attr.trusting);\n      }\n    }\n    if (type !== undefined) {\n      setDeferredAttr(vm, 'type', type.value, type.namespace, type.trusting);\n    }\n    return this.modifiers;\n  }\n}\nfunction mergeClasses(classes) {\n  if (classes.length === 0) {\n    return '';\n  }\n  if (classes.length === 1) {\n    return unwrap(classes[0]);\n  }\n  if (allStringClasses(classes)) {\n    return classes.join(' ');\n  }\n  return createClassListRef(classes);\n}\nfunction allStringClasses(classes) {\n  return classes.every(c => typeof c === 'string');\n}\nfunction setDeferredAttr(vm, name, value, namespace, trusting = false) {\n  if (typeof value === 'string') {\n    vm.tree().setStaticAttribute(name, value, namespace);\n  } else {\n    let attribute = vm.tree().setDynamicAttribute(name, valueForRef(value), trusting, namespace);\n    if (!isConstRef(value)) {\n      vm.updateWith(new UpdateDynamicAttributeOpcode(value, attribute, vm.env));\n    }\n  }\n}\nAPPEND_OPCODES.add(VM_DID_CREATE_ELEMENT_OP, (vm, {\n  op1: register\n}) => {\n  let {\n    definition,\n    state\n  } = check(vm.fetchValue(check(register, CheckRegister)));\n  let {\n    manager\n  } = definition;\n  let operations = check(vm.fetchValue($t0));\n  manager.didCreateElement(state, expect(vm.tree().constructing), operations);\n});\nAPPEND_OPCODES.add(VM_GET_COMPONENT_SELF_OP, (vm, {\n  op1: register,\n  op2: _names\n}) => {\n  let instance = check(vm.fetchValue(check(register, CheckRegister)));\n  let {\n    definition,\n    state\n  } = instance;\n  let {\n    manager\n  } = definition;\n  let selfRef = manager.getSelf(state);\n  if (vm.env.debugRenderTree !== undefined) {\n    let instance = check(vm.fetchValue(check(register, CheckRegister)));\n    let {\n      definition,\n      manager\n    } = instance;\n    let args;\n    if (vm.stack.peek() === vm.args) {\n      args = vm.args.capture();\n    } else {\n      let names = vm.constants.getArray(_names);\n      vm.args.setup(vm.stack, names, [], 0, true);\n      args = vm.args.capture();\n    }\n    let compilable = definition.compilable;\n    if (compilable === null) {\n      assert(managerHasCapability(manager, instance.capabilities, InternalComponentCapabilities.dynamicLayout));\n      let resolver = vm.context.resolver;\n      compilable = resolver === null ? null : manager.getDynamicLayout(state, resolver);\n    }\n\n    // For tearing down the debugRenderTree\n    vm.associateDestroyable(instance);\n    if (hasCustomDebugRenderTreeLifecycle(manager)) {\n      let nodes = manager.getDebugCustomRenderTree(instance.definition.state, instance.state, args);\n      nodes.forEach(node => {\n        let {\n          bucket\n        } = node;\n        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n        vm.env.debugRenderTree.create(bucket, node);\n        registerDestructor(instance, () => {\n          vm.env.debugRenderTree?.willDestroy(bucket);\n        });\n        vm.updateWith(new DebugRenderTreeUpdateOpcode(bucket));\n      });\n    } else {\n      let name = getDebugName(definition, manager);\n      vm.env.debugRenderTree.create(instance, {\n        type: 'component',\n        name,\n        args,\n        instance: valueForRef(selfRef)\n      });\n      registerDestructor(instance, () => {\n        vm.env.debugRenderTree?.willDestroy(instance);\n      });\n      vm.updateWith(new DebugRenderTreeUpdateOpcode(instance));\n    }\n  }\n  vm.stack.push(selfRef);\n});\nAPPEND_OPCODES.add(VM_GET_COMPONENT_TAG_NAME_OP, (vm, {\n  op1: register\n}) => {\n  let {\n    definition,\n    state\n  } = check(vm.fetchValue(check(register, CheckRegister)));\n  let {\n    manager\n  } = definition;\n  let tagName = manager.getTagName(state);\n\n  // User provided value from JS, so we don't bother to encode\n  vm.stack.push(tagName);\n});\n\n// Dynamic Invocation Only\nAPPEND_OPCODES.add(VM_GET_COMPONENT_LAYOUT_OP, (vm, {\n  op1: register\n}) => {\n  let instance = check(vm.fetchValue(check(register, CheckRegister)));\n  let {\n    manager,\n    definition\n  } = instance;\n  let {\n    stack\n  } = vm;\n  let {\n    compilable\n  } = definition;\n  if (compilable === null) {\n    let {\n      capabilities\n    } = instance;\n    assert(managerHasCapability(manager, capabilities, InternalComponentCapabilities.dynamicLayout));\n    let resolver = vm.context.resolver;\n    compilable = resolver === null ? null : manager.getDynamicLayout(instance.state, resolver);\n    if (compilable === null) {\n      if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.wrapped)) {\n        compilable = unwrapTemplate(vm.constants.defaultTemplate).asWrappedLayout();\n      } else {\n        compilable = unwrapTemplate(vm.constants.defaultTemplate).asLayout();\n      }\n    }\n  }\n  let handle = compilable.compile(vm.context);\n  stack.push(compilable.symbolTable);\n  stack.push(handle);\n});\nAPPEND_OPCODES.add(VM_MAIN_OP, (vm, {\n  op1: register\n}) => {\n  let definition = check(vm.stack.pop());\n  let invocation = check(vm.stack.pop());\n  let {\n    manager,\n    capabilities\n  } = definition;\n  let state = {\n    definition,\n    manager,\n    capabilities,\n    state: null,\n    handle: invocation.handle,\n    table: invocation.symbolTable,\n    lookup: null\n  };\n  vm.loadValue(check(register), state);\n});\nAPPEND_OPCODES.add(VM_POPULATE_LAYOUT_OP, (vm, {\n  op1: register\n}) => {\n  let {\n    stack\n  } = vm;\n\n  // In import.meta.env.DEV handles could be ErrHandle objects\n  let handle = check(stack.pop());\n  let table = check(stack.pop());\n  let state = check(vm.fetchValue(check(register, CheckRegister)));\n  state.handle = handle;\n  state.table = table;\n});\nAPPEND_OPCODES.add(VM_VIRTUAL_ROOT_SCOPE_OP, (vm, {\n  op1: register\n}) => {\n  let {\n    table,\n    manager,\n    capabilities,\n    state\n  } = check(vm.fetchValue(check(register, CheckRegister)));\n  let owner;\n  if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.hasSubOwner)) {\n    owner = manager.getOwner(state);\n    vm.loadValue($t1, null); // Clear the temp register\n  } else {\n    // Check the temp register to see if an owner was resolved from currying\n    owner = vm.fetchValue($t1);\n    if (owner === null) {\n      // If an owner wasn't found, default to using the current owner. This\n      // will happen for normal dynamic component invocation,\n      // e.g. <SomeClassicEmberComponent/>\n      owner = vm.getOwner();\n    } else {\n      // Else the owner was found, so clear the temp register. This will happen\n      // if we are loading a curried component, e.g. <@someCurriedComponent/>\n      vm.loadValue($t1, null);\n    }\n  }\n  vm.pushRootScope(table.symbols.length + 1, owner);\n});\nAPPEND_OPCODES.add(VM_SET_NAMED_VARIABLES_OP, (vm, {\n  op1: register\n}) => {\n  let state = check(vm.fetchValue(check(register, CheckRegister)));\n  let scope = vm.scope();\n  let args = check(vm.stack.peek());\n  let callerNames = args.named.atNames;\n  for (let i = callerNames.length - 1; i >= 0; i--) {\n    let atName = unwrap(callerNames[i]);\n    let symbol = state.table.symbols.indexOf(atName);\n    let value = args.named.get(atName, true);\n    if (symbol !== -1) scope.bindSymbol(symbol + 1, value);\n    if (state.lookup) state.lookup[atName] = value;\n  }\n});\nfunction bindBlock(symbolName, blockName, state, blocks, vm) {\n  let symbol = state.table.symbols.indexOf(symbolName);\n  let block = blocks.get(blockName);\n  if (symbol !== -1) vm.scope().bindBlock(symbol + 1, block);\n  if (state.lookup) state.lookup[symbolName] = block;\n}\nAPPEND_OPCODES.add(VM_SET_BLOCKS_OP, (vm, {\n  op1: register\n}) => {\n  let state = check(vm.fetchValue(check(register, CheckRegister)));\n  let {\n    blocks\n  } = check(vm.stack.peek());\n  for (const [i] of enumerate(blocks.names)) {\n    bindBlock(unwrap(blocks.symbolNames[i]), unwrap(blocks.names[i]), state, blocks, vm);\n  }\n});\n\n// Dynamic Invocation Only\nAPPEND_OPCODES.add(VM_INVOKE_COMPONENT_LAYOUT_OP, (vm, {\n  op1: register\n}) => {\n  let state = check(vm.fetchValue(check(register, CheckRegister)));\n  vm.call(state.handle);\n});\nAPPEND_OPCODES.add(VM_DID_RENDER_LAYOUT_OP, (vm, {\n  op1: register\n}) => {\n  let instance = check(vm.fetchValue(check(register, CheckRegister)));\n  let {\n    manager,\n    state,\n    capabilities\n  } = instance;\n  let bounds = vm.tree().popBlock();\n  if (vm.env.debugRenderTree !== undefined) {\n    if (hasCustomDebugRenderTreeLifecycle(manager)) {\n      let nodes = manager.getDebugCustomRenderTree(instance.definition.state, state, EMPTY_ARGS);\n      nodes.reverse().forEach(node => {\n        let {\n          bucket\n        } = node;\n\n        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n        vm.env.debugRenderTree.didRender(bucket, bounds);\n        vm.updateWith(new DebugRenderTreeDidRenderOpcode(bucket, bounds));\n      });\n    } else {\n      vm.env.debugRenderTree.didRender(instance, bounds);\n      vm.updateWith(new DebugRenderTreeDidRenderOpcode(instance, bounds));\n    }\n  }\n  if (managerHasCapability(manager, capabilities, InternalComponentCapabilities.createInstance)) {\n    let mgr = check(manager);\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-call -- @fixme\n    mgr.didRenderLayout(state, bounds);\n    vm.env.didCreate(instance);\n    vm.updateWith(new DidUpdateLayoutOpcode(instance, bounds));\n  }\n});\nAPPEND_OPCODES.add(VM_COMMIT_COMPONENT_TRANSACTION_OP, vm => {\n  vm.commitCacheGroup();\n});\nclass UpdateComponentOpcode {\n  constructor(component, manager, dynamicScope) {\n    this.component = component;\n    this.manager = manager;\n    this.dynamicScope = dynamicScope;\n  }\n  evaluate(_vm) {\n    let {\n      component,\n      manager,\n      dynamicScope\n    } = this;\n    manager.update(component, dynamicScope);\n  }\n}\nclass DidUpdateLayoutOpcode {\n  constructor(component, bounds) {\n    this.component = component;\n    this.bounds = bounds;\n  }\n  evaluate(vm) {\n    let {\n      component,\n      bounds\n    } = this;\n    let {\n      manager,\n      state\n    } = component;\n    manager.didUpdateLayout(state, bounds);\n    vm.env.didUpdate(component);\n  }\n}\nclass DebugRenderTreeUpdateOpcode {\n  constructor(bucket) {\n    this.bucket = bucket;\n  }\n  evaluate(vm) {\n    vm.env.debugRenderTree?.update(this.bucket);\n  }\n}\nclass DebugRenderTreeDidRenderOpcode {\n  constructor(bucket, bounds) {\n    this.bucket = bucket;\n    this.bounds = bounds;\n  }\n  evaluate(vm) {\n    vm.env.debugRenderTree?.didRender(this.bucket, this.bounds);\n  }\n}\n\nclass ReferenceChecker {\n  validate(value) {\n    return typeof value === 'object' && value !== null && REFERENCE in value;\n  }\n  expected() {\n    return `Reference`;\n  }\n}\nconst CheckReference = new ReferenceChecker();\n\n/*\n  The calling convention is:\n\n  * 0-N block arguments at the bottom\n  * 0-N positional arguments next (left-to-right)\n  * 0-N named arguments next\n*/\n\nclass VMArgumentsImpl {\n  stack = null;\n  positional = new PositionalArgumentsImpl();\n  named = new NamedArgumentsImpl();\n  blocks = new BlockArgumentsImpl();\n  constructor() {\n    setLocalDebugType('args', this);\n  }\n  empty(stack) {\n    let base = stack.registers[$sp] + 1;\n    this.named.empty(stack, base);\n    this.positional.empty(stack, base);\n    this.blocks.empty(stack, base);\n    return this;\n  }\n  setup(stack, names, blockNames, positionalCount, atNames) {\n    this.stack = stack;\n\n    /*\n           | ... | blocks      | positional  | named |\n           | ... | b0    b1    | p0 p1 p2 p3 | n0 n1 |\n     index | ... | 4/5/6 7/8/9 | 10 11 12 13 | 14 15 |\n                   ^             ^             ^  ^\n                 bbase         pbase       nbase  sp\n    */\n\n    let named = this.named;\n    let namedCount = names.length;\n    let namedBase = stack.registers[$sp] - namedCount + 1;\n    named.setup(stack, namedBase, namedCount, names, atNames);\n    let positional = this.positional;\n    let positionalBase = namedBase - positionalCount;\n    positional.setup(stack, positionalBase, positionalCount);\n    let blocks = this.blocks;\n    let blocksCount = blockNames.length;\n    let blocksBase = positionalBase - blocksCount * 3;\n    blocks.setup(stack, blocksBase, blocksCount, blockNames);\n  }\n  get base() {\n    return this.blocks.base;\n  }\n  get length() {\n    return this.positional.length + this.named.length + this.blocks.length * 3;\n  }\n  at(pos) {\n    return this.positional.at(pos);\n  }\n  realloc(offset) {\n    let {\n      stack\n    } = this;\n    if (offset > 0 && stack !== null) {\n      let {\n        positional,\n        named\n      } = this;\n      let newBase = positional.base + offset;\n      let length = positional.length + named.length;\n      for (let i = length - 1; i >= 0; i--) {\n        stack.copy(i + positional.base, i + newBase);\n      }\n      positional.base += offset;\n      named.base += offset;\n      stack.registers[$sp] += offset;\n    }\n  }\n  capture() {\n    let positional = this.positional.length === 0 ? EMPTY_POSITIONAL : this.positional.capture();\n    let named = this.named.length === 0 ? EMPTY_NAMED : this.named.capture();\n    return {\n      named,\n      positional\n    };\n  }\n  clear() {\n    let {\n      stack,\n      length\n    } = this;\n    if (length > 0 && stack !== null) stack.pop(length);\n  }\n}\nconst EMPTY_REFERENCES = emptyArray();\nclass PositionalArgumentsImpl {\n  base = 0;\n  length = 0;\n  stack = null;\n  _references = null;\n  constructor() {\n    setLocalDebugType('args:positional', this);\n  }\n  empty(stack, base) {\n    this.stack = stack;\n    this.base = base;\n    this.length = 0;\n    this._references = EMPTY_REFERENCES;\n  }\n  setup(stack, base, length) {\n    this.stack = stack;\n    this.base = base;\n    this.length = length;\n    if (length === 0) {\n      this._references = EMPTY_REFERENCES;\n    } else {\n      this._references = null;\n    }\n  }\n  at(position) {\n    let {\n      base,\n      length,\n      stack\n    } = this;\n    if (position < 0 || position >= length) {\n      return UNDEFINED_REFERENCE;\n    }\n\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    return check(stack.get(position, base));\n  }\n  capture() {\n    return this.references;\n  }\n  prepend(other) {\n    let additions = other.length;\n    if (additions > 0) {\n      let {\n        base,\n        length,\n        stack\n      } = this;\n      this.base = base = base - additions;\n      this.length = length + additions;\n      for (let i = 0; i < additions; i++) {\n        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n        stack.set(other[i], i, base);\n      }\n      this._references = null;\n    }\n  }\n  get references() {\n    let references = this._references;\n    if (!references) {\n      let {\n        stack,\n        base,\n        length\n      } = this;\n\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      references = this._references = stack.slice(base, base + length);\n    }\n    return references;\n  }\n}\nclass NamedArgumentsImpl {\n  base = 0;\n  length = 0;\n  _references = null;\n  _names = EMPTY_STRING_ARRAY;\n  _atNames = EMPTY_STRING_ARRAY;\n  constructor() {\n    setLocalDebugType('args:named', this);\n  }\n  empty(stack, base) {\n    this.stack = stack;\n    this.base = base;\n    this.length = 0;\n    this._references = EMPTY_REFERENCES;\n    this._names = EMPTY_STRING_ARRAY;\n    this._atNames = EMPTY_STRING_ARRAY;\n  }\n  setup(stack, base, length, names, atNames) {\n    this.stack = stack;\n    this.base = base;\n    this.length = length;\n    if (length === 0) {\n      this._references = EMPTY_REFERENCES;\n      this._names = EMPTY_STRING_ARRAY;\n      this._atNames = EMPTY_STRING_ARRAY;\n    } else {\n      this._references = null;\n      if (atNames) {\n        this._names = null;\n        this._atNames = names;\n      } else {\n        this._names = names;\n        this._atNames = null;\n      }\n    }\n  }\n  get names() {\n    let names = this._names;\n    if (!names) {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      names = this._names = this._atNames.map(this.toSyntheticName);\n    }\n    return names;\n  }\n  get atNames() {\n    let atNames = this._atNames;\n    if (!atNames) {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      atNames = this._atNames = this._names.map(this.toAtName);\n    }\n    return atNames;\n  }\n  has(name) {\n    return this.names.indexOf(name) !== -1;\n  }\n  get(name, atNames = false) {\n    let {\n      base,\n      stack\n    } = this;\n    let names = atNames ? this.atNames : this.names;\n    let idx = names.indexOf(name);\n    if (idx === -1) {\n      return UNDEFINED_REFERENCE;\n    }\n    let ref = stack.get(idx, base);\n    {\n      return ref;\n    }\n  }\n  capture() {\n    let {\n      names,\n      references\n    } = this;\n    let map = dict();\n    for (const [i, name] of enumerate(names)) {\n      {\n        map[name] = unwrap(references[i]);\n      }\n    }\n    return map;\n  }\n  merge(other) {\n    let keys = Object.keys(other);\n    if (keys.length > 0) {\n      let {\n        names,\n        length,\n        stack\n      } = this;\n      let newNames = names.slice();\n      for (const name of keys) {\n        let idx = newNames.indexOf(name);\n        if (idx === -1) {\n          length = newNames.push(name);\n          stack.push(other[name]);\n        }\n      }\n      this.length = length;\n      this._references = null;\n      this._names = newNames;\n      this._atNames = null;\n    }\n  }\n  get references() {\n    let references = this._references;\n    if (!references) {\n      let {\n        base,\n        length,\n        stack\n      } = this;\n      references = this._references = stack.slice(base, base + length);\n    }\n    return references;\n  }\n  toSyntheticName(name) {\n    return name.slice(1);\n  }\n  toAtName(name) {\n    return `@${name}`;\n  }\n}\nfunction toSymbolName(name) {\n  return `&${name}`;\n}\nconst EMPTY_BLOCK_VALUES = emptyArray();\nclass BlockArgumentsImpl {\n  internalValues = null;\n  _symbolNames = null;\n  internalTag = null;\n  names = EMPTY_STRING_ARRAY;\n  length = 0;\n  base = 0;\n  constructor() {\n    setLocalDebugType('args:blocks', this);\n  }\n  empty(stack, base) {\n    this.stack = stack;\n    this.names = EMPTY_STRING_ARRAY;\n    this.base = base;\n    this.length = 0;\n    this._symbolNames = null;\n    this.internalTag = CONSTANT_TAG;\n    this.internalValues = EMPTY_BLOCK_VALUES;\n  }\n  setup(stack, base, length, names) {\n    this.stack = stack;\n    this.names = names;\n    this.base = base;\n    this.length = length;\n    this._symbolNames = null;\n    if (length === 0) {\n      this.internalTag = CONSTANT_TAG;\n      this.internalValues = EMPTY_BLOCK_VALUES;\n    } else {\n      this.internalTag = null;\n      this.internalValues = null;\n    }\n  }\n  get values() {\n    let values = this.internalValues;\n    if (!values) {\n      let {\n        base,\n        length,\n        stack\n      } = this;\n      values = this.internalValues = stack.slice(base, base + length * 3);\n    }\n    return values;\n  }\n  has(name) {\n    return this.names.indexOf(name) !== -1;\n  }\n  get(name) {\n    let idx = this.names.indexOf(name);\n    if (idx === -1) {\n      return null;\n    }\n    let {\n      base,\n      stack\n    } = this;\n    let table = check(stack.get(idx * 3, base));\n    let scope = check(stack.get(idx * 3 + 1, base));\n    let handle = check(stack.get(idx * 3 + 2, base));\n    return handle === null ? null : [handle, scope, table];\n  }\n  capture() {\n    return new CapturedBlockArgumentsImpl(this.names, this.values);\n  }\n  get symbolNames() {\n    let symbolNames = this._symbolNames;\n    if (symbolNames === null) {\n      symbolNames = this._symbolNames = this.names.map(toSymbolName);\n    }\n    return symbolNames;\n  }\n}\nclass CapturedBlockArgumentsImpl {\n  length;\n  constructor(names, values) {\n    this.names = names;\n    this.values = values;\n    this.length = names.length;\n  }\n  has(name) {\n    return this.names.indexOf(name) !== -1;\n  }\n  get(name) {\n    let idx = this.names.indexOf(name);\n    if (idx === -1) return null;\n    return [this.values[idx * 3 + 2], this.values[idx * 3 + 1], this.values[idx * 3]];\n  }\n}\nfunction createCapturedArgs(named, positional) {\n  return {\n    named,\n    positional\n  };\n}\nfunction reifyNamed(named) {\n  let reified = dict();\n  for (const [key, value] of Object.entries(named)) {\n    reified[key] = valueForRef(value);\n  }\n  return reified;\n}\nfunction reifyPositional(positional) {\n  return positional.map(valueForRef);\n}\nfunction reifyArgs(args) {\n  return {\n    named: reifyNamed(args.named),\n    positional: reifyPositional(args.positional)\n  };\n}\nconst ARGUMENT_ERROR = Symbol('ARGUMENT_ERROR');\nfunction isArgumentError(arg) {\n  return arg !== null && typeof arg === 'object' && arg[ARGUMENT_ERROR];\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction ArgumentErrorImpl(error) {\n  return {\n    [ARGUMENT_ERROR]: true,\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n    error\n  };\n}\nfunction reifyNamedDebug(named) {\n  let reified = dict();\n  for (const [key, value] of Object.entries(named)) {\n    try {\n      reified[key] = valueForRef(value);\n    } catch (e) {\n      reified[key] = ArgumentErrorImpl(e);\n    }\n  }\n  return reified;\n}\nfunction reifyPositionalDebug(positional) {\n  return positional.map(p => {\n    try {\n      return valueForRef(p);\n    } catch (e) {\n      return ArgumentErrorImpl(e);\n    }\n  });\n}\nfunction reifyArgsDebug(args) {\n  let named = reifyNamedDebug(args.named);\n  let positional = reifyPositionalDebug(args.positional);\n  return {\n    named,\n    positional\n  };\n}\nconst EMPTY_NAMED = Object.freeze(Object.create(null));\nconst EMPTY_POSITIONAL = EMPTY_REFERENCES;\nconst EMPTY_ARGS = createCapturedArgs(EMPTY_NAMED, EMPTY_POSITIONAL);\n\nexport { APPEND_OPCODES as A, BeginTrackFrameOpcode as B, CurriedValue as C, DebugRenderTreeImpl as D, EMPTY_ARGS as E, JumpIfNotModifiedOpcode as J, VMArgumentsImpl as V, EMPTY_NAMED as a, EMPTY_POSITIONAL as b, createCapturedArgs as c, curry as d, reifyNamed as e, reifyPositional as f, check as g, isCurriedType as h, isArgumentError as i, resolveCurriedValue as j, AssertFilter as k, externs as l, EndTrackFrameOpcode as m, reifyArgs as r };\n","import { peekMeta } from '../@ember/-internals/meta/lib/meta.js';\nimport { s as sendEvent, a as addListener, r as removeListener } from './events-3Q5Qvo6Q.js';\nimport { n as notifyPropertyChange } from './computed-ZvOk7SJQ.js';\n\nfunction arrayContentWillChange(array, startIdx, removeAmt, addAmt) {\n  // if no args are passed assume everything changes\n  if (startIdx === undefined) {\n    startIdx = 0;\n    removeAmt = addAmt = -1;\n  } else {\n    if (removeAmt === undefined) {\n      removeAmt = -1;\n    }\n    if (addAmt === undefined) {\n      addAmt = -1;\n    }\n  }\n  sendEvent(array, '@array:before', [array, startIdx, removeAmt, addAmt]);\n  return array;\n}\nfunction arrayContentDidChange(array, startIdx, removeAmt, addAmt, notify = true) {\n  // if no args are passed assume everything changes\n  if (startIdx === undefined) {\n    startIdx = 0;\n    removeAmt = addAmt = -1;\n  } else {\n    if (removeAmt === undefined) {\n      removeAmt = -1;\n    }\n    if (addAmt === undefined) {\n      addAmt = -1;\n    }\n  }\n  let meta = peekMeta(array);\n  if (notify) {\n    if (addAmt < 0 || removeAmt < 0 || addAmt - removeAmt !== 0) {\n      notifyPropertyChange(array, 'length', meta);\n    }\n    notifyPropertyChange(array, '[]', meta);\n  }\n  sendEvent(array, '@array:change', [array, startIdx, removeAmt, addAmt]);\n  if (meta !== null) {\n    let length = array.length;\n    let addedAmount = addAmt === -1 ? 0 : addAmt;\n    let removedAmount = removeAmt === -1 ? 0 : removeAmt;\n    let delta = addedAmount - removedAmount;\n    let previousLength = length - delta;\n    let normalStartIdx = startIdx < 0 ? previousLength + startIdx : startIdx;\n    if (meta.revisionFor('firstObject') !== undefined && normalStartIdx === 0) {\n      notifyPropertyChange(array, 'firstObject', meta);\n    }\n    if (meta.revisionFor('lastObject') !== undefined) {\n      let previousLastIndex = previousLength - 1;\n      let lastAffectedIndex = normalStartIdx + removedAmount;\n      if (previousLastIndex < lastAffectedIndex) {\n        notifyPropertyChange(array, 'lastObject', meta);\n      }\n    }\n  }\n  return array;\n}\n\nconst EMPTY_ARRAY = Object.freeze([]);\n\n// Ideally, we'd use MutableArray.detect but for unknown reasons this causes\n// the node tests to fail strangely.\nfunction isMutableArray(obj) {\n  return obj != null && typeof obj.replace === 'function';\n}\nfunction replace(array, start, deleteCount, items = EMPTY_ARRAY) {\n  if (isMutableArray(array)) {\n    array.replace(start, deleteCount, items);\n  } else {\n    replaceInNativeArray(array, start, deleteCount, items);\n  }\n}\nconst CHUNK_SIZE = 60000;\n\n// 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) {\n  arrayContentWillChange(array, start, deleteCount, items.length);\n  if (items.length <= CHUNK_SIZE) {\n    array.splice(start, deleteCount, ...items);\n  } else {\n    array.splice(start, deleteCount);\n    for (let i = 0; i < items.length; i += CHUNK_SIZE) {\n      let chunk = items.slice(i, i + CHUNK_SIZE);\n      array.splice(start + i, 0, ...chunk);\n    }\n  }\n  arrayContentDidChange(array, start, deleteCount, items.length);\n}\nfunction arrayObserversHelper(obj, target, opts, operation) {\n  let {\n    willChange,\n    didChange\n  } = opts;\n  operation(obj, '@array:before', target, willChange);\n  operation(obj, '@array:change', target, didChange);\n\n  /*\n   * Array proxies have a `_revalidate` method which must be called to set\n   * up their internal array observation systems.\n   */\n  obj._revalidate?.();\n  return obj;\n}\nfunction addArrayObserver(array, target, opts) {\n  return arrayObserversHelper(array, target, opts, addListener);\n}\nfunction removeArrayObserver(array, target, opts) {\n  return arrayObserversHelper(array, target, opts, removeListener);\n}\n\nexport { arrayContentWillChange as a, arrayContentDidChange as b, addArrayObserver as c, removeArrayObserver as d, replaceInNativeArray as e, replace as r };\n","const EMPTY_ARRAY = Object.freeze([]);\nfunction emptyArray() {\n  return EMPTY_ARRAY;\n}\nconst EMPTY_STRING_ARRAY = emptyArray();\nconst EMPTY_NUMBER_ARRAY = emptyArray();\n\n/**\n * This function returns `true` if the input array is the special empty array sentinel,\n * which is sometimes used for optimizations.\n */\nfunction isEmptyArray(input) {\n  return input === EMPTY_ARRAY;\n}\nfunction* reverse(input) {\n  for (let i = input.length - 1; i >= 0; i--) {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    yield input[i];\n  }\n}\nfunction* enumerate(input) {\n  let i = 0;\n  for (const item of input) {\n    yield [i++, item];\n  }\n}\n/**\n * Zip two tuples with the same type and number of elements.\n */\nfunction* zipTuples(left, right) {\n  for (let i = 0; i < left.length; i++) {\n    yield [i, left[i], right[i]];\n  }\n}\nfunction* zipArrays(left, right) {\n  for (let i = 0; i < left.length; i++) {\n    const perform = i < right.length ? 'retain' : 'pop';\n    yield [perform, i, left[i], right[i]];\n  }\n  for (let i = left.length; i < right.length; i++) {\n    yield ['push', i, undefined, right[i]];\n  }\n}\n\nexport { EMPTY_ARRAY as E, EMPTY_NUMBER_ARRAY as a, EMPTY_STRING_ARRAY as b, emptyArray as c, zipTuples as d, enumerate as e, isEmptyArray as i, reverse as r, zipArrays as z };\n","// import Logger from './logger';\n\nfunction assert(test, msg) {\n}\n\nexport { assert as a };\n","import { scheduleRevalidate } from '../@glimmer/global-context/index.js';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\nfunction unwrap(val) {\n  if (val === null || val === undefined) throw new Error(`Expected value to be present`);\n  return val;\n}\n\n//////////\n\nconst CONSTANT = 0;\nconst INITIAL = 1;\nconst VOLATILE = NaN;\nlet $REVISION = INITIAL;\nfunction bump() {\n  $REVISION++;\n}\n\n//////////\n\nconst DIRYTABLE_TAG_ID = 0;\nconst UPDATABLE_TAG_ID = 1;\nconst COMBINATOR_TAG_ID = 2;\nconst CONSTANT_TAG_ID = 3;\n\n//////////\n\nconst COMPUTE = Symbol('TAG_COMPUTE');\n\n//////////\n\n/**\n * `value` receives a tag and returns an opaque Revision based on that tag. This\n * snapshot can then later be passed to `validate` with the same tag to\n * determine if the tag has changed at all since the time that `value` was\n * called.\n *\n * @param tag\n */\nfunction valueForTag(tag) {\n  return tag[COMPUTE]();\n}\n\n/**\n * `validate` receives a tag and a snapshot from a previous call to `value` with\n * the same tag, and determines if the tag is still valid compared to the\n * snapshot. If the tag's state has changed at all since then, `validate` will\n * return false, otherwise it will return true. This is used to determine if a\n * calculation related to the tags should be rerun.\n *\n * @param tag\n * @param snapshot\n */\nfunction validateTag(tag, snapshot) {\n  return snapshot >= tag[COMPUTE]();\n}\n\n//////////\n\nconst TYPE = Symbol('TAG_TYPE');\n\n// this is basically a const\nlet ALLOW_CYCLES;\nclass MonomorphicTagImpl {\n  static combine(tags) {\n    switch (tags.length) {\n      case 0:\n        return CONSTANT_TAG;\n      case 1:\n        return tags[0];\n      default:\n        {\n          let tag = new MonomorphicTagImpl(COMBINATOR_TAG_ID);\n          tag.subtag = tags;\n          return tag;\n        }\n    }\n  }\n  revision = INITIAL;\n  lastChecked = INITIAL;\n  lastValue = INITIAL;\n  isUpdating = false;\n  subtag = null;\n  subtagBufferCache = null;\n  constructor(type) {\n    this[TYPE] = type;\n  }\n  [COMPUTE]() {\n    let {\n      lastChecked\n    } = this;\n    if (this.isUpdating) {\n      this.lastChecked = ++$REVISION;\n    } else if (lastChecked !== $REVISION) {\n      this.isUpdating = true;\n      this.lastChecked = $REVISION;\n      try {\n        let {\n          subtag,\n          revision\n        } = this;\n        if (subtag !== null) {\n          if (Array.isArray(subtag)) {\n            for (const tag of subtag) {\n              let value = tag[COMPUTE]();\n              revision = Math.max(value, revision);\n            }\n          } else {\n            let subtagValue = subtag[COMPUTE]();\n            if (subtagValue === this.subtagBufferCache) {\n              revision = Math.max(revision, this.lastValue);\n            } else {\n              // Clear the temporary buffer cache\n              this.subtagBufferCache = null;\n              revision = Math.max(revision, subtagValue);\n            }\n          }\n        }\n        this.lastValue = revision;\n      } finally {\n        this.isUpdating = false;\n      }\n    }\n    return this.lastValue;\n  }\n  static updateTag(_tag, _subtag) {\n\n    // TODO: TS 3.7 should allow us to do this via assertion\n    let tag = _tag;\n    let subtag = _subtag;\n    if (subtag === CONSTANT_TAG) {\n      tag.subtag = null;\n    } else {\n      // There are two different possibilities when updating a subtag:\n      //\n      // 1. subtag[COMPUTE]() <= tag[COMPUTE]();\n      // 2. subtag[COMPUTE]() > tag[COMPUTE]();\n      //\n      // The first possibility is completely fine within our caching model, but\n      // the second possibility presents a problem. If the parent tag has\n      // already been read, then it's value is cached and will not update to\n      // reflect the subtag's greater value. Next time the cache is busted, the\n      // subtag's value _will_ be read, and it's value will be _greater_ than\n      // the saved snapshot of the parent, causing the resulting calculation to\n      // be rerun erroneously.\n      //\n      // In order to prevent this, when we first update to a new subtag we store\n      // its computed value, and then check against that computed value on\n      // subsequent updates. If its value hasn't changed, then we return the\n      // parent's previous value. Once the subtag changes for the first time,\n      // we clear the cache and everything is finally in sync with the parent.\n      tag.subtagBufferCache = subtag[COMPUTE]();\n      tag.subtag = subtag;\n    }\n  }\n  static dirtyTag(tag, disableConsumptionAssertion) {\n    tag.revision = ++$REVISION;\n    scheduleRevalidate();\n  }\n}\nconst DIRTY_TAG = MonomorphicTagImpl.dirtyTag;\nconst UPDATE_TAG = MonomorphicTagImpl.updateTag;\n\n//////////\n\nfunction createTag() {\n  return new MonomorphicTagImpl(DIRYTABLE_TAG_ID);\n}\nfunction createUpdatableTag() {\n  return new MonomorphicTagImpl(UPDATABLE_TAG_ID);\n}\n\n//////////\n\nconst CONSTANT_TAG = new MonomorphicTagImpl(CONSTANT_TAG_ID);\nfunction isConstTag(tag) {\n  return tag === CONSTANT_TAG;\n}\n\n//////////\n\nconst VOLATILE_TAG_ID = 100;\nclass VolatileTag {\n  [TYPE] = VOLATILE_TAG_ID;\n  [COMPUTE]() {\n    return VOLATILE;\n  }\n}\nconst VOLATILE_TAG = new VolatileTag();\n\n//////////\n\nconst CURRENT_TAG_ID = 101;\nclass CurrentTag {\n  [TYPE] = CURRENT_TAG_ID;\n  [COMPUTE]() {\n    return $REVISION;\n  }\n}\nconst CURRENT_TAG = new CurrentTag();\n\n//////////\n\nconst combine = MonomorphicTagImpl.combine;\n\n// Warm\n\nlet tag1 = createUpdatableTag();\nlet tag2 = createUpdatableTag();\nlet tag3 = createUpdatableTag();\nvalueForTag(tag1);\nDIRTY_TAG(tag1);\nvalueForTag(tag1);\nUPDATE_TAG(tag1, combine([tag2, tag3]));\nvalueForTag(tag1);\nDIRTY_TAG(tag2);\nvalueForTag(tag1);\nDIRTY_TAG(tag3);\nvalueForTag(tag1);\nUPDATE_TAG(tag1, tag3);\nvalueForTag(tag1);\nDIRTY_TAG(tag3);\nvalueForTag(tag1);\n\n/**\n * An object that that tracks @tracked properties that were consumed.\n */\nclass Tracker {\n  tags = new Set();\n  last = null;\n  add(tag) {\n    if (tag === CONSTANT_TAG) return;\n    this.tags.add(tag);\n    this.last = tag;\n  }\n  combine() {\n    let {\n      tags\n    } = this;\n    if (tags.size === 0) {\n      return CONSTANT_TAG;\n    } else if (tags.size === 1) {\n      return this.last;\n    } else {\n      return combine(Array.from(this.tags));\n    }\n  }\n}\n\n/**\n * Whenever a tracked computed property is entered, the current tracker is\n * saved off and a new tracker is replaced.\n *\n * Any tracked properties consumed are added to the current tracker.\n *\n * When a tracked computed property is exited, the tracker's tags are\n * combined and added to the parent tracker.\n *\n * The consequence is that each tracked computed property has a tag\n * that corresponds to the tracked properties consumed inside of\n * itself, including child tracked computed properties.\n */\nlet CURRENT_TRACKER = null;\nconst OPEN_TRACK_FRAMES = [];\nfunction beginTrackFrame(debuggingContext) {\n  OPEN_TRACK_FRAMES.push(CURRENT_TRACKER);\n  CURRENT_TRACKER = new Tracker();\n}\nfunction endTrackFrame() {\n  let current = CURRENT_TRACKER;\n  CURRENT_TRACKER = OPEN_TRACK_FRAMES.pop() || null;\n  return unwrap(current).combine();\n}\nfunction beginUntrackFrame() {\n  OPEN_TRACK_FRAMES.push(CURRENT_TRACKER);\n  CURRENT_TRACKER = null;\n}\nfunction endUntrackFrame() {\n  CURRENT_TRACKER = OPEN_TRACK_FRAMES.pop() || null;\n}\n\n// This function is only for handling errors and resetting to a valid state\nfunction resetTracking() {\n  while (OPEN_TRACK_FRAMES.length > 0) {\n    OPEN_TRACK_FRAMES.pop();\n  }\n  CURRENT_TRACKER = null;\n}\nfunction isTracking() {\n  return CURRENT_TRACKER !== null;\n}\nfunction consumeTag(tag) {\n  if (CURRENT_TRACKER !== null) {\n    CURRENT_TRACKER.add(tag);\n  }\n}\n\n// public interface\n\nconst FN = Symbol('FN');\nconst LAST_VALUE = Symbol('LAST_VALUE');\nconst TAG = Symbol('TAG');\nconst SNAPSHOT = Symbol('SNAPSHOT');\nfunction createCache(fn, debuggingLabel) {\n  let cache = {\n    [FN]: fn,\n    [LAST_VALUE]: undefined,\n    [TAG]: undefined,\n    [SNAPSHOT]: -1\n  };\n  return cache;\n}\nfunction getValue(cache) {\n  let fn = cache[FN];\n  let tag = cache[TAG];\n  let snapshot = cache[SNAPSHOT];\n  if (tag === undefined || !validateTag(tag, snapshot)) {\n    beginTrackFrame();\n    try {\n      cache[LAST_VALUE] = fn();\n    } finally {\n      tag = endTrackFrame();\n      cache[TAG] = tag;\n      cache[SNAPSHOT] = valueForTag(tag);\n      consumeTag(tag);\n    }\n  } else {\n    consumeTag(tag);\n  }\n  return cache[LAST_VALUE];\n}\nfunction isConst(cache) {\n  let tag = cache[TAG];\n  return isConstTag(tag);\n}\n\n//////////\n\n// Legacy tracking APIs\n\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.\nfunction track(block, debugLabel) {\n  beginTrackFrame();\n  let tag;\n  try {\n    block();\n  } finally {\n    tag = endTrackFrame();\n  }\n  return tag;\n}\n\n// untrack() is currently mainly used to handle places that were previously not\n// tracked, and that tracking now would cause backtracking rerender assertions.\n// I think once we move everyone forward onto modern APIs, we'll probably be\n// able to remove it, but I'm not sure yet.\nfunction untrack(callback) {\n  beginUntrackFrame();\n  try {\n    return callback();\n  } finally {\n    endUntrackFrame();\n  }\n}\n\nexport { ALLOW_CYCLES as A, CONSTANT_TAG as C, DIRTY_TAG as D, INITIAL as I, UPDATE_TAG as U, VOLATILE as V, valueForTag as a, createUpdatableTag as b, consumeTag as c, combine as d, createCache as e, isTracking as f, getValue as g, COMPUTE as h, isConst as i, CONSTANT as j, CURRENT_TAG as k, CurrentTag as l, VOLATILE_TAG as m, VolatileTag as n, beginTrackFrame as o, beginUntrackFrame as p, bump as q, createTag as r, endTrackFrame as s, track as t, untrack as u, validateTag as v, endUntrackFrame as w, isConstTag as x, resetTracking as y };\n","class Cache {\n  size = 0;\n  misses = 0;\n  hits = 0;\n  constructor(limit, func, store = new Map()) {\n    this.limit = limit;\n    this.func = func;\n    this.store = store;\n  }\n  get(key) {\n    if (this.store.has(key)) {\n      this.hits++;\n      // SAFETY: we know the value is present because `.has(key)` was `true`.\n      return this.store.get(key);\n    } else {\n      this.misses++;\n      return this.set(key, this.func(key));\n    }\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\nexport { Cache as C };\n","import { I as InternalComponentCapabilities } from './flags-BZxHQ0yn.js';\n\nfunction buildCapabilities(capabilities) {\n  return capabilities;\n}\nconst EMPTY = InternalComponentCapabilities.Empty;\n/**\n * Converts a ComponentCapabilities object into a 32-bit integer representation.\n */\nfunction capabilityFlagsFrom(capabilities) {\n  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');\n}\nfunction capability(capabilities, capability) {\n  return capabilities[capability] ? InternalComponentCapabilities[capability] : EMPTY;\n}\nfunction managerHasCapability(_manager, capabilities, capability) {\n  return !!(capabilities & capability);\n}\nfunction hasCapability(capabilities, capability) {\n  return !!(capabilities & capability);\n}\n\nexport { buildCapabilities as b, capabilityFlagsFrom as c, hasCapability as h, managerHasCapability as m };\n","import { peekMeta, meta } from '../@ember/-internals/meta/lib/meta.js';\nimport { i as isObject } from './spec-BXl1reqK.js';\nimport { C as CONSTANT_TAG, d as combine, v as validateTag, b as createUpdatableTag, U as UPDATE_TAG } from './cache-CofLhaS4.js';\nimport { t as tagFor, d as dirtyTagFor, a as tagMetaFor } from './meta-BJtIZDir.js';\nimport { g as getCustomTagFor } from './args-proxy-BHODnDyt.js';\n\nfunction objectAt(array, index) {\n  if (Array.isArray(array)) {\n    return array[index];\n  } else {\n    return array.objectAt(index);\n  }\n}\n\n/////////\n\n// This is exported for `@tracked`, but should otherwise be avoided. Use `tagForObject`.\nconst SELF_TAG = Symbol('SELF_TAG');\nfunction tagForProperty(obj, propertyKey, addMandatorySetter = false, meta) {\n  let customTagFor = getCustomTagFor(obj);\n  if (customTagFor !== undefined) {\n    return customTagFor(obj, propertyKey, addMandatorySetter);\n  }\n  let tag = tagFor(obj, propertyKey, meta);\n  return tag;\n}\nfunction tagForObject(obj) {\n  if (isObject(obj)) {\n    return tagFor(obj, SELF_TAG);\n  }\n  return CONSTANT_TAG;\n}\nfunction markObjectAsDirty(obj, propertyKey) {\n  dirtyTagFor(obj, propertyKey);\n  dirtyTagFor(obj, SELF_TAG);\n}\n\nconst CHAIN_PASS_THROUGH = new WeakSet();\nfunction finishLazyChains(meta, key, value) {\n  let lazyTags = meta.readableLazyChainsFor(key);\n  if (lazyTags === undefined) {\n    return;\n  }\n  if (isObject(value)) {\n    for (let [tag, deps] of lazyTags) {\n      UPDATE_TAG(tag, getChainTagsForKey(value, deps, tagMetaFor(value), peekMeta(value)));\n    }\n  }\n  lazyTags.length = 0;\n}\nfunction getChainTagsForKeys(obj, keys, tagMeta, meta) {\n  let tags = [];\n  for (let key of keys) {\n    getChainTags(tags, obj, key, tagMeta, meta);\n  }\n  return combine(tags);\n}\nfunction getChainTagsForKey(obj, key, tagMeta, meta) {\n  return combine(getChainTags([], obj, key, tagMeta, meta));\n}\nfunction getChainTags(chainTags, obj, path, tagMeta, meta$1) {\n  let current = obj;\n  let currentTagMeta = tagMeta;\n  let currentMeta = meta$1;\n  let pathLength = path.length;\n  let segmentEnd = -1;\n  // prevent closures\n  let segment, descriptor;\n  while (true) {\n    let lastSegmentEnd = segmentEnd + 1;\n    segmentEnd = path.indexOf('.', lastSegmentEnd);\n    if (segmentEnd === -1) {\n      segmentEnd = pathLength;\n    }\n    segment = path.slice(lastSegmentEnd, segmentEnd);\n\n    // If the segment is an @each, we can process it and then break\n    if (segment === '@each' && segmentEnd !== pathLength) {\n      lastSegmentEnd = segmentEnd + 1;\n      segmentEnd = path.indexOf('.', lastSegmentEnd);\n      let arrLength = current.length;\n      if (typeof arrLength !== 'number' ||\n      // TODO: should the second test be `isEmberArray` instead?\n      !(Array.isArray(current) || 'objectAt' in current)) {\n        // If the current object isn't an array, there's nothing else to do,\n        // we don't watch individual properties. Break out of the loop.\n        break;\n      } else if (arrLength === 0) {\n        // Fast path for empty arrays\n        chainTags.push(tagForProperty(current, '[]'));\n        break;\n      }\n      if (segmentEnd === -1) {\n        segment = path.slice(lastSegmentEnd);\n      } else {\n        // Deprecated, remove once we turn the deprecation into an assertion\n        segment = path.slice(lastSegmentEnd, segmentEnd);\n      }\n\n      // Push the tags for each item's property\n      for (let i = 0; i < arrLength; i++) {\n        let item = objectAt(current, i);\n        if (item) {\n          chainTags.push(tagForProperty(item, segment, true));\n          currentMeta = peekMeta(item);\n          descriptor = currentMeta !== null ? currentMeta.peekDescriptors(segment) : undefined;\n\n          // If the key is an alias, we need to bootstrap it\n          if (descriptor !== undefined && typeof descriptor.altKey === 'string') {\n            // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n            item[segment];\n          }\n        }\n      }\n\n      // Push the tag for the array length itself\n      chainTags.push(tagForProperty(current, '[]', true, currentTagMeta));\n      break;\n    }\n    let propertyTag = tagForProperty(current, segment, true, currentTagMeta);\n    descriptor = currentMeta !== null ? currentMeta.peekDescriptors(segment) : undefined;\n    chainTags.push(propertyTag);\n\n    // If we're at the end of the path, processing the last segment, and it's\n    // not an alias, we should _not_ get the last value, since we already have\n    // its tag. There's no reason to access it and do more work.\n    if (segmentEnd === pathLength) {\n      // If the key was an alias, we should always get the next value in order to\n      // bootstrap the alias. This is because aliases, unlike other CPs, should\n      // always be in sync with the aliased value.\n      if (CHAIN_PASS_THROUGH.has(descriptor)) {\n        // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n        current[segment];\n      }\n      break;\n    }\n    if (descriptor === undefined) {\n      // If the descriptor is undefined, then its a normal property, so we should\n      // lookup the value to chain off of like normal.\n\n      if (!(segment in current) && typeof current.unknownProperty === 'function') {\n        current = current.unknownProperty(segment);\n      } else {\n        current = current[segment];\n      }\n    } else if (CHAIN_PASS_THROUGH.has(descriptor)) {\n      current = current[segment];\n    } else {\n      // If the descriptor is defined, then its a normal CP (not an alias, which\n      // would have been handled earlier). We get the last revision to check if\n      // the CP is still valid, and if so we use the cached value. If not, then\n      // we create a lazy chain lookup, and the next time the CP is calculated,\n      // it will update that lazy chain.\n      let instanceMeta = currentMeta.source === current ? currentMeta : meta(current);\n      let lastRevision = instanceMeta.revisionFor(segment);\n      if (lastRevision !== undefined && validateTag(propertyTag, lastRevision)) {\n        current = instanceMeta.valueFor(segment);\n      } else {\n        // use metaFor here to ensure we have the meta for the instance\n        let lazyChains = instanceMeta.writableLazyChainsFor(segment);\n        let rest = path.substring(segmentEnd + 1);\n        let placeholderTag = createUpdatableTag();\n        lazyChains.push([placeholderTag, rest]);\n        chainTags.push(placeholderTag);\n        break;\n      }\n    }\n    if (!isObject(current)) {\n      // we've hit the end of the chain for now, break out\n      break;\n    }\n    currentTagMeta = tagMetaFor(current);\n    currentMeta = peekMeta(current);\n  }\n  return chainTags;\n}\n\nexport { CHAIN_PASS_THROUGH as C, SELF_TAG as S, tagForProperty as a, getChainTagsForKeys as b, finishLazyChains as f, getChainTagsForKey as g, markObjectAsDirty as m, objectAt as o, tagForObject as t };\n","function unwrap(val) {\n  return val;\n}\nfunction expect(val, message) {\n  return val;\n}\nfunction exhausted(value) {\n}\n\nfunction isPresentArray(list) {\n  return list ? list.length > 0 : false;\n}\nfunction asPresentArray(list, message = `unexpected empty list`) {\n  return list;\n}\nfunction getLast(list) {\n  return list.length === 0 ? undefined : list[list.length - 1];\n}\nfunction getFirst(list) {\n  return list.length === 0 ? undefined : list[0];\n}\nfunction mapPresentArray(list, mapper) {\n  if (list === null) {\n    return null;\n  }\n  let out = [];\n  for (let item of list) {\n    out.push(mapper(item));\n  }\n  return out;\n}\n\nfunction dict() {\n  return Object.create(null);\n}\nfunction isDict(u) {\n  return u !== null && u !== undefined;\n}\nfunction isIndexable(u) {\n  return typeof u === 'function' || typeof u === 'object' && u !== null;\n}\nclass StackImpl {\n  stack;\n  current = null;\n  constructor(values = []) {\n    this.stack = values;\n  }\n  get size() {\n    return this.stack.length;\n  }\n  push(item) {\n    this.current = item;\n    this.stack.push(item);\n  }\n  pop() {\n    let item = this.stack.pop();\n    this.current = getLast(this.stack) ?? null;\n    return item === undefined ? null : item;\n  }\n  nth(from) {\n    let len = this.stack.length;\n    return len < from ? null : unwrap(this.stack[len - from]);\n  }\n  isEmpty() {\n    return this.stack.length === 0;\n  }\n  snapshot() {\n    return [...this.stack];\n  }\n  toArray() {\n    return this.stack;\n  }\n}\n\nexport { StackImpl as S, isPresentArray as a, getLast as b, isIndexable as c, dict as d, expect as e, asPresentArray as f, getFirst as g, exhausted as h, isDict as i, mapPresentArray as m, unwrap as u };\n","import { meta, peekMeta } from '../@ember/-internals/meta/lib/meta.js';\nimport { d as descriptorForProperty, c as isClassicDecorator, b as ComputedDescriptor, i as isElementDescriptor, m as makeComputedDecorator, a as descriptorForDecorator } from './decorator-DcvVDSJV.js';\nimport { c as revalidateObservers, d as flushSyncObservers, e as resumeObserverDeactivation, s as suspendedObserverDeactivation, b as addObserver, g as setObserverSuspended } from './observers-B1wiwQeH.js';\nimport inspect from '../@ember/debug/lib/inspect.js';\nimport { v as validateTag, u as untrack, U as UPDATE_TAG, a as valueForTag, c as consumeTag, A as ALLOW_CYCLES, t as track } from './cache-CofLhaS4.js';\nimport { a as tagMetaFor, t as tagFor } from './meta-BJtIZDir.js';\nimport { m as markObjectAsDirty, b as getChainTagsForKeys, f as finishLazyChains } from './chain-tags-BlsXEpE-.js';\n\n/**\n@module @ember/object\n*/\n\nconst END_WITH_EACH_REGEX = /\\.@each$/;\n\n/**\n  Expands `pattern`, invoking `callback` for each expansion.\n\n  The only pattern supported is brace-expansion, anything else will be passed\n  once to `callback` directly.\n\n  Example\n\n  ```js\n  import { expandProperties } from '@ember/object/computed';\n\n  function echo(arg){ console.log(arg); }\n\n  expandProperties('foo.bar', echo);              //=> 'foo.bar'\n  expandProperties('{foo,bar}', echo);            //=> 'foo', 'bar'\n  expandProperties('foo.{bar,baz}', echo);        //=> 'foo.bar', 'foo.baz'\n  expandProperties('{foo,bar}.baz', echo);        //=> 'foo.baz', 'bar.baz'\n  expandProperties('foo.{bar,baz}.[]', echo)      //=> 'foo.bar.[]', 'foo.baz.[]'\n  expandProperties('{foo,bar}.{spam,eggs}', echo) //=> 'foo.spam', 'foo.eggs', 'bar.spam', 'bar.eggs'\n  expandProperties('{foo}.bar.{baz}')             //=> 'foo.bar.baz'\n  ```\n\n  @method expandProperties\n  @static\n  @for @ember/object/computed\n  @public\n  @param {String} pattern The property pattern to expand.\n  @param {Function} callback The callback to invoke.  It is invoked once per\n  expansion, and is passed the expansion.\n*/\nfunction expandProperties(pattern, callback) {\n  let start = pattern.indexOf('{');\n  if (start < 0) {\n    callback(pattern.replace(END_WITH_EACH_REGEX, '.[]'));\n  } else {\n    dive('', pattern, start, callback);\n  }\n}\nfunction dive(prefix, pattern, start, callback) {\n  let end = pattern.indexOf('}'),\n    i = 0,\n    newStart,\n    arrayLength;\n  let tempArr = pattern.substring(start + 1, end).split(',');\n  let after = pattern.substring(end + 1);\n  prefix = prefix + pattern.substring(0, start);\n  arrayLength = tempArr.length;\n  while (i < arrayLength) {\n    newStart = after.indexOf('{');\n    if (newStart < 0) {\n      callback((prefix + tempArr[i++] + after).replace(END_WITH_EACH_REGEX, '.[]'));\n    } else {\n      dive(prefix + tempArr[i++], after, newStart, callback);\n    }\n  }\n}\n\n/**\n@module @ember/object\n*/\n\n\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*/\nfunction defineProperty(obj, keyName, desc, data, _meta) {\n  let meta$1 = _meta === undefined ? meta(obj) : _meta;\n  let previousDesc = descriptorForProperty(obj, keyName, meta$1);\n  let wasDescriptor = previousDesc !== undefined;\n  if (wasDescriptor) {\n    previousDesc.teardown(obj, keyName, meta$1);\n  }\n  if (isClassicDecorator(desc)) {\n    defineDecorator(obj, keyName, desc, meta$1);\n  } else if (desc === null || desc === undefined) {\n    defineValue(obj, keyName, data, wasDescriptor, true);\n  } else {\n    // fallback to ES5\n    Object.defineProperty(obj, keyName, desc);\n  }\n\n  // if key is being watched, override chains that\n  // were initialized with the prototype\n  if (!meta$1.isPrototypeMeta(obj)) {\n    revalidateObservers(obj);\n  }\n}\nfunction defineDecorator(obj, keyName, desc, meta) {\n  let propertyDesc = desc(obj, keyName, undefined, meta, true);\n  Object.defineProperty(obj, keyName, propertyDesc);\n  return desc;\n}\nfunction defineValue(obj, keyName, value, wasDescriptor, enumerable = true) {\n  if (wasDescriptor === true || enumerable === false) {\n    Object.defineProperty(obj, keyName, {\n      configurable: true,\n      enumerable,\n      writable: true,\n      value\n    });\n  } else {\n    {\n      obj[keyName] = value;\n    }\n  }\n  return value;\n}\n\n/**\n @module ember\n @private\n */\n\nconst PROPERTY_DID_CHANGE = Symbol('PROPERTY_DID_CHANGE');\nlet deferred = 0;\n\n/**\n  This function is called just after an object property has changed.\n  It will notify any observers and clear caches among other things.\n\n  Normally you will not need to call this method directly but if for some\n  reason you can't directly watch a property you can invoke this method\n  manually.\n\n  @method notifyPropertyChange\n  @for @ember/object\n  @param {Object} obj The object with the property that will change\n  @param {String} keyName The property key (or path) that will change.\n  @param {Meta} [_meta] The objects meta.\n  @param {unknown} [value] The new value to set for the property\n  @return {void}\n  @since 3.1.0\n  @public\n*/\nfunction notifyPropertyChange(obj, keyName, _meta, value) {\n  let meta = _meta === undefined ? peekMeta(obj) : _meta;\n  if (meta !== null && (meta.isInitializing() || meta.isPrototypeMeta(obj))) {\n    return;\n  }\n  markObjectAsDirty(obj, keyName);\n  if (deferred <= 0) {\n    flushSyncObservers();\n  }\n  if (PROPERTY_DID_CHANGE in obj) {\n    // that checks its arguments length, so we have to explicitly not call this with `value`\n    // if it is not passed to `notifyPropertyChange`\n    if (arguments.length === 4) {\n      obj[PROPERTY_DID_CHANGE](keyName, value);\n    } else {\n      obj[PROPERTY_DID_CHANGE](keyName);\n    }\n  }\n}\n\n/**\n  @method beginPropertyChanges\n  @chainable\n  @private\n*/\nfunction beginPropertyChanges() {\n  deferred++;\n  suspendedObserverDeactivation();\n}\n\n/**\n  @method endPropertyChanges\n  @private\n*/\nfunction endPropertyChanges() {\n  deferred--;\n  if (deferred <= 0) {\n    flushSyncObservers();\n    resumeObserverDeactivation();\n  }\n}\n\n/**\n  Make a series of property changes together in an\n  exception-safe way.\n\n  ```javascript\n  Ember.changeProperties(function() {\n    obj1.set('foo', mayBlowUpWhenSet);\n    obj2.set('bar', baz);\n  });\n  ```\n\n  @method changeProperties\n  @param {Function} callback\n  @private\n*/\nfunction changeProperties(callback) {\n  beginPropertyChanges();\n  try {\n    callback();\n  } finally {\n    endPropertyChanges();\n  }\n}\n\nfunction noop() {}\n/**\n  `@computed` is a decorator that turns a JavaScript getter and setter into a\n  computed property, which is a _cached, trackable value_. By default the getter\n  will only be called once and the result will be cached. You can specify\n  various properties that your computed property depends on. This will force the\n  cached result to be cleared if the dependencies are modified, and lazily recomputed the next time something asks for it.\n\n  In the following example we decorate a getter - `fullName` -  by calling\n  `computed` with the property dependencies (`firstName` and `lastName`) as\n  arguments. The `fullName` getter will be called once (regardless of how many\n  times it is accessed) as long as its dependencies do not change. Once\n  `firstName` or `lastName` are updated any future calls to `fullName` will\n  incorporate the new values, and any watchers of the value such as templates\n  will be updated:\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @computed('firstName', 'lastName')\n    get fullName() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n  });\n\n  let tom = new Person('Tom', 'Dale');\n\n  tom.fullName; // 'Tom Dale'\n  ```\n\n  You can also provide a setter, which will be used when updating the computed\n  property. Ember's `set` function must be used to update the property\n  since it will also notify observers of the property:\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @computed('firstName', 'lastName')\n    get fullName() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n\n    set fullName(value) {\n      let [firstName, lastName] = value.split(' ');\n\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n  });\n\n  let person = new Person();\n\n  set(person, 'fullName', 'Peter Wagenet');\n  person.firstName; // 'Peter'\n  person.lastName;  // 'Wagenet'\n  ```\n\n  You can also pass a getter function or object with `get` and `set` functions\n  as the last argument to the computed decorator. This allows you to define\n  computed property _macros_:\n\n  ```js\n  import { computed } from '@ember/object';\n\n  function join(...keys) {\n    return computed(...keys, function() {\n      return keys.map(key => this[key]).join(' ');\n    });\n  }\n\n  class Person {\n    @join('firstName', 'lastName')\n    fullName;\n  }\n  ```\n\n  Note that when defined this way, getters and setters receive the _key_ of the\n  property they are decorating as the first argument. Setters receive the value\n  they are setting to as the second argument instead. Additionally, setters must\n  _return_ the value that should be cached:\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  function fullNameMacro(firstNameKey, lastNameKey) {\n    return computed(firstNameKey, lastNameKey, {\n      get() {\n        return `${this[firstNameKey]} ${this[lastNameKey]}`;\n      }\n\n      set(key, value) {\n        let [firstName, lastName] = value.split(' ');\n\n        set(this, firstNameKey, firstName);\n        set(this, lastNameKey, lastName);\n\n        return value;\n      }\n    });\n  }\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @fullNameMacro('firstName', 'lastName') fullName;\n  });\n\n  let person = new Person();\n\n  set(person, 'fullName', 'Peter Wagenet');\n  person.firstName; // 'Peter'\n  person.lastName;  // 'Wagenet'\n  ```\n\n  Computed properties can also be used in classic classes. To do this, we\n  provide the getter and setter as the last argument like we would for a macro,\n  and we assign it to a property on the class definition. This is an _anonymous_\n  computed macro:\n\n  ```javascript\n  import EmberObject, { computed, set } from '@ember/object';\n\n  let Person = EmberObject.extend({\n    // these will be supplied by `create`\n    firstName: null,\n    lastName: null,\n\n    fullName: computed('firstName', 'lastName', {\n      get() {\n        return `${this.firstName} ${this.lastName}`;\n      }\n\n      set(key, value) {\n        let [firstName, lastName] = value.split(' ');\n\n        set(this, 'firstName', firstName);\n        set(this, 'lastName', lastName);\n\n        return value;\n      }\n    })\n  });\n\n  let tom = Person.create({\n    firstName: 'Tom',\n    lastName: 'Dale'\n  });\n\n  tom.get('fullName') // 'Tom Dale'\n  ```\n\n  You can overwrite computed property without setters with a normal property (no\n  longer computed) that won't change if dependencies change. You can also mark\n  computed property as `.readOnly()` and block all attempts to set it.\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @computed('firstName', 'lastName').readOnly()\n    get fullName() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n  });\n\n  let person = new Person();\n  person.set('fullName', 'Peter Wagenet'); // Uncaught Error: Cannot set read-only property \"fullName\" on object: <(...):emberXXX>\n  ```\n\n  Additional resources:\n  - [Decorators RFC](https://github.com/emberjs/rfcs/blob/master/text/0408-decorators.md)\n  - [New CP syntax RFC](https://github.com/emberjs/rfcs/blob/master/text/0011-improved-cp-syntax.md)\n  - [New computed syntax explained in \"Ember 1.12 released\" ](https://emberjs.com/blog/2015/05/13/ember-1-12-released.html#toc_new-computed-syntax)\n\n  @class ComputedProperty\n  @public\n*/\nclass ComputedProperty extends ComputedDescriptor {\n  _readOnly = false;\n  _hasConfig = false;\n  _getter = undefined;\n  _setter = undefined;\n  constructor(args) {\n    super();\n    let maybeConfig = args[args.length - 1];\n    if (typeof maybeConfig === 'function' || maybeConfig !== null && typeof maybeConfig === 'object') {\n      this._hasConfig = true;\n      let config = args.pop();\n      if (typeof config === 'function') {\n        this._getter = config;\n      } else {\n        const objectConfig = config;\n        this._getter = objectConfig.get || noop;\n        this._setter = objectConfig.set;\n      }\n    }\n    if (args.length > 0) {\n      this._property(...args);\n    }\n  }\n  setup(obj, keyName, propertyDesc, meta) {\n    super.setup(obj, keyName, propertyDesc, meta);\n    if (this._hasConfig === false) {\n      let {\n        get,\n        set\n      } = propertyDesc;\n      if (get !== undefined) {\n        this._getter = get;\n      }\n      if (set !== undefined) {\n        this._setter = function setterWrapper(_key, value) {\n          let ret = set.call(this, value);\n          if (get !== undefined) {\n            return typeof ret === 'undefined' ? get.call(this) : ret;\n          }\n          return ret;\n        };\n      }\n    }\n  }\n  _property(...passedArgs) {\n    let args = [];\n    function addArg(property) {\n      args.push(property);\n    }\n    for (let arg of passedArgs) {\n      expandProperties(arg, addArg);\n    }\n    this._dependentKeys = args;\n  }\n  get(obj, keyName) {\n    let meta$1 = meta(obj);\n    let tagMeta = tagMetaFor(obj);\n    let propertyTag = tagFor(obj, keyName, tagMeta);\n    let ret;\n    let revision = meta$1.revisionFor(keyName);\n    if (revision !== undefined && validateTag(propertyTag, revision)) {\n      ret = meta$1.valueFor(keyName);\n    } else {\n      let {\n        _getter,\n        _dependentKeys\n      } = this;\n\n      // Create a tracker that absorbs any trackable actions inside the CP\n      untrack(() => {\n        ret = _getter.call(obj, keyName);\n      });\n      if (_dependentKeys !== undefined) {\n        UPDATE_TAG(propertyTag, getChainTagsForKeys(obj, _dependentKeys, tagMeta, meta$1));\n      }\n      meta$1.setValueFor(keyName, ret);\n      meta$1.setRevisionFor(keyName, valueForTag(propertyTag));\n      finishLazyChains(meta$1, keyName, ret);\n    }\n    consumeTag(propertyTag);\n\n    // Add the tag of the returned value if it is an array, since arrays\n    // should always cause updates if they are consumed and then changed\n    if (Array.isArray(ret)) {\n      consumeTag(tagFor(ret, '[]'));\n    }\n    return ret;\n  }\n  set(obj, keyName, value) {\n    if (this._readOnly) {\n      this._throwReadOnlyError(obj, keyName);\n    }\n    let meta$1 = meta(obj);\n\n    // ensure two way binding works when the component has defined a computed\n    // property with both a setter and dependent keys, in that scenario without\n    // the sync observer added below the caller's value will never be updated\n    //\n    // See GH#18147 / GH#19028 for details.\n    if (\n    // ensure that we only run this once, while the component is being instantiated\n    meta$1.isInitializing() && this._dependentKeys !== undefined && this._dependentKeys.length > 0 && typeof obj[PROPERTY_DID_CHANGE] === 'function' && obj.isComponent) {\n      addObserver(obj, keyName, () => {\n        obj[PROPERTY_DID_CHANGE](keyName);\n      }, undefined, true);\n    }\n    let ret;\n    try {\n      beginPropertyChanges();\n      ret = this._set(obj, keyName, value, meta$1);\n      finishLazyChains(meta$1, keyName, ret);\n      let tagMeta = tagMetaFor(obj);\n      let propertyTag = tagFor(obj, keyName, tagMeta);\n      let {\n        _dependentKeys\n      } = this;\n      if (_dependentKeys !== undefined) {\n        UPDATE_TAG(propertyTag, getChainTagsForKeys(obj, _dependentKeys, tagMeta, meta$1));\n        if (false /* DEBUG */) ;\n      }\n      meta$1.setRevisionFor(keyName, valueForTag(propertyTag));\n    } finally {\n      endPropertyChanges();\n    }\n    return ret;\n  }\n  _throwReadOnlyError(obj, keyName) {\n    throw new Error(`Cannot set read-only property \"${keyName}\" on object: ${inspect(obj)}`);\n  }\n  _set(obj, keyName, value, meta) {\n    let hadCachedValue = meta.revisionFor(keyName) !== undefined;\n    let cachedValue = meta.valueFor(keyName);\n    let ret;\n    let {\n      _setter\n    } = this;\n    setObserverSuspended(obj, keyName, true);\n    try {\n      ret = _setter.call(obj, keyName, value, cachedValue);\n    } finally {\n      setObserverSuspended(obj, keyName, false);\n    }\n\n    // allows setter to return the same value that is cached already\n    if (hadCachedValue && cachedValue === ret) {\n      return ret;\n    }\n    meta.setValueFor(keyName, ret);\n    notifyPropertyChange(obj, keyName, meta, value);\n    return ret;\n  }\n\n  /* called before property is overridden */\n  teardown(obj, keyName, meta) {\n    if (meta.revisionFor(keyName) !== undefined) {\n      meta.setRevisionFor(keyName, undefined);\n      meta.setValueFor(keyName, undefined);\n    }\n    super.teardown(obj, keyName, meta);\n  }\n}\nclass AutoComputedProperty extends ComputedProperty {\n  get(obj, keyName) {\n    let meta$1 = meta(obj);\n    let tagMeta = tagMetaFor(obj);\n    let propertyTag = tagFor(obj, keyName, tagMeta);\n    let ret;\n    let revision = meta$1.revisionFor(keyName);\n    if (revision !== undefined && validateTag(propertyTag, revision)) {\n      ret = meta$1.valueFor(keyName);\n    } else {\n      let {\n        _getter\n      } = this;\n\n      // Create a tracker that absorbs any trackable actions inside the CP\n      let tag = track(() => {\n        ret = _getter.call(obj, keyName);\n      });\n      UPDATE_TAG(propertyTag, tag);\n      meta$1.setValueFor(keyName, ret);\n      meta$1.setRevisionFor(keyName, valueForTag(propertyTag));\n      finishLazyChains(meta$1, keyName, ret);\n    }\n    consumeTag(propertyTag);\n\n    // Add the tag of the returned value if it is an array, since arrays\n    // should always cause updates if they are consumed and then changed\n    if (Array.isArray(ret)) {\n      consumeTag(tagFor(ret, '[]', tagMeta));\n    }\n    return ret;\n  }\n}\n// TODO: This class can be svelted once `meta` has been deprecated\nclass ComputedDecoratorImpl extends Function {\n  /**\n    Call on a computed property to set it into read-only mode. When in this\n    mode the computed property will throw an error when set.\n     Example:\n     ```javascript\n    import { computed, set } from '@ember/object';\n     class Person {\n      @computed().readOnly()\n      get guid() {\n        return 'guid-guid-guid';\n      }\n    }\n     let person = new Person();\n    set(person, 'guid', 'new-guid'); // will throw an exception\n    ```\n     Classic Class Example:\n     ```javascript\n    import EmberObject, { computed } from '@ember/object';\n     let Person = EmberObject.extend({\n      guid: computed(function() {\n        return 'guid-guid-guid';\n      }).readOnly()\n    });\n     let person = Person.create();\n    person.set('guid', 'new-guid'); // will throw an exception\n    ```\n     @method readOnly\n    @return {ComputedProperty} this\n    @chainable\n    @public\n  */\n  readOnly() {\n    let desc = descriptorForDecorator(this);\n    desc._readOnly = true;\n    return this;\n  }\n\n  /**\n    In some cases, you may want to annotate computed properties with additional\n    metadata about how they function or what values they operate on. For example,\n    computed property functions may close over variables that are then no longer\n    available for introspection. You can pass a hash of these values to a\n    computed property.\n     Example:\n     ```javascript\n    import { computed } from '@ember/object';\n    import Person from 'my-app/utils/person';\n     class Store {\n      @computed().meta({ type: Person })\n      get person() {\n        let personId = this.personId;\n        return Person.create({ id: personId });\n      }\n    }\n    ```\n     Classic Class Example:\n     ```javascript\n    import { computed } from '@ember/object';\n    import Person from 'my-app/utils/person';\n     const Store = EmberObject.extend({\n      person: computed(function() {\n        let personId = this.get('personId');\n        return Person.create({ id: personId });\n      }).meta({ type: Person })\n    });\n    ```\n     The hash that you pass to the `meta()` function will be saved on the\n    computed property descriptor under the `_meta` key. Ember runtime\n    exposes a public API for retrieving these values from classes,\n    via the `metaForProperty()` function.\n     @method meta\n    @param {Object} meta\n    @chainable\n    @public\n  */\n\n  meta(meta) {\n    let prop = descriptorForDecorator(this);\n    if (arguments.length === 0) {\n      return prop._meta || {};\n    } else {\n      prop._meta = meta;\n      return this;\n    }\n  }\n\n  // TODO: Remove this when we can provide alternatives in the ecosystem to\n  // addons such as ember-macro-helpers that use it.\n  /** @internal */\n  get _getter() {\n    return descriptorForDecorator(this)._getter;\n  }\n\n  // TODO: Refactor this, this is an internal API only\n  /** @internal */\n  set enumerable(value) {\n    descriptorForDecorator(this).enumerable = value;\n  }\n}\n\n/**\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*/\n// @computed without parens or computed with descriptor args\n\n// @computed with keys only\n\n// @computed with keys and config\n\n// @computed with config only\n\nfunction computed(...args) {\n  if (isElementDescriptor(args)) {\n    // SAFETY: We passed in the impl for this class\n    let decorator = makeComputedDecorator(new ComputedProperty([]), ComputedDecoratorImpl);\n    return decorator(args[0], args[1], args[2]);\n  }\n\n  // SAFETY: We passed in the impl for this class\n  return makeComputedDecorator(new ComputedProperty(args), ComputedDecoratorImpl);\n}\nfunction autoComputed(...config) {\n  // SAFETY: We passed in the impl for this class\n  return makeComputedDecorator(new AutoComputedProperty(config), ComputedDecoratorImpl);\n}\n\n/**\n  Allows checking if a given property on an object is a computed property. For the most part,\n  this doesn't matter (you would normally just access the property directly and use its value),\n  but for some tooling specific scenarios (e.g. the ember-inspector) it is important to\n  differentiate if a property is a computed property or a \"normal\" property.\n\n  This will work on either a class's prototype or an instance itself.\n\n  @static\n  @method isComputed\n  @for @ember/debug\n  @private\n */\nfunction isComputed(obj, key) {\n  return Boolean(descriptorForProperty(obj, key));\n}\n\nexport { ComputedProperty as C, PROPERTY_DID_CHANGE as P, endPropertyChanges as a, beginPropertyChanges as b, computed as c, defineProperty as d, expandProperties as e, changeProperties as f, autoComputed as g, defineDecorator as h, defineValue as i, isComputed as j, notifyPropertyChange as n };\n","import { peekMeta } from '../@ember/-internals/meta/lib/meta.js';\n\nfunction getCachedValueFor(obj, key) {\n  let meta = peekMeta(obj);\n  if (meta) {\n    return meta.valueFor(key);\n  } else {\n    return undefined;\n  }\n}\n\nexport { getCachedValueFor as g };\n","import { setOwner } from '../@ember/-internals/owner/index.js';\nimport { m as makeDictionary } from './dictionary-gc5gpyOG.js';\n\n/**\n A container used to instantiate and cache objects.\n\n Every `Container` must be associated with a `Registry`, which is referenced\n to determine the factory and options that should be used to instantiate\n objects.\n\n The public API for `Container` is still in flux and should not be considered\n stable.\n\n @private\n @class Container\n */\nclass Container {\n  static _leakTracking;\n  owner;\n  registry;\n  cache;\n  factoryManagerCache;\n  validationCache;\n  isDestroyed;\n  isDestroying;\n  constructor(registry, options = {}) {\n    this.registry = registry;\n    this.owner = options.owner || null;\n    this.cache = makeDictionary(options.cache || null);\n    this.factoryManagerCache = makeDictionary(options.factoryManagerCache || null);\n    this.isDestroyed = false;\n    this.isDestroying = false;\n  }\n\n  /**\n   @private\n   @property registry\n   @type Registry\n   @since 1.11.0\n   */\n\n  /**\n   @private\n   @property cache\n   @type InheritingDict\n   */\n\n  /**\n   @private\n   @property validationCache\n   @type InheritingDict\n   */\n\n  /**\n   Given a fullName return a corresponding instance.\n    The default behavior is for lookup to return a singleton instance.\n   The singleton is scoped to the container, allowing multiple containers\n   to all have their own locally scoped singletons.\n    ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n    registry.register('api:twitter', Twitter);\n    let twitter = container.lookup('api:twitter');\n    twitter instanceof Twitter; // => true\n    // by default the container will return singletons\n   let twitter2 = container.lookup('api:twitter');\n   twitter2 instanceof Twitter; // => true\n    twitter === twitter2; //=> true\n   ```\n    If singletons are not wanted, an optional flag can be provided at lookup.\n    ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n    registry.register('api:twitter', Twitter);\n    let twitter = container.lookup('api:twitter', { singleton: false });\n   let twitter2 = container.lookup('api:twitter', { singleton: false });\n    twitter === twitter2; //=> false\n   ```\n    @private\n   @method lookup\n   @param {String} fullName\n   @param {RegisterOptions} [options]\n   @return {any}\n   */\n  lookup(fullName, options) {\n    if (this.isDestroyed) {\n      throw new Error(`Cannot call \\`.lookup('${fullName}')\\` after the owner has been destroyed`);\n    }\n    return lookup(this, this.registry.normalize(fullName), options);\n  }\n\n  /**\n   A depth first traversal, destroying the container, its descendant containers and all\n   their managed objects.\n    @private\n   @method destroy\n   */\n  destroy() {\n    this.isDestroying = true;\n    destroyDestroyables(this);\n  }\n  finalizeDestroy() {\n    resetCache(this);\n    this.isDestroyed = true;\n  }\n\n  /**\n   Clear either the entire cache or just the cache for a particular key.\n    @private\n   @method reset\n   @param {String} fullName optional key to reset; if missing, resets everything\n  */\n  reset(fullName) {\n    if (this.isDestroyed) return;\n    if (fullName === undefined) {\n      destroyDestroyables(this);\n      resetCache(this);\n    } else {\n      resetMember(this, this.registry.normalize(fullName));\n    }\n  }\n\n  /**\n   Returns an object that can be used to provide an owner to a\n   manually created instance.\n    @private\n   @method ownerInjection\n   @returns { Object }\n  */\n  ownerInjection() {\n    let injection = {};\n    setOwner(injection, this.owner);\n    return injection;\n  }\n\n  /**\n   Given a fullName, return the corresponding factory. The consumer of the factory\n   is responsible for the destruction of any factory instances, as there is no\n   way for the container to ensure instances are destroyed when it itself is\n   destroyed.\n    @public\n   @method factoryFor\n   @param {String} fullName\n   @return {any}\n   */\n  factoryFor(fullName) {\n    if (this.isDestroyed) {\n      throw new Error(`Cannot call \\`.factoryFor('${fullName}')\\` after the owner has been destroyed`);\n    }\n    let normalizedName = this.registry.normalize(fullName);\n    return factoryFor(this, normalizedName, fullName);\n  }\n}\nfunction isSingleton(container, fullName) {\n  return container.registry.getOption(fullName, 'singleton') !== false;\n}\nfunction isInstantiatable(container, fullName) {\n  return container.registry.getOption(fullName, 'instantiate') !== false;\n}\nfunction lookup(container, fullName, options = {}) {\n  let normalizedName = fullName;\n  if (options.singleton === true || options.singleton === undefined && isSingleton(container, fullName)) {\n    let cached = container.cache[normalizedName];\n    if (cached !== undefined) {\n      return cached;\n    }\n  }\n  return instantiateFactory(container, normalizedName, fullName, options);\n}\nfunction factoryFor(container, normalizedName, fullName) {\n  let cached = container.factoryManagerCache[normalizedName];\n  if (cached !== undefined) {\n    return cached;\n  }\n  let factory = container.registry.resolve(normalizedName);\n  if (factory === undefined) {\n    return;\n  }\n  let manager = new InternalFactoryManager(container, factory, fullName, normalizedName);\n  container.factoryManagerCache[normalizedName] = manager;\n  return manager;\n}\nfunction isSingletonClass(container, fullName, {\n  instantiate,\n  singleton\n}) {\n  return singleton !== false && !instantiate && isSingleton(container, fullName) && !isInstantiatable(container, fullName);\n}\nfunction isSingletonInstance(container, fullName, {\n  instantiate,\n  singleton\n}) {\n  return singleton !== false && instantiate !== false && (singleton === true || isSingleton(container, fullName)) && isInstantiatable(container, fullName);\n}\nfunction isFactoryClass(container, fullname, {\n  instantiate,\n  singleton\n}) {\n  return instantiate === false && (singleton === false || !isSingleton(container, fullname)) && !isInstantiatable(container, fullname);\n}\nfunction isFactoryInstance(container, fullName, {\n  instantiate,\n  singleton\n}) {\n  return instantiate !== false && (singleton === false || !isSingleton(container, fullName)) && isInstantiatable(container, fullName);\n}\nfunction instantiateFactory(container, normalizedName, fullName, options) {\n  let factoryManager = factoryFor(container, normalizedName, fullName);\n  if (factoryManager === undefined) {\n    return;\n  }\n\n  // SomeClass { singleton: true, instantiate: true } | { singleton: true } | { instantiate: true } | {}\n  // By default majority of objects fall into this case\n  if (isSingletonInstance(container, fullName, options)) {\n    let instance = container.cache[normalizedName] = factoryManager.create();\n\n    // if this lookup happened _during_ destruction (emits a deprecation, but\n    // is still possible) ensure that it gets destroyed\n    if (container.isDestroying) {\n      if (typeof instance.destroy === 'function') {\n        instance.destroy();\n      }\n    }\n    return instance;\n  }\n\n  // SomeClass { singleton: false, instantiate: true }\n  if (isFactoryInstance(container, fullName, options)) {\n    return factoryManager.create();\n  }\n\n  // SomeClass { singleton: true, instantiate: false } | { instantiate: false } | { singleton: false, instantiation: false }\n  if (isSingletonClass(container, fullName, options) || isFactoryClass(container, fullName, options)) {\n    return factoryManager.class;\n  }\n  throw new Error('Could not create factory');\n}\nfunction destroyDestroyables(container) {\n  let cache = container.cache;\n  let keys = Object.keys(cache);\n  for (let key of keys) {\n    let value = cache[key];\n    if (value.destroy) {\n      value.destroy();\n    }\n  }\n}\nfunction resetCache(container) {\n  container.cache = makeDictionary(null);\n  container.factoryManagerCache = makeDictionary(null);\n}\nfunction resetMember(container, fullName) {\n  let member = container.cache[fullName];\n  delete container.factoryManagerCache[fullName];\n  if (member) {\n    delete container.cache[fullName];\n    if (member.destroy) {\n      member.destroy();\n    }\n  }\n}\nconst INIT_FACTORY = Symbol('INIT_FACTORY');\nfunction getFactoryFor(obj) {\n  // SAFETY: since we know `obj` is an `object`, we also know we can safely ask\n  // whether a key is set on it.\n  return obj[INIT_FACTORY];\n}\nfunction setFactoryFor(obj, factory) {\n  // 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`.)\n  obj[INIT_FACTORY] = factory;\n}\nclass InternalFactoryManager {\n  container;\n  owner;\n  class;\n  fullName;\n  normalizedName;\n  madeToString;\n  injections;\n  constructor(container, factory, fullName, normalizedName) {\n    this.container = container;\n    this.owner = container.owner;\n    this.class = factory;\n    this.fullName = fullName;\n    this.normalizedName = normalizedName;\n    this.madeToString = undefined;\n    this.injections = undefined;\n  }\n  toString() {\n    if (this.madeToString === undefined) {\n      this.madeToString = this.container.registry.makeToString(this.class, this.fullName);\n    }\n    return this.madeToString;\n  }\n  create(options) {\n    let {\n      container\n    } = this;\n    if (container.isDestroyed) {\n      throw new Error(`Cannot create new instances after the owner has been destroyed (you attempted to create ${this.fullName})`);\n    }\n    let props = options ? {\n      ...options\n    } : {};\n    setOwner(props, container.owner);\n    setFactoryFor(props, this);\n    return this.class.create(props);\n  }\n}\n\nexport { Container as C, INIT_FACTORY as I, getFactoryFor as g, setFactoryFor as s };\n","import { getOwner, setOwner } from '../@ember/-internals/owner/index.js';\nimport { g as guidFor } from './guid-Cbq2sNV_.js';\nimport { getViewElement, clearElementView, clearViewElement, addChildView, setViewElement, setElementView } from '../@ember/-internals/views/lib/system/utils.js';\nimport { sendCoreViewEvent } from '../@ember/-internals/views/lib/views/core-view-utils.js';\nimport { _instrumentStart } from '../@ember/instrumentation/index.js';\nimport { c as createComputeRef, v as valueForRef, e as createPrimitiveRef, f as childRefFor, g as childRefFromParts, a as createConstRef, b as isUpdatableRef, u as updateRef } from './reference-CccCE8mJ.js';\nimport { f as reifyPositional } from './arguments-xjTAZ6VE.js';\nimport { E as EMPTY_ARRAY } from './array-utils-CZQxrdD3.js';\nimport { a as valueForTag, p as beginUntrackFrame, w as endUntrackFrame, o as beginTrackFrame, s as endTrackFrame, c as consumeTag, v as validateTag } from './cache-CofLhaS4.js';\nimport { g as get } from './property_get-DuDs6rLg.js';\nimport { dasherize } from '../@ember/-internals/string/index.js';\nimport { registerDestructor } from '../@glimmer/destroyable/index.js';\nimport { MUTABLE_CELL } from '../@ember/-internals/views/lib/compat/attrs.js';\nimport { C as CURLY_MANAGER_BRAND } from './curly-brand-B_F79Dep.js';\n\n/**\n * @deprecated\n */\nfunction unwrapTemplate(template) {\n  if (template.result === 'error') {\n    throw new Error(`Compile Error: ${template.problem} @ ${template.span.start}..${template.span.end}`);\n  }\n  return template;\n}\n\nfunction isTemplateFactory(template) {\n  return typeof template === 'function';\n}\n\nfunction referenceForParts(rootRef, parts) {\n  let isAttrs = parts[0] === 'attrs';\n\n  // TODO deprecate this\n  if (isAttrs) {\n    parts.shift();\n    if (parts.length === 1) {\n      return childRefFor(rootRef, parts[0]);\n    }\n  }\n  return childRefFromParts(rootRef, parts);\n}\nfunction parseAttributeBinding(microsyntax) {\n  let colonIndex = microsyntax.indexOf(':');\n  if (colonIndex === -1) {\n    return [microsyntax, microsyntax, true];\n  } else {\n    let prop = microsyntax.substring(0, colonIndex);\n    let attribute = microsyntax.substring(colonIndex + 1);\n    return [prop, attribute, false];\n  }\n}\nfunction installAttributeBinding(component, rootRef, parsed, operations) {\n  let [prop, attribute, isSimple] = parsed;\n  if (attribute === 'id') {\n    // 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.\n    let elementId = get(component, prop);\n    if (elementId === undefined || elementId === null) {\n      elementId = component.elementId;\n    }\n    let elementIdRef = createPrimitiveRef(elementId);\n    operations.setAttribute('id', elementIdRef, true, null);\n    return;\n  }\n  let isPath = prop.indexOf('.') > -1;\n  let reference = isPath ? referenceForParts(rootRef, prop.split('.')) : childRefFor(rootRef, prop);\n  operations.setAttribute(attribute, reference, false, null);\n}\nfunction createClassNameBindingRef(rootRef, microsyntax, operations) {\n  let parts = microsyntax.split(':');\n  let [prop, truthy, falsy] = parts;\n  let isStatic = prop === '';\n  if (isStatic) {\n    operations.setAttribute('class', createPrimitiveRef(truthy), true, null);\n  } else {\n    let isPath = prop.indexOf('.') > -1;\n    let parts = isPath ? prop.split('.') : [];\n    let value = isPath ? referenceForParts(rootRef, parts) : childRefFor(rootRef, prop);\n    let ref;\n    if (truthy === undefined) {\n      ref = createSimpleClassNameBindingRef(value, isPath ? parts[parts.length - 1] : prop);\n    } else {\n      ref = createColonClassNameBindingRef(value, truthy, falsy);\n    }\n    operations.setAttribute('class', ref, false, null);\n  }\n}\nfunction createSimpleClassNameBindingRef(inner, path) {\n  let dasherizedPath;\n  return createComputeRef(() => {\n    let value = valueForRef(inner);\n    if (value === true) {\n      return dasherizedPath || (dasherizedPath = dasherize(path));\n    } else if (value || value === 0) {\n      return String(value);\n    } else {\n      return null;\n    }\n  });\n}\nfunction createColonClassNameBindingRef(inner, truthy, falsy) {\n  return createComputeRef(() => {\n    return valueForRef(inner) ? truthy : falsy;\n  });\n}\n\nfunction NOOP() {}\n\n/**\n  @module ember\n*/\n\n/**\n  Represents the internal state of the component.\n\n  @class ComponentStateBucket\n  @private\n*/\nclass ComponentStateBucket {\n  classRef = null;\n  rootRef;\n  argsRevision;\n  constructor(component, args, argsTag, finalizer, hasWrappedElement, isInteractive) {\n    this.component = component;\n    this.args = args;\n    this.argsTag = argsTag;\n    this.finalizer = finalizer;\n    this.hasWrappedElement = hasWrappedElement;\n    this.isInteractive = isInteractive;\n    this.classRef = null;\n    this.argsRevision = args === null ? 0 : valueForTag(argsTag);\n    this.rootRef = createConstRef(component);\n    registerDestructor(this, () => this.willDestroy(), true);\n    registerDestructor(this, () => this.component.destroy());\n  }\n  willDestroy() {\n    let {\n      component,\n      isInteractive\n    } = this;\n    if (isInteractive) {\n      beginUntrackFrame();\n      sendCoreViewEvent(component, 'willDestroyElement');\n      sendCoreViewEvent(component, 'willClearRender');\n      endUntrackFrame();\n      let element = getViewElement(component);\n      if (element) {\n        clearElementView(element);\n        clearViewElement(component);\n      }\n    }\n    component.renderer.unregister(component);\n  }\n  finalize() {\n    let {\n      finalizer\n    } = this;\n    finalizer();\n    this.finalizer = NOOP;\n  }\n}\n\n// ComponentArgs takes EvaluatedNamedArgs and converts them into the\n// inputs needed by CurlyComponents (attrs and props, with mutable\n// cells, etc).\nfunction processComponentArgs(namedArgs) {\n  let attrs = Object.create(null);\n  let props = Object.create(null);\n  for (let name in namedArgs) {\n    let ref = namedArgs[name];\n    let value = valueForRef(ref);\n    if (isUpdatableRef(ref)) {\n      attrs[name] = new MutableCell(ref, value);\n    } else {\n      attrs[name] = value;\n    }\n    props[name] = value;\n  }\n  props.attrs = attrs;\n  return props;\n}\nconst REF = Symbol('REF');\nclass MutableCell {\n  value;\n  [MUTABLE_CELL];\n  [REF];\n  constructor(ref, value) {\n    this[MUTABLE_CELL] = true;\n    this[REF] = ref;\n    this.value = value;\n  }\n  update(val) {\n    updateRef(this[REF], val);\n  }\n}\n\nconst COMPONENT_ARGS_MAP = new WeakMap();\nfunction getComponentCapturedArgs(component) {\n  return COMPONENT_ARGS_MAP.get(component);\n}\nconst DIRTY_TAG = Symbol('DIRTY_TAG');\nconst IS_DISPATCHING_ATTRS = Symbol('IS_DISPATCHING_ATTRS');\nconst BOUNDS = Symbol('BOUNDS');\nconst EMBER_VIEW_REF = createPrimitiveRef('ember-view');\nfunction aliasIdToElementId(args, props) {\n  if (args.named.has('id')) {\n    props.elementId = props.id;\n  }\n}\n\n// We must traverse the attributeBindings in reverse keeping track of\n// what has already been applied. This is essentially refining the concatenated\n// properties applying right to left.\nfunction applyAttributeBindings(attributeBindings, component, rootRef, operations) {\n  let seen = [];\n  let i = attributeBindings.length - 1;\n  while (i !== -1) {\n    let binding = attributeBindings[i];\n    let parsed = parseAttributeBinding(binding);\n    let attribute = parsed[1];\n    if (seen.indexOf(attribute) === -1) {\n      seen.push(attribute);\n      installAttributeBinding(component, rootRef, parsed, operations);\n    }\n    i--;\n  }\n  if (seen.indexOf('id') === -1) {\n    let id = component.elementId ? component.elementId : guidFor(component);\n    operations.setAttribute('id', createPrimitiveRef(id), false, null);\n  }\n}\nclass CurlyComponentManager {\n  [CURLY_MANAGER_BRAND] = true;\n  templateFor(component) {\n    let {\n      layout,\n      layoutName\n    } = component;\n    let owner = getOwner(component);\n    let factory;\n    if (layout === undefined) {\n      if (layoutName !== undefined) {\n        let _factory = owner.lookup(`template:${layoutName}`);\n        factory = _factory;\n      } else {\n        return null;\n      }\n    } else if (isTemplateFactory(layout)) {\n      factory = layout;\n    } else {\n      // no layout was found, use the default layout\n      return null;\n    }\n    return unwrapTemplate(factory(owner)).asWrappedLayout();\n  }\n  getDynamicLayout(bucket) {\n    return this.templateFor(bucket.component);\n  }\n  getTagName(state) {\n    let {\n      component,\n      hasWrappedElement\n    } = state;\n    if (!hasWrappedElement) {\n      return null;\n    }\n    return component && component.tagName || 'div';\n  }\n  getCapabilities() {\n    return CURLY_CAPABILITIES;\n  }\n  prepareArgs(ComponentClass, args) {\n    if (args.named.has('__ARGS__')) {\n      let {\n        __ARGS__,\n        ...rest\n      } = args.named.capture();\n      let __args__ = valueForRef(__ARGS__);\n      let prepared = {\n        positional: __args__.positional,\n        named: {\n          ...rest,\n          ...__args__.named\n        }\n      };\n      return prepared;\n    }\n    const {\n      positionalParams\n    } = ComponentClass.class ?? ComponentClass;\n\n    // early exits\n    if (positionalParams === undefined || positionalParams === null || args.positional.length === 0) {\n      return null;\n    }\n    let named;\n    if (typeof positionalParams === 'string') {\n      let captured = args.positional.capture();\n      named = {\n        [positionalParams]: createComputeRef(() => reifyPositional(captured))\n      };\n      Object.assign(named, args.named.capture());\n    } else if (Array.isArray(positionalParams) && positionalParams.length > 0) {\n      const count = Math.min(positionalParams.length, args.positional.length);\n      named = {};\n      Object.assign(named, args.named.capture());\n      for (let i = 0; i < count; i++) {\n        let name = positionalParams[i];\n        named[name] = args.positional.at(i);\n      }\n    } else {\n      return null;\n    }\n    return {\n      positional: EMPTY_ARRAY,\n      named\n    };\n  }\n\n  /*\n   * This hook is responsible for actually instantiating the component instance.\n   * It also is where we perform additional bookkeeping to support legacy\n   * features like exposed by view mixins like ChildViewSupport, ActionSupport,\n   * etc.\n   */\n  create(owner, ComponentClass, args, {\n    isInteractive\n  }, dynamicScope, callerSelfRef) {\n    // Get the nearest concrete component instance from the scope. \"Virtual\"\n    // components will be skipped.\n    let parentView = dynamicScope.view;\n\n    // Capture the arguments, which tells Glimmer to give us our own, stable\n    // copy of the Arguments object that is safe to hold on to between renders.\n    let capturedArgs = args.named.capture();\n    beginTrackFrame();\n    let props = processComponentArgs(capturedArgs);\n    let argsTag = endTrackFrame();\n\n    // Alias `id` argument to `elementId` property on the component instance.\n    aliasIdToElementId(args, props);\n\n    // Set component instance's parentView property to point to nearest concrete\n    // component.\n    props.parentView = parentView;\n\n    // Save the current `this` context of the template as the component's\n    // `_target`, so bubbled actions are routed to the right place.\n    props._target = valueForRef(callerSelfRef);\n    setOwner(props, owner);\n\n    // caller:\n    // <FaIcon @name=\"bug\" />\n    //\n    // callee:\n    // <i class=\"fa-{{@name}}\"></i>\n\n    // Now that we've built up all of the properties to set on the component instance,\n    // actually create it.\n    beginUntrackFrame();\n    let component = ComponentClass.create(props);\n\n    // Store capturedArgs in a WeakMap keyed by the component instance so that\n    // PROPERTY_DID_CHANGE can look them up\n    COMPONENT_ARGS_MAP.set(component, capturedArgs);\n    let finalizer = _instrumentStart('render.component', initialRenderInstrumentDetails, component);\n\n    // We become the new parentView for downstream components, so save our\n    // component off on the dynamic scope.\n    dynamicScope.view = component;\n\n    // Unless we're the root component, we need to add ourselves to our parent\n    // component's childViews array.\n    if (parentView !== null && parentView !== undefined) {\n      addChildView(parentView, component);\n    }\n    sendCoreViewEvent(component, 'didReceiveAttrs');\n    let hasWrappedElement = component.tagName !== '';\n\n    // We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\n    if (!hasWrappedElement) {\n      if (isInteractive) {\n        sendCoreViewEvent(component, 'willRender');\n      }\n      component._transitionTo('hasElement');\n      if (isInteractive) {\n        sendCoreViewEvent(component, 'willInsertElement');\n      }\n    }\n\n    // Track additional lifecycle metadata about this component in a state bucket.\n    // Essentially we're saving off all the state we'll need in the future.\n    let bucket = new ComponentStateBucket(component, capturedArgs, argsTag, finalizer, hasWrappedElement, isInteractive);\n    if (args.named.has('class')) {\n      bucket.classRef = args.named.get('class');\n    }\n    if (isInteractive && hasWrappedElement) {\n      sendCoreViewEvent(component, 'willRender');\n    }\n    endUntrackFrame();\n\n    // consume every argument so we always run again\n    consumeTag(bucket.argsTag);\n    consumeTag(component[DIRTY_TAG]);\n    return bucket;\n  }\n  getDebugName(definition) {\n    return definition.fullName || definition.normalizedName || definition.class?.name || definition.name;\n  }\n  getSelf({\n    rootRef\n  }) {\n    return rootRef;\n  }\n  didCreateElement({\n    component,\n    classRef,\n    isInteractive,\n    rootRef\n  }, element, operations) {\n    setViewElement(component, element);\n    setElementView(element, component);\n    let {\n      attributeBindings,\n      classNames,\n      classNameBindings\n    } = component;\n    if (attributeBindings && attributeBindings.length) {\n      applyAttributeBindings(attributeBindings, component, rootRef, operations);\n    } else {\n      let id = component.elementId ? component.elementId : guidFor(component);\n      operations.setAttribute('id', createPrimitiveRef(id), false, null);\n    }\n    if (classRef) {\n      const ref = createSimpleClassNameBindingRef(classRef);\n      operations.setAttribute('class', ref, false, null);\n    }\n    if (classNames && classNames.length) {\n      classNames.forEach(name => {\n        operations.setAttribute('class', createPrimitiveRef(name), false, null);\n      });\n    }\n    if (classNameBindings && classNameBindings.length) {\n      classNameBindings.forEach(binding => {\n        createClassNameBindingRef(rootRef, binding, operations);\n      });\n    }\n    operations.setAttribute('class', EMBER_VIEW_REF, false, null);\n    if ('ariaRole' in component) {\n      operations.setAttribute('role', childRefFor(rootRef, 'ariaRole'), false, null);\n    }\n    component._transitionTo('hasElement');\n    if (isInteractive) {\n      beginUntrackFrame();\n      sendCoreViewEvent(component, 'willInsertElement');\n      endUntrackFrame();\n    }\n  }\n  didRenderLayout(bucket, bounds) {\n    bucket.component[BOUNDS] = bounds;\n    bucket.finalize();\n  }\n  didCreate({\n    component,\n    isInteractive\n  }) {\n    if (isInteractive) {\n      component._transitionTo('inDOM');\n      sendCoreViewEvent(component, 'didInsertElement');\n      sendCoreViewEvent(component, 'didRender');\n    }\n  }\n  update(bucket) {\n    let {\n      component,\n      args,\n      argsTag,\n      argsRevision,\n      isInteractive\n    } = bucket;\n    bucket.finalizer = _instrumentStart('render.component', rerenderInstrumentDetails, component);\n    beginUntrackFrame();\n    if (args !== null && !validateTag(argsTag, argsRevision)) {\n      beginTrackFrame();\n      let props = processComponentArgs(args);\n      argsTag = bucket.argsTag = endTrackFrame();\n      bucket.argsRevision = valueForTag(argsTag);\n      component[IS_DISPATCHING_ATTRS] = true;\n      component.setProperties(props);\n      component[IS_DISPATCHING_ATTRS] = false;\n      sendCoreViewEvent(component, 'didUpdateAttrs');\n      sendCoreViewEvent(component, 'didReceiveAttrs');\n    }\n    if (isInteractive) {\n      sendCoreViewEvent(component, 'willUpdate');\n      sendCoreViewEvent(component, 'willRender');\n    }\n    endUntrackFrame();\n    consumeTag(argsTag);\n    consumeTag(component[DIRTY_TAG]);\n  }\n  didUpdateLayout(bucket) {\n    bucket.finalize();\n  }\n  didUpdate({\n    component,\n    isInteractive\n  }) {\n    if (isInteractive) {\n      sendCoreViewEvent(component, 'didUpdate');\n      sendCoreViewEvent(component, 'didRender');\n    }\n  }\n  getDestroyable(bucket) {\n    return bucket;\n  }\n}\nfunction initialRenderInstrumentDetails(component) {\n  return component.instrumentDetails({\n    initialRender: true\n  });\n}\nfunction rerenderInstrumentDetails(component) {\n  return component.instrumentDetails({\n    initialRender: false\n  });\n}\nconst CURLY_CAPABILITIES = {\n  dynamicLayout: true,\n  dynamicTag: true,\n  prepareArgs: true,\n  createArgs: true,\n  attributeHook: true,\n  elementHook: true,\n  createCaller: true,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: true,\n  willDestroy: true,\n  hasSubOwner: false\n};\nconst CURLY_COMPONENT_MANAGER = /*@__PURE__*/new CurlyComponentManager();\n\nexport { BOUNDS as B, CurlyComponentManager as C, DIRTY_TAG as D, IS_DISPATCHING_ATTRS as I, ComponentStateBucket as a, CURLY_COMPONENT_MANAGER as b, getComponentCapturedArgs as g, initialRenderInstrumentDetails as i, unwrapTemplate as u };\n","/**\n * The brand for the curly component manager lives in its own module so that\n * code which only needs to *detect* the curly manager (e.g. the resolver)\n * does not have to import the manager itself (and with it the classic\n * component machinery).\n */\nconst CURLY_MANAGER_BRAND = Symbol('CURLY_MANAGER_BRAND');\nfunction isCurlyManager(manager) {\n  return manager[CURLY_MANAGER_BRAND] === true;\n}\n\nexport { CURLY_MANAGER_BRAND as C, isCurlyManager as i };\n","/**\n * An object branded with a local debug type has special local trace logging\n * behavior.\n *\n * If `LOCAL_DEBUG` is `false`, this function does nothing (and is removed\n * by the minifier in builder).\n */\n\nfunction setLocalDebugType(type, ...brand) {\n}\n\nexport { setLocalDebugType as s };\n","import { meta, peekMeta } from '../@ember/-internals/meta/lib/meta.js';\n\n// Same as built-in MethodDecorator but with more arguments\n\nfunction 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 || maybeDesc === undefined)\n  );\n}\nfunction nativeDescDecorator(propertyDesc) {\n  let decorator = function () {\n    return propertyDesc;\n  };\n  setClassicDecorator(decorator);\n  return decorator;\n}\n\n/**\n  Objects of this type can implement an interface to respond to requests to\n  get and set. The default implementation handles simple properties.\n\n  @class Descriptor\n  @private\n*/\nclass ComputedDescriptor {\n  enumerable = true;\n  configurable = true;\n  _dependentKeys = undefined;\n  _meta = undefined;\n  setup(_obj, keyName, _propertyDesc, meta) {\n    meta.writeDescriptors(keyName, this);\n  }\n  teardown(_obj, keyName, meta) {\n    meta.removeDescriptors(keyName);\n  }\n}\nfunction DESCRIPTOR_GETTER_FUNCTION(name, descriptor) {\n  function getter() {\n    return descriptor.get(this, name);\n  }\n  return getter;\n}\nfunction DESCRIPTOR_SETTER_FUNCTION(name, descriptor) {\n  let set = function CPSETTER_FUNCTION(value) {\n    return descriptor.set(this, name, value);\n  };\n  COMPUTED_SETTERS.add(set);\n  return set;\n}\nconst COMPUTED_SETTERS = new WeakSet();\nfunction makeComputedDecorator(desc, DecoratorClass) {\n  let decorator = function COMPUTED_DECORATOR(target, key, propertyDesc, maybeMeta, isClassicDecorator) {\n    let meta$1 = arguments.length === 3 ? meta(target) : maybeMeta;\n    desc.setup(target, key, propertyDesc, meta$1);\n    let computedDesc = {\n      enumerable: desc.enumerable,\n      configurable: desc.configurable,\n      get: DESCRIPTOR_GETTER_FUNCTION(key, desc),\n      set: DESCRIPTOR_SETTER_FUNCTION(key, desc)\n    };\n    return computedDesc;\n  };\n  setClassicDecorator(decorator, desc);\n  Object.setPrototypeOf(decorator, DecoratorClass.prototype);\n  return decorator;\n}\n\n/////////////\n\nconst DECORATOR_DESCRIPTOR_MAP = new WeakMap();\n\n/**\n  Returns the CP descriptor associated with `obj` and `keyName`, if any.\n\n  @method descriptorForProperty\n  @param {Object} obj the object to check\n  @param {String} keyName the key to check\n  @return {Descriptor}\n  @private\n*/\nfunction descriptorForProperty(obj, keyName, _meta) {\n  let meta = _meta === undefined ? peekMeta(obj) : _meta;\n  if (meta !== null) {\n    return meta.peekDescriptors(keyName);\n  }\n}\nfunction descriptorForDecorator(dec) {\n  return DECORATOR_DESCRIPTOR_MAP.get(dec);\n}\n\n/**\n  Check whether a value is a decorator\n\n  @method isClassicDecorator\n  @param {any} possibleDesc the value to check\n  @return {boolean}\n  @private\n*/\nfunction isClassicDecorator(dec) {\n  return typeof dec === 'function' && DECORATOR_DESCRIPTOR_MAP.has(dec);\n}\n\n/**\n  Set a value as a decorator\n\n  @method setClassicDecorator\n  @param {function} decorator the value to mark as a decorator\n  @private\n*/\nfunction setClassicDecorator(dec, value = true) {\n  DECORATOR_DESCRIPTOR_MAP.set(dec, value);\n}\n\nexport { COMPUTED_SETTERS as C, descriptorForDecorator as a, ComputedDescriptor as b, isClassicDecorator as c, descriptorForProperty as d, isElementDescriptor as i, makeComputedDecorator as m, nativeDescDecorator as n, setClassicDecorator as s };\n","/**\n * Classes Glimmer constructs itself declare this slot, so that\n * `@glimmer/destroyable` can hold their meta directly rather than in its\n * `WeakMap`. It lives here so packages below `@glimmer/destroyable` can declare\n * the slot without depending on it.\n *\n * Never write this onto an object Glimmer did not construct. Destroyables are\n * public through `@ember/destroyable` and can be any object a user hands in.\n */\nconst DESTROYABLE_META_KEY = Symbol('__destroyable_meta__');\n\nexport { DESTROYABLE_META_KEY as D };\n","// the delete is meant to hint at runtimes that this object should remain in\n// dictionary mode. This is clearly a runtime specific hack, but currently it\n// appears worthwhile in some usecases. Please note, these deletes do increase\n// the cost of creation dramatically over a plain Object.create. And as this\n// only makes sense for long-lived dictionaries that aren't instantiated often.\nfunction makeDictionary(parent) {\n  let dict = Object.create(parent);\n  dict['_dict'] = null;\n  delete dict['_dict'];\n  return dict;\n}\n\nexport { makeDictionary as m };\n","import { c as createComputeRef, v as valueForRef, N as NULL_REFERENCE } from './reference-CccCE8mJ.js';\nimport { s as setInternalComponentManager } from './api-DJnXAjon.js';\nimport { i as internalHelper } from './internal-helper-Becm19An.js';\n\n/**\n  @module @ember/helper\n*/\n\n\n// ============ Element Component (for string tag names) ============\n// Renders content wrapped in the specified HTML element, or just renders\n// content without a wrapper for empty string.\n\nconst ELEMENT_CAPABILITIES = {\n  createInstance: true,\n  wrapped: true\n};\nclass ElementComponentManager {\n  getCapabilities() {\n    return ELEMENT_CAPABILITIES;\n  }\n  getDebugName(state) {\n    return `(element \"${state.tagName}\")`;\n  }\n  getSelf() {\n    return NULL_REFERENCE;\n  }\n  getDestroyable() {\n    return null;\n  }\n  didCreateElement() {}\n  create(_owner, state) {\n    // For empty string, return null so getTagName returns null (no wrapper element)\n    return state.tagName || null;\n  }\n  getTagName(state) {\n    return state;\n  }\n  didRenderLayout() {}\n  didUpdateLayout() {}\n  didCreate() {}\n  didUpdate() {}\n}\nconst ELEMENT_COMPONENT_MANAGER = new ElementComponentManager();\nclass ElementComponentDefinition {\n  constructor(tagName) {\n    this.tagName = tagName;\n  }\n  toString() {\n    return `(element \"${this.tagName}\")`;\n  }\n}\nsetInternalComponentManager(ELEMENT_COMPONENT_MANAGER, ElementComponentDefinition.prototype);\n\n// Cache component definitions per tag name to avoid creating duplicate definitions\nconst ELEMENT_DEFINITIONS = new Map();\nfunction getElementDefinition(tagName) {\n  let definition = ELEMENT_DEFINITIONS.get(tagName);\n  if (definition === undefined) {\n    definition = new ElementComponentDefinition(tagName);\n    ELEMENT_DEFINITIONS.set(tagName, definition);\n  }\n  return definition;\n}\n\n// ============ Element Helper ============\n\nconst element = internalHelper(({\n  positional,\n  named\n}) => {\n  return createComputeRef(() => {\n    let tagName = valueForRef(positional[0]);\n    return getElementDefinition(tagName);\n  }, null, 'element');\n});\n\nexport { element as e };\n","/**\n  The hash of environment variables used to control various configuration\n  settings. To specify your own or override default settings, add the\n  desired properties to a global hash named `EmberENV` (or `ENV` for\n  backwards compatibility with earlier versions of Ember). The `EmberENV`\n  hash must be created before loading Ember.\n\n  @class EmberENV\n  @type Object\n  @public\n*/\nconst ENV = {\n  ENABLE_OPTIONAL_FEATURES: false,\n  /**\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     The behavior from setting this option to `true` was deprecated in Ember 5.10.\n     @property EXTEND_PROTOTYPES\n    @type Boolean\n    @default true\n    @for EmberENV\n    @private\n    @deprecated in v5.10\n  */\n  EXTEND_PROTOTYPES: {\n    Array: false\n  },\n  /**\n    The `LOG_STACKTRACE_ON_DEPRECATION` property, when true, tells Ember to log\n    a full stack trace during deprecation warnings.\n     @property LOG_STACKTRACE_ON_DEPRECATION\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  LOG_STACKTRACE_ON_DEPRECATION: true,\n  /**\n    The `LOG_VERSION` property, when true, tells Ember to log versions of all\n    dependent libraries in use.\n     @property LOG_VERSION\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  LOG_VERSION: true,\n  /**\n    The `LOG_INSPECTOR_HINT` property, when true, tells Ember to log a hint\n    suggesting the Ember Inspector browser extension when it is not detected.\n     @property LOG_INSPECTOR_HINT\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  LOG_INSPECTOR_HINT: true,\n  RAISE_ON_DEPRECATION: false,\n  STRUCTURED_PROFILE: false,\n  /**\n    Whether to perform extra bookkeeping needed to make the `captureRenderTree`\n    API work.\n     This has to be set before the ember JavaScript code is evaluated. This is\n    usually done by setting `window.EmberENV = { _DEBUG_RENDER_TREE: true };`\n    before the \"vendor\" `<script>` tag in `index.html`.\n     Setting the flag after Ember is already loaded will not work correctly. It\n    may appear to work somewhat, but fundamentally broken.\n     This is not intended to be set directly. Ember Inspector will enable the\n    flag on behalf of the user as needed.\n     This flag is always on in development mode.\n     The flag is off by default in production mode, due to the cost associated\n    with the the bookkeeping work.\n     The expected flow is that Ember Inspector will ask the user to refresh the\n    page after enabling the feature. It could also offer a feature where the\n    user add some domains to the \"always on\" list. In either case, Ember\n    Inspector will inject the code on the page to set the flag if needed.\n     @property _DEBUG_RENDER_TREE\n    @for EmberENV\n    @type Boolean\n    @default false\n    @private\n  */\n  _DEBUG_RENDER_TREE: false /* DEBUG */,\n  /**\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   */\n  _ALL_DEPRECATIONS_ENABLED: false,\n  /**\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   */\n  _OVERRIDE_DEPRECATION_VERSION: null,\n  /**\n    Whether the app defaults to using async observers.\n     This is not intended to be set directly, as the implementation may change in\n    the future. Use `@ember/optional-features` instead.\n     @property _DEFAULT_ASYNC_OBSERVERS\n    @for EmberENV\n    @type Boolean\n    @default false\n    @private\n  */\n  _DEFAULT_ASYNC_OBSERVERS: false,\n  /**\n    Controls the maximum number of scheduled rerenders without \"settling\". In general,\n    applications should not need to modify this environment variable, but please\n    open an issue so that we can determine if a better default value is needed.\n     @property _RERENDER_LOOP_LIMIT\n    @for EmberENV\n    @type number\n    @default 1000\n    @private\n   */\n  _RERENDER_LOOP_LIMIT: 1000,\n  FEATURES: {}\n};\nconst EmberENV = globalThis.EmberENV;\nif (typeof EmberENV === 'object' && EmberENV !== null) {\n  for (let flag in EmberENV) {\n    if (!Object.prototype.hasOwnProperty.call(EmberENV, flag) || flag === 'EXTEND_PROTOTYPES' || flag === 'EMBER_LOAD_HOOKS') continue;\n    let defaultValue = ENV[flag];\n    if (defaultValue === true) {\n      ENV[flag] = EmberENV[flag] !== false;\n    } else if (defaultValue === false) {\n      ENV[flag] = EmberENV[flag] === true;\n    } else {\n      ENV[flag] = EmberENV[flag];\n    }\n  }\n  let {\n    FEATURES\n  } = EmberENV;\n  if (typeof FEATURES === 'object' && FEATURES !== null) {\n    for (let feature in FEATURES) {\n      if (!Object.prototype.hasOwnProperty.call(FEATURES, feature)) continue;\n      ENV.FEATURES[feature] = FEATURES[feature] === true;\n    }\n  }\n}\nfunction getENV() {\n  return ENV;\n}\n\nexport { ENV as E, getENV as g };\n","import { h as hasListeners, r as removeListener, s as sendEvent, a as addListener } from './events-3Q5Qvo6Q.js';\nimport { deprecateUntil, DEPRECATIONS } from '../@ember/-internals/deprecations/index.js';\nimport { M as Mixin, I as INTERNAL_MIXIN_CREATE } from './mixin-AGmJaAAY.js';\n\n/*\n  Standalone implementations of the deprecated `Evented` methods. They are\n  shared between the `Evented` mixin and the framework classes (`Component`,\n  `Route`, `EmberRouter`) that historically included it, so that the framework\n  itself no longer applies the deprecated mixin.\n*/\n\nfunction eventedOn(obj, name, target, method) {\n  deprecateUntil('`Evented#on` is deprecated. Use native JavaScript events or a dedicated event library instead.', DEPRECATIONS.DEPRECATE_EVENTED);\n  addListener(obj, name, target, method);\n}\nfunction eventedOne(obj, name, target, method) {\n  deprecateUntil('`Evented#one` is deprecated. Use native JavaScript events or a dedicated event library instead.', DEPRECATIONS.DEPRECATE_EVENTED);\n  addListener(obj, name, target, method, true);\n}\nfunction eventedTrigger(obj, name, args) {\n  deprecateUntil('`Evented#trigger` is deprecated. Use native JavaScript events or a dedicated event library instead.', DEPRECATIONS.DEPRECATE_EVENTED);\n  sendEvent(obj, name, args);\n}\nfunction eventedOff(obj, name, target, method) {\n  deprecateUntil('`Evented#off` is deprecated. Use native JavaScript events or a dedicated event library instead.', DEPRECATIONS.DEPRECATE_EVENTED);\n  removeListener(obj, name, target, method);\n}\nfunction eventedHas(obj, name) {\n  deprecateUntil('`Evented#has` is deprecated. Use native JavaScript events or a dedicated event library instead.', DEPRECATIONS.DEPRECATE_EVENTED);\n  return hasListeners(obj, name);\n}\n\n/**\n@module @ember/object/evented\n*/\n\n/**\n  This mixin allows for Ember objects to subscribe to and emit events.\n\n  ```app/utils/person.js\n  import EmberObject from '@ember/object';\n  import Evented from '@ember/object/evented';\n\n  export default class Person extends 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  @deprecated Use native JavaScript events or a dedicated event library instead.\n */\n\nconst Evented = Mixin[INTERNAL_MIXIN_CREATE]({\n  on(name, target, method) {\n    eventedOn(this, name, target, method);\n    return this;\n  },\n  one(name, target, method) {\n    eventedOne(this, name, target, method);\n    return this;\n  },\n  trigger(name, ...args) {\n    eventedTrigger(this, name, args);\n  },\n  off(name, target, method) {\n    eventedOff(this, name, target, method);\n    return this;\n  },\n  has(name) {\n    return eventedHas(this, name);\n  }\n});\n\nexport { Evented as E, eventedOne as a, eventedTrigger as b, eventedOff as c, eventedHas as d, eventedOn as e };\n","import { meta, peekMeta } from '../@ember/-internals/meta/lib/meta.js';\nimport { a as setListeners } from './super-BBBjgF69.js';\nimport { deprecateUntil, DEPRECATIONS } from '../@ember/-internals/deprecations/index.js';\n\n/**\n@module @ember/object\n*/\n\n\n/*\n  The event system uses a series of nested hashes to store listeners on an\n  object. When a listener is registered, or when an event arrives, these\n  hashes are consulted to determine which target and action pair to invoke.\n\n  The hashes are stored in the object's meta hash, and look like this:\n\n      // Object's meta hash\n      {\n        listeners: {       // variable name: `listenerSet`\n          \"foo:change\": [ // variable name: `actions`\n            target, method, once\n          ]\n        }\n      }\n\n*/\n\n/**\n  Add an event listener\n\n  @method addListener\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @param {Object|Function} target A target object or a function\n  @param {Function|String} method A function or the name of a function to be called on `target`\n  @param {Boolean} once A flag whether a function should only be called once\n  @public\n*/\nfunction addListener(obj, eventName, target, method, once, sync = true) {\n  if (!method && 'function' === typeof target) {\n    method = target;\n    target = null;\n  }\n  meta(obj).addToListeners(eventName, target, method, once === true, sync);\n}\n\n/**\n  Remove an event listener\n\n  Arguments should match those passed to `addListener`.\n\n  @method removeListener\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @param {Object|Function} target A target object or a function\n  @param {Function|String} method A function or the name of a function to be called on `target`\n  @public\n*/\nfunction removeListener(obj, eventName, targetOrFunction, functionOrName) {\n  let target, method;\n  if (typeof targetOrFunction === 'object') {\n    target = targetOrFunction;\n    method = functionOrName;\n  } else {\n    target = null;\n    method = targetOrFunction;\n  }\n  let m = meta(obj);\n  m.removeFromListeners(eventName, target, method);\n}\n\n/**\n  Send an event. The execution of suspended listeners\n  is skipped, and once listeners are removed. A listener without\n  a target is executed on the passed object. If an array of actions\n  is not passed, the actions stored on the passed object are invoked.\n\n  @method sendEvent\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @param {Array} params Optional parameters for each listener.\n  @return {Boolean} if the event was delivered to one or more actions\n  @public\n*/\nfunction sendEvent(obj, eventName, params, actions, _meta) {\n  if (actions === undefined) {\n    let meta = _meta === undefined ? peekMeta(obj) : _meta;\n    actions = meta !== null ? meta.matchingListeners(eventName) : undefined;\n  }\n  if (actions === undefined || actions.length === 0) {\n    return false;\n  }\n  for (let i = actions.length - 3; i >= 0; i -= 3) {\n    // looping in reverse for once listeners\n    let target = actions[i];\n    let method = actions[i + 1];\n    let once = actions[i + 2];\n    if (!method) {\n      continue;\n    }\n    if (once) {\n      removeListener(obj, eventName, target, method);\n    }\n    if (!target) {\n      target = obj;\n    }\n    let type = typeof method;\n    if (type === 'string' || type === 'symbol') {\n      method = target[method];\n    }\n    method.apply(target, params);\n  }\n  return true;\n}\n\n/**\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*/\nfunction hasListeners(obj, eventName) {\n  let meta = peekMeta(obj);\n  if (meta === null) {\n    return false;\n  }\n  let matched = meta.matchingListeners(eventName);\n  return matched !== undefined && matched.length > 0;\n}\n\n/**\n  Define a property as a function that should be executed when\n  a specified event or events are triggered.\n\n  ``` javascript\n  import EmberObject from '@ember/object';\n  import { on } from '@ember/object/evented';\n  import { sendEvent } from '@ember/object/events';\n\n  let Job = EmberObject.extend({\n    logCompleted: on('completed', function() {\n      console.log('Job completed!');\n    })\n  });\n\n  let job = Job.create();\n\n  sendEvent(job, 'completed'); // Logs 'Job completed!'\n ```\n\n  @method on\n  @static\n  @deprecated Use native JavaScript events or a dedicated event library instead.\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*/\nfunction on(...args) {\n  deprecateUntil('The `on()` event decorator is deprecated. Use native JavaScript events or a dedicated event library instead.', DEPRECATIONS.DEPRECATE_EVENTED);\n  let func = args.pop();\n  let events = args;\n  setListeners(func, events);\n  return func;\n}\n\nexport { addListener as a, hasListeners as h, on as o, removeListener as r, sendEvent as s };\n","const InternalComponentCapabilities = {\n  Empty: 0,\n  dynamicLayout: 0b0000000000001,\n  dynamicTag: 0b0000000000010,\n  prepareArgs: 0b0000000000100,\n  createArgs: 0b0000000001000,\n  attributeHook: 0b0000000010000,\n  elementHook: 0b0000000100000,\n  dynamicScope: 0b0000001000000,\n  createCaller: 0b0000010000000,\n  updateHook: 0b0000100000000,\n  createInstance: 0b0001000000000,\n  wrapped: 0b0010000000000,\n  willDestroy: 0b0100000000000,\n  hasSubOwner: 0b1000000000000\n};\nconst ARG_SHIFT = 8;\nconst MAX_SIZE = 0x7fffffff;\nconst TYPE_SIZE = 0b11111111;\nconst TYPE_MASK = 0b00000000000000000000000011111111;\nconst OPERAND_LEN_MASK = 0b00000000000000000000001100000000;\nconst MACHINE_MASK = 0b00000000000000000000010000000000;\n\nexport { ARG_SHIFT as A, InternalComponentCapabilities as I, MACHINE_MASK as M, OPERAND_LEN_MASK as O, TYPE_MASK as T, TYPE_SIZE as a, MAX_SIZE as b };\n","import { c as createComputeRef, U as UNDEFINED_REFERENCE, v as valueForRef } from './reference-CccCE8mJ.js';\nimport { f as reifyPositional } from './arguments-xjTAZ6VE.js';\nimport { i as internalHelper } from './hash-pP7ZP_NN.js';\nimport { setPath, getPath } from '../@glimmer/global-context/index.js';\nimport { i as isDict } from './collections-GpG8lT2g.js';\n\nconst isEmpty = value => {\n  return value === null || value === undefined || typeof value.toString !== 'function';\n};\nconst normalizeTextValue = value => {\n  if (isEmpty(value)) {\n    return '';\n  }\n  return String(value);\n};\nconst concat = internalHelper(({\n  positional\n}) => {\n  return createComputeRef(() => reifyPositional(positional).map(normalizeTextValue).join(''), null, 'concat');\n});\n\nconst get = internalHelper(({\n  positional\n}) => {\n  let sourceRef = positional[0] ?? UNDEFINED_REFERENCE;\n  let pathRef = positional[1] ?? UNDEFINED_REFERENCE;\n  return createComputeRef(() => {\n    let source = valueForRef(sourceRef);\n    if (isDict(source)) {\n      return getPath(source, String(valueForRef(pathRef)));\n    }\n  }, value => {\n    let source = valueForRef(sourceRef);\n    if (isDict(source)) {\n      return setPath(source, String(valueForRef(pathRef)), value);\n    }\n  }, 'get');\n});\n\nexport { concat as c, get as g };\n","import { g as get } from './property_get-DuDs6rLg.js';\n\n/**\n @module @ember/object\n*/\n\n/**\n  To get multiple properties at once, call `getProperties`\n  with an object followed by a list of strings or an array:\n\n  ```javascript\n  import { getProperties } from '@ember/object';\n\n  getProperties(record, 'firstName', 'lastName', 'zipCode');\n  // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n  ```\n\n  is equivalent to:\n\n  ```javascript\n  import { getProperties } from '@ember/object';\n\n  getProperties(record, ['firstName', 'lastName', 'zipCode']);\n  // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n  ```\n\n  @method getProperties\n  @static\n  @for @ember/object\n  @param {Object} obj\n  @param {String...|Array} list of keys to get\n  @return {Object}\n  @public\n*/\n\nfunction getProperties(obj, keys) {\n  let ret = {};\n  let propertyNames;\n  let i = 1;\n  if (arguments.length === 2 && Array.isArray(keys)) {\n    i = 0;\n    propertyNames = arguments[1];\n  } else {\n    propertyNames = Array.from(arguments);\n  }\n  for (; i < propertyNames.length; i++) {\n    // SAFETY: we are just walking the list of property names, so we know the\n    // index access never produces `undefined`.\n    let name = propertyNames[i];\n    ret[name] = get(obj, name);\n  }\n  return ret;\n}\n\nexport { getProperties as g };\n","import { i as intern } from './intern-zquhAEIg.js';\nimport { i as isObject } from './spec-BXl1reqK.js';\n\n/**\n @module @ember/object\n*/\n\n/**\n @private\n @return {Number} the uuid\n */\nlet _uuid = 0;\n\n/**\n Generates a universally unique identifier. This method\n is used internally by Ember for assisting with\n the generation of GUID's and other unique identifiers.\n\n @public\n @return {Number} [description]\n */\nfunction uuid() {\n  return ++_uuid;\n}\n\n/**\n Prefix used for guids through out Ember.\n @private\n @property GUID_PREFIX\n @for Ember\n @type String\n @final\n */\nconst GUID_PREFIX = 'ember';\n\n// Used for guid generation...\nconst OBJECT_GUIDS = new WeakMap();\nconst NON_OBJECT_GUIDS = new Map();\n/**\n  A unique key used to assign guids and other private metadata to objects.\n  If you inspect an object in your browser debugger you will often see these.\n  They can be safely ignored.\n\n  On browsers that support it, these properties are added with enumeration\n  disabled so they won't show up when you iterate over your properties.\n\n  @private\n  @property GUID_KEY\n  @for Ember\n  @type String\n  @final\n*/\nconst GUID_KEY = intern(`__ember${Date.now()}`);\n\n/**\n  Generates a new guid, optionally saving the guid to the object that you\n  pass in. You will rarely need to use this method. Instead you should\n  call `guidFor(obj)`, which return an existing guid if available.\n\n  @private\n  @method generateGuid\n  @static\n  @for @ember/object/internals\n  @param {Object} [obj] Object the guid will be used for. If passed in, the guid will\n    be saved on the object and reused whenever you pass the same object\n    again.\n\n    If no object is passed, just generate a new guid.\n  @param {String} [prefix] Prefix to place in front of the guid. Useful when you want to\n    separate the guid into separate namespaces.\n  @return {String} the guid\n*/\n// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types\nfunction generateGuid(obj, prefix = GUID_PREFIX) {\n  let guid = prefix + uuid().toString();\n  if (isObject(obj)) {\n    OBJECT_GUIDS.set(obj, guid);\n  }\n  return guid;\n}\n\n/**\n  Returns a unique id for the object. If the object does not yet have a guid,\n  one will be assigned to it. You can call this on any object,\n  `EmberObject`-based or not.\n\n  You can also use this method on DOM Element objects.\n\n  @public\n  @static\n  @method guidFor\n  @for @ember/object/internals\n  @param {Object} obj any object, string, number, Element, or primitive\n  @return {String} the unique guid for this instance.\n*/\nfunction guidFor(value) {\n  let guid;\n  if (isObject(value)) {\n    guid = OBJECT_GUIDS.get(value);\n    if (guid === undefined) {\n      guid = `${GUID_PREFIX}${uuid()}`;\n      OBJECT_GUIDS.set(value, guid);\n    }\n  } else {\n    guid = NON_OBJECT_GUIDS.get(value);\n    if (guid === undefined) {\n      let type = typeof value;\n      if (type === 'string') {\n        guid = `st${uuid()}`;\n      } else if (type === 'number') {\n        guid = `nu${uuid()}`;\n      } else if (type === 'symbol') {\n        guid = `sy${uuid()}`;\n      } else {\n        guid = `(${value})`;\n      }\n      NON_OBJECT_GUIDS.set(value, guid);\n    }\n  }\n  return guid;\n}\n\nexport { GUID_KEY as G, generateGuid as a, guidFor as g, uuid as u };\n","// 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';\n\nexport { hasDOM as h };\n","import { c as createComputeRef, d as isInvokableRef, u as updateRef } from './reference-CccCE8mJ.js';\nimport { f as reifyPositional, g as check, e as reifyNamed } from './arguments-xjTAZ6VE.js';\nimport { j as setInternalHelperManager } from './api-DJnXAjon.js';\n\n/* eslint-disable @typescript-eslint/no-empty-object-type */\nfunction buildUntouchableThis(source) {\n  let context = null;\n  return context;\n}\n\nfunction internalHelper(helper) {\n  return setInternalHelperManager(helper, {});\n}\n\nconst array = internalHelper(({\n  positional\n}) => {\n  return createComputeRef(() => reifyPositional(positional), null, 'array');\n});\n\nconst context = buildUntouchableThis();\nconst fn = internalHelper(({\n  positional\n}) => {\n  let callbackRef = check(positional[0]);\n  return createComputeRef(() => {\n    return (...invocationArgs) => {\n      let [fn, ...args] = reifyPositional(positional);\n      if (isInvokableRef(callbackRef)) {\n        let value = args.length > 0 ? args[0] : invocationArgs[0];\n        return void updateRef(callbackRef, value);\n      } else {\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-return -- @fixme\n        return fn.call(context, ...args, ...invocationArgs);\n      }\n    };\n  }, null, 'fn');\n});\n\nconst hash = internalHelper(({\n  named\n}) => {\n  let ref = createComputeRef(() => {\n    return reifyNamed(named);\n  }, null, 'hash');\n\n  // Setup the children so that templates can bypass getting the value of\n  // the reference and treat children lazily\n  let children = new Map();\n  for (let name in named) {\n    children.set(name, named[name]);\n  }\n  ref.children = children;\n  return ref;\n});\n\nexport { array as a, fn as f, hash as h, internalHelper as i };\n","/**\n * The brand for classic (class-based) helpers lives in its own module so that\n * code which only needs to *detect* classic helpers (e.g. the resolver) does\n * not have to import the classic `Helper` base class (and with it the classic\n * object model: `EmberObject`, `Mixin`, meta, etc.).\n */\nconst IS_CLASSIC_HELPER = Symbol('IS_CLASSIC_HELPER');\nfunction isClassicHelper(obj) {\n  return obj[IS_CLASSIC_HELPER] === true;\n}\n\nexport { IS_CLASSIC_HELPER as I, isClassicHelper as i };\n","import { E as ENV } from './env-DXxsTFkM.js';\nimport { h as hasDOM } from './has-dom-DdQORPzI.js';\nimport { assert } from '../@ember/debug/lib/assert.js';\nimport { schedule, _backburner, _getCurrentRunLoop } from '../@ember/runloop/index.js';\nimport { associateDestroyableChild, destroy, registerDestructor, isDestroying, isDestroyed } from '../@glimmer/destroyable/index.js';\nimport { artifacts } from '../@glimmer/program/index.js';\nimport { R as RuntimeOpImpl } from './program-BAh__OXZ.js';\nimport { c as clientBuilder } from './api-B3M8aF1d.js';\nimport { g as runtimeOptions, i as inTransaction, r as renderComponent$1 } from './render-C_iak8Db.js';\nimport { c as consumeTag, f as isTracking, a as valueForTag, k as CURRENT_TAG, v as validateTag } from './cache-CofLhaS4.js';\nimport { g as get$1, a as _getProp } from './property_get-DuDs6rLg.js';\nimport { _ as _setProp, s as set } from './property_set-CVmdjPdh.js';\nimport './guid-Cbq2sNV_.js';\nimport setGlobalContext from '../@glimmer/global-context/index.js';\nimport { a as tagForProperty, t as tagForObject, o as objectAt } from './chain-tags-BlsXEpE-.js';\nimport { isEmberArray } from '../@ember/array/-internals.js';\nimport { i as isObject } from './spec-BXl1reqK.js';\nimport { t as tagFor } from './meta-BJtIZDir.js';\nimport { contentFor } from '../@ember/-internals/runtime/lib/mixins/-proxy.js';\nimport { i as isProxy } from './is_proxy-Bzg0d4m4.js';\nimport { v as valueForRef, c as createComputeRef, a as createConstRef, h as createInvokableRef, j as createReadOnlyRef, k as createUnboundRef } from './reference-CccCE8mJ.js';\nimport { i as internalHelper } from './internal-helper-Becm19An.js';\nimport { i as isHTMLSafe } from './index-D-xTBV4B.js';\nimport isArray from '../@ember/array/lib/is-array.js';\nimport { isFactory } from '../@ember/-internals/owner/index.js';\nimport { _instrumentStart } from '../@ember/instrumentation/index.js';\nimport { g as getComponentTemplate } from './template-Dc_cBOoX.js';\nimport { a as getInternalHelperManager, j as setInternalHelperManager, g as getInternalComponentManager } from './api-DJnXAjon.js';\nimport { h as hash, f as fn, a as array } from './hash-pP7ZP_NN.js';\nimport { g as get, c as concat } from './get-B1Vq9Mmk.js';\nimport { o as on } from './on-BFt-Sx9A.js';\nimport { T as TEMPLATE_ONLY_COMPONENT_MANAGER, t as templateOnlyComponent } from './template-only-CWsfnbVm.js';\nimport { i as isCurlyManager } from './curly-brand-B_F79Dep.js';\nimport { i as isClassicHelper } from './helper-brand-C9_8vvOf.js';\nimport { dasherize } from '../@ember/-internals/string/index.js';\nimport { a as uniqueId } from './unique-id-DNqsbhfh.js';\nimport { r as renderers } from './renderers-BjnN26_f.js';\nimport { E as EvaluationContextImpl } from './program-context-WVlzpPdi.js';\n\n/**\n@module ember\n*/\nconst disallowDynamicResolution = internalHelper(({\n  positional,\n  named\n}) => {\n  const nameOrValueRef = positional[0];\n  let typeRef = named['type'];\n  let locRef = named['loc'];\n  let originalRef = named['original'];\n  // assert('[BUG] expecting a string literal for the `type` argument', isConstRef(typeRef));\n  // assert('[BUG] expecting a string literal for the `loc` argument', isConstRef(locRef));\n  // assert('[BUG] expecting a string literal for the `original` argument', isConstRef(originalRef));\n  valueForRef(typeRef);\n  valueForRef(locRef);\n  valueForRef(originalRef);\n  return createComputeRef(() => {\n    let nameOrValue = valueForRef(nameOrValueRef);\n    return nameOrValue;\n  });\n});\n\nlet helper;\n{\n  helper = args => {\n    let arg = args.positional[0];\n    return arg;\n  };\n}\nconst inElementNullCheckHelper = internalHelper(helper);\n\nconst normalizeClassHelper = internalHelper(({\n  positional\n}) => {\n  return createComputeRef(() => {\n    let classNameArg = positional[0];\n    let valueArg = positional[1];\n    let classNameParts = valueForRef(classNameArg).split('.');\n    let className = classNameParts[classNameParts.length - 1];\n    let value = valueForRef(valueArg);\n    if (value === true) {\n      return dasherize(className);\n    } else if (!value && value !== 0) {\n      return '';\n    } else {\n      return String(value);\n    }\n  });\n});\n\n/**\n  @module ember\n*/\n\nconst resolve = internalHelper(({\n  positional\n}, owner) => {\n  let fullNameRef = positional[0];\n  let fullName = valueForRef(fullNameRef);\n  return createConstRef(owner.factoryFor(fullName)?.class);\n});\n\n/**\n@module ember\n*/\n\n/**\n  This reference is used to get the `[]` tag of iterables, so we can trigger\n  updates to `{{each}}` when it changes. It is put into place by a template\n  transform at build time, similar to the (-each-in) helper\n*/\nconst trackArray = internalHelper(({\n  positional\n}) => {\n  const inner = positional[0];\n  return createComputeRef(() => {\n    let iterable = valueForRef(inner);\n    if (isObject(iterable)) {\n      consumeTag(tagForProperty(iterable, '[]'));\n    }\n    return iterable;\n  });\n});\n\n/**\n@module @ember/helper\n*/\n\n/**\n  The `{{#each}}` keyword 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  ```gjs {data-filename=\"app/components/developer-list.gjs\"}\n  import Component from '@glimmer/component';\n\n  export default class DeveloperList extends Component {\n    developers = [\n      { name: 'Yehuda' },\n      { name: 'Tom' },\n      { name: 'Paul' },\n    ];\n\n    <template>\n      <ul>\n        {{#each this.developers as |person|}}\n          <li>Hello, {{person.name}}!</li>\n        {{/each}}\n      </ul>\n    </template>\n  }\n  ```\n\n  The same rules apply to arrays of primitives:\n\n  ```gjs {data-filename=\"app/components/developer-names.gjs\"}\n  import Component from '@glimmer/component';\n\n  export default class DeveloperNames extends Component {\n    developerNames = ['Yehuda', 'Tom', 'Paul'];\n\n    <template>\n      <ul>\n        {{#each this.developerNames as |name|}}\n          <li>Hello, {{name}}!</li>\n        {{/each}}\n      </ul>\n    </template>\n  }\n  ```\n\n  `{{#each}}` also supports native JavaScript [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)\n  values and other iterables:\n\n  ```gjs {data-filename=\"app/components/developer-set.gjs\"}\n  import Component from '@glimmer/component';\n\n  export default class DeveloperSet extends Component {\n    developers = new Set([\n      { name: 'Yehuda' },\n      { name: 'Tom' },\n      { name: 'Paul' },\n    ]);\n\n    <template>\n      <ul>\n        {{#each this.developers as |person|}}\n          <li>Hello, {{person.name}}!</li>\n        {{/each}}\n      </ul>\n    </template>\n  }\n  ```\n\n  During iteration, the index of each item in the array is provided as a second\n  block parameter:\n\n  ```gjs {data-filename=\"app/components/developer-list-with-index.gjs\"}\n  import Component from '@glimmer/component';\n\n  export default class DeveloperListWithIndex extends Component {\n    developers = [\n      { name: 'Yehuda' },\n      { name: 'Tom' },\n      { name: 'Paul' },\n    ];\n\n    <template>\n      <ul>\n        {{#each this.developers as |person index|}}\n          <li>Hello, {{person.name}}! You're number {{index}} in line</li>\n        {{/each}}\n      </ul>\n    </template>\n  }\n  ```\n\n  `#each` is a keyword and does not need to be imported.\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, mapping over `people` produces a new array of new objects on each\n  render. Use `key` so Ember can match items across those renders:\n\n  ```gjs {data-filename=\"app/components/mapped-developers.gjs\"}\n  import Component from '@glimmer/component';\n\n  export default class MappedDevelopers extends Component {\n    people = [\n      { name: 'Yehuda' },\n      { name: 'Tom' },\n      { name: 'Paul' },\n    ];\n\n    get developers() {\n      return this.people.map((person) => {\n        return { ...person, type: 'developer' };\n      });\n    }\n\n    <template>\n      <ul>\n        {{#each this.developers key=\"name\" as |person|}}\n          <li>Hello, {{person.name}}!</li>\n        {{/each}}\n      </ul>\n    </template>\n  }\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    * `@identity` - The item in the array itself. This is the default.\n    * `@index` - The index of the item in the array.\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  ```gjs {data-filename=\"app/components/available-developers.gjs\"}\n  import Component from '@glimmer/component';\n\n  export default class AvailableDevelopers extends Component {\n    developers = [];\n\n    <template>\n      <ul>\n        {{#each this.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    </template>\n  }\n  ```\n\n  @method each\n  @for Keywords\n  @static\n  @noimport\n  @public\n */\n\n/**\n  The `{{#each-in}}` keyword loops over properties on an object, or entries in a\n  native JavaScript [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map).\n\n  For example, given this component definition:\n\n  ```gjs {data-filename=\"app/components/developer-details.gjs\"}\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n\n  export default class DeveloperDetails extends Component {\n    @tracked developer = {\n      name: 'Shelly Sails',\n      age: 42,\n    };\n\n    <template>\n      <ul>\n        {{#each-in this.developer as |key value|}}\n          <li>{{key}}: {{value}}</li>\n        {{/each-in}}\n      </ul>\n    </template>\n  }\n  ```\n\n  This template would display all properties on the `developer`\n  object in a list, 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  The same pattern works with a `Map`:\n\n  ```gjs {data-filename=\"app/components/developer-map.gjs\"}\n  import Component from '@glimmer/component';\n\n  export default class DeveloperMap extends Component {\n    map = new Map([\n      ['name', 'Shelly Sails'],\n      ['age', 42],\n    ]);\n\n    <template>\n      <ul>\n        {{#each-in this.map as |key value|}}\n          <li>{{key}}: {{value}}</li>\n        {{/each-in}}\n      </ul>\n    </template>\n  }\n  ```\n\n  When a `Map` uses object keys, you can pass `key=\"@identity\"` to explicitly\n  track entries across re-renders using the JavaScript identity of each key:\n\n  ```gjs {data-filename=\"app/components/object-keyed-map.gjs\"}\n  import Component from '@glimmer/component';\n\n  export default class ObjectKeyedMap extends Component {\n    map = new Map([\n      [{ name: 'one' }, 'foo'],\n      [{ name: 'two' }, 'bar'],\n    ]);\n\n    <template>\n      <ul>\n        {{#each-in this.map key=\"@identity\" as |key value|}}\n          <li>{{key.name}}: {{value}}</li>\n        {{/each-in}}\n      </ul>\n    </template>\n  }\n  ```\n\n  `#each-in` is a keyword and does not need to be imported.\n\n  ### Specifying Keys\n\n  Like `{{#each}}`, `{{#each-in}}` accepts a `key` option to decide which DOM\n  elements can be reused between renders. Since `{{#each-in}}` yields two block\n  params, the special values pick which one is used:\n\n    * `@identity` - The second block param: the property's value. This is the\n      default. Changing a value replaces that entry's DOM instead of updating it\n      in place.\n    * `@key` - The first block param: the property name, or for a `Map`, its key.\n\n  Any other string is a path, looked up on the value: `key=\"id\"` keys each entry\n  by its `value.id`.\n\n  For example, `@key` keeps each entry's DOM as its score changes, so anything\n  stateful inside it — focus, a running transition, a component instance — survives\n  the update:\n\n  ```handlebars\n  {{#each-in this.scores key=\"@key\" as |player score|}}\n    <PlayerScore @name={{player}} @score={{score}} />\n  {{/each-in}}\n  ```\n\n  @method each-in\n  @static\n  @noimport\n  @for Keywords\n  @public\n  @since 2.1.0\n*/\nclass EachInWrapper {\n  constructor(inner) {\n    this.inner = inner;\n  }\n}\nconst eachIn = internalHelper(({\n  positional\n}) => {\n  const inner = positional[0];\n  return createComputeRef(() => {\n    let iterable = valueForRef(inner);\n    consumeTag(tagForObject(iterable));\n    if (isProxy(iterable)) {\n      // this is because the each-in doesn't actually get(proxy, 'key') but bypasses it\n      // and the proxy's tag is lazy updated on access\n      iterable = contentFor(iterable);\n    }\n    return new EachInWrapper(iterable);\n  });\n});\n\n/**\n@module @ember/helper\n*/\n\n/**\n  The `mut` helper is a shortcut for updating for args.\n    \n  However, defining update functions on your backing class is preferable to using `mut`.\n    \n  More directly: Don't use `mut`. \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  <MyChild @childClickCount={{this.totalClicks}} @clickCountChange={{fn (mut this.totalClicks)}} />\n  ```\n\n  The child `Component` would invoke the function with the new click count:\n\n  ```gjs {data-filename=\"app/components/my-child.gjs\"}\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n    \n  export default class MyChild extends Component {\n    @action\n    update() {\n      this.args.clickCountChange(this.args.childClickCount + 1);\n    }\n    \n    <template>\n      <button {{on \"click\" this.update}}>\n        Click me!\n      </button>\n    </template>\n  }\n  ```\n\n  The `mut` helper changes the `totalClicks` value to what was provided as the `fn` argument.\n\n  @method mut\n  @param {Object} [attr] the \"two-way\" attribute that can be modified.\n  @static\n  @for Keywords\n  @public\n*/\n\nconst mut = internalHelper(({\n  positional\n}) => {\n  let ref = positional[0];\n  return createInvokableRef(ref);\n});\n\n/**\n@module @ember/helper\n*/\n\n\n/**\n  The `readonly` helper let's you specify that a binding is one-way only,\n  instead of two-way.\n  \n  This is a vestigial helper from the days of `@ember/component` and does not apply to\n  components extending from `@glimmer/component`.\n    \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 class MyParent extends Component {\n    totalClicks = 3;\n  }\n  ```\n\n  Now, when you update `childClickCount`:\n\n  ```app/components/my-child.js\n  export default class MyChild extends Component {\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 class MyParent extends Component {\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 class MyChild extends Component {\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 Keywords\n  @noimport\n  @static\n  @private\n*/\nconst readonly = internalHelper(({\n  positional\n}) => {\n  let firstArg = positional[0];\n  return createReadOnlyRef(firstArg);\n});\n\n/**\n@module @ember/helper\n*/\n\n\n/**\n  The `{{unbound}}` helper disconnects the one-way binding of a property,\n  essentially freezing its value at the moment of rendering. For example,\n  in this example the display of the variable `name` will not change even\n  if it is set with a new value:\n\n  ```handlebars\n  {{unbound this.name}}\n  ```\n\n  Like any helper, the `unbound` helper can accept a nested helper expression.\n  This allows for custom helpers to be rendered unbound:\n\n  ```handlebars\n  {{unbound (some-custom-helper)}}\n  {{unbound (capitalize this.name)}}\n  {{! You can use any helper, including unbound, in a nested expression }}\n  {{capitalize (unbound this.name)}}\n  ```\n\n  The `unbound` helper only accepts a single argument, and it return an\n  unbound value.\n \n `unbound` is a template keyword and does not need to be imported.\n\n  @method unbound\n  @static\n  @noimport\n  @for Keywords\n  @public\n*/\n\nconst unbound = internalHelper(({\n  positional,\n  named\n}) => {\n  return createUnboundRef(valueForRef(positional[0]));\n});\n\nfunction instrumentationPayload(name) {\n  return {\n    object: `component:${name}`\n  };\n}\nfunction componentFor(name, owner) {\n  let fullName = `component:${name}`;\n  return owner.factoryFor(fullName) || null;\n}\nfunction lookupComponentPair(owner, name) {\n  let component = componentFor(name, owner);\n  if (isFactory(component) && component.class) {\n    let layout = getComponentTemplate(component.class);\n    if (layout !== undefined) {\n      return {\n        component,\n        layout\n      };\n    }\n  }\n  if (component === null) {\n    return null;\n  } else {\n    return {\n      component,\n      layout: null\n    };\n  }\n}\nconst BUILTIN_KEYWORD_HELPERS = {\n  mut,\n  readonly,\n  unbound,\n  '-hash': hash,\n  '-each-in': eachIn,\n  '-normalize-class': normalizeClassHelper,\n  '-resolve': resolve,\n  '-track-array': trackArray,\n  '-in-el-null': inElementNullCheckHelper\n};\nconst BUILTIN_HELPERS = {\n  ...BUILTIN_KEYWORD_HELPERS,\n  array,\n  concat,\n  fn,\n  get,\n  hash,\n  'unique-id': uniqueId,\n  // In prod builds, this is a no-op helper and is unused in practice. We shouldn't need\n  // to add it at all, but the current test build doesn't produce a \"prod compiler\", so\n  // we ended up running the debug-build for the template compliler in prod tests. Once\n  // that is fixed, this can be conditionally included only in DEBUG. For now, this\n  // allows the test to work and does not really harm anything, since it's just a no-op\n  // pass-through helper. Keeping it inside the object literal (rather than a top-level\n  // conditional assignment) keeps this module free of top-level side effects so that\n  // consumers that never resolve anything dynamically can tree-shake the whole table.\n  '-disallow-dynamic-resolution': disallowDynamicResolution\n};\n\n// With the implementation of RFC #1006(https://rfcs.emberjs.com/id/1006-deprecate-action-template-helper), the `action` modifer was removed. It was the\n// only built-in keyword modifier, so this object is currently empty.\nconst BUILTIN_KEYWORD_MODIFIERS = {};\nconst BUILTIN_MODIFIERS = {\n  ...BUILTIN_KEYWORD_MODIFIERS,\n  on\n};\nclass ResolverImpl {\n  componentDefinitionCache = new Map();\n  lookupPartial() {\n    return null;\n  }\n  lookupHelper(name, owner) {\n    let helper = BUILTIN_HELPERS[name];\n    if (helper !== undefined) {\n      return helper;\n    }\n    let factory = owner.factoryFor(`helper:${name}`);\n    if (factory === undefined) {\n      return null;\n    }\n    let definition = factory.class;\n    if (definition === undefined) {\n      return null;\n    }\n    if (typeof definition === 'function' && isClassicHelper(definition)) {\n      // For classic class based helpers, we need to pass the factoryFor result itself rather\n      // than the raw value (`factoryFor(...).class`). This is because injections are already\n      // bound in the factoryFor result, including type-based injections\n\n      // The classic helper manager is registered on the classic `Helper` base\n      // class; deriving it from the definition (rather than importing it from\n      // the module that defines `Helper`) keeps this module from pulling in\n      // the classic object model when no classic helpers are in use.\n      let manager = getInternalHelperManager(definition);\n      {\n        setInternalHelperManager(manager, factory);\n      }\n      return factory;\n    }\n    return definition;\n  }\n  lookupBuiltInHelper(name) {\n    return BUILTIN_KEYWORD_HELPERS[name] ?? null;\n  }\n  lookupModifier(name, owner) {\n    let builtin = BUILTIN_MODIFIERS[name];\n    if (builtin !== undefined) {\n      return builtin;\n    }\n    let modifier = owner.factoryFor(`modifier:${name}`);\n    if (modifier === undefined) {\n      return null;\n    }\n    return modifier.class || null;\n  }\n  lookupBuiltInModifier(name) {\n    return BUILTIN_KEYWORD_MODIFIERS[name] ?? null;\n  }\n  lookupComponent(name, owner) {\n    let pair = lookupComponentPair(owner, name);\n    if (pair === null) {\n      return null;\n    }\n    let template = null;\n    let key;\n    if (pair.component === null) {\n      key = template = pair.layout(owner);\n    } else {\n      key = pair.component;\n    }\n    let cachedComponentDefinition = this.componentDefinitionCache.get(key);\n    if (cachedComponentDefinition !== undefined) {\n      return cachedComponentDefinition;\n    }\n    if (template === null && pair.layout !== null) {\n      template = pair.layout(owner);\n    }\n    let finalizer = _instrumentStart('render.getComponentDefinition', instrumentationPayload, name);\n    let definition = null;\n    if (pair.component === null) {\n      definition = {\n        state: templateOnlyComponent(undefined, name),\n        manager: TEMPLATE_ONLY_COMPONENT_MANAGER,\n        template\n      };\n    } else {\n      let factory = pair.component;\n      let ComponentClass = factory.class;\n      let manager = getInternalComponentManager(ComponentClass);\n      definition = {\n        state: isCurlyManager(manager) ? factory : ComponentClass,\n        manager,\n        template\n      };\n    }\n    finalizer();\n    this.componentDefinitionCache.set(key, definition);\n    return definition;\n  }\n}\n\nfunction toIterator(iterable) {\n  if (iterable instanceof EachInWrapper) {\n    return toEachInIterator(iterable.inner);\n  } else {\n    return toEachIterator(iterable);\n  }\n}\nfunction toEachInIterator(iterable) {\n  if (!isIndexable(iterable)) {\n    return null;\n  }\n  if (Array.isArray(iterable) || isEmberArray(iterable)) {\n    return ObjectIterator.fromIndexable(iterable);\n  } else if (isNativeIterable(iterable)) {\n    return MapLikeNativeIterator.from(iterable);\n  } else if (hasForEach(iterable)) {\n    return ObjectIterator.fromForEachable(iterable);\n  } else {\n    return ObjectIterator.fromIndexable(iterable);\n  }\n}\nfunction toEachIterator(iterable) {\n  if (!isObject(iterable)) {\n    return null;\n  }\n  if (Array.isArray(iterable)) {\n    return ArrayIterator.from(iterable);\n  } else if (isEmberArray(iterable)) {\n    return EmberArrayIterator.from(iterable);\n  } else if (isNativeIterable(iterable)) {\n    return ArrayLikeNativeIterator.from(iterable);\n  } else if (hasForEach(iterable)) {\n    return ArrayIterator.fromForEachable(iterable);\n  } else {\n    return null;\n  }\n}\nclass BoundedIterator {\n  position = 0;\n  constructor(length) {\n    this.length = length;\n  }\n  isEmpty() {\n    return false;\n  }\n  memoFor(position) {\n    return position;\n  }\n  next() {\n    let {\n      length,\n      position\n    } = this;\n    if (position >= length) {\n      return null;\n    }\n    let value = this.valueFor(position);\n    let memo = this.memoFor(position);\n    this.position++;\n    return {\n      value,\n      memo\n    };\n  }\n}\nclass ArrayIterator extends BoundedIterator {\n  static from(iterable) {\n    return iterable.length > 0 ? new this(iterable) : null;\n  }\n  static fromForEachable(object) {\n    let array = [];\n    object.forEach(item => array.push(item));\n    return this.from(array);\n  }\n  constructor(array) {\n    super(array.length);\n    this.array = array;\n  }\n  valueFor(position) {\n    return this.array[position];\n  }\n}\nclass EmberArrayIterator extends BoundedIterator {\n  static from(iterable) {\n    return iterable.length > 0 ? new this(iterable) : null;\n  }\n  constructor(array) {\n    super(array.length);\n    this.array = array;\n  }\n  valueFor(position) {\n    return objectAt(this.array, position);\n  }\n}\nclass ObjectIterator extends BoundedIterator {\n  static fromIndexable(obj) {\n    let keys = Object.keys(obj);\n    if (keys.length === 0) {\n      return null;\n    } else {\n      let values = [];\n      for (let key of keys) {\n        let value;\n        value = obj[key];\n\n        // Add the tag of the returned value if it is an array, since arrays\n        // should always cause updates if they are consumed and then changed\n        if (isTracking()) {\n          consumeTag(tagFor(obj, key));\n          if (Array.isArray(value)) {\n            consumeTag(tagFor(value, '[]'));\n          }\n        }\n        values.push(value);\n      }\n      return new this(keys, values);\n    }\n  }\n  static fromForEachable(obj) {\n    let keys = [];\n    let values = [];\n    let length = 0;\n    let isMapLike = false;\n\n    // Not using an arrow function here so we can get an accurate `arguments`\n    obj.forEach(function (value, key) {\n      isMapLike = isMapLike || arguments.length >= 2;\n      if (isMapLike) {\n        keys.push(key);\n      }\n      values.push(value);\n      length++;\n    });\n    if (length === 0) {\n      return null;\n    } else if (isMapLike) {\n      return new this(keys, values);\n    } else {\n      return new ArrayIterator(values);\n    }\n  }\n  constructor(keys, values) {\n    super(values.length);\n    this.keys = keys;\n    this.values = values;\n  }\n  valueFor(position) {\n    return this.values[position];\n  }\n  memoFor(position) {\n    return this.keys[position];\n  }\n}\nclass NativeIterator {\n  static from(iterable) {\n    let iterator = iterable[Symbol.iterator]();\n    let result = iterator.next();\n    let {\n      done\n    } = result;\n    if (done) {\n      return null;\n    } else {\n      return new this(iterator, result);\n    }\n  }\n  position = 0;\n  constructor(iterable, result) {\n    this.iterable = iterable;\n    this.result = result;\n  }\n  isEmpty() {\n    return false;\n  }\n  next() {\n    let {\n      iterable,\n      result,\n      position\n    } = this;\n    if (result.done) {\n      return null;\n    }\n    let value = this.valueFor(result, position);\n    let memo = this.memoFor(result, position);\n    this.position++;\n    this.result = iterable.next();\n    return {\n      value,\n      memo\n    };\n  }\n}\nclass ArrayLikeNativeIterator extends NativeIterator {\n  valueFor(result) {\n    return result.value;\n  }\n  memoFor(_result, position) {\n    return position;\n  }\n}\nclass MapLikeNativeIterator extends NativeIterator {\n  valueFor(result) {\n    return result.value[1];\n  }\n  memoFor(result) {\n    return result.value[0];\n  }\n}\nfunction hasForEach(value) {\n  return value != null && typeof value['forEach'] === 'function';\n}\nfunction isNativeIterable(value) {\n  return value != null && typeof value[Symbol.iterator] === 'function';\n}\nfunction isIndexable(value) {\n  return value !== null && (typeof value === 'object' || typeof value === 'function');\n}\n\nfunction toBool(predicate) {\n  if (isProxy(predicate)) {\n    consumeTag(tagForProperty(predicate, 'content'));\n    return Boolean(get$1(predicate, 'isTruthy'));\n  } else if (isArray(predicate)) {\n    consumeTag(tagForProperty(predicate, '[]'));\n    return predicate.length !== 0;\n  } else if (isHTMLSafe(predicate)) {\n    return Boolean(predicate.toString());\n  } else {\n    return Boolean(predicate);\n  }\n}\n\n///////////\n\n// Setup global context\n\nsetGlobalContext({\n  scheduleRevalidate() {\n    _backburner.ensureInstance();\n  },\n  toBool,\n  toIterator,\n  getProp: _getProp,\n  setProp: _setProp,\n  getPath: get$1,\n  setPath: set,\n  scheduleDestroy(destroyable, destructor) {\n    schedule('actions', null, destructor, destroyable);\n  },\n  scheduleDestroyed(finalizeDestructor) {\n    schedule('destroy', null, finalizeDestructor);\n  },\n  warnIfStyleNotTrusted(value) {\n  },\n  assert(test, msg, options) {\n  },\n  deprecate(msg, test, options) {\n  }\n});\n\n///////////\n\n// Define environment delegate\n\nclass EmberEnvironmentDelegate {\n  enableDebugTooling = ENV._DEBUG_RENDER_TREE;\n  constructor(owner, isInteractive) {\n    this.owner = owner;\n    this.isInteractive = isInteractive;\n  }\n  onTransactionCommit() {}\n}\n\nconst NO_OP = () => {};\n\n// This wrapper logic prevents us from rerendering in case of a hard failure\n// during render. This prevents infinite revalidation type loops from occuring,\n// and ensures that errors are not swallowed by subsequent follow on failures.\nfunction errorLoopTransaction(fn) {\n  {\n    return fn;\n  }\n}\n\n/**\n * The interface the `RendererState` needs from a render root. The base\n * renderer only ever creates `ComponentRootState`s; the classic renderer\n * (`./renderer`) adds `ClassicRootState` for outlet/classic-component roots.\n */\n\nclass ComponentRootState {\n  type = 'component';\n  #result;\n  #render;\n  constructor(state, definition, options) {\n    this.#render = errorLoopTransaction(() => {\n      let iterator = renderComponent$1(state.context, state.builder(state.env, options.into), state.owner, definition, options?.args);\n      let result = this.#result = iterator.sync();\n      associateDestroyableChild(this, this.#result);\n      this.#render = errorLoopTransaction(() => {\n        if (isDestroying(result) || isDestroyed(result)) return;\n        return result.rerender({\n          alwaysRevalidate: false\n        });\n      });\n    });\n  }\n  isFor(_possibleRoot) {\n    return false;\n  }\n  render() {\n    // A root can be destroyed before its first render, e.g. when it was added\n    // during a render transaction and destroyed before the transaction got to it.\n    if (isDestroying(this)) return;\n    this.#render();\n  }\n  destroy() {\n    destroy(this);\n  }\n  get destroyed() {\n    return isDestroyed(this);\n  }\n  get result() {\n    return this.#result;\n  }\n}\nfunction _resetRenderers() {\n  renderers.length = 0;\n}\nfunction register(renderer) {\n  renderers.push(renderer);\n}\nfunction deregister(renderer) {\n  let index = renderers.indexOf(renderer);\n  renderers.splice(index, 1);\n}\nfunction loopBegin() {\n  for (let renderer of renderers) {\n    renderer.rerender();\n  }\n}\nlet renderSettledDeferred = null;\n/*\n  Returns a promise which will resolve when rendering has settled. Settled in\n  this context is defined as when all of the tags in use are \"current\" (e.g.\n  `renderers.every(r => r._isValid())`). When this is checked at the _end_ of\n  the run loop, this essentially guarantees that all rendering is completed.\n\n  @method renderSettled\n  @returns {Promise<void>} a promise which fulfills when rendering has settled\n*/\nfunction renderSettled() {\n  if (renderSettledDeferred === null) {\n    let resolve;\n    let promise = new Promise(r => resolve = r);\n    renderSettledDeferred = {\n      promise,\n      resolve\n    };\n    // if there is no current runloop, the promise created above will not have\n    // a chance to resolve (because its resolved in backburner's \"end\" event)\n    if (!_getCurrentRunLoop()) {\n      // ensure a runloop has been kicked off\n      _backburner.schedule('actions', null, NO_OP);\n    }\n  }\n  return renderSettledDeferred.promise;\n}\nfunction resolveRenderPromise() {\n  if (renderSettledDeferred !== null) {\n    let resolve = renderSettledDeferred.resolve;\n    renderSettledDeferred = null;\n    _backburner.join(null, resolve);\n  }\n}\nlet loops = 0;\nfunction loopEnd() {\n  for (let renderer of renderers) {\n    if (!renderer.isValid()) {\n      if (loops > ENV._RERENDER_LOOP_LIMIT) {\n        loops = 0;\n        // TODO: do something better\n        renderer.destroy();\n        throw new Error('infinite rendering invalidation detected');\n      }\n      loops++;\n      return _backburner.join(null, NO_OP);\n    }\n  }\n  loops = 0;\n  resolveRenderPromise();\n}\n_backburner.on('begin', loopBegin);\n_backburner.on('end', loopEnd);\nclass RendererState {\n  static create(data, renderer) {\n    const state = new RendererState(data, renderer);\n    associateDestroyableChild(renderer, state);\n    return state;\n  }\n  #data;\n  #lastRevision = -1;\n  #inRenderTransaction = false;\n  #destroyed = false;\n  #roots = [];\n  #removedRoots = [];\n  #registered = false;\n  constructor(data, renderer) {\n    this.#data = data;\n    registerDestructor(this, () => {\n      this.clearAllRoots(renderer);\n    });\n  }\n  get debug() {\n    return {\n      roots: this.#roots,\n      inRenderTransaction: this.#inRenderTransaction,\n      isInteractive: this.isInteractive\n    };\n  }\n  get roots() {\n    return this.#roots;\n  }\n  get owner() {\n    return this.#data.owner;\n  }\n  get builder() {\n    return this.#data.builder;\n  }\n  get context() {\n    return this.#data.context;\n  }\n  get env() {\n    return this.context.env;\n  }\n  get isInteractive() {\n    return this.#data.context.env.isInteractive;\n  }\n  renderRoot(root, renderer) {\n    let roots = this.#roots;\n    roots.push(root);\n    associateDestroyableChild(this, root);\n\n    // Destroying a root (e.g. via the `RenderResult` from `renderComponent`)\n    // must release it, otherwise the root -- and the renderer, which stays in\n    // the global `renderers` list while it has roots -- is retained forever.\n    registerDestructor(root, () => {\n      if (this.#inRenderTransaction) {\n        // `renderRoots` is iterating `roots`; let it remove this one.\n        if (!this.#removedRoots.includes(root)) this.#removedRoots.push(root);\n      } else {\n        this.#removeRoot(root, renderer);\n      }\n    });\n    this.#register(renderer);\n    this.#renderRootsTransaction(renderer);\n    return root;\n  }\n  #renderRootsTransaction(renderer) {\n    if (this.#inRenderTransaction) {\n      // currently rendering roots, a new root was added and will\n      // be processed by the existing _renderRoots invocation\n      return;\n    }\n\n    // used to prevent calling _renderRoots again (see above)\n    // while we are actively rendering roots\n    this.#inRenderTransaction = true;\n    let completedWithoutError = false;\n    try {\n      this.renderRoots(renderer);\n      completedWithoutError = true;\n    } finally {\n      if (!completedWithoutError) {\n        this.#lastRevision = valueForTag(CURRENT_TAG);\n      }\n      this.#inRenderTransaction = false;\n    }\n  }\n  renderRoots(renderer) {\n    let roots = this.#roots;\n    let removedRoots = this.#removedRoots;\n    let initialRootsLength;\n    do {\n      initialRootsLength = roots.length;\n      inTransaction(this.context.env, () => {\n        // ensure that for the first iteration of the loop\n        // each root is processed\n        for (let i = 0; i < roots.length; i++) {\n          let root = roots[i];\n          (false && !(root) && assert('has root', root));\n          if (root.destroyed) {\n            // add to the list of roots to be removed\n            // they will be removed from `this._roots` later\n            removedRoots.push(root);\n\n            // skip over roots that have been marked as destroyed\n            continue;\n          }\n\n          // when processing non-initial reflush loops,\n          // do not process more roots than needed\n          if (i >= initialRootsLength) {\n            continue;\n          }\n          root.render();\n        }\n        this.#lastRevision = valueForTag(CURRENT_TAG);\n      });\n    } while (roots.length > initialRootsLength);\n\n    // remove any roots that were destroyed during this transaction\n    while (removedRoots.length) {\n      this.#removeRoot(removedRoots.pop(), renderer);\n    }\n  }\n  #removeRoot(root, renderer) {\n    let roots = this.#roots;\n    let rootIndex = roots.indexOf(root);\n    if (rootIndex !== -1) {\n      roots.splice(rootIndex, 1);\n    }\n    if (roots.length === 0) {\n      this.#deregister(renderer);\n    }\n  }\n  #register(renderer) {\n    if (!this.#registered) {\n      this.#registered = true;\n      register(renderer);\n    }\n  }\n  #deregister(renderer) {\n    if (this.#registered) {\n      this.#registered = false;\n      deregister(renderer);\n    }\n  }\n  scheduleRevalidate(renderer) {\n    _backburner.scheduleOnce('render', this, this.revalidate, renderer);\n  }\n  isValid() {\n    return this.#destroyed || this.#roots.length === 0 || validateTag(CURRENT_TAG, this.#lastRevision);\n  }\n  revalidate(renderer) {\n    if (this.isValid()) {\n      return;\n    }\n    this.#renderRootsTransaction(renderer);\n  }\n  clearAllRoots(renderer) {\n    let roots = this.#roots;\n    for (let root of roots) {\n      destroy(root);\n    }\n    this.#removedRoots.length = 0;\n    this.#roots = [];\n    this.#deregister(renderer);\n  }\n}\n\n/**\n * The returned object from `renderComponent`\n * @public\n * @module @ember/renderer\n */\n\nfunction intoTarget(into) {\n  if ('element' in into) {\n    return into;\n  } else {\n    return {\n      element: into,\n      nextSibling: null\n    };\n  }\n}\n\n/**\n * Render a component into a DOM element.\n *\n * @method renderComponent\n * @static\n * @for @ember/renderer\n * @param {Object} component The component to render.\n * @param {Object} options\n * @param {Element} options.into Where to render the component in to.\n * @param {Object} [options.owner] Optionally specify the owner to use. This will be used for injections, and overall cleanup.\n * @param {Object} [options.env] Optional renderer configuration\n * @param {Object} [options.args] Optionally pass args in to the component. These may be reactive as long as it is an object or object-like\n * @public\n */\nfunction renderComponent(\n/**\n * The component definition to render.\n *\n * Any component that has had its manager registered is valid.\n * For the component-types that ship with ember, manager registration\n * does not need to be worried about.\n */\ncomponent, {\n  owner = {},\n  env,\n  into,\n  args\n}) {\n  /**\n   * SAFETY: we should figure out what we need out of a `document` and narrow the API.\n   *         this exercise should also end up beginning to define what we need for CLI rendering (or to other outputs)\n   */\n  let document = env && 'document' in env ? env?.['document'] : globalThis.document;\n\n  // Reuse renderer per owner to avoid creating multiple EvaluationContexts\n  // which can cause tracking frame conflicts\n  let renderer = RENDERER_CACHE.get(owner);\n  if (!renderer) {\n    renderer = BaseRenderer.strict(owner, document, {\n      ...env,\n      isInteractive: env?.isInteractive ?? true,\n      hasDOM: env && 'hasDOM' in env ? Boolean(env?.['hasDOM']) : true\n    });\n    RENDERER_CACHE.set(owner, renderer);\n  }\n\n  /**\n   * Replace all contents, if we've rendered multiple times.\n   *\n   * https://github.com/emberjs/rfcs/pull/1099/files#diff-2b962105b9083ca84579cdc957f27f49407440f3c5078083fa369ec18cc46da8R365\n   *\n   * We could later add an option to not do this behavior\n   *\n   * NOTE: destruction is async\n   */\n  let existing = RENDER_CACHE.get(into);\n  if (existing?.glimmerResult) {\n    existing.result.destroy();\n  }\n  /**\n   * We can only replace the inner HTML the first time.\n   * Because destruction is async, it won't be safe to\n   * do this again, and we'll have to rely on the above destroy.\n   */\n  if (!existing && into instanceof Element) {\n    into.innerHTML = '';\n  }\n\n  /**\n   * If there's an existing render result with valid bounds, use its\n   * firstNode as the nextSibling so that new content is inserted at\n   * the same DOM position. This ensures stable ordering when multiple\n   * renderComponent calls target the same element and one is re-invoked\n   * (e.g., due to tracked dependency changes).\n   *\n   * The old content's DOM nodes are still present (destruction is async),\n   * so firstNode() is a valid position reference. The new content is placed\n   * BEFORE the old content. When the old content is eventually destroyed\n   * (async clear of bounds), the new content remains in the correct position.\n   */\n  let renderTarget = into;\n  if (existing?.glimmerResult) {\n    let parentElement = into instanceof Element ? into : into.element;\n    let firstNode = existing.glimmerResult.firstNode();\n    renderTarget = {\n      element: parentElement,\n      nextSibling: firstNode\n    };\n  }\n  let root = renderer.render(component, {\n    into: renderTarget,\n    args\n  });\n  let innerResult = root.result;\n\n  // Destroying the root (rather than only its inner result) also removes it\n  // from the renderer, so nothing keeps it -- or `into` -- alive afterwards.\n  associateDestroyableChild(owner, root);\n  let result = {\n    destroy() {\n      destroy(root);\n    }\n  };\n  RENDER_CACHE.set(into, {\n    result,\n    glimmerResult: innerResult\n  });\n  return result;\n}\nconst RENDER_CACHE = new WeakMap();\nconst RENDERER_CACHE = new WeakMap();\nclass BaseRenderer {\n  static strict(owner, document, options) {\n    return new BaseRenderer(owner, {\n      hasDOM: hasDOM,\n      ...options\n    }, document, new ResolverImpl(), clientBuilder);\n  }\n  state;\n  constructor(owner, envOptions, document, resolver, builder) {\n    let sharedArtifacts = artifacts();\n\n    /**\n     * SAFETY: are there consequences for being looser with *this* owner?\n     *         the public API for `owner` is kinda `Partial<InternalOwner>`\n     *         aka: implement only what you need.\n     *         But for actual ember apps, you *need* to implement everything\n     *         an app needs (which will actually change and become less over time)\n     */\n    let env = new EmberEnvironmentDelegate(owner, envOptions.isInteractive);\n    let options = runtimeOptions({\n      document\n    }, env, sharedArtifacts, resolver);\n    let context = new EvaluationContextImpl(sharedArtifacts, heap => new RuntimeOpImpl(heap), options);\n    this.state = RendererState.create({\n      owner,\n      context,\n      builder\n    }, this);\n  }\n  get debugRenderTree() {\n    let {\n      debugRenderTree\n    } = this.state.env;\n    return debugRenderTree;\n  }\n  isValid() {\n    return this.state.isValid();\n  }\n  destroy() {\n    destroy(this);\n  }\n  render(component, options) {\n    const root = new ComponentRootState(this.state, component, {\n      args: options.args,\n      into: intoTarget(options.into)\n    });\n    return this.state.renderRoot(root, this);\n  }\n  rerender() {\n    this.state.scheduleRevalidate(this);\n  }\n}\n\nexport { BaseRenderer as B, ResolverImpl as R, _resetRenderers as _, renderSettled as a, errorLoopTransaction as e, renderComponent as r };\n","import { h as hasDOM } from './has-dom-DdQORPzI.js';\n\nconst window = hasDOM ? self : null;\nconst location = hasDOM ? self.location : null;\nconst history = hasDOM ? self.history : null;\nconst userAgent = hasDOM ? self.navigator.userAgent : 'Lynx (textmode)';\nconst isChrome = hasDOM ? typeof chrome === 'object' && !(typeof opera === 'object') : false;\nconst isFirefox = hasDOM ? /Firefox|FxiOS/.test(userAgent) : false;\n\nconst environment = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({\n\t__proto__: null,\n\thasDOM,\n\thistory,\n\tisChrome,\n\tisFirefox,\n\tlocation,\n\tuserAgent,\n\twindow\n}, Symbol.toStringTag, { value: 'Module' }));\n\nexport { isFirefox as a, environment as e, history as h, isChrome as i, location as l, userAgent as u, window as w };\n","/**\n@module @ember/template\n*/\n\n/**\n  A wrapper around a string that has been marked as \"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 trusted using the `trustHTML()` function.\n\n  2. The only public API for getting a `TrustedHTML` is calling `trustHTML()`. 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 `trustHTML` 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 { trustHTML } from '@ember/template';\n\n  let someTrustedOrSanitizedString = \"<div>Hello!</div>\"\n\n  trustHTML(someTrustedorSanitizedString);\n  ```\n\n  @for @ember/template\n  @class TrustedHTML\n  @since 6.7.0\n  @public\n */\nclass TrustedHTML {\n  __string;\n  constructor(string) {\n    this.__string = string;\n  }\n\n  /**\n    Get the string back to use as a string.\n     @public\n    @method toString\n    @returns {String} The string marked as trusted\n   */\n  toString() {\n    return `${this.__string}`;\n  }\n\n  /**\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   */\n  toHTML() {\n    return this.toString();\n  }\n}\n\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 */\nconst SafeString = TrustedHTML;\n/**\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*/\nconst htmlSafe = trustHTML;\n\n/**\n  Use this method to indicate that a string should be rendered as HTML\n  without escaping when the string is used in a template. To say this another way,\n  strings marked with `trustHTML` will not be HTML escaped.\n\n  A word of warning -   The `trustHTML` 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 - that we trust its contents to be safe. If a string contains user inputs or other untrusted\n  data, you must sanitize the string before using the `trustHTML` 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  ```glimmer-js\n  import { trustHTML } from '@ember/template';\n\n  const someTrustedOrSanitizedString = \"<div>Hello!</div>\"\n\n  <template>\n    {{trustHTML someTrustedOrSanitizedString}}\n  </template>\n  ```\n\n  @method trustHTML\n  @for @ember/template\n  @param str {String} The string to treat as trusted.\n  @static\n  @return {TrustedHTML} A string that will not be HTML escaped by Handlebars.\n  @public\n */\nfunction trustHTML(str) {\n  if (str === null || str === undefined) {\n    str = '';\n  } else if (typeof str !== 'string') {\n    str = String(str);\n  }\n  return new TrustedHTML(str);\n}\n\n/**\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*/\nconst isHTMLSafe = isTrustedHTML;\n\n/**\n  Detects if a string was decorated using `trustHTML`.\n\n  ```javascript\n  import { trustHTML, isTrustedHTML } from '@ember/template';\n\n  let plainString = 'plain string';\n  let safeString = trustHTML('<div>someValue</div>');\n\n  isTrustedHTML(plainString); // false\n  isTrustedHTML(safeString);  // true\n  ```\n\n  @method isTrustedHTML\n  @for @ember/template\n  @static\n  @return {Boolean} `true` if the string was decorated with `htmlSafe`, `false` otherwise.\n  @public\n*/\nfunction isTrustedHTML(str) {\n  return (\n    // SAFETY: cast `as SafeString` only present to make this check \"legal\"; we\n    // can further improve this by changing the behavior to do an `in` check\n    // instead, but that's worth landing as a separate change for bisecting if\n    // it happens to have an impact on e.g. perf.\n    str !== null && typeof str === 'object' && typeof str.toHTML === 'function'\n  );\n}\n\nexport { SafeString as S, TrustedHTML as T, isTrustedHTML as a, htmlSafe as h, isHTMLSafe as i, trustHTML as t };\n","import { a as assign } from './object-utils-AijlD-JH.js';\nimport { b as EMPTY_STRING_ARRAY, E as EMPTY_ARRAY, e as enumerate, r as reverse } from './array-utils-CZQxrdD3.js';\nimport { r as VM_PRIMITIVE_OP, aD as encodeHandle, at as VM_CONCAT_OP, ak as VM_GET_VARIABLE_OP, q as VM_CONSTANT_REFERENCE_OP, ao as VM_GET_PROPERTY_OP, ar as VM_HAS_BLOCK_OP, aq as VM_SPREAD_BLOCK_OP, E as VM_COMPILE_BLOCK_OP, as as VM_HAS_BLOCK_PARAMS_OP, au as VM_IF_INLINE_OP, av as VM_NOT_OP, aw as VM_GET_DYNAMIC_VAR_OP, ax as VM_LOG_OP, y as VM_FETCH_OP, u as VM_PRIMITIVE_REFERENCE_OP, aj as VM_HELPER_OP, v as VM_DUP_OP, ai as VM_DYNAMIC_HELPER_OP, w as VM_POP_OP, _ as VM_CAPTURE_ARGS_OP, ah as VM_CURRY_OP, aE as isSmallInt, aF as encodeImmediate, m as VM_PUSH_DYNAMIC_SCOPE_OP, z as VM_BIND_DYNAMIC_SCOPE_OP, n as VM_POP_DYNAMIC_SCOPE_OP, ap as VM_GET_BLOCK_OP, F as VM_INVOKE_YIELD_OP, l as VM_POP_SCOPE_OP, k as VM_CHILD_SCOPE_OP, al as VM_SET_VARIABLE_OP, o as VM_CONSTANT_OP, D as VM_PUSH_BLOCK_SCOPE_OP, C as VM_PUSH_SYMBOL_TABLE_OP, Z as VM_PUSH_EMPTY_ARGS_OP, Y as VM_PUSH_ARGS_OP, A as VM_ENTER_OP, H as VM_JUMP_EQ_OP, B as VM_EXIT_OP, G as VM_JUMP_UNLESS_OP, W as VM_PUSH_COMPONENT_DEFINITION_OP, x as VM_LOAD_OP, a2 as VM_BEGIN_COMPONENT_TRANSACTION_OP, a0 as VM_CREATE_COMPONENT_OP, a1 as VM_REGISTER_COMPONENT_DESTRUCTOR_OP, a7 as VM_GET_COMPONENT_SELF_OP, an as VM_ROOT_SCOPE_OP, am as VM_SET_BLOCK_OP, af as VM_DID_RENDER_LAYOUT_OP, ag as VM_COMMIT_COMPONENT_TRANSACTION_OP, $ as VM_PREPARE_ARGS_OP, ab as VM_VIRTUAL_ROOT_SCOPE_OP, ac as VM_SET_NAMED_VARIABLES_OP, ad as VM_SET_BLOCKS_OP, ae as VM_INVOKE_COMPONENT_LAYOUT_OP, a3 as VM_PUT_COMPONENT_OPERATIONS_OP, M as VM_OPEN_DYNAMIC_ELEMENT_OP, a6 as VM_DID_CREATE_ELEMENT_OP, P as VM_FLUSH_ELEMENT_OP, Q as VM_CLOSE_ELEMENT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, X as VM_RESOLVE_DYNAMIC_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, a9 as VM_GET_COMPONENT_LAYOUT_OP, aa as VM_POPULATE_LAYOUT_OP, a8 as VM_GET_COMPONENT_TAG_NAME_OP, K as VM_COMMENT_OP, R as VM_MODIFIER_OP, S as VM_DYNAMIC_MODIFIER_OP, T as VM_STATIC_ATTR_OP, a5 as VM_STATIC_COMPONENT_ATTR_OP, U as VM_DYNAMIC_ATTR_OP, a4 as VM_COMPONENT_ATTR_OP, L as VM_OPEN_ELEMENT_OP, az as VM_DEBUGGER_OP, J as VM_TEXT_OP, b as VM_ASSERT_SAME_OP, ay as VM_DYNAMIC_CONTENT_TYPE_OP, N as VM_PUSH_REMOTE_ELEMENT_OP, O as VM_POP_REMOTE_ELEMENT_OP, I as VM_TO_BOOLEAN_OP, aA as VM_ENTER_LIST_OP, aC as VM_ITERATE_OP, aB as VM_EXIT_LIST_OP } from './syscall-ops-CkPT1Kfx.js';\nimport { b as VM_RETURN_OP, i as isMachineOp, f as VM_PUSH_FRAME_OP, e as VM_POP_FRAME_OP, d as VM_INVOKE_VIRTUAL_OP, c as VM_JUMP_OP, a as VM_RETURN_TO_OP, V as VM_INVOKE_STATIC_OP } from './vm-ops-ImHv0Wtg.js';\nimport { e as expect, u as unwrap, S as StackImpl, a as isPresentArray, d as dict } from './collections-GpG8lT2g.js';\nimport { a as assert } from './assert-Zqc4wiAV.js';\nimport { InstructionEncoderImpl } from '../@glimmer/encoder/index.js';\nimport { A as ARG_SHIFT, M as MACHINE_MASK, I as InternalComponentCapabilities } from './flags-BZxHQ0yn.js';\nimport { o as opcodes } from './opcodes-DDajoGhq.js';\nimport { a as $v0, f as $fp, $ as $s0, g as $sp, h as $s1 } from './registers-C_W2qYHJ.js';\nimport { ContentType } from '../@glimmer/vm/index.js';\nimport { h as hasCapability } from './capabilities-BuVYh-vx.js';\n\nfunction isGetLikeTuple(opcode) {\n  return Array.isArray(opcode) && opcode.length === 2;\n}\nfunction makeResolutionTypeVerifier(typeToVerify) {\n  return opcode => {\n    if (!isGetLikeTuple(opcode)) return false;\n    let type = opcode[0];\n    return type === opcodes.GetStrictKeyword || type === opcodes.GetLexicalSymbol || type === typeToVerify;\n  };\n}\nconst isGetFreeComponent = makeResolutionTypeVerifier(opcodes.GetFreeAsComponentHead);\nconst isGetFreeModifier = makeResolutionTypeVerifier(opcodes.GetFreeAsModifierHead);\nconst isGetFreeHelper = makeResolutionTypeVerifier(opcodes.GetFreeAsHelperHead);\nconst isGetFreeComponentOrHelper = makeResolutionTypeVerifier(opcodes.GetFreeAsComponentOrHelperHead);\nfunction assertResolverInvariants(meta) {\n  return meta;\n}\n\n/**\n * <Foo/>\n * <Foo></Foo>\n * <Foo @arg={{true}} />\n */\nfunction resolveComponent(resolver, constants, meta, [, expr, then]) {\n  assert(isGetFreeComponent(expr));\n  let type = expr[0];\n  if (type === opcodes.GetLexicalSymbol) {\n    let {\n      scopeValues,\n      owner,\n      symbols: {\n        lexical\n      }\n    } = meta;\n    let definition = expect(scopeValues)[expr[1]];\n    then(constants.component(definition, expect(owner), false, lexical?.at(expr[1])));\n  } else {\n    let {\n      symbols: {\n        upvars\n      },\n      owner\n    } = assertResolverInvariants(meta);\n    let name = unwrap(upvars[expr[1]]);\n    let definition = resolver?.lookupComponent?.(name, owner) ?? null;\n\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    then(constants.resolvedComponent(definition, name));\n  }\n}\n\n/**\n * (helper)\n * (helper arg)\n */\nfunction resolveHelper(resolver, constants, meta, [, expr, then]) {\n  assert(isGetFreeHelper(expr));\n  let type = expr[0];\n  if (type === opcodes.GetLexicalSymbol) {\n    let {\n      scopeValues\n    } = meta;\n    let definition = expect(scopeValues)[expr[1]];\n    then(constants.helper(definition));\n  } else if (type === opcodes.GetStrictKeyword) {\n    then(lookupBuiltInHelper(expr, resolver, meta, constants));\n  } else {\n    let {\n      symbols: {\n        upvars\n      },\n      owner\n    } = assertResolverInvariants(meta);\n    let name = unwrap(upvars[expr[1]]);\n    let helper = resolver?.lookupHelper?.(name, owner) ?? null;\n\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    then(constants.helper(helper, name));\n  }\n}\n\n/**\n * <div {{modifier}}/>\n * <div {{modifier arg}}/>\n * <Foo {{modifier}}/>\n */\nfunction resolveModifier(resolver, constants, meta, [, expr, then]) {\n  assert(isGetFreeModifier(expr));\n  let type = expr[0];\n  if (type === opcodes.GetLexicalSymbol) {\n    let {\n      scopeValues,\n      symbols: {\n        lexical\n      }\n    } = meta;\n    let definition = expect(scopeValues)[expr[1]];\n    then(constants.modifier(definition, lexical?.at(expr[1]) ?? undefined));\n  } else if (type === opcodes.GetStrictKeyword) {\n    let {\n      symbols: {\n        upvars\n      }\n    } = assertResolverInvariants(meta);\n    let name = unwrap(upvars[expr[1]]);\n    let modifier = resolver?.lookupBuiltInModifier?.(name) ?? null;\n\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    then(constants.modifier(modifier, name));\n  } else {\n    let {\n      symbols: {\n        upvars\n      },\n      owner\n    } = assertResolverInvariants(meta);\n    let name = unwrap(upvars[expr[1]]);\n    let modifier = resolver?.lookupModifier?.(name, owner) ?? null;\n\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    then(constants.modifier(modifier));\n  }\n}\n\n/**\n * {{component-or-helper arg}}\n */\nfunction resolveComponentOrHelper(resolver, constants, meta, [, expr, {\n  ifComponent,\n  ifHelper\n}]) {\n  assert(isGetFreeComponentOrHelper(expr));\n  let type = expr[0];\n  if (type === opcodes.GetLexicalSymbol) {\n    let {\n      scopeValues,\n      owner,\n      symbols: {\n        lexical\n      }\n    } = meta;\n    let definition = expect(scopeValues)[expr[1]];\n    let component = constants.component(definition, expect(owner), true, lexical?.at(expr[1]));\n    if (component !== null) {\n      ifComponent(component);\n      return;\n    }\n    let helper = constants.helper(definition, null, true);\n    ifHelper(expect(helper));\n  } else if (type === opcodes.GetStrictKeyword) {\n    ifHelper(lookupBuiltInHelper(expr, resolver, meta, constants));\n  } else {\n    let {\n      symbols: {\n        upvars\n      },\n      owner\n    } = assertResolverInvariants(meta);\n    let name = unwrap(upvars[expr[1]]);\n    let definition = resolver?.lookupComponent?.(name, owner) ?? null;\n    if (definition !== null) {\n      ifComponent(constants.resolvedComponent(definition, name));\n    } else {\n      let helper = resolver?.lookupHelper?.(name, owner) ?? null;\n\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      ifHelper(constants.helper(helper, name));\n    }\n  }\n}\n\n/**\n * {{maybeHelperOrComponent}}\n */\nfunction resolveOptionalComponentOrHelper(resolver, constants, meta, [, expr, {\n  ifComponent,\n  ifHelper,\n  ifValue\n}]) {\n  assert(isGetFreeComponentOrHelper(expr));\n  let type = expr[0];\n  if (type === opcodes.GetLexicalSymbol) {\n    let {\n      scopeValues,\n      owner,\n      symbols: {\n        lexical\n      }\n    } = meta;\n    let definition = expect(scopeValues)[expr[1]];\n    if (typeof definition !== 'function' && (typeof definition !== 'object' || definition === null)) {\n      // The value is not an object, so it can't be a component or helper.\n      ifValue(constants.value(definition));\n      return;\n    }\n    let component = constants.component(definition, expect(owner), true, lexical?.at(expr[1]));\n    if (component !== null) {\n      ifComponent(component);\n      return;\n    }\n    let helper = constants.helper(definition, null, true);\n    if (helper !== null) {\n      ifHelper(helper);\n      return;\n    }\n    ifValue(constants.value(definition));\n  } else if (type === opcodes.GetStrictKeyword) {\n    ifHelper(lookupBuiltInHelper(expr, resolver, meta, constants));\n  } else {\n    let {\n      symbols: {\n        upvars\n      },\n      owner\n    } = assertResolverInvariants(meta);\n    let name = unwrap(upvars[expr[1]]);\n    let definition = resolver?.lookupComponent?.(name, owner) ?? null;\n    if (definition !== null) {\n      ifComponent(constants.resolvedComponent(definition, name));\n      return;\n    }\n    let helper = resolver?.lookupHelper?.(name, owner) ?? null;\n    if (helper !== null) {\n      ifHelper(constants.helper(helper, name));\n    }\n  }\n}\nfunction lookupBuiltInHelper(expr, resolver, meta, constants, type) {\n  let {\n    symbols: {\n      upvars\n    }\n  } = assertResolverInvariants(meta);\n  let name = unwrap(upvars[expr[1]]);\n  let helper = resolver?.lookupBuiltInHelper?.(name) ?? null;\n\n  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n  return constants.helper(helper, name);\n}\n\nconst HighLevelResolutionOpcodes = {\n  Modifier: 1003,\n  Component: 1004,\n  Helper: 1005,\n  ComponentOrHelper: 1007,\n  OptionalComponentOrHelper: 1008,\n  Local: 1010,\n  TemplateLocal: 1011\n};\nconst HighLevelBuilderOpcodes = {\n  Label: 1000,\n  StartLabels: 1001,\n  StopLabels: 1002,\n  Start: 1000};\n\nconst HighLevelOperands = {\n  Label: 1,\n  IsStrictMode: 2,\n  DebugSymbols: 3,\n  Block: 4,\n  StdLib: 5,\n  NonSmallInt: 6,\n  SymbolTable: 7,\n  Layout: 8\n};\nfunction labelOperand(value) {\n  return {\n    type: HighLevelOperands.Label,\n    value\n  };\n}\nfunction debugSymbolsOperand(locals, upvars, lexical) {\n  return {\n    type: HighLevelOperands.DebugSymbols,\n    value: {\n      locals,\n      upvars,\n      lexical\n    }\n  };\n}\nfunction isStrictMode() {\n  return {\n    type: HighLevelOperands.IsStrictMode,\n    value: undefined\n  };\n}\nfunction blockOperand(value) {\n  return {\n    type: HighLevelOperands.Block,\n    value\n  };\n}\nfunction stdlibOperand(value) {\n  return {\n    type: HighLevelOperands.StdLib,\n    value\n  };\n}\nfunction nonSmallIntOperand(value) {\n  return {\n    type: HighLevelOperands.NonSmallInt,\n    value\n  };\n}\nfunction symbolTableOperand(value) {\n  return {\n    type: HighLevelOperands.SymbolTable,\n    value\n  };\n}\nfunction layoutOperand(value) {\n  return {\n    type: HighLevelOperands.Layout,\n    value\n  };\n}\n\nclass Labels {\n  labels = dict();\n  targets = [];\n  label(name, index) {\n    this.labels[name] = index;\n  }\n  target(at, target) {\n    this.targets.push({\n      at,\n      target\n    });\n  }\n  patch(heap) {\n    let {\n      targets,\n      labels\n    } = this;\n    for (const {\n      at,\n      target\n    } of targets) {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      let address = labels[target] - at;\n      assert(heap.getbyaddr(at) === -1);\n      heap.setbyaddr(at, address);\n    }\n  }\n}\nfunction encodeOp(encoder, context, meta, op) {\n  let {\n    program: {\n      constants\n    },\n    resolver\n  } = context;\n  if (isBuilderOpcode(op[0])) {\n    let [type, ...operands] = op;\n    encoder.push(constants, type, ...operands);\n  } else {\n    switch (op[0]) {\n      case HighLevelBuilderOpcodes.Label:\n        return encoder.label(op[1]);\n      case HighLevelBuilderOpcodes.StartLabels:\n        return encoder.startLabels();\n      case HighLevelBuilderOpcodes.StopLabels:\n        return encoder.stopLabels();\n      case HighLevelResolutionOpcodes.Component:\n        return resolveComponent(resolver, constants, meta, op);\n      case HighLevelResolutionOpcodes.Modifier:\n        return resolveModifier(resolver, constants, meta, op);\n      case HighLevelResolutionOpcodes.Helper:\n        return resolveHelper(resolver, constants, meta, op);\n      case HighLevelResolutionOpcodes.ComponentOrHelper:\n        return resolveComponentOrHelper(resolver, constants, meta, op);\n      case HighLevelResolutionOpcodes.OptionalComponentOrHelper:\n        return resolveOptionalComponentOrHelper(resolver, constants, meta, op);\n      case HighLevelResolutionOpcodes.Local:\n        {\n          let [, freeVar, andThen] = op;\n          // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n          let name = expect(meta.symbols.upvars)[freeVar];\n          andThen(name, meta.moduleName);\n          break;\n        }\n      case HighLevelResolutionOpcodes.TemplateLocal:\n        {\n          let [, valueIndex, then] = op;\n          let value = expect(meta.scopeValues)[valueIndex];\n          then(constants.value(value));\n          break;\n        }\n      default:\n        throw new Error(`Unexpected high level opcode ${op[0]}`);\n    }\n  }\n}\nclass EncoderImpl {\n  labelsStack = new StackImpl();\n  encoder = new InstructionEncoderImpl([]);\n  errors = [];\n  handle;\n  constructor(heap, meta, stdlib) {\n    this.heap = heap;\n    this.meta = meta;\n    this.stdlib = stdlib;\n    this.handle = heap.malloc();\n  }\n  error(error) {\n    this.encoder.encode(VM_PRIMITIVE_OP, 0);\n    this.errors.push(error);\n  }\n  commit(size) {\n    let handle = this.handle;\n    this.heap.pushMachine(VM_RETURN_OP);\n    this.heap.finishMalloc(handle, size);\n    if (isPresentArray(this.errors)) {\n      return {\n        errors: this.errors,\n        handle\n      };\n    } else {\n      return handle;\n    }\n  }\n  push(constants, type, ...args) {\n    let {\n      heap\n    } = this;\n    let machine = isMachineOp(type) ? MACHINE_MASK : 0;\n    let first = type | machine | args.length << ARG_SHIFT;\n    heap.pushRaw(first);\n    for (let i = 0; i < args.length; i++) {\n      let op = args[i];\n      heap.pushRaw(this.operand(constants, op));\n    }\n  }\n  operand(constants, operand) {\n    if (typeof operand === 'number') {\n      return operand;\n    }\n    if (typeof operand === 'object' && operand !== null) {\n      if (Array.isArray(operand)) {\n        return encodeHandle(constants.array(operand));\n      } else {\n        switch (operand.type) {\n          case HighLevelOperands.Label:\n            this.currentLabels.target(this.heap.offset, operand.value);\n            return -1;\n          case HighLevelOperands.IsStrictMode:\n            return encodeHandle(constants.value(this.meta.isStrictMode));\n          case HighLevelOperands.DebugSymbols:\n            return encodeHandle(constants.value(operand.value));\n          case HighLevelOperands.Block:\n            return encodeHandle(constants.value(compilableBlock(operand.value, this.meta)));\n          case HighLevelOperands.StdLib:\n            return expect(this.stdlib)[operand.value];\n          case HighLevelOperands.NonSmallInt:\n          case HighLevelOperands.SymbolTable:\n          case HighLevelOperands.Layout:\n            return constants.value(operand.value);\n        }\n      }\n    }\n    return encodeHandle(constants.value(operand));\n  }\n  get currentLabels() {\n    return expect(this.labelsStack.current);\n  }\n  label(name) {\n    this.currentLabels.label(name, this.heap.offset + 1);\n  }\n  startLabels() {\n    this.labelsStack.push(new Labels());\n  }\n  stopLabels() {\n    let label = expect(this.labelsStack.pop());\n    label.patch(this.heap);\n  }\n}\nfunction isBuilderOpcode(op) {\n  return op < HighLevelBuilderOpcodes.Start;\n}\n\nfunction templateCompilationContext(evaluation, meta) {\n  let encoder = new EncoderImpl(evaluation.program.heap, meta, evaluation.stdlib);\n  return {\n    evaluation,\n    encoder,\n    meta\n  };\n}\n\nclass Compilers {\n  names = {};\n\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  funcs = [];\n  add(name, func) {\n    this.names[name] = this.funcs.push(func) - 1;\n  }\n  compile(op, sexp) {\n    let name = sexp[0];\n    let index = unwrap(this.names[name]);\n    let func = this.funcs[index];\n    assert(func, `expected an implementation for ${sexp[0]}`);\n    func(op, sexp);\n  }\n}\n\nconst EXPRESSIONS = new Compilers();\nEXPRESSIONS.add(opcodes.Concat, (op, [, parts]) => {\n  for (let part of parts) {\n    expr(op, part);\n  }\n  op(VM_CONCAT_OP, parts.length);\n});\nEXPRESSIONS.add(opcodes.Call, (op, [, expression, positional, named]) => {\n  if (isGetFreeHelper(expression)) {\n    op(HighLevelResolutionOpcodes.Helper, expression, handle => {\n      Call(op, handle, positional, named);\n    });\n  } else {\n    expr(op, expression);\n    CallDynamic(op, positional, named);\n  }\n});\nEXPRESSIONS.add(opcodes.Curry, (op, [, expr, type, positional, named]) => {\n  Curry(op, type, expr, positional, named);\n});\nEXPRESSIONS.add(opcodes.GetSymbol, (op, [, sym, path]) => {\n  op(VM_GET_VARIABLE_OP, sym);\n  withPath(op, path);\n});\nEXPRESSIONS.add(opcodes.GetLexicalSymbol, (op, [, sym, path]) => {\n  op(HighLevelResolutionOpcodes.TemplateLocal, sym, handle => {\n    op(VM_CONSTANT_REFERENCE_OP, handle);\n    withPath(op, path);\n  });\n});\nEXPRESSIONS.add(opcodes.GetStrictKeyword, (op, expr) => {\n  op(HighLevelResolutionOpcodes.Local, expr[1], _name => {\n    op(HighLevelResolutionOpcodes.Helper, expr, handle => {\n      Call(op, handle, null, null);\n    });\n  });\n});\nEXPRESSIONS.add(opcodes.GetFreeAsHelperHead, (op, expr) => {\n  op(HighLevelResolutionOpcodes.Local, expr[1], _name => {\n    op(HighLevelResolutionOpcodes.Helper, expr, handle => {\n      Call(op, handle, null, null);\n    });\n  });\n});\nfunction withPath(op, path) {\n  if (path === undefined || path.length === 0) return;\n  for (let i = 0; i < path.length; i++) {\n    op(VM_GET_PROPERTY_OP, path[i]);\n  }\n}\nEXPRESSIONS.add(opcodes.Undefined, op => PushPrimitiveReference(op, undefined));\nEXPRESSIONS.add(opcodes.HasBlock, (op, [, block]) => {\n  expr(op, block);\n  op(VM_HAS_BLOCK_OP);\n});\nEXPRESSIONS.add(opcodes.HasBlockParams, (op, [, block]) => {\n  expr(op, block);\n  op(VM_SPREAD_BLOCK_OP);\n  op(VM_COMPILE_BLOCK_OP);\n  op(VM_HAS_BLOCK_PARAMS_OP);\n});\nEXPRESSIONS.add(opcodes.IfInline, (op, [, condition, truthy, falsy]) => {\n  // Push in reverse order\n  expr(op, falsy);\n  expr(op, truthy);\n  expr(op, condition);\n  op(VM_IF_INLINE_OP);\n});\nEXPRESSIONS.add(opcodes.Not, (op, [, value]) => {\n  expr(op, value);\n  op(VM_NOT_OP);\n});\nEXPRESSIONS.add(opcodes.GetDynamicVar, (op, [, expression]) => {\n  expr(op, expression);\n  op(VM_GET_DYNAMIC_VAR_OP);\n});\nEXPRESSIONS.add(opcodes.Log, (op, [, positional]) => {\n  op(VM_PUSH_FRAME_OP);\n  SimpleArgs(op, positional, null, false);\n  op(VM_LOG_OP);\n  op(VM_POP_FRAME_OP);\n  op(VM_FETCH_OP, $v0);\n});\n\nfunction expr(op, expression) {\n  if (Array.isArray(expression)) {\n    EXPRESSIONS.compile(op, expression);\n  } else {\n    PushPrimitive(op, expression);\n    op(VM_PRIMITIVE_REFERENCE_OP);\n  }\n}\n\n/**\n * Push a reference onto the stack corresponding to a statically known primitive\n * @param value A JavaScript primitive (undefined, null, boolean, number or string)\n */\nfunction PushPrimitiveReference(op, value) {\n  PushPrimitive(op, value);\n  op(VM_PRIMITIVE_REFERENCE_OP);\n}\n\n/**\n * Push an encoded representation of a JavaScript primitive on the stack\n *\n * @param value A JavaScript primitive (undefined, null, boolean, number or string)\n */\nfunction PushPrimitive(op, primitive) {\n  let p = primitive;\n  if (typeof p === 'number') {\n    p = isSmallInt(p) ? encodeImmediate(p) : nonSmallIntOperand(p);\n  }\n  op(VM_PRIMITIVE_OP, p);\n}\n\n/**\n * Invoke a foreign function (a \"helper\") based on a statically known handle\n *\n * @param op The op creation function\n * @param handle A handle\n * @param positional An optional list of expressions to compile\n * @param named An optional list of named arguments (name + expression) to compile\n */\nfunction Call(op, handle, positional, named) {\n  op(VM_PUSH_FRAME_OP);\n  SimpleArgs(op, positional, named, false);\n  op(VM_HELPER_OP, handle);\n  op(VM_POP_FRAME_OP);\n  op(VM_FETCH_OP, $v0);\n}\n\n/**\n * Invoke a foreign function (a \"helper\") based on a dynamically loaded definition\n *\n * @param op The op creation function\n * @param positional An optional list of expressions to compile\n * @param named An optional list of named arguments (name + expression) to compile\n */\nfunction CallDynamic(op, positional, named, append) {\n  op(VM_PUSH_FRAME_OP);\n  SimpleArgs(op, positional, named, false);\n  op(VM_DUP_OP, $fp, 1);\n  op(VM_DYNAMIC_HELPER_OP);\n  if (append) {\n    op(VM_FETCH_OP, $v0);\n    append();\n    op(VM_POP_FRAME_OP);\n    op(VM_POP_OP, 1);\n  } else {\n    op(VM_POP_FRAME_OP);\n    op(VM_POP_OP, 1);\n    op(VM_FETCH_OP, $v0);\n  }\n}\n\n/**\n * Evaluate statements in the context of new dynamic scope entries. Move entries from the\n * stack into named entries in the dynamic scope, then evaluate the statements, then pop\n * the dynamic scope\n *\n * @param names a list of dynamic scope names\n * @param block a function that returns a list of statements to evaluate\n */\nfunction DynamicScope(op, names, block) {\n  op(VM_PUSH_DYNAMIC_SCOPE_OP);\n  op(VM_BIND_DYNAMIC_SCOPE_OP, names);\n  block();\n  op(VM_POP_DYNAMIC_SCOPE_OP);\n}\nfunction Curry(op, type, definition, positional, named) {\n  op(VM_PUSH_FRAME_OP);\n  SimpleArgs(op, positional, named, false);\n  op(VM_CAPTURE_ARGS_OP);\n  expr(op, definition);\n  op(VM_CURRY_OP, type, isStrictMode());\n  op(VM_POP_FRAME_OP);\n  op(VM_FETCH_OP, $v0);\n}\n\n/**\n * Yield to a block located at a particular symbol location.\n *\n * @param to the symbol containing the block to yield to\n * @param params optional block parameters to yield to the block\n */\nfunction YieldBlock(op, to, positional) {\n  SimpleArgs(op, positional, null, true);\n  op(VM_GET_BLOCK_OP, to);\n  op(VM_SPREAD_BLOCK_OP);\n  op(VM_COMPILE_BLOCK_OP);\n  op(VM_INVOKE_YIELD_OP);\n  op(VM_POP_SCOPE_OP);\n  op(VM_POP_FRAME_OP);\n}\n\n/**\n * Push an (optional) yieldable block onto the stack. The yieldable block must be known\n * statically at compile time.\n *\n * @param block An optional Compilable block\n */\nfunction PushYieldableBlock(op, block) {\n  PushSymbolTable(op, block && block[1]);\n  op(VM_PUSH_BLOCK_SCOPE_OP);\n  PushCompilable(op, block);\n}\n\n/**\n * Invoke a block that is known statically at compile time.\n *\n * @param block a Compilable block\n */\nfunction InvokeStaticBlock(op, block) {\n  op(VM_PUSH_FRAME_OP);\n  PushCompilable(op, block);\n  op(VM_COMPILE_BLOCK_OP);\n  op(VM_INVOKE_VIRTUAL_OP);\n  op(VM_POP_FRAME_OP);\n}\n\n/**\n * Invoke a static block, preserving some number of stack entries for use in\n * updating.\n *\n * @param block A compilable block\n * @param callerCount A number of stack entries to preserve\n */\nfunction InvokeStaticBlockWithStack(op, block, callerCount) {\n  let parameters = block[1];\n  let calleeCount = parameters.length;\n  let count = Math.min(callerCount, calleeCount);\n  if (count === 0) {\n    InvokeStaticBlock(op, block);\n    return;\n  }\n  op(VM_PUSH_FRAME_OP);\n  if (count) {\n    op(VM_CHILD_SCOPE_OP);\n    for (let i = 0; i < count; i++) {\n      op(VM_DUP_OP, $fp, callerCount - i);\n      op(VM_SET_VARIABLE_OP, parameters[i]);\n    }\n  }\n  PushCompilable(op, block);\n  op(VM_COMPILE_BLOCK_OP);\n  op(VM_INVOKE_VIRTUAL_OP);\n  if (count) {\n    op(VM_POP_SCOPE_OP);\n  }\n  op(VM_POP_FRAME_OP);\n}\nfunction PushSymbolTable(op, parameters) {\n  if (parameters !== null) {\n    op(VM_PUSH_SYMBOL_TABLE_OP, symbolTableOperand({\n      parameters\n    }));\n  } else {\n    PushPrimitive(op, null);\n  }\n}\nfunction PushCompilable(op, _block) {\n  if (_block === null) {\n    PushPrimitive(op, null);\n  } else {\n    op(VM_CONSTANT_OP, blockOperand(_block));\n  }\n}\n\n/**\n * Compile arguments, pushing an Arguments object onto the stack.\n *\n * @param args.params\n * @param args.hash\n * @param args.blocks\n * @param args.atNames\n */\nfunction CompileArgs(op, positional, named, blocks, atNames) {\n  let blockNames = blocks.names;\n  for (const name of blockNames) {\n    PushYieldableBlock(op, blocks.get(name));\n  }\n  let count = CompilePositional(op, positional);\n  let flags = count << 4;\n  if (atNames) flags |= 0b1000;\n  if (blocks.hasAny) {\n    flags |= 0b111;\n  }\n  let names = EMPTY_ARRAY;\n  if (named) {\n    names = named[0];\n    let val = named[1];\n    for (let i = 0; i < val.length; i++) {\n      expr(op, val[i]);\n    }\n  }\n  op(VM_PUSH_ARGS_OP, names, blockNames, flags);\n}\nfunction SimpleArgs(op, positional, named, atNames) {\n  if (positional === null && named === null) {\n    op(VM_PUSH_EMPTY_ARGS_OP);\n    return;\n  }\n  let count = CompilePositional(op, positional);\n  let flags = count << 4;\n  if (atNames) flags |= 0b1000;\n  let names = EMPTY_STRING_ARRAY;\n  if (named) {\n    names = named[0];\n    let val = named[1];\n    for (let i = 0; i < val.length; i++) {\n      expr(op, val[i]);\n    }\n  }\n  op(VM_PUSH_ARGS_OP, names, EMPTY_STRING_ARRAY, flags);\n}\n\n/**\n * Compile an optional list of positional arguments, which pushes each argument\n * onto the stack and returns the number of parameters compiled\n *\n * @param positional an optional list of positional arguments\n */\nfunction CompilePositional(op, positional) {\n  if (positional === null) return 0;\n  for (let i = 0; i < positional.length; i++) {\n    expr(op, positional[i]);\n  }\n  return positional.length;\n}\nfunction meta(layout) {\n  let [, locals, upvars] = layout.block;\n  let scopeRecord = layout.scope?.() ?? null;\n  return {\n    symbols: {\n      locals,\n      upvars,\n      lexical: scopeRecord ? Object.keys(scopeRecord) : undefined\n    },\n    scopeValues: scopeRecord ? Object.values(scopeRecord) : null,\n    isStrictMode: layout.isStrictMode,\n    moduleName: layout.moduleName,\n    owner: layout.owner,\n    size: locals.length\n  };\n}\n\nclass NamedBlocksImpl {\n  names;\n  constructor(blocks) {\n    this.blocks = blocks;\n    this.names = blocks ? Object.keys(blocks) : [];\n  }\n  get(name) {\n    if (!this.blocks) return null;\n    return this.blocks[name] || null;\n  }\n  has(name) {\n    let {\n      blocks\n    } = this;\n    return blocks !== null && name in blocks;\n  }\n  with(name, block) {\n    let {\n      blocks\n    } = this;\n    if (blocks) {\n      return new NamedBlocksImpl(assign({}, blocks, {\n        [name]: block\n      }));\n    } else {\n      return new NamedBlocksImpl({\n        [name]: block\n      });\n    }\n  }\n  get hasAny() {\n    return this.blocks !== null;\n  }\n}\nconst EMPTY_BLOCKS = new NamedBlocksImpl(null);\nfunction namedBlocks(blocks) {\n  if (blocks === null) {\n    return EMPTY_BLOCKS;\n  }\n  let out = dict();\n  let [keys, values] = blocks;\n  for (const [i, key] of enumerate(keys)) {\n    out[key] = unwrap(values[i]);\n  }\n  return new NamedBlocksImpl(out);\n}\n\nfunction SwitchCases(op, bootstrap, matcher) {\n  // Setup the switch DSL\n  let clauses = [];\n  let count = 0;\n  function when(match, callback) {\n    clauses.push({\n      match,\n      callback,\n      label: `CLAUSE${count++}`\n    });\n  }\n\n  // Call the callback\n  matcher(when);\n\n  // Emit the opcodes for the switch\n  op(VM_ENTER_OP, 1);\n  bootstrap();\n  op(HighLevelBuilderOpcodes.StartLabels);\n\n  // First, emit the jump opcodes. We don't need a jump for the last\n  // opcode, since it bleeds directly into its clause.\n  for (let clause of clauses.slice(0, -1)) {\n    op(VM_JUMP_EQ_OP, labelOperand(clause.label), clause.match);\n  }\n\n  // Enumerate the clauses in reverse order. Earlier matches will\n  // require fewer checks.\n  for (let i = clauses.length - 1; i >= 0; i--) {\n    let clause = unwrap(clauses[i]);\n    op(HighLevelBuilderOpcodes.Label, clause.label);\n    op(VM_POP_OP, 1);\n    clause.callback();\n\n    // The first match is special: it is placed directly before the END\n    // label, so no additional jump is needed at the end of it.\n    if (i !== 0) {\n      op(VM_JUMP_OP, labelOperand('END'));\n    }\n  }\n  op(HighLevelBuilderOpcodes.Label, 'END');\n  op(HighLevelBuilderOpcodes.StopLabels);\n  op(VM_EXIT_OP);\n}\n\n/**\n * A convenience for pushing some arguments on the stack and\n * running some code if the code needs to be re-executed during\n * updating execution if some of the arguments have changed.\n *\n * # Initial Execution\n *\n * The `args` function should push zero or more arguments onto\n * the stack and return the number of arguments pushed.\n *\n * The `body` function provides the instructions to execute both\n * during initial execution and during updating execution.\n *\n * Internally, this function starts by pushing a new frame, so\n * that the body can return and sets the return point ($ra) to\n * the ENDINITIAL label.\n *\n * It then executes the `args` function, which adds instructions\n * responsible for pushing the arguments for the block to the\n * stack. These arguments will be restored to the stack before\n * updating execution.\n *\n * Next, it adds the Enter opcode, which marks the current position\n * in the DOM, and remembers the current $pc (the next instruction)\n * as the first instruction to execute during updating execution.\n *\n * Next, it runs `body`, which adds the opcodes that should\n * execute both during initial execution and during updating execution.\n * If the `body` wishes to finish early, it should Jump to the\n * `FINALLY` label.\n *\n * Next, it adds the FINALLY label, followed by:\n *\n * - the Exit opcode, which finalizes the marked DOM started by the\n *   Enter opcode.\n * - the Return opcode, which returns to the current return point\n *   ($ra).\n *\n * Finally, it adds the ENDINITIAL label followed by the PopFrame\n * instruction, which restores $fp, $sp and $ra.\n *\n * # Updating Execution\n *\n * Updating execution for this `replayable` occurs if the `body` added an\n * assertion, via one of the `JumpUnless`, `JumpEq` 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 */\nfunction Replayable(op, args, body) {\n  // Start a new label frame, to give END and RETURN\n  // a unique meaning.\n\n  op(HighLevelBuilderOpcodes.StartLabels);\n  op(VM_PUSH_FRAME_OP);\n\n  // If the body invokes a block, its return will return to\n  // END. Otherwise, the return in RETURN will return to END.\n  op(VM_RETURN_TO_OP, labelOperand('ENDINITIAL'));\n\n  // Push the arguments onto the stack. The args() function\n  // tells us how many stack elements to retain for re-execution\n  // when updating.\n  let count = args();\n\n  // Start a new updating closure, remembering `count` elements\n  // from the stack. Everything after this point, and before END,\n  // will execute both initially and to update the block.\n  //\n  // The enter and exit opcodes also track the area of the DOM\n  // associated with this block. If an assertion inside the block\n  // fails (for example, the test value changes from true to false\n  // in an #if), the DOM is cleared and the program is re-executed,\n  // restoring `count` elements to the stack and executing the\n  // instructions between the enter and exit.\n  op(VM_ENTER_OP, count);\n\n  // Evaluate the body of the block. The body of the block may\n  // return, which will jump execution to END during initial\n  // execution, and exit the updating routine.\n  body();\n\n  // All execution paths in the body should run the FINALLY once\n  // they are done. It is executed both during initial execution\n  // and during updating execution.\n  op(HighLevelBuilderOpcodes.Label, 'FINALLY');\n\n  // Finalize the DOM.\n  op(VM_EXIT_OP);\n\n  // In initial execution, this is a noop: it returns to the\n  // immediately following opcode. In updating execution, this\n  // exits the updating routine.\n  op(VM_RETURN_OP);\n\n  // Cleanup code for the block. Runs on initial execution\n  // but not on updating.\n  op(HighLevelBuilderOpcodes.Label, 'ENDINITIAL');\n  op(VM_POP_FRAME_OP);\n  op(HighLevelBuilderOpcodes.StopLabels);\n}\n\n/**\n * A specialized version of the `replayable` convenience that allows the\n * caller to provide different code based upon whether the item at\n * the top of the stack is true or false.\n *\n * As in `replayable`, the `ifTrue` and `ifFalse` code can invoke `return`.\n *\n * During the initial execution, a `return` will continue execution\n * in the cleanup code, which finalizes the current DOM block and pops\n * the current frame.\n *\n * During the updating execution, a `return` will exit the updating\n * routine, as it can reuse the DOM block and is always only a single\n * frame deep.\n */\nfunction ReplayableIf(op, args, ifTrue, ifFalse) {\n  return Replayable(op, args, () => {\n    // If the conditional is false, jump to the ELSE label.\n    op(VM_JUMP_UNLESS_OP, labelOperand('ELSE'));\n    // Otherwise, execute the code associated with the true branch.\n    ifTrue();\n    // We're done, so return. In the initial execution, this runs\n    // the cleanup code. In the updating VM, it exits the updating\n    // routine.\n    op(VM_JUMP_OP, labelOperand('FINALLY'));\n    op(HighLevelBuilderOpcodes.Label, 'ELSE');\n\n    // If the conditional is false, and code associatied ith the\n    // false branch was provided, execute it. If there was no code\n    // associated with the false branch, jumping to the else statement\n    // has no other behavior.\n    if (ifFalse !== undefined) {\n      ifFalse();\n    }\n  });\n}\n\nconst ATTRS_BLOCK = '&attrs';\n\n// {{component}}\n\n// <Component>\n\n// chokepoint\n\nfunction InvokeComponent(op, component, _elementBlock, positional, named, _blocks) {\n  let {\n    compilable,\n    capabilities,\n    handle\n  } = component;\n  let elementBlock = _elementBlock ? [_elementBlock, []] : null;\n  let blocks = namedBlocks(_blocks);\n  if (compilable) {\n    op(VM_PUSH_COMPONENT_DEFINITION_OP, handle);\n    InvokeStaticComponent(op, {\n      capabilities: capabilities,\n      layout: compilable,\n      elementBlock,\n      positional,\n      named,\n      blocks\n    });\n  } else {\n    op(VM_PUSH_COMPONENT_DEFINITION_OP, handle);\n    InvokeNonStaticComponent(op, {\n      capabilities: capabilities,\n      elementBlock,\n      positional,\n      named,\n      atNames: true,\n      blocks\n    });\n  }\n}\nfunction InvokeDynamicComponent(op, definition, _elementBlock, positional, named, _blocks, atNames, curried) {\n  let elementBlock = _elementBlock ? [_elementBlock, []] : null;\n  let blocks = namedBlocks(_blocks);\n  Replayable(op, () => {\n    expr(op, definition);\n    op(VM_DUP_OP, $sp, 0);\n    return 2;\n  }, () => {\n    op(VM_JUMP_UNLESS_OP, labelOperand('ELSE'));\n    if (curried) {\n      op(VM_RESOLVE_CURRIED_COMPONENT_OP);\n    } else {\n      op(VM_RESOLVE_DYNAMIC_COMPONENT_OP, isStrictMode());\n    }\n    op(VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP);\n    InvokeNonStaticComponent(op, {\n      capabilities: true,\n      elementBlock,\n      positional,\n      named,\n      atNames,\n      blocks\n    });\n    op(HighLevelBuilderOpcodes.Label, 'ELSE');\n  });\n}\nfunction InvokeStaticComponent(op, {\n  capabilities,\n  layout,\n  elementBlock,\n  positional,\n  named,\n  blocks\n}) {\n  let {\n    symbolTable\n  } = layout;\n  let bailOut = hasCapability(capabilities, InternalComponentCapabilities.prepareArgs);\n  if (bailOut) {\n    InvokeNonStaticComponent(op, {\n      capabilities,\n      elementBlock,\n      positional,\n      named,\n      atNames: true,\n      blocks,\n      layout\n    });\n    return;\n  }\n  op(VM_FETCH_OP, $s0);\n  op(VM_DUP_OP, $sp, 1);\n  op(VM_LOAD_OP, $s0);\n  op(VM_PUSH_FRAME_OP);\n\n  // Setup arguments\n  let {\n    symbols\n  } = symbolTable;\n\n  // 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  let blockSymbols = [];\n  let argSymbols = [];\n  let argNames = [];\n\n  // First we push the blocks onto the stack\n  let blockNames = blocks.names;\n\n  // Starting with the attrs block, if it exists and is referenced in the component\n  if (elementBlock !== null) {\n    let symbol = symbols.indexOf(ATTRS_BLOCK);\n    if (symbol !== -1) {\n      PushYieldableBlock(op, elementBlock);\n      blockSymbols.push(symbol);\n    }\n  }\n\n  // Followed by the other blocks, if they exist and are referenced in the component.\n  // Also store the index of the associated symbol.\n  for (const name of blockNames) {\n    let symbol = symbols.indexOf(`&${name}`);\n    if (symbol !== -1) {\n      PushYieldableBlock(op, blocks.get(name));\n      blockSymbols.push(symbol);\n    }\n  }\n\n  // Next up we have arguments. If the component has the `createArgs` capability,\n  // then it wants access to the arguments in JavaScript. We can't know whether\n  // or not an argument is used, so we have to give access to all of them.\n  if (hasCapability(capabilities, InternalComponentCapabilities.createArgs)) {\n    // First we push positional arguments\n    let count = CompilePositional(op, positional);\n\n    // setup the flags with the count of positionals, and to indicate that atNames\n    // are used\n    let flags = count << 4;\n    flags |= 0b1000;\n    let names = EMPTY_STRING_ARRAY;\n\n    // Next, if named args exist, push them all. If they have an associated symbol\n    // in the invoked component (e.g. they are used within its template), we push\n    // that symbol. If not, we still push the expression as it may be used, and\n    // we store the symbol as -1 (this is used later).\n    if (named !== null) {\n      names = named[0];\n      let val = named[1];\n      for (let i = 0; i < val.length; i++) {\n        let symbol = symbols.indexOf(unwrap(names[i]));\n        expr(op, val[i]);\n        argSymbols.push(symbol);\n      }\n    }\n\n    // Finally, push the VM arguments themselves. These args won't need access\n    // to blocks (they aren't accessible from userland anyways), so we push an\n    // empty array instead of the actual block names.\n    op(VM_PUSH_ARGS_OP, names, EMPTY_STRING_ARRAY, flags);\n\n    // And push an extra pop operation to remove the args before we begin setting\n    // variables on the local context\n    argSymbols.push(-1);\n  } else if (named !== null) {\n    // If the component does not have the `createArgs` capability, then the only\n    // expressions we need to push onto the stack are those that are actually\n    // referenced in the template of the invoked component (e.g. have symbols).\n    let names = named[0];\n    let val = named[1];\n    for (let i = 0; i < val.length; i++) {\n      let name = unwrap(names[i]);\n      let symbol = symbols.indexOf(name);\n      if (symbol !== -1) {\n        expr(op, val[i]);\n        argSymbols.push(symbol);\n        argNames.push(name);\n      }\n    }\n  }\n  op(VM_BEGIN_COMPONENT_TRANSACTION_OP, $s0);\n  if (hasCapability(capabilities, InternalComponentCapabilities.dynamicScope)) {\n    op(VM_PUSH_DYNAMIC_SCOPE_OP);\n  }\n  if (hasCapability(capabilities, InternalComponentCapabilities.createInstance)) {\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    op(VM_CREATE_COMPONENT_OP, blocks.has('default') | 0);\n  }\n  op(VM_REGISTER_COMPONENT_DESTRUCTOR_OP, $s0);\n  if (hasCapability(capabilities, InternalComponentCapabilities.createArgs)) {\n    op(VM_GET_COMPONENT_SELF_OP, $s0);\n  } else {\n    op(VM_GET_COMPONENT_SELF_OP, $s0, argNames);\n  }\n\n  // Setup the new root scope for the component\n  op(VM_ROOT_SCOPE_OP, symbols.length + 1, Object.keys(blocks).length > 0 ? 1 : 0);\n\n  // Pop the self reference off the stack and set it to the symbol for `this`\n  // in the new scope. This is why all subsequent symbols are increased by one.\n  op(VM_SET_VARIABLE_OP, 0);\n\n  // Going in reverse, now we pop the args/blocks off the stack, starting with\n  // arguments, and assign them to their symbols in the new scope.\n  for (const symbol of reverse(argSymbols)) {\n    // for (let i = argSymbols.length - 1; i >= 0; i--) {\n    //   let symbol = argSymbols[i];\n\n    if (symbol === -1) {\n      // The expression was not bound to a local symbol, it was only pushed to be\n      // used with VM args in the javascript side\n      op(VM_POP_OP, 1);\n    } else {\n      op(VM_SET_VARIABLE_OP, symbol + 1);\n    }\n  }\n\n  // if any positional params exist, pop them off the stack as well\n  if (positional !== null) {\n    op(VM_POP_OP, positional.length);\n  }\n\n  // Finish up by popping off and assigning blocks\n  for (const symbol of reverse(blockSymbols)) {\n    op(VM_SET_BLOCK_OP, symbol + 1);\n  }\n  op(VM_CONSTANT_OP, layoutOperand(layout));\n  op(VM_COMPILE_BLOCK_OP);\n  op(VM_INVOKE_VIRTUAL_OP);\n  op(VM_DID_RENDER_LAYOUT_OP, $s0);\n  op(VM_POP_FRAME_OP);\n  op(VM_POP_SCOPE_OP);\n  if (hasCapability(capabilities, InternalComponentCapabilities.dynamicScope)) {\n    op(VM_POP_DYNAMIC_SCOPE_OP);\n  }\n  op(VM_COMMIT_COMPONENT_TRANSACTION_OP);\n  op(VM_LOAD_OP, $s0);\n}\nfunction InvokeNonStaticComponent(op, {\n  capabilities,\n  elementBlock,\n  positional,\n  named,\n  atNames,\n  blocks: namedBlocks,\n  layout\n}) {\n  let bindableBlocks = Boolean(namedBlocks);\n  let bindableAtNames = capabilities === true || hasCapability(capabilities, InternalComponentCapabilities.prepareArgs) || named?.[0].length !== 0;\n  let blocks = namedBlocks.with('attrs', elementBlock);\n  op(VM_FETCH_OP, $s0);\n  op(VM_DUP_OP, $sp, 1);\n  op(VM_LOAD_OP, $s0);\n  op(VM_PUSH_FRAME_OP);\n  CompileArgs(op, positional, named, blocks, atNames);\n  op(VM_PREPARE_ARGS_OP, $s0);\n  invokePreparedComponent(op, blocks.has('default'), bindableBlocks, bindableAtNames, () => {\n    if (layout) {\n      op(VM_PUSH_SYMBOL_TABLE_OP, symbolTableOperand(layout.symbolTable));\n      op(VM_CONSTANT_OP, layoutOperand(layout));\n      op(VM_COMPILE_BLOCK_OP);\n    } else {\n      op(VM_GET_COMPONENT_LAYOUT_OP, $s0);\n    }\n    op(VM_POPULATE_LAYOUT_OP, $s0);\n  });\n  op(VM_LOAD_OP, $s0);\n}\nfunction WrappedComponent(op, layout, attrsBlockNumber) {\n  op(HighLevelBuilderOpcodes.StartLabels);\n  WithSavedRegister(op, $s1, () => {\n    op(VM_GET_COMPONENT_TAG_NAME_OP, $s0);\n    op(VM_PRIMITIVE_REFERENCE_OP);\n    op(VM_DUP_OP, $sp, 0);\n  });\n  op(VM_JUMP_UNLESS_OP, labelOperand('BODY'));\n  op(VM_FETCH_OP, $s1);\n  op(VM_PUT_COMPONENT_OPERATIONS_OP);\n  op(VM_OPEN_DYNAMIC_ELEMENT_OP);\n  op(VM_DID_CREATE_ELEMENT_OP, $s0);\n  YieldBlock(op, attrsBlockNumber, null);\n  op(VM_FLUSH_ELEMENT_OP);\n  op(HighLevelBuilderOpcodes.Label, 'BODY');\n  InvokeStaticBlock(op, [layout.block[0], []]);\n  op(VM_FETCH_OP, $s1);\n  op(VM_JUMP_UNLESS_OP, labelOperand('END'));\n  op(VM_CLOSE_ELEMENT_OP);\n  op(HighLevelBuilderOpcodes.Label, 'END');\n  op(VM_LOAD_OP, $s1);\n  op(HighLevelBuilderOpcodes.StopLabels);\n}\nfunction invokePreparedComponent(op, hasBlock, bindableBlocks, bindableAtNames, populateLayout = null) {\n  op(VM_BEGIN_COMPONENT_TRANSACTION_OP, $s0);\n  op(VM_PUSH_DYNAMIC_SCOPE_OP);\n\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  op(VM_CREATE_COMPONENT_OP, hasBlock | 0);\n\n  // this has to run after createComponent to allow\n  // for late-bound layouts, but a caller is free\n  // to populate the layout earlier if it wants to\n  // and do nothing here.\n  if (populateLayout) {\n    populateLayout();\n  }\n  op(VM_REGISTER_COMPONENT_DESTRUCTOR_OP, $s0);\n  op(VM_GET_COMPONENT_SELF_OP, $s0);\n  op(VM_VIRTUAL_ROOT_SCOPE_OP, $s0);\n  op(VM_SET_VARIABLE_OP, 0);\n  if (bindableAtNames) op(VM_SET_NAMED_VARIABLES_OP, $s0);\n  if (bindableBlocks) op(VM_SET_BLOCKS_OP, $s0);\n  op(VM_POP_OP, 1);\n  op(VM_INVOKE_COMPONENT_LAYOUT_OP, $s0);\n  op(VM_DID_RENDER_LAYOUT_OP, $s0);\n  op(VM_POP_FRAME_OP);\n  op(VM_POP_SCOPE_OP);\n  op(VM_POP_DYNAMIC_SCOPE_OP);\n  op(VM_COMMIT_COMPONENT_TRANSACTION_OP);\n}\nfunction InvokeBareComponent(op) {\n  op(VM_FETCH_OP, $s0);\n  op(VM_DUP_OP, $sp, 1);\n  op(VM_LOAD_OP, $s0);\n  op(VM_PUSH_FRAME_OP);\n  op(VM_PUSH_EMPTY_ARGS_OP);\n  op(VM_PREPARE_ARGS_OP, $s0);\n  invokePreparedComponent(op, false, false, true, () => {\n    op(VM_GET_COMPONENT_LAYOUT_OP, $s0);\n    op(VM_POPULATE_LAYOUT_OP, $s0);\n  });\n  op(VM_LOAD_OP, $s0);\n}\nfunction WithSavedRegister(op, register, block) {\n  op(VM_FETCH_OP, register);\n  block();\n  op(VM_LOAD_OP, register);\n}\n\nconst STATEMENTS = new Compilers();\nconst INFLATE_ATTR_TABLE = ['class', 'id', 'value', 'name', 'type', 'style', 'href'];\nconst INFLATE_TAG_TABLE = ['div', 'span', 'p', 'a'];\nfunction inflateTagName(tagName) {\n  return typeof tagName === 'string' ? tagName : INFLATE_TAG_TABLE[tagName];\n}\nfunction inflateAttrName(attrName) {\n  return typeof attrName === 'string' ? attrName : INFLATE_ATTR_TABLE[attrName];\n}\nSTATEMENTS.add(opcodes.Comment, (op, sexp) => op(VM_COMMENT_OP, sexp[1]));\nSTATEMENTS.add(opcodes.CloseElement, op => op(VM_CLOSE_ELEMENT_OP));\nSTATEMENTS.add(opcodes.FlushElement, op => op(VM_FLUSH_ELEMENT_OP));\nSTATEMENTS.add(opcodes.Modifier, (op, [, expression, positional, named]) => {\n  if (isGetFreeModifier(expression)) {\n    op(HighLevelResolutionOpcodes.Modifier, expression, handle => {\n      op(VM_PUSH_FRAME_OP);\n      SimpleArgs(op, positional, named, false);\n      op(VM_MODIFIER_OP, handle);\n      op(VM_POP_FRAME_OP);\n    });\n  } else {\n    expr(op, expression);\n    op(VM_PUSH_FRAME_OP);\n    SimpleArgs(op, positional, named, false);\n    op(VM_DUP_OP, $fp, 1);\n    op(VM_DYNAMIC_MODIFIER_OP);\n    op(VM_POP_FRAME_OP);\n  }\n});\nSTATEMENTS.add(opcodes.StaticAttr, (op, [, name, value, namespace]) => {\n  op(VM_STATIC_ATTR_OP, inflateAttrName(name), value, namespace ?? null);\n});\nSTATEMENTS.add(opcodes.StaticComponentAttr, (op, [, name, value, namespace]) => {\n  op(VM_STATIC_COMPONENT_ATTR_OP, inflateAttrName(name), value, namespace ?? null);\n});\nSTATEMENTS.add(opcodes.DynamicAttr, (op, [, name, value, namespace]) => {\n  expr(op, value);\n  op(VM_DYNAMIC_ATTR_OP, inflateAttrName(name), false, namespace ?? null);\n});\nSTATEMENTS.add(opcodes.TrustingDynamicAttr, (op, [, name, value, namespace]) => {\n  expr(op, value);\n  op(VM_DYNAMIC_ATTR_OP, inflateAttrName(name), true, namespace ?? null);\n});\nSTATEMENTS.add(opcodes.ComponentAttr, (op, [, name, value, namespace]) => {\n  expr(op, value);\n  op(VM_COMPONENT_ATTR_OP, inflateAttrName(name), false, namespace ?? null);\n});\nSTATEMENTS.add(opcodes.TrustingComponentAttr, (op, [, name, value, namespace]) => {\n  expr(op, value);\n  op(VM_COMPONENT_ATTR_OP, inflateAttrName(name), true, namespace ?? null);\n});\nSTATEMENTS.add(opcodes.OpenElement, (op, [, tag]) => {\n  op(VM_OPEN_ELEMENT_OP, inflateTagName(tag));\n});\nSTATEMENTS.add(opcodes.OpenElementWithSplat, (op, [, tag]) => {\n  op(VM_PUT_COMPONENT_OPERATIONS_OP);\n  op(VM_OPEN_ELEMENT_OP, inflateTagName(tag));\n});\nSTATEMENTS.add(opcodes.Component, (op, [, expr, elementBlock, named, blocks]) => {\n  if (isGetFreeComponent(expr)) {\n    op(HighLevelResolutionOpcodes.Component, expr, component => {\n      InvokeComponent(op, component, elementBlock, null, named, blocks);\n    });\n  } else {\n    // otherwise, the component name was an expression, so resolve the expression\n    // and invoke it as a dynamic component\n    InvokeDynamicComponent(op, expr, elementBlock, null, named, blocks, true, true);\n  }\n});\nSTATEMENTS.add(opcodes.Yield, (op, [, to, params]) => YieldBlock(op, to, params));\nSTATEMENTS.add(opcodes.AttrSplat, (op, [, to]) => YieldBlock(op, to, null));\nSTATEMENTS.add(opcodes.Debugger, (op, [, locals, upvars, lexical]) => {\n  op(VM_DEBUGGER_OP, debugSymbolsOperand(locals, upvars, lexical));\n});\nSTATEMENTS.add(opcodes.Append, (op, [, value]) => {\n  // Special case for static values\n  if (!Array.isArray(value)) {\n    op(VM_TEXT_OP, value === null || value === undefined ? '' : String(value));\n  } else if (isGetFreeComponentOrHelper(value)) {\n    op(HighLevelResolutionOpcodes.OptionalComponentOrHelper, value, {\n      ifComponent(component) {\n        InvokeComponent(op, component, null, null, null, null);\n      },\n      ifHelper(handle) {\n        op(VM_PUSH_FRAME_OP);\n        Call(op, handle, null, null);\n        op(VM_INVOKE_STATIC_OP, stdlibOperand('cautious-non-dynamic-append'));\n        op(VM_POP_FRAME_OP);\n      },\n      ifValue(handle) {\n        op(VM_PUSH_FRAME_OP);\n        op(VM_CONSTANT_REFERENCE_OP, handle);\n        op(VM_INVOKE_STATIC_OP, stdlibOperand('cautious-non-dynamic-append'));\n        op(VM_POP_FRAME_OP);\n      }\n    });\n  } else if (value[0] === opcodes.Call) {\n    let [, expression, positional, named] = value;\n    if (isGetFreeComponentOrHelper(expression)) {\n      op(HighLevelResolutionOpcodes.ComponentOrHelper, expression, {\n        ifComponent(component) {\n          InvokeComponent(op, component, null, positional, hashToArgs(named), null);\n        },\n        ifHelper(handle) {\n          op(VM_PUSH_FRAME_OP);\n          Call(op, handle, positional, named);\n          op(VM_INVOKE_STATIC_OP, stdlibOperand('cautious-non-dynamic-append'));\n          op(VM_POP_FRAME_OP);\n        }\n      });\n    } else {\n      SwitchCases(op, () => {\n        expr(op, expression);\n        op(VM_DYNAMIC_CONTENT_TYPE_OP);\n      }, when => {\n        when(ContentType.Component, () => {\n          op(VM_ASSERT_SAME_OP);\n          op(VM_RESOLVE_CURRIED_COMPONENT_OP);\n          op(VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP);\n          InvokeNonStaticComponent(op, {\n            capabilities: true,\n            elementBlock: null,\n            positional,\n            named,\n            atNames: false,\n            blocks: namedBlocks(null)\n          });\n        });\n        when(ContentType.Helper, () => {\n          CallDynamic(op, positional, named, () => {\n            op(VM_INVOKE_STATIC_OP, stdlibOperand('cautious-non-dynamic-append'));\n          });\n        });\n      });\n    }\n  } else {\n    op(VM_PUSH_FRAME_OP);\n    expr(op, value);\n    op(VM_INVOKE_STATIC_OP, stdlibOperand('cautious-append'));\n    op(VM_POP_FRAME_OP);\n  }\n});\nSTATEMENTS.add(opcodes.TrustingAppend, (op, [, value]) => {\n  if (!Array.isArray(value)) {\n    op(VM_TEXT_OP, value === null || value === undefined ? '' : String(value));\n  } else {\n    op(VM_PUSH_FRAME_OP);\n    expr(op, value);\n    op(VM_INVOKE_STATIC_OP, stdlibOperand('trusting-append'));\n    op(VM_POP_FRAME_OP);\n  }\n});\nSTATEMENTS.add(opcodes.Block, (op, [, expr, positional, named, blocks]) => {\n  if (isGetFreeComponent(expr)) {\n    op(HighLevelResolutionOpcodes.Component, expr, component => {\n      InvokeComponent(op, component, null, positional, hashToArgs(named), blocks);\n    });\n  } else {\n    InvokeDynamicComponent(op, expr, null, positional, named, blocks, false, false);\n  }\n});\nSTATEMENTS.add(opcodes.InElement, (op, [, block, guid, destination, insertBefore]) => {\n  ReplayableIf(op, () => {\n    expr(op, guid);\n    if (insertBefore === undefined) {\n      PushPrimitiveReference(op, undefined);\n    } else {\n      expr(op, insertBefore);\n    }\n    expr(op, destination);\n    op(VM_DUP_OP, $sp, 0);\n    return 4;\n  }, () => {\n    op(VM_PUSH_REMOTE_ELEMENT_OP);\n    InvokeStaticBlock(op, block);\n    op(VM_POP_REMOTE_ELEMENT_OP);\n  });\n});\nSTATEMENTS.add(opcodes.If, (op, [, condition, block, inverse]) => ReplayableIf(op, () => {\n  expr(op, condition);\n  op(VM_TO_BOOLEAN_OP);\n  return 1;\n}, () => {\n  InvokeStaticBlock(op, block);\n}, inverse ? () => {\n  InvokeStaticBlock(op, inverse);\n} : undefined));\nSTATEMENTS.add(opcodes.Each, (op, [, value, key, block, inverse]) => Replayable(op, () => {\n  if (key) {\n    expr(op, key);\n  } else {\n    PushPrimitiveReference(op, null);\n  }\n  expr(op, value);\n  return 2;\n}, () => {\n  op(VM_ENTER_LIST_OP, labelOperand('BODY'), labelOperand('ELSE'));\n  op(VM_PUSH_FRAME_OP);\n  op(VM_DUP_OP, $fp, 1);\n  op(VM_RETURN_TO_OP, labelOperand('ITER'));\n  op(HighLevelBuilderOpcodes.Label, 'ITER');\n  op(VM_ITERATE_OP, labelOperand('BREAK'));\n  op(HighLevelBuilderOpcodes.Label, 'BODY');\n  InvokeStaticBlockWithStack(op, block, 2);\n  op(VM_POP_OP, 2);\n  op(VM_JUMP_OP, labelOperand('FINALLY'));\n  op(HighLevelBuilderOpcodes.Label, 'BREAK');\n  op(VM_POP_FRAME_OP);\n  op(VM_EXIT_LIST_OP);\n  op(VM_JUMP_OP, labelOperand('FINALLY'));\n  op(HighLevelBuilderOpcodes.Label, 'ELSE');\n  if (inverse) {\n    InvokeStaticBlock(op, inverse);\n  }\n}));\nSTATEMENTS.add(opcodes.Let, (op, [, positional, block]) => {\n  let count = CompilePositional(op, positional);\n  InvokeStaticBlockWithStack(op, block, count);\n});\nSTATEMENTS.add(opcodes.WithDynamicVars, (op, [, named, block]) => {\n  if (named) {\n    let [names, expressions] = named;\n    CompilePositional(op, expressions);\n    DynamicScope(op, names, () => {\n      InvokeStaticBlock(op, block);\n    });\n  } else {\n    InvokeStaticBlock(op, block);\n  }\n});\nSTATEMENTS.add(opcodes.InvokeComponent, (op, [, expr, positional, named, blocks]) => {\n  if (isGetFreeComponent(expr)) {\n    op(HighLevelResolutionOpcodes.Component, expr, component => {\n      InvokeComponent(op, component, null, positional, hashToArgs(named), blocks);\n    });\n  } else {\n    InvokeDynamicComponent(op, expr, null, positional, named, blocks, false, false);\n  }\n});\nfunction hashToArgs(hash) {\n  if (hash === null) return null;\n  let names = hash[0].map(key => `@${key}`);\n  return [names, hash[1]];\n}\n\nconst PLACEHOLDER_HANDLE = -1;\nclass CompilableTemplateImpl {\n  static {\n  }\n  compiled = new WeakMap();\n  constructor(statements, meta,\n  // Part of CompilableTemplate\n  symbolTable,\n  // Used for debugging\n  moduleName = 'plain block') {\n    this.statements = statements;\n    this.meta = meta;\n    this.symbolTable = symbolTable;\n    this.moduleName = moduleName;\n  }\n\n  // Part of CompilableTemplate\n  compile(context) {\n    return maybeCompile(this, context);\n  }\n}\nfunction compilable(layout, moduleName) {\n  let [statements, symbols] = layout.block;\n  return new CompilableTemplateImpl(statements, meta(layout), {\n    symbols\n  }, moduleName);\n}\nfunction maybeCompile(compilable, context) {\n  if (compilable.compiled.has(context)) {\n    return compilable.compiled.get(context);\n  }\n  compilable.compiled.set(context, PLACEHOLDER_HANDLE);\n  let {\n    statements,\n    meta\n  } = compilable;\n  let result = compileStatements(statements, meta, context);\n  compilable.compiled.set(context, result);\n  return result;\n}\nfunction compileStatements(statements, meta, syntaxContext) {\n  let sCompiler = STATEMENTS;\n  let context = templateCompilationContext(syntaxContext, meta);\n  let {\n    encoder,\n    evaluation\n  } = context;\n  function pushOp(...op) {\n    encodeOp(encoder, evaluation, meta, op);\n  }\n  for (const statement of statements) {\n    sCompiler.compile(pushOp, statement);\n  }\n  let handle = context.encoder.commit(meta.size);\n  return handle;\n}\nfunction compilableBlock(block, containing) {\n  return new CompilableTemplateImpl(block[0], containing, {\n    parameters: block[1] || EMPTY_ARRAY\n  });\n}\n\nclass WrappedBuilder {\n  symbolTable;\n  compiled = null;\n  attrsBlockNumber;\n  meta;\n  constructor(layout, moduleName) {\n    this.layout = layout;\n    this.moduleName = moduleName;\n    let {\n      block\n    } = layout;\n    let [, symbols] = block;\n    symbols = symbols.slice();\n\n    // ensure ATTRS_BLOCK is always included (only once) in the list of symbols\n    let attrsBlockIndex = symbols.indexOf(ATTRS_BLOCK);\n    if (attrsBlockIndex === -1) {\n      this.attrsBlockNumber = symbols.push(ATTRS_BLOCK);\n    } else {\n      this.attrsBlockNumber = attrsBlockIndex + 1;\n    }\n    this.symbolTable = {\n      symbols\n    };\n    this.meta = meta(layout);\n  }\n  compile(syntax) {\n    if (this.compiled !== null) return this.compiled;\n    let m = meta(this.layout);\n    let context = templateCompilationContext(syntax, m);\n    let {\n      encoder,\n      evaluation\n    } = context;\n    function pushOp(...op) {\n      encodeOp(encoder, evaluation, m, op);\n    }\n    WrappedComponent(pushOp, this.layout, this.attrsBlockNumber);\n    let handle = context.encoder.commit(m.size);\n    if (typeof handle !== 'number') {\n      return handle;\n    }\n    this.compiled = handle;\n    return handle;\n  }\n}\n\nlet clientId = 0;\nlet templateCacheCounters = {\n  cacheHit: 0,\n  cacheMiss: 0\n};\n\n// These interfaces are for backwards compatibility, some addons use these intimate APIs\n\n/**\n * Wraps a template js in a template module to change it into a factory\n * that handles lazy parsing the template and to create per env singletons\n * of the template.\n */\nfunction templateFactory({\n  id: templateId,\n  moduleName,\n  block,\n  scope,\n  isStrictMode\n}) {\n  // TODO(template-refactors): This should be removed in the near future, as it\n  // appears that id is unused. It is currently kept for backwards compat reasons.\n  let id = templateId || `client-${clientId++}`;\n\n  // TODO: This caches JSON serialized output once in case a template is\n  // compiled by multiple owners, but we haven't verified if this is actually\n  // helpful. We should benchmark this in the future.\n  let parsedBlock;\n  let ownerlessTemplate = null;\n  let templateCache = new WeakMap();\n  let factory = owner => {\n    if (parsedBlock === undefined) {\n      parsedBlock = JSON.parse(block);\n    }\n    if (owner === undefined) {\n      if (ownerlessTemplate === null) {\n        templateCacheCounters.cacheMiss++;\n        ownerlessTemplate = new TemplateImpl({\n          id,\n          block: parsedBlock,\n          moduleName,\n          owner: null,\n          scope,\n          isStrictMode\n        });\n      } else {\n        templateCacheCounters.cacheHit++;\n      }\n      return ownerlessTemplate;\n    }\n    let result = templateCache.get(owner);\n    if (result === undefined) {\n      templateCacheCounters.cacheMiss++;\n      result = new TemplateImpl({\n        id,\n        block: parsedBlock,\n        moduleName,\n        owner,\n        scope,\n        isStrictMode\n      });\n      templateCache.set(owner, result);\n    } else {\n      templateCacheCounters.cacheHit++;\n    }\n    return result;\n  };\n  factory.__id = id;\n  factory.__meta = {\n    moduleName\n  };\n  return factory;\n}\nclass TemplateImpl {\n  result = 'ok';\n  layout = null;\n  wrappedLayout = null;\n  constructor(parsedLayout) {\n    this.parsedLayout = parsedLayout;\n  }\n  get moduleName() {\n    return this.parsedLayout.moduleName;\n  }\n  get id() {\n    return this.parsedLayout.id;\n  }\n\n  // TODO(template-refactors): This should be removed in the near future, it is\n  // only being exposed for backwards compatibility\n  get referrer() {\n    return {\n      moduleName: this.parsedLayout.moduleName,\n      owner: this.parsedLayout.owner\n    };\n  }\n  asLayout() {\n    if (this.layout) return this.layout;\n    return this.layout = compilable(assign({}, this.parsedLayout), this.moduleName);\n  }\n  asWrappedLayout() {\n    if (this.wrappedLayout) return this.wrappedLayout;\n    return this.wrappedLayout = new WrappedBuilder(assign({}, this.parsedLayout), this.moduleName);\n  }\n}\n\nexport { CallDynamic as C, EMPTY_BLOCKS as E, InvokeStaticBlock as I, SwitchCases as S, WrappedBuilder as W, templateCacheCounters as a, compileStatements as b, compilable as c, InvokeStaticBlockWithStack as d, templateCompilationContext as e, EncoderImpl as f, encodeOp as g, InvokeBareComponent as h, invokePreparedComponent as i, meta as m, templateFactory as t };\n","const VM_PUSH_FRAME_OP = 0;\nconst VM_POP_FRAME_OP = 1;\nconst VM_INVOKE_VIRTUAL_OP = 2;\nconst VM_INVOKE_STATIC_OP = 3;\nconst VM_JUMP_OP = 4;\nconst VM_RETURN_OP = 5;\nconst VM_RETURN_TO_OP = 6;\nfunction isMachineOp(value) {\n  return value >= 0 && value <= 15;\n}\n\nexport { VM_INVOKE_STATIC_OP as V, VM_RETURN_TO_OP as a, VM_RETURN_OP as b, VM_JUMP_OP as c, VM_INVOKE_VIRTUAL_OP as d, VM_POP_FRAME_OP as e, VM_PUSH_FRAME_OP as f, isMachineOp as i };\n","import { getOwner } from '../@ember/-internals/owner/index.js';\nimport { c as computed, d as defineProperty } from './computed-ZvOk7SJQ.js';\nimport { i as isElementDescriptor } from './decorator-DcvVDSJV.js';\n\nlet DEBUG_INJECTION_FUNCTIONS;\n\n/**\n @module ember\n @private\n */\n\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*/\n// Decorator factory (with args)\n// (Also matches non-decorator form, types may be incorrect for this.)\n\n// Non-decorator\n\n// Decorator (without args)\n\n// Catch-all for service and controller injections\n\nfunction inject(type, ...args) {\n  let elementDescriptor;\n  let name;\n  if (isElementDescriptor(args)) {\n    elementDescriptor = args;\n  } else if (typeof args[0] === 'string') {\n    name = args[0];\n  }\n  let getInjection = function (propertyName) {\n    let owner = getOwner(this) || this.container; // fallback to `container` for backwards compat\n    return owner.lookup(`${type}:${name || propertyName}`);\n  };\n  let decorator = computed({\n    get: getInjection,\n    set(keyName, value) {\n      defineProperty(this, keyName, null, value);\n    }\n  });\n  if (elementDescriptor) {\n    return decorator(elementDescriptor[0], elementDescriptor[1], elementDescriptor[2]);\n  } else {\n    return decorator;\n  }\n}\n\nexport { DEBUG_INJECTION_FUNCTIONS as D, inject as i };\n","/**\n  Strongly hint runtimes to intern the provided string.\n\n  When do I need to use this function?\n\n  For the most part, never. Pre-mature optimization is bad, and often the\n  runtime does exactly what you need it to, and more often the trade-off isn't\n  worth it.\n\n  Why?\n\n  Runtimes store strings in at least 2 different representations:\n  Ropes and Symbols (interned strings). The Rope provides a memory efficient\n  data-structure for strings created from concatenation or some other string\n  manipulation like splitting.\n\n  Unfortunately checking equality of different ropes can be quite costly as\n  runtimes must resort to clever string comparison algorithms. These\n  algorithms typically cost in proportion to the length of the string.\n  Luckily, this is where the Symbols (interned strings) shine. As Symbols are\n  unique by their string content, equality checks can be done by pointer\n  comparison.\n\n  How do I know if my string is a rope or symbol?\n\n  Typically (warning general sweeping statement, but truthy in runtimes at\n  present) static strings created as part of the JS source are interned.\n  Strings often used for comparisons can be interned at runtime if some\n  criteria are met.  One of these criteria can be the size of the entire rope.\n  For example, in chrome 38 a rope longer then 12 characters will not\n  intern, nor will segments of that rope.\n\n  Some numbers: http://jsperf.com/eval-vs-keys/8\n\n  Known Trick™\n\n  @private\n  @return {String} interned version of the provided string\n*/\nfunction intern(str) {\n  let obj = Object.create(null);\n  obj[str] = 1;\n  for (let key in obj) {\n    if (key === str) {\n      return key;\n    }\n  }\n  return str;\n}\n\nexport { intern as i };\n","import { setOwner } from '../@ember/-internals/owner/index.js';\nimport { g as guidFor } from './guid-Cbq2sNV_.js';\nimport './env-DXxsTFkM.js';\nimport { assert } from '../@ember/debug/lib/assert.js';\nimport { s as setComponentTemplate } from './template-Dc_cBOoX.js';\nimport { s as setInternalComponentManager } from './api-DJnXAjon.js';\nimport { v as valueForRef, a as createConstRef } from './reference-CccCE8mJ.js';\nimport { u as untrack } from './cache-CofLhaS4.js';\n\nfunction NOOP() {}\nclass InternalComponent {\n  // Override this\n  static toString() {\n    return 'internal component';\n  }\n  constructor(owner, args, caller) {\n    this.owner = owner;\n    this.args = args;\n    this.caller = caller;\n    setOwner(this, owner);\n  }\n\n  /**\n   * The default HTML id attribute. We don't really _need_ one, this is just\n   * added for compatibility as it's hard to tell if people rely on it being\n   * present, and it doens't really hurt.\n   *\n   * However, don't rely on this internally, like passing it to `getElementId`.\n   * This can be (and often is) overriden by passing an `id` attribute on the\n   * invocation, which shadows this default id via `...attributes`.\n   */\n  get id() {\n    return guidFor(this);\n  }\n\n  /**\n   * The default HTML class attribute. Similar to the above, we don't _need_\n   * them, they are just added for compatibility as it's similarly hard to tell\n   * if people rely on it in their CSS etc, and it doens't really hurt.\n   */\n  get class() {\n    return 'ember-view';\n  }\n  validateArguments() {\n    for (let name of Object.keys(this.args.named)) {\n      if (!this.isSupportedArgument(name)) {\n        this.onUnsupportedArgument(name);\n      }\n    }\n  }\n  named(name) {\n    let ref = this.args.named[name];\n    return ref ? valueForRef(ref) : undefined;\n  }\n  positional(index) {\n    let ref = this.args.positional[index];\n    return ref ? valueForRef(ref) : undefined;\n  }\n  listenerFor(name) {\n    let listener = this.named(name);\n    if (listener) {\n      return listener;\n    } else {\n      return NOOP;\n    }\n  }\n  isSupportedArgument(_name) {\n    return false;\n  }\n  onUnsupportedArgument(_name) {}\n  toString() {\n    return `<${this.constructor}:${guidFor(this)}>`;\n  }\n}\nconst OPAQUE_CONSTRUCTOR_MAP = new WeakMap();\nfunction opaquify(constructor, template) {\n  let _opaque = {\n    // Factory interface\n    create() {\n      throw assert('Use constructor instead of create');\n    },\n    toString() {\n      return constructor.toString();\n    }\n  };\n  let opaque = _opaque;\n  OPAQUE_CONSTRUCTOR_MAP.set(opaque, constructor);\n  setInternalComponentManager(INTERNAL_COMPONENT_MANAGER, opaque);\n  setComponentTemplate(template, opaque);\n  return opaque;\n}\nfunction deopaquify(opaque) {\n  let constructor = OPAQUE_CONSTRUCTOR_MAP.get(opaque);\n  return constructor;\n}\nconst CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: true,\n  dynamicScope: false,\n  updateHook: false,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nclass InternalManager {\n  getCapabilities() {\n    return CAPABILITIES;\n  }\n  create(owner, definition, args, _env, _dynamicScope, caller) {\n    let ComponentClass = deopaquify(definition);\n    let instance = new ComponentClass(owner, args.capture(), valueForRef(caller));\n    untrack(instance['validateArguments'].bind(instance));\n    return instance;\n  }\n  didCreate() {}\n  didUpdate() {}\n  didRenderLayout() {}\n  didUpdateLayout() {}\n  getDebugName(definition) {\n    return definition.toString();\n  }\n  getSelf(instance) {\n    return createConstRef(instance);\n  }\n  getDestroyable(instance) {\n    return instance;\n  }\n}\nconst INTERNAL_COMPONENT_MANAGER = new InternalManager();\n\nexport { InternalComponent as I, opaquify as o };\n","import { j as setInternalHelperManager } from './api-DJnXAjon.js';\n\nfunction internalHelper(helper) {\n  return setInternalHelperManager(helper, {});\n}\n\nexport { internalHelper as i };\n","import { associateDestroyableChild } from '../@glimmer/destroyable/index.js';\nimport { a as getInternalHelperManager, f as hasValue, h as hasDestroyable } from './api-DJnXAjon.js';\nimport { getOwner } from '../@glimmer/owner/index.js';\nimport { e as createCache, g as getValue } from './cache-CofLhaS4.js';\nimport { E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL } from './arguments-xjTAZ6VE.js';\n\nfunction getArgs(proxy) {\n  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n  return getValue(proxy.argsCache);\n}\nclass SimpleArgsProxy {\n  argsCache;\n  constructor(context, computeArgs = () => EMPTY_ARGS) {\n    let argsCache = createCache(() => computeArgs(context));\n    {\n      this.argsCache = argsCache;\n    }\n  }\n  get named() {\n    return getArgs(this).named || EMPTY_NAMED;\n  }\n  get positional() {\n    return getArgs(this).positional || EMPTY_POSITIONAL;\n  }\n}\n\n////////////\n\nfunction invokeHelper(context, definition, computeArgs) {\n  const owner = getOwner(context);\n  const internalManager = getInternalHelperManager(definition);\n  const manager = internalManager.getDelegateFor(owner);\n  let args = new SimpleArgsProxy(context, computeArgs);\n  let bucket = manager.createHelper(definition, args);\n  let cache;\n  if (hasValue(manager)) {\n    cache = createCache(() => {\n      return manager.getValue(bucket);\n    });\n    associateDestroyableChild(context, cache);\n  } else {\n    throw new Error('TODO: unreachable, to be implemented with hasScheduledEffect');\n  }\n  if (hasDestroyable(manager)) {\n    let destroyable = manager.getDestroyable(bucket);\n    associateDestroyableChild(cache, destroyable);\n  }\n  return cache;\n}\n\nexport { invokeHelper as i };\n","import { i as isObject } from './spec-BXl1reqK.js';\n\nconst PROXIES = new WeakSet();\nfunction isProxy(value) {\n  if (isObject(value)) {\n    return PROXIES.has(value);\n  }\n  return false;\n}\nfunction setProxy(object) {\n  if (isObject(object)) {\n    PROXIES.add(object);\n  }\n}\n\nexport { isProxy as i, setProxy as s };\n","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\nexport { lookupDescriptor as l };\n","import { b as createUpdatableTag, D as DIRTY_TAG } from './cache-CofLhaS4.js';\n\n///////////\n\nconst TRACKED_TAGS = new WeakMap();\nfunction dirtyTagFor(obj, key, meta) {\n  let tags = meta === undefined ? TRACKED_TAGS.get(obj) : meta;\n\n  // No tags have been setup for this object yet, return\n  if (tags === undefined) return;\n\n  // Dirty the tag for the specific property if it exists\n  let propertyTag = tags.get(key);\n  if (propertyTag !== undefined) {\n    DIRTY_TAG(propertyTag, true);\n  }\n}\nfunction tagMetaFor(obj) {\n  let tags = TRACKED_TAGS.get(obj);\n  if (tags === undefined) {\n    tags = new Map();\n    TRACKED_TAGS.set(obj, tags);\n  }\n  return tags;\n}\nfunction tagFor(obj, key, meta) {\n  let tags = meta === undefined ? tagMetaFor(obj) : meta;\n  let tag = tags.get(key);\n  if (tag === undefined) {\n    tag = createUpdatableTag();\n    tags.set(key, tag);\n  }\n  return tag;\n}\n\nexport { tagMetaFor as a, dirtyTagFor as d, tagFor as t };\n","import { peekMeta, meta } from '../@ember/-internals/meta/lib/meta.js';\nimport { R as ROOT, o as observerListenerMetaFor, w as wrap } from './super-BBBjgF69.js';\nimport { n as nativeDescDecorator, c as isClassicDecorator, a as descriptorForDecorator, m as makeComputedDecorator } from './decorator-DcvVDSJV.js';\nimport { i as defineValue, h as defineDecorator, C as ComputedProperty } from './computed-ZvOk7SJQ.js';\nimport { e as setUnprocessedMixins } from './namespace_search-TFdmjK_a.js';\nimport { c as revalidateObservers, b as addObserver, r as removeObserver } from './observers-B1wiwQeH.js';\nimport { a as addListener, r as removeListener } from './events-3Q5Qvo6Q.js';\nimport { deprecateUntil, DEPRECATIONS } from '../@ember/-internals/deprecations/index.js';\n\n/**\n  Key for the internal Mixin constructor.\n\n  Ember's own internals are built on mixins, so they need a way to construct\n  one without triggering the mixin deprecation that `Mixin.create` emits. This\n  is deliberately a Symbol so that it does not show up as a discoverable\n  property name and cannot be reached by name from application code.\n\n  @private\n*/\nconst INTERNAL_MIXIN_CREATE = Symbol('__internal__mixin__');\n\n/**\n@module @ember/object/mixin\n*/\nconst a_concat = Array.prototype.concat;\nfunction extractAccessors(properties) {\n  if (properties !== undefined) {\n    for (let key of Object.keys(properties)) {\n      let desc = Object.getOwnPropertyDescriptor(properties, key);\n      if (desc.get !== undefined || desc.set !== undefined) {\n        Object.defineProperty(properties, key, {\n          value: nativeDescDecorator(desc)\n        });\n      }\n    }\n  }\n  return properties;\n}\nfunction concatenatedMixinProperties(concatProp, props, values, base) {\n  // reset before adding each new mixin to pickup concats from previous\n  let concats = values[concatProp] || base[concatProp];\n  if (props[concatProp]) {\n    concats = concats ? a_concat.call(concats, props[concatProp]) : props[concatProp];\n  }\n  return concats;\n}\nfunction giveDecoratorSuper(key, decorator, property, descs) {\n  if (property === true) {\n    return decorator;\n  }\n  let originalGetter = property._getter;\n  if (originalGetter === undefined) {\n    return decorator;\n  }\n  let superDesc = descs[key];\n\n  // Check to see if the super property is a decorator first, if so load its descriptor\n  let superProperty = typeof superDesc === 'function' ? descriptorForDecorator(superDesc) : superDesc;\n  if (superProperty === undefined || superProperty === true) {\n    return decorator;\n  }\n  let superGetter = superProperty._getter;\n  if (superGetter === undefined) {\n    return decorator;\n  }\n  let get = wrap(originalGetter, superGetter);\n  let set;\n  let originalSetter = property._setter;\n  let superSetter = superProperty._setter;\n  if (superSetter !== undefined) {\n    if (originalSetter !== undefined) {\n      set = wrap(originalSetter, superSetter);\n    } else {\n      // If the super property has a setter, we default to using it no matter what.\n      // This is clearly very broken and weird, but it's what was here so we have\n      // to keep it until the next major at least.\n      //\n      // TODO: Add a deprecation here.\n      set = superSetter;\n    }\n  } else {\n    set = originalSetter;\n  }\n\n  // only create a new CP if we must\n  if (get !== originalGetter || set !== originalSetter) {\n    // Since multiple mixins may inherit from the same parent, we need\n    // to clone the computed property so that other mixins do not receive\n    // the wrapped version.\n    let dependentKeys = property._dependentKeys || [];\n    let newProperty = new ComputedProperty([...dependentKeys, {\n      get,\n      set\n    }]);\n    newProperty._readOnly = property._readOnly;\n    newProperty._meta = property._meta;\n    newProperty.enumerable = property.enumerable;\n\n    // SAFETY: We passed in the impl for this class\n    return makeComputedDecorator(newProperty, ComputedProperty);\n  }\n  return decorator;\n}\nfunction giveMethodSuper(key, method, values, descs) {\n  // Methods overwrite computed properties, and do not call super to them.\n  if (descs[key] !== undefined) {\n    return method;\n  }\n\n  // Find the original method in a parent mixin\n  let superMethod = values[key];\n\n  // Only wrap the new method if the original method was a function\n  if (typeof superMethod === 'function') {\n    return wrap(method, superMethod);\n  }\n  return method;\n}\nfunction simpleMakeArray(value) {\n  if (!value) {\n    return [];\n  } else if (!Array.isArray(value)) {\n    return [value];\n  } else {\n    return value;\n  }\n}\nfunction applyConcatenatedProperties(key, value, values) {\n  let baseValue = values[key];\n  let ret = simpleMakeArray(baseValue).concat(simpleMakeArray(value));\n  return ret;\n}\nfunction applyMergedProperties(key, value, values) {\n  let baseValue = values[key];\n  if (!baseValue) {\n    return value;\n  }\n  let newBase = Object.assign({}, baseValue);\n  let hasFunction = false;\n  let props = Object.keys(value);\n  for (let prop of props) {\n    let propValue = value[prop];\n    if (typeof propValue === 'function') {\n      hasFunction = true;\n      newBase[prop] = giveMethodSuper(prop, propValue, baseValue, {});\n    } else {\n      newBase[prop] = propValue;\n    }\n  }\n  if (hasFunction) {\n    newBase._super = ROOT;\n  }\n  return newBase;\n}\nfunction mergeMixins(mixins, meta, descs, values, base, keys, keysWithSuper) {\n  let currentMixin;\n  for (let i = 0; i < mixins.length; i++) {\n    currentMixin = mixins[i];\n    if (MIXINS.has(currentMixin)) {\n      if (meta.hasMixin(currentMixin)) {\n        continue;\n      }\n      meta.addMixin(currentMixin);\n      let {\n        properties,\n        mixins\n      } = currentMixin;\n      if (properties !== undefined) {\n        mergeProps(meta, properties, descs, values, base, keys, keysWithSuper);\n      } else if (mixins !== undefined) {\n        mergeMixins(mixins, meta, descs, values, base, keys, keysWithSuper);\n        if (currentMixin instanceof Mixin && currentMixin._without !== undefined) {\n          currentMixin._without.forEach(keyName => {\n            // deleting the key means we won't process the value\n            let index = keys.indexOf(keyName);\n            if (index !== -1) {\n              keys.splice(index, 1);\n            }\n          });\n        }\n      }\n    } else {\n      mergeProps(meta, currentMixin, descs, values, base, keys, keysWithSuper);\n    }\n  }\n}\nfunction mergeProps(meta, props, descs, values, base, keys, keysWithSuper) {\n  let concats = concatenatedMixinProperties('concatenatedProperties', props, values, base);\n  let mergings = concatenatedMixinProperties('mergedProperties', props, values, base);\n  let propKeys = Object.keys(props);\n  for (let key of propKeys) {\n    let value = props[key];\n    if (value === undefined) continue;\n    if (keys.indexOf(key) === -1) {\n      keys.push(key);\n      let desc = meta.peekDescriptors(key);\n      if (desc === undefined) {\n        // If the value is a classic decorator, we don't want to actually\n        // access it, because that will execute the decorator while we're\n        // building the class.\n        if (!isClassicDecorator(value)) {\n          // The superclass did not have a CP, which means it may have\n          // observers or listeners on that property.\n          let prev = values[key] = base[key];\n          if (typeof prev === 'function') {\n            updateObserversAndListeners(base, key, prev, false);\n          }\n        }\n      } else {\n        descs[key] = desc;\n\n        // The super desc will be overwritten on descs, so save off the fact that\n        // there was a super so we know to Object.defineProperty when writing\n        // the value\n        keysWithSuper.push(key);\n        desc.teardown(base, key, meta);\n      }\n    }\n    let isFunction = typeof value === 'function';\n    if (isFunction) {\n      let desc = descriptorForDecorator(value);\n      if (desc !== undefined) {\n        // Wrap descriptor function to implement _super() if needed\n        descs[key] = giveDecoratorSuper(key, value, desc, descs);\n        values[key] = undefined;\n        continue;\n      }\n    }\n    if (concats && concats.indexOf(key) >= 0 || key === 'concatenatedProperties' || key === 'mergedProperties') {\n      value = applyConcatenatedProperties(key, value, values);\n    } else if (mergings && mergings.indexOf(key) > -1) {\n      value = applyMergedProperties(key, value, values);\n    } else if (isFunction) {\n      value = giveMethodSuper(key, value, values, descs);\n    }\n    values[key] = value;\n    descs[key] = undefined;\n  }\n}\nfunction updateObserversAndListeners(obj, key, fn, add) {\n  let meta = observerListenerMetaFor(fn);\n  if (meta === undefined) return;\n  let {\n    observers,\n    listeners\n  } = meta;\n  if (observers !== undefined) {\n    let updateObserver = add ? addObserver : removeObserver;\n    for (let path of observers.paths) {\n      updateObserver(obj, path, null, key, observers.sync);\n    }\n  }\n  if (listeners !== undefined) {\n    let updateListener = add ? addListener : removeListener;\n    for (let listener of listeners) {\n      updateListener(obj, listener, null, key);\n    }\n  }\n}\nfunction applyMixin(obj, mixins, _hideKeys = false) {\n  let descs = Object.create(null);\n  let values = Object.create(null);\n  let meta$1 = meta(obj);\n  let keys = [];\n  let keysWithSuper = [];\n  obj._super = ROOT;\n\n  // Go through all mixins and hashes passed in, and:\n  //\n  // * Handle concatenated properties\n  // * Handle merged properties\n  // * Set up _super wrapping if necessary\n  // * Set up computed property descriptors\n  // * Copying `toString` in broken browsers\n  mergeMixins(mixins, meta$1, descs, values, obj, keys, keysWithSuper);\n  for (let key of keys) {\n    let value = values[key];\n    let desc = descs[key];\n    if (value !== undefined) {\n      if (typeof value === 'function') {\n        updateObserversAndListeners(obj, key, value, true);\n      }\n      defineValue(obj, key, value, keysWithSuper.indexOf(key) !== -1, !_hideKeys);\n    } else if (desc !== undefined) {\n      defineDecorator(obj, key, desc, meta$1);\n    }\n  }\n  if (!meta$1.isPrototypeMeta(obj)) {\n    revalidateObservers(obj);\n  }\n  return obj;\n}\n\n/**\n  @method mixin\n  @param obj\n  @param mixins*\n  @return obj\n  @private\n*/\nfunction mixin(obj, ...args) {\n  applyMixin(obj, args);\n  return obj;\n}\nconst MIXINS = new WeakSet();\n\n/**\n  The `Mixin` class allows you to create mixins, whose properties can be\n  added to other classes. For instance,\n\n  ```javascript\n  import Mixin from '@ember/object/mixin';\n\n  const EditableMixin = Mixin.create({\n    edit() {\n      console.log('starting to edit');\n      this.set('isEditing', true);\n    },\n    isEditing: false\n  });\n  ```\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import EditableMixin from '../mixins/editable';\n\n  // Mix mixins into classes by passing them as the first arguments to\n  // `.extend.`\n  class Comment extends 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*/\nclass Mixin {\n  /** @internal */\n\n  /** @internal */\n  mixins;\n\n  /** @internal */\n  properties;\n\n  /** @internal */\n  ownerConstructor;\n\n  /** @internal */\n  _without;\n  /** @internal */\n  constructor(mixins, properties) {\n    MIXINS.add(this);\n    this.properties = extractAccessors(properties);\n    this.mixins = buildMixinsArray(mixins);\n    this.ownerConstructor = undefined;\n    this._without = undefined;\n  }\n\n  /**\n    @method create\n    @for @ember/object/mixin\n    @static\n    @param arguments*\n    @public\n  */\n  static create(...args) {\n    deprecateUntil(`Using mixins is deprecated. Refactor to composition patterns or class decorators.`, DEPRECATIONS.DEPRECATE_MIXINS);\n    return this[INTERNAL_MIXIN_CREATE](...args);\n  }\n\n  /** @internal */\n  static [INTERNAL_MIXIN_CREATE](...args) {\n    setUnprocessedMixins();\n    let M = this;\n    return new M(args, undefined);\n  }\n\n  // returns the mixins currently applied to the specified object\n  // TODO: Make `mixin`\n  /** @internal */\n  static mixins(obj) {\n    let meta = peekMeta(obj);\n    let ret = [];\n    if (meta === null) {\n      return ret;\n    }\n    meta.forEachMixins(currentMixin => {\n      // skip primitive mixins since these are always anonymous\n      if (!currentMixin.properties) {\n        ret.push(currentMixin);\n      }\n    });\n    return ret;\n  }\n\n  /**\n    @method reopen\n    @param arguments*\n    @private\n    @internal\n  */\n  reopen(...args) {\n    if (args.length === 0) {\n      return this;\n    }\n    if (this.properties) {\n      let currentMixin = new Mixin(undefined, this.properties);\n      this.properties = undefined;\n      this.mixins = [currentMixin];\n    } else if (!this.mixins) {\n      this.mixins = [];\n    }\n    this.mixins = this.mixins.concat(buildMixinsArray(args));\n    return this;\n  }\n\n  /**\n    @method apply\n    @param obj\n    @return applied object\n    @private\n    @internal\n  */\n  apply(obj, _hideKeys = false) {\n    // Ember.NativeArray is a normal Ember.Mixin that we mix into `Array.prototype` when prototype extensions are enabled\n    // mutating a native object prototype like this should _not_ result in enumerable properties being added (or we have significant\n    // issues with things like deep equality checks from test frameworks, or things like jQuery.extend(true, [], [])).\n    //\n    // _hideKeys disables enumerablity when applying the mixin. This is a hack, and we should stop mutating the array prototype by default 😫\n    return applyMixin(obj, [this], _hideKeys);\n  }\n\n  /** @internal */\n  applyPartial(obj) {\n    return applyMixin(obj, [this]);\n  }\n\n  /**\n    @method detect\n    @param obj\n    @return {Boolean}\n    @private\n    @internal\n  */\n  detect(obj) {\n    if (typeof obj !== 'object' || obj === null) {\n      return false;\n    }\n    if (MIXINS.has(obj)) {\n      return _detect(obj, this);\n    }\n    let meta = peekMeta(obj);\n    if (meta === null) {\n      return false;\n    }\n    return meta.hasMixin(this);\n  }\n\n  /** @internal */\n  without(...args) {\n    let ret = new Mixin([this]);\n    ret._without = args;\n    return ret;\n  }\n\n  /** @internal */\n  keys() {\n    let keys = _keys(this);\n    return keys;\n  }\n\n  /** @internal */\n  toString() {\n    return '(unknown mixin)';\n  }\n}\nfunction buildMixinsArray(mixins) {\n  let length = mixins && mixins.length || 0;\n  let m = undefined;\n  if (length > 0) {\n    m = new Array(length);\n    for (let i = 0; i < length; i++) {\n      let x = mixins[i];\n      if (MIXINS.has(x)) {\n        m[i] = x;\n      } else {\n        m[i] = new Mixin(undefined, x);\n      }\n    }\n  }\n  return m;\n}\nfunction _detect(curMixin, targetMixin, seen = new Set()) {\n  if (seen.has(curMixin)) {\n    return false;\n  }\n  seen.add(curMixin);\n  if (curMixin === targetMixin) {\n    return true;\n  }\n  let mixins = curMixin.mixins;\n  if (mixins) {\n    return mixins.some(mixin => _detect(mixin, targetMixin, seen));\n  }\n  return false;\n}\nfunction _keys(mixin, ret = new Set(), seen = new Set()) {\n  if (seen.has(mixin)) {\n    return;\n  }\n  seen.add(mixin);\n  if (mixin.properties) {\n    let props = Object.keys(mixin.properties);\n    for (let prop of props) {\n      ret.add(prop);\n    }\n  } else if (mixin.mixins) {\n    mixin.mixins.forEach(x => _keys(x, ret, seen));\n  }\n  return ret;\n}\n\nexport { INTERNAL_MIXIN_CREATE as I, Mixin as M, applyMixin as a, mixin as m };\n","import { i as isObject } from './spec-BXl1reqK.js';\n\nconst NAMES = new WeakMap();\nfunction setName(obj, name) {\n  if (isObject(obj)) NAMES.set(obj, name);\n}\nfunction getName(obj) {\n  return NAMES.get(obj);\n}\n\nexport { getName as g, setName as s };\n","import { context } from '../@ember/-internals/environment/index.js';\nimport { s as setName, g as getName } from './name-Clp4Vsod.js';\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nlet searchDisabled = false;\nconst flags = {\n  _set: 0,\n  _unprocessedNamespaces: false,\n  get unprocessedNamespaces() {\n    return this._unprocessedNamespaces;\n  },\n  set unprocessedNamespaces(v) {\n    this._set++;\n    this._unprocessedNamespaces = v;\n  }\n};\nlet unprocessedMixins = false;\nconst NAMESPACES = [];\nconst NAMESPACES_BY_ID = Object.create(null);\nfunction addNamespace(namespace) {\n  flags.unprocessedNamespaces = true;\n  NAMESPACES.push(namespace);\n}\nfunction removeNamespace(namespace) {\n  let name = getName(namespace);\n  delete NAMESPACES_BY_ID[name];\n  NAMESPACES.splice(NAMESPACES.indexOf(namespace), 1);\n  if (name in context.lookup && namespace === context.lookup[name]) {\n    context.lookup[name] = undefined;\n  }\n}\nfunction findNamespaces() {\n  if (!flags.unprocessedNamespaces) {\n    return;\n  }\n  let lookup = context.lookup;\n  let keys = Object.keys(lookup);\n  for (let key of keys) {\n    // Only process entities that start with uppercase A-Z\n    if (!isUppercase(key.charCodeAt(0))) {\n      continue;\n    }\n    let obj = tryIsNamespace(lookup, key);\n    if (obj) {\n      setName(obj, key);\n    }\n  }\n}\nfunction findNamespace(name) {\n  if (!searchDisabled) {\n    processAllNamespaces();\n  }\n  return NAMESPACES_BY_ID[name];\n}\nfunction processNamespace(namespace) {\n  _processNamespace([namespace.toString()], namespace, new Set());\n}\nfunction processAllNamespaces() {\n  let unprocessedNamespaces = flags.unprocessedNamespaces;\n  if (unprocessedNamespaces) {\n    findNamespaces();\n    flags.unprocessedNamespaces = false;\n  }\n  if (unprocessedNamespaces || unprocessedMixins) {\n    let namespaces = NAMESPACES;\n    for (let namespace of namespaces) {\n      processNamespace(namespace);\n    }\n    unprocessedMixins = false;\n  }\n}\nfunction isSearchDisabled() {\n  return searchDisabled;\n}\nfunction setSearchDisabled(flag) {\n  searchDisabled = Boolean(flag);\n}\nfunction setUnprocessedMixins() {\n  unprocessedMixins = true;\n}\nfunction _processNamespace(paths, root, seen) {\n  let idx = paths.length;\n  let id = paths.join('.');\n  NAMESPACES_BY_ID[id] = root;\n  setName(root, id);\n\n  // Loop over all of the keys in the namespace, looking for classes\n  for (let key in root) {\n    if (!hasOwnProperty.call(root, key)) {\n      continue;\n    }\n    let obj = root[key];\n\n    // If we are processing the `Ember` namespace, for example, the\n    // `paths` will start with `[\"Ember\"]`. Every iteration through\n    // the loop will update the **second** element of this list with\n    // the key, so processing `Ember.View` will make the Array\n    // `['Ember', 'View']`.\n    paths[idx] = key;\n\n    // If we have found an unprocessed class\n    if (obj && getName(obj) === void 0) {\n      // Replace the class' `toString` with the dot-separated path\n      setName(obj, paths.join('.'));\n      // Support nested namespaces\n    } else if (obj && isNamespace(obj)) {\n      // Skip aliased namespaces\n      if (seen.has(obj)) {\n        continue;\n      }\n      seen.add(obj);\n      // Process the child namespace\n      _processNamespace(paths, obj, seen);\n    }\n  }\n  paths.length = idx; // cut out last item\n}\nfunction isNamespace(obj) {\n  return obj != null && typeof obj === 'object' && obj.isNamespace;\n}\nfunction isUppercase(code) {\n  return code >= 65 && code <= 90 // A\n; // Z\n}\nfunction tryIsNamespace(lookup, prop) {\n  try {\n    let obj = lookup[prop];\n    return (obj !== null && typeof obj === 'object' || typeof obj === 'function') && obj.isNamespace && obj;\n  } catch (_e) {\n    // continue\n  }\n}\n\nexport { NAMESPACES as N, NAMESPACES_BY_ID as a, addNamespace as b, findNamespaces as c, processNamespace as d, setUnprocessedMixins as e, findNamespace as f, isSearchDisabled as i, processAllNamespaces as p, removeNamespace as r, setSearchDisabled as s };\n","import { e as expect } from './collections-GpG8lT2g.js';\nimport { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';\n\nclass CursorImpl {\n  constructor(element, nextSibling) {\n    this.element = element;\n    this.nextSibling = nextSibling;\n    setLocalDebugType('cursor', this);\n  }\n}\nclass ConcreteBounds {\n  constructor(parentNode, first, last) {\n    this.parentNode = parentNode;\n    this.first = first;\n    this.last = last;\n  }\n  parentElement() {\n    return this.parentNode;\n  }\n  firstNode() {\n    return this.first;\n  }\n  lastNode() {\n    return this.last;\n  }\n}\nfunction move(bounds, reference) {\n  let parent = bounds.parentElement();\n  let first = bounds.firstNode();\n  let last = bounds.lastNode();\n  let current = first;\n  while (true) {\n    let next = current.nextSibling;\n    parent.insertBefore(current, reference);\n    if (current === last) {\n      return next;\n    }\n    current = expect(next);\n  }\n}\nfunction clear(bounds) {\n  let parent = bounds.parentElement();\n  let first = bounds.firstNode();\n  let last = bounds.lastNode();\n  let current = first;\n  while (true) {\n    let next = current.nextSibling;\n    parent.removeChild(current);\n    if (current === last) {\n      return next;\n    }\n    current = expect(next);\n  }\n}\n\nfunction normalizeStringValue(value) {\n  if (isEmpty(value)) {\n    return '';\n  }\n  return String(value);\n}\nfunction shouldCoerce(value) {\n  return isString(value) || isEmpty(value) || typeof value === 'boolean' || typeof value === 'number';\n}\nfunction isEmpty(value) {\n  return value === null || value === undefined || typeof value.toString !== 'function';\n}\nfunction isIndexable(value) {\n  return value !== null && typeof value === 'object';\n}\nfunction isSafeString(value) {\n  return isIndexable(value) && typeof value['toHTML'] === 'function';\n}\nfunction isNode(value) {\n  return isIndexable(value) && typeof value['nodeType'] === 'number';\n}\nfunction isFragment(value) {\n  return isIndexable(value) && value['nodeType'] === 11;\n}\nfunction isString(value) {\n  return typeof value === 'string';\n}\n\nexport { ConcreteBounds as C, CursorImpl as a, isEmpty as b, clear as c, isString as d, isFragment as e, isNode as f, isSafeString as i, move as m, normalizeStringValue as n, shouldCoerce as s };\n","import { toBool } from '../@glimmer/global-context/index.js';\nimport { c as createComputeRef, v as valueForRef } from './reference-CccCE8mJ.js';\nimport { i as internalHelper } from './hash-pP7ZP_NN.js';\n\n/**\n * Performs a strict equality comparison.\n *\n * left === right\n */\nfunction eq(left, right) {\n  return left === right;\n}\n\n/**\n * Performs a strict inequality comparison.\n *\n * left !== right\n */\nfunction neq(left, right) {\n  return left !== right;\n}\n\n/**\n * Performs a greater than comparison.\n *\n * left > right\n */\nfunction gt(left, right) {\n  return left > right;\n}\n\n/**\n * Performs a greater than or equal comparison.\n *\n * left >= right\n */\nfunction gte(left, right) {\n  return left >= right;\n}\n\n/**\n * Performs a less than comparison.\n *\n * left < right\n */\nfunction lt(left, right) {\n  return left < right;\n}\n\n/**\n * Performs a less than or equal comparison.\n *\n * left <= right\n */\nfunction lte(left, right) {\n  return left <= right;\n}\n\nconst and = internalHelper(({\n  positional\n}) => {\n  return createComputeRef(() => {\n    let last;\n    for (let i = 0; i < positional.length; i++) {\n      let arg = positional[i];\n      last = arg ? valueForRef(arg) : arg;\n      if (!toBool(last)) return last;\n    }\n    return last;\n  }, null, 'and');\n});\n\nconst or = internalHelper(({\n  positional\n}) => {\n  return createComputeRef(() => {\n    let last;\n    for (let i = 0; i < positional.length; i++) {\n      let arg = positional[i];\n      last = arg ? valueForRef(arg) : arg;\n      if (toBool(last)) return last;\n    }\n    return last;\n  }, null, 'or');\n});\n\nconst not = (...args) => {\n  return !toBool(args[0]);\n};\n\nexport { and as a, gte as b, lte as c, not as d, eq as e, gt as g, lt as l, neq as n, or as o };\n","const assign = Object.assign;\nfunction values(obj) {\n  return Object.values(obj);\n}\nfunction entries(dict) {\n  return Object.entries(dict);\n}\nfunction keys(obj) {\n  return Object.keys(obj);\n}\n\nexport { assign as a, entries as e, keys as k, values as v };\n","import { E as ENV } from './env-DXxsTFkM.js';\nimport { peekMeta } from '../@ember/-internals/meta/lib/meta.js';\nimport { registerDestructor } from '../@glimmer/destroyable/index.js';\nimport { a as valueForTag, v as validateTag, k as CURRENT_TAG } from './cache-CofLhaS4.js';\nimport { a as tagMetaFor } from './meta-BJtIZDir.js';\nimport { g as getChainTagsForKey } from './chain-tags-BlsXEpE-.js';\nimport { a as addListener, r as removeListener, s as sendEvent } from './events-3Q5Qvo6Q.js';\n\nconst AFTER_OBSERVERS = ':change';\nfunction changeEvent(keyName) {\n  return keyName + AFTER_OBSERVERS;\n}\n\nconst SYNC_DEFAULT = !ENV._DEFAULT_ASYNC_OBSERVERS;\nconst SYNC_OBSERVERS = new Map();\nconst ASYNC_OBSERVERS = new Map();\n\n/**\n@module @ember/object\n*/\n\n/**\n  @method addObserver\n  @static\n  @for @ember/object/observers\n  @param obj\n  @param {String} path\n  @param {Object|Function} target\n  @param {Function|String} [method]\n  @public\n*/\nfunction addObserver(obj, path, target, method, sync = SYNC_DEFAULT) {\n  let eventName = changeEvent(path);\n  addListener(obj, eventName, target, method, false, sync);\n  let meta = peekMeta(obj);\n  if (meta === null || !(meta.isPrototypeMeta(obj) || meta.isInitializing())) {\n    activateObserver(obj, eventName, sync);\n  }\n}\n\n/**\n  @method removeObserver\n  @static\n  @for @ember/object/observers\n  @param obj\n  @param {String} path\n  @param {Object|Function} target\n  @param {Function|String} [method]\n  @public\n*/\nfunction removeObserver(obj, path, target, method, sync = SYNC_DEFAULT) {\n  let eventName = changeEvent(path);\n  let meta = peekMeta(obj);\n  if (meta === null || !(meta.isPrototypeMeta(obj) || meta.isInitializing())) {\n    deactivateObserver(obj, eventName, sync);\n  }\n  removeListener(obj, eventName, target, method);\n}\nfunction getOrCreateActiveObserversFor(target, sync) {\n  let observerMap = sync === true ? SYNC_OBSERVERS : ASYNC_OBSERVERS;\n  if (!observerMap.has(target)) {\n    observerMap.set(target, new Map());\n    registerDestructor(target, () => destroyObservers(target), true);\n  }\n  return observerMap.get(target);\n}\nfunction activateObserver(target, eventName, sync = false) {\n  let activeObservers = getOrCreateActiveObserversFor(target, sync);\n  if (activeObservers.has(eventName)) {\n    activeObservers.get(eventName).count++;\n  } else {\n    let path = eventName.substring(0, eventName.lastIndexOf(':'));\n    let tag = getChainTagsForKey(target, path, tagMetaFor(target), peekMeta(target));\n    activeObservers.set(eventName, {\n      count: 1,\n      path,\n      tag,\n      lastRevision: valueForTag(tag),\n      suspended: false\n    });\n  }\n}\nlet DEACTIVATE_SUSPENDED = false;\nlet SCHEDULED_DEACTIVATE = [];\nfunction deactivateObserver(target, eventName, sync = false) {\n  if (DEACTIVATE_SUSPENDED === true) {\n    SCHEDULED_DEACTIVATE.push([target, eventName, sync]);\n    return;\n  }\n  let observerMap = sync === true ? SYNC_OBSERVERS : ASYNC_OBSERVERS;\n  let activeObservers = observerMap.get(target);\n  if (activeObservers !== undefined) {\n    let observer = activeObservers.get(eventName);\n    observer.count--;\n    if (observer.count === 0) {\n      activeObservers.delete(eventName);\n      if (activeObservers.size === 0) {\n        observerMap.delete(target);\n      }\n    }\n  }\n}\nfunction suspendedObserverDeactivation() {\n  DEACTIVATE_SUSPENDED = true;\n}\nfunction resumeObserverDeactivation() {\n  DEACTIVATE_SUSPENDED = false;\n  for (let [target, eventName, sync] of SCHEDULED_DEACTIVATE) {\n    deactivateObserver(target, eventName, sync);\n  }\n  SCHEDULED_DEACTIVATE = [];\n}\n\n/**\n * Primarily used for cases where we are redefining a class, e.g. mixins/reopen\n * being applied later. Revalidates all the observers, resetting their tags.\n *\n * @private\n * @param target\n */\nfunction revalidateObservers(target) {\n  if (ASYNC_OBSERVERS.has(target)) {\n    ASYNC_OBSERVERS.get(target).forEach(observer => {\n      observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n      observer.lastRevision = valueForTag(observer.tag);\n    });\n  }\n  if (SYNC_OBSERVERS.has(target)) {\n    SYNC_OBSERVERS.get(target).forEach(observer => {\n      observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n      observer.lastRevision = valueForTag(observer.tag);\n    });\n  }\n}\nlet lastKnownRevision = 0;\nfunction flushAsyncObservers(_schedule) {\n  let currentRevision = valueForTag(CURRENT_TAG);\n  if (lastKnownRevision === currentRevision) {\n    return;\n  }\n  lastKnownRevision = currentRevision;\n  ASYNC_OBSERVERS.forEach((activeObservers, target) => {\n    let meta = peekMeta(target);\n    activeObservers.forEach((observer, eventName) => {\n      if (!validateTag(observer.tag, observer.lastRevision)) {\n        let sendObserver = () => {\n          try {\n            sendEvent(target, eventName, [target, observer.path], undefined, meta);\n          } finally {\n            observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n            observer.lastRevision = valueForTag(observer.tag);\n          }\n        };\n        if (_schedule) {\n          _schedule('actions', sendObserver);\n        } else {\n          sendObserver();\n        }\n      }\n    });\n  });\n}\nfunction flushSyncObservers() {\n  // When flushing synchronous observers, we know that something has changed (we\n  // only do this during a notifyPropertyChange), so there's no reason to check\n  // a global revision.\n\n  SYNC_OBSERVERS.forEach((activeObservers, target) => {\n    let meta = peekMeta(target);\n    activeObservers.forEach((observer, eventName) => {\n      if (!observer.suspended && !validateTag(observer.tag, observer.lastRevision)) {\n        try {\n          observer.suspended = true;\n          sendEvent(target, eventName, [target, observer.path], undefined, meta);\n        } finally {\n          observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n          observer.lastRevision = valueForTag(observer.tag);\n          observer.suspended = false;\n        }\n      }\n    });\n  });\n}\nfunction setObserverSuspended(target, property, suspended) {\n  let activeObservers = SYNC_OBSERVERS.get(target);\n  if (!activeObservers) {\n    return;\n  }\n  let observer = activeObservers.get(changeEvent(property));\n  if (observer) {\n    observer.suspended = suspended;\n  }\n}\nfunction destroyObservers(target) {\n  if (SYNC_OBSERVERS.size > 0) SYNC_OBSERVERS.delete(target);\n  if (ASYNC_OBSERVERS.size > 0) ASYNC_OBSERVERS.delete(target);\n}\n\nexport { ASYNC_OBSERVERS as A, SYNC_OBSERVERS as S, activateObserver as a, addObserver as b, revalidateObservers as c, flushSyncObservers as d, resumeObserverDeactivation as e, flushAsyncObservers as f, setObserverSuspended as g, removeObserver as r, suspendedObserverDeactivation as s };\n","import { g as check } from './arguments-xjTAZ6VE.js';\nimport { registerDestructor } from '../@glimmer/destroyable/index.js';\nimport { k as setInternalModifierManager } from './api-DJnXAjon.js';\nimport { v as valueForRef } from './reference-CccCE8mJ.js';\nimport { b as createUpdatableTag } from './cache-CofLhaS4.js';\n\nclass OnModifierState {\n  tag = createUpdatableTag();\n  element;\n  args;\n  listener = null;\n  constructor(element, args) {\n    this.element = element;\n    this.args = args;\n    registerDestructor(this, () => {\n      let {\n        element,\n        listener\n      } = this;\n      if (listener) {\n        let {\n          eventName,\n          callback,\n          options\n        } = listener;\n        removeEventListener(element, eventName, callback, options);\n      }\n    });\n  }\n\n  // Update this.listener if needed\n  updateListener() {\n    let {\n      element,\n      args,\n      listener\n    } = this;\n    let arg0 = args.positional[0];\n    let eventName = check(arg0 ? valueForRef(arg0) : undefined);\n    let arg1 = args.positional[1];\n    let userProvidedCallback = check(arg1 ? valueForRef(arg1) : undefined);\n    let once = undefined;\n    let passive = undefined;\n    let capture = undefined;\n    {\n      let {\n        once: _once,\n        passive: _passive,\n        capture: _capture\n      } = args.named;\n      if (_once) {\n        once = valueForRef(_once);\n      }\n      if (_passive) {\n        passive = valueForRef(_passive);\n      }\n      if (_capture) {\n        capture = valueForRef(_capture);\n      }\n    }\n    let shouldUpdate = false;\n    if (listener === null) {\n      shouldUpdate = true;\n    } else {\n      shouldUpdate = eventName !== listener.eventName || userProvidedCallback !== listener.userProvidedCallback || once !== listener.once || passive !== listener.passive || capture !== listener.capture;\n    }\n    let options = undefined;\n\n    // we want to handle both `true` and `false` because both have a meaning:\n    // https://bugs.chromium.org/p/chromium/issues/detail?id=770208\n    if (shouldUpdate) {\n      if (once !== undefined || passive !== undefined || capture !== undefined) {\n        options = {\n          once,\n          passive,\n          capture\n        };\n      }\n    }\n    if (shouldUpdate) {\n      let callback = userProvidedCallback;\n      this.listener = {\n        eventName,\n        callback,\n        userProvidedCallback,\n        once,\n        passive,\n        capture,\n        options\n      };\n      if (listener) {\n        removeEventListener(element, listener.eventName, listener.callback, listener.options);\n      }\n      addEventListener(element, eventName, callback, options);\n    }\n  }\n}\nlet adds = 0;\nlet removes = 0;\nfunction removeEventListener(element, eventName, callback, options) {\n  removes++;\n  element.removeEventListener(eventName, callback, options);\n}\nfunction addEventListener(element, eventName, callback, options) {\n  adds++;\n  element.addEventListener(eventName, callback, options);\n}\n\n/**\n @module @ember/helper\n */\n\n/**\n  The `{{on}}` modifier lets you easily add event listeners (it uses\n  [EventTarget.addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)\n  internally).\n\n  For example, if you'd like to run a function on your component when a `<button>`\n  in the components template is clicked you might do something like:\n\n  ```gjs {data-filename=\"app/components/like-post.gjs\"}\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class LikePost extends Component {\n    @action\n    saveLike() {\n      // someone likes your post!\n      // better send a request off to your server...\n    }\n    \n    <template>\n      <button {{on 'click' this.saveLike}}>Like this post!</button>\n    </template>\n  }\n  ```\n\n  ### Arguments\n\n  `{{on}}` accepts two positional arguments, and a few named arguments.\n\n  The positional arguments are:\n\n  - `event` -- the name to use when calling `addEventListener`\n  - `callback` -- the function to be passed to `addEventListener`\n\n  The named arguments are:\n\n  - capture -- a `true` value indicates that events of this type will be dispatched\n    to the registered listener before being dispatched to any EventTarget beneath it\n    in the DOM tree.\n  - once -- indicates that the listener should be invoked at most once after being\n    added. If true, the listener would be automatically removed when invoked.\n  - passive -- if `true`, indicates that the function specified by listener will never\n    call preventDefault(). If a passive listener does call preventDefault(), the user\n    agent will do nothing other than generate a console warning. See\n    [Improving scrolling performance with passive listeners](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Improving_scrolling_performance_with_passive_listeners)\n    to learn more.\n\n  The callback function passed to `{{on}}` will receive any arguments that are passed\n  to the event handler. Most commonly this would be the `event` itself.\n\n  If you would like to pass additional arguments to the function you should use\n  the `{{fn}}` helper.\n\n  For example, in our example case above if you'd like to pass in the post that\n  was being liked when the button is clicked you could do something like:\n\n  ```hbs\n  <button {{on 'click' (fn this.saveLike @post)}}>Like this post!</button>\n  ```\n\n  In this case, the `saveLike` function will receive two arguments: the click event\n  and the value of `@post`.\n\n  ### Function Context\n\n  In the example above, we used `@action` to ensure that `likePost` is\n  properly bound to the `LikePost` Component, but let's explore what happens if we\n  left out `@action`:\n\n  ```gjs {data-filename=\"app/components/like-post.gjs\"}\n  import Component from '@glimmer/component';\n\n  export default class LikePost extends Component {\n    saveLike() {\n      // ...snip...\n    }\n  }\n  ```\n\n  In this example, when the button is clicked `saveLike` will be invoked,\n  it will **not** have access to the component instance. In other\n  words, it will have no `this` context, so please make sure your functions\n  are bound (via `@action` or other means) before passing into `on`!\n\n  The `on` modifier is a keyword and does not need to be imported.\n\n  @method on\n  @static\n  @for Keywords\n  @noimport\n  @public\n  @since 3.11.0\n*/\nclass OnModifierManager {\n  getDebugName() {\n    return 'on';\n  }\n  getDebugInstance() {\n    return null;\n  }\n  get counters() {\n    return {\n      adds,\n      removes\n    };\n  }\n  create(_owner, element, _state, args) {\n    return new OnModifierState(element, args);\n  }\n  getTag({\n    tag\n  }) {\n    return tag;\n  }\n  install(state) {\n    state.updateListener();\n  }\n  update(state) {\n    state.updateListener();\n  }\n  getDestroyable(state) {\n    return state;\n  }\n}\nconst on = setInternalModifierManager(new OnModifierManager(), {});\n\nexport { on as o };\n","const opcodes = {\n  Append: 1,\n  TrustingAppend: 2,\n  Comment: 3,\n  Modifier: 4,\n  Block: 6,\n  Component: 8,\n  OpenElement: 10,\n  OpenElementWithSplat: 11,\n  FlushElement: 12,\n  CloseElement: 13,\n  StaticAttr: 14,\n  DynamicAttr: 15,\n  ComponentAttr: 16,\n  AttrSplat: 17,\n  Yield: 18,\n  TrustingDynamicAttr: 22,\n  TrustingComponentAttr: 23,\n  StaticComponentAttr: 24,\n  Debugger: 26,\n  Undefined: 27,\n  Call: 28,\n  Concat: 29,\n  GetSymbol: 30,\n  GetLexicalSymbol: 32,\n  GetStrictKeyword: 31,\n  GetFreeAsComponentOrHelperHead: 35,\n  GetFreeAsHelperHead: 37,\n  GetFreeAsModifierHead: 38,\n  GetFreeAsComponentHead: 39,\n  InElement: 40,\n  If: 41,\n  Each: 42,\n  Let: 44,\n  WithDynamicVars: 45,\n  InvokeComponent: 46,\n  HasBlock: 48,\n  HasBlockParams: 49,\n  Curry: 50,\n  Not: 51,\n  IfInline: 52,\n  GetDynamicVar: 53,\n  Log: 54\n};\n\nexport { opcodes as o };\n","import { u as unwrap } from './collections-GpG8lT2g.js';\nimport { O as OPERAND_LEN_MASK, A as ARG_SHIFT, M as MACHINE_MASK, T as TYPE_MASK } from './flags-BZxHQ0yn.js';\n\nclass RuntimeOpImpl {\n  offset = 0;\n  constructor(heap) {\n    this.heap = heap;\n  }\n  get size() {\n    let rawType = this.heap.getbyaddr(this.offset);\n    return ((rawType & OPERAND_LEN_MASK) >> ARG_SHIFT) + 1;\n  }\n  get isMachine() {\n    let rawType = this.heap.getbyaddr(this.offset);\n    return rawType & MACHINE_MASK ? 1 : 0;\n  }\n  get type() {\n    return this.heap.getbyaddr(this.offset) & TYPE_MASK;\n  }\n  get op1() {\n    return this.heap.getbyaddr(this.offset + 1);\n  }\n  get op2() {\n    return this.heap.getbyaddr(this.offset + 2);\n  }\n  get op3() {\n    return this.heap.getbyaddr(this.offset + 3);\n  }\n}\n\nconst ALLOCATED = 0;\nconst FREED = 1;\nconst PURGED = 2;\nconst POINTER = 3;\nconst PAGE_SIZE = 0x100000;\n\n/**\n * The Program 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 */\nclass ProgramHeapImpl {\n  offset = 0;\n  heap;\n  handleTable;\n  handleState;\n  constructor() {\n    this.heap = new Int32Array(PAGE_SIZE);\n    this.handleTable = [];\n    this.handleState = [];\n  }\n  entries() {\n    return this.offset;\n  }\n  pushRaw(value) {\n    this.sizeCheck();\n    this.heap[this.offset++] = value;\n  }\n  pushOp(item) {\n    this.pushRaw(item);\n  }\n  pushMachine(item) {\n    this.pushRaw(item | MACHINE_MASK);\n  }\n  sizeCheck() {\n    let {\n      heap\n    } = this;\n    if (this.offset === this.heap.length) {\n      let newHeap = new Int32Array(heap.length + PAGE_SIZE);\n      newHeap.set(heap, 0);\n      this.heap = newHeap;\n    }\n  }\n  getbyaddr(address) {\n    return unwrap(this.heap[address]);\n  }\n  setbyaddr(address, value) {\n    this.heap[address] = value;\n  }\n  malloc() {\n    // push offset, info, size\n    this.handleTable.push(this.offset);\n    return this.handleTable.length - 1;\n  }\n  finishMalloc(handle) {\n  }\n  size() {\n    return this.offset;\n  }\n\n  // It is illegal to close over this address, as compaction\n  // may move it. However, it is legal to use this address\n  // multiple times between compactions.\n  getaddr(handle) {\n    return unwrap(this.handleTable[handle]);\n  }\n  sizeof(handle) {\n    return sizeof(this.handleTable);\n  }\n  free(handle) {\n    this.handleState[handle] = FREED;\n  }\n\n  /**\n   * The heap uses the [Mark-Compact Algorithm](https://en.wikipedia.org/wiki/Mark-compact_algorithm) to shift\n   * reachable memory to the bottom of the heap and freeable\n   * memory to the top of the heap. When we have shifted all\n   * the reachable memory to the top of the heap, we move the\n   * offset to the next free position.\n   */\n  compact() {\n    let compactedSize = 0;\n    let {\n      handleTable,\n      handleState,\n      heap\n    } = this;\n    for (let i = 0; i < length; i++) {\n      let offset = unwrap(handleTable[i]);\n      let size = unwrap(handleTable[i + 1]) - unwrap(offset);\n      let state = handleState[i];\n      if (state === PURGED) {\n        continue;\n      } else if (state === FREED) {\n        // transition to \"already freed\" aka \"purged\"\n        // a good improvement would be to reuse\n        // these slots\n        handleState[i] = PURGED;\n        compactedSize += size;\n      } else if (state === ALLOCATED) {\n        for (let j = offset; j <= i + size; j++) {\n          heap[j - compactedSize] = unwrap(heap[j]);\n        }\n        handleTable[i] = offset - compactedSize;\n      } else if (state === POINTER) {\n        handleTable[i] = offset - compactedSize;\n      }\n    }\n    this.offset = this.offset - compactedSize;\n  }\n}\nclass ProgramImpl {\n  _opcode;\n  constructor(constants, heap) {\n    this.constants = constants;\n    this.heap = heap;\n    this._opcode = new RuntimeOpImpl(this.heap);\n  }\n  opcode(offset) {\n    this._opcode.offset = offset;\n    return this._opcode;\n  }\n}\nfunction sizeof(table, handle) {\n  {\n    return -1;\n  }\n}\n\nexport { ProgramImpl as P, RuntimeOpImpl as R, ProgramHeapImpl as a };\n","import { V as VM_MAIN_OP, a as VM_CONTENT_TYPE_OP, b as VM_ASSERT_SAME_OP, c as VM_APPEND_HTML_OP, d as VM_APPEND_TEXT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, g as VM_APPEND_SAFE_HTML_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP } from './syscall-ops-CkPT1Kfx.js';\nimport { V as VM_INVOKE_STATIC_OP } from './vm-ops-ImHv0Wtg.js';\nimport { $ as $s0 } from './registers-C_W2qYHJ.js';\nimport { ContentType } from '../@glimmer/vm/index.js';\nimport { f as EncoderImpl, g as encodeOp, i as invokePreparedComponent, S as SwitchCases, h as InvokeBareComponent, C as CallDynamic } from './index-kwuZeaNz.js';\n\nclass StdLib {\n  constructor(main, trustingGuardedAppend, cautiousGuardedAppend, trustingNonDynamicAppend, cautiousNonDynamicAppend) {\n    this.main = main;\n    this.trustingGuardedAppend = trustingGuardedAppend;\n    this.cautiousGuardedAppend = cautiousGuardedAppend;\n    this.trustingNonDynamicAppend = trustingNonDynamicAppend;\n    this.cautiousNonDynamicAppend = cautiousNonDynamicAppend;\n  }\n  get 'trusting-append'() {\n    return this.trustingGuardedAppend;\n  }\n  get 'cautious-append'() {\n    return this.cautiousGuardedAppend;\n  }\n  get 'trusting-non-dynamic-append'() {\n    return this.trustingNonDynamicAppend;\n  }\n  get 'cautious-non-dynamic-append'() {\n    return this.cautiousNonDynamicAppend;\n  }\n  getAppend(trusting) {\n    return trusting ? this.trustingGuardedAppend : this.cautiousGuardedAppend;\n  }\n}\n\nfunction main(op) {\n  op(VM_MAIN_OP, $s0);\n  invokePreparedComponent(op, false, false, true);\n}\n\n/**\n * Append content to the DOM. This standard function triages content and does the\n * right thing based upon whether it's a string, safe string, component, fragment\n * or node.\n *\n * @param trusting whether to interpolate a string as raw HTML (corresponds to\n * triple curlies)\n */\nfunction StdAppend(op, trusting, nonDynamicAppend) {\n  SwitchCases(op, () => op(VM_CONTENT_TYPE_OP), when => {\n    when(ContentType.String, () => {\n      if (trusting) {\n        op(VM_ASSERT_SAME_OP);\n        op(VM_APPEND_HTML_OP);\n      } else {\n        op(VM_APPEND_TEXT_OP);\n      }\n    });\n    if (typeof nonDynamicAppend === 'number') {\n      when(ContentType.Component, () => {\n        op(VM_ASSERT_SAME_OP);\n        op(VM_RESOLVE_CURRIED_COMPONENT_OP);\n        op(VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP);\n        InvokeBareComponent(op);\n      });\n      when(ContentType.Helper, () => {\n        CallDynamic(op, null, null, () => {\n          op(VM_INVOKE_STATIC_OP, nonDynamicAppend);\n        });\n      });\n    } else {\n      // when non-dynamic, we can no longer call the value (potentially because we've already called it)\n      // this prevents infinite loops. We instead coerce the value, whatever it is, into the DOM.\n      when(ContentType.Component, () => {\n        op(VM_APPEND_TEXT_OP);\n      });\n      when(ContentType.Helper, () => {\n        op(VM_APPEND_TEXT_OP);\n      });\n    }\n    when(ContentType.SafeString, () => {\n      op(VM_ASSERT_SAME_OP);\n      op(VM_APPEND_SAFE_HTML_OP);\n    });\n    when(ContentType.Fragment, () => {\n      op(VM_ASSERT_SAME_OP);\n      op(VM_APPEND_DOCUMENT_FRAGMENT_OP);\n    });\n    when(ContentType.Node, () => {\n      op(VM_ASSERT_SAME_OP);\n      op(VM_APPEND_NODE_OP);\n    });\n  });\n}\nfunction compileStd(context) {\n  let mainHandle = build(context, op => main(op));\n  let trustingGuardedNonDynamicAppend = build(context, op => StdAppend(op, true, null));\n  let cautiousGuardedNonDynamicAppend = build(context, op => StdAppend(op, false, null));\n  let trustingGuardedDynamicAppend = build(context, op => StdAppend(op, true, trustingGuardedNonDynamicAppend));\n  let cautiousGuardedDynamicAppend = build(context, op => StdAppend(op, false, cautiousGuardedNonDynamicAppend));\n  return new StdLib(mainHandle, trustingGuardedDynamicAppend, cautiousGuardedDynamicAppend, trustingGuardedNonDynamicAppend, cautiousGuardedNonDynamicAppend);\n}\nconst STDLIB_META = {\n  symbols: {\n    locals: null,\n    upvars: null\n  },\n  moduleName: 'stdlib',\n  // TODO: ??\n  scopeValues: null,\n  isStrictMode: true,\n  owner: null,\n  size: 0\n};\nfunction build(evaluation, builder) {\n  let encoder = new EncoderImpl(evaluation.program.heap, STDLIB_META);\n  function pushOp(...op) {\n    encodeOp(encoder, evaluation, STDLIB_META, op);\n  }\n  builder(pushOp);\n  let result = encoder.commit(0);\n  if (typeof result !== 'number') {\n    // This shouldn't be possible\n    throw new Error(`Unexpected errors compiling std`);\n  } else {\n    return result;\n  }\n}\n\nclass EvaluationContextImpl {\n  constants;\n  heap;\n  resolver;\n  stdlib;\n  createOp;\n  env;\n  program;\n  constructor({\n    constants,\n    heap\n  }, createOp, runtime) {\n    this.constants = constants;\n    this.heap = heap;\n    this.resolver = runtime.resolver;\n    this.createOp = createOp;\n    this.env = runtime.env;\n    this.program = runtime.program;\n    this.stdlib = compileStd(this);\n  }\n}\n\nexport { EvaluationContextImpl as E, StdLib as S, compileStd as c };\n","import { s as setProxy } from './is_proxy-Bzg0d4m4.js';\nimport { isEmberArray } from '../@ember/array/-internals.js';\nimport { t as track, f as isTracking, c as consumeTag } from './cache-CofLhaS4.js';\nimport { t as tagFor } from './meta-BJtIZDir.js';\nimport { C as Cache } from './cache-qDyqAcpg.js';\n\nconst firstDotIndexCache = new Cache(1000, key => key.indexOf('.'));\nfunction isPath(path) {\n  return typeof path === 'string' && firstDotIndexCache.get(path) !== -1;\n}\n\n/**\n@module @ember/object\n*/\n\nconst PROXY_CONTENT = Symbol('PROXY_CONTENT');\nfunction hasUnknownProperty(val) {\n  return typeof val === 'object' && val !== null && typeof val.unknownProperty === 'function';\n}\n\n// ..........................................................\n// GET AND SET\n//\n// If we are on a platform that supports accessors we can use those.\n// Otherwise simulate accessors by looking up the property directly on the\n// object.\n\n/**\n  Gets the value of a property on an object. If the property is computed,\n  the function will be invoked. If the property is not defined but the\n  object implements the `unknownProperty` method then that will be invoked.\n\n  ```javascript\n  import { get } from '@ember/object';\n  get(obj, \"name\");\n  ```\n\n  You only need to use this method to retrieve properties if the property\n  might not be defined on the object and you want to respect the\n  `unknownProperty` handler. Otherwise you can access the property directly.\n\n  Note that if the object itself is `undefined`, this method will throw\n  an error.\n\n  @method get\n  @for @ember/object\n  @static\n  @param {Object} obj The object to retrieve from.\n  @param {String} keyName The property key to retrieve\n  @return {Object} the property value or `null`.\n  @public\n*/\n\nfunction get(obj, keyName) {\n  return isPath(keyName) ? _getPath(obj, keyName) : _getProp(obj, keyName);\n}\nfunction _getProp(obj, keyName) {\n  if (obj == null) {\n    return;\n  }\n  let value;\n  if (typeof obj === 'object' || typeof obj === 'function') {\n    {\n      value = obj[keyName];\n    }\n    if (value === undefined && typeof obj === 'object' && !(keyName in obj) && hasUnknownProperty(obj)) {\n      value = obj.unknownProperty(keyName);\n    }\n    if (isTracking()) {\n      consumeTag(tagFor(obj, keyName));\n      if (Array.isArray(value) || isEmberArray(value)) {\n        // Add the tag of the returned value if it is an array, since arrays\n        // should always cause updates if they are consumed and then changed\n        consumeTag(tagFor(value, '[]'));\n      }\n    }\n  } else {\n    // SAFETY: It should be ok to access properties on any non-nullish value\n    value = obj[keyName];\n  }\n  return value;\n}\nfunction _getPath(obj, path, forSet) {\n  let parts = typeof path === 'string' ? path.split('.') : path;\n  for (let part of parts) {\n    if (obj === undefined || obj === null || obj.isDestroyed) {\n      return undefined;\n    }\n    if (forSet && (part === '__proto__' || part === 'constructor' || part === 'prototype')) {\n      return;\n    }\n    obj = _getProp(obj, part);\n  }\n  return obj;\n}\n\n// Warm it up\n_getProp('foo', 'a');\n_getProp('foo', 1);\n_getProp({}, 'a');\n_getProp({}, 1);\n_getProp({\n  unknownProperty() {}\n}, 'a');\n_getProp({\n  unknownProperty() {}\n}, 1);\nget({}, 'foo');\nget({}, 'foo.bar');\nlet fakeProxy = {};\nsetProxy(fakeProxy);\ntrack(() => _getProp({}, 'a'));\ntrack(() => _getProp({}, 1));\ntrack(() => _getProp({\n  a: []\n}, 'a'));\ntrack(() => _getProp({\n  a: fakeProxy\n}, 'a'));\n\nexport { PROXY_CONTENT as P, _getPath as _, _getProp as a, get as g, hasUnknownProperty as h, isPath as i };\n","import { l as lookupDescriptor } from './lookup-descriptor-CwcVgaLv.js';\nimport { C as COMPUTED_SETTERS } from './decorator-DcvVDSJV.js';\nimport { i as isPath, _ as _getPath } from './property_get-DuDs6rLg.js';\nimport { n as notifyPropertyChange } from './computed-ZvOk7SJQ.js';\n\n/**\n @module @ember/object\n*/\n/**\n  Sets the value of a property on an object, respecting computed properties\n  and notifying observers and other listeners of the change.\n  If the specified property is not defined on the object and the object\n  implements the `setUnknownProperty` method, then instead of setting the\n  value of the property on the object, its `setUnknownProperty` handler\n  will be invoked with the two parameters `keyName` and `value`.\n\n  ```javascript\n  import { set } from '@ember/object';\n  set(obj, \"name\", value);\n  ```\n\n  @method set\n  @static\n  @for @ember/object\n  @param {Object} obj The object to modify.\n  @param {String} keyName The property key to set\n  @param {Object} value The value to set\n  @return {Object} the passed value.\n  @public\n*/\nfunction set(obj, keyName, value, tolerant) {\n  if (obj.isDestroyed) {\n    return value;\n  }\n  return isPath(keyName) ? _setPath(obj, keyName, value, tolerant) : _setProp(obj, keyName, value);\n}\nfunction _setProp(obj, keyName, value) {\n  let descriptor = lookupDescriptor(obj, keyName);\n  if (descriptor !== null && COMPUTED_SETTERS.has(descriptor.set)) {\n    obj[keyName] = value;\n    return value;\n  }\n  let currentValue;\n  {\n    currentValue = obj[keyName];\n  }\n  if (currentValue === undefined && 'object' === typeof obj && !(keyName in obj) && typeof obj.setUnknownProperty === 'function') {\n    /* unknown property */\n    obj.setUnknownProperty(keyName, value);\n  } else {\n    {\n      obj[keyName] = value;\n    }\n    if (currentValue !== value) {\n      notifyPropertyChange(obj, keyName);\n    }\n  }\n  return value;\n}\nfunction _setPath(root, path, value, tolerant) {\n  let parts = path.split('.');\n  let keyName = parts.pop();\n  let newRoot = _getPath(root, parts, true);\n  if (newRoot !== null && newRoot !== undefined) {\n    return set(newRoot, keyName, value);\n  } else if (!tolerant) {\n    throw new Error(`Property set failed: object in path \"${parts.join('.')}\" could not be found.`);\n  }\n}\n\n/**\n  Error-tolerant form of `set`. Will not blow up if any part of the\n  chain is `undefined`, `null`, or destroyed.\n\n  This is primarily used when syncing bindings, which may try to update after\n  an object has been destroyed.\n\n  ```javascript\n  import { trySet } from '@ember/object';\n\n  let obj = { name: \"Zoey\" };\n  trySet(obj, \"contacts.twitter\", \"@emberjs\");\n  ```\n\n  @method trySet\n  @static\n  @for @ember/object\n  @param {Object} root The object to modify.\n  @param {String} path The property path to set\n  @param {Object} value The value to set\n  @public\n*/\nfunction trySet(root, path, value) {\n  return set(root, path, value, true);\n}\n\nexport { _setProp as _, set as s, trySet as t };\n","/*\n * @method normalizeProperty\n * @param element {HTMLElement}\n * @param slotName {String}\n * @returns {Object} { name, type }\n */\nfunction normalizeProperty(element, slotName) {\n  let type, normalized;\n  if (slotName in element) {\n    normalized = slotName;\n    type = 'prop';\n  } else {\n    let lower = slotName.toLowerCase();\n    if (lower in element) {\n      type = 'prop';\n      normalized = lower;\n    } else {\n      type = 'attr';\n      normalized = slotName;\n    }\n  }\n  if (type === 'prop' && (normalized.toLowerCase() === 'style' || preferAttr(element.tagName, normalized))) {\n    type = 'attr';\n  }\n  return {\n    normalized,\n    type\n  };\n}\n\n// Properties that MUST be set as attributes because the DOM properties\n// are read-only or have type mismatches with the HTML attributes.\n//\n// element.form is a read-only DOM property on all form-associated elements\n// that returns the owning HTMLFormElement (or null). The HTML `form` attribute\n// (set via setAttribute) associates the element with a form by ID.\n// See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/form\n//      https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/form\nconst ATTR_OVERRIDES = {\n  INPUT: {\n    form: true,\n    // HTMLElement.autocorrect is a boolean DOM property, but the HTML attribute\n    // uses \"on\"/\"off\" strings. Setting `element.autocorrect = \"off\"` coerces to\n    // `true` (truthy string). Must use setAttribute for correct \"on\"/\"off\" behavior.\n    // See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/autocorrect\n    autocorrect: true,\n    // HTMLInputElement.list is a read-only DOM property that returns the associated\n    // HTMLDataListElement (or null). Must use setAttribute to set the datalist ID.\n    // See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/list\n    list: true\n  },\n  SELECT: {\n    form: true\n  },\n  OPTION: {\n    form: true\n  },\n  TEXTAREA: {\n    form: true\n  },\n  LABEL: {\n    form: true\n  },\n  FIELDSET: {\n    form: true\n  },\n  LEGEND: {\n    form: true\n  },\n  OBJECT: {\n    form: true\n  },\n  OUTPUT: {\n    form: true\n  },\n  BUTTON: {\n    form: true\n  }\n};\nfunction preferAttr(tagName, propName) {\n  let tag = ATTR_OVERRIDES[tagName.toUpperCase()];\n  return !!(tag && tag[propName.toLowerCase()]);\n}\n\nexport { normalizeProperty as n };\n","import Test from '../ember-testing/lib/test.js';\nimport Adapter from '../ember-testing/lib/adapters/adapter.js';\n\nconst EmberTesting = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({\n\t__proto__: null,\n\tAdapter,\n\tTest\n}, Symbol.toStringTag, { value: 'Module' }));\n\nexport { EmberTesting as E };\n","import { e as expect, i as isDict } from './collections-GpG8lT2g.js';\nimport { D as DESTROYABLE_META_KEY } from './destroyable-key-BsfVBM7f.js';\nimport { setProp, getProp } from '../@glimmer/global-context/index.js';\nimport { C as CONSTANT_TAG, I as INITIAL, v as validateTag, t as track, a as valueForTag, c as consumeTag } from './cache-CofLhaS4.js';\n\nconst REFERENCE = Symbol('REFERENCE');\nconst CONSTANT = 0;\nconst COMPUTE = 1;\nconst UNBOUND = 2;\nconst INVOKABLE = 3;\n\n//////////\n\nclass ReferenceImpl {\n  [DESTROYABLE_META_KEY];\n  [REFERENCE];\n  tag = null;\n  lastRevision = INITIAL;\n  lastValue;\n  children = null;\n  compute = null;\n  update = null;\n  debugLabel;\n  constructor(type) {\n    this[REFERENCE] = type;\n  }\n}\nfunction createPrimitiveRef(value) {\n  const ref = new ReferenceImpl(UNBOUND);\n  ref.tag = CONSTANT_TAG;\n  ref.lastValue = value;\n  return ref;\n}\nconst UNDEFINED_REFERENCE = createPrimitiveRef(undefined);\nconst NULL_REFERENCE = createPrimitiveRef(null);\nconst TRUE_REFERENCE = createPrimitiveRef(true);\nconst FALSE_REFERENCE = createPrimitiveRef(false);\nfunction createConstRef(value, debugLabel) {\n  const ref = new ReferenceImpl(CONSTANT);\n  ref.lastValue = value;\n  ref.tag = CONSTANT_TAG;\n  return ref;\n}\nfunction createUnboundRef(value, debugLabel) {\n  const ref = new ReferenceImpl(UNBOUND);\n  ref.lastValue = value;\n  ref.tag = CONSTANT_TAG;\n  return ref;\n}\nfunction createComputeRef(compute, update = null, debugLabel = 'unknown') {\n  const ref = new ReferenceImpl(COMPUTE);\n  ref.compute = compute;\n  ref.update = update;\n  return ref;\n}\nfunction createReadOnlyRef(ref) {\n  if (!isUpdatableRef(ref)) return ref;\n  return createComputeRef(() => valueForRef(ref), null, ref.debugLabel);\n}\nfunction isInvokableRef(ref) {\n  return ref[REFERENCE] === INVOKABLE;\n}\nfunction createInvokableRef(inner) {\n  const ref = createComputeRef(() => valueForRef(inner), value => updateRef(inner, value));\n  ref.debugLabel = inner.debugLabel;\n  ref[REFERENCE] = INVOKABLE;\n  return ref;\n}\nfunction isConstRef(_ref) {\n  const ref = _ref;\n  return ref.tag === CONSTANT_TAG;\n}\nfunction isUpdatableRef(_ref) {\n  const ref = _ref;\n  return ref.update !== null;\n}\nfunction valueForRef(_ref) {\n  const ref = _ref;\n  let {\n    tag\n  } = ref;\n  if (tag === CONSTANT_TAG) {\n    return ref.lastValue;\n  }\n  const {\n    lastRevision\n  } = ref;\n  let lastValue;\n  if (tag === null || !validateTag(tag, lastRevision)) {\n    const {\n      compute\n    } = ref;\n    const newTag = track(() => {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      lastValue = ref.lastValue = compute();\n    });\n    tag = ref.tag = newTag;\n    ref.lastRevision = valueForTag(newTag);\n  } else {\n    lastValue = ref.lastValue;\n  }\n  consumeTag(tag);\n  return lastValue;\n}\nfunction updateRef(_ref, value) {\n  const ref = _ref;\n  const update = expect(ref.update);\n  update(value);\n}\nfunction childRefFor(_parentRef, path) {\n  const parentRef = _parentRef;\n  const type = parentRef[REFERENCE];\n  let children = parentRef.children;\n  let child;\n  if (children === null) {\n    children = parentRef.children = new Map();\n  } else {\n    const next = children.get(path);\n    if (next) return next;\n  }\n  if (type === UNBOUND) {\n    const parent = valueForRef(parentRef);\n    if (isDict(parent)) {\n      child = createUnboundRef(parent[path]);\n    } else {\n      child = UNDEFINED_REFERENCE;\n    }\n  } else {\n    child = createComputeRef(() => {\n      const parent = valueForRef(parentRef);\n      if (isDict(parent)) {\n        return getProp(parent, path);\n      }\n    }, val => {\n      const parent = valueForRef(parentRef);\n      if (isDict(parent)) {\n        return setProp(parent, path, val);\n      }\n    });\n  }\n  children.set(path, child);\n  return child;\n}\nfunction childRefFromParts(root, parts) {\n  let reference = root;\n  for (const part of parts) {\n    reference = childRefFor(reference, part);\n  }\n  return reference;\n}\nlet createDebugAliasRef;\n\nexport { FALSE_REFERENCE as F, NULL_REFERENCE as N, REFERENCE as R, TRUE_REFERENCE as T, UNDEFINED_REFERENCE as U, createConstRef as a, isUpdatableRef as b, createComputeRef as c, isInvokableRef as d, createPrimitiveRef as e, childRefFor as f, childRefFromParts as g, createInvokableRef as h, isConstRef as i, createReadOnlyRef as j, createUnboundRef as k, createDebugAliasRef as l, updateRef as u, valueForRef as v };\n","/**\n * Registers\n *\n * For the most part, these follows MIPS naming conventions, however the\n * register numbers are different.\n */\n\n// $0 or $pc (program counter): pointer into `program` for the next insturction; -1 means exit\n\nconst $pc = 0;\n// $1 or $ra (return address): pointer into `program` for the return\n\nconst $ra = 1;\n// $2 or $fp (frame pointer): pointer into the `evalStack` for the base of the stack\n\nconst $fp = 2;\n// $3 or $sp (stack pointer): pointer into the `evalStack` for the top of the stack\n\nconst $sp = 3;\n// $4-$5 or $s0-$s1 (saved): callee saved general-purpose registers\n\nconst $s0 = 4;\nconst $s1 = 5;\n// $6-$7 or $t0-$t1 (temporaries): caller saved general-purpose registers\n\nconst $t0 = 6;\nconst $t1 = 7;\n// $8 or $v0 (return value)\n\nconst $v0 = 8;\nfunction isLowLevelRegister(register) {\n  return register <= $sp;\n}\n\nexport { $s0 as $, $v0 as a, $t1 as b, $t0 as c, $pc as d, $ra as e, $fp as f, $sp as g, $s1 as h, isLowLevelRegister as i };\n","import { N as NewTreeBuilder, R as RemoteBlock, C as COMMENT_NODE, T as TEXT_NODE, E as ELEMENT_NODE, e as NS_SVG } from './api-B3M8aF1d.js';\nimport { c as castToSimple, a as castToBrowser } from './simple-cast-DCvJLSin.js';\nimport { e as expect } from './collections-GpG8lT2g.js';\nimport { a as assert } from './assert-Zqc4wiAV.js';\nimport { C as ConcreteBounds, a as CursorImpl } from './normalize-C_IStty9.js';\n\nconst SERIALIZATION_FIRST_NODE_STRING = '%+b:0%';\nfunction isSerializationFirstNode(node) {\n  return node.nodeValue === SERIALIZATION_FIRST_NODE_STRING;\n}\nclass RehydratingCursor extends CursorImpl {\n  candidate = null;\n  openBlockDepth;\n  injectedOmittedNode = false;\n  constructor(element, nextSibling, startingBlockDepth) {\n    super(element, nextSibling);\n    this.startingBlockDepth = startingBlockDepth;\n    this.openBlockDepth = startingBlockDepth - 1;\n  }\n}\nclass RehydrateTree extends NewTreeBuilder {\n  unmatchedAttributes = null;\n  // Hides property on base class\n  blockDepth = 0;\n  startingBlockOffset;\n  constructor(env, parentNode, nextSibling) {\n    super(env, parentNode, nextSibling);\n    if (nextSibling) throw new Error('Rehydration with nextSibling not supported');\n\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    let node = this.currentCursor.element.firstChild;\n    while (node !== null) {\n      if (isOpenBlock(node)) {\n        break;\n      }\n      node = node.nextSibling;\n    }\n    this.candidate = node;\n    const startingBlockOffset = getBlockDepth(node);\n    if (startingBlockOffset !== 0) {\n      // We are rehydrating from a partial tree and not the root component\n      // We need to add an extra block before the first block to rehydrate correctly\n      // The extra block is needed since the renderComponent API creates a synthetic component invocation which generates the extra block\n      const newBlockDepth = startingBlockOffset - 1;\n      const newCandidate = this.dom.createComment(`%+b:${newBlockDepth}%`);\n\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      node.parentNode.insertBefore(newCandidate, this.candidate);\n      let closingNode = node.nextSibling;\n      while (closingNode !== null) {\n        if (isCloseBlock(closingNode) && getBlockDepth(closingNode) === startingBlockOffset) {\n          break;\n        }\n        closingNode = closingNode.nextSibling;\n      }\n      const newClosingBlock = this.dom.createComment(`%-b:${newBlockDepth}%`);\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      node.parentNode.insertBefore(newClosingBlock, closingNode.nextSibling);\n      this.candidate = newCandidate;\n      this.startingBlockOffset = newBlockDepth;\n    } else {\n      this.startingBlockOffset = 0;\n    }\n  }\n  get currentCursor() {\n    return this.cursors.current;\n  }\n  get candidate() {\n    if (this.currentCursor) {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      return this.currentCursor.candidate;\n    }\n    return null;\n  }\n  set candidate(node) {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    const currentCursor = this.currentCursor;\n    currentCursor.candidate = node;\n  }\n  disableRehydration(nextSibling) {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    const currentCursor = this.currentCursor;\n\n    // rehydration will be disabled until we either:\n    // * hit popElement (and return to using the parent elements cursor)\n    // * hit closeBlock and the next sibling is a close block comment\n    //   matching the expected openBlockDepth\n    currentCursor.candidate = null;\n    currentCursor.nextSibling = nextSibling;\n  }\n  enableRehydration(candidate) {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    const currentCursor = this.currentCursor;\n    currentCursor.candidate = candidate;\n    currentCursor.nextSibling = null;\n  }\n  pushElement(element, nextSibling = null) {\n    const cursor = new RehydratingCursor(element, nextSibling, this.blockDepth || 0);\n\n    /**\n     * <div>   <---------------  currentCursor.element\n     *   <!--%+b:1%--> <-------  would have been removed during openBlock\n     *   <div> <---------------  currentCursor.candidate -> cursor.element\n     *     <!--%+b:2%--> <-----  currentCursor.candidate.firstChild -> cursor.candidate\n     *     Foo\n     *     <!--%-b:2%-->\n     *   </div>\n     *   <!--%-b:1%-->  <------  becomes currentCursor.candidate\n     */\n    if (this.candidate !== null) {\n      cursor.candidate = element.firstChild;\n      this.candidate = element.nextSibling;\n    }\n    this.cursors.push(cursor);\n  }\n\n  // clears until the end of the current container\n  // either the current open block or higher\n  clearMismatch(candidate) {\n    let current = candidate;\n    const currentCursor = this.currentCursor;\n    if (currentCursor !== null) {\n      const openBlockDepth = currentCursor.openBlockDepth;\n      if (openBlockDepth >= currentCursor.startingBlockDepth) {\n        while (current) {\n          if (isCloseBlock(current)) {\n            const closeBlockDepth = getBlockDepthWithOffset(current, this.startingBlockOffset);\n            if (openBlockDepth >= closeBlockDepth) {\n              break;\n            }\n          }\n          current = this.remove(current);\n        }\n      } else {\n        while (current !== null) {\n          current = this.remove(current);\n        }\n      }\n      // current cursor parentNode should be openCandidate if element\n      // or openCandidate.parentNode if comment\n      this.disableRehydration(current);\n    }\n  }\n  __openBlock() {\n    const {\n      currentCursor\n    } = this;\n    if (currentCursor === null) return;\n    const blockDepth = this.blockDepth;\n    this.blockDepth++;\n    const {\n      candidate\n    } = currentCursor;\n    if (candidate === null) return;\n    const {\n      tagName\n    } = currentCursor.element;\n    if (isOpenBlock(candidate) && getBlockDepthWithOffset(candidate, this.startingBlockOffset) === blockDepth) {\n      this.candidate = this.remove(candidate);\n      currentCursor.openBlockDepth = blockDepth;\n    } else if (tagName !== 'TITLE' && tagName !== 'SCRIPT' && tagName !== 'STYLE') {\n      this.clearMismatch(candidate);\n    }\n  }\n  __closeBlock() {\n    const {\n      currentCursor\n    } = this;\n    if (currentCursor === null) return;\n\n    // openBlock is the last rehydrated open block\n    const openBlockDepth = currentCursor.openBlockDepth;\n\n    // this currently is the expected next open block depth\n    this.blockDepth--;\n    const {\n      candidate\n    } = currentCursor;\n    let isRehydrating = false;\n    if (candidate !== null) {\n      isRehydrating = true;\n      //assert(\n      //  openBlockDepth === this.blockDepth,\n      //  'when rehydrating, openBlockDepth should match this.blockDepth here'\n      //);\n\n      if (isCloseBlock(candidate) && getBlockDepthWithOffset(candidate, this.startingBlockOffset) === openBlockDepth) {\n        const nextSibling = this.remove(candidate);\n        this.candidate = nextSibling;\n        currentCursor.openBlockDepth--;\n      } else {\n        // close the block and clear mismatch in parent container\n        // we will be either at the end of the element\n        // or at the end of our containing block\n        this.clearMismatch(candidate);\n        isRehydrating = false;\n      }\n    }\n    if (!isRehydrating) {\n      // check if nextSibling matches our expected close block\n      // if so, we remove the close block comment and\n      // restore rehydration after clearMismatch disabled\n      const nextSibling = currentCursor.nextSibling;\n      if (nextSibling !== null && isCloseBlock(nextSibling) && getBlockDepthWithOffset(nextSibling, this.startingBlockOffset) === this.blockDepth) {\n        // restore rehydration state\n        const candidate = this.remove(nextSibling);\n        this.enableRehydration(candidate);\n        currentCursor.openBlockDepth--;\n      }\n    }\n  }\n  __appendNode(node) {\n    const {\n      candidate\n    } = this;\n\n    // This code path is only used when inserting precisely one node. It needs more\n    // comparison logic, but we can probably lean on the cases where this code path\n    // is actually used.\n    if (candidate) {\n      return candidate;\n    } else {\n      return super.__appendNode(node);\n    }\n  }\n  __appendHTML(html) {\n    const candidateBounds = this.markerBounds();\n    if (candidateBounds) {\n      const first = candidateBounds.firstNode();\n      const last = candidateBounds.lastNode();\n\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      const newBounds = new ConcreteBounds(this.element, first.nextSibling, last.previousSibling);\n      const possibleEmptyMarker = this.remove(first);\n      this.remove(last);\n      if (possibleEmptyMarker !== null && isEmpty(possibleEmptyMarker)) {\n        this.candidate = this.remove(possibleEmptyMarker);\n        if (this.candidate !== null) {\n          this.clearMismatch(this.candidate);\n        }\n      }\n      return newBounds;\n    } else {\n      return super.__appendHTML(html);\n    }\n  }\n  remove(node) {\n    const element = expect(node.parentNode);\n    const next = node.nextSibling;\n    element.removeChild(node);\n    return next;\n  }\n  markerBounds() {\n    const _candidate = this.candidate;\n    if (_candidate && isMarker(_candidate)) {\n      const first = _candidate;\n      let last = expect(first.nextSibling);\n      while (!isMarker(last)) {\n        last = expect(last.nextSibling);\n      }\n      return new ConcreteBounds(this.element, first, last);\n    } else {\n      return null;\n    }\n  }\n  __appendText(string) {\n    const {\n      candidate\n    } = this;\n    if (candidate) {\n      if (isTextNode(candidate)) {\n        if (candidate.nodeValue !== string) {\n          candidate.nodeValue = string;\n        }\n        this.candidate = candidate.nextSibling;\n        return candidate;\n      } else if (isSeparator(candidate)) {\n        this.candidate = this.remove(candidate);\n        return this.__appendText(string);\n      } else if (isEmpty(candidate) && string === '') {\n        this.candidate = this.remove(candidate);\n        return this.__appendText(string);\n      } else {\n        this.clearMismatch(candidate);\n        return super.__appendText(string);\n      }\n    } else {\n      return super.__appendText(string);\n    }\n  }\n  __appendComment(string) {\n    const _candidate = this.candidate;\n    if (_candidate && isComment(_candidate)) {\n      if (_candidate.nodeValue !== string) {\n        _candidate.nodeValue = string;\n      }\n      this.candidate = _candidate.nextSibling;\n      return _candidate;\n    } else if (_candidate) {\n      this.clearMismatch(_candidate);\n    }\n    return super.__appendComment(string);\n  }\n  __openElement(tag) {\n    const _candidate = this.candidate;\n    if (_candidate && isElement(_candidate) && isSameNodeType(_candidate, tag)) {\n      this.unmatchedAttributes = [].slice.call(_candidate.attributes);\n      return _candidate;\n    } else if (_candidate) {\n      if (isElement(_candidate) && _candidate.tagName === 'TBODY') {\n        this.pushElement(_candidate, null);\n        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n        this.currentCursor.injectedOmittedNode = true;\n        return this.__openElement(tag);\n      }\n      this.clearMismatch(_candidate);\n    }\n    return super.__openElement(tag);\n  }\n  __setAttribute(name, value, namespace) {\n    const unmatched = this.unmatchedAttributes;\n    if (unmatched) {\n      const attr = findByName(unmatched, name);\n      if (attr) {\n        if (attr.value !== value) {\n          attr.value = value;\n        }\n        unmatched.splice(unmatched.indexOf(attr), 1);\n        return;\n      }\n    }\n    return super.__setAttribute(name, value, namespace);\n  }\n  __setProperty(name, value) {\n    const unmatched = this.unmatchedAttributes;\n    if (unmatched) {\n      const attr = findByName(unmatched, name);\n      if (attr) {\n        if (attr.value !== value) {\n          attr.value = value;\n        }\n        unmatched.splice(unmatched.indexOf(attr), 1);\n        return;\n      }\n    }\n    return super.__setProperty(name, value);\n  }\n  __flushElement(parent, constructing) {\n    const {\n      unmatchedAttributes: unmatched\n    } = this;\n    if (unmatched) {\n      for (const attr of unmatched) {\n        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n        this.constructing.removeAttribute(attr.name);\n      }\n      this.unmatchedAttributes = null;\n    } else {\n      super.__flushElement(parent, constructing);\n    }\n  }\n  willCloseElement() {\n    const {\n      candidate,\n      currentCursor\n    } = this;\n    if (candidate !== null) {\n      this.clearMismatch(candidate);\n    }\n    if (currentCursor && currentCursor.injectedOmittedNode) {\n      this.popElement();\n    }\n    super.willCloseElement();\n  }\n  getMarker(element, guid) {\n    const marker = element.querySelector(`script[glmr=\"${guid}\"]`);\n    if (marker) {\n      return castToSimple(marker);\n    }\n    return null;\n  }\n  __pushRemoteElement(element, cursorId, insertBefore) {\n    const marker = this.getMarker(castToBrowser(element), cursorId);\n    assert(!marker || marker.parentNode === element);\n\n    // when insertBefore is not present, we clear the element\n    if (insertBefore === undefined) {\n      while (element.firstChild !== null && element.firstChild !== marker) {\n        this.remove(element.firstChild);\n      }\n      insertBefore = null;\n    }\n    const cursor = new RehydratingCursor(element, null, this.blockDepth);\n    this.cursors.push(cursor);\n    if (marker === null) {\n      this.disableRehydration(insertBefore);\n    } else {\n      this.candidate = this.remove(marker);\n    }\n    const block = new RemoteBlock(element);\n    return this.pushBlock(block, true);\n  }\n  didAppendBounds(bounds) {\n    super.didAppendBounds(bounds);\n    if (this.candidate) {\n      const last = bounds.lastNode();\n      this.candidate = last.nextSibling;\n    }\n    return bounds;\n  }\n}\nfunction isTextNode(node) {\n  return node.nodeType === TEXT_NODE;\n}\nfunction isComment(node) {\n  return node.nodeType === COMMENT_NODE;\n}\nfunction isOpenBlock(node) {\n  return node.nodeType === COMMENT_NODE && node.nodeValue.lastIndexOf('%+b:', 0) === 0;\n}\nfunction isCloseBlock(node) {\n  return node.nodeType === COMMENT_NODE && node.nodeValue.lastIndexOf('%-b:', 0) === 0;\n}\nfunction getBlockDepth(node) {\n  return parseInt(node.nodeValue.slice(4), 10);\n}\nfunction getBlockDepthWithOffset(node, offset) {\n  return getBlockDepth(node) - offset;\n}\nfunction isElement(node) {\n  return node.nodeType === ELEMENT_NODE;\n}\nfunction isMarker(node) {\n  return node.nodeType === COMMENT_NODE && node.nodeValue === '%glmr%';\n}\nfunction isSeparator(node) {\n  return node.nodeType === COMMENT_NODE && node.nodeValue === '%|%';\n}\nfunction isEmpty(node) {\n  return node.nodeType === COMMENT_NODE && node.nodeValue === '% %';\n}\nfunction isSameNodeType(candidate, tag) {\n  if (candidate.namespaceURI === NS_SVG) {\n    return candidate.tagName === tag;\n  }\n  return candidate.tagName === tag.toUpperCase();\n}\nfunction findByName(array, name) {\n  for (const attr of array) {\n    if (attr.name === name) return attr;\n  }\n  return undefined;\n}\nfunction rehydrationBuilder(env, cursor) {\n  return RehydrateTree.forInitialRender(env, cursor);\n}\n\nexport { RehydrateTree as R, SERIALIZATION_FIRST_NODE_STRING as S, isSerializationFirstNode as i, rehydrationBuilder as r };\n","import { u as unwrap, e as expect, c as isIndexable, S as StackImpl } from './collections-GpG8lT2g.js';\nimport { a as unwrapHandle } from './template-BRrQR6KS.js';\nimport { U as UNDEFINED_REFERENCE, c as createComputeRef, v as valueForRef, f as childRefFor, T as TRUE_REFERENCE, F as FALSE_REFERENCE, i as isConstRef, u as updateRef, a as createConstRef } from './reference-CccCE8mJ.js';\nimport { a as assert } from './assert-Zqc4wiAV.js';\nimport { P as ProgramImpl } from './program-BAh__OXZ.js';\nimport { t as track, U as UPDATE_TAG, o as beginTrackFrame, s as endTrackFrame } from './cache-CofLhaS4.js';\nimport { D as DebugRenderTreeImpl, i as isArgumentError, h as isCurriedType, d as curry, A as APPEND_OPCODES, g as check, j as resolveCurriedValue, f as reifyPositional, k as AssertFilter, V as VMArgumentsImpl, l as externs, J as JumpIfNotModifiedOpcode, B as BeginTrackFrameOpcode, m as EndTrackFrameOpcode } from './arguments-xjTAZ6VE.js';\nimport { B as BLACKLIST_TABLE, f as DOMOperations, D as DOMTreeConstruction, N as NewTreeBuilder } from './api-B3M8aF1d.js';\nimport { a as assign } from './object-utils-AijlD-JH.js';\nimport { associateDestroyableChild, _hasDestroyableChildren, destroy, destroyChildren, registerDestructor } from '../@glimmer/destroyable/index.js';\nimport { D as DESTROYABLE_META_KEY } from './destroyable-key-BsfVBM7f.js';\nimport { createIteratorRef, createIteratorItemRef } from '../@glimmer/reference/index.js';\nimport { r as reverse } from './array-utils-CZQxrdD3.js';\nimport { a as $v0, d as $pc, e as $ra, f as $fp, g as $sp, i as isLowLevelRegister } from './registers-C_W2qYHJ.js';\nimport { a as VM_RETURN_TO_OP, b as VM_RETURN_OP, c as VM_JUMP_OP, d as VM_INVOKE_VIRTUAL_OP, V as VM_INVOKE_STATIC_OP, e as VM_POP_FRAME_OP, f as VM_PUSH_FRAME_OP } from './vm-ops-ImHv0Wtg.js';\nimport { a as CURRIED_COMPONENT, b as CURRIED_HELPER } from './curried-BZnYakIg.js';\nimport { ah as VM_CURRY_OP, ai as VM_DYNAMIC_HELPER_OP, aj as VM_HELPER_OP, ak as VM_GET_VARIABLE_OP, al as VM_SET_VARIABLE_OP, am as VM_SET_BLOCK_OP, an as VM_ROOT_SCOPE_OP, ao as VM_GET_PROPERTY_OP, ap as VM_GET_BLOCK_OP, aq as VM_SPREAD_BLOCK_OP, ar as VM_HAS_BLOCK_OP, as as VM_HAS_BLOCK_PARAMS_OP, at as VM_CONCAT_OP, au as VM_IF_INLINE_OP, av as VM_NOT_OP, aw as VM_GET_DYNAMIC_VAR_OP, ax as VM_LOG_OP, a as VM_CONTENT_TYPE_OP, ay as VM_DYNAMIC_CONTENT_TYPE_OP, c as VM_APPEND_HTML_OP, g as VM_APPEND_SAFE_HTML_OP, d as VM_APPEND_TEXT_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP, az as VM_DEBUGGER_OP, p as decodeHandle, aA as VM_ENTER_LIST_OP, aB as VM_EXIT_LIST_OP, aC as VM_ITERATE_OP } from './syscall-ops-CkPT1Kfx.js';\nimport { toBool } from '../@glimmer/global-context/index.js';\nimport { a as getInternalHelperManager, c as hasInternalComponentManager, d as hasInternalHelperManager } from './api-DJnXAjon.js';\nimport { ContentType } from '../@glimmer/vm/index.js';\nimport { b as isEmpty, d as isString, s as shouldCoerce, i as isSafeString, e as isFragment, f as isNode, m as move, c as clear } from './normalize-C_IStty9.js';\n\nclass DynamicScopeImpl {\n  bucket;\n  constructor(bucket) {\n    if (bucket) {\n      this.bucket = assign({}, bucket);\n    } else {\n      this.bucket = {};\n    }\n  }\n  get(key) {\n    return unwrap(this.bucket[key]);\n  }\n  set(key, reference) {\n    return this.bucket[key] = reference;\n  }\n  child() {\n    return new DynamicScopeImpl(this.bucket);\n  }\n}\nclass ScopeImpl {\n  static root(owner, {\n    self,\n    size = 0\n  }) {\n    let refs = new Array(size + 1).fill(UNDEFINED_REFERENCE);\n    return new ScopeImpl(owner, refs, null).init({\n      self\n    });\n  }\n  static sized(owner, size = 0) {\n    let refs = new Array(size + 1).fill(UNDEFINED_REFERENCE);\n    return new ScopeImpl(owner, refs, null);\n  }\n  owner;\n  slots;\n  callerScope;\n  constructor(owner,\n  // the 0th slot is `self`\n  slots,\n  // a single program can mix owners via curried components, and the state lives on root scopes\n  callerScope) {\n    this.owner = owner;\n    this.slots = slots;\n    this.callerScope = callerScope;\n  }\n  init({\n    self\n  }) {\n    this.slots[0] = self;\n    return this;\n  }\n\n  /**\n   * @debug\n   */\n  snapshot() {\n    return this.slots.slice();\n  }\n  getSelf() {\n    return this.get(0);\n  }\n  getSymbol(symbol) {\n    return this.get(symbol);\n  }\n  getBlock(symbol) {\n    let block = this.get(symbol);\n    return block === UNDEFINED_REFERENCE ? null : block;\n  }\n  bind(symbol, value) {\n    this.set(symbol, value);\n  }\n  bindSelf(self) {\n    this.set(0, self);\n  }\n  bindSymbol(symbol, value) {\n    this.set(symbol, value);\n  }\n  bindBlock(symbol, value) {\n    this.set(symbol, value);\n  }\n  bindCallerScope(scope) {\n    this.callerScope = scope;\n  }\n  getCallerScope() {\n    return this.callerScope;\n  }\n  child() {\n    return new ScopeImpl(this.owner, this.slots.slice(), this.callerScope);\n  }\n  get(index) {\n    if (index >= this.slots.length) {\n      throw new RangeError(`BUG: cannot get $${index} from scope; length=${this.slots.length}`);\n    }\n    return this.slots[index];\n  }\n  set(index, value) {\n    if (index >= this.slots.length) {\n      throw new RangeError(`BUG: cannot get $${index} from scope; length=${this.slots.length}`);\n    }\n    this.slots[index] = value;\n  }\n}\n\n['b', 'big', 'blockquote', 'body', 'br', 'center', 'code', 'dd', 'div', 'dl', 'dt', 'em', 'embed', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'i', 'img', 'li', 'listing', 'main', 'meta', 'nobr', 'ol', 'p', 'pre', 'ruby', 's', 'small', 'span', 'strong', 'strike', 'sub', 'sup', 'table', 'tt', 'u', 'ul', 'var'].forEach(tag => BLACKLIST_TABLE[tag] = 1);\nconst WHITESPACE = /[\\t\\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;\nfunction isWhitespace(string) {\n  return WHITESPACE.test(string);\n}\nclass DOMChangesImpl extends DOMOperations {\n  namespace;\n  constructor(document) {\n    super(document);\n    this.document = document;\n    this.namespace = null;\n  }\n  setAttribute(element, name, value) {\n    element.setAttribute(name, value);\n  }\n  removeAttribute(element, name) {\n    element.removeAttribute(name);\n  }\n  insertAfter(element, node, reference) {\n    this.insertBefore(element, node, reference.nextSibling);\n  }\n}\nconst DOMChanges = DOMChangesImpl;\n\nconst TRANSACTION = Symbol('TRANSACTION');\nclass TransactionImpl {\n  scheduledInstallModifiers = [];\n  scheduledUpdateModifiers = [];\n  createdComponents = [];\n  updatedComponents = [];\n  didCreate(component) {\n    this.createdComponents.push(component);\n  }\n  didUpdate(component) {\n    this.updatedComponents.push(component);\n  }\n  scheduleInstallModifier(modifier) {\n    this.scheduledInstallModifiers.push(modifier);\n  }\n  scheduleUpdateModifier(modifier) {\n    this.scheduledUpdateModifiers.push(modifier);\n  }\n  commit() {\n    let {\n      createdComponents,\n      updatedComponents\n    } = this;\n    for (const {\n      manager,\n      state\n    } of createdComponents) {\n      manager.didCreate(state);\n    }\n    for (const {\n      manager,\n      state\n    } of updatedComponents) {\n      manager.didUpdate(state);\n    }\n    let {\n      scheduledInstallModifiers,\n      scheduledUpdateModifiers\n    } = this;\n    for (const {\n      manager,\n      state,\n      definition\n    } of scheduledInstallModifiers) {\n      let modifierTag = manager.getTag(state);\n      if (modifierTag !== null) {\n        let tag = track(() => manager.install(state));\n        UPDATE_TAG(modifierTag, tag);\n      } else {\n        manager.install(state);\n      }\n    }\n    for (const {\n      manager,\n      state,\n      definition\n    } of scheduledUpdateModifiers) {\n      let modifierTag = manager.getTag(state);\n      if (modifierTag !== null) {\n        let tag = track(() => manager.update(state));\n        UPDATE_TAG(modifierTag, tag);\n      } else {\n        manager.update(state);\n      }\n    }\n  }\n}\nclass EnvironmentImpl {\n  [TRANSACTION] = null;\n  updateOperations;\n\n  // Delegate methods and values\n  isInteractive;\n\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  isArgumentCaptureError;\n  debugRenderTree;\n  constructor(options, delegate) {\n    this.delegate = delegate;\n    this.isInteractive = delegate.isInteractive;\n    this.debugRenderTree = this.delegate.enableDebugTooling ? new DebugRenderTreeImpl() : undefined;\n    this.isArgumentCaptureError = this.delegate.enableDebugTooling ? isArgumentError : undefined;\n    if (options.appendOperations) {\n      this.appendOperations = options.appendOperations;\n      this.updateOperations = options.updateOperations;\n    } else if (options.document) {\n      this.appendOperations = new DOMTreeConstruction(options.document);\n      this.updateOperations = new DOMChangesImpl(options.document);\n    } else ;\n  }\n  getAppendOperations() {\n    return this.appendOperations;\n  }\n  getDOM() {\n    return expect(this.updateOperations);\n  }\n  begin() {\n    assert(!this[TRANSACTION]);\n    this.debugRenderTree?.begin();\n    this[TRANSACTION] = new TransactionImpl();\n  }\n  get transaction() {\n    return expect(this[TRANSACTION]);\n  }\n  didCreate(component) {\n    this.transaction.didCreate(component);\n  }\n  didUpdate(component) {\n    this.transaction.didUpdate(component);\n  }\n  scheduleInstallModifier(modifier) {\n    if (this.isInteractive) {\n      this.transaction.scheduleInstallModifier(modifier);\n    }\n  }\n  scheduleUpdateModifier(modifier) {\n    if (this.isInteractive) {\n      this.transaction.scheduleUpdateModifier(modifier);\n    }\n  }\n  commit() {\n    let transaction = this.transaction;\n    this[TRANSACTION] = null;\n    transaction.commit();\n    this.debugRenderTree?.commit();\n    this.delegate.onTransactionCommit();\n  }\n}\nfunction runtimeOptions(options, delegate, artifacts, resolver) {\n  return {\n    env: new EnvironmentImpl(options, delegate),\n    program: new ProgramImpl(artifacts.constants, artifacts.heap),\n    resolver\n  };\n}\nfunction inTransaction(env, block) {\n  if (!env[TRANSACTION]) {\n    env.begin();\n    try {\n      block();\n    } finally {\n      env.commit();\n    }\n  } else {\n    block();\n  }\n}\n\nfunction createCurryRef(type, inner, owner, args, resolver, isStrict) {\n  let lastValue, curriedDefinition;\n  return createComputeRef(() => {\n    let value = valueForRef(inner);\n    if (value === lastValue) {\n      return curriedDefinition;\n    }\n    if (isCurriedType(value, type)) {\n      curriedDefinition = args ? curry(type, value, owner, args) : args;\n    } else if (type === CURRIED_COMPONENT && typeof value === 'string' && value) {\n      curriedDefinition = curry(type, value, owner, args);\n    } else if (isIndexable(value)) {\n      curriedDefinition = curry(type, value, owner, args);\n    } else {\n      curriedDefinition = null;\n    }\n    lastValue = value;\n    return curriedDefinition;\n  });\n}\n\nfunction createConcatRef(partsRefs) {\n  return createComputeRef(() => {\n    const parts = [];\n    for (const ref of partsRefs) {\n      const value = valueForRef(ref);\n      if (value !== null && value !== undefined) {\n        parts.push(castToString(value));\n      }\n    }\n    if (parts.length > 0) {\n      return parts.join('');\n    }\n    return null;\n  });\n}\nfunction castToString(value) {\n  if (typeof value === 'string') {\n    return value;\n  } else if (typeof value.toString !== 'function') {\n    return '';\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-base-to-string -- @fixme\n  return String(value);\n}\n\nAPPEND_OPCODES.add(VM_CURRY_OP, (vm, {\n  op1: type,\n  op2: _isStrict\n}) => {\n  let stack = vm.stack;\n  let definition = check(stack.pop());\n  let capturedArgs = check(stack.pop());\n  let owner = vm.getOwner();\n  vm.context.resolver;\n  vm.loadValue($v0, createCurryRef(type, definition, owner, capturedArgs));\n});\nAPPEND_OPCODES.add(VM_DYNAMIC_HELPER_OP, vm => {\n  let stack = vm.stack;\n  let ref = check(stack.pop());\n  let args = check(stack.pop()).capture();\n  let helperRef;\n  let initialOwner = vm.getOwner();\n  let helperInstanceRef = createComputeRef(() => {\n    if (helperRef !== undefined) {\n      destroy(helperRef);\n    }\n    let definition = valueForRef(ref);\n    if (isCurriedType(definition, CURRIED_HELPER)) {\n      let {\n        definition: resolvedDef,\n        owner,\n        positional,\n        named\n      } = resolveCurriedValue(definition);\n      let helper = resolveHelper(resolvedDef);\n      if (named !== undefined) {\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n        args.named = assign({}, ...named, args.named);\n      }\n      if (positional !== undefined) {\n        args.positional = positional.concat(args.positional);\n      }\n      helperRef = helper(args, owner);\n      associateDestroyableChild(helperInstanceRef, helperRef);\n    } else if (isIndexable(definition)) {\n      let helper = resolveHelper(definition);\n      helperRef = helper(args, initialOwner);\n      if (_hasDestroyableChildren(helperRef)) {\n        associateDestroyableChild(helperInstanceRef, helperRef);\n      }\n    } else {\n      helperRef = UNDEFINED_REFERENCE;\n    }\n  });\n  let helperValueRef = createComputeRef(() => {\n    valueForRef(helperInstanceRef);\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n    return valueForRef(helperRef);\n  });\n  vm.associateDestroyable(helperInstanceRef);\n  vm.loadValue($v0, helperValueRef);\n});\nfunction resolveHelper(definition, ref) {\n  let managerOrHelper = getInternalHelperManager(definition, true);\n  let helper;\n  if (managerOrHelper === null) {\n    helper = null;\n  } else {\n    helper = typeof managerOrHelper === 'function' ? managerOrHelper : managerOrHelper.getHelper(definition);\n  }\n  return helper;\n}\nAPPEND_OPCODES.add(VM_HELPER_OP, (vm, {\n  op1: handle\n}) => {\n  let stack = vm.stack;\n  let helper = check(vm.constants.getValue(handle));\n  let args = check(stack.pop());\n  let value = helper(args.capture(), vm.getOwner(), vm.dynamicScope());\n  if (_hasDestroyableChildren(value)) {\n    vm.associateDestroyable(value);\n  }\n  vm.loadValue($v0, value);\n});\nAPPEND_OPCODES.add(VM_GET_VARIABLE_OP, (vm, {\n  op1: symbol\n}) => {\n  let expr = vm.referenceForSymbol(symbol);\n  vm.stack.push(expr);\n});\nAPPEND_OPCODES.add(VM_SET_VARIABLE_OP, (vm, {\n  op1: symbol\n}) => {\n  let expr = check(vm.stack.pop());\n  vm.scope().bindSymbol(symbol, expr);\n});\nAPPEND_OPCODES.add(VM_SET_BLOCK_OP, (vm, {\n  op1: symbol\n}) => {\n  let handle = check(vm.stack.pop());\n  let scope = check(vm.stack.pop());\n  let table = check(vm.stack.pop());\n  vm.scope().bindBlock(symbol, [handle, scope, table]);\n});\nAPPEND_OPCODES.add(VM_ROOT_SCOPE_OP, (vm, {\n  op1: size\n}) => {\n  vm.pushRootScope(size, vm.getOwner());\n});\nAPPEND_OPCODES.add(VM_GET_PROPERTY_OP, (vm, {\n  op1: _key\n}) => {\n  let key = vm.constants.getValue(_key);\n  let expr = check(vm.stack.pop());\n  vm.stack.push(childRefFor(expr, key));\n});\nAPPEND_OPCODES.add(VM_GET_BLOCK_OP, (vm, {\n  op1: _block\n}) => {\n  let {\n    stack\n  } = vm;\n  let block = vm.scope().getBlock(_block);\n  stack.push(block);\n});\nAPPEND_OPCODES.add(VM_SPREAD_BLOCK_OP, vm => {\n  let {\n    stack\n  } = vm;\n  let block = check(stack.pop());\n  if (block && !isUndefinedReference(block)) {\n    let [handleOrCompilable, scope, table] = block;\n    stack.push(table);\n    stack.push(scope);\n    stack.push(handleOrCompilable);\n  } else {\n    stack.push(null);\n    stack.push(null);\n    stack.push(null);\n  }\n});\nfunction isUndefinedReference(input) {\n  return input === UNDEFINED_REFERENCE;\n}\nAPPEND_OPCODES.add(VM_HAS_BLOCK_OP, vm => {\n  let {\n    stack\n  } = vm;\n  let block = check(stack.pop());\n  if (block && !isUndefinedReference(block)) {\n    stack.push(TRUE_REFERENCE);\n  } else {\n    stack.push(FALSE_REFERENCE);\n  }\n});\nAPPEND_OPCODES.add(VM_HAS_BLOCK_PARAMS_OP, vm => {\n  // FIXME(mmun): should only need to push the symbol table\n  vm.stack.pop();\n  vm.stack.pop();\n  let table = check(vm.stack.pop());\n  let hasBlockParams = table && table.parameters.length;\n  vm.stack.push(hasBlockParams ? TRUE_REFERENCE : FALSE_REFERENCE);\n});\nAPPEND_OPCODES.add(VM_CONCAT_OP, (vm, {\n  op1: count\n}) => {\n  let out = new Array(count);\n  for (let i = count; i > 0; i--) {\n    let offset = i - 1;\n    out[offset] = check(vm.stack.pop());\n  }\n  vm.stack.push(createConcatRef(out));\n});\nAPPEND_OPCODES.add(VM_IF_INLINE_OP, vm => {\n  let condition = check(vm.stack.pop());\n  let truthy = check(vm.stack.pop());\n  let falsy = check(vm.stack.pop());\n  vm.stack.push(createComputeRef(() => {\n    if (toBool(valueForRef(condition))) {\n      return valueForRef(truthy);\n    } else {\n      return valueForRef(falsy);\n    }\n  }));\n});\nAPPEND_OPCODES.add(VM_NOT_OP, vm => {\n  let ref = check(vm.stack.pop());\n  vm.stack.push(createComputeRef(() => {\n    return !toBool(valueForRef(ref));\n  }));\n});\nAPPEND_OPCODES.add(VM_GET_DYNAMIC_VAR_OP, vm => {\n  let scope = vm.dynamicScope();\n  let stack = vm.stack;\n  let nameRef = check(stack.pop());\n  stack.push(createComputeRef(() => {\n    let name = String(valueForRef(nameRef));\n    return valueForRef(scope.get(name));\n  }));\n});\nAPPEND_OPCODES.add(VM_LOG_OP, vm => {\n  let {\n    positional\n  } = check(vm.stack.pop()).capture();\n  vm.loadValue($v0, createComputeRef(() => {\n    // eslint-disable-next-line no-console\n    console.log(...reifyPositional(positional));\n  }));\n});\n\nclass DynamicTextContent {\n  constructor(node, reference, lastValue) {\n    this.node = node;\n    this.reference = reference;\n    this.lastValue = lastValue;\n  }\n  evaluate() {\n    let value = valueForRef(this.reference);\n    let {\n      lastValue\n    } = this;\n    if (value === lastValue) return;\n    let normalized;\n    if (isEmpty(value)) {\n      normalized = '';\n    } else if (isString(value)) {\n      normalized = value;\n    } else {\n      normalized = String(value);\n    }\n    if (normalized !== lastValue) {\n      let textNode = this.node;\n      textNode.nodeValue = this.lastValue = normalized;\n    }\n  }\n}\n\nfunction toContentType(value) {\n  if (shouldCoerce(value)) {\n    return ContentType.String;\n  } else if (isCurriedType(value, CURRIED_COMPONENT) || hasInternalComponentManager(value)) {\n    return ContentType.Component;\n  } else if (isCurriedType(value, CURRIED_HELPER) || hasInternalHelperManager(value)) {\n    return ContentType.Helper;\n  } else if (isSafeString(value)) {\n    return ContentType.SafeString;\n  } else if (isFragment(value)) {\n    return ContentType.Fragment;\n  } else if (isNode(value)) {\n    return ContentType.Node;\n  } else {\n    return ContentType.String;\n  }\n}\nfunction toDynamicContentType(value) {\n  if (!isIndexable(value)) {\n    return ContentType.String;\n  }\n  if (isCurriedType(value, CURRIED_COMPONENT) || hasInternalComponentManager(value)) {\n    return ContentType.Component;\n  } else {\n    return ContentType.Helper;\n  }\n}\nAPPEND_OPCODES.add(VM_CONTENT_TYPE_OP, vm => {\n  let reference = check(vm.stack.peek());\n  vm.stack.push(toContentType(valueForRef(reference)));\n  if (!isConstRef(reference)) {\n    vm.updateWith(new AssertFilter(reference, toContentType));\n  }\n});\nAPPEND_OPCODES.add(VM_DYNAMIC_CONTENT_TYPE_OP, vm => {\n  let reference = check(vm.stack.peek());\n  vm.stack.push(toDynamicContentType(valueForRef(reference)));\n  if (!isConstRef(reference)) {\n    vm.updateWith(new AssertFilter(reference, toDynamicContentType));\n  }\n});\nAPPEND_OPCODES.add(VM_APPEND_HTML_OP, vm => {\n  let reference = check(vm.stack.pop());\n  let rawValue = valueForRef(reference);\n  let value = isEmpty(rawValue) ? '' : String(rawValue);\n  vm.tree().appendDynamicHTML(value);\n});\nAPPEND_OPCODES.add(VM_APPEND_SAFE_HTML_OP, vm => {\n  let reference = check(vm.stack.pop());\n  let rawValue = check(valueForRef(reference)).toHTML();\n  let value = isEmpty(rawValue) ? '' : check(rawValue);\n  vm.tree().appendDynamicHTML(value);\n});\nAPPEND_OPCODES.add(VM_APPEND_TEXT_OP, vm => {\n  let reference = check(vm.stack.pop());\n  let rawValue = valueForRef(reference);\n  let value = isEmpty(rawValue) ? '' : String(rawValue);\n  let node = vm.tree().appendDynamicText(value);\n  if (!isConstRef(reference)) {\n    vm.updateWith(new DynamicTextContent(node, reference, value));\n  }\n});\nAPPEND_OPCODES.add(VM_APPEND_DOCUMENT_FRAGMENT_OP, vm => {\n  let reference = check(vm.stack.pop());\n  let value = check(valueForRef(reference));\n  vm.tree().appendDynamicFragment(value);\n});\nAPPEND_OPCODES.add(VM_APPEND_NODE_OP, vm => {\n  let reference = check(vm.stack.pop());\n  let value = check(valueForRef(reference));\n  vm.tree().appendDynamicNode(value);\n});\n\n// Allow the contents of `debugCallback` without extra annotations\n/* eslint-disable @typescript-eslint/no-unused-expressions */\n\nfunction debugCallback(context, get) {\n  if (context !== null && context !== undefined) {\n    // eslint-disable-next-line no-console\n    console.info(\"Use `context`, and `get(<path>)` to debug this template. For named arguments, use `get('@argName')`.\");\n\n    // for example...\n    context === get('this');\n  } else {\n    // eslint-disable-next-line no-console\n    console.info(\"Use `get(<path>)` to debug this template. For named arguments, use `get('@argName')`.\");\n  }\n\n  // eslint-disable-next-line no-debugger\n  debugger;\n}\nlet callback = debugCallback;\n\n// For testing purposes\nfunction setDebuggerCallback(cb) {\n  callback = cb;\n}\nfunction resetDebuggerCallback() {\n  callback = debugCallback;\n}\nclass ScopeInspector {\n  #symbols;\n  constructor(scope, symbols) {\n    this.scope = scope;\n    this.#symbols = symbols;\n  }\n  get(path) {\n    let {\n      scope\n    } = this;\n    let symbols = this.#symbols;\n    let parts = path.split('.');\n    let [head, ...tail] = path.split('.');\n    let ref;\n    if (head === 'this') {\n      ref = scope.getSelf();\n    } else if (symbols.locals[head]) {\n      ref = unwrap(scope.getSymbol(symbols.locals[head]));\n    } else {\n      ref = this.scope.getSelf();\n      tail = parts;\n    }\n    return tail.reduce((r, part) => childRefFor(r, part), ref);\n  }\n}\nAPPEND_OPCODES.add(VM_DEBUGGER_OP, (vm, {\n  op1: _debugInfo\n}) => {\n  let debuggerInfo = vm.constants.getValue(decodeHandle(_debugInfo));\n  let inspector = new ScopeInspector(vm.scope(), debuggerInfo);\n  callback(valueForRef(vm.getSelf()), path => valueForRef(inspector.get(path)));\n});\n\nAPPEND_OPCODES.add(VM_ENTER_LIST_OP, (vm, {\n  op1: relativeStart,\n  op2: elseTarget\n}) => {\n  let stack = vm.stack;\n  let listRef = check(stack.pop());\n  let keyRef = check(stack.pop());\n  let keyValue = valueForRef(keyRef);\n  // eslint-disable-next-line @typescript-eslint/no-base-to-string -- @fixme\n  let key = keyValue === null ? '@identity' : String(keyValue);\n  let iteratorRef = createIteratorRef(listRef, key);\n  let iterator = valueForRef(iteratorRef);\n  vm.updateWith(new AssertFilter(iteratorRef, iterator => iterator.isEmpty()));\n  if (iterator.isEmpty()) {\n    // TODO: Fix this offset, should be accurate\n    vm.lowlevel.goto(elseTarget + 1);\n  } else {\n    vm.enterList(iteratorRef, relativeStart);\n    vm.stack.push(iterator);\n  }\n});\nAPPEND_OPCODES.add(VM_EXIT_LIST_OP, vm => {\n  vm.exitList();\n});\nAPPEND_OPCODES.add(VM_ITERATE_OP, (vm, {\n  op1: breaks\n}) => {\n  let stack = vm.stack;\n  let iterator = check(stack.peek());\n  let item = iterator.next();\n  if (item !== null) {\n    vm.registerItem(vm.enterItem(item));\n  } else {\n    vm.lowlevel.goto(breaks);\n  }\n});\n\nfunction initializeRegistersWithSP(sp) {\n  return [0, -1, sp, 0];\n}\nclass LowLevelVM {\n  currentOpSize = 0;\n  registers;\n  context;\n  constructor(stack, context, externs, registers) {\n    this.stack = stack;\n    this.externs = externs;\n    this.context = context;\n    this.registers = registers;\n  }\n  fetchRegister(register) {\n    return this.registers[register];\n  }\n  loadRegister(register, value) {\n    this.registers[register] = value;\n  }\n  setPc(pc) {\n    this.registers[$pc] = pc;\n  }\n\n  // Start a new frame and save $ra and $fp on the stack\n  pushFrame() {\n    this.stack.push(this.registers[$ra]);\n    this.stack.push(this.registers[$fp]);\n    this.registers[$fp] = this.registers[$sp] - 1;\n  }\n\n  // Restore $ra, $sp and $fp\n  popFrame() {\n    this.registers[$sp] = this.registers[$fp] - 1;\n    this.registers[$ra] = this.stack.get(0);\n    this.registers[$fp] = this.stack.get(1);\n  }\n  pushSmallFrame() {\n    this.stack.push(this.registers[$ra]);\n  }\n  popSmallFrame() {\n    this.registers[$ra] = this.stack.pop();\n  }\n\n  // Jump to an address in `program`\n  goto(offset) {\n    this.setPc(this.target(offset));\n  }\n  target(offset) {\n    return this.registers[$pc] + offset - this.currentOpSize;\n  }\n\n  // Save $pc into $ra, then jump to a new address in `program` (jal in MIPS)\n  call(handle) {\n    this.registers[$ra] = this.registers[$pc];\n    this.setPc(this.context.program.heap.getaddr(handle));\n  }\n\n  // Put a specific `program` address in $ra\n  returnTo(offset) {\n    this.registers[$ra] = this.target(offset);\n  }\n\n  // Return to the `program` address stored in $ra\n  return() {\n    this.setPc(this.registers[$ra]);\n  }\n  nextStatement() {\n    let {\n      registers,\n      context\n    } = this;\n    let pc = registers[$pc];\n    if (pc === -1) {\n      return null;\n    }\n\n    // We have to save off the current operations size so that\n    // when we do a jump we can calculate the correct offset\n    // to where we are going. We can't simply ask for the size\n    // in a jump because we have have already incremented the\n    // program counter to the next instruction prior to executing.\n    let opcode = context.program.opcode(pc);\n    let operationSize = this.currentOpSize = opcode.size;\n    this.registers[$pc] += operationSize;\n    return opcode;\n  }\n  evaluateOuter(opcode, vm) {\n    {\n      this.evaluateInner(opcode, vm);\n    }\n  }\n  evaluateInner(opcode, vm) {\n    if (opcode.isMachine) {\n      this.evaluateMachine(opcode, vm);\n    } else {\n      this.evaluateSyscall(opcode, vm);\n    }\n  }\n  evaluateMachine(opcode, vm) {\n    switch (opcode.type) {\n      case VM_PUSH_FRAME_OP:\n        return void this.pushFrame();\n      case VM_POP_FRAME_OP:\n        return void this.popFrame();\n      case VM_INVOKE_STATIC_OP:\n        return void this.call(opcode.op1);\n      case VM_INVOKE_VIRTUAL_OP:\n        return void vm.call(this.stack.pop());\n      case VM_JUMP_OP:\n        return void this.goto(opcode.op1);\n      case VM_RETURN_OP:\n        return void vm.return();\n      case VM_RETURN_TO_OP:\n        return void this.returnTo(opcode.op1);\n    }\n  }\n  evaluateSyscall(opcode, vm) {\n    APPEND_OPCODES.evaluate(vm, opcode, opcode.type);\n  }\n}\n\nclass UpdatingVM {\n  env;\n  dom;\n  alwaysRevalidate;\n  frameStack = new StackImpl();\n  constructor(env, {\n    alwaysRevalidate = false\n  }) {\n    this.env = env;\n    this.dom = env.getDOM();\n    this.alwaysRevalidate = alwaysRevalidate;\n  }\n  execute(opcodes, handler) {\n    {\n      this._execute(opcodes, handler);\n    }\n  }\n  _execute(opcodes, handler) {\n    let {\n      frameStack\n    } = this;\n    this.try(opcodes, handler);\n    while (!frameStack.isEmpty()) {\n      let opcode = this.frame.nextStatement();\n      if (opcode === undefined) {\n        frameStack.pop();\n        continue;\n      }\n      opcode.evaluate(this);\n    }\n  }\n  get frame() {\n    return expect(this.frameStack.current);\n  }\n  goto(index) {\n    this.frame.goto(index);\n  }\n  try(ops, handler) {\n    this.frameStack.push(new UpdatingVMFrame(ops, handler));\n  }\n  throw() {\n    this.frame.handleException();\n    this.frameStack.pop();\n  }\n}\nclass BlockOpcode {\n  [DESTROYABLE_META_KEY];\n  children;\n  bounds;\n  constructor(state, context, bounds, children) {\n    this.state = state;\n    this.context = context;\n    this.children = children;\n    this.bounds = bounds;\n  }\n  parentElement() {\n    return this.bounds.parentElement();\n  }\n  firstNode() {\n    return this.bounds.firstNode();\n  }\n  lastNode() {\n    return this.bounds.lastNode();\n  }\n  evaluate(vm) {\n    vm.try(this.children, null);\n  }\n}\nclass TryOpcode extends BlockOpcode {\n  type = 'try';\n  // Shadows property on base class\n\n  evaluate(vm) {\n    vm.try(this.children, this);\n  }\n  handleException() {\n    let {\n      state,\n      bounds,\n      context: {\n        env\n      }\n    } = this;\n    destroyChildren(this);\n    let tree = NewTreeBuilder.resume(env, bounds);\n    let vm = state.evaluate(tree);\n    let children = this.children = [];\n    let result = vm.execute(vm => {\n      vm.updateWith(this);\n      vm.pushUpdating(children);\n    });\n    associateDestroyableChild(this, result.drop);\n  }\n}\nclass ListItemOpcode extends TryOpcode {\n  retained = false;\n  index = -1;\n  constructor(state, context, bounds, key, memo, value) {\n    super(state, context, bounds, []);\n    this.key = key;\n    this.memo = memo;\n    this.value = value;\n  }\n  shouldRemove() {\n    return !this.retained;\n  }\n  reset() {\n    this.retained = false;\n  }\n}\nclass ListBlockOpcode extends BlockOpcode {\n  type = 'list-block';\n  opcodeMap = new Map();\n  marker = null;\n  lastIterator;\n  constructor(state, context, bounds, children, iterableRef) {\n    super(state, context, bounds, children);\n    this.iterableRef = iterableRef;\n    this.lastIterator = valueForRef(iterableRef);\n  }\n  initializeChild(opcode) {\n    opcode.index = this.children.length - 1;\n    this.opcodeMap.set(opcode.key, opcode);\n  }\n  evaluate(vm) {\n    let iterator = valueForRef(this.iterableRef);\n    if (this.lastIterator !== iterator) {\n      let {\n        bounds\n      } = this;\n      let {\n        dom\n      } = vm;\n      let marker = this.marker = dom.createComment('');\n      dom.insertAfter(bounds.parentElement(), marker, expect(bounds.lastNode()));\n      this.sync(iterator);\n      this.parentElement().removeChild(marker);\n      this.marker = null;\n      this.lastIterator = iterator;\n    }\n\n    // Run now-updated updating opcodes\n    super.evaluate(vm);\n  }\n  sync(iterator) {\n    let {\n      opcodeMap: itemMap,\n      children\n    } = this;\n    let currentOpcodeIndex = 0;\n    let seenIndex = 0;\n    this.children = this.bounds.boundList = [];\n    while (true) {\n      let item = iterator.next();\n      if (item === null) break;\n      let opcode = children[currentOpcodeIndex];\n      let {\n        key\n      } = item;\n\n      // Items that have already been found and moved will already be retained,\n      // we can continue until we find the next unretained item\n      while (opcode !== undefined && opcode.retained) {\n        opcode = children[++currentOpcodeIndex];\n      }\n      if (opcode !== undefined && opcode.key === key) {\n        this.retainItem(opcode, item);\n        currentOpcodeIndex++;\n      } else if (itemMap.has(key)) {\n        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n        let itemOpcode = itemMap.get(key);\n\n        // The item opcode was seen already, so we should move it.\n        if (itemOpcode.index < seenIndex) {\n          this.moveItem(itemOpcode, item, opcode);\n        } else {\n          // Update the seen index, we are going to be moving this item around\n          // so any other items that come before it will likely need to move as\n          // well.\n          seenIndex = itemOpcode.index;\n          let seenUnretained = false;\n\n          // iterate through all of the opcodes between the current position and\n          // the position of the item's opcode, and determine if they are all\n          // retained.\n          for (let i = currentOpcodeIndex + 1; i < seenIndex; i++) {\n            if (!unwrap(children[i]).retained) {\n              seenUnretained = true;\n              break;\n            }\n          }\n\n          // If we have seen only retained opcodes between this and the matching\n          // opcode, it means that all the opcodes in between have been moved\n          // already, and we can safely retain this item's opcode.\n          if (!seenUnretained) {\n            this.retainItem(itemOpcode, item);\n            currentOpcodeIndex = seenIndex + 1;\n          } else {\n            this.moveItem(itemOpcode, item, opcode);\n            currentOpcodeIndex++;\n          }\n        }\n      } else {\n        this.insertItem(item, opcode);\n      }\n    }\n    for (const opcode of children) {\n      if (!opcode.retained) {\n        this.deleteItem(opcode);\n      } else {\n        opcode.reset();\n      }\n    }\n  }\n  retainItem(opcode, item) {\n    let {\n      children\n    } = this;\n    updateRef(opcode.memo, item.memo);\n    updateRef(opcode.value, item.value);\n    opcode.retained = true;\n    opcode.index = children.length;\n    children.push(opcode);\n  }\n  insertItem(item, before) {\n    let {\n      opcodeMap,\n      bounds,\n      state,\n      children,\n      context: {\n        env\n      }\n    } = this;\n    let {\n      key\n    } = item;\n    let nextSibling = before === undefined ? this.marker : before.firstNode();\n    let elementStack = NewTreeBuilder.forInitialRender(env, {\n      element: bounds.parentElement(),\n      nextSibling\n    });\n    let vm = state.evaluate(elementStack);\n    vm.execute(vm => {\n      let opcode = vm.enterItem(item);\n      opcode.index = children.length;\n      children.push(opcode);\n      opcodeMap.set(key, opcode);\n      associateDestroyableChild(this, opcode);\n    });\n  }\n  moveItem(opcode, item, before) {\n    let {\n      children\n    } = this;\n    updateRef(opcode.memo, item.memo);\n    updateRef(opcode.value, item.value);\n    opcode.retained = true;\n    let currentSibling, nextSibling;\n    if (before === undefined) {\n      move(opcode, this.marker);\n    } else {\n      currentSibling = opcode.lastNode().nextSibling;\n      nextSibling = before.firstNode();\n\n      // Items are moved throughout the algorithm, so there are cases where the\n      // the items already happen to be siblings (e.g. an item in between was\n      // moved before this move happened). Check to see if they are siblings\n      // first before doing the move.\n      if (currentSibling !== nextSibling) {\n        move(opcode, nextSibling);\n      }\n    }\n    opcode.index = children.length;\n    children.push(opcode);\n  }\n  deleteItem(opcode) {\n    destroy(opcode);\n    clear(opcode);\n    this.opcodeMap.delete(opcode.key);\n  }\n}\nclass UpdatingVMFrame {\n  current = 0;\n  constructor(ops, exceptionHandler) {\n    this.ops = ops;\n    this.exceptionHandler = exceptionHandler;\n  }\n  goto(index) {\n    this.current = index;\n  }\n  nextStatement() {\n    return this.ops[this.current++];\n  }\n  handleException() {\n    if (this.exceptionHandler) {\n      this.exceptionHandler.handleException();\n    }\n  }\n}\n\nclass RenderResultImpl {\n  [DESTROYABLE_META_KEY];\n  constructor(env, updating, bounds, drop) {\n    this.env = env;\n    this.updating = updating;\n    this.bounds = bounds;\n    this.drop = drop;\n    associateDestroyableChild(this, drop);\n    registerDestructor(this, () => clear(this.bounds));\n  }\n  rerender({\n    alwaysRevalidate = false\n  } = {\n    alwaysRevalidate: false\n  }) {\n    let {\n      env,\n      updating\n    } = this;\n    let vm = new UpdatingVM(env, {\n      alwaysRevalidate\n    });\n    vm.execute(updating, this);\n  }\n  parentElement() {\n    return this.bounds.parentElement();\n  }\n  firstNode() {\n    return this.bounds.firstNode();\n  }\n  lastNode() {\n    return this.bounds.lastNode();\n  }\n  handleException() {\n  }\n}\n\nclass EvaluationStackImpl {\n  static restore(snapshot, pc) {\n    const stack = new this(snapshot.slice(), initializeRegistersWithSP(snapshot.length - 1));\n    stack.registers[$pc] = pc;\n    stack.registers[$sp] = snapshot.length - 1;\n    stack.registers[$fp] = -1;\n    return stack;\n  }\n  registers;\n\n  // fp -> sp\n  constructor(stack = [], registers) {\n    this.stack = stack;\n    this.registers = registers;\n  }\n  push(value) {\n    this.stack[++this.registers[$sp]] = value;\n  }\n  dup(position = this.registers[$sp]) {\n    this.stack[++this.registers[$sp]] = this.stack[position];\n  }\n  copy(from, to) {\n    this.stack[to] = this.stack[from];\n  }\n  pop(n = 1) {\n    let top = this.stack[this.registers[$sp]];\n    this.registers[$sp] -= n;\n    return top;\n  }\n  peek(offset = 0) {\n    return this.stack[this.registers[$sp] - offset];\n  }\n  get(offset, base = this.registers[$fp]) {\n    return this.stack[base + offset];\n  }\n  set(value, offset, base = this.registers[$fp]) {\n    this.stack[base + offset] = value;\n  }\n  slice(start, end) {\n    return this.stack.slice(start, end);\n  }\n  capture(items) {\n    let end = this.registers[$sp] + 1;\n    let start = end - items;\n    return this.stack.slice(start, end);\n  }\n  reset() {\n    this.stack.length = 0;\n  }\n  static {\n  }\n}\n\n/*\n * The VM's own root destroyable, on the fast path like the block opcodes.\n *\n * Introduction and background in https://github.com/emberjs/ember.js/pull/21571\n */\nclass Drop {\n  [DESTROYABLE_META_KEY];\n}\nclass Stacks {\n  drop = new Drop();\n  scope = new StackImpl();\n  dynamicScope = new StackImpl();\n  updating = new StackImpl();\n  cache = new StackImpl();\n  list = new StackImpl();\n  destroyable = new StackImpl();\n  constructor(scope, dynamicScope) {\n    this.scope.push(scope);\n    this.dynamicScope.push(dynamicScope);\n    this.destroyable.push(this.drop);\n  }\n}\nclass VM {\n  #stacks;\n  args;\n  lowlevel;\n  debug;\n  trace;\n  get stack() {\n    return this.lowlevel.stack;\n  }\n\n  /* Registers */\n\n  get pc() {\n    return this.lowlevel.fetchRegister($pc);\n  }\n  #registers = [null, null, null, null, null, null, null, null, null];\n\n  /**\n   * Fetch a value from a syscall register onto the stack.\n   *\n   * ## Opcodes\n   *\n   * - Append: `Fetch`\n   *\n   * ## State changes\n   *\n   * [!] push Eval Stack <- $register\n   */\n  fetch(register) {\n    let value = this.fetchValue(register);\n    this.stack.push(value);\n  }\n\n  /**\n   * Load a value from the stack into a syscall register.\n   *\n   * ## Opcodes\n   *\n   * - Append: `Load`\n   *\n   * ## State changes\n   *\n   * [!] pop Eval Stack -> `value`\n   * [$] $register <- `value`\n   */\n  load(register) {\n    let value = this.stack.pop();\n    this.loadValue(register, value);\n  }\n\n  /**\n   * Load a value into a syscall register.\n   *\n   * ## State changes\n   *\n   * [$] $register <- `value`\n   *\n   * @utility\n   */\n  loadValue(register, value) {\n    this.#registers[register] = value;\n  }\n\n  /**\n   * Fetch a value from a register (machine or syscall).\n   *\n   * ## State changes\n   *\n   * [ ] get $register\n   *\n   * @utility\n   */\n\n  fetchValue(register) {\n    if (isLowLevelRegister(register)) {\n      return this.lowlevel.fetchRegister(register);\n    }\n    return this.#registers[register];\n  }\n\n  // Save $pc into $ra, then jump to a new address in `program` (jal in MIPS)\n  call(handle) {\n    if (handle !== null) {\n      this.lowlevel.call(handle);\n    }\n  }\n\n  // Return to the `program` address stored in $ra\n  return() {\n    this.lowlevel.return();\n  }\n  #tree;\n  context;\n  constructor({\n    scope,\n    dynamicScope,\n    stack,\n    pc\n  }, context, tree) {\n    let evalStack = EvaluationStackImpl.restore(stack, pc);\n    this.#tree = tree;\n    this.context = context;\n    this.#stacks = new Stacks(scope, dynamicScope);\n    this.args = new VMArgumentsImpl();\n    this.lowlevel = new LowLevelVM(evalStack, context, externs(), evalStack.registers);\n    this.pushUpdating();\n  }\n  static initial(context, options) {\n    let scope = ScopeImpl.root(options.owner, options.scope ?? {\n      self: UNDEFINED_REFERENCE,\n      size: 0\n    });\n    const state = closureState(context.program.heap.getaddr(options.handle), scope, options.dynamicScope);\n    return new VM(state, context, options.tree);\n  }\n  compile(block) {\n    let handle = unwrapHandle(block.compile(this.context));\n    return handle;\n  }\n  get constants() {\n    return this.context.program.constants;\n  }\n  get program() {\n    return this.context.program;\n  }\n  get env() {\n    return this.context.env;\n  }\n  captureClosure(args, pc = this.lowlevel.fetchRegister($pc)) {\n    return {\n      pc,\n      scope: this.scope(),\n      dynamicScope: this.dynamicScope(),\n      stack: this.stack.capture(args)\n    };\n  }\n  capture(args, pc = this.lowlevel.fetchRegister($pc)) {\n    return new Closure(this.captureClosure(args, pc), this.context);\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `BeginComponentTransaction`\n   *\n   * ## State Changes\n   *\n   * [ ] create `guard` (`JumpIfNotModifiedOpcode`)\n   * [ ] create `tracker` (`BeginTrackFrameOpcode`)\n   * [!] push Updating Stack <- `guard`\n   * [!] push Updating Stack <- `tracker`\n   * [!] push Cache Stack <- `guard`\n   * [!] push Tracking Stack\n   */\n  beginCacheGroup(name) {\n    let opcodes = this.updating();\n    let guard = new JumpIfNotModifiedOpcode();\n    opcodes.push(guard);\n    opcodes.push(new BeginTrackFrameOpcode(name));\n    this.#stacks.cache.push(guard);\n    beginTrackFrame();\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `CommitComponentTransaction`\n   *\n   * ## State Changes\n   *\n   * Create a new `EndTrackFrameOpcode` (`end`)\n   *\n   * [!] pop CacheStack -> `guard`\n   * [!] pop Tracking Stack -> `tag`\n   * [ ] create `end` (`EndTrackFrameOpcode`) with `guard`\n   * [-] consume `tag`\n   */\n  commitCacheGroup() {\n    let opcodes = this.updating();\n    let guard = expect(this.#stacks.cache.pop());\n    let tag = endTrackFrame();\n    opcodes.push(new EndTrackFrameOpcode(guard));\n    guard.finalize(tag, opcodes.length);\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `Enter`\n   *\n   * ## State changes\n   *\n   * [!] push Element Stack as `block`\n   * [ ] create `try` (`TryOpcode`) with `block`, capturing `args` from the Eval Stack\n   *\n   * Did Enter (`try`):\n   * [-] associate destroyable `try`\n   * [!] push Destroyable Stack <- `try`\n   * [!] push Updating List <- `try`\n   * [!] push Updating Stack <- `try.children`\n   */\n  enter(args) {\n    let updating = [];\n    let state = this.capture(args);\n    let block = this.tree().pushResettableBlock();\n    let tryOpcode = new TryOpcode(state, this.context, block, updating);\n    this.didEnter(tryOpcode);\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `Iterate`\n   * - Update: `ListBlock`\n   *\n   * ## State changes\n   *\n   * Create a new ref for the iterator item (`value`).\n   * Create a new ref for the iterator key (`key`).\n   *\n   * [ ] create `valueRef` (`Reference`) from `value`\n   * [ ] create `keyRef` (`Reference`) from `key`\n   * [!] push Eval Stack <- `valueRef`\n   * [!] push Eval Stack <- `keyRef`\n   * [!] push Element Stack <- `UpdatableBlock` as `block`\n   * [ ] capture `closure` with *2* items from the Eval Stack\n   * [ ] create `iteration` (`ListItemOpcode`) with `closure`, `block`, `key`, `keyRef` and `valueRef`\n   *\n   * Did Enter (`iteration`):\n   * [-] associate destroyable `iteration`\n   * [!] push Destroyable Stack <- `iteration`\n   * [!] push Updating List <- `iteration`\n   * [!] push Updating Stack <- `iteration.children`\n   */\n  enterItem({\n    key,\n    value,\n    memo\n  }) {\n    let {\n      stack\n    } = this;\n    let valueRef = createIteratorItemRef(value);\n    let memoRef = createIteratorItemRef(memo);\n    stack.push(valueRef);\n    stack.push(memoRef);\n    let state = this.capture(2);\n    let block = this.tree().pushResettableBlock();\n    let opcode = new ListItemOpcode(state, this.context, block, key, memoRef, valueRef);\n    this.didEnter(opcode);\n    return opcode;\n  }\n  registerItem(opcode) {\n    this.listBlock().initializeChild(opcode);\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `EnterList`\n   *\n   * ## State changes\n   *\n   * [ ] capture `closure` with *0* items from the Eval Stack, and `$pc` from `offset`\n   * [ ] create `updating` (empty `Array`)\n   * [!] push Element Stack <- `list` (`BlockList`) with `updating`\n   * [ ] create `list` (`ListBlockOpcode`) with `closure`, `list`, `updating` and `iterableRef`\n   * [!] push List Stack <- `list`\n   *\n   * Did Enter (`list`):\n   * [-] associate destroyable `list`\n   * [!] push Destroyable Stack <- `list`\n   * [!] push Updating List <- `list`\n   * [!] push Updating Stack <- `list.children`\n   */\n  enterList(iterableRef, offset) {\n    let updating = [];\n    let addr = this.lowlevel.target(offset);\n    let state = this.capture(0, addr);\n    let list = this.tree().pushBlockList(updating);\n    let opcode = new ListBlockOpcode(state, this.context, list, updating, iterableRef);\n    this.#stacks.list.push(opcode);\n    this.didEnter(opcode);\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `Enter`\n   * - Append: `Iterate`\n   * - Append: `EnterList`\n   * - Update: `ListBlock`\n   *\n   * ## State changes\n   *\n   * [-] associate destroyable `opcode`\n   * [!] push Destroyable Stack <- `opcode`\n   * [!] push Updating List <- `opcode`\n   * [!] push Updating Stack <- `opcode.children`\n   *\n   */\n  didEnter(opcode) {\n    this.associateDestroyable(opcode);\n    this.#stacks.destroyable.push(opcode);\n    this.updateWith(opcode);\n    this.pushUpdating(opcode.children);\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `Exit`\n   * - Append: `ExitList`\n   *\n   * ## State changes\n   *\n   * [!] pop Destroyable Stack\n   * [!] pop Element Stack\n   * [!] pop Updating Stack\n   */\n  exit() {\n    this.#stacks.destroyable.pop();\n    this.#tree.popBlock();\n    this.popUpdating();\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `ExitList`\n   *\n   * ## State changes\n   *\n   * Pop List:\n   * [!] pop Destroyable Stack\n   * [!] pop Element Stack\n   * [!] pop Updating Stack\n   *\n   * [!] pop List Stack\n   */\n  exitList() {\n    this.exit();\n    this.#stacks.list.pop();\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `RootScope`\n   * - Append: `VirtualRootScope`\n   *\n   * ## State changes\n   *\n   * [!] push Scope Stack\n   */\n  pushRootScope(size, owner) {\n    let scope = ScopeImpl.sized(owner, size);\n    this.#stacks.scope.push(scope);\n    return scope;\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `ChildScope`\n   *\n   * ## State changes\n   *\n   * [!] push Scope Stack <- `child` of current Scope\n   */\n  pushChildScope() {\n    this.#stacks.scope.push(this.scope().child());\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `Yield`\n   *\n   * ## State changes\n   *\n   * [!] push Scope Stack <- `scope`\n   */\n  pushScope(scope) {\n    this.#stacks.scope.push(scope);\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `PopScope`\n   *\n   * ## State changes\n   *\n   * [!] pop Scope Stack\n   */\n  popScope() {\n    this.#stacks.scope.pop();\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `PushDynamicScope`\n   *\n   * ## State changes:\n   *\n   * [!] push Dynamic Scope Stack <- child of current Dynamic Scope\n   */\n  pushDynamicScope() {\n    let child = this.dynamicScope().child();\n    this.#stacks.dynamicScope.push(child);\n    return child;\n  }\n\n  /**\n   * ## Opcodes\n   *\n   * - Append: `BindDynamicScope`\n   *\n   * ## State changes:\n   *\n   * [!] pop Dynamic Scope Stack `names.length` times\n   */\n  bindDynamicScope(names) {\n    let scope = this.dynamicScope();\n    for (const name of reverse(names)) {\n      scope.set(name, this.stack.pop());\n    }\n  }\n\n  /**\n   * ## State changes\n   *\n   * - [!] push Updating Stack\n   *\n   * @utility\n   */\n  pushUpdating(list = []) {\n    this.#stacks.updating.push(list);\n  }\n\n  /**\n   * ## State changes\n   *\n   * [!] pop Updating Stack\n   *\n   * @utility\n   */\n  popUpdating() {\n    return expect(this.#stacks.updating.pop());\n  }\n\n  /**\n   * ## State changes\n   *\n   * [!] push Updating List\n   *\n   * @utility\n   */\n  updateWith(opcode) {\n    this.updating().push(opcode);\n  }\n  listBlock() {\n    return expect(this.#stacks.list.current);\n  }\n\n  /**\n   * ## State changes\n   *\n   * [-] associate destroyable `child`\n   *\n   * @utility\n   */\n  associateDestroyable(child) {\n    let parent = expect(this.#stacks.destroyable.current);\n    associateDestroyableChild(parent, child);\n  }\n  updating() {\n    return expect(this.#stacks.updating.current);\n  }\n\n  /**\n   * Get Tree Builder\n   */\n  tree() {\n    return this.#tree;\n  }\n\n  /**\n   * Get current Scope\n   */\n  scope() {\n    return expect(this.#stacks.scope.current);\n  }\n\n  /**\n   * Get current Dynamic Scope\n   */\n  dynamicScope() {\n    return expect(this.#stacks.dynamicScope.current);\n  }\n  popDynamicScope() {\n    this.#stacks.dynamicScope.pop();\n  }\n\n  /// SCOPE HELPERS\n\n  getOwner() {\n    return this.scope().owner;\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  getSelf() {\n    return this.scope().getSelf();\n  }\n  referenceForSymbol(symbol) {\n    return this.scope().getSymbol(symbol);\n  }\n\n  /// EXECUTION\n\n  execute(initialize) {\n    {\n      return this._execute(initialize);\n    }\n  }\n  _execute(initialize) {\n    if (initialize) initialize(this);\n    let result;\n    do result = this.next(); while (!result.done);\n    return result.value;\n  }\n  next() {\n    let {\n      env\n    } = this;\n    let opcode = this.lowlevel.nextStatement();\n    let result;\n    if (opcode !== null) {\n      this.lowlevel.evaluateOuter(opcode, this);\n      result = {\n        done: false,\n        value: null\n      };\n    } else {\n      // Unload the stack\n      this.stack.reset();\n      result = {\n        done: true,\n        value: new RenderResultImpl(env, this.popUpdating(), this.#tree.popBlock(), this.#stacks.drop)\n      };\n    }\n    return result;\n  }\n}\nfunction closureState(pc, scope, dynamicScope) {\n  return {\n    pc,\n    scope,\n    dynamicScope,\n    stack: []\n  };\n}\n/**\n * A closure captures the state of the VM for a particular block of code that is necessary to\n * re-invoke the block in the future.\n *\n * In practice, this allows us to clear the previous render and \"replay\" the block's execution,\n * rendering content in the same position as the first render.\n */\nclass Closure {\n  state;\n  context;\n  constructor(state, context) {\n    this.state = state;\n    this.context = context;\n  }\n  evaluate(tree) {\n    return new VM(this.state, this.context, tree);\n  }\n}\n\nclass TemplateIteratorImpl {\n  constructor(vm) {\n    this.vm = vm;\n  }\n  next() {\n    return this.vm.next();\n  }\n  sync() {\n    {\n      return this.vm.execute();\n    }\n  }\n}\nfunction renderSync(env, iterator) {\n  let result;\n  inTransaction(env, () => result = iterator.sync());\n\n  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n  return result;\n}\nfunction renderMain(context, owner, self, tree, layout, dynamicScope = new DynamicScopeImpl()) {\n  let handle = unwrapHandle(layout.compile(context));\n  let numSymbols = layout.symbolTable.symbols.length;\n  let vm = VM.initial(context, {\n    scope: {\n      self,\n      size: numSymbols\n    },\n    dynamicScope,\n    tree,\n    handle,\n    owner\n  });\n  return new TemplateIteratorImpl(vm);\n}\nfunction renderInvocation(vm, context, owner, definition, args) {\n  // Get a list of tuples of argument names and references, like\n  // [['title', reference], ['name', reference]]\n  const argList = Object.keys(args).map(key => [key, args[key]]);\n  const blockNames = ['main', 'else', 'attrs'];\n  // Prefix argument names with `@` symbol\n  const argNames = argList.map(([name]) => `@${name}`);\n  let reified = vm.constants.component(definition, owner, undefined, '{ROOT}');\n  vm.lowlevel.pushFrame();\n\n  // Push blocks on to the stack, three stack values per block\n  for (let i = 0; i < 3 * blockNames.length; i++) {\n    vm.stack.push(null);\n  }\n  vm.stack.push(null);\n\n  // For each argument, push its backing reference on to the stack\n  argList.forEach(([, reference]) => {\n    vm.stack.push(reference);\n  });\n\n  // Configure VM based on blocks and args just pushed on to the stack.\n  vm.args.setup(vm.stack, argNames, blockNames, 0, true);\n  const compilable = expect(reified.compilable);\n  const layoutHandle = unwrapHandle(compilable.compile(context));\n  const invocation = {\n    handle: layoutHandle,\n    symbolTable: compilable.symbolTable\n  };\n\n  // Needed for the Op.Main opcode: arguments, component invocation object, and\n  // component definition.\n  vm.stack.push(vm.args);\n  vm.stack.push(invocation);\n  vm.stack.push(reified);\n  return new TemplateIteratorImpl(vm);\n}\nfunction renderComponent(context, tree, owner, definition, args = {}, dynamicScope = new DynamicScopeImpl()) {\n  let vm = VM.initial(context, {\n    tree,\n    handle: context.stdlib.main,\n    dynamicScope,\n    owner\n  });\n  return renderInvocation(vm, context, owner, definition, recordToReference(args));\n}\nfunction recordToReference(record) {\n  const root = createConstRef(record);\n  return Object.keys(record).reduce((acc, key) => {\n    acc[key] = childRefFor(root, key);\n    return acc;\n  }, {});\n}\n\nexport { DOMChanges as D, EnvironmentImpl as E, LowLevelVM as L, ScopeImpl as S, UpdatingVM as U, DynamicScopeImpl as a, DOMChangesImpl as b, isWhitespace as c, renderMain as d, renderSync as e, resetDebuggerCallback as f, runtimeOptions as g, inTransaction as i, renderComponent as r, setDebuggerCallback as s };\n","/**\n * Every renderer that has at least one live root.\n *\n * This covers each application's `renderer:-dom`\n * and every renderer that `renderComponent` created.\n *\n * It lives in its own module so that `@ember/debug`\n * can read it without importing the renderer.\n */\nconst renderers = [];\n\nexport { renderers as r };\n","function callbacksFor(object) {\n  let callbacks = object._promiseCallbacks;\n  if (!callbacks) {\n    callbacks = object._promiseCallbacks = {};\n  }\n  return callbacks;\n}\n\n/**\n  @class EventTarget\n  @for rsvp\n  @public\n*/\nconst EventTarget = {\n  /**\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  */\n  mixin(object) {\n    object.on = this.on;\n    object.off = this.off;\n    object.trigger = this.trigger;\n    object._promiseCallbacks = undefined;\n    return object;\n  },\n  /**\n    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  */\n  on(eventName, callback) {\n    if (typeof callback !== 'function') {\n      throw new TypeError('Callback must be a function');\n    }\n    let allCallbacks = callbacksFor(this);\n    let callbacks = allCallbacks[eventName];\n    if (!callbacks) {\n      callbacks = allCallbacks[eventName] = [];\n    }\n    if (callbacks.indexOf(callback) === -1) {\n      callbacks.push(callback);\n    }\n  },\n  /**\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  */\n  off(eventName, callback) {\n    let allCallbacks = callbacksFor(this);\n    if (!callback) {\n      allCallbacks[eventName] = [];\n      return;\n    }\n    let callbacks = allCallbacks[eventName];\n    let index = callbacks.indexOf(callback);\n    if (index !== -1) {\n      callbacks.splice(index, 1);\n    }\n  },\n  /**\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  */\n  trigger(eventName, options, label) {\n    let allCallbacks = callbacksFor(this);\n    let callbacks = allCallbacks[eventName];\n    if (callbacks) {\n      // Don't cache the callbacks.length since it may grow\n      let callback;\n      for (let i = 0; i < callbacks.length; i++) {\n        callback = callbacks[i];\n        callback(options, label);\n      }\n    }\n  }\n};\n\nconst config = {\n  instrument: false\n};\nEventTarget['mixin'](config);\nfunction configure(name, value) {\n  if (arguments.length === 2) {\n    config[name] = value;\n  } else {\n    return config[name];\n  }\n}\n\nconst queue$1 = [];\nfunction scheduleFlush$1() {\n  setTimeout(() => {\n    for (let i = 0; i < queue$1.length; i++) {\n      let entry = queue$1[i];\n      let payload = entry.payload;\n      payload.guid = payload.key + payload.id;\n      payload.childGuid = payload.key + payload.childId;\n      if (payload.error) {\n        payload.stack = payload.error.stack;\n      }\n      config['trigger'](entry.name, entry.payload);\n    }\n    queue$1.length = 0;\n  }, 50);\n}\nfunction instrument(eventName, promise, child) {\n  if (1 === queue$1.push({\n    name: eventName,\n    payload: {\n      key: promise._guidKey,\n      id: promise._id,\n      eventName: eventName,\n      detail: promise._result,\n      childId: child && child._id,\n      label: promise._label,\n      timeStamp: Date.now(),\n      error: config[\"instrument-with-stack\"] ? new Error(promise._label) : null\n    }\n  })) {\n    scheduleFlush$1();\n  }\n}\n\n/**\n  `Promise.resolve` returns a promise that will become resolved with the\n  passed `value`. It is shorthand for the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = new Promise(function(resolve, reject){\n    resolve(1);\n  });\n\n  promise.then(function(value){\n    // value === 1\n  });\n  ```\n\n  Instead of writing the above, your code now simply becomes the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = RSVP.Promise.resolve(1);\n\n  promise.then(function(value){\n    // value === 1\n  });\n  ```\n\n  @method resolve\n  @for Promise\n  @static\n  @param {*} object value that the returned promise will be resolved with\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise that will become fulfilled with the given\n  `value`\n*/\nfunction resolve$2(object, label) {\n  /*jshint validthis:true */\n  let Constructor = this;\n  if (object && typeof object === 'object' && object.constructor === Constructor) {\n    return object;\n  }\n  let promise = new Constructor(noop, label);\n  resolve$1(promise, object);\n  return promise;\n}\n\nfunction withOwnPromise() {\n  return new TypeError('A promises callback cannot return that same promise.');\n}\nfunction objectOrFunction(x) {\n  let type = typeof x;\n  return x !== null && (type === 'object' || type === 'function');\n}\nfunction noop() {}\nconst PENDING = void 0;\nconst FULFILLED = 1;\nconst REJECTED = 2;\nfunction tryThen(then, value, fulfillmentHandler, rejectionHandler) {\n  try {\n    then.call(value, fulfillmentHandler, rejectionHandler);\n  } catch (e) {\n    return e;\n  }\n}\nfunction handleForeignThenable(promise, thenable, then) {\n  config.async(promise => {\n    let sealed = false;\n    let error = tryThen(then, thenable, value => {\n      if (sealed) {\n        return;\n      }\n      sealed = true;\n      if (thenable === value) {\n        fulfill(promise, value);\n      } else {\n        resolve$1(promise, value);\n      }\n    }, reason => {\n      if (sealed) {\n        return;\n      }\n      sealed = true;\n      reject$2(promise, reason);\n    }, 'Settle: ' + (promise._label || ' unknown promise'));\n    if (!sealed && error) {\n      sealed = true;\n      reject$2(promise, error);\n    }\n  }, promise);\n}\nfunction handleOwnThenable(promise, thenable) {\n  if (thenable._state === FULFILLED) {\n    fulfill(promise, thenable._result);\n  } else if (thenable._state === REJECTED) {\n    thenable._onError = null;\n    reject$2(promise, thenable._result);\n  } else {\n    subscribe(thenable, undefined, value => {\n      if (thenable === value) {\n        fulfill(promise, value);\n      } else {\n        resolve$1(promise, value);\n      }\n    }, reason => reject$2(promise, reason));\n  }\n}\nfunction handleMaybeThenable(promise, maybeThenable, then$1) {\n  let isOwnThenable = maybeThenable.constructor === promise.constructor && then$1 === then && promise.constructor.resolve === resolve$2;\n  if (isOwnThenable) {\n    handleOwnThenable(promise, maybeThenable);\n  } else if (typeof then$1 === 'function') {\n    handleForeignThenable(promise, maybeThenable, then$1);\n  } else {\n    fulfill(promise, maybeThenable);\n  }\n}\nfunction resolve$1(promise, value) {\n  if (promise === value) {\n    fulfill(promise, value);\n  } else if (objectOrFunction(value)) {\n    let then;\n    try {\n      then = value.then;\n    } catch (error) {\n      reject$2(promise, error);\n      return;\n    }\n    handleMaybeThenable(promise, value, then);\n  } else {\n    fulfill(promise, value);\n  }\n}\nfunction publishRejection(promise) {\n  if (promise._onError) {\n    promise._onError(promise._result);\n  }\n  publish(promise);\n}\nfunction fulfill(promise, value) {\n  if (promise._state !== PENDING) {\n    return;\n  }\n  promise._result = value;\n  promise._state = FULFILLED;\n  if (promise._subscribers.length === 0) {\n    if (config.instrument) {\n      instrument('fulfilled', promise);\n    }\n  } else {\n    config.async(publish, promise);\n  }\n}\nfunction reject$2(promise, reason) {\n  if (promise._state !== PENDING) {\n    return;\n  }\n  promise._state = REJECTED;\n  promise._result = reason;\n  config.async(publishRejection, promise);\n}\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n  let subscribers = parent._subscribers;\n  let length = subscribers.length;\n  parent._onError = null;\n  subscribers[length] = child;\n  subscribers[length + FULFILLED] = onFulfillment;\n  subscribers[length + REJECTED] = onRejection;\n  if (length === 0 && parent._state) {\n    config.async(publish, parent);\n  }\n}\nfunction publish(promise) {\n  let subscribers = promise._subscribers;\n  let settled = promise._state;\n  if (config.instrument) {\n    instrument(settled === FULFILLED ? 'fulfilled' : 'rejected', promise);\n  }\n  if (subscribers.length === 0) {\n    return;\n  }\n  let child,\n    callback,\n    result = promise._result;\n  for (let i = 0; i < subscribers.length; i += 3) {\n    child = subscribers[i];\n    callback = subscribers[i + settled];\n    if (child) {\n      invokeCallback(settled, child, callback, result);\n    } else {\n      callback(result);\n    }\n  }\n  promise._subscribers.length = 0;\n}\nfunction invokeCallback(state, promise, callback, result) {\n  let hasCallback = typeof callback === 'function';\n  let value,\n    succeeded = true,\n    error;\n  if (hasCallback) {\n    try {\n      value = callback(result);\n    } catch (e) {\n      succeeded = false;\n      error = e;\n    }\n  } else {\n    value = result;\n  }\n  if (promise._state !== PENDING) ; else if (value === promise) {\n    reject$2(promise, withOwnPromise());\n  } else if (succeeded === false) {\n    reject$2(promise, error);\n  } else if (hasCallback) {\n    resolve$1(promise, value);\n  } else if (state === FULFILLED) {\n    fulfill(promise, value);\n  } else if (state === REJECTED) {\n    reject$2(promise, value);\n  }\n}\nfunction initializePromise(promise, resolver) {\n  let resolved = false;\n  try {\n    resolver(value => {\n      if (resolved) {\n        return;\n      }\n      resolved = true;\n      resolve$1(promise, value);\n    }, reason => {\n      if (resolved) {\n        return;\n      }\n      resolved = true;\n      reject$2(promise, reason);\n    });\n  } catch (e) {\n    reject$2(promise, e);\n  }\n}\n\nfunction then(onFulfillment, onRejection, label) {\n  let parent = this;\n  let state = parent._state;\n  if (state === FULFILLED && !onFulfillment || state === REJECTED && !onRejection) {\n    config.instrument && instrument('chained', parent, parent);\n    return parent;\n  }\n  parent._onError = null;\n  let child = new parent.constructor(noop, label);\n  let result = parent._result;\n  config.instrument && instrument('chained', parent, child);\n  if (state === PENDING) {\n    subscribe(parent, child, onFulfillment, onRejection);\n  } else {\n    let callback = state === FULFILLED ? onFulfillment : onRejection;\n    config.async(() => invokeCallback(state, child, callback, result));\n  }\n  return child;\n}\n\nclass Enumerator {\n  constructor(Constructor, input, abortOnReject, label) {\n    this._instanceConstructor = Constructor;\n    this.promise = new Constructor(noop, label);\n    this._abortOnReject = abortOnReject;\n    this._isUsingOwnPromise = Constructor === Promise$1;\n    this._isUsingOwnResolve = Constructor.resolve === resolve$2;\n    this._init(...arguments);\n  }\n  _init(Constructor, input) {\n    let len = input.length || 0;\n    this.length = len;\n    this._remaining = len;\n    this._result = new Array(len);\n    this._enumerate(input);\n  }\n  _enumerate(input) {\n    let length = this.length;\n    let promise = this.promise;\n    for (let i = 0; promise._state === PENDING && i < length; i++) {\n      this._eachEntry(input[i], i, true);\n    }\n    this._checkFullfillment();\n  }\n  _checkFullfillment() {\n    if (this._remaining === 0) {\n      let result = this._result;\n      fulfill(this.promise, result);\n      this._result = null;\n    }\n  }\n  _settleMaybeThenable(entry, i, firstPass) {\n    let c = this._instanceConstructor;\n    if (this._isUsingOwnResolve) {\n      let then$1,\n        error,\n        succeeded = true;\n      try {\n        then$1 = entry.then;\n      } catch (e) {\n        succeeded = false;\n        error = e;\n      }\n      if (then$1 === then && entry._state !== PENDING) {\n        entry._onError = null;\n        this._settledAt(entry._state, i, entry._result, firstPass);\n      } else if (typeof then$1 !== 'function') {\n        this._settledAt(FULFILLED, i, entry, firstPass);\n      } else if (this._isUsingOwnPromise) {\n        let promise = new c(noop);\n        if (succeeded === false) {\n          reject$2(promise, error);\n        } else {\n          handleMaybeThenable(promise, entry, then$1);\n          this._willSettleAt(promise, i, firstPass);\n        }\n      } else {\n        this._willSettleAt(new c(resolve => resolve(entry)), i, firstPass);\n      }\n    } else {\n      this._willSettleAt(c.resolve(entry), i, firstPass);\n    }\n  }\n  _eachEntry(entry, i, firstPass) {\n    if (entry !== null && typeof entry === 'object') {\n      this._settleMaybeThenable(entry, i, firstPass);\n    } else {\n      this._setResultAt(FULFILLED, i, entry, firstPass);\n    }\n  }\n  _settledAt(state, i, value, firstPass) {\n    let promise = this.promise;\n    if (promise._state === PENDING) {\n      if (this._abortOnReject && state === REJECTED) {\n        reject$2(promise, value);\n      } else {\n        this._setResultAt(state, i, value, firstPass);\n        this._checkFullfillment();\n      }\n    }\n  }\n  _setResultAt(state, i, value, firstPass) {\n    this._remaining--;\n    this._result[i] = value;\n  }\n  _willSettleAt(promise, i, firstPass) {\n    subscribe(promise, undefined, value => this._settledAt(FULFILLED, i, value, firstPass), reason => this._settledAt(REJECTED, i, reason, firstPass));\n  }\n}\nfunction setSettledResult(state, i, value) {\n  this._remaining--;\n  if (state === FULFILLED) {\n    this._result[i] = {\n      state: 'fulfilled',\n      value: value\n    };\n  } else {\n    this._result[i] = {\n      state: 'rejected',\n      reason: value\n    };\n  }\n}\n\n/**\n  `Promise.all` accepts an array of promises, and returns a new promise which\n  is fulfilled with an array of fulfillment values for the passed promises, or\n  rejected with the reason of the first passed promise to be rejected. It casts all\n  elements of the passed iterable to promises as it runs this algorithm.\n\n  Example:\n\n  ```javascript\n  import Promise, { resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = resolve(2);\n  let promise3 = resolve(3);\n  let promises = [ promise1, promise2, promise3 ];\n\n  Promise.all(promises).then(function(array){\n    // The array here would be [ 1, 2, 3 ];\n  });\n  ```\n\n  If any of the `promises` given to `RSVP.all` are rejected, the first promise\n  that is rejected will be given as an argument to the returned promises's\n  rejection handler. For example:\n\n  Example:\n\n  ```javascript\n  import Promise, { resolve, reject } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = reject(new Error(\"2\"));\n  let promise3 = reject(new Error(\"3\"));\n  let promises = [ promise1, promise2, promise3 ];\n\n  Promise.all(promises).then(function(array){\n    // Code here never runs because there are rejected promises!\n  }, function(error) {\n    // error.message === \"2\"\n  });\n  ```\n\n  @method all\n  @for Promise\n  @param {Array} entries array of promises\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled when all `promises` have been\n  fulfilled, or rejected if any of them become rejected.\n  @static\n*/\nfunction all$1(entries, label) {\n  if (!Array.isArray(entries)) {\n    return this.reject(new TypeError(\"Promise.all must be called with an array\"), label);\n  }\n  return new Enumerator(this, entries, true /* abort on reject */, label).promise;\n}\n\n/**\n  `Promise.race` returns a new promise which is settled in the same way as the\n  first passed promise to settle.\n\n  Example:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise1 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 1');\n    }, 200);\n  });\n\n  let promise2 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 2');\n    }, 100);\n  });\n\n  Promise.race([promise1, promise2]).then(function(result){\n    // result === 'promise 2' because it was resolved before promise1\n    // was resolved.\n  });\n  ```\n\n  `Promise.race` is deterministic in that only the state of the first\n  settled promise matters. For example, even if other promises given to the\n  `promises` array argument are resolved, but the first settled promise has\n  become rejected before the other promises became fulfilled, the returned\n  promise will become rejected:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise1 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 1');\n    }, 200);\n  });\n\n  let promise2 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      reject(new Error('promise 2'));\n    }, 100);\n  });\n\n  Promise.race([promise1, promise2]).then(function(result){\n    // Code here never runs\n  }, function(reason){\n    // reason.message === 'promise 2' because promise 2 became rejected before\n    // promise 1 became fulfilled\n  });\n  ```\n\n  An example real-world use case is implementing timeouts:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  Promise.race([ajax('foo.json'), timeout(5000)])\n  ```\n\n  @method race\n  @for Promise\n  @static\n  @param {Array} entries array of promises to observe\n  @param {String} [label] optional string for describing the promise returned.\n  Useful for tooling.\n  @return {Promise} a promise which settles in the same way as the first passed\n  promise to settle.\n*/\nfunction race$1(entries, label) {\n  /*jshint validthis:true */\n  let Constructor = this;\n  let promise = new Constructor(noop, label);\n  if (!Array.isArray(entries)) {\n    reject$2(promise, new TypeError('Promise.race must be called with an array'));\n    return promise;\n  }\n  for (let i = 0; promise._state === PENDING && i < entries.length; i++) {\n    subscribe(Constructor.resolve(entries[i]), undefined, value => resolve$1(promise, value), reason => reject$2(promise, reason));\n  }\n  return promise;\n}\n\n/**\n  `Promise.reject` returns a promise rejected with the passed `reason`.\n  It is shorthand for the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = new Promise(function(resolve, reject){\n    reject(new Error('WHOOPS'));\n  });\n\n  promise.then(function(value){\n    // Code here doesn't run because the promise is rejected!\n  }, function(reason){\n    // reason.message === 'WHOOPS'\n  });\n  ```\n\n  Instead of writing the above, your code now simply becomes the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = Promise.reject(new Error('WHOOPS'));\n\n  promise.then(function(value){\n    // Code here doesn't run because the promise is rejected!\n  }, function(reason){\n    // reason.message === 'WHOOPS'\n  });\n  ```\n\n  @method reject\n  @for Promise\n  @static\n  @param {*} reason value that the returned promise will be rejected with.\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise rejected with the given `reason`.\n*/\nfunction reject$1(reason, label) {\n  /*jshint validthis:true */\n  let Constructor = this;\n  let promise = new Constructor(noop, label);\n  reject$2(promise, reason);\n  return promise;\n}\n\nconst guidKey = 'rsvp_' + Date.now() + '-';\nlet counter = 0;\nfunction needsResolver() {\n  throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n}\nfunction needsNew() {\n  throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n}\n\n/**\n  Promise objects represent the eventual result of an asynchronous operation. The\n  primary way of interacting with a promise is through its `then` method, which\n  registers callbacks to receive either a promise’s eventual value or the reason\n  why the promise cannot be fulfilled.\n\n  Terminology\n  -----------\n\n  - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n  - `thenable` is an object or function that defines a `then` method.\n  - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n  - `exception` is a value that is thrown using the throw statement.\n  - `reason` is a value that indicates why a promise was rejected.\n  - `settled` the final resting state of a promise, fulfilled or rejected.\n\n  A promise can be in one of three states: pending, fulfilled, or rejected.\n\n  Promises that are fulfilled have a fulfillment value and are in the fulfilled\n  state.  Promises that are rejected have a rejection reason and are in the\n  rejected state.  A fulfillment value is never a thenable.\n\n  Promises can also be said to *resolve* a value.  If this value is also a\n  promise, then the original promise's settled state will match the value's\n  settled state.  So a promise that *resolves* a promise that rejects will\n  itself reject, and a promise that *resolves* a promise that fulfills will\n  itself fulfill.\n\n\n  Basic Usage:\n  ------------\n\n  ```js\n  let promise = new Promise(function(resolve, reject) {\n    // on success\n    resolve(value);\n\n    // on failure\n    reject(reason);\n  });\n\n  promise.then(function(value) {\n    // on fulfillment\n  }, function(reason) {\n    // on rejection\n  });\n  ```\n\n  Advanced Usage:\n  ---------------\n\n  Promises shine when abstracting away asynchronous interactions such as\n  `XMLHttpRequest`s.\n\n  ```js\n  function getJSON(url) {\n    return new Promise(function(resolve, reject){\n      let xhr = new XMLHttpRequest();\n\n      xhr.open('GET', url);\n      xhr.onreadystatechange = handler;\n      xhr.responseType = 'json';\n      xhr.setRequestHeader('Accept', 'application/json');\n      xhr.send();\n\n      function handler() {\n        if (this.readyState === this.DONE) {\n          if (this.status === 200) {\n            resolve(this.response);\n          } else {\n            reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n          }\n        }\n      };\n    });\n  }\n\n  getJSON('/posts.json').then(function(json) {\n    // on fulfillment\n  }, function(reason) {\n    // on rejection\n  });\n  ```\n\n  Unlike callbacks, promises are great composable primitives.\n\n  ```js\n  Promise.all([\n    getJSON('/posts'),\n    getJSON('/comments')\n  ]).then(function(values){\n    values[0] // => postsJSON\n    values[1] // => commentsJSON\n\n    return values;\n  });\n  ```\n\n  @class Promise\n  @public\n  @param {function} resolver\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @constructor\n*/\nlet Promise$1 = class Promise {\n  constructor(resolver, label) {\n    this._id = counter++;\n    this._label = label;\n    this._state = undefined;\n    this._result = undefined;\n    this._subscribers = [];\n    config.instrument && instrument('created', this);\n    if (noop !== resolver) {\n      typeof resolver !== 'function' && needsResolver();\n      this instanceof Promise ? initializePromise(this, resolver) : needsNew();\n    }\n  }\n  _onError(reason) {\n    config.after(() => {\n      if (this._onError) {\n        config.trigger('error', reason, this._label);\n      }\n    });\n  }\n\n  /**\n    `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n    as the catch block of a try/catch statement.\n  \n    ```js\n    function findAuthor(){\n      throw new Error('couldn\\'t find that author');\n    }\n  \n    // synchronous\n    try {\n      findAuthor();\n    } catch(reason) {\n      // something went wrong\n    }\n  \n    // async with promises\n    findAuthor().catch(function(reason){\n      // something went wrong\n    });\n    ```\n  \n    @method catch\n    @param {Function} onRejection\n    @param {String} [label] optional string for labeling the promise.\n    Useful for tooling.\n    @return {Promise}\n  */\n  catch(onRejection, label) {\n    return this.then(undefined, onRejection, label);\n  }\n\n  /**\n    `finally` will be invoked regardless of the promise's fate just as native\n    try/catch/finally behaves\n  \n    Synchronous example:\n  \n    ```js\n    findAuthor() {\n      if (Math.random() > 0.5) {\n        throw new Error();\n      }\n      return new Author();\n    }\n  \n    try {\n      return findAuthor(); // succeed or fail\n    } catch(error) {\n      return findOtherAuthor();\n    } finally {\n      // always runs\n      // doesn't affect the return value\n    }\n    ```\n  \n    Asynchronous example:\n  \n    ```js\n    findAuthor().catch(function(reason){\n      return findOtherAuthor();\n    }).finally(function(){\n      // author was either found, or not\n    });\n    ```\n  \n    @method finally\n    @param {Function} callback\n    @param {String} [label] optional string for labeling the promise.\n    Useful for tooling.\n    @return {Promise}\n  */\n  finally(callback, label) {\n    let promise = this;\n    let constructor = promise.constructor;\n    if (typeof callback === 'function') {\n      return promise.then(value => constructor.resolve(callback()).then(() => value), reason => constructor.resolve(callback()).then(() => {\n        throw reason;\n      }));\n    }\n    return promise.then(callback, callback);\n  }\n};\nPromise$1.cast = resolve$2; // deprecated\nPromise$1.all = all$1;\nPromise$1.race = race$1;\nPromise$1.resolve = resolve$2;\nPromise$1.reject = reject$1;\nPromise$1.prototype._guidKey = guidKey;\n\n/**\n  The primary way of interacting with a promise is through its `then` method,\n  which registers callbacks to receive either a promise's eventual value or the\n  reason why the promise cannot be fulfilled.\n\n  ```js\n  findUser().then(function(user){\n    // user is available\n  }, function(reason){\n    // user is unavailable, and you are given the reason why\n  });\n  ```\n\n  Chaining\n  --------\n\n  The return value of `then` is itself a promise.  This second, 'downstream'\n  promise is resolved with the return value of the first promise's fulfillment\n  or rejection handler, or rejected if the handler throws an exception.\n\n  ```js\n  findUser().then(function (user) {\n    return user.name;\n  }, function (reason) {\n    return 'default name';\n  }).then(function (userName) {\n    // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n    // will be `'default name'`\n  });\n\n  findUser().then(function (user) {\n    throw new Error('Found user, but still unhappy');\n  }, function (reason) {\n    throw new Error('`findUser` rejected and we\\'re unhappy');\n  }).then(function (value) {\n    // never reached\n  }, function (reason) {\n    // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n    // If `findUser` rejected, `reason` will be '`findUser` rejected and we\\'re unhappy'.\n  });\n  ```\n  If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n\n  ```js\n  findUser().then(function (user) {\n    throw new PedagogicalException('Upstream error');\n  }).then(function (value) {\n    // never reached\n  }).then(function (value) {\n    // never reached\n  }, function (reason) {\n    // The `PedgagocialException` is propagated all the way down to here\n  });\n  ```\n\n  Assimilation\n  ------------\n\n  Sometimes the value you want to propagate to a downstream promise can only be\n  retrieved asynchronously. This can be achieved by returning a promise in the\n  fulfillment or rejection handler. The downstream promise will then be pending\n  until the returned promise is settled. This is called *assimilation*.\n\n  ```js\n  findUser().then(function (user) {\n    return findCommentsByAuthor(user);\n  }).then(function (comments) {\n    // The user's comments are now available\n  });\n  ```\n\n  If the assimliated promise rejects, then the downstream promise will also reject.\n\n  ```js\n  findUser().then(function (user) {\n    return findCommentsByAuthor(user);\n  }).then(function (comments) {\n    // If `findCommentsByAuthor` fulfills, we'll have the value here\n  }, function (reason) {\n    // If `findCommentsByAuthor` rejects, we'll have the reason here\n  });\n  ```\n\n  Simple Example\n  --------------\n\n  Synchronous Example\n\n  ```javascript\n  let result;\n\n  try {\n    result = findResult();\n    // success\n  } catch(reason) {\n    // failure\n  }\n  ```\n\n  Errback Example\n\n  ```js\n  findResult(function(result, err){\n    if (err) {\n      // failure\n    } else {\n      // success\n    }\n  });\n  ```\n\n  Promise Example;\n\n  ```javascript\n  findResult().then(function(result){\n    // success\n  }, function(reason){\n    // failure\n  });\n  ```\n\n  Advanced Example\n  --------------\n\n  Synchronous Example\n\n  ```javascript\n  let author, books;\n\n  try {\n    author = findAuthor();\n    books  = findBooksByAuthor(author);\n    // success\n  } catch(reason) {\n    // failure\n  }\n  ```\n\n  Errback Example\n\n  ```js\n\n  function foundBooks(books) {\n\n  }\n\n  function failure(reason) {\n\n  }\n\n  findAuthor(function(author, err){\n    if (err) {\n      failure(err);\n      // failure\n    } else {\n      try {\n        findBoooksByAuthor(author, function(books, err) {\n          if (err) {\n            failure(err);\n          } else {\n            try {\n              foundBooks(books);\n            } catch(reason) {\n              failure(reason);\n            }\n          }\n        });\n      } catch(error) {\n        failure(err);\n      }\n      // success\n    }\n  });\n  ```\n\n  Promise Example;\n\n  ```javascript\n  findAuthor().\n    then(findBooksByAuthor).\n    then(function(books){\n      // found books\n  }).catch(function(reason){\n    // something went wrong\n  });\n  ```\n\n  @method then\n  @param {Function} onFulfillment\n  @param {Function} onRejection\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n*/\nPromise$1.prototype.then = then;\n\nfunction makeObject(_, argumentNames) {\n  let obj = {};\n  let length = _.length;\n  let args = new Array(length);\n  for (let x = 0; x < length; x++) {\n    args[x] = _[x];\n  }\n  for (let i = 0; i < argumentNames.length; i++) {\n    let name = argumentNames[i];\n    obj[name] = args[i + 1];\n  }\n  return obj;\n}\nfunction arrayResult(_) {\n  let length = _.length;\n  let args = new Array(length - 1);\n  for (let i = 1; i < length; i++) {\n    args[i - 1] = _[i];\n  }\n  return args;\n}\nfunction wrapThenable(then, promise) {\n  return {\n    then(onFulFillment, onRejection) {\n      return then.call(promise, onFulFillment, onRejection);\n    }\n  };\n}\n\n/**\n  `denodeify` takes a 'node-style' function and returns a function that\n  will return an `Promise`. You can use `denodeify` in Node.js or the\n  browser when you'd prefer to use promises over using callbacks. For example,\n  `denodeify` transforms the following:\n\n  ```javascript\n  let fs = require('fs');\n\n  fs.readFile('myfile.txt', function(err, data){\n    if (err) return handleError(err);\n    handleData(data);\n  });\n  ```\n\n  into:\n\n  ```javascript\n  let fs = require('fs');\n  let readFile = denodeify(fs.readFile);\n\n  readFile('myfile.txt').then(handleData, handleError);\n  ```\n\n  If the node function has multiple success parameters, then `denodeify`\n  just returns the first one:\n\n  ```javascript\n  let request = denodeify(require('request'));\n\n  request('http://example.com').then(function(res) {\n    // ...\n  });\n  ```\n\n  However, if you need all success parameters, setting `denodeify`'s\n  second parameter to `true` causes it to return all success parameters\n  as an array:\n\n  ```javascript\n  let request = denodeify(require('request'), true);\n\n  request('http://example.com').then(function(result) {\n    // result[0] -> res\n    // result[1] -> body\n  });\n  ```\n\n  Or if you pass it an array with names it returns the parameters as a hash:\n\n  ```javascript\n  let request = denodeify(require('request'), ['res', 'body']);\n\n  request('http://example.com').then(function(result) {\n    // result.res\n    // result.body\n  });\n  ```\n\n  Sometimes you need to retain the `this`:\n\n  ```javascript\n  let app = require('express')();\n  let render = denodeify(app.render.bind(app));\n  ```\n\n  The denodified function inherits from the original function. It works in all\n  environments, except IE 10 and below. Consequently all properties of the original\n  function are available to you. However, any properties you change on the\n  denodeified function won't be changed on the original function. Example:\n\n  ```javascript\n  let request = denodeify(require('request')),\n      cookieJar = request.jar(); // <- Inheritance is used here\n\n  request('http://example.com', {jar: cookieJar}).then(function(res) {\n    // cookieJar.cookies holds now the cookies returned by example.com\n  });\n  ```\n\n  Using `denodeify` makes it easier to compose asynchronous operations instead\n  of using callbacks. For example, instead of:\n\n  ```javascript\n  let fs = require('fs');\n\n  fs.readFile('myfile.txt', function(err, data){\n    if (err) { ... } // Handle error\n    fs.writeFile('myfile2.txt', data, function(err){\n      if (err) { ... } // Handle error\n      console.log('done')\n    });\n  });\n  ```\n\n  you can chain the operations together using `then` from the returned promise:\n\n  ```javascript\n  let fs = require('fs');\n  let readFile = denodeify(fs.readFile);\n  let writeFile = denodeify(fs.writeFile);\n\n  readFile('myfile.txt').then(function(data){\n    return writeFile('myfile2.txt', data);\n  }).then(function(){\n    console.log('done')\n  }).catch(function(error){\n    // Handle error\n  });\n  ```\n\n  @method denodeify\n  @public\n  @static\n  @for rsvp\n  @param {Function} nodeFunc a 'node-style' function that takes a callback as\n  its last argument. The callback expects an error to be passed as its first\n  argument (if an error occurred, otherwise null), and the value from the\n  operation as its second argument ('function(err, value){ }').\n  @param {Boolean|Array} [options] An optional paramter that if set\n  to `true` causes the promise to fulfill with the callback's success arguments\n  as an array. This is useful if the node function has multiple success\n  paramters. If you set this paramter to an array with names, the promise will\n  fulfill with a hash with these names as keys and the success parameters as\n  values.\n  @return {Function} a function that wraps `nodeFunc` to return a `Promise`\n*/\nfunction denodeify(nodeFunc, options) {\n  let fn = function () {\n    let l = arguments.length;\n    let args = new Array(l + 1);\n    let promiseInput = false;\n    for (let i = 0; i < l; ++i) {\n      let arg = arguments[i];\n\n      // TODO: this code really needs to be cleaned up\n      if (!promiseInput) {\n        if (arg !== null && typeof arg === 'object') {\n          if (arg.constructor === Promise$1) {\n            promiseInput = true;\n          } else {\n            try {\n              promiseInput = arg.then;\n            } catch (error) {\n              let p = new Promise$1(noop);\n              reject$2(p, error);\n              return p;\n            }\n          }\n        } else {\n          promiseInput = false;\n        }\n        if (promiseInput && promiseInput !== true) {\n          arg = wrapThenable(promiseInput, arg);\n        }\n      }\n      args[i] = arg;\n    }\n    let promise = new Promise$1(noop);\n    args[l] = function (err, val) {\n      if (err) {\n        reject$2(promise, err);\n      } else if (options === undefined) {\n        resolve$1(promise, val);\n      } else if (options === true) {\n        resolve$1(promise, arrayResult(arguments));\n      } else if (Array.isArray(options)) {\n        resolve$1(promise, makeObject(arguments, options));\n      } else {\n        resolve$1(promise, val);\n      }\n    };\n    if (promiseInput) {\n      return handlePromiseInput(promise, args, nodeFunc, this);\n    } else {\n      return handleValueInput(promise, args, nodeFunc, this);\n    }\n  };\n  fn.__proto__ = nodeFunc;\n  return fn;\n}\nfunction handleValueInput(promise, args, nodeFunc, self) {\n  try {\n    nodeFunc.apply(self, args);\n  } catch (error) {\n    reject$2(promise, error);\n  }\n  return promise;\n}\nfunction handlePromiseInput(promise, args, nodeFunc, self) {\n  return Promise$1.all(args).then(args => handleValueInput(promise, args, nodeFunc, self));\n}\n\n/**\n  This is a convenient alias for `Promise.all`.\n\n  @method all\n  @public\n  @static\n  @for rsvp\n  @param {Array} array Array of promises.\n  @param {String} [label] An optional label. This is useful\n  for tooling.\n*/\nfunction all(array, label) {\n  return Promise$1.all(array, label);\n}\n\n/**\n@module rsvp\n@public\n**/\n\nclass AllSettled extends Enumerator {\n  constructor(Constructor, entries, label) {\n    super(Constructor, entries, false /* don't abort on reject */, label);\n  }\n}\nAllSettled.prototype._setResultAt = setSettledResult;\n\n/**\n`RSVP.allSettled` is similar to `RSVP.all`, but instead of implementing\na fail-fast method, it waits until all the promises have returned and\nshows you all the results. This is useful if you want to handle multiple\npromises' failure states together as a set.\n Returns a promise that is fulfilled when all the given promises have been\nsettled. The return promise is fulfilled with an array of the states of\nthe promises passed into the `promises` array argument.\n Each state object will either indicate fulfillment or rejection, and\nprovide the corresponding value or reason. The states will take one of\nthe following formats:\n ```javascript\n{ state: 'fulfilled', value: value }\n  or\n{ state: 'rejected', reason: reason }\n```\n Example:\n ```javascript\nlet promise1 = RSVP.Promise.resolve(1);\nlet promise2 = RSVP.Promise.reject(new Error('2'));\nlet promise3 = RSVP.Promise.reject(new Error('3'));\nlet 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.\nUseful for tooling.\n@return {Promise} promise that is fulfilled with an array of the settled\nstates of the constituent promises.\n*/\n\nfunction allSettled(entries, label) {\n  if (!Array.isArray(entries)) {\n    return Promise$1.reject(new TypeError(\"Promise.allSettled must be called with an array\"), label);\n  }\n  return new AllSettled(Promise$1, entries, label).promise;\n}\n\n/**\n  This is a convenient alias for `Promise.race`.\n\n  @method race\n  @public\n  @static\n  @for rsvp\n  @param {Array} array Array of promises.\n  @param {String} [label] An optional label. This is useful\n  for tooling.\n */\nfunction race(array, label) {\n  return Promise$1.race(array, label);\n}\n\nclass PromiseHash extends Enumerator {\n  constructor(Constructor, object, abortOnReject = true, label) {\n    super(Constructor, object, abortOnReject, label);\n  }\n  _init(Constructor, object) {\n    this._result = {};\n    this._enumerate(object);\n  }\n  _enumerate(input) {\n    let keys = Object.keys(input);\n    let length = keys.length;\n    let promise = this.promise;\n    this._remaining = length;\n    let key, val;\n    for (let i = 0; promise._state === PENDING && i < length; i++) {\n      key = keys[i];\n      val = input[key];\n      this._eachEntry(val, key, true);\n    }\n    this._checkFullfillment();\n  }\n}\n\n/**\n  `hash` is similar to `all`, but takes an object instead of an array\n  for its `promises` argument.\n\n  Returns a promise that is fulfilled when all the given promises have been\n  fulfilled, or rejected if any of them become rejected. The returned promise\n  is fulfilled with a hash that has the same key names as the `promises` object\n  argument. If any of the values in the object are not promises, they will\n  simply be copied over to the fulfilled object.\n\n  Example:\n\n  ```javascript\n  let promises = {\n    myPromise: resolve(1),\n    yourPromise: resolve(2),\n    theirPromise: resolve(3),\n    notAPromise: 4\n  };\n\n  hash(promises).then(function(hash){\n    // hash here is an object that looks like:\n    // {\n    //   myPromise: 1,\n    //   yourPromise: 2,\n    //   theirPromise: 3,\n    //   notAPromise: 4\n    // }\n  });\n  ```\n\n  If any of the `promises` given to `hash` are rejected, the first promise\n  that is rejected will be given as the reason to the rejection handler.\n\n  Example:\n\n  ```javascript\n  let promises = {\n    myPromise: resolve(1),\n    rejectedPromise: reject(new Error('rejectedPromise')),\n    anotherRejectedPromise: reject(new Error('anotherRejectedPromise')),\n  };\n\n  hash(promises).then(function(hash){\n    // Code here never runs because there are rejected promises!\n  }, function(reason) {\n    // reason.message === 'rejectedPromise'\n  });\n  ```\n\n  An important note: `hash` is intended for plain JavaScript objects that\n  are just a set of keys and values. `hash` will NOT preserve prototype\n  chains.\n\n  Example:\n\n  ```javascript\n  import { hash, resolve } from 'rsvp';\n  function MyConstructor(){\n    this.example = resolve('Example');\n  }\n\n  MyConstructor.prototype = {\n    protoProperty: resolve('Proto Property')\n  };\n\n  let myObject = new MyConstructor();\n\n  hash(myObject).then(function(hash){\n    // protoProperty will not be present, instead you will just have an\n    // object that looks like:\n    // {\n    //   example: 'Example'\n    // }\n    //\n    // hash.hasOwnProperty('protoProperty'); // false\n    // 'undefined' === typeof hash.protoProperty\n  });\n  ```\n\n  @method hash\n  @public\n  @static\n  @for rsvp\n  @param {Object} object\n  @param {String} [label] optional string that describes the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled when all properties of `promises`\n  have been fulfilled, or rejected if any of them become rejected.\n*/\nfunction hash(object, label) {\n  return Promise$1.resolve(object, label).then(function (object) {\n    if (object === null || typeof object !== 'object') {\n      throw new TypeError(\"Promise.hash must be called with an object\");\n    }\n    return new PromiseHash(Promise$1, object, label).promise;\n  });\n}\n\nclass HashSettled extends PromiseHash {\n  constructor(Constructor, object, label) {\n    super(Constructor, object, false, label);\n  }\n}\nHashSettled.prototype._setResultAt = setSettledResult;\n\n/**\n  `hashSettled` is similar to `allSettled`, but takes an object\n  instead of an array for its `promises` argument.\n\n  Unlike `all` or `hash`, which implement a fail-fast method,\n  but like `allSettled`, `hashSettled` waits until all the\n  constituent promises have returned and then shows you all the results\n  with their states and values/reasons. This is useful if you want to\n  handle multiple promises' failure states together as a set.\n\n  Returns a promise that is fulfilled when all the given promises have been\n  settled, or rejected if the passed parameters are invalid.\n\n  The returned promise is fulfilled with a hash that has the same key names as\n  the `promises` object argument. If any of the values in the object are not\n  promises, they will be copied over to the fulfilled object and marked with state\n  'fulfilled'.\n\n  Example:\n\n  ```javascript\n  import { hashSettled, resolve } from 'rsvp';\n\n  let promises = {\n    myPromise: resolve(1),\n    yourPromise: resolve(2),\n    theirPromise: resolve(3),\n    notAPromise: 4\n  };\n\n  hashSettled(promises).then(function(hash){\n    // hash here is an object that looks like:\n    // {\n    //   myPromise: { state: 'fulfilled', value: 1 },\n    //   yourPromise: { state: 'fulfilled', value: 2 },\n    //   theirPromise: { state: 'fulfilled', value: 3 },\n    //   notAPromise: { state: 'fulfilled', value: 4 }\n    // }\n  });\n  ```\n\n  If any of the `promises` given to `hash` are rejected, the state will\n  be set to 'rejected' and the reason for rejection provided.\n\n  Example:\n\n  ```javascript\n  import { hashSettled, reject, resolve } from 'rsvp';\n\n  let promises = {\n    myPromise: resolve(1),\n    rejectedPromise: reject(new Error('rejection')),\n    anotherRejectedPromise: reject(new Error('more rejection')),\n  };\n\n  hashSettled(promises).then(function(hash){\n    // hash here is an object that looks like:\n    // {\n    //   myPromise:              { state: 'fulfilled', value: 1 },\n    //   rejectedPromise:        { state: 'rejected', reason: Error },\n    //   anotherRejectedPromise: { state: 'rejected', reason: Error },\n    // }\n    // Note that for rejectedPromise, reason.message == 'rejection',\n    // and for anotherRejectedPromise, reason.message == 'more rejection'.\n  });\n  ```\n\n  An important note: `hashSettled` is intended for plain JavaScript objects that\n  are just a set of keys and values. `hashSettled` will NOT preserve prototype\n  chains.\n\n  Example:\n\n  ```javascript\n  import Promise, { hashSettled, resolve } from 'rsvp';\n\n  function MyConstructor(){\n    this.example = resolve('Example');\n  }\n\n  MyConstructor.prototype = {\n    protoProperty: Promise.resolve('Proto Property')\n  };\n\n  let myObject = new MyConstructor();\n\n  hashSettled(myObject).then(function(hash){\n    // protoProperty will not be present, instead you will just have an\n    // object that looks like:\n    // {\n    //   example: { state: 'fulfilled', value: 'Example' }\n    // }\n    //\n    // hash.hasOwnProperty('protoProperty'); // false\n    // 'undefined' === typeof hash.protoProperty\n  });\n  ```\n\n  @method hashSettled\n  @public\n  @for rsvp\n  @param {Object} object\n  @param {String} [label] optional string that describes the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled when when all properties of `promises`\n  have been settled.\n  @static\n*/\n\nfunction hashSettled(object, label) {\n  return Promise$1.resolve(object, label).then(function (object) {\n    if (object === null || typeof object !== 'object') {\n      throw new TypeError(\"hashSettled must be called with an object\");\n    }\n    return new HashSettled(Promise$1, object, false, label).promise;\n  });\n}\n\n/**\n  `rethrow` will rethrow an error on the next turn of the JavaScript event\n  loop in order to aid debugging.\n\n  Promises A+ specifies that any exceptions that occur with a promise must be\n  caught by the promises implementation and bubbled to the last handler. For\n  this reason, it is recommended that you always specify a second rejection\n  handler function to `then`. However, `rethrow` will throw the exception\n  outside of the promise, so it bubbles up to your console if in the browser,\n  or domain/cause uncaught exception in Node. `rethrow` will also throw the\n  error again so the error can be handled by the promise per the spec.\n\n  ```javascript\n  import { rethrow } from 'rsvp';\n\n  function throws(){\n    throw new Error('Whoops!');\n  }\n\n  let promise = new Promise(function(resolve, reject){\n    throws();\n  });\n\n  promise.catch(rethrow).then(function(){\n    // Code here doesn't run because the promise became rejected due to an\n    // error!\n  }, function (err){\n    // handle the error here\n  });\n  ```\n\n  The 'Whoops' error will be thrown on the next turn of the event loop\n  and you can watch for it in your console. You can also handle it using a\n  rejection handler given to `.then` or `.catch` on the returned promise.\n\n  @method rethrow\n  @public\n  @static\n  @for rsvp\n  @param {Error} reason reason the promise became rejected.\n  @throws Error\n  @static\n*/\nfunction rethrow(reason) {\n  setTimeout(() => {\n    throw reason;\n  });\n  throw reason;\n}\n\n/**\n  `defer` returns an object similar to jQuery's `$.Deferred`.\n  `defer` should be used when porting over code reliant on `$.Deferred`'s\n  interface. New code should use the `Promise` constructor instead.\n\n  The object returned from `defer` is a plain object with three properties:\n\n  * promise - an `Promise`.\n  * reject - a function that causes the `promise` property on this object to\n    become rejected\n  * resolve - a function that causes the `promise` property on this object to\n    become fulfilled.\n\n  Example:\n\n   ```javascript\n   let deferred = defer();\n\n   deferred.resolve(\"Success!\");\n\n   deferred.promise.then(function(value){\n     // value here is \"Success!\"\n   });\n   ```\n\n  @method defer\n  @public\n  @static\n  @for rsvp\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Object}\n */\n\nfunction defer(label) {\n  let deferred = {\n    resolve: undefined,\n    reject: undefined\n  };\n  deferred.promise = new Promise$1((resolve, reject) => {\n    deferred.resolve = resolve;\n    deferred.reject = reject;\n  }, label);\n  return deferred;\n}\n\nclass MapEnumerator extends Enumerator {\n  constructor(Constructor, entries, mapFn, label) {\n    super(Constructor, entries, true, label, mapFn);\n  }\n  _init(Constructor, input, bool, label, mapFn) {\n    let len = input.length || 0;\n    this.length = len;\n    this._remaining = len;\n    this._result = new Array(len);\n    this._mapFn = mapFn;\n    this._enumerate(input);\n  }\n  _setResultAt(state, i, value, firstPass) {\n    if (firstPass) {\n      try {\n        this._eachEntry(this._mapFn(value, i), i, false);\n      } catch (error) {\n        this._settledAt(REJECTED, i, error, false);\n      }\n    } else {\n      this._remaining--;\n      this._result[i] = value;\n    }\n  }\n}\n\n/**\n `map` is similar to JavaScript's native `map` method. `mapFn` is eagerly called\n  meaning that as soon as any promise resolves its value will be passed to `mapFn`.\n  `map` returns a promise that will become fulfilled with the result of running\n  `mapFn` on the values the promises become fulfilled with.\n\n  For example:\n\n  ```javascript\n  import { map, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = resolve(2);\n  let promise3 = resolve(3);\n  let promises = [ promise1, promise2, promise3 ];\n\n  let mapFn = function(item){\n    return item + 1;\n  };\n\n  map(promises, mapFn).then(function(result){\n    // result is [ 2, 3, 4 ]\n  });\n  ```\n\n  If any of the `promises` given to `map` are rejected, the first promise\n  that is rejected will be given as an argument to the returned promise's\n  rejection handler. For example:\n\n  ```javascript\n  import { map, reject, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = reject(new Error('2'));\n  let promise3 = reject(new Error('3'));\n  let promises = [ promise1, promise2, promise3 ];\n\n  let mapFn = function(item){\n    return item + 1;\n  };\n\n  map(promises, mapFn).then(function(array){\n    // Code here never runs because there are rejected promises!\n  }, function(reason) {\n    // reason.message === '2'\n  });\n  ```\n\n  `map` will also wait if a promise is returned from `mapFn`. For example,\n  say you want to get all comments from a set of blog posts, but you need\n  the blog posts first because they contain a url to those comments.\n\n  ```javscript\n  import { map } from 'rsvp';\n\n  let mapFn = function(blogPost){\n    // getComments does some ajax and returns an Promise that is fulfilled\n    // with some comments data\n    return getComments(blogPost.comments_url);\n  };\n\n  // getBlogPosts does some ajax and returns an Promise that is fulfilled\n  // with some blog post data\n  map(getBlogPosts(), mapFn).then(function(comments){\n    // comments is the result of asking the server for the comments\n    // of all blog posts returned from getBlogPosts()\n  });\n  ```\n\n  @method map\n  @public\n  @static\n  @for rsvp\n  @param {Array} promises\n  @param {Function} mapFn function to be called on each fulfilled promise.\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled with the result of calling\n  `mapFn` on each fulfilled promise or value when they become fulfilled.\n   The promise will be rejected if any of the given `promises` become rejected.\n*/\nfunction map(promises, mapFn, label) {\n  if (typeof mapFn !== 'function') {\n    return Promise$1.reject(new TypeError(\"map expects a function as a second argument\"), label);\n  }\n  return Promise$1.resolve(promises, label).then(function (promises) {\n    if (!Array.isArray(promises)) {\n      throw new TypeError(\"map must be called with an array\");\n    }\n    return new MapEnumerator(Promise$1, promises, mapFn, label).promise;\n  });\n}\n\n/**\n  This is a convenient alias for `Promise.resolve`.\n\n  @method resolve\n  @public\n  @static\n  @for rsvp\n  @param {*} value value that the returned promise will be resolved with\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise that will become fulfilled with the given\n  `value`\n*/\nfunction resolve(value, label) {\n  return Promise$1.resolve(value, label);\n}\n\n/**\n  This is a convenient alias for `Promise.reject`.\n\n  @method reject\n  @public\n  @static\n  @for rsvp\n  @param {*} reason value that the returned promise will be rejected with.\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise rejected with the given `reason`.\n*/\nfunction reject(reason, label) {\n  return Promise$1.reject(reason, label);\n}\n\nconst EMPTY_OBJECT = {};\nclass FilterEnumerator extends MapEnumerator {\n  _checkFullfillment() {\n    if (this._remaining === 0 && this._result !== null) {\n      let result = this._result.filter(val => val !== EMPTY_OBJECT);\n      fulfill(this.promise, result);\n      this._result = null;\n    }\n  }\n  _setResultAt(state, i, value, firstPass) {\n    if (firstPass) {\n      this._result[i] = value;\n      let val,\n        succeeded = true;\n      try {\n        val = this._mapFn(value, i);\n      } catch (error) {\n        succeeded = false;\n        this._settledAt(REJECTED, i, error, false);\n      }\n      if (succeeded) {\n        this._eachEntry(val, i, false);\n      }\n    } else {\n      this._remaining--;\n      if (!value) {\n        this._result[i] = EMPTY_OBJECT;\n      }\n    }\n  }\n}\n\n/**\n `filter` is similar to JavaScript's native `filter` method.\n `filterFn` is eagerly called meaning that as soon as any promise\n  resolves its value will be passed to `filterFn`. `filter` returns\n  a promise that will become fulfilled with the result of running\n  `filterFn` on the values the promises become fulfilled with.\n\n  For example:\n\n  ```javascript\n  import { filter, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = resolve(2);\n  let promise3 = resolve(3);\n\n  let promises = [promise1, promise2, promise3];\n\n  let filterFn = function(item){\n    return item > 1;\n  };\n\n  filter(promises, filterFn).then(function(result){\n    // result is [ 2, 3 ]\n  });\n  ```\n\n  If any of the `promises` given to `filter` are rejected, the first promise\n  that is rejected will be given as an argument to the returned promise's\n  rejection handler. For example:\n\n  ```javascript\n  import { filter, reject, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = reject(new Error('2'));\n  let promise3 = reject(new Error('3'));\n  let promises = [ promise1, promise2, promise3 ];\n\n  let filterFn = function(item){\n    return item > 1;\n  };\n\n  filter(promises, filterFn).then(function(array){\n    // Code here never runs because there are rejected promises!\n  }, function(reason) {\n    // reason.message === '2'\n  });\n  ```\n\n  `filter` will also wait for any promises returned from `filterFn`.\n  For instance, you may want to fetch a list of users then return a subset\n  of those users based on some asynchronous operation:\n\n  ```javascript\n  import { filter, resolve } from 'rsvp';\n\n  let alice = { name: 'alice' };\n  let bob   = { name: 'bob' };\n  let users = [ alice, bob ];\n\n  let promises = users.map(function(user){\n    return resolve(user);\n  });\n\n  let filterFn = function(user){\n    // Here, Alice has permissions to create a blog post, but Bob does not.\n    return getPrivilegesForUser(user).then(function(privs){\n      return privs.can_create_blog_post === true;\n    });\n  };\n  filter(promises, filterFn).then(function(users){\n    // true, because the server told us only Alice can create a blog post.\n    users.length === 1;\n    // false, because Alice is the only user present in `users`\n    users[0] === bob;\n  });\n  ```\n\n  @method filter\n  @public\n  @static\n  @for rsvp\n  @param {Array} promises\n  @param {Function} filterFn - function to be called on each resolved value to\n  filter the final results.\n  @param {String} [label] optional string describing the promise. Useful for\n  tooling.\n  @return {Promise}\n*/\n\nfunction filter(promises, filterFn, label) {\n  if (typeof filterFn !== 'function') {\n    return Promise$1.reject(new TypeError(\"filter expects function as a second argument\"), label);\n  }\n  return Promise$1.resolve(promises, label).then(function (promises) {\n    if (!Array.isArray(promises)) {\n      throw new TypeError(\"filter must be called with an array\");\n    }\n    return new FilterEnumerator(Promise$1, promises, filterFn, label).promise;\n  });\n}\n\nlet len = 0;\nlet vertxNext;\nfunction asap(callback, arg) {\n  queue[len] = callback;\n  queue[len + 1] = arg;\n  len += 2;\n  if (len === 2) {\n    // If len is 1, that means that we need to schedule an async flush.\n    // If additional callbacks are queued before the queue is flushed, they\n    // will be processed by this flush that we are scheduling.\n    scheduleFlush();\n  }\n}\nconst browserWindow = typeof window !== 'undefined' ? window : undefined;\nconst browserGlobal = browserWindow || {};\nconst BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nconst isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n// test for web worker but not in IE10\nconst isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';\n\n// node\nfunction useNextTick() {\n  let nextTick = process.nextTick;\n  // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n  // setImmediate should be used instead instead\n  let version = process.versions.node.match(/^(?:(\\d+)\\.)?(?:(\\d+)\\.)?(\\*|\\d+)$/);\n  if (Array.isArray(version) && version[1] === '0' && version[2] === '10') {\n    nextTick = setImmediate;\n  }\n  return () => nextTick(flush);\n}\n\n// vertx\nfunction useVertxTimer() {\n  if (typeof vertxNext !== 'undefined') {\n    return function () {\n      vertxNext(flush);\n    };\n  }\n  return useSetTimeout();\n}\nfunction useMutationObserver() {\n  let iterations = 0;\n  let observer = new BrowserMutationObserver(flush);\n  let node = document.createTextNode('');\n  observer.observe(node, {\n    characterData: true\n  });\n  return () => node.data = iterations = ++iterations % 2;\n}\n\n// web worker\nfunction useMessageChannel() {\n  let channel = new MessageChannel();\n  channel.port1.onmessage = flush;\n  return () => channel.port2.postMessage(0);\n}\nfunction useSetTimeout() {\n  return () => setTimeout(flush, 1);\n}\nconst queue = new Array(1000);\nfunction flush() {\n  for (let i = 0; i < len; i += 2) {\n    let callback = queue[i];\n    let arg = queue[i + 1];\n    callback(arg);\n    queue[i] = undefined;\n    queue[i + 1] = undefined;\n  }\n  len = 0;\n}\nfunction attemptVertex() {\n  try {\n    const vertx = Function('return this')().require('vertx');\n    vertxNext = vertx.runOnLoop || vertx.runOnContext;\n    return useVertxTimer();\n  } catch (e) {\n    return useSetTimeout();\n  }\n}\nlet scheduleFlush;\n// Decide what async method to use to triggering processing of queued callbacks:\nif (isNode) {\n  scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n  scheduleFlush = useMutationObserver();\n} else if (isWorker) {\n  scheduleFlush = useMessageChannel();\n} else if (browserWindow === undefined && typeof require === 'function') {\n  scheduleFlush = attemptVertex();\n} else {\n  scheduleFlush = useSetTimeout();\n}\n\n// defaults\nconfig.async = asap;\nconfig.after = cb => setTimeout(cb, 0);\nconst cast = resolve;\nconst async = (callback, arg) => config.async(callback, arg);\nfunction on() {\n  config.on(...arguments);\n}\nfunction off() {\n  config.off(...arguments);\n}\n\n// Set up instrumentation through `window.__PROMISE_INTRUMENTATION__`\nif (typeof window !== 'undefined' && typeof window['__PROMISE_INSTRUMENTATION__'] === 'object') {\n  let callbacks = window['__PROMISE_INSTRUMENTATION__'];\n  configure('instrument', true);\n  for (let eventName in callbacks) {\n    if (callbacks.hasOwnProperty(eventName)) {\n      on(eventName, callbacks[eventName]);\n    }\n  }\n}\n\n// the default export here is for backwards compat:\n//   https://github.com/tildeio/rsvp.js/issues/434\nconst rsvp = {\n  asap,\n  cast,\n  Promise: Promise$1,\n  EventTarget,\n  all,\n  allSettled,\n  race,\n  hash,\n  hashSettled,\n  rethrow,\n  defer,\n  denodeify,\n  configure,\n  on,\n  off,\n  resolve,\n  reject,\n  map,\n  async,\n  filter\n};\n\nconst RSVP = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({\n  __proto__: null,\n  EventTarget,\n  Promise: Promise$1,\n  all,\n  allSettled,\n  asap,\n  async,\n  cast,\n  configure,\n  default: rsvp,\n  defer,\n  denodeify,\n  filter,\n  hash,\n  hashSettled,\n  map,\n  off,\n  on,\n  race,\n  reject,\n  resolve,\n  rethrow\n}, Symbol.toStringTag, { value: 'Module' }));\n\nexport { EventTarget as E, Promise$1 as P, RSVP as R, all as a, allSettled as b, configure as c, asap as d, async as e, cast as f, defer as g, denodeify as h, filter as i, hash as j, hashSettled as k, off as l, map as m, race as n, on as o, reject as p, resolve as q, rsvp as r, rethrow as s };\n","const deferred = /* @__PURE__ */new WeakMap();\nfunction deferDecorator(proto, prop, desc) {\n  let map = deferred.get(proto);\n  if (!map) {\n    map = /* @__PURE__ */new Map();\n    deferred.set(proto, map);\n  }\n  map.set(prop, desc);\n}\nfunction findDeferredDecorator(target, prop) {\n  var _a;\n  let cursor = target.prototype;\n  while (cursor) {\n    let desc = (_a = deferred.get(cursor)) == null ? void 0 : _a.get(prop);\n    if (desc) {\n      return desc;\n    }\n    cursor = Object.getPrototypeOf(cursor);\n  }\n}\nfunction decorateFieldV2(prototype, prop, decorators, initializer) {\n  let desc = {\n    configurable: true,\n    enumerable: true,\n    writable: true,\n    initializer: null\n  };\n  if (initializer) {\n    desc.initializer = initializer;\n  }\n  for (let decorator of decorators) {\n    desc = decorator(prototype, prop, desc) || desc;\n  }\n  if (desc.initializer === void 0) {\n    Object.defineProperty(prototype, prop, desc);\n  } else {\n    deferDecorator(prototype, prop, desc);\n  }\n}\nfunction decorateMethodV2(prototype, prop, decorators) {\n  const origDesc = Object.getOwnPropertyDescriptor(prototype, prop);\n  let desc = {\n    ...origDesc\n  };\n  for (let decorator of decorators) {\n    desc = decorator(prototype, prop, desc) || desc;\n  }\n  if (desc.initializer !== void 0) {\n    desc.value = desc.initializer ? desc.initializer.call(prototype) : void 0;\n    desc.initializer = void 0;\n  }\n  Object.defineProperty(prototype, prop, desc);\n}\nfunction initializeDeferredDecorator(target, prop) {\n  let desc = findDeferredDecorator(target.constructor, prop);\n  if (desc) {\n    Object.defineProperty(target, prop, {\n      enumerable: desc.enumerable,\n      configurable: desc.configurable,\n      writable: desc.writable,\n      value: desc.initializer ? desc.initializer.call(target) : void 0\n    });\n  }\n}\n\nexport { decorateMethodV2 as a, decorateFieldV2 as d, initializeDeferredDecorator as i };\n","import { C as ConcreteBounds } from './normalize-C_IStty9.js';\nimport { N as NewTreeBuilder } from './api-B3M8aF1d.js';\n\n/* eslint-disable @typescript-eslint/no-unsafe-enum-comparison */\n\nconst TEXT_NODE = 3;\nconst NEEDS_EXTRA_CLOSE = new WeakMap();\nfunction currentNode(cursor) {\n  let {\n    element,\n    nextSibling\n  } = cursor;\n  if (nextSibling === null) {\n    return element.lastChild;\n  } else {\n    return nextSibling.previousSibling;\n  }\n}\nclass SerializeBuilder extends NewTreeBuilder {\n  serializeBlockDepth = 0;\n  __openBlock() {\n    let {\n      tagName\n    } = this.element;\n    if (tagName !== 'TITLE' && tagName !== 'SCRIPT' && tagName !== 'STYLE') {\n      let depth = this.serializeBlockDepth++;\n      this.__appendComment(`%+b:${depth}%`);\n    }\n    super.__openBlock();\n  }\n  __closeBlock() {\n    let {\n      tagName\n    } = this.element;\n    super.__closeBlock();\n    if (tagName !== 'TITLE' && tagName !== 'SCRIPT' && tagName !== 'STYLE') {\n      let depth = --this.serializeBlockDepth;\n      this.__appendComment(`%-b:${depth}%`);\n    }\n  }\n  __appendHTML(html) {\n    let {\n      tagName\n    } = this.element;\n    if (tagName === 'TITLE' || tagName === 'SCRIPT' || tagName === 'STYLE') {\n      return super.__appendHTML(html);\n    }\n\n    // Do we need to run the html tokenizer here?\n    let first = this.__appendComment('%glmr%');\n    if (tagName === 'TABLE') {\n      let openIndex = html.indexOf('<');\n      if (openIndex > -1) {\n        let tr = html.slice(openIndex + 1, openIndex + 3);\n        if (tr === 'tr') {\n          html = `<tbody>${html}</tbody>`;\n        }\n      }\n    }\n    if (html === '') {\n      this.__appendComment('% %');\n    } else {\n      super.__appendHTML(html);\n    }\n    let last = this.__appendComment('%glmr%');\n    return new ConcreteBounds(this.element, first, last);\n  }\n  __appendText(string) {\n    let {\n      tagName\n    } = this.element;\n    let current = currentNode(this);\n    if (tagName === 'TITLE' || tagName === 'SCRIPT' || tagName === 'STYLE') {\n      return super.__appendText(string);\n    } else if (string === '') {\n      // eslint-disable-next-line @typescript-eslint/no-explicit-any\n      return this.__appendComment('% %');\n    } else if (current && current.nodeType === TEXT_NODE) {\n      this.__appendComment('%|%');\n    }\n    return super.__appendText(string);\n  }\n  closeElement() {\n    if (NEEDS_EXTRA_CLOSE.has(this.element)) {\n      NEEDS_EXTRA_CLOSE.delete(this.element);\n      super.closeElement();\n    }\n    return super.closeElement();\n  }\n  openElement(tag) {\n    if (tag === 'tr') {\n      if (this.element.tagName !== 'TBODY' && this.element.tagName !== 'THEAD' && this.element.tagName !== 'TFOOT') {\n        this.openElement('tbody');\n        // This prevents the closeBlock comment from being re-parented\n        // under the auto inserted tbody. Rehydration builder needs to\n        // account for the insertion since it is injected here and not\n        // really in the template.\n        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n        NEEDS_EXTRA_CLOSE.set(this.constructing, true);\n        this.flushElement(null);\n      }\n    }\n    return super.openElement(tag);\n  }\n  pushRemoteElement(element, cursorId, insertBefore = null) {\n    let {\n      dom\n    } = this;\n    let script = dom.createElement('script');\n    script.setAttribute('glmr', cursorId);\n    dom.insertBefore(element, script, insertBefore);\n    return super.pushRemoteElement(element, cursorId, insertBefore);\n  }\n}\nfunction serializeBuilder(env, cursor) {\n  return SerializeBuilder.forInitialRender(env, cursor);\n}\n\nexport { serializeBuilder as s };\n","import { f as changeProperties } from './computed-ZvOk7SJQ.js';\nimport { s as set } from './property_set-CVmdjPdh.js';\n\n/**\n @module @ember/object\n*/\n/**\n  Set a list of properties on an object. These properties are set inside\n  a single `beginPropertyChanges` and `endPropertyChanges` batch, so\n  observers will be buffered.\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  let anObject = EmberObject.create();\n\n  anObject.setProperties({\n    firstName: 'Stanley',\n    lastName: 'Stuart',\n    age: 21\n  });\n  ```\n\n  @method setProperties\n  @static\n  @for @ember/object\n  @param obj\n  @param {Object} properties\n  @return properties\n  @public\n*/\n\nfunction setProperties(obj, properties) {\n  if (properties === null || typeof properties !== 'object') {\n    return properties;\n  }\n  changeProperties(() => {\n    let props = Object.keys(properties);\n    for (let propertyName of props) {\n      // 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.\n      set(obj, propertyName, properties[propertyName]);\n    }\n  });\n  return properties;\n}\n\nexport { setProperties as s };\n","import { _instrumentStart } from '../@ember/instrumentation/index.js';\nimport { c as capabilityFlagsFrom } from './capabilities-BuVYh-vx.js';\nimport { v as valueForRef, U as UNDEFINED_REFERENCE } from './reference-CccCE8mJ.js';\nimport { E as EMPTY_ARGS } from './arguments-xjTAZ6VE.js';\nimport { u as unwrapTemplate } from './curly-Bg--Dj0X.js';\nimport { t as templateFactory } from './index-kwuZeaNz.js';\n\nfunction instrumentationPayload(def) {\n  // \"main\" used to be the outlet name, keeping it around for compatibility\n  return {\n    object: `${def.name}:main`\n  };\n}\nconst CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: true,\n  updateHook: false,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nconst CAPABILITIES_MASK = /*@__PURE__*/capabilityFlagsFrom(CAPABILITIES);\nclass OutletComponentManager {\n  create(_owner, definition, _args, env, dynamicScope) {\n    let parentStateRef = dynamicScope.get('outletState');\n    let currentStateRef = definition.ref;\n\n    // This is the actual primary responsibility of the outlet component –\n    // it represents the switching from one route component/template into\n    // the next. The rest only exists to support the debug render tree and\n    // the old-school (and unreliable) instrumentation.\n    dynamicScope.set('outletState', currentStateRef);\n    let state = {\n      finalize: _instrumentStart('render.outlet', instrumentationPayload, definition)\n    };\n    if (env.debugRenderTree !== undefined) {\n      let parentState = valueForRef(parentStateRef);\n      let parentOwner = parentState?.render?.owner;\n      let currentState = valueForRef(currentStateRef);\n      let currentOwner = currentState?.render?.owner;\n      if (parentOwner && parentOwner !== currentOwner) {\n        let engineInstance = currentOwner;\n        let {\n          mountPoint\n        } = engineInstance;\n        if (mountPoint) {\n          state.engine = {\n            mountPoint,\n            instance: engineInstance\n          };\n        }\n      }\n    }\n    return state;\n  }\n  getDebugName({\n    name\n  }) {\n    return `{{outlet}} for ${name}`;\n  }\n  getDebugCustomRenderTree(_definition, state) {\n    let nodes = [];\n    nodes.push({\n      bucket: state,\n      type: 'outlet',\n      // \"main\" used to be the outlet name, keeping it around for compatibility\n      name: 'main',\n      args: EMPTY_ARGS,\n      instance: undefined\n    });\n    if (state.engine) {\n      nodes.push({\n        bucket: state.engine,\n        type: 'engine',\n        name: state.engine.mountPoint,\n        args: EMPTY_ARGS,\n        instance: state.engine.instance\n      });\n    }\n    return nodes;\n  }\n  getCapabilities() {\n    return CAPABILITIES;\n  }\n  getSelf() {\n    return UNDEFINED_REFERENCE;\n  }\n  didCreate() {}\n  didUpdate() {}\n  didRenderLayout(state) {\n    state.finalize();\n  }\n  didUpdateLayout() {}\n  getDestroyable() {\n    return null;\n  }\n}\nconst OUTLET_MANAGER = /*@__PURE__*/new OutletComponentManager();\nconst OUTLET_COMPONENT_TEMPLATE = templateFactory(\n/*\n  <@Component @controller={{@controller}} @model={{@model}} />\n*/\n{\n  \"id\": null,\n  \"block\": \"[[[8,[30,1],null,[[\\\"@controller\\\",\\\"@model\\\"],[[30,2],[30,3]]],null]],[\\\"@Component\\\",\\\"@controller\\\",\\\"@model\\\"],[]]\",\n  \"moduleName\": \"(unknown template module)\",\n  \"isStrictMode\": true\n});\nclass OutletComponent {\n  // handle is not used by this custom definition\n  handle = -1;\n  resolvedName = null;\n  manager = OUTLET_MANAGER;\n  capabilities = CAPABILITIES_MASK;\n  compilable;\n  constructor(owner, state) {\n    this.state = state;\n    this.compilable = unwrapTemplate(OUTLET_COMPONENT_TEMPLATE(owner)).asLayout();\n  }\n}\nfunction createRootOutlet(outletView) {\n  return new OutletComponent(outletView.owner, outletView.state);\n}\n\nexport { OutletComponent as O, createRootOutlet as c };\n","import { privatize } from '../@ember/-internals/container/index.js';\nimport { getOwner } from '../@ember/-internals/owner/index.js';\nimport { I as Input, T as Textarea } from './textarea-D_2paF6I.js';\nimport { LinkTo } from '../@ember/routing/index.js';\nimport { i as inTransaction, d as renderMain } from './render-C_iak8Db.js';\nimport { c as clientBuilder } from './api-B3M8aF1d.js';\nimport { r as rehydrationBuilder } from './rehydrate-builder-B9bh-2Dy.js';\nimport { s as serializeBuilder } from './serialize-builder-Du-432zt.js';\nimport { g as guidFor } from './guid-Cbq2sNV_.js';\nimport { getViewId, getViewElement } from '../@ember/-internals/views/lib/system/utils.js';\nimport { sendCoreViewEvent } from '../@ember/-internals/views/lib/views/core-view-utils.js';\nimport { associateDestroyableChild, isDestroyed, destroy, isDestroying } from '../@glimmer/destroyable/index.js';\nimport { a as createConstRef, v as valueForRef, c as createComputeRef, g as childRefFromParts, u as updateRef, U as UNDEFINED_REFERENCE } from './reference-CccCE8mJ.js';\nimport { c as createCapturedArgs, b as EMPTY_POSITIONAL, d as curry } from './arguments-xjTAZ6VE.js';\nimport { d as dict } from './collections-GpG8lT2g.js';\nimport { C as CurlyComponentManager, i as initialRenderInstrumentDetails, a as ComponentStateBucket, D as DIRTY_TAG, u as unwrapTemplate, B as BOUNDS } from './curly-Bg--Dj0X.js';\nimport { O as OutletComponent, c as createRootOutlet } from './outlet-bc38zkd8.js';\nimport { g as getFactoryFor } from './container-BYOnjnwz.js';\nimport { _instrumentStart } from '../@ember/instrumentation/index.js';\nimport { c as capabilityFlagsFrom } from './capabilities-BuVYh-vx.js';\nimport { C as CONSTANT_TAG, c as consumeTag, D as DIRTY_TAG$1, r as createTag } from './cache-CofLhaS4.js';\nimport { R as ResolverImpl, B as BaseRenderer, e as errorLoopTransaction } from './index-CZW6QzcF.js';\nimport { generateControllerFactory } from '../@ember/routing/lib/generate_controller.js';\nimport { i as internalHelper } from './internal-helper-Becm19An.js';\nimport { c as hasInternalComponentManager } from './api-DJnXAjon.js';\nimport { schedule } from '../@ember/runloop/index.js';\nimport { t as templateFactory } from './index-kwuZeaNz.js';\n\nconst RootTemplate = templateFactory(\n/*\n  {{component this}}\n*/\n{\n  \"id\": null,\n  \"block\": \"[[[46,[30,0],null,null,null]],[],[\\\"component\\\"]]\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/root.hbs\",\n  \"isStrictMode\": true\n});\n\nclass RootComponentManager extends CurlyComponentManager {\n  component;\n  constructor(component) {\n    super();\n    this.component = component;\n  }\n  create(_owner, _state, _args, {\n    isInteractive\n  }, dynamicScope) {\n    let component = this.component;\n    let finalizer = _instrumentStart('render.component', initialRenderInstrumentDetails, component);\n    dynamicScope.view = component;\n    let hasWrappedElement = component.tagName !== '';\n\n    // We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\n    if (!hasWrappedElement) {\n      if (isInteractive) {\n        sendCoreViewEvent(component, 'willRender');\n      }\n      component._transitionTo('hasElement');\n      if (isInteractive) {\n        sendCoreViewEvent(component, 'willInsertElement');\n      }\n    }\n    let bucket = new ComponentStateBucket(component, null, CONSTANT_TAG, finalizer, hasWrappedElement, isInteractive);\n    consumeTag(component[DIRTY_TAG]);\n    return bucket;\n  }\n}\n\n// ROOT is the top-level template it has nothing but one yield.\n// it is supposed to have a dummy element\nconst ROOT_CAPABILITIES = {\n  dynamicLayout: true,\n  dynamicTag: true,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: true,\n  elementHook: true,\n  createCaller: true,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: true,\n  willDestroy: false,\n  hasSubOwner: false\n};\nclass RootComponentDefinition {\n  // handle is not used by this custom definition\n  handle = -1;\n  resolvedName = '-top-level';\n  state;\n  manager;\n  capabilities = capabilityFlagsFrom(ROOT_CAPABILITIES);\n  compilable = null;\n  constructor(component) {\n    this.manager = new RootComponentManager(component);\n    let factory = getFactoryFor(component);\n    this.state = factory;\n  }\n}\n\nconst CAPABILITIES$1 = {\n  dynamicLayout: true,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: true,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: true\n};\nclass MountManager {\n  getDynamicLayout(state) {\n    let templateFactory = state.engine.lookup('template:application');\n    return unwrapTemplate(templateFactory(state.engine)).asLayout();\n  }\n  getCapabilities() {\n    return CAPABILITIES$1;\n  }\n  getOwner(state) {\n    return state.engine;\n  }\n  create(owner, {\n    name\n  }, args, env) {\n    let engine = owner.buildChildEngineInstance(name);\n    engine.boot();\n    let applicationFactory = engine.factoryFor(`controller:application`);\n    let controllerFactory = applicationFactory || generateControllerFactory(engine, 'application');\n    let controller;\n    let self;\n    let bucket;\n    let modelRef;\n    if (args.named.has('model')) {\n      modelRef = args.named.get('model');\n    }\n    if (modelRef === undefined) {\n      controller = controllerFactory.create();\n      self = createConstRef(controller);\n      bucket = {\n        engine,\n        controller,\n        self,\n        modelRef\n      };\n    } else {\n      let model = valueForRef(modelRef);\n      controller = controllerFactory.create({\n        model\n      });\n      self = createConstRef(controller);\n      bucket = {\n        engine,\n        controller,\n        self,\n        modelRef\n      };\n    }\n    if (env.debugRenderTree) {\n      associateDestroyableChild(engine, controller);\n    }\n    return bucket;\n  }\n  getDebugName({\n    name\n  }) {\n    return name;\n  }\n  getDebugCustomRenderTree(definition, state, args) {\n    return [{\n      bucket: state.engine,\n      instance: state.engine,\n      type: 'engine',\n      name: definition.name,\n      args\n    }, {\n      bucket: state.controller,\n      instance: state.controller,\n      type: 'route-template',\n      name: 'application',\n      args\n    }];\n  }\n  getSelf({\n    self\n  }) {\n    return self;\n  }\n  getDestroyable(bucket) {\n    return bucket.engine;\n  }\n  didCreate() {}\n  didUpdate() {}\n  didRenderLayout() {}\n  didUpdateLayout() {}\n  update(bucket) {\n    let {\n      controller,\n      modelRef\n    } = bucket;\n    if (modelRef !== undefined) {\n      controller.set('model', valueForRef(modelRef));\n    }\n  }\n}\nconst MOUNT_MANAGER = /*@__PURE__*/new MountManager();\nclass MountDefinition {\n  // handle is not used by this custom definition\n  handle = -1;\n  state;\n  manager = MOUNT_MANAGER;\n  compilable = null;\n  capabilities = capabilityFlagsFrom(CAPABILITIES$1);\n  constructor(resolvedName) {\n    this.resolvedName = resolvedName;\n    this.state = {\n      name: resolvedName\n    };\n  }\n}\n\n/**\n@module @ember/helper\n*/\n\n\n/**\n  The `{{mount}}` helper lets you embed a routeless engine in a template.\n  Mounting an engine will cause an instance to be booted and its `application`\n  template to be rendered.\n\n  For example, the following template mounts the `ember-chat` engine:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\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  ```hbs\n  <div>\n    {{mount 'admin' model=userSettings}}\n  </div>\n  ```\n\n  Or an inline `hash`, and you can even pass components:\n\n  ```gjs\n  import SignInButton from '../components/sign-in-button';\n  <template>\n    <div>\n      <h1>Application template!</h1>\n      {{mount 'admin' model=(hash\n          title='Secret Admin'\n          signInButton=SignInButton\n      )}}\n    </div>\n  </template>\n  ```\n \n `mount` is built-in and does not need to be imported.\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 Keywords\n  @static\n  @noimport\n  @public\n*/\nconst mountHelper = /*@__PURE__*/internalHelper((args, owner) => {\n  let nameRef = args.positional[0];\n  let captured;\n  captured = createCapturedArgs(args.named, EMPTY_POSITIONAL);\n  let lastName, lastDef;\n  return createComputeRef(() => {\n    let name = valueForRef(nameRef);\n    if (typeof name === 'string') {\n      if (lastName === name) {\n        return lastDef;\n      }\n      lastName = name;\n      lastDef = curry(0, new MountDefinition(name), owner, captured, true);\n      return lastDef;\n    } else {\n      lastDef = null;\n      lastName = null;\n      return null;\n    }\n  });\n});\n\nconst CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: false,\n  updateHook: false,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nconst CAPABILITIES_MASK = /*@__PURE__*/capabilityFlagsFrom(CAPABILITIES);\nclass RouteTemplateManager {\n  create(_owner, _definition, args) {\n    let self = args.named.get('controller');\n    let controller = valueForRef(self);\n    return {\n      self,\n      controller\n    };\n  }\n  getSelf({\n    self\n  }) {\n    return self;\n  }\n  getDebugName({\n    name\n  }) {\n    return `route-template (${name})`;\n  }\n  getDebugCustomRenderTree({\n    name\n  }, state, args) {\n    return [{\n      bucket: state,\n      type: 'route-template',\n      name,\n      args,\n      instance: state.controller\n    }];\n  }\n  getCapabilities() {\n    return CAPABILITIES;\n  }\n  didRenderLayout() {}\n  didUpdateLayout() {}\n  didCreate() {}\n  didUpdate() {}\n  getDestroyable() {\n    return null;\n  }\n}\nconst ROUTE_TEMPLATE_MANAGER = /*@__PURE__*/new RouteTemplateManager();\n\n/**\n * This \"upgrades\" a route template into a invocable component. Conceptually\n * it can be 1:1 for each unique `Template`, but it's also cheap to construct,\n * so unless the stability is desirable for other reasons, it's probably not\n * worth caching this.\n */\nclass RouteTemplate {\n  // handle is not used by this custom definition\n  handle = -1;\n  resolvedName;\n  state;\n  manager = ROUTE_TEMPLATE_MANAGER;\n  capabilities = CAPABILITIES_MASK;\n  compilable;\n  constructor(name, template) {\n    let unwrapped = unwrapTemplate(template);\n    // TODO This actually seems inaccurate – it ultimately came from the\n    // outlet's name. Also, setting this overrides `getDebugName()` in that\n    // message. Is that desirable?\n    this.resolvedName = name;\n    this.state = {\n      name\n    };\n    this.compilable = unwrapped.asLayout();\n  }\n}\n\n// TODO a lot these fields are copied from the adjacent existing components\n// implementation, haven't looked into who cares about `ComponentDefinition`\n// and if it is appropriate here. It seems like this version is intended to\n// be used with `curry` which probably isn't necessary here. It could be the\n// case that we just want to do something more similar to `InternalComponent`\n// (the one we used to implement `Input` and `LinkTo`). For now it follows\n// the same pattern to get things going.\nfunction makeRouteTemplate(owner, name, template) {\n  let routeTemplate = new RouteTemplate(name, template);\n  return curry(0, routeTemplate, owner, null, true);\n}\n\n/**\n @module @ember/helper\n */\n\n/**\n  The `{{outlet}}` helper lets you specify where a child route will render in\n  your template. An important use of the `{{outlet}}` helper is in your\n  application's `application.gjs` file:\n\n  ```gjs {data-filename=\"app/templates/application.gjs\"}\n  import MyHeader from '../components/my-header';\n  import MyFooter from '../components/my-footer';\n    \n  <template>\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  </template>\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  `outlet` is built-in and does not need to be imported. \n \n  @method outlet\n  @for Keywords\n  @static\n  @noimport\n  @public\n*/\nconst outletHelper = /*@__PURE__*/internalHelper((_args, owner, scope) => {\n  let outletRef = createComputeRef(() => {\n    let state = valueForRef(scope.get('outletState'));\n    return state?.outlets?.main;\n  });\n  let lastState = null;\n  let outlet = null;\n  return createComputeRef(() => {\n    let outletState = valueForRef(outletRef);\n    let state = stateFor(outletRef, outletState);\n\n    // This code is deliberately using the behavior in glimmer-vm where in\n    // <@Component />, the component is considered stabled via `===`, and\n    // will continue to re-render in-place as long as the `===` holds, but\n    // when it changes to a different object, it teardown the old component\n    // (running destructors, etc), and render the component in its place (or\n    // nothing if the new value is nullish. Here we are carefully exploiting\n    // that fact, and returns the same stable object so long as it is the\n    // same route, but return a different one when the route changes. On the\n    // other hand, changing the model only intentionally do not teardown the\n    // component and instead re-render in-place.\n    if (!isStable(state, lastState)) {\n      lastState = state;\n      if (state !== null) {\n        // If we are crossing an engine mount point, this is how the owner\n        // gets switched.\n        let outletOwner = outletState?.render?.owner ?? owner;\n        let named = dict();\n\n        // Here we either have a raw template that needs to be normalized,\n        // or a component that we can render as-is. `RouteTemplate` upgrades\n        // the template into a component so we can have a unified code path.\n        // We still store the original `template` value, because we rely on\n        // its identity for the stability check, and the `RouteTemplate`\n        // wrapper doesn't dedup for us.\n        let template = state.template;\n        let component;\n        if (hasInternalComponentManager(template)) {\n          component = template;\n        } else {\n          component = makeRouteTemplate(outletOwner, state.name, template);\n        }\n\n        // Component is stable for the lifetime of the outlet\n        named['Component'] = createConstRef(component);\n\n        // Controller is stable for the lifetime of the outlet\n        named['controller'] = createConstRef(state.controller);\n\n        // Create a ref for the model\n        let modelRef = childRefFromParts(outletRef, ['render', 'model']);\n\n        // Store the value of the model\n        let model = valueForRef(modelRef);\n\n        // The controller for this outlet, used to verify the outletRef\n        // still points to the correct route's data.\n        let outletController = state.controller;\n\n        // Create a compute ref which we pass in as the `{{@model}}` reference\n        // for the outlet. This ref will update and return the value of the\n        // model _until_ the outlet itself changes. Once the outlet changes,\n        // dynamic scope also changes, and so the original model ref would not\n        // provide the correct updated value. So we stop updating and return\n        // the _last_ model value for that outlet.\n        //\n        // We also verify that the outletRef still resolves to this route's\n        // data by comparing controller identity. This handles the case where\n        // a parent outlet is torn down first: the dynamic scope refs now\n        // point to the new route's outlet state, but this outlet's outer\n        // compute ref hasn't re-evaluated yet, so `lastState === state` is\n        // still true. The controller check catches this case.\n        named['model'] = createComputeRef(() => {\n          if (lastState === state) {\n            let currentOutlet = valueForRef(outletRef);\n            if (currentOutlet?.render?.controller === outletController) {\n              model = valueForRef(modelRef);\n            }\n          }\n          return model;\n        });\n        let args = createCapturedArgs(named, EMPTY_POSITIONAL);\n\n        // Package up everything\n        outlet = curry(0, new OutletComponent(owner, state), outletOwner, args, true);\n      } else {\n        outlet = null;\n      }\n    }\n    return outlet;\n  });\n});\nfunction stateFor(ref, outlet) {\n  if (outlet === undefined) return null;\n  let render = outlet.render;\n  if (render === undefined) return null;\n  let template = render.template;\n  // The type doesn't actually allow for `null`, but if we make it past this\n  // point it is really important that we have _something_ to render. We could\n  // assert, but that is probably overly strict for very little to gain.\n  if (template === undefined || template === null) return null;\n  return {\n    ref,\n    name: render.name,\n    template,\n    controller: render.controller\n  };\n}\nfunction isStable(state, lastState) {\n  if (state === null || lastState === null) {\n    return false;\n  }\n  return state.template === lastState.template && state.controller === lastState.controller;\n}\n\nconst ROUTER_KEYWORD_HELPERS = {\n  '-mount': mountHelper,\n  '-outlet': outletHelper\n};\n\n/**\n * The resolver used by the classic application `Renderer`. It extends the\n * shared `ResolverImpl` with the keywords that require the router and engine\n * infrastructure (`{{outlet}}` and `{{mount}}`). Keeping these out of the\n * base resolver means renderers that have no router (e.g. `renderComponent`)\n * do not pull the outlet/engine machinery into the build.\n */\nclass RouterResolver extends ResolverImpl {\n  lookupBuiltInHelper(name) {\n    return ROUTER_KEYWORD_HELPERS[name] ?? super.lookupBuiltInHelper(name);\n  }\n\n  // Loose-mode templates resolve the wrapped `{{outlet}}` / `{{mount}}`\n  // keywords (`{{component (-outlet)}}`) through `lookupHelper`, not\n  // `lookupBuiltInHelper`, so the router keywords have to be added to both\n  // lookup paths.\n  lookupHelper(name, owner) {\n    return ROUTER_KEYWORD_HELPERS[name] ?? super.lookupHelper(name, owner);\n  }\n}\n\n// 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';\nclass OutletView {\n  static extend(injections) {\n    return class extends OutletView {\n      static create(options) {\n        if (options) {\n          return super.create(Object.assign({}, injections, options));\n        } else {\n          return super.create(injections);\n        }\n      }\n    };\n  }\n  static reopenClass(injections) {\n    Object.assign(this, injections);\n  }\n  static create(options) {\n    let {\n      environment: _environment,\n      application: namespace,\n      template: templateFactory\n    } = options;\n    let owner = getOwner(options);\n    let template = templateFactory(owner);\n    return new OutletView(_environment, owner, template, namespace);\n  }\n  ref;\n  state;\n  constructor(_environment, owner, template, namespace) {\n    this._environment = _environment;\n    this.owner = owner;\n    this.template = template;\n    this.namespace = namespace;\n    let outletStateTag = createTag();\n    let outletState = {\n      outlets: {\n        main: undefined\n      },\n      render: {\n        owner: owner,\n        name: TOP_LEVEL_NAME,\n        controller: undefined,\n        model: undefined,\n        template\n      }\n    };\n    let ref = this.ref = createComputeRef(() => {\n      consumeTag(outletStateTag);\n      return outletState;\n    }, state => {\n      DIRTY_TAG$1(outletStateTag);\n      outletState.outlets['main'] = state;\n    });\n    this.state = {\n      ref,\n      name: TOP_LEVEL_NAME,\n      template,\n      controller: undefined\n    };\n  }\n  appendTo(selector) {\n    let target;\n    if (this._environment.hasDOM) {\n      target = typeof selector === 'string' ? document.querySelector(selector) : selector;\n    } else {\n      target = selector;\n    }\n    let renderer = this.owner.lookup('renderer:-dom');\n\n    // SAFETY: It's not clear that this cast is safe.\n    // The types for appendOutletView may be incorrect or this is a potential bug.\n    schedule('render', renderer, 'appendOutletView', this, target);\n  }\n  rerender() {\n    /**/\n  }\n  setOutletState(state) {\n    updateRef(this.ref, state);\n  }\n  destroy() {\n    /**/\n  }\n}\n\nclass DynamicScope {\n  constructor(view, outletState) {\n    this.view = view;\n    this.outletState = outletState;\n  }\n  child() {\n    return new DynamicScope(this.view, this.outletState);\n  }\n  get(key) {\n    return this.outletState;\n  }\n  set(key, value) {\n    this.outletState = value;\n    return value;\n  }\n}\nclass ClassicRootState {\n  type = 'classic';\n  id;\n  result;\n  destroyed;\n  render;\n  env;\n  constructor(root, context, owner, template, self, parentElement, dynamicScope, builder) {\n    this.root = root;\n    this.id = root instanceof OutletView ? guidFor(root) : getViewId(root);\n    this.result = undefined;\n    this.destroyed = false;\n    this.env = context.env;\n    this.render = errorLoopTransaction(() => {\n      let layout = unwrapTemplate(template).asLayout();\n      let iterator = renderMain(context, owner, self, builder(context.env, {\n        element: parentElement,\n        nextSibling: null\n      }), layout, dynamicScope);\n      let result = this.result = iterator.sync();\n      associateDestroyableChild(this, result);\n      this.render = errorLoopTransaction(() => {\n        if (isDestroying(result) || isDestroyed(result)) return;\n        return result.rerender({\n          alwaysRevalidate: false\n        });\n      });\n    });\n  }\n  isFor(possibleRoot) {\n    return this.root === possibleRoot;\n  }\n  destroy() {\n    let {\n      result,\n      env\n    } = this;\n    this.destroyed = true;\n    this.root = null;\n    this.result = undefined;\n    this.render = undefined;\n    if (result !== undefined) {\n      /*\n       Handles these scenarios:\n        * When roots are removed during standard rendering process, a transaction exists already\n         `.begin()` / `.commit()` are not needed.\n       * When roots are being destroyed manually (`component.append(); component.destroy() case), no\n         transaction exists already.\n       * When roots are being destroyed during `Renderer#destroy`, no transaction exists\n        */\n\n      inTransaction(env, () => destroy(result));\n    }\n  }\n}\nclass Renderer extends BaseRenderer {\n  _rootTemplate;\n  _viewRegistry;\n  static create(props) {\n    let {\n      _viewRegistry\n    } = props;\n    let owner = getOwner(props);\n    let document = owner.lookup('service:-document');\n    let env = owner.lookup('-environment:main');\n    let rootTemplate = owner.lookup(privatize`template:-root`);\n    let builder = owner.lookup('service:-dom-builder');\n    return new this(owner, document, env, rootTemplate, _viewRegistry, builder);\n  }\n  constructor(owner, document, env, rootTemplate, viewRegistry, builder = clientBuilder, resolver = new RouterResolver()) {\n    super(owner, env, document, resolver, builder);\n    this._rootTemplate = rootTemplate(owner);\n    this._viewRegistry = viewRegistry || owner.lookup('-view-registry:main');\n  }\n\n  // renderer HOOKS\n\n  appendOutletView(view, target) {\n    // TODO: This bypasses the {{outlet}} syntax so logically duplicates\n    // some of the set up code. Since this is all internal (or is it?),\n    // we can refactor this to do something more direct/less convoluted\n    // and with less setup, but get it working first\n    let outlet = createRootOutlet(view);\n    let {\n      name,\n      /* controller, */template\n    } = view.state;\n    let named = dict();\n    named['Component'] = createConstRef(makeRouteTemplate(view.owner, name, template));\n\n    // TODO: is this guaranteed to be undefined? It seems to be the\n    // case in the `OutletView` class. Investigate how much that class\n    // exists as an internal implementation detail only, or if it was\n    // used outside of core. As far as I can tell, test-helpers uses\n    // it but only for `setOutletState`.\n    // named['controller'] = createConstRef(controller, '@controller');\n    // Update: at least according to the debug render tree tests, we\n    // appear to always expect this to be undefined. Not a definitive\n    // source by any means, but is useful evidence\n    named['controller'] = UNDEFINED_REFERENCE;\n    named['model'] = UNDEFINED_REFERENCE;\n    let args = createCapturedArgs(named, EMPTY_POSITIONAL);\n    this._appendDefinition(view, curry(0, outlet, view.owner, args, true), target);\n  }\n  appendTo(view, target) {\n    let definition = new RootComponentDefinition(view);\n    this._appendDefinition(view, curry(0, definition, this.state.owner, null, true), target);\n  }\n  _appendDefinition(root, definition, target) {\n    let self = createConstRef(definition);\n    let dynamicScope = new DynamicScope(null, UNDEFINED_REFERENCE);\n    let rootState = new ClassicRootState(root, this.state.context, this.state.owner, this._rootTemplate, self, target, dynamicScope, this.state.builder);\n    this.state.renderRoot(rootState, this);\n  }\n  cleanupRootFor(component) {\n    // no need to cleanup roots if we have already been destroyed\n    if (isDestroyed(this)) {\n      return;\n    }\n    let roots = this.state.roots;\n\n    // traverse in reverse so we can remove items\n    // without mucking up the index\n    let i = roots.length;\n    while (i--) {\n      let root = roots[i];\n      if (root.type === 'classic' && root.isFor(component)) {\n        root.destroy();\n        roots.splice(i, 1);\n      }\n    }\n  }\n  remove(view) {\n    view._transitionTo('destroying');\n    this.cleanupRootFor(view);\n    if (this.state.isInteractive) {\n      sendCoreViewEvent(view, 'didDestroyElement');\n    }\n  }\n  get _roots() {\n    return this.state.debug.roots;\n  }\n  get _inRenderTransaction() {\n    return this.state.debug.inRenderTransaction;\n  }\n  get _isInteractive() {\n    return this.state.debug.isInteractive;\n  }\n  get _context() {\n    return this.state.context;\n  }\n  register(view) {\n    let id = getViewId(view);\n    this._viewRegistry[id] = view;\n  }\n  unregister(view) {\n    delete this._viewRegistry[getViewId(view)];\n  }\n  getElement(component) {\n    if (this._isInteractive) {\n      return getViewElement(component);\n    } else {\n      throw new Error('Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).');\n    }\n  }\n  getBounds(component) {\n    let bounds = component[BOUNDS];\n    let parentElement = bounds.parentElement();\n    let firstNode = bounds.firstNode();\n    let lastNode = bounds.lastNode();\n    return {\n      parentElement,\n      firstNode,\n      lastNode\n    };\n  }\n}\n\nconst OutletTemplate = templateFactory(\n/*\n  {{component (outletHelper)}}\n*/\n{\n  \"id\": null,\n  \"block\": \"[[[46,[28,[32,0],null,null],null,null,null]],[],[\\\"component\\\"]]\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/outlet.hbs\",\n  \"scope\": () => ({\n    outletHelper\n  }),\n  \"isStrictMode\": true\n});\n\nfunction setupApplicationRegistry(registry) {\n  // because we are using injections we can't use instantiate false\n  // we need to use bind() to copy the function so factory for\n  // association won't leak\n  registry.register('service:-dom-builder', {\n    // Additionally, we *must* constrain this to require `props` on create, else\n    // we *know* it cannot have an owner.\n    create(props) {\n      let owner = getOwner(props);\n      let env = owner.lookup('-environment:main');\n      switch (env._renderMode) {\n        case 'serialize':\n          return serializeBuilder.bind(null);\n        case 'rehydrate':\n          return rehydrationBuilder.bind(null);\n        default:\n          return clientBuilder.bind(null);\n      }\n    }\n  });\n  registry.register(privatize`template:-root`, RootTemplate);\n  registry.register('renderer:-dom', Renderer);\n}\nfunction setupEngineRegistry(registry) {\n  registry.optionsForType('template', {\n    instantiate: false\n  });\n  registry.register('view:-outlet', OutletView);\n  registry.register('template:-outlet', OutletTemplate);\n  registry.optionsForType('helper', {\n    instantiate: false\n  });\n  registry.register('component:input', Input);\n  registry.register('component:link-to', LinkTo);\n  registry.register('component:textarea', Textarea);\n}\n\nexport { OutletView as O, Renderer as R, RootTemplate as a, setupEngineRegistry as b, setupApplicationRegistry as s };\n","function castToSimple(node) {\n  if (isDocument(node)) {\n    return node;\n  } else if (isSimpleElement(node)) {\n    return node;\n  } else {\n    return node;\n  }\n}\n\n// If passed a document, verify we're in the browser and return it as a Document\n\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\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\n\nfunction castToBrowser(node, sugaryCheck) {\n  {\n    return node;\n  }\n}\nconst ELEMENT_NODE = 1;\nconst DOCUMENT_NODE = 9;\nfunction isDocument(node) {\n  return node.nodeType === DOCUMENT_NODE;\n}\nfunction isSimpleElement(node) {\n  return node?.nodeType === ELEMENT_NODE;\n}\n\nexport { castToBrowser as a, castToSimple as c };\n","/**\n  Returns whether Type(value) is Object.\n\n  Useful for checking whether a value is a valid WeakMap key.\n\n  Refs: https://tc39.github.io/ecma262/#sec-typeof-operator-runtime-semantics-evaluation\n        https://tc39.github.io/ecma262/#sec-weakmap.prototype.set\n\n  @private\n  @function isObject\n*/\nfunction isObject(value) {\n  return value !== null && (typeof value === 'object' || typeof value === 'function');\n}\n\nexport { isObject as i };\n","const HAS_SUPER_PATTERN = /\\.(_super|call\\(this|apply\\(this)/;\nconst fnToString = Function.prototype.toString;\nconst checkHasSuper = (() => {\n  let sourceAvailable = fnToString.call(function () {\n    return this;\n  }).indexOf('return this') > -1;\n  if (sourceAvailable) {\n    return function checkHasSuper(func) {\n      return HAS_SUPER_PATTERN.test(fnToString.call(func));\n    };\n  }\n  return function checkHasSuper() {\n    return true;\n  };\n})();\nconst HAS_SUPER_MAP = new WeakMap();\nconst ROOT = Object.freeze(function () {});\nHAS_SUPER_MAP.set(ROOT, false);\nfunction hasSuper(func) {\n  let hasSuper = HAS_SUPER_MAP.get(func);\n  if (hasSuper === undefined) {\n    hasSuper = checkHasSuper(func);\n    HAS_SUPER_MAP.set(func, hasSuper);\n  }\n  return hasSuper;\n}\nclass ObserverListenerMeta {\n  listeners = undefined;\n  observers = undefined;\n}\nconst OBSERVERS_LISTENERS_MAP = new WeakMap();\nfunction createObserverListenerMetaFor(fn) {\n  let meta = OBSERVERS_LISTENERS_MAP.get(fn);\n  if (meta === undefined) {\n    meta = new ObserverListenerMeta();\n    OBSERVERS_LISTENERS_MAP.set(fn, meta);\n  }\n  return meta;\n}\nfunction observerListenerMetaFor(fn) {\n  return OBSERVERS_LISTENERS_MAP.get(fn);\n}\nfunction setObservers(func, observers) {\n  let meta = createObserverListenerMetaFor(func);\n  meta.observers = observers;\n}\nfunction setListeners(func, listeners) {\n  let meta = createObserverListenerMetaFor(func);\n  meta.listeners = listeners;\n}\nconst IS_WRAPPED_FUNCTION_SET = new WeakSet();\n\n/**\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*/\nfunction wrap(func, superFunc) {\n  if (!hasSuper(func)) {\n    return func;\n  }\n  // ensure an unwrapped super that calls _super is wrapped with a terminal _super\n  if (!IS_WRAPPED_FUNCTION_SET.has(superFunc) && hasSuper(superFunc)) {\n    return _wrap(func, _wrap(superFunc, ROOT));\n  }\n  return _wrap(func, superFunc);\n}\nfunction _wrap(func, superFunc) {\n  function superWrapper() {\n    let orig = this._super;\n    this._super = superFunc;\n    let ret = func.apply(this, arguments);\n    this._super = orig;\n    return ret;\n  }\n  IS_WRAPPED_FUNCTION_SET.add(superWrapper);\n  let meta = OBSERVERS_LISTENERS_MAP.get(func);\n  if (meta !== undefined) {\n    OBSERVERS_LISTENERS_MAP.set(superWrapper, meta);\n  }\n  return superWrapper;\n}\n\nexport { ROOT as R, setListeners as a, checkHasSuper as c, observerListenerMetaFor as o, setObservers as s, wrap as w };\n","const SIGN_BIT = -536870913;\nconst MAX_INT = ~SIGN_BIT - 1;\nconst MIN_INT = ~MAX_INT;\nfunction isHandle(value) {\n  return value >= 0;\n}\nfunction constants(...values) {\n  return [false, true, null, undefined, ...values];\n}\nfunction isSmallInt(value) {\n  return value % 1 === 0 && value <= MAX_INT && value >= MIN_INT;\n}\nfunction encodeNegative(num) {\n  return num & SIGN_BIT;\n}\nfunction decodeNegative(num) {\n  return num | ~SIGN_BIT;\n}\nfunction encodePositive(num) {\n  return ~num;\n}\nfunction decodePositive(num) {\n  return ~num;\n}\nfunction encodeHandle(num) {\n  return num;\n}\nfunction decodeHandle(num) {\n  return num;\n}\nfunction encodeImmediate(num) {\n  num |= 0;\n  return num < 0 ? encodeNegative(num) : encodePositive(num);\n}\nfunction decodeImmediate(num) {\n  num |= 0;\n  return num > SIGN_BIT ? decodePositive(num) : decodeNegative(num);\n}\n[1, -1].forEach(x => decodeImmediate(encodeImmediate(x)));\n\nconst VM_HELPER_OP = 16;\nconst VM_SET_NAMED_VARIABLES_OP = 17;\nconst VM_SET_BLOCKS_OP = 18;\nconst VM_SET_VARIABLE_OP = 19;\nconst VM_SET_BLOCK_OP = 20;\nconst VM_GET_VARIABLE_OP = 21;\nconst VM_GET_PROPERTY_OP = 22;\nconst VM_GET_BLOCK_OP = 23;\nconst VM_SPREAD_BLOCK_OP = 24;\nconst VM_HAS_BLOCK_OP = 25;\nconst VM_HAS_BLOCK_PARAMS_OP = 26;\nconst VM_CONCAT_OP = 27;\nconst VM_CONSTANT_OP = 28;\nconst VM_CONSTANT_REFERENCE_OP = 29;\nconst VM_PRIMITIVE_OP = 30;\nconst VM_PRIMITIVE_REFERENCE_OP = 31;\nconst VM_DUP_OP = 33;\nconst VM_POP_OP = 34;\nconst VM_LOAD_OP = 35;\nconst VM_FETCH_OP = 36;\nconst VM_ROOT_SCOPE_OP = 37;\nconst VM_VIRTUAL_ROOT_SCOPE_OP = 38;\nconst VM_CHILD_SCOPE_OP = 39;\nconst VM_POP_SCOPE_OP = 40;\nconst VM_TEXT_OP = 41;\nconst VM_COMMENT_OP = 42;\nconst VM_APPEND_HTML_OP = 43;\nconst VM_APPEND_SAFE_HTML_OP = 44;\nconst VM_APPEND_DOCUMENT_FRAGMENT_OP = 45;\nconst VM_APPEND_NODE_OP = 46;\nconst VM_APPEND_TEXT_OP = 47;\nconst VM_OPEN_ELEMENT_OP = 48;\nconst VM_OPEN_DYNAMIC_ELEMENT_OP = 49;\nconst VM_PUSH_REMOTE_ELEMENT_OP = 50;\nconst VM_STATIC_ATTR_OP = 51;\nconst VM_DYNAMIC_ATTR_OP = 52;\nconst VM_COMPONENT_ATTR_OP = 53;\nconst VM_FLUSH_ELEMENT_OP = 54;\nconst VM_CLOSE_ELEMENT_OP = 55;\nconst VM_POP_REMOTE_ELEMENT_OP = 56;\nconst VM_MODIFIER_OP = 57;\nconst VM_BIND_DYNAMIC_SCOPE_OP = 58;\nconst VM_PUSH_DYNAMIC_SCOPE_OP = 59;\nconst VM_POP_DYNAMIC_SCOPE_OP = 60;\nconst VM_COMPILE_BLOCK_OP = 61;\nconst VM_PUSH_BLOCK_SCOPE_OP = 62;\nconst VM_PUSH_SYMBOL_TABLE_OP = 63;\nconst VM_INVOKE_YIELD_OP = 64;\nconst VM_JUMP_UNLESS_OP = 66;\nconst VM_JUMP_EQ_OP = 67;\nconst VM_ASSERT_SAME_OP = 68;\nconst VM_ENTER_OP = 69;\nconst VM_EXIT_OP = 70;\nconst VM_TO_BOOLEAN_OP = 71;\nconst VM_ENTER_LIST_OP = 72;\nconst VM_EXIT_LIST_OP = 73;\nconst VM_ITERATE_OP = 74;\nconst VM_MAIN_OP = 75;\nconst VM_CONTENT_TYPE_OP = 76;\nconst VM_CURRY_OP = 77;\nconst VM_PUSH_COMPONENT_DEFINITION_OP = 78;\nconst VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP = 79;\nconst VM_RESOLVE_DYNAMIC_COMPONENT_OP = 80;\nconst VM_RESOLVE_CURRIED_COMPONENT_OP = 81;\nconst VM_PUSH_ARGS_OP = 82;\nconst VM_PUSH_EMPTY_ARGS_OP = 83;\nconst VM_PREPARE_ARGS_OP = 85;\nconst VM_CAPTURE_ARGS_OP = 86;\nconst VM_CREATE_COMPONENT_OP = 87;\nconst VM_REGISTER_COMPONENT_DESTRUCTOR_OP = 88;\nconst VM_PUT_COMPONENT_OPERATIONS_OP = 89;\nconst VM_GET_COMPONENT_SELF_OP = 90;\nconst VM_GET_COMPONENT_TAG_NAME_OP = 91;\nconst VM_GET_COMPONENT_LAYOUT_OP = 92;\nconst VM_POPULATE_LAYOUT_OP = 95;\nconst VM_INVOKE_COMPONENT_LAYOUT_OP = 96;\nconst VM_BEGIN_COMPONENT_TRANSACTION_OP = 97;\nconst VM_COMMIT_COMPONENT_TRANSACTION_OP = 98;\nconst VM_DID_CREATE_ELEMENT_OP = 99;\nconst VM_DID_RENDER_LAYOUT_OP = 100;\nconst VM_DEBUGGER_OP = 103;\nconst VM_STATIC_COMPONENT_ATTR_OP = 105;\nconst VM_DYNAMIC_CONTENT_TYPE_OP = 106;\nconst VM_DYNAMIC_HELPER_OP = 107;\nconst VM_DYNAMIC_MODIFIER_OP = 108;\nconst VM_IF_INLINE_OP = 109;\nconst VM_NOT_OP = 110;\nconst VM_GET_DYNAMIC_VAR_OP = 111;\nconst VM_LOG_OP = 112;\nconst VM_SYSCALL_SIZE = 113;\n\nexport { VM_PREPARE_ARGS_OP as $, VM_ENTER_OP as A, VM_EXIT_OP as B, VM_PUSH_SYMBOL_TABLE_OP as C, VM_PUSH_BLOCK_SCOPE_OP as D, VM_COMPILE_BLOCK_OP as E, VM_INVOKE_YIELD_OP as F, VM_JUMP_UNLESS_OP as G, VM_JUMP_EQ_OP as H, VM_TO_BOOLEAN_OP as I, VM_TEXT_OP as J, VM_COMMENT_OP as K, VM_OPEN_ELEMENT_OP as L, VM_OPEN_DYNAMIC_ELEMENT_OP as M, VM_PUSH_REMOTE_ELEMENT_OP as N, VM_POP_REMOTE_ELEMENT_OP as O, VM_FLUSH_ELEMENT_OP as P, VM_CLOSE_ELEMENT_OP as Q, VM_MODIFIER_OP as R, VM_DYNAMIC_MODIFIER_OP as S, VM_STATIC_ATTR_OP as T, VM_DYNAMIC_ATTR_OP as U, VM_MAIN_OP as V, VM_PUSH_COMPONENT_DEFINITION_OP as W, VM_RESOLVE_DYNAMIC_COMPONENT_OP as X, VM_PUSH_ARGS_OP as Y, VM_PUSH_EMPTY_ARGS_OP as Z, VM_CAPTURE_ARGS_OP as _, VM_CONTENT_TYPE_OP as a, VM_CREATE_COMPONENT_OP as a0, VM_REGISTER_COMPONENT_DESTRUCTOR_OP as a1, VM_BEGIN_COMPONENT_TRANSACTION_OP as a2, VM_PUT_COMPONENT_OPERATIONS_OP as a3, VM_COMPONENT_ATTR_OP as a4, VM_STATIC_COMPONENT_ATTR_OP as a5, VM_DID_CREATE_ELEMENT_OP as a6, VM_GET_COMPONENT_SELF_OP as a7, VM_GET_COMPONENT_TAG_NAME_OP as a8, VM_GET_COMPONENT_LAYOUT_OP as a9, VM_ENTER_LIST_OP as aA, VM_EXIT_LIST_OP as aB, VM_ITERATE_OP as aC, encodeHandle as aD, isSmallInt as aE, encodeImmediate as aF, constants as aG, VM_POPULATE_LAYOUT_OP as aa, VM_VIRTUAL_ROOT_SCOPE_OP as ab, VM_SET_NAMED_VARIABLES_OP as ac, VM_SET_BLOCKS_OP as ad, VM_INVOKE_COMPONENT_LAYOUT_OP as ae, VM_DID_RENDER_LAYOUT_OP as af, VM_COMMIT_COMPONENT_TRANSACTION_OP as ag, VM_CURRY_OP as ah, VM_DYNAMIC_HELPER_OP as ai, VM_HELPER_OP as aj, VM_GET_VARIABLE_OP as ak, VM_SET_VARIABLE_OP as al, VM_SET_BLOCK_OP as am, VM_ROOT_SCOPE_OP as an, VM_GET_PROPERTY_OP as ao, VM_GET_BLOCK_OP as ap, VM_SPREAD_BLOCK_OP as aq, VM_HAS_BLOCK_OP as ar, VM_HAS_BLOCK_PARAMS_OP as as, VM_CONCAT_OP as at, VM_IF_INLINE_OP as au, VM_NOT_OP as av, VM_GET_DYNAMIC_VAR_OP as aw, VM_LOG_OP as ax, VM_DYNAMIC_CONTENT_TYPE_OP as ay, VM_DEBUGGER_OP as az, VM_ASSERT_SAME_OP as b, VM_APPEND_HTML_OP as c, VM_APPEND_TEXT_OP as d, VM_RESOLVE_CURRIED_COMPONENT_OP as e, VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP as f, VM_APPEND_SAFE_HTML_OP as g, VM_APPEND_DOCUMENT_FRAGMENT_OP as h, VM_APPEND_NODE_OP as i, VM_SYSCALL_SIZE as j, VM_CHILD_SCOPE_OP as k, VM_POP_SCOPE_OP as l, VM_PUSH_DYNAMIC_SCOPE_OP as m, VM_POP_DYNAMIC_SCOPE_OP as n, VM_CONSTANT_OP as o, decodeHandle as p, VM_CONSTANT_REFERENCE_OP as q, VM_PRIMITIVE_OP as r, isHandle as s, decodeImmediate as t, VM_PRIMITIVE_REFERENCE_OP as u, VM_DUP_OP as v, VM_POP_OP as w, VM_LOAD_OP as x, VM_FETCH_OP as y, VM_BIND_DYNAMIC_SCOPE_OP as z };\n","function unwrapHandle(handle) {\n  if (typeof handle === 'number') {\n    return handle;\n  } else {\n    let error = handle.errors[0];\n    throw new Error(`Compile Error: ${error.problem} @ ${error.span.start}..${error.span.end}`);\n  }\n}\nfunction unwrapTemplate(template) {\n  if (template.result === 'error') {\n    throw new Error(`Compile Error: ${template.problem} @ ${template.span.start}..${template.span.end}`);\n  }\n  return template;\n}\n\nexport { unwrapHandle as a, unwrapTemplate as u };\n","const TEMPLATES = new WeakMap();\nconst getPrototypeOf = Reflect.getPrototypeOf;\nfunction setComponentTemplate(factory, obj) {\n  TEMPLATES.set(obj, factory);\n  return obj;\n}\nfunction getComponentTemplate(obj) {\n  let pointer = obj;\n  while (pointer !== null) {\n    let template = TEMPLATES.get(pointer);\n    if (template !== undefined) {\n      return template;\n    }\n    pointer = getPrototypeOf(pointer);\n  }\n  return undefined;\n}\n\nexport { getComponentTemplate as g, setComponentTemplate as s };\n","import { s as setInternalComponentManager } from './api-DJnXAjon.js';\nimport { N as NULL_REFERENCE } from './reference-CccCE8mJ.js';\n\nconst CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: false,\n  updateHook: false,\n  createInstance: false,\n  wrapped: false,\n  willDestroy: false,\n  hasSubOwner: false\n};\nclass TemplateOnlyComponentManager {\n  getCapabilities() {\n    return CAPABILITIES;\n  }\n  getDebugName({\n    name\n  }) {\n    return name;\n  }\n  getSelf() {\n    return NULL_REFERENCE;\n  }\n  getDestroyable() {\n    return null;\n  }\n}\nconst TEMPLATE_ONLY_COMPONENT_MANAGER = new TemplateOnlyComponentManager();\n\n// This is only exported for types, don't use this class directly\nclass TemplateOnlyComponentDefinition {\n  constructor(moduleName = '@glimmer/component/template-only', name = '(unknown template-only component)') {\n    this.moduleName = moduleName;\n    this.name = name;\n  }\n  toString() {\n    return this.moduleName;\n  }\n}\nsetInternalComponentManager(TEMPLATE_ONLY_COMPONENT_MANAGER, TemplateOnlyComponentDefinition.prototype);\n\n/**\n  This utility function is used to declare a given component has no backing class. When the rendering engine detects this it\n  is able to perform a number of optimizations. Templates that are associated with `templateOnly()` will be rendered _as is_\n  without adding a wrapping `<div>` (or any of the other element customization behaviors of [@ember/component](/ember/release/classes/Component)).\n  Specifically, this means that the template will be rendered as \"outer HTML\".\n\n  In general, this method will be used by build time tooling and would not be directly written in an application. However,\n  at times it may be useful to use directly to leverage the \"outer HTML\" semantics mentioned above. For example, if an addon would like\n  to use these semantics for its templates but cannot be certain it will only be consumed by applications that have enabled the\n  `template-only-glimmer-components` optional feature.\n\n  ```js\n  import { templateOnlyComponent } from '@glimmer/runtime';\n\n  export default templateOnlyComponent();\n  ```\n\n  @public\n  @method templateOnly\n  @param {String} moduleName the module name that the template only component represents, this will be used for debugging purposes\n  @category EMBER_GLIMMER_SET_COMPONENT_TEMPLATE\n*/\n\nfunction templateOnlyComponent(moduleName, name) {\n  return new TemplateOnlyComponentDefinition(moduleName, name);\n}\n\nexport { TEMPLATE_ONLY_COMPONENT_MANAGER as T, TemplateOnlyComponentDefinition as a, TemplateOnlyComponentManager as b, templateOnlyComponent as t };\n","import { h as hasDOM } from './has-dom-DdQORPzI.js';\nimport { action } from '../@ember/object/index.js';\nimport { i as isConstRef, v as valueForRef, b as isUpdatableRef, u as updateRef } from './reference-CccCE8mJ.js';\nimport './cache-CofLhaS4.js';\nimport { on } from '../@ember/modifier/on.js';\nimport { t as templateFactory } from './index-kwuZeaNz.js';\nimport { I as InternalComponent, o as opaquify } from './internal-D1sloI2P.js';\nimport { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from './runtime-CYyqkz5q-BOdRhmsS.js';\nimport { t as tracked } from './tracked-CR6xx3iR.js';\n\nconst InputTemplate = templateFactory(\n/*\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*/\n{\n  \"id\": null,\n  \"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\\\"],[]]\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/input.hbs\",\n  \"scope\": () => ({\n    on\n  }),\n  \"isStrictMode\": true\n});\n\nconst UNINITIALIZED = Object.freeze({});\nfunction elementForEvent(event) {\n  return event.target;\n}\nfunction valueForEvent(event) {\n  return elementForEvent(event).value;\n}\nfunction devirtualize(callback) {\n  return event => callback(valueForEvent(event), event);\n}\nfunction valueFrom(reference) {\n  if (reference === undefined) {\n    return new LocalValue(undefined);\n  } else if (isConstRef(reference)) {\n    return new LocalValue(valueForRef(reference));\n  } else if (isUpdatableRef(reference)) {\n    return new UpstreamValue(reference);\n  } else {\n    return new ForkedValue(reference);\n  }\n}\nclass LocalValue {\n  static {\n    decorateFieldV2(this.prototype, \"value\", [tracked]);\n  }\n  #value = (initializeDeferredDecorator(this, \"value\"), void 0);\n  constructor(value) {\n    this.value = value;\n  }\n  get() {\n    return this.value;\n  }\n  set(value) {\n    this.value = value;\n  }\n}\nclass UpstreamValue {\n  constructor(reference) {\n    this.reference = reference;\n  }\n  get() {\n    return valueForRef(this.reference);\n  }\n  set(value) {\n    updateRef(this.reference, value);\n  }\n}\nclass ForkedValue {\n  local;\n  upstream;\n  lastUpstreamValue = UNINITIALIZED;\n  constructor(reference) {\n    this.upstream = new UpstreamValue(reference);\n  }\n  get() {\n    let upstreamValue = this.upstream.get();\n    if (upstreamValue !== this.lastUpstreamValue) {\n      this.lastUpstreamValue = upstreamValue;\n      this.local = new LocalValue(upstreamValue);\n    }\n    return this.local.get();\n  }\n  set(value) {\n    this.local.set(value);\n  }\n}\nclass AbstractInput extends InternalComponent {\n  validateArguments() {\n    super.validateArguments();\n  }\n  _value = valueFrom(this.args.named['value']);\n  get value() {\n    return this._value.get();\n  }\n  set value(value) {\n    this._value.set(value);\n  }\n  valueDidChange(event) {\n    this.value = valueForEvent(event);\n  }\n\n  /**\n   * The `change` and `input` actions need to be overridden in the `Input`\n   * subclass. Unfortunately, some ember-source builds currently uses babel\n   * loose mode to transpile its classes. Having the `@action` decorator on the\n   * super class creates a getter on the prototype, and when the subclass\n   * overrides the method, the loose mode transpilation would emit something\n   * like `Subclass.prototype['change'] = function change() { ... }`, which\n   * fails because `prototype['change']` is getter-only/readonly. The correct\n   * solution is to use `Object.defineProperty(prototype, 'change', ...)` but\n   * that requires disabling loose mode. For now, the workaround is to add the\n   * decorator only on the subclass. This is more of a configuration issue on\n   * our own builds and doesn't really affect apps.\n   */\n\n  /* @action */\n  static {\n    decorateMethodV2(this.prototype, \"valueDidChange\", [action]);\n  }\n  change(event) {\n    this.valueDidChange(event);\n  }\n\n  /* @action */\n  input(event) {\n    this.valueDidChange(event);\n  }\n  keyUp(event) {\n    switch (event.key) {\n      case 'Enter':\n        this.listenerFor('enter')(event);\n        this.listenerFor('insert-newline')(event);\n        break;\n      case 'Escape':\n        this.listenerFor('escape-press')(event);\n        break;\n    }\n  }\n  static {\n    decorateMethodV2(this.prototype, \"keyUp\", [action]);\n  }\n  listenerFor(name) {\n    let listener = super.listenerFor(name);\n    if (this.isVirtualEventListener(name, listener)) {\n      return devirtualize(listener);\n    } else {\n      return listener;\n    }\n  }\n  isVirtualEventListener(name, _listener) {\n    let virtualEvents = ['enter', 'insert-newline', 'escape-press'];\n    return virtualEvents.indexOf(name) !== -1;\n  }\n}\n\n/**\n@module @ember/component\n*/\nlet isValidInputType;\nif (hasDOM) {\n  const INPUT_TYPES = Object.create(null);\n  const INPUT_ELEMENT = document.createElement('input');\n  INPUT_TYPES[''] = false;\n  INPUT_TYPES['text'] = true;\n  INPUT_TYPES['checkbox'] = true;\n  isValidInputType = type => {\n    let isValid = INPUT_TYPES[type];\n    if (isValid === undefined) {\n      try {\n        INPUT_ELEMENT.type = type;\n        isValid = INPUT_ELEMENT.type === type;\n      } catch (_e) {\n        isValid = false;\n      } finally {\n        INPUT_ELEMENT.type = 'text';\n      }\n      INPUT_TYPES[type] = isValid;\n    }\n    return isValid;\n  };\n} else {\n  isValidInputType = type => type !== '';\n}\n\n/**\n  The `Input` component lets you create an HTML `<input>` element.\n\n  ```gjs\n  import { Input } from '@ember/component';\n    \n  <template>\n    <Input @value=\"987\" />\n  </template>\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/component\n  @static\n  @param {Hash} options\n  @public\n*/\nclass _Input extends AbstractInput {\n  static toString() {\n    return 'Input';\n  }\n\n  /**\n   * The HTML class attribute.\n   */\n  get class() {\n    if (this.isCheckbox) {\n      return 'ember-checkbox ember-view';\n    } else {\n      return 'ember-text-field ember-view';\n    }\n  }\n\n  /**\n   * The HTML type attribute.\n   */\n  get type() {\n    let type = this.named('type');\n    if (type === null || type === undefined) {\n      return 'text';\n    }\n    return isValidInputType(type) ? type : 'text';\n  }\n  get isCheckbox() {\n    return this.named('type') === 'checkbox';\n  }\n  _checked = valueFrom(this.args.named['checked']);\n  get checked() {\n    if (this.isCheckbox) {\n      return this._checked.get();\n    } else {\n      return undefined;\n    }\n  }\n  set checked(checked) {\n    this._checked.set(checked);\n  }\n  change(event) {\n    if (this.isCheckbox) {\n      this.checkedDidChange(event);\n    } else {\n      super.change(event);\n    }\n  }\n  static {\n    decorateMethodV2(this.prototype, \"change\", [action]);\n  }\n  input(event) {\n    if (!this.isCheckbox) {\n      super.input(event);\n    }\n  }\n  static {\n    decorateMethodV2(this.prototype, \"input\", [action]);\n  }\n  checkedDidChange(event) {\n    let element = event.target;\n    this.checked = element.checked;\n  }\n  static {\n    decorateMethodV2(this.prototype, \"checkedDidChange\", [action]);\n  }\n  isSupportedArgument(name) {\n    let supportedArguments = ['type', 'value', 'checked', 'enter', 'insert-newline', 'escape-press'];\n    return supportedArguments.indexOf(name) !== -1 || super.isSupportedArgument(name);\n  }\n}\nconst Input = opaquify(_Input, InputTemplate);\n\nconst TextareaTemplate = templateFactory(\n/*\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*/\n{\n  \"id\": null,\n  \"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\\\"],[]]\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/textarea.hbs\",\n  \"scope\": () => ({\n    on\n  }),\n  \"isStrictMode\": true\n});\n\n/**\n@module @ember/component\n*/\n\nclass _Textarea extends AbstractInput {\n  static toString() {\n    return 'Textarea';\n  }\n  get class() {\n    return 'ember-text-area ember-view';\n  }\n\n  // See abstract-input.ts for why these are needed\n\n  change(event) {\n    super.change(event);\n  }\n  static {\n    decorateMethodV2(this.prototype, \"change\", [action]);\n  }\n  input(event) {\n    super.input(event);\n  }\n  static {\n    decorateMethodV2(this.prototype, \"input\", [action]);\n  }\n  isSupportedArgument(name) {\n    let supportedArguments = ['type', 'value', 'enter', 'insert-newline', 'escape-press'];\n    return supportedArguments.indexOf(name) !== -1 || super.isSupportedArgument(name);\n  }\n}\nconst Textarea = opaquify(_Textarea, TextareaTemplate);\n\nexport { Input as I, Textarea as T };\n","import { meta } from '../@ember/-internals/meta/lib/meta.js';\nimport { isEmberArray } from '../@ember/array/-internals.js';\nimport { c as consumeTag, u as untrack } from './cache-CofLhaS4.js';\nimport { d as dirtyTagFor, t as tagFor } from './meta-BJtIZDir.js';\nimport { t as trackedValue, a as trackedData } from './tracked-value-CR6kx-73.js';\nimport { C as CHAIN_PASS_THROUGH, S as SELF_TAG } from './chain-tags-BlsXEpE-.js';\nimport { i as isElementDescriptor, C as COMPUTED_SETTERS, s as setClassicDecorator } from './decorator-DcvVDSJV.js';\n\n/**\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*/\n/**\n * Reactivity options for the standalone `tracked(value, options)` form.\n *\n * - `equals` decides whether writing a value notifies consumers; it defaults to\n *   `Object.is`.\n * - `description` is used in development for debugging.\n *\n * `equals` is a function-typed property (rather than method syntax) on purpose:\n * this keeps its parameters checked strictly, so passing an `equals` typed for\n * the wrong value type is a type error instead of being silently accepted.\n */\n\n/**\n * Options for `tracked` used as a decorator, or as a field on a *classic* class\n * (`EmberObject.extend({ foo: tracked({ value }) })`).\n *\n * All properties are optional because this single shape backs several usages:\n * classic-field defaults (`tracked({ value })` / `tracked({ initializer })`) and\n * options-only native decorators (`@tracked({ equals })`). The mutually\n * exclusive combinations (e.g. both `value` and `initializer`) and the\n * classic-only restriction on `value`/`initializer` are enforced at runtime via\n * assertions rather than in the type, matching the runtime `isDecoratorOptions`\n * check that accepts any object composed of these keys.\n *\n * - `value` / `initializer` supply a default value and are only valid on classic\n *   classes; native classes use class field initializers instead.\n * - `equals` / `description` configure reactivity, mirroring\n *   {@link TrackedValueOptions}.\n */\n\n// `PropertyDecorator` covers the `(target, key)` call TypeScript emits for\n// native class fields; `ExtendedMethodDecorator` covers the classic-class call.\n\n/**\n * `tracked` as a decorator factory: `@tracked({ equals })`, or on classic\n * classes `tracked({ value })` / `tracked({ initializer })`.\n */\n\n/**\n * `tracked` as a bare decorator: `@tracked foo = 1`.\n */\n\n/**\n * `tracked` as a standalone reactive value, usable outside of classes:\n * `const count = tracked(0)`.\n */\n\nfunction tracked(...args) {\n  if (isElementDescriptor(args)) {\n    /*\n      Native-decorator form. The runtime invokes us with `(target, key, desc)`\n      and consumes the returned `DecoratorPropertyDescriptor`. The public API is\n      the decorated field itself — reading it consumes, assigning it dirties.\n       ```js\n      class Counter {\n        @tracked count = 0;\n      }\n      ```\n    */\n    return descriptorForField(args);\n  }\n  if (args.length === 0 || args.length === 1 && isDecoratorOptions(args[0])) {\n    /*\n      Decorator-factory / classic-field form. Returns an\n      `ExtendedMethodDecorator`. The public API is the resulting property on\n      instances (get/set), with any default supplied by `value`/`initializer`.\n       ```js\n      class Counter {\n        @tracked({ equals: (a, b) => a === b }) count = 0;\n      }\n       const Person = EmberObject.extend({\n        name: tracked({ value: 'Zoey' }),\n      });\n      ```\n    */\n    return makeTrackedDecorator(args[0]);\n  }\n  let [initialValue, options] = args;\n  /*\n    Standalone-value form. Returns a `TrackedValue` usable outside of classes.\n     ```js\n    const count = tracked(0);\n     count.value;                // read (consumes), `Object.is`-based equality\n    count.value = 1;            // write (dirties)\n    count.get();                // function shorthand for reading\n    count.set(2);               // returns `true` if the value changed\n    count.update((n) => n + 1); // write from current, without consuming\n    count.freeze();             // prevent further writes\n    ```\n  */\n  return trackedValue(initialValue, options);\n}\nconst DECORATOR_OPTION_KEYS = ['value', 'initializer', 'equals', 'description'];\nfunction isDecoratorOptions(value) {\n  if (typeof value !== 'object' || value === null) {\n    return false;\n  }\n  let proto = Object.getPrototypeOf(value);\n  if (proto !== Object.prototype && proto !== null) {\n    return false;\n  }\n  return Object.keys(value).every(key => DECORATOR_OPTION_KEYS.includes(key));\n}\nfunction makeTrackedDecorator(propertyDesc) {\n  let initializer = propertyDesc ? propertyDesc.initializer : undefined;\n  let value = propertyDesc ? propertyDesc.value : undefined;\n  let options = {\n    equals: propertyDesc?.equals,\n    description: propertyDesc?.description\n  };\n  let decorator = function (target, key, desc, _meta, isClassicDecorator) {\n    let fieldDesc = isClassicDecorator ? {\n      initializer: initializer || (() => value)\n    } : desc;\n    return descriptorForField([target, key, fieldDesc], options);\n  };\n  setClassicDecorator(decorator);\n  return decorator;\n}\nfunction descriptorForField([target, key, desc], options) {\n  let {\n    getter,\n    setter\n  } = trackedData(key, desc ? desc.initializer : undefined);\n  let equals = options?.equals;\n  function get() {\n    let value = getter(this);\n\n    // Add the tag of the returned value if it is an array, since arrays\n    // should always cause updates if they are consumed and then changed\n    if (Array.isArray(value) || isEmberArray(value)) {\n      consumeTag(tagFor(value, '[]'));\n    }\n    return value;\n  }\n  function set(newValue) {\n    if (equals !== undefined && equals(untrack(() => getter(this)), newValue)) {\n      return;\n    }\n    setter(this, newValue);\n    dirtyTagFor(this, SELF_TAG);\n  }\n  let newDesc = {\n    enumerable: true,\n    configurable: true,\n    isTracked: true,\n    get,\n    set\n  };\n  COMPUTED_SETTERS.add(set);\n  meta(target).writeDescriptors(key, new TrackedDescriptor(get, set));\n  return newDesc;\n}\nclass TrackedDescriptor {\n  constructor(_get, _set) {\n    this._get = _get;\n    this._set = _set;\n    CHAIN_PASS_THROUGH.add(this);\n  }\n  get(obj) {\n    return this._get.call(obj);\n  }\n  set(obj, _key, value) {\n    this._set.call(obj, value);\n  }\n}\n\nexport { TrackedDescriptor as T, tracked as t };\n","import { d as dirtyTagFor, t as tagFor } from './meta-BJtIZDir.js';\nimport { c as consumeTag, b as createUpdatableTag, D as DIRTY_TAG } from './cache-CofLhaS4.js';\n\nfunction trackedData(key, initializer) {\n  let values = new WeakMap();\n  let hasInitializer = typeof initializer === 'function';\n  function getter(self) {\n    consumeTag(tagFor(self, key));\n    let value;\n\n    // If the field has never been initialized, we should initialize it\n    if (hasInitializer && !values.has(self)) {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme\n      value = initializer.call(self);\n      values.set(self, value);\n    } else {\n      value = values.get(self);\n    }\n    return value;\n  }\n  function setter(self, value) {\n    dirtyTagFor(self, key);\n    values.set(self, value);\n  }\n  return {\n    getter,\n    setter\n  };\n}\n\n/**\n * A mutable reactive value.\n *\n * Reading `value` consumes the underlying tag (entangling with any active\n * tracking frame), and writing `value` dirties it.\n */\n\n/**\n * A reactive value that can only be read.\n */\n\nclass TrackedValue {\n  #isFrozen = false;\n  #value;\n  #options;\n  #tag;\n  constructor(value, options) {\n    this.#value = value;\n    this.#options = options;\n    this.#tag = createUpdatableTag();\n  }\n\n  /**\n   * The underlying value.\n   *\n   * Reading entangles with the current tracking frame, and writing notifies\n   * consumers (unless the configured `equals` deems the new value equal to\n   * the current one).\n   */\n  get value() {\n    consumeTag(this.#tag);\n    return this.#value;\n  }\n  set value(value) {\n    this.set(value);\n  }\n\n  /**\n   * Function short-hand for reading `value`.\n   */\n  get = () => {\n    return this.value;\n  };\n\n  /**\n   * Function short-hand for assigning `value`.\n   *\n   * Returns `true` if the value changed (and consumers were notified),\n   * `false` if the new value was equal to the current one.\n   */\n  set = value => {\n    if (this.#isFrozen) {\n      throw new Error(`Cannot update a frozen TrackedValue${this.#options.description ? ` (\\`${this.#options.description}\\`)` : ''}`);\n    }\n    if (this.#options.equals(this.#value, value)) {\n      return false;\n    }\n    this.#value = value;\n    DIRTY_TAG(this.#tag);\n    return true;\n  };\n\n  /**\n   * Update the value based on the current value, without consuming it.\n   */\n  update = updater => {\n    this.set(updater(this.#value));\n  };\n\n  /**\n   * Prevents further updates, making the TrackedValue behave as a\n   * ReadOnlyReactive.\n   */\n  freeze = () => {\n    this.#isFrozen = true;\n  };\n}\nfunction trackedValue(value, options) {\n  return new TrackedValue(value, {\n    equals: options?.equals ?? Object.is,\n    description: options?.description\n  });\n}\n\nexport { TrackedValue as T, trackedData as a, trackedValue as t };\n","import { a as createConstRef } from './reference-CccCE8mJ.js';\nimport { i as internalHelper } from './internal-helper-Becm19An.js';\n\nconst uniqueId = internalHelper(() => {\n  // 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.\n  return createConstRef(uniqueId$1());\n});\n\n// 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$1() {\n  // @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.\n  return ([3e7] + -1e3 + -4e3 + -2e3 + -1e11).replace(/[0-3]/g, a => (a * 4 ^ Math.random() * 16 >> (a & 2)).toString(16));\n}\n\nexport { uniqueId as a, uniqueId$1 as u };\n","import { P as Promise$1 } from './rsvp-aLN_pQtn.js';\n\nfunction buildTransitionAborted() {\n  let error = new Error('TransitionAborted');\n  error.name = 'TransitionAborted';\n  error.code = 'TRANSITION_ABORTED';\n  return error;\n}\nfunction isTransitionAborted(maybeError) {\n  return typeof maybeError === 'object' && maybeError !== null && maybeError.code === 'TRANSITION_ABORTED';\n}\nfunction isAbortable(maybeAbortable) {\n  return typeof maybeAbortable === 'object' && maybeAbortable !== null && typeof maybeAbortable.isAborted === 'boolean';\n}\nfunction throwIfAborted(maybe) {\n  if (isAbortable(maybe) && maybe.isAborted) {\n    throw buildTransitionAborted();\n  }\n}\n\nconst slice = Array.prototype.slice;\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\n\n/**\n  Determines if an object is Promise by checking if it is \"thenable\".\n**/\nfunction isPromise(p) {\n  return p !== null && typeof p === 'object' && typeof p.then === 'function';\n}\nfunction merge(hash, other) {\n  for (let prop in other) {\n    if (hasOwnProperty.call(other, prop)) {\n      hash[prop] = other[prop];\n    }\n  }\n}\n/**\n  @private\n\n  Extracts query params from the end of an array\n**/\nfunction extractQueryParams(array) {\n  let len = array && array.length,\n    head,\n    queryParams;\n  if (len && len > 0) {\n    let obj = array[len - 1];\n    if (isQueryParamsContainer(obj)) {\n      queryParams = obj.queryParams;\n      head = slice.call(array, 0, len - 1);\n      return [head, queryParams];\n    }\n  }\n\n  // SAFETY: We confirmed that the last item isn't a QP container\n  return [array, null];\n}\n// TODO: Actually check that Dict is QueryParams\nfunction isQueryParamsContainer(obj) {\n  if (obj && typeof obj === 'object') {\n    let cast = obj;\n    return 'queryParams' in cast && Object.keys(cast.queryParams).every(k => typeof k === 'string');\n  }\n  return false;\n}\n\n/**\n  @private\n\n  Coerces query param properties and array elements into strings.\n**/\nfunction coerceQueryParamsToString(queryParams) {\n  for (let key in queryParams) {\n    let val = queryParams[key];\n    if (typeof val === 'number') {\n      queryParams[key] = String(val);\n    } else if (Array.isArray(val)) {\n      for (let i = 0, l = val.length; i < l; i++) {\n        val[i] = String(val[i]);\n      }\n    }\n  }\n}\n/**\n  @private\n */\nfunction log(router, ...args) {\n  if (!router.log) {\n    return;\n  }\n  if (args.length === 2) {\n    let [sequence, msg] = args;\n    router.log('Transition #' + sequence + ': ' + msg);\n  } else {\n    let [msg] = args;\n    router.log(msg);\n  }\n}\nfunction isParam(object) {\n  return typeof object === 'string' || object instanceof String || typeof object === 'number' || object instanceof Number;\n}\nfunction forEach(array, callback) {\n  for (let i = 0, l = array.length; i < l && callback(array[i]) !== false; i++) {\n    // empty intentionally\n  }\n}\nfunction getChangelist(oldObject, newObject) {\n  let key;\n  let results = {\n    all: {},\n    changed: {},\n    removed: {}\n  };\n  merge(results.all, newObject);\n  let didChange = false;\n  coerceQueryParamsToString(oldObject);\n  coerceQueryParamsToString(newObject);\n\n  // Calculate removals\n  for (key in oldObject) {\n    if (hasOwnProperty.call(oldObject, key)) {\n      if (!hasOwnProperty.call(newObject, key)) {\n        didChange = true;\n        results.removed[key] = oldObject[key];\n      }\n    }\n  }\n\n  // Calculate changes\n  for (key in newObject) {\n    if (hasOwnProperty.call(newObject, key)) {\n      let oldElement = oldObject[key];\n      let newElement = newObject[key];\n      if (isArray(oldElement) && isArray(newElement)) {\n        if (oldElement.length !== newElement.length) {\n          results.changed[key] = newObject[key];\n          didChange = true;\n        } else {\n          for (let i = 0, l = oldElement.length; i < l; i++) {\n            if (oldElement[i] !== newElement[i]) {\n              results.changed[key] = newObject[key];\n              didChange = true;\n            }\n          }\n        }\n      } else if (oldObject[key] !== newObject[key]) {\n        results.changed[key] = newObject[key];\n        didChange = true;\n      }\n    }\n  }\n  return didChange ? results : undefined;\n}\nfunction isArray(obj) {\n  return Array.isArray(obj);\n}\nfunction promiseLabel(label) {\n  return 'Router: ' + label;\n}\n\nconst STATE_SYMBOL = `__STATE__-2619860001345920-3322w3`;\nconst PARAMS_SYMBOL = `__PARAMS__-261986232992830203-23323`;\nconst QUERY_PARAMS_SYMBOL = `__QPS__-2619863929824844-32323`;\nconst REDIRECT_DESTINATION_SYMBOL = `__RDS__-2619863929824844-32323`;\n\n/**\n  A Transition is a thenable (a promise-like object) that represents\n  an attempt to transition to another route. It can be aborted, either\n  explicitly via `abort` or by attempting another transition while a\n  previous one is still underway. An aborted transition can also\n  be `retry()`d later.\n\n  @class Transition\n  @constructor\n  @param {Object} router\n  @param {Object} intent\n  @param {Object} state\n  @param {Object} error\n  @private\n */\nclass Transition {\n  [STATE_SYMBOL];\n  from = null;\n  to = undefined;\n  router;\n  data;\n  intent;\n  resolvedModels;\n  [QUERY_PARAMS_SYMBOL];\n  promise; // Todo: Fix this shit its actually TransitionState | IHandler | undefined | Error\n  error;\n  [PARAMS_SYMBOL];\n  routeInfos;\n  targetName;\n  pivotHandler;\n  sequence;\n  isAborted = false;\n  isActive = true;\n  urlMethod = 'update';\n  resolveIndex = 0;\n  queryParamsOnly = false;\n  isTransition = true;\n  isCausedByAbortingTransition = false;\n  isCausedByInitialTransition = false;\n  isCausedByAbortingReplaceTransition = false;\n  _visibleQueryParams = {};\n  isIntermediate = false;\n  [REDIRECT_DESTINATION_SYMBOL];\n\n  /**\n    In non-production builds, this function will return the stack that this Transition was\n    created within. In production builds, this function will not be present.\n     @method debugCreationStack\n    @return string\n  */\n\n  /**\n    In non-production builds, this function will return the stack that this Transition was\n    aborted within (or `undefined` if the Transition has not been aborted yet). In production\n    builds, this function will not be present.\n     @method debugAbortStack\n    @return string\n  */\n\n  /**\n    In non-production builds, this property references the Transition that _this_ Transition\n    was derived from or `undefined` if this transition did not derive from another. In\n    production builds, this property will not be present.\n     @property debugPreviousTransition\n    @type {Transition | undefined}\n  */\n\n  constructor(router, intent, state, error = undefined, previousTransition = undefined) {\n    this[STATE_SYMBOL] = state || router.state;\n    this.intent = intent;\n    this.router = router;\n    this.data = intent && intent.data || {};\n    this.resolvedModels = {};\n    this[QUERY_PARAMS_SYMBOL] = {};\n    this.promise = undefined;\n    this.error = undefined;\n    this[PARAMS_SYMBOL] = {};\n    this.routeInfos = [];\n    this.targetName = undefined;\n    this.pivotHandler = undefined;\n    this.sequence = -1;\n    if (error) {\n      this.promise = Promise$1.reject(error);\n      this.error = error;\n      return;\n    }\n\n    // if you're doing multiple redirects, need the new transition to know if it\n    // is actually part of the first transition or not. Any further redirects\n    // in the initial transition also need to know if they are part of the\n    // initial transition\n    this.isCausedByAbortingTransition = Boolean(previousTransition);\n    this.isCausedByInitialTransition = Boolean(previousTransition) && (previousTransition.isCausedByInitialTransition || previousTransition.sequence === 0);\n    // Every transition in the chain is a replace\n    this.isCausedByAbortingReplaceTransition = Boolean(previousTransition) && previousTransition.urlMethod === 'replace' && (!previousTransition.isCausedByAbortingTransition || previousTransition.isCausedByAbortingReplaceTransition);\n    if (state) {\n      this[PARAMS_SYMBOL] = state.params;\n      this[QUERY_PARAMS_SYMBOL] = state.queryParams;\n      this.routeInfos = state.routeInfos;\n      let len = state.routeInfos.length;\n      if (len) {\n        this.targetName = state.routeInfos[len - 1].name;\n      }\n      for (let i = 0; i < len; ++i) {\n        let handlerInfo = state.routeInfos[i];\n\n        // TODO: this all seems hacky\n        if (!handlerInfo.isResolved) {\n          break;\n        }\n        this.pivotHandler = handlerInfo.route;\n      }\n      this.sequence = router.currentSequence++;\n      this.promise = state.resolve(this).catch(result => {\n        let error = this.router.transitionDidError(result, this);\n        throw error;\n      }, promiseLabel('Handle Abort'));\n    } else {\n      this.promise = Promise$1.resolve(this[STATE_SYMBOL]);\n      this[PARAMS_SYMBOL] = {};\n    }\n  }\n\n  /**\n    The Transition's internal promise. Calling `.then` on this property\n    is that same as calling `.then` on the Transition object itself, but\n    this property is exposed for when you want to pass around a\n    Transition's promise, but not the Transition object itself, since\n    Transition object can be externally `abort`ed, while the promise\n    cannot.\n     @property promise\n    @type {Object}\n    @public\n   */\n\n  /**\n    Custom state can be stored on a Transition's `data` object.\n    This can be useful for decorating a Transition within an earlier\n    hook and shared with a later hook. Properties set on `data` will\n    be copied to new transitions generated by calling `retry` on this\n    transition.\n     @property data\n    @type {Object}\n    @public\n   */\n\n  /**\n    A standard promise hook that resolves if the transition\n    succeeds and rejects if it fails/redirects/aborts.\n     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   */\n  then(onFulfilled, onRejected, label) {\n    return this.promise.then(onFulfilled, onRejected, label);\n  }\n\n  /**\n     Forwards to the internal `promise` property which you can\n    use in situations where you want to pass around a thennable,\n    but not the Transition itself.\n     @method catch\n    @param {Function} onRejection\n    @param {String} label optional string for labeling the promise.\n    Useful for tooling.\n    @return {Promise}\n    @public\n   */\n  catch(onRejection, label) {\n    return this.promise.catch(onRejection, label);\n  }\n\n  /**\n     Forwards to the internal `promise` property which you can\n    use in situations where you want to pass around a thenable,\n    but not the Transition itself.\n     @method finally\n    @param {Function} callback\n    @param {String} label optional string for labeling the promise.\n    Useful for tooling.\n    @return {Promise}\n    @public\n   */\n  finally(callback, label) {\n    // @ts-expect-error @types/rsvp doesn't have the correct signature for RSVP.Promise.finally\n    return this.promise.finally(callback, label);\n  }\n\n  /**\n    Aborts the Transition. Note you can also implicitly abort a transition\n    by initiating another transition while a previous one is underway.\n     @method abort\n    @return {Transition} this transition\n    @public\n   */\n  abort() {\n    this.rollback();\n    let transition = new Transition(this.router, undefined, undefined, undefined);\n    transition.to = this.from;\n    transition.from = this.from;\n    transition.isAborted = true;\n    this.router.routeWillChange(transition);\n    this.router.routeDidChange(transition);\n    return this;\n  }\n  rollback() {\n    if (!this.isAborted) {\n      log(this.router, this.sequence, this.targetName + ': transition was aborted');\n      if (this.intent !== undefined && this.intent !== null) {\n        this.intent.preTransitionState = this.router.state;\n      }\n      this.isAborted = true;\n      this.isActive = false;\n      this.router.activeTransition = undefined;\n    }\n  }\n  redirect(newTransition) {\n    this[REDIRECT_DESTINATION_SYMBOL] = newTransition;\n    this.rollback();\n    this.router.routeWillChange(newTransition);\n  }\n\n  /**\n     Retries a previously-aborted transition (making sure to abort the\n    transition if it's still active). Returns a new transition that\n    represents the new attempt to transition.\n     @method retry\n    @return {Transition} new transition\n    @public\n   */\n  retry() {\n    // TODO: add tests for merged state retry()s\n    this.abort();\n    let newTransition = this.router.transitionByIntent(this.intent, false);\n\n    // inheriting a `null` urlMethod is not valid\n    // the urlMethod is only set to `null` when\n    // the transition is initiated *after* the url\n    // has been updated (i.e. `router.handleURL`)\n    //\n    // in that scenario, the url method cannot be\n    // inherited for a new transition because then\n    // the url would not update even though it should\n    if (this.urlMethod !== null) {\n      newTransition.method(this.urlMethod);\n    }\n    return newTransition;\n  }\n\n  /**\n     Sets the URL-changing method to be employed at the end of a\n    successful transition. By default, a new Transition will just\n    use `updateURL`, but passing 'replace' to this method will\n    cause the URL to update using 'replaceWith' instead. Omitting\n    a parameter will disable the URL change, allowing for transitions\n    that don't update the URL at completion (this is also used for\n    handleURL, since the URL has already changed before the\n    transition took place).\n     @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   */\n  method(method) {\n    this.urlMethod = method;\n    return this;\n  }\n\n  // Alias 'trigger' as 'send'\n  send(ignoreFailure = false, _name, err, transition, handler) {\n    this.trigger(ignoreFailure, _name, err, transition, handler);\n  }\n\n  /**\n     Fires an event on the current list of resolved/resolving\n    handlers within this transition. Useful for firing events\n    on route hierarchies that haven't fully been entered yet.\n     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   */\n  trigger(ignoreFailure = false, name, ...args) {\n    // TODO: Deprecate the current signature\n    if (typeof ignoreFailure === 'string') {\n      name = ignoreFailure;\n      ignoreFailure = false;\n    }\n    this.router.triggerEvent(this[STATE_SYMBOL].routeInfos.slice(0, this.resolveIndex + 1), ignoreFailure, name, args);\n  }\n\n  /**\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   */\n  followRedirects() {\n    return this.promise.catch(reason => {\n      if (this[REDIRECT_DESTINATION_SYMBOL]) {\n        return this[REDIRECT_DESTINATION_SYMBOL].followRedirects();\n      }\n      return Promise$1.reject(reason);\n    });\n  }\n  toString() {\n    return 'Transition (sequence ' + this.sequence + ')';\n  }\n\n  /**\n    @private\n   */\n  log(message) {\n    log(this.router, this.sequence, message);\n  }\n}\n\n/**\n  @private\n\n  Logs and returns an instance of TransitionAborted.\n */\nfunction logAbort(transition) {\n  log(transition.router, transition.sequence, 'detected abort.');\n  return buildTransitionAborted();\n}\nfunction isTransition(obj) {\n  return typeof obj === 'object' && obj instanceof Transition && obj.isTransition;\n}\nfunction prepareResult(obj) {\n  if (isTransition(obj)) {\n    return null;\n  }\n  return obj;\n}\n\nconst UnrecognizedURLError = function () {\n  UnrecognizedURLError.prototype = Object.create(Error.prototype);\n  UnrecognizedURLError.prototype.constructor = UnrecognizedURLError;\n  function UnrecognizedURLError(message) {\n    let error = Error.call(this, message);\n    this.name = 'UnrecognizedURLError';\n    this.message = message || 'UnrecognizedURL';\n\n    // @ts-expect-error I don't know why this is failing\n    if (Error.captureStackTrace) {\n      // @ts-expect-error I don't know why this is failing\n      Error.captureStackTrace(this, UnrecognizedURLError);\n    } else {\n      this.stack = error.stack;\n    }\n  }\n  return UnrecognizedURLError;\n}();\n\nexport { PARAMS_SYMBOL as P, QUERY_PARAMS_SYMBOL as Q, STATE_SYMBOL as S, Transition as T, UnrecognizedURLError as U, isParam as a, isPromise as b, promiseLabel as c, log as d, isTransitionAborted as e, forEach as f, getChangelist as g, extractQueryParams as h, isTransition as i, logAbort as l, merge as m, prepareResult as p, throwIfAborted as t };\n","\"use strict\";\n\n// This file was originally written by @drudru (https://github.com/drudru/ansi_up), MIT, 2011\n\nconst ANSI_COLORS = [\n    [\n        { color: \"0, 0, 0\",        \"class\": \"ansi-black\"   }\n      , { color: \"187, 0, 0\",      \"class\": \"ansi-red\"     }\n      , { color: \"0, 187, 0\",      \"class\": \"ansi-green\"   }\n      , { color: \"187, 187, 0\",    \"class\": \"ansi-yellow\"  }\n      , { color: \"0, 0, 187\",      \"class\": \"ansi-blue\"    }\n      , { color: \"187, 0, 187\",    \"class\": \"ansi-magenta\" }\n      , { color: \"0, 187, 187\",    \"class\": \"ansi-cyan\"    }\n      , { color: \"255,255,255\",    \"class\": \"ansi-white\"   }\n    ]\n  , [\n        { color: \"85, 85, 85\",     \"class\": \"ansi-bright-black\"   }\n      , { color: \"255, 85, 85\",    \"class\": \"ansi-bright-red\"     }\n      , { color: \"0, 255, 0\",      \"class\": \"ansi-bright-green\"   }\n      , { color: \"255, 255, 85\",   \"class\": \"ansi-bright-yellow\"  }\n      , { color: \"85, 85, 255\",    \"class\": \"ansi-bright-blue\"    }\n      , { color: \"255, 85, 255\",   \"class\": \"ansi-bright-magenta\" }\n      , { color: \"85, 255, 255\",   \"class\": \"ansi-bright-cyan\"    }\n      , { color: \"255, 255, 255\",  \"class\": \"ansi-bright-white\"   }\n    ]\n];\n// https://datatracker.ietf.org/doc/html/rfc3986#appendix-A\nconst linkRegex = /(https?:\\/\\/(?:[A-Za-z0-9#;/?:@=+$',_.!~*()[\\]-]|&amp;|%[A-Fa-f0-9]{2})+)/gm;\n\nclass Anser {\n\n    /**\n     * Anser.escapeForHtml\n     * Escape the input HTML.\n     *\n     * This does the minimum escaping of text to make it compliant with HTML.\n     * In particular, the '&','<', and '>' characters are escaped. This should\n     * be run prior to `ansiToHtml`.\n     *\n     * @name Anser.escapeForHtml\n     * @function\n     * @param {String} txt The input text (containing the ANSI snippets).\n     * @returns {String} The escaped html.\n     */\n    static escapeForHtml (txt) {\n        return new Anser().escapeForHtml(txt);\n    }\n\n    /**\n     * Anser.linkify\n     * Adds the links in the HTML.\n     *\n     * This replaces any links in the text with anchor tags that display the\n     * link. You should apply this after you have run `ansiToHtml` on the text.\n     *\n     * @name Anser.linkify\n     * @function\n     * @param {String} txt The input text.\n     * @returns {String} The HTML containing the <a> tags (unescaped).\n     */\n    static linkify (txt) {\n        return new Anser().linkify(txt);\n    }\n\n    /**\n     * Anser.ansiToHtml\n     * This replaces ANSI terminal escape codes with SPAN tags that wrap the\n     * content.\n     *\n     * This function only interprets ANSI SGR (Select Graphic Rendition) codes\n     * that can be represented in HTML.\n     * For example, cursor movement codes are ignored and hidden from output.\n     * The default style uses colors that are very close to the prescribed\n     * standard. The standard assumes that the text will have a black\n     * background. These colors are set as inline styles on the SPAN tags.\n     *\n     * Another option is to set `use_classes: true` in the options argument.\n     * This will instead set classes on the spans so the colors can be set via\n     * CSS. The class names used are of the format `ansi-*-fg/bg` and\n     * `ansi-bright-*-fg/bg` where `*` is the color name,\n     * i.e black/red/green/yellow/blue/magenta/cyan/white.\n     *\n     * @name Anser.ansiToHtml\n     * @function\n     * @param {String} txt The input text.\n     * @param {Object} options The options passed to the ansiToHTML method.\n     * @returns {String} The HTML output.\n     */\n    static ansiToHtml (txt, options) {\n        return new Anser().ansiToHtml(txt, options);\n    }\n\n    /**\n     * Anser.ansiToJson\n     * Converts ANSI input into JSON output.\n     *\n     * @name Anser.ansiToJson\n     * @function\n     * @param {String} txt The input text.\n     * @param {Object} options The options passed to the ansiToHTML method.\n     * @returns {String} The HTML output.\n     */\n    static ansiToJson (txt, options) {\n        return new Anser().ansiToJson(txt, options);\n    }\n\n    /**\n     * Anser.ansiToText\n     * Converts ANSI input into text output.\n     *\n     * @name Anser.ansiToText\n     * @function\n     * @param {String} txt The input text.\n     * @returns {String} The text output.\n     */\n    static ansiToText (txt) {\n        return new Anser().ansiToText(txt);\n    }\n\n    /**\n     * Anser\n     * The `Anser` class.\n     *\n     * @name Anser\n     * @function\n     * @returns {Anser}\n     */\n    constructor () {\n        this.fg = this.bg = this.fg_truecolor = this.bg_truecolor = null;\n        this.bright = 0;\n        this.decorations = [];\n    }\n\n    /**\n     * setupPalette\n     * Sets up the palette.\n     *\n     * @name setupPalette\n     * @function\n     */\n    setupPalette () {\n        this.PALETTE_COLORS = [];\n\n        // Index 0..15 : System color\n        for (let i = 0; i < 2; ++i) {\n            for (let j = 0; j < 8; ++j) {\n                this.PALETTE_COLORS.push(ANSI_COLORS[i][j].color);\n            }\n        }\n\n        // Index 16..231 : RGB 6x6x6\n        // https://gist.github.com/jasonm23/2868981#file-xterm-256color-yaml\n        let levels = [0, 95, 135, 175, 215, 255];\n        let format = (r, g, b) => levels[r] + \", \" + levels[g] + \", \" + levels[b];\n        let r, g, b;\n        for (let r = 0; r < 6; ++r) {\n            for (let g = 0; g < 6; ++g) {\n                for (let b = 0; b < 6; ++b) {\n                    this.PALETTE_COLORS.push(format(r, g, b));\n                }\n            }\n        }\n\n        // Index 232..255 : Grayscale\n        let level = 8;\n        for (let i = 0; i < 24; ++i, level += 10) {\n            this.PALETTE_COLORS.push(level + \", \" + level + \", \" + level);\n        }\n    }\n\n    /**\n     * escapeForHtml\n     * Escapes the input text.\n     *\n     * @name escapeForHtml\n     * @function\n     * @param {String} txt The input text.\n     * @returns {String} The escpaed HTML output.\n     */\n    escapeForHtml (txt) {\n        return txt.replace(/[&<>\\\"]/gm, str =>\n                           str == \"&\" ? \"&amp;\" :\n                               str == '\"' ? \"&quot;\" :\n                               str == \"<\" ? \"&lt;\" :\n                               str == \">\" ? \"&gt;\" : \"\"\n                          );\n    }\n\n    /**\n     * linkify\n     * Adds HTML link elements.\n     *\n     * @name linkify\n     * @function\n     * @param {String} txt The input text.\n     * @returns {String} The HTML output containing link elements.\n     */\n    linkify (txt) {\n        return txt.replace(linkRegex, str => `<a href=\"${str}\">${str}</a>`);\n    }\n\n    /**\n     * ansiToHtml\n     * Converts ANSI input into HTML output.\n     *\n     * @name ansiToHtml\n     * @function\n     * @param {String} txt The input text.\n     * @param {Object} options The options passed ot the `process` method.\n     * @returns {String} The HTML output.\n     */\n    ansiToHtml (txt, options) {\n        return this.process(txt, options, true);\n    }\n\n    /**\n     * ansiToJson\n     * Converts ANSI input into HTML output.\n     *\n     * @name ansiToJson\n     * @function\n     * @param {String} txt The input text.\n     * @param {Object} options The options passed ot the `process` method.\n     * @returns {String} The JSON output.\n     */\n    ansiToJson (txt, options) {\n        options = options || {};\n        options.json = true;\n        options.clearLine = false;\n        return this.process(txt, options, true);\n    }\n\n    /**\n     * ansiToText\n     * Converts ANSI input into HTML output.\n     *\n     * @name ansiToText\n     * @function\n     * @param {String} txt The input text.\n     * @returns {String} The text output.\n     */\n    ansiToText (txt) {\n        return this.process(txt, {}, false);\n    }\n\n    /**\n     * process\n     * Processes the input.\n     *\n     * @name process\n     * @function\n     * @param {String} txt The input text.\n     * @param {Object} options An object passed to `processChunk` method, extended with:\n     *\n     *  - `json` (Boolean): If `true`, the result will be an object.\n     *  - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output.\n     *\n     * @param {Boolean} markup\n     */\n    process (txt, options, markup) {\n        let self = this;\n        let raw_text_chunks = txt.split(/\\033\\[/);\n        let first_chunk = raw_text_chunks.shift(); // the first chunk is not the result of the split\n\n        if (options === undefined || options === null) {\n            options = {};\n        }\n        options.clearLine = /\\r/.test(txt); // check for Carriage Return\n        let color_chunks = raw_text_chunks.map(chunk => this.processChunk(chunk, options, markup))\n\n        if (options && options.json) {\n            let first = self.processChunkJson(\"\");\n            first.content = first_chunk;\n            first.clearLine = options.clearLine;\n            color_chunks.unshift(first);\n            if (options.remove_empty) {\n                color_chunks = color_chunks.filter(c => !c.isEmpty());\n            }\n            return color_chunks;\n        } else {\n            color_chunks.unshift(first_chunk);\n        }\n\n        return color_chunks.join(\"\");\n    }\n\n    /**\n     * processChunkJson\n     * Processes the current chunk into json output.\n     *\n     * @name processChunkJson\n     * @function\n     * @param {String} text The input text.\n     * @param {Object} options An object containing the following fields:\n     *\n     *  - `json` (Boolean): If `true`, the result will be an object.\n     *  - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output.\n     *\n     * @param {Boolean} markup If false, the colors will not be parsed.\n     * @return {Object} The result object:\n     *\n     *  - `content` (String): The text.\n     *  - `fg` (String|null): The foreground color.\n     *  - `bg` (String|null): The background color.\n     *  - `fg_truecolor` (String|null): The foreground true color (if 16m color is enabled).\n     *  - `bg_truecolor` (String|null): The background true color (if 16m color is enabled).\n     *  - `clearLine` (Boolean): `true` if a carriageReturn \\r was fount at end of line.\n     *  - `was_processed` (Bolean): `true` if the colors were processed, `false` otherwise.\n     *  - `isEmpty` (Function): A function returning `true` if the content is empty, or `false` otherwise.\n     *\n     */\n    processChunkJson (text, options, markup) {\n\n        // Are we using classes or styles?\n        options = typeof options == \"undefined\" ? {} : options;\n        let use_classes = options.use_classes = typeof options.use_classes != \"undefined\" && options.use_classes;\n        let key = options.key = use_classes ? \"class\" : \"color\";\n\n        let result = {\n            content: text\n          , fg: null\n          , bg: null\n          , fg_truecolor: null\n          , bg_truecolor: null\n          , isInverted: false\n          , clearLine: options.clearLine\n          , decoration: null\n          , decorations: []\n          , was_processed: false\n          , isEmpty: () => !result.content\n        };\n\n        // Each \"chunk\" is the text after the CSI (ESC + \"[\") and before the next CSI/EOF.\n        //\n        // This regex matches four groups within a chunk.\n        //\n        // The first and third groups match code type.\n        // We supported only SGR command. It has empty first group and \"m\" in third.\n        //\n        // The second group matches all of the number+semicolon command sequences\n        // before the \"m\" (or other trailing) character.\n        // These are the graphics or SGR commands.\n        //\n        // The last group is the text (including newlines) that is colored by\n        // the other group\"s commands.\n        let matches = text.match(/^([!\\x3c-\\x3f]*)([\\d;]*)([\\x20-\\x2c]*[\\x40-\\x7e])([\\s\\S]*)/m);\n\n        if (!matches) return result;\n\n        let orig_txt = result.content = matches[4];\n        let nums = matches[2].split(\";\");\n\n        // We currently support only \"SGR\" (Select Graphic Rendition)\n        // Simply ignore if not a SGR command.\n        if (matches[1] !== \"\" || matches[3] !== \"m\") {\n            return result;\n        }\n\n        if (!markup) {\n            return result;\n        }\n\n        let self = this;\n\n        while (nums.length > 0) {\n            let num_str = nums.shift();\n            let num = parseInt(num_str);\n\n            if (isNaN(num) || num === 0) {\n                self.fg = self.bg = null;\n                self.decorations = [];\n            } else if (num === 1) {\n                self.decorations.push(\"bold\");\n            } else if (num === 2) {\n                self.decorations.push(\"dim\");\n            // Enable code 2 to get string\n            } else if (num === 3) {\n                  self.decorations.push(\"italic\");\n            } else if (num === 4) {\n                self.decorations.push(\"underline\");\n            } else if (num === 5) {\n                self.decorations.push(\"blink\");\n            } else if (num === 7) {\n                self.decorations.push(\"reverse\");\n            } else if (num === 8) {\n                self.decorations.push(\"hidden\");\n            // Enable code 9 to get strikethrough\n            } else if (num === 9) {\n                self.decorations.push(\"strikethrough\");\n            /**\n             * Add several widely used style codes\n             * @see https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters\n             */\n            } else if (num === 21) {\n                self.removeDecoration(\"bold\");\n            } else if (num === 22) {\n                self.removeDecoration(\"bold\");\n                self.removeDecoration(\"dim\");\n            } else if (num === 23) {\n                self.removeDecoration(\"italic\");\n            } else if (num === 24) {\n                self.removeDecoration(\"underline\");\n            } else if (num === 25) {\n                self.removeDecoration(\"blink\");\n            } else if (num === 27) {\n                self.removeDecoration(\"reverse\");\n            } else if (num === 28) {\n                self.removeDecoration(\"hidden\");\n            } else if (num === 29) {\n                self.removeDecoration(\"strikethrough\");\n            } else if (num === 39) {\n                self.fg = null;\n            } else if (num === 49) {\n                self.bg = null;\n            // Foreground color\n            } else if ((num >= 30) && (num < 38)) {\n                self.fg = ANSI_COLORS[0][(num % 10)][key];\n            // Foreground bright color\n            } else if ((num >= 90) && (num < 98)) {\n                self.fg = ANSI_COLORS[1][(num % 10)][key];\n            // Background color\n            } else if ((num >= 40) && (num < 48)) {\n                self.bg = ANSI_COLORS[0][(num % 10)][key];\n            // Background bright color\n            } else if ((num >= 100) && (num < 108)) {\n                self.bg = ANSI_COLORS[1][(num % 10)][key];\n            } else if (num === 38 || num === 48) { // extend color (38=fg, 48=bg)\n                let is_foreground = (num === 38);\n                if (nums.length >= 1) {\n                    let mode = nums.shift();\n                    if (mode === \"5\" && nums.length >= 1) { // palette color\n                        let palette_index = parseInt(nums.shift());\n                        if (palette_index >= 0 && palette_index <= 255) {\n                            if (!use_classes) {\n                                if (!this.PALETTE_COLORS) {\n                                    self.setupPalette();\n                                }\n                                if (is_foreground) {\n                                    self.fg = this.PALETTE_COLORS[palette_index];\n                                } else {\n                                    self.bg = this.PALETTE_COLORS[palette_index];\n                                }\n                            } else {\n                                let klass = (palette_index >= 16)\n                                    ? (\"ansi-palette-\" + palette_index)\n                                    : ANSI_COLORS[palette_index > 7 ? 1 : 0][palette_index % 8][\"class\"];\n                                    if (is_foreground) {\n                                        self.fg = klass;\n                                    } else {\n                                        self.bg = klass;\n                                    }\n                            }\n                        }\n                    } else if(mode === \"2\" && nums.length >= 3) { // true color\n                        let r = parseInt(nums.shift());\n                        let g = parseInt(nums.shift());\n                        let b = parseInt(nums.shift());\n                        if ((r >= 0 && r <= 255) && (g >= 0 && g <= 255) && (b >= 0 && b <= 255)) {\n                            let color = r + \", \" + g + \", \" + b;\n                            if (!use_classes) {\n                                if (is_foreground) {\n                                    self.fg = color;\n                                } else {\n                                    self.bg = color;\n                                }\n                            } else {\n                                if (is_foreground) {\n                                    self.fg = \"ansi-truecolor\";\n                                    self.fg_truecolor = color;\n                                } else {\n                                    self.bg = \"ansi-truecolor\";\n                                    self.bg_truecolor = color;\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n\n        if ((self.fg === null) && (self.bg === null) && (self.decorations.length === 0)) {\n            return result;\n        } else {\n            let styles = [];\n            let classes = [];\n            let data = {};\n\n            result.fg = self.fg;\n            result.bg = self.bg;\n            result.fg_truecolor = self.fg_truecolor;\n            result.bg_truecolor = self.bg_truecolor;\n            result.decorations = self.decorations;\n            result.decoration = self.decorations.slice(-1).pop() || null;\n            result.was_processed = true;\n\n            return result;\n        }\n    }\n\n    /**\n     * processChunk\n     * Processes the current chunk of text.\n     *\n     * @name processChunk\n     * @function\n     * @param {String} text The input text.\n     * @param {Object} options An object containing the following fields:\n     *\n     *  - `json` (Boolean): If `true`, the result will be an object.\n     *  - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output.\n     *\n     * @param {Boolean} markup If false, the colors will not be parsed.\n     * @return {Object|String} The result (object if `json` is wanted back or string otherwise).\n     */\n    processChunk (text, options, markup) {\n        options = options || {};\n        let jsonChunk = this.processChunkJson(text, options, markup);\n        let use_classes = options.use_classes;\n\n        // \"reverse\" decoration reverses foreground and background colors\n        jsonChunk.decorations = jsonChunk.decorations\n            .filter((decoration) => {\n                if (decoration === \"reverse\") {\n                    // when reversing, missing colors are defaulted to black (bg) and white (fg)\n                    if (!jsonChunk.fg) {\n                      jsonChunk.fg = ANSI_COLORS[0][7][use_classes ? \"class\" : \"color\"];\n                    }\n                    if (!jsonChunk.bg) {\n                      jsonChunk.bg = ANSI_COLORS[0][0][use_classes ? \"class\" : \"color\"];\n                    }\n                    let tmpFg = jsonChunk.fg;\n                    jsonChunk.fg = jsonChunk.bg;\n                    jsonChunk.bg = tmpFg;\n                    let tmpFgTrue = jsonChunk.fg_truecolor;\n                    jsonChunk.fg_truecolor = jsonChunk.bg_truecolor;\n                    jsonChunk.bg_truecolor = tmpFgTrue;\n                    jsonChunk.isInverted = true;\n                    return false;\n                }\n                return true;\n            });\n\n        if (options.json) { return jsonChunk; }\n        if (jsonChunk.isEmpty()) { return \"\"; }\n        if (!jsonChunk.was_processed) { return jsonChunk.content; }\n\n        let colors = [];\n        let decorations = [];\n        let textDecorations = [];\n        let data = {};\n\n        let render_data = data => {\n            let fragments = [];\n            let key;\n            for (key in data) {\n                if (data.hasOwnProperty(key)) {\n                    fragments.push(\"data-\" + key + \"=\\\"\" + this.escapeForHtml(data[key]) + \"\\\"\");\n                }\n            }\n            return fragments.length > 0 ? \" \" + fragments.join(\" \") : \"\";\n        };\n\n        if (jsonChunk.isInverted) {\n          data[\"ansi-is-inverted\"] = \"true\";\n        }\n\n        if (jsonChunk.fg) {\n            if (use_classes) {\n                colors.push(jsonChunk.fg + \"-fg\");\n                if (jsonChunk.fg_truecolor !== null) {\n                    data[\"ansi-truecolor-fg\"] = jsonChunk.fg_truecolor;\n                    jsonChunk.fg_truecolor = null;\n                }\n            } else {\n                colors.push(\"color:rgb(\" + jsonChunk.fg + \")\");\n            }\n        }\n\n        if (jsonChunk.bg) {\n            if (use_classes) {\n                colors.push(jsonChunk.bg + \"-bg\");\n                if (jsonChunk.bg_truecolor !== null) {\n                    data[\"ansi-truecolor-bg\"] = jsonChunk.bg_truecolor;\n                    jsonChunk.bg_truecolor = null;\n                }\n            } else {\n              colors.push(\"background-color:rgb(\" + jsonChunk.bg + \")\");\n            }\n        }\n\n        jsonChunk.decorations.forEach((decoration) => {\n            // use classes\n            if (use_classes) {\n                decorations.push(\"ansi-\" + decoration);\n                return;\n            }\n            // use styles\n            if (decoration === \"bold\") {\n                decorations.push(\"font-weight:bold\");\n            } else if (decoration === \"dim\") {\n                decorations.push(\"opacity:0.5\");\n            } else if (decoration === \"italic\") {\n                decorations.push(\"font-style:italic\");\n            } else if (decoration === \"hidden\") {\n                decorations.push(\"visibility:hidden\");\n            } else if (decoration === \"strikethrough\") {\n                textDecorations.push(\"line-through\");\n            } else {\n                // underline and blink are treated here\n                textDecorations.push(decoration);\n            }\n        });\n\n        if (textDecorations.length) {\n            decorations.push(\"text-decoration:\" + textDecorations.join(\" \"));\n        }\n\n        if (use_classes) {\n            return \"<span class=\\\"\" + colors.concat(decorations).join(\" \") + \"\\\"\" + render_data(data) + \">\" + jsonChunk.content + \"</span>\";\n        } else {\n            return \"<span style=\\\"\" + colors.concat(decorations).join(\";\") + \"\\\"\" + render_data(data) + \">\" + jsonChunk.content + \"</span>\";\n        }\n    }\n\n    removeDecoration(decoration) {\n        const index = this.decorations.indexOf(decoration);\n\n        if (index >= 0) {\n            this.decorations.splice(index, 1);\n        }\n    }\n}\n\nmodule.exports = Anser;\n","import Anser from 'anser';\n\n// Text with ANSI colour codes as plain-text segments, each with the CSS\n// classes for its colours and decorations (bold, underline...). Anser gives\n// the text back as data, so nothing in it is ever read as HTML. Colours\n// outside the sixteen standard ones have no class and show unstyled.\nexport function ansiSegments(text) {\n  return Anser.ansiToJson(text ?? '', {\n    use_classes: true,\n    remove_empty: true,\n  }).map((entry) => ({\n    text: entry.content,\n    classNames: classNamesFor(entry).join(' '),\n  }));\n}\n\nfunction classNamesFor(entry) {\n  const classNames = [];\n  if (entry.fg) {\n    classNames.push(`${entry.fg}-fg`);\n  }\n  if (entry.bg) {\n    classNames.push(`${entry.bg}-bg`);\n  }\n  for (const decoration of entry.decorations ?? []) {\n    classNames.push(`ansi-${decoration}`);\n  }\n  return classNames;\n}\n","// Turns the game's raw bytes and the player's commands into text like a MUD\n// client's log: the game's text with its ANSI colours, without telnet or MXP,\n// each prompt on a line of its own and the player's commands on lines after\n// them. Text that is already such a log comes through unchanged, but for its\n// carriage returns. cases/session-log-cases.json holds the cases it is\n// checked against.\n\nconst ESCAPE = 0x1b;\nconst CARRIAGE_RETURN = 0x0d;\nconst NEWLINE = 0x0a;\nconst TAG_START = 0x3c;\nconst TAG_END = 0x3e;\nconst SINGLE_QUOTE = 0x27;\nconst DOUBLE_QUOTE = 0x22;\nconst LINE_END = Uint8Array.of(NEWLINE);\nconst NO_BYTES = new Uint8Array(0);\n\n// Telnet commands: IAC, then a command byte; WILL, WONT, DO and DONT take an\n// option byte, and SB starts a subnegotiation that runs to IAC SE. IAC IAC is\n// a literal 255.\nconst IAC = 0xff;\nconst GO_AHEAD = 0xf9;\nconst SUBNEGOTIATION_START = 0xfa;\nconst SUBNEGOTIATION_END = 0xf0;\nconst OPTION_COMMANDS = new Set([0xfb, 0xfc, 0xfd, 0xfe]);\nconst COMMAND_LENGTH = 2;\nconst OPTION_COMMAND_LENGTH = 3;\n// The longest subnegotiation, from its IAC SB to its IAC SE.\nconst MOST_SUBNEGOTIATION_BYTES = 8192;\n\n// A control sequence: ESC [, parameter bytes (digits and ;), then a final\n// byte from @ to ~.\nconst CONTROL_SEQUENCE_START = 0x5b;\nconst DIGIT_ZERO = 0x30;\nconst DIGIT_NINE = 0x39;\nconst PARAMETER_SEPARATOR = 0x3b;\nconst LOWEST_FINAL = 0x40;\nconst HIGHEST_FINAL = 0x7e;\nconst COLOUR_FINAL = 0x6d;\nconst MXP_MODE_FINAL = 0x7a;\n\n// MXP's modes, from ESC[<n>z. Tags are markup in the secure modes and plain\n// text otherwise. A line mode lasts to the end of its line; temp secure, for\n// the next tag only.\nconst MXP_MODES = {\n  openLine: 0,\n  secureLine: 1,\n  lockedLine: 2,\n  reset: 3,\n  tempSecure: 4,\n  lockOpen: 5,\n  lockSecure: 6,\n  lockLocked: 7,\n};\nconst SECURE_MODES = new Set([\n  MXP_MODES.secureLine,\n  MXP_MODES.tempSecure,\n  MXP_MODES.lockSecure,\n]);\nconst LINE_MODES = new Set([\n  MXP_MODES.openLine,\n  MXP_MODES.secureLine,\n  MXP_MODES.lockedLine,\n]);\nconst LOCKING_MODES = new Set([\n  MXP_MODES.lockOpen,\n  MXP_MODES.lockSecure,\n  MXP_MODES.lockLocked,\n]);\nconst DEFAULT_MODE = MXP_MODES.lockLocked;\n// The longest tag, from its < to its >.\nconst MOST_TAG_BYTES = 8192;\n\nconst textEncoder = new TextEncoder();\nconst textDecoder = new TextDecoder();\n\nfunction isParameterByte(byte) {\n  return (\n    (byte >= DIGIT_ZERO && byte <= DIGIT_NINE) || byte === PARAMETER_SEPARATOR\n  );\n}\n\nfunction isFinalByte(byte) {\n  return byte >= LOWEST_FINAL && byte <= HIGHEST_FINAL;\n}\n\nfunction joined(first, second) {\n  if (first.length === 0) {\n    return second;\n  }\n  const bytes = new Uint8Array(first.length + second.length);\n  bytes.set(first);\n  bytes.set(second, first.length);\n  return bytes;\n}\n\n// The part of bytes that something starting at position and no longer than\n// mostBytes lies in.\nfunction windowFrom(bytes, position, mostBytes) {\n  return bytes.subarray(position, position + mostBytes);\n}\n\n// Collects bytes in a buffer that is given its greatest length at the start.\nclass ByteWriter {\n  #bytes;\n  #length = 0;\n\n  constructor(mostBytes) {\n    this.#bytes = new Uint8Array(mostBytes);\n  }\n\n  write(byte) {\n    this.#bytes[this.#length] = byte;\n    this.#length++;\n  }\n\n  writeAll(bytes) {\n    this.#bytes.set(bytes, this.#length);\n    this.#length += bytes.length;\n  }\n\n  // What has been written: a view of the buffer, not a copy.\n  written() {\n    return this.#bytes.subarray(0, this.#length);\n  }\n}\n\n// Fed the game's bytes and the player's commands in order, gives the log's\n// bytes.\nexport default class GameTextRenderer {\n  #mode = DEFAULT_MODE;\n  #lockedMode = DEFAULT_MODE;\n  // Bytes held back because a telnet command, escape sequence or tag isn't\n  // finished.\n  #pending = NO_BYTES;\n  #isLineStarted = false;\n\n  // The next of the game's bytes. An unfinished telnet command, escape\n  // sequence or tag at their end is held back for the next call.\n  game(bytes) {\n    return this.#rendered(bytes, false);\n  }\n\n  // The last of the game's bytes, or none: nothing is held back, so what is\n  // unfinished is read as the end of a whole log.\n  end(bytes = NO_BYTES) {\n    return this.#rendered(bytes, true);\n  }\n\n  // The player's command, on a line of its own.\n  command(text) {\n    const command = textEncoder.encode(text);\n    const output = new ByteWriter(\n      LINE_END.length + command.length + LINE_END.length,\n    );\n    output.writeAll(this.#endLine());\n    output.writeAll(command);\n    output.writeAll(LINE_END);\n    return output.written();\n  }\n\n  #rendered(newBytes, isEnd) {\n    const bytes = joined(this.#pending, newBytes);\n    this.#pending = NO_BYTES;\n    // Nothing read gives more bytes than it takes, so the output is never\n    // longer than the input.\n    const output = new ByteWriter(bytes.length);\n    let position = 0;\n    while (position < bytes.length) {\n      const byte = bytes[position];\n      let consumed;\n      if (byte === IAC) {\n        consumed = this.#telnet(bytes, position, output);\n      } else if (byte === ESCAPE) {\n        consumed = this.#escape(bytes, position, output);\n      } else if (byte === TAG_START && SECURE_MODES.has(this.#mode)) {\n        consumed = this.#tag(bytes, position, output);\n      } else {\n        consumed = 1;\n        this.#character(byte, output);\n      }\n      if (consumed === null) {\n        if (!isEnd) {\n          this.#pending = bytes.slice(position);\n          break;\n        }\n        consumed = this.#unfinished(bytes, position, output);\n      }\n      position += consumed;\n    }\n    return output.written();\n  }\n\n  #endLine() {\n    if (!this.#isLineStarted) {\n      return NO_BYTES;\n    }\n    this.#isLineStarted = false;\n    return LINE_END;\n  }\n\n  #character(byte, output) {\n    if (byte === CARRIAGE_RETURN) {\n      return;\n    }\n    output.write(byte);\n    this.#isLineStarted = byte !== NEWLINE;\n    if (byte === NEWLINE && LINE_MODES.has(this.#mode)) {\n      this.#mode = this.#lockedMode;\n    }\n  }\n\n  // Each of these gives how many bytes it used, or null when it needs more\n  // to know.\n\n  #telnet(bytes, position, output) {\n    if (position + 1 >= bytes.length) {\n      return null;\n    }\n    const command = bytes[position + 1];\n    if (command === IAC) {\n      this.#character(IAC, output);\n    } else if (command === GO_AHEAD) {\n      output.writeAll(this.#endLine());\n    } else if (OPTION_COMMANDS.has(command)) {\n      return position + 2 < bytes.length ? OPTION_COMMAND_LENGTH : null;\n    } else if (command === SUBNEGOTIATION_START) {\n      return this.#subnegotiation(bytes, position);\n    }\n    return COMMAND_LENGTH;\n  }\n\n  // A subnegotiation is dropped whole. An IAC SB that no IAC SE ends soon\n  // is dropped alone.\n  #subnegotiation(bytes, position) {\n    const subnegotiation = windowFrom(\n      bytes,\n      position,\n      MOST_SUBNEGOTIATION_BYTES,\n    );\n    for (let end = COMMAND_LENGTH; end + 1 < subnegotiation.length; end++) {\n      if (\n        subnegotiation[end] === IAC &&\n        subnegotiation[end + 1] === SUBNEGOTIATION_END\n      ) {\n        return end + COMMAND_LENGTH;\n      }\n    }\n    return subnegotiation.length < MOST_SUBNEGOTIATION_BYTES\n      ? null\n      : COMMAND_LENGTH;\n  }\n\n  // A colour is kept and an MXP mode taken; any other control sequence, or\n  // an escape starting none, is dropped.\n  #escape(bytes, position, output) {\n    const bracket = position + 1;\n    if (bracket >= bytes.length) {\n      return null;\n    }\n    if (bytes[bracket] !== CONTROL_SEQUENCE_START) {\n      return 1;\n    }\n    let final = bracket + 1;\n    while (final < bytes.length && isParameterByte(bytes[final])) {\n      final++;\n    }\n    if (final >= bytes.length) {\n      return null;\n    }\n    if (!isFinalByte(bytes[final])) {\n      return 1;\n    }\n    const length = final + 1 - position;\n    if (bytes[final] === COLOUR_FINAL) {\n      output.writeAll(bytes.subarray(position, final + 1));\n    } else if (bytes[final] === MXP_MODE_FINAL) {\n      const parameters = textDecoder.decode(bytes.subarray(bracket + 1, final));\n      this.#setMode(parameters ? parseInt(parameters, 10) : MXP_MODES.openLine);\n    }\n    return length;\n  }\n\n  #tag(bytes, position, output) {\n    const tag = windowFrom(bytes, position, MOST_TAG_BYTES);\n    const end = this.#tagEnd(tag);\n    if (end === null) {\n      if (tag.length < MOST_TAG_BYTES) {\n        return null;\n      }\n      // A < that no tag closes soon is text.\n      this.#character(TAG_START, output);\n      return 1;\n    }\n    if (this.#mode === MXP_MODES.tempSecure) {\n      this.#mode = this.#lockedMode;\n    }\n    return end + 1;\n  }\n\n  // Where the tag these bytes start with ends: its first > outside quoted\n  // values, as in <!el x '<send href=\"go\">'>; or null when they hold none.\n  #tagEnd(tag) {\n    let index = 1;\n    while (index < tag.length) {\n      const byte = tag[index];\n      if (byte === TAG_END) {\n        return index;\n      }\n      if (byte === SINGLE_QUOTE || byte === DOUBLE_QUOTE) {\n        const closingQuote = tag.indexOf(byte, index + 1);\n        if (closingQuote === -1) {\n          return null;\n        }\n        index = closingQuote + 1;\n      } else {\n        index++;\n      }\n    }\n    return null;\n  }\n\n  // How many bytes the unfinished thing at position uses at the end of a\n  // whole log: a < is text, an IAC SB is dropped alone, and a telnet command\n  // or escape sequence cut short is dropped.\n  #unfinished(bytes, position, output) {\n    if (bytes[position] === TAG_START) {\n      this.#character(TAG_START, output);\n      return 1;\n    }\n    if (\n      bytes[position] === IAC &&\n      bytes[position + 1] === SUBNEGOTIATION_START\n    ) {\n      return COMMAND_LENGTH;\n    }\n    return bytes.length - position;\n  }\n\n  #setMode(mode) {\n    if (mode === MXP_MODES.reset) {\n      this.#mode = this.#lockedMode = DEFAULT_MODE;\n    } else if (LOCKING_MODES.has(mode)) {\n      this.#mode = this.#lockedMode = mode;\n    } else {\n      this.#mode = mode;\n    }\n  }\n}\n\n// A whole log's bytes as the log to show.\nexport function wholeLog(bytes) {\n  return new GameTextRenderer().end(bytes);\n}\n"],"mappings":";;AACAA,OAAOC,eAAeC,EAAS,aAAc,CACzCC,WAEJ,SAAiBC,EAAQC,GACrB,IAAI,IAAIC,KAAQD,EAAIL,OAAOC,eAAeG,EAAQE,EAAM,CACpDC,c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,CAAC,IAAK,MACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,KACPC,GAAM,CACL,IACA,KACA,KAEDC,GAAM,CACL,IACA,KACA,KAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,KACA,KAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,KAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,KACA,KACA,IACA,KAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,KACPC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,KAAM,KACbC,GAAM,CACL,IACA,IACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,KAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,MAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,KACPC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,KACPC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CAAC,KACPC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,KACA,KACA,IACA,KAEDC,GAAM,CAAC,KACPC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,KACA,KAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,KACPC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CAAC,KAAM,KACbC,GAAM,CAAC,KACPC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,IACA,KAEDC,GAAM,CACL,KACA,KACA,IACA,KAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,KACA,IACA,IACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,KACA,KAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,MAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,KAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,KACPC,GAAM,CACL,KACA,KACA,IACA,KAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CAAC,IAAK,KACZC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,KACA,KACA,IACA,KAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,KACPC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,MAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,KACA,KAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,KAEDC,GAAM,CAAC,KACPC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,MAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CAAC,KACPC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,KACPC,GAAM,CAAC,KACPC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,MAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,MAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,IAAK,KACZC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,KACA,KACA,IACA,KAEDC,GAAM,CACL,KACA,KACA,IACA,KAEDC,GAAM,CACL,IACA,KACA,KAEDC,GAAM,CACL,KACA,KACA,IACA,KAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,KAEDC,GAAM,CACL,IACA,IACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CAAC,IAAK,KACZC,GAAM,CAAC,IAAK,KACZC,GAAM,CAAC,IAAK,MACZC,GAAM,CAAC,IAAK,KACZC,GAAM,CACL,IACA,KACA,KAEDC,GAAM,CACL,IACA,KACA,KACA,KAEDC,GAAM,CAAC,IAAK,MACZC,GAAM,CACL,IACA,IACA,KACA,MAEDC,GAAM,CACL,IACA,KACA,IACA,MAEDC,GAAM,CAAC,IAAK,KACZ,QAAS,CACR,IACA,IACA,KACA,MAED,SAAU,CACT,IACA,KACA,KACA,KAED,QAAS,CACR,IACA,IACA,MAED,SAAU,CACT,IACA,KACA,IACA,MAED,QAAS,CACR,IACA,KACA,IACA,MAED,QAAS,CACR,IACA,IACA,KACA,MAED,QAAS,CACR,IACA,KACA,IACA,MAED,QAAS,CACR,IACA,IACA,KACA,MAED,QAAS,CACR,IACA,IACA,KACA,MAED,QAAS,CACR,IACA,IACA,KACA,MAED,QAAS,CACR,IACA,IACA,MAED,QAAS,CACR,IACA,IACA,MAED,QAAS,CACR,KACA,KACA,IACA,KAED,QAAS,CACR,KACA,IACA,KAED,QAAS,CACR,IACA,IACA,MAED,QAAS,CACR,IACA,IACA,MAED,QAAS,CACR,KACA,IACA,KAED,QAA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HC,IAAG,IACHC,IAAG,IACHC,IAAG,KACHC,IAAG,KACHC,IAAG,KACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,KACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,KACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,KACHC,IAAG,KACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,KACHC,IAAG,KACHC,IAAG,KACHC,IAAG,KACHC,IAAG,KACHC,IAAG,KACHC,IAAG,KACHC,IAAG,KACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,KACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,KACHC,IAAG,KACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,KACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IAAG,IACH,IAAK,IACLC,IAAG,IACHC,IAAG,IACHC,IA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