...
\n * ```\n *\n * ### Using an inline function\n * The `transition` animation method also supports reading an inline function which can decide\n * if its associated animation should be run.\n *\n * ```typescript\n * // this method is run each time the `myAnimationTrigger` trigger value changes.\n * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:\n string]: any}): boolean {\n * // notice that `element` and `params` are also available here\n * return toState == 'yes-please-animate';\n * }\n *\n * @Component({\n * selector: 'my-component',\n * templateUrl: 'my-component-tpl.html',\n * animations: [\n * trigger('myAnimationTrigger', [\n * transition(myInlineMatcherFn, [\n * // the animation sequence code\n * ]),\n * ])\n * ]\n * })\n * class MyComponent {\n * myStatusExp = \"yes-please-animate\";\n * }\n * ```\n *\n * ### Disabling Animations\n * When true, the special animation control binding `@.disabled` binding prevents\n * all animations from rendering.\n * Place the `@.disabled` binding on an element to disable\n * animations on the element itself, as well as any inner animation triggers\n * within the element.\n *\n * The following example shows how to use this feature:\n *\n * ```typescript\n * @Component({\n * selector: 'my-component',\n * template: `\n * \n *\n * Be careful about entering end leaving elements as their transitions present a common\n * pitfall for developers.\n *\n * Note that when an element with a trigger enters the DOM its `:enter` transition always\n * gets executed, but its `:leave` transition will not be executed if the element is removed\n * alongside its parent (as it will be removed \"without warning\" before its transition has\n * a chance to be executed, the only way that such transition can occur is if the element\n * is exiting the DOM on its own).\n *\n *\n *
\n *\n * ### Animating to a Final State\n *\n * If the final step in a transition is a call to `animate()` that uses a timing value\n * with no `style` data, that step is automatically considered the final animation arc,\n * for the element to reach the final state, in such case Angular automatically adds or removes\n * CSS styles to ensure that the element is in the correct final state.\n *\n *\n * ### Usage Examples\n *\n * - Transition animations applied based on\n * the trigger's expression value\n *\n * ```HTML\n * \n *\n * Note that elements will be successfully queried via `:enter`/`:leave` even if their\n * insertion/removal is not done manually via `ViewContainerRef`or caused by their structural\n * directive (e.g. they enter/exit alongside their parent).\n *\n *
\n *\n * \n *\n * There is an exception to what previously mentioned, besides elements entering/leaving based on\n * their own logic, elements with an animation trigger can always be queried via `:leave` when\n * their parent is also leaving.\n *\n *
\n *\n * ### Usage Example\n *\n * The following example queries for inner elements and animates them\n * individually using `animate()`.\n *\n * ```typescript\n * @Component({\n * selector: 'inner',\n * template: `\n * `\n // and attach a portal programmatically in the parent component. When Angular does the first CD\n // round, it will fire the setter with empty string, causing the user's content to be cleared.\n if (this.hasAttached() && !portal && !this._isInitialized) {\n return;\n }\n if (this.hasAttached()) {\n super.detach();\n }\n if (portal) {\n super.attach(portal);\n }\n this._attachedPortal = portal || null;\n }\n /** Component or view reference that is attached to the portal. */\n get attachedRef() {\n return this._attachedRef;\n }\n ngOnInit() {\n this._isInitialized = true;\n }\n ngOnDestroy() {\n super.dispose();\n this._attachedRef = this._attachedPortal = null;\n }\n /**\n * Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver.\n *\n * @param portal Portal to be attached to the portal outlet.\n * @returns Reference to the created component.\n */\n attachComponentPortal(portal) {\n portal.setAttachedHost(this);\n // If the portal specifies an origin, use that as the logical location of the component\n // in the application tree. Otherwise use the location of this PortalOutlet.\n const viewContainerRef = portal.viewContainerRef != null ? portal.viewContainerRef : this._viewContainerRef;\n const resolver = portal.componentFactoryResolver || this._componentFactoryResolver;\n const componentFactory = resolver.resolveComponentFactory(portal.component);\n const ref = viewContainerRef.createComponent(componentFactory, viewContainerRef.length, portal.injector || viewContainerRef.injector, portal.projectableNodes || undefined);\n // If we're using a view container that's different from the injected one (e.g. when the portal\n // specifies its own) we need to move the component into the outlet, otherwise it'll be rendered\n // inside of the alternate view container.\n if (viewContainerRef !== this._viewContainerRef) {\n this._getRootNode().appendChild(ref.hostView.rootNodes[0]);\n }\n super.setDisposeFn(() => ref.destroy());\n this._attachedPortal = portal;\n this._attachedRef = ref;\n this.attached.emit(ref);\n return ref;\n }\n /**\n * Attach the given TemplatePortal to this PortalHost as an embedded View.\n * @param portal Portal to be attached.\n * @returns Reference to the created embedded view.\n */\n attachTemplatePortal(portal) {\n portal.setAttachedHost(this);\n const viewRef = this._viewContainerRef.createEmbeddedView(portal.templateRef, portal.context, {\n injector: portal.injector\n });\n super.setDisposeFn(() => this._viewContainerRef.clear());\n this._attachedPortal = portal;\n this._attachedRef = viewRef;\n this.attached.emit(viewRef);\n return viewRef;\n }\n /** Gets the root node of the portal outlet. */\n _getRootNode() {\n const nativeElement = this._viewContainerRef.element.nativeElement;\n // The directive could be set on a template which will result in a comment\n // node being the root. Use the comment's parent node if that is the case.\n return nativeElement.nodeType === nativeElement.ELEMENT_NODE ? nativeElement : nativeElement.parentNode;\n }\n static {\n this.ɵfac = function CdkPortalOutlet_Factory(t) {\n return new (t || CdkPortalOutlet)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(DOCUMENT));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CdkPortalOutlet,\n selectors: [[\"\", \"cdkPortalOutlet\", \"\"]],\n inputs: {\n portal: [0, \"cdkPortalOutlet\", \"portal\"]\n },\n outputs: {\n attached: \"attached\"\n },\n exportAs: [\"cdkPortalOutlet\"],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n }\n }\n return CdkPortalOutlet;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * @deprecated Use `CdkPortalOutlet` instead.\n * @breaking-change 9.0.0\n */\nlet PortalHostDirective = /*#__PURE__*/(() => {\n class PortalHostDirective extends CdkPortalOutlet {\n static {\n this.ɵfac = /* @__PURE__ */(() => {\n let ɵPortalHostDirective_BaseFactory;\n return function PortalHostDirective_Factory(t) {\n return (ɵPortalHostDirective_BaseFactory || (ɵPortalHostDirective_BaseFactory = i0.ɵɵgetInheritedFactory(PortalHostDirective)))(t || PortalHostDirective);\n };\n })();\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: PortalHostDirective,\n selectors: [[\"\", \"cdkPortalHost\", \"\"], [\"\", \"portalHost\", \"\"]],\n inputs: {\n portal: [0, \"cdkPortalHost\", \"portal\"]\n },\n exportAs: [\"cdkPortalHost\"],\n standalone: true,\n features: [i0.ɵɵProvidersFeature([{\n provide: CdkPortalOutlet,\n useExisting: PortalHostDirective\n }]), i0.ɵɵInheritDefinitionFeature]\n });\n }\n }\n return PortalHostDirective;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet PortalModule = /*#__PURE__*/(() => {\n class PortalModule {\n static {\n this.ɵfac = function PortalModule_Factory(t) {\n return new (t || PortalModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: PortalModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n }\n }\n return PortalModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Custom injector to be used when providing custom\n * injection tokens to components inside a portal.\n * @docs-private\n * @deprecated Use `Injector.create` instead.\n * @breaking-change 11.0.0\n */\nclass PortalInjector {\n constructor(_parentInjector, _customTokens) {\n this._parentInjector = _parentInjector;\n this._customTokens = _customTokens;\n }\n get(token, notFoundValue) {\n const value = this._customTokens.get(token);\n if (typeof value !== 'undefined') {\n return value;\n }\n return this._parentInjector.get(token, notFoundValue);\n }\n}\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BasePortalHost, BasePortalOutlet, CdkPortal, CdkPortalOutlet, ComponentPortal, DomPortal, DomPortalHost, DomPortalOutlet, Portal, PortalHostDirective, PortalInjector, PortalModule, TemplatePortal, TemplatePortalDirective };\n","import * as i1 from '@angular/cdk/scrolling';\nimport { ScrollingModule } from '@angular/cdk/scrolling';\nexport { CdkScrollable, ScrollDispatcher, ViewportRuler } from '@angular/cdk/scrolling';\nimport * as i6 from '@angular/common';\nimport { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Injectable, Inject, Optional, untracked, afterRender, afterNextRender, ElementRef, EnvironmentInjector, ApplicationRef, ANIMATION_MODULE_TYPE, InjectionToken, inject, Directive, NgZone, EventEmitter, booleanAttribute, Input, Output, NgModule } from '@angular/core';\nimport { coerceCssPixelValue, coerceArray } from '@angular/cdk/coercion';\nimport * as i1$1 from '@angular/cdk/platform';\nimport { supportsScrollBehavior, _getEventTarget, _isTestEnvironment } from '@angular/cdk/platform';\nimport { filter, takeUntil, takeWhile } from 'rxjs/operators';\nimport * as i5 from '@angular/cdk/bidi';\nimport { BidiModule } from '@angular/cdk/bidi';\nimport { DomPortalOutlet, TemplatePortal, PortalModule } from '@angular/cdk/portal';\nimport { Subject, Subscription, merge } from 'rxjs';\nimport { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';\nconst scrollBehaviorSupported = /*#__PURE__*/supportsScrollBehavior();\n/**\n * Strategy that will prevent the user from scrolling while the overlay is visible.\n */\nclass BlockScrollStrategy {\n constructor(_viewportRuler, document) {\n this._viewportRuler = _viewportRuler;\n this._previousHTMLStyles = {\n top: '',\n left: ''\n };\n this._isEnabled = false;\n this._document = document;\n }\n /** Attaches this scroll strategy to an overlay. */\n attach() {}\n /** Blocks page-level scroll while the attached overlay is open. */\n enable() {\n if (this._canBeEnabled()) {\n const root = this._document.documentElement;\n this._previousScrollPosition = this._viewportRuler.getViewportScrollPosition();\n // Cache the previous inline styles in case the user had set them.\n this._previousHTMLStyles.left = root.style.left || '';\n this._previousHTMLStyles.top = root.style.top || '';\n // Note: we're using the `html` node, instead of the `body`, because the `body` may\n // have the user agent margin, whereas the `html` is guaranteed not to have one.\n root.style.left = coerceCssPixelValue(-this._previousScrollPosition.left);\n root.style.top = coerceCssPixelValue(-this._previousScrollPosition.top);\n root.classList.add('cdk-global-scrollblock');\n this._isEnabled = true;\n }\n }\n /** Unblocks page-level scroll while the attached overlay is open. */\n disable() {\n if (this._isEnabled) {\n const html = this._document.documentElement;\n const body = this._document.body;\n const htmlStyle = html.style;\n const bodyStyle = body.style;\n const previousHtmlScrollBehavior = htmlStyle.scrollBehavior || '';\n const previousBodyScrollBehavior = bodyStyle.scrollBehavior || '';\n this._isEnabled = false;\n htmlStyle.left = this._previousHTMLStyles.left;\n htmlStyle.top = this._previousHTMLStyles.top;\n html.classList.remove('cdk-global-scrollblock');\n // Disable user-defined smooth scrolling temporarily while we restore the scroll position.\n // See https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior\n // Note that we don't mutate the property if the browser doesn't support `scroll-behavior`,\n // because it can throw off feature detections in `supportsScrollBehavior` which\n // checks for `'scrollBehavior' in documentElement.style`.\n if (scrollBehaviorSupported) {\n htmlStyle.scrollBehavior = bodyStyle.scrollBehavior = 'auto';\n }\n window.scroll(this._previousScrollPosition.left, this._previousScrollPosition.top);\n if (scrollBehaviorSupported) {\n htmlStyle.scrollBehavior = previousHtmlScrollBehavior;\n bodyStyle.scrollBehavior = previousBodyScrollBehavior;\n }\n }\n }\n _canBeEnabled() {\n // Since the scroll strategies can't be singletons, we have to use a global CSS class\n // (`cdk-global-scrollblock`) to make sure that we don't try to disable global\n // scrolling multiple times.\n const html = this._document.documentElement;\n if (html.classList.contains('cdk-global-scrollblock') || this._isEnabled) {\n return false;\n }\n const body = this._document.body;\n const viewport = this._viewportRuler.getViewportSize();\n return body.scrollHeight > viewport.height || body.scrollWidth > viewport.width;\n }\n}\n\n/**\n * Returns an error to be thrown when attempting to attach an already-attached scroll strategy.\n */\nfunction getMatScrollStrategyAlreadyAttachedError() {\n return Error(`Scroll strategy has already been attached.`);\n}\n\n/**\n * Strategy that will close the overlay as soon as the user starts scrolling.\n */\nclass CloseScrollStrategy {\n constructor(_scrollDispatcher, _ngZone, _viewportRuler, _config) {\n this._scrollDispatcher = _scrollDispatcher;\n this._ngZone = _ngZone;\n this._viewportRuler = _viewportRuler;\n this._config = _config;\n this._scrollSubscription = null;\n /** Detaches the overlay ref and disables the scroll strategy. */\n this._detach = () => {\n this.disable();\n if (this._overlayRef.hasAttached()) {\n this._ngZone.run(() => this._overlayRef.detach());\n }\n };\n }\n /** Attaches this scroll strategy to an overlay. */\n attach(overlayRef) {\n if (this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getMatScrollStrategyAlreadyAttachedError();\n }\n this._overlayRef = overlayRef;\n }\n /** Enables the closing of the attached overlay on scroll. */\n enable() {\n if (this._scrollSubscription) {\n return;\n }\n const stream = this._scrollDispatcher.scrolled(0).pipe(filter(scrollable => {\n return !scrollable || !this._overlayRef.overlayElement.contains(scrollable.getElementRef().nativeElement);\n }));\n if (this._config && this._config.threshold && this._config.threshold > 1) {\n this._initialScrollPosition = this._viewportRuler.getViewportScrollPosition().top;\n this._scrollSubscription = stream.subscribe(() => {\n const scrollPosition = this._viewportRuler.getViewportScrollPosition().top;\n if (Math.abs(scrollPosition - this._initialScrollPosition) > this._config.threshold) {\n this._detach();\n } else {\n this._overlayRef.updatePosition();\n }\n });\n } else {\n this._scrollSubscription = stream.subscribe(this._detach);\n }\n }\n /** Disables the closing the attached overlay on scroll. */\n disable() {\n if (this._scrollSubscription) {\n this._scrollSubscription.unsubscribe();\n this._scrollSubscription = null;\n }\n }\n detach() {\n this.disable();\n this._overlayRef = null;\n }\n}\n\n/** Scroll strategy that doesn't do anything. */\nclass NoopScrollStrategy {\n /** Does nothing, as this scroll strategy is a no-op. */\n enable() {}\n /** Does nothing, as this scroll strategy is a no-op. */\n disable() {}\n /** Does nothing, as this scroll strategy is a no-op. */\n attach() {}\n}\n\n/**\n * Gets whether an element is scrolled outside of view by any of its parent scrolling containers.\n * @param element Dimensions of the element (from getBoundingClientRect)\n * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect)\n * @returns Whether the element is scrolled out of view\n * @docs-private\n */\nfunction isElementScrolledOutsideView(element, scrollContainers) {\n return scrollContainers.some(containerBounds => {\n const outsideAbove = element.bottom < containerBounds.top;\n const outsideBelow = element.top > containerBounds.bottom;\n const outsideLeft = element.right < containerBounds.left;\n const outsideRight = element.left > containerBounds.right;\n return outsideAbove || outsideBelow || outsideLeft || outsideRight;\n });\n}\n/**\n * Gets whether an element is clipped by any of its scrolling containers.\n * @param element Dimensions of the element (from getBoundingClientRect)\n * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect)\n * @returns Whether the element is clipped\n * @docs-private\n */\nfunction isElementClippedByScrolling(element, scrollContainers) {\n return scrollContainers.some(scrollContainerRect => {\n const clippedAbove = element.top < scrollContainerRect.top;\n const clippedBelow = element.bottom > scrollContainerRect.bottom;\n const clippedLeft = element.left < scrollContainerRect.left;\n const clippedRight = element.right > scrollContainerRect.right;\n return clippedAbove || clippedBelow || clippedLeft || clippedRight;\n });\n}\n\n/**\n * Strategy that will update the element position as the user is scrolling.\n */\nclass RepositionScrollStrategy {\n constructor(_scrollDispatcher, _viewportRuler, _ngZone, _config) {\n this._scrollDispatcher = _scrollDispatcher;\n this._viewportRuler = _viewportRuler;\n this._ngZone = _ngZone;\n this._config = _config;\n this._scrollSubscription = null;\n }\n /** Attaches this scroll strategy to an overlay. */\n attach(overlayRef) {\n if (this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getMatScrollStrategyAlreadyAttachedError();\n }\n this._overlayRef = overlayRef;\n }\n /** Enables repositioning of the attached overlay on scroll. */\n enable() {\n if (!this._scrollSubscription) {\n const throttle = this._config ? this._config.scrollThrottle : 0;\n this._scrollSubscription = this._scrollDispatcher.scrolled(throttle).subscribe(() => {\n this._overlayRef.updatePosition();\n // TODO(crisbeto): make `close` on by default once all components can handle it.\n if (this._config && this._config.autoClose) {\n const overlayRect = this._overlayRef.overlayElement.getBoundingClientRect();\n const {\n width,\n height\n } = this._viewportRuler.getViewportSize();\n // TODO(crisbeto): include all ancestor scroll containers here once\n // we have a way of exposing the trigger element to the scroll strategy.\n const parentRects = [{\n width,\n height,\n bottom: height,\n right: width,\n top: 0,\n left: 0\n }];\n if (isElementScrolledOutsideView(overlayRect, parentRects)) {\n this.disable();\n this._ngZone.run(() => this._overlayRef.detach());\n }\n }\n });\n }\n }\n /** Disables repositioning of the attached overlay on scroll. */\n disable() {\n if (this._scrollSubscription) {\n this._scrollSubscription.unsubscribe();\n this._scrollSubscription = null;\n }\n }\n detach() {\n this.disable();\n this._overlayRef = null;\n }\n}\n\n/**\n * Options for how an overlay will handle scrolling.\n *\n * Users can provide a custom value for `ScrollStrategyOptions` to replace the default\n * behaviors. This class primarily acts as a factory for ScrollStrategy instances.\n */\nlet ScrollStrategyOptions = /*#__PURE__*/(() => {\n class ScrollStrategyOptions {\n constructor(_scrollDispatcher, _viewportRuler, _ngZone, document) {\n this._scrollDispatcher = _scrollDispatcher;\n this._viewportRuler = _viewportRuler;\n this._ngZone = _ngZone;\n /** Do nothing on scroll. */\n this.noop = () => new NoopScrollStrategy();\n /**\n * Close the overlay as soon as the user scrolls.\n * @param config Configuration to be used inside the scroll strategy.\n */\n this.close = config => new CloseScrollStrategy(this._scrollDispatcher, this._ngZone, this._viewportRuler, config);\n /** Block scrolling. */\n this.block = () => new BlockScrollStrategy(this._viewportRuler, this._document);\n /**\n * Update the overlay's position on scroll.\n * @param config Configuration to be used inside the scroll strategy.\n * Allows debouncing the reposition calls.\n */\n this.reposition = config => new RepositionScrollStrategy(this._scrollDispatcher, this._viewportRuler, this._ngZone, config);\n this._document = document;\n }\n static {\n this.ɵfac = function ScrollStrategyOptions_Factory(t) {\n return new (t || ScrollStrategyOptions)(i0.ɵɵinject(i1.ScrollDispatcher), i0.ɵɵinject(i1.ViewportRuler), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(DOCUMENT));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: ScrollStrategyOptions,\n factory: ScrollStrategyOptions.ɵfac,\n providedIn: 'root'\n });\n }\n }\n return ScrollStrategyOptions;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/** Initial configuration used when creating an overlay. */\nclass OverlayConfig {\n constructor(config) {\n /** Strategy to be used when handling scroll events while the overlay is open. */\n this.scrollStrategy = new NoopScrollStrategy();\n /** Custom class to add to the overlay pane. */\n this.panelClass = '';\n /** Whether the overlay has a backdrop. */\n this.hasBackdrop = false;\n /** Custom class to add to the backdrop */\n this.backdropClass = 'cdk-overlay-dark-backdrop';\n /**\n * Whether the overlay should be disposed of when the user goes backwards/forwards in history.\n * Note that this usually doesn't include clicking on links (unless the user is using\n * the `HashLocationStrategy`).\n */\n this.disposeOnNavigation = false;\n if (config) {\n // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3,\n // loses the array generic type in the `for of`. But we *also* have to use `Array` because\n // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration`\n const configKeys = Object.keys(config);\n for (const key of configKeys) {\n if (config[key] !== undefined) {\n // TypeScript, as of version 3.5, sees the left-hand-side of this expression\n // as \"I don't know *which* key this is, so the only valid value is the intersection\n // of all the possible values.\" In this case, that happens to be `undefined`. TypeScript\n // is not smart enough to see that the right-hand-side is actually an access of the same\n // exact type with the same exact key, meaning that the value type must be identical.\n // So we use `any` to work around this.\n this[key] = config[key];\n }\n }\n }\n }\n}\n\n/** The points of the origin element and the overlay element to connect. */\nclass ConnectionPositionPair {\n constructor(origin, overlay, /** Offset along the X axis. */\n offsetX, /** Offset along the Y axis. */\n offsetY, /** Class(es) to be applied to the panel while this position is active. */\n panelClass) {\n this.offsetX = offsetX;\n this.offsetY = offsetY;\n this.panelClass = panelClass;\n this.originX = origin.originX;\n this.originY = origin.originY;\n this.overlayX = overlay.overlayX;\n this.overlayY = overlay.overlayY;\n }\n}\n/**\n * Set of properties regarding the position of the origin and overlay relative to the viewport\n * with respect to the containing Scrollable elements.\n *\n * The overlay and origin are clipped if any part of their bounding client rectangle exceeds the\n * bounds of any one of the strategy's Scrollable's bounding client rectangle.\n *\n * The overlay and origin are outside view if there is no overlap between their bounding client\n * rectangle and any one of the strategy's Scrollable's bounding client rectangle.\n *\n * ----------- -----------\n * | outside | | clipped |\n * | view | --------------------------\n * | | | | | |\n * ---------- | ----------- |\n * -------------------------- | |\n * | | | Scrollable |\n * | | | |\n * | | --------------------------\n * | Scrollable |\n * | |\n * --------------------------\n *\n * @docs-private\n */\nclass ScrollingVisibility {}\n/** The change event emitted by the strategy when a fallback position is used. */\nclass ConnectedOverlayPositionChange {\n constructor( /** The position used as a result of this change. */\n connectionPair, /** @docs-private */\n scrollableViewProperties) {\n this.connectionPair = connectionPair;\n this.scrollableViewProperties = scrollableViewProperties;\n }\n}\n/**\n * Validates whether a vertical position property matches the expected values.\n * @param property Name of the property being validated.\n * @param value Value of the property being validated.\n * @docs-private\n */\nfunction validateVerticalPosition(property, value) {\n if (value !== 'top' && value !== 'bottom' && value !== 'center') {\n throw Error(`ConnectedPosition: Invalid ${property} \"${value}\". ` + `Expected \"top\", \"bottom\" or \"center\".`);\n }\n}\n/**\n * Validates whether a horizontal position property matches the expected values.\n * @param property Name of the property being validated.\n * @param value Value of the property being validated.\n * @docs-private\n */\nfunction validateHorizontalPosition(property, value) {\n if (value !== 'start' && value !== 'end' && value !== 'center') {\n throw Error(`ConnectedPosition: Invalid ${property} \"${value}\". ` + `Expected \"start\", \"end\" or \"center\".`);\n }\n}\n\n/**\n * Service for dispatching events that land on the body to appropriate overlay ref,\n * if any. It maintains a list of attached overlays to determine best suited overlay based\n * on event target and order of overlay opens.\n */\nlet BaseOverlayDispatcher = /*#__PURE__*/(() => {\n class BaseOverlayDispatcher {\n constructor(document) {\n /** Currently attached overlays in the order they were attached. */\n this._attachedOverlays = [];\n this._document = document;\n }\n ngOnDestroy() {\n this.detach();\n }\n /** Add a new overlay to the list of attached overlay refs. */\n add(overlayRef) {\n // Ensure that we don't get the same overlay multiple times.\n this.remove(overlayRef);\n this._attachedOverlays.push(overlayRef);\n }\n /** Remove an overlay from the list of attached overlay refs. */\n remove(overlayRef) {\n const index = this._attachedOverlays.indexOf(overlayRef);\n if (index > -1) {\n this._attachedOverlays.splice(index, 1);\n }\n // Remove the global listener once there are no more overlays.\n if (this._attachedOverlays.length === 0) {\n this.detach();\n }\n }\n static {\n this.ɵfac = function BaseOverlayDispatcher_Factory(t) {\n return new (t || BaseOverlayDispatcher)(i0.ɵɵinject(DOCUMENT));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: BaseOverlayDispatcher,\n factory: BaseOverlayDispatcher.ɵfac,\n providedIn: 'root'\n });\n }\n }\n return BaseOverlayDispatcher;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Service for dispatching keyboard events that land on the body to appropriate overlay ref,\n * if any. It maintains a list of attached overlays to determine best suited overlay based\n * on event target and order of overlay opens.\n */\nlet OverlayKeyboardDispatcher = /*#__PURE__*/(() => {\n class OverlayKeyboardDispatcher extends BaseOverlayDispatcher {\n constructor(document, /** @breaking-change 14.0.0 _ngZone will be required. */\n _ngZone) {\n super(document);\n this._ngZone = _ngZone;\n /** Keyboard event listener that will be attached to the body. */\n this._keydownListener = event => {\n const overlays = this._attachedOverlays;\n for (let i = overlays.length - 1; i > -1; i--) {\n // Dispatch the keydown event to the top overlay which has subscribers to its keydown events.\n // We want to target the most recent overlay, rather than trying to match where the event came\n // from, because some components might open an overlay, but keep focus on a trigger element\n // (e.g. for select and autocomplete). We skip overlays without keydown event subscriptions,\n // because we don't want overlays that don't handle keyboard events to block the ones below\n // them that do.\n if (overlays[i]._keydownEvents.observers.length > 0) {\n const keydownEvents = overlays[i]._keydownEvents;\n /** @breaking-change 14.0.0 _ngZone will be required. */\n if (this._ngZone) {\n this._ngZone.run(() => keydownEvents.next(event));\n } else {\n keydownEvents.next(event);\n }\n break;\n }\n }\n };\n }\n /** Add a new overlay to the list of attached overlay refs. */\n add(overlayRef) {\n super.add(overlayRef);\n // Lazily start dispatcher once first overlay is added\n if (!this._isAttached) {\n /** @breaking-change 14.0.0 _ngZone will be required. */\n if (this._ngZone) {\n this._ngZone.runOutsideAngular(() => this._document.body.addEventListener('keydown', this._keydownListener));\n } else {\n this._document.body.addEventListener('keydown', this._keydownListener);\n }\n this._isAttached = true;\n }\n }\n /** Detaches the global keyboard event listener. */\n detach() {\n if (this._isAttached) {\n this._document.body.removeEventListener('keydown', this._keydownListener);\n this._isAttached = false;\n }\n }\n static {\n this.ɵfac = function OverlayKeyboardDispatcher_Factory(t) {\n return new (t || OverlayKeyboardDispatcher)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(i0.NgZone, 8));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: OverlayKeyboardDispatcher,\n factory: OverlayKeyboardDispatcher.ɵfac,\n providedIn: 'root'\n });\n }\n }\n return OverlayKeyboardDispatcher;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Service for dispatching mouse click events that land on the body to appropriate overlay ref,\n * if any. It maintains a list of attached overlays to determine best suited overlay based\n * on event target and order of overlay opens.\n */\nlet OverlayOutsideClickDispatcher = /*#__PURE__*/(() => {\n class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {\n constructor(document, _platform, /** @breaking-change 14.0.0 _ngZone will be required. */\n _ngZone) {\n super(document);\n this._platform = _platform;\n this._ngZone = _ngZone;\n this._cursorStyleIsSet = false;\n /** Store pointerdown event target to track origin of click. */\n this._pointerDownListener = event => {\n this._pointerDownEventTarget = _getEventTarget(event);\n };\n /** Click event listener that will be attached to the body propagate phase. */\n this._clickListener = event => {\n const target = _getEventTarget(event);\n // In case of a click event, we want to check the origin of the click\n // (e.g. in case where a user starts a click inside the overlay and\n // releases the click outside of it).\n // This is done by using the event target of the preceding pointerdown event.\n // Every click event caused by a pointer device has a preceding pointerdown\n // event, unless the click was programmatically triggered (e.g. in a unit test).\n const origin = event.type === 'click' && this._pointerDownEventTarget ? this._pointerDownEventTarget : target;\n // Reset the stored pointerdown event target, to avoid having it interfere\n // in subsequent events.\n this._pointerDownEventTarget = null;\n // We copy the array because the original may be modified asynchronously if the\n // outsidePointerEvents listener decides to detach overlays resulting in index errors inside\n // the for loop.\n const overlays = this._attachedOverlays.slice();\n // Dispatch the mouse event to the top overlay which has subscribers to its mouse events.\n // We want to target all overlays for which the click could be considered as outside click.\n // As soon as we reach an overlay for which the click is not outside click we break off\n // the loop.\n for (let i = overlays.length - 1; i > -1; i--) {\n const overlayRef = overlays[i];\n if (overlayRef._outsidePointerEvents.observers.length < 1 || !overlayRef.hasAttached()) {\n continue;\n }\n // If it's a click inside the overlay, just break - we should do nothing\n // If it's an outside click (both origin and target of the click) dispatch the mouse event,\n // and proceed with the next overlay\n if (overlayRef.overlayElement.contains(target) || overlayRef.overlayElement.contains(origin)) {\n break;\n }\n const outsidePointerEvents = overlayRef._outsidePointerEvents;\n /** @breaking-change 14.0.0 _ngZone will be required. */\n if (this._ngZone) {\n this._ngZone.run(() => outsidePointerEvents.next(event));\n } else {\n outsidePointerEvents.next(event);\n }\n }\n };\n }\n /** Add a new overlay to the list of attached overlay refs. */\n add(overlayRef) {\n super.add(overlayRef);\n // Safari on iOS does not generate click events for non-interactive\n // elements. However, we want to receive a click for any element outside\n // the overlay. We can force a \"clickable\" state by setting\n // `cursor: pointer` on the document body. See:\n // https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#Safari_Mobile\n // https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html\n if (!this._isAttached) {\n const body = this._document.body;\n /** @breaking-change 14.0.0 _ngZone will be required. */\n if (this._ngZone) {\n this._ngZone.runOutsideAngular(() => this._addEventListeners(body));\n } else {\n this._addEventListeners(body);\n }\n // click event is not fired on iOS. To make element \"clickable\" we are\n // setting the cursor to pointer\n if (this._platform.IOS && !this._cursorStyleIsSet) {\n this._cursorOriginalValue = body.style.cursor;\n body.style.cursor = 'pointer';\n this._cursorStyleIsSet = true;\n }\n this._isAttached = true;\n }\n }\n /** Detaches the global keyboard event listener. */\n detach() {\n if (this._isAttached) {\n const body = this._document.body;\n body.removeEventListener('pointerdown', this._pointerDownListener, true);\n body.removeEventListener('click', this._clickListener, true);\n body.removeEventListener('auxclick', this._clickListener, true);\n body.removeEventListener('contextmenu', this._clickListener, true);\n if (this._platform.IOS && this._cursorStyleIsSet) {\n body.style.cursor = this._cursorOriginalValue;\n this._cursorStyleIsSet = false;\n }\n this._isAttached = false;\n }\n }\n _addEventListeners(body) {\n body.addEventListener('pointerdown', this._pointerDownListener, true);\n body.addEventListener('click', this._clickListener, true);\n body.addEventListener('auxclick', this._clickListener, true);\n body.addEventListener('contextmenu', this._clickListener, true);\n }\n static {\n this.ɵfac = function OverlayOutsideClickDispatcher_Factory(t) {\n return new (t || OverlayOutsideClickDispatcher)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(i1$1.Platform), i0.ɵɵinject(i0.NgZone, 8));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: OverlayOutsideClickDispatcher,\n factory: OverlayOutsideClickDispatcher.ɵfac,\n providedIn: 'root'\n });\n }\n }\n return OverlayOutsideClickDispatcher;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/** Container inside which all overlays will render. */\nlet OverlayContainer = /*#__PURE__*/(() => {\n class OverlayContainer {\n constructor(document, _platform) {\n this._platform = _platform;\n this._document = document;\n }\n ngOnDestroy() {\n this._containerElement?.remove();\n }\n /**\n * This method returns the overlay container element. It will lazily\n * create the element the first time it is called to facilitate using\n * the container in non-browser environments.\n * @returns the container element\n */\n getContainerElement() {\n if (!this._containerElement) {\n this._createContainer();\n }\n return this._containerElement;\n }\n /**\n * Create the overlay container element, which is simply a div\n * with the 'cdk-overlay-container' class on the document body.\n */\n _createContainer() {\n const containerClass = 'cdk-overlay-container';\n // TODO(crisbeto): remove the testing check once we have an overlay testing\n // module or Angular starts tearing down the testing `NgModule`. See:\n // https://github.com/angular/angular/issues/18831\n if (this._platform.isBrowser || _isTestEnvironment()) {\n const oppositePlatformContainers = this._document.querySelectorAll(`.${containerClass}[platform=\"server\"], ` + `.${containerClass}[platform=\"test\"]`);\n // Remove any old containers from the opposite platform.\n // This can happen when transitioning from the server to the client.\n for (let i = 0; i < oppositePlatformContainers.length; i++) {\n oppositePlatformContainers[i].remove();\n }\n }\n const container = this._document.createElement('div');\n container.classList.add(containerClass);\n // A long time ago we kept adding new overlay containers whenever a new app was instantiated,\n // but at some point we added logic which clears the duplicate ones in order to avoid leaks.\n // The new logic was a little too aggressive since it was breaking some legitimate use cases.\n // To mitigate the problem we made it so that only containers from a different platform are\n // cleared, but the side-effect was that people started depending on the overly-aggressive\n // logic to clean up their tests for them. Until we can introduce an overlay-specific testing\n // module which does the cleanup, we try to detect that we're in a test environment and we\n // always clear the container. See #17006.\n // TODO(crisbeto): remove the test environment check once we have an overlay testing module.\n if (_isTestEnvironment()) {\n container.setAttribute('platform', 'test');\n } else if (!this._platform.isBrowser) {\n container.setAttribute('platform', 'server');\n }\n this._document.body.appendChild(container);\n this._containerElement = container;\n }\n static {\n this.ɵfac = function OverlayContainer_Factory(t) {\n return new (t || OverlayContainer)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(i1$1.Platform));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: OverlayContainer,\n factory: OverlayContainer.ɵfac,\n providedIn: 'root'\n });\n }\n }\n return OverlayContainer;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Reference to an overlay that has been created with the Overlay service.\n * Used to manipulate or dispose of said overlay.\n */\nclass OverlayRef {\n constructor(_portalOutlet, _host, _pane, _config, _ngZone, _keyboardDispatcher, _document, _location, _outsideClickDispatcher, _animationsDisabled = false, _injector) {\n this._portalOutlet = _portalOutlet;\n this._host = _host;\n this._pane = _pane;\n this._config = _config;\n this._ngZone = _ngZone;\n this._keyboardDispatcher = _keyboardDispatcher;\n this._document = _document;\n this._location = _location;\n this._outsideClickDispatcher = _outsideClickDispatcher;\n this._animationsDisabled = _animationsDisabled;\n this._injector = _injector;\n this._backdropElement = null;\n this._backdropClick = new Subject();\n this._attachments = new Subject();\n this._detachments = new Subject();\n this._locationChanges = Subscription.EMPTY;\n this._backdropClickHandler = event => this._backdropClick.next(event);\n this._backdropTransitionendHandler = event => {\n this._disposeBackdrop(event.target);\n };\n /** Stream of keydown events dispatched to this overlay. */\n this._keydownEvents = new Subject();\n /** Stream of mouse outside events dispatched to this overlay. */\n this._outsidePointerEvents = new Subject();\n this._renders = new Subject();\n if (_config.scrollStrategy) {\n this._scrollStrategy = _config.scrollStrategy;\n this._scrollStrategy.attach(this);\n }\n this._positionStrategy = _config.positionStrategy;\n // Users could open the overlay from an `effect`, in which case we need to\n // run the `afterRender` as `untracked`. We don't recommend that users do\n // this, but we also don't want to break users who are doing it.\n this._afterRenderRef = untracked(() => afterRender(() => {\n this._renders.next();\n }, {\n injector: this._injector\n }));\n }\n /** The overlay's HTML element */\n get overlayElement() {\n return this._pane;\n }\n /** The overlay's backdrop HTML element. */\n get backdropElement() {\n return this._backdropElement;\n }\n /**\n * Wrapper around the panel element. Can be used for advanced\n * positioning where a wrapper with specific styling is\n * required around the overlay pane.\n */\n get hostElement() {\n return this._host;\n }\n /**\n * Attaches content, given via a Portal, to the overlay.\n * If the overlay is configured to have a backdrop, it will be created.\n *\n * @param portal Portal instance to which to attach the overlay.\n * @returns The portal attachment result.\n */\n attach(portal) {\n // Insert the host into the DOM before attaching the portal, otherwise\n // the animations module will skip animations on repeat attachments.\n if (!this._host.parentElement && this._previousHostParent) {\n this._previousHostParent.appendChild(this._host);\n }\n const attachResult = this._portalOutlet.attach(portal);\n if (this._positionStrategy) {\n this._positionStrategy.attach(this);\n }\n this._updateStackingOrder();\n this._updateElementSize();\n this._updateElementDirection();\n if (this._scrollStrategy) {\n this._scrollStrategy.enable();\n }\n // Update the position once the overlay is fully rendered before attempting to position it,\n // as the position may depend on the size of the rendered content.\n afterNextRender(() => {\n // The overlay could've been detached before the callback executed.\n if (this.hasAttached()) {\n this.updatePosition();\n }\n }, {\n injector: this._injector\n });\n // Enable pointer events for the overlay pane element.\n this._togglePointerEvents(true);\n if (this._config.hasBackdrop) {\n this._attachBackdrop();\n }\n if (this._config.panelClass) {\n this._toggleClasses(this._pane, this._config.panelClass, true);\n }\n // Only emit the `attachments` event once all other setup is done.\n this._attachments.next();\n // Track this overlay by the keyboard dispatcher\n this._keyboardDispatcher.add(this);\n if (this._config.disposeOnNavigation) {\n this._locationChanges = this._location.subscribe(() => this.dispose());\n }\n this._outsideClickDispatcher.add(this);\n // TODO(crisbeto): the null check is here, because the portal outlet returns `any`.\n // We should be guaranteed for the result to be `ComponentRef | EmbeddedViewRef`, but\n // `instanceof EmbeddedViewRef` doesn't appear to work at the moment.\n if (typeof attachResult?.onDestroy === 'function') {\n // In most cases we control the portal and we know when it is being detached so that\n // we can finish the disposal process. The exception is if the user passes in a custom\n // `ViewContainerRef` that isn't destroyed through the overlay API. Note that we use\n // `detach` here instead of `dispose`, because we don't know if the user intends to\n // reattach the overlay at a later point. It also has the advantage of waiting for animations.\n attachResult.onDestroy(() => {\n if (this.hasAttached()) {\n // We have to delay the `detach` call, because detaching immediately prevents\n // other destroy hooks from running. This is likely a framework bug similar to\n // https://github.com/angular/angular/issues/46119\n this._ngZone.runOutsideAngular(() => Promise.resolve().then(() => this.detach()));\n }\n });\n }\n return attachResult;\n }\n /**\n * Detaches an overlay from a portal.\n * @returns The portal detachment result.\n */\n detach() {\n if (!this.hasAttached()) {\n return;\n }\n this.detachBackdrop();\n // When the overlay is detached, the pane element should disable pointer events.\n // This is necessary because otherwise the pane element will cover the page and disable\n // pointer events therefore. Depends on the position strategy and the applied pane boundaries.\n this._togglePointerEvents(false);\n if (this._positionStrategy && this._positionStrategy.detach) {\n this._positionStrategy.detach();\n }\n if (this._scrollStrategy) {\n this._scrollStrategy.disable();\n }\n const detachmentResult = this._portalOutlet.detach();\n // Only emit after everything is detached.\n this._detachments.next();\n // Remove this overlay from keyboard dispatcher tracking.\n this._keyboardDispatcher.remove(this);\n // Keeping the host element in the DOM can cause scroll jank, because it still gets\n // rendered, even though it's transparent and unclickable which is why we remove it.\n this._detachContentWhenEmpty();\n this._locationChanges.unsubscribe();\n this._outsideClickDispatcher.remove(this);\n return detachmentResult;\n }\n /** Cleans up the overlay from the DOM. */\n dispose() {\n const isAttached = this.hasAttached();\n if (this._positionStrategy) {\n this._positionStrategy.dispose();\n }\n this._disposeScrollStrategy();\n this._disposeBackdrop(this._backdropElement);\n this._locationChanges.unsubscribe();\n this._keyboardDispatcher.remove(this);\n this._portalOutlet.dispose();\n this._attachments.complete();\n this._backdropClick.complete();\n this._keydownEvents.complete();\n this._outsidePointerEvents.complete();\n this._outsideClickDispatcher.remove(this);\n this._host?.remove();\n this._previousHostParent = this._pane = this._host = null;\n if (isAttached) {\n this._detachments.next();\n }\n this._detachments.complete();\n this._afterRenderRef.destroy();\n this._renders.complete();\n }\n /** Whether the overlay has attached content. */\n hasAttached() {\n return this._portalOutlet.hasAttached();\n }\n /** Gets an observable that emits when the backdrop has been clicked. */\n backdropClick() {\n return this._backdropClick;\n }\n /** Gets an observable that emits when the overlay has been attached. */\n attachments() {\n return this._attachments;\n }\n /** Gets an observable that emits when the overlay has been detached. */\n detachments() {\n return this._detachments;\n }\n /** Gets an observable of keydown events targeted to this overlay. */\n keydownEvents() {\n return this._keydownEvents;\n }\n /** Gets an observable of pointer events targeted outside this overlay. */\n outsidePointerEvents() {\n return this._outsidePointerEvents;\n }\n /** Gets the current overlay configuration, which is immutable. */\n getConfig() {\n return this._config;\n }\n /** Updates the position of the overlay based on the position strategy. */\n updatePosition() {\n if (this._positionStrategy) {\n this._positionStrategy.apply();\n }\n }\n /** Switches to a new position strategy and updates the overlay position. */\n updatePositionStrategy(strategy) {\n if (strategy === this._positionStrategy) {\n return;\n }\n if (this._positionStrategy) {\n this._positionStrategy.dispose();\n }\n this._positionStrategy = strategy;\n if (this.hasAttached()) {\n strategy.attach(this);\n this.updatePosition();\n }\n }\n /** Update the size properties of the overlay. */\n updateSize(sizeConfig) {\n this._config = {\n ...this._config,\n ...sizeConfig\n };\n this._updateElementSize();\n }\n /** Sets the LTR/RTL direction for the overlay. */\n setDirection(dir) {\n this._config = {\n ...this._config,\n direction: dir\n };\n this._updateElementDirection();\n }\n /** Add a CSS class or an array of classes to the overlay pane. */\n addPanelClass(classes) {\n if (this._pane) {\n this._toggleClasses(this._pane, classes, true);\n }\n }\n /** Remove a CSS class or an array of classes from the overlay pane. */\n removePanelClass(classes) {\n if (this._pane) {\n this._toggleClasses(this._pane, classes, false);\n }\n }\n /**\n * Returns the layout direction of the overlay panel.\n */\n getDirection() {\n const direction = this._config.direction;\n if (!direction) {\n return 'ltr';\n }\n return typeof direction === 'string' ? direction : direction.value;\n }\n /** Switches to a new scroll strategy. */\n updateScrollStrategy(strategy) {\n if (strategy === this._scrollStrategy) {\n return;\n }\n this._disposeScrollStrategy();\n this._scrollStrategy = strategy;\n if (this.hasAttached()) {\n strategy.attach(this);\n strategy.enable();\n }\n }\n /** Updates the text direction of the overlay panel. */\n _updateElementDirection() {\n this._host.setAttribute('dir', this.getDirection());\n }\n /** Updates the size of the overlay element based on the overlay config. */\n _updateElementSize() {\n if (!this._pane) {\n return;\n }\n const style = this._pane.style;\n style.width = coerceCssPixelValue(this._config.width);\n style.height = coerceCssPixelValue(this._config.height);\n style.minWidth = coerceCssPixelValue(this._config.minWidth);\n style.minHeight = coerceCssPixelValue(this._config.minHeight);\n style.maxWidth = coerceCssPixelValue(this._config.maxWidth);\n style.maxHeight = coerceCssPixelValue(this._config.maxHeight);\n }\n /** Toggles the pointer events for the overlay pane element. */\n _togglePointerEvents(enablePointer) {\n this._pane.style.pointerEvents = enablePointer ? '' : 'none';\n }\n /** Attaches a backdrop for this overlay. */\n _attachBackdrop() {\n const showingClass = 'cdk-overlay-backdrop-showing';\n this._backdropElement = this._document.createElement('div');\n this._backdropElement.classList.add('cdk-overlay-backdrop');\n if (this._animationsDisabled) {\n this._backdropElement.classList.add('cdk-overlay-backdrop-noop-animation');\n }\n if (this._config.backdropClass) {\n this._toggleClasses(this._backdropElement, this._config.backdropClass, true);\n }\n // Insert the backdrop before the pane in the DOM order,\n // in order to handle stacked overlays properly.\n this._host.parentElement.insertBefore(this._backdropElement, this._host);\n // Forward backdrop clicks such that the consumer of the overlay can perform whatever\n // action desired when such a click occurs (usually closing the overlay).\n this._backdropElement.addEventListener('click', this._backdropClickHandler);\n // Add class to fade-in the backdrop after one frame.\n if (!this._animationsDisabled && typeof requestAnimationFrame !== 'undefined') {\n this._ngZone.runOutsideAngular(() => {\n requestAnimationFrame(() => {\n if (this._backdropElement) {\n this._backdropElement.classList.add(showingClass);\n }\n });\n });\n } else {\n this._backdropElement.classList.add(showingClass);\n }\n }\n /**\n * Updates the stacking order of the element, moving it to the top if necessary.\n * This is required in cases where one overlay was detached, while another one,\n * that should be behind it, was destroyed. The next time both of them are opened,\n * the stacking will be wrong, because the detached element's pane will still be\n * in its original DOM position.\n */\n _updateStackingOrder() {\n if (this._host.nextSibling) {\n this._host.parentNode.appendChild(this._host);\n }\n }\n /** Detaches the backdrop (if any) associated with the overlay. */\n detachBackdrop() {\n const backdropToDetach = this._backdropElement;\n if (!backdropToDetach) {\n return;\n }\n if (this._animationsDisabled) {\n this._disposeBackdrop(backdropToDetach);\n return;\n }\n backdropToDetach.classList.remove('cdk-overlay-backdrop-showing');\n this._ngZone.runOutsideAngular(() => {\n backdropToDetach.addEventListener('transitionend', this._backdropTransitionendHandler);\n });\n // If the backdrop doesn't have a transition, the `transitionend` event won't fire.\n // In this case we make it unclickable and we try to remove it after a delay.\n backdropToDetach.style.pointerEvents = 'none';\n // Run this outside the Angular zone because there's nothing that Angular cares about.\n // If it were to run inside the Angular zone, every test that used Overlay would have to be\n // either async or fakeAsync.\n this._backdropTimeout = this._ngZone.runOutsideAngular(() => setTimeout(() => {\n this._disposeBackdrop(backdropToDetach);\n }, 500));\n }\n /** Toggles a single CSS class or an array of classes on an element. */\n _toggleClasses(element, cssClasses, isAdd) {\n const classes = coerceArray(cssClasses || []).filter(c => !!c);\n if (classes.length) {\n isAdd ? element.classList.add(...classes) : element.classList.remove(...classes);\n }\n }\n /** Detaches the overlay content next time the zone stabilizes. */\n _detachContentWhenEmpty() {\n // Normally we wouldn't have to explicitly run this outside the `NgZone`, however\n // if the consumer is using `zone-patch-rxjs`, the `Subscription.unsubscribe` call will\n // be patched to run inside the zone, which will throw us into an infinite loop.\n this._ngZone.runOutsideAngular(() => {\n // We can't remove the host here immediately, because the overlay pane's content\n // might still be animating. This stream helps us avoid interrupting the animation\n // by waiting for the pane to become empty.\n const subscription = this._renders.pipe(takeUntil(merge(this._attachments, this._detachments))).subscribe(() => {\n // Needs a couple of checks for the pane and host, because\n // they may have been removed by the time the zone stabilizes.\n if (!this._pane || !this._host || this._pane.children.length === 0) {\n if (this._pane && this._config.panelClass) {\n this._toggleClasses(this._pane, this._config.panelClass, false);\n }\n if (this._host && this._host.parentElement) {\n this._previousHostParent = this._host.parentElement;\n this._host.remove();\n }\n subscription.unsubscribe();\n }\n });\n });\n }\n /** Disposes of a scroll strategy. */\n _disposeScrollStrategy() {\n const scrollStrategy = this._scrollStrategy;\n if (scrollStrategy) {\n scrollStrategy.disable();\n if (scrollStrategy.detach) {\n scrollStrategy.detach();\n }\n }\n }\n /** Removes a backdrop element from the DOM. */\n _disposeBackdrop(backdrop) {\n if (backdrop) {\n backdrop.removeEventListener('click', this._backdropClickHandler);\n backdrop.removeEventListener('transitionend', this._backdropTransitionendHandler);\n backdrop.remove();\n // It is possible that a new portal has been attached to this overlay since we started\n // removing the backdrop. If that is the case, only clear the backdrop reference if it\n // is still the same instance that we started to remove.\n if (this._backdropElement === backdrop) {\n this._backdropElement = null;\n }\n }\n if (this._backdropTimeout) {\n clearTimeout(this._backdropTimeout);\n this._backdropTimeout = undefined;\n }\n }\n}\n\n// TODO: refactor clipping detection into a separate thing (part of scrolling module)\n// TODO: doesn't handle both flexible width and height when it has to scroll along both axis.\n/** Class to be added to the overlay bounding box. */\nconst boundingBoxClass = 'cdk-overlay-connected-position-bounding-box';\n/** Regex used to split a string on its CSS units. */\nconst cssUnitPattern = /([A-Za-z%]+)$/;\n/**\n * A strategy for positioning overlays. Using this strategy, an overlay is given an\n * implicit position relative some origin element. The relative position is defined in terms of\n * a point on the origin element that is connected to a point on the overlay element. For example,\n * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner\n * of the overlay.\n */\nclass FlexibleConnectedPositionStrategy {\n /** Ordered list of preferred positions, from most to least desirable. */\n get positions() {\n return this._preferredPositions;\n }\n constructor(connectedTo, _viewportRuler, _document, _platform, _overlayContainer) {\n this._viewportRuler = _viewportRuler;\n this._document = _document;\n this._platform = _platform;\n this._overlayContainer = _overlayContainer;\n /** Last size used for the bounding box. Used to avoid resizing the overlay after open. */\n this._lastBoundingBoxSize = {\n width: 0,\n height: 0\n };\n /** Whether the overlay was pushed in a previous positioning. */\n this._isPushed = false;\n /** Whether the overlay can be pushed on-screen on the initial open. */\n this._canPush = true;\n /** Whether the overlay can grow via flexible width/height after the initial open. */\n this._growAfterOpen = false;\n /** Whether the overlay's width and height can be constrained to fit within the viewport. */\n this._hasFlexibleDimensions = true;\n /** Whether the overlay position is locked. */\n this._positionLocked = false;\n /** Amount of space that must be maintained between the overlay and the edge of the viewport. */\n this._viewportMargin = 0;\n /** The Scrollable containers used to check scrollable view properties on position change. */\n this._scrollables = [];\n /** Ordered list of preferred positions, from most to least desirable. */\n this._preferredPositions = [];\n /** Subject that emits whenever the position changes. */\n this._positionChanges = new Subject();\n /** Subscription to viewport size changes. */\n this._resizeSubscription = Subscription.EMPTY;\n /** Default offset for the overlay along the x axis. */\n this._offsetX = 0;\n /** Default offset for the overlay along the y axis. */\n this._offsetY = 0;\n /** Keeps track of the CSS classes that the position strategy has applied on the overlay panel. */\n this._appliedPanelClasses = [];\n /** Observable sequence of position changes. */\n this.positionChanges = this._positionChanges;\n this.setOrigin(connectedTo);\n }\n /** Attaches this position strategy to an overlay. */\n attach(overlayRef) {\n if (this._overlayRef && overlayRef !== this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('This position strategy is already attached to an overlay');\n }\n this._validatePositions();\n overlayRef.hostElement.classList.add(boundingBoxClass);\n this._overlayRef = overlayRef;\n this._boundingBox = overlayRef.hostElement;\n this._pane = overlayRef.overlayElement;\n this._isDisposed = false;\n this._isInitialRender = true;\n this._lastPosition = null;\n this._resizeSubscription.unsubscribe();\n this._resizeSubscription = this._viewportRuler.change().subscribe(() => {\n // When the window is resized, we want to trigger the next reposition as if it\n // was an initial render, in order for the strategy to pick a new optimal position,\n // otherwise position locking will cause it to stay at the old one.\n this._isInitialRender = true;\n this.apply();\n });\n }\n /**\n * Updates the position of the overlay element, using whichever preferred position relative\n * to the origin best fits on-screen.\n *\n * The selection of a position goes as follows:\n * - If any positions fit completely within the viewport as-is,\n * choose the first position that does so.\n * - If flexible dimensions are enabled and at least one satisfies the given minimum width/height,\n * choose the position with the greatest available size modified by the positions' weight.\n * - If pushing is enabled, take the position that went off-screen the least and push it\n * on-screen.\n * - If none of the previous criteria were met, use the position that goes off-screen the least.\n * @docs-private\n */\n apply() {\n // We shouldn't do anything if the strategy was disposed or we're on the server.\n if (this._isDisposed || !this._platform.isBrowser) {\n return;\n }\n // If the position has been applied already (e.g. when the overlay was opened) and the\n // consumer opted into locking in the position, re-use the old position, in order to\n // prevent the overlay from jumping around.\n if (!this._isInitialRender && this._positionLocked && this._lastPosition) {\n this.reapplyLastPosition();\n return;\n }\n this._clearPanelClasses();\n this._resetOverlayElementStyles();\n this._resetBoundingBoxStyles();\n // We need the bounding rects for the origin, the overlay and the container to determine how to position\n // the overlay relative to the origin.\n // We use the viewport rect to determine whether a position would go off-screen.\n this._viewportRect = this._getNarrowedViewportRect();\n this._originRect = this._getOriginRect();\n this._overlayRect = this._pane.getBoundingClientRect();\n this._containerRect = this._overlayContainer.getContainerElement().getBoundingClientRect();\n const originRect = this._originRect;\n const overlayRect = this._overlayRect;\n const viewportRect = this._viewportRect;\n const containerRect = this._containerRect;\n // Positions where the overlay will fit with flexible dimensions.\n const flexibleFits = [];\n // Fallback if none of the preferred positions fit within the viewport.\n let fallback;\n // Go through each of the preferred positions looking for a good fit.\n // If a good fit is found, it will be applied immediately.\n for (let pos of this._preferredPositions) {\n // Get the exact (x, y) coordinate for the point-of-origin on the origin element.\n let originPoint = this._getOriginPoint(originRect, containerRect, pos);\n // From that point-of-origin, get the exact (x, y) coordinate for the top-left corner of the\n // overlay in this position. We use the top-left corner for calculations and later translate\n // this into an appropriate (top, left, bottom, right) style.\n let overlayPoint = this._getOverlayPoint(originPoint, overlayRect, pos);\n // Calculate how well the overlay would fit into the viewport with this point.\n let overlayFit = this._getOverlayFit(overlayPoint, overlayRect, viewportRect, pos);\n // If the overlay, without any further work, fits into the viewport, use this position.\n if (overlayFit.isCompletelyWithinViewport) {\n this._isPushed = false;\n this._applyPosition(pos, originPoint);\n return;\n }\n // If the overlay has flexible dimensions, we can use this position\n // so long as there's enough space for the minimum dimensions.\n if (this._canFitWithFlexibleDimensions(overlayFit, overlayPoint, viewportRect)) {\n // Save positions where the overlay will fit with flexible dimensions. We will use these\n // if none of the positions fit *without* flexible dimensions.\n flexibleFits.push({\n position: pos,\n origin: originPoint,\n overlayRect,\n boundingBoxRect: this._calculateBoundingBoxRect(originPoint, pos)\n });\n continue;\n }\n // If the current preferred position does not fit on the screen, remember the position\n // if it has more visible area on-screen than we've seen and move onto the next preferred\n // position.\n if (!fallback || fallback.overlayFit.visibleArea < overlayFit.visibleArea) {\n fallback = {\n overlayFit,\n overlayPoint,\n originPoint,\n position: pos,\n overlayRect\n };\n }\n }\n // If there are any positions where the overlay would fit with flexible dimensions, choose the\n // one that has the greatest area available modified by the position's weight\n if (flexibleFits.length) {\n let bestFit = null;\n let bestScore = -1;\n for (const fit of flexibleFits) {\n const score = fit.boundingBoxRect.width * fit.boundingBoxRect.height * (fit.position.weight || 1);\n if (score > bestScore) {\n bestScore = score;\n bestFit = fit;\n }\n }\n this._isPushed = false;\n this._applyPosition(bestFit.position, bestFit.origin);\n return;\n }\n // When none of the preferred positions fit within the viewport, take the position\n // that went off-screen the least and attempt to push it on-screen.\n if (this._canPush) {\n // TODO(jelbourn): after pushing, the opening \"direction\" of the overlay might not make sense.\n this._isPushed = true;\n this._applyPosition(fallback.position, fallback.originPoint);\n return;\n }\n // All options for getting the overlay within the viewport have been exhausted, so go with the\n // position that went off-screen the least.\n this._applyPosition(fallback.position, fallback.originPoint);\n }\n detach() {\n this._clearPanelClasses();\n this._lastPosition = null;\n this._previousPushAmount = null;\n this._resizeSubscription.unsubscribe();\n }\n /** Cleanup after the element gets destroyed. */\n dispose() {\n if (this._isDisposed) {\n return;\n }\n // We can't use `_resetBoundingBoxStyles` here, because it resets\n // some properties to zero, rather than removing them.\n if (this._boundingBox) {\n extendStyles(this._boundingBox.style, {\n top: '',\n left: '',\n right: '',\n bottom: '',\n height: '',\n width: '',\n alignItems: '',\n justifyContent: ''\n });\n }\n if (this._pane) {\n this._resetOverlayElementStyles();\n }\n if (this._overlayRef) {\n this._overlayRef.hostElement.classList.remove(boundingBoxClass);\n }\n this.detach();\n this._positionChanges.complete();\n this._overlayRef = this._boundingBox = null;\n this._isDisposed = true;\n }\n /**\n * This re-aligns the overlay element with the trigger in its last calculated position,\n * even if a position higher in the \"preferred positions\" list would now fit. This\n * allows one to re-align the panel without changing the orientation of the panel.\n */\n reapplyLastPosition() {\n if (this._isDisposed || !this._platform.isBrowser) {\n return;\n }\n const lastPosition = this._lastPosition;\n if (lastPosition) {\n this._originRect = this._getOriginRect();\n this._overlayRect = this._pane.getBoundingClientRect();\n this._viewportRect = this._getNarrowedViewportRect();\n this._containerRect = this._overlayContainer.getContainerElement().getBoundingClientRect();\n const originPoint = this._getOriginPoint(this._originRect, this._containerRect, lastPosition);\n this._applyPosition(lastPosition, originPoint);\n } else {\n this.apply();\n }\n }\n /**\n * Sets the list of Scrollable containers that host the origin element so that\n * on reposition we can evaluate if it or the overlay has been clipped or outside view. Every\n * Scrollable must be an ancestor element of the strategy's origin element.\n */\n withScrollableContainers(scrollables) {\n this._scrollables = scrollables;\n return this;\n }\n /**\n * Adds new preferred positions.\n * @param positions List of positions options for this overlay.\n */\n withPositions(positions) {\n this._preferredPositions = positions;\n // If the last calculated position object isn't part of the positions anymore, clear\n // it in order to avoid it being picked up if the consumer tries to re-apply.\n if (positions.indexOf(this._lastPosition) === -1) {\n this._lastPosition = null;\n }\n this._validatePositions();\n return this;\n }\n /**\n * Sets a minimum distance the overlay may be positioned to the edge of the viewport.\n * @param margin Required margin between the overlay and the viewport edge in pixels.\n */\n withViewportMargin(margin) {\n this._viewportMargin = margin;\n return this;\n }\n /** Sets whether the overlay's width and height can be constrained to fit within the viewport. */\n withFlexibleDimensions(flexibleDimensions = true) {\n this._hasFlexibleDimensions = flexibleDimensions;\n return this;\n }\n /** Sets whether the overlay can grow after the initial open via flexible width/height. */\n withGrowAfterOpen(growAfterOpen = true) {\n this._growAfterOpen = growAfterOpen;\n return this;\n }\n /** Sets whether the overlay can be pushed on-screen if none of the provided positions fit. */\n withPush(canPush = true) {\n this._canPush = canPush;\n return this;\n }\n /**\n * Sets whether the overlay's position should be locked in after it is positioned\n * initially. When an overlay is locked in, it won't attempt to reposition itself\n * when the position is re-applied (e.g. when the user scrolls away).\n * @param isLocked Whether the overlay should locked in.\n */\n withLockedPosition(isLocked = true) {\n this._positionLocked = isLocked;\n return this;\n }\n /**\n * Sets the origin, relative to which to position the overlay.\n * Using an element origin is useful for building components that need to be positioned\n * relatively to a trigger (e.g. dropdown menus or tooltips), whereas using a point can be\n * used for cases like contextual menus which open relative to the user's pointer.\n * @param origin Reference to the new origin.\n */\n setOrigin(origin) {\n this._origin = origin;\n return this;\n }\n /**\n * Sets the default offset for the overlay's connection point on the x-axis.\n * @param offset New offset in the X axis.\n */\n withDefaultOffsetX(offset) {\n this._offsetX = offset;\n return this;\n }\n /**\n * Sets the default offset for the overlay's connection point on the y-axis.\n * @param offset New offset in the Y axis.\n */\n withDefaultOffsetY(offset) {\n this._offsetY = offset;\n return this;\n }\n /**\n * Configures that the position strategy should set a `transform-origin` on some elements\n * inside the overlay, depending on the current position that is being applied. This is\n * useful for the cases where the origin of an animation can change depending on the\n * alignment of the overlay.\n * @param selector CSS selector that will be used to find the target\n * elements onto which to set the transform origin.\n */\n withTransformOriginOn(selector) {\n this._transformOriginSelector = selector;\n return this;\n }\n /**\n * Gets the (x, y) coordinate of a connection point on the origin based on a relative position.\n */\n _getOriginPoint(originRect, containerRect, pos) {\n let x;\n if (pos.originX == 'center') {\n // Note: when centering we should always use the `left`\n // offset, otherwise the position will be wrong in RTL.\n x = originRect.left + originRect.width / 2;\n } else {\n const startX = this._isRtl() ? originRect.right : originRect.left;\n const endX = this._isRtl() ? originRect.left : originRect.right;\n x = pos.originX == 'start' ? startX : endX;\n }\n // When zooming in Safari the container rectangle contains negative values for the position\n // and we need to re-add them to the calculated coordinates.\n if (containerRect.left < 0) {\n x -= containerRect.left;\n }\n let y;\n if (pos.originY == 'center') {\n y = originRect.top + originRect.height / 2;\n } else {\n y = pos.originY == 'top' ? originRect.top : originRect.bottom;\n }\n // Normally the containerRect's top value would be zero, however when the overlay is attached to an input\n // (e.g. in an autocomplete), mobile browsers will shift everything in order to put the input in the middle\n // of the screen and to make space for the virtual keyboard. We need to account for this offset,\n // otherwise our positioning will be thrown off.\n // Additionally, when zooming in Safari this fixes the vertical position.\n if (containerRect.top < 0) {\n y -= containerRect.top;\n }\n return {\n x,\n y\n };\n }\n /**\n * Gets the (x, y) coordinate of the top-left corner of the overlay given a given position and\n * origin point to which the overlay should be connected.\n */\n _getOverlayPoint(originPoint, overlayRect, pos) {\n // Calculate the (overlayStartX, overlayStartY), the start of the\n // potential overlay position relative to the origin point.\n let overlayStartX;\n if (pos.overlayX == 'center') {\n overlayStartX = -overlayRect.width / 2;\n } else if (pos.overlayX === 'start') {\n overlayStartX = this._isRtl() ? -overlayRect.width : 0;\n } else {\n overlayStartX = this._isRtl() ? 0 : -overlayRect.width;\n }\n let overlayStartY;\n if (pos.overlayY == 'center') {\n overlayStartY = -overlayRect.height / 2;\n } else {\n overlayStartY = pos.overlayY == 'top' ? 0 : -overlayRect.height;\n }\n // The (x, y) coordinates of the overlay.\n return {\n x: originPoint.x + overlayStartX,\n y: originPoint.y + overlayStartY\n };\n }\n /** Gets how well an overlay at the given point will fit within the viewport. */\n _getOverlayFit(point, rawOverlayRect, viewport, position) {\n // Round the overlay rect when comparing against the\n // viewport, because the viewport is always rounded.\n const overlay = getRoundedBoundingClientRect(rawOverlayRect);\n let {\n x,\n y\n } = point;\n let offsetX = this._getOffset(position, 'x');\n let offsetY = this._getOffset(position, 'y');\n // Account for the offsets since they could push the overlay out of the viewport.\n if (offsetX) {\n x += offsetX;\n }\n if (offsetY) {\n y += offsetY;\n }\n // How much the overlay would overflow at this position, on each side.\n let leftOverflow = 0 - x;\n let rightOverflow = x + overlay.width - viewport.width;\n let topOverflow = 0 - y;\n let bottomOverflow = y + overlay.height - viewport.height;\n // Visible parts of the element on each axis.\n let visibleWidth = this._subtractOverflows(overlay.width, leftOverflow, rightOverflow);\n let visibleHeight = this._subtractOverflows(overlay.height, topOverflow, bottomOverflow);\n let visibleArea = visibleWidth * visibleHeight;\n return {\n visibleArea,\n isCompletelyWithinViewport: overlay.width * overlay.height === visibleArea,\n fitsInViewportVertically: visibleHeight === overlay.height,\n fitsInViewportHorizontally: visibleWidth == overlay.width\n };\n }\n /**\n * Whether the overlay can fit within the viewport when it may resize either its width or height.\n * @param fit How well the overlay fits in the viewport at some position.\n * @param point The (x, y) coordinates of the overlay at some position.\n * @param viewport The geometry of the viewport.\n */\n _canFitWithFlexibleDimensions(fit, point, viewport) {\n if (this._hasFlexibleDimensions) {\n const availableHeight = viewport.bottom - point.y;\n const availableWidth = viewport.right - point.x;\n const minHeight = getPixelValue(this._overlayRef.getConfig().minHeight);\n const minWidth = getPixelValue(this._overlayRef.getConfig().minWidth);\n const verticalFit = fit.fitsInViewportVertically || minHeight != null && minHeight <= availableHeight;\n const horizontalFit = fit.fitsInViewportHorizontally || minWidth != null && minWidth <= availableWidth;\n return verticalFit && horizontalFit;\n }\n return false;\n }\n /**\n * Gets the point at which the overlay can be \"pushed\" on-screen. If the overlay is larger than\n * the viewport, the top-left corner will be pushed on-screen (with overflow occurring on the\n * right and bottom).\n *\n * @param start Starting point from which the overlay is pushed.\n * @param rawOverlayRect Dimensions of the overlay.\n * @param scrollPosition Current viewport scroll position.\n * @returns The point at which to position the overlay after pushing. This is effectively a new\n * originPoint.\n */\n _pushOverlayOnScreen(start, rawOverlayRect, scrollPosition) {\n // If the position is locked and we've pushed the overlay already, reuse the previous push\n // amount, rather than pushing it again. If we were to continue pushing, the element would\n // remain in the viewport, which goes against the expectations when position locking is enabled.\n if (this._previousPushAmount && this._positionLocked) {\n return {\n x: start.x + this._previousPushAmount.x,\n y: start.y + this._previousPushAmount.y\n };\n }\n // Round the overlay rect when comparing against the\n // viewport, because the viewport is always rounded.\n const overlay = getRoundedBoundingClientRect(rawOverlayRect);\n const viewport = this._viewportRect;\n // Determine how much the overlay goes outside the viewport on each\n // side, which we'll use to decide which direction to push it.\n const overflowRight = Math.max(start.x + overlay.width - viewport.width, 0);\n const overflowBottom = Math.max(start.y + overlay.height - viewport.height, 0);\n const overflowTop = Math.max(viewport.top - scrollPosition.top - start.y, 0);\n const overflowLeft = Math.max(viewport.left - scrollPosition.left - start.x, 0);\n // Amount by which to push the overlay in each axis such that it remains on-screen.\n let pushX = 0;\n let pushY = 0;\n // If the overlay fits completely within the bounds of the viewport, push it from whichever\n // direction is goes off-screen. Otherwise, push the top-left corner such that its in the\n // viewport and allow for the trailing end of the overlay to go out of bounds.\n if (overlay.width <= viewport.width) {\n pushX = overflowLeft || -overflowRight;\n } else {\n pushX = start.x < this._viewportMargin ? viewport.left - scrollPosition.left - start.x : 0;\n }\n if (overlay.height <= viewport.height) {\n pushY = overflowTop || -overflowBottom;\n } else {\n pushY = start.y < this._viewportMargin ? viewport.top - scrollPosition.top - start.y : 0;\n }\n this._previousPushAmount = {\n x: pushX,\n y: pushY\n };\n return {\n x: start.x + pushX,\n y: start.y + pushY\n };\n }\n /**\n * Applies a computed position to the overlay and emits a position change.\n * @param position The position preference\n * @param originPoint The point on the origin element where the overlay is connected.\n */\n _applyPosition(position, originPoint) {\n this._setTransformOrigin(position);\n this._setOverlayElementStyles(originPoint, position);\n this._setBoundingBoxStyles(originPoint, position);\n if (position.panelClass) {\n this._addPanelClasses(position.panelClass);\n }\n // Notify that the position has been changed along with its change properties.\n // We only emit if we've got any subscriptions, because the scroll visibility\n // calculations can be somewhat expensive.\n if (this._positionChanges.observers.length) {\n const scrollVisibility = this._getScrollVisibility();\n // We're recalculating on scroll, but we only want to emit if anything\n // changed since downstream code might be hitting the `NgZone`.\n if (position !== this._lastPosition || !this._lastScrollVisibility || !compareScrollVisibility(this._lastScrollVisibility, scrollVisibility)) {\n const changeEvent = new ConnectedOverlayPositionChange(position, scrollVisibility);\n this._positionChanges.next(changeEvent);\n }\n this._lastScrollVisibility = scrollVisibility;\n }\n // Save the last connected position in case the position needs to be re-calculated.\n this._lastPosition = position;\n this._isInitialRender = false;\n }\n /** Sets the transform origin based on the configured selector and the passed-in position. */\n _setTransformOrigin(position) {\n if (!this._transformOriginSelector) {\n return;\n }\n const elements = this._boundingBox.querySelectorAll(this._transformOriginSelector);\n let xOrigin;\n let yOrigin = position.overlayY;\n if (position.overlayX === 'center') {\n xOrigin = 'center';\n } else if (this._isRtl()) {\n xOrigin = position.overlayX === 'start' ? 'right' : 'left';\n } else {\n xOrigin = position.overlayX === 'start' ? 'left' : 'right';\n }\n for (let i = 0; i < elements.length; i++) {\n elements[i].style.transformOrigin = `${xOrigin} ${yOrigin}`;\n }\n }\n /**\n * Gets the position and size of the overlay's sizing container.\n *\n * This method does no measuring and applies no styles so that we can cheaply compute the\n * bounds for all positions and choose the best fit based on these results.\n */\n _calculateBoundingBoxRect(origin, position) {\n const viewport = this._viewportRect;\n const isRtl = this._isRtl();\n let height, top, bottom;\n if (position.overlayY === 'top') {\n // Overlay is opening \"downward\" and thus is bound by the bottom viewport edge.\n top = origin.y;\n height = viewport.height - top + this._viewportMargin;\n } else if (position.overlayY === 'bottom') {\n // Overlay is opening \"upward\" and thus is bound by the top viewport edge. We need to add\n // the viewport margin back in, because the viewport rect is narrowed down to remove the\n // margin, whereas the `origin` position is calculated based on its `DOMRect`.\n bottom = viewport.height - origin.y + this._viewportMargin * 2;\n height = viewport.height - bottom + this._viewportMargin;\n } else {\n // If neither top nor bottom, it means that the overlay is vertically centered on the\n // origin point. Note that we want the position relative to the viewport, rather than\n // the page, which is why we don't use something like `viewport.bottom - origin.y` and\n // `origin.y - viewport.top`.\n const smallestDistanceToViewportEdge = Math.min(viewport.bottom - origin.y + viewport.top, origin.y);\n const previousHeight = this._lastBoundingBoxSize.height;\n height = smallestDistanceToViewportEdge * 2;\n top = origin.y - smallestDistanceToViewportEdge;\n if (height > previousHeight && !this._isInitialRender && !this._growAfterOpen) {\n top = origin.y - previousHeight / 2;\n }\n }\n // The overlay is opening 'right-ward' (the content flows to the right).\n const isBoundedByRightViewportEdge = position.overlayX === 'start' && !isRtl || position.overlayX === 'end' && isRtl;\n // The overlay is opening 'left-ward' (the content flows to the left).\n const isBoundedByLeftViewportEdge = position.overlayX === 'end' && !isRtl || position.overlayX === 'start' && isRtl;\n let width, left, right;\n if (isBoundedByLeftViewportEdge) {\n right = viewport.width - origin.x + this._viewportMargin * 2;\n width = origin.x - this._viewportMargin;\n } else if (isBoundedByRightViewportEdge) {\n left = origin.x;\n width = viewport.right - origin.x;\n } else {\n // If neither start nor end, it means that the overlay is horizontally centered on the\n // origin point. Note that we want the position relative to the viewport, rather than\n // the page, which is why we don't use something like `viewport.right - origin.x` and\n // `origin.x - viewport.left`.\n const smallestDistanceToViewportEdge = Math.min(viewport.right - origin.x + viewport.left, origin.x);\n const previousWidth = this._lastBoundingBoxSize.width;\n width = smallestDistanceToViewportEdge * 2;\n left = origin.x - smallestDistanceToViewportEdge;\n if (width > previousWidth && !this._isInitialRender && !this._growAfterOpen) {\n left = origin.x - previousWidth / 2;\n }\n }\n return {\n top: top,\n left: left,\n bottom: bottom,\n right: right,\n width,\n height\n };\n }\n /**\n * Sets the position and size of the overlay's sizing wrapper. The wrapper is positioned on the\n * origin's connection point and stretches to the bounds of the viewport.\n *\n * @param origin The point on the origin element where the overlay is connected.\n * @param position The position preference\n */\n _setBoundingBoxStyles(origin, position) {\n const boundingBoxRect = this._calculateBoundingBoxRect(origin, position);\n // It's weird if the overlay *grows* while scrolling, so we take the last size into account\n // when applying a new size.\n if (!this._isInitialRender && !this._growAfterOpen) {\n boundingBoxRect.height = Math.min(boundingBoxRect.height, this._lastBoundingBoxSize.height);\n boundingBoxRect.width = Math.min(boundingBoxRect.width, this._lastBoundingBoxSize.width);\n }\n const styles = {};\n if (this._hasExactPosition()) {\n styles.top = styles.left = '0';\n styles.bottom = styles.right = styles.maxHeight = styles.maxWidth = '';\n styles.width = styles.height = '100%';\n } else {\n const maxHeight = this._overlayRef.getConfig().maxHeight;\n const maxWidth = this._overlayRef.getConfig().maxWidth;\n styles.height = coerceCssPixelValue(boundingBoxRect.height);\n styles.top = coerceCssPixelValue(boundingBoxRect.top);\n styles.bottom = coerceCssPixelValue(boundingBoxRect.bottom);\n styles.width = coerceCssPixelValue(boundingBoxRect.width);\n styles.left = coerceCssPixelValue(boundingBoxRect.left);\n styles.right = coerceCssPixelValue(boundingBoxRect.right);\n // Push the pane content towards the proper direction.\n if (position.overlayX === 'center') {\n styles.alignItems = 'center';\n } else {\n styles.alignItems = position.overlayX === 'end' ? 'flex-end' : 'flex-start';\n }\n if (position.overlayY === 'center') {\n styles.justifyContent = 'center';\n } else {\n styles.justifyContent = position.overlayY === 'bottom' ? 'flex-end' : 'flex-start';\n }\n if (maxHeight) {\n styles.maxHeight = coerceCssPixelValue(maxHeight);\n }\n if (maxWidth) {\n styles.maxWidth = coerceCssPixelValue(maxWidth);\n }\n }\n this._lastBoundingBoxSize = boundingBoxRect;\n extendStyles(this._boundingBox.style, styles);\n }\n /** Resets the styles for the bounding box so that a new positioning can be computed. */\n _resetBoundingBoxStyles() {\n extendStyles(this._boundingBox.style, {\n top: '0',\n left: '0',\n right: '0',\n bottom: '0',\n height: '',\n width: '',\n alignItems: '',\n justifyContent: ''\n });\n }\n /** Resets the styles for the overlay pane so that a new positioning can be computed. */\n _resetOverlayElementStyles() {\n extendStyles(this._pane.style, {\n top: '',\n left: '',\n bottom: '',\n right: '',\n position: '',\n transform: ''\n });\n }\n /** Sets positioning styles to the overlay element. */\n _setOverlayElementStyles(originPoint, position) {\n const styles = {};\n const hasExactPosition = this._hasExactPosition();\n const hasFlexibleDimensions = this._hasFlexibleDimensions;\n const config = this._overlayRef.getConfig();\n if (hasExactPosition) {\n const scrollPosition = this._viewportRuler.getViewportScrollPosition();\n extendStyles(styles, this._getExactOverlayY(position, originPoint, scrollPosition));\n extendStyles(styles, this._getExactOverlayX(position, originPoint, scrollPosition));\n } else {\n styles.position = 'static';\n }\n // Use a transform to apply the offsets. We do this because the `center` positions rely on\n // being in the normal flex flow and setting a `top` / `left` at all will completely throw\n // off the position. We also can't use margins, because they won't have an effect in some\n // cases where the element doesn't have anything to \"push off of\". Finally, this works\n // better both with flexible and non-flexible positioning.\n let transformString = '';\n let offsetX = this._getOffset(position, 'x');\n let offsetY = this._getOffset(position, 'y');\n if (offsetX) {\n transformString += `translateX(${offsetX}px) `;\n }\n if (offsetY) {\n transformString += `translateY(${offsetY}px)`;\n }\n styles.transform = transformString.trim();\n // If a maxWidth or maxHeight is specified on the overlay, we remove them. We do this because\n // we need these values to both be set to \"100%\" for the automatic flexible sizing to work.\n // The maxHeight and maxWidth are set on the boundingBox in order to enforce the constraint.\n // Note that this doesn't apply when we have an exact position, in which case we do want to\n // apply them because they'll be cleared from the bounding box.\n if (config.maxHeight) {\n if (hasExactPosition) {\n styles.maxHeight = coerceCssPixelValue(config.maxHeight);\n } else if (hasFlexibleDimensions) {\n styles.maxHeight = '';\n }\n }\n if (config.maxWidth) {\n if (hasExactPosition) {\n styles.maxWidth = coerceCssPixelValue(config.maxWidth);\n } else if (hasFlexibleDimensions) {\n styles.maxWidth = '';\n }\n }\n extendStyles(this._pane.style, styles);\n }\n /** Gets the exact top/bottom for the overlay when not using flexible sizing or when pushing. */\n _getExactOverlayY(position, originPoint, scrollPosition) {\n // Reset any existing styles. This is necessary in case the\n // preferred position has changed since the last `apply`.\n let styles = {\n top: '',\n bottom: ''\n };\n let overlayPoint = this._getOverlayPoint(originPoint, this._overlayRect, position);\n if (this._isPushed) {\n overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);\n }\n // We want to set either `top` or `bottom` based on whether the overlay wants to appear\n // above or below the origin and the direction in which the element will expand.\n if (position.overlayY === 'bottom') {\n // When using `bottom`, we adjust the y position such that it is the distance\n // from the bottom of the viewport rather than the top.\n const documentHeight = this._document.documentElement.clientHeight;\n styles.bottom = `${documentHeight - (overlayPoint.y + this._overlayRect.height)}px`;\n } else {\n styles.top = coerceCssPixelValue(overlayPoint.y);\n }\n return styles;\n }\n /** Gets the exact left/right for the overlay when not using flexible sizing or when pushing. */\n _getExactOverlayX(position, originPoint, scrollPosition) {\n // Reset any existing styles. This is necessary in case the preferred position has\n // changed since the last `apply`.\n let styles = {\n left: '',\n right: ''\n };\n let overlayPoint = this._getOverlayPoint(originPoint, this._overlayRect, position);\n if (this._isPushed) {\n overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);\n }\n // We want to set either `left` or `right` based on whether the overlay wants to appear \"before\"\n // or \"after\" the origin, which determines the direction in which the element will expand.\n // For the horizontal axis, the meaning of \"before\" and \"after\" change based on whether the\n // page is in RTL or LTR.\n let horizontalStyleProperty;\n if (this._isRtl()) {\n horizontalStyleProperty = position.overlayX === 'end' ? 'left' : 'right';\n } else {\n horizontalStyleProperty = position.overlayX === 'end' ? 'right' : 'left';\n }\n // When we're setting `right`, we adjust the x position such that it is the distance\n // from the right edge of the viewport rather than the left edge.\n if (horizontalStyleProperty === 'right') {\n const documentWidth = this._document.documentElement.clientWidth;\n styles.right = `${documentWidth - (overlayPoint.x + this._overlayRect.width)}px`;\n } else {\n styles.left = coerceCssPixelValue(overlayPoint.x);\n }\n return styles;\n }\n /**\n * Gets the view properties of the trigger and overlay, including whether they are clipped\n * or completely outside the view of any of the strategy's scrollables.\n */\n _getScrollVisibility() {\n // Note: needs fresh rects since the position could've changed.\n const originBounds = this._getOriginRect();\n const overlayBounds = this._pane.getBoundingClientRect();\n // TODO(jelbourn): instead of needing all of the client rects for these scrolling containers\n // every time, we should be able to use the scrollTop of the containers if the size of those\n // containers hasn't changed.\n const scrollContainerBounds = this._scrollables.map(scrollable => {\n return scrollable.getElementRef().nativeElement.getBoundingClientRect();\n });\n return {\n isOriginClipped: isElementClippedByScrolling(originBounds, scrollContainerBounds),\n isOriginOutsideView: isElementScrolledOutsideView(originBounds, scrollContainerBounds),\n isOverlayClipped: isElementClippedByScrolling(overlayBounds, scrollContainerBounds),\n isOverlayOutsideView: isElementScrolledOutsideView(overlayBounds, scrollContainerBounds)\n };\n }\n /** Subtracts the amount that an element is overflowing on an axis from its length. */\n _subtractOverflows(length, ...overflows) {\n return overflows.reduce((currentValue, currentOverflow) => {\n return currentValue - Math.max(currentOverflow, 0);\n }, length);\n }\n /** Narrows the given viewport rect by the current _viewportMargin. */\n _getNarrowedViewportRect() {\n // We recalculate the viewport rect here ourselves, rather than using the ViewportRuler,\n // because we want to use the `clientWidth` and `clientHeight` as the base. The difference\n // being that the client properties don't include the scrollbar, as opposed to `innerWidth`\n // and `innerHeight` that do. This is necessary, because the overlay container uses\n // 100% `width` and `height` which don't include the scrollbar either.\n const width = this._document.documentElement.clientWidth;\n const height = this._document.documentElement.clientHeight;\n const scrollPosition = this._viewportRuler.getViewportScrollPosition();\n return {\n top: scrollPosition.top + this._viewportMargin,\n left: scrollPosition.left + this._viewportMargin,\n right: scrollPosition.left + width - this._viewportMargin,\n bottom: scrollPosition.top + height - this._viewportMargin,\n width: width - 2 * this._viewportMargin,\n height: height - 2 * this._viewportMargin\n };\n }\n /** Whether the we're dealing with an RTL context */\n _isRtl() {\n return this._overlayRef.getDirection() === 'rtl';\n }\n /** Determines whether the overlay uses exact or flexible positioning. */\n _hasExactPosition() {\n return !this._hasFlexibleDimensions || this._isPushed;\n }\n /** Retrieves the offset of a position along the x or y axis. */\n _getOffset(position, axis) {\n if (axis === 'x') {\n // We don't do something like `position['offset' + axis]` in\n // order to avoid breaking minifiers that rename properties.\n return position.offsetX == null ? this._offsetX : position.offsetX;\n }\n return position.offsetY == null ? this._offsetY : position.offsetY;\n }\n /** Validates that the current position match the expected values. */\n _validatePositions() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!this._preferredPositions.length) {\n throw Error('FlexibleConnectedPositionStrategy: At least one position is required.');\n }\n // TODO(crisbeto): remove these once Angular's template type\n // checking is advanced enough to catch these cases.\n this._preferredPositions.forEach(pair => {\n validateHorizontalPosition('originX', pair.originX);\n validateVerticalPosition('originY', pair.originY);\n validateHorizontalPosition('overlayX', pair.overlayX);\n validateVerticalPosition('overlayY', pair.overlayY);\n });\n }\n }\n /** Adds a single CSS class or an array of classes on the overlay panel. */\n _addPanelClasses(cssClasses) {\n if (this._pane) {\n coerceArray(cssClasses).forEach(cssClass => {\n if (cssClass !== '' && this._appliedPanelClasses.indexOf(cssClass) === -1) {\n this._appliedPanelClasses.push(cssClass);\n this._pane.classList.add(cssClass);\n }\n });\n }\n }\n /** Clears the classes that the position strategy has applied from the overlay panel. */\n _clearPanelClasses() {\n if (this._pane) {\n this._appliedPanelClasses.forEach(cssClass => {\n this._pane.classList.remove(cssClass);\n });\n this._appliedPanelClasses = [];\n }\n }\n /** Returns the DOMRect of the current origin. */\n _getOriginRect() {\n const origin = this._origin;\n if (origin instanceof ElementRef) {\n return origin.nativeElement.getBoundingClientRect();\n }\n // Check for Element so SVG elements are also supported.\n if (origin instanceof Element) {\n return origin.getBoundingClientRect();\n }\n const width = origin.width || 0;\n const height = origin.height || 0;\n // If the origin is a point, return a client rect as if it was a 0x0 element at the point.\n return {\n top: origin.y,\n bottom: origin.y + height,\n left: origin.x,\n right: origin.x + width,\n height,\n width\n };\n }\n}\n/** Shallow-extends a stylesheet object with another stylesheet object. */\nfunction extendStyles(destination, source) {\n for (let key in source) {\n if (source.hasOwnProperty(key)) {\n destination[key] = source[key];\n }\n }\n return destination;\n}\n/**\n * Extracts the pixel value as a number from a value, if it's a number\n * or a CSS pixel string (e.g. `1337px`). Otherwise returns null.\n */\nfunction getPixelValue(input) {\n if (typeof input !== 'number' && input != null) {\n const [value, units] = input.split(cssUnitPattern);\n return !units || units === 'px' ? parseFloat(value) : null;\n }\n return input || null;\n}\n/**\n * Gets a version of an element's bounding `DOMRect` where all the values are rounded down to\n * the nearest pixel. This allows us to account for the cases where there may be sub-pixel\n * deviations in the `DOMRect` returned by the browser (e.g. when zoomed in with a percentage\n * size, see #21350).\n */\nfunction getRoundedBoundingClientRect(clientRect) {\n return {\n top: Math.floor(clientRect.top),\n right: Math.floor(clientRect.right),\n bottom: Math.floor(clientRect.bottom),\n left: Math.floor(clientRect.left),\n width: Math.floor(clientRect.width),\n height: Math.floor(clientRect.height)\n };\n}\n/** Returns whether two `ScrollingVisibility` objects are identical. */\nfunction compareScrollVisibility(a, b) {\n if (a === b) {\n return true;\n }\n return a.isOriginClipped === b.isOriginClipped && a.isOriginOutsideView === b.isOriginOutsideView && a.isOverlayClipped === b.isOverlayClipped && a.isOverlayOutsideView === b.isOverlayOutsideView;\n}\nconst STANDARD_DROPDOWN_BELOW_POSITIONS = [{\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top'\n}, {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom'\n}, {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top'\n}, {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom'\n}];\nconst STANDARD_DROPDOWN_ADJACENT_POSITIONS = [{\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top'\n}, {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'bottom'\n}, {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top'\n}, {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'bottom'\n}];\n\n/** Class to be added to the overlay pane wrapper. */\nconst wrapperClass = 'cdk-global-overlay-wrapper';\n/**\n * A strategy for positioning overlays. Using this strategy, an overlay is given an\n * explicit position relative to the browser's viewport. We use flexbox, instead of\n * transforms, in order to avoid issues with subpixel rendering which can cause the\n * element to become blurry.\n */\nclass GlobalPositionStrategy {\n constructor() {\n this._cssPosition = 'static';\n this._topOffset = '';\n this._bottomOffset = '';\n this._alignItems = '';\n this._xPosition = '';\n this._xOffset = '';\n this._width = '';\n this._height = '';\n this._isDisposed = false;\n }\n attach(overlayRef) {\n const config = overlayRef.getConfig();\n this._overlayRef = overlayRef;\n if (this._width && !config.width) {\n overlayRef.updateSize({\n width: this._width\n });\n }\n if (this._height && !config.height) {\n overlayRef.updateSize({\n height: this._height\n });\n }\n overlayRef.hostElement.classList.add(wrapperClass);\n this._isDisposed = false;\n }\n /**\n * Sets the top position of the overlay. Clears any previously set vertical position.\n * @param value New top offset.\n */\n top(value = '') {\n this._bottomOffset = '';\n this._topOffset = value;\n this._alignItems = 'flex-start';\n return this;\n }\n /**\n * Sets the left position of the overlay. Clears any previously set horizontal position.\n * @param value New left offset.\n */\n left(value = '') {\n this._xOffset = value;\n this._xPosition = 'left';\n return this;\n }\n /**\n * Sets the bottom position of the overlay. Clears any previously set vertical position.\n * @param value New bottom offset.\n */\n bottom(value = '') {\n this._topOffset = '';\n this._bottomOffset = value;\n this._alignItems = 'flex-end';\n return this;\n }\n /**\n * Sets the right position of the overlay. Clears any previously set horizontal position.\n * @param value New right offset.\n */\n right(value = '') {\n this._xOffset = value;\n this._xPosition = 'right';\n return this;\n }\n /**\n * Sets the overlay to the start of the viewport, depending on the overlay direction.\n * This will be to the left in LTR layouts and to the right in RTL.\n * @param offset Offset from the edge of the screen.\n */\n start(value = '') {\n this._xOffset = value;\n this._xPosition = 'start';\n return this;\n }\n /**\n * Sets the overlay to the end of the viewport, depending on the overlay direction.\n * This will be to the right in LTR layouts and to the left in RTL.\n * @param offset Offset from the edge of the screen.\n */\n end(value = '') {\n this._xOffset = value;\n this._xPosition = 'end';\n return this;\n }\n /**\n * Sets the overlay width and clears any previously set width.\n * @param value New width for the overlay\n * @deprecated Pass the `width` through the `OverlayConfig`.\n * @breaking-change 8.0.0\n */\n width(value = '') {\n if (this._overlayRef) {\n this._overlayRef.updateSize({\n width: value\n });\n } else {\n this._width = value;\n }\n return this;\n }\n /**\n * Sets the overlay height and clears any previously set height.\n * @param value New height for the overlay\n * @deprecated Pass the `height` through the `OverlayConfig`.\n * @breaking-change 8.0.0\n */\n height(value = '') {\n if (this._overlayRef) {\n this._overlayRef.updateSize({\n height: value\n });\n } else {\n this._height = value;\n }\n return this;\n }\n /**\n * Centers the overlay horizontally with an optional offset.\n * Clears any previously set horizontal position.\n *\n * @param offset Overlay offset from the horizontal center.\n */\n centerHorizontally(offset = '') {\n this.left(offset);\n this._xPosition = 'center';\n return this;\n }\n /**\n * Centers the overlay vertically with an optional offset.\n * Clears any previously set vertical position.\n *\n * @param offset Overlay offset from the vertical center.\n */\n centerVertically(offset = '') {\n this.top(offset);\n this._alignItems = 'center';\n return this;\n }\n /**\n * Apply the position to the element.\n * @docs-private\n */\n apply() {\n // Since the overlay ref applies the strategy asynchronously, it could\n // have been disposed before it ends up being applied. If that is the\n // case, we shouldn't do anything.\n if (!this._overlayRef || !this._overlayRef.hasAttached()) {\n return;\n }\n const styles = this._overlayRef.overlayElement.style;\n const parentStyles = this._overlayRef.hostElement.style;\n const config = this._overlayRef.getConfig();\n const {\n width,\n height,\n maxWidth,\n maxHeight\n } = config;\n const shouldBeFlushHorizontally = (width === '100%' || width === '100vw') && (!maxWidth || maxWidth === '100%' || maxWidth === '100vw');\n const shouldBeFlushVertically = (height === '100%' || height === '100vh') && (!maxHeight || maxHeight === '100%' || maxHeight === '100vh');\n const xPosition = this._xPosition;\n const xOffset = this._xOffset;\n const isRtl = this._overlayRef.getConfig().direction === 'rtl';\n let marginLeft = '';\n let marginRight = '';\n let justifyContent = '';\n if (shouldBeFlushHorizontally) {\n justifyContent = 'flex-start';\n } else if (xPosition === 'center') {\n justifyContent = 'center';\n if (isRtl) {\n marginRight = xOffset;\n } else {\n marginLeft = xOffset;\n }\n } else if (isRtl) {\n if (xPosition === 'left' || xPosition === 'end') {\n justifyContent = 'flex-end';\n marginLeft = xOffset;\n } else if (xPosition === 'right' || xPosition === 'start') {\n justifyContent = 'flex-start';\n marginRight = xOffset;\n }\n } else if (xPosition === 'left' || xPosition === 'start') {\n justifyContent = 'flex-start';\n marginLeft = xOffset;\n } else if (xPosition === 'right' || xPosition === 'end') {\n justifyContent = 'flex-end';\n marginRight = xOffset;\n }\n styles.position = this._cssPosition;\n styles.marginLeft = shouldBeFlushHorizontally ? '0' : marginLeft;\n styles.marginTop = shouldBeFlushVertically ? '0' : this._topOffset;\n styles.marginBottom = this._bottomOffset;\n styles.marginRight = shouldBeFlushHorizontally ? '0' : marginRight;\n parentStyles.justifyContent = justifyContent;\n parentStyles.alignItems = shouldBeFlushVertically ? 'flex-start' : this._alignItems;\n }\n /**\n * Cleans up the DOM changes from the position strategy.\n * @docs-private\n */\n dispose() {\n if (this._isDisposed || !this._overlayRef) {\n return;\n }\n const styles = this._overlayRef.overlayElement.style;\n const parent = this._overlayRef.hostElement;\n const parentStyles = parent.style;\n parent.classList.remove(wrapperClass);\n parentStyles.justifyContent = parentStyles.alignItems = styles.marginTop = styles.marginBottom = styles.marginLeft = styles.marginRight = styles.position = '';\n this._overlayRef = null;\n this._isDisposed = true;\n }\n}\n\n/** Builder for overlay position strategy. */\nlet OverlayPositionBuilder = /*#__PURE__*/(() => {\n class OverlayPositionBuilder {\n constructor(_viewportRuler, _document, _platform, _overlayContainer) {\n this._viewportRuler = _viewportRuler;\n this._document = _document;\n this._platform = _platform;\n this._overlayContainer = _overlayContainer;\n }\n /**\n * Creates a global position strategy.\n */\n global() {\n return new GlobalPositionStrategy();\n }\n /**\n * Creates a flexible position strategy.\n * @param origin Origin relative to which to position the overlay.\n */\n flexibleConnectedTo(origin) {\n return new FlexibleConnectedPositionStrategy(origin, this._viewportRuler, this._document, this._platform, this._overlayContainer);\n }\n static {\n this.ɵfac = function OverlayPositionBuilder_Factory(t) {\n return new (t || OverlayPositionBuilder)(i0.ɵɵinject(i1.ViewportRuler), i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(i1$1.Platform), i0.ɵɵinject(OverlayContainer));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: OverlayPositionBuilder,\n factory: OverlayPositionBuilder.ɵfac,\n providedIn: 'root'\n });\n }\n }\n return OverlayPositionBuilder;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/** Next overlay unique ID. */\nlet nextUniqueId = 0;\n// Note that Overlay is *not* scoped to the app root because of the ComponentFactoryResolver\n// which needs to be different depending on where OverlayModule is imported.\n/**\n * Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be\n * used as a low-level building block for other components. Dialogs, tooltips, menus,\n * selects, etc. can all be built using overlays. The service should primarily be used by authors\n * of re-usable components rather than developers building end-user applications.\n *\n * An overlay *is* a PortalOutlet, so any kind of Portal can be loaded into one.\n */\nlet Overlay = /*#__PURE__*/(() => {\n class Overlay {\n constructor( /** Scrolling strategies that can be used when creating an overlay. */\n scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, _location, _outsideClickDispatcher, _animationsModuleType) {\n this.scrollStrategies = scrollStrategies;\n this._overlayContainer = _overlayContainer;\n this._componentFactoryResolver = _componentFactoryResolver;\n this._positionBuilder = _positionBuilder;\n this._keyboardDispatcher = _keyboardDispatcher;\n this._injector = _injector;\n this._ngZone = _ngZone;\n this._document = _document;\n this._directionality = _directionality;\n this._location = _location;\n this._outsideClickDispatcher = _outsideClickDispatcher;\n this._animationsModuleType = _animationsModuleType;\n }\n /**\n * Creates an overlay.\n * @param config Configuration applied to the overlay.\n * @returns Reference to the created overlay.\n */\n create(config) {\n const host = this._createHostElement();\n const pane = this._createPaneElement(host);\n const portalOutlet = this._createPortalOutlet(pane);\n const overlayConfig = new OverlayConfig(config);\n overlayConfig.direction = overlayConfig.direction || this._directionality.value;\n return new OverlayRef(portalOutlet, host, pane, overlayConfig, this._ngZone, this._keyboardDispatcher, this._document, this._location, this._outsideClickDispatcher, this._animationsModuleType === 'NoopAnimations', this._injector.get(EnvironmentInjector));\n }\n /**\n * Gets a position builder that can be used, via fluent API,\n * to construct and configure a position strategy.\n * @returns An overlay position builder.\n */\n position() {\n return this._positionBuilder;\n }\n /**\n * Creates the DOM element for an overlay and appends it to the overlay container.\n * @returns Newly-created pane element\n */\n _createPaneElement(host) {\n const pane = this._document.createElement('div');\n pane.id = `cdk-overlay-${nextUniqueId++}`;\n pane.classList.add('cdk-overlay-pane');\n host.appendChild(pane);\n return pane;\n }\n /**\n * Creates the host element that wraps around an overlay\n * and can be used for advanced positioning.\n * @returns Newly-create host element.\n */\n _createHostElement() {\n const host = this._document.createElement('div');\n this._overlayContainer.getContainerElement().appendChild(host);\n return host;\n }\n /**\n * Create a DomPortalOutlet into which the overlay content can be loaded.\n * @param pane The DOM element to turn into a portal outlet.\n * @returns A portal outlet for the given DOM element.\n */\n _createPortalOutlet(pane) {\n // We have to resolve the ApplicationRef later in order to allow people\n // to use overlay-based providers during app initialization.\n if (!this._appRef) {\n this._appRef = this._injector.get(ApplicationRef);\n }\n return new DomPortalOutlet(pane, this._componentFactoryResolver, this._appRef, this._injector, this._document);\n }\n static {\n this.ɵfac = function Overlay_Factory(t) {\n return new (t || Overlay)(i0.ɵɵinject(ScrollStrategyOptions), i0.ɵɵinject(OverlayContainer), i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(OverlayPositionBuilder), i0.ɵɵinject(OverlayKeyboardDispatcher), i0.ɵɵinject(i0.Injector), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(i5.Directionality), i0.ɵɵinject(i6.Location), i0.ɵɵinject(OverlayOutsideClickDispatcher), i0.ɵɵinject(ANIMATION_MODULE_TYPE, 8));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: Overlay,\n factory: Overlay.ɵfac,\n providedIn: 'root'\n });\n }\n }\n return Overlay;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/** Default set of positions for the overlay. Follows the behavior of a dropdown. */\nconst defaultPositionList = [{\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top'\n}, {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom'\n}, {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom'\n}, {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top'\n}];\n/** Injection token that determines the scroll handling while the connected overlay is open. */\nconst CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY = /*#__PURE__*/new InjectionToken('cdk-connected-overlay-scroll-strategy', {\n providedIn: 'root',\n factory: () => {\n const overlay = inject(Overlay);\n return () => overlay.scrollStrategies.reposition();\n }\n});\n/**\n * Directive applied to an element to make it usable as an origin for an Overlay using a\n * ConnectedPositionStrategy.\n */\nlet CdkOverlayOrigin = /*#__PURE__*/(() => {\n class CdkOverlayOrigin {\n constructor( /** Reference to the element on which the directive is applied. */\n elementRef) {\n this.elementRef = elementRef;\n }\n static {\n this.ɵfac = function CdkOverlayOrigin_Factory(t) {\n return new (t || CdkOverlayOrigin)(i0.ɵɵdirectiveInject(i0.ElementRef));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CdkOverlayOrigin,\n selectors: [[\"\", \"cdk-overlay-origin\", \"\"], [\"\", \"overlay-origin\", \"\"], [\"\", \"cdkOverlayOrigin\", \"\"]],\n exportAs: [\"cdkOverlayOrigin\"],\n standalone: true\n });\n }\n }\n return CdkOverlayOrigin;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Directive to facilitate declarative creation of an\n * Overlay using a FlexibleConnectedPositionStrategy.\n */\nlet CdkConnectedOverlay = /*#__PURE__*/(() => {\n class CdkConnectedOverlay {\n /** The offset in pixels for the overlay connection point on the x-axis */\n get offsetX() {\n return this._offsetX;\n }\n set offsetX(offsetX) {\n this._offsetX = offsetX;\n if (this._position) {\n this._updatePositionStrategy(this._position);\n }\n }\n /** The offset in pixels for the overlay connection point on the y-axis */\n get offsetY() {\n return this._offsetY;\n }\n set offsetY(offsetY) {\n this._offsetY = offsetY;\n if (this._position) {\n this._updatePositionStrategy(this._position);\n }\n }\n /** Whether the overlay should be disposed of when the user goes backwards/forwards in history. */\n get disposeOnNavigation() {\n return this._disposeOnNavigation;\n }\n set disposeOnNavigation(value) {\n this._disposeOnNavigation = value;\n }\n // TODO(jelbourn): inputs for size, scroll behavior, animation, etc.\n constructor(_overlay, templateRef, viewContainerRef, scrollStrategyFactory, _dir) {\n this._overlay = _overlay;\n this._dir = _dir;\n this._backdropSubscription = Subscription.EMPTY;\n this._attachSubscription = Subscription.EMPTY;\n this._detachSubscription = Subscription.EMPTY;\n this._positionSubscription = Subscription.EMPTY;\n this._disposeOnNavigation = false;\n this._ngZone = inject(NgZone);\n /** Margin between the overlay and the viewport edges. */\n this.viewportMargin = 0;\n /** Whether the overlay is open. */\n this.open = false;\n /** Whether the overlay can be closed by user interaction. */\n this.disableClose = false;\n /** Whether or not the overlay should attach a backdrop. */\n this.hasBackdrop = false;\n /** Whether or not the overlay should be locked when scrolling. */\n this.lockPosition = false;\n /** Whether the overlay's width and height can be constrained to fit within the viewport. */\n this.flexibleDimensions = false;\n /** Whether the overlay can grow after the initial open when flexible positioning is turned on. */\n this.growAfterOpen = false;\n /** Whether the overlay can be pushed on-screen if none of the provided positions fit. */\n this.push = false;\n /** Event emitted when the backdrop is clicked. */\n this.backdropClick = new EventEmitter();\n /** Event emitted when the position has changed. */\n this.positionChange = new EventEmitter();\n /** Event emitted when the overlay has been attached. */\n this.attach = new EventEmitter();\n /** Event emitted when the overlay has been detached. */\n this.detach = new EventEmitter();\n /** Emits when there are keyboard events that are targeted at the overlay. */\n this.overlayKeydown = new EventEmitter();\n /** Emits when there are mouse outside click events that are targeted at the overlay. */\n this.overlayOutsideClick = new EventEmitter();\n this._templatePortal = new TemplatePortal(templateRef, viewContainerRef);\n this._scrollStrategyFactory = scrollStrategyFactory;\n this.scrollStrategy = this._scrollStrategyFactory();\n }\n /** The associated overlay reference. */\n get overlayRef() {\n return this._overlayRef;\n }\n /** The element's layout direction. */\n get dir() {\n return this._dir ? this._dir.value : 'ltr';\n }\n ngOnDestroy() {\n this._attachSubscription.unsubscribe();\n this._detachSubscription.unsubscribe();\n this._backdropSubscription.unsubscribe();\n this._positionSubscription.unsubscribe();\n if (this._overlayRef) {\n this._overlayRef.dispose();\n }\n }\n ngOnChanges(changes) {\n if (this._position) {\n this._updatePositionStrategy(this._position);\n this._overlayRef.updateSize({\n width: this.width,\n minWidth: this.minWidth,\n height: this.height,\n minHeight: this.minHeight\n });\n if (changes['origin'] && this.open) {\n this._position.apply();\n }\n }\n if (changes['open']) {\n this.open ? this._attachOverlay() : this._detachOverlay();\n }\n }\n /** Creates an overlay */\n _createOverlay() {\n if (!this.positions || !this.positions.length) {\n this.positions = defaultPositionList;\n }\n const overlayRef = this._overlayRef = this._overlay.create(this._buildConfig());\n this._attachSubscription = overlayRef.attachments().subscribe(() => this.attach.emit());\n this._detachSubscription = overlayRef.detachments().subscribe(() => this.detach.emit());\n overlayRef.keydownEvents().subscribe(event => {\n this.overlayKeydown.next(event);\n if (event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event)) {\n event.preventDefault();\n this._detachOverlay();\n }\n });\n this._overlayRef.outsidePointerEvents().subscribe(event => {\n const origin = this._getOriginElement();\n const target = _getEventTarget(event);\n if (!origin || origin !== target && !origin.contains(target)) {\n this.overlayOutsideClick.next(event);\n }\n });\n }\n /** Builds the overlay config based on the directive's inputs */\n _buildConfig() {\n const positionStrategy = this._position = this.positionStrategy || this._createPositionStrategy();\n const overlayConfig = new OverlayConfig({\n direction: this._dir,\n positionStrategy,\n scrollStrategy: this.scrollStrategy,\n hasBackdrop: this.hasBackdrop,\n disposeOnNavigation: this.disposeOnNavigation\n });\n if (this.width || this.width === 0) {\n overlayConfig.width = this.width;\n }\n if (this.height || this.height === 0) {\n overlayConfig.height = this.height;\n }\n if (this.minWidth || this.minWidth === 0) {\n overlayConfig.minWidth = this.minWidth;\n }\n if (this.minHeight || this.minHeight === 0) {\n overlayConfig.minHeight = this.minHeight;\n }\n if (this.backdropClass) {\n overlayConfig.backdropClass = this.backdropClass;\n }\n if (this.panelClass) {\n overlayConfig.panelClass = this.panelClass;\n }\n return overlayConfig;\n }\n /** Updates the state of a position strategy, based on the values of the directive inputs. */\n _updatePositionStrategy(positionStrategy) {\n const positions = this.positions.map(currentPosition => ({\n originX: currentPosition.originX,\n originY: currentPosition.originY,\n overlayX: currentPosition.overlayX,\n overlayY: currentPosition.overlayY,\n offsetX: currentPosition.offsetX || this.offsetX,\n offsetY: currentPosition.offsetY || this.offsetY,\n panelClass: currentPosition.panelClass || undefined\n }));\n return positionStrategy.setOrigin(this._getOrigin()).withPositions(positions).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector);\n }\n /** Returns the position strategy of the overlay to be set on the overlay config */\n _createPositionStrategy() {\n const strategy = this._overlay.position().flexibleConnectedTo(this._getOrigin());\n this._updatePositionStrategy(strategy);\n return strategy;\n }\n _getOrigin() {\n if (this.origin instanceof CdkOverlayOrigin) {\n return this.origin.elementRef;\n } else {\n return this.origin;\n }\n }\n _getOriginElement() {\n if (this.origin instanceof CdkOverlayOrigin) {\n return this.origin.elementRef.nativeElement;\n }\n if (this.origin instanceof ElementRef) {\n return this.origin.nativeElement;\n }\n if (typeof Element !== 'undefined' && this.origin instanceof Element) {\n return this.origin;\n }\n return null;\n }\n /** Attaches the overlay and subscribes to backdrop clicks if backdrop exists */\n _attachOverlay() {\n if (!this._overlayRef) {\n this._createOverlay();\n } else {\n // Update the overlay size, in case the directive's inputs have changed\n this._overlayRef.getConfig().hasBackdrop = this.hasBackdrop;\n }\n if (!this._overlayRef.hasAttached()) {\n this._overlayRef.attach(this._templatePortal);\n }\n if (this.hasBackdrop) {\n this._backdropSubscription = this._overlayRef.backdropClick().subscribe(event => {\n this.backdropClick.emit(event);\n });\n } else {\n this._backdropSubscription.unsubscribe();\n }\n this._positionSubscription.unsubscribe();\n // Only subscribe to `positionChanges` if requested, because putting\n // together all the information for it can be expensive.\n if (this.positionChange.observers.length > 0) {\n this._positionSubscription = this._position.positionChanges.pipe(takeWhile(() => this.positionChange.observers.length > 0)).subscribe(position => {\n this._ngZone.run(() => this.positionChange.emit(position));\n if (this.positionChange.observers.length === 0) {\n this._positionSubscription.unsubscribe();\n }\n });\n }\n }\n /** Detaches the overlay and unsubscribes to backdrop clicks if backdrop exists */\n _detachOverlay() {\n if (this._overlayRef) {\n this._overlayRef.detach();\n }\n this._backdropSubscription.unsubscribe();\n this._positionSubscription.unsubscribe();\n }\n static {\n this.ɵfac = function CdkConnectedOverlay_Factory(t) {\n return new (t || CdkConnectedOverlay)(i0.ɵɵdirectiveInject(Overlay), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY), i0.ɵɵdirectiveInject(i5.Directionality, 8));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CdkConnectedOverlay,\n selectors: [[\"\", \"cdk-connected-overlay\", \"\"], [\"\", \"connected-overlay\", \"\"], [\"\", \"cdkConnectedOverlay\", \"\"]],\n inputs: {\n origin: [0, \"cdkConnectedOverlayOrigin\", \"origin\"],\n positions: [0, \"cdkConnectedOverlayPositions\", \"positions\"],\n positionStrategy: [0, \"cdkConnectedOverlayPositionStrategy\", \"positionStrategy\"],\n offsetX: [0, \"cdkConnectedOverlayOffsetX\", \"offsetX\"],\n offsetY: [0, \"cdkConnectedOverlayOffsetY\", \"offsetY\"],\n width: [0, \"cdkConnectedOverlayWidth\", \"width\"],\n height: [0, \"cdkConnectedOverlayHeight\", \"height\"],\n minWidth: [0, \"cdkConnectedOverlayMinWidth\", \"minWidth\"],\n minHeight: [0, \"cdkConnectedOverlayMinHeight\", \"minHeight\"],\n backdropClass: [0, \"cdkConnectedOverlayBackdropClass\", \"backdropClass\"],\n panelClass: [0, \"cdkConnectedOverlayPanelClass\", \"panelClass\"],\n viewportMargin: [0, \"cdkConnectedOverlayViewportMargin\", \"viewportMargin\"],\n scrollStrategy: [0, \"cdkConnectedOverlayScrollStrategy\", \"scrollStrategy\"],\n open: [0, \"cdkConnectedOverlayOpen\", \"open\"],\n disableClose: [0, \"cdkConnectedOverlayDisableClose\", \"disableClose\"],\n transformOriginSelector: [0, \"cdkConnectedOverlayTransformOriginOn\", \"transformOriginSelector\"],\n hasBackdrop: [2, \"cdkConnectedOverlayHasBackdrop\", \"hasBackdrop\", booleanAttribute],\n lockPosition: [2, \"cdkConnectedOverlayLockPosition\", \"lockPosition\", booleanAttribute],\n flexibleDimensions: [2, \"cdkConnectedOverlayFlexibleDimensions\", \"flexibleDimensions\", booleanAttribute],\n growAfterOpen: [2, \"cdkConnectedOverlayGrowAfterOpen\", \"growAfterOpen\", booleanAttribute],\n push: [2, \"cdkConnectedOverlayPush\", \"push\", booleanAttribute],\n disposeOnNavigation: [2, \"cdkConnectedOverlayDisposeOnNavigation\", \"disposeOnNavigation\", booleanAttribute]\n },\n outputs: {\n backdropClick: \"backdropClick\",\n positionChange: \"positionChange\",\n attach: \"attach\",\n detach: \"detach\",\n overlayKeydown: \"overlayKeydown\",\n overlayOutsideClick: \"overlayOutsideClick\"\n },\n exportAs: [\"cdkConnectedOverlay\"],\n standalone: true,\n features: [i0.ɵɵInputTransformsFeature, i0.ɵɵNgOnChangesFeature]\n });\n }\n }\n return CdkConnectedOverlay;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/** @docs-private */\nfunction CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {\n return () => overlay.scrollStrategies.reposition();\n}\n/** @docs-private */\nconst CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER = {\n provide: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY,\n deps: [Overlay],\n useFactory: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY\n};\nlet OverlayModule = /*#__PURE__*/(() => {\n class OverlayModule {\n static {\n this.ɵfac = function OverlayModule_Factory(t) {\n return new (t || OverlayModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: OverlayModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [Overlay, CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER],\n imports: [BidiModule, PortalModule, ScrollingModule, ScrollingModule]\n });\n }\n }\n return OverlayModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Alternative to OverlayContainer that supports correct displaying of overlay elements in\n * Fullscreen mode\n * https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen\n *\n * Should be provided in the root component.\n */\nlet FullscreenOverlayContainer = /*#__PURE__*/(() => {\n class FullscreenOverlayContainer extends OverlayContainer {\n constructor(_document, platform) {\n super(_document, platform);\n }\n ngOnDestroy() {\n super.ngOnDestroy();\n if (this._fullScreenEventName && this._fullScreenListener) {\n this._document.removeEventListener(this._fullScreenEventName, this._fullScreenListener);\n }\n }\n _createContainer() {\n super._createContainer();\n this._adjustParentForFullscreenChange();\n this._addFullscreenChangeListener(() => this._adjustParentForFullscreenChange());\n }\n _adjustParentForFullscreenChange() {\n if (!this._containerElement) {\n return;\n }\n const fullscreenElement = this.getFullscreenElement();\n const parent = fullscreenElement || this._document.body;\n parent.appendChild(this._containerElement);\n }\n _addFullscreenChangeListener(fn) {\n const eventName = this._getEventName();\n if (eventName) {\n if (this._fullScreenListener) {\n this._document.removeEventListener(eventName, this._fullScreenListener);\n }\n this._document.addEventListener(eventName, fn);\n this._fullScreenListener = fn;\n }\n }\n _getEventName() {\n if (!this._fullScreenEventName) {\n const _document = this._document;\n if (_document.fullscreenEnabled) {\n this._fullScreenEventName = 'fullscreenchange';\n } else if (_document.webkitFullscreenEnabled) {\n this._fullScreenEventName = 'webkitfullscreenchange';\n } else if (_document.mozFullScreenEnabled) {\n this._fullScreenEventName = 'mozfullscreenchange';\n } else if (_document.msFullscreenEnabled) {\n this._fullScreenEventName = 'MSFullscreenChange';\n }\n }\n return this._fullScreenEventName;\n }\n /**\n * When the page is put into fullscreen mode, a specific element is specified.\n * Only that element and its children are visible when in fullscreen mode.\n */\n getFullscreenElement() {\n const _document = this._document;\n return _document.fullscreenElement || _document.webkitFullscreenElement || _document.mozFullScreenElement || _document.msFullscreenElement || null;\n }\n static {\n this.ɵfac = function FullscreenOverlayContainer_Factory(t) {\n return new (t || FullscreenOverlayContainer)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(i1$1.Platform));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: FullscreenOverlayContainer,\n factory: FullscreenOverlayContainer.ɵfac,\n providedIn: 'root'\n });\n }\n }\n return FullscreenOverlayContainer;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BlockScrollStrategy, CdkConnectedOverlay, CdkOverlayOrigin, CloseScrollStrategy, ConnectedOverlayPositionChange, ConnectionPositionPair, FlexibleConnectedPositionStrategy, FullscreenOverlayContainer, GlobalPositionStrategy, NoopScrollStrategy, Overlay, OverlayConfig, OverlayContainer, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlayPositionBuilder, OverlayRef, RepositionScrollStrategy, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollStrategyOptions, ScrollingVisibility, validateHorizontalPosition, validateVerticalPosition };\n","import * as i1 from '@angular/cdk/a11y';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport * as i1$1 from '@angular/cdk/overlay';\nimport { Overlay, OverlayConfig, OverlayRef, OverlayModule } from '@angular/cdk/overlay';\nimport { Platform, _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';\nimport { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';\nimport { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { inject, ChangeDetectorRef, Injector, afterNextRender, Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Inject, ViewChild, InjectionToken, TemplateRef, Injectable, SkipSelf, NgModule } from '@angular/core';\nimport { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';\nimport { Subject, defer, of } from 'rxjs';\nimport { Directionality } from '@angular/cdk/bidi';\nimport { startWith } from 'rxjs/operators';\n\n/** Configuration for opening a modal dialog. */\nfunction CdkDialogContainer_ng_template_0_Template(rf, ctx) {}\nclass DialogConfig {\n constructor() {\n /** The ARIA role of the dialog element. */\n this.role = 'dialog';\n /** Optional CSS class or classes applied to the overlay panel. */\n this.panelClass = '';\n /** Whether the dialog has a backdrop. */\n this.hasBackdrop = true;\n /** Optional CSS class or classes applied to the overlay backdrop. */\n this.backdropClass = '';\n /** Whether the dialog closes with the escape key or pointer events outside the panel element. */\n this.disableClose = false;\n /** Width of the dialog. */\n this.width = '';\n /** Height of the dialog. */\n this.height = '';\n /** Data being injected into the child component. */\n this.data = null;\n /** ID of the element that describes the dialog. */\n this.ariaDescribedBy = null;\n /** ID of the element that labels the dialog. */\n this.ariaLabelledBy = null;\n /** Dialog label applied via `aria-label` */\n this.ariaLabel = null;\n /** Whether this is a modal dialog. Used to set the `aria-modal` attribute. */\n this.ariaModal = true;\n /**\n * Where the dialog should focus on open.\n * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or\n * AutoFocusTarget instead.\n */\n this.autoFocus = 'first-tabbable';\n /**\n * Whether the dialog should restore focus to the previously-focused element upon closing.\n * Has the following behavior based on the type that is passed in:\n * - `boolean` - when true, will return focus to the element that was focused before the dialog\n * was opened, otherwise won't restore focus at all.\n * - `string` - focus will be restored to the first element that matches the CSS selector.\n * - `HTMLElement` - focus will be restored to the specific element.\n */\n this.restoreFocus = true;\n /**\n * Whether the dialog should close when the user navigates backwards or forwards through browser\n * history. This does not apply to navigation via anchor element unless using URL-hash based\n * routing (`HashLocationStrategy` in the Angular router).\n */\n this.closeOnNavigation = true;\n /**\n * Whether the dialog should close when the dialog service is destroyed. This is useful if\n * another service is wrapping the dialog and is managing the destruction instead.\n */\n this.closeOnDestroy = true;\n /**\n * Whether the dialog should close when the underlying overlay is detached. This is useful if\n * another service is wrapping the dialog and is managing the destruction instead. E.g. an\n * external detachment can happen as a result of a scroll strategy triggering it or when the\n * browser location changes.\n */\n this.closeOnOverlayDetachments = true;\n }\n}\nfunction throwDialogContentAlreadyAttachedError() {\n throw Error('Attempting to attach dialog content after content is already attached');\n}\n/**\n * Internal component that wraps user-provided dialog content.\n * @docs-private\n */\nlet CdkDialogContainer = /*#__PURE__*/(() => {\n class CdkDialogContainer extends BasePortalOutlet {\n constructor(_elementRef, _focusTrapFactory, _document, _config, _interactivityChecker, _ngZone, _overlayRef, _focusMonitor) {\n super();\n this._elementRef = _elementRef;\n this._focusTrapFactory = _focusTrapFactory;\n this._config = _config;\n this._interactivityChecker = _interactivityChecker;\n this._ngZone = _ngZone;\n this._overlayRef = _overlayRef;\n this._focusMonitor = _focusMonitor;\n this._platform = inject(Platform);\n /** The class that traps and manages focus within the dialog. */\n this._focusTrap = null;\n /** Element that was focused before the dialog was opened. Save this to restore upon close. */\n this._elementFocusedBeforeDialogWasOpened = null;\n /**\n * Type of interaction that led to the dialog being closed. This is used to determine\n * whether the focus style will be applied when returning focus to its original location\n * after the dialog is closed.\n */\n this._closeInteractionType = null;\n /**\n * Queue of the IDs of the dialog's label element, based on their definition order. The first\n * ID will be used as the `aria-labelledby` value. We use a queue here to handle the case\n * where there are two or more titles in the DOM at a time and the first one is destroyed while\n * the rest are present.\n */\n this._ariaLabelledByQueue = [];\n this._changeDetectorRef = inject(ChangeDetectorRef);\n this._injector = inject(Injector);\n this._isDestroyed = false;\n /**\n * Attaches a DOM portal to the dialog container.\n * @param portal Portal to be attached.\n * @deprecated To be turned into a method.\n * @breaking-change 10.0.0\n */\n this.attachDomPortal = portal => {\n if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwDialogContentAlreadyAttachedError();\n }\n const result = this._portalOutlet.attachDomPortal(portal);\n this._contentAttached();\n return result;\n };\n this._document = _document;\n if (this._config.ariaLabelledBy) {\n this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);\n }\n }\n _addAriaLabelledBy(id) {\n this._ariaLabelledByQueue.push(id);\n this._changeDetectorRef.markForCheck();\n }\n _removeAriaLabelledBy(id) {\n const index = this._ariaLabelledByQueue.indexOf(id);\n if (index > -1) {\n this._ariaLabelledByQueue.splice(index, 1);\n this._changeDetectorRef.markForCheck();\n }\n }\n _contentAttached() {\n this._initializeFocusTrap();\n this._handleBackdropClicks();\n this._captureInitialFocus();\n }\n /**\n * Can be used by child classes to customize the initial focus\n * capturing behavior (e.g. if it's tied to an animation).\n */\n _captureInitialFocus() {\n this._trapFocus();\n }\n ngOnDestroy() {\n this._isDestroyed = true;\n this._restoreFocus();\n }\n /**\n * Attach a ComponentPortal as content to this dialog container.\n * @param portal Portal to be attached as the dialog content.\n */\n attachComponentPortal(portal) {\n if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwDialogContentAlreadyAttachedError();\n }\n const result = this._portalOutlet.attachComponentPortal(portal);\n this._contentAttached();\n return result;\n }\n /**\n * Attach a TemplatePortal as content to this dialog container.\n * @param portal Portal to be attached as the dialog content.\n */\n attachTemplatePortal(portal) {\n if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwDialogContentAlreadyAttachedError();\n }\n const result = this._portalOutlet.attachTemplatePortal(portal);\n this._contentAttached();\n return result;\n }\n // TODO(crisbeto): this shouldn't be exposed, but there are internal references to it.\n /** Captures focus if it isn't already inside the dialog. */\n _recaptureFocus() {\n if (!this._containsFocus()) {\n this._trapFocus();\n }\n }\n /**\n * Focuses the provided element. If the element is not focusable, it will add a tabIndex\n * attribute to forcefully focus it. The attribute is removed after focus is moved.\n * @param element The element to focus.\n */\n _forceFocus(element, options) {\n if (!this._interactivityChecker.isFocusable(element)) {\n element.tabIndex = -1;\n // The tabindex attribute should be removed to avoid navigating to that element again\n this._ngZone.runOutsideAngular(() => {\n const callback = () => {\n element.removeEventListener('blur', callback);\n element.removeEventListener('mousedown', callback);\n element.removeAttribute('tabindex');\n };\n element.addEventListener('blur', callback);\n element.addEventListener('mousedown', callback);\n });\n }\n element.focus(options);\n }\n /**\n * Focuses the first element that matches the given selector within the focus trap.\n * @param selector The CSS selector for the element to set focus to.\n */\n _focusByCssSelector(selector, options) {\n let elementToFocus = this._elementRef.nativeElement.querySelector(selector);\n if (elementToFocus) {\n this._forceFocus(elementToFocus, options);\n }\n }\n /**\n * Moves the focus inside the focus trap. When autoFocus is not set to 'dialog', if focus\n * cannot be moved then focus will go to the dialog container.\n */\n _trapFocus() {\n if (this._isDestroyed) {\n return;\n }\n // If were to attempt to focus immediately, then the content of the dialog would not yet be\n // ready in instances where change detection has to run first. To deal with this, we simply\n // wait until after the next render.\n afterNextRender(() => {\n const element = this._elementRef.nativeElement;\n switch (this._config.autoFocus) {\n case false:\n case 'dialog':\n // Ensure that focus is on the dialog container. It's possible that a different\n // component tried to move focus while the open animation was running. See:\n // https://github.com/angular/components/issues/16215. Note that we only want to do this\n // if the focus isn't inside the dialog already, because it's possible that the consumer\n // turned off `autoFocus` in order to move focus themselves.\n if (!this._containsFocus()) {\n element.focus();\n }\n break;\n case true:\n case 'first-tabbable':\n const focusedSuccessfully = this._focusTrap?.focusInitialElement();\n // If we weren't able to find a focusable element in the dialog, then focus the dialog\n // container instead.\n if (!focusedSuccessfully) {\n this._focusDialogContainer();\n }\n break;\n case 'first-heading':\n this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role=\"heading\"]');\n break;\n default:\n this._focusByCssSelector(this._config.autoFocus);\n break;\n }\n }, {\n injector: this._injector\n });\n }\n /** Restores focus to the element that was focused before the dialog opened. */\n _restoreFocus() {\n const focusConfig = this._config.restoreFocus;\n let focusTargetElement = null;\n if (typeof focusConfig === 'string') {\n focusTargetElement = this._document.querySelector(focusConfig);\n } else if (typeof focusConfig === 'boolean') {\n focusTargetElement = focusConfig ? this._elementFocusedBeforeDialogWasOpened : null;\n } else if (focusConfig) {\n focusTargetElement = focusConfig;\n }\n // We need the extra check, because IE can set the `activeElement` to null in some cases.\n if (this._config.restoreFocus && focusTargetElement && typeof focusTargetElement.focus === 'function') {\n const activeElement = _getFocusedElementPierceShadowDom();\n const element = this._elementRef.nativeElement;\n // Make sure that focus is still inside the dialog or is on the body (usually because a\n // non-focusable element like the backdrop was clicked) before moving it. It's possible that\n // the consumer moved it themselves before the animation was done, in which case we shouldn't\n // do anything.\n if (!activeElement || activeElement === this._document.body || activeElement === element || element.contains(activeElement)) {\n if (this._focusMonitor) {\n this._focusMonitor.focusVia(focusTargetElement, this._closeInteractionType);\n this._closeInteractionType = null;\n } else {\n focusTargetElement.focus();\n }\n }\n }\n if (this._focusTrap) {\n this._focusTrap.destroy();\n }\n }\n /** Focuses the dialog container. */\n _focusDialogContainer() {\n // Note that there is no focus method when rendering on the server.\n if (this._elementRef.nativeElement.focus) {\n this._elementRef.nativeElement.focus();\n }\n }\n /** Returns whether focus is inside the dialog. */\n _containsFocus() {\n const element = this._elementRef.nativeElement;\n const activeElement = _getFocusedElementPierceShadowDom();\n return element === activeElement || element.contains(activeElement);\n }\n /** Sets up the focus trap. */\n _initializeFocusTrap() {\n if (this._platform.isBrowser) {\n this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);\n // Save the previously focused element. This element will be re-focused\n // when the dialog closes.\n if (this._document) {\n this._elementFocusedBeforeDialogWasOpened = _getFocusedElementPierceShadowDom();\n }\n }\n }\n /** Sets up the listener that handles clicks on the dialog backdrop. */\n _handleBackdropClicks() {\n // Clicking on the backdrop will move focus out of dialog.\n // Recapture it if closing via the backdrop is disabled.\n this._overlayRef.backdropClick().subscribe(() => {\n if (this._config.disableClose) {\n this._recaptureFocus();\n }\n });\n }\n static {\n this.ɵfac = function CdkDialogContainer_Factory(t) {\n return new (t || CdkDialogContainer)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.FocusTrapFactory), i0.ɵɵdirectiveInject(DOCUMENT, 8), i0.ɵɵdirectiveInject(DialogConfig), i0.ɵɵdirectiveInject(i1.InteractivityChecker), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.OverlayRef), i0.ɵɵdirectiveInject(i1.FocusMonitor));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: CdkDialogContainer,\n selectors: [[\"cdk-dialog-container\"]],\n viewQuery: function CdkDialogContainer_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(CdkPortalOutlet, 7);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._portalOutlet = _t.first);\n }\n },\n hostAttrs: [\"tabindex\", \"-1\", 1, \"cdk-dialog-container\"],\n hostVars: 6,\n hostBindings: function CdkDialogContainer_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵattribute(\"id\", ctx._config.id || null)(\"role\", ctx._config.role)(\"aria-modal\", ctx._config.ariaModal)(\"aria-labelledby\", ctx._config.ariaLabel ? null : ctx._ariaLabelledByQueue[0])(\"aria-label\", ctx._config.ariaLabel)(\"aria-describedby\", ctx._config.ariaDescribedBy || null);\n }\n },\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 1,\n vars: 0,\n consts: [[\"cdkPortalOutlet\", \"\"]],\n template: function CdkDialogContainer_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, CdkDialogContainer_ng_template_0_Template, 0, 0, \"ng-template\", 0);\n }\n },\n dependencies: [CdkPortalOutlet],\n styles: [\".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\"],\n encapsulation: 2\n });\n }\n }\n return CdkDialogContainer;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Reference to a dialog opened via the Dialog service.\n */\nclass DialogRef {\n constructor(overlayRef, config) {\n this.overlayRef = overlayRef;\n this.config = config;\n /** Emits when the dialog has been closed. */\n this.closed = new Subject();\n this.disableClose = config.disableClose;\n this.backdropClick = overlayRef.backdropClick();\n this.keydownEvents = overlayRef.keydownEvents();\n this.outsidePointerEvents = overlayRef.outsidePointerEvents();\n this.id = config.id; // By the time the dialog is created we are guaranteed to have an ID.\n this.keydownEvents.subscribe(event => {\n if (event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event)) {\n event.preventDefault();\n this.close(undefined, {\n focusOrigin: 'keyboard'\n });\n }\n });\n this.backdropClick.subscribe(() => {\n if (!this.disableClose) {\n this.close(undefined, {\n focusOrigin: 'mouse'\n });\n }\n });\n this._detachSubscription = overlayRef.detachments().subscribe(() => {\n // Check specifically for `false`, because we want `undefined` to be treated like `true`.\n if (config.closeOnOverlayDetachments !== false) {\n this.close();\n }\n });\n }\n /**\n * Close the dialog.\n * @param result Optional result to return to the dialog opener.\n * @param options Additional options to customize the closing behavior.\n */\n close(result, options) {\n if (this.containerInstance) {\n const closedSubject = this.closed;\n this.containerInstance._closeInteractionType = options?.focusOrigin || 'program';\n // Drop the detach subscription first since it can be triggered by the\n // `dispose` call and override the result of this closing sequence.\n this._detachSubscription.unsubscribe();\n this.overlayRef.dispose();\n closedSubject.next(result);\n closedSubject.complete();\n this.componentInstance = this.containerInstance = null;\n }\n }\n /** Updates the position of the dialog based on the current position strategy. */\n updatePosition() {\n this.overlayRef.updatePosition();\n return this;\n }\n /**\n * Updates the dialog's width and height.\n * @param width New width of the dialog.\n * @param height New height of the dialog.\n */\n updateSize(width = '', height = '') {\n this.overlayRef.updateSize({\n width,\n height\n });\n return this;\n }\n /** Add a CSS class or an array of classes to the overlay pane. */\n addPanelClass(classes) {\n this.overlayRef.addPanelClass(classes);\n return this;\n }\n /** Remove a CSS class or an array of classes from the overlay pane. */\n removePanelClass(classes) {\n this.overlayRef.removePanelClass(classes);\n return this;\n }\n}\n\n/** Injection token for the Dialog's ScrollStrategy. */\nconst DIALOG_SCROLL_STRATEGY = /*#__PURE__*/new InjectionToken('DialogScrollStrategy', {\n providedIn: 'root',\n factory: () => {\n const overlay = inject(Overlay);\n return () => overlay.scrollStrategies.block();\n }\n});\n/** Injection token for the Dialog's Data. */\nconst DIALOG_DATA = /*#__PURE__*/new InjectionToken('DialogData');\n/** Injection token that can be used to provide default options for the dialog module. */\nconst DEFAULT_DIALOG_CONFIG = /*#__PURE__*/new InjectionToken('DefaultDialogConfig');\n/**\n * @docs-private\n * @deprecated No longer used. To be removed.\n * @breaking-change 19.0.0\n */\nfunction DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {\n return () => overlay.scrollStrategies.block();\n}\n/**\n * @docs-private\n * @deprecated No longer used. To be removed.\n * @breaking-change 19.0.0\n */\nconst DIALOG_SCROLL_STRATEGY_PROVIDER = {\n provide: DIALOG_SCROLL_STRATEGY,\n deps: [Overlay],\n useFactory: DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY\n};\n\n/** Unique id for the created dialog. */\nlet uniqueId = 0;\nlet Dialog = /*#__PURE__*/(() => {\n class Dialog {\n /** Keeps track of the currently-open dialogs. */\n get openDialogs() {\n return this._parentDialog ? this._parentDialog.openDialogs : this._openDialogsAtThisLevel;\n }\n /** Stream that emits when a dialog has been opened. */\n get afterOpened() {\n return this._parentDialog ? this._parentDialog.afterOpened : this._afterOpenedAtThisLevel;\n }\n constructor(_overlay, _injector, _defaultOptions, _parentDialog, _overlayContainer, scrollStrategy) {\n this._overlay = _overlay;\n this._injector = _injector;\n this._defaultOptions = _defaultOptions;\n this._parentDialog = _parentDialog;\n this._overlayContainer = _overlayContainer;\n this._openDialogsAtThisLevel = [];\n this._afterAllClosedAtThisLevel = new Subject();\n this._afterOpenedAtThisLevel = new Subject();\n this._ariaHiddenElements = new Map();\n /**\n * Stream that emits when all open dialog have finished closing.\n * Will emit on subscribe if there are no open dialogs to begin with.\n */\n this.afterAllClosed = defer(() => this.openDialogs.length ? this._getAfterAllClosed() : this._getAfterAllClosed().pipe(startWith(undefined)));\n this._scrollStrategy = scrollStrategy;\n }\n open(componentOrTemplateRef, config) {\n const defaults = this._defaultOptions || new DialogConfig();\n config = {\n ...defaults,\n ...config\n };\n config.id = config.id || `cdk-dialog-${uniqueId++}`;\n if (config.id && this.getDialogById(config.id) && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error(`Dialog with id \"${config.id}\" exists already. The dialog id must be unique.`);\n }\n const overlayConfig = this._getOverlayConfig(config);\n const overlayRef = this._overlay.create(overlayConfig);\n const dialogRef = new DialogRef(overlayRef, config);\n const dialogContainer = this._attachContainer(overlayRef, dialogRef, config);\n dialogRef.containerInstance = dialogContainer;\n this._attachDialogContent(componentOrTemplateRef, dialogRef, dialogContainer, config);\n // If this is the first dialog that we're opening, hide all the non-overlay content.\n if (!this.openDialogs.length) {\n this._hideNonDialogContentFromAssistiveTechnology();\n }\n this.openDialogs.push(dialogRef);\n dialogRef.closed.subscribe(() => this._removeOpenDialog(dialogRef, true));\n this.afterOpened.next(dialogRef);\n return dialogRef;\n }\n /**\n * Closes all of the currently-open dialogs.\n */\n closeAll() {\n reverseForEach(this.openDialogs, dialog => dialog.close());\n }\n /**\n * Finds an open dialog by its id.\n * @param id ID to use when looking up the dialog.\n */\n getDialogById(id) {\n return this.openDialogs.find(dialog => dialog.id === id);\n }\n ngOnDestroy() {\n // Make one pass over all the dialogs that need to be untracked, but should not be closed. We\n // want to stop tracking the open dialog even if it hasn't been closed, because the tracking\n // determines when `aria-hidden` is removed from elements outside the dialog.\n reverseForEach(this._openDialogsAtThisLevel, dialog => {\n // Check for `false` specifically since we want `undefined` to be interpreted as `true`.\n if (dialog.config.closeOnDestroy === false) {\n this._removeOpenDialog(dialog, false);\n }\n });\n // Make a second pass and close the remaining dialogs. We do this second pass in order to\n // correctly dispatch the `afterAllClosed` event in case we have a mixed array of dialogs\n // that should be closed and dialogs that should not.\n reverseForEach(this._openDialogsAtThisLevel, dialog => dialog.close());\n this._afterAllClosedAtThisLevel.complete();\n this._afterOpenedAtThisLevel.complete();\n this._openDialogsAtThisLevel = [];\n }\n /**\n * Creates an overlay config from a dialog config.\n * @param config The dialog configuration.\n * @returns The overlay configuration.\n */\n _getOverlayConfig(config) {\n const state = new OverlayConfig({\n positionStrategy: config.positionStrategy || this._overlay.position().global().centerHorizontally().centerVertically(),\n scrollStrategy: config.scrollStrategy || this._scrollStrategy(),\n panelClass: config.panelClass,\n hasBackdrop: config.hasBackdrop,\n direction: config.direction,\n minWidth: config.minWidth,\n minHeight: config.minHeight,\n maxWidth: config.maxWidth,\n maxHeight: config.maxHeight,\n width: config.width,\n height: config.height,\n disposeOnNavigation: config.closeOnNavigation\n });\n if (config.backdropClass) {\n state.backdropClass = config.backdropClass;\n }\n return state;\n }\n /**\n * Attaches a dialog container to a dialog's already-created overlay.\n * @param overlay Reference to the dialog's underlying overlay.\n * @param config The dialog configuration.\n * @returns A promise resolving to a ComponentRef for the attached container.\n */\n _attachContainer(overlay, dialogRef, config) {\n const userInjector = config.injector || config.viewContainerRef?.injector;\n const providers = [{\n provide: DialogConfig,\n useValue: config\n }, {\n provide: DialogRef,\n useValue: dialogRef\n }, {\n provide: OverlayRef,\n useValue: overlay\n }];\n let containerType;\n if (config.container) {\n if (typeof config.container === 'function') {\n containerType = config.container;\n } else {\n containerType = config.container.type;\n providers.push(...config.container.providers(config));\n }\n } else {\n containerType = CdkDialogContainer;\n }\n const containerPortal = new ComponentPortal(containerType, config.viewContainerRef, Injector.create({\n parent: userInjector || this._injector,\n providers\n }), config.componentFactoryResolver);\n const containerRef = overlay.attach(containerPortal);\n return containerRef.instance;\n }\n /**\n * Attaches the user-provided component to the already-created dialog container.\n * @param componentOrTemplateRef The type of component being loaded into the dialog,\n * or a TemplateRef to instantiate as the content.\n * @param dialogRef Reference to the dialog being opened.\n * @param dialogContainer Component that is going to wrap the dialog content.\n * @param config Configuration used to open the dialog.\n */\n _attachDialogContent(componentOrTemplateRef, dialogRef, dialogContainer, config) {\n if (componentOrTemplateRef instanceof TemplateRef) {\n const injector = this._createInjector(config, dialogRef, dialogContainer, undefined);\n let context = {\n $implicit: config.data,\n dialogRef\n };\n if (config.templateContext) {\n context = {\n ...context,\n ...(typeof config.templateContext === 'function' ? config.templateContext() : config.templateContext)\n };\n }\n dialogContainer.attachTemplatePortal(new TemplatePortal(componentOrTemplateRef, null, context, injector));\n } else {\n const injector = this._createInjector(config, dialogRef, dialogContainer, this._injector);\n const contentRef = dialogContainer.attachComponentPortal(new ComponentPortal(componentOrTemplateRef, config.viewContainerRef, injector, config.componentFactoryResolver));\n dialogRef.componentRef = contentRef;\n dialogRef.componentInstance = contentRef.instance;\n }\n }\n /**\n * Creates a custom injector to be used inside the dialog. This allows a component loaded inside\n * of a dialog to close itself and, optionally, to return a value.\n * @param config Config object that is used to construct the dialog.\n * @param dialogRef Reference to the dialog being opened.\n * @param dialogContainer Component that is going to wrap the dialog content.\n * @param fallbackInjector Injector to use as a fallback when a lookup fails in the custom\n * dialog injector, if the user didn't provide a custom one.\n * @returns The custom injector that can be used inside the dialog.\n */\n _createInjector(config, dialogRef, dialogContainer, fallbackInjector) {\n const userInjector = config.injector || config.viewContainerRef?.injector;\n const providers = [{\n provide: DIALOG_DATA,\n useValue: config.data\n }, {\n provide: DialogRef,\n useValue: dialogRef\n }];\n if (config.providers) {\n if (typeof config.providers === 'function') {\n providers.push(...config.providers(dialogRef, config, dialogContainer));\n } else {\n providers.push(...config.providers);\n }\n }\n if (config.direction && (!userInjector || !userInjector.get(Directionality, null, {\n optional: true\n }))) {\n providers.push({\n provide: Directionality,\n useValue: {\n value: config.direction,\n change: of()\n }\n });\n }\n return Injector.create({\n parent: userInjector || fallbackInjector,\n providers\n });\n }\n /**\n * Removes a dialog from the array of open dialogs.\n * @param dialogRef Dialog to be removed.\n * @param emitEvent Whether to emit an event if this is the last dialog.\n */\n _removeOpenDialog(dialogRef, emitEvent) {\n const index = this.openDialogs.indexOf(dialogRef);\n if (index > -1) {\n this.openDialogs.splice(index, 1);\n // If all the dialogs were closed, remove/restore the `aria-hidden`\n // to a the siblings and emit to the `afterAllClosed` stream.\n if (!this.openDialogs.length) {\n this._ariaHiddenElements.forEach((previousValue, element) => {\n if (previousValue) {\n element.setAttribute('aria-hidden', previousValue);\n } else {\n element.removeAttribute('aria-hidden');\n }\n });\n this._ariaHiddenElements.clear();\n if (emitEvent) {\n this._getAfterAllClosed().next();\n }\n }\n }\n }\n /** Hides all of the content that isn't an overlay from assistive technology. */\n _hideNonDialogContentFromAssistiveTechnology() {\n const overlayContainer = this._overlayContainer.getContainerElement();\n // Ensure that the overlay container is attached to the DOM.\n if (overlayContainer.parentElement) {\n const siblings = overlayContainer.parentElement.children;\n for (let i = siblings.length - 1; i > -1; i--) {\n const sibling = siblings[i];\n if (sibling !== overlayContainer && sibling.nodeName !== 'SCRIPT' && sibling.nodeName !== 'STYLE' && !sibling.hasAttribute('aria-live')) {\n this._ariaHiddenElements.set(sibling, sibling.getAttribute('aria-hidden'));\n sibling.setAttribute('aria-hidden', 'true');\n }\n }\n }\n }\n _getAfterAllClosed() {\n const parent = this._parentDialog;\n return parent ? parent._getAfterAllClosed() : this._afterAllClosedAtThisLevel;\n }\n static {\n this.ɵfac = function Dialog_Factory(t) {\n return new (t || Dialog)(i0.ɵɵinject(i1$1.Overlay), i0.ɵɵinject(i0.Injector), i0.ɵɵinject(DEFAULT_DIALOG_CONFIG, 8), i0.ɵɵinject(Dialog, 12), i0.ɵɵinject(i1$1.OverlayContainer), i0.ɵɵinject(DIALOG_SCROLL_STRATEGY));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: Dialog,\n factory: Dialog.ɵfac,\n providedIn: 'root'\n });\n }\n }\n return Dialog;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Executes a callback against all elements in an array while iterating in reverse.\n * Useful if the array is being modified as it is being iterated.\n */\nfunction reverseForEach(items, callback) {\n let i = items.length;\n while (i--) {\n callback(items[i]);\n }\n}\nlet DialogModule = /*#__PURE__*/(() => {\n class DialogModule {\n static {\n this.ɵfac = function DialogModule_Factory(t) {\n return new (t || DialogModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: DialogModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [Dialog],\n imports: [OverlayModule, PortalModule, A11yModule,\n // Re-export the PortalModule so that people extending the `CdkDialogContainer`\n // don't have to remember to import it or be faced with an unhelpful error.\n PortalModule]\n });\n }\n }\n return DialogModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CdkDialogContainer, DEFAULT_DIALOG_CONFIG, DIALOG_DATA, DIALOG_SCROLL_STRATEGY, DIALOG_SCROLL_STRATEGY_PROVIDER, DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY, Dialog, DialogConfig, DialogModule, DialogRef, throwDialogContentAlreadyAttachedError };\n","import * as i1$1 from '@angular/cdk/overlay';\nimport { Overlay, OverlayModule } from '@angular/cdk/overlay';\nimport * as i2 from '@angular/common';\nimport { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { EventEmitter, ANIMATION_MODULE_TYPE, Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Inject, InjectionToken, inject, Injectable, SkipSelf, Directive, Input, NgModule } from '@angular/core';\nimport * as i1 from '@angular/cdk/a11y';\nimport { CdkDialogContainer, Dialog, DialogConfig, DialogModule } from '@angular/cdk/dialog';\nimport { coerceNumberProperty } from '@angular/cdk/coercion';\nimport { CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';\nimport { Subject, merge, defer } from 'rxjs';\nimport { filter, take, startWith } from 'rxjs/operators';\nimport { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';\nimport * as i3 from '@angular/cdk/scrolling';\nimport { CdkScrollable } from '@angular/cdk/scrolling';\nimport { MatCommonModule } from '@angular/material/core';\nimport { trigger, state, style, transition, group, animate, query, animateChild } from '@angular/animations';\n\n/**\n * Configuration for opening a modal dialog with the MatDialog service.\n */\nfunction MatDialogContainer_ng_template_2_Template(rf, ctx) {}\nclass MatDialogConfig {\n constructor() {\n /** The ARIA role of the dialog element. */\n this.role = 'dialog';\n /** Custom class for the overlay pane. */\n this.panelClass = '';\n /** Whether the dialog has a backdrop. */\n this.hasBackdrop = true;\n /** Custom class for the backdrop. */\n this.backdropClass = '';\n /** Whether the user can use escape or clicking on the backdrop to close the modal. */\n this.disableClose = false;\n /** Width of the dialog. */\n this.width = '';\n /** Height of the dialog. */\n this.height = '';\n /** Data being injected into the child component. */\n this.data = null;\n /** ID of the element that describes the dialog. */\n this.ariaDescribedBy = null;\n /** ID of the element that labels the dialog. */\n this.ariaLabelledBy = null;\n /** Aria label to assign to the dialog element. */\n this.ariaLabel = null;\n /** Whether this is a modal dialog. Used to set the `aria-modal` attribute. */\n this.ariaModal = true;\n /**\n * Where the dialog should focus on open.\n * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or\n * AutoFocusTarget instead.\n */\n this.autoFocus = 'first-tabbable';\n /**\n * Whether the dialog should restore focus to the\n * previously-focused element, after it's closed.\n */\n this.restoreFocus = true;\n /** Whether to wait for the opening animation to finish before trapping focus. */\n this.delayFocusTrap = true;\n /**\n * Whether the dialog should close when the user goes backwards/forwards in history.\n * Note that this usually doesn't include clicking on links (unless the user is using\n * the `HashLocationStrategy`).\n */\n this.closeOnNavigation = true;\n // TODO(jelbourn): add configuration for lifecycle hooks, ARIA labelling.\n }\n}\n\n/** Class added when the dialog is open. */\nconst OPEN_CLASS = 'mdc-dialog--open';\n/** Class added while the dialog is opening. */\nconst OPENING_CLASS = 'mdc-dialog--opening';\n/** Class added while the dialog is closing. */\nconst CLOSING_CLASS = 'mdc-dialog--closing';\n/** Duration of the opening animation in milliseconds. */\nconst OPEN_ANIMATION_DURATION = 150;\n/** Duration of the closing animation in milliseconds. */\nconst CLOSE_ANIMATION_DURATION = 75;\nlet MatDialogContainer = /*#__PURE__*/(() => {\n class MatDialogContainer extends CdkDialogContainer {\n constructor(elementRef, focusTrapFactory, _document, dialogConfig, interactivityChecker, ngZone, overlayRef, _animationMode, focusMonitor) {\n super(elementRef, focusTrapFactory, _document, dialogConfig, interactivityChecker, ngZone, overlayRef, focusMonitor);\n this._animationMode = _animationMode;\n /** Emits when an animation state changes. */\n this._animationStateChanged = new EventEmitter();\n /** Whether animations are enabled. */\n this._animationsEnabled = this._animationMode !== 'NoopAnimations';\n /** Number of actions projected in the dialog. */\n this._actionSectionCount = 0;\n /** Host element of the dialog container component. */\n this._hostElement = this._elementRef.nativeElement;\n /** Duration of the dialog open animation. */\n this._enterAnimationDuration = this._animationsEnabled ? parseCssTime(this._config.enterAnimationDuration) ?? OPEN_ANIMATION_DURATION : 0;\n /** Duration of the dialog close animation. */\n this._exitAnimationDuration = this._animationsEnabled ? parseCssTime(this._config.exitAnimationDuration) ?? CLOSE_ANIMATION_DURATION : 0;\n /** Current timer for dialog animations. */\n this._animationTimer = null;\n /**\n * Completes the dialog open by clearing potential animation classes, trapping\n * focus and emitting an opened event.\n */\n this._finishDialogOpen = () => {\n this._clearAnimationClasses();\n this._openAnimationDone(this._enterAnimationDuration);\n };\n /**\n * Completes the dialog close by clearing potential animation classes, restoring\n * focus and emitting a closed event.\n */\n this._finishDialogClose = () => {\n this._clearAnimationClasses();\n this._animationStateChanged.emit({\n state: 'closed',\n totalTime: this._exitAnimationDuration\n });\n };\n }\n _contentAttached() {\n // Delegate to the original dialog-container initialization (i.e. saving the\n // previous element, setting up the focus trap and moving focus to the container).\n super._contentAttached();\n // Note: Usually we would be able to use the MDC dialog foundation here to handle\n // the dialog animation for us, but there are a few reasons why we just leverage\n // their styles and not use the runtime foundation code:\n // 1. Foundation does not allow us to disable animations.\n // 2. Foundation contains unnecessary features we don't need and aren't\n // tree-shakeable. e.g. background scrim, keyboard event handlers for ESC button.\n // 3. Foundation uses unnecessary timers for animations to work around limitations\n // in React's `setState` mechanism.\n // https://github.com/material-components/material-components-web/pull/3682.\n this._startOpenAnimation();\n }\n /** Starts the dialog open animation if enabled. */\n _startOpenAnimation() {\n this._animationStateChanged.emit({\n state: 'opening',\n totalTime: this._enterAnimationDuration\n });\n if (this._animationsEnabled) {\n this._hostElement.style.setProperty(TRANSITION_DURATION_PROPERTY, `${this._enterAnimationDuration}ms`);\n // We need to give the `setProperty` call from above some time to be applied.\n // One would expect that the open class is added once the animation finished, but MDC\n // uses the open class in combination with the opening class to start the animation.\n this._requestAnimationFrame(() => this._hostElement.classList.add(OPENING_CLASS, OPEN_CLASS));\n this._waitForAnimationToComplete(this._enterAnimationDuration, this._finishDialogOpen);\n } else {\n this._hostElement.classList.add(OPEN_CLASS);\n // Note: We could immediately finish the dialog opening here with noop animations,\n // but we defer until next tick so that consumers can subscribe to `afterOpened`.\n // Executing this immediately would mean that `afterOpened` emits synchronously\n // on `dialog.open` before the consumer had a change to subscribe to `afterOpened`.\n Promise.resolve().then(() => this._finishDialogOpen());\n }\n }\n /**\n * Starts the exit animation of the dialog if enabled. This method is\n * called by the dialog ref.\n */\n _startExitAnimation() {\n this._animationStateChanged.emit({\n state: 'closing',\n totalTime: this._exitAnimationDuration\n });\n this._hostElement.classList.remove(OPEN_CLASS);\n if (this._animationsEnabled) {\n this._hostElement.style.setProperty(TRANSITION_DURATION_PROPERTY, `${this._exitAnimationDuration}ms`);\n // We need to give the `setProperty` call from above some time to be applied.\n this._requestAnimationFrame(() => this._hostElement.classList.add(CLOSING_CLASS));\n this._waitForAnimationToComplete(this._exitAnimationDuration, this._finishDialogClose);\n } else {\n // This subscription to the `OverlayRef#backdropClick` observable in the `DialogRef` is\n // set up before any user can subscribe to the backdrop click. The subscription triggers\n // the dialog close and this method synchronously. If we'd synchronously emit the `CLOSED`\n // animation state event if animations are disabled, the overlay would be disposed\n // immediately and all other subscriptions to `DialogRef#backdropClick` would be silently\n // skipped. We work around this by waiting with the dialog close until the next tick when\n // all subscriptions have been fired as expected. This is not an ideal solution, but\n // there doesn't seem to be any other good way. Alternatives that have been considered:\n // 1. Deferring `DialogRef.close`. This could be a breaking change due to a new microtask.\n // Also this issue is specific to the MDC implementation where the dialog could\n // technically be closed synchronously. In the non-MDC one, Angular animations are used\n // and closing always takes at least a tick.\n // 2. Ensuring that user subscriptions to `backdropClick`, `keydownEvents` in the dialog\n // ref are first. This would solve the issue, but has the risk of memory leaks and also\n // doesn't solve the case where consumers call `DialogRef.close` in their subscriptions.\n // Based on the fact that this is specific to the MDC-based implementation of the dialog\n // animations, the defer is applied here.\n Promise.resolve().then(() => this._finishDialogClose());\n }\n }\n /**\n * Updates the number action sections.\n * @param delta Increase/decrease in the number of sections.\n */\n _updateActionSectionCount(delta) {\n this._actionSectionCount += delta;\n this._changeDetectorRef.markForCheck();\n }\n /** Clears all dialog animation classes. */\n _clearAnimationClasses() {\n this._hostElement.classList.remove(OPENING_CLASS, CLOSING_CLASS);\n }\n _waitForAnimationToComplete(duration, callback) {\n if (this._animationTimer !== null) {\n clearTimeout(this._animationTimer);\n }\n // Note that we want this timer to run inside the NgZone, because we want\n // the related events like `afterClosed` to be inside the zone as well.\n this._animationTimer = setTimeout(callback, duration);\n }\n /** Runs a callback in `requestAnimationFrame`, if available. */\n _requestAnimationFrame(callback) {\n this._ngZone.runOutsideAngular(() => {\n if (typeof requestAnimationFrame === 'function') {\n requestAnimationFrame(callback);\n } else {\n callback();\n }\n });\n }\n _captureInitialFocus() {\n if (!this._config.delayFocusTrap) {\n this._trapFocus();\n }\n }\n /**\n * Callback for when the open dialog animation has finished. Intended to\n * be called by sub-classes that use different animation implementations.\n */\n _openAnimationDone(totalTime) {\n if (this._config.delayFocusTrap) {\n this._trapFocus();\n }\n this._animationStateChanged.next({\n state: 'opened',\n totalTime\n });\n }\n ngOnDestroy() {\n super.ngOnDestroy();\n if (this._animationTimer !== null) {\n clearTimeout(this._animationTimer);\n }\n }\n attachComponentPortal(portal) {\n // When a component is passed into the dialog, the host element interrupts\n // the `display:flex` from affecting the dialog title, content, and\n // actions. To fix this, we make the component host `display: contents` by\n // marking its host with the `mat-mdc-dialog-component-host` class.\n //\n // Note that this problem does not exist when a template ref is used since\n // the title, contents, and actions are then nested directly under the\n // dialog surface.\n const ref = super.attachComponentPortal(portal);\n ref.location.nativeElement.classList.add('mat-mdc-dialog-component-host');\n return ref;\n }\n static {\n this.ɵfac = function MatDialogContainer_Factory(t) {\n return new (t || MatDialogContainer)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.FocusTrapFactory), i0.ɵɵdirectiveInject(DOCUMENT, 8), i0.ɵɵdirectiveInject(MatDialogConfig), i0.ɵɵdirectiveInject(i1.InteractivityChecker), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.OverlayRef), i0.ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8), i0.ɵɵdirectiveInject(i1.FocusMonitor));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MatDialogContainer,\n selectors: [[\"mat-dialog-container\"]],\n hostAttrs: [\"tabindex\", \"-1\", 1, \"mat-mdc-dialog-container\", \"mdc-dialog\"],\n hostVars: 10,\n hostBindings: function MatDialogContainer_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵhostProperty(\"id\", ctx._config.id);\n i0.ɵɵattribute(\"aria-modal\", ctx._config.ariaModal)(\"role\", ctx._config.role)(\"aria-labelledby\", ctx._config.ariaLabel ? null : ctx._ariaLabelledByQueue[0])(\"aria-label\", ctx._config.ariaLabel)(\"aria-describedby\", ctx._config.ariaDescribedBy || null);\n i0.ɵɵclassProp(\"_mat-animation-noopable\", !ctx._animationsEnabled)(\"mat-mdc-dialog-container-with-actions\", ctx._actionSectionCount > 0);\n }\n },\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 3,\n vars: 0,\n consts: [[1, \"mat-mdc-dialog-inner-container\", \"mdc-dialog__container\"], [1, \"mat-mdc-dialog-surface\", \"mdc-dialog__surface\"], [\"cdkPortalOutlet\", \"\"]],\n template: function MatDialogContainer_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 0)(1, \"div\", 1);\n i0.ɵɵtemplate(2, MatDialogContainer_ng_template_2_Template, 0, 0, \"ng-template\", 2);\n i0.ɵɵelementEnd()();\n }\n },\n dependencies: [CdkPortalOutlet],\n styles: [\".mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, 4px);background-color:var(--mdc-dialog-container-color, white)}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:\\\"\\\";pointer-events:none}.mat-mdc-dialog-title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:\\\"\\\";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87));font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6));font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}\"],\n encapsulation: 2\n });\n }\n }\n return MatDialogContainer;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst TRANSITION_DURATION_PROPERTY = '--mat-dialog-transition-duration';\n// TODO(mmalerba): Remove this function after animation durations are required\n// to be numbers.\n/**\n * Converts a CSS time string to a number in ms. If the given time is already a\n * number, it is assumed to be in ms.\n */\nfunction parseCssTime(time) {\n if (time == null) {\n return null;\n }\n if (typeof time === 'number') {\n return time;\n }\n if (time.endsWith('ms')) {\n return coerceNumberProperty(time.substring(0, time.length - 2));\n }\n if (time.endsWith('s')) {\n return coerceNumberProperty(time.substring(0, time.length - 1)) * 1000;\n }\n if (time === '0') {\n return 0;\n }\n return null; // anything else is invalid.\n}\nvar MatDialogState = /*#__PURE__*/function (MatDialogState) {\n MatDialogState[MatDialogState[\"OPEN\"] = 0] = \"OPEN\";\n MatDialogState[MatDialogState[\"CLOSING\"] = 1] = \"CLOSING\";\n MatDialogState[MatDialogState[\"CLOSED\"] = 2] = \"CLOSED\";\n return MatDialogState;\n}(MatDialogState || {});\n/**\n * Reference to a dialog opened via the MatDialog service.\n */\nclass MatDialogRef {\n constructor(_ref, config, _containerInstance) {\n this._ref = _ref;\n this._containerInstance = _containerInstance;\n /** Subject for notifying the user that the dialog has finished opening. */\n this._afterOpened = new Subject();\n /** Subject for notifying the user that the dialog has started closing. */\n this._beforeClosed = new Subject();\n /** Current state of the dialog. */\n this._state = MatDialogState.OPEN;\n this.disableClose = config.disableClose;\n this.id = _ref.id;\n // Used to target panels specifically tied to dialogs.\n _ref.addPanelClass('mat-mdc-dialog-panel');\n // Emit when opening animation completes\n _containerInstance._animationStateChanged.pipe(filter(event => event.state === 'opened'), take(1)).subscribe(() => {\n this._afterOpened.next();\n this._afterOpened.complete();\n });\n // Dispose overlay when closing animation is complete\n _containerInstance._animationStateChanged.pipe(filter(event => event.state === 'closed'), take(1)).subscribe(() => {\n clearTimeout(this._closeFallbackTimeout);\n this._finishDialogClose();\n });\n _ref.overlayRef.detachments().subscribe(() => {\n this._beforeClosed.next(this._result);\n this._beforeClosed.complete();\n this._finishDialogClose();\n });\n merge(this.backdropClick(), this.keydownEvents().pipe(filter(event => event.keyCode === ESCAPE && !this.disableClose && !hasModifierKey(event)))).subscribe(event => {\n if (!this.disableClose) {\n event.preventDefault();\n _closeDialogVia(this, event.type === 'keydown' ? 'keyboard' : 'mouse');\n }\n });\n }\n /**\n * Close the dialog.\n * @param dialogResult Optional result to return to the dialog opener.\n */\n close(dialogResult) {\n this._result = dialogResult;\n // Transition the backdrop in parallel to the dialog.\n this._containerInstance._animationStateChanged.pipe(filter(event => event.state === 'closing'), take(1)).subscribe(event => {\n this._beforeClosed.next(dialogResult);\n this._beforeClosed.complete();\n this._ref.overlayRef.detachBackdrop();\n // The logic that disposes of the overlay depends on the exit animation completing, however\n // it isn't guaranteed if the parent view is destroyed while it's running. Add a fallback\n // timeout which will clean everything up if the animation hasn't fired within the specified\n // amount of time plus 100ms. We don't need to run this outside the NgZone, because for the\n // vast majority of cases the timeout will have been cleared before it has the chance to fire.\n this._closeFallbackTimeout = setTimeout(() => this._finishDialogClose(), event.totalTime + 100);\n });\n this._state = MatDialogState.CLOSING;\n this._containerInstance._startExitAnimation();\n }\n /**\n * Gets an observable that is notified when the dialog is finished opening.\n */\n afterOpened() {\n return this._afterOpened;\n }\n /**\n * Gets an observable that is notified when the dialog is finished closing.\n */\n afterClosed() {\n return this._ref.closed;\n }\n /**\n * Gets an observable that is notified when the dialog has started closing.\n */\n beforeClosed() {\n return this._beforeClosed;\n }\n /**\n * Gets an observable that emits when the overlay's backdrop has been clicked.\n */\n backdropClick() {\n return this._ref.backdropClick;\n }\n /**\n * Gets an observable that emits when keydown events are targeted on the overlay.\n */\n keydownEvents() {\n return this._ref.keydownEvents;\n }\n /**\n * Updates the dialog's position.\n * @param position New dialog position.\n */\n updatePosition(position) {\n let strategy = this._ref.config.positionStrategy;\n if (position && (position.left || position.right)) {\n position.left ? strategy.left(position.left) : strategy.right(position.right);\n } else {\n strategy.centerHorizontally();\n }\n if (position && (position.top || position.bottom)) {\n position.top ? strategy.top(position.top) : strategy.bottom(position.bottom);\n } else {\n strategy.centerVertically();\n }\n this._ref.updatePosition();\n return this;\n }\n /**\n * Updates the dialog's width and height.\n * @param width New width of the dialog.\n * @param height New height of the dialog.\n */\n updateSize(width = '', height = '') {\n this._ref.updateSize(width, height);\n return this;\n }\n /** Add a CSS class or an array of classes to the overlay pane. */\n addPanelClass(classes) {\n this._ref.addPanelClass(classes);\n return this;\n }\n /** Remove a CSS class or an array of classes from the overlay pane. */\n removePanelClass(classes) {\n this._ref.removePanelClass(classes);\n return this;\n }\n /** Gets the current state of the dialog's lifecycle. */\n getState() {\n return this._state;\n }\n /**\n * Finishes the dialog close by updating the state of the dialog\n * and disposing the overlay.\n */\n _finishDialogClose() {\n this._state = MatDialogState.CLOSED;\n this._ref.close(this._result, {\n focusOrigin: this._closeInteractionType\n });\n this.componentInstance = null;\n }\n}\n/**\n * Closes the dialog with the specified interaction type. This is currently not part of\n * `MatDialogRef` as that would conflict with custom dialog ref mocks provided in tests.\n * More details. See: https://github.com/angular/components/pull/9257#issuecomment-651342226.\n */\n// TODO: Move this back into `MatDialogRef` when we provide an official mock dialog ref.\nfunction _closeDialogVia(ref, interactionType, result) {\n ref._closeInteractionType = interactionType;\n return ref.close(result);\n}\n\n/** Injection token that can be used to access the data that was passed in to a dialog. */\nconst MAT_DIALOG_DATA = /*#__PURE__*/new InjectionToken('MatMdcDialogData');\n/** Injection token that can be used to specify default dialog options. */\nconst MAT_DIALOG_DEFAULT_OPTIONS = /*#__PURE__*/new InjectionToken('mat-mdc-dialog-default-options');\n/** Injection token that determines the scroll handling while the dialog is open. */\nconst MAT_DIALOG_SCROLL_STRATEGY = /*#__PURE__*/new InjectionToken('mat-mdc-dialog-scroll-strategy', {\n providedIn: 'root',\n factory: () => {\n const overlay = inject(Overlay);\n return () => overlay.scrollStrategies.block();\n }\n});\n/**\n * @docs-private\n * @deprecated No longer used. To be removed.\n * @breaking-change 19.0.0\n */\nfunction MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {\n return () => overlay.scrollStrategies.block();\n}\n/**\n * @docs-private\n * @deprecated No longer used. To be removed.\n * @breaking-change 19.0.0\n */\nconst MAT_DIALOG_SCROLL_STRATEGY_PROVIDER = {\n provide: MAT_DIALOG_SCROLL_STRATEGY,\n deps: [Overlay],\n useFactory: MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY\n};\n// Counter for unique dialog ids.\nlet uniqueId = 0;\n/**\n * Service to open Material Design modal dialogs.\n */\nlet MatDialog = /*#__PURE__*/(() => {\n class MatDialog {\n /** Keeps track of the currently-open dialogs. */\n get openDialogs() {\n return this._parentDialog ? this._parentDialog.openDialogs : this._openDialogsAtThisLevel;\n }\n /** Stream that emits when a dialog has been opened. */\n get afterOpened() {\n return this._parentDialog ? this._parentDialog.afterOpened : this._afterOpenedAtThisLevel;\n }\n _getAfterAllClosed() {\n const parent = this._parentDialog;\n return parent ? parent._getAfterAllClosed() : this._afterAllClosedAtThisLevel;\n }\n constructor(_overlay, injector,\n /**\n * @deprecated `_location` parameter to be removed.\n * @breaking-change 10.0.0\n */\n location, _defaultOptions, _scrollStrategy, _parentDialog,\n /**\n * @deprecated No longer used. To be removed.\n * @breaking-change 15.0.0\n */\n _overlayContainer,\n /**\n * @deprecated No longer used. To be removed.\n * @breaking-change 14.0.0\n */\n _animationMode) {\n this._overlay = _overlay;\n this._defaultOptions = _defaultOptions;\n this._scrollStrategy = _scrollStrategy;\n this._parentDialog = _parentDialog;\n this._openDialogsAtThisLevel = [];\n this._afterAllClosedAtThisLevel = new Subject();\n this._afterOpenedAtThisLevel = new Subject();\n this.dialogConfigClass = MatDialogConfig;\n /**\n * Stream that emits when all open dialog have finished closing.\n * Will emit on subscribe if there are no open dialogs to begin with.\n */\n this.afterAllClosed = defer(() => this.openDialogs.length ? this._getAfterAllClosed() : this._getAfterAllClosed().pipe(startWith(undefined)));\n this._dialog = injector.get(Dialog);\n this._dialogRefConstructor = MatDialogRef;\n this._dialogContainerType = MatDialogContainer;\n this._dialogDataToken = MAT_DIALOG_DATA;\n }\n open(componentOrTemplateRef, config) {\n let dialogRef;\n config = {\n ...(this._defaultOptions || new MatDialogConfig()),\n ...config\n };\n config.id = config.id || `mat-mdc-dialog-${uniqueId++}`;\n config.scrollStrategy = config.scrollStrategy || this._scrollStrategy();\n const cdkRef = this._dialog.open(componentOrTemplateRef, {\n ...config,\n positionStrategy: this._overlay.position().global().centerHorizontally().centerVertically(),\n // Disable closing since we need to sync it up to the animation ourselves.\n disableClose: true,\n // Disable closing on destroy, because this service cleans up its open dialogs as well.\n // We want to do the cleanup here, rather than the CDK service, because the CDK destroys\n // the dialogs immediately whereas we want it to wait for the animations to finish.\n closeOnDestroy: false,\n // Disable closing on detachments so that we can sync up the animation.\n // The Material dialog ref handles this manually.\n closeOnOverlayDetachments: false,\n container: {\n type: this._dialogContainerType,\n providers: () => [\n // Provide our config as the CDK config as well since it has the same interface as the\n // CDK one, but it contains the actual values passed in by the user for things like\n // `disableClose` which we disable for the CDK dialog since we handle it ourselves.\n {\n provide: this.dialogConfigClass,\n useValue: config\n }, {\n provide: DialogConfig,\n useValue: config\n }]\n },\n templateContext: () => ({\n dialogRef\n }),\n providers: (ref, cdkConfig, dialogContainer) => {\n dialogRef = new this._dialogRefConstructor(ref, config, dialogContainer);\n dialogRef.updatePosition(config?.position);\n return [{\n provide: this._dialogContainerType,\n useValue: dialogContainer\n }, {\n provide: this._dialogDataToken,\n useValue: cdkConfig.data\n }, {\n provide: this._dialogRefConstructor,\n useValue: dialogRef\n }];\n }\n });\n // This can't be assigned in the `providers` callback, because\n // the instance hasn't been assigned to the CDK ref yet.\n dialogRef.componentRef = cdkRef.componentRef;\n dialogRef.componentInstance = cdkRef.componentInstance;\n this.openDialogs.push(dialogRef);\n this.afterOpened.next(dialogRef);\n dialogRef.afterClosed().subscribe(() => {\n const index = this.openDialogs.indexOf(dialogRef);\n if (index > -1) {\n this.openDialogs.splice(index, 1);\n if (!this.openDialogs.length) {\n this._getAfterAllClosed().next();\n }\n }\n });\n return dialogRef;\n }\n /**\n * Closes all of the currently-open dialogs.\n */\n closeAll() {\n this._closeDialogs(this.openDialogs);\n }\n /**\n * Finds an open dialog by its id.\n * @param id ID to use when looking up the dialog.\n */\n getDialogById(id) {\n return this.openDialogs.find(dialog => dialog.id === id);\n }\n ngOnDestroy() {\n // Only close the dialogs at this level on destroy\n // since the parent service may still be active.\n this._closeDialogs(this._openDialogsAtThisLevel);\n this._afterAllClosedAtThisLevel.complete();\n this._afterOpenedAtThisLevel.complete();\n }\n _closeDialogs(dialogs) {\n let i = dialogs.length;\n while (i--) {\n dialogs[i].close();\n }\n }\n static {\n this.ɵfac = function MatDialog_Factory(t) {\n return new (t || MatDialog)(i0.ɵɵinject(i1$1.Overlay), i0.ɵɵinject(i0.Injector), i0.ɵɵinject(i2.Location, 8), i0.ɵɵinject(MAT_DIALOG_DEFAULT_OPTIONS, 8), i0.ɵɵinject(MAT_DIALOG_SCROLL_STRATEGY), i0.ɵɵinject(MatDialog, 12), i0.ɵɵinject(i1$1.OverlayContainer), i0.ɵɵinject(ANIMATION_MODULE_TYPE, 8));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: MatDialog,\n factory: MatDialog.ɵfac,\n providedIn: 'root'\n });\n }\n }\n return MatDialog;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/** Counter used to generate unique IDs for dialog elements. */\nlet dialogElementUid = 0;\n/**\n * Button that will close the current dialog.\n */\nlet MatDialogClose = /*#__PURE__*/(() => {\n class MatDialogClose {\n constructor(\n // The dialog title directive is always used in combination with a `MatDialogRef`.\n // tslint:disable-next-line: lightweight-tokens\n dialogRef, _elementRef, _dialog) {\n this.dialogRef = dialogRef;\n this._elementRef = _elementRef;\n this._dialog = _dialog;\n /** Default to \"button\" to prevents accidental form submits. */\n this.type = 'button';\n }\n ngOnInit() {\n if (!this.dialogRef) {\n // When this directive is included in a dialog via TemplateRef (rather than being\n // in a Component), the DialogRef isn't available via injection because embedded\n // views cannot be given a custom injector. Instead, we look up the DialogRef by\n // ID. This must occur in `onInit`, as the ID binding for the dialog container won't\n // be resolved at constructor time.\n this.dialogRef = getClosestDialog(this._elementRef, this._dialog.openDialogs);\n }\n }\n ngOnChanges(changes) {\n const proxiedChange = changes['_matDialogClose'] || changes['_matDialogCloseResult'];\n if (proxiedChange) {\n this.dialogResult = proxiedChange.currentValue;\n }\n }\n _onButtonClick(event) {\n // Determinate the focus origin using the click event, because using the FocusMonitor will\n // result in incorrect origins. Most of the time, close buttons will be auto focused in the\n // dialog, and therefore clicking the button won't result in a focus change. This means that\n // the FocusMonitor won't detect any origin change, and will always output `program`.\n _closeDialogVia(this.dialogRef, event.screenX === 0 && event.screenY === 0 ? 'keyboard' : 'mouse', this.dialogResult);\n }\n static {\n this.ɵfac = function MatDialogClose_Factory(t) {\n return new (t || MatDialogClose)(i0.ɵɵdirectiveInject(MatDialogRef, 8), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(MatDialog));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: MatDialogClose,\n selectors: [[\"\", \"mat-dialog-close\", \"\"], [\"\", \"matDialogClose\", \"\"]],\n hostVars: 2,\n hostBindings: function MatDialogClose_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"click\", function MatDialogClose_click_HostBindingHandler($event) {\n return ctx._onButtonClick($event);\n });\n }\n if (rf & 2) {\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel || null)(\"type\", ctx.type);\n }\n },\n inputs: {\n ariaLabel: [0, \"aria-label\", \"ariaLabel\"],\n type: \"type\",\n dialogResult: [0, \"mat-dialog-close\", \"dialogResult\"],\n _matDialogClose: [0, \"matDialogClose\", \"_matDialogClose\"]\n },\n exportAs: [\"matDialogClose\"],\n standalone: true,\n features: [i0.ɵɵNgOnChangesFeature]\n });\n }\n }\n return MatDialogClose;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet MatDialogLayoutSection = /*#__PURE__*/(() => {\n class MatDialogLayoutSection {\n constructor(\n // The dialog title directive is always used in combination with a `MatDialogRef`.\n // tslint:disable-next-line: lightweight-tokens\n _dialogRef, _elementRef, _dialog) {\n this._dialogRef = _dialogRef;\n this._elementRef = _elementRef;\n this._dialog = _dialog;\n }\n ngOnInit() {\n if (!this._dialogRef) {\n this._dialogRef = getClosestDialog(this._elementRef, this._dialog.openDialogs);\n }\n if (this._dialogRef) {\n Promise.resolve().then(() => {\n this._onAdd();\n });\n }\n }\n ngOnDestroy() {\n // Note: we null check because there are some internal\n // tests that are mocking out `MatDialogRef` incorrectly.\n const instance = this._dialogRef?._containerInstance;\n if (instance) {\n Promise.resolve().then(() => {\n this._onRemove();\n });\n }\n }\n static {\n this.ɵfac = function MatDialogLayoutSection_Factory(t) {\n return new (t || MatDialogLayoutSection)(i0.ɵɵdirectiveInject(MatDialogRef, 8), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(MatDialog));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: MatDialogLayoutSection,\n standalone: true\n });\n }\n }\n return MatDialogLayoutSection;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Title of a dialog element. Stays fixed to the top of the dialog when scrolling.\n */\nlet MatDialogTitle = /*#__PURE__*/(() => {\n class MatDialogTitle extends MatDialogLayoutSection {\n constructor() {\n super(...arguments);\n this.id = `mat-mdc-dialog-title-${dialogElementUid++}`;\n }\n _onAdd() {\n // Note: we null check the queue, because there are some internal\n // tests that are mocking out `MatDialogRef` incorrectly.\n this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id);\n }\n _onRemove() {\n this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id);\n }\n static {\n this.ɵfac = /* @__PURE__ */(() => {\n let ɵMatDialogTitle_BaseFactory;\n return function MatDialogTitle_Factory(t) {\n return (ɵMatDialogTitle_BaseFactory || (ɵMatDialogTitle_BaseFactory = i0.ɵɵgetInheritedFactory(MatDialogTitle)))(t || MatDialogTitle);\n };\n })();\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: MatDialogTitle,\n selectors: [[\"\", \"mat-dialog-title\", \"\"], [\"\", \"matDialogTitle\", \"\"]],\n hostAttrs: [1, \"mat-mdc-dialog-title\", \"mdc-dialog__title\"],\n hostVars: 1,\n hostBindings: function MatDialogTitle_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵhostProperty(\"id\", ctx.id);\n }\n },\n inputs: {\n id: \"id\"\n },\n exportAs: [\"matDialogTitle\"],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n }\n }\n return MatDialogTitle;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Scrollable content container of a dialog.\n */\nlet MatDialogContent = /*#__PURE__*/(() => {\n class MatDialogContent {\n static {\n this.ɵfac = function MatDialogContent_Factory(t) {\n return new (t || MatDialogContent)();\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: MatDialogContent,\n selectors: [[\"\", \"mat-dialog-content\", \"\"], [\"mat-dialog-content\"], [\"\", \"matDialogContent\", \"\"]],\n hostAttrs: [1, \"mat-mdc-dialog-content\", \"mdc-dialog__content\"],\n standalone: true,\n features: [i0.ɵɵHostDirectivesFeature([i3.CdkScrollable])]\n });\n }\n }\n return MatDialogContent;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Container for the bottom action buttons in a dialog.\n * Stays fixed to the bottom when scrolling.\n */\nlet MatDialogActions = /*#__PURE__*/(() => {\n class MatDialogActions extends MatDialogLayoutSection {\n _onAdd() {\n this._dialogRef._containerInstance?._updateActionSectionCount?.(1);\n }\n _onRemove() {\n this._dialogRef._containerInstance?._updateActionSectionCount?.(-1);\n }\n static {\n this.ɵfac = /* @__PURE__ */(() => {\n let ɵMatDialogActions_BaseFactory;\n return function MatDialogActions_Factory(t) {\n return (ɵMatDialogActions_BaseFactory || (ɵMatDialogActions_BaseFactory = i0.ɵɵgetInheritedFactory(MatDialogActions)))(t || MatDialogActions);\n };\n })();\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: MatDialogActions,\n selectors: [[\"\", \"mat-dialog-actions\", \"\"], [\"mat-dialog-actions\"], [\"\", \"matDialogActions\", \"\"]],\n hostAttrs: [1, \"mat-mdc-dialog-actions\", \"mdc-dialog__actions\"],\n hostVars: 6,\n hostBindings: function MatDialogActions_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵclassProp(\"mat-mdc-dialog-actions-align-start\", ctx.align === \"start\")(\"mat-mdc-dialog-actions-align-center\", ctx.align === \"center\")(\"mat-mdc-dialog-actions-align-end\", ctx.align === \"end\");\n }\n },\n inputs: {\n align: \"align\"\n },\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature]\n });\n }\n }\n return MatDialogActions;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Finds the closest MatDialogRef to an element by looking at the DOM.\n * @param element Element relative to which to look for a dialog.\n * @param openDialogs References to the currently-open dialogs.\n */\nfunction getClosestDialog(element, openDialogs) {\n let parent = element.nativeElement.parentElement;\n while (parent && !parent.classList.contains('mat-mdc-dialog-container')) {\n parent = parent.parentElement;\n }\n return parent ? openDialogs.find(dialog => dialog.id === parent.id) : null;\n}\nconst DIRECTIVES = [MatDialogContainer, MatDialogClose, MatDialogTitle, MatDialogActions, MatDialogContent];\nlet MatDialogModule = /*#__PURE__*/(() => {\n class MatDialogModule {\n static {\n this.ɵfac = function MatDialogModule_Factory(t) {\n return new (t || MatDialogModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: MatDialogModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [MatDialog],\n imports: [DialogModule, OverlayModule, PortalModule, MatCommonModule, MatCommonModule]\n });\n }\n }\n return MatDialogModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Default parameters for the animation for backwards compatibility.\n * @docs-private\n */\nconst _defaultParams = {\n params: {\n enterAnimationDuration: '150ms',\n exitAnimationDuration: '75ms'\n }\n};\n/**\n * Animations used by MatDialog.\n * @docs-private\n */\nconst matDialogAnimations = {\n /** Animation that is applied on the dialog container by default. */\n dialogContainer: /*#__PURE__*/trigger('dialogContainer', [\n /*#__PURE__*/\n // Note: The `enter` animation transitions to `transform: none`, because for some reason\n // specifying the transform explicitly, causes IE both to blur the dialog content and\n // decimate the animation performance. Leaving it as `none` solves both issues.\n state('void, exit', /*#__PURE__*/style({\n opacity: 0,\n transform: 'scale(0.7)'\n })), /*#__PURE__*/state('enter', /*#__PURE__*/style({\n transform: 'none'\n })), /*#__PURE__*/transition('* => enter', /*#__PURE__*/group([/*#__PURE__*/animate('{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)', /*#__PURE__*/style({\n transform: 'none',\n opacity: 1\n })), /*#__PURE__*/query('@*', /*#__PURE__*/animateChild(), {\n optional: true\n })]), _defaultParams), /*#__PURE__*/transition('* => void, * => exit', /*#__PURE__*/group([/*#__PURE__*/animate('{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)', /*#__PURE__*/style({\n opacity: 0\n })), /*#__PURE__*/query('@*', /*#__PURE__*/animateChild(), {\n optional: true\n })]), _defaultParams)])\n};\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_DIALOG_DATA, MAT_DIALOG_DEFAULT_OPTIONS, MAT_DIALOG_SCROLL_STRATEGY, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY, MatDialog, MatDialogActions, MatDialogClose, MatDialogConfig, MatDialogContainer, MatDialogContent, MatDialogModule, MatDialogRef, MatDialogState, MatDialogTitle, _closeDialogVia, _defaultParams, matDialogAnimations };\n","import { Injectable } from \"@angular/core\";\n\nimport TermType from \"../shared/enums/TermsTypes.enum\";\nimport { UnitCustomerTokenDto } from \"../shared/models/unit-card/UnitCustomerTokenDto.model\";\nimport { ImpersonateAsUserDetails } from \"../models/ImpersonateAsUserDetails.model\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class StorageService {\n private AUTHORIZATION_DATA_KEY = \"authorizationData\";\n private CREDENTIALS_DATA_KEY = \"credentialsData\";\n private UNIT_CUSTOMER_TOKEN = \"UCT\";\n private UNIT_WL_COMPONENTS_CUSTOMER_TOKEN = \"unitVerifiedCustomerToken\"\n private TERMS_DATA_KEY = \"_covt\";\n private TERMS_RETRY_KEY = \"_covrt\";\n private DONT_SHOW_ACCREDITATION_CONFIRMATION = \"_acct\";\n private IMPERSONATE_AS_KEY = \"Impersonate-As\";\n private readonly GP_REFERRAL_KEY: string = \"gprefkey\";\n private readonly GP_REFERRAL_KEYS: string = \"gprefkeys\";\n private readonly OPPORTUNITY_TAGS: string = \"opptag\";\n\n private CONFIG_DATA_KEY = \"covercy_config\";\n\n // Keys for the Get/Set functions:\n public IS_EXAMPLE_ASSET_REMOVED_LOCAL_STORAGE_KEY =\n \"isUserRemovedExampleAsset\";\n\n constructor() {}\n\n public clear() {\n this.removeAuthorizationData();\n this.removeUnitWLComponentsCustomerToken();\n this.removeCredentialsData();\n localStorage.clear();\n sessionStorage.clear();\n // this.removeUnitCustomerToken();\n }\n\n private getJsonData(key: string) {\n const json = localStorage.getItem(key);\n\n if (json) {\n return JSON.parse(json);\n }\n return null;\n }\n\n // LOCAL STORAGE\n public getPersistent
(key: string) {\n const keyValueObject = JSON.parse(\n localStorage.getItem(this.CONFIG_DATA_KEY) || \"{}\"\n );\n return keyValueObject[key] && (JSON.parse(keyValueObject[key]) as T);\n }\n\n public hasPersistent(key: string) {\n const keyValueObject = JSON.parse(\n localStorage.getItem(this.CONFIG_DATA_KEY) || \"{}\"\n );\n return !!keyValueObject[key];\n }\n\n public setPersistent(key: string, value: any = null) {\n const keyValueObject = JSON.parse(\n localStorage.getItem(this.CONFIG_DATA_KEY) || \"{}\"\n );\n\n keyValueObject[key] = JSON.stringify(value);\n\n localStorage.setItem(this.CONFIG_DATA_KEY, JSON.stringify(keyValueObject));\n }\n\n public deletePersistent(key: string) {\n const keyValueString = localStorage.getItem(this.CONFIG_DATA_KEY);\n if (!keyValueString) {\n return;\n }\n\n const keyValueObject = JSON.parse(keyValueString);\n if (!keyValueObject[key]) {\n return;\n }\n\n delete keyValueObject[key];\n this.updatePersistent(keyValueObject);\n }\n\n private updatePersistent(value: any) {\n localStorage.setItem(this.CONFIG_DATA_KEY, JSON.stringify(value));\n }\n\n // SESSION STORAGE\n public getSessionItem(key: string) {\n const keyValueObject = JSON.parse(\n sessionStorage.getItem(this.CONFIG_DATA_KEY) || \"{}\"\n );\n return keyValueObject[key] && (JSON.parse(keyValueObject[key]) as T);\n }\n\n public hasSessionItem(key: string) {\n const keyValueObject = JSON.parse(\n sessionStorage.getItem(this.CONFIG_DATA_KEY) || \"{}\"\n );\n return !!keyValueObject[key];\n }\n\n public setSessionItem(key: string, value: any = null) {\n const keyValueObject = JSON.parse(\n sessionStorage.getItem(this.CONFIG_DATA_KEY) || \"{}\"\n );\n\n keyValueObject[key] = JSON.stringify(value);\n\n sessionStorage.setItem(\n this.CONFIG_DATA_KEY,\n JSON.stringify(keyValueObject)\n );\n }\n\n public getAuthorizationData() {\n return this.getJsonData(this.AUTHORIZATION_DATA_KEY);\n }\n\n public removeAuthorizationData() {\n localStorage.removeItem(this.AUTHORIZATION_DATA_KEY);\n }\n\n public removeUnitWLComponentsCustomerToken() {\n localStorage.removeItem(this.UNIT_WL_COMPONENTS_CUSTOMER_TOKEN);\n }\n\n public setAuthorizationData(data: string) {\n localStorage.setItem(this.AUTHORIZATION_DATA_KEY, data);\n }\n\n public getCredentialsData() {\n return this.getJsonData(this.CREDENTIALS_DATA_KEY);\n }\n\n public removeCredentialsData() {\n localStorage.removeItem(this.CREDENTIALS_DATA_KEY);\n }\n\n public setCredentialsData(data: string) {\n localStorage.setItem(this.CREDENTIALS_DATA_KEY, data);\n }\n\n public setTermsData(data: TermType[]) {\n localStorage.setItem(this.TERMS_DATA_KEY, JSON.stringify(data));\n }\n\n public getTermsData(): TermType[] {\n return this.getJsonData(this.TERMS_DATA_KEY);\n }\n\n public removeTermsData() {\n localStorage.removeItem(this.TERMS_DATA_KEY);\n }\n\n public setTermsApproveRetry() {\n localStorage.setItem(this.TERMS_RETRY_KEY, JSON.stringify(true));\n }\n\n public getTermsApproveRetry() {\n return localStorage.getItem(this.TERMS_RETRY_KEY);\n }\n\n public removeTermsApproveRetry() {\n localStorage.removeItem(this.TERMS_RETRY_KEY);\n }\n\n public getUnitCustomerToken(unitCustomerId: number): UnitCustomerTokenDto {\n return this.getJsonData(\n `${this.UNIT_CUSTOMER_TOKEN}_${unitCustomerId}`\n ) as UnitCustomerTokenDto;\n }\n\n public removeUnitCustomerToken() {\n localStorage.removeItem(this.UNIT_CUSTOMER_TOKEN);\n }\n\n public setUnitCustomerToken(\n data: UnitCustomerTokenDto,\n unitCustomerId: number\n ) {\n localStorage.setItem(\n `${this.UNIT_CUSTOMER_TOKEN}_${unitCustomerId}`,\n JSON.stringify(data)\n );\n }\n\n public setImpersonateAsData(impersonationData: ImpersonateAsUserDetails) {\n localStorage.setItem(\n this.IMPERSONATE_AS_KEY,\n JSON.stringify(impersonationData)\n );\n }\n\n public getImpersonateAsData(): ImpersonateAsUserDetails {\n const json = localStorage.getItem(this.IMPERSONATE_AS_KEY);\n return !!json ? JSON.parse(json) : null;\n }\n\n public setAccreditationDontShowConfirmation(data: boolean) {\n localStorage.setItem(\n this.DONT_SHOW_ACCREDITATION_CONFIRMATION,\n JSON.stringify(data)\n );\n }\n\n public getAccreditationDontShowConfirmation(): boolean {\n return !!this.getJsonData(this.DONT_SHOW_ACCREDITATION_CONFIRMATION);\n }\n\n public removeAccreditationDontShowConfirmation() {\n localStorage.removeItem(this.DONT_SHOW_ACCREDITATION_CONFIRMATION);\n }\n\n public setGpReferralKeyDataInStorage(data: string) {\n this.removeGpReferralKeyDataFromStorage();\n localStorage.setItem(this.GP_REFERRAL_KEY, JSON.stringify(data));\n }\n\n public getGpReferralKeyDataFromStorage(): string {\n const gpRefKey = this.getJsonData(this.GP_REFERRAL_KEY);\n return gpRefKey;\n }\n\n public removeGpReferralKeyDataFromStorage() {\n localStorage.removeItem(this.GP_REFERRAL_KEY);\n }\n\n public updateGpReferralKeysDataInStorage(data: string) {\n let gpRefKeys = this.getAllGpReferralKeysDataFromStorage();\n\n if (!gpRefKeys) {\n gpRefKeys = [data];\n } else {\n gpRefKeys.push(data);\n }\n\n localStorage.setItem(this.GP_REFERRAL_KEYS, JSON.stringify(gpRefKeys));\n }\n\n public getAllGpReferralKeysDataFromStorage(): string[] {\n const gpRefKeys = this.getJsonData(this.GP_REFERRAL_KEYS);\n return gpRefKeys;\n }\n\n public updateOpportunityTagsDataInStorage(data: string) {\n let tags = this.getAllOpportunityTagsDataFromStorage();\n\n if (!tags) {\n tags = [data];\n } else {\n tags.push(data);\n }\n\n localStorage.setItem(this.OPPORTUNITY_TAGS, JSON.stringify(tags));\n }\n\n public getAllOpportunityTagsDataFromStorage(): string[] {\n const tags = this.getJsonData(this.OPPORTUNITY_TAGS);\n return tags;\n }\n\n public removeAllOpportunityTagsFromStorage() {\n localStorage.removeItem(this.OPPORTUNITY_TAGS);\n }\n}\n","import * as i0 from '@angular/core';\nimport { PLATFORM_ID, Injectable, Inject } from '@angular/core';\nimport { isPlatformBrowser, DOCUMENT } from '@angular/common';\n\n// This service is based on the `ng2-cookies` package which sadly is not a service and does\n// not use `DOCUMENT` injection and therefore doesn't work well with AoT production builds.\n// Package: https://github.com/BCJTI/ng2-cookies\nlet CookieService = /*#__PURE__*/(() => {\n class CookieService {\n constructor(document,\n // Get the `PLATFORM_ID` so we can check if we're in a browser.\n platformId) {\n this.document = document;\n this.platformId = platformId;\n this.documentIsAccessible = isPlatformBrowser(this.platformId);\n }\n /**\n * Get cookie Regular Expression\n *\n * @param name Cookie name\n * @returns property RegExp\n *\n * @author: Stepan Suvorov\n * @since: 1.0.0\n */\n static getCookieRegExp(name) {\n const escapedName = name.replace(/([\\[\\]{}()|=;+?,.*^$])/gi, '\\\\$1');\n return new RegExp('(?:^' + escapedName + '|;\\\\s*' + escapedName + ')=(.*?)(?:;|$)', 'g');\n }\n /**\n * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).\n *\n * @param encodedURIComponent A value representing an encoded URI component.\n *\n * @returns The unencoded version of an encoded component of a Uniform Resource Identifier (URI).\n *\n * @author: Stepan Suvorov\n * @since: 1.0.0\n */\n static safeDecodeURIComponent(encodedURIComponent) {\n try {\n return decodeURIComponent(encodedURIComponent);\n } catch {\n // probably it is not uri encoded. return as is\n return encodedURIComponent;\n }\n }\n /**\n * Return `true` if {@link Document} is accessible, otherwise return `false`\n *\n * @param name Cookie name\n * @returns boolean - whether cookie with specified name exists\n *\n * @author: Stepan Suvorov\n * @since: 1.0.0\n */\n check(name) {\n if (!this.documentIsAccessible) {\n return false;\n }\n name = encodeURIComponent(name);\n const regExp = CookieService.getCookieRegExp(name);\n return regExp.test(this.document.cookie);\n }\n /**\n * Get cookies by name\n *\n * @param name Cookie name\n * @returns property value\n *\n * @author: Stepan Suvorov\n * @since: 1.0.0\n */\n get(name) {\n if (this.documentIsAccessible && this.check(name)) {\n name = encodeURIComponent(name);\n const regExp = CookieService.getCookieRegExp(name);\n const result = regExp.exec(this.document.cookie);\n return result[1] ? CookieService.safeDecodeURIComponent(result[1]) : '';\n } else {\n return '';\n }\n }\n /**\n * Get all cookies in JSON format\n *\n * @returns all the cookies in json\n *\n * @author: Stepan Suvorov\n * @since: 1.0.0\n */\n getAll() {\n if (!this.documentIsAccessible) {\n return {};\n }\n const cookies = {};\n const document = this.document;\n if (document.cookie && document.cookie !== '') {\n document.cookie.split(';').forEach(currentCookie => {\n const [cookieName, cookieValue] = currentCookie.split('=');\n cookies[CookieService.safeDecodeURIComponent(cookieName.replace(/^ /, ''))] = CookieService.safeDecodeURIComponent(cookieValue);\n });\n }\n return cookies;\n }\n set(name, value, expiresOrOptions, path, domain, secure, sameSite, partitioned) {\n if (!this.documentIsAccessible) {\n return;\n }\n if (typeof expiresOrOptions === 'number' || expiresOrOptions instanceof Date || path || domain || secure || sameSite) {\n const optionsBody = {\n expires: expiresOrOptions,\n path,\n domain,\n secure,\n sameSite: sameSite ? sameSite : 'Lax',\n partitioned\n };\n this.set(name, value, optionsBody);\n return;\n }\n let cookieString = encodeURIComponent(name) + '=' + encodeURIComponent(value) + ';';\n const options = expiresOrOptions ? expiresOrOptions : {};\n if (options.expires) {\n if (typeof options.expires === 'number') {\n const dateExpires = new Date(new Date().getTime() + options.expires * 1000 * 60 * 60 * 24);\n cookieString += 'expires=' + dateExpires.toUTCString() + ';';\n } else {\n cookieString += 'expires=' + options.expires.toUTCString() + ';';\n }\n }\n if (options.path) {\n cookieString += 'path=' + options.path + ';';\n }\n if (options.domain) {\n cookieString += 'domain=' + options.domain + ';';\n }\n if (options.secure === false && options.sameSite === 'None') {\n options.secure = true;\n console.warn(`[ngx-cookie-service] Cookie ${name} was forced with secure flag because sameSite=None.` + `More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`);\n }\n if (options.secure) {\n cookieString += 'secure;';\n }\n if (!options.sameSite) {\n options.sameSite = 'Lax';\n }\n cookieString += 'sameSite=' + options.sameSite + ';';\n if (options.partitioned) {\n cookieString += 'Partitioned;';\n }\n this.document.cookie = cookieString;\n }\n /**\n * Delete cookie by name\n *\n * @param name Cookie name\n * @param path Cookie path\n * @param domain Cookie domain\n * @param secure Cookie secure flag\n * @param sameSite Cookie sameSite flag - https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite\n *\n * @author: Stepan Suvorov\n * @since: 1.0.0\n */\n delete(name, path, domain, secure, sameSite = 'Lax') {\n if (!this.documentIsAccessible) {\n return;\n }\n const expiresDate = new Date('Thu, 01 Jan 1970 00:00:01 GMT');\n this.set(name, '', {\n expires: expiresDate,\n path,\n domain,\n secure,\n sameSite\n });\n }\n /**\n * Delete all cookies\n *\n * @param path Cookie path\n * @param domain Cookie domain\n * @param secure Is the Cookie secure\n * @param sameSite Is the cookie same site\n *\n * @author: Stepan Suvorov\n * @since: 1.0.0\n */\n deleteAll(path, domain, secure, sameSite = 'Lax') {\n if (!this.documentIsAccessible) {\n return;\n }\n const cookies = this.getAll();\n for (const cookieName in cookies) {\n if (cookies.hasOwnProperty(cookieName)) {\n this.delete(cookieName, path, domain, secure, sameSite);\n }\n }\n }\n static {\n this.ɵfac = function CookieService_Factory(t) {\n return new (t || CookieService)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(PLATFORM_ID));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: CookieService,\n factory: CookieService.ɵfac,\n providedIn: 'root'\n });\n }\n }\n return CookieService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/*\n * Public API Surface of ngx-cookie-service\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CookieService };\n","import {Injectable} from '@angular/core';\nimport {ActivatedRoute, Router, UrlTree} from '@angular/router';\nimport {MatDialog} from '@angular/material/dialog';\n\nimport {AppSettingsService, SubdomainEnum} from './app-settings.service';\nimport {StorageService} from './storage.service';\nimport HoldingDiscriminator from '../shared/enums/HoldingDiscriminator.enum';\nimport {\n HoldingUnderManagementTabs,\n FundUnderManagementTabs,\n} from '../shared/types/GpTypes';\nimport {CookieService} from 'ngx-cookie-service';\nimport {TerraUtils} from '../shared/TerraUtils';\nimport {ClientDetailsResponse} from '../account/my-account/model/agentDetailsResponse.model';\nimport SectionsAccess from '../permission/enums/sectionsAccess.enum';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class RoutingService {\n readonly originFundParamName = 'origin';\n\n constructor(\n private router: Router,\n private dialogRef: MatDialog,\n private appSettings: AppSettingsService,\n private storageService: StorageService,\n private cookieService: CookieService,\n private activatedRoute: ActivatedRoute\n ) {\n /*\n // Close any opened dialog when route changes\n // router.events.pipe(\n // filter((event: RouterEvent) => event instanceof NavigationStart),\n // tap(() => {\n // this.dialogRef.closeAll();\n // }\n // )\n // ).subscribe();\n */\n }\n\n // There is an angular material open issue:\n // When redirecting when a dialog is opened, the class that prevents scrolling is not being removed\n // (as well as some other styles).\n // here we make sure they are removed when token expires and the user is redirected to the login page,\n // so that after being redirected back to the returnUrl, he will be able to scroll the page.\n removeDialogClassAndStyleFromHtml() {\n let classes = document.querySelector('html').getAttribute('class');\n classes = classes ? classes.replace('cdk-global-scrollblock', '') : '';\n document.querySelector('html').setAttribute('class', classes);\n\n let styles = document.querySelector('html').getAttribute('style');\n styles = styles ? styles.replace('left: 0px; top: 0px;', '') : '';\n document.querySelector('html').setAttribute('style', styles);\n }\n\n closeAllDialogs() {\n this.dialogRef.closeAll();\n this.removeDialogClassAndStyleFromHtml();\n }\n\n // getReferrerFromCookie():string{\n // return this.cookieService.get(this.appSettings.referrerCookieKey);\n // }\n\n // setReferrerToCookie(referrerData:string){\n\n // const date = new Date();\n\n // date.setDate(date.getFullYear() + 1);\n\n // this.cookieService.set(this.appSettings.referrerCookieKey, referrerData,date,'/', document.domain);\n // }\n\n navigateToLoginNoQuery() {\n this.dialogRef.closeAll();\n sessionStorage.clear();\n this.router.navigateByUrl(this.loginUrlBySubdomain);\n this.removeDialogClassAndStyleFromHtml();\n }\n\n navigateToLoginWithQuery(forceReload: boolean = false) {\n this.dialogRef.closeAll();\n sessionStorage.clear();\n this.removeDialogClassAndStyleFromHtml();\n let returnUrl = location.pathname + location.search;\n\n const isNotRegistered =\n !!this.activatedRoute.snapshot.queryParamMap.get('isRegistered') &&\n this.activatedRoute.snapshot.queryParamMap.get('isRegistered') ===\n 'False';\n\n if (returnUrl === '/' || returnUrl.toLowerCase() === this.maintenancePage) {\n returnUrl = '';\n }\n\n this.setReturnUrlInCookie(returnUrl);\n\n // force reload the page if the current URL is not the login page\n // forceReload added in order to solve a bug where the user got stuck on login page with blank screen after failed token refresh\n if (\n (window.location.pathname !== this.loginUrlBySubdomain || forceReload) &&\n !isNotRegistered\n ) {\n window.location.href = this.loginUrlBySubdomain + location.search;\n } else if (\n (window.location.pathname !== this.loginUrlBySubdomain || forceReload) &&\n isNotRegistered\n ) {\n window.location.href = this.signupUrlBySubdomain + location.search;\n }\n /* this.router.navigateByUrl(\n this.router.createUrlTree([this.loginUrlBySubdomain])\n );*/\n }\n\n getSignupUrlTree(\n clearQueryStringAndReturnURL = true,\n clearSessionStorage = true\n ): UrlTree {\n if (clearSessionStorage) {\n this.storageService.clear();\n }\n this.dialogRef.closeAll();\n\n let returnUrl = location.pathname + location.search;\n if (\n clearQueryStringAndReturnURL ||\n returnUrl === '/' ||\n returnUrl.toLowerCase() === this.maintenancePage\n ) {\n returnUrl = '';\n }\n const queryParams: any = {};\n\n const emailStartIndex = location.search.indexOf('email=');\n if (emailStartIndex > 0) {\n const emailEndIndex = location.search.indexOf('&', emailStartIndex);\n queryParams.email = location.search.substring(\n emailStartIndex + 6,\n emailEndIndex > 0 ? emailEndIndex : location.search.length\n );\n }\n\n const gpReferralKeyStartIndex = location.search.indexOf('gpref=');\n if (gpReferralKeyStartIndex > 0) {\n const gpReferralKeyEndIndex = location.search.indexOf(\n '&',\n gpReferralKeyStartIndex\n );\n queryParams.gpref = decodeURIComponent(\n location.search.substring(\n gpReferralKeyStartIndex + 6,\n gpReferralKeyEndIndex > 0\n ? gpReferralKeyEndIndex\n : location.search.length\n )\n );\n }\n\n this.setReturnUrlInCookie(returnUrl);\n\n return this.router.createUrlTree([this.signupUrlBySubdomain], {\n queryParams,\n });\n }\n\n getLoginUrlTree(\n clearQueryStringAndReturnURL = true,\n clearSessionStorage = true\n ): UrlTree {\n if (clearSessionStorage) {\n this.storageService.clear();\n }\n this.dialogRef.closeAll();\n\n let returnUrl = location.pathname + location.search;\n\n if (\n clearQueryStringAndReturnURL ||\n returnUrl === '/' ||\n returnUrl.toLowerCase() === this.maintenancePage\n ) {\n returnUrl = '';\n }\n const queryParams: any = {};\n\n const emailStartIndex = location.search.indexOf('email=');\n if (emailStartIndex > 0) {\n const emailEndIndex = location.search.indexOf('&', emailStartIndex);\n queryParams.email = location.search.substring(\n emailStartIndex + 6,\n emailEndIndex > 0 ? emailEndIndex : location.search.length\n );\n }\n\n const gpReferralKeyStartIndex = location.search.indexOf('gpref=');\n if (gpReferralKeyStartIndex > 0) {\n const gpReferralKeyEndIndex = location.search.indexOf(\n '&',\n gpReferralKeyStartIndex\n );\n queryParams.gpref = decodeURIComponent(\n location.search.substring(\n gpReferralKeyStartIndex + 6,\n gpReferralKeyEndIndex > 0\n ? gpReferralKeyEndIndex\n : location.search.length\n )\n );\n }\n this.setReturnUrlInCookie(returnUrl);\n\n return this.router.createUrlTree([this.loginUrlBySubdomain], {\n queryParams,\n });\n }\n\n serializeQueryParams(obj: any) {\n const str = [];\n for (const p in obj) {\n if (obj.hasOwnProperty(p)) {\n str.push(encodeURIComponent(p) + '=' + encodeURIComponent(obj[p]));\n }\n }\n return str.join('&');\n }\n\n get maintenancePage() {\n return '/maintenance';\n }\n\n get loginUrlBySubdomain() {\n const isGp = this.appSettings.subDomain === SubdomainEnum.GP;\n return isGp ? this.loginGpPage : this.loginLpPage;\n }\n\n get signupUrlBySubdomain() {\n const isGp = this.appSettings.subDomain === SubdomainEnum.GP;\n return isGp ? this.signupGpPage : this.signupLpPage;\n }\n\n get defaultLoggedInPageBySubdomain() {\n const isGp = this.appSettings.subDomain === SubdomainEnum.GP;\n return isGp ? this.defaultGpPage : this.lpHomePage;\n }\n\n get loginGpPage() {\n return `/account/login`;\n }\n\n get signupGpPage() {\n return `/account/signup`;\n }\n\n get loginLpPage() {\n return `/lp/login`;\n }\n\n get signupLpPage() {\n return `/lp/signup`;\n }\n\n get gpOnboardingPage() {\n return `/onboarding`;\n }\n\n get lpOnboardingPage() {\n return `/lp/onboarding`;\n }\n\n get lpOnboardingPageDefault() {\n return `/lp/onboarding/personal`;\n }\n\n get lpOnboardingPagePersonalDetails() {\n return this.lpOnboardingPage + `/personal`;\n }\n\n get lpOnboardingPageOrganizationDetails() {\n return this.lpOnboardingPage + `/organization`;\n }\n\n get gpAssetsPage() {\n return `/dashboard/assets`;\n }\n\n get gpFundsPage() {\n return '/dashboard/funds';\n }\n\n get lpHoldingsPage() {\n return `/lp/portfolio`;\n }\n\n get lpHomePage() {\n return this.lpHoldingsPage;\n }\n\n /** Page with a list of the holdings and their bank account (can be clicked and edited) */\n get lpBankAccounts() {\n return `/lp/bank-accounts`;\n }\n\n get lpDocuments() {\n return `/lp/documents`;\n }\n\n lpDocument(id) {\n return `/lp/documents/${id}`;\n }\n\n lpEditBankAccount(bankAccountId) {\n return `${this.lpBankAccounts}/${bankAccountId}/edit`;\n }\n\n get lpCreateBankAccount() {\n return `${this.lpBankAccounts}/create`;\n }\n\n get lpCreateUnitApplication() {\n return `${this.lpBankAccounts}/unit/application/create`;\n }\n\n lpEditUnitApplication(applicationId: number) {\n return `${this.lpBankAccounts}/unit/application/${applicationId}/edit`;\n }\n\n lpUnitApplication(applicationId: number) {\n return `${this.lpBankAccounts}/unit/application/${applicationId}`;\n }\n\n lpUnitBankAccount(accountId: number) {\n return `${this.lpBankAccounts}/unit/bank-account/${accountId}`;\n }\n\n lpCreateUnitPayment() {\n return `${this.lpBankAccounts}/unit/payment/create`;\n }\n\n lpUnitPaymentPage(paymentId: number) {\n return `${this.lpBankAccounts}/unit/payment/${paymentId}`;\n }\n\n lpUnitPaymentReviewPage(paymentId: number) {\n return `${this.lpBankAccounts}/unit/payment/${paymentId}/review`;\n }\n\n lpUnitPaymentConfirmationPage(paymentId: number) {\n return `${this.lpBankAccounts}/unit/payment/${paymentId}/confirmation`;\n }\n\n get insightsPage() {\n return `/dashboard/insights`;\n }\n\n get creBankAccounts() {\n return `/dashboard/bank-accounts/cre`;\n }\n\n contactsPage() {\n return `/dashboard/contacts`;\n }\n\n positionsPage() {\n return `/dashboard/positions`;\n }\n\n bankAccountsPage(\n tab: 'cre' | 'gp' | 'investors' | 'applications' | 'cre_accounts' | '' = ''\n ) {\n return `/dashboard/bank-accounts/${tab}`;\n }\n\n createBankApplicationPage() {\n return `/dashboard/bank-accounts/applications/create`;\n }\n\n createCrePayment() {\n return `/dashboard/bank-accounts/cre/payment/create`;\n }\n\n paymentPage(paymentId: number) {\n return `/dashboard/bank-accounts/cre/payment/${paymentId}`;\n }\n\n paymentReviewPage(paymentId: number) {\n return `/dashboard/bank-accounts/cre/payment/${paymentId}/review`;\n }\n\n paymentConfirmationPage(paymentId: number) {\n return `/dashboard/bank-accounts/cre/payment/${paymentId}/confirmation`;\n }\n\n bankApplicationPage(applicationId: number, holdingId: number = null) {\n const qParams = `${holdingId ? '?holdingId=' + holdingId : ''}`;\n return `/dashboard/bank-accounts/applications/${applicationId}${qParams}`;\n }\n\n bankApplicationDraftEditPage(\n applicationId: number,\n holdingId: number = null\n ) {\n const qParams = `${holdingId ? '?holdingId=' + holdingId : ''}`;\n return `/dashboard/bank-accounts/applications/${applicationId}/edit${qParams}`;\n }\n\n bankApplicationContinueCreatePage(applicationId: number) {\n return `/dashboard/bank-accounts/applications/${applicationId}/continue-create`;\n }\n\n createCreBankPage() {\n return `/dashboard/bank-accounts/cre/create`;\n }\n\n creBankAccountPage(id: number) {\n return `/dashboard/bank-accounts/cre/${id}`;\n }\n\n externalBankAccountPage(id: number) {\n return `/dashboard/bank-accounts/external/${id}`;\n }\n\n gpAssetPage(assetId: number) {\n return `/dashboard/assets/${assetId}`;\n }\n\n gpFundPage(fundId: number) {\n return `/dashboard/funds/${fundId}`;\n }\n\n createAsset() {\n return `${this.gpAssetsPage}/create`;\n }\n\n createDraftAsset() {\n return `${this.gpAssetsPage}/create-draft`;\n }\n\n editDraftAsset(assetId: number) {\n return `${this.gpAssetsPage}/${assetId}/edit`;\n }\n\n editDraftFund(fundId: number) {\n return `${this.gpFundsPage}/${fundId}/edit`;\n }\n\n createFund() {\n return `${this.gpFundsPage}/create`;\n }\n\n createFundAsset(fundId: number) {\n return `${this.gpFundPage(fundId)}/portfolio/create`;\n }\n\n createAssetInitialFundraising(assetId: number) {\n return `${this.gpAssetPage(assetId)}/start-fundraising`;\n }\n\n assetFundraising(assetId: number, fundraisingId: number) {\n return `${this.gpAssetPage(assetId)}/contributions/${fundraisingId}`;\n }\n\n assetCapitalCall(assetId: number, fundraisingId: number) {\n return `${this.assetFundraising(assetId, fundraisingId)}/capital-call`;\n }\n\n fundFundraising(fundId: number, fundraisingId: number) {\n return `${this.gpFundPage(fundId)}/contributions/${fundraisingId}`;\n }\n\n fundCapitalCall(fundId: number, fundraisingId: number) {\n return `${this.fundFundraising(fundId, fundraisingId)}/capital-call`;\n }\n\n createAssetFundraising(assetId: number) {\n return `${this.gpAssetPage(assetId)}/contributions/create`;\n }\n\n createFundFundraising(fundId: number) {\n return `${this.gpFundPage(fundId)}/contributions/create`;\n }\n\n gpAssetWithTab(\n assetId: number,\n tab: HoldingUnderManagementTabs = 'overview'\n ) {\n return `${this.gpAssetPage(assetId)}/${tab}`;\n }\n\n gpFundWithTab(fundId: number, tab: FundUnderManagementTabs = 'overview') {\n return `${this.gpFundPage(fundId)}/${tab}`;\n }\n\n createAssetReport(assetId: number) {\n return `${this.gpAssetPage(assetId)}/reports/create`;\n }\n\n createFundReport(fundId: number) {\n return `${this.gpFundPage(fundId)}/reports/create`;\n }\n\n gpAssetReport(assetId: number, reportId: number) {\n return `${this.gpAssetPage(assetId)}/reports/${reportId}`;\n }\n\n gpFundReport(fundId: number, reportId: number) {\n return `${this.gpFundPage(fundId)}/reports/${reportId}`;\n }\n\n assetReportFaqs(assetId: number, reportId: number) {\n return `${this.gpAssetPage(assetId)}/reports/${reportId}/faqs`;\n }\n\n fundReportFaqs(fundId: number, reportId: number) {\n return `${this.gpFundPage(fundId)}/reports/${reportId}/faqs`;\n }\n\n assetDistribution(assetId: number, distributionId: number) {\n return `${this.gpAssetPage(assetId)}/distributions/${distributionId}`;\n }\n\n fundDistribution(fundId: number, distributionId: number) {\n return `${this.gpFundPage(fundId)}/distributions/${distributionId}`;\n }\n\n assetEditDistribution(assetId: number, distributionId: number) {\n return `${this.gpAssetPage(assetId)}/distributions/${distributionId}/edit`;\n }\n\n fundEditDistribution(fundId: number, distributionId: number) {\n return `${this.gpFundPage(fundId)}/distributions/${distributionId}/edit`;\n }\n\n createAssetDistribution(assetId: number) {\n return `${this.gpAssetPage(assetId)}/distributions/create`;\n }\n\n createFundDistribution(fundId: number) {\n return `${this.gpFundPage(fundId)}/distributions/create`;\n }\n\n /** GP and LP account settings page */\n get myAccountPage() {\n const isGp = this.appSettings.subDomain === SubdomainEnum.GP;\n return isGp ? this.myAccountPageGp : this.myAccountPageLp;\n }\n\n /** GP account settings page */\n get myAccountPageGp() {\n return '/account/me';\n }\n\n /** LP account settings page */\n get myAccountPageLp() {\n return '/lp/profile';\n }\n\n get noAccess() {\n return '/no-access';\n }\n\n /** LP asset page, with a specific tab active */\n lpAsset(\n assetId: number,\n tab: 'information' | 'transactions' | 'documents' | 'capital-call' = null\n ) {\n return `${this.lpHoldingsPage}/a/${assetId}/${tab ? tab : ''}`;\n }\n\n /** LP fund page, with a specific tab active */\n lpFund(\n fundId: number,\n tab: 'information' | 'transactions' | 'documents' | 'capital-call' = null\n ) {\n return `${this.lpHoldingsPage}/f/${fundId}/${tab ? tab : ''}`;\n }\n\n lpOpportunities(opportunityId: string) {\n return `/lp/opportunity/${opportunityId}/campaign`;\n }\n\n lpOfferingDeck(opportunityId: string) {\n return `/lp/opportunity/${opportunityId}`;\n }\n\n lpOpportunityCampaign(opportunityId: string, holdingId: number) {\n return `${this.lpOpportunities(opportunityId)}/${holdingId}`;\n }\n\n /** Preview page for a holding document (for LP) */\n storageObjectPreviewPage(\n holdingId: number,\n holdingDiscriminator: HoldingDiscriminator,\n storageObjectId: number\n ) {\n switch (holdingDiscriminator) {\n case HoldingDiscriminator.Asset:\n return `${this.lpAsset(holdingId, 'documents')}/${storageObjectId}`;\n case HoldingDiscriminator.Fund:\n return `${this.lpFund(holdingId, 'documents')}/${storageObjectId}`;\n }\n }\n\n /** LP Holding (asset or fund) page with tab. The holding type should be provided. */\n lpHoldingPageWithTab(\n holdingId: number,\n holdingDiscriminator: HoldingDiscriminator,\n tab: 'information' | 'transactions' | 'documents' | 'capital-call' = null\n ) {\n switch (holdingDiscriminator) {\n case HoldingDiscriminator.Asset:\n return `${this.lpAsset(holdingId, tab)}`;\n case HoldingDiscriminator.Fund:\n return `${this.lpFund(holdingId, tab)}`;\n }\n }\n\n importAssetDistributions(assetId: number) {\n return `${this.gpAssetPage(assetId)}/distributions/import`;\n }\n\n importFundDistributions(fundId: number) {\n return `${this.gpFundPage(fundId)}/distributions/import`;\n }\n\n importFundContributions(holdingId: number) {\n return `${this.gpFundPage(holdingId)}/contributions/import`;\n }\n\n importAssetContributions(holdingId: number) {\n return `${this.gpAssetPage(holdingId)}/contributions/import`;\n }\n\n investorsManagement(holdingId: number, discriminator: HoldingDiscriminator) {\n return `${discriminator === HoldingDiscriminator.Asset ? this.gpAssetPage(holdingId) : this.gpFundPage(holdingId)}/investors-management`;\n }\n\n setReturnUrlInCookie(returnUrl: string) {\n if (!returnUrl || !this.isUrlToSetInCookie(returnUrl)) {\n return;\n }\n const expiresDate = new Date();\n expiresDate.setHours(expiresDate.getHours() + 1);\n this.cookieService.set(\n this.returnUrl,\n returnUrl,\n expiresDate,\n '/',\n document.domain\n );\n }\n\n readonly returnUrl: string = 'returnUrl';\n\n get getReturnUrlFromCookie() {\n const returnUrl = this.cookieService.get(this.returnUrl);\n if (!returnUrl) {\n return '';\n }\n return returnUrl;\n }\n\n removeReturnUrlFromCookie() {\n this.cookieService.delete(this.returnUrl, '/', document.domain);\n }\n\n goToReturnUrl(defaultUrl: string = '') {\n const returnUrl = this.getReturnUrlFromCookie;\n if (!!returnUrl) {\n this.router.navigateByUrl(returnUrl);\n } else {\n this.router.navigateByUrl(defaultUrl);\n }\n }\n\n get defaultGpPage(): string {\n const clientDetails =\n this.storageService.getCredentialsData() as ClientDetailsResponse;\n if (!clientDetails || !clientDetails.userPermission) {\n return this.gpAssetsPage;\n }\n\n const userAllowedSections = clientDetails.userPermission.allowedSections;\n if (\n SectionsAccess.isOn(userAllowedSections, SectionsAccess.All) ||\n SectionsAccess.isOn(userAllowedSections, SectionsAccess.Assets)\n ) {\n return this.gpAssetsPage;\n } else if (SectionsAccess.isOn(userAllowedSections, SectionsAccess.Funds)) {\n return this.gpFundsPage;\n } else if (\n SectionsAccess.isOn(userAllowedSections, SectionsAccess.Contacts)\n ) {\n return this.contactsPage();\n } else if (\n SectionsAccess.isOn(userAllowedSections, SectionsAccess.Positions)\n ) {\n return this.positionsPage();\n } else if (\n SectionsAccess.isOn(userAllowedSections, SectionsAccess.BankAccounts)\n ) {\n return this.bankAccountsPage();\n } else if (\n SectionsAccess.isOn(userAllowedSections, SectionsAccess.Insights)\n ) {\n return this.insightsPage;\n } else if (SectionsAccess.isOn(userAllowedSections, SectionsAccess.None)) {\n return this.myAccountPageGp;\n }\n }\n\n private isUrlToSetInCookie(returnUrl: string): boolean {\n if (returnUrl.indexOf(TerraUtils.consts.paths.EMAIL_CONFIRM) !== -1) {\n return false;\n }\n if (returnUrl.indexOf(TerraUtils.consts.paths.NOT_FOUND) !== -1) {\n return false;\n }\n if (\n returnUrl.indexOf(TerraUtils.consts.paths.TWO_FACTOR_VERIFICATION) !== -1\n ) {\n return false;\n }\n return true;\n }\n\n gpSignAgreementUrl(investmentId: number, identifier: string) {\n return `sign-request/${investmentId}/${identifier}/1`;\n }\n}\n","import * as i1 from '@angular/cdk/platform';\nimport * as i0 from '@angular/core';\nimport { InjectionToken, inject, booleanAttribute, Directive, Input, numberAttribute, ANIMATION_MODULE_TYPE, Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, Inject, NgModule } from '@angular/core';\nimport { FocusMonitor } from '@angular/cdk/a11y';\nimport { MatRippleLoader, MatCommonModule, MatRippleModule } from '@angular/material/core';\n\n/** Injection token that can be used to provide the default options the button component. */\nconst _c0 = [\"mat-button\", \"\"];\nconst _c1 = [[[\"\", 8, \"material-icons\", 3, \"iconPositionEnd\", \"\"], [\"mat-icon\", 3, \"iconPositionEnd\", \"\"], [\"\", \"matButtonIcon\", \"\", 3, \"iconPositionEnd\", \"\"]], \"*\", [[\"\", \"iconPositionEnd\", \"\", 8, \"material-icons\"], [\"mat-icon\", \"iconPositionEnd\", \"\"], [\"\", \"matButtonIcon\", \"\", \"iconPositionEnd\", \"\"]]];\nconst _c2 = [\".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])\", \"*\", \".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]\"];\nconst _c3 = \".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:\\\"\\\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:\\\"\\\";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:\\\"\\\"}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}\";\nconst _c4 = \".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}\";\nconst _c5 = [\"mat-fab\", \"\"];\nconst _c6 = [\"mat-mini-fab\", \"\"];\nconst _c7 = \".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:\\\"\\\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:\\\"\\\";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-mini-fab{background-color:var(--mdc-fab-small-container-color)}.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-small-icon-size);height:var(--mdc-fab-small-icon-size);font-size:var(--mdc-fab-small-icon-size)}.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:var(--mdc-extended-fab-container-shape)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:\\\"\\\";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:\\\"\\\"}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab[disabled],.mat-mdc-fab[disabled]:focus,.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-fab.mat-mdc-button-disabled:focus,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab[disabled]:focus,.mat-mdc-mini-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab.mat-mdc-button-disabled-interactive,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{box-shadow:var(--mdc-extended-fab-container-elevation-shadow)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}\";\nconst _c8 = [\"mat-icon-button\", \"\"];\nconst _c9 = [\"*\"];\nconst _c10 = \".mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:\\\"\\\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:\\\"\\\";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:\\\"\\\"}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}\";\nconst MAT_BUTTON_CONFIG = /*#__PURE__*/new InjectionToken('MAT_BUTTON_CONFIG');\n/** Shared host configuration for all buttons */\nconst MAT_BUTTON_HOST = {\n '[attr.disabled]': '_getDisabledAttribute()',\n '[attr.aria-disabled]': '_getAriaDisabled()',\n '[class.mat-mdc-button-disabled]': 'disabled',\n '[class.mat-mdc-button-disabled-interactive]': 'disabledInteractive',\n '[class._mat-animation-noopable]': '_animationMode === \"NoopAnimations\"',\n // MDC automatically applies the primary theme color to the button, but we want to support\n // an unthemed version. If color is undefined, apply a CSS class that makes it easy to\n // select and style this \"theme\".\n '[class.mat-unthemed]': '!color',\n // Add a class that applies to all buttons. This makes it easier to target if somebody\n // wants to target all Material buttons.\n '[class.mat-mdc-button-base]': 'true',\n '[class]': 'color ? \"mat-\" + color : \"\"'\n};\n/** List of classes to add to buttons instances based on host attribute selector. */\nconst HOST_SELECTOR_MDC_CLASS_PAIR = [{\n attribute: 'mat-button',\n mdcClasses: ['mdc-button', 'mat-mdc-button']\n}, {\n attribute: 'mat-flat-button',\n mdcClasses: ['mdc-button', 'mdc-button--unelevated', 'mat-mdc-unelevated-button']\n}, {\n attribute: 'mat-raised-button',\n mdcClasses: ['mdc-button', 'mdc-button--raised', 'mat-mdc-raised-button']\n}, {\n attribute: 'mat-stroked-button',\n mdcClasses: ['mdc-button', 'mdc-button--outlined', 'mat-mdc-outlined-button']\n}, {\n attribute: 'mat-fab',\n mdcClasses: ['mdc-fab', 'mat-mdc-fab']\n}, {\n attribute: 'mat-mini-fab',\n mdcClasses: ['mdc-fab', 'mdc-fab--mini', 'mat-mdc-mini-fab']\n}, {\n attribute: 'mat-icon-button',\n mdcClasses: ['mdc-icon-button', 'mat-mdc-icon-button']\n}];\n/** Base class for all buttons. */\nlet MatButtonBase = /*#__PURE__*/(() => {\n class MatButtonBase {\n /**\n * Reference to the MatRipple instance of the button.\n * @deprecated Considered an implementation detail. To be removed.\n * @breaking-change 17.0.0\n */\n get ripple() {\n return this._rippleLoader?.getRipple(this._elementRef.nativeElement);\n }\n set ripple(v) {\n this._rippleLoader?.attachRipple(this._elementRef.nativeElement, v);\n }\n /** Whether the ripple effect is disabled or not. */\n get disableRipple() {\n return this._disableRipple;\n }\n set disableRipple(value) {\n this._disableRipple = value;\n this._updateRippleDisabled();\n }\n /** Whether the button is disabled. */\n get disabled() {\n return this._disabled;\n }\n set disabled(value) {\n this._disabled = value;\n this._updateRippleDisabled();\n }\n constructor(_elementRef, _platform, _ngZone, _animationMode) {\n this._elementRef = _elementRef;\n this._platform = _platform;\n this._ngZone = _ngZone;\n this._animationMode = _animationMode;\n this._focusMonitor = inject(FocusMonitor);\n /**\n * Handles the lazy creation of the MatButton ripple.\n * Used to improve initial load time of large applications.\n */\n this._rippleLoader = inject(MatRippleLoader);\n /** Whether this button is a FAB. Used to apply the correct class on the ripple. */\n this._isFab = false;\n this._disableRipple = false;\n this._disabled = false;\n const config = inject(MAT_BUTTON_CONFIG, {\n optional: true\n });\n const element = _elementRef.nativeElement;\n const classList = element.classList;\n this.disabledInteractive = config?.disabledInteractive ?? false;\n this._rippleLoader?.configureRipple(element, {\n className: 'mat-mdc-button-ripple'\n });\n // For each of the variant selectors that is present in the button's host\n // attributes, add the correct corresponding MDC classes.\n for (const {\n attribute,\n mdcClasses\n } of HOST_SELECTOR_MDC_CLASS_PAIR) {\n if (element.hasAttribute(attribute)) {\n classList.add(...mdcClasses);\n }\n }\n }\n ngAfterViewInit() {\n this._focusMonitor.monitor(this._elementRef, true);\n }\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this._elementRef);\n this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);\n }\n /** Focuses the button. */\n focus(origin = 'program', options) {\n if (origin) {\n this._focusMonitor.focusVia(this._elementRef.nativeElement, origin, options);\n } else {\n this._elementRef.nativeElement.focus(options);\n }\n }\n _getAriaDisabled() {\n if (this.ariaDisabled != null) {\n return this.ariaDisabled;\n }\n return this.disabled && this.disabledInteractive ? true : null;\n }\n _getDisabledAttribute() {\n return this.disabledInteractive || !this.disabled ? null : true;\n }\n _updateRippleDisabled() {\n this._rippleLoader?.setDisabled(this._elementRef.nativeElement, this.disableRipple || this.disabled);\n }\n static {\n this.ɵfac = function MatButtonBase_Factory(t) {\n i0.ɵɵinvalidFactory();\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: MatButtonBase,\n inputs: {\n color: \"color\",\n disableRipple: [2, \"disableRipple\", \"disableRipple\", booleanAttribute],\n disabled: [2, \"disabled\", \"disabled\", booleanAttribute],\n ariaDisabled: [2, \"aria-disabled\", \"ariaDisabled\", booleanAttribute],\n disabledInteractive: [2, \"disabledInteractive\", \"disabledInteractive\", booleanAttribute]\n },\n features: [i0.ɵɵInputTransformsFeature]\n });\n }\n }\n return MatButtonBase;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/** Shared host configuration for buttons using the `` tag. */\nconst MAT_ANCHOR_HOST = {\n '[attr.disabled]': '_getDisabledAttribute()',\n '[class.mat-mdc-button-disabled]': 'disabled',\n '[class.mat-mdc-button-disabled-interactive]': 'disabledInteractive',\n '[class._mat-animation-noopable]': '_animationMode === \"NoopAnimations\"',\n // Note that we ignore the user-specified tabindex when it's disabled for\n // consistency with the `mat-button` applied on native buttons where even\n // though they have an index, they're not tabbable.\n '[attr.tabindex]': 'disabled && !disabledInteractive ? -1 : tabIndex',\n '[attr.aria-disabled]': '_getDisabledAttribute()',\n // MDC automatically applies the primary theme color to the button, but we want to support\n // an unthemed version. If color is undefined, apply a CSS class that makes it easy to\n // select and style this \"theme\".\n '[class.mat-unthemed]': '!color',\n // Add a class that applies to all buttons. This makes it easier to target if somebody\n // wants to target all Material buttons.\n '[class.mat-mdc-button-base]': 'true',\n '[class]': 'color ? \"mat-\" + color : \"\"'\n};\n/**\n * Anchor button base.\n */\nlet MatAnchorBase = /*#__PURE__*/(() => {\n class MatAnchorBase extends MatButtonBase {\n constructor(elementRef, platform, ngZone, animationMode) {\n super(elementRef, platform, ngZone, animationMode);\n this._haltDisabledEvents = event => {\n // A disabled button shouldn't apply any actions\n if (this.disabled) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n };\n }\n ngOnInit() {\n this._ngZone.runOutsideAngular(() => {\n this._elementRef.nativeElement.addEventListener('click', this._haltDisabledEvents);\n });\n }\n ngOnDestroy() {\n super.ngOnDestroy();\n this._elementRef.nativeElement.removeEventListener('click', this._haltDisabledEvents);\n }\n _getAriaDisabled() {\n return this.ariaDisabled == null ? this.disabled : this.ariaDisabled;\n }\n static {\n this.ɵfac = function MatAnchorBase_Factory(t) {\n i0.ɵɵinvalidFactory();\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: MatAnchorBase,\n inputs: {\n tabIndex: [2, \"tabIndex\", \"tabIndex\", value => {\n return value == null ? undefined : numberAttribute(value);\n }]\n },\n features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature]\n });\n }\n }\n return MatAnchorBase;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Material Design button component. Users interact with a button to perform an action.\n * See https://material.io/components/buttons\n *\n * The `MatButton` class applies to native button elements and captures the appearances for\n * \"text button\", \"outlined button\", and \"contained button\" per the Material Design\n * specification. `MatButton` additionally captures an additional \"flat\" appearance, which matches\n * \"contained\" but without elevation.\n */\nlet MatButton = /*#__PURE__*/(() => {\n class MatButton extends MatButtonBase {\n constructor(elementRef, platform, ngZone, animationMode) {\n super(elementRef, platform, ngZone, animationMode);\n }\n static {\n this.ɵfac = function MatButton_Factory(t) {\n return new (t || MatButton)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.Platform), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MatButton,\n selectors: [[\"button\", \"mat-button\", \"\"], [\"button\", \"mat-raised-button\", \"\"], [\"button\", \"mat-flat-button\", \"\"], [\"button\", \"mat-stroked-button\", \"\"]],\n hostVars: 14,\n hostBindings: function MatButton_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵattribute(\"disabled\", ctx._getDisabledAttribute())(\"aria-disabled\", ctx._getAriaDisabled());\n i0.ɵɵclassMap(ctx.color ? \"mat-\" + ctx.color : \"\");\n i0.ɵɵclassProp(\"mat-mdc-button-disabled\", ctx.disabled)(\"mat-mdc-button-disabled-interactive\", ctx.disabledInteractive)(\"_mat-animation-noopable\", ctx._animationMode === \"NoopAnimations\")(\"mat-unthemed\", !ctx.color)(\"mat-mdc-button-base\", true);\n }\n },\n exportAs: [\"matButton\"],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n attrs: _c0,\n ngContentSelectors: _c2,\n decls: 7,\n vars: 4,\n consts: [[1, \"mat-mdc-button-persistent-ripple\"], [1, \"mdc-button__label\"], [1, \"mat-mdc-focus-indicator\"], [1, \"mat-mdc-button-touch-target\"]],\n template: function MatButton_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c1);\n i0.ɵɵelement(0, \"span\", 0);\n i0.ɵɵprojection(1);\n i0.ɵɵelementStart(2, \"span\", 1);\n i0.ɵɵprojection(3, 1);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(4, 2);\n i0.ɵɵelement(5, \"span\", 2)(6, \"span\", 3);\n }\n if (rf & 2) {\n i0.ɵɵclassProp(\"mdc-button__ripple\", !ctx._isFab)(\"mdc-fab__ripple\", ctx._isFab);\n }\n },\n styles: [\".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:\\\"\\\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:\\\"\\\";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:\\\"\\\"}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}\", \".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}\"],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n }\n return MatButton;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Material Design button component for anchor elements. Anchor elements are used to provide\n * links for the user to navigate across different routes or pages.\n * See https://material.io/components/buttons\n *\n * The `MatAnchor` class applies to native anchor elements and captures the appearances for\n * \"text button\", \"outlined button\", and \"contained button\" per the Material Design\n * specification. `MatAnchor` additionally captures an additional \"flat\" appearance, which matches\n * \"contained\" but without elevation.\n */\nlet MatAnchor = /*#__PURE__*/(() => {\n class MatAnchor extends MatAnchorBase {\n constructor(elementRef, platform, ngZone, animationMode) {\n super(elementRef, platform, ngZone, animationMode);\n }\n static {\n this.ɵfac = function MatAnchor_Factory(t) {\n return new (t || MatAnchor)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.Platform), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MatAnchor,\n selectors: [[\"a\", \"mat-button\", \"\"], [\"a\", \"mat-raised-button\", \"\"], [\"a\", \"mat-flat-button\", \"\"], [\"a\", \"mat-stroked-button\", \"\"]],\n hostVars: 15,\n hostBindings: function MatAnchor_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵattribute(\"disabled\", ctx._getDisabledAttribute())(\"tabindex\", ctx.disabled && !ctx.disabledInteractive ? -1 : ctx.tabIndex)(\"aria-disabled\", ctx._getDisabledAttribute());\n i0.ɵɵclassMap(ctx.color ? \"mat-\" + ctx.color : \"\");\n i0.ɵɵclassProp(\"mat-mdc-button-disabled\", ctx.disabled)(\"mat-mdc-button-disabled-interactive\", ctx.disabledInteractive)(\"_mat-animation-noopable\", ctx._animationMode === \"NoopAnimations\")(\"mat-unthemed\", !ctx.color)(\"mat-mdc-button-base\", true);\n }\n },\n exportAs: [\"matButton\", \"matAnchor\"],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n attrs: _c0,\n ngContentSelectors: _c2,\n decls: 7,\n vars: 4,\n consts: [[1, \"mat-mdc-button-persistent-ripple\"], [1, \"mdc-button__label\"], [1, \"mat-mdc-focus-indicator\"], [1, \"mat-mdc-button-touch-target\"]],\n template: function MatAnchor_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c1);\n i0.ɵɵelement(0, \"span\", 0);\n i0.ɵɵprojection(1);\n i0.ɵɵelementStart(2, \"span\", 1);\n i0.ɵɵprojection(3, 1);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(4, 2);\n i0.ɵɵelement(5, \"span\", 2)(6, \"span\", 3);\n }\n if (rf & 2) {\n i0.ɵɵclassProp(\"mdc-button__ripple\", !ctx._isFab)(\"mdc-fab__ripple\", ctx._isFab);\n }\n },\n styles: [_c3, _c4],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n }\n return MatAnchor;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/** Injection token to be used to override the default options for FAB. */\nconst MAT_FAB_DEFAULT_OPTIONS = /*#__PURE__*/new InjectionToken('mat-mdc-fab-default-options', {\n providedIn: 'root',\n factory: MAT_FAB_DEFAULT_OPTIONS_FACTORY\n});\n/** @docs-private */\nfunction MAT_FAB_DEFAULT_OPTIONS_FACTORY() {\n return {\n // The FAB by default has its color set to accent.\n color: 'accent'\n };\n}\n// Default FAB configuration.\nconst defaults = /*#__PURE__*/MAT_FAB_DEFAULT_OPTIONS_FACTORY();\n/**\n * Material Design floating action button (FAB) component. These buttons represent the primary\n * or most common action for users to interact with.\n * See https://material.io/components/buttons-floating-action-button/\n *\n * The `MatFabButton` class has two appearances: normal and extended.\n */\nlet MatFabButton = /*#__PURE__*/(() => {\n class MatFabButton extends MatButtonBase {\n constructor(elementRef, platform, ngZone, animationMode, _options) {\n super(elementRef, platform, ngZone, animationMode);\n this._options = _options;\n this._isFab = true;\n this._options = this._options || defaults;\n this.color = this._options.color || defaults.color;\n }\n static {\n this.ɵfac = function MatFabButton_Factory(t) {\n return new (t || MatFabButton)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.Platform), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8), i0.ɵɵdirectiveInject(MAT_FAB_DEFAULT_OPTIONS, 8));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MatFabButton,\n selectors: [[\"button\", \"mat-fab\", \"\"]],\n hostVars: 18,\n hostBindings: function MatFabButton_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵattribute(\"disabled\", ctx._getDisabledAttribute())(\"aria-disabled\", ctx._getAriaDisabled());\n i0.ɵɵclassMap(ctx.color ? \"mat-\" + ctx.color : \"\");\n i0.ɵɵclassProp(\"mat-mdc-button-disabled\", ctx.disabled)(\"mat-mdc-button-disabled-interactive\", ctx.disabledInteractive)(\"_mat-animation-noopable\", ctx._animationMode === \"NoopAnimations\")(\"mat-unthemed\", !ctx.color)(\"mat-mdc-button-base\", true)(\"mdc-fab--extended\", ctx.extended)(\"mat-mdc-extended-fab\", ctx.extended);\n }\n },\n inputs: {\n extended: [2, \"extended\", \"extended\", booleanAttribute]\n },\n exportAs: [\"matButton\"],\n standalone: true,\n features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n attrs: _c5,\n ngContentSelectors: _c2,\n decls: 7,\n vars: 4,\n consts: [[1, \"mat-mdc-button-persistent-ripple\"], [1, \"mdc-button__label\"], [1, \"mat-mdc-focus-indicator\"], [1, \"mat-mdc-button-touch-target\"]],\n template: function MatFabButton_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c1);\n i0.ɵɵelement(0, \"span\", 0);\n i0.ɵɵprojection(1);\n i0.ɵɵelementStart(2, \"span\", 1);\n i0.ɵɵprojection(3, 1);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(4, 2);\n i0.ɵɵelement(5, \"span\", 2)(6, \"span\", 3);\n }\n if (rf & 2) {\n i0.ɵɵclassProp(\"mdc-button__ripple\", !ctx._isFab)(\"mdc-fab__ripple\", ctx._isFab);\n }\n },\n styles: [\".mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:\\\"\\\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:\\\"\\\";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-mini-fab{background-color:var(--mdc-fab-small-container-color)}.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-small-icon-size);height:var(--mdc-fab-small-icon-size);font-size:var(--mdc-fab-small-icon-size)}.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:var(--mdc-extended-fab-container-shape)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:\\\"\\\";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:\\\"\\\"}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab[disabled],.mat-mdc-fab[disabled]:focus,.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-fab.mat-mdc-button-disabled:focus,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab[disabled]:focus,.mat-mdc-mini-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab.mat-mdc-button-disabled-interactive,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{box-shadow:var(--mdc-extended-fab-container-elevation-shadow)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}\"],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n }\n return MatFabButton;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Material Design mini floating action button (FAB) component. These buttons represent the primary\n * or most common action for users to interact with.\n * See https://material.io/components/buttons-floating-action-button/\n */\nlet MatMiniFabButton = /*#__PURE__*/(() => {\n class MatMiniFabButton extends MatButtonBase {\n constructor(elementRef, platform, ngZone, animationMode, _options) {\n super(elementRef, platform, ngZone, animationMode);\n this._options = _options;\n this._isFab = true;\n this._options = this._options || defaults;\n this.color = this._options.color || defaults.color;\n }\n static {\n this.ɵfac = function MatMiniFabButton_Factory(t) {\n return new (t || MatMiniFabButton)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.Platform), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8), i0.ɵɵdirectiveInject(MAT_FAB_DEFAULT_OPTIONS, 8));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MatMiniFabButton,\n selectors: [[\"button\", \"mat-mini-fab\", \"\"]],\n hostVars: 14,\n hostBindings: function MatMiniFabButton_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵattribute(\"disabled\", ctx._getDisabledAttribute())(\"aria-disabled\", ctx._getAriaDisabled());\n i0.ɵɵclassMap(ctx.color ? \"mat-\" + ctx.color : \"\");\n i0.ɵɵclassProp(\"mat-mdc-button-disabled\", ctx.disabled)(\"mat-mdc-button-disabled-interactive\", ctx.disabledInteractive)(\"_mat-animation-noopable\", ctx._animationMode === \"NoopAnimations\")(\"mat-unthemed\", !ctx.color)(\"mat-mdc-button-base\", true);\n }\n },\n exportAs: [\"matButton\"],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n attrs: _c6,\n ngContentSelectors: _c2,\n decls: 7,\n vars: 4,\n consts: [[1, \"mat-mdc-button-persistent-ripple\"], [1, \"mdc-button__label\"], [1, \"mat-mdc-focus-indicator\"], [1, \"mat-mdc-button-touch-target\"]],\n template: function MatMiniFabButton_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c1);\n i0.ɵɵelement(0, \"span\", 0);\n i0.ɵɵprojection(1);\n i0.ɵɵelementStart(2, \"span\", 1);\n i0.ɵɵprojection(3, 1);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(4, 2);\n i0.ɵɵelement(5, \"span\", 2)(6, \"span\", 3);\n }\n if (rf & 2) {\n i0.ɵɵclassProp(\"mdc-button__ripple\", !ctx._isFab)(\"mdc-fab__ripple\", ctx._isFab);\n }\n },\n styles: [_c7],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n }\n return MatMiniFabButton;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Material Design floating action button (FAB) component for anchor elements. Anchor elements\n * are used to provide links for the user to navigate across different routes or pages.\n * See https://material.io/components/buttons-floating-action-button/\n *\n * The `MatFabAnchor` class has two appearances: normal and extended.\n */\nlet MatFabAnchor = /*#__PURE__*/(() => {\n class MatFabAnchor extends MatAnchor {\n constructor(elementRef, platform, ngZone, animationMode, _options) {\n super(elementRef, platform, ngZone, animationMode);\n this._options = _options;\n this._isFab = true;\n this._options = this._options || defaults;\n this.color = this._options.color || defaults.color;\n }\n static {\n this.ɵfac = function MatFabAnchor_Factory(t) {\n return new (t || MatFabAnchor)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.Platform), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8), i0.ɵɵdirectiveInject(MAT_FAB_DEFAULT_OPTIONS, 8));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MatFabAnchor,\n selectors: [[\"a\", \"mat-fab\", \"\"]],\n hostVars: 19,\n hostBindings: function MatFabAnchor_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵattribute(\"disabled\", ctx._getDisabledAttribute())(\"tabindex\", ctx.disabled && !ctx.disabledInteractive ? -1 : ctx.tabIndex)(\"aria-disabled\", ctx._getDisabledAttribute());\n i0.ɵɵclassMap(ctx.color ? \"mat-\" + ctx.color : \"\");\n i0.ɵɵclassProp(\"mat-mdc-button-disabled\", ctx.disabled)(\"mat-mdc-button-disabled-interactive\", ctx.disabledInteractive)(\"_mat-animation-noopable\", ctx._animationMode === \"NoopAnimations\")(\"mat-unthemed\", !ctx.color)(\"mat-mdc-button-base\", true)(\"mdc-fab--extended\", ctx.extended)(\"mat-mdc-extended-fab\", ctx.extended);\n }\n },\n inputs: {\n extended: [2, \"extended\", \"extended\", booleanAttribute]\n },\n exportAs: [\"matButton\", \"matAnchor\"],\n standalone: true,\n features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n attrs: _c5,\n ngContentSelectors: _c2,\n decls: 7,\n vars: 4,\n consts: [[1, \"mat-mdc-button-persistent-ripple\"], [1, \"mdc-button__label\"], [1, \"mat-mdc-focus-indicator\"], [1, \"mat-mdc-button-touch-target\"]],\n template: function MatFabAnchor_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c1);\n i0.ɵɵelement(0, \"span\", 0);\n i0.ɵɵprojection(1);\n i0.ɵɵelementStart(2, \"span\", 1);\n i0.ɵɵprojection(3, 1);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(4, 2);\n i0.ɵɵelement(5, \"span\", 2)(6, \"span\", 3);\n }\n if (rf & 2) {\n i0.ɵɵclassProp(\"mdc-button__ripple\", !ctx._isFab)(\"mdc-fab__ripple\", ctx._isFab);\n }\n },\n styles: [_c7],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n }\n return MatFabAnchor;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Material Design mini floating action button (FAB) component for anchor elements. Anchor elements\n * are used to provide links for the user to navigate across different routes or pages.\n * See https://material.io/components/buttons-floating-action-button/\n */\nlet MatMiniFabAnchor = /*#__PURE__*/(() => {\n class MatMiniFabAnchor extends MatAnchor {\n constructor(elementRef, platform, ngZone, animationMode, _options) {\n super(elementRef, platform, ngZone, animationMode);\n this._options = _options;\n this._isFab = true;\n this._options = this._options || defaults;\n this.color = this._options.color || defaults.color;\n }\n static {\n this.ɵfac = function MatMiniFabAnchor_Factory(t) {\n return new (t || MatMiniFabAnchor)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.Platform), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8), i0.ɵɵdirectiveInject(MAT_FAB_DEFAULT_OPTIONS, 8));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MatMiniFabAnchor,\n selectors: [[\"a\", \"mat-mini-fab\", \"\"]],\n hostVars: 15,\n hostBindings: function MatMiniFabAnchor_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵattribute(\"disabled\", ctx._getDisabledAttribute())(\"tabindex\", ctx.disabled && !ctx.disabledInteractive ? -1 : ctx.tabIndex)(\"aria-disabled\", ctx._getDisabledAttribute());\n i0.ɵɵclassMap(ctx.color ? \"mat-\" + ctx.color : \"\");\n i0.ɵɵclassProp(\"mat-mdc-button-disabled\", ctx.disabled)(\"mat-mdc-button-disabled-interactive\", ctx.disabledInteractive)(\"_mat-animation-noopable\", ctx._animationMode === \"NoopAnimations\")(\"mat-unthemed\", !ctx.color)(\"mat-mdc-button-base\", true);\n }\n },\n exportAs: [\"matButton\", \"matAnchor\"],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n attrs: _c6,\n ngContentSelectors: _c2,\n decls: 7,\n vars: 4,\n consts: [[1, \"mat-mdc-button-persistent-ripple\"], [1, \"mdc-button__label\"], [1, \"mat-mdc-focus-indicator\"], [1, \"mat-mdc-button-touch-target\"]],\n template: function MatMiniFabAnchor_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c1);\n i0.ɵɵelement(0, \"span\", 0);\n i0.ɵɵprojection(1);\n i0.ɵɵelementStart(2, \"span\", 1);\n i0.ɵɵprojection(3, 1);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(4, 2);\n i0.ɵɵelement(5, \"span\", 2)(6, \"span\", 3);\n }\n if (rf & 2) {\n i0.ɵɵclassProp(\"mdc-button__ripple\", !ctx._isFab)(\"mdc-fab__ripple\", ctx._isFab);\n }\n },\n styles: [_c7],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n }\n return MatMiniFabAnchor;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Material Design icon button component. This type of button displays a single interactive icon for\n * users to perform an action.\n * See https://material.io/develop/web/components/buttons/icon-buttons/\n */\nlet MatIconButton = /*#__PURE__*/(() => {\n class MatIconButton extends MatButtonBase {\n constructor(elementRef, platform, ngZone, animationMode) {\n super(elementRef, platform, ngZone, animationMode);\n this._rippleLoader.configureRipple(this._elementRef.nativeElement, {\n centered: true\n });\n }\n static {\n this.ɵfac = function MatIconButton_Factory(t) {\n return new (t || MatIconButton)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.Platform), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MatIconButton,\n selectors: [[\"button\", \"mat-icon-button\", \"\"]],\n hostVars: 14,\n hostBindings: function MatIconButton_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵattribute(\"disabled\", ctx._getDisabledAttribute())(\"aria-disabled\", ctx._getAriaDisabled());\n i0.ɵɵclassMap(ctx.color ? \"mat-\" + ctx.color : \"\");\n i0.ɵɵclassProp(\"mat-mdc-button-disabled\", ctx.disabled)(\"mat-mdc-button-disabled-interactive\", ctx.disabledInteractive)(\"_mat-animation-noopable\", ctx._animationMode === \"NoopAnimations\")(\"mat-unthemed\", !ctx.color)(\"mat-mdc-button-base\", true);\n }\n },\n exportAs: [\"matButton\"],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n attrs: _c8,\n ngContentSelectors: _c9,\n decls: 4,\n vars: 0,\n consts: [[1, \"mat-mdc-button-persistent-ripple\", \"mdc-icon-button__ripple\"], [1, \"mat-mdc-focus-indicator\"], [1, \"mat-mdc-button-touch-target\"]],\n template: function MatIconButton_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵelement(0, \"span\", 0);\n i0.ɵɵprojection(1);\n i0.ɵɵelement(2, \"span\", 1)(3, \"span\", 2);\n }\n },\n styles: [\".mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:\\\"\\\";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:\\\"\\\";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:\\\"\\\"}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}\", _c4],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n }\n return MatIconButton;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Material Design icon button component for anchor elements. This button displays a single\n * interaction icon that allows users to navigate across different routes or pages.\n * See https://material.io/develop/web/components/buttons/icon-buttons/\n */\nlet MatIconAnchor = /*#__PURE__*/(() => {\n class MatIconAnchor extends MatAnchorBase {\n constructor(elementRef, platform, ngZone, animationMode) {\n super(elementRef, platform, ngZone, animationMode);\n }\n static {\n this.ɵfac = function MatIconAnchor_Factory(t) {\n return new (t || MatIconAnchor)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.Platform), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(ANIMATION_MODULE_TYPE, 8));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MatIconAnchor,\n selectors: [[\"a\", \"mat-icon-button\", \"\"]],\n hostVars: 15,\n hostBindings: function MatIconAnchor_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵattribute(\"disabled\", ctx._getDisabledAttribute())(\"tabindex\", ctx.disabled && !ctx.disabledInteractive ? -1 : ctx.tabIndex)(\"aria-disabled\", ctx._getDisabledAttribute());\n i0.ɵɵclassMap(ctx.color ? \"mat-\" + ctx.color : \"\");\n i0.ɵɵclassProp(\"mat-mdc-button-disabled\", ctx.disabled)(\"mat-mdc-button-disabled-interactive\", ctx.disabledInteractive)(\"_mat-animation-noopable\", ctx._animationMode === \"NoopAnimations\")(\"mat-unthemed\", !ctx.color)(\"mat-mdc-button-base\", true);\n }\n },\n exportAs: [\"matButton\", \"matAnchor\"],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n attrs: _c8,\n ngContentSelectors: _c9,\n decls: 4,\n vars: 0,\n consts: [[1, \"mat-mdc-button-persistent-ripple\", \"mdc-icon-button__ripple\"], [1, \"mat-mdc-focus-indicator\"], [1, \"mat-mdc-button-touch-target\"]],\n template: function MatIconAnchor_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵelement(0, \"span\", 0);\n i0.ɵɵprojection(1);\n i0.ɵɵelement(2, \"span\", 1)(3, \"span\", 2);\n }\n },\n styles: [_c10, _c4],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n }\n return MatIconAnchor;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet MatButtonModule = /*#__PURE__*/(() => {\n class MatButtonModule {\n static {\n this.ɵfac = function MatButtonModule_Factory(t) {\n return new (t || MatButtonModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: MatButtonModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [MatCommonModule, MatRippleModule, MatCommonModule]\n });\n }\n }\n return MatButtonModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_BUTTON_CONFIG, MAT_FAB_DEFAULT_OPTIONS, MAT_FAB_DEFAULT_OPTIONS_FACTORY, MatAnchor, MatButton, MatButtonModule, MatFabAnchor, MatFabButton, MatIconAnchor, MatIconButton, MatMiniFabAnchor, MatMiniFabButton };\n","import * as i0 from '@angular/core';\nimport { SecurityContext, Injectable, Optional, Inject, SkipSelf, ErrorHandler, InjectionToken, inject, booleanAttribute, Component, ViewEncapsulation, ChangeDetectionStrategy, Attribute, Input, NgModule } from '@angular/core';\nimport { MatCommonModule } from '@angular/material/core';\nimport { DOCUMENT } from '@angular/common';\nimport { of, throwError, forkJoin, Subscription } from 'rxjs';\nimport { tap, map, catchError, finalize, share, take } from 'rxjs/operators';\nimport * as i1 from '@angular/common/http';\nimport { HttpClient } from '@angular/common/http';\nimport * as i2 from '@angular/platform-browser';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n/**\n * The Trusted Types policy, or null if Trusted Types are not\n * enabled/supported, or undefined if the policy has not been created yet.\n */\nconst _c0 = [\"*\"];\nlet policy;\n/**\n * Returns the Trusted Types policy, or null if Trusted Types are not\n * enabled/supported. The first call to this function will create the policy.\n */\nfunction getPolicy() {\n if (policy === undefined) {\n policy = null;\n if (typeof window !== 'undefined') {\n const ttWindow = window;\n if (ttWindow.trustedTypes !== undefined) {\n policy = ttWindow.trustedTypes.createPolicy('angular#components', {\n createHTML: s => s\n });\n }\n }\n }\n return policy;\n}\n/**\n * Unsafely promote a string to a TrustedHTML, falling back to strings when\n * Trusted Types are not available.\n * @security This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that the\n * provided string will never cause an XSS vulnerability if used in a context\n * that will be interpreted as HTML by a browser, e.g. when assigning to\n * element.innerHTML.\n */\nfunction trustedHTMLFromString(html) {\n return getPolicy()?.createHTML(html) || html;\n}\n\n/**\n * Returns an exception to be thrown in the case when attempting to\n * load an icon with a name that cannot be found.\n * @docs-private\n */\nfunction getMatIconNameNotFoundError(iconName) {\n return Error(`Unable to find icon with the name \"${iconName}\"`);\n}\n/**\n * Returns an exception to be thrown when the consumer attempts to use\n * `` without including @angular/common/http.\n * @docs-private\n */\nfunction getMatIconNoHttpProviderError() {\n return Error('Could not find HttpClient provider for use with Angular Material icons. ' + 'Please include the HttpClientModule from @angular/common/http in your ' + 'app imports.');\n}\n/**\n * Returns an exception to be thrown when a URL couldn't be sanitized.\n * @param url URL that was attempted to be sanitized.\n * @docs-private\n */\nfunction getMatIconFailedToSanitizeUrlError(url) {\n return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL ` + `via Angular's DomSanitizer. Attempted URL was \"${url}\".`);\n}\n/**\n * Returns an exception to be thrown when a HTML string couldn't be sanitized.\n * @param literal HTML that was attempted to be sanitized.\n * @docs-private\n */\nfunction getMatIconFailedToSanitizeLiteralError(literal) {\n return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by ` + `Angular's DomSanitizer. Attempted literal was \"${literal}\".`);\n}\n/**\n * Configuration for an icon, including the URL and possibly the cached SVG element.\n * @docs-private\n */\nclass SvgIconConfig {\n constructor(url, svgText, options) {\n this.url = url;\n this.svgText = svgText;\n this.options = options;\n }\n}\n/**\n * Service to register and display icons used by the `` component.\n * - Registers icon URLs by namespace and name.\n * - Registers icon set URLs by namespace.\n * - Registers aliases for CSS classes, for use with icon fonts.\n * - Loads icons from URLs and extracts individual icons from icon sets.\n */\nlet MatIconRegistry = /*#__PURE__*/(() => {\n class MatIconRegistry {\n constructor(_httpClient, _sanitizer, document, _errorHandler) {\n this._httpClient = _httpClient;\n this._sanitizer = _sanitizer;\n this._errorHandler = _errorHandler;\n /**\n * URLs and cached SVG elements for individual icons. Keys are of the format \"[namespace]:[icon]\".\n */\n this._svgIconConfigs = new Map();\n /**\n * SvgIconConfig objects and cached SVG elements for icon sets, keyed by namespace.\n * Multiple icon sets can be registered under the same namespace.\n */\n this._iconSetConfigs = new Map();\n /** Cache for icons loaded by direct URLs. */\n this._cachedIconsByUrl = new Map();\n /** In-progress icon fetches. Used to coalesce multiple requests to the same URL. */\n this._inProgressUrlFetches = new Map();\n /** Map from font identifiers to their CSS class names. Used for icon fonts. */\n this._fontCssClassesByAlias = new Map();\n /** Registered icon resolver functions. */\n this._resolvers = [];\n /**\n * The CSS classes to apply when an `` component has no icon name, url, or font\n * specified. The default 'material-icons' value assumes that the material icon font has been\n * loaded as described at https://google.github.io/material-design-icons/#icon-font-for-the-web\n */\n this._defaultFontSetClass = ['material-icons', 'mat-ligature-font'];\n this._document = document;\n }\n /**\n * Registers an icon by URL in the default namespace.\n * @param iconName Name under which the icon should be registered.\n * @param url\n */\n addSvgIcon(iconName, url, options) {\n return this.addSvgIconInNamespace('', iconName, url, options);\n }\n /**\n * Registers an icon using an HTML string in the default namespace.\n * @param iconName Name under which the icon should be registered.\n * @param literal SVG source of the icon.\n */\n addSvgIconLiteral(iconName, literal, options) {\n return this.addSvgIconLiteralInNamespace('', iconName, literal, options);\n }\n /**\n * Registers an icon by URL in the specified namespace.\n * @param namespace Namespace in which the icon should be registered.\n * @param iconName Name under which the icon should be registered.\n * @param url\n */\n addSvgIconInNamespace(namespace, iconName, url, options) {\n return this._addSvgIconConfig(namespace, iconName, new SvgIconConfig(url, null, options));\n }\n /**\n * Registers an icon resolver function with the registry. The function will be invoked with the\n * name and namespace of an icon when the registry tries to resolve the URL from which to fetch\n * the icon. The resolver is expected to return a `SafeResourceUrl` that points to the icon,\n * an object with the icon URL and icon options, or `null` if the icon is not supported. Resolvers\n * will be invoked in the order in which they have been registered.\n * @param resolver Resolver function to be registered.\n */\n addSvgIconResolver(resolver) {\n this._resolvers.push(resolver);\n return this;\n }\n /**\n * Registers an icon using an HTML string in the specified namespace.\n * @param namespace Namespace in which the icon should be registered.\n * @param iconName Name under which the icon should be registered.\n * @param literal SVG source of the icon.\n */\n addSvgIconLiteralInNamespace(namespace, iconName, literal, options) {\n const cleanLiteral = this._sanitizer.sanitize(SecurityContext.HTML, literal);\n // TODO: add an ngDevMode check\n if (!cleanLiteral) {\n throw getMatIconFailedToSanitizeLiteralError(literal);\n }\n // Security: The literal is passed in as SafeHtml, and is thus trusted.\n const trustedLiteral = trustedHTMLFromString(cleanLiteral);\n return this._addSvgIconConfig(namespace, iconName, new SvgIconConfig('', trustedLiteral, options));\n }\n /**\n * Registers an icon set by URL in the default namespace.\n * @param url\n */\n addSvgIconSet(url, options) {\n return this.addSvgIconSetInNamespace('', url, options);\n }\n /**\n * Registers an icon set using an HTML string in the default namespace.\n * @param literal SVG source of the icon set.\n */\n addSvgIconSetLiteral(literal, options) {\n return this.addSvgIconSetLiteralInNamespace('', literal, options);\n }\n /**\n * Registers an icon set by URL in the specified namespace.\n * @param namespace Namespace in which to register the icon set.\n * @param url\n */\n addSvgIconSetInNamespace(namespace, url, options) {\n return this._addSvgIconSetConfig(namespace, new SvgIconConfig(url, null, options));\n }\n /**\n * Registers an icon set using an HTML string in the specified namespace.\n * @param namespace Namespace in which to register the icon set.\n * @param literal SVG source of the icon set.\n */\n addSvgIconSetLiteralInNamespace(namespace, literal, options) {\n const cleanLiteral = this._sanitizer.sanitize(SecurityContext.HTML, literal);\n if (!cleanLiteral) {\n throw getMatIconFailedToSanitizeLiteralError(literal);\n }\n // Security: The literal is passed in as SafeHtml, and is thus trusted.\n const trustedLiteral = trustedHTMLFromString(cleanLiteral);\n return this._addSvgIconSetConfig(namespace, new SvgIconConfig('', trustedLiteral, options));\n }\n /**\n * Defines an alias for CSS class names to be used for icon fonts. Creating an matIcon\n * component with the alias as the fontSet input will cause the class name to be applied\n * to the `` element.\n *\n * If the registered font is a ligature font, then don't forget to also include the special\n * class `mat-ligature-font` to allow the usage via attribute. So register like this:\n *\n * ```ts\n * iconRegistry.registerFontClassAlias('f1', 'font1 mat-ligature-font');\n * ```\n *\n * And use like this:\n *\n * ```html\n * \n * ```\n *\n * @param alias Alias for the font.\n * @param classNames Class names override to be used instead of the alias.\n */\n registerFontClassAlias(alias, classNames = alias) {\n this._fontCssClassesByAlias.set(alias, classNames);\n return this;\n }\n /**\n * Returns the CSS class name associated with the alias by a previous call to\n * registerFontClassAlias. If no CSS class has been associated, returns the alias unmodified.\n */\n classNameForFontAlias(alias) {\n return this._fontCssClassesByAlias.get(alias) || alias;\n }\n /**\n * Sets the CSS classes to be used for icon fonts when an `` component does not\n * have a fontSet input value, and is not loading an icon by name or URL.\n */\n setDefaultFontSetClass(...classNames) {\n this._defaultFontSetClass = classNames;\n return this;\n }\n /**\n * Returns the CSS classes to be used for icon fonts when an `` component does not\n * have a fontSet input value, and is not loading an icon by name or URL.\n */\n getDefaultFontSetClass() {\n return this._defaultFontSetClass;\n }\n /**\n * Returns an Observable that produces the icon (as an `` DOM element) from the given URL.\n * The response from the URL may be cached so this will not always cause an HTTP request, but\n * the produced element will always be a new copy of the originally fetched icon. (That is,\n * it will not contain any modifications made to elements previously returned).\n *\n * @param safeUrl URL from which to fetch the SVG icon.\n */\n getSvgIconFromUrl(safeUrl) {\n const url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, safeUrl);\n if (!url) {\n throw getMatIconFailedToSanitizeUrlError(safeUrl);\n }\n const cachedIcon = this._cachedIconsByUrl.get(url);\n if (cachedIcon) {\n return of(cloneSvg(cachedIcon));\n }\n return this._loadSvgIconFromConfig(new SvgIconConfig(safeUrl, null)).pipe(tap(svg => this._cachedIconsByUrl.set(url, svg)), map(svg => cloneSvg(svg)));\n }\n /**\n * Returns an Observable that produces the icon (as an `` DOM element) with the given name\n * and namespace. The icon must have been previously registered with addIcon or addIconSet;\n * if not, the Observable will throw an error.\n *\n * @param name Name of the icon to be retrieved.\n * @param namespace Namespace in which to look for the icon.\n */\n getNamedSvgIcon(name, namespace = '') {\n const key = iconKey(namespace, name);\n let config = this._svgIconConfigs.get(key);\n // Return (copy of) cached icon if possible.\n if (config) {\n return this._getSvgFromConfig(config);\n }\n // Otherwise try to resolve the config from one of the resolver functions.\n config = this._getIconConfigFromResolvers(namespace, name);\n if (config) {\n this._svgIconConfigs.set(key, config);\n return this._getSvgFromConfig(config);\n }\n // See if we have any icon sets registered for the namespace.\n const iconSetConfigs = this._iconSetConfigs.get(namespace);\n if (iconSetConfigs) {\n return this._getSvgFromIconSetConfigs(name, iconSetConfigs);\n }\n return throwError(getMatIconNameNotFoundError(key));\n }\n ngOnDestroy() {\n this._resolvers = [];\n this._svgIconConfigs.clear();\n this._iconSetConfigs.clear();\n this._cachedIconsByUrl.clear();\n }\n /**\n * Returns the cached icon for a SvgIconConfig if available, or fetches it from its URL if not.\n */\n _getSvgFromConfig(config) {\n if (config.svgText) {\n // We already have the SVG element for this icon, return a copy.\n return of(cloneSvg(this._svgElementFromConfig(config)));\n } else {\n // Fetch the icon from the config's URL, cache it, and return a copy.\n return this._loadSvgIconFromConfig(config).pipe(map(svg => cloneSvg(svg)));\n }\n }\n /**\n * Attempts to find an icon with the specified name in any of the SVG icon sets.\n * First searches the available cached icons for a nested element with a matching name, and\n * if found copies the element to a new `` element. If not found, fetches all icon sets\n * that have not been cached, and searches again after all fetches are completed.\n * The returned Observable produces the SVG element if possible, and throws\n * an error if no icon with the specified name can be found.\n */\n _getSvgFromIconSetConfigs(name, iconSetConfigs) {\n // For all the icon set SVG elements we've fetched, see if any contain an icon with the\n // requested name.\n const namedIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);\n if (namedIcon) {\n // We could cache namedIcon in _svgIconConfigs, but since we have to make a copy every\n // time anyway, there's probably not much advantage compared to just always extracting\n // it from the icon set.\n return of(namedIcon);\n }\n // Not found in any cached icon sets. If there are icon sets with URLs that we haven't\n // fetched, fetch them now and look for iconName in the results.\n const iconSetFetchRequests = iconSetConfigs.filter(iconSetConfig => !iconSetConfig.svgText).map(iconSetConfig => {\n return this._loadSvgIconSetFromConfig(iconSetConfig).pipe(catchError(err => {\n const url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, iconSetConfig.url);\n // Swallow errors fetching individual URLs so the\n // combined Observable won't necessarily fail.\n const errorMessage = `Loading icon set URL: ${url} failed: ${err.message}`;\n this._errorHandler.handleError(new Error(errorMessage));\n return of(null);\n }));\n });\n // Fetch all the icon set URLs. When the requests complete, every IconSet should have a\n // cached SVG element (unless the request failed), and we can check again for the icon.\n return forkJoin(iconSetFetchRequests).pipe(map(() => {\n const foundIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);\n // TODO: add an ngDevMode check\n if (!foundIcon) {\n throw getMatIconNameNotFoundError(name);\n }\n return foundIcon;\n }));\n }\n /**\n * Searches the cached SVG elements for the given icon sets for a nested icon element whose \"id\"\n * tag matches the specified name. If found, copies the nested element to a new SVG element and\n * returns it. Returns null if no matching element is found.\n */\n _extractIconWithNameFromAnySet(iconName, iconSetConfigs) {\n // Iterate backwards, so icon sets added later have precedence.\n for (let i = iconSetConfigs.length - 1; i >= 0; i--) {\n const config = iconSetConfigs[i];\n // Parsing the icon set's text into an SVG element can be expensive. We can avoid some of\n // the parsing by doing a quick check using `indexOf` to see if there's any chance for the\n // icon to be in the set. This won't be 100% accurate, but it should help us avoid at least\n // some of the parsing.\n if (config.svgText && config.svgText.toString().indexOf(iconName) > -1) {\n const svg = this._svgElementFromConfig(config);\n const foundIcon = this._extractSvgIconFromSet(svg, iconName, config.options);\n if (foundIcon) {\n return foundIcon;\n }\n }\n }\n return null;\n }\n /**\n * Loads the content of the icon URL specified in the SvgIconConfig and creates an SVG element\n * from it.\n */\n _loadSvgIconFromConfig(config) {\n return this._fetchIcon(config).pipe(tap(svgText => config.svgText = svgText), map(() => this._svgElementFromConfig(config)));\n }\n /**\n * Loads the content of the icon set URL specified in the\n * SvgIconConfig and attaches it to the config.\n */\n _loadSvgIconSetFromConfig(config) {\n if (config.svgText) {\n return of(null);\n }\n return this._fetchIcon(config).pipe(tap(svgText => config.svgText = svgText));\n }\n /**\n * Searches the cached element of the given SvgIconConfig for a nested icon element whose \"id\"\n * tag matches the specified name. If found, copies the nested element to a new SVG element and\n * returns it. Returns null if no matching element is found.\n */\n _extractSvgIconFromSet(iconSet, iconName, options) {\n // Use the `id=\"iconName\"` syntax in order to escape special\n // characters in the ID (versus using the #iconName syntax).\n const iconSource = iconSet.querySelector(`[id=\"${iconName}\"]`);\n if (!iconSource) {\n return null;\n }\n // Clone the element and remove the ID to prevent multiple elements from being added\n // to the page with the same ID.\n const iconElement = iconSource.cloneNode(true);\n iconElement.removeAttribute('id');\n // If the icon node is itself an node, clone and return it directly. If not, set it as\n // the content of a new node.\n if (iconElement.nodeName.toLowerCase() === 'svg') {\n return this._setSvgAttributes(iconElement, options);\n }\n // If the node is a , it won't be rendered so we have to convert it into . Note\n // that the same could be achieved by referring to it via , however the \n // tag is problematic on Firefox, because it needs to include the current page path.\n if (iconElement.nodeName.toLowerCase() === 'symbol') {\n return this._setSvgAttributes(this._toSvgElement(iconElement), options);\n }\n // createElement('SVG') doesn't work as expected; the DOM ends up with\n // the correct nodes, but the SVG content doesn't render. Instead we\n // have to create an empty SVG node using innerHTML and append its content.\n // Elements created using DOMParser.parseFromString have the same problem.\n // http://stackoverflow.com/questions/23003278/svg-innerhtml-in-firefox-can-not-display\n const svg = this._svgElementFromString(trustedHTMLFromString(' '));\n // Clone the node so we don't remove it from the parent icon set element.\n svg.appendChild(iconElement);\n return this._setSvgAttributes(svg, options);\n }\n /**\n * Creates a DOM element from the given SVG string.\n */\n _svgElementFromString(str) {\n const div = this._document.createElement('DIV');\n div.innerHTML = str;\n const svg = div.querySelector('svg');\n // TODO: add an ngDevMode check\n if (!svg) {\n throw Error(' tag not found');\n }\n return svg;\n }\n /**\n * Converts an element into an SVG node by cloning all of its children.\n */\n _toSvgElement(element) {\n const svg = this._svgElementFromString(trustedHTMLFromString(' '));\n const attributes = element.attributes;\n // Copy over all the attributes from the `symbol` to the new SVG, except the id.\n for (let i = 0; i < attributes.length; i++) {\n const {\n name,\n value\n } = attributes[i];\n if (name !== 'id') {\n svg.setAttribute(name, value);\n }\n }\n for (let i = 0; i < element.childNodes.length; i++) {\n if (element.childNodes[i].nodeType === this._document.ELEMENT_NODE) {\n svg.appendChild(element.childNodes[i].cloneNode(true));\n }\n }\n return svg;\n }\n /**\n * Sets the default attributes for an SVG element to be used as an icon.\n */\n _setSvgAttributes(svg, options) {\n svg.setAttribute('fit', '');\n svg.setAttribute('height', '100%');\n svg.setAttribute('width', '100%');\n svg.setAttribute('preserveAspectRatio', 'xMidYMid meet');\n svg.setAttribute('focusable', 'false'); // Disable IE11 default behavior to make SVGs focusable.\n if (options && options.viewBox) {\n svg.setAttribute('viewBox', options.viewBox);\n }\n return svg;\n }\n /**\n * Returns an Observable which produces the string contents of the given icon. Results may be\n * cached, so future calls with the same URL may not cause another HTTP request.\n */\n _fetchIcon(iconConfig) {\n const {\n url: safeUrl,\n options\n } = iconConfig;\n const withCredentials = options?.withCredentials ?? false;\n if (!this._httpClient) {\n throw getMatIconNoHttpProviderError();\n }\n // TODO: add an ngDevMode check\n if (safeUrl == null) {\n throw Error(`Cannot fetch icon from URL \"${safeUrl}\".`);\n }\n const url = this._sanitizer.sanitize(SecurityContext.RESOURCE_URL, safeUrl);\n // TODO: add an ngDevMode check\n if (!url) {\n throw getMatIconFailedToSanitizeUrlError(safeUrl);\n }\n // Store in-progress fetches to avoid sending a duplicate request for a URL when there is\n // already a request in progress for that URL. It's necessary to call share() on the\n // Observable returned by http.get() so that multiple subscribers don't cause multiple XHRs.\n const inProgressFetch = this._inProgressUrlFetches.get(url);\n if (inProgressFetch) {\n return inProgressFetch;\n }\n const req = this._httpClient.get(url, {\n responseType: 'text',\n withCredentials\n }).pipe(map(svg => {\n // Security: This SVG is fetched from a SafeResourceUrl, and is thus\n // trusted HTML.\n return trustedHTMLFromString(svg);\n }), finalize(() => this._inProgressUrlFetches.delete(url)), share());\n this._inProgressUrlFetches.set(url, req);\n return req;\n }\n /**\n * Registers an icon config by name in the specified namespace.\n * @param namespace Namespace in which to register the icon config.\n * @param iconName Name under which to register the config.\n * @param config Config to be registered.\n */\n _addSvgIconConfig(namespace, iconName, config) {\n this._svgIconConfigs.set(iconKey(namespace, iconName), config);\n return this;\n }\n /**\n * Registers an icon set config in the specified namespace.\n * @param namespace Namespace in which to register the icon config.\n * @param config Config to be registered.\n */\n _addSvgIconSetConfig(namespace, config) {\n const configNamespace = this._iconSetConfigs.get(namespace);\n if (configNamespace) {\n configNamespace.push(config);\n } else {\n this._iconSetConfigs.set(namespace, [config]);\n }\n return this;\n }\n /** Parses a config's text into an SVG element. */\n _svgElementFromConfig(config) {\n if (!config.svgElement) {\n const svg = this._svgElementFromString(config.svgText);\n this._setSvgAttributes(svg, config.options);\n config.svgElement = svg;\n }\n return config.svgElement;\n }\n /** Tries to create an icon config through the registered resolver functions. */\n _getIconConfigFromResolvers(namespace, name) {\n for (let i = 0; i < this._resolvers.length; i++) {\n const result = this._resolvers[i](name, namespace);\n if (result) {\n return isSafeUrlWithOptions(result) ? new SvgIconConfig(result.url, null, result.options) : new SvgIconConfig(result, null);\n }\n }\n return undefined;\n }\n static {\n this.ɵfac = function MatIconRegistry_Factory(t) {\n return new (t || MatIconRegistry)(i0.ɵɵinject(i1.HttpClient, 8), i0.ɵɵinject(i2.DomSanitizer), i0.ɵɵinject(DOCUMENT, 8), i0.ɵɵinject(i0.ErrorHandler));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: MatIconRegistry,\n factory: MatIconRegistry.ɵfac,\n providedIn: 'root'\n });\n }\n }\n return MatIconRegistry;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/** @docs-private */\nfunction ICON_REGISTRY_PROVIDER_FACTORY(parentRegistry, httpClient, sanitizer, errorHandler, document) {\n return parentRegistry || new MatIconRegistry(httpClient, sanitizer, document, errorHandler);\n}\n/** @docs-private */\nconst ICON_REGISTRY_PROVIDER = {\n // If there is already an MatIconRegistry available, use that. Otherwise, provide a new one.\n provide: MatIconRegistry,\n deps: [[/*#__PURE__*/new Optional(), /*#__PURE__*/new SkipSelf(), MatIconRegistry], [/*#__PURE__*/new Optional(), HttpClient], DomSanitizer, ErrorHandler, [/*#__PURE__*/new Optional(), DOCUMENT]],\n useFactory: ICON_REGISTRY_PROVIDER_FACTORY\n};\n/** Clones an SVGElement while preserving type information. */\nfunction cloneSvg(svg) {\n return svg.cloneNode(true);\n}\n/** Returns the cache key to use for an icon namespace and name. */\nfunction iconKey(namespace, name) {\n return namespace + ':' + name;\n}\nfunction isSafeUrlWithOptions(value) {\n return !!(value.url && value.options);\n}\n\n/** Injection token to be used to override the default options for `mat-icon`. */\nconst MAT_ICON_DEFAULT_OPTIONS = /*#__PURE__*/new InjectionToken('MAT_ICON_DEFAULT_OPTIONS');\n/**\n * Injection token used to provide the current location to `MatIcon`.\n * Used to handle server-side rendering and to stub out during unit tests.\n * @docs-private\n */\nconst MAT_ICON_LOCATION = /*#__PURE__*/new InjectionToken('mat-icon-location', {\n providedIn: 'root',\n factory: MAT_ICON_LOCATION_FACTORY\n});\n/** @docs-private */\nfunction MAT_ICON_LOCATION_FACTORY() {\n const _document = inject(DOCUMENT);\n const _location = _document ? _document.location : null;\n return {\n // Note that this needs to be a function, rather than a property, because Angular\n // will only resolve it once, but we want the current path on each call.\n getPathname: () => _location ? _location.pathname + _location.search : ''\n };\n}\n/** SVG attributes that accept a FuncIRI (e.g. `url()`). */\nconst funcIriAttributes = ['clip-path', 'color-profile', 'src', 'cursor', 'fill', 'filter', 'marker', 'marker-start', 'marker-mid', 'marker-end', 'mask', 'stroke'];\n/** Selector that can be used to find all elements that are using a `FuncIRI`. */\nconst funcIriAttributeSelector = /*#__PURE__*/ /*#__PURE__*/funcIriAttributes.map(attr => `[${attr}]`).join(', ');\n/** Regex that can be used to extract the id out of a FuncIRI. */\nconst funcIriPattern = /^url\\(['\"]?#(.*?)['\"]?\\)$/;\n/**\n * Component to display an icon. It can be used in the following ways:\n *\n * - Specify the svgIcon input to load an SVG icon from a URL previously registered with the\n * addSvgIcon, addSvgIconInNamespace, addSvgIconSet, or addSvgIconSetInNamespace methods of\n * MatIconRegistry. If the svgIcon value contains a colon it is assumed to be in the format\n * \"[namespace]:[name]\", if not the value will be the name of an icon in the default namespace.\n * Examples:\n * ` \n * `\n *\n * - Use a font ligature as an icon by putting the ligature text in the `fontIcon` attribute or the\n * content of the `` component. If you register a custom font class, don't forget to also\n * include the special class `mat-ligature-font`. It is recommended to use the attribute alternative\n * to prevent the ligature text to be selectable and to appear in search engine results.\n * By default, the Material icons font is used as described at\n * http://google.github.io/material-design-icons/#icon-font-for-the-web. You can specify an\n * alternate font by setting the fontSet input to either the CSS class to apply to use the\n * desired font, or to an alias previously registered with MatIconRegistry.registerFontClassAlias.\n * Examples:\n * ` \n * home \n * \n * sun `\n *\n * - Specify a font glyph to be included via CSS rules by setting the fontSet input to specify the\n * font, and the fontIcon input to specify the icon. Typically the fontIcon will specify a\n * CSS class which causes the glyph to be displayed via a :before selector, as in\n * https://fortawesome.github.io/Font-Awesome/examples/\n * Example:\n * ` `\n */\nlet MatIcon = /*#__PURE__*/(() => {\n class MatIcon {\n /** Theme palette color of the icon. */\n get color() {\n return this._color || this._defaultColor;\n }\n set color(value) {\n this._color = value;\n }\n /** Name of the icon in the SVG icon set. */\n get svgIcon() {\n return this._svgIcon;\n }\n set svgIcon(value) {\n if (value !== this._svgIcon) {\n if (value) {\n this._updateSvgIcon(value);\n } else if (this._svgIcon) {\n this._clearSvgElement();\n }\n this._svgIcon = value;\n }\n }\n /** Font set that the icon is a part of. */\n get fontSet() {\n return this._fontSet;\n }\n set fontSet(value) {\n const newValue = this._cleanupFontValue(value);\n if (newValue !== this._fontSet) {\n this._fontSet = newValue;\n this._updateFontIconClasses();\n }\n }\n /** Name of an icon within a font set. */\n get fontIcon() {\n return this._fontIcon;\n }\n set fontIcon(value) {\n const newValue = this._cleanupFontValue(value);\n if (newValue !== this._fontIcon) {\n this._fontIcon = newValue;\n this._updateFontIconClasses();\n }\n }\n constructor(_elementRef, _iconRegistry, ariaHidden, _location, _errorHandler, defaults) {\n this._elementRef = _elementRef;\n this._iconRegistry = _iconRegistry;\n this._location = _location;\n this._errorHandler = _errorHandler;\n /**\n * Whether the icon should be inlined, automatically sizing the icon to match the font size of\n * the element the icon is contained in.\n */\n this.inline = false;\n this._previousFontSetClass = [];\n /** Subscription to the current in-progress SVG icon request. */\n this._currentIconFetch = Subscription.EMPTY;\n if (defaults) {\n if (defaults.color) {\n this.color = this._defaultColor = defaults.color;\n }\n if (defaults.fontSet) {\n this.fontSet = defaults.fontSet;\n }\n }\n // If the user has not explicitly set aria-hidden, mark the icon as hidden, as this is\n // the right thing to do for the majority of icon use-cases.\n if (!ariaHidden) {\n _elementRef.nativeElement.setAttribute('aria-hidden', 'true');\n }\n }\n /**\n * Splits an svgIcon binding value into its icon set and icon name components.\n * Returns a 2-element array of [(icon set), (icon name)].\n * The separator for the two fields is ':'. If there is no separator, an empty\n * string is returned for the icon set and the entire value is returned for\n * the icon name. If the argument is falsy, returns an array of two empty strings.\n * Throws an error if the name contains two or more ':' separators.\n * Examples:\n * `'social:cake' -> ['social', 'cake']\n * 'penguin' -> ['', 'penguin']\n * null -> ['', '']\n * 'a:b:c' -> (throws Error)`\n */\n _splitIconName(iconName) {\n if (!iconName) {\n return ['', ''];\n }\n const parts = iconName.split(':');\n switch (parts.length) {\n case 1:\n return ['', parts[0]];\n // Use default namespace.\n case 2:\n return parts;\n default:\n throw Error(`Invalid icon name: \"${iconName}\"`);\n // TODO: add an ngDevMode check\n }\n }\n ngOnInit() {\n // Update font classes because ngOnChanges won't be called if none of the inputs are present,\n // e.g. arrow In this case we need to add a CSS class for the default font.\n this._updateFontIconClasses();\n }\n ngAfterViewChecked() {\n const cachedElements = this._elementsWithExternalReferences;\n if (cachedElements && cachedElements.size) {\n const newPath = this._location.getPathname();\n // We need to check whether the URL has changed on each change detection since\n // the browser doesn't have an API that will let us react on link clicks and\n // we can't depend on the Angular router. The references need to be updated,\n // because while most browsers don't care whether the URL is correct after\n // the first render, Safari will break if the user navigates to a different\n // page and the SVG isn't re-rendered.\n if (newPath !== this._previousPath) {\n this._previousPath = newPath;\n this._prependPathToReferences(newPath);\n }\n }\n }\n ngOnDestroy() {\n this._currentIconFetch.unsubscribe();\n if (this._elementsWithExternalReferences) {\n this._elementsWithExternalReferences.clear();\n }\n }\n _usingFontIcon() {\n return !this.svgIcon;\n }\n _setSvgElement(svg) {\n this._clearSvgElement();\n // Note: we do this fix here, rather than the icon registry, because the\n // references have to point to the URL at the time that the icon was created.\n const path = this._location.getPathname();\n this._previousPath = path;\n this._cacheChildrenWithExternalReferences(svg);\n this._prependPathToReferences(path);\n this._elementRef.nativeElement.appendChild(svg);\n }\n _clearSvgElement() {\n const layoutElement = this._elementRef.nativeElement;\n let childCount = layoutElement.childNodes.length;\n if (this._elementsWithExternalReferences) {\n this._elementsWithExternalReferences.clear();\n }\n // Remove existing non-element child nodes and SVGs, and add the new SVG element. Note that\n // we can't use innerHTML, because IE will throw if the element has a data binding.\n while (childCount--) {\n const child = layoutElement.childNodes[childCount];\n // 1 corresponds to Node.ELEMENT_NODE. We remove all non-element nodes in order to get rid\n // of any loose text nodes, as well as any SVG elements in order to remove any old icons.\n if (child.nodeType !== 1 || child.nodeName.toLowerCase() === 'svg') {\n child.remove();\n }\n }\n }\n _updateFontIconClasses() {\n if (!this._usingFontIcon()) {\n return;\n }\n const elem = this._elementRef.nativeElement;\n const fontSetClasses = (this.fontSet ? this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/) : this._iconRegistry.getDefaultFontSetClass()).filter(className => className.length > 0);\n this._previousFontSetClass.forEach(className => elem.classList.remove(className));\n fontSetClasses.forEach(className => elem.classList.add(className));\n this._previousFontSetClass = fontSetClasses;\n if (this.fontIcon !== this._previousFontIconClass && !fontSetClasses.includes('mat-ligature-font')) {\n if (this._previousFontIconClass) {\n elem.classList.remove(this._previousFontIconClass);\n }\n if (this.fontIcon) {\n elem.classList.add(this.fontIcon);\n }\n this._previousFontIconClass = this.fontIcon;\n }\n }\n /**\n * Cleans up a value to be used as a fontIcon or fontSet.\n * Since the value ends up being assigned as a CSS class, we\n * have to trim the value and omit space-separated values.\n */\n _cleanupFontValue(value) {\n return typeof value === 'string' ? value.trim().split(' ')[0] : value;\n }\n /**\n * Prepends the current path to all elements that have an attribute pointing to a `FuncIRI`\n * reference. This is required because WebKit browsers require references to be prefixed with\n * the current path, if the page has a `base` tag.\n */\n _prependPathToReferences(path) {\n const elements = this._elementsWithExternalReferences;\n if (elements) {\n elements.forEach((attrs, element) => {\n attrs.forEach(attr => {\n element.setAttribute(attr.name, `url('${path}#${attr.value}')`);\n });\n });\n }\n }\n /**\n * Caches the children of an SVG element that have `url()`\n * references that we need to prefix with the current path.\n */\n _cacheChildrenWithExternalReferences(element) {\n const elementsWithFuncIri = element.querySelectorAll(funcIriAttributeSelector);\n const elements = this._elementsWithExternalReferences = this._elementsWithExternalReferences || new Map();\n for (let i = 0; i < elementsWithFuncIri.length; i++) {\n funcIriAttributes.forEach(attr => {\n const elementWithReference = elementsWithFuncIri[i];\n const value = elementWithReference.getAttribute(attr);\n const match = value ? value.match(funcIriPattern) : null;\n if (match) {\n let attributes = elements.get(elementWithReference);\n if (!attributes) {\n attributes = [];\n elements.set(elementWithReference, attributes);\n }\n attributes.push({\n name: attr,\n value: match[1]\n });\n }\n });\n }\n }\n /** Sets a new SVG icon with a particular name. */\n _updateSvgIcon(rawName) {\n this._svgNamespace = null;\n this._svgName = null;\n this._currentIconFetch.unsubscribe();\n if (rawName) {\n const [namespace, iconName] = this._splitIconName(rawName);\n if (namespace) {\n this._svgNamespace = namespace;\n }\n if (iconName) {\n this._svgName = iconName;\n }\n this._currentIconFetch = this._iconRegistry.getNamedSvgIcon(iconName, namespace).pipe(take(1)).subscribe(svg => this._setSvgElement(svg), err => {\n const errorMessage = `Error retrieving icon ${namespace}:${iconName}! ${err.message}`;\n this._errorHandler.handleError(new Error(errorMessage));\n });\n }\n }\n static {\n this.ɵfac = function MatIcon_Factory(t) {\n return new (t || MatIcon)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(MatIconRegistry), i0.ɵɵinjectAttribute('aria-hidden'), i0.ɵɵdirectiveInject(MAT_ICON_LOCATION), i0.ɵɵdirectiveInject(i0.ErrorHandler), i0.ɵɵdirectiveInject(MAT_ICON_DEFAULT_OPTIONS, 8));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MatIcon,\n selectors: [[\"mat-icon\"]],\n hostAttrs: [\"role\", \"img\", 1, \"mat-icon\", \"notranslate\"],\n hostVars: 10,\n hostBindings: function MatIcon_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵattribute(\"data-mat-icon-type\", ctx._usingFontIcon() ? \"font\" : \"svg\")(\"data-mat-icon-name\", ctx._svgName || ctx.fontIcon)(\"data-mat-icon-namespace\", ctx._svgNamespace || ctx.fontSet)(\"fontIcon\", ctx._usingFontIcon() ? ctx.fontIcon : null);\n i0.ɵɵclassMap(ctx.color ? \"mat-\" + ctx.color : \"\");\n i0.ɵɵclassProp(\"mat-icon-inline\", ctx.inline)(\"mat-icon-no-color\", ctx.color !== \"primary\" && ctx.color !== \"accent\" && ctx.color !== \"warn\");\n }\n },\n inputs: {\n color: \"color\",\n inline: [2, \"inline\", \"inline\", booleanAttribute],\n svgIcon: \"svgIcon\",\n fontSet: \"fontSet\",\n fontIcon: \"fontIcon\"\n },\n exportAs: [\"matIcon\"],\n standalone: true,\n features: [i0.ɵɵInputTransformsFeature, i0.ɵɵStandaloneFeature],\n ngContentSelectors: _c0,\n decls: 1,\n vars: 0,\n template: function MatIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵprojection(0);\n }\n },\n styles: [\"mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\"],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n }\n return MatIcon;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet MatIconModule = /*#__PURE__*/(() => {\n class MatIconModule {\n static {\n this.ɵfac = function MatIconModule_Factory(t) {\n return new (t || MatIconModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: MatIconModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [MatCommonModule, MatCommonModule]\n });\n }\n }\n return MatIconModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ICON_REGISTRY_PROVIDER, ICON_REGISTRY_PROVIDER_FACTORY, MAT_ICON_DEFAULT_OPTIONS, MAT_ICON_LOCATION, MAT_ICON_LOCATION_FACTORY, MatIcon, MatIconModule, MatIconRegistry, getMatIconFailedToSanitizeLiteralError, getMatIconFailedToSanitizeUrlError, getMatIconNameNotFoundError, getMatIconNoHttpProviderError };\n","import { CommonModule } from '@angular/common';\nimport { Component, Input } from '@angular/core';\n\n@Component({\n selector: 'terra-loader',\n templateUrl: './loader.component.html',\n styleUrl :'./loader.component.scss',\n imports: [CommonModule],\n standalone: true,\n})\nexport class LoaderComponent {\n @Input() centerToParent: boolean;\n}\n","\n","export enum FinancialPermissionLevel {\n None = 0,\n Hidden = 1,\n AuthorizedSignatory = 2,\n NonSignatory = 3\n}\n\nexport namespace FinancialPermissionLevel {\n export function toString(financialPermissionLevel: FinancialPermissionLevel): string {\n switch (financialPermissionLevel) {\n case FinancialPermissionLevel.None:\n return 'None';\n case FinancialPermissionLevel.Hidden:\n return 'Hidden Bank Accounts';\n case FinancialPermissionLevel.AuthorizedSignatory:\n return 'Authorized Signatory';\n case FinancialPermissionLevel.NonSignatory:\n return 'Non-Signatory';\n default:\n return null;\n }\n }\n\n export function listAll(): FinancialPermissionLevel[] {\n return [FinancialPermissionLevel.AuthorizedSignatory, FinancialPermissionLevel.NonSignatory];\n }\n\n export function parse(fpl: string): FinancialPermissionLevel {\n return FinancialPermissionLevel[fpl];\n }\n}\n","import * as i0 from '@angular/core';\nimport { InjectionToken, booleanAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Optional, Input, Directive, QueryList, EventEmitter, inject, Injector, afterNextRender, TemplateRef, ContentChildren, ViewChild, ContentChild, Output, ChangeDetectorRef, Self, NgModule } from '@angular/core';\nimport * as i1 from '@angular/cdk/a11y';\nimport { FocusKeyManager, isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader } from '@angular/cdk/a11y';\nimport { UP_ARROW, DOWN_ARROW, RIGHT_ARROW, LEFT_ARROW, ESCAPE, hasModifierKey, ENTER, SPACE } from '@angular/cdk/keycodes';\nimport { Subject, merge, Subscription, of, asapScheduler } from 'rxjs';\nimport { startWith, switchMap, takeUntil, filter, take, delay } from 'rxjs/operators';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport { MatRipple, MatRippleModule, MatCommonModule } from '@angular/material/core';\nimport { TemplatePortal, DomPortalOutlet } from '@angular/cdk/portal';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport * as i3 from '@angular/cdk/bidi';\nimport * as i1$1 from '@angular/cdk/overlay';\nimport { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';\nimport { normalizePassiveListenerOptions } from '@angular/cdk/platform';\nimport { CdkScrollableModule } from '@angular/cdk/scrolling';\n\n/**\n * Injection token used to provide the parent menu to menu-specific components.\n * @docs-private\n */\nconst _c0 = [\"mat-menu-item\", \"\"];\nconst _c1 = [[[\"mat-icon\"], [\"\", \"matMenuItemIcon\", \"\"]], \"*\"];\nconst _c2 = [\"mat-icon, [matMenuItemIcon]\", \"*\"];\nfunction MatMenuItem_Conditional_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 2);\n i0.ɵɵelement(1, \"polygon\", 3);\n i0.ɵɵelementEnd();\n }\n}\nconst _c3 = [\"*\"];\nfunction MatMenu_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 0);\n i0.ɵɵlistener(\"keydown\", function MatMenu_ng_template_0_Template_div_keydown_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1._handleKeydown($event));\n })(\"click\", function MatMenu_ng_template_0_Template_div_click_0_listener() {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.closed.emit(\"click\"));\n })(\"@transformMenu.start\", function MatMenu_ng_template_0_Template_div_animation_transformMenu_start_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1._onAnimationStart($event));\n })(\"@transformMenu.done\", function MatMenu_ng_template_0_Template_div_animation_transformMenu_done_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1._onAnimationDone($event));\n });\n i0.ɵɵelementStart(1, \"div\", 1);\n i0.ɵɵprojection(2);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵclassMap(ctx_r1._classList);\n i0.ɵɵproperty(\"id\", ctx_r1.panelId)(\"@transformMenu\", ctx_r1._panelAnimationState);\n i0.ɵɵattribute(\"aria-label\", ctx_r1.ariaLabel || null)(\"aria-labelledby\", ctx_r1.ariaLabelledby || null)(\"aria-describedby\", ctx_r1.ariaDescribedby || null);\n }\n}\nconst MAT_MENU_PANEL = /*#__PURE__*/new InjectionToken('MAT_MENU_PANEL');\n\n/**\n * Single item inside a `mat-menu`. Provides the menu item styling and accessibility treatment.\n */\nlet MatMenuItem = /*#__PURE__*/(() => {\n class MatMenuItem {\n constructor(_elementRef, _document, _focusMonitor, _parentMenu, _changeDetectorRef) {\n this._elementRef = _elementRef;\n this._document = _document;\n this._focusMonitor = _focusMonitor;\n this._parentMenu = _parentMenu;\n this._changeDetectorRef = _changeDetectorRef;\n /** ARIA role for the menu item. */\n this.role = 'menuitem';\n /** Whether the menu item is disabled. */\n this.disabled = false;\n /** Whether ripples are disabled on the menu item. */\n this.disableRipple = false;\n /** Stream that emits when the menu item is hovered. */\n this._hovered = new Subject();\n /** Stream that emits when the menu item is focused. */\n this._focused = new Subject();\n /** Whether the menu item is highlighted. */\n this._highlighted = false;\n /** Whether the menu item acts as a trigger for a sub-menu. */\n this._triggersSubmenu = false;\n _parentMenu?.addItem?.(this);\n }\n /** Focuses the menu item. */\n focus(origin, options) {\n if (this._focusMonitor && origin) {\n this._focusMonitor.focusVia(this._getHostElement(), origin, options);\n } else {\n this._getHostElement().focus(options);\n }\n this._focused.next(this);\n }\n ngAfterViewInit() {\n if (this._focusMonitor) {\n // Start monitoring the element, so it gets the appropriate focused classes. We want\n // to show the focus style for menu items only when the focus was not caused by a\n // mouse or touch interaction.\n this._focusMonitor.monitor(this._elementRef, false);\n }\n }\n ngOnDestroy() {\n if (this._focusMonitor) {\n this._focusMonitor.stopMonitoring(this._elementRef);\n }\n if (this._parentMenu && this._parentMenu.removeItem) {\n this._parentMenu.removeItem(this);\n }\n this._hovered.complete();\n this._focused.complete();\n }\n /** Used to set the `tabindex`. */\n _getTabIndex() {\n return this.disabled ? '-1' : '0';\n }\n /** Returns the host DOM element. */\n _getHostElement() {\n return this._elementRef.nativeElement;\n }\n /** Prevents the default element actions if it is disabled. */\n _checkDisabled(event) {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n /** Emits to the hover stream. */\n _handleMouseEnter() {\n this._hovered.next(this);\n }\n /** Gets the label to be used when determining whether the option should be focused. */\n getLabel() {\n const clone = this._elementRef.nativeElement.cloneNode(true);\n const icons = clone.querySelectorAll('mat-icon, .material-icons');\n // Strip away icons, so they don't show up in the text.\n for (let i = 0; i < icons.length; i++) {\n icons[i].remove();\n }\n return clone.textContent?.trim() || '';\n }\n _setHighlighted(isHighlighted) {\n // We need to mark this for check for the case where the content is coming from a\n // `matMenuContent` whose change detection tree is at the declaration position,\n // not the insertion position. See #23175.\n // @breaking-change 12.0.0 Remove null check for `_changeDetectorRef`.\n this._highlighted = isHighlighted;\n this._changeDetectorRef?.markForCheck();\n }\n _setTriggersSubmenu(triggersSubmenu) {\n // @breaking-change 12.0.0 Remove null check for `_changeDetectorRef`.\n this._triggersSubmenu = triggersSubmenu;\n this._changeDetectorRef?.markForCheck();\n }\n _hasFocus() {\n return this._document && this._document.activeElement === this._getHostElement();\n }\n static {\n this.ɵfac = function MatMenuItem_Factory(t) {\n return new (t || MatMenuItem)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(i1.FocusMonitor), i0.ɵɵdirectiveInject(MAT_MENU_PANEL, 8), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MatMenuItem,\n selectors: [[\"\", \"mat-menu-item\", \"\"]],\n hostAttrs: [1, \"mat-mdc-menu-item\", \"mat-mdc-focus-indicator\"],\n hostVars: 8,\n hostBindings: function MatMenuItem_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"click\", function MatMenuItem_click_HostBindingHandler($event) {\n return ctx._checkDisabled($event);\n })(\"mouseenter\", function MatMenuItem_mouseenter_HostBindingHandler() {\n return ctx._handleMouseEnter();\n });\n }\n if (rf & 2) {\n i0.ɵɵattribute(\"role\", ctx.role)(\"tabindex\", ctx._getTabIndex())(\"aria-disabled\", ctx.disabled)(\"disabled\", ctx.disabled || null);\n i0.ɵɵclassProp(\"mat-mdc-menu-item-highlighted\", ctx._highlighted)(\"mat-mdc-menu-item-submenu-trigger\", ctx._triggersSubmenu);\n }\n },\n inputs: {\n role: \"role\",\n disabled: [2, \"disabled\", \"disabled\", booleanAttribute],\n disableRipple: [2, \"disableRipple\", \"disableRipple\", booleanAttribute]\n },\n exportAs: [\"matMenuItem\"],\n standalone: true,\n features: [i0.ɵɵInputTransformsFeature, i0.ɵɵStandaloneFeature],\n attrs: _c0,\n ngContentSelectors: _c2,\n decls: 5,\n vars: 3,\n consts: [[1, \"mat-mdc-menu-item-text\"], [\"matRipple\", \"\", 1, \"mat-mdc-menu-ripple\", 3, \"matRippleDisabled\", \"matRippleTrigger\"], [\"viewBox\", \"0 0 5 10\", \"focusable\", \"false\", \"aria-hidden\", \"true\", 1, \"mat-mdc-menu-submenu-icon\"], [\"points\", \"0,0 5,5 0,10\"]],\n template: function MatMenuItem_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c1);\n i0.ɵɵprojection(0);\n i0.ɵɵelementStart(1, \"span\", 0);\n i0.ɵɵprojection(2, 1);\n i0.ɵɵelementEnd();\n i0.ɵɵelement(3, \"div\", 1);\n i0.ɵɵtemplate(4, MatMenuItem_Conditional_4_Template, 2, 0, \":svg:svg\", 2);\n }\n if (rf & 2) {\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"matRippleDisabled\", ctx.disableRipple || ctx.disabled)(\"matRippleTrigger\", ctx._getHostElement());\n i0.ɵɵadvance();\n i0.ɵɵconditional(ctx._triggersSubmenu ? 4 : -1);\n }\n },\n dependencies: [MatRipple],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n }\n return MatMenuItem;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Throws an exception for the case when menu's x-position value isn't valid.\n * In other words, it doesn't match 'before' or 'after'.\n * @docs-private\n */\nfunction throwMatMenuInvalidPositionX() {\n throw Error(`xPosition value must be either 'before' or after'.\n Example: `);\n}\n/**\n * Throws an exception for the case when menu's y-position value isn't valid.\n * In other words, it doesn't match 'above' or 'below'.\n * @docs-private\n */\nfunction throwMatMenuInvalidPositionY() {\n throw Error(`yPosition value must be either 'above' or below'.\n Example: `);\n}\n/**\n * Throws an exception for the case when a menu is assigned\n * to a trigger that is placed inside the same menu.\n * @docs-private\n */\nfunction throwMatMenuRecursiveError() {\n throw Error(`matMenuTriggerFor: menu cannot contain its own trigger. Assign a menu that is ` + `not a parent of the trigger or move the trigger outside of the menu.`);\n}\n\n/**\n * Injection token that can be used to reference instances of `MatMenuContent`. It serves\n * as alternative token to the actual `MatMenuContent` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */\nconst MAT_MENU_CONTENT = /*#__PURE__*/new InjectionToken('MatMenuContent');\n/** Menu content that will be rendered lazily once the menu is opened. */\nlet MatMenuContent = /*#__PURE__*/(() => {\n class MatMenuContent {\n constructor(_template, _componentFactoryResolver, _appRef, _injector, _viewContainerRef, _document, _changeDetectorRef) {\n this._template = _template;\n this._componentFactoryResolver = _componentFactoryResolver;\n this._appRef = _appRef;\n this._injector = _injector;\n this._viewContainerRef = _viewContainerRef;\n this._document = _document;\n this._changeDetectorRef = _changeDetectorRef;\n /** Emits when the menu content has been attached. */\n this._attached = new Subject();\n }\n /**\n * Attaches the content with a particular context.\n * @docs-private\n */\n attach(context = {}) {\n if (!this._portal) {\n this._portal = new TemplatePortal(this._template, this._viewContainerRef);\n }\n this.detach();\n if (!this._outlet) {\n this._outlet = new DomPortalOutlet(this._document.createElement('div'), this._componentFactoryResolver, this._appRef, this._injector);\n }\n const element = this._template.elementRef.nativeElement;\n // Because we support opening the same menu from different triggers (which in turn have their\n // own `OverlayRef` panel), we have to re-insert the host element every time, otherwise we\n // risk it staying attached to a pane that's no longer in the DOM.\n element.parentNode.insertBefore(this._outlet.outletElement, element);\n // When `MatMenuContent` is used in an `OnPush` component, the insertion of the menu\n // content via `createEmbeddedView` does not cause the content to be seen as \"dirty\"\n // by Angular. This causes the `@ContentChildren` for menu items within the menu to\n // not be updated by Angular. By explicitly marking for check here, we tell Angular that\n // it needs to check for new menu items and update the `@ContentChild` in `MatMenu`.\n // @breaking-change 9.0.0 Make change detector ref required\n this._changeDetectorRef?.markForCheck();\n this._portal.attach(this._outlet, context);\n this._attached.next();\n }\n /**\n * Detaches the content.\n * @docs-private\n */\n detach() {\n if (this._portal.isAttached) {\n this._portal.detach();\n }\n }\n ngOnDestroy() {\n if (this._outlet) {\n this._outlet.dispose();\n }\n }\n static {\n this.ɵfac = function MatMenuContent_Factory(t) {\n return new (t || MatMenuContent)(i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.ApplicationRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: MatMenuContent,\n selectors: [[\"ng-template\", \"matMenuContent\", \"\"]],\n standalone: true,\n features: [i0.ɵɵProvidersFeature([{\n provide: MAT_MENU_CONTENT,\n useExisting: MatMenuContent\n }])]\n });\n }\n }\n return MatMenuContent;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Animations used by the mat-menu component.\n * Animation duration and timing values are based on:\n * https://material.io/guidelines/components/menus.html#menus-usage\n * @docs-private\n */\nconst matMenuAnimations = {\n /**\n * This animation controls the menu panel's entry and exit from the page.\n *\n * When the menu panel is added to the DOM, it scales in and fades in its border.\n *\n * When the menu panel is removed from the DOM, it simply fades out after a brief\n * delay to display the ripple.\n */\n transformMenu: /*#__PURE__*/trigger('transformMenu', [/*#__PURE__*/state('void', /*#__PURE__*/style({\n opacity: 0,\n transform: 'scale(0.8)'\n })), /*#__PURE__*/transition('void => enter', /*#__PURE__*/animate('120ms cubic-bezier(0, 0, 0.2, 1)', /*#__PURE__*/style({\n opacity: 1,\n transform: 'scale(1)'\n }))), /*#__PURE__*/transition('* => void', /*#__PURE__*/animate('100ms 25ms linear', /*#__PURE__*/style({\n opacity: 0\n })))]),\n /**\n * This animation fades in the background color and content of the menu panel\n * after its containing element is scaled in.\n */\n fadeInItems: /*#__PURE__*/trigger('fadeInItems', [\n /*#__PURE__*/\n // TODO(crisbeto): this is inside the `transformMenu`\n // now. Remove next time we do breaking changes.\n state('showing', /*#__PURE__*/style({\n opacity: 1\n })), /*#__PURE__*/transition('void => *', [/*#__PURE__*/style({\n opacity: 0\n }), /*#__PURE__*/animate('400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)')])])\n};\n/**\n * @deprecated\n * @breaking-change 8.0.0\n * @docs-private\n */\nconst fadeInItems = matMenuAnimations.fadeInItems;\n/**\n * @deprecated\n * @breaking-change 8.0.0\n * @docs-private\n */\nconst transformMenu = matMenuAnimations.transformMenu;\nlet menuPanelUid = 0;\n/** Injection token to be used to override the default options for `mat-menu`. */\nconst MAT_MENU_DEFAULT_OPTIONS = /*#__PURE__*/new InjectionToken('mat-menu-default-options', {\n providedIn: 'root',\n factory: MAT_MENU_DEFAULT_OPTIONS_FACTORY\n});\n/** @docs-private */\nfunction MAT_MENU_DEFAULT_OPTIONS_FACTORY() {\n return {\n overlapTrigger: false,\n xPosition: 'after',\n yPosition: 'below',\n backdropClass: 'cdk-overlay-transparent-backdrop'\n };\n}\nlet MatMenu = /*#__PURE__*/(() => {\n class MatMenu {\n /** Position of the menu in the X axis. */\n get xPosition() {\n return this._xPosition;\n }\n set xPosition(value) {\n if (value !== 'before' && value !== 'after' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatMenuInvalidPositionX();\n }\n this._xPosition = value;\n this.setPositionClasses();\n }\n /** Position of the menu in the Y axis. */\n get yPosition() {\n return this._yPosition;\n }\n set yPosition(value) {\n if (value !== 'above' && value !== 'below' && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatMenuInvalidPositionY();\n }\n this._yPosition = value;\n this.setPositionClasses();\n }\n /**\n * This method takes classes set on the host mat-menu element and applies them on the\n * menu template that displays in the overlay container. Otherwise, it's difficult\n * to style the containing menu from outside the component.\n * @param classes list of class names\n */\n set panelClass(classes) {\n const previousPanelClass = this._previousPanelClass;\n const newClassList = {\n ...this._classList\n };\n if (previousPanelClass && previousPanelClass.length) {\n previousPanelClass.split(' ').forEach(className => {\n newClassList[className] = false;\n });\n }\n this._previousPanelClass = classes;\n if (classes && classes.length) {\n classes.split(' ').forEach(className => {\n newClassList[className] = true;\n });\n this._elementRef.nativeElement.className = '';\n }\n this._classList = newClassList;\n }\n /**\n * This method takes classes set on the host mat-menu element and applies them on the\n * menu template that displays in the overlay container. Otherwise, it's difficult\n * to style the containing menu from outside the component.\n * @deprecated Use `panelClass` instead.\n * @breaking-change 8.0.0\n */\n get classList() {\n return this.panelClass;\n }\n set classList(classes) {\n this.panelClass = classes;\n }\n constructor(_elementRef,\n /**\n * @deprecated Unused param, will be removed.\n * @breaking-change 19.0.0\n */\n _unusedNgZone, defaultOptions,\n // @breaking-change 15.0.0 `_changeDetectorRef` to become a required parameter.\n _changeDetectorRef) {\n this._elementRef = _elementRef;\n this._changeDetectorRef = _changeDetectorRef;\n this._elevationPrefix = 'mat-elevation-z';\n this._baseElevation = 8;\n /** Only the direct descendant menu items. */\n this._directDescendantItems = new QueryList();\n /** Classes to be applied to the menu panel. */\n this._classList = {};\n /** Current state of the panel animation. */\n this._panelAnimationState = 'void';\n /** Emits whenever an animation on the menu completes. */\n this._animationDone = new Subject();\n /** Event emitted when the menu is closed. */\n this.closed = new EventEmitter();\n /**\n * Event emitted when the menu is closed.\n * @deprecated Switch to `closed` instead\n * @breaking-change 8.0.0\n */\n this.close = this.closed;\n this.panelId = `mat-menu-panel-${menuPanelUid++}`;\n this._injector = inject(Injector);\n this.overlayPanelClass = defaultOptions.overlayPanelClass || '';\n this._xPosition = defaultOptions.xPosition;\n this._yPosition = defaultOptions.yPosition;\n this.backdropClass = defaultOptions.backdropClass;\n this.overlapTrigger = defaultOptions.overlapTrigger;\n this.hasBackdrop = defaultOptions.hasBackdrop;\n }\n ngOnInit() {\n this.setPositionClasses();\n }\n ngAfterContentInit() {\n this._updateDirectDescendants();\n this._keyManager = new FocusKeyManager(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd();\n this._keyManager.tabOut.subscribe(() => this.closed.emit('tab'));\n // If a user manually (programmatically) focuses a menu item, we need to reflect that focus\n // change back to the key manager. Note that we don't need to unsubscribe here because _focused\n // is internal and we know that it gets completed on destroy.\n this._directDescendantItems.changes.pipe(startWith(this._directDescendantItems), switchMap(items => merge(...items.map(item => item._focused)))).subscribe(focusedItem => this._keyManager.updateActiveItem(focusedItem));\n this._directDescendantItems.changes.subscribe(itemsList => {\n // Move focus to another item, if the active item is removed from the list.\n // We need to debounce the callback, because multiple items might be removed\n // in quick succession.\n const manager = this._keyManager;\n if (this._panelAnimationState === 'enter' && manager.activeItem?._hasFocus()) {\n const items = itemsList.toArray();\n const index = Math.max(0, Math.min(items.length - 1, manager.activeItemIndex || 0));\n if (items[index] && !items[index].disabled) {\n manager.setActiveItem(index);\n } else {\n manager.setNextItemActive();\n }\n }\n });\n }\n ngOnDestroy() {\n this._keyManager?.destroy();\n this._directDescendantItems.destroy();\n this.closed.complete();\n this._firstItemFocusRef?.destroy();\n }\n /** Stream that emits whenever the hovered menu item changes. */\n _hovered() {\n // Coerce the `changes` property because Angular types it as `Observable`\n const itemChanges = this._directDescendantItems.changes;\n return itemChanges.pipe(startWith(this._directDescendantItems), switchMap(items => merge(...items.map(item => item._hovered))));\n }\n /*\n * Registers a menu item with the menu.\n * @docs-private\n * @deprecated No longer being used. To be removed.\n * @breaking-change 9.0.0\n */\n addItem(_item) {}\n /**\n * Removes an item from the menu.\n * @docs-private\n * @deprecated No longer being used. To be removed.\n * @breaking-change 9.0.0\n */\n removeItem(_item) {}\n /** Handle a keyboard event from the menu, delegating to the appropriate action. */\n _handleKeydown(event) {\n const keyCode = event.keyCode;\n const manager = this._keyManager;\n switch (keyCode) {\n case ESCAPE:\n if (!hasModifierKey(event)) {\n event.preventDefault();\n this.closed.emit('keydown');\n }\n break;\n case LEFT_ARROW:\n if (this.parentMenu && this.direction === 'ltr') {\n this.closed.emit('keydown');\n }\n break;\n case RIGHT_ARROW:\n if (this.parentMenu && this.direction === 'rtl') {\n this.closed.emit('keydown');\n }\n break;\n default:\n if (keyCode === UP_ARROW || keyCode === DOWN_ARROW) {\n manager.setFocusOrigin('keyboard');\n }\n manager.onKeydown(event);\n return;\n }\n // Don't allow the event to propagate if we've already handled it, or it may\n // end up reaching other overlays that were opened earlier (see #22694).\n event.stopPropagation();\n }\n /**\n * Focus the first item in the menu.\n * @param origin Action from which the focus originated. Used to set the correct styling.\n */\n focusFirstItem(origin = 'program') {\n // Wait for `afterNextRender` to ensure iOS VoiceOver screen reader focuses the first item (#24735).\n this._firstItemFocusRef?.destroy();\n this._firstItemFocusRef = afterNextRender(() => {\n let menuPanel = null;\n if (this._directDescendantItems.length) {\n // Because the `mat-menuPanel` is at the DOM insertion point, not inside the overlay, we don't\n // have a nice way of getting a hold of the menuPanel panel. We can't use a `ViewChild` either\n // because the panel is inside an `ng-template`. We work around it by starting from one of\n // the items and walking up the DOM.\n menuPanel = this._directDescendantItems.first._getHostElement().closest('[role=\"menu\"]');\n }\n // If an item in the menuPanel is already focused, avoid overriding the focus.\n if (!menuPanel || !menuPanel.contains(document.activeElement)) {\n const manager = this._keyManager;\n manager.setFocusOrigin(origin).setFirstItemActive();\n // If there's no active item at this point, it means that all the items are disabled.\n // Move focus to the menuPanel panel so keyboard events like Escape still work. Also this will\n // give _some_ feedback to screen readers.\n if (!manager.activeItem && menuPanel) {\n menuPanel.focus();\n }\n }\n }, {\n injector: this._injector\n });\n }\n /**\n * Resets the active item in the menu. This is used when the menu is opened, allowing\n * the user to start from the first option when pressing the down arrow.\n */\n resetActiveItem() {\n this._keyManager.setActiveItem(-1);\n }\n /**\n * Sets the menu panel elevation.\n * @param depth Number of parent menus that come before the menu.\n */\n setElevation(depth) {\n // The elevation starts at the base and increases by one for each level.\n // Capped at 24 because that's the maximum elevation defined in the Material design spec.\n const elevation = Math.min(this._baseElevation + depth, 24);\n const newElevation = `${this._elevationPrefix}${elevation}`;\n const customElevation = Object.keys(this._classList).find(className => {\n return className.startsWith(this._elevationPrefix);\n });\n if (!customElevation || customElevation === this._previousElevation) {\n const newClassList = {\n ...this._classList\n };\n if (this._previousElevation) {\n newClassList[this._previousElevation] = false;\n }\n newClassList[newElevation] = true;\n this._previousElevation = newElevation;\n this._classList = newClassList;\n }\n }\n /**\n * Adds classes to the menu panel based on its position. Can be used by\n * consumers to add specific styling based on the position.\n * @param posX Position of the menu along the x axis.\n * @param posY Position of the menu along the y axis.\n * @docs-private\n */\n setPositionClasses(posX = this.xPosition, posY = this.yPosition) {\n this._classList = {\n ...this._classList,\n ['mat-menu-before']: posX === 'before',\n ['mat-menu-after']: posX === 'after',\n ['mat-menu-above']: posY === 'above',\n ['mat-menu-below']: posY === 'below'\n };\n // @breaking-change 15.0.0 Remove null check for `_changeDetectorRef`.\n this._changeDetectorRef?.markForCheck();\n }\n /** Starts the enter animation. */\n _startAnimation() {\n // @breaking-change 8.0.0 Combine with _resetAnimation.\n this._panelAnimationState = 'enter';\n }\n /** Resets the panel animation to its initial state. */\n _resetAnimation() {\n // @breaking-change 8.0.0 Combine with _startAnimation.\n this._panelAnimationState = 'void';\n }\n /** Callback that is invoked when the panel animation completes. */\n _onAnimationDone(event) {\n this._animationDone.next(event);\n this._isAnimating = false;\n }\n _onAnimationStart(event) {\n this._isAnimating = true;\n // Scroll the content element to the top as soon as the animation starts. This is necessary,\n // because we move focus to the first item while it's still being animated, which can throw\n // the browser off when it determines the scroll position. Alternatively we can move focus\n // when the animation is done, however moving focus asynchronously will interrupt screen\n // readers which are in the process of reading out the menu already. We take the `element`\n // from the `event` since we can't use a `ViewChild` to access the pane.\n if (event.toState === 'enter' && this._keyManager.activeItemIndex === 0) {\n event.element.scrollTop = 0;\n }\n }\n /**\n * Sets up a stream that will keep track of any newly-added menu items and will update the list\n * of direct descendants. We collect the descendants this way, because `_allItems` can include\n * items that are part of child menus, and using a custom way of registering items is unreliable\n * when it comes to maintaining the item order.\n */\n _updateDirectDescendants() {\n this._allItems.changes.pipe(startWith(this._allItems)).subscribe(items => {\n this._directDescendantItems.reset(items.filter(item => item._parentMenu === this));\n this._directDescendantItems.notifyOnChanges();\n });\n }\n static {\n this.ɵfac = function MatMenu_Factory(t) {\n return new (t || MatMenu)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(MAT_MENU_DEFAULT_OPTIONS), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n };\n }\n static {\n this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MatMenu,\n selectors: [[\"mat-menu\"]],\n contentQueries: function MatMenu_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, MAT_MENU_CONTENT, 5);\n i0.ɵɵcontentQuery(dirIndex, MatMenuItem, 5);\n i0.ɵɵcontentQuery(dirIndex, MatMenuItem, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.lazyContent = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._allItems = _t);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);\n }\n },\n viewQuery: function MatMenu_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(TemplateRef, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templateRef = _t.first);\n }\n },\n hostVars: 3,\n hostBindings: function MatMenu_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵattribute(\"aria-label\", null)(\"aria-labelledby\", null)(\"aria-describedby\", null);\n }\n },\n inputs: {\n backdropClass: \"backdropClass\",\n ariaLabel: [0, \"aria-label\", \"ariaLabel\"],\n ariaLabelledby: [0, \"aria-labelledby\", \"ariaLabelledby\"],\n ariaDescribedby: [0, \"aria-describedby\", \"ariaDescribedby\"],\n xPosition: \"xPosition\",\n yPosition: \"yPosition\",\n overlapTrigger: [2, \"overlapTrigger\", \"overlapTrigger\", booleanAttribute],\n hasBackdrop: [2, \"hasBackdrop\", \"hasBackdrop\", value => value == null ? null : booleanAttribute(value)],\n panelClass: [0, \"class\", \"panelClass\"],\n classList: \"classList\"\n },\n outputs: {\n closed: \"closed\",\n close: \"close\"\n },\n exportAs: [\"matMenu\"],\n standalone: true,\n features: [i0.ɵɵProvidersFeature([{\n provide: MAT_MENU_PANEL,\n useExisting: MatMenu\n }]), i0.ɵɵInputTransformsFeature, i0.ɵɵStandaloneFeature],\n ngContentSelectors: _c3,\n decls: 1,\n vars: 0,\n consts: [[\"tabindex\", \"-1\", \"role\", \"menu\", 1, \"mat-mdc-menu-panel\", \"mat-mdc-elevation-specific\", 3, \"keydown\", \"click\", \"id\"], [1, \"mat-mdc-menu-content\"]],\n template: function MatMenu_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵtemplate(0, MatMenu_ng_template_0_Template, 3, 7, \"ng-template\");\n }\n },\n styles: [\"mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:var(--mat-menu-item-trailing-spacing);padding-right:var(--mat-menu-item-leading-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]),.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon])[dir=rtl]{padding-left:var(--mat-menu-item-with-icon-trailing-spacing);padding-right:var(--mat-menu-item-with-icon-leading-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:\\\"\\\";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\"],\n encapsulation: 2,\n data: {\n animation: [matMenuAnimations.transformMenu, matMenuAnimations.fadeInItems]\n },\n changeDetection: 0\n });\n }\n }\n return MatMenu;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/** Injection token that determines the scroll handling while the menu is open. */\nconst MAT_MENU_SCROLL_STRATEGY = /*#__PURE__*/new InjectionToken('mat-menu-scroll-strategy', {\n providedIn: 'root',\n factory: () => {\n const overlay = inject(Overlay);\n return () => overlay.scrollStrategies.reposition();\n }\n});\n/** @docs-private */\nfunction MAT_MENU_SCROLL_STRATEGY_FACTORY(overlay) {\n return () => overlay.scrollStrategies.reposition();\n}\n/** @docs-private */\nconst MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER = {\n provide: MAT_MENU_SCROLL_STRATEGY,\n deps: [Overlay],\n useFactory: MAT_MENU_SCROLL_STRATEGY_FACTORY\n};\n/** Options for binding a passive event listener. */\nconst passiveEventListenerOptions = /*#__PURE__*/normalizePassiveListenerOptions({\n passive: true\n});\n/**\n * Default top padding of the menu panel.\n * @deprecated No longer being used. Will be removed.\n * @breaking-change 15.0.0\n */\nconst MENU_PANEL_TOP_PADDING = 8;\n/** Directive applied to an element that should trigger a `mat-menu`. */\nlet MatMenuTrigger = /*#__PURE__*/(() => {\n class MatMenuTrigger {\n /**\n * @deprecated\n * @breaking-change 8.0.0\n */\n get _deprecatedMatMenuTriggerFor() {\n return this.menu;\n }\n set _deprecatedMatMenuTriggerFor(v) {\n this.menu = v;\n }\n /** References the menu instance that the trigger is associated with. */\n get menu() {\n return this._menu;\n }\n set menu(menu) {\n if (menu === this._menu) {\n return;\n }\n this._menu = menu;\n this._menuCloseSubscription.unsubscribe();\n if (menu) {\n if (menu === this._parentMaterialMenu && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throwMatMenuRecursiveError();\n }\n this._menuCloseSubscription = menu.close.subscribe(reason => {\n this._destroyMenu(reason);\n // If a click closed the menu, we should close the entire chain of nested menus.\n if ((reason === 'click' || reason === 'tab') && this._parentMaterialMenu) {\n this._parentMaterialMenu.closed.emit(reason);\n }\n });\n }\n this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu());\n }\n constructor(_overlay, _element, _viewContainerRef, scrollStrategy, parentMenu,\n // `MatMenuTrigger` is commonly used in combination with a `MatMenuItem`.\n // tslint:disable-next-line: lightweight-tokens\n _menuItemInstance, _dir, _focusMonitor, _ngZone) {\n this._overlay = _overlay;\n this._element = _element;\n this._viewContainerRef = _viewContainerRef;\n this._menuItemInstance = _menuItemInstance;\n this._dir = _dir;\n this._focusMonitor = _focusMonitor;\n this._ngZone = _ngZone;\n this._overlayRef = null;\n this._menuOpen = false;\n this._closingActionsSubscription = Subscription.EMPTY;\n this._hoverSubscription = Subscription.EMPTY;\n this._menuCloseSubscription = Subscription.EMPTY;\n this._changeDetectorRef = inject(ChangeDetectorRef);\n /**\n * Handles touch start events on the trigger.\n * Needs to be an arrow function so we can easily use addEventListener and removeEventListener.\n */\n this._handleTouchStart = event => {\n if (!isFakeTouchstartFromScreenReader(event)) {\n this._openedBy = 'touch';\n }\n };\n // Tracking input type is necessary so it's possible to only auto-focus\n // the first item of the list when the menu is opened via the keyboard\n this._openedBy = undefined;\n /**\n * Whether focus should be restored when the menu is closed.\n * Note that disabling this option can have accessibility implications\n * and it's up to you to manage focus, if you decide to turn it off.\n */\n this.restoreFocus = true;\n /** Event emitted when the associated menu is opened. */\n this.menuOpened = new EventEmitter();\n /**\n * Event emitted when the associated menu is opened.\n * @deprecated Switch to `menuOpened` instead\n * @breaking-change 8.0.0\n */\n // tslint:disable-next-line:no-output-on-prefix\n this.onMenuOpen = this.menuOpened;\n /** Event emitted when the associated menu is closed. */\n this.menuClosed = new EventEmitter();\n /**\n * Event emitted when the associated menu is closed.\n * @deprecated Switch to `menuClosed` instead\n * @breaking-change 8.0.0\n */\n // tslint:disable-next-line:no-output-on-prefix\n this.onMenuClose = this.menuClosed;\n this._scrollStrategy = scrollStrategy;\n this._parentMaterialMenu = parentMenu instanceof MatMenu ? parentMenu : undefined;\n _element.nativeElement.addEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);\n }\n ngAfterContentInit() {\n this._handleHover();\n }\n ngOnDestroy() {\n if (this._overlayRef) {\n this._overlayRef.dispose();\n this._overlayRef = null;\n }\n this._element.nativeElement.removeEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);\n this._menuCloseSubscription.unsubscribe();\n this._closingActionsSubscription.unsubscribe();\n this._hoverSubscription.unsubscribe();\n }\n /** Whether the menu is open. */\n get menuOpen() {\n return this._menuOpen;\n }\n /** The text direction of the containing app. */\n get dir() {\n return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';\n }\n /** Whether the menu triggers a sub-menu or a top-level one. */\n triggersSubmenu() {\n return !!(this._menuItemInstance && this._parentMaterialMenu && this.menu);\n }\n /** Toggles the menu between the open and closed states. */\n toggleMenu() {\n return this._menuOpen ? this.closeMenu() : this.openMenu();\n }\n /** Opens the menu. */\n openMenu() {\n const menu = this.menu;\n if (this._menuOpen || !menu) {\n return;\n }\n const overlayRef = this._createOverlay(menu);\n const overlayConfig = overlayRef.getConfig();\n const positionStrategy = overlayConfig.positionStrategy;\n this._setPosition(menu, positionStrategy);\n overlayConfig.hasBackdrop = menu.hasBackdrop == null ? !this.triggersSubmenu() : menu.hasBackdrop;\n overlayRef.attach(this._getPortal(menu));\n if (menu.lazyContent) {\n menu.lazyContent.attach(this.menuData);\n }\n this._closingActionsSubscription = this._menuClosingActions().subscribe(() => this.closeMenu());\n this._initMenu(menu);\n if (menu instanceof MatMenu) {\n menu._startAnimation();\n menu._directDescendantItems.changes.pipe(takeUntil(menu.close)).subscribe(() => {\n // Re-adjust the position without locking when the amount of items\n // changes so that the overlay is allowed to pick a new optimal position.\n positionStrategy.withLockedPosition(false).reapplyLastPosition();\n positionStrategy.withLockedPosition(true);\n });\n }\n }\n /** Closes the menu. */\n closeMenu() {\n this.menu?.close.emit();\n }\n /**\n * Focuses the menu trigger.\n * @param origin Source of the menu trigger's focus.\n */\n focus(origin, options) {\n if (this._focusMonitor && origin) {\n this._focusMonitor.focusVia(this._element, origin, options);\n } else {\n this._element.nativeElement.focus(options);\n }\n }\n /**\n * Updates the position of the menu to ensure that it fits all options within the viewport.\n */\n updatePosition() {\n this._overlayRef?.updatePosition();\n }\n /** Closes the menu and does the necessary cleanup. */\n _destroyMenu(reason) {\n if (!this._overlayRef || !this.menuOpen) {\n return;\n }\n const menu = this.menu;\n this._closingActionsSubscription.unsubscribe();\n this._overlayRef.detach();\n // Always restore focus if the user is navigating using the keyboard or the menu was opened\n // programmatically. We don't restore for non-root triggers, because it can prevent focus\n // from making it back to the root trigger when closing a long chain of menus by clicking\n // on the backdrop.\n if (this.restoreFocus && (reason === 'keydown' || !this._openedBy || !this.triggersSubmenu())) {\n this.focus(this._openedBy);\n }\n this._openedBy = undefined;\n if (menu instanceof MatMenu) {\n menu._resetAnimation();\n if (menu.lazyContent) {\n // Wait for the exit animation to finish before detaching the content.\n menu._animationDone.pipe(filter(event => event.toState === 'void'), take(1),\n // Interrupt if the content got re-attached.\n takeUntil(menu.lazyContent._attached)).subscribe({\n next: () => menu.lazyContent.detach(),\n // No matter whether the content got re-attached, reset the menu.\n complete: () => this._setIsMenuOpen(false)\n });\n } else {\n this._setIsMenuOpen(false);\n }\n } else {\n this._setIsMenuOpen(false);\n menu?.lazyContent?.detach();\n }\n }\n /**\n * This method sets the menu state to open and focuses the first item if\n * the menu was opened via the keyboard.\n */\n _initMenu(menu) {\n menu.parentMenu = this.triggersSubmenu() ? this._parentMaterialMenu : undefined;\n menu.direction = this.dir;\n this._setMenuElevation(menu);\n menu.focusFirstItem(this._openedBy || 'program');\n this._setIsMenuOpen(true);\n }\n /** Updates the menu elevation based on the amount of parent menus that it has. */\n _setMenuElevation(menu) {\n if (menu.setElevation) {\n let depth = 0;\n let parentMenu = menu.parentMenu;\n while (parentMenu) {\n depth++;\n parentMenu = parentMenu.parentMenu;\n }\n menu.setElevation(depth);\n }\n }\n // set state rather than toggle to support triggers sharing a menu\n _setIsMenuOpen(isOpen) {\n if (isOpen !== this._menuOpen) {\n this._menuOpen = isOpen;\n this._menuOpen ? this.menuOpened.emit() : this.menuClosed.emit();\n if (this.triggersSubmenu()) {\n this._menuItemInstance._setHighlighted(isOpen);\n }\n this._changeDetectorRef.markForCheck();\n }\n }\n /**\n * This method creates the overlay from the provided menu's template and saves its\n * OverlayRef so that it can be attached to the DOM when openMenu is called.\n */\n _createOverlay(menu) {\n if (!this._overlayRef) {\n const config = this._getOverlayConfig(menu);\n this._subscribeToPositions(menu, config.positionStrategy);\n this._overlayRef = this._overlay.create(config);\n // Consume the `keydownEvents` in order to prevent them from going to another overlay.\n // Ideally we'd also have our keyboard event logic in here, however doing so will\n // break anybody that may have implemented the `MatMenuPanel` themselves.\n this._overlayRef.keydownEvents().subscribe();\n }\n return this._overlayRef;\n }\n /**\n * This method builds the configuration object needed to create the overlay, the OverlayState.\n * @returns OverlayConfig\n */\n _getOverlayConfig(menu) {\n return new OverlayConfig({\n positionStrategy: this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn('.mat-menu-panel, .mat-mdc-menu-panel'),\n backdropClass: menu.backdropClass || 'cdk-overlay-transparent-backdrop',\n panelClass: menu.overlayPanelClass,\n scrollStrategy: this._scrollStrategy(),\n direction: this._dir\n });\n }\n /**\n * Listens to changes in the position of the overlay and sets the correct classes\n * on the menu based on the new position. This ensures the animation origin is always\n * correct, even if a fallback position is used for the overlay.\n */\n _subscribeToPositions(menu, position) {\n if (menu.setPositionClasses) {\n position.positionChanges.subscribe(change => {\n const posX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';\n const posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';\n // @breaking-change 15.0.0 Remove null check for `ngZone`.\n // `positionChanges` fires outside of the `ngZone` and `setPositionClasses` might be\n // updating something in the view so we need to bring it back in.\n if (this._ngZone) {\n this._ngZone.run(() => menu.setPositionClasses(posX, posY));\n } else {\n menu.setPositionClasses(posX, posY);\n }\n });\n }\n }\n /**\n * Sets the appropriate positions on a position strategy\n * so the overlay connects with the trigger correctly.\n * @param positionStrategy Strategy whose position to update.\n */\n _setPosition(menu, positionStrategy) {\n let [originX, originFallbackX] = menu.xPosition === 'before' ? ['end', 'start'] : ['start', 'end'];\n let [overlayY, overlayFallbackY] = menu.yPosition === 'above' ? ['bottom', 'top'] : ['top', 'bottom'];\n let [originY, originFallbackY] = [overlayY, overlayFallbackY];\n let [overlayX, overlayFallbackX] = [originX, originFallbackX];\n let offsetY = 0;\n if (this.triggersSubmenu()) {\n // When the menu is a sub-menu, it should always align itself\n // to the edges of the trigger, instead of overlapping it.\n overlayFallbackX = originX = menu.xPosition === 'before' ? 'start' : 'end';\n originFallbackX = overlayX = originX === 'end' ? 'start' : 'end';\n if (this._parentMaterialMenu) {\n if (this._parentInnerPadding == null) {\n const firstItem = this._parentMaterialMenu.items.first;\n this._parentInnerPadding = firstItem ? firstItem._getHostElement().offsetTop : 0;\n }\n offsetY = overlayY === 'bottom' ? this._parentInnerPadding : -this._parentInnerPadding;\n }\n } else if (!menu.overlapTrigger) {\n originY = overlayY === 'top' ? 'bottom' : 'top';\n originFallbackY = overlayFallbackY === 'top' ? 'bottom' : 'top';\n }\n positionStrategy.withPositions([{\n originX,\n originY,\n overlayX,\n overlayY,\n offsetY\n }, {\n originX: originFallbackX,\n originY,\n overlayX: overlayFallbackX,\n overlayY,\n offsetY\n }, {\n originX,\n originY: originFallbackY,\n overlayX,\n overlayY: overlayFallbackY,\n offsetY: -offsetY\n }, {\n originX: originFallbackX,\n originY: originFallbackY,\n overlayX: overlayFallbackX,\n overlayY: overlayFallbackY,\n offsetY: -offsetY\n }]);\n }\n /** Returns a stream that emits whenever an action that should close the menu occurs. */\n _menuClosingActions() {\n const backdrop = this._overlayRef.backdropClick();\n const detachments = this._overlayRef.detachments();\n const parentClose = this._parentMaterialMenu ? this._parentMaterialMenu.closed : of();\n const hover = this._parentMaterialMenu ? this._parentMaterialMenu._hovered().pipe(filter(active => active !== this._menuItemInstance), filter(() => this._menuOpen)) : of();\n return merge(backdrop, parentClose, hover, detachments);\n }\n /** Handles mouse presses on the trigger. */\n _handleMousedown(event) {\n if (!isFakeMousedownFromScreenReader(event)) {\n // Since right or middle button clicks won't trigger the `click` event,\n // we shouldn't consider the menu as opened by mouse in those cases.\n this._openedBy = event.button === 0 ? 'mouse' : undefined;\n // Since clicking on the trigger won't close the menu if it opens a sub-menu,\n // we should prevent focus from moving onto it via click to avoid the\n // highlight from lingering on the menu item.\n if (this.triggersSubmenu()) {\n event.preventDefault();\n }\n }\n }\n /** Handles key presses on the trigger. */\n _handleKeydown(event) {\n const keyCode = event.keyCode;\n // Pressing enter on the trigger will trigger the click handler later.\n if (keyCode === ENTER || keyCode === SPACE) {\n this._openedBy = 'keyboard';\n }\n if (this.triggersSubmenu() && (keyCode === RIGHT_ARROW && this.dir === 'ltr' || keyCode === LEFT_ARROW && this.dir === 'rtl')) {\n this._openedBy = 'keyboard';\n this.openMenu();\n }\n }\n /** Handles click events on the trigger. */\n _handleClick(event) {\n if (this.triggersSubmenu()) {\n // Stop event propagation to avoid closing the parent menu.\n event.stopPropagation();\n this.openMenu();\n } else {\n this.toggleMenu();\n }\n }\n /** Handles the cases where the user hovers over the trigger. */\n _handleHover() {\n // Subscribe to changes in the hovered item in order to toggle the panel.\n if (!this.triggersSubmenu() || !this._parentMaterialMenu) {\n return;\n }\n this._hoverSubscription = this._parentMaterialMenu._hovered()\n // Since we might have multiple competing triggers for the same menu (e.g. a sub-menu\n // with different data and triggers), we have to delay it by a tick to ensure that\n // it won't be closed immediately after it is opened.\n .pipe(filter(active => active === this._menuItemInstance && !active.disabled), delay(0, asapScheduler)).subscribe(() => {\n this._openedBy = 'mouse';\n // If the same menu is used between multiple triggers, it might still be animating\n // while the new trigger tries to re-open it. Wait for the animation to finish\n // before doing so. Also interrupt if the user moves to another item.\n if (this.menu instanceof MatMenu && this.menu._isAnimating) {\n // We need the `delay(0)` here in order to avoid\n // 'changed after checked' errors in some cases. See #12194.\n this.menu._animationDone.pipe(take(1), delay(0, asapScheduler), takeUntil(this._parentMaterialMenu._hovered())).subscribe(() => this.openMenu());\n } else {\n this.openMenu();\n }\n });\n }\n /** Gets the portal that should be attached to the overlay. */\n _getPortal(menu) {\n // Note that we can avoid this check by keeping the portal on the menu panel.\n // While it would be cleaner, we'd have to introduce another required method on\n // `MatMenuPanel`, making it harder to consume.\n if (!this._portal || this._portal.templateRef !== menu.templateRef) {\n this._portal = new TemplatePortal(menu.templateRef, this._viewContainerRef);\n }\n return this._portal;\n }\n static {\n this.ɵfac = function MatMenuTrigger_Factory(t) {\n return new (t || MatMenuTrigger)(i0.ɵɵdirectiveInject(i1$1.Overlay), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(MAT_MENU_SCROLL_STRATEGY), i0.ɵɵdirectiveInject(MAT_MENU_PANEL, 8), i0.ɵɵdirectiveInject(MatMenuItem, 10), i0.ɵɵdirectiveInject(i3.Directionality, 8), i0.ɵɵdirectiveInject(i1.FocusMonitor), i0.ɵɵdirectiveInject(i0.NgZone));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: MatMenuTrigger,\n selectors: [[\"\", \"mat-menu-trigger-for\", \"\"], [\"\", \"matMenuTriggerFor\", \"\"]],\n hostAttrs: [1, \"mat-mdc-menu-trigger\"],\n hostVars: 3,\n hostBindings: function MatMenuTrigger_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"click\", function MatMenuTrigger_click_HostBindingHandler($event) {\n return ctx._handleClick($event);\n })(\"mousedown\", function MatMenuTrigger_mousedown_HostBindingHandler($event) {\n return ctx._handleMousedown($event);\n })(\"keydown\", function MatMenuTrigger_keydown_HostBindingHandler($event) {\n return ctx._handleKeydown($event);\n });\n }\n if (rf & 2) {\n i0.ɵɵattribute(\"aria-haspopup\", ctx.menu ? \"menu\" : null)(\"aria-expanded\", ctx.menuOpen)(\"aria-controls\", ctx.menuOpen ? ctx.menu.panelId : null);\n }\n },\n inputs: {\n _deprecatedMatMenuTriggerFor: [0, \"mat-menu-trigger-for\", \"_deprecatedMatMenuTriggerFor\"],\n menu: [0, \"matMenuTriggerFor\", \"menu\"],\n menuData: [0, \"matMenuTriggerData\", \"menuData\"],\n restoreFocus: [0, \"matMenuTriggerRestoreFocus\", \"restoreFocus\"]\n },\n outputs: {\n menuOpened: \"menuOpened\",\n onMenuOpen: \"onMenuOpen\",\n menuClosed: \"menuClosed\",\n onMenuClose: \"onMenuClose\"\n },\n exportAs: [\"matMenuTrigger\"],\n standalone: true\n });\n }\n }\n return MatMenuTrigger;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet MatMenuModule = /*#__PURE__*/(() => {\n class MatMenuModule {\n static {\n this.ɵfac = function MatMenuModule_Factory(t) {\n return new (t || MatMenuModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: MatMenuModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER],\n imports: [CommonModule, MatRippleModule, MatCommonModule, OverlayModule, CdkScrollableModule, MatCommonModule]\n });\n }\n }\n return MatMenuModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MAT_MENU_CONTENT, MAT_MENU_DEFAULT_OPTIONS, MAT_MENU_PANEL, MAT_MENU_SCROLL_STRATEGY, MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER, MENU_PANEL_TOP_PADDING, MatMenu, MatMenuContent, MatMenuItem, MatMenuModule, MatMenuTrigger, fadeInItems, matMenuAnimations, transformMenu };\n","import { isPlatformBrowser, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { TemplateRef, PLATFORM_ID, booleanAttribute, numberAttribute, Directive, Inject, Input, HostListener, NgModule } from '@angular/core';\nimport { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';\nimport { UniqueComponentId, ZIndexUtils } from 'primeng/utils';\nimport * as i1 from 'primeng/api';\n\n/**\n * Tooltip directive provides advisory information for a component.\n * @group Components\n */\nlet Tooltip = /*#__PURE__*/(() => {\n class Tooltip {\n platformId;\n el;\n zone;\n config;\n renderer;\n viewContainer;\n /**\n * Position of the tooltip.\n * @group Props\n */\n tooltipPosition;\n /**\n * Event to show the tooltip.\n * @group Props\n */\n tooltipEvent = 'hover';\n /**\n * Target element to attach the overlay, valid values are \"body\", \"target\" or a local ng-F variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]=\"mydiv\" for a div element having #mydiv as variable name).\n * @group Props\n */\n appendTo;\n /**\n * Type of CSS position.\n * @group Props\n */\n positionStyle;\n /**\n * Style class of the tooltip.\n * @group Props\n */\n tooltipStyleClass;\n /**\n * Whether the z-index should be managed automatically to always go on top or have a fixed value.\n * @group Props\n */\n tooltipZIndex;\n /**\n * By default the tooltip contents are rendered as text. Set to false to support html tags in the content.\n * @group Props\n */\n escape = true;\n /**\n * Delay to show the tooltip in milliseconds.\n * @group Props\n */\n showDelay;\n /**\n * Delay to hide the tooltip in milliseconds.\n * @group Props\n */\n hideDelay;\n /**\n * Time to wait in milliseconds to hide the tooltip even it is active.\n * @group Props\n */\n life;\n /**\n * Specifies the additional vertical offset of the tooltip from its default position.\n * @group Props\n */\n positionTop;\n /**\n * Specifies the additional horizontal offset of the tooltip from its default position.\n * @group Props\n */\n positionLeft;\n /**\n * Whether to hide tooltip when hovering over tooltip content.\n * @group Props\n */\n autoHide = true;\n /**\n * Automatically adjusts the element position when there is not enough space on the selected position.\n * @group Props\n */\n fitContent = true;\n /**\n * Whether to hide tooltip on escape key press.\n * @group Props\n */\n hideOnEscape = true;\n /**\n * Content of the tooltip.\n * @group Props\n */\n content;\n /**\n * When present, it specifies that the component should be disabled.\n * @defaultValue false\n * @group Props\n */\n get disabled() {\n return this._disabled;\n }\n set disabled(val) {\n this._disabled = val;\n this.deactivate();\n }\n /**\n * Specifies the tooltip configuration options for the component.\n * @group Props\n */\n tooltipOptions;\n _tooltipOptions = {\n tooltipLabel: null,\n tooltipPosition: 'right',\n tooltipEvent: 'hover',\n appendTo: 'body',\n positionStyle: null,\n tooltipStyleClass: null,\n tooltipZIndex: 'auto',\n escape: true,\n disabled: null,\n showDelay: null,\n hideDelay: null,\n positionTop: null,\n positionLeft: null,\n life: null,\n autoHide: true,\n hideOnEscape: true,\n id: UniqueComponentId() + '_tooltip'\n };\n _disabled;\n container;\n styleClass;\n tooltipText;\n showTimeout;\n hideTimeout;\n active;\n mouseEnterListener;\n mouseLeaveListener;\n containerMouseleaveListener;\n clickListener;\n focusListener;\n blurListener;\n scrollHandler;\n resizeListener;\n interactionInProgress = false;\n constructor(platformId, el, zone, config, renderer, viewContainer) {\n this.platformId = platformId;\n this.el = el;\n this.zone = zone;\n this.config = config;\n this.renderer = renderer;\n this.viewContainer = viewContainer;\n }\n ngAfterViewInit() {\n if (isPlatformBrowser(this.platformId)) {\n this.zone.runOutsideAngular(() => {\n const tooltipEvent = this.getOption('tooltipEvent');\n if (tooltipEvent === 'hover' || tooltipEvent === 'both') {\n this.mouseEnterListener = this.onMouseEnter.bind(this);\n this.mouseLeaveListener = this.onMouseLeave.bind(this);\n this.clickListener = this.onInputClick.bind(this);\n this.el.nativeElement.addEventListener('mouseenter', this.mouseEnterListener);\n this.el.nativeElement.addEventListener('click', this.clickListener);\n this.el.nativeElement.addEventListener('mouseleave', this.mouseLeaveListener);\n }\n if (tooltipEvent === 'focus' || tooltipEvent === 'both') {\n this.focusListener = this.onFocus.bind(this);\n this.blurListener = this.onBlur.bind(this);\n let target = this.el.nativeElement.querySelector('.p-component');\n if (!target) {\n target = this.getTarget(this.el.nativeElement);\n }\n target.addEventListener('focus', this.focusListener);\n target.addEventListener('blur', this.blurListener);\n }\n });\n }\n }\n ngOnChanges(simpleChange) {\n if (simpleChange.tooltipPosition) {\n this.setOption({\n tooltipPosition: simpleChange.tooltipPosition.currentValue\n });\n }\n if (simpleChange.tooltipEvent) {\n this.setOption({\n tooltipEvent: simpleChange.tooltipEvent.currentValue\n });\n }\n if (simpleChange.appendTo) {\n this.setOption({\n appendTo: simpleChange.appendTo.currentValue\n });\n }\n if (simpleChange.positionStyle) {\n this.setOption({\n positionStyle: simpleChange.positionStyle.currentValue\n });\n }\n if (simpleChange.tooltipStyleClass) {\n this.setOption({\n tooltipStyleClass: simpleChange.tooltipStyleClass.currentValue\n });\n }\n if (simpleChange.tooltipZIndex) {\n this.setOption({\n tooltipZIndex: simpleChange.tooltipZIndex.currentValue\n });\n }\n if (simpleChange.escape) {\n this.setOption({\n escape: simpleChange.escape.currentValue\n });\n }\n if (simpleChange.showDelay) {\n this.setOption({\n showDelay: simpleChange.showDelay.currentValue\n });\n }\n if (simpleChange.hideDelay) {\n this.setOption({\n hideDelay: simpleChange.hideDelay.currentValue\n });\n }\n if (simpleChange.life) {\n this.setOption({\n life: simpleChange.life.currentValue\n });\n }\n if (simpleChange.positionTop) {\n this.setOption({\n positionTop: simpleChange.positionTop.currentValue\n });\n }\n if (simpleChange.positionLeft) {\n this.setOption({\n positionLeft: simpleChange.positionLeft.currentValue\n });\n }\n if (simpleChange.disabled) {\n this.setOption({\n disabled: simpleChange.disabled.currentValue\n });\n }\n if (simpleChange.content) {\n this.setOption({\n tooltipLabel: simpleChange.content.currentValue\n });\n if (this.active) {\n if (simpleChange.content.currentValue) {\n if (this.container && this.container.offsetParent) {\n this.updateText();\n this.align();\n } else {\n this.show();\n }\n } else {\n this.hide();\n }\n }\n }\n if (simpleChange.autoHide) {\n this.setOption({\n autoHide: simpleChange.autoHide.currentValue\n });\n }\n if (simpleChange.id) {\n this.setOption({\n id: simpleChange.id.currentValue\n });\n }\n if (simpleChange.tooltipOptions) {\n this._tooltipOptions = {\n ...this._tooltipOptions,\n ...simpleChange.tooltipOptions.currentValue\n };\n this.deactivate();\n if (this.active) {\n if (this.getOption('tooltipLabel')) {\n if (this.container && this.container.offsetParent) {\n this.updateText();\n this.align();\n } else {\n this.show();\n }\n } else {\n this.hide();\n }\n }\n }\n }\n isAutoHide() {\n return this.getOption('autoHide');\n }\n onMouseEnter(e) {\n if (!this.container && !this.showTimeout) {\n this.activate();\n }\n }\n onMouseLeave(e) {\n if (!this.isAutoHide()) {\n const valid = DomHandler.hasClass(e.relatedTarget, 'p-tooltip') || DomHandler.hasClass(e.relatedTarget, 'p-tooltip-text') || DomHandler.hasClass(e.relatedTarget, 'p-tooltip-arrow');\n !valid && this.deactivate();\n } else {\n this.deactivate();\n }\n }\n onFocus(e) {\n this.activate();\n }\n onBlur(e) {\n this.deactivate();\n }\n onInputClick(e) {\n this.deactivate();\n }\n onPressEscape() {\n if (this.hideOnEscape) {\n this.deactivate();\n }\n }\n activate() {\n if (!this.interactionInProgress) {\n this.active = true;\n this.clearHideTimeout();\n if (this.getOption('showDelay')) this.showTimeout = setTimeout(() => {\n this.show();\n }, this.getOption('showDelay'));else this.show();\n if (this.getOption('life')) {\n let duration = this.getOption('showDelay') ? this.getOption('life') + this.getOption('showDelay') : this.getOption('life');\n this.hideTimeout = setTimeout(() => {\n this.hide();\n }, duration);\n }\n }\n this.interactionInProgress = true;\n }\n deactivate() {\n this.interactionInProgress = false;\n this.active = false;\n this.clearShowTimeout();\n if (this.getOption('hideDelay')) {\n this.clearHideTimeout(); //life timeout\n this.hideTimeout = setTimeout(() => {\n this.hide();\n }, this.getOption('hideDelay'));\n } else {\n this.hide();\n }\n }\n create() {\n if (this.container) {\n this.clearHideTimeout();\n this.remove();\n }\n this.container = document.createElement('div');\n this.container.setAttribute('id', this.getOption('id'));\n this.container.setAttribute('role', 'tooltip');\n let tooltipArrow = document.createElement('div');\n tooltipArrow.className = 'p-tooltip-arrow';\n this.container.appendChild(tooltipArrow);\n this.tooltipText = document.createElement('div');\n this.tooltipText.className = 'p-tooltip-text';\n this.updateText();\n if (this.getOption('positionStyle')) {\n this.container.style.position = this.getOption('positionStyle');\n }\n this.container.appendChild(this.tooltipText);\n if (this.getOption('appendTo') === 'body') document.body.appendChild(this.container);else if (this.getOption('appendTo') === 'target') DomHandler.appendChild(this.container, this.el.nativeElement);else DomHandler.appendChild(this.container, this.getOption('appendTo'));\n this.container.style.display = 'inline-block';\n if (this.fitContent) {\n this.container.style.width = 'fit-content';\n }\n if (this.isAutoHide()) {\n this.container.style.pointerEvents = 'none';\n } else {\n this.container.style.pointerEvents = 'unset';\n this.bindContainerMouseleaveListener();\n }\n }\n bindContainerMouseleaveListener() {\n if (!this.containerMouseleaveListener) {\n const targetEl = this.container ?? this.container.nativeElement;\n this.containerMouseleaveListener = this.renderer.listen(targetEl, 'mouseleave', e => {\n this.deactivate();\n });\n }\n }\n unbindContainerMouseleaveListener() {\n if (this.containerMouseleaveListener) {\n this.bindContainerMouseleaveListener();\n this.containerMouseleaveListener = null;\n }\n }\n show() {\n if (!this.getOption('tooltipLabel') || this.getOption('disabled')) {\n return;\n }\n this.create();\n const nativeElement = this.el.nativeElement;\n const pDialogWrapper = nativeElement.closest('p-dialog');\n if (pDialogWrapper) {\n setTimeout(() => {\n this.container && this.align();\n }, 100);\n } else {\n this.align();\n }\n DomHandler.fadeIn(this.container, 250);\n if (this.getOption('tooltipZIndex') === 'auto') ZIndexUtils.set('tooltip', this.container, this.config.zIndex.tooltip);else this.container.style.zIndex = this.getOption('tooltipZIndex');\n this.bindDocumentResizeListener();\n this.bindScrollListener();\n }\n hide() {\n if (this.getOption('tooltipZIndex') === 'auto') {\n ZIndexUtils.clear(this.container);\n }\n this.remove();\n }\n updateText() {\n const content = this.getOption('tooltipLabel');\n if (content instanceof TemplateRef) {\n const embeddedViewRef = this.viewContainer.createEmbeddedView(content);\n embeddedViewRef.detectChanges();\n embeddedViewRef.rootNodes.forEach(node => this.tooltipText.appendChild(node));\n } else if (this.getOption('escape')) {\n this.tooltipText.innerHTML = '';\n this.tooltipText.appendChild(document.createTextNode(content));\n } else {\n this.tooltipText.innerHTML = content;\n }\n }\n align() {\n let position = this.getOption('tooltipPosition');\n switch (position) {\n case 'top':\n this.alignTop();\n if (this.isOutOfBounds()) {\n this.alignBottom();\n if (this.isOutOfBounds()) {\n this.alignRight();\n if (this.isOutOfBounds()) {\n this.alignLeft();\n }\n }\n }\n break;\n case 'bottom':\n this.alignBottom();\n if (this.isOutOfBounds()) {\n this.alignTop();\n if (this.isOutOfBounds()) {\n this.alignRight();\n if (this.isOutOfBounds()) {\n this.alignLeft();\n }\n }\n }\n break;\n case 'left':\n this.alignLeft();\n if (this.isOutOfBounds()) {\n this.alignRight();\n if (this.isOutOfBounds()) {\n this.alignTop();\n if (this.isOutOfBounds()) {\n this.alignBottom();\n }\n }\n }\n break;\n case 'right':\n this.alignRight();\n if (this.isOutOfBounds()) {\n this.alignLeft();\n if (this.isOutOfBounds()) {\n this.alignTop();\n if (this.isOutOfBounds()) {\n this.alignBottom();\n }\n }\n }\n break;\n }\n }\n getHostOffset() {\n if (this.getOption('appendTo') === 'body' || this.getOption('appendTo') === 'target') {\n let offset = this.el.nativeElement.getBoundingClientRect();\n let targetLeft = offset.left + DomHandler.getWindowScrollLeft();\n let targetTop = offset.top + DomHandler.getWindowScrollTop();\n return {\n left: targetLeft,\n top: targetTop\n };\n } else {\n return {\n left: 0,\n top: 0\n };\n }\n }\n alignRight() {\n this.preAlign('right');\n const el = this.activeElement;\n const hostOffset = this.getHostOffset();\n const left = hostOffset.left + DomHandler.getOuterWidth(el);\n const top = hostOffset.top + (DomHandler.getOuterHeight(el) - DomHandler.getOuterHeight(this.container)) / 2;\n this.container.style.left = left + this.getOption('positionLeft') + 'px';\n this.container.style.top = top + this.getOption('positionTop') + 'px';\n }\n get activeElement() {\n return this.el.nativeElement.nodeName.includes('P-') ? DomHandler.findSingle(this.el.nativeElement, '.p-component') || this.el.nativeElement : this.el.nativeElement;\n }\n alignLeft() {\n this.preAlign('left');\n let hostOffset = this.getHostOffset();\n let left = hostOffset.left - DomHandler.getOuterWidth(this.container);\n let top = hostOffset.top + (DomHandler.getOuterHeight(this.el.nativeElement) - DomHandler.getOuterHeight(this.container)) / 2;\n this.container.style.left = left + this.getOption('positionLeft') + 'px';\n this.container.style.top = top + this.getOption('positionTop') + 'px';\n }\n alignTop() {\n this.preAlign('top');\n let hostOffset = this.getHostOffset();\n let left = hostOffset.left + (DomHandler.getOuterWidth(this.el.nativeElement) - DomHandler.getOuterWidth(this.container)) / 2;\n let top = hostOffset.top - DomHandler.getOuterHeight(this.container);\n this.container.style.left = left + this.getOption('positionLeft') + 'px';\n this.container.style.top = top + this.getOption('positionTop') + 'px';\n }\n alignBottom() {\n this.preAlign('bottom');\n let hostOffset = this.getHostOffset();\n let left = hostOffset.left + (DomHandler.getOuterWidth(this.el.nativeElement) - DomHandler.getOuterWidth(this.container)) / 2;\n let top = hostOffset.top + DomHandler.getOuterHeight(this.el.nativeElement);\n this.container.style.left = left + this.getOption('positionLeft') + 'px';\n this.container.style.top = top + this.getOption('positionTop') + 'px';\n }\n setOption(option) {\n this._tooltipOptions = {\n ...this._tooltipOptions,\n ...option\n };\n }\n getOption(option) {\n return this._tooltipOptions[option];\n }\n getTarget(el) {\n return DomHandler.hasClass(el, 'p-inputwrapper') ? DomHandler.findSingle(el, 'input') : el;\n }\n preAlign(position) {\n this.container.style.left = -999 + 'px';\n this.container.style.top = -999 + 'px';\n let defaultClassName = 'p-tooltip p-component p-tooltip-' + position;\n this.container.className = this.getOption('tooltipStyleClass') ? defaultClassName + ' ' + this.getOption('tooltipStyleClass') : defaultClassName;\n }\n isOutOfBounds() {\n let offset = this.container.getBoundingClientRect();\n let targetTop = offset.top;\n let targetLeft = offset.left;\n let width = DomHandler.getOuterWidth(this.container);\n let height = DomHandler.getOuterHeight(this.container);\n let viewport = DomHandler.getViewport();\n return targetLeft + width > viewport.width || targetLeft < 0 || targetTop < 0 || targetTop + height > viewport.height;\n }\n onWindowResize(e) {\n this.hide();\n }\n bindDocumentResizeListener() {\n this.zone.runOutsideAngular(() => {\n this.resizeListener = this.onWindowResize.bind(this);\n window.addEventListener('resize', this.resizeListener);\n });\n }\n unbindDocumentResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n bindScrollListener() {\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.el.nativeElement, () => {\n if (this.container) {\n this.hide();\n }\n });\n }\n this.scrollHandler.bindScrollListener();\n }\n unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n unbindEvents() {\n const tooltipEvent = this.getOption('tooltipEvent');\n if (tooltipEvent === 'hover' || tooltipEvent === 'both') {\n this.el.nativeElement.removeEventListener('mouseenter', this.mouseEnterListener);\n this.el.nativeElement.removeEventListener('mouseleave', this.mouseLeaveListener);\n this.el.nativeElement.removeEventListener('click', this.clickListener);\n }\n if (tooltipEvent === 'focus' || tooltipEvent === 'both') {\n let target = this.el.nativeElement.querySelector('.p-component');\n if (!target) {\n target = this.getTarget(this.el.nativeElement);\n }\n }\n this.unbindDocumentResizeListener();\n }\n remove() {\n if (this.container && this.container.parentElement) {\n if (this.getOption('appendTo') === 'body') document.body.removeChild(this.container);else if (this.getOption('appendTo') === 'target') this.el.nativeElement.removeChild(this.container);else DomHandler.removeChild(this.container, this.getOption('appendTo'));\n }\n this.unbindDocumentResizeListener();\n this.unbindScrollListener();\n this.unbindContainerMouseleaveListener();\n this.clearTimeouts();\n this.container = null;\n this.scrollHandler = null;\n }\n clearShowTimeout() {\n if (this.showTimeout) {\n clearTimeout(this.showTimeout);\n this.showTimeout = null;\n }\n }\n clearHideTimeout() {\n if (this.hideTimeout) {\n clearTimeout(this.hideTimeout);\n this.hideTimeout = null;\n }\n }\n clearTimeouts() {\n this.clearShowTimeout();\n this.clearHideTimeout();\n }\n ngOnDestroy() {\n this.unbindEvents();\n if (this.container) {\n ZIndexUtils.clear(this.container);\n }\n this.remove();\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n }\n static ɵfac = function Tooltip_Factory(t) {\n return new (t || Tooltip)(i0.ɵɵdirectiveInject(PLATFORM_ID), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1.PrimeNGConfig), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: Tooltip,\n selectors: [[\"\", \"pTooltip\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n hostBindings: function Tooltip_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"keydown.escape\", function Tooltip_keydown_escape_HostBindingHandler($event) {\n return ctx.onPressEscape($event);\n }, false, i0.ɵɵresolveDocument);\n }\n },\n inputs: {\n tooltipPosition: \"tooltipPosition\",\n tooltipEvent: \"tooltipEvent\",\n appendTo: \"appendTo\",\n positionStyle: \"positionStyle\",\n tooltipStyleClass: \"tooltipStyleClass\",\n tooltipZIndex: \"tooltipZIndex\",\n escape: [2, \"escape\", \"escape\", booleanAttribute],\n showDelay: [2, \"showDelay\", \"showDelay\", numberAttribute],\n hideDelay: [2, \"hideDelay\", \"hideDelay\", numberAttribute],\n life: [2, \"life\", \"life\", numberAttribute],\n positionTop: [2, \"positionTop\", \"positionTop\", numberAttribute],\n positionLeft: [2, \"positionLeft\", \"positionLeft\", numberAttribute],\n autoHide: [2, \"autoHide\", \"autoHide\", booleanAttribute],\n fitContent: [2, \"fitContent\", \"fitContent\", booleanAttribute],\n hideOnEscape: [2, \"hideOnEscape\", \"hideOnEscape\", booleanAttribute],\n content: [0, \"pTooltip\", \"content\"],\n disabled: [0, \"tooltipDisabled\", \"disabled\"],\n tooltipOptions: \"tooltipOptions\"\n },\n features: [i0.ɵɵInputTransformsFeature, i0.ɵɵNgOnChangesFeature]\n });\n }\n return Tooltip;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TooltipModule = /*#__PURE__*/(() => {\n class TooltipModule {\n static ɵfac = function TooltipModule_Factory(t) {\n return new (t || TooltipModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TooltipModule\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [CommonModule]\n });\n }\n return TooltipModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Tooltip, TooltipModule };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet CheckIcon = /*#__PURE__*/(() => {\n class CheckIcon extends BaseIcon {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵCheckIcon_BaseFactory;\n return function CheckIcon_Factory(t) {\n return (ɵCheckIcon_BaseFactory || (ɵCheckIcon_BaseFactory = i0.ɵɵgetInheritedFactory(CheckIcon)))(t || CheckIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: CheckIcon,\n selectors: [[\"CheckIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 2,\n vars: 5,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z\", \"fill\", \"currentColor\"]],\n template: function CheckIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵelement(1, \"path\", 1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n }\n },\n encapsulation: 2\n });\n }\n return CheckIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CheckIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet BlankIcon = /*#__PURE__*/(() => {\n class BlankIcon extends BaseIcon {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵBlankIcon_BaseFactory;\n return function BlankIcon_Factory(t) {\n return (ɵBlankIcon_BaseFactory || (ɵBlankIcon_BaseFactory = i0.ɵɵgetInheritedFactory(BlankIcon)))(t || BlankIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: BlankIcon,\n selectors: [[\"BlankIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 2,\n vars: 0,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\", \"v-bind\", \"pti()\"], [\"width\", \"1\", \"height\", \"1\", \"fill\", \"currentColor\", \"fill-opacity\", \"0\"]],\n template: function BlankIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵelement(1, \"rect\", 1);\n i0.ɵɵelementEnd();\n }\n },\n encapsulation: 2\n });\n }\n return BlankIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BlankIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nimport { UniqueComponentId } from 'primeng/utils';\nlet SearchIcon = /*#__PURE__*/(() => {\n class SearchIcon extends BaseIcon {\n pathId;\n ngOnInit() {\n this.pathId = 'url(#' + UniqueComponentId() + ')';\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵSearchIcon_BaseFactory;\n return function SearchIcon_Factory(t) {\n return (ɵSearchIcon_BaseFactory || (ɵSearchIcon_BaseFactory = i0.ɵɵgetInheritedFactory(SearchIcon)))(t || SearchIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: SearchIcon,\n selectors: [[\"SearchIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 6,\n vars: 7,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"fill-rule\", \"evenodd\", \"clip-rule\", \"evenodd\", \"d\", \"M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z\", \"fill\", \"currentColor\"], [3, \"id\"], [\"width\", \"14\", \"height\", \"14\", \"fill\", \"white\"]],\n template: function SearchIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0)(1, \"g\");\n i0.ɵɵelement(2, \"path\", 1);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(3, \"defs\")(4, \"clipPath\", 2);\n i0.ɵɵelement(5, \"rect\", 3);\n i0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"clip-path\", ctx.pathId);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"id\", ctx.pathId);\n }\n },\n encapsulation: 2\n });\n }\n return SearchIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { SearchIcon };\n","import * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { forwardRef, EventEmitter, booleanAttribute, numberAttribute, Component, Input, Output, signal, computed, effect, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, ContentChildren, NgModule } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport * as i3 from 'primeng/api';\nimport { TranslationKeys, PrimeTemplate, SharedModule } from 'primeng/api';\nimport * as i7 from 'primeng/autofocus';\nimport { AutoFocusModule } from 'primeng/autofocus';\nimport { DomHandler } from 'primeng/dom';\nimport * as i4 from 'primeng/overlay';\nimport { OverlayModule } from 'primeng/overlay';\nimport * as i2 from 'primeng/ripple';\nimport { RippleModule } from 'primeng/ripple';\nimport * as i6 from 'primeng/scroller';\nimport { ScrollerModule } from 'primeng/scroller';\nimport * as i5 from 'primeng/tooltip';\nimport { TooltipModule } from 'primeng/tooltip';\nimport { ObjectUtils, UniqueComponentId } from 'primeng/utils';\nimport { TimesIcon } from 'primeng/icons/times';\nimport { CheckIcon } from 'primeng/icons/check';\nimport { BlankIcon } from 'primeng/icons/blank';\nimport { ChevronDownIcon } from 'primeng/icons/chevrondown';\nimport { SearchIcon } from 'primeng/icons/search';\nconst _c0 = a0 => ({\n height: a0\n});\nconst _c1 = (a0, a1, a2) => ({\n \"p-dropdown-item\": true,\n \"p-highlight\": a0,\n \"p-disabled\": a1,\n \"p-focus\": a2\n});\nconst _c2 = a0 => ({\n $implicit: a0\n});\nfunction DropdownItem_ng_container_1_CheckIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"CheckIcon\", 4);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-dropdown-check-icon\");\n }\n}\nfunction DropdownItem_ng_container_1_BlankIcon_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"BlankIcon\", 4);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-dropdown-blank-icon\");\n }\n}\nfunction DropdownItem_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, DropdownItem_ng_container_1_CheckIcon_1_Template, 1, 1, \"CheckIcon\", 3)(2, DropdownItem_ng_container_1_BlankIcon_2_Template, 1, 1, \"BlankIcon\", 3);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.selected);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r0.selected);\n }\n}\nfunction DropdownItem_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n let tmp_1_0;\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate((tmp_1_0 = ctx_r0.label) !== null && tmp_1_0 !== undefined ? tmp_1_0 : \"empty\");\n }\n}\nfunction DropdownItem_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nconst _c3 = [\"container\"];\nconst _c4 = [\"filter\"];\nconst _c5 = [\"focusInput\"];\nconst _c6 = [\"editableInput\"];\nconst _c7 = [\"items\"];\nconst _c8 = [\"scroller\"];\nconst _c9 = [\"overlay\"];\nconst _c10 = [\"firstHiddenFocusableEl\"];\nconst _c11 = [\"lastHiddenFocusableEl\"];\nconst _c12 = a0 => ({\n \"max-height\": a0\n});\nconst _c13 = a0 => ({\n options: a0\n});\nconst _c14 = a0 => ({\n \"p-variant-filled\": a0\n});\nconst _c15 = (a0, a1) => ({\n $implicit: a0,\n options: a1\n});\nconst _c16 = () => ({});\nfunction Dropdown_span_2_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx_r2.label() === \"p-emptylabel\" ? \"\\xA0\" : ctx_r2.label());\n }\n}\nfunction Dropdown_span_2_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0, 25);\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.selectedItemTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c2, ctx_r2.selectedOption));\n }\n}\nfunction Dropdown_span_2_ng_template_4_span_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx_r2.label() === \"p-emptylabel\" ? \"\\xA0\" : ctx_r2.label());\n }\n}\nfunction Dropdown_span_2_ng_template_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Dropdown_span_2_ng_template_4_span_0_Template, 2, 1, \"span\", 18);\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r2.isSelectedOptionEmpty());\n }\n}\nfunction Dropdown_span_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r2 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"span\", 23, 3);\n i0.ɵɵlistener(\"focus\", function Dropdown_span_2_Template_span_focus_0_listener($event) {\n i0.ɵɵrestoreView(_r2);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onInputFocus($event));\n })(\"blur\", function Dropdown_span_2_Template_span_blur_0_listener($event) {\n i0.ɵɵrestoreView(_r2);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onInputBlur($event));\n })(\"keydown\", function Dropdown_span_2_Template_span_keydown_0_listener($event) {\n i0.ɵɵrestoreView(_r2);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onKeyDown($event));\n });\n i0.ɵɵtemplate(2, Dropdown_span_2_ng_container_2_Template, 2, 1, \"ng-container\", 20)(3, Dropdown_span_2_ng_container_3_Template, 1, 4, \"ng-container\", 24)(4, Dropdown_span_2_ng_template_4_Template, 1, 1, \"ng-template\", null, 4, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n let tmp_17_0;\n const defaultPlaceholder_r4 = i0.ɵɵreference(5);\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngClass\", ctx_r2.inputClass)(\"pTooltip\", ctx_r2.tooltip)(\"tooltipPosition\", ctx_r2.tooltipPosition)(\"positionStyle\", ctx_r2.tooltipPositionStyle)(\"tooltipStyleClass\", ctx_r2.tooltipStyleClass)(\"autofocus\", ctx_r2.autofocus);\n i0.ɵɵattribute(\"aria-disabled\", ctx_r2.disabled)(\"id\", ctx_r2.inputId)(\"aria-label\", ctx_r2.ariaLabel || (ctx_r2.label() === \"p-emptylabel\" ? undefined : ctx_r2.label()))(\"aria-labelledby\", ctx_r2.ariaLabelledBy)(\"aria-haspopup\", \"listbox\")(\"aria-expanded\", (tmp_17_0 = ctx_r2.overlayVisible) !== null && tmp_17_0 !== undefined ? tmp_17_0 : false)(\"aria-controls\", ctx_r2.overlayVisible ? ctx_r2.id + \"_list\" : null)(\"tabindex\", !ctx_r2.disabled ? ctx_r2.tabindex : -1)(\"aria-activedescendant\", ctx_r2.focused ? ctx_r2.focusedOptionId : undefined)(\"aria-required\", ctx_r2.required)(\"required\", ctx_r2.required);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.selectedItemTemplate)(\"ngIfElse\", defaultPlaceholder_r4);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.selectedItemTemplate && !ctx_r2.isSelectedOptionEmpty());\n }\n}\nfunction Dropdown_input_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r5 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"input\", 26, 5);\n i0.ɵɵlistener(\"input\", function Dropdown_input_3_Template_input_input_0_listener($event) {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onEditableInput($event));\n })(\"keydown\", function Dropdown_input_3_Template_input_keydown_0_listener($event) {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onKeyDown($event));\n })(\"focus\", function Dropdown_input_3_Template_input_focus_0_listener($event) {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onInputFocus($event));\n })(\"blur\", function Dropdown_input_3_Template_input_blur_0_listener($event) {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onInputBlur($event));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngClass\", ctx_r2.inputClass)(\"disabled\", ctx_r2.disabled)(\"autofocus\", ctx_r2.autofocus);\n i0.ɵɵattribute(\"id\", ctx_r2.inputId)(\"maxlength\", ctx_r2.maxlength)(\"placeholder\", ctx_r2.modelValue() === undefined || ctx_r2.modelValue() === null ? ctx_r2.placeholder() : undefined)(\"aria-label\", ctx_r2.ariaLabel || (ctx_r2.label() === \"p-emptylabel\" ? undefined : ctx_r2.label()))(\"aria-activedescendant\", ctx_r2.focused ? ctx_r2.focusedOptionId : undefined);\n }\n}\nfunction Dropdown_ng_container_4_TimesIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r6 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"TimesIcon\", 29);\n i0.ɵɵlistener(\"click\", function Dropdown_ng_container_4_TimesIcon_1_Template_TimesIcon_click_0_listener($event) {\n i0.ɵɵrestoreView(_r6);\n const ctx_r2 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r2.clear($event));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-dropdown-clear-icon\");\n i0.ɵɵattribute(\"data-pc-section\", \"clearicon\");\n }\n}\nfunction Dropdown_ng_container_4_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction Dropdown_ng_container_4_span_2_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Dropdown_ng_container_4_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Dropdown_ng_container_4_span_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r7 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"span\", 30);\n i0.ɵɵlistener(\"click\", function Dropdown_ng_container_4_span_2_Template_span_click_0_listener($event) {\n i0.ɵɵrestoreView(_r7);\n const ctx_r2 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r2.clear($event));\n });\n i0.ɵɵtemplate(1, Dropdown_ng_container_4_span_2_1_Template, 1, 0, null, 31);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵattribute(\"data-pc-section\", \"clearicon\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.clearIconTemplate);\n }\n}\nfunction Dropdown_ng_container_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Dropdown_ng_container_4_TimesIcon_1_Template, 1, 2, \"TimesIcon\", 27)(2, Dropdown_ng_container_4_span_2_Template, 2, 2, \"span\", 28);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.clearIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.clearIconTemplate);\n }\n}\nfunction Dropdown_ng_container_6_ng_container_1_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Dropdown_ng_container_6_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Dropdown_ng_container_6_ng_container_1_ng_container_1_Template, 1, 0, \"ng-container\", 31);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.loadingIconTemplate);\n }\n}\nfunction Dropdown_ng_container_6_ng_container_2_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 34);\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngClass\", \"p-dropdown-trigger-icon pi-spin \" + ctx_r2.loadingIcon);\n }\n}\nfunction Dropdown_ng_container_6_ng_container_2_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 35);\n }\n if (rf & 2) {\n i0.ɵɵclassMap(\"p-dropdown-trigger-icon pi pi-spinner pi-spin\");\n }\n}\nfunction Dropdown_ng_container_6_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Dropdown_ng_container_6_ng_container_2_span_1_Template, 1, 1, \"span\", 32)(2, Dropdown_ng_container_6_ng_container_2_span_2_Template, 1, 2, \"span\", 33);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.loadingIcon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.loadingIcon);\n }\n}\nfunction Dropdown_ng_container_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Dropdown_ng_container_6_ng_container_1_Template, 2, 1, \"ng-container\", 18)(2, Dropdown_ng_container_6_ng_container_2_Template, 3, 2, \"ng-container\", 18);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.loadingIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.loadingIconTemplate);\n }\n}\nfunction Dropdown_ng_template_7_ng_container_0_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 39);\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngClass\", ctx_r2.dropdownIcon);\n }\n}\nfunction Dropdown_ng_template_7_ng_container_0_ChevronDownIcon_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ChevronDownIcon\", 40);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-dropdown-trigger-icon\");\n }\n}\nfunction Dropdown_ng_template_7_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Dropdown_ng_template_7_ng_container_0_span_1_Template, 1, 1, \"span\", 37)(2, Dropdown_ng_template_7_ng_container_0_ChevronDownIcon_2_Template, 1, 1, \"ChevronDownIcon\", 38);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.dropdownIcon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.dropdownIcon);\n }\n}\nfunction Dropdown_ng_template_7_span_1_1_ng_template_0_Template(rf, ctx) {}\nfunction Dropdown_ng_template_7_span_1_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Dropdown_ng_template_7_span_1_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Dropdown_ng_template_7_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 41);\n i0.ɵɵtemplate(1, Dropdown_ng_template_7_span_1_1_Template, 1, 0, null, 31);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.dropdownIconTemplate);\n }\n}\nfunction Dropdown_ng_template_7_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Dropdown_ng_template_7_ng_container_0_Template, 3, 2, \"ng-container\", 18)(1, Dropdown_ng_template_7_span_1_Template, 2, 1, \"span\", 36);\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.dropdownIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.dropdownIconTemplate);\n }\n}\nfunction Dropdown_ng_template_11_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Dropdown_ng_template_11_div_4_ng_container_1_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Dropdown_ng_template_11_div_4_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Dropdown_ng_template_11_div_4_ng_container_1_ng_container_1_Template, 1, 0, \"ng-container\", 48);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.filterTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c13, ctx_r2.filterOptions));\n }\n}\nfunction Dropdown_ng_template_11_div_4_ng_template_2_SearchIcon_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"SearchIcon\", 40);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-dropdown-filter-icon\");\n }\n}\nfunction Dropdown_ng_template_11_div_4_ng_template_2_span_4_1_ng_template_0_Template(rf, ctx) {}\nfunction Dropdown_ng_template_11_div_4_ng_template_2_span_4_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Dropdown_ng_template_11_div_4_ng_template_2_span_4_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Dropdown_ng_template_11_div_4_ng_template_2_span_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 52);\n i0.ɵɵtemplate(1, Dropdown_ng_template_11_div_4_ng_template_2_span_4_1_Template, 1, 0, null, 31);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(4);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.filterIconTemplate);\n }\n}\nfunction Dropdown_ng_template_11_div_4_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r10 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 49)(1, \"input\", 50, 10);\n i0.ɵɵlistener(\"input\", function Dropdown_ng_template_11_div_4_ng_template_2_Template_input_input_1_listener($event) {\n i0.ɵɵrestoreView(_r10);\n const ctx_r2 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r2.onFilterInputChange($event));\n })(\"keydown\", function Dropdown_ng_template_11_div_4_ng_template_2_Template_input_keydown_1_listener($event) {\n i0.ɵɵrestoreView(_r10);\n const ctx_r2 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r2.onFilterKeyDown($event));\n })(\"blur\", function Dropdown_ng_template_11_div_4_ng_template_2_Template_input_blur_1_listener($event) {\n i0.ɵɵrestoreView(_r10);\n const ctx_r2 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r2.onFilterBlur($event));\n });\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(3, Dropdown_ng_template_11_div_4_ng_template_2_SearchIcon_3_Template, 1, 1, \"SearchIcon\", 38)(4, Dropdown_ng_template_11_div_4_ng_template_2_span_4_Template, 2, 1, \"span\", 51);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"value\", ctx_r2._filterValue() || \"\")(\"ngClass\", i0.ɵɵpureFunction1(8, _c14, ctx_r2.variant === \"filled\" || ctx_r2.config.inputStyle() === \"filled\"));\n i0.ɵɵattribute(\"placeholder\", ctx_r2.filterPlaceholder)(\"aria-owns\", ctx_r2.id + \"_list\")(\"aria-label\", ctx_r2.ariaFilterLabel)(\"aria-activedescendant\", ctx_r2.focusedOptionId);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.filterIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.filterIconTemplate);\n }\n}\nfunction Dropdown_ng_template_11_div_4_Template(rf, ctx) {\n if (rf & 1) {\n const _r9 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 47);\n i0.ɵɵlistener(\"click\", function Dropdown_ng_template_11_div_4_Template_div_click_0_listener($event) {\n i0.ɵɵrestoreView(_r9);\n return i0.ɵɵresetView($event.stopPropagation());\n });\n i0.ɵɵtemplate(1, Dropdown_ng_template_11_div_4_ng_container_1_Template, 2, 4, \"ng-container\", 20)(2, Dropdown_ng_template_11_div_4_ng_template_2_Template, 5, 10, \"ng-template\", null, 9, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const builtInFilterElement_r11 = i0.ɵɵreference(3);\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.filterTemplate)(\"ngIfElse\", builtInFilterElement_r11);\n }\n}\nfunction Dropdown_ng_template_11_p_scroller_6_ng_template_2_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Dropdown_ng_template_11_p_scroller_6_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Dropdown_ng_template_11_p_scroller_6_ng_template_2_ng_container_0_Template, 1, 0, \"ng-container\", 48);\n }\n if (rf & 2) {\n const items_r13 = ctx.$implicit;\n const scrollerOptions_r14 = ctx.options;\n i0.ɵɵnextContext(2);\n const buildInItems_r15 = i0.ɵɵreference(9);\n i0.ɵɵproperty(\"ngTemplateOutlet\", buildInItems_r15)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction2(2, _c15, items_r13, scrollerOptions_r14));\n }\n}\nfunction Dropdown_ng_template_11_p_scroller_6_ng_container_3_ng_template_1_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Dropdown_ng_template_11_p_scroller_6_ng_container_3_ng_template_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Dropdown_ng_template_11_p_scroller_6_ng_container_3_ng_template_1_ng_container_0_Template, 1, 0, \"ng-container\", 48);\n }\n if (rf & 2) {\n const scrollerOptions_r16 = ctx.options;\n const ctx_r2 = i0.ɵɵnextContext(4);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.loaderTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c13, scrollerOptions_r16));\n }\n}\nfunction Dropdown_ng_template_11_p_scroller_6_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Dropdown_ng_template_11_p_scroller_6_ng_container_3_ng_template_1_Template, 1, 4, \"ng-template\", 54);\n i0.ɵɵelementContainerEnd();\n }\n}\nfunction Dropdown_ng_template_11_p_scroller_6_Template(rf, ctx) {\n if (rf & 1) {\n const _r12 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"p-scroller\", 53, 11);\n i0.ɵɵlistener(\"onLazyLoad\", function Dropdown_ng_template_11_p_scroller_6_Template_p_scroller_onLazyLoad_0_listener($event) {\n i0.ɵɵrestoreView(_r12);\n const ctx_r2 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r2.onLazyLoad.emit($event));\n });\n i0.ɵɵtemplate(2, Dropdown_ng_template_11_p_scroller_6_ng_template_2_Template, 1, 5, \"ng-template\", 22)(3, Dropdown_ng_template_11_p_scroller_6_ng_container_3_Template, 2, 0, \"ng-container\", 18);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵstyleMap(i0.ɵɵpureFunction1(8, _c0, ctx_r2.scrollHeight));\n i0.ɵɵproperty(\"items\", ctx_r2.visibleOptions())(\"itemSize\", ctx_r2.virtualScrollItemSize || ctx_r2._itemSize)(\"autoSize\", true)(\"lazy\", ctx_r2.lazy)(\"options\", ctx_r2.virtualScrollOptions);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngIf\", ctx_r2.loaderTemplate);\n }\n}\nfunction Dropdown_ng_template_11_ng_container_7_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Dropdown_ng_template_11_ng_container_7_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Dropdown_ng_template_11_ng_container_7_ng_container_1_Template, 1, 0, \"ng-container\", 48);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n i0.ɵɵnextContext();\n const buildInItems_r15 = i0.ɵɵreference(9);\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", buildInItems_r15)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction2(3, _c15, ctx_r2.visibleOptions(), i0.ɵɵpureFunction0(2, _c16)));\n }\n}\nfunction Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const option_r17 = i0.ɵɵnextContext(2).$implicit;\n const ctx_r2 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx_r2.getOptionGroupLabel(option_r17.optionGroup));\n }\n}\nfunction Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵelementStart(1, \"li\", 58);\n i0.ɵɵtemplate(2, Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_span_2_Template, 2, 1, \"span\", 18)(3, Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_ng_container_3_Template, 1, 0, \"ng-container\", 48);\n i0.ɵɵelementEnd();\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r17 = i0.ɵɵnextContext();\n const option_r17 = ctx_r17.$implicit;\n const i_r19 = ctx_r17.index;\n const scrollerOptions_r20 = i0.ɵɵnextContext().options;\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(5, _c0, scrollerOptions_r20.itemSize + \"px\"));\n i0.ɵɵattribute(\"id\", ctx_r2.id + \"_\" + ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.groupTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.groupTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(7, _c2, option_r17.optionGroup));\n }\n}\nfunction Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r21 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵelementStart(1, \"p-dropdownItem\", 59);\n i0.ɵɵlistener(\"onClick\", function Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_1_Template_p_dropdownItem_onClick_1_listener($event) {\n i0.ɵɵrestoreView(_r21);\n const option_r17 = i0.ɵɵnextContext().$implicit;\n const ctx_r2 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r2.onOptionSelect($event, option_r17));\n })(\"onMouseEnter\", function Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_1_Template_p_dropdownItem_onMouseEnter_1_listener($event) {\n i0.ɵɵrestoreView(_r21);\n const i_r19 = i0.ɵɵnextContext().index;\n const scrollerOptions_r20 = i0.ɵɵnextContext().options;\n const ctx_r2 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r2.onOptionMouseEnter($event, ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20)));\n });\n i0.ɵɵelementEnd();\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r17 = i0.ɵɵnextContext();\n const option_r17 = ctx_r17.$implicit;\n const i_r19 = ctx_r17.index;\n const scrollerOptions_r20 = i0.ɵɵnextContext().options;\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"id\", ctx_r2.id + \"_\" + ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20))(\"option\", option_r17)(\"checkmark\", ctx_r2.checkmark)(\"selected\", ctx_r2.isSelected(option_r17))(\"label\", ctx_r2.getOptionLabel(option_r17))(\"disabled\", ctx_r2.isOptionDisabled(option_r17))(\"template\", ctx_r2.itemTemplate)(\"focused\", ctx_r2.focusedOptionIndex() === ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20))(\"ariaPosInset\", ctx_r2.getAriaPosInset(ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20)))(\"ariaSetSize\", ctx_r2.ariaSetSize);\n }\n}\nfunction Dropdown_ng_template_11_ng_template_8_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_Template, 4, 9, \"ng-container\", 18)(1, Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_1_Template, 2, 10, \"ng-container\", 18);\n }\n if (rf & 2) {\n const option_r17 = ctx.$implicit;\n const ctx_r2 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngIf\", ctx_r2.isOptionGroup(option_r17));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.isOptionGroup(option_r17));\n }\n}\nfunction Dropdown_ng_template_11_ng_template_8_li_3_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(4);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r2.emptyFilterMessageLabel, \" \");\n }\n}\nfunction Dropdown_ng_template_11_ng_template_8_li_3_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0, null, 13);\n }\n}\nfunction Dropdown_ng_template_11_ng_template_8_li_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"li\", 60);\n i0.ɵɵtemplate(1, Dropdown_ng_template_11_ng_template_8_li_3_ng_container_1_Template, 2, 1, \"ng-container\", 20)(2, Dropdown_ng_template_11_ng_template_8_li_3_ng_container_2_Template, 2, 0, \"ng-container\", 31);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const scrollerOptions_r20 = i0.ɵɵnextContext().options;\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(4, _c0, scrollerOptions_r20.itemSize + \"px\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.emptyFilterTemplate && !ctx_r2.emptyTemplate)(\"ngIfElse\", ctx_r2.emptyFilter);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.emptyFilterTemplate || ctx_r2.emptyTemplate);\n }\n}\nfunction Dropdown_ng_template_11_ng_template_8_li_4_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(4);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r2.emptyMessageLabel, \" \");\n }\n}\nfunction Dropdown_ng_template_11_ng_template_8_li_4_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0, null, 14);\n }\n}\nfunction Dropdown_ng_template_11_ng_template_8_li_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"li\", 60);\n i0.ɵɵtemplate(1, Dropdown_ng_template_11_ng_template_8_li_4_ng_container_1_Template, 2, 1, \"ng-container\", 20)(2, Dropdown_ng_template_11_ng_template_8_li_4_ng_container_2_Template, 2, 0, \"ng-container\", 31);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const scrollerOptions_r20 = i0.ɵɵnextContext().options;\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(4, _c0, scrollerOptions_r20.itemSize + \"px\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.emptyTemplate)(\"ngIfElse\", ctx_r2.empty);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.emptyTemplate);\n }\n}\nfunction Dropdown_ng_template_11_ng_template_8_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"ul\", 55, 12);\n i0.ɵɵtemplate(2, Dropdown_ng_template_11_ng_template_8_ng_template_2_Template, 2, 2, \"ng-template\", 56)(3, Dropdown_ng_template_11_ng_template_8_li_3_Template, 3, 6, \"li\", 57)(4, Dropdown_ng_template_11_ng_template_8_li_4_Template, 3, 6, \"li\", 57);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const items_r22 = ctx.$implicit;\n const scrollerOptions_r20 = ctx.options;\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngClass\", scrollerOptions_r20.contentStyleClass)(\"ngStyle\", scrollerOptions_r20.contentStyle);\n i0.ɵɵattribute(\"id\", ctx_r2.id + \"_list\")(\"aria-label\", ctx_r2.listLabel);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngForOf\", items_r22);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.filterValue && ctx_r2.isEmpty());\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.filterValue && ctx_r2.isEmpty());\n }\n}\nfunction Dropdown_ng_template_11_ng_container_10_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Dropdown_ng_template_11_Template(rf, ctx) {\n if (rf & 1) {\n const _r8 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 42)(1, \"span\", 43, 6);\n i0.ɵɵlistener(\"focus\", function Dropdown_ng_template_11_Template_span_focus_1_listener($event) {\n i0.ɵɵrestoreView(_r8);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onFirstHiddenFocus($event));\n });\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(3, Dropdown_ng_template_11_ng_container_3_Template, 1, 0, \"ng-container\", 31)(4, Dropdown_ng_template_11_div_4_Template, 4, 2, \"div\", 44);\n i0.ɵɵelementStart(5, \"div\", 45);\n i0.ɵɵtemplate(6, Dropdown_ng_template_11_p_scroller_6_Template, 4, 10, \"p-scroller\", 46)(7, Dropdown_ng_template_11_ng_container_7_Template, 2, 6, \"ng-container\", 18)(8, Dropdown_ng_template_11_ng_template_8_Template, 5, 7, \"ng-template\", null, 7, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(10, Dropdown_ng_template_11_ng_container_10_Template, 1, 0, \"ng-container\", 31);\n i0.ɵɵelementStart(11, \"span\", 43, 8);\n i0.ɵɵlistener(\"focus\", function Dropdown_ng_template_11_Template_span_focus_11_listener($event) {\n i0.ɵɵrestoreView(_r8);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onLastHiddenFocus($event));\n });\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵclassMap(ctx_r2.panelStyleClass);\n i0.ɵɵproperty(\"ngClass\", \"p-dropdown-panel p-component\")(\"ngStyle\", ctx_r2.panelStyle);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"tabindex\", 0)(\"data-p-hidden-accessible\", true)(\"data-p-hidden-focusable\", true);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.headerTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.filter);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(16, _c12, ctx_r2.virtualScroll ? \"auto\" : ctx_r2.scrollHeight || \"auto\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.virtualScroll);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.virtualScroll);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.footerTemplate);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"tabindex\", 0)(\"data-p-hidden-accessible\", true)(\"data-p-hidden-focusable\", true);\n }\n}\nconst DROPDOWN_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => Dropdown),\n multi: true\n};\nlet DropdownItem = /*#__PURE__*/(() => {\n class DropdownItem {\n id;\n option;\n selected;\n focused;\n label;\n disabled;\n visible;\n itemSize;\n ariaPosInset;\n ariaSetSize;\n template;\n checkmark;\n onClick = new EventEmitter();\n onMouseEnter = new EventEmitter();\n ngOnInit() {}\n onOptionClick(event) {\n this.onClick.emit(event);\n }\n onOptionMouseEnter(event) {\n this.onMouseEnter.emit(event);\n }\n static ɵfac = function DropdownItem_Factory(t) {\n return new (t || DropdownItem)();\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: DropdownItem,\n selectors: [[\"p-dropdownItem\"]],\n hostAttrs: [1, \"p-element\"],\n inputs: {\n id: \"id\",\n option: \"option\",\n selected: [2, \"selected\", \"selected\", booleanAttribute],\n focused: [2, \"focused\", \"focused\", booleanAttribute],\n label: \"label\",\n disabled: [2, \"disabled\", \"disabled\", booleanAttribute],\n visible: [2, \"visible\", \"visible\", booleanAttribute],\n itemSize: [2, \"itemSize\", \"itemSize\", numberAttribute],\n ariaPosInset: \"ariaPosInset\",\n ariaSetSize: \"ariaSetSize\",\n template: \"template\",\n checkmark: [2, \"checkmark\", \"checkmark\", booleanAttribute]\n },\n outputs: {\n onClick: \"onClick\",\n onMouseEnter: \"onMouseEnter\"\n },\n features: [i0.ɵɵInputTransformsFeature],\n decls: 4,\n vars: 22,\n consts: [[\"role\", \"option\", \"pRipple\", \"\", 3, \"click\", \"mouseenter\", \"id\", \"ngStyle\", \"ngClass\"], [4, \"ngIf\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [3, \"styleClass\", 4, \"ngIf\"], [3, \"styleClass\"]],\n template: function DropdownItem_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"li\", 0);\n i0.ɵɵlistener(\"click\", function DropdownItem_Template_li_click_0_listener($event) {\n return ctx.onOptionClick($event);\n })(\"mouseenter\", function DropdownItem_Template_li_mouseenter_0_listener($event) {\n return ctx.onOptionMouseEnter($event);\n });\n i0.ɵɵtemplate(1, DropdownItem_ng_container_1_Template, 3, 2, \"ng-container\", 1)(2, DropdownItem_span_2_Template, 2, 1, \"span\", 1)(3, DropdownItem_ng_container_3_Template, 1, 0, \"ng-container\", 2);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"id\", ctx.id)(\"ngStyle\", i0.ɵɵpureFunction1(14, _c0, ctx.itemSize + \"px\"))(\"ngClass\", i0.ɵɵpureFunction3(16, _c1, ctx.selected, ctx.disabled, ctx.focused));\n i0.ɵɵattribute(\"aria-label\", ctx.label)(\"aria-setsize\", ctx.ariaSetSize)(\"aria-posinset\", ctx.ariaPosInset)(\"aria-selected\", ctx.selected)(\"data-p-focused\", ctx.focused)(\"data-p-highlight\", ctx.selected)(\"data-p-disabled\", ctx.disabled);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.checkmark);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx.template);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx.template)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(20, _c2, ctx.option));\n }\n },\n dependencies: () => [i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, i2.Ripple, BlankIcon, CheckIcon],\n encapsulation: 2\n });\n }\n return DropdownItem;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Dropdown also known as Select, is used to choose an item from a collection of options.\n * @group Components\n */\nlet Dropdown = /*#__PURE__*/(() => {\n class Dropdown {\n el;\n renderer;\n cd;\n zone;\n filterService;\n config;\n /**\n * Unique identifier of the component\n * @group Props\n */\n id;\n /**\n * Height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.\n * @group Props\n */\n scrollHeight = '200px';\n /**\n * When specified, displays an input field to filter the items on keyup.\n * @group Props\n */\n filter;\n /**\n * Name of the input element.\n * @group Props\n */\n name;\n /**\n * Inline style of the element.\n * @group Props\n */\n style;\n /**\n * Inline style of the overlay panel element.\n * @group Props\n */\n panelStyle;\n /**\n * Style class of the element.\n * @group Props\n */\n styleClass;\n /**\n * Style class of the overlay panel element.\n * @group Props\n */\n panelStyleClass;\n /**\n * When present, it specifies that the component cannot be edited.\n * @group Props\n */\n readonly;\n /**\n * When present, it specifies that an input field must be filled out before submitting the form.\n * @group Props\n */\n required;\n /**\n * When present, custom value instead of predefined options can be entered using the editable input field.\n * @group Props\n */\n editable;\n /**\n * Target element to attach the overlay, valid values are \"body\" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]=\"mydiv\" for a div element having #mydiv as variable name).\n * @group Props\n */\n appendTo;\n /**\n * Index of the element in tabbing order.\n * @group Props\n */\n tabindex = 0;\n /**\n * Default text to display when no option is selected.\n * @group Props\n */\n set placeholder(val) {\n this._placeholder.set(val);\n }\n get placeholder() {\n return this._placeholder.asReadonly();\n }\n /**\n * Icon to display in loading state.\n * @group Props\n */\n loadingIcon;\n /**\n * Placeholder text to show when filter input is empty.\n * @group Props\n */\n filterPlaceholder;\n /**\n * Locale to use in filtering. The default locale is the host environment's current locale.\n * @group Props\n */\n filterLocale;\n /**\n * Specifies the input variant of the component.\n * @group Props\n */\n variant = 'outlined';\n /**\n * Identifier of the accessible input element.\n * @group Props\n */\n inputId;\n /**\n * A property to uniquely identify a value in options.\n * @group Props\n */\n dataKey;\n /**\n * When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.\n * @group Props\n */\n filterBy;\n /**\n * Fields used when filtering the options, defaults to optionLabel.\n * @group Props\n */\n filterFields;\n /**\n * When present, it specifies that the component should automatically get focus on load.\n * @group Props\n */\n autofocus;\n /**\n * Clears the filter value when hiding the dropdown.\n * @group Props\n */\n resetFilterOnHide = false;\n /**\n * Whether the selected option will be shown with a check mark.\n * @group Props\n */\n checkmark = false;\n /**\n * Icon class of the dropdown icon.\n * @group Props\n */\n dropdownIcon;\n /**\n * Whether the dropdown is in loading state.\n * @group Props\n */\n loading = false;\n /**\n * Name of the label field of an option.\n * @group Props\n */\n optionLabel;\n /**\n * Name of the value field of an option.\n * @group Props\n */\n optionValue;\n /**\n * Name of the disabled field of an option.\n * @group Props\n */\n optionDisabled;\n /**\n * Name of the label field of an option group.\n * @group Props\n */\n optionGroupLabel = 'label';\n /**\n * Name of the options field of an option group.\n * @group Props\n */\n optionGroupChildren = 'items';\n /**\n * Whether to display the first item as the label if no placeholder is defined and value is null.\n * @deprecated since v17.3.0, set initial value by model instead.\n * @group Props\n */\n autoDisplayFirst = true;\n /**\n * Whether to display options as grouped when nested options are provided.\n * @group Props\n */\n group;\n /**\n * When enabled, a clear icon is displayed to clear the value.\n * @group Props\n */\n showClear;\n /**\n * Text to display when filtering does not return any results. Defaults to global value in i18n translation configuration.\n * @group Props\n */\n emptyFilterMessage = '';\n /**\n * Text to display when there is no data. Defaults to global value in i18n translation configuration.\n * @group Props\n */\n emptyMessage = '';\n /**\n * Defines if data is loaded and interacted with in lazy manner.\n * @group Props\n */\n lazy = false;\n /**\n * Whether the data should be loaded on demand during scroll.\n * @group Props\n */\n virtualScroll;\n /**\n * Height of an item in the list for VirtualScrolling.\n * @group Props\n */\n virtualScrollItemSize;\n /**\n * Whether to use the scroller feature. The properties of scroller component can be used like an object in it.\n * @group Props\n */\n virtualScrollOptions;\n /**\n * Whether to use overlay API feature. The properties of overlay API can be used like an object in it.\n * @group Props\n */\n overlayOptions;\n /**\n * Defines a string that labels the filter input.\n * @group Props\n */\n ariaFilterLabel;\n /**\n * Used to define a aria label attribute the current element.\n * @group Props\n */\n ariaLabel;\n /**\n * Establishes relationships between the component and label(s) where its value should be one or more element IDs.\n * @group Props\n */\n ariaLabelledBy;\n /**\n * Defines how the items are filtered.\n * @group Props\n */\n filterMatchMode = 'contains';\n /**\n * Maximum number of character allows in the editable input field.\n * @group Props\n */\n maxlength;\n /**\n * Advisory information to display in a tooltip on hover.\n * @group Props\n */\n tooltip = '';\n /**\n * Position of the tooltip.\n * @group Props\n */\n tooltipPosition = 'right';\n /**\n * Type of CSS position.\n * @group Props\n */\n tooltipPositionStyle = 'absolute';\n /**\n * Style class of the tooltip.\n * @group Props\n */\n tooltipStyleClass;\n /**\n * Fields used when filtering the options, defaults to optionLabel.\n * @group Props\n */\n focusOnHover = false;\n /**\n * Determines if the option will be selected on focus.\n * @group Props\n */\n selectOnFocus = false;\n /**\n * Whether to focus on the first visible or selected element when the overlay panel is shown.\n * @group Props\n */\n autoOptionFocus = true;\n /**\n * Applies focus to the filter element when the overlay is shown.\n * @group Props\n */\n autofocusFilter = true;\n /**\n * When present, it specifies that the component should be disabled.\n * @group Props\n */\n get disabled() {\n return this._disabled;\n }\n set disabled(_disabled) {\n if (_disabled) {\n this.focused = false;\n if (this.overlayVisible) this.hide();\n }\n this._disabled = _disabled;\n if (!this.cd.destroyed) {\n this.cd.detectChanges();\n }\n }\n /**\n * Item size of item to be virtual scrolled.\n * @group Props\n * @deprecated use virtualScrollItemSize property instead.\n */\n get itemSize() {\n return this._itemSize;\n }\n set itemSize(val) {\n this._itemSize = val;\n console.warn('The itemSize property is deprecated, use virtualScrollItemSize property instead.');\n }\n _itemSize;\n /**\n * Whether to automatically manage layering.\n * @group Props\n * @deprecated since v14.2.0, use overlayOptions property instead.\n */\n get autoZIndex() {\n return this._autoZIndex;\n }\n set autoZIndex(val) {\n this._autoZIndex = val;\n console.warn('The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.');\n }\n _autoZIndex;\n /**\n * Base zIndex value to use in layering.\n * @group Props\n * @deprecated since v14.2.0, use overlayOptions property instead.\n */\n get baseZIndex() {\n return this._baseZIndex;\n }\n set baseZIndex(val) {\n this._baseZIndex = val;\n console.warn('The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.');\n }\n _baseZIndex;\n /**\n * Transition options of the show animation.\n * @group Props\n * @deprecated since v14.2.0, use overlayOptions property instead.\n */\n get showTransitionOptions() {\n return this._showTransitionOptions;\n }\n set showTransitionOptions(val) {\n this._showTransitionOptions = val;\n console.warn('The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.');\n }\n _showTransitionOptions;\n /**\n * Transition options of the hide animation.\n * @group Props\n * @deprecated since v14.2.0, use overlayOptions property instead.\n */\n get hideTransitionOptions() {\n return this._hideTransitionOptions;\n }\n set hideTransitionOptions(val) {\n this._hideTransitionOptions = val;\n console.warn('The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.');\n }\n _hideTransitionOptions;\n /**\n * When specified, filter displays with this value.\n * @group Props\n */\n get filterValue() {\n return this._filterValue();\n }\n set filterValue(val) {\n setTimeout(() => {\n this._filterValue.set(val);\n });\n }\n /**\n * An array of objects to display as the available options.\n * @group Props\n */\n get options() {\n const options = this._options();\n return options;\n }\n set options(val) {\n if (!ObjectUtils.deepEquals(val, this._options())) {\n this._options.set(val);\n }\n }\n /**\n * Callback to invoke when value of dropdown changes.\n * @param {DropdownChangeEvent} event - custom change event.\n * @group Emits\n */\n onChange = new EventEmitter();\n /**\n * Callback to invoke when data is filtered.\n * @param {DropdownFilterEvent} event - custom filter event.\n * @group Emits\n */\n onFilter = new EventEmitter();\n /**\n * Callback to invoke when dropdown gets focus.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n onFocus = new EventEmitter();\n /**\n * Callback to invoke when dropdown loses focus.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n onBlur = new EventEmitter();\n /**\n * Callback to invoke when component is clicked.\n * @param {MouseEvent} event - Mouse event.\n * @group Emits\n */\n onClick = new EventEmitter();\n /**\n * Callback to invoke when dropdown overlay gets visible.\n * @param {AnimationEvent} event - Animation event.\n * @group Emits\n */\n onShow = new EventEmitter();\n /**\n * Callback to invoke when dropdown overlay gets hidden.\n * @param {AnimationEvent} event - Animation event.\n * @group Emits\n */\n onHide = new EventEmitter();\n /**\n * Callback to invoke when dropdown clears the value.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n onClear = new EventEmitter();\n /**\n * Callback to invoke in lazy mode to load new data.\n * @param {DropdownLazyLoadEvent} event - Lazy load event.\n * @group Emits\n */\n onLazyLoad = new EventEmitter();\n containerViewChild;\n filterViewChild;\n focusInputViewChild;\n editableInputViewChild;\n itemsViewChild;\n scroller;\n overlayViewChild;\n firstHiddenFocusableElementOnOverlay;\n lastHiddenFocusableElementOnOverlay;\n templates;\n _disabled;\n itemsWrapper;\n itemTemplate;\n groupTemplate;\n loaderTemplate;\n selectedItemTemplate;\n headerTemplate;\n filterTemplate;\n footerTemplate;\n emptyFilterTemplate;\n emptyTemplate;\n dropdownIconTemplate;\n loadingIconTemplate;\n clearIconTemplate;\n filterIconTemplate;\n filterOptions;\n _options = signal(null);\n _placeholder = signal(undefined);\n modelValue = signal(null);\n value;\n onModelChange = () => {};\n onModelTouched = () => {};\n hover;\n focused;\n overlayVisible;\n optionsChanged;\n panel;\n dimensionsUpdated;\n hoveredItem;\n selectedOptionUpdated;\n _filterValue = signal(null);\n searchValue;\n searchIndex;\n searchTimeout;\n previousSearchChar;\n currentSearchChar;\n preventModelTouched;\n focusedOptionIndex = signal(-1);\n labelId;\n listId;\n clicked = signal(false);\n get emptyMessageLabel() {\n return this.emptyMessage || this.config.getTranslation(TranslationKeys.EMPTY_MESSAGE);\n }\n get emptyFilterMessageLabel() {\n return this.emptyFilterMessage || this.config.getTranslation(TranslationKeys.EMPTY_FILTER_MESSAGE);\n }\n get isVisibleClearIcon() {\n return this.modelValue() != null && this.hasSelectedOption() && this.showClear && !this.disabled;\n }\n get listLabel() {\n return this.config.getTranslation(TranslationKeys.ARIA)['listLabel'];\n }\n get containerClass() {\n return {\n 'p-dropdown p-component p-inputwrapper': true,\n 'p-disabled': this.disabled,\n 'p-dropdown-clearable': this.showClear && !this.disabled,\n 'p-focus': this.focused,\n 'p-inputwrapper-filled': this.modelValue() !== undefined && this.modelValue() !== null && !this.modelValue().length,\n 'p-inputwrapper-focus': this.focused || this.overlayVisible,\n 'p-variant-filled': this.variant === 'filled' || this.config.inputStyle() === 'filled',\n 'p-dropdown-open': this.overlayVisible\n };\n }\n get inputClass() {\n const label = this.label();\n return {\n 'p-dropdown-label p-inputtext': true,\n 'p-placeholder': this.placeholder() && label === this.placeholder(),\n 'p-dropdown-label-empty': !this.editable && !this.selectedItemTemplate && (label === undefined || label === null || label === 'p-emptylabel' || label.length === 0)\n };\n }\n get panelClass() {\n return {\n 'p-dropdown-panel p-component': true,\n 'p-input-filled': this.config.inputStyle() === 'filled',\n 'p-ripple-disabled': this.config.ripple === false\n };\n }\n get focusedOptionId() {\n return this.focusedOptionIndex() !== -1 ? `${this.id}_${this.focusedOptionIndex()}` : null;\n }\n visibleOptions = computed(() => {\n const options = this.getAllVisibleAndNonVisibleOptions();\n if (this._filterValue()) {\n const _filterBy = this.filterBy || this.optionLabel;\n const filteredOptions = !_filterBy && !this.filterFields && !this.optionValue ? this.options.filter(option => {\n if (option.label) {\n return option.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim()) !== -1;\n }\n return option.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim()) !== -1;\n }) : this.filterService.filter(options, this.searchFields(), this._filterValue().trim(), this.filterMatchMode, this.filterLocale);\n if (this.group) {\n const optionGroups = this.options || [];\n const filtered = [];\n optionGroups.forEach(group => {\n const groupChildren = this.getOptionGroupChildren(group);\n const filteredItems = groupChildren.filter(item => filteredOptions.includes(item));\n if (filteredItems.length > 0) filtered.push({\n ...group,\n [typeof this.optionGroupChildren === 'string' ? this.optionGroupChildren : 'items']: [...filteredItems]\n });\n });\n return this.flatOptions(filtered);\n }\n return filteredOptions;\n }\n return options;\n });\n label = computed(() => {\n // use getAllVisibleAndNonVisibleOptions verses just visible options\n // this will find the selected option whether or not the user is currently filtering because the filtered (i.e. visible) options, are a subset of all the options\n const options = this.getAllVisibleAndNonVisibleOptions();\n // use isOptionEqualsModelValue for the use case where the dropdown is initalized with a disabled option\n const selectedOptionIndex = options.findIndex(option => this.isOptionValueEqualsModelValue(option));\n return selectedOptionIndex !== -1 ? this.getOptionLabel(options[selectedOptionIndex]) : this.placeholder() || 'p-emptylabel';\n });\n filled = computed(() => {\n if (typeof this.modelValue() === 'string') return !!this.modelValue();\n return this.label() !== 'p-emptylabel' && this.modelValue() !== undefined && this.modelValue() !== null;\n });\n selectedOption;\n editableInputValue = computed(() => this.getOptionLabel(this.selectedOption) || this.modelValue() || '');\n constructor(el, renderer, cd, zone, filterService, config) {\n this.el = el;\n this.renderer = renderer;\n this.cd = cd;\n this.zone = zone;\n this.filterService = filterService;\n this.config = config;\n effect(() => {\n const modelValue = this.modelValue();\n const visibleOptions = this.visibleOptions();\n if (visibleOptions && ObjectUtils.isNotEmpty(visibleOptions)) {\n const selectedOptionIndex = this.findSelectedOptionIndex();\n if (selectedOptionIndex !== -1 || modelValue === undefined || typeof modelValue === 'string' && modelValue.length === 0 || this.isModelValueNotSet() || this.editable) {\n this.selectedOption = visibleOptions[selectedOptionIndex];\n }\n }\n if (ObjectUtils.isEmpty(visibleOptions) && (modelValue === undefined || this.isModelValueNotSet()) && ObjectUtils.isNotEmpty(this.selectedOption)) {\n this.selectedOption = null;\n }\n if (modelValue !== undefined && this.editable) {\n this.updateEditableLabel();\n }\n this.cd.markForCheck();\n });\n }\n isModelValueNotSet() {\n return this.modelValue() === null && !this.isOptionValueEqualsModelValue(this.selectedOption);\n }\n getAllVisibleAndNonVisibleOptions() {\n return this.group ? this.flatOptions(this.options) : this.options || [];\n }\n ngOnInit() {\n this.id = this.id || UniqueComponentId();\n this.autoUpdateModel();\n if (this.filterBy) {\n this.filterOptions = {\n filter: value => this.onFilterInputChange(value),\n reset: () => this.resetFilter()\n };\n }\n }\n ngAfterViewChecked() {\n if (this.optionsChanged && this.overlayVisible) {\n this.optionsChanged = false;\n this.zone.runOutsideAngular(() => {\n setTimeout(() => {\n if (this.overlayViewChild) {\n this.overlayViewChild.alignOverlay();\n }\n }, 1);\n });\n }\n if (this.selectedOptionUpdated && this.itemsWrapper) {\n let selectedItem = DomHandler.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement, 'li.p-highlight');\n if (selectedItem) {\n DomHandler.scrollInView(this.itemsWrapper, selectedItem);\n }\n this.selectedOptionUpdated = false;\n }\n }\n ngAfterContentInit() {\n this.templates.forEach(item => {\n switch (item.getType()) {\n case 'item':\n this.itemTemplate = item.template;\n break;\n case 'selectedItem':\n this.selectedItemTemplate = item.template;\n break;\n case 'header':\n this.headerTemplate = item.template;\n break;\n case 'filter':\n this.filterTemplate = item.template;\n break;\n case 'footer':\n this.footerTemplate = item.template;\n break;\n case 'emptyfilter':\n this.emptyFilterTemplate = item.template;\n break;\n case 'empty':\n this.emptyTemplate = item.template;\n break;\n case 'group':\n this.groupTemplate = item.template;\n break;\n case 'loader':\n this.loaderTemplate = item.template;\n break;\n case 'dropdownicon':\n this.dropdownIconTemplate = item.template;\n break;\n case 'loadingicon':\n this.loadingIconTemplate = item.template;\n break;\n case 'clearicon':\n this.clearIconTemplate = item.template;\n break;\n case 'filtericon':\n this.filterIconTemplate = item.template;\n break;\n default:\n this.itemTemplate = item.template;\n break;\n }\n });\n }\n flatOptions(options) {\n return (options || []).reduce((result, option, index) => {\n result.push({\n optionGroup: option,\n group: true,\n index\n });\n const optionGroupChildren = this.getOptionGroupChildren(option);\n optionGroupChildren && optionGroupChildren.forEach(o => result.push(o));\n return result;\n }, []);\n }\n autoUpdateModel() {\n if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption()) {\n this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());\n this.onOptionSelect(null, this.visibleOptions()[this.focusedOptionIndex()], false);\n }\n if (this.autoDisplayFirst && (this.modelValue() === null || this.modelValue() === undefined)) {\n if (!this.placeholder()) {\n const ind = this.findFirstOptionIndex();\n this.onOptionSelect(null, this.visibleOptions()[ind], false, true);\n }\n }\n }\n onOptionSelect(event, option, isHide = true, preventChange = false) {\n if (!this.isSelected(option)) {\n const value = this.getOptionValue(option);\n this.updateModel(value, event);\n this.focusedOptionIndex.set(this.findSelectedOptionIndex());\n preventChange === false && this.onChange.emit({\n originalEvent: event,\n value: value\n });\n }\n if (isHide) {\n this.hide(true);\n }\n }\n onOptionMouseEnter(event, index) {\n if (this.focusOnHover) {\n this.changeFocusedOptionIndex(event, index);\n }\n }\n updateModel(value, event) {\n this.value = value;\n this.onModelChange(value);\n this.modelValue.set(value);\n this.selectedOptionUpdated = true;\n }\n writeValue(value) {\n if (this.filter) {\n this.resetFilter();\n }\n this.value = value;\n this.allowModelChange() && this.onModelChange(value);\n this.modelValue.set(this.value);\n this.updateEditableLabel();\n this.cd.markForCheck();\n }\n allowModelChange() {\n return this.autoDisplayFirst && !this.placeholder() && (this.modelValue() === undefined || this.modelValue() === null) && !this.editable && this.options && this.options.length;\n }\n isSelectedOptionEmpty() {\n return ObjectUtils.isEmpty(this.selectedOption);\n }\n isSelected(option) {\n return this.isValidOption(option) && this.isOptionValueEqualsModelValue(option);\n }\n isOptionValueEqualsModelValue(option) {\n return ObjectUtils.equals(this.modelValue(), this.getOptionValue(option), this.equalityKey());\n }\n ngAfterViewInit() {\n if (this.editable) {\n this.updateEditableLabel();\n }\n this.updatePlaceHolderForFloatingLabel();\n }\n updatePlaceHolderForFloatingLabel() {\n if (this._placeholder() !== null && this._placeholder() !== undefined) {\n // We don't want to overwrite the placeholder if it's already set\n return;\n }\n const parentElement = this.el.nativeElement.parentElement;\n const isInFloatingLabel = parentElement?.classList.contains('p-float-label');\n if (parentElement && isInFloatingLabel && !this.selectedOption) {\n const label = parentElement.querySelector('label');\n if (label) {\n this._placeholder.set(label.textContent);\n }\n }\n }\n updateEditableLabel() {\n if (this.editableInputViewChild) {\n this.editableInputViewChild.nativeElement.value = this.getOptionLabel(this.selectedOption) || this.modelValue() || '';\n }\n }\n clearEditableLabel() {\n if (this.editableInputViewChild) {\n this.editableInputViewChild.nativeElement.value = '';\n }\n }\n getOptionIndex(index, scrollerOptions) {\n return this.virtualScrollerDisabled ? index : scrollerOptions && scrollerOptions.getItemOptions(index)['index'];\n }\n getOptionLabel(option) {\n return this.optionLabel !== undefined && this.optionLabel !== null ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option && option.label !== undefined ? option.label : option;\n }\n getOptionValue(option) {\n return this.optionValue && this.optionValue !== null ? ObjectUtils.resolveFieldData(option, this.optionValue) : !this.optionLabel && option && option.value !== undefined ? option.value : option;\n }\n isOptionDisabled(option) {\n if (this.getOptionValue(this.modelValue()) === this.getOptionValue(option) || this.getOptionLabel(this.modelValue() === this.getOptionLabel(option)) && option.disabled === false) {\n return false;\n } else {\n return this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : option && option.disabled !== undefined ? option.disabled : false;\n }\n }\n getOptionGroupLabel(optionGroup) {\n return this.optionGroupLabel !== undefined && this.optionGroupLabel !== null ? ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel) : optionGroup && optionGroup.label !== undefined ? optionGroup.label : optionGroup;\n }\n getOptionGroupChildren(optionGroup) {\n return this.optionGroupChildren !== undefined && this.optionGroupChildren !== null ? ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren) : optionGroup.items;\n }\n getAriaPosInset(index) {\n return (this.optionGroupLabel ? index - this.visibleOptions().slice(0, index).filter(option => this.isOptionGroup(option)).length : index) + 1;\n }\n get ariaSetSize() {\n return this.visibleOptions().filter(option => !this.isOptionGroup(option)).length;\n }\n /**\n * Callback to invoke on filter reset.\n * @group Method\n */\n resetFilter() {\n this._filterValue.set(null);\n if (this.filterViewChild && this.filterViewChild.nativeElement) {\n this.filterViewChild.nativeElement.value = '';\n }\n }\n registerOnChange(fn) {\n this.onModelChange = fn;\n }\n registerOnTouched(fn) {\n this.onModelTouched = fn;\n }\n setDisabledState(val) {\n this.disabled = val;\n this.cd.markForCheck();\n }\n onContainerClick(event) {\n if (this.disabled || this.readonly || this.loading) {\n return;\n }\n this.focusInputViewChild?.nativeElement.focus({\n preventScroll: true\n });\n if (event.target.tagName === 'INPUT' || event.target.getAttribute('data-pc-section') === 'clearicon' || event.target.closest('[data-pc-section=\"clearicon\"]')) {\n return;\n } else if (!this.overlayViewChild || !this.overlayViewChild.el.nativeElement.contains(event.target)) {\n this.overlayVisible ? this.hide(true) : this.show(true);\n }\n this.onClick.emit(event);\n this.clicked.set(true);\n this.cd.detectChanges();\n }\n isEmpty() {\n return !this._options() || this.visibleOptions() && this.visibleOptions().length === 0;\n }\n onEditableInput(event) {\n const value = event.target.value;\n this.searchValue = '';\n const matched = this.searchOptions(event, value);\n !matched && this.focusedOptionIndex.set(-1);\n this.onModelChange(value);\n this.updateModel(value, event);\n setTimeout(() => {\n this.onChange.emit({\n originalEvent: event,\n value: value\n });\n }, 1);\n !this.overlayVisible && ObjectUtils.isNotEmpty(value) && this.show();\n }\n /**\n * Displays the panel.\n * @group Method\n */\n show(isFocus) {\n this.overlayVisible = true;\n const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex();\n this.focusedOptionIndex.set(focusedOptionIndex);\n if (isFocus) {\n DomHandler.focus(this.focusInputViewChild?.nativeElement);\n }\n this.cd.markForCheck();\n }\n onOverlayAnimationStart(event) {\n if (event.toState === 'visible') {\n this.itemsWrapper = DomHandler.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement, this.virtualScroll ? '.p-scroller' : '.p-dropdown-items-wrapper');\n this.virtualScroll && this.scroller?.setContentEl(this.itemsViewChild?.nativeElement);\n if (this.options && this.options.length) {\n if (this.virtualScroll) {\n const selectedIndex = this.modelValue() ? this.focusedOptionIndex() : -1;\n if (selectedIndex !== -1) {\n this.scroller?.scrollToIndex(selectedIndex);\n }\n } else {\n let selectedListItem = DomHandler.findSingle(this.itemsWrapper, '.p-dropdown-item.p-highlight');\n if (selectedListItem) {\n selectedListItem.scrollIntoView({\n block: 'nearest',\n inline: 'nearest'\n });\n }\n }\n }\n if (this.filterViewChild && this.filterViewChild.nativeElement) {\n this.preventModelTouched = true;\n if (this.autofocusFilter && !this.editable) {\n this.filterViewChild.nativeElement.focus();\n }\n }\n this.onShow.emit(event);\n }\n if (event.toState === 'void') {\n this.itemsWrapper = null;\n this.onModelTouched();\n this.onHide.emit(event);\n }\n }\n /**\n * Hides the panel.\n * @group Method\n */\n hide(isFocus) {\n this.overlayVisible = false;\n this.focusedOptionIndex.set(-1);\n this.clicked.set(false);\n this.searchValue = '';\n if (this.overlayOptions?.mode === 'modal') {\n DomHandler.unblockBodyScroll();\n }\n if (this.filter && this.resetFilterOnHide) {\n this.resetFilter();\n }\n if (isFocus) {\n if (this.focusInputViewChild) {\n setTimeout(() => {\n DomHandler.focus(this.focusInputViewChild?.nativeElement);\n });\n }\n if (this.editable && this.editableInputViewChild) {\n setTimeout(() => {\n DomHandler.focus(this.editableInputViewChild?.nativeElement);\n });\n }\n }\n this.cd.markForCheck();\n }\n onInputFocus(event) {\n if (this.disabled) {\n // For ScreenReaders\n return;\n }\n this.focused = true;\n const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;\n this.focusedOptionIndex.set(focusedOptionIndex);\n this.overlayVisible && this.scrollInView(this.focusedOptionIndex());\n this.onFocus.emit(event);\n }\n onInputBlur(event) {\n this.focused = false;\n this.onBlur.emit(event);\n if (!this.preventModelTouched) {\n this.onModelTouched();\n }\n this.preventModelTouched = false;\n }\n onMouseDown(event) {\n event.preventDefault();\n }\n onKeyDown(event, search) {\n if (this.disabled || this.readonly || this.loading) {\n return;\n }\n switch (event.code) {\n //down\n case 'ArrowDown':\n this.onArrowDownKey(event);\n break;\n //up\n case 'ArrowUp':\n this.onArrowUpKey(event, this.editable);\n break;\n case 'ArrowLeft':\n case 'ArrowRight':\n this.onArrowLeftKey(event, this.editable);\n break;\n case 'Delete':\n this.onDeleteKey(event);\n break;\n case 'Home':\n this.onHomeKey(event, this.editable);\n break;\n case 'End':\n this.onEndKey(event, this.editable);\n break;\n case 'PageDown':\n this.onPageDownKey(event);\n break;\n case 'PageUp':\n this.onPageUpKey(event);\n break;\n //space\n case 'Space':\n this.onSpaceKey(event, search);\n break;\n //enter\n case 'Enter':\n case 'NumpadEnter':\n this.onEnterKey(event);\n break;\n //escape and tab\n case 'Escape':\n this.onEscapeKey(event);\n break;\n case 'Tab':\n this.onTabKey(event);\n break;\n case 'Backspace':\n this.onBackspaceKey(event, this.editable);\n break;\n case 'ShiftLeft':\n case 'ShiftRight':\n //NOOP\n break;\n default:\n if (!event.metaKey && ObjectUtils.isPrintableCharacter(event.key)) {\n !this.overlayVisible && this.show();\n !this.editable && this.searchOptions(event, event.key);\n }\n break;\n }\n this.clicked.set(false);\n }\n onFilterKeyDown(event) {\n switch (event.code) {\n case 'ArrowDown':\n this.onArrowDownKey(event);\n break;\n case 'ArrowUp':\n this.onArrowUpKey(event, true);\n break;\n case 'ArrowLeft':\n case 'ArrowRight':\n this.onArrowLeftKey(event, true);\n break;\n case 'Home':\n this.onHomeKey(event, true);\n break;\n case 'End':\n this.onEndKey(event, true);\n break;\n case 'Enter':\n case 'NumpadEnter':\n this.onEnterKey(event, true);\n break;\n case 'Escape':\n this.onEscapeKey(event);\n break;\n case 'Tab':\n this.onTabKey(event, true);\n break;\n default:\n break;\n }\n }\n onFilterBlur(event) {\n this.focusedOptionIndex.set(-1);\n }\n onArrowDownKey(event) {\n if (!this.overlayVisible) {\n this.show();\n this.editable && this.changeFocusedOptionIndex(event, this.findSelectedOptionIndex());\n } else {\n const optionIndex = this.focusedOptionIndex() !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex()) : this.clicked() ? this.findFirstOptionIndex() : this.findFirstFocusedOptionIndex();\n this.changeFocusedOptionIndex(event, optionIndex);\n }\n // const optionIndex = this.focusedOptionIndex() !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex()) : this.findFirstFocusedOptionIndex();\n // this.changeFocusedOptionIndex(event, optionIndex);\n // !this.overlayVisible && this.show();\n event.preventDefault();\n event.stopPropagation();\n }\n changeFocusedOptionIndex(event, index) {\n if (this.focusedOptionIndex() !== index) {\n this.focusedOptionIndex.set(index);\n this.scrollInView();\n if (this.selectOnFocus) {\n const option = this.visibleOptions()[index];\n this.onOptionSelect(event, option, false);\n }\n }\n }\n get virtualScrollerDisabled() {\n return !this.virtualScroll;\n }\n scrollInView(index = -1) {\n const id = index !== -1 ? `${this.id}_${index}` : this.focusedOptionId;\n if (this.itemsViewChild && this.itemsViewChild.nativeElement) {\n const element = DomHandler.findSingle(this.itemsViewChild.nativeElement, `li[id=\"${id}\"]`);\n if (element) {\n element.scrollIntoView && element.scrollIntoView({\n block: 'nearest',\n inline: 'nearest'\n });\n } else if (!this.virtualScrollerDisabled) {\n setTimeout(() => {\n this.virtualScroll && this.scroller?.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex());\n }, 0);\n }\n }\n }\n hasSelectedOption() {\n return this.modelValue() !== undefined;\n }\n isValidSelectedOption(option) {\n return this.isValidOption(option) && this.isSelected(option);\n }\n equalityKey() {\n return this.optionValue ? null : this.dataKey;\n }\n findFirstFocusedOptionIndex() {\n const selectedIndex = this.findSelectedOptionIndex();\n return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;\n }\n findFirstOptionIndex() {\n return this.visibleOptions().findIndex(option => this.isValidOption(option));\n }\n findSelectedOptionIndex() {\n return this.hasSelectedOption() ? this.visibleOptions().findIndex(option => this.isValidSelectedOption(option)) : -1;\n }\n findNextOptionIndex(index) {\n const matchedOptionIndex = index < this.visibleOptions().length - 1 ? this.visibleOptions().slice(index + 1).findIndex(option => this.isValidOption(option)) : -1;\n return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;\n }\n findPrevOptionIndex(index) {\n const matchedOptionIndex = index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions().slice(0, index), option => this.isValidOption(option)) : -1;\n return matchedOptionIndex > -1 ? matchedOptionIndex : index;\n }\n findLastOptionIndex() {\n return ObjectUtils.findLastIndex(this.visibleOptions(), option => this.isValidOption(option));\n }\n findLastFocusedOptionIndex() {\n const selectedIndex = this.findSelectedOptionIndex();\n return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;\n }\n isValidOption(option) {\n return option !== undefined && option !== null && !(this.isOptionDisabled(option) || this.isOptionGroup(option));\n }\n isOptionGroup(option) {\n return this.optionGroupLabel !== undefined && this.optionGroupLabel !== null && option.optionGroup !== undefined && option.optionGroup !== null && option.group;\n }\n onArrowUpKey(event, pressedInInputText = false) {\n if (event.altKey && !pressedInInputText) {\n if (this.focusedOptionIndex() !== -1) {\n const option = this.visibleOptions()[this.focusedOptionIndex()];\n this.onOptionSelect(event, option);\n }\n this.overlayVisible && this.hide();\n } else {\n const optionIndex = this.focusedOptionIndex() !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex()) : this.clicked() ? this.findLastOptionIndex() : this.findLastFocusedOptionIndex();\n this.changeFocusedOptionIndex(event, optionIndex);\n !this.overlayVisible && this.show();\n }\n event.preventDefault();\n event.stopPropagation();\n }\n onArrowLeftKey(event, pressedInInputText = false) {\n pressedInInputText && this.focusedOptionIndex.set(-1);\n }\n onDeleteKey(event) {\n if (this.showClear) {\n this.clear(event);\n event.preventDefault();\n }\n }\n onHomeKey(event, pressedInInputText = false) {\n if (pressedInInputText) {\n const target = event.currentTarget;\n if (event.shiftKey) {\n target.setSelectionRange(0, target.value.length);\n } else {\n target.setSelectionRange(0, 0);\n this.focusedOptionIndex.set(-1);\n }\n } else {\n this.changeFocusedOptionIndex(event, this.findFirstOptionIndex());\n !this.overlayVisible && this.show();\n }\n event.preventDefault();\n }\n onEndKey(event, pressedInInputText = false) {\n if (pressedInInputText) {\n const target = event.currentTarget;\n if (event.shiftKey) {\n target.setSelectionRange(0, target.value.length);\n } else {\n const len = target.value.length;\n target.setSelectionRange(len, len);\n this.focusedOptionIndex.set(-1);\n }\n } else {\n this.changeFocusedOptionIndex(event, this.findLastOptionIndex());\n !this.overlayVisible && this.show();\n }\n event.preventDefault();\n }\n onPageDownKey(event) {\n this.scrollInView(this.visibleOptions().length - 1);\n event.preventDefault();\n }\n onPageUpKey(event) {\n this.scrollInView(0);\n event.preventDefault();\n }\n onSpaceKey(event, pressedInInputText = false) {\n !this.editable && !pressedInInputText && this.onEnterKey(event);\n }\n onEnterKey(event, pressedInInput = false) {\n if (!this.overlayVisible) {\n this.focusedOptionIndex.set(-1);\n this.onArrowDownKey(event);\n } else {\n if (this.focusedOptionIndex() !== -1) {\n const option = this.visibleOptions()[this.focusedOptionIndex()];\n this.onOptionSelect(event, option);\n }\n !pressedInInput && this.hide();\n }\n event.preventDefault();\n }\n onEscapeKey(event) {\n this.overlayVisible && this.hide(true);\n event.preventDefault();\n }\n onTabKey(event, pressedInInputText = false) {\n if (!pressedInInputText) {\n if (this.overlayVisible && this.hasFocusableElements()) {\n DomHandler.focus(event.shiftKey ? this.lastHiddenFocusableElementOnOverlay.nativeElement : this.firstHiddenFocusableElementOnOverlay.nativeElement);\n event.preventDefault();\n } else {\n if (this.focusedOptionIndex() !== -1 && this.overlayVisible) {\n const option = this.visibleOptions()[this.focusedOptionIndex()];\n this.onOptionSelect(event, option);\n }\n this.overlayVisible && this.hide(this.filter);\n }\n }\n event.stopPropagation();\n }\n onFirstHiddenFocus(event) {\n const focusableEl = event.relatedTarget === this.focusInputViewChild?.nativeElement ? DomHandler.getFirstFocusableElement(this.overlayViewChild.el?.nativeElement, ':not(.p-hidden-focusable)') : this.focusInputViewChild?.nativeElement;\n DomHandler.focus(focusableEl);\n }\n onLastHiddenFocus(event) {\n const focusableEl = event.relatedTarget === this.focusInputViewChild?.nativeElement ? DomHandler.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement, ':not([data-p-hidden-focusable=\"true\"])') : this.focusInputViewChild?.nativeElement;\n DomHandler.focus(focusableEl);\n }\n hasFocusableElements() {\n return DomHandler.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement, ':not([data-p-hidden-focusable=\"true\"]):not([class=\"p-dropdown-items-wrapper\"])').length > 0;\n }\n onBackspaceKey(event, pressedInInputText = false) {\n if (pressedInInputText) {\n !this.overlayVisible && this.show();\n }\n }\n searchFields() {\n return this.filterBy?.split(',') || this.filterFields || [this.optionLabel];\n }\n searchOptions(event, char) {\n this.searchValue = (this.searchValue || '') + char;\n let optionIndex = -1;\n let matched = false;\n if (this.focusedOptionIndex() !== -1) {\n optionIndex = this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(option => this.isOptionMatched(option));\n optionIndex = optionIndex === -1 ? this.visibleOptions().slice(0, this.focusedOptionIndex()).findIndex(option => this.isOptionMatched(option)) : optionIndex + this.focusedOptionIndex();\n } else {\n optionIndex = this.visibleOptions().findIndex(option => this.isOptionMatched(option));\n }\n if (optionIndex !== -1) {\n matched = true;\n }\n if (optionIndex === -1 && this.focusedOptionIndex() === -1) {\n optionIndex = this.findFirstFocusedOptionIndex();\n }\n if (optionIndex !== -1) {\n this.changeFocusedOptionIndex(event, optionIndex);\n }\n if (this.searchTimeout) {\n clearTimeout(this.searchTimeout);\n }\n this.searchTimeout = setTimeout(() => {\n this.searchValue = '';\n this.searchTimeout = null;\n }, 500);\n return matched;\n }\n isOptionMatched(option) {\n return this.isValidOption(option) && this.getOptionLabel(option).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));\n }\n onFilterInputChange(event) {\n let value = event.target.value;\n this._filterValue.set(value);\n this.focusedOptionIndex.set(-1);\n this.onFilter.emit({\n originalEvent: event,\n filter: this._filterValue()\n });\n !this.virtualScrollerDisabled && this.scroller.scrollToIndex(0);\n setTimeout(() => {\n this.overlayViewChild.alignOverlay();\n });\n this.cd.markForCheck();\n }\n applyFocus() {\n if (this.editable) DomHandler.findSingle(this.el.nativeElement, '.p-dropdown-label.p-inputtext').focus();else DomHandler.focus(this.focusInputViewChild?.nativeElement);\n }\n /**\n * Applies focus.\n * @group Method\n */\n focus() {\n this.applyFocus();\n }\n /**\n * Clears the model.\n * @group Method\n */\n clear(event) {\n this.updateModel(null, event);\n this.clearEditableLabel();\n this.onModelTouched();\n this.onChange.emit({\n originalEvent: event,\n value: this.value\n });\n this.onClear.emit(event);\n this.resetFilter();\n }\n static ɵfac = function Dropdown_Factory(t) {\n return new (t || Dropdown)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i3.FilterService), i0.ɵɵdirectiveInject(i3.PrimeNGConfig));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: Dropdown,\n selectors: [[\"p-dropdown\"]],\n contentQueries: function Dropdown_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n }\n },\n viewQuery: function Dropdown_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c3, 5);\n i0.ɵɵviewQuery(_c4, 5);\n i0.ɵɵviewQuery(_c5, 5);\n i0.ɵɵviewQuery(_c6, 5);\n i0.ɵɵviewQuery(_c7, 5);\n i0.ɵɵviewQuery(_c8, 5);\n i0.ɵɵviewQuery(_c9, 5);\n i0.ɵɵviewQuery(_c10, 5);\n i0.ɵɵviewQuery(_c11, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.focusInputViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.editableInputViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemsViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.scroller = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlayViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.firstHiddenFocusableElementOnOverlay = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.lastHiddenFocusableElementOnOverlay = _t.first);\n }\n },\n hostAttrs: [1, \"p-element\", \"p-inputwrapper\"],\n hostVars: 4,\n hostBindings: function Dropdown_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵclassProp(\"p-inputwrapper-filled\", ctx.filled())(\"p-inputwrapper-focus\", ctx.focused || ctx.overlayVisible);\n }\n },\n inputs: {\n id: \"id\",\n scrollHeight: \"scrollHeight\",\n filter: [2, \"filter\", \"filter\", booleanAttribute],\n name: \"name\",\n style: \"style\",\n panelStyle: \"panelStyle\",\n styleClass: \"styleClass\",\n panelStyleClass: \"panelStyleClass\",\n readonly: [2, \"readonly\", \"readonly\", booleanAttribute],\n required: [2, \"required\", \"required\", booleanAttribute],\n editable: [2, \"editable\", \"editable\", booleanAttribute],\n appendTo: \"appendTo\",\n tabindex: [2, \"tabindex\", \"tabindex\", numberAttribute],\n placeholder: \"placeholder\",\n loadingIcon: \"loadingIcon\",\n filterPlaceholder: \"filterPlaceholder\",\n filterLocale: \"filterLocale\",\n variant: \"variant\",\n inputId: \"inputId\",\n dataKey: \"dataKey\",\n filterBy: \"filterBy\",\n filterFields: \"filterFields\",\n autofocus: [2, \"autofocus\", \"autofocus\", booleanAttribute],\n resetFilterOnHide: [2, \"resetFilterOnHide\", \"resetFilterOnHide\", booleanAttribute],\n checkmark: [2, \"checkmark\", \"checkmark\", booleanAttribute],\n dropdownIcon: \"dropdownIcon\",\n loading: [2, \"loading\", \"loading\", booleanAttribute],\n optionLabel: \"optionLabel\",\n optionValue: \"optionValue\",\n optionDisabled: \"optionDisabled\",\n optionGroupLabel: \"optionGroupLabel\",\n optionGroupChildren: \"optionGroupChildren\",\n autoDisplayFirst: [2, \"autoDisplayFirst\", \"autoDisplayFirst\", booleanAttribute],\n group: [2, \"group\", \"group\", booleanAttribute],\n showClear: [2, \"showClear\", \"showClear\", booleanAttribute],\n emptyFilterMessage: \"emptyFilterMessage\",\n emptyMessage: \"emptyMessage\",\n lazy: [2, \"lazy\", \"lazy\", booleanAttribute],\n virtualScroll: [2, \"virtualScroll\", \"virtualScroll\", booleanAttribute],\n virtualScrollItemSize: [2, \"virtualScrollItemSize\", \"virtualScrollItemSize\", numberAttribute],\n virtualScrollOptions: \"virtualScrollOptions\",\n overlayOptions: \"overlayOptions\",\n ariaFilterLabel: \"ariaFilterLabel\",\n ariaLabel: \"ariaLabel\",\n ariaLabelledBy: \"ariaLabelledBy\",\n filterMatchMode: \"filterMatchMode\",\n maxlength: [2, \"maxlength\", \"maxlength\", numberAttribute],\n tooltip: \"tooltip\",\n tooltipPosition: \"tooltipPosition\",\n tooltipPositionStyle: \"tooltipPositionStyle\",\n tooltipStyleClass: \"tooltipStyleClass\",\n focusOnHover: [2, \"focusOnHover\", \"focusOnHover\", booleanAttribute],\n selectOnFocus: [2, \"selectOnFocus\", \"selectOnFocus\", booleanAttribute],\n autoOptionFocus: [2, \"autoOptionFocus\", \"autoOptionFocus\", booleanAttribute],\n autofocusFilter: [2, \"autofocusFilter\", \"autofocusFilter\", booleanAttribute],\n disabled: \"disabled\",\n itemSize: \"itemSize\",\n autoZIndex: \"autoZIndex\",\n baseZIndex: \"baseZIndex\",\n showTransitionOptions: \"showTransitionOptions\",\n hideTransitionOptions: \"hideTransitionOptions\",\n filterValue: \"filterValue\",\n options: \"options\"\n },\n outputs: {\n onChange: \"onChange\",\n onFilter: \"onFilter\",\n onFocus: \"onFocus\",\n onBlur: \"onBlur\",\n onClick: \"onClick\",\n onShow: \"onShow\",\n onHide: \"onHide\",\n onClear: \"onClear\",\n onLazyLoad: \"onLazyLoad\"\n },\n features: [i0.ɵɵProvidersFeature([DROPDOWN_VALUE_ACCESSOR]), i0.ɵɵInputTransformsFeature],\n decls: 12,\n vars: 20,\n consts: [[\"container\", \"\"], [\"elseBlock\", \"\"], [\"overlay\", \"\"], [\"focusInput\", \"\"], [\"defaultPlaceholder\", \"\"], [\"editableInput\", \"\"], [\"firstHiddenFocusableEl\", \"\"], [\"buildInItems\", \"\"], [\"lastHiddenFocusableEl\", \"\"], [\"builtInFilterElement\", \"\"], [\"filter\", \"\"], [\"scroller\", \"\"], [\"items\", \"\"], [\"emptyFilter\", \"\"], [\"empty\", \"\"], [3, \"click\", \"ngClass\", \"ngStyle\"], [\"role\", \"combobox\", \"pAutoFocus\", \"\", 3, \"ngClass\", \"pTooltip\", \"tooltipPosition\", \"positionStyle\", \"tooltipStyleClass\", \"autofocus\", \"focus\", \"blur\", \"keydown\", 4, \"ngIf\"], [\"type\", \"text\", \"aria-haspopup\", \"listbox\", \"pAutoFocus\", \"\", 3, \"ngClass\", \"disabled\", \"autofocus\", \"input\", \"keydown\", \"focus\", \"blur\", 4, \"ngIf\"], [4, \"ngIf\"], [\"role\", \"button\", \"aria-label\", \"dropdown trigger\", \"aria-haspopup\", \"listbox\", 1, \"p-dropdown-trigger\", 3, \"mousedown\"], [4, \"ngIf\", \"ngIfElse\"], [3, \"visibleChange\", \"onAnimationStart\", \"onHide\", \"visible\", \"options\", \"target\", \"appendTo\", \"autoZIndex\", \"baseZIndex\", \"showTransitionOptions\", \"hideTransitionOptions\"], [\"pTemplate\", \"content\"], [\"role\", \"combobox\", \"pAutoFocus\", \"\", 3, \"focus\", \"blur\", \"keydown\", \"ngClass\", \"pTooltip\", \"tooltipPosition\", \"positionStyle\", \"tooltipStyleClass\", \"autofocus\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\", 4, \"ngIf\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [\"type\", \"text\", \"aria-haspopup\", \"listbox\", \"pAutoFocus\", \"\", 3, \"input\", \"keydown\", \"focus\", \"blur\", \"ngClass\", \"disabled\", \"autofocus\"], [3, \"styleClass\", \"click\", 4, \"ngIf\"], [\"class\", \"p-dropdown-clear-icon\", 3, \"click\", 4, \"ngIf\"], [3, \"click\", \"styleClass\"], [1, \"p-dropdown-clear-icon\", 3, \"click\"], [4, \"ngTemplateOutlet\"], [\"aria-hidden\", \"true\", 3, \"ngClass\", 4, \"ngIf\"], [\"aria-hidden\", \"true\", 3, \"class\", 4, \"ngIf\"], [\"aria-hidden\", \"true\", 3, \"ngClass\"], [\"aria-hidden\", \"true\"], [\"class\", \"p-dropdown-trigger-icon\", 4, \"ngIf\"], [\"class\", \"p-dropdown-trigger-icon\", 3, \"ngClass\", 4, \"ngIf\"], [3, \"styleClass\", 4, \"ngIf\"], [1, \"p-dropdown-trigger-icon\", 3, \"ngClass\"], [3, \"styleClass\"], [1, \"p-dropdown-trigger-icon\"], [3, \"ngClass\", \"ngStyle\"], [\"role\", \"presentation\", 1, \"p-hidden-accessible\", \"p-hidden-focusable\", 3, \"focus\"], [\"class\", \"p-dropdown-header\", 3, \"click\", 4, \"ngIf\"], [\"tabindex\", \"0\", 1, \"p-dropdown-items-wrapper\", 3, \"ngStyle\"], [3, \"items\", \"style\", \"itemSize\", \"autoSize\", \"lazy\", \"options\", \"onLazyLoad\", 4, \"ngIf\"], [1, \"p-dropdown-header\", 3, \"click\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [1, \"p-dropdown-filter-container\"], [\"type\", \"text\", \"role\", \"searchbox\", \"autocomplete\", \"off\", 1, \"p-dropdown-filter\", \"p-inputtext\", \"p-component\", 3, \"input\", \"keydown\", \"blur\", \"value\", \"ngClass\"], [\"class\", \"p-dropdown-filter-icon\", 4, \"ngIf\"], [1, \"p-dropdown-filter-icon\"], [3, \"onLazyLoad\", \"items\", \"itemSize\", \"autoSize\", \"lazy\", \"options\"], [\"pTemplate\", \"loader\"], [\"role\", \"listbox\", 1, \"p-dropdown-items\", 3, \"ngClass\", \"ngStyle\"], [\"ngFor\", \"\", 3, \"ngForOf\"], [\"class\", \"p-dropdown-empty-message\", \"role\", \"option\", 3, \"ngStyle\", 4, \"ngIf\"], [\"role\", \"option\", 1, \"p-dropdown-item-group\", 3, \"ngStyle\"], [3, \"onClick\", \"onMouseEnter\", \"id\", \"option\", \"checkmark\", \"selected\", \"label\", \"disabled\", \"template\", \"focused\", \"ariaPosInset\", \"ariaSetSize\"], [\"role\", \"option\", 1, \"p-dropdown-empty-message\", 3, \"ngStyle\"]],\n template: function Dropdown_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 15, 0);\n i0.ɵɵlistener(\"click\", function Dropdown_Template_div_click_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onContainerClick($event));\n });\n i0.ɵɵtemplate(2, Dropdown_span_2_Template, 6, 20, \"span\", 16)(3, Dropdown_input_3_Template, 2, 8, \"input\", 17)(4, Dropdown_ng_container_4_Template, 3, 2, \"ng-container\", 18);\n i0.ɵɵelementStart(5, \"div\", 19);\n i0.ɵɵlistener(\"mousedown\", function Dropdown_Template_div_mousedown_5_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onMouseDown($event));\n });\n i0.ɵɵtemplate(6, Dropdown_ng_container_6_Template, 3, 2, \"ng-container\", 20)(7, Dropdown_ng_template_7_Template, 2, 2, \"ng-template\", null, 1, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(9, \"p-overlay\", 21, 2);\n i0.ɵɵtwoWayListener(\"visibleChange\", function Dropdown_Template_p_overlay_visibleChange_9_listener($event) {\n i0.ɵɵrestoreView(_r1);\n i0.ɵɵtwoWayBindingSet(ctx.overlayVisible, $event) || (ctx.overlayVisible = $event);\n return i0.ɵɵresetView($event);\n });\n i0.ɵɵlistener(\"onAnimationStart\", function Dropdown_Template_p_overlay_onAnimationStart_9_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onOverlayAnimationStart($event));\n })(\"onHide\", function Dropdown_Template_p_overlay_onHide_9_listener() {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.hide());\n });\n i0.ɵɵtemplate(11, Dropdown_ng_template_11_Template, 13, 18, \"ng-template\", 22);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n let tmp_10_0;\n const elseBlock_r23 = i0.ɵɵreference(8);\n i0.ɵɵclassMap(ctx.styleClass);\n i0.ɵɵproperty(\"ngClass\", ctx.containerClass)(\"ngStyle\", ctx.style);\n i0.ɵɵattribute(\"id\", ctx.id);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx.editable);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.editable);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.isVisibleClearIcon);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"aria-expanded\", (tmp_10_0 = ctx.overlayVisible) !== null && tmp_10_0 !== undefined ? tmp_10_0 : false)(\"data-pc-section\", \"trigger\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.loading)(\"ngIfElse\", elseBlock_r23);\n i0.ɵɵadvance(3);\n i0.ɵɵtwoWayProperty(\"visible\", ctx.overlayVisible);\n i0.ɵɵproperty(\"options\", ctx.overlayOptions)(\"target\", \"@parent\")(\"appendTo\", ctx.appendTo)(\"autoZIndex\", ctx.autoZIndex)(\"baseZIndex\", ctx.baseZIndex)(\"showTransitionOptions\", ctx.showTransitionOptions)(\"hideTransitionOptions\", ctx.hideTransitionOptions);\n }\n },\n dependencies: () => [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, i4.Overlay, i3.PrimeTemplate, i5.Tooltip, i6.Scroller, i7.AutoFocus, TimesIcon, ChevronDownIcon, SearchIcon, DropdownItem],\n styles: [\"@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}.p-float-label .p-dropdown .p-placeholder{opacity:0}}\\n\"],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n return Dropdown;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet DropdownModule = /*#__PURE__*/(() => {\n class DropdownModule {\n static ɵfac = function DropdownModule_Factory(t) {\n return new (t || DropdownModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: DropdownModule\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [CommonModule, OverlayModule, SharedModule, TooltipModule, RippleModule, ScrollerModule, AutoFocusModule, TimesIcon, ChevronDownIcon, SearchIcon, BlankIcon, CheckIcon, OverlayModule, SharedModule, ScrollerModule]\n });\n }\n return DropdownModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { DROPDOWN_VALUE_ACCESSOR, Dropdown, DropdownItem, DropdownModule };\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MatIconModule } from '@angular/material/icon';\nimport { InputTextModule } from 'primeng/inputtext';\n\n\nconst ANGULAR_MAT = [MatIconModule];\nconst PRIME_NG = [InputTextModule];\n\n\n@Component({\n selector: 'terra-search-field',\n templateUrl: './search-field.component.html',\n styleUrls: ['./search-field.component.scss'],\n standalone: true,\n imports:[\n CommonModule,\n FormsModule,\n ...ANGULAR_MAT,\n...PRIME_NG,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SearchFieldComponent implements OnInit {\n \n @Input() placeholder:string = '';\n @Input() filter: string; \n @Output() filterChange: EventEmitter = new EventEmitter();\n @Output() clearSearch: EventEmitter = new EventEmitter();\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n change(value: any) {\n this.filterChange.emit(value);\n }\n\n clear(searchInput: HTMLInputElement = null) {\n if (searchInput) {\n searchInput.value = null;\n }\n\n this.clearSearch.emit();\n }\n}\n","\n \n search \n \n \n \n ","\n\nexport enum PermissionLevel {\n None = 0,\n Admin = 1,\n Editor = 2,\n Readonly = 3\n}\n\nexport namespace PermissionLevel {\n export function toString(permissionLevel: PermissionLevel): string {\n switch (permissionLevel) {\n case PermissionLevel.None:\n return 'None';\n case PermissionLevel.Admin:\n return 'Admin';\n case PermissionLevel.Editor:\n return 'Editor';\n case PermissionLevel.Readonly:\n return 'Readonly';\n default:\n return null;\n }\n }\n\n export function listAll() {\n return [PermissionLevel.Admin, PermissionLevel.Editor, PermissionLevel.Readonly];\n }\n\n export function parse(permissionLevel: string): PermissionLevel {\n return permissionLevel[permissionLevel];\n }\n}\n\nexport default PermissionLevel;\n","import { CommonModule } from \"@angular/common\";\nimport { Component, OnInit, Input, Output, EventEmitter } from \"@angular/core\";\nimport { MatButtonModule } from \"@angular/material/button\";\nimport { MatDialogModule } from \"@angular/material/dialog\";\nimport { MatIconModule } from \"@angular/material/icon\";\n\nconst ANGULAR_MATERIAL = [MatIconModule, MatButtonModule, MatDialogModule];\n\n@Component({\n selector: \"terra-dialog-header\",\n standalone:true,\n imports: [CommonModule,\n ...ANGULAR_MATERIAL],\n templateUrl: \"./dialog-header.component.html\",\n styleUrls: [\"./dialog-header.component.scss\"],\n})\nexport class DialogHeaderComponent {\n @Input()\n showCloseButton = true;\n\n @Input()\n bottomMargin = true;\n\n @Input()\n closeButtonReturnValue = undefined;\n\n @Output()\n onCloseRequested = new EventEmitter();\n\n}\n","\n","import { DomSanitizer } from '@angular/platform-browser';\nimport { PipeTransform, Pipe } from '@angular/core';\n\n@Pipe({ name: 'safeHtml' })\nexport class SafeHtmlPipe implements PipeTransform {\n constructor(private sanitized: DomSanitizer) { }\n transform(value) {\n return this.sanitized.bypassSecurityTrustHtml(value);\n }\n}\n","import {Component, OnInit, Inject} from '@angular/core';\nimport {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';\n\nexport class AlertDialogParams {\n constructor(\n public title: string = null,\n public description: string = null,\n public actionLabel: string = null,\n public panelClass: string = null,\n public backdropClass: string = null,\n public icon: string = null,\n public iconClass: string = null,\n public actionPosition: 'left' | 'center' | 'right' = 'center',\n public showAction: boolean = true,\n public autoFocus: boolean = true,\n ) {\n }\n}\n\n@Component({\n selector: 'terra-alert-dialog',\n templateUrl: './alert-dialog.component.html',\n styleUrls: ['./alert-dialog.component.scss'],\n})\nexport class AlertDialogComponent implements OnInit {\n constructor(\n public dialogRef: MatDialogRef,\n @Inject(MAT_DIALOG_DATA) public data: any\n ) {\n }\n\n ngOnInit() {\n if (this.data.panelClass) {\n this.dialogRef.addPanelClass(this.data.panelClass);\n }\n }\n}\n","\n {{\n data.icon\n }} \n \n \n\n\n
\n \n\n\n \n {{ data.actionLabel || \"OK\" }}\n \n
\n","export enum ContactsVisibilityPermission {\n Hidden = 0,\n Visible = 1\n}\n\nexport namespace ContactsVisibilityPermission {\n export function toString(contactsVisibilityPermission: ContactsVisibilityPermission): string {\n switch (contactsVisibilityPermission) {\n case ContactsVisibilityPermission.Hidden:\n return 'Hidden';\n case ContactsVisibilityPermission.Visible:\n return 'Visible';\n default:\n return null;\n }\n }\n\n export function listAll(): ContactsVisibilityPermission[] {\n return [ContactsVisibilityPermission.Hidden, ContactsVisibilityPermission.Visible];\n }\n\n export function parse(cvp: string): ContactsVisibilityPermission {\n return ContactsVisibilityPermission[cvp];\n }\n}\n\nexport default ContactsVisibilityPermission;","export enum ViewAsInvestorPermission {\n Forbidden = 0,\n Allowed = 1\n}\n\nexport namespace ViewAsInvestorPermission {\n export function toString(viewAsInvestorPermission: ViewAsInvestorPermission): string {\n switch (viewAsInvestorPermission) {\n case ViewAsInvestorPermission.Forbidden:\n return 'Not Allowed';\n case ViewAsInvestorPermission.Allowed:\n return 'allowed';\n default:\n return null;\n }\n }\n\n export function parse(viewAsInvestorPermission: string): ViewAsInvestorPermission {\n return ViewAsInvestorPermission[viewAsInvestorPermission];\n }\n}\nexport default ViewAsInvestorPermission;\n","export enum InvestorsOrderBy {\n Default = 0,\n Name = 1,\n NameDesc = 2,\n Status = 3,\n StatusDesc = 4,\n AmountHighToLow = 5,\n AmountLowToHigh = 6,\n TimeAddedNewToOld = 7,\n TimeAddedOldToNew = 8,\n RankingHighToLow = 9,\n RankingLowToHigh = 10\n}\n\n\n// tslint:disable-next-line:no-namespace\nexport namespace InvestorsOrderBy {\n export function toString(orderBy: InvestorsOrderBy): string {\n switch (orderBy) {\n case InvestorsOrderBy.Default:\n case InvestorsOrderBy.TimeAddedNewToOld:\n return 'Time Added: New - Old';\n case InvestorsOrderBy.TimeAddedOldToNew:\n return 'Time Added: Old - New';\n case InvestorsOrderBy.Name:\n return 'Name: A-Z';\n case InvestorsOrderBy.NameDesc:\n return 'Name: Z-A';\n case InvestorsOrderBy.Status:\n return 'Status: Ascending';\n case InvestorsOrderBy.StatusDesc:\n return 'Status: Descending';\n case InvestorsOrderBy.AmountHighToLow:\n return 'Amount: High - Low';\n case InvestorsOrderBy.AmountLowToHigh:\n return 'Amount: Low - High';\n case InvestorsOrderBy.RankingHighToLow:\n return 'Ranking: Higher - Lower';\n case InvestorsOrderBy.RankingLowToHigh:\n return 'Ranking: Lower - Higher';\n\n default:\n return 'Default';\n }\n }\n\n export function listAll(allowInvestorName = true) {\n if(allowInvestorName){\n return [\n InvestorsOrderBy.Name,\n InvestorsOrderBy.NameDesc,\n InvestorsOrderBy.Status,\n InvestorsOrderBy.StatusDesc,\n InvestorsOrderBy.AmountHighToLow,\n InvestorsOrderBy.AmountLowToHigh,\n InvestorsOrderBy.TimeAddedNewToOld,\n InvestorsOrderBy.TimeAddedOldToNew,\n InvestorsOrderBy.RankingHighToLow,\n InvestorsOrderBy.RankingLowToHigh\n ];\n }\n else{\n return [\n InvestorsOrderBy.Status,\n InvestorsOrderBy.StatusDesc,\n InvestorsOrderBy.AmountHighToLow,\n InvestorsOrderBy.AmountLowToHigh,\n InvestorsOrderBy.TimeAddedNewToOld,\n InvestorsOrderBy.TimeAddedOldToNew,\n InvestorsOrderBy.RankingHighToLow,\n InvestorsOrderBy.RankingLowToHigh\n ];\n }\n \n }\n\n export function parse(sortStr: string): InvestorsOrderBy {\n return InvestorsOrderBy[sortStr];\n }\n}\n\nexport default InvestorsOrderBy;\n\n","import InvestorsOrderBy from 'src/app/shared/enums/InvestorsOrderBy.enum';\n\nexport class FundraisingUiState {\n public assetDetailsInvestorsSortBy: InvestorsOrderBy;\n constructor() {\n this.assetDetailsInvestorsSortBy = InvestorsOrderBy.TimeAddedNewToOld;\n }\n static fromJson(obj: any): FundraisingUiState {\n const model = new FundraisingUiState();\n model.assetDetailsInvestorsSortBy = obj.assetDetailsInvestorsSortBy ? obj.assetDetailsInvestorsSortBy : InvestorsOrderBy.TimeAddedNewToOld;\n return model;\n }\n}\n","import { isNullOrUndefined } from 'src/app/shared/TerraUtils';\nimport { OrderDirectionType, SortUiState } from './SortUiState.model';\n\nexport class DocumentsUiState {\n private static ORDER_BY_DEFAULT = 'DisplayName';\n private static DIRECTION_DEFAULT: OrderDirectionType = 'asc';\n\n public sort: SortUiState;\n public skipPrepareStep: boolean;\n\n constructor() {\n this.sort = {\n orderBy: DocumentsUiState.ORDER_BY_DEFAULT,\n direction: DocumentsUiState.DIRECTION_DEFAULT,\n };\n this.skipPrepareStep = false;\n }\n\n static fromJson(documentsObj: any): DocumentsUiState {\n const model = new DocumentsUiState();\n if (documentsObj && documentsObj.sort) {\n model.sort = {\n orderBy: documentsObj.sort.orderBy || DocumentsUiState.ORDER_BY_DEFAULT,\n direction:\n documentsObj.sort.direction || DocumentsUiState.DIRECTION_DEFAULT,\n };\n }\n\n model.skipPrepareStep = !isNullOrUndefined(documentsObj?.skipPrepareStep)\n ? documentsObj.skipPrepareStep\n : false;\n\n return model;\n }\n}\n","import { OrderDirectionType, SortUiState } from './SortUiState.model';\n\nexport class ContactsUiState {\n\n private static ORDER_BY_DEFAULT = 'FirstName';\n private static DIRECTION_DEFAULT: OrderDirectionType = 'asc';\n\n public sort: SortUiState;\n\n constructor() {\n this.sort = {\n orderBy: ContactsUiState.ORDER_BY_DEFAULT,\n direction: ContactsUiState.DIRECTION_DEFAULT\n };\n }\n\n static fromJson(contactsObj: any): ContactsUiState {\n const model = new ContactsUiState();\n if (contactsObj && contactsObj.sort) {\n model.sort = {\n orderBy: contactsObj.sort.orderBy || ContactsUiState.ORDER_BY_DEFAULT,\n direction: contactsObj.sort.direction || ContactsUiState.DIRECTION_DEFAULT\n };\n }\n return model;\n }\n}\n","import {OrderDirectionType, SortUiState} from './SortUiState.model';\n\nexport enum BANK_ACCOUNTS_ALLOWED_ORDER_BY {\n Entity = 'Entity',\n EntityName = 'EntityName',\n Type = 'Type',\n Country = 'Country',\n DateAdded = 'Date',\n Balance = 'Balance',\n ConnectedStatus = 'ConnectedStatus',\n}\n\nexport class BankAccountsUiState {\n private static ORDER_BY_DEFAULT: string = BANK_ACCOUNTS_ALLOWED_ORDER_BY.ConnectedStatus;\n private static DIRECTION_DEFAULT: OrderDirectionType = 'desc';\n\n public sort: SortUiState;\n\n constructor() {\n this.sort = {\n orderBy: BankAccountsUiState.ORDER_BY_DEFAULT,\n direction: BankAccountsUiState.DIRECTION_DEFAULT\n };\n }\n\n static fromJson(contactsObj: any): BankAccountsUiState {\n const model = new BankAccountsUiState();\n if (contactsObj && contactsObj.sort) {\n model.sort = {\n orderBy: contactsObj.sort.orderBy || BankAccountsUiState.ORDER_BY_DEFAULT,\n direction: contactsObj.sort.direction || BankAccountsUiState.DIRECTION_DEFAULT\n };\n }\n return model;\n }\n}\n","import {OrderDirectionType, SortUiState} from './SortUiState.model';\n\nexport enum CRE_BANK_ACCOUNTS_ALLOWED_ORDER_BY {\n investingEntity = 'investingEntity',\n holderFullName = 'holderFullName',\n currency = 'currency',\n paymentType = \"paymentType\",\n country = \"country\"\n}\n\nexport class CreBankAccountsUiState {\n private static ORDER_BY_DEFAULT: string = CRE_BANK_ACCOUNTS_ALLOWED_ORDER_BY.holderFullName;\n private static DIRECTION_DEFAULT: OrderDirectionType = 'asc';\n\n public sort: SortUiState;\n\n constructor() {\n this.sort = {\n orderBy: CreBankAccountsUiState.ORDER_BY_DEFAULT,\n direction: CreBankAccountsUiState.DIRECTION_DEFAULT\n };\n }\n\n static fromJson(contactsObj: any): CreBankAccountsUiState {\n const model = new CreBankAccountsUiState();\n if (contactsObj && contactsObj.sort) {\n model.sort = {\n orderBy: contactsObj.sort.orderBy || CreBankAccountsUiState.ORDER_BY_DEFAULT,\n direction: contactsObj.sort.direction || CreBankAccountsUiState.DIRECTION_DEFAULT\n };\n }\n return model;\n }\n}\n","import { OrderDirectionType, SortUiState } from './SortUiState.model';\n\nexport class PositionsReportUiState {\n\n private static ORDER_BY_DEFAULT = 'ContactName';\n private static DIRECTION_DEFAULT: OrderDirectionType = 'asc';\n\n public sort: SortUiState;\n\n constructor() {\n this.sort = {\n orderBy: PositionsReportUiState.ORDER_BY_DEFAULT,\n direction: PositionsReportUiState.DIRECTION_DEFAULT\n };\n }\n\n static fromJson(reportsSortObj: any): PositionsReportUiState {\n const model = new PositionsReportUiState();\n if (reportsSortObj && reportsSortObj.sort) {\n model.sort = {\n orderBy: reportsSortObj.sort.orderBy || PositionsReportUiState.ORDER_BY_DEFAULT,\n direction: reportsSortObj.sort.direction || PositionsReportUiState.DIRECTION_DEFAULT\n };\n }\n return model;\n }\n}\n","export enum AssetOrderBy {\n None = 0,\n CreatedDateNewerFirst = 1,\n CreatedDateOlderFirst = 2,\n NameAsc = 3,\n NameDesc = 4,\n PercentsFundedAsc = 5,\n PercentsFundedDesc = 6,\n ClosingDateAsc = 7,\n ClosingDateDesc = 8,\n}\n\n\n// tslint:disable-next-line:no-namespace\nexport namespace AssetOrderBy {\n export function toString(orderBy: AssetOrderBy): string {\n switch (orderBy) {\n case AssetOrderBy.None:\n case AssetOrderBy.CreatedDateNewerFirst:\n return 'Time Added: Newer first';\n case AssetOrderBy.CreatedDateOlderFirst:\n return 'Time Added: Older first';\n case AssetOrderBy.NameAsc:\n return 'Name: A-Z';\n case AssetOrderBy.NameDesc:\n return 'Name: Z-A';\n case AssetOrderBy.PercentsFundedAsc:\n return '% funded: lower first';\n case AssetOrderBy.PercentsFundedDesc:\n return '% funded: higher first';\n case AssetOrderBy.ClosingDateAsc:\n return 'Closing date: ascending';\n case AssetOrderBy.ClosingDateDesc:\n return 'Closing date: descending';\n\n }\n }\n\n export function listAll() {\n return [\n AssetOrderBy.ClosingDateAsc,\n AssetOrderBy.ClosingDateDesc,\n AssetOrderBy.CreatedDateNewerFirst,\n AssetOrderBy.CreatedDateOlderFirst,\n AssetOrderBy.NameAsc,\n AssetOrderBy.NameDesc,\n AssetOrderBy.PercentsFundedAsc,\n AssetOrderBy.PercentsFundedDesc,\n ];\n }\n\n export function optionsForFundraisingAssets() {\n return [\n AssetOrderBy.ClosingDateAsc,\n AssetOrderBy.ClosingDateDesc,\n AssetOrderBy.CreatedDateNewerFirst,\n AssetOrderBy.CreatedDateOlderFirst,\n AssetOrderBy.NameAsc,\n AssetOrderBy.NameDesc,\n AssetOrderBy.PercentsFundedAsc,\n AssetOrderBy.PercentsFundedDesc,\n ];\n }\n\n\n export function optionsForUnderManagementAssets() {\n return [\n AssetOrderBy.CreatedDateNewerFirst,\n AssetOrderBy.CreatedDateOlderFirst,\n AssetOrderBy.NameAsc,\n AssetOrderBy.NameDesc,\n ];\n }\n\n export function optionsForDraftAssets() {\n return [\n AssetOrderBy.CreatedDateNewerFirst,\n AssetOrderBy.CreatedDateOlderFirst,\n AssetOrderBy.NameAsc,\n AssetOrderBy.NameDesc,\n ];\n }\n\n export function optionsForRealizedAssets() {\n return [\n AssetOrderBy.CreatedDateNewerFirst,\n AssetOrderBy.CreatedDateOlderFirst,\n AssetOrderBy.NameAsc,\n AssetOrderBy.NameDesc,\n ];\n }\n\n export function parse(sortStr: string): AssetOrderBy {\n return AssetOrderBy[sortStr];\n }\n}\n\nexport default AssetOrderBy;\n\n","export enum GpAssetsPageTabs {\n Fundraisings = 0,\n UnderManagement = 1,\n Canceled = 2,\n Draft = 3,\n Realized = 4\n}\n","import AssetOrderBy from 'src/app/shared/enums/AssetOrderBy.enum';\nimport { GpAssetsPageTabs } from 'src/app/shared/enums/GpAssetsPageTabs.enum';\n\nexport class AssetsUiState {\n public assetsOrderBy: AssetOrderBy;\n public activeTab: GpAssetsPageTabs;\n\n constructor() {\n this.assetsOrderBy = AssetOrderBy.CreatedDateNewerFirst;\n this.activeTab = GpAssetsPageTabs.Fundraisings;\n }\n static fromJson(obj: any): AssetsUiState {\n const model = new AssetsUiState();\n model.assetsOrderBy = obj.assetsOrderBy ? obj.assetsOrderBy : AssetOrderBy.CreatedDateNewerFirst;\n model.activeTab = obj.activeTab ? obj.activeTab : GpAssetsPageTabs.Fundraisings;\n return model;\n }\n}\n","export enum FundOrderBy {\n None = 0,\n CreatedDateNewerFirst = 1,\n CreatedDateOlderFirst = 2,\n NameAsc = 3,\n NameDesc = 4,\n PercentsFundedAsc = 5,\n PercentsFundedDesc = 6,\n ClosingDateAsc = 7,\n ClosingDateDesc = 8,\n}\n\n\n// tslint:disable-next-line:no-namespace\nexport namespace FundOrderBy {\n export function toString(orderBy: FundOrderBy): string {\n switch (orderBy) {\n case FundOrderBy.None:\n case FundOrderBy.CreatedDateNewerFirst:\n return 'Time Added: Newer first';\n case FundOrderBy.CreatedDateOlderFirst:\n return 'Time Added: Older first';\n case FundOrderBy.NameAsc:\n return 'Name: A-Z';\n case FundOrderBy.NameDesc:\n return 'Name: Z-A';\n case FundOrderBy.PercentsFundedAsc:\n return '% funded: lower first';\n case FundOrderBy.PercentsFundedDesc:\n return '% funded: higher first';\n case FundOrderBy.ClosingDateAsc:\n return 'Closing date: ascending';\n case FundOrderBy.ClosingDateDesc:\n return 'Closing date: descending';\n\n }\n }\n\n export function listAll() {\n return [\n FundOrderBy.ClosingDateAsc,\n FundOrderBy.ClosingDateDesc,\n FundOrderBy.CreatedDateNewerFirst,\n FundOrderBy.CreatedDateOlderFirst,\n FundOrderBy.NameAsc,\n FundOrderBy.NameDesc,\n FundOrderBy.PercentsFundedAsc,\n FundOrderBy.PercentsFundedDesc,\n ];\n }\n\n export function optionsForFundraisingFunds() {\n return [\n FundOrderBy.ClosingDateAsc,\n FundOrderBy.ClosingDateDesc,\n FundOrderBy.CreatedDateNewerFirst,\n FundOrderBy.CreatedDateOlderFirst,\n FundOrderBy.NameAsc,\n FundOrderBy.NameDesc,\n FundOrderBy.PercentsFundedAsc,\n FundOrderBy.PercentsFundedDesc,\n ];\n }\n\n\n export function optionsForUnderManagementFunds() {\n return [\n FundOrderBy.CreatedDateNewerFirst,\n FundOrderBy.CreatedDateOlderFirst,\n FundOrderBy.NameAsc,\n FundOrderBy.NameDesc,\n ];\n }\n\n export function optionsForDraftAssets() {\n return [\n FundOrderBy.CreatedDateNewerFirst,\n FundOrderBy.CreatedDateOlderFirst,\n FundOrderBy.NameAsc,\n FundOrderBy.NameDesc,\n ];\n }\n\n export function optionsForRealizedAssets() {\n return [\n FundOrderBy.CreatedDateNewerFirst,\n FundOrderBy.CreatedDateOlderFirst,\n FundOrderBy.NameAsc,\n FundOrderBy.NameDesc,\n ];\n }\n\n export function parse(sortStr: string): FundOrderBy {\n return FundOrderBy[sortStr];\n }\n}\n\nexport default FundOrderBy;\n","export enum GpFundsPageTabs {\n Fundraisings = 0,\n UnderManagement = 1,\n Canceled = 2,\n Draft = 3,\n Realized = 4\n}\n","import FundOrderBy from 'src/app/shared/enums/FundOrderBy.enum';\nimport { GpFundsPageTabs } from 'src/app/shared/enums/GpFundsPageTabs.enum';\n\nexport class FundsUiState {\n public fundsOrderBy: FundOrderBy;\n public activeTab: GpFundsPageTabs;\n\n constructor() {\n this.fundsOrderBy = FundOrderBy.CreatedDateNewerFirst;\n this.activeTab = GpFundsPageTabs.Fundraisings;\n }\n static fromJson(obj: any): FundsUiState {\n const model = new FundsUiState();\n model.fundsOrderBy = obj.fundsOrderBy ? obj.fundsOrderBy : FundOrderBy.CreatedDateNewerFirst;\n model.activeTab = obj.activeTab ? obj.activeTab : GpFundsPageTabs.Fundraisings;\n return model;\n }\n}\n","import { OrderDirectionType, SortUiState } from './SortUiState.model';\n\nexport class SimpleSortUiState {\n private static ORDER_BY_DEFAULT = 'Name';\n private static DIRECTION_DEFAULT: OrderDirectionType = 'asc';\n\n public sort: SortUiState;\n\n constructor() {\n this.sort = {\n orderBy: SimpleSortUiState.ORDER_BY_DEFAULT,\n direction: SimpleSortUiState.DIRECTION_DEFAULT\n };\n }\n\n static fromJson(sortObj: any): SimpleSortUiState {\n const model = new SimpleSortUiState();\n if (sortObj && sortObj.sort) {\n model.sort = {\n orderBy: sortObj.sort.orderBy || sortObj.ORDER_BY_DEFAULT,\n direction: sortObj.sort.direction || sortObj.DIRECTION_DEFAULT\n };\n }\n return model;\n }\n}\n","export class HoldingViewsInsightState {\n public startDate: Date;\n public endDate: Date;\n\n static fromJson(obj: any) {\n const model = new HoldingViewsInsightState();\n model.startDate = new Date(obj.startDate);\n model.endDate = new Date(obj.endDate);\n return model;\n }\n}\n\nexport class HoldingReportViewsInsightState {\n public startDate: Date;\n public endDate: Date;\n public holdingId: number;\n\n static fromJson(obj: any) {\n const model = new HoldingReportViewsInsightState();\n model.startDate = new Date(obj.startDate);\n model.endDate = new Date(obj.endDate);\n model.holdingId = +obj.holdingId;\n return model;\n }\n}\n\nexport class ReportViewsInsightState {\n public startDate: Date;\n public endDate: Date;\n\n static fromJson(obj: any) {\n const model = new ReportViewsInsightState();\n model.startDate = new Date(obj.startDate);\n model.endDate = new Date(obj.endDate);\n return model;\n }\n}\n\nexport class TotalHoldingReportsViewsInsightState {\n public startDate: Date;\n public endDate: Date;\n\n static fromJson(obj: any) {\n const model = new TotalHoldingReportsViewsInsightState();\n model.startDate = new Date(obj.startDate);\n model.endDate = new Date(obj.endDate);\n return model;\n }\n}\n\nexport class InvestorInteractionsInsightState {\n public pageSize: number;\n\n static fromJson(obj: any) {\n const model = new InvestorInteractionsInsightState();\n if (obj.pageSize) {\n model.pageSize = +obj.pageSize;\n }\n return model;\n }\n}\n\n\nexport class InsightsUiState {\n public isSidebarOpened: boolean;\n\n public holdingViewsInsightState: HoldingViewsInsightState;\n public holdingReportViewsInsightState: HoldingReportViewsInsightState;\n public reportViewsInsightState: ReportViewsInsightState;\n public investorInteractionsInsightState: InvestorInteractionsInsightState;\n public totalHoldingReportsViewsInsightState: TotalHoldingReportsViewsInsightState;\n\n constructor() {\n this.isSidebarOpened = true;\n this.holdingViewsInsightState = null;\n }\n\n static fromJson(obj: any): InsightsUiState {\n const model = new InsightsUiState();\n if (obj) {\n model.isSidebarOpened = obj.isSidebarOpened;\n\n // insight 1\n if (obj.holdingViewsInsightState) {\n model.holdingViewsInsightState = HoldingViewsInsightState.fromJson(\n obj.holdingViewsInsightState\n );\n }\n\n // insight 2\n if (obj.holdingReportViewsInsightState) {\n model.holdingReportViewsInsightState = HoldingReportViewsInsightState.fromJson(\n obj.holdingReportViewsInsightState\n );\n }\n\n // insight 3\n if (obj.reportViewsInsightState) {\n model.reportViewsInsightState = ReportViewsInsightState.fromJson(\n obj.reportViewsInsightState\n );\n }\n\n // insight 4\n if (obj.investorInteractionsInsightState) {\n model.investorInteractionsInsightState = InvestorInteractionsInsightState.fromJson(\n obj.investorInteractionsInsightState\n );\n }\n\n // insight 5\n if (obj.totalHoldingReportsViewsInsightState) {\n model.totalHoldingReportsViewsInsightState = TotalHoldingReportsViewsInsightState.fromJson(\n obj.totalHoldingReportsViewsInsightState\n );\n }\n }\n\n return model;\n }\n}\n","import {OrderDirectionType, SortUiState} from './SortUiState.model';\n\nexport class OfferingDeckEngagementUiState {\n private static ORDER_BY_DEFAULT = 'name';\n private static DIRECTION_DEFAULT: OrderDirectionType = 'asc';\n\n public sort: SortUiState;\n\n constructor() {\n this.sort = {\n orderBy: OfferingDeckEngagementUiState.ORDER_BY_DEFAULT,\n direction: OfferingDeckEngagementUiState.DIRECTION_DEFAULT\n };\n }\n\n static fromJson(engagementObj: any): OfferingDeckEngagementUiState {\n const model = new OfferingDeckEngagementUiState();\n if (engagementObj && engagementObj.sort) {\n model.sort = {\n orderBy: engagementObj.sort.orderBy || engagementObj.ORDER_BY_DEFAULT,\n direction: engagementObj.sort.direction || engagementObj.DIRECTION_DEFAULT\n };\n }\n return model;\n }\n}\n","import {OrderDirectionType, SortUiState} from './SortUiState.model';\n\nexport enum BANK_APPLICATIONS_ALLOWED_ORDER_BY {\n Status = 'Status',\n Name = 'Name',\n Officer = 'Officer',\n DateSent = 'DateSent',\n Holding = 'Holding'\n}\n\nexport class BankApplicationsUiState {\n private static ORDER_BY_DEFAULT: string = BANK_APPLICATIONS_ALLOWED_ORDER_BY.Name;\n private static DIRECTION_DEFAULT: OrderDirectionType = 'asc';\n\n public sort: SortUiState;\n\n constructor() {\n this.sort = {\n orderBy: BankApplicationsUiState.ORDER_BY_DEFAULT,\n direction: BankApplicationsUiState.DIRECTION_DEFAULT\n };\n }\n\n static fromJson(contactsObj: any): BankApplicationsUiState {\n const model = new BankApplicationsUiState();\n if (contactsObj && contactsObj.sort) {\n model.sort = {\n orderBy: contactsObj.sort.orderBy || BankApplicationsUiState.ORDER_BY_DEFAULT,\n direction: contactsObj.sort.direction || BankApplicationsUiState.DIRECTION_DEFAULT\n };\n }\n return model;\n }\n}\n","import {OrderDirectionType, SortUiState} from './SortUiState.model';\n\nexport class PaymentsUiState {\n private static ORDER_BY_DEFAULT = 'PaymentSentTimestamp';\n private static DIRECTION_DEFAULT: OrderDirectionType = 'asc';\n\n public sort: SortUiState;\n\n constructor() {\n this.sort = {\n orderBy: PaymentsUiState.ORDER_BY_DEFAULT,\n direction: PaymentsUiState.DIRECTION_DEFAULT\n };\n }\n\n static fromJson(paymentsObj: any): PaymentsUiState {\n const model = new PaymentsUiState();\n if (paymentsObj && paymentsObj.sort) {\n model.sort = {\n orderBy: paymentsObj.sort.orderBy || PaymentsUiState.ORDER_BY_DEFAULT,\n direction: paymentsObj.sort.direction || PaymentsUiState.DIRECTION_DEFAULT\n };\n }\n return model;\n }\n}\n","export function showAiActionsMarkTextPopup(): Promise<'let-me-mark' | 'modify-all' | 'cancel'> {\n return new Promise((resolve) => {\n const contents = `\n \n\n \n
\n
\n
\n Select Text to Modify\n
\n
\n Please mark the text you want to modify, or would you like to modify it all?\n
\n\n
\n Let me mark \n Modify all \n
\n
\n
\n `;\n\n const dialogRoot = document.createElement('div');\n dialogRoot.className = 'ai-actions-dialog-root';\n dialogRoot.innerHTML = contents;\n\n document.body.appendChild(dialogRoot);\n\n dialogRoot.querySelector('.ai-actions-dialog-x-button')?.addEventListener('click', () => {\n resolve('cancel');\n dialogRoot.remove();\n });\n\n dialogRoot.querySelector('.ai-actions-dialog-let-me-mark-button')?.addEventListener('click', () => {\n resolve('let-me-mark');\n dialogRoot.remove(); // Modify as needed\n });\n\n dialogRoot.querySelector('.ai-actions-dialog-modify-all-button')?.addEventListener('click', () => {\n resolve('modify-all');\n dialogRoot.remove(); // Modify as needed\n });\n });\n}\n","export function showAiActionsHelpMeWrite(): Promise {\n return new Promise((resolve) => {\n const contents = `\n \n\n \n
\n
\n Help Me Write\n
\n
\n
\n
\n `;\n\n const dialogRoot = document.createElement('div');\n dialogRoot.className = 'ai-actions-dialog-root';\n dialogRoot.innerHTML = contents;\n\n document.body.appendChild(dialogRoot);\n requestAnimationFrame(() => {\n (dialogRoot.querySelector('.ai-actions-dialog-input') as HTMLInputElement)?.focus();\n });\n\n function go() {\n resolve((dialogRoot.querySelector('.ai-actions-dialog-input') as HTMLInputElement)?.value);\n dialogRoot.remove(); // Modify as needed\n }\n\n function cancel() {\n resolve(undefined);\n dialogRoot.remove(); // Modify as needed\n }\n\n dialogRoot.querySelector('.ai-actions-dialog-cancel-button')?.addEventListener('click', () => {\n cancel();\n });\n\n dialogRoot.querySelector('.ai-actions-dialog-go-button')?.addEventListener('click', () => {\n go();\n });\n\n dialogRoot.querySelector('.ai-actions-dialog-input')?.addEventListener('keyup', (e: KeyboardEvent) => {\n if (e.key === 'Escape') {\n cancel();\n } else if (e.key === 'Enter') {\n go();\n }\n });\n });\n}\n","import { InjectionToken, ɵɵdefineInjectable, ɵɵinject, Injectable, Inject, Optional, NgModule } from '@angular/core';\nimport { take, map, filter } from 'rxjs/operators';\nimport { HttpHeaders, HttpClient } from '@angular/common/http';\nimport mixpanel from 'mixpanel-browser';\nimport { NavigationEnd, Router } from '@angular/router';\nconst USER_DETAILS = new InjectionToken('USER_DETAILS');\nconst APP_SETTINGS = new InjectionToken('APP_SETTINGS');\nclass MixpanelEvent {\n constructor(telemetryEvent) {\n const mapping = {\n eventID: 'EventID',\n eventTitle: 'EventTitle',\n environment: 'Environment',\n time: 'Time',\n url: 'Url',\n CTNumber: 'CTNumber',\n id: 'UserID',\n HoldingID: 'HoldingID',\n organizationID: 'OrganizationID',\n reportID: 'ReportID',\n investingEntityID: 'InvestingEntityID',\n contactID: 'ContactID',\n additional: 'Additional',\n amountGroup: 'AmountGroup',\n sourcePage: 'SourcePage',\n authType: 'AuthType',\n entityType: 'EntityType',\n SOFLevel: 'SOFLevel',\n click: 'Click'\n };\n Object.keys(telemetryEvent).forEach(key => this[mapping[key] || key.replace(/(\\w)(\\w*)/g, function (g0, g1, g2) {\n return g1.toUpperCase() + g2;\n })] = telemetryEvent[key]);\n }\n}\nlet MixpanelService = /*#__PURE__*/(() => {\n class MixpanelService {\n constructor(appSettings, userDetails) {\n this.appSettings = appSettings;\n this.userDetails = userDetails;\n this.url = this.appSettings.telemetryUrl;\n mixpanel.init(this.appSettings.mixpanelToken);\n this.userDetails.accountDetails$.pipe(take(1), map(details => {\n mixpanel.people.set_once({\n UserID: details.id\n });\n mixpanel.identify(details.id.toString());\n })).subscribe();\n }\n sendMixpanelEvent(event) {\n if (event.environment === 'PROD') {\n const mixpanelEvent = new MixpanelEvent(event);\n mixpanel.track(mixpanelEvent.EventTitle, mixpanelEvent);\n }\n }\n }\n MixpanelService.ɵprov = ɵɵdefineInjectable({\n factory: function MixpanelService_Factory() {\n return new MixpanelService(ɵɵinject(APP_SETTINGS), ɵɵinject(USER_DETAILS));\n },\n token: MixpanelService,\n providedIn: \"root\"\n });\n return MixpanelService;\n})();\nvar AnalyticsServiceNameModel = /*#__PURE__*/function (AnalyticsServiceNameModel) {\n AnalyticsServiceNameModel[AnalyticsServiceNameModel[\"Mixpanel\"] = 1] = \"Mixpanel\";\n AnalyticsServiceNameModel[AnalyticsServiceNameModel[\"Insights\"] = 2] = \"Insights\";\n return AnalyticsServiceNameModel;\n}(AnalyticsServiceNameModel || {});\nlet PreviousRouteService = /*#__PURE__*/(() => {\n class PreviousRouteService {\n constructor(router) {\n this.router = router;\n this.currentUrl = this.router.url;\n this.previousUrl = null;\n this.router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe(event => {\n this.previousUrl = this.currentUrl;\n this.currentUrl = event.urlAfterRedirects;\n });\n }\n getPreviousUrl() {\n return this.previousUrl;\n }\n }\n PreviousRouteService.ɵprov = ɵɵdefineInjectable({\n factory: function PreviousRouteService_Factory() {\n return new PreviousRouteService(ɵɵinject(Router));\n },\n token: PreviousRouteService,\n providedIn: \"root\"\n });\n return PreviousRouteService;\n})();\nlet TelemetryService = /*#__PURE__*/(() => {\n class TelemetryService {\n constructor(userDetails, appSettings, http, mixpanelService, previousRoute) {\n this.userDetails = userDetails;\n this.appSettings = appSettings;\n this.http = http;\n this.mixpanelService = mixpanelService;\n this.previousRoute = previousRoute;\n this.url = this.appSettings.telemetryUrl;\n }\n create(event, serviceName) {\n event = Object.assign(Object.assign({}, event), this.getEventBasicData());\n this.userDetails.isLoggedIn$.pipe(take(1)).subscribe(isLoggedIn => {\n if (isLoggedIn) {\n this.createEventWithClientDetails(event, serviceName);\n } else {\n this.sendTelemetryEvent(event, serviceName);\n }\n });\n }\n createEventWithClientDetails(event, serviceName) {\n this.userDetails.accountDetails$.pipe(take(1)).subscribe(details => {\n event = Object.assign(Object.assign({}, event), {\n id: details.id,\n CTNumber: details.clientIdentifier,\n entityType: details.organizationDetails ? 'Organization' : 'Individual'\n });\n this.sendTelemetryEvent(event, serviceName);\n });\n }\n getEventBasicData() {\n return {\n environment: this.getRequestEnvironment(),\n time: Date.now(),\n url: window.location.href,\n sourcePage: this.previousRoute.getPreviousUrl()\n };\n }\n sendTelemetryEvent(data, serviceName) {\n switch (serviceName) {\n case AnalyticsServiceNameModel.Mixpanel:\n this.mixpanelService.sendMixpanelEvent(data);\n break;\n case AnalyticsServiceNameModel.Insights:\n this.sendInsightsEvent(data);\n break;\n case AnalyticsServiceNameModel.Mixpanel | AnalyticsServiceNameModel.Insights:\n this.mixpanelService.sendMixpanelEvent(data);\n this.sendInsightsEvent(data);\n break;\n }\n }\n sendInsightsEvent(data) {\n const headers = new HttpHeaders();\n headers.append('Content-Type', 'application/json');\n const requestBody = data ? JSON.stringify(data) : null;\n if (data.environment !== 'LOCAL' || this.appSettings.debugTelemetry) {\n this.http.post(this.url, requestBody, {\n headers,\n responseType: 'text'\n }).subscribe(() => {}, error => {\n console.error(error);\n });\n }\n }\n getRequestEnvironment() {\n const url = window.location.href;\n let environment;\n if (url.includes('localhost')) {\n environment = 'LOCAL';\n } else if (url.includes('testing')) {\n environment = 'TESTING';\n } else if (url.includes('automation')) {\n environment = 'AUTOMATION';\n } else if (url.includes('gp8200') || url.includes('lp6200') || url.includes('pay4200') || url.includes('staging')) {\n environment = 'STAGING';\n } else {\n environment = 'PROD';\n }\n return environment;\n }\n }\n TelemetryService.ɵprov = ɵɵdefineInjectable({\n factory: function TelemetryService_Factory() {\n return new TelemetryService(ɵɵinject(USER_DETAILS, 8), ɵɵinject(APP_SETTINGS, 8), ɵɵinject(HttpClient), ɵɵinject(MixpanelService), ɵɵinject(PreviousRouteService));\n },\n token: TelemetryService,\n providedIn: \"root\"\n });\n return TelemetryService;\n})();\nclass TelemetryLibraryModule {}\n/*\r\n * Public API Surface of telemetry-library\r\n */\n\n/**\r\n * Generated bundle index. Do not edit.\r\n */\n\nexport { APP_SETTINGS, AnalyticsServiceNameModel, TelemetryLibraryModule, TelemetryService, USER_DETAILS, MixpanelService as ɵc, PreviousRouteService as ɵd };\n","export function showAiActionsUnavailablePopup(text: string): Promise {\n return new Promise((resolve) => {\n const contents = `\n \n\n \n
\n
\n
\n Covercy AI\n
\n
\n ${text}\n
\n\n
\n Ok \n
\n
\n
\n `;\n\n const dialogRoot = document.createElement('div');\n dialogRoot.className = 'ai-actions-dialog-root';\n dialogRoot.innerHTML = contents;\n\n document.body.appendChild(dialogRoot);\n\n dialogRoot.querySelector('.ai-actions-dialog-x-button')?.addEventListener('click', () => {\n resolve();\n dialogRoot.remove();\n });\n\n dialogRoot.querySelector('.ai-actions-dialog-ok-button')?.addEventListener('click', () => {\n resolve();\n dialogRoot.remove(); // Modify as needed\n });\n });\n}\n","export function getOverflowHiddenAncestor(element: Element) {\n let ancestor = element;\n\n // Find the closest ancestor with overflow: hidden\n while (ancestor && ancestor !== document.documentElement) {\n const style = getComputedStyle(ancestor);\n if (style.overflow === 'hidden' || style.overflowY === 'hidden') {\n break;\n }\n ancestor = ancestor.parentElement;\n }\n\n // If no ancestor with overflow: hidden is found, use the root element\n if (!ancestor) {\n return document.documentElement;\n }\n return ancestor;\n}\n","import {getOverflowHiddenAncestor} from \"./ai-actions-utils\";\n\nconst TOOLTIP_SPACE_FROM_EDGE = 50;\nlet isAlreadyShowing = false;\n\nexport function showAiActionsTooltip(buttonElement: Element): Promise {\n return new Promise((resolve) => {\n const contents = `\n \n\n \n `;\n\n if (isAlreadyShowing) {\n return;\n }\n isAlreadyShowing = true;\n\n const dialogRoot = document.createElement('div');\n dialogRoot.className = 'ai-actions-tooltip-root';\n dialogRoot.innerHTML = contents;\n\n buttonElement.appendChild(dialogRoot);\n\n dialogRoot.querySelector('.ai-actions-tooltip-x-button')?.addEventListener('click', () => {\n resolve();\n dialogRoot.remove();\n isAlreadyShowing = false;\n });\n\n requestAnimationFrame(() => {\n const tooltipHeight = dialogRoot.querySelector('.ai-actions-tooltip-frame')?.clientHeight;\n let ancestor = buttonElement.closest('[mat-dialog-content]');\n\n if (!ancestor) {\n ancestor = getOverflowHiddenAncestor(buttonElement);\n } \n\n const topEdge = Math.max(ancestor.getBoundingClientRect().top, 0);\n const buttonTop = buttonElement.getBoundingClientRect().top;\n\n // if element is not visible on the screen show the tooltip Upwards\n if (tooltipHeight && (buttonTop - topEdge < tooltipHeight + TOOLTIP_SPACE_FROM_EDGE)) {\n dialogRoot.classList.add('ai-actions-tooltip-open-downwards');\n } else {\n dialogRoot.classList.add('ai-actions-tooltip-open-upwards');\n }\n });\n\n });\n}\n","import Quill from 'quill';\nimport {HttpService} from '../../../app/services/http.service';\nimport {catchError, finalize, first, take, tap} from 'rxjs/operators';\nimport {Observable, ObservableInput, of, switchMap} from 'rxjs';\nimport {showAiActionsMarkTextPopup} from './ai-actions-mark-text-popup';\nimport {showAiActionsHelpMeWrite} from './ai-actions-help-me-write-popup';\nimport {AppSettingsService} from '../../../app/services/app-settings.service';\nimport {AnalyticsServiceNameModel, TelemetryService} from 'telemetry-library';\nimport {showAiActionsUnavailablePopup} from './ai-actions-unavailable-popup';\nimport {UserService} from '../../../app/services/shared/user.service';\nimport {showAiActionsTooltip} from './ai-actions-tooltip';\nimport {StorageService} from '../../../app/services/storage.service';\nimport FeatureFlags from '../../../app/account/my-account/model/FeatureFlags.enum';\nimport {getOverflowHiddenAncestor} from './ai-actions-utils';\n\nconst Module = Quill.import('core/module');\nconst QUILL_MENU_EDGE_SPACE = 50;\n\nexport function isCovercyAiActionsFeatureEnabled(): boolean {\n // tslint:disable-next-line:no-bitwise\n return (AiActionsButtonModule.storageService?.getCredentialsData()?.featureFlags & FeatureFlags.AiService) !== 0;\n}\n\nexport default class AiActionsButtonModule extends Module {\n public static http?: HttpService;\n public static appSettings?: AppSettingsService;\n public static telemetryService?: TelemetryService;\n public static userService?: UserService;\n public static storageService?: StorageService;\n\n baseEndpoint$: Observable = AiActionsButtonModule.appSettings.localEnv ? of('http://localhost:7071/api/ai') : of('ai');\n\n constructor(quill, options) {\n super(quill, options);\n const toolbar = quill.getModule('toolbar');\n\n if (toolbar) {\n toolbar.addHandler('ai-actions', this.handleAiAction.bind(this));\n }\n\n requestAnimationFrame(async () => {\n const quillRootElement = this.getQuillRootElement(this.quill);\n const aiActionsButton = quillRootElement.querySelector('.ql-ai-actions');\n\n if (isCovercyAiActionsFeatureEnabled()) {\n if (aiActionsButton) {\n if (window.localStorage.getItem('ai-actions-tooltip-shown') !== 'true' && !(quillRootElement.closest('mat-dialog-content') || quillRootElement.closest('[mat-dialog-content]'))) {\n showAiActionsTooltip(aiActionsButton).then(() => {\n window.localStorage.setItem('ai-actions-tooltip-shown', 'true');\n });\n }\n }\n }\n\n this.addAiActionsMenuOpenDirectionHandler(quillRootElement);\n });\n }\n\n addAiActionsMenuOpenDirectionHandler(quillRootElement: HTMLElement) {\n quillRootElement.querySelector('.ql-ai-actions.ql-picker')?.addEventListener('mousedown', () => {\n const menuHeight = quillRootElement.querySelector('.ql-ai-actions.ql-picker .ql-picker-options')?.clientHeight;\n let ancestor = quillRootElement.closest('mat-dialog-content') || quillRootElement.closest('[mat-dialog-content]');\n\n if (!ancestor) {\n ancestor = getOverflowHiddenAncestor(quillRootElement);\n }\n\n const bottomEdge = Math.min(ancestor.getBoundingClientRect().bottom, window.innerHeight);\n const quillTop = quillRootElement.getBoundingClientRect().top;\n\n if (bottomEdge - quillTop < menuHeight + QUILL_MENU_EDGE_SPACE) {\n quillRootElement.classList.add('ai-actions-menu-open-upwards');\n } else {\n quillRootElement.classList.remove('ai-actions-menu-open-upwards');\n }\n });\n }\n\n aiActionCodeToCommand(aiActionCode: string): string {\n switch (aiActionCode) {\n case 'improve':\n return 'Improve the phrasing of the text';\n case 'formalize':\n return 'Formalize the text';\n case 'make-longer':\n return 'Make the text longer';\n case 'make-shorter':\n return 'Make the text shorter';\n }\n throw new Error(`Unknown AI action code: ${aiActionCode}`);\n }\n\n getQuillRootElement(quill: Quill): HTMLElement {\n let ret: HTMLElement = quill.root;\n\n while (ret.tagName.toLowerCase() !== 'quill-editor') {\n ret = ret.parentElement;\n\n if (!ret) {\n throw new Error('Quill root element not found');\n }\n }\n\n return ret;\n }\n\n sendAnalyticsEvent(featureEnabled: boolean, aiActionType: string, aiActionCommand?: string) {\n AiActionsButtonModule.userService?.accountDetails$\n .pipe(take(1))\n .subscribe((clientDetails) => {\n AiActionsButtonModule.telemetryService?.create({\n eventID: '9001',\n eventTitle: 'AI-Smart-Text',\n organizationID: clientDetails.organizationDetails.id,\n pageTitle: document.title,\n featureEnabled,\n aiActionType,\n aiActionCommand,\n // tslint:disable-next-line:no-bitwise\n }, AnalyticsServiceNameModel.Mixpanel | AnalyticsServiceNameModel.Insights);\n });\n }\n\n async handleAiAction(value: any) {\n const quill = this.quill;\n\n const featureEnabled = isCovercyAiActionsFeatureEnabled();\n\n if (!featureEnabled) {\n this.sendAnalyticsEvent(false, value, undefined);\n await showAiActionsUnavailablePopup('Covercy AI is currently available by invitation only. We’ll let you know as soon as it’s your turn!');\n return;\n }\n\n const selection = quill.getSelection();\n let aiCommand: string | undefined;\n let aiActionCode: string | undefined;\n if (value === 'help-me-write') {\n aiCommand = await showAiActionsHelpMeWrite();\n aiActionCode = 'Help Me Write';\n } else {\n aiCommand = this.aiActionCodeToCommand(value);\n aiActionCode = aiCommand;\n }\n\n if (!aiCommand) {\n return;\n }\n\n this.sendAnalyticsEvent(true, value, aiActionCode);\n\n const quillRootElement = this.getQuillRootElement(quill);\n\n if (!selection || selection.length === 0) {\n const dialogResult = await showAiActionsMarkTextPopup();\n switch (dialogResult) {\n case 'cancel':\n return;\n case 'let-me-mark':\n return;\n case 'modify-all':\n selection.index = 0;\n selection.length = quill.getLength();\n break;\n }\n } else {\n // if the selection contains a newline character, the new paragraph will override it,\n // and this looks weird in terms of UX\n if (quill.getText(selection.index, selection.length).endsWith('\\n')) {\n selection.length -= 1;\n }\n }\n\n function cleanExit() {\n quill.enable();\n quillRootElement.classList.remove('ai-action-in-progress');\n }\n\n quill.disable();\n quillRootElement.classList.add('ai-action-in-progress');\n\n const selectedText = quill.getText(selection.index, selection.length);\n const entireText = quill.getText();\n\n this.baseEndpoint$.pipe(\n switchMap((endpoint) =>\n AiActionsButtonModule.http.post(`${endpoint}/process-paragraph`, {\n paragraphText: selectedText,\n entireText,\n command: aiCommand,\n })),\n first(),\n catchError((error, caught): ObservableInput => {\n showAiActionsUnavailablePopup('Covercy AI is currently unavailable. Please try again later.')\n .then(() => {\n cleanExit();\n console.log('error', error);\n });\n return of(null)\n }),\n tap((response) => {\n if(response) {\n quill.deleteText(selection.index, selection.length);\n quill.enable(); // re-enable, disabled quill is not emitting user like events\n quill.insertText(selection.index, response?.paragraphText, 'user');\n quill.setSelection(selection.index + response?.paragraphText.length, 0);\n }\n }),\n finalize(() => {\n cleanExit();\n })\n ).subscribe();\n }\n}\n\nQuill.register('modules/aiActionsButton', AiActionsButtonModule);\n","import {isNullOrUndefined} from 'src/app/shared/TerraUtils';\nimport {isCovercyAiActionsFeatureEnabled} from 'src/plugins/quill-editor/ai-actions/ai-actions-button.plugin';\n\nexport class PromoUiState {\n [key: string]: boolean;\n\n constructor() {\n this.showAutomatedDocumentsSharing = false;\n this.showExternalBankAccounts = false;\n this.showCapitalCommitments = false;\n this.showCovercyAi = isCovercyAiActionsFeatureEnabled();\n }\n static fromJson(obj: any): PromoUiState {\n const model = new PromoUiState();\n\n model.showAutomatedDocumentsSharing = !isNullOrUndefined(obj.showAutomatedDocumentsSharing) ? obj.showAutomatedDocumentsSharing : false;\n model.showExternalBankAccounts = !isNullOrUndefined(obj.showExternalBankAccounts) ? obj.showExternalBankAccounts : false;\n model.showCapitalCommitments = !isNullOrUndefined(obj.showCapitalCommitments) ? obj.showCapitalCommitments : false;\n model.showCovercyAi = !isNullOrUndefined(obj.showCovercyAi) ? obj.showCovercyAi : isCovercyAiActionsFeatureEnabled();\n\n return model;\n }\n}\n","import {isNullOrUndefined} from 'src/app/shared/TerraUtils';\n\n\nexport class CommitmentsUiState {\n [key: string]: boolean;\n\n constructor() {\n this.hideCommitmentsColumns = false;\n }\n static fromJson(obj: any): CommitmentsUiState {\n const model = new CommitmentsUiState();\n\n model.hideCommitmentsColumns = !isNullOrUndefined(obj.hideCommitmentsColumns) ? obj.hideCommitmentsColumns : false;\n\n return model;\n }\n}\n","import {FundraisingUiState} from './FundraisingUiState.model';\nimport {DocumentsUiState} from './DocumentsUiState.model';\nimport {ContactsUiState} from './ContactsUiState.model';\nimport {BankAccountsUiState} from './BankAccountsUiState.model';\nimport {CreBankAccountsUiState} from './CreBankAccountsUiState.model';\nimport {PositionsReportUiState} from './PositionsReportUiState.model';\nimport {AssetsUiState} from './AssetsUiState.model';\nimport {FundsUiState} from './FundsUiState.model';\nimport {SimpleSortUiState} from './SimpleSortUiState.model';\nimport {InsightsUiState} from './InsightsUiState.model';\nimport {OfferingDeckEngagementUiState} from './OfferingDeckEngagementUiState.model';\nimport {BankApplicationsUiState} from './BankApplicationsUiState.model';\nimport {PaymentsUiState} from './PaymentsUiState.model';\nimport {PromoUiState} from './PromoUiState.model';\nimport {CommitmentsUiState} from './Commitments.model';\n\nexport class ClientPresentationState {\n public assets: AssetsUiState;\n public funds: FundsUiState;\n public fundraising: FundraisingUiState;\n public documents: DocumentsUiState;\n public contacts: ContactsUiState;\n public recipientContacts: ContactsUiState;\n public gpBankAccounts: BankAccountsUiState;\n public investorsBankAccounts: CreBankAccountsUiState;\n public bankApplications: BankApplicationsUiState;\n public positionsReport: PositionsReportUiState;\n public fundsManagingPortfolio: SimpleSortUiState;\n public fundsManagingOverview: SimpleSortUiState;\n public assetInvestorOverview: SimpleSortUiState;\n public commitments: CommitmentsUiState;\n public fundsFundraising: SimpleSortUiState;\n public assetsFundraising: SimpleSortUiState;\n public fundsDistribution: SimpleSortUiState;\n public assetsDistribution: SimpleSortUiState;\n public insightsInvestorInteractions: SimpleSortUiState;\n public insightsUiState: InsightsUiState;\n public offeringDeckEngagementUiState: OfferingDeckEngagementUiState;\n public payments: PaymentsUiState;\n public promo: PromoUiState;\n\n constructor() {\n this.assets = new AssetsUiState();\n this.funds = new FundsUiState();\n this.fundraising = new FundraisingUiState();\n this.documents = new DocumentsUiState();\n this.contacts = new ContactsUiState();\n this.recipientContacts = new ContactsUiState();\n this.gpBankAccounts = new BankAccountsUiState();\n this.investorsBankAccounts = new CreBankAccountsUiState();\n this.bankApplications = new BankApplicationsUiState();\n this.positionsReport = new PositionsReportUiState();\n this.fundsManagingPortfolio = new SimpleSortUiState();\n this.fundsManagingOverview = new SimpleSortUiState();\n this.assetInvestorOverview = new SimpleSortUiState();\n this.commitments = new CommitmentsUiState();\n this.fundsFundraising = new SimpleSortUiState();\n this.assetsFundraising = new SimpleSortUiState();\n this.fundsDistribution = new SimpleSortUiState();\n this.assetsDistribution = new SimpleSortUiState();\n this.insightsInvestorInteractions = new SimpleSortUiState();\n this.insightsUiState = new InsightsUiState();\n this.offeringDeckEngagementUiState = new OfferingDeckEngagementUiState();\n this.payments = new PaymentsUiState();\n this.promo = new PromoUiState();\n }\n\n static fromJson(obj: ClientPresentationState): ClientPresentationState {\n const model = new ClientPresentationState();\n if (!obj) {\n return model;\n }\n\n model.assets = obj.assets ? AssetsUiState.fromJson(obj.assets) : new AssetsUiState();\n model.funds = obj.funds ? FundsUiState.fromJson(obj.funds) : new FundsUiState();\n model.fundraising = obj.fundraising ? FundraisingUiState.fromJson(obj.fundraising) : new FundraisingUiState();\n model.documents = obj.documents ? DocumentsUiState.fromJson(obj.documents) : new DocumentsUiState();\n model.contacts = obj.contacts ? ContactsUiState.fromJson(obj.contacts) : new ContactsUiState();\n model.recipientContacts = obj.recipientContacts ? ContactsUiState.fromJson(obj.recipientContacts) : new ContactsUiState();\n model.gpBankAccounts = obj.gpBankAccounts ? BankAccountsUiState.fromJson(obj.gpBankAccounts) : new BankAccountsUiState();\n model.investorsBankAccounts = obj.investorsBankAccounts ? CreBankAccountsUiState.fromJson(obj.investorsBankAccounts) : new CreBankAccountsUiState();\n model.bankApplications = obj.bankApplications ? BankApplicationsUiState.fromJson(obj.bankApplications) : new BankApplicationsUiState();\n model.positionsReport = obj.positionsReport ? PositionsReportUiState.fromJson(obj.positionsReport) : new PositionsReportUiState();\n model.fundsManagingPortfolio = obj.fundsManagingPortfolio ? SimpleSortUiState.fromJson(obj.fundsManagingPortfolio) : new SimpleSortUiState();\n model.fundsManagingOverview = obj.fundsManagingOverview ? SimpleSortUiState.fromJson(obj.fundsManagingOverview) : new SimpleSortUiState();\n model.assetInvestorOverview = obj.assetInvestorOverview ? SimpleSortUiState.fromJson(obj.assetInvestorOverview) : new SimpleSortUiState();\n model.commitments = obj.commitments ? CommitmentsUiState.fromJson(obj.commitments) : new CommitmentsUiState();\n model.fundsFundraising = obj.fundsFundraising ? SimpleSortUiState.fromJson(obj.fundsFundraising) : new SimpleSortUiState();\n model.assetsFundraising = obj.assetsFundraising ? SimpleSortUiState.fromJson(obj.assetsFundraising) : new SimpleSortUiState();\n model.fundsDistribution = obj.fundsDistribution ? SimpleSortUiState.fromJson(obj.fundsDistribution) : new SimpleSortUiState();\n model.assetsDistribution = obj.assetsDistribution ? SimpleSortUiState.fromJson(obj.assetsDistribution) : new SimpleSortUiState();\n model.insightsInvestorInteractions = obj.insightsInvestorInteractions ? SimpleSortUiState.fromJson(obj.insightsInvestorInteractions) : new SimpleSortUiState();\n model.insightsUiState = obj.insightsUiState ? InsightsUiState.fromJson(obj.insightsUiState) : new InsightsUiState();\n model.offeringDeckEngagementUiState = obj.offeringDeckEngagementUiState ? OfferingDeckEngagementUiState.fromJson(obj.offeringDeckEngagementUiState) : new OfferingDeckEngagementUiState();\n model.payments = obj.payments ? PaymentsUiState.fromJson(obj.payments) : new PaymentsUiState();\n model.promo = obj.promo ? PromoUiState.fromJson(obj.promo) : new PromoUiState();\n\n return model;\n }\n}\n","// tslint:disable: no-bitwise\n\nexport enum RoleFlags {\n Member = 0,\n Admin = 1 << 0,\n SignDistributions = 1 << 1,\n SignCreateCreBank = 1 << 2,\n}\n\n/*\n\n// https://stackoverflow.com/questions/39359740/what-are-enum-flags-in-typescript\n\nTo assign a flag to a variable:\n--------------------------------\nlet features = RoleFlags.Admin;\n\nTo append another flag to the same variable:\n--------------------------------------------\nfeatures |= RoleFlags.Admin;\n\nTo remove a flag from the variable:\n--------------------------------------------\nfeatures &= ~RoleFlags.Admin;\n\nCompare to check if a value is set in the variable:\n---------------------------------------------------\nconsole.log(RoleFlags.Admin === (features & RoleFlags.Admin)); // Return true\nconsole.log(RoleFlags.SignDistributions === (features & RoleFlags.SignDistributions)); // Return false\n\n*/\n\n// tslint:disable-next-line:no-namespace\nexport namespace RoleFlags {\n export function toString(rf: RoleFlags): string {\n switch (rf) {\n case RoleFlags.Member:\n return \"Member\";\n case RoleFlags.Admin:\n return \"Admin\";\n case RoleFlags.SignDistributions:\n return \"Distributions Signer\";\n case RoleFlags.SignCreateCreBank:\n return \"CRE bank account create Signer\";\n default:\n return null;\n }\n }\n\n export function parse(str: string): RoleFlags {\n return RoleFlags[str];\n }\n\n export function isOn(\n featuresList: RoleFlags,\n valueToCheck: RoleFlags\n ): boolean {\n return valueToCheck === (featuresList & valueToCheck);\n }\n}\n\nexport default RoleFlags;\n","export enum UserType {\n 'None' = 0,\n 'Client' = 1,\n 'Agent' = 2\n}\n","// Must match the server enum\nexport enum AppType {\n None = 0,\n PayApp = 1,\n GpApp = 2,\n LpApp = 3\n}\n\n","import { HttpClient, HttpErrorResponse, HttpHeaders, HttpParams, HttpRequest } from '@angular/common/http';\nimport { EventEmitter, Injectable, Injector } from '@angular/core';\nimport { Observable, of } from 'rxjs';\nimport { catchError, switchMap } from 'rxjs/operators';\n// import { ImageCompressService, IImage } from 'ng2-image-compress';\nimport Compressor from 'compressorjs';\n\nimport { AppSettingsService } from './app-settings.service';\nimport { ImpersonationService } from './shared/impersonation.service';\nimport { StorageService } from './storage.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class HttpService {\n\n\n private RESOURCE_API_BASE_URL = this.appSettings.resourceUrl;\n\n constructor(\n private http: HttpClient,\n private appSettings: AppSettingsService,\n private storageService: StorageService,\n private injector: Injector\n // private imgCompressService: ImageCompressService\n ) { }\n\n private catchErrorWithExtraData(error: any): HttpErrorResponse {\n let updateError: HttpErrorResponse = error;\n try {\n updateError = {...error, error: JSON.parse(error.error.message)};\n } catch { }\n return updateError;\n }\n\n\n public get(url: string) {\n const headers = this.generateDefaultHeaders();\n return this.http.get(this.getFullUrl(url), {\n headers,\n withCredentials: true\n });\n }\n\n public getTyped(url: string, queryParams?: HttpParams) {\n return of({}).pipe(\n switchMap(() => {\n return this.http.get(this.getFullUrl(url), {\n headers: this.generateDefaultHeaders(),\n params: queryParams,\n withCredentials: true\n });\n }),\n catchError((error: HttpErrorResponse) => {\n throw this.catchErrorWithExtraData(error);\n })\n );\n }\n\n public post(url: string, data: any, options?: CustomHttpOptions) {\n let headers = this.generateDefaultHeaders();\n headers = headers.append('Content-Type', 'application/json');\n const requestBody = data ? JSON.stringify(data) : null;\n\n if (options && options.observe !== 'body') {\n return this.http.post(this.getFullUrl(url), requestBody, {\n observe: 'response',\n withCredentials: true,\n headers\n });\n } else {\n return this.http.post(this.getFullUrl(url), requestBody, {\n withCredentials: true,\n headers\n });\n }\n }\n\n public postTyped(url: string, data: any) {\n let headers = this.generateDefaultHeaders();\n headers = headers.append('Content-Type', 'application/json');\n const requestBody = data ? JSON.stringify(data) : null;\n return this.http.post(this.getFullUrl(url), requestBody, {\n withCredentials: true,\n headers\n }).pipe(\n catchError((error: HttpErrorResponse) => {\n throw this.catchErrorWithExtraData(error);\n })\n );\n }\n\n public put(url: string, data: any) {\n let headers = this.generateDefaultHeaders();\n headers = headers.append('Content-Type', 'application/json');\n const requestBody = data ? JSON.stringify(data) : null;\n return this.http.put(this.getFullUrl(url), requestBody, {\n withCredentials: true,\n headers\n });\n }\n\n public putTyped(url: string, data: any = null) {\n let headers = this.generateDefaultHeaders();\n headers = headers.append('Content-Type', 'application/json');\n const requestBody = data ? JSON.stringify(data) : null;\n return this.http.put(this.getFullUrl(url), requestBody, {\n withCredentials: true,\n headers\n }).pipe(\n catchError((error: HttpErrorResponse) => {\n throw this.catchErrorWithExtraData(error);\n })\n );\n }\n\n public patchTyped(url: string, data: any) {\n let headers = this.generateDefaultHeaders();\n headers = headers.append('Content-Type', 'application/json');\n const requestBody = data ? JSON.stringify(data) : null;\n return this.http.patch(this.getFullUrl(url), requestBody, {\n withCredentials: true,\n headers\n }).pipe(\n catchError((error: HttpErrorResponse) => {\n throw this.catchErrorWithExtraData(error);\n })\n );\n }\n\n public deleteTyped(url: string) {\n let headers = this.generateDefaultHeaders();\n headers = headers.append('Content-Type', 'application/json');\n\n return this.http.delete(this.getFullUrl(url), {\n withCredentials: true,\n headers\n }).pipe(\n catchError((error: HttpErrorResponse) => {\n throw this.catchErrorWithExtraData(error);\n })\n );\n }\n\n // public compressImage(file: File): Observable {\n // let images: Array = [];\n // images.push({\n // fileName: file.name;\n // imageObjectUrl: file.;\n // imageDataUrl: string;\n // type: string;\n // compressedImage: IImage;\n // });\n // ImageCompressService.filesArrayToCompressedImageSource(File)\n // }\n\n public compressImage(file: File): Observable {\n // return of(file);\n const emitter = new EventEmitter();\n // if the file is not an images, return in as is:\n\n const fileName = file.name.toLowerCase();\n\n if (!fileName.endsWith('.png') && !fileName.endsWith('.jpg') && !fileName.endsWith('.jpeg') && !fileName.endsWith('.bmp')) {\n return of(file);\n } else {\n // Compress the image:\n // https://www.npmjs.com/package/compressorjs\n\n const compressor = new Compressor(file, {\n quality: 0.6,\n maxWidth: 1920,\n success(blobResult) {\n const compressedFile = new File([blobResult], file.name, {type: file.type, lastModified: Date.now()});\n emitter.emit(compressedFile);\n },\n error(err) {\n emitter.error(err);\n console.log(err.message);\n }\n });\n }\n\n return emitter.asObservable();\n }\n\n public uploadFile(url: string, file: File) {\n const formData: FormData = new FormData();\n formData.append(file.name, file);\n let headers = this.generateDefaultHeaders();\n headers = headers.append('Accept', 'application/json');\n const req = new HttpRequest('POST', this.getFullUrl(url), formData, {\n headers,\n withCredentials: true,\n reportProgress: true\n });\n return this.http.request(req);\n }\n\n public downloadFile(url: string, fileType: string) {\n let headers = this.generateDefaultHeaders();\n headers = headers.append('Accept', fileType);\n return this.http.get(this.getFullUrl(url), {\n headers,\n withCredentials: true,\n responseType: 'blob',\n observe: 'response'\n }).pipe(\n switchMap(resp => {\n const downloadLink = document.createElement('a');\n const blob = new Blob([resp.body], {type: fileType});\n // for some reason, sometimes the character \" is appended before and after the filename\n // if it happens - we're removing it in the next if statement\n let fileName = 'file';\n if (!!resp.headers.get('content-disposition') && resp.headers.get('content-disposition')?.split('filename=').length >= 2) {\n const contentDispositionParts = resp.headers.get('content-disposition').split(';').map(part => part.toLowerCase().trim())\n fileName = contentDispositionParts.filter(part => part.startsWith('filename='))[0].substring('filename='.length);\n if (fileName.charAt(0) === '\"' && fileName.charAt(fileName.length - 1) === '\"') {\n fileName = fileName.substring(1, fileName.length - 1);\n }\n }\n\n downloadLink.href = window.URL.createObjectURL(blob);\n downloadLink.setAttribute('download', fileName);\n downloadLink.click();\n return of(true);\n })\n );\n }\n\n public delete(url: string) {\n const headers = this.generateDefaultHeaders();\n return this.http.delete(this.getFullUrl(url), {headers, withCredentials: true});\n }\n\n public generateDefaultHeaders(): HttpHeaders {\n const authDataJson = this.storageService.getAuthorizationData();\n const impersonationService = this.injector.get(ImpersonationService);\n let headers = new HttpHeaders();\n if (authDataJson && authDataJson.access_token) {\n headers = headers.append('Authorization', 'Bearer ' + authDataJson.access_token);\n }\n if (impersonationService.isViewingAsInvestor) {\n headers = headers.append('Impersonate-As', impersonationService.impersonateAsUsername);\n }\n\n return headers;\n }\n\n public getFullUrl(url: string): string {\n if (url.indexOf('http') === 0) {\n return url;\n }\n\n return this.RESOURCE_API_BASE_URL + url;\n }\n}\n\nexport class CustomHttpOptions {\n public observe?: string;\n}\n","\nexport class ImpersonateAsUserDetails {\n public username: string;\n public firstName: string;\n public lastName: string;\n}\n","type ErrorObject = { [key: string]: any } | any[];\n\nconst SENSITIVE_FIELDS = [\n 'password',\n 'newPassword',\n 'currentPassword',\n 'confirmPassword',\n 'pwd',\n 'pass',\n 'recaptcha',\n 'recaptchaToken',\n 'captchaToken',\n 'captchaResponse',\n 'emailSessionToken'\n];\n\nconst BODY_FIELD_NAMES = [\n 'body',\n 'requestBody',\n 'payload',\n 'data'\n];\n\nexport function maskSensitiveData(error: ErrorObject): ErrorObject {\n // Handle the case where the top-level error is an array\n if (Array.isArray(error)) {\n return error.map(item => maskSensitiveData(item));\n }\n\n // Deep clone the error object to avoid mutations\n const maskedError = JSON.parse(JSON.stringify(error));\n \n // Helper function to check if a string might be JSON\n const isPossiblyJSON = (str: string): boolean => {\n return typeof str === 'string' && \n (str.startsWith('{') || str.startsWith('[')) && \n (str.endsWith('}') || str.endsWith(']'));\n };\n\n // Helper function to safely parse JSON\n const safeJSONParse = (str: string): any => {\n try {\n return JSON.parse(str);\n } catch {\n return str;\n }\n };\n\n // Helper function to find and mask body fields\n const findAndMaskBodyFields = (obj: any): any => {\n if (!obj) return obj;\n \n // Handle primitive types\n if (typeof obj !== 'object') return obj;\n\n // Handle arrays\n if (Array.isArray(obj)) {\n return obj.map(item => findAndMaskBodyFields(item));\n }\n\n // Create a new object to store masked data\n const maskedObj = { ...obj };\n\n for (const key in maskedObj) {\n const value = maskedObj[key];\n\n // Check if this is a body field that might contain sensitive data\n if (BODY_FIELD_NAMES.some(field => key.toLowerCase().includes(field.toLowerCase()))) {\n if (typeof value === 'string' && isPossiblyJSON(value)) {\n const parsedValue = safeJSONParse(value);\n if (parsedValue && typeof parsedValue === 'object') {\n maskedObj[key] = JSON.stringify(maskSensitiveFields(parsedValue));\n continue;\n }\n }\n }\n\n // Check if the key itself is sensitive\n if (SENSITIVE_FIELDS.some(field => key.toLowerCase().includes(field.toLowerCase()))) {\n maskedObj[key] = '********';\n continue;\n }\n\n // Recursively process nested objects and arrays\n if (typeof value === 'object' && value !== null) {\n maskedObj[key] = findAndMaskBodyFields(value);\n } else if (typeof value === 'string' && isPossiblyJSON(value)) {\n // Try to parse and mask any JSON strings\n const parsedValue = safeJSONParse(value);\n if (parsedValue && typeof parsedValue === 'object') {\n maskedObj[key] = JSON.stringify(findAndMaskBodyFields(parsedValue));\n }\n }\n }\n\n return maskedObj;\n };\n\n // Helper function to mask sensitive fields in an object\n const maskSensitiveFields = (obj: any): any => {\n if (!obj) return obj;\n \n // Handle primitive types\n if (typeof obj !== 'object') return obj;\n\n if (Array.isArray(obj)) {\n return obj.map(item => maskSensitiveFields(item));\n }\n\n const maskedObj = { ...obj };\n for (const key in maskedObj) {\n if (SENSITIVE_FIELDS.some(field => key.toLowerCase().includes(field.toLowerCase()))) {\n maskedObj[key] = '********';\n } else if (typeof maskedObj[key] === 'object' && maskedObj[key] !== null) {\n maskedObj[key] = maskSensitiveFields(maskedObj[key]);\n }\n }\n return maskedObj;\n };\n\n return findAndMaskBodyFields(maskedError);\n}\n\nexport interface MaskedLogData {\n value: ErrorObject;\n additionalData?: ErrorObject;\n}\n\nexport function prepareMaskedLogData(error: ErrorObject, additionalData?: ErrorObject): MaskedLogData {\n const maskedData: MaskedLogData = {\n value: maskSensitiveData(error)\n };\n\n if (additionalData !== undefined) {\n maskedData.additionalData = maskSensitiveData(additionalData);\n }\n\n return maskedData;\n}","import { ErrorHandler, Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { INGXLoggerConfig, NGXLogger } from 'ngx-logger';\n\nimport { AppSettingsService } from 'src/app/services/app-settings.service';\nimport { HttpService } from 'src/app/services/http.service';\nimport { MaskedLogData, prepareMaskedLogData } from './MaskSensativeData';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LoggerService extends ErrorHandler {\n\n private readonly LOGGER_ENDPOINT = 'logger';\n\n constructor(\n private logger: NGXLogger,\n private appSettings: AppSettingsService,\n private http: HttpService,\n private router: Router\n ) {\n super();\n\n this.logger.updateConfig({\n serverLoggingUrl: this.appSettings.resourceUrl + this.LOGGER_ENDPOINT,\n level: this.appSettings.ngxLogging.level,\n serverLogLevel: this.appSettings.ngxLogging.serverLogLevel,\n setWithCredentialsOptionValue: true\n } as INGXLoggerConfig);\n\n }\n\n /** Override the base handleError function called by angular */\n handleError(error) {\n this.warning(error);\n }\n\n info(value: any, ...additional: any[]) {\n var maskedData = this.prepareForErrorSending(additional, value, false);\n this.logger.info(maskedData.value, maskedData.additionalData);\n }\n\n debug(value: any, ...additional: any[]) {\n var maskedData = this.prepareForErrorSending(additional, value, false);\n this.logger.debug(maskedData.value, maskedData.additionalData);\n }\n\n warning(error: any, ...additional: any[]) {\n var maskedData = this.prepareForErrorSending(additional, error);\n this.logger.warn(maskedData.value, maskedData.additionalData);\n }\n\n error(error: any, ...additional: any[]) {\n var maskedData = this.prepareForErrorSending(additional, error);\n this.logger.error(maskedData.value, maskedData.additionalData);\n }\n\n fatal(error: any, ...additional: any[]) {\n var maskedData = this.prepareForErrorSending(additional, error);\n this.logger.fatal(maskedData.value, maskedData.additionalData);\n }\n\n private preLogLogic() {\n this.logger.setCustomHttpHeaders(this.http.generateDefaultHeaders());\n }\n\n private getCurrentUrlObject() {\n return {url: this.router.url};\n }\n\n private getRequestObject(originalRequest) {\n return originalRequest ? {originalRequest} : null;\n }\n\n private prepareForErrorSending(additional: any[], value: any = null, enrichAdditional: boolean = true) : MaskedLogData {\n this.preLogLogic();\n const fullAdditional = this.updateAdditional(additional, value);\n const maskedData = prepareMaskedLogData(value, fullAdditional);\n return maskedData;\n }\n\n private updateAdditional(additional: any[], error: any = null) {\n if (!additional) {\n additional = [];\n }\n\n additional.push(this.getCurrentUrlObject());\n additional.push(this.getRequestObject(error?.originalRequest));\n\n return additional;\n }\n}\n","import {Injectable} from '@angular/core';\nimport {Router} from '@angular/router';\nimport {catchError, finalize, tap} from 'rxjs/operators';\nimport {BehaviorSubject, throwError} from 'rxjs';\n\nimport {RoutingService} from '../routing.service';\nimport {StorageService} from '../storage.service';\nimport {AppSettingsService, SubdomainEnum} from '../app-settings.service';\nimport {InvestorContactReqRes} from '../../dashboard/contacts/models/investorContactReqRes.model';\nimport {ImpersonateAsUserDetails} from '../../models/ImpersonateAsUserDetails.model';\nimport {UserService} from './user.service';\nimport {LoggerService} from '../../shared/errors/logger.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ImpersonationService {\n private _isLoadingImpersonation$ = new BehaviorSubject(false);\n isLoadingImpersonation$ = this._isLoadingImpersonation$.asObservable();\n\n constructor(private routingService: RoutingService,\n private router: Router,\n private storageService: StorageService,\n private appSettings: AppSettingsService,\n private userService: UserService,\n private logger: LoggerService) {\n }\n\n public get isViewingAsInvestor(): boolean {\n return this.appSettings.subDomain === SubdomainEnum.GP && window.location.pathname.startsWith('/lp') &&\n !!this.impersonateAsUsername;\n }\n\n public get impersonateAsUsername(): string {\n return this.impersonateAsDetails?.username;\n }\n\n public get impersonateAsDetails(): ImpersonateAsUserDetails {\n return this.storageService.getImpersonateAsData();\n }\n public viewAsInvestor(contact: InvestorContactReqRes) {\n const impersonationData = new ImpersonateAsUserDetails();\n impersonationData.username = contact.email;\n impersonationData.firstName = contact.firstName;\n impersonationData.lastName = contact.lastName;\n this._isLoadingImpersonation$.next(true);\n return this.userService.addLpForImpersonation(impersonationData.username).pipe(\n tap(_ => {\n this.storageService.setImpersonateAsData(impersonationData);\n const url = this.router.serializeUrl(this.router.createUrlTree([this.routingService.lpHoldingsPage]));\n window.open(url, '_blank');\n }),\n finalize(() => {\n this._isLoadingImpersonation$.next(false);\n }),\n catchError(error => {\n this.logger.error(`viewAsLp => error viewing LP portal as ${impersonationData.username}`, error);\n return throwError(error);\n })\n );\n }\n}\n","import * as i0 from '@angular/core';\nimport { EventEmitter, Injectable, Inject, NgModule, Optional, SkipSelf, Directive, Input } from '@angular/core';\nimport { BehaviorSubject, ReplaySubject, AsyncSubject, isObservable } from 'rxjs';\nimport { skip, filter, take } from 'rxjs/operators';\nimport { CommonModule } from '@angular/common';\nclass BaseLoginProvider {\n constructor() {}\n loadScript(id, src, onload, parentElement = null) {\n // get document if platform is only browser\n if (typeof document !== 'undefined' && !document.getElementById(id)) {\n let signInJS = document.createElement('script');\n signInJS.async = true;\n signInJS.src = src;\n signInJS.onload = onload;\n if (!parentElement) {\n parentElement = document.head;\n }\n parentElement.appendChild(signInJS);\n }\n }\n}\nclass SocialUser {}\nconst defaultInitOptions = {\n oneTapEnabled: true\n};\nlet GoogleLoginProvider = /*#__PURE__*/(() => {\n class GoogleLoginProvider extends BaseLoginProvider {\n static {\n this.PROVIDER_ID = 'GOOGLE';\n }\n constructor(clientId, initOptions) {\n super();\n this.clientId = clientId;\n this.initOptions = initOptions;\n this.changeUser = new EventEmitter();\n this._socialUser = new BehaviorSubject(null);\n this._accessToken = new BehaviorSubject(null);\n this._receivedAccessToken = new EventEmitter();\n this.initOptions = {\n ...defaultInitOptions,\n ...this.initOptions\n };\n // emit changeUser events but skip initial value from behaviorSubject\n this._socialUser.pipe(skip(1)).subscribe(this.changeUser);\n // emit receivedAccessToken but skip initial value from behaviorSubject\n this._accessToken.pipe(skip(1)).subscribe(this._receivedAccessToken);\n }\n initialize(autoLogin, lang) {\n return new Promise((resolve, reject) => {\n try {\n this.loadScript(GoogleLoginProvider.PROVIDER_ID, this.getGoogleLoginScriptSrc(lang), () => {\n google.accounts.id.initialize({\n client_id: this.clientId,\n auto_select: autoLogin,\n callback: ({\n credential\n }) => {\n const socialUser = this.createSocialUser(credential);\n this._socialUser.next(socialUser);\n },\n prompt_parent_id: this.initOptions?.prompt_parent_id,\n itp_support: this.initOptions.oneTapEnabled,\n use_fedcm_for_prompt: this.initOptions.oneTapEnabled\n });\n if (this.initOptions.oneTapEnabled) {\n this._socialUser.pipe(filter(user => user === null)).subscribe(() => google.accounts.id.prompt(console.debug));\n }\n if (this.initOptions.scopes) {\n const scope = this.initOptions.scopes instanceof Array ? this.initOptions.scopes.filter(s => s).join(' ') : this.initOptions.scopes;\n this._tokenClient = google.accounts.oauth2.initTokenClient({\n client_id: this.clientId,\n scope,\n prompt: this.initOptions.prompt,\n callback: tokenResponse => {\n if (tokenResponse.error) {\n this._accessToken.error({\n code: tokenResponse.error,\n description: tokenResponse.error_description,\n uri: tokenResponse.error_uri\n });\n } else {\n this._accessToken.next(tokenResponse.access_token);\n }\n }\n });\n }\n resolve();\n });\n } catch (err) {\n reject(err);\n }\n });\n }\n getLoginStatus() {\n return new Promise((resolve, reject) => {\n if (this._socialUser.value) {\n resolve(this._socialUser.value);\n } else {\n reject(`No user is currently logged in with ${GoogleLoginProvider.PROVIDER_ID}`);\n }\n });\n }\n refreshToken() {\n return new Promise((resolve, reject) => {\n google.accounts.id.revoke(this._socialUser.value.id, response => {\n if (response.error) reject(response.error);else resolve(this._socialUser.value);\n });\n });\n }\n getAccessToken() {\n return new Promise((resolve, reject) => {\n if (!this._tokenClient) {\n if (this._socialUser.value) {\n reject('No token client was instantiated, you should specify some scopes.');\n } else {\n reject('You should be logged-in first.');\n }\n } else {\n this._tokenClient.requestAccessToken({\n hint: this._socialUser.value?.email\n });\n this._receivedAccessToken.pipe(take(1)).subscribe(resolve);\n }\n });\n }\n revokeAccessToken() {\n return new Promise((resolve, reject) => {\n if (!this._tokenClient) {\n reject('No token client was instantiated, you should specify some scopes.');\n } else if (!this._accessToken.value) {\n reject('No access token to revoke');\n } else {\n google.accounts.oauth2.revoke(this._accessToken.value, () => {\n this._accessToken.next(null);\n resolve();\n });\n }\n });\n }\n signIn() {\n return Promise.reject('You should not call this method directly for Google, use \"\" wrapper ' + 'or generate the button yourself with \"google.accounts.id.renderButton()\" ' + '(https://developers.google.com/identity/gsi/web/guides/display-button#javascript)');\n }\n async signOut() {\n google.accounts.id.disableAutoSelect();\n this._socialUser.next(null);\n }\n createSocialUser(idToken) {\n const user = new SocialUser();\n user.idToken = idToken;\n const payload = this.decodeJwt(idToken);\n user.id = payload.sub;\n user.name = payload.name;\n user.email = payload.email;\n user.photoUrl = payload.picture;\n user.firstName = payload['given_name'];\n user.lastName = payload['family_name'];\n return user;\n }\n decodeJwt(idToken) {\n const base64Url = idToken.split(\".\")[1];\n const base64 = base64Url.replace(/-/g, \"+\").replace(/_/g, \"/\");\n const jsonPayload = decodeURIComponent(window.atob(base64).split(\"\").map(function (c) {\n return \"%\" + (\"00\" + c.charCodeAt(0).toString(16)).slice(-2);\n }).join(\"\"));\n return JSON.parse(jsonPayload);\n }\n getGoogleLoginScriptSrc(lang) {\n return lang ? `https://accounts.google.com/gsi/client?hl=${lang}` : 'https://accounts.google.com/gsi/client';\n }\n }\n return GoogleLoginProvider;\n})();\n/**\n * The service encapsulating the social login functionality. Exposes methods like\n * `signIn`, `signOut`. Also, exposes an `authState` `Observable` that one can\n * subscribe to get the current logged in user information.\n *\n * @dynamic\n */\nlet SocialAuthService = /*#__PURE__*/(() => {\n class SocialAuthService {\n static {\n this.ERR_LOGIN_PROVIDER_NOT_FOUND = 'Login provider not found';\n }\n static {\n this.ERR_NOT_LOGGED_IN = 'Not logged in';\n }\n static {\n this.ERR_NOT_INITIALIZED = 'Login providers not ready yet. Are there errors on your console?';\n }\n static {\n this.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN = 'Chosen login provider is not supported for refreshing a token';\n }\n static {\n this.ERR_NOT_SUPPORTED_FOR_ACCESS_TOKEN = 'Chosen login provider is not supported for getting an access token';\n }\n /** An `Observable` that one can subscribe to get the current logged in user information */\n get authState() {\n return this._authState.asObservable();\n }\n /** An `Observable` to communicate the readiness of the service and associated login providers */\n get initState() {\n return this._initState.asObservable();\n }\n /**\n * @param config A `SocialAuthServiceConfig` object or a `Promise` that resolves to a `SocialAuthServiceConfig` object\n */\n constructor(config, _ngZone, _injector) {\n this._ngZone = _ngZone;\n this._injector = _injector;\n this.providers = new Map();\n this.autoLogin = false;\n this.lang = '';\n this._user = null;\n this._authState = new ReplaySubject(1);\n /* Consider making this an enum comprising LOADING, LOADED, FAILED etc. */\n this.initialized = false;\n this._initState = new AsyncSubject();\n if (config instanceof Promise) {\n config.then(config => {\n this.initialize(config);\n });\n } else {\n this.initialize(config);\n }\n }\n initialize(config) {\n this.autoLogin = config.autoLogin !== undefined ? config.autoLogin : false;\n this.lang = config.lang !== undefined ? config.lang : '';\n const {\n onError = console.error\n } = config;\n config.providers.forEach(item => {\n this.providers.set(item.id, 'prototype' in item.provider ? this._injector.get(item.provider) : item.provider);\n });\n Promise.all(Array.from(this.providers.values()).map(provider => provider.initialize(this.autoLogin, this.lang))).then(() => {\n if (this.autoLogin) {\n const loginStatusPromises = [];\n let loggedIn = false;\n this.providers.forEach((provider, key) => {\n const promise = provider.getLoginStatus();\n loginStatusPromises.push(promise);\n promise.then(user => {\n this.setUser(user, key);\n loggedIn = true;\n }).catch(console.debug);\n });\n Promise.all(loginStatusPromises).catch(() => {\n if (!loggedIn) {\n this._user = null;\n this._authState.next(null);\n }\n });\n }\n this.providers.forEach((provider, key) => {\n if (isObservable(provider.changeUser)) {\n provider.changeUser.subscribe(user => {\n this._ngZone.run(() => {\n this.setUser(user, key);\n });\n });\n }\n });\n }).catch(error => {\n onError(error);\n }).finally(() => {\n this.initialized = true;\n this._initState.next(this.initialized);\n this._initState.complete();\n });\n }\n async getAccessToken(providerId) {\n const providerObject = this.providers.get(providerId);\n if (!this.initialized) {\n throw SocialAuthService.ERR_NOT_INITIALIZED;\n } else if (!providerObject) {\n throw SocialAuthService.ERR_LOGIN_PROVIDER_NOT_FOUND;\n } else if (!(providerObject instanceof GoogleLoginProvider)) {\n throw SocialAuthService.ERR_NOT_SUPPORTED_FOR_ACCESS_TOKEN;\n }\n return await providerObject.getAccessToken();\n }\n refreshAuthToken(providerId) {\n return new Promise((resolve, reject) => {\n if (!this.initialized) {\n reject(SocialAuthService.ERR_NOT_INITIALIZED);\n } else {\n const providerObject = this.providers.get(providerId);\n if (providerObject) {\n if (typeof providerObject.refreshToken !== 'function') {\n reject(SocialAuthService.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN);\n } else {\n providerObject.refreshToken().then(user => {\n this.setUser(user, providerId);\n resolve();\n }).catch(err => {\n reject(err);\n });\n }\n } else {\n reject(SocialAuthService.ERR_LOGIN_PROVIDER_NOT_FOUND);\n }\n }\n });\n }\n refreshAccessToken(providerId) {\n return new Promise((resolve, reject) => {\n if (!this.initialized) {\n reject(SocialAuthService.ERR_NOT_INITIALIZED);\n } else if (providerId !== GoogleLoginProvider.PROVIDER_ID) {\n reject(SocialAuthService.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN);\n } else {\n const providerObject = this.providers.get(providerId);\n if (providerObject instanceof GoogleLoginProvider) {\n providerObject.revokeAccessToken().then(resolve).catch(reject);\n } else {\n reject(SocialAuthService.ERR_LOGIN_PROVIDER_NOT_FOUND);\n }\n }\n });\n }\n /**\n * A method used to sign in a user with a specific `LoginProvider`.\n *\n * @param providerId Id with which the `LoginProvider` has been registered with the service\n * @param signInOptions Optional `LoginProvider` specific arguments\n * @returns A `Promise` that resolves to the authenticated user information\n */\n signIn(providerId, signInOptions) {\n return new Promise((resolve, reject) => {\n if (!this.initialized) {\n reject(SocialAuthService.ERR_NOT_INITIALIZED);\n } else {\n let providerObject = this.providers.get(providerId);\n if (providerObject) {\n providerObject.signIn(signInOptions).then(user => {\n this.setUser(user, providerId);\n resolve(user);\n }).catch(err => {\n reject(err);\n });\n } else {\n reject(SocialAuthService.ERR_LOGIN_PROVIDER_NOT_FOUND);\n }\n }\n });\n }\n /**\n * A method used to sign out the currently loggen in user.\n *\n * @param revoke Optional parameter to specify whether a hard sign out is to be performed\n * @returns A `Promise` that resolves if the operation is successful, rejects otherwise\n */\n signOut(revoke = false) {\n return new Promise((resolve, reject) => {\n if (!this.initialized) {\n reject(SocialAuthService.ERR_NOT_INITIALIZED);\n } else if (!this._user) {\n reject(SocialAuthService.ERR_NOT_LOGGED_IN);\n } else {\n let providerId = this._user.provider;\n let providerObject = this.providers.get(providerId);\n if (providerObject) {\n providerObject.signOut(revoke).then(() => {\n resolve();\n this.setUser(null);\n }).catch(err => {\n reject(err);\n });\n } else {\n reject(SocialAuthService.ERR_LOGIN_PROVIDER_NOT_FOUND);\n }\n }\n });\n }\n setUser(user, id) {\n if (user && id) user.provider = id;\n this._user = user;\n this._authState.next(user);\n }\n static {\n this.ɵfac = function SocialAuthService_Factory(t) {\n return new (t || SocialAuthService)(i0.ɵɵinject('SocialAuthServiceConfig'), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i0.Injector));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: SocialAuthService,\n factory: SocialAuthService.ɵfac,\n providedIn: 'root'\n });\n }\n }\n return SocialAuthService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * The main module of angularx-social-login library.\n */\nlet SocialLoginModule = /*#__PURE__*/(() => {\n class SocialLoginModule {\n static initialize(config) {\n return {\n ngModule: SocialLoginModule,\n providers: [SocialAuthService, {\n provide: 'SocialAuthServiceConfig',\n useValue: config\n }]\n };\n }\n constructor(parentModule) {\n if (parentModule) {\n throw new Error('SocialLoginModule is already loaded. Import it in the AppModule only');\n }\n }\n static {\n this.ɵfac = function SocialLoginModule_Factory(t) {\n return new (t || SocialLoginModule)(i0.ɵɵinject(SocialLoginModule, 12));\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SocialLoginModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [SocialAuthService],\n imports: [CommonModule]\n });\n }\n }\n return SocialLoginModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n// Simulates login / logout without actually requiring an Internet connection.\n//\n// Useful for certain development situations.\n//\n// For example, if you want to simulate the greatest football referee England has ever produced:\n//\n// const dummyUser: SocialUser = {\n// id: '0123456789',\n// name: 'Howard Webb',\n// email: 'howard@webb.com',\n// firstName: 'Howard',\n// lastName: 'Webb',\n// authToken: 'dummyAuthToken',\n// photoUrl: 'https://en.wikipedia.org/wiki/Howard_Webb#/media/File:Howard_Webb_march11.jpg',\n// provider: 'DUMMY',\n// idToken: 'dummyIdToken',\n// authorizationCode: 'dummyAuthCode'\n// };\n//\n// let config = new AuthServiceConfig([\n// { ... },\n// {\n// id: DummyLoginProvider.PROVIDER_ID,\n// provider: new DummyLoginProvider(dummyUser) // Pass your user into the constructor\n// },\n// { ... }\n// ]);\nlet DummyLoginProvider = /*#__PURE__*/(() => {\n class DummyLoginProvider extends BaseLoginProvider {\n static {\n this.PROVIDER_ID = 'DUMMY';\n }\n static {\n this.DEFAULT_USER = {\n id: '1234567890',\n name: 'Mickey Mouse',\n email: 'mickey@mouse.com',\n firstName: 'Mickey',\n lastName: 'Mouse',\n authToken: 'dummyAuthToken',\n photoUrl: 'https://en.wikipedia.org/wiki/File:Mickey_Mouse.png',\n provider: 'DUMMY',\n idToken: 'dummyIdToken',\n authorizationCode: 'dummyAuthCode',\n response: {}\n };\n }\n constructor(dummy) {\n super();\n if (dummy) {\n this.dummy = dummy;\n } else {\n this.dummy = DummyLoginProvider.DEFAULT_USER;\n }\n // Start not logged in\n this.loggedIn = false;\n }\n getLoginStatus() {\n return new Promise((resolve, reject) => {\n if (this.loggedIn) {\n resolve(this.dummy);\n } else {\n reject('No user is currently logged in.');\n }\n });\n }\n initialize() {\n return new Promise((resolve, reject) => {\n resolve();\n });\n }\n signIn() {\n return new Promise((resolve, reject) => {\n this.loggedIn = true;\n resolve(this.dummy);\n });\n }\n signOut(revoke) {\n return new Promise((resolve, reject) => {\n this.loggedIn = false;\n resolve();\n });\n }\n }\n return DummyLoginProvider;\n})();\nlet FacebookLoginProvider = /*#__PURE__*/(() => {\n class FacebookLoginProvider extends BaseLoginProvider {\n static {\n this.PROVIDER_ID = 'FACEBOOK';\n }\n constructor(clientId, initOptions = {}) {\n super();\n this.clientId = clientId;\n this.requestOptions = {\n scope: 'email,public_profile',\n locale: 'en_US',\n fields: 'name,email,picture,first_name,last_name',\n version: 'v10.0'\n };\n this.requestOptions = {\n ...this.requestOptions,\n ...initOptions\n };\n }\n initialize() {\n return new Promise((resolve, reject) => {\n try {\n this.loadScript(FacebookLoginProvider.PROVIDER_ID, `//connect.facebook.net/${this.requestOptions.locale}/sdk.js`, () => {\n FB.init({\n appId: this.clientId,\n autoLogAppEvents: true,\n cookie: true,\n xfbml: true,\n version: this.requestOptions.version\n });\n resolve();\n });\n } catch (err) {\n reject(err);\n }\n });\n }\n getLoginStatus() {\n return new Promise((resolve, reject) => {\n FB.getLoginStatus(response => {\n if (response.status === 'connected') {\n let authResponse = response.authResponse;\n FB.api(`/me?fields=${this.requestOptions.fields}`, fbUser => {\n let user = new SocialUser();\n user.id = fbUser.id;\n user.name = fbUser.name;\n user.email = fbUser.email;\n user.photoUrl = 'https://graph.facebook.com/' + fbUser.id + '/picture?type=normal&access_token=' + authResponse.accessToken;\n user.firstName = fbUser.first_name;\n user.lastName = fbUser.last_name;\n user.authToken = authResponse.accessToken;\n user.response = fbUser;\n resolve(user);\n });\n } else {\n reject(`No user is currently logged in with ${FacebookLoginProvider.PROVIDER_ID}`);\n }\n });\n });\n }\n signIn(signInOptions) {\n const options = {\n ...this.requestOptions,\n ...signInOptions\n };\n return new Promise((resolve, reject) => {\n FB.login(response => {\n if (response.authResponse) {\n let authResponse = response.authResponse;\n FB.api(`/me?fields=${options.fields}`, fbUser => {\n let user = new SocialUser();\n user.id = fbUser.id;\n user.name = fbUser.name;\n user.email = fbUser.email;\n user.photoUrl = 'https://graph.facebook.com/' + fbUser.id + '/picture?type=normal';\n user.firstName = fbUser.first_name;\n user.lastName = fbUser.last_name;\n user.authToken = authResponse.accessToken;\n user.response = fbUser;\n resolve(user);\n });\n } else {\n reject('User cancelled login or did not fully authorize.');\n }\n }, options);\n });\n }\n signOut() {\n return new Promise((resolve, reject) => {\n FB.logout(response => {\n resolve();\n });\n });\n }\n }\n return FacebookLoginProvider;\n})();\nlet AmazonLoginProvider = /*#__PURE__*/(() => {\n class AmazonLoginProvider extends BaseLoginProvider {\n static {\n this.PROVIDER_ID = 'AMAZON';\n }\n constructor(clientId, initOptions = {\n scope: 'profile',\n scope_data: {\n profile: {\n essential: false\n }\n },\n redirect_uri: location.origin\n }) {\n super();\n this.clientId = clientId;\n this.initOptions = initOptions;\n }\n initialize() {\n let amazonRoot = null;\n if (document) {\n amazonRoot = document.createElement('div');\n amazonRoot.id = 'amazon-root';\n document.body.appendChild(amazonRoot);\n }\n window.onAmazonLoginReady = () => {\n amazon.Login.setClientId(this.clientId);\n };\n return new Promise((resolve, reject) => {\n try {\n this.loadScript('amazon-login-sdk', 'https://assets.loginwithamazon.com/sdk/na/login1.js', () => {\n resolve();\n }, amazonRoot);\n } catch (err) {\n reject(err);\n }\n });\n }\n getLoginStatus() {\n return new Promise((resolve, reject) => {\n let token = this.retrieveToken();\n if (token) {\n amazon.Login.retrieveProfile(token, response => {\n if (response.success) {\n let user = new SocialUser();\n user.id = response.profile.CustomerId;\n user.name = response.profile.Name;\n user.email = response.profile.PrimaryEmail;\n user.response = response.profile;\n resolve(user);\n } else {\n reject(response.error);\n }\n });\n } else {\n reject(`No user is currently logged in with ${AmazonLoginProvider.PROVIDER_ID}`);\n }\n });\n }\n signIn(signInOptions) {\n const options = {\n ...this.initOptions,\n ...signInOptions\n };\n return new Promise((resolve, reject) => {\n amazon.Login.authorize(options, authResponse => {\n if (authResponse.error) {\n reject(authResponse.error);\n } else {\n amazon.Login.retrieveProfile(authResponse.access_token, response => {\n let user = new SocialUser();\n user.id = response.profile.CustomerId;\n user.name = response.profile.Name;\n user.email = response.profile.PrimaryEmail;\n user.authToken = authResponse.access_token;\n user.response = response.profile;\n this.persistToken(authResponse.access_token);\n resolve(user);\n });\n }\n });\n });\n }\n signOut() {\n return new Promise((resolve, reject) => {\n try {\n amazon.Login.logout();\n this.clearToken();\n resolve();\n } catch (err) {\n reject(err.message);\n }\n });\n }\n persistToken(token) {\n localStorage.setItem(`${AmazonLoginProvider.PROVIDER_ID}_token`, token);\n }\n retrieveToken() {\n return localStorage.getItem(`${AmazonLoginProvider.PROVIDER_ID}_token`);\n }\n clearToken() {\n localStorage.removeItem(`${AmazonLoginProvider.PROVIDER_ID}_token`);\n }\n }\n return AmazonLoginProvider;\n})();\nconst permissionTypes = {\n notify: 1,\n friends: 2,\n photos: 4,\n audio: 8,\n video: 16,\n offers: 32,\n questions: 64,\n pages: 128,\n links: 256,\n status: 1024,\n notes: 2048,\n messages: 4096,\n wall: 8192,\n ads: 32768,\n offline: 65536,\n docs: 131072,\n groups: 262144,\n notifications: 524288,\n stats: 1048576,\n email: 4194304,\n market: 134217728\n};\nlet VKLoginProvider = /*#__PURE__*/(() => {\n class VKLoginProvider extends BaseLoginProvider {\n constructor(clientId, initOptions = {\n fields: 'photo_max,contacts',\n version: '5.131'\n }) {\n super();\n this.clientId = clientId;\n this.initOptions = initOptions;\n this.VK_API_URL = '//vk.com/js/api/openapi.js';\n this.VK_API_GET_USER = 'users.get';\n }\n static {\n this.PROVIDER_ID = 'VK';\n }\n initialize() {\n return new Promise((resolve, reject) => {\n try {\n this.loadScript(VKLoginProvider.PROVIDER_ID, this.VK_API_URL, () => {\n VK.init({\n apiId: this.clientId\n });\n resolve();\n });\n } catch (err) {\n reject(err);\n }\n });\n }\n getLoginStatus() {\n return new Promise(resolve => this.getLoginStatusInternal(resolve));\n }\n signIn(permissions) {\n if (permissions?.includes('offers')) {\n console.warn('The \"offers\" permission is outdated.');\n }\n if (permissions?.includes('questions')) {\n console.warn('The \"questions\" permission is outdated.');\n }\n if (permissions?.includes('messages')) {\n console.warn('The \"messages\" permission is unavailable for non-standalone applications.');\n }\n const scope = permissions?.reduce((accumulator, current) => {\n const index = Object.keys(permissionTypes).findIndex(pt => pt === current);\n return index > -1 ? accumulator + permissionTypes[current] : 0;\n }, 0);\n return new Promise(resolve => this.signInInternal(resolve, scope));\n }\n signOut() {\n return new Promise(resolve => {\n VK.Auth.logout(() => {\n resolve();\n });\n });\n }\n signInInternal(resolve, scope) {\n VK.Auth.login(loginResponse => {\n if (loginResponse.status === 'connected') {\n this.getUser(loginResponse.session.mid, loginResponse.session.sid, resolve);\n }\n }, scope);\n }\n getUser(userId, token, resolve) {\n VK.Api.call(this.VK_API_GET_USER, {\n user_id: userId,\n fields: this.initOptions.fields,\n v: this.initOptions.version\n }, userResponse => {\n resolve(this.createUser(Object.assign({}, {\n token\n }, userResponse.response[0])));\n });\n }\n getLoginStatusInternal(resolve) {\n VK.Auth.getLoginStatus(loginResponse => {\n if (loginResponse.status === 'connected') {\n this.getUser(loginResponse.session.mid, loginResponse.session.sid, resolve);\n }\n });\n }\n createUser(response) {\n const user = new SocialUser();\n user.id = response.id;\n user.name = `${response.first_name} ${response.last_name}`;\n user.photoUrl = response.photo_max;\n user.authToken = response.token;\n return user;\n }\n }\n return VKLoginProvider;\n})();\n/**\n * Protocol modes supported by MSAL.\n */\nvar ProtocolMode = /*#__PURE__*/function (ProtocolMode) {\n ProtocolMode[\"AAD\"] = \"AAD\";\n ProtocolMode[\"OIDC\"] = \"OIDC\";\n return ProtocolMode;\n}(ProtocolMode || {});\nconst COMMON_AUTHORITY = 'https://login.microsoftonline.com/common/';\n/**\n * Microsoft Authentication using MSAL v2: https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser\n */\nlet MicrosoftLoginProvider = /*#__PURE__*/(() => {\n class MicrosoftLoginProvider extends BaseLoginProvider {\n static {\n this.PROVIDER_ID = 'MICROSOFT';\n }\n constructor(clientId, initOptions) {\n super();\n this.clientId = clientId;\n this.initOptions = {\n authority: COMMON_AUTHORITY,\n scopes: ['openid', 'email', 'profile', 'User.Read'],\n knownAuthorities: [],\n protocolMode: ProtocolMode.AAD,\n clientCapabilities: [],\n cacheLocation: 'sessionStorage'\n };\n this.initOptions = {\n ...this.initOptions,\n ...initOptions\n };\n }\n initialize() {\n return new Promise((resolve, reject) => {\n this.loadScript(MicrosoftLoginProvider.PROVIDER_ID, 'https://alcdn.msauth.net/browser/2.13.1/js/msal-browser.min.js', () => {\n try {\n const config = {\n auth: {\n clientId: this.clientId,\n redirectUri: this.initOptions.redirect_uri ?? location.origin,\n authority: this.initOptions.authority,\n knownAuthorities: this.initOptions.knownAuthorities,\n protocolMode: this.initOptions.protocolMode,\n clientCapabilities: this.initOptions.clientCapabilities\n },\n cache: !this.initOptions.cacheLocation ? null : {\n cacheLocation: this.initOptions.cacheLocation\n }\n };\n this._instance = new msal.PublicClientApplication(config);\n resolve();\n } catch (e) {\n reject(e);\n }\n });\n });\n }\n getSocialUser(loginResponse) {\n return new Promise((resolve, reject) => {\n //After login, use Microsoft Graph API to get user info\n let meRequest = new XMLHttpRequest();\n meRequest.onreadystatechange = () => {\n if (meRequest.readyState == 4) {\n try {\n if (meRequest.status == 200) {\n let userInfo = JSON.parse(meRequest.responseText);\n let user = new SocialUser();\n user.provider = MicrosoftLoginProvider.PROVIDER_ID;\n user.id = loginResponse.idToken;\n user.authToken = loginResponse.accessToken;\n user.name = loginResponse.idTokenClaims.name;\n user.email = loginResponse.account.username;\n user.idToken = loginResponse.idToken;\n user.response = loginResponse;\n user.firstName = userInfo.givenName;\n user.lastName = userInfo.surname;\n resolve(user);\n } else {\n reject(`Error retrieving user info: ${meRequest.status}`);\n }\n } catch (err) {\n reject(err);\n }\n }\n };\n //Microsoft Graph ME Endpoint: https://docs.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http\n meRequest.open('GET', 'https://graph.microsoft.com/v1.0/me');\n meRequest.setRequestHeader('Authorization', `Bearer ${loginResponse.accessToken}`);\n try {\n meRequest.send();\n } catch (err) {\n reject(err);\n }\n });\n }\n async getLoginStatus() {\n const accounts = this._instance.getAllAccounts();\n if (accounts?.length > 0) {\n const loginResponse = await this._instance.ssoSilent({\n scopes: this.initOptions.scopes,\n loginHint: accounts[0].username\n });\n return await this.getSocialUser(loginResponse);\n } else {\n throw `No user is currently logged in with ${MicrosoftLoginProvider.PROVIDER_ID}`;\n }\n }\n async signIn() {\n const loginResponse = await this._instance.loginPopup({\n scopes: this.initOptions.scopes,\n prompt: this.initOptions.prompt\n });\n return await this.getSocialUser(loginResponse);\n }\n async signOut(revoke) {\n const accounts = this._instance.getAllAccounts();\n if (accounts?.length > 0) {\n await this._instance.logoutPopup({\n account: accounts[0],\n postLogoutRedirectUri: this.initOptions.logout_redirect_uri ?? this.initOptions.redirect_uri ?? location.href\n });\n }\n }\n }\n return MicrosoftLoginProvider;\n})();\nlet GoogleSigninButtonDirective = /*#__PURE__*/(() => {\n class GoogleSigninButtonDirective {\n constructor(el, socialAuthService) {\n this.type = 'icon';\n this.size = 'medium';\n this.text = 'signin_with';\n this.shape = 'rectangular';\n this.theme = 'outline';\n this.logo_alignment = 'left';\n this.width = 0;\n this.locale = '';\n socialAuthService.initState.pipe(take(1)).subscribe(() => {\n Promise.resolve(this.width).then(value => {\n if (value > 400 || value < 200 && value != 0) {\n Promise.reject('Please note .. max-width 400 , min-width 200 ' + '(https://developers.google.com/identity/gsi/web/tools/configurator)');\n } else {\n google.accounts.id.renderButton(el.nativeElement, {\n type: this.type,\n size: this.size,\n text: this.text,\n width: this.width,\n shape: this.shape,\n theme: this.theme,\n logo_alignment: this.logo_alignment,\n locale: this.locale\n });\n }\n });\n });\n }\n static {\n this.ɵfac = function GoogleSigninButtonDirective_Factory(t) {\n return new (t || GoogleSigninButtonDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(SocialAuthService));\n };\n }\n static {\n this.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: GoogleSigninButtonDirective,\n selectors: [[\"asl-google-signin-button\"]],\n inputs: {\n type: \"type\",\n size: \"size\",\n text: \"text\",\n shape: \"shape\",\n theme: \"theme\",\n logo_alignment: \"logo_alignment\",\n width: \"width\",\n locale: \"locale\"\n }\n });\n }\n }\n return GoogleSigninButtonDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet GoogleSigninButtonModule = /*#__PURE__*/(() => {\n class GoogleSigninButtonModule {\n static {\n this.ɵfac = function GoogleSigninButtonModule_Factory(t) {\n return new (t || GoogleSigninButtonModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: GoogleSigninButtonModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n }\n }\n return GoogleSigninButtonModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AmazonLoginProvider, BaseLoginProvider, DummyLoginProvider, FacebookLoginProvider, GoogleLoginProvider, GoogleSigninButtonDirective, GoogleSigninButtonModule, MicrosoftLoginProvider, SocialAuthService, SocialLoginModule, SocialUser, VKLoginProvider };\n","import {map, catchError, switchMap, tap, shareReplay, take, distinctUntilChanged, filter, mergeMap, finalize, switchMapTo} from 'rxjs/operators';\nimport {Observable, throwError, BehaviorSubject, Subject, merge, of, EMPTY, combineLatest, startWith} from 'rxjs';\nimport {HttpService} from 'src/app/services/http.service';\nimport {Router, NavigationStart, ActivatedRoute} from '@angular/router';\nimport {SocialAuthService} from '@abacritt/angularx-social-login';\nimport {RoutingService} from '../routing.service';\nimport {CookieService} from 'ngx-cookie-service';\nimport {Injectable} from '@angular/core';\n\nimport {AgentDetailsResponse, ClientDetailsResponse} from 'src/app/account/my-account/model/agentDetailsResponse.model';\nimport {CompanyProfileLpRequest} from 'src/app/lp/lp-profile/company-profile-lp/companyProfileLpRequest.model';\nimport {OrganizationDetailsReqRes} from 'src/app/account/my-account/model/OrganizationDetailsReqRes.model';\nimport {ClientPresentationState} from 'src/app/account/my-account/model/ui-state/ClientPresentationState';\nimport {OrganizationInvitationReadDto} from '../../account/register/OrganizationInvitationReadDto.model';\nimport {VerifyPhoneReqRes} from 'src/app/account/my-account/model/VerifyPhoneReqRes.model';\nimport {PersonalDetailsReqRes} from 'src/app/account/models/personalDetailsReqRes.model';\nimport {OnboardingLpRequest} from 'src/app/lp/onboarding-lp/onboardingLpRequest.model';\nimport {UserPermissionDto} from 'src/app/permission/classes/userPermissionDto.models';\nimport {TwoFactorModel} from 'src/app/account/my-account/model/TwoFactorModel.model';\nimport {InvitedUserUpdateDto} from '../../account/register/InvitedUserUpdateDto';\nimport {RegisterRequest} from 'src/app/account/register/register-request.model';\nimport FeatureFlags from 'src/app/account/my-account/model/FeatureFlags.enum';\nimport {OnboardingRequest} from 'src/app/onboarding/OnboardingRequest.model';\nimport {AppSettingsService, SubdomainEnum} from '../app-settings.service';\nimport {LoginRequest} from 'src/app/account/login/login-request.model';\nimport RoleFlags from '../../account/my-account/model/RoleFlags.enum';\nimport {LoggerService} from 'src/app/shared/errors/logger.service';\nimport {LoginResponse} from 'src/app/models/LoginResponse.model';\nimport {UserType} from 'src/app/account/login/UserType.enum';\nimport {AppType} from 'src/app/shared/enums/AppType.enum';\nimport {StorageService} from '../storage.service';\nimport {ForgotPasswordDto} from 'src/app/account/forgot-password/forget-password.model';\nimport {OrganizationReferrerResponse, OrganizationReferrerRequest} from 'src/app/shared/models/organization-referrer-request.model';\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class UserService {\n private AUTH_CLIENT_ID = 'covercyNgTerra';\n private LP_CLIENT_ID = 'covercyNgLpApp';\n private MAINTENANCE_URL = this.routingService.maintenancePage;\n\n public readonly ACCOUNT_ENDPOINT = 'account';\n private ONBOARDING_ENDPOINT = 'onboarding';\n\n private SIGNUP_GP_ENDPOINT = this.ACCOUNT_ENDPOINT + '/signup/gp';\n private SIGNUP_LP_ENDPOINT = this.ACCOUNT_ENDPOINT + '/signup';\n\n private LOGIN_GP_ENDPOINT = this.ACCOUNT_ENDPOINT + '/login/gp';\n private LOGIN_LP_ENDPOINT = this.ACCOUNT_ENDPOINT + '/login';\n\n private LOGOUT_ENDPOINT = this.ACCOUNT_ENDPOINT + '/logout';\n private FORGOT_PASSWORD_ENDPOINT = this.ACCOUNT_ENDPOINT + '/forgotPassword';\n private RESET_PASSWORD_ENDPOINT = this.ACCOUNT_ENDPOINT + '/resetPassword';\n private GET_CURRENT_USER_ENDPOINT = this.ACCOUNT_ENDPOINT + '/currentUser';\n\n private CURRENT_ORGANIZATION_MEMBERS_ENDPOINT = this.ACCOUNT_ENDPOINT + '/organization-members';\n\n private COMPANY_PROFILE_GP_ENDPOINT = this.ACCOUNT_ENDPOINT + '/companyProfile/gp';\n private COMPANY_PROFILE_LP_ENDPOINT = this.ACCOUNT_ENDPOINT + '/companyProfile/lp';\n\n private ONBOARDING_LP_ENDPOINT = this.ACCOUNT_ENDPOINT + '/lp/onboarding';\n\n private PERSONAL_DETAILS_AGENT_ENDPOINT = this.ACCOUNT_ENDPOINT + '/details/gp';\n private PERSONAL_DETAILS_CLIENT_ENDPOINT = this.ACCOUNT_ENDPOINT + '/details/lp';\n\n private RESEND_CONFIRMATION_ENDPOINT = this.ACCOUNT_ENDPOINT + '/resendConfirmationEmail';\n private CONFIRM_EMAIL_ENDPOINT = this.ACCOUNT_ENDPOINT + '/confirmEmail';\n private REJECT_EMAIL_ENDPOINT = this.ACCOUNT_ENDPOINT + '/rejectEmail';\n\n private EXTERNAL_REGISTER = this.ACCOUNT_ENDPOINT + '/external-register';\n private EXTERNAL_OBTAIN_ACCESSTOKEN = this.ACCOUNT_ENDPOINT + '/obtain-local-accesstoken';\n\n private CROSS_APP_LOGIN = this.ACCOUNT_ENDPOINT + '/cross-app-login';\n\n private SEND_SMS_VERIFICATION = this.ACCOUNT_ENDPOINT + '/sms/send-verification';\n private SMS_VERIFY = this.ACCOUNT_ENDPOINT + '/sms/verify';\n private RESEND_SMS_VERIFICATION = this.ACCOUNT_ENDPOINT + '/sms/resend';\n\n private TWO_FACTOR_PING = this.ACCOUNT_ENDPOINT + '/2fa/ping';\n private TWO_FACTOR_ENABLE = this.ACCOUNT_ENDPOINT + '/2fa/enable';\n private TWO_FACTOR_DISABLE = this.ACCOUNT_ENDPOINT + '/2fa/disable';\n private TWO_FACTOR_VERIFY = this.ACCOUNT_ENDPOINT + '/2fa/verify';\n private TWO_FACTOR_CODE = this.ACCOUNT_ENDPOINT + '/2fa/code';\n private TWO_FACTOR_CODE_RESEND = this.ACCOUNT_ENDPOINT + '/2fa/code-resend';\n\n private PENDING_PAYMENT_REQUESTS = 'paymentRequest';\n private UPDATE_TERMS_AND_CONDITIONS_ENDPOINT = this.ACCOUNT_ENDPOINT + '/update-terms-and-conditions';\n private ADD_TEAM_MEMBER_ENDPOINT = this.ACCOUNT_ENDPOINT + '/add-team-member';\n private INVITATION_INFO_ENDPOINT = this.ACCOUNT_ENDPOINT + '/invite';\n private ADD_LP_FOR_IMPERSONATION_ENDPOINT = this.ACCOUNT_ENDPOINT + '/add-lp-for-impersonation';\n\n private REFERER_LOGO_ENDPOINT = this.ACCOUNT_ENDPOINT + '/referrer-logo';\n\n private authHeaders: Headers;\n\n // Used to compare to the clientDetails in local storage, to tell if the user is logged in on another tab as a different user.\n private clientDetails: AgentDetailsResponse;\n\n isLoggedIn$ = new BehaviorSubject(this.isLoggedIn());\n\n // private lp_referrerFromSession$ = new BehaviorSubject(this.getReferrerFromSession(this.appSettingsService.lpReferrerCookieKey));\n private lp_referrerFromCookie$ = new BehaviorSubject(this.getReferrerFromCookie(this.appSettingsService.lpReferrerCookieKey));\n private lp_referrerFromQuery$: Observable = this.activatedRoute.queryParamMap.pipe(\n map(queryParams => queryParams?.get(this.appSettingsService.lpReferrerCookieKey))\n );\n\n private gp_referrerFromSession$ = new BehaviorSubject(this.getReferrerFromSession(this.appSettingsService.gpReferrerCookieKey));\n public gp_referrerFromCookie$ = new BehaviorSubject(this.getReferrerFromCookie(this.appSettingsService.gpReferrerCookieKey));\n public gp_referrerFromQuery$: Observable = this.activatedRoute.queryParamMap.pipe(\n map(queryParams => queryParams?.get(this.appSettingsService.gpReferrerCookieKey))\n );\n\n lp_referrerLogo$: Observable = combineLatest([this.lp_referrerFromQuery$.pipe(startWith(null)), this.lp_referrerFromCookie$])\n .pipe(\n switchMap(([referrerFromQuery, referrerFromCookie]) => {\n if (referrerFromQuery) {\n this.storageService.setGpReferralKeyDataInStorage(referrerFromQuery);\n return this.getLogoByReferrer(referrerFromQuery)\n .pipe(tap(data => {\n this.setReferrerInCookie(this.appSettingsService.lpReferrerCookieKey, data);\n }));\n }\n // else if (referrerFromSession){\n // return (referrerFromSession && referrerFromSession?.showLogo) ? of(referrerFromSession) : of(null);\n // }\n else if (referrerFromCookie) {\n return (referrerFromCookie && referrerFromCookie?.showLogo) ? of(referrerFromCookie) : of(null);\n } else {\n return of(null);\n }\n }),\n shareReplay(1));\n\n gp_referrerLogo$: Observable = combineLatest([this.gp_referrerFromQuery$.pipe(startWith(null)), this.gp_referrerFromCookie$])\n .pipe(\n switchMap(([referrerFromQuery, referrerFromCookie]) => {\n if (referrerFromQuery) {\n return this.getLogoByReferrer(referrerFromQuery)\n .pipe(\n tap(data => {\n this.setReferrerInCookie(this.appSettingsService.gpReferrerCookieKey, data);\n }));\n }\n // else if (referrerFromSession){\n // return (referrerFromSession && referrerFromSession?.showLogo) ? of(referrerFromSession) : of(null);\n // }\n else if (referrerFromCookie) {\n return (referrerFromCookie && referrerFromCookie?.showLogo) ? of(referrerFromCookie) : of(null);\n } else {\n return of(null);\n }\n }),\n shareReplay(1));\n\n refreshedClientDetails$ = new BehaviorSubject(null);\n\n accountDetails$: Observable =\n this.isLoggedIn$.pipe(\n switchMap(isLoggedIn => {\n // In case the user is not logged in, we don't want to attempt getting the clientDetails, because it will fail (there is no client)\n if (!isLoggedIn) {\n return EMPTY;\n }\n // Otherwise, get the client details either from the refreshed client details object, or from the server.\n return this.refreshedClientDetails$;\n }\n ),\n switchMap(refreshedClientDetails => refreshedClientDetails ? of(refreshedClientDetails) : this.getClientDetailsFromServer()),\n shareReplay(1)\n );\n\n private supportPinFromServer$ = this.http.getTyped(this.ACCOUNT_ENDPOINT + '/support-pin').pipe(shareReplay(1));\n private supportPinUpdated$ = new Subject();\n supportPin$ = merge(this.supportPinUpdated$, this.supportPinFromServer$).pipe(\n distinctUntilChanged(),\n shareReplay(1));\n\n private isAnonymousUntilNextNavigationPrivate = false;\n\n get isAnonymousUntilNextNavigation() {\n return this.isAnonymousUntilNextNavigationPrivate;\n }\n\n userHasFeatureFlag(featureToCheck: FeatureFlags): Observable {\n return this.accountDetails$.pipe(\n map(accountDetails => FeatureFlags.isOn(accountDetails.featureFlags, featureToCheck)),\n shareReplay(1));\n }\n\n userHasRoleFlag(roleToCheck: RoleFlags): Observable {\n return this.accountDetails$.pipe(\n map(accountDetails => RoleFlags.isOn(accountDetails.roleFlags, roleToCheck)),\n shareReplay(1)\n );\n }\n\n constructor(\n private http: HttpService,\n private routingService: RoutingService,\n private router: Router,\n private activatedRoute: ActivatedRoute,\n private cookieService: CookieService,\n private appSettingsService: AppSettingsService,\n private storageService: StorageService,\n private socialAuthService: SocialAuthService,\n private logger: LoggerService\n ) {\n this.authHeaders = new Headers();\n this.authHeaders.append('Accept', 'application/json');\n this.authHeaders.append('Content-Type', 'application/x-www-form-urlencoded');\n\n // user to validate user details against local storage (for logging in another tab for example)\n const clientDetailsFromStorage = this.getClientDetailsFromLocalStorage();\n\n if (clientDetailsFromStorage && !this.clientDetails) {\n this.getClientDetails().subscribe(response => {\n this.clientDetails = response;\n });\n }\n }\n\n /**\n * When this flag is set, any failed token refresh attempt will not redirect to the login page.\n */\n public setAnonymousUntilNextNavigation() {\n this.isAnonymousUntilNextNavigationPrivate = true;\n // After the first navigation to another page, stop being anonymous.\n this.router.events.pipe(\n filter(evt => evt instanceof NavigationStart),\n take(1))\n .subscribe(evt => {\n this.isAnonymousUntilNextNavigationPrivate = false;\n });\n }\n\n private getClientDetailsFromServer(): Observable {\n return this.http.getTyped(this.ACCOUNT_ENDPOINT + '/details/gp').pipe(\n map(response => {\n // If there is a UI state saved for this client,\n // parse it from a string to a ClientPresentationState object, and replace this property in th the account details\n if (response.clientPresentationState) {\n response.clientPresentationState = ClientPresentationState.fromJson(JSON.parse(response.clientPresentationState.toString()));\n } else {\n response.clientPresentationState = new ClientPresentationState();\n }\n\n this.storageService.setCredentialsData(JSON.stringify(response));\n return response;\n }),\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n private getCurrentUser() {\n return this.http.getTyped(this.GET_CURRENT_USER_ENDPOINT).pipe(\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n getClientDetailsFromLocalStorage(): AgentDetailsResponse {\n const credentialsData = this.storageService.getCredentialsData();\n if (credentialsData && credentialsData.firstName) {\n return credentialsData as AgentDetailsResponse;\n }\n return null;\n }\n\n getClientDetails(forceFromServer = false): Observable {\n const clientDetails = this.getClientDetailsFromLocalStorage();\n\n if (!forceFromServer && clientDetails && clientDetails.firstName) {\n return of(clientDetails);\n } else {\n return this.getCurrentUser().pipe(\n map((response: any) => {\n\n this.storageService.setCredentialsData(JSON.stringify(response));\n return response;\n }),\n catchError(err => {\n return throwError(err);\n })\n );\n }\n }\n\n saveSupportPIN(pin: string): Observable {\n const url = this.ACCOUNT_ENDPOINT + '/support-pin';\n return this.http.put(url, pin).pipe(tap(() => {\n this.supportPinUpdated$.next(pin);\n }));\n }\n\n changePassword(oldPassword: string, password: string, confirmPassword: string): Observable {\n const url = this.ACCOUNT_ENDPOINT + '/changePassword';\n\n const model = {\n oldPassword,\n password,\n confirmPassword\n };\n\n return this.http.post(url, model);\n }\n\n changeEmail(email: string, password: string): Observable {\n const url = this.ACCOUNT_ENDPOINT + '/changeEmail';\n\n const model = {\n email,\n password\n };\n return this.http.post(url, model).pipe(tap(response => {\n\n this.storageService.setAuthorizationData(JSON.stringify(response));\n this.refreshedClientDetails$.next(null);\n }));\n }\n\n register(signupModel: RegisterRequest): Observable {\n const registerEndpoint = signupModel.appType === AppType.GpApp ? this.SIGNUP_GP_ENDPOINT : this.SIGNUP_LP_ENDPOINT;\n return this.http.postTyped(registerEndpoint, signupModel)\n .pipe(\n map(response => {\n if (response.token) {\n this.storageService.setAuthorizationData(JSON.stringify(response.token));\n this.storageService.setCredentialsData(JSON.stringify(response.clientDetails));\n this.isLoggedIn$.next(true);\n }\n return response;\n }),\n tap(() => {\n this.refreshedClientDetails$.next(null);\n }),\n catchError(err => {\n this.storageService.clear();\n\n if (err.status === 503) {\n this.router.navigateByUrl(this.MAINTENANCE_URL);\n }\n return throwError(err);\n })\n );\n }\n\n registerLp(signupModel: RegisterRequest, doNotLogin: boolean = false): Observable {\n return this.http.postTyped(this.SIGNUP_LP_ENDPOINT, signupModel)\n .pipe(\n map(response => {\n if (response.token) {\n this.storageService.setAuthorizationData(JSON.stringify(response.token));\n this.storageService.setCredentialsData(JSON.stringify(response.clientDetails));\n this.isLoggedIn$.next(true);\n }\n return response;\n }),\n tap(() => {\n this.refreshedClientDetails$.next(null);\n }),\n catchError(err => {\n this.storageService.clear();\n\n if (err.status === 503) {\n this.router.navigateByUrl(this.MAINTENANCE_URL);\n }\n return throwError(err);\n })\n );\n }\n\n logout() {\n this.isLoggedIn$.next(false);\n return this.ssoLogout()\n .pipe(\n mergeMap(_ => {\n return this.http.post(this.LOGOUT_ENDPOINT, null);\n }),\n catchError(err => {\n this.logger.error(`Error in UserService => Logout()`, err);\n return throwError(err);\n }),\n finalize(() => {\n this.storageService.clear();\n this.routingService.removeReturnUrlFromCookie();\n })\n );\n }\n\n login(loginRequest: LoginRequest): Observable {\n const loginEndpoint = loginRequest.appType === AppType.GpApp ? this.LOGIN_GP_ENDPOINT : this.LOGIN_LP_ENDPOINT;\n return this.http.postTyped(loginEndpoint, loginRequest).pipe(\n map(response => {\n\n // reset all previous data of local storage\n // this.storageService.clear();\n if (response.token) {\n this.storageService.setAuthorizationData(JSON.stringify(response.token));\n this.storageService.setCredentialsData(JSON.stringify(response.clientDetails));\n this.isLoggedIn$.next(true);\n }\n return response;\n }),\n // tap(() => this.isLoggedIn$.next(true)),\n tap(() => {\n this.refreshedClientDetails$.next(null);\n }),\n catchError(err => {\n\n this.storageService.clear();\n\n if (err.status === 503) {\n this.router.navigateByUrl(this.MAINTENANCE_URL);\n }\n return throwError(err);\n })\n );\n }\n\n isTryingToAccessOtherUsersData() {\n const storageUserDetails = this.getClientDetailsFromLocalStorage();\n if (storageUserDetails && this.clientDetails && storageUserDetails.id !== this.clientDetails.id) {\n return true;\n }\n return false;\n }\n\n private ssoLogout() {\n try {\n return this.socialAuthService.initState.pipe(\n filter(isReady => isReady),\n take(1),\n switchMapTo(\n of(this.socialAuthService.signOut()\n .catch(error => {\n this.logger.warning('SSO Logout error', error);\n })\n ))\n );\n } catch (err) {\n this.logger.error(`Exception in UserService => ssoLogout()`, err);\n return of(null);\n }\n }\n\n private validateLocalStorageCredentials() {\n const result = this.storageService.getAuthorizationData();\n\n if (result === null) {\n return false;\n }\n return true;\n }\n\n isLoggedIn() {\n return this.validateLocalStorageCredentials();\n }\n\n public getReferrerFromCookie(referrerKey): OrganizationReferrerResponse {\n\n try {\n var value = this.cookieService.get(referrerKey);\n\n if (value) {\n var referrerData = JSON.parse(value) as OrganizationReferrerResponse;\n return referrerData;\n }\n\n return null;\n } catch (error) {\n console.log('could not parse obj from cookie. the value is either null or not properly constructed.');\n return null;\n }\n\n }\n\n public setReferrerInCookie(referrerKey: string, referrerValue: OrganizationReferrerResponse) {\n\n if (!referrerKey || !referrerValue) return;\n\n const date = new Date();\n\n date.setDate(date.getFullYear() + 1);\n\n this.cookieService.delete(referrerKey, '/', location.hostname);\n\n if (referrerValue.showLogo && !!referrerValue.logoUrl) {\n this.cookieService.set(referrerKey, JSON.stringify(referrerValue), date, '/', location.hostname);\n }\n\n }\n\n public getReferrerFromSession(referrerKey) {\n\n try {\n var value = sessionStorage.getItem(referrerKey);\n\n if (value) {\n var referrerData = JSON.parse(value) as OrganizationReferrerResponse;\n return referrerData;\n }\n\n return null;\n } catch (error) {\n console.log('could not parse obj from cookie. the value is either null or not properly constructed.');\n return null;\n }\n\n\n }\n\n public setReferrerInSession(referrerKey: string, referrerValue: OrganizationReferrerResponse) {\n\n\n if (!referrerKey || !referrerValue) return;\n\n const date = new Date();\n\n date.setDate(date.getFullYear() + 1);\n\n sessionStorage.setItem(referrerKey, JSON.stringify(referrerValue));\n }\n\n forgotPassword(forgotPasswordDto: ForgotPasswordDto): Observable {\n return this.http.post(this.FORGOT_PASSWORD_ENDPOINT, forgotPasswordDto);\n }\n\n onboardingSubmit(onboardingModel: OnboardingRequest) {\n return this.http.post(this.ONBOARDING_ENDPOINT, onboardingModel).pipe(\n switchMap(() => this.getClientDetailsFromServer()),\n tap(clientDetails => this.refreshedClientDetails$.next(clientDetails)),\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n createExampleHoldings() {\n return this.http.post(`${this.ONBOARDING_ENDPOINT}/example-holding`, null).pipe(\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n resetPassword(token: string, password: string, confirmPassword: string) {\n const data = {token, password, confirmPassword};\n\n return this.http.post(this.RESET_PASSWORD_ENDPOINT, data);\n }\n\n removeUserCredentials() {\n this.storageService.removeCredentialsData();\n }\n\n companyProfileGpUpdate(request: OrganizationDetailsReqRes): Observable {\n return this.http.postTyped(this.COMPANY_PROFILE_GP_ENDPOINT, request).pipe(\n tap(() => this.removeUserCredentials()),\n tap(() => this.refreshedClientDetails$.next(null)),\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n companyProfileLpUpdate(request: CompanyProfileLpRequest): Observable {\n return this.http.postTyped(this.COMPANY_PROFILE_LP_ENDPOINT, request).pipe(\n tap(() => this.removeUserCredentials()),\n tap(() => this.refreshedClientDetails$.next(null)),\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n // We can make the assumtion that GPs are always Agents, and LP are Clients\n personalDetailsUpdate(request: PersonalDetailsReqRes, userType: UserType): Observable {\n // different endpoints for LP and GP\n const endpoint = userType === UserType.Agent ? this.PERSONAL_DETAILS_AGENT_ENDPOINT : this.PERSONAL_DETAILS_CLIENT_ENDPOINT;\n\n return this.http.postTyped(endpoint, request).pipe(\n tap(() => this.removeUserCredentials()),\n tap(() => this.refreshedClientDetails$.next(null)),\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n resendConfirmationEmail(overrideCounter: boolean) {\n\n const queryString = `?overrideCounter=${overrideCounter}`;\n\n return this.http.get(this.RESEND_CONFIRMATION_ENDPOINT + queryString).pipe(\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n confirmEmail(username: string, token: string) {\n const data = {username, token};\n\n return this.http.put(this.CONFIRM_EMAIL_ENDPOINT, data).pipe(\n tap(() => this.refreshedClientDetails$.next(null)),\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n rejectEmail(username: string, token: string) {\n const data = {username, token};\n\n return this.http.put(this.REJECT_EMAIL_ENDPOINT, data).pipe(\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n registerGoogle(signupModel: LoginRequest): Observable {\n return this.externalRegister('Google', signupModel);\n }\n\n registerFacebook(signupModel: LoginRequest): Observable {\n return this.externalRegister('Facebook', signupModel);\n }\n\n private externalRegister(provider: string, signupModel: LoginRequest) {\n\n signupModel.provider = provider;\n\n return this.http\n .post(this.EXTERNAL_REGISTER, signupModel)\n .pipe(\n map((response: any) => {\n\n // this.storageService.clear();\n\n this.storageService.setAuthorizationData(JSON.stringify(response.token));\n this.storageService.setCredentialsData(JSON.stringify(response.clientDetails));\n\n return response;\n }),\n catchError(err => {\n if (err.status === 503) {\n this.router.navigateByUrl(this.MAINTENANCE_URL);\n }\n return throwError(err);\n })\n );\n }\n\n obtainLocalAccessToken(loginModel: LoginRequest) {\n\n const endpoint = this.EXTERNAL_OBTAIN_ACCESSTOKEN;\n\n return this.http\n .post(endpoint, loginModel)\n .pipe(\n map((response: any) => {\n\n // this.storageService.clear();\n\n if (response.token) {\n this.storageService.setAuthorizationData(JSON.stringify(response.token));\n this.storageService.setCredentialsData(JSON.stringify(response.clientDetails));\n this.isLoggedIn$.next(true);\n }\n return response;\n }),\n // tap(() => this.isLoggedIn$.next(true)),\n tap(() => {\n this.refreshedClientDetails$.next(null);\n }),\n catchError(err => {\n if (err.status === 503) {\n this.router.navigateByUrl(this.MAINTENANCE_URL);\n }\n return throwError(err);\n })\n );\n }\n\n crossAppLogin() {\n const endpoint = this.CROSS_APP_LOGIN + `?clientId=${this.appSettingsService.subDomain === SubdomainEnum.LP ? this.LP_CLIENT_ID : null}`;\n\n return this.http\n .get(endpoint)\n .pipe(\n map((response: any) => {\n // reset all previous data of local storage\n // this.storageService.clear();\n\n // when cross app login doesn't work for legitmiate reasons (status 204):\n if (!response) {\n return null;\n }\n\n if (response.token) {\n this.storageService.setAuthorizationData(JSON.stringify(response.token));\n this.storageService.setCredentialsData(JSON.stringify(response.clientDetails));\n this.isLoggedIn$.next(true);\n return response;\n } else {\n return null;\n }\n }),\n tap(() => {\n this.refreshedClientDetails$.next(null);\n }),\n catchError(err => {\n if (err.status === 503) {\n this.router.navigateByUrl(this.MAINTENANCE_URL);\n }\n return throwError(err);\n })\n );\n }\n\n sendSmsVerification(model: VerifyPhoneReqRes): Observable {\n const url = this.SEND_SMS_VERIFICATION;\n\n return this.http.putTyped(url, model);\n }\n\n smsVerify(model: VerifyPhoneReqRes): Observable {\n const url = this.SMS_VERIFY;\n\n return this.http.putTyped(url, model);\n }\n\n reSendSmsVerification(): Observable {\n const url = this.RESEND_SMS_VERIFICATION;\n\n return this.http.putTyped(url, null);\n }\n\n private setTwoFactorCookie(twoFactorModel: TwoFactorModel) {\n const date = new Date();\n\n if (twoFactorModel.rememberDevice) {\n date.setDate(date.getDate() + 30);\n } else {\n date.setHours(date.getHours() + 1);\n }\n this.cookieService.set('covercy_device_id', twoFactorModel.deviceToken, date, '/', this.appSettingsService.cookieDomainNamespace, true);\n }\n\n twoFactorEnable(): Observable {\n const url = this.TWO_FACTOR_ENABLE;\n\n return this.http.getTyped(url).pipe(map((response: TwoFactorModel) => {\n this.setTwoFactorCookie(response);\n return response;\n }));\n }\n\n twoFactorPing() {\n return this.http.getTyped(this.TWO_FACTOR_PING);\n }\n\n twoFactorDisable(): Observable {\n const url = this.TWO_FACTOR_DISABLE;\n\n return this.http.getTyped(url);\n }\n\n twoFactorVerify(twoFactorModel: TwoFactorModel): Observable {\n const url = this.TWO_FACTOR_VERIFY;\n\n return this.http.postTyped(url, twoFactorModel).pipe(map((response: TwoFactorModel) => {\n this.setTwoFactorCookie(response);\n return response;\n }));\n }\n\n sendTwoFactorCode(): Observable {\n const url = this.TWO_FACTOR_CODE;\n return this.http.get(url);\n }\n\n resendTwoFactorCode(): Observable {\n const url = this.TWO_FACTOR_CODE_RESEND;\n\n return this.http.get(url);\n }\n\n onboardingLp(request: OnboardingLpRequest): Observable {\n return this.http.postTyped(this.ONBOARDING_LP_ENDPOINT, request).pipe(\n tap(clientDetails => {\n this.removeUserCredentials();\n this.refreshedClientDetails$.next(clientDetails);\n }),\n catchError(err => throwError(() => err)));\n }\n\n getCurrentAgentOrganizationMembers(): Observable {\n return this.http.getTyped(this.CURRENT_ORGANIZATION_MEMBERS_ENDPOINT).pipe(\n catchError(err => throwError(() => err)));\n }\n\n updateTermsAndConditions(): Observable {\n return this.http.patchTyped(this.UPDATE_TERMS_AND_CONDITIONS_ENDPOINT, true).pipe(\n catchError(err => throwError(() => err)));\n }\n\n getOrganizationInvitationInfo(invitationToken: string): Observable {\n return this.http.getTyped(`${this.INVITATION_INFO_ENDPOINT}/${invitationToken}`).pipe(\n catchError(err => throwError(() => err)));\n }\n\n\n getLogoByReferrer(referrerKey: string = null): Observable {\n const referrerReq = {\n referrerKey\n } as OrganizationReferrerRequest;\n return this.http.postTyped(this.REFERER_LOGO_ENDPOINT, referrerReq)\n .pipe(catchError(err => throwError(() => err)));\n }\n\n updateInvitedUserInfo(invitationToken: string, userInfo: InvitedUserUpdateDto): Observable {\n return this.http.putTyped(`${this.INVITATION_INFO_ENDPOINT}/${invitationToken}/user`, userInfo).pipe(\n map(response => {\n if (response.token) {\n this.storageService.setAuthorizationData(JSON.stringify(response.token));\n this.storageService.setCredentialsData(JSON.stringify(response.clientDetails));\n this.isLoggedIn$.next(true);\n }\n return response;\n }),\n tap(() => {\n this.refreshedClientDetails$.next(null);\n }),\n catchError(err => {\n this.storageService.clear();\n\n if (err.status === 503) {\n this.router.navigateByUrl(this.MAINTENANCE_URL);\n }\n return throwError(err);\n })\n );\n }\n\n addLpForImpersonation(email: string) {\n return this.http.postTyped(this.ADD_LP_FOR_IMPERSONATION_ENDPOINT, email)\n .pipe(catchError(err => throwError(() => err)));\n }\n\n // ############## start manage users ##############\n\n createUserPermission(userPermission: UserPermissionDto): Observable {\n return this.http.postTyped(this.ADD_TEAM_MEMBER_ENDPOINT, userPermission)\n .pipe(catchError(err => throwError(() => err)));\n }\n\n // ############## end manage users ##############\n\n}\n","import {Observable, throwError} from 'rxjs';\nimport {Injectable} from '@angular/core';\nimport {catchError} from 'rxjs/operators';\n\nimport {HttpService} from '../http.service';\nimport {SearchOptionsRequest} from '../../shared/models/SearchOptionsRequest.model';\nimport {UserPermissionDto} from '../../permission/classes/userPermissionDto.models';\nimport {GpHoldingListItemReqRes} from '../../dashboard/shared/holding/GpHoldingListItem.model';\nimport {SearchOptionsResponse} from '../../shared/models/SearchOptionsResponse.model';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class UserPermissionDataService {\n constructor(private http: HttpService) {\n }\n\n protected readonly baseEndpoint = 'permissions';\n private readonly ACCOUNT_ENDPOINT = 'account';\n\n protected getSearchOptionsToQuerystring(options: SearchOptionsRequest): string {\n const filter = encodeURIComponent(options.filter);\n return `?filter=${filter}&sortOrder=${options.sortOrder}&orderBy=${options.orderBy}&pageNumber=${options.pageNumber}&pageSize=${options.pageSize}`;\n }\n\n getPermissionsList(options: SearchOptionsRequest = null): Observable {\n let queryString = '';\n if (options != null) {\n options.pageSize = 1000;\n options.pageNumber = 0;\n queryString = `?sortOrder=${options.sortOrder}&orderBy=${options.orderBy}&pageNumber=${options.pageNumber}&pageSize=${options.pageSize}`;\n }\n return this.http.getTyped(this.baseEndpoint + queryString).pipe(\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n isAllContactsVisible(): Observable {\n return this.http.getTyped(`${this.baseEndpoint}/isallcontactsvisible`).pipe(\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n updateUserPermission(model: UserPermissionDto): Observable {\n return this.http.putTyped(this.baseEndpoint, model);\n }\n\n deleteUserPermission(model: UserPermissionDto): Observable {\n return this.http.putTyped(`${this.ACCOUNT_ENDPOINT}/${model.clientId}/remove-team-member`, model);\n }\n\n getById(userPermissionId: number): Observable {\n return this.http.getTyped(`${this.baseEndpoint}/${userPermissionId}`);\n }\n\n getAllHoldings(): Observable> {\n return this.http.getTyped>(`${this.baseEndpoint}/holdings`);\n }\n}\n","import {Injectable} from '@angular/core';\nimport {catchError, switchMap} from 'rxjs/operators';\nimport {throwError, Observable} from 'rxjs';\nimport {SearchOptionsResponse} from '../models/SearchOptionsResponse.model';\nimport {HttpService} from 'src/app/services/http.service';\nimport {SearchOptionsRequest} from '../models/SearchOptionsRequest.model';\n\n/**\n * @typeParam T The class to be used for the full details.\n * @typeParam S The class to be used for list items (basic details only). Can be the same class as the full details.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport abstract class AbstractRestService {\n // protected abstract readonly baseEndpoint: string;\n protected abstract readonly baseEndpoint$: Observable;\n\n constructor(protected http: HttpService) {\n }\n\n protected getSearchOptionsToQuerystring(options: SearchOptionsRequest): string {\n const filter = encodeURIComponent(options.filter);\n return `?filter=${filter}&sortOrder=${options.sortOrder}&orderBy=${options.orderBy}&pageNumber=${options.pageNumber}&pageSize=${options.pageSize}`;\n }\n\n public create(model: T): Observable {\n return this.baseEndpoint$.pipe(\n switchMap(baseEndpoint => this.http.postTyped(baseEndpoint, model)),\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n public update(id: number, model: T): Observable {\n return this.baseEndpoint$.pipe(\n switchMap(endpoint => this.http.putTyped(endpoint + id, model)),\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n public delete(id: number): Observable {\n return this.baseEndpoint$.pipe(\n switchMap(endpoint => this.http.deleteTyped(endpoint + id)),\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n public getList(options: SearchOptionsRequest = null): Observable> {\n const querystring = options ? this.getSearchOptionsToQuerystring(options) : '';\n\n return this.baseEndpoint$.pipe(\n switchMap(endpoint => this.http.getTyped>(endpoint + querystring)),\n catchError(err => {\n return throwError(err);\n })\n );\n }\n\n\n public getById(id: number): Observable {\n return this.baseEndpoint$.pipe(\n switchMap(endpoint => this.http.getTyped(endpoint + id)),\n catchError(err => {\n return throwError(err);\n })\n );\n }\n}\n","\n\nexport class SystemFeatureFlagConsts{\n public static readonly SystemFeatureFlagAccreditationOn = \"systemFeatureFlagAccreditationOn\";\n\n public static get getAll(): string[]{\n return [\n SystemFeatureFlagConsts.SystemFeatureFlagAccreditationOn\n ]\n }\n}","import {Injectable} from '@angular/core';\nimport {AbstractRestService} from 'src/app/shared/types/AbstractRestService';\nimport {HttpService} from '../http.service';\nimport {Observable, of, shareReplay, switchMap} from 'rxjs';\nimport {SystemFeatureFlagConsts} from 'src/app/shared/consts/SystemFeatureFlags.consts';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class GeneralSettingsService extends AbstractRestService {\n protected baseEndpoint$: Observable = of('generalSettings');\n\n systemFeatureFlagKeysValues$ = this.getSystemFeatureFlagValues(SystemFeatureFlagConsts.getAll).pipe(\n shareReplay(1)\n );\n\n constructor(\n protected http: HttpService,\n ) {\n super(http);\n }\n\n public getSystemFeatureFlagValues(featureFlagKeys: string[]): Observable<{ [id: string]: boolean; }> {\n return this.baseEndpoint$.pipe(\n switchMap(baseUrl => this.http.postTyped<{ [id: string]: boolean; }>(`${baseUrl}/flags`, featureFlagKeys))\n );\n }\n\n public GetByKey(key: string): Observable {\n return this.baseEndpoint$.pipe(\n switchMap(baseUrl => this.http.getTyped(`${baseUrl}/key/${key}/value`))\n );\n }\n\n public IsCovercyDomain(email: string) {\n return email.toLowerCase().endsWith('@covercy.com');\n }\n}\n","import {Injectable} from '@angular/core';\nimport {Observable, of, take, map, shareReplay, switchMap} from 'rxjs';\n\nimport {UserService} from '../services/shared/user.service';\nimport PermissionLevel from './enums/permissionLevel.enum';\nimport {FinancialPermissionLevel} from './enums/financialPermissionLevel.enum';\nimport SectionsAccess from './enums/sectionsAccess.enum';\nimport ContactsVisibilityPermission from './enums/contactsVisibilityPermission.enum';\nimport {UserPermissionDataService} from '../services/gp/user-permission-data.service';\nimport ViewAsInvestorPermission from './enums/view-as-investor-permission';\nimport { GeneralSettingsService } from '../services/shared/general-settings.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PermissionService {\n constructor(\n private userService: UserService,\n private userPermissionDataService: UserPermissionDataService,\n private generalSettingsService: GeneralSettingsService\n ) {}\n\n get isCovercyUser$() {\n return this.userService.getClientDetails().pipe(\n map((clientDetails) =>\n clientDetails.isEmailVerified\n && this.generalSettingsService.IsCovercyDomain(clientDetails.email)));\n }\n\n /**\n * Check in the user has the required permissions for some operation\n * @param minimumPermissionLevel Minimum required permission level\n * @param minimumFinancialPermissionLevel Minimum required financial permission level\n * @param requiredSectionsAccess Required section access\n * @param requireContactVisibility Required contact visibility\n * @param minimumViewAsInvestorPermission Minimum view as investor permission\n * @return Observable of [has the required permission, failed for permission type]\n */\n public checkPermission(minimumPermissionLevel?: PermissionLevel, minimumFinancialPermissionLevel?: FinancialPermissionLevel,\n requiredSectionsAccess?: SectionsAccess, requireContactVisibility?: boolean,\n minimumViewAsInvestorPermission?: ViewAsInvestorPermission): Observable<[boolean, string]> {\n return this.userService.accountDetails$.pipe(\n map(accountDetails => {\n if (!accountDetails.isAgent) {\n return [true, undefined];\n }\n const userPermission = accountDetails.userPermission;\n if (!this.isSufficientPermissionLevel(userPermission.permissionLevel, minimumPermissionLevel)) {\n return [false, 'PermissionLevel'];\n }\n\n if (!this.isSufficientFinancialPermissionLevel(userPermission.financialPermission, minimumFinancialPermissionLevel)) {\n return [false, 'FinancialPermissionLevel'];\n }\n\n if (!!requiredSectionsAccess && !SectionsAccess.isOn(userPermission.allowedSections, SectionsAccess.All) &&\n !SectionsAccess.isOn(userPermission.allowedSections, requiredSectionsAccess)) { // && requiredSectionsAccess !== SectionsAccess.None // have no overlap with None\n return [false, 'SectionsAccess'];\n }\n\n if (!!requireContactVisibility && userPermission.contactsVisibility === ContactsVisibilityPermission.Hidden) {\n return [false, 'contactsVisibility'];\n }\n\n if (!this.isSufficientViewAsInvestorPermission(userPermission.viewAsInvestor, minimumViewAsInvestorPermission)) {\n return [false, 'viewAsInvestor'];\n }\n\n return [true, undefined];\n })\n );\n }\n\n private isSufficientPermissionLevel(userPermissionLevel: PermissionLevel, minimumPermissionLevel: PermissionLevel): boolean {\n switch (minimumPermissionLevel) {\n case PermissionLevel.None:\n case PermissionLevel.Readonly:\n return true;\n case PermissionLevel.Editor:\n return userPermissionLevel === PermissionLevel.Editor || userPermissionLevel === PermissionLevel.Admin;\n case PermissionLevel.Admin:\n return userPermissionLevel === PermissionLevel.Admin;\n default:\n return true;\n }\n }\n\n private isSufficientFinancialPermissionLevel(userFinancialPermission: FinancialPermissionLevel, minimumFinancialPermissionLevel: FinancialPermissionLevel) {\n switch (minimumFinancialPermissionLevel) {\n case FinancialPermissionLevel.None:\n case FinancialPermissionLevel.Hidden:\n return true;\n case FinancialPermissionLevel.NonSignatory:\n return userFinancialPermission === FinancialPermissionLevel.NonSignatory || userFinancialPermission === FinancialPermissionLevel.AuthorizedSignatory;\n case FinancialPermissionLevel.AuthorizedSignatory:\n return userFinancialPermission === FinancialPermissionLevel.AuthorizedSignatory;\n default:\n return true;\n }\n }\n\n private isSufficientViewAsInvestorPermission(userViewAsInvestorPermission: ViewAsInvestorPermission, minimumViewAsInvestorPermission: ViewAsInvestorPermission) {\n switch (minimumViewAsInvestorPermission) {\n case ViewAsInvestorPermission.Forbidden:\n return userViewAsInvestorPermission === ViewAsInvestorPermission.Forbidden;\n case ViewAsInvestorPermission.Allowed:\n return userViewAsInvestorPermission === ViewAsInvestorPermission.Allowed;\n default:\n return true;\n }\n }\n\n get allowInvestorName$(): Observable {\n return this.userService.accountDetails$.pipe(\n map(accountDetails => {\n if (!accountDetails.isAgent) {\n return true;\n }\n const userPermission = accountDetails.userPermission;\n return userPermission?.contactsVisibility === ContactsVisibilityPermission.Visible;\n }),\n shareReplay(1)\n );\n }\n\n get isAllContactsVisible$(): Observable {\n return this.userService.accountDetails$.pipe(\n switchMap(accountDetails => {\n if (!accountDetails.isAgent) {\n return of(true);\n }\n return this.userPermissionDataService.isAllContactsVisible();\n }),\n shareReplay(1)\n );\n }\n\n get showBankInfo$(): Observable {\n return this.userService.accountDetails$.pipe(\n map(accountDetails => {\n return (\n accountDetails.userPermission?.financialPermission === FinancialPermissionLevel.AuthorizedSignatory\n || accountDetails.userPermission?.financialPermission === FinancialPermissionLevel.NonSignatory\n );\n }),\n shareReplay(1)\n );\n }\n\n get haveAuthorizedSignatory$(): Observable {\n return this.userService.accountDetails$.pipe(\n map(accountDetails => {\n return (\n !accountDetails.isAgent\n || accountDetails.userPermission?.financialPermission === FinancialPermissionLevel.AuthorizedSignatory\n );\n }),\n shareReplay(1)\n );\n }\n\n get nonAdminViewBanking$(): Observable {\n return this.userService.accountDetails$.pipe(\n map(accountDetails =>\n accountDetails.userPermission?.permissionLevel !== PermissionLevel.Admin\n &&\n accountDetails.userPermission?.financialPermission === FinancialPermissionLevel.NonSignatory\n ),\n shareReplay(1)\n );\n }\n\n get nonAdminHideBanking$(): Observable {\n return this.userService.accountDetails$.pipe(\n map(accountDetails =>\n accountDetails.userPermission?.permissionLevel !== PermissionLevel.Admin\n &&\n accountDetails.userPermission?.financialPermission === FinancialPermissionLevel.Hidden\n ),\n shareReplay(1)\n );\n }\n}\n","import { Directive, ViewContainerRef } from '@angular/core';\n\n@Directive({\n selector: '[terraAddDynamicComponent]'\n})\nexport class AddDynamicComponentDirective {\n\n constructor(public viewContainerRef: ViewContainerRef) { }\n\n}\n","import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\n\n@Component({\n selector: 'terra-information-hint',\n templateUrl: './information-hint.component.html',\n styleUrls: ['./information-hint.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class InformationHintComponent implements OnInit {\n\n @Input() text:string = '';\n @Input() backgroundColor:string = '#FFF5DD';\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","\n","import {\n Component,\n OnInit,\n Input,\n Output,\n EventEmitter,\n Inject,\n ViewChild,\n ComponentFactoryResolver,\n ViewContainerRef,\n} from \"@angular/core\";\nimport {MatDialogRef, MAT_DIALOG_DATA} from \"@angular/material/dialog\";\nimport {AddDynamicComponentDirective} from \"../../directives/add-dynamic-component.directive\";\nimport {DynamicComponentItem} from \"../../models/dynamic-component-loader/DynamicComponentItem.model\";\nimport {IDynamicComponent} from \"../../models/dynamic-component-loader/IDynamicComponent.model\";\n\nexport class ConfirmDialogParams {\n public hideCancel: boolean = null;\n public showCloseIcon = true;\n public disableClose = false;\n\n constructor(\n public title: string = null,\n public description: string = null,\n public actionLabel: string = null,\n public cancelLabel: string = null,\n public panelClass: string = null,\n public svgIcon: string = null,\n public secondaryActionLabel: string = null,\n public actionButtonColor: string = \"primary\",\n public dynamicComponent: DynamicComponentItem = null,\n public vcr: ViewContainerRef = null,\n public actionPosition: \"left\" | \"center\" | \"right\" = \"left\",\n public highlightText: string = null,\n public icon: string = null,\n public iconClass: string = null,\n public disableAction: boolean = false,\n public highlightColor: string = '#FFF5DD',\n public actionButtonColorCode: string = null,\n public autoFocus: boolean = true,\n ) { }\n}\n\n@Component({\n selector: \"terra-confirm-dialog\",\n templateUrl: \"./confirm-dialog.component.html\",\n styleUrls: [\"./confirm-dialog.component.scss\"],\n})\nexport class ConfirmDialogComponent implements OnInit {\n // for dynamic component loader\n @ViewChild(AddDynamicComponentDirective, {static: true})\n terraAddDynamicComponent!: AddDynamicComponentDirective;\n\n constructor(\n public dialogRef: MatDialogRef,\n @Inject(MAT_DIALOG_DATA) public data: ConfirmDialogParams,\n private componentFactoryResolver: ComponentFactoryResolver\n ) { }\n\n ngOnInit() {\n if (this.data.dynamicComponent) {\n this.loadComponent();\n }\n\n if (this.data.panelClass) {\n this.dialogRef.addPanelClass(this.data.panelClass);\n }\n }\n\n // for dynamic component loader\n loadComponent() {\n const viewContainerRef = this.terraAddDynamicComponent.viewContainerRef;\n viewContainerRef.clear();\n const componentFactory =\n this.componentFactoryResolver.resolveComponentFactory(\n this.data.dynamicComponent.component\n );\n const componentRef =\n viewContainerRef.createComponent(componentFactory);\n componentRef.instance.data = this.data.dynamicComponent.data;\n }\n\n action() {\n this.dialogRef.close(true);\n }\n\n secondaryAction() {\n this.dialogRef.close({secondaryAction: true});\n }\n}\n","\n @if(data.icon) {\n \n {{data.icon}}\n \n }\n \n \n\n\n @if(!!data.description) {\n
\n }\n @if(!!data.highlightText) {\n \n \n \n }\n \n \n \n\n\n @if(!data.hideCancel) {\n \n {{ data.cancelLabel ? data.cancelLabel : \"Cancel\" }}\n \n }\n @if(data.secondaryActionLabel) {\n \n {{ data.secondaryActionLabel }}\n \n }\n \n {{ data.actionLabel ? data.actionLabel : \"OK\" }}\n @if(data.svgIcon) {\n \n }\n \n
\n","import { ChangeDetectionStrategy, Component, ComponentFactoryResolver, Inject, OnInit, ViewChild, ViewContainerRef } from '@angular/core';\nimport { DynamicComponentItem } from '../../models/dynamic-component-loader/DynamicComponentItem.model';\nimport { IDynamicComponent } from '../../models/dynamic-component-loader/IDynamicComponent.model';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { AddDynamicComponentDirective } from '../../directives/add-dynamic-component.directive';\n\n\nexport class DynamicDialogParams {\n public hideCancel: boolean = null;\n public showCloseIcon = true;\n public disableClose = false;\n public title: string = null;\n public subTitle: string = null;\n public actionLabel: string = null;\n public cancelLabel: string = null;\n public panelClass: string = null;\n public svgIcon: string = null;\n public actionButtonColor: string = 'primary';\n public dynamicComponent: DynamicComponentItem = null;\n public vcr: ViewContainerRef = null;\n public actionPosition: 'left' | 'center' | 'right' = 'left';\n public highlightText: string = null;\n public hideAction: boolean = false;\n public autoFocus: boolean = true;\n\n // constructor(\n // public title: string = null,\n // public actionLabel: string = null,\n // public cancelLabel: string = null,\n // public panelClass: string = null,\n // public svgIcon: string = null,\n // public actionButtonColor: string = 'primary',\n // public dynamicComponent: DynamicComponentItem = null,\n // public vcr: ViewContainerRef = null,\n // public actionPosition: 'left' | 'center' | 'right' = 'left',\n // public highlightText: string = null,\n // public hideAction: boolean = false\n // ) {\n // }\n}\n\n\n@Component({\n selector: 'terra-dynamic-dialog',\n templateUrl: './dynamic-dialog.component.html',\n styleUrls: ['./dynamic-dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DynamicDialogComponent implements OnInit {\n // for dynamic component loader\n @ViewChild(AddDynamicComponentDirective, { static: true }) terraAddDynamicComponent!: AddDynamicComponentDirective;\n\n constructor(\n public dialogRef: MatDialogRef,\n @Inject(MAT_DIALOG_DATA) public data: DynamicDialogParams,\n private componentFactoryResolver: ComponentFactoryResolver) {\n }\n\n ngOnInit() {\n if (this.data.dynamicComponent) {\n this.loadComponent();\n }\n\n if (this.data.panelClass) {\n this.dialogRef.addPanelClass(this.data.panelClass);\n }\n }\n\n // for dynamic component loader\n loadComponent() {\n const viewContainerRef = this.terraAddDynamicComponent.viewContainerRef;\n viewContainerRef.clear();\n const componentFactory = this.componentFactoryResolver.resolveComponentFactory(this.data.dynamicComponent.component);\n const componentRef = viewContainerRef.createComponent(componentFactory);\n componentRef.instance.data = this.data.dynamicComponent.data;\n }\n\n action() {\n this.dialogRef.close(true);\n }\n}\n","\n \n
{{data.title}}
\n
{{data.subTitle}}
\n
\n \n\n\n \n \n\n\n {{ data.actionLabel ? data.actionLabel : 'OK' }}\n \n \n \n {{ data.cancelLabel ? data.cancelLabel : 'Cancel' }}\n \n
","import { Injectable, ViewContainerRef } from \"@angular/core\";\nimport {\n ConfirmDialogParams,\n ConfirmDialogComponent,\n} from \"../shared/components/confirm-dialog/confirm-dialog.component\";\nimport { MatDialogConfig, MatDialog } from \"@angular/material/dialog\";\nimport {\n AlertDialogParams,\n AlertDialogComponent,\n} from \"../shared/components/alert-dialog/alert-dialog.component\";\nimport { ComponentType } from \"@angular/cdk/portal\";\nimport {\n DynamicDialogComponent,\n DynamicDialogParams,\n} from \"../shared/components/dynamic-dialog/dynamic-dialog.component\";\n\n@Injectable({\n providedIn: \"root\",\n})\nexport class DialogService {\n constructor(private dialog: MatDialog) {}\n\n customDialog(\n dialogType: ComponentType,\n data: any,\n disableClose: boolean = false,\n panelClass?: string,\n vcr?: ViewContainerRef\n ) {\n const dialogConfig = new MatDialogConfig();\n dialogConfig.disableClose = disableClose;\n dialogConfig.closeOnNavigation = true;\n dialogConfig.autoFocus = true;\n dialogConfig.panelClass = panelClass || \"custom-dialog\";\n dialogConfig.width = panelClass ? null : \"800px\";\n dialogConfig.height = \"fit-content\";\n dialogConfig.data = data;\n dialogConfig.viewContainerRef = vcr;\n\n return this.dialog.open(dialogType, dialogConfig);\n }\n\n confirmDialog(dialogParams: ConfirmDialogParams) {\n const dialogConfig = new MatDialogConfig();\n dialogConfig.disableClose = dialogParams.disableClose;\n dialogConfig.closeOnNavigation = true;\n dialogConfig.autoFocus = dialogParams.autoFocus ?? true;\n dialogConfig.panelClass = dialogParams.panelClass || \"confirm-dialog\";\n dialogConfig.width = dialogParams.panelClass ? null : \"600px\";\n dialogConfig.data = dialogParams;\n dialogConfig.viewContainerRef = dialogParams.vcr;\n\n return this.dialog.open(ConfirmDialogComponent, dialogConfig);\n }\n\n alertDialog(dialogParams: AlertDialogParams) {\n const dialogConfig = new MatDialogConfig();\n dialogConfig.disableClose = true;\n dialogConfig.closeOnNavigation = true;\n dialogConfig.autoFocus = dialogParams.autoFocus ?? true;\n dialogConfig.panelClass = dialogParams.panelClass || \"alert-dialog\";\n dialogConfig.width = dialogParams.panelClass ? null : \"600px\";\n dialogConfig.data = dialogParams;\n dialogConfig.backdropClass = dialogParams.backdropClass || \"\";\n\n return this.dialog.open(AlertDialogComponent, dialogConfig);\n }\n\n dynamicDialog(dialogParams: DynamicDialogParams) {\n const dialogConfig = new MatDialogConfig();\n dialogConfig.disableClose = dialogParams.disableClose;\n dialogConfig.closeOnNavigation = true;\n dialogConfig.autoFocus = dialogParams.autoFocus ?? true;\n dialogConfig.panelClass = dialogParams.panelClass || \"dynamic-dialog\";\n dialogConfig.width = dialogParams.panelClass ? null : \"600px\";\n dialogConfig.data = dialogParams;\n dialogConfig.viewContainerRef = dialogParams.vcr;\n\n return this.dialog.open(DynamicDialogComponent, dialogConfig);\n }\n}\n","import {Directive, ElementRef, Input, OnInit} from '@angular/core';\nimport {take} from 'rxjs/operators';\n\nimport PermissionLevel from '../../permission/enums/permissionLevel.enum';\nimport {FinancialPermissionLevel} from '../../permission/enums/financialPermissionLevel.enum';\nimport SectionsAccess from '../../permission/enums/sectionsAccess.enum';\nimport {PermissionService} from '../../permission/permission.service';\nimport {DialogService} from '../../services/dialog.service';\nimport {AlertDialogParams} from '../components/alert-dialog/alert-dialog.component';\nimport ViewAsInvestorPermission from '../../permission/enums/view-as-investor-permission';\n\nexport enum NoPermissionAction {\n Hide = 0,\n Blur = 1,\n PopupOnClick = 2\n}\n\n@Directive({\n selector: '[terraCheckPermissions]',\n standalone: true,\n})\nexport class CheckPermissionsDirective implements OnInit {\n @Input() minimumPermissionLevel: PermissionLevel;\n @Input() minimumFinancialPermissionLevel: FinancialPermissionLevel;\n @Input() sectionsAccess: SectionsAccess;\n @Input() noPermissionAction: NoPermissionAction;\n @Input() requireContactsVisibility = false;\n @Input() minimumViewAsInvestorPermission: ViewAsInvestorPermission;\n\n constructor(private elementRef: ElementRef,\n private permissionService: PermissionService,\n private dialogService: DialogService) {\n }\n\n ngOnInit() {\n this.permissionService.checkPermission(this.minimumPermissionLevel, this.minimumFinancialPermissionLevel, this.sectionsAccess,\n this.requireContactsVisibility, this.minimumViewAsInvestorPermission).pipe(\n take(1)\n ).subscribe(([allowed, failedForType]) => {\n if (!allowed) {\n switch (this.noPermissionAction) {\n case NoPermissionAction.Hide:\n this.elementRef.nativeElement.style.display = 'none';\n break;\n case NoPermissionAction.Blur:\n this.elementRef.nativeElement.style.filter = 'blur(4px)';\n this.elementRef.nativeElement.style['pointer-events'] = 'none';\n this.elementRef.nativeElement.style['user-select'] = 'none';\n break;\n case NoPermissionAction.PopupOnClick:\n this.elementRef.nativeElement.removeAllListeners('click');\n this.elementRef.nativeElement.addEventListener('click', this.openPopup.bind(this, failedForType));\n break;\n default:\n this.elementRef.nativeElement.style.display = 'none';\n }\n }\n }\n );\n }\n\n private openPopup(failedForType: string) {\n event.stopPropagation();\n event.preventDefault();\n let title;\n let message;\n switch (failedForType) {\n case 'PermissionLevel':\n if (this.minimumPermissionLevel === PermissionLevel.Editor) {\n title = 'You do not have permissions to perform this action';\n message = 'You don\\'t have permission to update this resource.';\n } else if (this.minimumPermissionLevel === PermissionLevel.Admin) {\n title = 'You do not have permissions to perform this action';\n message = 'You don\\'t have permission to access this resource.';\n }\n break;\n case 'FinancialPermissionLevel':\n if (this.minimumFinancialPermissionLevel === FinancialPermissionLevel.NonSignatory) {\n title = 'You do not have permissions to perform this action';\n message = 'You don\\'t have permission to access this resource.';\n } else if (this.minimumFinancialPermissionLevel === FinancialPermissionLevel.AuthorizedSignatory) {\n title = 'You do not have financial-signatory permissions';\n message = 'You do not have permissions to finalize financial transactions. \\r\\nThis action can only be finalized by a user with financial-signatory permissions.';\n }\n break;\n case 'SectionsAccess':\n title = 'You do not have permissions to perform this action';\n message = 'You don\\'t have permission to access this resource.';\n break;\n case 'requireContactsVisibility':\n title = 'You do not have permissions to perform this action';\n message = 'You don\\'t have permission to access this resource.';\n break;\n default:\n title = 'You do not have permissions to perform this action';\n message = 'You don\\'t have permission to access this resource.';\n break;\n }\n\n this.dialogService.alertDialog(new AlertDialogParams(title, message));\n }\n}\n","import {ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output} from '@angular/core';\nimport {FinancialPermissionLevel} from 'src/app/permission/enums/financialPermissionLevel.enum';\nimport PermissionLevel from 'src/app/permission/enums/permissionLevel.enum';\nimport SectionsAccess from 'src/app/permission/enums/sectionsAccess.enum';\nimport {CheckPermissionsDirective, NoPermissionAction} from '../../directives/check-permissions.directive';\nimport ViewAsInvestorPermission from 'src/app/permission/enums/view-as-investor-permission';\nimport {MatIconModule} from '@angular/material/icon';\nimport {MatButtonModule} from '@angular/material/button';\nimport {CommonModule} from '@angular/common';\nimport {LoaderComponent} from '../../loader/loader.component';\n\nconst ANGULAR_MATERIAL = [MatIconModule, MatButtonModule];\n\n@Component({\n selector: 'terra-buttons',\n standalone: true,\n imports: [CommonModule,\n ...ANGULAR_MATERIAL,\n CheckPermissionsDirective,\n LoaderComponent],\n templateUrl: './buttons.component.html',\n styleUrls: ['./buttons.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class ButtonsComponent implements OnInit {\n @Input() type: 'primary' | 'secondary' | 'small' | 'icon' | 'link' | 'secondary-error' = 'primary';\n @Input() label = 'Action';\n @Input() disabledBtn = false;\n @Input() icon = '';\n @Input() outlinedIcon = false;\n\n @Input() iconPosition: 'left' | 'right' = 'left';\n\n @Input() popupOnPermission = false;\n\n @Input() minimumPermissionLevel: PermissionLevel;\n @Input() minimumFinancialPermissionLevel: FinancialPermissionLevel;\n @Input() sectionsAccess: SectionsAccess;\n @Input() requireContactsVisibility = false;\n @Input() minimumViewAsInvestorPermission: ViewAsInvestorPermission;\n @Input() loading = false;\n\n NoPermissionAction = NoPermissionAction;\n\n @Output() onClick = new EventEmitter();\n\n constructor() {\n }\n\n ngOnInit(): void {\n }\n\n btnClick(event) {\n this.onClick.emit(event);\n }\n}\n","","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet AngleDownIcon = /*#__PURE__*/(() => {\n class AngleDownIcon extends BaseIcon {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵAngleDownIcon_BaseFactory;\n return function AngleDownIcon_Factory(t) {\n return (ɵAngleDownIcon_BaseFactory || (ɵAngleDownIcon_BaseFactory = i0.ɵɵgetInheritedFactory(AngleDownIcon)))(t || AngleDownIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: AngleDownIcon,\n selectors: [[\"AngleDownIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 2,\n vars: 5,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z\", \"fill\", \"currentColor\"]],\n template: function AngleDownIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵelement(1, \"path\", 1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n }\n },\n encapsulation: 2\n });\n }\n return AngleDownIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AngleDownIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet AngleUpIcon = /*#__PURE__*/(() => {\n class AngleUpIcon extends BaseIcon {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵAngleUpIcon_BaseFactory;\n return function AngleUpIcon_Factory(t) {\n return (ɵAngleUpIcon_BaseFactory || (ɵAngleUpIcon_BaseFactory = i0.ɵɵgetInheritedFactory(AngleUpIcon)))(t || AngleUpIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: AngleUpIcon,\n selectors: [[\"AngleUpIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 2,\n vars: 5,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z\", \"fill\", \"currentColor\"]],\n template: function AngleUpIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵelement(1, \"path\", 1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n }\n },\n encapsulation: 2\n });\n }\n return AngleUpIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AngleUpIcon };\n","import * as i2 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { forwardRef, EventEmitter, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Input, Output, ViewChild, ContentChildren, NgModule } from '@angular/core';\nimport { NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';\nimport * as i1 from 'primeng/api';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\nimport * as i5 from 'primeng/autofocus';\nimport { AutoFocusModule } from 'primeng/autofocus';\nimport * as i4 from 'primeng/button';\nimport { ButtonModule } from 'primeng/button';\nimport { DomHandler } from 'primeng/dom';\nimport { AngleDownIcon } from 'primeng/icons/angledown';\nimport { AngleUpIcon } from 'primeng/icons/angleup';\nimport { TimesIcon } from 'primeng/icons/times';\nimport * as i3 from 'primeng/inputtext';\nimport { InputTextModule } from 'primeng/inputtext';\nconst _c0 = [\"input\"];\nconst _c1 = (a0, a1, a2) => ({\n \"p-inputnumber p-component\": true,\n \"p-inputnumber-buttons-stacked\": a0,\n \"p-inputnumber-buttons-horizontal\": a1,\n \"p-inputnumber-buttons-vertical\": a2\n});\nconst _c2 = () => ({\n \"p-inputnumber-button p-inputnumber-button-up\": true\n});\nconst _c3 = () => ({\n \"p-inputnumber-button p-inputnumber-button-down\": true\n});\nfunction InputNumber_ng_container_3_TimesIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r2 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"TimesIcon\", 8);\n i0.ɵɵlistener(\"click\", function InputNumber_ng_container_3_TimesIcon_1_Template_TimesIcon_click_0_listener() {\n i0.ɵɵrestoreView(_r2);\n const ctx_r2 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r2.clear());\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngClass\", \"p-inputnumber-clear-icon\");\n i0.ɵɵattribute(\"data-pc-section\", \"clearIcon\");\n }\n}\nfunction InputNumber_ng_container_3_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction InputNumber_ng_container_3_span_2_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, InputNumber_ng_container_3_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction InputNumber_ng_container_3_span_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r4 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"span\", 9);\n i0.ɵɵlistener(\"click\", function InputNumber_ng_container_3_span_2_Template_span_click_0_listener() {\n i0.ɵɵrestoreView(_r4);\n const ctx_r2 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r2.clear());\n });\n i0.ɵɵtemplate(1, InputNumber_ng_container_3_span_2_1_Template, 1, 0, null, 10);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵattribute(\"data-pc-section\", \"clearIcon\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.clearIconTemplate);\n }\n}\nfunction InputNumber_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, InputNumber_ng_container_3_TimesIcon_1_Template, 1, 2, \"TimesIcon\", 6)(2, InputNumber_ng_container_3_span_2_Template, 2, 2, \"span\", 7);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.clearIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.clearIconTemplate);\n }\n}\nfunction InputNumber_span_4_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 14);\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngClass\", ctx_r2.incrementButtonIcon);\n i0.ɵɵattribute(\"data-pc-section\", \"incrementbuttonicon\");\n }\n}\nfunction InputNumber_span_4_ng_container_3_AngleUpIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"AngleUpIcon\");\n }\n if (rf & 2) {\n i0.ɵɵattribute(\"data-pc-section\", \"incrementbuttonicon\");\n }\n}\nfunction InputNumber_span_4_ng_container_3_2_ng_template_0_Template(rf, ctx) {}\nfunction InputNumber_span_4_ng_container_3_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, InputNumber_span_4_ng_container_3_2_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction InputNumber_span_4_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, InputNumber_span_4_ng_container_3_AngleUpIcon_1_Template, 1, 1, \"AngleUpIcon\", 3)(2, InputNumber_span_4_ng_container_3_2_Template, 1, 0, null, 10);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.incrementButtonIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.incrementButtonIconTemplate);\n }\n}\nfunction InputNumber_span_4_span_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 14);\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngClass\", ctx_r2.decrementButtonIcon);\n i0.ɵɵattribute(\"data-pc-section\", \"decrementbuttonicon\");\n }\n}\nfunction InputNumber_span_4_ng_container_6_AngleDownIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"AngleDownIcon\");\n }\n if (rf & 2) {\n i0.ɵɵattribute(\"data-pc-section\", \"decrementbuttonicon\");\n }\n}\nfunction InputNumber_span_4_ng_container_6_2_ng_template_0_Template(rf, ctx) {}\nfunction InputNumber_span_4_ng_container_6_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, InputNumber_span_4_ng_container_6_2_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction InputNumber_span_4_ng_container_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, InputNumber_span_4_ng_container_6_AngleDownIcon_1_Template, 1, 1, \"AngleDownIcon\", 3)(2, InputNumber_span_4_ng_container_6_2_Template, 1, 0, null, 10);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.decrementButtonIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.decrementButtonIconTemplate);\n }\n}\nfunction InputNumber_span_4_Template(rf, ctx) {\n if (rf & 1) {\n const _r5 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"span\", 11)(1, \"button\", 12);\n i0.ɵɵlistener(\"mousedown\", function InputNumber_span_4_Template_button_mousedown_1_listener($event) {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onUpButtonMouseDown($event));\n })(\"mouseup\", function InputNumber_span_4_Template_button_mouseup_1_listener() {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onUpButtonMouseUp());\n })(\"mouseleave\", function InputNumber_span_4_Template_button_mouseleave_1_listener() {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onUpButtonMouseLeave());\n })(\"keydown\", function InputNumber_span_4_Template_button_keydown_1_listener($event) {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onUpButtonKeyDown($event));\n })(\"keyup\", function InputNumber_span_4_Template_button_keyup_1_listener() {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onUpButtonKeyUp());\n });\n i0.ɵɵtemplate(2, InputNumber_span_4_span_2_Template, 1, 2, \"span\", 13)(3, InputNumber_span_4_ng_container_3_Template, 3, 2, \"ng-container\", 3);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(4, \"button\", 12);\n i0.ɵɵlistener(\"mousedown\", function InputNumber_span_4_Template_button_mousedown_4_listener($event) {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onDownButtonMouseDown($event));\n })(\"mouseup\", function InputNumber_span_4_Template_button_mouseup_4_listener() {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onDownButtonMouseUp());\n })(\"mouseleave\", function InputNumber_span_4_Template_button_mouseleave_4_listener() {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onDownButtonMouseLeave());\n })(\"keydown\", function InputNumber_span_4_Template_button_keydown_4_listener($event) {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onDownButtonKeyDown($event));\n })(\"keyup\", function InputNumber_span_4_Template_button_keyup_4_listener() {\n i0.ɵɵrestoreView(_r5);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onDownButtonKeyUp());\n });\n i0.ɵɵtemplate(5, InputNumber_span_4_span_5_Template, 1, 2, \"span\", 13)(6, InputNumber_span_4_ng_container_6_Template, 3, 2, \"ng-container\", 3);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵattribute(\"data-pc-section\", \"buttonGroup\");\n i0.ɵɵadvance();\n i0.ɵɵclassMap(ctx_r2.incrementButtonClass);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction0(17, _c2))(\"disabled\", ctx_r2.disabled);\n i0.ɵɵattribute(\"aria-hidden\", true)(\"data-pc-section\", \"incrementbutton\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.incrementButtonIcon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.incrementButtonIcon);\n i0.ɵɵadvance();\n i0.ɵɵclassMap(ctx_r2.decrementButtonClass);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction0(18, _c3))(\"disabled\", ctx_r2.disabled);\n i0.ɵɵattribute(\"aria-hidden\", true)(\"data-pc-section\", ctx_r2.decrementbutton);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.decrementButtonIcon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.decrementButtonIcon);\n }\n}\nfunction InputNumber_button_5_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 14);\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngClass\", ctx_r2.incrementButtonIcon);\n i0.ɵɵattribute(\"data-pc-section\", \"incrementbuttonicon\");\n }\n}\nfunction InputNumber_button_5_ng_container_2_AngleUpIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"AngleUpIcon\");\n }\n if (rf & 2) {\n i0.ɵɵattribute(\"data-pc-section\", \"incrementbuttonicon\");\n }\n}\nfunction InputNumber_button_5_ng_container_2_2_ng_template_0_Template(rf, ctx) {}\nfunction InputNumber_button_5_ng_container_2_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, InputNumber_button_5_ng_container_2_2_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction InputNumber_button_5_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, InputNumber_button_5_ng_container_2_AngleUpIcon_1_Template, 1, 1, \"AngleUpIcon\", 3)(2, InputNumber_button_5_ng_container_2_2_Template, 1, 0, null, 10);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.incrementButtonIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.incrementButtonIconTemplate);\n }\n}\nfunction InputNumber_button_5_Template(rf, ctx) {\n if (rf & 1) {\n const _r6 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 12);\n i0.ɵɵlistener(\"mousedown\", function InputNumber_button_5_Template_button_mousedown_0_listener($event) {\n i0.ɵɵrestoreView(_r6);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onUpButtonMouseDown($event));\n })(\"mouseup\", function InputNumber_button_5_Template_button_mouseup_0_listener() {\n i0.ɵɵrestoreView(_r6);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onUpButtonMouseUp());\n })(\"mouseleave\", function InputNumber_button_5_Template_button_mouseleave_0_listener() {\n i0.ɵɵrestoreView(_r6);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onUpButtonMouseLeave());\n })(\"keydown\", function InputNumber_button_5_Template_button_keydown_0_listener($event) {\n i0.ɵɵrestoreView(_r6);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onUpButtonKeyDown($event));\n })(\"keyup\", function InputNumber_button_5_Template_button_keyup_0_listener() {\n i0.ɵɵrestoreView(_r6);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onUpButtonKeyUp());\n });\n i0.ɵɵtemplate(1, InputNumber_button_5_span_1_Template, 1, 2, \"span\", 13)(2, InputNumber_button_5_ng_container_2_Template, 3, 2, \"ng-container\", 3);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵclassMap(ctx_r2.incrementButtonClass);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction0(8, _c2))(\"disabled\", ctx_r2.disabled);\n i0.ɵɵattribute(\"aria-hidden\", true)(\"data-pc-section\", \"incrementbutton\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.incrementButtonIcon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.incrementButtonIcon);\n }\n}\nfunction InputNumber_button_6_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 14);\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngClass\", ctx_r2.decrementButtonIcon);\n i0.ɵɵattribute(\"data-pc-section\", \"decrementbuttonicon\");\n }\n}\nfunction InputNumber_button_6_ng_container_2_AngleDownIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"AngleDownIcon\");\n }\n if (rf & 2) {\n i0.ɵɵattribute(\"data-pc-section\", \"decrementbuttonicon\");\n }\n}\nfunction InputNumber_button_6_ng_container_2_2_ng_template_0_Template(rf, ctx) {}\nfunction InputNumber_button_6_ng_container_2_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, InputNumber_button_6_ng_container_2_2_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction InputNumber_button_6_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, InputNumber_button_6_ng_container_2_AngleDownIcon_1_Template, 1, 1, \"AngleDownIcon\", 3)(2, InputNumber_button_6_ng_container_2_2_Template, 1, 0, null, 10);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.decrementButtonIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.decrementButtonIconTemplate);\n }\n}\nfunction InputNumber_button_6_Template(rf, ctx) {\n if (rf & 1) {\n const _r7 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 12);\n i0.ɵɵlistener(\"mousedown\", function InputNumber_button_6_Template_button_mousedown_0_listener($event) {\n i0.ɵɵrestoreView(_r7);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onDownButtonMouseDown($event));\n })(\"mouseup\", function InputNumber_button_6_Template_button_mouseup_0_listener() {\n i0.ɵɵrestoreView(_r7);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onDownButtonMouseUp());\n })(\"mouseleave\", function InputNumber_button_6_Template_button_mouseleave_0_listener() {\n i0.ɵɵrestoreView(_r7);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onDownButtonMouseLeave());\n })(\"keydown\", function InputNumber_button_6_Template_button_keydown_0_listener($event) {\n i0.ɵɵrestoreView(_r7);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onDownButtonKeyDown($event));\n })(\"keyup\", function InputNumber_button_6_Template_button_keyup_0_listener() {\n i0.ɵɵrestoreView(_r7);\n const ctx_r2 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r2.onDownButtonKeyUp());\n });\n i0.ɵɵtemplate(1, InputNumber_button_6_span_1_Template, 1, 2, \"span\", 13)(2, InputNumber_button_6_ng_container_2_Template, 3, 2, \"ng-container\", 3);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵclassMap(ctx_r2.decrementButtonClass);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction0(8, _c3))(\"disabled\", ctx_r2.disabled);\n i0.ɵɵattribute(\"aria-hidden\", true)(\"data-pc-section\", \"decrementbutton\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.decrementButtonIcon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.decrementButtonIcon);\n }\n}\nconst INPUTNUMBER_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => InputNumber),\n multi: true\n};\n/**\n * InputNumber is an input component to provide numerical input.\n * @group Components\n */\nlet InputNumber = /*#__PURE__*/(() => {\n class InputNumber {\n document;\n el;\n cd;\n injector;\n config;\n /**\n * Displays spinner buttons.\n * @group Props\n */\n showButtons = false;\n /**\n * Whether to format the value.\n * @group Props\n */\n format = true;\n /**\n * Layout of the buttons, valid values are \"stacked\" (default), \"horizontal\" and \"vertical\".\n * @group Props\n */\n buttonLayout = 'stacked';\n /**\n * Identifier of the focus input to match a label defined for the component.\n * @group Props\n */\n inputId;\n /**\n * Style class of the component.\n * @group Props\n */\n styleClass;\n /**\n * Inline style of the component.\n * @group Props\n */\n style;\n /**\n * Advisory information to display on input.\n * @group Props\n */\n placeholder;\n /**\n * Size of the input field.\n * @group Props\n */\n size;\n /**\n * Maximum number of character allows in the input field.\n * @group Props\n */\n maxlength;\n /**\n * Specifies tab order of the element.\n * @group Props\n */\n tabindex;\n /**\n * Title text of the input text.\n * @group Props\n */\n title;\n /**\n * Specifies one or more IDs in the DOM that labels the input field.\n * @group Props\n */\n ariaLabelledBy;\n /**\n * Used to define a string that labels the input element.\n * @group Props\n */\n ariaLabel;\n /**\n * Used to indicate that user input is required on an element before a form can be submitted.\n * @group Props\n */\n ariaRequired;\n /**\n * Name of the input field.\n * @group Props\n */\n name;\n /**\n * Indicates that whether the input field is required.\n * @group Props\n */\n required;\n /**\n * Used to define a string that autocomplete attribute the current element.\n * @group Props\n */\n autocomplete;\n /**\n * Mininum boundary value.\n * @group Props\n */\n min;\n /**\n * Maximum boundary value.\n * @group Props\n */\n max;\n /**\n * Style class of the increment button.\n * @group Props\n */\n incrementButtonClass;\n /**\n * Style class of the decrement button.\n * @group Props\n */\n decrementButtonClass;\n /**\n * Style class of the increment button.\n * @group Props\n */\n incrementButtonIcon;\n /**\n * Style class of the decrement button.\n * @group Props\n */\n decrementButtonIcon;\n /**\n * When present, it specifies that an input field is read-only.\n * @group Props\n */\n readonly = false;\n /**\n * Step factor to increment/decrement the value.\n * @group Props\n */\n step = 1;\n /**\n * Determines whether the input field is empty.\n * @group Props\n */\n allowEmpty = true;\n /**\n * Locale to be used in formatting.\n * @group Props\n */\n locale;\n /**\n * The locale matching algorithm to use. Possible values are \"lookup\" and \"best fit\"; the default is \"best fit\". See Locale Negotiation for details.\n * @group Props\n */\n localeMatcher;\n /**\n * Defines the behavior of the component, valid values are \"decimal\" and \"currency\".\n * @group Props\n */\n mode = 'decimal';\n /**\n * The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as \"USD\" for the US dollar, \"EUR\" for the euro, or \"CNY\" for the Chinese RMB. There is no default value; if the style is \"currency\", the currency property must be provided.\n * @group Props\n */\n currency;\n /**\n * How to display the currency in currency formatting. Possible values are \"symbol\" to use a localized currency symbol such as €, ü\"code\" to use the ISO currency code, \"name\" to use a localized currency name such as \"dollar\"; the default is \"symbol\".\n * @group Props\n */\n currencyDisplay;\n /**\n * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.\n * @group Props\n */\n useGrouping = true;\n /**\n * Specifies the input variant of the component.\n * @group Props\n */\n variant = 'outlined';\n /**\n * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information).\n * @group Props\n */\n minFractionDigits;\n /**\n * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information).\n * @group Props\n */\n maxFractionDigits;\n /**\n * Text to display before the value.\n * @group Props\n */\n prefix;\n /**\n * Text to display after the value.\n * @group Props\n */\n suffix;\n /**\n * Inline style of the input field.\n * @group Props\n */\n inputStyle;\n /**\n * Style class of the input field.\n * @group Props\n */\n inputStyleClass;\n /**\n * When enabled, a clear icon is displayed to clear the value.\n * @group Props\n */\n showClear = false;\n /**\n * When present, it specifies that the component should automatically get focus on load.\n * @group Props\n */\n autofocus;\n /**\n * When present, it specifies that the element should be disabled.\n * @group Props\n */\n get disabled() {\n return this._disabled;\n }\n set disabled(disabled) {\n if (disabled) this.focused = false;\n this._disabled = disabled;\n if (this.timer) this.clearTimer();\n }\n /**\n * Callback to invoke on input.\n * @param {InputNumberInputEvent} event - Custom input event.\n * @group Emits\n */\n onInput = new EventEmitter();\n /**\n * Callback to invoke when the component receives focus.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n onFocus = new EventEmitter();\n /**\n * Callback to invoke when the component loses focus.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n onBlur = new EventEmitter();\n /**\n * Callback to invoke on input key press.\n * @param {KeyboardEvent} event - Keyboard event.\n * @group Emits\n */\n onKeyDown = new EventEmitter();\n /**\n * Callback to invoke when clear token is clicked.\n * @group Emits\n */\n onClear = new EventEmitter();\n input;\n templates;\n clearIconTemplate;\n incrementButtonIconTemplate;\n decrementButtonIconTemplate;\n value;\n onModelChange = () => {};\n onModelTouched = () => {};\n focused;\n initialized;\n groupChar = '';\n prefixChar = '';\n suffixChar = '';\n isSpecialChar;\n timer;\n lastValue;\n _numeral;\n numberFormat;\n _decimal;\n _decimalChar;\n _group;\n _minusSign;\n _currency;\n _prefix;\n _suffix;\n _index;\n _disabled;\n ngControl = null;\n constructor(document, el, cd, injector, config) {\n this.document = document;\n this.el = el;\n this.cd = cd;\n this.injector = injector;\n this.config = config;\n }\n ngOnChanges(simpleChange) {\n const props = ['locale', 'localeMatcher', 'mode', 'currency', 'currencyDisplay', 'useGrouping', 'minFractionDigits', 'maxFractionDigits', 'prefix', 'suffix'];\n if (props.some(p => !!simpleChange[p])) {\n this.updateConstructParser();\n }\n }\n ngAfterContentInit() {\n this.templates.forEach(item => {\n switch (item.getType()) {\n case 'clearicon':\n this.clearIconTemplate = item.template;\n break;\n case 'incrementbuttonicon':\n this.incrementButtonIconTemplate = item.template;\n break;\n case 'decrementbuttonicon':\n this.decrementButtonIconTemplate = item.template;\n break;\n }\n });\n }\n ngOnInit() {\n this.ngControl = this.injector.get(NgControl, null, {\n optional: true\n });\n this.constructParser();\n this.initialized = true;\n }\n getOptions() {\n return {\n localeMatcher: this.localeMatcher,\n style: this.mode,\n currency: this.currency,\n currencyDisplay: this.currencyDisplay,\n useGrouping: this.useGrouping,\n minimumFractionDigits: this.minFractionDigits ?? undefined,\n maximumFractionDigits: this.maxFractionDigits ?? undefined\n };\n }\n constructParser() {\n this.numberFormat = new Intl.NumberFormat(this.locale, this.getOptions());\n const numerals = [...new Intl.NumberFormat(this.locale, {\n useGrouping: false\n }).format(9876543210)].reverse();\n const index = new Map(numerals.map((d, i) => [d, i]));\n this._numeral = new RegExp(`[${numerals.join('')}]`, 'g');\n this._group = this.getGroupingExpression();\n this._minusSign = this.getMinusSignExpression();\n this._currency = this.getCurrencyExpression();\n this._decimal = this.getDecimalExpression();\n this._decimalChar = this.getDecimalChar();\n this._suffix = this.getSuffixExpression();\n this._prefix = this.getPrefixExpression();\n this._index = d => index.get(d);\n }\n updateConstructParser() {\n if (this.initialized) {\n this.constructParser();\n }\n }\n escapeRegExp(text) {\n return text.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&');\n }\n getDecimalExpression() {\n const decimalChar = this.getDecimalChar();\n return new RegExp(`[${decimalChar}]`, 'g');\n }\n getDecimalChar() {\n const formatter = new Intl.NumberFormat(this.locale, {\n ...this.getOptions(),\n useGrouping: false\n });\n return formatter.format(1.1).replace(this._currency, '').trim().replace(this._numeral, '');\n }\n getGroupingExpression() {\n const formatter = new Intl.NumberFormat(this.locale, {\n useGrouping: true\n });\n this.groupChar = formatter.format(1000000).trim().replace(this._numeral, '').charAt(0);\n return new RegExp(`[${this.groupChar}]`, 'g');\n }\n getMinusSignExpression() {\n const formatter = new Intl.NumberFormat(this.locale, {\n useGrouping: false\n });\n return new RegExp(`[${formatter.format(-1).trim().replace(this._numeral, '')}]`, 'g');\n }\n getCurrencyExpression() {\n if (this.currency) {\n const formatter = new Intl.NumberFormat(this.locale, {\n style: 'currency',\n currency: this.currency,\n currencyDisplay: this.currencyDisplay,\n minimumFractionDigits: 0,\n maximumFractionDigits: 0\n });\n return new RegExp(`[${formatter.format(1).replace(/\\s/g, '').replace(this._numeral, '').replace(this._group, '')}]`, 'g');\n }\n return new RegExp(`[]`, 'g');\n }\n getPrefixExpression() {\n if (this.prefix) {\n this.prefixChar = this.prefix;\n } else {\n const formatter = new Intl.NumberFormat(this.locale, {\n style: this.mode,\n currency: this.currency,\n currencyDisplay: this.currencyDisplay\n });\n this.prefixChar = formatter.format(1).split('1')[0];\n }\n return new RegExp(`${this.escapeRegExp(this.prefixChar || '')}`, 'g');\n }\n getSuffixExpression() {\n if (this.suffix) {\n this.suffixChar = this.suffix;\n } else {\n const formatter = new Intl.NumberFormat(this.locale, {\n style: this.mode,\n currency: this.currency,\n currencyDisplay: this.currencyDisplay,\n minimumFractionDigits: 0,\n maximumFractionDigits: 0\n });\n this.suffixChar = formatter.format(1).split('1')[1];\n }\n return new RegExp(`${this.escapeRegExp(this.suffixChar || '')}`, 'g');\n }\n get isBlurUpdateOnMode() {\n return this.ngControl?.control?.updateOn === 'blur';\n }\n formatValue(value) {\n if (value != null) {\n if (value === '-') {\n // Minus sign\n return value;\n }\n if (this.format) {\n let formatter = new Intl.NumberFormat(this.locale, this.getOptions());\n let formattedValue = formatter.format(value);\n if (this.prefix && value != this.prefix) {\n formattedValue = this.prefix + formattedValue;\n }\n if (this.suffix && value != this.suffix) {\n formattedValue = formattedValue + this.suffix;\n }\n return formattedValue;\n }\n return value.toString();\n }\n return '';\n }\n parseValue(text) {\n const suffixRegex = new RegExp(this._suffix, '');\n const prefixRegex = new RegExp(this._prefix, '');\n const currencyRegex = new RegExp(this._currency, '');\n let filteredText = text.replace(suffixRegex, '').replace(prefixRegex, '').trim().replace(/\\s/g, '').replace(currencyRegex, '').replace(this._group, '').replace(this._minusSign, '-').replace(this._decimal, '.').replace(this._numeral, this._index);\n if (filteredText) {\n if (filteredText === '-')\n // Minus sign\n return filteredText;\n let parsedValue = +filteredText;\n return isNaN(parsedValue) ? null : parsedValue;\n }\n return null;\n }\n repeat(event, interval, dir) {\n if (this.readonly) {\n return;\n }\n let i = interval || 500;\n this.clearTimer();\n this.timer = setTimeout(() => {\n this.repeat(event, 40, dir);\n }, i);\n this.spin(event, dir);\n }\n spin(event, dir) {\n let step = this.step * dir;\n let currentValue = this.parseValue(this.input?.nativeElement.value) || 0;\n let newValue = this.validateValue(currentValue + step);\n if (this.maxlength && this.maxlength < this.formatValue(newValue).length) {\n return;\n }\n this.updateInput(newValue, null, 'spin', null);\n this.updateModel(event, newValue);\n this.handleOnInput(event, currentValue, newValue);\n }\n clear() {\n this.value = null;\n this.onModelChange(this.value);\n this.onClear.emit();\n }\n onUpButtonMouseDown(event) {\n if (event.button === 2) {\n this.clearTimer();\n return;\n }\n if (!this.disabled) {\n this.input?.nativeElement.focus();\n this.repeat(event, null, 1);\n event.preventDefault();\n }\n }\n onUpButtonMouseUp() {\n if (!this.disabled) {\n this.clearTimer();\n }\n }\n onUpButtonMouseLeave() {\n if (!this.disabled) {\n this.clearTimer();\n }\n }\n onUpButtonKeyDown(event) {\n if (event.keyCode === 32 || event.keyCode === 13) {\n this.repeat(event, null, 1);\n }\n }\n onUpButtonKeyUp() {\n if (!this.disabled) {\n this.clearTimer();\n }\n }\n onDownButtonMouseDown(event) {\n if (event.button === 2) {\n this.clearTimer();\n return;\n }\n if (!this.disabled) {\n this.input?.nativeElement.focus();\n this.repeat(event, null, -1);\n event.preventDefault();\n }\n }\n onDownButtonMouseUp() {\n if (!this.disabled) {\n this.clearTimer();\n }\n }\n onDownButtonMouseLeave() {\n if (!this.disabled) {\n this.clearTimer();\n }\n }\n onDownButtonKeyUp() {\n if (!this.disabled) {\n this.clearTimer();\n }\n }\n onDownButtonKeyDown(event) {\n if (event.keyCode === 32 || event.keyCode === 13) {\n this.repeat(event, null, -1);\n }\n }\n onUserInput(event) {\n if (this.readonly) {\n return;\n }\n if (this.isSpecialChar) {\n event.target.value = this.lastValue;\n }\n this.isSpecialChar = false;\n }\n onInputKeyDown(event) {\n if (this.readonly) {\n return;\n }\n this.lastValue = event.target.value;\n if (event.shiftKey || event.altKey) {\n this.isSpecialChar = true;\n return;\n }\n let selectionStart = event.target.selectionStart;\n let selectionEnd = event.target.selectionEnd;\n let inputValue = event.target.value;\n let newValueStr = null;\n if (event.altKey) {\n event.preventDefault();\n }\n switch (event.key) {\n case 'ArrowUp':\n this.spin(event, 1);\n event.preventDefault();\n break;\n case 'ArrowDown':\n this.spin(event, -1);\n event.preventDefault();\n break;\n case 'ArrowLeft':\n for (let index = selectionStart; index <= inputValue.length; index++) {\n const previousCharIndex = index === 0 ? 0 : index - 1;\n if (this.isNumeralChar(inputValue.charAt(previousCharIndex))) {\n this.input.nativeElement.setSelectionRange(index, index);\n break;\n }\n }\n break;\n case 'ArrowRight':\n for (let index = selectionEnd; index >= 0; index--) {\n if (this.isNumeralChar(inputValue.charAt(index))) {\n this.input.nativeElement.setSelectionRange(index, index);\n break;\n }\n }\n break;\n case 'Tab':\n case 'Enter':\n newValueStr = this.validateValue(this.parseValue(this.input.nativeElement.value));\n this.input.nativeElement.value = this.formatValue(newValueStr);\n this.input.nativeElement.setAttribute('aria-valuenow', newValueStr);\n this.updateModel(event, newValueStr);\n break;\n case 'Backspace':\n {\n event.preventDefault();\n if (selectionStart === selectionEnd) {\n if (selectionStart == 1 && this.prefix || selectionStart == inputValue.length && this.suffix) {\n break;\n }\n const deleteChar = inputValue.charAt(selectionStart - 1);\n const {\n decimalCharIndex,\n decimalCharIndexWithoutPrefix\n } = this.getDecimalCharIndexes(inputValue);\n if (this.isNumeralChar(deleteChar)) {\n const decimalLength = this.getDecimalLength(inputValue);\n if (this._group.test(deleteChar)) {\n this._group.lastIndex = 0;\n newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);\n } else if (this._decimal.test(deleteChar)) {\n this._decimal.lastIndex = 0;\n if (decimalLength) {\n this.input?.nativeElement.setSelectionRange(selectionStart - 1, selectionStart - 1);\n } else {\n newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);\n }\n } else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {\n const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';\n newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);\n } else if (decimalCharIndexWithoutPrefix === 1) {\n newValueStr = inputValue.slice(0, selectionStart - 1) + '0' + inputValue.slice(selectionStart);\n newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';\n } else {\n newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);\n }\n } else if (this.mode === 'currency' && deleteChar.search(this._currency) != -1) {\n newValueStr = inputValue.slice(1);\n }\n this.updateValue(event, newValueStr, null, 'delete-single');\n } else {\n newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);\n this.updateValue(event, newValueStr, null, 'delete-range');\n }\n break;\n }\n case 'Delete':\n event.preventDefault();\n if (selectionStart === selectionEnd) {\n if (selectionStart == 0 && this.prefix || selectionStart == inputValue.length - 1 && this.suffix) {\n break;\n }\n const deleteChar = inputValue.charAt(selectionStart);\n const {\n decimalCharIndex,\n decimalCharIndexWithoutPrefix\n } = this.getDecimalCharIndexes(inputValue);\n if (this.isNumeralChar(deleteChar)) {\n const decimalLength = this.getDecimalLength(inputValue);\n if (this._group.test(deleteChar)) {\n this._group.lastIndex = 0;\n newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);\n } else if (this._decimal.test(deleteChar)) {\n this._decimal.lastIndex = 0;\n if (decimalLength) {\n this.input?.nativeElement.setSelectionRange(selectionStart + 1, selectionStart + 1);\n } else {\n newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);\n }\n } else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {\n const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';\n newValueStr = inputValue.slice(0, selectionStart) + insertedText + inputValue.slice(selectionStart + 1);\n } else if (decimalCharIndexWithoutPrefix === 1) {\n newValueStr = inputValue.slice(0, selectionStart) + '0' + inputValue.slice(selectionStart + 1);\n newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';\n } else {\n newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);\n }\n }\n this.updateValue(event, newValueStr, null, 'delete-back-single');\n } else {\n newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);\n this.updateValue(event, newValueStr, null, 'delete-range');\n }\n break;\n case 'Home':\n if (this.min) {\n this.updateModel(event, this.min);\n event.preventDefault();\n }\n break;\n case 'End':\n if (this.max) {\n this.updateModel(event, this.max);\n event.preventDefault();\n }\n break;\n default:\n break;\n }\n this.onKeyDown.emit(event);\n }\n onInputKeyPress(event) {\n if (this.readonly) {\n return;\n }\n let code = event.which || event.keyCode;\n let char = String.fromCharCode(code);\n let isDecimalSign = this.isDecimalSign(char);\n const isMinusSign = this.isMinusSign(char);\n if (code != 13) {\n event.preventDefault();\n }\n if (!isDecimalSign && event.code === 'NumpadDecimal') {\n isDecimalSign = true;\n char = this._decimalChar;\n code = char.charCodeAt(0);\n }\n const newValue = this.parseValue(this.input.nativeElement.value + char);\n const newValueStr = newValue != null ? newValue.toString() : '';\n if (this.maxlength && this.getSelectedText()?.length == this.maxlength) {\n this.insert(event, char, {\n isDecimalSign,\n isMinusSign\n });\n return;\n }\n if (this.maxlength && newValueStr.length > this.maxlength) {\n return;\n }\n if (48 <= code && code <= 57 || isMinusSign || isDecimalSign) {\n this.insert(event, char, {\n isDecimalSign,\n isMinusSign\n });\n }\n }\n getSelectedText() {\n return window?.getSelection()?.toString().replaceAll(/[^0-9']/g, '') || '';\n }\n onPaste(event) {\n if (!this.disabled && !this.readonly) {\n event.preventDefault();\n let data = (event.clipboardData || this.document.defaultView['clipboardData']).getData('Text');\n if (data) {\n if (this.maxlength) {\n data = data.toString().substring(0, this.maxlength);\n }\n let filteredData = this.parseValue(data);\n if (filteredData != null) {\n this.insert(event, filteredData.toString());\n }\n }\n }\n }\n allowMinusSign() {\n return this.min == null || this.min < 0;\n }\n isMinusSign(char) {\n if (this._minusSign.test(char) || char === '-') {\n this._minusSign.lastIndex = 0;\n return true;\n }\n return false;\n }\n isDecimalSign(char) {\n if (this._decimal.test(char)) {\n this._decimal.lastIndex = 0;\n return true;\n }\n return false;\n }\n isDecimalMode() {\n return this.mode === 'decimal';\n }\n getDecimalCharIndexes(val) {\n let decimalCharIndex = val.search(this._decimal);\n this._decimal.lastIndex = 0;\n const filteredVal = val.replace(this._prefix, '').trim().replace(/\\s/g, '').replace(this._currency, '');\n const decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);\n this._decimal.lastIndex = 0;\n return {\n decimalCharIndex,\n decimalCharIndexWithoutPrefix\n };\n }\n getCharIndexes(val) {\n const decimalCharIndex = val.search(this._decimal);\n this._decimal.lastIndex = 0;\n const minusCharIndex = val.search(this._minusSign);\n this._minusSign.lastIndex = 0;\n const suffixCharIndex = val.search(this._suffix);\n this._suffix.lastIndex = 0;\n const currencyCharIndex = val.search(this._currency);\n this._currency.lastIndex = 0;\n return {\n decimalCharIndex,\n minusCharIndex,\n suffixCharIndex,\n currencyCharIndex\n };\n }\n insert(event, text, sign = {\n isDecimalSign: false,\n isMinusSign: false\n }) {\n const minusCharIndexOnText = text.search(this._minusSign);\n this._minusSign.lastIndex = 0;\n if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {\n return;\n }\n let selectionStart = this.input?.nativeElement.selectionStart;\n let selectionEnd = this.input?.nativeElement.selectionEnd;\n let inputValue = this.input?.nativeElement.value.trim();\n const {\n decimalCharIndex,\n minusCharIndex,\n suffixCharIndex,\n currencyCharIndex\n } = this.getCharIndexes(inputValue);\n let newValueStr;\n if (sign.isMinusSign) {\n if (selectionStart === 0) {\n newValueStr = inputValue;\n if (minusCharIndex === -1 || selectionEnd !== 0) {\n newValueStr = this.insertText(inputValue, text, 0, selectionEnd);\n }\n this.updateValue(event, newValueStr, text, 'insert');\n }\n } else if (sign.isDecimalSign) {\n if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {\n this.updateValue(event, inputValue, text, 'insert');\n } else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {\n newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);\n this.updateValue(event, newValueStr, text, 'insert');\n } else if (decimalCharIndex === -1 && this.maxFractionDigits) {\n newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);\n this.updateValue(event, newValueStr, text, 'insert');\n }\n } else {\n const maxFractionDigits = this.numberFormat.resolvedOptions().maximumFractionDigits;\n const operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';\n if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {\n if (selectionStart + text.length - (decimalCharIndex + 1) <= maxFractionDigits) {\n const charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length;\n newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);\n this.updateValue(event, newValueStr, text, operation);\n }\n } else {\n newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);\n this.updateValue(event, newValueStr, text, operation);\n }\n }\n }\n insertText(value, text, start, end) {\n let textSplit = text === '.' ? text : text.split('.');\n if (textSplit.length === 2) {\n const decimalCharIndex = value.slice(start, end).search(this._decimal);\n this._decimal.lastIndex = 0;\n return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : value || this.formatValue(text);\n } else if (end - start === value.length) {\n return this.formatValue(text);\n } else if (start === 0) {\n return text + value.slice(end);\n } else if (end === value.length) {\n return value.slice(0, start) + text;\n } else {\n return value.slice(0, start) + text + value.slice(end);\n }\n }\n deleteRange(value, start, end) {\n let newValueStr;\n if (end - start === value.length) newValueStr = '';else if (start === 0) newValueStr = value.slice(end);else if (end === value.length) newValueStr = value.slice(0, start);else newValueStr = value.slice(0, start) + value.slice(end);\n return newValueStr;\n }\n initCursor() {\n let selectionStart = this.input?.nativeElement.selectionStart;\n let selectionEnd = this.input?.nativeElement.selectionEnd;\n let inputValue = this.input?.nativeElement.value;\n let valueLength = inputValue.length;\n let index = null;\n // remove prefix\n let prefixLength = (this.prefixChar || '').length;\n inputValue = inputValue.replace(this._prefix, '');\n // Will allow selecting whole prefix. But not a part of it.\n // Negative values will trigger clauses after this to fix the cursor position.\n if (selectionStart === selectionEnd || selectionStart !== 0 || selectionEnd < prefixLength) {\n selectionStart -= prefixLength;\n }\n let char = inputValue.charAt(selectionStart);\n if (this.isNumeralChar(char)) {\n return selectionStart + prefixLength;\n }\n //left\n let i = selectionStart - 1;\n while (i >= 0) {\n char = inputValue.charAt(i);\n if (this.isNumeralChar(char)) {\n index = i + prefixLength;\n break;\n } else {\n i--;\n }\n }\n if (index !== null) {\n this.input?.nativeElement.setSelectionRange(index + 1, index + 1);\n } else {\n i = selectionStart;\n while (i < valueLength) {\n char = inputValue.charAt(i);\n if (this.isNumeralChar(char)) {\n index = i + prefixLength;\n break;\n } else {\n i++;\n }\n }\n if (index !== null) {\n this.input?.nativeElement.setSelectionRange(index, index);\n }\n }\n return index || 0;\n }\n onInputClick() {\n const currentValue = this.input?.nativeElement.value;\n if (!this.readonly && currentValue !== DomHandler.getSelection()) {\n this.initCursor();\n }\n }\n isNumeralChar(char) {\n if (char.length === 1 && (this._numeral.test(char) || this._decimal.test(char) || this._group.test(char) || this._minusSign.test(char))) {\n this.resetRegex();\n return true;\n }\n return false;\n }\n resetRegex() {\n this._numeral.lastIndex = 0;\n this._decimal.lastIndex = 0;\n this._group.lastIndex = 0;\n this._minusSign.lastIndex = 0;\n }\n updateValue(event, valueStr, insertedValueStr, operation) {\n let currentValue = this.input?.nativeElement.value;\n let newValue = null;\n if (valueStr != null) {\n newValue = this.parseValue(valueStr);\n newValue = !newValue && !this.allowEmpty ? 0 : newValue;\n this.updateInput(newValue, insertedValueStr, operation, valueStr);\n this.handleOnInput(event, currentValue, newValue);\n }\n }\n handleOnInput(event, currentValue, newValue) {\n if (this.isValueChanged(currentValue, newValue)) {\n this.input.nativeElement.value = this.formatValue(newValue);\n this.input?.nativeElement.setAttribute('aria-valuenow', newValue);\n !this.isBlurUpdateOnMode && this.updateModel(event, newValue);\n this.onInput.emit({\n originalEvent: event,\n value: newValue,\n formattedValue: currentValue\n });\n }\n }\n isValueChanged(currentValue, newValue) {\n if (newValue === null && currentValue !== null) {\n return true;\n }\n if (newValue != null) {\n let parsedCurrentValue = typeof currentValue === 'string' ? this.parseValue(currentValue) : currentValue;\n return newValue !== parsedCurrentValue;\n }\n return false;\n }\n validateValue(value) {\n if (value === '-' || value == null) {\n return null;\n }\n if (this.min != null && value < this.min) {\n return this.min;\n }\n if (this.max != null && value > this.max) {\n return this.max;\n }\n return value;\n }\n updateInput(value, insertedValueStr, operation, valueStr) {\n insertedValueStr = insertedValueStr || '';\n let inputValue = this.input?.nativeElement.value;\n let newValue = this.formatValue(value);\n let currentLength = inputValue.length;\n if (newValue !== valueStr) {\n newValue = this.concatValues(newValue, valueStr);\n }\n if (currentLength === 0) {\n this.input.nativeElement.value = newValue;\n this.input.nativeElement.setSelectionRange(0, 0);\n const index = this.initCursor();\n const selectionEnd = index + insertedValueStr.length;\n this.input.nativeElement.setSelectionRange(selectionEnd, selectionEnd);\n } else {\n let selectionStart = this.input.nativeElement.selectionStart;\n let selectionEnd = this.input.nativeElement.selectionEnd;\n if (this.maxlength && newValue.length > this.maxlength) {\n newValue = newValue.slice(0, this.maxlength);\n selectionStart = Math.min(selectionStart, this.maxlength);\n selectionEnd = Math.min(selectionEnd, this.maxlength);\n }\n if (this.maxlength && this.maxlength < newValue.length) {\n return;\n }\n this.input.nativeElement.value = newValue;\n let newLength = newValue.length;\n if (operation === 'range-insert') {\n const startValue = this.parseValue((inputValue || '').slice(0, selectionStart));\n const startValueStr = startValue !== null ? startValue.toString() : '';\n const startExpr = startValueStr.split('').join(`(${this.groupChar})?`);\n const sRegex = new RegExp(startExpr, 'g');\n sRegex.test(newValue);\n const tExpr = insertedValueStr.split('').join(`(${this.groupChar})?`);\n const tRegex = new RegExp(tExpr, 'g');\n tRegex.test(newValue.slice(sRegex.lastIndex));\n selectionEnd = sRegex.lastIndex + tRegex.lastIndex;\n this.input.nativeElement.setSelectionRange(selectionEnd, selectionEnd);\n } else if (newLength === currentLength) {\n if (operation === 'insert' || operation === 'delete-back-single') this.input.nativeElement.setSelectionRange(selectionEnd + 1, selectionEnd + 1);else if (operation === 'delete-single') this.input.nativeElement.setSelectionRange(selectionEnd - 1, selectionEnd - 1);else if (operation === 'delete-range' || operation === 'spin') this.input.nativeElement.setSelectionRange(selectionEnd, selectionEnd);\n } else if (operation === 'delete-back-single') {\n let prevChar = inputValue.charAt(selectionEnd - 1);\n let nextChar = inputValue.charAt(selectionEnd);\n let diff = currentLength - newLength;\n let isGroupChar = this._group.test(nextChar);\n if (isGroupChar && diff === 1) {\n selectionEnd += 1;\n } else if (!isGroupChar && this.isNumeralChar(prevChar)) {\n selectionEnd += -1 * diff + 1;\n }\n this._group.lastIndex = 0;\n this.input.nativeElement.setSelectionRange(selectionEnd, selectionEnd);\n } else if (inputValue === '-' && operation === 'insert') {\n this.input.nativeElement.setSelectionRange(0, 0);\n const index = this.initCursor();\n const selectionEnd = index + insertedValueStr.length + 1;\n this.input.nativeElement.setSelectionRange(selectionEnd, selectionEnd);\n } else {\n selectionEnd = selectionEnd + (newLength - currentLength);\n this.input.nativeElement.setSelectionRange(selectionEnd, selectionEnd);\n }\n }\n this.input.nativeElement.setAttribute('aria-valuenow', value);\n }\n concatValues(val1, val2) {\n if (val1 && val2) {\n let decimalCharIndex = val2.search(this._decimal);\n this._decimal.lastIndex = 0;\n if (this.suffixChar) {\n return decimalCharIndex !== -1 ? val1 : val1.replace(this.suffixChar, '').split(this._decimal)[0] + val2.replace(this.suffixChar, '').slice(decimalCharIndex) + this.suffixChar;\n } else {\n return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;\n }\n }\n return val1;\n }\n getDecimalLength(value) {\n if (value) {\n const valueSplit = value.split(this._decimal);\n if (valueSplit.length === 2) {\n return valueSplit[1].replace(this._suffix, '').trim().replace(/\\s/g, '').replace(this._currency, '').length;\n }\n }\n return 0;\n }\n onInputFocus(event) {\n this.focused = true;\n this.onFocus.emit(event);\n }\n onInputBlur(event) {\n this.focused = false;\n const newValueNumber = this.validateValue(this.parseValue(this.input.nativeElement.value));\n const newValueString = newValueNumber?.toString();\n this.input.nativeElement.value = this.formatValue(newValueString);\n this.input.nativeElement.setAttribute('aria-valuenow', newValueString);\n this.updateModel(event, newValueNumber);\n this.onBlur.emit(event);\n }\n formattedValue() {\n const val = !this.value && !this.allowEmpty ? 0 : this.value;\n return this.formatValue(val);\n }\n updateModel(event, value) {\n if (this.value !== value) {\n this.value = value;\n if (!(this.isBlurUpdateOnMode && this.focused)) {\n this.onModelChange(value);\n } else if (this.isBlurUpdateOnMode) {\n this.onModelChange(value);\n }\n }\n this.onModelTouched();\n }\n writeValue(value) {\n this.value = value;\n this.cd.markForCheck();\n }\n registerOnChange(fn) {\n this.onModelChange = fn;\n }\n registerOnTouched(fn) {\n this.onModelTouched = fn;\n }\n setDisabledState(val) {\n this.disabled = val;\n this.cd.markForCheck();\n }\n get filled() {\n return this.value != null && this.value.toString().length > 0;\n }\n clearTimer() {\n if (this.timer) {\n clearInterval(this.timer);\n }\n }\n static ɵfac = function InputNumber_Factory(t) {\n return new (t || InputNumber)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.PrimeNGConfig));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: InputNumber,\n selectors: [[\"p-inputNumber\"]],\n contentQueries: function InputNumber_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n }\n },\n viewQuery: function InputNumber_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c0, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.input = _t.first);\n }\n },\n hostAttrs: [1, \"p-element\", \"p-inputwrapper\"],\n hostVars: 6,\n hostBindings: function InputNumber_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵclassProp(\"p-inputwrapper-filled\", ctx.filled)(\"p-inputwrapper-focus\", ctx.focused)(\"p-inputnumber-clearable\", ctx.showClear && ctx.buttonLayout != \"vertical\");\n }\n },\n inputs: {\n showButtons: [2, \"showButtons\", \"showButtons\", booleanAttribute],\n format: [2, \"format\", \"format\", booleanAttribute],\n buttonLayout: \"buttonLayout\",\n inputId: \"inputId\",\n styleClass: \"styleClass\",\n style: \"style\",\n placeholder: \"placeholder\",\n size: [2, \"size\", \"size\", numberAttribute],\n maxlength: [2, \"maxlength\", \"maxlength\", numberAttribute],\n tabindex: [2, \"tabindex\", \"tabindex\", numberAttribute],\n title: \"title\",\n ariaLabelledBy: \"ariaLabelledBy\",\n ariaLabel: \"ariaLabel\",\n ariaRequired: [2, \"ariaRequired\", \"ariaRequired\", booleanAttribute],\n name: \"name\",\n required: [2, \"required\", \"required\", booleanAttribute],\n autocomplete: \"autocomplete\",\n min: [2, \"min\", \"min\", numberAttribute],\n max: [2, \"max\", \"max\", numberAttribute],\n incrementButtonClass: \"incrementButtonClass\",\n decrementButtonClass: \"decrementButtonClass\",\n incrementButtonIcon: \"incrementButtonIcon\",\n decrementButtonIcon: \"decrementButtonIcon\",\n readonly: [2, \"readonly\", \"readonly\", booleanAttribute],\n step: [2, \"step\", \"step\", numberAttribute],\n allowEmpty: [2, \"allowEmpty\", \"allowEmpty\", booleanAttribute],\n locale: \"locale\",\n localeMatcher: \"localeMatcher\",\n mode: \"mode\",\n currency: \"currency\",\n currencyDisplay: \"currencyDisplay\",\n useGrouping: [2, \"useGrouping\", \"useGrouping\", booleanAttribute],\n variant: \"variant\",\n minFractionDigits: [2, \"minFractionDigits\", \"minFractionDigits\", value => numberAttribute(value, null)],\n maxFractionDigits: [2, \"maxFractionDigits\", \"maxFractionDigits\", value => numberAttribute(value, null)],\n prefix: \"prefix\",\n suffix: \"suffix\",\n inputStyle: \"inputStyle\",\n inputStyleClass: \"inputStyleClass\",\n showClear: [2, \"showClear\", \"showClear\", booleanAttribute],\n autofocus: [2, \"autofocus\", \"autofocus\", booleanAttribute],\n disabled: \"disabled\"\n },\n outputs: {\n onInput: \"onInput\",\n onFocus: \"onFocus\",\n onBlur: \"onBlur\",\n onKeyDown: \"onKeyDown\",\n onClear: \"onClear\"\n },\n features: [i0.ɵɵProvidersFeature([INPUTNUMBER_VALUE_ACCESSOR]), i0.ɵɵInputTransformsFeature, i0.ɵɵNgOnChangesFeature],\n decls: 7,\n vars: 43,\n consts: [[\"input\", \"\"], [3, \"ngClass\", \"ngStyle\"], [\"pInputText\", \"\", \"role\", \"spinbutton\", \"inputmode\", \"decimal\", \"pAutoFocus\", \"\", 3, \"input\", \"keydown\", \"keypress\", \"paste\", \"click\", \"focus\", \"blur\", \"ngClass\", \"ngStyle\", \"value\", \"disabled\", \"readonly\", \"autofocus\"], [4, \"ngIf\"], [\"class\", \"p-inputnumber-button-group\", 4, \"ngIf\"], [\"type\", \"button\", \"pButton\", \"\", \"class\", \"p-button-icon-only\", \"tabindex\", \"-1\", 3, \"ngClass\", \"class\", \"disabled\", \"mousedown\", \"mouseup\", \"mouseleave\", \"keydown\", \"keyup\", 4, \"ngIf\"], [3, \"ngClass\", \"click\", 4, \"ngIf\"], [\"class\", \"p-inputnumber-clear-icon\", 3, \"click\", 4, \"ngIf\"], [3, \"click\", \"ngClass\"], [1, \"p-inputnumber-clear-icon\", 3, \"click\"], [4, \"ngTemplateOutlet\"], [1, \"p-inputnumber-button-group\"], [\"type\", \"button\", \"pButton\", \"\", \"tabindex\", \"-1\", 1, \"p-button-icon-only\", 3, \"mousedown\", \"mouseup\", \"mouseleave\", \"keydown\", \"keyup\", \"ngClass\", \"disabled\"], [3, \"ngClass\", 4, \"ngIf\"], [3, \"ngClass\"]],\n template: function InputNumber_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"span\", 1)(1, \"input\", 2, 0);\n i0.ɵɵlistener(\"input\", function InputNumber_Template_input_input_1_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onUserInput($event));\n })(\"keydown\", function InputNumber_Template_input_keydown_1_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onInputKeyDown($event));\n })(\"keypress\", function InputNumber_Template_input_keypress_1_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onInputKeyPress($event));\n })(\"paste\", function InputNumber_Template_input_paste_1_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onPaste($event));\n })(\"click\", function InputNumber_Template_input_click_1_listener() {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onInputClick());\n })(\"focus\", function InputNumber_Template_input_focus_1_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onInputFocus($event));\n })(\"blur\", function InputNumber_Template_input_blur_1_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onInputBlur($event));\n });\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(3, InputNumber_ng_container_3_Template, 3, 2, \"ng-container\", 3)(4, InputNumber_span_4_Template, 7, 19, \"span\", 4)(5, InputNumber_button_5_Template, 3, 9, \"button\", 5)(6, InputNumber_button_6_Template, 3, 9, \"button\", 5);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.styleClass);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(39, _c1, ctx.showButtons && ctx.buttonLayout === \"stacked\", ctx.showButtons && ctx.buttonLayout === \"horizontal\", ctx.showButtons && ctx.buttonLayout === \"vertical\"))(\"ngStyle\", ctx.style);\n i0.ɵɵattribute(\"data-pc-name\", \"inputnumber\")(\"data-pc-section\", \"root\");\n i0.ɵɵadvance();\n i0.ɵɵclassMap(ctx.inputStyleClass);\n i0.ɵɵclassProp(\"p-variant-filled\", ctx.variant === \"filled\" || ctx.config.inputStyle() === \"filled\");\n i0.ɵɵproperty(\"ngClass\", \"p-inputnumber-input\")(\"ngStyle\", ctx.inputStyle)(\"value\", ctx.formattedValue())(\"disabled\", ctx.disabled)(\"readonly\", ctx.readonly)(\"autofocus\", ctx.autofocus);\n i0.ɵɵattribute(\"id\", ctx.inputId)(\"variant\", ctx.variant)(\"aria-valuemin\", ctx.min)(\"aria-valuemax\", ctx.max)(\"aria-valuenow\", ctx.value)(\"placeholder\", ctx.placeholder)(\"aria-label\", ctx.ariaLabel)(\"aria-labelledby\", ctx.ariaLabelledBy)(\"title\", ctx.title)(\"size\", ctx.size)(\"name\", ctx.name)(\"autocomplete\", ctx.autocomplete)(\"maxlength\", ctx.maxlength)(\"tabindex\", ctx.tabindex)(\"aria-required\", ctx.ariaRequired)(\"required\", ctx.required)(\"min\", ctx.min)(\"max\", ctx.max)(\"data-pc-section\", \"input\");\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx.buttonLayout != \"vertical\" && ctx.showClear && ctx.value);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.showButtons && ctx.buttonLayout === \"stacked\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.showButtons && ctx.buttonLayout !== \"stacked\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.showButtons && ctx.buttonLayout !== \"stacked\");\n }\n },\n dependencies: () => [i2.NgClass, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i3.InputText, i4.ButtonDirective, i5.AutoFocus, TimesIcon, AngleUpIcon, AngleDownIcon],\n styles: [\"@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}\\n\"],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n return InputNumber;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet InputNumberModule = /*#__PURE__*/(() => {\n class InputNumberModule {\n static ɵfac = function InputNumberModule_Factory(t) {\n return new (t || InputNumberModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: InputNumberModule\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [CommonModule, InputTextModule, ButtonModule, AutoFocusModule, TimesIcon, AngleUpIcon, AngleDownIcon, SharedModule]\n });\n }\n return InputNumberModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { INPUTNUMBER_VALUE_ACCESSOR, InputNumber, InputNumberModule };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet ChevronLeftIcon = /*#__PURE__*/(() => {\n class ChevronLeftIcon extends BaseIcon {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵChevronLeftIcon_BaseFactory;\n return function ChevronLeftIcon_Factory(t) {\n return (ɵChevronLeftIcon_BaseFactory || (ɵChevronLeftIcon_BaseFactory = i0.ɵɵgetInheritedFactory(ChevronLeftIcon)))(t || ChevronLeftIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ChevronLeftIcon,\n selectors: [[\"ChevronLeftIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 2,\n vars: 5,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z\", \"fill\", \"currentColor\"]],\n template: function ChevronLeftIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵelement(1, \"path\", 1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n }\n },\n encapsulation: 2\n });\n }\n return ChevronLeftIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ChevronLeftIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet ChevronRightIcon = /*#__PURE__*/(() => {\n class ChevronRightIcon extends BaseIcon {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵChevronRightIcon_BaseFactory;\n return function ChevronRightIcon_Factory(t) {\n return (ɵChevronRightIcon_BaseFactory || (ɵChevronRightIcon_BaseFactory = i0.ɵɵgetInheritedFactory(ChevronRightIcon)))(t || ChevronRightIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ChevronRightIcon,\n selectors: [[\"ChevronRightIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 2,\n vars: 5,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z\", \"fill\", \"currentColor\"]],\n template: function ChevronRightIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵelement(1, \"path\", 1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n }\n },\n encapsulation: 2\n });\n }\n return ChevronRightIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ChevronRightIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet ChevronUpIcon = /*#__PURE__*/(() => {\n class ChevronUpIcon extends BaseIcon {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵChevronUpIcon_BaseFactory;\n return function ChevronUpIcon_Factory(t) {\n return (ɵChevronUpIcon_BaseFactory || (ɵChevronUpIcon_BaseFactory = i0.ɵɵgetInheritedFactory(ChevronUpIcon)))(t || ChevronUpIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ChevronUpIcon,\n selectors: [[\"ChevronUpIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 2,\n vars: 5,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z\", \"fill\", \"currentColor\"]],\n template: function ChevronUpIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵelement(1, \"path\", 1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n }\n },\n encapsulation: 2\n });\n }\n return ChevronUpIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ChevronUpIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet CalendarIcon = /*#__PURE__*/(() => {\n class CalendarIcon extends BaseIcon {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵCalendarIcon_BaseFactory;\n return function CalendarIcon_Factory(t) {\n return (ɵCalendarIcon_BaseFactory || (ɵCalendarIcon_BaseFactory = i0.ɵɵgetInheritedFactory(CalendarIcon)))(t || CalendarIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: CalendarIcon,\n selectors: [[\"CalendarIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 2,\n vars: 5,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z\", \"fill\", \"currentColor\"]],\n template: function CalendarIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵelement(1, \"path\", 1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n }\n },\n encapsulation: 2\n });\n }\n return CalendarIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CalendarIcon };\n","import { trigger, state, style, transition, animate } from '@angular/animations';\nimport * as i2 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { forwardRef, EventEmitter, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Input, Output, ContentChildren, ViewChild, NgModule } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport * as i1 from 'primeng/api';\nimport { TranslationKeys, PrimeTemplate, SharedModule } from 'primeng/api';\nimport * as i3 from 'primeng/button';\nimport { ButtonModule } from 'primeng/button';\nimport { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';\nimport * as i4 from 'primeng/ripple';\nimport { RippleModule } from 'primeng/ripple';\nimport { UniqueComponentId, ObjectUtils, ZIndexUtils } from 'primeng/utils';\nimport { ChevronLeftIcon } from 'primeng/icons/chevronleft';\nimport { ChevronRightIcon } from 'primeng/icons/chevronright';\nimport { ChevronUpIcon } from 'primeng/icons/chevronup';\nimport { ChevronDownIcon } from 'primeng/icons/chevrondown';\nimport { TimesIcon } from 'primeng/icons/times';\nimport { CalendarIcon } from 'primeng/icons/calendar';\nimport * as i5 from 'primeng/autofocus';\nimport { AutoFocusModule } from 'primeng/autofocus';\nconst _c0 = [\"container\"];\nconst _c1 = [\"inputfield\"];\nconst _c2 = [\"contentWrapper\"];\nconst _c3 = [[[\"p-header\"]], [[\"p-footer\"]]];\nconst _c4 = [\"p-header\", \"p-footer\"];\nconst _c5 = (a0, a1, a2, a3, a4) => ({\n \"p-calendar\": true,\n \"p-input-icon-right\": a0,\n \"p-calendar-w-btn\": a1,\n \"p-calendar-timeonly\": a2,\n \"p-calendar-disabled\": a3,\n \"p-focus\": a4\n});\nconst _c6 = a0 => ({\n clickCallBack: a0\n});\nconst _c7 = a0 => ({\n \"p-datepicker-icon\": a0\n});\nconst _c8 = (a0, a1, a2, a3, a4, a5) => ({\n \"p-datepicker p-component\": true,\n \"p-datepicker-inline\": a0,\n \"p-disabled\": a1,\n \"p-datepicker-timeonly\": a2,\n \"p-datepicker-multiple-month\": a3,\n \"p-datepicker-monthpicker\": a4,\n \"p-datepicker-touch-ui\": a5\n});\nconst _c9 = (a0, a1) => ({\n showTransitionParams: a0,\n hideTransitionParams: a1\n});\nconst _c10 = a0 => ({\n value: \"visibleTouchUI\",\n params: a0\n});\nconst _c11 = a0 => ({\n value: \"visible\",\n params: a0\n});\nconst _c12 = a0 => ({\n $implicit: a0\n});\nconst _c13 = (a0, a1) => ({\n \"p-datepicker-other-month\": a0,\n \"p-datepicker-today\": a1\n});\nconst _c14 = (a0, a1) => ({\n \"p-highlight p-datepicker-current-day\": a0,\n \"p-disabled\": a1\n});\nconst _c15 = (a0, a1) => ({\n \"p-highlight\": a0,\n \"p-disabled\": a1\n});\nconst _c16 = a0 => [a0];\nfunction Calendar_ng_template_2_ng_container_2_TimesIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r3 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"TimesIcon\", 11);\n i0.ɵɵlistener(\"click\", function Calendar_ng_template_2_ng_container_2_TimesIcon_1_Template_TimesIcon_click_0_listener() {\n i0.ɵɵrestoreView(_r3);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.clear());\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-calendar-clear-icon\");\n }\n}\nfunction Calendar_ng_template_2_ng_container_2_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction Calendar_ng_template_2_ng_container_2_span_2_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Calendar_ng_template_2_ng_container_2_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Calendar_ng_template_2_ng_container_2_span_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r4 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"span\", 12);\n i0.ɵɵlistener(\"click\", function Calendar_ng_template_2_ng_container_2_span_2_Template_span_click_0_listener() {\n i0.ɵɵrestoreView(_r4);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.clear());\n });\n i0.ɵɵtemplate(1, Calendar_ng_template_2_ng_container_2_span_2_1_Template, 1, 0, null, 13);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.clearIconTemplate);\n }\n}\nfunction Calendar_ng_template_2_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Calendar_ng_template_2_ng_container_2_TimesIcon_1_Template, 1, 1, \"TimesIcon\", 9)(2, Calendar_ng_template_2_ng_container_2_span_2_Template, 2, 1, \"span\", 10);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.clearIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.clearIconTemplate);\n }\n}\nfunction Calendar_ng_template_2_button_3_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 16);\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngClass\", ctx_r1.icon);\n }\n}\nfunction Calendar_ng_template_2_button_3_ng_container_2_CalendarIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"CalendarIcon\");\n }\n}\nfunction Calendar_ng_template_2_button_3_ng_container_2_2_ng_template_0_Template(rf, ctx) {}\nfunction Calendar_ng_template_2_button_3_ng_container_2_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Calendar_ng_template_2_button_3_ng_container_2_2_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Calendar_ng_template_2_button_3_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Calendar_ng_template_2_button_3_ng_container_2_CalendarIcon_1_Template, 1, 0, \"CalendarIcon\", 7)(2, Calendar_ng_template_2_button_3_ng_container_2_2_Template, 1, 0, null, 13);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.triggerIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.triggerIconTemplate);\n }\n}\nfunction Calendar_ng_template_2_button_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r5 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 14);\n i0.ɵɵlistener(\"click\", function Calendar_ng_template_2_button_3_Template_button_click_0_listener($event) {\n i0.ɵɵrestoreView(_r5);\n i0.ɵɵnextContext();\n const inputfield_r6 = i0.ɵɵreference(1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onButtonClick($event, inputfield_r6));\n });\n i0.ɵɵtemplate(1, Calendar_ng_template_2_button_3_span_1_Template, 1, 1, \"span\", 15)(2, Calendar_ng_template_2_button_3_ng_container_2_Template, 3, 2, \"ng-container\", 7);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n let tmp_6_0;\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"disabled\", ctx_r1.disabled);\n i0.ɵɵattribute(\"aria-label\", ctx_r1.iconButtonAriaLabel)(\"aria-expanded\", (tmp_6_0 = ctx_r1.overlayVisible) !== null && tmp_6_0 !== undefined ? tmp_6_0 : false)(\"aria-controls\", ctx_r1.overlayVisible ? ctx_r1.panelId : null);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.icon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.icon);\n }\n}\nfunction Calendar_ng_template_2_ng_container_4_CalendarIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r7 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"CalendarIcon\", 19);\n i0.ɵɵlistener(\"click\", function Calendar_ng_template_2_ng_container_4_CalendarIcon_1_Template_CalendarIcon_click_0_listener($event) {\n i0.ɵɵrestoreView(_r7);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onButtonClick($event));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(1, _c7, ctx_r1.showOnFocus));\n }\n}\nfunction Calendar_ng_template_2_ng_container_4_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Calendar_ng_template_2_ng_container_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Calendar_ng_template_2_ng_container_4_CalendarIcon_1_Template, 1, 3, \"CalendarIcon\", 17)(2, Calendar_ng_template_2_ng_container_4_ng_container_2_Template, 1, 0, \"ng-container\", 18);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.inputIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.inputIconTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(3, _c6, ctx_r1.onButtonClick.bind(ctx_r1)));\n }\n}\nfunction Calendar_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"input\", 6, 1);\n i0.ɵɵlistener(\"focus\", function Calendar_ng_template_2_Template_input_focus_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onInputFocus($event));\n })(\"keydown\", function Calendar_ng_template_2_Template_input_keydown_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onInputKeydown($event));\n })(\"click\", function Calendar_ng_template_2_Template_input_click_0_listener() {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onInputClick());\n })(\"blur\", function Calendar_ng_template_2_Template_input_blur_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onInputBlur($event));\n })(\"input\", function Calendar_ng_template_2_Template_input_input_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onUserInput($event));\n });\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(2, Calendar_ng_template_2_ng_container_2_Template, 3, 2, \"ng-container\", 7)(3, Calendar_ng_template_2_button_3_Template, 3, 6, \"button\", 8)(4, Calendar_ng_template_2_ng_container_4_Template, 3, 5, \"ng-container\", 7);\n }\n if (rf & 2) {\n let tmp_15_0;\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵclassMap(ctx_r1.inputStyleClass);\n i0.ɵɵproperty(\"value\", ctx_r1.inputFieldValue)(\"readonly\", ctx_r1.readonlyInput)(\"ngStyle\", ctx_r1.inputStyle)(\"placeholder\", ctx_r1.placeholder || \"\")(\"disabled\", ctx_r1.disabled)(\"ngClass\", ctx_r1.inputClass)(\"autofocus\", ctx_r1.autofocus);\n i0.ɵɵattribute(\"id\", ctx_r1.inputId)(\"name\", ctx_r1.name)(\"required\", ctx_r1.required)(\"aria-required\", ctx_r1.required)(\"aria-expanded\", (tmp_15_0 = ctx_r1.overlayVisible) !== null && tmp_15_0 !== undefined ? tmp_15_0 : false)(\"aria-controls\", ctx_r1.overlayVisible ? ctx_r1.panelId : null)(\"aria-labelledby\", ctx_r1.ariaLabelledBy)(\"aria-label\", ctx_r1.ariaLabel)(\"tabindex\", ctx_r1.tabindex)(\"inputmode\", ctx_r1.touchUI ? \"off\" : null);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showClear && !ctx_r1.disabled && ctx_r1.value != null);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showIcon && ctx_r1.iconDisplay === \"button\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.iconDisplay === \"input\" && ctx_r1.showIcon);\n }\n}\nfunction Calendar_div_3_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_button_2_ChevronLeftIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ChevronLeftIcon\", 40);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-datepicker-prev-icon\");\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_button_2_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction Calendar_div_3_ng_container_4_div_2_button_2_span_2_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Calendar_div_3_ng_container_4_div_2_button_2_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_button_2_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 41);\n i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_button_2_span_2_1_Template, 1, 0, null, 13);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(5);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.previousIconTemplate);\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_button_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r10 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 38);\n i0.ɵɵlistener(\"keydown\", function Calendar_div_3_ng_container_4_div_2_button_2_Template_button_keydown_0_listener($event) {\n i0.ɵɵrestoreView(_r10);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n })(\"click\", function Calendar_div_3_ng_container_4_div_2_button_2_Template_button_click_0_listener($event) {\n i0.ɵɵrestoreView(_r10);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onPrevButtonClick($event));\n });\n i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_button_2_ChevronLeftIcon_1_Template, 1, 1, \"ChevronLeftIcon\", 35)(2, Calendar_div_3_ng_container_4_div_2_button_2_span_2_Template, 2, 1, \"span\", 39);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵattribute(\"aria-label\", ctx_r1.prevIconAriaLabel);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.previousIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.previousIconTemplate);\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_button_4_Template(rf, ctx) {\n if (rf & 1) {\n const _r11 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 42);\n i0.ɵɵlistener(\"click\", function Calendar_div_3_ng_container_4_div_2_button_4_Template_button_click_0_listener($event) {\n i0.ɵɵrestoreView(_r11);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.switchToMonthView($event));\n })(\"keydown\", function Calendar_div_3_ng_container_4_div_2_button_4_Template_button_keydown_0_listener($event) {\n i0.ɵɵrestoreView(_r11);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n });\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const month_r12 = i0.ɵɵnextContext().$implicit;\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"disabled\", ctx_r1.switchViewButtonDisabled());\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getTranslation(\"chooseMonth\"));\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.getMonthName(month_r12.month), \" \");\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_button_5_Template(rf, ctx) {\n if (rf & 1) {\n const _r13 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 43);\n i0.ɵɵlistener(\"click\", function Calendar_div_3_ng_container_4_div_2_button_5_Template_button_click_0_listener($event) {\n i0.ɵɵrestoreView(_r13);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.switchToYearView($event));\n })(\"keydown\", function Calendar_div_3_ng_container_4_div_2_button_5_Template_button_keydown_0_listener($event) {\n i0.ɵɵrestoreView(_r13);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n });\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const month_r12 = i0.ɵɵnextContext().$implicit;\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"disabled\", ctx_r1.switchViewButtonDisabled());\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getTranslation(\"chooseYear\"));\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.getYear(month_r12), \" \");\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_span_6_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(5);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate2(\"\", ctx_r1.yearPickerValues()[0], \" - \", ctx_r1.yearPickerValues()[ctx_r1.yearPickerValues().length - 1], \"\");\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_span_6_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_span_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 44);\n i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_span_6_ng_container_1_Template, 2, 2, \"ng-container\", 7)(2, Calendar_div_3_ng_container_4_div_2_span_6_ng_container_2_Template, 1, 0, \"ng-container\", 18);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.decadeTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.decadeTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(3, _c12, ctx_r1.yearPickerValues));\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_ChevronRightIcon_8_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ChevronRightIcon\", 40);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-datepicker-next-icon\");\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_span_9_1_ng_template_0_Template(rf, ctx) {}\nfunction Calendar_div_3_ng_container_4_div_2_span_9_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Calendar_div_3_ng_container_4_div_2_span_9_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_span_9_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 45);\n i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_span_9_1_Template, 1, 0, null, 13);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.nextIconTemplate);\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_div_10_th_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"th\", 51)(1, \"span\");\n i0.ɵɵtext(2);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(5);\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate(ctx_r1.getTranslation(\"weekHeader\"));\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_div_10_th_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"th\", 52)(1, \"span\");\n i0.ɵɵtext(2);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const weekDay_r14 = ctx.$implicit;\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate(weekDay_r14);\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"td\", 55)(1, \"span\", 56);\n i0.ɵɵtext(2);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const j_r15 = i0.ɵɵnextContext().index;\n const month_r12 = i0.ɵɵnextContext(2).$implicit;\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate1(\" \", month_r12.weekNumbers[j_r15], \" \");\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const date_r17 = i0.ɵɵnextContext(2).$implicit;\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(date_r17.day);\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_3_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_3_ng_container_1_Template, 1, 0, \"ng-container\", 18);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const date_r17 = i0.ɵɵnextContext(2).$implicit;\n const ctx_r1 = i0.ɵɵnextContext(6);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.dateTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c12, date_r17));\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_4_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_4_ng_container_1_Template, 1, 0, \"ng-container\", 18);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const date_r17 = i0.ɵɵnextContext(2).$implicit;\n const ctx_r1 = i0.ɵɵnextContext(6);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.disabledDateTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c12, date_r17));\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_div_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 59);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const date_r17 = i0.ɵɵnextContext(2).$implicit;\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", date_r17.day, \" \");\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r16 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵelementStart(1, \"span\", 57);\n i0.ɵɵlistener(\"click\", function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_Template_span_click_1_listener($event) {\n i0.ɵɵrestoreView(_r16);\n const date_r17 = i0.ɵɵnextContext().$implicit;\n const ctx_r1 = i0.ɵɵnextContext(6);\n return i0.ɵɵresetView(ctx_r1.onDateSelect($event, date_r17));\n })(\"keydown\", function Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_Template_span_keydown_1_listener($event) {\n i0.ɵɵrestoreView(_r16);\n const date_r17 = i0.ɵɵnextContext().$implicit;\n const i_r18 = i0.ɵɵnextContext(3).index;\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onDateCellKeydown($event, date_r17, i_r18));\n });\n i0.ɵɵtemplate(2, Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_2_Template, 2, 1, \"ng-container\", 7)(3, Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_3_Template, 2, 4, \"ng-container\", 7)(4, Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_4_Template, 2, 4, \"ng-container\", 7);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(5, Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_div_5_Template, 2, 1, \"div\", 58);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const date_r17 = i0.ɵɵnextContext().$implicit;\n const ctx_r1 = i0.ɵɵnextContext(6);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(6, _c14, ctx_r1.isSelected(date_r17) && date_r17.selectable, !date_r17.selectable));\n i0.ɵɵattribute(\"data-date\", ctx_r1.formatDateKey(ctx_r1.formatDateMetaToDate(date_r17)));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.dateTemplate && (date_r17.selectable || !ctx_r1.disabledDateTemplate));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", date_r17.selectable || !ctx_r1.disabledDateTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !date_r17.selectable);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.isSelected(date_r17));\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"td\", 16);\n i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_Template, 6, 9, \"ng-container\", 7);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const date_r17 = ctx.$implicit;\n const ctx_r1 = i0.ɵɵnextContext(6);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(3, _c13, date_r17.otherMonth, date_r17.today));\n i0.ɵɵattribute(\"aria-label\", date_r17.day);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", date_r17.otherMonth ? ctx_r1.showOtherMonths : true);\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_div_10_tr_7_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"tr\");\n i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_1_Template, 3, 1, \"td\", 53)(2, Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_Template, 2, 6, \"td\", 54);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const week_r19 = ctx.$implicit;\n const ctx_r1 = i0.ɵɵnextContext(5);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showWeek);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", week_r19);\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_div_10_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 46)(1, \"table\", 47)(2, \"thead\")(3, \"tr\");\n i0.ɵɵtemplate(4, Calendar_div_3_ng_container_4_div_2_div_10_th_4_Template, 3, 1, \"th\", 48)(5, Calendar_div_3_ng_container_4_div_2_div_10_th_5_Template, 3, 1, \"th\", 49);\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(6, \"tbody\");\n i0.ɵɵtemplate(7, Calendar_div_3_ng_container_4_div_2_div_10_tr_7_Template, 3, 2, \"tr\", 50);\n i0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n const month_r12 = i0.ɵɵnextContext().$implicit;\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance(4);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showWeek);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", ctx_r1.weekDays);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngForOf\", month_r12.dates);\n }\n}\nfunction Calendar_div_3_ng_container_4_div_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r9 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 27)(1, \"div\", 28);\n i0.ɵɵtemplate(2, Calendar_div_3_ng_container_4_div_2_button_2_Template, 3, 3, \"button\", 29);\n i0.ɵɵelementStart(3, \"div\", 30);\n i0.ɵɵtemplate(4, Calendar_div_3_ng_container_4_div_2_button_4_Template, 2, 3, \"button\", 31)(5, Calendar_div_3_ng_container_4_div_2_button_5_Template, 2, 3, \"button\", 32)(6, Calendar_div_3_ng_container_4_div_2_span_6_Template, 3, 5, \"span\", 33);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(7, \"button\", 34);\n i0.ɵɵlistener(\"keydown\", function Calendar_div_3_ng_container_4_div_2_Template_button_keydown_7_listener($event) {\n i0.ɵɵrestoreView(_r9);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n })(\"click\", function Calendar_div_3_ng_container_4_div_2_Template_button_click_7_listener($event) {\n i0.ɵɵrestoreView(_r9);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onNextButtonClick($event));\n });\n i0.ɵɵtemplate(8, Calendar_div_3_ng_container_4_div_2_ChevronRightIcon_8_Template, 1, 1, \"ChevronRightIcon\", 35)(9, Calendar_div_3_ng_container_4_div_2_span_9_Template, 2, 1, \"span\", 36);\n i0.ɵɵelementEnd()();\n i0.ɵɵtemplate(10, Calendar_div_3_ng_container_4_div_2_div_10_Template, 8, 3, \"div\", 37);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const i_r18 = ctx.index;\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", i_r18 === 0);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.currentView === \"date\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.currentView !== \"year\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.currentView === \"year\");\n i0.ɵɵadvance();\n i0.ɵɵstyleProp(\"display\", ctx_r1.numberOfMonths === 1 ? \"inline-flex\" : i_r18 === ctx_r1.numberOfMonths - 1 ? \"inline-flex\" : \"none\");\n i0.ɵɵattribute(\"aria-label\", ctx_r1.nextIconAriaLabel);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.nextIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.nextIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.currentView === \"date\");\n }\n}\nfunction Calendar_div_3_ng_container_4_div_3_span_1_div_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 59);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const m_r22 = i0.ɵɵnextContext().$implicit;\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", m_r22, \" \");\n }\n}\nfunction Calendar_div_3_ng_container_4_div_3_span_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r20 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"span\", 62);\n i0.ɵɵlistener(\"click\", function Calendar_div_3_ng_container_4_div_3_span_1_Template_span_click_0_listener($event) {\n const i_r21 = i0.ɵɵrestoreView(_r20).index;\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onMonthSelect($event, i_r21));\n })(\"keydown\", function Calendar_div_3_ng_container_4_div_3_span_1_Template_span_keydown_0_listener($event) {\n const i_r21 = i0.ɵɵrestoreView(_r20).index;\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onMonthCellKeydown($event, i_r21));\n });\n i0.ɵɵtext(1);\n i0.ɵɵtemplate(2, Calendar_div_3_ng_container_4_div_3_span_1_div_2_Template, 2, 1, \"div\", 58);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const m_r22 = ctx.$implicit;\n const i_r21 = ctx.index;\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(3, _c15, ctx_r1.isMonthSelected(i_r21), ctx_r1.isMonthDisabled(i_r21)));\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", m_r22, \" \");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.isMonthSelected(i_r21));\n }\n}\nfunction Calendar_div_3_ng_container_4_div_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 60);\n i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_3_span_1_Template, 3, 6, \"span\", 61);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", ctx_r1.monthPickerValues());\n }\n}\nfunction Calendar_div_3_ng_container_4_div_4_span_1_div_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 59);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const y_r24 = i0.ɵɵnextContext().$implicit;\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", y_r24, \" \");\n }\n}\nfunction Calendar_div_3_ng_container_4_div_4_span_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r23 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"span\", 65);\n i0.ɵɵlistener(\"click\", function Calendar_div_3_ng_container_4_div_4_span_1_Template_span_click_0_listener($event) {\n const y_r24 = i0.ɵɵrestoreView(_r23).$implicit;\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onYearSelect($event, y_r24));\n })(\"keydown\", function Calendar_div_3_ng_container_4_div_4_span_1_Template_span_keydown_0_listener($event) {\n const y_r24 = i0.ɵɵrestoreView(_r23).$implicit;\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onYearCellKeydown($event, y_r24));\n });\n i0.ɵɵtext(1);\n i0.ɵɵtemplate(2, Calendar_div_3_ng_container_4_div_4_span_1_div_2_Template, 2, 1, \"div\", 58);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const y_r24 = ctx.$implicit;\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(3, _c15, ctx_r1.isYearSelected(y_r24), ctx_r1.isYearDisabled(y_r24)));\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", y_r24, \" \");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.isYearSelected(y_r24));\n }\n}\nfunction Calendar_div_3_ng_container_4_div_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 63);\n i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_4_span_1_Template, 3, 6, \"span\", 64);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", ctx_r1.yearPickerValues());\n }\n}\nfunction Calendar_div_3_ng_container_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵelementStart(1, \"div\", 23);\n i0.ɵɵtemplate(2, Calendar_div_3_ng_container_4_div_2_Template, 11, 10, \"div\", 24);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(3, Calendar_div_3_ng_container_4_div_3_Template, 2, 1, \"div\", 25)(4, Calendar_div_3_ng_container_4_div_4_Template, 2, 1, \"div\", 26);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngForOf\", ctx_r1.months);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.currentView === \"month\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.currentView === \"year\");\n }\n}\nfunction Calendar_div_3_div_5_ChevronUpIcon_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ChevronUpIcon\");\n }\n}\nfunction Calendar_div_3_div_5_4_ng_template_0_Template(rf, ctx) {}\nfunction Calendar_div_3_div_5_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Calendar_div_3_div_5_4_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Calendar_div_3_div_5_ng_container_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1, \"0\");\n i0.ɵɵelementContainerEnd();\n }\n}\nfunction Calendar_div_3_div_5_ChevronDownIcon_9_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ChevronDownIcon\");\n }\n}\nfunction Calendar_div_3_div_5_10_ng_template_0_Template(rf, ctx) {}\nfunction Calendar_div_3_div_5_10_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Calendar_div_3_div_5_10_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Calendar_div_3_div_5_ChevronUpIcon_16_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ChevronUpIcon\");\n }\n}\nfunction Calendar_div_3_div_5_17_ng_template_0_Template(rf, ctx) {}\nfunction Calendar_div_3_div_5_17_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Calendar_div_3_div_5_17_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Calendar_div_3_div_5_ng_container_19_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1, \"0\");\n i0.ɵɵelementContainerEnd();\n }\n}\nfunction Calendar_div_3_div_5_ChevronDownIcon_22_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ChevronDownIcon\");\n }\n}\nfunction Calendar_div_3_div_5_23_ng_template_0_Template(rf, ctx) {}\nfunction Calendar_div_3_div_5_23_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Calendar_div_3_div_5_23_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Calendar_div_3_div_5_div_24_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 69)(1, \"span\");\n i0.ɵɵtext(2);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate(ctx_r1.timeSeparator);\n }\n}\nfunction Calendar_div_3_div_5_div_25_ChevronUpIcon_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ChevronUpIcon\");\n }\n}\nfunction Calendar_div_3_div_5_div_25_3_ng_template_0_Template(rf, ctx) {}\nfunction Calendar_div_3_div_5_div_25_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Calendar_div_3_div_5_div_25_3_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Calendar_div_3_div_5_div_25_ng_container_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1, \"0\");\n i0.ɵɵelementContainerEnd();\n }\n}\nfunction Calendar_div_3_div_5_div_25_ChevronDownIcon_8_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ChevronDownIcon\");\n }\n}\nfunction Calendar_div_3_div_5_div_25_9_ng_template_0_Template(rf, ctx) {}\nfunction Calendar_div_3_div_5_div_25_9_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Calendar_div_3_div_5_div_25_9_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Calendar_div_3_div_5_div_25_Template(rf, ctx) {\n if (rf & 1) {\n const _r26 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 74)(1, \"button\", 68);\n i0.ɵɵlistener(\"keydown\", function Calendar_div_3_div_5_div_25_Template_button_keydown_1_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n })(\"keydown.enter\", function Calendar_div_3_div_5_div_25_Template_button_keydown_enter_1_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.incrementSecond($event));\n })(\"keydown.space\", function Calendar_div_3_div_5_div_25_Template_button_keydown_space_1_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.incrementSecond($event));\n })(\"mousedown\", function Calendar_div_3_div_5_div_25_Template_button_mousedown_1_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseDown($event, 2, 1));\n })(\"mouseup\", function Calendar_div_3_div_5_div_25_Template_button_mouseup_1_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"keyup.enter\", function Calendar_div_3_div_5_div_25_Template_button_keyup_enter_1_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"keyup.space\", function Calendar_div_3_div_5_div_25_Template_button_keyup_space_1_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"mouseleave\", function Calendar_div_3_div_5_div_25_Template_button_mouseleave_1_listener() {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseLeave());\n });\n i0.ɵɵtemplate(2, Calendar_div_3_div_5_div_25_ChevronUpIcon_2_Template, 1, 0, \"ChevronUpIcon\", 7)(3, Calendar_div_3_div_5_div_25_3_Template, 1, 0, null, 13);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(4, \"span\");\n i0.ɵɵtemplate(5, Calendar_div_3_div_5_div_25_ng_container_5_Template, 2, 0, \"ng-container\", 7);\n i0.ɵɵtext(6);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(7, \"button\", 68);\n i0.ɵɵlistener(\"keydown\", function Calendar_div_3_div_5_div_25_Template_button_keydown_7_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n })(\"keydown.enter\", function Calendar_div_3_div_5_div_25_Template_button_keydown_enter_7_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.decrementSecond($event));\n })(\"keydown.space\", function Calendar_div_3_div_5_div_25_Template_button_keydown_space_7_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.decrementSecond($event));\n })(\"mousedown\", function Calendar_div_3_div_5_div_25_Template_button_mousedown_7_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseDown($event, 2, -1));\n })(\"mouseup\", function Calendar_div_3_div_5_div_25_Template_button_mouseup_7_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"keyup.enter\", function Calendar_div_3_div_5_div_25_Template_button_keyup_enter_7_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"keyup.space\", function Calendar_div_3_div_5_div_25_Template_button_keyup_space_7_listener($event) {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"mouseleave\", function Calendar_div_3_div_5_div_25_Template_button_mouseleave_7_listener() {\n i0.ɵɵrestoreView(_r26);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseLeave());\n });\n i0.ɵɵtemplate(8, Calendar_div_3_div_5_div_25_ChevronDownIcon_8_Template, 1, 0, \"ChevronDownIcon\", 7)(9, Calendar_div_3_div_5_div_25_9_Template, 1, 0, null, 13);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getTranslation(\"nextSecond\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.incrementIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.incrementIconTemplate);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.currentSecond < 10);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx_r1.currentSecond);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getTranslation(\"prevSecond\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.decrementIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.decrementIconTemplate);\n }\n}\nfunction Calendar_div_3_div_5_div_26_ChevronUpIcon_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ChevronUpIcon\");\n }\n}\nfunction Calendar_div_3_div_5_div_26_3_ng_template_0_Template(rf, ctx) {}\nfunction Calendar_div_3_div_5_div_26_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Calendar_div_3_div_5_div_26_3_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Calendar_div_3_div_5_div_26_ChevronDownIcon_7_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ChevronDownIcon\");\n }\n}\nfunction Calendar_div_3_div_5_div_26_8_ng_template_0_Template(rf, ctx) {}\nfunction Calendar_div_3_div_5_div_26_8_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Calendar_div_3_div_5_div_26_8_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Calendar_div_3_div_5_div_26_Template(rf, ctx) {\n if (rf & 1) {\n const _r27 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 75)(1, \"button\", 76);\n i0.ɵɵlistener(\"keydown\", function Calendar_div_3_div_5_div_26_Template_button_keydown_1_listener($event) {\n i0.ɵɵrestoreView(_r27);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n })(\"click\", function Calendar_div_3_div_5_div_26_Template_button_click_1_listener($event) {\n i0.ɵɵrestoreView(_r27);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.toggleAMPM($event));\n })(\"keydown.enter\", function Calendar_div_3_div_5_div_26_Template_button_keydown_enter_1_listener($event) {\n i0.ɵɵrestoreView(_r27);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.toggleAMPM($event));\n });\n i0.ɵɵtemplate(2, Calendar_div_3_div_5_div_26_ChevronUpIcon_2_Template, 1, 0, \"ChevronUpIcon\", 7)(3, Calendar_div_3_div_5_div_26_3_Template, 1, 0, null, 13);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(4, \"span\");\n i0.ɵɵtext(5);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(6, \"button\", 76);\n i0.ɵɵlistener(\"keydown\", function Calendar_div_3_div_5_div_26_Template_button_keydown_6_listener($event) {\n i0.ɵɵrestoreView(_r27);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n })(\"click\", function Calendar_div_3_div_5_div_26_Template_button_click_6_listener($event) {\n i0.ɵɵrestoreView(_r27);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.toggleAMPM($event));\n })(\"keydown.enter\", function Calendar_div_3_div_5_div_26_Template_button_keydown_enter_6_listener($event) {\n i0.ɵɵrestoreView(_r27);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.toggleAMPM($event));\n });\n i0.ɵɵtemplate(7, Calendar_div_3_div_5_div_26_ChevronDownIcon_7_Template, 1, 0, \"ChevronDownIcon\", 7)(8, Calendar_div_3_div_5_div_26_8_Template, 1, 0, null, 13);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getTranslation(\"am\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.incrementIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.incrementIconTemplate);\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate(ctx_r1.pm ? \"PM\" : \"AM\");\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getTranslation(\"pm\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.decrementIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.decrementIconTemplate);\n }\n}\nfunction Calendar_div_3_div_5_Template(rf, ctx) {\n if (rf & 1) {\n const _r25 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 66)(1, \"div\", 67)(2, \"button\", 68);\n i0.ɵɵlistener(\"keydown\", function Calendar_div_3_div_5_Template_button_keydown_2_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n })(\"keydown.enter\", function Calendar_div_3_div_5_Template_button_keydown_enter_2_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.incrementHour($event));\n })(\"keydown.space\", function Calendar_div_3_div_5_Template_button_keydown_space_2_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.incrementHour($event));\n })(\"mousedown\", function Calendar_div_3_div_5_Template_button_mousedown_2_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseDown($event, 0, 1));\n })(\"mouseup\", function Calendar_div_3_div_5_Template_button_mouseup_2_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"keyup.enter\", function Calendar_div_3_div_5_Template_button_keyup_enter_2_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"keyup.space\", function Calendar_div_3_div_5_Template_button_keyup_space_2_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"mouseleave\", function Calendar_div_3_div_5_Template_button_mouseleave_2_listener() {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseLeave());\n });\n i0.ɵɵtemplate(3, Calendar_div_3_div_5_ChevronUpIcon_3_Template, 1, 0, \"ChevronUpIcon\", 7)(4, Calendar_div_3_div_5_4_Template, 1, 0, null, 13);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(5, \"span\");\n i0.ɵɵtemplate(6, Calendar_div_3_div_5_ng_container_6_Template, 2, 0, \"ng-container\", 7);\n i0.ɵɵtext(7);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(8, \"button\", 68);\n i0.ɵɵlistener(\"keydown\", function Calendar_div_3_div_5_Template_button_keydown_8_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n })(\"keydown.enter\", function Calendar_div_3_div_5_Template_button_keydown_enter_8_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.decrementHour($event));\n })(\"keydown.space\", function Calendar_div_3_div_5_Template_button_keydown_space_8_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.decrementHour($event));\n })(\"mousedown\", function Calendar_div_3_div_5_Template_button_mousedown_8_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseDown($event, 0, -1));\n })(\"mouseup\", function Calendar_div_3_div_5_Template_button_mouseup_8_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"keyup.enter\", function Calendar_div_3_div_5_Template_button_keyup_enter_8_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"keyup.space\", function Calendar_div_3_div_5_Template_button_keyup_space_8_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"mouseleave\", function Calendar_div_3_div_5_Template_button_mouseleave_8_listener() {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseLeave());\n });\n i0.ɵɵtemplate(9, Calendar_div_3_div_5_ChevronDownIcon_9_Template, 1, 0, \"ChevronDownIcon\", 7)(10, Calendar_div_3_div_5_10_Template, 1, 0, null, 13);\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(11, \"div\", 69)(12, \"span\");\n i0.ɵɵtext(13);\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(14, \"div\", 70)(15, \"button\", 68);\n i0.ɵɵlistener(\"keydown\", function Calendar_div_3_div_5_Template_button_keydown_15_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n })(\"keydown.enter\", function Calendar_div_3_div_5_Template_button_keydown_enter_15_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.incrementMinute($event));\n })(\"keydown.space\", function Calendar_div_3_div_5_Template_button_keydown_space_15_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.incrementMinute($event));\n })(\"mousedown\", function Calendar_div_3_div_5_Template_button_mousedown_15_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseDown($event, 1, 1));\n })(\"mouseup\", function Calendar_div_3_div_5_Template_button_mouseup_15_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"keyup.enter\", function Calendar_div_3_div_5_Template_button_keyup_enter_15_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"keyup.space\", function Calendar_div_3_div_5_Template_button_keyup_space_15_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"mouseleave\", function Calendar_div_3_div_5_Template_button_mouseleave_15_listener() {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseLeave());\n });\n i0.ɵɵtemplate(16, Calendar_div_3_div_5_ChevronUpIcon_16_Template, 1, 0, \"ChevronUpIcon\", 7)(17, Calendar_div_3_div_5_17_Template, 1, 0, null, 13);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(18, \"span\");\n i0.ɵɵtemplate(19, Calendar_div_3_div_5_ng_container_19_Template, 2, 0, \"ng-container\", 7);\n i0.ɵɵtext(20);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(21, \"button\", 68);\n i0.ɵɵlistener(\"keydown\", function Calendar_div_3_div_5_Template_button_keydown_21_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n })(\"keydown.enter\", function Calendar_div_3_div_5_Template_button_keydown_enter_21_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.decrementMinute($event));\n })(\"keydown.space\", function Calendar_div_3_div_5_Template_button_keydown_space_21_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.decrementMinute($event));\n })(\"mousedown\", function Calendar_div_3_div_5_Template_button_mousedown_21_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseDown($event, 1, -1));\n })(\"mouseup\", function Calendar_div_3_div_5_Template_button_mouseup_21_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"keyup.enter\", function Calendar_div_3_div_5_Template_button_keyup_enter_21_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"keyup.space\", function Calendar_div_3_div_5_Template_button_keyup_space_21_listener($event) {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseUp($event));\n })(\"mouseleave\", function Calendar_div_3_div_5_Template_button_mouseleave_21_listener() {\n i0.ɵɵrestoreView(_r25);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTimePickerElementMouseLeave());\n });\n i0.ɵɵtemplate(22, Calendar_div_3_div_5_ChevronDownIcon_22_Template, 1, 0, \"ChevronDownIcon\", 7)(23, Calendar_div_3_div_5_23_Template, 1, 0, null, 13);\n i0.ɵɵelementEnd()();\n i0.ɵɵtemplate(24, Calendar_div_3_div_5_div_24_Template, 3, 1, \"div\", 71)(25, Calendar_div_3_div_5_div_25_Template, 10, 8, \"div\", 72)(26, Calendar_div_3_div_5_div_26_Template, 9, 7, \"div\", 73);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance(2);\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getTranslation(\"nextHour\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.incrementIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.incrementIconTemplate);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.currentHour < 10);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx_r1.currentHour);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getTranslation(\"prevHour\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.decrementIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.decrementIconTemplate);\n i0.ɵɵadvance(3);\n i0.ɵɵtextInterpolate(ctx_r1.timeSeparator);\n i0.ɵɵadvance(2);\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getTranslation(\"nextMinute\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.incrementIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.incrementIconTemplate);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.currentMinute < 10);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx_r1.currentMinute);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getTranslation(\"prevMinute\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.decrementIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.decrementIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showSeconds);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showSeconds);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.hourFormat == \"12\");\n }\n}\nfunction Calendar_div_3_div_6_Template(rf, ctx) {\n if (rf & 1) {\n const _r28 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 77)(1, \"button\", 78);\n i0.ɵɵlistener(\"keydown\", function Calendar_div_3_div_6_Template_button_keydown_1_listener($event) {\n i0.ɵɵrestoreView(_r28);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n })(\"click\", function Calendar_div_3_div_6_Template_button_click_1_listener($event) {\n i0.ɵɵrestoreView(_r28);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onTodayButtonClick($event));\n });\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(2, \"button\", 78);\n i0.ɵɵlistener(\"keydown\", function Calendar_div_3_div_6_Template_button_keydown_2_listener($event) {\n i0.ɵɵrestoreView(_r28);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event));\n })(\"click\", function Calendar_div_3_div_6_Template_button_click_2_listener($event) {\n i0.ɵɵrestoreView(_r28);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onClearButtonClick($event));\n });\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"label\", ctx_r1.getTranslation(\"today\"))(\"ngClass\", i0.ɵɵpureFunction1(4, _c16, ctx_r1.todayButtonStyleClass));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"label\", ctx_r1.getTranslation(\"clear\"))(\"ngClass\", i0.ɵɵpureFunction1(6, _c16, ctx_r1.clearButtonStyleClass));\n }\n}\nfunction Calendar_div_3_ng_container_8_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Calendar_div_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r8 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 20, 2);\n i0.ɵɵlistener(\"@overlayAnimation.start\", function Calendar_div_3_Template_div_animation_overlayAnimation_start_0_listener($event) {\n i0.ɵɵrestoreView(_r8);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onOverlayAnimationStart($event));\n })(\"@overlayAnimation.done\", function Calendar_div_3_Template_div_animation_overlayAnimation_done_0_listener($event) {\n i0.ɵɵrestoreView(_r8);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onOverlayAnimationDone($event));\n })(\"click\", function Calendar_div_3_Template_div_click_0_listener($event) {\n i0.ɵɵrestoreView(_r8);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onOverlayClick($event));\n });\n i0.ɵɵprojection(2);\n i0.ɵɵtemplate(3, Calendar_div_3_ng_container_3_Template, 1, 0, \"ng-container\", 13)(4, Calendar_div_3_ng_container_4_Template, 5, 3, \"ng-container\", 7)(5, Calendar_div_3_div_5_Template, 27, 20, \"div\", 21)(6, Calendar_div_3_div_6_Template, 3, 8, \"div\", 22);\n i0.ɵɵprojection(7, 1);\n i0.ɵɵtemplate(8, Calendar_div_3_ng_container_8_Template, 1, 0, \"ng-container\", 13);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵclassMap(ctx_r1.panelStyleClass);\n i0.ɵɵproperty(\"ngStyle\", ctx_r1.panelStyle)(\"ngClass\", i0.ɵɵpureFunction6(15, _c8, ctx_r1.inline, ctx_r1.disabled, ctx_r1.timeOnly, ctx_r1.numberOfMonths > 1, ctx_r1.view === \"month\", ctx_r1.touchUI))(\"@overlayAnimation\", ctx_r1.touchUI ? i0.ɵɵpureFunction1(25, _c10, i0.ɵɵpureFunction2(22, _c9, ctx_r1.showTransitionOptions, ctx_r1.hideTransitionOptions)) : i0.ɵɵpureFunction1(30, _c11, i0.ɵɵpureFunction2(27, _c9, ctx_r1.showTransitionOptions, ctx_r1.hideTransitionOptions)))(\"@.disabled\", ctx_r1.inline === true);\n i0.ɵɵattribute(\"id\", ctx_r1.panelId)(\"aria-label\", ctx_r1.getTranslation(\"chooseDate\"))(\"role\", ctx_r1.inline ? null : \"dialog\")(\"aria-modal\", ctx_r1.inline ? null : \"true\");\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.headerTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.timeOnly);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", (ctx_r1.showTime || ctx_r1.timeOnly) && ctx_r1.currentView === \"date\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showButtonBar);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.footerTemplate);\n }\n}\nconst CALENDAR_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => Calendar),\n multi: true\n};\n/**\n * Calendar also known as DatePicker, is a form component to work with dates.\n * @group Components\n */\nlet Calendar = /*#__PURE__*/(() => {\n class Calendar {\n document;\n el;\n renderer;\n cd;\n zone;\n config;\n overlayService;\n iconDisplay = 'button';\n /**\n * Inline style of the component.\n * @group Props\n */\n style;\n /**\n * Style class of the component.\n * @group Props\n */\n styleClass;\n /**\n * Inline style of the input field.\n * @group Props\n */\n inputStyle;\n /**\n * Identifier of the focus input to match a label defined for the component.\n * @group Props\n */\n inputId;\n /**\n * Name of the input element.\n * @group Props\n */\n name;\n /**\n * Style class of the input field.\n * @group Props\n */\n inputStyleClass;\n /**\n * Placeholder text for the input.\n * @group Props\n */\n placeholder;\n /**\n * Establishes relationships between the component and label(s) where its value should be one or more element IDs.\n * @group Props\n */\n ariaLabelledBy;\n /**\n * Defines a string that labels the input for accessibility.\n * @group Props\n */\n ariaLabel;\n /**\n * Defines a string that labels the icon button for accessibility.\n * @group Props\n */\n iconAriaLabel;\n /**\n * When specified, disables the component.\n * @group Props\n */\n disabled;\n /**\n * Format of the date which can also be defined at locale settings.\n * @group Props\n */\n dateFormat;\n /**\n * Separator for multiple selection mode.\n * @group Props\n */\n multipleSeparator = ',';\n /**\n * Separator for joining start and end dates on range selection mode.\n * @group Props\n */\n rangeSeparator = '-';\n /**\n * When enabled, displays the calendar as inline. Default is false for popup mode.\n * @group Props\n */\n inline = false;\n /**\n * Whether to display dates in other months (non-selectable) at the start or end of the current month. To make these days selectable use the selectOtherMonths option.\n * @group Props\n */\n showOtherMonths = true;\n /**\n * Whether days in other months shown before or after the current month are selectable. This only applies if the showOtherMonths option is set to true.\n * @group Props\n */\n selectOtherMonths;\n /**\n * When enabled, displays a button with icon next to input.\n * @group Props\n */\n showIcon;\n /**\n * Icon of the calendar button.\n * @group Props\n */\n icon;\n /**\n * Target element to attach the overlay, valid values are \"body\" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]=\"mydiv\" for a div element having#mydiv as variable name).\n * @group Props\n */\n appendTo;\n /**\n * When specified, prevents entering the date manually with keyboard.\n * @group Props\n */\n readonlyInput;\n /**\n * The cutoff year for determining the century for a date.\n * @group Props\n */\n shortYearCutoff = '+10';\n /**\n * Whether the month should be rendered as a dropdown instead of text.\n * @group Props\n * @deprecated Navigator is always on.\n */\n monthNavigator;\n /**\n * Whether the year should be rendered as a dropdown instead of text.\n * @group Props\n * @deprecated Navigator is always on.\n */\n yearNavigator;\n /**\n * Specifies 12 or 24 hour format.\n * @group Props\n */\n hourFormat = '24';\n /**\n * Whether to display timepicker only.\n * @group Props\n */\n timeOnly;\n /**\n * Years to change per step in yearpicker.\n * @group Props\n */\n stepYearPicker = 10;\n /**\n * Hours to change per step.\n * @group Props\n */\n stepHour = 1;\n /**\n * Minutes to change per step.\n * @group Props\n */\n stepMinute = 1;\n /**\n * Seconds to change per step.\n * @group Props\n */\n stepSecond = 1;\n /**\n * Whether to show the seconds in time picker.\n * @group Props\n */\n showSeconds = false;\n /**\n * When present, it specifies that an input field must be filled out before submitting the form.\n * @group Props\n */\n required;\n /**\n * When disabled, datepicker will not be visible with input focus.\n * @group Props\n */\n showOnFocus = true;\n /**\n * When enabled, calendar will show week numbers.\n * @group Props\n */\n showWeek = false;\n /**\n * When enabled, calendar will start week numbers from first day of the year.\n * @group Props\n */\n startWeekFromFirstDayOfYear = false;\n /**\n * When enabled, a clear icon is displayed to clear the value.\n * @group Props\n */\n showClear = false;\n /**\n * Type of the value to write back to ngModel, default is date and alternative is string.\n * @group Props\n */\n dataType = 'date';\n /**\n * Defines the quantity of the selection, valid values are \"single\", \"multiple\" and \"range\".\n * @group Props\n */\n selectionMode = 'single';\n /**\n * Maximum number of selectable dates in multiple mode.\n * @group Props\n */\n maxDateCount;\n /**\n * Whether to display today and clear buttons at the footer\n * @group Props\n */\n showButtonBar;\n /**\n * Style class of the today button.\n * @group Props\n */\n todayButtonStyleClass = 'p-button-text';\n /**\n * Style class of the clear button.\n * @group Props\n */\n clearButtonStyleClass = 'p-button-text';\n /**\n * When present, it specifies that the component should automatically get focus on load.\n * @group Props\n */\n autofocus;\n /**\n * Whether to automatically manage layering.\n * @group Props\n */\n autoZIndex = true;\n /**\n * Base zIndex value to use in layering.\n * @group Props\n */\n baseZIndex = 0;\n /**\n * Style class of the datetimepicker container element.\n * @group Props\n */\n panelStyleClass;\n /**\n * Inline style of the datetimepicker container element.\n * @group Props\n */\n panelStyle;\n /**\n * Keep invalid value when input blur.\n * @group Props\n */\n keepInvalid = false;\n /**\n * Whether to hide the overlay on date selection.\n * @group Props\n */\n hideOnDateTimeSelect = true;\n /**\n * When enabled, calendar overlay is displayed as optimized for touch devices.\n * @group Props\n */\n touchUI;\n /**\n * Separator of time selector.\n * @group Props\n */\n timeSeparator = ':';\n /**\n * When enabled, can only focus on elements inside the calendar.\n * @group Props\n */\n focusTrap = true;\n /**\n * Transition options of the show animation.\n * @group Props\n */\n showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';\n /**\n * Transition options of the hide animation.\n * @group Props\n */\n hideTransitionOptions = '.1s linear';\n /**\n * Index of the element in tabbing order.\n * @group Props\n */\n tabindex;\n /**\n * Specifies the input variant of the component.\n * @group Props\n */\n variant = 'outlined';\n /**\n * The minimum selectable date.\n * @group Props\n */\n get minDate() {\n return this._minDate;\n }\n set minDate(date) {\n this._minDate = date;\n if (this.currentMonth != undefined && this.currentMonth != null && this.currentYear) {\n this.createMonths(this.currentMonth, this.currentYear);\n }\n }\n /**\n * The maximum selectable date.\n * @group Props\n */\n get maxDate() {\n return this._maxDate;\n }\n set maxDate(date) {\n this._maxDate = date;\n if (this.currentMonth != undefined && this.currentMonth != null && this.currentYear) {\n this.createMonths(this.currentMonth, this.currentYear);\n }\n }\n /**\n * Array with dates that should be disabled (not selectable).\n * @group Props\n */\n get disabledDates() {\n return this._disabledDates;\n }\n set disabledDates(disabledDates) {\n this._disabledDates = disabledDates;\n if (this.currentMonth != undefined && this.currentMonth != null && this.currentYear) {\n this.createMonths(this.currentMonth, this.currentYear);\n }\n }\n /**\n * Array with weekday numbers that should be disabled (not selectable).\n * @group Props\n */\n get disabledDays() {\n return this._disabledDays;\n }\n set disabledDays(disabledDays) {\n this._disabledDays = disabledDays;\n if (this.currentMonth != undefined && this.currentMonth != null && this.currentYear) {\n this.createMonths(this.currentMonth, this.currentYear);\n }\n }\n /**\n * The range of years displayed in the year drop-down in (nnnn:nnnn) format such as (2000:2020).\n * @group Props\n * @deprecated Years are based on decades by default.\n */\n get yearRange() {\n return this._yearRange;\n }\n set yearRange(yearRange) {\n this._yearRange = yearRange;\n if (yearRange) {\n const years = yearRange.split(':');\n const yearStart = parseInt(years[0]);\n const yearEnd = parseInt(years[1]);\n this.populateYearOptions(yearStart, yearEnd);\n }\n }\n /**\n * Whether to display timepicker.\n * @group Props\n */\n get showTime() {\n return this._showTime;\n }\n set showTime(showTime) {\n this._showTime = showTime;\n if (this.currentHour === undefined) {\n this.initTime(this.value || new Date());\n }\n this.updateInputfield();\n }\n /**\n * An array of options for responsive design.\n * @group Props\n */\n get responsiveOptions() {\n return this._responsiveOptions;\n }\n set responsiveOptions(responsiveOptions) {\n this._responsiveOptions = responsiveOptions;\n this.destroyResponsiveStyleElement();\n this.createResponsiveStyle();\n }\n /**\n * Number of months to display.\n * @group Props\n */\n get numberOfMonths() {\n return this._numberOfMonths;\n }\n set numberOfMonths(numberOfMonths) {\n this._numberOfMonths = numberOfMonths;\n this.destroyResponsiveStyleElement();\n this.createResponsiveStyle();\n }\n /**\n * Defines the first of the week for various date calculations.\n * @group Props\n */\n get firstDayOfWeek() {\n return this._firstDayOfWeek;\n }\n set firstDayOfWeek(firstDayOfWeek) {\n this._firstDayOfWeek = firstDayOfWeek;\n this.createWeekDays();\n }\n /**\n * Option to set calendar locale.\n * @group Props\n * @deprecated Locale property has no effect, use new i18n API instead.\n */\n set locale(newLocale) {\n console.warn('Locale property has no effect, use new i18n API instead.');\n }\n /**\n * Type of view to display, valid values are \"date\" for datepicker and \"month\" for month picker.\n * @group Props\n */\n get view() {\n return this._view;\n }\n set view(view) {\n this._view = view;\n this.currentView = this._view;\n }\n /**\n * Set the date to highlight on first opening if the field is blank.\n * @group Props\n */\n get defaultDate() {\n return this._defaultDate;\n }\n set defaultDate(defaultDate) {\n this._defaultDate = defaultDate;\n if (this.initialized) {\n const date = defaultDate || new Date();\n this.currentMonth = date.getMonth();\n this.currentYear = date.getFullYear();\n this.initTime(date);\n this.createMonths(this.currentMonth, this.currentYear);\n }\n }\n get inputClass() {\n return {\n 'p-inputtext p-component': true,\n 'p-variant-filled': this.variant === 'filled' || this.config.inputStyle() === 'filled'\n };\n }\n /**\n * Callback to invoke on focus of input field.\n * @param {Event} event - browser event.\n * @group Emits\n */\n onFocus = new EventEmitter();\n /**\n * Callback to invoke on blur of input field.\n * @param {Event} event - browser event.\n * @group Emits\n */\n onBlur = new EventEmitter();\n /**\n * Callback to invoke when date panel closed.\n * @param {Event} event - Mouse event\n * @group Emits\n */\n onClose = new EventEmitter();\n /**\n * Callback to invoke on date select.\n * @param {Date} date - date value.\n * @group Emits\n */\n onSelect = new EventEmitter();\n /**\n * Callback to invoke when input field cleared.\n * @group Emits\n */\n onClear = new EventEmitter();\n /**\n * Callback to invoke when input field is being typed.\n * @param {Event} event - browser event\n * @group Emits\n */\n onInput = new EventEmitter();\n /**\n * Callback to invoke when today button is clicked.\n * @param {Date} date - today as a date instance.\n * @group Emits\n */\n onTodayClick = new EventEmitter();\n /**\n * Callback to invoke when clear button is clicked.\n * @param {Event} event - browser event.\n * @group Emits\n */\n onClearClick = new EventEmitter();\n /**\n * Callback to invoke when a month is changed using the navigators.\n * @param {CalendarMonthChangeEvent} event - custom month change event.\n * @group Emits\n */\n onMonthChange = new EventEmitter();\n /**\n * Callback to invoke when a year is changed using the navigators.\n * @param {CalendarYearChangeEvent} event - custom year change event.\n * @group Emits\n */\n onYearChange = new EventEmitter();\n /**\n * Callback to invoke when clicked outside of the date panel.\n * @group Emits\n */\n onClickOutside = new EventEmitter();\n /**\n * Callback to invoke when datepicker panel is shown.\n * @group Emits\n */\n onShow = new EventEmitter();\n templates;\n containerViewChild;\n inputfieldViewChild;\n set content(content) {\n this.contentViewChild = content;\n if (this.contentViewChild) {\n if (this.isMonthNavigate) {\n Promise.resolve(null).then(() => this.updateFocus());\n this.isMonthNavigate = false;\n } else {\n if (!this.focus && !this.inline) {\n this.initFocusableCell();\n }\n }\n }\n }\n contentViewChild;\n value;\n dates;\n months;\n weekDays;\n currentMonth;\n currentYear;\n currentHour;\n currentMinute;\n currentSecond;\n pm;\n mask;\n maskClickListener;\n overlay;\n responsiveStyleElement;\n overlayVisible;\n onModelChange = () => {};\n onModelTouched = () => {};\n calendarElement;\n timePickerTimer;\n documentClickListener;\n animationEndListener;\n ticksTo1970;\n yearOptions;\n focus;\n isKeydown;\n filled;\n inputFieldValue = null;\n _minDate;\n _maxDate;\n _showTime;\n _yearRange;\n preventDocumentListener;\n dateTemplate;\n headerTemplate;\n footerTemplate;\n disabledDateTemplate;\n decadeTemplate;\n previousIconTemplate;\n nextIconTemplate;\n triggerIconTemplate;\n clearIconTemplate;\n decrementIconTemplate;\n incrementIconTemplate;\n inputIconTemplate;\n _disabledDates;\n _disabledDays;\n selectElement;\n todayElement;\n focusElement;\n scrollHandler;\n documentResizeListener;\n navigationState = null;\n isMonthNavigate;\n initialized;\n translationSubscription;\n _locale;\n _responsiveOptions;\n currentView;\n attributeSelector;\n panelId;\n _numberOfMonths = 1;\n _firstDayOfWeek;\n _view = 'date';\n preventFocus;\n _defaultDate;\n _focusKey = null;\n window;\n get locale() {\n return this._locale;\n }\n get iconButtonAriaLabel() {\n return this.iconAriaLabel ? this.iconAriaLabel : this.getTranslation('chooseDate');\n }\n get prevIconAriaLabel() {\n return this.currentView === 'year' ? this.getTranslation('prevDecade') : this.currentView === 'month' ? this.getTranslation('prevYear') : this.getTranslation('prevMonth');\n }\n get nextIconAriaLabel() {\n return this.currentView === 'year' ? this.getTranslation('nextDecade') : this.currentView === 'month' ? this.getTranslation('nextYear') : this.getTranslation('nextMonth');\n }\n constructor(document, el, renderer, cd, zone, config, overlayService) {\n this.document = document;\n this.el = el;\n this.renderer = renderer;\n this.cd = cd;\n this.zone = zone;\n this.config = config;\n this.overlayService = overlayService;\n this.window = this.document.defaultView;\n }\n ngOnInit() {\n this.attributeSelector = UniqueComponentId();\n this.panelId = this.attributeSelector + '_panel';\n const date = this.defaultDate || new Date();\n this.createResponsiveStyle();\n this.currentMonth = date.getMonth();\n this.currentYear = date.getFullYear();\n this.yearOptions = [];\n this.currentView = this.view;\n if (this.view === 'date') {\n this.createWeekDays();\n this.initTime(date);\n this.createMonths(this.currentMonth, this.currentYear);\n this.ticksTo1970 = ((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000;\n }\n this.translationSubscription = this.config.translationObserver.subscribe(() => {\n this.createWeekDays();\n this.cd.markForCheck();\n });\n this.initialized = true;\n }\n ngAfterContentInit() {\n this.templates.forEach(item => {\n switch (item.getType()) {\n case 'date':\n this.dateTemplate = item.template;\n break;\n case 'decade':\n this.decadeTemplate = item.template;\n break;\n case 'disabledDate':\n this.disabledDateTemplate = item.template;\n break;\n case 'header':\n this.headerTemplate = item.template;\n break;\n case 'inputicon':\n this.inputIconTemplate = item.template;\n break;\n case 'previousicon':\n this.previousIconTemplate = item.template;\n break;\n case 'nexticon':\n this.nextIconTemplate = item.template;\n break;\n case 'triggericon':\n this.triggerIconTemplate = item.template;\n break;\n case 'clearicon':\n this.clearIconTemplate = item.template;\n break;\n case 'decrementicon':\n this.decrementIconTemplate = item.template;\n break;\n case 'incrementicon':\n this.incrementIconTemplate = item.template;\n break;\n case 'footer':\n this.footerTemplate = item.template;\n break;\n default:\n this.dateTemplate = item.template;\n break;\n }\n });\n }\n ngAfterViewInit() {\n if (this.inline) {\n this.contentViewChild && this.contentViewChild.nativeElement.setAttribute(this.attributeSelector, '');\n if (!this.disabled && !this.inline) {\n this.initFocusableCell();\n if (this.numberOfMonths === 1) {\n if (this.contentViewChild && this.contentViewChild.nativeElement) {\n this.contentViewChild.nativeElement.style.width = DomHandler.getOuterWidth(this.containerViewChild?.nativeElement) + 'px';\n }\n }\n }\n }\n }\n getTranslation(option) {\n return this.config.getTranslation(option);\n }\n populateYearOptions(start, end) {\n this.yearOptions = [];\n for (let i = start; i <= end; i++) {\n this.yearOptions.push(i);\n }\n }\n createWeekDays() {\n this.weekDays = [];\n let dayIndex = this.getFirstDateOfWeek();\n let dayLabels = this.getTranslation(TranslationKeys.DAY_NAMES_MIN);\n for (let i = 0; i < 7; i++) {\n this.weekDays.push(dayLabels[dayIndex]);\n dayIndex = dayIndex == 6 ? 0 : ++dayIndex;\n }\n }\n monthPickerValues() {\n let monthPickerValues = [];\n for (let i = 0; i <= 11; i++) {\n monthPickerValues.push(this.config.getTranslation('monthNamesShort')[i]);\n }\n return monthPickerValues;\n }\n yearPickerValues() {\n let yearPickerValues = [];\n let base = this.currentYear - this.currentYear % this.stepYearPicker;\n for (let i = 0; i < this.stepYearPicker; i++) {\n yearPickerValues.push(base + i);\n }\n return yearPickerValues;\n }\n createMonths(month, year) {\n this.months = this.months = [];\n for (let i = 0; i < this.numberOfMonths; i++) {\n let m = month + i;\n let y = year;\n if (m > 11) {\n m = m % 11 - 1;\n y = year + 1;\n }\n this.months.push(this.createMonth(m, y));\n }\n }\n getWeekNumber(date) {\n let checkDate = new Date(date.getTime());\n if (this.startWeekFromFirstDayOfYear) {\n let firstDayOfWeek = +this.getFirstDateOfWeek();\n checkDate.setDate(checkDate.getDate() + 6 + firstDayOfWeek - checkDate.getDay());\n } else {\n checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));\n }\n let time = checkDate.getTime();\n checkDate.setMonth(0);\n checkDate.setDate(1);\n return Math.floor(Math.round((time - checkDate.getTime()) / 86400000) / 7) + 1;\n }\n createMonth(month, year) {\n let dates = [];\n let firstDay = this.getFirstDayOfMonthIndex(month, year);\n let daysLength = this.getDaysCountInMonth(month, year);\n let prevMonthDaysLength = this.getDaysCountInPrevMonth(month, year);\n let dayNo = 1;\n let today = new Date();\n let weekNumbers = [];\n let monthRows = Math.ceil((daysLength + firstDay) / 7);\n for (let i = 0; i < monthRows; i++) {\n let week = [];\n if (i == 0) {\n for (let j = prevMonthDaysLength - firstDay + 1; j <= prevMonthDaysLength; j++) {\n let prev = this.getPreviousMonthAndYear(month, year);\n week.push({\n day: j,\n month: prev.month,\n year: prev.year,\n otherMonth: true,\n today: this.isToday(today, j, prev.month, prev.year),\n selectable: this.isSelectable(j, prev.month, prev.year, true)\n });\n }\n let remainingDaysLength = 7 - week.length;\n for (let j = 0; j < remainingDaysLength; j++) {\n week.push({\n day: dayNo,\n month: month,\n year: year,\n today: this.isToday(today, dayNo, month, year),\n selectable: this.isSelectable(dayNo, month, year, false)\n });\n dayNo++;\n }\n } else {\n for (let j = 0; j < 7; j++) {\n if (dayNo > daysLength) {\n let next = this.getNextMonthAndYear(month, year);\n week.push({\n day: dayNo - daysLength,\n month: next.month,\n year: next.year,\n otherMonth: true,\n today: this.isToday(today, dayNo - daysLength, next.month, next.year),\n selectable: this.isSelectable(dayNo - daysLength, next.month, next.year, true)\n });\n } else {\n week.push({\n day: dayNo,\n month: month,\n year: year,\n today: this.isToday(today, dayNo, month, year),\n selectable: this.isSelectable(dayNo, month, year, false)\n });\n }\n dayNo++;\n }\n }\n if (this.showWeek) {\n weekNumbers.push(this.getWeekNumber(new Date(week[0].year, week[0].month, week[0].day)));\n }\n dates.push(week);\n }\n return {\n month: month,\n year: year,\n dates: dates,\n weekNumbers: weekNumbers\n };\n }\n initTime(date) {\n this.pm = date.getHours() > 11;\n if (this.showTime) {\n this.currentMinute = date.getMinutes();\n this.currentSecond = date.getSeconds();\n this.setCurrentHourPM(date.getHours());\n } else if (this.timeOnly) {\n this.currentMinute = 0;\n this.currentHour = 0;\n this.currentSecond = 0;\n }\n }\n navBackward(event) {\n if (this.disabled) {\n event.preventDefault();\n return;\n }\n this.isMonthNavigate = true;\n if (this.currentView === 'month') {\n this.decrementYear();\n setTimeout(() => {\n this.updateFocus();\n }, 1);\n } else if (this.currentView === 'year') {\n this.decrementYearPickerStep();\n setTimeout(() => {\n this.updateFocus();\n }, 1);\n } else {\n if (this.currentMonth === 0) {\n this.currentMonth = 11;\n this.decrementYear();\n } else {\n this.currentMonth--;\n }\n this.onMonthChange.emit({\n month: this.currentMonth + 1,\n year: this.currentYear\n });\n this.createMonths(this.currentMonth, this.currentYear);\n }\n }\n navForward(event) {\n if (this.disabled) {\n event.preventDefault();\n return;\n }\n this.isMonthNavigate = true;\n if (this.currentView === 'month') {\n this.incrementYear();\n setTimeout(() => {\n this.updateFocus();\n }, 1);\n } else if (this.currentView === 'year') {\n this.incrementYearPickerStep();\n setTimeout(() => {\n this.updateFocus();\n }, 1);\n } else {\n if (this.currentMonth === 11) {\n this.currentMonth = 0;\n this.incrementYear();\n } else {\n this.currentMonth++;\n }\n this.onMonthChange.emit({\n month: this.currentMonth + 1,\n year: this.currentYear\n });\n this.createMonths(this.currentMonth, this.currentYear);\n }\n }\n decrementYear() {\n this.currentYear--;\n let _yearOptions = this.yearOptions;\n if (this.yearNavigator && this.currentYear < _yearOptions[0]) {\n let difference = _yearOptions[_yearOptions.length - 1] - _yearOptions[0];\n this.populateYearOptions(_yearOptions[0] - difference, _yearOptions[_yearOptions.length - 1] - difference);\n }\n }\n decrementYearPickerStep() {\n this.currentYear = this.currentYear - this.stepYearPicker;\n }\n incrementYearPickerStep() {\n this.currentYear = this.currentYear + this.stepYearPicker;\n }\n incrementYear() {\n this.currentYear++;\n let _yearOptions = this.yearOptions;\n if (this.yearNavigator && this.currentYear > _yearOptions[_yearOptions.length - 1]) {\n let difference = _yearOptions[_yearOptions.length - 1] - _yearOptions[0];\n this.populateYearOptions(_yearOptions[0] + difference, _yearOptions[_yearOptions.length - 1] + difference);\n }\n }\n switchToMonthView(event) {\n this.setCurrentView('month');\n event.preventDefault();\n }\n switchToYearView(event) {\n this.setCurrentView('year');\n event.preventDefault();\n }\n onDateSelect(event, dateMeta) {\n if (this.disabled || !dateMeta.selectable) {\n event.preventDefault();\n return;\n }\n if (this.isMultipleSelection() && this.isSelected(dateMeta)) {\n this.value = this.value.filter((date, i) => {\n return !this.isDateEquals(date, dateMeta);\n });\n if (this.value.length === 0) {\n this.value = null;\n }\n this.updateModel(this.value);\n } else {\n if (this.shouldSelectDate(dateMeta)) {\n this.selectDate(dateMeta);\n }\n }\n if (this.hideOnDateTimeSelect && (this.isSingleSelection() || this.isRangeSelection() && this.value[1])) {\n setTimeout(() => {\n event.preventDefault();\n this.hideOverlay();\n if (this.mask) {\n this.disableModality();\n }\n this.cd.markForCheck();\n }, 150);\n }\n this.updateInputfield();\n event.preventDefault();\n }\n shouldSelectDate(dateMeta) {\n if (this.isMultipleSelection()) return this.maxDateCount != null ? this.maxDateCount > (this.value ? this.value.length : 0) : true;else return true;\n }\n onMonthSelect(event, index) {\n if (this.view === 'month') {\n this.onDateSelect(event, {\n year: this.currentYear,\n month: index,\n day: 1,\n selectable: true\n });\n } else {\n this.currentMonth = index;\n this.createMonths(this.currentMonth, this.currentYear);\n this.setCurrentView('date');\n this.onMonthChange.emit({\n month: this.currentMonth + 1,\n year: this.currentYear\n });\n }\n }\n onYearSelect(event, year) {\n if (this.view === 'year') {\n this.onDateSelect(event, {\n year: year,\n month: 0,\n day: 1,\n selectable: true\n });\n } else {\n this.currentYear = year;\n this.setCurrentView('month');\n this.onYearChange.emit({\n month: this.currentMonth + 1,\n year: this.currentYear\n });\n }\n }\n updateInputfield() {\n let formattedValue = '';\n if (this.value) {\n if (this.isSingleSelection()) {\n formattedValue = this.formatDateTime(this.value);\n } else if (this.isMultipleSelection()) {\n for (let i = 0; i < this.value.length; i++) {\n let dateAsString = this.formatDateTime(this.value[i]);\n formattedValue += dateAsString;\n if (i !== this.value.length - 1) {\n formattedValue += this.multipleSeparator + ' ';\n }\n }\n } else if (this.isRangeSelection()) {\n if (this.value && this.value.length) {\n let startDate = this.value[0];\n let endDate = this.value[1];\n formattedValue = this.formatDateTime(startDate);\n if (endDate) {\n formattedValue += ' ' + this.rangeSeparator + ' ' + this.formatDateTime(endDate);\n }\n }\n }\n }\n this.inputFieldValue = formattedValue;\n this.updateFilledState();\n if (this.inputfieldViewChild && this.inputfieldViewChild.nativeElement) {\n this.inputfieldViewChild.nativeElement.value = this.inputFieldValue;\n }\n }\n formatDateTime(date) {\n let formattedValue = this.keepInvalid ? date : null;\n const isDateValid = this.isValidDateForTimeConstraints(date);\n if (this.isValidDate(date)) {\n if (this.timeOnly) {\n formattedValue = this.formatTime(date);\n } else {\n formattedValue = this.formatDate(date, this.getDateFormat());\n if (this.showTime) {\n formattedValue += ' ' + this.formatTime(date);\n }\n }\n } else if (this.dataType === 'string') {\n formattedValue = date;\n }\n formattedValue = isDateValid ? formattedValue : '';\n return formattedValue;\n }\n formatDateMetaToDate(dateMeta) {\n return new Date(dateMeta.year, dateMeta.month, dateMeta.day);\n }\n formatDateKey(date) {\n return `${date.getFullYear()}-${date.getMonth()}-${date.getDate()}`;\n }\n setCurrentHourPM(hours) {\n if (this.hourFormat == '12') {\n this.pm = hours > 11;\n if (hours >= 12) {\n this.currentHour = hours == 12 ? 12 : hours - 12;\n } else {\n this.currentHour = hours == 0 ? 12 : hours;\n }\n } else {\n this.currentHour = hours;\n }\n }\n setCurrentView(currentView) {\n this.currentView = currentView;\n this.cd.detectChanges();\n this.alignOverlay();\n }\n selectDate(dateMeta) {\n let date = this.formatDateMetaToDate(dateMeta);\n if (this.showTime) {\n if (this.hourFormat == '12') {\n if (this.currentHour === 12) date.setHours(this.pm ? 12 : 0);else date.setHours(this.pm ? this.currentHour + 12 : this.currentHour);\n } else {\n date.setHours(this.currentHour);\n }\n date.setMinutes(this.currentMinute);\n date.setSeconds(this.currentSecond);\n }\n if (this.minDate && this.minDate > date) {\n date = this.minDate;\n this.setCurrentHourPM(date.getHours());\n this.currentMinute = date.getMinutes();\n this.currentSecond = date.getSeconds();\n }\n if (this.maxDate && this.maxDate < date) {\n date = this.maxDate;\n this.setCurrentHourPM(date.getHours());\n this.currentMinute = date.getMinutes();\n this.currentSecond = date.getSeconds();\n }\n if (this.isSingleSelection()) {\n this.updateModel(date);\n } else if (this.isMultipleSelection()) {\n this.updateModel(this.value ? [...this.value, date] : [date]);\n } else if (this.isRangeSelection()) {\n if (this.value && this.value.length) {\n let startDate = this.value[0];\n let endDate = this.value[1];\n if (!endDate && date.getTime() >= startDate.getTime()) {\n endDate = date;\n } else {\n startDate = date;\n endDate = null;\n }\n this.updateModel([startDate, endDate]);\n } else {\n this.updateModel([date, null]);\n }\n }\n this.onSelect.emit(date);\n }\n updateModel(value) {\n this.value = value;\n if (this.dataType == 'date') {\n this.onModelChange(this.value);\n } else if (this.dataType == 'string') {\n if (this.isSingleSelection()) {\n this.onModelChange(this.formatDateTime(this.value));\n } else {\n let stringArrValue = null;\n if (Array.isArray(this.value)) {\n stringArrValue = this.value.map(date => this.formatDateTime(date));\n }\n this.onModelChange(stringArrValue);\n }\n }\n }\n getFirstDayOfMonthIndex(month, year) {\n let day = new Date();\n day.setDate(1);\n day.setMonth(month);\n day.setFullYear(year);\n let dayIndex = day.getDay() + this.getSundayIndex();\n return dayIndex >= 7 ? dayIndex - 7 : dayIndex;\n }\n getDaysCountInMonth(month, year) {\n return 32 - this.daylightSavingAdjust(new Date(year, month, 32)).getDate();\n }\n getDaysCountInPrevMonth(month, year) {\n let prev = this.getPreviousMonthAndYear(month, year);\n return this.getDaysCountInMonth(prev.month, prev.year);\n }\n getPreviousMonthAndYear(month, year) {\n let m, y;\n if (month === 0) {\n m = 11;\n y = year - 1;\n } else {\n m = month - 1;\n y = year;\n }\n return {\n month: m,\n year: y\n };\n }\n getNextMonthAndYear(month, year) {\n let m, y;\n if (month === 11) {\n m = 0;\n y = year + 1;\n } else {\n m = month + 1;\n y = year;\n }\n return {\n month: m,\n year: y\n };\n }\n getSundayIndex() {\n let firstDayOfWeek = this.getFirstDateOfWeek();\n return firstDayOfWeek > 0 ? 7 - firstDayOfWeek : 0;\n }\n isSelected(dateMeta) {\n if (this.value) {\n if (this.isSingleSelection()) {\n return this.isDateEquals(this.value, dateMeta);\n } else if (this.isMultipleSelection()) {\n let selected = false;\n for (let date of this.value) {\n selected = this.isDateEquals(date, dateMeta);\n if (selected) {\n break;\n }\n }\n return selected;\n } else if (this.isRangeSelection()) {\n if (this.value[1]) return this.isDateEquals(this.value[0], dateMeta) || this.isDateEquals(this.value[1], dateMeta) || this.isDateBetween(this.value[0], this.value[1], dateMeta);else return this.isDateEquals(this.value[0], dateMeta);\n }\n } else {\n return false;\n }\n }\n isComparable() {\n return this.value != null && typeof this.value !== 'string';\n }\n isMonthSelected(month) {\n if (this.isComparable() && !this.isMultipleSelection()) {\n const [start, end] = this.isRangeSelection() ? this.value : [this.value, this.value];\n const selected = new Date(this.currentYear, month, 1);\n return selected >= start && selected <= (end ?? start);\n }\n return false;\n }\n isMonthDisabled(month, year) {\n const yearToCheck = year ?? this.currentYear;\n for (let day = 1; day < this.getDaysCountInMonth(month, yearToCheck) + 1; day++) {\n if (this.isSelectable(day, month, yearToCheck, false)) {\n return false;\n }\n }\n return true;\n }\n isYearDisabled(year) {\n return Array(12).fill(0).every((v, month) => this.isMonthDisabled(month, year));\n }\n isYearSelected(year) {\n if (!this.isComparable()) return false;\n if (this.isMultipleSelection()) return false;\n let value = this.isRangeSelection() ? this.value[0] : this.value;\n return value ? value.getFullYear() === year : false;\n }\n isDateEquals(value, dateMeta) {\n if (value && ObjectUtils.isDate(value)) return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;else return false;\n }\n isDateBetween(start, end, dateMeta) {\n let between = false;\n if (ObjectUtils.isDate(start) && ObjectUtils.isDate(end)) {\n let date = this.formatDateMetaToDate(dateMeta);\n return start.getTime() <= date.getTime() && end.getTime() >= date.getTime();\n }\n return between;\n }\n isSingleSelection() {\n return this.selectionMode === 'single';\n }\n isRangeSelection() {\n return this.selectionMode === 'range';\n }\n isMultipleSelection() {\n return this.selectionMode === 'multiple';\n }\n isToday(today, day, month, year) {\n return today.getDate() === day && today.getMonth() === month && today.getFullYear() === year;\n }\n isSelectable(day, month, year, otherMonth) {\n let validMin = true;\n let validMax = true;\n let validDate = true;\n let validDay = true;\n if (otherMonth && !this.selectOtherMonths) {\n return false;\n }\n if (this.minDate) {\n if (this.minDate.getFullYear() > year) {\n validMin = false;\n } else if (this.minDate.getFullYear() === year && this.currentView != 'year') {\n if (this.minDate.getMonth() > month) {\n validMin = false;\n } else if (this.minDate.getMonth() === month) {\n if (this.minDate.getDate() > day) {\n validMin = false;\n }\n }\n }\n }\n if (this.maxDate) {\n if (this.maxDate.getFullYear() < year) {\n validMax = false;\n } else if (this.maxDate.getFullYear() === year) {\n if (this.maxDate.getMonth() < month) {\n validMax = false;\n } else if (this.maxDate.getMonth() === month) {\n if (this.maxDate.getDate() < day) {\n validMax = false;\n }\n }\n }\n }\n if (this.disabledDates) {\n validDate = !this.isDateDisabled(day, month, year);\n }\n if (this.disabledDays) {\n validDay = !this.isDayDisabled(day, month, year);\n }\n return validMin && validMax && validDate && validDay;\n }\n isDateDisabled(day, month, year) {\n if (this.disabledDates) {\n for (let disabledDate of this.disabledDates) {\n if (disabledDate.getFullYear() === year && disabledDate.getMonth() === month && disabledDate.getDate() === day) {\n return true;\n }\n }\n }\n return false;\n }\n isDayDisabled(day, month, year) {\n if (this.disabledDays) {\n let weekday = new Date(year, month, day);\n let weekdayNumber = weekday.getDay();\n return this.disabledDays.indexOf(weekdayNumber) !== -1;\n }\n return false;\n }\n onInputFocus(event) {\n this.focus = true;\n if (this.showOnFocus) {\n this.showOverlay();\n }\n this.onFocus.emit(event);\n }\n onInputClick() {\n if (this.showOnFocus && !this.overlayVisible) {\n this.showOverlay();\n }\n }\n onInputBlur(event) {\n this.focus = false;\n this.onBlur.emit(event);\n if (!this.keepInvalid) {\n this.updateInputfield();\n }\n this.onModelTouched();\n }\n onButtonClick(event, inputfield = this.inputfieldViewChild?.nativeElement) {\n if (!this.overlayVisible) {\n inputfield.focus();\n this.showOverlay();\n } else {\n this.hideOverlay();\n }\n }\n clear() {\n this.inputFieldValue = null;\n this.value = null;\n this.onModelChange(this.value);\n this.onClear.emit();\n }\n onOverlayClick(event) {\n this.overlayService.add({\n originalEvent: event,\n target: this.el.nativeElement\n });\n }\n getMonthName(index) {\n return this.config.getTranslation('monthNames')[index];\n }\n getYear(month) {\n return this.currentView === 'month' ? this.currentYear : month.year;\n }\n switchViewButtonDisabled() {\n return this.numberOfMonths > 1 || this.disabled;\n }\n onPrevButtonClick(event) {\n this.navigationState = {\n backward: true,\n button: true\n };\n this.navBackward(event);\n }\n onNextButtonClick(event) {\n this.navigationState = {\n backward: false,\n button: true\n };\n this.navForward(event);\n }\n onContainerButtonKeydown(event) {\n switch (event.which) {\n //tab\n case 9:\n if (!this.inline) {\n this.trapFocus(event);\n }\n if (this.inline) {\n const headerElements = DomHandler.findSingle(this.containerViewChild?.nativeElement, '.p-datepicker-header');\n const element = event.target;\n if (this.timeOnly) {\n return;\n } else {\n if (element == headerElements.children[headerElements?.children?.length - 1]) {\n this.initFocusableCell();\n }\n }\n }\n break;\n //escape\n case 27:\n this.inputfieldViewChild?.nativeElement.focus();\n this.overlayVisible = false;\n event.preventDefault();\n break;\n default:\n //Noop\n break;\n }\n }\n onInputKeydown(event) {\n this.isKeydown = true;\n if (event.keyCode === 40 && this.contentViewChild) {\n this.trapFocus(event);\n } else if (event.keyCode === 27) {\n if (this.overlayVisible) {\n this.inputfieldViewChild?.nativeElement.focus();\n this.overlayVisible = false;\n event.preventDefault();\n }\n } else if (event.keyCode === 13) {\n if (this.overlayVisible) {\n this.overlayVisible = false;\n event.preventDefault();\n }\n } else if (event.keyCode === 9 && this.contentViewChild) {\n DomHandler.getFocusableElements(this.contentViewChild.nativeElement).forEach(el => el.tabIndex = '-1');\n if (this.overlayVisible) {\n this.overlayVisible = false;\n }\n }\n }\n onDateCellKeydown(event, dateMeta, groupIndex) {\n const cellContent = event.currentTarget;\n const cell = cellContent.parentElement;\n const currentDate = this.formatDateMetaToDate(dateMeta);\n switch (event.which) {\n //down arrow\n case 40:\n {\n cellContent.tabIndex = '-1';\n let cellIndex = DomHandler.index(cell);\n let nextRow = cell.parentElement.nextElementSibling;\n if (nextRow) {\n let focusCell = nextRow.children[cellIndex].children[0];\n if (DomHandler.hasClass(focusCell, 'p-disabled')) {\n this.navigationState = {\n backward: false\n };\n this.navForward(event);\n } else {\n nextRow.children[cellIndex].children[0].tabIndex = '0';\n nextRow.children[cellIndex].children[0].focus();\n }\n } else {\n this.navigationState = {\n backward: false\n };\n this.navForward(event);\n }\n event.preventDefault();\n break;\n }\n //up arrow\n case 38:\n {\n cellContent.tabIndex = '-1';\n let cellIndex = DomHandler.index(cell);\n let prevRow = cell.parentElement.previousElementSibling;\n if (prevRow) {\n let focusCell = prevRow.children[cellIndex].children[0];\n if (DomHandler.hasClass(focusCell, 'p-disabled')) {\n this.navigationState = {\n backward: true\n };\n this.navBackward(event);\n } else {\n focusCell.tabIndex = '0';\n focusCell.focus();\n }\n } else {\n this.navigationState = {\n backward: true\n };\n this.navBackward(event);\n }\n event.preventDefault();\n break;\n }\n //left arrow\n case 37:\n {\n cellContent.tabIndex = '-1';\n let prevCell = cell.previousElementSibling;\n if (prevCell) {\n let focusCell = prevCell.children[0];\n if (DomHandler.hasClass(focusCell, 'p-disabled') || DomHandler.hasClass(focusCell.parentElement, 'p-datepicker-weeknumber')) {\n this.navigateToMonth(true, groupIndex);\n } else {\n focusCell.tabIndex = '0';\n focusCell.focus();\n }\n } else {\n this.navigateToMonth(true, groupIndex);\n }\n event.preventDefault();\n break;\n }\n //right arrow\n case 39:\n {\n cellContent.tabIndex = '-1';\n let nextCell = cell.nextElementSibling;\n if (nextCell) {\n let focusCell = nextCell.children[0];\n if (DomHandler.hasClass(focusCell, 'p-disabled')) {\n this.navigateToMonth(false, groupIndex);\n } else {\n focusCell.tabIndex = '0';\n focusCell.focus();\n }\n } else {\n this.navigateToMonth(false, groupIndex);\n }\n event.preventDefault();\n break;\n }\n //enter\n //space\n case 13:\n case 32:\n {\n this.onDateSelect(event, dateMeta);\n event.preventDefault();\n break;\n }\n //escape\n case 27:\n {\n this.inputfieldViewChild?.nativeElement.focus();\n this.overlayVisible = false;\n event.preventDefault();\n break;\n }\n //tab\n case 9:\n {\n if (!this.inline) {\n this.trapFocus(event);\n }\n break;\n }\n // page up\n case 33:\n {\n cellContent.tabIndex = '-1';\n const dateToFocus = new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, currentDate.getDate());\n const focusKey = this.formatDateKey(dateToFocus);\n this.navigateToMonth(true, groupIndex, `span[data-date='${focusKey}']:not(.p-disabled):not(.p-ink)`);\n event.preventDefault();\n break;\n }\n // page down\n case 34:\n {\n cellContent.tabIndex = '-1';\n const dateToFocus = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, currentDate.getDate());\n const focusKey = this.formatDateKey(dateToFocus);\n this.navigateToMonth(false, groupIndex, `span[data-date='${focusKey}']:not(.p-disabled):not(.p-ink)`);\n event.preventDefault();\n break;\n }\n //home\n case 36:\n cellContent.tabIndex = '-1';\n const firstDayDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1);\n const firstDayDateKey = this.formatDateKey(firstDayDate);\n const firstDayCell = DomHandler.findSingle(cellContent.offsetParent, `span[data-date='${firstDayDateKey}']:not(.p-disabled):not(.p-ink)`);\n if (firstDayCell) {\n firstDayCell.tabIndex = '0';\n firstDayCell.focus();\n }\n event.preventDefault();\n break;\n //end\n case 35:\n cellContent.tabIndex = '-1';\n const lastDayDate = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 0);\n const lastDayDateKey = this.formatDateKey(lastDayDate);\n const lastDayCell = DomHandler.findSingle(cellContent.offsetParent, `span[data-date='${lastDayDateKey}']:not(.p-disabled):not(.p-ink)`);\n if (lastDayDate) {\n lastDayCell.tabIndex = '0';\n lastDayCell.focus();\n }\n event.preventDefault();\n break;\n default:\n //no op\n break;\n }\n }\n onMonthCellKeydown(event, index) {\n const cell = event.currentTarget;\n switch (event.which) {\n //arrows\n case 38:\n case 40:\n {\n cell.tabIndex = '-1';\n var cells = cell.parentElement.children;\n var cellIndex = DomHandler.index(cell);\n let nextCell = cells[event.which === 40 ? cellIndex + 3 : cellIndex - 3];\n if (nextCell) {\n nextCell.tabIndex = '0';\n nextCell.focus();\n }\n event.preventDefault();\n break;\n }\n //left arrow\n case 37:\n {\n cell.tabIndex = '-1';\n let prevCell = cell.previousElementSibling;\n if (prevCell) {\n prevCell.tabIndex = '0';\n prevCell.focus();\n } else {\n this.navigationState = {\n backward: true\n };\n this.navBackward(event);\n }\n event.preventDefault();\n break;\n }\n //right arrow\n case 39:\n {\n cell.tabIndex = '-1';\n let nextCell = cell.nextElementSibling;\n if (nextCell) {\n nextCell.tabIndex = '0';\n nextCell.focus();\n } else {\n this.navigationState = {\n backward: false\n };\n this.navForward(event);\n }\n event.preventDefault();\n break;\n }\n //enter\n //space\n case 13:\n case 32:\n {\n this.onMonthSelect(event, index);\n event.preventDefault();\n break;\n }\n //escape\n case 27:\n {\n this.inputfieldViewChild?.nativeElement.focus();\n this.overlayVisible = false;\n event.preventDefault();\n break;\n }\n //tab\n case 9:\n {\n if (!this.inline) {\n this.trapFocus(event);\n }\n break;\n }\n default:\n //no op\n break;\n }\n }\n onYearCellKeydown(event, index) {\n const cell = event.currentTarget;\n switch (event.which) {\n //arrows\n case 38:\n case 40:\n {\n cell.tabIndex = '-1';\n var cells = cell.parentElement.children;\n var cellIndex = DomHandler.index(cell);\n let nextCell = cells[event.which === 40 ? cellIndex + 2 : cellIndex - 2];\n if (nextCell) {\n nextCell.tabIndex = '0';\n nextCell.focus();\n }\n event.preventDefault();\n break;\n }\n //left arrow\n case 37:\n {\n cell.tabIndex = '-1';\n let prevCell = cell.previousElementSibling;\n if (prevCell) {\n prevCell.tabIndex = '0';\n prevCell.focus();\n } else {\n this.navigationState = {\n backward: true\n };\n this.navBackward(event);\n }\n event.preventDefault();\n break;\n }\n //right arrow\n case 39:\n {\n cell.tabIndex = '-1';\n let nextCell = cell.nextElementSibling;\n if (nextCell) {\n nextCell.tabIndex = '0';\n nextCell.focus();\n } else {\n this.navigationState = {\n backward: false\n };\n this.navForward(event);\n }\n event.preventDefault();\n break;\n }\n //enter\n //space\n case 13:\n case 32:\n {\n this.onYearSelect(event, index);\n event.preventDefault();\n break;\n }\n //escape\n case 27:\n {\n this.inputfieldViewChild?.nativeElement.focus();\n this.overlayVisible = false;\n event.preventDefault();\n break;\n }\n //tab\n case 9:\n {\n this.trapFocus(event);\n break;\n }\n default:\n //no op\n break;\n }\n }\n navigateToMonth(prev, groupIndex, focusKey) {\n if (prev) {\n if (this.numberOfMonths === 1 || groupIndex === 0) {\n this.navigationState = {\n backward: true\n };\n this._focusKey = focusKey;\n this.navBackward(event);\n } else {\n let prevMonthContainer = this.contentViewChild.nativeElement.children[groupIndex - 1];\n if (focusKey) {\n const firstDayCell = DomHandler.findSingle(prevMonthContainer, focusKey);\n firstDayCell.tabIndex = '0';\n firstDayCell.focus();\n } else {\n let cells = DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');\n let focusCell = cells[cells.length - 1];\n focusCell.tabIndex = '0';\n focusCell.focus();\n }\n }\n } else {\n if (this.numberOfMonths === 1 || groupIndex === this.numberOfMonths - 1) {\n this.navigationState = {\n backward: false\n };\n this._focusKey = focusKey;\n this.navForward(event);\n } else {\n let nextMonthContainer = this.contentViewChild.nativeElement.children[groupIndex + 1];\n if (focusKey) {\n const firstDayCell = DomHandler.findSingle(nextMonthContainer, focusKey);\n firstDayCell.tabIndex = '0';\n firstDayCell.focus();\n } else {\n let focusCell = DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');\n focusCell.tabIndex = '0';\n focusCell.focus();\n }\n }\n }\n }\n updateFocus() {\n let cell;\n if (this.navigationState) {\n if (this.navigationState.button) {\n this.initFocusableCell();\n if (this.navigationState.backward) DomHandler.findSingle(this.contentViewChild.nativeElement, '.p-datepicker-prev').focus();else DomHandler.findSingle(this.contentViewChild.nativeElement, '.p-datepicker-next').focus();\n } else {\n if (this.navigationState.backward) {\n let cells;\n if (this.currentView === 'month') {\n cells = DomHandler.find(this.contentViewChild.nativeElement, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');\n } else if (this.currentView === 'year') {\n cells = DomHandler.find(this.contentViewChild.nativeElement, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');\n } else {\n cells = DomHandler.find(this.contentViewChild.nativeElement, this._focusKey || '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');\n }\n if (cells && cells.length > 0) {\n cell = cells[cells.length - 1];\n }\n } else {\n if (this.currentView === 'month') {\n cell = DomHandler.findSingle(this.contentViewChild.nativeElement, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');\n } else if (this.currentView === 'year') {\n cell = DomHandler.findSingle(this.contentViewChild.nativeElement, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');\n } else {\n cell = DomHandler.findSingle(this.contentViewChild.nativeElement, this._focusKey || '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');\n }\n }\n if (cell) {\n cell.tabIndex = '0';\n cell.focus();\n }\n }\n this.navigationState = null;\n this._focusKey = null;\n } else {\n this.initFocusableCell();\n }\n this.alignOverlay();\n }\n initFocusableCell() {\n const contentEl = this.contentViewChild?.nativeElement;\n let cell;\n if (this.currentView === 'month') {\n let cells = DomHandler.find(contentEl, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');\n let selectedCell = DomHandler.findSingle(contentEl, '.p-monthpicker .p-monthpicker-month.p-highlight');\n cells.forEach(cell => cell.tabIndex = -1);\n cell = selectedCell || cells[0];\n if (cells.length === 0) {\n let disabledCells = DomHandler.find(contentEl, '.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = \"0\"]');\n disabledCells.forEach(cell => cell.tabIndex = -1);\n }\n } else if (this.currentView === 'year') {\n let cells = DomHandler.find(contentEl, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');\n let selectedCell = DomHandler.findSingle(contentEl, '.p-yearpicker .p-yearpicker-year.p-highlight');\n cells.forEach(cell => cell.tabIndex = -1);\n cell = selectedCell || cells[0];\n if (cells.length === 0) {\n let disabledCells = DomHandler.find(contentEl, '.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = \"0\"]');\n disabledCells.forEach(cell => cell.tabIndex = -1);\n }\n } else {\n cell = DomHandler.findSingle(contentEl, 'span.p-highlight');\n if (!cell) {\n let todayCell = DomHandler.findSingle(contentEl, 'td.p-datepicker-today span:not(.p-disabled):not(.p-ink)');\n if (todayCell) cell = todayCell;else cell = DomHandler.findSingle(contentEl, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');\n }\n }\n if (cell) {\n cell.tabIndex = '0';\n if (!this.preventFocus && (!this.navigationState || !this.navigationState.button)) {\n setTimeout(() => {\n if (!this.disabled) {\n cell.focus();\n }\n }, 1);\n }\n this.preventFocus = false;\n }\n }\n trapFocus(event) {\n let focusableElements = DomHandler.getFocusableElements(this.contentViewChild.nativeElement);\n if (focusableElements && focusableElements.length > 0) {\n if (!focusableElements[0].ownerDocument.activeElement) {\n focusableElements[0].focus();\n } else {\n let focusedIndex = focusableElements.indexOf(focusableElements[0].ownerDocument.activeElement);\n if (event.shiftKey) {\n if (focusedIndex == -1 || focusedIndex === 0) {\n if (this.focusTrap) {\n focusableElements[focusableElements.length - 1].focus();\n } else {\n if (focusedIndex === -1) return this.hideOverlay();else if (focusedIndex === 0) return;\n }\n } else {\n focusableElements[focusedIndex - 1].focus();\n }\n } else {\n if (focusedIndex == -1) {\n if (this.timeOnly) {\n focusableElements[0].focus();\n } else {\n let spanIndex = 0;\n for (let i = 0; i < focusableElements.length; i++) {\n if (focusableElements[i].tagName === 'SPAN') spanIndex = i;\n }\n focusableElements[spanIndex].focus();\n }\n } else if (focusedIndex === focusableElements.length - 1) {\n if (!this.focusTrap && focusedIndex != -1) return this.hideOverlay();\n focusableElements[0].focus();\n } else {\n focusableElements[focusedIndex + 1].focus();\n }\n }\n }\n }\n event.preventDefault();\n }\n onMonthDropdownChange(m) {\n this.currentMonth = parseInt(m);\n this.onMonthChange.emit({\n month: this.currentMonth + 1,\n year: this.currentYear\n });\n this.createMonths(this.currentMonth, this.currentYear);\n }\n onYearDropdownChange(y) {\n this.currentYear = parseInt(y);\n this.onYearChange.emit({\n month: this.currentMonth + 1,\n year: this.currentYear\n });\n this.createMonths(this.currentMonth, this.currentYear);\n }\n convertTo24Hour(hours, pm) {\n //@ts-ignore\n if (this.hourFormat == '12') {\n if (hours === 12) {\n return pm ? 12 : 0;\n } else {\n return pm ? hours + 12 : hours;\n }\n }\n return hours;\n }\n constrainTime(hour, minute, second, pm) {\n let returnTimeTriple = [hour, minute, second];\n let minHoursExceeds12;\n let value = this.value;\n const convertedHour = this.convertTo24Hour(hour, pm);\n const isRange = this.isRangeSelection(),\n isMultiple = this.isMultipleSelection(),\n isMultiValue = isRange || isMultiple;\n if (isMultiValue) {\n if (!this.value) {\n this.value = [new Date(), new Date()];\n }\n if (isRange) {\n value = this.value[1] || this.value[0];\n }\n if (isMultiple) {\n value = this.value[this.value.length - 1];\n }\n }\n const valueDateString = value ? value.toDateString() : null;\n let isMinDate = this.minDate && valueDateString && this.minDate.toDateString() === valueDateString;\n let isMaxDate = this.maxDate && valueDateString && this.maxDate.toDateString() === valueDateString;\n if (isMinDate) {\n minHoursExceeds12 = this.minDate.getHours() >= 12;\n }\n switch (true // intentional fall through\n ) {\n case isMinDate && minHoursExceeds12 && this.minDate.getHours() === 12 && this.minDate.getHours() > convertedHour:\n returnTimeTriple[0] = 11;\n case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:\n returnTimeTriple[1] = this.minDate.getMinutes();\n case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:\n returnTimeTriple[2] = this.minDate.getSeconds();\n break;\n case isMinDate && !minHoursExceeds12 && this.minDate.getHours() - 1 === convertedHour && this.minDate.getHours() > convertedHour:\n returnTimeTriple[0] = 11;\n this.pm = true;\n case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:\n returnTimeTriple[1] = this.minDate.getMinutes();\n case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:\n returnTimeTriple[2] = this.minDate.getSeconds();\n break;\n case isMinDate && minHoursExceeds12 && this.minDate.getHours() > convertedHour && convertedHour !== 12:\n this.setCurrentHourPM(this.minDate.getHours());\n returnTimeTriple[0] = this.currentHour;\n case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:\n returnTimeTriple[1] = this.minDate.getMinutes();\n case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:\n returnTimeTriple[2] = this.minDate.getSeconds();\n break;\n case isMinDate && this.minDate.getHours() > convertedHour:\n returnTimeTriple[0] = this.minDate.getHours();\n case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:\n returnTimeTriple[1] = this.minDate.getMinutes();\n case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:\n returnTimeTriple[2] = this.minDate.getSeconds();\n break;\n case isMaxDate && this.maxDate.getHours() < convertedHour:\n returnTimeTriple[0] = this.maxDate.getHours();\n case isMaxDate && this.maxDate.getHours() === convertedHour && this.maxDate.getMinutes() < minute:\n returnTimeTriple[1] = this.maxDate.getMinutes();\n case isMaxDate && this.maxDate.getHours() === convertedHour && this.maxDate.getMinutes() === minute && this.maxDate.getSeconds() < second:\n returnTimeTriple[2] = this.maxDate.getSeconds();\n break;\n }\n return returnTimeTriple;\n }\n incrementHour(event) {\n const prevHour = this.currentHour ?? 0;\n let newHour = (this.currentHour ?? 0) + this.stepHour;\n let newPM = this.pm;\n if (this.hourFormat == '24') newHour = newHour >= 24 ? newHour - 24 : newHour;else if (this.hourFormat == '12') {\n // Before the AM/PM break, now after\n if (prevHour < 12 && newHour > 11) {\n newPM = !this.pm;\n }\n newHour = newHour >= 13 ? newHour - 12 : newHour;\n }\n this.toggleAMPMIfNotMinDate(newPM);\n [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(newHour, this.currentMinute, this.currentSecond, newPM);\n event.preventDefault();\n }\n toggleAMPMIfNotMinDate(newPM) {\n let value = this.value;\n if ((this.selectionMode == 'range' || this.selectionMode == 'multiple') && Array.isArray(value) && value.length > 0) {\n value = value[value.length - 1];\n }\n const valueDateString = value ? value.toDateString() : null;\n let isMinDate = this.minDate && valueDateString && this.minDate.toDateString() === valueDateString;\n if (isMinDate && this.minDate.getHours() >= 12) {\n this.pm = true;\n } else {\n this.pm = newPM;\n }\n }\n onTimePickerElementMouseDown(event, type, direction) {\n if (!this.disabled) {\n this.repeat(event, null, type, direction);\n event.preventDefault();\n }\n }\n onTimePickerElementMouseUp(event) {\n if (!this.disabled) {\n this.clearTimePickerTimer();\n this.updateTime();\n }\n }\n onTimePickerElementMouseLeave() {\n if (!this.disabled && this.timePickerTimer) {\n this.clearTimePickerTimer();\n this.updateTime();\n }\n }\n repeat(event, interval, type, direction) {\n let i = interval || 500;\n this.clearTimePickerTimer();\n this.timePickerTimer = setTimeout(() => {\n this.repeat(event, 100, type, direction);\n this.cd.markForCheck();\n }, i);\n switch (type) {\n case 0:\n if (direction === 1) this.incrementHour(event);else this.decrementHour(event);\n break;\n case 1:\n if (direction === 1) this.incrementMinute(event);else this.decrementMinute(event);\n break;\n case 2:\n if (direction === 1) this.incrementSecond(event);else this.decrementSecond(event);\n break;\n }\n this.updateInputfield();\n }\n clearTimePickerTimer() {\n if (this.timePickerTimer) {\n clearTimeout(this.timePickerTimer);\n this.timePickerTimer = null;\n }\n }\n decrementHour(event) {\n let newHour = (this.currentHour ?? 0) - this.stepHour;\n let newPM = this.pm;\n if (this.hourFormat == '24') newHour = newHour < 0 ? 24 + newHour : newHour;else if (this.hourFormat == '12') {\n // If we were at noon/midnight, then switch\n if (this.currentHour === 12) {\n newPM = !this.pm;\n }\n newHour = newHour <= 0 ? 12 + newHour : newHour;\n }\n this.toggleAMPMIfNotMinDate(newPM);\n [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(newHour, this.currentMinute, this.currentSecond, newPM);\n event.preventDefault();\n }\n incrementMinute(event) {\n let newMinute = (this.currentMinute ?? 0) + this.stepMinute;\n newMinute = newMinute > 59 ? newMinute - 60 : newMinute;\n [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour, newMinute, this.currentSecond, this.pm);\n event.preventDefault();\n }\n decrementMinute(event) {\n let newMinute = (this.currentMinute ?? 0) - this.stepMinute;\n newMinute = newMinute < 0 ? 60 + newMinute : newMinute;\n [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour, newMinute, this.currentSecond, this.pm);\n event.preventDefault();\n }\n incrementSecond(event) {\n let newSecond = this.currentSecond + this.stepSecond;\n newSecond = newSecond > 59 ? newSecond - 60 : newSecond;\n [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour, this.currentMinute, newSecond, this.pm);\n event.preventDefault();\n }\n decrementSecond(event) {\n let newSecond = this.currentSecond - this.stepSecond;\n newSecond = newSecond < 0 ? 60 + newSecond : newSecond;\n [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour, this.currentMinute, newSecond, this.pm);\n event.preventDefault();\n }\n updateTime() {\n let value = this.value;\n if (this.isRangeSelection()) {\n value = this.value[1] || this.value[0];\n }\n if (this.isMultipleSelection()) {\n value = this.value[this.value.length - 1];\n }\n value = value ? new Date(value.getTime()) : new Date();\n if (this.hourFormat == '12') {\n if (this.currentHour === 12) value.setHours(this.pm ? 12 : 0);else value.setHours(this.pm ? this.currentHour + 12 : this.currentHour);\n } else {\n value.setHours(this.currentHour);\n }\n value.setMinutes(this.currentMinute);\n value.setSeconds(this.currentSecond);\n if (this.isRangeSelection()) {\n if (this.value[1]) value = [this.value[0], value];else value = [value, null];\n }\n if (this.isMultipleSelection()) {\n value = [...this.value.slice(0, -1), value];\n }\n this.updateModel(value);\n this.onSelect.emit(value);\n this.updateInputfield();\n }\n toggleAMPM(event) {\n const newPM = !this.pm;\n this.pm = newPM;\n [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour, this.currentMinute, this.currentSecond, newPM);\n this.updateTime();\n event.preventDefault();\n }\n onUserInput(event) {\n // IE 11 Workaround for input placeholder : https://github.com/primefaces/primeng/issues/2026\n if (!this.isKeydown) {\n return;\n }\n this.isKeydown = false;\n let val = event.target.value;\n try {\n let value = this.parseValueFromString(val);\n if (this.isValidSelection(value)) {\n this.updateModel(value);\n this.updateUI();\n } else if (this.keepInvalid) {\n this.updateModel(value);\n }\n } catch (err) {\n //invalid date\n let value = this.keepInvalid ? val : null;\n this.updateModel(value);\n }\n this.filled = val != null && val.length;\n this.onInput.emit(event);\n }\n isValidSelection(value) {\n if (this.isSingleSelection()) {\n return this.isSelectable(value.getDate(), value.getMonth(), value.getFullYear(), false);\n }\n let isValid = value.every(v => this.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false));\n if (isValid && this.isRangeSelection()) {\n isValid = value.length === 1 || value.length > 1 && value[1] >= value[0];\n }\n return isValid;\n }\n parseValueFromString(text) {\n if (!text || text.trim().length === 0) {\n return null;\n }\n let value;\n if (this.isSingleSelection()) {\n value = this.parseDateTime(text);\n } else if (this.isMultipleSelection()) {\n let tokens = text.split(this.multipleSeparator);\n value = [];\n for (let token of tokens) {\n value.push(this.parseDateTime(token.trim()));\n }\n } else if (this.isRangeSelection()) {\n let tokens = text.split(' ' + this.rangeSeparator + ' ');\n value = [];\n for (let i = 0; i < tokens.length; i++) {\n value[i] = this.parseDateTime(tokens[i].trim());\n }\n }\n return value;\n }\n parseDateTime(text) {\n let date;\n let parts = text.split(' ');\n if (this.timeOnly) {\n date = new Date();\n this.populateTime(date, parts[0], parts[1]);\n } else {\n const dateFormat = this.getDateFormat();\n if (this.showTime) {\n let ampm = this.hourFormat == '12' ? parts.pop() : null;\n let timeString = parts.pop();\n date = this.parseDate(parts.join(' '), dateFormat);\n this.populateTime(date, timeString, ampm);\n } else {\n date = this.parseDate(text, dateFormat);\n }\n }\n return date;\n }\n populateTime(value, timeString, ampm) {\n if (this.hourFormat == '12' && !ampm) {\n throw 'Invalid Time';\n }\n this.pm = ampm === 'PM' || ampm === 'pm';\n let time = this.parseTime(timeString);\n value.setHours(time.hour);\n value.setMinutes(time.minute);\n value.setSeconds(time.second);\n }\n isValidDate(date) {\n return ObjectUtils.isDate(date) && ObjectUtils.isNotEmpty(date);\n }\n updateUI() {\n let propValue = this.value;\n if (Array.isArray(propValue)) {\n propValue = propValue[1] || propValue[0];\n }\n let val = this.defaultDate && this.isValidDate(this.defaultDate) && !this.value ? this.defaultDate : propValue && this.isValidDate(propValue) ? propValue : new Date();\n this.currentMonth = val.getMonth();\n this.currentYear = val.getFullYear();\n this.createMonths(this.currentMonth, this.currentYear);\n if (this.showTime || this.timeOnly) {\n this.setCurrentHourPM(val.getHours());\n this.currentMinute = val.getMinutes();\n this.currentSecond = val.getSeconds();\n }\n }\n showOverlay() {\n if (!this.overlayVisible) {\n this.updateUI();\n if (!this.touchUI) {\n this.preventFocus = true;\n }\n this.overlayVisible = true;\n }\n }\n hideOverlay() {\n this.inputfieldViewChild?.nativeElement.focus();\n this.overlayVisible = false;\n this.clearTimePickerTimer();\n if (this.touchUI) {\n this.disableModality();\n }\n this.cd.markForCheck();\n }\n toggle() {\n if (!this.inline) {\n if (!this.overlayVisible) {\n this.showOverlay();\n this.inputfieldViewChild?.nativeElement.focus();\n } else {\n this.hideOverlay();\n }\n }\n }\n onOverlayAnimationStart(event) {\n switch (event.toState) {\n case 'visible':\n case 'visibleTouchUI':\n if (!this.inline) {\n this.overlay = event.element;\n this.overlay?.setAttribute(this.attributeSelector, '');\n this.appendOverlay();\n this.updateFocus();\n if (this.autoZIndex) {\n if (this.touchUI) ZIndexUtils.set('modal', this.overlay, this.baseZIndex || this.config.zIndex.modal);else ZIndexUtils.set('overlay', this.overlay, this.baseZIndex || this.config.zIndex.overlay);\n }\n this.alignOverlay();\n this.onShow.emit(event);\n }\n break;\n case 'void':\n this.onOverlayHide();\n this.onClose.emit(event);\n break;\n }\n }\n onOverlayAnimationDone(event) {\n switch (event.toState) {\n case 'visible':\n case 'visibleTouchUI':\n if (!this.inline) {\n this.bindDocumentClickListener();\n this.bindDocumentResizeListener();\n this.bindScrollListener();\n }\n break;\n case 'void':\n if (this.autoZIndex) {\n ZIndexUtils.clear(event.element);\n }\n break;\n }\n }\n appendOverlay() {\n if (this.appendTo) {\n if (this.appendTo === 'body') this.document.body.appendChild(this.overlay);else DomHandler.appendChild(this.overlay, this.appendTo);\n }\n }\n restoreOverlayAppend() {\n if (this.overlay && this.appendTo) {\n this.el.nativeElement.appendChild(this.overlay);\n }\n }\n alignOverlay() {\n if (this.touchUI) {\n this.enableModality(this.overlay);\n } else if (this.overlay) {\n if (this.appendTo) {\n if (this.view === 'date') {\n if (!this.overlay.style.width) {\n this.overlay.style.width = DomHandler.getOuterWidth(this.overlay) + 'px';\n }\n if (!this.overlay.style.minWidth) {\n this.overlay.style.minWidth = DomHandler.getOuterWidth(this.inputfieldViewChild?.nativeElement) + 'px';\n }\n } else {\n if (!this.overlay.style.width) {\n this.overlay.style.width = DomHandler.getOuterWidth(this.inputfieldViewChild?.nativeElement) + 'px';\n }\n }\n DomHandler.absolutePosition(this.overlay, this.inputfieldViewChild?.nativeElement);\n } else {\n DomHandler.relativePosition(this.overlay, this.inputfieldViewChild?.nativeElement);\n }\n }\n }\n enableModality(element) {\n if (!this.mask && this.touchUI) {\n this.mask = this.renderer.createElement('div');\n this.renderer.setStyle(this.mask, 'zIndex', String(parseInt(element.style.zIndex) - 1));\n let maskStyleClass = 'p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter';\n DomHandler.addMultipleClasses(this.mask, maskStyleClass);\n this.maskClickListener = this.renderer.listen(this.mask, 'click', event => {\n this.disableModality();\n this.overlayVisible = false;\n });\n this.renderer.appendChild(this.document.body, this.mask);\n DomHandler.blockBodyScroll();\n }\n }\n disableModality() {\n if (this.mask) {\n DomHandler.addClass(this.mask, 'p-component-overlay-leave');\n if (!this.animationEndListener) {\n this.animationEndListener = this.renderer.listen(this.mask, 'animationend', this.destroyMask.bind(this));\n }\n }\n }\n destroyMask() {\n if (!this.mask) {\n return;\n }\n this.renderer.removeChild(this.document.body, this.mask);\n let bodyChildren = this.document.body.children;\n let hasBlockerMasks;\n for (let i = 0; i < bodyChildren.length; i++) {\n let bodyChild = bodyChildren[i];\n if (DomHandler.hasClass(bodyChild, 'p-datepicker-mask-scrollblocker')) {\n hasBlockerMasks = true;\n break;\n }\n }\n if (!hasBlockerMasks) {\n DomHandler.unblockBodyScroll();\n }\n this.unbindAnimationEndListener();\n this.unbindMaskClickListener();\n this.mask = null;\n }\n unbindMaskClickListener() {\n if (this.maskClickListener) {\n this.maskClickListener();\n this.maskClickListener = null;\n }\n }\n unbindAnimationEndListener() {\n if (this.animationEndListener && this.mask) {\n this.animationEndListener();\n this.animationEndListener = null;\n }\n }\n writeValue(value) {\n this.value = value;\n if (this.value && typeof this.value === 'string') {\n try {\n this.value = this.parseValueFromString(this.value);\n } catch {\n if (this.keepInvalid) {\n this.value = value;\n }\n }\n }\n this.updateInputfield();\n this.updateUI();\n this.cd.markForCheck();\n }\n registerOnChange(fn) {\n this.onModelChange = fn;\n }\n registerOnTouched(fn) {\n this.onModelTouched = fn;\n }\n setDisabledState(val) {\n this.disabled = val;\n this.cd.markForCheck();\n }\n getDateFormat() {\n return this.dateFormat || this.getTranslation('dateFormat');\n }\n getFirstDateOfWeek() {\n return this._firstDayOfWeek || this.getTranslation(TranslationKeys.FIRST_DAY_OF_WEEK);\n }\n // Ported from jquery-ui datepicker formatDate\n formatDate(date, format) {\n if (!date) {\n return '';\n }\n let iFormat;\n const lookAhead = match => {\n const matches = iFormat + 1 < format.length && format.charAt(iFormat + 1) === match;\n if (matches) {\n iFormat++;\n }\n return matches;\n },\n formatNumber = (match, value, len) => {\n let num = '' + value;\n if (lookAhead(match)) {\n while (num.length < len) {\n num = '0' + num;\n }\n }\n return num;\n },\n formatName = (match, value, shortNames, longNames) => {\n return lookAhead(match) ? longNames[value] : shortNames[value];\n };\n let output = '';\n let literal = false;\n if (date) {\n for (iFormat = 0; iFormat < format.length; iFormat++) {\n if (literal) {\n if (format.charAt(iFormat) === \"'\" && !lookAhead(\"'\")) {\n literal = false;\n } else {\n output += format.charAt(iFormat);\n }\n } else {\n switch (format.charAt(iFormat)) {\n case 'd':\n output += formatNumber('d', date.getDate(), 2);\n break;\n case 'D':\n output += formatName('D', date.getDay(), this.getTranslation(TranslationKeys.DAY_NAMES_SHORT), this.getTranslation(TranslationKeys.DAY_NAMES));\n break;\n case 'o':\n output += formatNumber('o', Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);\n break;\n case 'm':\n output += formatNumber('m', date.getMonth() + 1, 2);\n break;\n case 'M':\n output += formatName('M', date.getMonth(), this.getTranslation(TranslationKeys.MONTH_NAMES_SHORT), this.getTranslation(TranslationKeys.MONTH_NAMES));\n break;\n case 'y':\n output += lookAhead('y') ? date.getFullYear() : (date.getFullYear() % 100 < 10 ? '0' : '') + date.getFullYear() % 100;\n break;\n case '@':\n output += date.getTime();\n break;\n case '!':\n output += date.getTime() * 10000 + this.ticksTo1970;\n break;\n case \"'\":\n if (lookAhead(\"'\")) {\n output += \"'\";\n } else {\n literal = true;\n }\n break;\n default:\n output += format.charAt(iFormat);\n }\n }\n }\n }\n return output;\n }\n formatTime(date) {\n if (!date) {\n return '';\n }\n let output = '';\n let hours = date.getHours();\n let minutes = date.getMinutes();\n let seconds = date.getSeconds();\n if (this.hourFormat == '12' && hours > 11 && hours != 12) {\n hours -= 12;\n }\n if (this.hourFormat == '12') {\n output += hours === 0 ? 12 : hours < 10 ? '0' + hours : hours;\n } else {\n output += hours < 10 ? '0' + hours : hours;\n }\n output += ':';\n output += minutes < 10 ? '0' + minutes : minutes;\n if (this.showSeconds) {\n output += ':';\n output += seconds < 10 ? '0' + seconds : seconds;\n }\n if (this.hourFormat == '12') {\n output += date.getHours() > 11 ? ' PM' : ' AM';\n }\n return output;\n }\n parseTime(value) {\n let tokens = value.split(':');\n let validTokenLength = this.showSeconds ? 3 : 2;\n if (tokens.length !== validTokenLength) {\n throw 'Invalid time';\n }\n let h = parseInt(tokens[0]);\n let m = parseInt(tokens[1]);\n let s = this.showSeconds ? parseInt(tokens[2]) : null;\n if (isNaN(h) || isNaN(m) || h > 23 || m > 59 || this.hourFormat == '12' && h > 12 || this.showSeconds && (isNaN(s) || s > 59)) {\n throw 'Invalid time';\n } else {\n if (this.hourFormat == '12') {\n if (h !== 12 && this.pm) {\n h += 12;\n } else if (!this.pm && h === 12) {\n h -= 12;\n }\n }\n return {\n hour: h,\n minute: m,\n second: s\n };\n }\n }\n // Ported from jquery-ui datepicker parseDate\n parseDate(value, format) {\n if (format == null || value == null) {\n throw 'Invalid arguments';\n }\n value = typeof value === 'object' ? value.toString() : value + '';\n if (value === '') {\n return null;\n }\n let iFormat,\n dim,\n extra,\n iValue = 0,\n shortYearCutoff = typeof this.shortYearCutoff !== 'string' ? this.shortYearCutoff : new Date().getFullYear() % 100 + parseInt(this.shortYearCutoff, 10),\n year = -1,\n month = -1,\n day = -1,\n doy = -1,\n literal = false,\n date,\n lookAhead = match => {\n let matches = iFormat + 1 < format.length && format.charAt(iFormat + 1) === match;\n if (matches) {\n iFormat++;\n }\n return matches;\n },\n getNumber = match => {\n let isDoubled = lookAhead(match),\n size = match === '@' ? 14 : match === '!' ? 20 : match === 'y' && isDoubled ? 4 : match === 'o' ? 3 : 2,\n minSize = match === 'y' ? size : 1,\n digits = new RegExp('^\\\\d{' + minSize + ',' + size + '}'),\n num = value.substring(iValue).match(digits);\n if (!num) {\n throw 'Missing number at position ' + iValue;\n }\n iValue += num[0].length;\n return parseInt(num[0], 10);\n },\n getName = (match, shortNames, longNames) => {\n let index = -1;\n let arr = lookAhead(match) ? longNames : shortNames;\n let names = [];\n for (let i = 0; i < arr.length; i++) {\n names.push([i, arr[i]]);\n }\n names.sort((a, b) => {\n return -(a[1].length - b[1].length);\n });\n for (let i = 0; i < names.length; i++) {\n let name = names[i][1];\n if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {\n index = names[i][0];\n iValue += name.length;\n break;\n }\n }\n if (index !== -1) {\n return index + 1;\n } else {\n throw 'Unknown name at position ' + iValue;\n }\n },\n checkLiteral = () => {\n if (value.charAt(iValue) !== format.charAt(iFormat)) {\n throw 'Unexpected literal at position ' + iValue;\n }\n iValue++;\n };\n if (this.view === 'month') {\n day = 1;\n }\n for (iFormat = 0; iFormat < format.length; iFormat++) {\n if (literal) {\n if (format.charAt(iFormat) === \"'\" && !lookAhead(\"'\")) {\n literal = false;\n } else {\n checkLiteral();\n }\n } else {\n switch (format.charAt(iFormat)) {\n case 'd':\n day = getNumber('d');\n break;\n case 'D':\n getName('D', this.getTranslation(TranslationKeys.DAY_NAMES_SHORT), this.getTranslation(TranslationKeys.DAY_NAMES));\n break;\n case 'o':\n doy = getNumber('o');\n break;\n case 'm':\n month = getNumber('m');\n break;\n case 'M':\n month = getName('M', this.getTranslation(TranslationKeys.MONTH_NAMES_SHORT), this.getTranslation(TranslationKeys.MONTH_NAMES));\n break;\n case 'y':\n year = getNumber('y');\n break;\n case '@':\n date = new Date(getNumber('@'));\n year = date.getFullYear();\n month = date.getMonth() + 1;\n day = date.getDate();\n break;\n case '!':\n date = new Date((getNumber('!') - this.ticksTo1970) / 10000);\n year = date.getFullYear();\n month = date.getMonth() + 1;\n day = date.getDate();\n break;\n case \"'\":\n if (lookAhead(\"'\")) {\n checkLiteral();\n } else {\n literal = true;\n }\n break;\n default:\n checkLiteral();\n }\n }\n }\n if (iValue < value.length) {\n extra = value.substr(iValue);\n if (!/^\\s+/.test(extra)) {\n throw 'Extra/unparsed characters found in date: ' + extra;\n }\n }\n if (year === -1) {\n year = new Date().getFullYear();\n } else if (year < 100) {\n year += new Date().getFullYear() - new Date().getFullYear() % 100 + (year <= shortYearCutoff ? 0 : -100);\n }\n if (doy > -1) {\n month = 1;\n day = doy;\n do {\n dim = this.getDaysCountInMonth(year, month - 1);\n if (day <= dim) {\n break;\n }\n month++;\n day -= dim;\n } while (true);\n }\n if (this.view === 'year') {\n month = month === -1 ? 1 : month;\n day = day === -1 ? 1 : day;\n }\n date = this.daylightSavingAdjust(new Date(year, month - 1, day));\n if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {\n throw 'Invalid date'; // E.g. 31/02/00\n }\n return date;\n }\n daylightSavingAdjust(date) {\n if (!date) {\n return null;\n }\n date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);\n return date;\n }\n updateFilledState() {\n this.filled = this.inputFieldValue && this.inputFieldValue != '';\n }\n isValidDateForTimeConstraints(selectedDate) {\n if (this.keepInvalid) {\n return true; // If we are keeping invalid dates, we don't need to check for time constraints\n }\n return (!this.minDate || selectedDate >= this.minDate) && (!this.maxDate || selectedDate <= this.maxDate);\n }\n onTodayButtonClick(event) {\n const date = new Date();\n const dateMeta = {\n day: date.getDate(),\n month: date.getMonth(),\n year: date.getFullYear(),\n otherMonth: date.getMonth() !== this.currentMonth || date.getFullYear() !== this.currentYear,\n today: true,\n selectable: true\n };\n this.createMonths(date.getMonth(), date.getFullYear());\n this.onDateSelect(event, dateMeta);\n this.onTodayClick.emit(date);\n }\n onClearButtonClick(event) {\n this.updateModel(null);\n this.updateInputfield();\n this.hideOverlay();\n this.onClearClick.emit(event);\n }\n createResponsiveStyle() {\n if (this.numberOfMonths > 1 && this.responsiveOptions) {\n if (!this.responsiveStyleElement) {\n this.responsiveStyleElement = this.renderer.createElement('style');\n this.responsiveStyleElement.type = 'text/css';\n DomHandler.setAttribute(this.responsiveStyleElement, 'nonce', this.config?.csp()?.nonce);\n this.renderer.appendChild(this.document.body, this.responsiveStyleElement);\n }\n let innerHTML = '';\n if (this.responsiveOptions) {\n let responsiveOptions = [...this.responsiveOptions].filter(o => !!(o.breakpoint && o.numMonths)).sort((o1, o2) => -1 * o1.breakpoint.localeCompare(o2.breakpoint, undefined, {\n numeric: true\n }));\n for (let i = 0; i < responsiveOptions.length; i++) {\n let {\n breakpoint,\n numMonths\n } = responsiveOptions[i];\n let styles = `\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${numMonths}) .p-datepicker-next {\n display: inline-flex !important;\n }\n `;\n for (let j = numMonths; j < this.numberOfMonths; j++) {\n styles += `\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${j + 1}) {\n display: none !important;\n }\n `;\n }\n innerHTML += `\n @media screen and (max-width: ${breakpoint}) {\n ${styles}\n }\n `;\n }\n }\n this.responsiveStyleElement.innerHTML = innerHTML;\n }\n }\n destroyResponsiveStyleElement() {\n if (this.responsiveStyleElement) {\n this.responsiveStyleElement.remove();\n this.responsiveStyleElement = null;\n }\n }\n bindDocumentClickListener() {\n if (!this.documentClickListener) {\n this.zone.runOutsideAngular(() => {\n const documentTarget = this.el ? this.el.nativeElement.ownerDocument : this.document;\n this.documentClickListener = this.renderer.listen(documentTarget, 'mousedown', event => {\n if (this.isOutsideClicked(event) && this.overlayVisible) {\n this.zone.run(() => {\n this.hideOverlay();\n this.onClickOutside.emit(event);\n this.cd.markForCheck();\n });\n }\n });\n });\n }\n }\n unbindDocumentClickListener() {\n if (this.documentClickListener) {\n this.documentClickListener();\n this.documentClickListener = null;\n }\n }\n bindDocumentResizeListener() {\n if (!this.documentResizeListener && !this.touchUI) {\n this.documentResizeListener = this.renderer.listen(this.window, 'resize', this.onWindowResize.bind(this));\n }\n }\n unbindDocumentResizeListener() {\n if (this.documentResizeListener) {\n this.documentResizeListener();\n this.documentResizeListener = null;\n }\n }\n bindScrollListener() {\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.containerViewChild?.nativeElement, () => {\n if (this.overlayVisible) {\n this.hideOverlay();\n }\n });\n }\n this.scrollHandler.bindScrollListener();\n }\n unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n isOutsideClicked(event) {\n return !(this.el.nativeElement.isSameNode(event.target) || this.isNavIconClicked(event) || this.el.nativeElement.contains(event.target) || this.overlay && this.overlay.contains(event.target));\n }\n isNavIconClicked(event) {\n return DomHandler.hasClass(event.target, 'p-datepicker-prev') || DomHandler.hasClass(event.target, 'p-datepicker-prev-icon') || DomHandler.hasClass(event.target, 'p-datepicker-next') || DomHandler.hasClass(event.target, 'p-datepicker-next-icon');\n }\n onWindowResize() {\n if (this.overlayVisible && !DomHandler.isTouchDevice()) {\n this.hideOverlay();\n }\n }\n onOverlayHide() {\n this.currentView = this.view;\n if (this.mask) {\n this.destroyMask();\n }\n this.unbindDocumentClickListener();\n this.unbindDocumentResizeListener();\n this.unbindScrollListener();\n this.overlay = null;\n }\n ngOnDestroy() {\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n if (this.translationSubscription) {\n this.translationSubscription.unsubscribe();\n }\n if (this.overlay && this.autoZIndex) {\n ZIndexUtils.clear(this.overlay);\n }\n this.destroyResponsiveStyleElement();\n this.clearTimePickerTimer();\n this.restoreOverlayAppend();\n this.onOverlayHide();\n }\n static ɵfac = function Calendar_Factory(t) {\n return new (t || Calendar)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1.PrimeNGConfig), i0.ɵɵdirectiveInject(i1.OverlayService));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: Calendar,\n selectors: [[\"p-calendar\"]],\n contentQueries: function Calendar_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n }\n },\n viewQuery: function Calendar_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c0, 5);\n i0.ɵɵviewQuery(_c1, 5);\n i0.ɵɵviewQuery(_c2, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputfieldViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);\n }\n },\n hostAttrs: [1, \"p-element\", \"p-inputwrapper\"],\n hostVars: 6,\n hostBindings: function Calendar_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵclassProp(\"p-inputwrapper-filled\", ctx.filled)(\"p-inputwrapper-focus\", ctx.focus)(\"p-calendar-clearable\", ctx.showClear && !ctx.disabled);\n }\n },\n inputs: {\n iconDisplay: \"iconDisplay\",\n style: \"style\",\n styleClass: \"styleClass\",\n inputStyle: \"inputStyle\",\n inputId: \"inputId\",\n name: \"name\",\n inputStyleClass: \"inputStyleClass\",\n placeholder: \"placeholder\",\n ariaLabelledBy: \"ariaLabelledBy\",\n ariaLabel: \"ariaLabel\",\n iconAriaLabel: \"iconAriaLabel\",\n disabled: [2, \"disabled\", \"disabled\", booleanAttribute],\n dateFormat: \"dateFormat\",\n multipleSeparator: \"multipleSeparator\",\n rangeSeparator: \"rangeSeparator\",\n inline: [2, \"inline\", \"inline\", booleanAttribute],\n showOtherMonths: [2, \"showOtherMonths\", \"showOtherMonths\", booleanAttribute],\n selectOtherMonths: [2, \"selectOtherMonths\", \"selectOtherMonths\", booleanAttribute],\n showIcon: [2, \"showIcon\", \"showIcon\", booleanAttribute],\n icon: \"icon\",\n appendTo: \"appendTo\",\n readonlyInput: [2, \"readonlyInput\", \"readonlyInput\", booleanAttribute],\n shortYearCutoff: \"shortYearCutoff\",\n monthNavigator: [2, \"monthNavigator\", \"monthNavigator\", booleanAttribute],\n yearNavigator: [2, \"yearNavigator\", \"yearNavigator\", booleanAttribute],\n hourFormat: \"hourFormat\",\n timeOnly: [2, \"timeOnly\", \"timeOnly\", booleanAttribute],\n stepYearPicker: [2, \"stepYearPicker\", \"stepYearPicker\", numberAttribute],\n stepHour: [2, \"stepHour\", \"stepHour\", numberAttribute],\n stepMinute: [2, \"stepMinute\", \"stepMinute\", numberAttribute],\n stepSecond: [2, \"stepSecond\", \"stepSecond\", numberAttribute],\n showSeconds: [2, \"showSeconds\", \"showSeconds\", booleanAttribute],\n required: [2, \"required\", \"required\", booleanAttribute],\n showOnFocus: [2, \"showOnFocus\", \"showOnFocus\", booleanAttribute],\n showWeek: [2, \"showWeek\", \"showWeek\", booleanAttribute],\n startWeekFromFirstDayOfYear: \"startWeekFromFirstDayOfYear\",\n showClear: [2, \"showClear\", \"showClear\", booleanAttribute],\n dataType: \"dataType\",\n selectionMode: \"selectionMode\",\n maxDateCount: [2, \"maxDateCount\", \"maxDateCount\", numberAttribute],\n showButtonBar: [2, \"showButtonBar\", \"showButtonBar\", booleanAttribute],\n todayButtonStyleClass: \"todayButtonStyleClass\",\n clearButtonStyleClass: \"clearButtonStyleClass\",\n autofocus: [2, \"autofocus\", \"autofocus\", booleanAttribute],\n autoZIndex: [2, \"autoZIndex\", \"autoZIndex\", booleanAttribute],\n baseZIndex: [2, \"baseZIndex\", \"baseZIndex\", numberAttribute],\n panelStyleClass: \"panelStyleClass\",\n panelStyle: \"panelStyle\",\n keepInvalid: [2, \"keepInvalid\", \"keepInvalid\", booleanAttribute],\n hideOnDateTimeSelect: [2, \"hideOnDateTimeSelect\", \"hideOnDateTimeSelect\", booleanAttribute],\n touchUI: [2, \"touchUI\", \"touchUI\", booleanAttribute],\n timeSeparator: \"timeSeparator\",\n focusTrap: [2, \"focusTrap\", \"focusTrap\", booleanAttribute],\n showTransitionOptions: \"showTransitionOptions\",\n hideTransitionOptions: \"hideTransitionOptions\",\n tabindex: [2, \"tabindex\", \"tabindex\", numberAttribute],\n variant: \"variant\",\n minDate: \"minDate\",\n maxDate: \"maxDate\",\n disabledDates: \"disabledDates\",\n disabledDays: \"disabledDays\",\n yearRange: \"yearRange\",\n showTime: \"showTime\",\n responsiveOptions: \"responsiveOptions\",\n numberOfMonths: \"numberOfMonths\",\n firstDayOfWeek: \"firstDayOfWeek\",\n locale: \"locale\",\n view: \"view\",\n defaultDate: \"defaultDate\"\n },\n outputs: {\n onFocus: \"onFocus\",\n onBlur: \"onBlur\",\n onClose: \"onClose\",\n onSelect: \"onSelect\",\n onClear: \"onClear\",\n onInput: \"onInput\",\n onTodayClick: \"onTodayClick\",\n onClearClick: \"onClearClick\",\n onMonthChange: \"onMonthChange\",\n onYearChange: \"onYearChange\",\n onClickOutside: \"onClickOutside\",\n onShow: \"onShow\"\n },\n features: [i0.ɵɵProvidersFeature([CALENDAR_VALUE_ACCESSOR]), i0.ɵɵInputTransformsFeature],\n ngContentSelectors: _c4,\n decls: 4,\n vars: 12,\n consts: [[\"container\", \"\"], [\"inputfield\", \"\"], [\"contentWrapper\", \"\"], [3, \"ngClass\", \"ngStyle\"], [3, \"ngIf\"], [3, \"class\", \"ngStyle\", \"ngClass\", \"click\", 4, \"ngIf\"], [\"type\", \"text\", \"role\", \"combobox\", \"aria-autocomplete\", \"none\", \"aria-haspopup\", \"dialog\", \"autocomplete\", \"off\", \"pAutoFocus\", \"\", 3, \"focus\", \"keydown\", \"click\", \"blur\", \"input\", \"value\", \"readonly\", \"ngStyle\", \"placeholder\", \"disabled\", \"ngClass\", \"autofocus\"], [4, \"ngIf\"], [\"type\", \"button\", \"aria-haspopup\", \"dialog\", \"pButton\", \"\", \"pRipple\", \"\", \"class\", \"p-datepicker-trigger p-button-icon-only\", \"tabindex\", \"0\", 3, \"disabled\", \"click\", 4, \"ngIf\"], [3, \"styleClass\", \"click\", 4, \"ngIf\"], [\"class\", \"p-calendar-clear-icon\", 3, \"click\", 4, \"ngIf\"], [3, \"click\", \"styleClass\"], [1, \"p-calendar-clear-icon\", 3, \"click\"], [4, \"ngTemplateOutlet\"], [\"type\", \"button\", \"aria-haspopup\", \"dialog\", \"pButton\", \"\", \"pRipple\", \"\", \"tabindex\", \"0\", 1, \"p-datepicker-trigger\", \"p-button-icon-only\", 3, \"click\", \"disabled\"], [3, \"ngClass\", 4, \"ngIf\"], [3, \"ngClass\"], [3, \"ngClass\", \"click\", 4, \"ngIf\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [3, \"click\", \"ngClass\"], [3, \"click\", \"ngStyle\", \"ngClass\"], [\"class\", \"p-timepicker\", 4, \"ngIf\"], [\"class\", \"p-datepicker-buttonbar\", 4, \"ngIf\"], [1, \"p-datepicker-group-container\"], [\"class\", \"p-datepicker-group\", 4, \"ngFor\", \"ngForOf\"], [\"class\", \"p-monthpicker\", 4, \"ngIf\"], [\"class\", \"p-yearpicker\", 4, \"ngIf\"], [1, \"p-datepicker-group\"], [1, \"p-datepicker-header\"], [\"class\", \"p-datepicker-prev p-link\", \"type\", \"button\", \"pRipple\", \"\", 3, \"keydown\", \"click\", 4, \"ngIf\"], [1, \"p-datepicker-title\"], [\"type\", \"button\", \"class\", \"p-datepicker-month p-link\", 3, \"disabled\", \"click\", \"keydown\", 4, \"ngIf\"], [\"type\", \"button\", \"class\", \"p-datepicker-year p-link\", 3, \"disabled\", \"click\", \"keydown\", 4, \"ngIf\"], [\"class\", \"p-datepicker-decade\", 4, \"ngIf\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-datepicker-next\", \"p-link\", 3, \"keydown\", \"click\"], [3, \"styleClass\", 4, \"ngIf\"], [\"class\", \"p-datepicker-next-icon\", 4, \"ngIf\"], [\"class\", \"p-datepicker-calendar-container\", 4, \"ngIf\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-datepicker-prev\", \"p-link\", 3, \"keydown\", \"click\"], [\"class\", \"p-datepicker-prev-icon\", 4, \"ngIf\"], [3, \"styleClass\"], [1, \"p-datepicker-prev-icon\"], [\"type\", \"button\", 1, \"p-datepicker-month\", \"p-link\", 3, \"click\", \"keydown\", \"disabled\"], [\"type\", \"button\", 1, \"p-datepicker-year\", \"p-link\", 3, \"click\", \"keydown\", \"disabled\"], [1, \"p-datepicker-decade\"], [1, \"p-datepicker-next-icon\"], [1, \"p-datepicker-calendar-container\"], [\"role\", \"grid\", 1, \"p-datepicker-calendar\"], [\"class\", \"p-datepicker-weekheader p-disabled\", 4, \"ngIf\"], [\"scope\", \"col\", 4, \"ngFor\", \"ngForOf\"], [4, \"ngFor\", \"ngForOf\"], [1, \"p-datepicker-weekheader\", \"p-disabled\"], [\"scope\", \"col\"], [\"class\", \"p-datepicker-weeknumber\", 4, \"ngIf\"], [3, \"ngClass\", 4, \"ngFor\", \"ngForOf\"], [1, \"p-datepicker-weeknumber\"], [1, \"p-disabled\"], [\"draggable\", \"false\", \"pRipple\", \"\", 3, \"click\", \"keydown\", \"ngClass\"], [\"class\", \"p-hidden-accessible\", \"aria-live\", \"polite\", 4, \"ngIf\"], [\"aria-live\", \"polite\", 1, \"p-hidden-accessible\"], [1, \"p-monthpicker\"], [\"class\", \"p-monthpicker-month\", \"pRipple\", \"\", 3, \"ngClass\", \"click\", \"keydown\", 4, \"ngFor\", \"ngForOf\"], [\"pRipple\", \"\", 1, \"p-monthpicker-month\", 3, \"click\", \"keydown\", \"ngClass\"], [1, \"p-yearpicker\"], [\"class\", \"p-yearpicker-year\", \"pRipple\", \"\", 3, \"ngClass\", \"click\", \"keydown\", 4, \"ngFor\", \"ngForOf\"], [\"pRipple\", \"\", 1, \"p-yearpicker-year\", 3, \"click\", \"keydown\", \"ngClass\"], [1, \"p-timepicker\"], [1, \"p-hour-picker\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-link\", 3, \"keydown\", \"keydown.enter\", \"keydown.space\", \"mousedown\", \"mouseup\", \"keyup.enter\", \"keyup.space\", \"mouseleave\"], [1, \"p-separator\"], [1, \"p-minute-picker\"], [\"class\", \"p-separator\", 4, \"ngIf\"], [\"class\", \"p-second-picker\", 4, \"ngIf\"], [\"class\", \"p-ampm-picker\", 4, \"ngIf\"], [1, \"p-second-picker\"], [1, \"p-ampm-picker\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-link\", 3, \"keydown\", \"click\", \"keydown.enter\"], [1, \"p-datepicker-buttonbar\"], [\"type\", \"button\", \"pButton\", \"\", \"pRipple\", \"\", 3, \"keydown\", \"click\", \"label\", \"ngClass\"]],\n template: function Calendar_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c3);\n i0.ɵɵelementStart(0, \"span\", 3, 0);\n i0.ɵɵtemplate(2, Calendar_ng_template_2_Template, 5, 22, \"ng-template\", 4)(3, Calendar_div_3_Template, 9, 32, \"div\", 5);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.styleClass);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction5(6, _c5, ctx.showIcon && ctx.iconDisplay === \"input\", ctx.showIcon && ctx.iconDisplay === \"button\", ctx.timeOnly, ctx.disabled, ctx.focus || ctx.overlayVisible))(\"ngStyle\", ctx.style);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx.inline);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.inline || ctx.overlayVisible);\n }\n },\n dependencies: () => [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i3.ButtonDirective, i4.Ripple, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronDownIcon, TimesIcon, CalendarIcon, i5.AutoFocus],\n styles: [\"@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%;text-overflow:ellipsis}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-datepicker-icon{pointer-events:none}.p-calendar-clearable{position:relative}}\\n\"],\n encapsulation: 2,\n data: {\n animation: [trigger('overlayAnimation', [state('visibleTouchUI', style({\n transform: 'translate(-50%,-50%)',\n opacity: 1\n })), transition('void => visible', [style({\n opacity: 0,\n transform: 'scaleY(0.8)'\n }), animate('{{showTransitionParams}}', style({\n opacity: 1,\n transform: '*'\n }))]), transition('visible => void', [animate('{{hideTransitionParams}}', style({\n opacity: 0\n }))]), transition('void => visibleTouchUI', [style({\n opacity: 0,\n transform: 'translate3d(-50%, -40%, 0) scale(0.9)'\n }), animate('{{showTransitionParams}}')]), transition('visibleTouchUI => void', [animate('{{hideTransitionParams}}', style({\n opacity: 0,\n transform: 'translate3d(-50%, -40%, 0) scale(0.9)'\n }))])])]\n },\n changeDetection: 0\n });\n }\n return Calendar;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet CalendarModule = /*#__PURE__*/(() => {\n class CalendarModule {\n static ɵfac = function CalendarModule_Factory(t) {\n return new (t || CalendarModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: CalendarModule\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [CommonModule, ButtonModule, SharedModule, RippleModule, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronDownIcon, TimesIcon, CalendarIcon, AutoFocusModule, ButtonModule, SharedModule]\n });\n }\n return CalendarModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CALENDAR_VALUE_ACCESSOR, Calendar, CalendarModule };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nimport { UniqueComponentId } from 'primeng/utils';\nlet ArrowDownIcon = /*#__PURE__*/(() => {\n class ArrowDownIcon extends BaseIcon {\n pathId;\n ngOnInit() {\n this.pathId = 'url(#' + UniqueComponentId() + ')';\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵArrowDownIcon_BaseFactory;\n return function ArrowDownIcon_Factory(t) {\n return (ɵArrowDownIcon_BaseFactory || (ɵArrowDownIcon_BaseFactory = i0.ɵɵgetInheritedFactory(ArrowDownIcon)))(t || ArrowDownIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ArrowDownIcon,\n selectors: [[\"ArrowDownIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 6,\n vars: 7,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"fill-rule\", \"evenodd\", \"clip-rule\", \"evenodd\", \"d\", \"M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z\", \"fill\", \"currentColor\"], [3, \"id\"], [\"width\", \"14\", \"height\", \"14\", \"fill\", \"white\"]],\n template: function ArrowDownIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0)(1, \"g\");\n i0.ɵɵelement(2, \"path\", 1);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(3, \"defs\")(4, \"clipPath\", 2);\n i0.ɵɵelement(5, \"rect\", 3);\n i0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"clip-path\", ctx.pathId);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"id\", ctx.pathId);\n }\n },\n encapsulation: 2\n });\n }\n return ArrowDownIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ArrowDownIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nimport { UniqueComponentId } from 'primeng/utils';\nlet ArrowUpIcon = /*#__PURE__*/(() => {\n class ArrowUpIcon extends BaseIcon {\n pathId;\n ngOnInit() {\n this.pathId = 'url(#' + UniqueComponentId() + ')';\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵArrowUpIcon_BaseFactory;\n return function ArrowUpIcon_Factory(t) {\n return (ɵArrowUpIcon_BaseFactory || (ɵArrowUpIcon_BaseFactory = i0.ɵɵgetInheritedFactory(ArrowUpIcon)))(t || ArrowUpIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ArrowUpIcon,\n selectors: [[\"ArrowUpIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 6,\n vars: 7,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"fill-rule\", \"evenodd\", \"clip-rule\", \"evenodd\", \"d\", \"M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z\", \"fill\", \"currentColor\"], [3, \"id\"], [\"width\", \"14\", \"height\", \"14\", \"fill\", \"white\"]],\n template: function ArrowUpIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0)(1, \"g\");\n i0.ɵɵelement(2, \"path\", 1);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(3, \"defs\")(4, \"clipPath\", 2);\n i0.ɵɵelement(5, \"rect\", 3);\n i0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"clip-path\", ctx.pathId);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"id\", ctx.pathId);\n }\n },\n encapsulation: 2\n });\n }\n return ArrowUpIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { ArrowUpIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nimport { UniqueComponentId } from 'primeng/utils';\nlet FilterIcon = /*#__PURE__*/(() => {\n class FilterIcon extends BaseIcon {\n pathId;\n ngOnInit() {\n this.pathId = 'url(#' + UniqueComponentId() + ')';\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵFilterIcon_BaseFactory;\n return function FilterIcon_Factory(t) {\n return (ɵFilterIcon_BaseFactory || (ɵFilterIcon_BaseFactory = i0.ɵɵgetInheritedFactory(FilterIcon)))(t || FilterIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: FilterIcon,\n selectors: [[\"FilterIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 6,\n vars: 7,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z\", \"fill\", \"currentColor\"], [3, \"id\"], [\"width\", \"14\", \"height\", \"14\", \"fill\", \"white\"]],\n template: function FilterIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0)(1, \"g\");\n i0.ɵɵelement(2, \"path\", 1);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(3, \"defs\")(4, \"clipPath\", 2);\n i0.ɵɵelement(5, \"rect\", 3);\n i0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"clip-path\", ctx.pathId);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"id\", ctx.pathId);\n }\n },\n encapsulation: 2\n });\n }\n return FilterIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { FilterIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nimport { UniqueComponentId } from 'primeng/utils';\nlet FilterSlashIcon = /*#__PURE__*/(() => {\n class FilterSlashIcon extends BaseIcon {\n pathId;\n ngOnInit() {\n this.pathId = 'url(#' + UniqueComponentId() + ')';\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵFilterSlashIcon_BaseFactory;\n return function FilterSlashIcon_Factory(t) {\n return (ɵFilterSlashIcon_BaseFactory || (ɵFilterSlashIcon_BaseFactory = i0.ɵɵgetInheritedFactory(FilterSlashIcon)))(t || FilterSlashIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: FilterSlashIcon,\n selectors: [[\"FilterSlashIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 6,\n vars: 7,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"fill-rule\", \"evenodd\", \"clip-rule\", \"evenodd\", \"d\", \"M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z\", \"fill\", \"currentColor\"], [3, \"id\"], [\"width\", \"14\", \"height\", \"14\", \"fill\", \"white\"]],\n template: function FilterSlashIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0)(1, \"g\");\n i0.ɵɵelement(2, \"path\", 1);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(3, \"defs\")(4, \"clipPath\", 2);\n i0.ɵɵelement(5, \"rect\", 3);\n i0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"clip-path\", ctx.pathId);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"id\", ctx.pathId);\n }\n },\n encapsulation: 2\n });\n }\n return FilterSlashIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { FilterSlashIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nimport { UniqueComponentId } from 'primeng/utils';\nlet PlusIcon = /*#__PURE__*/(() => {\n class PlusIcon extends BaseIcon {\n pathId;\n ngOnInit() {\n this.pathId = 'url(#' + UniqueComponentId() + ')';\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵPlusIcon_BaseFactory;\n return function PlusIcon_Factory(t) {\n return (ɵPlusIcon_BaseFactory || (ɵPlusIcon_BaseFactory = i0.ɵɵgetInheritedFactory(PlusIcon)))(t || PlusIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: PlusIcon,\n selectors: [[\"PlusIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 6,\n vars: 7,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z\", \"fill\", \"currentColor\"], [3, \"id\"], [\"width\", \"14\", \"height\", \"14\", \"fill\", \"white\"]],\n template: function PlusIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0)(1, \"g\");\n i0.ɵɵelement(2, \"path\", 1);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(3, \"defs\")(4, \"clipPath\", 2);\n i0.ɵɵelement(5, \"rect\", 3);\n i0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"clip-path\", ctx.pathId);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"id\", ctx.pathId);\n }\n },\n encapsulation: 2\n });\n }\n return PlusIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { PlusIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nimport { UniqueComponentId } from 'primeng/utils';\nlet SortAltIcon = /*#__PURE__*/(() => {\n class SortAltIcon extends BaseIcon {\n pathId;\n ngOnInit() {\n this.pathId = 'url(#' + UniqueComponentId() + ')';\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵSortAltIcon_BaseFactory;\n return function SortAltIcon_Factory(t) {\n return (ɵSortAltIcon_BaseFactory || (ɵSortAltIcon_BaseFactory = i0.ɵɵgetInheritedFactory(SortAltIcon)))(t || SortAltIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: SortAltIcon,\n selectors: [[\"SortAltIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 9,\n vars: 7,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z\", \"fill\", \"currentColor\"], [\"d\", \"M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z\", \"fill\", \"currentColor\"], [\"d\", \"M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z\", \"fill\", \"currentColor\"], [\"d\", \"M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z\", \"fill\", \"currentColor\"], [3, \"id\"], [\"width\", \"14\", \"height\", \"14\", \"fill\", \"white\"]],\n template: function SortAltIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0)(1, \"g\");\n i0.ɵɵelement(2, \"path\", 1)(3, \"path\", 2)(4, \"path\", 3)(5, \"path\", 4);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(6, \"defs\")(7, \"clipPath\", 5);\n i0.ɵɵelement(8, \"rect\", 6);\n i0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"clip-path\", ctx.pathId);\n i0.ɵɵadvance(6);\n i0.ɵɵproperty(\"id\", ctx.pathId);\n }\n },\n encapsulation: 2\n });\n }\n return SortAltIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { SortAltIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nimport { UniqueComponentId } from 'primeng/utils';\nlet SortAmountDownIcon = /*#__PURE__*/(() => {\n class SortAmountDownIcon extends BaseIcon {\n pathId;\n ngOnInit() {\n this.pathId = 'url(#' + UniqueComponentId() + ')';\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵSortAmountDownIcon_BaseFactory;\n return function SortAmountDownIcon_Factory(t) {\n return (ɵSortAmountDownIcon_BaseFactory || (ɵSortAmountDownIcon_BaseFactory = i0.ɵɵgetInheritedFactory(SortAmountDownIcon)))(t || SortAmountDownIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: SortAmountDownIcon,\n selectors: [[\"SortAmountDownIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 6,\n vars: 7,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z\", \"fill\", \"currentColor\"], [3, \"id\"], [\"width\", \"14\", \"height\", \"14\", \"fill\", \"white\"]],\n template: function SortAmountDownIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0)(1, \"g\");\n i0.ɵɵelement(2, \"path\", 1);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(3, \"defs\")(4, \"clipPath\", 2);\n i0.ɵɵelement(5, \"rect\", 3);\n i0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"clip-path\", ctx.pathId);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"id\", ctx.pathId);\n }\n },\n encapsulation: 2\n });\n }\n return SortAmountDownIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { SortAmountDownIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nimport { UniqueComponentId } from 'primeng/utils';\nlet SortAmountUpAltIcon = /*#__PURE__*/(() => {\n class SortAmountUpAltIcon extends BaseIcon {\n pathId;\n ngOnInit() {\n this.pathId = 'url(#' + UniqueComponentId() + ')';\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵSortAmountUpAltIcon_BaseFactory;\n return function SortAmountUpAltIcon_Factory(t) {\n return (ɵSortAmountUpAltIcon_BaseFactory || (ɵSortAmountUpAltIcon_BaseFactory = i0.ɵɵgetInheritedFactory(SortAmountUpAltIcon)))(t || SortAmountUpAltIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: SortAmountUpAltIcon,\n selectors: [[\"SortAmountUpAltIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 6,\n vars: 7,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z\", \"fill\", \"currentColor\"], [3, \"id\"], [\"width\", \"14\", \"height\", \"14\", \"fill\", \"white\"]],\n template: function SortAmountUpAltIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0)(1, \"g\");\n i0.ɵɵelement(2, \"path\", 1);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(3, \"defs\")(4, \"clipPath\", 2);\n i0.ɵɵelement(5, \"rect\", 3);\n i0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"clip-path\", ctx.pathId);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"id\", ctx.pathId);\n }\n },\n encapsulation: 2\n });\n }\n return SortAmountUpAltIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { SortAmountUpAltIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nimport { UniqueComponentId } from 'primeng/utils';\nlet TrashIcon = /*#__PURE__*/(() => {\n class TrashIcon extends BaseIcon {\n pathId;\n ngOnInit() {\n this.pathId = 'url(#' + UniqueComponentId() + ')';\n }\n static ɵfac = /* @__PURE__ */(() => {\n let ɵTrashIcon_BaseFactory;\n return function TrashIcon_Factory(t) {\n return (ɵTrashIcon_BaseFactory || (ɵTrashIcon_BaseFactory = i0.ɵɵgetInheritedFactory(TrashIcon)))(t || TrashIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TrashIcon,\n selectors: [[\"TrashIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 6,\n vars: 7,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"fill-rule\", \"evenodd\", \"clip-rule\", \"evenodd\", \"d\", \"M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z\", \"fill\", \"currentColor\"], [3, \"id\"], [\"width\", \"14\", \"height\", \"14\", \"fill\", \"white\"]],\n template: function TrashIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0)(1, \"g\");\n i0.ɵɵelement(2, \"path\", 1);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(3, \"defs\")(4, \"clipPath\", 2);\n i0.ɵɵelement(5, \"rect\", 3);\n i0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"clip-path\", ctx.pathId);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"id\", ctx.pathId);\n }\n },\n encapsulation: 2\n });\n }\n return TrashIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TrashIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet AngleDoubleLeftIcon = /*#__PURE__*/(() => {\n class AngleDoubleLeftIcon extends BaseIcon {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵAngleDoubleLeftIcon_BaseFactory;\n return function AngleDoubleLeftIcon_Factory(t) {\n return (ɵAngleDoubleLeftIcon_BaseFactory || (ɵAngleDoubleLeftIcon_BaseFactory = i0.ɵɵgetInheritedFactory(AngleDoubleLeftIcon)))(t || AngleDoubleLeftIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: AngleDoubleLeftIcon,\n selectors: [[\"AngleDoubleLeftIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 2,\n vars: 5,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"fill-rule\", \"evenodd\", \"clip-rule\", \"evenodd\", \"d\", \"M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z\", \"fill\", \"currentColor\"]],\n template: function AngleDoubleLeftIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵelement(1, \"path\", 1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n }\n },\n encapsulation: 2\n });\n }\n return AngleDoubleLeftIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AngleDoubleLeftIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet AngleDoubleRightIcon = /*#__PURE__*/(() => {\n class AngleDoubleRightIcon extends BaseIcon {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵAngleDoubleRightIcon_BaseFactory;\n return function AngleDoubleRightIcon_Factory(t) {\n return (ɵAngleDoubleRightIcon_BaseFactory || (ɵAngleDoubleRightIcon_BaseFactory = i0.ɵɵgetInheritedFactory(AngleDoubleRightIcon)))(t || AngleDoubleRightIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: AngleDoubleRightIcon,\n selectors: [[\"AngleDoubleRightIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 2,\n vars: 5,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"fill-rule\", \"evenodd\", \"clip-rule\", \"evenodd\", \"d\", \"M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z\", \"fill\", \"currentColor\"]],\n template: function AngleDoubleRightIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵelement(1, \"path\", 1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n }\n },\n encapsulation: 2\n });\n }\n return AngleDoubleRightIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AngleDoubleRightIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet AngleLeftIcon = /*#__PURE__*/(() => {\n class AngleLeftIcon extends BaseIcon {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵAngleLeftIcon_BaseFactory;\n return function AngleLeftIcon_Factory(t) {\n return (ɵAngleLeftIcon_BaseFactory || (ɵAngleLeftIcon_BaseFactory = i0.ɵɵgetInheritedFactory(AngleLeftIcon)))(t || AngleLeftIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: AngleLeftIcon,\n selectors: [[\"AngleLeftIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 2,\n vars: 5,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z\", \"fill\", \"currentColor\"]],\n template: function AngleLeftIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵelement(1, \"path\", 1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n }\n },\n encapsulation: 2\n });\n }\n return AngleLeftIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AngleLeftIcon };\n","import * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet AngleRightIcon = /*#__PURE__*/(() => {\n class AngleRightIcon extends BaseIcon {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵAngleRightIcon_BaseFactory;\n return function AngleRightIcon_Factory(t) {\n return (ɵAngleRightIcon_BaseFactory || (ɵAngleRightIcon_BaseFactory = i0.ɵɵgetInheritedFactory(AngleRightIcon)))(t || AngleRightIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: AngleRightIcon,\n selectors: [[\"AngleRightIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 2,\n vars: 5,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z\", \"fill\", \"currentColor\"]],\n template: function AngleRightIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵelement(1, \"path\", 1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n }\n },\n encapsulation: 2\n });\n }\n return AngleRightIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { AngleRightIcon };\n","import * as i2 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { EventEmitter, numberAttribute, booleanAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ContentChildren, NgModule } from '@angular/core';\nimport * as i5 from '@angular/forms';\nimport { FormsModule } from '@angular/forms';\nimport * as i1 from 'primeng/api';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\nimport * as i3 from 'primeng/dropdown';\nimport { DropdownModule } from 'primeng/dropdown';\nimport { AngleDoubleLeftIcon } from 'primeng/icons/angledoubleleft';\nimport { AngleDoubleRightIcon } from 'primeng/icons/angledoubleright';\nimport { AngleLeftIcon } from 'primeng/icons/angleleft';\nimport { AngleRightIcon } from 'primeng/icons/angleright';\nimport * as i4 from 'primeng/inputnumber';\nimport { InputNumberModule } from 'primeng/inputnumber';\nimport * as i6 from 'primeng/ripple';\nimport { RippleModule } from 'primeng/ripple';\n\n/**\n * Paginator is a generic component to display content in paged format.\n * @group Components\n */\nconst _c0 = a0 => ({\n \"p-disabled\": a0\n});\nconst _c1 = a0 => ({\n $implicit: a0\n});\nconst _c2 = a0 => ({\n \"p-highlight\": a0\n});\nfunction Paginator_div_0_div_1_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Paginator_div_0_div_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 15);\n i0.ɵɵtemplate(1, Paginator_div_0_div_1_ng_container_1_Template, 1, 0, \"ng-container\", 16);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵattribute(\"data-pc-section\", \"start\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.templateLeft)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(3, _c1, ctx_r1.paginatorState));\n }\n}\nfunction Paginator_div_0_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 17);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx_r1.currentPageReport);\n }\n}\nfunction Paginator_div_0_button_3_AngleDoubleLeftIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"AngleDoubleLeftIcon\", 19);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-paginator-icon\");\n }\n}\nfunction Paginator_div_0_button_3_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction Paginator_div_0_button_3_span_2_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Paginator_div_0_button_3_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Paginator_div_0_button_3_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 20);\n i0.ɵɵtemplate(1, Paginator_div_0_button_3_span_2_1_Template, 1, 0, null, 21);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.firstPageLinkIconTemplate);\n }\n}\nfunction Paginator_div_0_button_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r3 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 18);\n i0.ɵɵlistener(\"click\", function Paginator_div_0_button_3_Template_button_click_0_listener($event) {\n i0.ɵɵrestoreView(_r3);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.changePageToFirst($event));\n });\n i0.ɵɵtemplate(1, Paginator_div_0_button_3_AngleDoubleLeftIcon_1_Template, 1, 1, \"AngleDoubleLeftIcon\", 6)(2, Paginator_div_0_button_3_span_2_Template, 2, 1, \"span\", 7);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"disabled\", ctx_r1.isFirstPage() || ctx_r1.empty())(\"ngClass\", i0.ɵɵpureFunction1(5, _c0, ctx_r1.isFirstPage() || ctx_r1.empty()));\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getAriaLabel(\"firstPageLabel\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.firstPageLinkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.firstPageLinkIconTemplate);\n }\n}\nfunction Paginator_div_0_AngleLeftIcon_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"AngleLeftIcon\", 19);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-paginator-icon\");\n }\n}\nfunction Paginator_div_0_span_6_1_ng_template_0_Template(rf, ctx) {}\nfunction Paginator_div_0_span_6_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Paginator_div_0_span_6_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Paginator_div_0_span_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 20);\n i0.ɵɵtemplate(1, Paginator_div_0_span_6_1_Template, 1, 0, null, 21);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.previousPageLinkIconTemplate);\n }\n}\nfunction Paginator_div_0_span_7_button_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r4 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 24);\n i0.ɵɵlistener(\"click\", function Paginator_div_0_span_7_button_1_Template_button_click_0_listener($event) {\n const pageLink_r5 = i0.ɵɵrestoreView(_r4).$implicit;\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.onPageLinkClick($event, pageLink_r5 - 1));\n });\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const pageLink_r5 = ctx.$implicit;\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(4, _c2, pageLink_r5 - 1 == ctx_r1.getPage()));\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getPageAriaLabel(pageLink_r5))(\"aria-current\", pageLink_r5 - 1 == ctx_r1.getPage() ? \"page\" : undefined);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.getLocalization(pageLink_r5), \" \");\n }\n}\nfunction Paginator_div_0_span_7_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 22);\n i0.ɵɵtemplate(1, Paginator_div_0_span_7_button_1_Template, 2, 6, \"button\", 23);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", ctx_r1.pageLinks);\n }\n}\nfunction Paginator_div_0_p_dropdown_8_ng_template_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtext(0);\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵtextInterpolate(ctx_r1.currentPageReport);\n }\n}\nfunction Paginator_div_0_p_dropdown_8_ng_container_2_ng_template_1_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Paginator_div_0_p_dropdown_8_ng_container_2_ng_template_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Paginator_div_0_p_dropdown_8_ng_container_2_ng_template_1_ng_container_0_Template, 1, 0, \"ng-container\", 16);\n }\n if (rf & 2) {\n const item_r7 = ctx.$implicit;\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.jumpToPageItemTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c1, item_r7));\n }\n}\nfunction Paginator_div_0_p_dropdown_8_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Paginator_div_0_p_dropdown_8_ng_container_2_ng_template_1_Template, 1, 4, \"ng-template\", 28);\n i0.ɵɵelementContainerEnd();\n }\n}\nfunction Paginator_div_0_p_dropdown_8_3_ng_template_0_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Paginator_div_0_p_dropdown_8_3_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Paginator_div_0_p_dropdown_8_3_ng_template_0_ng_container_0_Template, 1, 0, \"ng-container\", 21);\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.dropdownIconTemplate);\n }\n}\nfunction Paginator_div_0_p_dropdown_8_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Paginator_div_0_p_dropdown_8_3_ng_template_0_Template, 1, 1, \"ng-template\", 29);\n }\n}\nfunction Paginator_div_0_p_dropdown_8_Template(rf, ctx) {\n if (rf & 1) {\n const _r6 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"p-dropdown\", 25);\n i0.ɵɵlistener(\"onChange\", function Paginator_div_0_p_dropdown_8_Template_p_dropdown_onChange_0_listener($event) {\n i0.ɵɵrestoreView(_r6);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onPageDropdownChange($event));\n });\n i0.ɵɵtemplate(1, Paginator_div_0_p_dropdown_8_ng_template_1_Template, 1, 1, \"ng-template\", 26)(2, Paginator_div_0_p_dropdown_8_ng_container_2_Template, 2, 0, \"ng-container\", 27)(3, Paginator_div_0_p_dropdown_8_3_Template, 1, 0, null, 27);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"options\", ctx_r1.pageItems)(\"ngModel\", ctx_r1.getPage())(\"disabled\", ctx_r1.empty())(\"appendTo\", ctx_r1.dropdownAppendTo)(\"scrollHeight\", ctx_r1.dropdownScrollHeight);\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getAriaLabel(\"jumpToPageDropdownLabel\"));\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.jumpToPageItemTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.dropdownIconTemplate);\n }\n}\nfunction Paginator_div_0_AngleRightIcon_10_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"AngleRightIcon\", 19);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-paginator-icon\");\n }\n}\nfunction Paginator_div_0_span_11_1_ng_template_0_Template(rf, ctx) {}\nfunction Paginator_div_0_span_11_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Paginator_div_0_span_11_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Paginator_div_0_span_11_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 20);\n i0.ɵɵtemplate(1, Paginator_div_0_span_11_1_Template, 1, 0, null, 21);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.nextPageLinkIconTemplate);\n }\n}\nfunction Paginator_div_0_button_12_AngleDoubleRightIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"AngleDoubleRightIcon\", 19);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-paginator-icon\");\n }\n}\nfunction Paginator_div_0_button_12_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction Paginator_div_0_button_12_span_2_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Paginator_div_0_button_12_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Paginator_div_0_button_12_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 20);\n i0.ɵɵtemplate(1, Paginator_div_0_button_12_span_2_1_Template, 1, 0, null, 21);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.lastPageLinkIconTemplate);\n }\n}\nfunction Paginator_div_0_button_12_Template(rf, ctx) {\n if (rf & 1) {\n const _r8 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 30);\n i0.ɵɵlistener(\"click\", function Paginator_div_0_button_12_Template_button_click_0_listener($event) {\n i0.ɵɵrestoreView(_r8);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.changePageToLast($event));\n });\n i0.ɵɵtemplate(1, Paginator_div_0_button_12_AngleDoubleRightIcon_1_Template, 1, 1, \"AngleDoubleRightIcon\", 6)(2, Paginator_div_0_button_12_span_2_Template, 2, 1, \"span\", 7);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"disabled\", ctx_r1.isLastPage() || ctx_r1.empty())(\"ngClass\", i0.ɵɵpureFunction1(5, _c0, ctx_r1.isLastPage() || ctx_r1.empty()));\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getAriaLabel(\"lastPageLabel\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.lastPageLinkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.lastPageLinkIconTemplate);\n }\n}\nfunction Paginator_div_0_p_inputNumber_13_Template(rf, ctx) {\n if (rf & 1) {\n const _r9 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"p-inputNumber\", 31);\n i0.ɵɵlistener(\"ngModelChange\", function Paginator_div_0_p_inputNumber_13_Template_p_inputNumber_ngModelChange_0_listener($event) {\n i0.ɵɵrestoreView(_r9);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.changePage($event - 1));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngModel\", ctx_r1.currentPage())(\"disabled\", ctx_r1.empty());\n }\n}\nfunction Paginator_div_0_p_dropdown_14_ng_container_1_ng_template_1_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Paginator_div_0_p_dropdown_14_ng_container_1_ng_template_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Paginator_div_0_p_dropdown_14_ng_container_1_ng_template_1_ng_container_0_Template, 1, 0, \"ng-container\", 16);\n }\n if (rf & 2) {\n const item_r11 = ctx.$implicit;\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.dropdownItemTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c1, item_r11));\n }\n}\nfunction Paginator_div_0_p_dropdown_14_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Paginator_div_0_p_dropdown_14_ng_container_1_ng_template_1_Template, 1, 4, \"ng-template\", 28);\n i0.ɵɵelementContainerEnd();\n }\n}\nfunction Paginator_div_0_p_dropdown_14_2_ng_template_0_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Paginator_div_0_p_dropdown_14_2_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Paginator_div_0_p_dropdown_14_2_ng_template_0_ng_container_0_Template, 1, 0, \"ng-container\", 21);\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.dropdownIconTemplate);\n }\n}\nfunction Paginator_div_0_p_dropdown_14_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Paginator_div_0_p_dropdown_14_2_ng_template_0_Template, 1, 1, \"ng-template\", 29);\n }\n}\nfunction Paginator_div_0_p_dropdown_14_Template(rf, ctx) {\n if (rf & 1) {\n const _r10 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"p-dropdown\", 32);\n i0.ɵɵtwoWayListener(\"ngModelChange\", function Paginator_div_0_p_dropdown_14_Template_p_dropdown_ngModelChange_0_listener($event) {\n i0.ɵɵrestoreView(_r10);\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵtwoWayBindingSet(ctx_r1.rows, $event) || (ctx_r1.rows = $event);\n return i0.ɵɵresetView($event);\n });\n i0.ɵɵlistener(\"onChange\", function Paginator_div_0_p_dropdown_14_Template_p_dropdown_onChange_0_listener($event) {\n i0.ɵɵrestoreView(_r10);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onRppChange($event));\n });\n i0.ɵɵtemplate(1, Paginator_div_0_p_dropdown_14_ng_container_1_Template, 2, 0, \"ng-container\", 27)(2, Paginator_div_0_p_dropdown_14_2_Template, 1, 0, null, 27);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"options\", ctx_r1.rowsPerPageItems);\n i0.ɵɵtwoWayProperty(\"ngModel\", ctx_r1.rows);\n i0.ɵɵproperty(\"disabled\", ctx_r1.empty())(\"appendTo\", ctx_r1.dropdownAppendTo)(\"scrollHeight\", ctx_r1.dropdownScrollHeight)(\"ariaLabel\", ctx_r1.getAriaLabel(\"rowsPerPageLabel\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.dropdownItemTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.dropdownIconTemplate);\n }\n}\nfunction Paginator_div_0_div_15_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Paginator_div_0_div_15_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 33);\n i0.ɵɵtemplate(1, Paginator_div_0_div_15_ng_container_1_Template, 1, 0, \"ng-container\", 16);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵattribute(\"data-pc-section\", \"end\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.templateRight)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(3, _c1, ctx_r1.paginatorState));\n }\n}\nfunction Paginator_div_0_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵtemplate(1, Paginator_div_0_div_1_Template, 2, 5, \"div\", 2)(2, Paginator_div_0_span_2_Template, 2, 1, \"span\", 3)(3, Paginator_div_0_button_3_Template, 3, 7, \"button\", 4);\n i0.ɵɵelementStart(4, \"button\", 5);\n i0.ɵɵlistener(\"click\", function Paginator_div_0_Template_button_click_4_listener($event) {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.changePageToPrev($event));\n });\n i0.ɵɵtemplate(5, Paginator_div_0_AngleLeftIcon_5_Template, 1, 1, \"AngleLeftIcon\", 6)(6, Paginator_div_0_span_6_Template, 2, 1, \"span\", 7);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(7, Paginator_div_0_span_7_Template, 2, 1, \"span\", 8)(8, Paginator_div_0_p_dropdown_8_Template, 4, 8, \"p-dropdown\", 9);\n i0.ɵɵelementStart(9, \"button\", 10);\n i0.ɵɵlistener(\"click\", function Paginator_div_0_Template_button_click_9_listener($event) {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.changePageToNext($event));\n });\n i0.ɵɵtemplate(10, Paginator_div_0_AngleRightIcon_10_Template, 1, 1, \"AngleRightIcon\", 6)(11, Paginator_div_0_span_11_Template, 2, 1, \"span\", 7);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(12, Paginator_div_0_button_12_Template, 3, 7, \"button\", 11)(13, Paginator_div_0_p_inputNumber_13_Template, 1, 2, \"p-inputNumber\", 12)(14, Paginator_div_0_p_dropdown_14_Template, 3, 8, \"p-dropdown\", 13)(15, Paginator_div_0_div_15_Template, 2, 5, \"div\", 14);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵclassMap(ctx_r1.styleClass);\n i0.ɵɵproperty(\"ngStyle\", ctx_r1.style)(\"ngClass\", \"p-paginator p-component\");\n i0.ɵɵattribute(\"data-pc-section\", \"paginator\")(\"data-pc-section\", \"root\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.templateLeft);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showCurrentPageReport);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showFirstLastIcon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"disabled\", ctx_r1.isFirstPage() || ctx_r1.empty())(\"ngClass\", i0.ɵɵpureFunction1(25, _c0, ctx_r1.isFirstPage() || ctx_r1.empty()));\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getAriaLabel(\"prevPageLabel\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.previousPageLinkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.previousPageLinkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showPageLinks);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showJumpToPageDropdown);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"disabled\", ctx_r1.isLastPage() || ctx_r1.empty())(\"ngClass\", i0.ɵɵpureFunction1(27, _c0, ctx_r1.isLastPage() || ctx_r1.empty()));\n i0.ɵɵattribute(\"aria-label\", ctx_r1.getAriaLabel(\"nextPageLabel\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.nextPageLinkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.nextPageLinkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showFirstLastIcon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showJumpToPageInput);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.rowsPerPageOptions);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.templateRight);\n }\n}\nlet Paginator = /*#__PURE__*/(() => {\n class Paginator {\n cd;\n config;\n /**\n * Number of page links to display.\n * @group Props\n */\n pageLinkSize = 5;\n /**\n * Inline style of the component.\n * @group Props\n */\n style;\n /**\n * Style class of the component.\n * @group Props\n */\n styleClass;\n /**\n * Whether to show it even there is only one page.\n * @group Props\n */\n alwaysShow = true;\n /**\n * Target element to attach the dropdown overlay, valid values are \"body\" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]=\"mydiv\" for a div element having #mydiv as variable name).\n * @group Props\n */\n dropdownAppendTo;\n /**\n * Template instance to inject into the left side of the paginator.\n * @param {PaginatorState} context - Paginator state.\n * @group Props\n */\n templateLeft;\n /**\n * Template instance to inject into the right side of the paginator.\n * @param {PaginatorState} context - Paginator state.\n * @group Props\n */\n templateRight;\n /**\n * Target element to attach the dropdown overlay, valid values are \"body\" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]=\"mydiv\" for a div element having #mydiv as variable name).\n * @group Props\n */\n appendTo;\n /**\n * Dropdown height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.\n * @group Props\n */\n dropdownScrollHeight = '200px';\n /**\n * Template of the current page report element. Available placeholders are {currentPage},{totalPages},{rows},{first},{last} and {totalRecords}\n * @group Props\n */\n currentPageReportTemplate = '{currentPage} of {totalPages}';\n /**\n * Whether to display current page report.\n * @group Props\n */\n showCurrentPageReport;\n /**\n * When enabled, icons are displayed on paginator to go first and last page.\n * @group Props\n */\n showFirstLastIcon = true;\n /**\n * Number of total records.\n * @group Props\n */\n totalRecords = 0;\n /**\n * Data count to display per page.\n * @group Props\n */\n rows = 0;\n /**\n * Array of integer/object values to display inside rows per page dropdown. A object that have 'showAll' key can be added to it to show all data. Exp; [10,20,30,{showAll:'All'}]\n * @group Props\n */\n rowsPerPageOptions;\n /**\n * Whether to display a dropdown to navigate to any page.\n * @group Props\n */\n showJumpToPageDropdown;\n /**\n * Whether to display a input to navigate to any page.\n * @group Props\n */\n showJumpToPageInput;\n /**\n * Template instance to inject into the jump to page dropdown item inside in the paginator.\n * @param {Object} context - item instance.\n * @group Props\n */\n jumpToPageItemTemplate;\n /**\n * Whether to show page links.\n * @group Props\n */\n showPageLinks = true;\n /**\n * Locale to be used in formatting.\n * @group Props\n */\n locale;\n /**\n * Template instance to inject into the rows per page dropdown item inside in the paginator.\n * @param {Object} context - item instance.\n * @group Props\n */\n dropdownItemTemplate;\n /**\n * Zero-relative number of the first row to be displayed.\n * @group Props\n */\n get first() {\n return this._first;\n }\n set first(val) {\n this._first = val;\n }\n /**\n * Callback to invoke when page changes, the event object contains information about the new state.\n * @param {PaginatorState} event - Paginator state.\n * @group Emits\n */\n onPageChange = new EventEmitter();\n templates;\n dropdownIconTemplate;\n firstPageLinkIconTemplate;\n previousPageLinkIconTemplate;\n lastPageLinkIconTemplate;\n nextPageLinkIconTemplate;\n pageLinks;\n pageItems;\n rowsPerPageItems;\n paginatorState;\n _first = 0;\n _page = 0;\n constructor(cd, config) {\n this.cd = cd;\n this.config = config;\n }\n ngOnInit() {\n this.updatePaginatorState();\n }\n getAriaLabel(labelType) {\n return this.config.translation.aria ? this.config.translation.aria[labelType] : undefined;\n }\n getPageAriaLabel(value) {\n return this.config.translation.aria ? this.config.translation.aria.pageLabel.replace(/{page}/g, `${value}`) : undefined;\n }\n getLocalization(digit) {\n const numerals = [...new Intl.NumberFormat(this.locale, {\n useGrouping: false\n }).format(9876543210)].reverse();\n const index = new Map(numerals.map((d, i) => [i, d]));\n if (digit > 9) {\n const numbers = String(digit).split('');\n return numbers.map(number => index.get(Number(number))).join('');\n } else {\n return index.get(digit);\n }\n }\n ngAfterContentInit() {\n this.templates.forEach(item => {\n switch (item.getType()) {\n case 'dropdownicon':\n this.dropdownIconTemplate = item.template;\n break;\n case 'firstpagelinkicon':\n this.firstPageLinkIconTemplate = item.template;\n break;\n case 'previouspagelinkicon':\n this.previousPageLinkIconTemplate = item.template;\n break;\n case 'lastpagelinkicon':\n this.lastPageLinkIconTemplate = item.template;\n break;\n case 'nextpagelinkicon':\n this.nextPageLinkIconTemplate = item.template;\n break;\n }\n });\n }\n ngOnChanges(simpleChange) {\n if (simpleChange.totalRecords) {\n this.updatePageLinks();\n this.updatePaginatorState();\n this.updateFirst();\n this.updateRowsPerPageOptions();\n }\n if (simpleChange.first) {\n this._first = simpleChange.first.currentValue;\n this.updatePageLinks();\n this.updatePaginatorState();\n }\n if (simpleChange.rows) {\n this.updatePageLinks();\n this.updatePaginatorState();\n }\n if (simpleChange.rowsPerPageOptions) {\n this.updateRowsPerPageOptions();\n }\n if (simpleChange.pageLinkSize) {\n this.updatePageLinks();\n }\n }\n updateRowsPerPageOptions() {\n if (this.rowsPerPageOptions) {\n this.rowsPerPageItems = [];\n for (let opt of this.rowsPerPageOptions) {\n if (typeof opt == 'object' && opt['showAll']) {\n this.rowsPerPageItems.unshift({\n label: opt['showAll'],\n value: this.totalRecords\n });\n } else {\n this.rowsPerPageItems.push({\n label: String(this.getLocalization(opt)),\n value: opt\n });\n }\n }\n }\n }\n isFirstPage() {\n return this.getPage() === 0;\n }\n isLastPage() {\n return this.getPage() === this.getPageCount() - 1;\n }\n getPageCount() {\n return Math.ceil(this.totalRecords / this.rows);\n }\n calculatePageLinkBoundaries() {\n let numberOfPages = this.getPageCount(),\n visiblePages = Math.min(this.pageLinkSize, numberOfPages);\n //calculate range, keep current in middle if necessary\n let start = Math.max(0, Math.ceil(this.getPage() - visiblePages / 2)),\n end = Math.min(numberOfPages - 1, start + visiblePages - 1);\n //check when approaching to last page\n var delta = this.pageLinkSize - (end - start + 1);\n start = Math.max(0, start - delta);\n return [start, end];\n }\n updatePageLinks() {\n this.pageLinks = [];\n let boundaries = this.calculatePageLinkBoundaries(),\n start = boundaries[0],\n end = boundaries[1];\n for (let i = start; i <= end; i++) {\n this.pageLinks.push(i + 1);\n }\n if (this.showJumpToPageDropdown) {\n this.pageItems = [];\n for (let i = 0; i < this.getPageCount(); i++) {\n this.pageItems.push({\n label: String(i + 1),\n value: i\n });\n }\n }\n }\n changePage(p) {\n var pc = this.getPageCount();\n if (p >= 0 && p < pc) {\n this._first = this.rows * p;\n var state = {\n page: p,\n first: this.first,\n rows: this.rows,\n pageCount: pc\n };\n this.updatePageLinks();\n this.onPageChange.emit(state);\n this.updatePaginatorState();\n }\n }\n updateFirst() {\n const page = this.getPage();\n if (page > 0 && this.totalRecords && this.first >= this.totalRecords) {\n Promise.resolve(null).then(() => this.changePage(page - 1));\n }\n }\n getPage() {\n return Math.floor(this.first / this.rows);\n }\n changePageToFirst(event) {\n if (!this.isFirstPage()) {\n this.changePage(0);\n }\n event.preventDefault();\n }\n changePageToPrev(event) {\n this.changePage(this.getPage() - 1);\n event.preventDefault();\n }\n changePageToNext(event) {\n this.changePage(this.getPage() + 1);\n event.preventDefault();\n }\n changePageToLast(event) {\n if (!this.isLastPage()) {\n this.changePage(this.getPageCount() - 1);\n }\n event.preventDefault();\n }\n onPageLinkClick(event, page) {\n this.changePage(page);\n event.preventDefault();\n }\n onRppChange(event) {\n this.changePage(this.getPage());\n }\n onPageDropdownChange(event) {\n this.changePage(event.value);\n }\n updatePaginatorState() {\n this.paginatorState = {\n page: this.getPage(),\n pageCount: this.getPageCount(),\n rows: this.rows,\n first: this.first,\n totalRecords: this.totalRecords\n };\n }\n empty() {\n return this.getPageCount() === 0;\n }\n currentPage() {\n return this.getPageCount() > 0 ? this.getPage() + 1 : 0;\n }\n get currentPageReport() {\n return this.currentPageReportTemplate.replace('{currentPage}', String(this.currentPage())).replace('{totalPages}', String(this.getPageCount())).replace('{first}', String(this.totalRecords > 0 ? this._first + 1 : 0)).replace('{last}', String(Math.min(this._first + this.rows, this.totalRecords))).replace('{rows}', String(this.rows)).replace('{totalRecords}', String(this.totalRecords));\n }\n static ɵfac = function Paginator_Factory(t) {\n return new (t || Paginator)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.PrimeNGConfig));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: Paginator,\n selectors: [[\"p-paginator\"]],\n contentQueries: function Paginator_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n }\n },\n hostAttrs: [1, \"p-element\"],\n inputs: {\n pageLinkSize: [2, \"pageLinkSize\", \"pageLinkSize\", numberAttribute],\n style: \"style\",\n styleClass: \"styleClass\",\n alwaysShow: [2, \"alwaysShow\", \"alwaysShow\", booleanAttribute],\n dropdownAppendTo: \"dropdownAppendTo\",\n templateLeft: \"templateLeft\",\n templateRight: \"templateRight\",\n appendTo: \"appendTo\",\n dropdownScrollHeight: \"dropdownScrollHeight\",\n currentPageReportTemplate: \"currentPageReportTemplate\",\n showCurrentPageReport: [2, \"showCurrentPageReport\", \"showCurrentPageReport\", booleanAttribute],\n showFirstLastIcon: [2, \"showFirstLastIcon\", \"showFirstLastIcon\", booleanAttribute],\n totalRecords: [2, \"totalRecords\", \"totalRecords\", numberAttribute],\n rows: [2, \"rows\", \"rows\", numberAttribute],\n rowsPerPageOptions: \"rowsPerPageOptions\",\n showJumpToPageDropdown: [2, \"showJumpToPageDropdown\", \"showJumpToPageDropdown\", booleanAttribute],\n showJumpToPageInput: [2, \"showJumpToPageInput\", \"showJumpToPageInput\", booleanAttribute],\n jumpToPageItemTemplate: \"jumpToPageItemTemplate\",\n showPageLinks: [2, \"showPageLinks\", \"showPageLinks\", booleanAttribute],\n locale: \"locale\",\n dropdownItemTemplate: \"dropdownItemTemplate\",\n first: \"first\"\n },\n outputs: {\n onPageChange: \"onPageChange\"\n },\n features: [i0.ɵɵInputTransformsFeature, i0.ɵɵNgOnChangesFeature],\n decls: 1,\n vars: 1,\n consts: [[3, \"class\", \"ngStyle\", \"ngClass\", 4, \"ngIf\"], [3, \"ngStyle\", \"ngClass\"], [\"class\", \"p-paginator-left-content\", 4, \"ngIf\"], [\"class\", \"p-paginator-current\", 4, \"ngIf\"], [\"type\", \"button\", \"pRipple\", \"\", \"class\", \"p-paginator-first p-paginator-element p-link\", 3, \"disabled\", \"ngClass\", \"click\", 4, \"ngIf\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-paginator-prev\", \"p-paginator-element\", \"p-link\", 3, \"click\", \"disabled\", \"ngClass\"], [3, \"styleClass\", 4, \"ngIf\"], [\"class\", \"p-paginator-icon\", 4, \"ngIf\"], [\"class\", \"p-paginator-pages\", 4, \"ngIf\"], [\"styleClass\", \"p-paginator-page-options\", 3, \"options\", \"ngModel\", \"disabled\", \"appendTo\", \"scrollHeight\", \"onChange\", 4, \"ngIf\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-paginator-next\", \"p-paginator-element\", \"p-link\", 3, \"click\", \"disabled\", \"ngClass\"], [\"type\", \"button\", \"pRipple\", \"\", \"class\", \"p-paginator-last p-paginator-element p-link\", 3, \"disabled\", \"ngClass\", \"click\", 4, \"ngIf\"], [\"class\", \"p-paginator-page-input\", 3, \"ngModel\", \"disabled\", \"ngModelChange\", 4, \"ngIf\"], [\"styleClass\", \"p-paginator-rpp-options\", 3, \"options\", \"ngModel\", \"disabled\", \"appendTo\", \"scrollHeight\", \"ariaLabel\", \"ngModelChange\", \"onChange\", 4, \"ngIf\"], [\"class\", \"p-paginator-right-content\", 4, \"ngIf\"], [1, \"p-paginator-left-content\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [1, \"p-paginator-current\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-paginator-first\", \"p-paginator-element\", \"p-link\", 3, \"click\", \"disabled\", \"ngClass\"], [3, \"styleClass\"], [1, \"p-paginator-icon\"], [4, \"ngTemplateOutlet\"], [1, \"p-paginator-pages\"], [\"type\", \"button\", \"class\", \"p-paginator-page p-paginator-element p-link\", \"pRipple\", \"\", 3, \"ngClass\", \"click\", 4, \"ngFor\", \"ngForOf\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-paginator-page\", \"p-paginator-element\", \"p-link\", 3, \"click\", \"ngClass\"], [\"styleClass\", \"p-paginator-page-options\", 3, \"onChange\", \"options\", \"ngModel\", \"disabled\", \"appendTo\", \"scrollHeight\"], [\"pTemplate\", \"selectedItem\"], [4, \"ngIf\"], [\"pTemplate\", \"item\"], [\"pTemplate\", \"dropdownicon\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-paginator-last\", \"p-paginator-element\", \"p-link\", 3, \"click\", \"disabled\", \"ngClass\"], [1, \"p-paginator-page-input\", 3, \"ngModelChange\", \"ngModel\", \"disabled\"], [\"styleClass\", \"p-paginator-rpp-options\", 3, \"ngModelChange\", \"onChange\", \"options\", \"ngModel\", \"disabled\", \"appendTo\", \"scrollHeight\", \"ariaLabel\"], [1, \"p-paginator-right-content\"]],\n template: function Paginator_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Paginator_div_0_Template, 16, 29, \"div\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", ctx.alwaysShow ? true : ctx.pageLinks && ctx.pageLinks.length > 1);\n }\n },\n dependencies: () => [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i3.Dropdown, i1.PrimeTemplate, i4.InputNumber, i5.NgControlStatus, i5.NgModel, i6.Ripple, AngleDoubleLeftIcon, AngleDoubleRightIcon, AngleLeftIcon, AngleRightIcon],\n styles: [\"@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}\\n\"],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n return Paginator;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet PaginatorModule = /*#__PURE__*/(() => {\n class PaginatorModule {\n static ɵfac = function PaginatorModule_Factory(t) {\n return new (t || PaginatorModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: PaginatorModule\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [CommonModule, DropdownModule, InputNumberModule, FormsModule, SharedModule, RippleModule, AngleDoubleLeftIcon, AngleDoubleRightIcon, AngleLeftIcon, AngleRightIcon, DropdownModule, InputNumberModule, FormsModule, SharedModule]\n });\n }\n return PaginatorModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { Paginator, PaginatorModule };\n","import * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { forwardRef, EventEmitter, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ViewChild, ContentChild, NgModule } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\nimport * as i2 from 'primeng/ripple';\nimport { RippleModule } from 'primeng/ripple';\nimport { ObjectUtils } from 'primeng/utils';\nimport * as i3 from 'primeng/autofocus';\nimport { AutoFocusModule } from 'primeng/autofocus';\nconst _c0 = [\"container\"];\nconst _c1 = (a0, a1, a2) => ({\n \"p-highlight\": a0,\n \"p-disabled\": a1,\n \"p-button-icon-only\": a2\n});\nconst _c2 = (a0, a1) => ({\n $implicit: a0,\n index: a1\n});\nfunction SelectButton_div_2_ng_container_1_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 8);\n }\n if (rf & 2) {\n const option_r3 = i0.ɵɵnextContext(2).$implicit;\n i0.ɵɵclassMap(option_r3.icon);\n i0.ɵɵproperty(\"ngClass\", \"p-button-icon p-button-icon-left\");\n i0.ɵɵattribute(\"data-pc-section\", \"icon\");\n }\n}\nfunction SelectButton_div_2_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, SelectButton_div_2_ng_container_1_span_1_Template, 1, 4, \"span\", 6);\n i0.ɵɵelementStart(2, \"span\", 7);\n i0.ɵɵtext(3);\n i0.ɵɵelementEnd();\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const option_r3 = i0.ɵɵnextContext().$implicit;\n const ctx_r4 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", option_r3.icon);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"data-pc-section\", \"label\");\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx_r4.getOptionLabel(option_r3));\n }\n}\nfunction SelectButton_div_2_ng_template_2_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction SelectButton_div_2_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, SelectButton_div_2_ng_template_2_ng_container_0_Template, 1, 0, \"ng-container\", 9);\n }\n if (rf & 2) {\n const ctx_r6 = i0.ɵɵnextContext();\n const option_r3 = ctx_r6.$implicit;\n const i_r4 = ctx_r6.index;\n const ctx_r4 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r4.selectButtonTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction2(2, _c2, option_r3, i_r4));\n }\n}\nfunction SelectButton_div_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 4);\n i0.ɵɵlistener(\"click\", function SelectButton_div_2_Template_div_click_0_listener($event) {\n const ctx_r1 = i0.ɵɵrestoreView(_r1);\n const option_r3 = ctx_r1.$implicit;\n const i_r4 = ctx_r1.index;\n const ctx_r4 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r4.onOptionSelect($event, option_r3, i_r4));\n })(\"keydown\", function SelectButton_div_2_Template_div_keydown_0_listener($event) {\n const ctx_r5 = i0.ɵɵrestoreView(_r1);\n const option_r3 = ctx_r5.$implicit;\n const i_r4 = ctx_r5.index;\n const ctx_r4 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r4.onKeyDown($event, option_r3, i_r4));\n })(\"focus\", function SelectButton_div_2_Template_div_focus_0_listener($event) {\n const i_r4 = i0.ɵɵrestoreView(_r1).index;\n const ctx_r4 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r4.onFocus($event, i_r4));\n })(\"blur\", function SelectButton_div_2_Template_div_blur_0_listener() {\n i0.ɵɵrestoreView(_r1);\n const ctx_r4 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r4.onBlur());\n });\n i0.ɵɵtemplate(1, SelectButton_div_2_ng_container_1_Template, 4, 3, \"ng-container\", 5)(2, SelectButton_div_2_ng_template_2_Template, 1, 5, \"ng-template\", null, 1, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const option_r3 = ctx.$implicit;\n const i_r4 = ctx.index;\n const customcontent_r8 = i0.ɵɵreference(3);\n const ctx_r4 = i0.ɵɵnextContext();\n i0.ɵɵclassMap(option_r3.styleClass);\n i0.ɵɵproperty(\"role\", ctx_r4.multiple ? \"checkbox\" : \"radio\")(\"ngClass\", i0.ɵɵpureFunction3(14, _c1, ctx_r4.isSelected(option_r3), ctx_r4.disabled || ctx_r4.isOptionDisabled(option_r3), option_r3.icon && !ctx_r4.getOptionLabel(option_r3)))(\"autofocus\", ctx_r4.autofocus);\n i0.ɵɵattribute(\"tabindex\", i_r4 === ctx_r4.focusedIndex && !ctx_r4.disabled ? \"0\" : \"-1\")(\"aria-label\", option_r3.label)(\"aria-checked\", ctx_r4.isSelected(option_r3))(\"aria-disabled\", ctx_r4.optionDisabled)(\"title\", option_r3.title)(\"aria-labelledby\", ctx_r4.getOptionLabel(option_r3))(\"data-pc-section\", \"button\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r4.itemTemplate)(\"ngIfElse\", customcontent_r8);\n }\n}\nconst SELECTBUTTON_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SelectButton),\n multi: true\n};\n/**\n * SelectButton is used to choose single or multiple items from a list using buttons.\n * @group Components\n */\nlet SelectButton = /*#__PURE__*/(() => {\n class SelectButton {\n cd;\n /**\n * An array of selectitems to display as the available options.\n * @group Props\n */\n options;\n /**\n * Name of the label field of an option.\n * @group Props\n */\n optionLabel;\n /**\n * Name of the value field of an option.\n * @group Props\n */\n optionValue;\n /**\n * Name of the disabled field of an option.\n * @group Props\n */\n optionDisabled;\n /**\n * Whether selection can be cleared.\n * @group Props\n */\n unselectable = false;\n /**\n * Index of the element in tabbing order.\n * @group Props\n */\n tabindex = 0;\n /**\n * When specified, allows selecting multiple values.\n * @group Props\n */\n multiple;\n /**\n * Whether selection can not be cleared.\n * @group Props\n */\n allowEmpty = true;\n /**\n * Inline style of the component.\n * @group Props\n */\n style;\n /**\n * Style class of the component.\n * @group Props\n */\n styleClass;\n /**\n * Establishes relationships between the component and label(s) where its value should be one or more element IDs.\n * @group Props\n */\n ariaLabelledBy;\n /**\n * When present, it specifies that the element should be disabled.\n * @group Props\n */\n disabled;\n /**\n * A property to uniquely identify a value in options.\n * @group Props\n */\n dataKey;\n /**\n * When present, it specifies that the component should automatically get focus on load.\n * @group Props\n */\n autofocus;\n /**\n * Callback to invoke on input click.\n * @param {SelectButtonOptionClickEvent} event - Custom click event.\n * @group Emits\n */\n onOptionClick = new EventEmitter();\n /**\n * Callback to invoke on selection change.\n * @param {SelectButtonChangeEvent} event - Custom change event.\n * @group Emits\n */\n onChange = new EventEmitter();\n container;\n itemTemplate;\n get selectButtonTemplate() {\n return this.itemTemplate?.template;\n }\n get equalityKey() {\n return this.optionValue ? null : this.dataKey;\n }\n value;\n onModelChange = () => {};\n onModelTouched = () => {};\n focusedIndex = 0;\n constructor(cd) {\n this.cd = cd;\n }\n getOptionLabel(option) {\n return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option.label != undefined ? option.label : option;\n }\n getOptionValue(option) {\n return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : this.optionLabel || option.value === undefined ? option : option.value;\n }\n isOptionDisabled(option) {\n return this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : option.disabled !== undefined ? option.disabled : false;\n }\n writeValue(value) {\n this.value = value;\n this.cd.markForCheck();\n }\n registerOnChange(fn) {\n this.onModelChange = fn;\n }\n registerOnTouched(fn) {\n this.onModelTouched = fn;\n }\n setDisabledState(val) {\n this.disabled = val;\n this.cd.markForCheck();\n }\n onOptionSelect(event, option, index) {\n if (this.disabled || this.isOptionDisabled(option)) {\n return;\n }\n let selected = this.isSelected(option);\n if (selected && this.unselectable) {\n return;\n }\n let optionValue = this.getOptionValue(option);\n let newValue;\n if (this.multiple) {\n if (selected) newValue = this.value.filter(val => !ObjectUtils.equals(val, optionValue, this.equalityKey));else newValue = this.value ? [...this.value, optionValue] : [optionValue];\n } else {\n if (selected && !this.allowEmpty) {\n return;\n }\n newValue = selected ? null : optionValue;\n }\n this.focusedIndex = index;\n this.value = newValue;\n this.onModelChange(this.value);\n this.onChange.emit({\n originalEvent: event,\n value: this.value\n });\n this.onOptionClick.emit({\n originalEvent: event,\n option: option,\n index: index\n });\n }\n onKeyDown(event, option, index) {\n switch (event.code) {\n case 'Space':\n {\n this.onOptionSelect(event, option, index);\n event.preventDefault();\n break;\n }\n case 'ArrowDown':\n case 'ArrowRight':\n {\n this.changeTabIndexes(event, 'next');\n event.preventDefault();\n break;\n }\n case 'ArrowUp':\n case 'ArrowLeft':\n {\n this.changeTabIndexes(event, 'prev');\n event.preventDefault();\n break;\n }\n default:\n //no op\n break;\n }\n }\n changeTabIndexes(event, direction) {\n let firstTabableChild, index;\n for (let i = 0; i <= this.container.nativeElement.children.length - 1; i++) {\n if (this.container.nativeElement.children[i].getAttribute('tabindex') === '0') firstTabableChild = {\n elem: this.container.nativeElement.children[i],\n index: i\n };\n }\n if (direction === 'prev') {\n if (firstTabableChild.index === 0) index = this.container.nativeElement.children.length - 1;else index = firstTabableChild.index - 1;\n } else {\n if (firstTabableChild.index === this.container.nativeElement.children.length - 1) index = 0;else index = firstTabableChild.index + 1;\n }\n this.focusedIndex = index;\n this.container.nativeElement.children[index].focus();\n }\n onFocus(event, index) {\n this.focusedIndex = index;\n }\n onBlur() {\n this.onModelTouched();\n }\n removeOption(option) {\n this.value = this.value.filter(val => !ObjectUtils.equals(val, this.getOptionValue(option), this.dataKey));\n }\n isSelected(option) {\n let selected = false;\n const optionValue = this.getOptionValue(option);\n if (this.multiple) {\n if (this.value && Array.isArray(this.value)) {\n for (let val of this.value) {\n if (ObjectUtils.equals(val, optionValue, this.dataKey)) {\n selected = true;\n break;\n }\n }\n }\n } else {\n selected = ObjectUtils.equals(this.getOptionValue(option), this.value, this.equalityKey);\n }\n return selected;\n }\n static ɵfac = function SelectButton_Factory(t) {\n return new (t || SelectButton)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: SelectButton,\n selectors: [[\"p-selectButton\"]],\n contentQueries: function SelectButton_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemTemplate = _t.first);\n }\n },\n viewQuery: function SelectButton_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c0, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);\n }\n },\n hostAttrs: [1, \"p-element\"],\n inputs: {\n options: \"options\",\n optionLabel: \"optionLabel\",\n optionValue: \"optionValue\",\n optionDisabled: \"optionDisabled\",\n unselectable: [2, \"unselectable\", \"unselectable\", booleanAttribute],\n tabindex: [2, \"tabindex\", \"tabindex\", numberAttribute],\n multiple: [2, \"multiple\", \"multiple\", booleanAttribute],\n allowEmpty: [2, \"allowEmpty\", \"allowEmpty\", booleanAttribute],\n style: \"style\",\n styleClass: \"styleClass\",\n ariaLabelledBy: \"ariaLabelledBy\",\n disabled: [2, \"disabled\", \"disabled\", booleanAttribute],\n dataKey: \"dataKey\",\n autofocus: [2, \"autofocus\", \"autofocus\", booleanAttribute]\n },\n outputs: {\n onOptionClick: \"onOptionClick\",\n onChange: \"onChange\"\n },\n features: [i0.ɵɵProvidersFeature([SELECTBUTTON_VALUE_ACCESSOR]), i0.ɵɵInputTransformsFeature],\n decls: 3,\n vars: 8,\n consts: [[\"container\", \"\"], [\"customcontent\", \"\"], [\"role\", \"group\", 3, \"ngClass\", \"ngStyle\"], [\"pRipple\", \"\", \"class\", \"p-button p-component\", \"pAutoFocus\", \"\", 3, \"role\", \"class\", \"ngClass\", \"autofocus\", \"click\", \"keydown\", \"focus\", \"blur\", 4, \"ngFor\", \"ngForOf\"], [\"pRipple\", \"\", \"pAutoFocus\", \"\", 1, \"p-button\", \"p-component\", 3, \"click\", \"keydown\", \"focus\", \"blur\", \"role\", \"ngClass\", \"autofocus\"], [4, \"ngIf\", \"ngIfElse\"], [3, \"ngClass\", \"class\", 4, \"ngIf\"], [1, \"p-button-label\"], [3, \"ngClass\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"]],\n template: function SelectButton_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 2, 0);\n i0.ɵɵtemplate(2, SelectButton_div_2_Template, 4, 18, \"div\", 3);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.styleClass);\n i0.ɵɵproperty(\"ngClass\", \"p-selectbutton p-buttonset p-component\")(\"ngStyle\", ctx.style);\n i0.ɵɵattribute(\"aria-labelledby\", ctx.ariaLabelledBy)(\"data-pc-name\", \"selectbutton\")(\"data-pc-section\", \"root\");\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngForOf\", ctx.options);\n }\n },\n dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i1.NgStyle, i2.Ripple, i3.AutoFocus],\n styles: [\"@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:\\\"p\\\";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-button-group .p-button{margin:0}.p-button-group .p-button:focus,.p-button-group p-button:focus .p-button,.p-buttonset .p-button:focus,.p-buttonset p-button:focus .p-button{position:relative;z-index:1}.p-button-group .p-button:not(:last-child),.p-button-group .p-button:not(:last-child):hover,.p-button-group p-button:not(:last-child) .p-button,.p-button-group p-button:not(:last-child) .p-button:hover,.p-buttonset .p-button:not(:last-child),.p-buttonset .p-button:not(:last-child):hover,.p-buttonset p-button:not(:last-child) .p-button,.p-buttonset p-button:not(:last-child) .p-button:hover{border-right:0 none}.p-button-group .p-button:not(:first-of-type):not(:last-of-type),.p-button-group p-button:not(:first-of-type):not(:last-of-type) .p-button,.p-buttonset .p-button:not(:first-of-type):not(:last-of-type),.p-buttonset p-button:not(:first-of-type):not(:last-of-type) .p-button{border-radius:0}.p-button-group .p-button:first-of-type:not(:only-of-type),.p-button-group p-button:first-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:first-of-type:not(:only-of-type),.p-buttonset p-button:first-of-type:not(:only-of-type) .p-button{border-top-right-radius:0;border-bottom-right-radius:0}.p-button-group .p-button:last-of-type:not(:only-of-type),.p-button-group p-button:last-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:last-of-type:not(:only-of-type),.p-buttonset p-button:last-of-type:not(:only-of-type) .p-button{border-top-left-radius:0;border-bottom-left-radius:0}p-button[iconpos=right] spinnericon{order:1}}\\n\"],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n return SelectButton;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet SelectButtonModule = /*#__PURE__*/(() => {\n class SelectButtonModule {\n static ɵfac = function SelectButtonModule_Factory(t) {\n return new (t || SelectButtonModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: SelectButtonModule\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [CommonModule, RippleModule, SharedModule, AutoFocusModule, SharedModule]\n });\n }\n return SelectButtonModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { SELECTBUTTON_VALUE_ACCESSOR, SelectButton, SelectButtonModule };\n","import * as i2 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { forwardRef, EventEmitter, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ContentChildren, NgModule } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport * as i1 from 'primeng/api';\nimport { PrimeTemplate, SharedModule } from 'primeng/api';\nimport { CheckIcon } from 'primeng/icons/check';\nimport { TimesIcon } from 'primeng/icons/times';\nimport * as i3 from 'primeng/autofocus';\nimport { AutoFocusModule } from 'primeng/autofocus';\nconst _c0 = (a0, a1, a2) => ({\n \"p-checkbox p-component\": true,\n \"p-checkbox-disabled\": a0,\n \"p-checkbox-focused\": a1,\n \"p-variant-filled\": a2\n});\nconst _c1 = (a0, a1, a2) => ({\n \"p-highlight\": a0,\n \"p-disabled\": a1,\n \"p-focus\": a2\n});\nconst _c2 = (a0, a1, a2) => ({\n \"p-checkbox-label-active\": a0,\n \"p-disabled\": a1,\n \"p-checkbox-label-focus\": a2\n});\nfunction TriStateCheckbox_ng_container_5_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 8);\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngClass\", ctx_r2.checkboxTrueIcon);\n i0.ɵɵattribute(\"data-pc-section\", \"checkIcon\");\n }\n}\nfunction TriStateCheckbox_ng_container_5_ng_container_2_CheckIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"CheckIcon\", 11);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-checkbox-icon\");\n i0.ɵɵattribute(\"data-pc-section\", \"checkIcon\");\n }\n}\nfunction TriStateCheckbox_ng_container_5_ng_container_2_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction TriStateCheckbox_ng_container_5_ng_container_2_span_2_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TriStateCheckbox_ng_container_5_ng_container_2_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction TriStateCheckbox_ng_container_5_ng_container_2_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 12);\n i0.ɵɵtemplate(1, TriStateCheckbox_ng_container_5_ng_container_2_span_2_1_Template, 1, 0, null, 13);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(3);\n i0.ɵɵattribute(\"data-pc-section\", \"checkIcon\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.checkIconTemplate);\n }\n}\nfunction TriStateCheckbox_ng_container_5_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TriStateCheckbox_ng_container_5_ng_container_2_CheckIcon_1_Template, 1, 2, \"CheckIcon\", 9)(2, TriStateCheckbox_ng_container_5_ng_container_2_span_2_Template, 2, 2, \"span\", 10);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.checkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.checkIconTemplate);\n }\n}\nfunction TriStateCheckbox_ng_container_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TriStateCheckbox_ng_container_5_span_1_Template, 1, 2, \"span\", 7)(2, TriStateCheckbox_ng_container_5_ng_container_2_Template, 3, 2, \"ng-container\", 5);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.checkboxTrueIcon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.checkboxTrueIcon);\n }\n}\nfunction TriStateCheckbox_ng_container_6_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 8);\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngClass\", ctx_r2.checkboxFalseIcon);\n i0.ɵɵattribute(\"data-pc-section\", \"uncheckIcon\");\n }\n}\nfunction TriStateCheckbox_ng_container_6_ng_container_2_TimesIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"TimesIcon\", 11);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-checkbox-icon\");\n i0.ɵɵattribute(\"data-pc-section\", \"uncheckIcon\");\n }\n}\nfunction TriStateCheckbox_ng_container_6_ng_container_2_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction TriStateCheckbox_ng_container_6_ng_container_2_span_2_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TriStateCheckbox_ng_container_6_ng_container_2_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction TriStateCheckbox_ng_container_6_ng_container_2_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 12);\n i0.ɵɵtemplate(1, TriStateCheckbox_ng_container_6_ng_container_2_span_2_1_Template, 1, 0, null, 13);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(3);\n i0.ɵɵattribute(\"data-pc-section\", \"uncheckIcon\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r2.uncheckIconTemplate);\n }\n}\nfunction TriStateCheckbox_ng_container_6_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TriStateCheckbox_ng_container_6_ng_container_2_TimesIcon_1_Template, 1, 2, \"TimesIcon\", 9)(2, TriStateCheckbox_ng_container_6_ng_container_2_span_2_Template, 2, 2, \"span\", 10);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.uncheckIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.uncheckIconTemplate);\n }\n}\nfunction TriStateCheckbox_ng_container_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TriStateCheckbox_ng_container_6_span_1_Template, 1, 2, \"span\", 7)(2, TriStateCheckbox_ng_container_6_ng_container_2_Template, 3, 2, \"ng-container\", 5);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r2.checkboxFalseIcon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r2.checkboxFalseIcon);\n }\n}\nfunction TriStateCheckbox_label_7_Template(rf, ctx) {\n if (rf & 1) {\n const _r4 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"label\", 14);\n i0.ɵɵlistener(\"click\", function TriStateCheckbox_label_7_Template_label_click_0_listener($event) {\n i0.ɵɵrestoreView(_r4);\n const ctx_r2 = i0.ɵɵnextContext();\n const input_r2 = i0.ɵɵreference(3);\n return i0.ɵɵresetView(ctx_r2.onClick($event, input_r2));\n });\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(3, _c2, ctx_r2.value != null, ctx_r2.disabled, ctx_r2.focused));\n i0.ɵɵattribute(\"for\", ctx_r2.inputId);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx_r2.label);\n }\n}\nconst TRISTATECHECKBOX_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => TriStateCheckbox),\n multi: true\n};\n/**\n * TriStateCheckbox is used to select either 'true', 'false' or 'null' as the value.\n * @group Components\n */\nlet TriStateCheckbox = /*#__PURE__*/(() => {\n class TriStateCheckbox {\n cd;\n config;\n constructor(cd, config) {\n this.cd = cd;\n this.config = config;\n }\n /**\n * When present, it specifies that the element should be disabled.\n * @group Props\n */\n disabled;\n /**\n * Name of the component.\n * @group Props\n */\n name;\n /**\n * Defines a string that labels the input for accessibility.\n * @group Props\n */\n ariaLabel;\n /**\n * Establishes relationships between the component and label(s) where its value should be one or more element IDs.\n * @group Props\n */\n ariaLabelledBy;\n /**\n * Specifies the input variant of the component.\n * @group Props\n */\n variant = 'outlined';\n /**\n * Index of the element in tabbing order.\n * @group Props\n */\n tabindex;\n /**\n * Identifier of the focus input to match a label defined for the component.\n * @group Props\n */\n inputId;\n /**\n * Inline style of the component.\n * @group Props\n */\n style;\n /**\n * Style class of the component.\n * @group Props\n */\n styleClass;\n /**\n * Label of the checkbox.\n * @group Props\n */\n label;\n /**\n * When present, it specifies that the component cannot be edited.\n * @group Props\n */\n readonly;\n /**\n * Specifies the icon for checkbox true value.\n * @group Props\n */\n checkboxTrueIcon;\n /**\n * Specifies the icon for checkbox false value.\n * @group Props\n */\n checkboxFalseIcon;\n /**\n * When present, it specifies that the component should automatically get focus on load.\n * @group Props\n */\n autofocus;\n /**\n * Callback to invoke on value change.\n * @param {TriStateCheckboxChangeEvent} event - Custom change event.\n * @group Emits\n */\n onChange = new EventEmitter();\n templates;\n checkIconTemplate;\n uncheckIconTemplate;\n focused;\n value;\n onModelChange = () => {};\n onModelTouched = () => {};\n onClick(event, input) {\n if (!this.disabled && !this.readonly) {\n this.toggle(event);\n this.focused = true;\n input.focus();\n }\n }\n onKeyDown(event) {\n if (event.key === 'Enter') {\n this.toggle(event);\n event.preventDefault();\n }\n }\n toggle(event) {\n if (this.value == null || this.value == undefined) this.value = true;else if (this.value == true) this.value = false;else if (this.value == false) this.value = null;\n this.onModelChange(this.value);\n this.onChange.emit({\n originalEvent: event,\n value: this.value\n });\n }\n ngAfterContentInit() {\n this.templates.forEach(item => {\n switch (item.getType()) {\n case 'checkicon':\n this.checkIconTemplate = item.template;\n break;\n case 'uncheckicon':\n this.uncheckIconTemplate = item.template;\n break;\n }\n });\n }\n onFocus() {\n this.focused = true;\n }\n onBlur() {\n this.focused = false;\n this.onModelTouched();\n }\n registerOnChange(fn) {\n this.onModelChange = fn;\n }\n registerOnTouched(fn) {\n this.onModelTouched = fn;\n }\n writeValue(value) {\n this.value = value;\n this.cd.markForCheck();\n }\n setDisabledState(disabled) {\n this.disabled = disabled;\n this.cd.markForCheck();\n }\n static ɵfac = function TriStateCheckbox_Factory(t) {\n return new (t || TriStateCheckbox)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.PrimeNGConfig));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TriStateCheckbox,\n selectors: [[\"p-triStateCheckbox\"]],\n contentQueries: function TriStateCheckbox_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n }\n },\n hostAttrs: [1, \"p-element\"],\n inputs: {\n disabled: [2, \"disabled\", \"disabled\", booleanAttribute],\n name: \"name\",\n ariaLabel: \"ariaLabel\",\n ariaLabelledBy: \"ariaLabelledBy\",\n variant: \"variant\",\n tabindex: [2, \"tabindex\", \"tabindex\", numberAttribute],\n inputId: \"inputId\",\n style: \"style\",\n styleClass: \"styleClass\",\n label: \"label\",\n readonly: [2, \"readonly\", \"readonly\", booleanAttribute],\n checkboxTrueIcon: \"checkboxTrueIcon\",\n checkboxFalseIcon: \"checkboxFalseIcon\",\n autofocus: [2, \"autofocus\", \"autofocus\", booleanAttribute]\n },\n outputs: {\n onChange: \"onChange\"\n },\n features: [i0.ɵɵProvidersFeature([TRISTATECHECKBOX_VALUE_ACCESSOR]), i0.ɵɵInputTransformsFeature],\n decls: 8,\n vars: 28,\n consts: [[\"input\", \"\"], [3, \"click\", \"ngStyle\", \"ngClass\"], [1, \"p-hidden-accessible\"], [\"type\", \"checkbox\", \"inputmode\", \"none\", \"pAutoFocus\", \"\", 3, \"keydown\", \"focus\", \"blur\", \"name\", \"readonly\", \"disabled\", \"autofocus\"], [\"role\", \"checkbox\", 1, \"p-checkbox-box\", 3, \"ngClass\"], [4, \"ngIf\"], [\"class\", \"p-checkbox-label\", 3, \"ngClass\", \"click\", 4, \"ngIf\"], [\"class\", \"p-checkbox-icon\", 3, \"ngClass\", 4, \"ngIf\"], [1, \"p-checkbox-icon\", 3, \"ngClass\"], [3, \"styleClass\", 4, \"ngIf\"], [\"class\", \"p-checkbox-icon\", 4, \"ngIf\"], [3, \"styleClass\"], [1, \"p-checkbox-icon\"], [4, \"ngTemplateOutlet\"], [1, \"p-checkbox-label\", 3, \"click\", \"ngClass\"]],\n template: function TriStateCheckbox_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵlistener(\"click\", function TriStateCheckbox_Template_div_click_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n const input_r2 = i0.ɵɵreference(3);\n return i0.ɵɵresetView(ctx.onClick($event, input_r2));\n });\n i0.ɵɵelementStart(1, \"div\", 2)(2, \"input\", 3, 0);\n i0.ɵɵlistener(\"keydown\", function TriStateCheckbox_Template_input_keydown_2_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onKeyDown($event));\n })(\"focus\", function TriStateCheckbox_Template_input_focus_2_listener() {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onFocus());\n })(\"blur\", function TriStateCheckbox_Template_input_blur_2_listener() {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onBlur());\n });\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(4, \"div\", 4);\n i0.ɵɵtemplate(5, TriStateCheckbox_ng_container_5_Template, 3, 2, \"ng-container\", 5)(6, TriStateCheckbox_ng_container_6_Template, 3, 2, \"ng-container\", 5);\n i0.ɵɵelementEnd()();\n i0.ɵɵtemplate(7, TriStateCheckbox_label_7_Template, 2, 7, \"label\", 6);\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.styleClass);\n i0.ɵɵproperty(\"ngStyle\", ctx.style)(\"ngClass\", i0.ɵɵpureFunction3(20, _c0, ctx.disabled, ctx.focused, ctx.variant === \"filled\" || ctx.config.inputStyle() === \"filled\"));\n i0.ɵɵattribute(\"data-pc-name\", \"tristatecheckbox\")(\"data-pc-section\", \"root\");\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"name\", ctx.name)(\"readonly\", ctx.readonly)(\"disabled\", ctx.disabled)(\"autofocus\", ctx.autofocus);\n i0.ɵɵattribute(\"id\", ctx.inputId)(\"tabindex\", ctx.tabindex)(\"aria-labelledby\", ctx.ariaLabelledBy)(\"aria-label\", ctx.ariaLabel)(\"data-pc-section\", \"hiddenInput\");\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(24, _c1, ctx.value != null, ctx.disabled, ctx.focused));\n i0.ɵɵattribute(\"aria-checked\", ctx.value === true);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.value === true);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.value === false);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.label);\n }\n },\n dependencies: () => [i2.NgClass, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i3.AutoFocus, CheckIcon, TimesIcon],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n return TriStateCheckbox;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TriStateCheckboxModule = /*#__PURE__*/(() => {\n class TriStateCheckboxModule {\n static ɵfac = function TriStateCheckboxModule_Factory(t) {\n return new (t || TriStateCheckboxModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TriStateCheckboxModule\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [CommonModule, SharedModule, AutoFocusModule, CheckIcon, TimesIcon, SharedModule]\n });\n }\n return TriStateCheckboxModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TRISTATECHECKBOX_VALUE_ACCESSOR, TriStateCheckbox, TriStateCheckboxModule };\n","import { trigger, transition, style, animate } from '@angular/animations';\nimport * as i3 from '@angular/common';\nimport { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Injectable, EventEmitter, PLATFORM_ID, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Inject, Input, Output, ViewChild, ContentChildren, Directive, HostListener, Optional, NgModule } from '@angular/core';\nimport * as i7 from '@angular/forms';\nimport { FormsModule } from '@angular/forms';\nimport * as i1 from 'primeng/api';\nimport { FilterOperator, FilterMatchMode, PrimeTemplate, TranslationKeys, SharedModule } from 'primeng/api';\nimport * as i8 from 'primeng/button';\nimport { ButtonModule } from 'primeng/button';\nimport * as i11 from 'primeng/calendar';\nimport { CalendarModule } from 'primeng/calendar';\nimport { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';\nimport * as i6 from 'primeng/dropdown';\nimport { DropdownModule } from 'primeng/dropdown';\nimport { ArrowDownIcon } from 'primeng/icons/arrowdown';\nimport { ArrowUpIcon } from 'primeng/icons/arrowup';\nimport { CheckIcon } from 'primeng/icons/check';\nimport { FilterIcon } from 'primeng/icons/filter';\nimport { FilterSlashIcon } from 'primeng/icons/filterslash';\nimport { PlusIcon } from 'primeng/icons/plus';\nimport { SortAltIcon } from 'primeng/icons/sortalt';\nimport { SortAmountDownIcon } from 'primeng/icons/sortamountdown';\nimport { SortAmountUpAltIcon } from 'primeng/icons/sortamountupalt';\nimport { SpinnerIcon } from 'primeng/icons/spinner';\nimport { TrashIcon } from 'primeng/icons/trash';\nimport * as i9 from 'primeng/inputnumber';\nimport { InputNumberModule } from 'primeng/inputnumber';\nimport * as i10 from 'primeng/inputtext';\nimport { InputTextModule } from 'primeng/inputtext';\nimport * as i4 from 'primeng/paginator';\nimport { PaginatorModule } from 'primeng/paginator';\nimport * as i5 from 'primeng/scroller';\nimport { ScrollerModule } from 'primeng/scroller';\nimport { SelectButtonModule } from 'primeng/selectbutton';\nimport * as i12 from 'primeng/tristatecheckbox';\nimport { TriStateCheckboxModule } from 'primeng/tristatecheckbox';\nimport { UniqueComponentId, ObjectUtils, ZIndexUtils } from 'primeng/utils';\nimport { Subject } from 'rxjs';\nimport * as i2 from '@angular/platform-browser';\nconst _c0 = [\"container\"];\nconst _c1 = [\"resizeHelper\"];\nconst _c2 = [\"reorderIndicatorUp\"];\nconst _c3 = [\"reorderIndicatorDown\"];\nconst _c4 = [\"wrapper\"];\nconst _c5 = [\"table\"];\nconst _c6 = [\"thead\"];\nconst _c7 = [\"tfoot\"];\nconst _c8 = [\"scroller\"];\nconst _c9 = (a0, a1, a2) => ({\n \"p-datatable p-component\": true,\n \"p-datatable-hoverable-rows\": a0,\n \"p-datatable-scrollable\": a1,\n \"p-datatable-flex-scrollable\": a2\n});\nconst _c10 = a0 => ({\n maxHeight: a0\n});\nconst _c11 = a0 => ({\n height: a0\n});\nconst _c12 = (a0, a1) => ({\n $implicit: a0,\n options: a1\n});\nconst _c13 = a0 => ({\n columns: a0\n});\nconst _c14 = (a0, a1, a2) => ({\n \"p-datatable-table\": true,\n \"p-datatable-scrollable-table\": a0,\n \"p-datatable-resizable-table\": a1,\n \"p-datatable-resizable-table-fit\": a2\n});\nconst _c15 = a0 => ({\n $implicit: a0\n});\nconst _c16 = () => ({\n display: \"none\"\n});\nfunction Table_div_2_i_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"i\");\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(2);\n i0.ɵɵclassMap(\"p-datatable-loading-icon \" + ctx_r0.loadingIcon);\n }\n}\nfunction Table_div_2_ng_container_2_SpinnerIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"SpinnerIcon\", 25);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"spin\", true)(\"styleClass\", \"p-datatable-loading-icon\");\n }\n}\nfunction Table_div_2_ng_container_2_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction Table_div_2_ng_container_2_span_2_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_div_2_ng_container_2_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Table_div_2_ng_container_2_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 26);\n i0.ɵɵtemplate(1, Table_div_2_ng_container_2_span_2_1_Template, 1, 0, null, 27);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.loadingIconTemplate);\n }\n}\nfunction Table_div_2_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Table_div_2_ng_container_2_SpinnerIcon_1_Template, 1, 2, \"SpinnerIcon\", 23)(2, Table_div_2_ng_container_2_span_2_Template, 2, 1, \"span\", 24);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r0.loadingIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.loadingIconTemplate);\n }\n}\nfunction Table_div_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 21);\n i0.ɵɵtemplate(1, Table_div_2_i_1_Template, 1, 2, \"i\", 22)(2, Table_div_2_ng_container_2_Template, 3, 2, \"ng-container\", 16);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.loadingIcon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r0.loadingIcon);\n }\n}\nfunction Table_div_3_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_div_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 28);\n i0.ɵɵtemplate(1, Table_div_3_ng_container_1_Template, 1, 0, \"ng-container\", 27);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.captionTemplate);\n }\n}\nfunction Table_p_paginator_4_1_ng_template_0_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_p_paginator_4_1_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_4_1_ng_template_0_ng_container_0_Template, 1, 0, \"ng-container\", 27);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.paginatorDropdownIconTemplate);\n }\n}\nfunction Table_p_paginator_4_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_4_1_ng_template_0_Template, 1, 1, \"ng-template\", 30);\n }\n}\nfunction Table_p_paginator_4_2_ng_template_0_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_p_paginator_4_2_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_4_2_ng_template_0_ng_container_0_Template, 1, 0, \"ng-container\", 27);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.paginatorFirstPageLinkIconTemplate);\n }\n}\nfunction Table_p_paginator_4_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_4_2_ng_template_0_Template, 1, 1, \"ng-template\", 31);\n }\n}\nfunction Table_p_paginator_4_3_ng_template_0_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_p_paginator_4_3_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_4_3_ng_template_0_ng_container_0_Template, 1, 0, \"ng-container\", 27);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.paginatorPreviousPageLinkIconTemplate);\n }\n}\nfunction Table_p_paginator_4_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_4_3_ng_template_0_Template, 1, 1, \"ng-template\", 32);\n }\n}\nfunction Table_p_paginator_4_4_ng_template_0_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_p_paginator_4_4_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_4_4_ng_template_0_ng_container_0_Template, 1, 0, \"ng-container\", 27);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.paginatorLastPageLinkIconTemplate);\n }\n}\nfunction Table_p_paginator_4_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_4_4_ng_template_0_Template, 1, 1, \"ng-template\", 33);\n }\n}\nfunction Table_p_paginator_4_5_ng_template_0_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_p_paginator_4_5_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_4_5_ng_template_0_ng_container_0_Template, 1, 0, \"ng-container\", 27);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.paginatorNextPageLinkIconTemplate);\n }\n}\nfunction Table_p_paginator_4_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_4_5_ng_template_0_Template, 1, 1, \"ng-template\", 34);\n }\n}\nfunction Table_p_paginator_4_Template(rf, ctx) {\n if (rf & 1) {\n const _r2 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"p-paginator\", 29);\n i0.ɵɵlistener(\"onPageChange\", function Table_p_paginator_4_Template_p_paginator_onPageChange_0_listener($event) {\n i0.ɵɵrestoreView(_r2);\n const ctx_r0 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r0.onPageChange($event));\n });\n i0.ɵɵtemplate(1, Table_p_paginator_4_1_Template, 1, 0, null, 16)(2, Table_p_paginator_4_2_Template, 1, 0, null, 16)(3, Table_p_paginator_4_3_Template, 1, 0, null, 16)(4, Table_p_paginator_4_4_Template, 1, 0, null, 16)(5, Table_p_paginator_4_5_Template, 1, 0, null, 16);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"rows\", ctx_r0.rows)(\"first\", ctx_r0.first)(\"totalRecords\", ctx_r0.totalRecords)(\"pageLinkSize\", ctx_r0.pageLinks)(\"alwaysShow\", ctx_r0.alwaysShowPaginator)(\"rowsPerPageOptions\", ctx_r0.rowsPerPageOptions)(\"templateLeft\", ctx_r0.paginatorLeftTemplate)(\"templateRight\", ctx_r0.paginatorRightTemplate)(\"dropdownAppendTo\", ctx_r0.paginatorDropdownAppendTo)(\"dropdownScrollHeight\", ctx_r0.paginatorDropdownScrollHeight)(\"currentPageReportTemplate\", ctx_r0.currentPageReportTemplate)(\"showFirstLastIcon\", ctx_r0.showFirstLastIcon)(\"dropdownItemTemplate\", ctx_r0.paginatorDropdownItemTemplate)(\"showCurrentPageReport\", ctx_r0.showCurrentPageReport)(\"showJumpToPageDropdown\", ctx_r0.showJumpToPageDropdown)(\"showJumpToPageInput\", ctx_r0.showJumpToPageInput)(\"showPageLinks\", ctx_r0.showPageLinks)(\"styleClass\", ctx_r0.getPaginatorStyleClasses(\"p-paginator-top\"))(\"locale\", ctx_r0.paginatorLocale);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.paginatorDropdownIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.paginatorFirstPageLinkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.paginatorPreviousPageLinkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.paginatorLastPageLinkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.paginatorNextPageLinkIconTemplate);\n }\n}\nfunction Table_p_scroller_7_ng_template_2_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_p_scroller_7_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_scroller_7_ng_template_2_ng_container_0_Template, 1, 0, \"ng-container\", 37);\n }\n if (rf & 2) {\n const items_r4 = ctx.$implicit;\n const scrollerOptions_r5 = ctx.options;\n i0.ɵɵnextContext(2);\n const buildInTable_r6 = i0.ɵɵreference(10);\n i0.ɵɵproperty(\"ngTemplateOutlet\", buildInTable_r6)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction2(2, _c12, items_r4, scrollerOptions_r5));\n }\n}\nfunction Table_p_scroller_7_Template(rf, ctx) {\n if (rf & 1) {\n const _r3 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"p-scroller\", 35, 3);\n i0.ɵɵlistener(\"onLazyLoad\", function Table_p_scroller_7_Template_p_scroller_onLazyLoad_0_listener($event) {\n i0.ɵɵrestoreView(_r3);\n const ctx_r0 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r0.onLazyItemLoad($event));\n });\n i0.ɵɵtemplate(2, Table_p_scroller_7_ng_template_2_Template, 1, 5, \"ng-template\", 36);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵstyleMap(i0.ɵɵpureFunction1(15, _c11, ctx_r0.scrollHeight !== \"flex\" ? ctx_r0.scrollHeight : undefined));\n i0.ɵɵproperty(\"items\", ctx_r0.processedData)(\"columns\", ctx_r0.columns)(\"scrollHeight\", ctx_r0.scrollHeight !== \"flex\" ? undefined : \"100%\")(\"itemSize\", ctx_r0.virtualScrollItemSize || ctx_r0._virtualRowHeight)(\"step\", ctx_r0.rows)(\"delay\", ctx_r0.lazy ? ctx_r0.virtualScrollDelay : 0)(\"inline\", true)(\"autoSize\", true)(\"lazy\", ctx_r0.lazy)(\"loaderDisabled\", true)(\"showSpacer\", false)(\"showLoader\", ctx_r0.loadingBodyTemplate)(\"options\", ctx_r0.virtualScrollOptions);\n }\n}\nfunction Table_ng_container_8_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_ng_container_8_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, Table_ng_container_8_ng_container_1_Template, 1, 0, \"ng-container\", 37);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n const buildInTable_r6 = i0.ɵɵreference(10);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", buildInTable_r6)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction2(4, _c12, ctx_r0.processedData, i0.ɵɵpureFunction1(2, _c13, ctx_r0.columns)));\n }\n}\nfunction Table_ng_template_9_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_ng_template_9_ng_container_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_ng_template_9_tbody_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"tbody\", 44);\n }\n if (rf & 2) {\n const scrollerOptions_r7 = i0.ɵɵnextContext().options;\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"value\", ctx_r0.frozenValue)(\"frozenRows\", true)(\"pTableBody\", scrollerOptions_r7.columns)(\"pTableBodyTemplate\", ctx_r0.frozenBodyTemplate)(\"frozen\", true);\n }\n}\nfunction Table_ng_template_9_tbody_8_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"tbody\", 45);\n }\n if (rf & 2) {\n const scrollerOptions_r7 = i0.ɵɵnextContext().options;\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(1, _c11, \"calc(\" + scrollerOptions_r7.spacerStyle.height + \" - \" + scrollerOptions_r7.rows.length * scrollerOptions_r7.itemSize + \"px)\"));\n }\n}\nfunction Table_ng_template_9_tfoot_9_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_ng_template_9_tfoot_9_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"tfoot\", 46, 6);\n i0.ɵɵtemplate(2, Table_ng_template_9_tfoot_9_ng_container_2_Template, 1, 0, \"ng-container\", 37);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const scrollerOptions_r7 = i0.ɵɵnextContext().options;\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.footerGroupedTemplate || ctx_r0.footerTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c15, scrollerOptions_r7.columns));\n }\n}\nfunction Table_ng_template_9_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"table\", 38, 4);\n i0.ɵɵtemplate(2, Table_ng_template_9_ng_container_2_Template, 1, 0, \"ng-container\", 37);\n i0.ɵɵelementStart(3, \"thead\", 39, 5);\n i0.ɵɵtemplate(5, Table_ng_template_9_ng_container_5_Template, 1, 0, \"ng-container\", 37);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(6, Table_ng_template_9_tbody_6_Template, 1, 5, \"tbody\", 40);\n i0.ɵɵelement(7, \"tbody\", 41);\n i0.ɵɵtemplate(8, Table_ng_template_9_tbody_8_Template, 1, 3, \"tbody\", 42)(9, Table_ng_template_9_tfoot_9_Template, 3, 4, \"tfoot\", 43);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const scrollerOptions_r7 = ctx.options;\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵclassMap(ctx_r0.tableStyleClass);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(18, _c14, ctx_r0.scrollable, ctx_r0.resizableColumns, ctx_r0.resizableColumns && ctx_r0.columnResizeMode === \"fit\"))(\"ngStyle\", ctx_r0.tableStyle);\n i0.ɵɵattribute(\"id\", ctx_r0.id + \"-table\");\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.colGroupTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(22, _c15, scrollerOptions_r7.columns));\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.headerGroupedTemplate || ctx_r0.headerTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(24, _c15, scrollerOptions_r7.columns));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.frozenValue || ctx_r0.frozenBodyTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngClass\", scrollerOptions_r7.contentStyleClass)(\"ngStyle\", scrollerOptions_r7.contentStyle)(\"value\", ctx_r0.dataToRender(scrollerOptions_r7.rows))(\"pTableBody\", scrollerOptions_r7.columns)(\"pTableBodyTemplate\", ctx_r0.bodyTemplate)(\"scrollerOptions\", scrollerOptions_r7);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", scrollerOptions_r7.spacerStyle);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.footerGroupedTemplate || ctx_r0.footerTemplate);\n }\n}\nfunction Table_p_paginator_11_1_ng_template_0_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_p_paginator_11_1_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_11_1_ng_template_0_ng_container_0_Template, 1, 0, \"ng-container\", 27);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.paginatorDropdownIconTemplate);\n }\n}\nfunction Table_p_paginator_11_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_11_1_ng_template_0_Template, 1, 1, \"ng-template\", 30);\n }\n}\nfunction Table_p_paginator_11_2_ng_template_0_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_p_paginator_11_2_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_11_2_ng_template_0_ng_container_0_Template, 1, 0, \"ng-container\", 27);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.paginatorFirstPageLinkIconTemplate);\n }\n}\nfunction Table_p_paginator_11_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_11_2_ng_template_0_Template, 1, 1, \"ng-template\", 31);\n }\n}\nfunction Table_p_paginator_11_3_ng_template_0_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_p_paginator_11_3_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_11_3_ng_template_0_ng_container_0_Template, 1, 0, \"ng-container\", 27);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.paginatorPreviousPageLinkIconTemplate);\n }\n}\nfunction Table_p_paginator_11_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_11_3_ng_template_0_Template, 1, 1, \"ng-template\", 32);\n }\n}\nfunction Table_p_paginator_11_4_ng_template_0_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_p_paginator_11_4_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_11_4_ng_template_0_ng_container_0_Template, 1, 0, \"ng-container\", 27);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.paginatorLastPageLinkIconTemplate);\n }\n}\nfunction Table_p_paginator_11_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_11_4_ng_template_0_Template, 1, 1, \"ng-template\", 33);\n }\n}\nfunction Table_p_paginator_11_5_ng_template_0_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_p_paginator_11_5_ng_template_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_11_5_ng_template_0_ng_container_0_Template, 1, 0, \"ng-container\", 27);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.paginatorNextPageLinkIconTemplate);\n }\n}\nfunction Table_p_paginator_11_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_p_paginator_11_5_ng_template_0_Template, 1, 1, \"ng-template\", 34);\n }\n}\nfunction Table_p_paginator_11_Template(rf, ctx) {\n if (rf & 1) {\n const _r8 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"p-paginator\", 29);\n i0.ɵɵlistener(\"onPageChange\", function Table_p_paginator_11_Template_p_paginator_onPageChange_0_listener($event) {\n i0.ɵɵrestoreView(_r8);\n const ctx_r0 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r0.onPageChange($event));\n });\n i0.ɵɵtemplate(1, Table_p_paginator_11_1_Template, 1, 0, null, 16)(2, Table_p_paginator_11_2_Template, 1, 0, null, 16)(3, Table_p_paginator_11_3_Template, 1, 0, null, 16)(4, Table_p_paginator_11_4_Template, 1, 0, null, 16)(5, Table_p_paginator_11_5_Template, 1, 0, null, 16);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"rows\", ctx_r0.rows)(\"first\", ctx_r0.first)(\"totalRecords\", ctx_r0.totalRecords)(\"pageLinkSize\", ctx_r0.pageLinks)(\"alwaysShow\", ctx_r0.alwaysShowPaginator)(\"rowsPerPageOptions\", ctx_r0.rowsPerPageOptions)(\"templateLeft\", ctx_r0.paginatorLeftTemplate)(\"templateRight\", ctx_r0.paginatorRightTemplate)(\"dropdownAppendTo\", ctx_r0.paginatorDropdownAppendTo)(\"dropdownScrollHeight\", ctx_r0.paginatorDropdownScrollHeight)(\"currentPageReportTemplate\", ctx_r0.currentPageReportTemplate)(\"showFirstLastIcon\", ctx_r0.showFirstLastIcon)(\"dropdownItemTemplate\", ctx_r0.paginatorDropdownItemTemplate)(\"showCurrentPageReport\", ctx_r0.showCurrentPageReport)(\"showJumpToPageDropdown\", ctx_r0.showJumpToPageDropdown)(\"showJumpToPageInput\", ctx_r0.showJumpToPageInput)(\"showPageLinks\", ctx_r0.showPageLinks)(\"styleClass\", ctx_r0.getPaginatorStyleClasses(\"p-paginator-bottom\"))(\"locale\", ctx_r0.paginatorLocale);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.paginatorDropdownIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.paginatorFirstPageLinkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.paginatorPreviousPageLinkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.paginatorLastPageLinkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.paginatorNextPageLinkIconTemplate);\n }\n}\nfunction Table_div_12_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction Table_div_12_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 47);\n i0.ɵɵtemplate(1, Table_div_12_ng_container_1_Template, 1, 0, \"ng-container\", 27);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.summaryTemplate);\n }\n}\nfunction Table_div_13_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"div\", 48, 7);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction0(1, _c16));\n }\n}\nfunction Table_span_14_ArrowDownIcon_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ArrowDownIcon\");\n }\n}\nfunction Table_span_14_3_ng_template_0_Template(rf, ctx) {}\nfunction Table_span_14_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_span_14_3_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Table_span_14_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 49, 8);\n i0.ɵɵtemplate(2, Table_span_14_ArrowDownIcon_2_Template, 1, 0, \"ArrowDownIcon\", 16)(3, Table_span_14_3_Template, 1, 0, null, 27);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction0(3, _c16));\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx_r0.reorderIndicatorUpIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.reorderIndicatorUpIconTemplate);\n }\n}\nfunction Table_span_15_ArrowUpIcon_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ArrowUpIcon\");\n }\n}\nfunction Table_span_15_3_ng_template_0_Template(rf, ctx) {}\nfunction Table_span_15_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, Table_span_15_3_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction Table_span_15_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 50, 9);\n i0.ɵɵtemplate(2, Table_span_15_ArrowUpIcon_2_Template, 1, 0, \"ArrowUpIcon\", 16)(3, Table_span_15_3_Template, 1, 0, null, 27);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction0(3, _c16));\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx_r0.reorderIndicatorDownIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.reorderIndicatorDownIconTemplate);\n }\n}\nconst _c17 = [\"pTableBody\", \"\"];\nconst _c18 = (a0, a1, a2, a3, a4) => ({\n $implicit: a0,\n rowIndex: a1,\n columns: a2,\n editing: a3,\n frozen: a4\n});\nconst _c19 = (a0, a1, a2, a3, a4, a5, a6) => ({\n $implicit: a0,\n rowIndex: a1,\n columns: a2,\n editing: a3,\n frozen: a4,\n rowgroup: a5,\n rowspan: a6\n});\nconst _c20 = (a0, a1, a2, a3, a4, a5) => ({\n $implicit: a0,\n rowIndex: a1,\n columns: a2,\n expanded: a3,\n editing: a4,\n frozen: a5\n});\nconst _c21 = (a0, a1, a2, a3) => ({\n $implicit: a0,\n rowIndex: a1,\n columns: a2,\n frozen: a3\n});\nconst _c22 = (a0, a1) => ({\n $implicit: a0,\n frozen: a1\n});\nfunction TableBody_ng_container_0_ng_template_1_ng_container_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TableBody_ng_container_0_ng_template_1_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0, 3);\n i0.ɵɵtemplate(1, TableBody_ng_container_0_ng_template_1_ng_container_0_ng_container_1_Template, 1, 0, \"ng-container\", 4);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n const rowData_r2 = ctx_r0.$implicit;\n const rowIndex_r3 = ctx_r0.index;\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r3.dt.groupHeaderTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction5(2, _c18, rowData_r2, ctx_r3.getRowIndex(rowIndex_r3), ctx_r3.columns, ctx_r3.dt.editMode === \"row\" && ctx_r3.dt.isRowEditing(rowData_r2), ctx_r3.frozen));\n }\n}\nfunction TableBody_ng_container_0_ng_template_1_ng_container_1_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TableBody_ng_container_0_ng_template_1_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TableBody_ng_container_0_ng_template_1_ng_container_1_ng_container_1_Template, 1, 0, \"ng-container\", 4);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n const rowData_r2 = ctx_r0.$implicit;\n const rowIndex_r3 = ctx_r0.index;\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", rowData_r2 ? ctx_r3.template : ctx_r3.dt.loadingBodyTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction5(2, _c18, rowData_r2, ctx_r3.getRowIndex(rowIndex_r3), ctx_r3.columns, ctx_r3.dt.editMode === \"row\" && ctx_r3.dt.isRowEditing(rowData_r2), ctx_r3.frozen));\n }\n}\nfunction TableBody_ng_container_0_ng_template_1_ng_container_2_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TableBody_ng_container_0_ng_template_1_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TableBody_ng_container_0_ng_template_1_ng_container_2_ng_container_1_Template, 1, 0, \"ng-container\", 4);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n const rowData_r2 = ctx_r0.$implicit;\n const rowIndex_r3 = ctx_r0.index;\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", rowData_r2 ? ctx_r3.template : ctx_r3.dt.loadingBodyTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction7(2, _c19, rowData_r2, ctx_r3.getRowIndex(rowIndex_r3), ctx_r3.columns, ctx_r3.dt.editMode === \"row\" && ctx_r3.dt.isRowEditing(rowData_r2), ctx_r3.frozen, ctx_r3.shouldRenderRowspan(ctx_r3.value, rowData_r2, rowIndex_r3), ctx_r3.calculateRowGroupSize(ctx_r3.value, rowData_r2, rowIndex_r3)));\n }\n}\nfunction TableBody_ng_container_0_ng_template_1_ng_container_3_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TableBody_ng_container_0_ng_template_1_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0, 3);\n i0.ɵɵtemplate(1, TableBody_ng_container_0_ng_template_1_ng_container_3_ng_container_1_Template, 1, 0, \"ng-container\", 4);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n const rowData_r2 = ctx_r0.$implicit;\n const rowIndex_r3 = ctx_r0.index;\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r3.dt.groupFooterTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction5(2, _c18, rowData_r2, ctx_r3.getRowIndex(rowIndex_r3), ctx_r3.columns, ctx_r3.dt.editMode === \"row\" && ctx_r3.dt.isRowEditing(rowData_r2), ctx_r3.frozen));\n }\n}\nfunction TableBody_ng_container_0_ng_template_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TableBody_ng_container_0_ng_template_1_ng_container_0_Template, 2, 8, \"ng-container\", 2)(1, TableBody_ng_container_0_ng_template_1_ng_container_1_Template, 2, 8, \"ng-container\", 0)(2, TableBody_ng_container_0_ng_template_1_ng_container_2_Template, 2, 10, \"ng-container\", 0)(3, TableBody_ng_container_0_ng_template_1_ng_container_3_Template, 2, 8, \"ng-container\", 2);\n }\n if (rf & 2) {\n const rowData_r2 = ctx.$implicit;\n const rowIndex_r3 = ctx.index;\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r3.dt.groupHeaderTemplate && !ctx_r3.dt.virtualScroll && ctx_r3.dt.rowGroupMode === \"subheader\" && ctx_r3.shouldRenderRowGroupHeader(ctx_r3.value, rowData_r2, ctx_r3.getRowIndex(rowIndex_r3)));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r3.dt.rowGroupMode !== \"rowspan\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r3.dt.rowGroupMode === \"rowspan\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r3.dt.groupFooterTemplate && !ctx_r3.dt.virtualScroll && ctx_r3.dt.rowGroupMode === \"subheader\" && ctx_r3.shouldRenderRowGroupFooter(ctx_r3.value, rowData_r2, rowIndex_r3));\n }\n}\nfunction TableBody_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TableBody_ng_container_0_ng_template_1_Template, 4, 4, \"ng-template\", 1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", ctx_r3.value)(\"ngForTrackBy\", ctx_r3.dt.rowTrackBy);\n }\n}\nfunction TableBody_ng_container_1_ng_template_1_ng_container_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TableBody_ng_container_1_ng_template_1_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TableBody_ng_container_1_ng_template_1_ng_container_0_ng_container_1_Template, 1, 0, \"ng-container\", 4);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r4 = i0.ɵɵnextContext();\n const rowData_r6 = ctx_r4.$implicit;\n const rowIndex_r7 = ctx_r4.index;\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r3.template)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction6(2, _c20, rowData_r6, ctx_r3.getRowIndex(rowIndex_r7), ctx_r3.columns, ctx_r3.dt.isRowExpanded(rowData_r6), ctx_r3.dt.editMode === \"row\" && ctx_r3.dt.isRowEditing(rowData_r6), ctx_r3.frozen));\n }\n}\nfunction TableBody_ng_container_1_ng_template_1_ng_container_1_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TableBody_ng_container_1_ng_template_1_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0, 3);\n i0.ɵɵtemplate(1, TableBody_ng_container_1_ng_template_1_ng_container_1_ng_container_1_Template, 1, 0, \"ng-container\", 4);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r4 = i0.ɵɵnextContext();\n const rowData_r6 = ctx_r4.$implicit;\n const rowIndex_r7 = ctx_r4.index;\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r3.dt.groupHeaderTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction6(2, _c20, rowData_r6, ctx_r3.getRowIndex(rowIndex_r7), ctx_r3.columns, ctx_r3.dt.isRowExpanded(rowData_r6), ctx_r3.dt.editMode === \"row\" && ctx_r3.dt.isRowEditing(rowData_r6), ctx_r3.frozen));\n }\n}\nfunction TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_2_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0, 3);\n i0.ɵɵtemplate(1, TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_2_ng_container_1_Template, 1, 0, \"ng-container\", 4);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r4 = i0.ɵɵnextContext(2);\n const rowData_r6 = ctx_r4.$implicit;\n const rowIndex_r7 = ctx_r4.index;\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r3.dt.groupFooterTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction6(2, _c20, rowData_r6, ctx_r3.getRowIndex(rowIndex_r7), ctx_r3.columns, ctx_r3.dt.isRowExpanded(rowData_r6), ctx_r3.dt.editMode === \"row\" && ctx_r3.dt.isRowEditing(rowData_r6), ctx_r3.frozen));\n }\n}\nfunction TableBody_ng_container_1_ng_template_1_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_1_Template, 1, 0, \"ng-container\", 4)(2, TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_2_Template, 2, 9, \"ng-container\", 2);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r4 = i0.ɵɵnextContext();\n const rowData_r6 = ctx_r4.$implicit;\n const rowIndex_r7 = ctx_r4.index;\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r3.dt.expandedRowTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction4(3, _c21, rowData_r6, ctx_r3.getRowIndex(rowIndex_r7), ctx_r3.columns, ctx_r3.frozen));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r3.dt.groupFooterTemplate && ctx_r3.dt.rowGroupMode === \"subheader\" && ctx_r3.shouldRenderRowGroupFooter(ctx_r3.value, rowData_r6, ctx_r3.getRowIndex(rowIndex_r7)));\n }\n}\nfunction TableBody_ng_container_1_ng_template_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TableBody_ng_container_1_ng_template_1_ng_container_0_Template, 2, 9, \"ng-container\", 0)(1, TableBody_ng_container_1_ng_template_1_ng_container_1_Template, 2, 9, \"ng-container\", 2)(2, TableBody_ng_container_1_ng_template_1_ng_container_2_Template, 3, 8, \"ng-container\", 0);\n }\n if (rf & 2) {\n const rowData_r6 = ctx.$implicit;\n const rowIndex_r7 = ctx.index;\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngIf\", !ctx_r3.dt.groupHeaderTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r3.dt.groupHeaderTemplate && ctx_r3.dt.rowGroupMode === \"subheader\" && ctx_r3.shouldRenderRowGroupHeader(ctx_r3.value, rowData_r6, ctx_r3.getRowIndex(rowIndex_r7)));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r3.dt.isRowExpanded(rowData_r6));\n }\n}\nfunction TableBody_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TableBody_ng_container_1_ng_template_1_Template, 3, 3, \"ng-template\", 1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", ctx_r3.value)(\"ngForTrackBy\", ctx_r3.dt.rowTrackBy);\n }\n}\nfunction TableBody_ng_container_2_ng_template_1_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TableBody_ng_container_2_ng_template_1_ng_container_1_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TableBody_ng_container_2_ng_template_1_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TableBody_ng_container_2_ng_template_1_ng_container_1_ng_container_1_Template, 1, 0, \"ng-container\", 4);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r7 = i0.ɵɵnextContext();\n const rowData_r9 = ctx_r7.$implicit;\n const rowIndex_r10 = ctx_r7.index;\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r3.dt.frozenExpandedRowTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction4(2, _c21, rowData_r9, ctx_r3.getRowIndex(rowIndex_r10), ctx_r3.columns, ctx_r3.frozen));\n }\n}\nfunction TableBody_ng_container_2_ng_template_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TableBody_ng_container_2_ng_template_1_ng_container_0_Template, 1, 0, \"ng-container\", 4)(1, TableBody_ng_container_2_ng_template_1_ng_container_1_Template, 2, 7, \"ng-container\", 0);\n }\n if (rf & 2) {\n const rowData_r9 = ctx.$implicit;\n const rowIndex_r10 = ctx.index;\n const ctx_r3 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r3.template)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction6(3, _c20, rowData_r9, ctx_r3.getRowIndex(rowIndex_r10), ctx_r3.columns, ctx_r3.dt.isRowExpanded(rowData_r9), ctx_r3.dt.editMode === \"row\" && ctx_r3.dt.isRowEditing(rowData_r9), ctx_r3.frozen));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r3.dt.isRowExpanded(rowData_r9));\n }\n}\nfunction TableBody_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TableBody_ng_container_2_ng_template_1_Template, 2, 10, \"ng-template\", 1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", ctx_r3.value)(\"ngForTrackBy\", ctx_r3.dt.rowTrackBy);\n }\n}\nfunction TableBody_ng_container_3_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TableBody_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TableBody_ng_container_3_ng_container_1_Template, 1, 0, \"ng-container\", 4);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r3.dt.loadingBodyTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction2(2, _c22, ctx_r3.columns, ctx_r3.frozen));\n }\n}\nfunction TableBody_ng_container_4_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TableBody_ng_container_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TableBody_ng_container_4_ng_container_1_Template, 1, 0, \"ng-container\", 4);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r3.dt.emptyMessageTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction2(2, _c22, ctx_r3.columns, ctx_r3.frozen));\n }\n}\nfunction SortIcon_ng_container_0_SortAltIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"SortAltIcon\", 4);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-sortable-column-icon\");\n }\n}\nfunction SortIcon_ng_container_0_SortAmountUpAltIcon_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"SortAmountUpAltIcon\", 4);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-sortable-column-icon\");\n }\n}\nfunction SortIcon_ng_container_0_SortAmountDownIcon_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"SortAmountDownIcon\", 4);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-sortable-column-icon\");\n }\n}\nfunction SortIcon_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, SortIcon_ng_container_0_SortAltIcon_1_Template, 1, 1, \"SortAltIcon\", 3)(2, SortIcon_ng_container_0_SortAmountUpAltIcon_2_Template, 1, 1, \"SortAmountUpAltIcon\", 3)(3, SortIcon_ng_container_0_SortAmountDownIcon_3_Template, 1, 1, \"SortAmountDownIcon\", 3);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.sortOrder === 0);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.sortOrder === 1);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.sortOrder === -1);\n }\n}\nfunction SortIcon_span_1_1_ng_template_0_Template(rf, ctx) {}\nfunction SortIcon_span_1_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, SortIcon_span_1_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction SortIcon_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 5);\n i0.ɵɵtemplate(1, SortIcon_span_1_1_Template, 1, 0, null, 6);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.dt.sortIconTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c15, ctx_r0.sortOrder));\n }\n}\nfunction SortIcon_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 7);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx_r0.getBadgeValue());\n }\n}\nfunction CellEditor_ng_container_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction CellEditor_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, CellEditor_ng_container_0_ng_container_1_Template, 1, 0, \"ng-container\", 1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.inputTemplate);\n }\n}\nfunction CellEditor_ng_container_1_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction CellEditor_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, CellEditor_ng_container_1_ng_container_1_Template, 1, 0, \"ng-container\", 1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.outputTemplate);\n }\n}\nconst _c23 = [\"rb\"];\nconst _c24 = (a0, a1, a2) => ({\n \"p-radiobutton-focused\": a0,\n \"p-radiobutton-checked\": a1,\n \"p-radiobutton-disabled\": a2\n});\nconst _c25 = (a0, a1, a2) => ({\n \"p-radiobutton-box p-component\": true,\n \"p-highlight\": a0,\n \"p-focus\": a1,\n \"p-disabled\": a2\n});\nconst _c26 = (a0, a1) => ({\n \"p-checkbox-focused\": a0,\n \"p-checkbox-disabled\": a1\n});\nconst _c27 = (a0, a1, a2) => ({\n \"p-checkbox-box p-component\": true,\n \"p-highlight\": a0,\n \"p-focus\": a1,\n \"p-disabled\": a2\n});\nfunction TableCheckbox_ng_container_5_CheckIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"CheckIcon\", 7);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-checkbox-icon\");\n }\n}\nfunction TableCheckbox_ng_container_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TableCheckbox_ng_container_5_CheckIcon_1_Template, 1, 1, \"CheckIcon\", 6);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.checked);\n }\n}\nfunction TableCheckbox_span_6_1_ng_template_0_Template(rf, ctx) {}\nfunction TableCheckbox_span_6_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TableCheckbox_span_6_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction TableCheckbox_span_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\");\n i0.ɵɵtemplate(1, TableCheckbox_span_6_1_Template, 1, 0, null, 8);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.dt.checkboxIconTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c15, ctx_r1.checked));\n }\n}\nconst _c28 = (a0, a1, a2) => ({\n \"p-checkbox-box\": true,\n \"p-highlight\": a0,\n \"p-focus\": a1,\n \"p-disabled\": a2\n});\nfunction TableHeaderCheckbox_ng_container_6_CheckIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"CheckIcon\", 9);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-checkbox-icon\");\n }\n}\nfunction TableHeaderCheckbox_ng_container_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TableHeaderCheckbox_ng_container_6_CheckIcon_1_Template, 1, 1, \"CheckIcon\", 8);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.checked);\n }\n}\nfunction TableHeaderCheckbox_span_7_1_ng_template_0_Template(rf, ctx) {}\nfunction TableHeaderCheckbox_span_7_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TableHeaderCheckbox_span_7_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction TableHeaderCheckbox_span_7_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 10);\n i0.ɵɵtemplate(1, TableHeaderCheckbox_span_7_1_Template, 1, 0, null, 11);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.dt.headerCheckboxIconTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c15, ctx_r1.checked));\n }\n}\nconst _c29 = [\"icon\"];\nconst _c30 = [\"clearBtn\"];\nconst _c31 = (a0, a1) => ({\n \"p-column-filter-row\": a0,\n \"p-column-filter-menu\": a1\n});\nconst _c32 = (a0, a1) => ({\n \"p-column-filter-menu-button-open\": a0,\n \"p-column-filter-menu-button-active\": a1\n});\nconst _c33 = a0 => ({\n \"p-hidden-space\": a0\n});\nconst _c34 = a0 => ({\n \"p-column-filter-overlay p-component p-fluid\": true,\n \"p-column-filter-overlay-menu\": a0\n});\nconst _c35 = a0 => ({\n \"p-highlight\": a0\n});\nfunction ColumnFilter_p_columnFilterFormElement_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"p-columnFilterFormElement\", 8);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"type\", ctx_r0.type)(\"field\", ctx_r0.field)(\"ariaLabel\", ctx_r0.ariaLabel)(\"filterConstraint\", ctx_r0.dt.filters[ctx_r0.field])(\"filterTemplate\", ctx_r0.filterTemplate)(\"placeholder\", ctx_r0.placeholder)(\"minFractionDigits\", ctx_r0.minFractionDigits)(\"maxFractionDigits\", ctx_r0.maxFractionDigits)(\"prefix\", ctx_r0.prefix)(\"suffix\", ctx_r0.suffix)(\"locale\", ctx_r0.locale)(\"localeMatcher\", ctx_r0.localeMatcher)(\"currency\", ctx_r0.currency)(\"currencyDisplay\", ctx_r0.currencyDisplay)(\"useGrouping\", ctx_r0.useGrouping)(\"showButtons\", ctx_r0.showButtons);\n }\n}\nfunction ColumnFilter_button_2_FilterIcon_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"FilterIcon\", 12);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"pi-filter-icon\");\n }\n}\nfunction ColumnFilter_button_2_span_3_1_ng_template_0_Template(rf, ctx) {}\nfunction ColumnFilter_button_2_span_3_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, ColumnFilter_button_2_span_3_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction ColumnFilter_button_2_span_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 13);\n i0.ɵɵtemplate(1, ColumnFilter_button_2_span_3_1_Template, 1, 0, null, 14);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.filterIconTemplate);\n }\n}\nfunction ColumnFilter_button_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r2 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 9, 0);\n i0.ɵɵlistener(\"click\", function ColumnFilter_button_2_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r2);\n const ctx_r0 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r0.toggleMenu());\n })(\"keydown\", function ColumnFilter_button_2_Template_button_keydown_0_listener($event) {\n i0.ɵɵrestoreView(_r2);\n const ctx_r0 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r0.onToggleButtonKeyDown($event));\n });\n i0.ɵɵtemplate(2, ColumnFilter_button_2_FilterIcon_2_Template, 1, 1, \"FilterIcon\", 10)(3, ColumnFilter_button_2_span_3_Template, 2, 1, \"span\", 11);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n let tmp_5_0;\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(6, _c32, ctx_r0.overlayVisible, ctx_r0.hasFilter()));\n i0.ɵɵattribute(\"aria-label\", ctx_r0.filterMenuButtonAriaLabel)(\"aria-controls\", ctx_r0.overlayVisible ? ctx_r0.overlayId : null)(\"aria-expanded\", (tmp_5_0 = ctx_r0.overlayVisible) !== null && tmp_5_0 !== undefined ? tmp_5_0 : false);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx_r0.filterIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.filterIconTemplate);\n }\n}\nfunction ColumnFilter_button_3_FilterSlashIcon_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"FilterSlashIcon\");\n }\n}\nfunction ColumnFilter_button_3_3_ng_template_0_Template(rf, ctx) {}\nfunction ColumnFilter_button_3_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, ColumnFilter_button_3_3_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction ColumnFilter_button_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r3 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 15, 0);\n i0.ɵɵlistener(\"click\", function ColumnFilter_button_3_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r3);\n const ctx_r0 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r0.clearFilter());\n });\n i0.ɵɵtemplate(2, ColumnFilter_button_3_FilterSlashIcon_2_Template, 1, 0, \"FilterSlashIcon\", 16)(3, ColumnFilter_button_3_3_Template, 1, 0, null, 14);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(4, _c33, !ctx_r0.hasRowFilter()));\n i0.ɵɵattribute(\"aria-label\", ctx_r0.clearButtonLabel);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx_r0.clearFilterIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.clearFilterIconTemplate);\n }\n}\nfunction ColumnFilter_div_4_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction ColumnFilter_div_4_ul_2_li_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r6 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"li\", 24);\n i0.ɵɵlistener(\"click\", function ColumnFilter_div_4_ul_2_li_1_Template_li_click_0_listener() {\n const matchMode_r7 = i0.ɵɵrestoreView(_r6).$implicit;\n const ctx_r0 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r0.onRowMatchModeChange(matchMode_r7.value));\n })(\"keydown\", function ColumnFilter_div_4_ul_2_li_1_Template_li_keydown_0_listener($event) {\n i0.ɵɵrestoreView(_r6);\n const ctx_r0 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r0.onRowMatchModeKeyDown($event));\n })(\"keydown.enter\", function ColumnFilter_div_4_ul_2_li_1_Template_li_keydown_enter_0_listener() {\n const matchMode_r7 = i0.ɵɵrestoreView(_r6).$implicit;\n const ctx_r0 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r0.onRowMatchModeChange(matchMode_r7.value));\n });\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const matchMode_r7 = ctx.$implicit;\n const i_r8 = ctx.index;\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(3, _c35, ctx_r0.isRowMatchModeSelected(matchMode_r7.value)));\n i0.ɵɵattribute(\"tabindex\", i_r8 === 0 ? \"0\" : null);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", matchMode_r7.label, \" \");\n }\n}\nfunction ColumnFilter_div_4_ul_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r5 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"ul\", 20);\n i0.ɵɵtemplate(1, ColumnFilter_div_4_ul_2_li_1_Template, 2, 5, \"li\", 21);\n i0.ɵɵelement(2, \"li\", 22);\n i0.ɵɵelementStart(3, \"li\", 23);\n i0.ɵɵlistener(\"click\", function ColumnFilter_div_4_ul_2_Template_li_click_3_listener() {\n i0.ɵɵrestoreView(_r5);\n const ctx_r0 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r0.onRowClearItemClick());\n })(\"keydown\", function ColumnFilter_div_4_ul_2_Template_li_keydown_3_listener($event) {\n i0.ɵɵrestoreView(_r5);\n const ctx_r0 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r0.onRowMatchModeKeyDown($event));\n })(\"keydown.enter\", function ColumnFilter_div_4_ul_2_Template_li_keydown_enter_3_listener() {\n i0.ɵɵrestoreView(_r5);\n const ctx_r0 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r0.onRowClearItemClick());\n });\n i0.ɵɵtext(4);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", ctx_r0.matchModes);\n i0.ɵɵadvance(3);\n i0.ɵɵtextInterpolate(ctx_r0.noFilterLabel);\n }\n}\nfunction ColumnFilter_div_4_ng_template_3_div_0_Template(rf, ctx) {\n if (rf & 1) {\n const _r9 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 30)(1, \"p-dropdown\", 31);\n i0.ɵɵlistener(\"ngModelChange\", function ColumnFilter_div_4_ng_template_3_div_0_Template_p_dropdown_ngModelChange_1_listener($event) {\n i0.ɵɵrestoreView(_r9);\n const ctx_r0 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r0.onOperatorChange($event));\n });\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"options\", ctx_r0.operatorOptions)(\"ngModel\", ctx_r0.operator);\n }\n}\nfunction ColumnFilter_div_4_ng_template_3_div_2_p_dropdown_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r10 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"p-dropdown\", 36);\n i0.ɵɵlistener(\"ngModelChange\", function ColumnFilter_div_4_ng_template_3_div_2_p_dropdown_1_Template_p_dropdown_ngModelChange_0_listener($event) {\n i0.ɵɵrestoreView(_r10);\n const fieldConstraint_r11 = i0.ɵɵnextContext().$implicit;\n const ctx_r0 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r0.onMenuMatchModeChange($event, fieldConstraint_r11));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const fieldConstraint_r11 = i0.ɵɵnextContext().$implicit;\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"options\", ctx_r0.matchModes)(\"ngModel\", fieldConstraint_r11.matchMode);\n }\n}\nfunction ColumnFilter_div_4_ng_template_3_div_2_button_4_TrashIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"TrashIcon\", 12);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-button-icon-left\");\n }\n}\nfunction ColumnFilter_div_4_ng_template_3_div_2_button_4_2_ng_template_0_Template(rf, ctx) {}\nfunction ColumnFilter_div_4_ng_template_3_div_2_button_4_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, ColumnFilter_div_4_ng_template_3_div_2_button_4_2_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction ColumnFilter_div_4_ng_template_3_div_2_button_4_Template(rf, ctx) {\n if (rf & 1) {\n const _r12 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 37);\n i0.ɵɵlistener(\"click\", function ColumnFilter_div_4_ng_template_3_div_2_button_4_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r12);\n const fieldConstraint_r11 = i0.ɵɵnextContext().$implicit;\n const ctx_r0 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r0.removeConstraint(fieldConstraint_r11));\n });\n i0.ɵɵtemplate(1, ColumnFilter_div_4_ng_template_3_div_2_button_4_TrashIcon_1_Template, 1, 1, \"TrashIcon\", 10)(2, ColumnFilter_div_4_ng_template_3_div_2_button_4_2_Template, 1, 0, null, 14);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(4);\n i0.ɵɵproperty(\"label\", ctx_r0.removeRuleButtonLabel);\n i0.ɵɵattribute(\"aria-label\", ctx_r0.removeRuleButtonLabel);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r0.removeRuleIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.removeRuleIconTemplate);\n }\n}\nfunction ColumnFilter_div_4_ng_template_3_div_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 32);\n i0.ɵɵtemplate(1, ColumnFilter_div_4_ng_template_3_div_2_p_dropdown_1_Template, 1, 2, \"p-dropdown\", 33);\n i0.ɵɵelement(2, \"p-columnFilterFormElement\", 34);\n i0.ɵɵelementStart(3, \"div\");\n i0.ɵɵtemplate(4, ColumnFilter_div_4_ng_template_3_div_2_button_4_Template, 3, 4, \"button\", 35);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const fieldConstraint_r11 = ctx.$implicit;\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.showMatchModes && ctx_r0.matchModes);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"type\", ctx_r0.type)(\"field\", ctx_r0.field)(\"filterConstraint\", fieldConstraint_r11)(\"filterTemplate\", ctx_r0.filterTemplate)(\"placeholder\", ctx_r0.placeholder)(\"minFractionDigits\", ctx_r0.minFractionDigits)(\"maxFractionDigits\", ctx_r0.maxFractionDigits)(\"prefix\", ctx_r0.prefix)(\"suffix\", ctx_r0.suffix)(\"locale\", ctx_r0.locale)(\"localeMatcher\", ctx_r0.localeMatcher)(\"currency\", ctx_r0.currency)(\"currencyDisplay\", ctx_r0.currencyDisplay)(\"useGrouping\", ctx_r0.useGrouping);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.showRemoveIcon);\n }\n}\nfunction ColumnFilter_div_4_ng_template_3_div_3_PlusIcon_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"PlusIcon\", 12);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-button-icon-left\");\n }\n}\nfunction ColumnFilter_div_4_ng_template_3_div_3_3_ng_template_0_Template(rf, ctx) {}\nfunction ColumnFilter_div_4_ng_template_3_div_3_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, ColumnFilter_div_4_ng_template_3_div_3_3_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction ColumnFilter_div_4_ng_template_3_div_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r13 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 38)(1, \"button\", 39);\n i0.ɵɵlistener(\"click\", function ColumnFilter_div_4_ng_template_3_div_3_Template_button_click_1_listener() {\n i0.ɵɵrestoreView(_r13);\n const ctx_r0 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r0.addConstraint());\n });\n i0.ɵɵtemplate(2, ColumnFilter_div_4_ng_template_3_div_3_PlusIcon_2_Template, 1, 1, \"PlusIcon\", 10)(3, ColumnFilter_div_4_ng_template_3_div_3_3_Template, 1, 0, null, 14);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"label\", ctx_r0.addRuleButtonLabel);\n i0.ɵɵattribute(\"aria-label\", ctx_r0.addRuleButtonLabel);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r0.addRuleIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.addRuleIconTemplate);\n }\n}\nfunction ColumnFilter_div_4_ng_template_3_div_4_button_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r14 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 43, 2);\n i0.ɵɵlistener(\"click\", function ColumnFilter_div_4_ng_template_3_div_4_button_1_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r14);\n const ctx_r0 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r0.clearFilter());\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(4);\n i0.ɵɵproperty(\"label\", ctx_r0.clearButtonLabel);\n i0.ɵɵattribute(\"aria-label\", ctx_r0.clearButtonLabel);\n }\n}\nfunction ColumnFilter_div_4_ng_template_3_div_4_button_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r15 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 44);\n i0.ɵɵlistener(\"click\", function ColumnFilter_div_4_ng_template_3_div_4_button_2_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r15);\n const ctx_r0 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r0.applyFilter());\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(4);\n i0.ɵɵproperty(\"label\", ctx_r0.applyButtonLabel);\n i0.ɵɵattribute(\"aria-label\", ctx_r0.applyButtonLabel);\n }\n}\nfunction ColumnFilter_div_4_ng_template_3_div_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 40);\n i0.ɵɵtemplate(1, ColumnFilter_div_4_ng_template_3_div_4_button_1_Template, 2, 2, \"button\", 41)(2, ColumnFilter_div_4_ng_template_3_div_4_button_2_Template, 1, 2, \"button\", 42);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.showClearButton);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.showApplyButton);\n }\n}\nfunction ColumnFilter_div_4_ng_template_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, ColumnFilter_div_4_ng_template_3_div_0_Template, 2, 2, \"div\", 25);\n i0.ɵɵelementStart(1, \"div\", 26);\n i0.ɵɵtemplate(2, ColumnFilter_div_4_ng_template_3_div_2_Template, 5, 16, \"div\", 27);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(3, ColumnFilter_div_4_ng_template_3_div_3_Template, 4, 4, \"div\", 28)(4, ColumnFilter_div_4_ng_template_3_div_4_Template, 3, 2, \"div\", 29);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r0.isShowOperator);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngForOf\", ctx_r0.fieldConstraints);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.isShowAddConstraint);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.showButtons);\n }\n}\nfunction ColumnFilter_div_4_ng_container_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction ColumnFilter_div_4_Template(rf, ctx) {\n if (rf & 1) {\n const _r4 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 17);\n i0.ɵɵlistener(\"click\", function ColumnFilter_div_4_Template_div_click_0_listener() {\n i0.ɵɵrestoreView(_r4);\n const ctx_r0 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r0.onContentClick());\n })(\"@overlayAnimation.start\", function ColumnFilter_div_4_Template_div_animation_overlayAnimation_start_0_listener($event) {\n i0.ɵɵrestoreView(_r4);\n const ctx_r0 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r0.onOverlayAnimationStart($event));\n })(\"@overlayAnimation.done\", function ColumnFilter_div_4_Template_div_animation_overlayAnimation_done_0_listener($event) {\n i0.ɵɵrestoreView(_r4);\n const ctx_r0 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r0.onOverlayAnimationEnd($event));\n })(\"keydown.escape\", function ColumnFilter_div_4_Template_div_keydown_escape_0_listener() {\n i0.ɵɵrestoreView(_r4);\n const ctx_r0 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r0.onEscape());\n });\n i0.ɵɵtemplate(1, ColumnFilter_div_4_ng_container_1_Template, 1, 0, \"ng-container\", 18)(2, ColumnFilter_div_4_ul_2_Template, 5, 2, \"ul\", 19)(3, ColumnFilter_div_4_ng_template_3_Template, 5, 4, \"ng-template\", null, 1, i0.ɵɵtemplateRefExtractor)(5, ColumnFilter_div_4_ng_container_5_Template, 1, 0, \"ng-container\", 18);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const menu_r16 = i0.ɵɵreference(4);\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(10, _c34, ctx_r0.display === \"menu\"))(\"id\", ctx_r0.overlayId)(\"@overlayAnimation\", \"visible\");\n i0.ɵɵattribute(\"aria-modal\", true);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.headerTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(12, _c15, ctx_r0.field));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.display === \"row\")(\"ngIfElse\", menu_r16);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.footerTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(14, _c15, ctx_r0.field));\n }\n}\nconst _c36 = (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) => ({\n $implicit: a0,\n filterCallback: a1,\n type: a2,\n field: a3,\n filterConstraint: a4,\n placeholder: a5,\n minFractionDigits: a6,\n maxFractionDigits: a7,\n prefix: a8,\n suffix: a9,\n locale: a10,\n localeMatcher: a11,\n currency: a12,\n currencyDisplay: a13,\n useGrouping: a14,\n showButtons: a15\n});\nfunction ColumnFilterFormElement_ng_container_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction ColumnFilterFormElement_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, ColumnFilterFormElement_ng_container_0_ng_container_1_Template, 1, 0, \"ng-container\", 2);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.filterTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunctionV(2, _c36, [ctx_r0.filterConstraint.value, ctx_r0.filterCallback, ctx_r0.type, ctx_r0.field, ctx_r0.filterConstraint, ctx_r0.placeholder, ctx_r0.minFractionDigits, ctx_r0.maxFractionDigits, ctx_r0.prefix, ctx_r0.suffix, ctx_r0.locale, ctx_r0.localeMatcher, ctx_r0.currency, ctx_r0.currencyDisplay, ctx_r0.useGrouping, ctx_r0.showButtons]));\n }\n}\nfunction ColumnFilterFormElement_ng_template_1_input_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r2 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"input\", 8);\n i0.ɵɵlistener(\"input\", function ColumnFilterFormElement_ng_template_1_input_1_Template_input_input_0_listener($event) {\n i0.ɵɵrestoreView(_r2);\n const ctx_r0 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r0.onModelChange($event.target.value));\n })(\"keydown.enter\", function ColumnFilterFormElement_ng_template_1_input_1_Template_input_keydown_enter_0_listener($event) {\n i0.ɵɵrestoreView(_r2);\n const ctx_r0 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r0.onTextInputEnterKeyDown($event));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ariaLabel\", ctx_r0.ariaLabel)(\"value\", ctx_r0.filterConstraint == null ? null : ctx_r0.filterConstraint.value);\n i0.ɵɵattribute(\"placeholder\", ctx_r0.placeholder);\n }\n}\nfunction ColumnFilterFormElement_ng_template_1_p_inputNumber_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r3 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"p-inputNumber\", 9);\n i0.ɵɵlistener(\"ngModelChange\", function ColumnFilterFormElement_ng_template_1_p_inputNumber_2_Template_p_inputNumber_ngModelChange_0_listener($event) {\n i0.ɵɵrestoreView(_r3);\n const ctx_r0 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r0.onModelChange($event));\n })(\"onKeyDown\", function ColumnFilterFormElement_ng_template_1_p_inputNumber_2_Template_p_inputNumber_onKeyDown_0_listener($event) {\n i0.ɵɵrestoreView(_r3);\n const ctx_r0 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r0.onNumericInputKeyDown($event));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngModel\", ctx_r0.filterConstraint == null ? null : ctx_r0.filterConstraint.value)(\"showButtons\", ctx_r0.showButtons)(\"minFractionDigits\", ctx_r0.minFractionDigits)(\"maxFractionDigits\", ctx_r0.maxFractionDigits)(\"ariaLabel\", ctx_r0.ariaLabel)(\"prefix\", ctx_r0.prefix)(\"suffix\", ctx_r0.suffix)(\"placeholder\", ctx_r0.placeholder)(\"mode\", ctx_r0.currency ? \"currency\" : \"decimal\")(\"locale\", ctx_r0.locale)(\"localeMatcher\", ctx_r0.localeMatcher)(\"currency\", ctx_r0.currency)(\"currencyDisplay\", ctx_r0.currencyDisplay)(\"useGrouping\", ctx_r0.useGrouping);\n }\n}\nfunction ColumnFilterFormElement_ng_template_1_p_triStateCheckbox_3_Template(rf, ctx) {\n if (rf & 1) {\n const _r4 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"p-triStateCheckbox\", 10);\n i0.ɵɵlistener(\"ngModelChange\", function ColumnFilterFormElement_ng_template_1_p_triStateCheckbox_3_Template_p_triStateCheckbox_ngModelChange_0_listener($event) {\n i0.ɵɵrestoreView(_r4);\n const ctx_r0 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r0.onModelChange($event));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ariaLabel\", ctx_r0.ariaLabel)(\"ngModel\", ctx_r0.filterConstraint == null ? null : ctx_r0.filterConstraint.value);\n }\n}\nfunction ColumnFilterFormElement_ng_template_1_p_calendar_4_Template(rf, ctx) {\n if (rf & 1) {\n const _r5 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"p-calendar\", 11);\n i0.ɵɵlistener(\"ngModelChange\", function ColumnFilterFormElement_ng_template_1_p_calendar_4_Template_p_calendar_ngModelChange_0_listener($event) {\n i0.ɵɵrestoreView(_r5);\n const ctx_r0 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r0.onModelChange($event));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ariaLabel\", ctx_r0.ariaLabel)(\"placeholder\", ctx_r0.placeholder)(\"ngModel\", ctx_r0.filterConstraint == null ? null : ctx_r0.filterConstraint.value);\n }\n}\nfunction ColumnFilterFormElement_ng_template_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0, 3);\n i0.ɵɵtemplate(1, ColumnFilterFormElement_ng_template_1_input_1_Template, 1, 3, \"input\", 4)(2, ColumnFilterFormElement_ng_template_1_p_inputNumber_2_Template, 1, 14, \"p-inputNumber\", 5)(3, ColumnFilterFormElement_ng_template_1_p_triStateCheckbox_3_Template, 1, 2, \"p-triStateCheckbox\", 6)(4, ColumnFilterFormElement_ng_template_1_p_calendar_4_Template, 1, 3, \"p-calendar\", 7);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngSwitch\", ctx_r0.type);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngSwitchCase\", \"text\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngSwitchCase\", \"numeric\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngSwitchCase\", \"boolean\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngSwitchCase\", \"date\");\n }\n}\nlet TableService = /*#__PURE__*/(() => {\n class TableService {\n sortSource = new Subject();\n selectionSource = new Subject();\n contextMenuSource = new Subject();\n valueSource = new Subject();\n totalRecordsSource = new Subject();\n columnsSource = new Subject();\n sortSource$ = this.sortSource.asObservable();\n selectionSource$ = this.selectionSource.asObservable();\n contextMenuSource$ = this.contextMenuSource.asObservable();\n valueSource$ = this.valueSource.asObservable();\n totalRecordsSource$ = this.totalRecordsSource.asObservable();\n columnsSource$ = this.columnsSource.asObservable();\n onSort(sortMeta) {\n this.sortSource.next(sortMeta);\n }\n onSelectionChange() {\n this.selectionSource.next(null);\n }\n onContextMenu(data) {\n this.contextMenuSource.next(data);\n }\n onValueChange(value) {\n this.valueSource.next(value);\n }\n onTotalRecordsChange(value) {\n this.totalRecordsSource.next(value);\n }\n onColumnsChange(columns) {\n this.columnsSource.next(columns);\n }\n static ɵfac = function TableService_Factory(t) {\n return new (t || TableService)();\n };\n static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: TableService,\n factory: TableService.ɵfac\n });\n }\n return TableService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Table displays data in tabular format.\n * @group Components\n */\nlet Table = /*#__PURE__*/(() => {\n class Table {\n document;\n platformId;\n renderer;\n el;\n zone;\n tableService;\n cd;\n filterService;\n overlayService;\n config;\n domSanitizer;\n /**\n * An array of objects to represent dynamic columns that are frozen.\n * @group Props\n */\n frozenColumns;\n /**\n * An array of objects to display as frozen.\n * @group Props\n */\n frozenValue;\n /**\n * Inline style of the component.\n * @group Props\n */\n style;\n /**\n * Style class of the component.\n * @group Props\n */\n styleClass;\n /**\n * Inline style of the table.\n * @group Props\n */\n tableStyle;\n /**\n * Style class of the table.\n * @group Props\n */\n tableStyleClass;\n /**\n * When specified as true, enables the pagination.\n * @group Props\n */\n paginator;\n /**\n * Number of page links to display in paginator.\n * @group Props\n */\n pageLinks = 5;\n /**\n * Array of integer/object values to display inside rows per page dropdown of paginator\n * @group Props\n */\n rowsPerPageOptions;\n /**\n * Whether to show it even there is only one page.\n * @group Props\n */\n alwaysShowPaginator = true;\n /**\n * Position of the paginator, options are \"top\", \"bottom\" or \"both\".\n * @group Props\n */\n paginatorPosition = 'bottom';\n /**\n * Custom style class for paginator\n * @group Props\n */\n paginatorStyleClass;\n /**\n * Target element to attach the paginator dropdown overlay, valid values are \"body\" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]=\"mydiv\" for a div element having #mydiv as variable name).\n * @group Props\n */\n paginatorDropdownAppendTo;\n /**\n * Paginator dropdown height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.\n * @group Props\n */\n paginatorDropdownScrollHeight = '200px';\n /**\n * Template of the current page report element. Available placeholders are {currentPage},{totalPages},{rows},{first},{last} and {totalRecords}\n * @group Props\n */\n currentPageReportTemplate = '{currentPage} of {totalPages}';\n /**\n * Whether to display current page report.\n * @group Props\n */\n showCurrentPageReport;\n /**\n * Whether to display a dropdown to navigate to any page.\n * @group Props\n */\n showJumpToPageDropdown;\n /**\n * Whether to display a input to navigate to any page.\n * @group Props\n */\n showJumpToPageInput;\n /**\n * When enabled, icons are displayed on paginator to go first and last page.\n * @group Props\n */\n showFirstLastIcon = true;\n /**\n * Whether to show page links.\n * @group Props\n */\n showPageLinks = true;\n /**\n * Sort order to use when an unsorted column gets sorted by user interaction.\n * @group Props\n */\n defaultSortOrder = 1;\n /**\n * Defines whether sorting works on single column or on multiple columns.\n * @group Props\n */\n sortMode = 'single';\n /**\n * When true, resets paginator to first page after sorting. Available only when sortMode is set to single.\n * @group Props\n */\n resetPageOnSort = true;\n /**\n * Specifies the selection mode, valid values are \"single\" and \"multiple\".\n * @group Props\n */\n selectionMode;\n /**\n * When enabled with paginator and checkbox selection mode, the select all checkbox in the header will select all rows on the current page.\n * @group Props\n */\n selectionPageOnly;\n /**\n * Selected row with a context menu.\n * @group Props\n */\n contextMenuSelection;\n /**\n * Callback to invoke on context menu selection change.\n * @param {*} object - row data.\n * @group Emits\n */\n contextMenuSelectionChange = new EventEmitter();\n /**\n * Defines the behavior of context menu selection, in \"separate\" mode context menu updates contextMenuSelection property whereas in joint mode selection property is used instead so that when row selection is enabled, both row selection and context menu selection use the same property.\n * @group Props\n */\n contextMenuSelectionMode = 'separate';\n /**\n * A property to uniquely identify a record in data.\n * @group Props\n */\n dataKey;\n /**\n * Defines whether metaKey should be considered for the selection. On touch enabled devices, metaKeySelection is turned off automatically.\n * @group Props\n */\n metaKeySelection = false;\n /**\n * Defines if the row is selectable.\n * @group Props\n */\n rowSelectable;\n /**\n * Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity.\n * @group Props\n */\n rowTrackBy = (index, item) => item;\n /**\n * Defines if data is loaded and interacted with in lazy manner.\n * @group Props\n */\n lazy = false;\n /**\n * Whether to call lazy loading on initialization.\n * @group Props\n */\n lazyLoadOnInit = true;\n /**\n * Algorithm to define if a row is selected, valid values are \"equals\" that compares by reference and \"deepEquals\" that compares all fields.\n * @group Props\n */\n compareSelectionBy = 'deepEquals';\n /**\n * Character to use as the csv separator.\n * @group Props\n */\n csvSeparator = ',';\n /**\n * Name of the exported file.\n * @group Props\n */\n exportFilename = 'download';\n /**\n * An array of FilterMetadata objects to provide external filters.\n * @group Props\n */\n filters = {};\n /**\n * An array of fields as string to use in global filtering.\n * @group Props\n */\n globalFilterFields;\n /**\n * Delay in milliseconds before filtering the data.\n * @group Props\n */\n filterDelay = 300;\n /**\n * Locale to use in filtering. The default locale is the host environment's current locale.\n * @group Props\n */\n filterLocale;\n /**\n * Map instance to keep the expanded rows where key of the map is the data key of the row.\n * @group Props\n */\n expandedRowKeys = {};\n /**\n * Map instance to keep the rows being edited where key of the map is the data key of the row.\n * @group Props\n */\n editingRowKeys = {};\n /**\n * Whether multiple rows can be expanded at any time. Valid values are \"multiple\" and \"single\".\n * @group Props\n */\n rowExpandMode = 'multiple';\n /**\n * Enables scrollable tables.\n * @group Props\n */\n scrollable;\n /**\n * Orientation of the scrolling, options are \"vertical\", \"horizontal\" and \"both\".\n * @group Props\n * @deprecated Property is obselete since v14.2.0.\n */\n scrollDirection = 'vertical';\n /**\n * Type of the row grouping, valid values are \"subheader\" and \"rowspan\".\n * @group Props\n */\n rowGroupMode;\n /**\n * Height of the scroll viewport in fixed pixels or the \"flex\" keyword for a dynamic size.\n * @group Props\n */\n scrollHeight;\n /**\n * Whether the data should be loaded on demand during scroll.\n * @group Props\n */\n virtualScroll;\n /**\n * Height of a row to use in calculations of virtual scrolling.\n * @group Props\n */\n virtualScrollItemSize;\n /**\n * Whether to use the scroller feature. The properties of scroller component can be used like an object in it.\n * @group Props\n */\n virtualScrollOptions;\n /**\n * Threshold in milliseconds to delay lazy loading during scrolling.\n * @group Props\n */\n virtualScrollDelay = 250;\n /**\n * Width of the frozen columns container.\n * @group Props\n */\n frozenWidth;\n /**\n * Defines if the table is responsive.\n * @group Props\n * @deprecated table is always responsive with scrollable behavior.\n */\n get responsive() {\n return this._responsive;\n }\n set responsive(val) {\n this._responsive = val;\n console.warn('responsive property is deprecated as table is always responsive with scrollable behavior.');\n }\n _responsive;\n /**\n * Local ng-template varilable of a ContextMenu.\n * @group Props\n */\n contextMenu;\n /**\n * When enabled, columns can be resized using drag and drop.\n * @group Props\n */\n resizableColumns;\n /**\n * Defines whether the overall table width should change on column resize, valid values are \"fit\" and \"expand\".\n * @group Props\n */\n columnResizeMode = 'fit';\n /**\n * When enabled, columns can be reordered using drag and drop.\n * @group Props\n */\n reorderableColumns;\n /**\n * Displays a loader to indicate data load is in progress.\n * @group Props\n */\n loading;\n /**\n * The icon to show while indicating data load is in progress.\n * @group Props\n */\n loadingIcon;\n /**\n * Whether to show the loading mask when loading property is true.\n * @group Props\n */\n showLoader = true;\n /**\n * Adds hover effect to rows without the need for selectionMode. Note that tr elements that can be hovered need to have \"p-selectable-row\" class for rowHover to work.\n * @group Props\n */\n rowHover;\n /**\n * Whether to use the default sorting or a custom one using sortFunction.\n * @group Props\n */\n customSort;\n /**\n * Whether to use the initial sort badge or not.\n * @group Props\n */\n showInitialSortBadge = true;\n /**\n * Whether the cell widths scale according to their content or not. Deprecated: Table layout is always \"auto\".\n * @group Props\n */\n autoLayout;\n /**\n * Export function.\n * @group Props\n */\n exportFunction;\n /**\n * Custom export header of the column to be exported as CSV.\n * @group Props\n */\n exportHeader;\n /**\n * Unique identifier of a stateful table to use in state storage.\n * @group Props\n */\n stateKey;\n /**\n * Defines where a stateful table keeps its state, valid values are \"session\" for sessionStorage and \"local\" for localStorage.\n * @group Props\n */\n stateStorage = 'session';\n /**\n * Defines the editing mode, valid values are \"cell\" and \"row\".\n * @group Props\n */\n editMode = 'cell';\n /**\n * Field name to use in row grouping.\n * @group Props\n */\n groupRowsBy;\n /**\n * Order to sort when default row grouping is enabled.\n * @group Props\n */\n groupRowsByOrder = 1;\n /**\n * Defines the responsive mode, valid options are \"stack\" and \"scroll\".\n * @group Props\n */\n responsiveLayout = 'scroll';\n /**\n * The breakpoint to define the maximum width boundary when using stack responsive layout.\n * @group Props\n */\n breakpoint = '960px';\n /**\n * Locale to be used in paginator formatting.\n * @group Props\n */\n paginatorLocale;\n /**\n * An array of objects to display.\n * @group Props\n */\n get value() {\n return this._value;\n }\n set value(val) {\n this._value = val;\n }\n /**\n * An array of objects to represent dynamic columns.\n * @group Props\n */\n get columns() {\n return this._columns;\n }\n set columns(cols) {\n this._columns = cols;\n }\n /**\n * Index of the first row to be displayed.\n * @group Props\n */\n get first() {\n return this._first;\n }\n set first(val) {\n this._first = val;\n }\n /**\n * Number of rows to display per page.\n * @group Props\n */\n get rows() {\n return this._rows;\n }\n set rows(val) {\n this._rows = val;\n }\n /**\n * Number of total records, defaults to length of value when not defined.\n * @group Props\n */\n get totalRecords() {\n return this._totalRecords;\n }\n set totalRecords(val) {\n this._totalRecords = val;\n this.tableService.onTotalRecordsChange(this._totalRecords);\n }\n /**\n * Name of the field to sort data by default.\n * @group Props\n */\n get sortField() {\n return this._sortField;\n }\n set sortField(val) {\n this._sortField = val;\n }\n /**\n * Order to sort when default sorting is enabled.\n * @group Props\n */\n get sortOrder() {\n return this._sortOrder;\n }\n set sortOrder(val) {\n this._sortOrder = val;\n }\n /**\n * An array of SortMeta objects to sort the data by default in multiple sort mode.\n * @group Props\n */\n get multiSortMeta() {\n return this._multiSortMeta;\n }\n set multiSortMeta(val) {\n this._multiSortMeta = val;\n }\n /**\n * Selected row in single mode or an array of values in multiple mode.\n * @group Props\n */\n get selection() {\n return this._selection;\n }\n set selection(val) {\n this._selection = val;\n }\n /**\n * Whether all data is selected.\n * @group Props\n */\n get selectAll() {\n return this._selection;\n }\n set selectAll(val) {\n this._selection = val;\n }\n /**\n * Emits when the all of the items selected or unselected.\n * @param {TableSelectAllChangeEvent} event - custom all selection change event.\n * @group Emits\n */\n selectAllChange = new EventEmitter();\n /**\n * Callback to invoke on selection changed.\n * @param {any | null} value - selected data.\n * @group Emits\n */\n selectionChange = new EventEmitter();\n /**\n * Callback to invoke when a row is selected.\n * @param {TableRowSelectEvent} event - custom select event.\n * @group Emits\n */\n onRowSelect = new EventEmitter();\n /**\n * Callback to invoke when a row is unselected.\n * @param {TableRowUnSelectEvent} event - custom unselect event.\n * @group Emits\n */\n onRowUnselect = new EventEmitter();\n /**\n * Callback to invoke when pagination occurs.\n * @param {TablePageEvent} event - custom pagination event.\n * @group Emits\n */\n onPage = new EventEmitter();\n /**\n * Callback to invoke when a column gets sorted.\n * @param {Object} object - sort meta.\n * @group Emits\n */\n onSort = new EventEmitter();\n /**\n * Callback to invoke when data is filtered.\n * @param {TableFilterEvent} event - custom filtering event.\n * @group Emits\n */\n onFilter = new EventEmitter();\n /**\n * Callback to invoke when paging, sorting or filtering happens in lazy mode.\n * @param {TableLazyLoadEvent} event - custom lazy loading event.\n * @group Emits\n */\n onLazyLoad = new EventEmitter();\n /**\n * Callback to invoke when a row is expanded.\n * @param {TableRowExpandEvent} event - custom row expand event.\n * @group Emits\n */\n onRowExpand = new EventEmitter();\n /**\n * Callback to invoke when a row is collapsed.\n * @param {TableRowCollapseEvent} event - custom row collapse event.\n * @group Emits\n */\n onRowCollapse = new EventEmitter();\n /**\n * Callback to invoke when a row is selected with right click.\n * @param {TableContextMenuSelectEvent} event - custom context menu select event.\n * @group Emits\n */\n onContextMenuSelect = new EventEmitter();\n /**\n * Callback to invoke when a column is resized.\n * @param {TableColResizeEvent} event - custom column resize event.\n * @group Emits\n */\n onColResize = new EventEmitter();\n /**\n * Callback to invoke when a column is reordered.\n * @param {TableColumnReorderEvent} event - custom column reorder event.\n * @group Emits\n */\n onColReorder = new EventEmitter();\n /**\n * Callback to invoke when a row is reordered.\n * @param {TableRowReorderEvent} event - custom row reorder event.\n * @group Emits\n */\n onRowReorder = new EventEmitter();\n /**\n * Callback to invoke when a cell switches to edit mode.\n * @param {TableEditInitEvent} event - custom edit init event.\n * @group Emits\n */\n onEditInit = new EventEmitter();\n /**\n * Callback to invoke when cell edit is completed.\n * @param {TableEditCompleteEvent} event - custom edit complete event.\n * @group Emits\n */\n onEditComplete = new EventEmitter();\n /**\n * Callback to invoke when cell edit is cancelled with escape key.\n * @param {TableEditCancelEvent} event - custom edit cancel event.\n * @group Emits\n */\n onEditCancel = new EventEmitter();\n /**\n * Callback to invoke when state of header checkbox changes.\n * @param {TableHeaderCheckboxToggleEvent} event - custom header checkbox event.\n * @group Emits\n */\n onHeaderCheckboxToggle = new EventEmitter();\n /**\n * A function to implement custom sorting, refer to sorting section for details.\n * @param {any} any - sort meta.\n * @group Emits\n */\n sortFunction = new EventEmitter();\n /**\n * Callback to invoke on pagination.\n * @param {number} number - first element.\n * @group Emits\n */\n firstChange = new EventEmitter();\n /**\n * Callback to invoke on rows change.\n * @param {number} number - Row count.\n * @group Emits\n */\n rowsChange = new EventEmitter();\n /**\n * Callback to invoke table state is saved.\n * @param {TableState} object - table state.\n * @group Emits\n */\n onStateSave = new EventEmitter();\n /**\n * Callback to invoke table state is restored.\n * @param {TableState} object - table state.\n * @group Emits\n */\n onStateRestore = new EventEmitter();\n containerViewChild;\n resizeHelperViewChild;\n reorderIndicatorUpViewChild;\n reorderIndicatorDownViewChild;\n wrapperViewChild;\n tableViewChild;\n tableHeaderViewChild;\n tableFooterViewChild;\n scroller;\n templates;\n /**\n * Indicates the height of rows to be scrolled.\n * @group Props\n * @deprecated use virtualScrollItemSize property instead.\n */\n get virtualRowHeight() {\n return this._virtualRowHeight;\n }\n set virtualRowHeight(val) {\n this._virtualRowHeight = val;\n console.warn('The virtualRowHeight property is deprecated.');\n }\n _virtualRowHeight = 28;\n _value = [];\n _columns;\n _totalRecords = 0;\n _first = 0;\n _rows;\n filteredValue;\n headerTemplate;\n headerGroupedTemplate;\n bodyTemplate;\n loadingBodyTemplate;\n captionTemplate;\n footerTemplate;\n footerGroupedTemplate;\n summaryTemplate;\n colGroupTemplate;\n expandedRowTemplate;\n groupHeaderTemplate;\n groupFooterTemplate;\n frozenExpandedRowTemplate;\n frozenHeaderTemplate;\n frozenBodyTemplate;\n frozenFooterTemplate;\n frozenColGroupTemplate;\n emptyMessageTemplate;\n paginatorLeftTemplate;\n paginatorRightTemplate;\n paginatorDropdownItemTemplate;\n loadingIconTemplate;\n reorderIndicatorUpIconTemplate;\n reorderIndicatorDownIconTemplate;\n sortIconTemplate;\n checkboxIconTemplate;\n headerCheckboxIconTemplate;\n paginatorDropdownIconTemplate;\n paginatorFirstPageLinkIconTemplate;\n paginatorLastPageLinkIconTemplate;\n paginatorPreviousPageLinkIconTemplate;\n paginatorNextPageLinkIconTemplate;\n selectionKeys = {};\n lastResizerHelperX;\n reorderIconWidth;\n reorderIconHeight;\n draggedColumn;\n draggedRowIndex;\n droppedRowIndex;\n rowDragging;\n dropPosition;\n editingCell;\n editingCellData;\n editingCellField;\n editingCellRowIndex;\n selfClick;\n documentEditListener;\n _multiSortMeta;\n _sortField;\n _sortOrder = 1;\n preventSelectionSetterPropagation;\n _selection;\n _selectAll = null;\n anchorRowIndex;\n rangeRowIndex;\n filterTimeout;\n initialized;\n rowTouched;\n restoringSort;\n restoringFilter;\n stateRestored;\n columnOrderStateRestored;\n columnWidthsState;\n tableWidthState;\n overlaySubscription;\n resizeColumnElement;\n columnResizing = false;\n rowGroupHeaderStyleObject = {};\n id = UniqueComponentId();\n styleElement;\n responsiveStyleElement;\n window;\n constructor(document, platformId, renderer, el, zone, tableService, cd, filterService, overlayService, config, domSanitizer) {\n this.document = document;\n this.platformId = platformId;\n this.renderer = renderer;\n this.el = el;\n this.zone = zone;\n this.tableService = tableService;\n this.cd = cd;\n this.filterService = filterService;\n this.overlayService = overlayService;\n this.config = config;\n this.domSanitizer = domSanitizer;\n this.window = this.document.defaultView;\n }\n ngOnInit() {\n if (this.lazy && this.lazyLoadOnInit) {\n if (!this.virtualScroll) {\n this.onLazyLoad.emit(this.createLazyLoadMetadata());\n }\n if (this.restoringFilter) {\n this.restoringFilter = false;\n }\n }\n if (this.responsiveLayout === 'stack') {\n this.createResponsiveStyle();\n }\n this.initialized = true;\n }\n ngAfterContentInit() {\n this.templates.forEach(item => {\n switch (item.getType()) {\n case 'caption':\n this.captionTemplate = item.template;\n break;\n case 'header':\n this.headerTemplate = item.template;\n break;\n case 'headergrouped':\n this.headerGroupedTemplate = item.template;\n break;\n case 'body':\n this.bodyTemplate = item.template;\n break;\n case 'loadingbody':\n this.loadingBodyTemplate = item.template;\n break;\n case 'footer':\n this.footerTemplate = item.template;\n break;\n case 'footergrouped':\n this.footerGroupedTemplate = item.template;\n break;\n case 'summary':\n this.summaryTemplate = item.template;\n break;\n case 'colgroup':\n this.colGroupTemplate = item.template;\n break;\n case 'rowexpansion':\n this.expandedRowTemplate = item.template;\n break;\n case 'groupheader':\n this.groupHeaderTemplate = item.template;\n break;\n case 'groupfooter':\n this.groupFooterTemplate = item.template;\n break;\n case 'frozenheader':\n this.frozenHeaderTemplate = item.template;\n break;\n case 'frozenbody':\n this.frozenBodyTemplate = item.template;\n break;\n case 'frozenfooter':\n this.frozenFooterTemplate = item.template;\n break;\n case 'frozencolgroup':\n this.frozenColGroupTemplate = item.template;\n break;\n case 'frozenrowexpansion':\n this.frozenExpandedRowTemplate = item.template;\n break;\n case 'emptymessage':\n this.emptyMessageTemplate = item.template;\n break;\n case 'paginatorleft':\n this.paginatorLeftTemplate = item.template;\n break;\n case 'paginatorright':\n this.paginatorRightTemplate = item.template;\n break;\n case 'paginatordropdownicon':\n this.paginatorDropdownIconTemplate = item.template;\n break;\n case 'paginatordropdownitem':\n this.paginatorDropdownItemTemplate = item.template;\n break;\n case 'paginatorfirstpagelinkicon':\n this.paginatorFirstPageLinkIconTemplate = item.template;\n break;\n case 'paginatorlastpagelinkicon':\n this.paginatorLastPageLinkIconTemplate = item.template;\n break;\n case 'paginatorpreviouspagelinkicon':\n this.paginatorPreviousPageLinkIconTemplate = item.template;\n break;\n case 'paginatornextpagelinkicon':\n this.paginatorNextPageLinkIconTemplate = item.template;\n break;\n case 'loadingicon':\n this.loadingIconTemplate = item.template;\n break;\n case 'reorderindicatorupicon':\n this.reorderIndicatorUpIconTemplate = item.template;\n break;\n case 'reorderindicatordownicon':\n this.reorderIndicatorDownIconTemplate = item.template;\n break;\n case 'sorticon':\n this.sortIconTemplate = item.template;\n break;\n case 'checkboxicon':\n this.checkboxIconTemplate = item.template;\n break;\n case 'headercheckboxicon':\n this.headerCheckboxIconTemplate = item.template;\n break;\n }\n });\n }\n ngAfterViewInit() {\n if (isPlatformBrowser(this.platformId)) {\n if (this.isStateful() && this.resizableColumns) {\n this.restoreColumnWidths();\n }\n }\n }\n ngOnChanges(simpleChange) {\n if (simpleChange.value) {\n if (this.isStateful() && !this.stateRestored && isPlatformBrowser(this.platformId)) {\n this.restoreState();\n }\n this._value = simpleChange.value.currentValue;\n if (!this.lazy) {\n this.totalRecords = this._value ? this._value.length : 0;\n if (this.sortMode == 'single' && (this.sortField || this.groupRowsBy)) this.sortSingle();else if (this.sortMode == 'multiple' && (this.multiSortMeta || this.groupRowsBy)) this.sortMultiple();else if (this.hasFilter())\n //sort already filters\n this._filter();\n }\n this.tableService.onValueChange(simpleChange.value.currentValue);\n }\n if (simpleChange.columns) {\n if (!this.isStateful()) {\n this._columns = simpleChange.columns.currentValue;\n this.tableService.onColumnsChange(simpleChange.columns.currentValue);\n }\n if (this._columns && this.isStateful() && this.reorderableColumns && !this.columnOrderStateRestored) {\n this.restoreColumnOrder();\n this.tableService.onColumnsChange(this._columns);\n }\n }\n if (simpleChange.sortField) {\n this._sortField = simpleChange.sortField.currentValue;\n //avoid triggering lazy load prior to lazy initialization at onInit\n if (!this.lazy || this.initialized) {\n if (this.sortMode === 'single') {\n this.sortSingle();\n }\n }\n }\n if (simpleChange.groupRowsBy) {\n //avoid triggering lazy load prior to lazy initialization at onInit\n if (!this.lazy || this.initialized) {\n if (this.sortMode === 'single') {\n this.sortSingle();\n }\n }\n }\n if (simpleChange.sortOrder) {\n this._sortOrder = simpleChange.sortOrder.currentValue;\n //avoid triggering lazy load prior to lazy initialization at onInit\n if (!this.lazy || this.initialized) {\n if (this.sortMode === 'single') {\n this.sortSingle();\n }\n }\n }\n if (simpleChange.groupRowsByOrder) {\n //avoid triggering lazy load prior to lazy initialization at onInit\n if (!this.lazy || this.initialized) {\n if (this.sortMode === 'single') {\n this.sortSingle();\n }\n }\n }\n if (simpleChange.multiSortMeta) {\n this._multiSortMeta = simpleChange.multiSortMeta.currentValue;\n if (this.sortMode === 'multiple' && (this.initialized || !this.lazy && !this.virtualScroll)) {\n this.sortMultiple();\n }\n }\n if (simpleChange.selection) {\n this._selection = simpleChange.selection.currentValue;\n if (!this.preventSelectionSetterPropagation) {\n this.updateSelectionKeys();\n this.tableService.onSelectionChange();\n }\n this.preventSelectionSetterPropagation = false;\n }\n if (simpleChange.selectAll) {\n this._selectAll = simpleChange.selectAll.currentValue;\n if (!this.preventSelectionSetterPropagation) {\n this.updateSelectionKeys();\n this.tableService.onSelectionChange();\n if (this.isStateful()) {\n this.saveState();\n }\n }\n this.preventSelectionSetterPropagation = false;\n }\n }\n get processedData() {\n return this.filteredValue || this.value || [];\n }\n _initialColWidths;\n dataToRender(data) {\n const _data = data || this.processedData;\n if (_data && this.paginator) {\n const first = this.lazy ? 0 : this.first;\n return _data.slice(first, first + this.rows);\n }\n return _data;\n }\n updateSelectionKeys() {\n if (this.dataKey && this._selection) {\n this.selectionKeys = {};\n if (Array.isArray(this._selection)) {\n for (let data of this._selection) {\n this.selectionKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;\n }\n } else {\n this.selectionKeys[String(ObjectUtils.resolveFieldData(this._selection, this.dataKey))] = 1;\n }\n }\n }\n onPageChange(event) {\n this.first = event.first;\n this.rows = event.rows;\n this.onPage.emit({\n first: this.first,\n rows: this.rows\n });\n if (this.lazy) {\n this.onLazyLoad.emit(this.createLazyLoadMetadata());\n }\n this.firstChange.emit(this.first);\n this.rowsChange.emit(this.rows);\n this.tableService.onValueChange(this.value);\n if (this.isStateful()) {\n this.saveState();\n }\n this.anchorRowIndex = null;\n if (this.scrollable) {\n this.resetScrollTop();\n }\n }\n sort(event) {\n let originalEvent = event.originalEvent;\n if (this.sortMode === 'single') {\n this._sortOrder = this.sortField === event.field ? this.sortOrder * -1 : this.defaultSortOrder;\n this._sortField = event.field;\n if (this.resetPageOnSort) {\n this._first = 0;\n this.firstChange.emit(this._first);\n if (this.scrollable) {\n this.resetScrollTop();\n }\n }\n this.sortSingle();\n }\n if (this.sortMode === 'multiple') {\n let metaKey = originalEvent.metaKey || originalEvent.ctrlKey;\n let sortMeta = this.getSortMeta(event.field);\n if (sortMeta) {\n if (!metaKey) {\n this._multiSortMeta = [{\n field: event.field,\n order: sortMeta.order * -1\n }];\n if (this.resetPageOnSort) {\n this._first = 0;\n this.firstChange.emit(this._first);\n if (this.scrollable) {\n this.resetScrollTop();\n }\n }\n } else {\n sortMeta.order = sortMeta.order * -1;\n }\n } else {\n if (!metaKey || !this.multiSortMeta) {\n this._multiSortMeta = [];\n if (this.resetPageOnSort) {\n this._first = 0;\n this.firstChange.emit(this._first);\n }\n }\n this._multiSortMeta.push({\n field: event.field,\n order: this.defaultSortOrder\n });\n }\n this.sortMultiple();\n }\n if (this.isStateful()) {\n this.saveState();\n }\n this.anchorRowIndex = null;\n }\n sortSingle() {\n let field = this.sortField || this.groupRowsBy;\n let order = this.sortField ? this.sortOrder : this.groupRowsByOrder;\n if (this.groupRowsBy && this.sortField && this.groupRowsBy !== this.sortField) {\n this._multiSortMeta = [this.getGroupRowsMeta(), {\n field: this.sortField,\n order: this.sortOrder\n }];\n this.sortMultiple();\n return;\n }\n if (field && order) {\n if (this.restoringSort) {\n this.restoringSort = false;\n }\n if (this.lazy) {\n this.onLazyLoad.emit(this.createLazyLoadMetadata());\n } else if (this.value) {\n if (this.customSort) {\n this.sortFunction.emit({\n data: this.value,\n mode: this.sortMode,\n field: field,\n order: order\n });\n } else {\n this.value.sort((data1, data2) => {\n let value1 = ObjectUtils.resolveFieldData(data1, field);\n let value2 = ObjectUtils.resolveFieldData(data2, field);\n let result = null;\n if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2);else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;\n return order * result;\n });\n this._value = [...this.value];\n }\n if (this.hasFilter()) {\n this._filter();\n }\n }\n let sortMeta = {\n field: field,\n order: order\n };\n this.onSort.emit(sortMeta);\n this.tableService.onSort(sortMeta);\n }\n }\n sortMultiple() {\n if (this.groupRowsBy) {\n if (!this._multiSortMeta) this._multiSortMeta = [this.getGroupRowsMeta()];else if (this.multiSortMeta[0].field !== this.groupRowsBy) this._multiSortMeta = [this.getGroupRowsMeta(), ...this._multiSortMeta];\n }\n if (this.multiSortMeta) {\n if (this.lazy) {\n this.onLazyLoad.emit(this.createLazyLoadMetadata());\n } else if (this.value) {\n if (this.customSort) {\n this.sortFunction.emit({\n data: this.value,\n mode: this.sortMode,\n multiSortMeta: this.multiSortMeta\n });\n } else {\n this.value.sort((data1, data2) => {\n return this.multisortField(data1, data2, this.multiSortMeta, 0);\n });\n this._value = [...this.value];\n }\n if (this.hasFilter()) {\n this._filter();\n }\n }\n this.onSort.emit({\n multisortmeta: this.multiSortMeta\n });\n this.tableService.onSort(this.multiSortMeta);\n }\n }\n multisortField(data1, data2, multiSortMeta, index) {\n const value1 = ObjectUtils.resolveFieldData(data1, multiSortMeta[index].field);\n const value2 = ObjectUtils.resolveFieldData(data2, multiSortMeta[index].field);\n if (ObjectUtils.compare(value1, value2, this.filterLocale) === 0) {\n return multiSortMeta.length - 1 > index ? this.multisortField(data1, data2, multiSortMeta, index + 1) : 0;\n }\n return this.compareValuesOnSort(value1, value2, multiSortMeta[index].order);\n }\n compareValuesOnSort(value1, value2, order) {\n return ObjectUtils.sort(value1, value2, order, this.filterLocale, this.sortOrder);\n }\n getSortMeta(field) {\n if (this.multiSortMeta && this.multiSortMeta.length) {\n for (let i = 0; i < this.multiSortMeta.length; i++) {\n if (this.multiSortMeta[i].field === field) {\n return this.multiSortMeta[i];\n }\n }\n }\n return null;\n }\n isSorted(field) {\n if (this.sortMode === 'single') {\n return this.sortField && this.sortField === field;\n } else if (this.sortMode === 'multiple') {\n let sorted = false;\n if (this.multiSortMeta) {\n for (let i = 0; i < this.multiSortMeta.length; i++) {\n if (this.multiSortMeta[i].field == field) {\n sorted = true;\n break;\n }\n }\n }\n return sorted;\n }\n }\n handleRowClick(event) {\n let target = event.originalEvent.target;\n let targetNode = target.nodeName;\n let parentNode = target.parentElement && target.parentElement.nodeName;\n if (targetNode == 'INPUT' || targetNode == 'BUTTON' || targetNode == 'A' || parentNode == 'INPUT' || parentNode == 'BUTTON' || parentNode == 'A' || DomHandler.hasClass(event.originalEvent.target, 'p-clickable')) {\n return;\n }\n if (this.selectionMode) {\n let rowData = event.rowData;\n let rowIndex = event.rowIndex;\n this.preventSelectionSetterPropagation = true;\n if (this.isMultipleSelectionMode() && event.originalEvent.shiftKey && this.anchorRowIndex != null) {\n DomHandler.clearSelection();\n if (this.rangeRowIndex != null) {\n this.clearSelectionRange(event.originalEvent);\n }\n this.rangeRowIndex = rowIndex;\n this.selectRange(event.originalEvent, rowIndex);\n } else {\n let selected = this.isSelected(rowData);\n if (!selected && !this.isRowSelectable(rowData, rowIndex)) {\n return;\n }\n let metaSelection = this.rowTouched ? false : this.metaKeySelection;\n let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(rowData, this.dataKey)) : null;\n this.anchorRowIndex = rowIndex;\n this.rangeRowIndex = rowIndex;\n if (metaSelection) {\n let metaKey = event.originalEvent.metaKey || event.originalEvent.ctrlKey;\n if (selected && metaKey) {\n if (this.isSingleSelectionMode()) {\n this._selection = null;\n this.selectionKeys = {};\n this.selectionChange.emit(null);\n } else {\n let selectionIndex = this.findIndexInSelection(rowData);\n this._selection = this.selection.filter((val, i) => i != selectionIndex);\n this.selectionChange.emit(this.selection);\n if (dataKeyValue) {\n delete this.selectionKeys[dataKeyValue];\n }\n }\n this.onRowUnselect.emit({\n originalEvent: event.originalEvent,\n data: rowData,\n type: 'row'\n });\n } else {\n if (this.isSingleSelectionMode()) {\n this._selection = rowData;\n this.selectionChange.emit(rowData);\n if (dataKeyValue) {\n this.selectionKeys = {};\n this.selectionKeys[dataKeyValue] = 1;\n }\n } else if (this.isMultipleSelectionMode()) {\n if (metaKey) {\n this._selection = this.selection || [];\n } else {\n this._selection = [];\n this.selectionKeys = {};\n }\n this._selection = [...this.selection, rowData];\n this.selectionChange.emit(this.selection);\n if (dataKeyValue) {\n this.selectionKeys[dataKeyValue] = 1;\n }\n }\n this.onRowSelect.emit({\n originalEvent: event.originalEvent,\n data: rowData,\n type: 'row',\n index: rowIndex\n });\n }\n } else {\n if (this.selectionMode === 'single') {\n if (selected) {\n this._selection = null;\n this.selectionKeys = {};\n this.selectionChange.emit(this.selection);\n this.onRowUnselect.emit({\n originalEvent: event.originalEvent,\n data: rowData,\n type: 'row',\n index: rowIndex\n });\n } else {\n this._selection = rowData;\n this.selectionChange.emit(this.selection);\n this.onRowSelect.emit({\n originalEvent: event.originalEvent,\n data: rowData,\n type: 'row',\n index: rowIndex\n });\n if (dataKeyValue) {\n this.selectionKeys = {};\n this.selectionKeys[dataKeyValue] = 1;\n }\n }\n } else if (this.selectionMode === 'multiple') {\n if (selected) {\n let selectionIndex = this.findIndexInSelection(rowData);\n this._selection = this.selection.filter((val, i) => i != selectionIndex);\n this.selectionChange.emit(this.selection);\n this.onRowUnselect.emit({\n originalEvent: event.originalEvent,\n data: rowData,\n type: 'row',\n index: rowIndex\n });\n if (dataKeyValue) {\n delete this.selectionKeys[dataKeyValue];\n }\n } else {\n this._selection = this.selection ? [...this.selection, rowData] : [rowData];\n this.selectionChange.emit(this.selection);\n this.onRowSelect.emit({\n originalEvent: event.originalEvent,\n data: rowData,\n type: 'row',\n index: rowIndex\n });\n if (dataKeyValue) {\n this.selectionKeys[dataKeyValue] = 1;\n }\n }\n }\n }\n }\n this.tableService.onSelectionChange();\n if (this.isStateful()) {\n this.saveState();\n }\n }\n this.rowTouched = false;\n }\n handleRowTouchEnd(event) {\n this.rowTouched = true;\n }\n handleRowRightClick(event) {\n if (this.contextMenu) {\n const rowData = event.rowData;\n const rowIndex = event.rowIndex;\n if (this.contextMenuSelectionMode === 'separate') {\n this.contextMenuSelection = rowData;\n this.contextMenuSelectionChange.emit(rowData);\n this.onContextMenuSelect.emit({\n originalEvent: event.originalEvent,\n data: rowData,\n index: event.rowIndex\n });\n this.contextMenu.show(event.originalEvent);\n this.tableService.onContextMenu(rowData);\n } else if (this.contextMenuSelectionMode === 'joint') {\n this.preventSelectionSetterPropagation = true;\n let selected = this.isSelected(rowData);\n let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(rowData, this.dataKey)) : null;\n if (!selected) {\n if (!this.isRowSelectable(rowData, rowIndex)) {\n return;\n }\n if (this.isSingleSelectionMode()) {\n this.selection = rowData;\n this.selectionChange.emit(rowData);\n if (dataKeyValue) {\n this.selectionKeys = {};\n this.selectionKeys[dataKeyValue] = 1;\n }\n } else if (this.isMultipleSelectionMode()) {\n this._selection = this.selection ? [...this.selection, rowData] : [rowData];\n this.selectionChange.emit(this.selection);\n if (dataKeyValue) {\n this.selectionKeys[dataKeyValue] = 1;\n }\n }\n }\n this.tableService.onSelectionChange();\n this.contextMenu.show(event.originalEvent);\n this.onContextMenuSelect.emit({\n originalEvent: event,\n data: rowData,\n index: event.rowIndex\n });\n }\n }\n }\n selectRange(event, rowIndex, isMetaKeySelection) {\n let rangeStart, rangeEnd;\n if (this.anchorRowIndex > rowIndex) {\n rangeStart = rowIndex;\n rangeEnd = this.anchorRowIndex;\n } else if (this.anchorRowIndex < rowIndex) {\n rangeStart = this.anchorRowIndex;\n rangeEnd = rowIndex;\n } else {\n rangeStart = rowIndex;\n rangeEnd = rowIndex;\n }\n if (this.lazy && this.paginator) {\n rangeStart -= this.first;\n rangeEnd -= this.first;\n }\n let rangeRowsData = [];\n for (let i = rangeStart; i <= rangeEnd; i++) {\n let rangeRowData = this.filteredValue ? this.filteredValue[i] : this.value[i];\n if (!this.isSelected(rangeRowData) && !isMetaKeySelection) {\n if (!this.isRowSelectable(rangeRowData, rowIndex)) {\n continue;\n }\n rangeRowsData.push(rangeRowData);\n this._selection = [...this.selection, rangeRowData];\n let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(rangeRowData, this.dataKey)) : null;\n if (dataKeyValue) {\n this.selectionKeys[dataKeyValue] = 1;\n }\n }\n }\n this.selectionChange.emit(this.selection);\n this.onRowSelect.emit({\n originalEvent: event,\n data: rangeRowsData,\n type: 'row'\n });\n }\n clearSelectionRange(event) {\n let rangeStart, rangeEnd;\n let rangeRowIndex = this.rangeRowIndex;\n let anchorRowIndex = this.anchorRowIndex;\n if (rangeRowIndex > anchorRowIndex) {\n rangeStart = this.anchorRowIndex;\n rangeEnd = this.rangeRowIndex;\n } else if (rangeRowIndex < anchorRowIndex) {\n rangeStart = this.rangeRowIndex;\n rangeEnd = this.anchorRowIndex;\n } else {\n rangeStart = this.rangeRowIndex;\n rangeEnd = this.rangeRowIndex;\n }\n for (let i = rangeStart; i <= rangeEnd; i++) {\n let rangeRowData = this.value[i];\n let selectionIndex = this.findIndexInSelection(rangeRowData);\n this._selection = this.selection.filter((val, i) => i != selectionIndex);\n let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(rangeRowData, this.dataKey)) : null;\n if (dataKeyValue) {\n delete this.selectionKeys[dataKeyValue];\n }\n this.onRowUnselect.emit({\n originalEvent: event,\n data: rangeRowData,\n type: 'row'\n });\n }\n }\n isSelected(rowData) {\n if (rowData && this.selection) {\n if (this.dataKey) {\n return this.selectionKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined;\n } else {\n if (Array.isArray(this.selection)) return this.findIndexInSelection(rowData) > -1;else return this.equals(rowData, this.selection);\n }\n }\n return false;\n }\n findIndexInSelection(rowData) {\n let index = -1;\n if (this.selection && this.selection.length) {\n for (let i = 0; i < this.selection.length; i++) {\n if (this.equals(rowData, this.selection[i])) {\n index = i;\n break;\n }\n }\n }\n return index;\n }\n isRowSelectable(data, index) {\n if (this.rowSelectable && !this.rowSelectable({\n data,\n index\n })) {\n return false;\n }\n return true;\n }\n toggleRowWithRadio(event, rowData) {\n this.preventSelectionSetterPropagation = true;\n if (this.selection != rowData) {\n if (!this.isRowSelectable(rowData, event.rowIndex)) {\n return;\n }\n this._selection = rowData;\n this.selectionChange.emit(this.selection);\n this.onRowSelect.emit({\n originalEvent: event.originalEvent,\n index: event.rowIndex,\n data: rowData,\n type: 'radiobutton'\n });\n if (this.dataKey) {\n this.selectionKeys = {};\n this.selectionKeys[String(ObjectUtils.resolveFieldData(rowData, this.dataKey))] = 1;\n }\n } else {\n this._selection = null;\n this.selectionChange.emit(this.selection);\n this.onRowUnselect.emit({\n originalEvent: event.originalEvent,\n index: event.rowIndex,\n data: rowData,\n type: 'radiobutton'\n });\n }\n this.tableService.onSelectionChange();\n if (this.isStateful()) {\n this.saveState();\n }\n }\n toggleRowWithCheckbox(event, rowData) {\n this.selection = this.selection || [];\n let selected = this.isSelected(rowData);\n let dataKeyValue = this.dataKey ? String(ObjectUtils.resolveFieldData(rowData, this.dataKey)) : null;\n this.preventSelectionSetterPropagation = true;\n if (selected) {\n let selectionIndex = this.findIndexInSelection(rowData);\n this._selection = this.selection.filter((val, i) => i != selectionIndex);\n this.selectionChange.emit(this.selection);\n this.onRowUnselect.emit({\n originalEvent: event.originalEvent,\n index: event.rowIndex,\n data: rowData,\n type: 'checkbox'\n });\n if (dataKeyValue) {\n delete this.selectionKeys[dataKeyValue];\n }\n } else {\n if (!this.isRowSelectable(rowData, event.rowIndex)) {\n return;\n }\n this._selection = this.selection ? [...this.selection, rowData] : [rowData];\n this.selectionChange.emit(this.selection);\n this.onRowSelect.emit({\n originalEvent: event.originalEvent,\n index: event.rowIndex,\n data: rowData,\n type: 'checkbox'\n });\n if (dataKeyValue) {\n this.selectionKeys[dataKeyValue] = 1;\n }\n }\n this.tableService.onSelectionChange();\n if (this.isStateful()) {\n this.saveState();\n }\n }\n toggleRowsWithCheckbox(event, check) {\n if (this._selectAll !== null) {\n this.selectAllChange.emit({\n originalEvent: event,\n checked: check\n });\n } else {\n const data = this.selectionPageOnly ? this.dataToRender(this.processedData) : this.processedData;\n let selection = this.selectionPageOnly && this._selection ? this._selection.filter(s => !data.some(d => this.equals(s, d))) : [];\n if (check) {\n selection = this.frozenValue ? [...selection, ...this.frozenValue, ...data] : [...selection, ...data];\n selection = this.rowSelectable ? selection.filter((data, index) => this.rowSelectable({\n data,\n index\n })) : selection;\n }\n this._selection = selection;\n this.preventSelectionSetterPropagation = true;\n this.updateSelectionKeys();\n this.selectionChange.emit(this._selection);\n this.tableService.onSelectionChange();\n this.onHeaderCheckboxToggle.emit({\n originalEvent: event,\n checked: check\n });\n if (this.isStateful()) {\n this.saveState();\n }\n }\n }\n equals(data1, data2) {\n return this.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.dataKey);\n }\n /* Legacy Filtering for custom elements */\n filter(value, field, matchMode) {\n if (this.filterTimeout) {\n clearTimeout(this.filterTimeout);\n }\n if (!this.isFilterBlank(value)) {\n this.filters[field] = {\n value: value,\n matchMode: matchMode\n };\n } else if (this.filters[field]) {\n delete this.filters[field];\n }\n this.filterTimeout = setTimeout(() => {\n this._filter();\n this.filterTimeout = null;\n }, this.filterDelay);\n this.anchorRowIndex = null;\n }\n filterGlobal(value, matchMode) {\n this.filter(value, 'global', matchMode);\n }\n isFilterBlank(filter) {\n if (filter !== null && filter !== undefined) {\n if (typeof filter === 'string' && filter.trim().length == 0 || Array.isArray(filter) && filter.length == 0) return true;else return false;\n }\n return true;\n }\n _filter() {\n if (!this.restoringFilter) {\n this.first = 0;\n this.firstChange.emit(this.first);\n }\n if (this.lazy) {\n this.onLazyLoad.emit(this.createLazyLoadMetadata());\n } else {\n if (!this.value) {\n return;\n }\n if (!this.hasFilter()) {\n this.filteredValue = null;\n if (this.paginator) {\n this.totalRecords = this.value ? this.value.length : 0;\n }\n } else {\n let globalFilterFieldsArray;\n if (this.filters['global']) {\n if (!this.columns && !this.globalFilterFields) throw new Error('Global filtering requires dynamic columns or globalFilterFields to be defined.');else globalFilterFieldsArray = this.globalFilterFields || this.columns;\n }\n this.filteredValue = [];\n for (let i = 0; i < this.value.length; i++) {\n let localMatch = true;\n let globalMatch = false;\n let localFiltered = false;\n for (let prop in this.filters) {\n if (this.filters.hasOwnProperty(prop) && prop !== 'global') {\n localFiltered = true;\n let filterField = prop;\n let filterMeta = this.filters[filterField];\n if (Array.isArray(filterMeta)) {\n for (let meta of filterMeta) {\n localMatch = this.executeLocalFilter(filterField, this.value[i], meta);\n if (meta.operator === FilterOperator.OR && localMatch || meta.operator === FilterOperator.AND && !localMatch) {\n break;\n }\n }\n } else {\n localMatch = this.executeLocalFilter(filterField, this.value[i], filterMeta);\n }\n if (!localMatch) {\n break;\n }\n }\n }\n if (this.filters['global'] && !globalMatch && globalFilterFieldsArray) {\n for (let j = 0; j < globalFilterFieldsArray.length; j++) {\n let globalFilterField = globalFilterFieldsArray[j].field || globalFilterFieldsArray[j];\n globalMatch = this.filterService.filters[this.filters['global'].matchMode](ObjectUtils.resolveFieldData(this.value[i], globalFilterField), this.filters['global'].value, this.filterLocale);\n if (globalMatch) {\n break;\n }\n }\n }\n let matches;\n if (this.filters['global']) {\n matches = localFiltered ? localFiltered && localMatch && globalMatch : globalMatch;\n } else {\n matches = localFiltered && localMatch;\n }\n if (matches) {\n this.filteredValue.push(this.value[i]);\n }\n }\n if (this.filteredValue.length === this.value.length) {\n this.filteredValue = null;\n }\n if (this.paginator) {\n this.totalRecords = this.filteredValue ? this.filteredValue.length : this.value ? this.value.length : 0;\n }\n }\n }\n this.onFilter.emit({\n filters: this.filters,\n filteredValue: this.filteredValue || this.value\n });\n this.tableService.onValueChange(this.value);\n if (this.isStateful() && !this.restoringFilter) {\n this.saveState();\n }\n if (this.restoringFilter) {\n this.restoringFilter = false;\n }\n this.cd.markForCheck();\n if (this.scrollable) {\n this.resetScrollTop();\n }\n }\n executeLocalFilter(field, rowData, filterMeta) {\n let filterValue = filterMeta.value;\n let filterMatchMode = filterMeta.matchMode || FilterMatchMode.STARTS_WITH;\n let dataFieldValue = ObjectUtils.resolveFieldData(rowData, field);\n let filterConstraint = this.filterService.filters[filterMatchMode];\n return filterConstraint(dataFieldValue, filterValue, this.filterLocale);\n }\n hasFilter() {\n let empty = true;\n for (let prop in this.filters) {\n if (this.filters.hasOwnProperty(prop)) {\n empty = false;\n break;\n }\n }\n return !empty;\n }\n createLazyLoadMetadata() {\n return {\n first: this.first,\n rows: this.rows,\n sortField: this.sortField,\n sortOrder: this.sortOrder,\n filters: this.filters,\n globalFilter: this.filters && this.filters['global'] ? this.filters['global'].value : null,\n multiSortMeta: this.multiSortMeta,\n forceUpdate: () => this.cd.detectChanges()\n };\n }\n clear() {\n this._sortField = null;\n this._sortOrder = this.defaultSortOrder;\n this._multiSortMeta = null;\n this.tableService.onSort(null);\n this.clearFilterValues();\n this.filteredValue = null;\n this.first = 0;\n this.firstChange.emit(this.first);\n if (this.lazy) {\n this.onLazyLoad.emit(this.createLazyLoadMetadata());\n } else {\n this.totalRecords = this._value ? this._value.length : 0;\n }\n }\n clearFilterValues() {\n for (const [, filterMetadata] of Object.entries(this.filters)) {\n if (Array.isArray(filterMetadata)) {\n for (let filter of filterMetadata) {\n filter.value = null;\n }\n } else if (filterMetadata) {\n filterMetadata.value = null;\n }\n }\n }\n reset() {\n this.clear();\n }\n getExportHeader(column) {\n return column[this.exportHeader] || column.header || column.field;\n }\n /**\n * Data export method.\n * @param {ExportCSVOptions} object - Export options.\n * @group Method\n */\n exportCSV(options) {\n let data;\n let csv = '';\n let columns = this.columns;\n if (options && options.selectionOnly) {\n data = this.selection || [];\n } else if (options && options.allValues) {\n data = this.value || [];\n } else {\n data = this.filteredValue || this.value;\n if (this.frozenValue) {\n data = data ? [...this.frozenValue, ...data] : this.frozenValue;\n }\n }\n const exportableColumns = columns.filter(column => column.exportable !== false && column.field);\n //headers\n csv += exportableColumns.map(column => '\"' + this.getExportHeader(column) + '\"').join(this.csvSeparator);\n //body\n const body = data.map(record => exportableColumns.map(column => {\n let cellData = ObjectUtils.resolveFieldData(record, column.field);\n if (cellData != null) {\n if (this.exportFunction) {\n cellData = this.exportFunction({\n data: cellData,\n field: column.field\n });\n } else cellData = String(cellData).replace(/\"/g, '\"\"');\n } else cellData = '';\n return '\"' + cellData + '\"';\n }).join(this.csvSeparator)).join('\\n');\n if (body.length) {\n csv += '\\n' + body;\n }\n let blob = new Blob([new Uint8Array([0xef, 0xbb, 0xbf]), csv], {\n type: 'text/csv;charset=utf-8;'\n });\n let link = this.renderer.createElement('a');\n link.style.display = 'none';\n this.renderer.appendChild(this.document.body, link);\n if (link.download !== undefined) {\n link.setAttribute('href', URL.createObjectURL(blob));\n link.setAttribute('download', this.exportFilename + '.csv');\n link.click();\n } else {\n csv = 'data:text/csv;charset=utf-8,' + csv;\n this.window.open(encodeURI(csv));\n }\n this.renderer.removeChild(this.document.body, link);\n }\n onLazyItemLoad(event) {\n this.onLazyLoad.emit({\n ...this.createLazyLoadMetadata(),\n ...event,\n rows: event.last - event.first\n });\n }\n /**\n * Resets scroll to top.\n * @group Method\n */\n resetScrollTop() {\n if (this.virtualScroll) this.scrollToVirtualIndex(0);else this.scrollTo({\n top: 0\n });\n }\n /**\n * Scrolls to given index when using virtual scroll.\n * @param {number} index - index of the element.\n * @group Method\n */\n scrollToVirtualIndex(index) {\n this.scroller && this.scroller.scrollToIndex(index);\n }\n /**\n * Scrolls to given index.\n * @param {ScrollToOptions} options - scroll options.\n * @group Method\n */\n scrollTo(options) {\n if (this.virtualScroll) {\n this.scroller?.scrollTo(options);\n } else if (this.wrapperViewChild && this.wrapperViewChild.nativeElement) {\n if (this.wrapperViewChild.nativeElement.scrollTo) {\n this.wrapperViewChild.nativeElement.scrollTo(options);\n } else {\n this.wrapperViewChild.nativeElement.scrollLeft = options.left;\n this.wrapperViewChild.nativeElement.scrollTop = options.top;\n }\n }\n }\n updateEditingCell(cell, data, field, index) {\n this.editingCell = cell;\n this.editingCellData = data;\n this.editingCellField = field;\n this.editingCellRowIndex = index;\n this.bindDocumentEditListener();\n }\n isEditingCellValid() {\n return this.editingCell && DomHandler.find(this.editingCell, '.ng-invalid.ng-dirty').length === 0;\n }\n bindDocumentEditListener() {\n if (!this.documentEditListener) {\n this.documentEditListener = this.renderer.listen(this.document, 'click', event => {\n if (this.editingCell && !this.selfClick && this.isEditingCellValid()) {\n DomHandler.removeClass(this.editingCell, 'p-cell-editing');\n this.editingCell = null;\n this.onEditComplete.emit({\n field: this.editingCellField,\n data: this.editingCellData,\n originalEvent: event,\n index: this.editingCellRowIndex\n });\n this.editingCellField = null;\n this.editingCellData = null;\n this.editingCellRowIndex = null;\n this.unbindDocumentEditListener();\n this.cd.markForCheck();\n if (this.overlaySubscription) {\n this.overlaySubscription.unsubscribe();\n }\n }\n this.selfClick = false;\n });\n }\n }\n unbindDocumentEditListener() {\n if (this.documentEditListener) {\n this.documentEditListener();\n this.documentEditListener = null;\n }\n }\n initRowEdit(rowData) {\n let dataKeyValue = String(ObjectUtils.resolveFieldData(rowData, this.dataKey));\n this.editingRowKeys[dataKeyValue] = true;\n }\n saveRowEdit(rowData, rowElement) {\n if (DomHandler.find(rowElement, '.ng-invalid.ng-dirty').length === 0) {\n let dataKeyValue = String(ObjectUtils.resolveFieldData(rowData, this.dataKey));\n delete this.editingRowKeys[dataKeyValue];\n }\n }\n cancelRowEdit(rowData) {\n let dataKeyValue = String(ObjectUtils.resolveFieldData(rowData, this.dataKey));\n delete this.editingRowKeys[dataKeyValue];\n }\n toggleRow(rowData, event) {\n if (!this.dataKey && !this.groupRowsBy) {\n throw new Error('dataKey or groupRowsBy must be defined to use row expansion');\n }\n let dataKeyValue = this.groupRowsBy ? String(ObjectUtils.resolveFieldData(rowData, this.groupRowsBy)) : String(ObjectUtils.resolveFieldData(rowData, this.dataKey));\n if (this.expandedRowKeys[dataKeyValue] != null) {\n delete this.expandedRowKeys[dataKeyValue];\n this.onRowCollapse.emit({\n originalEvent: event,\n data: rowData\n });\n } else {\n if (this.rowExpandMode === 'single') {\n this.expandedRowKeys = {};\n }\n this.expandedRowKeys[dataKeyValue] = true;\n this.onRowExpand.emit({\n originalEvent: event,\n data: rowData\n });\n }\n if (event) {\n event.preventDefault();\n }\n if (this.isStateful()) {\n this.saveState();\n }\n }\n isRowExpanded(rowData) {\n return this.groupRowsBy ? this.expandedRowKeys[String(ObjectUtils.resolveFieldData(rowData, this.groupRowsBy))] === true : this.expandedRowKeys[String(ObjectUtils.resolveFieldData(rowData, this.dataKey))] === true;\n }\n isRowEditing(rowData) {\n return this.editingRowKeys[String(ObjectUtils.resolveFieldData(rowData, this.dataKey))] === true;\n }\n isSingleSelectionMode() {\n return this.selectionMode === 'single';\n }\n isMultipleSelectionMode() {\n return this.selectionMode === 'multiple';\n }\n onColumnResizeBegin(event) {\n let containerLeft = DomHandler.getOffset(this.containerViewChild?.nativeElement).left;\n this.resizeColumnElement = event.target.parentElement;\n this.columnResizing = true;\n if (event.type == 'touchstart') {\n this.lastResizerHelperX = event.changedTouches[0].clientX - containerLeft + this.containerViewChild?.nativeElement.scrollLeft;\n } else {\n this.lastResizerHelperX = event.pageX - containerLeft + this.containerViewChild?.nativeElement.scrollLeft;\n }\n this.onColumnResize(event);\n event.preventDefault();\n }\n onColumnResize(event) {\n let containerLeft = DomHandler.getOffset(this.containerViewChild?.nativeElement).left;\n DomHandler.addClass(this.containerViewChild?.nativeElement, 'p-unselectable-text');\n this.resizeHelperViewChild.nativeElement.style.height = this.containerViewChild?.nativeElement.offsetHeight + 'px';\n this.resizeHelperViewChild.nativeElement.style.top = 0 + 'px';\n if (event.type == 'touchmove') {\n this.resizeHelperViewChild.nativeElement.style.left = event.changedTouches[0].clientX - containerLeft + this.containerViewChild?.nativeElement.scrollLeft + 'px';\n } else {\n this.resizeHelperViewChild.nativeElement.style.left = event.pageX - containerLeft + this.containerViewChild?.nativeElement.scrollLeft + 'px';\n }\n this.resizeHelperViewChild.nativeElement.style.display = 'block';\n }\n onColumnResizeEnd() {\n let delta = this.resizeHelperViewChild?.nativeElement.offsetLeft - this.lastResizerHelperX;\n let columnWidth = this.resizeColumnElement.offsetWidth;\n let newColumnWidth = columnWidth + delta;\n let minWidth = this.resizeColumnElement.style.minWidth.replace(/[^\\d.]/g, '') || 15;\n if (newColumnWidth >= minWidth) {\n if (this.columnResizeMode === 'fit') {\n let nextColumn = this.resizeColumnElement.nextElementSibling;\n let nextColumnWidth = nextColumn.offsetWidth - delta;\n if (newColumnWidth > 15 && nextColumnWidth > 15) {\n this.resizeTableCells(newColumnWidth, nextColumnWidth);\n }\n } else if (this.columnResizeMode === 'expand') {\n this._initialColWidths = this._totalTableWidth();\n let tableWidth = this.tableViewChild?.nativeElement.offsetWidth + delta;\n this.setResizeTableWidth(tableWidth + 'px');\n this.resizeTableCells(newColumnWidth, null);\n }\n this.onColResize.emit({\n element: this.resizeColumnElement,\n delta: delta\n });\n if (this.isStateful()) {\n this.saveState();\n }\n }\n this.resizeHelperViewChild.nativeElement.style.display = 'none';\n DomHandler.removeClass(this.containerViewChild?.nativeElement, 'p-unselectable-text');\n }\n _totalTableWidth() {\n let widths = [];\n const tableHead = DomHandler.findSingle(this.containerViewChild.nativeElement, '.p-datatable-thead');\n let headers = DomHandler.find(tableHead, 'tr > th');\n headers.forEach(header => widths.push(DomHandler.getOuterWidth(header)));\n return widths;\n }\n onColumnDragStart(event, columnElement) {\n this.reorderIconWidth = DomHandler.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement);\n this.reorderIconHeight = DomHandler.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement);\n this.draggedColumn = columnElement;\n event.dataTransfer.setData('text', 'b'); // For firefox\n }\n onColumnDragEnter(event, dropHeader) {\n if (this.reorderableColumns && this.draggedColumn && dropHeader) {\n event.preventDefault();\n let containerOffset = DomHandler.getOffset(this.containerViewChild?.nativeElement);\n let dropHeaderOffset = DomHandler.getOffset(dropHeader);\n if (this.draggedColumn != dropHeader) {\n let dragIndex = DomHandler.indexWithinGroup(this.draggedColumn, 'preorderablecolumn');\n let dropIndex = DomHandler.indexWithinGroup(dropHeader, 'preorderablecolumn');\n let targetLeft = dropHeaderOffset.left - containerOffset.left;\n let targetTop = containerOffset.top - dropHeaderOffset.top;\n let columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;\n this.reorderIndicatorUpViewChild.nativeElement.style.top = dropHeaderOffset.top - containerOffset.top - (this.reorderIconHeight - 1) + 'px';\n this.reorderIndicatorDownViewChild.nativeElement.style.top = dropHeaderOffset.top - containerOffset.top + dropHeader.offsetHeight + 'px';\n if (event.pageX > columnCenter) {\n this.reorderIndicatorUpViewChild.nativeElement.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.reorderIconWidth / 2) + 'px';\n this.reorderIndicatorDownViewChild.nativeElement.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.reorderIconWidth / 2) + 'px';\n this.dropPosition = 1;\n } else {\n this.reorderIndicatorUpViewChild.nativeElement.style.left = targetLeft - Math.ceil(this.reorderIconWidth / 2) + 'px';\n this.reorderIndicatorDownViewChild.nativeElement.style.left = targetLeft - Math.ceil(this.reorderIconWidth / 2) + 'px';\n this.dropPosition = -1;\n }\n this.reorderIndicatorUpViewChild.nativeElement.style.display = 'block';\n this.reorderIndicatorDownViewChild.nativeElement.style.display = 'block';\n } else {\n event.dataTransfer.dropEffect = 'none';\n }\n }\n }\n onColumnDragLeave(event) {\n if (this.reorderableColumns && this.draggedColumn) {\n event.preventDefault();\n }\n }\n onColumnDrop(event, dropColumn) {\n event.preventDefault();\n if (this.draggedColumn) {\n let dragIndex = DomHandler.indexWithinGroup(this.draggedColumn, 'preorderablecolumn');\n let dropIndex = DomHandler.indexWithinGroup(dropColumn, 'preorderablecolumn');\n let allowDrop = dragIndex != dropIndex;\n if (allowDrop && (dropIndex - dragIndex == 1 && this.dropPosition === -1 || dragIndex - dropIndex == 1 && this.dropPosition === 1)) {\n allowDrop = false;\n }\n if (allowDrop && dropIndex < dragIndex && this.dropPosition === 1) {\n dropIndex = dropIndex + 1;\n }\n if (allowDrop && dropIndex > dragIndex && this.dropPosition === -1) {\n dropIndex = dropIndex - 1;\n }\n if (allowDrop) {\n ObjectUtils.reorderArray(this.columns, dragIndex, dropIndex);\n this.onColReorder.emit({\n dragIndex: dragIndex,\n dropIndex: dropIndex,\n columns: this.columns\n });\n if (this.isStateful()) {\n this.zone.runOutsideAngular(() => {\n setTimeout(() => {\n this.saveState();\n });\n });\n }\n }\n if (this.resizableColumns && this.resizeColumnElement) {\n let width = this.columnResizeMode === 'expand' ? this._initialColWidths : this._totalTableWidth();\n ObjectUtils.reorderArray(width, dragIndex + 1, dropIndex + 1);\n this.updateStyleElement(width, dragIndex, null, null);\n }\n this.reorderIndicatorUpViewChild.nativeElement.style.display = 'none';\n this.reorderIndicatorDownViewChild.nativeElement.style.display = 'none';\n this.draggedColumn.draggable = false;\n this.draggedColumn = null;\n this.dropPosition = null;\n }\n }\n resizeTableCells(newColumnWidth, nextColumnWidth) {\n let colIndex = DomHandler.index(this.resizeColumnElement);\n let width = this.columnResizeMode === 'expand' ? this._initialColWidths : this._totalTableWidth();\n this.updateStyleElement(width, colIndex, newColumnWidth, nextColumnWidth);\n }\n updateStyleElement(width, colIndex, newColumnWidth, nextColumnWidth) {\n this.destroyStyleElement();\n this.createStyleElement();\n let innerHTML = '';\n width.forEach((width, index) => {\n let colWidth = index === colIndex ? newColumnWidth : nextColumnWidth && index === colIndex + 1 ? nextColumnWidth : width;\n let style = `width: ${colWidth}px !important; max-width: ${colWidth}px !important;`;\n innerHTML += `\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${index + 1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${index + 1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${index + 1}) {\n ${style}\n }\n `;\n });\n this.renderer.setProperty(this.styleElement, 'innerHTML', this.domSanitizer.bypassSecurityTrustStyle(innerHTML));\n }\n onRowDragStart(event, index) {\n this.rowDragging = true;\n this.draggedRowIndex = index;\n event.dataTransfer.setData('text', 'b'); // For firefox\n }\n onRowDragOver(event, index, rowElement) {\n if (this.rowDragging && this.draggedRowIndex !== index) {\n let rowY = DomHandler.getOffset(rowElement).top;\n let pageY = event.pageY;\n let rowMidY = rowY + DomHandler.getOuterHeight(rowElement) / 2;\n let prevRowElement = rowElement.previousElementSibling;\n if (pageY < rowMidY) {\n DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');\n this.droppedRowIndex = index;\n if (prevRowElement) DomHandler.addClass(prevRowElement, 'p-datatable-dragpoint-bottom');else DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');\n } else {\n if (prevRowElement) DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');else DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');\n this.droppedRowIndex = index + 1;\n DomHandler.addClass(rowElement, 'p-datatable-dragpoint-bottom');\n }\n }\n }\n onRowDragLeave(event, rowElement) {\n let prevRowElement = rowElement.previousElementSibling;\n if (prevRowElement) {\n DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');\n }\n DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');\n DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-top');\n }\n onRowDragEnd(event) {\n this.rowDragging = false;\n this.draggedRowIndex = null;\n this.droppedRowIndex = null;\n }\n onRowDrop(event, rowElement) {\n if (this.droppedRowIndex != null) {\n let dropIndex = this.draggedRowIndex > this.droppedRowIndex ? this.droppedRowIndex : this.droppedRowIndex === 0 ? 0 : this.droppedRowIndex - 1;\n ObjectUtils.reorderArray(this.value, this.draggedRowIndex, dropIndex);\n if (this.virtualScroll) {\n // TODO: Check\n this._value = [...this._value];\n }\n this.onRowReorder.emit({\n dragIndex: this.draggedRowIndex,\n dropIndex: dropIndex\n });\n }\n //cleanup\n this.onRowDragLeave(event, rowElement);\n this.onRowDragEnd(event);\n }\n isEmpty() {\n let data = this.filteredValue || this.value;\n return data == null || data.length == 0;\n }\n getBlockableElement() {\n return this.el.nativeElement.children[0];\n }\n getStorage() {\n if (isPlatformBrowser(this.platformId)) {\n switch (this.stateStorage) {\n case 'local':\n return window.localStorage;\n case 'session':\n return window.sessionStorage;\n default:\n throw new Error(this.stateStorage + ' is not a valid value for the state storage, supported values are \"local\" and \"session\".');\n }\n } else {\n throw new Error('Browser storage is not available in the server side.');\n }\n }\n isStateful() {\n return this.stateKey != null;\n }\n saveState() {\n const storage = this.getStorage();\n let state = {};\n if (this.paginator) {\n state.first = this.first;\n state.rows = this.rows;\n }\n if (this.sortField) {\n state.sortField = this.sortField;\n state.sortOrder = this.sortOrder;\n }\n if (this.multiSortMeta) {\n state.multiSortMeta = this.multiSortMeta;\n }\n if (this.hasFilter()) {\n state.filters = this.filters;\n }\n if (this.resizableColumns) {\n this.saveColumnWidths(state);\n }\n if (this.reorderableColumns) {\n this.saveColumnOrder(state);\n }\n if (this.selection) {\n state.selection = this.selection;\n }\n if (Object.keys(this.expandedRowKeys).length) {\n state.expandedRowKeys = this.expandedRowKeys;\n }\n storage.setItem(this.stateKey, JSON.stringify(state));\n this.onStateSave.emit(state);\n }\n clearState() {\n const storage = this.getStorage();\n if (this.stateKey) {\n storage.removeItem(this.stateKey);\n }\n }\n restoreState() {\n const storage = this.getStorage();\n const stateString = storage.getItem(this.stateKey);\n const dateFormat = /\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}Z/;\n const reviver = function (key, value) {\n if (typeof value === 'string' && dateFormat.test(value)) {\n return new Date(value);\n }\n return value;\n };\n if (stateString) {\n let state = JSON.parse(stateString, reviver);\n if (this.paginator) {\n if (this.first !== undefined) {\n this.first = state.first;\n this.firstChange.emit(this.first);\n }\n if (this.rows !== undefined) {\n this.rows = state.rows;\n this.rowsChange.emit(this.rows);\n }\n }\n if (state.sortField) {\n this.restoringSort = true;\n this._sortField = state.sortField;\n this._sortOrder = state.sortOrder;\n }\n if (state.multiSortMeta) {\n this.restoringSort = true;\n this._multiSortMeta = state.multiSortMeta;\n }\n if (state.filters) {\n this.restoringFilter = true;\n this.filters = state.filters;\n }\n if (this.resizableColumns) {\n this.columnWidthsState = state.columnWidths;\n this.tableWidthState = state.tableWidth;\n }\n // if (this.reorderableColumns) {\n // this.restoreColumnOrder();\n // }\n if (state.expandedRowKeys) {\n this.expandedRowKeys = state.expandedRowKeys;\n }\n if (state.selection) {\n Promise.resolve(null).then(() => this.selectionChange.emit(state.selection));\n }\n this.stateRestored = true;\n this.onStateRestore.emit(state);\n }\n }\n saveColumnWidths(state) {\n let widths = [];\n let headers = DomHandler.find(this.containerViewChild?.nativeElement, '.p-datatable-thead > tr > th');\n headers.forEach(header => widths.push(DomHandler.getOuterWidth(header)));\n state.columnWidths = widths.join(',');\n if (this.columnResizeMode === 'expand') {\n state.tableWidth = DomHandler.getOuterWidth(this.tableViewChild?.nativeElement);\n }\n }\n setResizeTableWidth(width) {\n this.tableViewChild.nativeElement.style.width = width;\n this.tableViewChild.nativeElement.style.minWidth = width;\n }\n restoreColumnWidths() {\n if (this.columnWidthsState) {\n let widths = this.columnWidthsState.split(',');\n if (this.columnResizeMode === 'expand' && this.tableWidthState) {\n this.setResizeTableWidth(this.tableWidthState + 'px');\n }\n if (ObjectUtils.isNotEmpty(widths)) {\n this.createStyleElement();\n let innerHTML = '';\n widths.forEach((width, index) => {\n let style = `width: ${width}px !important; max-width: ${width}px !important`;\n innerHTML += `\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${index + 1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${index + 1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${index + 1}) {\n ${style}\n }\n `;\n });\n this.styleElement.textContent = innerHTML;\n }\n }\n }\n saveColumnOrder(state) {\n if (this.columns) {\n let columnOrder = [];\n this.columns.map(column => {\n columnOrder.push(column.field || column.key);\n });\n state.columnOrder = columnOrder;\n }\n }\n restoreColumnOrder() {\n const storage = this.getStorage();\n const stateString = storage.getItem(this.stateKey);\n if (stateString) {\n let state = JSON.parse(stateString);\n let columnOrder = state.columnOrder;\n if (columnOrder) {\n let reorderedColumns = [];\n columnOrder.map(key => {\n let col = this.findColumnByKey(key);\n if (col) {\n reorderedColumns.push(col);\n }\n });\n this.columnOrderStateRestored = true;\n this.columns = reorderedColumns;\n }\n }\n }\n findColumnByKey(key) {\n if (this.columns) {\n for (let col of this.columns) {\n if (col.key === key || col.field === key) return col;else continue;\n }\n } else {\n return null;\n }\n }\n createStyleElement() {\n this.styleElement = this.renderer.createElement('style');\n this.styleElement.type = 'text/css';\n DomHandler.setAttribute(this.styleElement, 'nonce', this.config?.csp()?.nonce);\n this.renderer.appendChild(this.document.head, this.styleElement);\n }\n getGroupRowsMeta() {\n return {\n field: this.groupRowsBy,\n order: this.groupRowsByOrder\n };\n }\n createResponsiveStyle() {\n if (isPlatformBrowser(this.platformId)) {\n if (!this.responsiveStyleElement) {\n this.responsiveStyleElement = this.renderer.createElement('style');\n this.responsiveStyleElement.type = 'text/css';\n DomHandler.setAttribute(this.responsiveStyleElement, 'nonce', this.config?.csp()?.nonce);\n this.renderer.appendChild(this.document.head, this.responsiveStyleElement);\n let innerHTML = `\n @media screen and (max-width: ${this.breakpoint}) {\n #${this.id}-table > .p-datatable-thead > tr > th,\n #${this.id}-table > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n }\n `;\n this.renderer.setProperty(this.responsiveStyleElement, 'innerHTML', this.domSanitizer.bypassSecurityTrustStyle(innerHTML));\n }\n }\n }\n destroyResponsiveStyle() {\n if (this.responsiveStyleElement) {\n this.renderer.removeChild(this.document.head, this.responsiveStyleElement);\n this.responsiveStyleElement = null;\n }\n }\n destroyStyleElement() {\n if (this.styleElement) {\n this.renderer.removeChild(this.document.head, this.styleElement);\n this.styleElement = null;\n }\n }\n ngOnDestroy() {\n this.unbindDocumentEditListener();\n this.editingCell = null;\n this.initialized = null;\n this.destroyStyleElement();\n this.destroyResponsiveStyle();\n }\n getPaginatorStyleClasses(className) {\n return [this.paginatorStyleClass, className].filter(c => !!c).join(' ').trim();\n }\n static ɵfac = function Table_Factory(t) {\n return new (t || Table)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(PLATFORM_ID), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(TableService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.FilterService), i0.ɵɵdirectiveInject(i1.OverlayService), i0.ɵɵdirectiveInject(i1.PrimeNGConfig), i0.ɵɵdirectiveInject(i2.DomSanitizer));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: Table,\n selectors: [[\"p-table\"]],\n contentQueries: function Table_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n }\n },\n viewQuery: function Table_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c0, 5);\n i0.ɵɵviewQuery(_c1, 5);\n i0.ɵɵviewQuery(_c2, 5);\n i0.ɵɵviewQuery(_c3, 5);\n i0.ɵɵviewQuery(_c4, 5);\n i0.ɵɵviewQuery(_c5, 5);\n i0.ɵɵviewQuery(_c6, 5);\n i0.ɵɵviewQuery(_c7, 5);\n i0.ɵɵviewQuery(_c8, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.resizeHelperViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.reorderIndicatorUpViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.reorderIndicatorDownViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.wrapperViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableHeaderViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableFooterViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.scroller = _t.first);\n }\n },\n hostAttrs: [1, \"p-element\"],\n inputs: {\n frozenColumns: \"frozenColumns\",\n frozenValue: \"frozenValue\",\n style: \"style\",\n styleClass: \"styleClass\",\n tableStyle: \"tableStyle\",\n tableStyleClass: \"tableStyleClass\",\n paginator: [2, \"paginator\", \"paginator\", booleanAttribute],\n pageLinks: [2, \"pageLinks\", \"pageLinks\", numberAttribute],\n rowsPerPageOptions: \"rowsPerPageOptions\",\n alwaysShowPaginator: [2, \"alwaysShowPaginator\", \"alwaysShowPaginator\", booleanAttribute],\n paginatorPosition: \"paginatorPosition\",\n paginatorStyleClass: \"paginatorStyleClass\",\n paginatorDropdownAppendTo: \"paginatorDropdownAppendTo\",\n paginatorDropdownScrollHeight: \"paginatorDropdownScrollHeight\",\n currentPageReportTemplate: \"currentPageReportTemplate\",\n showCurrentPageReport: [2, \"showCurrentPageReport\", \"showCurrentPageReport\", booleanAttribute],\n showJumpToPageDropdown: [2, \"showJumpToPageDropdown\", \"showJumpToPageDropdown\", booleanAttribute],\n showJumpToPageInput: [2, \"showJumpToPageInput\", \"showJumpToPageInput\", booleanAttribute],\n showFirstLastIcon: [2, \"showFirstLastIcon\", \"showFirstLastIcon\", booleanAttribute],\n showPageLinks: [2, \"showPageLinks\", \"showPageLinks\", booleanAttribute],\n defaultSortOrder: [2, \"defaultSortOrder\", \"defaultSortOrder\", numberAttribute],\n sortMode: \"sortMode\",\n resetPageOnSort: [2, \"resetPageOnSort\", \"resetPageOnSort\", booleanAttribute],\n selectionMode: \"selectionMode\",\n selectionPageOnly: [2, \"selectionPageOnly\", \"selectionPageOnly\", booleanAttribute],\n contextMenuSelection: \"contextMenuSelection\",\n contextMenuSelectionMode: \"contextMenuSelectionMode\",\n dataKey: \"dataKey\",\n metaKeySelection: [2, \"metaKeySelection\", \"metaKeySelection\", booleanAttribute],\n rowSelectable: \"rowSelectable\",\n rowTrackBy: \"rowTrackBy\",\n lazy: [2, \"lazy\", \"lazy\", booleanAttribute],\n lazyLoadOnInit: [2, \"lazyLoadOnInit\", \"lazyLoadOnInit\", booleanAttribute],\n compareSelectionBy: \"compareSelectionBy\",\n csvSeparator: \"csvSeparator\",\n exportFilename: \"exportFilename\",\n filters: \"filters\",\n globalFilterFields: \"globalFilterFields\",\n filterDelay: [2, \"filterDelay\", \"filterDelay\", numberAttribute],\n filterLocale: \"filterLocale\",\n expandedRowKeys: \"expandedRowKeys\",\n editingRowKeys: \"editingRowKeys\",\n rowExpandMode: \"rowExpandMode\",\n scrollable: [2, \"scrollable\", \"scrollable\", booleanAttribute],\n scrollDirection: \"scrollDirection\",\n rowGroupMode: \"rowGroupMode\",\n scrollHeight: \"scrollHeight\",\n virtualScroll: [2, \"virtualScroll\", \"virtualScroll\", booleanAttribute],\n virtualScrollItemSize: [2, \"virtualScrollItemSize\", \"virtualScrollItemSize\", numberAttribute],\n virtualScrollOptions: \"virtualScrollOptions\",\n virtualScrollDelay: [2, \"virtualScrollDelay\", \"virtualScrollDelay\", numberAttribute],\n frozenWidth: \"frozenWidth\",\n responsive: \"responsive\",\n contextMenu: \"contextMenu\",\n resizableColumns: [2, \"resizableColumns\", \"resizableColumns\", booleanAttribute],\n columnResizeMode: \"columnResizeMode\",\n reorderableColumns: [2, \"reorderableColumns\", \"reorderableColumns\", booleanAttribute],\n loading: [2, \"loading\", \"loading\", booleanAttribute],\n loadingIcon: \"loadingIcon\",\n showLoader: [2, \"showLoader\", \"showLoader\", booleanAttribute],\n rowHover: [2, \"rowHover\", \"rowHover\", booleanAttribute],\n customSort: [2, \"customSort\", \"customSort\", booleanAttribute],\n showInitialSortBadge: [2, \"showInitialSortBadge\", \"showInitialSortBadge\", booleanAttribute],\n autoLayout: [2, \"autoLayout\", \"autoLayout\", booleanAttribute],\n exportFunction: \"exportFunction\",\n exportHeader: \"exportHeader\",\n stateKey: \"stateKey\",\n stateStorage: \"stateStorage\",\n editMode: \"editMode\",\n groupRowsBy: \"groupRowsBy\",\n groupRowsByOrder: [2, \"groupRowsByOrder\", \"groupRowsByOrder\", numberAttribute],\n responsiveLayout: \"responsiveLayout\",\n breakpoint: \"breakpoint\",\n paginatorLocale: \"paginatorLocale\",\n value: \"value\",\n columns: \"columns\",\n first: \"first\",\n rows: \"rows\",\n totalRecords: \"totalRecords\",\n sortField: \"sortField\",\n sortOrder: \"sortOrder\",\n multiSortMeta: \"multiSortMeta\",\n selection: \"selection\",\n selectAll: \"selectAll\",\n virtualRowHeight: \"virtualRowHeight\"\n },\n outputs: {\n contextMenuSelectionChange: \"contextMenuSelectionChange\",\n selectAllChange: \"selectAllChange\",\n selectionChange: \"selectionChange\",\n onRowSelect: \"onRowSelect\",\n onRowUnselect: \"onRowUnselect\",\n onPage: \"onPage\",\n onSort: \"onSort\",\n onFilter: \"onFilter\",\n onLazyLoad: \"onLazyLoad\",\n onRowExpand: \"onRowExpand\",\n onRowCollapse: \"onRowCollapse\",\n onContextMenuSelect: \"onContextMenuSelect\",\n onColResize: \"onColResize\",\n onColReorder: \"onColReorder\",\n onRowReorder: \"onRowReorder\",\n onEditInit: \"onEditInit\",\n onEditComplete: \"onEditComplete\",\n onEditCancel: \"onEditCancel\",\n onHeaderCheckboxToggle: \"onHeaderCheckboxToggle\",\n sortFunction: \"sortFunction\",\n firstChange: \"firstChange\",\n rowsChange: \"rowsChange\",\n onStateSave: \"onStateSave\",\n onStateRestore: \"onStateRestore\"\n },\n features: [i0.ɵɵProvidersFeature([TableService]), i0.ɵɵInputTransformsFeature, i0.ɵɵNgOnChangesFeature],\n decls: 16,\n vars: 22,\n consts: [[\"container\", \"\"], [\"wrapper\", \"\"], [\"buildInTable\", \"\"], [\"scroller\", \"\"], [\"table\", \"\"], [\"thead\", \"\"], [\"tfoot\", \"\"], [\"resizeHelper\", \"\"], [\"reorderIndicatorUp\", \"\"], [\"reorderIndicatorDown\", \"\"], [3, \"ngStyle\", \"ngClass\"], [\"class\", \"p-datatable-loading-overlay p-component-overlay\", 4, \"ngIf\"], [\"class\", \"p-datatable-header\", 4, \"ngIf\"], [3, \"rows\", \"first\", \"totalRecords\", \"pageLinkSize\", \"alwaysShow\", \"rowsPerPageOptions\", \"templateLeft\", \"templateRight\", \"dropdownAppendTo\", \"dropdownScrollHeight\", \"currentPageReportTemplate\", \"showFirstLastIcon\", \"dropdownItemTemplate\", \"showCurrentPageReport\", \"showJumpToPageDropdown\", \"showJumpToPageInput\", \"showPageLinks\", \"styleClass\", \"locale\", \"onPageChange\", 4, \"ngIf\"], [1, \"p-datatable-wrapper\", 3, \"ngStyle\"], [3, \"items\", \"columns\", \"style\", \"scrollHeight\", \"itemSize\", \"step\", \"delay\", \"inline\", \"autoSize\", \"lazy\", \"loaderDisabled\", \"showSpacer\", \"showLoader\", \"options\", \"onLazyLoad\", 4, \"ngIf\"], [4, \"ngIf\"], [\"class\", \"p-datatable-footer\", 4, \"ngIf\"], [\"class\", \"p-column-resizer-helper\", 3, \"ngStyle\", 4, \"ngIf\"], [\"class\", \"p-datatable-reorder-indicator-up\", 3, \"ngStyle\", 4, \"ngIf\"], [\"class\", \"p-datatable-reorder-indicator-down\", 3, \"ngStyle\", 4, \"ngIf\"], [1, \"p-datatable-loading-overlay\", \"p-component-overlay\"], [3, \"class\", 4, \"ngIf\"], [3, \"spin\", \"styleClass\", 4, \"ngIf\"], [\"class\", \"p-datatable-loading-icon\", 4, \"ngIf\"], [3, \"spin\", \"styleClass\"], [1, \"p-datatable-loading-icon\"], [4, \"ngTemplateOutlet\"], [1, \"p-datatable-header\"], [3, \"onPageChange\", \"rows\", \"first\", \"totalRecords\", \"pageLinkSize\", \"alwaysShow\", \"rowsPerPageOptions\", \"templateLeft\", \"templateRight\", \"dropdownAppendTo\", \"dropdownScrollHeight\", \"currentPageReportTemplate\", \"showFirstLastIcon\", \"dropdownItemTemplate\", \"showCurrentPageReport\", \"showJumpToPageDropdown\", \"showJumpToPageInput\", \"showPageLinks\", \"styleClass\", \"locale\"], [\"pTemplate\", \"dropdownicon\"], [\"pTemplate\", \"firstpagelinkicon\"], [\"pTemplate\", \"previouspagelinkicon\"], [\"pTemplate\", \"lastpagelinkicon\"], [\"pTemplate\", \"nextpagelinkicon\"], [3, \"onLazyLoad\", \"items\", \"columns\", \"scrollHeight\", \"itemSize\", \"step\", \"delay\", \"inline\", \"autoSize\", \"lazy\", \"loaderDisabled\", \"showSpacer\", \"showLoader\", \"options\"], [\"pTemplate\", \"content\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [\"role\", \"table\", 3, \"ngClass\", \"ngStyle\"], [\"role\", \"rowgroup\", 1, \"p-datatable-thead\"], [\"role\", \"rowgroup\", \"class\", \"p-datatable-tbody p-datatable-frozen-tbody\", 3, \"value\", \"frozenRows\", \"pTableBody\", \"pTableBodyTemplate\", \"frozen\", 4, \"ngIf\"], [\"role\", \"rowgroup\", 1, \"p-datatable-tbody\", 3, \"ngClass\", \"ngStyle\", \"value\", \"pTableBody\", \"pTableBodyTemplate\", \"scrollerOptions\"], [\"role\", \"rowgroup\", \"class\", \"p-datatable-scroller-spacer\", 3, \"ngStyle\", 4, \"ngIf\"], [\"role\", \"rowgroup\", \"class\", \"p-datatable-tfoot\", 4, \"ngIf\"], [\"role\", \"rowgroup\", 1, \"p-datatable-tbody\", \"p-datatable-frozen-tbody\", 3, \"value\", \"frozenRows\", \"pTableBody\", \"pTableBodyTemplate\", \"frozen\"], [\"role\", \"rowgroup\", 1, \"p-datatable-scroller-spacer\", 3, \"ngStyle\"], [\"role\", \"rowgroup\", 1, \"p-datatable-tfoot\"], [1, \"p-datatable-footer\"], [1, \"p-column-resizer-helper\", 3, \"ngStyle\"], [1, \"p-datatable-reorder-indicator-up\", 3, \"ngStyle\"], [1, \"p-datatable-reorder-indicator-down\", 3, \"ngStyle\"]],\n template: function Table_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 10, 0);\n i0.ɵɵtemplate(2, Table_div_2_Template, 3, 2, \"div\", 11)(3, Table_div_3_Template, 2, 1, \"div\", 12)(4, Table_p_paginator_4_Template, 6, 24, \"p-paginator\", 13);\n i0.ɵɵelementStart(5, \"div\", 14, 1);\n i0.ɵɵtemplate(7, Table_p_scroller_7_Template, 3, 17, \"p-scroller\", 15)(8, Table_ng_container_8_Template, 2, 7, \"ng-container\", 16)(9, Table_ng_template_9_Template, 10, 26, \"ng-template\", null, 2, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(11, Table_p_paginator_11_Template, 6, 24, \"p-paginator\", 13)(12, Table_div_12_Template, 2, 1, \"div\", 17)(13, Table_div_13_Template, 2, 2, \"div\", 18)(14, Table_span_14_Template, 4, 4, \"span\", 19)(15, Table_span_15_Template, 4, 4, \"span\", 20);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.styleClass);\n i0.ɵɵproperty(\"ngStyle\", ctx.style)(\"ngClass\", i0.ɵɵpureFunction3(16, _c9, ctx.rowHover || ctx.selectionMode, ctx.scrollable, ctx.scrollable && ctx.scrollHeight === \"flex\"));\n i0.ɵɵattribute(\"id\", ctx.id);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx.loading && ctx.showLoader);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.captionTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.paginator && (ctx.paginatorPosition === \"top\" || ctx.paginatorPosition == \"both\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(20, _c10, ctx.virtualScroll ? \"\" : ctx.scrollHeight));\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx.virtualScroll);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx.virtualScroll);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngIf\", ctx.paginator && (ctx.paginatorPosition === \"bottom\" || ctx.paginatorPosition == \"both\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.summaryTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.resizableColumns);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.reorderableColumns);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.reorderableColumns);\n }\n },\n dependencies: () => [i3.NgClass, i3.NgIf, i3.NgTemplateOutlet, i3.NgStyle, i4.Paginator, i1.PrimeTemplate, i5.Scroller, ArrowDownIcon, ArrowUpIcon, SpinnerIcon, TableBody],\n styles: [\"@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:2}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:2}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:3}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\\n\"],\n encapsulation: 2\n });\n }\n return Table;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TableBody = /*#__PURE__*/(() => {\n class TableBody {\n dt;\n tableService;\n cd;\n el;\n columns;\n template;\n get value() {\n return this._value;\n }\n set value(val) {\n this._value = val;\n if (this.frozenRows) {\n this.updateFrozenRowStickyPosition();\n }\n if (this.dt.scrollable && this.dt.rowGroupMode === 'subheader') {\n this.updateFrozenRowGroupHeaderStickyPosition();\n }\n }\n frozen;\n frozenRows;\n scrollerOptions;\n subscription;\n _value;\n ngAfterViewInit() {\n if (this.frozenRows) {\n this.updateFrozenRowStickyPosition();\n }\n if (this.dt.scrollable && this.dt.rowGroupMode === 'subheader') {\n this.updateFrozenRowGroupHeaderStickyPosition();\n }\n }\n constructor(dt, tableService, cd, el) {\n this.dt = dt;\n this.tableService = tableService;\n this.cd = cd;\n this.el = el;\n this.subscription = this.dt.tableService.valueSource$.subscribe(() => {\n if (this.dt.virtualScroll) {\n this.cd.detectChanges();\n }\n });\n }\n shouldRenderRowGroupHeader(value, rowData, i) {\n let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dt.groupRowsBy);\n let prevRowData = value[i - (1 + this.dt._first)];\n if (prevRowData) {\n let previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.dt.groupRowsBy);\n return currentRowFieldData !== previousRowFieldData;\n } else {\n return true;\n }\n }\n shouldRenderRowGroupFooter(value, rowData, i) {\n let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dt.groupRowsBy);\n let nextRowData = value[i + (1 + this.dt._first)];\n if (nextRowData) {\n let nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.dt.groupRowsBy);\n return currentRowFieldData !== nextRowFieldData;\n } else {\n return true;\n }\n }\n shouldRenderRowspan(value, rowData, i) {\n let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dt.groupRowsBy);\n let prevRowData = value[i - 1];\n if (prevRowData) {\n let previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.dt.groupRowsBy);\n return currentRowFieldData !== previousRowFieldData;\n } else {\n return true;\n }\n }\n calculateRowGroupSize(value, rowData, index) {\n let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dt.groupRowsBy);\n let nextRowFieldData = currentRowFieldData;\n let groupRowSpan = 0;\n while (currentRowFieldData === nextRowFieldData) {\n groupRowSpan++;\n let nextRowData = value[++index];\n if (nextRowData) {\n nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.dt.groupRowsBy);\n } else {\n break;\n }\n }\n return groupRowSpan === 1 ? null : groupRowSpan;\n }\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n updateFrozenRowStickyPosition() {\n this.el.nativeElement.style.top = DomHandler.getOuterHeight(this.el.nativeElement.previousElementSibling) + 'px';\n }\n updateFrozenRowGroupHeaderStickyPosition() {\n if (this.el.nativeElement.previousElementSibling) {\n let tableHeaderHeight = DomHandler.getOuterHeight(this.el.nativeElement.previousElementSibling);\n this.dt.rowGroupHeaderStyleObject.top = tableHeaderHeight + 'px';\n }\n }\n getScrollerOption(option, options) {\n if (this.dt.virtualScroll) {\n options = options || this.scrollerOptions;\n return options ? options[option] : null;\n }\n return null;\n }\n getRowIndex(rowIndex) {\n const index = this.dt.paginator ? this.dt.first + rowIndex : rowIndex;\n const getItemOptions = this.getScrollerOption('getItemOptions');\n return getItemOptions ? getItemOptions(index).index : index;\n }\n static ɵfac = function TableBody_Factory(t) {\n return new (t || TableBody)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(TableService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TableBody,\n selectors: [[\"\", \"pTableBody\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n inputs: {\n columns: [0, \"pTableBody\", \"columns\"],\n template: [0, \"pTableBodyTemplate\", \"template\"],\n value: \"value\",\n frozen: [2, \"frozen\", \"frozen\", booleanAttribute],\n frozenRows: [2, \"frozenRows\", \"frozenRows\", booleanAttribute],\n scrollerOptions: \"scrollerOptions\"\n },\n features: [i0.ɵɵInputTransformsFeature],\n attrs: _c17,\n decls: 5,\n vars: 5,\n consts: [[4, \"ngIf\"], [\"ngFor\", \"\", 3, \"ngForOf\", \"ngForTrackBy\"], [\"role\", \"row\", 4, \"ngIf\"], [\"role\", \"row\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"]],\n template: function TableBody_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TableBody_ng_container_0_Template, 2, 2, \"ng-container\", 0)(1, TableBody_ng_container_1_Template, 2, 2, \"ng-container\", 0)(2, TableBody_ng_container_2_Template, 2, 2, \"ng-container\", 0)(3, TableBody_ng_container_3_Template, 2, 5, \"ng-container\", 0)(4, TableBody_ng_container_4_Template, 2, 5, \"ng-container\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", !ctx.dt.expandedRowTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.dt.expandedRowTemplate && !(ctx.frozen && ctx.dt.frozenExpandedRowTemplate));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.dt.frozenExpandedRowTemplate && ctx.frozen);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.dt.loading);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.dt.isEmpty() && !ctx.dt.loading);\n }\n },\n dependencies: [i3.NgForOf, i3.NgIf, i3.NgTemplateOutlet],\n encapsulation: 2\n });\n }\n return TableBody;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet RowGroupHeader = /*#__PURE__*/(() => {\n class RowGroupHeader {\n dt;\n constructor(dt) {\n this.dt = dt;\n }\n get getFrozenRowGroupHeaderStickyPosition() {\n return this.dt.rowGroupHeaderStyleObject ? this.dt.rowGroupHeaderStyleObject.top : '';\n }\n static ɵfac = function RowGroupHeader_Factory(t) {\n return new (t || RowGroupHeader)(i0.ɵɵdirectiveInject(Table));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: RowGroupHeader,\n selectors: [[\"\", \"pRowGroupHeader\", \"\"]],\n hostAttrs: [1, \"p-rowgroup-header\", \"p-element\"],\n hostVars: 2,\n hostBindings: function RowGroupHeader_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵstyleProp(\"top\", ctx.getFrozenRowGroupHeaderStickyPosition);\n }\n }\n });\n }\n return RowGroupHeader;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet FrozenColumn = /*#__PURE__*/(() => {\n class FrozenColumn {\n el;\n zone;\n get frozen() {\n return this._frozen;\n }\n set frozen(val) {\n this._frozen = val;\n this.updateStickyPosition();\n }\n alignFrozen = 'left';\n constructor(el, zone) {\n this.el = el;\n this.zone = zone;\n }\n ngAfterViewChecked() {\n this.zone.runOutsideAngular(() => {\n this.recalculateColumns();\n });\n }\n recalculateColumns() {\n this.updateStickyPosition();\n }\n _frozen = true;\n updateStickyPosition() {\n if (this._frozen) {\n if (this.alignFrozen === 'right') {\n let right = 0;\n let next = this.el.nativeElement.nextElementSibling;\n if (next) {\n right = DomHandler.getOuterWidth(next) + (parseFloat(next.style.right) || 0);\n }\n this.el.nativeElement.style.right = right + 'px';\n } else {\n let left = 0;\n let prev = this.el.nativeElement.previousElementSibling;\n if (prev) {\n left = DomHandler.getOuterWidth(prev) + (parseFloat(prev.style.left) || 0);\n }\n this.el.nativeElement.style.left = left + 'px';\n }\n const filterRow = this.el.nativeElement?.parentElement?.nextElementSibling;\n if (filterRow) {\n let index = DomHandler.index(this.el.nativeElement);\n if (filterRow.children && filterRow.children[index]) {\n filterRow.children[index].style.left = this.el.nativeElement.style.left;\n filterRow.children[index].style.right = this.el.nativeElement.style.right;\n }\n }\n }\n }\n static ɵfac = function FrozenColumn_Factory(t) {\n return new (t || FrozenColumn)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: FrozenColumn,\n selectors: [[\"\", \"pFrozenColumn\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n hostVars: 2,\n hostBindings: function FrozenColumn_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"resize\", function FrozenColumn_resize_HostBindingHandler($event) {\n return ctx.recalculateColumns($event);\n }, false, i0.ɵɵresolveWindow);\n }\n if (rf & 2) {\n i0.ɵɵclassProp(\"p-frozen-column\", ctx.frozen);\n }\n },\n inputs: {\n frozen: \"frozen\",\n alignFrozen: \"alignFrozen\"\n }\n });\n }\n return FrozenColumn;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet SortableColumn = /*#__PURE__*/(() => {\n class SortableColumn {\n dt;\n field;\n pSortableColumnDisabled;\n sorted;\n sortOrder;\n subscription;\n constructor(dt) {\n this.dt = dt;\n if (this.isEnabled()) {\n this.subscription = this.dt.tableService.sortSource$.subscribe(sortMeta => {\n this.updateSortState();\n });\n }\n }\n ngOnInit() {\n if (this.isEnabled()) {\n this.updateSortState();\n }\n }\n updateSortState() {\n this.sorted = this.dt.isSorted(this.field);\n this.sortOrder = this.sorted ? this.dt.sortOrder === 1 ? 'ascending' : 'descending' : 'none';\n }\n onClick(event) {\n if (this.isEnabled() && !this.isFilterElement(event.target)) {\n this.updateSortState();\n this.dt.sort({\n originalEvent: event,\n field: this.field\n });\n DomHandler.clearSelection();\n }\n }\n onEnterKey(event) {\n this.onClick(event);\n event.preventDefault();\n }\n isEnabled() {\n return this.pSortableColumnDisabled !== true;\n }\n isFilterElement(element) {\n return this.isFilterElementIconOrButton(element) || this.isFilterElementIconOrButton(element?.parentElement?.parentElement);\n }\n isFilterElementIconOrButton(element) {\n return DomHandler.hasClass(element, 'pi-filter-icon') || DomHandler.hasClass(element, 'p-column-filter-menu-button');\n }\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n static ɵfac = function SortableColumn_Factory(t) {\n return new (t || SortableColumn)(i0.ɵɵdirectiveInject(Table));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: SortableColumn,\n selectors: [[\"\", \"pSortableColumn\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n hostVars: 7,\n hostBindings: function SortableColumn_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"click\", function SortableColumn_click_HostBindingHandler($event) {\n return ctx.onClick($event);\n })(\"keydown.space\", function SortableColumn_keydown_space_HostBindingHandler($event) {\n return ctx.onEnterKey($event);\n })(\"keydown.enter\", function SortableColumn_keydown_enter_HostBindingHandler($event) {\n return ctx.onEnterKey($event);\n });\n }\n if (rf & 2) {\n i0.ɵɵattribute(\"tabindex\", ctx.isEnabled() ? \"0\" : null)(\"role\", \"columnheader\")(\"aria-sort\", ctx.sortOrder);\n i0.ɵɵclassProp(\"p-sortable-column\", ctx.isEnabled())(\"p-highlight\", ctx.sorted);\n }\n },\n inputs: {\n field: [0, \"pSortableColumn\", \"field\"],\n pSortableColumnDisabled: [2, \"pSortableColumnDisabled\", \"pSortableColumnDisabled\", booleanAttribute]\n },\n features: [i0.ɵɵInputTransformsFeature]\n });\n }\n return SortableColumn;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet SortIcon = /*#__PURE__*/(() => {\n class SortIcon {\n dt;\n cd;\n field;\n subscription;\n sortOrder;\n constructor(dt, cd) {\n this.dt = dt;\n this.cd = cd;\n this.subscription = this.dt.tableService.sortSource$.subscribe(sortMeta => {\n this.updateSortState();\n });\n }\n ngOnInit() {\n this.updateSortState();\n }\n onClick(event) {\n event.preventDefault();\n }\n updateSortState() {\n if (this.dt.sortMode === 'single') {\n this.sortOrder = this.dt.isSorted(this.field) ? this.dt.sortOrder : 0;\n } else if (this.dt.sortMode === 'multiple') {\n let sortMeta = this.dt.getSortMeta(this.field);\n this.sortOrder = sortMeta ? sortMeta.order : 0;\n }\n this.cd.markForCheck();\n }\n getMultiSortMetaIndex() {\n let multiSortMeta = this.dt._multiSortMeta;\n let index = -1;\n if (multiSortMeta && this.dt.sortMode === 'multiple' && this.dt.showInitialSortBadge && multiSortMeta.length > 1) {\n for (let i = 0; i < multiSortMeta.length; i++) {\n let meta = multiSortMeta[i];\n if (meta.field === this.field || meta.field === this.field) {\n index = i;\n break;\n }\n }\n }\n return index;\n }\n getBadgeValue() {\n let index = this.getMultiSortMetaIndex();\n return this.dt.groupRowsBy && index > -1 ? index : index + 1;\n }\n isMultiSorted() {\n return this.dt.sortMode === 'multiple' && this.getMultiSortMetaIndex() > -1;\n }\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n static ɵfac = function SortIcon_Factory(t) {\n return new (t || SortIcon)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: SortIcon,\n selectors: [[\"p-sortIcon\"]],\n hostAttrs: [1, \"p-element\"],\n inputs: {\n field: \"field\"\n },\n decls: 3,\n vars: 3,\n consts: [[4, \"ngIf\"], [\"class\", \"p-sortable-column-icon\", 4, \"ngIf\"], [\"class\", \"p-sortable-column-badge\", 4, \"ngIf\"], [3, \"styleClass\", 4, \"ngIf\"], [3, \"styleClass\"], [1, \"p-sortable-column-icon\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [1, \"p-sortable-column-badge\"]],\n template: function SortIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, SortIcon_ng_container_0_Template, 4, 3, \"ng-container\", 0)(1, SortIcon_span_1_Template, 2, 4, \"span\", 1)(2, SortIcon_span_2_Template, 2, 1, \"span\", 2);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", !ctx.dt.sortIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.dt.sortIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.isMultiSorted());\n }\n },\n dependencies: () => [i3.NgIf, i3.NgTemplateOutlet, SortAltIcon, SortAmountUpAltIcon, SortAmountDownIcon],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n return SortIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet SelectableRow = /*#__PURE__*/(() => {\n class SelectableRow {\n dt;\n tableService;\n el;\n data;\n index;\n pSelectableRowDisabled;\n selected;\n subscription;\n constructor(dt, tableService, el) {\n this.dt = dt;\n this.tableService = tableService;\n this.el = el;\n if (this.isEnabled()) {\n this.subscription = this.dt.tableService.selectionSource$.subscribe(() => {\n this.selected = this.dt.isSelected(this.data);\n });\n }\n }\n setRowTabIndex() {\n if (this.dt.selectionMode === 'single' || this.dt.selectionMode === 'multiple') {\n return !this.dt.selection ? 0 : this.dt.anchorRowIndex === this.index ? 0 : -1;\n }\n }\n ngOnInit() {\n if (this.isEnabled()) {\n this.selected = this.dt.isSelected(this.data);\n }\n }\n onClick(event) {\n if (this.isEnabled()) {\n this.dt.handleRowClick({\n originalEvent: event,\n rowData: this.data,\n rowIndex: this.index\n });\n }\n }\n onTouchEnd(event) {\n if (this.isEnabled()) {\n this.dt.handleRowTouchEnd(event);\n }\n }\n onKeyDown(event) {\n switch (event.code) {\n case 'ArrowDown':\n this.onArrowDownKey(event);\n break;\n case 'ArrowUp':\n this.onArrowUpKey(event);\n break;\n case 'Home':\n this.onHomeKey(event);\n break;\n case 'End':\n this.onEndKey(event);\n break;\n case 'Space':\n this.onSpaceKey(event);\n break;\n case 'Enter':\n this.onEnterKey(event);\n break;\n default:\n if (event.code === 'KeyA' && (event.metaKey || event.ctrlKey) && this.dt.selectionMode === 'multiple') {\n const data = this.dt.dataToRender(this.dt.processedData);\n this.dt.selection = [...data];\n this.dt.selectRange(event, data.length - 1, true);\n event.preventDefault();\n }\n break;\n }\n }\n onArrowDownKey(event) {\n if (!this.isEnabled()) {\n return;\n }\n const row = event.currentTarget;\n const nextRow = this.findNextSelectableRow(row);\n if (nextRow) {\n nextRow.focus();\n }\n event.preventDefault();\n }\n onArrowUpKey(event) {\n if (!this.isEnabled()) {\n return;\n }\n const row = event.currentTarget;\n const prevRow = this.findPrevSelectableRow(row);\n if (prevRow) {\n prevRow.focus();\n }\n event.preventDefault();\n }\n onEnterKey(event) {\n if (!this.isEnabled()) {\n return;\n }\n this.dt.handleRowClick({\n originalEvent: event,\n rowData: this.data,\n rowIndex: this.index\n });\n }\n onEndKey(event) {\n const lastRow = this.findLastSelectableRow();\n lastRow && this.focusRowChange(this.el.nativeElement, lastRow);\n if (event.ctrlKey && event.shiftKey) {\n const data = this.dt.dataToRender(this.dt.rows);\n const lastSelectableRowIndex = DomHandler.getAttribute(lastRow, 'index');\n this.dt.anchorRowIndex = lastSelectableRowIndex;\n this.dt.selection = data.slice(this.index, data.length);\n this.dt.selectRange(event, this.index);\n }\n event.preventDefault();\n }\n onHomeKey(event) {\n const firstRow = this.findFirstSelectableRow();\n firstRow && this.focusRowChange(this.el.nativeElement, firstRow);\n if (event.ctrlKey && event.shiftKey) {\n const data = this.dt.dataToRender(this.dt.rows);\n const firstSelectableRowIndex = DomHandler.getAttribute(firstRow, 'index');\n this.dt.anchorRowIndex = this.dt.anchorRowIndex || firstSelectableRowIndex;\n this.dt.selection = data.slice(0, this.index + 1);\n this.dt.selectRange(event, this.index);\n }\n event.preventDefault();\n }\n onSpaceKey(event) {\n const isInput = event.target instanceof HTMLInputElement || event.target instanceof HTMLSelectElement || event.target instanceof HTMLTextAreaElement;\n if (isInput) {\n return;\n } else {\n this.onEnterKey(event);\n if (event.shiftKey && this.dt.selection !== null) {\n const data = this.dt.dataToRender(this.dt.rows);\n let index;\n if (ObjectUtils.isNotEmpty(this.dt.selection) && this.dt.selection.length > 0) {\n let firstSelectedRowIndex, lastSelectedRowIndex;\n firstSelectedRowIndex = ObjectUtils.findIndexInList(this.dt.selection[0], data);\n lastSelectedRowIndex = ObjectUtils.findIndexInList(this.dt.selection[this.dt.selection.length - 1], data);\n index = this.index <= firstSelectedRowIndex ? lastSelectedRowIndex : firstSelectedRowIndex;\n } else {\n index = ObjectUtils.findIndexInList(this.dt.selection, data);\n }\n this.dt.anchorRowIndex = index;\n this.dt.selection = index !== this.index ? data.slice(Math.min(index, this.index), Math.max(index, this.index) + 1) : [this.data];\n this.dt.selectRange(event, this.index);\n }\n event.preventDefault();\n }\n }\n focusRowChange(firstFocusableRow, currentFocusedRow) {\n firstFocusableRow.tabIndex = '-1';\n currentFocusedRow.tabIndex = '0';\n DomHandler.focus(currentFocusedRow);\n }\n findLastSelectableRow() {\n const rows = DomHandler.find(this.dt.el.nativeElement, '.p-selectable-row');\n return rows ? rows[rows.length - 1] : null;\n }\n findFirstSelectableRow() {\n const firstRow = DomHandler.findSingle(this.dt.el.nativeElement, '.p-selectable-row');\n return firstRow;\n }\n findNextSelectableRow(row) {\n let nextRow = row.nextElementSibling;\n if (nextRow) {\n if (DomHandler.hasClass(nextRow, 'p-selectable-row')) return nextRow;else return this.findNextSelectableRow(nextRow);\n } else {\n return null;\n }\n }\n findPrevSelectableRow(row) {\n let prevRow = row.previousElementSibling;\n if (prevRow) {\n if (DomHandler.hasClass(prevRow, 'p-selectable-row')) return prevRow;else return this.findPrevSelectableRow(prevRow);\n } else {\n return null;\n }\n }\n isEnabled() {\n return this.pSelectableRowDisabled !== true;\n }\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n static ɵfac = function SelectableRow_Factory(t) {\n return new (t || SelectableRow)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(TableService), i0.ɵɵdirectiveInject(i0.ElementRef));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: SelectableRow,\n selectors: [[\"\", \"pSelectableRow\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n hostVars: 7,\n hostBindings: function SelectableRow_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"click\", function SelectableRow_click_HostBindingHandler($event) {\n return ctx.onClick($event);\n })(\"touchend\", function SelectableRow_touchend_HostBindingHandler($event) {\n return ctx.onTouchEnd($event);\n })(\"keydown\", function SelectableRow_keydown_HostBindingHandler($event) {\n return ctx.onKeyDown($event);\n });\n }\n if (rf & 2) {\n i0.ɵɵattribute(\"tabindex\", ctx.setRowTabIndex())(\"data-p-highlight\", ctx.selected)(\"data-p-selectable-row\", true);\n i0.ɵɵclassProp(\"p-selectable-row\", ctx.isEnabled())(\"p-highlight\", ctx.selected);\n }\n },\n inputs: {\n data: [0, \"pSelectableRow\", \"data\"],\n index: [0, \"pSelectableRowIndex\", \"index\"],\n pSelectableRowDisabled: [2, \"pSelectableRowDisabled\", \"pSelectableRowDisabled\", booleanAttribute]\n },\n features: [i0.ɵɵInputTransformsFeature]\n });\n }\n return SelectableRow;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet SelectableRowDblClick = /*#__PURE__*/(() => {\n class SelectableRowDblClick {\n dt;\n tableService;\n data;\n index;\n pSelectableRowDisabled;\n selected;\n subscription;\n constructor(dt, tableService) {\n this.dt = dt;\n this.tableService = tableService;\n if (this.isEnabled()) {\n this.subscription = this.dt.tableService.selectionSource$.subscribe(() => {\n this.selected = this.dt.isSelected(this.data);\n });\n }\n }\n ngOnInit() {\n if (this.isEnabled()) {\n this.selected = this.dt.isSelected(this.data);\n }\n }\n onClick(event) {\n if (this.isEnabled()) {\n this.dt.handleRowClick({\n originalEvent: event,\n rowData: this.data,\n rowIndex: this.index\n });\n }\n }\n isEnabled() {\n return this.pSelectableRowDisabled !== true;\n }\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n static ɵfac = function SelectableRowDblClick_Factory(t) {\n return new (t || SelectableRowDblClick)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(TableService));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: SelectableRowDblClick,\n selectors: [[\"\", \"pSelectableRowDblClick\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n hostVars: 4,\n hostBindings: function SelectableRowDblClick_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"dblclick\", function SelectableRowDblClick_dblclick_HostBindingHandler($event) {\n return ctx.onClick($event);\n });\n }\n if (rf & 2) {\n i0.ɵɵclassProp(\"p-selectable-row\", ctx.isEnabled())(\"p-highlight\", ctx.selected);\n }\n },\n inputs: {\n data: [0, \"pSelectableRowDblClick\", \"data\"],\n index: [0, \"pSelectableRowIndex\", \"index\"],\n pSelectableRowDisabled: [2, \"pSelectableRowDisabled\", \"pSelectableRowDisabled\", booleanAttribute]\n },\n features: [i0.ɵɵInputTransformsFeature]\n });\n }\n return SelectableRowDblClick;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ContextMenuRow = /*#__PURE__*/(() => {\n class ContextMenuRow {\n dt;\n tableService;\n el;\n data;\n index;\n pContextMenuRowDisabled;\n selected;\n subscription;\n constructor(dt, tableService, el) {\n this.dt = dt;\n this.tableService = tableService;\n this.el = el;\n if (this.isEnabled()) {\n this.subscription = this.dt.tableService.contextMenuSource$.subscribe(data => {\n this.selected = this.dt.equals(this.data, data);\n });\n }\n }\n onContextMenu(event) {\n if (this.isEnabled()) {\n this.dt.handleRowRightClick({\n originalEvent: event,\n rowData: this.data,\n rowIndex: this.index\n });\n this.el.nativeElement.focus();\n event.preventDefault();\n }\n }\n isEnabled() {\n return this.pContextMenuRowDisabled !== true;\n }\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n static ɵfac = function ContextMenuRow_Factory(t) {\n return new (t || ContextMenuRow)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(TableService), i0.ɵɵdirectiveInject(i0.ElementRef));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: ContextMenuRow,\n selectors: [[\"\", \"pContextMenuRow\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n hostVars: 3,\n hostBindings: function ContextMenuRow_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"contextmenu\", function ContextMenuRow_contextmenu_HostBindingHandler($event) {\n return ctx.onContextMenu($event);\n });\n }\n if (rf & 2) {\n i0.ɵɵattribute(\"tabindex\", ctx.isEnabled() ? 0 : undefined);\n i0.ɵɵclassProp(\"p-highlight-contextmenu\", ctx.selected);\n }\n },\n inputs: {\n data: [0, \"pContextMenuRow\", \"data\"],\n index: [0, \"pContextMenuRowIndex\", \"index\"],\n pContextMenuRowDisabled: [2, \"pContextMenuRowDisabled\", \"pContextMenuRowDisabled\", booleanAttribute]\n },\n features: [i0.ɵɵInputTransformsFeature]\n });\n }\n return ContextMenuRow;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet RowToggler = /*#__PURE__*/(() => {\n class RowToggler {\n dt;\n data;\n pRowTogglerDisabled;\n constructor(dt) {\n this.dt = dt;\n }\n onClick(event) {\n if (this.isEnabled()) {\n this.dt.toggleRow(this.data, event);\n event.preventDefault();\n }\n }\n isEnabled() {\n return this.pRowTogglerDisabled !== true;\n }\n static ɵfac = function RowToggler_Factory(t) {\n return new (t || RowToggler)(i0.ɵɵdirectiveInject(Table));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: RowToggler,\n selectors: [[\"\", \"pRowToggler\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n hostBindings: function RowToggler_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"click\", function RowToggler_click_HostBindingHandler($event) {\n return ctx.onClick($event);\n });\n }\n },\n inputs: {\n data: [0, \"pRowToggler\", \"data\"],\n pRowTogglerDisabled: [2, \"pRowTogglerDisabled\", \"pRowTogglerDisabled\", booleanAttribute]\n },\n features: [i0.ɵɵInputTransformsFeature]\n });\n }\n return RowToggler;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ResizableColumn = /*#__PURE__*/(() => {\n class ResizableColumn {\n document;\n platformId;\n renderer;\n dt;\n el;\n zone;\n pResizableColumnDisabled;\n resizer;\n resizerMouseDownListener;\n resizerTouchStartListener;\n resizerTouchMoveListener;\n resizerTouchEndListener;\n documentMouseMoveListener;\n documentMouseUpListener;\n constructor(document, platformId, renderer, dt, el, zone) {\n this.document = document;\n this.platformId = platformId;\n this.renderer = renderer;\n this.dt = dt;\n this.el = el;\n this.zone = zone;\n }\n ngAfterViewInit() {\n if (isPlatformBrowser(this.platformId)) {\n if (this.isEnabled()) {\n DomHandler.addClass(this.el.nativeElement, 'p-resizable-column');\n this.resizer = this.renderer.createElement('span');\n this.renderer.addClass(this.resizer, 'p-column-resizer');\n this.renderer.appendChild(this.el.nativeElement, this.resizer);\n this.zone.runOutsideAngular(() => {\n this.resizerMouseDownListener = this.renderer.listen(this.resizer, 'mousedown', this.onMouseDown.bind(this));\n this.resizerTouchStartListener = this.renderer.listen(this.resizer, 'touchstart', this.onTouchStart.bind(this));\n });\n }\n }\n }\n bindDocumentEvents() {\n this.zone.runOutsideAngular(() => {\n this.documentMouseMoveListener = this.renderer.listen(this.document, 'mousemove', this.onDocumentMouseMove.bind(this));\n this.documentMouseUpListener = this.renderer.listen(this.document, 'mouseup', this.onDocumentMouseUp.bind(this));\n this.resizerTouchMoveListener = this.renderer.listen(this.resizer, 'touchmove', this.onTouchMove.bind(this));\n this.resizerTouchEndListener = this.renderer.listen(this.resizer, 'touchend', this.onTouchEnd.bind(this));\n });\n }\n unbindDocumentEvents() {\n if (this.documentMouseMoveListener) {\n this.documentMouseMoveListener();\n this.documentMouseMoveListener = null;\n }\n if (this.documentMouseUpListener) {\n this.documentMouseUpListener();\n this.documentMouseUpListener = null;\n }\n if (this.resizerTouchMoveListener) {\n this.resizerTouchMoveListener();\n this.resizerTouchMoveListener = null;\n }\n if (this.resizerTouchEndListener) {\n this.resizerTouchEndListener();\n this.resizerTouchEndListener = null;\n }\n }\n onMouseDown(event) {\n this.dt.onColumnResizeBegin(event);\n this.bindDocumentEvents();\n }\n onTouchStart(event) {\n this.dt.onColumnResizeBegin(event);\n this.bindDocumentEvents();\n }\n onTouchMove(event) {\n this.dt.onColumnResize(event);\n }\n onDocumentMouseMove(event) {\n this.dt.onColumnResize(event);\n }\n onDocumentMouseUp(event) {\n this.dt.onColumnResizeEnd();\n this.unbindDocumentEvents();\n }\n onTouchEnd(event) {\n this.dt.onColumnResizeEnd();\n this.unbindDocumentEvents();\n }\n isEnabled() {\n return this.pResizableColumnDisabled !== true;\n }\n ngOnDestroy() {\n if (this.resizerMouseDownListener) {\n this.resizerMouseDownListener();\n this.resizerMouseDownListener = null;\n }\n this.unbindDocumentEvents();\n }\n static ɵfac = function ResizableColumn_Factory(t) {\n return new (t || ResizableColumn)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(PLATFORM_ID), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: ResizableColumn,\n selectors: [[\"\", \"pResizableColumn\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n inputs: {\n pResizableColumnDisabled: [2, \"pResizableColumnDisabled\", \"pResizableColumnDisabled\", booleanAttribute]\n },\n features: [i0.ɵɵInputTransformsFeature]\n });\n }\n return ResizableColumn;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ReorderableColumn = /*#__PURE__*/(() => {\n class ReorderableColumn {\n platformId;\n renderer;\n dt;\n el;\n zone;\n pReorderableColumnDisabled;\n dragStartListener;\n dragOverListener;\n dragEnterListener;\n dragLeaveListener;\n mouseDownListener;\n constructor(platformId, renderer, dt, el, zone) {\n this.platformId = platformId;\n this.renderer = renderer;\n this.dt = dt;\n this.el = el;\n this.zone = zone;\n }\n ngAfterViewInit() {\n if (this.isEnabled()) {\n this.bindEvents();\n }\n }\n bindEvents() {\n if (isPlatformBrowser(this.platformId)) {\n this.zone.runOutsideAngular(() => {\n this.mouseDownListener = this.renderer.listen(this.el.nativeElement, 'mousedown', this.onMouseDown.bind(this));\n this.dragStartListener = this.renderer.listen(this.el.nativeElement, 'dragstart', this.onDragStart.bind(this));\n this.dragOverListener = this.renderer.listen(this.el.nativeElement, 'dragover', this.onDragOver.bind(this));\n this.dragEnterListener = this.renderer.listen(this.el.nativeElement, 'dragenter', this.onDragEnter.bind(this));\n this.dragLeaveListener = this.renderer.listen(this.el.nativeElement, 'dragleave', this.onDragLeave.bind(this));\n });\n }\n }\n unbindEvents() {\n if (this.mouseDownListener) {\n this.mouseDownListener();\n this.mouseDownListener = null;\n }\n if (this.dragStartListener) {\n this.dragStartListener();\n this.dragStartListener = null;\n }\n if (this.dragOverListener) {\n this.dragOverListener();\n this.dragOverListener = null;\n }\n if (this.dragEnterListener) {\n this.dragEnterListener();\n this.dragEnterListener = null;\n }\n if (this.dragLeaveListener) {\n this.dragLeaveListener();\n this.dragLeaveListener = null;\n }\n }\n onMouseDown(event) {\n if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || DomHandler.hasClass(event.target, 'p-column-resizer')) this.el.nativeElement.draggable = false;else this.el.nativeElement.draggable = true;\n }\n onDragStart(event) {\n this.dt.onColumnDragStart(event, this.el.nativeElement);\n }\n onDragOver(event) {\n event.preventDefault();\n }\n onDragEnter(event) {\n this.dt.onColumnDragEnter(event, this.el.nativeElement);\n }\n onDragLeave(event) {\n this.dt.onColumnDragLeave(event);\n }\n onDrop(event) {\n if (this.isEnabled()) {\n this.dt.onColumnDrop(event, this.el.nativeElement);\n }\n }\n isEnabled() {\n return this.pReorderableColumnDisabled !== true;\n }\n ngOnDestroy() {\n this.unbindEvents();\n }\n static ɵfac = function ReorderableColumn_Factory(t) {\n return new (t || ReorderableColumn)(i0.ɵɵdirectiveInject(PLATFORM_ID), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: ReorderableColumn,\n selectors: [[\"\", \"pReorderableColumn\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n hostVars: 2,\n hostBindings: function ReorderableColumn_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"drop\", function ReorderableColumn_drop_HostBindingHandler($event) {\n return ctx.onDrop($event);\n });\n }\n if (rf & 2) {\n i0.ɵɵstyleProp(\"cursor\", ctx.isEnabled() ? \"move\" : \"default\");\n }\n },\n inputs: {\n pReorderableColumnDisabled: [2, \"pReorderableColumnDisabled\", \"pReorderableColumnDisabled\", booleanAttribute]\n },\n features: [i0.ɵɵInputTransformsFeature]\n });\n }\n return ReorderableColumn;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet EditableColumn = /*#__PURE__*/(() => {\n class EditableColumn {\n dt;\n el;\n zone;\n data;\n field;\n rowIndex;\n pEditableColumnDisabled;\n pFocusCellSelector;\n overlayEventListener;\n constructor(dt, el, zone) {\n this.dt = dt;\n this.el = el;\n this.zone = zone;\n }\n ngOnChanges(changes) {\n if (changes.pEditableColumnDisabled?.currentValue === true && DomHandler.hasClass(this.el.nativeElement, 'p-cell-editing')) {\n this.closeEditingCell(false, new Event('cancel'));\n } else if (changes.data?.firstChange === false && this.el.nativeElement) {\n this.dt.updateEditingCell(this.el.nativeElement, this.data, this.field, this.rowIndex);\n }\n }\n ngAfterViewInit() {\n if (this.isEnabled()) {\n DomHandler.addClass(this.el.nativeElement, 'p-editable-column');\n }\n }\n onClick(event) {\n if (this.isEnabled()) {\n this.dt.selfClick = true;\n if (this.dt.editingCell) {\n if (this.dt.editingCell !== this.el.nativeElement) {\n if (!this.dt.isEditingCellValid()) {\n return;\n }\n this.closeEditingCell(true, event);\n this.openCell();\n }\n } else {\n this.openCell();\n }\n }\n }\n openCell() {\n this.dt.updateEditingCell(this.el.nativeElement, this.data, this.field, this.rowIndex);\n DomHandler.addClass(this.el.nativeElement, 'p-cell-editing');\n this.dt.onEditInit.emit({\n field: this.field,\n data: this.data,\n index: this.rowIndex\n });\n this.zone.runOutsideAngular(() => {\n setTimeout(() => {\n let focusCellSelector = this.pFocusCellSelector || 'input, textarea, select';\n let focusableElement = DomHandler.findSingle(this.el.nativeElement, focusCellSelector);\n if (focusableElement) {\n focusableElement.focus();\n }\n }, 50);\n });\n this.overlayEventListener = e => {\n if (this.el && this.el.nativeElement.contains(e.target)) {\n this.dt.selfClick = true;\n }\n };\n this.dt.overlaySubscription = this.dt.overlayService.clickObservable.subscribe(this.overlayEventListener);\n }\n closeEditingCell(completed, event) {\n const eventData = {\n field: this.dt.editingCellField,\n data: this.dt.editingCellData,\n originalEvent: event,\n index: this.dt.editingCellRowIndex\n };\n if (completed) {\n this.dt.onEditComplete.emit(eventData);\n } else {\n this.dt.onEditCancel.emit(eventData);\n this.dt.value.forEach(element => {\n if (element[this.dt.editingCellField] === this.data) {\n element[this.dt.editingCellField] = this.dt.editingCellData;\n }\n });\n }\n DomHandler.removeClass(this.dt.editingCell, 'p-cell-editing');\n this.dt.editingCell = null;\n this.dt.editingCellData = null;\n this.dt.editingCellField = null;\n this.dt.unbindDocumentEditListener();\n if (this.dt.overlaySubscription) {\n this.dt.overlaySubscription.unsubscribe();\n }\n }\n onEnterKeyDown(event) {\n if (this.isEnabled() && !event.shiftKey) {\n if (this.dt.isEditingCellValid()) {\n this.closeEditingCell(true, event);\n }\n event.preventDefault();\n }\n }\n onTabKeyDown(event) {\n if (this.isEnabled()) {\n if (this.dt.isEditingCellValid()) {\n this.closeEditingCell(true, event);\n }\n event.preventDefault();\n }\n }\n onEscapeKeyDown(event) {\n if (this.isEnabled()) {\n if (this.dt.isEditingCellValid()) {\n this.closeEditingCell(false, event);\n }\n event.preventDefault();\n }\n }\n onShiftKeyDown(event) {\n if (this.isEnabled()) {\n if (event.shiftKey) this.moveToPreviousCell(event);else {\n this.moveToNextCell(event);\n }\n }\n }\n onArrowDown(event) {\n if (this.isEnabled()) {\n let currentCell = this.findCell(event.target);\n if (currentCell) {\n let cellIndex = DomHandler.index(currentCell);\n let targetCell = this.findNextEditableColumnByIndex(currentCell, cellIndex);\n if (targetCell) {\n if (this.dt.isEditingCellValid()) {\n this.closeEditingCell(true, event);\n }\n DomHandler.invokeElementMethod(event.target, 'blur');\n DomHandler.invokeElementMethod(targetCell, 'click');\n }\n event.preventDefault();\n }\n }\n }\n onArrowUp(event) {\n if (this.isEnabled()) {\n let currentCell = this.findCell(event.target);\n if (currentCell) {\n let cellIndex = DomHandler.index(currentCell);\n let targetCell = this.findPrevEditableColumnByIndex(currentCell, cellIndex);\n if (targetCell) {\n if (this.dt.isEditingCellValid()) {\n this.closeEditingCell(true, event);\n }\n DomHandler.invokeElementMethod(event.target, 'blur');\n DomHandler.invokeElementMethod(targetCell, 'click');\n }\n event.preventDefault();\n }\n }\n }\n onArrowLeft(event) {\n if (this.isEnabled()) {\n this.moveToPreviousCell(event);\n }\n }\n onArrowRight(event) {\n if (this.isEnabled()) {\n this.moveToNextCell(event);\n }\n }\n findCell(element) {\n if (element) {\n let cell = element;\n while (cell && !DomHandler.hasClass(cell, 'p-cell-editing')) {\n cell = cell.parentElement;\n }\n return cell;\n } else {\n return null;\n }\n }\n moveToPreviousCell(event) {\n let currentCell = this.findCell(event.target);\n if (currentCell) {\n let targetCell = this.findPreviousEditableColumn(currentCell);\n if (targetCell) {\n if (this.dt.isEditingCellValid()) {\n this.closeEditingCell(true, event);\n }\n DomHandler.invokeElementMethod(event.target, 'blur');\n DomHandler.invokeElementMethod(targetCell, 'click');\n event.preventDefault();\n }\n }\n }\n moveToNextCell(event) {\n let currentCell = this.findCell(event.target);\n if (currentCell) {\n let targetCell = this.findNextEditableColumn(currentCell);\n if (targetCell) {\n if (this.dt.isEditingCellValid()) {\n this.closeEditingCell(true, event);\n }\n DomHandler.invokeElementMethod(event.target, 'blur');\n DomHandler.invokeElementMethod(targetCell, 'click');\n event.preventDefault();\n } else {\n if (this.dt.isEditingCellValid()) {\n this.closeEditingCell(true, event);\n }\n }\n }\n }\n findPreviousEditableColumn(cell) {\n let prevCell = cell.previousElementSibling;\n if (!prevCell) {\n let previousRow = cell.parentElement?.previousElementSibling;\n if (previousRow) {\n prevCell = previousRow.lastElementChild;\n }\n }\n if (prevCell) {\n if (DomHandler.hasClass(prevCell, 'p-editable-column')) return prevCell;else return this.findPreviousEditableColumn(prevCell);\n } else {\n return null;\n }\n }\n findNextEditableColumn(cell) {\n let nextCell = cell.nextElementSibling;\n if (!nextCell) {\n let nextRow = cell.parentElement?.nextElementSibling;\n if (nextRow) {\n nextCell = nextRow.firstElementChild;\n }\n }\n if (nextCell) {\n if (DomHandler.hasClass(nextCell, 'p-editable-column')) return nextCell;else return this.findNextEditableColumn(nextCell);\n } else {\n return null;\n }\n }\n findNextEditableColumnByIndex(cell, index) {\n let nextRow = cell.parentElement?.nextElementSibling;\n if (nextRow) {\n let nextCell = nextRow.children[index];\n if (nextCell && DomHandler.hasClass(nextCell, 'p-editable-column')) {\n return nextCell;\n }\n return null;\n } else {\n return null;\n }\n }\n findPrevEditableColumnByIndex(cell, index) {\n let prevRow = cell.parentElement?.previousElementSibling;\n if (prevRow) {\n let prevCell = prevRow.children[index];\n if (prevCell && DomHandler.hasClass(prevCell, 'p-editable-column')) {\n return prevCell;\n }\n return null;\n } else {\n return null;\n }\n }\n isEnabled() {\n return this.pEditableColumnDisabled !== true;\n }\n ngOnDestroy() {\n if (this.dt.overlaySubscription) {\n this.dt.overlaySubscription.unsubscribe();\n }\n }\n static ɵfac = function EditableColumn_Factory(t) {\n return new (t || EditableColumn)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: EditableColumn,\n selectors: [[\"\", \"pEditableColumn\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n hostBindings: function EditableColumn_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"click\", function EditableColumn_click_HostBindingHandler($event) {\n return ctx.onClick($event);\n })(\"keydown.enter\", function EditableColumn_keydown_enter_HostBindingHandler($event) {\n return ctx.onEnterKeyDown($event);\n })(\"keydown.tab\", function EditableColumn_keydown_tab_HostBindingHandler($event) {\n return ctx.onShiftKeyDown($event);\n })(\"keydown.escape\", function EditableColumn_keydown_escape_HostBindingHandler($event) {\n return ctx.onEscapeKeyDown($event);\n })(\"keydown.shift.tab\", function EditableColumn_keydown_shift_tab_HostBindingHandler($event) {\n return ctx.onShiftKeyDown($event);\n })(\"keydown.meta.tab\", function EditableColumn_keydown_meta_tab_HostBindingHandler($event) {\n return ctx.onShiftKeyDown($event);\n })(\"keydown.arrowdown\", function EditableColumn_keydown_arrowdown_HostBindingHandler($event) {\n return ctx.onArrowDown($event);\n })(\"keydown.arrowup\", function EditableColumn_keydown_arrowup_HostBindingHandler($event) {\n return ctx.onArrowUp($event);\n })(\"keydown.arrowleft\", function EditableColumn_keydown_arrowleft_HostBindingHandler($event) {\n return ctx.onArrowLeft($event);\n })(\"keydown.arrowright\", function EditableColumn_keydown_arrowright_HostBindingHandler($event) {\n return ctx.onArrowRight($event);\n });\n }\n },\n inputs: {\n data: [0, \"pEditableColumn\", \"data\"],\n field: [0, \"pEditableColumnField\", \"field\"],\n rowIndex: [0, \"pEditableColumnRowIndex\", \"rowIndex\"],\n pEditableColumnDisabled: [2, \"pEditableColumnDisabled\", \"pEditableColumnDisabled\", booleanAttribute],\n pFocusCellSelector: \"pFocusCellSelector\"\n },\n features: [i0.ɵɵInputTransformsFeature, i0.ɵɵNgOnChangesFeature]\n });\n }\n return EditableColumn;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet EditableRow = /*#__PURE__*/(() => {\n class EditableRow {\n el;\n data;\n pEditableRowDisabled;\n constructor(el) {\n this.el = el;\n }\n isEnabled() {\n return this.pEditableRowDisabled !== true;\n }\n static ɵfac = function EditableRow_Factory(t) {\n return new (t || EditableRow)(i0.ɵɵdirectiveInject(i0.ElementRef));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: EditableRow,\n selectors: [[\"\", \"pEditableRow\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n inputs: {\n data: [0, \"pEditableRow\", \"data\"],\n pEditableRowDisabled: [2, \"pEditableRowDisabled\", \"pEditableRowDisabled\", booleanAttribute]\n },\n features: [i0.ɵɵInputTransformsFeature]\n });\n }\n return EditableRow;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet InitEditableRow = /*#__PURE__*/(() => {\n class InitEditableRow {\n dt;\n editableRow;\n constructor(dt, editableRow) {\n this.dt = dt;\n this.editableRow = editableRow;\n }\n onClick(event) {\n this.dt.initRowEdit(this.editableRow.data);\n event.preventDefault();\n }\n static ɵfac = function InitEditableRow_Factory(t) {\n return new (t || InitEditableRow)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(EditableRow));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: InitEditableRow,\n selectors: [[\"\", \"pInitEditableRow\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n hostBindings: function InitEditableRow_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"click\", function InitEditableRow_click_HostBindingHandler($event) {\n return ctx.onClick($event);\n });\n }\n }\n });\n }\n return InitEditableRow;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet SaveEditableRow = /*#__PURE__*/(() => {\n class SaveEditableRow {\n dt;\n editableRow;\n constructor(dt, editableRow) {\n this.dt = dt;\n this.editableRow = editableRow;\n }\n onClick(event) {\n this.dt.saveRowEdit(this.editableRow.data, this.editableRow.el.nativeElement);\n event.preventDefault();\n }\n static ɵfac = function SaveEditableRow_Factory(t) {\n return new (t || SaveEditableRow)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(EditableRow));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: SaveEditableRow,\n selectors: [[\"\", \"pSaveEditableRow\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n hostBindings: function SaveEditableRow_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"click\", function SaveEditableRow_click_HostBindingHandler($event) {\n return ctx.onClick($event);\n });\n }\n }\n });\n }\n return SaveEditableRow;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet CancelEditableRow = /*#__PURE__*/(() => {\n class CancelEditableRow {\n dt;\n editableRow;\n constructor(dt, editableRow) {\n this.dt = dt;\n this.editableRow = editableRow;\n }\n onClick(event) {\n this.dt.cancelRowEdit(this.editableRow.data);\n event.preventDefault();\n }\n static ɵfac = function CancelEditableRow_Factory(t) {\n return new (t || CancelEditableRow)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(EditableRow));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: CancelEditableRow,\n selectors: [[\"\", \"pCancelEditableRow\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n hostBindings: function CancelEditableRow_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"click\", function CancelEditableRow_click_HostBindingHandler($event) {\n return ctx.onClick($event);\n });\n }\n }\n });\n }\n return CancelEditableRow;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet CellEditor = /*#__PURE__*/(() => {\n class CellEditor {\n dt;\n editableColumn;\n editableRow;\n templates;\n inputTemplate;\n outputTemplate;\n constructor(dt, editableColumn, editableRow) {\n this.dt = dt;\n this.editableColumn = editableColumn;\n this.editableRow = editableRow;\n }\n ngAfterContentInit() {\n this.templates.forEach(item => {\n switch (item.getType()) {\n case 'input':\n this.inputTemplate = item.template;\n break;\n case 'output':\n this.outputTemplate = item.template;\n break;\n }\n });\n }\n get editing() {\n return this.dt.editingCell && this.editableColumn && this.dt.editingCell === this.editableColumn.el.nativeElement || this.editableRow && this.dt.editMode === 'row' && this.dt.isRowEditing(this.editableRow.data);\n }\n static ɵfac = function CellEditor_Factory(t) {\n return new (t || CellEditor)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(EditableColumn, 8), i0.ɵɵdirectiveInject(EditableRow, 8));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: CellEditor,\n selectors: [[\"p-cellEditor\"]],\n contentQueries: function CellEditor_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n }\n },\n hostAttrs: [1, \"p-element\"],\n decls: 2,\n vars: 2,\n consts: [[4, \"ngIf\"], [4, \"ngTemplateOutlet\"]],\n template: function CellEditor_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, CellEditor_ng_container_0_Template, 2, 1, \"ng-container\", 0)(1, CellEditor_ng_container_1_Template, 2, 1, \"ng-container\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", ctx.editing);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx.editing);\n }\n },\n dependencies: [i3.NgIf, i3.NgTemplateOutlet],\n encapsulation: 2\n });\n }\n return CellEditor;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TableRadioButton = /*#__PURE__*/(() => {\n class TableRadioButton {\n dt;\n cd;\n disabled;\n value;\n index;\n inputId;\n name;\n ariaLabel;\n inputViewChild;\n checked;\n focused;\n subscription;\n constructor(dt, cd) {\n this.dt = dt;\n this.cd = cd;\n this.subscription = this.dt.tableService.selectionSource$.subscribe(() => {\n this.checked = this.dt.isSelected(this.value);\n this.ariaLabel = this.ariaLabel || this.dt.config.translation.aria ? this.checked ? this.dt.config.translation.aria.selectRow : this.dt.config.translation.aria.unselectRow : undefined;\n this.cd.markForCheck();\n });\n }\n ngOnInit() {\n this.checked = this.dt.isSelected(this.value);\n }\n onClick(event) {\n if (!this.disabled) {\n this.dt.toggleRowWithRadio({\n originalEvent: event,\n rowIndex: this.index\n }, this.value);\n this.inputViewChild?.nativeElement?.focus();\n }\n DomHandler.clearSelection();\n }\n onFocus() {\n this.focused = true;\n }\n onBlur() {\n this.focused = false;\n }\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n static ɵfac = function TableRadioButton_Factory(t) {\n return new (t || TableRadioButton)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TableRadioButton,\n selectors: [[\"p-tableRadioButton\"]],\n viewQuery: function TableRadioButton_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c23, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputViewChild = _t.first);\n }\n },\n hostAttrs: [1, \"p-element\"],\n inputs: {\n disabled: [2, \"disabled\", \"disabled\", booleanAttribute],\n value: \"value\",\n index: [2, \"index\", \"index\", numberAttribute],\n inputId: \"inputId\",\n name: \"name\",\n ariaLabel: \"ariaLabel\"\n },\n features: [i0.ɵɵInputTransformsFeature],\n decls: 7,\n vars: 16,\n consts: [[\"rb\", \"\"], [\"box\", \"\"], [1, \"p-radiobutton\", \"p-component\", 3, \"click\", \"ngClass\"], [1, \"p-hidden-accessible\"], [\"type\", \"radio\", 3, \"focus\", \"blur\", \"checked\", \"disabled\", \"tabindex\"], [3, \"ngClass\"], [1, \"p-radiobutton-icon\"]],\n template: function TableRadioButton_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 2);\n i0.ɵɵlistener(\"click\", function TableRadioButton_Template_div_click_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onClick($event));\n });\n i0.ɵɵelementStart(1, \"div\", 3)(2, \"input\", 4, 0);\n i0.ɵɵlistener(\"focus\", function TableRadioButton_Template_input_focus_2_listener() {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onFocus());\n })(\"blur\", function TableRadioButton_Template_input_blur_2_listener() {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onBlur());\n });\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(4, \"div\", 5, 1);\n i0.ɵɵelement(6, \"div\", 6);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(8, _c24, ctx.focused, ctx.checked, ctx.disabled));\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"checked\", ctx.checked)(\"disabled\", ctx.disabled)(\"tabindex\", ctx.disabled ? null : \"0\");\n i0.ɵɵattribute(\"id\", ctx.inputId)(\"name\", ctx.name)(\"aria-label\", ctx.ariaLabel);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(12, _c25, ctx.checked, ctx.focused, ctx.disabled));\n }\n },\n dependencies: [i3.NgClass],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n return TableRadioButton;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TableCheckbox = /*#__PURE__*/(() => {\n class TableCheckbox {\n dt;\n tableService;\n cd;\n disabled;\n value;\n index;\n inputId;\n name;\n required;\n ariaLabel;\n checked;\n focused;\n subscription;\n constructor(dt, tableService, cd) {\n this.dt = dt;\n this.tableService = tableService;\n this.cd = cd;\n this.subscription = this.dt.tableService.selectionSource$.subscribe(() => {\n this.checked = this.dt.isSelected(this.value) && !this.disabled;\n this.ariaLabel = this.ariaLabel || this.dt.config.translation.aria ? this.checked ? this.dt.config.translation.aria.selectRow : this.dt.config.translation.aria.unselectRow : undefined;\n this.cd.markForCheck();\n });\n }\n ngOnInit() {\n this.checked = this.dt.isSelected(this.value);\n }\n onClick(event) {\n if (!this.disabled) {\n this.dt.toggleRowWithCheckbox({\n originalEvent: event,\n rowIndex: this.index\n }, this.value);\n }\n DomHandler.clearSelection();\n }\n onFocus() {\n this.focused = true;\n }\n onBlur() {\n this.focused = false;\n }\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n static ɵfac = function TableCheckbox_Factory(t) {\n return new (t || TableCheckbox)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(TableService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TableCheckbox,\n selectors: [[\"p-tableCheckbox\"]],\n hostAttrs: [1, \"p-element\"],\n inputs: {\n disabled: [2, \"disabled\", \"disabled\", booleanAttribute],\n value: \"value\",\n index: [2, \"index\", \"index\", numberAttribute],\n inputId: \"inputId\",\n name: \"name\",\n required: [2, \"required\", \"required\", booleanAttribute],\n ariaLabel: \"ariaLabel\"\n },\n features: [i0.ɵɵInputTransformsFeature],\n decls: 7,\n vars: 18,\n consts: [[\"box\", \"\"], [1, \"p-checkbox\", \"p-component\", 3, \"click\", \"ngClass\"], [1, \"p-hidden-accessible\"], [\"type\", \"checkbox\", 3, \"focus\", \"blur\", \"checked\", \"disabled\", \"tabindex\"], [3, \"ngClass\"], [4, \"ngIf\"], [3, \"styleClass\", 4, \"ngIf\"], [3, \"styleClass\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"]],\n template: function TableCheckbox_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵlistener(\"click\", function TableCheckbox_Template_div_click_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onClick($event));\n });\n i0.ɵɵelementStart(1, \"div\", 2)(2, \"input\", 3);\n i0.ɵɵlistener(\"focus\", function TableCheckbox_Template_input_focus_2_listener() {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onFocus());\n })(\"blur\", function TableCheckbox_Template_input_blur_2_listener() {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onBlur());\n });\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(3, \"div\", 4, 0);\n i0.ɵɵtemplate(5, TableCheckbox_ng_container_5_Template, 2, 1, \"ng-container\", 5)(6, TableCheckbox_span_6_Template, 2, 4, \"span\", 5);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(11, _c26, ctx.focused, ctx.disabled));\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"checked\", ctx.checked)(\"disabled\", ctx.disabled)(\"tabindex\", ctx.disabled ? null : \"0\");\n i0.ɵɵattribute(\"id\", ctx.inputId)(\"name\", ctx.name)(\"required\", ctx.required)(\"aria-label\", ctx.ariaLabel);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(14, _c27, ctx.checked, ctx.focused, ctx.disabled));\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx.dt.checkboxIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.dt.checkboxIconTemplate);\n }\n },\n dependencies: () => [i3.NgClass, i3.NgIf, i3.NgTemplateOutlet, CheckIcon],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n return TableCheckbox;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TableHeaderCheckbox = /*#__PURE__*/(() => {\n class TableHeaderCheckbox {\n dt;\n tableService;\n cd;\n disabled;\n inputId;\n name;\n ariaLabel;\n checked;\n focused;\n selectionChangeSubscription;\n valueChangeSubscription;\n constructor(dt, tableService, cd) {\n this.dt = dt;\n this.tableService = tableService;\n this.cd = cd;\n this.valueChangeSubscription = this.dt.tableService.valueSource$.subscribe(() => {\n this.checked = this.updateCheckedState();\n this.ariaLabel = this.ariaLabel || this.dt.config.translation.aria ? this.checked ? this.dt.config.translation.aria.selectAll : this.dt.config.translation.aria.unselectAll : undefined;\n });\n this.selectionChangeSubscription = this.dt.tableService.selectionSource$.subscribe(() => {\n this.checked = this.updateCheckedState();\n });\n }\n ngOnInit() {\n this.checked = this.updateCheckedState();\n }\n onClick(event) {\n if (!this.disabled) {\n if (this.dt.value && this.dt.value.length > 0) {\n this.dt.toggleRowsWithCheckbox(event, !this.checked);\n }\n }\n DomHandler.clearSelection();\n }\n onFocus() {\n this.focused = true;\n }\n onBlur() {\n this.focused = false;\n }\n isDisabled() {\n return this.disabled || !this.dt.value || !this.dt.value.length;\n }\n ngOnDestroy() {\n if (this.selectionChangeSubscription) {\n this.selectionChangeSubscription.unsubscribe();\n }\n if (this.valueChangeSubscription) {\n this.valueChangeSubscription.unsubscribe();\n }\n }\n updateCheckedState() {\n this.cd.markForCheck();\n if (this.dt._selectAll !== null) {\n return this.dt._selectAll;\n } else {\n const data = this.dt.selectionPageOnly ? this.dt.dataToRender(this.dt.processedData) : this.dt.processedData;\n const val = this.dt.frozenValue ? [...this.dt.frozenValue, ...data] : data;\n const selectableVal = this.dt.rowSelectable ? val.filter((data, index) => this.dt.rowSelectable({\n data,\n index\n })) : val;\n return ObjectUtils.isNotEmpty(selectableVal) && ObjectUtils.isNotEmpty(this.dt.selection) && selectableVal.every(v => this.dt.selection.some(s => this.dt.equals(v, s)));\n }\n }\n static ɵfac = function TableHeaderCheckbox_Factory(t) {\n return new (t || TableHeaderCheckbox)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(TableService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TableHeaderCheckbox,\n selectors: [[\"p-tableHeaderCheckbox\"]],\n hostAttrs: [1, \"p-element\"],\n inputs: {\n disabled: [2, \"disabled\", \"disabled\", booleanAttribute],\n inputId: \"inputId\",\n name: \"name\",\n ariaLabel: \"ariaLabel\"\n },\n features: [i0.ɵɵInputTransformsFeature],\n decls: 8,\n vars: 17,\n consts: [[\"cb\", \"\"], [\"box\", \"\"], [1, \"p-checkbox\", \"p-component\", 3, \"click\", \"ngClass\"], [1, \"p-hidden-accessible\"], [\"type\", \"checkbox\", 3, \"focus\", \"blur\", \"tabindex\", \"checked\", \"disabled\"], [3, \"ngClass\"], [4, \"ngIf\"], [\"class\", \"p-checkbox-icon\", 4, \"ngIf\"], [3, \"styleClass\", 4, \"ngIf\"], [3, \"styleClass\"], [1, \"p-checkbox-icon\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"]],\n template: function TableHeaderCheckbox_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 2);\n i0.ɵɵlistener(\"click\", function TableHeaderCheckbox_Template_div_click_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onClick($event));\n });\n i0.ɵɵelementStart(1, \"div\", 3)(2, \"input\", 4, 0);\n i0.ɵɵlistener(\"focus\", function TableHeaderCheckbox_Template_input_focus_2_listener() {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onFocus());\n })(\"blur\", function TableHeaderCheckbox_Template_input_blur_2_listener() {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onBlur());\n });\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(4, \"div\", 5, 1);\n i0.ɵɵtemplate(6, TableHeaderCheckbox_ng_container_6_Template, 2, 1, \"ng-container\", 6)(7, TableHeaderCheckbox_span_7_Template, 2, 4, \"span\", 7);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(10, _c26, ctx.focused, ctx.isDisabled()));\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"tabindex\", ctx.disabled ? null : \"0\")(\"checked\", ctx.checked)(\"disabled\", ctx.isDisabled());\n i0.ɵɵattribute(\"id\", ctx.inputId)(\"name\", ctx.name)(\"aria-label\", ctx.ariaLabel);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(13, _c28, ctx.checked, ctx.focused, ctx.isDisabled()));\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx.dt.headerCheckboxIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.dt.headerCheckboxIconTemplate);\n }\n },\n dependencies: () => [i3.NgClass, i3.NgIf, i3.NgTemplateOutlet, CheckIcon],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n return TableHeaderCheckbox;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ReorderableRowHandle = /*#__PURE__*/(() => {\n class ReorderableRowHandle {\n el;\n constructor(el) {\n this.el = el;\n }\n ngAfterViewInit() {\n DomHandler.addClass(this.el.nativeElement, 'p-datatable-reorderablerow-handle');\n }\n static ɵfac = function ReorderableRowHandle_Factory(t) {\n return new (t || ReorderableRowHandle)(i0.ɵɵdirectiveInject(i0.ElementRef));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: ReorderableRowHandle,\n selectors: [[\"\", \"pReorderableRowHandle\", \"\"]],\n hostAttrs: [1, \"p-element\"]\n });\n }\n return ReorderableRowHandle;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ReorderableRow = /*#__PURE__*/(() => {\n class ReorderableRow {\n renderer;\n dt;\n el;\n zone;\n index;\n pReorderableRowDisabled;\n mouseDownListener;\n dragStartListener;\n dragEndListener;\n dragOverListener;\n dragLeaveListener;\n dropListener;\n constructor(renderer, dt, el, zone) {\n this.renderer = renderer;\n this.dt = dt;\n this.el = el;\n this.zone = zone;\n }\n ngAfterViewInit() {\n if (this.isEnabled()) {\n this.el.nativeElement.droppable = true;\n this.bindEvents();\n }\n }\n bindEvents() {\n this.zone.runOutsideAngular(() => {\n this.mouseDownListener = this.renderer.listen(this.el.nativeElement, 'mousedown', this.onMouseDown.bind(this));\n this.dragStartListener = this.renderer.listen(this.el.nativeElement, 'dragstart', this.onDragStart.bind(this));\n this.dragEndListener = this.renderer.listen(this.el.nativeElement, 'dragend', this.onDragEnd.bind(this));\n this.dragOverListener = this.renderer.listen(this.el.nativeElement, 'dragover', this.onDragOver.bind(this));\n this.dragLeaveListener = this.renderer.listen(this.el.nativeElement, 'dragleave', this.onDragLeave.bind(this));\n });\n }\n unbindEvents() {\n if (this.mouseDownListener) {\n this.mouseDownListener();\n this.mouseDownListener = null;\n }\n if (this.dragStartListener) {\n this.dragStartListener();\n this.dragStartListener = null;\n }\n if (this.dragEndListener) {\n this.dragEndListener();\n this.dragEndListener = null;\n }\n if (this.dragOverListener) {\n this.dragOverListener();\n this.dragOverListener = null;\n }\n if (this.dragLeaveListener) {\n this.dragLeaveListener();\n this.dragLeaveListener = null;\n }\n }\n onMouseDown(event) {\n const targetElement = event.target;\n const isHandleClicked = this.isHandleElement(targetElement);\n this.el.nativeElement.draggable = isHandleClicked;\n }\n isHandleElement(element) {\n if (element?.classList.contains('p-datatable-reorderablerow-handle')) {\n return true;\n }\n if (element?.parentElement && !['TD', 'TR'].includes(element?.parentElement?.tagName)) {\n return this.isHandleElement(element?.parentElement);\n }\n return false;\n }\n onDragStart(event) {\n this.dt.onRowDragStart(event, this.index);\n }\n onDragEnd(event) {\n this.dt.onRowDragEnd(event);\n this.el.nativeElement.draggable = false;\n }\n onDragOver(event) {\n this.dt.onRowDragOver(event, this.index, this.el.nativeElement);\n event.preventDefault();\n }\n onDragLeave(event) {\n this.dt.onRowDragLeave(event, this.el.nativeElement);\n }\n isEnabled() {\n return this.pReorderableRowDisabled !== true;\n }\n onDrop(event) {\n if (this.isEnabled() && this.dt.rowDragging) {\n this.dt.onRowDrop(event, this.el.nativeElement);\n }\n event.preventDefault();\n }\n ngOnDestroy() {\n this.unbindEvents();\n }\n static ɵfac = function ReorderableRow_Factory(t) {\n return new (t || ReorderableRow)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone));\n };\n static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: ReorderableRow,\n selectors: [[\"\", \"pReorderableRow\", \"\"]],\n hostAttrs: [1, \"p-element\"],\n hostBindings: function ReorderableRow_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"drop\", function ReorderableRow_drop_HostBindingHandler($event) {\n return ctx.onDrop($event);\n });\n }\n },\n inputs: {\n index: [0, \"pReorderableRow\", \"index\"],\n pReorderableRowDisabled: [2, \"pReorderableRowDisabled\", \"pReorderableRowDisabled\", booleanAttribute]\n },\n features: [i0.ɵɵInputTransformsFeature]\n });\n }\n return ReorderableRow;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ColumnFilter = /*#__PURE__*/(() => {\n class ColumnFilter {\n document;\n el;\n dt;\n renderer;\n config;\n overlayService;\n cd;\n /**\n * Property represented by the column.\n * @group Props\n */\n field;\n /**\n * Type of the input.\n * @group Props\n */\n type = 'text';\n /**\n * Filter display.\n * @group Props\n */\n display = 'row';\n /**\n * Decides whether to display filter menu popup.\n * @group Props\n */\n showMenu = true;\n /**\n * Filter match mode.\n * @group Props\n */\n matchMode;\n /**\n * Filter operator.\n * @defaultValue 'AND'\n * @group Props\n */\n operator = FilterOperator.AND;\n /**\n * Decides whether to display filter operator.\n * @group Props\n */\n showOperator = true;\n /**\n * Decides whether to display clear filter button.\n * @group Props\n */\n showClearButton = true;\n /**\n * Decides whether to display apply filter button.\n * @group Props\n */\n showApplyButton = true;\n /**\n * Decides whether to display filter match modes.\n * @group Props\n */\n showMatchModes = true;\n /**\n * Decides whether to display add filter button.\n * @group Props\n */\n showAddButton = true;\n /**\n * Decides whether to close popup on clear button click.\n * @group Props\n */\n hideOnClear = false;\n /**\n * Filter placeholder.\n * @group Props\n */\n placeholder;\n /**\n * Filter match mode options.\n * @group Props\n */\n matchModeOptions;\n /**\n * Defines maximum amount of constraints.\n * @group Props\n */\n maxConstraints = 2;\n /**\n * Defines minimum fraction of digits.\n * @group Props\n */\n minFractionDigits;\n /**\n * Defines maximum fraction of digits.\n * @group Props\n */\n maxFractionDigits;\n /**\n * Defines prefix of the filter.\n * @group Props\n */\n prefix;\n /**\n * Defines suffix of the filter.\n * @group Props\n */\n suffix;\n /**\n * Defines filter locale.\n * @group Props\n */\n locale;\n /**\n * Defines filter locale matcher.\n * @group Props\n */\n localeMatcher;\n /**\n * Enables currency input.\n * @group Props\n */\n currency;\n /**\n * Defines the display of the currency input.\n * @group Props\n */\n currencyDisplay;\n /**\n * Defines if filter grouping will be enabled.\n * @group Props\n */\n useGrouping = true;\n /**\n * Defines the visibility of buttons.\n * @group Props\n */\n showButtons = true;\n /**\n * Defines the aria-label of the form element.\n * @group Props\n */\n ariaLabel;\n /**\n * Callback to invoke on overlay is shown.\n * @param {AnimationEvent} originalEvent - animation event.\n * @group Emits\n */\n onShow = new EventEmitter();\n /**\n * Callback to invoke on overlay is hidden.\n * @param {AnimationEvent} originalEvent - animation event.\n * @group Emits\n */\n onHide = new EventEmitter();\n icon;\n clearButtonViewChild;\n templates;\n overlaySubscription;\n headerTemplate;\n filterTemplate;\n footerTemplate;\n filterIconTemplate;\n removeRuleIconTemplate;\n addRuleIconTemplate;\n clearFilterIconTemplate;\n operatorOptions;\n overlayVisible;\n overlay;\n scrollHandler;\n documentClickListener;\n documentResizeListener;\n matchModes;\n translationSubscription;\n resetSubscription;\n selfClick;\n overlayEventListener;\n window;\n overlayId;\n get fieldConstraints() {\n return this.dt.filters ? this.dt.filters[this.field] : null;\n }\n get showRemoveIcon() {\n return this.fieldConstraints ? this.fieldConstraints.length > 1 : false;\n }\n get showMenuButton() {\n return this.showMenu && (this.display === 'row' ? this.type !== 'boolean' : true);\n }\n get isShowOperator() {\n return this.showOperator && this.type !== 'boolean';\n }\n get isShowAddConstraint() {\n return this.showAddButton && this.type !== 'boolean' && this.fieldConstraints && this.fieldConstraints.length < this.maxConstraints;\n }\n get showMenuButtonLabel() {\n return this.config.getTranslation(TranslationKeys.SHOW_FILTER_MENU);\n }\n get applyButtonLabel() {\n return this.config.getTranslation(TranslationKeys.APPLY);\n }\n get clearButtonLabel() {\n return this.config.getTranslation(TranslationKeys.CLEAR);\n }\n get addRuleButtonLabel() {\n return this.config.getTranslation(TranslationKeys.ADD_RULE);\n }\n get removeRuleButtonLabel() {\n return this.config.getTranslation(TranslationKeys.REMOVE_RULE);\n }\n get noFilterLabel() {\n return this.config.getTranslation(TranslationKeys.NO_FILTER);\n }\n get filterMenuButtonAriaLabel() {\n return this.config.translation ? this.overlayVisible ? this.config.translation.aria.hideFilterMenu : this.config.translation.aria.showFilterMenu : undefined;\n }\n get removeRuleButtonAriaLabel() {\n return this.config.translation ? this.config.translation.removeRule : undefined;\n }\n get filterOperatorAriaLabel() {\n return this.config.translation ? this.config.translation.aria.filterOperator : undefined;\n }\n get filterConstraintAriaLabel() {\n return this.config.translation ? this.config.translation.aria.filterConstraint : undefined;\n }\n constructor(document, el, dt, renderer, config, overlayService, cd) {\n this.document = document;\n this.el = el;\n this.dt = dt;\n this.renderer = renderer;\n this.config = config;\n this.overlayService = overlayService;\n this.cd = cd;\n this.window = this.document.defaultView;\n }\n ngOnInit() {\n this.overlayId = UniqueComponentId();\n if (!this.dt.filters[this.field]) {\n this.initFieldFilterConstraint();\n }\n this.translationSubscription = this.config.translationObserver.subscribe(() => {\n this.generateMatchModeOptions();\n this.generateOperatorOptions();\n });\n this.generateMatchModeOptions();\n this.generateOperatorOptions();\n }\n generateMatchModeOptions() {\n this.matchModes = this.matchModeOptions || this.config.filterMatchModeOptions[this.type]?.map(key => {\n return {\n label: this.config.getTranslation(key),\n value: key\n };\n });\n }\n generateOperatorOptions() {\n this.operatorOptions = [{\n label: this.config.getTranslation(TranslationKeys.MATCH_ALL),\n value: FilterOperator.AND\n }, {\n label: this.config.getTranslation(TranslationKeys.MATCH_ANY),\n value: FilterOperator.OR\n }];\n }\n ngAfterContentInit() {\n this.templates.forEach(item => {\n switch (item.getType()) {\n case 'header':\n this.headerTemplate = item.template;\n break;\n case 'filter':\n this.filterTemplate = item.template;\n break;\n case 'footer':\n this.footerTemplate = item.template;\n break;\n case 'filtericon':\n this.filterIconTemplate = item.template;\n break;\n case 'clearfiltericon':\n this.clearFilterIconTemplate = item.template;\n break;\n case 'removeruleicon':\n this.removeRuleIconTemplate = item.template;\n break;\n case 'addruleicon':\n this.addRuleIconTemplate = item.template;\n break;\n default:\n this.filterTemplate = item.template;\n break;\n }\n });\n }\n initFieldFilterConstraint() {\n let defaultMatchMode = this.getDefaultMatchMode();\n this.dt.filters[this.field] = this.display == 'row' ? {\n value: null,\n matchMode: defaultMatchMode\n } : [{\n value: null,\n matchMode: defaultMatchMode,\n operator: this.operator\n }];\n }\n onMenuMatchModeChange(value, filterMeta) {\n filterMeta.matchMode = value;\n if (!this.showApplyButton) {\n this.dt._filter();\n }\n }\n onRowMatchModeChange(matchMode) {\n const fieldFilter = this.dt.filters[this.field];\n fieldFilter.matchMode = matchMode;\n if (fieldFilter.value) {\n this.dt._filter();\n }\n this.hide();\n }\n onRowMatchModeKeyDown(event) {\n let item = event.target;\n switch (event.key) {\n case 'ArrowDown':\n var nextItem = this.findNextItem(item);\n if (nextItem) {\n item.removeAttribute('tabindex');\n nextItem.tabIndex = '0';\n nextItem.focus();\n }\n event.preventDefault();\n break;\n case 'ArrowUp':\n var prevItem = this.findPrevItem(item);\n if (prevItem) {\n item.removeAttribute('tabindex');\n prevItem.tabIndex = '0';\n prevItem.focus();\n }\n event.preventDefault();\n break;\n }\n }\n onRowClearItemClick() {\n this.clearFilter();\n this.hide();\n }\n isRowMatchModeSelected(matchMode) {\n return this.dt.filters[this.field].matchMode === matchMode;\n }\n addConstraint() {\n this.dt.filters[this.field].push({\n value: null,\n matchMode: this.getDefaultMatchMode(),\n operator: this.getDefaultOperator()\n });\n DomHandler.focus(this.clearButtonViewChild.nativeElement);\n }\n removeConstraint(filterMeta) {\n this.dt.filters[this.field] = this.dt.filters[this.field].filter(meta => meta !== filterMeta);\n if (!this.showApplyButton) {\n this.dt._filter();\n }\n DomHandler.focus(this.clearButtonViewChild.nativeElement);\n }\n onOperatorChange(value) {\n this.dt.filters[this.field].forEach(filterMeta => {\n filterMeta.operator = value;\n this.operator = value;\n });\n if (!this.showApplyButton) {\n this.dt._filter();\n }\n }\n toggleMenu() {\n this.overlayVisible = !this.overlayVisible;\n }\n onToggleButtonKeyDown(event) {\n switch (event.key) {\n case 'Escape':\n case 'Tab':\n this.overlayVisible = false;\n break;\n case 'ArrowDown':\n if (this.overlayVisible) {\n let focusable = DomHandler.getFocusableElements(this.overlay);\n if (focusable) {\n focusable[0].focus();\n }\n event.preventDefault();\n } else if (event.altKey) {\n this.overlayVisible = true;\n event.preventDefault();\n }\n break;\n case 'Enter':\n this.toggleMenu();\n event.preventDefault();\n break;\n }\n }\n onEscape() {\n this.icon?.nativeElement.focus();\n }\n findNextItem(item) {\n let nextItem = item.nextElementSibling;\n if (nextItem) return DomHandler.hasClass(nextItem, 'p-column-filter-separator') ? this.findNextItem(nextItem) : nextItem;else return item.parentElement?.firstElementChild;\n }\n findPrevItem(item) {\n let prevItem = item.previousElementSibling;\n if (prevItem) return DomHandler.hasClass(prevItem, 'p-column-filter-separator') ? this.findPrevItem(prevItem) : prevItem;else return item.parentElement?.lastElementChild;\n }\n onContentClick() {\n this.selfClick = true;\n }\n onOverlayAnimationStart(event) {\n switch (event.toState) {\n case 'visible':\n this.overlay = event.element;\n this.renderer.appendChild(this.document.body, this.overlay);\n ZIndexUtils.set('overlay', this.overlay, this.config.zIndex.overlay);\n DomHandler.absolutePosition(this.overlay, this.icon?.nativeElement);\n this.bindDocumentClickListener();\n this.bindDocumentResizeListener();\n this.bindScrollListener();\n this.overlayEventListener = e => {\n if (this.overlay && this.overlay.contains(e.target)) {\n this.selfClick = true;\n }\n };\n this.overlaySubscription = this.overlayService.clickObservable.subscribe(this.overlayEventListener);\n this.onShow.emit({\n originalEvent: event\n });\n break;\n case 'void':\n this.onOverlayHide();\n if (this.overlaySubscription) {\n this.overlaySubscription.unsubscribe();\n }\n break;\n }\n }\n onOverlayAnimationEnd(event) {\n switch (event.toState) {\n case 'visible':\n this.focusOnFirstElement();\n break;\n case 'void':\n ZIndexUtils.clear(event.element);\n this.onHide.emit({\n originalEvent: event\n });\n break;\n }\n }\n focusOnFirstElement() {\n if (this.overlay) {\n DomHandler.focus(DomHandler.getFirstFocusableElement(this.overlay, ''));\n }\n }\n getDefaultMatchMode() {\n if (this.matchMode) {\n return this.matchMode;\n } else {\n if (this.type === 'text') return FilterMatchMode.STARTS_WITH;else if (this.type === 'numeric') return FilterMatchMode.EQUALS;else if (this.type === 'date') return FilterMatchMode.DATE_IS;else return FilterMatchMode.CONTAINS;\n }\n }\n getDefaultOperator() {\n return this.dt.filters ? this.dt.filters[this.field][0].operator : this.operator;\n }\n hasRowFilter() {\n return this.dt.filters[this.field] && !this.dt.isFilterBlank(this.dt.filters[this.field].value);\n }\n hasFilter() {\n let fieldFilter = this.dt.filters[this.field];\n if (fieldFilter) {\n if (Array.isArray(fieldFilter)) return !this.dt.isFilterBlank(fieldFilter[0].value);else return !this.dt.isFilterBlank(fieldFilter.value);\n }\n return false;\n }\n isOutsideClicked(event) {\n return !(DomHandler.hasClass(this.overlay?.nextElementSibling, 'p-overlay') || this.overlay?.isSameNode(event.target) || this.overlay?.contains(event.target) || this.icon?.nativeElement.isSameNode(event.target) || this.icon?.nativeElement.contains(event.target) || DomHandler.hasClass(event.target, 'p-column-filter-add-button') || DomHandler.hasClass(event.target.parentElement, 'p-column-filter-add-button') || DomHandler.hasClass(event.target, 'p-column-filter-remove-button') || DomHandler.hasClass(event.target.parentElement, 'p-column-filter-remove-button'));\n }\n bindDocumentClickListener() {\n if (!this.documentClickListener) {\n const documentTarget = this.el ? this.el.nativeElement.ownerDocument : 'document';\n this.documentClickListener = this.renderer.listen(documentTarget, 'mousedown', event => {\n let isDateDialog = false;\n document.querySelectorAll('[role=\"dialog\"]').forEach(d => {\n if (DomHandler.hasClass(d, 'p-datepicker')) isDateDialog = true;\n });\n const targetIsColumnFilterMenuButton = event.target.closest('.p-column-filter-menu-button');\n if (this.overlayVisible && this.isOutsideClicked(event) && (targetIsColumnFilterMenuButton || !isDateDialog)) {\n this.hide();\n }\n this.selfClick = false;\n });\n }\n }\n unbindDocumentClickListener() {\n if (this.documentClickListener) {\n this.documentClickListener();\n this.documentClickListener = null;\n this.selfClick = false;\n }\n }\n bindDocumentResizeListener() {\n if (!this.documentResizeListener) {\n this.documentResizeListener = this.renderer.listen(this.window, 'resize', event => {\n if (this.overlayVisible && !DomHandler.isTouchDevice()) {\n this.hide();\n }\n });\n }\n }\n unbindDocumentResizeListener() {\n if (this.documentResizeListener) {\n this.documentResizeListener();\n this.documentResizeListener = null;\n }\n }\n bindScrollListener() {\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.icon?.nativeElement, () => {\n if (this.overlayVisible) {\n this.hide();\n }\n });\n }\n this.scrollHandler.bindScrollListener();\n }\n unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n hide() {\n this.overlayVisible = false;\n this.cd.markForCheck();\n }\n onOverlayHide() {\n this.unbindDocumentClickListener();\n this.unbindDocumentResizeListener();\n this.unbindScrollListener();\n this.overlay = null;\n }\n clearFilter() {\n this.initFieldFilterConstraint();\n this.dt._filter();\n if (this.hideOnClear) this.hide();\n }\n applyFilter() {\n this.dt._filter();\n this.hide();\n }\n ngOnDestroy() {\n if (this.overlay) {\n this.renderer.appendChild(this.el.nativeElement, this.overlay);\n ZIndexUtils.clear(this.overlay);\n this.onOverlayHide();\n }\n if (this.translationSubscription) {\n this.translationSubscription.unsubscribe();\n }\n if (this.resetSubscription) {\n this.resetSubscription.unsubscribe();\n }\n if (this.overlaySubscription) {\n this.overlaySubscription.unsubscribe();\n }\n }\n static ɵfac = function ColumnFilter_Factory(t) {\n return new (t || ColumnFilter)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i1.PrimeNGConfig), i0.ɵɵdirectiveInject(i1.OverlayService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ColumnFilter,\n selectors: [[\"p-columnFilter\"]],\n contentQueries: function ColumnFilter_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n }\n },\n viewQuery: function ColumnFilter_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c29, 5);\n i0.ɵɵviewQuery(_c30, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.icon = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.clearButtonViewChild = _t.first);\n }\n },\n hostAttrs: [1, \"p-element\"],\n inputs: {\n field: \"field\",\n type: \"type\",\n display: \"display\",\n showMenu: [2, \"showMenu\", \"showMenu\", booleanAttribute],\n matchMode: \"matchMode\",\n operator: \"operator\",\n showOperator: [2, \"showOperator\", \"showOperator\", booleanAttribute],\n showClearButton: [2, \"showClearButton\", \"showClearButton\", booleanAttribute],\n showApplyButton: [2, \"showApplyButton\", \"showApplyButton\", booleanAttribute],\n showMatchModes: [2, \"showMatchModes\", \"showMatchModes\", booleanAttribute],\n showAddButton: [2, \"showAddButton\", \"showAddButton\", booleanAttribute],\n hideOnClear: [2, \"hideOnClear\", \"hideOnClear\", booleanAttribute],\n placeholder: \"placeholder\",\n matchModeOptions: \"matchModeOptions\",\n maxConstraints: [2, \"maxConstraints\", \"maxConstraints\", numberAttribute],\n minFractionDigits: [2, \"minFractionDigits\", \"minFractionDigits\", value => numberAttribute(value, null)],\n maxFractionDigits: [2, \"maxFractionDigits\", \"maxFractionDigits\", value => numberAttribute(value, null)],\n prefix: \"prefix\",\n suffix: \"suffix\",\n locale: \"locale\",\n localeMatcher: \"localeMatcher\",\n currency: \"currency\",\n currencyDisplay: \"currencyDisplay\",\n useGrouping: [2, \"useGrouping\", \"useGrouping\", booleanAttribute],\n showButtons: [2, \"showButtons\", \"showButtons\", booleanAttribute],\n ariaLabel: \"ariaLabel\"\n },\n outputs: {\n onShow: \"onShow\",\n onHide: \"onHide\"\n },\n features: [i0.ɵɵInputTransformsFeature],\n decls: 5,\n vars: 8,\n consts: [[\"icon\", \"\"], [\"menu\", \"\"], [\"clearBtn\", \"\"], [1, \"p-column-filter\", 3, \"ngClass\"], [\"class\", \"p-fluid\", 3, \"type\", \"field\", \"ariaLabel\", \"filterConstraint\", \"filterTemplate\", \"placeholder\", \"minFractionDigits\", \"maxFractionDigits\", \"prefix\", \"suffix\", \"locale\", \"localeMatcher\", \"currency\", \"currencyDisplay\", \"useGrouping\", \"showButtons\", 4, \"ngIf\"], [\"type\", \"button\", \"class\", \"p-column-filter-menu-button p-link\", \"aria-haspopup\", \"true\", 3, \"ngClass\", \"click\", \"keydown\", 4, \"ngIf\"], [\"type\", \"button\", \"class\", \"p-column-filter-clear-button p-link\", 3, \"ngClass\", \"click\", 4, \"ngIf\"], [\"role\", \"dialog\", 3, \"ngClass\", \"id\", \"click\", \"keydown.escape\", 4, \"ngIf\"], [1, \"p-fluid\", 3, \"type\", \"field\", \"ariaLabel\", \"filterConstraint\", \"filterTemplate\", \"placeholder\", \"minFractionDigits\", \"maxFractionDigits\", \"prefix\", \"suffix\", \"locale\", \"localeMatcher\", \"currency\", \"currencyDisplay\", \"useGrouping\", \"showButtons\"], [\"type\", \"button\", \"aria-haspopup\", \"true\", 1, \"p-column-filter-menu-button\", \"p-link\", 3, \"click\", \"keydown\", \"ngClass\"], [3, \"styleClass\", 4, \"ngIf\"], [\"class\", \"pi-filter-icon\", 4, \"ngIf\"], [3, \"styleClass\"], [1, \"pi-filter-icon\"], [4, \"ngTemplateOutlet\"], [\"type\", \"button\", 1, \"p-column-filter-clear-button\", \"p-link\", 3, \"click\", \"ngClass\"], [4, \"ngIf\"], [\"role\", \"dialog\", 3, \"click\", \"keydown.escape\", \"ngClass\", \"id\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [\"class\", \"p-column-filter-row-items\", 4, \"ngIf\", \"ngIfElse\"], [1, \"p-column-filter-row-items\"], [\"class\", \"p-column-filter-row-item\", 3, \"ngClass\", \"click\", \"keydown\", \"keydown.enter\", 4, \"ngFor\", \"ngForOf\"], [1, \"p-column-filter-separator\"], [1, \"p-column-filter-row-item\", 3, \"click\", \"keydown\", \"keydown.enter\"], [1, \"p-column-filter-row-item\", 3, \"click\", \"keydown\", \"keydown.enter\", \"ngClass\"], [\"class\", \"p-column-filter-operator\", 4, \"ngIf\"], [1, \"p-column-filter-constraints\"], [\"class\", \"p-column-filter-constraint\", 4, \"ngFor\", \"ngForOf\"], [\"class\", \"p-column-filter-add-rule\", 4, \"ngIf\"], [\"class\", \"p-column-filter-buttonbar\", 4, \"ngIf\"], [1, \"p-column-filter-operator\"], [\"styleClass\", \"p-column-filter-operator-dropdown\", 3, \"ngModelChange\", \"options\", \"ngModel\"], [1, \"p-column-filter-constraint\"], [\"styleClass\", \"p-column-filter-matchmode-dropdown\", 3, \"options\", \"ngModel\", \"ngModelChange\", 4, \"ngIf\"], [3, \"type\", \"field\", \"filterConstraint\", \"filterTemplate\", \"placeholder\", \"minFractionDigits\", \"maxFractionDigits\", \"prefix\", \"suffix\", \"locale\", \"localeMatcher\", \"currency\", \"currencyDisplay\", \"useGrouping\"], [\"type\", \"button\", \"pButton\", \"\", \"class\", \"p-column-filter-remove-button p-button-text p-button-danger p-button-sm\", \"pRipple\", \"\", 3, \"label\", \"click\", 4, \"ngIf\"], [\"styleClass\", \"p-column-filter-matchmode-dropdown\", 3, \"ngModelChange\", \"options\", \"ngModel\"], [\"type\", \"button\", \"pButton\", \"\", \"pRipple\", \"\", 1, \"p-column-filter-remove-button\", \"p-button-text\", \"p-button-danger\", \"p-button-sm\", 3, \"click\", \"label\"], [1, \"p-column-filter-add-rule\"], [\"type\", \"button\", \"pButton\", \"\", \"pRipple\", \"\", 1, \"p-column-filter-add-button\", \"p-button-text\", \"p-button-sm\", 3, \"click\", \"label\"], [1, \"p-column-filter-buttonbar\"], [\"type\", \"button\", \"pButton\", \"\", \"class\", \"p-button-outlined p-button-sm\", \"pRipple\", \"\", 3, \"label\", \"click\", 4, \"ngIf\"], [\"type\", \"button\", \"pButton\", \"\", \"class\", \"p-button-sm\", \"pRipple\", \"\", 3, \"label\", \"click\", 4, \"ngIf\"], [\"type\", \"button\", \"pButton\", \"\", \"pRipple\", \"\", 1, \"p-button-outlined\", \"p-button-sm\", 3, \"click\", \"label\"], [\"type\", \"button\", \"pButton\", \"\", \"pRipple\", \"\", 1, \"p-button-sm\", 3, \"click\", \"label\"]],\n template: function ColumnFilter_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 3);\n i0.ɵɵtemplate(1, ColumnFilter_p_columnFilterFormElement_1_Template, 1, 16, \"p-columnFilterFormElement\", 4)(2, ColumnFilter_button_2_Template, 4, 9, \"button\", 5)(3, ColumnFilter_button_3_Template, 4, 6, \"button\", 6)(4, ColumnFilter_div_4_Template, 6, 16, \"div\", 7);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(5, _c31, ctx.display === \"row\", ctx.display === \"menu\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.display === \"row\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.showMenuButton);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.showClearButton && ctx.display === \"row\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.showMenu && ctx.overlayVisible);\n }\n },\n dependencies: () => [i3.NgClass, i3.NgForOf, i3.NgIf, i3.NgTemplateOutlet, i6.Dropdown, i7.NgControlStatus, i7.NgModel, i8.ButtonDirective, FilterIcon, FilterSlashIcon, PlusIcon, TrashIcon, ColumnFilterFormElement],\n encapsulation: 2,\n data: {\n animation: [trigger('overlayAnimation', [transition(':enter', [style({\n opacity: 0,\n transform: 'scaleY(0.8)'\n }), animate('.12s cubic-bezier(0, 0, 0.2, 1)')]), transition(':leave', [animate('.1s linear', style({\n opacity: 0\n }))])])]\n }\n });\n }\n return ColumnFilter;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet ColumnFilterFormElement = /*#__PURE__*/(() => {\n class ColumnFilterFormElement {\n dt;\n colFilter;\n field;\n type;\n filterConstraint;\n filterTemplate;\n placeholder;\n minFractionDigits;\n maxFractionDigits;\n prefix;\n suffix;\n locale;\n localeMatcher;\n currency;\n currencyDisplay;\n useGrouping = true;\n ariaLabel;\n get showButtons() {\n return this.colFilter.showButtons;\n }\n filterCallback;\n constructor(dt, colFilter) {\n this.dt = dt;\n this.colFilter = colFilter;\n }\n ngOnInit() {\n this.filterCallback = value => {\n this.filterConstraint.value = value;\n this.dt._filter();\n };\n }\n onModelChange(value) {\n this.filterConstraint.value = value;\n if (this.type === 'date' || this.type === 'boolean' || value === '') {\n this.dt._filter();\n }\n }\n onTextInputEnterKeyDown(event) {\n this.dt._filter();\n event.preventDefault();\n }\n onNumericInputKeyDown(event) {\n if (event.key === 'Enter') {\n this.dt._filter();\n event.preventDefault();\n }\n }\n static ɵfac = function ColumnFilterFormElement_Factory(t) {\n return new (t || ColumnFilterFormElement)(i0.ɵɵdirectiveInject(Table), i0.ɵɵdirectiveInject(ColumnFilter));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ColumnFilterFormElement,\n selectors: [[\"p-columnFilterFormElement\"]],\n hostAttrs: [1, \"p-element\"],\n inputs: {\n field: \"field\",\n type: \"type\",\n filterConstraint: \"filterConstraint\",\n filterTemplate: \"filterTemplate\",\n placeholder: \"placeholder\",\n minFractionDigits: [2, \"minFractionDigits\", \"minFractionDigits\", value => numberAttribute(value, null)],\n maxFractionDigits: [2, \"maxFractionDigits\", \"maxFractionDigits\", value => numberAttribute(value, null)],\n prefix: \"prefix\",\n suffix: \"suffix\",\n locale: \"locale\",\n localeMatcher: \"localeMatcher\",\n currency: \"currency\",\n currencyDisplay: \"currencyDisplay\",\n useGrouping: [2, \"useGrouping\", \"useGrouping\", booleanAttribute],\n ariaLabel: \"ariaLabel\"\n },\n features: [i0.ɵɵInputTransformsFeature],\n decls: 3,\n vars: 2,\n consts: [[\"builtInElement\", \"\"], [4, \"ngIf\", \"ngIfElse\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [3, \"ngSwitch\"], [\"type\", \"text\", \"pInputText\", \"\", 3, \"ariaLabel\", \"value\", \"input\", \"keydown.enter\", 4, \"ngSwitchCase\"], [3, \"ngModel\", \"showButtons\", \"minFractionDigits\", \"maxFractionDigits\", \"ariaLabel\", \"prefix\", \"suffix\", \"placeholder\", \"mode\", \"locale\", \"localeMatcher\", \"currency\", \"currencyDisplay\", \"useGrouping\", \"ngModelChange\", \"onKeyDown\", 4, \"ngSwitchCase\"], [3, \"ariaLabel\", \"ngModel\", \"ngModelChange\", 4, \"ngSwitchCase\"], [\"appendTo\", \"body\", 3, \"ariaLabel\", \"placeholder\", \"ngModel\", \"ngModelChange\", 4, \"ngSwitchCase\"], [\"type\", \"text\", \"pInputText\", \"\", 3, \"input\", \"keydown.enter\", \"ariaLabel\", \"value\"], [3, \"ngModelChange\", \"onKeyDown\", \"ngModel\", \"showButtons\", \"minFractionDigits\", \"maxFractionDigits\", \"ariaLabel\", \"prefix\", \"suffix\", \"placeholder\", \"mode\", \"locale\", \"localeMatcher\", \"currency\", \"currencyDisplay\", \"useGrouping\"], [3, \"ngModelChange\", \"ariaLabel\", \"ngModel\"], [\"appendTo\", \"body\", 3, \"ngModelChange\", \"ariaLabel\", \"placeholder\", \"ngModel\"]],\n template: function ColumnFilterFormElement_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, ColumnFilterFormElement_ng_container_0_Template, 2, 19, \"ng-container\", 1)(1, ColumnFilterFormElement_ng_template_1_Template, 5, 5, \"ng-template\", null, 0, i0.ɵɵtemplateRefExtractor);\n }\n if (rf & 2) {\n const builtInElement_r6 = i0.ɵɵreference(2);\n i0.ɵɵproperty(\"ngIf\", ctx.filterTemplate)(\"ngIfElse\", builtInElement_r6);\n }\n },\n dependencies: [i3.NgIf, i3.NgTemplateOutlet, i3.NgSwitch, i3.NgSwitchCase, i9.InputNumber, i7.NgControlStatus, i7.NgModel, i10.InputText, i11.Calendar, i12.TriStateCheckbox],\n encapsulation: 2\n });\n }\n return ColumnFilterFormElement;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TableModule = /*#__PURE__*/(() => {\n class TableModule {\n static ɵfac = function TableModule_Factory(t) {\n return new (t || TableModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TableModule\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [CommonModule, PaginatorModule, InputTextModule, DropdownModule, FormsModule, ButtonModule, SelectButtonModule, CalendarModule, InputNumberModule, TriStateCheckboxModule, ScrollerModule, ArrowDownIcon, ArrowUpIcon, SpinnerIcon, SortAltIcon, SortAmountUpAltIcon, SortAmountDownIcon, CheckIcon, FilterIcon, FilterSlashIcon, PlusIcon, TrashIcon, SharedModule, ScrollerModule]\n });\n }\n return TableModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CancelEditableRow, CellEditor, ColumnFilter, ColumnFilterFormElement, ContextMenuRow, EditableColumn, EditableRow, FrozenColumn, InitEditableRow, ReorderableColumn, ReorderableRow, ReorderableRowHandle, ResizableColumn, RowGroupHeader, RowToggler, SaveEditableRow, SelectableRow, SelectableRowDblClick, SortIcon, SortableColumn, Table, TableBody, TableCheckbox, TableHeaderCheckbox, TableModule, TableRadioButton, TableService };\n","import { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Component } from '@angular/core';\nimport { BaseIcon } from 'primeng/baseicon';\nlet MinusIcon = /*#__PURE__*/(() => {\n class MinusIcon extends BaseIcon {\n static ɵfac = /* @__PURE__ */(() => {\n let ɵMinusIcon_BaseFactory;\n return function MinusIcon_Factory(t) {\n return (ɵMinusIcon_BaseFactory || (ɵMinusIcon_BaseFactory = i0.ɵɵgetInheritedFactory(MinusIcon)))(t || MinusIcon);\n };\n })();\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MinusIcon,\n selectors: [[\"MinusIcon\"]],\n standalone: true,\n features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature],\n decls: 2,\n vars: 5,\n consts: [[\"width\", \"14\", \"height\", \"14\", \"viewBox\", \"0 0 14 14\", \"fill\", \"none\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [\"d\", \"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z\", \"fill\", \"currentColor\"]],\n template: function MinusIcon_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵelement(1, \"path\", 1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassMap(ctx.getClassNames());\n i0.ɵɵattribute(\"aria-label\", ctx.ariaLabel)(\"aria-hidden\", ctx.ariaHidden)(\"role\", ctx.role);\n }\n },\n dependencies: [CommonModule],\n encapsulation: 2\n });\n }\n return MinusIcon;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MinusIcon };\n","/*!\n * MIT License\n * \n * Copyright (c) 2020 Filestack\n * \n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * \n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n * \n */\nvar filestack = function (t) {\n var e = {};\n function r(n) {\n if (e[n]) return e[n].exports;\n var i = e[n] = {\n i: n,\n l: !1,\n exports: {}\n };\n return t[n].call(i.exports, i, i.exports, r), i.l = !0, i.exports;\n }\n return r.m = t, r.c = e, r.d = function (t, e, n) {\n r.o(t, e) || Object.defineProperty(t, e, {\n enumerable: !0,\n get: n\n });\n }, r.r = function (t) {\n \"undefined\" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {\n value: \"Module\"\n }), Object.defineProperty(t, \"__esModule\", {\n value: !0\n });\n }, r.t = function (t, e) {\n if (1 & e && (t = r(t)), 8 & e) return t;\n if (4 & e && \"object\" == typeof t && t && t.__esModule) return t;\n var n = Object.create(null);\n if (r.r(n), Object.defineProperty(n, \"default\", {\n enumerable: !0,\n value: t\n }), 2 & e && \"string\" != typeof t) for (var i in t) r.d(n, i, function (e) {\n return t[e];\n }.bind(null, i));\n return n;\n }, r.n = function (t) {\n var e = t && t.__esModule ? function () {\n return t.default;\n } : function () {\n return t;\n };\n return r.d(e, \"a\", e), e;\n }, r.o = function (t, e) {\n return Object.prototype.hasOwnProperty.call(t, e);\n }, r.p = \"\", r(r.s = 70);\n}([function (t, e, r) {\n \"use strict\";\n\n r.d(e, \"c\", function () {\n return i;\n }), r.d(e, \"a\", function () {\n return o;\n }), r.d(e, \"b\", function () {\n return a;\n }), r.d(e, \"d\", function () {\n return s;\n });\n var n = function (t, e) {\n return (n = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (t, e) {\n t.__proto__ = e;\n } || function (t, e) {\n for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);\n })(t, e);\n };\n function i(t, e) {\n if (\"function\" != typeof e && null !== e) throw new TypeError(\"Class extends value \" + String(e) + \" is not a constructor or null\");\n function r() {\n this.constructor = t;\n }\n n(t, e), t.prototype = null === e ? Object.create(e) : (r.prototype = e.prototype, new r());\n }\n var o = function () {\n return (o = Object.assign || function (t) {\n for (var e, r = 1, n = arguments.length; r < n; r++) for (var i in e = arguments[r]) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);\n return t;\n }).apply(this, arguments);\n };\n function a(t, e, r, n) {\n return new (r || (r = Promise))(function (i, o) {\n function a(t) {\n try {\n c(n.next(t));\n } catch (t) {\n o(t);\n }\n }\n function s(t) {\n try {\n c(n.throw(t));\n } catch (t) {\n o(t);\n }\n }\n function c(t) {\n var e;\n t.done ? i(t.value) : (e = t.value, e instanceof r ? e : new r(function (t) {\n t(e);\n })).then(a, s);\n }\n c((n = n.apply(t, e || [])).next());\n });\n }\n function s(t, e) {\n var r,\n n,\n i,\n o,\n a = {\n label: 0,\n sent: function () {\n if (1 & i[0]) throw i[1];\n return i[1];\n },\n trys: [],\n ops: []\n };\n return o = {\n next: s(0),\n throw: s(1),\n return: s(2)\n }, \"function\" == typeof Symbol && (o[Symbol.iterator] = function () {\n return this;\n }), o;\n function s(s) {\n return function (c) {\n return function (s) {\n if (r) throw new TypeError(\"Generator is already executing.\");\n for (; o && (o = 0, s[0] && (a = 0)), a;) try {\n if (r = 1, n && (i = 2 & s[0] ? n.return : s[0] ? n.throw || ((i = n.return) && i.call(n), 0) : n.next) && !(i = i.call(n, s[1])).done) return i;\n switch (n = 0, i && (s = [2 & s[0], i.value]), s[0]) {\n case 0:\n case 1:\n i = s;\n break;\n case 4:\n return a.label++, {\n value: s[1],\n done: !1\n };\n case 5:\n a.label++, n = s[1], s = [0];\n continue;\n case 7:\n s = a.ops.pop(), a.trys.pop();\n continue;\n default:\n if (!(i = a.trys, (i = i.length > 0 && i[i.length - 1]) || 6 !== s[0] && 2 !== s[0])) {\n a = 0;\n continue;\n }\n if (3 === s[0] && (!i || s[1] > i[0] && s[1] < i[3])) {\n a.label = s[1];\n break;\n }\n if (6 === s[0] && a.label < i[1]) {\n a.label = i[1], i = s;\n break;\n }\n if (i && a.label < i[2]) {\n a.label = i[2], a.ops.push(s);\n break;\n }\n i[2] && a.ops.pop(), a.trys.pop();\n continue;\n }\n s = e.call(t, a);\n } catch (t) {\n s = [6, t], n = 0;\n } finally {\n r = i = 0;\n }\n if (5 & s[0]) throw s[1];\n return {\n value: s[0] ? s[1] : void 0,\n done: !0\n };\n }([s, c]);\n };\n }\n }\n Object.create;\n Object.create;\n \"function\" == typeof SuppressedError && SuppressedError;\n}, function (t, e, r) {\n \"use strict\";\n\n r.r(e), r.d(e, \"resolveCdnUrl\", function () {\n return m;\n }), r.d(e, \"resolveHost\", function () {\n return h;\n }), r.d(e, \"removeEmpty\", function () {\n return y;\n }), r.d(e, \"uniqueTime\", function () {\n return v;\n }), r.d(e, \"uniqueId\", function () {\n return g;\n }), r.d(e, \"getMimetype\", function () {\n return b;\n }), r.d(e, \"extensionToMime\", function () {\n return x;\n }), r.d(e, \"sanitizeName\", function () {\n return w;\n }), r.d(e, \"filterObject\", function () {\n return k;\n }), r.d(e, \"cleanUpCallbacks\", function () {\n return _;\n }), r.d(e, \"md5\", function () {\n return u;\n }), r.d(e, \"b64\", function () {\n return p;\n }), r.d(e, \"getVersion\", function () {\n return l;\n }), r.d(e, \"isMobile\", function () {\n return f;\n }), r.d(e, \"isFacebook\", function () {\n return d;\n });\n var n = r(0),\n i = {\n \"application/andrew-inset\": [\"ez\"],\n \"application/applixware\": [\"aw\"],\n \"application/atom+xml\": [\"atom\"],\n \"application/atomcat+xml\": [\"atomcat\"],\n \"application/atomsvc+xml\": [\"atomsvc\"],\n \"application/bdoc\": [\"bdoc\"],\n \"application/ccxml+xml\": [\"ccxml\"],\n \"application/cdmi-capability\": [\"cdmia\"],\n \"application/cdmi-container\": [\"cdmic\"],\n \"application/cdmi-domain\": [\"cdmid\"],\n \"application/cdmi-object\": [\"cdmio\"],\n \"application/cdmi-queue\": [\"cdmiq\"],\n \"application/cu-seeme\": [\"cu\"],\n \"application/dash+xml\": [\"mpd\"],\n \"application/davmount+xml\": [\"davmount\"],\n \"application/docbook+xml\": [\"dbk\"],\n \"application/dssc+der\": [\"dssc\"],\n \"application/dssc+xml\": [\"xdssc\"],\n \"application/ecmascript\": [\"ecma\", \"es\"],\n \"application/emma+xml\": [\"emma\"],\n \"application/epub+zip\": [\"epub\"],\n \"application/exi\": [\"exi\"],\n \"application/font-tdpfr\": [\"pfr\"],\n \"application/geo+json\": [\"geojson\"],\n \"application/gml+xml\": [\"gml\"],\n \"application/gpx+xml\": [\"gpx\"],\n \"application/gxf\": [\"gxf\"],\n \"application/gzip\": [\"gz\"],\n \"application/hjson\": [\"hjson\"],\n \"application/hyperstudio\": [\"stk\"],\n \"application/inkml+xml\": [\"ink\", \"inkml\"],\n \"application/ipfix\": [\"ipfix\"],\n \"application/java-archive\": [\"jar\", \"war\", \"ear\"],\n \"application/java-serialized-object\": [\"ser\"],\n \"application/java-vm\": [\"class\"],\n \"application/javascript\": [\"js\", \"mjs\"],\n \"application/json\": [\"json\", \"map\"],\n \"application/json5\": [\"json5\"],\n \"application/jsonml+json\": [\"jsonml\"],\n \"application/ld+json\": [\"jsonld\"],\n \"application/lost+xml\": [\"lostxml\"],\n \"application/mac-binhex40\": [\"hqx\"],\n \"application/mac-compactpro\": [\"cpt\"],\n \"application/mads+xml\": [\"mads\"],\n \"application/manifest+json\": [\"webmanifest\"],\n \"application/marc\": [\"mrc\"],\n \"application/marcxml+xml\": [\"mrcx\"],\n \"application/mathematica\": [\"ma\", \"nb\", \"mb\"],\n \"application/mathml+xml\": [\"mathml\"],\n \"application/mbox\": [\"mbox\"],\n \"application/mediaservercontrol+xml\": [\"mscml\"],\n \"application/metalink+xml\": [\"metalink\"],\n \"application/metalink4+xml\": [\"meta4\"],\n \"application/mets+xml\": [\"mets\"],\n \"application/mods+xml\": [\"mods\"],\n \"application/mp21\": [\"m21\", \"mp21\"],\n \"application/mp4\": [\"mp4s\", \"m4p\"],\n \"application/msword\": [\"doc\", \"dot\"],\n \"application/mxf\": [\"mxf\"],\n \"application/n-quads\": [\"nq\"],\n \"application/n-triples\": [\"nt\"],\n \"application/octet-stream\": [\"bin\", \"dms\", \"tdms\", \"lrf\", \"mar\", \"so\", \"dist\", \"distz\", \"pkg\", \"bpk\", \"dump\", \"elc\", \"deploy\", \"exe\", \"dll\", \"deb\", \"dmg\", \"iso\", \"msp\", \"buffer\", \"psdata\", \"indt\", \"hpd\", \"mxd\", \"indd\", \"vsm\", \"hpt\"],\n \"application/oda\": [\"oda\"],\n \"application/oebps-package+xml\": [\"opf\"],\n \"application/ogg\": [\"ogx\"],\n \"application/omdoc+xml\": [\"omdoc\"],\n \"application/onenote\": [\"onetoc\", \"onetoc2\", \"onetmp\", \"onepkg\"],\n \"application/oxps\": [\"oxps\"],\n \"application/patch-ops-error+xml\": [\"xer\"],\n \"application/pdf\": [\"pdf\"],\n \"application/pgp-encrypted\": [\"pgp\"],\n \"application/pgp-signature\": [\"asc\", \"sig\"],\n \"application/pics-rules\": [\"prf\"],\n \"application/pkcs10\": [\"p10\"],\n \"application/pkcs7-mime\": [\"p7m\", \"p7c\"],\n \"application/pkcs7-signature\": [\"p7s\"],\n \"application/pkcs8\": [\"p8\"],\n \"application/pkix-attr-cert\": [\"ac\"],\n \"application/pkix-cert\": [\"cer\"],\n \"application/pkix-crl\": [\"crl\"],\n \"application/pkix-pkipath\": [\"pkipath\"],\n \"application/pkixcmp\": [\"pki\"],\n \"application/pls+xml\": [\"pls\"],\n \"application/postscript\": [\"ai\", \"eps\", \"ps\"],\n \"application/pskc+xml\": [\"pskcxml\"],\n \"application/raml+yaml\": [\"raml\"],\n \"application/rdf+xml\": [\"rdf\", \"owl\"],\n \"application/reginfo+xml\": [\"rif\"],\n \"application/relax-ng-compact-syntax\": [\"rnc\"],\n \"application/resource-lists+xml\": [\"rl\"],\n \"application/resource-lists-diff+xml\": [\"rld\"],\n \"application/rls-services+xml\": [\"rs\"],\n \"application/rpki-ghostbusters\": [\"gbr\"],\n \"application/rpki-manifest\": [\"mft\"],\n \"application/rpki-roa\": [\"roa\"],\n \"application/rsd+xml\": [\"rsd\"],\n \"application/rss+xml\": [\"rss\"],\n \"application/rtf\": [\"rtf\"],\n \"application/sbml+xml\": [\"sbml\"],\n \"application/scvp-cv-request\": [\"scq\"],\n \"application/scvp-cv-response\": [\"scs\"],\n \"application/scvp-vp-request\": [\"spq\"],\n \"application/scvp-vp-response\": [\"spp\"],\n \"application/sdp\": [\"sdp\"],\n \"application/set-payment-initiation\": [\"setpay\"],\n \"application/set-registration-initiation\": [\"setreg\"],\n \"application/shf+xml\": [\"shf\"],\n \"application/sieve\": [\"siv\", \"sieve\"],\n \"application/smil+xml\": [\"smi\", \"smil\"],\n \"application/sparql-query\": [\"rq\"],\n \"application/sparql-results+xml\": [\"srx\"],\n \"application/srgs\": [\"gram\"],\n \"application/srgs+xml\": [\"grxml\"],\n \"application/sru+xml\": [\"sru\"],\n \"application/ssdl+xml\": [\"ssdl\"],\n \"application/ssml+xml\": [\"ssml\"],\n \"application/tei+xml\": [\"tei\", \"teicorpus\"],\n \"application/thraud+xml\": [\"tfi\"],\n \"application/timestamped-data\": [\"tsd\"],\n \"application/voicexml+xml\": [\"vxml\"],\n \"application/wasm\": [\"wasm\"],\n \"application/widget\": [\"wgt\"],\n \"application/winhlp\": [\"hlp\"],\n \"application/wsdl+xml\": [\"wsdl\"],\n \"application/wspolicy+xml\": [\"wspolicy\"],\n \"application/xaml+xml\": [\"xaml\"],\n \"application/xcap-diff+xml\": [\"xdf\"],\n \"application/xenc+xml\": [\"xenc\"],\n \"application/xhtml+xml\": [\"xhtml\", \"xht\"],\n \"application/xml\": [\"xml\", \"xsl\", \"xsd\", \"rng\"],\n \"application/xml-dtd\": [\"dtd\"],\n \"application/xop+xml\": [\"xop\"],\n \"application/xproc+xml\": [\"xpl\"],\n \"application/xslt+xml\": [\"xslt\"],\n \"application/xspf+xml\": [\"xspf\"],\n \"application/xv+xml\": [\"mxml\", \"xhvml\", \"xvml\", \"xvm\"],\n \"application/yang\": [\"yang\"],\n \"application/yin+xml\": [\"yin\"],\n \"application/zip\": [\"zip\"],\n \"audio/3gpp\": [\"*3gpp\"],\n \"audio/adpcm\": [\"adp\"],\n \"audio/basic\": [\"au\", \"snd\"],\n \"audio/midi\": [\"mid\", \"midi\", \"kar\", \"rmi\"],\n \"audio/mp3\": [\"*mp3\"],\n \"audio/mp4\": [\"m4a\", \"mp4a\"],\n \"audio/mpeg\": [\"mpga\", \"mp2\", \"mp2a\", \"mp3\", \"m2a\", \"m3a\"],\n \"audio/ogg\": [\"oga\", \"ogg\", \"spx\"],\n \"audio/s3m\": [\"s3m\"],\n \"audio/silk\": [\"sil\"],\n \"audio/wav\": [\"wav\"],\n \"audio/wave\": [\"*wav\"],\n \"audio/webm\": [\"weba\"],\n \"audio/xm\": [\"xm\"],\n \"font/collection\": [\"ttc\"],\n \"font/otf\": [\"otf\"],\n \"font/ttf\": [\"ttf\"],\n \"font/woff\": [\"woff\"],\n \"font/woff2\": [\"woff2\"],\n \"image/aces\": [\"exr\"],\n \"image/apng\": [\"apng\"],\n \"image/bmp\": [\"bmp\"],\n \"image/cgm\": [\"cgm\"],\n \"image/dicom-rle\": [\"drle\"],\n \"image/emf\": [\"emf\"],\n \"image/fits\": [\"fits\"],\n \"image/g3fax\": [\"g3\"],\n \"image/gif\": [\"gif\"],\n \"image/heic\": [\"heic\"],\n \"image/heic-sequence\": [\"heics\"],\n \"image/heif\": [\"heif\"],\n \"image/heif-sequence\": [\"heifs\"],\n \"image/ief\": [\"ief\"],\n \"image/jls\": [\"jls\"],\n \"image/jp2\": [\"jp2\", \"jpg2\"],\n \"image/jpeg\": [\"jpeg\", \"jpg\", \"jpe\"],\n \"image/jpg\": [\"jpeg\", \"jpg\", \"jpe\"],\n \"image/jpm\": [\"jpm\"],\n \"image/jpx\": [\"jpx\", \"jpf\"],\n \"image/jxr\": [\"jxr\"],\n \"image/ktx\": [\"ktx\"],\n \"image/png\": [\"png\"],\n \"image/sgi\": [\"sgi\"],\n \"image/svg+xml\": [\"svg\", \"svgz\"],\n \"image/t38\": [\"t38\"],\n \"image/tiff\": [\"tif\", \"tiff\"],\n \"image/tiff-fx\": [\"tfx\"],\n \"image/webp\": [\"webp\"],\n \"image/wmf\": [\"wmf\"],\n \"message/disposition-notification\": [\"disposition-notification\"],\n \"message/global\": [\"u8msg\"],\n \"message/global-delivery-status\": [\"u8dsn\"],\n \"message/global-disposition-notification\": [\"u8mdn\"],\n \"message/global-headers\": [\"u8hdr\"],\n \"message/rfc822\": [\"eml\", \"mime\"],\n \"model/3mf\": [\"3mf\"],\n \"model/gltf+json\": [\"gltf\"],\n \"model/gltf-binary\": [\"glb\"],\n \"model/iges\": [\"igs\", \"iges\"],\n \"model/mesh\": [\"msh\", \"mesh\", \"silo\"],\n \"model/stl\": [\"stl\"],\n \"model/vrml\": [\"wrl\", \"vrml\"],\n \"model/x3d+binary\": [\"*x3db\", \"x3dbz\"],\n \"model/x3d+fastinfoset\": [\"x3db\"],\n \"model/x3d+vrml\": [\"*x3dv\", \"x3dvz\"],\n \"model/x3d+xml\": [\"x3d\", \"x3dz\"],\n \"model/x3d-vrml\": [\"x3dv\"],\n \"text/cache-manifest\": [\"appcache\", \"manifest\"],\n \"text/calendar\": [\"ics\", \"ifb\"],\n \"text/coffeescript\": [\"coffee\", \"litcoffee\"],\n \"text/css\": [\"css\"],\n \"text/csv\": [\"csv\"],\n \"text/html\": [\"html\", \"htm\", \"shtml\"],\n \"text/jade\": [\"jade\"],\n \"text/jsx\": [\"jsx\"],\n \"text/less\": [\"less\"],\n \"text/markdown\": [\"markdown\", \"md\"],\n \"text/mathml\": [\"mml\"],\n \"text/mdx\": [\"mdx\"],\n \"text/n3\": [\"n3\"],\n \"text/plain\": [\"txt\", \"text\", \"conf\", \"def\", \"list\", \"log\", \"in\", \"ini\"],\n \"text/richtext\": [\"rtx\"],\n \"application/font-ttf\": \"ttf\",\n \"application/vnd.ms-fontobject\": \"eot\",\n \"application/font-otf\": \"otf\",\n \"text/rtf\": [\"*rtf\"],\n \"text/sgml\": [\"sgml\", \"sgm\"],\n \"text/shex\": [\"shex\"],\n \"text/slim\": [\"slim\", \"slm\"],\n \"text/stylus\": [\"stylus\", \"styl\"],\n \"text/tab-separated-values\": [\"tsv\"],\n \"text/troff\": [\"t\", \"tr\", \"roff\", \"man\", \"me\", \"ms\"],\n \"text/turtle\": [\"ttl\"],\n \"text/uri-list\": [\"uri\", \"uris\", \"urls\"],\n \"text/vcard\": [\"vcard\", \"vcr\"],\n \"text/vtt\": [\"vtt\"],\n \"text/xml\": [\"*xml\"],\n \"text/yaml\": [\"yaml\", \"yml\"],\n \"video/3gpp\": [\"3gp\", \"3gpp\"],\n \"video/3gpp2\": [\"3g2\"],\n \"video/h261\": [\"h261\"],\n \"video/h263\": [\"h263\"],\n \"video/h264\": [\"h264\"],\n \"video/jpeg\": [\"jpgv\"],\n \"video/jpm\": [\"*jpm\", \"jpgm\"],\n \"video/mj2\": [\"mj2\", \"mjp2\"],\n \"video/mp2t\": [\"ts\"],\n \"video/mp4\": [\"mp4\", \"mp4v\", \"mpg4\"],\n \"video/mpeg\": [\"mpeg\", \"mpg\", \"mpe\", \"m1v\", \"m2v\"],\n \"video/ogg\": [\"ogv\"],\n \"video/quicktime\": [\"qt\", \"mov\"],\n \"video/webm\": [\"webm\"],\n \"application/prs.cww\": [\"cww\"],\n \"application/vnd.3gpp.pic-bw-large\": [\"plb\"],\n \"application/vnd.3gpp.pic-bw-small\": [\"psb\"],\n \"application/vnd.3gpp.pic-bw-var\": [\"pvb\"],\n \"application/vnd.3gpp2.tcap\": [\"tcap\"],\n \"application/vnd.3m.post-it-notes\": [\"pwn\"],\n \"application/vnd.accpac.simply.aso\": [\"aso\"],\n \"application/vnd.accpac.simply.imp\": [\"imp\"],\n \"application/vnd.acucobol\": [\"acu\"],\n \"application/vnd.acucorp\": [\"atc\", \"acutc\"],\n \"application/vnd.adobe.air-application-installer-package+zip\": [\"air\"],\n \"application/vnd.adobe.formscentral.fcdt\": [\"fcdt\"],\n \"application/vnd.adobe.fxp\": [\"fxp\", \"fxpl\"],\n \"application/vnd.adobe.xdp+xml\": [\"xdp\"],\n \"application/vnd.adobe.xfdf\": [\"xfdf\"],\n \"application/vnd.ahead.space\": [\"ahead\"],\n \"application/vnd.airzip.filesecure.azf\": [\"azf\"],\n \"application/vnd.airzip.filesecure.azs\": [\"azs\"],\n \"application/vnd.amazon.ebook\": [\"azw\"],\n \"application/vnd.americandynamics.acc\": [\"acc\"],\n \"application/vnd.amiga.ami\": [\"ami\"],\n \"application/vnd.android.package-archive\": [\"apk\"],\n \"application/vnd.anser-web-certificate-issue-initiation\": [\"cii\"],\n \"application/vnd.anser-web-funds-transfer-initiation\": [\"fti\"],\n \"application/vnd.antix.game-component\": [\"atx\"],\n \"application/vnd.apple.installer+xml\": [\"mpkg\"],\n \"application/vnd.apple.keynote\": [\"keynote\", \"key\"],\n \"application/vnd.apple.mpegurl\": [\"m3u8\"],\n \"application/vnd.apple.numbers\": [\"numbers\"],\n \"application/vnd.apple.pages\": [\"pages\"],\n \"application/vnd.apple.key\": [\"key\"],\n \"application/vnd.apple.pkpass\": [\"pkpass\"],\n \"application/vnd.aristanetworks.swi\": [\"swi\"],\n \"application/vnd.astraea-software.iota\": [\"iota\"],\n \"application/vnd.audiograph\": [\"aep\"],\n \"application/vnd.blueice.multipass\": [\"mpm\"],\n \"application/vnd.bmi\": [\"bmi\"],\n \"application/vnd.businessobjects\": [\"rep\"],\n \"application/vnd.chemdraw+xml\": [\"cdxml\"],\n \"application/vnd.chipnuts.karaoke-mmd\": [\"mmd\"],\n \"application/vnd.cinderella\": [\"cdy\"],\n \"application/vnd.citationstyles.style+xml\": [\"csl\"],\n \"application/vnd.claymore\": [\"cla\"],\n \"application/vnd.cloanto.rp9\": [\"rp9\"],\n \"application/vnd.clonk.c4group\": [\"c4g\", \"c4d\", \"c4f\", \"c4p\", \"c4u\"],\n \"application/vnd.cluetrust.cartomobile-config\": [\"c11amc\"],\n \"application/vnd.cluetrust.cartomobile-config-pkg\": [\"c11amz\"],\n \"application/vnd.commonspace\": [\"csp\"],\n \"application/vnd.contact.cmsg\": [\"cdbcmsg\"],\n \"application/vnd.cosmocaller\": [\"cmc\"],\n \"application/vnd.crick.clicker\": [\"clkx\"],\n \"application/vnd.crick.clicker.keyboard\": [\"clkk\"],\n \"application/vnd.crick.clicker.palette\": [\"clkp\"],\n \"application/vnd.crick.clicker.template\": [\"clkt\"],\n \"application/vnd.crick.clicker.wordbank\": [\"clkw\"],\n \"application/vnd.criticaltools.wbs+xml\": [\"wbs\"],\n \"application/vnd.ctc-posml\": [\"pml\"],\n \"application/vnd.cups-ppd\": [\"ppd\"],\n \"application/vnd.curl.car\": [\"car\"],\n \"application/vnd.curl.pcurl\": [\"pcurl\"],\n \"application/vnd.dart\": [\"dart\"],\n \"application/vnd.data-vision.rdz\": [\"rdz\"],\n \"application/vnd.dece.data\": [\"uvf\", \"uvvf\", \"uvd\", \"uvvd\"],\n \"application/vnd.dece.ttml+xml\": [\"uvt\", \"uvvt\"],\n \"application/vnd.dece.unspecified\": [\"uvx\", \"uvvx\"],\n \"application/vnd.dece.zip\": [\"uvz\", \"uvvz\"],\n \"application/vnd.denovo.fcselayout-link\": [\"fe_launch\"],\n \"application/vnd.dna\": [\"dna\"],\n \"application/vnd.dolby.mlp\": [\"mlp\"],\n \"application/vnd.dpgraph\": [\"dpg\"],\n \"application/vnd.dreamfactory\": [\"dfac\"],\n \"application/vnd.ds-keypoint\": [\"kpxx\"],\n \"application/vnd.dvb.ait\": [\"ait\"],\n \"application/vnd.dvb.service\": [\"svc\"],\n \"application/vnd.dynageo\": [\"geo\"],\n \"application/vnd.ecowin.chart\": [\"mag\"],\n \"application/vnd.enliven\": [\"nml\"],\n \"application/vnd.epson.esf\": [\"esf\"],\n \"application/vnd.epson.msf\": [\"msf\"],\n \"application/vnd.epson.quickanime\": [\"qam\"],\n \"application/vnd.epson.salt\": [\"slt\"],\n \"application/vnd.epson.ssf\": [\"ssf\"],\n \"application/vnd.eszigno3+xml\": [\"es3\", \"et3\"],\n \"application/vnd.ezpix-album\": [\"ez2\"],\n \"application/vnd.ezpix-package\": [\"ez3\"],\n \"application/vnd.fdf\": [\"fdf\"],\n \"application/vnd.fdsn.mseed\": [\"mseed\"],\n \"application/vnd.fdsn.seed\": [\"seed\", \"dataless\"],\n \"application/vnd.flographit\": [\"gph\"],\n \"application/vnd.fluxtime.clip\": [\"ftc\"],\n \"application/vnd.framemaker\": [\"fm\", \"frame\", \"maker\", \"book\"],\n \"application/vnd.frogans.fnc\": [\"fnc\"],\n \"application/vnd.frogans.ltf\": [\"ltf\"],\n \"application/vnd.fsc.weblaunch\": [\"fsc\"],\n \"application/vnd.fujitsu.oasys\": [\"oas\"],\n \"application/vnd.fujitsu.oasys2\": [\"oa2\"],\n \"application/vnd.fujitsu.oasys3\": [\"oa3\"],\n \"application/vnd.fujitsu.oasysgp\": [\"fg5\"],\n \"application/vnd.fujitsu.oasysprs\": [\"bh2\"],\n \"application/vnd.fujixerox.ddd\": [\"ddd\"],\n \"application/vnd.fujixerox.docuworks\": [\"xdw\"],\n \"application/vnd.fujixerox.docuworks.binder\": [\"xbd\"],\n \"application/vnd.fuzzysheet\": [\"fzs\"],\n \"application/vnd.genomatix.tuxedo\": [\"txd\"],\n \"application/vnd.geogebra.file\": [\"ggb\"],\n \"application/vnd.geogebra.tool\": [\"ggt\"],\n \"application/vnd.geometry-explorer\": [\"gex\", \"gre\"],\n \"application/vnd.geonext\": [\"gxt\"],\n \"application/vnd.geoplan\": [\"g2w\"],\n \"application/vnd.geospace\": [\"g3w\"],\n \"application/vnd.gmx\": [\"gmx\"],\n \"application/vnd.google-apps.document\": [\"gdoc\"],\n \"application/vnd.google-apps.presentation\": [\"gslides\"],\n \"application/vnd.google-apps.spreadsheet\": [\"gsheet\"],\n \"application/vnd.google-earth.kml+xml\": [\"kml\"],\n \"application/vnd.google-earth.kmz\": [\"kmz\"],\n \"application/vnd.grafeq\": [\"gqf\", \"gqs\"],\n \"application/vnd.groove-account\": [\"gac\"],\n \"application/vnd.groove-help\": [\"ghf\"],\n \"application/vnd.groove-identity-message\": [\"gim\"],\n \"application/vnd.groove-injector\": [\"grv\"],\n \"application/vnd.groove-tool-message\": [\"gtm\"],\n \"application/vnd.groove-tool-template\": [\"tpl\"],\n \"application/vnd.groove-vcard\": [\"vcg\"],\n \"application/vnd.hal+xml\": [\"hal\"],\n \"application/vnd.handheld-entertainment+xml\": [\"zmm\"],\n \"application/vnd.hbci\": [\"hbci\"],\n \"application/vnd.hhe.lesson-player\": [\"les\"],\n \"application/vnd.hp-hpgl\": [\"hpgl\"],\n \"application/vnd.hp-hpid\": [\"hpid\"],\n \"application/vnd.hp-hps\": [\"hps\"],\n \"application/vnd.hp-jlyt\": [\"jlt\"],\n \"application/vnd.hp-pcl\": [\"pcl\"],\n \"application/vnd.hp-pclxl\": [\"pclxl\"],\n \"application/vnd.hydrostatix.sof-data\": [\"sfd-hdstx\"],\n \"application/vnd.ibm.minipay\": [\"mpy\"],\n \"application/vnd.ibm.modcap\": [\"afp\", \"listafp\", \"list3820\"],\n \"application/vnd.ibm.rights-management\": [\"irm\"],\n \"application/vnd.ibm.secure-container\": [\"sc\"],\n \"application/vnd.iccprofile\": [\"icc\", \"icm\"],\n \"application/vnd.igloader\": [\"igl\"],\n \"application/vnd.immervision-ivp\": [\"ivp\"],\n \"application/vnd.immervision-ivu\": [\"ivu\"],\n \"application/vnd.insors.igm\": [\"igm\"],\n \"application/vnd.intercon.formnet\": [\"xpw\", \"xpx\"],\n \"application/vnd.intergeo\": [\"i2g\"],\n \"application/vnd.intu.qbo\": [\"qbo\"],\n \"application/vnd.intu.qfx\": [\"qfx\"],\n \"application/vnd.ipunplugged.rcprofile\": [\"rcprofile\"],\n \"application/vnd.irepository.package+xml\": [\"irp\"],\n \"application/vnd.is-xpr\": [\"xpr\"],\n \"application/vnd.isac.fcs\": [\"fcs\"],\n \"application/vnd.jam\": [\"jam\"],\n \"application/vnd.jcp.javame.midlet-rms\": [\"rms\"],\n \"application/vnd.jisp\": [\"jisp\"],\n \"application/vnd.joost.joda-archive\": [\"joda\"],\n \"application/vnd.kahootz\": [\"ktz\", \"ktr\"],\n \"application/vnd.kde.karbon\": [\"karbon\"],\n \"application/vnd.kde.kchart\": [\"chrt\"],\n \"application/vnd.kde.kformula\": [\"kfo\"],\n \"application/vnd.kde.kivio\": [\"flw\"],\n \"application/vnd.kde.kontour\": [\"kon\"],\n \"application/vnd.kde.kpresenter\": [\"kpr\", \"kpt\"],\n \"application/vnd.kde.kspread\": [\"ksp\"],\n \"application/vnd.kde.kword\": [\"kwd\", \"kwt\"],\n \"application/vnd.kenameaapp\": [\"htke\"],\n \"application/vnd.kidspiration\": [\"kia\"],\n \"application/vnd.kinar\": [\"kne\", \"knp\"],\n \"application/vnd.koan\": [\"skp\", \"skd\", \"skt\", \"skm\"],\n \"application/vnd.kodak-descriptor\": [\"sse\"],\n \"application/vnd.las.las+xml\": [\"lasxml\"],\n \"application/vnd.llamagraphics.life-balance.desktop\": [\"lbd\"],\n \"application/vnd.llamagraphics.life-balance.exchange+xml\": [\"lbe\"],\n \"application/vnd.lotus-1-2-3\": [\"123\"],\n \"application/vnd.lotus-approach\": [\"apr\"],\n \"application/vnd.lotus-freelance\": [\"pre\"],\n \"application/vnd.lotus-notes\": [\"nsf\"],\n \"application/vnd.lotus-organizer\": [\"org\"],\n \"application/vnd.lotus-screencam\": [\"scm\"],\n \"application/vnd.lotus-wordpro\": [\"lwp\"],\n \"application/vnd.macports.portpkg\": [\"portpkg\"],\n \"application/vnd.mcd\": [\"mcd\"],\n \"application/vnd.medcalcdata\": [\"mc1\"],\n \"application/vnd.mediastation.cdkey\": [\"cdkey\"],\n \"application/vnd.mfer\": [\"mwf\"],\n \"application/vnd.mfmp\": [\"mfm\"],\n \"application/vnd.micrografx.flo\": [\"flo\"],\n \"application/vnd.micrografx.igx\": [\"igx\"],\n \"application/vnd.mif\": [\"mif\"],\n \"application/vnd.mobius.daf\": [\"daf\"],\n \"application/vnd.mobius.dis\": [\"dis\"],\n \"application/vnd.mobius.mbk\": [\"mbk\"],\n \"application/vnd.mobius.mqy\": [\"mqy\"],\n \"application/vnd.mobius.msl\": [\"msl\"],\n \"application/vnd.mobius.plc\": [\"plc\"],\n \"application/vnd.mobius.txf\": [\"txf\"],\n \"application/vnd.mophun.application\": [\"mpn\"],\n \"application/vnd.mophun.certificate\": [\"mpc\"],\n \"application/vnd.mozilla.xul+xml\": [\"xul\"],\n \"application/vnd.ms-artgalry\": [\"cil\"],\n \"application/vnd.ms-cab-compressed\": [\"cab\"],\n \"application/vnd.ms-excel\": [\"xls\", \"xlm\", \"xla\", \"xlc\", \"xlt\", \"xlw\"],\n \"application/vnd.ms-excel.addin.macroenabled.12\": [\"xlam\"],\n \"application/vnd.ms-excel.sheet.binary.macroenabled.12\": [\"xlsb\"],\n \"application/vnd.ms-excel.sheet.macroenabled.12\": [\"xlsm\"],\n \"application/vnd.ms-excel.template.macroenabled.12\": [\"xltm\"],\n \"application/vnd.ms-htmlhelp\": [\"chm\"],\n \"application/vnd.ms-ims\": [\"ims\"],\n \"application/vnd.ms-lrm\": [\"lrm\"],\n \"application/vnd.ms-officetheme\": [\"thmx\"],\n \"application/vnd.ms-outlook\": [\"msg\"],\n \"application/vnd.ms-pki.seccat\": [\"cat\"],\n \"application/vnd.ms-pki.stl\": [\"*stl\"],\n \"application/vnd.ms-powerpoint\": [\"ppt\", \"pps\", \"pot\"],\n \"application/vnd.ms-powerpoint.addin.macroenabled.12\": [\"ppam\"],\n \"application/vnd.ms-powerpoint.presentation.macroenabled.12\": [\"pptm\"],\n \"application/vnd.ms-powerpoint.slide.macroenabled.12\": [\"sldm\"],\n \"application/vnd.ms-powerpoint.slideshow.macroenabled.12\": [\"ppsm\"],\n \"application/vnd.ms-powerpoint.template.macroenabled.12\": [\"potm\"],\n \"application/vnd.ms-project\": [\"mpp\", \"mpt\"],\n \"application/vnd.ms-word.document.macroenabled.12\": [\"docm\"],\n \"application/vnd.ms-word.template.macroenabled.12\": [\"dotm\"],\n \"application/vnd.ms-works\": [\"wps\", \"wks\", \"wcm\", \"wdb\"],\n \"application/vnd.ms-wpl\": [\"wpl\"],\n \"application/vnd.ms-xpsdocument\": [\"xps\"],\n \"application/vnd.mseq\": [\"mseq\"],\n \"application/vnd.musician\": [\"mus\"],\n \"application/vnd.muvee.style\": [\"msty\"],\n \"application/vnd.mynfc\": [\"taglet\"],\n \"application/vnd.neurolanguage.nlu\": [\"nlu\"],\n \"application/vnd.nitf\": [\"ntf\", \"nitf\"],\n \"application/vnd.noblenet-directory\": [\"nnd\"],\n \"application/vnd.noblenet-sealer\": [\"nns\"],\n \"application/vnd.noblenet-web\": [\"nnw\"],\n \"application/vnd.nokia.n-gage.data\": [\"ngdat\"],\n \"application/vnd.nokia.n-gage.symbian.install\": [\"n-gage\"],\n \"application/vnd.nokia.radio-preset\": [\"rpst\"],\n \"application/vnd.nokia.radio-presets\": [\"rpss\"],\n \"application/vnd.novadigm.edm\": [\"edm\"],\n \"application/vnd.novadigm.edx\": [\"edx\"],\n \"application/vnd.novadigm.ext\": [\"ext\"],\n \"application/vnd.oasis.opendocument.chart\": [\"odc\"],\n \"application/vnd.oasis.opendocument.chart-template\": [\"otc\"],\n \"application/vnd.oasis.opendocument.database\": [\"odb\"],\n \"application/vnd.oasis.opendocument.formula\": [\"odf\"],\n \"application/vnd.oasis.opendocument.formula-template\": [\"odft\"],\n \"application/vnd.oasis.opendocument.graphics\": [\"odg\"],\n \"application/vnd.oasis.opendocument.graphics-template\": [\"otg\"],\n \"application/vnd.oasis.opendocument.image\": [\"odi\"],\n \"application/vnd.oasis.opendocument.image-template\": [\"oti\"],\n \"application/vnd.oasis.opendocument.presentation\": [\"odp\"],\n \"application/vnd.oasis.opendocument.presentation-template\": [\"otp\"],\n \"application/vnd.oasis.opendocument.spreadsheet\": [\"ods\"],\n \"application/vnd.oasis.opendocument.spreadsheet-template\": [\"ots\"],\n \"application/vnd.oasis.opendocument.text\": [\"odt\"],\n \"application/vnd.oasis.opendocument.text-master\": [\"odm\"],\n \"application/vnd.oasis.opendocument.text-template\": [\"ott\"],\n \"application/vnd.oasis.opendocument.text-web\": [\"oth\"],\n \"application/vnd.olpc-sugar\": [\"xo\"],\n \"application/vnd.oma.dd2+xml\": [\"dd2\"],\n \"application/vnd.openofficeorg.extension\": [\"oxt\"],\n \"application/vnd.openxmlformats-officedocument.presentationml.presentation\": [\"pptx\"],\n \"application/vnd.openxmlformats-officedocument.presentationml.slide\": [\"sldx\"],\n \"application/vnd.openxmlformats-officedocument.presentationml.slideshow\": [\"ppsx\"],\n \"application/vnd.openxmlformats-officedocument.presentationml.template\": [\"potx\"],\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\": [\"xlsx\"],\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.template\": [\"xltx\"],\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\": [\"docx\"],\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.template\": [\"dotx\"],\n \"application/vnd.osgeo.mapguide.package\": [\"mgp\"],\n \"application/vnd.osgi.dp\": [\"dp\"],\n \"application/vnd.osgi.subsystem\": [\"esa\"],\n \"application/vnd.palm\": [\"pdb\", \"pqa\", \"oprc\"],\n \"application/vnd.pawaafile\": [\"paw\"],\n \"application/vnd.pg.format\": [\"str\"],\n \"application/vnd.pg.osasli\": [\"ei6\"],\n \"application/vnd.picsel\": [\"efif\"],\n \"application/vnd.pmi.widget\": [\"wg\"],\n \"application/vnd.pocketlearn\": [\"plf\"],\n \"application/vnd.powerbuilder6\": [\"pbd\"],\n \"application/vnd.previewsystems.box\": [\"box\"],\n \"application/vnd.proteus.magazine\": [\"mgz\"],\n \"application/vnd.publishare-delta-tree\": [\"qps\"],\n \"application/vnd.pvi.ptid1\": [\"ptid\"],\n \"application/vnd.quark.quarkxpress\": [\"qxd\", \"qxt\", \"qwd\", \"qwt\", \"qxl\", \"qxb\"],\n \"application/vnd.realvnc.bed\": [\"bed\"],\n \"application/vnd.recordare.musicxml\": [\"mxl\"],\n \"application/vnd.recordare.musicxml+xml\": [\"musicxml\"],\n \"application/vnd.rig.cryptonote\": [\"cryptonote\"],\n \"application/vnd.rim.cod\": [\"cod\"],\n \"application/vnd.rn-realmedia\": [\"rm\"],\n \"application/vnd.rn-realmedia-vbr\": [\"rmvb\"],\n \"application/vnd.route66.link66+xml\": [\"link66\"],\n \"application/vnd.sailingtracker.track\": [\"st\"],\n \"application/vnd.seemail\": [\"see\"],\n \"application/vnd.sema\": [\"sema\"],\n \"application/vnd.semd\": [\"semd\"],\n \"application/vnd.semf\": [\"semf\"],\n \"application/vnd.shana.informed.formdata\": [\"ifm\"],\n \"application/vnd.shana.informed.formtemplate\": [\"itp\"],\n \"application/vnd.shana.informed.interchange\": [\"iif\"],\n \"application/vnd.shana.informed.package\": [\"ipk\"],\n \"application/vnd.simtech-mindmapper\": [\"twd\", \"twds\"],\n \"application/vnd.smaf\": [\"mmf\"],\n \"application/vnd.smart.teacher\": [\"teacher\"],\n \"application/vnd.solent.sdkm+xml\": [\"sdkm\", \"sdkd\"],\n \"application/vnd.spotfire.dxp\": [\"dxp\"],\n \"application/vnd.spotfire.sfs\": [\"sfs\"],\n \"application/vnd.stardivision.calc\": [\"sdc\"],\n \"application/vnd.stardivision.draw\": [\"sda\"],\n \"application/vnd.stardivision.impress\": [\"sdd\"],\n \"application/vnd.stardivision.math\": [\"smf\"],\n \"application/vnd.stardivision.writer\": [\"sdw\", \"vor\"],\n \"application/vnd.stardivision.writer-global\": [\"sgl\"],\n \"application/vnd.stepmania.package\": [\"smzip\"],\n \"application/vnd.stepmania.stepchart\": [\"sm\"],\n \"application/vnd.sun.wadl+xml\": [\"wadl\"],\n \"application/vnd.sun.xml.calc\": [\"sxc\"],\n \"application/vnd.sun.xml.calc.template\": [\"stc\"],\n \"application/vnd.sun.xml.draw\": [\"sxd\"],\n \"application/vnd.sun.xml.draw.template\": [\"std\"],\n \"application/vnd.sun.xml.impress\": [\"sxi\"],\n \"application/vnd.sun.xml.impress.template\": [\"sti\"],\n \"application/vnd.sun.xml.math\": [\"sxm\"],\n \"application/vnd.sun.xml.writer\": [\"sxw\"],\n \"application/vnd.sun.xml.writer.global\": [\"sxg\"],\n \"application/vnd.sun.xml.writer.template\": [\"stw\"],\n \"application/vnd.sus-calendar\": [\"sus\", \"susp\"],\n \"application/vnd.svd\": [\"svd\"],\n \"application/vnd.symbian.install\": [\"sis\", \"sisx\"],\n \"application/vnd.syncml+xml\": [\"xsm\"],\n \"application/vnd.syncml.dm+wbxml\": [\"bdm\"],\n \"application/vnd.syncml.dm+xml\": [\"xdm\"],\n \"application/vnd.tao.intent-module-archive\": [\"tao\"],\n \"application/vnd.tcpdump.pcap\": [\"pcap\", \"cap\", \"dmp\"],\n \"application/vnd.tmobile-livetv\": [\"tmo\"],\n \"application/vnd.trid.tpt\": [\"tpt\"],\n \"application/vnd.triscape.mxs\": [\"mxs\"],\n \"application/vnd.trueapp\": [\"tra\"],\n \"application/vnd.ufdl\": [\"ufd\", \"ufdl\"],\n \"application/vnd.uiq.theme\": [\"utz\"],\n \"application/vnd.umajin\": [\"umj\"],\n \"application/vnd.unity\": [\"unityweb\"],\n \"application/vnd.uoml+xml\": [\"uoml\"],\n \"application/vnd.vcx\": [\"vcx\"],\n \"application/vnd.visio\": [\"vsd\", \"vst\", \"vss\", \"vsw\"],\n \"application/vnd.ms-visio.drawing.main+xml\": [\"vsdx\"],\n \"application/vnd.visionary\": [\"vis\"],\n \"application/vnd.vsf\": [\"vsf\"],\n \"application/vnd.wap.wbxml\": [\"wbxml\"],\n \"application/vnd.wap.wmlc\": [\"wmlc\"],\n \"application/vnd.wap.wmlscriptc\": [\"wmlsc\"],\n \"application/vnd.webturbo\": [\"wtb\"],\n \"application/vnd.wolfram.player\": [\"nbp\"],\n \"application/vnd.wordperfect\": [\"wpd\"],\n \"application/vnd.wqd\": [\"wqd\"],\n \"application/vnd.wt.stf\": [\"stf\"],\n \"application/vnd.xara\": [\"xar\"],\n \"application/vnd.xfdl\": [\"xfdl\"],\n \"application/vnd.yamaha.hv-dic\": [\"hvd\"],\n \"application/vnd.yamaha.hv-script\": [\"hvs\"],\n \"application/vnd.yamaha.hv-voice\": [\"hvp\"],\n \"application/vnd.yamaha.openscoreformat\": [\"osf\"],\n \"application/vnd.yamaha.openscoreformat.osfpvg+xml\": [\"osfpvg\"],\n \"application/vnd.yamaha.smaf-audio\": [\"saf\"],\n \"application/vnd.yamaha.smaf-phrase\": [\"spf\"],\n \"application/vnd.yellowriver-custom-menu\": [\"cmp\"],\n \"application/vnd.zul\": [\"zir\", \"zirz\"],\n \"application/vnd.zzazz.deck+xml\": [\"zaz\"],\n \"application/x-7z-compressed\": [\"7z\"],\n \"application/x-abiword\": [\"abw\"],\n \"application/x-ace-compressed\": [\"ace\"],\n \"application/x-apple-diskimage\": [\"*dmg\"],\n \"application/x-arj\": [\"arj\"],\n \"application/x-authorware-bin\": [\"aab\", \"x32\", \"u32\", \"vox\"],\n \"application/x-authorware-map\": [\"aam\"],\n \"application/x-authorware-seg\": [\"aas\"],\n \"application/x-bcpio\": [\"bcpio\"],\n \"application/x-bdoc\": [\"*bdoc\"],\n \"application/x-bittorrent\": [\"torrent\"],\n \"application/x-blorb\": [\"blb\", \"blorb\"],\n \"application/x-bzip\": [\"bz\"],\n \"application/x-bzip2\": [\"bz2\", \"boz\"],\n \"application/x-cbr\": [\"cbr\", \"cba\", \"cbt\", \"cbz\", \"cb7\"],\n \"application/x-cdlink\": [\"vcd\"],\n \"application/x-cfs-compressed\": [\"cfs\"],\n \"application/x-chat\": [\"chat\"],\n \"application/x-chess-pgn\": [\"pgn\"],\n \"application/x-chrome-extension\": [\"crx\"],\n \"application/x-cocoa\": [\"cco\"],\n \"application/x-conference\": [\"nsc\"],\n \"application/x-cpio\": [\"cpio\"],\n \"application/x-csh\": [\"csh\"],\n \"application/x-debian-package\": [\"*deb\", \"udeb\"],\n \"application/x-dgc-compressed\": [\"dgc\"],\n \"application/x-director\": [\"dir\", \"dcr\", \"dxr\", \"cst\", \"cct\", \"cxt\", \"w3d\", \"fgd\", \"swa\"],\n \"application/x-doom\": [\"wad\"],\n \"application/x-dtbncx+xml\": [\"ncx\"],\n \"application/x-dtbook+xml\": [\"dtb\"],\n \"application/x-dtbresource+xml\": [\"res\"],\n \"application/x-dvi\": [\"dvi\"],\n \"application/x-envoy\": [\"evy\"],\n \"application/x-eva\": [\"eva\"],\n \"application/x-font-bdf\": [\"bdf\"],\n \"application/x-font-ghostscript\": [\"gsf\"],\n \"application/x-font-linux-psf\": [\"psf\"],\n \"application/x-font-pcf\": [\"pcf\"],\n \"application/x-font-snf\": [\"snf\"],\n \"application/x-font-type1\": [\"pfa\", \"pfb\", \"pfm\", \"afm\"],\n \"application/x-freearc\": [\"arc\"],\n \"application/x-futuresplash\": [\"spl\"],\n \"application/x-gca-compressed\": [\"gca\"],\n \"application/x-glulx\": [\"ulx\"],\n \"application/x-gnumeric\": [\"gnumeric\"],\n \"application/x-gramps-xml\": [\"gramps\"],\n \"application/x-gtar\": [\"gtar\"],\n \"application/x-hdf\": [\"hdf\"],\n \"application/x-httpd-php\": [\"php\"],\n \"application/x-install-instructions\": [\"install\"],\n \"application/x-iso9660-image\": [\"*iso\"],\n \"application/x-java-archive-diff\": [\"jardiff\"],\n \"application/x-java-jnlp-file\": [\"jnlp\"],\n \"application/x-latex\": [\"latex\"],\n \"application/x-lua-bytecode\": [\"luac\"],\n \"application/x-lzh-compressed\": [\"lzh\", \"lha\"],\n \"application/x-makeself\": [\"run\"],\n \"application/x-mie\": [\"mie\"],\n \"application/x-mobipocket-ebook\": [\"prc\", \"mobi\"],\n \"application/x-ms-application\": [\"application\"],\n \"application/x-ms-shortcut\": [\"lnk\"],\n \"application/x-ms-wmd\": [\"wmd\"],\n \"application/x-ms-wmz\": [\"wmz\"],\n \"application/x-ms-xbap\": [\"xbap\"],\n \"application/x-msaccess\": [\"mdb\"],\n \"application/x-msbinder\": [\"obd\"],\n \"application/x-mscardfile\": [\"crd\"],\n \"application/x-msclip\": [\"clp\"],\n \"application/x-msdos-program\": [\"*exe\"],\n \"application/x-msdownload\": [\"*exe\", \"*dll\", \"com\", \"bat\", \"*msi\"],\n \"application/x-msmediaview\": [\"mvb\", \"m13\", \"m14\"],\n \"application/x-msmetafile\": [\"*wmf\", \"*wmz\", \"*emf\", \"emz\"],\n \"application/x-msmoney\": [\"mny\"],\n \"application/x-mspublisher\": [\"pub\"],\n \"application/x-msschedule\": [\"scd\"],\n \"application/x-msterminal\": [\"trm\"],\n \"application/x-mswrite\": [\"wri\"],\n \"application/x-netcdf\": [\"nc\", \"cdf\"],\n \"application/x-ns-proxy-autoconfig\": [\"pac\"],\n \"application/x-nzb\": [\"nzb\"],\n \"application/x-perl\": [\"pl\", \"pm\"],\n \"application/x-pilot\": [\"*prc\", \"*pdb\"],\n \"application/x-pkcs12\": [\"p12\", \"pfx\"],\n \"application/x-pkcs7-certificates\": [\"p7b\", \"spc\"],\n \"application/x-pkcs7-certreqresp\": [\"p7r\"],\n \"application/x-rar-compressed\": [\"rar\"],\n \"application/x-redhat-package-manager\": [\"rpm\"],\n \"application/x-research-info-systems\": [\"ris\"],\n \"application/x-sea\": [\"sea\"],\n \"application/x-sh\": [\"sh\"],\n \"application/x-shar\": [\"shar\"],\n \"application/x-shockwave-flash\": [\"swf\"],\n \"application/x-silverlight-app\": [\"xap\"],\n \"application/x-sql\": [\"sql\"],\n \"application/x-stuffit\": [\"sit\"],\n \"application/x-stuffitx\": [\"sitx\"],\n \"application/x-subrip\": [\"srt\"],\n \"application/x-sv4cpio\": [\"sv4cpio\"],\n \"application/x-sv4crc\": [\"sv4crc\"],\n \"application/x-t3vm-image\": [\"t3\"],\n \"application/x-tads\": [\"gam\"],\n \"application/x-tar\": [\"tar\"],\n \"application/x-tcl\": [\"tcl\", \"tk\"],\n \"application/x-tex\": [\"tex\"],\n \"application/x-tex-tfm\": [\"tfm\"],\n \"application/x-texinfo\": [\"texinfo\", \"texi\"],\n \"application/x-tgif\": [\"obj\"],\n \"application/x-ustar\": [\"ustar\"],\n \"application/x-virtualbox-hdd\": [\"hdd\"],\n \"application/x-virtualbox-ova\": [\"ova\"],\n \"application/x-virtualbox-ovf\": [\"ovf\"],\n \"application/x-virtualbox-vbox\": [\"vbox\"],\n \"application/x-virtualbox-vbox-extpack\": [\"vbox-extpack\"],\n \"application/x-virtualbox-vdi\": [\"vdi\"],\n \"application/x-virtualbox-vhd\": [\"vhd\"],\n \"application/x-virtualbox-vmdk\": [\"vmdk\"],\n \"application/x-wais-source\": [\"src\"],\n \"application/x-web-app-manifest+json\": [\"webapp\"],\n \"application/x-x509-ca-cert\": [\"der\", \"crt\", \"pem\"],\n \"application/x-xfig\": [\"fig\"],\n \"application/x-xliff+xml\": [\"xlf\"],\n \"application/x-xpinstall\": [\"xpi\"],\n \"application/x-xz\": [\"xz\"],\n \"application/x-zmachine\": [\"z1\", \"z2\", \"z3\", \"z4\", \"z5\", \"z6\", \"z7\", \"z8\"],\n \"audio/vnd.dece.audio\": [\"uva\", \"uvva\"],\n \"audio/vnd.digital-winds\": [\"eol\"],\n \"audio/vnd.dra\": [\"dra\"],\n \"audio/vnd.dts\": [\"dts\"],\n \"audio/vnd.dts.hd\": [\"dtshd\"],\n \"audio/vnd.lucent.voice\": [\"lvp\"],\n \"audio/vnd.ms-playready.media.pya\": [\"pya\"],\n \"audio/vnd.nuera.ecelp4800\": [\"ecelp4800\"],\n \"audio/vnd.nuera.ecelp7470\": [\"ecelp7470\"],\n \"audio/vnd.nuera.ecelp9600\": [\"ecelp9600\"],\n \"audio/vnd.rip\": [\"rip\"],\n \"audio/x-aac\": [\"aac\"],\n \"audio/x-aiff\": [\"aif\", \"aiff\", \"aifc\"],\n \"audio/x-caf\": [\"caf\"],\n \"audio/x-flac\": [\"flac\"],\n \"audio/x-m4a\": [\"*m4a\"],\n \"audio/x-matroska\": [\"mka\"],\n \"audio/x-mpegurl\": [\"m3u\"],\n \"audio/x-ms-wax\": [\"wax\"],\n \"audio/x-ms-wma\": [\"wma\"],\n \"audio/x-pn-realaudio\": [\"ram\", \"ra\"],\n \"audio/x-pn-realaudio-plugin\": [\"rmp\"],\n \"audio/x-realaudio\": [\"*ra\"],\n \"audio/x-wav\": [\"*wav\"],\n \"chemical/x-cdx\": [\"cdx\"],\n \"chemical/x-cif\": [\"cif\"],\n \"chemical/x-cmdf\": [\"cmdf\"],\n \"chemical/x-cml\": [\"cml\"],\n \"chemical/x-csml\": [\"csml\"],\n \"chemical/x-xyz\": [\"xyz\"],\n \"image/prs.btif\": [\"btif\"],\n \"image/prs.pti\": [\"pti\"],\n \"image/vnd.adobe.photoshop\": [\"psd\"],\n \"image/vnd.airzip.accelerator.azv\": [\"azv\"],\n \"image/vnd.dece.graphic\": [\"uvi\", \"uvvi\", \"uvg\", \"uvvg\"],\n \"image/vnd.djvu\": [\"djvu\", \"djv\"],\n \"image/vnd.dvb.subtitle\": [\"*sub\"],\n \"image/vnd.dwg\": [\"dwg\"],\n \"image/vnd.dxf\": [\"dxf\"],\n \"image/vnd.fastbidsheet\": [\"fbs\"],\n \"image/vnd.fpx\": [\"fpx\"],\n \"image/vnd.fst\": [\"fst\"],\n \"image/vnd.fujixerox.edmics-mmr\": [\"mmr\"],\n \"image/vnd.fujixerox.edmics-rlc\": [\"rlc\"],\n \"image/vnd.microsoft.icon\": [\"ico\"],\n \"image/vnd.ms-modi\": [\"mdi\"],\n \"image/vnd.ms-photo\": [\"wdp\"],\n \"image/vnd.net-fpx\": [\"npx\"],\n \"image/vnd.tencent.tap\": [\"tap\"],\n \"image/vnd.valve.source.texture\": [\"vtf\"],\n \"image/vnd.wap.wbmp\": [\"wbmp\"],\n \"image/vnd.xiff\": [\"xif\"],\n \"image/vnd.zbrush.pcx\": [\"pcx\"],\n \"image/x-3ds\": [\"3ds\"],\n \"image/x-cmu-raster\": [\"ras\"],\n \"image/x-cmx\": [\"cmx\"],\n \"image/x-freehand\": [\"fh\", \"fhc\", \"fh4\", \"fh5\", \"fh7\"],\n \"image/x-icon\": [\"*ico\"],\n \"image/x-jng\": [\"jng\"],\n \"image/x-mrsid-image\": [\"sid\"],\n \"image/x-ms-bmp\": [\"*bmp\"],\n \"image/x-pcx\": [\"*pcx\"],\n \"image/x-pict\": [\"pic\", \"pct\"],\n \"image/x-portable-anymap\": [\"pnm\"],\n \"image/x-portable-bitmap\": [\"pbm\"],\n \"image/x-portable-graymap\": [\"pgm\"],\n \"image/x-portable-pixmap\": [\"ppm\"],\n \"image/x-rgb\": [\"rgb\"],\n \"image/x-tga\": [\"tga\"],\n \"image/x-xbitmap\": [\"xbm\"],\n \"image/x-xpixmap\": [\"xpm\"],\n \"image/x-xwindowdump\": [\"xwd\"],\n \"message/vnd.wfa.wsc\": [\"wsc\"],\n \"model/vnd.collada+xml\": [\"dae\"],\n \"model/vnd.dwf\": [\"dwf\"],\n \"model/vnd.gdl\": [\"gdl\"],\n \"model/vnd.gtw\": [\"gtw\"],\n \"model/vnd.mts\": [\"mts\"],\n \"model/vnd.opengex\": [\"ogex\"],\n \"model/vnd.parasolid.transmit.binary\": [\"x_b\"],\n \"model/vnd.parasolid.transmit.text\": [\"x_t\"],\n \"model/vnd.usdz+zip\": [\"usdz\"],\n \"model/vnd.valve.source.compiled-map\": [\"bsp\"],\n \"model/vnd.vtu\": [\"vtu\"],\n \"text/prs.lines.tag\": [\"dsc\"],\n \"text/vnd.curl\": [\"curl\"],\n \"text/vnd.curl.dcurl\": [\"dcurl\"],\n \"text/vnd.curl.mcurl\": [\"mcurl\"],\n \"text/vnd.curl.scurl\": [\"scurl\"],\n \"text/vnd.dvb.subtitle\": [\"sub\"],\n \"text/vnd.fly\": [\"fly\"],\n \"text/vnd.fmi.flexstor\": [\"flx\"],\n \"text/vnd.graphviz\": [\"gv\"],\n \"text/vnd.in3d.3dml\": [\"3dml\"],\n \"text/vnd.in3d.spot\": [\"spot\"],\n \"text/vnd.sun.j2me.app-descriptor\": [\"jad\"],\n \"text/vnd.wap.wml\": [\"wml\"],\n \"text/vnd.wap.wmlscript\": [\"wmls\"],\n \"text/x-asm\": [\"s\", \"asm\"],\n \"text/x-c\": [\"c\", \"cc\", \"cxx\", \"cpp\", \"h\", \"hh\", \"dic\"],\n \"text/x-component\": [\"htc\"],\n \"text/x-fortran\": [\"f\", \"for\", \"f77\", \"f90\"],\n \"text/x-handlebars-template\": [\"hbs\"],\n \"text/x-java-source\": [\"java\"],\n \"text/x-lua\": [\"lua\"],\n \"text/x-markdown\": [\"mkd\"],\n \"text/x-nfo\": [\"nfo\"],\n \"text/x-opml\": [\"opml\"],\n \"text/x-org\": [\"*org\"],\n \"text/x-pascal\": [\"p\", \"pas\"],\n \"text/x-processing\": [\"pde\"],\n \"text/x-sass\": [\"sass\"],\n \"text/x-scss\": [\"scss\"],\n \"text/x-setext\": [\"etx\"],\n \"text/x-sfv\": [\"sfv\"],\n \"text/x-suse-ymp\": [\"ymp\"],\n \"text/x-uuencode\": [\"uu\"],\n \"text/x-vcalendar\": [\"vcs\"],\n \"text/x-vcard\": [\"vcf\"],\n \"video/vnd.dece.hd\": [\"uvh\", \"uvvh\"],\n \"video/vnd.dece.mobile\": [\"uvm\", \"uvvm\"],\n \"video/vnd.dece.pd\": [\"uvp\", \"uvvp\"],\n \"video/vnd.dece.sd\": [\"uvs\", \"uvvs\"],\n \"video/vnd.dece.video\": [\"uvv\", \"uvvv\"],\n \"video/vnd.dvb.file\": [\"dvb\"],\n \"video/vnd.fvt\": [\"fvt\"],\n \"video/vnd.mpegurl\": [\"mxu\", \"m4u\"],\n \"video/vnd.ms-playready.media.pyv\": [\"pyv\"],\n \"video/vnd.uvvu.mp4\": [\"uvu\", \"uvvu\"],\n \"video/vnd.vivo\": [\"viv\"],\n \"video/x-f4v\": [\"f4v\"],\n \"video/x-fli\": [\"fli\"],\n \"video/x-flv\": [\"flv\"],\n \"video/x-m4v\": [\"m4v\"],\n \"video/x-matroska\": [\"mkv\", \"mk3d\", \"mks\"],\n \"video/x-mng\": [\"mng\"],\n \"video/x-ms-asf\": [\"asf\", \"asx\"],\n \"video/x-ms-vob\": [\"vob\"],\n \"video/x-ms-wm\": [\"wm\"],\n \"video/x-ms-wmv\": [\"wmv\"],\n \"video/x-ms-wmx\": [\"wmx\"],\n \"video/x-ms-wvx\": [\"wvx\"],\n \"video/vnd.avi\": [\"avi\"],\n \"video/x-msvideo\": [\"avi\"],\n \"video/avi\": [\"avi\"],\n \"video/x-sgi-movie\": [\"movie\"],\n \"video/x-smv\": [\"smv\"],\n \"x-conference/x-cooltalk\": [\"ice\"],\n \"application/x-msi\": \"msi\",\n \"application/x-ms\": \"ms\",\n \"application/vnd.geo+json\": \"geojson\",\n \"application/vnd.debian.binary-package\": \"deb\",\n \"application/font-woff\": \"woff\",\n \"application/font-woff2\": \"woff2\",\n \"application/x-font-ttf\": [\"ttc\", \"ttf\"],\n \"font/opentype\": \"otf\",\n \"application/x-bb-appworld\": \"bbaw\",\n \"application/x-cd-image\": \"iso\",\n \"application/x-opera-extension\": \"oex\",\n \"application/x-ms-dos-executable\": \"exe\",\n \"text/vnd.rim.location.xloc\": \"xloc\",\n \"application/x-desktop\": \"desktop\",\n \"application/x-typescript\": \"ts\",\n \"application/x-java-archive\": \"jar\",\n \"application/x-sharedlib\": \"so\"\n },\n o = r(29);\n var a,\n s = r(30),\n c = /(android|bb\\d+|meego).+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|series[46]0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i,\n u = function (t) {\n return btoa(s.ArrayBuffer.hash(t, !0));\n },\n p = function (t, e) {\n void 0 === e && (e = !1);\n var r = btoa(t);\n return e ? r.replace(/\\//g, \"_\").replace(/\\+/g, \"-\") : r;\n },\n l = function () {\n return \"JS-3.32.3\";\n },\n f = function () {\n return navigator && navigator.userAgent && c.test(navigator.userAgent);\n },\n d = function () {\n return navigator && navigator.userAgent && /\\[FB.*;/i.test(navigator.userAgent);\n },\n m = function (t, e) {\n var r = t.urls.cdnUrl;\n if (e && (0 === e.indexOf(\"src:\") || 0 === e.indexOf(\"http\"))) {\n if (!t.apikey) throw new Error(\"Api key is required when storage alias is provided\");\n return \"\".concat(r, \"/\").concat(t.apikey);\n }\n return r;\n },\n h = function (t, e) {\n if (!e) return t;\n var r = /filestackapi.com|filestackcontent.com/i;\n return Object.keys(t).forEach(function (n) {\n t[n] = t[n].replace(r, e);\n }), t;\n },\n y = function (t) {\n var e = Object(n.a)({}, t);\n return Object.keys(e).forEach(function (t) {\n return !e[t] && \"boolean\" != typeof e[t] && delete e[t];\n }), e;\n },\n v = function () {\n var t = Date.now();\n return a = t === a ? t + 1 : t;\n },\n g = function (t) {\n return void 0 === t && (t = 10), new Array(t).join().replace(/(.|$)/g, function () {\n return (36 * Math.random() | 0).toString(36)[Math.random() < .5 ? \"toString\" : \"toUpperCase\"]();\n });\n },\n b = function (t, e) {\n return Object(n.b)(void 0, void 0, void 0, function () {\n var r, i, a, s;\n return Object(n.d)(this, function (n) {\n switch (n.label) {\n case 0:\n return n.trys.push([0, 2,, 3]), [4, Object(o.fromBuffer)(t)];\n case 1:\n return r = n.sent(), [3, 3];\n case 2:\n return i = n.sent(), console.warn(\"An exception occurred while processing the buffer:\", i.message), [3, 3];\n case 3:\n if (e && e.indexOf(\".\") > -1 && (a = x(e))) return [2, a];\n if (s = [\"text/plain\", \"application/octet-stream\", \"application/x-ms\", \"application/x-msi\", \"application/zip\"], r && -1 === s.indexOf(r.mime)) return [2, r.mime];\n try {\n if (function (t) {\n if (!t) return !1;\n for (var e = 0, r = t.length; e < r;) if (t[e] <= 127) e++;else {\n if (t[e] >= 194 && t[e] <= 223) {\n if (t[e + 1] >> 6 == 2) {\n e += 2;\n continue;\n }\n return !1;\n }\n if ((224 === t[e] && t[e + 1] >= 160 && t[e + 1] <= 191 || 237 === t[e] && t[e + 1] >= 128 && t[e + 1] <= 159) && t[e + 2] >> 6 == 2) e += 3;else if ((t[e] >= 225 && t[e] <= 236 || t[e] >= 238 && t[e] <= 239) && t[e + 1] >> 6 == 2 && t[e + 2] >> 6 == 2) e += 3;else {\n if (!(240 === t[e] && t[e + 1] >= 144 && t[e + 1] <= 191 || t[e] >= 241 && t[e] <= 243 && t[e + 1] >> 6 == 2 || 244 === t[e] && t[e + 1] >= 128 && t[e + 1] <= 143) || t[e + 2] >> 6 != 2 || t[e + 3] >> 6 != 2) return !1;\n e += 4;\n }\n }\n return !0;\n }(t)) return [2, \"text/plain\"];\n } catch (t) {\n console.warn(\"Additional mimetype checks (text/plain) are currently not supported for browsers\");\n }\n return r ? [2, r.mime] : [2, \"application/octet-stream\"];\n }\n });\n });\n },\n x = function (t) {\n if (t && 0 !== t.length) {\n if (2 === t.split(\"/\").length) return t;\n t.indexOf(\".\") > -1 && (t = t.split(\".\").pop()), t = t.toLocaleLowerCase();\n for (var e = Object.keys(i), r = e.length, n = 0; n < r; n++) if (i[e[n]].indexOf(t) > -1) return e[n];\n }\n },\n w = function (t, e) {\n if (void 0 === e && (e = !0), \"boolean\" == typeof e && !e) return t;\n var r,\n n = \"boolean\" != typeof e && e.replacement ? e.replacement : \"-\",\n i = \"boolean\" != typeof e && e.exclude ? e.exclude : [\"\\\\\", \"{\", \"}\", \"|\", \"%\", \"`\", '\"', \"'\", \"~\", \"[\", \"]\", \"#\", \"|\", \"^\", \"<\", \">\"];\n if (!t || 0 === t.length) return \"undefined\";\n var o = t.split(\".\");\n return o.length > 1 && (r = o.pop()), \"\".concat(o.join(\".\").split(\"\").map(function (t) {\n return i.indexOf(t) > -1 ? n : t;\n }).join(\"\")).concat(r ? \".\" + r : \"\");\n },\n k = function (t, e) {\n return e && 0 !== e.length ? 0 === Object.keys(t).length ? t : Object.keys(t).filter(function (t) {\n return e.indexOf(t) > -1;\n }).reduce(function (e, r) {\n var i;\n return Object(n.a)(Object(n.a)({}, e), ((i = {})[r] = t[r], i));\n }, {}) : t;\n },\n _ = function t(e) {\n return e && 0 !== Object.keys(e).length ? (Object.keys(e).forEach(function (r) {\n \"function\" == typeof e[r] && (e[r] = void 0), e[r] === Object(e[r]) && (e[r] = t(e[r]));\n }), e) : e;\n };\n}, function (t, e, r) {\n \"use strict\";\n\n r.d(e, \"b\", function () {\n return n;\n }), r.d(e, \"a\", function () {\n return o;\n });\n var n,\n i = r(0);\n !function (t) {\n t.ABORTED = \"ABORTED\", t.NETWORK = \"NETWORK\", t.TIMEOUT = \"TIMEDOUT\", t.SERVER = \"SERVER\", t.REQUEST = \"REQUEST\", t.OTHER = \"OTHER\", t.REDIRECT = \"REDIRECT\";\n }(n || (n = {}));\n var o = function (t) {\n function e(e, r, n, i) {\n var o,\n a,\n s,\n c = this.constructor,\n u = t.call(this, e) || this;\n return u.config = r, u.response = n, u.code = i, o = u, a = c.prototype, (s = Object.setPrototypeOf) ? s(o, a) : o.__proto__ = a, u;\n }\n return Object(i.c)(e, t), e;\n }(Error);\n}, function (t, e, r) {\n (function (n) {\n var i;\n e.formatArgs = function (e) {\n if (e[0] = (this.useColors ? \"%c\" : \"\") + this.namespace + (this.useColors ? \" %c\" : \" \") + e[0] + (this.useColors ? \"%c \" : \" \") + \"+\" + t.exports.humanize(this.diff), !this.useColors) return;\n var r = \"color: \" + this.color;\n e.splice(1, 0, r, \"color: inherit\");\n var n = 0,\n i = 0;\n e[0].replace(/%[a-zA-Z%]/g, function (t) {\n \"%%\" !== t && (n++, \"%c\" === t && (i = n));\n }), e.splice(i, 0, r);\n }, e.save = function (t) {\n try {\n t ? e.storage.setItem(\"debug\", t) : e.storage.removeItem(\"debug\");\n } catch (t) {}\n }, e.load = function () {\n var t;\n try {\n t = e.storage.getItem(\"debug\");\n } catch (t) {}\n !t && void 0 !== n && \"env\" in n && (t = n.env.DEBUG);\n return t;\n }, e.useColors = function () {\n if (\"undefined\" != typeof window && window.process && (\"renderer\" === window.process.type || window.process.__nwjs)) return !0;\n if (\"undefined\" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) return !1;\n return \"undefined\" != typeof document && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || \"undefined\" != typeof window && window.console && (window.console.firebug || window.console.exception && window.console.table) || \"undefined\" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31 || \"undefined\" != typeof navigator && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/);\n }, e.storage = function () {\n try {\n return localStorage;\n } catch (t) {}\n }(), e.destroy = (i = !1, function () {\n i || (i = !0, console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\"));\n }), e.colors = [\"#0000CC\", \"#0000FF\", \"#0033CC\", \"#0033FF\", \"#0066CC\", \"#0066FF\", \"#0099CC\", \"#0099FF\", \"#00CC00\", \"#00CC33\", \"#00CC66\", \"#00CC99\", \"#00CCCC\", \"#00CCFF\", \"#3300CC\", \"#3300FF\", \"#3333CC\", \"#3333FF\", \"#3366CC\", \"#3366FF\", \"#3399CC\", \"#3399FF\", \"#33CC00\", \"#33CC33\", \"#33CC66\", \"#33CC99\", \"#33CCCC\", \"#33CCFF\", \"#6600CC\", \"#6600FF\", \"#6633CC\", \"#6633FF\", \"#66CC00\", \"#66CC33\", \"#9900CC\", \"#9900FF\", \"#9933CC\", \"#9933FF\", \"#99CC00\", \"#99CC33\", \"#CC0000\", \"#CC0033\", \"#CC0066\", \"#CC0099\", \"#CC00CC\", \"#CC00FF\", \"#CC3300\", \"#CC3333\", \"#CC3366\", \"#CC3399\", \"#CC33CC\", \"#CC33FF\", \"#CC6600\", \"#CC6633\", \"#CC9900\", \"#CC9933\", \"#CCCC00\", \"#CCCC33\", \"#FF0000\", \"#FF0033\", \"#FF0066\", \"#FF0099\", \"#FF00CC\", \"#FF00FF\", \"#FF3300\", \"#FF3333\", \"#FF3366\", \"#FF3399\", \"#FF33CC\", \"#FF33FF\", \"#FF6600\", \"#FF6633\", \"#FF9900\", \"#FF9933\", \"#FFCC00\", \"#FFCC33\"], e.log = console.debug || console.log || function () {}, t.exports = r(53)(e), t.exports.formatters.j = function (t) {\n try {\n return JSON.stringify(t);\n } catch (t) {\n return \"[UnexpectedJSONParseError]: \" + t.message;\n }\n };\n }).call(this, r(25));\n}, function (t, e, r) {\n \"use strict\";\n\n r.d(e, \"a\", function () {\n return a;\n }), r.d(e, \"f\", function () {\n return s;\n }), r.d(e, \"d\", function () {\n return c;\n }), r.d(e, \"b\", function () {\n return u;\n }), r.d(e, \"h\", function () {\n return p;\n }), r.d(e, \"e\", function () {\n return l;\n }), r.d(e, \"i\", function () {\n return f;\n }), r.d(e, \"c\", function () {\n return n;\n }), r.d(e, \"g\", function () {\n return i;\n });\n var n = function () {\n return !1;\n },\n i = function () {\n return !1;\n };\n function o(t) {\n return (o = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n var a = function (t) {\n return \"[object ArrayBuffer]\" === Object.prototype.toString.call(t);\n },\n s = function (t) {\n return null !== t && \"object\" === o(t);\n },\n c = function (t) {\n return \"[object File]\" === Object.prototype.toString.call(t);\n },\n u = function (t) {\n return \"[object Blob]\" === Object.prototype.toString.call(t);\n },\n p = function (t) {\n return \"undefined\" != typeof URLSearchParams && t instanceof URLSearchParams;\n },\n l = function (t) {\n return \"undefined\" != typeof FormData && t instanceof FormData;\n },\n f = function (t) {\n return t.replace(/^\\s*/, \"\").replace(/\\s*$/, \"\");\n };\n}, function (t, e, r) {\n \"use strict\";\n\n var n;\n r.d(e, \"a\", function () {\n return n;\n }), function (t) {\n t.GET = \"GET\", t.DELETE = \"DELETE\", t.HEAD = \"HEAD\", t.PURGE = \"PURGE\", t.OPTIONS = \"OPTIONS\", t.POST = \"POST\", t.PUT = \"PUT\", t.PATH = \"PATH\";\n }(n || (n = {}));\n}, function (t, e, r) {\n \"use strict\";\n\n (function (t) {\n r.d(e, \"a\", function () {\n return o;\n }), r.d(e, \"b\", function () {\n return a;\n });\n var n = r(11),\n i = {};\n function o() {\n return Object(n.b)() ? t : \"undefined\" != typeof window ? window : \"undefined\" != typeof self ? self : i;\n }\n function a(t, e, r) {\n var n = r || o(),\n i = n.__SENTRY__ = n.__SENTRY__ || {};\n return i[t] || (i[t] = e());\n }\n }).call(this, r(15));\n}, function (t, e, r) {\n \"use strict\";\n\n var n = Object.prototype.hasOwnProperty,\n i = \"~\";\n function o() {}\n function a(t, e, r) {\n this.fn = t, this.context = e, this.once = r || !1;\n }\n function s(t, e, r, n, o) {\n if (\"function\" != typeof r) throw new TypeError(\"The listener must be a function\");\n var s = new a(r, n || t, o),\n c = i ? i + e : e;\n return t._events[c] ? t._events[c].fn ? t._events[c] = [t._events[c], s] : t._events[c].push(s) : (t._events[c] = s, t._eventsCount++), t;\n }\n function c(t, e) {\n 0 == --t._eventsCount ? t._events = new o() : delete t._events[e];\n }\n function u() {\n this._events = new o(), this._eventsCount = 0;\n }\n Object.create && (o.prototype = Object.create(null), new o().__proto__ || (i = !1)), u.prototype.eventNames = function () {\n var t,\n e,\n r = [];\n if (0 === this._eventsCount) return r;\n for (e in t = this._events) n.call(t, e) && r.push(i ? e.slice(1) : e);\n return Object.getOwnPropertySymbols ? r.concat(Object.getOwnPropertySymbols(t)) : r;\n }, u.prototype.listeners = function (t) {\n var e = i ? i + t : t,\n r = this._events[e];\n if (!r) return [];\n if (r.fn) return [r.fn];\n for (var n = 0, o = r.length, a = new Array(o); n < o; n++) a[n] = r[n].fn;\n return a;\n }, u.prototype.listenerCount = function (t) {\n var e = i ? i + t : t,\n r = this._events[e];\n return r ? r.fn ? 1 : r.length : 0;\n }, u.prototype.emit = function (t, e, r, n, o, a) {\n var s = i ? i + t : t;\n if (!this._events[s]) return !1;\n var c,\n u,\n p = this._events[s],\n l = arguments.length;\n if (p.fn) {\n switch (p.once && this.removeListener(t, p.fn, void 0, !0), l) {\n case 1:\n return p.fn.call(p.context), !0;\n case 2:\n return p.fn.call(p.context, e), !0;\n case 3:\n return p.fn.call(p.context, e, r), !0;\n case 4:\n return p.fn.call(p.context, e, r, n), !0;\n case 5:\n return p.fn.call(p.context, e, r, n, o), !0;\n case 6:\n return p.fn.call(p.context, e, r, n, o, a), !0;\n }\n for (u = 1, c = new Array(l - 1); u < l; u++) c[u - 1] = arguments[u];\n p.fn.apply(p.context, c);\n } else {\n var f,\n d = p.length;\n for (u = 0; u < d; u++) switch (p[u].once && this.removeListener(t, p[u].fn, void 0, !0), l) {\n case 1:\n p[u].fn.call(p[u].context);\n break;\n case 2:\n p[u].fn.call(p[u].context, e);\n break;\n case 3:\n p[u].fn.call(p[u].context, e, r);\n break;\n case 4:\n p[u].fn.call(p[u].context, e, r, n);\n break;\n default:\n if (!c) for (f = 1, c = new Array(l - 1); f < l; f++) c[f - 1] = arguments[f];\n p[u].fn.apply(p[u].context, c);\n }\n }\n return !0;\n }, u.prototype.on = function (t, e, r) {\n return s(this, t, e, r, !1);\n }, u.prototype.once = function (t, e, r) {\n return s(this, t, e, r, !0);\n }, u.prototype.removeListener = function (t, e, r, n) {\n var o = i ? i + t : t;\n if (!this._events[o]) return this;\n if (!e) return c(this, o), this;\n var a = this._events[o];\n if (a.fn) a.fn !== e || n && !a.once || r && a.context !== r || c(this, o);else {\n for (var s = 0, u = [], p = a.length; s < p; s++) (a[s].fn !== e || n && !a[s].once || r && a[s].context !== r) && u.push(a[s]);\n u.length ? this._events[o] = 1 === u.length ? u[0] : u : c(this, o);\n }\n return this;\n }, u.prototype.removeAllListeners = function (t) {\n var e;\n return t ? (e = i ? i + t : t, this._events[e] && c(this, e)) : (this._events = new o(), this._eventsCount = 0), this;\n }, u.prototype.off = u.prototype.removeListener, u.prototype.addListener = u.prototype.on, u.prefixed = i, u.EventEmitter = u, t.exports = u;\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n var i = r(14),\n o = e.ValidationError = function (t, e, r, n, i, o) {\n if (Array.isArray(n) ? (this.path = n, this.property = n.reduce(function (t, e) {\n return t + f(e);\n }, \"instance\")) : void 0 !== n && (this.property = n), t && (this.message = t), r) {\n var a = r.$id || r.id;\n this.schema = a || r;\n }\n void 0 !== e && (this.instance = e), this.name = i, this.argument = o, this.stack = this.toString();\n };\n o.prototype.toString = function () {\n return this.property + \" \" + this.message;\n };\n var a = e.ValidatorResult = function (t, e, r, n) {\n this.instance = t, this.schema = e, this.options = r, this.path = n.path, this.propertyPath = n.propertyPath, this.errors = [], this.throwError = r && r.throwError, this.throwFirst = r && r.throwFirst, this.throwAll = r && r.throwAll, this.disableFormat = r && !0 === r.disableFormat;\n };\n function s(t, e) {\n return e + \": \" + t.toString() + \"\\n\";\n }\n function c(t) {\n Error.captureStackTrace && Error.captureStackTrace(this, c), this.instance = t.instance, this.schema = t.schema, this.options = t.options, this.errors = t.errors;\n }\n a.prototype.addError = function (t) {\n var e;\n if (\"string\" == typeof t) e = new o(t, this.instance, this.schema, this.path);else {\n if (!t) throw new Error(\"Missing error detail\");\n if (!t.message) throw new Error(\"Missing error message\");\n if (!t.name) throw new Error(\"Missing validator type\");\n e = new o(t.message, this.instance, this.schema, this.path, t.name, t.argument);\n }\n if (this.errors.push(e), this.throwFirst) throw new c(this);\n if (this.throwError) throw e;\n return e;\n }, a.prototype.importErrors = function (t) {\n \"string\" == typeof t || t && t.validatorType ? this.addError(t) : t && t.errors && (this.errors = this.errors.concat(t.errors));\n }, a.prototype.toString = function (t) {\n return this.errors.map(s).join(\"\");\n }, Object.defineProperty(a.prototype, \"valid\", {\n get: function () {\n return !this.errors.length;\n }\n }), t.exports.ValidatorResultError = c, c.prototype = new Error(), c.prototype.constructor = c, c.prototype.name = \"Validation Error\";\n var u = e.SchemaError = function t(e, r) {\n this.message = e, this.schema = r, Error.call(this, e), Error.captureStackTrace(this, t);\n };\n u.prototype = Object.create(Error.prototype, {\n constructor: {\n value: u,\n enumerable: !1\n },\n name: {\n value: \"SchemaError\",\n enumerable: !1\n }\n });\n var p = e.SchemaContext = function (t, e, r, n, i) {\n this.schema = t, this.options = e, Array.isArray(r) ? (this.path = r, this.propertyPath = r.reduce(function (t, e) {\n return t + f(e);\n }, \"instance\")) : this.propertyPath = r, this.base = n, this.schemas = i;\n };\n p.prototype.resolve = function (t) {\n return i.resolve(this.base, t);\n }, p.prototype.makeChild = function (t, e) {\n var r = void 0 === e ? this.path : this.path.concat([e]),\n n = t.$id || t.id,\n o = i.resolve(this.base, n || \"\"),\n a = new p(t, this.options, r, o, Object.create(this.schemas));\n return n && !a.schemas[o] && (a.schemas[o] = t), a;\n };\n var l = e.FORMAT_REGEXPS = {\n \"date-time\": /^\\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\\.\\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,\n date: /^\\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,\n time: /^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,\n duration: /P(T\\d+(H(\\d+M(\\d+S)?)?|M(\\d+S)?|S)|\\d+(D|M(\\d+D)?|Y(\\d+M(\\d+D)?)?)(T\\d+(H(\\d+M(\\d+S)?)?|M(\\d+S)?|S))?|\\d+W)/i,\n email: /^(?:[\\w\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\`\\{\\|\\}\\~]+\\.)*[\\w\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\`\\{\\|\\}\\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\\-](?!\\.)){0,61}[a-zA-Z0-9]?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\\[(?:(?:[01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\.){3}(?:[01]?\\d{1,2}|2[0-4]\\d|25[0-5])\\]))$/,\n \"idn-email\": /^(\"(?:(?:[!#-\\[\\]-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])|\\\\(?:[\\t -\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))*\"|(?:[!#-'\\*\\+\\x2D\\/-9=\\?A-Z\\^-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])(?:\\.?(?:[!#-'\\*\\+\\x2D\\/-9=\\?A-Z\\^-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))*)@((?:[!#-'\\*\\+\\x2D\\/-9=\\?A-Z\\^-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])(?:\\.?(?:[!#-'\\*\\+\\x2D\\/-9=\\?A-Z\\^-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-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DFFF])+)?|[\\.0-:A-Fa-f]+)\\])?)?|[A-Za-z][\\+\\x2D\\.0-9A-Za-z]*:?)?$/,\n uuid: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,\n \"uri-template\": /(%[0-9a-f]{2}|[!#\\$&\\(-;=\\?@\\[\\]_a-z~\\u017F\\u212A]|\\{[!#&\\+,\\.\\/;=\\?@\\|]?(%[0-9a-f]{2}|[0-9_a-z\\u017F\\u212A])(\\.?(%[0-9a-f]{2}|[0-9_a-z\\u017F\\u212A]))*(:[1-9][0-9]{0,3}|\\*)?(,(%[0-9a-f]{2}|[0-9_a-z\\u017F\\u212A])(\\.?(%[0-9a-f]{2}|[0-9_a-z\\u017F\\u212A]))*(:[1-9][0-9]{0,3}|\\*)?)*\\})*/i,\n \"json-pointer\": /^(\\/([\\0-\\.0-@\\[-\\}\\x7F\\u017F\\u212A]|~[01])*)*$/i,\n \"relative-json-pointer\": /^[0-9]+(#|(\\/([\\0-\\.0-@\\[-\\}\\x7F\\u017F\\u212A]|~[01])*)*)$/i,\n hostname: /^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\\.?$/,\n \"host-name\": /^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\\.?$/,\n \"utc-millisec\": function (t) {\n return \"string\" == typeof t && parseFloat(t) === parseInt(t, 10) && !isNaN(t);\n },\n regex: function (t) {\n var e = !0;\n try {\n new RegExp(t);\n } catch (t) {\n e = !1;\n }\n return e;\n },\n style: /[\\r\\n\\t ]*[^\\r\\n\\t ][^:]*:[\\r\\n\\t ]*[^\\r\\n\\t ;]*[\\r\\n\\t ]*;?/,\n color: /^(#?([0-9A-Fa-f]{3}){1,2}\\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\\(\\s*\\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\b\\s*,\\s*\\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\b\\s*,\\s*\\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\b\\s*\\))|(rgb\\(\\s*(\\d?\\d%|100%)+\\s*,\\s*(\\d?\\d%|100%)+\\s*,\\s*(\\d?\\d%|100%)+\\s*\\)))$/,\n phone: /^\\+(?:[0-9] ?){6,14}[0-9]$/,\n alpha: /^[a-zA-Z]+$/,\n alphanumeric: /^[a-zA-Z0-9]+$/\n };\n l.regexp = l.regex, l.pattern = l.regex, l.ipv4 = l[\"ip-address\"], e.isFormat = function (t, e, r) {\n if (\"string\" == typeof t && void 0 !== l[e]) {\n if (l[e] instanceof RegExp) return l[e].test(t);\n if (\"function\" == typeof l[e]) return l[e](t);\n } else if (r && r.customFormats && \"function\" == typeof r.customFormats[e]) return r.customFormats[e](t);\n return !0;\n };\n var f = e.makeSuffix = function (t) {\n return (t = t.toString()).match(/[.\\s\\[\\]]/) || t.match(/^[\\d]/) ? t.match(/^\\d+$/) ? \"[\" + t + \"]\" : \"[\" + JSON.stringify(t) + \"]\" : \".\" + t;\n };\n function d(t, e, r, i) {\n \"object\" === n(r) ? e[i] = y(t[i], r) : -1 === t.indexOf(r) && e.push(r);\n }\n function m(t, e, r) {\n e[r] = t[r];\n }\n function h(t, e, r, i) {\n \"object\" === n(e[i]) && e[i] && t[i] ? r[i] = y(t[i], e[i]) : r[i] = e[i];\n }\n function y(t, e) {\n var r = Array.isArray(e),\n i = r && [] || {};\n return r ? (t = t || [], i = i.concat(t), e.forEach(d.bind(null, t, i))) : (t && \"object\" === n(t) && Object.keys(t).forEach(m.bind(null, t, i)), Object.keys(e).forEach(h.bind(null, t, e, i))), i;\n }\n function v(t) {\n return \"/\" + encodeURIComponent(t).replace(/~/g, \"%7E\");\n }\n e.deepCompareStrict = function t(e, r) {\n if (n(e) !== n(r)) return !1;\n if (Array.isArray(e)) return !!Array.isArray(r) && e.length === r.length && e.every(function (n, i) {\n return t(e[i], r[i]);\n });\n if (\"object\" === n(e)) {\n if (!e || !r) return e === r;\n var i = Object.keys(e),\n o = Object.keys(r);\n return i.length === o.length && i.every(function (n) {\n return t(e[n], r[n]);\n });\n }\n return e === r;\n }, t.exports.deepMerge = y, e.objectGetPath = function (t, e) {\n for (var r, n = e.split(\"/\").slice(1); \"string\" == typeof (r = n.shift());) {\n var i = decodeURIComponent(r.replace(/~0/, \"~\").replace(/~1/g, \"/\"));\n if (!(i in t)) return;\n t = t[i];\n }\n return t;\n }, e.encodePath = function (t) {\n return t.map(v).join(\"\");\n }, e.getDecimalPlaces = function (t) {\n var e = 0;\n if (isNaN(t)) return e;\n \"number\" != typeof t && (t = Number(t));\n var r = t.toString().split(\"e\");\n if (2 === r.length) {\n if (\"-\" !== r[1][0]) return e;\n e = Number(r[1].slice(1));\n }\n var n = r[0].split(\".\");\n return 2 === n.length && (e += n[1].length), e;\n }, e.isSchema = function (t) {\n return \"object\" === n(t) && t || \"boolean\" == typeof t;\n };\n}, function (t, e, r) {\n \"use strict\";\n\n r.d(e, \"b\", function () {\n return o;\n }), r.d(e, \"d\", function () {\n return d;\n }), r.d(e, \"c\", function () {\n return h;\n }), r.d(e, \"a\", function () {\n return v;\n }), r.d(e, \"e\", function () {\n return b.a;\n });\n var n = r(4),\n i = [\"expires\", \"from\", \"host\", \"if-modified-since\", \"if-unmodified-since\", \"age\", \"authorization\", \"content-length\", \"content-type\", \"etag\", \"last-modified\", \"location\", \"max-forwards\", \"proxy-authorization\", \"referer\", \"retry-after\", \"user-agent\"],\n o = function (t) {\n var e,\n r,\n o,\n a = {};\n return t ? (t.split(\"\\n\").forEach(function (t) {\n o = t.indexOf(\":\"), e = Object(n.i)(t.substr(0, o)).toLowerCase(), r = Object(n.i)(t.substr(o + 1)), e && (a[e] && i.indexOf(e) >= 0 || (a[e] = \"set-cookie\" === e ? (a[e] ? a[e] : []).concat([r]) : a[e] ? a[e] + \", \" + r : r));\n }), a) : a;\n },\n a = function (t, e, r, n) {\n void 0 === n && (n = !1);\n var i = s(e);\n return t || (t = {}), void 0 === (t = JSON.parse(JSON.stringify(t)))[e] && void 0 === t[i] ? t[i] = r : n && (delete t[e], t[i] = r), t;\n },\n s = function (t) {\n var e = {\n \"content-md5\": \"Content-MD5\",\n dnt: \"DNT\",\n etag: \"ETag\",\n \"last-event-id\": \"Last-Event-ID\",\n tcn: \"TCN\",\n te: \"TE\",\n \"www-authenticate\": \"WWW-Authenticate\",\n \"x-dnsprefetch-control\": \"X-DNSPrefetch-Control\"\n }[t.toLowerCase()];\n return e || t.split(\"-\").map(function (t) {\n return t.charAt(0).toUpperCase() + t.substr(1).toLowerCase();\n }).join(\"-\");\n },\n c = r(0),\n u = r(1),\n p = r(20),\n l = r(3),\n f = r.n(l)()(\"fs:request:data\"),\n d = function (t) {\n return t = m(t), Object(n.e)(t.data) || Object(n.c)(t.data) || Object(n.g)(t.data) || Object(n.d)(t.data) || Object(n.b)(t.data) || Object(n.a)(t.data) || (Object(n.h)(t.data) ? (t.headers = a(t.headers, \"content-type\", \"application/x-www-form-urlencoded;charset=utf-8\"), t.data = t.data.toString()) : Object(n.f)(t.data) && (t.headers = a(t.headers, \"content-type\", \"application/json\", !0), t.data = JSON.stringify(t.data))), t;\n },\n m = function (t) {\n return t.filestackHeaders ? (t.headers = a(t.headers, \"filestack-source\", Object(u.getVersion)()), t.headers = a(t.headers, \"filestack-trace-id\", \"\".concat(Math.floor(Date.now() / 1e3), \"-\").concat(Object(u.uniqueId)())), t.headers = a(t.headers, \"filestack-trace-span\", \"jssdk-\".concat(Object(u.uniqueId)())), t) : t;\n },\n h = function (t) {\n return Object(c.b)(void 0, void 0, void 0, function () {\n var e, r;\n return Object(c.d)(this, function (i) {\n if (!t.headers || !t.headers[\"content-type\"]) return [2, Promise.resolve(t)];\n if (e = t.headers[\"content-type\"], /application\\/json/.test(e)) try {\n t.data = JSON.parse(t.data);\n } catch (e) {\n f(\"Cannot parse response %O - %O\", t.data, t.headers);\n } else /text\\/(plain|html)/.test(e) ? Object(n.c)(t.data) && (t.data = y(t.data)) : /application\\/xml/.test(e) && (r = t.data, Object(n.c)(t.data) && (r = y(t.data)), !0 === p.XMLValidator.validate(r) && (t.data = new p.XMLParser({\n ignoreDeclaration: !0,\n ignoreAttributes: !0,\n trimValues: !0\n }).parse(r)));\n return [2, Promise.resolve(t)];\n });\n });\n };\n function y(t) {\n for (var e = new Uint16Array(t), r = e.length, n = \"\", i = Math.pow(2, 16) - 1, o = 0; o < r; o += i) o + i > r && (i = r - o), n += String.fromCharCode.apply(null, e.subarray(o, o + i));\n return n;\n }\n var v = function (t, e) {\n if (!e) return t;\n var r = g(e),\n n = t.indexOf(\"#\");\n return -1 !== n && (t = t.slice(0, n)), t + (-1 === t.indexOf(\"?\") ? \"?\" : \"&\") + r;\n },\n g = function (t) {\n return Object.keys(t).filter(function (e) {\n return e && void 0 !== t[e];\n }).map(function (e) {\n return \"\".concat(encodeURIComponent(e), \"=\").concat(encodeURIComponent(t[e]));\n }).join(\"&\");\n },\n b = r(12);\n}, function (t, e, r) {\n \"use strict\";\n\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n }), e.StreamReader = e.EndOfStreamError = void 0;\n var n = r(19);\n Object.defineProperty(e, \"EndOfStreamError\", {\n enumerable: !0,\n get: function () {\n return n.EndOfStreamError;\n }\n });\n var i = r(44);\n Object.defineProperty(e, \"StreamReader\", {\n enumerable: !0,\n get: function () {\n return i.StreamReader;\n }\n });\n}, function (t, e, r) {\n \"use strict\";\n\n (function (t, n) {\n r.d(e, \"b\", function () {\n return o;\n }), r.d(e, \"a\", function () {\n return a;\n });\n var i = r(33);\n function o() {\n return !Object(i.a)() && \"[object process]\" === Object.prototype.toString.call(void 0 !== t ? t : 0);\n }\n function a(t, e) {\n return t.require(e);\n }\n }).call(this, r(25), r(28)(t));\n}, function (t, e, r) {\n \"use strict\";\n\n r.d(e, \"a\", function () {\n return a;\n });\n var n = r(2),\n i = r(3),\n o = r.n(i)()(\"fs:request:shouldRetry\"),\n a = function (t) {\n switch (o(\"Checking error for retry. Code: %n, type: %s\", t.response ? t.response.status : \"Malformed response\", t.code), t.code) {\n case n.b.NETWORK:\n case n.b.SERVER:\n case n.b.TIMEOUT:\n return !0;\n case n.b.ABORTED:\n return !1;\n }\n return !!t.response && 500 <= t.response.status && t.response.status <= 599;\n };\n}, function (t, e, r) {\n \"use strict\";\n\n var n = t.exports.Validator = r(34);\n t.exports.ValidatorResult = r(8).ValidatorResult, t.exports.ValidatorResultError = r(8).ValidatorResultError, t.exports.ValidationError = r(8).ValidationError, t.exports.SchemaError = r(8).SchemaError, t.exports.SchemaScanResult = r(16).SchemaScanResult, t.exports.scan = r(16).scan, t.exports.validate = function (t, e, r) {\n return new n().validate(t, e, r);\n };\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n var i = r(35),\n o = r(36);\n function a() {\n this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;\n }\n e.parse = x, e.resolve = function (t, e) {\n return x(t, !1, !0).resolve(e);\n }, e.resolveObject = function (t, e) {\n return t ? x(t, !1, !0).resolveObject(e) : e;\n }, e.format = function (t) {\n o.isString(t) && (t = x(t));\n return t instanceof a ? t.format() : a.prototype.format.call(t);\n }, e.Url = a;\n var s = /^([a-z0-9.+-]+:)/i,\n c = /:[0-9]*$/,\n u = /^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,\n p = [\"{\", \"}\", \"|\", \"\\\\\", \"^\", \"`\"].concat([\"<\", \">\", '\"', \"`\", \" \", \"\\r\", \"\\n\", \"\\t\"]),\n l = [\"'\"].concat(p),\n f = [\"%\", \"/\", \"?\", \";\", \"#\"].concat(l),\n d = [\"/\", \"?\", \"#\"],\n m = /^[+a-z0-9A-Z_-]{0,63}$/,\n h = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,\n y = {\n javascript: !0,\n \"javascript:\": !0\n },\n v = {\n javascript: !0,\n \"javascript:\": !0\n },\n g = {\n http: !0,\n https: !0,\n ftp: !0,\n gopher: !0,\n file: !0,\n \"http:\": !0,\n \"https:\": !0,\n \"ftp:\": !0,\n \"gopher:\": !0,\n \"file:\": !0\n },\n b = r(37);\n function x(t, e, r) {\n if (t && o.isObject(t) && t instanceof a) return t;\n var n = new a();\n return n.parse(t, e, r), n;\n }\n a.prototype.parse = function (t, e, r) {\n if (!o.isString(t)) throw new TypeError(\"Parameter 'url' must be a string, not \" + n(t));\n var a = t.indexOf(\"?\"),\n c = -1 !== a && a < t.indexOf(\"#\") ? \"?\" : \"#\",\n p = t.split(c);\n p[0] = p[0].replace(/\\\\/g, \"/\");\n var x = t = p.join(c);\n if (x = x.trim(), !r && 1 === t.split(\"#\").length) {\n var w = u.exec(x);\n if (w) return this.path = x, this.href = x, this.pathname = w[1], w[2] ? (this.search = w[2], this.query = e ? b.parse(this.search.substr(1)) : this.search.substr(1)) : e && (this.search = \"\", this.query = {}), this;\n }\n var k = s.exec(x);\n if (k) {\n var _ = (k = k[0]).toLowerCase();\n this.protocol = _, x = x.substr(k.length);\n }\n if (r || k || x.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\n var F = \"//\" === x.substr(0, 2);\n !F || k && v[k] || (x = x.substr(2), this.slashes = !0);\n }\n if (!v[k] && (F || k && !g[k])) {\n for (var E, O, j = -1, S = 0; S < d.length; S++) {\n -1 !== (T = x.indexOf(d[S])) && (-1 === j || T < j) && (j = T);\n }\n -1 !== (O = -1 === j ? x.lastIndexOf(\"@\") : x.lastIndexOf(\"@\", j)) && (E = x.slice(0, O), x = x.slice(O + 1), this.auth = decodeURIComponent(E)), j = -1;\n for (S = 0; S < f.length; S++) {\n var T;\n -1 !== (T = x.indexOf(f[S])) && (-1 === j || T < j) && (j = T);\n }\n -1 === j && (j = x.length), this.host = x.slice(0, j), x = x.slice(j), this.parseHost(), this.hostname = this.hostname || \"\";\n var P = \"[\" === this.hostname[0] && \"]\" === this.hostname[this.hostname.length - 1];\n if (!P) for (var A = this.hostname.split(/\\./), C = (S = 0, A.length); S < C; S++) {\n var D = A[S];\n if (D && !D.match(m)) {\n for (var I = \"\", L = 0, N = D.length; L < N; L++) D.charCodeAt(L) > 127 ? I += \"x\" : I += D[L];\n if (!I.match(m)) {\n var z = A.slice(0, S),\n B = A.slice(S + 1),\n M = D.match(h);\n M && (z.push(M[1]), B.unshift(M[2])), B.length && (x = \"/\" + B.join(\".\") + x), this.hostname = z.join(\".\");\n break;\n }\n }\n }\n this.hostname.length > 255 ? this.hostname = \"\" : this.hostname = this.hostname.toLowerCase(), P || (this.hostname = i.toASCII(this.hostname));\n var R = this.port ? \":\" + this.port : \"\",\n $ = this.hostname || \"\";\n this.host = $ + R, this.href += this.host, P && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), \"/\" !== x[0] && (x = \"/\" + x));\n }\n if (!y[_]) for (S = 0, C = l.length; S < C; S++) {\n var U = l[S];\n if (-1 !== x.indexOf(U)) {\n var q = encodeURIComponent(U);\n q === U && (q = escape(U)), x = x.split(U).join(q);\n }\n }\n var V = x.indexOf(\"#\");\n -1 !== V && (this.hash = x.substr(V), x = x.slice(0, V));\n var G = x.indexOf(\"?\");\n if (-1 !== G ? (this.search = x.substr(G), this.query = x.substr(G + 1), e && (this.query = b.parse(this.query)), x = x.slice(0, G)) : e && (this.search = \"\", this.query = {}), x && (this.pathname = x), g[_] && this.hostname && !this.pathname && (this.pathname = \"/\"), this.pathname || this.search) {\n R = this.pathname || \"\";\n var Z = this.search || \"\";\n this.path = R + Z;\n }\n return this.href = this.format(), this;\n }, a.prototype.format = function () {\n var t = this.auth || \"\";\n t && (t = (t = encodeURIComponent(t)).replace(/%3A/i, \":\"), t += \"@\");\n var e = this.protocol || \"\",\n r = this.pathname || \"\",\n n = this.hash || \"\",\n i = !1,\n a = \"\";\n this.host ? i = t + this.host : this.hostname && (i = t + (-1 === this.hostname.indexOf(\":\") ? this.hostname : \"[\" + this.hostname + \"]\"), this.port && (i += \":\" + this.port)), this.query && o.isObject(this.query) && Object.keys(this.query).length && (a = b.stringify(this.query));\n var s = this.search || a && \"?\" + a || \"\";\n return e && \":\" !== e.substr(-1) && (e += \":\"), this.slashes || (!e || g[e]) && !1 !== i ? (i = \"//\" + (i || \"\"), r && \"/\" !== r.charAt(0) && (r = \"/\" + r)) : i || (i = \"\"), n && \"#\" !== n.charAt(0) && (n = \"#\" + n), s && \"?\" !== s.charAt(0) && (s = \"?\" + s), e + i + (r = r.replace(/[?#]/g, function (t) {\n return encodeURIComponent(t);\n })) + (s = s.replace(\"#\", \"%23\")) + n;\n }, a.prototype.resolve = function (t) {\n return this.resolveObject(x(t, !1, !0)).format();\n }, a.prototype.resolveObject = function (t) {\n if (o.isString(t)) {\n var e = new a();\n e.parse(t, !1, !0), t = e;\n }\n for (var r = new a(), n = Object.keys(this), i = 0; i < n.length; i++) {\n var s = n[i];\n r[s] = this[s];\n }\n if (r.hash = t.hash, \"\" === t.href) return r.href = r.format(), r;\n if (t.slashes && !t.protocol) {\n for (var c = Object.keys(t), u = 0; u < c.length; u++) {\n var p = c[u];\n \"protocol\" !== p && (r[p] = t[p]);\n }\n return g[r.protocol] && r.hostname && !r.pathname && (r.path = r.pathname = \"/\"), r.href = r.format(), r;\n }\n if (t.protocol && t.protocol !== r.protocol) {\n if (!g[t.protocol]) {\n for (var l = Object.keys(t), f = 0; f < l.length; f++) {\n var d = l[f];\n r[d] = t[d];\n }\n return r.href = r.format(), r;\n }\n if (r.protocol = t.protocol, t.host || v[t.protocol]) r.pathname = t.pathname;else {\n for (var m = (t.pathname || \"\").split(\"/\"); m.length && !(t.host = m.shift()););\n t.host || (t.host = \"\"), t.hostname || (t.hostname = \"\"), \"\" !== m[0] && m.unshift(\"\"), m.length < 2 && m.unshift(\"\"), r.pathname = m.join(\"/\");\n }\n if (r.search = t.search, r.query = t.query, r.host = t.host || \"\", r.auth = t.auth, r.hostname = t.hostname || t.host, r.port = t.port, r.pathname || r.search) {\n var h = r.pathname || \"\",\n y = r.search || \"\";\n r.path = h + y;\n }\n return r.slashes = r.slashes || t.slashes, r.href = r.format(), r;\n }\n var b = r.pathname && \"/\" === r.pathname.charAt(0),\n x = t.host || t.pathname && \"/\" === t.pathname.charAt(0),\n w = x || b || r.host && t.pathname,\n k = w,\n _ = r.pathname && r.pathname.split(\"/\") || [],\n F = (m = t.pathname && t.pathname.split(\"/\") || [], r.protocol && !g[r.protocol]);\n if (F && (r.hostname = \"\", r.port = null, r.host && (\"\" === _[0] ? _[0] = r.host : _.unshift(r.host)), r.host = \"\", t.protocol && (t.hostname = null, t.port = null, t.host && (\"\" === m[0] ? m[0] = t.host : m.unshift(t.host)), t.host = null), w = w && (\"\" === m[0] || \"\" === _[0])), x) r.host = t.host || \"\" === t.host ? t.host : r.host, r.hostname = t.hostname || \"\" === t.hostname ? t.hostname : r.hostname, r.search = t.search, r.query = t.query, _ = m;else if (m.length) _ || (_ = []), _.pop(), _ = _.concat(m), r.search = t.search, r.query = t.query;else if (!o.isNullOrUndefined(t.search)) {\n if (F) r.hostname = r.host = _.shift(), (T = !!(r.host && r.host.indexOf(\"@\") > 0) && r.host.split(\"@\")) && (r.auth = T.shift(), r.host = r.hostname = T.shift());\n return r.search = t.search, r.query = t.query, o.isNull(r.pathname) && o.isNull(r.search) || (r.path = (r.pathname ? r.pathname : \"\") + (r.search ? r.search : \"\")), r.href = r.format(), r;\n }\n if (!_.length) return r.pathname = null, r.search ? r.path = \"/\" + r.search : r.path = null, r.href = r.format(), r;\n for (var E = _.slice(-1)[0], O = (r.host || t.host || _.length > 1) && (\".\" === E || \"..\" === E) || \"\" === E, j = 0, S = _.length; S >= 0; S--) \".\" === (E = _[S]) ? _.splice(S, 1) : \"..\" === E ? (_.splice(S, 1), j++) : j && (_.splice(S, 1), j--);\n if (!w && !k) for (; j--; j) _.unshift(\"..\");\n !w || \"\" === _[0] || _[0] && \"/\" === _[0].charAt(0) || _.unshift(\"\"), O && \"/\" !== _.join(\"/\").substr(-1) && _.push(\"\");\n var T,\n P = \"\" === _[0] || _[0] && \"/\" === _[0].charAt(0);\n F && (r.hostname = r.host = P ? \"\" : _.length ? _.shift() : \"\", (T = !!(r.host && r.host.indexOf(\"@\") > 0) && r.host.split(\"@\")) && (r.auth = T.shift(), r.host = r.hostname = T.shift()));\n return (w = w || r.host && _.length) && !P && _.unshift(\"\"), _.length ? r.pathname = _.join(\"/\") : (r.pathname = null, r.path = null), o.isNull(r.pathname) && o.isNull(r.search) || (r.path = (r.pathname ? r.pathname : \"\") + (r.search ? r.search : \"\")), r.auth = t.auth || r.auth, r.slashes = r.slashes || t.slashes, r.href = r.format(), r;\n }, a.prototype.parseHost = function () {\n var t = this.host,\n e = c.exec(t);\n e && (\":\" !== (e = e[0]) && (this.port = e.substr(1)), t = t.substr(0, t.length - e.length)), t && (this.hostname = t);\n };\n}, function (t, e) {\n function r(t) {\n return (r = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n var n;\n n = function () {\n return this;\n }();\n try {\n n = n || new Function(\"return this\")();\n } catch (t) {\n \"object\" === (\"undefined\" == typeof window ? \"undefined\" : r(window)) && (n = window);\n }\n t.exports = n;\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n var i = r(14),\n o = r(8);\n function a(t, e) {\n this.id = t, this.ref = e;\n }\n t.exports.SchemaScanResult = a, t.exports.scan = function (t, e) {\n function r(t, e) {\n if (e && \"object\" == n(e)) if (e.$ref) {\n var a = i.resolve(t, e.$ref);\n p[a] = p[a] ? p[a] + 1 : 0;\n } else {\n var l = e.$id || e.id,\n f = l ? i.resolve(t, l) : t;\n if (f) {\n if (f.indexOf(\"#\") < 0 && (f += \"#\"), u[f]) {\n if (!o.deepCompareStrict(u[f], e)) throw new Error(\"Schema <\" + f + \"> already exists with different definition\");\n return u[f];\n }\n u[f] = e, \"#\" == f[f.length - 1] && (u[f.substring(0, f.length - 1)] = e);\n }\n s(f + \"/items\", Array.isArray(e.items) ? e.items : [e.items]), s(f + \"/extends\", Array.isArray(e.extends) ? e.extends : [e.extends]), r(f + \"/additionalItems\", e.additionalItems), c(f + \"/properties\", e.properties), r(f + \"/additionalProperties\", e.additionalProperties), c(f + \"/definitions\", e.definitions), c(f + \"/patternProperties\", e.patternProperties), c(f + \"/dependencies\", e.dependencies), s(f + \"/disallow\", e.disallow), s(f + \"/allOf\", e.allOf), s(f + \"/anyOf\", e.anyOf), s(f + \"/oneOf\", e.oneOf), r(f + \"/not\", e.not);\n }\n }\n function s(t, e) {\n if (Array.isArray(e)) for (var n = 0; n < e.length; n++) r(t + \"/\" + n, e[n]);\n }\n function c(t, e) {\n if (e && \"object\" == n(e)) for (var i in e) r(t + \"/\" + i, e[i]);\n }\n var u = {},\n p = {};\n return r(t, e), new a(u, p);\n };\n}, function (t, e, r) {\n \"use strict\";\n\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n }), e.fromBuffer = e.fromStream = e.EndOfStreamError = void 0;\n var n = r(43),\n i = r(46),\n o = r(10);\n Object.defineProperty(e, \"EndOfStreamError\", {\n enumerable: !0,\n get: function () {\n return o.EndOfStreamError;\n }\n }), e.fromStream = function (t, e) {\n return e = e || {}, new n.ReadStreamTokenizer(t, e);\n }, e.fromBuffer = function (t, e) {\n return new i.BufferTokenizer(t, e);\n };\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i() {\n /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i = function () {\n return e;\n };\n var t,\n e = {},\n r = Object.prototype,\n o = r.hasOwnProperty,\n a = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n s = \"function\" == typeof Symbol ? Symbol : {},\n c = s.iterator || \"@@iterator\",\n u = s.asyncIterator || \"@@asyncIterator\",\n p = s.toStringTag || \"@@toStringTag\";\n function l(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n l({}, \"\");\n } catch (t) {\n l = function (t, e, r) {\n return t[e] = r;\n };\n }\n function f(t, e, r, n) {\n var i = e && e.prototype instanceof g ? e : g,\n o = Object.create(i.prototype),\n s = new A(n || []);\n return a(o, \"_invoke\", {\n value: j(t, r, s)\n }), o;\n }\n function d(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = f;\n var m = \"suspendedStart\",\n h = \"executing\",\n y = \"completed\",\n v = {};\n function g() {}\n function b() {}\n function x() {}\n var w = {};\n l(w, c, function () {\n return this;\n });\n var k = Object.getPrototypeOf,\n _ = k && k(k(C([])));\n _ && _ !== r && o.call(_, c) && (w = _);\n var F = x.prototype = g.prototype = Object.create(w);\n function E(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n l(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function O(t, e) {\n function r(i, a, s, c) {\n var u = d(t[i], t, a);\n if (\"throw\" !== u.type) {\n var p = u.arg,\n l = p.value;\n return l && \"object\" == n(l) && o.call(l, \"__await\") ? e.resolve(l.__await).then(function (t) {\n r(\"next\", t, s, c);\n }, function (t) {\n r(\"throw\", t, s, c);\n }) : e.resolve(l).then(function (t) {\n p.value = t, s(p);\n }, function (t) {\n return r(\"throw\", t, s, c);\n });\n }\n c(u.arg);\n }\n var i;\n a(this, \"_invoke\", {\n value: function (t, n) {\n function o() {\n return new e(function (e, i) {\n r(t, n, e, i);\n });\n }\n return i = i ? i.then(o, o) : o();\n }\n });\n }\n function j(e, r, n) {\n var i = m;\n return function (o, a) {\n if (i === h) throw new Error(\"Generator is already running\");\n if (i === y) {\n if (\"throw\" === o) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = o, n.arg = a;;) {\n var s = n.delegate;\n if (s) {\n var c = S(s, n);\n if (c) {\n if (c === v) continue;\n return c;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (i === m) throw i = y, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n i = h;\n var u = d(e, r, n);\n if (\"normal\" === u.type) {\n if (i = n.done ? y : \"suspendedYield\", u.arg === v) continue;\n return {\n value: u.arg,\n done: n.done\n };\n }\n \"throw\" === u.type && (i = y, n.method = \"throw\", n.arg = u.arg);\n }\n };\n }\n function S(e, r) {\n var n = r.method,\n i = e.iterator[n];\n if (i === t) return r.delegate = null, \"throw\" === n && e.iterator.return && (r.method = \"return\", r.arg = t, S(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), v;\n var o = d(i, e.iterator, r.arg);\n if (\"throw\" === o.type) return r.method = \"throw\", r.arg = o.arg, r.delegate = null, v;\n var a = o.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, v) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, v);\n }\n function T(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function P(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function A(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(T, this), this.reset(!0);\n }\n function C(e) {\n if (e || \"\" === e) {\n var r = e[c];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var i = -1,\n a = function r() {\n for (; ++i < e.length;) if (o.call(e, i)) return r.value = e[i], r.done = !1, r;\n return r.value = t, r.done = !0, r;\n };\n return a.next = a;\n }\n }\n throw new TypeError(n(e) + \" is not iterable\");\n }\n return b.prototype = x, a(F, \"constructor\", {\n value: x,\n configurable: !0\n }), a(x, \"constructor\", {\n value: b,\n configurable: !0\n }), b.displayName = l(x, p, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === b || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, x) : (t.__proto__ = x, l(t, p, \"GeneratorFunction\")), t.prototype = Object.create(F), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, E(O.prototype), l(O.prototype, u, function () {\n return this;\n }), e.AsyncIterator = O, e.async = function (t, r, n, i, o) {\n void 0 === o && (o = Promise);\n var a = new O(f(t, r, n, i), o);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, E(F), l(F, p, \"Generator\"), l(F, c, function () {\n return this;\n }), l(F, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function t() {\n for (; r.length;) {\n var n = r.pop();\n if (n in e) return t.value = n, t.done = !1, t;\n }\n return t.done = !0, t;\n };\n }, e.values = C, A.prototype = {\n constructor: A,\n reset: function (e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(P), !e) for (var r in this) \"t\" === r.charAt(0) && o.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function () {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function (e) {\n if (this.done) throw e;\n var r = this;\n function n(n, i) {\n return s.type = \"throw\", s.arg = e, r.next = n, i && (r.method = \"next\", r.arg = t), !!i;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var a = this.tryEntries[i],\n s = a.completion;\n if (\"root\" === a.tryLoc) return n(\"end\");\n if (a.tryLoc <= this.prev) {\n var c = o.call(a, \"catchLoc\"),\n u = o.call(a, \"finallyLoc\");\n if (c && u) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n } else if (c) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n } else {\n if (!u) throw new Error(\"try statement without catch or finally\");\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n }\n }\n }\n },\n abrupt: function (t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var n = this.tryEntries[r];\n if (n.tryLoc <= this.prev && o.call(n, \"finallyLoc\") && this.prev < n.finallyLoc) {\n var i = n;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, v) : this.complete(a);\n },\n complete: function (t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), v;\n },\n finish: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), P(r), v;\n }\n },\n catch: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var i = n.arg;\n P(r);\n }\n return i;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function (e, r, n) {\n return this.delegate = {\n iterator: C(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), v;\n }\n }, e;\n }\n function o(t, e, r, n, i, o, a) {\n try {\n var s = t[o](a),\n c = s.value;\n } catch (t) {\n return void r(t);\n }\n s.done ? e(c) : Promise.resolve(c).then(n, i);\n }\n function a(t) {\n return function () {\n var e = this,\n r = arguments;\n return new Promise(function (n, i) {\n var a = t.apply(e, r);\n function s(t) {\n o(a, n, i, s, c, \"next\", t);\n }\n function c(t) {\n o(a, n, i, s, c, \"throw\", t);\n }\n s(void 0);\n });\n };\n }\n function s(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, c(n.key), n);\n }\n }\n function c(t) {\n var e = function (t, e) {\n if (\"object\" != n(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var i = r.call(t, e || \"default\");\n if (\"object\" != n(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == n(e) ? e : String(e);\n }\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n }), e.AbstractTokenizer = void 0;\n var u = r(10),\n p = function () {\n function t(e) {\n !function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, t), this.position = 0, this.numBuffer = new Uint8Array(8), this.fileInfo = e || {};\n }\n var e, r, n, o, c, p, l, f, d;\n return e = t, (r = [{\n key: \"readToken\",\n value: (d = a(i().mark(function t(e) {\n var r,\n n,\n o = arguments;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return r = o.length > 1 && void 0 !== o[1] ? o[1] : this.position, n = Buffer.alloc(e.len), t.next = 4, this.readBuffer(n, {\n position: r\n });\n case 4:\n if (!(t.sent < e.len)) {\n t.next = 7;\n break;\n }\n throw new u.EndOfStreamError();\n case 7:\n return t.abrupt(\"return\", e.get(n, 0));\n case 8:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t) {\n return d.apply(this, arguments);\n })\n }, {\n key: \"peekToken\",\n value: (f = a(i().mark(function t(e) {\n var r,\n n,\n o = arguments;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return r = o.length > 1 && void 0 !== o[1] ? o[1] : this.position, n = Buffer.alloc(e.len), t.next = 4, this.peekBuffer(n, {\n position: r\n });\n case 4:\n if (!(t.sent < e.len)) {\n t.next = 7;\n break;\n }\n throw new u.EndOfStreamError();\n case 7:\n return t.abrupt(\"return\", e.get(n, 0));\n case 8:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t) {\n return f.apply(this, arguments);\n })\n }, {\n key: \"readNumber\",\n value: (l = a(i().mark(function t(e) {\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.next = 2, this.readBuffer(this.numBuffer, {\n length: e.len\n });\n case 2:\n if (!(t.sent < e.len)) {\n t.next = 5;\n break;\n }\n throw new u.EndOfStreamError();\n case 5:\n return t.abrupt(\"return\", e.get(this.numBuffer, 0));\n case 6:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t) {\n return l.apply(this, arguments);\n })\n }, {\n key: \"peekNumber\",\n value: (p = a(i().mark(function t(e) {\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.next = 2, this.peekBuffer(this.numBuffer, {\n length: e.len\n });\n case 2:\n if (!(t.sent < e.len)) {\n t.next = 5;\n break;\n }\n throw new u.EndOfStreamError();\n case 5:\n return t.abrupt(\"return\", e.get(this.numBuffer, 0));\n case 6:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t) {\n return p.apply(this, arguments);\n })\n }, {\n key: \"ignore\",\n value: (c = a(i().mark(function t(e) {\n var r;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n if (void 0 === this.fileInfo.size) {\n t.next = 5;\n break;\n }\n if (r = this.fileInfo.size - this.position, !(e > r)) {\n t.next = 5;\n break;\n }\n return this.position += r, t.abrupt(\"return\", r);\n case 5:\n return this.position += e, t.abrupt(\"return\", e);\n case 7:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t) {\n return c.apply(this, arguments);\n })\n }, {\n key: \"close\",\n value: (o = a(i().mark(function t() {\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n case \"end\":\n return t.stop();\n }\n }, t);\n })), function () {\n return o.apply(this, arguments);\n })\n }, {\n key: \"normalizeOptions\",\n value: function (t, e) {\n if (e && void 0 !== e.position && e.position < this.position) throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");\n return e ? {\n mayBeLess: !0 === e.mayBeLess,\n offset: e.offset ? e.offset : 0,\n length: e.length ? e.length : t.length - (e.offset ? e.offset : 0),\n position: e.position ? e.position : this.position\n } : {\n mayBeLess: !1,\n offset: 0,\n length: t.length,\n position: this.position\n };\n }\n }]) && s(e.prototype, r), n && s(e, n), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), t;\n }();\n e.AbstractTokenizer = p;\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, o(n.key), n);\n }\n }\n function o(t) {\n var e = function (t, e) {\n if (\"object\" != n(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var i = r.call(t, e || \"default\");\n if (\"object\" != n(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == n(e) ? e : String(e);\n }\n function a(t, e) {\n if (e && (\"object\" === n(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return function (t) {\n if (void 0 === t) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return t;\n }(t);\n }\n function s(t) {\n var e = \"function\" == typeof Map ? new Map() : void 0;\n return (s = function (t) {\n if (null === t || !function (t) {\n try {\n return -1 !== Function.toString.call(t).indexOf(\"[native code]\");\n } catch (e) {\n return \"function\" == typeof t;\n }\n }(t)) return t;\n if (\"function\" != typeof t) throw new TypeError(\"Super expression must either be null or a function\");\n if (void 0 !== e) {\n if (e.has(t)) return e.get(t);\n e.set(t, r);\n }\n function r() {\n return c(t, arguments, l(this).constructor);\n }\n return r.prototype = Object.create(t.prototype, {\n constructor: {\n value: r,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n }), p(r, t);\n })(t);\n }\n function c(t, e, r) {\n return (c = u() ? Reflect.construct.bind() : function (t, e, r) {\n var n = [null];\n n.push.apply(n, e);\n var i = new (Function.bind.apply(t, n))();\n return r && p(i, r.prototype), i;\n }).apply(null, arguments);\n }\n function u() {\n if (\"undefined\" == typeof Reflect || !Reflect.construct) return !1;\n if (Reflect.construct.sham) return !1;\n if (\"function\" == typeof Proxy) return !0;\n try {\n return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;\n } catch (t) {\n return !1;\n }\n }\n function p(t, e) {\n return (p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n })(t, e);\n }\n function l(t) {\n return (l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n })(t);\n }\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n }), e.EndOfStreamError = e.defaultMessages = void 0, e.defaultMessages = \"End-Of-Stream\";\n var f = function (t) {\n !function (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 && p(t, e);\n }(d, t);\n var r,\n n,\n o,\n s,\n c,\n f = (r = d, n = u(), function () {\n var t,\n e = l(r);\n if (n) {\n var i = l(this).constructor;\n t = Reflect.construct(e, arguments, i);\n } else t = e.apply(this, arguments);\n return a(this, t);\n });\n function d() {\n return function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, d), f.call(this, e.defaultMessages);\n }\n return o = d, s && i(o.prototype, s), c && i(o, c), Object.defineProperty(o, \"prototype\", {\n writable: !1\n }), o;\n }(s(Error));\n e.EndOfStreamError = f;\n}, function (t, e, r) {\n \"use strict\";\n\n var n = r(26),\n i = r(56),\n o = r(63);\n t.exports = {\n XMLParser: i,\n XMLValidator: n,\n XMLBuilder: o\n };\n},, function (t, e) {\n t.exports = function (t) {\n return t.webpackPolyfill || (t.deprecate = function () {}, t.paths = [], t.children || (t.children = []), Object.defineProperty(t, \"loaded\", {\n enumerable: !0,\n get: function () {\n return t.l;\n }\n }), Object.defineProperty(t, \"id\", {\n enumerable: !0,\n get: function () {\n return t.i;\n }\n }), t.webpackPolyfill = 1), t;\n };\n}, function (t, e) {\n (function (e) {\n t.exports = e;\n }).call(this, {});\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i() {\n /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i = function () {\n return e;\n };\n var t,\n e = {},\n r = Object.prototype,\n o = r.hasOwnProperty,\n a = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n s = \"function\" == typeof Symbol ? Symbol : {},\n c = s.iterator || \"@@iterator\",\n u = s.asyncIterator || \"@@asyncIterator\",\n p = s.toStringTag || \"@@toStringTag\";\n function l(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n l({}, \"\");\n } catch (t) {\n l = function (t, e, r) {\n return t[e] = r;\n };\n }\n function f(t, e, r, n) {\n var i = e && e.prototype instanceof g ? e : g,\n o = Object.create(i.prototype),\n s = new A(n || []);\n return a(o, \"_invoke\", {\n value: j(t, r, s)\n }), o;\n }\n function d(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = f;\n var m = \"suspendedStart\",\n h = \"executing\",\n y = \"completed\",\n v = {};\n function g() {}\n function b() {}\n function x() {}\n var w = {};\n l(w, c, function () {\n return this;\n });\n var k = Object.getPrototypeOf,\n _ = k && k(k(C([])));\n _ && _ !== r && o.call(_, c) && (w = _);\n var F = x.prototype = g.prototype = Object.create(w);\n function E(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n l(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function O(t, e) {\n function r(i, a, s, c) {\n var u = d(t[i], t, a);\n if (\"throw\" !== u.type) {\n var p = u.arg,\n l = p.value;\n return l && \"object\" == n(l) && o.call(l, \"__await\") ? e.resolve(l.__await).then(function (t) {\n r(\"next\", t, s, c);\n }, function (t) {\n r(\"throw\", t, s, c);\n }) : e.resolve(l).then(function (t) {\n p.value = t, s(p);\n }, function (t) {\n return r(\"throw\", t, s, c);\n });\n }\n c(u.arg);\n }\n var i;\n a(this, \"_invoke\", {\n value: function (t, n) {\n function o() {\n return new e(function (e, i) {\n r(t, n, e, i);\n });\n }\n return i = i ? i.then(o, o) : o();\n }\n });\n }\n function j(e, r, n) {\n var i = m;\n return function (o, a) {\n if (i === h) throw new Error(\"Generator is already running\");\n if (i === y) {\n if (\"throw\" === o) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = o, n.arg = a;;) {\n var s = n.delegate;\n if (s) {\n var c = S(s, n);\n if (c) {\n if (c === v) continue;\n return c;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (i === m) throw i = y, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n i = h;\n var u = d(e, r, n);\n if (\"normal\" === u.type) {\n if (i = n.done ? y : \"suspendedYield\", u.arg === v) continue;\n return {\n value: u.arg,\n done: n.done\n };\n }\n \"throw\" === u.type && (i = y, n.method = \"throw\", n.arg = u.arg);\n }\n };\n }\n function S(e, r) {\n var n = r.method,\n i = e.iterator[n];\n if (i === t) return r.delegate = null, \"throw\" === n && e.iterator.return && (r.method = \"return\", r.arg = t, S(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), v;\n var o = d(i, e.iterator, r.arg);\n if (\"throw\" === o.type) return r.method = \"throw\", r.arg = o.arg, r.delegate = null, v;\n var a = o.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, v) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, v);\n }\n function T(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function P(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function A(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(T, this), this.reset(!0);\n }\n function C(e) {\n if (e || \"\" === e) {\n var r = e[c];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var i = -1,\n a = function r() {\n for (; ++i < e.length;) if (o.call(e, i)) return r.value = e[i], r.done = !1, r;\n return r.value = t, r.done = !0, r;\n };\n return a.next = a;\n }\n }\n throw new TypeError(n(e) + \" is not iterable\");\n }\n return b.prototype = x, a(F, \"constructor\", {\n value: x,\n configurable: !0\n }), a(x, \"constructor\", {\n value: b,\n configurable: !0\n }), b.displayName = l(x, p, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === b || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, x) : (t.__proto__ = x, l(t, p, \"GeneratorFunction\")), t.prototype = Object.create(F), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, E(O.prototype), l(O.prototype, u, function () {\n return this;\n }), e.AsyncIterator = O, e.async = function (t, r, n, i, o) {\n void 0 === o && (o = Promise);\n var a = new O(f(t, r, n, i), o);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, E(F), l(F, p, \"Generator\"), l(F, c, function () {\n return this;\n }), l(F, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function t() {\n for (; r.length;) {\n var n = r.pop();\n if (n in e) return t.value = n, t.done = !1, t;\n }\n return t.done = !0, t;\n };\n }, e.values = C, A.prototype = {\n constructor: A,\n reset: function (e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(P), !e) for (var r in this) \"t\" === r.charAt(0) && o.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function () {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function (e) {\n if (this.done) throw e;\n var r = this;\n function n(n, i) {\n return s.type = \"throw\", s.arg = e, r.next = n, i && (r.method = \"next\", r.arg = t), !!i;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var a = this.tryEntries[i],\n s = a.completion;\n if (\"root\" === a.tryLoc) return n(\"end\");\n if (a.tryLoc <= this.prev) {\n var c = o.call(a, \"catchLoc\"),\n u = o.call(a, \"finallyLoc\");\n if (c && u) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n } else if (c) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n } else {\n if (!u) throw new Error(\"try statement without catch or finally\");\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n }\n }\n }\n },\n abrupt: function (t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var n = this.tryEntries[r];\n if (n.tryLoc <= this.prev && o.call(n, \"finallyLoc\") && this.prev < n.finallyLoc) {\n var i = n;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, v) : this.complete(a);\n },\n complete: function (t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), v;\n },\n finish: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), P(r), v;\n }\n },\n catch: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var i = n.arg;\n P(r);\n }\n return i;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function (e, r, n) {\n return this.delegate = {\n iterator: C(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), v;\n }\n }, e;\n }\n function o(t, e, r, n, i, o, a) {\n try {\n var s = t[o](a),\n c = s.value;\n } catch (t) {\n return void r(t);\n }\n s.done ? e(c) : Promise.resolve(c).then(n, i);\n }\n function a(t) {\n return function () {\n var e = this,\n r = arguments;\n return new Promise(function (n, i) {\n var a = t.apply(e, r);\n function s(t) {\n o(a, n, i, s, c, \"next\", t);\n }\n function c(t) {\n o(a, n, i, s, c, \"throw\", t);\n }\n s(void 0);\n });\n };\n }\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n }), e.readFile = e.writeFileSync = e.writeFile = e.read = e.open = e.close = e.stat = e.createReadStream = e.pathExists = void 0;\n var s = r(42);\n function c() {\n return (c = a(i().mark(function t(e) {\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.abrupt(\"return\", new Promise(function (t, r) {\n s.stat(e, function (e, n) {\n e ? r(e) : t(n);\n });\n }));\n case 1:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }\n function u() {\n return (u = a(i().mark(function t(e) {\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.abrupt(\"return\", new Promise(function (t, r) {\n s.close(e, function (e) {\n e ? r(e) : t();\n });\n }));\n case 1:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }\n function p() {\n return (p = a(i().mark(function t(e, r) {\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.abrupt(\"return\", new Promise(function (t, n) {\n s.open(e, r, function (e, r) {\n e ? n(e) : t(r);\n });\n }));\n case 1:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }\n function l() {\n return (l = a(i().mark(function t(e, r, n, o, a) {\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.abrupt(\"return\", new Promise(function (t, i) {\n s.read(e, r, n, o, a, function (e, r, n) {\n e ? i(e) : t({\n bytesRead: r,\n buffer: n\n });\n });\n }));\n case 1:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }\n function f() {\n return (f = a(i().mark(function t(e, r) {\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.abrupt(\"return\", new Promise(function (t, n) {\n s.writeFile(e, r, function (e) {\n e ? n(e) : t();\n });\n }));\n case 1:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }\n function d() {\n return (d = a(i().mark(function t(e) {\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.abrupt(\"return\", new Promise(function (t, r) {\n s.readFile(e, function (e, n) {\n e ? r(e) : t(n);\n });\n }));\n case 1:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }\n e.pathExists = s.existsSync, e.createReadStream = s.createReadStream, e.stat = function (t) {\n return c.apply(this, arguments);\n }, e.close = function (t) {\n return u.apply(this, arguments);\n }, e.open = function (t, e) {\n return p.apply(this, arguments);\n }, e.read = function (t, e, r, n, i) {\n return l.apply(this, arguments);\n }, e.writeFile = function (t, e) {\n return f.apply(this, arguments);\n }, e.writeFileSync = function (t, e) {\n s.writeFileSync(t, e);\n }, e.readFile = function (t) {\n return d.apply(this, arguments);\n };\n}, function (t, e) {\n var r,\n n,\n i = t.exports = {};\n function o() {\n throw new Error(\"setTimeout has not been defined\");\n }\n function a() {\n throw new Error(\"clearTimeout has not been defined\");\n }\n function s(t) {\n if (r === setTimeout) return setTimeout(t, 0);\n if ((r === o || !r) && setTimeout) return r = setTimeout, setTimeout(t, 0);\n try {\n return r(t, 0);\n } catch (e) {\n try {\n return r.call(null, t, 0);\n } catch (e) {\n return r.call(this, t, 0);\n }\n }\n }\n !function () {\n try {\n r = \"function\" == typeof setTimeout ? setTimeout : o;\n } catch (t) {\n r = o;\n }\n try {\n n = \"function\" == typeof clearTimeout ? clearTimeout : a;\n } catch (t) {\n n = a;\n }\n }();\n var c,\n u = [],\n p = !1,\n l = -1;\n function f() {\n p && c && (p = !1, c.length ? u = c.concat(u) : l = -1, u.length && d());\n }\n function d() {\n if (!p) {\n var t = s(f);\n p = !0;\n for (var e = u.length; e;) {\n for (c = u, u = []; ++l < e;) c && c[l].run();\n l = -1, e = u.length;\n }\n c = null, p = !1, function (t) {\n if (n === clearTimeout) return clearTimeout(t);\n if ((n === a || !n) && clearTimeout) return n = clearTimeout, clearTimeout(t);\n try {\n n(t);\n } catch (e) {\n try {\n return n.call(null, t);\n } catch (e) {\n return n.call(this, t);\n }\n }\n }(t);\n }\n }\n function m(t, e) {\n this.fun = t, this.array = e;\n }\n function h() {}\n i.nextTick = function (t) {\n var e = new Array(arguments.length - 1);\n if (arguments.length > 1) for (var r = 1; r < arguments.length; r++) e[r - 1] = arguments[r];\n u.push(new m(t, e)), 1 !== u.length || p || s(d);\n }, m.prototype.run = function () {\n this.fun.apply(null, this.array);\n }, i.title = \"browser\", i.browser = !0, i.env = {}, i.argv = [], i.version = \"\", i.versions = {}, i.on = h, i.addListener = h, i.once = h, i.off = h, i.removeListener = h, i.removeAllListeners = h, i.emit = h, i.prependListener = h, i.prependOnceListener = h, i.listeners = function (t) {\n return [];\n }, i.binding = function (t) {\n throw new Error(\"process.binding is not supported\");\n }, i.cwd = function () {\n return \"/\";\n }, i.chdir = function (t) {\n throw new Error(\"process.chdir is not supported\");\n }, i.umask = function () {\n return 0;\n };\n}, function (t, e, r) {\n \"use strict\";\n\n var n = r(27),\n i = {\n allowBooleanAttributes: !1,\n unpairedTags: []\n };\n function o(t) {\n return \" \" === t || \"\\t\" === t || \"\\n\" === t || \"\\r\" === t;\n }\n function a(t, e) {\n for (var r = e; e < t.length; e++) if (\"?\" != t[e] && \" \" != t[e]) ;else {\n var n = t.substr(r, e - r);\n if (e > 5 && \"xml\" === n) return f(\"InvalidXml\", \"XML declaration allowed only at the start of the document.\", m(t, e));\n if (\"?\" == t[e] && \">\" == t[e + 1]) {\n e++;\n break;\n }\n }\n return e;\n }\n function s(t, e) {\n if (t.length > e + 5 && \"-\" === t[e + 1] && \"-\" === t[e + 2]) {\n for (e += 3; e < t.length; e++) if (\"-\" === t[e] && \"-\" === t[e + 1] && \">\" === t[e + 2]) {\n e += 2;\n break;\n }\n } else if (t.length > e + 8 && \"D\" === t[e + 1] && \"O\" === t[e + 2] && \"C\" === t[e + 3] && \"T\" === t[e + 4] && \"Y\" === t[e + 5] && \"P\" === t[e + 6] && \"E\" === t[e + 7]) {\n var r = 1;\n for (e += 8; e < t.length; e++) if (\"<\" === t[e]) r++;else if (\">\" === t[e] && 0 === --r) break;\n } else if (t.length > e + 9 && \"[\" === t[e + 1] && \"C\" === t[e + 2] && \"D\" === t[e + 3] && \"A\" === t[e + 4] && \"T\" === t[e + 5] && \"A\" === t[e + 6] && \"[\" === t[e + 7]) for (e += 8; e < t.length; e++) if (\"]\" === t[e] && \"]\" === t[e + 1] && \">\" === t[e + 2]) {\n e += 2;\n break;\n }\n return e;\n }\n e.validate = function (t, e) {\n e = Object.assign({}, i, e);\n var r,\n u = [],\n d = !1,\n h = !1;\n \"\\ufeff\" === t[0] && (t = t.substr(1));\n for (var y = 0; y < t.length; y++) if (\"<\" === t[y] && \"?\" === t[y + 1]) {\n if ((y = a(t, y += 2)).err) return y;\n } else {\n if (\"<\" !== t[y]) {\n if (o(t[y])) continue;\n return f(\"InvalidChar\", \"char '\" + t[y] + \"' is not expected.\", m(t, y));\n }\n var v = y;\n if (\"!\" === t[++y]) {\n y = s(t, y);\n continue;\n }\n var g = !1;\n \"/\" === t[y] && (g = !0, y++);\n for (var b = \"\"; y < t.length && \">\" !== t[y] && \" \" !== t[y] && \"\\t\" !== t[y] && \"\\n\" !== t[y] && \"\\r\" !== t[y]; y++) b += t[y];\n if (\"/\" === (b = b.trim())[b.length - 1] && (b = b.substring(0, b.length - 1), y--), r = b, !n.isName(r)) {\n return f(\"InvalidTag\", 0 === b.trim().length ? \"Invalid space after '<'.\" : \"Tag '\" + b + \"' is an invalid name.\", m(t, y));\n }\n var x = c(t, y);\n if (!1 === x) return f(\"InvalidAttr\", \"Attributes for '\" + b + \"' have open quote.\", m(t, y));\n var w = x.value;\n if (y = x.index, \"/\" === w[w.length - 1]) {\n var k = y - w.length,\n _ = p(w = w.substring(0, w.length - 1), e);\n if (!0 !== _) return f(_.err.code, _.err.msg, m(t, k + _.err.line));\n d = !0;\n } else if (g) {\n if (!x.tagClosed) return f(\"InvalidTag\", \"Closing tag '\" + b + \"' doesn't have proper closing.\", m(t, y));\n if (w.trim().length > 0) return f(\"InvalidTag\", \"Closing tag '\" + b + \"' can't have attributes or invalid starting.\", m(t, v));\n var F = u.pop();\n if (b !== F.tagName) {\n var E = m(t, F.tagStartPos);\n return f(\"InvalidTag\", \"Expected closing tag '\" + F.tagName + \"' (opened in line \" + E.line + \", col \" + E.col + \") instead of closing tag '\" + b + \"'.\", m(t, v));\n }\n 0 == u.length && (h = !0);\n } else {\n var O = p(w, e);\n if (!0 !== O) return f(O.err.code, O.err.msg, m(t, y - w.length + O.err.line));\n if (!0 === h) return f(\"InvalidXml\", \"Multiple possible root nodes found.\", m(t, y));\n -1 !== e.unpairedTags.indexOf(b) || u.push({\n tagName: b,\n tagStartPos: v\n }), d = !0;\n }\n for (y++; y < t.length; y++) if (\"<\" === t[y]) {\n if (\"!\" === t[y + 1]) {\n y = s(t, ++y);\n continue;\n }\n if (\"?\" !== t[y + 1]) break;\n if ((y = a(t, ++y)).err) return y;\n } else if (\"&\" === t[y]) {\n var j = l(t, y);\n if (-1 == j) return f(\"InvalidChar\", \"char '&' is not expected.\", m(t, y));\n y = j;\n } else if (!0 === h && !o(t[y])) return f(\"InvalidXml\", \"Extra text at the end\", m(t, y));\n \"<\" === t[y] && y--;\n }\n return d ? 1 == u.length ? f(\"InvalidTag\", \"Unclosed tag '\" + u[0].tagName + \"'.\", m(t, u[0].tagStartPos)) : !(u.length > 0) || f(\"InvalidXml\", \"Invalid '\" + JSON.stringify(u.map(function (t) {\n return t.tagName;\n }), null, 4).replace(/\\r?\\n/g, \"\") + \"' found.\", {\n line: 1,\n col: 1\n }) : f(\"InvalidXml\", \"Start tag expected.\", 1);\n };\n function c(t, e) {\n for (var r = \"\", n = \"\", i = !1; e < t.length; e++) {\n if ('\"' === t[e] || \"'\" === t[e]) \"\" === n ? n = t[e] : n !== t[e] || (n = \"\");else if (\">\" === t[e] && \"\" === n) {\n i = !0;\n break;\n }\n r += t[e];\n }\n return \"\" === n && {\n value: r,\n index: e,\n tagClosed: i\n };\n }\n var u = new RegExp(\"(\\\\s*)([^\\\\s=]+)(\\\\s*=)?(\\\\s*(['\\\"])(([\\\\s\\\\S])*?)\\\\5)?\", \"g\");\n function p(t, e) {\n for (var r = n.getAllMatches(t, u), i = {}, o = 0; o < r.length; o++) {\n if (0 === r[o][1].length) return f(\"InvalidAttr\", \"Attribute '\" + r[o][2] + \"' has no space in starting.\", h(r[o]));\n if (void 0 !== r[o][3] && void 0 === r[o][4]) return f(\"InvalidAttr\", \"Attribute '\" + r[o][2] + \"' is without value.\", h(r[o]));\n if (void 0 === r[o][3] && !e.allowBooleanAttributes) return f(\"InvalidAttr\", \"boolean attribute '\" + r[o][2] + \"' is not allowed.\", h(r[o]));\n var a = r[o][2];\n if (!d(a)) return f(\"InvalidAttr\", \"Attribute '\" + a + \"' is an invalid name.\", h(r[o]));\n if (i.hasOwnProperty(a)) return f(\"InvalidAttr\", \"Attribute '\" + a + \"' is repeated.\", h(r[o]));\n i[a] = 1;\n }\n return !0;\n }\n function l(t, e) {\n if (\";\" === t[++e]) return -1;\n if (\"#\" === t[e]) return function (t, e) {\n var r = /\\d/;\n for (\"x\" === t[e] && (e++, r = /[\\da-fA-F]/); e < t.length; e++) {\n if (\";\" === t[e]) return e;\n if (!t[e].match(r)) break;\n }\n return -1;\n }(t, ++e);\n for (var r = 0; e < t.length; e++, r++) if (!(t[e].match(/\\w/) && r < 20)) {\n if (\";\" === t[e]) break;\n return -1;\n }\n return e;\n }\n function f(t, e, r) {\n return {\n err: {\n code: t,\n msg: e,\n line: r.line || r,\n col: r.col\n }\n };\n }\n function d(t) {\n return n.isName(t);\n }\n function m(t, e) {\n var r = t.substring(0, e).split(/\\r?\\n/);\n return {\n line: r.length,\n col: r[r.length - 1].length + 1\n };\n }\n function h(t) {\n return t.startIndex + t[1].length;\n }\n}, function (t, e, r) {\n \"use strict\";\n\n var n = \":A-Za-z_\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\",\n i = \"[\" + n + \"][:A-Za-z_\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.\\\\d\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*\",\n o = new RegExp(\"^\" + i + \"$\");\n e.isExist = function (t) {\n return void 0 !== t;\n }, e.isEmptyObject = function (t) {\n return 0 === Object.keys(t).length;\n }, e.merge = function (t, e, r) {\n if (e) for (var n = Object.keys(e), i = n.length, o = 0; o < i; o++) t[n[o]] = \"strict\" === r ? [e[n[o]]] : e[n[o]];\n }, e.getValue = function (t) {\n return e.isExist(t) ? t : \"\";\n }, e.isName = function (t) {\n var e = o.exec(t);\n return !(null == e);\n }, e.getAllMatches = function (t, e) {\n for (var r = [], n = e.exec(t); n;) {\n var i = [];\n i.startIndex = e.lastIndex - n[0].length;\n for (var o = n.length, a = 0; a < o; a++) i.push(n[a]);\n r.push(i), n = e.exec(t);\n }\n return r;\n }, e.nameRegexp = i;\n}, function (t, e) {\n t.exports = function (t) {\n if (!t.webpackPolyfill) {\n var e = Object.create(t);\n e.children || (e.children = []), Object.defineProperty(e, \"loaded\", {\n enumerable: !0,\n get: function () {\n return e.l;\n }\n }), Object.defineProperty(e, \"id\", {\n enumerable: !0,\n get: function () {\n return e.i;\n }\n }), Object.defineProperty(e, \"exports\", {\n enumerable: !0\n }), e.webpackPolyfill = 1;\n }\n return e;\n };\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i() {\n /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i = function () {\n return e;\n };\n var t,\n e = {},\n r = Object.prototype,\n o = r.hasOwnProperty,\n a = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n s = \"function\" == typeof Symbol ? Symbol : {},\n c = s.iterator || \"@@iterator\",\n u = s.asyncIterator || \"@@asyncIterator\",\n p = s.toStringTag || \"@@toStringTag\";\n function l(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n l({}, \"\");\n } catch (t) {\n l = function (t, e, r) {\n return t[e] = r;\n };\n }\n function f(t, e, r, n) {\n var i = e && e.prototype instanceof g ? e : g,\n o = Object.create(i.prototype),\n s = new A(n || []);\n return a(o, \"_invoke\", {\n value: j(t, r, s)\n }), o;\n }\n function d(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = f;\n var m = \"suspendedStart\",\n h = \"executing\",\n y = \"completed\",\n v = {};\n function g() {}\n function b() {}\n function x() {}\n var w = {};\n l(w, c, function () {\n return this;\n });\n var k = Object.getPrototypeOf,\n _ = k && k(k(C([])));\n _ && _ !== r && o.call(_, c) && (w = _);\n var F = x.prototype = g.prototype = Object.create(w);\n function E(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n l(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function O(t, e) {\n function r(i, a, s, c) {\n var u = d(t[i], t, a);\n if (\"throw\" !== u.type) {\n var p = u.arg,\n l = p.value;\n return l && \"object\" == n(l) && o.call(l, \"__await\") ? e.resolve(l.__await).then(function (t) {\n r(\"next\", t, s, c);\n }, function (t) {\n r(\"throw\", t, s, c);\n }) : e.resolve(l).then(function (t) {\n p.value = t, s(p);\n }, function (t) {\n return r(\"throw\", t, s, c);\n });\n }\n c(u.arg);\n }\n var i;\n a(this, \"_invoke\", {\n value: function (t, n) {\n function o() {\n return new e(function (e, i) {\n r(t, n, e, i);\n });\n }\n return i = i ? i.then(o, o) : o();\n }\n });\n }\n function j(e, r, n) {\n var i = m;\n return function (o, a) {\n if (i === h) throw new Error(\"Generator is already running\");\n if (i === y) {\n if (\"throw\" === o) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = o, n.arg = a;;) {\n var s = n.delegate;\n if (s) {\n var c = S(s, n);\n if (c) {\n if (c === v) continue;\n return c;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (i === m) throw i = y, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n i = h;\n var u = d(e, r, n);\n if (\"normal\" === u.type) {\n if (i = n.done ? y : \"suspendedYield\", u.arg === v) continue;\n return {\n value: u.arg,\n done: n.done\n };\n }\n \"throw\" === u.type && (i = y, n.method = \"throw\", n.arg = u.arg);\n }\n };\n }\n function S(e, r) {\n var n = r.method,\n i = e.iterator[n];\n if (i === t) return r.delegate = null, \"throw\" === n && e.iterator.return && (r.method = \"return\", r.arg = t, S(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), v;\n var o = d(i, e.iterator, r.arg);\n if (\"throw\" === o.type) return r.method = \"throw\", r.arg = o.arg, r.delegate = null, v;\n var a = o.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, v) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, v);\n }\n function T(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function P(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function A(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(T, this), this.reset(!0);\n }\n function C(e) {\n if (e || \"\" === e) {\n var r = e[c];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var i = -1,\n a = function r() {\n for (; ++i < e.length;) if (o.call(e, i)) return r.value = e[i], r.done = !1, r;\n return r.value = t, r.done = !0, r;\n };\n return a.next = a;\n }\n }\n throw new TypeError(n(e) + \" is not iterable\");\n }\n return b.prototype = x, a(F, \"constructor\", {\n value: x,\n configurable: !0\n }), a(x, \"constructor\", {\n value: b,\n configurable: !0\n }), b.displayName = l(x, p, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === b || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, x) : (t.__proto__ = x, l(t, p, \"GeneratorFunction\")), t.prototype = Object.create(F), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, E(O.prototype), l(O.prototype, u, function () {\n return this;\n }), e.AsyncIterator = O, e.async = function (t, r, n, i, o) {\n void 0 === o && (o = Promise);\n var a = new O(f(t, r, n, i), o);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, E(F), l(F, p, \"Generator\"), l(F, c, function () {\n return this;\n }), l(F, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function t() {\n for (; r.length;) {\n var n = r.pop();\n if (n in e) return t.value = n, t.done = !1, t;\n }\n return t.done = !0, t;\n };\n }, e.values = C, A.prototype = {\n constructor: A,\n reset: function (e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(P), !e) for (var r in this) \"t\" === r.charAt(0) && o.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function () {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function (e) {\n if (this.done) throw e;\n var r = this;\n function n(n, i) {\n return s.type = \"throw\", s.arg = e, r.next = n, i && (r.method = \"next\", r.arg = t), !!i;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var a = this.tryEntries[i],\n s = a.completion;\n if (\"root\" === a.tryLoc) return n(\"end\");\n if (a.tryLoc <= this.prev) {\n var c = o.call(a, \"catchLoc\"),\n u = o.call(a, \"finallyLoc\");\n if (c && u) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n } else if (c) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n } else {\n if (!u) throw new Error(\"try statement without catch or finally\");\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n }\n }\n }\n },\n abrupt: function (t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var n = this.tryEntries[r];\n if (n.tryLoc <= this.prev && o.call(n, \"finallyLoc\") && this.prev < n.finallyLoc) {\n var i = n;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, v) : this.complete(a);\n },\n complete: function (t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), v;\n },\n finish: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), P(r), v;\n }\n },\n catch: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var i = n.arg;\n P(r);\n }\n return i;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function (e, r, n) {\n return this.delegate = {\n iterator: C(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), v;\n }\n }, e;\n }\n function o(t, e, r, n, i, o, a) {\n try {\n var s = t[o](a),\n c = s.value;\n } catch (t) {\n return void r(t);\n }\n s.done ? e(c) : Promise.resolve(c).then(n, i);\n }\n function a(t) {\n return function () {\n var e = this,\n r = arguments;\n return new Promise(function (n, i) {\n var a = t.apply(e, r);\n function s(t) {\n o(a, n, i, s, c, \"next\", t);\n }\n function c(t) {\n o(a, n, i, s, c, \"throw\", t);\n }\n s(void 0);\n });\n };\n }\n var s = r(41),\n c = r(48);\n function u() {\n return (u = a(i().mark(function t(e) {\n var r;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.next = 2, s.fromFile(e);\n case 2:\n return r = t.sent, t.prev = 3, t.next = 6, c.fromTokenizer(r);\n case 6:\n return t.abrupt(\"return\", t.sent);\n case 7:\n return t.prev = 7, t.next = 10, r.close();\n case 10:\n return t.finish(7);\n case 11:\n case \"end\":\n return t.stop();\n }\n }, t, null, [[3,, 7, 11]]);\n }))).apply(this, arguments);\n }\n var p = {\n fromFile: function (t) {\n return u.apply(this, arguments);\n }\n };\n Object.assign(p, c), Object.defineProperty(p, \"extensions\", {\n get: function () {\n return c.extensions;\n }\n }), Object.defineProperty(p, \"mimeTypes\", {\n get: function () {\n return c.mimeTypes;\n }\n }), t.exports = p;\n}, function (t, e, r) {\n var n, i, o;\n function a(t) {\n return (a = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n o = function (t) {\n \"use strict\";\n\n var e = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"a\", \"b\", \"c\", \"d\", \"e\", \"f\"];\n function r(t, e) {\n var r = t[0],\n n = t[1],\n i = t[2],\n o = t[3];\n n = ((n += ((i = ((i += ((o = ((o += ((r = ((r += (n & i | ~n & o) + e[0] - 680876936 | 0) << 7 | r >>> 25) + n | 0) & n | ~r & i) + e[1] - 389564586 | 0) << 12 | o >>> 20) + r | 0) & r | ~o & n) + e[2] + 606105819 | 0) << 17 | i >>> 15) + o | 0) & o | ~i & r) + e[3] - 1044525330 | 0) << 22 | n >>> 10) + i | 0, n = ((n += ((i = ((i += ((o = ((o += ((r = ((r += (n & i | ~n & o) + e[4] - 176418897 | 0) << 7 | r >>> 25) + n | 0) & n | ~r & i) + e[5] + 1200080426 | 0) << 12 | o >>> 20) + r | 0) & r | ~o & n) + e[6] - 1473231341 | 0) << 17 | i >>> 15) + o | 0) & o | ~i & r) + e[7] - 45705983 | 0) << 22 | n >>> 10) + i | 0, n = ((n += ((i = ((i += ((o = ((o += ((r = ((r += (n & i | ~n & o) + e[8] + 1770035416 | 0) << 7 | r >>> 25) + n | 0) & n | ~r & i) + e[9] - 1958414417 | 0) << 12 | o >>> 20) + r | 0) & r | ~o & n) + e[10] - 42063 | 0) << 17 | i >>> 15) + o | 0) & o | ~i & r) + e[11] - 1990404162 | 0) << 22 | n >>> 10) + i | 0, n = ((n += ((i = ((i += ((o = ((o += ((r = ((r += (n & i | ~n & o) + e[12] + 1804603682 | 0) << 7 | r >>> 25) + n | 0) & n | ~r & i) + e[13] - 40341101 | 0) << 12 | o >>> 20) + r | 0) & r | ~o & n) + e[14] - 1502002290 | 0) << 17 | i >>> 15) + o | 0) & o | ~i & r) + e[15] + 1236535329 | 0) << 22 | n >>> 10) + i | 0, n = ((n += ((i = ((i += ((o = ((o += ((r = ((r += (n & o | i & ~o) + e[1] - 165796510 | 0) << 5 | r >>> 27) + n | 0) & i | n & ~i) + e[6] - 1069501632 | 0) << 9 | o >>> 23) + r | 0) & n | r & ~n) + e[11] + 643717713 | 0) << 14 | i >>> 18) + o | 0) & r | o & ~r) + e[0] - 373897302 | 0) << 20 | n >>> 12) + i | 0, n = ((n += ((i = ((i += ((o = ((o += ((r = ((r += (n & o | i & ~o) + e[5] - 701558691 | 0) << 5 | r >>> 27) + n | 0) & i | n & ~i) + e[10] + 38016083 | 0) << 9 | o >>> 23) + r | 0) & n | r & ~n) + e[15] - 660478335 | 0) << 14 | i >>> 18) + o | 0) & r | o & ~r) + e[4] - 405537848 | 0) << 20 | n >>> 12) + i | 0, n = ((n += ((i = ((i += ((o = ((o += ((r = ((r += (n & o | i & ~o) + e[9] + 568446438 | 0) << 5 | r >>> 27) + n | 0) & i | n & ~i) + e[14] - 1019803690 | 0) << 9 | o >>> 23) + r | 0) & n | r & ~n) + e[3] - 187363961 | 0) << 14 | i >>> 18) + o | 0) & r | o & ~r) + e[8] + 1163531501 | 0) << 20 | n >>> 12) + i | 0, n = ((n += ((i = ((i += ((o = ((o += ((r = ((r += (n & o | i & ~o) + e[13] - 1444681467 | 0) << 5 | r >>> 27) + n | 0) & i | n & ~i) + e[2] - 51403784 | 0) << 9 | o >>> 23) + r | 0) & n | r & ~n) + e[7] + 1735328473 | 0) << 14 | i >>> 18) + o | 0) & r | o & ~r) + e[12] - 1926607734 | 0) << 20 | n >>> 12) + i | 0, n = ((n += ((i = ((i += ((o = ((o += ((r = ((r += (n ^ i ^ o) + e[5] - 378558 | 0) << 4 | r >>> 28) + n | 0) ^ n ^ i) + e[8] - 2022574463 | 0) << 11 | o >>> 21) + r | 0) ^ r ^ n) + e[11] + 1839030562 | 0) << 16 | i >>> 16) + o | 0) ^ o ^ r) + e[14] - 35309556 | 0) << 23 | n >>> 9) + i | 0, n = ((n += ((i = ((i += ((o = ((o += ((r = ((r += (n ^ i ^ o) + e[1] - 1530992060 | 0) << 4 | r >>> 28) + n | 0) ^ n ^ i) + e[4] + 1272893353 | 0) << 11 | o >>> 21) + r | 0) ^ r ^ n) + e[7] - 155497632 | 0) << 16 | i >>> 16) + o | 0) ^ o ^ r) + e[10] - 1094730640 | 0) << 23 | n >>> 9) + i | 0, n = ((n += ((i = ((i += ((o = ((o += ((r = ((r += (n ^ i ^ o) + e[13] + 681279174 | 0) << 4 | r >>> 28) + n | 0) ^ n ^ i) + e[0] - 358537222 | 0) << 11 | o >>> 21) + r | 0) ^ r ^ n) + e[3] - 722521979 | 0) << 16 | i >>> 16) + o | 0) ^ o ^ r) + e[6] + 76029189 | 0) << 23 | n >>> 9) + i | 0, n = ((n += ((i = ((i += ((o = ((o += ((r = ((r += (n ^ i ^ o) + e[9] - 640364487 | 0) << 4 | r >>> 28) + n | 0) ^ n ^ i) + e[12] - 421815835 | 0) << 11 | o >>> 21) + r | 0) ^ r ^ n) + e[15] + 530742520 | 0) << 16 | i >>> 16) + o | 0) ^ o ^ r) + e[2] - 995338651 | 0) << 23 | n >>> 9) + i | 0, n = ((n += ((o = ((o += (n ^ ((r = ((r += (i ^ (n | ~o)) + e[0] - 198630844 | 0) << 6 | r >>> 26) + n | 0) | ~i)) + e[7] + 1126891415 | 0) << 10 | o >>> 22) + r | 0) ^ ((i = ((i += (r ^ (o | ~n)) + e[14] - 1416354905 | 0) << 15 | i >>> 17) + o | 0) | ~r)) + e[5] - 57434055 | 0) << 21 | n >>> 11) + i | 0, n = ((n += ((o = ((o += (n ^ ((r = ((r += (i ^ (n | ~o)) + e[12] + 1700485571 | 0) << 6 | r >>> 26) + n | 0) | ~i)) + e[3] - 1894986606 | 0) << 10 | o >>> 22) + r | 0) ^ ((i = ((i += (r ^ (o | ~n)) + e[10] - 1051523 | 0) << 15 | i >>> 17) + o | 0) | ~r)) + e[1] - 2054922799 | 0) << 21 | n >>> 11) + i | 0, n = ((n += ((o = ((o += (n ^ ((r = ((r += (i ^ (n | ~o)) + e[8] + 1873313359 | 0) << 6 | r >>> 26) + n | 0) | ~i)) + e[15] - 30611744 | 0) << 10 | o >>> 22) + r | 0) ^ ((i = ((i += (r ^ (o | ~n)) + e[6] - 1560198380 | 0) << 15 | i >>> 17) + o | 0) | ~r)) + e[13] + 1309151649 | 0) << 21 | n >>> 11) + i | 0, n = ((n += ((o = ((o += (n ^ ((r = ((r += (i ^ (n | ~o)) + e[4] - 145523070 | 0) << 6 | r >>> 26) + n | 0) | ~i)) + e[11] - 1120210379 | 0) << 10 | o >>> 22) + r | 0) ^ ((i = ((i += (r ^ (o | ~n)) + e[2] + 718787259 | 0) << 15 | i >>> 17) + o | 0) | ~r)) + e[9] - 343485551 | 0) << 21 | n >>> 11) + i | 0, t[0] = r + t[0] | 0, t[1] = n + t[1] | 0, t[2] = i + t[2] | 0, t[3] = o + t[3] | 0;\n }\n function n(t) {\n var e,\n r = [];\n for (e = 0; e < 64; e += 4) r[e >> 2] = t.charCodeAt(e) + (t.charCodeAt(e + 1) << 8) + (t.charCodeAt(e + 2) << 16) + (t.charCodeAt(e + 3) << 24);\n return r;\n }\n function i(t) {\n var e,\n r = [];\n for (e = 0; e < 64; e += 4) r[e >> 2] = t[e] + (t[e + 1] << 8) + (t[e + 2] << 16) + (t[e + 3] << 24);\n return r;\n }\n function o(t) {\n var e,\n i,\n o,\n a,\n s,\n c,\n u = t.length,\n p = [1732584193, -271733879, -1732584194, 271733878];\n for (e = 64; e <= u; e += 64) r(p, n(t.substring(e - 64, e)));\n for (i = (t = t.substring(e - 64)).length, o = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], e = 0; e < i; e += 1) o[e >> 2] |= t.charCodeAt(e) << (e % 4 << 3);\n if (o[e >> 2] |= 128 << (e % 4 << 3), e > 55) for (r(p, o), e = 0; e < 16; e += 1) o[e] = 0;\n return a = (a = 8 * u).toString(16).match(/(.*?)(.{0,8})$/), s = parseInt(a[2], 16), c = parseInt(a[1], 16) || 0, o[14] = s, o[15] = c, r(p, o), p;\n }\n function a(t) {\n var r,\n n = \"\";\n for (r = 0; r < 4; r += 1) n += e[t >> 8 * r + 4 & 15] + e[t >> 8 * r & 15];\n return n;\n }\n function s(t) {\n var e;\n for (e = 0; e < t.length; e += 1) t[e] = a(t[e]);\n return t.join(\"\");\n }\n function c(t) {\n return /[\\u0080-\\uFFFF]/.test(t) && (t = unescape(encodeURIComponent(t))), t;\n }\n function u(t) {\n var e,\n r = [],\n n = t.length;\n for (e = 0; e < n - 1; e += 2) r.push(parseInt(t.substr(e, 2), 16));\n return String.fromCharCode.apply(String, r);\n }\n function p() {\n this.reset();\n }\n return s(o(\"hello\")), \"undefined\" == typeof ArrayBuffer || ArrayBuffer.prototype.slice || function () {\n function e(t, e) {\n return (t = 0 | t || 0) < 0 ? Math.max(t + e, 0) : Math.min(t, e);\n }\n ArrayBuffer.prototype.slice = function (r, n) {\n var i,\n o,\n a,\n s,\n c = this.byteLength,\n u = e(r, c),\n p = c;\n return n !== t && (p = e(n, c)), u > p ? new ArrayBuffer(0) : (i = p - u, o = new ArrayBuffer(i), a = new Uint8Array(o), s = new Uint8Array(this, u, i), a.set(s), o);\n };\n }(), p.prototype.append = function (t) {\n return this.appendBinary(c(t)), this;\n }, p.prototype.appendBinary = function (t) {\n this._buff += t, this._length += t.length;\n var e,\n i = this._buff.length;\n for (e = 64; e <= i; e += 64) r(this._hash, n(this._buff.substring(e - 64, e)));\n return this._buff = this._buff.substring(e - 64), this;\n }, p.prototype.end = function (t) {\n var e,\n r,\n n = this._buff,\n i = n.length,\n o = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n for (e = 0; e < i; e += 1) o[e >> 2] |= n.charCodeAt(e) << (e % 4 << 3);\n return this._finish(o, i), r = s(this._hash), t && (r = u(r)), this.reset(), r;\n }, p.prototype.reset = function () {\n return this._buff = \"\", this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this;\n }, p.prototype.getState = function () {\n return {\n buff: this._buff,\n length: this._length,\n hash: this._hash.slice()\n };\n }, p.prototype.setState = function (t) {\n return this._buff = t.buff, this._length = t.length, this._hash = t.hash, this;\n }, p.prototype.destroy = function () {\n delete this._hash, delete this._buff, delete this._length;\n }, p.prototype._finish = function (t, e) {\n var n,\n i,\n o,\n a = e;\n if (t[a >> 2] |= 128 << (a % 4 << 3), a > 55) for (r(this._hash, t), a = 0; a < 16; a += 1) t[a] = 0;\n n = (n = 8 * this._length).toString(16).match(/(.*?)(.{0,8})$/), i = parseInt(n[2], 16), o = parseInt(n[1], 16) || 0, t[14] = i, t[15] = o, r(this._hash, t);\n }, p.hash = function (t, e) {\n return p.hashBinary(c(t), e);\n }, p.hashBinary = function (t, e) {\n var r = s(o(t));\n return e ? u(r) : r;\n }, p.ArrayBuffer = function () {\n this.reset();\n }, p.ArrayBuffer.prototype.append = function (t) {\n var e,\n n,\n o,\n a,\n s,\n c = (n = this._buff.buffer, o = t, a = !0, (s = new Uint8Array(n.byteLength + o.byteLength)).set(new Uint8Array(n)), s.set(new Uint8Array(o), n.byteLength), a ? s : s.buffer),\n u = c.length;\n for (this._length += t.byteLength, e = 64; e <= u; e += 64) r(this._hash, i(c.subarray(e - 64, e)));\n return this._buff = e - 64 < u ? new Uint8Array(c.buffer.slice(e - 64)) : new Uint8Array(0), this;\n }, p.ArrayBuffer.prototype.end = function (t) {\n var e,\n r,\n n = this._buff,\n i = n.length,\n o = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n for (e = 0; e < i; e += 1) o[e >> 2] |= n[e] << (e % 4 << 3);\n return this._finish(o, i), r = s(this._hash), t && (r = u(r)), this.reset(), r;\n }, p.ArrayBuffer.prototype.reset = function () {\n return this._buff = new Uint8Array(0), this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this;\n }, p.ArrayBuffer.prototype.getState = function () {\n var t,\n e = p.prototype.getState.call(this);\n return e.buff = (t = e.buff, String.fromCharCode.apply(null, new Uint8Array(t))), e;\n }, p.ArrayBuffer.prototype.setState = function (t) {\n return t.buff = function (t, e) {\n var r,\n n = t.length,\n i = new ArrayBuffer(n),\n o = new Uint8Array(i);\n for (r = 0; r < n; r += 1) o[r] = t.charCodeAt(r);\n return e ? o : i;\n }(t.buff, !0), p.prototype.setState.call(this, t);\n }, p.ArrayBuffer.prototype.destroy = p.prototype.destroy, p.ArrayBuffer.prototype._finish = p.prototype._finish, p.ArrayBuffer.hash = function (t, e) {\n var n = s(function (t) {\n var e,\n n,\n o,\n a,\n s,\n c,\n u = t.length,\n p = [1732584193, -271733879, -1732584194, 271733878];\n for (e = 64; e <= u; e += 64) r(p, i(t.subarray(e - 64, e)));\n for (n = (t = e - 64 < u ? t.subarray(e - 64) : new Uint8Array(0)).length, o = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], e = 0; e < n; e += 1) o[e >> 2] |= t[e] << (e % 4 << 3);\n if (o[e >> 2] |= 128 << (e % 4 << 3), e > 55) for (r(p, o), e = 0; e < 16; e += 1) o[e] = 0;\n return a = (a = 8 * u).toString(16).match(/(.*?)(.{0,8})$/), s = parseInt(a[2], 16), c = parseInt(a[1], 16) || 0, o[14] = s, o[15] = c, r(p, o), p;\n }(new Uint8Array(t)));\n return e ? u(n) : n;\n }, p;\n }, \"object\" === a(e) ? t.exports = o() : void 0 === (i = \"function\" == typeof (n = o) ? n.call(e, r, e, t) : n) || (t.exports = i);\n}, function (t, e, r) {\n \"use strict\";\n\n function n() {\n /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n = function () {\n return e;\n };\n var t,\n e = {},\n r = Object.prototype,\n i = r.hasOwnProperty,\n o = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n s = \"function\" == typeof Symbol ? Symbol : {},\n c = s.iterator || \"@@iterator\",\n u = s.asyncIterator || \"@@asyncIterator\",\n p = s.toStringTag || \"@@toStringTag\";\n function l(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n l({}, \"\");\n } catch (t) {\n l = function (t, e, r) {\n return t[e] = r;\n };\n }\n function f(t, e, r, n) {\n var i = e && e.prototype instanceof g ? e : g,\n a = Object.create(i.prototype),\n s = new A(n || []);\n return o(a, \"_invoke\", {\n value: j(t, r, s)\n }), a;\n }\n function d(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = f;\n var m = \"suspendedStart\",\n h = \"executing\",\n y = \"completed\",\n v = {};\n function g() {}\n function b() {}\n function x() {}\n var w = {};\n l(w, c, function () {\n return this;\n });\n var k = Object.getPrototypeOf,\n _ = k && k(k(C([])));\n _ && _ !== r && i.call(_, c) && (w = _);\n var F = x.prototype = g.prototype = Object.create(w);\n function E(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n l(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function O(t, e) {\n function r(n, o, s, c) {\n var u = d(t[n], t, o);\n if (\"throw\" !== u.type) {\n var p = u.arg,\n l = p.value;\n return l && \"object\" == a(l) && i.call(l, \"__await\") ? e.resolve(l.__await).then(function (t) {\n r(\"next\", t, s, c);\n }, function (t) {\n r(\"throw\", t, s, c);\n }) : e.resolve(l).then(function (t) {\n p.value = t, s(p);\n }, function (t) {\n return r(\"throw\", t, s, c);\n });\n }\n c(u.arg);\n }\n var n;\n o(this, \"_invoke\", {\n value: function (t, i) {\n function o() {\n return new e(function (e, n) {\n r(t, i, e, n);\n });\n }\n return n = n ? n.then(o, o) : o();\n }\n });\n }\n function j(e, r, n) {\n var i = m;\n return function (o, a) {\n if (i === h) throw new Error(\"Generator is already running\");\n if (i === y) {\n if (\"throw\" === o) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = o, n.arg = a;;) {\n var s = n.delegate;\n if (s) {\n var c = S(s, n);\n if (c) {\n if (c === v) continue;\n return c;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (i === m) throw i = y, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n i = h;\n var u = d(e, r, n);\n if (\"normal\" === u.type) {\n if (i = n.done ? y : \"suspendedYield\", u.arg === v) continue;\n return {\n value: u.arg,\n done: n.done\n };\n }\n \"throw\" === u.type && (i = y, n.method = \"throw\", n.arg = u.arg);\n }\n };\n }\n function S(e, r) {\n var n = r.method,\n i = e.iterator[n];\n if (i === t) return r.delegate = null, \"throw\" === n && e.iterator.return && (r.method = \"return\", r.arg = t, S(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), v;\n var o = d(i, e.iterator, r.arg);\n if (\"throw\" === o.type) return r.method = \"throw\", r.arg = o.arg, r.delegate = null, v;\n var a = o.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, v) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, v);\n }\n function T(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function P(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function A(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(T, this), this.reset(!0);\n }\n function C(e) {\n if (e || \"\" === e) {\n var r = e[c];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var n = -1,\n o = function r() {\n for (; ++n < e.length;) if (i.call(e, n)) return r.value = e[n], r.done = !1, r;\n return r.value = t, r.done = !0, r;\n };\n return o.next = o;\n }\n }\n throw new TypeError(a(e) + \" is not iterable\");\n }\n return b.prototype = x, o(F, \"constructor\", {\n value: x,\n configurable: !0\n }), o(x, \"constructor\", {\n value: b,\n configurable: !0\n }), b.displayName = l(x, p, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === b || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, x) : (t.__proto__ = x, l(t, p, \"GeneratorFunction\")), t.prototype = Object.create(F), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, E(O.prototype), l(O.prototype, u, function () {\n return this;\n }), e.AsyncIterator = O, e.async = function (t, r, n, i, o) {\n void 0 === o && (o = Promise);\n var a = new O(f(t, r, n, i), o);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, E(F), l(F, p, \"Generator\"), l(F, c, function () {\n return this;\n }), l(F, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function t() {\n for (; r.length;) {\n var n = r.pop();\n if (n in e) return t.value = n, t.done = !1, t;\n }\n return t.done = !0, t;\n };\n }, e.values = C, A.prototype = {\n constructor: A,\n reset: function (e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(P), !e) for (var r in this) \"t\" === r.charAt(0) && i.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function () {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function (e) {\n if (this.done) throw e;\n var r = this;\n function n(n, i) {\n return s.type = \"throw\", s.arg = e, r.next = n, i && (r.method = \"next\", r.arg = t), !!i;\n }\n for (var o = this.tryEntries.length - 1; o >= 0; --o) {\n var a = this.tryEntries[o],\n s = a.completion;\n if (\"root\" === a.tryLoc) return n(\"end\");\n if (a.tryLoc <= this.prev) {\n var c = i.call(a, \"catchLoc\"),\n u = i.call(a, \"finallyLoc\");\n if (c && u) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n } else if (c) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n } else {\n if (!u) throw new Error(\"try statement without catch or finally\");\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n }\n }\n }\n },\n abrupt: function (t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var n = this.tryEntries[r];\n if (n.tryLoc <= this.prev && i.call(n, \"finallyLoc\") && this.prev < n.finallyLoc) {\n var o = n;\n break;\n }\n }\n o && (\"break\" === t || \"continue\" === t) && o.tryLoc <= e && e <= o.finallyLoc && (o = null);\n var a = o ? o.completion : {};\n return a.type = t, a.arg = e, o ? (this.method = \"next\", this.next = o.finallyLoc, v) : this.complete(a);\n },\n complete: function (t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), v;\n },\n finish: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), P(r), v;\n }\n },\n catch: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var i = n.arg;\n P(r);\n }\n return i;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function (e, r, n) {\n return this.delegate = {\n iterator: C(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), v;\n }\n }, e;\n }\n function i(t, e, r, n, i, o, a) {\n try {\n var s = t[o](a),\n c = s.value;\n } catch (t) {\n return void r(t);\n }\n s.done ? e(c) : Promise.resolve(c).then(n, i);\n }\n function o(t) {\n return function () {\n var e = this,\n r = arguments;\n return new Promise(function (n, o) {\n var a = t.apply(e, r);\n function s(t) {\n i(a, n, o, s, c, \"next\", t);\n }\n function c(t) {\n i(a, n, o, s, c, \"throw\", t);\n }\n s(void 0);\n });\n };\n }\n function a(t) {\n return (a = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function s(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, c(n.key), n);\n }\n }\n function c(t) {\n var e = function (t, e) {\n if (\"object\" != a(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var n = r.call(t, e || \"default\");\n if (\"object\" != a(n)) return n;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == a(e) ? e : String(e);\n }\n function u(t, e) {\n return (u = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n })(t, e);\n }\n function p(t) {\n var e = function () {\n if (\"undefined\" == typeof Reflect || !Reflect.construct) return !1;\n if (Reflect.construct.sham) return !1;\n if (\"function\" == typeof Proxy) return !0;\n try {\n return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;\n } catch (t) {\n return !1;\n }\n }();\n return function () {\n var r,\n n = f(t);\n if (e) {\n var i = f(this).constructor;\n r = Reflect.construct(n, arguments, i);\n } else r = n.apply(this, arguments);\n return l(this, r);\n };\n }\n function l(t, e) {\n if (e && (\"object\" === a(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return function (t) {\n if (void 0 === t) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return t;\n }(t);\n }\n function f(t) {\n return (f = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n })(t);\n }\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n });\n var d = r(65),\n m = r(66),\n h = r(68),\n y = function () {},\n v = new m.TimeoutError(),\n g = function (t) {\n !function (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 && u(t, e);\n }(b, t);\n var e,\n r,\n i,\n c,\n l,\n f,\n d,\n g = p(b);\n function b(t) {\n var e, r, n, i, o;\n if (function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, b), (e = g.call(this))._intervalCount = 0, e._intervalEnd = 0, e._pendingCount = 0, e._resolveEmpty = y, e._resolveIdle = y, !(\"number\" == typeof (t = Object.assign({\n carryoverConcurrencyCount: !1,\n intervalCap: 1 / 0,\n interval: 0,\n concurrency: 1 / 0,\n autoStart: !0,\n queueClass: h.default\n }, t)).intervalCap && t.intervalCap >= 1)) throw new TypeError(\"Expected `intervalCap` to be a number from 1 and up, got `\".concat(null !== (n = null === (r = t.intervalCap) || void 0 === r ? void 0 : r.toString()) && void 0 !== n ? n : \"\", \"` (\").concat(a(t.intervalCap), \")\"));\n if (void 0 === t.interval || !(Number.isFinite(t.interval) && t.interval >= 0)) throw new TypeError(\"Expected `interval` to be a finite number >= 0, got `\".concat(null !== (o = null === (i = t.interval) || void 0 === i ? void 0 : i.toString()) && void 0 !== o ? o : \"\", \"` (\").concat(a(t.interval), \")\"));\n return e._carryoverConcurrencyCount = t.carryoverConcurrencyCount, e._isIntervalIgnored = t.intervalCap === 1 / 0 || 0 === t.interval, e._intervalCap = t.intervalCap, e._interval = t.interval, e._queue = new t.queueClass(), e._queueClass = t.queueClass, e.concurrency = t.concurrency, e._timeout = t.timeout, e._throwOnTimeout = !0 === t.throwOnTimeout, e._isPaused = !1 === t.autoStart, e;\n }\n return e = b, (r = [{\n key: \"_doesIntervalAllowAnother\",\n get: function () {\n return this._isIntervalIgnored || this._intervalCount < this._intervalCap;\n }\n }, {\n key: \"_doesConcurrentAllowAnother\",\n get: function () {\n return this._pendingCount < this._concurrency;\n }\n }, {\n key: \"_next\",\n value: function () {\n this._pendingCount--, this._tryToStartAnother(), this.emit(\"next\");\n }\n }, {\n key: \"_resolvePromises\",\n value: function () {\n this._resolveEmpty(), this._resolveEmpty = y, 0 === this._pendingCount && (this._resolveIdle(), this._resolveIdle = y, this.emit(\"idle\"));\n }\n }, {\n key: \"_onResumeInterval\",\n value: function () {\n this._onInterval(), this._initializeIntervalIfNeeded(), this._timeoutId = void 0;\n }\n }, {\n key: \"_isIntervalPaused\",\n value: function () {\n var t = this,\n e = Date.now();\n if (void 0 === this._intervalId) {\n var r = this._intervalEnd - e;\n if (!(r < 0)) return void 0 === this._timeoutId && (this._timeoutId = setTimeout(function () {\n t._onResumeInterval();\n }, r)), !0;\n this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;\n }\n return !1;\n }\n }, {\n key: \"_tryToStartAnother\",\n value: function () {\n if (0 === this._queue.size) return this._intervalId && clearInterval(this._intervalId), this._intervalId = void 0, this._resolvePromises(), !1;\n if (!this._isPaused) {\n var t = !this._isIntervalPaused();\n if (this._doesIntervalAllowAnother && this._doesConcurrentAllowAnother) {\n var e = this._queue.dequeue();\n return !!e && (this.emit(\"active\"), e(), t && this._initializeIntervalIfNeeded(), !0);\n }\n }\n return !1;\n }\n }, {\n key: \"_initializeIntervalIfNeeded\",\n value: function () {\n var t = this;\n this._isIntervalIgnored || void 0 !== this._intervalId || (this._intervalId = setInterval(function () {\n t._onInterval();\n }, this._interval), this._intervalEnd = Date.now() + this._interval);\n }\n }, {\n key: \"_onInterval\",\n value: function () {\n 0 === this._intervalCount && 0 === this._pendingCount && this._intervalId && (clearInterval(this._intervalId), this._intervalId = void 0), this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0, this._processQueue();\n }\n }, {\n key: \"_processQueue\",\n value: function () {\n for (; this._tryToStartAnother(););\n }\n }, {\n key: \"concurrency\",\n get: function () {\n return this._concurrency;\n },\n set: function (t) {\n if (!(\"number\" == typeof t && t >= 1)) throw new TypeError(\"Expected `concurrency` to be a number from 1 and up, got `\".concat(t, \"` (\").concat(a(t), \")\"));\n this._concurrency = t, this._processQueue();\n }\n }, {\n key: \"add\",\n value: (d = o(n().mark(function t(e) {\n var r,\n i = this,\n a = arguments;\n return n().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return r = a.length > 1 && void 0 !== a[1] ? a[1] : {}, t.abrupt(\"return\", new Promise(function (t, a) {\n var s = function () {\n var s = o(n().mark(function o() {\n var s;\n return n().wrap(function (n) {\n for (;;) switch (n.prev = n.next) {\n case 0:\n return i._pendingCount++, i._intervalCount++, n.prev = 2, s = void 0 === i._timeout && void 0 === r.timeout ? e() : m.default(Promise.resolve(e()), void 0 === r.timeout ? i._timeout : r.timeout, function () {\n (void 0 === r.throwOnTimeout ? i._throwOnTimeout : r.throwOnTimeout) && a(v);\n }), n.t0 = t, n.next = 7, s;\n case 7:\n n.t1 = n.sent, (0, n.t0)(n.t1), n.next = 14;\n break;\n case 11:\n n.prev = 11, n.t2 = n.catch(2), a(n.t2);\n case 14:\n i._next();\n case 15:\n case \"end\":\n return n.stop();\n }\n }, o, null, [[2, 11]]);\n }));\n return function () {\n return s.apply(this, arguments);\n };\n }();\n i._queue.enqueue(s, r), i._tryToStartAnother(), i.emit(\"add\");\n }));\n case 2:\n case \"end\":\n return t.stop();\n }\n }, t);\n })), function (t) {\n return d.apply(this, arguments);\n })\n }, {\n key: \"addAll\",\n value: (f = o(n().mark(function t(e, r) {\n var i = this;\n return n().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.abrupt(\"return\", Promise.all(e.map(function () {\n var t = o(n().mark(function t(e) {\n return n().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.abrupt(\"return\", i.add(e, r));\n case 1:\n case \"end\":\n return t.stop();\n }\n }, t);\n }));\n return function (e) {\n return t.apply(this, arguments);\n };\n }())));\n case 1:\n case \"end\":\n return t.stop();\n }\n }, t);\n })), function (t, e) {\n return f.apply(this, arguments);\n })\n }, {\n key: \"start\",\n value: function () {\n return this._isPaused ? (this._isPaused = !1, this._processQueue(), this) : this;\n }\n }, {\n key: \"pause\",\n value: function () {\n this._isPaused = !0;\n }\n }, {\n key: \"clear\",\n value: function () {\n this._queue = new this._queueClass();\n }\n }, {\n key: \"onEmpty\",\n value: (l = o(n().mark(function t() {\n var e = this;\n return n().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n if (0 !== this._queue.size) {\n t.next = 2;\n break;\n }\n return t.abrupt(\"return\");\n case 2:\n return t.abrupt(\"return\", new Promise(function (t) {\n var r = e._resolveEmpty;\n e._resolveEmpty = function () {\n r(), t();\n };\n }));\n case 3:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function () {\n return l.apply(this, arguments);\n })\n }, {\n key: \"onIdle\",\n value: (c = o(n().mark(function t() {\n var e = this;\n return n().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n if (0 !== this._pendingCount || 0 !== this._queue.size) {\n t.next = 2;\n break;\n }\n return t.abrupt(\"return\");\n case 2:\n return t.abrupt(\"return\", new Promise(function (t) {\n var r = e._resolveIdle;\n e._resolveIdle = function () {\n r(), t();\n };\n }));\n case 3:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function () {\n return c.apply(this, arguments);\n })\n }, {\n key: \"size\",\n get: function () {\n return this._queue.size;\n }\n }, {\n key: \"sizeBy\",\n value: function (t) {\n return this._queue.filter(t).length;\n }\n }, {\n key: \"pending\",\n get: function () {\n return this._pendingCount;\n }\n }, {\n key: \"isPaused\",\n get: function () {\n return this._isPaused;\n }\n }, {\n key: \"timeout\",\n get: function () {\n return this._timeout;\n },\n set: function (t) {\n this._timeout = t;\n }\n }]) && s(e.prototype, r), i && s(e, i), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), b;\n }(d);\n e.default = g;\n}, function (t, e, r) {\n (function (t, r) {\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n var i = \"[object Arguments]\",\n o = \"[object Function]\",\n a = \"[object GeneratorFunction]\",\n s = \"[object Map]\",\n c = \"[object Set]\",\n u = /\\w*$/,\n p = /^\\[object .+?Constructor\\]$/,\n l = /^(?:0|[1-9]\\d*)$/,\n f = {};\n f[i] = f[\"[object Array]\"] = f[\"[object ArrayBuffer]\"] = f[\"[object DataView]\"] = f[\"[object Boolean]\"] = f[\"[object Date]\"] = f[\"[object Float32Array]\"] = f[\"[object Float64Array]\"] = f[\"[object Int8Array]\"] = f[\"[object Int16Array]\"] = f[\"[object Int32Array]\"] = f[s] = f[\"[object Number]\"] = f[\"[object Object]\"] = f[\"[object RegExp]\"] = f[c] = f[\"[object String]\"] = f[\"[object Symbol]\"] = f[\"[object Uint8Array]\"] = f[\"[object Uint8ClampedArray]\"] = f[\"[object Uint16Array]\"] = f[\"[object Uint32Array]\"] = !0, f[\"[object Error]\"] = f[o] = f[\"[object WeakMap]\"] = !1;\n var d = \"object\" == (void 0 === t ? \"undefined\" : n(t)) && t && t.Object === Object && t,\n m = \"object\" == (\"undefined\" == typeof self ? \"undefined\" : n(self)) && self && self.Object === Object && self,\n h = d || m || Function(\"return this\")(),\n y = \"object\" == n(e) && e && !e.nodeType && e,\n v = y && \"object\" == n(r) && r && !r.nodeType && r,\n g = v && v.exports === y;\n function b(t, e) {\n return t.set(e[0], e[1]), t;\n }\n function x(t, e) {\n return t.add(e), t;\n }\n function w(t, e, r, n) {\n var i = -1,\n o = t ? t.length : 0;\n for (n && o && (r = t[++i]); ++i < o;) r = e(r, t[i], i, t);\n return r;\n }\n function k(t) {\n var e = !1;\n if (null != t && \"function\" != typeof t.toString) try {\n e = !!(t + \"\");\n } catch (t) {}\n return e;\n }\n function _(t) {\n var e = -1,\n r = Array(t.size);\n return t.forEach(function (t, n) {\n r[++e] = [n, t];\n }), r;\n }\n function F(t, e) {\n return function (r) {\n return t(e(r));\n };\n }\n function E(t) {\n var e = -1,\n r = Array(t.size);\n return t.forEach(function (t) {\n r[++e] = t;\n }), r;\n }\n var O,\n j = Array.prototype,\n S = Function.prototype,\n T = Object.prototype,\n P = h[\"__core-js_shared__\"],\n A = (O = /[^.]+$/.exec(P && P.keys && P.keys.IE_PROTO || \"\")) ? \"Symbol(src)_1.\" + O : \"\",\n C = S.toString,\n D = T.hasOwnProperty,\n I = T.toString,\n L = RegExp(\"^\" + C.call(D).replace(/[\\\\^$.*+?()[\\]{}|]/g, \"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, \"$1.*?\") + \"$\"),\n N = g ? h.Buffer : void 0,\n z = h.Symbol,\n B = h.Uint8Array,\n M = F(Object.getPrototypeOf, Object),\n R = Object.create,\n $ = T.propertyIsEnumerable,\n U = j.splice,\n q = Object.getOwnPropertySymbols,\n V = N ? N.isBuffer : void 0,\n G = F(Object.keys, Object),\n Z = vt(h, \"DataView\"),\n H = vt(h, \"Map\"),\n W = vt(h, \"Promise\"),\n Y = vt(h, \"Set\"),\n Q = vt(h, \"WeakMap\"),\n K = vt(Object, \"create\"),\n J = kt(Z),\n X = kt(H),\n tt = kt(W),\n et = kt(Y),\n rt = kt(Q),\n nt = z ? z.prototype : void 0,\n it = nt ? nt.valueOf : void 0;\n function ot(t) {\n var e = -1,\n r = t ? t.length : 0;\n for (this.clear(); ++e < r;) {\n var n = t[e];\n this.set(n[0], n[1]);\n }\n }\n function at(t) {\n var e = -1,\n r = t ? t.length : 0;\n for (this.clear(); ++e < r;) {\n var n = t[e];\n this.set(n[0], n[1]);\n }\n }\n function st(t) {\n var e = -1,\n r = t ? t.length : 0;\n for (this.clear(); ++e < r;) {\n var n = t[e];\n this.set(n[0], n[1]);\n }\n }\n function ct(t) {\n this.__data__ = new at(t);\n }\n function ut(t, e) {\n var r = Ft(t) || function (t) {\n return function (t) {\n return function (t) {\n return !!t && \"object\" == n(t);\n }(t) && Et(t);\n }(t) && D.call(t, \"callee\") && (!$.call(t, \"callee\") || I.call(t) == i);\n }(t) ? function (t, e) {\n for (var r = -1, n = Array(t); ++r < t;) n[r] = e(r);\n return n;\n }(t.length, String) : [],\n o = r.length,\n a = !!o;\n for (var s in t) !e && !D.call(t, s) || a && (\"length\" == s || xt(s, o)) || r.push(s);\n return r;\n }\n function pt(t, e, r) {\n var n = t[e];\n D.call(t, e) && _t(n, r) && (void 0 !== r || e in t) || (t[e] = r);\n }\n function lt(t, e) {\n for (var r = t.length; r--;) if (_t(t[r][0], e)) return r;\n return -1;\n }\n function ft(t, e, r, n, p, l, d) {\n var m;\n if (n && (m = l ? n(t, p, l, d) : n(t)), void 0 !== m) return m;\n if (!St(t)) return t;\n var h = Ft(t);\n if (h) {\n if (m = function (t) {\n var e = t.length,\n r = t.constructor(e);\n e && \"string\" == typeof t[0] && D.call(t, \"index\") && (r.index = t.index, r.input = t.input);\n return r;\n }(t), !e) return function (t, e) {\n var r = -1,\n n = t.length;\n e || (e = Array(n));\n for (; ++r < n;) e[r] = t[r];\n return e;\n }(t, m);\n } else {\n var y = bt(t),\n v = y == o || y == a;\n if (Ot(t)) return function (t, e) {\n if (e) return t.slice();\n var r = new t.constructor(t.length);\n return t.copy(r), r;\n }(t, e);\n if (\"[object Object]\" == y || y == i || v && !l) {\n if (k(t)) return l ? t : {};\n if (m = function (t) {\n return \"function\" != typeof t.constructor || wt(t) ? {} : (e = M(t), St(e) ? R(e) : {});\n var e;\n }(v ? {} : t), !e) return function (t, e) {\n return ht(t, gt(t), e);\n }(t, function (t, e) {\n return t && ht(e, Tt(e), t);\n }(m, t));\n } else {\n if (!f[y]) return l ? t : {};\n m = function (t, e, r, n) {\n var i = t.constructor;\n switch (e) {\n case \"[object ArrayBuffer]\":\n return mt(t);\n case \"[object Boolean]\":\n case \"[object Date]\":\n return new i(+t);\n case \"[object DataView]\":\n return function (t, e) {\n var r = e ? mt(t.buffer) : t.buffer;\n return new t.constructor(r, t.byteOffset, t.byteLength);\n }(t, n);\n case \"[object Float32Array]\":\n case \"[object Float64Array]\":\n case \"[object Int8Array]\":\n case \"[object Int16Array]\":\n case \"[object Int32Array]\":\n case \"[object Uint8Array]\":\n case \"[object Uint8ClampedArray]\":\n case \"[object Uint16Array]\":\n case \"[object Uint32Array]\":\n return function (t, e) {\n var r = e ? mt(t.buffer) : t.buffer;\n return new t.constructor(r, t.byteOffset, t.length);\n }(t, n);\n case s:\n return function (t, e, r) {\n return w(e ? r(_(t), !0) : _(t), b, new t.constructor());\n }(t, n, r);\n case \"[object Number]\":\n case \"[object String]\":\n return new i(t);\n case \"[object RegExp]\":\n return function (t) {\n var e = new t.constructor(t.source, u.exec(t));\n return e.lastIndex = t.lastIndex, e;\n }(t);\n case c:\n return function (t, e, r) {\n return w(e ? r(E(t), !0) : E(t), x, new t.constructor());\n }(t, n, r);\n case \"[object Symbol]\":\n return o = t, it ? Object(it.call(o)) : {};\n }\n var o;\n }(t, y, ft, e);\n }\n }\n d || (d = new ct());\n var g = d.get(t);\n if (g) return g;\n if (d.set(t, m), !h) var F = r ? function (t) {\n return function (t, e, r) {\n var n = e(t);\n return Ft(t) ? n : function (t, e) {\n for (var r = -1, n = e.length, i = t.length; ++r < n;) t[i + r] = e[r];\n return t;\n }(n, r(t));\n }(t, Tt, gt);\n }(t) : Tt(t);\n return function (t, e) {\n for (var r = -1, n = t ? t.length : 0; ++r < n && !1 !== e(t[r], r, t););\n }(F || t, function (i, o) {\n F && (i = t[o = i]), pt(m, o, ft(i, e, r, n, o, t, d));\n }), m;\n }\n function dt(t) {\n return !(!St(t) || (e = t, A && A in e)) && (jt(t) || k(t) ? L : p).test(kt(t));\n var e;\n }\n function mt(t) {\n var e = new t.constructor(t.byteLength);\n return new B(e).set(new B(t)), e;\n }\n function ht(t, e, r, n) {\n r || (r = {});\n for (var i = -1, o = e.length; ++i < o;) {\n var a = e[i],\n s = n ? n(r[a], t[a], a, r, t) : void 0;\n pt(r, a, void 0 === s ? t[a] : s);\n }\n return r;\n }\n function yt(t, e) {\n var r,\n i,\n o = t.__data__;\n return (\"string\" == (i = n(r = e)) || \"number\" == i || \"symbol\" == i || \"boolean\" == i ? \"__proto__\" !== r : null === r) ? o[\"string\" == typeof e ? \"string\" : \"hash\"] : o.map;\n }\n function vt(t, e) {\n var r = function (t, e) {\n return null == t ? void 0 : t[e];\n }(t, e);\n return dt(r) ? r : void 0;\n }\n ot.prototype.clear = function () {\n this.__data__ = K ? K(null) : {};\n }, ot.prototype.delete = function (t) {\n return this.has(t) && delete this.__data__[t];\n }, ot.prototype.get = function (t) {\n var e = this.__data__;\n if (K) {\n var r = e[t];\n return \"__lodash_hash_undefined__\" === r ? void 0 : r;\n }\n return D.call(e, t) ? e[t] : void 0;\n }, ot.prototype.has = function (t) {\n var e = this.__data__;\n return K ? void 0 !== e[t] : D.call(e, t);\n }, ot.prototype.set = function (t, e) {\n return this.__data__[t] = K && void 0 === e ? \"__lodash_hash_undefined__\" : e, this;\n }, at.prototype.clear = function () {\n this.__data__ = [];\n }, at.prototype.delete = function (t) {\n var e = this.__data__,\n r = lt(e, t);\n return !(r < 0) && (r == e.length - 1 ? e.pop() : U.call(e, r, 1), !0);\n }, at.prototype.get = function (t) {\n var e = this.__data__,\n r = lt(e, t);\n return r < 0 ? void 0 : e[r][1];\n }, at.prototype.has = function (t) {\n return lt(this.__data__, t) > -1;\n }, at.prototype.set = function (t, e) {\n var r = this.__data__,\n n = lt(r, t);\n return n < 0 ? r.push([t, e]) : r[n][1] = e, this;\n }, st.prototype.clear = function () {\n this.__data__ = {\n hash: new ot(),\n map: new (H || at)(),\n string: new ot()\n };\n }, st.prototype.delete = function (t) {\n return yt(this, t).delete(t);\n }, st.prototype.get = function (t) {\n return yt(this, t).get(t);\n }, st.prototype.has = function (t) {\n return yt(this, t).has(t);\n }, st.prototype.set = function (t, e) {\n return yt(this, t).set(t, e), this;\n }, ct.prototype.clear = function () {\n this.__data__ = new at();\n }, ct.prototype.delete = function (t) {\n return this.__data__.delete(t);\n }, ct.prototype.get = function (t) {\n return this.__data__.get(t);\n }, ct.prototype.has = function (t) {\n return this.__data__.has(t);\n }, ct.prototype.set = function (t, e) {\n var r = this.__data__;\n if (r instanceof at) {\n var n = r.__data__;\n if (!H || n.length < 199) return n.push([t, e]), this;\n r = this.__data__ = new st(n);\n }\n return r.set(t, e), this;\n };\n var gt = q ? F(q, Object) : function () {\n return [];\n },\n bt = function (t) {\n return I.call(t);\n };\n function xt(t, e) {\n return !!(e = null == e ? 9007199254740991 : e) && (\"number\" == typeof t || l.test(t)) && t > -1 && t % 1 == 0 && t < e;\n }\n function wt(t) {\n var e = t && t.constructor;\n return t === (\"function\" == typeof e && e.prototype || T);\n }\n function kt(t) {\n if (null != t) {\n try {\n return C.call(t);\n } catch (t) {}\n try {\n return t + \"\";\n } catch (t) {}\n }\n return \"\";\n }\n function _t(t, e) {\n return t === e || t != t && e != e;\n }\n (Z && \"[object DataView]\" != bt(new Z(new ArrayBuffer(1))) || H && bt(new H()) != s || W && \"[object Promise]\" != bt(W.resolve()) || Y && bt(new Y()) != c || Q && \"[object WeakMap]\" != bt(new Q())) && (bt = function (t) {\n var e = I.call(t),\n r = \"[object Object]\" == e ? t.constructor : void 0,\n n = r ? kt(r) : void 0;\n if (n) switch (n) {\n case J:\n return \"[object DataView]\";\n case X:\n return s;\n case tt:\n return \"[object Promise]\";\n case et:\n return c;\n case rt:\n return \"[object WeakMap]\";\n }\n return e;\n });\n var Ft = Array.isArray;\n function Et(t) {\n return null != t && function (t) {\n return \"number\" == typeof t && t > -1 && t % 1 == 0 && t <= 9007199254740991;\n }(t.length) && !jt(t);\n }\n var Ot = V || function () {\n return !1;\n };\n function jt(t) {\n var e = St(t) ? I.call(t) : \"\";\n return e == o || e == a;\n }\n function St(t) {\n var e = n(t);\n return !!t && (\"object\" == e || \"function\" == e);\n }\n function Tt(t) {\n return Et(t) ? ut(t) : function (t) {\n if (!wt(t)) return G(t);\n var e = [];\n for (var r in Object(t)) D.call(t, r) && \"constructor\" != r && e.push(r);\n return e;\n }(t);\n }\n r.exports = function (t) {\n return ft(t, !0, !0);\n };\n }).call(this, r(15), r(22)(t));\n}, function (t, e, r) {\n \"use strict\";\n\n function n() {\n return \"undefined\" != typeof __SENTRY_BROWSER_BUNDLE__ && !!__SENTRY_BROWSER_BUNDLE__;\n }\n r.d(e, \"a\", function () {\n return n;\n });\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n var i = r(14),\n o = r(40),\n a = r(8),\n s = r(16).scan,\n c = a.ValidatorResult,\n u = a.ValidatorResultError,\n p = a.SchemaError,\n l = a.SchemaContext,\n f = function t() {\n this.customFormats = Object.create(t.prototype.customFormats), this.schemas = {}, this.unresolvedRefs = [], this.types = Object.create(m), this.attributes = Object.create(o.validators);\n };\n function d(t) {\n var e = \"string\" == typeof t ? t : t.$ref;\n return \"string\" == typeof e && e;\n }\n f.prototype.customFormats = {}, f.prototype.schemas = null, f.prototype.types = null, f.prototype.attributes = null, f.prototype.unresolvedRefs = null, f.prototype.addSchema = function (t, e) {\n var r = this;\n if (!t) return null;\n var n = s(e || \"/\", t),\n i = e || t.$id || t.id;\n for (var o in n.id) this.schemas[o] = n.id[o];\n for (var o in n.ref) this.unresolvedRefs.push(o);\n return this.unresolvedRefs = this.unresolvedRefs.filter(function (t) {\n return void 0 === r.schemas[t];\n }), this.schemas[i];\n }, f.prototype.addSubSchemaArray = function (t, e) {\n if (Array.isArray(e)) for (var r = 0; r < e.length; r++) this.addSubSchema(t, e[r]);\n }, f.prototype.addSubSchemaObject = function (t, e) {\n if (e && \"object\" == n(e)) for (var r in e) this.addSubSchema(t, e[r]);\n }, f.prototype.setSchemas = function (t) {\n this.schemas = t;\n }, f.prototype.getSchema = function (t) {\n return this.schemas[t];\n }, f.prototype.validate = function (t, e, r, o) {\n if (\"boolean\" != typeof e && \"object\" !== n(e) || null === e) throw new p(\"Expected `schema` to be an object or boolean\");\n r || (r = {});\n var a,\n f = e.$id || e.id,\n d = i.resolve(r.base || \"/\", f || \"\");\n if (!o) {\n (o = new l(e, r, [], d, Object.create(this.schemas))).schemas[d] || (o.schemas[d] = e);\n var m = s(d, e);\n for (var h in m.id) {\n var y = m.id[h];\n o.schemas[h] = y;\n }\n }\n if (r.required && void 0 === t) return (a = new c(t, e, r, o)).addError(\"is required, but is undefined\"), a;\n if (!(a = this.validateSchema(t, e, r, o))) throw new Error(\"Result undefined\");\n if (r.throwAll && a.errors.length) throw new u(a);\n return a;\n }, f.prototype.validateSchema = function (t, e, r, n) {\n var i = new c(t, e, r, n);\n if (\"boolean\" == typeof e) !0 === e ? e = {} : !1 === e && (e = {\n type: []\n });else if (!e) throw new Error(\"schema is undefined\");\n if (e.extends) if (Array.isArray(e.extends)) {\n var s = {\n schema: e,\n ctx: n\n };\n e.extends.forEach(this.schemaTraverser.bind(this, s)), e = s.schema, s.schema = null, s.ctx = null, s = null;\n } else e = a.deepMerge(e, this.superResolve(e.extends, n));\n var u = d(e);\n if (u) {\n var f = this.resolve(e, u, n),\n m = new l(f.subschema, r, n.path, f.switchSchema, n.schemas);\n return this.validateSchema(t, f.subschema, r, m);\n }\n var h = r && r.skipAttributes || [];\n for (var y in e) if (!o.ignoreProperties[y] && h.indexOf(y) < 0) {\n var v = null,\n g = this.attributes[y];\n if (g) v = g.call(this, t, e, r, n);else if (!1 === r.allowUnknownAttributes) throw new p(\"Unsupported attribute: \" + y, e);\n v && i.importErrors(v);\n }\n if (\"function\" == typeof r.rewrite) {\n var b = r.rewrite.call(this, t, e, r, n);\n i.instance = b;\n }\n return i;\n }, f.prototype.schemaTraverser = function (t, e) {\n t.schema = a.deepMerge(t.schema, this.superResolve(e, t.ctx));\n }, f.prototype.superResolve = function (t, e) {\n var r = d(t);\n return r ? this.resolve(t, r, e).subschema : t;\n }, f.prototype.resolve = function (t, e, r) {\n if (e = r.resolve(e), r.schemas[e]) return {\n subschema: r.schemas[e],\n switchSchema: e\n };\n var n = i.parse(e),\n o = n && n.hash,\n s = o && o.length && e.substr(0, e.length - o.length);\n if (!s || !r.schemas[s]) throw new p(\"no such schema <\" + e + \">\", t);\n var c = a.objectGetPath(r.schemas[s], o.substr(1));\n if (void 0 === c) throw new p(\"no such schema \" + o + \" located in <\" + s + \">\", t);\n return {\n subschema: c,\n switchSchema: e\n };\n }, f.prototype.testType = function (t, e, r, i, o) {\n if (void 0 !== o) {\n if (null === o) throw new p('Unexpected null in \"type\" keyword');\n if (\"function\" == typeof this.types[o]) return this.types[o].call(this, t);\n if (o && \"object\" == n(o)) {\n var a = this.validateSchema(t, o, r, i);\n return void 0 === a || !(a && a.errors.length);\n }\n return !0;\n }\n };\n var m = f.prototype.types = {};\n m.string = function (t) {\n return \"string\" == typeof t;\n }, m.number = function (t) {\n return \"number\" == typeof t && isFinite(t);\n }, m.integer = function (t) {\n return \"number\" == typeof t && t % 1 == 0;\n }, m.boolean = function (t) {\n return \"boolean\" == typeof t;\n }, m.array = function (t) {\n return Array.isArray(t);\n }, m.null = function (t) {\n return null === t;\n }, m.date = function (t) {\n return t instanceof Date;\n }, m.any = function (t) {\n return !0;\n }, m.object = function (t) {\n return t && \"object\" === n(t) && !Array.isArray(t) && !(t instanceof Date);\n }, t.exports = f;\n}, function (t, e, r) {\n (function (t, n) {\n var i;\n function o(t) {\n return (o = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n /*! https://mths.be/punycode v1.3.2 by @mathias */\n !function (a) {\n var s = \"object\" == o(e) && e && !e.nodeType && e,\n c = \"object\" == o(t) && t && !t.nodeType && t,\n u = \"object\" == (void 0 === n ? \"undefined\" : o(n)) && n;\n u.global !== u && u.window !== u && u.self !== u || (a = u);\n var p,\n l,\n f = 2147483647,\n d = /^xn--/,\n m = /[^\\x20-\\x7E]/,\n h = /[\\x2E\\u3002\\uFF0E\\uFF61]/g,\n y = {\n overflow: \"Overflow: input needs wider integers to process\",\n \"not-basic\": \"Illegal input >= 0x80 (not a basic code point)\",\n \"invalid-input\": \"Invalid input\"\n },\n v = Math.floor,\n g = String.fromCharCode;\n function b(t) {\n throw RangeError(y[t]);\n }\n function x(t, e) {\n for (var r = t.length, n = []; r--;) n[r] = e(t[r]);\n return n;\n }\n function w(t, e) {\n var r = t.split(\"@\"),\n n = \"\";\n return r.length > 1 && (n = r[0] + \"@\", t = r[1]), n + x((t = t.replace(h, \".\")).split(\".\"), e).join(\".\");\n }\n function k(t) {\n for (var e, r, n = [], i = 0, o = t.length; i < o;) (e = t.charCodeAt(i++)) >= 55296 && e <= 56319 && i < o ? 56320 == (64512 & (r = t.charCodeAt(i++))) ? n.push(((1023 & e) << 10) + (1023 & r) + 65536) : (n.push(e), i--) : n.push(e);\n return n;\n }\n function _(t) {\n return x(t, function (t) {\n var e = \"\";\n return t > 65535 && (e += g((t -= 65536) >>> 10 & 1023 | 55296), t = 56320 | 1023 & t), e += g(t);\n }).join(\"\");\n }\n function F(t, e) {\n return t + 22 + 75 * (t < 26) - ((0 != e) << 5);\n }\n function E(t, e, r) {\n var n = 0;\n for (t = r ? v(t / 700) : t >> 1, t += v(t / e); t > 455; n += 36) t = v(t / 35);\n return v(n + 36 * t / (t + 38));\n }\n function O(t) {\n var e,\n r,\n n,\n i,\n o,\n a,\n s,\n c,\n u,\n p,\n l,\n d = [],\n m = t.length,\n h = 0,\n y = 128,\n g = 72;\n for ((r = t.lastIndexOf(\"-\")) < 0 && (r = 0), n = 0; n < r; ++n) t.charCodeAt(n) >= 128 && b(\"not-basic\"), d.push(t.charCodeAt(n));\n for (i = r > 0 ? r + 1 : 0; i < m;) {\n for (o = h, a = 1, s = 36; i >= m && b(\"invalid-input\"), ((c = (l = t.charCodeAt(i++)) - 48 < 10 ? l - 22 : l - 65 < 26 ? l - 65 : l - 97 < 26 ? l - 97 : 36) >= 36 || c > v((f - h) / a)) && b(\"overflow\"), h += c * a, !(c < (u = s <= g ? 1 : s >= g + 26 ? 26 : s - g)); s += 36) a > v(f / (p = 36 - u)) && b(\"overflow\"), a *= p;\n g = E(h - o, e = d.length + 1, 0 == o), v(h / e) > f - y && b(\"overflow\"), y += v(h / e), h %= e, d.splice(h++, 0, y);\n }\n return _(d);\n }\n function j(t) {\n var e,\n r,\n n,\n i,\n o,\n a,\n s,\n c,\n u,\n p,\n l,\n d,\n m,\n h,\n y,\n x = [];\n for (d = (t = k(t)).length, e = 128, r = 0, o = 72, a = 0; a < d; ++a) (l = t[a]) < 128 && x.push(g(l));\n for (n = i = x.length, i && x.push(\"-\"); n < d;) {\n for (s = f, a = 0; a < d; ++a) (l = t[a]) >= e && l < s && (s = l);\n for (s - e > v((f - r) / (m = n + 1)) && b(\"overflow\"), r += (s - e) * m, e = s, a = 0; a < d; ++a) if ((l = t[a]) < e && ++r > f && b(\"overflow\"), l == e) {\n for (c = r, u = 36; !(c < (p = u <= o ? 1 : u >= o + 26 ? 26 : u - o)); u += 36) y = c - p, h = 36 - p, x.push(g(F(p + y % h, 0))), c = v(y / h);\n x.push(g(F(c, 0))), o = E(r, m, n == i), r = 0, ++n;\n }\n ++r, ++e;\n }\n return x.join(\"\");\n }\n if (p = {\n version: \"1.3.2\",\n ucs2: {\n decode: k,\n encode: _\n },\n decode: O,\n encode: j,\n toASCII: function (t) {\n return w(t, function (t) {\n return m.test(t) ? \"xn--\" + j(t) : t;\n });\n },\n toUnicode: function (t) {\n return w(t, function (t) {\n return d.test(t) ? O(t.slice(4).toLowerCase()) : t;\n });\n }\n }, \"object\" == o(r(23)) && r(23)) void 0 === (i = function () {\n return p;\n }.call(e, r, e, t)) || (t.exports = i);else if (s && c) {\n if (t.exports == s) c.exports = p;else for (l in p) p.hasOwnProperty(l) && (s[l] = p[l]);\n } else a.punycode = p;\n }(this);\n }).call(this, r(22)(t), r(15));\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n t.exports = {\n isString: function (t) {\n return \"string\" == typeof t;\n },\n isObject: function (t) {\n return \"object\" === n(t) && null !== t;\n },\n isNull: function (t) {\n return null === t;\n },\n isNullOrUndefined: function (t) {\n return null == t;\n }\n };\n}, function (t, e, r) {\n \"use strict\";\n\n e.decode = e.parse = r(38), e.encode = e.stringify = r(39);\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t, e) {\n return Object.prototype.hasOwnProperty.call(t, e);\n }\n t.exports = function (t, e, r, o) {\n e = e || \"&\", r = r || \"=\";\n var a = {};\n if (\"string\" != typeof t || 0 === t.length) return a;\n var s = /\\+/g;\n t = t.split(e);\n var c = 1e3;\n o && \"number\" == typeof o.maxKeys && (c = o.maxKeys);\n var u = t.length;\n c > 0 && u > c && (u = c);\n for (var p = 0; p < u; ++p) {\n var l,\n f,\n d,\n m,\n h = t[p].replace(s, \"%20\"),\n y = h.indexOf(r);\n y >= 0 ? (l = h.substr(0, y), f = h.substr(y + 1)) : (l = h, f = \"\"), d = decodeURIComponent(l), m = decodeURIComponent(f), n(a, d) ? i(a[d]) ? a[d].push(m) : a[d] = [a[d], m] : a[d] = m;\n }\n return a;\n };\n var i = Array.isArray || function (t) {\n return \"[object Array]\" === Object.prototype.toString.call(t);\n };\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n var i = function (t) {\n switch (n(t)) {\n case \"string\":\n return t;\n case \"boolean\":\n return t ? \"true\" : \"false\";\n case \"number\":\n return isFinite(t) ? t : \"\";\n default:\n return \"\";\n }\n };\n t.exports = function (t, e, r, c) {\n return e = e || \"&\", r = r || \"=\", null === t && (t = void 0), \"object\" === n(t) ? a(s(t), function (n) {\n var s = encodeURIComponent(i(n)) + r;\n return o(t[n]) ? a(t[n], function (t) {\n return s + encodeURIComponent(i(t));\n }).join(e) : s + encodeURIComponent(i(t[n]));\n }).join(e) : c ? encodeURIComponent(i(c)) + r + encodeURIComponent(i(t)) : \"\";\n };\n var o = Array.isArray || function (t) {\n return \"[object Array]\" === Object.prototype.toString.call(t);\n };\n function a(t, e) {\n if (t.map) return t.map(e);\n for (var r = [], n = 0; n < t.length; n++) r.push(e(t[n], n));\n return r;\n }\n var s = Object.keys || function (t) {\n var e = [];\n for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.push(r);\n return e;\n };\n}, function (t, e, r) {\n \"use strict\";\n\n var n = r(8),\n i = n.ValidatorResult,\n o = n.SchemaError,\n a = {\n ignoreProperties: {\n id: !0,\n default: !0,\n description: !0,\n title: !0,\n additionalItems: !0,\n then: !0,\n else: !0,\n $schema: !0,\n $ref: !0,\n extends: !0\n }\n },\n s = a.validators = {};\n function c(t, e, r, n, i) {\n var o = e.throwError,\n a = e.throwAll;\n e.throwError = !1, e.throwAll = !1;\n var s = this.validateSchema(t, i, e, r);\n return e.throwError = o, e.throwAll = a, !s.valid && n instanceof Function && n(s), s.valid;\n }\n function u(t, e) {\n if (Object.hasOwnProperty.call(t, e)) return t[e];\n if (e in t) for (; t = Object.getPrototypeOf(t);) if (Object.propertyIsEnumerable.call(t, e)) return t[e];\n }\n function p(t, e, r, n, i, o) {\n if (this.types.object(t) && (!e.properties || void 0 === e.properties[i])) if (!1 === e.additionalProperties) o.addError({\n name: \"additionalProperties\",\n argument: i,\n message: \"is not allowed to have the additional property \" + JSON.stringify(i)\n });else {\n var a = e.additionalProperties || {};\n \"function\" == typeof r.preValidateProperty && r.preValidateProperty(t, i, a, r, n);\n var s = this.validateSchema(t[i], a, r, n.makeChild(a, i));\n s.instance !== o.instance[i] && (o.instance[i] = s.instance), o.importErrors(s);\n }\n }\n s.type = function (t, e, r, n) {\n if (void 0 === t) return null;\n var o = new i(t, e, r, n),\n a = Array.isArray(e.type) ? e.type : [e.type];\n if (!a.some(this.testType.bind(this, t, e, r, n))) {\n var s = a.map(function (t) {\n if (t) {\n var e = t.$id || t.id;\n return e ? \"<\" + e + \">\" : t + \"\";\n }\n });\n o.addError({\n name: \"type\",\n argument: s,\n message: \"is not of a type(s) \" + s\n });\n }\n return o;\n }, s.anyOf = function (t, e, r, n) {\n if (void 0 === t) return null;\n var a = new i(t, e, r, n),\n s = new i(t, e, r, n);\n if (!Array.isArray(e.anyOf)) throw new o(\"anyOf must be an array\");\n if (!e.anyOf.some(c.bind(this, t, r, n, function (t) {\n s.importErrors(t);\n }))) {\n var u = e.anyOf.map(function (t, e) {\n var r = t.$id || t.id;\n return r ? \"<\" + r + \">\" : t.title && JSON.stringify(t.title) || t.$ref && \"<\" + t.$ref + \">\" || \"[subschema \" + e + \"]\";\n });\n r.nestedErrors && a.importErrors(s), a.addError({\n name: \"anyOf\",\n argument: u,\n message: \"is not any of \" + u.join(\",\")\n });\n }\n return a;\n }, s.allOf = function (t, e, r, n) {\n if (void 0 === t) return null;\n if (!Array.isArray(e.allOf)) throw new o(\"allOf must be an array\");\n var a = new i(t, e, r, n),\n s = this;\n return e.allOf.forEach(function (e, i) {\n var o = s.validateSchema(t, e, r, n);\n if (!o.valid) {\n var c = e.$id || e.id || e.title && JSON.stringify(e.title) || e.$ref && \"<\" + e.$ref + \">\" || \"[subschema \" + i + \"]\";\n a.addError({\n name: \"allOf\",\n argument: {\n id: c,\n length: o.errors.length,\n valid: o\n },\n message: \"does not match allOf schema \" + c + \" with \" + o.errors.length + \" error[s]:\"\n }), a.importErrors(o);\n }\n }), a;\n }, s.oneOf = function (t, e, r, n) {\n if (void 0 === t) return null;\n if (!Array.isArray(e.oneOf)) throw new o(\"oneOf must be an array\");\n var a = new i(t, e, r, n),\n s = new i(t, e, r, n),\n u = e.oneOf.filter(c.bind(this, t, r, n, function (t) {\n s.importErrors(t);\n })).length,\n p = e.oneOf.map(function (t, e) {\n return t.$id || t.id || t.title && JSON.stringify(t.title) || t.$ref && \"<\" + t.$ref + \">\" || \"[subschema \" + e + \"]\";\n });\n return 1 !== u && (r.nestedErrors && a.importErrors(s), a.addError({\n name: \"oneOf\",\n argument: p,\n message: \"is not exactly one from \" + p.join(\",\")\n })), a;\n }, s.if = function (t, e, r, o) {\n if (void 0 === t) return null;\n if (!n.isSchema(e.if)) throw new Error('Expected \"if\" keyword to be a schema');\n var a,\n s = c.call(this, t, r, o, null, e.if),\n u = new i(t, e, r, o);\n if (s) {\n if (void 0 === e.then) return;\n if (!n.isSchema(e.then)) throw new Error('Expected \"then\" keyword to be a schema');\n a = this.validateSchema(t, e.then, r, o.makeChild(e.then)), u.importErrors(a);\n } else {\n if (void 0 === e.else) return;\n if (!n.isSchema(e.else)) throw new Error('Expected \"else\" keyword to be a schema');\n a = this.validateSchema(t, e.else, r, o.makeChild(e.else)), u.importErrors(a);\n }\n return u;\n }, s.propertyNames = function (t, e, r, a) {\n if (this.types.object(t)) {\n var s = new i(t, e, r, a),\n c = void 0 !== e.propertyNames ? e.propertyNames : {};\n if (!n.isSchema(c)) throw new o('Expected \"propertyNames\" to be a schema (object or boolean)');\n for (var p in t) if (void 0 !== u(t, p)) {\n var l = this.validateSchema(p, c, r, a.makeChild(c));\n s.importErrors(l);\n }\n return s;\n }\n }, s.properties = function (t, e, r, n) {\n if (this.types.object(t)) {\n var a = new i(t, e, r, n),\n s = e.properties || {};\n for (var c in s) {\n var p = s[c];\n if (void 0 !== p) {\n if (null === p) throw new o('Unexpected null, expected schema in \"properties\"');\n \"function\" == typeof r.preValidateProperty && r.preValidateProperty(t, c, p, r, n);\n var l = u(t, c),\n f = this.validateSchema(l, p, r, n.makeChild(p, c));\n f.instance !== a.instance[c] && (a.instance[c] = f.instance), a.importErrors(f);\n }\n }\n return a;\n }\n }, s.patternProperties = function (t, e, r, n) {\n if (this.types.object(t)) {\n var a = new i(t, e, r, n),\n s = e.patternProperties || {};\n for (var c in t) {\n var u = !0;\n for (var l in s) {\n var f = s[l];\n if (void 0 !== f) {\n if (null === f) throw new o('Unexpected null, expected schema in \"patternProperties\"');\n try {\n var d = new RegExp(l, \"u\");\n } catch (t) {\n d = new RegExp(l);\n }\n if (d.test(c)) {\n u = !1, \"function\" == typeof r.preValidateProperty && r.preValidateProperty(t, c, f, r, n);\n var m = this.validateSchema(t[c], f, r, n.makeChild(f, c));\n m.instance !== a.instance[c] && (a.instance[c] = m.instance), a.importErrors(m);\n }\n }\n }\n u && p.call(this, t, e, r, n, c, a);\n }\n return a;\n }\n }, s.additionalProperties = function (t, e, r, n) {\n if (this.types.object(t)) {\n if (e.patternProperties) return null;\n var o = new i(t, e, r, n);\n for (var a in t) p.call(this, t, e, r, n, a, o);\n return o;\n }\n }, s.minProperties = function (t, e, r, n) {\n if (this.types.object(t)) {\n var o = new i(t, e, r, n);\n return Object.keys(t).length >= e.minProperties || o.addError({\n name: \"minProperties\",\n argument: e.minProperties,\n message: \"does not meet minimum property length of \" + e.minProperties\n }), o;\n }\n }, s.maxProperties = function (t, e, r, n) {\n if (this.types.object(t)) {\n var o = new i(t, e, r, n);\n return Object.keys(t).length <= e.maxProperties || o.addError({\n name: \"maxProperties\",\n argument: e.maxProperties,\n message: \"does not meet maximum property length of \" + e.maxProperties\n }), o;\n }\n }, s.items = function (t, e, r, n) {\n var o = this;\n if (this.types.array(t) && void 0 !== e.items) {\n var a = new i(t, e, r, n);\n return t.every(function (t, i) {\n if (Array.isArray(e.items)) var s = void 0 === e.items[i] ? e.additionalItems : e.items[i];else s = e.items;\n if (void 0 === s) return !0;\n if (!1 === s) return a.addError({\n name: \"items\",\n message: \"additionalItems not permitted\"\n }), !1;\n var c = o.validateSchema(t, s, r, n.makeChild(s, i));\n return c.instance !== a.instance[i] && (a.instance[i] = c.instance), a.importErrors(c), !0;\n }), a;\n }\n }, s.contains = function (t, e, r, o) {\n var a = this;\n if (this.types.array(t) && void 0 !== e.contains) {\n if (!n.isSchema(e.contains)) throw new Error('Expected \"contains\" keyword to be a schema');\n var s = new i(t, e, r, o);\n return !1 === t.some(function (t, n) {\n return 0 === a.validateSchema(t, e.contains, r, o.makeChild(e.contains, n)).errors.length;\n }) && s.addError({\n name: \"contains\",\n argument: e.contains,\n message: \"must contain an item matching given schema\"\n }), s;\n }\n }, s.minimum = function (t, e, r, n) {\n if (this.types.number(t)) {\n var o = new i(t, e, r, n);\n return e.exclusiveMinimum && !0 === e.exclusiveMinimum ? t > e.minimum || o.addError({\n name: \"minimum\",\n argument: e.minimum,\n message: \"must be greater than \" + e.minimum\n }) : t >= e.minimum || o.addError({\n name: \"minimum\",\n argument: e.minimum,\n message: \"must be greater than or equal to \" + e.minimum\n }), o;\n }\n }, s.maximum = function (t, e, r, n) {\n if (this.types.number(t)) {\n var o = new i(t, e, r, n);\n return e.exclusiveMaximum && !0 === e.exclusiveMaximum ? t < e.maximum || o.addError({\n name: \"maximum\",\n argument: e.maximum,\n message: \"must be less than \" + e.maximum\n }) : t <= e.maximum || o.addError({\n name: \"maximum\",\n argument: e.maximum,\n message: \"must be less than or equal to \" + e.maximum\n }), o;\n }\n }, s.exclusiveMinimum = function (t, e, r, n) {\n if (\"boolean\" != typeof e.exclusiveMinimum && this.types.number(t)) {\n var o = new i(t, e, r, n);\n return t > e.exclusiveMinimum || o.addError({\n name: \"exclusiveMinimum\",\n argument: e.exclusiveMinimum,\n message: \"must be strictly greater than \" + e.exclusiveMinimum\n }), o;\n }\n }, s.exclusiveMaximum = function (t, e, r, n) {\n if (\"boolean\" != typeof e.exclusiveMaximum && this.types.number(t)) {\n var o = new i(t, e, r, n);\n return t < e.exclusiveMaximum || o.addError({\n name: \"exclusiveMaximum\",\n argument: e.exclusiveMaximum,\n message: \"must be strictly less than \" + e.exclusiveMaximum\n }), o;\n }\n };\n var l = function (t, e, r, a, s, c) {\n if (this.types.number(t)) {\n var u = e[s];\n if (0 == u) throw new o(s + \" cannot be zero\");\n var p = new i(t, e, r, a),\n l = n.getDecimalPlaces(t),\n f = n.getDecimalPlaces(u),\n d = Math.max(l, f),\n m = Math.pow(10, d);\n return Math.round(t * m) % Math.round(u * m) != 0 && p.addError({\n name: s,\n argument: u,\n message: c + JSON.stringify(u)\n }), p;\n }\n };\n function f(t, e, r) {\n var i,\n o = r.length;\n for (i = e + 1; i < o; i++) if (n.deepCompareStrict(t, r[i])) return !1;\n return !0;\n }\n s.multipleOf = function (t, e, r, n) {\n return l.call(this, t, e, r, n, \"multipleOf\", \"is not a multiple of (divisible by) \");\n }, s.divisibleBy = function (t, e, r, n) {\n return l.call(this, t, e, r, n, \"divisibleBy\", \"is not divisible by (multiple of) \");\n }, s.required = function (t, e, r, n) {\n var o = new i(t, e, r, n);\n return void 0 === t && !0 === e.required ? o.addError({\n name: \"required\",\n message: \"is required\"\n }) : this.types.object(t) && Array.isArray(e.required) && e.required.forEach(function (e) {\n void 0 === u(t, e) && o.addError({\n name: \"required\",\n argument: e,\n message: \"requires property \" + JSON.stringify(e)\n });\n }), o;\n }, s.pattern = function (t, e, r, n) {\n if (this.types.string(t)) {\n var o = new i(t, e, r, n),\n a = e.pattern;\n try {\n var s = new RegExp(a, \"u\");\n } catch (t) {\n s = new RegExp(a);\n }\n return t.match(s) || o.addError({\n name: \"pattern\",\n argument: e.pattern,\n message: \"does not match pattern \" + JSON.stringify(e.pattern.toString())\n }), o;\n }\n }, s.format = function (t, e, r, o) {\n if (void 0 !== t) {\n var a = new i(t, e, r, o);\n return a.disableFormat || n.isFormat(t, e.format, this) || a.addError({\n name: \"format\",\n argument: e.format,\n message: \"does not conform to the \" + JSON.stringify(e.format) + \" format\"\n }), a;\n }\n }, s.minLength = function (t, e, r, n) {\n if (this.types.string(t)) {\n var o = new i(t, e, r, n),\n a = t.match(/[\\uDC00-\\uDFFF]/g);\n return t.length - (a ? a.length : 0) >= e.minLength || o.addError({\n name: \"minLength\",\n argument: e.minLength,\n message: \"does not meet minimum length of \" + e.minLength\n }), o;\n }\n }, s.maxLength = function (t, e, r, n) {\n if (this.types.string(t)) {\n var o = new i(t, e, r, n),\n a = t.match(/[\\uDC00-\\uDFFF]/g);\n return t.length - (a ? a.length : 0) <= e.maxLength || o.addError({\n name: \"maxLength\",\n argument: e.maxLength,\n message: \"does not meet maximum length of \" + e.maxLength\n }), o;\n }\n }, s.minItems = function (t, e, r, n) {\n if (this.types.array(t)) {\n var o = new i(t, e, r, n);\n return t.length >= e.minItems || o.addError({\n name: \"minItems\",\n argument: e.minItems,\n message: \"does not meet minimum length of \" + e.minItems\n }), o;\n }\n }, s.maxItems = function (t, e, r, n) {\n if (this.types.array(t)) {\n var o = new i(t, e, r, n);\n return t.length <= e.maxItems || o.addError({\n name: \"maxItems\",\n argument: e.maxItems,\n message: \"does not meet maximum length of \" + e.maxItems\n }), o;\n }\n }, s.uniqueItems = function (t, e, r, n) {\n if (!0 === e.uniqueItems && this.types.array(t)) {\n var o = new i(t, e, r, n);\n return t.every(f) || o.addError({\n name: \"uniqueItems\",\n message: \"contains duplicate item\"\n }), o;\n }\n }, s.dependencies = function (t, e, r, n) {\n if (this.types.object(t)) {\n var o = new i(t, e, r, n);\n for (var a in e.dependencies) if (void 0 !== t[a]) {\n var s = e.dependencies[a],\n c = n.makeChild(s, a);\n if (\"string\" == typeof s && (s = [s]), Array.isArray(s)) s.forEach(function (e) {\n void 0 === t[e] && o.addError({\n name: \"dependencies\",\n argument: c.propertyPath,\n message: \"property \" + e + \" not found, required by \" + c.propertyPath\n });\n });else {\n var u = this.validateSchema(t, s, r, c);\n o.instance !== u.instance && (o.instance = u.instance), u && u.errors.length && (o.addError({\n name: \"dependencies\",\n argument: c.propertyPath,\n message: \"does not meet dependency required by \" + c.propertyPath\n }), o.importErrors(u));\n }\n }\n return o;\n }\n }, s.enum = function (t, e, r, a) {\n if (void 0 === t) return null;\n if (!Array.isArray(e.enum)) throw new o(\"enum expects an array\", e);\n var s = new i(t, e, r, a);\n return e.enum.some(n.deepCompareStrict.bind(null, t)) || s.addError({\n name: \"enum\",\n argument: e.enum,\n message: \"is not one of enum values: \" + e.enum.map(String).join(\",\")\n }), s;\n }, s.const = function (t, e, r, o) {\n if (void 0 === t) return null;\n var a = new i(t, e, r, o);\n return n.deepCompareStrict(e.const, t) || a.addError({\n name: \"const\",\n argument: e.const,\n message: \"does not exactly match expected constant: \" + e.const\n }), a;\n }, s.not = s.disallow = function (t, e, r, n) {\n var o = this;\n if (void 0 === t) return null;\n var a = new i(t, e, r, n),\n s = e.not || e.disallow;\n return s ? (Array.isArray(s) || (s = [s]), s.forEach(function (i) {\n if (o.testType(t, e, r, n, i)) {\n var s = i && (i.$id || i.id) || i;\n a.addError({\n name: \"not\",\n argument: s,\n message: \"is of prohibited type \" + s\n });\n }\n }), a) : null;\n }, t.exports = a;\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i() {\n /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i = function () {\n return e;\n };\n var t,\n e = {},\n r = Object.prototype,\n o = r.hasOwnProperty,\n a = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n s = \"function\" == typeof Symbol ? Symbol : {},\n c = s.iterator || \"@@iterator\",\n u = s.asyncIterator || \"@@asyncIterator\",\n p = s.toStringTag || \"@@toStringTag\";\n function l(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n l({}, \"\");\n } catch (t) {\n l = function (t, e, r) {\n return t[e] = r;\n };\n }\n function f(t, e, r, n) {\n var i = e && e.prototype instanceof g ? e : g,\n o = Object.create(i.prototype),\n s = new A(n || []);\n return a(o, \"_invoke\", {\n value: j(t, r, s)\n }), o;\n }\n function d(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = f;\n var m = \"suspendedStart\",\n h = \"executing\",\n y = \"completed\",\n v = {};\n function g() {}\n function b() {}\n function x() {}\n var w = {};\n l(w, c, function () {\n return this;\n });\n var k = Object.getPrototypeOf,\n _ = k && k(k(C([])));\n _ && _ !== r && o.call(_, c) && (w = _);\n var F = x.prototype = g.prototype = Object.create(w);\n function E(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n l(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function O(t, e) {\n function r(i, a, s, c) {\n var u = d(t[i], t, a);\n if (\"throw\" !== u.type) {\n var p = u.arg,\n l = p.value;\n return l && \"object\" == n(l) && o.call(l, \"__await\") ? e.resolve(l.__await).then(function (t) {\n r(\"next\", t, s, c);\n }, function (t) {\n r(\"throw\", t, s, c);\n }) : e.resolve(l).then(function (t) {\n p.value = t, s(p);\n }, function (t) {\n return r(\"throw\", t, s, c);\n });\n }\n c(u.arg);\n }\n var i;\n a(this, \"_invoke\", {\n value: function (t, n) {\n function o() {\n return new e(function (e, i) {\n r(t, n, e, i);\n });\n }\n return i = i ? i.then(o, o) : o();\n }\n });\n }\n function j(e, r, n) {\n var i = m;\n return function (o, a) {\n if (i === h) throw new Error(\"Generator is already running\");\n if (i === y) {\n if (\"throw\" === o) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = o, n.arg = a;;) {\n var s = n.delegate;\n if (s) {\n var c = S(s, n);\n if (c) {\n if (c === v) continue;\n return c;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (i === m) throw i = y, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n i = h;\n var u = d(e, r, n);\n if (\"normal\" === u.type) {\n if (i = n.done ? y : \"suspendedYield\", u.arg === v) continue;\n return {\n value: u.arg,\n done: n.done\n };\n }\n \"throw\" === u.type && (i = y, n.method = \"throw\", n.arg = u.arg);\n }\n };\n }\n function S(e, r) {\n var n = r.method,\n i = e.iterator[n];\n if (i === t) return r.delegate = null, \"throw\" === n && e.iterator.return && (r.method = \"return\", r.arg = t, S(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), v;\n var o = d(i, e.iterator, r.arg);\n if (\"throw\" === o.type) return r.method = \"throw\", r.arg = o.arg, r.delegate = null, v;\n var a = o.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, v) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, v);\n }\n function T(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function P(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function A(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(T, this), this.reset(!0);\n }\n function C(e) {\n if (e || \"\" === e) {\n var r = e[c];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var i = -1,\n a = function r() {\n for (; ++i < e.length;) if (o.call(e, i)) return r.value = e[i], r.done = !1, r;\n return r.value = t, r.done = !0, r;\n };\n return a.next = a;\n }\n }\n throw new TypeError(n(e) + \" is not iterable\");\n }\n return b.prototype = x, a(F, \"constructor\", {\n value: x,\n configurable: !0\n }), a(x, \"constructor\", {\n value: b,\n configurable: !0\n }), b.displayName = l(x, p, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === b || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, x) : (t.__proto__ = x, l(t, p, \"GeneratorFunction\")), t.prototype = Object.create(F), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, E(O.prototype), l(O.prototype, u, function () {\n return this;\n }), e.AsyncIterator = O, e.async = function (t, r, n, i, o) {\n void 0 === o && (o = Promise);\n var a = new O(f(t, r, n, i), o);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, E(F), l(F, p, \"Generator\"), l(F, c, function () {\n return this;\n }), l(F, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function t() {\n for (; r.length;) {\n var n = r.pop();\n if (n in e) return t.value = n, t.done = !1, t;\n }\n return t.done = !0, t;\n };\n }, e.values = C, A.prototype = {\n constructor: A,\n reset: function (e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(P), !e) for (var r in this) \"t\" === r.charAt(0) && o.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function () {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function (e) {\n if (this.done) throw e;\n var r = this;\n function n(n, i) {\n return s.type = \"throw\", s.arg = e, r.next = n, i && (r.method = \"next\", r.arg = t), !!i;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var a = this.tryEntries[i],\n s = a.completion;\n if (\"root\" === a.tryLoc) return n(\"end\");\n if (a.tryLoc <= this.prev) {\n var c = o.call(a, \"catchLoc\"),\n u = o.call(a, \"finallyLoc\");\n if (c && u) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n } else if (c) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n } else {\n if (!u) throw new Error(\"try statement without catch or finally\");\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n }\n }\n }\n },\n abrupt: function (t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var n = this.tryEntries[r];\n if (n.tryLoc <= this.prev && o.call(n, \"finallyLoc\") && this.prev < n.finallyLoc) {\n var i = n;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, v) : this.complete(a);\n },\n complete: function (t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), v;\n },\n finish: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), P(r), v;\n }\n },\n catch: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var i = n.arg;\n P(r);\n }\n return i;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function (e, r, n) {\n return this.delegate = {\n iterator: C(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), v;\n }\n }, e;\n }\n function o(t, e, r, n, i, o, a) {\n try {\n var s = t[o](a),\n c = s.value;\n } catch (t) {\n return void r(t);\n }\n s.done ? e(c) : Promise.resolve(c).then(n, i);\n }\n function a(t) {\n return function () {\n var e = this,\n r = arguments;\n return new Promise(function (n, i) {\n var a = t.apply(e, r);\n function s(t) {\n o(a, n, i, s, c, \"next\", t);\n }\n function c(t) {\n o(a, n, i, s, c, \"throw\", t);\n }\n s(void 0);\n });\n };\n }\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n }), e.fromStream = e.fromBuffer = e.EndOfStreamError = e.fromFile = void 0;\n var s = r(24),\n c = r(17),\n u = r(47);\n Object.defineProperty(e, \"fromFile\", {\n enumerable: !0,\n get: function () {\n return u.fromFile;\n }\n });\n var p = r(17);\n function l() {\n return (l = a(i().mark(function t(e, r) {\n var n;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n if (r = r || {}, !e.path) {\n t.next = 7;\n break;\n }\n return t.next = 4, s.stat(e.path);\n case 4:\n n = t.sent, r.path = e.path, r.size = n.size;\n case 7:\n return t.abrupt(\"return\", c.fromStream(e, r));\n case 8:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }\n Object.defineProperty(e, \"EndOfStreamError\", {\n enumerable: !0,\n get: function () {\n return p.EndOfStreamError;\n }\n }), Object.defineProperty(e, \"fromBuffer\", {\n enumerable: !0,\n get: function () {\n return p.fromBuffer;\n }\n }), e.fromStream = function (t, e) {\n return l.apply(this, arguments);\n };\n}, function (t, e) {}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i() {\n /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i = function () {\n return e;\n };\n var t,\n e = {},\n r = Object.prototype,\n o = r.hasOwnProperty,\n a = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n s = \"function\" == typeof Symbol ? Symbol : {},\n c = s.iterator || \"@@iterator\",\n u = s.asyncIterator || \"@@asyncIterator\",\n p = s.toStringTag || \"@@toStringTag\";\n function l(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n l({}, \"\");\n } catch (t) {\n l = function (t, e, r) {\n return t[e] = r;\n };\n }\n function f(t, e, r, n) {\n var i = e && e.prototype instanceof g ? e : g,\n o = Object.create(i.prototype),\n s = new A(n || []);\n return a(o, \"_invoke\", {\n value: j(t, r, s)\n }), o;\n }\n function d(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = f;\n var m = \"suspendedStart\",\n h = \"executing\",\n y = \"completed\",\n v = {};\n function g() {}\n function b() {}\n function x() {}\n var w = {};\n l(w, c, function () {\n return this;\n });\n var k = Object.getPrototypeOf,\n _ = k && k(k(C([])));\n _ && _ !== r && o.call(_, c) && (w = _);\n var F = x.prototype = g.prototype = Object.create(w);\n function E(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n l(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function O(t, e) {\n function r(i, a, s, c) {\n var u = d(t[i], t, a);\n if (\"throw\" !== u.type) {\n var p = u.arg,\n l = p.value;\n return l && \"object\" == n(l) && o.call(l, \"__await\") ? e.resolve(l.__await).then(function (t) {\n r(\"next\", t, s, c);\n }, function (t) {\n r(\"throw\", t, s, c);\n }) : e.resolve(l).then(function (t) {\n p.value = t, s(p);\n }, function (t) {\n return r(\"throw\", t, s, c);\n });\n }\n c(u.arg);\n }\n var i;\n a(this, \"_invoke\", {\n value: function (t, n) {\n function o() {\n return new e(function (e, i) {\n r(t, n, e, i);\n });\n }\n return i = i ? i.then(o, o) : o();\n }\n });\n }\n function j(e, r, n) {\n var i = m;\n return function (o, a) {\n if (i === h) throw new Error(\"Generator is already running\");\n if (i === y) {\n if (\"throw\" === o) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = o, n.arg = a;;) {\n var s = n.delegate;\n if (s) {\n var c = S(s, n);\n if (c) {\n if (c === v) continue;\n return c;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (i === m) throw i = y, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n i = h;\n var u = d(e, r, n);\n if (\"normal\" === u.type) {\n if (i = n.done ? y : \"suspendedYield\", u.arg === v) continue;\n return {\n value: u.arg,\n done: n.done\n };\n }\n \"throw\" === u.type && (i = y, n.method = \"throw\", n.arg = u.arg);\n }\n };\n }\n function S(e, r) {\n var n = r.method,\n i = e.iterator[n];\n if (i === t) return r.delegate = null, \"throw\" === n && e.iterator.return && (r.method = \"return\", r.arg = t, S(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), v;\n var o = d(i, e.iterator, r.arg);\n if (\"throw\" === o.type) return r.method = \"throw\", r.arg = o.arg, r.delegate = null, v;\n var a = o.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, v) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, v);\n }\n function T(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function P(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function A(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(T, this), this.reset(!0);\n }\n function C(e) {\n if (e || \"\" === e) {\n var r = e[c];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var i = -1,\n a = function r() {\n for (; ++i < e.length;) if (o.call(e, i)) return r.value = e[i], r.done = !1, r;\n return r.value = t, r.done = !0, r;\n };\n return a.next = a;\n }\n }\n throw new TypeError(n(e) + \" is not iterable\");\n }\n return b.prototype = x, a(F, \"constructor\", {\n value: x,\n configurable: !0\n }), a(x, \"constructor\", {\n value: b,\n configurable: !0\n }), b.displayName = l(x, p, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === b || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, x) : (t.__proto__ = x, l(t, p, \"GeneratorFunction\")), t.prototype = Object.create(F), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, E(O.prototype), l(O.prototype, u, function () {\n return this;\n }), e.AsyncIterator = O, e.async = function (t, r, n, i, o) {\n void 0 === o && (o = Promise);\n var a = new O(f(t, r, n, i), o);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, E(F), l(F, p, \"Generator\"), l(F, c, function () {\n return this;\n }), l(F, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function t() {\n for (; r.length;) {\n var n = r.pop();\n if (n in e) return t.value = n, t.done = !1, t;\n }\n return t.done = !0, t;\n };\n }, e.values = C, A.prototype = {\n constructor: A,\n reset: function (e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(P), !e) for (var r in this) \"t\" === r.charAt(0) && o.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function () {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function (e) {\n if (this.done) throw e;\n var r = this;\n function n(n, i) {\n return s.type = \"throw\", s.arg = e, r.next = n, i && (r.method = \"next\", r.arg = t), !!i;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var a = this.tryEntries[i],\n s = a.completion;\n if (\"root\" === a.tryLoc) return n(\"end\");\n if (a.tryLoc <= this.prev) {\n var c = o.call(a, \"catchLoc\"),\n u = o.call(a, \"finallyLoc\");\n if (c && u) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n } else if (c) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n } else {\n if (!u) throw new Error(\"try statement without catch or finally\");\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n }\n }\n }\n },\n abrupt: function (t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var n = this.tryEntries[r];\n if (n.tryLoc <= this.prev && o.call(n, \"finallyLoc\") && this.prev < n.finallyLoc) {\n var i = n;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, v) : this.complete(a);\n },\n complete: function (t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), v;\n },\n finish: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), P(r), v;\n }\n },\n catch: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var i = n.arg;\n P(r);\n }\n return i;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function (e, r, n) {\n return this.delegate = {\n iterator: C(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), v;\n }\n }, e;\n }\n function o(t, e, r, n, i, o, a) {\n try {\n var s = t[o](a),\n c = s.value;\n } catch (t) {\n return void r(t);\n }\n s.done ? e(c) : Promise.resolve(c).then(n, i);\n }\n function a(t) {\n return function () {\n var e = this,\n r = arguments;\n return new Promise(function (n, i) {\n var a = t.apply(e, r);\n function s(t) {\n o(a, n, i, s, c, \"next\", t);\n }\n function c(t) {\n o(a, n, i, s, c, \"throw\", t);\n }\n s(void 0);\n });\n };\n }\n function s(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, c(n.key), n);\n }\n }\n function c(t) {\n var e = function (t, e) {\n if (\"object\" != n(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var i = r.call(t, e || \"default\");\n if (\"object\" != n(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == n(e) ? e : String(e);\n }\n function u(t, e) {\n return (u = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n })(t, e);\n }\n function p(t) {\n var e = function () {\n if (\"undefined\" == typeof Reflect || !Reflect.construct) return !1;\n if (Reflect.construct.sham) return !1;\n if (\"function\" == typeof Proxy) return !0;\n try {\n return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;\n } catch (t) {\n return !1;\n }\n }();\n return function () {\n var r,\n n = f(t);\n if (e) {\n var i = f(this).constructor;\n r = Reflect.construct(n, arguments, i);\n } else r = n.apply(this, arguments);\n return l(this, r);\n };\n }\n function l(t, e) {\n if (e && (\"object\" === n(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return function (t) {\n if (void 0 === t) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return t;\n }(t);\n }\n function f(t) {\n return (f = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n })(t);\n }\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n }), e.ReadStreamTokenizer = void 0;\n var d = r(18),\n m = r(10),\n h = function (t) {\n !function (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 && u(t, e);\n }(h, t);\n var e,\n r,\n n,\n o,\n c,\n l,\n f,\n d = p(h);\n function h(t, e) {\n var r;\n return function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, h), (r = d.call(this, e)).streamReader = new m.StreamReader(t), r;\n }\n return e = h, (r = [{\n key: \"getFileInfo\",\n value: (f = a(i().mark(function t() {\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.abrupt(\"return\", this.fileInfo);\n case 1:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function () {\n return f.apply(this, arguments);\n })\n }, {\n key: \"readBuffer\",\n value: (l = a(i().mark(function t(e, r) {\n var n, o, a;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n if (n = this.normalizeOptions(e, r), !((o = n.position - this.position) > 0)) {\n t.next = 8;\n break;\n }\n return t.next = 5, this.ignore(o);\n case 5:\n return t.abrupt(\"return\", this.readBuffer(e, r));\n case 8:\n if (!(o < 0)) {\n t.next = 10;\n break;\n }\n throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");\n case 10:\n if (0 !== n.length) {\n t.next = 12;\n break;\n }\n return t.abrupt(\"return\", 0);\n case 12:\n return t.next = 14, this.streamReader.read(e, n.offset, n.length);\n case 14:\n if (a = t.sent, this.position += a, r && r.mayBeLess || !(a < n.length)) {\n t.next = 18;\n break;\n }\n throw new m.EndOfStreamError();\n case 18:\n return t.abrupt(\"return\", a);\n case 19:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t, e) {\n return l.apply(this, arguments);\n })\n }, {\n key: \"peekBuffer\",\n value: (c = a(i().mark(function t(e, r) {\n var n, o, a, s;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n if (n = this.normalizeOptions(e, r), o = 0, !n.position) {\n t.next = 15;\n break;\n }\n if (!((a = n.position - this.position) > 0)) {\n t.next = 13;\n break;\n }\n return s = new Uint8Array(n.length + a), t.next = 8, this.peekBuffer(s, {\n mayBeLess: n.mayBeLess\n });\n case 8:\n return o = t.sent, e.set(s.subarray(a), n.offset), t.abrupt(\"return\", o - a);\n case 13:\n if (!(a < 0)) {\n t.next = 15;\n break;\n }\n throw new Error(\"Cannot peek from a negative offset in a stream\");\n case 15:\n if (!(n.length > 0)) {\n t.next = 29;\n break;\n }\n return t.prev = 16, t.next = 19, this.streamReader.peek(e, n.offset, n.length);\n case 19:\n o = t.sent, t.next = 27;\n break;\n case 22:\n if (t.prev = 22, t.t0 = t.catch(16), !(r && r.mayBeLess && t.t0 instanceof m.EndOfStreamError)) {\n t.next = 26;\n break;\n }\n return t.abrupt(\"return\", 0);\n case 26:\n throw t.t0;\n case 27:\n if (n.mayBeLess || !(o < n.length)) {\n t.next = 29;\n break;\n }\n throw new m.EndOfStreamError();\n case 29:\n return t.abrupt(\"return\", o);\n case 30:\n case \"end\":\n return t.stop();\n }\n }, t, this, [[16, 22]]);\n })), function (t, e) {\n return c.apply(this, arguments);\n })\n }, {\n key: \"ignore\",\n value: (o = a(i().mark(function t(e) {\n var r, n, o, a, s;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n r = Math.min(256e3, e), n = new Uint8Array(r), o = 0;\n case 3:\n if (!(o < e)) {\n t.next = 13;\n break;\n }\n return a = e - o, t.next = 7, this.readBuffer(n, {\n length: Math.min(r, a)\n });\n case 7:\n if (!((s = t.sent) < 0)) {\n t.next = 10;\n break;\n }\n return t.abrupt(\"return\", s);\n case 10:\n o += s, t.next = 3;\n break;\n case 13:\n return t.abrupt(\"return\", o);\n case 14:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t) {\n return o.apply(this, arguments);\n })\n }]) && s(e.prototype, r), n && s(e, n), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), h;\n }(d.AbstractTokenizer);\n e.ReadStreamTokenizer = h;\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i() {\n /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i = function () {\n return e;\n };\n var t,\n e = {},\n r = Object.prototype,\n o = r.hasOwnProperty,\n a = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n s = \"function\" == typeof Symbol ? Symbol : {},\n c = s.iterator || \"@@iterator\",\n u = s.asyncIterator || \"@@asyncIterator\",\n p = s.toStringTag || \"@@toStringTag\";\n function l(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n l({}, \"\");\n } catch (t) {\n l = function (t, e, r) {\n return t[e] = r;\n };\n }\n function f(t, e, r, n) {\n var i = e && e.prototype instanceof g ? e : g,\n o = Object.create(i.prototype),\n s = new A(n || []);\n return a(o, \"_invoke\", {\n value: j(t, r, s)\n }), o;\n }\n function d(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = f;\n var m = \"suspendedStart\",\n h = \"executing\",\n y = \"completed\",\n v = {};\n function g() {}\n function b() {}\n function x() {}\n var w = {};\n l(w, c, function () {\n return this;\n });\n var k = Object.getPrototypeOf,\n _ = k && k(k(C([])));\n _ && _ !== r && o.call(_, c) && (w = _);\n var F = x.prototype = g.prototype = Object.create(w);\n function E(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n l(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function O(t, e) {\n function r(i, a, s, c) {\n var u = d(t[i], t, a);\n if (\"throw\" !== u.type) {\n var p = u.arg,\n l = p.value;\n return l && \"object\" == n(l) && o.call(l, \"__await\") ? e.resolve(l.__await).then(function (t) {\n r(\"next\", t, s, c);\n }, function (t) {\n r(\"throw\", t, s, c);\n }) : e.resolve(l).then(function (t) {\n p.value = t, s(p);\n }, function (t) {\n return r(\"throw\", t, s, c);\n });\n }\n c(u.arg);\n }\n var i;\n a(this, \"_invoke\", {\n value: function (t, n) {\n function o() {\n return new e(function (e, i) {\n r(t, n, e, i);\n });\n }\n return i = i ? i.then(o, o) : o();\n }\n });\n }\n function j(e, r, n) {\n var i = m;\n return function (o, a) {\n if (i === h) throw new Error(\"Generator is already running\");\n if (i === y) {\n if (\"throw\" === o) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = o, n.arg = a;;) {\n var s = n.delegate;\n if (s) {\n var c = S(s, n);\n if (c) {\n if (c === v) continue;\n return c;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (i === m) throw i = y, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n i = h;\n var u = d(e, r, n);\n if (\"normal\" === u.type) {\n if (i = n.done ? y : \"suspendedYield\", u.arg === v) continue;\n return {\n value: u.arg,\n done: n.done\n };\n }\n \"throw\" === u.type && (i = y, n.method = \"throw\", n.arg = u.arg);\n }\n };\n }\n function S(e, r) {\n var n = r.method,\n i = e.iterator[n];\n if (i === t) return r.delegate = null, \"throw\" === n && e.iterator.return && (r.method = \"return\", r.arg = t, S(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), v;\n var o = d(i, e.iterator, r.arg);\n if (\"throw\" === o.type) return r.method = \"throw\", r.arg = o.arg, r.delegate = null, v;\n var a = o.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, v) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, v);\n }\n function T(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function P(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function A(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(T, this), this.reset(!0);\n }\n function C(e) {\n if (e || \"\" === e) {\n var r = e[c];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var i = -1,\n a = function r() {\n for (; ++i < e.length;) if (o.call(e, i)) return r.value = e[i], r.done = !1, r;\n return r.value = t, r.done = !0, r;\n };\n return a.next = a;\n }\n }\n throw new TypeError(n(e) + \" is not iterable\");\n }\n return b.prototype = x, a(F, \"constructor\", {\n value: x,\n configurable: !0\n }), a(x, \"constructor\", {\n value: b,\n configurable: !0\n }), b.displayName = l(x, p, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === b || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, x) : (t.__proto__ = x, l(t, p, \"GeneratorFunction\")), t.prototype = Object.create(F), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, E(O.prototype), l(O.prototype, u, function () {\n return this;\n }), e.AsyncIterator = O, e.async = function (t, r, n, i, o) {\n void 0 === o && (o = Promise);\n var a = new O(f(t, r, n, i), o);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, E(F), l(F, p, \"Generator\"), l(F, c, function () {\n return this;\n }), l(F, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function t() {\n for (; r.length;) {\n var n = r.pop();\n if (n in e) return t.value = n, t.done = !1, t;\n }\n return t.done = !0, t;\n };\n }, e.values = C, A.prototype = {\n constructor: A,\n reset: function (e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(P), !e) for (var r in this) \"t\" === r.charAt(0) && o.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function () {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function (e) {\n if (this.done) throw e;\n var r = this;\n function n(n, i) {\n return s.type = \"throw\", s.arg = e, r.next = n, i && (r.method = \"next\", r.arg = t), !!i;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var a = this.tryEntries[i],\n s = a.completion;\n if (\"root\" === a.tryLoc) return n(\"end\");\n if (a.tryLoc <= this.prev) {\n var c = o.call(a, \"catchLoc\"),\n u = o.call(a, \"finallyLoc\");\n if (c && u) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n } else if (c) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n } else {\n if (!u) throw new Error(\"try statement without catch or finally\");\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n }\n }\n }\n },\n abrupt: function (t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var n = this.tryEntries[r];\n if (n.tryLoc <= this.prev && o.call(n, \"finallyLoc\") && this.prev < n.finallyLoc) {\n var i = n;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, v) : this.complete(a);\n },\n complete: function (t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), v;\n },\n finish: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), P(r), v;\n }\n },\n catch: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var i = n.arg;\n P(r);\n }\n return i;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function (e, r, n) {\n return this.delegate = {\n iterator: C(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), v;\n }\n }, e;\n }\n function o(t, e, r, n, i, o, a) {\n try {\n var s = t[o](a),\n c = s.value;\n } catch (t) {\n return void r(t);\n }\n s.done ? e(c) : Promise.resolve(c).then(n, i);\n }\n function a(t) {\n return function () {\n var e = this,\n r = arguments;\n return new Promise(function (n, i) {\n var a = t.apply(e, r);\n function s(t) {\n o(a, n, i, s, c, \"next\", t);\n }\n function c(t) {\n o(a, n, i, s, c, \"throw\", t);\n }\n s(void 0);\n });\n };\n }\n function s(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, c(n.key), n);\n }\n }\n function c(t) {\n var e = function (t, e) {\n if (\"object\" != n(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var i = r.call(t, e || \"default\");\n if (\"object\" != n(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == n(e) ? e : String(e);\n }\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n }), e.StreamReader = e.EndOfStreamError = void 0;\n var u = r(19),\n p = r(45),\n l = r(19);\n Object.defineProperty(e, \"EndOfStreamError\", {\n enumerable: !0,\n get: function () {\n return l.EndOfStreamError;\n }\n });\n var f = function () {\n function t(e) {\n var r = this;\n if (function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, t), this.s = e, this.deferred = null, this.endOfStream = !1, this.peekQueue = [], !e.read || !e.once) throw new Error(\"Expected an instance of stream.Readable\");\n this.s.once(\"end\", function () {\n return r.reject(new u.EndOfStreamError());\n }), this.s.once(\"error\", function (t) {\n return r.reject(t);\n }), this.s.once(\"close\", function () {\n return r.reject(new Error(\"Stream closed\"));\n });\n }\n var e, r, n, o, c, l;\n return e = t, (r = [{\n key: \"peek\",\n value: (l = a(i().mark(function t(e, r, n) {\n var o;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.next = 2, this.read(e, r, n);\n case 2:\n return o = t.sent, this.peekQueue.push(e.subarray(r, r + o)), t.abrupt(\"return\", o);\n case 5:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t, e, r) {\n return l.apply(this, arguments);\n })\n }, {\n key: \"read\",\n value: (c = a(i().mark(function t(e, r, n) {\n var o, a, s, c, p, l;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n if (0 !== n) {\n t.next = 2;\n break;\n }\n return t.abrupt(\"return\", 0);\n case 2:\n if (0 !== this.peekQueue.length || !this.endOfStream) {\n t.next = 4;\n break;\n }\n throw new u.EndOfStreamError();\n case 4:\n o = n, a = 0;\n case 6:\n if (!(this.peekQueue.length > 0 && o > 0)) {\n t.next = 17;\n break;\n }\n if (s = this.peekQueue.pop()) {\n t.next = 10;\n break;\n }\n throw new Error(\"peekData should be defined\");\n case 10:\n c = Math.min(s.length, o), e.set(s.subarray(0, c), r + a), a += c, o -= c, c < s.length && this.peekQueue.push(s.subarray(c)), t.next = 6;\n break;\n case 17:\n if (!(o > 0) || this.endOfStream) {\n t.next = 28;\n break;\n }\n return p = Math.min(o, 1048576), t.next = 21, this.readFromStream(e, r + a, p);\n case 21:\n if (l = t.sent, a += l, !(l < p)) {\n t.next = 25;\n break;\n }\n return t.abrupt(\"break\", 28);\n case 25:\n o -= l, t.next = 17;\n break;\n case 28:\n return t.abrupt(\"return\", a);\n case 29:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t, e, r) {\n return c.apply(this, arguments);\n })\n }, {\n key: \"readFromStream\",\n value: (o = a(i().mark(function t(e, r, n) {\n var o,\n a,\n s = this;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n if (!(o = this.s.read(n))) {\n t.next = 6;\n break;\n }\n return e.set(o, r), t.abrupt(\"return\", o.length);\n case 6:\n return a = {\n buffer: e,\n offset: r,\n length: n,\n deferred: new p.Deferred()\n }, this.deferred = a.deferred, this.s.once(\"readable\", function () {\n s.readDeferred(a);\n }), t.abrupt(\"return\", a.deferred.promise);\n case 10:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t, e, r) {\n return o.apply(this, arguments);\n })\n }, {\n key: \"readDeferred\",\n value: function (t) {\n var e = this,\n r = this.s.read(t.length);\n r ? (t.buffer.set(r, t.offset), t.deferred.resolve(r.length), this.deferred = null) : this.s.once(\"readable\", function () {\n e.readDeferred(t);\n });\n }\n }, {\n key: \"reject\",\n value: function (t) {\n this.endOfStream = !0, this.deferred && (this.deferred.reject(t), this.deferred = null);\n }\n }]) && s(e.prototype, r), n && s(e, n), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), t;\n }();\n e.StreamReader = f;\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, a(n.key), n);\n }\n }\n function o(t, e, r) {\n return e && i(t.prototype, e), r && i(t, r), Object.defineProperty(t, \"prototype\", {\n writable: !1\n }), t;\n }\n function a(t) {\n var e = function (t, e) {\n if (\"object\" != n(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var i = r.call(t, e || \"default\");\n if (\"object\" != n(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == n(e) ? e : String(e);\n }\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n }), e.Deferred = void 0;\n var s = o(function t() {\n var e = this;\n !function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, t), this.resolve = function () {\n return null;\n }, this.reject = function () {\n return null;\n }, this.promise = new Promise(function (t, r) {\n e.reject = r, e.resolve = t;\n });\n });\n e.Deferred = s;\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i() {\n /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i = function () {\n return e;\n };\n var t,\n e = {},\n r = Object.prototype,\n o = r.hasOwnProperty,\n a = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n s = \"function\" == typeof Symbol ? Symbol : {},\n c = s.iterator || \"@@iterator\",\n u = s.asyncIterator || \"@@asyncIterator\",\n p = s.toStringTag || \"@@toStringTag\";\n function l(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n l({}, \"\");\n } catch (t) {\n l = function (t, e, r) {\n return t[e] = r;\n };\n }\n function f(t, e, r, n) {\n var i = e && e.prototype instanceof g ? e : g,\n o = Object.create(i.prototype),\n s = new A(n || []);\n return a(o, \"_invoke\", {\n value: j(t, r, s)\n }), o;\n }\n function d(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = f;\n var m = \"suspendedStart\",\n h = \"executing\",\n y = \"completed\",\n v = {};\n function g() {}\n function b() {}\n function x() {}\n var w = {};\n l(w, c, function () {\n return this;\n });\n var k = Object.getPrototypeOf,\n _ = k && k(k(C([])));\n _ && _ !== r && o.call(_, c) && (w = _);\n var F = x.prototype = g.prototype = Object.create(w);\n function E(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n l(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function O(t, e) {\n function r(i, a, s, c) {\n var u = d(t[i], t, a);\n if (\"throw\" !== u.type) {\n var p = u.arg,\n l = p.value;\n return l && \"object\" == n(l) && o.call(l, \"__await\") ? e.resolve(l.__await).then(function (t) {\n r(\"next\", t, s, c);\n }, function (t) {\n r(\"throw\", t, s, c);\n }) : e.resolve(l).then(function (t) {\n p.value = t, s(p);\n }, function (t) {\n return r(\"throw\", t, s, c);\n });\n }\n c(u.arg);\n }\n var i;\n a(this, \"_invoke\", {\n value: function (t, n) {\n function o() {\n return new e(function (e, i) {\n r(t, n, e, i);\n });\n }\n return i = i ? i.then(o, o) : o();\n }\n });\n }\n function j(e, r, n) {\n var i = m;\n return function (o, a) {\n if (i === h) throw new Error(\"Generator is already running\");\n if (i === y) {\n if (\"throw\" === o) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = o, n.arg = a;;) {\n var s = n.delegate;\n if (s) {\n var c = S(s, n);\n if (c) {\n if (c === v) continue;\n return c;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (i === m) throw i = y, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n i = h;\n var u = d(e, r, n);\n if (\"normal\" === u.type) {\n if (i = n.done ? y : \"suspendedYield\", u.arg === v) continue;\n return {\n value: u.arg,\n done: n.done\n };\n }\n \"throw\" === u.type && (i = y, n.method = \"throw\", n.arg = u.arg);\n }\n };\n }\n function S(e, r) {\n var n = r.method,\n i = e.iterator[n];\n if (i === t) return r.delegate = null, \"throw\" === n && e.iterator.return && (r.method = \"return\", r.arg = t, S(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), v;\n var o = d(i, e.iterator, r.arg);\n if (\"throw\" === o.type) return r.method = \"throw\", r.arg = o.arg, r.delegate = null, v;\n var a = o.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, v) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, v);\n }\n function T(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function P(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function A(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(T, this), this.reset(!0);\n }\n function C(e) {\n if (e || \"\" === e) {\n var r = e[c];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var i = -1,\n a = function r() {\n for (; ++i < e.length;) if (o.call(e, i)) return r.value = e[i], r.done = !1, r;\n return r.value = t, r.done = !0, r;\n };\n return a.next = a;\n }\n }\n throw new TypeError(n(e) + \" is not iterable\");\n }\n return b.prototype = x, a(F, \"constructor\", {\n value: x,\n configurable: !0\n }), a(x, \"constructor\", {\n value: b,\n configurable: !0\n }), b.displayName = l(x, p, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === b || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, x) : (t.__proto__ = x, l(t, p, \"GeneratorFunction\")), t.prototype = Object.create(F), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, E(O.prototype), l(O.prototype, u, function () {\n return this;\n }), e.AsyncIterator = O, e.async = function (t, r, n, i, o) {\n void 0 === o && (o = Promise);\n var a = new O(f(t, r, n, i), o);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, E(F), l(F, p, \"Generator\"), l(F, c, function () {\n return this;\n }), l(F, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function t() {\n for (; r.length;) {\n var n = r.pop();\n if (n in e) return t.value = n, t.done = !1, t;\n }\n return t.done = !0, t;\n };\n }, e.values = C, A.prototype = {\n constructor: A,\n reset: function (e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(P), !e) for (var r in this) \"t\" === r.charAt(0) && o.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function () {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function (e) {\n if (this.done) throw e;\n var r = this;\n function n(n, i) {\n return s.type = \"throw\", s.arg = e, r.next = n, i && (r.method = \"next\", r.arg = t), !!i;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var a = this.tryEntries[i],\n s = a.completion;\n if (\"root\" === a.tryLoc) return n(\"end\");\n if (a.tryLoc <= this.prev) {\n var c = o.call(a, \"catchLoc\"),\n u = o.call(a, \"finallyLoc\");\n if (c && u) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n } else if (c) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n } else {\n if (!u) throw new Error(\"try statement without catch or finally\");\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n }\n }\n }\n },\n abrupt: function (t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var n = this.tryEntries[r];\n if (n.tryLoc <= this.prev && o.call(n, \"finallyLoc\") && this.prev < n.finallyLoc) {\n var i = n;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, v) : this.complete(a);\n },\n complete: function (t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), v;\n },\n finish: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), P(r), v;\n }\n },\n catch: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var i = n.arg;\n P(r);\n }\n return i;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function (e, r, n) {\n return this.delegate = {\n iterator: C(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), v;\n }\n }, e;\n }\n function o(t, e, r, n, i, o, a) {\n try {\n var s = t[o](a),\n c = s.value;\n } catch (t) {\n return void r(t);\n }\n s.done ? e(c) : Promise.resolve(c).then(n, i);\n }\n function a(t) {\n return function () {\n var e = this,\n r = arguments;\n return new Promise(function (n, i) {\n var a = t.apply(e, r);\n function s(t) {\n o(a, n, i, s, c, \"next\", t);\n }\n function c(t) {\n o(a, n, i, s, c, \"throw\", t);\n }\n s(void 0);\n });\n };\n }\n function s(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, c(n.key), n);\n }\n }\n function c(t) {\n var e = function (t, e) {\n if (\"object\" != n(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var i = r.call(t, e || \"default\");\n if (\"object\" != n(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == n(e) ? e : String(e);\n }\n function u(t, e) {\n return (u = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n })(t, e);\n }\n function p(t) {\n var e = function () {\n if (\"undefined\" == typeof Reflect || !Reflect.construct) return !1;\n if (Reflect.construct.sham) return !1;\n if (\"function\" == typeof Proxy) return !0;\n try {\n return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;\n } catch (t) {\n return !1;\n }\n }();\n return function () {\n var r,\n n = f(t);\n if (e) {\n var i = f(this).constructor;\n r = Reflect.construct(n, arguments, i);\n } else r = n.apply(this, arguments);\n return l(this, r);\n };\n }\n function l(t, e) {\n if (e && (\"object\" === n(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return function (t) {\n if (void 0 === t) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return t;\n }(t);\n }\n function f(t) {\n return (f = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n })(t);\n }\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n }), e.BufferTokenizer = void 0;\n var d = r(10),\n m = function (t) {\n !function (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 && u(t, e);\n }(m, t);\n var e,\n r,\n n,\n o,\n c,\n l,\n f = p(m);\n function m(t, e) {\n var r;\n return function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, m), (r = f.call(this, e)).uint8Array = t, r.fileInfo.size = r.fileInfo.size ? r.fileInfo.size : t.length, r;\n }\n return e = m, (r = [{\n key: \"readBuffer\",\n value: (l = a(i().mark(function t(e, r) {\n var n;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n if (!r || !r.position) {\n t.next = 4;\n break;\n }\n if (!(r.position < this.position)) {\n t.next = 3;\n break;\n }\n throw new Error(\"`options.position` must be equal or greater than `tokenizer.position`\");\n case 3:\n this.position = r.position;\n case 4:\n return t.next = 6, this.peekBuffer(e, r);\n case 6:\n return n = t.sent, this.position += n, t.abrupt(\"return\", n);\n case 9:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t, e) {\n return l.apply(this, arguments);\n })\n }, {\n key: \"peekBuffer\",\n value: (c = a(i().mark(function t(e, r) {\n var n, o;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n if (n = this.normalizeOptions(e, r), o = Math.min(this.uint8Array.length - n.position, n.length), n.mayBeLess || !(o < n.length)) {\n t.next = 6;\n break;\n }\n throw new d.EndOfStreamError();\n case 6:\n return e.set(this.uint8Array.subarray(n.position, n.position + o), n.offset), t.abrupt(\"return\", o);\n case 8:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t, e) {\n return c.apply(this, arguments);\n })\n }, {\n key: \"close\",\n value: (o = a(i().mark(function t() {\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n case \"end\":\n return t.stop();\n }\n }, t);\n })), function () {\n return o.apply(this, arguments);\n })\n }]) && s(e.prototype, r), n && s(e, n), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), m;\n }(r(18).AbstractTokenizer);\n e.BufferTokenizer = m;\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i() {\n /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i = function () {\n return e;\n };\n var t,\n e = {},\n r = Object.prototype,\n o = r.hasOwnProperty,\n a = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n s = \"function\" == typeof Symbol ? Symbol : {},\n c = s.iterator || \"@@iterator\",\n u = s.asyncIterator || \"@@asyncIterator\",\n p = s.toStringTag || \"@@toStringTag\";\n function l(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n l({}, \"\");\n } catch (t) {\n l = function (t, e, r) {\n return t[e] = r;\n };\n }\n function f(t, e, r, n) {\n var i = e && e.prototype instanceof g ? e : g,\n o = Object.create(i.prototype),\n s = new A(n || []);\n return a(o, \"_invoke\", {\n value: j(t, r, s)\n }), o;\n }\n function d(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = f;\n var m = \"suspendedStart\",\n h = \"executing\",\n y = \"completed\",\n v = {};\n function g() {}\n function b() {}\n function x() {}\n var w = {};\n l(w, c, function () {\n return this;\n });\n var k = Object.getPrototypeOf,\n _ = k && k(k(C([])));\n _ && _ !== r && o.call(_, c) && (w = _);\n var F = x.prototype = g.prototype = Object.create(w);\n function E(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n l(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function O(t, e) {\n function r(i, a, s, c) {\n var u = d(t[i], t, a);\n if (\"throw\" !== u.type) {\n var p = u.arg,\n l = p.value;\n return l && \"object\" == n(l) && o.call(l, \"__await\") ? e.resolve(l.__await).then(function (t) {\n r(\"next\", t, s, c);\n }, function (t) {\n r(\"throw\", t, s, c);\n }) : e.resolve(l).then(function (t) {\n p.value = t, s(p);\n }, function (t) {\n return r(\"throw\", t, s, c);\n });\n }\n c(u.arg);\n }\n var i;\n a(this, \"_invoke\", {\n value: function (t, n) {\n function o() {\n return new e(function (e, i) {\n r(t, n, e, i);\n });\n }\n return i = i ? i.then(o, o) : o();\n }\n });\n }\n function j(e, r, n) {\n var i = m;\n return function (o, a) {\n if (i === h) throw new Error(\"Generator is already running\");\n if (i === y) {\n if (\"throw\" === o) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = o, n.arg = a;;) {\n var s = n.delegate;\n if (s) {\n var c = S(s, n);\n if (c) {\n if (c === v) continue;\n return c;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (i === m) throw i = y, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n i = h;\n var u = d(e, r, n);\n if (\"normal\" === u.type) {\n if (i = n.done ? y : \"suspendedYield\", u.arg === v) continue;\n return {\n value: u.arg,\n done: n.done\n };\n }\n \"throw\" === u.type && (i = y, n.method = \"throw\", n.arg = u.arg);\n }\n };\n }\n function S(e, r) {\n var n = r.method,\n i = e.iterator[n];\n if (i === t) return r.delegate = null, \"throw\" === n && e.iterator.return && (r.method = \"return\", r.arg = t, S(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), v;\n var o = d(i, e.iterator, r.arg);\n if (\"throw\" === o.type) return r.method = \"throw\", r.arg = o.arg, r.delegate = null, v;\n var a = o.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, v) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, v);\n }\n function T(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function P(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function A(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(T, this), this.reset(!0);\n }\n function C(e) {\n if (e || \"\" === e) {\n var r = e[c];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var i = -1,\n a = function r() {\n for (; ++i < e.length;) if (o.call(e, i)) return r.value = e[i], r.done = !1, r;\n return r.value = t, r.done = !0, r;\n };\n return a.next = a;\n }\n }\n throw new TypeError(n(e) + \" is not iterable\");\n }\n return b.prototype = x, a(F, \"constructor\", {\n value: x,\n configurable: !0\n }), a(x, \"constructor\", {\n value: b,\n configurable: !0\n }), b.displayName = l(x, p, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === b || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, x) : (t.__proto__ = x, l(t, p, \"GeneratorFunction\")), t.prototype = Object.create(F), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, E(O.prototype), l(O.prototype, u, function () {\n return this;\n }), e.AsyncIterator = O, e.async = function (t, r, n, i, o) {\n void 0 === o && (o = Promise);\n var a = new O(f(t, r, n, i), o);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, E(F), l(F, p, \"Generator\"), l(F, c, function () {\n return this;\n }), l(F, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function t() {\n for (; r.length;) {\n var n = r.pop();\n if (n in e) return t.value = n, t.done = !1, t;\n }\n return t.done = !0, t;\n };\n }, e.values = C, A.prototype = {\n constructor: A,\n reset: function (e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(P), !e) for (var r in this) \"t\" === r.charAt(0) && o.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function () {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function (e) {\n if (this.done) throw e;\n var r = this;\n function n(n, i) {\n return s.type = \"throw\", s.arg = e, r.next = n, i && (r.method = \"next\", r.arg = t), !!i;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var a = this.tryEntries[i],\n s = a.completion;\n if (\"root\" === a.tryLoc) return n(\"end\");\n if (a.tryLoc <= this.prev) {\n var c = o.call(a, \"catchLoc\"),\n u = o.call(a, \"finallyLoc\");\n if (c && u) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n } else if (c) {\n if (this.prev < a.catchLoc) return n(a.catchLoc, !0);\n } else {\n if (!u) throw new Error(\"try statement without catch or finally\");\n if (this.prev < a.finallyLoc) return n(a.finallyLoc);\n }\n }\n }\n },\n abrupt: function (t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var n = this.tryEntries[r];\n if (n.tryLoc <= this.prev && o.call(n, \"finallyLoc\") && this.prev < n.finallyLoc) {\n var i = n;\n break;\n }\n }\n i && (\"break\" === t || \"continue\" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);\n var a = i ? i.completion : {};\n return a.type = t, a.arg = e, i ? (this.method = \"next\", this.next = i.finallyLoc, v) : this.complete(a);\n },\n complete: function (t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), v;\n },\n finish: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), P(r), v;\n }\n },\n catch: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var i = n.arg;\n P(r);\n }\n return i;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function (e, r, n) {\n return this.delegate = {\n iterator: C(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), v;\n }\n }, e;\n }\n function o(t, e, r, n, i, o, a) {\n try {\n var s = t[o](a),\n c = s.value;\n } catch (t) {\n return void r(t);\n }\n s.done ? e(c) : Promise.resolve(c).then(n, i);\n }\n function a(t) {\n return function () {\n var e = this,\n r = arguments;\n return new Promise(function (n, i) {\n var a = t.apply(e, r);\n function s(t) {\n o(a, n, i, s, c, \"next\", t);\n }\n function c(t) {\n o(a, n, i, s, c, \"throw\", t);\n }\n s(void 0);\n });\n };\n }\n function s(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, c(n.key), n);\n }\n }\n function c(t) {\n var e = function (t, e) {\n if (\"object\" != n(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var i = r.call(t, e || \"default\");\n if (\"object\" != n(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == n(e) ? e : String(e);\n }\n function u(t, e) {\n return (u = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n })(t, e);\n }\n function p(t) {\n var e = function () {\n if (\"undefined\" == typeof Reflect || !Reflect.construct) return !1;\n if (Reflect.construct.sham) return !1;\n if (\"function\" == typeof Proxy) return !0;\n try {\n return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;\n } catch (t) {\n return !1;\n }\n }();\n return function () {\n var r,\n n = f(t);\n if (e) {\n var i = f(this).constructor;\n r = Reflect.construct(n, arguments, i);\n } else r = n.apply(this, arguments);\n return l(this, r);\n };\n }\n function l(t, e) {\n if (e && (\"object\" === n(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return function (t) {\n if (void 0 === t) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return t;\n }(t);\n }\n function f(t) {\n return (f = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n })(t);\n }\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n }), e.fromFile = e.FileTokenizer = void 0;\n var d = r(18),\n m = r(10),\n h = r(24),\n y = function (t) {\n !function (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 && u(t, e);\n }(d, t);\n var e,\n r,\n n,\n o,\n c,\n l,\n f = p(d);\n function d(t, e) {\n var r;\n return function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, d), (r = f.call(this, e)).fd = t, r;\n }\n return e = d, (r = [{\n key: \"readBuffer\",\n value: (l = a(i().mark(function t(e, r) {\n var n, o;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return n = this.normalizeOptions(e, r), this.position = n.position, t.next = 4, h.read(this.fd, e, n.offset, n.length, n.position);\n case 4:\n if (o = t.sent, this.position += o.bytesRead, !(o.bytesRead < n.length) || r && r.mayBeLess) {\n t.next = 8;\n break;\n }\n throw new m.EndOfStreamError();\n case 8:\n return t.abrupt(\"return\", o.bytesRead);\n case 9:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t, e) {\n return l.apply(this, arguments);\n })\n }, {\n key: \"peekBuffer\",\n value: (c = a(i().mark(function t(e, r) {\n var n, o;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return n = this.normalizeOptions(e, r), t.next = 3, h.read(this.fd, e, n.offset, n.length, n.position);\n case 3:\n if (o = t.sent, n.mayBeLess || !(o.bytesRead < n.length)) {\n t.next = 6;\n break;\n }\n throw new m.EndOfStreamError();\n case 6:\n return t.abrupt(\"return\", o.bytesRead);\n case 7:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function (t, e) {\n return c.apply(this, arguments);\n })\n }, {\n key: \"close\",\n value: (o = a(i().mark(function t() {\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.abrupt(\"return\", h.close(this.fd));\n case 1:\n case \"end\":\n return t.stop();\n }\n }, t, this);\n })), function () {\n return o.apply(this, arguments);\n })\n }]) && s(e.prototype, r), n && s(e, n), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), d;\n }(d.AbstractTokenizer);\n function v() {\n return (v = a(i().mark(function t(e) {\n var r, n;\n return i().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.next = 2, h.stat(e);\n case 2:\n if ((r = t.sent).isFile) {\n t.next = 5;\n break;\n }\n throw new Error(\"File not a file: \".concat(e));\n case 5:\n return t.next = 7, h.open(e, \"r\");\n case 7:\n return n = t.sent, t.abrupt(\"return\", new y(n, {\n path: e,\n size: r.size\n }));\n case 9:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }\n e.FileTokenizer = y, e.fromFile = function (t) {\n return v.apply(this, arguments);\n };\n}, function (module, exports, __webpack_require__) {\n \"use strict\";\n\n function _typeof(t) {\n return (_typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function _regeneratorRuntime() {\n /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime = function () {\n return e;\n };\n var t,\n e = {},\n r = Object.prototype,\n n = r.hasOwnProperty,\n i = Object.defineProperty || function (t, e, r) {\n t[e] = r.value;\n },\n o = \"function\" == typeof Symbol ? Symbol : {},\n a = o.iterator || \"@@iterator\",\n s = o.asyncIterator || \"@@asyncIterator\",\n c = o.toStringTag || \"@@toStringTag\";\n function u(t, e, r) {\n return Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), t[e];\n }\n try {\n u({}, \"\");\n } catch (t) {\n u = function (t, e, r) {\n return t[e] = r;\n };\n }\n function p(t, e, r, n) {\n var o = e && e.prototype instanceof y ? e : y,\n a = Object.create(o.prototype),\n s = new T(n || []);\n return i(a, \"_invoke\", {\n value: E(t, r, s)\n }), a;\n }\n function l(t, e, r) {\n try {\n return {\n type: \"normal\",\n arg: t.call(e, r)\n };\n } catch (t) {\n return {\n type: \"throw\",\n arg: t\n };\n }\n }\n e.wrap = p;\n var f = \"suspendedStart\",\n d = \"executing\",\n m = \"completed\",\n h = {};\n function y() {}\n function v() {}\n function g() {}\n var b = {};\n u(b, a, function () {\n return this;\n });\n var x = Object.getPrototypeOf,\n w = x && x(x(P([])));\n w && w !== r && n.call(w, a) && (b = w);\n var k = g.prototype = y.prototype = Object.create(b);\n function _(t) {\n [\"next\", \"throw\", \"return\"].forEach(function (e) {\n u(t, e, function (t) {\n return this._invoke(e, t);\n });\n });\n }\n function F(t, e) {\n function r(i, o, a, s) {\n var c = l(t[i], t, o);\n if (\"throw\" !== c.type) {\n var u = c.arg,\n p = u.value;\n return p && \"object\" == _typeof(p) && n.call(p, \"__await\") ? e.resolve(p.__await).then(function (t) {\n r(\"next\", t, a, s);\n }, function (t) {\n r(\"throw\", t, a, s);\n }) : e.resolve(p).then(function (t) {\n u.value = t, a(u);\n }, function (t) {\n return r(\"throw\", t, a, s);\n });\n }\n s(c.arg);\n }\n var o;\n i(this, \"_invoke\", {\n value: function (t, n) {\n function i() {\n return new e(function (e, i) {\n r(t, n, e, i);\n });\n }\n return o = o ? o.then(i, i) : i();\n }\n });\n }\n function E(e, r, n) {\n var i = f;\n return function (o, a) {\n if (i === d) throw new Error(\"Generator is already running\");\n if (i === m) {\n if (\"throw\" === o) throw a;\n return {\n value: t,\n done: !0\n };\n }\n for (n.method = o, n.arg = a;;) {\n var s = n.delegate;\n if (s) {\n var c = O(s, n);\n if (c) {\n if (c === h) continue;\n return c;\n }\n }\n if (\"next\" === n.method) n.sent = n._sent = n.arg;else if (\"throw\" === n.method) {\n if (i === f) throw i = m, n.arg;\n n.dispatchException(n.arg);\n } else \"return\" === n.method && n.abrupt(\"return\", n.arg);\n i = d;\n var u = l(e, r, n);\n if (\"normal\" === u.type) {\n if (i = n.done ? m : \"suspendedYield\", u.arg === h) continue;\n return {\n value: u.arg,\n done: n.done\n };\n }\n \"throw\" === u.type && (i = m, n.method = \"throw\", n.arg = u.arg);\n }\n };\n }\n function O(e, r) {\n var n = r.method,\n i = e.iterator[n];\n if (i === t) return r.delegate = null, \"throw\" === n && e.iterator.return && (r.method = \"return\", r.arg = t, O(e, r), \"throw\" === r.method) || \"return\" !== n && (r.method = \"throw\", r.arg = new TypeError(\"The iterator does not provide a '\" + n + \"' method\")), h;\n var o = l(i, e.iterator, r.arg);\n if (\"throw\" === o.type) return r.method = \"throw\", r.arg = o.arg, r.delegate = null, h;\n var a = o.arg;\n return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, \"return\" !== r.method && (r.method = \"next\", r.arg = t), r.delegate = null, h) : a : (r.method = \"throw\", r.arg = new TypeError(\"iterator result is not an object\"), r.delegate = null, h);\n }\n function j(t) {\n var e = {\n tryLoc: t[0]\n };\n 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);\n }\n function S(t) {\n var e = t.completion || {};\n e.type = \"normal\", delete e.arg, t.completion = e;\n }\n function T(t) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], t.forEach(j, this), this.reset(!0);\n }\n function P(e) {\n if (e || \"\" === e) {\n var r = e[a];\n if (r) return r.call(e);\n if (\"function\" == typeof e.next) return e;\n if (!isNaN(e.length)) {\n var i = -1,\n o = function r() {\n for (; ++i < e.length;) if (n.call(e, i)) return r.value = e[i], r.done = !1, r;\n return r.value = t, r.done = !0, r;\n };\n return o.next = o;\n }\n }\n throw new TypeError(_typeof(e) + \" is not iterable\");\n }\n return v.prototype = g, i(k, \"constructor\", {\n value: g,\n configurable: !0\n }), i(g, \"constructor\", {\n value: v,\n configurable: !0\n }), v.displayName = u(g, c, \"GeneratorFunction\"), e.isGeneratorFunction = function (t) {\n var e = \"function\" == typeof t && t.constructor;\n return !!e && (e === v || \"GeneratorFunction\" === (e.displayName || e.name));\n }, e.mark = function (t) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(t, g) : (t.__proto__ = g, u(t, c, \"GeneratorFunction\")), t.prototype = Object.create(k), t;\n }, e.awrap = function (t) {\n return {\n __await: t\n };\n }, _(F.prototype), u(F.prototype, s, function () {\n return this;\n }), e.AsyncIterator = F, e.async = function (t, r, n, i, o) {\n void 0 === o && (o = Promise);\n var a = new F(p(t, r, n, i), o);\n return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {\n return t.done ? t.value : a.next();\n });\n }, _(k), u(k, c, \"Generator\"), u(k, a, function () {\n return this;\n }), u(k, \"toString\", function () {\n return \"[object Generator]\";\n }), e.keys = function (t) {\n var e = Object(t),\n r = [];\n for (var n in e) r.push(n);\n return r.reverse(), function t() {\n for (; r.length;) {\n var n = r.pop();\n if (n in e) return t.value = n, t.done = !1, t;\n }\n return t.done = !0, t;\n };\n }, e.values = P, T.prototype = {\n constructor: T,\n reset: function (e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = t, this.tryEntries.forEach(S), !e) for (var r in this) \"t\" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);\n },\n stop: function () {\n this.done = !0;\n var t = this.tryEntries[0].completion;\n if (\"throw\" === t.type) throw t.arg;\n return this.rval;\n },\n dispatchException: function (e) {\n if (this.done) throw e;\n var r = this;\n function i(n, i) {\n return s.type = \"throw\", s.arg = e, r.next = n, i && (r.method = \"next\", r.arg = t), !!i;\n }\n for (var o = this.tryEntries.length - 1; o >= 0; --o) {\n var a = this.tryEntries[o],\n s = a.completion;\n if (\"root\" === a.tryLoc) return i(\"end\");\n if (a.tryLoc <= this.prev) {\n var c = n.call(a, \"catchLoc\"),\n u = n.call(a, \"finallyLoc\");\n if (c && u) {\n if (this.prev < a.catchLoc) return i(a.catchLoc, !0);\n if (this.prev < a.finallyLoc) return i(a.finallyLoc);\n } else if (c) {\n if (this.prev < a.catchLoc) return i(a.catchLoc, !0);\n } else {\n if (!u) throw new Error(\"try statement without catch or finally\");\n if (this.prev < a.finallyLoc) return i(a.finallyLoc);\n }\n }\n }\n },\n abrupt: function (t, e) {\n for (var r = this.tryEntries.length - 1; r >= 0; --r) {\n var i = this.tryEntries[r];\n if (i.tryLoc <= this.prev && n.call(i, \"finallyLoc\") && this.prev < i.finallyLoc) {\n var o = i;\n break;\n }\n }\n o && (\"break\" === t || \"continue\" === t) && o.tryLoc <= e && e <= o.finallyLoc && (o = null);\n var a = o ? o.completion : {};\n return a.type = t, a.arg = e, o ? (this.method = \"next\", this.next = o.finallyLoc, h) : this.complete(a);\n },\n complete: function (t, e) {\n if (\"throw\" === t.type) throw t.arg;\n return \"break\" === t.type || \"continue\" === t.type ? this.next = t.arg : \"return\" === t.type ? (this.rval = this.arg = t.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === t.type && e && (this.next = e), h;\n },\n finish: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), S(r), h;\n }\n },\n catch: function (t) {\n for (var e = this.tryEntries.length - 1; e >= 0; --e) {\n var r = this.tryEntries[e];\n if (r.tryLoc === t) {\n var n = r.completion;\n if (\"throw\" === n.type) {\n var i = n.arg;\n S(r);\n }\n return i;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function (e, r, n) {\n return this.delegate = {\n iterator: P(e),\n resultName: r,\n nextLoc: n\n }, \"next\" === this.method && (this.arg = t), h;\n }\n }, e;\n }\n function _slicedToArray(t, e) {\n return _arrayWithHoles(t) || _iterableToArrayLimit(t, e) || _unsupportedIterableToArray(t, e) || _nonIterableRest();\n }\n function _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 }\n function _iterableToArrayLimit(t, e) {\n var r = null == t ? null : \"undefined\" != typeof Symbol && t[Symbol.iterator] || t[\"@@iterator\"];\n if (null != r) {\n var n,\n i,\n o,\n a,\n s = [],\n c = !0,\n u = !1;\n try {\n if (o = (r = r.call(t)).next, 0 === e) {\n if (Object(r) !== r) return;\n c = !1;\n } else for (; !(c = (n = o.call(r)).done) && (s.push(n.value), s.length !== e); c = !0);\n } catch (t) {\n u = !0, i = t;\n } finally {\n try {\n if (!c && null != r.return && (a = r.return(), Object(a) !== a)) return;\n } finally {\n if (u) throw i;\n }\n }\n return s;\n }\n }\n function _arrayWithHoles(t) {\n if (Array.isArray(t)) return t;\n }\n function _createForOfIteratorHelper(t, e) {\n var r = \"undefined\" != typeof Symbol && t[Symbol.iterator] || t[\"@@iterator\"];\n if (!r) {\n if (Array.isArray(t) || (r = _unsupportedIterableToArray(t)) || e && t && \"number\" == typeof t.length) {\n r && (t = r);\n var n = 0,\n i = function () {};\n return {\n s: i,\n n: function () {\n return n >= t.length ? {\n done: !0\n } : {\n done: !1,\n value: t[n++]\n };\n },\n e: function (t) {\n throw t;\n },\n f: i\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 s = !1;\n return {\n s: function () {\n r = r.call(t);\n },\n n: function () {\n var t = r.next();\n return a = t.done, t;\n },\n e: function (t) {\n s = !0, o = t;\n },\n f: function () {\n try {\n a || null == r.return || r.return();\n } finally {\n if (s) throw o;\n }\n }\n };\n }\n function _unsupportedIterableToArray(t, e) {\n if (t) {\n if (\"string\" == typeof t) return _arrayLikeToArray(t, e);\n var r = Object.prototype.toString.call(t).slice(8, -1);\n return \"Object\" === r && t.constructor && (r = t.constructor.name), \"Map\" === r || \"Set\" === r ? Array.from(t) : \"Arguments\" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? _arrayLikeToArray(t, e) : void 0;\n }\n }\n function _arrayLikeToArray(t, e) {\n (null == e || e > t.length) && (e = t.length);\n for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r];\n return n;\n }\n function ownKeys(t, e) {\n var r = Object.keys(t);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(t);\n e && (n = n.filter(function (e) {\n return Object.getOwnPropertyDescriptor(t, e).enumerable;\n })), r.push.apply(r, n);\n }\n return r;\n }\n function _objectSpread(t) {\n for (var e = 1; e < arguments.length; e++) {\n var r = null != arguments[e] ? arguments[e] : {};\n e % 2 ? ownKeys(Object(r), !0).forEach(function (e) {\n _defineProperty(t, e, r[e]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : ownKeys(Object(r)).forEach(function (e) {\n Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e));\n });\n }\n return t;\n }\n function _defineProperty(t, e, r) {\n return (e = _toPropertyKey(e)) in t ? Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : t[e] = r, t;\n }\n function _toPropertyKey(t) {\n var e = _toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(e) ? e : String(e);\n }\n function _toPrimitive(t, e) {\n if (\"object\" != _typeof(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var n = r.call(t, e || \"default\");\n if (\"object\" != _typeof(n)) return n;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }\n function asyncGeneratorStep(t, e, r, n, i, o, a) {\n try {\n var s = t[o](a),\n c = s.value;\n } catch (t) {\n return void r(t);\n }\n s.done ? e(c) : Promise.resolve(c).then(n, i);\n }\n function _asyncToGenerator(t) {\n return function () {\n var e = this,\n r = arguments;\n return new Promise(function (n, i) {\n var o = t.apply(e, r);\n function a(t) {\n asyncGeneratorStep(o, n, i, a, s, \"next\", t);\n }\n function s(t) {\n asyncGeneratorStep(o, n, i, a, s, \"throw\", t);\n }\n a(void 0);\n });\n };\n }\n var Token = __webpack_require__(49),\n strtok3 = __webpack_require__(17),\n _require = __webpack_require__(51),\n stringToBytes = _require.stringToBytes,\n tarHeaderChecksumMatches = _require.tarHeaderChecksumMatches,\n uint32SyncSafeToken = _require.uint32SyncSafeToken,\n supported = __webpack_require__(52),\n minimumBytes = 4100;\n function fromStream(t) {\n return _fromStream.apply(this, arguments);\n }\n function _fromStream() {\n return (_fromStream = _asyncToGenerator(_regeneratorRuntime().mark(function t(e) {\n var r;\n return _regeneratorRuntime().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.next = 2, strtok3.fromStream(e);\n case 2:\n return r = t.sent, t.prev = 3, t.next = 6, fromTokenizer(r);\n case 6:\n return t.abrupt(\"return\", t.sent);\n case 7:\n return t.prev = 7, t.next = 10, r.close();\n case 10:\n return t.finish(7);\n case 11:\n case \"end\":\n return t.stop();\n }\n }, t, null, [[3,, 7, 11]]);\n }))).apply(this, arguments);\n }\n function fromBuffer(t) {\n return _fromBuffer.apply(this, arguments);\n }\n function _fromBuffer() {\n return (_fromBuffer = _asyncToGenerator(_regeneratorRuntime().mark(function t(e) {\n var r, n;\n return _regeneratorRuntime().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n if (e instanceof Uint8Array || e instanceof ArrayBuffer || Buffer.isBuffer(e)) {\n t.next = 2;\n break;\n }\n throw new TypeError(\"Expected the `input` argument to be of type `Uint8Array` or `Buffer` or `ArrayBuffer`, got `\".concat(_typeof(e), \"`\"));\n case 2:\n if ((r = e instanceof Buffer ? e : Buffer.from(e)) && r.length > 1) {\n t.next = 5;\n break;\n }\n return t.abrupt(\"return\");\n case 5:\n return n = strtok3.fromBuffer(r), t.abrupt(\"return\", fromTokenizer(n));\n case 7:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }\n function _check(t, e, r) {\n r = _objectSpread({\n offset: 0\n }, r);\n var n,\n i = _createForOfIteratorHelper(e.entries());\n try {\n for (i.s(); !(n = i.n()).done;) {\n var o = _slicedToArray(n.value, 2),\n a = o[0],\n s = o[1];\n if (r.mask) {\n if (s !== (r.mask[a] & t[a + r.offset])) return !1;\n } else if (s !== t[a + r.offset]) return !1;\n }\n } catch (t) {\n i.e(t);\n } finally {\n i.f();\n }\n return !0;\n }\n function fromTokenizer(t) {\n return _fromTokenizer2.apply(this, arguments);\n }\n function _fromTokenizer2() {\n return (_fromTokenizer2 = _asyncToGenerator(_regeneratorRuntime().mark(function t(e) {\n return _regeneratorRuntime().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.prev = 0, t.abrupt(\"return\", _fromTokenizer(e));\n case 4:\n if (t.prev = 4, t.t0 = t.catch(0), t.t0 instanceof strtok3.EndOfStreamError) {\n t.next = 8;\n break;\n }\n throw t.t0;\n case 8:\n case \"end\":\n return t.stop();\n }\n }, t, null, [[0, 4]]);\n }))).apply(this, arguments);\n }\n function _fromTokenizer(t) {\n return _fromTokenizer3.apply(this, arguments);\n }\n function _fromTokenizer3() {\n return (_fromTokenizer3 = _asyncToGenerator(_regeneratorRuntime().mark(function t(e) {\n var r, n, i, o, a, s, c, u, p, l, f, d, m, h, y, v, g, b, x, w, k, _, F, E, O, j, S, T, P, A;\n return _regeneratorRuntime().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return r = Buffer.alloc(minimumBytes), 12, n = function (t, e) {\n return _check(r, t, e);\n }, i = function (t, e) {\n return n(stringToBytes(t), e);\n }, e.fileInfo.size || (e.fileInfo.size = Number.MAX_SAFE_INTEGER), t.next = 7, e.peekBuffer(r, {\n length: 12,\n mayBeLess: !0\n });\n case 7:\n if (!n([66, 77])) {\n t.next = 9;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"bmp\",\n mime: \"image/bmp\"\n });\n case 9:\n if (!n([11, 119])) {\n t.next = 11;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"ac3\",\n mime: \"audio/vnd.dolby.dd-raw\"\n });\n case 11:\n if (!n([120, 1])) {\n t.next = 13;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"dmg\",\n mime: \"application/x-apple-diskimage\"\n });\n case 13:\n if (!n([77, 90])) {\n t.next = 15;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"exe\",\n mime: \"application/x-msdownload\"\n });\n case 15:\n if (!n([37, 33])) {\n t.next = 21;\n break;\n }\n return t.next = 18, e.peekBuffer(r, {\n length: 24,\n mayBeLess: !0\n });\n case 18:\n if (!i(\"PS-Adobe-\", {\n offset: 2\n }) || !i(\" EPSF-\", {\n offset: 14\n })) {\n t.next = 20;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"eps\",\n mime: \"application/eps\"\n });\n case 20:\n return t.abrupt(\"return\", {\n ext: \"ps\",\n mime: \"application/postscript\"\n });\n case 21:\n if (!n([31, 160]) && !n([31, 157])) {\n t.next = 23;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"Z\",\n mime: \"application/x-compress\"\n });\n case 23:\n if (!n([255, 216, 255])) {\n t.next = 25;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"jpg\",\n mime: \"image/jpeg\"\n });\n case 25:\n if (!n([73, 73, 188])) {\n t.next = 27;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"jxr\",\n mime: \"image/vnd.ms-photo\"\n });\n case 27:\n if (!n([31, 139, 8])) {\n t.next = 29;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"gz\",\n mime: \"application/gzip\"\n });\n case 29:\n if (!n([66, 90, 104])) {\n t.next = 31;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"bz2\",\n mime: \"application/x-bzip2\"\n });\n case 31:\n if (!i(\"ID3\")) {\n t.next = 42;\n break;\n }\n return t.next = 34, e.ignore(6);\n case 34:\n return t.next = 36, e.readToken(uint32SyncSafeToken);\n case 36:\n if (o = t.sent, !(e.position + o > e.fileInfo.size)) {\n t.next = 39;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mp3\",\n mime: \"audio/mpeg\"\n });\n case 39:\n return t.next = 41, e.ignore(o);\n case 41:\n return t.abrupt(\"return\", fromTokenizer(e));\n case 42:\n if (!i(\"MP+\")) {\n t.next = 44;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mpc\",\n mime: \"audio/x-musepack\"\n });\n case 44:\n if (67 !== r[0] && 70 !== r[0] || !n([87, 83], {\n offset: 1\n })) {\n t.next = 46;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"swf\",\n mime: \"application/x-shockwave-flash\"\n });\n case 46:\n if (!n([71, 73, 70])) {\n t.next = 48;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"gif\",\n mime: \"image/gif\"\n });\n case 48:\n if (!i(\"FLIF\")) {\n t.next = 50;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"flif\",\n mime: \"image/flif\"\n });\n case 50:\n if (!i(\"8BPS\")) {\n t.next = 52;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"psd\",\n mime: \"image/vnd.adobe.photoshop\"\n });\n case 52:\n if (!i(\"WEBP\", {\n offset: 8\n })) {\n t.next = 54;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"webp\",\n mime: \"image/webp\"\n });\n case 54:\n if (!i(\"MPCK\")) {\n t.next = 56;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mpc\",\n mime: \"audio/x-musepack\"\n });\n case 56:\n if (!i(\"FORM\")) {\n t.next = 58;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"aif\",\n mime: \"audio/aiff\"\n });\n case 58:\n if (!i(\"icns\", {\n offset: 0\n })) {\n t.next = 60;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"icns\",\n mime: \"image/icns\"\n });\n case 60:\n if (!n([80, 75, 3, 4])) {\n t.next = 121;\n break;\n }\n t.prev = 61;\n case 62:\n if (!(e.position + 30 < e.fileInfo.size)) {\n t.next = 114;\n break;\n }\n return t.next = 65, e.readBuffer(r, {\n length: 30\n });\n case 65:\n return a = {\n compressedSize: r.readUInt32LE(18),\n uncompressedSize: r.readUInt32LE(22),\n filenameLength: r.readUInt16LE(26),\n extraFieldLength: r.readUInt16LE(28)\n }, t.next = 68, e.readToken(new Token.StringType(a.filenameLength, \"utf-8\"));\n case 68:\n return a.filename = t.sent, t.next = 71, e.ignore(a.extraFieldLength);\n case 71:\n if (\"META-INF/mozilla.rsa\" !== a.filename) {\n t.next = 73;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"xpi\",\n mime: \"application/x-xpinstall\"\n });\n case 73:\n if (!a.filename.endsWith(\".rels\") && !a.filename.endsWith(\".xml\")) {\n t.next = 83;\n break;\n }\n s = a.filename.split(\"/\")[0], t.t0 = s, t.next = \"_rels\" === t.t0 ? 78 : \"word\" === t.t0 ? 79 : \"ppt\" === t.t0 ? 80 : \"xl\" === t.t0 ? 81 : 82;\n break;\n case 78:\n return t.abrupt(\"break\", 83);\n case 79:\n return t.abrupt(\"return\", {\n ext: \"docx\",\n mime: \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"\n });\n case 80:\n return t.abrupt(\"return\", {\n ext: \"pptx\",\n mime: \"application/vnd.openxmlformats-officedocument.presentationml.presentation\"\n });\n case 81:\n return t.abrupt(\"return\", {\n ext: \"xlsx\",\n mime: \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"\n });\n case 82:\n return t.abrupt(\"break\", 83);\n case 83:\n if (!a.filename.startsWith(\"xl/\")) {\n t.next = 85;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"xlsx\",\n mime: \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"\n });\n case 85:\n if (!a.filename.startsWith(\"3D/\") || !a.filename.endsWith(\".model\")) {\n t.next = 87;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"3mf\",\n mime: \"model/3mf\"\n });\n case 87:\n if (\"mimetype\" !== a.filename || a.compressedSize !== a.uncompressedSize) {\n t.next = 98;\n break;\n }\n return t.next = 90, e.readToken(new Token.StringType(a.compressedSize, \"utf-8\"));\n case 90:\n c = t.sent, t.t1 = c, t.next = \"application/epub+zip\" === t.t1 ? 94 : \"application/vnd.oasis.opendocument.text\" === t.t1 ? 95 : \"application/vnd.oasis.opendocument.spreadsheet\" === t.t1 ? 96 : \"application/vnd.oasis.opendocument.presentation\" === t.t1 ? 97 : 98;\n break;\n case 94:\n return t.abrupt(\"return\", {\n ext: \"epub\",\n mime: \"application/epub+zip\"\n });\n case 95:\n return t.abrupt(\"return\", {\n ext: \"odt\",\n mime: \"application/vnd.oasis.opendocument.text\"\n });\n case 96:\n return t.abrupt(\"return\", {\n ext: \"ods\",\n mime: \"application/vnd.oasis.opendocument.spreadsheet\"\n });\n case 97:\n return t.abrupt(\"return\", {\n ext: \"odp\",\n mime: \"application/vnd.oasis.opendocument.presentation\"\n });\n case 98:\n if (0 !== a.compressedSize) {\n t.next = 110;\n break;\n }\n u = -1;\n case 100:\n if (!(u < 0 && e.position < e.fileInfo.size)) {\n t.next = 108;\n break;\n }\n return t.next = 103, e.peekBuffer(r, {\n mayBeLess: !0\n });\n case 103:\n return u = r.indexOf(\"504B0304\", 0, \"hex\"), t.next = 106, e.ignore(u >= 0 ? u : r.length);\n case 106:\n t.next = 100;\n break;\n case 108:\n t.next = 112;\n break;\n case 110:\n return t.next = 112, e.ignore(a.compressedSize);\n case 112:\n t.next = 62;\n break;\n case 114:\n t.next = 120;\n break;\n case 116:\n if (t.prev = 116, t.t2 = t.catch(61), t.t2 instanceof strtok3.EndOfStreamError) {\n t.next = 120;\n break;\n }\n throw t.t2;\n case 120:\n return t.abrupt(\"return\", {\n ext: \"zip\",\n mime: \"application/zip\"\n });\n case 121:\n if (!i(\"OggS\")) {\n t.next = 140;\n break;\n }\n return t.next = 124, e.ignore(28);\n case 124:\n return p = Buffer.alloc(8), t.next = 127, e.readBuffer(p);\n case 127:\n if (!_check(p, [79, 112, 117, 115, 72, 101, 97, 100])) {\n t.next = 129;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"opus\",\n mime: \"audio/opus\"\n });\n case 129:\n if (!_check(p, [128, 116, 104, 101, 111, 114, 97])) {\n t.next = 131;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"ogv\",\n mime: \"video/ogg\"\n });\n case 131:\n if (!_check(p, [1, 118, 105, 100, 101, 111, 0])) {\n t.next = 133;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"ogm\",\n mime: \"video/ogg\"\n });\n case 133:\n if (!_check(p, [127, 70, 76, 65, 67])) {\n t.next = 135;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"oga\",\n mime: \"audio/ogg\"\n });\n case 135:\n if (!_check(p, [83, 112, 101, 101, 120, 32, 32])) {\n t.next = 137;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"spx\",\n mime: \"audio/ogg\"\n });\n case 137:\n if (!_check(p, [1, 118, 111, 114, 98, 105, 115])) {\n t.next = 139;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"ogg\",\n mime: \"audio/ogg\"\n });\n case 139:\n return t.abrupt(\"return\", {\n ext: \"ogx\",\n mime: \"application/ogg\"\n });\n case 140:\n if (!n([80, 75]) || 3 !== r[2] && 5 !== r[2] && 7 !== r[2] || 4 !== r[3] && 6 !== r[3] && 8 !== r[3]) {\n t.next = 142;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"zip\",\n mime: \"application/zip\"\n });\n case 142:\n if (!i(\"ftyp\", {\n offset: 4\n }) || 0 == (96 & r[8])) {\n t.next = 167;\n break;\n }\n l = r.toString(\"binary\", 8, 12).replace(\"\\0\", \" \").trim(), t.t3 = l, t.next = \"avif\" === t.t3 ? 147 : \"mif1\" === t.t3 ? 148 : \"msf1\" === t.t3 ? 149 : \"heic\" === t.t3 || \"heix\" === t.t3 ? 150 : \"hevc\" === t.t3 || \"hevx\" === t.t3 ? 151 : \"qt\" === t.t3 ? 152 : \"M4V\" === t.t3 || \"M4VH\" === t.t3 || \"M4VP\" === t.t3 ? 153 : \"M4P\" === t.t3 ? 154 : \"M4B\" === t.t3 ? 155 : \"M4A\" === t.t3 ? 156 : \"F4V\" === t.t3 ? 157 : \"F4P\" === t.t3 ? 158 : \"F4A\" === t.t3 ? 159 : \"F4B\" === t.t3 ? 160 : \"crx\" === t.t3 ? 161 : 162;\n break;\n case 147:\n return t.abrupt(\"return\", {\n ext: \"avif\",\n mime: \"image/avif\"\n });\n case 148:\n return t.abrupt(\"return\", {\n ext: \"heic\",\n mime: \"image/heif\"\n });\n case 149:\n return t.abrupt(\"return\", {\n ext: \"heic\",\n mime: \"image/heif-sequence\"\n });\n case 150:\n return t.abrupt(\"return\", {\n ext: \"heic\",\n mime: \"image/heic\"\n });\n case 151:\n return t.abrupt(\"return\", {\n ext: \"heic\",\n mime: \"image/heic-sequence\"\n });\n case 152:\n return t.abrupt(\"return\", {\n ext: \"mov\",\n mime: \"video/quicktime\"\n });\n case 153:\n return t.abrupt(\"return\", {\n ext: \"m4v\",\n mime: \"video/x-m4v\"\n });\n case 154:\n return t.abrupt(\"return\", {\n ext: \"m4p\",\n mime: \"video/mp4\"\n });\n case 155:\n return t.abrupt(\"return\", {\n ext: \"m4b\",\n mime: \"audio/mp4\"\n });\n case 156:\n return t.abrupt(\"return\", {\n ext: \"m4a\",\n mime: \"audio/x-m4a\"\n });\n case 157:\n return t.abrupt(\"return\", {\n ext: \"f4v\",\n mime: \"video/mp4\"\n });\n case 158:\n return t.abrupt(\"return\", {\n ext: \"f4p\",\n mime: \"video/mp4\"\n });\n case 159:\n return t.abrupt(\"return\", {\n ext: \"f4a\",\n mime: \"audio/mp4\"\n });\n case 160:\n return t.abrupt(\"return\", {\n ext: \"f4b\",\n mime: \"audio/mp4\"\n });\n case 161:\n return t.abrupt(\"return\", {\n ext: \"cr3\",\n mime: \"image/x-canon-cr3\"\n });\n case 162:\n if (!l.startsWith(\"3g\")) {\n t.next = 166;\n break;\n }\n if (!l.startsWith(\"3g2\")) {\n t.next = 165;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"3g2\",\n mime: \"video/3gpp2\"\n });\n case 165:\n return t.abrupt(\"return\", {\n ext: \"3gp\",\n mime: \"video/3gpp\"\n });\n case 166:\n return t.abrupt(\"return\", {\n ext: \"mp4\",\n mime: \"video/mp4\"\n });\n case 167:\n if (!i(\"MThd\")) {\n t.next = 169;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mid\",\n mime: \"audio/midi\"\n });\n case 169:\n if (!i(\"wOFF\") || !n([0, 1, 0, 0], {\n offset: 4\n }) && !i(\"OTTO\", {\n offset: 4\n })) {\n t.next = 171;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"woff\",\n mime: \"font/woff\"\n });\n case 171:\n if (!i(\"wOF2\") || !n([0, 1, 0, 0], {\n offset: 4\n }) && !i(\"OTTO\", {\n offset: 4\n })) {\n t.next = 173;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"woff2\",\n mime: \"font/woff2\"\n });\n case 173:\n if (!n([212, 195, 178, 161]) && !n([161, 178, 195, 212])) {\n t.next = 175;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"pcap\",\n mime: \"application/vnd.tcpdump.pcap\"\n });\n case 175:\n if (!i(\"DSD \")) {\n t.next = 177;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"dsf\",\n mime: \"audio/x-dsf\"\n });\n case 177:\n if (!i(\"LZIP\")) {\n t.next = 179;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"lz\",\n mime: \"application/x-lzip\"\n });\n case 179:\n if (!i(\"fLaC\")) {\n t.next = 181;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"flac\",\n mime: \"audio/x-flac\"\n });\n case 181:\n if (!n([66, 80, 71, 251])) {\n t.next = 183;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"bpg\",\n mime: \"image/bpg\"\n });\n case 183:\n if (!i(\"wvpk\")) {\n t.next = 185;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"wv\",\n mime: \"audio/wavpack\"\n });\n case 185:\n if (!i(\"%PDF\")) {\n t.next = 195;\n break;\n }\n return t.next = 188, e.ignore(1350);\n case 188:\n return 10485760, f = Buffer.alloc(Math.min(10485760, e.fileInfo.size)), t.next = 192, e.readBuffer(f, {\n mayBeLess: !0\n });\n case 192:\n if (!f.includes(Buffer.from(\"AIPrivateData\"))) {\n t.next = 194;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"ai\",\n mime: \"application/postscript\"\n });\n case 194:\n return t.abrupt(\"return\", {\n ext: \"pdf\",\n mime: \"application/pdf\"\n });\n case 195:\n if (!n([0, 97, 115, 109])) {\n t.next = 197;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"wasm\",\n mime: \"application/wasm\"\n });\n case 197:\n if (!n([73, 73, 42, 0])) {\n t.next = 210;\n break;\n }\n if (!i(\"CR\", {\n offset: 8\n })) {\n t.next = 200;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"cr2\",\n mime: \"image/x-canon-cr2\"\n });\n case 200:\n if (!n([28, 0, 254, 0], {\n offset: 8\n }) && !n([31, 0, 11, 0], {\n offset: 8\n })) {\n t.next = 202;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"nef\",\n mime: \"image/x-nikon-nef\"\n });\n case 202:\n if (!n([8, 0, 0, 0], {\n offset: 4\n }) || !n([45, 0, 254, 0], {\n offset: 8\n }) && !n([39, 0, 254, 0], {\n offset: 8\n })) {\n t.next = 204;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"dng\",\n mime: \"image/x-adobe-dng\"\n });\n case 204:\n return r = Buffer.alloc(24), t.next = 207, e.peekBuffer(r);\n case 207:\n if (!n([16, 251, 134, 1], {\n offset: 4\n }) && !n([8, 0, 0, 0], {\n offset: 4\n }) || !n([0, 254, 0, 4, 0, 1, 0, 0, 0, 1, 0, 0, 0, 3, 1], {\n offset: 9\n })) {\n t.next = 209;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"arw\",\n mime: \"image/x-sony-arw\"\n });\n case 209:\n return t.abrupt(\"return\", {\n ext: \"tif\",\n mime: \"image/tiff\"\n });\n case 210:\n if (!n([77, 77, 0, 42])) {\n t.next = 212;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"tif\",\n mime: \"image/tiff\"\n });\n case 212:\n if (!i(\"MAC \")) {\n t.next = 214;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"ape\",\n mime: \"audio/ape\"\n });\n case 214:\n if (!n([26, 69, 223, 163])) {\n t.next = 233;\n break;\n }\n return g = function () {\n return (g = _asyncToGenerator(_regeneratorRuntime().mark(function t(r, n) {\n var i;\n return _regeneratorRuntime().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n if (!(n > 0)) {\n t.next = 11;\n break;\n }\n return t.next = 3, h();\n case 3:\n if (17026 !== (i = t.sent).id) {\n t.next = 6;\n break;\n }\n return t.abrupt(\"return\", e.readToken(new Token.StringType(i.len, \"utf-8\")));\n case 6:\n return t.next = 8, e.ignore(i.len);\n case 8:\n --n, t.next = 0;\n break;\n case 11:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }, v = function (t, e) {\n return g.apply(this, arguments);\n }, y = function () {\n return (y = _asyncToGenerator(_regeneratorRuntime().mark(function t() {\n var e, r, n;\n return _regeneratorRuntime().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.next = 2, d();\n case 2:\n return e = t.sent, t.next = 5, d();\n case 5:\n return (r = t.sent)[0] ^= 128 >> r.length - 1, n = Math.min(6, r.length), t.abrupt(\"return\", {\n id: e.readUIntBE(0, e.length),\n len: r.readUIntBE(r.length - n, n)\n });\n case 9:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }, h = function () {\n return y.apply(this, arguments);\n }, m = function () {\n return (m = _asyncToGenerator(_regeneratorRuntime().mark(function t() {\n var r, n, i, o;\n return _regeneratorRuntime().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.next = 2, e.peekNumber(Token.UINT8);\n case 2:\n for (r = t.sent, n = 128, i = 0; 0 == (r & n) && 0 !== n;) ++i, n >>= 1;\n return o = Buffer.alloc(i + 1), t.next = 9, e.readBuffer(o);\n case 9:\n return t.abrupt(\"return\", o);\n case 10:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }, d = function () {\n return m.apply(this, arguments);\n }, t.next = 223, h();\n case 223:\n return b = t.sent, t.next = 226, v(1, b.len);\n case 226:\n x = t.sent, t.t4 = x, t.next = \"webm\" === t.t4 ? 230 : \"matroska\" === t.t4 ? 231 : 232;\n break;\n case 230:\n return t.abrupt(\"return\", {\n ext: \"webm\",\n mime: \"video/webm\"\n });\n case 231:\n return t.abrupt(\"return\", {\n ext: \"mkv\",\n mime: \"video/x-matroska\"\n });\n case 232:\n return t.abrupt(\"return\");\n case 233:\n if (!n([82, 73, 70, 70])) {\n t.next = 240;\n break;\n }\n if (!n([65, 86, 73], {\n offset: 8\n })) {\n t.next = 236;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"avi\",\n mime: \"video/vnd.avi\"\n });\n case 236:\n if (!n([87, 65, 86, 69], {\n offset: 8\n })) {\n t.next = 238;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"wav\",\n mime: \"audio/vnd.wave\"\n });\n case 238:\n if (!n([81, 76, 67, 77], {\n offset: 8\n })) {\n t.next = 240;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"qcp\",\n mime: \"audio/qcelp\"\n });\n case 240:\n if (!i(\"SQLi\")) {\n t.next = 242;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"sqlite\",\n mime: \"application/x-sqlite3\"\n });\n case 242:\n if (!n([78, 69, 83, 26])) {\n t.next = 244;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"nes\",\n mime: \"application/x-nintendo-nes-rom\"\n });\n case 244:\n if (!i(\"Cr24\")) {\n t.next = 246;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"crx\",\n mime: \"application/x-google-chrome-extension\"\n });\n case 246:\n if (!i(\"MSCF\") && !i(\"ISc(\")) {\n t.next = 248;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"cab\",\n mime: \"application/vnd.ms-cab-compressed\"\n });\n case 248:\n if (!n([237, 171, 238, 219])) {\n t.next = 250;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"rpm\",\n mime: \"application/x-rpm\"\n });\n case 250:\n if (!n([197, 208, 211, 198])) {\n t.next = 252;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"eps\",\n mime: \"application/eps\"\n });\n case 252:\n if (!n([40, 181, 47, 253])) {\n t.next = 254;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"zst\",\n mime: \"application/zstd\"\n });\n case 254:\n if (!n([79, 84, 84, 79, 0])) {\n t.next = 256;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"otf\",\n mime: \"font/otf\"\n });\n case 256:\n if (!i(\"#!AMR\")) {\n t.next = 258;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"amr\",\n mime: \"audio/amr\"\n });\n case 258:\n if (!i(\"{\\\\rtf\")) {\n t.next = 260;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"rtf\",\n mime: \"application/rtf\"\n });\n case 260:\n if (!n([70, 76, 86, 1])) {\n t.next = 262;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"flv\",\n mime: \"video/x-flv\"\n });\n case 262:\n if (!i(\"IMPM\")) {\n t.next = 264;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"it\",\n mime: \"audio/x-it\"\n });\n case 264:\n if (!(i(\"-lh0-\", {\n offset: 2\n }) || i(\"-lh1-\", {\n offset: 2\n }) || i(\"-lh2-\", {\n offset: 2\n }) || i(\"-lh3-\", {\n offset: 2\n }) || i(\"-lh4-\", {\n offset: 2\n }) || i(\"-lh5-\", {\n offset: 2\n }) || i(\"-lh6-\", {\n offset: 2\n }) || i(\"-lh7-\", {\n offset: 2\n }) || i(\"-lzs-\", {\n offset: 2\n }) || i(\"-lz4-\", {\n offset: 2\n }) || i(\"-lz5-\", {\n offset: 2\n }) || i(\"-lhd-\", {\n offset: 2\n }))) {\n t.next = 266;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"lzh\",\n mime: \"application/x-lzh-compressed\"\n });\n case 266:\n if (!n([0, 0, 1, 186])) {\n t.next = 271;\n break;\n }\n if (!n([33], {\n offset: 4,\n mask: [241]\n })) {\n t.next = 269;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mpg\",\n mime: \"video/MP1S\"\n });\n case 269:\n if (!n([68], {\n offset: 4,\n mask: [196]\n })) {\n t.next = 271;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mpg\",\n mime: \"video/MP2P\"\n });\n case 271:\n if (!i(\"ITSF\")) {\n t.next = 273;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"chm\",\n mime: \"application/vnd.ms-htmlhelp\"\n });\n case 273:\n if (!n([253, 55, 122, 88, 90, 0])) {\n t.next = 275;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"xz\",\n mime: \"application/x-xz\"\n });\n case 275:\n if (!i(\"\")) {\n t.next = 294;\n break;\n }\n return t.next = 288, e.ignore(8);\n case 288:\n return t.next = 290, e.readToken(new Token.StringType(13, \"ascii\"));\n case 290:\n if (\"debian-binary\" !== t.sent) {\n t.next = 293;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"deb\",\n mime: \"application/x-deb\"\n });\n case 293:\n return t.abrupt(\"return\", {\n ext: \"ar\",\n mime: \"application/x-unix-archive\"\n });\n case 294:\n if (!n([137, 80, 78, 71, 13, 10, 26, 10])) {\n t.next = 313;\n break;\n }\n return k = function () {\n return (k = _asyncToGenerator(_regeneratorRuntime().mark(function t() {\n return _regeneratorRuntime().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return t.next = 2, e.readToken(Token.INT32_BE);\n case 2:\n return t.t0 = t.sent, t.next = 5, e.readToken(new Token.StringType(4, \"binary\"));\n case 5:\n return t.t1 = t.sent, t.abrupt(\"return\", {\n length: t.t0,\n type: t.t1\n });\n case 7:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }, w = function () {\n return k.apply(this, arguments);\n }, t.next = 299, e.ignore(8);\n case 299:\n return t.next = 301, w();\n case 301:\n if (!((_ = t.sent).length < 0)) {\n t.next = 304;\n break;\n }\n return t.abrupt(\"return\");\n case 304:\n t.t5 = _.type, t.next = \"IDAT\" === t.t5 ? 307 : \"acTL\" === t.t5 ? 308 : 309;\n break;\n case 307:\n return t.abrupt(\"return\", {\n ext: \"png\",\n mime: \"image/png\"\n });\n case 308:\n return t.abrupt(\"return\", {\n ext: \"apng\",\n mime: \"image/apng\"\n });\n case 309:\n return t.next = 311, e.ignore(_.length + 4);\n case 311:\n if (e.position + 8 < e.fileInfo.size) {\n t.next = 299;\n break;\n }\n case 312:\n return t.abrupt(\"return\", {\n ext: \"png\",\n mime: \"image/png\"\n });\n case 313:\n if (!n([65, 82, 82, 79, 87, 49, 0, 0])) {\n t.next = 315;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"arrow\",\n mime: \"application/x-apache-arrow\"\n });\n case 315:\n if (!n([103, 108, 84, 70, 2, 0, 0, 0])) {\n t.next = 317;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"glb\",\n mime: \"model/gltf-binary\"\n });\n case 317:\n if (!(n([102, 114, 101, 101], {\n offset: 4\n }) || n([109, 100, 97, 116], {\n offset: 4\n }) || n([109, 111, 111, 118], {\n offset: 4\n }) || n([119, 105, 100, 101], {\n offset: 4\n }))) {\n t.next = 319;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mov\",\n mime: \"video/quicktime\"\n });\n case 319:\n if (!n([73, 73, 82, 79, 8, 0, 0, 0, 24])) {\n t.next = 321;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"orf\",\n mime: \"image/x-olympus-orf\"\n });\n case 321:\n if (!i(\"gimp xcf \")) {\n t.next = 323;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"xcf\",\n mime: \"image/x-xcf\"\n });\n case 323:\n if (!n([73, 73, 85, 0, 24, 0, 0, 0, 136, 231, 116, 216])) {\n t.next = 325;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"rw2\",\n mime: \"image/x-panasonic-rw2\"\n });\n case 325:\n if (!n([48, 38, 178, 117, 142, 102, 207, 17, 166, 217])) {\n t.next = 351;\n break;\n }\n return E = function () {\n return (E = _asyncToGenerator(_regeneratorRuntime().mark(function t() {\n var r;\n return _regeneratorRuntime().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return r = Buffer.alloc(16), t.next = 3, e.readBuffer(r);\n case 3:\n return t.t0 = r, t.t1 = Number, t.next = 7, e.readToken(Token.UINT64_LE);\n case 7:\n return t.t2 = t.sent, t.t3 = (0, t.t1)(t.t2), t.abrupt(\"return\", {\n id: t.t0,\n size: t.t3\n });\n case 10:\n case \"end\":\n return t.stop();\n }\n }, t);\n }))).apply(this, arguments);\n }, F = function () {\n return E.apply(this, arguments);\n }, t.next = 330, e.ignore(30);\n case 330:\n if (!(e.position + 24 < e.fileInfo.size)) {\n t.next = 350;\n break;\n }\n return t.next = 333, F();\n case 333:\n if (O = t.sent, j = O.size - 24, !_check(O.id, [145, 7, 220, 183, 183, 169, 207, 17, 142, 230, 0, 192, 12, 32, 83, 101])) {\n t.next = 346;\n break;\n }\n return S = Buffer.alloc(16), t.t6 = j, t.next = 340, e.readBuffer(S);\n case 340:\n if (j = t.t6 -= t.sent, !_check(S, [64, 158, 105, 248, 77, 91, 207, 17, 168, 253, 0, 128, 95, 92, 68, 43])) {\n t.next = 343;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"asf\",\n mime: \"audio/x-ms-asf\"\n });\n case 343:\n if (!_check(S, [192, 239, 25, 188, 77, 91, 207, 17, 168, 253, 0, 128, 95, 92, 68, 43])) {\n t.next = 345;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"asf\",\n mime: \"video/x-ms-asf\"\n });\n case 345:\n return t.abrupt(\"break\", 350);\n case 346:\n return t.next = 348, e.ignore(j);\n case 348:\n t.next = 330;\n break;\n case 350:\n return t.abrupt(\"return\", {\n ext: \"asf\",\n mime: \"application/vnd.ms-asf\"\n });\n case 351:\n if (!n([171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10])) {\n t.next = 353;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"ktx\",\n mime: \"image/ktx\"\n });\n case 353:\n if (!n([126, 16, 4]) && !n([126, 24, 4]) || !n([48, 77, 73, 69], {\n offset: 4\n })) {\n t.next = 355;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mie\",\n mime: \"application/x-mie\"\n });\n case 355:\n if (!n([39, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], {\n offset: 2\n })) {\n t.next = 357;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"shp\",\n mime: \"application/x-esri-shape\"\n });\n case 357:\n if (!n([0, 0, 0, 12, 106, 80, 32, 32, 13, 10, 135, 10])) {\n t.next = 371;\n break;\n }\n return t.next = 360, e.ignore(20);\n case 360:\n return t.next = 362, e.readToken(new Token.StringType(4, \"ascii\"));\n case 362:\n T = t.sent, t.t7 = T, t.next = \"jp2 \" === t.t7 ? 366 : \"jpx \" === t.t7 ? 367 : \"jpm \" === t.t7 ? 368 : \"mjp2\" === t.t7 ? 369 : 370;\n break;\n case 366:\n return t.abrupt(\"return\", {\n ext: \"jp2\",\n mime: \"image/jp2\"\n });\n case 367:\n return t.abrupt(\"return\", {\n ext: \"jpx\",\n mime: \"image/jpx\"\n });\n case 368:\n return t.abrupt(\"return\", {\n ext: \"jpm\",\n mime: \"image/jpm\"\n });\n case 369:\n return t.abrupt(\"return\", {\n ext: \"mj2\",\n mime: \"image/mj2\"\n });\n case 370:\n return t.abrupt(\"return\");\n case 371:\n if (!n([255, 10]) && !n([0, 0, 0, 12, 74, 88, 76, 32, 13, 10, 135, 10])) {\n t.next = 373;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"jxl\",\n mime: \"image/jxl\"\n });\n case 373:\n if (!n([0, 0, 1, 186]) && !n([0, 0, 1, 179])) {\n t.next = 375;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mpg\",\n mime: \"video/mpeg\"\n });\n case 375:\n if (!n([0, 1, 0, 0, 0])) {\n t.next = 377;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"ttf\",\n mime: \"font/ttf\"\n });\n case 377:\n if (!n([0, 0, 1, 0])) {\n t.next = 379;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"ico\",\n mime: \"image/x-icon\"\n });\n case 379:\n if (!n([0, 0, 2, 0])) {\n t.next = 381;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"cur\",\n mime: \"image/x-icon\"\n });\n case 381:\n if (!n([208, 207, 17, 224, 161, 177, 26, 225])) {\n t.next = 383;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"cfb\",\n mime: \"application/x-cfb\"\n });\n case 383:\n return t.next = 385, e.peekBuffer(r, {\n length: Math.min(256, e.fileInfo.size),\n mayBeLess: !0\n });\n case 385:\n if (!i(\"BEGIN:\")) {\n t.next = 390;\n break;\n }\n if (!i(\"VCARD\", {\n offset: 6\n })) {\n t.next = 388;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"vcf\",\n mime: \"text/vcard\"\n });\n case 388:\n if (!i(\"VCALENDAR\", {\n offset: 6\n })) {\n t.next = 390;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"ics\",\n mime: \"text/calendar\"\n });\n case 390:\n if (!i(\"FUJIFILMCCD-RAW\")) {\n t.next = 392;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"raf\",\n mime: \"image/x-fujifilm-raf\"\n });\n case 392:\n if (!i(\"Extended Module:\")) {\n t.next = 394;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"xm\",\n mime: \"audio/x-xm\"\n });\n case 394:\n if (!i(\"Creative Voice File\")) {\n t.next = 396;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"voc\",\n mime: \"audio/x-voc\"\n });\n case 396:\n if (!(n([4, 0, 0, 0]) && r.length >= 16)) {\n t.next = 408;\n break;\n }\n if (!((P = r.readUInt32LE(12)) > 12 && r.length >= P + 16)) {\n t.next = 408;\n break;\n }\n if (t.prev = 399, A = r.slice(16, P + 16).toString(), !JSON.parse(A).files) {\n t.next = 404;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"asar\",\n mime: \"application/x-asar\"\n });\n case 404:\n t.next = 408;\n break;\n case 406:\n t.prev = 406, t.t8 = t.catch(399);\n case 408:\n if (!n([6, 14, 43, 52, 2, 5, 1, 1, 13, 1, 2, 1, 1, 2])) {\n t.next = 410;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mxf\",\n mime: \"application/mxf\"\n });\n case 410:\n if (!i(\"SCRM\", {\n offset: 44\n })) {\n t.next = 412;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"s3m\",\n mime: \"audio/x-s3m\"\n });\n case 412:\n if (!n([71], {\n offset: 4\n }) || !n([71], {\n offset: 192\n }) && !n([71], {\n offset: 196\n })) {\n t.next = 414;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mts\",\n mime: \"video/mp2t\"\n });\n case 414:\n if (!n([66, 79, 79, 75, 77, 79, 66, 73], {\n offset: 60\n })) {\n t.next = 416;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mobi\",\n mime: \"application/x-mobipocket-ebook\"\n });\n case 416:\n if (!n([68, 73, 67, 77], {\n offset: 128\n })) {\n t.next = 418;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"dcm\",\n mime: \"application/dicom\"\n });\n case 418:\n if (!n([76, 0, 0, 0, 1, 20, 2, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70])) {\n t.next = 420;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"lnk\",\n mime: \"application/x.ms.shortcut\"\n });\n case 420:\n if (!n([98, 111, 111, 107, 0, 0, 0, 0, 109, 97, 114, 107, 0, 0, 0, 0])) {\n t.next = 422;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"alias\",\n mime: \"application/x.apple.alias\"\n });\n case 422:\n if (!n([76, 80], {\n offset: 34\n }) || !(n([0, 0, 1], {\n offset: 8\n }) || n([1, 0, 2], {\n offset: 8\n }) || n([2, 0, 2], {\n offset: 8\n }))) {\n t.next = 424;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"eot\",\n mime: \"application/vnd.ms-fontobject\"\n });\n case 424:\n if (!n([6, 6, 237, 245, 216, 29, 70, 229, 189, 49, 239, 231, 254, 116, 183, 29])) {\n t.next = 426;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"indd\",\n mime: \"application/x-indesign\"\n });\n case 426:\n return t.next = 428, e.peekBuffer(r, {\n length: Math.min(512, e.fileInfo.size),\n mayBeLess: !0\n });\n case 428:\n if (!tarHeaderChecksumMatches(r)) {\n t.next = 430;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"tar\",\n mime: \"application/x-tar\"\n });\n case 430:\n if (!n([255, 254, 255, 14, 83, 0, 107, 0, 101, 0, 116, 0, 99, 0, 104, 0, 85, 0, 112, 0, 32, 0, 77, 0, 111, 0, 100, 0, 101, 0, 108, 0])) {\n t.next = 432;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"skp\",\n mime: \"application/vnd.sketchup.skp\"\n });\n case 432:\n if (!i(\"-----BEGIN PGP MESSAGE-----\")) {\n t.next = 434;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"pgp\",\n mime: \"application/pgp-encrypted\"\n });\n case 434:\n if (!(r.length >= 2 && n([255, 224], {\n offset: 0,\n mask: [255, 224]\n }))) {\n t.next = 445;\n break;\n }\n if (!n([16], {\n offset: 1,\n mask: [22]\n })) {\n t.next = 439;\n break;\n }\n if (!n([8], {\n offset: 1,\n mask: [8]\n })) {\n t.next = 438;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"aac\",\n mime: \"audio/aac\"\n });\n case 438:\n return t.abrupt(\"return\", {\n ext: \"aac\",\n mime: \"audio/aac\"\n });\n case 439:\n if (!n([2], {\n offset: 1,\n mask: [6]\n })) {\n t.next = 441;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mp3\",\n mime: \"audio/mpeg\"\n });\n case 441:\n if (!n([4], {\n offset: 1,\n mask: [6]\n })) {\n t.next = 443;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mp2\",\n mime: \"audio/mpeg\"\n });\n case 443:\n if (!n([6], {\n offset: 1,\n mask: [6]\n })) {\n t.next = 445;\n break;\n }\n return t.abrupt(\"return\", {\n ext: \"mp1\",\n mime: \"audio/mpeg\"\n });\n case 445:\n case \"end\":\n return t.stop();\n }\n }, t, null, [[61, 116], [399, 406]]);\n }))).apply(this, arguments);\n }\n var stream = function stream(readableStream) {\n return new Promise(function (resolve, reject) {\n var stream = eval(\"require\")(\"stream\");\n readableStream.on(\"error\", reject), readableStream.once(\"readable\", _asyncToGenerator(_regeneratorRuntime().mark(function t() {\n var e, r, n, i;\n return _regeneratorRuntime().wrap(function (t) {\n for (;;) switch (t.prev = t.next) {\n case 0:\n return e = new stream.PassThrough(), r = stream.pipeline ? stream.pipeline(readableStream, e, function () {}) : readableStream.pipe(e), n = readableStream.read(minimumBytes) || readableStream.read() || Buffer.alloc(0), t.prev = 3, t.next = 6, fromBuffer(n);\n case 6:\n i = t.sent, e.fileType = i, t.next = 13;\n break;\n case 10:\n t.prev = 10, t.t0 = t.catch(3), reject(t.t0);\n case 13:\n resolve(r);\n case 14:\n case \"end\":\n return t.stop();\n }\n }, t, null, [[3, 10]]);\n })));\n });\n },\n fileType = {\n fromStream: fromStream,\n fromTokenizer: fromTokenizer,\n fromBuffer: fromBuffer,\n stream: stream\n };\n Object.defineProperty(fileType, \"extensions\", {\n get: function () {\n return new Set(supported.extensions);\n }\n }), Object.defineProperty(fileType, \"mimeTypes\", {\n get: function () {\n return new Set(supported.mimeTypes);\n }\n }), module.exports = fileType;\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i(t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }\n function o(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, s(n.key), n);\n }\n }\n function a(t, e, r) {\n return e && o(t.prototype, e), r && o(t, r), Object.defineProperty(t, \"prototype\", {\n writable: !1\n }), t;\n }\n function s(t) {\n var e = function (t, e) {\n if (\"object\" != n(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var i = r.call(t, e || \"default\");\n if (\"object\" != n(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == n(e) ? e : String(e);\n }\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n }), e.AnsiStringType = e.StringType = e.BufferType = e.Uint8ArrayType = e.IgnoreType = e.Float80_LE = e.Float80_BE = e.Float64_LE = e.Float64_BE = e.Float32_LE = e.Float32_BE = e.Float16_LE = e.Float16_BE = e.INT64_BE = e.UINT64_BE = e.INT64_LE = e.UINT64_LE = e.INT32_LE = e.INT32_BE = e.INT24_BE = e.INT24_LE = e.INT16_LE = e.INT16_BE = e.INT8 = e.UINT32_BE = e.UINT32_LE = e.UINT24_BE = e.UINT24_LE = e.UINT16_BE = e.UINT16_LE = e.UINT8 = void 0;\n var c = r(50);\n function u(t) {\n return new DataView(t.buffer, t.byteOffset);\n }\n e.UINT8 = {\n len: 1,\n get: function (t, e) {\n return u(t).getUint8(e);\n },\n put: function (t, e, r) {\n return u(t).setUint8(e, r), e + 1;\n }\n }, e.UINT16_LE = {\n len: 2,\n get: function (t, e) {\n return u(t).getUint16(e, !0);\n },\n put: function (t, e, r) {\n return u(t).setUint16(e, r, !0), e + 2;\n }\n }, e.UINT16_BE = {\n len: 2,\n get: function (t, e) {\n return u(t).getUint16(e);\n },\n put: function (t, e, r) {\n return u(t).setUint16(e, r), e + 2;\n }\n }, e.UINT24_LE = {\n len: 3,\n get: function (t, e) {\n var r = u(t);\n return r.getUint8(e) + (r.getUint16(e + 1, !0) << 8);\n },\n put: function (t, e, r) {\n var n = u(t);\n return n.setUint8(e, 255 & r), n.setUint16(e + 1, r >> 8, !0), e + 3;\n }\n }, e.UINT24_BE = {\n len: 3,\n get: function (t, e) {\n var r = u(t);\n return (r.getUint16(e) << 8) + r.getUint8(e + 2);\n },\n put: function (t, e, r) {\n var n = u(t);\n return n.setUint16(e, r >> 8), n.setUint8(e + 2, 255 & r), e + 3;\n }\n }, e.UINT32_LE = {\n len: 4,\n get: function (t, e) {\n return u(t).getUint32(e, !0);\n },\n put: function (t, e, r) {\n return u(t).setUint32(e, r, !0), e + 4;\n }\n }, e.UINT32_BE = {\n len: 4,\n get: function (t, e) {\n return u(t).getUint32(e);\n },\n put: function (t, e, r) {\n return u(t).setUint32(e, r), e + 4;\n }\n }, e.INT8 = {\n len: 1,\n get: function (t, e) {\n return u(t).getInt8(e);\n },\n put: function (t, e, r) {\n return u(t).setInt8(e, r), e + 1;\n }\n }, e.INT16_BE = {\n len: 2,\n get: function (t, e) {\n return u(t).getInt16(e);\n },\n put: function (t, e, r) {\n return u(t).setInt16(e, r), e + 2;\n }\n }, e.INT16_LE = {\n len: 2,\n get: function (t, e) {\n return u(t).getInt16(e, !0);\n },\n put: function (t, e, r) {\n return u(t).setInt16(e, r, !0), e + 2;\n }\n }, e.INT24_LE = {\n len: 3,\n get: function (t, r) {\n var n = e.UINT24_LE.get(t, r);\n return n > 8388607 ? n - 16777216 : n;\n },\n put: function (t, e, r) {\n var n = u(t);\n return n.setUint8(e, 255 & r), n.setUint16(e + 1, r >> 8, !0), e + 3;\n }\n }, e.INT24_BE = {\n len: 3,\n get: function (t, r) {\n var n = e.UINT24_BE.get(t, r);\n return n > 8388607 ? n - 16777216 : n;\n },\n put: function (t, e, r) {\n var n = u(t);\n return n.setUint16(e, r >> 8), n.setUint8(e + 2, 255 & r), e + 3;\n }\n }, e.INT32_BE = {\n len: 4,\n get: function (t, e) {\n return u(t).getInt32(e);\n },\n put: function (t, e, r) {\n return u(t).setInt32(e, r), e + 4;\n }\n }, e.INT32_LE = {\n len: 4,\n get: function (t, e) {\n return u(t).getInt32(e, !0);\n },\n put: function (t, e, r) {\n return u(t).setInt32(e, r, !0), e + 4;\n }\n }, e.UINT64_LE = {\n len: 8,\n get: function (t, e) {\n return u(t).getBigUint64(e, !0);\n },\n put: function (t, e, r) {\n return u(t).setBigUint64(e, r, !0), e + 8;\n }\n }, e.INT64_LE = {\n len: 8,\n get: function (t, e) {\n return u(t).getBigInt64(e, !0);\n },\n put: function (t, e, r) {\n return u(t).setBigInt64(e, r, !0), e + 8;\n }\n }, e.UINT64_BE = {\n len: 8,\n get: function (t, e) {\n return u(t).getBigUint64(e);\n },\n put: function (t, e, r) {\n return u(t).setBigUint64(e, r), e + 8;\n }\n }, e.INT64_BE = {\n len: 8,\n get: function (t, e) {\n return u(t).getBigInt64(e);\n },\n put: function (t, e, r) {\n return u(t).setBigInt64(e, r), e + 8;\n }\n }, e.Float16_BE = {\n len: 2,\n get: function (t, e) {\n return c.read(t, e, !1, 10, this.len);\n },\n put: function (t, e, r) {\n return c.write(t, r, e, !1, 10, this.len), e + this.len;\n }\n }, e.Float16_LE = {\n len: 2,\n get: function (t, e) {\n return c.read(t, e, !0, 10, this.len);\n },\n put: function (t, e, r) {\n return c.write(t, r, e, !0, 10, this.len), e + this.len;\n }\n }, e.Float32_BE = {\n len: 4,\n get: function (t, e) {\n return u(t).getFloat32(e);\n },\n put: function (t, e, r) {\n return u(t).setFloat32(e, r), e + 4;\n }\n }, e.Float32_LE = {\n len: 4,\n get: function (t, e) {\n return u(t).getFloat32(e, !0);\n },\n put: function (t, e, r) {\n return u(t).setFloat32(e, r, !0), e + 4;\n }\n }, e.Float64_BE = {\n len: 8,\n get: function (t, e) {\n return u(t).getFloat64(e);\n },\n put: function (t, e, r) {\n return u(t).setFloat64(e, r), e + 8;\n }\n }, e.Float64_LE = {\n len: 8,\n get: function (t, e) {\n return u(t).getFloat64(e, !0);\n },\n put: function (t, e, r) {\n return u(t).setFloat64(e, r, !0), e + 8;\n }\n }, e.Float80_BE = {\n len: 10,\n get: function (t, e) {\n return c.read(t, e, !1, 63, this.len);\n },\n put: function (t, e, r) {\n return c.write(t, r, e, !1, 63, this.len), e + this.len;\n }\n }, e.Float80_LE = {\n len: 10,\n get: function (t, e) {\n return c.read(t, e, !0, 63, this.len);\n },\n put: function (t, e, r) {\n return c.write(t, r, e, !0, 63, this.len), e + this.len;\n }\n };\n var p = function () {\n function t(e) {\n i(this, t), this.len = e;\n }\n return a(t, [{\n key: \"get\",\n value: function (t, e) {}\n }]), t;\n }();\n e.IgnoreType = p;\n var l = function () {\n function t(e) {\n i(this, t), this.len = e;\n }\n return a(t, [{\n key: \"get\",\n value: function (t, e) {\n return t.subarray(e, e + this.len);\n }\n }]), t;\n }();\n e.Uint8ArrayType = l;\n var f = function () {\n function t(e) {\n i(this, t), this.len = e;\n }\n return a(t, [{\n key: \"get\",\n value: function (t, e) {\n return Buffer.from(t.subarray(e, e + this.len));\n }\n }]), t;\n }();\n e.BufferType = f;\n var d = function () {\n function t(e, r) {\n i(this, t), this.len = e, this.encoding = r;\n }\n return a(t, [{\n key: \"get\",\n value: function (t, e) {\n return Buffer.from(t).toString(this.encoding, e, e + this.len);\n }\n }]), t;\n }();\n e.StringType = d;\n var m = function () {\n function t(e) {\n i(this, t), this.len = e;\n }\n return a(t, [{\n key: \"get\",\n value: function (e) {\n var r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0;\n return t.decode(e, r, r + this.len);\n }\n }], [{\n key: \"decode\",\n value: function (e, r, n) {\n for (var i = \"\", o = r; o < n; ++o) i += t.codePointToString(t.singleByteDecoder(e[o]));\n return i;\n }\n }, {\n key: \"inRange\",\n value: function (t, e, r) {\n return e <= t && t <= r;\n }\n }, {\n key: \"codePointToString\",\n value: function (t) {\n return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode(55296 + (t >> 10), 56320 + (1023 & t)));\n }\n }, {\n key: \"singleByteDecoder\",\n value: function (e) {\n if (t.inRange(e, 0, 127)) return e;\n var r = t.windows1252[e - 128];\n if (null === r) throw Error(\"invaliding encoding\");\n return r;\n }\n }]), t;\n }();\n e.AnsiStringType = m, m.windows1252 = [8364, 129, 8218, 402, 8222, 8230, 8224, 8225, 710, 8240, 352, 8249, 338, 141, 381, 143, 144, 8216, 8217, 8220, 8221, 8226, 8211, 8212, 732, 8482, 353, 8250, 339, 157, 382, 376, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255];\n}, function (t, e) {\n /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\n e.read = function (t, e, r, n, i) {\n var o,\n a,\n s = 8 * i - n - 1,\n c = (1 << s) - 1,\n u = c >> 1,\n p = -7,\n l = r ? i - 1 : 0,\n f = r ? -1 : 1,\n d = t[e + l];\n for (l += f, o = d & (1 << -p) - 1, d >>= -p, p += s; p > 0; o = 256 * o + t[e + l], l += f, p -= 8);\n for (a = o & (1 << -p) - 1, o >>= -p, p += n; p > 0; a = 256 * a + t[e + l], l += f, p -= 8);\n if (0 === o) o = 1 - u;else {\n if (o === c) return a ? NaN : 1 / 0 * (d ? -1 : 1);\n a += Math.pow(2, n), o -= u;\n }\n return (d ? -1 : 1) * a * Math.pow(2, o - n);\n }, e.write = function (t, e, r, n, i, o) {\n var a,\n s,\n c,\n u = 8 * o - i - 1,\n p = (1 << u) - 1,\n l = p >> 1,\n f = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0,\n d = n ? 0 : o - 1,\n m = n ? 1 : -1,\n h = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0;\n for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = p) : (a = Math.floor(Math.log(e) / Math.LN2), e * (c = Math.pow(2, -a)) < 1 && (a--, c *= 2), (e += a + l >= 1 ? f / c : f * Math.pow(2, 1 - l)) * c >= 2 && (a++, c /= 2), a + l >= p ? (s = 0, a = p) : a + l >= 1 ? (s = (e * c - 1) * Math.pow(2, i), a += l) : (s = e * Math.pow(2, l - 1) * Math.pow(2, i), a = 0)); i >= 8; t[r + d] = 255 & s, d += m, s /= 256, i -= 8);\n for (a = a << i | s, u += i; u > 0; t[r + d] = 255 & a, d += m, a /= 256, u -= 8);\n t[r + d - m] |= 128 * h;\n };\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return function (t) {\n if (Array.isArray(t)) return i(t);\n }(t) || function (t) {\n if (\"undefined\" != typeof Symbol && null != t[Symbol.iterator] || null != t[\"@@iterator\"]) return Array.from(t);\n }(t) || function (t, e) {\n if (!t) return;\n if (\"string\" == typeof t) return i(t, e);\n var r = Object.prototype.toString.call(t).slice(8, -1);\n \"Object\" === r && t.constructor && (r = t.constructor.name);\n if (\"Map\" === r || \"Set\" === r) return Array.from(t);\n if (\"Arguments\" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return i(t, e);\n }(t) || function () {\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 }();\n }\n function i(t, e) {\n (null == e || e > t.length) && (e = t.length);\n for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r];\n return n;\n }\n e.stringToBytes = function (t) {\n return n(t).map(function (t) {\n return t.charCodeAt(0);\n });\n }, e.tarHeaderChecksumMatches = function (t) {\n var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0,\n r = parseInt(t.toString(\"utf8\", 148, 154).replace(/\\0.*$/, \"\").trim(), 8);\n if (isNaN(r)) return !1;\n for (var n = 256, i = e; i < e + 148; i++) n += t[i];\n for (var o = e + 156; o < e + 512; o++) n += t[o];\n return r === n;\n }, e.uint32SyncSafeToken = {\n get: function (t, e) {\n return 127 & t[e + 3] | t[e + 2] << 7 | t[e + 1] << 14 | t[e] << 21;\n },\n len: 4\n };\n}, function (t, e, r) {\n \"use strict\";\n\n t.exports = {\n extensions: [\"jpg\", \"png\", \"apng\", \"gif\", \"webp\", \"flif\", \"xcf\", \"cr2\", \"cr3\", \"orf\", \"arw\", \"dng\", \"nef\", \"rw2\", \"raf\", \"tif\", \"bmp\", \"icns\", \"jxr\", \"psd\", \"indd\", \"zip\", \"tar\", \"rar\", \"gz\", \"bz2\", \"7z\", \"dmg\", \"mp4\", \"mid\", \"mkv\", \"webm\", \"mov\", \"avi\", \"mpg\", \"mp2\", \"mp3\", \"m4a\", \"oga\", \"ogg\", \"ogv\", \"opus\", \"flac\", \"wav\", \"spx\", \"amr\", \"pdf\", \"epub\", \"exe\", \"swf\", \"rtf\", \"wasm\", \"woff\", \"woff2\", \"eot\", \"ttf\", \"otf\", \"ico\", \"flv\", \"ps\", \"xz\", \"sqlite\", \"nes\", \"crx\", \"xpi\", \"cab\", \"deb\", \"ar\", \"rpm\", \"Z\", \"lz\", \"cfb\", \"mxf\", \"mts\", \"blend\", \"bpg\", \"docx\", \"pptx\", \"xlsx\", \"3gp\", \"3g2\", \"jp2\", \"jpm\", \"jpx\", \"mj2\", \"aif\", \"qcp\", \"odt\", \"ods\", \"odp\", \"xml\", \"mobi\", \"heic\", \"cur\", \"ktx\", \"ape\", \"wv\", \"dcm\", \"ics\", \"glb\", \"pcap\", \"dsf\", \"lnk\", \"alias\", \"voc\", \"ac3\", \"m4v\", \"m4p\", \"m4b\", \"f4v\", \"f4p\", \"f4b\", \"f4a\", \"mie\", \"asf\", \"ogm\", \"ogx\", \"mpc\", \"arrow\", \"shp\", \"aac\", \"mp1\", \"it\", \"s3m\", \"xm\", \"ai\", \"skp\", \"avif\", \"eps\", \"lzh\", \"pgp\", \"asar\", \"stl\", \"chm\", \"3mf\", \"zst\", \"jxl\", \"vcf\"],\n mimeTypes: [\"image/jpeg\", \"image/png\", \"image/gif\", \"image/webp\", \"image/flif\", \"image/x-xcf\", \"image/x-canon-cr2\", \"image/x-canon-cr3\", \"image/tiff\", \"image/bmp\", \"image/vnd.ms-photo\", \"image/vnd.adobe.photoshop\", \"application/x-indesign\", \"application/epub+zip\", \"application/x-xpinstall\", \"application/vnd.oasis.opendocument.text\", \"application/vnd.oasis.opendocument.spreadsheet\", \"application/vnd.oasis.opendocument.presentation\", \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\", \"application/vnd.openxmlformats-officedocument.presentationml.presentation\", \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\", \"application/zip\", \"application/x-tar\", \"application/x-rar-compressed\", \"application/gzip\", \"application/x-bzip2\", \"application/x-7z-compressed\", \"application/x-apple-diskimage\", \"application/x-apache-arrow\", \"video/mp4\", \"audio/midi\", \"video/x-matroska\", \"video/webm\", \"video/quicktime\", \"video/vnd.avi\", \"audio/vnd.wave\", \"audio/qcelp\", \"audio/x-ms-asf\", \"video/x-ms-asf\", \"application/vnd.ms-asf\", \"video/mpeg\", \"video/3gpp\", \"audio/mpeg\", \"audio/mp4\", \"audio/opus\", \"video/ogg\", \"audio/ogg\", \"application/ogg\", \"audio/x-flac\", \"audio/ape\", \"audio/wavpack\", \"audio/amr\", \"application/pdf\", \"application/x-msdownload\", \"application/x-shockwave-flash\", \"application/rtf\", \"application/wasm\", \"font/woff\", \"font/woff2\", \"application/vnd.ms-fontobject\", \"font/ttf\", \"font/otf\", \"image/x-icon\", \"video/x-flv\", \"application/postscript\", \"application/eps\", \"application/x-xz\", \"application/x-sqlite3\", \"application/x-nintendo-nes-rom\", \"application/x-google-chrome-extension\", \"application/vnd.ms-cab-compressed\", \"application/x-deb\", \"application/x-unix-archive\", \"application/x-rpm\", \"application/x-compress\", \"application/x-lzip\", \"application/x-cfb\", \"application/x-mie\", \"application/mxf\", \"video/mp2t\", \"application/x-blender\", \"image/bpg\", \"image/jp2\", \"image/jpx\", \"image/jpm\", \"image/mj2\", \"audio/aiff\", \"application/xml\", \"application/x-mobipocket-ebook\", \"image/heif\", \"image/heif-sequence\", \"image/heic\", \"image/heic-sequence\", \"image/icns\", \"image/ktx\", \"application/dicom\", \"audio/x-musepack\", \"text/calendar\", \"text/vcard\", \"model/gltf-binary\", \"application/vnd.tcpdump.pcap\", \"audio/x-dsf\", \"application/x.ms.shortcut\", \"application/x.apple.alias\", \"audio/x-voc\", \"audio/vnd.dolby.dd-raw\", \"audio/x-m4a\", \"image/apng\", \"image/x-olympus-orf\", \"image/x-sony-arw\", \"image/x-adobe-dng\", \"image/x-nikon-nef\", \"image/x-panasonic-rw2\", \"image/x-fujifilm-raf\", \"video/x-m4v\", \"video/3gpp2\", \"application/x-esri-shape\", \"audio/aac\", \"audio/x-it\", \"audio/x-s3m\", \"audio/x-xm\", \"video/MP1S\", \"video/MP2P\", \"application/vnd.sketchup.skp\", \"image/avif\", \"application/x-lzh-compressed\", \"application/pgp-encrypted\", \"application/x-asar\", \"model/stl\", \"application/vnd.ms-htmlhelp\", \"model/3mf\", \"image/jxl\", \"application/zstd\"]\n };\n}, function (t, e, r) {\n function n(t) {\n return function (t) {\n if (Array.isArray(t)) return i(t);\n }(t) || function (t) {\n if (\"undefined\" != typeof Symbol && null != t[Symbol.iterator] || null != t[\"@@iterator\"]) return Array.from(t);\n }(t) || function (t, e) {\n if (!t) return;\n if (\"string\" == typeof t) return i(t, e);\n var r = Object.prototype.toString.call(t).slice(8, -1);\n \"Object\" === r && t.constructor && (r = t.constructor.name);\n if (\"Map\" === r || \"Set\" === r) return Array.from(t);\n if (\"Arguments\" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return i(t, e);\n }(t) || function () {\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 }();\n }\n function i(t, e) {\n (null == e || e > t.length) && (e = t.length);\n for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r];\n return n;\n }\n t.exports = function (t) {\n function e(t) {\n var r,\n n,\n o,\n a = null;\n function s() {\n for (var t = arguments.length, n = new Array(t), i = 0; i < t; i++) n[i] = arguments[i];\n if (s.enabled) {\n var o = s,\n a = Number(new Date()),\n c = a - (r || a);\n o.diff = c, o.prev = r, o.curr = a, r = a, n[0] = e.coerce(n[0]), \"string\" != typeof n[0] && n.unshift(\"%O\");\n var u = 0;\n n[0] = n[0].replace(/%([a-zA-Z%])/g, function (t, r) {\n if (\"%%\" === t) return \"%\";\n u++;\n var i = e.formatters[r];\n if (\"function\" == typeof i) {\n var a = n[u];\n t = i.call(o, a), n.splice(u, 1), u--;\n }\n return t;\n }), e.formatArgs.call(o, n);\n var p = o.log || e.log;\n p.apply(o, n);\n }\n }\n return s.namespace = t, s.useColors = e.useColors(), s.color = e.selectColor(t), s.extend = i, s.destroy = e.destroy, Object.defineProperty(s, \"enabled\", {\n enumerable: !0,\n configurable: !1,\n get: function () {\n return null !== a ? a : (n !== e.namespaces && (n = e.namespaces, o = e.enabled(t)), o);\n },\n set: function (t) {\n a = t;\n }\n }), \"function\" == typeof e.init && e.init(s), s;\n }\n function i(t, r) {\n var n = e(this.namespace + (void 0 === r ? \":\" : r) + t);\n return n.log = this.log, n;\n }\n function o(t) {\n return t.toString().substring(2, t.toString().length - 2).replace(/\\.\\*\\?$/, \"*\");\n }\n return e.debug = e, e.default = e, e.coerce = function (t) {\n if (t instanceof Error) return t.stack || t.message;\n return t;\n }, e.disable = function () {\n var t = [].concat(n(e.names.map(o)), n(e.skips.map(o).map(function (t) {\n return \"-\" + t;\n }))).join(\",\");\n return e.enable(\"\"), t;\n }, e.enable = function (t) {\n var r;\n e.save(t), e.namespaces = t, e.names = [], e.skips = [];\n var n = (\"string\" == typeof t ? t : \"\").split(/[\\s,]+/),\n i = n.length;\n for (r = 0; r < i; r++) n[r] && (\"-\" === (t = n[r].replace(/\\*/g, \".*?\"))[0] ? e.skips.push(new RegExp(\"^\" + t.slice(1) + \"$\")) : e.names.push(new RegExp(\"^\" + t + \"$\")));\n }, e.enabled = function (t) {\n if (\"*\" === t[t.length - 1]) return !0;\n var r, n;\n for (r = 0, n = e.skips.length; r < n; r++) if (e.skips[r].test(t)) return !1;\n for (r = 0, n = e.names.length; r < n; r++) if (e.names[r].test(t)) return !0;\n return !1;\n }, e.humanize = r(54), e.destroy = function () {\n console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\");\n }, Object.keys(t).forEach(function (r) {\n e[r] = t[r];\n }), e.names = [], e.skips = [], e.formatters = {}, e.selectColor = function (t) {\n for (var r = 0, n = 0; n < t.length; n++) r = (r << 5) - r + t.charCodeAt(n), r |= 0;\n return e.colors[Math.abs(r) % e.colors.length];\n }, e.enable(e.load()), e;\n };\n}, function (t, e) {\n function r(t) {\n return (r = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n var n = 1e3,\n i = 6e4,\n o = 60 * i,\n a = 24 * o;\n function s(t, e, r, n) {\n var i = e >= 1.5 * r;\n return Math.round(t / r) + \" \" + n + (i ? \"s\" : \"\");\n }\n t.exports = function (t, e) {\n e = e || {};\n var c = r(t);\n if (\"string\" === c && t.length > 0) return function (t) {\n if ((t = String(t)).length > 100) return;\n var e = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);\n if (!e) return;\n var r = parseFloat(e[1]);\n switch ((e[2] || \"ms\").toLowerCase()) {\n case \"years\":\n case \"year\":\n case \"yrs\":\n case \"yr\":\n case \"y\":\n return 315576e5 * r;\n case \"weeks\":\n case \"week\":\n case \"w\":\n return 6048e5 * r;\n case \"days\":\n case \"day\":\n case \"d\":\n return r * a;\n case \"hours\":\n case \"hour\":\n case \"hrs\":\n case \"hr\":\n case \"h\":\n return r * o;\n case \"minutes\":\n case \"minute\":\n case \"mins\":\n case \"min\":\n case \"m\":\n return r * i;\n case \"seconds\":\n case \"second\":\n case \"secs\":\n case \"sec\":\n case \"s\":\n return r * n;\n case \"milliseconds\":\n case \"millisecond\":\n case \"msecs\":\n case \"msec\":\n case \"ms\":\n return r;\n default:\n return;\n }\n }(t);\n if (\"number\" === c && isFinite(t)) return e.long ? function (t) {\n var e = Math.abs(t);\n if (e >= a) return s(t, e, a, \"day\");\n if (e >= o) return s(t, e, o, \"hour\");\n if (e >= i) return s(t, e, i, \"minute\");\n if (e >= n) return s(t, e, n, \"second\");\n return t + \" ms\";\n }(t) : function (t) {\n var e = Math.abs(t);\n if (e >= a) return Math.round(t / a) + \"d\";\n if (e >= o) return Math.round(t / o) + \"h\";\n if (e >= i) return Math.round(t / i) + \"m\";\n if (e >= n) return Math.round(t / n) + \"s\";\n return t + \"ms\";\n }(t);\n throw new Error(\"val is not a non-empty string or a valid number. val=\" + JSON.stringify(t));\n };\n}, function (t, e, r) {\n \"use strict\";\n\n r.r(e), r.d(e, \"XhrAdapter\", function () {\n return l;\n });\n var n = r(0),\n i = r(3),\n o = r.n(i),\n a = r(4),\n s = r(5),\n c = r(2),\n u = r(9),\n p = o()(\"fs:request:xhr\"),\n l = function () {\n function t() {}\n return t.prototype.request = function (t) {\n var e = this;\n void 0 === t.filestackHeaders && (t.filestackHeaders = !0), (t = Object(u.d)(t)).headers = t.headers || {};\n var r = t.data,\n i = t.headers;\n a.e(r) && delete i[\"Content-Type\"];\n var o = new XMLHttpRequest();\n if (t.blobResponse && (o.responseType = \"blob\"), t.auth) {\n if (!t.auth.username || 0 === t.auth.username.length || !t.auth.password || 0 === t.auth.password.length) return Promise.reject(new c.a(\"Basic auth: username and password are required \".concat(t.auth), t));\n i.Authorization = \"Basic \" + btoa(unescape(encodeURIComponent(\"\".concat(t.auth.username, \":\").concat(t.auth.password)))), p(\"Set request authorization to %s\", t.auth.username + t.auth.password);\n }\n var l = t.url.trim();\n return /^http(s)?:\\/\\//.test(l) || (l = \"https://\".concat(l)), l = Object(u.a)(l, t.params), p(\"Starting request to %s with options %O\", l, t), o.open(t.method.toUpperCase(), l, !0), o.timeout = t.timeout, new Promise(function (a, f) {\n var d;\n if (t.cancelToken && (d = function (e) {\n return o && (o.abort(), o = null), p(\"Request canceled by user %s, config: %O\", e, t), f(new c.a(\"Request aborted. Reason: \".concat(e), t, null, c.b.ABORTED));\n }, t.cancelToken.once(\"cancel\", d)), o.onreadystatechange = function () {\n return Object(n.b)(e, void 0, void 0, function () {\n var e, r, i;\n return Object(n.d)(this, function (n) {\n switch (n.label) {\n case 0:\n return o && 4 === o.readyState && (0 !== o.status || o.responseURL) ? (e = Object(u.b)(o.getAllResponseHeaders()), r = o.response, i = {\n data: r,\n status: o.status,\n statusText: o.statusText,\n headers: e,\n config: t\n }, o = null, [4, Object(u.c)(i)]) : [2];\n case 1:\n return 500 <= (i = n.sent()).status && i.status <= 599 ? (p(\"Server error(5xx) - %O\", i), [2, f(new c.a(\"Server error \".concat(l), t, i, c.b.SERVER))]) : 400 <= i.status && i.status <= 499 ? (p(\"Request error(4xx) - %O\", i), [2, f(new c.a(\"Request error \".concat(l), t, i, c.b.REQUEST))]) : (t.cancelToken && (t.cancelToken.removeListener(\"cancel\", d), d = null), [2, a(i)]);\n }\n });\n });\n }, o.onabort = function () {\n o && (o = null, f(new c.a(\"Request aborted\", t, null, c.b.ABORTED)));\n }, o.onerror = function (e) {\n o = null, p(\"Request error! %O\", e), f(new c.a(\"Network Error\", t, null, c.b.NETWORK));\n }, o.ontimeout = function () {\n o = null, p(\"Request timed out. %O\", t), f(new c.a(\"Request timeout\", t, null, c.b.TIMEOUT));\n }, \"setRequestHeader\" in o && i && Object.keys(i).length) for (var m in i) void 0 !== i[m] && (p(\"Set request header %s to %s\", m, i[m]), o.setRequestHeader(m, i[m]));\n \"function\" == typeof t.onProgress && [s.a.POST, s.a.PUT].indexOf(t.method) > -1 && (o.upload ? (p(\"Bind to upload progress event\"), o.upload.addEventListener(\"progress\", t.onProgress)) : (p(\"Bind to progress event\"), o.addEventListener(\"progress\", t.onProgress))), void 0 === r && (r = null), o.send(r);\n });\n }, t;\n }();\n}, function (t, e, r) {\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, o(n.key), n);\n }\n }\n function o(t) {\n var e = function (t, e) {\n if (\"object\" != n(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var i = r.call(t, e || \"default\");\n if (\"object\" != n(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == n(e) ? e : String(e);\n }\n var a = r(57).buildOptions,\n s = r(58),\n c = r(62).prettify,\n u = r(26),\n p = function () {\n function t(e) {\n !function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, t), this.externalEntities = {}, this.options = a(e);\n }\n var e, r, n;\n return e = t, (r = [{\n key: \"parse\",\n value: function (t, e) {\n if (\"string\" == typeof t) ;else {\n if (!t.toString) throw new Error(\"XML data is accepted in String or Bytes[] form.\");\n t = t.toString();\n }\n if (e) {\n !0 === e && (e = {});\n var r = u.validate(t, e);\n if (!0 !== r) throw Error(\"\".concat(r.err.msg, \":\").concat(r.err.line, \":\").concat(r.err.col));\n }\n var n = new s(this.options);\n n.addExternalEntities(this.externalEntities);\n var i = n.parseXml(t);\n return this.options.preserveOrder || void 0 === i ? i : c(i, this.options);\n }\n }, {\n key: \"addEntity\",\n value: function (t, e) {\n if (-1 !== e.indexOf(\"&\")) throw new Error(\"Entity value can't have '&'\");\n if (-1 !== t.indexOf(\"&\") || -1 !== t.indexOf(\";\")) throw new Error(\"An entity must be set without '&' and ';'. Eg. use '#xD' for '
'\");\n if (\"&\" === e) throw new Error(\"An entity with value '&' is not permitted\");\n this.externalEntities[t] = e;\n }\n }]) && i(e.prototype, r), n && i(e, n), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), t;\n }();\n t.exports = p;\n}, function (t, e) {\n var r = {\n preserveOrder: !1,\n attributeNamePrefix: \"@_\",\n attributesGroupName: !1,\n textNodeName: \"#text\",\n ignoreAttributes: !0,\n removeNSPrefix: !1,\n allowBooleanAttributes: !1,\n parseTagValue: !0,\n parseAttributeValue: !1,\n trimValues: !0,\n cdataPropName: !1,\n numberParseOptions: {\n hex: !0,\n leadingZeros: !0,\n eNotation: !0\n },\n tagValueProcessor: function (t, e) {\n return e;\n },\n attributeValueProcessor: function (t, e) {\n return e;\n },\n stopNodes: [],\n alwaysCreateTextNode: !1,\n isArray: function () {\n return !1;\n },\n commentPropName: !1,\n unpairedTags: [],\n processEntities: !0,\n htmlEntities: !1,\n ignoreDeclaration: !1,\n ignorePiTags: !1,\n transformTagName: !1,\n transformAttributeName: !1,\n updateTag: function (t, e, r) {\n return t;\n }\n };\n e.buildOptions = function (t) {\n return Object.assign({}, r, t);\n }, e.defaultOptions = r;\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t, e, r) {\n return (e = s(e)) in t ? Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : t[e] = r, t;\n }\n function i(t) {\n return (i = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function o(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, s(n.key), n);\n }\n }\n function a(t, e, r) {\n return e && o(t.prototype, e), r && o(t, r), Object.defineProperty(t, \"prototype\", {\n writable: !1\n }), t;\n }\n function s(t) {\n var e = function (t, e) {\n if (\"object\" != i(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var n = r.call(t, e || \"default\");\n if (\"object\" != i(n)) return n;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == i(e) ? e : String(e);\n }\n var c = r(27),\n u = r(59),\n p = r(60),\n l = r(61),\n f = (\"<((!\\\\[CDATA\\\\[([\\\\s\\\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\\\/)(NAME)\\\\s*>))([^<]*)\".replace(/NAME/g, c.nameRegexp), a(function t(e) {\n !function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, t), this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {\n apos: {\n regex: /&(apos|#39|#x27);/g,\n val: \"'\"\n },\n gt: {\n regex: /&(gt|#62|#x3E);/g,\n val: \">\"\n },\n lt: {\n regex: /&(lt|#60|#x3C);/g,\n val: \"<\"\n },\n quot: {\n regex: /&(quot|#34|#x22);/g,\n val: '\"'\n }\n }, this.ampEntity = {\n regex: /&(amp|#38|#x26);/g,\n val: \"&\"\n }, this.htmlEntities = {\n space: {\n regex: /&(nbsp|#160);/g,\n val: \" \"\n },\n cent: {\n regex: /&(cent|#162);/g,\n val: \"¢\"\n },\n pound: {\n regex: /&(pound|#163);/g,\n val: \"£\"\n },\n yen: {\n regex: /&(yen|#165);/g,\n val: \"¥\"\n },\n euro: {\n regex: /&(euro|#8364);/g,\n val: \"€\"\n },\n copyright: {\n regex: /&(copy|#169);/g,\n val: \"©\"\n },\n reg: {\n regex: /&(reg|#174);/g,\n val: \"®\"\n },\n inr: {\n regex: /&(inr|#8377);/g,\n val: \"₹\"\n }\n }, this.addExternalEntities = d, this.parseXml = g, this.parseTextData = m, this.resolveNameSpace = h, this.buildAttributesMap = v, this.isItStopNode = k, this.replaceEntitiesValue = x, this.readStopNodeData = O, this.saveTextToParentTag = w, this.addChild = b;\n }));\n function d(t) {\n for (var e = Object.keys(t), r = 0; r < e.length; r++) {\n var n = e[r];\n this.lastEntities[n] = {\n regex: new RegExp(\"&\" + n + \";\", \"g\"),\n val: t[n]\n };\n }\n }\n function m(t, e, r, n, o, a, s) {\n if (void 0 !== t && (this.options.trimValues && !n && (t = t.trim()), t.length > 0)) {\n s || (t = this.replaceEntitiesValue(t));\n var c = this.options.tagValueProcessor(e, t, r, o, a);\n return null == c ? t : i(c) !== i(t) || c !== t ? c : this.options.trimValues || t.trim() === t ? j(t, this.options.parseTagValue, this.options.numberParseOptions) : t;\n }\n }\n function h(t) {\n if (this.options.removeNSPrefix) {\n var e = t.split(\":\"),\n r = \"/\" === t.charAt(0) ? \"/\" : \"\";\n if (\"xmlns\" === e[0]) return \"\";\n 2 === e.length && (t = r + e[1]);\n }\n return t;\n }\n var y = new RegExp(\"([^\\\\s=]+)\\\\s*(=\\\\s*(['\\\"])([\\\\s\\\\S]*?)\\\\3)?\", \"gm\");\n function v(t, e, r) {\n if (!this.options.ignoreAttributes && \"string\" == typeof t) {\n for (var n = c.getAllMatches(t, y), o = n.length, a = {}, s = 0; s < o; s++) {\n var u = this.resolveNameSpace(n[s][1]),\n p = n[s][4],\n l = this.options.attributeNamePrefix + u;\n if (u.length) if (this.options.transformAttributeName && (l = this.options.transformAttributeName(l)), \"__proto__\" === l && (l = \"#__proto__\"), void 0 !== p) {\n this.options.trimValues && (p = p.trim()), p = this.replaceEntitiesValue(p);\n var f = this.options.attributeValueProcessor(u, p, e);\n null == f ? a[l] = p : i(f) !== i(p) || f !== p ? a[l] = f : a[l] = j(p, this.options.parseAttributeValue, this.options.numberParseOptions);\n } else this.options.allowBooleanAttributes && (a[l] = !0);\n }\n if (!Object.keys(a).length) return;\n if (this.options.attributesGroupName) {\n var d = {};\n return d[this.options.attributesGroupName] = a, d;\n }\n return a;\n }\n }\n var g = function (t) {\n t = t.replace(/\\r\\n?/g, \"\\n\");\n for (var e = new u(\"!xml\"), r = e, i = \"\", o = \"\", a = 0; a < t.length; a++) {\n if (\"<\" === t[a]) {\n if (\"/\" === t[a + 1]) {\n var s = F(t, \">\", a, \"Closing Tag is not closed.\"),\n c = t.substring(a + 2, s).trim();\n if (this.options.removeNSPrefix) {\n var l = c.indexOf(\":\");\n -1 !== l && (c = c.substr(l + 1));\n }\n this.options.transformTagName && (c = this.options.transformTagName(c)), r && (i = this.saveTextToParentTag(i, r, o));\n var f = o.substring(o.lastIndexOf(\".\") + 1);\n if (c && -1 !== this.options.unpairedTags.indexOf(c)) throw new Error(\"Unpaired tag can not be used as closing tag: \".concat(c, \">\"));\n var d = 0;\n f && -1 !== this.options.unpairedTags.indexOf(f) ? (d = o.lastIndexOf(\".\", o.lastIndexOf(\".\") - 1), this.tagsNodeStack.pop()) : d = o.lastIndexOf(\".\"), o = o.substring(0, d), r = this.tagsNodeStack.pop(), i = \"\", a = s;\n } else if (\"?\" === t[a + 1]) {\n var m = E(t, a, !1, \"?>\");\n if (!m) throw new Error(\"Pi Tag is not closed.\");\n if (i = this.saveTextToParentTag(i, r, o), this.options.ignoreDeclaration && \"?xml\" === m.tagName || this.options.ignorePiTags) ;else {\n var h = new u(m.tagName);\n h.add(this.options.textNodeName, \"\"), m.tagName !== m.tagExp && m.attrExpPresent && (h[\":@\"] = this.buildAttributesMap(m.tagExp, o, m.tagName)), this.addChild(r, h, o);\n }\n a = m.closeIndex + 1;\n } else if (\"!--\" === t.substr(a + 1, 3)) {\n var y = F(t, \"--\\x3e\", a + 4, \"Comment is not closed.\");\n if (this.options.commentPropName) {\n var v = t.substring(a + 4, y - 2);\n i = this.saveTextToParentTag(i, r, o), r.add(this.options.commentPropName, [n({}, this.options.textNodeName, v)]);\n }\n a = y;\n } else if (\"!D\" === t.substr(a + 1, 2)) {\n var g = p(t, a);\n this.docTypeEntities = g.entities, a = g.i;\n } else if (\"![\" === t.substr(a + 1, 2)) {\n var b = F(t, \"]]>\", a, \"CDATA is not closed.\") - 2,\n x = t.substring(a + 9, b);\n if (i = this.saveTextToParentTag(i, r, o), this.options.cdataPropName) r.add(this.options.cdataPropName, [n({}, this.options.textNodeName, x)]);else {\n var w = this.parseTextData(x, r.tagname, o, !0, !1, !0);\n null == w && (w = \"\"), r.add(this.options.textNodeName, w);\n }\n a = b + 2;\n } else {\n var k = E(t, a, this.options.removeNSPrefix),\n _ = k.tagName,\n O = k.tagExp,\n j = k.attrExpPresent,\n S = k.closeIndex;\n this.options.transformTagName && (_ = this.options.transformTagName(_)), r && i && \"!xml\" !== r.tagname && (i = this.saveTextToParentTag(i, r, o, !1));\n var T = r;\n if (T && -1 !== this.options.unpairedTags.indexOf(T.tagname) && (r = this.tagsNodeStack.pop(), o = o.substring(0, o.lastIndexOf(\".\"))), _ !== e.tagname && (o += o ? \".\" + _ : _), this.isItStopNode(this.options.stopNodes, o, _)) {\n var P = \"\";\n if (O.length > 0 && O.lastIndexOf(\"/\") === O.length - 1) a = k.closeIndex;else if (-1 !== this.options.unpairedTags.indexOf(_)) a = k.closeIndex;else {\n var A = this.readStopNodeData(t, _, S + 1);\n if (!A) throw new Error(\"Unexpected end of \".concat(_));\n a = A.i, P = A.tagContent;\n }\n var C = new u(_);\n _ !== O && j && (C[\":@\"] = this.buildAttributesMap(O, o, _)), P && (P = this.parseTextData(P, _, o, !0, j, !0, !0)), o = o.substr(0, o.lastIndexOf(\".\")), C.add(this.options.textNodeName, P), this.addChild(r, C, o);\n } else {\n if (O.length > 0 && O.lastIndexOf(\"/\") === O.length - 1) {\n O = \"/\" === _[_.length - 1] ? _ = _.substr(0, _.length - 1) : O.substr(0, O.length - 1), this.options.transformTagName && (_ = this.options.transformTagName(_));\n var D = new u(_);\n _ !== O && j && (D[\":@\"] = this.buildAttributesMap(O, o, _)), this.addChild(r, D, o), o = o.substr(0, o.lastIndexOf(\".\"));\n } else {\n var I = new u(_);\n this.tagsNodeStack.push(r), _ !== O && j && (I[\":@\"] = this.buildAttributesMap(O, o, _)), this.addChild(r, I, o), r = I;\n }\n i = \"\", a = S;\n }\n }\n } else i += t[a];\n }\n return e.child;\n };\n function b(t, e, r) {\n var n = this.options.updateTag(e.tagname, r, e[\":@\"]);\n !1 === n || (\"string\" == typeof n ? (e.tagname = n, t.addChild(e)) : t.addChild(e));\n }\n var x = function (t) {\n if (this.options.processEntities) {\n for (var e in this.docTypeEntities) {\n var r = this.docTypeEntities[e];\n t = t.replace(r.regx, r.val);\n }\n for (var n in this.lastEntities) {\n var i = this.lastEntities[n];\n t = t.replace(i.regex, i.val);\n }\n if (this.options.htmlEntities) for (var o in this.htmlEntities) {\n var a = this.htmlEntities[o];\n t = t.replace(a.regex, a.val);\n }\n t = t.replace(this.ampEntity.regex, this.ampEntity.val);\n }\n return t;\n };\n function w(t, e, r, n) {\n return t && (void 0 === n && (n = 0 === Object.keys(e.child).length), void 0 !== (t = this.parseTextData(t, e.tagname, r, !1, !!e[\":@\"] && 0 !== Object.keys(e[\":@\"]).length, n)) && \"\" !== t && e.add(this.options.textNodeName, t), t = \"\"), t;\n }\n function k(t, e, r) {\n var n = \"*.\" + r;\n for (var i in t) {\n var o = t[i];\n if (n === o || e === o) return !0;\n }\n return !1;\n }\n function _(t, e) {\n for (var r, n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : \">\", i = \"\", o = e; o < t.length; o++) {\n var a = t[o];\n if (r) a === r && (r = \"\");else if ('\"' === a || \"'\" === a) r = a;else if (a === n[0]) {\n if (!n[1]) return {\n data: i,\n index: o\n };\n if (t[o + 1] === n[1]) return {\n data: i,\n index: o\n };\n } else \"\\t\" === a && (a = \" \");\n i += a;\n }\n }\n function F(t, e, r, n) {\n var i = t.indexOf(e, r);\n if (-1 === i) throw new Error(n);\n return i + e.length - 1;\n }\n function E(t, e, r) {\n var n = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : \">\",\n i = _(t, e + 1, n);\n if (i) {\n var o = i.data,\n a = i.index,\n s = o.search(/\\s/),\n c = o,\n u = !0;\n if (-1 !== s && (c = o.substr(0, s).replace(/\\s\\s*$/, \"\"), o = o.substr(s + 1)), r) {\n var p = c.indexOf(\":\");\n -1 !== p && (u = (c = c.substr(p + 1)) !== i.data.substr(p + 1));\n }\n return {\n tagName: c,\n tagExp: o,\n closeIndex: a,\n attrExpPresent: u\n };\n }\n }\n function O(t, e, r) {\n for (var n = r, i = 1; r < t.length; r++) if (\"<\" === t[r]) if (\"/\" === t[r + 1]) {\n var o = F(t, \">\", r, \"\".concat(e, \" is not closed\"));\n if (t.substring(r + 2, o).trim() === e && 0 === --i) return {\n tagContent: t.substring(n, r),\n i: o\n };\n r = o;\n } else if (\"?\" === t[r + 1]) {\n r = F(t, \"?>\", r + 1, \"StopNode is not closed.\");\n } else if (\"!--\" === t.substr(r + 1, 3)) {\n r = F(t, \"--\\x3e\", r + 3, \"StopNode is not closed.\");\n } else if (\"![\" === t.substr(r + 1, 2)) {\n r = F(t, \"]]>\", r, \"StopNode is not closed.\") - 2;\n } else {\n var a = E(t, r, \">\");\n if (a) (a && a.tagName) === e && \"/\" !== a.tagExp[a.tagExp.length - 1] && i++, r = a.closeIndex;\n }\n }\n function j(t, e, r) {\n if (e && \"string\" == typeof t) {\n var n = t.trim();\n return \"true\" === n || \"false\" !== n && l(t, r);\n }\n return c.isExist(t) ? t : \"\";\n }\n t.exports = f;\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i(t, e, r) {\n return (e = a(e)) in t ? Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : t[e] = r, t;\n }\n function o(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, a(n.key), n);\n }\n }\n function a(t) {\n var e = function (t, e) {\n if (\"object\" != n(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var i = r.call(t, e || \"default\");\n if (\"object\" != n(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == n(e) ? e : String(e);\n }\n var s = function () {\n function t(e) {\n !function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, t), this.tagname = e, this.child = [], this[\":@\"] = {};\n }\n var e, r, n;\n return e = t, (r = [{\n key: \"add\",\n value: function (t, e) {\n \"__proto__\" === t && (t = \"#__proto__\"), this.child.push(i({}, t, e));\n }\n }, {\n key: \"addChild\",\n value: function (t) {\n \"__proto__\" === t.tagname && (t.tagname = \"#__proto__\"), t[\":@\"] && Object.keys(t[\":@\"]).length > 0 ? this.child.push(i(i({}, t.tagname, t.child), \":@\", t[\":@\"])) : this.child.push(i({}, t.tagname, t.child));\n }\n }]) && o(e.prototype, r), n && o(e, n), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), t;\n }();\n t.exports = s;\n}, function (t, e) {\n function r(t, e) {\n return function (t) {\n if (Array.isArray(t)) return t;\n }(t) || function (t, e) {\n var r = null == t ? null : \"undefined\" != typeof Symbol && t[Symbol.iterator] || t[\"@@iterator\"];\n if (null != r) {\n var n,\n i,\n o,\n a,\n s = [],\n c = !0,\n u = !1;\n try {\n if (o = (r = r.call(t)).next, 0 === e) {\n if (Object(r) !== r) return;\n c = !1;\n } else for (; !(c = (n = o.call(r)).done) && (s.push(n.value), s.length !== e); c = !0);\n } catch (t) {\n u = !0, i = t;\n } finally {\n try {\n if (!c && null != r.return && (a = r.return(), Object(a) !== a)) return;\n } finally {\n if (u) throw i;\n }\n }\n return s;\n }\n }(t, e) || function (t, e) {\n if (!t) return;\n if (\"string\" == typeof t) return n(t, e);\n var r = Object.prototype.toString.call(t).slice(8, -1);\n \"Object\" === r && t.constructor && (r = t.constructor.name);\n if (\"Map\" === r || \"Set\" === r) return Array.from(t);\n if (\"Arguments\" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return n(t, e);\n }(t, e) || function () {\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 }();\n }\n function n(t, e) {\n (null == e || e > t.length) && (e = t.length);\n for (var r = 0, n = new Array(e); r < e; r++) n[r] = t[r];\n return n;\n }\n function i(t, e) {\n for (var r = \"\"; e < t.length && \"'\" !== t[e] && '\"' !== t[e]; e++) r += t[e];\n if (-1 !== (r = r.trim()).indexOf(\" \")) throw new Error(\"External entites are not supported\");\n for (var n = t[e++], i = \"\"; e < t.length && t[e] !== n; e++) i += t[e];\n return [r, i, e];\n }\n function o(t, e) {\n return \"!\" === t[e + 1] && \"-\" === t[e + 2] && \"-\" === t[e + 3];\n }\n function a(t, e) {\n return \"!\" === t[e + 1] && \"E\" === t[e + 2] && \"N\" === t[e + 3] && \"T\" === t[e + 4] && \"I\" === t[e + 5] && \"T\" === t[e + 6] && \"Y\" === t[e + 7];\n }\n function s(t, e) {\n return \"!\" === t[e + 1] && \"E\" === t[e + 2] && \"L\" === t[e + 3] && \"E\" === t[e + 4] && \"M\" === t[e + 5] && \"E\" === t[e + 6] && \"N\" === t[e + 7] && \"T\" === t[e + 8];\n }\n function c(t, e) {\n return \"!\" === t[e + 1] && \"A\" === t[e + 2] && \"T\" === t[e + 3] && \"T\" === t[e + 4] && \"L\" === t[e + 5] && \"I\" === t[e + 6] && \"S\" === t[e + 7] && \"T\" === t[e + 8];\n }\n function u(t, e) {\n return \"!\" === t[e + 1] && \"N\" === t[e + 2] && \"O\" === t[e + 3] && \"T\" === t[e + 4] && \"A\" === t[e + 5] && \"T\" === t[e + 6] && \"I\" === t[e + 7] && \"O\" === t[e + 8] && \"N\" === t[e + 9];\n }\n function p(t) {\n for (var e = 0; e < \"!?\\\\/[]$%{}^&*()<>|+\".length; e++) {\n var r = \"!?\\\\/[]$%{}^&*()<>|+\"[e];\n if (-1 !== t.indexOf(r)) throw new Error(\"Invalid character \".concat(r, \" in entity name\"));\n }\n return t;\n }\n t.exports = function (t, e) {\n var n = {};\n if (\"O\" !== t[e + 3] || \"C\" !== t[e + 4] || \"T\" !== t[e + 5] || \"Y\" !== t[e + 6] || \"P\" !== t[e + 7] || \"E\" !== t[e + 8]) throw new Error(\"Invalid Tag instead of DOCTYPE\");\n e += 9;\n for (var l = 1, f = !1, d = !1; e < t.length; e++) if (\"<\" !== t[e] || d) {\n if (\">\" === t[e]) {\n if (d ? \"-\" === t[e - 1] && \"-\" === t[e - 2] && (d = !1, l--) : l--, 0 === l) break;\n } else \"[\" === t[e] ? f = !0 : t[e];\n } else {\n if (f && a(t, e)) {\n var m = r(i(t, (e += 7) + 1), 3);\n entityName = m[0], val = m[1], e = m[2], -1 === val.indexOf(\"&\") && (n[p(entityName)] = {\n regx: RegExp(\"&\".concat(entityName, \";\"), \"g\"),\n val: val\n });\n } else if (f && s(t, e)) e += 8;else if (f && c(t, e)) e += 8;else if (f && u(t, e)) e += 9;else {\n if (!o) throw new Error(\"Invalid DOCTYPE\");\n d = !0;\n }\n l++, \"\";\n }\n if (0 !== l) throw new Error(\"Unclosed DOCTYPE\");\n return {\n entities: n,\n i: e\n };\n };\n}, function (t, e) {\n var r = /^[-+]?0x[a-fA-F0-9]+$/,\n n = /^([\\-\\+])?(0*)(\\.[0-9]+([eE]\\-?[0-9]+)?|[0-9]+(\\.[0-9]+([eE]\\-?[0-9]+)?)?)$/;\n !Number.parseInt && window.parseInt && (Number.parseInt = window.parseInt), !Number.parseFloat && window.parseFloat && (Number.parseFloat = window.parseFloat);\n var i = {\n hex: !0,\n leadingZeros: !0,\n decimalPoint: \".\",\n eNotation: !0\n };\n function o(t) {\n return t && -1 !== t.indexOf(\".\") ? (\".\" === (t = t.replace(/0+$/, \"\")) ? t = \"0\" : \".\" === t[0] ? t = \"0\" + t : \".\" === t[t.length - 1] && (t = t.substr(0, t.length - 1)), t) : t;\n }\n t.exports = function (t) {\n var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};\n if (e = Object.assign({}, i, e), !t || \"string\" != typeof t) return t;\n var a = t.trim();\n if (void 0 !== e.skipLike && e.skipLike.test(a)) return t;\n if (e.hex && r.test(a)) return Number.parseInt(a, 16);\n var s = n.exec(a);\n if (s) {\n var c = s[1],\n u = s[2],\n p = o(s[3]),\n l = s[4] || s[6];\n if (!e.leadingZeros && u.length > 0 && c && \".\" !== a[2]) return t;\n if (!e.leadingZeros && u.length > 0 && !c && \".\" !== a[1]) return t;\n var f = Number(a),\n d = \"\" + f;\n return -1 !== d.search(/[eE]/) || l ? e.eNotation ? f : t : -1 !== a.indexOf(\".\") ? \"0\" === d && \"\" === p || d === p || c && d === \"-\" + p ? f : t : u ? p === d || c + p === d ? f : t : a === d || a === c + d ? f : t;\n }\n return t;\n };\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n for (var e = Object.keys(t), r = 0; r < e.length; r++) {\n var n = e[r];\n if (\":@\" !== n) return n;\n }\n }\n function i(t, e, r, n) {\n if (e) for (var i = Object.keys(e), o = i.length, a = 0; a < o; a++) {\n var s = i[a];\n n.isArray(s, r + \".\" + s, !0, !0) ? t[s] = [e[s]] : t[s] = e[s];\n }\n }\n function o(t, e) {\n var r = e.textNodeName,\n n = Object.keys(t).length;\n return 0 === n || !(1 !== n || !t[r] && \"boolean\" != typeof t[r] && 0 !== t[r]);\n }\n e.prettify = function (t, e) {\n return function t(e, r, a) {\n for (var s, c = {}, u = 0; u < e.length; u++) {\n var p = e[u],\n l = n(p),\n f = \"\";\n if (f = void 0 === a ? l : a + \".\" + l, l === r.textNodeName) void 0 === s ? s = p[l] : s += \"\" + p[l];else {\n if (void 0 === l) continue;\n if (p[l]) {\n var d = t(p[l], r, f),\n m = o(d, r);\n p[\":@\"] ? i(d, p[\":@\"], f, r) : 1 !== Object.keys(d).length || void 0 === d[r.textNodeName] || r.alwaysCreateTextNode ? 0 === Object.keys(d).length && (r.alwaysCreateTextNode ? d[r.textNodeName] = \"\" : d = \"\") : d = d[r.textNodeName], void 0 !== c[l] && c.hasOwnProperty(l) ? (Array.isArray(c[l]) || (c[l] = [c[l]]), c[l].push(d)) : r.isArray(l, f, m) ? c[l] = [d] : c[l] = d;\n }\n }\n }\n \"string\" == typeof s ? s.length > 0 && (c[r.textNodeName] = s) : void 0 !== s && (c[r.textNodeName] = s);\n return c;\n }(t, e);\n };\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i(t, e, r) {\n var i;\n return i = function (t, e) {\n if (\"object\" != n(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var i = r.call(t, e || \"default\");\n if (\"object\" != n(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(e, \"string\"), (e = \"symbol\" == n(i) ? i : String(i)) in t ? Object.defineProperty(t, e, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : t[e] = r, t;\n }\n var o = r(64),\n a = {\n attributeNamePrefix: \"@_\",\n attributesGroupName: !1,\n textNodeName: \"#text\",\n ignoreAttributes: !0,\n cdataPropName: !1,\n format: !1,\n indentBy: \" \",\n suppressEmptyNode: !1,\n suppressUnpairedNode: !0,\n suppressBooleanAttributes: !0,\n tagValueProcessor: function (t, e) {\n return e;\n },\n attributeValueProcessor: function (t, e) {\n return e;\n },\n preserveOrder: !1,\n commentPropName: !1,\n unpairedTags: [],\n entities: [{\n regex: new RegExp(\"&\", \"g\"),\n val: \"&\"\n }, {\n regex: new RegExp(\">\", \"g\"),\n val: \">\"\n }, {\n regex: new RegExp(\"<\", \"g\"),\n val: \"<\"\n }, {\n regex: new RegExp(\"'\", \"g\"),\n val: \"'\"\n }, {\n regex: new RegExp('\"', \"g\"),\n val: \""\"\n }],\n processEntities: !0,\n stopNodes: [],\n oneListGroup: !1\n };\n function s(t) {\n this.options = Object.assign({}, a, t), this.options.ignoreAttributes || this.options.attributesGroupName ? this.isAttribute = function () {\n return !1;\n } : (this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = p), this.processTextOrObjNode = c, this.options.format ? (this.indentate = u, this.tagEndChar = \">\\n\", this.newLine = \"\\n\") : (this.indentate = function () {\n return \"\";\n }, this.tagEndChar = \">\", this.newLine = \"\");\n }\n function c(t, e, r) {\n var n = this.j2x(t, r + 1);\n return void 0 !== t[this.options.textNodeName] && 1 === Object.keys(t).length ? this.buildTextValNode(t[this.options.textNodeName], e, n.attrStr, r) : this.buildObjectNode(n.val, e, n.attrStr, r);\n }\n function u(t) {\n return this.options.indentBy.repeat(t);\n }\n function p(t) {\n return !!t.startsWith(this.options.attributeNamePrefix) && t.substr(this.attrPrefixLen);\n }\n s.prototype.build = function (t) {\n return this.options.preserveOrder ? o(t, this.options) : (Array.isArray(t) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (t = i({}, this.options.arrayNodeName, t)), this.j2x(t, 0).val);\n }, s.prototype.j2x = function (t, e) {\n var r = \"\",\n i = \"\";\n for (var o in t) if (void 0 === t[o]) ;else if (null === t[o]) \"?\" === o[0] ? i += this.indentate(e) + \"<\" + o + \"?\" + this.tagEndChar : i += this.indentate(e) + \"<\" + o + \"/\" + this.tagEndChar;else if (t[o] instanceof Date) i += this.buildTextValNode(t[o], o, \"\", e);else if (\"object\" !== n(t[o])) {\n var a = this.isAttribute(o);\n if (a) r += this.buildAttrPairStr(a, \"\" + t[o]);else if (o === this.options.textNodeName) {\n var s = this.options.tagValueProcessor(o, \"\" + t[o]);\n i += this.replaceEntitiesValue(s);\n } else i += this.buildTextValNode(t[o], o, \"\", e);\n } else if (Array.isArray(t[o])) {\n for (var c = t[o].length, u = \"\", p = 0; p < c; p++) {\n var l = t[o][p];\n void 0 === l || (null === l ? \"?\" === o[0] ? i += this.indentate(e) + \"<\" + o + \"?\" + this.tagEndChar : i += this.indentate(e) + \"<\" + o + \"/\" + this.tagEndChar : \"object\" === n(l) ? this.options.oneListGroup ? u += this.j2x(l, e + 1).val : u += this.processTextOrObjNode(l, o, e) : u += this.buildTextValNode(l, o, \"\", e));\n }\n this.options.oneListGroup && (u = this.buildObjectNode(u, o, \"\", e)), i += u;\n } else if (this.options.attributesGroupName && o === this.options.attributesGroupName) for (var f = Object.keys(t[o]), d = f.length, m = 0; m < d; m++) r += this.buildAttrPairStr(f[m], \"\" + t[o][f[m]]);else i += this.processTextOrObjNode(t[o], o, e);\n return {\n attrStr: r,\n val: i\n };\n }, s.prototype.buildAttrPairStr = function (t, e) {\n return e = this.options.attributeValueProcessor(t, \"\" + e), e = this.replaceEntitiesValue(e), this.options.suppressBooleanAttributes && \"true\" === e ? \" \" + t : \" \" + t + '=\"' + e + '\"';\n }, s.prototype.buildObjectNode = function (t, e, r, n) {\n if (\"\" === t) return \"?\" === e[0] ? this.indentate(n) + \"<\" + e + r + \"?\" + this.tagEndChar : this.indentate(n) + \"<\" + e + r + this.closeTag(e) + this.tagEndChar;\n var i = \"\" + e + this.tagEndChar,\n o = \"\";\n return \"?\" === e[0] && (o = \"?\", i = \"\"), r && -1 === t.indexOf(\"<\") ? this.indentate(n) + \"<\" + e + r + o + \">\" + t + i : !1 !== this.options.commentPropName && e === this.options.commentPropName && 0 === o.length ? this.indentate(n) + \"\\x3c!--\".concat(t, \"--\\x3e\") + this.newLine : this.indentate(n) + \"<\" + e + r + o + this.tagEndChar + t + this.indentate(n) + i;\n }, s.prototype.closeTag = function (t) {\n var e = \"\";\n return -1 !== this.options.unpairedTags.indexOf(t) ? this.options.suppressUnpairedNode || (e = \"/\") : e = this.options.suppressEmptyNode ? \"/\" : \">\".concat(t), e;\n }, s.prototype.buildTextValNode = function (t, e, r, n) {\n if (!1 !== this.options.cdataPropName && e === this.options.cdataPropName) return this.indentate(n) + \"\") + this.newLine;\n if (!1 !== this.options.commentPropName && e === this.options.commentPropName) return this.indentate(n) + \"\\x3c!--\".concat(t, \"--\\x3e\") + this.newLine;\n if (\"?\" === e[0]) return this.indentate(n) + \"<\" + e + r + \"?\" + this.tagEndChar;\n var i = this.options.tagValueProcessor(e, t);\n return \"\" === (i = this.replaceEntitiesValue(i)) ? this.indentate(n) + \"<\" + e + r + this.closeTag(e) + this.tagEndChar : this.indentate(n) + \"<\" + e + r + \">\" + i + \"\" + e + this.tagEndChar;\n }, s.prototype.replaceEntitiesValue = function (t) {\n if (t && t.length > 0 && this.options.processEntities) for (var e = 0; e < this.options.entities.length; e++) {\n var r = this.options.entities[e];\n t = t.replace(r.regex, r.val);\n }\n return t;\n }, t.exports = s;\n}, function (t, e) {\n function r(t) {\n for (var e = Object.keys(t), r = 0; r < e.length; r++) {\n var n = e[r];\n if (\":@\" !== n) return n;\n }\n }\n function n(t, e) {\n var r = \"\";\n if (t && !e.ignoreAttributes) for (var n in t) {\n var i = e.attributeValueProcessor(n, t[n]);\n !0 === (i = o(i, e)) && e.suppressBooleanAttributes ? r += \" \".concat(n.substr(e.attributeNamePrefix.length)) : r += \" \".concat(n.substr(e.attributeNamePrefix.length), '=\"').concat(i, '\"');\n }\n return r;\n }\n function i(t, e) {\n var r = (t = t.substr(0, t.length - e.textNodeName.length - 1)).substr(t.lastIndexOf(\".\") + 1);\n for (var n in e.stopNodes) if (e.stopNodes[n] === t || e.stopNodes[n] === \"*.\" + r) return !0;\n return !1;\n }\n function o(t, e) {\n if (t && t.length > 0 && e.processEntities) for (var r = 0; r < e.entities.length; r++) {\n var n = e.entities[r];\n t = t.replace(n.regex, n.val);\n }\n return t;\n }\n t.exports = function (t, e) {\n var a = \"\";\n return e.format && e.indentBy.length > 0 && (a = \"\\n\"), function t(e, a, s, c) {\n for (var u = \"\", p = !1, l = 0; l < e.length; l++) {\n var f = e[l],\n d = r(f),\n m = \"\";\n if (m = 0 === s.length ? d : \"\".concat(s, \".\").concat(d), d !== a.textNodeName) {\n if (d !== a.cdataPropName) {\n if (d !== a.commentPropName) {\n if (\"?\" !== d[0]) {\n var h = c;\n \"\" !== h && (h += a.indentBy);\n var y = n(f[\":@\"], a),\n v = c + \"<\".concat(d).concat(y),\n g = t(f[d], a, m, h);\n -1 !== a.unpairedTags.indexOf(d) ? a.suppressUnpairedNode ? u += v + \">\" : u += v + \"/>\" : g && 0 !== g.length || !a.suppressEmptyNode ? g && g.endsWith(\">\") ? u += v + \">\".concat(g).concat(c, \"\").concat(d, \">\") : (u += v + \">\", g && \"\" !== c && (g.includes(\"/>\") || g.includes(\"\")) ? u += c + a.indentBy + g + c : u += g, u += \"\".concat(d, \">\")) : u += v + \"/>\", p = !0;\n } else {\n var b = n(f[\":@\"], a),\n x = \"?xml\" === d ? \"\" : c,\n w = f[d][0][a.textNodeName];\n w = 0 !== w.length ? \" \" + w : \"\", u += x + \"<\".concat(d).concat(w).concat(b, \"?>\"), p = !0;\n }\n } else u += c + \"\\x3c!--\".concat(f[d][0][a.textNodeName], \"--\\x3e\"), p = !0;\n } else p && (u += c), u += \"\"), p = !1;\n } else {\n var k = f[d];\n i(m, a) || (k = o(k = a.tagValueProcessor(d, k), a)), p && (u += c), u += k, p = !1;\n }\n }\n return u;\n }(t, e, \"\", a);\n };\n}, function (t, e, r) {\n \"use strict\";\n\n var n = Object.prototype.hasOwnProperty,\n i = \"~\";\n function o() {}\n function a(t, e, r) {\n this.fn = t, this.context = e, this.once = r || !1;\n }\n function s(t, e, r, n, o) {\n if (\"function\" != typeof r) throw new TypeError(\"The listener must be a function\");\n var s = new a(r, n || t, o),\n c = i ? i + e : e;\n return t._events[c] ? t._events[c].fn ? t._events[c] = [t._events[c], s] : t._events[c].push(s) : (t._events[c] = s, t._eventsCount++), t;\n }\n function c(t, e) {\n 0 == --t._eventsCount ? t._events = new o() : delete t._events[e];\n }\n function u() {\n this._events = new o(), this._eventsCount = 0;\n }\n Object.create && (o.prototype = Object.create(null), new o().__proto__ || (i = !1)), u.prototype.eventNames = function () {\n var t,\n e,\n r = [];\n if (0 === this._eventsCount) return r;\n for (e in t = this._events) n.call(t, e) && r.push(i ? e.slice(1) : e);\n return Object.getOwnPropertySymbols ? r.concat(Object.getOwnPropertySymbols(t)) : r;\n }, u.prototype.listeners = function (t) {\n var e = i ? i + t : t,\n r = this._events[e];\n if (!r) return [];\n if (r.fn) return [r.fn];\n for (var n = 0, o = r.length, a = new Array(o); n < o; n++) a[n] = r[n].fn;\n return a;\n }, u.prototype.listenerCount = function (t) {\n var e = i ? i + t : t,\n r = this._events[e];\n return r ? r.fn ? 1 : r.length : 0;\n }, u.prototype.emit = function (t, e, r, n, o, a) {\n var s = i ? i + t : t;\n if (!this._events[s]) return !1;\n var c,\n u,\n p = this._events[s],\n l = arguments.length;\n if (p.fn) {\n switch (p.once && this.removeListener(t, p.fn, void 0, !0), l) {\n case 1:\n return p.fn.call(p.context), !0;\n case 2:\n return p.fn.call(p.context, e), !0;\n case 3:\n return p.fn.call(p.context, e, r), !0;\n case 4:\n return p.fn.call(p.context, e, r, n), !0;\n case 5:\n return p.fn.call(p.context, e, r, n, o), !0;\n case 6:\n return p.fn.call(p.context, e, r, n, o, a), !0;\n }\n for (u = 1, c = new Array(l - 1); u < l; u++) c[u - 1] = arguments[u];\n p.fn.apply(p.context, c);\n } else {\n var f,\n d = p.length;\n for (u = 0; u < d; u++) switch (p[u].once && this.removeListener(t, p[u].fn, void 0, !0), l) {\n case 1:\n p[u].fn.call(p[u].context);\n break;\n case 2:\n p[u].fn.call(p[u].context, e);\n break;\n case 3:\n p[u].fn.call(p[u].context, e, r);\n break;\n case 4:\n p[u].fn.call(p[u].context, e, r, n);\n break;\n default:\n if (!c) for (f = 1, c = new Array(l - 1); f < l; f++) c[f - 1] = arguments[f];\n p[u].fn.apply(p[u].context, c);\n }\n }\n return !0;\n }, u.prototype.on = function (t, e, r) {\n return s(this, t, e, r, !1);\n }, u.prototype.once = function (t, e, r) {\n return s(this, t, e, r, !0);\n }, u.prototype.removeListener = function (t, e, r, n) {\n var o = i ? i + t : t;\n if (!this._events[o]) return this;\n if (!e) return c(this, o), this;\n var a = this._events[o];\n if (a.fn) a.fn !== e || n && !a.once || r && a.context !== r || c(this, o);else {\n for (var s = 0, u = [], p = a.length; s < p; s++) (a[s].fn !== e || n && !a[s].once || r && a[s].context !== r) && u.push(a[s]);\n u.length ? this._events[o] = 1 === u.length ? u[0] : u : c(this, o);\n }\n return this;\n }, u.prototype.removeAllListeners = function (t) {\n var e;\n return t ? (e = i ? i + t : t, this._events[e] && c(this, e)) : (this._events = new o(), this._eventsCount = 0), this;\n }, u.prototype.off = u.prototype.removeListener, u.prototype.addListener = u.prototype.on, u.prefixed = i, u.EventEmitter = u, t.exports = u;\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, o(n.key), n);\n }\n }\n function o(t) {\n var e = function (t, e) {\n if (\"object\" != n(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var i = r.call(t, e || \"default\");\n if (\"object\" != n(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == n(e) ? e : String(e);\n }\n function a(t, e) {\n if (e && (\"object\" === n(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return function (t) {\n if (void 0 === t) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return t;\n }(t);\n }\n function s(t) {\n var e = \"function\" == typeof Map ? new Map() : void 0;\n return (s = function (t) {\n if (null === t || !function (t) {\n try {\n return -1 !== Function.toString.call(t).indexOf(\"[native code]\");\n } catch (e) {\n return \"function\" == typeof t;\n }\n }(t)) return t;\n if (\"function\" != typeof t) throw new TypeError(\"Super expression must either be null or a function\");\n if (void 0 !== e) {\n if (e.has(t)) return e.get(t);\n e.set(t, r);\n }\n function r() {\n return c(t, arguments, l(this).constructor);\n }\n return r.prototype = Object.create(t.prototype, {\n constructor: {\n value: r,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n }), p(r, t);\n })(t);\n }\n function c(t, e, r) {\n return (c = u() ? Reflect.construct.bind() : function (t, e, r) {\n var n = [null];\n n.push.apply(n, e);\n var i = new (Function.bind.apply(t, n))();\n return r && p(i, r.prototype), i;\n }).apply(null, arguments);\n }\n function u() {\n if (\"undefined\" == typeof Reflect || !Reflect.construct) return !1;\n if (Reflect.construct.sham) return !1;\n if (\"function\" == typeof Proxy) return !0;\n try {\n return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0;\n } catch (t) {\n return !1;\n }\n }\n function p(t, e) {\n return (p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n })(t, e);\n }\n function l(t) {\n return (l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n })(t);\n }\n var f = r(67),\n d = function (t) {\n !function (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 && p(t, e);\n }(f, t);\n var e,\n r,\n n,\n o,\n s,\n c = (e = f, r = u(), function () {\n var t,\n n = l(e);\n if (r) {\n var i = l(this).constructor;\n t = Reflect.construct(n, arguments, i);\n } else t = n.apply(this, arguments);\n return a(this, t);\n });\n function f(t) {\n var e;\n return function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, f), (e = c.call(this, t)).name = \"TimeoutError\", e;\n }\n return n = f, o && i(n.prototype, o), s && i(n, s), Object.defineProperty(n, \"prototype\", {\n writable: !1\n }), n;\n }(s(Error)),\n m = function (t, e, r) {\n return new Promise(function (n, i) {\n if (\"number\" != typeof e || e < 0) throw new TypeError(\"Expected `milliseconds` to be a positive number\");\n if (e !== 1 / 0) {\n var o = setTimeout(function () {\n if (\"function\" != typeof r) {\n var o = \"string\" == typeof r ? r : \"Promise timed out after \".concat(e, \" milliseconds\"),\n a = r instanceof Error ? r : new d(o);\n \"function\" == typeof t.cancel && t.cancel(), i(a);\n } else try {\n n(r());\n } catch (t) {\n i(t);\n }\n }, e);\n f(t.then(n, i), function () {\n clearTimeout(o);\n });\n } else n(t);\n });\n };\n t.exports = m, t.exports.default = m, t.exports.TimeoutError = d;\n}, function (t, e, r) {\n \"use strict\";\n\n t.exports = function (t, e) {\n return e = e || function () {}, t.then(function (t) {\n return new Promise(function (t) {\n t(e());\n }).then(function () {\n return t;\n });\n }, function (t) {\n return new Promise(function (t) {\n t(e());\n }).then(function () {\n throw t;\n });\n });\n };\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n function i(t, e) {\n for (var r = 0; r < e.length; r++) {\n var n = e[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(t, o(n.key), n);\n }\n }\n function o(t) {\n var e = function (t, e) {\n if (\"object\" != n(t) || !t) return t;\n var r = t[Symbol.toPrimitive];\n if (void 0 !== r) {\n var i = r.call(t, e || \"default\");\n if (\"object\" != n(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === e ? String : Number)(t);\n }(t, \"string\");\n return \"symbol\" == n(e) ? e : String(e);\n }\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n });\n var a = r(69),\n s = function () {\n function t() {\n !function (t, e) {\n if (!(t instanceof e)) throw new TypeError(\"Cannot call a class as a function\");\n }(this, t), this._queue = [];\n }\n var e, r, n;\n return e = t, (r = [{\n key: \"enqueue\",\n value: function (t, e) {\n var r = {\n priority: (e = Object.assign({\n priority: 0\n }, e)).priority,\n run: t\n };\n if (this.size && this._queue[this.size - 1].priority >= e.priority) this._queue.push(r);else {\n var n = a.default(this._queue, r, function (t, e) {\n return e.priority - t.priority;\n });\n this._queue.splice(n, 0, r);\n }\n }\n }, {\n key: \"dequeue\",\n value: function () {\n var t = this._queue.shift();\n return null == t ? void 0 : t.run;\n }\n }, {\n key: \"filter\",\n value: function (t) {\n return this._queue.filter(function (e) {\n return e.priority === t.priority;\n }).map(function (t) {\n return t.run;\n });\n }\n }, {\n key: \"size\",\n get: function () {\n return this._queue.length;\n }\n }]) && i(e.prototype, r), n && i(e, n), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), t;\n }();\n e.default = s;\n}, function (t, e, r) {\n \"use strict\";\n\n Object.defineProperty(e, \"__esModule\", {\n value: !0\n }), e.default = function (t, e, r) {\n for (var n = 0, i = t.length; i > 0;) {\n var o = i / 2 | 0,\n a = n + o;\n r(t[a], e) <= 0 ? (n = ++a, i -= o + 1) : i = o;\n }\n return n;\n };\n}, function (t, e, r) {\n \"use strict\";\n\n function n(t) {\n return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n r.r(e), r.d(e, \"Filestack\", function () {\n return $e;\n }), r.d(e, \"init\", function () {\n return Ue;\n }), r.d(e, \"version\", function () {\n return qe;\n }), r.d(e, \"EAlignOptions\", function () {\n return Ht;\n }), r.d(e, \"EAlignFacesOptions\", function () {\n return Wt;\n }), r.d(e, \"EFitOptions\", function () {\n return Yt;\n }), r.d(e, \"EBlurMode\", function () {\n return Qt;\n }), r.d(e, \"EShapeType\", function () {\n return Kt;\n }), r.d(e, \"ENoiseType\", function () {\n return Jt;\n }), r.d(e, \"EStyleType\", function () {\n return Xt;\n }), r.d(e, \"EColorspaceType\", function () {\n return te;\n }), r.d(e, \"ECropfacesType\", function () {\n return ee;\n }), r.d(e, \"ESmartCropMode\", function () {\n return re;\n }), r.d(e, \"EImageWatermarkPosition\", function () {\n return ne;\n }), r.d(e, \"EAudioTypes\", function () {\n return ie;\n }), r.d(e, \"EVideoTypes\", function () {\n return oe;\n }), r.d(e, \"EUrlscreenshotAgent\", function () {\n return ae;\n }), r.d(e, \"EUrlscreenshotMode\", function () {\n return se;\n }), r.d(e, \"EUrlscreenshotOrientation\", function () {\n return ce;\n }), r.d(e, \"EVideoLocations\", function () {\n return ue;\n }), r.d(e, \"EVideoAccess\", function () {\n return pe;\n }), r.d(e, \"EVideoAccessMode\", function () {\n return le;\n }), r.d(e, \"transform\", function () {\n return fe;\n }), r.d(e, \"Align\", function () {\n return ut;\n }), r.d(e, \"FitOptions\", function () {\n return pt;\n }), r.d(e, \"BlurMode\", function () {\n return lt;\n }), r.d(e, \"ShapeType\", function () {\n return ft;\n }), r.d(e, \"NoiseType\", function () {\n return dt;\n }), r.d(e, \"StyleType\", function () {\n return mt;\n }), r.d(e, \"ColorspaceType\", function () {\n return ht;\n }), r.d(e, \"CropfacesType\", function () {\n return yt;\n }), r.d(e, \"ImageWatermarkPosition\", function () {\n return vt;\n }), r.d(e, \"SmartCropMode\", function () {\n return gt;\n }), r.d(e, \"AudioTypes\", function () {\n return bt;\n }), r.d(e, \"VideoTypes\", function () {\n return xt;\n }), r.d(e, \"URLScreenshotAgent\", function () {\n return wt;\n }), r.d(e, \"URLScreenshotMode\", function () {\n return kt;\n }), r.d(e, \"URLScreenshotOrientation\", function () {\n return _t;\n }), r.d(e, \"Locations\", function () {\n return Ft;\n }), r.d(e, \"VideoAccess\", function () {\n return Et;\n }), r.d(e, \"VideoAccessMode\", function () {\n return Ot;\n }), r.d(e, \"EnhancePreset\", function () {\n return jt;\n }), r.d(e, \"Filelink\", function () {\n return Pt;\n }), r.d(e, \"FilestackErrorType\", function () {\n return K;\n }), r.d(e, \"FsHttpMethod\", function () {\n return zt.a;\n }), r.d(e, \"FsRequest\", function () {\n return Ut;\n }), r.d(e, \"FsRequestErrorCode\", function () {\n return qt.b;\n }), r.d(e, \"FsRequestError\", function () {\n return qt.a;\n }), r.d(e, \"FsCancelToken\", function () {\n return Vt;\n }), r.d(e, \"resolveCdnUrl\", function () {\n return ot.resolveCdnUrl;\n }), r.d(e, \"resolveHost\", function () {\n return ot.resolveHost;\n }), r.d(e, \"removeEmpty\", function () {\n return ot.removeEmpty;\n }), r.d(e, \"uniqueTime\", function () {\n return ot.uniqueTime;\n }), r.d(e, \"uniqueId\", function () {\n return ot.uniqueId;\n }), r.d(e, \"extensionToMime\", function () {\n return ot.extensionToMime;\n }), r.d(e, \"sanitizeName\", function () {\n return ot.sanitizeName;\n }), r.d(e, \"filterObject\", function () {\n return ot.filterObject;\n }), r.d(e, \"cleanUpCallbacks\", function () {\n return ot.cleanUpCallbacks;\n }), r.d(e, \"md5\", function () {\n return ot.md5;\n }), r.d(e, \"b64\", function () {\n return ot.b64;\n }), r.d(e, \"getVersion\", function () {\n return ot.getVersion;\n }), r.d(e, \"isMobile\", function () {\n return ot.isMobile;\n }), r.d(e, \"isFacebook\", function () {\n return ot.isFacebook;\n }), r.d(e, \"TransformSchema\", function () {\n return tt;\n }), r.d(e, \"getSecurity\", function () {\n return c;\n }), r.d(e, \"validateWebhookSignature\", function () {\n return u;\n }), r.d(e, \"Client\", function () {\n return Re;\n }), r.d(e, \"FilestackError\", function () {\n return X;\n }), r.d(e, \"PickerDisplayMode\", function () {\n return ze;\n }), r.d(e, \"getMimetype\", function () {\n return ot.getMimetype;\n }), r.d(e, \"PrefetchEvents\", function () {\n return Ae;\n });\n var i = function (t) {\n var e = {};\n function r(n) {\n if (e[n]) return e[n].exports;\n var i = e[n] = {\n i: n,\n l: !1,\n exports: {}\n };\n return t[n].call(i.exports, i, i.exports, r), i.l = !0, i.exports;\n }\n return r.m = t, r.c = e, r.d = function (t, e, n) {\n r.o(t, e) || Object.defineProperty(t, e, {\n enumerable: !0,\n get: n\n });\n }, r.r = function (t) {\n \"undefined\" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {\n value: \"Module\"\n }), Object.defineProperty(t, \"__esModule\", {\n value: !0\n });\n }, r.t = function (t, e) {\n if (1 & e && (t = r(t)), 8 & e) return t;\n if (4 & e && \"object\" == n(t) && t && t.__esModule) return t;\n var i = Object.create(null);\n if (r.r(i), Object.defineProperty(i, \"default\", {\n enumerable: !0,\n value: t\n }), 2 & e && \"string\" != typeof t) for (var o in t) r.d(i, o, function (e) {\n return t[e];\n }.bind(null, o));\n return i;\n }, r.n = function (t) {\n var e = t && t.__esModule ? function () {\n return t.default;\n } : function () {\n return t;\n };\n return r.d(e, \"a\", e), e;\n }, r.o = function (t, e) {\n return Object.prototype.hasOwnProperty.call(t, e);\n }, r.p = \"\", r(r.s = 0);\n }([function (t, e, r) {\n r.r(e), r.d(e, \"loadModules\", function () {\n return c;\n }), r.d(e, \"loadModule\", function () {\n return u;\n }), r.d(e, \"registerModule\", function () {\n return p;\n }), r.d(e, \"loadCss\", function () {\n return l;\n }), r.d(e, \"FILESTACK_MODULES\", function () {\n return n;\n });\n var n,\n i = {},\n o = function () {\n var t,\n e = (t = \"undefined\" == typeof window ? i : window).filestackInternals;\n return e || (e = {\n modules: {}\n }, t.filestackInternals = e), e.modules || (e.modules = {}), e;\n }(),\n a = o && o.modules,\n s = function (t, e, r) {\n t.detachEvent ? t.detachEvent(\"onreadystatechange\", e) : t.removeEventListener(r, e, !1);\n },\n c = function (t) {\n return Promise.all(t.map(function (t) {\n var e = t.id,\n r = t.url;\n return u(e, r);\n })).then(function (e) {\n var r = {};\n return e.forEach(function (e, n) {\n var i = t[n];\n r[i.id] = e;\n }), r;\n });\n },\n u = function (t, e) {\n if (\"undefined\" == typeof window) return Promise.reject(new Error(\"Load module is working only on browser env\"));\n if (!t) throw new Error(\"Module id is required\");\n var r = a[t = \"fs-loader-\" + t];\n return r || (a[t] = {}, r = a[t]), r.instance ? Promise.resolve(r.instance) : r.promise ? r.promise : r.promise = new Promise(function (r, n) {\n var i = function e(i) {\n if (\"load\" === i.type || /^(complete|loaded)$/.test((i.currentTarget || i.srcElement).readyState)) {\n var o = i.currentTarget || i.srcElement;\n s(o, e, \"load\"), s(o, n, \"error\"), setTimeout(function () {\n return r(a[t] ? a[t].instance : void 0);\n }, 10);\n }\n },\n o = document.createElement(\"script\");\n o.id = t, !o.attachEvent || o.attachEvent.toString && o.attachEvent.toString().indexOf(\"[native code\") < 0 ? (o.addEventListener(\"load\", i, !1), o.addEventListener(\"onerror\", n, !1)) : o.attachEvent(\"onreadystatechange\", i), o.setAttribute(\"crossorigin\", \"anonymous\"), o.setAttribute(\"charset\", \"utf-8\"), o.setAttribute(\"async\", \"true\"), o.src = e, document.body.appendChild(o);\n });\n },\n p = function (t, e, r) {\n if (\"undefined\" != typeof window) {\n if (!t) throw new Error(\"Module id is required\");\n if (!a) throw new Error(\"Loader is not initialized\");\n a[t = \"fs-loader-\" + t] && (a[t] = {\n instance: e,\n metadata: r\n });\n }\n },\n l = function (t) {\n return null !== document.querySelector('link[href=\"'.concat(t, '\"]')) ? Promise.resolve() : new Promise(function (e) {\n var r = document.getElementsByTagName(\"head\")[0],\n n = document.createElement(\"link\");\n n.rel = \"stylesheet\", n.href = t, n.addEventListener(\"load\", function t() {\n e(), n.removeEventListener(\"load\", t);\n }), r.appendChild(n);\n });\n };\n !function (t) {\n t.FILESTACK_SDK = \"filestack-sdk\", t.TRANSFORMS_UI = \"transforms-ui\", t.PICKER = \"picker\";\n }(n || (n = {}));\n }]),\n o = (i.loadModules, i.loadModule),\n a = i.registerModule,\n s = (i.loadCss, i.FILESTACK_MODULES),\n c = function (t, e) {\n throw new Error(\"getSecurity is only supported in nodejs\");\n },\n u = function (t, e, r) {\n throw new Error(\"validateWebhookSignature is only supported in nodejs\");\n },\n p = r(0),\n l = r(7),\n f = r.n(l);\n function d(t, e) {\n var r = \"function\" == typeof Symbol && t[Symbol.iterator];\n if (!r) return t;\n var n,\n i,\n o = r.call(t),\n a = [];\n try {\n for (; (void 0 === e || e-- > 0) && !(n = o.next()).done;) a.push(n.value);\n } catch (t) {\n i = {\n error: t\n };\n } finally {\n try {\n n && !n.done && (r = o.return) && r.call(o);\n } finally {\n if (i) throw i.error;\n }\n }\n return a;\n }\n function m() {\n for (var t = [], e = 0; e < arguments.length; e++) t = t.concat(d(arguments[e]));\n return t;\n }\n var h = function () {\n return (h = Object.assign || function (t) {\n for (var e, r = 1, n = arguments.length; r < n; r++) for (var i in e = arguments[r]) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);\n return t;\n }).apply(this, arguments);\n };\n function y(t, e) {\n var r = \"function\" == typeof Symbol && t[Symbol.iterator];\n if (!r) return t;\n var n,\n i,\n o = r.call(t),\n a = [];\n try {\n for (; (void 0 === e || e-- > 0) && !(n = o.next()).done;) a.push(n.value);\n } catch (t) {\n i = {\n error: t\n };\n } finally {\n try {\n n && !n.done && (r = o.return) && r.call(o);\n } finally {\n if (i) throw i.error;\n }\n }\n return a;\n }\n function v() {\n for (var t = [], e = 0; e < arguments.length; e++) t = t.concat(y(arguments[e]));\n return t;\n }\n function g(t) {\n var e = \"function\" == typeof Symbol && Symbol.iterator,\n r = e && t[e],\n n = 0;\n if (r) return r.call(t);\n if (t && \"number\" == typeof t.length) return {\n next: function () {\n return t && n >= t.length && (t = void 0), {\n value: t && t[n++],\n done: !t\n };\n }\n };\n throw new TypeError(e ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n }\n function b(t, e) {\n var r = \"function\" == typeof Symbol && t[Symbol.iterator];\n if (!r) return t;\n var n,\n i,\n o = r.call(t),\n a = [];\n try {\n for (; (void 0 === e || e-- > 0) && !(n = o.next()).done;) a.push(n.value);\n } catch (t) {\n i = {\n error: t\n };\n } finally {\n try {\n n && !n.done && (r = o.return) && r.call(o);\n } finally {\n if (i) throw i.error;\n }\n }\n return a;\n }\n function x() {\n for (var t = [], e = 0; e < arguments.length; e++) t = t.concat(b(arguments[e]));\n return t;\n }\n var w = r(6);\n var k = Object.prototype.toString;\n function _(t, e) {\n return k.call(t) === \"[object \" + e + \"]\";\n }\n function F(t) {\n return _(t, \"Object\");\n }\n function E(t) {\n return Boolean(t && t.then && \"function\" == typeof t.then);\n }\n function O(t) {\n var e, r;\n if (F(t)) {\n var n = {};\n try {\n for (var i = g(Object.keys(t)), o = i.next(); !o.done; o = i.next()) {\n var a = o.value;\n void 0 !== t[a] && (n[a] = O(t[a]));\n }\n } catch (t) {\n e = {\n error: t\n };\n } finally {\n try {\n o && !o.done && (r = i.return) && r.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n return n;\n }\n return Array.isArray(t) ? t.map(O) : t;\n }\n function j() {\n var t = Object(w.a)(),\n e = t.crypto || t.msCrypto;\n if (void 0 !== e && e.getRandomValues) {\n var r = new Uint16Array(8);\n e.getRandomValues(r), r[3] = 4095 & r[3] | 16384, r[4] = 16383 & r[4] | 32768;\n var n = function (t) {\n for (var e = t.toString(16); e.length < 4;) e = \"0\" + e;\n return e;\n };\n return n(r[0]) + n(r[1]) + n(r[2]) + n(r[3]) + n(r[4]) + n(r[5]) + n(r[6]) + n(r[7]);\n }\n return \"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx\".replace(/[xy]/g, function (t) {\n var e = 16 * Math.random() | 0;\n return (\"x\" === t ? e : 3 & e | 8).toString(16);\n });\n }\n var S,\n T = r(72),\n P = \"undefined\" == typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__,\n A = Object(w.a)(),\n C = [\"debug\", \"info\", \"warn\", \"error\", \"log\", \"assert\"];\n function D(t) {\n var e = Object(w.a)();\n if (!(\"console\" in e)) return t();\n var r = e.console,\n n = {};\n C.forEach(function (t) {\n var i = r[t] && r[t].__sentry_original__;\n t in e.console && i && (n[t] = r[t], r[t] = i);\n });\n try {\n return t();\n } finally {\n Object.keys(n).forEach(function (t) {\n r[t] = n[t];\n });\n }\n }\n function I() {\n var t = !1,\n e = {\n enable: function () {\n t = !0;\n },\n disable: function () {\n t = !1;\n }\n };\n return P ? C.forEach(function (r) {\n e[r] = function () {\n for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];\n t && D(function () {\n var t;\n (t = A.console)[r].apply(t, x([\"Sentry Logger [\" + r + \"]:\"], e));\n });\n };\n }) : C.forEach(function (t) {\n e[t] = function () {};\n }), e;\n }\n S = P ? Object(w.b)(\"logger\", I) : I();\n var L = r(11),\n N = \"undefined\" == typeof __SENTRY_DEBUG__ || __SENTRY_DEBUG__;\n var z = function () {\n function t(t) {\n var e = this;\n this._state = 0, this._handlers = [], this._resolve = function (t) {\n e._setResult(1, t);\n }, this._reject = function (t) {\n e._setResult(2, t);\n }, this._setResult = function (t, r) {\n 0 === e._state && (E(r) ? r.then(e._resolve, e._reject) : (e._state = t, e._value = r, e._executeHandlers()));\n }, this._executeHandlers = function () {\n if (0 !== e._state) {\n var t = e._handlers.slice();\n e._handlers = [], t.forEach(function (t) {\n t[0] || (1 === e._state && t[1](e._value), 2 === e._state && t[2](e._value), t[0] = !0);\n });\n }\n };\n try {\n t(this._resolve, this._reject);\n } catch (t) {\n this._reject(t);\n }\n }\n return t.prototype.then = function (e, r) {\n var n = this;\n return new t(function (t, i) {\n n._handlers.push([!1, function (r) {\n if (e) try {\n t(e(r));\n } catch (t) {\n i(t);\n } else t(r);\n }, function (e) {\n if (r) try {\n t(r(e));\n } catch (t) {\n i(t);\n } else i(e);\n }]), n._executeHandlers();\n });\n }, t.prototype.catch = function (t) {\n return this.then(function (t) {\n return t;\n }, t);\n }, t.prototype.finally = function (e) {\n var r = this;\n return new t(function (t, n) {\n var i, o;\n return r.then(function (t) {\n o = !1, i = t, e && e();\n }, function (t) {\n o = !0, i = t, e && e();\n }).then(function () {\n o ? n(i) : t(i);\n });\n });\n }, t;\n }(),\n B = function () {\n function t() {\n this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {};\n }\n return t.clone = function (e) {\n var r = new t();\n return e && (r._breadcrumbs = v(e._breadcrumbs), r._tags = h({}, e._tags), r._extra = h({}, e._extra), r._contexts = h({}, e._contexts), r._user = e._user, r._level = e._level, r._span = e._span, r._session = e._session, r._transactionName = e._transactionName, r._fingerprint = e._fingerprint, r._eventProcessors = v(e._eventProcessors), r._requestSession = e._requestSession), r;\n }, t.prototype.addScopeListener = function (t) {\n this._scopeListeners.push(t);\n }, t.prototype.addEventProcessor = function (t) {\n return this._eventProcessors.push(t), this;\n }, t.prototype.setUser = function (t) {\n return this._user = t || {}, this._session && this._session.update({\n user: t\n }), this._notifyScopeListeners(), this;\n }, t.prototype.getUser = function () {\n return this._user;\n }, t.prototype.getRequestSession = function () {\n return this._requestSession;\n }, t.prototype.setRequestSession = function (t) {\n return this._requestSession = t, this;\n }, t.prototype.setTags = function (t) {\n return this._tags = h(h({}, this._tags), t), this._notifyScopeListeners(), this;\n }, t.prototype.setTag = function (t, e) {\n var r;\n return this._tags = h(h({}, this._tags), ((r = {})[t] = e, r)), this._notifyScopeListeners(), this;\n }, t.prototype.setExtras = function (t) {\n return this._extra = h(h({}, this._extra), t), this._notifyScopeListeners(), this;\n }, t.prototype.setExtra = function (t, e) {\n var r;\n return this._extra = h(h({}, this._extra), ((r = {})[t] = e, r)), this._notifyScopeListeners(), this;\n }, t.prototype.setFingerprint = function (t) {\n return this._fingerprint = t, this._notifyScopeListeners(), this;\n }, t.prototype.setLevel = function (t) {\n return this._level = t, this._notifyScopeListeners(), this;\n }, t.prototype.setTransactionName = function (t) {\n return this._transactionName = t, this._notifyScopeListeners(), this;\n }, t.prototype.setTransaction = function (t) {\n return this.setTransactionName(t);\n }, t.prototype.setContext = function (t, e) {\n var r;\n return null === e ? delete this._contexts[t] : this._contexts = h(h({}, this._contexts), ((r = {})[t] = e, r)), this._notifyScopeListeners(), this;\n }, t.prototype.setSpan = function (t) {\n return this._span = t, this._notifyScopeListeners(), this;\n }, t.prototype.getSpan = function () {\n return this._span;\n }, t.prototype.getTransaction = function () {\n var t = this.getSpan();\n return t && t.transaction;\n }, t.prototype.setSession = function (t) {\n return t ? this._session = t : delete this._session, this._notifyScopeListeners(), this;\n }, t.prototype.getSession = function () {\n return this._session;\n }, t.prototype.update = function (e) {\n if (!e) return this;\n if (\"function\" == typeof e) {\n var r = e(this);\n return r instanceof t ? r : this;\n }\n return e instanceof t ? (this._tags = h(h({}, this._tags), e._tags), this._extra = h(h({}, this._extra), e._extra), this._contexts = h(h({}, this._contexts), e._contexts), e._user && Object.keys(e._user).length && (this._user = e._user), e._level && (this._level = e._level), e._fingerprint && (this._fingerprint = e._fingerprint), e._requestSession && (this._requestSession = e._requestSession)) : F(e) && (e = e, this._tags = h(h({}, this._tags), e.tags), this._extra = h(h({}, this._extra), e.extra), this._contexts = h(h({}, this._contexts), e.contexts), e.user && (this._user = e.user), e.level && (this._level = e.level), e.fingerprint && (this._fingerprint = e.fingerprint), e.requestSession && (this._requestSession = e.requestSession)), this;\n }, t.prototype.clear = function () {\n return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._span = void 0, this._session = void 0, this._notifyScopeListeners(), this;\n }, t.prototype.addBreadcrumb = function (t, e) {\n var r = \"number\" == typeof e ? Math.min(e, 100) : 100;\n if (r <= 0) return this;\n var n = h({\n timestamp: Object(T.a)()\n }, t);\n return this._breadcrumbs = v(this._breadcrumbs, [n]).slice(-r), this._notifyScopeListeners(), this;\n }, t.prototype.clearBreadcrumbs = function () {\n return this._breadcrumbs = [], this._notifyScopeListeners(), this;\n }, t.prototype.applyToEvent = function (t, e) {\n if (this._extra && Object.keys(this._extra).length && (t.extra = h(h({}, this._extra), t.extra)), this._tags && Object.keys(this._tags).length && (t.tags = h(h({}, this._tags), t.tags)), this._user && Object.keys(this._user).length && (t.user = h(h({}, this._user), t.user)), this._contexts && Object.keys(this._contexts).length && (t.contexts = h(h({}, this._contexts), t.contexts)), this._level && (t.level = this._level), this._transactionName && (t.transaction = this._transactionName), this._span) {\n t.contexts = h({\n trace: this._span.getTraceContext()\n }, t.contexts);\n var r = this._span.transaction && this._span.transaction.name;\n r && (t.tags = h({\n transaction: r\n }, t.tags));\n }\n return this._applyFingerprint(t), t.breadcrumbs = v(t.breadcrumbs || [], this._breadcrumbs), t.breadcrumbs = t.breadcrumbs.length > 0 ? t.breadcrumbs : void 0, t.sdkProcessingMetadata = this._sdkProcessingMetadata, this._notifyEventProcessors(v(M(), this._eventProcessors), t, e);\n }, t.prototype.setSDKProcessingMetadata = function (t) {\n return this._sdkProcessingMetadata = h(h({}, this._sdkProcessingMetadata), t), this;\n }, t.prototype._notifyEventProcessors = function (t, e, r, n) {\n var i = this;\n return void 0 === n && (n = 0), new z(function (o, a) {\n var s = t[n];\n if (null === e || \"function\" != typeof s) o(e);else {\n var c = s(h({}, e), r);\n E(c) ? c.then(function (e) {\n return i._notifyEventProcessors(t, e, r, n + 1).then(o);\n }).then(null, a) : i._notifyEventProcessors(t, c, r, n + 1).then(o).then(null, a);\n }\n });\n }, t.prototype._notifyScopeListeners = function () {\n var t = this;\n this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach(function (e) {\n e(t);\n }), this._notifyingListeners = !1);\n }, t.prototype._applyFingerprint = function (t) {\n t.fingerprint = t.fingerprint ? Array.isArray(t.fingerprint) ? t.fingerprint : [t.fingerprint] : [], this._fingerprint && (t.fingerprint = t.fingerprint.concat(this._fingerprint)), t.fingerprint && !t.fingerprint.length && delete t.fingerprint;\n }, t;\n }();\n function M() {\n return Object(w.b)(\"globalEventProcessors\", function () {\n return [];\n });\n }\n var R = function () {\n function t(t) {\n this.errors = 0, this.sid = j(), this.duration = 0, this.status = \"ok\", this.init = !0, this.ignoreDuration = !1;\n var e = Object(T.b)();\n this.timestamp = e, this.started = e, t && this.update(t);\n }\n return t.prototype.update = function (t) {\n if (void 0 === t && (t = {}), t.user && (!this.ipAddress && t.user.ip_address && (this.ipAddress = t.user.ip_address), this.did || t.did || (this.did = t.user.id || t.user.email || t.user.username)), this.timestamp = t.timestamp || Object(T.b)(), t.ignoreDuration && (this.ignoreDuration = t.ignoreDuration), t.sid && (this.sid = 32 === t.sid.length ? t.sid : j()), void 0 !== t.init && (this.init = t.init), !this.did && t.did && (this.did = \"\" + t.did), \"number\" == typeof t.started && (this.started = t.started), this.ignoreDuration) this.duration = void 0;else if (\"number\" == typeof t.duration) this.duration = t.duration;else {\n var e = this.timestamp - this.started;\n this.duration = e >= 0 ? e : 0;\n }\n t.release && (this.release = t.release), t.environment && (this.environment = t.environment), !this.ipAddress && t.ipAddress && (this.ipAddress = t.ipAddress), !this.userAgent && t.userAgent && (this.userAgent = t.userAgent), \"number\" == typeof t.errors && (this.errors = t.errors), t.status && (this.status = t.status);\n }, t.prototype.close = function (t) {\n t ? this.update({\n status: t\n }) : \"ok\" === this.status ? this.update({\n status: \"exited\"\n }) : this.update();\n }, t.prototype.toJSON = function () {\n return O({\n sid: \"\" + this.sid,\n init: this.init,\n started: new Date(1e3 * this.started).toISOString(),\n timestamp: new Date(1e3 * this.timestamp).toISOString(),\n status: this.status,\n errors: this.errors,\n did: \"number\" == typeof this.did || \"string\" == typeof this.did ? \"\" + this.did : void 0,\n duration: this.duration,\n attrs: {\n release: this.release,\n environment: this.environment,\n ip_address: this.ipAddress,\n user_agent: this.userAgent\n }\n });\n }, t;\n }(),\n $ = function () {\n function t(t, e, r) {\n void 0 === e && (e = new B()), void 0 === r && (r = 4), this._version = r, this._stack = [{}], this.getStackTop().scope = e, t && this.bindClient(t);\n }\n return t.prototype.isOlderThan = function (t) {\n return this._version < t;\n }, t.prototype.bindClient = function (t) {\n this.getStackTop().client = t, t && t.setupIntegrations && t.setupIntegrations();\n }, t.prototype.pushScope = function () {\n var t = B.clone(this.getScope());\n return this.getStack().push({\n client: this.getClient(),\n scope: t\n }), t;\n }, t.prototype.popScope = function () {\n return !(this.getStack().length <= 1) && !!this.getStack().pop();\n }, t.prototype.withScope = function (t) {\n var e = this.pushScope();\n try {\n t(e);\n } finally {\n this.popScope();\n }\n }, t.prototype.getClient = function () {\n return this.getStackTop().client;\n }, t.prototype.getScope = function () {\n return this.getStackTop().scope;\n }, t.prototype.getStack = function () {\n return this._stack;\n }, t.prototype.getStackTop = function () {\n return this._stack[this._stack.length - 1];\n }, t.prototype.captureException = function (t, e) {\n var r = this._lastEventId = e && e.event_id ? e.event_id : j(),\n n = e;\n if (!e) {\n var i = void 0;\n try {\n throw new Error(\"Sentry syntheticException\");\n } catch (t) {\n i = t;\n }\n n = {\n originalException: t,\n syntheticException: i\n };\n }\n return this._invokeClient(\"captureException\", t, h(h({}, n), {\n event_id: r\n })), r;\n }, t.prototype.captureMessage = function (t, e, r) {\n var n = this._lastEventId = r && r.event_id ? r.event_id : j(),\n i = r;\n if (!r) {\n var o = void 0;\n try {\n throw new Error(t);\n } catch (t) {\n o = t;\n }\n i = {\n originalException: t,\n syntheticException: o\n };\n }\n return this._invokeClient(\"captureMessage\", t, e, h(h({}, i), {\n event_id: n\n })), n;\n }, t.prototype.captureEvent = function (t, e) {\n var r = e && e.event_id ? e.event_id : j();\n return \"transaction\" !== t.type && (this._lastEventId = r), this._invokeClient(\"captureEvent\", t, h(h({}, e), {\n event_id: r\n })), r;\n }, t.prototype.lastEventId = function () {\n return this._lastEventId;\n }, t.prototype.addBreadcrumb = function (t, e) {\n var r = this.getStackTop(),\n n = r.scope,\n i = r.client;\n if (n && i) {\n var o = i.getOptions && i.getOptions() || {},\n a = o.beforeBreadcrumb,\n s = void 0 === a ? null : a,\n c = o.maxBreadcrumbs,\n u = void 0 === c ? 100 : c;\n if (!(u <= 0)) {\n var p = Object(T.a)(),\n l = h({\n timestamp: p\n }, t),\n f = s ? D(function () {\n return s(l, e);\n }) : l;\n null !== f && n.addBreadcrumb(f, u);\n }\n }\n }, t.prototype.setUser = function (t) {\n var e = this.getScope();\n e && e.setUser(t);\n }, t.prototype.setTags = function (t) {\n var e = this.getScope();\n e && e.setTags(t);\n }, t.prototype.setExtras = function (t) {\n var e = this.getScope();\n e && e.setExtras(t);\n }, t.prototype.setTag = function (t, e) {\n var r = this.getScope();\n r && r.setTag(t, e);\n }, t.prototype.setExtra = function (t, e) {\n var r = this.getScope();\n r && r.setExtra(t, e);\n }, t.prototype.setContext = function (t, e) {\n var r = this.getScope();\n r && r.setContext(t, e);\n }, t.prototype.configureScope = function (t) {\n var e = this.getStackTop(),\n r = e.scope,\n n = e.client;\n r && n && t(r);\n }, t.prototype.run = function (t) {\n var e = q(this);\n try {\n t(this);\n } finally {\n q(e);\n }\n }, t.prototype.getIntegration = function (t) {\n var e = this.getClient();\n if (!e) return null;\n try {\n return e.getIntegration(t);\n } catch (e) {\n return N && S.warn(\"Cannot retrieve integration \" + t.id + \" from the current Hub\"), null;\n }\n }, t.prototype.startSpan = function (t) {\n return this._callExtensionMethod(\"startSpan\", t);\n }, t.prototype.startTransaction = function (t, e) {\n return this._callExtensionMethod(\"startTransaction\", t, e);\n }, t.prototype.traceHeaders = function () {\n return this._callExtensionMethod(\"traceHeaders\");\n }, t.prototype.captureSession = function (t) {\n if (void 0 === t && (t = !1), t) return this.endSession();\n this._sendSessionUpdate();\n }, t.prototype.endSession = function () {\n var t = this.getStackTop(),\n e = t && t.scope,\n r = e && e.getSession();\n r && r.close(), this._sendSessionUpdate(), e && e.setSession();\n }, t.prototype.startSession = function (t) {\n var e = this.getStackTop(),\n r = e.scope,\n n = e.client,\n i = n && n.getOptions() || {},\n o = i.release,\n a = i.environment,\n s = (Object(w.a)().navigator || {}).userAgent,\n c = new R(h(h(h({\n release: o,\n environment: a\n }, r && {\n user: r.getUser()\n }), s && {\n userAgent: s\n }), t));\n if (r) {\n var u = r.getSession && r.getSession();\n u && \"ok\" === u.status && u.update({\n status: \"exited\"\n }), this.endSession(), r.setSession(c);\n }\n return c;\n }, t.prototype._sendSessionUpdate = function () {\n var t = this.getStackTop(),\n e = t.scope,\n r = t.client;\n if (e) {\n var n = e.getSession && e.getSession();\n n && r && r.captureSession && r.captureSession(n);\n }\n }, t.prototype._invokeClient = function (t) {\n for (var e, r = [], n = 1; n < arguments.length; n++) r[n - 1] = arguments[n];\n var i = this.getStackTop(),\n o = i.scope,\n a = i.client;\n a && a[t] && (e = a)[t].apply(e, v(r, [o]));\n }, t.prototype._callExtensionMethod = function (t) {\n for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r];\n var n = U(),\n i = n.__SENTRY__;\n if (i && i.extensions && \"function\" == typeof i.extensions[t]) return i.extensions[t].apply(this, e);\n N && S.warn(\"Extension method \" + t + \" couldn't be found, doing nothing.\");\n }, t;\n }();\n function U() {\n var t = Object(w.a)();\n return t.__SENTRY__ = t.__SENTRY__ || {\n extensions: {},\n hub: void 0\n }, t;\n }\n function q(t) {\n var e = U(),\n r = Z(e);\n return H(e, t), r;\n }\n function V() {\n var t = U();\n return G(t) && !Z(t).isOlderThan(4) || H(t, new $()), Object(L.b)() ? function (t) {\n try {\n var e = U().__SENTRY__,\n r = e && e.extensions && e.extensions.domain && e.extensions.domain.active;\n if (!r) return Z(t);\n if (!G(r) || Z(r).isOlderThan(4)) {\n var n = Z(t).getStackTop();\n H(r, new $(n.client, B.clone(n.scope)));\n }\n return Z(r);\n } catch (e) {\n return Z(t);\n }\n }(t) : Z(t);\n }\n function G(t) {\n return !!(t && t.__SENTRY__ && t.__SENTRY__.hub);\n }\n function Z(t) {\n return Object(w.b)(\"hub\", function () {\n return new $();\n }, t);\n }\n function H(t, e) {\n return !!t && ((t.__SENTRY__ = t.__SENTRY__ || {}).hub = e, !0);\n }\n function W(t) {\n for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r];\n var n = V();\n if (n && n[t]) return n[t].apply(n, m(e));\n throw new Error(\"No hub defined or \" + t + \" was not found on the hub, please open a bug report.\");\n }\n function Y(t, e) {\n return W(\"captureException\", t, {\n captureContext: e,\n originalException: t,\n syntheticException: new Error(\"Sentry syntheticException\")\n });\n }\n function Q(t) {\n W(\"withScope\", t);\n }\n var K,\n J = {\n urls: {\n processUrl: \"https://process.filestackapi.com\",\n fileApiUrl: \"https://www.filestackapi.com/api/file\",\n uploadApiUrl: \"https://upload.filestackapi.com\",\n cloudApiUrl: \"https://cloud.filestackapi.com\",\n cdnUrl: \"https://cdn.filestackcontent.com\",\n pickerUrl: \"https://static.filestackapi.com/picker/\".concat(\"1.27.3\", \"/picker.js\")\n }\n };\n !function (t) {\n t.VALIDATION = \"validation\", t.REQUEST = \"request\", t.ABORTED = \"aborted\", t.OTHER = \"other\";\n }(K || (K = {}));\n var X = function (t) {\n function e(r, n, i) {\n var o = t.call(this, r) || this;\n return Object.setPrototypeOf(o, e.prototype), o.details = n, o.type = i, o;\n }\n return Object(p.c)(e, t), e;\n }(Error),\n tt = {\n $schema: \"http://json-schema.org/draft-07/schema#\",\n title: \"Filestack Transformations\",\n description: \"Filestack transformations parameters\",\n type: \"object\",\n additionalProperties: !1,\n properties: {\n flip: {\n type: \"boolean\",\n additionalProperties: !1\n },\n auto_image: {\n type: \"boolean\",\n additionalProperties: !1\n },\n no_metadata: {\n type: \"boolean\",\n additionalProperties: !1\n },\n compress: {\n additionalProperties: !1,\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n metadata: {\n type: \"boolean\",\n default: !1\n }\n }\n }]\n },\n flop: {\n type: \"boolean\",\n additionalProperties: !1\n },\n enhance: {\n default: !0,\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n preset: {\n type: \"string\",\n enum: [\"auto\", \"vivid\", \"beautify\", \"beautify_plus\", \"fix_dark\", \"fix_noise\", \"fix_tint\", \"outdoor\", \"fireworks\"]\n }\n }\n }]\n },\n redeye: {\n type: \"boolean\",\n additionalProperties: !1\n },\n monochrome: {\n type: \"boolean\",\n additionalProperties: !1\n },\n negative: {\n type: \"boolean\",\n additionalProperties: !1\n },\n tags: {\n type: \"boolean\",\n additionalProperties: !1\n },\n sfw: {\n type: \"boolean\",\n additionalProperties: !1\n },\n imagesize: {\n type: \"boolean\",\n additionalProperties: !1\n },\n smart_crop: {\n width: {\n type: \"integer\",\n minimum: 0,\n maximum: 1e4\n },\n height: {\n type: \"integer\",\n minimum: 0,\n maximum: 1e4\n },\n mode: {\n type: \"string\",\n default: \"auto\",\n enum: [\"face\", \"auto\"]\n }\n },\n animate: {\n type: \"object\",\n properties: {\n delay: {\n type: \"integer\",\n minimum: 0,\n maximum: 1e4,\n default: 1e3\n },\n loop: {\n type: \"integer\",\n minimum: 0,\n maximum: 1e3,\n default: 0\n },\n width: {\n type: \"integer\",\n minimum: 1,\n maximum: 1800\n },\n height: {\n type: \"integer\",\n minimum: 1,\n maximum: 1800\n },\n fit: {\n type: \"string\",\n default: \"clip\",\n enum: [\"clip\", \"scale\", \"crop\"]\n },\n background: {\n $ref: \"colorDef\",\n default: \"transparent\"\n },\n align: {\n $ref: \"positionDef\",\n default: \"center\"\n }\n }\n },\n metadata: {\n type: \"object\",\n params: {\n type: \"array\",\n items: {\n type: \"string\",\n enum: [\"filename\", \"mimetype\", \"size\", \"width\", \"height\", \"writeable\", \"path\", \"container\", \"cloud\", \"exif\", \"source_url\", \"md5\", \"sha256\", \"sha1\", \"sha512\"]\n },\n minItems: 0,\n uniqueItems: !0,\n additionalItems: !1\n },\n additionalProperties: !1\n },\n resize: {\n type: \"object\",\n properties: {\n width: {\n type: \"number\",\n minimum: 0,\n maximum: 1e4\n },\n height: {\n type: \"number\",\n minimum: 0,\n maximum: 1e4\n },\n fit: {\n type: \"string\",\n enum: [\"clip\", \"crop\", \"scale\", \"max\"],\n default: \"clip\"\n },\n align: {\n $ref: \"positionDef\",\n default: \"center\"\n }\n },\n additionalProperties: !1,\n anyOf: [{\n required: [\"width\"]\n }, {\n required: [\"height\"]\n }]\n },\n crop: {\n type: \"object\",\n properties: {\n dim: {\n type: \"array\",\n additionalItems: !1,\n minItems: 4,\n items: [{\n type: \"integer\",\n minimum: 0,\n maximum: 1e5\n }, {\n type: \"integer\",\n minimum: 0,\n maximum: 1e5\n }, {\n type: \"integer\",\n minimum: 1,\n maximum: 1e5\n }, {\n type: \"integer\",\n minimum: 1,\n maximum: 1e5\n }]\n }\n },\n required: [\"dim\"]\n },\n rotate: {\n type: \"object\",\n properties: {\n deg: {\n oneOf: [{\n type: \"string\",\n enum: [\"exif\"]\n }, {\n type: \"number\",\n minimum: 0,\n maximum: 359\n }]\n },\n exif: {\n type: \"boolean\"\n },\n background: {\n $ref: \"colorDef\",\n default: \"FFFFFFFF\"\n }\n },\n additionalProperties: !1\n },\n detect_faces: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n maxsize: {\n type: \"number\",\n minimum: 0,\n maximum: 1e4,\n default: .35\n },\n minsize: {\n type: \"number\",\n minimum: 0,\n maximum: 1e4,\n default: .35\n },\n export: {\n type: \"boolean\"\n },\n color: {\n $ref: \"colorDef\",\n default: \"000000FF\"\n }\n },\n additionalProperties: !1\n }]\n },\n crop_faces: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n faces: {\n default: 1,\n $ref: \"facesDef\"\n },\n width: {\n type: \"number\",\n minimum: 1,\n maximum: 1e4\n },\n height: {\n type: \"number\",\n minimum: 1,\n maximum: 1e4\n },\n maxsize: {\n type: \"number\",\n minimum: 0,\n maximum: 1e4,\n default: .35\n },\n minsize: {\n type: \"number\",\n minimum: 0,\n maximum: 1e4,\n default: .35\n },\n buffer: {\n type: \"integer\",\n minimum: 0,\n maximum: 1e4\n },\n mode: {\n type: \"string\",\n enum: [\"crop\", \"thumb\", \"fill\"],\n default: \"thumb\"\n }\n },\n additionalProperties: !1\n }]\n },\n pixelate_faces: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n faces: {\n $ref: \"facesDef\",\n default: \"all\"\n },\n maxsize: {\n type: \"number\",\n minimum: 0,\n maximum: 1e4,\n default: .35\n },\n minsize: {\n type: \"number\",\n minimum: 0,\n maximum: 1e4,\n default: .35\n },\n buffer: {\n type: \"integer\",\n minimum: 0,\n maximum: 1e4\n },\n amount: {\n type: \"integer\",\n minimum: 2,\n maximum: 100,\n default: 10\n },\n blur: {\n type: \"number\",\n minimum: 0,\n maximum: 20,\n default: 4\n },\n type: {\n type: \"string\",\n enum: [\"rect\", \"oval\"],\n default: \"rect\"\n }\n },\n additionalProperties: !1\n }]\n },\n blur_faces: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n faces: {\n $ref: \"facesDef\",\n default: \"all\"\n },\n maxsize: {\n type: \"number\",\n minimum: 0,\n maximum: 1e4,\n default: .35\n },\n minsize: {\n type: \"number\",\n minimum: 0,\n maximum: 1e4,\n default: .35\n },\n buffer: {\n type: \"integer\",\n minimum: 0,\n maximum: 1e4\n },\n amount: {\n type: \"number\",\n minimum: 0,\n maximum: 10,\n default: 10\n },\n blur: {\n type: \"number\",\n minimum: 0,\n maximum: 20,\n default: 4\n },\n type: {\n type: \"string\",\n enum: [\"rect\", \"oval\"],\n default: \"rect\"\n }\n },\n additionalProperties: !1\n }]\n },\n rounded_corners: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n radius: {\n oneOf: [{\n type: \"integer\",\n minimum: 1,\n maximum: 1e4\n }, {\n type: \"string\",\n enum: [\"max\"]\n }]\n },\n blur: {\n type: \"number\",\n minimum: 0,\n maximum: 20,\n default: .3\n },\n background: {\n $ref: \"colorDef\"\n }\n },\n additionalProperties: !1\n }]\n },\n vignette: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n amount: {\n type: \"integer\",\n minimum: 0,\n maximum: 100,\n default: 20\n },\n blurmode: {\n type: \"string\",\n enum: [\"gaussian\", \"linear\"],\n default: \"gaussian\"\n },\n background: {\n $ref: \"colorDef\"\n }\n },\n additionalProperties: !1\n }]\n },\n polaroid: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n rotate: {\n type: \"integer\",\n minimum: 0,\n maximum: 359\n },\n color: {\n $ref: \"colorDef\",\n default: \"snow\"\n },\n background: {\n $ref: \"colorDef\"\n }\n },\n additionalProperties: !1\n }]\n },\n torn_edges: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n spread: {\n type: \"array\",\n additionalItems: !1,\n minItems: 2,\n items: [{\n type: \"integer\",\n minimum: 1,\n maximum: 1e4,\n default: 1\n }, {\n type: \"integer\",\n minimum: 1,\n maximum: 1e4,\n default: 10\n }]\n },\n background: {\n $ref: \"colorDef\"\n }\n },\n additionalProperties: !1\n }]\n },\n shadow: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n blur: {\n type: \"number\",\n minimum: 0,\n maximum: 20,\n default: 100\n },\n opacity: {\n type: \"integer\",\n minimum: 0,\n maximum: 100,\n default: 60\n },\n vector: {\n type: \"array\",\n additionalItems: !1,\n minItems: 2,\n items: [{\n type: \"integer\",\n minimum: -1e3,\n maximum: 1e3,\n default: 4\n }, {\n type: \"integer\",\n minimum: -1e3,\n maximum: 1e3,\n default: 4\n }]\n },\n color: {\n $ref: \"colorDef\"\n },\n background: {\n $ref: \"colorDef\"\n }\n },\n additionalProperties: !1\n }]\n },\n circle: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n background: {\n $ref: \"colorDef\"\n }\n },\n additionalProperties: !1\n }]\n },\n border: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n color: {\n $ref: \"colorDef\"\n },\n background: {\n $ref: \"colorDef\"\n },\n width: {\n type: \"integer\",\n minimum: 0,\n maximum: 1e3\n }\n },\n additionalProperties: !1\n }]\n },\n sharpen: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n amount: {\n type: \"integer\",\n minimum: 0,\n maximum: 20,\n default: 2\n }\n },\n additionalProperties: !1\n }]\n },\n blur: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n amount: {\n type: \"integer\",\n minimum: 0,\n maximum: 20,\n default: 2\n }\n },\n additionalProperties: !1\n }]\n },\n blackwhite: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n threshold: {\n type: \"integer\",\n minimum: 0,\n maximum: 100,\n default: 50\n }\n },\n additionalProperties: !1\n }]\n },\n sepia: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n tone: {\n type: \"integer\",\n minimum: 0,\n maximum: 100,\n default: 80\n }\n },\n additionalProperties: !1\n }]\n },\n pixelate: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n amount: {\n type: \"integer\",\n minimum: 2,\n maximum: 100,\n default: 2\n }\n },\n additionalProperties: !1\n }]\n },\n oil_paint: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n amount: {\n type: \"integer\",\n minimum: 2,\n maximum: 100,\n default: 2\n }\n },\n additionalProperties: !1\n }]\n },\n modulate: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n brightness: {\n type: \"integer\",\n minimum: 0,\n maximum: 1e4,\n default: 100\n },\n saturation: {\n type: \"integer\",\n minimum: 0,\n maximum: 1e4,\n default: 100\n },\n hue: {\n type: \"integer\",\n minimum: 0,\n maximum: 359,\n default: 0\n }\n },\n additionalProperties: !1\n }]\n },\n ascii: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n foreground: {\n $ref: \"colorDef\",\n default: \"000000FF\"\n },\n background: {\n $ref: \"colorDef\",\n default: \"FFFFFFFF\"\n },\n colored: {\n type: \"boolean\",\n default: !1\n },\n size: {\n type: \"integer\",\n minimum: 10,\n maximum: 100,\n default: 100\n },\n reverse: {\n type: \"boolean\",\n default: !1\n }\n },\n additionalProperties: !1\n }]\n },\n collage: {\n type: \"object\",\n properties: {\n files: {\n type: \"array\",\n minItems: 1,\n items: [{\n type: \"string\"\n }]\n },\n margin: {\n type: \"integer\",\n minimum: 1,\n maximum: 100,\n default: 10\n },\n width: {\n type: \"integer\",\n minimum: 0,\n maximum: 1e4\n },\n height: {\n type: \"integer\",\n minimum: 0,\n maximum: 1e4\n },\n color: {\n $ref: \"colorDef\",\n default: \"FFFFFFFF\"\n },\n fit: {\n type: \"string\",\n enum: [\"auto\", \"crop\"]\n },\n autorotate: {\n type: \"boolean\",\n default: !1\n }\n },\n required: [\"width\", \"height\", \"files\"],\n additionalProperties: !1\n },\n urlscreenshot: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n agent: {\n type: \"string\",\n enum: [\"desktop\", \"mobile\"],\n default: \"desktop\"\n },\n width: {\n type: \"integer\",\n minimum: 1,\n maximum: 1920,\n default: 1024\n },\n height: {\n type: \"integer\",\n minimum: 1,\n maximum: 8e3,\n default: 768\n },\n mode: {\n type: \"string\",\n enum: [\"all\", \"window\"],\n default: \"all\"\n },\n delay: {\n type: \"integer\",\n minimum: 0,\n maximum: 2e4,\n default: 1e3\n },\n orientation: {\n type: \"string\",\n enum: [\"portrait\", \"landscape\"],\n default: \"portrait\"\n },\n device: {\n type: \"string\",\n default: \"\"\n }\n },\n additionalProperties: !1\n }]\n },\n upscale: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n noise: {\n type: \"string\",\n enum: [\"none\", \"low\", \"medium\", \"high\"],\n default: \"none\"\n },\n upscale: {\n type: \"boolean\",\n default: !0\n },\n style: {\n type: \"string\",\n enum: [\"artwork\", \"photo\"],\n default: \"photo\"\n }\n },\n additionalProperties: !1\n }]\n },\n output: {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n format: {\n type: \"string\",\n enum: [\"doc\", \"docx\", \"html\", \"jpg\", \"odp\", \"ods\", \"odt\", \"pjpg\", \"pdf\", \"png\", \"ppt\", \"pptx\", \"svg\", \"txt\", \"webp\", \"xls\", \"xlsx\"]\n },\n page: {\n type: \"integer\",\n minimum: 1,\n maximum: 99999\n },\n density: {\n type: \"integer\",\n minimum: 1,\n maximum: 500\n },\n compress: {\n type: \"boolean\"\n },\n quality: {\n oneOf: [{\n type: \"string\",\n enum: [\"input\"]\n }, {\n type: \"integer\",\n minimum: 1,\n maximum: 100,\n default: 95\n }]\n },\n secure: {\n type: \"boolean\",\n default: !1\n },\n docinfo: {\n type: \"boolean\",\n default: !1\n },\n strip: {\n type: \"boolean\",\n default: !1\n },\n colorspace: {\n type: \"string\",\n enum: [\"rgb\", \"cmyk\", \"input\"],\n default: \"rgb\"\n },\n background: {\n $ref: \"colorDef\"\n },\n pageformat: {\n type: \"string\",\n enum: [\"a2\", \"a3\", \"a4\", \"a5\", \"b4\", \"b5\", \"letter\", \"legal\", \"tabloid\"]\n },\n pageorientation: {\n type: \"string\",\n enum: [\"landscape\", \"portrait\"]\n }\n }\n },\n pjpg: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n quality: {\n type: \"integer\",\n minimum: 0,\n maximum: 100\n },\n metadata: {\n type: \"boolean\",\n default: !1\n }\n }\n }]\n },\n quality: {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n value: {\n type: \"integer\",\n minimum: 1,\n maximum: 100\n }\n }\n },\n cache: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n expiry: {\n type: \"integer\"\n }\n }\n }]\n },\n video_convert: {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n width: {\n type: \"integer\",\n minimum: 1,\n maximum: 4096\n },\n height: {\n type: \"integer\",\n minimum: 1,\n maximum: 4096\n },\n preset: {\n type: \"string\"\n },\n force: {\n type: \"boolean\"\n },\n title: {\n type: \"string\"\n },\n extname: {\n type: \"string\"\n },\n upscale: {\n type: \"boolean\"\n },\n aspect_mode: {\n type: \"string\",\n enum: [\"letterbox\", \"pad\", \"crop\", \"preserve\", \"constrain\"],\n default: \"letterbox\"\n },\n audio_sample_rate: {\n type: \"integer\",\n minimum: 1,\n maximum: 99999\n },\n two_pass: {\n type: \"boolean\"\n },\n video_bitrate: {\n type: \"integer\",\n minimum: 1,\n maximum: 5e3\n },\n fps: {\n type: \"integer\",\n minimum: 1,\n maximum: 300\n },\n keyframe_interval: {\n type: \"integer\",\n minimum: 250,\n maximum: 250\n },\n audio_bitrate: {\n type: \"integer\",\n minimum: 1,\n maximum: 999\n },\n audio_codec: {\n type: \"string\"\n },\n audio_channels: {\n type: \"integer\",\n minimum: 1,\n maximum: 12\n },\n clip_length: {\n type: \"string\",\n pattern: \"^([0-1]?\\\\d|2[0-3])(?::([0-5]?\\\\d))?(?::([0-5]?\\\\d))?$\"\n },\n clip_offset: {\n type: \"string\",\n pattern: \"^([0-1]?\\\\d|2[0-3])(?::([0-5]?\\\\d))?(?::([0-5]?\\\\d))?$\"\n },\n watermark_url: {\n type: \"string\"\n },\n watermark_top: {\n type: \"integer\",\n minimum: 0,\n maximum: 9999\n },\n watermark_right: {\n type: \"integer\",\n minimum: 0,\n maximum: 9999\n },\n watermark_bottom: {\n type: \"integer\",\n minimum: 0,\n maximum: 9999\n },\n watermark_left: {\n type: \"integer\",\n minimum: 0,\n maximum: 9999\n },\n frame_count: {\n type: \"integer\",\n minimum: 1,\n maximum: 1,\n default: 1\n },\n filename: {\n type: \"string\"\n },\n location: {\n $ref: \"locationsDef\"\n },\n path: {\n type: \"string\"\n },\n container: {\n type: \"string\"\n },\n access: {\n type: \"string\",\n enum: [\"public\", \"private\"],\n default: \"public\"\n }\n }\n },\n store: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n filename: {\n type: \"string\"\n },\n location: {\n $ref: \"locationsDef\"\n },\n path: {\n type: \"string\"\n },\n container: {\n type: \"string\"\n },\n region: {\n $ref: \"regionsDef\"\n },\n access: {\n type: \"string\",\n enum: [\"public\", \"private\"],\n default: \"private\"\n },\n base64decode: {\n type: \"boolean\"\n },\n workflows: {\n $ref: \"workflowsDef\"\n }\n }\n }]\n },\n watermark: {\n type: \"object\",\n properties: {\n file: {\n type: \"string\"\n },\n size: {\n type: \"number\",\n minimum: 0,\n maximum: 500\n },\n position: {\n $ref: \"positionDef\"\n }\n },\n required: [\"file\"],\n additionalProperties: !1\n },\n partial_blur: {\n type: \"object\",\n properties: {\n objects: {\n $ref: \"objectsDef\"\n },\n amount: {\n type: \"number\",\n minimum: 0,\n maximum: 20\n },\n blur: {\n type: \"number\",\n minimum: 0,\n maximum: 20\n },\n type: {\n type: \"string\",\n enum: [\"rect\", \"oval\"]\n }\n },\n required: [\"objects\"]\n },\n partial_pixelate: {\n type: \"object\",\n properties: {\n objects: {\n $ref: \"objectsDef\"\n },\n amount: {\n type: \"number\",\n minimum: 2,\n maximum: 100\n },\n blur: {\n type: \"number\",\n minimum: 0,\n maximum: 20\n },\n type: {\n type: \"string\",\n enum: [\"rect\", \"oval\"]\n }\n },\n required: [\"objects\"]\n },\n security: {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n policy: {\n type: \"string\"\n },\n signature: {\n type: \"string\"\n }\n },\n required: [\"policy\", \"signature\"]\n },\n pdfinfo: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n properties: {\n colorinfo: {\n type: \"boolean\"\n }\n }\n }]\n },\n pdfconvert: {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n pageorientation: {\n type: \"string\",\n enum: [\"portrait\", \"landscape\"]\n },\n pageformat: {\n $ref: \"pageFormatDef\"\n },\n pages: {\n $ref: \"pageRangeDef\"\n }\n },\n anyOf: [{\n required: [\"pageorientation\"]\n }, {\n required: [\"pageformat\"]\n }, {\n required: [\"pages\"]\n }]\n },\n fallback: {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n handle: {\n type: \"string\"\n },\n cache: {\n type: \"integer\",\n minimum: 1,\n maximum: 31536e3\n }\n },\n required: [\"handle\"]\n },\n zip: {\n type: \"string\"\n },\n minify_css: {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n gzip: {\n type: \"boolean\"\n },\n level: {\n type: \"number\",\n enum: [1, 2]\n }\n }\n },\n minify_js: {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n gzip: {\n type: \"boolean\"\n },\n use_babel_polyfill: {\n type: \"boolean\"\n },\n keep_fn_name: {\n type: \"boolean\"\n },\n keep_class_name: {\n type: \"boolean\"\n },\n mangle: {\n type: \"boolean\"\n },\n merge_vars: {\n type: \"boolean\"\n },\n remove_console: {\n type: \"boolean\"\n },\n remove_undefined: {\n type: \"boolean\"\n },\n targets: {\n type: \"string\"\n }\n }\n }\n }\n },\n et = r(13),\n rt = {\n $schema: \"http://json-schema.org/draft-07/schema#\",\n title: \"Filestack\",\n description: \"Filestack common definitions\",\n type: \"object\",\n additionalProperties: !1,\n definitions: {\n workflowsDef: {\n id: \"/workflowsDef\",\n type: \"array\",\n additionalItems: !1,\n minItems: 1,\n maxItems: 20,\n items: [{\n oneOf: [{\n type: \"string\"\n }, {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n id: {\n type: \"string\"\n }\n }\n }]\n }]\n },\n securityCallDef: {\n id: \"/securityCallDef\",\n oneOf: [{\n additionalProperties: !1,\n type: \"string\",\n enum: [\"pick\", \"read\", \"stat\", \"write\", \"writeUrl\", \"store\", \"convert\", \"remove\", \"exif\", \"runWorkflow\"]\n }, {\n type: \"array\",\n additionalProperties: !1,\n items: [{\n minItems: 1,\n maxItems: 10,\n type: \"string\",\n additionalProperties: !1,\n enum: [\"pick\", \"read\", \"stat\", \"write\", \"writeUrl\", \"store\", \"convert\", \"remove\", \"exif\", \"runWorkflow\"]\n }]\n }]\n },\n regionsDef: {\n id: \"/regionsDef\",\n type: \"string\"\n },\n locationsDef: {\n id: \"/locationsDef\",\n type: \"string\",\n enum: [\"s3\", \"S3\", \"rackspace\", \"gcs\", \"azure\", \"dropbox\"]\n },\n colorDef: {\n id: \"colorDef\",\n oneOf: [{\n type: \"string\",\n pattern: \"^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$\"\n }, {\n type: \"string\",\n enum: [\"aliceblue\", \"antiquewhite\", \"aqua\", \"aquamarine\", \"azure\", \"beige\", \"bisque\", \"black\", \"blanchedalmond\", \"blue\", \"blueviolet\", \"brown\", \"burlywood\", \"cadetblue\", \"chartreuse\", \"chocolate\", \"coral\", \"cornflowerblue\", \"cornsilk\", \"crimson\", \"cyan\", \"darkblue\", \"darkcyan\", \"darkgoldenrod\", \"darkgray\", \"darkgreen\", \"darkgrey\", \"darkkhaki\", \"darkmagenta\", \"darkolivegreen\", \"darkorange\", \"darkorchid\", \"darkred\", \"darksalmon\", \"darkseagreen\", \"darkslateblue\", \"darkslategray\", \"darkslategrey\", \"darkturquoise\", \"darkviolet\", \"deeppink\", \"deepskyblue\", \"dimgray\", \"dimgrey\", \"dodgerblue\", \"firebrick\", \"floralwhite\", \"forestgreen\", \"fractal\", \"fuchsia\", \"gainsboro\", \"ghostwhite\", \"gold\", \"goldenrod\", \"gray0\", \"gray1\", \"gray2\", \"gray3\", \"gray4\", \"gray5\", \"gray6\", \"gray7\", \"gray8\", \"gray9\", \"gray10\", \"gray11\", \"gray12\", \"gray13\", \"gray14\", \"gray15\", \"gray16\", \"gray17\", \"gray18\", \"gray19\", \"gray20\", \"gray21\", \"gray22\", \"gray23\", \"gray24\", \"gray25\", \"gray26\", \"gray27\", \"gray28\", \"gray29\", \"gray30\", \"gray31\", \"gray32\", \"gray33\", \"gray34\", \"gray35\", \"gray36\", \"gray37\", \"gray38\", \"gray39\", \"gray40\", \"gray41\", \"gray42\", \"gray43\", \"gray44\", \"gray45\", \"gray46\", \"gray47\", \"gray48\", \"gray49\", \"gray50\", \"gray51\", \"gray52\", \"gray53\", \"gray54\", \"gray55\", \"gray56\", \"gray57\", \"gray58\", \"gray59\", \"gray60\", \"gray61\", \"gray62\", \"gray63\", \"gray64\", \"gray65\", \"gray66\", \"gray67\", \"gray68\", \"gray69\", \"gray70\", \"gray71\", \"gray72\", \"gray73\", \"gray74\", \"gray75\", \"gray76\", \"gray77\", \"gray78\", \"gray79\", \"gray80\", \"gray81\", \"gray82\", \"gray83\", \"gray84\", \"gray85\", \"gray86\", \"gray87\", \"gray88\", \"gray89\", \"gray90\", \"gray91\", \"gray92\", \"gray93\", \"gray94\", \"gray95\", \"gray96\", \"gray97\", \"gray98\", \"gray99\", \"gray100\", \"gray\", \"green\", \"greenyellow\", \"grey\", \"honeydew\", \"hotpink\", \"indianred\", \"indigo\", \"ivory\", \"khaki\", \"lavender\", \"lavenderblush\", \"lawngreen\", \"lemonchiffon\", \"lightblue\", \"lightcoral\", \"lightcyan\", \"lightgoldenrodyellow\", \"lightgray\", \"lightgreen\", \"lightgrey\", \"lightpink\", \"lightsalmon\", \"lightseagreen\", \"lightskyblue\", \"lightslategray\", \"lightslategrey\", \"lightsteelblue\", \"lightyellow\", \"lime\", \"limegreen\", \"linen\", \"magenta\", \"maroon\", \"mediumaquamarine\", \"mediumblue\", \"mediumorchid\", \"mediumpurple\", \"mediumseagreen\", \"mediumslateblue\", \"mediumspringgreen\", \"mediumturquoise\", \"mediumvioletred\", \"midnightblue\", \"mintcream\", \"mistyrose\", \"moccasin\", \"navajowhite\", \"navy\", \"none\", \"oldlace\", \"olive\", \"olivedrab\", \"orange\", \"orangered\", \"orchid\", \"palegoldenrod\", \"palegreen\", \"paleturquoise\", \"palevioletred\", \"papayawhip\", \"peachpuff\", \"peru\", \"pink\", \"plum\", \"powderblue\", \"purple\", \"red\", \"rosybrown\", \"royalblue\", \"saddlebrown\", \"salmon\", \"sandybrown\", \"seagreen\", \"seashell\", \"sienna\", \"silver\", \"skyblue\", \"slateblue\", \"slategray\", \"slategrey\", \"snow\", \"springgreen\", \"steelblue\", \"tan\", \"teal\", \"thistle\", \"tomato\", \"turquoise\", \"violet\", \"wheat\", \"white\", \"whitesmoke\", \"yellow\", \"yellowgreen\", \"transparent\"]\n }]\n },\n pageFormatDef: {\n id: \"/pageFormatDef\",\n type: \"string\",\n enum: [\"a2\", \"a3\", \"a4\", \"a5\", \"b4\", \"b5\", \"letter\", \"legal\", \"tabloid\"]\n },\n pageRangeDef: {\n id: \"/pageRangeDef\",\n type: \"array\",\n uniqueItems: !0,\n items: [{\n oneOf: [{\n type: \"integer\",\n minimum: 1\n }, {\n type: \"string\",\n pattern: \"^(\\\\d+(?:-\\\\d+)?)$|^(-\\\\d+)$|^(\\\\d+-)$\",\n errorMessage: 'Param should be provided in one of the following formats: \"1,2,3,5\", \"1-3\", \"1-\", \"-2\" '\n }]\n }]\n },\n facesDef: {\n id: \"/facesDef\",\n oneOf: [{\n type: \"string\",\n enum: [\"all\"]\n }, {\n type: \"integer\",\n minimum: 1,\n maximum: 1e3\n }, {\n type: \"array\",\n uniqueItems: !0,\n items: [{\n type: \"integer\",\n minimum: 1,\n maximum: 1e3\n }]\n }]\n },\n objectsDef: {\n id: \"/objectsDef\",\n type: \"array\",\n minItems: 1,\n maxItems: 50,\n items: [{\n type: \"array\",\n additionalItems: !1,\n minItems: 4,\n items: [{\n type: \"integer\",\n minimum: 0,\n maximum: 1e4\n }, {\n type: \"integer\",\n minimum: 0,\n maximum: 1e4\n }, {\n type: \"integer\",\n minimum: 1,\n maximum: 1e4\n }, {\n type: \"integer\",\n minimum: 1,\n maximum: 1e4\n }]\n }]\n },\n positionDef: {\n id: \"/positionDef\",\n default: [\"middle\", \"center\"],\n oneOf: [{\n type: \"string\",\n enum: [\"top\", \"middle\", \"bottom\", \"left\", \"center\", \"right\", \"faces\"]\n }, {\n type: \"array\",\n uniqueItems: !0,\n additionalItems: !1,\n minItems: 2,\n maxItems: 2,\n default: [\"middle\", \"center\"],\n items: [{\n type: \"string\",\n enum: [\"top\", \"middle\", \"bottom\"]\n }, {\n type: \"string\",\n enum: [\"left\", \"center\", \"right\"]\n }]\n }]\n }\n }\n },\n nt = new et.Validator();\n et.Validator.prototype.customFormats.callback = function (t) {\n return \"function\" == typeof t;\n }, et.Validator.prototype.customFormats.HTMLContainer = function (t) {\n return \"string\" == typeof t || t.toString && t.toString().indexOf(\"HTML\") > -1;\n };\n var it = function (t) {\n return function (e) {\n return nt.addSchema(rt), nt.validate(e, t);\n };\n },\n ot = r(1),\n at = r(3),\n st = r.n(at);\n function ct(t) {\n return (ct = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n var ut,\n pt,\n lt,\n ft,\n dt,\n mt,\n ht,\n yt,\n vt,\n gt,\n bt,\n xt,\n wt,\n kt,\n _t,\n Ft,\n Et,\n Ot,\n jt,\n St = st()(\"fs:filelink\");\n !function (t) {\n t.left = \"left\", t.right = \"right\", t.center = \"center\", t.bottom = \"bottom\", t.top = \"top\", t.faces = \"faces\", t.middle = \"middle\";\n }(ut || (ut = {})), function (t) {\n t.clip = \"clip\", t.crop = \"crop\", t.scale = \"scale\", t.max = \"max\";\n }(pt || (pt = {})), function (t) {\n t.linear = \"linear\", t.gaussian = \"gaussian\";\n }(lt || (lt = {})), function (t) {\n t.oval = \"oval\", t.rect = \"rect\";\n }(ft || (ft = {})), function (t) {\n t.none = \"none\", t.low = \"low\", t.medium = \"medium\", t.high = \"high\";\n }(dt || (dt = {})), function (t) {\n t.artwork = \"artwork\", t.photo = \"photo\";\n }(mt || (mt = {})), function (t) {\n t.RGB = \"RGB\", t.CMYK = \"CMYK\", t.Input = \"Input\";\n }(ht || (ht = {})), function (t) {\n t.thumb = \"thumb\", t.crop = \"crop\", t.fill = \"fill\";\n }(yt || (yt = {})), function (t) {\n t.top = \"top\", t.middle = \"middle\", t.bottom = \"bottom\", t.left = \"left\", t.center = \"center\", t.right = \"right\";\n }(vt || (vt = {})), function (t) {\n t.face = \"face\", t.auto = \"auto\";\n }(gt || (gt = {})), function (t) {\n t.libmp3lame = \"libmp3lame\", t.libvorbis = \"libvorbis\", t.libfdk_aac = \"libfdk_aac\", t.dib_ac3 = \"dib_ac3\", t.pcm_s16le = \"pcm_s16le\", t.mp2 = \"mp2\", t.ac3 = \"ac3\", t.eac3 = \"eac3\";\n }(bt || (bt = {})), function (t) {\n t.h264 = \"h264\", t.h264_hi = \"h264.hi\", t.webm = \"webm\", t[\"webm-hi\"] = \"webm.hi\", t.ogg = \"ogg\", t[\"ogg-hi\"] = \"ogg.hi\", t[\"hls-variant\"] = \"hls.variant\", t.mp3 = \"mp3\", t.oga = \"oga\", t.m4a = \"m4a\", t.aac = \"aac\", t.hls = \"hls.variant.audio\";\n }(xt || (xt = {})), function (t) {\n t.desktop = \"desktop\", t.mobile = \"mobile\";\n }(wt || (wt = {})), function (t) {\n t.all = \"all\", t.window = \"window\";\n }(kt || (kt = {})), function (t) {\n t.portrait = \"portrait\", t.landscape = \"landscape\";\n }(_t || (_t = {})), function (t) {\n t.s3 = \"s3\", t.azure = \"azure\", t.gcs = \"gcs\", t.rackspace = \"rackspace\", t.dropbox = \"dropbox\";\n }(Ft || (Ft = {})), function (t) {\n t.private = \"private\", t.public = \"public\";\n }(Et || (Et = {})), function (t) {\n t.preserve = \"preserve\", t.constrain = \"constrain\", t.letterbox = \"letterbox\", t.pad = \"pad\", t.crop = \"crop\";\n }(Ot || (Ot = {})), function (t) {\n t.auto = \"auto\", t.vivid = \"vivid\", t.beautify = \"beautify\", t.beautifyPlus = \"beautify_plus\", t.fixDark = \"fix_dark\", t.fixNoise = \"fix_noise\", t.fixTint = \"fix_tint\", t.outdor = \"outdoor\", t.fireworks = \"fireworks\";\n }(jt || (jt = {}));\n var Tt = /^[\\w\\-]{20}|wf:\\/\\/[\\w\\-\\/]{106}$/,\n Pt = function () {\n function t(t, e) {\n this.transforms = [], this.b64 = !1, this.useValidator = !0, this.arrayToObject = function (t, e, r) {\n return void 0 === t && (t = []), t.reduce(function (t, n) {\n return t[n[e]] = n[r], t;\n }, {});\n }, this.apikey = e, this.setSource(t);\n }\n return t.prototype.setBase64 = function (t) {\n return this.b64 = t, this;\n }, t.prototype.setUseValidator = function (t) {\n return this.useValidator = t, this;\n }, t.prototype.setCname = function (t) {\n return this.cname = t, this;\n }, t.prototype.setCustomDomain = function (t) {\n return this.customDomain = t, this;\n }, t.prototype.setSource = function (t) {\n this.source = t;\n var e = this.isSourceExternal();\n if (St(\"Source \".concat(t, \" - isExternal? \").concat(e)), e && !this.apikey) throw new X(\"External sources requires apikey to handle transforms\");\n if (!e && \"string\" == typeof this.source && !Tt.test(this.source) && -1 === this.source.indexOf(\"filestackcontent\")) throw new X(\"Invalid filestack source provided\");\n }, t.prototype.getValidationSchema = function () {\n return tt;\n }, t.prototype.getTransformations = function () {\n return this.useValidator && this.validateTasks(this.transforms), this.transforms;\n }, t.prototype.toString = function () {\n var t = [];\n t.push(this.getCdnHost()), this.useValidator && this.validateTasks(this.transforms), this.apikey && t.push(this.apikey);\n var e = this.generateTransformString(),\n r = this.source;\n return this.b64 ? (this.transforms.length > 0 && (e = \"b64/\".concat(Object(ot.b64)(JSON.stringify(this.transforms), !0))), Array.isArray(r) && (r = this.arrayToString(r)), r = \"b64://\".concat(Object(ot.b64)(r, !0))) : r = Array.isArray(r) ? this.arrayToString(r) : this.escapeValue(r), e.length && t.push(e), t.push(r), t.join(\"/\");\n }, t.prototype.addTask = function (t, e) {\n if (st()(\"Add task \".concat(t, \" with params %O\"), e), \"cache\" !== t && \"boolean\" == typeof e) {\n if (!e) return this;\n e = void 0;\n } else \"object\" !== ct(e) || Object.keys(e).length || (e = void 0);\n return this.transforms.push({\n name: t,\n params: e\n }), this;\n }, t.prototype.getTasks = function () {\n return this.transforms;\n }, t.prototype.reset = function () {\n return this.transforms = [], this;\n }, t.prototype.autoImage = function () {\n return this.addTask(\"auto_image\", !0);\n }, t.prototype.flip = function () {\n return this.addTask(\"flip\", !0);\n }, t.prototype.flop = function () {\n return this.addTask(\"flop\", !0);\n }, t.prototype.imagesize = function () {\n return this.addTask(\"imagesize\", !0);\n }, t.prototype.noMetadata = function () {\n return this.addTask(\"no_metadata\", !0);\n }, t.prototype.pjpg = function (t) {\n return this.addTask(\"pjpg\", t);\n }, t.prototype.smartCrop = function (t) {\n return this.addTask(\"smart_crop\", t);\n }, t.prototype.watermark = function (t) {\n return this.addTask(\"watermark\", t);\n }, t.prototype.enhance = function (t) {\n return this.addTask(\"enhance\", t || !0);\n }, t.prototype.redeye = function () {\n return this.addTask(\"redeye\", !0);\n }, t.prototype.monochrome = function () {\n return this.addTask(\"monochrome\", !0);\n }, t.prototype.compress = function (t) {\n return this.addTask(\"compress\", t || !0);\n }, t.prototype.negative = function () {\n return this.addTask(\"negative\", !0);\n }, t.prototype.tags = function () {\n return this.addTask(\"tags\", !0);\n }, t.prototype.sfw = function () {\n return this.addTask(\"sfw\", !0);\n }, t.prototype.animate = function (t) {\n return this.addTask(\"animate\", t);\n }, t.prototype.store = function (t) {\n return this.addTask(\"store\", t);\n }, t.prototype.cache = function (t) {\n return this.addTask(\"cache\", t);\n }, t.prototype.resize = function (t) {\n return this.addTask(\"resize\", t);\n }, t.prototype.crop = function (t) {\n return this.addTask(\"crop\", t);\n }, t.prototype.rotate = function (t) {\n return this.addTask(\"rotate\", t);\n }, t.prototype.detectFaces = function (t) {\n return this.addTask(\"detect_faces\", t);\n }, t.prototype.cropFaces = function (t) {\n return this.addTask(\"crop_faces\", t);\n }, t.prototype.pixelateFaces = function (t) {\n return this.addTask(\"pixelate_faces\", t);\n }, t.prototype.blurFaces = function (t) {\n return this.addTask(\"blur_faces\", t);\n }, t.prototype.roundedCorners = function (t) {\n return this.addTask(\"rounded_corners\", t);\n }, t.prototype.polaroid = function (t) {\n return this.addTask(\"polaroid\", t);\n }, t.prototype.vignette = function (t) {\n return this.addTask(\"vignette\", t);\n }, t.prototype.tornEdges = function (t) {\n return this.addTask(\"torn_edges\", t);\n }, t.prototype.shadow = function (t) {\n return this.addTask(\"shadow\", t);\n }, t.prototype.circle = function (t) {\n return this.addTask(\"circle\", t);\n }, t.prototype.border = function (t) {\n return this.addTask(\"border\", t);\n }, t.prototype.sharpen = function (t) {\n return this.addTask(\"sharpen\", t);\n }, t.prototype.blur = function (t) {\n return this.addTask(\"blur\", t);\n }, t.prototype.blackwhite = function (t) {\n return this.addTask(\"blackwhite\", t);\n }, t.prototype.sepia = function (t) {\n return this.addTask(\"sepia\", t);\n }, t.prototype.pixelate = function (t) {\n return this.addTask(\"pixelate\", t);\n }, t.prototype.oilPaint = function (t) {\n return this.addTask(\"oil_paint\", t);\n }, t.prototype.modulate = function (t) {\n return this.addTask(\"modulate\", t);\n }, t.prototype.partialPixelate = function (t) {\n return this.addTask(\"partial_pixelate\", t);\n }, t.prototype.partialBlur = function (t) {\n return this.addTask(\"partial_blur\", t);\n }, t.prototype.collage = function (t) {\n return this.addTask(\"collage\", t);\n }, t.prototype.upscale = function (t) {\n return this.addTask(\"upscale\", t);\n }, t.prototype.ascii = function (t) {\n return this.addTask(\"ascii\", t);\n }, t.prototype.quality = function (t) {\n return this.addTask(\"quality\", t);\n }, t.prototype.security = function (t) {\n return this.addTask(\"security\", t);\n }, t.prototype.output = function (t) {\n return this.addTask(\"output\", t);\n }, t.prototype.videoConvert = function (t) {\n return this.addTask(\"video_convert\", t);\n }, t.prototype.URLScreenshot = function (t) {\n return this.addTask(\"urlscreenshot\", t);\n }, t.prototype.PDFInfo = function (t) {\n return this.addTask(\"pdfinfo\", t);\n }, t.prototype.PDFConvert = function (t) {\n return this.addTask(\"pdfconvert\", t);\n }, t.prototype.fallback = function (t) {\n return this.addTask(\"fallback\", t);\n }, t.prototype.zip = function () {\n return this.addTask(\"zip\", !0);\n }, t.prototype.minifyCss = function (t) {\n return this.addTask(\"minify_css\", t);\n }, t.prototype.minifyJs = function (t) {\n return this.addTask(\"minify_js\", t);\n }, t.prototype.isSourceExternal = function () {\n if (!this.source) throw new X(\"Source not Set\");\n var t = Array.isArray(this.source) ? this.source : [this.source];\n for (var e in t) if (t.hasOwnProperty(e) && (0 === t[e].indexOf(\"src:\") || 0 === t[e].indexOf(\"http\") && -1 === t[e].indexOf(\"filestackcontent\"))) return !0;\n return !1;\n }, t.prototype.validateTasks = function (e) {\n var r = t.validator(this.arrayToObject(e, \"name\", \"params\"));\n if (r.errors.length) throw new X(\"Params validation error\", r.errors, K.VALIDATION);\n }, t.prototype.getCdnHost = function () {\n var t = Object.assign({}, J.urls);\n return this.customDomain && (t.cdnUrl = this.customDomain), (t = Object(ot.resolveHost)(t, this.cname)).cdnUrl;\n }, t.prototype.generateTransformString = function () {\n var t = this,\n e = [];\n return this.transforms.forEach(function (r) {\n e.push(t.optionToString(r.name, r.params));\n }), e.join(\"/\");\n }, t.prototype.optionToString = function (t, e) {\n var r = this,\n n = [];\n return void 0 === e ? t : \"boolean\" == typeof e ? e || \"cache\" !== t ? t : \"cache=false\" : (Object.keys(e).forEach(function (t) {\n Array.isArray(e[t]) ? n.push(\"\".concat(t, \":\").concat(r.arrayToString(e[t]))) : n.push(\"\".concat(t, \":\").concat(r.escapeValue(e[t])));\n }), \"\".concat(t, \"=\").concat(n.join(\",\")));\n }, t.prototype.escapeValue = function (t) {\n return \"string\" != typeof t ? t : t.indexOf(\"/\") > -1 || t.indexOf(\",\") > -1 ? '\"'.concat(t, '\"') : t;\n }, t.prototype.arrayToString = function (t) {\n var e = this,\n r = t.map(function (t) {\n return Array.isArray(t) ? e.arrayToString(t) : e.escapeValue(t);\n });\n return \"[\".concat(r, \"]\");\n }, t.validator = it(tt), t;\n }(),\n At = {\n $schema: \"http://json-schema.org/draft-07/schema#\",\n title: \"Filestack Store\",\n description: \"Filestack Store Options\",\n type: \"object\",\n additionalProperties: !1,\n properties: {\n filename: {\n oneOf: [{\n type: \"string\"\n }, {\n format: \"callback\"\n }]\n },\n location: {\n $ref: \"locationsDef\"\n },\n path: {\n type: \"string\"\n },\n container: {\n type: \"string\"\n },\n region: {\n $ref: \"regionsDef\"\n },\n access: {\n type: \"string\",\n enum: [\"public\", \"private\"],\n default: \"private\"\n },\n base64decode: {\n type: \"boolean\"\n },\n workflows: {\n $ref: \"workflowsDef\"\n },\n disableStorageKey: {\n type: \"boolean\"\n },\n tags: {\n type: \"object\",\n additionalProperties: {\n type: \"string\"\n }\n },\n sanitizer: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n exclude: {\n type: \"array\",\n items: [{\n type: \"string\"\n }]\n },\n replacement: {\n type: \"string\"\n }\n }\n }]\n }\n }\n },\n Ct = {\n $schema: \"http://json-schema.org/draft-07/schema#\",\n title: \"Filestack Preview\",\n description: \"Filestack Preview Options\",\n type: \"object\",\n additionalProperties: !1,\n properties: {\n id: {\n type: \"string\"\n },\n css: {\n type: \"string\"\n }\n }\n },\n Dt = {\n $schema: \"http://json-schema.org/draft-07/schema#\",\n title: \"Filestack Upload\",\n description: \"Filestack Upload Options\",\n type: \"object\",\n additionalProperties: !1,\n properties: {\n partSize: {\n type: \"integer\",\n minimum: 5242880\n },\n concurrency: {\n type: \"integer\",\n minimum: 1,\n maximum: 20\n },\n progressInterval: {\n type: \"integer\",\n minimum: 1\n },\n retry: {\n type: \"integer\",\n minimum: 0,\n maximum: 20\n },\n retryFactor: {\n type: \"integer\"\n },\n retryMaxTime: {\n type: \"integer\"\n },\n timeout: {\n type: \"integer\",\n minimum: 1,\n maximum: 36e5\n },\n intelligent: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"string\",\n enum: [\"fallback\"]\n }]\n },\n intelligentChunkSize: {\n type: \"integer\"\n },\n onProgress: {\n format: \"callback\"\n },\n onRetry: {\n format: \"callback\"\n },\n disableIntegrityCheck: {\n type: \"boolean\"\n },\n tags: {\n type: \"object\",\n maxItems: 10,\n additionalProperties: {\n type: \"string\",\n maxlength: 256\n }\n }\n }\n },\n It = {\n $schema: \"http://json-schema.org/draft-07/schema#\",\n title: \"Filestack Picker\",\n description: \"Filestack Picker Options\",\n type: \"object\",\n additionalProperties: !1,\n properties: {\n allowManualRetry: {\n type: \"boolean\"\n },\n accept: {\n additionalProperties: !1,\n oneOf: [{\n type: \"string\"\n }, {\n type: \"array\",\n minItems: 1,\n items: [{\n type: \"string\"\n }]\n }]\n },\n acceptFn: {\n format: \"callback\"\n },\n websearch: {\n type: \"object\",\n properties: {\n predefinedText: {\n type: \"string\"\n }\n }\n },\n fromSources: {\n type: \"array\",\n items: [{\n type: [\"string\", \"object\"],\n additionalProperties: !1,\n enum: [\"local_file_system\", \"url\", \"imagesearch\", \"facebook\", \"instagram\", \"googledrive\", \"unsplash\", \"dropbox\", \"webcam\", \"video\", \"audio\", \"box\", \"github\", \"gmail\", \"googlephotos\", \"onedrive\", \"onedriveforbusiness\", \"clouddrive\", \"googlephotos\", \"customsource\", \"tint\"]\n }]\n },\n container: {\n format: \"HTMLContainer\"\n },\n cleanupImageExif: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n keepOrientation: {\n type: \"boolean\"\n },\n keepICCandAPP: {\n type: \"boolean\"\n }\n }\n }]\n },\n displayMode: {\n type: \"string\",\n enum: [\"inline\", \"overlay\", \"dropPane\"]\n },\n concurrency: {\n type: \"integer\",\n minimum: 1,\n maximum: 20\n },\n supportEmail: {\n type: \"string\"\n },\n customSourceContainer: {\n type: \"string\"\n },\n customSourcePath: {\n type: \"string\"\n },\n customSourceName: {\n type: \"string\"\n },\n disableStorageKey: {\n type: \"boolean\"\n },\n disableTransformer: {\n type: \"boolean\"\n },\n disableThumbnails: {\n type: \"boolean\"\n },\n exposeOriginalFile: {\n type: \"boolean\"\n },\n globalDropZone: {\n type: \"boolean\"\n },\n hideModalWhenUploading: {\n type: \"boolean\"\n },\n imageDim: {\n type: \"array\",\n minItems: 2,\n maxItems: 2,\n items: [{\n type: \"integer\",\n minimum: 1\n }]\n },\n imageMax: {\n type: \"array\",\n minItems: 2,\n maxItems: 2,\n items: [{\n type: \"integer\",\n minimum: 1\n }]\n },\n imageMin: {\n type: \"array\",\n minItems: 2,\n maxItems: 2,\n items: [{\n type: \"integer\",\n minimum: 1\n }]\n },\n imageMinMaxBlock: {\n type: \"boolean\",\n default: !1\n },\n lang: {\n type: \"string\",\n enum: [\"ca\", \"da\", \"de\", \"en\", \"es\", \"fr\", \"he\", \"it\", \"ja\", \"ko\", \"nl\", \"no\", \"pl\", \"pt\", \"sv\", \"ru\", \"vi\", \"zh\", \"tr\", \"ar\"]\n },\n minFiles: {\n type: \"integer\",\n minimum: 1,\n maximum: 1e6\n },\n maxFiles: {\n type: \"integer\",\n minimum: 1,\n maximum: 1e6\n },\n maxSize: {\n type: \"integer\",\n minimum: 1\n },\n modalSize: {\n type: \"array\",\n minItems: 2,\n maxItems: 2,\n items: [{\n type: \"integer\",\n minimum: 1,\n maximum: 1e6\n }]\n },\n rootId: {\n type: \"string\"\n },\n startUploadingWhenMaxFilesReached: {\n type: \"boolean\"\n },\n uploadInBackground: {\n type: \"boolean\"\n },\n videoResolution: {\n type: \"string\"\n },\n onCancel: {\n format: \"callback\"\n },\n onClose: {\n format: \"callback\"\n },\n onOpen: {\n format: \"callback\"\n },\n onFileSelected: {\n format: \"callback\"\n },\n onFileUploadCancel: {\n format: \"callback\"\n },\n onFileUploadStarted: {\n format: \"callback\"\n },\n onFileUploadFinished: {\n format: \"callback\"\n },\n onFileUploadFailed: {\n format: \"callback\"\n },\n onFileUploadProgress: {\n format: \"callback\"\n },\n onUploadStarted: {\n format: \"callback\"\n },\n onUploadDone: {\n format: \"callback\"\n },\n onFileCropped: {\n format: \"callback\"\n },\n storeTo: {\n additionalProperties: !1,\n type: \"object\",\n properties: {\n filename: {\n type: \"string\"\n },\n location: {\n $ref: \"locationsDef\"\n },\n container: {\n type: \"string\"\n },\n path: {\n type: \"string\"\n },\n region: {\n type: \"string\"\n },\n access: {\n type: \"string\",\n enum: [\"public\", \"private\"]\n },\n workflows: {\n $ref: \"workflowsDef\"\n }\n }\n },\n viewType: {\n type: \"string\",\n enum: [\"grid\", \"list\"]\n },\n transformations: {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n circle: {\n type: \"boolean\"\n },\n rotate: {\n type: \"boolean\"\n },\n force: {\n type: \"boolean\"\n },\n crop: {\n oneOf: [{\n type: \"boolean\"\n }, {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n force: {\n type: \"boolean\"\n },\n aspectRatio: {\n type: \"number\"\n }\n }\n }]\n }\n }\n },\n customText: {\n type: \"object\",\n patternProperties: {\n \".*\": {\n type: \"string\"\n }\n }\n },\n cropFiles: {\n type: \"array\",\n minItems: 1\n },\n loadCss: {\n type: \"string\"\n },\n failOverMaxFiles: {\n type: \"boolean\"\n },\n dropPane: {\n type: \"object\",\n properties: {\n cropFiles: {\n type: \"array\",\n minItems: 1\n },\n customText: {\n type: \"string\"\n },\n disableClick: {\n type: \"boolean\"\n },\n overlay: {\n type: \"boolean\"\n },\n showIcon: {\n type: \"boolean\"\n },\n showProgress: {\n type: \"boolean\"\n },\n onDragEnter: {\n format: \"callback\"\n },\n onProgress: {\n format: \"callback\"\n },\n onDragLeave: {\n format: \"callback\"\n },\n onDragOver: {\n format: \"callback\"\n },\n onDrop: {\n format: \"callback\"\n },\n onSuccess: {\n format: \"callback\"\n },\n onError: {\n format: \"callback\"\n },\n onClick: {\n format: \"callback\"\n }\n }\n },\n errorsTimeout: {\n type: \"number\",\n minimum: 0\n },\n customAuthText: {\n type: \"object\",\n patternProperties: {\n \".*\": {\n additionalProperties: !1,\n type: \"object\",\n required: [\"top\", \"bottom\"],\n properties: {\n top: {\n type: \"string\"\n },\n bottom: {\n type: \"string\"\n }\n }\n }\n }\n },\n uploadConfig: {\n type: \"object\",\n additionalProperties: !1,\n properties: Object(p.a)(Object(p.a)({}, Dt.properties), {\n tags: {\n type: \"object\",\n additionalProperties: {\n anyOf: [{\n type: \"string\"\n }, {\n format: \"callback\"\n }]\n }\n }\n })\n },\n useSentryBreadcrumbs: {\n type: \"boolean\"\n },\n pasteMode: {\n type: \"object\",\n additionalProperties: !1,\n properties: {\n pasteToFirstInViewPort: {\n type: \"boolean\"\n },\n pasteToFirstInstance: {\n type: \"boolean\"\n }\n }\n }\n }\n },\n Lt = {\n $schema: \"http://json-schema.org/draft-07/schema#\",\n title: \"Filestack Metadata\",\n description: \"Filestack Metadata Options\",\n type: \"object\",\n additionalProperties: !1,\n properties: {\n size: {\n type: \"boolean\"\n },\n mimetype: {\n type: \"boolean\"\n },\n filename: {\n type: \"boolean\"\n },\n width: {\n type: \"boolean\"\n },\n metadata: {\n type: \"boolean\"\n },\n height: {\n type: \"boolean\"\n },\n uploaded: {\n type: \"boolean\"\n },\n writeable: {\n type: \"boolean\"\n },\n cloud: {\n type: \"boolean\"\n },\n sourceUrl: {\n type: \"boolean\"\n },\n md5: {\n type: \"boolean\"\n },\n sha1: {\n type: \"boolean\"\n },\n sha224: {\n type: \"boolean\"\n },\n sha256: {\n type: \"boolean\"\n },\n sha384: {\n type: \"boolean\"\n },\n sha512: {\n type: \"boolean\"\n },\n location: {\n type: \"boolean\"\n },\n path: {\n type: \"boolean\"\n },\n container: {\n type: \"boolean\"\n },\n exif: {\n type: \"boolean\"\n }\n }\n },\n Nt = {\n $schema: \"http://json-schema.org/draft-07/schema#\",\n title: \"Filestack Retrieve\",\n description: \"Filestack Retrieve Options\",\n type: \"object\",\n additionalProperties: !1,\n properties: {\n metadata: {\n type: \"boolean\"\n },\n head: {\n type: \"boolean\"\n },\n dl: {\n type: \"boolean\"\n },\n cache: {\n type: \"boolean\"\n },\n extension: {\n type: \"string\"\n }\n }\n },\n zt = r(5),\n Bt = r(12),\n Mt = st()(\"fs:request:dispatch\"),\n Rt = function () {\n function t(t) {\n this.adapter = t;\n }\n return t.prototype.request = function (t) {\n var e = this;\n return t.headers = t.headers || {}, Mt(\"Dispatching request %O\", t), this.adapter.request(t).catch(function (t) {\n return Mt('Request error \"%s\": %O', t, t.response), e.retry(t);\n });\n }, t.prototype.retry = function (t) {\n var e = this,\n r = t.config;\n if (!Object(Bt.a)(t)) return Mt(\"[Retry] Request error is not retriable. Exiting\"), Promise.reject(t);\n if (!r.retry) return Mt(\"[Retry] Retry config not found. Exiting\"), Promise.reject(t);\n var n = r.retry,\n i = r.runtime && r.runtime.retryCount ? r.runtime.retryCount : 0;\n if (n.retry && n.retry <= i) return Mt(\"[Retry] Retry attempts reached %d. Exiting\", i), Promise.reject(t);\n var o = Math.max(Math.min(n.retryMaxTime, 1e3 * Math.pow(n.retryFactor, i)), 1);\n return r.runtime = Object(p.a)(Object(p.a)({}, r.runtime), {\n retryCount: i + 1\n }), Mt(\"[Retry] Retrying request to \".concat(r.url, \", count \").concat(i, \" of \").concat(n.retry, \" - Delay: \").concat(o)), new Promise(function (t) {\n setTimeout(function () {\n return t(e.request(r));\n }, o);\n });\n }, t;\n }(),\n $t = r(55).XhrAdapter,\n Ut = function () {\n function t(t) {\n this.defaults = t, this.dispatcher = new Rt(new $t());\n }\n return t.getInstance = function () {\n return t.instance || (t.instance = new t()), t.instance;\n }, t.prototype.dispatch = function (t) {\n return t.method || (t.method = zt.a.GET), this.dispatcher.request(Object.assign({}, this.defaults, t));\n }, t.dispatch = function (e, r) {\n return t.getInstance().dispatch(Object.assign({}, r || {}, {\n url: e\n }));\n }, t.get = function (e, r) {\n return t.getInstance().dispatch(Object.assign({}, r || {}, {\n method: zt.a.GET,\n url: e\n }));\n }, t.head = function (e, r) {\n return t.getInstance().dispatch(Object.assign({}, r || {}, {\n method: zt.a.HEAD,\n url: e\n }));\n }, t.options = function (e, r) {\n return t.getInstance().dispatch(Object.assign({}, r || {}, {\n method: zt.a.OPTIONS,\n url: e\n }));\n }, t.purge = function (e, r) {\n return t.getInstance().dispatch(Object.assign({}, r || {}, {\n method: zt.a.PURGE,\n url: e\n }));\n }, t.delete = function (e, r) {\n return t.getInstance().dispatch(Object.assign({}, r || {}, {\n method: zt.a.DELETE,\n url: e\n }));\n }, t.post = function (e, r, n) {\n return t.getInstance().dispatch(Object.assign({}, n || {}, {\n method: zt.a.POST,\n url: e,\n data: r\n }));\n }, t.put = function (e, r, n) {\n return t.getInstance().dispatch(Object.assign({}, n || {}, {\n method: zt.a.PUT,\n url: e,\n data: r\n }));\n }, t.path = function (e, r, n) {\n return t.getInstance().dispatch(Object.assign({}, n || {}, {\n method: zt.a.PATH,\n url: e,\n data: r\n }));\n }, t;\n }(),\n qt = r(2),\n Vt = function (t) {\n function e() {\n return null !== t && t.apply(this, arguments) || this;\n }\n return Object(p.c)(e, t), e.prototype.cancel = function (t) {\n this.emit(\"cancel\", t), this.removeAllListeners();\n }, e;\n }(l.EventEmitter),\n Gt = function (t, e, r, n) {\n if (!e || \"string\" != typeof e) throw new X(\"A valid Filestack handle is required for remove\");\n if (!(t.policy && t.signature || n && n.policy && n.signature)) throw new X(\"Security policy and signature are required for remove\");\n var i = t.urls.fileApiUrl,\n o = \"\".concat(i, \"/\").concat(e),\n a = {\n key: t.apikey,\n policy: n && n.policy || t.policy,\n signature: n && n.signature || t.signature\n };\n return r && (a.skip_storage = !0), Ut.delete(o, {\n filestackHeaders: !1,\n params: Object(ot.removeEmpty)(a)\n });\n };\n function Zt(t) {\n return (Zt = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n var Ht, Wt, Yt, Qt, Kt, Jt, Xt, te, ee, re, ne, ie, oe, ae, se, ce, ue, pe, le;\n !function (t) {\n t.left = \"left\", t.right = \"right\", t.center = \"center\", t.bottom = \"bottom\", t.top = \"top\";\n }(Ht || (Ht = {})), function (t) {\n t.left = \"left\", t.right = \"right\", t.center = \"center\", t.bottom = \"bottom\", t.top = \"top\", t.faces = \"faces\";\n }(Wt || (Wt = {})), function (t) {\n t.clip = \"clip\", t.crop = \"crop\", t.scale = \"scale\", t.max = \"max\";\n }(Yt || (Yt = {})), function (t) {\n t.linear = \"linear\", t.gaussian = \"gaussian\";\n }(Qt || (Qt = {})), function (t) {\n t.oval = \"oval\", t.rect = \"rect\";\n }(Kt || (Kt = {})), function (t) {\n t.none = \"none\", t.low = \"low\", t.medium = \"medium\", t.high = \"high\";\n }(Jt || (Jt = {})), function (t) {\n t.artwork = \"artwork\", t.photo = \"photo\";\n }(Xt || (Xt = {})), function (t) {\n t.RGB = \"RGB\", t.CMYK = \"CMYK\", t.Input = \"Input\";\n }(te || (te = {})), function (t) {\n t.thumb = \"thumb\", t.crop = \"crop\", t.fill = \"fill\";\n }(ee || (ee = {})), function (t) {\n t.fit = \"fit\", t.auto = \"auto\";\n }(re || (re = {})), function (t) {\n t.top = \"top\", t.middle = \"middle\", t.bottom = \"bottom\", t.left = \"left\", t.center = \"center\", t.right = \"right\";\n }(ne || (ne = {})), function (t) {\n t.libmp3lame = \"libmp3lame\", t.libvorbis = \"libvorbis\", t.libfdk_aac = \"libfdk_aac\", t.dib_ac3 = \"dib_ac3\", t.pcm_s16le = \"pcm_s16le\", t.mp2 = \"mp2\", t.ac3 = \"ac3\", t.eac3 = \"eac3\";\n }(ie || (ie = {})), function (t) {\n t.h264 = \"h264\", t.h264_hi = \"h264.hi\", t.webm = \"webm\", t[\"webm-hi\"] = \"webm.hi\", t.ogg = \"ogg\", t[\"ogg-hi\"] = \"ogg.hi\", t[\"hls-variant\"] = \"hls.variant\", t.mp3 = \"mp3\", t.oga = \"oga\", t.m4a = \"m4a\", t.aac = \"aac\", t.hls = \"hls.variant.audio\";\n }(oe || (oe = {})), function (t) {\n t.desktop = \"desktop\", t.mobile = \"mobile\";\n }(ae || (ae = {})), function (t) {\n t.all = \"all\", t.window = \"window\";\n }(se || (se = {})), function (t) {\n t.portrait = \"portrait\", t.landscape = \"landscape\";\n }(ce || (ce = {})), function (t) {\n t.s3 = \"s3\", t.azure = \"azure\", t.gcs = \"gcs\", t.rackspace = \"rackspace\", t.dropbox = \"dropbox\";\n }(ue || (ue = {})), function (t) {\n t.private = \"private\", t.public = \"public\";\n }(pe || (pe = {})), function (t) {\n t.preserve = \"preserve\", t.constrain = \"constrain\", t.letterbox = \"letterbox\", t.pad = \"pad\", t.crop = \"crop\";\n }(le || (le = {}));\n var fe = function (t, e, r, n) {\n void 0 === r && (r = {}), void 0 === n && (n = !1), r = function t(e) {\n for (var r = {}, n = Object.keys(e), i = 0; i < n.length; i++) {\n var o = n[i].split(/(?=[A-Z])/).join(\"_\").toLowerCase();\n \"object\" !== Zt(e[n[i]]) || Array.isArray(e[n[i]]) ? r[o] = e[n[i]] : r[o] = t(e[n[i]]);\n }\n return r;\n }(r), t.policy && t.signature && (r.security = {\n policy: t.policy,\n signature: t.signature\n });\n var i = new Pt(e, t.apikey);\n return i.setCname(t.cname), i.setBase64(n), Object.keys(r).forEach(function (t) {\n (\"boolean\" != typeof r[t] || r[t] || \"cache\" === t) && i.addTask(t, r[t]);\n }), i.toString();\n };\n function de(t) {\n return (de = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (t) {\n return typeof t;\n } : function (t) {\n return t && \"function\" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n })(t);\n }\n var me,\n he = function () {\n function t(t, e) {\n this._file = t, this._sanitizeOptions = e, this._file.name = Object(ot.sanitizeName)(this._file.name, this._sanitizeOptions);\n }\n return Object.defineProperty(t.prototype, \"name\", {\n get: function () {\n return this._file.name;\n },\n set: function (t) {\n this._file.name = Object(ot.sanitizeName)(t, this._sanitizeOptions);\n },\n enumerable: !1,\n configurable: !0\n }), Object.defineProperty(t.prototype, \"filename\", {\n get: function () {\n return this.name;\n },\n enumerable: !1,\n configurable: !0\n }), Object.defineProperty(t.prototype, \"customName\", {\n set: function (t) {\n switch (de(t)) {\n case \"string\":\n this.name = t;\n break;\n case \"function\":\n if (\"string\" != typeof t(this)) throw new Error(\"Name function must return a string. Current return type is \".concat(de(t)));\n this.name = t(this);\n }\n },\n enumerable: !1,\n configurable: !0\n }), Object.defineProperty(t.prototype, \"type\", {\n get: function () {\n return this._file.type || \"application/octet-stream\";\n },\n enumerable: !1,\n configurable: !0\n }), Object.defineProperty(t.prototype, \"mimetype\", {\n get: function () {\n return this.type;\n },\n enumerable: !1,\n configurable: !0\n }), Object.defineProperty(t.prototype, \"size\", {\n get: function () {\n return this._file.size;\n },\n enumerable: !1,\n configurable: !0\n }), t.prototype.getPartsCount = function (t, e) {\n var r = e ? 84825604096 : 63350767616;\n if (this._file.size >= r) {\n var n = Math.ceil(this._file.size / 1e4);\n return {\n partsCount: Math.ceil(this._file.size / n),\n chunkSize: n\n };\n }\n return {\n partsCount: Math.ceil(this._file.size / t),\n chunkSize: t\n };\n }, t.prototype.getPartMetadata = function (t, e) {\n var r = e * t;\n if (r > this._file.size) throw new Error(\"Start byte of the part is higher than buffer size\");\n var n = Math.min(r + e, this._file.size);\n return {\n partNumber: t,\n startByte: r,\n endByte: n,\n size: n - r\n };\n }, t.prototype.getPartByMetadata = function (t, e) {\n return void 0 === e && (e = !0), Object(p.b)(this, void 0, void 0, function () {\n var r;\n return Object(p.d)(this, function (n) {\n switch (n.label) {\n case 0:\n return [4, this._file.slice(t.startByte, t.endByte)];\n case 1:\n return r = n.sent(), [2, Promise.resolve(Object(p.a)(Object(p.a)({}, t), {\n buffer: r,\n md5: e ? Object(ot.md5)(r) : void 0\n }))];\n }\n });\n });\n }, t.prototype.getChunkByMetadata = function (t, e, r, n) {\n return void 0 === n && (n = !0), Object(p.b)(this, void 0, void 0, function () {\n var i, o, a;\n return Object(p.d)(this, function (s) {\n switch (s.label) {\n case 0:\n return i = t.startByte + e, o = Math.min(i + r, t.endByte), [4, this._file.slice(i, o)];\n case 1:\n return a = s.sent(), [2, Promise.resolve(Object(p.a)(Object(p.a)({}, t), {\n buffer: a,\n md5: n ? Object(ot.md5)(a) : void 0,\n size: a.byteLength,\n startByte: i,\n endByte: o,\n offset: e\n }))];\n }\n });\n });\n }, t.prototype.release = function () {\n this._file.release && this._file.release();\n }, t.prototype.toJSON = function () {\n return {\n name: this.name,\n status: this.status,\n type: this.type,\n size: this.size,\n url: this.url,\n handle: this.handle,\n uploadTags: this.uploadTags\n };\n }, t;\n }(),\n ye = /data:([a-zA-Z]*\\/[a-zA-Z]*);base64,([^\\\"]*)/i,\n ve = function (t, e, r) {\n return new Promise(function (n, i) {\n var o = new FileReader(),\n a = r.slice(t, e);\n o.onload = function () {\n return n(o.result);\n }, o.onerror = i, o.readAsArrayBuffer(a);\n });\n },\n ge = function (t, e) {\n var r, n;\n if (function (t) {\n return t && t.file && t.name;\n }(t) && (r = t.name, t = t.file), function (t) {\n return t instanceof File;\n }(t)) n = t, r = t.name;else if (function (t) {\n if (\"string\" != typeof t) return !1;\n t.indexOf(\"base64\") > -1 && (t = t.match(ye).pop());\n try {\n return btoa(atob(t)) === t;\n } catch (t) {\n return !1;\n }\n }(t)) n = function (t, e) {\n void 0 === e && (e = 512);\n var r = \"\";\n if (t.indexOf(\"base64\") > -1) {\n var n = t.match(ye);\n t = n.pop(), r = n[1];\n }\n for (var i = atob(t), o = [], a = 0; a < i.length; a += e) {\n for (var s = i.slice(a, a + e), c = new Array(s.length), u = 0; u < s.length; u += 1) c[u] = s.charCodeAt(u);\n o.push(new Uint8Array(c));\n }\n return new Blob(o, {\n type: r\n });\n }(t);else {\n if (!function (t) {\n return \"[object Blob]\" === t.toString();\n }(t)) return Promise.reject(new X(\"Unsupported input file type\"));\n n = t;\n }\n return function (t) {\n return Object(p.b)(void 0, void 0, void 0, function () {\n return Object(p.d)(this, function (e) {\n return File && FileReader && Blob ? [2, Promise.resolve({\n slice: function (e, r) {\n return ve(e, r, t);\n },\n release: function () {\n t = null;\n }\n })] : [2, Promise.reject(new X(\"The File APIs are not fully supported by your browser\"))];\n });\n });\n }(n).then(function (t) {\n return Object(p.b)(void 0, void 0, void 0, function () {\n var i, o;\n return Object(p.d)(this, function (a) {\n switch (a.label) {\n case 0:\n return i = n.type, 4100, n.type && 0 !== n.type.length && \"text/plain\" !== n.type ? [3, 3] : (o = ot.getMimetype, [4, t.slice(0, 4100)]);\n case 1:\n return [4, o.apply(void 0, [a.sent(), r])];\n case 2:\n i = a.sent(), a.label = 3;\n case 3:\n return [2, new he({\n name: r,\n size: n.size,\n type: i,\n slice: t.slice,\n release: t.release\n }, e)];\n }\n });\n });\n });\n },\n be = r(31),\n xe = r.n(be),\n we = r(9),\n ke = st()(\"fs:upload:abstract\"),\n _e = function (t) {\n function e(e, r) {\n void 0 === r && (r = 3);\n var n = t.call(this) || this;\n return n.storeOptions = e, n.concurrency = r, n.partSize = 6291456, n.intelligentChunkSize = Object(ot.isMobile)() ? 1048576 : 8388608, n.timeout = 3e4, n.uploadMode = \"default\", n.isModeLocked = !1, n.integrityCheck = !0, n.uploadTags = null, n;\n }\n return Object(p.c)(e, t), e.prototype.setSecurity = function (t) {\n ke(\"Set security %O\", t), this.security = t;\n }, e.prototype.setApikey = function (t) {\n ke(\"Set apikey to \".concat(t)), this.apikey = t;\n }, e.prototype.setTimeout = function (t) {\n ke(\"Set request timeout to \".concat(t)), this.timeout = t;\n }, e.prototype.setRetryConfig = function (t) {\n ke(\"Set retry config to \".concat(t)), this.retryConfig = t;\n }, e.prototype.setUrl = function (t) {\n ke(\"Set upload url to \".concat(t)), this.url = t;\n }, e.prototype.setUploadTags = function (t) {\n ke(\"Set tags to %O\", t), this.uploadTags = t;\n }, e.prototype.setIntegrityCheck = function (t) {\n this.integrityCheck = t;\n }, e.prototype.setUploadMode = function (t, e) {\n void 0 === e && (e = !1), !0 !== this.isModeLocked ? (this.isModeLocked = e, ke(\"Set upload mode to \".concat(t)), this.uploadMode = t) : ke(\"Cannot switch mode to \".concat(t, \". Locked! Probably mode is not supported at this apikey\"));\n }, e.prototype.setPartSize = function (t) {\n if (\"default\" === this.uploadMode) {\n if (ke(\"Set part size to \".concat(t)), t < 5242880) throw new X(\"Minimum part size is 5MB\");\n this.partSize = t;\n } else ke(\"Cannot set part size because upload mode is other than default. \");\n }, e.prototype.getPartSize = function () {\n return this.partSize;\n }, e.prototype.setIntelligentChunkSize = function (t) {\n if (ke(\"Set inteligent chunk size to \".concat(t)), t < 32768) throw new X(\"Minimum intelligent chunk size is \".concat(32768));\n this.intelligentChunkSize = t;\n }, e.prototype.getIntelligentChunkSize = function () {\n return this.intelligentChunkSize;\n }, e.prototype.getUrl = function () {\n if (!this.url) throw new X(\"Upload url not set\");\n return this.url;\n }, e;\n }(f.a),\n Fe = st()(\"fs:upload:s3\"),\n Ee = function (t) {\n function e(e, r) {\n var n = t.call(this, e, r) || this;\n return n.payloads = {}, n.partsQueue = new xe.a({\n autoStart: !1,\n concurrency: n.concurrency\n }), n.cancelToken = new Vt(), n;\n }\n return Object(p.c)(e, t), e.prototype.pause = function () {\n this.partsQueue.pause();\n }, e.prototype.resume = function () {\n this.partsQueue.isPaused && this.partsQueue.start();\n }, e.prototype.abort = function (t) {\n this.partsQueue.pause(), this.partsQueue.clear(), this.cancelToken.cancel(t || \"Aborted by user\");\n }, e.prototype.execute = function () {\n return Object(p.b)(this, void 0, void 0, function () {\n var t,\n e = this;\n return Object(p.d)(this, function (r) {\n return t = Object.keys(this.payloads).map(function (t) {\n return new Promise(function (r) {\n return Object(p.b)(e, void 0, void 0, function () {\n var e, n;\n return Object(p.d)(this, function (i) {\n switch (i.label) {\n case 0:\n return i.trys.push([0, 5,, 6]), [4, this.startRequest(t)];\n case 1:\n return i.sent(), [4, this.prepareParts(t)];\n case 2:\n return i.sent(), [4, this.startPartsQueue(t)];\n case 3:\n return i.sent(), [4, this.completeRequest(t)];\n case 4:\n return i.sent(), [3, 6];\n case 5:\n return e = i.sent(), this.emit(\"error\", e), Fe(\"[\".concat(t, \"] File upload failed. %O, \\nDetails: %O \"), e.message, e.details), [3, 6];\n case 6:\n return (n = this.getPayloadById(t).file).release(), delete this.payloads[t], r(n), [2];\n }\n });\n });\n });\n }), [2, Promise.all(t)];\n });\n });\n }, e.prototype.addFile = function (t) {\n Fe(\"Add file to queue: \\n %o\", t);\n var e = \"\".concat(Object(ot.uniqueId)(15), \"_\").concat(Object(ot.uniqueTime)());\n return t.status = \"Initialized\", this.payloads[e] = {\n file: t,\n parts: []\n }, e;\n }, e.prototype.getUploadUrl = function (t) {\n var e = this.getDefaultFields(t, [\"location_url\"]).location_url;\n return 0 === e.indexOf(\"http\") ? e : \"https://\".concat(e);\n }, e.prototype.getStoreOptions = function (t) {\n var e = Object(p.a)({\n location: \"s3\"\n }, this.storeOptions);\n if (this.storeOptions.disableStorageKey) {\n var r = this.getPayloadById(t);\n e.path && \"/\" !== e.path.substr(-1) && (e.path = \"\".concat(e.path, \"/\")), e.path = \"\".concat(e.path ? e.path : \"/\").concat(r.file.name), delete e.disableStorageKey;\n }\n return e;\n }, e.prototype.getDefaultFields = function (t, e, r) {\n void 0 === r && (r = !1);\n var n = this.getPayloadById(t),\n i = Object(p.a)(Object(p.a)({}, this.security), {\n apikey: this.apikey,\n uri: n.uri,\n location_url: n.location_url,\n upload_id: n.upload_id,\n region: n.region\n });\n return (\"intelligent\" === this.uploadMode || \"fallback\" === this.uploadMode && r) && (i.fii = !0), Object(p.a)(Object(p.a)({}, Object(ot.filterObject)(i, e)), {\n store: this.getStoreOptions(t)\n });\n }, e.prototype.getDefaultHeaders = function (t) {\n var e = {},\n r = this.getPayloadById(t);\n return r.location_region && (e[\"Filestack-Upload-Region\"] = r.location_region), e;\n }, e.prototype.getPayloadById = function (t) {\n return this.payloads[t];\n }, e.prototype.prepareParts = function (t) {\n var e = this.getPayloadById(t).file,\n r = !1;\n [\"intelligent\", \"fallback\"].indexOf(this.uploadMode) > -1 && (this.partSize = 8388608, r = !0);\n for (var n = e.getPartsCount(this.partSize, r), i = n.partsCount, o = n.chunkSize, a = [], s = 0; s < i; s++) a[s] = Object(p.a)(Object(p.a)({}, e.getPartMetadata(s, o)), {\n offset: 0\n });\n return this.payloads[t].parts = a, Promise.resolve();\n }, e.prototype.startRequest = function (t) {\n var e = this,\n r = this.getPayloadById(t);\n return 0 === r.file.size ? (this.setPayloadStatus(t, \"Failed\"), Promise.reject(new X('Invalid file \"'.concat(r.file.name, '\" size - 0'), {}, K.VALIDATION))) : (Fe(\"[\".concat(t, \"] Make start request\")), Ut.post(\"\".concat(this.getUrl(), \"/multipart/start\"), Object(p.a)({\n filename: r.file.name,\n mimetype: r.file.type,\n size: r.file.size\n }, this.getDefaultFields(t, [\"apikey\", \"policy\", \"signature\", \"fii\"], !0)), {\n timeout: this.timeout,\n cancelToken: this.cancelToken,\n headers: this.getDefaultHeaders(t),\n retry: this.retryConfig\n }).then(function (r) {\n var n = r.data;\n return n && n.location_url && n.region && n.upload_id && n.uri ? (Fe(\"[\".concat(t, \"] Assign payload data: \\n%O\\n\"), n), e.updatePayload(t, n), [\"intelligent\", \"fallback\"].indexOf(e.uploadMode) > -1 && (!n.upload_type || \"intelligent_ingestion\" !== n.upload_type) && (Fe(\"[\".concat(t, \"] Intelligent Ingestion is not enabled on account, switch back to regular upload and lock mode change\")), e.setUploadMode(\"default\", !0)), n) : (Fe(\"[\".concat(t, \"] Incorrect start response: \\n%O\\n\"), n), e.setPayloadStatus(t, \"Failed\"), Promise.reject(new X(\"Incorrect start response\", n, K.REQUEST)));\n }).catch(function (r) {\n return Fe(\"[\".concat(t, \"] Start request error %O\"), r), e.setPayloadStatus(t, \"Failed\"), e.rejectUpload(\"Cannot upload file. Start request failed\", r);\n }));\n }, e.prototype.startPartsQueue = function (t) {\n return Object(p.b)(this, void 0, void 0, function () {\n var e,\n r,\n n,\n i = this;\n return Object(p.d)(this, function (o) {\n return e = this.getPayloadById(t), r = e.parts, n = r.length, Fe(\"[\".concat(t, \"] Create uploading queue from file. parts count - %d\"), n), [2, new Promise(function (e, n) {\n return Object(p.b)(i, void 0, void 0, function () {\n var i,\n o = this;\n return Object(p.d)(this, function (a) {\n switch (a.label) {\n case 0:\n return r.forEach(function (e) {\n return o.partsQueue.add(function () {\n return o.startPart(t, e.partNumber);\n }).catch(function (e) {\n return o.setPayloadStatus(t, \"Failed\"), Fe(\"[\".concat(t, \"] Failed to upload part %s\"), e.message), o.partsQueue.pause(), o.partsQueue.clear(), n(e);\n });\n }), Fe(\"[\".concat(t, \"] All tasks for %s enqueued. Start processing main upload queue\"), t), this.emit(\"start\"), this.partsQueue.start(), i = e, [4, this.partsQueue.onIdle()];\n case 1:\n return i.apply(void 0, [a.sent()]), [2];\n }\n });\n });\n })];\n });\n });\n }, e.prototype.startPart = function (t, e) {\n return Fe(\"[\".concat(t, \"] Start processing part \").concat(e, \" with mode \").concat(this.uploadMode)), this.getPayloadById(t).file.status = \"Progress\", (\"intelligent\" !== this.uploadMode ? this.uploadRegular : this.uploadIntelligent).apply(this, [t, e]);\n }, e.prototype.getS3PartMetadata = function (t, e, r) {\n var n = this,\n i = this.getUploadUrl(t);\n Fe(\"[\".concat(t, \"] Get data for part \").concat(e.partNumber, \", url \").concat(i, \", Md5: \").concat(e.md5, \", Size: \").concat(e.size));\n var o = Object(p.a)(Object(p.a)({}, this.getDefaultFields(t, [\"apikey\", \"uri\", \"region\", \"signature\", \"policy\", \"upload_id\", \"fii\"])), {\n part: e.partNumber + 1,\n size: e.size,\n offset: r\n });\n return this.integrityCheck && e.md5 && (o.md5 = e.md5), Ut.post(\"\".concat(i, \"/multipart/upload\"), o, {\n headers: this.getDefaultHeaders(t),\n cancelToken: this.cancelToken,\n timeout: this.timeout,\n retry: this.retryConfig\n }).catch(function (e) {\n return n.setPayloadStatus(t, \"Failed\"), n.rejectUpload(\"Cannot get part metadata\", e);\n });\n }, e.prototype.uploadRegular = function (t, e) {\n return Object(p.b)(this, void 0, void 0, function () {\n var r,\n n,\n i,\n o,\n a,\n s,\n c = this;\n return Object(p.d)(this, function (u) {\n switch (u.label) {\n case 0:\n return r = this.getPayloadById(t), n = r.parts[e], [4, r.file.getPartByMetadata(n, this.integrityCheck)];\n case 1:\n return i = u.sent(), [4, this.getS3PartMetadata(t, i)];\n case 2:\n return o = u.sent(), a = o.data, s = o.headers, Fe(\"[\".concat(t, \"] Received part \").concat(e, \" info body: \\n%O\\n headers: \\n%O\\n\"), a, s), [2, Ut.put(a.url, i.buffer, {\n cancelToken: this.cancelToken,\n timeout: this.timeout,\n headers: a.headers,\n filestackHeaders: !1,\n onProgress: function (r) {\n return c.onProgressUpdate(t, e, r.loaded);\n },\n retry: this.retryConfig && \"fallback\" !== this.uploadMode ? this.retryConfig : void 0\n }).then(function (r) {\n if (!r.headers.etag) throw i = null, new X(\"Cannot upload file, check S3 bucket settings\", \"Etag header is not exposed in CORS settings\", K.REQUEST);\n return c.setPartETag(t, e, r.headers.etag), Fe(\"[\".concat(t, \"] S3 Upload response headers for \").concat(e, \": \\n%O\\n\"), r.headers), c.onProgressUpdate(t, e, i.size), i = null, r;\n }).catch(function (r) {\n var n = r && r.response ? r.response : null;\n if (n && 403 === n.status && n.data && n.data.Error && n.data.Error.code) {\n var o = n.data.Error.code;\n switch (Array.isArray(o) && (o = o.pop()), o) {\n case \"RequestTimeTooSkewed\":\n return c.startPart(t, e);\n default:\n return Promise.reject(new X(\"Cannot upload file\", n.data.Error, K.REQUEST));\n }\n }\n return i = null, r instanceof X ? Promise.reject(r) : (c.onProgressUpdate(t, e, 0), \"fallback\" === c.uploadMode && !c.isModeLocked || \"intelligent\" === c.uploadMode ? (Fe(\"[\".concat(t, \"] Regular upload failed. Switching to intelligent ingestion mode\")), c.setUploadMode(\"intelligent\"), c.startPart(t, e)) : c.rejectUpload(\"Cannot upload file part\", r));\n })];\n }\n });\n });\n }, e.prototype.uploadIntelligent = function (t, e) {\n return Object(p.b)(this, void 0, void 0, function () {\n var r = this;\n return Object(p.d)(this, function (n) {\n return [2, this.uploadNextChunk(t, e).then(function () {\n return r.commitPart(t, e);\n })];\n });\n });\n }, e.prototype.uploadNextChunk = function (t, e, r) {\n return void 0 === r && (r = this.intelligentChunkSize), Object(p.b)(this, void 0, void 0, function () {\n var n,\n i,\n o,\n a,\n s = this;\n return Object(p.d)(this, function (c) {\n switch (c.label) {\n case 0:\n return n = this.getPayloadById(t), i = n.parts[e], r = i.size - i.offset, [4, n.file.getChunkByMetadata(i, i.offset, r, this.integrityCheck)];\n case 1:\n return o = c.sent(), Fe(\"[\".concat(t, \"] PartNum: \").concat(e, \", PartSize: \").concat(i.size, \", StartByte: \").concat(i.startByte, \", Offset: \").concat(i.offset, \", ChunkSize: \").concat(o.size, \",\\n Left: \").concat(i.size - i.offset - o.size)), [4, this.getS3PartMetadata(t, o, i.offset).catch(function (n) {\n return Fe(\"[\".concat(t, \"] Getting chunk data for ii failed %O, Chunk size: \").concat(r, \", offset \").concat(i.offset, \", part \").concat(e), n), Promise.reject(n);\n })];\n case 2:\n return a = c.sent().data, [2, Ut.put(a.url, o.buffer, {\n cancelToken: this.cancelToken,\n timeout: this.timeout,\n headers: a.headers,\n filestackHeaders: !1,\n onProgress: function (r) {\n return i ? s.onProgressUpdate(t, e, i.offset + r.loaded) : null;\n }\n }).then(function (n) {\n s.onProgressUpdate(t, e, i.offset + o.size);\n var a = Math.min(i.offset + r, i.size);\n return Fe(\"[\".concat(t, \"] S3 Chunk uploaded! offset: \").concat(i.offset, \", part \").concat(e, \"! response headers for \").concat(e, \": \\n%O\\n\"), n.headers), s.setPartData(t, e, \"offset\", a), a === i.size ? Promise.resolve(n) : (i = null, o = null, s.uploadNextChunk(t, e, r));\n }).catch(function (n) {\n var a = n && n.response ? n.response : null;\n if (a && 403 === a.status && a.data && a.data.Error && a.data.Error.code) {\n var c = a.data.Error.code;\n switch (Array.isArray(c) && (c = c.pop()), c) {\n case \"RequestTimeTooSkewed\":\n return s.startPart(t, e);\n default:\n return Promise.reject(new X(\"Cannot upload file\", a.data.Error, K.REQUEST));\n }\n }\n s.onProgressUpdate(t, e, i.offset);\n var u = Math.ceil(r / 2);\n return u < 32768 ? (Fe(\"[\".concat(t, \"] Minimal chunk size limit. Upload file failed!\")), Promise.reject(new X(\"Min chunk size reached\", n.data, K.REQUEST))) : Object(we.e)(n) ? (Fe(\"[\".concat(t, \"] Request network error. Retry with new chunk size: \").concat(u)), s.uploadNextChunk(t, e, u)) : (i = null, o = null, s.rejectUpload(\"Cannot upload file part (FII)\", n));\n })];\n }\n });\n });\n }, e.prototype.commitPart = function (t, e) {\n var r = this,\n n = this.getPayloadById(t),\n i = n.parts[e];\n return Ut.post(\"\".concat(this.getUploadUrl(t), \"/multipart/commit\"), Object(p.a)(Object(p.a)({}, this.getDefaultFields(t, [\"apikey\", \"region\", \"upload_id\", \"policy\", \"signature\", \"uri\"])), {\n size: n.file.size,\n part: i.partNumber + 1\n }), {\n cancelToken: this.cancelToken,\n timeout: this.timeout,\n headers: this.getDefaultHeaders(t),\n retry: this.retryConfig\n }).then(function (e) {\n return Fe(\"[\".concat(t, \"] Commit Part number \").concat(i.partNumber, \". Response: %O\"), e.data), e;\n }).catch(function (t) {\n return r.rejectUpload(\"Cannot commit file part metadata\", t);\n });\n }, e.prototype.completeRequest = function (t) {\n var e = this,\n r = this.getPayloadById(t),\n n = [];\n Fe(\"[\".concat(t, \"] Run complete request\"));\n for (var i = r.parts, o = i.length, a = 0; a < o; a++) i[a].etag && n.push({\n part_number: a + 1,\n etag: i[a].etag\n });\n return Fe(\"[\".concat(t, \"] Etags %O\"), n), Ut.post(\"\".concat(this.getUploadUrl(t), \"/multipart/complete\"), Object(p.a)(Object(p.a)({}, this.getDefaultFields(t, [\"apikey\", \"policy\", \"signature\", \"uri\", \"region\", \"upload_id\", \"fii\"], !0)), {\n filename: r.file.name,\n mimetype: r.file.type,\n size: r.file.size,\n upload_tags: this.uploadTags && Object.keys(this.uploadTags).length ? this.uploadTags : void 0,\n parts: n.length ? n : void 0\n }), {\n timeout: this.timeout,\n cancelToken: this.cancelToken,\n headers: this.getDefaultHeaders(t),\n retry: this.retryConfig\n }).then(function (r) {\n if (202 === r.status) return new Promise(function (r, n) {\n setTimeout(function () {\n return e.completeRequest(t).then(r).catch(n);\n }, 1e3);\n });\n var n = e.getPayloadById(t).file;\n return n.handle = r.data.handle, n.url = r.data.url, n.container = r.data.container, n.key = r.data.key, n.uploadTags = r.data.upload_tags, n.workflows = r.data.workflows, n.status = r.data.status, n;\n }).catch(function (r) {\n return e.setPayloadStatus(t, \"Failed\"), e.rejectUpload(\"Cannot complete file\", r);\n });\n }, e.prototype.onProgressUpdate = function (t, e, r) {\n this.setPartData(t, e, \"progress\", r), this.emitProgress();\n }, e.prototype.emitProgress = function () {\n var t = 0,\n e = 0,\n r = {};\n for (var n in this.payloads) {\n var i = this.payloads[n];\n if (\"Failed\" !== i.file.status) {\n var o = i.parts.map(function (t) {\n return t.progress || 0;\n }).reduce(function (t, e) {\n return t + e;\n }, 0);\n e += o, r[n] = {\n totalBytes: o,\n totalPercent: Math.round(100 * o / i.file.size) || 0\n }, t += i.file.size;\n }\n }\n var a = {\n totalBytes: e || 0,\n totalPercent: Math.round(100 * e / t) || 0,\n files: r\n };\n Fe(\"Upload progress %O\", a), this.emit(\"progress\", a);\n }, e.prototype.updatePayload = function (t, e) {\n this.payloads[t] = Object(p.a)(Object(p.a)({}, this.payloads[t]), e);\n }, e.prototype.setPartETag = function (t, e, r) {\n Fe(\"[\".concat(t, \"] Set \").concat(r, \" etag for part \").concat(e)), this.getPayloadById(t).parts[e].etag = r;\n }, e.prototype.setPartData = function (t, e, r, n) {\n Fe(\"[\".concat(t, \"] Set \").concat(r, \" = \").concat(n, \" for part \").concat(e));\n var i = this.getPayloadById(t);\n i ? i.parts[e][r] = n : Fe(\"[\".concat(t, \"] Cannot set \").concat(r, \" = \").concat(n, \" for part \").concat(e));\n }, e.prototype.setPayloadStatus = function (t, e) {\n Fe(\"[\".concat(t, \"] Set payload status to \").concat(e)), this.payloads[t] && (this.payloads[t].file.status = e);\n }, e.prototype.parseError = function (t) {\n return t.response ? {\n code: t.response.status,\n data: t.response.data,\n headers: t.response.headers\n } : {};\n }, e.prototype.rejectUpload = function (t, e) {\n return e instanceof qt.a && e.code === qt.b.ABORTED ? Promise.reject(new X(t, {\n reason: e.message\n }, K.ABORTED)) : Promise.reject(new X(t, this.parseError(e), K.REQUEST));\n }, e;\n }(_e),\n Oe = function (t, e) {\n return t.totalBytes = Math.max(t.totalBytes, e.totalBytes), t.totalPercent = Math.max(t.totalPercent, e.totalPercent), t;\n },\n je = function (t) {\n function e(e, r) {\n void 0 === e && (e = {}), void 0 === r && (r = {});\n var n = t.call(this) || this;\n n.options = e, n.storeOptions = r, n.lastProgress = {\n totalBytes: 0,\n totalPercent: 0\n }, n.storeOptions = Object.assign({}, r);\n var i = it(Dt)(e);\n if (i.errors.length) throw new X(\"Invalid upload params\", i.errors, K.VALIDATION);\n var o = it(At)(r);\n if (o.errors.length) throw new X(\"Invalid store upload params\", o.errors, K.VALIDATION);\n return r.filename && (n.overrideFileName = r.filename, delete n.storeOptions.filename), n.storeOptions.sanitizer && (n.sanitizerOptions = n.storeOptions.sanitizer, delete n.storeOptions.sanitizer), n.uploader = new Ee(n.storeOptions, e.concurrency), n.uploader.setRetryConfig({\n retry: e.retry || 10,\n onRetry: e.onRetry,\n retryFactor: e.retryFactor || 2,\n retryMaxTime: e.retryMaxTime || 15e3\n }), n.uploader.setTimeout(e.timeout || 12e4), e.partSize && n.uploader.setPartSize(e.partSize), e.intelligentChunkSize && n.uploader.setIntelligentChunkSize(e.intelligentChunkSize), e.disableIntegrityCheck && n.uploader.setIntegrityCheck(!1), e.intelligent && n.uploader.setUploadMode(\"fallback\" === e.intelligent ? \"fallback\" : \"intelligent\"), n.uploader.setUploadTags(e.tags), n.uploader.on(\"start\", function () {\n return n.emit(\"start\");\n }), n.uploader.on(\"error\", function (t) {\n return n.emit(\"error\", t);\n }), n.uploader.on(\"progress\", n.handleProgress.bind(n)), n;\n }\n return Object(p.c)(e, t), e.prototype.setSession = function (t) {\n this.uploader.setApikey(t.apikey), t.policy && t.signature && this.uploader.setSecurity({\n policy: t.policy,\n signature: t.signature\n }), this.uploader.setUrl(t.urls.uploadApiUrl);\n }, e.prototype.setToken = function (t) {\n var e = this;\n if (!t || t !== Object(t)) throw new Error(\"Incorrect upload token. Must be instance of object\");\n return t.pause = function () {\n return e.uploader.pause();\n }, t.resume = function () {\n return e.uploader.resume();\n }, t.cancel = function () {\n return e.uploader.abort();\n }, t;\n }, e.prototype.setSecurity = function (t) {\n this.uploader.setSecurity(t);\n }, e.prototype.setUploadTags = function (t) {\n this.uploader.setUploadTags(t);\n }, e.prototype.upload = function (t) {\n return Object(p.b)(this, void 0, void 0, function () {\n var e, r;\n return Object(p.d)(this, function (n) {\n switch (n.label) {\n case 0:\n return [4, ge(t, this.sanitizerOptions)];\n case 1:\n return (e = n.sent()).customName = this.overrideFileName, this.uploader.addFile(e), this.startProgressInterval(), [4, this.uploader.execute()];\n case 2:\n return r = n.sent().shift(), this.stopProgressInterval(), this.uploader.removeAllListeners(), \"Failed\" === r.status ? [2, Promise.reject(r)] : [2, Promise.resolve(r)];\n }\n });\n });\n }, e.prototype.multiupload = function (t) {\n return Object(p.b)(this, void 0, void 0, function () {\n var e, r, n, i, o, a, s;\n return Object(p.d)(this, function (c) {\n switch (c.label) {\n case 0:\n for (n in r = [], e = t) r.push(n);\n i = 0, c.label = 1;\n case 1:\n return i < r.length ? (n = r[i]) in e ? (o = n, t.hasOwnProperty(o) ? [4, ge(t[o], this.sanitizerOptions)] : [3, 3]) : [3, 3] : [3, 4];\n case 2:\n (a = c.sent()).customName = this.overrideFileName, this.uploader.addFile(a), c.label = 3;\n case 3:\n return i++, [3, 1];\n case 4:\n return this.startProgressInterval(), [4, this.uploader.execute()];\n case 5:\n return s = c.sent(), this.stopProgressInterval(), this.uploader.removeAllListeners(), [2, Promise.resolve(s)];\n }\n });\n });\n }, e.prototype.startProgressInterval = function () {\n var t = this;\n \"function\" == typeof this.options.onProgress && (this.progressIntervalHandler = setInterval(function () {\n t.options.onProgress(t.lastProgress);\n }, this.options.progressInterval || 1e3), this.options.onProgress(this.lastProgress));\n }, e.prototype.stopProgressInterval = function () {\n clearInterval(this.progressIntervalHandler);\n }, e.prototype.handleProgress = function (t) {\n if (t = Oe(t, this.lastProgress), this.lastProgress.files) for (var e in t.files) this.lastProgress.files[e] && (t.files[e] = Oe(t.files[e], this.lastProgress.files[e]));\n this.lastProgress = t;\n }, e;\n }(l.EventEmitter),\n Se = function (t, e, r) {\n if (!e || \"string\" != typeof e) throw new Error(\"A valid Filestack handle or storage alias is required for preview\");\n var n = it(Ct)(r);\n if (n.errors.length) throw new X(\"Invalid preview params\", n.errors, K.VALIDATION);\n var i = Object(ot.removeEmpty)(r || {}),\n o = function (t, e, r, n) {\n var i = Object(p.a)({}, r),\n o = n && n.policy || t.policy,\n a = n && n.signature || t.signature,\n s = a && o,\n c = [t.urls.cdnUrl],\n u = i.css && encodeURIComponent('\"'.concat(i.css, '\"')),\n l = u ? \"preview=css:\".concat(u) : \"preview\";\n return -1 !== e.indexOf(\"src:\") ? c.push(\"\".concat(t.apikey, \"/\").concat(l)) : c.push(l), s && c.push(\"security=policy:\".concat(o, \",signature:\").concat(a)), c.push(e), c.join(\"/\");\n }(t, e, i);\n if (i && i.id) {\n var a = i.id,\n s = document.createElement(\"iframe\"),\n c = document.getElementById(a);\n if (s.src = o, s.width = \"100%\", s.height = \"100%\", !c) throw new Error('DOM Element with id \"'.concat(a, '\" not found.'));\n return c.appendChild(s);\n }\n return window.open(o, e);\n },\n Te = st()(\"fs:storage\"),\n Pe = function () {\n function t() {\n this.availableTypes = [], void 0 !== window.localStorage && (this.availableTypes.push(me.LOCAL), Te(\"Local storage exists\")), void 0 !== window.sessionStorage && (this.availableTypes.push(me.SESSION), Te(\"Session storage exists\")), Te(\"availableTypes - %O\", this.availableTypes);\n }\n return t.prototype.hasAccess = function (t) {\n return Te(\"Checking access to storage for %s. Available types: %O\", t, this.availableTypes), t ? this.availableTypes.indexOf(t) > -1 : !!this.availableTypes.length;\n }, t.prototype.getItem = function (t, e) {\n var r = this.getStore(e);\n if (Te(\"getItem %s from %O\", t, r), r) return r.getItem(t);\n }, t.prototype.setItem = function (t, e, r) {\n var n = this.getStore(r);\n if (Te(\"setItem %s to %O\", t, n), n) return n.setItem(t, e);\n }, t.prototype.removeItem = function (t, e) {\n var r = this.getStore(e);\n if (Te(\"removeItem %s from %O\", t, r), r) return r.removeItem(t);\n }, t.prototype.getStore = function (t) {\n if (Te(\"get store with pref type - %s\", t), this.hasAccess(t)) switch (t) {\n case me.LOCAL:\n return window.localStorage;\n case me.SESSION:\n return window.sessionStorage;\n default:\n return window[this.availableTypes[0]];\n } else Te(\"User dont have access to any storage\");\n }, t;\n }();\n !function (t) {\n t.SESSION = \"sessionStorage\", t.LOCAL = \"localStorage\";\n }(me || (me = {}));\n var Ae,\n Ce = \"__fs_picker_token\",\n De = function () {\n function t(t, e) {\n this.cache = !1, this.session = t, this.storeAdapter = new Pe(), this.cloudApiUrl = t.urls.cloudApiUrl, e && e.sessionCache && (this.cache = e.sessionCache);\n }\n return Object.defineProperty(t.prototype, \"token\", {\n get: function () {\n if (this.cache) {\n var t = this.storeAdapter.getItem(Ce, me.LOCAL);\n if (t) return t;\n }\n return this.isInAppBrowser ? this.storeAdapter.getItem(Ce, me.SESSION) : this._token;\n },\n set: function (t) {\n this.cache && this.storeAdapter.setItem(Ce, t, me.LOCAL), this.isInAppBrowser && this.storeAdapter.setItem(Ce, t, me.SESSION), this._token = t;\n },\n enumerable: !1,\n configurable: !0\n }), Object.defineProperty(t.prototype, \"isInAppBrowser\", {\n get: function () {\n return !!(this.session && this.session.prefetch && this.session.prefetch.settings && this.session.prefetch.settings.inapp_browser) && this.session.prefetch.settings.inapp_browser;\n },\n enumerable: !1,\n configurable: !0\n }), t.prototype.list = function (t, e, r) {\n var n = this,\n i = {\n apikey: this.session.apikey,\n clouds: t,\n flow: \"web\",\n token: this.token\n };\n r && (Array.isArray(r) || (r = [r]), r.includes(\"application/x-subrip\") && !r.includes(\"application/octet-stream\") && r.push(\"application/octet-stream\"), i.accept = r), this.isInAppBrowser && (i.appurl = this.currentAppUrl()), this.session.policy && this.session.signature && (i.policy = this.session.policy, i.signature = this.session.signature);\n var o = {};\n if (e) {\n var a = new Vt();\n e.cancel = a.cancel.bind(a), o.cancelToken = a;\n }\n return Ut.post(\"\".concat(this.cloudApiUrl, \"/folder/list\"), i, o).then(function (t) {\n return t.data && t.data.token && (n.token = t.data.token), t.data;\n });\n }, t.prototype.store = function (t, e, r, n, i, o) {\n var a,\n s = this;\n void 0 === r && (r = {}), void 0 === n && (n = {}), void 0 === o && (o = null), void 0 === r.location && (r.location = \"s3\");\n var c = {\n apikey: this.session.apikey,\n token: this.token,\n flow: \"web\",\n upload_tags: o || void 0,\n clouds: (a = {}, a[t] = {\n path: e,\n store: Object(ot.removeEmpty)(r)\n }, a)\n };\n \"customsource\" === t && n.customSourcePath && (c.clouds.customsource.customSourcePath = n.customSourcePath), \"customsource\" === t && n.customSourceContainer && (c.clouds.customsource.customSourceContainer = n.customSourceContainer), this.session.policy && this.session.signature && (c.policy = this.session.policy, c.signature = this.session.signature);\n var u = {};\n if (i) {\n var p = new Vt();\n i.cancel = p.cancel.bind(p), u.cancelToken = p;\n }\n return Ut.post(\"\".concat(this.cloudApiUrl, \"/store/\"), c, u).then(function (e) {\n return e.data && e.data.token && (s.token = e.data.token), e.data && e.data[t] ? e.data[t] : e.data;\n });\n }, t.prototype.logout = function (t) {\n var e,\n r = {\n apikey: this.session.apikey,\n flow: \"web\",\n token: this.token\n };\n return t ? r.clouds = ((e = {})[t] = {}, e) : (this.cache && this.storeAdapter.removeItem(Ce, me.LOCAL), this.isInAppBrowser && this.storeAdapter.removeItem(Ce, me.SESSION)), Ut.post(\"\".concat(this.cloudApiUrl, \"/auth/logout\"), r).then(function (e) {\n return e.data && e.data[t] ? e.data[t] : e.data;\n });\n }, t.prototype.metadata = function (t, e) {\n var r = {\n apikey: this.session.apikey,\n url: t,\n headers: e\n };\n return this.session.policy && this.session.signature && (r.policy = this.session.policy, r.signature = this.session.signature), Ut.post(\"\".concat(this.cloudApiUrl, \"/metadata\"), r).then(function (t) {\n return t.data;\n });\n }, t.prototype.tokInit = function (t) {\n if (\"video\" !== t && \"audio\" !== t) throw new X(\"Type must be one of video or audio.\");\n return Ut.post(\"\".concat(this.cloudApiUrl, \"/recording/\").concat(t, \"/init\")).then(function (t) {\n return t.data;\n });\n }, t.prototype.tokStart = function (t, e, r) {\n if (\"video\" !== t && \"audio\" !== t) throw new X(\"Type must be one of video or audio.\");\n var n = {\n apikey: e,\n session_id: r\n };\n return Ut.post(\"\".concat(this.cloudApiUrl, \"/recording/\").concat(t, \"/start\"), n).then(function (t) {\n return t.data;\n });\n }, t.prototype.tokStop = function (t, e, r, n) {\n if (\"video\" !== t && \"audio\" !== t) throw new X(\"Type must be one of video or audio.\");\n var i = {\n apikey: e,\n session_id: r,\n archive_id: n\n };\n return Ut.post(\"\".concat(this.cloudApiUrl, \"/recording/\").concat(t, \"/stop\"), i).then(function (t) {\n return t.data;\n });\n }, t.prototype.currentAppUrl = function () {\n if (window.URLSearchParams) {\n var t = new URLSearchParams(window.location.search);\n return t.set(\"fs-tab\", \"init\"), \"\".concat(window.location.protocol, \"//\").concat(window.location.host).concat(window.location.pathname, \"?\").concat(t.toString());\n }\n }, t;\n }(),\n Ie = r(32),\n Le = r.n(Ie);\n !function (t) {\n t.PICKER = \"picker\", t.TRANSFORM_UI = \"transform_ui\";\n }(Ae || (Ae = {}));\n var Ne,\n ze,\n Be = function () {\n function t(t) {\n this.session = t instanceof Re ? t.session : t;\n }\n return t.prototype.getConfig = function (t) {\n var e = t.pickerOptions,\n r = t.settings,\n n = t.permissions,\n i = t.events;\n return Object(p.b)(this, void 0, void 0, function () {\n var t,\n o,\n a = this;\n return Object(p.d)(this, function (s) {\n return t = {\n apikey: this.session.apikey\n }, this.session.policy && this.session.signature && (t.security = {\n policy: this.session.policy,\n signature: this.session.signature\n }), r = r ? (r = r.concat([\"inapp_browser\"])).filter(function (t, e) {\n return r.indexOf(t) === e;\n }) : [\"inapp_browser\"], e && Object.keys(e).length && (o = Object(ot.cleanUpCallbacks)(Le()(Object(p.a)({}, e)))), t = Object(p.a)(Object(p.a)({}, t), {\n permissions: n,\n settings: r,\n picker_config: o,\n events: i\n }), this.session.prefetch = null, [2, Ut.post(\"\".concat(this.session.urls.uploadApiUrl, \"/prefetch\"), t).then(function (t) {\n if (200 !== t.status) throw new X(\"There is a problem with prefetch request\");\n var r = t.data;\n return r.updated_config ? (r.pickerOptions = a.reassignCallbacks(e, r.updated_config || {}), delete r.updated_config) : r.pickerOptions = e, a.session.prefetch = r, r;\n })];\n });\n });\n }, t.prototype.reassignCallbacks = function (t, e) {\n if (!t || 0 === Object.keys(t).length) return t;\n for (var r in t) \"function\" == typeof t[r] && (e[r] = t[r]), t[r] === Object(t[r]) && (e[r] = this.reassignCallbacks(t[r], e[r]));\n return e;\n }, t;\n }();\n !function (t) {\n t.cw = \"CW\", t.ccw = \"CCW\";\n }(Ne || (Ne = {})), function (t) {\n t.inline = \"inline\", t.overlay = \"overlay\", t.dropPane = \"dropPane\";\n }(ze || (ze = {}));\n var Me = function () {\n function t(t, e) {\n var r = it(It)(e);\n if (r.errors.length) throw new X(\"Invalid picker params\", r.errors, K.VALIDATION);\n this._initialized = this.loadModule(t, e);\n }\n return t.prototype.open = function () {\n return Object(p.b)(this, void 0, void 0, function () {\n return Object(p.d)(this, function (t) {\n switch (t.label) {\n case 0:\n return [4, this._initialized];\n case 1:\n return [4, t.sent().open()];\n case 2:\n return t.sent(), [2];\n }\n });\n });\n }, t.prototype.crop = function (t) {\n return Object(p.b)(this, void 0, void 0, function () {\n return Object(p.d)(this, function (e) {\n switch (e.label) {\n case 0:\n return [4, this._initialized];\n case 1:\n return [4, e.sent().crop(t)];\n case 2:\n return e.sent(), [2];\n }\n });\n });\n }, t.prototype.close = function () {\n return Object(p.b)(this, void 0, void 0, function () {\n return Object(p.d)(this, function (t) {\n switch (t.label) {\n case 0:\n return [4, this._initialized];\n case 1:\n return [4, t.sent().close()];\n case 2:\n return t.sent(), [2];\n }\n });\n });\n }, t.prototype.cancel = function () {\n return Object(p.b)(this, void 0, void 0, function () {\n return Object(p.d)(this, function (t) {\n switch (t.label) {\n case 0:\n return [4, this._initialized];\n case 1:\n return [4, t.sent().cancel()];\n case 2:\n return t.sent(), [2];\n }\n });\n });\n }, t.prototype.loadModule = function (t, e) {\n return Object(p.b)(this, void 0, void 0, function () {\n var r;\n return Object(p.d)(this, function (n) {\n switch (n.label) {\n case 0:\n return r = t.session.urls.pickerUrl, [4, o(s.PICKER, r)];\n case 1:\n return [2, new (n.sent())(t, e)];\n }\n });\n });\n }, t;\n }();\n W(\"addBreadcrumb\", {\n category: \"sdk\",\n message: \"filestack-js-sdk scope\"\n });\n var Re = function (t) {\n function e(e, r) {\n var n = t.call(this) || this;\n if (n.options = r, n.forwardErrors = !0, r && r.forwardErrors && (n.forwardErrors = r.forwardErrors), !e || \"string\" != typeof e || 0 === e.length) throw new Error(\"An apikey is required to initialize the Filestack client\");\n var i = J.urls;\n if (n.session = {\n apikey: e,\n urls: i\n }, r) {\n var o = r.cname,\n a = r.security;\n n.setSecurity(a), n.setCname(o);\n }\n return n.prefetchInstance = new Be(n.session), n.cloud = new De(n.session, r), n;\n }\n return Object(p.c)(e, t), Object.defineProperty(e.prototype, \"utils\", {\n get: function () {\n return ot;\n },\n enumerable: !1,\n configurable: !0\n }), e.prototype.prefetch = function (t) {\n return this.prefetchInstance.getConfig(t);\n }, e.prototype.setSecurity = function (t) {\n if (t && (!t.policy || !t.signature)) throw new X(\"Both policy and signature are required for client security\");\n t && t.policy && t.signature && (this.session.policy = t.policy, this.session.signature = t.signature);\n }, e.prototype.setCname = function (t) {\n t && 0 !== t.length && (this.session.cname = t, this.session.urls = ot.resolveHost(this.session.urls, t));\n }, e.prototype.logout = function (t) {\n return this.cloud.logout(t);\n }, e.prototype.metadata = function (t, e, r) {\n return function (t, e, r, n) {\n if (!e || \"string\" != typeof e) throw new X(\"A valid Filestack handle is required for metadata\");\n var i = it(Lt)(r);\n if (i.errors.length) throw new X(\"Invalid metadata params\", i.errors);\n var o = Object(p.a)({}, r);\n o.source_url = o.sourceUrl, o.policy = n && n.policy || t.policy, o.signature = n && n.signature || t.signature;\n var a = \"\".concat(t.urls.fileApiUrl, \"/\").concat(e, \"/metadata\");\n return new Promise(function (t, r) {\n Ut.get(a, {\n params: Object(ot.removeEmpty)(o),\n filestackHeaders: !1\n }).then(function (r) {\n return t(Object(p.a)(Object(p.a)({}, r.data), {\n handle: e\n }));\n }).catch(r);\n });\n }(this.session, t, e, r);\n }, e.prototype.picker = function (t) {\n return function (t, e) {\n return new Me(t, e);\n }(this, t);\n }, e.prototype.preview = function (t, e) {\n return Se(this.session, t, e);\n }, e.prototype.remove = function (t, e) {\n return Gt(this.session, t, !1, e);\n }, e.prototype.removeMetadata = function (t, e) {\n return Gt(this.session, t, !0, e);\n }, e.prototype.storeURL = function (t, e, r, n, i, o, a) {\n return function (t) {\n var e = t.session,\n r = t.url,\n n = t.storeParams,\n i = t.token,\n o = t.security,\n a = t.uploadTags,\n s = t.headers,\n c = t.workflowIds;\n if (!r || \"string\" != typeof r) return Promise.reject(new X(\"url is required for storeURL\"));\n var u = it(At)(n);\n if (u.errors.length) return Promise.reject(new X(\"Invalid store params\", u.errors));\n e.policy = o && o.policy || e.policy, e.signature = o && o.signature || e.signature;\n var l = new Pt(r, e.apikey);\n l.store(n), e.policy && e.signature && l.security({\n policy: e.policy,\n signature: e.signature\n });\n var f = {};\n if (i) {\n var d = new Vt();\n i.cancel = d.cancel.bind(d), f.cancelToken = d;\n }\n var m = [r];\n return s && (m = [{\n source: r,\n headers: s\n }]), c && c.length > 0 && l.addTask(\"store\", {\n workflows: c\n }), Ut.post(\"\".concat(e.urls.processUrl, \"/process\"), {\n apikey: e.apikey,\n sources: m,\n tasks: l.getTasks(),\n upload_tags: a\n }, f).then(function (t) {\n if (t.data && t.data.handle) return t.data.upload_tags && (t.data.uploadTags = t.data.upload_tags, delete t.data.upload_tags), Object(p.a)(Object(p.a)({}, t.data), {\n mimetype: t.data.type\n });\n throw new X(\"Invalid store response \".concat(JSON.stringify(t.data)));\n });\n }({\n session: this.session,\n url: t,\n storeParams: e,\n token: r,\n security: n,\n uploadTags: i,\n headers: o,\n workflowIds: a\n });\n }, e.prototype.retrieve = function (t, e, r) {\n return function (t, e, r, n) {\n if (void 0 === r && (r = {}), !e || 0 === e.length || \"string\" != typeof e) throw new X(\"File handle is required\");\n console.info(\"Retrieve method is deprecated and it will be removed. Please use metadata or download\");\n var i = it(Nt)(r);\n if (i.errors.length) throw new X(\"Invalid retrieve params\", i.errors);\n var o = Object(p.a)({}, r);\n o.key = t.apikey, o.policy = n && n.policy || t.policy, o.signature = n && n.signature || t.signature;\n var a,\n s,\n c = zt.a.GET;\n if (o.head && (c = zt.a.HEAD, delete o.head), o.extension && o.extension.length && (a = o.extension, delete o.extension), o.metadata) {\n if (c === zt.a.HEAD) throw new X(\"Head and metadata options cannot be used together\");\n s = o.metadata, delete o.metadata;\n }\n var u = \"\".concat(t.urls.fileApiUrl, \"/\").concat(e) + (a ? \"+\".concat(a) : \"\") + (s ? \"/metadata\" : \"\");\n return new Promise(function (t, e) {\n Ut.dispatch(u, {\n method: c,\n filestackHeaders: !1,\n params: Object(ot.removeEmpty)(o)\n }).then(function (e) {\n return t(c === zt.a.HEAD ? e.headers : e.data);\n }).catch(e);\n });\n }(this.session, t, e, r);\n }, e.prototype.download = function (t, e) {\n return function (t, e, r) {\n var n = new Pt(e, t.apikey),\n i = r && r.policy || t.policy,\n o = r && r.signature || t.signature;\n return i && o && n.security({\n signature: o,\n policy: i\n }), Ut.dispatch(n.toString(), {\n method: zt.a.GET,\n blobResponse: !0\n });\n }(this.session, t, e);\n }, e.prototype.transform = function (t, e, r) {\n return void 0 === r && (r = !1), fe(this.session, t, e, r);\n }, e.prototype.upload = function (t, e, r, n, i) {\n var o = this,\n a = new je(e, r);\n return a.setSession(this.session), n && a.setToken(n), i && a.setSecurity(i), a.on(\"start\", function () {\n return o.emit(\"upload.start\");\n }), a.on(\"error\", function (t) {\n o.forwardErrors && Q(function (n) {\n n.setTag(\"filestack-apikey\", o.session.apikey), n.setTag(\"filestack-version\", ot.getVersion()), n.setExtra(\"filestack-options\", o.options), n.setExtras({\n uploadOptions: e,\n storeOptions: r,\n details: t.details\n }), t.message = \"FS-\".concat(t.message), Y(t);\n }), o.emit(\"upload.error\", t);\n }), a.upload(t);\n }, e.prototype.multiupload = function (t, e, r, n, i) {\n var o = this,\n a = new je(e, r);\n return a.setSession(this.session), n && a.setToken(n), i && a.setSecurity(i), a.on(\"start\", function () {\n return o.emit(\"upload.start\");\n }), a.on(\"error\", function (t) {\n Q(function (n) {\n n.setTag(\"filestack-apikey\", o.session.apikey), n.setTag(\"filestack-version\", ot.getVersion()), n.setExtra(\"filestack-options\", o.options), n.setExtras(t.details), n.setExtras({\n uploadOptions: e,\n storeOptions: r\n }), Y(t);\n }), o.emit(\"upload.error\", t);\n }), a.multiupload(t);\n }, e;\n }(l.EventEmitter),\n $e = function (t, e) {\n return new Re(t, e);\n },\n Ue = $e,\n qe = \"3.32.3\";\n a(s.FILESTACK_SDK, $e, {\n version: \"3.32.3\"\n });\n},, function (t, e, r) {\n \"use strict\";\n\n (function (t) {\n r.d(e, \"a\", function () {\n return c;\n }), r.d(e, \"b\", function () {\n return u;\n });\n var n = r(6),\n i = r(11),\n o = {\n nowSeconds: function () {\n return Date.now() / 1e3;\n }\n };\n var a = Object(i.b)() ? function () {\n try {\n return Object(i.a)(t, \"perf_hooks\").performance;\n } catch (t) {\n return;\n }\n }() : function () {\n var t = Object(n.a)().performance;\n if (t && t.now) return {\n now: function () {\n return t.now();\n },\n timeOrigin: Date.now() - t.now()\n };\n }(),\n s = void 0 === a ? o : {\n nowSeconds: function () {\n return (a.timeOrigin + a.now()) / 1e3;\n }\n },\n c = o.nowSeconds.bind(o),\n u = s.nowSeconds.bind(s);\n !function () {\n var t = Object(n.a)().performance;\n if (t && t.now) {\n var e = t.now(),\n r = Date.now(),\n i = t.timeOrigin ? Math.abs(t.timeOrigin + e - r) : 36e5,\n o = i < 36e5,\n a = t.timing && t.timing.navigationStart,\n s = \"number\" == typeof a ? Math.abs(a + e - r) : 36e5;\n return o || s < 36e5 ? i <= s ? (\"timeOrigin\", t.timeOrigin) : (\"navigationStart\", a) : (\"dateNow\", r);\n }\n \"none\";\n }();\n }).call(this, r(28)(t));\n}]);\nconst _filestack$Filestack = filestack.Filestack,\n _filestack$init = filestack.init,\n _filestack$version = filestack.version,\n _filestack$EAlignOptions = filestack.EAlignOptions,\n _filestack$EAlignFacesOptions = filestack.EAlignFacesOptions,\n _filestack$EFitOptions = filestack.EFitOptions,\n _filestack$EBlurMode = filestack.EBlurMode,\n _filestack$EShapeType = filestack.EShapeType,\n _filestack$ENoiseType = filestack.ENoiseType,\n _filestack$EStyleType = filestack.EStyleType,\n _filestack$EColorspaceType = filestack.EColorspaceType,\n _filestack$ECropfacesType = filestack.ECropfacesType,\n _filestack$ESmartCropMode = filestack.ESmartCropMode,\n _filestack$EImageWatermarkPosition = filestack.EImageWatermarkPosition,\n _filestack$EAudioTypes = filestack.EAudioTypes,\n _filestack$EVideoTypes = filestack.EVideoTypes,\n _filestack$EUrlscreenshotAgent = filestack.EUrlscreenshotAgent,\n _filestack$EUrlscreenshotMode = filestack.EUrlscreenshotMode,\n _filestack$EUrlscreenshotOrientation = filestack.EUrlscreenshotOrientation,\n _filestack$EVideoLocations = filestack.EVideoLocations,\n _filestack$EVideoAccess = filestack.EVideoAccess,\n _filestack$EVideoAccessMode = filestack.EVideoAccessMode,\n _filestack$transform = filestack.transform,\n _filestack$Align = filestack.Align,\n _filestack$FitOptions = filestack.FitOptions,\n _filestack$BlurMode = filestack.BlurMode,\n _filestack$ShapeType = filestack.ShapeType,\n _filestack$NoiseType = filestack.NoiseType,\n _filestack$StyleType = filestack.StyleType,\n _filestack$ColorspaceType = filestack.ColorspaceType,\n _filestack$CropfacesType = filestack.CropfacesType,\n _filestack$ImageWatermarkPosition = filestack.ImageWatermarkPosition,\n _filestack$SmartCropMode = filestack.SmartCropMode,\n _filestack$AudioTypes = filestack.AudioTypes,\n _filestack$VideoTypes = filestack.VideoTypes,\n _filestack$URLScreenshotAgent = filestack.URLScreenshotAgent,\n _filestack$URLScreenshotMode = filestack.URLScreenshotMode,\n _filestack$URLScreenshotOrientation = filestack.URLScreenshotOrientation,\n _filestack$Locations = filestack.Locations,\n _filestack$VideoAccess = filestack.VideoAccess,\n _filestack$VideoAccessMode = filestack.VideoAccessMode,\n _filestack$EnhancePreset = filestack.EnhancePreset,\n _filestack$Filelink = filestack.Filelink,\n _filestack$FilestackErrorType = filestack.FilestackErrorType,\n _filestack$FsHttpMethod = filestack.FsHttpMethod,\n _filestack$FsRequest = filestack.FsRequest,\n _filestack$FsRequestErrorCode = filestack.FsRequestErrorCode,\n _filestack$FsRequestError = filestack.FsRequestError,\n _filestack$FsCancelToken = filestack.FsCancelToken,\n _filestack$resolveCdnUrl = filestack.resolveCdnUrl,\n _filestack$resolveHost = filestack.resolveHost,\n _filestack$removeEmpty = filestack.removeEmpty,\n _filestack$uniqueTime = filestack.uniqueTime,\n _filestack$uniqueId = filestack.uniqueId,\n _filestack$extensionToMime = filestack.extensionToMime,\n _filestack$sanitizeName = filestack.sanitizeName,\n _filestack$filterObject = filestack.filterObject,\n _filestack$cleanUpCallbacks = filestack.cleanUpCallbacks,\n _filestack$md5 = filestack.md5,\n _filestack$b64 = filestack.b64,\n _filestack$getVersion = filestack.getVersion,\n _filestack$isMobile = filestack.isMobile,\n _filestack$isFacebook = filestack.isFacebook,\n _filestack$TransformSchema = filestack.TransformSchema,\n _filestack$getSecurity = filestack.getSecurity,\n _filestack$validateWebhookSignature = filestack.validateWebhookSignature,\n _filestack$Client = filestack.Client,\n _filestack$FilestackError = filestack.FilestackError,\n _filestack$PickerDisplayMode = filestack.PickerDisplayMode,\n _filestack$getMimetype = filestack.getMimetype,\n _filestack$PrefetchEvents = filestack.PrefetchEvents;\nexport { _filestack$Filestack as Filestack, _filestack$init as init, _filestack$version as version, _filestack$EAlignOptions as EAlignOptions, _filestack$EAlignFacesOptions as EAlignFacesOptions, _filestack$EFitOptions as EFitOptions, _filestack$EBlurMode as EBlurMode, _filestack$EShapeType as EShapeType, _filestack$ENoiseType as ENoiseType, _filestack$EStyleType as EStyleType, _filestack$EColorspaceType as EColorspaceType, _filestack$ECropfacesType as ECropfacesType, _filestack$ESmartCropMode as ESmartCropMode, _filestack$EImageWatermarkPosition as EImageWatermarkPosition, _filestack$EAudioTypes as EAudioTypes, _filestack$EVideoTypes as EVideoTypes, _filestack$EUrlscreenshotAgent as EUrlscreenshotAgent, _filestack$EUrlscreenshotMode as EUrlscreenshotMode, _filestack$EUrlscreenshotOrientation as EUrlscreenshotOrientation, _filestack$EVideoLocations as EVideoLocations, _filestack$EVideoAccess as EVideoAccess, _filestack$EVideoAccessMode as EVideoAccessMode, _filestack$transform as transform, _filestack$Align as Align, _filestack$FitOptions as FitOptions, _filestack$BlurMode as BlurMode, _filestack$ShapeType as ShapeType, _filestack$NoiseType as NoiseType, _filestack$StyleType as StyleType, _filestack$ColorspaceType as ColorspaceType, _filestack$CropfacesType as CropfacesType, _filestack$ImageWatermarkPosition as ImageWatermarkPosition, _filestack$SmartCropMode as SmartCropMode, _filestack$AudioTypes as AudioTypes, _filestack$VideoTypes as VideoTypes, _filestack$URLScreenshotAgent as URLScreenshotAgent, _filestack$URLScreenshotMode as URLScreenshotMode, _filestack$URLScreenshotOrientation as URLScreenshotOrientation, _filestack$Locations as Locations, _filestack$VideoAccess as VideoAccess, _filestack$VideoAccessMode as VideoAccessMode, _filestack$EnhancePreset as EnhancePreset, _filestack$Filelink as Filelink, _filestack$FilestackErrorType as FilestackErrorType, _filestack$FsHttpMethod as FsHttpMethod, _filestack$FsRequest as FsRequest, _filestack$FsRequestErrorCode as FsRequestErrorCode, _filestack$FsRequestError as FsRequestError, _filestack$FsCancelToken as FsCancelToken, _filestack$resolveCdnUrl as resolveCdnUrl, _filestack$resolveHost as resolveHost, _filestack$removeEmpty as removeEmpty, _filestack$uniqueTime as uniqueTime, _filestack$uniqueId as uniqueId, _filestack$extensionToMime as extensionToMime, _filestack$sanitizeName as sanitizeName, _filestack$filterObject as filterObject, _filestack$cleanUpCallbacks as cleanUpCallbacks, _filestack$md5 as md5, _filestack$b64 as b64, _filestack$getVersion as getVersion, _filestack$isMobile as isMobile, _filestack$isFacebook as isFacebook, _filestack$TransformSchema as TransformSchema, _filestack$getSecurity as getSecurity, _filestack$validateWebhookSignature as validateWebhookSignature, _filestack$Client as Client, _filestack$FilestackError as FilestackError, _filestack$PickerDisplayMode as PickerDisplayMode, _filestack$getMimetype as getMimetype, _filestack$PrefetchEvents as PrefetchEvents };\n","import * as i0 from '@angular/core';\nimport { Injectable, Optional, Inject, Directive, Input, Output, Component, ChangeDetectionStrategy, HostListener, Pipe, NgModule } from '@angular/core';\nimport { from, Subject } from 'rxjs';\nimport { init, PickerDisplayMode } from 'filestack-js';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nconst _c0 = [\"*\"];\nfunction PickerOverlayComponent_div_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"div\", 1);\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"id\", ctx_r0.elementId);\n }\n}\nlet FilestackService = /*#__PURE__*/(() => {\n class FilestackService {\n constructor(config) {\n this.config = config;\n if (!config) {\n return;\n }\n this.clientOptions = config.options;\n this.apikey = config.apikey;\n }\n get client() {\n if (!this.clientInstance) {\n return this.init();\n }\n return this.clientInstance;\n }\n set client(client) {\n this.clientInstance = client;\n }\n /**\n * Set another client instance as this one used by FilestackService\n * @param client - An instance of filestack client class\n */\n setClientInstance(client) {\n if (client) {\n this.client = client;\n }\n }\n /**\n * Initialize filestack client\n * @param apikey - Filestack apikey\n * @param clientOptions - Client options\n */\n init(apikey, clientOptions) {\n this.client = init(apikey || this.apikey, clientOptions || this.clientOptions);\n return this.client;\n }\n /**\n * Instance of picker class\n * @param options - picker options\n */\n picker(options) {\n return this.client.picker(options);\n }\n /**\n * Generate url with filestack transformations\n * @param url - Filestack handle or external url\n * @param options - Transformation options\n * @param b64 - Encode url params in base64\n */\n transform(url, options, b64) {\n return this.client.transform(url, options, b64);\n }\n /**\n * Access files via their Filestack handles\n * @param handle - Filestack handle\n * @param options - Retrieve options\n * @param security - Filestack security object\n */\n retrieve(handle, options, security) {\n return from(this.client.retrieve(handle, options, security));\n }\n /**\n * Retrieve detailed data of stored files\n * @param handle - Filestack handle\n * @param options - Metadata options\n * @param security - Filestack security object\n */\n metadata(handle, options, security) {\n return from(this.client.metadata(handle, options, security));\n }\n /**\n * Store a file from its URL\n * @param url - Valid url to file\n * @param options - Store params\n * @param token - Optional control token to call .cancel()\n * @param security - Filestack security object\n */\n storeURL(url, options, token, security) {\n return from(this.client.storeURL(url, options, token, security));\n }\n /**\n * Upload a provided file\n * @param file - A file or array of files to upload\n * @param options - Upload options\n * @param storeOptions - Store options\n * @param token - Optional control token to call .cancel()\n * @param security - Filestack security object\n */\n upload(file, options, storeOptions, token, security) {\n if (Array.isArray(file)) {\n return from(this.client.multiupload(file, options, storeOptions, token, security));\n }\n return from(this.client.upload(file, options, storeOptions, token, security));\n }\n /**\n * Remove a file from storage and the Filestack system\n * @param handle - Filestack handle\n * @param security - Filestack security object\n */\n remove(handle, security) {\n return from(this.client.remove(handle, security));\n }\n /**\n * Remove a file only from the Filestack system. The file remains in storage\n * @param handle - Filestack handle\n * @param security - Filestack security object\n */\n removeMetadata(handle, security) {\n return from(this.client.removeMetadata(handle, security));\n }\n /**\n * Used for viewing files via Filestack handles or storage aliases\n * @param handle - Filestack handle\n * @param options - Preview options\n */\n preview(handle, options) {\n return this.client.preview(handle, options);\n }\n /**\n * Clear all current cloud sessions in the picker or\n * particular one if name is passed\n * @param name - Optional cloud name to be passed\n */\n logout(name) {\n return from(this.client.logout(name));\n }\n }\n FilestackService.ɵfac = function FilestackService_Factory(t) {\n return new (t || FilestackService)(i0.ɵɵinject('config', 8));\n };\n FilestackService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: FilestackService,\n factory: FilestackService.ɵfac\n });\n return FilestackService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet PickerBaseDirective = /*#__PURE__*/(() => {\n class PickerBaseDirective {\n constructor(filestackService) {\n this.filestackService = filestackService;\n this.elementId = 'picker-container';\n this.uploadSuccess = new Subject();\n this.uploadError = new Subject();\n this.generateId();\n }\n ngOnInit() {\n this.filestackService.init(this.apikey, this.clientOptions);\n }\n generateId() {\n this.elementId = `picker-container-${Date.now()}`;\n }\n ngOnDestroy() {\n if (this.picker) {\n this.picker.close();\n }\n }\n }\n PickerBaseDirective.ɵfac = function PickerBaseDirective_Factory(t) {\n return new (t || PickerBaseDirective)(i0.ɵɵdirectiveInject(FilestackService));\n };\n PickerBaseDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: PickerBaseDirective,\n inputs: {\n apikey: \"apikey\",\n pickerOptions: \"pickerOptions\",\n clientOptions: \"clientOptions\",\n file: \"file\",\n source: \"source\"\n },\n outputs: {\n uploadSuccess: \"uploadSuccess\",\n uploadError: \"uploadError\"\n }\n });\n return PickerBaseDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet PickerOverlayComponent = /*#__PURE__*/(() => {\n class PickerOverlayComponent extends PickerBaseDirective {\n constructor() {\n super(...arguments);\n this.isActive = false;\n }\n ngAfterContentInit() {\n // Overwrite display mode to be always 'overlay' in this component\n this.picker = this.filestackService.picker({\n ...this.pickerOptions,\n rootId: `picker-overlay-${Date.now()}`,\n container: this.elementId,\n displayMode: PickerDisplayMode.overlay,\n onUploadDone: res => this.uploadSuccess.next(res),\n onClose: () => {\n this.isActive = false;\n this.generateId();\n }\n });\n console.log({\n ...this.pickerOptions,\n container: `#${this.elementId}`,\n displayMode: PickerDisplayMode.overlay,\n onUploadDone: res => this.uploadSuccess.next(res),\n onClose: () => {\n this.isActive = false;\n this.generateId();\n }\n });\n }\n onClick(event) {\n if (this.isActive) {\n return;\n }\n event.stopPropagation();\n event.preventDefault();\n this.isActive = true;\n // Picker open success handler there is ommited, because it's accessible from pickerOptions\n this.picker.open().catch(err => this.uploadError.next(err));\n }\n }\n PickerOverlayComponent.ɵfac = /* @__PURE__ */(() => {\n let ɵPickerOverlayComponent_BaseFactory;\n return function PickerOverlayComponent_Factory(t) {\n return (ɵPickerOverlayComponent_BaseFactory || (ɵPickerOverlayComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PickerOverlayComponent)))(t || PickerOverlayComponent);\n };\n })();\n PickerOverlayComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: PickerOverlayComponent,\n selectors: [[\"ng-picker-overlay\"]],\n hostBindings: function PickerOverlayComponent_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"click\", function PickerOverlayComponent_click_HostBindingHandler($event) {\n return ctx.onClick($event);\n });\n }\n },\n features: [i0.ɵɵInheritDefinitionFeature],\n ngContentSelectors: _c0,\n decls: 3,\n vars: 1,\n consts: [[3, \"id\", 4, \"ngIf\"], [3, \"id\"]],\n template: function PickerOverlayComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵelementStart(0, \"div\");\n i0.ɵɵprojection(1, 0, [1, \"ng-picker\"]);\n i0.ɵɵtemplate(2, PickerOverlayComponent_div_2_Template, 1, 1, \"div\", 0);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx.isActive);\n }\n },\n dependencies: [i1.NgIf],\n encapsulation: 2,\n changeDetection: 0\n });\n return PickerOverlayComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet PickerDropPaneComponent = /*#__PURE__*/(() => {\n class PickerDropPaneComponent extends PickerBaseDirective {\n ngAfterContentInit() {\n // Overwrite display mode to be always 'dropPane' in this component\n this.picker = this.filestackService.picker({\n ...this.pickerOptions,\n rootId: `picker-overlay-${Date.now()}`,\n displayMode: PickerDisplayMode.dropPane,\n container: this.elementId,\n onUploadDone: res => this.uploadSuccess.next(res)\n });\n // Picker open success handler there is ommited, because it's accessible from pickerOptions\n this.picker.open().then(void 0).catch(err => this.uploadError.next(err));\n }\n }\n PickerDropPaneComponent.ɵfac = /* @__PURE__ */(() => {\n let ɵPickerDropPaneComponent_BaseFactory;\n return function PickerDropPaneComponent_Factory(t) {\n return (ɵPickerDropPaneComponent_BaseFactory || (ɵPickerDropPaneComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PickerDropPaneComponent)))(t || PickerDropPaneComponent);\n };\n })();\n PickerDropPaneComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: PickerDropPaneComponent,\n selectors: [[\"ng-picker-drop-pane\"]],\n features: [i0.ɵɵInheritDefinitionFeature],\n decls: 1,\n vars: 1,\n consts: [[1, \"ng-picker\", 3, \"id\"]],\n template: function PickerDropPaneComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"div\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"id\", ctx.elementId);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n return PickerDropPaneComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet PickerInlineComponent = /*#__PURE__*/(() => {\n class PickerInlineComponent extends PickerBaseDirective {\n ngAfterContentInit() {\n // Overwrite display mode to be always 'inline' in this component\n this.picker = this.filestackService.picker({\n ...this.pickerOptions,\n rootId: `picker-overlay-${Date.now()}`,\n displayMode: PickerDisplayMode.inline,\n container: this.elementId,\n onUploadDone: res => this.uploadSuccess.next(res)\n });\n // Picker open success handler there is ommited, because it's accessible from pickerOptions\n this.picker.open().then(void 0).catch(err => this.uploadError.next(err));\n }\n }\n PickerInlineComponent.ɵfac = /* @__PURE__ */(() => {\n let ɵPickerInlineComponent_BaseFactory;\n return function PickerInlineComponent_Factory(t) {\n return (ɵPickerInlineComponent_BaseFactory || (ɵPickerInlineComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PickerInlineComponent)))(t || PickerInlineComponent);\n };\n })();\n PickerInlineComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: PickerInlineComponent,\n selectors: [[\"ng-picker-inline\"]],\n features: [i0.ɵɵInheritDefinitionFeature],\n decls: 1,\n vars: 1,\n consts: [[1, \"ng-picker\", 3, \"id\"]],\n template: function PickerInlineComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"div\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"id\", ctx.elementId);\n }\n },\n encapsulation: 2,\n changeDetection: 0\n });\n return PickerInlineComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet FilestackTransformPipe = /*#__PURE__*/(() => {\n class FilestackTransformPipe {\n constructor(filestackService) {\n this.filestackService = filestackService;\n }\n transform(value, transformOptions) {\n return this.filestackService.transform(value, transformOptions);\n }\n }\n FilestackTransformPipe.ɵfac = function FilestackTransformPipe_Factory(t) {\n return new (t || FilestackTransformPipe)(i0.ɵɵdirectiveInject(FilestackService, 16));\n };\n FilestackTransformPipe.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n name: \"filestackTransform\",\n type: FilestackTransformPipe,\n pure: true\n });\n return FilestackTransformPipe;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet FilestackModule = /*#__PURE__*/(() => {\n class FilestackModule {\n static forRoot(config) {\n return {\n ngModule: FilestackModule,\n providers: [FilestackService, {\n provide: 'config',\n useValue: config\n }]\n };\n }\n }\n FilestackModule.ɵfac = function FilestackModule_Factory(t) {\n return new (t || FilestackModule)();\n };\n FilestackModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: FilestackModule\n });\n FilestackModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [FilestackService],\n imports: [CommonModule]\n });\n return FilestackModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/*\n * Public API Surface of filestack-angular\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { FilestackModule, FilestackService, FilestackTransformPipe, PickerDropPaneComponent, PickerInlineComponent, PickerOverlayComponent };\n","import { StorageObjectType } from '../enums/StorageFileType.enum';\nimport MetaFileLink from 'src/app/models/metaFileLink.model';\nimport { StorageObjectPermissionReqRes } from './StorageObjectPermissionReqRes.model';\nimport { FilestackStatus } from '../enums/filestack-status.enum';\n\nexport class StorageObjectReqRes {\n public id: number;\n public displayName: string;\n public extension: string;\n public description: string;\n public filestackHandle: string;\n public filestackPolicy: string;\n public filestackSignature: string;\n public filestackUrl: string;\n public filestackSource: string;\n public filestackStatus: FilestackStatus;\n public storageObjectParentId: number;\n public clientDetailsId: number;\n public storageObjectType: StorageObjectType;\n public metaFileLinkId: number;\n public metaFileLink: MetaFileLink;\n public isPublic: boolean;\n public storageObjectPermissions: StorageObjectPermissionReqRes[];\n public createTimestamp: Date;\n public isDeleted: boolean;\n public sasContainerToken: string;\n public sessionId?: string;\n}\n\nexport class HoldingStorageObjectReqRes extends StorageObjectReqRes {\n public holdingId: number;\n}\n\n// tslint:disable-next-line:no-namespace\nexport namespace StorageObjectReqRes {\n export function getFilestackUrlWithCredentials(storageObject: StorageObjectReqRes): string {\n if (!storageObject.filestackUrl) {\n return null;\n }\n if (storageObject.filestackPolicy && storageObject.filestackSignature) {\n return `${storageObject.filestackUrl}?policy=${storageObject.filestackPolicy}&signature=${storageObject.filestackSignature}`;\n }\n return storageObject.filestackUrl;\n }\n}\n","import { Component, OnInit, Inject, AfterViewInit, ChangeDetectionStrategy } from '@angular/core';\nimport { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';\nimport { FilestackService } from '@filestack/angular';\nimport { ClientOptions, Security } from 'filestack-js';\n\nimport { AppSettingsService } from 'src/app/services/app-settings.service';\nimport { StorageObjectReqRes } from '../../models/StorageObjectReqRes.model';\nimport MetaFileLink, { MediaType } from 'src/app/models/metaFileLink.model';\nimport { TerraUtils } from '../../TerraUtils';\nimport { SnackbarService } from 'src/app/services/snackbar.service';\n\n@Component({\n selector: 'terra-file-preview-dialog',\n templateUrl: './file-preview-dialog.component.html',\n styleUrls: ['./file-preview-dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FilePreviewDialogComponent implements OnInit, AfterViewInit {\n\n // enums\n MediaType = MediaType;\n\n mediaType: MediaType = null;\n\n get fullUrlWithCredentials() {\n return StorageObjectReqRes.getFilestackUrlWithCredentials(this.storageObject);\n }\n\n constructor(\n private appSettingsService: AppSettingsService,\n private filestackService: FilestackService,\n public dialogRef: MatDialogRef,\n @Inject(MAT_DIALOG_DATA) public storageObject: StorageObjectReqRes) {\n dialogRef.addPanelClass('file-preview-dialog');\n }\n\n ngOnInit() {\n this.mediaType = MetaFileLink.GetMediaType(this.storageObject.metaFileLink);\n }\n\n ngAfterViewInit(): void {\n switch (this.mediaType) {\n case MediaType.Image:\n case MediaType.Pdf:\n case MediaType.Presentation:\n case MediaType.Spreadsheet:\n case MediaType.TextDocument:\n this.fileStackPreview();\n break;\n case MediaType.Video:\n\n break;\n case MediaType.Audio:\n\n break;\n }\n\n }\n\n isAudioOrVideoSupportedForPreview(file: StorageObjectReqRes, mediaType: MediaType): boolean {\n return TerraUtils.isAudioOrVideoSupportedForPreview(file, mediaType);\n }\n\n download(storageObject: StorageObjectReqRes) {\n this.dialogRef.close({ download: true });\n }\n\n private fileStackPreview() {\n const clientOptions = {\n security: {\n policy: this.storageObject.filestackPolicy,\n signature: this.storageObject.filestackSignature\n } as Security\n } as ClientOptions;\n\n this.filestackService.init(this.appSettingsService.fileStackApiKey, clientOptions);\n\n this.filestackService.preview(this.storageObject.filestackHandle,\n {\n id: 'filePreviewFrame',\n // css: `https://cdn.filestackcontent.com/security=policy:eyJleHBpcnkiOiAxNTg4NjkwMjgwLCAiY2FsbCI6IFsicmVhZCJdLCAiaGFuZGxlIjogImxGVzU4aXFCUTRPZXVMcVR0T2xUIn0=,signature:665a6ab46af33654455aaedc9095c66adad35c7217be6bf7530e77d30ba505ec/lFW58iqBQ4OeuLqTtOlT`\n });\n }\n}\n","\n \n \n\n\n \n
\n \n \n \n \n \n Your browser does not support this HTML5 video tag.\n \n \n \n \n \n \n \n
No preview available, download the file directly.
\n
\n get_app \n Download file\n \n
\n \n \n \n\n\n Close \n
\n","import { Injectable } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { Observable, throwError } from 'rxjs';\nimport { catchError, tap } from 'rxjs/operators';\nimport { Security, ClientOptions } from 'filestack-js';\nimport { FilestackService } from '@filestack/angular';\n\nimport { HttpService } from '../http.service';\nimport {\n HoldingStorageObjectReqRes,\n StorageObjectReqRes,\n} from 'src/app/shared/models/StorageObjectReqRes.model';\nimport { HoldingDocumentsSearchOptionsRequest } from 'src/app/dashboard/shared/holding/documents/HoldingDocumentsSearchOptionsRequest.model';\nimport { SearchOptionsResponse } from 'src/app/shared/models/SearchOptionsResponse.model';\nimport { StorageObjectShareReqRes } from 'src/app/dashboard/shared/holding/documents/StorageObjectShareReqRes.model';\nimport { StorageObjectPermissionListReqRes } from 'src/app/dashboard/shared/holding/documents/StorageObjectPermissionListReqRes.model';\nimport { StorageObjectQuotaReqRes } from 'src/app/shared/models/StorageObjectQuotaReqRes.model';\nimport { StorageObjectPolicyReqRes } from 'src/app/shared/models/StorageObjectPolicyReqRes.model';\nimport { AppSettingsService } from '../app-settings.service';\nimport { FilePreviewDialogComponent } from 'src/app/shared/components/file-preview-dialog/file-preview-dialog.component';\nimport { StorageObjectSearchOptionsResponse } from 'src/app/dashboard/shared/holding/documents/StorageObjectSearchOptionsResponse.model';\nimport { HoldingStorageObjectSearchOptionsRequest } from 'src/app/shared/models/HoldingStorageObjectSearchOptionsRequest.model';\nimport { HttpParams } from '@angular/common/http';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class StorageObjectDataService {\n protected readonly BASE_ENDPOINT = 'storage-objects';\n\n constructor(\n private http: HttpService,\n private filestackService: FilestackService,\n private appSettingsService: AppSettingsService,\n private dialog: MatDialog\n ) {}\n\n protected getSearchOptionsToQuerystring(\n options: HoldingDocumentsSearchOptionsRequest\n ): string {\n let query = `?filter=${options.filter}&sortOrder=${options.sortOrder}&pageNumber=${options.pageNumber}&pageSize=${options.pageSize}&holdingId=${options.holdingId}`;\n\n if (options.storageObjectParentId) {\n query += `&storageObjectParentId=${options.storageObjectParentId}`;\n }\n if (options.orderBy) {\n query += `&orderBy=${options.orderBy}`;\n }\n if (options.foldersOnly) {\n query += `&orderBy=${options.orderBy.toString().toLowerCase()}`;\n }\n if (options.searchGlobally) {\n query += `&searchGlobally=${options.searchGlobally\n .toString()\n .toLowerCase()}`;\n }\n if (options.fromDate) {\n query += `&fromDate=${options.fromDate.toISOString()}`;\n }\n if (options.toDate) {\n query += `&toDate=${options.toDate.toISOString()}`;\n }\n return query;\n }\n\n public getFile(\n storageObjectId: number\n ): Observable {\n return this.http\n .getTyped(\n `${this.BASE_ENDPOINT}/${storageObjectId}`\n )\n .pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n /** Get all files and folders, icnluding the folder's content recursivly */\n public getRecursive(\n storageObjectIds: number[]\n ): Observable {\n return this.http.postTyped(`${this.BASE_ENDPOINT}/recursive`, storageObjectIds)\n .pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n public getStorageObjects(options: HoldingStorageObjectSearchOptionsRequest) {\n const querystring = options\n ? this.getSearchOptionsToQuerystring(options)\n : '';\n return this.http\n .getTyped(\n this.BASE_ENDPOINT + querystring\n )\n .pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n public getLpDocuments(options: HoldingStorageObjectSearchOptionsRequest):Observable {\n const querystring = options\n ? this.getSearchOptionsToQuerystring(options)\n : '';\n return this.http\n .getTyped(`${this.BASE_ENDPOINT}/lp-documents${querystring}`)\n .pipe(\n catchError((err) => {\n return throwError(() => err);\n })\n );\n }\n\n public getQuota(sessionId?: string): Observable {\n let params = new HttpParams();\n if (sessionId) {\n params = params.append('sessionId', sessionId);\n }\n return this.http\n .getTyped(`${this.BASE_ENDPOINT}/quota`, params)\n .pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n public getFilestackPolicy(): Observable {\n return this.http\n .getTyped(`${this.BASE_ENDPOINT}/policy`)\n .pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n createFolder(holdingId: number, model: HoldingStorageObjectReqRes) {\n const url = `${this.BASE_ENDPOINT}/folders?holdingId=${holdingId}`;\n return this.http.postTyped(url, model).pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n validateFolderName(model: HoldingStorageObjectReqRes) {\n const url = `${this.BASE_ENDPOINT}/folders?holdingId=${model.holdingId}&validateOnly=true`;\n return this.http.postTyped(url, model)\n }\n\n createFilesLp(model: HoldingStorageObjectReqRes[], investingEntityId: number) {\n const url = `${this.BASE_ENDPOINT}?investingEntityId=${investingEntityId}`;\n return this.http\n .postTyped(url, model)\n .pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n /** The file is uploaded to fileStack directly, front side. When the upload is complete,\n * we send a post request to the API, to save and create the respective database entries.\n */\n createFiles(model: HoldingStorageObjectReqRes[]) {\n return this.http\n .postTyped(this.BASE_ENDPOINT, model)\n .pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n rename(storageObjectId: number, displayName: string) {\n const url = `${this.BASE_ENDPOINT}/${storageObjectId}/rename`;\n const model = new HoldingStorageObjectReqRes();\n model.displayName = displayName;\n return this.http.putTyped(url, model).pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n delete(storageFileId: number) {\n return this.deleteMultiple([storageFileId]);\n }\n\n deleteMultiple(storageFileIds: number[]): Observable {\n return this.http\n .postTyped(`${this.BASE_ENDPOINT}/delete`, storageFileIds)\n .pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n getAllFoldersForHolding(holdingId: number, sessionId?: string) {\n const url = `${this.BASE_ENDPOINT}/folders?holdingId=${holdingId}`;\n let params = new HttpParams();\n if (sessionId) {\n params = params.append('sessionId', sessionId);\n }\n return this.http\n .getTyped>(url, params)\n .pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n /// If destination is 0, the object will be moved to the root folder (they will have no parent)\n move(\n holdingId: number,\n storageObjectIds: number[],\n destinationFolderStorageObjectId: number\n ) {\n const url = `${this.BASE_ENDPOINT}/move/${\n destinationFolderStorageObjectId || 0\n }`;\n const model = {\n storageObjectIds,\n holdingId,\n };\n return this.http.putTyped(url, model).pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n share(model: StorageObjectShareReqRes) {\n const url = `${this.BASE_ENDPOINT}/share`;\n return this.http.putTyped(url, model).pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n public getShareSuggestions(\n holdingId: number,\n storageObjectIds: number[]\n ): Observable<{\n matches: Array<{\n storageObjectId: number;\n investingEntityId: number | null;\n }>;\n }> {\n let parameters = { holdingId, storageObjectIds };\n return this.http.postTyped<{\n matches: Array<{\n storageObjectId: number;\n investingEntityId: number | null;\n }>;\n }>(`${this.BASE_ENDPOINT}/share/suggestions`, parameters)\n .pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n public postShareSuggestions(\n holdingId: number,\n matches: Array<{\n storageObjectId: number;\n investingEntityId: number | null;\n }>,\n personalMessage: string,\n sendShareEmails,\n sessionId: string\n ) {\n return this.http\n .postTyped(`${this.BASE_ENDPOINT}/share/bulk`, {\n matches,\n holdingId,\n personalMessage,\n sendShareEmails,\n sessionId,\n })\n .pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n public refreshSessionData(sessionId: string) {\n return this.http.postTyped(`${this.BASE_ENDPOINT}/session/${sessionId}/refresh`, {}).pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n // The model will have a list of all investors that were previously shared for the selected files (all or some of them).\n // There is no way of adding permissins using this method.\n // Any item on the list can be set for removing permissions (from all files), or leave unchaged.\n setPermissions(model: StorageObjectPermissionListReqRes) {\n const url = `${this.BASE_ENDPOINT}/permissions`;\n return this.http.postTyped(url, model).pipe(\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n previewFile(\n storageObject: StorageObjectReqRes,\n openIn: 'dialog' | 'tab' = 'tab'\n ) {\n switch (openIn) {\n case 'tab':\n const clientOptions = {\n security: {\n policy: storageObject.filestackPolicy,\n signature: storageObject.filestackSignature,\n } as Security,\n } as ClientOptions;\n\n this.filestackService.init(\n this.appSettingsService.fileStackApiKey,\n clientOptions\n );\n this.filestackService.preview(storageObject.filestackHandle);\n break;\n case 'dialog':\n this.dialog\n .open(FilePreviewDialogComponent, { data: storageObject })\n .afterClosed()\n .subscribe((data) => {\n if (data && data.download) {\n this.getDownloadToken(storageObject.id).subscribe(\n () => {},\n (error) => {}\n );\n }\n });\n break;\n }\n }\n\n getDownloadToken(storageObjectId: number) {\n return this.http\n .getTyped(\n `document/${this.BASE_ENDPOINT}/${storageObjectId}/token`\n )\n .pipe(\n tap((response) => this.downloadUrlWithToken(storageObjectId, response)),\n catchError((err) => {\n return throwError(err);\n })\n );\n }\n\n downloadUrlWithToken(storageObjectId: number, token: string) {\n const downloadUrl = this.http.getFullUrl(\n `document/${this.BASE_ENDPOINT}/${storageObjectId}/${token}`\n );\n\n const link = document.createElement('a') as HTMLAnchorElement;\n link.href = downloadUrl;\n link.download = 'download-file';\n link.target = '_blank';\n link.dispatchEvent(new MouseEvent('click'));\n }\n}\n","import * as i2 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { forwardRef, EventEmitter, booleanAttribute, numberAttribute, Component, ViewEncapsulation, Input, Output, signal, computed, effect, ChangeDetectionStrategy, ViewChild, ContentChild, ContentChildren, NgModule } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport * as i1 from 'primeng/api';\nimport { TranslationKeys, Footer, Header, PrimeTemplate, SharedModule } from 'primeng/api';\nimport { DomHandler } from 'primeng/dom';\nimport * as i4 from 'primeng/overlay';\nimport { OverlayModule } from 'primeng/overlay';\nimport * as i3 from 'primeng/ripple';\nimport { RippleModule } from 'primeng/ripple';\nimport * as i6 from 'primeng/scroller';\nimport { ScrollerModule } from 'primeng/scroller';\nimport * as i5 from 'primeng/tooltip';\nimport { TooltipModule } from 'primeng/tooltip';\nimport { ObjectUtils, UniqueComponentId } from 'primeng/utils';\nimport { CheckIcon } from 'primeng/icons/check';\nimport { SearchIcon } from 'primeng/icons/search';\nimport { TimesCircleIcon } from 'primeng/icons/timescircle';\nimport { TimesIcon } from 'primeng/icons/times';\nimport { ChevronDownIcon } from 'primeng/icons/chevrondown';\nimport * as i7 from 'primeng/autofocus';\nimport { AutoFocusModule } from 'primeng/autofocus';\nimport { MinusIcon } from 'primeng/icons/minus';\nconst _c0 = a0 => ({\n height: a0\n});\nconst _c1 = (a0, a1) => ({\n \"p-multiselect-item\": true,\n \"p-disabled\": a0,\n \"p-focus\": a1\n});\nconst _c2 = a0 => ({\n \"p-variant-filled\": a0\n});\nconst _c3 = a0 => ({\n \"p-highlight\": a0\n});\nconst _c4 = a0 => ({\n $implicit: a0\n});\nfunction MultiSelectItem_ng_container_3_CheckIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"CheckIcon\", 7);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-checkbox-icon\");\n i0.ɵɵattribute(\"aria-hidden\", true);\n }\n}\nfunction MultiSelectItem_ng_container_3_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction MultiSelectItem_ng_container_3_span_2_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, MultiSelectItem_ng_container_3_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction MultiSelectItem_ng_container_3_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 8);\n i0.ɵɵtemplate(1, MultiSelectItem_ng_container_3_span_2_1_Template, 1, 0, null, 9);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(2);\n i0.ɵɵattribute(\"aria-hidden\", true);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.checkIconTemplate);\n }\n}\nfunction MultiSelectItem_ng_container_3_span_3_1_ng_template_0_Template(rf, ctx) {}\nfunction MultiSelectItem_ng_container_3_span_3_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, MultiSelectItem_ng_container_3_span_3_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction MultiSelectItem_ng_container_3_span_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 8);\n i0.ɵɵtemplate(1, MultiSelectItem_ng_container_3_span_3_1_Template, 1, 0, null, 4);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext(2);\n i0.ɵɵattribute(\"aria-hidden\", true);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r0.itemCheckboxIconTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(3, _c4, ctx_r0.selected));\n }\n}\nfunction MultiSelectItem_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelectItem_ng_container_3_CheckIcon_1_Template, 1, 2, \"CheckIcon\", 5)(2, MultiSelectItem_ng_container_3_span_2_Template, 2, 2, \"span\", 6)(3, MultiSelectItem_ng_container_3_span_3_Template, 2, 5, \"span\", 6);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r0.checkIconTemplate && !ctx_r0.itemCheckboxIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.checkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r0.itemCheckboxIconTemplate);\n }\n}\nfunction MultiSelectItem_span_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n let tmp_1_0;\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate((tmp_1_0 = ctx_r0.label) !== null && tmp_1_0 !== undefined ? tmp_1_0 : \"empty\");\n }\n}\nfunction MultiSelectItem_ng_container_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nconst _c5 = [\"container\"];\nconst _c6 = [\"overlay\"];\nconst _c7 = [\"filterInput\"];\nconst _c8 = [\"focusInput\"];\nconst _c9 = [\"items\"];\nconst _c10 = [\"scroller\"];\nconst _c11 = [\"lastHiddenFocusableEl\"];\nconst _c12 = [\"firstHiddenFocusableEl\"];\nconst _c13 = [\"headerCheckbox\"];\nconst _c14 = [[[\"p-header\"]], [[\"p-footer\"]]];\nconst _c15 = [\"p-header\", \"p-footer\"];\nconst _c16 = (a0, a1) => ({\n $implicit: a0,\n removeChip: a1\n});\nconst _c17 = a0 => ({\n \"p-disabled\": a0\n});\nconst _c18 = a0 => ({\n \"max-height\": a0\n});\nconst _c19 = a0 => ({\n options: a0\n});\nconst _c20 = (a0, a1) => ({\n \"p-variant-filled\": a0,\n \"p-checkbox-disabled\": a1\n});\nconst _c21 = (a0, a1, a2) => ({\n \"p-highlight\": a0,\n \"p-focus\": a1,\n \"p-disabled\": a2\n});\nconst _c22 = (a0, a1) => ({\n $implicit: a0,\n partialSelected: a1\n});\nconst _c23 = (a0, a1) => ({\n $implicit: a0,\n options: a1\n});\nconst _c24 = () => ({});\nfunction MultiSelect_ng_container_7_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx_r1.label() || \"empty\");\n }\n}\nfunction MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_TimesCircleIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r3 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"TimesCircleIcon\", 31);\n i0.ɵɵlistener(\"click\", function MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_TimesCircleIcon_1_Template_TimesCircleIcon_click_0_listener() {\n i0.ɵɵrestoreView(_r3);\n const item_r4 = i0.ɵɵnextContext(2).$implicit;\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.removeOption(item_r4, ctx_r1.event));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const item_r4 = i0.ɵɵnextContext(2).$implicit;\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(4, _c17, ctx_r1.isOptionDisabled(item_r4)))(\"styleClass\", \"p-multiselect-token-icon\");\n i0.ɵɵattribute(\"data-pc-section\", \"clearicon\")(\"aria-hidden\", true);\n }\n}\nfunction MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_span_2_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_span_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r5 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"span\", 32);\n i0.ɵɵlistener(\"click\", function MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_span_2_Template_span_click_0_listener() {\n i0.ɵɵrestoreView(_r5);\n const item_r4 = i0.ɵɵnextContext(2).$implicit;\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.removeOption(item_r4, ctx_r1.event));\n });\n i0.ɵɵtemplate(1, MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_span_2_ng_container_1_Template, 1, 0, \"ng-container\", 33);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(5);\n i0.ɵɵattribute(\"data-pc-section\", \"clearicon\")(\"aria-hidden\", true);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.removeTokenIconTemplate);\n }\n}\nfunction MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_TimesCircleIcon_1_Template, 1, 6, \"TimesCircleIcon\", 29)(2, MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_span_2_Template, 2, 3, \"span\", 30);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.removeTokenIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.removeTokenIconTemplate);\n }\n}\nfunction MultiSelect_ng_container_7_ng_container_2_div_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 27, 4)(2, \"span\", 28);\n i0.ɵɵtext(3);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(4, MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_Template, 3, 2, \"ng-container\", 20);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const item_r4 = ctx.$implicit;\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance(3);\n i0.ɵɵtextInterpolate(ctx_r1.getLabelByValue(item_r4));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.disabled);\n }\n}\nfunction MultiSelect_ng_container_7_ng_container_2_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx_r1.placeholder() || ctx_r1.defaultLabel || \"empty\");\n }\n}\nfunction MultiSelect_ng_container_7_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelect_ng_container_7_ng_container_2_div_1_Template, 5, 2, \"div\", 26)(2, MultiSelect_ng_container_7_ng_container_2_ng_container_2_Template, 2, 1, \"ng-container\", 20);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", ctx_r1.chipSelectedItems());\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.modelValue() || ctx_r1.modelValue().length === 0);\n }\n}\nfunction MultiSelect_ng_container_7_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelect_ng_container_7_ng_container_1_Template, 2, 1, \"ng-container\", 20)(2, MultiSelect_ng_container_7_ng_container_2_Template, 3, 2, \"ng-container\", 20);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.display === \"comma\");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.display === \"chip\");\n }\n}\nfunction MultiSelect_ng_container_8_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction MultiSelect_ng_container_9_TimesIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r6 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"TimesIcon\", 36);\n i0.ɵɵlistener(\"click\", function MultiSelect_ng_container_9_TimesIcon_1_Template_TimesIcon_click_0_listener($event) {\n i0.ɵɵrestoreView(_r6);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.clear($event));\n });\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-multiselect-clear-icon\");\n i0.ɵɵattribute(\"data-pc-section\", \"clearicon\")(\"aria-hidden\", true);\n }\n}\nfunction MultiSelect_ng_container_9_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction MultiSelect_ng_container_9_span_2_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, MultiSelect_ng_container_9_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction MultiSelect_ng_container_9_span_2_Template(rf, ctx) {\n if (rf & 1) {\n const _r7 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"span\", 37);\n i0.ɵɵlistener(\"click\", function MultiSelect_ng_container_9_span_2_Template_span_click_0_listener($event) {\n i0.ɵɵrestoreView(_r7);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.clear($event));\n });\n i0.ɵɵtemplate(1, MultiSelect_ng_container_9_span_2_1_Template, 1, 0, null, 33);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵattribute(\"data-pc-section\", \"clearicon\")(\"aria-hidden\", true);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.clearIconTemplate);\n }\n}\nfunction MultiSelect_ng_container_9_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelect_ng_container_9_TimesIcon_1_Template, 1, 3, \"TimesIcon\", 34)(2, MultiSelect_ng_container_9_span_2_Template, 2, 3, \"span\", 35);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.clearIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.clearIconTemplate);\n }\n}\nfunction MultiSelect_ng_container_11_ng_container_1_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction MultiSelect_ng_container_11_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelect_ng_container_11_ng_container_1_ng_container_1_Template, 1, 0, \"ng-container\", 33);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.loadingIconTemplate);\n }\n}\nfunction MultiSelect_ng_container_11_ng_container_2_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 40);\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngClass\", \"p-multiselect-trigger-icon pi-spin \" + ctx_r1.loadingIcon);\n }\n}\nfunction MultiSelect_ng_container_11_ng_container_2_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 41);\n }\n if (rf & 2) {\n i0.ɵɵclassMap(\"p-multiselect-trigger-icon pi pi-spinner pi-spin\");\n }\n}\nfunction MultiSelect_ng_container_11_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelect_ng_container_11_ng_container_2_span_1_Template, 1, 1, \"span\", 38)(2, MultiSelect_ng_container_11_ng_container_2_span_2_Template, 1, 2, \"span\", 39);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.loadingIcon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.loadingIcon);\n }\n}\nfunction MultiSelect_ng_container_11_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelect_ng_container_11_ng_container_1_Template, 2, 1, \"ng-container\", 20)(2, MultiSelect_ng_container_11_ng_container_2_Template, 3, 2, \"ng-container\", 20);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.loadingIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.loadingIconTemplate);\n }\n}\nfunction MultiSelect_ng_template_12_ng_container_0_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"span\", 45);\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngClass\", ctx_r1.dropdownIcon);\n i0.ɵɵattribute(\"data-pc-section\", \"triggericon\")(\"aria-hidden\", true);\n }\n}\nfunction MultiSelect_ng_template_12_ng_container_0_ChevronDownIcon_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"ChevronDownIcon\", 46);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-multiselect-trigger-icon\");\n i0.ɵɵattribute(\"data-pc-section\", \"triggericon\")(\"aria-hidden\", true);\n }\n}\nfunction MultiSelect_ng_template_12_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelect_ng_template_12_ng_container_0_span_1_Template, 1, 3, \"span\", 43)(2, MultiSelect_ng_template_12_ng_container_0_ChevronDownIcon_2_Template, 1, 3, \"ChevronDownIcon\", 44);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.dropdownIcon);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.dropdownIcon);\n }\n}\nfunction MultiSelect_ng_template_12_span_1_1_ng_template_0_Template(rf, ctx) {}\nfunction MultiSelect_ng_template_12_span_1_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, MultiSelect_ng_template_12_span_1_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction MultiSelect_ng_template_12_span_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 47);\n i0.ɵɵtemplate(1, MultiSelect_ng_template_12_span_1_1_Template, 1, 0, null, 33);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵattribute(\"data-pc-section\", \"triggericon\")(\"aria-hidden\", true);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.dropdownIconTemplate);\n }\n}\nfunction MultiSelect_ng_template_12_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, MultiSelect_ng_template_12_ng_container_0_Template, 3, 2, \"ng-container\", 20)(1, MultiSelect_ng_template_12_span_1_Template, 2, 3, \"span\", 42);\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.dropdownIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.dropdownIconTemplate);\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_container_3_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelect_ng_template_16_div_3_ng_container_3_ng_container_1_Template, 1, 0, \"ng-container\", 21);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.filterTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c19, ctx_r1.filterOptions));\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_ng_container_1_CheckIcon_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"CheckIcon\", 46);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-checkbox-icon\");\n i0.ɵɵattribute(\"aria-hidden\", true);\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_ng_container_1_CheckIcon_1_Template, 1, 2, \"CheckIcon\", 44);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(6);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.allSelected());\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_1_ng_template_0_Template(rf, ctx) {}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 63);\n i0.ɵɵtemplate(1, MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_1_Template, 1, 0, null, 21);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(6);\n i0.ɵɵattribute(\"aria-hidden\", true);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.checkIconTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(3, _c4, ctx_r1.allSelected()));\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_1_ng_template_0_Template(rf, ctx) {}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 63);\n i0.ɵɵtemplate(1, MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_1_Template, 1, 0, null, 21);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(6);\n i0.ɵɵattribute(\"aria-hidden\", true);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.headerCheckboxIconTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction2(3, _c22, ctx_r1.allSelected(), ctx_r1.partialSelected()));\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_ng_container_1_Template, 2, 1, \"ng-container\", 20)(2, MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_Template, 2, 5, \"span\", 62)(3, MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_Template, 2, 6, \"span\", 62);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(5);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.checkIconTemplate && !ctx_r1.headerCheckboxIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.checkIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.headerCheckboxIconTemplate);\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_0_Template(rf, ctx) {\n if (rf & 1) {\n const _r10 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 59);\n i0.ɵɵlistener(\"click\", function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_Template_div_click_0_listener($event) {\n i0.ɵɵrestoreView(_r10);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onToggleAll($event));\n })(\"keydown\", function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_Template_div_keydown_0_listener($event) {\n i0.ɵɵrestoreView(_r10);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onHeaderCheckboxKeyDown($event));\n });\n i0.ɵɵelementStart(1, \"div\", 16)(2, \"input\", 60, 9);\n i0.ɵɵlistener(\"focus\", function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_Template_input_focus_2_listener() {\n i0.ɵɵrestoreView(_r10);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onHeaderCheckboxFocus());\n })(\"blur\", function MultiSelect_ng_template_16_div_3_ng_template_4_div_0_Template_input_blur_2_listener() {\n i0.ɵɵrestoreView(_r10);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onHeaderCheckboxBlur());\n });\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(4, \"div\", 61);\n i0.ɵɵtemplate(5, MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_Template, 4, 3, \"ng-container\", 20);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction2(10, _c20, ctx_r1.variant === \"filled\" || ctx_r1.config.inputStyle() === \"filled\", ctx_r1.disabled || ctx_r1.toggleAllDisabled));\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"data-p-hidden-accessible\", true);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"readonly\", ctx_r1.readonly)(\"disabled\", ctx_r1.disabled || ctx_r1.toggleAllDisabled);\n i0.ɵɵattribute(\"checked\", ctx_r1.allSelected())(\"aria-label\", ctx_r1.toggleAllAriaLabel);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction3(13, _c21, ctx_r1.allSelected(), ctx_r1.headerCheckboxFocus, ctx_r1.disabled || ctx_r1.toggleAllDisabled));\n i0.ɵɵattribute(\"aria-label\", ctx_r1.toggleAllAriaLabel)(\"aria-checked\", ctx_r1.allSelected());\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.allSelected() || ctx_r1.partialSelected());\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_1_SearchIcon_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"SearchIcon\", 46);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-multiselect-filter-icon\");\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_1_ng_template_0_Template(rf, ctx) {}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 67);\n i0.ɵɵtemplate(1, MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_1_Template, 1, 0, null, 33);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(5);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.filterIconTemplate);\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_div_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r11 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 64)(1, \"input\", 65, 10);\n i0.ɵɵlistener(\"input\", function MultiSelect_ng_template_16_div_3_ng_template_4_div_1_Template_input_input_1_listener($event) {\n i0.ɵɵrestoreView(_r11);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onFilterInputChange($event));\n })(\"keydown\", function MultiSelect_ng_template_16_div_3_ng_template_4_div_1_Template_input_keydown_1_listener($event) {\n i0.ɵɵrestoreView(_r11);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onFilterKeyDown($event));\n })(\"click\", function MultiSelect_ng_template_16_div_3_ng_template_4_div_1_Template_input_click_1_listener($event) {\n i0.ɵɵrestoreView(_r11);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onInputClick($event));\n })(\"blur\", function MultiSelect_ng_template_16_div_3_ng_template_4_div_1_Template_input_blur_1_listener($event) {\n i0.ɵɵrestoreView(_r11);\n const ctx_r1 = i0.ɵɵnextContext(4);\n return i0.ɵɵresetView(ctx_r1.onFilterBlur($event));\n });\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(3, MultiSelect_ng_template_16_div_3_ng_template_4_div_1_SearchIcon_3_Template, 1, 1, \"SearchIcon\", 44)(4, MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_Template, 2, 1, \"span\", 66);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"value\", ctx_r1._filterValue() || \"\")(\"disabled\", ctx_r1.disabled);\n i0.ɵɵattribute(\"autocomplete\", ctx_r1.autocomplete)(\"placeholder\", ctx_r1.filterPlaceHolder)(\"aria-owns\", ctx_r1.id + \"_list\")(\"aria-activedescendant\", ctx_r1.focusedOptionId)(\"placeholder\", ctx_r1.filterPlaceHolder)(\"aria-label\", ctx_r1.ariaFilterLabel);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.filterIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.filterIconTemplate);\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_TimesIcon_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"TimesIcon\", 46);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"styleClass\", \"p-multiselect-close-icon\");\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_span_4_1_ng_template_0_Template(rf, ctx) {}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_span_4_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, MultiSelect_ng_template_16_div_3_ng_template_4_span_4_1_ng_template_0_Template, 0, 0, \"ng-template\");\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_span_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\", 68);\n i0.ɵɵtemplate(1, MultiSelect_ng_template_16_div_3_ng_template_4_span_4_1_Template, 1, 0, null, 33);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.closeIconTemplate);\n }\n}\nfunction MultiSelect_ng_template_16_div_3_ng_template_4_Template(rf, ctx) {\n if (rf & 1) {\n const _r9 = i0.ɵɵgetCurrentView();\n i0.ɵɵtemplate(0, MultiSelect_ng_template_16_div_3_ng_template_4_div_0_Template, 6, 17, \"div\", 55)(1, MultiSelect_ng_template_16_div_3_ng_template_4_div_1_Template, 5, 10, \"div\", 56);\n i0.ɵɵelementStart(2, \"button\", 57);\n i0.ɵɵlistener(\"click\", function MultiSelect_ng_template_16_div_3_ng_template_4_Template_button_click_2_listener($event) {\n i0.ɵɵrestoreView(_r9);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.close($event));\n });\n i0.ɵɵtemplate(3, MultiSelect_ng_template_16_div_3_ng_template_4_TimesIcon_3_Template, 1, 1, \"TimesIcon\", 44)(4, MultiSelect_ng_template_16_div_3_ng_template_4_span_4_Template, 2, 1, \"span\", 58);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.isSelectionAllDisabled());\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.filter);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"aria-label\", ctx_r1.closeAriaLabel);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.closeIconTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.closeIconTemplate);\n }\n}\nfunction MultiSelect_ng_template_16_div_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 54);\n i0.ɵɵprojection(1);\n i0.ɵɵtemplate(2, MultiSelect_ng_template_16_div_3_ng_container_2_Template, 1, 0, \"ng-container\", 33)(3, MultiSelect_ng_template_16_div_3_ng_container_3_Template, 2, 4, \"ng-container\", 23)(4, MultiSelect_ng_template_16_div_3_ng_template_4_Template, 5, 5, \"ng-template\", null, 8, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const builtInFilterElement_r12 = i0.ɵɵreference(5);\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.headerTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.filterTemplate)(\"ngIfElse\", builtInFilterElement_r12);\n }\n}\nfunction MultiSelect_ng_template_16_p_scroller_5_ng_template_2_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction MultiSelect_ng_template_16_p_scroller_5_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, MultiSelect_ng_template_16_p_scroller_5_ng_template_2_ng_container_0_Template, 1, 0, \"ng-container\", 21);\n }\n if (rf & 2) {\n const items_r14 = ctx.$implicit;\n const scrollerOptions_r15 = ctx.options;\n i0.ɵɵnextContext(2);\n const buildInItems_r16 = i0.ɵɵreference(8);\n i0.ɵɵproperty(\"ngTemplateOutlet\", buildInItems_r16)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction2(2, _c23, items_r14, scrollerOptions_r15));\n }\n}\nfunction MultiSelect_ng_template_16_p_scroller_5_ng_container_3_ng_template_1_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction MultiSelect_ng_template_16_p_scroller_5_ng_container_3_ng_template_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, MultiSelect_ng_template_16_p_scroller_5_ng_container_3_ng_template_1_ng_container_0_Template, 1, 0, \"ng-container\", 21);\n }\n if (rf & 2) {\n const scrollerOptions_r17 = ctx.options;\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.loaderTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(2, _c19, scrollerOptions_r17));\n }\n}\nfunction MultiSelect_ng_template_16_p_scroller_5_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelect_ng_template_16_p_scroller_5_ng_container_3_ng_template_1_Template, 1, 4, \"ng-template\", 70);\n i0.ɵɵelementContainerEnd();\n }\n}\nfunction MultiSelect_ng_template_16_p_scroller_5_Template(rf, ctx) {\n if (rf & 1) {\n const _r13 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"p-scroller\", 69, 11);\n i0.ɵɵlistener(\"onLazyLoad\", function MultiSelect_ng_template_16_p_scroller_5_Template_p_scroller_onLazyLoad_0_listener($event) {\n i0.ɵɵrestoreView(_r13);\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onLazyLoad.emit($event));\n });\n i0.ɵɵtemplate(2, MultiSelect_ng_template_16_p_scroller_5_ng_template_2_Template, 1, 5, \"ng-template\", 25)(3, MultiSelect_ng_template_16_p_scroller_5_ng_container_3_Template, 2, 0, \"ng-container\", 20);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵstyleMap(i0.ɵɵpureFunction1(9, _c0, ctx_r1.scrollHeight));\n i0.ɵɵproperty(\"items\", ctx_r1.visibleOptions())(\"itemSize\", ctx_r1.virtualScrollItemSize || ctx_r1._itemSize)(\"autoSize\", true)(\"tabindex\", -1)(\"lazy\", ctx_r1.lazy)(\"options\", ctx_r1.virtualScrollOptions);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.loaderTemplate);\n }\n}\nfunction MultiSelect_ng_template_16_ng_container_6_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction MultiSelect_ng_template_16_ng_container_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, MultiSelect_ng_template_16_ng_container_6_ng_container_1_Template, 1, 0, \"ng-container\", 21);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n i0.ɵɵnextContext();\n const buildInItems_r16 = i0.ɵɵreference(8);\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", buildInItems_r16)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction2(3, _c23, ctx_r1.visibleOptions(), i0.ɵɵpureFunction0(2, _c24)));\n }\n}\nfunction MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_span_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"span\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const option_r18 = i0.ɵɵnextContext(2).$implicit;\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate(ctx_r1.getOptionGroupLabel(option_r18.optionGroup));\n }\n}\nfunction MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_ng_container_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵelementStart(1, \"li\", 74);\n i0.ɵɵtemplate(2, MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_span_2_Template, 2, 1, \"span\", 20)(3, MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_ng_container_3_Template, 1, 0, \"ng-container\", 21);\n i0.ɵɵelementEnd();\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r18 = i0.ɵɵnextContext();\n const option_r18 = ctx_r18.$implicit;\n const i_r20 = ctx_r18.index;\n const scrollerOptions_r21 = i0.ɵɵnextContext().options;\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(5, _c0, scrollerOptions_r21.itemSize + \"px\"));\n i0.ɵɵattribute(\"id\", ctx_r1.id + \"_\" + ctx_r1.getOptionIndex(i_r20, scrollerOptions_r21));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.groupTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.groupTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(7, _c4, option_r18.optionGroup));\n }\n}\nfunction MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r22 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵelementStart(1, \"p-multiSelectItem\", 75);\n i0.ɵɵlistener(\"onClick\", function MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_1_Template_p_multiSelectItem_onClick_1_listener($event) {\n i0.ɵɵrestoreView(_r22);\n const i_r20 = i0.ɵɵnextContext().index;\n const scrollerOptions_r21 = i0.ɵɵnextContext().options;\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onOptionSelect($event, false, ctx_r1.getOptionIndex(i_r20, scrollerOptions_r21)));\n })(\"onMouseEnter\", function MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_1_Template_p_multiSelectItem_onMouseEnter_1_listener($event) {\n i0.ɵɵrestoreView(_r22);\n const i_r20 = i0.ɵɵnextContext().index;\n const scrollerOptions_r21 = i0.ɵɵnextContext().options;\n const ctx_r1 = i0.ɵɵnextContext(2);\n return i0.ɵɵresetView(ctx_r1.onOptionMouseEnter($event, ctx_r1.getOptionIndex(i_r20, scrollerOptions_r21)));\n });\n i0.ɵɵelementEnd();\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r18 = i0.ɵɵnextContext();\n const option_r18 = ctx_r18.$implicit;\n const i_r20 = ctx_r18.index;\n const scrollerOptions_r21 = i0.ɵɵnextContext().options;\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"id\", ctx_r1.id + \"_\" + ctx_r1.getOptionIndex(i_r20, scrollerOptions_r21))(\"option\", option_r18)(\"selected\", ctx_r1.isSelected(option_r18))(\"label\", ctx_r1.getOptionLabel(option_r18))(\"disabled\", ctx_r1.isOptionDisabled(option_r18))(\"template\", ctx_r1.itemTemplate)(\"checkIconTemplate\", ctx_r1.checkIconTemplate)(\"itemCheckboxIconTemplate\", ctx_r1.itemCheckboxIconTemplate)(\"itemSize\", scrollerOptions_r21.itemSize)(\"focused\", ctx_r1.focusedOptionIndex() === ctx_r1.getOptionIndex(i_r20, scrollerOptions_r21))(\"ariaPosInset\", ctx_r1.getAriaPosInset(ctx_r1.getOptionIndex(i_r20, scrollerOptions_r21)))(\"ariaSetSize\", ctx_r1.ariaSetSize);\n }\n}\nfunction MultiSelect_ng_template_16_ng_template_7_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_Template, 4, 9, \"ng-container\", 20)(1, MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_1_Template, 2, 12, \"ng-container\", 20);\n }\n if (rf & 2) {\n const option_r18 = ctx.$implicit;\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.isOptionGroup(option_r18));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.isOptionGroup(option_r18));\n }\n}\nfunction MultiSelect_ng_template_16_ng_template_7_li_3_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.emptyFilterMessageLabel, \" \");\n }\n}\nfunction MultiSelect_ng_template_16_ng_template_7_li_3_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0, null, 13);\n }\n}\nfunction MultiSelect_ng_template_16_ng_template_7_li_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"li\", 76);\n i0.ɵɵtemplate(1, MultiSelect_ng_template_16_ng_template_7_li_3_ng_container_1_Template, 2, 1, \"ng-container\", 23)(2, MultiSelect_ng_template_16_ng_template_7_li_3_ng_container_2_Template, 2, 0, \"ng-container\", 33);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const scrollerOptions_r21 = i0.ɵɵnextContext().options;\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(4, _c0, scrollerOptions_r21.itemSize + \"px\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.emptyFilterTemplate && !ctx_r1.emptyTemplate)(\"ngIfElse\", ctx_r1.emptyFilter);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.emptyFilterTemplate || ctx_r1.emptyTemplate);\n }\n}\nfunction MultiSelect_ng_template_16_ng_template_7_li_4_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(4);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.emptyMessageLabel, \" \");\n }\n}\nfunction MultiSelect_ng_template_16_ng_template_7_li_4_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0, null, 14);\n }\n}\nfunction MultiSelect_ng_template_16_ng_template_7_li_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"li\", 76);\n i0.ɵɵtemplate(1, MultiSelect_ng_template_16_ng_template_7_li_4_ng_container_1_Template, 2, 1, \"ng-container\", 23)(2, MultiSelect_ng_template_16_ng_template_7_li_4_ng_container_2_Template, 2, 0, \"ng-container\", 33);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const scrollerOptions_r21 = i0.ɵɵnextContext().options;\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(4, _c0, scrollerOptions_r21.itemSize + \"px\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.emptyTemplate)(\"ngIfElse\", ctx_r1.empty);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.emptyTemplate);\n }\n}\nfunction MultiSelect_ng_template_16_ng_template_7_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"ul\", 71, 12);\n i0.ɵɵtemplate(2, MultiSelect_ng_template_16_ng_template_7_ng_template_2_Template, 2, 2, \"ng-template\", 72)(3, MultiSelect_ng_template_16_ng_template_7_li_3_Template, 3, 6, \"li\", 73)(4, MultiSelect_ng_template_16_ng_template_7_li_4_Template, 3, 6, \"li\", 73);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const items_r23 = ctx.$implicit;\n const scrollerOptions_r21 = ctx.options;\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngClass\", scrollerOptions_r21.contentStyleClass)(\"ngStyle\", scrollerOptions_r21.contentStyle);\n i0.ɵɵattribute(\"aria-label\", ctx_r1.listLabel);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngForOf\", items_r23);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.hasFilter() && ctx_r1.isEmpty());\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.hasFilter() && ctx_r1.isEmpty());\n }\n}\nfunction MultiSelect_ng_template_16_div_9_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction MultiSelect_ng_template_16_div_9_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 77);\n i0.ɵɵprojection(1, 1);\n i0.ɵɵtemplate(2, MultiSelect_ng_template_16_div_9_ng_container_2_Template, 1, 0, \"ng-container\", 33);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.footerTemplate);\n }\n}\nfunction MultiSelect_ng_template_16_Template(rf, ctx) {\n if (rf & 1) {\n const _r8 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 48)(1, \"span\", 49, 5);\n i0.ɵɵlistener(\"focus\", function MultiSelect_ng_template_16_Template_span_focus_1_listener($event) {\n i0.ɵɵrestoreView(_r8);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onFirstHiddenFocus($event));\n });\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(3, MultiSelect_ng_template_16_div_3_Template, 6, 3, \"div\", 50);\n i0.ɵɵelementStart(4, \"div\", 51);\n i0.ɵɵtemplate(5, MultiSelect_ng_template_16_p_scroller_5_Template, 4, 11, \"p-scroller\", 52)(6, MultiSelect_ng_template_16_ng_container_6_Template, 2, 6, \"ng-container\", 20)(7, MultiSelect_ng_template_16_ng_template_7_Template, 5, 6, \"ng-template\", null, 6, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(9, MultiSelect_ng_template_16_div_9_Template, 3, 1, \"div\", 53);\n i0.ɵɵelementStart(10, \"span\", 49, 7);\n i0.ɵɵlistener(\"focus\", function MultiSelect_ng_template_16_Template_span_focus_10_listener($event) {\n i0.ɵɵrestoreView(_r8);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onLastHiddenFocus($event));\n });\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵclassMap(ctx_r1.panelStyleClass);\n i0.ɵɵproperty(\"ngClass\", \"p-multiselect-panel p-component\")(\"ngStyle\", ctx_r1.panelStyle);\n i0.ɵɵattribute(\"id\", ctx_r1.id + \"_list\");\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"tabindex\", 0)(\"data-p-hidden-accessible\", true)(\"data-p-hidden-focusable\", true);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.showHeader);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(16, _c18, ctx_r1.virtualScroll ? \"auto\" : ctx_r1.scrollHeight || \"auto\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.virtualScroll);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.virtualScroll);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.footerFacet || ctx_r1.footerTemplate);\n i0.ɵɵadvance();\n i0.ɵɵattribute(\"tabindex\", 0)(\"data-p-hidden-accessible\", true)(\"data-p-hidden-focusable\", true);\n }\n}\nconst MULTISELECT_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MultiSelect),\n multi: true\n};\nlet MultiSelectItem = /*#__PURE__*/(() => {\n class MultiSelectItem {\n config;\n id;\n option;\n selected;\n label;\n disabled;\n itemSize;\n focused;\n ariaPosInset;\n ariaSetSize;\n template;\n checkIconTemplate;\n itemCheckboxIconTemplate;\n onClick = new EventEmitter();\n onMouseEnter = new EventEmitter();\n constructor(config) {\n this.config = config;\n }\n onOptionClick(event) {\n this.onClick.emit({\n originalEvent: event,\n option: this.option,\n selected: this.selected\n });\n event.stopPropagation();\n }\n onOptionMouseEnter(event) {\n this.onMouseEnter.emit({\n originalEvent: event,\n option: this.option,\n selected: this.selected\n });\n }\n static ɵfac = function MultiSelectItem_Factory(t) {\n return new (t || MultiSelectItem)(i0.ɵɵdirectiveInject(i1.PrimeNGConfig));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MultiSelectItem,\n selectors: [[\"p-multiSelectItem\"]],\n hostAttrs: [1, \"p-element\"],\n inputs: {\n id: \"id\",\n option: \"option\",\n selected: [2, \"selected\", \"selected\", booleanAttribute],\n label: \"label\",\n disabled: [2, \"disabled\", \"disabled\", booleanAttribute],\n itemSize: [2, \"itemSize\", \"itemSize\", numberAttribute],\n focused: [2, \"focused\", \"focused\", booleanAttribute],\n ariaPosInset: \"ariaPosInset\",\n ariaSetSize: \"ariaSetSize\",\n template: \"template\",\n checkIconTemplate: \"checkIconTemplate\",\n itemCheckboxIconTemplate: \"itemCheckboxIconTemplate\"\n },\n outputs: {\n onClick: \"onClick\",\n onMouseEnter: \"onMouseEnter\"\n },\n features: [i0.ɵɵInputTransformsFeature],\n decls: 6,\n vars: 28,\n consts: [[\"pRipple\", \"\", \"role\", \"option\", 1, \"p-multiselect-item\", 3, \"click\", \"mouseenter\", \"ngStyle\", \"ngClass\", \"id\"], [1, \"p-checkbox\", \"p-component\", 3, \"ngClass\"], [1, \"p-checkbox-box\", 3, \"ngClass\"], [4, \"ngIf\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [3, \"styleClass\", 4, \"ngIf\"], [\"class\", \"p-checkbox-icon\", 4, \"ngIf\"], [3, \"styleClass\"], [1, \"p-checkbox-icon\"], [4, \"ngTemplateOutlet\"]],\n template: function MultiSelectItem_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"li\", 0);\n i0.ɵɵlistener(\"click\", function MultiSelectItem_Template_li_click_0_listener($event) {\n return ctx.onOptionClick($event);\n })(\"mouseenter\", function MultiSelectItem_Template_li_mouseenter_0_listener($event) {\n return ctx.onOptionMouseEnter($event);\n });\n i0.ɵɵelementStart(1, \"div\", 1)(2, \"div\", 2);\n i0.ɵɵtemplate(3, MultiSelectItem_ng_container_3_Template, 4, 3, \"ng-container\", 3);\n i0.ɵɵelementEnd()();\n i0.ɵɵtemplate(4, MultiSelectItem_span_4_Template, 2, 1, \"span\", 3)(5, MultiSelectItem_ng_container_5_Template, 1, 0, \"ng-container\", 4);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngStyle\", i0.ɵɵpureFunction1(17, _c0, ctx.itemSize + \"px\"))(\"ngClass\", i0.ɵɵpureFunction2(19, _c1, ctx.disabled, ctx.focused))(\"id\", ctx.id);\n i0.ɵɵattribute(\"aria-label\", ctx.label)(\"aria-setsize\", ctx.ariaSetSize)(\"aria-posinset\", ctx.ariaPosInset)(\"aria-selected\", ctx.selected)(\"data-p-focused\", ctx.focused)(\"data-p-highlight\", ctx.selected)(\"data-p-disabled\", ctx.disabled)(\"aria-checked\", ctx.selected);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(22, _c2, ctx.config.inputStyle() === \"filled\"));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(24, _c3, ctx.selected));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.selected);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx.template);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx.template)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction1(26, _c4, ctx.option));\n }\n },\n dependencies: () => [i2.NgClass, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i3.Ripple, CheckIcon],\n encapsulation: 2\n });\n }\n return MultiSelectItem;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * MultiSelect is used to select multiple items from a collection.\n * @group Components\n */\nlet MultiSelect = /*#__PURE__*/(() => {\n class MultiSelect {\n el;\n renderer;\n cd;\n zone;\n filterService;\n config;\n overlayService;\n /**\n * Unique identifier of the component\n * @group Props\n */\n id;\n /**\n * Defines a string that labels the input for accessibility.\n * @group Props\n */\n ariaLabel;\n /**\n * Inline style of the element.\n * @group Props\n */\n style;\n /**\n * Style class of the element.\n * @group Props\n */\n styleClass;\n /**\n * Inline style of the overlay panel.\n * @group Props\n */\n panelStyle;\n /**\n * Style class of the overlay panel element.\n * @group Props\n */\n panelStyleClass;\n /**\n * Identifier of the focus input to match a label defined for the component.\n * @group Props\n */\n inputId;\n /**\n * When present, it specifies that the element should be disabled.\n * @group Props\n */\n disabled;\n /**\n * When present, it specifies that the component cannot be edited.\n * @group Props\n */\n readonly;\n /**\n * Whether to display options as grouped when nested options are provided.\n * @group Props\n */\n group;\n /**\n * When specified, displays an input field to filter the items on keyup.\n * @group Props\n */\n filter = true;\n /**\n * Defines placeholder of the filter input.\n * @group Props\n */\n filterPlaceHolder;\n /**\n * Locale to use in filtering. The default locale is the host environment's current locale.\n * @group Props\n */\n filterLocale;\n /**\n * Specifies the visibility of the options panel.\n * @group Props\n */\n overlayVisible;\n /**\n * Index of the element in tabbing order.\n * @group Props\n */\n tabindex = 0;\n /**\n * Specifies the input variant of the component.\n * @group Props\n */\n variant = 'outlined';\n /**\n * Target element to attach the overlay, valid values are \"body\" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]=\"mydiv\" for a div element having #mydiv as variable name).\n * @group Props\n */\n appendTo;\n /**\n * A property to uniquely identify a value in options.\n * @group Props\n */\n dataKey;\n /**\n * Name of the input element.\n * @group Props\n */\n name;\n /**\n * Establishes relationships between the component and label(s) where its value should be one or more element IDs.\n * @group Props\n */\n ariaLabelledBy;\n /**\n * Whether to show labels of selected item labels or use default label.\n * @group Props\n * @defaultValue true\n */\n set displaySelectedLabel(val) {\n this._displaySelectedLabel = val;\n }\n get displaySelectedLabel() {\n return this._displaySelectedLabel;\n }\n /**\n * Decides how many selected item labels to show at most.\n * @group Props\n * @defaultValue 3\n */\n set maxSelectedLabels(val) {\n this._maxSelectedLabels = val;\n }\n get maxSelectedLabels() {\n return this._maxSelectedLabels;\n }\n /**\n * Decides how many selected item labels to show at most.\n * @group Props\n */\n selectionLimit;\n /**\n * Label to display after exceeding max selected labels e.g. ({0} items selected), defaults \"ellipsis\" keyword to indicate a text-overflow.\n * @group Props\n */\n selectedItemsLabel;\n /**\n * Whether to show the checkbox at header to toggle all items at once.\n * @group Props\n */\n showToggleAll = true;\n /**\n * Text to display when filtering does not return any results.\n * @group Props\n */\n emptyFilterMessage = '';\n /**\n * Text to display when there is no data. Defaults to global value in i18n translation configuration.\n * @group Props\n */\n emptyMessage = '';\n /**\n * Clears the filter value when hiding the dropdown.\n * @group Props\n */\n resetFilterOnHide = false;\n /**\n * Icon class of the dropdown icon.\n * @group Props\n */\n dropdownIcon;\n /**\n * Name of the label field of an option.\n * @group Props\n */\n optionLabel;\n /**\n * Name of the value field of an option.\n * @group Props\n */\n optionValue;\n /**\n * Name of the disabled field of an option.\n * @group Props\n */\n optionDisabled;\n /**\n * Name of the label field of an option group.\n * @group Props\n */\n optionGroupLabel = 'label';\n /**\n * Name of the options field of an option group.\n * @group Props\n */\n optionGroupChildren = 'items';\n /**\n * Whether to show the header.\n * @group Props\n */\n showHeader = true;\n /**\n * When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.\n * @group Props\n */\n filterBy;\n /**\n * Height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.\n * @group Props\n */\n scrollHeight = '200px';\n /**\n * Defines if data is loaded and interacted with in lazy manner.\n * @group Props\n */\n lazy = false;\n /**\n * Whether the data should be loaded on demand during scroll.\n * @group Props\n */\n virtualScroll;\n /**\n * Whether the multiselect is in loading state.\n * @group Props\n */\n loading = false;\n /**\n * Height of an item in the list for VirtualScrolling.\n * @group Props\n */\n virtualScrollItemSize;\n /**\n * Icon to display in loading state.\n * @group Props\n */\n loadingIcon;\n /**\n * Whether to use the scroller feature. The properties of scroller component can be used like an object in it.\n * @group Props\n */\n virtualScrollOptions;\n /**\n * Whether to use overlay API feature. The properties of overlay API can be used like an object in it.\n * @group Props\n */\n overlayOptions;\n /**\n * Defines a string that labels the filter input.\n * @group Props\n */\n ariaFilterLabel;\n /**\n * Defines how the items are filtered.\n * @group Props\n */\n filterMatchMode = 'contains';\n /**\n * Advisory information to display in a tooltip on hover.\n * @group Props\n */\n tooltip = '';\n /**\n * Position of the tooltip.\n * @group Props\n */\n tooltipPosition = 'right';\n /**\n * Type of CSS position.\n * @group Props\n */\n tooltipPositionStyle = 'absolute';\n /**\n * Style class of the tooltip.\n * @group Props\n */\n tooltipStyleClass;\n /**\n * Applies focus to the filter element when the overlay is shown.\n * @group Props\n */\n autofocusFilter = true;\n /**\n * Defines how the selected items are displayed.\n * @group Props\n */\n display = 'comma';\n /**\n * Defines the autocomplete is active.\n * @group Props\n */\n autocomplete = 'off';\n /**\n * When enabled, a clear icon is displayed to clear the value.\n * @group Props\n */\n showClear = false;\n /**\n * When present, it specifies that the component should automatically get focus on load.\n * @group Props\n */\n autofocus;\n /**\n * @deprecated since v14.2.0, use overlayOptions property instead.\n * Whether to automatically manage layering.\n * @group Props\n */\n get autoZIndex() {\n return this._autoZIndex;\n }\n set autoZIndex(val) {\n this._autoZIndex = val;\n console.warn('The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.');\n }\n /**\n * @deprecated since v14.2.0, use overlayOptions property instead.\n * Base zIndex value to use in layering.\n * @group Props\n */\n get baseZIndex() {\n return this._baseZIndex;\n }\n set baseZIndex(val) {\n this._baseZIndex = val;\n console.warn('The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.');\n }\n /**\n * Transition options of the show animation.\n * @group Props\n * @deprecated since v14.2.0, use overlayOptions property instead.\n */\n get showTransitionOptions() {\n return this._showTransitionOptions;\n }\n set showTransitionOptions(val) {\n this._showTransitionOptions = val;\n console.warn('The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.');\n }\n /**\n * Transition options of the hide animation.\n * @group Props\n * @deprecated since v14.2.0, use overlayOptions property instead.\n */\n get hideTransitionOptions() {\n return this._hideTransitionOptions;\n }\n set hideTransitionOptions(val) {\n this._hideTransitionOptions = val;\n console.warn('The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.');\n }\n /**\n * Label to display when there are no selections.\n * @group Props\n * @deprecated Use placeholder instead.\n */\n set defaultLabel(val) {\n this._defaultLabel = val;\n console.warn('defaultLabel property is deprecated since 16.6.0, use placeholder instead');\n }\n get defaultLabel() {\n return this._defaultLabel;\n }\n /**\n * Label to display when there are no selections.\n * @group Props\n */\n set placeholder(val) {\n this._placeholder.set(val);\n }\n get placeholder() {\n return this._placeholder.asReadonly();\n }\n /**\n * An array of objects to display as the available options.\n * @group Props\n */\n get options() {\n const options = this._options();\n return options;\n }\n set options(val) {\n if (!ObjectUtils.deepEquals(this._options(), val)) {\n this._options.set(val);\n }\n }\n /**\n * When specified, filter displays with this value.\n * @group Props\n */\n get filterValue() {\n return this._filterValue();\n }\n set filterValue(val) {\n this._filterValue.set(val);\n }\n /**\n * Item size of item to be virtual scrolled.\n * @group Props\n * @deprecated use virtualScrollItemSize property instead.\n */\n get itemSize() {\n return this._itemSize;\n }\n set itemSize(val) {\n this._itemSize = val;\n console.warn('The itemSize property is deprecated, use virtualScrollItemSize property instead.');\n }\n /**\n * Whether all data is selected.\n * @group Props\n */\n get selectAll() {\n return this._selectAll;\n }\n set selectAll(value) {\n this._selectAll = value;\n }\n /**\n * Indicates whether to focus on options when hovering over them, defaults to optionLabel.\n * @group Props\n */\n focusOnHover = false;\n /**\n * Fields used when filtering the options, defaults to optionLabel.\n * @group Props\n */\n filterFields;\n /**\n * Determines if the option will be selected on focus.\n * @group Props\n */\n selectOnFocus = false;\n /**\n * Whether to focus on the first visible or selected element when the overlay panel is shown.\n * @group Props\n */\n autoOptionFocus = true;\n /**\n * Callback to invoke when value changes.\n * @param {MultiSelectChangeEvent} event - Custom change event.\n * @group Emits\n */\n onChange = new EventEmitter();\n /**\n * Callback to invoke when data is filtered.\n * @param {MultiSelectFilterEvent} event - Custom filter event.\n * @group Emits\n */\n onFilter = new EventEmitter();\n /**\n * Callback to invoke when multiselect receives focus.\n * @param {MultiSelectFocusEvent} event - Custom focus event.\n * @group Emits\n */\n onFocus = new EventEmitter();\n /**\n * Callback to invoke when multiselect loses focus.\n * @param {MultiSelectBlurEvent} event - Custom blur event.\n * @group Emits\n */\n onBlur = new EventEmitter();\n /**\n * Callback to invoke when component is clicked.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n onClick = new EventEmitter();\n /**\n * Callback to invoke when input field is cleared.\n * @group Emits\n */\n onClear = new EventEmitter();\n /**\n * Callback to invoke when overlay panel becomes visible.\n * @group Emits\n */\n onPanelShow = new EventEmitter();\n /**\n * Callback to invoke when overlay panel becomes hidden.\n * @group Emits\n */\n onPanelHide = new EventEmitter();\n /**\n * Callback to invoke in lazy mode to load new data.\n * @param {MultiSelectLazyLoadEvent} event - Lazy load event.\n * @group Emits\n */\n onLazyLoad = new EventEmitter();\n /**\n * Callback to invoke in lazy mode to load new data.\n * @param {MultiSelectRemoveEvent} event - Remove event.\n * @group Emits\n */\n onRemove = new EventEmitter();\n /**\n * Callback to invoke when all data is selected.\n * @param {MultiSelectSelectAllChangeEvent} event - Custom select event.\n * @group Emits\n */\n onSelectAllChange = new EventEmitter();\n containerViewChild;\n overlayViewChild;\n filterInputChild;\n focusInputViewChild;\n itemsViewChild;\n scroller;\n lastHiddenFocusableElementOnOverlay;\n firstHiddenFocusableElementOnOverlay;\n headerCheckboxViewChild;\n footerFacet;\n headerFacet;\n templates;\n searchValue;\n searchTimeout;\n _selectAll = null;\n _autoZIndex;\n _baseZIndex;\n _showTransitionOptions;\n _hideTransitionOptions;\n _defaultLabel;\n _placeholder = signal(undefined);\n _itemSize;\n _selectionLimit;\n _disableTooltip = false;\n value;\n _filteredOptions;\n onModelChange = () => {};\n onModelTouched = () => {};\n valuesAsString;\n focus;\n filtered;\n itemTemplate;\n groupTemplate;\n loaderTemplate;\n headerTemplate;\n filterTemplate;\n footerTemplate;\n emptyFilterTemplate;\n emptyTemplate;\n selectedItemsTemplate;\n checkIconTemplate;\n loadingIconTemplate;\n filterIconTemplate;\n removeTokenIconTemplate;\n closeIconTemplate;\n clearIconTemplate;\n dropdownIconTemplate;\n itemCheckboxIconTemplate;\n headerCheckboxIconTemplate;\n headerCheckboxFocus;\n filterOptions;\n preventModelTouched;\n preventDocumentDefault;\n focused = false;\n itemsWrapper;\n _displaySelectedLabel = true;\n _maxSelectedLabels = 3;\n modelValue = signal(null);\n _filterValue = signal(null);\n _options = signal(null);\n startRangeIndex = signal(-1);\n focusedOptionIndex = signal(-1);\n selectedOptions;\n clickInProgress = false;\n get containerClass() {\n return {\n 'p-multiselect p-component p-inputwrapper': true,\n 'p-disabled': this.disabled,\n 'p-multiselect-clearable': this.showClear && !this.disabled,\n 'p-multiselect-chip': this.display === 'chip',\n 'p-focus': this.focused,\n 'p-variant-filled': this.variant === 'filled' || this.config.inputStyle() === 'filled'\n };\n }\n get inputClass() {\n return {\n 'p-multiselect-label p-inputtext': true,\n 'p-placeholder': (this.placeholder() || this.defaultLabel) && (this.label() === this.placeholder() || this.label() === this.defaultLabel),\n 'p-multiselect-label-empty': !this.selectedItemsTemplate && (this.label() === 'p-emptylabel' || this.label().length === 0)\n };\n }\n get panelClass() {\n return {\n 'p-multiselect-panel p-component': true,\n 'p-input-filled': this.config.inputStyle() === 'filled',\n 'p-ripple-disabled': this.config.ripple === false\n };\n }\n get labelClass() {\n return {\n 'p-multiselect-label': true,\n 'p-placeholder': this.label() === this.placeholder() || this.label() === this.defaultLabel,\n 'p-multiselect-label-empty': !this.placeholder() && !this.defaultLabel && (!this.modelValue() || this.modelValue().length === 0)\n };\n }\n get emptyMessageLabel() {\n return this.emptyMessage || this.config.getTranslation(TranslationKeys.EMPTY_MESSAGE);\n }\n get emptyFilterMessageLabel() {\n return this.emptyFilterMessage || this.config.getTranslation(TranslationKeys.EMPTY_FILTER_MESSAGE);\n }\n get filled() {\n if (typeof this.modelValue() === 'string') return !!this.modelValue();\n return ObjectUtils.isNotEmpty(this.modelValue());\n }\n get isVisibleClearIcon() {\n return this.modelValue() != null && this.modelValue() !== '' && ObjectUtils.isNotEmpty(this.modelValue()) && this.showClear && !this.disabled && this.filled;\n }\n get toggleAllAriaLabel() {\n return this.config.translation.aria ? this.config.translation.aria[this.allSelected() ? 'selectAll' : 'unselectAll'] : undefined;\n }\n get closeAriaLabel() {\n return this.config.translation.aria ? this.config.translation.aria.close : undefined;\n }\n get listLabel() {\n return this.config.getTranslation(TranslationKeys.ARIA)['listLabel'];\n }\n getAllVisibleAndNonVisibleOptions() {\n return this.group ? this.flatOptions(this.options) : this.options || [];\n }\n visibleOptions = computed(() => {\n const options = this.getAllVisibleAndNonVisibleOptions();\n const isArrayOfObjects = ObjectUtils.isArray(options) && ObjectUtils.isObject(options[0]);\n if (this._filterValue()) {\n let filteredOptions;\n if (isArrayOfObjects) {\n filteredOptions = this.filterService.filter(options, this.searchFields(), this._filterValue(), this.filterMatchMode, this.filterLocale);\n } else {\n filteredOptions = options.filter(option => option.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase()));\n }\n if (this.group) {\n const optionGroups = this.options || [];\n const filtered = [];\n optionGroups.forEach(group => {\n const groupChildren = this.getOptionGroupChildren(group);\n const filteredItems = groupChildren.filter(item => filteredOptions.includes(item));\n if (filteredItems.length > 0) filtered.push({\n ...group,\n [typeof this.optionGroupChildren === 'string' ? this.optionGroupChildren : 'items']: [...filteredItems]\n });\n });\n return this.flatOptions(filtered);\n }\n return filteredOptions;\n }\n return options;\n });\n label = computed(() => {\n let label;\n const modelValue = this.modelValue();\n if (modelValue && modelValue.length && this.displaySelectedLabel) {\n if (ObjectUtils.isNotEmpty(this.maxSelectedLabels) && modelValue.length > this.maxSelectedLabels) {\n return this.getSelectedItemsLabel();\n } else {\n label = '';\n for (let i = 0; i < modelValue.length; i++) {\n if (i !== 0) {\n label += ', ';\n }\n label += this.getLabelByValue(modelValue[i]);\n }\n }\n } else {\n label = this.placeholder() || this.defaultLabel || '';\n }\n return label;\n });\n chipSelectedItems = computed(() => {\n return ObjectUtils.isNotEmpty(this.maxSelectedLabels) && this.modelValue() && this.modelValue().length > this.maxSelectedLabels ? this.modelValue().slice(0, this.maxSelectedLabels) : this.modelValue();\n });\n constructor(el, renderer, cd, zone, filterService, config, overlayService) {\n this.el = el;\n this.renderer = renderer;\n this.cd = cd;\n this.zone = zone;\n this.filterService = filterService;\n this.config = config;\n this.overlayService = overlayService;\n effect(() => {\n const modelValue = this.modelValue();\n const visibleOptions = this.visibleOptions();\n if (visibleOptions && ObjectUtils.isNotEmpty(visibleOptions)) {\n if (this.optionValue && this.optionLabel && modelValue) {\n this.selectedOptions = visibleOptions.filter(option => modelValue.includes(option[this.optionLabel]) || modelValue.includes(option[this.optionValue]));\n } else {\n this.selectedOptions = modelValue;\n }\n this.cd.markForCheck();\n }\n });\n }\n ngOnInit() {\n this.id = this.id || UniqueComponentId();\n this.autoUpdateModel();\n if (this.filterBy) {\n this.filterOptions = {\n filter: value => this.onFilterInputChange(value),\n reset: () => this.resetFilter()\n };\n }\n }\n maxSelectionLimitReached() {\n return ObjectUtils.isNotEmpty(this.selectionLimit) && this.modelValue() && this.modelValue().length === this.selectionLimit;\n }\n ngAfterContentInit() {\n this.templates.forEach(item => {\n switch (item.getType()) {\n case 'item':\n this.itemTemplate = item.template;\n break;\n case 'group':\n this.groupTemplate = item.template;\n break;\n case 'selectedItems':\n this.selectedItemsTemplate = item.template;\n break;\n case 'header':\n this.headerTemplate = item.template;\n break;\n case 'filter':\n this.filterTemplate = item.template;\n break;\n case 'emptyfilter':\n this.emptyFilterTemplate = item.template;\n break;\n case 'empty':\n this.emptyTemplate = item.template;\n break;\n case 'footer':\n this.footerTemplate = item.template;\n break;\n case 'loader':\n this.loaderTemplate = item.template;\n break;\n case 'checkicon':\n this.checkIconTemplate = item.template;\n console.warn('checkicon is deprecated and will removed in v18. Use itemcheckboxicon or headercheckboxicon templates instead.');\n break;\n case 'headercheckboxicon':\n this.headerCheckboxIconTemplate = item.template;\n break;\n case 'loadingicon':\n this.loadingIconTemplate = item.template;\n break;\n case 'filtericon':\n this.filterIconTemplate = item.template;\n break;\n case 'removetokenicon':\n this.removeTokenIconTemplate = item.template;\n break;\n case 'closeicon':\n this.closeIconTemplate = item.template;\n break;\n case 'clearicon':\n this.clearIconTemplate = item.template;\n break;\n case 'dropdownicon':\n this.dropdownIconTemplate = item.template;\n break;\n case 'itemcheckboxicon':\n this.itemCheckboxIconTemplate = item.template;\n break;\n default:\n this.itemTemplate = item.template;\n break;\n }\n });\n }\n ngAfterViewInit() {\n if (this.overlayVisible) {\n this.show();\n }\n }\n ngAfterViewChecked() {\n if (this.filtered) {\n this.zone.runOutsideAngular(() => {\n setTimeout(() => {\n this.overlayViewChild?.alignOverlay();\n }, 1);\n });\n this.filtered = false;\n }\n }\n flatOptions(options) {\n return (options || []).reduce((result, option, index) => {\n result.push({\n optionGroup: option,\n group: true,\n index\n });\n const optionGroupChildren = this.getOptionGroupChildren(option);\n optionGroupChildren && optionGroupChildren.forEach(o => result.push(o));\n return result;\n }, []);\n }\n autoUpdateModel() {\n if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption()) {\n this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());\n const value = this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);\n this.onOptionSelect({\n originalEvent: null,\n option: [value]\n });\n }\n }\n /**\n * Updates the model value.\n * @group Method\n */\n updateModel(value, event) {\n this.value = value;\n this.onModelChange(value);\n this.modelValue.set(value);\n }\n onInputClick(event) {\n event.stopPropagation();\n event.preventDefault();\n this.focusedOptionIndex.set(-1);\n }\n onOptionSelect(event, isFocus = false, index = -1) {\n const {\n originalEvent,\n option\n } = event;\n if (this.disabled || this.isOptionDisabled(option)) {\n return;\n }\n let selected = this.isSelected(option);\n let value = null;\n if (selected) {\n value = this.modelValue().filter(val => !ObjectUtils.equals(val, this.getOptionValue(option), this.equalityKey()));\n this.onRemove.emit({\n newValue: this.value,\n removed: this.getOptionValue(option)\n });\n } else {\n value = [...(this.modelValue() || []), this.getOptionValue(option)];\n }\n this.updateModel(value, originalEvent);\n index !== -1 && this.focusedOptionIndex.set(index);\n isFocus && DomHandler.focus(this.focusInputViewChild?.nativeElement);\n this.onChange.emit({\n originalEvent: {\n ...event,\n selected: !event.selected\n },\n value: value,\n itemValue: option\n });\n }\n findSelectedOptionIndex() {\n return this.hasSelectedOption() ? this.visibleOptions().findIndex(option => this.isValidSelectedOption(option)) : -1;\n }\n onOptionSelectRange(event, start = -1, end = -1) {\n start === -1 && (start = this.findNearestSelectedOptionIndex(end, true));\n end === -1 && (end = this.findNearestSelectedOptionIndex(start));\n if (start !== -1 && end !== -1) {\n const rangeStart = Math.min(start, end);\n const rangeEnd = Math.max(start, end);\n const value = this.visibleOptions().slice(rangeStart, rangeEnd + 1).filter(option => this.isValidOption(option)).map(option => this.getOptionValue(option));\n this.updateModel(value, event);\n }\n }\n searchFields() {\n return (this.filterBy || this.optionLabel || 'label').split(',');\n }\n findNearestSelectedOptionIndex(index, firstCheckUp = false) {\n let matchedOptionIndex = -1;\n if (this.hasSelectedOption()) {\n if (firstCheckUp) {\n matchedOptionIndex = this.findPrevSelectedOptionIndex(index);\n matchedOptionIndex = matchedOptionIndex === -1 ? this.findNextSelectedOptionIndex(index) : matchedOptionIndex;\n } else {\n matchedOptionIndex = this.findNextSelectedOptionIndex(index);\n matchedOptionIndex = matchedOptionIndex === -1 ? this.findPrevSelectedOptionIndex(index) : matchedOptionIndex;\n }\n }\n return matchedOptionIndex > -1 ? matchedOptionIndex : index;\n }\n findPrevSelectedOptionIndex(index) {\n const matchedOptionIndex = this.hasSelectedOption() && index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions().slice(0, index), option => this.isValidSelectedOption(option)) : -1;\n return matchedOptionIndex > -1 ? matchedOptionIndex : -1;\n }\n findFirstFocusedOptionIndex() {\n const selectedIndex = this.findFirstSelectedOptionIndex();\n return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;\n }\n findFirstOptionIndex() {\n return this.visibleOptions().findIndex(option => this.isValidOption(option));\n }\n findFirstSelectedOptionIndex() {\n return this.hasSelectedOption() ? this.visibleOptions().findIndex(option => this.isValidSelectedOption(option)) : -1;\n }\n findNextSelectedOptionIndex(index) {\n const matchedOptionIndex = this.hasSelectedOption() && index < this.visibleOptions().length - 1 ? this.visibleOptions().slice(index + 1).findIndex(option => this.isValidSelectedOption(option)) : -1;\n return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;\n }\n equalityKey() {\n return this.optionValue ? null : this.dataKey;\n }\n hasSelectedOption() {\n return ObjectUtils.isNotEmpty(this.modelValue());\n }\n isSelectionAllDisabled() {\n return this.showToggleAll && ObjectUtils.isEmpty(this.selectionLimit);\n }\n isValidSelectedOption(option) {\n return this.isValidOption(option) && this.isSelected(option);\n }\n isOptionGroup(option) {\n return (this.group || this.optionGroupLabel) && option.optionGroup && option.group;\n }\n isValidOption(option) {\n return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));\n }\n isOptionDisabled(option) {\n if (this.maxSelectionLimitReached() && !this.isSelected(option)) {\n return true;\n }\n return this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : option && option.disabled !== undefined ? option.disabled : false;\n }\n isSelected(option) {\n const optionValue = this.getOptionValue(option);\n return (this.modelValue() || []).some(value => ObjectUtils.equals(value, optionValue, this.equalityKey()));\n }\n isOptionMatched(option) {\n return this.isValidOption(option) && this.getOptionLabel(option).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));\n }\n isEmpty() {\n return !this._options() || this.visibleOptions() && this.visibleOptions().length === 0;\n }\n getOptionIndex(index, scrollerOptions) {\n return this.virtualScrollerDisabled ? index : scrollerOptions && scrollerOptions.getItemOptions(index)['index'];\n }\n getAriaPosInset(index) {\n return (this.optionGroupLabel ? index - this.visibleOptions().slice(0, index).filter(option => this.isOptionGroup(option)).length : index) + 1;\n }\n get ariaSetSize() {\n return this.visibleOptions().filter(option => !this.isOptionGroup(option)).length;\n }\n getLabelByValue(value) {\n const options = this.group ? this.flatOptions(this._options()) : this._options() || [];\n const matchedOption = options.find(option => !this.isOptionGroup(option) && ObjectUtils.equals(this.getOptionValue(option), value, this.equalityKey()));\n return matchedOption ? this.getOptionLabel(matchedOption) : null;\n }\n getSelectedItemsLabel() {\n let pattern = /{(.*?)}/;\n let message = this.selectedItemsLabel ? this.selectedItemsLabel : this.config.getTranslation(TranslationKeys.SELECTION_MESSAGE);\n if (pattern.test(message)) {\n return message.replace(message.match(pattern)[0], this.modelValue().length + '');\n }\n return message;\n }\n getOptionLabel(option) {\n return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option && option.label != undefined ? option.label : option;\n }\n getOptionValue(option) {\n return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : !this.optionLabel && option && option.value !== undefined ? option.value : option;\n }\n getOptionGroupLabel(optionGroup) {\n return this.optionGroupLabel ? ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel) : optionGroup && optionGroup.label != undefined ? optionGroup.label : optionGroup;\n }\n getOptionGroupChildren(optionGroup) {\n return this.optionGroupChildren ? ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren) : optionGroup.items;\n }\n onKeyDown(event) {\n if (this.disabled) {\n event.preventDefault();\n return;\n }\n const metaKey = event.metaKey || event.ctrlKey;\n switch (event.code) {\n case 'ArrowDown':\n this.onArrowDownKey(event);\n break;\n case 'ArrowUp':\n this.onArrowUpKey(event);\n break;\n case 'Home':\n this.onHomeKey(event);\n break;\n case 'End':\n this.onEndKey(event);\n break;\n case 'PageDown':\n this.onPageDownKey(event);\n break;\n case 'PageUp':\n this.onPageUpKey(event);\n break;\n case 'Enter':\n case 'Space':\n this.onEnterKey(event);\n break;\n case 'Escape':\n this.onEscapeKey(event);\n break;\n case 'Tab':\n this.onTabKey(event);\n break;\n case 'ShiftLeft':\n case 'ShiftRight':\n this.onShiftKey();\n break;\n default:\n if (event.code === 'KeyA' && metaKey) {\n const value = this.visibleOptions().filter(option => this.isValidOption(option)).map(option => this.getOptionValue(option));\n this.updateModel(value, event);\n event.preventDefault();\n break;\n }\n if (!metaKey && ObjectUtils.isPrintableCharacter(event.key)) {\n !this.overlayVisible && this.show();\n this.searchOptions(event, event.key);\n event.preventDefault();\n }\n break;\n }\n }\n onFilterKeyDown(event) {\n switch (event.code) {\n case 'ArrowDown':\n this.onArrowDownKey(event);\n break;\n case 'ArrowUp':\n this.onArrowUpKey(event, true);\n break;\n case 'ArrowLeft':\n case 'ArrowRight':\n this.onArrowLeftKey(event, true);\n break;\n case 'Home':\n this.onHomeKey(event, true);\n break;\n case 'End':\n this.onEndKey(event, true);\n break;\n case 'Enter':\n case 'NumpadEnter':\n this.onEnterKey(event);\n break;\n case 'Escape':\n this.onEscapeKey(event);\n break;\n case 'Tab':\n this.onTabKey(event, true);\n break;\n default:\n break;\n }\n }\n onArrowLeftKey(event, pressedInInputText = false) {\n pressedInInputText && this.focusedOptionIndex.set(-1);\n }\n onArrowDownKey(event) {\n const optionIndex = this.focusedOptionIndex() !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex()) : this.findFirstFocusedOptionIndex();\n if (event.shiftKey) {\n this.onOptionSelectRange(event, this.startRangeIndex(), optionIndex);\n }\n this.changeFocusedOptionIndex(event, optionIndex);\n !this.overlayVisible && this.show();\n event.preventDefault();\n event.stopPropagation();\n }\n onArrowUpKey(event, pressedInInputText = false) {\n if (event.altKey && !pressedInInputText) {\n if (this.focusedOptionIndex() !== -1) {\n this.onOptionSelect(event, this.visibleOptions()[this.focusedOptionIndex()]);\n }\n this.overlayVisible && this.hide();\n event.preventDefault();\n } else {\n const optionIndex = this.focusedOptionIndex() !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex()) : this.findLastFocusedOptionIndex();\n if (event.shiftKey) {\n this.onOptionSelectRange(event, optionIndex, this.startRangeIndex());\n }\n this.changeFocusedOptionIndex(event, optionIndex);\n !this.overlayVisible && this.show();\n event.preventDefault();\n }\n event.stopPropagation();\n }\n onHomeKey(event, pressedInInputText = false) {\n const {\n currentTarget\n } = event;\n if (pressedInInputText) {\n const len = currentTarget.value.length;\n currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);\n this.focusedOptionIndex.set(-1);\n } else {\n let metaKey = event.metaKey || event.ctrlKey;\n let optionIndex = this.findFirstOptionIndex();\n if (event.shiftKey && metaKey) {\n this.onOptionSelectRange(event, optionIndex, this.startRangeIndex());\n }\n this.changeFocusedOptionIndex(event, optionIndex);\n !this.overlayVisible && this.show();\n }\n event.preventDefault();\n }\n onEndKey(event, pressedInInputText = false) {\n const {\n currentTarget\n } = event;\n if (pressedInInputText) {\n const len = currentTarget.value.length;\n currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);\n this.focusedOptionIndex.set(-1);\n } else {\n let metaKey = event.metaKey || event.ctrlKey;\n let optionIndex = this.findLastFocusedOptionIndex();\n if (event.shiftKey && metaKey) {\n this.onOptionSelectRange(event, this.startRangeIndex(), optionIndex);\n }\n this.changeFocusedOptionIndex(event, optionIndex);\n !this.overlayVisible && this.show();\n }\n event.preventDefault();\n }\n onPageDownKey(event) {\n this.scrollInView(this.visibleOptions().length - 1);\n event.preventDefault();\n }\n onPageUpKey(event) {\n this.scrollInView(0);\n event.preventDefault();\n }\n onEnterKey(event) {\n if (!this.overlayVisible) {\n this.onArrowDownKey(event);\n } else {\n if (this.focusedOptionIndex() !== -1) {\n if (event.shiftKey) {\n this.onOptionSelectRange(event, this.focusedOptionIndex());\n } else {\n this.onOptionSelect({\n originalEvent: event,\n option: this.visibleOptions()[this.focusedOptionIndex()]\n });\n }\n }\n }\n event.preventDefault();\n }\n onEscapeKey(event) {\n this.overlayVisible && this.hide(true);\n event.preventDefault();\n }\n onDeleteKey(event) {\n if (this.showClear) {\n this.clear(event);\n event.preventDefault();\n }\n }\n onTabKey(event, pressedInInputText = false) {\n if (!pressedInInputText) {\n if (this.overlayVisible && this.hasFocusableElements()) {\n DomHandler.focus(event.shiftKey ? this.lastHiddenFocusableElementOnOverlay.nativeElement : this.firstHiddenFocusableElementOnOverlay.nativeElement);\n event.preventDefault();\n } else {\n if (this.focusedOptionIndex() !== -1) {\n this.onOptionSelect({\n originalEvent: event,\n option: this.visibleOptions()[this.focusedOptionIndex()]\n });\n }\n this.overlayVisible && this.hide(this.filter);\n }\n }\n }\n onShiftKey() {\n this.startRangeIndex.set(this.focusedOptionIndex());\n }\n onContainerClick(event) {\n if (this.disabled || this.loading || this.readonly || event.target.isSameNode(this.focusInputViewChild?.nativeElement)) {\n return;\n }\n if (event.target.tagName === 'INPUT' || event.target.getAttribute('data-pc-section') === 'clearicon' || event.target.closest('[data-pc-section=\"clearicon\"]')) {\n event.preventDefault();\n return;\n } else if (!this.overlayViewChild || !this.overlayViewChild.el.nativeElement.contains(event.target)) {\n if (this.clickInProgress) {\n return;\n }\n this.clickInProgress = true;\n setTimeout(() => {\n this.clickInProgress = false;\n }, 150);\n this.overlayVisible ? this.hide(true) : this.show(true);\n }\n this.focusInputViewChild?.nativeElement.focus({\n preventScroll: true\n });\n this.onClick.emit(event);\n this.cd.detectChanges();\n }\n onFirstHiddenFocus(event) {\n const focusableEl = event.relatedTarget === this.focusInputViewChild?.nativeElement ? DomHandler.getFirstFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement, ':not([data-p-hidden-focusable=\"true\"])') : this.focusInputViewChild?.nativeElement;\n DomHandler.focus(focusableEl);\n }\n onInputFocus(event) {\n this.focused = true;\n const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;\n this.focusedOptionIndex.set(focusedOptionIndex);\n this.overlayVisible && this.scrollInView(this.focusedOptionIndex());\n this.onFocus.emit({\n originalEvent: event\n });\n }\n onInputBlur(event) {\n this.focused = false;\n this.onBlur.emit({\n originalEvent: event\n });\n if (!this.preventModelTouched) {\n this.onModelTouched();\n }\n this.preventModelTouched = false;\n }\n onFilterInputChange(event) {\n let value = event.target.value;\n this._filterValue.set(value);\n this.focusedOptionIndex.set(-1);\n this.onFilter.emit({\n originalEvent: event,\n filter: this._filterValue()\n });\n !this.virtualScrollerDisabled && this.scroller.scrollToIndex(0);\n setTimeout(() => {\n this.overlayViewChild.alignOverlay();\n });\n }\n onLastHiddenFocus(event) {\n const focusableEl = event.relatedTarget === this.focusInputViewChild?.nativeElement ? DomHandler.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement, ':not([data-p-hidden-focusable=\"true\"])') : this.focusInputViewChild?.nativeElement;\n DomHandler.focus(focusableEl);\n }\n onOptionMouseEnter(event, index) {\n if (this.focusOnHover) {\n this.changeFocusedOptionIndex(event, index);\n }\n }\n onHeaderCheckboxKeyDown(event) {\n if (this.disabled) {\n event.preventDefault();\n return;\n }\n switch (event.code) {\n case 'Space':\n this.onToggleAll(event);\n break;\n case 'Enter':\n this.onToggleAll(event);\n break;\n default:\n break;\n }\n }\n onFilterBlur(event) {\n this.focusedOptionIndex.set(-1);\n }\n onHeaderCheckboxFocus() {\n this.headerCheckboxFocus = true;\n }\n onHeaderCheckboxBlur() {\n this.headerCheckboxFocus = false;\n }\n onToggleAll(event) {\n if (this.disabled || this.readonly) {\n return;\n }\n if (this.selectAll != null) {\n this.onSelectAllChange.emit({\n originalEvent: event,\n checked: !this.allSelected()\n });\n } else {\n // pre-selected disabled options should always be selected.\n const selectedDisabledOptions = this.getAllVisibleAndNonVisibleOptions().filter(option => this.isSelected(option) && (this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : option && option.disabled !== undefined ? option.disabled : false));\n const visibleOptions = this.allSelected() ? this.visibleOptions().filter(option => !this.isValidOption(option) && this.isSelected(option)) : this.visibleOptions().filter(option => this.isSelected(option) || this.isValidOption(option));\n const optionValues = [...selectedDisabledOptions, ...visibleOptions].map(option => this.getOptionValue(option));\n const value = [...new Set(optionValues)];\n this.updateModel(value, event);\n // because onToggleAll could have been called during filtering, this additional test needs to be performed before calling onSelectAllChange.emit\n if (!value.length || value.length === this.getAllVisibleAndNonVisibleOptions().length) {\n this.onSelectAllChange.emit({\n originalEvent: event,\n checked: !!value.length\n });\n }\n }\n if (this.partialSelected()) {\n this.selectedOptions = null;\n this.cd.markForCheck();\n }\n this.onChange.emit({\n originalEvent: event,\n value: this.value\n });\n DomHandler.focus(this.headerCheckboxViewChild?.nativeElement);\n this.headerCheckboxFocus = true;\n event.preventDefault();\n event.stopPropagation();\n }\n changeFocusedOptionIndex(event, index) {\n if (this.focusedOptionIndex() !== index) {\n this.focusedOptionIndex.set(index);\n this.scrollInView();\n }\n }\n get virtualScrollerDisabled() {\n return !this.virtualScroll;\n }\n scrollInView(index = -1) {\n const id = index !== -1 ? `${this.id}_${index}` : this.focusedOptionId;\n if (this.itemsViewChild && this.itemsViewChild.nativeElement) {\n const element = DomHandler.findSingle(this.itemsViewChild.nativeElement, `li[id=\"${id}\"]`);\n if (element) {\n element.scrollIntoView && element.scrollIntoView({\n block: 'nearest',\n inline: 'nearest'\n });\n } else if (!this.virtualScrollerDisabled) {\n setTimeout(() => {\n this.virtualScroll && this.scroller?.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex());\n }, 0);\n }\n }\n }\n get focusedOptionId() {\n return this.focusedOptionIndex() !== -1 ? `${this.id}_${this.focusedOptionIndex()}` : null;\n }\n writeValue(value) {\n this.value = value;\n if (!ObjectUtils.isEmpty(this.selectionLimit) && ObjectUtils.isEmpty(this.value)) {\n this.modelValue.set([]);\n } else {\n this.modelValue.set(this.value);\n }\n this.cd.markForCheck();\n }\n registerOnChange(fn) {\n this.onModelChange = fn;\n }\n registerOnTouched(fn) {\n this.onModelTouched = fn;\n }\n setDisabledState(val) {\n this.disabled = val;\n this.cd.markForCheck();\n }\n allSelected() {\n return this.selectAll !== null ? this.selectAll : ObjectUtils.isNotEmpty(this.visibleOptions()) && this.visibleOptions().every(option => this.isOptionGroup(option) || this.isOptionDisabled(option) || this.isSelected(option));\n }\n partialSelected() {\n return this.selectedOptions && this.selectedOptions.length > 0 && this.selectedOptions.length < this.options.length;\n }\n /**\n * Displays the panel.\n * @group Method\n */\n show(isFocus) {\n this.overlayVisible = true;\n const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;\n this.focusedOptionIndex.set(focusedOptionIndex);\n if (isFocus) {\n DomHandler.focus(this.focusInputViewChild?.nativeElement);\n }\n this.cd.markForCheck();\n }\n /**\n * Hides the panel.\n * @group Method\n */\n hide(isFocus) {\n this.overlayVisible = false;\n this.focusedOptionIndex.set(-1);\n if (this.filter && this.resetFilterOnHide) {\n this.resetFilter();\n }\n if (this.overlayOptions?.mode === 'modal') {\n DomHandler.unblockBodyScroll();\n }\n isFocus && DomHandler.focus(this.focusInputViewChild?.nativeElement);\n this.onPanelHide.emit();\n this.cd.markForCheck();\n }\n onOverlayAnimationStart(event) {\n switch (event.toState) {\n case 'visible':\n this.itemsWrapper = DomHandler.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement, this.virtualScroll ? '.p-scroller' : '.p-multiselect-items-wrapper');\n this.virtualScroll && this.scroller?.setContentEl(this.itemsViewChild?.nativeElement);\n if (this._options() && this._options().length) {\n if (this.virtualScroll) {\n const selectedIndex = ObjectUtils.isNotEmpty(this.modelValue()) ? this.focusedOptionIndex() : -1;\n if (selectedIndex !== -1) {\n this.scroller?.scrollToIndex(selectedIndex);\n }\n } else {\n let selectedListItem = DomHandler.findSingle(this.itemsWrapper, '[data-p-highlight=\"true\"]');\n if (selectedListItem) {\n selectedListItem.scrollIntoView({\n block: 'nearest',\n inline: 'nearest'\n });\n }\n }\n }\n if (this.filterInputChild && this.filterInputChild.nativeElement) {\n this.preventModelTouched = true;\n if (this.autofocusFilter) {\n this.filterInputChild.nativeElement.focus();\n }\n }\n this.onPanelShow.emit();\n case 'void':\n this.itemsWrapper = null;\n this.onModelTouched();\n break;\n }\n }\n resetFilter() {\n if (this.filterInputChild && this.filterInputChild.nativeElement) {\n this.filterInputChild.nativeElement.value = '';\n }\n this._filterValue.set(null);\n this._filteredOptions = null;\n }\n close(event) {\n this.hide();\n event.preventDefault();\n event.stopPropagation();\n }\n clear(event) {\n this.value = null;\n this.updateModel(null, event);\n this.selectedOptions = null;\n this.onClear.emit();\n this._disableTooltip = true;\n event.stopPropagation();\n }\n labelContainerMouseLeave() {\n if (this._disableTooltip) this._disableTooltip = false;\n }\n removeOption(optionValue, event) {\n let value = this.modelValue().filter(val => !ObjectUtils.equals(val, optionValue, this.equalityKey()));\n this.updateModel(value, event);\n this.onChange.emit({\n originalEvent: event,\n value: value,\n itemValue: optionValue\n });\n event && event.stopPropagation();\n }\n findNextItem(item) {\n let nextItem = item.nextElementSibling;\n if (nextItem) return DomHandler.hasClass(nextItem.children[0], 'p-disabled') || DomHandler.isHidden(nextItem.children[0]) || DomHandler.hasClass(nextItem, 'p-multiselect-item-group') ? this.findNextItem(nextItem) : nextItem.children[0];else return null;\n }\n findPrevItem(item) {\n let prevItem = item.previousElementSibling;\n if (prevItem) return DomHandler.hasClass(prevItem.children[0], 'p-disabled') || DomHandler.isHidden(prevItem.children[0]) || DomHandler.hasClass(prevItem, 'p-multiselect-item-group') ? this.findPrevItem(prevItem) : prevItem.children[0];else return null;\n }\n findNextOptionIndex(index) {\n const matchedOptionIndex = index < this.visibleOptions().length - 1 ? this.visibleOptions().slice(index + 1).findIndex(option => this.isValidOption(option)) : -1;\n return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;\n }\n findPrevOptionIndex(index) {\n const matchedOptionIndex = index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions().slice(0, index), option => this.isValidOption(option)) : -1;\n return matchedOptionIndex > -1 ? matchedOptionIndex : index;\n }\n findLastSelectedOptionIndex() {\n return this.hasSelectedOption() ? ObjectUtils.findLastIndex(this.visibleOptions(), option => this.isValidSelectedOption(option)) : -1;\n }\n findLastFocusedOptionIndex() {\n const selectedIndex = this.findLastSelectedOptionIndex();\n return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;\n }\n findLastOptionIndex() {\n return ObjectUtils.findLastIndex(this.visibleOptions(), option => this.isValidOption(option));\n }\n searchOptions(event, char) {\n this.searchValue = (this.searchValue || '') + char;\n let optionIndex = -1;\n let matched = false;\n if (this.focusedOptionIndex() !== -1) {\n optionIndex = this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(option => this.isOptionMatched(option));\n optionIndex = optionIndex === -1 ? this.visibleOptions().slice(0, this.focusedOptionIndex()).findIndex(option => this.isOptionMatched(option)) : optionIndex + this.focusedOptionIndex();\n } else {\n optionIndex = this.visibleOptions().findIndex(option => this.isOptionMatched(option));\n }\n if (optionIndex !== -1) {\n matched = true;\n }\n if (optionIndex === -1 && this.focusedOptionIndex() === -1) {\n optionIndex = this.findFirstFocusedOptionIndex();\n }\n if (optionIndex !== -1) {\n this.changeFocusedOptionIndex(event, optionIndex);\n }\n if (this.searchTimeout) {\n clearTimeout(this.searchTimeout);\n }\n this.searchTimeout = setTimeout(() => {\n this.searchValue = '';\n this.searchTimeout = null;\n }, 500);\n return matched;\n }\n activateFilter() {\n if (this.hasFilter() && this._options) {\n if (this.group) {\n let filteredGroups = [];\n for (let optgroup of this.options) {\n let filteredSubOptions = this.filterService.filter(this.getOptionGroupChildren(optgroup), this.searchFields(), this.filterValue, this.filterMatchMode, this.filterLocale);\n if (filteredSubOptions && filteredSubOptions.length) {\n filteredGroups.push({\n ...optgroup,\n ...{\n [this.optionGroupChildren]: filteredSubOptions\n }\n });\n }\n }\n this._filteredOptions = filteredGroups;\n } else {\n this._filteredOptions = this.filterService.filter(this.options, this.searchFields(), this.filterValue, this.filterMatchMode, this.filterLocale);\n }\n } else {\n this._filteredOptions = null;\n }\n }\n hasFocusableElements() {\n return DomHandler.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement, ':not([data-p-hidden-focusable=\"true\"])').length > 0;\n }\n hasFilter() {\n return this._filterValue() && this._filterValue().trim().length > 0;\n }\n static ɵfac = function MultiSelect_Factory(t) {\n return new (t || MultiSelect)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1.FilterService), i0.ɵɵdirectiveInject(i1.PrimeNGConfig), i0.ɵɵdirectiveInject(i1.OverlayService));\n };\n static ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MultiSelect,\n selectors: [[\"p-multiSelect\"]],\n contentQueries: function MultiSelect_ContentQueries(rf, ctx, dirIndex) {\n if (rf & 1) {\n i0.ɵɵcontentQuery(dirIndex, Footer, 5);\n i0.ɵɵcontentQuery(dirIndex, Header, 5);\n i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerFacet = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerFacet = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);\n }\n },\n viewQuery: function MultiSelect_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c5, 5);\n i0.ɵɵviewQuery(_c6, 5);\n i0.ɵɵviewQuery(_c7, 5);\n i0.ɵɵviewQuery(_c8, 5);\n i0.ɵɵviewQuery(_c9, 5);\n i0.ɵɵviewQuery(_c10, 5);\n i0.ɵɵviewQuery(_c11, 5);\n i0.ɵɵviewQuery(_c12, 5);\n i0.ɵɵviewQuery(_c13, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlayViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterInputChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.focusInputViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemsViewChild = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.scroller = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.lastHiddenFocusableElementOnOverlay = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.firstHiddenFocusableElementOnOverlay = _t.first);\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerCheckboxViewChild = _t.first);\n }\n },\n hostAttrs: [1, \"p-element\", \"p-inputwrapper\"],\n hostVars: 4,\n hostBindings: function MultiSelect_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵclassProp(\"p-inputwrapper-focus\", ctx.focused || ctx.overlayVisible)(\"p-inputwrapper-filled\", ctx.filled);\n }\n },\n inputs: {\n id: \"id\",\n ariaLabel: \"ariaLabel\",\n style: \"style\",\n styleClass: \"styleClass\",\n panelStyle: \"panelStyle\",\n panelStyleClass: \"panelStyleClass\",\n inputId: \"inputId\",\n disabled: [2, \"disabled\", \"disabled\", booleanAttribute],\n readonly: [2, \"readonly\", \"readonly\", booleanAttribute],\n group: [2, \"group\", \"group\", booleanAttribute],\n filter: [2, \"filter\", \"filter\", booleanAttribute],\n filterPlaceHolder: \"filterPlaceHolder\",\n filterLocale: \"filterLocale\",\n overlayVisible: [2, \"overlayVisible\", \"overlayVisible\", booleanAttribute],\n tabindex: [2, \"tabindex\", \"tabindex\", numberAttribute],\n variant: \"variant\",\n appendTo: \"appendTo\",\n dataKey: \"dataKey\",\n name: \"name\",\n ariaLabelledBy: \"ariaLabelledBy\",\n displaySelectedLabel: \"displaySelectedLabel\",\n maxSelectedLabels: \"maxSelectedLabels\",\n selectionLimit: [2, \"selectionLimit\", \"selectionLimit\", value => numberAttribute(value, null)],\n selectedItemsLabel: \"selectedItemsLabel\",\n showToggleAll: [2, \"showToggleAll\", \"showToggleAll\", booleanAttribute],\n emptyFilterMessage: \"emptyFilterMessage\",\n emptyMessage: \"emptyMessage\",\n resetFilterOnHide: [2, \"resetFilterOnHide\", \"resetFilterOnHide\", booleanAttribute],\n dropdownIcon: \"dropdownIcon\",\n optionLabel: \"optionLabel\",\n optionValue: \"optionValue\",\n optionDisabled: \"optionDisabled\",\n optionGroupLabel: \"optionGroupLabel\",\n optionGroupChildren: \"optionGroupChildren\",\n showHeader: [2, \"showHeader\", \"showHeader\", booleanAttribute],\n filterBy: \"filterBy\",\n scrollHeight: \"scrollHeight\",\n lazy: [2, \"lazy\", \"lazy\", booleanAttribute],\n virtualScroll: [2, \"virtualScroll\", \"virtualScroll\", booleanAttribute],\n loading: [2, \"loading\", \"loading\", booleanAttribute],\n virtualScrollItemSize: [2, \"virtualScrollItemSize\", \"virtualScrollItemSize\", numberAttribute],\n loadingIcon: \"loadingIcon\",\n virtualScrollOptions: \"virtualScrollOptions\",\n overlayOptions: \"overlayOptions\",\n ariaFilterLabel: \"ariaFilterLabel\",\n filterMatchMode: \"filterMatchMode\",\n tooltip: \"tooltip\",\n tooltipPosition: \"tooltipPosition\",\n tooltipPositionStyle: \"tooltipPositionStyle\",\n tooltipStyleClass: \"tooltipStyleClass\",\n autofocusFilter: [2, \"autofocusFilter\", \"autofocusFilter\", booleanAttribute],\n display: \"display\",\n autocomplete: \"autocomplete\",\n showClear: [2, \"showClear\", \"showClear\", booleanAttribute],\n autofocus: [2, \"autofocus\", \"autofocus\", booleanAttribute],\n autoZIndex: \"autoZIndex\",\n baseZIndex: \"baseZIndex\",\n showTransitionOptions: \"showTransitionOptions\",\n hideTransitionOptions: \"hideTransitionOptions\",\n defaultLabel: \"defaultLabel\",\n placeholder: \"placeholder\",\n options: \"options\",\n filterValue: \"filterValue\",\n itemSize: \"itemSize\",\n selectAll: \"selectAll\",\n focusOnHover: [2, \"focusOnHover\", \"focusOnHover\", booleanAttribute],\n filterFields: \"filterFields\",\n selectOnFocus: [2, \"selectOnFocus\", \"selectOnFocus\", booleanAttribute],\n autoOptionFocus: [2, \"autoOptionFocus\", \"autoOptionFocus\", booleanAttribute]\n },\n outputs: {\n onChange: \"onChange\",\n onFilter: \"onFilter\",\n onFocus: \"onFocus\",\n onBlur: \"onBlur\",\n onClick: \"onClick\",\n onClear: \"onClear\",\n onPanelShow: \"onPanelShow\",\n onPanelHide: \"onPanelHide\",\n onLazyLoad: \"onLazyLoad\",\n onRemove: \"onRemove\",\n onSelectAllChange: \"onSelectAllChange\"\n },\n features: [i0.ɵɵProvidersFeature([MULTISELECT_VALUE_ACCESSOR]), i0.ɵɵInputTransformsFeature],\n ngContentSelectors: _c15,\n decls: 17,\n vars: 44,\n consts: [[\"container\", \"\"], [\"focusInput\", \"\"], [\"elseBlock\", \"\"], [\"overlay\", \"\"], [\"token\", \"\"], [\"firstHiddenFocusableEl\", \"\"], [\"buildInItems\", \"\"], [\"lastHiddenFocusableEl\", \"\"], [\"builtInFilterElement\", \"\"], [\"headerCheckbox\", \"\"], [\"filterInput\", \"\"], [\"scroller\", \"\"], [\"items\", \"\"], [\"emptyFilter\", \"\"], [\"empty\", \"\"], [3, \"click\", \"ngClass\", \"ngStyle\"], [1, \"p-hidden-accessible\"], [\"role\", \"combobox\", \"pAutoFocus\", \"\", 3, \"focus\", \"blur\", \"keydown\", \"pTooltip\", \"tooltipPosition\", \"positionStyle\", \"tooltipStyleClass\", \"autofocus\"], [1, \"p-multiselect-label-container\", 3, \"mouseleave\", \"pTooltip\", \"tooltipDisabled\", \"tooltipPosition\", \"positionStyle\", \"tooltipStyleClass\"], [3, \"ngClass\"], [4, \"ngIf\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"], [1, \"p-multiselect-trigger\"], [4, \"ngIf\", \"ngIfElse\"], [3, \"visibleChange\", \"onAnimationStart\", \"onHide\", \"visible\", \"options\", \"target\", \"appendTo\", \"autoZIndex\", \"baseZIndex\", \"showTransitionOptions\", \"hideTransitionOptions\"], [\"pTemplate\", \"content\"], [\"class\", \"p-multiselect-token\", 4, \"ngFor\", \"ngForOf\"], [1, \"p-multiselect-token\"], [1, \"p-multiselect-token-label\"], [3, \"ngClass\", \"styleClass\", \"click\", 4, \"ngIf\"], [\"class\", \"p-multiselect-token-icon\", 3, \"click\", 4, \"ngIf\"], [3, \"click\", \"ngClass\", \"styleClass\"], [1, \"p-multiselect-token-icon\", 3, \"click\"], [4, \"ngTemplateOutlet\"], [3, \"styleClass\", \"click\", 4, \"ngIf\"], [\"class\", \"p-multiselect-clear-icon\", 3, \"click\", 4, \"ngIf\"], [3, \"click\", \"styleClass\"], [1, \"p-multiselect-clear-icon\", 3, \"click\"], [\"aria-hidden\", \"true\", 3, \"ngClass\", 4, \"ngIf\"], [\"aria-hidden\", \"true\", 3, \"class\", 4, \"ngIf\"], [\"aria-hidden\", \"true\", 3, \"ngClass\"], [\"aria-hidden\", \"true\"], [\"class\", \"p-multiselect-trigger-icon\", 4, \"ngIf\"], [\"class\", \"p-multiselect-trigger-icon\", 3, \"ngClass\", 4, \"ngIf\"], [3, \"styleClass\", 4, \"ngIf\"], [1, \"p-multiselect-trigger-icon\", 3, \"ngClass\"], [3, \"styleClass\"], [1, \"p-multiselect-trigger-icon\"], [3, \"ngClass\", \"ngStyle\"], [\"role\", \"presentation\", 1, \"p-hidden-accessible\", \"p-hidden-focusable\", 3, \"focus\"], [\"class\", \"p-multiselect-header\", 4, \"ngIf\"], [1, \"p-multiselect-items-wrapper\", 3, \"ngStyle\"], [3, \"items\", \"style\", \"itemSize\", \"autoSize\", \"tabindex\", \"lazy\", \"options\", \"onLazyLoad\", 4, \"ngIf\"], [\"class\", \"p-multiselect-footer\", 4, \"ngIf\"], [1, \"p-multiselect-header\"], [\"class\", \"p-checkbox p-component\", 3, \"ngClass\", \"click\", \"keydown\", 4, \"ngIf\"], [\"class\", \"p-multiselect-filter-container\", 4, \"ngIf\"], [\"type\", \"button\", \"pRipple\", \"\", 1, \"p-multiselect-close\", \"p-link\", \"p-button-icon-only\", 3, \"click\"], [\"class\", \"p-multiselect-close-icon\", 4, \"ngIf\"], [1, \"p-checkbox\", \"p-component\", 3, \"click\", \"keydown\", \"ngClass\"], [\"type\", \"checkbox\", 3, \"focus\", \"blur\", \"readonly\", \"disabled\"], [\"role\", \"checkbox\", 1, \"p-checkbox-box\", 3, \"ngClass\"], [\"class\", \"p-checkbox-icon\", 4, \"ngIf\"], [1, \"p-checkbox-icon\"], [1, \"p-multiselect-filter-container\"], [\"type\", \"text\", \"role\", \"searchbox\", \"role\", \"searchbox\", 1, \"p-multiselect-filter\", \"p-inputtext\", \"p-component\", 3, \"input\", \"keydown\", \"click\", \"blur\", \"value\", \"disabled\"], [\"class\", \"p-multiselect-filter-icon\", 4, \"ngIf\"], [1, \"p-multiselect-filter-icon\"], [1, \"p-multiselect-close-icon\"], [3, \"onLazyLoad\", \"items\", \"itemSize\", \"autoSize\", \"tabindex\", \"lazy\", \"options\"], [\"pTemplate\", \"loader\"], [\"role\", \"listbox\", \"aria-multiselectable\", \"true\", 1, \"p-multiselect-items\", \"p-component\", 3, \"ngClass\", \"ngStyle\"], [\"ngFor\", \"\", 3, \"ngForOf\"], [\"class\", \"p-multiselect-empty-message\", \"role\", \"option\", 3, \"ngStyle\", 4, \"ngIf\"], [\"role\", \"option\", 1, \"p-multiselect-item-group\", 3, \"ngStyle\"], [3, \"onClick\", \"onMouseEnter\", \"id\", \"option\", \"selected\", \"label\", \"disabled\", \"template\", \"checkIconTemplate\", \"itemCheckboxIconTemplate\", \"itemSize\", \"focused\", \"ariaPosInset\", \"ariaSetSize\"], [\"role\", \"option\", 1, \"p-multiselect-empty-message\", 3, \"ngStyle\"], [1, \"p-multiselect-footer\"]],\n template: function MultiSelect_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵprojectionDef(_c14);\n i0.ɵɵelementStart(0, \"div\", 15, 0);\n i0.ɵɵlistener(\"click\", function MultiSelect_Template_div_click_0_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onContainerClick($event));\n });\n i0.ɵɵelementStart(2, \"div\", 16)(3, \"input\", 17, 1);\n i0.ɵɵlistener(\"focus\", function MultiSelect_Template_input_focus_3_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onInputFocus($event));\n })(\"blur\", function MultiSelect_Template_input_blur_3_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onInputBlur($event));\n })(\"keydown\", function MultiSelect_Template_input_keydown_3_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onKeyDown($event));\n });\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(5, \"div\", 18);\n i0.ɵɵlistener(\"mouseleave\", function MultiSelect_Template_div_mouseleave_5_listener() {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.labelContainerMouseLeave());\n });\n i0.ɵɵelementStart(6, \"div\", 19);\n i0.ɵɵtemplate(7, MultiSelect_ng_container_7_Template, 3, 2, \"ng-container\", 20)(8, MultiSelect_ng_container_8_Template, 1, 0, \"ng-container\", 21);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(9, MultiSelect_ng_container_9_Template, 3, 2, \"ng-container\", 20);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(10, \"div\", 22);\n i0.ɵɵtemplate(11, MultiSelect_ng_container_11_Template, 3, 2, \"ng-container\", 23)(12, MultiSelect_ng_template_12_Template, 2, 2, \"ng-template\", null, 2, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(14, \"p-overlay\", 24, 3);\n i0.ɵɵtwoWayListener(\"visibleChange\", function MultiSelect_Template_p_overlay_visibleChange_14_listener($event) {\n i0.ɵɵrestoreView(_r1);\n i0.ɵɵtwoWayBindingSet(ctx.overlayVisible, $event) || (ctx.overlayVisible = $event);\n return i0.ɵɵresetView($event);\n });\n i0.ɵɵlistener(\"onAnimationStart\", function MultiSelect_Template_p_overlay_onAnimationStart_14_listener($event) {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.onOverlayAnimationStart($event));\n })(\"onHide\", function MultiSelect_Template_p_overlay_onHide_14_listener() {\n i0.ɵɵrestoreView(_r1);\n return i0.ɵɵresetView(ctx.hide());\n });\n i0.ɵɵtemplate(16, MultiSelect_ng_template_16_Template, 12, 18, \"ng-template\", 25);\n i0.ɵɵelementEnd()();\n }\n if (rf & 2) {\n let tmp_19_0;\n const elseBlock_r24 = i0.ɵɵreference(13);\n i0.ɵɵclassMap(ctx.styleClass);\n i0.ɵɵproperty(\"ngClass\", ctx.containerClass)(\"ngStyle\", ctx.style);\n i0.ɵɵattribute(\"id\", ctx.id);\n i0.ɵɵadvance(2);\n i0.ɵɵattribute(\"data-p-hidden-accessible\", true);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"pTooltip\", ctx.tooltip)(\"tooltipPosition\", ctx.tooltipPosition)(\"positionStyle\", ctx.tooltipPositionStyle)(\"tooltipStyleClass\", ctx.tooltipStyleClass)(\"autofocus\", ctx.autofocus);\n i0.ɵɵattribute(\"aria-disabled\", ctx.disabled)(\"id\", ctx.inputId)(\"aria-label\", ctx.ariaLabel)(\"aria-labelledby\", ctx.ariaLabelledBy)(\"aria-haspopup\", \"listbox\")(\"aria-expanded\", (tmp_19_0 = ctx.overlayVisible) !== null && tmp_19_0 !== undefined ? tmp_19_0 : false)(\"aria-controls\", ctx.overlayVisible ? ctx.id + \"_list\" : null)(\"tabindex\", !ctx.disabled ? ctx.tabindex : -1)(\"aria-activedescendant\", ctx.focused ? ctx.focusedOptionId : undefined)(\"value\", ctx.label() || \"empty\");\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"pTooltip\", ctx.tooltip)(\"tooltipDisabled\", ctx._disableTooltip)(\"tooltipPosition\", ctx.tooltipPosition)(\"positionStyle\", ctx.tooltipPositionStyle)(\"tooltipStyleClass\", ctx.tooltipStyleClass);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngClass\", ctx.labelClass);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx.selectedItemsTemplate);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx.selectedItemsTemplate)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction2(41, _c16, ctx.selectedOptions, ctx.removeOption.bind(ctx)));\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.isVisibleClearIcon);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx.loading)(\"ngIfElse\", elseBlock_r24);\n i0.ɵɵadvance(3);\n i0.ɵɵtwoWayProperty(\"visible\", ctx.overlayVisible);\n i0.ɵɵproperty(\"options\", ctx.overlayOptions)(\"target\", \"@parent\")(\"appendTo\", ctx.appendTo)(\"autoZIndex\", ctx.autoZIndex)(\"baseZIndex\", ctx.baseZIndex)(\"showTransitionOptions\", ctx.showTransitionOptions)(\"hideTransitionOptions\", ctx.hideTransitionOptions);\n }\n },\n dependencies: () => [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i4.Overlay, i1.PrimeTemplate, i5.Tooltip, i3.Ripple, i6.Scroller, i7.AutoFocus, CheckIcon, SearchIcon, TimesCircleIcon, TimesIcon, ChevronDownIcon, MultiSelectItem],\n styles: [\"@layer primeng{.p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer;display:flex}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}}\\n\"],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n return MultiSelect;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet MultiSelectModule = /*#__PURE__*/(() => {\n class MultiSelectModule {\n static ɵfac = function MultiSelectModule_Factory(t) {\n return new (t || MultiSelectModule)();\n };\n static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: MultiSelectModule\n });\n static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [CommonModule, OverlayModule, SharedModule, TooltipModule, RippleModule, ScrollerModule, AutoFocusModule, CheckIcon, SearchIcon, TimesCircleIcon, TimesIcon, ChevronDownIcon, CheckIcon, MinusIcon, OverlayModule, SharedModule, ScrollerModule]\n });\n }\n return MultiSelectModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { MULTISELECT_VALUE_ACCESSOR, MultiSelect, MultiSelectItem, MultiSelectModule };\n"],"mappings":"yuDAAA,IAAAA,GAAAC,GAAA,CAAAC,GAAAC,KAAA,cAGAA,GAAO,QAAU,SAASC,EAAMC,EAAGC,EAAG,CACpC,GAAID,IAAMC,EAAG,MAAO,GACpB,GAAID,GAAKC,GAAK,OAAOD,GAAK,UAAY,OAAOC,GAAK,SAAU,CAC1D,GAAID,EAAE,cAAgBC,EAAE,YAAa,MAAO,GAC5C,IAAIC,EAAQ,EAAGC,EACf,GAAI,MAAM,QAAQH,CAAC,EAAG,CAEpB,GADAE,EAASF,EAAE,OACPE,GAAUD,EAAE,OAAQ,MAAO,GAC/B,IAAK,EAAIC,EAAQ,MAAQ,GAAI,GAAI,CAACH,EAAMC,EAAE,CAAC,EAAGC,EAAE,CAAC,CAAC,EAAG,MAAO,GAC5D,MAAO,EACT,CACA,GAAID,EAAE,cAAgB,OAAQ,OAAOA,EAAE,SAAWC,EAAE,QAAUD,EAAE,QAAUC,EAAE,MAC5E,GAAID,EAAE,UAAY,OAAO,UAAU,QAAS,OAAOA,EAAE,QAAQ,IAAMC,EAAE,QAAQ,EAC7E,GAAID,EAAE,WAAa,OAAO,UAAU,SAAU,OAAOA,EAAE,SAAS,IAAMC,EAAE,SAAS,EAGjF,GAFAE,EAAO,OAAO,KAAKH,CAAC,EACpBE,EAASC,EAAK,OACVD,IAAW,OAAO,KAAKD,CAAC,EAAE,OAAQ,MAAO,GAC7C,IAAK,EAAIC,EAAQ,MAAQ,GAAI,GAAI,CAAC,OAAO,UAA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,KAAK,CAClB,EACA,OAAQ,CACN,KAAM,SACN,WAAY,CACV,IAAK,CACH,MAAO,CAAC,CACN,KAAM,SACN,KAAM,CAAC,MAAM,CACf,EAAG,CACD,KAAM,SACN,QAAS,EACT,QAAS,GACX,CAAC,CACH,EACA,KAAM,CACJ,KAAM,SACR,EACA,WAAY,CACV,KAAM,WACN,QAAS,UACX,CACF,EACA,qBAAsB,EACxB,EACA,aAAc,CACZ,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,QAAS,CACP,KAAM,SACN,QAAS,EACT,QAAS,IACT,QAAS,GACX,EACA,QAAS,CACP,KAAM,SACN,QAAS,EACT,QAAS,IACT,QAAS,GACX,EACA,OAAQ,CACN,KAAM,SACR,EACA,MAAO,CACL,KAAM,WACN,QAAS,UACX,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,WAAY,CACV,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,MAAO,CACL,QAAS,EACT,KAAM,UACR,EACA,MAAO,CACL,KAAM,SACN,QAAS,EACT,QAAS,GACX,EACA,OAAQ,CACN,KAAM,SACN,QAAS,EACT,QAAS,GACX,EACA,QAAS,CACP,KAAM,SACN,QAAS,EACT,QAAS,IACT,QAAS,GACX,EACA,QAAS,CACP,KAAM,SACN,QAAS,EACT,QAAS,IACT,QAAS,GACX,EACA,OAAQ,CACN,KAAM,UACN,QAAS,EACT,QAAS,GACX,EACA,KAAM,CACJ,KAAM,SACN,KAAM,CAAC,OAAQ,QAAS,MAAM,EAC9B,QAAS,OACX,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,eAAgB,CACd,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,MAAO,CACL,KAAM,WACN,QAAS,KACX,EACA,QAAS,CACP,KAAM,SACN,QAAS,EACT,QAAS,IACT,QAAS,GACX,EACA,QAAS,CACP,KAAM,SACN,QAAS,EACT,QAAS,IACT,QAAS,GACX,EACA,OAAQ,CACN,KAAM,UACN,QAAS,EACT,QAAS,GACX,EACA,OAAQ,CACN,KAAM,UACN,QAAS,EACT,QAAS,IACT,QAAS,EACX,EACA,KAAM,CACJ,KAAM,SACN,QAAS,EACT,QAAS,GACT,QAAS,CACX,EACA,KAAM,CACJ,KAAM,SACN,KAAM,CAAC,OAAQ,MAAM,EACrB,QAAS,MACX,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,WAAY,CACV,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,MAAO,CACL,KAAM,WACN,QAAS,KACX,EACA,QAAS,CACP,KAAM,SACN,QAAS,EACT,QAAS,IACT,QAAS,GACX,EACA,QAAS,CACP,KAAM,SACN,QAAS,EACT,QAAS,IACT,QAAS,GACX,EACA,OAAQ,CACN,KAAM,UACN,QAAS,EACT,QAAS,GACX,EACA,OAAQ,CACN,KAAM,SACN,QAAS,EACT,QAAS,GACT,QAAS,EACX,EACA,KAAM,CACJ,KAAM,SACN,QAAS,EACT,QAAS,GACT,QAAS,CACX,EACA,KAAM,CACJ,KAAM,SACN,KAAM,CAAC,OAAQ,MAAM,EACrB,QAAS,MACX,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,gBAAiB,CACf,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,OAAQ,CACN,MAAO,CAAC,CACN,KAAM,UACN,QAAS,EACT,QAAS,GACX,EAAG,CACD,KAAM,SACN,KAAM,CAAC,KAAK,CACd,CAAC,CACH,EACA,KAAM,CACJ,KAAM,SACN,QAAS,EACT,QAAS,GACT,QAAS,EACX,EACA,WAAY,CACV,KAAM,UACR,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,SAAU,CACR,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,OAAQ,CACN,KAAM,UACN,QAAS,EACT,QAAS,IACT,QAAS,EACX,EACA,SAAU,CACR,KAAM,SACN,KAAM,CAAC,WAAY,QAAQ,EAC3B,QAAS,UACX,EACA,WAAY,CACV,KAAM,UACR,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,SAAU,CACR,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,OAAQ,CACN,KAAM,UACN,QAAS,EACT,QAAS,GACX,EACA,MAAO,CACL,KAAM,WACN,QAAS,MACX,EACA,WAAY,CACV,KAAM,UACR,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,WAAY,CACV,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,OAAQ,CACN,KAAM,QACN,gBAAiB,GACjB,SAAU,EACV,MAAO,CAAC,CACN,KAAM,UACN,QAAS,EACT,QAAS,IACT,QAAS,CACX,EAAG,CACD,KAAM,UACN,QAAS,EACT,QAAS,IACT,QAAS,EACX,CAAC,CACH,EACA,WAAY,CACV,KAAM,UACR,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,OAAQ,CACN,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,KAAM,CACJ,KAAM,SACN,QAAS,EACT,QAAS,GACT,QAAS,GACX,EACA,QAAS,CACP,KAAM,UACN,QAAS,EACT,QAAS,IACT,QAAS,EACX,EACA,OAAQ,CACN,KAAM,QACN,gBAAiB,GACjB,SAAU,EACV,MAAO,CAAC,CACN,KAAM,UACN,QAAS,KACT,QAAS,IACT,QAAS,CACX,EAAG,CACD,KAAM,UACN,QAAS,KACT,QAAS,IACT,QAAS,CACX,CAAC,CACH,EACA,MAAO,CACL,KAAM,UACR,EACA,WAAY,CACV,KAAM,UACR,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,OAAQ,CACN,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,WAAY,CACV,KAAM,UACR,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,OAAQ,CACN,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,MAAO,CACL,KAAM,UACR,EACA,WAAY,CACV,KAAM,UACR,EACA,MAAO,CACL,KAAM,UACN,QAAS,EACT,QAAS,GACX,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,QAAS,CACP,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,OAAQ,CACN,KAAM,UACN,QAAS,EACT,QAAS,GACT,QAAS,CACX,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,KAAM,CACJ,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,OAAQ,CACN,KAAM,UACN,QAAS,EACT,QAAS,GACT,QAAS,CACX,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,WAAY,CACV,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,UAAW,CACT,KAAM,UACN,QAAS,EACT,QAAS,IACT,QAAS,EACX,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,MAAO,CACL,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,KAAM,CACJ,KAAM,UACN,QAAS,EACT,QAAS,IACT,QAAS,EACX,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,SAAU,CACR,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,OAAQ,CACN,KAAM,UACN,QAAS,EACT,QAAS,IACT,QAAS,CACX,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,UAAW,CACT,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,OAAQ,CACN,KAAM,UACN,QAAS,EACT,QAAS,IACT,QAAS,CACX,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,SAAU,CACR,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,WAAY,CACV,KAAM,UACN,QAAS,EACT,QAAS,IACT,QAAS,GACX,EACA,WAAY,CACV,KAAM,UACN,QAAS,EACT,QAAS,IACT,QAAS,GACX,EACA,IAAK,CACH,KAAM,UACN,QAAS,EACT,QAAS,IACT,QAAS,CACX,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,MAAO,CACL,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,WAAY,CACV,KAAM,WACN,QAAS,UACX,EACA,WAAY,CACV,KAAM,WACN,QAAS,UACX,EACA,QAAS,CACP,KAAM,UACN,QAAS,EACX,EACA,KAAM,CACJ,KAAM,UACN,QAAS,GACT,QAAS,IACT,QAAS,GACX,EACA,QAAS,CACP,KAAM,UACN,QAAS,EACX,CACF,EACA,qBAAsB,EACxB,CAAC,CACH,EACA,QAAS,CACP,KAAM,SACN,WAAY,CACV,MAAO,CACL,KAAM,QACN,SAAU,EACV,MAAO,CAAC,CACN,KAAM,QACR,CAAC,CACH,EACA,OAAQ,CACN,KAAM,UACN,QAAS,EACT,QAAS,IACT,QAAS,EACX,EACA,MAAO,CACL,KAAM,UACN,QAAS,EACT,QAAS,GACX,EACA,OAAQ,CACN,KAAM,UACN,QAAS,EACT,QAAS,GACX,EACA,MAAO,CACL,KAAM,WACN,QAAS,UACX,EACA,IAAK,CACH,KAAM,SACN,KAAM,CAAC,OAAQ,MAAM,CACvB,EACA,WAAY,CACV,KAAM,UACN,QAAS,EACX,CACF,EACA,SAAU,CAAC,QAAS,SAAU,OAAO,EACrC,qBAAsB,EACxB,EACA,cAAe,CACb,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,MAAO,CACL,KAAM,SACN,KAAM,CAAC,UAAW,QAAQ,EAC1B,QAAS,SACX,EACA,MAAO,CACL,KAAM,UACN,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AAY,CACV,KAAM,SACN,KAAM,CAAC,MAAO,OAAQ,OAAO,EAC7B,QAAS,KACX,EACA,WAAY,CACV,KAAM,UACR,EACA,WAAY,CACV,KAAM,SACN,KAAM,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,SAAU,QAAS,SAAS,CACzE,EACA,gBAAiB,CACf,KAAM,SACN,KAAM,CAAC,YAAa,UAAU,CAChC,CACF,CACF,EACA,KAAM,CACJ,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,qBAAsB,GACtB,WAAY,CACV,QAAS,CACP,KAAM,UACN,QAAS,EACT,QAAS,GACX,EACA,SAAU,CACR,KAAM,UACN,QAAS,EACX,CACF,CACF,CAAC,CACH,EACA,QAAS,CACP,KAAM,SACN,qBAAsB,GACtB,WAAY,CACV,MAAO,CACL,KAAM,UACN,QAAS,EACT,QAAS,GACX,CACF,CACF,EACA,MAAO,CACL,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,WAAY,CACV,OAAQ,CACN,KAAM,SACR,CACF,CACF,CAAC,CACH,EACA,cAAe,CACb,KAAM,SACN,qBAAsB,GACtB,WAAY,CACV,MAAO,CACL,KAAM,UACN,QAAS,EACT,QAAS,IACX,EACA,OAAQ,CACN,KAAM,UACN,QAAS,EACT,QAAS,IACX,EACA,OAAQ,CACN,KAAM,QACR,EACA,MAAO,CACL,KAAM,SACR,EACA,MAAO,CACL,KAAM,QACR,EACA,QAAS,CACP,KAAM,QACR,EACA,QAAS,CACP,KAAM,SACR,EACA,YAAa,CACX,KAAM,SACN,KAAM,CAAC,YAAa,MAAO,OAAQ,WAAY,WAAW,EAC1D,QAAS,WACX,EACA,kBAAmB,CACjB,KAAM,UACN,QAAS,EACT,QAAS,KACX,EACA,SAAU,CACR,KAAM,SACR,EACA,cAAe,CACb,KAAM,UACN,QAAS,EACT,QAAS,GACX,EACA,IAAK,CACH,KAAM,UACN,QAAS,EACT,QAAS,GACX,EACA,kBAAmB,CACjB,KAAM,UACN,QAAS,IACT,QAAS,GACX,EACA,cAAe,CACb,KAAM,UACN,QAAS,EACT,QAAS,GACX,EACA,YAAa,CACX,KAAM,QACR,EACA,eAAgB,CACd,KAAM,UACN,QAAS,EACT,QAAS,EACX,EACA,YAAa,CACX,KAAM,SACN,QAAS,wDACX,EACA,YAAa,CACX,KAAM,SACN,QAAS,wDACX,EACA,cAAe,CACb,KAAM,QACR,EACA,cAAe,CACb,KAAM,UACN,QAAS,EACT,QAAS,IACX,EACA,gBAAiB,CACf,KAAM,UACN,QAAS,EACT,QAAS,IACX,EACA,iBAAkB,CAChB,KAAM,UACN,QAAS,EACT,QAAS,IACX,EACA,eAAgB,CACd,KAAM,UACN,QAAS,EACT,QAAS,IACX,EACA,YAAa,CACX,KAAM,UACN,QAAS,EACT,QAAS,EACT,QAAS,CACX,EACA,SAAU,CACR,KAAM,QACR,EACA,SAAU,CACR,KAAM,cACR,EACA,KAAM,CACJ,KAAM,QACR,EACA,UAAW,CACT,KAAM,QACR,EACA,OAAQ,CACN,KAAM,SACN,KAAM,CAAC,SAAU,SAAS,EAC1B,QAAS,QACX,CACF,CACF,EACA,MAAO,CACL,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,qBAAsB,GACtB,WAAY,CACV,SAAU,CACR,KAAM,QACR,EACA,SAAU,CACR,KAAM,cACR,EACA,KAAM,CACJ,KAAM,QACR,EACA,UAAW,CACT,KAAM,QACR,EACA,OAAQ,CACN,KAAM,YACR,EACA,OAAQ,CACN,KAAM,SACN,KAAM,CAAC,SAAU,SAAS,EAC1B,QAAS,SACX,EACA,aAAc,CACZ,KAAM,SACR,EACA,UAAW,CACT,KAAM,cACR,CACF,CACF,CAAC,CACH,EACA,UAAW,CACT,KAAM,SACN,WAAY,CACV,KAAM,CACJ,KAAM,QACR,EACA,KAAM,CACJ,KAAM,SACN,QAAS,EACT,QAAS,GACX,EACA,SAAU,CACR,KAAM,aACR,CACF,EACA,SAAU,CAA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ACT,KAAM,QACR,EACA,OAAQ,CACN,KAAM,YACR,EACA,OAAQ,CACN,KAAM,SACN,KAAM,CAAC,SAAU,SAAS,EAC1B,QAAS,SACX,EACA,aAAc,CACZ,KAAM,SACR,EACA,UAAW,CACT,KAAM,cACR,EACA,kBAAmB,CACjB,KAAM,SACR,EACA,KAAM,CACJ,KAAM,SACN,qBAAsB,CACpB,KAAM,QACR,CACF,EACA,UAAW,CACT,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,qBAAsB,GACtB,WAAY,CACV,QAAS,CACP,KAAM,QACN,MAAO,CAAC,CACN,KAAM,QACR,CAAC,CACH,EACA,YAAa,CACX,KAAM,QACR,CACF,CACF,CAAC,CACH,CACF,CACF,EACAC,GAAK,CACH,QAAS,0CACT,MAAO,oBACP,YAAa,4BACb,KAAM,SACN,qBAAsB,GACtB,WAAY,CACV,GAAI,CACF,KAAM,QACR,EACA,IAAK,CACH,KAAM,QACR,CACF,CACF,EACAC,GAAK,CACH,QAAS,0CACT,MAAO,mBACP,YAAa,2BACb,KAAM,SACN,qBAAsB,GACtB,WAAY,CACV,SAAU,CACR,KAAM,UACN,QAAS,OACX,EACA,YAAa,CACX,KAAM,UACN,QAAS,EACT,QAAS,EACX,EACA,iBAAkB,CAChB,KAAM,UACN,QAAS,CACX,EACA,MAAO,CACL,KAAM,UACN,QAAS,EACT,QAAS,EACX,EACA,YAAa,CACX,KAAM,SACR,EACA,aAAc,CACZ,KAAM,SACR,EACA,QAAS,CACP,KAAM,UACN,QAAS,EACT,QAAS,IACX,EACA,YAAa,CACX,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,KAAM,CAAC,UAAU,CACnB,CAAC,CACH,EACA,qBAAsB,CACpB,KAAM,SACR,EACA,WAAY,CACV,OAAQ,UACV,EACA,QAAS,CACP,OAAQ,UACV,EACA,sBAAuB,CACrB,KAAM,SACR,EACA,KAAM,CACJ,KAAM,SACN,SAAU,GACV,qBAAsB,C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,QAAS,CACP,qBAAsB,GACtB,KAAM,SACN,WAAY,CACV,SAAU,CACR,KAAM,QACR,EACA,SAAU,CACR,KAAM,cACR,EACA,UAAW,CACT,KAAM,QACR,EACA,KAAM,CACJ,KAAM,QACR,EACA,OAAQ,CACN,KAAM,QACR,EACA,OAAQ,CACN,KAAM,SACN,KAAM,CAAC,SAAU,SAAS,CAC5B,EACA,UAAW,CACT,KAAM,cACR,CACF,CACF,EACA,SAAU,CACR,KAAM,SACN,KAAM,CAAC,OAAQ,MAAM,CACvB,EACA,gBAAiB,CACf,KAAM,SACN,qBAAsB,GACtB,WAAY,CACV,OAAQ,CACN,KAAM,SACR,EACA,OAAQ,CACN,KAAM,SACR,EACA,MAAO,CACL,KAAM,SACR,EACA,KAAM,CACJ,MAAO,CAAC,CACN,KAAM,SACR,EAAG,CACD,KAAM,SACN,qBAAsB,GACtB,WAAY,CACV,MAAO,CACL,KAAM,SACR,EACA,YAAa,CACX,KAAM,QACR,CACF,CACF,CAAC,CACH,CACF,CACF,EACA,WAAY,CACV,KAAM,SACN,kBAAmB,CACjB,KAAM,CACJ,KAAM,QACR,CACF,CACF,EACA,UAAW,CACT,KAAM,QACN,SAAU,CACZ,EACA,QAAS,CACP,KAAM,QACR,EACA,iBAAkB,CAChB,KAAM,SACR,EACA,SAAU,CACR,KAAM,SACN,WAAY,CACV,UAAW,CACT,KAAM,QACN,SAAU,CACZ,EACA,WAAY,CACV,KAAM,QACR,EACA,aAAc,CACZ,KAAM,SACR,EACA,QAAS,CACP,KAAM,SACR,EACA,SAAU,CACR,KAAM,SACR,EACA,aAAc,CACZ,KAAM,SACR,EACA,YAAa,CACX,OAAQ,UACV,EACA,WAAY,CACV,OAAQ,UACV,EACA,YAAa,CACX,OAAQ,UACV,EACA,WAAY,CACV,OAAQ,UACV,EACA,OAAQ,CACN,OAAQ,UACV,EACA,UAAW,CACT,OAAQ,UACV,EACA,QAAS,CACP,OAAQ,UACV,EACA,QAAS,CACP,OAAQ,UACV,CACF,CACF,EACA,cAAe,CACb,KAAM,SACN,QAAS,CACX,EACA,eAAgB,CACd,KAAM,SACN,kBAAmB,CACjB,KAAM,CACJ,qBAAsB,GACtB,KAAM,SACN,SAAU,CAAC,MAAO,QAAQ,EAC1B,WAAY,CACV,IAAK,CACH,KAAM,QACR,EACA,OAAQ,CACN,KAAM,QACR,CACF,CACF,CACF,CACF,EACA,aAAc,CACZ,KAAM,SACN,qBAAsB,GACtB,WAAY,OAAOnG,EAAE,CAAC,EAAE,OAAOA,EAAE,CAAC,EAAE,CAAC,EAAGkG,GAAG,UAAU,EAAG,CACtD,KAAM,CACJ,KAAM,SACN,qBAAsB,CACpB,MAAO,CAAC,CACN,KAAM,QACR,EAAG,CACD,OAAQ,UACV,CAAC,CACH,CACF,CACF,CAAC,CACH,EACA,qBAAsB,CACpB,KAAM,SACR,EACA,UAAW,CACT,KAAM,SACN,qBAAsB,GACtB,WAAY,CACV,uBAAwB,CACtB,KAAM,SACR,EACA,qBAAsB,CACpB,KAAM,SACR,CACF,CACF,CACF,CACF,EACAE,GAAK,CACH,QAAS,0CACT,MAAO,qBACP,YAAa,6BACb,KAAM,SACN,qBAAsB,GACtB,WAAY,CACV,KAAM,CACJ,KAAM,SACR,EACA,SAAU,CACR,KAAM,SACR,EACA,SAAU,CACR,KAAM,SACR,EACA,MAAO,CACL,KAAM,SACR,EACA,SAAU,CACR,KAAM,SACR,EACA,OAAQ,CACN,KAAM,SACR,EACA,SAAU,CACR,KAAM,SACR,EACA,UAAW,CACT,KAAM,SACR,EACA,MAAO,CACL,KAAM,SACR,EACA,UAAW,CACT,KAAM,SACR,EACA,IAAK,CACH,KAAM,SACR,EACA,KAAM,CACJ,KAAM,SACR,EACA,OAAQ,CACN,KAAM,SACR,EACA,OAAQ,CACN,KAAM,SACR,EACA,OAAQ,CACN,KAAM,SACR,EACA,OAAQ,CACN,KAAM,SACR,EACA,SAAU,CACR,KAAM,SACR,EACA,KAAM,CACJ,KAAM,SACR,EACA,UAAW,CAC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ChQ,CACF,EACA,aAAc,IAAM,CAAI4K,GAAYmG,GAAYlG,GAASC,GAAqBC,GAAYiG,GAAYf,GAAkBgB,GAAYjG,GAAWkG,GAAaC,GAAWlG,GAAWmG,GAAYC,GAAiBC,GAAWC,GAAiBrH,EAAe,EAC1P,OAAQ,CAAC;AAAA,CAA2+C,EACp/C,cAAe,EACf,gBAAiB,CACnB,CAAC,CACH,CACA,OAAOD,CACT,GAAG,EAICuH,IAAkC,IAAM,CAC1C,MAAMA,CAAkB,CACtB,OAAO,UAAO,SAAmC,EAAG,CAClD,OAAO,IAAK,GAAKA,EACnB,EACA,OAAO,UAAyBC,GAAiB,CAC/C,KAAMD,CACR,CAAC,EACD,OAAO,UAAyBE,GAAiB,CAC/C,QAAS,CAACC,GAAcC,GAAeC,GAAcC,GAAeC,GAAcC,GAAgBC,GAAiBhH,GAAWmG,GAAYC,GAAiBC,GAAWC,GAAiBtG,GAAWiH,GAAWN,GAAeC,GAAcG,EAAc,CAC1P,CAAC,CACH,CACA,OAAOR,CACT,GAAG","names":["require_fast_deep_equal","__commonJSMin","exports","module","equal","a","b","length","keys","key","require_moment","__commonJSMin","exports","module","global","factory","hookCallback","hooks","setHookCallback","callback","isArray","input","isObject","hasOwnProp","a","b","isObjectEmpty","obj","k","isUndefined","isNumber","isDate","map","arr","fn","res","i","arrLen","extend","createUTC","format","locale","strict","createLocalOrUTC","defaultParsingFlags","getParsingFlags","m","some","fun","t","len","isValid","flags","parsedParts","isNowValid","createInvalid","momentProperties","updateInProgress","copyConfig","to","from","prop","val","momentPropertiesLen","Moment","config","isMoment","warn","msg","deprecate","firstTime","args","arg","key","argLen","deprecations","deprecateSimple","name","isFunction","set","mergeConfigs","parentConfig","childConfig","Locale","keys","defaultCalendar","calendar","mom","now","output","zeroFill","number","targetLength","forceSign","absNumber","zerosToFill","sign","formattingTokens","localFormattingTokens","formatFunctions","formatTokenFunctions","addFormatToken","token","padded","ordinal","func","removeFormattingTokens","makeFormatFunction","array","length","formatMoment","expandFormat","replaceLongDateFormatTokens","defaultLongDateFormat","longDateFormat","formatUpper","tok","defaultInvalidDate","invalidDate","defaultOrdinal","defaultDayOfMonthOrdinalParse","defaultRelativeTime","relativeTime","withoutSuffix","string","isFuture","pastFuture","diff","aliases","normalizeUnits","units","normalizeObjectUnits","inputObject","normalizedInput","normalizedProp","priorities","getPrioritizedUnits","unitsObj","u","match1","match2","match3","match4","match6","match1to2","match3to4","match5to6","match1to3","match1to4","match1to6","matchUnsigned","matchSigned","matchOffset","matchShortOffset","matchTimestamp","matchWord","match1to2NoLeadingZero","match1to2HasZero","regexes","addRegexToken","regex","strictRegex","isStrict","localeData","getParseRegexForToken","unescapeFormat","s","regexEscape","matched","p1","p2","p3","p4","absFloor","toInt","argumentForCoercion","coercedNumber","value","tokens","addParseToken","tokenLen","addWeekParseToken","addTimeToArrayFromToken","isLeapYear","year","YEAR","MONTH","DATE","HOUR","MINUTE","SECOND","MILLISECOND","WEEK","WEEKDAY","y","daysInYear","getSetYear","makeGetSet","getIsLeapYear","unit","keepTime","set$1","get","d","isUTC","month","date","stringGet","stringSet","prioritized","prioritizedLen","mod","n","x","indexOf","o","daysInMonth","modMonth","defaultLocaleMonths","defaultLocaleMonthsShort","MONTHS_IN_FORMAT","defaultMonthsShortRegex","defaultMonthsRegex","localeMonths","localeMonthsShort","handleStrictParse","monthName","ii","llc","localeMonthsParse","setMonth","getSetMonth","getDaysInMonth","monthsShortRegex","computeMonthsParse","monthsRegex","cmpLenRev","shortPieces","longPieces","mixedPieces","shortP","longP","createDate","h","M","ms","createUTCDate","firstWeekOffset","dow","doy","fwd","fwdlw","dayOfYearFromWeeks","week","weekday","localWeekday","weekOffset","dayOfYear","resYear","resDayOfYear","weekOfYear","resWeek","weeksInYear","weekOffsetNext","localeWeek","defaultLocaleWeek","localeFirstDayOfWeek","localeFirstDayOfYear","getSetWeek","getSetISOWeek","parseWeekday","parseIsoWeekday","shiftWeekdays","ws","defaultLocaleWeekdays","defaultLocaleWeekdaysShort","defaultLocaleWeekdaysMin","defaultWeekdaysRegex","defaultWeekdaysShortRegex","defaultWeekdaysMinRegex","localeWeekdays","weekdays","localeWeekdaysShort","localeWeekdaysMin","handleStrictParse$1","weekdayName","localeWeekdaysParse","getSetDayOfWeek","day","getSetLocaleDayOfWeek","getSetISODayOfWeek","weekdaysRegex","computeWeekdaysParse","weekdaysShortRegex","weekdaysMinRegex","minPieces","minp","shortp","longp","hFormat","kFormat","meridiem","lowercase","matchMeridiem","kInput","pos","pos1","pos2","localeIsPM","defaultLocaleMeridiemParse","getSetHour","localeMeridiem","hours","minutes","isLower","baseConfig","locales","localeFamilies","globalLocale","commonPrefix","arr1","arr2","minl","normalizeLocale","chooseLocale","names","j","next","split","loadLocale","isLocaleNameSane","oldLocale","aliasedRequire","__require","getSetGlobalLocale","values","data","getLocale","defineLocale","updateLocale","tmpLocale","listLocales","checkOverflow","overflow","extendedIsoRegex","basicIsoRegex","tzRegex","isoDates","isoTimes","aspNetJsonRegex","rfc2822","obsOffsets","configFromISO","l","match","allowTime","dateFormat","timeFormat","tzFormat","isoDatesLen","isoTimesLen","configFromStringAndFormat","extractFromRFC2822Strings","yearStr","monthStr","dayStr","hourStr","minuteStr","secondStr","result","untruncateYear","preprocessRFC2822","checkWeekday","weekdayStr","parsedInput","weekdayProvided","weekdayActual","calculateOffset","obsOffset","militaryOffset","numOffset","hm","configFromRFC2822","parsedArray","configFromString","defaults","c","currentDateArray","nowValue","configFromArray","currentDate","expectedWeekday","yearToUse","dayOfYearFromWeekInfo","w","weekYear","temp","weekdayOverflow","curWeek","createLocal","skipped","stringLength","totalParsedInputLength","era","meridiemFixWrap","hour","isPm","configFromStringAndArray","tempConfig","bestMoment","scoreToBeat","currentScore","validFormatFound","bestFormatIsValid","configfLen","configFromObject","dayOrDate","createFromConfig","prepareConfig","configFromInput","prototypeMin","other","prototypeMax","pickBy","moments","min","max","ordering","isDurationValid","unitHasDecimal","orderLen","isValid$1","createInvalid$1","createDuration","Duration","duration","years","quarters","months","weeks","days","seconds","milliseconds","isDuration","absRound","compareArrays","array1","array2","dontConvert","lengthDiff","diffs","offset","separator","offsetFromString","chunkOffset","matcher","matches","chunk","parts","cloneWithOffset","model","getDateOffset","getSetOffset","keepLocalTime","keepMinutes","localAdjust","addSubtract","getSetZone","setOffsetToUTC","setOffsetToLocal","setOffsetToParsedOffset","tZone","hasAlignedHourOffset","isDaylightSavingTime","isDaylightSavingTimeShifted","isLocal","isUtcOffset","isUtc","aspNetRegex","isoRegex","ret","diffRes","parseIso","momentsDifference","inp","positiveMomentsDifference","base","createAdder","direction","period","dur","tmp","isAdding","updateOffset","add","subtract","isString","isMomentInput","isNumberOrStringArray","isMomentInputObject","objectTest","propertyTest","properties","property","propertyLen","arrayTest","dataTypeTest","item","isCalendarSpec","getCalendarFormat","myMoment","calendar$1","time","formats","sod","clone","isAfter","localInput","isBefore","isBetween","inclusivity","localFrom","localTo","isSame","inputMs","isSameOrAfter","isSameOrBefore","asFloat","that","zoneDelta","monthDiff","wholeMonthDiff","anchor","anchor2","adjust","toString","toISOString","keepOffset","utc","inspect","zone","prefix","datetime","suffix","inputString","fromNow","toNow","newLocaleData","lang","MS_PER_SECOND","MS_PER_MINUTE","MS_PER_HOUR","MS_PER_400_YEARS","mod$1","dividend","divisor","localStartOfDate","utcStartOfDate","startOf","startOfDate","endOf","valueOf","unix","toDate","toArray","toObject","toJSON","isValid$2","parsingFlags","invalidAt","creationData","matchEraAbbr","matchEraName","matchEraNarrow","matchEraYearOrdinal","localeEras","eras","localeErasParse","eraName","abbr","narrow","localeErasConvertYear","dir","getEraName","getEraNarrow","getEraAbbr","getEraYear","erasNameRegex","computeErasParse","erasAbbrRegex","erasNarrowRegex","abbrPieces","namePieces","narrowPieces","erasName","erasAbbr","erasNarrow","addWeekYearFormatToken","getter","getSetWeekYear","getSetWeekYearHelper","getSetISOWeekYear","getISOWeeksInYear","getISOWeeksInISOWeekYear","getWeeksInYear","weekInfo","getWeeksInWeekYear","weeksTarget","setWeekAll","dayOfYearData","getSetQuarter","getSetDayOfMonth","getSetDayOfYear","getSetMinute","getSetSecond","getSetMillisecond","parseMs","getZoneAbbr","getZoneName","proto","createUnix","createInZone","preParsePostFormat","proto$1","get$1","index","field","setter","listMonthsImpl","out","listWeekdaysImpl","localeSorted","shift","listMonths","listMonthsShort","listWeekdays","listWeekdaysShort","listWeekdaysMin","mathAbs","abs","addSubtract$1","add$1","subtract$1","absCeil","bubble","monthsFromDays","monthsToDays","daysToMonths","as","makeAs","alias","asMilliseconds","asSeconds","asMinutes","asHours","asDays","asWeeks","asMonths","asQuarters","asYears","valueOf$1","clone$1","get$2","makeGetter","round","thresholds","substituteTimeAgo","relativeTime$1","posNegDuration","getSetRelativeTimeRounding","roundingFunction","getSetRelativeTimeThreshold","threshold","limit","humanize","argWithSuffix","argThresholds","withSuffix","th","abs$1","toISOString$1","total","totalSign","ymSign","daysSign","hmsSign","proto$2","require_mixpanel_cjs","__commonJSMin","exports","module","Config","win","loc","MAX_RECORDING_MS","ArrayProto","FuncProto","ObjProto","slice","toString","hasOwnProperty","windowConsole","navigator","document$1","windowOpera","screen","userAgent","nativeBind","nativeForEach","nativeIndexOf","nativeMap","nativeIsArray","breaker","_","str","console","arg","args","log_func_with_prefix","func","prefix","console_with_prefix","context","bound","ctor","self","result","obj","iterator","i","l","key","source","prop","f","iterable","arr","callback","results","item","value","target","found","needle","subclass","superclass","v","k","d","pad","n","p","ret","length","val","mixed_val","quote","string","escapable","meta","a","c","holder","gap","indent","mind","partial","at","ch","escapee","text","error","m","e","next","number","hex","uffff","white","word","array","object","data","b64","o1","o2","o3","h1","h2","h3","h4","bits","ac","enc","tmp_arr","utftext","start","end","stringl","c1","T","time","ticks","R","UA","ua","buffer","xor","byte_array","j","tmp","se","BLOCKED_UA_STRS","formdata","arg_separator","use_val","use_key","url","param","regexS","regex","name","nameEQ","ca","cookie","seconds","is_cross_subdomain","is_secure","is_cross_site","domain_override","cdomain","expires","secure","domain","extract_domain","date","days","new_cookie_val","_localStorageSupported","localStorageSupported","storage","forceCheck","supported","cheap_guid","force_check","msg","err","register_event","element","type","handler","oldSchool","useCapture","ontype","old_handler","makeHandler","new_handler","old_handlers","event","fixEvent","old_result","new_result","TOKEN_MATCH_REGEX","getAllChildren","bad_whitespace","hasClass","elem","selector","className","getElementsBySelector","tokens","token","tagName","foundCount","elements","currentContextIndex","currentContext","id","token_match","attrName","attrOperator","attrValue","checkFunction","query","CAMPAIGN_KEYWORDS","CLICK_IDS","default_value","kw","params","kwkey","idkey","referrer","search","keyword","user_agent","vendor","opera","browser","versionRegexs","matches","split","extra_props","maxlen","guid","SIMPLE_DOMAIN_MATCH_REGEX","DOMAIN_MATCH_REGEX","hostname","domain_regex","parts","tld","JSONStringify","JSONParse","DomTracker","mixpanel_instance","event_name","properties","user_callback","that","options","props","timeout","timeout_occured","LinkTracker","evt","FormTracker","logger$2","SharedLock","lockedCB","errorCB","pid","startTime","pollIntervalMS","timeoutMS","keyX","keyY","keyZ","reportError","delay","cb","loop","waitFor","predicate","getSetY","valY","criticalSection","logger$1","RequestQueue","storageKey","flushInterval","queueEntry","succeeded","storedQueue","batchSize","batch","idsInBatch","filterOutIDsAndInvalid","items","idSet","filteredItems","ids","removeFromStorage","updatePayloads","existingItems","itemsToUpdate","newItems","newPayload","storageEntry","queue","MAX_RETRY_INTERVAL_MS","logger","RequestBatcher","flushMS","currentBatchSize","dataForRequest","transformedItems","payload","addPayload","itemId","batchSendCallback","res","removeItemsFromQueue","retryMS","headers","retryAfter","halvedBatchSize","requestOptions","GDPR_DEFAULT_PERSISTENCE_PREFIX","optIn","_optInOut","optOut","hasOptedIn","_getStorageValue","hasOptedOut","_hasDoNotTrackFlagOn","optedOut","addOptOutCheckMixpanelLib","method","_addOptOutCheck","addOptOutCheckMixpanelPeople","addOptOutCheckMixpanelGroup","clearOptInOut","_getStorage","_getStorageKey","win$1","nav","hasDntOn","dntValue","optValue","getConfigValue","ignoreDnt","persistenceType","persistencePrefix","SET_ACTION","SET_ONCE_ACTION","UNSET_ACTION","ADD_ACTION","APPEND_ACTION","UNION_ACTION","REMOVE_ACTION","DELETE_ACTION","apiActions","to","$set","$unset","$set_once","list_name","values","$union","$append","$remove","MixpanelGroup","group_key","group_id","date_encoded_data","conf","MixpanelPeople","by","$add","amount","device_id","user_id","had_persisted_distinct_id","conf_var","action","action_method","queue_to_params_fn","_this","queued_data","action_params","response","_set_callback","_add_callback","_append_callback","_set_once_callback","_union_callback","_unset_callback","_remove_callback","$append_queue","$append_item","append_callback","$remove_queue","$remove_item","remove_callback","SET_QUEUE_KEY","SET_ONCE_QUEUE_KEY","UNSET_QUEUE_KEY","ADD_QUEUE_KEY","APPEND_QUEUE_KEY","REMOVE_QUEUE_KEY","UNION_QUEUE_KEY","PEOPLE_DISTINCT_ID_KEY","ALIAS_ID_KEY","EVENT_TIMERS_KEY","RESERVED_PROPERTIES","MixpanelPersistence","config","storage_type","entry","old_cookie","old_localstorage","disabled","cookie_domain","cross_site","cross_subdomain","q_key","q_data","set_q","set_once_q","unset_q","add_q","union_q","remove_q","append_q","enqueued_obj","append_obj","q","queued_action","default_val","timestamp","timers","init_type","mixpanel_master","INIT_MODULE","INIT_SNIPPET","IDENTITY_FUNC","x","NOOP_FUNC","PRIMARY_INSTANCE_NAME","PAYLOAD_TYPE_BASE64","PAYLOAD_TYPE_JSON","DEVICE_ID_PREFIX","USE_XHR","ENQUEUE_REQUESTS","sendBeacon","DEFAULT_API_ROUTES","DEFAULT_CONFIG","DOM_LOADED","MixpanelLib","create_mplib","instance","utm_params","initial_utm_params","has_utm","utm_value","utm_key","variable_features","api_host","batcher_config","flush_on_unload","ev","uuid","track_pageview_option","handleLoadedRecorder","scriptEl","replay_id","_utm_value","DomClass","dt","previous_tracked_url","tracked","nativePushState","state","unused","nativeReplaceState","current_url","should_track","callback_function","jsc","randomized_cb","callback_string","DEFAULT_OPTIONS","body_data","use_post","use_sendBeacon","verbose_mode","lib","img","req","headerValue","headerName","start_time","script","s","fn_name","alias_calls","other_calls","tracking_calls","execute","calls","caller","call","queue_prefix","api_routes","batcher_for","attrs","batcher_configs","batcher","events","encoded_data","truncated_data","endpoint","should_send_immediately","send_request_options","request_enqueued_or_initiated","send_request_immediately","transport","start_timestamp","duration_in_ms","marketing_properties","property_blacklist","blacklisted_prop","group_ids","old_values","old_value","idx","groups","tracking_props","map_key","group","default_page_properties","event_properties","REGISTER_DEFAULTS","options_for_register","days_or_options","property","new_distinct_id","previous_distinct_id","alias","original","name_tag","new_batch_size","prop_name","hook_name","property_name","is_localStorage_requested","instances","extend_mp","override_mp_init_func","add_dom_loaded_handler","dom_loaded_handler","inst","do_scroll_check","toplevel","init_as_module","mixpanel","require_compressor","__commonJSMin","exports","module","global","factory","ownKeys","object","enumerableOnly","keys","symbols","sym","_objectSpread2","target","i","source","key","_defineProperty","_classCallCheck","instance","Constructor","_defineProperties","props","descriptor","_toPropertyKey","_createClass","protoProps","staticProps","obj","value","_extends","_toPrimitive","input","hint","prim","res","arg","canvasToBlob","window","CanvasPrototype","hasBlobConstructor","hasArrayBufferViewSupport","BlobBuilder","dataURIPattern","dataURLtoBlob","dataURI","matches","mediaType","isBase64","dataString","byteString","arrayBuffer","intArray","bb","callback","type","quality","self","toBlob","isBlob","DEFAULTS","IS_BROWSER","WINDOW","isPositiveNumber","slice","toArray","REGEXP_IMAGE_TYPE","isImageType","imageTypeToExtension","extension","fromCharCode","getStringFromCharCode","dataView","start","length","str","btoa","arrayBufferToDataURL","mimeType","chunks","chunkSize","uint8","resetAndGetOrientation","orientation","littleEndian","app1Start","ifdStart","offset","exifIDCode","tiffOffset","endianness","firstIFDOffset","_length","_offset","parseOrientation","rotate","scaleX","scaleY","REGEXP_DECIMALS","normalizeDecimalNumber","times","getAdjustedSizes","_ref","aspectRatio","height","width","isValidWidth","isValidHeight","adjustedWidth","getExif","array","segments","next","end","segment","exifArray","current","insertExif","app0Length","newArrayBuffer","ArrayBuffer$1","FileReader","URL","REGEXP_EXTENSION","AnotherCompressor","Compressor","file","options","_this","isJPEGImage","checkOrientation","retainExif","reader","result","data","_this2","image","_ref2","_this3","naturalWidth","naturalHeight","_ref2$rotate","_ref2$scaleX","_ref2$scaleY","canvas","context","is90DegreesRotated","resizable","maxWidth","maxHeight","minWidth","minHeight","_ref3","_ref4","_ref5","_getAdjustedSizes","_getAdjustedSizes2","_getAdjustedSizes3","_getAdjustedSizes4","_getAdjustedSizes4$wi","_getAdjustedSizes4$he","destX","destY","destWidth","destHeight","params","srcX","srcY","srcWidth","srcHeight","_getAdjustedSizes5","_ref6","fillStyle","blob","done","_ref7","_ref8","date","err","BaseControlValueAccessor","_BaseControlValueAccessor","_renderer","_elementRef","_","key","value","fn","isDisabled","t","ɵɵdirectiveInject","Renderer2","ElementRef","ɵɵdefineDirective","BuiltInControlValueAccessor","_BuiltInControlValueAccessor","ɵBuiltInControlValueAccessor_BaseFactory","ɵɵgetInheritedFactory","ɵɵInheritDefinitionFeature","NG_VALUE_ACCESSOR","InjectionToken","DEFAULT_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","forwardRef","DefaultValueAccessor","_isAndroid","userAgent","getDOM","COMPOSITION_BUFFER_MODE","InjectionToken","_DefaultValueAccessor","BaseControlValueAccessor","renderer","elementRef","_compositionMode","value","normalizedValue","t","ɵɵdirectiveInject","Renderer2","ElementRef","ɵɵdefineDirective","rf","ctx","ɵɵlistener","$event","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","isEmptyInputValue","hasValidLength","NG_VALIDATORS","NG_ASYNC_VALIDATORS","EMAIL_REGEXP","Validators","min","minValidator","max","maxValidator","control","requiredValidator","requiredTrueValidator","emailValidator","minLength","minLengthValidator","maxLength","maxLengthValidator","pattern","patternValidator","nullValidator","validators","compose","composeAsync","regex","regexStr","isPresent","o","toObservable","isPromise","from","mergeErrors","arrayOfErrors","res","errors","__spreadValues","executeValidators","validator","isValidatorFn","normalizeValidators","c","presentValidators","composeValidators","observables","forkJoin","map","composeAsyncValidators","mergeValidators","controlValidators","dirValidator","getControlValidators","getControlAsyncValidators","makeValidatorsArray","hasValidator","addValidators","currentValidators","current","v","removeValidators","AbstractControlDirective","fn","errorCode","path","ControlContainer","NgControl","AbstractControlStatus","cd","ngControlStatusHost","ngGroupStatusHost","__spreadProps","NgControlStatus","_NgControlStatus","ɵɵclassProp","NgControlStatusGroup","_NgControlStatusGroup","VALID","INVALID","PENDING","DISABLED","ControlEvent","ValueChangeEvent","value","source","PristineChangeEvent","pristine","TouchedChangeEvent","touched","StatusChangeEvent","status","FormSubmittedEvent","FormResetEvent","pickValidators","validatorOrOpts","isOptionsObj","coerceToValidator","validator","composeValidators","pickAsyncValidators","asyncValidator","coerceToAsyncValidator","composeAsyncValidators","assertControlPresent","parent","isGroup","key","controls","RuntimeError","assertAllValuesPresent","control","_","AbstractControl","validators","asyncValidators","Subject","validatorFn","asyncValidatorFn","addValidators","removeValidators","hasValidator","opts","changed","sourceControl","__spreadProps","__spreadValues","skipPristineCheck","changeFn","shouldHaveEmitted","ctrl","emitEvent","obs","toObservable","errors","path","currPath","name","errorCode","x","changedControl","EventEmitter","newPristine","fn","onlySelf","parentDirty","FormGroup","options","controlName","acc","subtreeUpdated","updated","child","cb","condition","initValue","res","UntypedFormGroup","FormGroup","FormRecord","FormGroup","CALL_SET_DISABLED_STATE","InjectionToken","setDisabledStateDefault","controlPath","name","parent","setUpControl","control","dir","callSetDisabledState","setUpValidators","setUpViewChangePipeline","setUpModelChangePipeline","setUpBlurPipeline","setUpDisabledChangeHandler","cleanUpControl","validateControlPresenceOnChange","noop","cleanUpValidators","registerOnValidatorChange","validators","onChange","validator","onDisabledChange","isDisabled","getControlValidators","mergeValidators","asyncValidators","getControlAsyncValidators","onValidatorChange","isControlUpdated","updatedValidators","updatedAsyncValidators","asyncValidator","newValue","updateControl","emitModelEvent","setUpFormContainer","cleanUpFormContainer","isPropertyUpdated","changes","viewModel","change","isBuiltInAccessor","valueAccessor","BuiltInControlValueAccessor","syncPendingControls","form","directives","dir","control","selectValueAccessor","valueAccessors","defaultAccessor","builtinAccessor","customAccessor","v","DefaultValueAccessor","removeListItem$1","list","el","index","formDirectiveProvider$1","ControlContainer","forwardRef","NgForm","resolvedPromise$1","_NgForm","validators","asyncValidators","callSetDisabledState","EventEmitter","FormGroup","composeValidators","composeAsyncValidators","dir","container","setUpControl","group","setUpFormContainer","value","$event","syncPendingControls","path","t","ɵɵdirectiveInject","NG_VALIDATORS","NG_ASYNC_VALIDATORS","CALL_SET_DISABLED_STATE","ɵɵdefineDirective","rf","ctx","ɵɵlistener","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","removeListItem","list","el","index","isFormControlState","formState","FormControl","AbstractControl","validatorOrOpts","asyncValidator","pickValidators","pickAsyncValidators","isOptionsObj","options","changeFn","condition","fn","cb","UntypedFormControl","isFormControl","control","AbstractFormGroupDirective","_AbstractFormGroupDirective","controlPath","ɵAbstractFormGroupDirective_BaseFactory","ɵɵgetInheritedFactory","formControlBinding$1","NgControl","forwardRef","NgModel","resolvedPromise","_NgModel","parent","validators","asyncValidators","valueAccessors","_changeDetectorRef","callSetDisabledState","FormControl","EventEmitter","selectValueAccessor","changes","oldName","isPropertyUpdated","newValue","setUpControl","value","disabledValue","isDisabled","booleanAttribute","controlName","controlPath","t","ɵɵdirectiveInject","ControlContainer","NG_VALIDATORS","NG_ASYNC_VALIDATORS","NG_VALUE_ACCESSOR","ChangeDetectorRef","CALL_SET_DISABLED_STATE","ɵɵdefineDirective","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","ɵɵNgOnChangesFeature","ɵNgNoValidate","_ɵNgNoValidate","NUMBER_VALUE_ACCESSOR","NumberValueAccessor","_NumberValueAccessor","BuiltInControlValueAccessor","normalizedValue","fn","ɵNumberValueAccessor_BaseFactory","ɵɵgetInheritedFactory","rf","ctx","ɵɵlistener","$event","NG_MODEL_WITH_FORM_CONTROL_WARNING","InjectionToken","formControlBinding","NgControl","forwardRef","FormControlDirective","_FormControlDirective","isDisabled","validators","asyncValidators","valueAccessors","_ngModelWarningConfig","callSetDisabledState","EventEmitter","selectValueAccessor","changes","previousForm","cleanUpControl","setUpControl","isPropertyUpdated","newValue","t","ɵɵdirectiveInject","NG_VALIDATORS","NG_ASYNC_VALIDATORS","NG_VALUE_ACCESSOR","CALL_SET_DISABLED_STATE","ɵɵdefineDirective","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","ɵɵNgOnChangesFeature","formDirectiveProvider","ControlContainer","FormGroupDirective","_FormGroupDirective","cleanUpValidators","dir","ctrl","removeListItem$1","value","$event","syncPendingControls","FormSubmittedEvent","FormResetEvent","oldCtrl","newCtrl","isFormControl","setUpFormContainer","cleanUpFormContainer","setUpValidators","rf","ctx","ɵɵlistener","formGroupNameProvider","FormGroupName","_FormGroupName","AbstractFormGroupDirective","parent","_hasInvalidParent","formArrayNameProvider","FormArrayName","_FormArrayName","controlPath","controlNameBinding","FormControlName","_FormControlName","toInteger","value","toFloat","AbstractValidatorDirective","_AbstractValidatorDirective","nullValidator","changes","input","control","fn","t","ɵɵdefineDirective","ɵɵNgOnChangesFeature","MAX_VALIDATOR","NG_VALIDATORS","forwardRef","MaxValidator","_MaxValidator","max","maxValidator","ɵMaxValidator_BaseFactory","ɵɵgetInheritedFactory","rf","ctx","ɵɵattribute","ɵɵProvidersFeature","ɵɵInheritDefinitionFeature","MIN_VALIDATOR","MinValidator","_MinValidator","min","minValidator","ɵMinValidator_BaseFactory","REQUIRED_VALIDATOR","RequiredValidator","CHECKBOX_REQUIRED_VALIDATOR","CheckboxRequiredValidator","_RequiredValidator","booleanAttribute","requiredValidator","ɵRequiredValidator_BaseFactory","_CheckboxRequiredValidator","requiredTrueValidator","ɵCheckboxRequiredValidator_BaseFactory","EMAIL_VALIDATOR","EmailValidator","_EmailValidator","emailValidator","ɵEmailValidator_BaseFactory","MIN_LENGTH_VALIDATOR","MinLengthValidator","_MinLengthValidator","minlength","minLengthValidator","ɵMinLengthValidator_BaseFactory","MAX_LENGTH_VALIDATOR","MaxLengthValidator","_MaxLengthValidator","maxlength","maxLengthValidator","ɵMaxLengthValidator_BaseFactory","PATTERN_VALIDATOR","PatternValidator","_PatternValidator","patternValidator","ɵPatternValidator_BaseFactory","ɵInternalFormsSharedModule","_ɵInternalFormsSharedModule","t","ɵɵdefineNgModule","ɵɵdefineInjector","FormArray","AbstractControl","controls","validatorOrOpts","asyncValidator","pickValidators","pickAsyncValidators","index","control","options","adjustedIndex","value","assertAllValuesPresent","newValue","assertControlPresent","subtreeUpdated","updated","child","cb","condition","name","isAbstractControlOptions","options","FormBuilder","_FormBuilder","nnfb","controls","reducedControls","newOptions","FormGroup","FormRecord","formState","validatorOrOpts","asyncValidator","FormControl","__spreadProps","__spreadValues","createdControls","c","FormArray","controlName","AbstractControl","value","validator","t","ɵɵdefineInjectable","NonNullableFormBuilder","_NonNullableFormBuilder","inject","UntypedFormBuilder","_UntypedFormBuilder","controlsConfig","ɵUntypedFormBuilder_BaseFactory","ɵɵgetInheritedFactory","FormsModule","_FormsModule","opts","CALL_SET_DISABLED_STATE","setDisabledStateDefault","t","ɵɵdefineNgModule","ɵɵdefineInjector","ɵInternalFormsSharedModule","ReactiveFormsModule","_ReactiveFormsModule","NG_MODEL_WITH_FORM_CONTROL_WARNING","ObjectUtils","_ObjectUtils","value","empty","obj1","obj2","field","arrA","arrB","i","length","key","dateA","dateB","regexpA","regexpB","keys","data","fields","len","obj","from","to","target","item","index","arr","sourceArr","injected","list","val","str","input","value1","value2","locale","order","result","emptyValue1","emptyValue2","nullSortOrder","finalSortOrder","__spreadValues","char","params","callback","a","b","lastId","UniqueComponentId","prefix","ZIndexUtils","zIndexes","generateZIndex","baseZIndex","lastZIndex","newZIndex","revertZIndex","zIndex","getCurrentZIndex","getZIndex","el","zindexutils","_c0","FilterMatchMode","FilterOperator","FilterService","value","fields","filterValue","filterMatchMode","filterLocale","filteredItems","item","field","fieldValue","ObjectUtils","filter","stringValue","valueCopy","rule","fn","ɵɵdefineInjectable","OverlayService","Subject","event","ɵɵdefineInjectable","PrimeNGConfig","signal","FilterMatchMode","Subject","key","value","__spreadValues","ɵɵdefineInjectable","Header","ɵɵdefineComponent","ɵɵStandaloneFeature","_c0","rf","ctx","ɵɵprojectionDef","ɵɵprojection","Footer","PrimeTemplate","template","ɵɵdirectiveInject","TemplateRef","ɵɵdefineDirective","SharedModule","ɵɵdefineNgModule","ɵɵdefineInjector","TranslationKeys","InputText","el","ngModel","cd","config","ɵɵdirectiveInject","ElementRef","NgModel","ChangeDetectorRef","PrimeNGConfig","ɵɵdefineDirective","rf","ctx","ɵɵlistener","$event","ɵɵclassProp","InputTextModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","FeatureFlags","toString","ff","HelloSignTemplates","DistributionsGP","DocumentsManagement","MultiUserAccount","TransactionsLP","EmailWhitelabeling","Fund","Insights","AiRanking","CreBanking","parse","str","isOn","featuresList","valueToCheck","FeatureFlags_enum_default","SectionsAccess","toString","sectionsAccess","All","None","Funds","Assets","Insights","Contacts","Positions","BankAccounts","listAll","withNone","parse","sf","isOn","valueToCheck","convertToListString","filter","f","map","convertToFlags","includes","reduce","sum","current","sectionsAccess_enum_default","charToInteger","integerToChar","char","i","decode","string","result","shift","value","integer","hasContinuationBit","shouldNegate","TOKEN_LOGGER_CONFIG","NGXLoggerConfigEngine","config","partialConfig","configParamKey","object","cloneConfig","key","TOKEN_LOGGER_CONFIG_ENGINE_FACTORY","NGXLoggerConfigEngineFactory","TOKEN_LOGGER_MAPPER_SERVICE","NGXLoggerMapperService","httpBackend","metadata","stackLine","of","logPosition","sourceMapLocation","error","defaultProxy","positionStartIndex","positionEndIndex","dataArray","locationStartIndex","locationEndIndex","file","mapFullPath","sourceMap","position","sourceFileIndex","sourceCodeLine","sourceCodeColumn","lines","lineIndex","generatedCodeColumn","columns","columnIndex","decodedSection","decode","distPosition","req","HttpRequest","distPositionKey","filter","e","HttpResponse","map","httpResponse","retry","shareReplay","logPosition$","catchError","t","ɵɵinject","HttpBackend","ɵɵdefineInjectable","TOKEN_LOGGER_METADATA_SERVICE","NGXLoggerMetadataService","datePipe","defaultTimestamp","level","message","additional","DatePipe","TOKEN_LOGGER_RULES_SERVICE","NGXLoggerRulesService","level","config","message","additional","t","ɵɵdefineInjectable","TOKEN_LOGGER_SERVER_SERVICE","NGXLoggerServerService","httpBackend","ngZone","BehaviorSubject","err","next","idx","httpRequest","url","logContent","options","of","defaultRequest","HttpRequest","finalRequest","alteredRequest","isObservable","concatMap","req","filter","e","HttpResponse","map","httpResponse","metadata","requestBody","secureMetadata","pMetadata","securedMetadata","__spreadValues","m","headers","HttpHeaders","logOnServerAction","HttpParams","catchError","throwError","addLogToQueueAction","timer","_","fq","take","ɵɵinject","HttpBackend","NgZone","TOKEN_LOGGER_WRITER_SERVICE","NgxLoggerLevel","DEFAULT_COLOR_SCHEME","NGXLoggerWriterService","platformId","isPlatformBrowser","metaString","prepareMetaStringFunc","metaItem","configColorScheme","color","PLATFORM_ID","NGXLogger","configEngineFactory","metadataService","ruleService","mapperService","writerService","serverService","params","withCredentials","monitor","partialConfig","shouldCallWriter","shouldCallServer","shouldCallMonitor","logPosition","TOKEN_LOGGER_CONFIG","TOKEN_LOGGER_CONFIG_ENGINE_FACTORY","TOKEN_LOGGER_METADATA_SERVICE","TOKEN_LOGGER_MAPPER_SERVICE","CustomNGXLoggerService","logger","logMonitor","LoggerModule","customProvider","NGXLoggerConfigEngineFactory","NGXLoggerMetadataService","NGXLoggerMapperService","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","SubdomainEnum","AppSettingsService","mixpanelToken","subDomain","GP","document","domain","location","port","LP","subDomainSegment","getSanitizedSubDomain","subDomainMap","isAutomationEnv","host","split","toLowerCase","isTestingEnv","isGpDomain","isLpDomain","replace","constructor","appSettignsLoaded","authUrl","resourceUrl","debugTelemetry","telemetryUrl","insightsUrl","rankingUrl","blobStorageUrlCDN","localEnv","production","maintenance","mockData","helloSignClientId","helloSignSkipDomainVerification","contactsExampleFile","googleAnalyticsTrackingCode","googleTagManager","fileStackApiKey","payAppFrontEnvironmentAppBaseUrl","gpFrontEnvironmentAppBaseUrl","lpFrontEnvironmentAppBaseUrl","cookieDomainNamespace","userFlowToken","lpReferrerCookieKey","gpReferrerCookieKey","VGSVault","VGSEnvironment","verifyInvestorToken","recaptchaPublicKey","plaidEnvironment","isAutomation","isTesting","ngxLogging","level","NgxLoggerLevel","DEBUG","serverLogLevel","ERROR","factory","ɵfac","_AppSettingsService","HoldingDiscriminator","toString","discriminator","inSentence","text","Asset","Fund","toLowerCase","parse","str","HoldingDiscriminator_enum_default","getRandomValues","rnds8","rng","byteToHex","i","unsafeStringify","arr","offset","randomUUID","native_default","v4","options","buf","offset","native_default","rnds","rng","unsafeStringify","v4_default","import_fast_deep_equal","HoldingType","toString","holdingType","Office","Residential","Industrial","SingleFamily","MultiFamily","Retail","Other","Condominium","Development","Hotel","ManufacturedHomeCommunity","RVPark","SelfStorage","listAll","parse","holdingTypeStr","HoldingType_enum_default","MetaFileLink","MediaType","isImage","document","mediaType","split","isVideo","isAudio","isPdf","toLowerCase","indexOf","isTextDocument","acceptedTypes","testedType","includes","isSpreadsheet","isPresentation","GetMediaType","Image","Video","Audio","Pdf","TextDocument","Spreadsheet","Presentation","Unknown","metaFileLink_model_default","MergeUnitClientBankAccountType","toString","accountType","None","ExternalAccount","CovercyAccount","listAll","parse","MergeUnitClientBankAccountType_enum_default","UnitAddress","LocationDetailsResponse","DomHandler","element","className","styles","i","classNames","cNames","child","selector","children","num","attributeName","overlay","target","appendTo","calculateMinWidth","gutter","getClosestRelativeElement","el","elementDimensions","targetHeight","targetOffset","windowScrollTop","windowScrollLeft","viewport","relativeElementOffset","top","left","horizontalOverflow","targetLeftOffsetInSpaceOfRelativeElement","elementOuterHeight","elementOuterWidth","targetOuterHeight","targetOuterWidth","parents","scrollableParents","overflowRegex","overflowCheck","node","styleDeclaration","parent","scrollSelectors","selectors","elementHeight","elementWidth","dimensions","container","item","borderTopValue","borderTop","paddingTopValue","paddingTop","containerRect","offset","scroll","itemHeight","duration","last","opacity","tick","ms","interval","gap","fading","doc","p","f","s","margin","width","style","height","win","d","e","g","w","h","rect","replacementElement","parentNode","ua","msie","trident","rv","edge","obj","scrollDiv","scrollbarWidth","scrollbarHeight","methodName","args","matched","match","value","options","focusableElements","visibleFocusableElements","focusableElement","computedStyle","reverse","index","focusedIndex","type","name","attributes","attribute","computedStyles","rule","cv","v","_cv","_k","_v","c","key","matchedEvent","ConnectedOverlayScrollHandler","listener","AutoFocus","inject","PLATFORM_ID","DOCUMENT","ElementRef","isPlatformBrowser","focusableElements","DomHandler","ɵɵdefineDirective","booleanAttribute","ɵɵInputTransformsFeature","AutoFocusModule","ɵɵdefineNgModule","ɵɵdefineInjector","_c0","BaseIcon","isLabelEmpty","ObjectUtils","ɵɵdefineComponent","booleanAttribute","ɵɵInputTransformsFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵprojectionDef","ɵɵprojection","SpinnerIcon","BaseIcon","UniqueComponentId","ɵSpinnerIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","Ripple","document","platformId","renderer","el","zone","config","isPlatformBrowser","event","ink","DomHandler","d","offset","x","y","children","i","ɵɵdirectiveInject","DOCUMENT","PLATFORM_ID","Renderer2","ElementRef","NgZone","PrimeNGConfig","ɵɵdefineDirective","RippleModule","ɵɵdefineNgModule","ɵɵdefineInjector","_c0","_c1","a0","Button_ng_container_2_Template","rf","ctx","ɵɵelementContainer","Button_ng_container_3_ng_container_1_span_1_Template","ɵɵelement","ctx_r0","ɵɵnextContext","ɵɵproperty","ɵɵattribute","Button_ng_container_3_ng_container_1_SpinnerIcon_2_Template","Button_ng_container_3_ng_container_1_Template","ɵɵelementContainerStart","ɵɵtemplate","ɵɵelementContainerEnd","ɵɵadvance","Button_ng_container_3_2_ng_template_0_Template","Button_ng_container_3_2_Template","Button_ng_container_3_Template","ɵɵpureFunction1","Button_ng_container_4_span_1_Template","Button_ng_container_4_2_ng_template_0_Template","Button_ng_container_4_2_Template","Button_ng_container_4_Template","Button_span_5_Template","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtextInterpolate","Button_span_6_Template","ɵɵclassMap","INTERNAL_BUTTON_CLASSES","ButtonDirective","val","el","document","DomHandler","styleClass","ObjectUtils","labelElement","iconElement","iconPosClass","iconClass","ɵɵdirectiveInject","ElementRef","DOCUMENT","ɵɵdefineDirective","booleanAttribute","ɵɵInputTransformsFeature","Button","EventEmitter","value","acc","key","iconClasses","item","ɵɵdefineComponent","dirIndex","ɵɵcontentQuery","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵclassProp","numberAttribute","ɵɵStandaloneFeature","ɵɵprojectionDef","ɵɵlistener","$event","ɵɵprojection","NgIf","NgTemplateOutlet","NgStyle","NgClass","Ripple","AutoFocus","SpinnerIcon","ButtonModule","ɵɵdefineNgModule","ɵɵdefineInjector","SharedModule","AnimationMetadataType","AUTO_STYLE","trigger","name","definitions","animate","timings","styles","group","steps","options","sequence","style","tokens","state","keyframes","transition","stateChangeExpr","animation","animateChild","useAnimation","query","selector","NoopAnimationPlayer","duration","delay","fn","position","phaseName","methods","AnimationGroupPlayer","_players","doneCount","destroyCount","startCount","total","player","time","p","timeAtPosition","longestPlayer","longestSoFar","ɵPRE_STYLE","_c0","_c1","_c2","_c3","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","a10","a11","a12","a13","_c4","_c5","_c6","_c7","Overlay_div_0_div_2_ng_container_3_Template","rf","ctx","ɵɵelementContainer","Overlay_div_0_div_2_Template","_r3","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","$event","ɵɵrestoreView","ctx_r1","ɵɵnextContext","ɵɵresetView","ɵɵprojection","ɵɵtemplate","ɵɵelementEnd","ɵɵclassMap","ɵɵproperty","ɵɵpureFunction1","ɵɵpureFunction3","ɵɵadvance","Overlay_div_0_Template","_r1","ɵɵpureFunctionV","OVERLAY_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","forwardRef","Overlay","showOverlayContentAnimation","animation","style","animate","hideOverlayContentAnimation","value","ObjectUtils","val","EventEmitter","isPlatformBrowser","__spreadValues","DomHandler","document","platformId","el","renderer","config","overlayService","cd","zone","item","overlay","isFocus","visible","event","zindexutils","container","name","params","ConnectedOverlayScrollHandler","isOutsideClicked","ɵɵdirectiveInject","DOCUMENT","PLATFORM_ID","ElementRef","Renderer2","PrimeNGConfig","OverlayService","ChangeDetectorRef","NgZone","ɵɵdefineComponent","dirIndex","ɵɵcontentQuery","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵviewQuery","ɵɵProvidersFeature","ɵɵprojectionDef","NgClass","NgIf","NgTemplateOutlet","NgStyle","trigger","transition","useAnimation","OverlayModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","SharedModule","_c0","_c1","_c2","_c3","a0","a1","a2","_c4","_c5","_c6","_c7","_c8","_c9","_c10","Scroller_ng_container_0_ng_container_3_ng_container_1_Template","rf","ctx","ɵɵelementContainer","Scroller_ng_container_0_ng_container_3_Template","ɵɵelementContainerStart","ɵɵtemplate","ɵɵelementContainerEnd","ctx_r1","ɵɵnextContext","ɵɵadvance","ɵɵproperty","ɵɵpureFunction2","Scroller_ng_container_0_ng_template_4_ng_container_2_ng_container_1_Template","Scroller_ng_container_0_ng_template_4_ng_container_2_Template","item_r3","index_r4","Scroller_ng_container_0_ng_template_4_Template","ɵɵelementStart","ɵɵelementEnd","ɵɵpureFunction1","ɵɵattribute","Scroller_ng_container_0_div_6_Template","ɵɵelement","Scroller_ng_container_0_div_7_ng_container_1_ng_container_1_ng_container_1_Template","Scroller_ng_container_0_div_7_ng_container_1_ng_container_1_Template","index_r5","Scroller_ng_container_0_div_7_ng_container_1_Template","Scroller_ng_container_0_div_7_ng_template_2_ng_container_0_ng_container_1_Template","Scroller_ng_container_0_div_7_ng_template_2_ng_container_0_Template","ɵɵpureFunction0","Scroller_ng_container_0_div_7_ng_template_2_ng_template_1_Template","Scroller_ng_container_0_div_7_ng_template_2_Template","ɵɵtemplateRefExtractor","buildInLoaderIcon_r6","ɵɵreference","Scroller_ng_container_0_div_7_Template","buildInLoader_r7","Scroller_ng_container_0_Template","_r1","ɵɵgetCurrentView","ɵɵlistener","$event","ɵɵrestoreView","ɵɵresetView","buildInContent_r8","ɵɵclassMap","ɵɵpureFunction3","Scroller_ng_template_1_ng_container_1_ng_container_1_Template","Scroller_ng_template_1_ng_container_1_Template","Scroller_ng_template_1_Template","ɵɵprojection","Scroller","val","k","v","EventEmitter","item","document","platformId","renderer","cd","zone","simpleChanges","isLoadingChanged","previousValue","currentValue","isPlatformBrowser","DomHandler","el","first","options","index","behavior","i","scrollTop","scrollLeft","numToleratedItems","contentPos","itemSize","calculateFirst","_index","_numT","calculateCoord","_first","_size","_cpos","scrollTo","left","top","newFirst","isRangeChanged","isScrollChanged","to","viewport","isToStart","isToEnd","pos","calculateFirstInViewport","_pos","firstInViewport","lastInViewport","scrollPos","contentWidth","contentHeight","calculateNumItemsInViewport","_contentSize","_itemSize","calculateNumToleratedItems","_numItems","numItemsInViewport","calculateLast","_num","_isCols","last","width","height","isCols","style","right","bottom","parentElement","setProp","_name","_value","_count","__spreadProps","__spreadValues","numItems","calculateTranslateVal","setTransform","_x","_y","translateVal","event","target","calculateScrollPos","calculateCurrentIndex","calculateTriggerIndex","_currentIndex","_last","_isScrollDownOrRight","_triggerIndex","lastValue","newLast","newScrollPos","isScrollDown","isScrollRight","currentIndex","triggerIndex","isScrollDownOrRight","newState","lazyLoadState","isDiffWidth","isDiffHeight","name","params","renderedIndex","count","extOptions","ɵɵdirectiveInject","DOCUMENT","PLATFORM_ID","Renderer2","ChangeDetectorRef","NgZone","ɵɵdefineComponent","dirIndex","ɵɵcontentQuery","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵviewQuery","ɵɵNgOnChangesFeature","ɵɵprojectionDef","disabledContainer_r9","NgClass","NgForOf","NgIf","NgTemplateOutlet","NgStyle","SpinnerIcon","ScrollerModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","SharedModule","TimesCircleIcon","BaseIcon","UniqueComponentId","ɵTimesCircleIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","TimesIcon","BaseIcon","ɵTimesIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ChevronDownIcon","BaseIcon","ɵChevronDownIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","_c0","_c1","_c2","_c3","_c4","_c5","_c6","_c7","_c8","a0","_c9","_c10","_c11","a1","_c12","_c13","_c14","a2","_c15","AutoComplete_input_2_Template","rf","ctx","_r2","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","$event","ɵɵrestoreView","ctx_r2","ɵɵnextContext","ɵɵresetView","ɵɵelementEnd","tmp_24_0","ɵɵclassMap","ɵɵproperty","ɵɵattribute","AutoComplete_ng_container_3_TimesIcon_1_Template","_r4","AutoComplete_ng_container_3_span_2_1_ng_template_0_Template","AutoComplete_ng_container_3_span_2_1_Template","ɵɵtemplate","AutoComplete_ng_container_3_span_2_Template","_r5","ɵɵadvance","AutoComplete_ng_container_3_Template","ɵɵelementContainerStart","ɵɵelementContainerEnd","AutoComplete_ul_4_li_2_ng_container_2_Template","ɵɵelementContainer","AutoComplete_ul_4_li_2_span_3_Template","ɵɵtext","option_r8","ɵɵtextInterpolate","AutoComplete_ul_4_li_2_TimesCircleIcon_5_Template","ɵɵelement","AutoComplete_ul_4_li_2_span_6_1_ng_template_0_Template","AutoComplete_ul_4_li_2_span_6_1_Template","AutoComplete_ul_4_li_2_span_6_Template","AutoComplete_ul_4_li_2_Template","_r7","i_r9","ɵɵpureFunction1","AutoComplete_ul_4_Template","_r6","tmp_29_0","AutoComplete_ng_container_5_SpinnerIcon_1_Template","AutoComplete_ng_container_5_span_2_1_ng_template_0_Template","AutoComplete_ng_container_5_span_2_1_Template","AutoComplete_ng_container_5_span_2_Template","AutoComplete_ng_container_5_Template","AutoComplete_button_6_span_2_Template","AutoComplete_button_6_ng_container_3_ChevronDownIcon_1_Template","AutoComplete_button_6_ng_container_3_2_ng_template_0_Template","AutoComplete_button_6_ng_container_3_2_Template","AutoComplete_button_6_ng_container_3_Template","AutoComplete_button_6_Template","_r10","AutoComplete_ng_container_10_Template","AutoComplete_p_scroller_11_ng_template_2_ng_container_0_Template","AutoComplete_p_scroller_11_ng_template_2_Template","items_r12","scrollerOptions_r13","buildInItems_r14","ɵɵreference","ɵɵpureFunction2","AutoComplete_p_scroller_11_ng_container_3_ng_template_1_ng_container_0_Template","AutoComplete_p_scroller_11_ng_container_3_ng_template_1_Template","scrollerOptions_r15","AutoComplete_p_scroller_11_ng_container_3_Template","AutoComplete_p_scroller_11_Template","_r11","ɵɵstyleMap","AutoComplete_ng_container_12_ng_container_1_Template","AutoComplete_ng_container_12_Template","ɵɵpureFunction0","AutoComplete_ng_template_13_ng_template_2_ng_container_0_span_2_Template","option_r16","AutoComplete_ng_template_13_ng_template_2_ng_container_0_ng_container_3_Template","AutoComplete_ng_template_13_ng_template_2_ng_container_0_Template","ctx_r16","i_r18","scrollerOptions_r19","AutoComplete_ng_template_13_ng_template_2_ng_container_1_span_2_Template","AutoComplete_ng_template_13_ng_template_2_ng_container_1_ng_container_3_Template","AutoComplete_ng_template_13_ng_template_2_ng_container_1_Template","_r20","ɵɵpureFunction3","AutoComplete_ng_template_13_ng_template_2_Template","AutoComplete_ng_template_13_li_3_ng_container_1_Template","ɵɵtextInterpolate1","AutoComplete_ng_template_13_li_3_ng_container_2_Template","AutoComplete_ng_template_13_li_3_Template","AutoComplete_ng_template_13_Template","items_r21","AutoComplete_ng_container_15_Template","AUTOCOMPLETE_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","forwardRef","AutoComplete","value","val","EventEmitter","signal","computed","modelValue","selectedOption","label","__spreadValues","ObjectUtils","option","TranslationKeys","document","el","renderer","cd","config","overlayService","zone","effect","UniqueComponentId","item","focusedOptionIndex","options","result","index","optionGroupChildren","o","selectedIndex","matchedOptionIndex","model","event","DomHandler","query","valid","matchedValue","optionIndex","target","currentTarget","len","removedValue","newValue","isHide","source","removedOption","_","i","id","element","isFocus","_hide","scrollerOptions","optionGroup","selected","fn","selectedListItem","ɵɵdirectiveInject","DOCUMENT","ElementRef","Renderer2","ChangeDetectorRef","PrimeNGConfig","OverlayService","NgZone","ɵɵdefineComponent","dirIndex","ɵɵcontentQuery","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵviewQuery","ɵɵclassProp","numberAttribute","booleanAttribute","ɵɵProvidersFeature","ɵɵInputTransformsFeature","_r1","ɵɵtwoWayListener","ɵɵtwoWayBindingSet","ɵɵtemplateRefExtractor","ɵɵtwoWayProperty","NgClass","NgForOf","NgIf","NgTemplateOutlet","NgStyle","Overlay","ButtonDirective","Ripple","Scroller","AutoFocus","TimesCircleIcon","SpinnerIcon","TimesIcon","ChevronDownIcon","AutoCompleteModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","OverlayModule","InputTextModule","ButtonModule","SharedModule","RippleModule","ScrollerModule","AutoFocusModule","import_moment","TerraUtils","monthNumberToMonthName","monthNumber","consts","months","length","formattedAmountValidator","control","pattern","value","test","valid","groupBy","arr","key","reduce","res","current","__spreadProps","__spreadValues","scrollToTop","window","scroll","scrollToElement","el","isSmooth","options","behavior","scrollIntoView","scrollToElementById","elementId","document","getElementById","forceUtc","nonUtCDate","dateToForce","toDateString","moment","utc","toDate","forceUtcWithHours","hours","min","sec","forceUtcToLocal","utCDate","Date","format","addCommas","numberWithoutCommas","toString","intDec","split","formattedInteger","replace","removeCommas","numberWithCommas","join","replaceText","text","keyValues","Object","entries","forEach","rgx","RegExp","setErrorsOnAllFormControls","formGroup","keys","controls","field","get","markAsTouched","onlySelf","levenshtein_distance","s","t","Math","substr","makeid","result","characters","charactersLength","counter","charAt","floor","random","uuidv4","v4","appendExternalScript","url","Promise","resolve","reject","script","createElement","type","src","readyState","onreadystatechange","name","loaded","status","onload","onerror","error","getElementsByTagName","appendChild","arraysEqual","_arr1","_arr2","sortBeforeCheck","Array","isArray","arr1","concat","arr2","sort","i","isEmpty","obj","hasOwnProperty","isSameYear","periodStart","periodEnd","getFullYear","daysBetween","date1","date2","utc1","startOf","utc2","abs","diff","compareDateWithNull","momentDate1","momentDate2","isBefore","isAfter","getPeriodText","datePipe","periodStartMonth","getMonth","getDate","qStartMonths","qEndDate","findIndex","x","quarter","transform","getQuarterNumber","getCurrentQuarterNumber","year","getCurrentQuarterBoundaries","currentQuarter","getStartAndEndDates","getPreviousQuarterBoundaries","previousQuarter","setHoursTo12","response","getYearsList","currentYear","shouldAddNextYear","from","isMobileDevice","screen","availWidth","navigator","userAgent","indexOf","isAudioOrVideoSupportedForPreview","file","mediaType","element","MediaType","Video","Audio","canPlayType","metaFileLink","dirtyCheck","source","valueChanges","combineLatest","pipe","map","a","b","isEqual","shareReplay","bufferSize","refCount","validateAllFormFields","values","updateValueAndValidity","buildRegexForTestWordsAnyOrder","keywordsString","startWithBeginningOfWords","filter","searchKeywordsInAnyOrder","searchTerm","getContactFullName","contact","fullName","firstName","middleName","lastName","trim","randomInteger","max","randomRgbColor","r","g","randomHexColor","hr","padStart","hg","hb","convertUnitBankAccountToMergeUnitClient","ba","id","accountType","MergeUnitClientBankAccountType","CovercyAccount","accountNumber","accountNickname","iso","preferredCurrency","unitBalance","balance","getUnitFullName","unitFullName","first","last","populateUnitAddress","addressForm","allStates","allCountries","address","UnitAddress","street","streetName","street2","street2Name","city","cityName","state","stateName","find","abbreviation","postalCode","country","countryId","c","code","unitAddressToLocationObj","unitAddress","LocationDetailsResponse","_TerraUtils","averageClientAge","subtract","dueDateMinNumOfDays","countryCode","IL","GB","US","CA","AU","ZA","IN","BE","FR","DE","IT","NL","RO","ES","CH","AT","CY","BG","HR","DK","EE","FI","GR","HU","IS","IE","LV","LI","LT","LU","MT","MC","NO","PL","PT","SM","SK","SI","SE","CZ","TR","GE","AE","UA","paths","ROOT","DASHBOARD","ONBOARDING","LOGOUT","MAINTENANCE","FORGOT_PASSWORD","ASSETS","FUNDS","TWO_FACTOR_VERIFICATION","EMAIL_VERIFICATION","NOT_FOUND","SUPPORT","EMAIL_CONFIRM","MANAGE_USERS","messages","GENERAL_SUBMIT_ERROR","GENERAL_SUBMIT_ERROR_WITH_LINK","GENERAL_FRONTEND_ERROR","GENERAL_RESOURCE_NOT_ALLOWED","validators","MEMO_MAX_LENGTH","PHONE_MAX_LENGTH","CITY_LENGTH","STREET_LENGTH","HOUSE_NUMBER_LENGTH","ZIP_LENGTH","STATE_LENGTH","FIRSTNAME_LENGTH","LASTNAME_LENGTH","SHORT_TEXT_LENGTH","GENERAL_TEXT_LENGTH","GENERAL_LONG_STRING_MAX_LENGTH","POSTAL_CODE_PATTERN","FORBIDDEN_CHARACTERS_IN_NAME","chars","create","prototype","originalArray","char","defineProperty","separator","call","DISPLAY_TABLE_PER_PAGE","EXTERNAL_SCRIPTS","ConfettiParticle","supportedFileExtensions","LOGO","CONTACTS_IMPORT","CREATE_DISTRIBUTION_IMPORT","CREATE_CONTRIBUTION_IMPORT","BANK_ACCOUNT_IMPORT","GpPageTitleSuffix","LpPageTitleSuffix","DATE_ONLY","LONG_DATE_AND_TIME","APP_DATE_FORMATS","parse","dateInput","month","day","display","monthYearLabel","EXAMPLE_ASSET_ID","allowedDataPointsListFor","lotSizeArea","HoldingType","SingleFamily","MultiFamily","Condominium","Office","Industrial","Residential","Retail","Development","Hotel","SelfStorage","Other","stories","residentialUnits","retailUnits","rooms","grossBuildingArea","residentialNetSellableArea","retailNetSellableArea","numberOfSites","ManufacturedHomeCommunity","RVPark","BULK_OFFERING_DECK_QUEUE_THRESHOLD","OAUTH_LOCAL_STORAGE_KEY","PLAID_OAUTH_REDIRECT_QUERY_PARAM_NAME","isNullOrUndefined","getArrayDifferentById","i1","i3","i2","includes","getArrayCommonById","getArrayIncludeAllById","every","getArrayIncludeSomeById","some","AutoComplete","prototype","onInputBlur","event","highlightOption","cd","detectChanges","focused","onModelTouched","onBlur","emit","Portal","host","ComponentPortal","component","viewContainerRef","injector","componentFactoryResolver","projectableNodes","TemplatePortal","templateRef","context","DomPortal","element","ElementRef","BasePortalOutlet","portal","fn","DomPortalOutlet","BasePortalOutlet","outletElement","_componentFactoryResolver","_appRef","_defaultInjector","_document","portal","element","anchorNode","componentFactory","componentRef","Injector","viewContainer","viewRef","rootNode","index","CdkPortal","_CdkPortal","TemplatePortal","templateRef","viewContainerRef","t","ɵɵdirectiveInject","TemplateRef","ViewContainerRef","ɵɵdefineDirective","ɵɵInheritDefinitionFeature","CdkPortalOutlet","_CdkPortalOutlet","BasePortalOutlet","_componentFactoryResolver","_viewContainerRef","_document","EventEmitter","portal","element","anchorNode","viewContainerRef","componentFactory","ref","viewRef","nativeElement","t","ɵɵdirectiveInject","ComponentFactoryResolver$1","ViewContainerRef","DOCUMENT","ɵɵdefineDirective","ɵɵInheritDefinitionFeature","PortalModule","_PortalModule","t","ɵɵdefineNgModule","ɵɵdefineInjector","scrollBehaviorSupported","supportsScrollBehavior","BlockScrollStrategy","_viewportRuler","document","root","coerceCssPixelValue","html","body","htmlStyle","bodyStyle","previousHtmlScrollBehavior","previousBodyScrollBehavior","viewport","CloseScrollStrategy","_scrollDispatcher","_ngZone","_viewportRuler","_config","overlayRef","stream","filter","scrollable","scrollPosition","NoopScrollStrategy","isElementScrolledOutsideView","element","scrollContainers","containerBounds","outsideAbove","outsideBelow","outsideLeft","outsideRight","isElementClippedByScrolling","scrollContainerRect","clippedAbove","clippedBelow","clippedLeft","clippedRight","RepositionScrollStrategy","throttle","overlayRect","width","height","ScrollStrategyOptions","_ScrollStrategyOptions","document","config","BlockScrollStrategy","t","ɵɵinject","ScrollDispatcher","ViewportRuler","NgZone","DOCUMENT","ɵɵdefineInjectable","OverlayConfig","configKeys","key","ConnectedOverlayPositionChange","connectionPair","scrollableViewProperties","BaseOverlayDispatcher","_BaseOverlayDispatcher","document","overlayRef","index","t","ɵɵinject","DOCUMENT","ɵɵdefineInjectable","OverlayKeyboardDispatcher","_OverlayKeyboardDispatcher","_ngZone","event","overlays","i","keydownEvents","NgZone","OverlayOutsideClickDispatcher","_OverlayOutsideClickDispatcher","_platform","_getEventTarget","target","origin","outsidePointerEvents","body","Platform","OverlayContainer","_OverlayContainer","containerClass","_isTestEnvironment","oppositePlatformContainers","container","OverlayRef","_portalOutlet","_host","_pane","_config","_keyboardDispatcher","_document","_location","_outsideClickDispatcher","_animationsDisabled","_injector","Subject","Subscription","untracked","afterRender","portal","attachResult","afterNextRender","detachmentResult","isAttached","strategy","sizeConfig","__spreadValues","dir","__spreadProps","classes","direction","style","coerceCssPixelValue","enablePointer","showingClass","backdropToDetach","element","cssClasses","isAdd","coerceArray","c","subscription","takeUntil","merge","scrollStrategy","backdrop","boundingBoxClass","cssUnitPattern","FlexibleConnectedPositionStrategy","connectedTo","_viewportRuler","_overlayContainer","originRect","overlayRect","viewportRect","containerRect","flexibleFits","fallback","pos","originPoint","overlayPoint","overlayFit","bestFit","bestScore","fit","score","extendStyles","lastPosition","scrollables","positions","margin","flexibleDimensions","growAfterOpen","canPush","isLocked","offset","selector","x","startX","endX","y","overlayStartX","overlayStartY","point","rawOverlayRect","viewport","position","overlay","getRoundedBoundingClientRect","offsetX","offsetY","leftOverflow","rightOverflow","topOverflow","bottomOverflow","visibleWidth","visibleHeight","visibleArea","availableHeight","availableWidth","minHeight","getPixelValue","minWidth","verticalFit","horizontalFit","start","scrollPosition","overflowRight","overflowBottom","overflowTop","overflowLeft","pushX","pushY","scrollVisibility","compareScrollVisibility","changeEvent","ConnectedOverlayPositionChange","elements","xOrigin","yOrigin","isRtl","height","top","bottom","smallestDistanceToViewportEdge","previousHeight","isBoundedByRightViewportEdge","isBoundedByLeftViewportEdge","width","left","right","previousWidth","boundingBoxRect","styles","maxHeight","maxWidth","hasExactPosition","hasFlexibleDimensions","config","transformString","documentHeight","horizontalStyleProperty","documentWidth","originBounds","overlayBounds","scrollContainerBounds","scrollable","isElementClippedByScrolling","isElementScrolledOutsideView","length","overflows","currentValue","currentOverflow","axis","cssClass","ElementRef","destination","source","key","input","value","units","clientRect","a","b","wrapperClass","GlobalPositionStrategy","overlayRef","config","value","offset","styles","parentStyles","width","height","maxWidth","maxHeight","shouldBeFlushHorizontally","shouldBeFlushVertically","xPosition","xOffset","isRtl","marginLeft","marginRight","justifyContent","parent","OverlayPositionBuilder","_OverlayPositionBuilder","_viewportRuler","_document","_platform","_overlayContainer","origin","FlexibleConnectedPositionStrategy","t","ɵɵinject","ViewportRuler","DOCUMENT","Platform","OverlayContainer","ɵɵdefineInjectable","nextUniqueId","Overlay","_Overlay","scrollStrategies","_componentFactoryResolver","_positionBuilder","_keyboardDispatcher","_injector","_ngZone","_directionality","_location","_outsideClickDispatcher","_animationsModuleType","host","pane","portalOutlet","overlayConfig","OverlayConfig","OverlayRef","EnvironmentInjector","ApplicationRef","DomPortalOutlet","ScrollStrategyOptions","ComponentFactoryResolver$1","OverlayKeyboardDispatcher","Injector","NgZone","Directionality","Location","OverlayOutsideClickDispatcher","ANIMATION_MODULE_TYPE","defaultPositionList","CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY","InjectionToken","overlay","inject","CdkOverlayOrigin","_CdkOverlayOrigin","elementRef","ɵɵdirectiveInject","ElementRef","ɵɵdefineDirective","CdkConnectedOverlay","_CdkConnectedOverlay","offsetX","offsetY","_overlay","templateRef","viewContainerRef","scrollStrategyFactory","_dir","Subscription","EventEmitter","TemplatePortal","changes","event","hasModifierKey","target","_getEventTarget","positionStrategy","positions","currentPosition","strategy","takeWhile","position","TemplateRef","ViewContainerRef","booleanAttribute","ɵɵInputTransformsFeature","ɵɵNgOnChangesFeature","CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY","CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER","OverlayModule","_OverlayModule","ɵɵdefineNgModule","ɵɵdefineInjector","BidiModule","PortalModule","ScrollingModule","CdkDialogContainer_ng_template_0_Template","rf","ctx","DialogConfig","CdkDialogContainer","_CdkDialogContainer","BasePortalOutlet","_elementRef","_focusTrapFactory","_document","_config","_interactivityChecker","_ngZone","_overlayRef","_focusMonitor","inject","Platform","ChangeDetectorRef","Injector","portal","result","id","index","element","options","callback","selector","elementToFocus","afterNextRender","focusConfig","focusTargetElement","activeElement","_getFocusedElementPierceShadowDom","t","ɵɵdirectiveInject","ElementRef","FocusTrapFactory","DOCUMENT","DialogConfig","InteractivityChecker","NgZone","OverlayRef","FocusMonitor","ɵɵdefineComponent","rf","ctx","ɵɵviewQuery","CdkPortalOutlet","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵattribute","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","ɵɵtemplate","CdkDialogContainer_ng_template_0_Template","DialogRef","overlayRef","config","Subject","event","hasModifierKey","closedSubject","width","height","classes","DIALOG_SCROLL_STRATEGY","InjectionToken","overlay","Overlay","DIALOG_DATA","DEFAULT_DIALOG_CONFIG","uniqueId","Dialog","_Dialog","_overlay","_injector","_defaultOptions","_parentDialog","_overlayContainer","scrollStrategy","Subject","defer","startWith","componentOrTemplateRef","config","defaults","DialogConfig","__spreadValues","overlayConfig","overlayRef","dialogRef","DialogRef","dialogContainer","reverseForEach","dialog","id","state","OverlayConfig","overlay","userInjector","providers","OverlayRef","containerType","CdkDialogContainer","containerPortal","ComponentPortal","Injector","TemplateRef","injector","context","TemplatePortal","contentRef","fallbackInjector","DIALOG_DATA","Directionality","of","emitEvent","index","previousValue","element","overlayContainer","siblings","i","sibling","parent","t","ɵɵinject","Overlay","DEFAULT_DIALOG_CONFIG","OverlayContainer","DIALOG_SCROLL_STRATEGY","ɵɵdefineInjectable","items","callback","DialogModule","_DialogModule","ɵɵdefineNgModule","ɵɵdefineInjector","OverlayModule","PortalModule","A11yModule","MatDialogContainer_ng_template_2_Template","rf","ctx","MatDialogConfig","OPEN_CLASS","OPENING_CLASS","CLOSING_CLASS","OPEN_ANIMATION_DURATION","CLOSE_ANIMATION_DURATION","MatDialogContainer","_MatDialogContainer","CdkDialogContainer","elementRef","focusTrapFactory","_document","dialogConfig","interactivityChecker","ngZone","overlayRef","_animationMode","focusMonitor","EventEmitter","parseCssTime","TRANSITION_DURATION_PROPERTY","delta","duration","callback","totalTime","portal","ref","t","ɵɵdirectiveInject","ElementRef","FocusTrapFactory","DOCUMENT","InteractivityChecker","NgZone","OverlayRef","ANIMATION_MODULE_TYPE","FocusMonitor","ɵɵdefineComponent","ɵɵhostProperty","ɵɵattribute","ɵɵclassProp","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","CdkPortalOutlet","time","coerceNumberProperty","MatDialogState","MatDialogRef","_ref","config","_containerInstance","Subject","filter","event","take","merge","hasModifierKey","_closeDialogVia","dialogResult","position","strategy","width","height","classes","interactionType","result","MAT_DIALOG_DATA","InjectionToken","MAT_DIALOG_DEFAULT_OPTIONS","MAT_DIALOG_SCROLL_STRATEGY","overlay","inject","Overlay","uniqueId","MatDialog","_MatDialog","parent","_overlay","injector","location","_defaultOptions","_scrollStrategy","_parentDialog","_overlayContainer","_animationMode","Subject","MatDialogConfig","defer","startWith","Dialog","MatDialogRef","MatDialogContainer","MAT_DIALOG_DATA","componentOrTemplateRef","config","dialogRef","__spreadValues","cdkRef","__spreadProps","DialogConfig","ref","cdkConfig","dialogContainer","index","id","dialog","dialogs","t","ɵɵinject","Overlay","Injector","Location","MAT_DIALOG_DEFAULT_OPTIONS","MAT_DIALOG_SCROLL_STRATEGY","OverlayContainer","ANIMATION_MODULE_TYPE","ɵɵdefineInjectable","dialogElementUid","MatDialogClose","_MatDialogClose","_elementRef","_dialog","getClosestDialog","changes","proxiedChange","event","_closeDialogVia","ɵɵdirectiveInject","ElementRef","ɵɵdefineDirective","rf","ctx","ɵɵlistener","$event","ɵɵattribute","ɵɵNgOnChangesFeature","MatDialogLayoutSection","_MatDialogLayoutSection","_dialogRef","MatDialogTitle","_MatDialogTitle","ɵMatDialogTitle_BaseFactory","ɵɵgetInheritedFactory","ɵɵhostProperty","ɵɵInheritDefinitionFeature","MatDialogContent","_MatDialogContent","ɵɵHostDirectivesFeature","CdkScrollable","MatDialogActions","_MatDialogActions","ɵMatDialogActions_BaseFactory","ɵɵclassProp","element","openDialogs","MatDialogModule","_MatDialogModule","t","ɵɵdefineNgModule","ɵɵdefineInjector","MatDialog","DialogModule","OverlayModule","PortalModule","MatCommonModule","StorageService","constructor","AUTHORIZATION_DATA_KEY","CREDENTIALS_DATA_KEY","UNIT_CUSTOMER_TOKEN","UNIT_WL_COMPONENTS_CUSTOMER_TOKEN","TERMS_DATA_KEY","TERMS_RETRY_KEY","DONT_SHOW_ACCREDITATION_CONFIRMATION","IMPERSONATE_AS_KEY","GP_REFERRAL_KEY","GP_REFERRAL_KEYS","OPPORTUNITY_TAGS","CONFIG_DATA_KEY","IS_EXAMPLE_ASSET_REMOVED_LOCAL_STORAGE_KEY","clear","removeAuthorizationData","removeUnitWLComponentsCustomerToken","removeCredentialsData","localStorage","sessionStorage","getJsonData","key","json","getItem","JSON","parse","getPersistent","keyValueObject","hasPersistent","setPersistent","value","stringify","setItem","deletePersistent","keyValueString","updatePersistent","getSessionItem","hasSessionItem","setSessionItem","getAuthorizationData","removeItem","setAuthorizationData","data","getCredentialsData","setCredentialsData","setTermsData","getTermsData","removeTermsData","setTermsApproveRetry","getTermsApproveRetry","removeTermsApproveRetry","getUnitCustomerToken","unitCustomerId","removeUnitCustomerToken","setUnitCustomerToken","setImpersonateAsData","impersonationData","getImpersonateAsData","setAccreditationDontShowConfirmation","getAccreditationDontShowConfirmation","removeAccreditationDontShowConfirmation","setGpReferralKeyDataInStorage","removeGpReferralKeyDataFromStorage","getGpReferralKeyDataFromStorage","updateGpReferralKeysDataInStorage","gpRefKeys","getAllGpReferralKeysDataFromStorage","push","updateOpportunityTagsDataInStorage","tags","getAllOpportunityTagsDataFromStorage","removeAllOpportunityTagsFromStorage","factory","ɵfac","providedIn","_StorageService","CookieService","_CookieService","document","platformId","isPlatformBrowser","name","escapedName","encodedURIComponent","result","cookies","currentCookie","cookieName","cookieValue","value","expiresOrOptions","path","domain","secure","sameSite","partitioned","optionsBody","cookieString","options","dateExpires","expiresDate","t","ɵɵinject","DOCUMENT","PLATFORM_ID","ɵɵdefineInjectable","RoutingService","constructor","router","dialogRef","appSettings","storageService","cookieService","activatedRoute","originFundParamName","returnUrl","removeDialogClassAndStyleFromHtml","classes","document","querySelector","getAttribute","replace","setAttribute","styles","closeAllDialogs","closeAll","navigateToLoginNoQuery","sessionStorage","clear","navigateByUrl","loginUrlBySubdomain","navigateToLoginWithQuery","forceReload","location","pathname","search","isNotRegistered","snapshot","queryParamMap","get","toLowerCase","maintenancePage","setReturnUrlInCookie","window","href","signupUrlBySubdomain","getSignupUrlTree","clearQueryStringAndReturnURL","clearSessionStorage","queryParams","emailStartIndex","indexOf","emailEndIndex","email","substring","length","gpReferralKeyStartIndex","gpReferralKeyEndIndex","gpref","decodeURIComponent","createUrlTree","getLoginUrlTree","serializeQueryParams","obj","str","p","hasOwnProperty","push","encodeURIComponent","join","subDomain","SubdomainEnum","GP","loginGpPage","loginLpPage","signupGpPage","signupLpPage","defaultLoggedInPageBySubdomain","defaultGpPage","lpHomePage","gpOnboardingPage","lpOnboardingPage","lpOnboardingPageDefault","lpOnboardingPagePersonalDetails","lpOnboardingPageOrganizationDetails","gpAssetsPage","gpFundsPage","lpHoldingsPage","lpBankAccounts","lpDocuments","lpDocument","id","lpEditBankAccount","bankAccountId","lpCreateBankAccount","lpCreateUnitApplication","lpEditUnitApplication","applicationId","lpUnitApplication","lpUnitBankAccount","accountId","lpCreateUnitPayment","lpUnitPaymentPage","paymentId","lpUnitPaymentReviewPage","lpUnitPaymentConfirmationPage","insightsPage","creBankAccounts","contactsPage","positionsPage","bankAccountsPage","tab","createBankApplicationPage","createCrePayment","paymentPage","paymentReviewPage","paymentConfirmationPage","bankApplicationPage","holdingId","qParams","bankApplicationDraftEditPage","bankApplicationContinueCreatePage","createCreBankPage","creBankAccountPage","externalBankAccountPage","gpAssetPage","assetId","gpFundPage","fundId","createAsset","createDraftAsset","editDraftAsset","editDraftFund","createFund","createFundAsset","createAssetInitialFundraising","assetFundraising","fundraisingId","assetCapitalCall","fundFundraising","fundCapitalCall","createAssetFundraising","createFundFundraising","gpAssetWithTab","gpFundWithTab","createAssetReport","createFundReport","gpAssetReport","reportId","gpFundReport","assetReportFaqs","fundReportFaqs","assetDistribution","distributionId","fundDistribution","assetEditDistribution","fundEditDistribution","createAssetDistribution","createFundDistribution","myAccountPage","myAccountPageGp","myAccountPageLp","noAccess","lpAsset","lpFund","lpOpportunities","opportunityId","lpOfferingDeck","lpOpportunityCampaign","storageObjectPreviewPage","holdingDiscriminator","storageObjectId","HoldingDiscriminator","Asset","Fund","lpHoldingPageWithTab","importAssetDistributions","importFundDistributions","importFundContributions","importAssetContributions","investorsManagement","discriminator","isUrlToSetInCookie","expiresDate","Date","setHours","getHours","set","domain","getReturnUrlFromCookie","removeReturnUrlFromCookie","delete","goToReturnUrl","defaultUrl","clientDetails","getCredentialsData","userPermission","userAllowedSections","allowedSections","SectionsAccess","isOn","All","Assets","Funds","Contacts","Positions","BankAccounts","Insights","None","TerraUtils","consts","paths","EMAIL_CONFIRM","NOT_FOUND","TWO_FACTOR_VERIFICATION","gpSignAgreementUrl","investmentId","identifier","ɵɵinject","Router","MatDialog","AppSettingsService","StorageService","CookieService","ActivatedRoute","factory","ɵfac","providedIn","_RoutingService","_c0","_c1","_c2","_c3","_c4","_c5","_c6","_c7","_c8","_c9","_c10","MAT_BUTTON_CONFIG","InjectionToken","HOST_SELECTOR_MDC_CLASS_PAIR","MatButtonBase","_MatButtonBase","v","value","_elementRef","_platform","_ngZone","_animationMode","inject","FocusMonitor","MatRippleLoader","config","MAT_BUTTON_CONFIG","element","classList","attribute","mdcClasses","origin","options","t","ɵɵinvalidFactory","ɵɵdefineDirective","booleanAttribute","ɵɵInputTransformsFeature","MatAnchorBase","_MatAnchorBase","MatButtonBase","elementRef","platform","ngZone","animationMode","event","t","ɵɵinvalidFactory","ɵɵdefineDirective","value","numberAttribute","ɵɵInputTransformsFeature","ɵɵInheritDefinitionFeature","MatButton","_MatButton","ɵɵdirectiveInject","ElementRef","Platform","NgZone","ANIMATION_MODULE_TYPE","ɵɵdefineComponent","rf","ctx","ɵɵattribute","ɵɵclassMap","ɵɵclassProp","ɵɵStandaloneFeature","_c0","_c2","ɵɵprojectionDef","_c1","ɵɵelement","ɵɵprojection","ɵɵelementStart","ɵɵelementEnd","MatAnchor","_MatAnchor","_c3","_c4","MAT_FAB_DEFAULT_OPTIONS","InjectionToken","MAT_FAB_DEFAULT_OPTIONS_FACTORY","defaults","MatFabButton","_MatFabButton","_options","booleanAttribute","_c5","MatMiniFabButton","_MatMiniFabButton","_c6","_c7","MatIconButton","_MatIconButton","MatButtonBase","elementRef","platform","ngZone","animationMode","t","ɵɵdirectiveInject","ElementRef","Platform","NgZone","ANIMATION_MODULE_TYPE","ɵɵdefineComponent","rf","ctx","ɵɵattribute","ɵɵclassMap","ɵɵclassProp","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","_c8","_c9","ɵɵprojectionDef","ɵɵelement","ɵɵprojection","_c4","MatIconAnchor","_MatIconAnchor","MatAnchorBase","_c10","MatButtonModule","_MatButtonModule","ɵɵdefineNgModule","ɵɵdefineInjector","MatCommonModule","MatRippleModule","_c0","policy","getPolicy","ttWindow","s","trustedHTMLFromString","html","getMatIconNameNotFoundError","iconName","getMatIconNoHttpProviderError","getMatIconFailedToSanitizeUrlError","url","getMatIconFailedToSanitizeLiteralError","literal","SvgIconConfig","svgText","options","MatIconRegistry","_MatIconRegistry","_httpClient","_sanitizer","document","_errorHandler","namespace","resolver","cleanLiteral","SecurityContext","trustedLiteral","alias","classNames","safeUrl","cachedIcon","of","cloneSvg","tap","svg","map","name","key","iconKey","config","iconSetConfigs","throwError","namedIcon","iconSetFetchRequests","iconSetConfig","catchError","err","errorMessage","forkJoin","foundIcon","i","iconSet","iconSource","iconElement","str","div","element","attributes","value","iconConfig","withCredentials","inProgressFetch","req","finalize","share","configNamespace","result","isSafeUrlWithOptions","t","ɵɵinject","HttpClient","DomSanitizer","DOCUMENT","ErrorHandler","ɵɵdefineInjectable","cloneSvg","svg","iconKey","namespace","name","isSafeUrlWithOptions","value","MAT_ICON_DEFAULT_OPTIONS","InjectionToken","MAT_ICON_LOCATION","MAT_ICON_LOCATION_FACTORY","_document","inject","DOCUMENT","_location","funcIriAttributes","funcIriAttributeSelector","attr","funcIriPattern","MatIcon","_MatIcon","newValue","_elementRef","_iconRegistry","ariaHidden","_errorHandler","defaults","Subscription","iconName","parts","cachedElements","newPath","path","layoutElement","childCount","child","elem","fontSetClasses","className","elements","attrs","element","elementsWithFuncIri","i","elementWithReference","match","attributes","rawName","take","err","errorMessage","t","ɵɵdirectiveInject","ElementRef","MatIconRegistry","ɵɵinjectAttribute","ErrorHandler","ɵɵdefineComponent","rf","ctx","ɵɵattribute","ɵɵclassMap","ɵɵclassProp","booleanAttribute","ɵɵInputTransformsFeature","ɵɵStandaloneFeature","_c0","ɵɵprojectionDef","ɵɵprojection","MatIconModule","_MatIconModule","ɵɵdefineNgModule","ɵɵdefineInjector","MatCommonModule","LoaderComponent","selectors","inputs","centerToParent","standalone","features","ɵɵStandaloneFeature","ngContentSelectors","_c0","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵprojection","ɵɵclassProp","CommonModule","styles","_LoaderComponent","FinancialPermissionLevel","toString","financialPermissionLevel","None","Hidden","AuthorizedSignatory","NonSignatory","listAll","parse","fpl","_c0","_c1","_c2","MatMenuItem_Conditional_4_Template","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","_c3","MatMenu_ng_template_0_Template","_r1","ɵɵgetCurrentView","ɵɵlistener","$event","ɵɵrestoreView","ctx_r1","ɵɵnextContext","ɵɵresetView","ɵɵprojection","ɵɵclassMap","ɵɵproperty","ɵɵattribute","MAT_MENU_PANEL","InjectionToken","MatMenuItem","_MatMenuItem","_elementRef","_document","_focusMonitor","_parentMenu","_changeDetectorRef","Subject","origin","options","event","clone","icons","i","isHighlighted","triggersSubmenu","t","ɵɵdirectiveInject","ElementRef","DOCUMENT","FocusMonitor","ChangeDetectorRef","ɵɵdefineComponent","ɵɵclassProp","booleanAttribute","ɵɵInputTransformsFeature","ɵɵStandaloneFeature","ɵɵprojectionDef","ɵɵtemplate","ɵɵadvance","ɵɵconditional","MatRipple","MAT_MENU_CONTENT","InjectionToken","MatMenuContent","_MatMenuContent","_template","_componentFactoryResolver","_appRef","_injector","_viewContainerRef","_document","_changeDetectorRef","Subject","context","TemplatePortal","DomPortalOutlet","element","t","ɵɵdirectiveInject","TemplateRef","ComponentFactoryResolver$1","ApplicationRef","Injector","ViewContainerRef","DOCUMENT","ChangeDetectorRef","ɵɵdefineDirective","ɵɵProvidersFeature","matMenuAnimations","trigger","state","style","transition","animate","fadeInItems","transformMenu","menuPanelUid","MAT_MENU_DEFAULT_OPTIONS","MAT_MENU_DEFAULT_OPTIONS_FACTORY","MatMenu","_MatMenu","value","classes","previousPanelClass","newClassList","__spreadValues","className","_elementRef","_unusedNgZone","defaultOptions","QueryList","EventEmitter","inject","FocusKeyManager","startWith","switchMap","items","merge","item","focusedItem","itemsList","manager","index","_item","event","keyCode","hasModifierKey","origin","afterNextRender","menuPanel","depth","elevation","newElevation","customElevation","posX","posY","__spreadProps","ElementRef","NgZone","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","MatMenuItem","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵviewQuery","ɵɵattribute","booleanAttribute","MAT_MENU_PANEL","ɵɵInputTransformsFeature","ɵɵStandaloneFeature","_c3","ɵɵprojectionDef","ɵɵtemplate","MatMenu_ng_template_0_Template","MAT_MENU_SCROLL_STRATEGY","overlay","Overlay","MAT_MENU_SCROLL_STRATEGY_FACTORY","MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER","passiveEventListenerOptions","normalizePassiveListenerOptions","MatMenuTrigger","_MatMenuTrigger","v","menu","reason","_overlay","_element","_viewContainerRef","scrollStrategy","parentMenu","_menuItemInstance","_dir","_focusMonitor","_ngZone","Subscription","inject","ChangeDetectorRef","event","isFakeTouchstartFromScreenReader","EventEmitter","MatMenu","passiveEventListenerOptions","overlayRef","overlayConfig","positionStrategy","takeUntil","origin","options","filter","take","depth","isOpen","config","OverlayConfig","position","change","posX","posY","originX","originFallbackX","overlayY","overlayFallbackY","originY","originFallbackY","overlayX","overlayFallbackX","offsetY","firstItem","backdrop","detachments","parentClose","of","hover","active","merge","isFakeMousedownFromScreenReader","keyCode","delay","asapScheduler","TemplatePortal","t","ɵɵdirectiveInject","Overlay","ElementRef","ViewContainerRef","MAT_MENU_SCROLL_STRATEGY","MAT_MENU_PANEL","MatMenuItem","Directionality","FocusMonitor","NgZone","ɵɵdefineDirective","rf","ctx","ɵɵlistener","$event","ɵɵattribute","MatMenuModule","_MatMenuModule","ɵɵdefineNgModule","ɵɵdefineInjector","MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER","CommonModule","MatRippleModule","MatCommonModule","OverlayModule","CdkScrollableModule","Tooltip","val","UniqueComponentId","platformId","el","zone","config","renderer","viewContainer","isPlatformBrowser","tooltipEvent","target","simpleChange","__spreadValues","DomHandler","duration","tooltipArrow","targetEl","e","zindexutils","content","TemplateRef","embeddedViewRef","node","offset","targetLeft","targetTop","hostOffset","left","top","option","position","defaultClassName","width","height","viewport","ConnectedOverlayScrollHandler","ɵɵdirectiveInject","PLATFORM_ID","ElementRef","NgZone","PrimeNGConfig","Renderer2","ViewContainerRef","ɵɵdefineDirective","rf","ctx","ɵɵlistener","$event","ɵɵresolveDocument","booleanAttribute","numberAttribute","ɵɵInputTransformsFeature","ɵɵNgOnChangesFeature","TooltipModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","CheckIcon","BaseIcon","ɵCheckIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","BlankIcon","BaseIcon","ɵBlankIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","SearchIcon","BaseIcon","UniqueComponentId","ɵSearchIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","_c0","a0","_c1","a1","a2","_c2","DropdownItem_ng_container_1_CheckIcon_1_Template","rf","ctx","ɵɵelement","ɵɵproperty","DropdownItem_ng_container_1_BlankIcon_2_Template","DropdownItem_ng_container_1_Template","ɵɵelementContainerStart","ɵɵtemplate","ɵɵelementContainerEnd","ctx_r0","ɵɵnextContext","ɵɵadvance","DropdownItem_span_2_Template","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","tmp_1_0","ɵɵtextInterpolate","DropdownItem_ng_container_3_Template","ɵɵelementContainer","_c3","_c4","_c5","_c6","_c7","_c8","_c9","_c10","_c11","_c12","_c13","_c14","_c15","_c16","Dropdown_span_2_ng_container_2_Template","ctx_r2","Dropdown_span_2_ng_container_3_Template","ɵɵpureFunction1","Dropdown_span_2_ng_template_4_span_0_Template","Dropdown_span_2_ng_template_4_Template","Dropdown_span_2_Template","_r2","ɵɵgetCurrentView","ɵɵlistener","$event","ɵɵrestoreView","ɵɵresetView","ɵɵtemplateRefExtractor","tmp_17_0","defaultPlaceholder_r4","ɵɵreference","ɵɵattribute","Dropdown_input_3_Template","_r5","Dropdown_ng_container_4_TimesIcon_1_Template","_r6","Dropdown_ng_container_4_span_2_1_ng_template_0_Template","Dropdown_ng_container_4_span_2_1_Template","Dropdown_ng_container_4_span_2_Template","_r7","Dropdown_ng_container_4_Template","Dropdown_ng_container_6_ng_container_1_ng_container_1_Template","Dropdown_ng_container_6_ng_container_1_Template","Dropdown_ng_container_6_ng_container_2_span_1_Template","Dropdown_ng_container_6_ng_container_2_span_2_Template","ɵɵclassMap","Dropdown_ng_container_6_ng_container_2_Template","Dropdown_ng_container_6_Template","Dropdown_ng_template_7_ng_container_0_span_1_Template","Dropdown_ng_template_7_ng_container_0_ChevronDownIcon_2_Template","Dropdown_ng_template_7_ng_container_0_Template","Dropdown_ng_template_7_span_1_1_ng_template_0_Template","Dropdown_ng_template_7_span_1_1_Template","Dropdown_ng_template_7_span_1_Template","Dropdown_ng_template_7_Template","Dropdown_ng_template_11_ng_container_3_Template","Dropdown_ng_template_11_div_4_ng_container_1_ng_container_1_Template","Dropdown_ng_template_11_div_4_ng_container_1_Template","Dropdown_ng_template_11_div_4_ng_template_2_SearchIcon_3_Template","Dropdown_ng_template_11_div_4_ng_template_2_span_4_1_ng_template_0_Template","Dropdown_ng_template_11_div_4_ng_template_2_span_4_1_Template","Dropdown_ng_template_11_div_4_ng_template_2_span_4_Template","Dropdown_ng_template_11_div_4_ng_template_2_Template","_r10","Dropdown_ng_template_11_div_4_Template","_r9","builtInFilterElement_r11","Dropdown_ng_template_11_p_scroller_6_ng_template_2_ng_container_0_Template","Dropdown_ng_template_11_p_scroller_6_ng_template_2_Template","items_r13","scrollerOptions_r14","buildInItems_r15","ɵɵpureFunction2","Dropdown_ng_template_11_p_scroller_6_ng_container_3_ng_template_1_ng_container_0_Template","Dropdown_ng_template_11_p_scroller_6_ng_container_3_ng_template_1_Template","scrollerOptions_r16","Dropdown_ng_template_11_p_scroller_6_ng_container_3_Template","Dropdown_ng_template_11_p_scroller_6_Template","_r12","ɵɵstyleMap","Dropdown_ng_template_11_ng_container_7_ng_container_1_Template","Dropdown_ng_template_11_ng_container_7_Template","ɵɵpureFunction0","Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_span_2_Template","option_r17","Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_ng_container_3_Template","Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_0_Template","ctx_r17","i_r19","scrollerOptions_r20","Dropdown_ng_template_11_ng_template_8_ng_template_2_ng_container_1_Template","_r21","Dropdown_ng_template_11_ng_template_8_ng_template_2_Template","Dropdown_ng_template_11_ng_template_8_li_3_ng_container_1_Template","ɵɵtextInterpolate1","Dropdown_ng_template_11_ng_template_8_li_3_ng_container_2_Template","Dropdown_ng_template_11_ng_template_8_li_3_Template","Dropdown_ng_template_11_ng_template_8_li_4_ng_container_1_Template","Dropdown_ng_template_11_ng_template_8_li_4_ng_container_2_Template","Dropdown_ng_template_11_ng_template_8_li_4_Template","Dropdown_ng_template_11_ng_template_8_Template","items_r22","Dropdown_ng_template_11_ng_container_10_Template","Dropdown_ng_template_11_Template","_r8","DROPDOWN_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","forwardRef","Dropdown","DropdownItem","EventEmitter","event","ɵɵdefineComponent","booleanAttribute","numberAttribute","ɵɵInputTransformsFeature","ɵɵpureFunction3","NgClass","NgIf","NgTemplateOutlet","NgStyle","Ripple","BlankIcon","CheckIcon","val","_disabled","ObjectUtils","signal","TranslationKeys","label","computed","options","filteredOptions","option","optionGroups","filtered","group","filteredItems","item","__spreadProps","__spreadValues","selectedOptionIndex","el","renderer","cd","zone","filterService","config","effect","modelValue","visibleOptions","UniqueComponentId","value","selectedItem","DomHandler","result","index","optionGroupChildren","o","ind","isHide","preventChange","parentElement","isInFloatingLabel","scrollerOptions","optionGroup","fn","isFocus","focusedOptionIndex","selectedIndex","selectedListItem","search","optionIndex","id","element","matchedOptionIndex","pressedInInputText","target","len","pressedInInput","focusableEl","char","matched","ɵɵdirectiveInject","ElementRef","Renderer2","ChangeDetectorRef","NgZone","FilterService","PrimeNGConfig","dirIndex","ɵɵcontentQuery","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵviewQuery","ɵɵclassProp","ɵɵProvidersFeature","_r1","ɵɵtwoWayListener","ɵɵtwoWayBindingSet","tmp_10_0","elseBlock_r23","ɵɵtwoWayProperty","NgForOf","Overlay","Tooltip","Scroller","AutoFocus","TimesIcon","ChevronDownIcon","SearchIcon","DropdownModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","OverlayModule","SharedModule","TooltipModule","RippleModule","ScrollerModule","AutoFocusModule","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r2","ctx_r2","ɵɵnextContext","searchInput_r4","ɵɵreference","ɵɵresetView","clear","ɵɵelementEnd","SearchFieldComponent","constructor","placeholder","filterChange","EventEmitter","clearSearch","ngOnInit","change","value","emit","clear","searchInput","selectors","inputs","filter","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵtwoWayListener","$event","i0","ɵɵrestoreView","_r1","ɵɵtwoWayBindingSet","ɵɵresetView","ɵɵlistener","target","ɵɵtemplate","SearchFieldComponent_i_6_Template","ɵɵadvance","ɵɵtwoWayProperty","ɵɵproperty","searchInput_r4","CommonModule","NgIf","FormsModule","DefaultValueAccessor","NgControlStatus","NgModel","MatIconModule","InputTextModule","InputText","styles","changeDetection","_SearchFieldComponent","PermissionLevel","toString","permissionLevel","None","Admin","Editor","Readonly","listAll","parse","permissionLevel_enum_default","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","_r1","ctx_r1","ɵɵnextContext","ɵɵresetView","onCloseRequested","emit","ɵɵtext","ɵɵelementEnd","ɵɵproperty","closeButtonReturnValue","DialogHeaderComponent","constructor","showCloseButton","bottomMargin","closeButtonReturnValue","undefined","onCloseRequested","EventEmitter","selectors","inputs","outputs","standalone","features","ɵɵStandaloneFeature","ngContentSelectors","_c1","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵprojection","ɵɵelementEnd","ɵɵtemplate","DialogHeaderComponent_button_6_Template","ɵɵadvance","ɵɵclassProp","ɵɵproperty","CommonModule","NgIf","MatIconModule","MatIcon","MatButtonModule","MatIconButton","MatDialogModule","MatDialogClose","MatDialogTitle","styles","_DialogHeaderComponent","SafeHtmlPipe","constructor","sanitized","transform","value","bypassSecurityTrustHtml","ɵɵdirectiveInject","DomSanitizer","pure","_SafeHtmlPipe","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵproperty","ctx_r0","data","iconClass","ɵɵadvance","ɵɵtextInterpolate","icon","actionPosition","undefined","ɵɵtextInterpolate1","actionLabel","AlertDialogParams","constructor","title","description","panelClass","backdropClass","showAction","autoFocus","AlertDialogComponent","dialogRef","ngOnInit","addPanelClass","ɵɵdirectiveInject","MatDialogRef","MAT_DIALOG_DATA","selectors","decls","vars","consts","template","rf","ctx","ɵɵtemplate","AlertDialogComponent_mat_icon_1_Template","ɵɵelement","AlertDialogComponent_div_6_Template","ɵɵsanitizeHtml","ɵɵpipeBind1","_AlertDialogComponent","ContactsVisibilityPermission","toString","contactsVisibilityPermission","Hidden","Visible","listAll","parse","cvp","contactsVisibilityPermission_enum_default","ViewAsInvestorPermission","toString","viewAsInvestorPermission","Forbidden","Allowed","parse","view_as_investor_permission_default","InvestorsOrderBy","toString","orderBy","Default","TimeAddedNewToOld","TimeAddedOldToNew","Name","NameDesc","Status","StatusDesc","AmountHighToLow","AmountLowToHigh","RankingHighToLow","RankingLowToHigh","listAll","allowInvestorName","parse","sortStr","InvestorsOrderBy_enum_default","FundraisingUiState","constructor","assetDetailsInvestorsSortBy","InvestorsOrderBy","TimeAddedNewToOld","fromJson","obj","model","DocumentsUiState","constructor","sort","orderBy","ORDER_BY_DEFAULT","direction","DIRECTION_DEFAULT","skipPrepareStep","fromJson","documentsObj","model","isNullOrUndefined","_DocumentsUiState","ContactsUiState","constructor","sort","orderBy","ORDER_BY_DEFAULT","direction","DIRECTION_DEFAULT","fromJson","contactsObj","model","_ContactsUiState","BANK_ACCOUNTS_ALLOWED_ORDER_BY","BankAccountsUiState","constructor","sort","orderBy","ORDER_BY_DEFAULT","direction","DIRECTION_DEFAULT","fromJson","contactsObj","model","_BankAccountsUiState","ConnectedStatus","CRE_BANK_ACCOUNTS_ALLOWED_ORDER_BY","CreBankAccountsUiState","constructor","sort","orderBy","ORDER_BY_DEFAULT","direction","DIRECTION_DEFAULT","fromJson","contactsObj","model","_CreBankAccountsUiState","holderFullName","PositionsReportUiState","constructor","sort","orderBy","ORDER_BY_DEFAULT","direction","DIRECTION_DEFAULT","fromJson","reportsSortObj","model","_PositionsReportUiState","AssetOrderBy","toString","orderBy","None","CreatedDateNewerFirst","CreatedDateOlderFirst","NameAsc","NameDesc","PercentsFundedAsc","PercentsFundedDesc","ClosingDateAsc","ClosingDateDesc","listAll","optionsForFundraisingAssets","optionsForUnderManagementAssets","optionsForDraftAssets","optionsForRealizedAssets","parse","sortStr","AssetOrderBy_enum_default","GpAssetsPageTabs","AssetsUiState","constructor","assetsOrderBy","AssetOrderBy","CreatedDateNewerFirst","activeTab","GpAssetsPageTabs","Fundraisings","fromJson","obj","model","FundOrderBy","toString","orderBy","None","CreatedDateNewerFirst","CreatedDateOlderFirst","NameAsc","NameDesc","PercentsFundedAsc","PercentsFundedDesc","ClosingDateAsc","ClosingDateDesc","listAll","optionsForFundraisingFunds","optionsForUnderManagementFunds","optionsForDraftAssets","optionsForRealizedAssets","parse","sortStr","FundOrderBy_enum_default","GpFundsPageTabs","FundsUiState","constructor","fundsOrderBy","FundOrderBy","CreatedDateNewerFirst","activeTab","GpFundsPageTabs","Fundraisings","fromJson","obj","model","SimpleSortUiState","constructor","sort","orderBy","ORDER_BY_DEFAULT","direction","DIRECTION_DEFAULT","fromJson","sortObj","model","_SimpleSortUiState","HoldingViewsInsightState","fromJson","obj","model","startDate","Date","endDate","HoldingReportViewsInsightState","holdingId","ReportViewsInsightState","TotalHoldingReportsViewsInsightState","InvestorInteractionsInsightState","pageSize","InsightsUiState","constructor","isSidebarOpened","holdingViewsInsightState","holdingReportViewsInsightState","reportViewsInsightState","investorInteractionsInsightState","totalHoldingReportsViewsInsightState","OfferingDeckEngagementUiState","constructor","sort","orderBy","ORDER_BY_DEFAULT","direction","DIRECTION_DEFAULT","fromJson","engagementObj","model","_OfferingDeckEngagementUiState","BANK_APPLICATIONS_ALLOWED_ORDER_BY","BankApplicationsUiState","constructor","sort","orderBy","ORDER_BY_DEFAULT","direction","DIRECTION_DEFAULT","fromJson","contactsObj","model","_BankApplicationsUiState","Name","PaymentsUiState","constructor","sort","orderBy","ORDER_BY_DEFAULT","direction","DIRECTION_DEFAULT","fromJson","paymentsObj","model","_PaymentsUiState","showAiActionsMarkTextPopup","Promise","resolve","contents","dialogRoot","document","createElement","className","innerHTML","body","appendChild","querySelector","addEventListener","remove","showAiActionsHelpMeWrite","Promise","resolve","contents","dialogRoot","document","createElement","className","innerHTML","body","appendChild","requestAnimationFrame","querySelector","focus","go","value","remove","cancel","undefined","addEventListener","e","key","import_mixpanel_browser","USER_DETAILS","InjectionToken","APP_SETTINGS","MixpanelEvent","telemetryEvent","mapping","key","g0","g1","g2","MixpanelService","appSettings","userDetails","mixpanel","take","map","details","event","mixpanelEvent","ɵɵdefineInjectable","ɵɵinject","AnalyticsServiceNameModel","PreviousRouteService","router","filter","NavigationEnd","Router","TelemetryService","http","mixpanelService","previousRoute","serviceName","isLoggedIn","data","headers","HttpHeaders","requestBody","error","url","environment","HttpClient","showAiActionsUnavailablePopup","text","Promise","resolve","contents","dialogRoot","document","createElement","className","innerHTML","body","appendChild","querySelector","addEventListener","remove","getOverflowHiddenAncestor","element","ancestor","document","documentElement","style","getComputedStyle","overflow","overflowY","parentElement","TOOLTIP_SPACE_FROM_EDGE","isAlreadyShowing","showAiActionsTooltip","buttonElement","Promise","resolve","contents","dialogRoot","document","createElement","className","innerHTML","appendChild","querySelector","addEventListener","remove","requestAnimationFrame","tooltipHeight","clientHeight","ancestor","closest","getOverflowHiddenAncestor","topEdge","Math","max","getBoundingClientRect","top","buttonTop","classList","add","Module","Quill","import","QUILL_MENU_EDGE_SPACE","isCovercyAiActionsFeatureEnabled","AiActionsButtonModule","storageService","getCredentialsData","featureFlags","FeatureFlags","AiService","constructor","quill","options","baseEndpoint$","appSettings","localEnv","of","toolbar","getModule","addHandler","handleAiAction","bind","requestAnimationFrame","__async","quillRootElement","getQuillRootElement","aiActionsButton","querySelector","window","localStorage","getItem","closest","showAiActionsTooltip","then","setItem","addAiActionsMenuOpenDirectionHandler","addEventListener","menuHeight","clientHeight","ancestor","getOverflowHiddenAncestor","bottomEdge","Math","min","getBoundingClientRect","bottom","innerHeight","quillTop","top","classList","add","remove","aiActionCodeToCommand","aiActionCode","Error","ret","root","tagName","toLowerCase","parentElement","sendAnalyticsEvent","featureEnabled","aiActionType","aiActionCommand","userService","accountDetails$","pipe","take","subscribe","clientDetails","telemetryService","create","eventID","eventTitle","organizationID","organizationDetails","id","pageTitle","document","title","AnalyticsServiceNameModel","Mixpanel","Insights","value","undefined","showAiActionsUnavailablePopup","selection","getSelection","aiCommand","showAiActionsHelpMeWrite","length","showAiActionsMarkTextPopup","index","getLength","getText","endsWith","cleanExit","enable","disable","selectedText","entireText","switchMap","endpoint","http","post","paragraphText","command","first","catchError","error","caught","console","log","tap","response","deleteText","insertText","setSelection","finalize","Quill","register","AiActionsButtonModule","PromoUiState","constructor","showAutomatedDocumentsSharing","showExternalBankAccounts","showCapitalCommitments","showCovercyAi","isCovercyAiActionsFeatureEnabled","fromJson","obj","model","isNullOrUndefined","CommitmentsUiState","constructor","hideCommitmentsColumns","fromJson","obj","model","isNullOrUndefined","ClientPresentationState","constructor","assets","AssetsUiState","funds","FundsUiState","fundraising","FundraisingUiState","documents","DocumentsUiState","contacts","ContactsUiState","recipientContacts","gpBankAccounts","BankAccountsUiState","investorsBankAccounts","CreBankAccountsUiState","bankApplications","BankApplicationsUiState","positionsReport","PositionsReportUiState","fundsManagingPortfolio","SimpleSortUiState","fundsManagingOverview","assetInvestorOverview","commitments","CommitmentsUiState","fundsFundraising","assetsFundraising","fundsDistribution","assetsDistribution","insightsInvestorInteractions","insightsUiState","InsightsUiState","offeringDeckEngagementUiState","OfferingDeckEngagementUiState","payments","PaymentsUiState","promo","PromoUiState","fromJson","obj","model","RoleFlags","toString","rf","Member","Admin","SignDistributions","SignCreateCreBank","parse","str","isOn","featuresList","valueToCheck","RoleFlags_enum_default","UserType","AppType","import_compressorjs","ImpersonateAsUserDetails","SENSITIVE_FIELDS","BODY_FIELD_NAMES","maskSensitiveData","error","Array","isArray","map","item","maskedError","JSON","parse","stringify","isPossiblyJSON","str","startsWith","endsWith","safeJSONParse","findAndMaskBodyFields","obj","maskedObj","__spreadValues","key","value","some","field","toLowerCase","includes","parsedValue","maskSensitiveFields","prepareMaskedLogData","additionalData","maskedData","undefined","LoggerService","ErrorHandler","constructor","logger","appSettings","http","router","LOGGER_ENDPOINT","updateConfig","serverLoggingUrl","resourceUrl","level","ngxLogging","serverLogLevel","setWithCredentialsOptionValue","handleError","error","warning","info","value","additional","maskedData","prepareForErrorSending","additionalData","debug","warn","fatal","preLogLogic","setCustomHttpHeaders","generateDefaultHeaders","getCurrentUrlObject","url","getRequestObject","originalRequest","enrichAdditional","fullAdditional","updateAdditional","prepareMaskedLogData","push","ɵɵinject","NGXLogger","AppSettingsService","HttpService","Router","factory","ɵfac","providedIn","_LoggerService","ImpersonationService","constructor","routingService","router","storageService","appSettings","userService","logger","_isLoadingImpersonation$","BehaviorSubject","isLoadingImpersonation$","asObservable","isViewingAsInvestor","subDomain","SubdomainEnum","GP","window","location","pathname","startsWith","impersonateAsUsername","impersonateAsDetails","username","getImpersonateAsData","viewAsInvestor","contact","impersonationData","ImpersonateAsUserDetails","email","firstName","lastName","next","addLpForImpersonation","pipe","tap","_","setImpersonateAsData","url","serializeUrl","createUrlTree","lpHoldingsPage","open","finalize","catchError","error","throwError","ɵɵinject","RoutingService","Router","StorageService","AppSettingsService","UserService","LoggerService","factory","ɵfac","providedIn","_ImpersonationService","HttpService","constructor","http","appSettings","storageService","injector","RESOURCE_API_BASE_URL","resourceUrl","catchErrorWithExtraData","error","updateError","__spreadProps","__spreadValues","JSON","parse","message","get","url","headers","generateDefaultHeaders","getFullUrl","withCredentials","getTyped","queryParams","of","pipe","switchMap","params","catchError","post","data","options","append","requestBody","stringify","observe","postTyped","put","putTyped","patchTyped","patch","deleteTyped","delete","compressImage","file","emitter","EventEmitter","fileName","name","toLowerCase","endsWith","compressor","Compressor","quality","maxWidth","success","blobResult","compressedFile","File","type","lastModified","Date","now","emit","err","console","log","asObservable","uploadFile","formData","FormData","req","HttpRequest","reportProgress","request","downloadFile","fileType","responseType","resp","downloadLink","document","createElement","blob","Blob","body","split","length","map","part","trim","filter","startsWith","substring","charAt","href","window","URL","createObjectURL","setAttribute","click","authDataJson","getAuthorizationData","impersonationService","ImpersonationService","HttpHeaders","access_token","isViewingAsInvestor","impersonateAsUsername","indexOf","ɵɵinject","HttpClient","AppSettingsService","StorageService","Injector","factory","ɵfac","providedIn","_HttpService","BaseLoginProvider","id","src","onload","parentElement","signInJS","SocialUser","defaultInitOptions","GoogleLoginProvider","_GoogleLoginProvider","clientId","initOptions","EventEmitter","BehaviorSubject","__spreadValues","skip","autoLogin","lang","resolve","reject","credential","socialUser","filter","user","scope","s","tokenResponse","err","response","take","__async","idToken","payload","base64","jsonPayload","c","SocialAuthService","_SocialAuthService","config","_ngZone","_injector","ReplaySubject","AsyncSubject","onError","item","provider","loginStatusPromises","loggedIn","key","promise","isObservable","error","providerId","providerObject","signInOptions","revoke","t","ɵɵinject","NgZone","Injector","ɵɵdefineInjectable","FacebookLoginProvider","_FacebookLoginProvider","BaseLoginProvider","clientId","initOptions","__spreadValues","resolve","reject","err","response","authResponse","fbUser","user","SocialUser","signInOptions","options","GoogleSigninButtonDirective","_GoogleSigninButtonDirective","el","socialAuthService","take","value","t","ɵɵdirectiveInject","ElementRef","SocialAuthService","ɵɵdefineDirective","GoogleSigninButtonModule","_GoogleSigninButtonModule","ɵɵdefineNgModule","ɵɵdefineInjector","UserService","isAnonymousUntilNextNavigation","isAnonymousUntilNextNavigationPrivate","userHasFeatureFlag","featureToCheck","accountDetails$","pipe","map","accountDetails","FeatureFlags","isOn","featureFlags","shareReplay","userHasRoleFlag","roleToCheck","RoleFlags","roleFlags","constructor","http","routingService","router","activatedRoute","cookieService","appSettingsService","storageService","socialAuthService","logger","AUTH_CLIENT_ID","LP_CLIENT_ID","MAINTENANCE_URL","maintenancePage","ACCOUNT_ENDPOINT","ONBOARDING_ENDPOINT","SIGNUP_GP_ENDPOINT","SIGNUP_LP_ENDPOINT","LOGIN_GP_ENDPOINT","LOGIN_LP_ENDPOINT","LOGOUT_ENDPOINT","FORGOT_PASSWORD_ENDPOINT","RESET_PASSWORD_ENDPOINT","GET_CURRENT_USER_ENDPOINT","CURRENT_ORGANIZATION_MEMBERS_ENDPOINT","COMPANY_PROFILE_GP_ENDPOINT","COMPANY_PROFILE_LP_ENDPOINT","ONBOARDING_LP_ENDPOINT","PERSONAL_DETAILS_AGENT_ENDPOINT","PERSONAL_DETAILS_CLIENT_ENDPOINT","RESEND_CONFIRMATION_ENDPOINT","CONFIRM_EMAIL_ENDPOINT","REJECT_EMAIL_ENDPOINT","EXTERNAL_REGISTER","EXTERNAL_OBTAIN_ACCESSTOKEN","CROSS_APP_LOGIN","SEND_SMS_VERIFICATION","SMS_VERIFY","RESEND_SMS_VERIFICATION","TWO_FACTOR_PING","TWO_FACTOR_ENABLE","TWO_FACTOR_DISABLE","TWO_FACTOR_VERIFY","TWO_FACTOR_CODE","TWO_FACTOR_CODE_RESEND","PENDING_PAYMENT_REQUESTS","UPDATE_TERMS_AND_CONDITIONS_ENDPOINT","ADD_TEAM_MEMBER_ENDPOINT","INVITATION_INFO_ENDPOINT","ADD_LP_FOR_IMPERSONATION_ENDPOINT","REFERER_LOGO_ENDPOINT","isLoggedIn$","BehaviorSubject","isLoggedIn","lp_referrerFromCookie$","getReferrerFromCookie","lpReferrerCookieKey","lp_referrerFromQuery$","queryParamMap","queryParams","get","gp_referrerFromSession$","getReferrerFromSession","gpReferrerCookieKey","gp_referrerFromCookie$","gp_referrerFromQuery$","lp_referrerLogo$","combineLatest","startWith","switchMap","referrerFromQuery","referrerFromCookie","setGpReferralKeyDataInStorage","getLogoByReferrer","tap","data","setReferrerInCookie","showLogo","of","gp_referrerLogo$","refreshedClientDetails$","EMPTY","refreshedClientDetails","getClientDetailsFromServer","supportPinFromServer$","getTyped","supportPinUpdated$","Subject","supportPin$","merge","distinctUntilChanged","authHeaders","Headers","append","getClientDetailsFromLocalStorage","clientDetails","getClientDetails","subscribe","response","setAnonymousUntilNextNavigation","events","filter","evt","NavigationStart","take","clientPresentationState","ClientPresentationState","fromJson","JSON","parse","toString","setCredentialsData","stringify","catchError","err","throwError","getCurrentUser","credentialsData","getCredentialsData","firstName","forceFromServer","saveSupportPIN","pin","url","put","next","changePassword","oldPassword","password","confirmPassword","model","post","changeEmail","email","setAuthorizationData","register","signupModel","registerEndpoint","appType","AppType","GpApp","postTyped","token","clear","status","navigateByUrl","registerLp","doNotLogin","logout","ssoLogout","mergeMap","_","error","finalize","removeReturnUrlFromCookie","login","loginRequest","loginEndpoint","isTryingToAccessOtherUsersData","storageUserDetails","id","initState","isReady","switchMapTo","signOut","catch","warning","validateLocalStorageCredentials","getAuthorizationData","referrerKey","value","referrerData","console","log","referrerValue","date","Date","setDate","getFullYear","delete","location","hostname","logoUrl","set","sessionStorage","getItem","setReferrerInSession","setItem","forgotPassword","forgotPasswordDto","onboardingSubmit","onboardingModel","createExampleHoldings","resetPassword","removeUserCredentials","removeCredentialsData","companyProfileGpUpdate","request","companyProfileLpUpdate","personalDetailsUpdate","userType","endpoint","UserType","Agent","resendConfirmationEmail","overrideCounter","queryString","confirmEmail","username","rejectEmail","registerGoogle","externalRegister","registerFacebook","provider","obtainLocalAccessToken","loginModel","crossAppLogin","subDomain","SubdomainEnum","LP","sendSmsVerification","putTyped","smsVerify","reSendSmsVerification","setTwoFactorCookie","twoFactorModel","rememberDevice","getDate","setHours","getHours","deviceToken","cookieDomainNamespace","twoFactorEnable","twoFactorPing","twoFactorDisable","twoFactorVerify","sendTwoFactorCode","resendTwoFactorCode","onboardingLp","getCurrentAgentOrganizationMembers","updateTermsAndConditions","patchTyped","getOrganizationInvitationInfo","invitationToken","referrerReq","updateInvitedUserInfo","userInfo","addLpForImpersonation","createUserPermission","userPermission","ɵɵinject","HttpService","RoutingService","Router","ActivatedRoute","CookieService","AppSettingsService","StorageService","SocialAuthService","LoggerService","factory","ɵfac","providedIn","_UserService","UserPermissionDataService","constructor","http","baseEndpoint","ACCOUNT_ENDPOINT","getSearchOptionsToQuerystring","options","encodeURIComponent","filter","sortOrder","orderBy","pageNumber","pageSize","getPermissionsList","queryString","getTyped","pipe","catchError","err","throwError","isAllContactsVisible","updateUserPermission","model","putTyped","deleteUserPermission","clientId","getById","userPermissionId","getAllHoldings","ɵɵinject","HttpService","factory","ɵfac","providedIn","_UserPermissionDataService","AbstractRestService","constructor","http","getSearchOptionsToQuerystring","options","encodeURIComponent","filter","sortOrder","orderBy","pageNumber","pageSize","create","model","baseEndpoint$","pipe","switchMap","baseEndpoint","postTyped","catchError","err","throwError","update","id","endpoint","putTyped","delete","deleteTyped","getList","querystring","getTyped","getById","ɵɵinject","HttpService","factory","ɵfac","providedIn","_AbstractRestService","SystemFeatureFlagConsts","getAll","SystemFeatureFlagAccreditationOn","_SystemFeatureFlagConsts","GeneralSettingsService","AbstractRestService","constructor","http","baseEndpoint$","of","systemFeatureFlagKeysValues$","getSystemFeatureFlagValues","SystemFeatureFlagConsts","getAll","pipe","shareReplay","featureFlagKeys","switchMap","baseUrl","postTyped","GetByKey","key","getTyped","IsCovercyDomain","email","toLowerCase","endsWith","ɵɵinject","HttpService","factory","ɵfac","providedIn","_GeneralSettingsService","PermissionService","constructor","userService","userPermissionDataService","generalSettingsService","isCovercyUser$","getClientDetails","pipe","map","clientDetails","isEmailVerified","IsCovercyDomain","email","checkPermission","minimumPermissionLevel","minimumFinancialPermissionLevel","requiredSectionsAccess","requireContactVisibility","minimumViewAsInvestorPermission","accountDetails$","accountDetails","isAgent","undefined","userPermission","isSufficientPermissionLevel","permissionLevel","isSufficientFinancialPermissionLevel","financialPermission","SectionsAccess","isOn","allowedSections","All","contactsVisibility","ContactsVisibilityPermission","Hidden","isSufficientViewAsInvestorPermission","viewAsInvestor","userPermissionLevel","PermissionLevel","None","Readonly","Editor","Admin","userFinancialPermission","FinancialPermissionLevel","NonSignatory","AuthorizedSignatory","userViewAsInvestorPermission","ViewAsInvestorPermission","Forbidden","Allowed","allowInvestorName$","Visible","shareReplay","isAllContactsVisible$","switchMap","isAllContactsVisible","of","showBankInfo$","haveAuthorizedSignatory$","nonAdminViewBanking$","nonAdminHideBanking$","ɵɵinject","UserService","UserPermissionDataService","GeneralSettingsService","factory","ɵfac","providedIn","_PermissionService","AddDynamicComponentDirective","constructor","viewContainerRef","ɵɵdirectiveInject","ViewContainerRef","selectors","_AddDynamicComponentDirective","InformationHintComponent","constructor","text","backgroundColor","ngOnInit","selectors","inputs","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵproperty","ɵɵpureFunction1","_c0","ɵɵadvance","ɵɵtextInterpolate","_InformationHintComponent","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵproperty","ctx_r0","data","iconClass","ɵɵadvance","ɵɵtextInterpolate1","icon","ɵɵelement","description","ɵɵsanitizeHtml","ɵɵelementContainerStart","highlightText","highlightColor","cancelLabel","ɵɵlistener","ɵɵrestoreView","_r2","ɵɵnextContext","ɵɵresetView","secondaryAction","secondaryActionLabel","ɵɵpropertyInterpolate","svgIcon","ConfirmDialogParams","constructor","title","actionLabel","panelClass","actionButtonColor","dynamicComponent","vcr","actionPosition","disableAction","actionButtonColorCode","autoFocus","hideCancel","showCloseIcon","disableClose","ConfirmDialogComponent","dialogRef","componentFactoryResolver","ngOnInit","loadComponent","addPanelClass","viewContainerRef","terraAddDynamicComponent","clear","componentFactory","resolveComponentFactory","component","componentRef","createComponent","instance","action","close","ɵɵdirectiveInject","MatDialogRef","MAT_DIALOG_DATA","ComponentFactoryResolver","selectors","viewQuery","rf","ctx","AddDynamicComponentDirective","ɵɵtemplate","ConfirmDialogComponent_Conditional_1_Template","ConfirmDialogComponent_Conditional_4_Template","ConfirmDialogComponent_Conditional_5_Template","ConfirmDialogComponent_ng_template_6_Template","ConfirmDialogComponent_Conditional_8_Template","ConfirmDialogComponent_Conditional_9_Template","ConfirmDialogComponent_Conditional_12_Template","ɵɵconditional","ɵɵpureFunction1","_c0","_ConfirmDialogComponent","ɵɵelement","ɵɵpropertyInterpolate","ctx_r1","data","svgIcon","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵproperty","ɵɵadvance","ɵɵtextInterpolate1","cancelLabel","ɵɵlistener","ɵɵrestoreView","_r1","ɵɵnextContext","ɵɵresetView","action","ɵɵtemplate","DynamicDialogComponent_div_8_mat_icon_3_Template","DynamicDialogComponent_div_8_button_4_Template","actionPosition","actionButtonColor","actionLabel","hideCancel","DynamicDialogParams","constructor","showCloseIcon","disableClose","title","subTitle","panelClass","dynamicComponent","vcr","highlightText","hideAction","autoFocus","DynamicDialogComponent","dialogRef","componentFactoryResolver","ngOnInit","loadComponent","addPanelClass","viewContainerRef","terraAddDynamicComponent","clear","componentFactory","resolveComponentFactory","component","componentRef","createComponent","instance","close","ɵɵdirectiveInject","MatDialogRef","MAT_DIALOG_DATA","ComponentFactoryResolver","selectors","viewQuery","rf","ctx","AddDynamicComponentDirective","DynamicDialogComponent_ng_template_7_Template","DynamicDialogComponent_div_8_Template","ɵɵtextInterpolate","_DynamicDialogComponent","DialogService","constructor","dialog","customDialog","dialogType","data","disableClose","panelClass","vcr","dialogConfig","MatDialogConfig","closeOnNavigation","autoFocus","width","height","viewContainerRef","open","confirmDialog","dialogParams","ConfirmDialogComponent","alertDialog","backdropClass","AlertDialogComponent","dynamicDialog","DynamicDialogComponent","ɵɵinject","MatDialog","factory","ɵfac","providedIn","_DialogService","NoPermissionAction","CheckPermissionsDirective","constructor","elementRef","permissionService","dialogService","requireContactsVisibility","ngOnInit","checkPermission","minimumPermissionLevel","minimumFinancialPermissionLevel","sectionsAccess","minimumViewAsInvestorPermission","pipe","take","subscribe","allowed","failedForType","noPermissionAction","Hide","nativeElement","style","display","Blur","filter","PopupOnClick","removeAllListeners","addEventListener","openPopup","bind","event","stopPropagation","preventDefault","title","message","PermissionLevel","Editor","Admin","FinancialPermissionLevel","NonSignatory","AuthorizedSignatory","alertDialog","AlertDialogParams","ɵɵdirectiveInject","ElementRef","PermissionService","DialogService","selectors","inputs","standalone","_CheckPermissionsDirective","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵproperty","ɵɵpureFunction1","_c1","ctx_r1","outlinedIcon","ɵɵadvance","ɵɵtextInterpolate","icon","ɵɵelementContainerStart","ɵɵlistener","$event","ɵɵrestoreView","_r1","ɵɵnextContext","ɵɵresetView","btnClick","ɵɵtemplate","ButtonsComponent_ng_container_1_ng_container_1_ng_container_1_mat_icon_2_Template","ɵɵpureFunction2","_c0","type","iconPosition","disabledBtn","ɵɵtextInterpolate1","label","_r3","ButtonsComponent_ng_container_1_ng_container_1_ng_container_1_Template","ButtonsComponent_ng_container_1_ng_container_1_ng_container_2_Template","_c2","_r4","ButtonsComponent_ng_container_1_ng_container_2_ng_container_1_mat_icon_2_Template","minimumViewAsInvestorPermission","minimumPermissionLevel","minimumFinancialPermissionLevel","sectionsAccess","requireContactsVisibility","NoPermissionAction","PopupOnClick","_r5","ButtonsComponent_ng_container_1_ng_container_2_ng_container_1_Template","ButtonsComponent_ng_container_1_ng_container_2_ng_container_2_Template","ButtonsComponent_ng_container_1_ng_container_1_Template","ButtonsComponent_ng_container_1_ng_container_2_Template","popupOnPermission","ɵɵelement","ButtonsComponent","constructor","type","label","disabledBtn","icon","outlinedIcon","iconPosition","popupOnPermission","requireContactsVisibility","loading","NoPermissionAction","onClick","EventEmitter","ngOnInit","btnClick","event","emit","selectors","inputs","minimumPermissionLevel","minimumFinancialPermissionLevel","sectionsAccess","minimumViewAsInvestorPermission","outputs","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵtemplate","ButtonsComponent_ng_container_1_Template","ButtonsComponent_ng_template_2_Template","ɵɵtemplateRefExtractor","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","loader_r6","CommonModule","NgClass","NgIf","MatIconModule","MatIcon","MatButtonModule","CheckPermissionsDirective","LoaderComponent","styles","changeDetection","_ButtonsComponent","AngleDownIcon","BaseIcon","ɵAngleDownIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","AngleUpIcon","BaseIcon","ɵAngleUpIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","_c0","_c1","a0","a1","a2","_c2","_c3","InputNumber_ng_container_3_TimesIcon_1_Template","rf","ctx","_r2","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","ctx_r2","ɵɵnextContext","ɵɵresetView","ɵɵelementEnd","ɵɵproperty","ɵɵattribute","InputNumber_ng_container_3_span_2_1_ng_template_0_Template","InputNumber_ng_container_3_span_2_1_Template","ɵɵtemplate","InputNumber_ng_container_3_span_2_Template","_r4","ɵɵadvance","InputNumber_ng_container_3_Template","ɵɵelementContainerStart","ɵɵelementContainerEnd","InputNumber_span_4_span_2_Template","ɵɵelement","InputNumber_span_4_ng_container_3_AngleUpIcon_1_Template","InputNumber_span_4_ng_container_3_2_ng_template_0_Template","InputNumber_span_4_ng_container_3_2_Template","InputNumber_span_4_ng_container_3_Template","InputNumber_span_4_span_5_Template","InputNumber_span_4_ng_container_6_AngleDownIcon_1_Template","InputNumber_span_4_ng_container_6_2_ng_template_0_Template","InputNumber_span_4_ng_container_6_2_Template","InputNumber_span_4_ng_container_6_Template","InputNumber_span_4_Template","_r5","$event","ɵɵclassMap","ɵɵpureFunction0","InputNumber_button_5_span_1_Template","InputNumber_button_5_ng_container_2_AngleUpIcon_1_Template","InputNumber_button_5_ng_container_2_2_ng_template_0_Template","InputNumber_button_5_ng_container_2_2_Template","InputNumber_button_5_ng_container_2_Template","InputNumber_button_5_Template","_r6","InputNumber_button_6_span_1_Template","InputNumber_button_6_ng_container_2_AngleDownIcon_1_Template","InputNumber_button_6_ng_container_2_2_ng_template_0_Template","InputNumber_button_6_ng_container_2_2_Template","InputNumber_button_6_ng_container_2_Template","InputNumber_button_6_Template","_r7","INPUTNUMBER_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","forwardRef","InputNumber","disabled","EventEmitter","document","el","cd","injector","config","simpleChange","p","item","NgControl","numerals","index","d","i","text","decimalChar","__spreadProps","__spreadValues","formatter","value","formattedValue","suffixRegex","prefixRegex","currencyRegex","filteredText","parsedValue","event","interval","dir","step","currentValue","newValue","selectionStart","selectionEnd","inputValue","newValueStr","previousCharIndex","deleteChar","decimalCharIndex","decimalCharIndexWithoutPrefix","decimalLength","insertedText","code","char","isDecimalSign","isMinusSign","data","filteredData","val","minusCharIndex","suffixCharIndex","currencyCharIndex","sign","minusCharIndexOnText","maxFractionDigits","operation","charIndex","start","end","valueLength","prefixLength","DomHandler","valueStr","insertedValueStr","parsedCurrentValue","currentLength","newLength","startValue","startExpr","sRegex","tExpr","tRegex","prevChar","nextChar","diff","isGroupChar","val1","val2","valueSplit","newValueNumber","newValueString","fn","ɵɵdirectiveInject","DOCUMENT","ElementRef","ChangeDetectorRef","Injector","PrimeNGConfig","ɵɵdefineComponent","dirIndex","ɵɵcontentQuery","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵviewQuery","ɵɵclassProp","booleanAttribute","numberAttribute","ɵɵProvidersFeature","ɵɵInputTransformsFeature","ɵɵNgOnChangesFeature","_r1","ɵɵpureFunction3","NgClass","NgIf","NgTemplateOutlet","NgStyle","InputText","ButtonDirective","AutoFocus","TimesIcon","AngleUpIcon","AngleDownIcon","InputNumberModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","InputTextModule","ButtonModule","AutoFocusModule","SharedModule","ChevronLeftIcon","BaseIcon","ɵChevronLeftIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ChevronRightIcon","BaseIcon","ɵChevronRightIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ChevronUpIcon","BaseIcon","ɵChevronUpIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","CalendarIcon","BaseIcon","ɵCalendarIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","_c0","_c1","_c2","_c3","_c4","_c5","a0","a1","a2","a3","a4","_c6","_c7","_c8","a5","_c9","_c10","_c11","_c12","_c13","_c14","_c15","_c16","Calendar_ng_template_2_ng_container_2_TimesIcon_1_Template","rf","ctx","_r3","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","ctx_r1","ɵɵnextContext","ɵɵresetView","ɵɵelementEnd","ɵɵproperty","Calendar_ng_template_2_ng_container_2_span_2_1_ng_template_0_Template","Calendar_ng_template_2_ng_container_2_span_2_1_Template","ɵɵtemplate","Calendar_ng_template_2_ng_container_2_span_2_Template","_r4","ɵɵadvance","Calendar_ng_template_2_ng_container_2_Template","ɵɵelementContainerStart","ɵɵelementContainerEnd","Calendar_ng_template_2_button_3_span_1_Template","ɵɵelement","Calendar_ng_template_2_button_3_ng_container_2_CalendarIcon_1_Template","Calendar_ng_template_2_button_3_ng_container_2_2_ng_template_0_Template","Calendar_ng_template_2_button_3_ng_container_2_2_Template","Calendar_ng_template_2_button_3_ng_container_2_Template","Calendar_ng_template_2_button_3_Template","_r5","$event","inputfield_r6","ɵɵreference","tmp_6_0","ɵɵattribute","Calendar_ng_template_2_ng_container_4_CalendarIcon_1_Template","_r7","ɵɵpureFunction1","Calendar_ng_template_2_ng_container_4_ng_container_2_Template","ɵɵelementContainer","Calendar_ng_template_2_ng_container_4_Template","Calendar_ng_template_2_Template","_r1","tmp_15_0","ɵɵclassMap","Calendar_div_3_ng_container_3_Template","Calendar_div_3_ng_container_4_div_2_button_2_ChevronLeftIcon_1_Template","Calendar_div_3_ng_container_4_div_2_button_2_span_2_1_ng_template_0_Template","Calendar_div_3_ng_container_4_div_2_button_2_span_2_1_Template","Calendar_div_3_ng_container_4_div_2_button_2_span_2_Template","Calendar_div_3_ng_container_4_div_2_button_2_Template","_r10","Calendar_div_3_ng_container_4_div_2_button_4_Template","_r11","ɵɵtext","month_r12","ɵɵtextInterpolate1","Calendar_div_3_ng_container_4_div_2_button_5_Template","_r13","Calendar_div_3_ng_container_4_div_2_span_6_ng_container_1_Template","ɵɵtextInterpolate2","Calendar_div_3_ng_container_4_div_2_span_6_ng_container_2_Template","Calendar_div_3_ng_container_4_div_2_span_6_Template","Calendar_div_3_ng_container_4_div_2_ChevronRightIcon_8_Template","Calendar_div_3_ng_container_4_div_2_span_9_1_ng_template_0_Template","Calendar_div_3_ng_container_4_div_2_span_9_1_Template","Calendar_div_3_ng_container_4_div_2_span_9_Template","Calendar_div_3_ng_container_4_div_2_div_10_th_4_Template","ɵɵtextInterpolate","Calendar_div_3_ng_container_4_div_2_div_10_th_5_Template","weekDay_r14","Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_1_Template","j_r15","Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_2_Template","date_r17","Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_3_ng_container_1_Template","Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_3_Template","Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_4_ng_container_1_Template","Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_ng_container_4_Template","Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_div_5_Template","Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_ng_container_1_Template","_r16","i_r18","ɵɵpureFunction2","Calendar_div_3_ng_container_4_div_2_div_10_tr_7_td_2_Template","Calendar_div_3_ng_container_4_div_2_div_10_tr_7_Template","week_r19","Calendar_div_3_ng_container_4_div_2_div_10_Template","Calendar_div_3_ng_container_4_div_2_Template","_r9","ɵɵstyleProp","Calendar_div_3_ng_container_4_div_3_span_1_div_2_Template","m_r22","Calendar_div_3_ng_container_4_div_3_span_1_Template","_r20","i_r21","Calendar_div_3_ng_container_4_div_3_Template","Calendar_div_3_ng_container_4_div_4_span_1_div_2_Template","y_r24","Calendar_div_3_ng_container_4_div_4_span_1_Template","_r23","Calendar_div_3_ng_container_4_div_4_Template","Calendar_div_3_ng_container_4_Template","Calendar_div_3_div_5_ChevronUpIcon_3_Template","Calendar_div_3_div_5_4_ng_template_0_Template","Calendar_div_3_div_5_4_Template","Calendar_div_3_div_5_ng_container_6_Template","Calendar_div_3_div_5_ChevronDownIcon_9_Template","Calendar_div_3_div_5_10_ng_template_0_Template","Calendar_div_3_div_5_10_Template","Calendar_div_3_div_5_ChevronUpIcon_16_Template","Calendar_div_3_div_5_17_ng_template_0_Template","Calendar_div_3_div_5_17_Template","Calendar_div_3_div_5_ng_container_19_Template","Calendar_div_3_div_5_ChevronDownIcon_22_Template","Calendar_div_3_div_5_23_ng_template_0_Template","Calendar_div_3_div_5_23_Template","Calendar_div_3_div_5_div_24_Template","Calendar_div_3_div_5_div_25_ChevronUpIcon_2_Template","Calendar_div_3_div_5_div_25_3_ng_template_0_Template","Calendar_div_3_div_5_div_25_3_Template","Calendar_div_3_div_5_div_25_ng_container_5_Template","Calendar_div_3_div_5_div_25_ChevronDownIcon_8_Template","Calendar_div_3_div_5_div_25_9_ng_template_0_Template","Calendar_div_3_div_5_div_25_9_Template","Calendar_div_3_div_5_div_25_Template","_r26","Calendar_div_3_div_5_div_26_ChevronUpIcon_2_Template","Calendar_div_3_div_5_div_26_3_ng_template_0_Template","Calendar_div_3_div_5_div_26_3_Template","Calendar_div_3_div_5_div_26_ChevronDownIcon_7_Template","Calendar_div_3_div_5_div_26_8_ng_template_0_Template","Calendar_div_3_div_5_div_26_8_Template","Calendar_div_3_div_5_div_26_Template","_r27","Calendar_div_3_div_5_Template","_r25","Calendar_div_3_div_6_Template","_r28","Calendar_div_3_ng_container_8_Template","Calendar_div_3_Template","_r8","ɵɵprojection","ɵɵpureFunction6","CALENDAR_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","forwardRef","Calendar","date","disabledDates","disabledDays","yearRange","years","yearStart","yearEnd","showTime","responsiveOptions","numberOfMonths","firstDayOfWeek","newLocale","view","defaultDate","EventEmitter","content","document","el","renderer","cd","zone","config","overlayService","UniqueComponentId","item","DomHandler","option","start","end","dayIndex","dayLabels","TranslationKeys","monthPickerValues","i","yearPickerValues","base","month","year","m","y","checkDate","time","dates","firstDay","daysLength","prevMonthDaysLength","dayNo","today","weekNumbers","monthRows","week","j","prev","remainingDaysLength","next","event","_yearOptions","difference","dateMeta","index","formattedValue","dateAsString","startDate","endDate","isDateValid","hours","currentView","value","stringArrValue","day","selected","yearToCheck","v","ObjectUtils","between","otherMonth","validMin","validMax","validDate","validDay","disabledDate","weekdayNumber","inputfield","headerElements","element","groupIndex","cellContent","cell","currentDate","cellIndex","nextRow","focusCell","prevRow","prevCell","nextCell","dateToFocus","focusKey","firstDayDate","firstDayDateKey","firstDayCell","lastDayDate","lastDayDateKey","lastDayCell","cells","prevMonthContainer","nextMonthContainer","contentEl","selectedCell","todayCell","focusableElements","focusedIndex","spanIndex","pm","hour","minute","second","returnTimeTriple","minHoursExceeds12","convertedHour","isRange","isMultiple","valueDateString","isMinDate","isMaxDate","prevHour","newHour","newPM","type","direction","interval","newMinute","newSecond","val","isValid","text","tokens","token","parts","dateFormat","ampm","timeString","propValue","zindexutils","bodyChildren","hasBlockerMasks","bodyChild","fn","format","iFormat","lookAhead","match","matches","formatNumber","len","num","formatName","shortNames","longNames","output","literal","minutes","seconds","validTokenLength","h","dim","extra","iValue","shortYearCutoff","doy","getNumber","isDoubled","size","minSize","digits","getName","arr","names","a","b","name","checkLiteral","selectedDate","innerHTML","o","o1","o2","breakpoint","numMonths","styles","documentTarget","ConnectedOverlayScrollHandler","ɵɵdirectiveInject","DOCUMENT","ElementRef","Renderer2","ChangeDetectorRef","NgZone","PrimeNGConfig","OverlayService","ɵɵdefineComponent","dirIndex","ɵɵcontentQuery","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵviewQuery","ɵɵclassProp","booleanAttribute","numberAttribute","ɵɵProvidersFeature","ɵɵInputTransformsFeature","ɵɵprojectionDef","ɵɵpureFunction5","NgClass","NgForOf","NgIf","NgTemplateOutlet","NgStyle","ButtonDirective","Ripple","ChevronLeftIcon","ChevronRightIcon","ChevronUpIcon","ChevronDownIcon","TimesIcon","CalendarIcon","AutoFocus","trigger","state","style","transition","animate","CalendarModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","ButtonModule","SharedModule","RippleModule","AutoFocusModule","ArrowDownIcon","BaseIcon","UniqueComponentId","ɵArrowDownIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","ArrowUpIcon","BaseIcon","UniqueComponentId","ɵArrowUpIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","FilterIcon","BaseIcon","UniqueComponentId","ɵFilterIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","FilterSlashIcon","BaseIcon","UniqueComponentId","ɵFilterSlashIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","PlusIcon","BaseIcon","UniqueComponentId","ɵPlusIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","SortAltIcon","BaseIcon","UniqueComponentId","ɵSortAltIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","SortAmountDownIcon","BaseIcon","UniqueComponentId","ɵSortAmountDownIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","SortAmountUpAltIcon","BaseIcon","UniqueComponentId","ɵSortAmountUpAltIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","TrashIcon","BaseIcon","UniqueComponentId","ɵTrashIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","ɵɵadvance","ɵɵproperty","AngleDoubleLeftIcon","BaseIcon","ɵAngleDoubleLeftIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","AngleDoubleRightIcon","BaseIcon","ɵAngleDoubleRightIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","AngleLeftIcon","BaseIcon","ɵAngleLeftIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","AngleRightIcon","BaseIcon","ɵAngleRightIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","_c0","a0","_c1","_c2","Paginator_div_0_div_1_ng_container_1_Template","rf","ctx","ɵɵelementContainer","Paginator_div_0_div_1_Template","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","ctx_r1","ɵɵnextContext","ɵɵattribute","ɵɵadvance","ɵɵproperty","ɵɵpureFunction1","Paginator_div_0_span_2_Template","ɵɵtext","ɵɵtextInterpolate","Paginator_div_0_button_3_AngleDoubleLeftIcon_1_Template","ɵɵelement","Paginator_div_0_button_3_span_2_1_ng_template_0_Template","Paginator_div_0_button_3_span_2_1_Template","Paginator_div_0_button_3_span_2_Template","Paginator_div_0_button_3_Template","_r3","ɵɵgetCurrentView","ɵɵlistener","$event","ɵɵrestoreView","ɵɵresetView","Paginator_div_0_AngleLeftIcon_5_Template","Paginator_div_0_span_6_1_ng_template_0_Template","Paginator_div_0_span_6_1_Template","Paginator_div_0_span_6_Template","Paginator_div_0_span_7_button_1_Template","_r4","pageLink_r5","ɵɵtextInterpolate1","Paginator_div_0_span_7_Template","Paginator_div_0_p_dropdown_8_ng_template_1_Template","Paginator_div_0_p_dropdown_8_ng_container_2_ng_template_1_ng_container_0_Template","Paginator_div_0_p_dropdown_8_ng_container_2_ng_template_1_Template","item_r7","Paginator_div_0_p_dropdown_8_ng_container_2_Template","ɵɵelementContainerStart","ɵɵelementContainerEnd","Paginator_div_0_p_dropdown_8_3_ng_template_0_ng_container_0_Template","Paginator_div_0_p_dropdown_8_3_ng_template_0_Template","Paginator_div_0_p_dropdown_8_3_Template","Paginator_div_0_p_dropdown_8_Template","_r6","Paginator_div_0_AngleRightIcon_10_Template","Paginator_div_0_span_11_1_ng_template_0_Template","Paginator_div_0_span_11_1_Template","Paginator_div_0_span_11_Template","Paginator_div_0_button_12_AngleDoubleRightIcon_1_Template","Paginator_div_0_button_12_span_2_1_ng_template_0_Template","Paginator_div_0_button_12_span_2_1_Template","Paginator_div_0_button_12_span_2_Template","Paginator_div_0_button_12_Template","_r8","Paginator_div_0_p_inputNumber_13_Template","_r9","Paginator_div_0_p_dropdown_14_ng_container_1_ng_template_1_ng_container_0_Template","Paginator_div_0_p_dropdown_14_ng_container_1_ng_template_1_Template","item_r11","Paginator_div_0_p_dropdown_14_ng_container_1_Template","Paginator_div_0_p_dropdown_14_2_ng_template_0_ng_container_0_Template","Paginator_div_0_p_dropdown_14_2_ng_template_0_Template","Paginator_div_0_p_dropdown_14_2_Template","Paginator_div_0_p_dropdown_14_Template","_r10","ɵɵtwoWayListener","ɵɵtwoWayBindingSet","ɵɵtwoWayProperty","Paginator_div_0_div_15_ng_container_1_Template","Paginator_div_0_div_15_Template","Paginator_div_0_Template","_r1","ɵɵclassMap","Paginator","val","EventEmitter","cd","config","labelType","value","digit","numerals","index","d","i","number","item","simpleChange","opt","numberOfPages","visiblePages","start","end","delta","boundaries","p","pc","state","page","event","ɵɵdirectiveInject","ChangeDetectorRef","PrimeNGConfig","ɵɵdefineComponent","dirIndex","ɵɵcontentQuery","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","numberAttribute","booleanAttribute","ɵɵInputTransformsFeature","ɵɵNgOnChangesFeature","NgClass","NgForOf","NgIf","NgTemplateOutlet","NgStyle","Dropdown","InputNumber","NgControlStatus","NgModel","Ripple","AngleDoubleLeftIcon","AngleDoubleRightIcon","AngleLeftIcon","AngleRightIcon","PaginatorModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","DropdownModule","InputNumberModule","FormsModule","SharedModule","RippleModule","_c0","_c1","a0","a1","a2","_c2","SelectButton_div_2_ng_container_1_span_1_Template","rf","ctx","ɵɵelement","option_r3","ɵɵnextContext","ɵɵclassMap","ɵɵproperty","ɵɵattribute","SelectButton_div_2_ng_container_1_Template","ɵɵelementContainerStart","ɵɵtemplate","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵelementContainerEnd","ctx_r4","ɵɵadvance","ɵɵtextInterpolate","SelectButton_div_2_ng_template_2_ng_container_0_Template","ɵɵelementContainer","SelectButton_div_2_ng_template_2_Template","ctx_r6","i_r4","ɵɵpureFunction2","SelectButton_div_2_Template","_r1","ɵɵgetCurrentView","ɵɵlistener","$event","ctx_r1","ɵɵrestoreView","ɵɵresetView","ctx_r5","ɵɵtemplateRefExtractor","customcontent_r8","ɵɵreference","ɵɵpureFunction3","SELECTBUTTON_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","forwardRef","SelectButton","EventEmitter","cd","option","ObjectUtils","value","fn","val","event","index","selected","optionValue","newValue","direction","firstTabableChild","i","ɵɵdirectiveInject","ChangeDetectorRef","ɵɵdefineComponent","dirIndex","ɵɵcontentQuery","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵviewQuery","booleanAttribute","numberAttribute","ɵɵProvidersFeature","ɵɵInputTransformsFeature","NgClass","NgForOf","NgIf","NgTemplateOutlet","NgStyle","Ripple","AutoFocus","SelectButtonModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","RippleModule","SharedModule","AutoFocusModule","_c0","a0","a1","a2","_c1","_c2","TriStateCheckbox_ng_container_5_span_1_Template","rf","ctx","ɵɵelement","ctx_r2","ɵɵnextContext","ɵɵproperty","ɵɵattribute","TriStateCheckbox_ng_container_5_ng_container_2_CheckIcon_1_Template","TriStateCheckbox_ng_container_5_ng_container_2_span_2_1_ng_template_0_Template","TriStateCheckbox_ng_container_5_ng_container_2_span_2_1_Template","ɵɵtemplate","TriStateCheckbox_ng_container_5_ng_container_2_span_2_Template","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","TriStateCheckbox_ng_container_5_ng_container_2_Template","ɵɵelementContainerStart","ɵɵelementContainerEnd","TriStateCheckbox_ng_container_5_Template","TriStateCheckbox_ng_container_6_span_1_Template","TriStateCheckbox_ng_container_6_ng_container_2_TimesIcon_1_Template","TriStateCheckbox_ng_container_6_ng_container_2_span_2_1_ng_template_0_Template","TriStateCheckbox_ng_container_6_ng_container_2_span_2_1_Template","TriStateCheckbox_ng_container_6_ng_container_2_span_2_Template","TriStateCheckbox_ng_container_6_ng_container_2_Template","TriStateCheckbox_ng_container_6_Template","TriStateCheckbox_label_7_Template","_r4","ɵɵgetCurrentView","ɵɵlistener","$event","ɵɵrestoreView","input_r2","ɵɵreference","ɵɵresetView","ɵɵtext","ɵɵpureFunction3","ɵɵtextInterpolate","TRISTATECHECKBOX_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","forwardRef","TriStateCheckbox","cd","config","EventEmitter","event","input","item","fn","value","disabled","ɵɵdirectiveInject","ChangeDetectorRef","PrimeNGConfig","ɵɵdefineComponent","dirIndex","ɵɵcontentQuery","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","booleanAttribute","numberAttribute","ɵɵProvidersFeature","ɵɵInputTransformsFeature","_r1","ɵɵclassMap","NgClass","NgIf","NgTemplateOutlet","NgStyle","AutoFocus","CheckIcon","TimesIcon","TriStateCheckboxModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","SharedModule","AutoFocusModule","_c0","_c1","_c2","_c3","_c4","_c5","_c6","_c7","_c8","_c9","a0","a1","a2","_c10","_c11","_c12","_c13","_c14","_c15","_c16","Table_div_2_i_1_Template","rf","ctx","ɵɵelement","ctx_r0","ɵɵnextContext","ɵɵclassMap","Table_div_2_ng_container_2_SpinnerIcon_1_Template","ɵɵproperty","Table_div_2_ng_container_2_span_2_1_ng_template_0_Template","Table_div_2_ng_container_2_span_2_1_Template","ɵɵtemplate","Table_div_2_ng_container_2_span_2_Template","ɵɵelementStart","ɵɵelementEnd","ɵɵadvance","Table_div_2_ng_container_2_Template","ɵɵelementContainerStart","ɵɵelementContainerEnd","Table_div_2_Template","Table_div_3_ng_container_1_Template","ɵɵelementContainer","Table_div_3_Template","Table_p_paginator_4_1_ng_template_0_ng_container_0_Template","Table_p_paginator_4_1_ng_template_0_Template","Table_p_paginator_4_1_Template","Table_p_paginator_4_2_ng_template_0_ng_container_0_Template","Table_p_paginator_4_2_ng_template_0_Template","Table_p_paginator_4_2_Template","Table_p_paginator_4_3_ng_template_0_ng_container_0_Template","Table_p_paginator_4_3_ng_template_0_Template","Table_p_paginator_4_3_Template","Table_p_paginator_4_4_ng_template_0_ng_container_0_Template","Table_p_paginator_4_4_ng_template_0_Template","Table_p_paginator_4_4_Template","Table_p_paginator_4_5_ng_template_0_ng_container_0_Template","Table_p_paginator_4_5_ng_template_0_Template","Table_p_paginator_4_5_Template","Table_p_paginator_4_Template","_r2","ɵɵgetCurrentView","ɵɵlistener","$event","ɵɵrestoreView","ɵɵresetView","Table_p_scroller_7_ng_template_2_ng_container_0_Template","Table_p_scroller_7_ng_template_2_Template","items_r4","scrollerOptions_r5","buildInTable_r6","ɵɵreference","ɵɵpureFunction2","Table_p_scroller_7_Template","_r3","ɵɵstyleMap","ɵɵpureFunction1","Table_ng_container_8_ng_container_1_Template","Table_ng_container_8_Template","Table_ng_template_9_ng_container_2_Template","Table_ng_template_9_ng_container_5_Template","Table_ng_template_9_tbody_6_Template","scrollerOptions_r7","Table_ng_template_9_tbody_8_Template","Table_ng_template_9_tfoot_9_ng_container_2_Template","Table_ng_template_9_tfoot_9_Template","Table_ng_template_9_Template","ɵɵpureFunction3","ɵɵattribute","Table_p_paginator_11_1_ng_template_0_ng_container_0_Template","Table_p_paginator_11_1_ng_template_0_Template","Table_p_paginator_11_1_Template","Table_p_paginator_11_2_ng_template_0_ng_container_0_Template","Table_p_paginator_11_2_ng_template_0_Template","Table_p_paginator_11_2_Template","Table_p_paginator_11_3_ng_template_0_ng_container_0_Template","Table_p_paginator_11_3_ng_template_0_Template","Table_p_paginator_11_3_Template","Table_p_paginator_11_4_ng_template_0_ng_container_0_Template","Table_p_paginator_11_4_ng_template_0_Template","Table_p_paginator_11_4_Template","Table_p_paginator_11_5_ng_template_0_ng_container_0_Template","Table_p_paginator_11_5_ng_template_0_Template","Table_p_paginator_11_5_Template","Table_p_paginator_11_Template","_r8","Table_div_12_ng_container_1_Template","Table_div_12_Template","Table_div_13_Template","ɵɵpureFunction0","Table_span_14_ArrowDownIcon_2_Template","Table_span_14_3_ng_template_0_Template","Table_span_14_3_Template","Table_span_14_Template","Table_span_15_ArrowUpIcon_2_Template","Table_span_15_3_ng_template_0_Template","Table_span_15_3_Template","Table_span_15_Template","_c17","_c18","a3","a4","_c19","a5","a6","_c20","_c21","_c22","TableBody_ng_container_0_ng_template_1_ng_container_0_ng_container_1_Template","TableBody_ng_container_0_ng_template_1_ng_container_0_Template","rowData_r2","rowIndex_r3","ctx_r3","ɵɵpureFunction5","TableBody_ng_container_0_ng_template_1_ng_container_1_ng_container_1_Template","TableBody_ng_container_0_ng_template_1_ng_container_1_Template","TableBody_ng_container_0_ng_template_1_ng_container_2_ng_container_1_Template","TableBody_ng_container_0_ng_template_1_ng_container_2_Template","ɵɵpureFunction7","TableBody_ng_container_0_ng_template_1_ng_container_3_ng_container_1_Template","TableBody_ng_container_0_ng_template_1_ng_container_3_Template","TableBody_ng_container_0_ng_template_1_Template","TableBody_ng_container_0_Template","TableBody_ng_container_1_ng_template_1_ng_container_0_ng_container_1_Template","TableBody_ng_container_1_ng_template_1_ng_container_0_Template","ctx_r4","rowData_r6","rowIndex_r7","ɵɵpureFunction6","TableBody_ng_container_1_ng_template_1_ng_container_1_ng_container_1_Template","TableBody_ng_container_1_ng_template_1_ng_container_1_Template","TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_1_Template","TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_2_ng_container_1_Template","TableBody_ng_container_1_ng_template_1_ng_container_2_ng_container_2_Template","TableBody_ng_container_1_ng_template_1_ng_container_2_Template","ɵɵpureFunction4","TableBody_ng_container_1_ng_template_1_Template","TableBody_ng_container_1_Template","TableBody_ng_container_2_ng_template_1_ng_container_0_Template","TableBody_ng_container_2_ng_template_1_ng_container_1_ng_container_1_Template","TableBody_ng_container_2_ng_template_1_ng_container_1_Template","ctx_r7","rowData_r9","rowIndex_r10","TableBody_ng_container_2_ng_template_1_Template","TableBody_ng_container_2_Template","TableBody_ng_container_3_ng_container_1_Template","TableBody_ng_container_3_Template","TableBody_ng_container_4_ng_container_1_Template","TableBody_ng_container_4_Template","SortIcon_ng_container_0_SortAltIcon_1_Template","SortIcon_ng_container_0_SortAmountUpAltIcon_2_Template","SortIcon_ng_container_0_SortAmountDownIcon_3_Template","SortIcon_ng_container_0_Template","SortIcon_span_1_1_ng_template_0_Template","SortIcon_span_1_1_Template","SortIcon_span_1_Template","SortIcon_span_2_Template","ɵɵtext","ɵɵtextInterpolate","TableService","Subject","sortMeta","data","value","columns","ɵɵdefineInjectable","Table","EventEmitter","index","item","val","cols","UniqueComponentId","document","platformId","renderer","el","zone","tableService","cd","filterService","overlayService","config","domSanitizer","isPlatformBrowser","simpleChange","_data","first","ObjectUtils","event","originalEvent","metaKey","field","order","data1","data2","value1","value2","result","multiSortMeta","i","sorted","target","targetNode","parentNode","DomHandler","rowData","rowIndex","selected","metaSelection","dataKeyValue","selectionIndex","isMetaKeySelection","rangeStart","rangeEnd","rangeRowsData","rangeRowData","rangeRowIndex","anchorRowIndex","check","selection","s","d","matchMode","filter","globalFilterFieldsArray","localMatch","globalMatch","localFiltered","prop","filterField","filterMeta","meta","FilterOperator","j","globalFilterField","matches","filterValue","filterMatchMode","FilterMatchMode","dataFieldValue","filterConstraint","empty","filterMetadata","column","options","csv","exportableColumns","body","record","cellData","blob","link","__spreadProps","__spreadValues","cell","rowElement","containerLeft","delta","newColumnWidth","minWidth","nextColumnWidth","tableWidth","widths","tableHead","header","columnElement","dropHeader","containerOffset","dropHeaderOffset","dragIndex","dropIndex","targetLeft","targetTop","columnCenter","dropColumn","allowDrop","width","colIndex","innerHTML","colWidth","style","rowY","pageY","rowMidY","prevRowElement","storage","state","stateString","dateFormat","reviver","key","columnOrder","reorderedColumns","col","className","c","ɵɵdirectiveInject","DOCUMENT","PLATFORM_ID","Renderer2","ElementRef","NgZone","ChangeDetectorRef","FilterService","OverlayService","PrimeNGConfig","DomSanitizer","ɵɵdefineComponent","rf","ctx","dirIndex","ɵɵcontentQuery","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵviewQuery","_c0","_c1","_c2","_c3","_c4","_c5","_c6","_c7","_c8","booleanAttribute","numberAttribute","ɵɵProvidersFeature","ɵɵInputTransformsFeature","ɵɵNgOnChangesFeature","ɵɵelementStart","ɵɵtemplate","Table_div_2_Template","Table_div_3_Template","Table_p_paginator_4_Template","Table_p_scroller_7_Template","Table_ng_container_8_Template","Table_ng_template_9_Template","ɵɵtemplateRefExtractor","ɵɵelementEnd","Table_p_paginator_11_Template","Table_div_12_Template","Table_div_13_Template","Table_span_14_Template","Table_span_15_Template","ɵɵclassMap","ɵɵproperty","ɵɵpureFunction3","_c9","ɵɵattribute","ɵɵadvance","ɵɵpureFunction1","_c10","NgClass","NgIf","NgTemplateOutlet","NgStyle","Paginator","Scroller","ArrowDownIcon","ArrowUpIcon","SpinnerIcon","TableBody","dt","currentRowFieldData","prevRowData","previousRowFieldData","nextRowData","nextRowFieldData","groupRowSpan","tableHeaderHeight","option","getItemOptions","_c17","TableBody_ng_container_0_Template","TableBody_ng_container_1_Template","TableBody_ng_container_2_Template","TableBody_ng_container_3_Template","TableBody_ng_container_4_Template","NgForOf","SortableColumn","dt","sortMeta","event","DomHandler","element","ɵɵdirectiveInject","Table","ɵɵdefineDirective","rf","ctx","ɵɵlistener","$event","ɵɵattribute","ɵɵclassProp","booleanAttribute","ɵɵInputTransformsFeature","SortIcon","cd","multiSortMeta","index","meta","ChangeDetectorRef","ɵɵdefineComponent","ɵɵtemplate","SortIcon_ng_container_0_Template","SortIcon_span_1_Template","SortIcon_span_2_Template","ɵɵproperty","ɵɵadvance","NgIf","NgTemplateOutlet","SortAltIcon","SortAmountUpAltIcon","SortAmountDownIcon","SelectableRow","tableService","el","data","row","nextRow","prevRow","lastRow","lastSelectableRowIndex","firstRow","firstSelectableRowIndex","ObjectUtils","firstSelectedRowIndex","lastSelectedRowIndex","firstFocusableRow","currentFocusedRow","rows","TableService","ElementRef","TableModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","PaginatorModule","InputTextModule","DropdownModule","FormsModule","ButtonModule","SelectButtonModule","CalendarModule","InputNumberModule","TriStateCheckboxModule","ScrollerModule","ArrowDownIcon","ArrowUpIcon","SpinnerIcon","SortAltIcon","SortAmountUpAltIcon","SortAmountDownIcon","CheckIcon","FilterIcon","FilterSlashIcon","PlusIcon","TrashIcon","SharedModule","MinusIcon","BaseIcon","ɵMinusIcon_BaseFactory","t","ɵɵgetInheritedFactory","ɵɵdefineComponent","ɵɵInheritDefinitionFeature","ɵɵStandaloneFeature","rf","ctx","ɵɵnamespaceSVG","ɵɵelementStart","ɵɵelement","ɵɵelementEnd","ɵɵclassMap","ɵɵattribute","CommonModule","filestack","t","e","r","n","i","o","a","s","c","m","h","y","v","b","x","w","k","_","u","p","l","d","f","F","E","O","j","S","T","P","A","C","D","I","L","N","B","M","R","$","q","V","G","Z","g","z","U","vt","H","W","Y","Q","K","J","kt","X","tt","et","rt","nt","it","ot","at","st","ct","ut","Ft","Et","xt","pt","_t","lt","ft","St","bt","Ot","wt","ht","gt","Tt","mt","dt","jt","yt","$e","Ue","qe","Ht","Wt","Yt","Qt","Kt","Jt","Xt","te","ee","re","ne","ie","oe","ae","se","ce","ue","pe","le","fe","Pt","zt","Ut","qt","Vt","Re","ze","Ae","At","Ct","Dt","It","Lt","Nt","Bt","Mt","Rt","$t","Gt","Zt","de","me","he","ye","ve","ge","be","xe","we","ke","_e","Fe","Ee","Oe","je","Se","Te","Pe","Ce","De","Ie","Le","Ne","Be","Me","_filestack$Filestack","_filestack$init","_filestack$version","_filestack$EAlignOptions","_filestack$EAlignFacesOptions","_filestack$EFitOptions","_filestack$EBlurMode","_filestack$EShapeType","_filestack$ENoiseType","_filestack$EStyleType","_filestack$EColorspaceType","_filestack$ECropfacesType","_filestack$ESmartCropMode","_filestack$EImageWatermarkPosition","_filestack$EAudioTypes","_filestack$EVideoTypes","_filestack$EUrlscreenshotAgent","_filestack$EUrlscreenshotMode","_filestack$EUrlscreenshotOrientation","_filestack$EVideoLocations","_filestack$EVideoAccess","_filestack$EVideoAccessMode","_filestack$transform","_filestack$Align","_filestack$FitOptions","_filestack$BlurMode","_filestack$ShapeType","_filestack$NoiseType","_filestack$StyleType","_filestack$ColorspaceType","_filestack$CropfacesType","_filestack$ImageWatermarkPosition","_filestack$SmartCropMode","_filestack$AudioTypes","_filestack$VideoTypes","_filestack$URLScreenshotAgent","_filestack$URLScreenshotMode","_filestack$URLScreenshotOrientation","_filestack$Locations","_filestack$VideoAccess","_filestack$VideoAccessMode","_filestack$EnhancePreset","_filestack$Filelink","_filestack$FilestackErrorType","_filestack$FsHttpMethod","_filestack$FsRequest","_filestack$FsRequestErrorCode","_filestack$FsRequestError","_filestack$FsCancelToken","_filestack$resolveCdnUrl","_filestack$resolveHost","_filestack$removeEmpty","_filestack$uniqueTime","_filestack$uniqueId","_filestack$extensionToMime","_filestack$sanitizeName","_filestack$filterObject","_filestack$cleanUpCallbacks","_filestack$md5","_filestack$b64","_filestack$getVersion","_filestack$isMobile","_filestack$isFacebook","_filestack$TransformSchema","_filestack$getSecurity","_filestack$validateWebhookSignature","_filestack$Client","_filestack$FilestackError","_filestack$PickerDisplayMode","_filestack$getMimetype","_filestack$PrefetchEvents","FilestackService","config","client","apikey","clientOptions","_filestack$init","options","url","b64","handle","security","from","token","file","storeOptions","name","t","ɵɵinject","ɵɵdefineInjectable","FilestackModule","config","FilestackService","t","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","StorageObjectReqRes","HoldingStorageObjectReqRes","getFilestackUrlWithCredentials","storageObject","filestackUrl","filestackPolicy","filestackSignature","ɵɵelement","ɵɵelementStart","ɵɵtext","ɵɵelementEnd","ɵɵadvance","ɵɵproperty","ctx_r0","fullUrlWithCredentials","ɵɵsanitizeUrl","storageObject","metaFileLink","mediaType","ɵɵelementContainerStart","ɵɵtemplate","FilePreviewDialogComponent_ng_container_4_ng_container_1_video_1_Template","FilePreviewDialogComponent_ng_container_4_ng_container_1_audio_2_Template","MediaType","Video","Audio","ɵɵlistener","ɵɵrestoreView","_r2","ɵɵnextContext","ɵɵresetView","download","FilePreviewDialogComponent_ng_container_4_ng_container_1_Template","FilePreviewDialogComponent_ng_container_4_ng_template_2_Template","ɵɵtemplateRefExtractor","isAudioOrVideoSupportedForPreview","notSupported_r3","FilePreviewDialogComponent","StorageObjectReqRes","getFilestackUrlWithCredentials","constructor","appSettingsService","filestackService","dialogRef","addPanelClass","ngOnInit","MetaFileLink","GetMediaType","ngAfterViewInit","Image","Pdf","Presentation","Spreadsheet","TextDocument","fileStackPreview","file","TerraUtils","close","clientOptions","security","policy","filestackPolicy","signature","filestackSignature","init","fileStackApiKey","preview","filestackHandle","id","ɵɵdirectiveInject","AppSettingsService","FilestackService","MatDialogRef","MAT_DIALOG_DATA","selectors","decls","vars","consts","template","rf","ctx","FilePreviewDialogComponent_div_3_Template","FilePreviewDialogComponent_ng_container_4_Template","displayName","extension","ɵɵsanitizeHtml","undefined","_FilePreviewDialogComponent","StorageObjectDataService","constructor","http","filestackService","appSettingsService","dialog","BASE_ENDPOINT","getSearchOptionsToQuerystring","options","query","filter","sortOrder","pageNumber","pageSize","holdingId","storageObjectParentId","orderBy","foldersOnly","toString","toLowerCase","searchGlobally","fromDate","toISOString","toDate","getFile","storageObjectId","getTyped","pipe","catchError","err","throwError","getRecursive","storageObjectIds","postTyped","getStorageObjects","querystring","getLpDocuments","getQuota","sessionId","params","HttpParams","append","getFilestackPolicy","createFolder","model","url","validateFolderName","createFilesLp","investingEntityId","createFiles","rename","displayName","HoldingStorageObjectReqRes","putTyped","delete","storageFileId","deleteMultiple","storageFileIds","getAllFoldersForHolding","move","destinationFolderStorageObjectId","share","getShareSuggestions","parameters","postShareSuggestions","matches","personalMessage","sendShareEmails","refreshSessionData","setPermissions","previewFile","storageObject","openIn","clientOptions","security","policy","filestackPolicy","signature","filestackSignature","init","fileStackApiKey","preview","filestackHandle","open","FilePreviewDialogComponent","data","afterClosed","subscribe","download","getDownloadToken","id","error","tap","response","downloadUrlWithToken","token","downloadUrl","getFullUrl","link","document","createElement","href","target","dispatchEvent","MouseEvent","ɵɵinject","HttpService","FilestackService","AppSettingsService","MatDialog","factory","ɵfac","providedIn","_StorageObjectDataService","_c0","a0","_c1","a1","_c2","_c3","_c4","MultiSelectItem_ng_container_3_CheckIcon_1_Template","rf","ctx","ɵɵelement","ɵɵproperty","ɵɵattribute","MultiSelectItem_ng_container_3_span_2_1_ng_template_0_Template","MultiSelectItem_ng_container_3_span_2_1_Template","ɵɵtemplate","MultiSelectItem_ng_container_3_span_2_Template","ɵɵelementStart","ɵɵelementEnd","ctx_r0","ɵɵnextContext","ɵɵadvance","MultiSelectItem_ng_container_3_span_3_1_ng_template_0_Template","MultiSelectItem_ng_container_3_span_3_1_Template","MultiSelectItem_ng_container_3_span_3_Template","ɵɵpureFunction1","MultiSelectItem_ng_container_3_Template","ɵɵelementContainerStart","ɵɵelementContainerEnd","MultiSelectItem_span_4_Template","ɵɵtext","tmp_1_0","ɵɵtextInterpolate","MultiSelectItem_ng_container_5_Template","ɵɵelementContainer","_c5","_c6","_c7","_c8","_c9","_c10","_c11","_c12","_c13","_c14","_c15","_c16","_c17","_c18","_c19","_c20","_c21","a2","_c22","_c23","_c24","MultiSelect_ng_container_7_ng_container_1_Template","ctx_r1","MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_TimesCircleIcon_1_Template","_r3","ɵɵgetCurrentView","ɵɵlistener","ɵɵrestoreView","item_r4","ɵɵresetView","MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_span_2_ng_container_1_Template","MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_span_2_Template","_r5","MultiSelect_ng_container_7_ng_container_2_div_1_ng_container_4_Template","MultiSelect_ng_container_7_ng_container_2_div_1_Template","MultiSelect_ng_container_7_ng_container_2_ng_container_2_Template","MultiSelect_ng_container_7_ng_container_2_Template","MultiSelect_ng_container_7_Template","MultiSelect_ng_container_8_Template","MultiSelect_ng_container_9_TimesIcon_1_Template","_r6","$event","MultiSelect_ng_container_9_span_2_1_ng_template_0_Template","MultiSelect_ng_container_9_span_2_1_Template","MultiSelect_ng_container_9_span_2_Template","_r7","MultiSelect_ng_container_9_Template","MultiSelect_ng_container_11_ng_container_1_ng_container_1_Template","MultiSelect_ng_container_11_ng_container_1_Template","MultiSelect_ng_container_11_ng_container_2_span_1_Template","MultiSelect_ng_container_11_ng_container_2_span_2_Template","ɵɵclassMap","MultiSelect_ng_container_11_ng_container_2_Template","MultiSelect_ng_container_11_Template","MultiSelect_ng_template_12_ng_container_0_span_1_Template","MultiSelect_ng_template_12_ng_container_0_ChevronDownIcon_2_Template","MultiSelect_ng_template_12_ng_container_0_Template","MultiSelect_ng_template_12_span_1_1_ng_template_0_Template","MultiSelect_ng_template_12_span_1_1_Template","MultiSelect_ng_template_12_span_1_Template","MultiSelect_ng_template_12_Template","MultiSelect_ng_template_16_div_3_ng_container_2_Template","MultiSelect_ng_template_16_div_3_ng_container_3_ng_container_1_Template","MultiSelect_ng_template_16_div_3_ng_container_3_Template","MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_ng_container_1_CheckIcon_1_Template","MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_ng_container_1_Template","MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_1_ng_template_0_Template","MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_1_Template","MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_2_Template","MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_1_ng_template_0_Template","MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_1_Template","MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_span_3_Template","ɵɵpureFunction2","MultiSelect_ng_template_16_div_3_ng_template_4_div_0_ng_container_5_Template","MultiSelect_ng_template_16_div_3_ng_template_4_div_0_Template","_r10","ɵɵpureFunction3","MultiSelect_ng_template_16_div_3_ng_template_4_div_1_SearchIcon_3_Template","MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_1_ng_template_0_Template","MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_1_Template","MultiSelect_ng_template_16_div_3_ng_template_4_div_1_span_4_Template","MultiSelect_ng_template_16_div_3_ng_template_4_div_1_Template","_r11","MultiSelect_ng_template_16_div_3_ng_template_4_TimesIcon_3_Template","MultiSelect_ng_template_16_div_3_ng_template_4_span_4_1_ng_template_0_Template","MultiSelect_ng_template_16_div_3_ng_template_4_span_4_1_Template","MultiSelect_ng_template_16_div_3_ng_template_4_span_4_Template","MultiSelect_ng_template_16_div_3_ng_template_4_Template","_r9","MultiSelect_ng_template_16_div_3_Template","ɵɵprojection","ɵɵtemplateRefExtractor","builtInFilterElement_r12","ɵɵreference","MultiSelect_ng_template_16_p_scroller_5_ng_template_2_ng_container_0_Template","MultiSelect_ng_template_16_p_scroller_5_ng_template_2_Template","items_r14","scrollerOptions_r15","buildInItems_r16","MultiSelect_ng_template_16_p_scroller_5_ng_container_3_ng_template_1_ng_container_0_Template","MultiSelect_ng_template_16_p_scroller_5_ng_container_3_ng_template_1_Template","scrollerOptions_r17","MultiSelect_ng_template_16_p_scroller_5_ng_container_3_Template","MultiSelect_ng_template_16_p_scroller_5_Template","_r13","ɵɵstyleMap","MultiSelect_ng_template_16_ng_container_6_ng_container_1_Template","MultiSelect_ng_template_16_ng_container_6_Template","ɵɵpureFunction0","MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_span_2_Template","option_r18","MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_ng_container_3_Template","MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_0_Template","ctx_r18","i_r20","scrollerOptions_r21","MultiSelect_ng_template_16_ng_template_7_ng_template_2_ng_container_1_Template","_r22","MultiSelect_ng_template_16_ng_template_7_ng_template_2_Template","MultiSelect_ng_template_16_ng_template_7_li_3_ng_container_1_Template","ɵɵtextInterpolate1","MultiSelect_ng_template_16_ng_template_7_li_3_ng_container_2_Template","MultiSelect_ng_template_16_ng_template_7_li_3_Template","MultiSelect_ng_template_16_ng_template_7_li_4_ng_container_1_Template","MultiSelect_ng_template_16_ng_template_7_li_4_ng_container_2_Template","MultiSelect_ng_template_16_ng_template_7_li_4_Template","MultiSelect_ng_template_16_ng_template_7_Template","items_r23","MultiSelect_ng_template_16_div_9_ng_container_2_Template","MultiSelect_ng_template_16_div_9_Template","MultiSelect_ng_template_16_Template","_r8","MULTISELECT_VALUE_ACCESSOR","NG_VALUE_ACCESSOR","forwardRef","MultiSelect","MultiSelectItem","EventEmitter","config","event","ɵɵdirectiveInject","PrimeNGConfig","ɵɵdefineComponent","booleanAttribute","numberAttribute","ɵɵInputTransformsFeature","NgClass","NgIf","NgTemplateOutlet","NgStyle","Ripple","CheckIcon","val","ObjectUtils","value","signal","TranslationKeys","computed","options","isArrayOfObjects","filteredOptions","option","optionGroups","filtered","group","filteredItems","item","__spreadProps","__spreadValues","label","modelValue","el","renderer","cd","zone","filterService","overlayService","effect","visibleOptions","UniqueComponentId","result","index","optionGroupChildren","o","isFocus","originalEvent","selected","DomHandler","start","end","rangeStart","rangeEnd","firstCheckUp","matchedOptionIndex","selectedIndex","optionValue","scrollerOptions","matchedOption","pattern","message","optionGroup","metaKey","pressedInInputText","optionIndex","currentTarget","len","focusableEl","focusedOptionIndex","selectedDisabledOptions","optionValues","id","element","fn","selectedListItem","nextItem","prevItem","char","matched","filteredGroups","optgroup","filteredSubOptions","ElementRef","Renderer2","ChangeDetectorRef","NgZone","FilterService","OverlayService","dirIndex","ɵɵcontentQuery","Footer","Header","PrimeTemplate","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵviewQuery","ɵɵclassProp","ɵɵProvidersFeature","_r1","ɵɵprojectionDef","ɵɵtwoWayListener","ɵɵtwoWayBindingSet","tmp_19_0","elseBlock_r24","ɵɵtwoWayProperty","NgForOf","Overlay","Tooltip","Scroller","AutoFocus","SearchIcon","TimesCircleIcon","TimesIcon","ChevronDownIcon","MultiSelectModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","OverlayModule","SharedModule","TooltipModule","RippleModule","ScrollerModule","AutoFocusModule","MinusIcon"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,10,11,14,15,16,17,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,42,44,45,49,50,51,52,53,54,85,101,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,151]}