@bitblit/ngx-acute-common 5.0.515-alpha → 5.0.516-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm2022/ngx-acute-common.mjs +514 -0
- package/lib/esm2022/ngx-acute-common.mjs.map +1 -0
- package/package.json +5 -10
- package/lib/my-angular-library.cjs.js +0 -7
- package/lib/my-angular-library.cjs.js.map +0 -1
- package/lib/my-angular-library.esm.js +0 -7
- package/lib/my-angular-library.esm.js.map +0 -1
- package/lib/my-angular-library.umd.js +0 -7
- package/lib/my-angular-library.umd.js.map +0 -1
- /package/lib/{build → esm2022/build}/ngx-acute-common-info.d.ts +0 -0
- /package/lib/{components → esm2022/components}/dialogs/alert/alert.component.d.ts +0 -0
- /package/lib/{components → esm2022/components}/dialogs/block-ui/block-ui.component.d.ts +0 -0
- /package/lib/{index.d.ts → esm2022/index.d.ts} +0 -0
- /package/lib/{model → esm2022/model}/google-analytics-config.d.ts +0 -0
- /package/lib/{pipes → esm2022/pipes}/capitalize.pipe.d.ts +0 -0
- /package/lib/{pipes → esm2022/pipes}/dollar-formatted.pipe.d.ts +0 -0
- /package/lib/{pipes → esm2022/pipes}/map-values.pipe.d.ts +0 -0
- /package/lib/{pipes → esm2022/pipes}/number-with-commas.pipe.d.ts +0 -0
- /package/lib/{pipes → esm2022/pipes}/order-by.pipe.d.ts +0 -0
- /package/lib/{pipes → esm2022/pipes}/percent-formatted.pipe.d.ts +0 -0
- /package/lib/{pipes → esm2022/pipes}/plural.pipe.d.ts +0 -0
- /package/lib/{pipes → esm2022/pipes}/round.pipe.d.ts +0 -0
- /package/lib/{pipes → esm2022/pipes}/time-ago-formatted.pipe.d.ts +0 -0
- /package/lib/{pipes → esm2022/pipes}/timing.pipe.d.ts +0 -0
- /package/lib/{services → esm2022/services}/google-analytics.service.d.ts +0 -0
- /package/lib/{services → esm2022/services}/graphql-query.service.d.ts +0 -0
- /package/lib/{services → esm2022/services}/local-storage.service.d.ts +0 -0
- /package/lib/{services → esm2022/services}/window-ref.service.d.ts +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@angular/core"),t=require("@angular/common"),n=require("rxjs"),i=require("@angular/router");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var s,o=r(e),a=r(t);function l(e,t,n,i){var r,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}"function"==typeof SuppressedError&&SuppressedError;class u{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,t){e&&t&&(e.classList?e.classList.add(t):e.className+=" "+t)}static addMultipleClasses(e,t){if(e&&t)if(e.classList){let n=t.trim().split(" ");for(let t=0;t<n.length;t++)e.classList.add(n[t])}else{let n=t.split(" ");for(let t=0;t<n.length;t++)e.className+=" "+n[t]}}static removeClass(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(e,t){e&&t&&[t].flat().filter(Boolean).forEach((t=>t.split(" ").forEach((t=>this.removeClass(e,t)))))}static hasClass(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,(function(t){return t!==e}))}static find(e,t){return Array.from(e.querySelectorAll(t))}static findSingle(e,t){return this.isElement(e)?e.querySelector(t):null}static index(e){let t=e.parentNode.childNodes,n=0;for(var i=0;i<t.length;i++){if(t[i]==e)return n;1==t[i].nodeType&&n++}return-1}static indexWithinGroup(e,t){let n=e.parentNode?e.parentNode.childNodes:[],i=0;for(var r=0;r<n.length;r++){if(n[r]==e)return i;n[r].attributes&&n[r].attributes[t]&&1==n[r].nodeType&&i++}return-1}static appendOverlay(e,t,n="self"){"self"!==n&&e&&t&&this.appendChild(e,t)}static alignOverlay(e,t,n="self",i=!0){e&&t&&(i&&(e.style.minWidth=`${u.getOuterWidth(t)}px`),"self"===n?this.relativePosition(e,t):this.absolutePosition(e,t))}static relativePosition(e,t,n=!0){const i=e=>{if(e)return"relative"===getComputedStyle(e).getPropertyValue("position")?e:i(e.parentElement)},r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=t.offsetHeight??t.getBoundingClientRect().height,o=t.getBoundingClientRect(),a=this.getWindowScrollTop(),l=this.getWindowScrollLeft(),c=this.getViewport(),u=i(e),d=u?.getBoundingClientRect()||{top:-1*a,left:-1*l};let h,p;o.top+s+r.height>c.height?(h=o.top-d.top-r.height,e.style.transformOrigin="bottom",o.top+h<0&&(h=-1*o.top)):(h=s+o.top-d.top,e.style.transformOrigin="top");const m=o.left+r.width-c.width,f=o.left-d.left;p=r.width>c.width?-1*(o.left-d.left):m>0?f-m:o.left-d.left,e.style.top=h+"px",e.style.left=p+"px",n&&(e.style.marginTop="bottom"===origin?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static absolutePosition(e,t,n=!0){const i=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=i.height,s=i.width,o=t.offsetHeight??t.getBoundingClientRect().height,a=t.offsetWidth??t.getBoundingClientRect().width,l=t.getBoundingClientRect(),c=this.getWindowScrollTop(),u=this.getWindowScrollLeft(),d=this.getViewport();let h,p;l.top+o+r>d.height?(h=l.top+c-r,e.style.transformOrigin="bottom",h<0&&(h=c)):(h=o+l.top+c,e.style.transformOrigin="top"),p=l.left+s>d.width?Math.max(0,l.left+u+a-s):l.left+u,e.style.top=h+"px",e.style.left=p+"px",n&&(e.style.marginTop="bottom"===origin?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(e,t=[]){return null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))}static getScrollableParents(e){let t=[];if(e){let n=this.getParents(e);const i=/(auto|scroll)/,r=e=>{let t=window.getComputedStyle(e,null);return i.test(t.getPropertyValue("overflow"))||i.test(t.getPropertyValue("overflowX"))||i.test(t.getPropertyValue("overflowY"))};for(let e of n){let n=1===e.nodeType&&e.dataset.scrollselectors;if(n){let i=n.split(",");for(let n of i){let i=this.findSingle(e,n);i&&r(i)&&t.push(i)}}9!==e.nodeType&&r(e)&&t.push(e)}}return t}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t}static getHiddenElementDimensions(e){let t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t}static scrollInView(e,t){let n=getComputedStyle(e).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),s=r?parseFloat(r):0,o=e.getBoundingClientRect(),a=t.getBoundingClientRect().top+document.body.scrollTop-(o.top+document.body.scrollTop)-i-s,l=e.scrollTop,c=e.clientHeight,u=this.getOuterHeight(t);a<0?e.scrollTop=l+a:a+u>c&&(e.scrollTop=l+a-c+u)}static fadeIn(e,t){e.style.opacity=0;let n=+new Date,i=0,r=function(){i=+e.style.opacity.replace(",",".")+((new Date).getTime()-n)/t,e.style.opacity=i,n=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}static fadeOut(e,t){var n=1,i=50/t;let r=setInterval((()=>{(n-=i)<=0&&(n=0,clearInterval(r)),e.style.opacity=n}),50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,t){var n=Element.prototype,i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(e){return-1!==[].indexOf.call(document.querySelectorAll(e),this)};return i.call(e,t)}static getOuterWidth(e,t){let n=e.offsetWidth;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginLeft)+parseFloat(t.marginRight)}return n}static getHorizontalPadding(e){let t=getComputedStyle(e);return parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)}static getHorizontalMargin(e){let t=getComputedStyle(e);return parseFloat(t.marginLeft)+parseFloat(t.marginRight)}static innerWidth(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}static width(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),t}static getInnerHeight(e){let t=e.offsetHeight,n=getComputedStyle(e);return t+=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),t}static getOuterHeight(e,t){let n=e.offsetHeight;if(t){let t=getComputedStyle(e);n+=parseFloat(t.marginTop)+parseFloat(t.marginBottom)}return n}static getHeight(e){let t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),t}static getWidth(e){let t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),t}static getViewport(){let e=window,t=document,n=t.documentElement,i=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||i.clientWidth,height:e.innerHeight||n.clientHeight||i.clientHeight}}static getOffset(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,t){let n=e.parentNode;if(!n)throw"Can't replace element";return n.replaceChild(t,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,t){if(this.isElement(t))t.appendChild(e);else{if(!(t&&t.el&&t.el.nativeElement))throw"Cannot append "+t+" to "+e;t.el.nativeElement.appendChild(e)}}static removeChild(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw"Cannot remove "+e+" from "+t;t.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let t=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t}static invokeElementMethod(e,t,n){e[t].apply(e,n)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!=e&&e.nodeName&&e.parentNode}static focus(e,t){e&&document.activeElement!==e&&e.focus(t)}static getFocusableSelectorString(e=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`}static getFocusableElements(e,t=""){let n=this.find(e,this.getFocusableSelectorString(t)),i=[];for(let e of n){const t=getComputedStyle(e);this.isVisible(e)&&"none"!=t.display&&"hidden"!=t.visibility&&i.push(e)}return i}static getFocusableElement(e,t=""){let n=this.findSingle(e,this.getFocusableSelectorString(t));if(n){const e=getComputedStyle(n);if(this.isVisible(n)&&"none"!=e.display&&"hidden"!=e.visibility)return n}return null}static getFirstFocusableElement(e,t=""){const n=this.getFocusableElements(e,t);return n.length>0?n[0]:null}static getLastFocusableElement(e,t){const n=this.getFocusableElements(e,t);return n.length>0?n[n.length-1]:null}static getNextFocusableElement(e,t=!1){const n=u.getFocusableElements(e);let i=0;if(n&&n.length>0){const e=n.indexOf(n[0].ownerDocument.activeElement);t?i=-1==e||0===e?n.length-1:e-1:-1!=e&&e!==n.length-1&&(i=e+1)}return n[i]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,t){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return t?.nextElementSibling;case"@prev":return t?.previousElementSibling;case"@parent":return t?.parentElement;case"@grandparent":return t?.parentElement.parentElement;default:const n=typeof e;if("string"===n)return document.querySelector(e);if("object"===n&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const i=(e=>!!(e&&e.constructor&&e.call&&e.apply))(e)?e():e;return i&&9===i.nodeType||this.isExist(i)?i:null}}static isClient(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}static getAttribute(e,t){if(e){const n=e.getAttribute(t);return isNaN(n)?"true"===n||"false"===n?"true"===n:n:+n}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}static createElement(e,t={},...n){if(e){const i=document.createElement(e);return this.setAttributes(i,t),i.append(...n),i}}static setAttribute(e,t="",n){this.isElement(e)&&null!=n&&e.setAttribute(t,n)}static setAttributes(e,t={}){if(this.isElement(e)){const n=(t,i)=>{const r=e?.$attrs?.[t]?[e?.$attrs?.[t]]:[];return[i].flat().reduce(((e,i)=>{if(null!=i){const r=typeof i;if("string"===r||"number"===r)e.push(i);else if("object"===r){const r=Array.isArray(i)?n(t,i):Object.entries(i).map((([e,n])=>"style"!==t||!n&&0!==n?n?e:void 0:`${e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${n}`));e=r.length?e.concat(r.filter((e=>!!e))):e}}return e}),r)};Object.entries(t).forEach((([t,i])=>{if(null!=i){const r=t.match(/^on(.+)/);r?e.addEventListener(r[1].toLowerCase(),i):"pBind"===t?this.setAttributes(e,i):(i="class"===t?[...new Set(n("class",i))].join(" ").trim():"style"===t?n("style",i).join(";").trim():i,(e.$attrs=e.$attrs||{})&&(e.$attrs[t]=i),e.setAttribute(t,i))}}))}}static isFocusableElement(e,t=""){return!!this.isElement(e)&&e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${t}`)}}
|
|
2
|
-
/**
|
|
3
|
-
* @license Angular v18.2.8
|
|
4
|
-
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
|
-
* License: MIT
|
|
6
|
-
*/function d(e,t){return{type:s.Trigger,name:e,definitions:t,options:{}}}function h(e,t=null){return{type:s.Animate,styles:t,timings:e}}function p(e){return{type:s.Style,styles:e,offset:null}}function m(e,t,n=null){return{type:s.Transition,expr:e,animation:t,options:n}}function f(e,t=null){return{type:s.Reference,animation:e,options:t}}function g(e,t=null){return{type:s.AnimateRef,animation:e,options:t}}!function(e){e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger"}(s||(s={}));class y{static{this.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.2.8",ngImport:o,type:y,deps:[],target:o.ɵɵFactoryTarget.Injectable})}static{this.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.2.8",ngImport:o,type:y,providedIn:"root",useFactory:()=>e.inject(b)})}}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.2.8",ngImport:o,type:y,decorators:[{type:e.Injectable,args:[{providedIn:"root",useFactory:()=>e.inject(b)}]}]});class v{}class b extends y{constructor(t,n){super(),this.animationModuleType=e.inject(e.ANIMATION_MODULE_TYPE,{optional:!0}),this._nextAnimationId=0;const i={id:"0",encapsulation:e.ViewEncapsulation.None,styles:[],data:{animation:[]}};if(this._renderer=t.createRenderer(n.body,i),null===this.animationModuleType&&!function(e){const t=e.ɵtype;return 0===t||1===t}(this._renderer))throw new e.ɵRuntimeError(3600,("undefined"==typeof ngDevMode||ngDevMode)&&"Angular detected that the `AnimationBuilder` was injected, but animation support was not enabled. Please make sure that you enable animations in your application by calling `provideAnimations()` or `provideAnimationsAsync()` function.")}build(e){const t=this._nextAnimationId;this._nextAnimationId++;const n=Array.isArray(e)?function(e,t=null){return{type:s.Sequence,steps:e,options:t}}(e):e;return T(this._renderer,null,t,"register",[n]),new w(t,this._renderer)}static{this.ɵfac=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.2.8",ngImport:o,type:b,deps:[{token:o.RendererFactory2},{token:t.DOCUMENT}],target:o.ɵɵFactoryTarget.Injectable})}static{this.ɵprov=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.2.8",ngImport:o,type:b,providedIn:"root"})}}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.2.8",ngImport:o,type:b,decorators:[{type:e.Injectable,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:o.RendererFactory2},{type:Document,decorators:[{type:e.Inject,args:[t.DOCUMENT]}]}]});class w extends v{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new C(this._id,e,t||{},this._renderer)}}class C{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){T(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return function(e){const t=e.ɵtype;if(0===t)return e;if(1===t)return e.animationRenderer;return null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function T(e,t,n,i,r){e.setProperty(t,`@@${n}:${i}`,r)}class E{static isArray(e,t=!0){return Array.isArray(e)&&(t||0!==e.length)}static isObject(e,t=!0){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&(t||0!==Object.keys(e).length)}static equals(e,t,n){return n?this.resolveFieldData(e,n)===this.resolveFieldData(t,n):this.equalsByValue(e,t)}static equalsByValue(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,i,r,s=Array.isArray(e),o=Array.isArray(t);if(s&&o){if((i=e.length)!=t.length)return!1;for(n=i;0!=n--;)if(!this.equalsByValue(e[n],t[n]))return!1;return!0}if(s!=o)return!1;var a=this.isDate(e),l=this.isDate(t);if(a!=l)return!1;if(a&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=Object.keys(e);if((i=d.length)!==Object.keys(t).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,d[n]))return!1;for(n=i;0!=n--;)if(r=d[n],!this.equalsByValue(e[r],t[r]))return!1;return!0}return e!=e&&t!=t}static resolveFieldData(e,t){if(e&&t){if(this.isFunction(t))return t(e);if(-1==t.indexOf("."))return e[t];{let n=t.split("."),i=e;for(let e=0,t=n.length;e<t;++e){if(null==i)return null;i=i[n[e]]}return i}}return null}static isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)}static reorderArray(e,t,n){e&&t!==n&&(n>=e.length&&(n%=e.length,t%=e.length),e.splice(n,0,e.splice(t,1)[0]))}static insertIntoOrderedArray(e,t,n,i){if(n.length>0){let r=!1;for(let s=0;s<n.length;s++){if(this.findIndexInList(n[s],i)>t){n.splice(s,0,e),r=!0;break}}r||n.push(e)}else n.push(e)}static findIndexInList(e,t){let n=-1;if(t)for(let i=0;i<t.length;i++)if(t[i]==e){n=i;break}return n}static contains(e,t){if(null!=e&&t&&t.length)for(let n of t)if(this.equals(e,n))return!0;return!1}static removeAccents(e){return e&&(e=e.normalize("NFKD").replace(/\p{Diacritic}/gu,"")),e}static isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}static isEmpty(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!this.isDate(e)&&"object"==typeof e&&0===Object.keys(e).length}static isNotEmpty(e){return!this.isEmpty(e)}static compare(e,t,n,i=1){let r=-1;const s=this.isEmpty(e),o=this.isEmpty(t);return r=s&&o?0:s?i:o?-i:"string"==typeof e&&"string"==typeof t?e.localeCompare(t,n,{numeric:!0}):e<t?-1:e>t?1:0,r}static sort(e,t,n=1,i,r=1){const s=E.compare(e,t,i,n);let o=n;return(E.isEmpty(e)||E.isEmpty(t))&&(o=1===r?n:r),o*s}static merge(e,t){if(null!=e||null!=t)return null!=e&&"object"!=typeof e||null!=t&&"object"!=typeof t?null!=e&&"string"!=typeof e||null!=t&&"string"!=typeof t?t||e:[e||"",t||""].join(" "):{...e||{},...t||{}}}static isPrintableCharacter(e=""){return this.isNotEmpty(e)&&1===e.length&&e.match(/\S| /)}static getItemValue(e,...t){return this.isFunction(e)?e(...t):e}static findLastIndex(e,t){let n=-1;if(this.isNotEmpty(e))try{n=e.findLastIndex(t)}catch{n=e.lastIndexOf([...e].reverse().find(t))}return n}static findLast(e,t){let n;if(this.isNotEmpty(e))try{n=e.findLast(t)}catch{n=[...e].reverse().find(t)}return n}static deepEquals(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,i,r,s=Array.isArray(e),o=Array.isArray(t);if(s&&o){if((i=e.length)!=t.length)return!1;for(n=i;0!=n--;)if(!this.deepEquals(e[n],t[n]))return!1;return!0}if(s!=o)return!1;var a=e instanceof Date,l=t instanceof Date;if(a!=l)return!1;if(a&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=Object.keys(e);if((i=d.length)!==Object.keys(t).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,d[n]))return!1;for(n=i;0!=n--;)if(r=d[n],!this.deepEquals(e[r],t[r]))return!1;return!0}return e!=e&&t!=t}}var S=0;function I(e="pn_id_"){return`${e}${++S}`}var N,x=function(){let e=[];const t=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:t,set:(t,n,i)=>{n&&(n.style.zIndex=String(((t,n)=>{let i=e.length>0?e[e.length-1]:{key:t,value:n},r=i.value+(i.key===t?0:n)+2;return e.push({key:t,value:r}),r})(t,i)))},clear:n=>{var i;n&&(i=t(n),e=e.filter((e=>e.value!==i)),n.style.zIndex="")},getCurrent:()=>e.length>0?e[e.length-1].value:0}}();!function(e){e[e.ACCEPT=0]="ACCEPT",e[e.REJECT=1]="REJECT",e[e.CANCEL=2]="CANCEL"}(N||(N={}));class O{requireConfirmationSource=new n.Subject;acceptConfirmationSource=new n.Subject;requireConfirmation$=this.requireConfirmationSource.asObservable();accept=this.acceptConfirmationSource.asObservable();confirm(e){return this.requireConfirmationSource.next(e),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:O,deps:[],target:o.ɵɵFactoryTarget.Injectable});static"ɵprov"=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:O})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:O,decorators:[{type:e.Injectable}]});class D{activeItemKeyChange=new n.Subject;activeItemKeyChange$=this.activeItemKeyChange.asObservable();activeItemKey;changeKey(e){this.activeItemKey=e,this.activeItemKeyChange.next(this.activeItemKey)}reset(){this.activeItemKey=null,this.activeItemKeyChange.next(this.activeItemKey)}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:D,deps:[],target:o.ɵɵFactoryTarget.Injectable});static"ɵprov"=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:D})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:D,decorators:[{type:e.Injectable}]});class k{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}class A{filter(e,t,n,i,r){let s=[];if(e)for(let o of e)for(let e of t){let t=E.resolveFieldData(o,e);if(this.filters[i](t,n,r)){s.push(o);break}}return s}filters={startsWith:(e,t,n)=>{if(null==t||""===t.trim())return!0;if(null==e)return!1;let i=E.removeAccents(t.toString()).toLocaleLowerCase(n);return E.removeAccents(e.toString()).toLocaleLowerCase(n).slice(0,i.length)===i},contains:(e,t,n)=>{if(null==t||"string"==typeof t&&""===t.trim())return!0;if(null==e)return!1;let i=E.removeAccents(t.toString()).toLocaleLowerCase(n);return-1!==E.removeAccents(e.toString()).toLocaleLowerCase(n).indexOf(i)},notContains:(e,t,n)=>{if(null==t||"string"==typeof t&&""===t.trim())return!0;if(null==e)return!1;let i=E.removeAccents(t.toString()).toLocaleLowerCase(n);return-1===E.removeAccents(e.toString()).toLocaleLowerCase(n).indexOf(i)},endsWith:(e,t,n)=>{if(null==t||""===t.trim())return!0;if(null==e)return!1;let i=E.removeAccents(t.toString()).toLocaleLowerCase(n),r=E.removeAccents(e.toString()).toLocaleLowerCase(n);return-1!==r.indexOf(i,r.length-i.length)},equals:(e,t,n)=>null==t||"string"==typeof t&&""===t.trim()||null!=e&&(e.getTime&&t.getTime?e.getTime()===t.getTime():e==t||E.removeAccents(e.toString()).toLocaleLowerCase(n)==E.removeAccents(t.toString()).toLocaleLowerCase(n)),notEquals:(e,t,n)=>null!=t&&("string"!=typeof t||""!==t.trim())&&(null==e||(e.getTime&&t.getTime?e.getTime()!==t.getTime():e!=t&&E.removeAccents(e.toString()).toLocaleLowerCase(n)!=E.removeAccents(t.toString()).toLocaleLowerCase(n))),in:(e,t)=>{if(null==t||0===t.length)return!0;for(let n=0;n<t.length;n++)if(E.equals(e,t[n]))return!0;return!1},between:(e,t)=>null==t||null==t[0]||null==t[1]||null!=e&&(e.getTime?t[0].getTime()<=e.getTime()&&e.getTime()<=t[1].getTime():t[0]<=e&&e<=t[1]),lt:(e,t,n)=>null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()<t.getTime():e<t),lte:(e,t,n)=>null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()<=t.getTime():e<=t),gt:(e,t,n)=>null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()>t.getTime():e>t),gte:(e,t,n)=>null==t||null!=e&&(e.getTime&&t.getTime?e.getTime()>=t.getTime():e>=t),is:(e,t,n)=>this.filters.equals(e,t,n),isNot:(e,t,n)=>this.filters.notEquals(e,t,n),before:(e,t,n)=>this.filters.lt(e,t,n),after:(e,t,n)=>this.filters.gt(e,t,n),dateIs:(e,t)=>null==t||null!=e&&e.toDateString()===t.toDateString(),dateIsNot:(e,t)=>null==t||null!=e&&e.toDateString()!==t.toDateString(),dateBefore:(e,t)=>null==t||null!=e&&e.getTime()<t.getTime(),dateAfter:(e,t)=>{if(null==t)return!0;if(null==e)return!1;const n=new Date(e);return n.setHours(0,0,0,0),n.getTime()>t.getTime()}};register(e,t){this.filters[e]=t}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:A,deps:[],target:o.ɵɵFactoryTarget.Injectable});static"ɵprov"=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:A,providedIn:"root"})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:A,decorators:[{type:e.Injectable,args:[{providedIn:"root"}]}]});class L{messageSource=new n.Subject;clearSource=new n.Subject;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:L,deps:[],target:o.ɵɵFactoryTarget.Injectable});static"ɵprov"=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:L})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:L,decorators:[{type:e.Injectable}]});class _{clickSource=new n.Subject;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:_,deps:[],target:o.ɵɵFactoryTarget.Injectable});static"ɵprov"=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:_,providedIn:"root"})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:_,decorators:[{type:e.Injectable,args:[{providedIn:"root"}]}]});class M{ripple=!1;inputStyle=e.signal("outlined");overlayOptions={};csp=e.signal({nonce:void 0});filterMatchModeOptions={text:[k.STARTS_WITH,k.CONTAINS,k.NOT_CONTAINS,k.ENDS_WITH,k.EQUALS,k.NOT_EQUALS],numeric:[k.EQUALS,k.NOT_EQUALS,k.LESS_THAN,k.LESS_THAN_OR_EQUAL_TO,k.GREATER_THAN,k.GREATER_THAN_OR_EQUAL_TO],date:[k.DATE_IS,k.DATE_IS_NOT,k.DATE_BEFORE,k.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new n.Subject;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:M,deps:[],target:o.ɵɵFactoryTarget.Injectable});static"ɵprov"=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:M,providedIn:"root"})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:M,decorators:[{type:e.Injectable,args:[{providedIn:"root"}]}]});class F{static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:F,deps:[],target:o.ɵɵFactoryTarget.Component});static"ɵcmp"=o.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:F,isStandalone:!0,selector:"p-header",ngImport:o,template:"<ng-content></ng-content>",isInline:!0})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:F,decorators:[{type:e.Component,args:[{selector:"p-header",standalone:!0,template:"<ng-content></ng-content>"}]}]});class R{static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:R,deps:[],target:o.ɵɵFactoryTarget.Component});static"ɵcmp"=o.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:R,isStandalone:!0,selector:"p-footer",ngImport:o,template:"<ng-content></ng-content>",isInline:!0})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:R,decorators:[{type:e.Component,args:[{selector:"p-footer",standalone:!0,template:"<ng-content></ng-content>"}]}]});class V{template;type;name;constructor(e){this.template=e}getType(){return this.name}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:V,deps:[{token:o.TemplateRef}],target:o.ɵɵFactoryTarget.Directive});static"ɵdir"=o.ɵɵngDeclareDirective({minVersion:"14.0.0",version:"18.0.1",type:V,isStandalone:!0,selector:"[pTemplate]",inputs:{type:"type",name:["pTemplate","name"]},ngImport:o})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:V,decorators:[{type:e.Directive,args:[{selector:"[pTemplate]",standalone:!0,host:{}}]}],ctorParameters:()=>[{type:o.TemplateRef}],propDecorators:{type:[{type:e.Input}],name:[{type:e.Input,args:["pTemplate"]}]}});class P{static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:P,deps:[],target:o.ɵɵFactoryTarget.NgModule});static"ɵmod"=o.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:o,type:P,imports:[F,R,V],exports:[F,R,V]});static"ɵinj"=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:P})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:P,decorators:[{type:e.NgModule,args:[{imports:[F,R,V],exports:[F,R,V]}]}]});class j{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}class z{dragStartSource=new n.Subject;dragStopSource=new n.Subject;dragStart$=this.dragStartSource.asObservable();dragStop$=this.dragStopSource.asObservable();startDrag(e){this.dragStartSource.next(e)}stopDrag(e){this.dragStopSource.next(e)}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:z,deps:[],target:o.ɵɵFactoryTarget.Injectable});static"ɵprov"=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:z})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:z,decorators:[{type:e.Injectable}]});class B{pFocusTrapDisabled=!1;platformId=e.inject(e.PLATFORM_ID);host=e.inject(e.ElementRef);document=e.inject(t.DOCUMENT);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){t.isPlatformBrowser(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){e.pFocusTrapDisabled&&t.isPlatformBrowser(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){const e=e=>u.createElement("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:"0",role:"presentation","data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:e?.bind(this)});this.firstHiddenFocusableElement=e(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=e(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.host.nativeElement.prepend(this.firstHiddenFocusableElement),this.host.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){const{currentTarget:t,relatedTarget:n}=e,i=n!==this.lastHiddenFocusableElement&&this.host.nativeElement?.contains(n)?this.lastHiddenFocusableElement:u.getFirstFocusableElement(t.parentElement,":not(.p-hidden-focusable)");u.focus(i)}onLastHiddenElementFocus(e){const{currentTarget:t,relatedTarget:n}=e,i=n!==this.firstHiddenFocusableElement&&this.host.nativeElement?.contains(n)?this.firstHiddenFocusableElement:u.getLastFocusableElement(t.parentElement,":not(.p-hidden-focusable)");u.focus(i)}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:B,deps:[],target:o.ɵɵFactoryTarget.Directive});static"ɵdir"=o.ɵɵngDeclareDirective({minVersion:"16.1.0",version:"18.0.1",type:B,selector:"[pFocusTrap]",inputs:{pFocusTrapDisabled:["pFocusTrapDisabled","pFocusTrapDisabled",e.booleanAttribute]},host:{classAttribute:"p-element"},usesOnChanges:!0,ngImport:o})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:B,decorators:[{type:e.Directive,args:[{selector:"[pFocusTrap]",host:{class:"p-element"}}]}],propDecorators:{pFocusTrapDisabled:[{type:e.Input,args:[{transform:e.booleanAttribute}]}]}});class q{static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:q,deps:[],target:o.ɵɵFactoryTarget.NgModule});static"ɵmod"=o.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:o,type:q,declarations:[B],imports:[t.CommonModule],exports:[B]});static"ɵinj"=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:q,imports:[t.CommonModule]})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:q,decorators:[{type:e.NgModule,args:[{imports:[t.CommonModule],exports:[B],declarations:[B]}]}]});class U{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=E.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:U,deps:[],target:o.ɵɵFactoryTarget.Component});static"ɵcmp"=o.ɵɵngDeclareComponent({minVersion:"16.1.0",version:"18.0.1",type:U,isStandalone:!0,selector:"ng-component",inputs:{label:"label",spin:["spin","spin",e.booleanAttribute],styleClass:"styleClass"},host:{classAttribute:"p-element p-icon-wrapper"},ngImport:o,template:" <ng-content></ng-content> ",isInline:!0,changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:U,decorators:[{type:e.Component,args:[{template:" <ng-content></ng-content> ",standalone:!0,changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,host:{class:"p-element p-icon-wrapper"}}]}],propDecorators:{label:[{type:e.Input}],spin:[{type:e.Input,args:[{transform:e.booleanAttribute}]}],styleClass:[{type:e.Input}]}});class $ extends U{static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:$,deps:null,target:o.ɵɵFactoryTarget.Component});static"ɵcmp"=o.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:$,isStandalone:!0,selector:"TimesIcon",usesInheritance:!0,ngImport:o,template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <path\n d="M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z"\n fill="currentColor"\n />\n </svg>\n ',isInline:!0})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:$,decorators:[{type:e.Component,args:[{selector:"TimesIcon",standalone:!0,imports:[U],template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <path\n d="M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z"\n fill="currentColor"\n />\n </svg>\n '}]}]});class H extends U{pathId;ngOnInit(){this.pathId="url(#"+I()+")"}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:H,deps:null,target:o.ɵɵFactoryTarget.Component});static"ɵcmp"=o.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:H,isStandalone:!0,selector:"WindowMaximizeIcon",usesInheritance:!0,ngImport:o,template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <g [attr.clip-path]="pathId">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z"\n fill="currentColor"\n />\n </g>\n <defs>\n <clipPath [id]="pathId">\n <rect width="14" height="14" fill="white" />\n </clipPath>\n </defs>\n </svg>\n ',isInline:!0})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:H,decorators:[{type:e.Component,args:[{selector:"WindowMaximizeIcon",standalone:!0,imports:[U],template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <g [attr.clip-path]="pathId">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z"\n fill="currentColor"\n />\n </g>\n <defs>\n <clipPath [id]="pathId">\n <rect width="14" height="14" fill="white" />\n </clipPath>\n </defs>\n </svg>\n '}]}]});class W extends U{pathId;ngOnInit(){this.pathId="url(#"+I()+")"}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:W,deps:null,target:o.ɵɵFactoryTarget.Component});static"ɵcmp"=o.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:W,isStandalone:!0,selector:"WindowMinimizeIcon",usesInheritance:!0,ngImport:o,template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <g [attr.clip-path]="pathId">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z"\n fill="currentColor"\n />\n </g>\n <defs>\n <clipPath [id]="pathId">\n <rect width="14" height="14" fill="white" />\n </clipPath>\n </defs>\n </svg>\n ',isInline:!0})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:W,decorators:[{type:e.Component,args:[{selector:"WindowMinimizeIcon",standalone:!0,imports:[U],template:'\n <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" [attr.aria-label]="ariaLabel" [attr.aria-hidden]="ariaHidden" [attr.role]="role" [class]="getClassNames()">\n <g [attr.clip-path]="pathId">\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z"\n fill="currentColor"\n />\n </g>\n <defs>\n <clipPath [id]="pathId">\n <rect width="14" height="14" fill="white" />\n </clipPath>\n </defs>\n </svg>\n '}]}]});class Z{viewContainerRef;constructor(e){this.viewContainerRef=e}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:Z,deps:[{token:o.ViewContainerRef}],target:o.ɵɵFactoryTarget.Directive});static"ɵdir"=o.ɵɵngDeclareDirective({minVersion:"14.0.0",version:"18.0.1",type:Z,selector:"[pDynamicDialogContent]",host:{classAttribute:"p-element"},ngImport:o})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:Z,decorators:[{type:e.Directive,args:[{selector:"[pDynamicDialogContent]",host:{class:"p-element"}}]}],ctorParameters:()=>[{type:o.ViewContainerRef}]});class G{data;header;ariaLabelledBy;footer;width;height;closeOnEscape;focusOnShow=!0;focusOnClose=!0;focusTrap=!0;baseZIndex;autoZIndex;dismissableMask;rtl;style;contentStyle;styleClass;transitionOptions;closable;showHeader;modal;maskStyleClass;resizable;draggable;keepInViewport;minX;minY;maximizable;maximizeIcon;minimizeIcon;position;closeAriaLabel;appendTo;duplicate;breakpoints;templates}class Y{constructor(){}close(e){this._onClose.next(e),setTimeout((()=>{this._onClose.complete()}),1e3)}destroy(){this._onDestroy.next(null)}dragStart(e){this._onDragStart.next(e)}dragEnd(e){this._onDragEnd.next(e)}resizeInit(e){this._onResizeInit.next(e)}resizeEnd(e){this._onResizeEnd.next(e)}maximize(e){this._onMaximize.next(e)}_onClose=new n.Subject;onClose=this._onClose.asObservable();_onDestroy=new n.Subject;onDestroy=this._onDestroy.asObservable();_onDragStart=new n.Subject;onDragStart=this._onDragStart.asObservable();_onDragEnd=new n.Subject;onDragEnd=this._onDragEnd.asObservable();_onResizeInit=new n.Subject;onResizeInit=this._onResizeInit.asObservable();_onResizeEnd=new n.Subject;onResizeEnd=this._onResizeEnd.asObservable();_onMaximize=new n.Subject;onMaximize=this._onMaximize.asObservable();onChildComponentLoaded=new n.Subject}const J=f([p({transform:"{{transform}}",opacity:0}),h("{{transition}}",p({transform:"none",opacity:1}))]),K=f([h("{{transition}}",p({transform:"{{transform}}",opacity:0}))]);class Q{document;platformId;cd;renderer;config;dialogRef;zone;primeNGConfig;parentDialog;visible=!0;componentRef;mask;resizing;dragging;maximized;_style={};originalStyle;lastPageX;lastPageY;ariaLabelledBy;id=I();styleElement;insertionPoint;maskViewChild;contentViewChild;footerViewChild;headerViewChild;childComponentType;container;wrapper;documentKeydownListener;documentEscapeListener;maskClickListener;transformOptions="scale(0.7)";documentResizeListener;documentResizeEndListener;documentDragListener;documentDragEndListener;get minX(){return this.config.minX?this.config.minX:0}get minY(){return this.config.minY?this.config.minY:0}get keepInViewport(){return this.config.keepInViewport}get maximizable(){return this.config.maximizable}get maximizeIcon(){return this.config.maximizeIcon}get minimizeIcon(){return this.config.minimizeIcon}get style(){return this._style}get position(){return this.config.position}get closeAriaLabel(){return this.primeNGConfig.getTranslation(j.ARIA).close}set style(e){e&&(this._style={...e},this.originalStyle=e)}get parent(){const e=Array.from(this.document.getElementsByClassName("p-dialog"));if(e.length>1)return e.pop()}get parentContent(){const e=Array.from(this.document.getElementsByClassName("p-dialog"));if(e.length>0){const t=e[e.length-1].querySelector(".p-dialog-content");if(t)return Array.isArray(t)?t[0]:t}}get header(){return this.config.header}get data(){return this.config.data}get breakpoints(){return this.config.breakpoints}get footerTemplate(){return this.config?.templates?.footer}get headerTemplate(){return this.config?.templates?.header}get contentTemplate(){return this.config?.templates?.content}get minimizeIconTemplate(){return this.config?.templates?.minimizeicon}get maximizeIconTemplate(){return this.config?.templates?.maximizeicon}get closeIconTemplate(){return this.config?.templates?.closeicon}get dynamicDialogCount(){const e=this.document.querySelectorAll("p-dynamicdialog"),t=e?.length;return t}get containerStyle(){return{...this.config.style,width:this.config.width,height:this.config.height}}constructor(e,t,n,i,r,s,o,a,l){this.document=e,this.platformId=t,this.cd=n,this.renderer=i,this.config=r,this.dialogRef=s,this.zone=o,this.primeNGConfig=a,this.parentDialog=l}ngOnInit(){this.breakpoints&&this.createStyle()}createStyle(){if(t.isPlatformBrowser(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",u.setAttribute(this.styleElement,"nonce",this.primeNGConfig?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let t in this.breakpoints)e+=`\n @media screen and (max-width: ${t}) {\n .p-dialog[${this.id}]:not(.p-dialog-maximized) {\n width: ${this.breakpoints[t]} !important;\n }\n }\n `;this.renderer.setProperty(this.styleElement,"innerHTML",e)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngAfterViewInit(){this.loadChildComponent(this.childComponentType),this.ariaLabelledBy=this.getAriaLabelledBy(),this.cd.detectChanges()}getAriaLabelledBy(){return null!==this.header?I()+"_header":null}loadChildComponent(e){let t=this.insertionPoint?.viewContainerRef;t?.clear(),this.componentRef=t?.createComponent(e),this.dialogRef.onChildComponentLoaded.next(this.componentRef.instance)}moveOnTop(){!1!==this.config.autoZIndex&&(x.set("modal",this.container,(this.config.baseZIndex||0)+this.primeNGConfig.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container.parentElement,this.moveOnTop(),this.parent&&this.unbindGlobalListeners(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),!1!==this.config.modal&&this.enableModality(),!1!==this.config.focusOnShow&&this.focus();break;case"void":this.wrapper&&!1!==this.config.modal&&u.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){"void"===e.toState&&(this.parentContent&&!1!==this.config.focusOnClose&&this.focus(this.parentContent),this.onContainerDestroy(),this.dialogRef.destroy())}onContainerDestroy(){this.unbindGlobalListeners(),this.container&&!1!==this.config.autoZIndex&&x.clear(this.container),!1!==this.config.modal&&this.disableModality(),this.container=null}close(){this.visible=!1,this.cd.markForCheck()}hide(){this.dialogRef&&this.dialogRef.close()}enableModality(){this.config.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",(e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.hide()}))),1===this.dynamicDialogCount&&u.addClass(this.document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.config.dismissableMask&&this.unbindMaskClickListener(),1===this.dynamicDialogCount&&u.removeClass(this.document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}focus(e=this.contentViewChild.nativeElement){if(!u.getFocusableElements(e).length)return;let t=u.getFocusableElement(e,"[autofocus]");if(t)return void this.zone.runOutsideAngular((()=>{setTimeout((()=>t.focus()),5)}));const n=u.getFocusableElement(e);n?this.zone.runOutsideAngular((()=>{setTimeout((()=>n.focus()),5)})):this.footerViewChild?this.focus(this.footerViewChild.nativeElement):!n&&this.headerViewChild&&this.focus(this.headerViewChild.nativeElement)}maximize(){this.maximized=!this.maximized,this.maximized?u.addClass(this.document.body,"p-overflow-hidden"):u.removeClass(this.document.body,"p-overflow-hidden"),this.dialogRef.maximize({maximized:this.maximized})}initResize(e){this.config.resizable&&(this.documentResizeListener||this.bindDocumentResizeListeners(),this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,u.addClass(this.document.body,"p-unselectable-text"),this.dialogRef.resizeInit(e))}onResize(e){if(this.resizing){let t=e.pageX-this.lastPageX,n=e.pageY-this.lastPageY,i=u.getOuterWidth(this.container),r=u.getOuterHeight(this.container),s=u.getOuterHeight(this.contentViewChild.nativeElement),o=i+t,a=r+n,l=this.container.style.minWidth,c=this.container.style.minHeight,d=this.container.getBoundingClientRect(),h=u.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(o+=t,a+=n),(!l||o>parseInt(l))&&d.left+o<h.width&&(this._style.width=o+"px",this.container.style.width=this._style.width),(!c||a>parseInt(c))&&d.top+a<h.height&&(this.contentViewChild.nativeElement.style.height=s+a-r+"px",this._style.height&&(this._style.height=a+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,u.removeClass(this.document.body,"p-unselectable-text"),this.dialogRef.resizeEnd(e))}initDrag(e){u.hasClass(e.target,"p-dialog-header-icon")||u.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.config.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",u.addClass(this.document.body,"p-unselectable-text"),this.dialogRef.dragStart(e))}onDrag(e){if(this.dragging){let t=u.getOuterWidth(this.container),n=u.getOuterHeight(this.container),i=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,s=this.container.getBoundingClientRect(),o=s.left+i,a=s.top+r,l=u.getViewport();this.container.style.position="fixed",this.keepInViewport?(o>=this.minX&&o+t<l.width&&(this._style.left=o+"px",this.lastPageX=e.pageX,this.container.style.left=o+"px"),a>=this.minY&&a+n<l.height&&(this._style.top=a+"px",this.lastPageY=e.pageY,this.container.style.top=a+"px")):(this.lastPageX=e.pageX,this.container.style.left=o+"px",this.lastPageY=e.pageY,this.container.style.top=a+"px")}}endDrag(e){this.dragging&&(this.dragging=!1,u.removeClass(this.document.body,"p-unselectable-text"),this.dialogRef.dragEnd(e),this.cd.detectChanges())}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}bindDocumentDragListener(){t.isPlatformBrowser(this.platformId)&&this.zone.runOutsideAngular((()=>{this.documentDragListener=this.renderer.listen(this.document,"mousemove",this.onDrag.bind(this))}))}bindDocumentDragEndListener(){t.isPlatformBrowser(this.platformId)&&this.zone.runOutsideAngular((()=>{this.documentDragEndListener=this.renderer.listen(this.document,"mouseup",this.endDrag.bind(this))}))}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragListener=null)}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentResizeListeners(){t.isPlatformBrowser(this.platformId)&&this.zone.runOutsideAngular((()=>{this.documentResizeListener=this.renderer.listen(this.document,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.document,"mouseup",this.resizeEnd.bind(this))}))}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindGlobalListeners(){!1!==this.config.closeOnEscape&&this.bindDocumentEscapeListener(),this.config.resizable&&this.bindDocumentResizeListeners(),this.config.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener())}unbindGlobalListeners(){this.unbindDocumentEscapeListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener()}bindDocumentEscapeListener(){const e=this.maskViewChild?this.maskViewChild.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",(e=>{27==e.which&&parseInt(this.container.style.zIndex)==x.getCurrent()&&this.hide()}))}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}ngOnDestroy(){this.onContainerDestroy(),this.componentRef&&this.componentRef.destroy(),this.destroyStyle()}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:Q,deps:[{token:t.DOCUMENT},{token:e.PLATFORM_ID},{token:o.ChangeDetectorRef},{token:o.Renderer2},{token:G},{token:Y},{token:o.NgZone},{token:M},{token:Q,optional:!0,skipSelf:!0}],target:o.ɵɵFactoryTarget.Component});static"ɵcmp"=o.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:Q,selector:"p-dynamicDialog",host:{classAttribute:"p-element"},viewQueries:[{propertyName:"insertionPoint",first:!0,predicate:Z,descendants:!0},{propertyName:"maskViewChild",first:!0,predicate:["mask"],descendants:!0},{propertyName:"contentViewChild",first:!0,predicate:["content"],descendants:!0},{propertyName:"footerViewChild",first:!0,predicate:["footer"],descendants:!0},{propertyName:"headerViewChild",first:!0,predicate:["titlebar"],descendants:!0}],ngImport:o,template:'\n <div\n #mask\n [ngClass]="{\n \'p-dialog-mask\': true,\n \'p-component-overlay p-component-overlay-enter p-dialog-mask-scrollblocker\': config.modal !== false,\n \'p-dialog-left\': position === \'left\',\n \'p-dialog-right\': position === \'right\',\n \'p-dialog-top\': position === \'top\',\n \'p-dialog-bottom\': position === \'bottom\',\n \'p-dialog-top-left\': position === \'topleft\' || position === \'top-left\',\n \'p-dialog-top-right\': position === \'topright\' || position === \'top-right\',\n \'p-dialog-bottom-left\': position === \'bottomleft\' || position === \'bottom-left\',\n \'p-dialog-bottom-right\': position === \'bottomright\' || position === \'bottom-right\'\n }"\n [class]="config.maskStyleClass"\n >\n <div\n #container\n [ngClass]="{ \'p-dialog p-dynamic-dialog p-component\': true, \'p-dialog-rtl\': config.rtl, \'p-dialog-resizable\': config.resizable, \'p-dialog-draggable\': config.draggable, \'p-dialog-maximized\': maximized }"\n [ngStyle]="containerStyle"\n [class]="config.styleClass"\n [@animation]="{ value: \'visible\', params: { transform: transformOptions, transition: config.transitionOptions || \'150ms cubic-bezier(0, 0, 0.2, 1)\' } }"\n (@animation.start)="onAnimationStart($event)"\n (@animation.done)="onAnimationEnd($event)"\n role="dialog"\n *ngIf="visible"\n pFocusTrap\n [pFocusTrapDisabled]="config.focusTrap === false"\n [attr.aria-labelledby]="ariaLabelledBy"\n [attr.aria-modal]="true"\n >\n <div *ngIf="config.resizable" class="p-resizable-handle" (mousedown)="initResize($event)"></div>\n <div #titlebar class="p-dialog-header" (mousedown)="initDrag($event)" *ngIf="config.showHeader === false ? false : true">\n <ng-container *ngComponentOutlet="headerTemplate"></ng-container>\n <ng-container *ngIf="!headerTemplate">\n <span class="p-dialog-title" [id]="ariaLabelledBy">{{ config.header }}</span>\n <div class="p-dialog-header-icons">\n <button *ngIf="config.maximizable" type="button" [ngClass]="{ \'p-dialog-header-icon p-dialog-header-maximize p-link\': true }" (click)="maximize()" (keydown.enter)="maximize()" tabindex="-1" pRipple>\n <span class="p-dialog-header-maximize-icon" *ngIf="!maximizeIconTemplate || !minimizeIconTemplate" [ngClass]="maximized ? minimizeIcon : maximizeIcon"></span>\n <WindowMaximizeIcon *ngIf="!maximized && !maximizeIcon && !maximizeIconTemplate" [styleClass]="\'p-dialog-header-maximize-icon\'" />\n <WindowMinimizeIcon *ngIf="maximized && !minimizeIcon && !minimizeIconTemplate" [styleClass]="\'p-dialog-header-maximize-icon\'" />\n <ng-container *ngComponentOutlet="maximizeIconTemplate"></ng-container>\n <ng-container *ngComponentOutlet="minimizeIconTemplate"></ng-container>\n </button>\n <button [ngClass]="\'p-dialog-header-icon p-dialog-header-maximize p-link\'" type="button" role="button" (click)="hide()" (keydown.enter)="hide()" *ngIf="config.closable !== false" [attr.aria-label]="closeAriaLabel">\n <TimesIcon [styleClass]="\'p-dialog-header-close-icon\'" *ngIf="!closeIconTemplate" />\n <ng-container *ngComponentOutlet="closeIconTemplate"></ng-container>\n </button>\n </div>\n </ng-container>\n </div>\n <div #content class="p-dialog-content" [ngStyle]="config.contentStyle">\n <ng-template pDynamicDialogContent *ngIf="!contentTemplate"></ng-template>\n <ng-container *ngComponentOutlet="contentTemplate"></ng-container>\n </div>\n <div #footer class="p-dialog-footer" *ngIf="config.footer || footerTemplate">\n <ng-container *ngIf="!footerTemplate">\n {{ config.footer }}\n </ng-container>\n <ng-container *ngComponentOutlet="footerTemplate"></ng-container>\n </div>\n </div>\n </div>\n ',isInline:!0,styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],dependencies:[{kind:"directive",type:o.forwardRef((()=>a.NgClass)),selector:"[ngClass]",inputs:["class","ngClass"]},{kind:"directive",type:o.forwardRef((()=>a.NgComponentOutlet)),selector:"[ngComponentOutlet]",inputs:["ngComponentOutlet","ngComponentOutletInputs","ngComponentOutletInjector","ngComponentOutletContent","ngComponentOutletNgModule","ngComponentOutletNgModuleFactory"]},{kind:"directive",type:o.forwardRef((()=>a.NgIf)),selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{kind:"directive",type:o.forwardRef((()=>a.NgStyle)),selector:"[ngStyle]",inputs:["ngStyle"]},{kind:"component",type:o.forwardRef((()=>H)),selector:"WindowMaximizeIcon"},{kind:"component",type:o.forwardRef((()=>W)),selector:"WindowMinimizeIcon"},{kind:"component",type:o.forwardRef((()=>$)),selector:"TimesIcon"},{kind:"directive",type:o.forwardRef((()=>B)),selector:"[pFocusTrap]",inputs:["pFocusTrapDisabled"]},{kind:"directive",type:o.forwardRef((()=>Z)),selector:"[pDynamicDialogContent]"}],animations:[d("animation",[m("void => visible",[g(J)]),m("visible => void",[g(K)])])],changeDetection:o.ChangeDetectionStrategy.Default,encapsulation:o.ViewEncapsulation.None})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:Q,decorators:[{type:e.Component,args:[{selector:"p-dynamicDialog",template:'\n <div\n #mask\n [ngClass]="{\n \'p-dialog-mask\': true,\n \'p-component-overlay p-component-overlay-enter p-dialog-mask-scrollblocker\': config.modal !== false,\n \'p-dialog-left\': position === \'left\',\n \'p-dialog-right\': position === \'right\',\n \'p-dialog-top\': position === \'top\',\n \'p-dialog-bottom\': position === \'bottom\',\n \'p-dialog-top-left\': position === \'topleft\' || position === \'top-left\',\n \'p-dialog-top-right\': position === \'topright\' || position === \'top-right\',\n \'p-dialog-bottom-left\': position === \'bottomleft\' || position === \'bottom-left\',\n \'p-dialog-bottom-right\': position === \'bottomright\' || position === \'bottom-right\'\n }"\n [class]="config.maskStyleClass"\n >\n <div\n #container\n [ngClass]="{ \'p-dialog p-dynamic-dialog p-component\': true, \'p-dialog-rtl\': config.rtl, \'p-dialog-resizable\': config.resizable, \'p-dialog-draggable\': config.draggable, \'p-dialog-maximized\': maximized }"\n [ngStyle]="containerStyle"\n [class]="config.styleClass"\n [@animation]="{ value: \'visible\', params: { transform: transformOptions, transition: config.transitionOptions || \'150ms cubic-bezier(0, 0, 0.2, 1)\' } }"\n (@animation.start)="onAnimationStart($event)"\n (@animation.done)="onAnimationEnd($event)"\n role="dialog"\n *ngIf="visible"\n pFocusTrap\n [pFocusTrapDisabled]="config.focusTrap === false"\n [attr.aria-labelledby]="ariaLabelledBy"\n [attr.aria-modal]="true"\n >\n <div *ngIf="config.resizable" class="p-resizable-handle" (mousedown)="initResize($event)"></div>\n <div #titlebar class="p-dialog-header" (mousedown)="initDrag($event)" *ngIf="config.showHeader === false ? false : true">\n <ng-container *ngComponentOutlet="headerTemplate"></ng-container>\n <ng-container *ngIf="!headerTemplate">\n <span class="p-dialog-title" [id]="ariaLabelledBy">{{ config.header }}</span>\n <div class="p-dialog-header-icons">\n <button *ngIf="config.maximizable" type="button" [ngClass]="{ \'p-dialog-header-icon p-dialog-header-maximize p-link\': true }" (click)="maximize()" (keydown.enter)="maximize()" tabindex="-1" pRipple>\n <span class="p-dialog-header-maximize-icon" *ngIf="!maximizeIconTemplate || !minimizeIconTemplate" [ngClass]="maximized ? minimizeIcon : maximizeIcon"></span>\n <WindowMaximizeIcon *ngIf="!maximized && !maximizeIcon && !maximizeIconTemplate" [styleClass]="\'p-dialog-header-maximize-icon\'" />\n <WindowMinimizeIcon *ngIf="maximized && !minimizeIcon && !minimizeIconTemplate" [styleClass]="\'p-dialog-header-maximize-icon\'" />\n <ng-container *ngComponentOutlet="maximizeIconTemplate"></ng-container>\n <ng-container *ngComponentOutlet="minimizeIconTemplate"></ng-container>\n </button>\n <button [ngClass]="\'p-dialog-header-icon p-dialog-header-maximize p-link\'" type="button" role="button" (click)="hide()" (keydown.enter)="hide()" *ngIf="config.closable !== false" [attr.aria-label]="closeAriaLabel">\n <TimesIcon [styleClass]="\'p-dialog-header-close-icon\'" *ngIf="!closeIconTemplate" />\n <ng-container *ngComponentOutlet="closeIconTemplate"></ng-container>\n </button>\n </div>\n </ng-container>\n </div>\n <div #content class="p-dialog-content" [ngStyle]="config.contentStyle">\n <ng-template pDynamicDialogContent *ngIf="!contentTemplate"></ng-template>\n <ng-container *ngComponentOutlet="contentTemplate"></ng-container>\n </div>\n <div #footer class="p-dialog-footer" *ngIf="config.footer || footerTemplate">\n <ng-container *ngIf="!footerTemplate">\n {{ config.footer }}\n </ng-container>\n <ng-container *ngComponentOutlet="footerTemplate"></ng-container>\n </div>\n </div>\n </div>\n ',animations:[d("animation",[m("void => visible",[g(J)]),m("visible => void",[g(K)])])],changeDetection:e.ChangeDetectionStrategy.Default,encapsulation:e.ViewEncapsulation.None,host:{class:"p-element"},styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"]}]}],ctorParameters:()=>[{type:Document,decorators:[{type:e.Inject,args:[t.DOCUMENT]}]},{type:void 0,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:o.ChangeDetectorRef},{type:o.Renderer2},{type:G},{type:Y},{type:o.NgZone},{type:M},{type:Q,decorators:[{type:e.SkipSelf},{type:e.Optional}]}],propDecorators:{insertionPoint:[{type:e.ViewChild,args:[Z]}],maskViewChild:[{type:e.ViewChild,args:["mask"]}],contentViewChild:[{type:e.ViewChild,args:["content"]}],footerViewChild:[{type:e.ViewChild,args:["footer"]}],headerViewChild:[{type:e.ViewChild,args:["titlebar"]}]}});class X{static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:X,deps:[],target:o.ɵɵFactoryTarget.NgModule});static"ɵmod"=o.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:o,type:X,declarations:[Q,Z],imports:[t.CommonModule,H,W,$,P,q],exports:[P]});static"ɵinj"=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:X,imports:[t.CommonModule,H,W,$,P,q,P]})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:X,decorators:[{type:e.NgModule,args:[{imports:[t.CommonModule,H,W,$,P,q],declarations:[Q,Z],exports:[P]}]}]});class ee{_parentInjector;_additionalTokens;constructor(e,t){this._parentInjector=e,this._additionalTokens=t}get(e,t,n){const i=this._additionalTokens.get(e);return i||this._parentInjector.get(e,t)}}class te{appRef;injector;document;dialogComponentRefMap=new Map;constructor(e,t,n){this.appRef=e,this.injector=t,this.document=n}open(e,t){if(!this.duplicationPermission(e,t))return null;const n=this.appendDialogComponentToBody(t,e);return this.dialogComponentRefMap.get(n).instance.childComponentType=e,n}getInstance(e){return this.dialogComponentRefMap.get(e).instance}appendDialogComponentToBody(t,n){const i=new WeakMap;i.set(G,t);const r=new Y;i.set(Y,r);const s=r.onClose.subscribe((()=>{this.dialogComponentRefMap.get(r).instance.close()})),o=r.onDestroy.subscribe((()=>{this.removeDialogComponentFromBody(r),o.unsubscribe(),s.unsubscribe()})),a=e.createComponent(Q,{environmentInjector:this.appRef.injector,elementInjector:new ee(this.injector,i)});this.appRef.attachView(a.hostView);const l=a.hostView.rootNodes[0];return t.appendTo&&"body"!==t.appendTo?u.appendChild(l,t.appendTo):this.document.body.appendChild(l),this.dialogComponentRefMap.set(r,a),r}removeDialogComponentFromBody(e){if(!e||!this.dialogComponentRefMap.has(e))return;const t=this.dialogComponentRefMap.get(e);this.appRef.detachView(t.hostView),t.destroy(),this.dialogComponentRefMap.delete(e)}duplicationPermission(e,t){if(t.duplicate)return!0;let n=!0;for(const[t,i]of this.dialogComponentRefMap)if(i.instance.childComponentType===e){n=!1;break}return n}static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:te,deps:[{token:o.ApplicationRef},{token:o.Injector},{token:t.DOCUMENT}],target:o.ɵɵFactoryTarget.Injectable});static"ɵprov"=o.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:te})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:te,decorators:[{type:e.Injectable}],ctorParameters:()=>[{type:o.ApplicationRef},{type:o.Injector},{type:Document,decorators:[{type:e.Inject,args:[t.DOCUMENT]}]}]});const ne="error",ie="warn",re="info",se="verbose",oe="debug",ae="silly";class le{_lastLogMessage={messageSource:"No message yet",timestamp:(new Date).getTime(),lvl:re};_buffer=[];_bufferIdx=0;_lastSnapshotIdx=0;_bufferSize;constructor(e){if(!e)throw new Error("Cannot create ring buffer of size 0");this._bufferSize=e}get currentIndex(){return this._bufferIdx}get lastSnapshotIdx(){return this._lastSnapshotIdx}set bufferSize(e){if(!e)throw new Error("Cannot create ring buffer of size 0");this._bufferSize=e,this.clearRingBuffer()}getMessages(e=null,t=!1,n=!1){let i=null;if(this._bufferIdx<this._bufferSize){const t=null==e?0:e;i=this._buffer.slice(t,this._bufferIdx)}else{i=[];const t=this._bufferIdx-this._bufferSize;for(let n=e?Math.max(e,t):t;n<this._bufferIdx;n++)i.push(this._buffer[n%this._bufferSize])}return t&&this.clearRingBuffer(),n&&(i=i.reverse()),i}takeSnapshot(){const e=Math.max(0,this._bufferIdx-this._bufferSize),t={messages:this.getMessages(this._lastSnapshotIdx),logMessagesTruncated:Math.max(0,e-this._lastSnapshotIdx)};return this._lastSnapshotIdx=this._bufferIdx,t}getLastLogMessage(){return Object.assign({},this._lastLogMessage)}clearRingBuffer(){this._buffer=[],this._bufferIdx=0,this._lastSnapshotIdx=0}addToRingBuffer(e){this._lastLogMessage=e,this._buffer[this._bufferIdx%this._bufferSize]=e,this._bufferIdx++}}const ce="Console",ue="ConsoleNoDebug",de="StdOut";class he{static LOG_LEVELS_IN_ORDER=[ne,ie,re,se,oe,ae];static handlerFunctionMap(e=ce){const t=new Map;if(e===de){if(!process?.stdout?.write)throw new Error("Cannot use standard out - process.stdout.write not found");const e=(e,t)=>process.stdout.write(e,"utf-8",t);t.set(ne,e),t.set(ie,e),t.set(re,e),t.set(se,e),t.set(oe,e),t.set(ae,e)}else t.set(ne,console.error),t.set(ie,console.warn),t.set(re,console.info),t.set(se,e===ue?console.log:console.debug),t.set(oe,e===ue?console.log:console.debug),t.set(ae,e===ue?console.log:console.debug);return t}static defaultHandlerFunction(){return console.info}static levelIsEnabled(e,t){const n=he.LOG_LEVELS_IN_ORDER.indexOf(e),i=he.LOG_LEVELS_IN_ORDER.indexOf(t);return n>-1&&i>-1&&i>=n}}const pe="ClassicSingleLine",me="StructuredJson",fe="None";class ge{static isNullOrUndefined(e){return Object.is(e,null)||Object.is(e,void 0)}static notNullOrUndefined(e,t="object"){if(ge.isNullOrUndefined(e))throw new Error(t+" may not be null or undefined")}static notNullUndefinedOrOnlyWhitespaceString(e,t="string"){if(ge.isNullOrUndefined(e)||""===e.trim())throw new Error(t+" may not be null or undefined or only whitespace string")}static notNullUndefinedOrEmptyArray(e,t="string"){if(ge.isNullOrUndefined(e)||0===e.length)throw new Error(t+" may not be null or undefined or an empty array")}static equal(e,t,n="Values must be equal"){if(e!==t)throw new Error(n)}static true(e,t="Value must be true"){ge.equal(e,!0,t)}static noNullOrUndefinedValuesInArray(e,t=null,n=null){if(ge.notNullOrUndefined(e,"Source array may not be null"),null!==t&&e.length!==t)throw new Error(`Expected array of length ${t} but was ${e.length} ${n}`);for(let t=0;t<e.length;t++)if(ge.isNullOrUndefined(e[t]))throw new Error(`Array index ${t} was null or undefined ${n}`)}static noNullOrUndefinedValuesInRestArgs(e,...t){if(ge.notNullOrUndefined(t,"Source array may not be null"),null!==e&&t.length!==e)throw new Error(`Expected array of length ${e} but was ${t.length}`);for(let e=0;e<t.length;e++)if(ge.isNullOrUndefined(t[e]))throw new Error(`Array index ${e} was null or undefined`)}static constructorArgumentsMatchLengthAndAreNonNull(){const e=Array.from(arguments),t=this.constructor.length;return ge.noNullOrUndefinedValuesInArray(e,t)}}class ye{static RFC_3986_RESERVED=["!","*","'","(",")",";",":","@","&","=","+","$",",","/","?","#","[","]","%"];static WHITESPACE=" \n\t";static DIGITS="0123456789";static HEXITS=ye.DIGITS+"ABCDEF";static UPPER_CASE_LATIN="ABCDEFGHIJKLMNOPQRSTUVWXYZ";static LOWER_CASE_LATIN="abcdefghijklmnopqrstuvwxyz";static CASE_INSENSITIVE_LATIN=ye.UPPER_CASE_LATIN+ye.LOWER_CASE_LATIN;static stringIsInGivenAlphabet(e,t){let n=!1;if(e&&t)for(let i=0;i<e.length&&!n;i++)n=t.includes(e.charAt(i));return n}static stringToUint8Array(e){return e?(new TextEncoder).encode(e):null}static uint8ArrayToString(e){return e?(new TextDecoder).decode(e):null}static attemptJsonParse(e){let t=null;if(ye.trimToNull(e))try{t=JSON.parse(e)}catch{t=null}return t}static canParseAsJson(e){return!!ye.attemptJsonParse(e)}static allUnique(e){let t=!0;if(e){const n=new Set;for(let i=0;i<e.length&&t;i++){const r=e.charAt(i);t=!n.has(r),n.add(r)}}return t}static allPermutationsOfLength(e,t){const n=[];if(e>0&&t&&t.length>0){ge.true(ye.allUnique(t),"Alphabet must be unique");const i=1===e?[""]:ye.allPermutationsOfLength(e-1,t);for(let e=0;e<t.length;e++)i.forEach((i=>n.push(t.charAt(e)+i)))}return n}static breakIntoBlocks(e,t,n){let i="";for(;e.length>t;)i=n+e.substring(e.length-t)+i,e=e.substring(0,e.length-t);return i=e.length>0?e+i:i.substring(1),i}static createShortUid(e=0,t=1e3,n=36){const i=Math.floor(Date.now()/1e3),r=parseInt(String(Math.floor(Math.random()*t))+String(i)).toString(n);return e>0?ye.breakIntoBlocks(r,e,"-"):r}static createType4Guid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}static createRandomHexString(e=10){let t="";for(let n=0;n<e;n++)t+=Math.floor(16*Math.random()).toString(16);return t}static canonicalize(e){let t=e?e.toLowerCase():"";return t=t.replace(" ","-"),ye.RFC_3986_RESERVED.forEach((e=>{t=t.replace(e,"")})),t}static formatBytes(e,t=2){if(0==e)return"0 Bytes";const n=t||2,i=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,i)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]}static safeString(e){let t=null;if(null!=e){t="string"==typeof e?e:String(e)}return t}static stringContainsOnlyWhitespace(e){return ye.stringContainsOnly(e,ye.WHITESPACE)}static stringContainsOnlyNumbers(e){return/^[0-9]+$/.test(e)}static stringContainsOnlyAlphanumeric(e){return/^[0-9a-zA-Z]+$/.test(e)}static stringContainsOnlyHex(e){return/^[0-9a-fA-F]+$/.test(e)}static stringContainsOnly(e,t){const n=e||"",i=t||"";let r=!0;for(let e=0;e<n.length&&r;e++)r=i.indexOf(n.charAt(e))>=0;return r}static obscure(e,t=2,n=2){if(!e)return e;const i=e.length;let r=t,s=n;for(;i>0&&i<r+s+1;)r=Math.max(0,r-1),s=Math.max(0,s-1);const o=i-(r+s);let a="";a+=e.substring(0,r);for(let e=0;e<o;e++)a+="*";return a+=e.substring(i-s),a}static leadingZeros(e,t){const n="00000000000000000000000000000000000000000000000000";let i=!1,r=String(e);if(r.startsWith("-")&&(i=!0,r=r.substring(1)),t>50)throw new Error("Cannot format number that large");let s=(n+r).slice(-1*t);return i&&(s="-"+s),s}static trimToEmpty(e){return(e?ye.safeString(e):"").trim()}static trimToNull(e){const t=ye.trimToEmpty(e);return t.length>0?t:null}static trimAllStringPropertiesToNullInPlace(e){return ye.trimAllStringPropertiesInPlace(e,!1)}static trimAllStringPropertiesToEmptyInPlace(e){return ye.trimAllStringPropertiesInPlace(e,!0)}static trimAllStringPropertiesInPlace(e,t){return Object.keys(e).forEach((n=>{const i=e[n];null!=i&&"string"==typeof i&&(e[n]=t?ye.trimToEmpty(e[n]):ye.trimToNull(e[n]))})),e}static stripNonNumeric(e){let t=e;if(null!=e&&!ye.stringContainsOnlyNumbers(e)){t="";for(let n=0;n<e.length;n++){const i=e.charAt(n);(ye.stringContainsOnlyNumbers(i)||0===n&&"-"===i)&&(t+=i)}}return t}static csvSafe(e){let t=ye.trimToEmpty(ye.safeString(e));return t.split('"').join('\\"'),-1===t.indexOf(",")&&-1===t.indexOf('"')&&-1===t.indexOf("'")||(t='"'+t+'"'),t}static stripNonAscii(e){return[...e].reduce(((e,t)=>t.charCodeAt(0)>127?e:e+t))}static replaceAll(e,t,n){let i=e;return i?.length&&t?.length&&n?.length&&(i=i.split(t).join(n)),i}static simpleTemplateFill(e,t,n=!1,i="${",r="}"){let s=e;if(s&&t&&Object.keys(t).forEach((e=>{s=s.split(i+e+r).join(t[e])})),n&&s?.indexOf(i)>=0)throw new Error("Template has unfilled variables:"+s);return s}static circSafeJsonStringify(e){let t=null;try{t=JSON.stringify(e)}catch(e){if(!(e instanceof TypeError))throw e;{let n=e.message.split("\n").map((e=>ye.trimToNull(e))).filter((e=>!!e));n=n.filter((e=>e.startsWith("--\x3e")||e.startsWith("---"))),t="Cannot stringify - object contains circular reference : "+n.join(", ")}}return t}static format(e,...t){const n=/(%?)(%([ojds]))/g;return t.length&&(e=e.replace(n,(function(e,n,i,r){let s=t.shift();switch(r){case"o":if(Array.isArray(s)){s=ye.circSafeJsonStringify(s);break}throw new Error("Cannot use o placeholder for argument of type "+typeof s);case"s":s=""+s;break;case"d":s=Number(s);break;case"j":s=ye.circSafeJsonStringify(s)}return n?(t.unshift(s),e):s}))),t.length&&(e+=" "+t.join(" ")),""+(e=e.replace(/%{2,2}/g,"%"))}}class ve{formatMessage(e,t){let n=null;return e&&(n="",n+=t.options.trace?t.options.trace+" ":"",n+="["+e.lvl+"] ",n+=ye.format(e.messageSource,...e.subsVars)),n}}class be{formatMessage(e,t){return null}}class we{formatMessage(e,t){let n=null;if(e){const i=Object.assign({},t.options.globalVars||{},e.params||{});i.msg=ye.format(e.messageSource,...e.subsVars),i.utcDateTime=new Date(e.timestamp).toISOString(),i.logLevel=e.lvl,t.options.trace&&(i.trace=t.options.trace),i.logName=t.loggerInstanceName,i.logId=t.loggerInstanceId,n=JSON.stringify(i)+"\n"}return n}}class Ce{loggerInstanceName;_guid=Math.floor(1e6*Math.random());_loggerMeta;_ringBuffer;_formatter;_level;_handlerFunctionMap;_options;constructor(e="default",t){this.loggerInstanceName=e,this.options=t}levelIsEnabled(e){return he.levelIsEnabled(e,this._level)}addPreProcessor(e){return e&&(this._options.preProcessors=this._options.preProcessors||[],this._options.preProcessors.push(e)),Object.assign([],this._options.preProcessors)}get ringBuffer(){return this._ringBuffer}dumpConfigurationIntoLog(){this.error("ERROR enabled"),this.warn("WARN enabled"),this.info("INFO enabled"),this.verbose("VERBOSE enabled"),this.debug("DEBUG enabled"),this.silly("SILLY enabled")}dumpOptionsIntoLog(){if(this.info("Guid: %s Options: %j",this._guid,this.options),this?.options?.preProcessors?.length){const e=this.options.preProcessors.map((e=>ye.trimToNull(e.label())||"Unlabelled"));this.info("Preprocessors: %j",e)}}get guid(){return this._guid}changeRingBufferSize(e){this._ringBuffer=null,e&&(this._ringBuffer=new le(e),this._options.ringBufferSize=e)}updateTracePrefix(e){this._options.trace=e}get options(){return Object.assign({},this._options)}set options(e){switch(this._options=Object.assign({},e),this._options.ringBufferSize&&(this._ringBuffer=new le(this._options.ringBufferSize)),this._options.formatType){case fe:this._formatter=new be;break;case me:this._formatter=new we;break;default:this._formatter=new ve}this._level=this._options.initialLevel,this._handlerFunctionMap=he.handlerFunctionMap(this._options.outputFunction);const t=this._loggerMeta?this._loggerMeta.loggerInstanceId:null;this._loggerMeta={options:this._options,loggerInstanceName:this.loggerInstanceName,loggerInstanceId:t||ye.createRandomHexString(8)}}get level(){return this._level}set level(e){if(!e)throw new Error("Cannot set level to null/undefined");this._level=e}consoleLogPassThru(e,...t){if(he.levelIsEnabled(e,this._level)){let n=this._options.trace||"";n+="["+e+"] ",t.unshift(n);(this._handlerFunctionMap.get(e)||he.defaultHandlerFunction)(...t)}}createLogMessage(e,t,n,...i){return{lvl:e,timestamp:Date.now(),messageSource:n,subsVars:i,params:t}}formatMessage(e){return e?this._formatter.formatMessage(e,this._loggerMeta):null}formatMessages(e){return(e||[]).map((e=>this.formatMessage(e))).filter((e=>!!e))}recordMessageBuilder(e){return this.recordMessage(e.toMessage())}recordMessage(e){let t=null;if(he.levelIsEnabled(e.lvl,this._level)){let n=Object.assign({},e);if(this._options.preProcessors?.length)for(const e of this._options.preProcessors)n=e.process(n);if(t=this.formatMessage(n),t){(this._handlerFunctionMap.get(n.lvl)||he.defaultHandlerFunction)(t),this._ringBuffer&&this._ringBuffer.addToRingBuffer(n)}}return t}error(e,...t){const n=this.createLogMessage(ne,{},e,...t);return this.recordMessage(n)}errorP(...e){this.consoleLogPassThru(ne,...e)}warn(e,...t){const n=this.createLogMessage(ie,{},e,...t);return this.recordMessage(n)}warnP(...e){this.consoleLogPassThru(ie,...e)}info(e,...t){const n=this.createLogMessage(re,{},e,...t);return this.recordMessage(n)}infoP(...e){this.consoleLogPassThru(re,...e)}verbose(e,...t){const n=this.createLogMessage(se,{},e,...t);return this.recordMessage(n)}verboseP(...e){this.consoleLogPassThru(se,...e)}debug(e,...t){const n=this.createLogMessage(oe,{},e,...t);return this.recordMessage(n)}debugP(...e){this.consoleLogPassThru(oe,...e)}silly(e,...t){const n=this.createLogMessage(ae,{},e,...t);return this.recordMessage(n)}sillyP(...e){this.consoleLogPassThru(ae,...e)}logByLevel(e,t,...n){const i=this.createLogMessage(e,{},t,...n);this.recordMessage(i)}importMessages(e,t="",n=!0){const i=t||"";e&&e.length>0&&(this.silly("Received import data : %d msgs",e.length),e.forEach((e=>{if(e.messageSource){let t=i;if(n){t+=" ("+String(new Date).substring(15,24)+") : ",t+=e.messageSource}this.logByLevel(e.lvl,t)}})))}}class Te{static LOGGER_INSTANCE_MAP_GLOBAL_KEY="RATCHET_GLOBAL_LOGGER_MAP_V01";static GLOBAL_PROVIDER=process||global||window;static DEFAULT_OPTIONS={initialLevel:re,formatType:pe,trace:null,globalVars:{},outputFunction:ce,ringBufferSize:0,preProcessors:[]};static applyDefaultsToOptions(e){const t=e||{};return t.initialLevel=t.initialLevel??Te.DEFAULT_OPTIONS.initialLevel,t.formatType=t.formatType??Te.DEFAULT_OPTIONS.formatType,t.trace=t.trace??Te.DEFAULT_OPTIONS.trace,t.globalVars=t.globalVars??Te.DEFAULT_OPTIONS.globalVars,t.outputFunction=t.outputFunction??Te.DEFAULT_OPTIONS.outputFunction,t.ringBufferSize=t.ringBufferSize??Te.DEFAULT_OPTIONS.ringBufferSize,t}static loggerInstances(){if(!Te.GLOBAL_PROVIDER)throw new Error("Cannot create logger - could not find a global provider");let e=Te.GLOBAL_PROVIDER[Te.LOGGER_INSTANCE_MAP_GLOBAL_KEY];return e||(e=new Map,Te.GLOBAL_PROVIDER[Te.LOGGER_INSTANCE_MAP_GLOBAL_KEY]=e),e}static changeDefaultOptions(e,t){if(!e||!e.initialLevel||!e.formatType)throw new Error("Default options must be non-null, and provide initial level and format type");Te.DEFAULT_OPTIONS=Object.assign({},e),t&&Array.from(Te.loggerInstances().values()).forEach((t=>t.options=e))}static getLogger(e="default",t){let n=Te.loggerInstances().get(e);if(!n){const i=Te.applyDefaultsToOptions(t);n=new Ce(e,i),Te.loggerInstances().set(e,n)}return n}static recordMessageBuilder(e){return Te.getLogger().recordMessageBuilder(e)}static levelIsEnabled(e){return Te.getLogger().levelIsEnabled(e)}static recordMessage(e){return Te.getLogger().recordMessage(e)}static formatMessages(e){return Te.getLogger().formatMessages(e)}static updateTracePrefix(e){return Te.getLogger().updateTracePrefix(e)}static changeRingBufferSize(e){return Te.getLogger().changeRingBufferSize(e)}static getRingBuffer(){return Te.getLogger().ringBuffer}static dumpConfigurationIntoLog(){return Te.getLogger().dumpConfigurationIntoLog()}static dumpOptionsIntoLog(){return Te.getLogger().dumpOptionsIntoLog()}static getLevel(){return Te.getLogger().level}static setLevel(e){Te.getLogger().level=e}static getOptions(){return Te.getLogger().options}static getMessages(e=null,t=!1,n=!1){const i=Te.getLogger().ringBuffer;return i?i.getMessages(e,t,n):null}static consoleLogPassThru(e,...t){return Te.getLogger().consoleLogPassThru(e,...t)}static error(e,...t){return Te.getLogger().error(e,...t)}static errorP(...e){return Te.getLogger().errorP(...e)}static warn(e,...t){return Te.getLogger().warn(e,...t)}static warnP(...e){return Te.getLogger().warnP(...e)}static info(e,...t){return Te.getLogger().info(e,...t)}static infoP(...e){return Te.getLogger().infoP(...e)}static verbose(e,...t){return Te.getLogger().verbose(e,...t)}static verboseP(...e){return Te.getLogger().verboseP(...e)}static debug(e,...t){return Te.getLogger().debug(e,...t)}static debugP(...e){return Te.getLogger().debugP(...e)}static silly(e,...t){return Te.getLogger().silly(e,...t)}static sillyP(...e){return Te.getLogger().sillyP(...e)}static takeSnapshot(){const e=Te.getLogger().ringBuffer;return e?e.takeSnapshot():null}static logByLevel(e,t,...n){return Te.getLogger().logByLevel(e,t,...n)}static importMessages(e,t="",n=!0){return Te.getLogger().importMessages(e,t,n)}static getLastLogMessage(){const e=Te.getLogger().ringBuffer;return e?e.getLastLogMessage():null}}var Ee,Se,Ie;exports.AlertComponent=Ee=class{dialogService;cfg;ref;constructor(e,t,n){this.dialogService=e,this.cfg=t,this.ref=n,Te.info("Creating with %j",this.cfg)}static showAlert(e,t,i="Alert"){return e.open(Ee,{data:{message:t instanceof n.BehaviorSubject?t:new n.BehaviorSubject(t)},header:i})}},exports.AlertComponent=Ee=l([e.Component({selector:"ngx-acute-common-alert",template:"<div><pre>{{cfg.data.message | async}}</pre></div>",standalone:!0,imports:[t.AsyncPipe]}),c("design:paramtypes",[te,G,Y])],exports.AlertComponent);class Ne{styleClass;style;strokeWidth="2";fill="none";animationDuration="2s";ariaLabel;static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:Ne,deps:[],target:o.ɵɵFactoryTarget.Component});static"ɵcmp"=o.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:Ne,selector:"p-progressSpinner",inputs:{styleClass:"styleClass",style:"style",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration",ariaLabel:"ariaLabel"},host:{classAttribute:"p-element"},ngImport:o,template:'\n <div class="p-progress-spinner" [ngStyle]="style" [ngClass]="styleClass" role="progressbar" [attr.aria-label]="ariaLabel" [attr.aria-busy]="true" [attr.data-pc-name]="\'progressspinner\'" [attr.data-pc-section]="\'root\'">\n <svg class="p-progress-spinner-svg" viewBox="25 25 50 50" [style.animation-duration]="animationDuration" [attr.data-pc-section]="\'root\'">\n <circle class="p-progress-spinner-circle" cx="50" cy="50" r="20" [attr.fill]="fill" [attr.stroke-width]="strokeWidth" stroke-miterlimit="10" />\n </svg>\n </div>\n ',isInline:!0,styles:['@layer primeng{.p-progress-spinner{position:relative;margin:0 auto;width:100px;height:100px;display:inline-block}.p-progress-spinner:before{content:"";display:block;padding-top:100%}.p-progress-spinner-svg{animation:p-progress-spinner-rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;inset:0;margin:auto}.p-progress-spinner-circle{stroke-dasharray:89,200;stroke-dashoffset:0;stroke:#d62d20;animation:p-progress-spinner-dash 1.5s ease-in-out infinite,p-progress-spinner-color 6s ease-in-out infinite;stroke-linecap:round}}@keyframes p-progress-spinner-rotate{to{transform:rotate(360deg)}}@keyframes p-progress-spinner-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes p-progress-spinner-color{to,0%{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}\n'],dependencies:[{kind:"directive",type:a.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{kind:"directive",type:a.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]}],changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:Ne,decorators:[{type:e.Component,args:[{selector:"p-progressSpinner",template:'\n <div class="p-progress-spinner" [ngStyle]="style" [ngClass]="styleClass" role="progressbar" [attr.aria-label]="ariaLabel" [attr.aria-busy]="true" [attr.data-pc-name]="\'progressspinner\'" [attr.data-pc-section]="\'root\'">\n <svg class="p-progress-spinner-svg" viewBox="25 25 50 50" [style.animation-duration]="animationDuration" [attr.data-pc-section]="\'root\'">\n <circle class="p-progress-spinner-circle" cx="50" cy="50" r="20" [attr.fill]="fill" [attr.stroke-width]="strokeWidth" stroke-miterlimit="10" />\n </svg>\n </div>\n ',changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None,host:{class:"p-element"},styles:['@layer primeng{.p-progress-spinner{position:relative;margin:0 auto;width:100px;height:100px;display:inline-block}.p-progress-spinner:before{content:"";display:block;padding-top:100%}.p-progress-spinner-svg{animation:p-progress-spinner-rotate 2s linear infinite;height:100%;transform-origin:center center;width:100%;position:absolute;inset:0;margin:auto}.p-progress-spinner-circle{stroke-dasharray:89,200;stroke-dashoffset:0;stroke:#d62d20;animation:p-progress-spinner-dash 1.5s ease-in-out infinite,p-progress-spinner-color 6s ease-in-out infinite;stroke-linecap:round}}@keyframes p-progress-spinner-rotate{to{transform:rotate(360deg)}}@keyframes p-progress-spinner-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes p-progress-spinner-color{to,0%{stroke:#d62d20}40%{stroke:#0057e7}66%{stroke:#008744}80%,90%{stroke:#ffa700}}\n']}]}],propDecorators:{styleClass:[{type:e.Input}],style:[{type:e.Input}],strokeWidth:[{type:e.Input}],fill:[{type:e.Input}],animationDuration:[{type:e.Input}],ariaLabel:[{type:e.Input}]}});class xe{static"ɵfac"=o.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:xe,deps:[],target:o.ɵɵFactoryTarget.NgModule});static"ɵmod"=o.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:o,type:xe,declarations:[Ne],imports:[t.CommonModule],exports:[Ne]});static"ɵinj"=o.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:xe,imports:[t.CommonModule]})}o.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:o,type:xe,decorators:[{type:e.NgModule,args:[{imports:[t.CommonModule],exports:[Ne],declarations:[Ne]}]}]}),exports.BlockUiComponent=Se=class{dialogService;cfg;constructor(e,t){this.dialogService=e,this.cfg=t}static createUiBlock(e,t="Please wait...",i){return e.open(Se,{closable:!1,modal:!0,data:{message:t instanceof n.BehaviorSubject?t:new n.BehaviorSubject(t),subMessage:i}})}static async runPromiseWithUiBlock(e,t,i="Please wait...",r){const s=e.open(Se,{closable:!1,modal:!0,data:{message:i instanceof n.BehaviorSubject?i:new n.BehaviorSubject(i),subMessage:r}});try{const e=await t;return s?.close(e),Te.info("Blockui - Received %j - closing blocker ui and returning",e),e}catch(e){throw Te.error("Caught error inside block ui dialog : %s - rethrowing",e,e),s?.close(),e}}},exports.BlockUiComponent=Se=l([e.Component({selector:"ngx-acute-common-block-ui",template:'<div>\n <div style="display: flex; flex-direction: column; justify-content: center">\n <h4>{{cfg.data.message | async}}</h4>\n <p-progressSpinner styleClass="w-2rem h-2rem" strokeWidth="5" fill="var(--surface-ground)" animationDuration=".8s"></p-progressSpinner>\n <div *ngIf="cfg.data.subMessage">\n {{cfg.data.subMessage}}\n </div>\n </div>\n</div>\n',standalone:!0,imports:[t.NgIf,t.AsyncPipe,xe]}),c("design:paramtypes",[te,G])],exports.BlockUiComponent),exports.CapitalizePipe=class{transform(e){return e&&e.length?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e}},exports.CapitalizePipe=l([e.Pipe({name:"acuteCapitalize",standalone:!0})],exports.CapitalizePipe);class Oe{constructor(){}static centToDollarFormat(e,t=2){return Oe.dollarFormat(e/100)}static dollarFormat(e,t=2){return null==e?"Null":"$"+e.toLocaleString("en-US",{minimumFractionDigits:t,maximumFractionDigits:t})}static dollarFormatNumberRange(e){let t="N/A";return e&&(t=e.low?Oe.dollarFormat(e.low):" ^ ",t+=" - ",t+=e.high?Oe.dollarFormat(e.high):" ^ "),t}}exports.DollarFormattedPipe=class{transform(e){return null==e?"Null":Oe.dollarFormat(e)}},exports.DollarFormattedPipe=l([e.Pipe({name:"acuteDollars",standalone:!0})],exports.DollarFormattedPipe),exports.MapValuesPipe=class{transform(e,t){const n=[];for(const t of Object.keys(e))n.push({key:t,val:e[t]});return Te.info("Map values : %j : %j",n,t),n}},exports.MapValuesPipe=l([e.Pipe({name:"acuteMapValues",standalone:!0})],exports.MapValuesPipe),exports.NumberWithCommasPipe=class{transform(e){return(new Intl.NumberFormat).format(e)}},exports.NumberWithCommasPipe=l([e.Pipe({name:"acuteNumberWithCommas",standalone:!0})],exports.NumberWithCommasPipe),exports.OrderByPipe=Ie=class{static _orderByComparator(e,t){if(isNaN(parseFloat(e))||!isFinite(e)||isNaN(parseFloat(t))||!isFinite(t)){if(String(e).toLowerCase()<String(t).toLowerCase())return-1;if(String(e).toLowerCase()>String(t).toLowerCase())return 1}else{if(parseFloat(e)<parseFloat(t))return-1;if(parseFloat(e)>parseFloat(t))return 1}return 0}transform(e,[t="+"]){if(!Array.isArray(e))return e;if(!Array.isArray(t)||Array.isArray(t)&&1==t.length){const n=Array.isArray(t)?t[0]:t,i="-"==n.substr(0,1);if(n&&"-"!=n&&"+"!=n){const t="+"==n.substr(0,1)||"-"==n.substr(0,1)?n.substr(1):n;return e.sort((function(e,n){return i?-Ie._orderByComparator(e[t],n[t]):Ie._orderByComparator(e[t],n[t])}))}return i?e.sort().reverse():e.sort()}return e.sort((function(e,n){for(let i=0;i<t.length;i++){const r="-"==t[i].substr(0,1),s="+"==t[i].substr(0,1)||"-"==t[i].substr(0,1)?t[i].substr(1):t[i],o=r?-Ie._orderByComparator(e[s],n[s]):Ie._orderByComparator(e[s],n[s]);if(0!=o)return o}return 0}))}},exports.OrderByPipe=Ie=l([e.Pipe({name:"acuteOrderBy",pure:!1,standalone:!0})],exports.OrderByPipe);class De{static MAX_LEADING_ZEROS_FORMAT_LENGTH=1e3;static DEFAULT_SAFE_NUMBER_OPTIONS={ifNotNumber:null,returnValueForNull:null,returnValueForUndefined:null,preParseCharacterMapping:{",":""}};static toFixedDecimalNumber(e,t){const n=De.safeNumber(e);return null==n?n:De.safeNumber(n.toFixed(t))}static leadingZeros(e,t){const n=String(e);if(n.length<t){let e="0000";if(t>De.MAX_LEADING_ZEROS_FORMAT_LENGTH)throw"Cannot format number that large (max length is "+De.MAX_LEADING_ZEROS_FORMAT_LENGTH+")";for(;e.length<t;)e+=e;return(e+n).slice(-1*t)}return n}static between(e,t,n){const i=De.safeNumber(e),r=De.safeNumber(t),s=De.safeNumber(n);return i>=r&&i<=s||i>=s&&i<=r}static safeNumber(e,t=null,n){const i={ifNotNumber:t,returnValueForNull:n?t:null,returnValueForUndefined:n?t:void 0};return void 0===n&&(i.returnValueForUndefined=null),De.safeNumberOpt(e,i)}static safeNumberOpt(e,t){let n;const i=Object.assign({},De.DEFAULT_SAFE_NUMBER_OPTIONS,t||{});if(null===e)n=i.returnValueForNull;else if(void 0===e)n=i.returnValueForUndefined;else{const t=typeof e;if("number"==t)n=e;else if("string"==t){let t=e.trim();if(0===t.length)n=i.ifNotNumber;else{if(i.preParseCharacterMapping&&Object.keys(i.preParseCharacterMapping).length>0){let e="";for(let n=0;n<t.length;n++){const r=t.charAt(n);e+=void 0===i.preParseCharacterMapping[r]?r:i.preParseCharacterMapping[r]}t=e}n=Number.parseFloat(t)}}else Te.warn("Value is of type %s, returning default",t),n=i.ifNotNumber;isNaN(n)&&(Te.debug("Parsed string to NaN - using NaN value from param"),n=i.ifNotNumber)}return n}static numberCSVToList(e){let t=null;return e&&(t=e.split(",").map((e=>De.safeNumber(e.trim()))),t=t.filter((e=>"number"==typeof e&&!isNaN(e)))),t}static fitToWindow(e,t,n){let i=e;if(null===e||null===t||null===n||t<0||n<0||e<0)throw new Error("All values must be non-null and larger than 0");const r=Math.min(t,n),s=Math.max(t,n),o=s-r;if(s===r)i=s;else{for(;i<r;)i+=o;for(;i>s;)i-=o}return i}static groupNumbersIntoContiguousRanges(e,t=3){ge.notNullOrUndefined(e);const n=Object.assign([],e);n.sort(((e,t)=>e-t));const i=[],r=[];let s=0;for(let e=1;e<n.length;e++)if(n[e]===n[e-1]+1);else{if(s===e-1)i.push(n[e-1]);else{if(e-s<t)for(let t=s;t<e;t++)i.push(n[t]);else r.push({min:n[s],max:n[e-1]})}s=e}return{singles:i,ranges:r}}static distributeItemsEvenly(e,t){ge.notNullOrUndefined(e,"items"),ge.notNullOrUndefined(t,"buckets"),ge.true(e>0&&e===Math.floor(e),"Items integer larger than 0"),ge.true(t>0&&t===Math.floor(t),"Buckets integer larger than 0");const n=t/e,i=[];for(let e=0;e<t;e++)i.push(0);let r=0,s=e;for(;s>0;)i[Math.floor(r)%t]++,s--,r+=n;return i}static createRange(e,t,n=1){const i=[];let r=e;for(;r<t;)i.push(r),r+=n;return i}static percentFormatNumberRange(e){let t="N/A";return e&&(t=e.low?De.pctFormatted(e.low):" ^ ",t+=" - ",t+=e.high?De.pctFormatted(e.high):" ^ "),t}static pctFormatted(e,t=2){return null==e?"Null":e.toLocaleString("en-US",{minimumFractionDigits:t,maximumFractionDigits:t})+"%"}}exports.PercentFormattedPipe=class{transform(e){return De.pctFormatted(e)}},exports.PercentFormattedPipe=l([e.Pipe({name:"acutePercent",standalone:!0})],exports.PercentFormattedPipe),exports.PluralPipe=class{transform(e,t,n=""){return 1===(e=e||0)?`${e} ${t}`:n?`${e} ${n}`:`${e} ${t}s`}},exports.PluralPipe=l([e.Pipe({name:"acutePlural",standalone:!0})],exports.PluralPipe),exports.RoundPipe=class{transform(e){return Math.round(e)}},exports.RoundPipe=l([e.Pipe({name:"acuteRound",standalone:!0})],exports.RoundPipe);class ke extends Error{}class Ae extends ke{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Le extends ke{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class _e extends ke{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Me extends ke{}class Fe extends ke{constructor(e){super(`Invalid unit ${e}`)}}class Re extends ke{}class Ve extends ke{constructor(){super("Zone is an abstract class")}}const Pe="numeric",je="short",ze="long",Be={year:Pe,month:Pe,day:Pe},qe={year:Pe,month:je,day:Pe},Ue={year:Pe,month:je,day:Pe,weekday:je},$e={year:Pe,month:ze,day:Pe},He={year:Pe,month:ze,day:Pe,weekday:ze},We={hour:Pe,minute:Pe},Ze={hour:Pe,minute:Pe,second:Pe},Ge={hour:Pe,minute:Pe,second:Pe,timeZoneName:je},Ye={hour:Pe,minute:Pe,second:Pe,timeZoneName:ze},Je={hour:Pe,minute:Pe,hourCycle:"h23"},Ke={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23"},Qe={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:je},Xe={hour:Pe,minute:Pe,second:Pe,hourCycle:"h23",timeZoneName:ze},et={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe},tt={year:Pe,month:Pe,day:Pe,hour:Pe,minute:Pe,second:Pe},nt={year:Pe,month:je,day:Pe,hour:Pe,minute:Pe},it={year:Pe,month:je,day:Pe,hour:Pe,minute:Pe,second:Pe},rt={year:Pe,month:je,day:Pe,weekday:je,hour:Pe,minute:Pe},st={year:Pe,month:ze,day:Pe,hour:Pe,minute:Pe,timeZoneName:je},ot={year:Pe,month:ze,day:Pe,hour:Pe,minute:Pe,second:Pe,timeZoneName:je},at={year:Pe,month:ze,day:Pe,weekday:ze,hour:Pe,minute:Pe,timeZoneName:ze},lt={year:Pe,month:ze,day:Pe,weekday:ze,hour:Pe,minute:Pe,second:Pe,timeZoneName:ze};class ct{get type(){throw new Ve}get name(){throw new Ve}get ianaName(){return this.name}get isUniversal(){throw new Ve}offsetName(e,t){throw new Ve}formatOffset(e,t){throw new Ve}offset(e){throw new Ve}equals(e){throw new Ve}get isValid(){throw new Ve}}let ut=null;class dt extends ct{static get instance(){return null===ut&&(ut=new dt),ut}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return kn(e,t,n)}formatOffset(e,t){return Mn(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let ht={};const pt={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let mt={};class ft extends ct{static create(e){return mt[e]||(mt[e]=new ft(e)),mt[e]}static resetCache(){mt={},ht={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=ft.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return kn(e,t,n,this.name)}formatOffset(e,t){return Mn(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(i=this.name,ht[i]||(ht[i]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ht[i]);var i;let[r,s,o,a,l,c,u]=n.formatToParts?function(e,t){const n=e.formatToParts(t),i=[];for(let e=0;e<n.length;e++){const{type:t,value:r}=n[e],s=pt[t];"era"===t?i[s]=r:cn(s)||(i[s]=parseInt(r,10))}return i}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,s,o,a,l,c,u]=i;return[o,r,s,a,l,c,u]}(n,t);"BC"===a&&(r=1-Math.abs(r));let d=+t;const h=d%1e3;return d-=h>=0?h:1e3+h,(Nn({year:r,month:s,day:o,hour:24===l?0:l,minute:c,second:u,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let gt={};let yt={};function vt(e,t={}){const n=JSON.stringify([e,t]);let i=yt[n];return i||(i=new Intl.DateTimeFormat(e,t),yt[n]=i),i}let bt={};let wt={};let Ct=null;let Tt={};function Et(e,t,n,i){const r=e.listingMode();return"error"===r?null:"en"===r?n(t):i(t)}class St{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:i,floor:r,...s}=n;if(!t||Object.keys(s).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let i=bt[n];return i||(i=new Intl.NumberFormat(e,t),bt[n]=i),i}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return vn(this.floor?Math.floor(e):Tn(e,3),this.padTo)}}class It{constructor(e,t,n){let i;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&ft.create(n).valid?(i=n,this.dt=e):(i="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const r={...this.opts};r.timeZone=r.timeZone||i,this.dtf=vt(t,r)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Nt{constructor(e,t,n){this.opts={style:"long",...n},!t&&hn()&&(this.rtf=function(e,t={}){const{base:n,...i}=t,r=JSON.stringify([e,i]);let s=wt[r];return s||(s=new Intl.RelativeTimeFormat(e,t),wt[r]=s),s}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",i=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&s){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${r[e][0]}`;case-1:return n?"yesterday":`last ${r[e][0]}`;case 0:return n?"today":`this ${r[e][0]}`}}const o=Object.is(t,-0)||t<0,a=Math.abs(t),l=1===a,c=r[e],u=i?l?c[1]:c[2]||c[1]:l?r[e][0]:e;return o?`${a} ${u} ago`:`in ${a} ${u}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const xt={firstDay:1,minimalDays:4,weekend:[6,7]};class Ot{static fromOpts(e){return Ot.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,i,r=!1){const s=e||Wt.defaultLocale,o=s||(r?"en-US":Ct||(Ct=(new Intl.DateTimeFormat).resolvedOptions().locale,Ct)),a=t||Wt.defaultNumberingSystem,l=n||Wt.defaultOutputCalendar,c=gn(i)||Wt.defaultWeekSettings;return new Ot(o,a,l,c,s)}static resetCache(){Ct=null,yt={},bt={},wt={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:i}={}){return Ot.create(e,t,n,i)}constructor(e,t,n,i,r){const[s,o,a]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,i;try{t=vt(e).resolvedOptions(),i=e}catch(r){const s=e.substring(0,n);t=vt(s).resolvedOptions(),i=s}const{numberingSystem:r,calendar:s}=t;return[i,r,s]}}(e);this.locale=s,this.numberingSystem=t||o||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Ot.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,gn(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Et(this,e,jn,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=function(e){const t=[];for(let n=1;n<=12;n++){const i=qr.utc(2009,n,1);t.push(e(i))}return t}((e=>this.extract(e,n,"month")))),this.monthsCache[i][e]}))}weekdays(e,t=!1){return Et(this,e,Un,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=function(e){const t=[];for(let n=1;n<=7;n++){const i=qr.utc(2016,11,13+n);t.push(e(i))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[i][e]}))}meridiems(){return Et(this,void 0,(()=>$n),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[qr.utc(2016,11,13,9),qr.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return Et(this,e,Gn,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[qr.utc(-40,1,1),qr.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const i=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return i?i.value:null}numberFormatter(e={}){return new St(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new It(e,this.intl,t)}relFormatter(e={}){return new Nt(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let i=gt[n];return i||(i=new Intl.ListFormat(e,t),gt[n]=i),i}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:pn()?function(e){let t=Tt[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Tt[e]=t}return t}(this.locale):xt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Dt=null;class kt extends ct{static get utcInstance(){return null===Dt&&(Dt=new kt(0)),Dt}static instance(e){return 0===e?kt.utcInstance:new kt(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new kt(An(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Mn(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Mn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Mn(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class At extends ct{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Lt(e,t){if(cn(e)||null===e)return t;if(e instanceof ct)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?dt.instance:"utc"===n||"gmt"===n?kt.utcInstance:kt.parseSpecifier(n)||ft.create(e)}return un(e)?kt.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new At(e)}const _t={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Mt={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Ft=_t.hanidec.replace(/[\[|\]]/g,"").split("");let Rt={};function Vt({numberingSystem:e},t=""){const n=e||"latn";return Rt[n]||(Rt[n]={}),Rt[n][t]||(Rt[n][t]=new RegExp(`${_t[n]}${t}`)),Rt[n][t]}let Pt,jt=()=>Date.now(),zt="system",Bt=null,qt=null,Ut=null,$t=60,Ht=null;class Wt{static get now(){return jt}static set now(e){jt=e}static set defaultZone(e){zt=e}static get defaultZone(){return Lt(zt,dt.instance)}static get defaultLocale(){return Bt}static set defaultLocale(e){Bt=e}static get defaultNumberingSystem(){return qt}static set defaultNumberingSystem(e){qt=e}static get defaultOutputCalendar(){return Ut}static set defaultOutputCalendar(e){Ut=e}static get defaultWeekSettings(){return Ht}static set defaultWeekSettings(e){Ht=gn(e)}static get twoDigitCutoffYear(){return $t}static set twoDigitCutoffYear(e){$t=e%100}static get throwOnInvalid(){return Pt}static set throwOnInvalid(e){Pt=e}static resetCaches(){Ot.resetCache(),ft.resetCache(),qr.resetCache(),Rt={}}}class Zt{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Gt=[0,31,59,90,120,151,181,212,243,273,304,334],Yt=[0,31,60,91,121,152,182,213,244,274,305,335];function Jt(e,t){return new Zt("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Kt(e,t,n){const i=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const r=i.getUTCDay();return 0===r?7:r}function Qt(e,t,n){return n+(En(e)?Yt:Gt)[t-1]}function Xt(e,t){const n=En(e)?Yt:Gt,i=n.findIndex((e=>e<t));return{month:i+1,day:t-n[i]}}function en(e,t){return(e-t+7)%7+1}function tn(e,t=4,n=1){const{year:i,month:r,day:s}=e,o=Qt(i,r,s),a=en(Kt(i,r,s),n);let l,c=Math.floor((o-a+14-t)/7);return c<1?(l=i-1,c=On(l,t,n)):c>On(i,t,n)?(l=i+1,c=1):l=i,{weekYear:l,weekNumber:c,weekday:a,...Fn(e)}}function nn(e,t=4,n=1){const{weekYear:i,weekNumber:r,weekday:s}=e,o=en(Kt(i,1,t),n),a=Sn(i);let l,c=7*r+s-o-7+t;c<1?(l=i-1,c+=Sn(l)):c>a?(l=i+1,c-=Sn(i)):l=i;const{month:u,day:d}=Xt(l,c);return{year:l,month:u,day:d,...Fn(e)}}function rn(e){const{year:t,month:n,day:i}=e;return{year:t,ordinal:Qt(t,n,i),...Fn(e)}}function sn(e){const{year:t,ordinal:n}=e,{month:i,day:r}=Xt(t,n);return{year:t,month:i,day:r,...Fn(e)}}function on(e,t){if(!cn(e.localWeekday)||!cn(e.localWeekNumber)||!cn(e.localWeekYear)){if(!cn(e.weekday)||!cn(e.weekNumber)||!cn(e.weekYear))throw new Me("Cannot mix locale-based week fields with ISO-based week fields");return cn(e.localWeekday)||(e.weekday=e.localWeekday),cn(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),cn(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function an(e){const t=dn(e.year),n=yn(e.month,1,12),i=yn(e.day,1,In(e.year,e.month));return t?n?!i&&Jt("day",e.day):Jt("month",e.month):Jt("year",e.year)}function ln(e){const{hour:t,minute:n,second:i,millisecond:r}=e,s=yn(t,0,23)||24===t&&0===n&&0===i&&0===r,o=yn(n,0,59),a=yn(i,0,59),l=yn(r,0,999);return s?o?a?!l&&Jt("millisecond",r):Jt("second",i):Jt("minute",n):Jt("hour",t)}function cn(e){return void 0===e}function un(e){return"number"==typeof e}function dn(e){return"number"==typeof e&&e%1==0}function hn(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function pn(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function mn(e,t,n){if(0!==e.length)return e.reduce(((e,i)=>{const r=[t(i),i];return e&&n(e[0],r[0])===e[0]?e:r}),null)[1]}function fn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function gn(e){if(null==e)return null;if("object"!=typeof e)throw new Re("Week settings must be an object");if(!yn(e.firstDay,1,7)||!yn(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!yn(e,1,7))))throw new Re("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function yn(e,t,n){return dn(e)&&e>=t&&e<=n}function vn(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function bn(e){return cn(e)||null===e||""===e?void 0:parseInt(e,10)}function wn(e){return cn(e)||null===e||""===e?void 0:parseFloat(e)}function Cn(e){if(!cn(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function Tn(e,t,n=!1){const i=10**t;return(n?Math.trunc:Math.round)(e*i)/i}function En(e){return e%4==0&&(e%100!=0||e%400==0)}function Sn(e){return En(e)?366:365}function In(e,t){const n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?En(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Nn(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function xn(e,t,n){return-en(Kt(e,1,t),n)+t-1}function On(e,t=4,n=1){const i=xn(e,t,n),r=xn(e+1,t,n);return(Sn(e)-i+r)/7}function Dn(e){return e>99?e:e>Wt.twoDigitCutoffYear?1900+e:2e3+e}function kn(e,t,n,i=null){const r=new Date(e),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(s.timeZone=i);const o={timeZoneName:t,...s},a=new Intl.DateTimeFormat(n,o).formatToParts(r).find((e=>"timezonename"===e.type.toLowerCase()));return a?a.value:null}function An(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const i=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-i:i)}function Ln(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new Re(`Invalid unit value ${e}`);return t}function _n(e,t){const n={};for(const i in e)if(fn(e,i)){const r=e[i];if(null==r)continue;n[t(i)]=Ln(r)}return n}function Mn(e,t){const n=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${vn(n,2)}:${vn(i,2)}`;case"narrow":return`${r}${n}${i>0?`:${i}`:""}`;case"techie":return`${r}${vn(n,2)}${vn(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Fn(e){return function(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}(e,["hour","minute","second","millisecond"])}const Rn=["January","February","March","April","May","June","July","August","September","October","November","December"],Vn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Pn=["J","F","M","A","M","J","J","A","S","O","N","D"];function jn(e){switch(e){case"narrow":return[...Pn];case"short":return[...Vn];case"long":return[...Rn];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const zn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Bn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],qn=["M","T","W","T","F","S","S"];function Un(e){switch(e){case"narrow":return[...qn];case"short":return[...Bn];case"long":return[...zn];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const $n=["AM","PM"],Hn=["Before Christ","Anno Domini"],Wn=["BC","AD"],Zn=["B","A"];function Gn(e){switch(e){case"narrow":return[...Zn];case"short":return[...Wn];case"long":return[...Hn];default:return null}}function Yn(e,t){let n="";for(const i of e)i.literal?n+=i.val:n+=t(i.val);return n}const Jn={D:Be,DD:qe,DDD:$e,DDDD:He,t:We,tt:Ze,ttt:Ge,tttt:Ye,T:Je,TT:Ke,TTT:Qe,TTTT:Xe,f:et,ff:nt,fff:st,ffff:at,F:tt,FF:it,FFF:ot,FFFF:lt};class Kn{static create(e,t={}){return new Kn(e,t)}static parseFormat(e){let t=null,n="",i=!1;const r=[];for(let s=0;s<e.length;s++){const o=e.charAt(s);"'"===o?(n.length>0&&r.push({literal:i||/^\s+$/.test(n),val:n}),t=null,n="",i=!i):i||o===t?n+=o:(n.length>0&&r.push({literal:/^\s+$/.test(n),val:n}),n=o,t=o)}return n.length>0&&r.push({literal:i||/^\s+$/.test(n),val:n}),r}static macroTokenToFormatOpts(e){return Jn[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return vn(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,r=(t,n)=>this.loc.extract(e,t,n),s=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",o=()=>n?function(e){return $n[e.hour<12?0:1]}(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(t,i)=>n?function(e,t){return jn(t)[e.month-1]}(e,t):r(i?{month:t}:{month:t,day:"numeric"},"month"),l=(t,i)=>n?function(e,t){return Un(t)[e.weekday-1]}(e,t):r(i?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),c=t=>{const n=Kn.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},u=t=>n?function(e,t){return Gn(t)[e.year<0?0:1]}(e,t):r({era:t},"era");return Yn(Kn.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return i?r({day:"numeric"},"day"):this.num(e.day);case"dd":return i?r({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return i?r({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?r({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return i?r({month:"numeric"},"month"):this.num(e.month);case"MM":return i?r({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return i?r({year:"numeric"},"year"):this.num(e.year);case"yy":return i?r({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?r({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?r({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(t)}}))}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=Kn.parseFormat(t),r=i.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]);return Yn(i,(e=>t=>{const i=n(t);return i?this.num(e.get(i),t.length):t})(e.shiftTo(...r.map(n).filter((e=>e)))))}}const Qn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Xn(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function ei(...e){return t=>e.reduce((([e,n,i],r)=>{const[s,o,a]=r(t,i);return[{...e,...s},o||n,a]}),[{},null,1]).slice(0,2)}function ti(e,...t){if(null==e)return[null,null];for(const[n,i]of t){const t=n.exec(e);if(t)return i(t)}return[null,null]}function ni(...e){return(t,n)=>{const i={};let r;for(r=0;r<e.length;r++)i[e[r]]=bn(t[n+r]);return[i,null,n+r]}}const ii=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ri=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,si=RegExp(`${ri.source}${`(?:${ii.source}?(?:\\[(${Qn.source})\\])?)?`}`),oi=RegExp(`(?:T${si.source})?`),ai=ni("weekYear","weekNumber","weekDay"),li=ni("year","ordinal"),ci=RegExp(`${ri.source} ?(?:${ii.source}|(${Qn.source}))?`),ui=RegExp(`(?: ${ci.source})?`);function di(e,t,n){const i=e[t];return cn(i)?n:bn(i)}function hi(e,t){return[{hours:di(e,t,0),minutes:di(e,t+1,0),seconds:di(e,t+2,0),milliseconds:Cn(e[t+3])},null,t+4]}function pi(e,t){const n=!e[t]&&!e[t+1],i=An(e[t+1],e[t+2]);return[{},n?null:kt.instance(i),t+3]}function mi(e,t){return[{},e[t]?ft.create(e[t]):null,t+1]}const fi=RegExp(`^T?${ri.source}$`),gi=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function yi(e){const[t,n,i,r,s,o,a,l,c]=e,u="-"===t[0],d=l&&"-"===l[0],h=(e,t=!1)=>void 0!==e&&(t||e&&u)?-e:e;return[{years:h(wn(n)),months:h(wn(i)),weeks:h(wn(r)),days:h(wn(s)),hours:h(wn(o)),minutes:h(wn(a)),seconds:h(wn(l),"-0"===l),milliseconds:h(Cn(c),d)}]}const vi={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bi(e,t,n,i,r,s,o){const a={year:2===t.length?Dn(bn(t)):bn(t),month:Vn.indexOf(n)+1,day:bn(i),hour:bn(r),minute:bn(s)};return o&&(a.second=bn(o)),e&&(a.weekday=e.length>3?zn.indexOf(e)+1:Bn.indexOf(e)+1),a}const wi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ci(e){const[,t,n,i,r,s,o,a,l,c,u,d]=e,h=bi(t,r,i,n,s,o,a);let p;return p=l?vi[l]:c?0:An(u,d),[h,new kt(p)]}const Ti=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ei=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Si=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ii(e){const[,t,n,i,r,s,o,a]=e;return[bi(t,r,i,n,s,o,a),kt.utcInstance]}function Ni(e){const[,t,n,i,r,s,o,a]=e;return[bi(t,a,n,i,r,s,o),kt.utcInstance]}const xi=Xn(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,oi),Oi=Xn(/(\d{4})-?W(\d\d)(?:-?(\d))?/,oi),Di=Xn(/(\d{4})-?(\d{3})/,oi),ki=Xn(si),Ai=ei((function(e,t){return[{year:di(e,t),month:di(e,t+1,1),day:di(e,t+2,1)},null,t+3]}),hi,pi,mi),Li=ei(ai,hi,pi,mi),_i=ei(li,hi,pi,mi),Mi=ei(hi,pi,mi);const Fi=ei(hi);const Ri=Xn(/(\d{4})-(\d\d)-(\d\d)/,ui),Vi=Xn(ci),Pi=ei(hi,pi,mi);const ji="Invalid Duration",zi={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Bi={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...zi},qi=365.2425,Ui=30.436875,$i={years:{quarters:4,months:12,weeks:52.1775,days:qi,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:Ui,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...zi},Hi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Wi=Hi.slice(0).reverse();function Zi(e,t,n=!1){const i={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ji(i)}function Gi(e,t){let n=t.milliseconds??0;for(const i of Wi.slice(1))t[i]&&(n+=t[i]*e[i].milliseconds);return n}function Yi(e,t){const n=Gi(e,t)<0?-1:1;Hi.reduceRight(((i,r)=>{if(cn(t[r]))return i;if(i){const s=t[i]*n,o=e[r][i],a=Math.floor(s/o);t[r]+=a*n,t[i]-=a*o*n}return r}),null),Hi.reduce(((n,i)=>{if(cn(t[i]))return n;if(n){const r=t[n]%1;t[n]-=r,t[i]+=r*e[n][i]}return i}),null)}class Ji{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?$i:Bi;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Ot.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Ji.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new Re("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Ji({values:_n(e,Ji.normalizeUnit),loc:Ot.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(un(e))return Ji.fromMillis(e);if(Ji.isDuration(e))return e;if("object"==typeof e)return Ji.fromObject(e);throw new Re(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return ti(e,[gi,yi])}(e);return n?Ji.fromObject(n,t):Ji.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return ti(e,[fi,Fi])}(e);return n?Ji.fromObject(n,t):Ji.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new Re("need to specify a reason the Duration is invalid");const n=e instanceof Zt?e:new Zt(e,t);if(Wt.throwOnInvalid)throw new _e(n);return new Ji({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new Fe(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Kn.create(this.loc,n).formatDurationFromString(this,e):ji}toHuman(e={}){if(!this.isValid)return ji;const t=Hi.map((t=>{const n=this.values[t];return cn(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=Tn(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1};return qr.fromMillis(t,{zone:"UTC"}).toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Gi(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Ji.fromDurationLike(e),n={};for(const e of Hi)(fn(t.values,e)||fn(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Zi(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=Ji.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Ln(e(this.values[n],n));return Zi(this,{values:t},!0)}get(e){return this[Ji.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return Zi(this,{values:{...this.values,..._n(e,Ji.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:i}={}){return Zi(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:i,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Yi(this.matrix,e),Zi(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return Zi(this,{values:function(e){const t={};for(const[n,i]of Object.entries(e))0!==i&&(t[n]=i);return t}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>Ji.normalizeUnit(e)));const t={},n={},i=this.toObject();let r;for(const s of Hi)if(e.indexOf(s)>=0){r=s;let e=0;for(const t in n)e+=this.matrix[t][s]*n[t],n[t]=0;un(i[s])&&(e+=i[s]);const o=Math.trunc(e);t[s]=o,n[s]=(1e3*e-1e3*o)/1e3}else un(i[s])&&(n[s]=i[s]);for(const e in n)0!==n[e]&&(t[r]+=e===r?n[e]:n[e]/this.matrix[r][e]);return Yi(this.matrix,t),Zi(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Zi(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const i of Hi)if(t=this.values[i],n=e.values[i],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}const Ki="Invalid Interval";class Qi{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new Re("need to specify a reason the Interval is invalid");const n=e instanceof Zt?e:new Zt(e,t);if(Wt.throwOnInvalid)throw new Le(n);return new Qi({invalid:n})}static fromDateTimes(e,t){const n=Ur(e),i=Ur(t),r=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?Qi.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Qi.invalid("missing or invalid end"):Qi.invalid("missing or invalid start")}(n,i);return null==r?new Qi({start:n,end:i}):r}static after(e,t){const n=Ji.fromDurationLike(t),i=Ur(e);return Qi.fromDateTimes(i,i.plus(n))}static before(e,t){const n=Ji.fromDurationLike(t),i=Ur(e);return Qi.fromDateTimes(i.minus(n),i)}static fromISO(e,t){const[n,i]=(e||"").split("/",2);if(n&&i){let e,r,s,o;try{e=qr.fromISO(n,t),r=e.isValid}catch(i){r=!1}try{s=qr.fromISO(i,t),o=s.isValid}catch(i){o=!1}if(r&&o)return Qi.fromDateTimes(e,s);if(r){const n=Ji.fromISO(i,t);if(n.isValid)return Qi.after(e,n)}else if(o){const e=Ji.fromISO(n,t);if(e.isValid)return Qi.before(s,e)}}return Qi.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let i;return i=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,i=i.startOf(e,t),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?Qi.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Ur).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),n=[];let{s:i}=this,r=0;for(;i<this.e;){const e=t[r]||this.e,s=+e>+this.e?this.e:e;n.push(Qi.fromDateTimes(i,s)),i=s,r+=1}return n}splitBy(e){const t=Ji.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:i}=this,r=1;const s=[];for(;i<this.e;){const e=this.start.plus(t.mapUnits((e=>e*r)));n=+e>+this.e?this.e:e,s.push(Qi.fromDateTimes(i,n)),i=n,r+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:Qi.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Qi.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const i=[],r=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),s=Array.prototype.concat(...r).sort(((e,t)=>e.time-t.time));for(const e of s)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!=+e.time&&i.push(Qi.fromDateTimes(t,e.time)),t=null);return Qi.merge(i)}difference(...e){return Qi.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Ki}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Be,t={}){return this.isValid?Kn.create(this.s.loc.clone(t),e).formatInterval(this):Ki}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ki}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ki}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ki}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Ki}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Ji.invalid(this.invalidReason)}mapEndpoints(e){return Qi.fromDateTimes(e(this.s),e(this.e))}}class Xi{static hasDST(e=Wt.defaultZone){const t=qr.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return ft.isValidZone(e)}static normalizeZone(e){return Lt(e,Wt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Ot.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Ot.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Ot.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||Ot.create(t,n,r)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||Ot.create(t,n,r)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ot.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ot.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Ot.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Ot.create(t,null,"gregory").eras(e)}static features(){return{relative:hn(),localeWeek:pn()}}}function er(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(t)-n(e);return Math.floor(Ji.fromMillis(i).as("days"))}function tr(e,t,n,i){let[r,s,o,a]=function(e,t,n){const i=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=er(e,t);return(n-n%7)/7}],["days",er]],r={},s=e;let o,a;for(const[l,c]of i)n.indexOf(l)>=0&&(o=l,r[l]=c(e,t),a=s.plus(r),a>t?(r[l]--,(e=s.plus(r))>t&&(a=e,r[l]--,e=s.plus(r))):e=a);return[e,r,a,o]}(e,t,n);const l=t-r,c=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===c.length&&(o<t&&(o=r.plus({[a]:1})),o!==r&&(s[a]=(s[a]||0)+l/(o-r)));const u=Ji.fromObject(s,i);return c.length>0?Ji.fromMillis(l,i).shiftTo(...c).plus(u):u}function nr(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(-1!==e[n].search(_t.hanidec))t+=Ft.indexOf(e[n]);else for(const e in Mt){const[n,r]=Mt[e];i>=n&&i<=r&&(t+=i-n)}}return parseInt(t,10)}return t}(e))}}const ir=`[ ${String.fromCharCode(160)}]`,rr=new RegExp(ir,"g");function sr(e){return e.replace(/\./g,"\\.?").replace(rr,ir)}function or(e){return e.replace(/\./g,"").replace(rr," ").toLowerCase()}function ar(e,t){return null===e?null:{regex:RegExp(e.map(sr).join("|")),deser:([n])=>e.findIndex((e=>or(n)===or(e)))+t}}function lr(e,t){return{regex:e,deser:([,e,t])=>An(e,t),groups:t}}function cr(e){return{regex:e,deser:([e])=>e}}const ur={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let dr=null;function hr(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=fr(Kn.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}class pr{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=hr(Kn.parseFormat(t),e),this.units=this.tokens.map((t=>function(e,t){const n=Vt(t),i=Vt(t,"{2}"),r=Vt(t,"{3}"),s=Vt(t,"{4}"),o=Vt(t,"{6}"),a=Vt(t,"{1,2}"),l=Vt(t,"{1,3}"),c=Vt(t,"{1,6}"),u=Vt(t,"{1,9}"),d=Vt(t,"{2,4}"),h=Vt(t,"{4,6}"),p=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},m=(m=>{if(e.literal)return p(m);switch(m.val){case"G":return ar(t.eras("short"),0);case"GG":return ar(t.eras("long"),0);case"y":return nr(c);case"yy":case"kk":return nr(d,Dn);case"yyyy":case"kkkk":return nr(s);case"yyyyy":return nr(h);case"yyyyyy":return nr(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return nr(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return nr(i);case"MMM":return ar(t.months("short",!0),1);case"MMMM":return ar(t.months("long",!0),1);case"LLL":return ar(t.months("short",!1),1);case"LLLL":return ar(t.months("long",!1),1);case"o":case"S":return nr(l);case"ooo":case"SSS":return nr(r);case"u":return cr(u);case"uu":return cr(a);case"uuu":case"E":case"c":return nr(n);case"a":return ar(t.meridiems(),0);case"EEE":return ar(t.weekdays("short",!1),1);case"EEEE":return ar(t.weekdays("long",!1),1);case"ccc":return ar(t.weekdays("short",!0),1);case"cccc":return ar(t.weekdays("long",!0),1);case"Z":case"ZZ":return lr(new RegExp(`([+-]${a.source})(?::(${i.source}))?`),2);case"ZZZ":return lr(new RegExp(`([+-]${a.source})(${i.source})?`),2);case"z":return cr(/[a-z_+-/]{1,256}?/i);case" ":return cr(/[^\S\n\r]/);default:return p(m)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return m.token=e,m}(t,e))),this.disqualifyingUnit=this.units.find((e=>e.invalidReason)),!this.disqualifyingUnit){const[e,t]=[`^${(n=this.units).map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,n];this.regex=RegExp(e,"i"),this.handlers=t}var n}explainFromTokens(e){if(this.isValid){const[t,n]=function(e,t,n){const i=e.match(t);if(i){const e={};let t=1;for(const r in n)if(fn(n,r)){const s=n[r],o=s.groups?s.groups+1:1;!s.literal&&s.token&&(e[s.token.val[0]]=s.deser(i.slice(t,t+o))),t+=o}return[i,e]}return[i,{}]}(e,this.regex,this.handlers),[i,r,s]=n?function(e){let t,n=null;return cn(e.z)||(n=ft.create(e.z)),cn(e.Z)||(n||(n=new kt(e.Z)),t=e.Z),cn(e.q)||(e.M=3*(e.q-1)+1),cn(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),cn(e.u)||(e.S=Cn(e.u)),[Object.keys(e).reduce(((t,n)=>{const i=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return i&&(t[i]=e[n]),t}),{}),n,t]}(n):[null,null,void 0];if(fn(n,"a")&&fn(n,"H"))throw new Me("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:i,zone:r,specificOffset:s}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function mr(e,t,n){return new pr(e,n).explainFromTokens(t)}function fr(e,t){if(!e)return null;const n=Kn.create(t,e).dtFormatter((dr||(dr=qr.fromMillis(1555555555555)),dr)),i=n.formatToParts(),r=n.resolvedOptions();return i.map((t=>function(e,t,n){const{type:i,value:r}=e;if("literal"===i){const e=/^\s+$/.test(r);return{literal:!e,val:e?" ":r}}const s=t[i];let o=i;"hour"===i&&(o=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let a=ur[o];if("object"==typeof a&&(a=a[s]),a)return{literal:!1,val:a}}(t,e,r)))}const gr="Invalid DateTime",yr=864e13;function vr(e){return new Zt("unsupported zone",`the zone "${e.name}" is not supported`)}function br(e){return null===e.weekData&&(e.weekData=tn(e.c)),e.weekData}function wr(e){return null===e.localWeekData&&(e.localWeekData=tn(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Cr(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new qr({...n,...t,old:n})}function Tr(e,t,n){let i=e-60*t*1e3;const r=n.offset(i);if(t===r)return[i,t];i-=60*(r-t)*1e3;const s=n.offset(i);return r===s?[i,r]:[e-60*Math.min(r,s)*1e3,Math.max(r,s)]}function Er(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Sr(e,t,n){return Tr(Nn(e),t,n)}function Ir(e,t){const n=e.o,i=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),s={...e.c,year:i,month:r,day:Math.min(e.c.day,In(i,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},o=Ji.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=Nn(s);let[l,c]=Tr(a,n,e.zone);return 0!==o&&(l+=o,c=e.zone.offset(l)),{ts:l,o:c}}function Nr(e,t,n,i,r,s){const{setZone:o,zone:a}=n;if(e&&0!==Object.keys(e).length||t){const i=t||a,r=qr.fromObject(e,{...n,zone:i,specificOffset:s});return o?r:r.setZone(a)}return qr.invalid(new Zt("unparsable",`the input "${r}" can't be parsed as ${i}`))}function xr(e,t,n=!0){return e.isValid?Kn.create(Ot.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Or(e,t){const n=e.c.year>9999||e.c.year<0;let i="";return n&&e.c.year>=0&&(i+="+"),i+=vn(e.c.year,n?6:4),t?(i+="-",i+=vn(e.c.month),i+="-",i+=vn(e.c.day)):(i+=vn(e.c.month),i+=vn(e.c.day)),i}function Dr(e,t,n,i,r,s){let o=vn(e.c.hour);return t?(o+=":",o+=vn(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(o+=":")):o+=vn(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(o+=vn(e.c.second),0===e.c.millisecond&&i||(o+=".",o+=vn(e.c.millisecond,3))),r&&(e.isOffsetFixed&&0===e.offset&&!s?o+="Z":e.o<0?(o+="-",o+=vn(Math.trunc(-e.o/60)),o+=":",o+=vn(Math.trunc(-e.o%60))):(o+="+",o+=vn(Math.trunc(e.o/60)),o+=":",o+=vn(Math.trunc(e.o%60)))),s&&(o+="["+e.zone.ianaName+"]"),o}const kr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ar={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Lr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},_r=["year","month","day","hour","minute","second","millisecond"],Mr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Fr=["year","ordinal","hour","minute","second","millisecond"];function Rr(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Fe(e);return t}(e)}}function Vr(e,t){const n=Lt(t.zone,Wt.defaultZone);if(!n.isValid)return qr.invalid(vr(n));const i=Ot.fromObject(t);let r,s;if(cn(e.year))r=Wt.now();else{for(const t of _r)cn(e[t])&&(e[t]=kr[t]);const t=an(e)||ln(e);if(t)return qr.invalid(t);const i=function(e){return Br[e]||(void 0===zr&&(zr=Wt.now()),Br[e]=e.offset(zr)),Br[e]}(n);[r,s]=Sr(e,i,n)}return new qr({ts:r,zone:n,loc:i,o:s})}function Pr(e,t,n){const i=!!cn(n.round)||n.round,r=(e,r)=>{e=Tn(e,i||n.calendary?0:2,!0);return t.loc.clone(n).relFormatter(n).format(e,r)},s=i=>n.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(n.unit)return r(s(n.unit),n.unit);for(const e of n.units){const t=s(e);if(Math.abs(t)>=1)return r(t,e)}return r(e>t?-0:0,n.units[n.units.length-1])}function jr(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}let zr,Br={};class qr{constructor(e){const t=e.zone||Wt.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Zt("invalid input"):null)||(t.isValid?null:vr(t));this.ts=cn(e.ts)?Wt.now():e.ts;let i=null,r=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[i,r]=[e.old.c,e.old.o];else{const s=un(e.o)&&!e.old?e.o:t.offset(this.ts);i=Er(this.ts,s),n=Number.isNaN(i.year)?new Zt("invalid input"):null,i=n?null:i,r=n?null:s}}this._zone=t,this.loc=e.loc||Ot.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=r,this.isLuxonDateTime=!0}static now(){return new qr({})}static local(){const[e,t]=jr(arguments),[n,i,r,s,o,a,l]=t;return Vr({year:n,month:i,day:r,hour:s,minute:o,second:a,millisecond:l},e)}static utc(){const[e,t]=jr(arguments),[n,i,r,s,o,a,l]=t;return e.zone=kt.utcInstance,Vr({year:n,month:i,day:r,hour:s,minute:o,second:a,millisecond:l},e)}static fromJSDate(e,t={}){const n=(i=e,"[object Date]"===Object.prototype.toString.call(i)?e.valueOf():NaN);var i;if(Number.isNaN(n))return qr.invalid("invalid input");const r=Lt(t.zone,Wt.defaultZone);return r.isValid?new qr({ts:n,zone:r,loc:Ot.fromObject(t)}):qr.invalid(vr(r))}static fromMillis(e,t={}){if(un(e))return e<-yr||e>yr?qr.invalid("Timestamp out of range"):new qr({ts:e,zone:Lt(t.zone,Wt.defaultZone),loc:Ot.fromObject(t)});throw new Re(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(un(e))return new qr({ts:1e3*e,zone:Lt(t.zone,Wt.defaultZone),loc:Ot.fromObject(t)});throw new Re("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=Lt(t.zone,Wt.defaultZone);if(!n.isValid)return qr.invalid(vr(n));const i=Ot.fromObject(t),r=_n(e,Rr),{minDaysInFirstWeek:s,startOfWeek:o}=on(r,i),a=Wt.now(),l=cn(t.specificOffset)?n.offset(a):t.specificOffset,c=!cn(r.ordinal),u=!cn(r.year),d=!cn(r.month)||!cn(r.day),h=u||d,p=r.weekYear||r.weekNumber;if((h||c)&&p)throw new Me("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new Me("Can't mix ordinal dates with month/day");const m=p||r.weekday&&!h;let f,g,y=Er(a,l);m?(f=Mr,g=Ar,y=tn(y,s,o)):c?(f=Fr,g=Lr,y=rn(y)):(f=_r,g=kr);let v=!1;for(const e of f){cn(r[e])?r[e]=v?g[e]:y[e]:v=!0}const b=m?function(e,t=4,n=1){const i=dn(e.weekYear),r=yn(e.weekNumber,1,On(e.weekYear,t,n)),s=yn(e.weekday,1,7);return i?r?!s&&Jt("weekday",e.weekday):Jt("week",e.weekNumber):Jt("weekYear",e.weekYear)}(r,s,o):c?function(e){const t=dn(e.year),n=yn(e.ordinal,1,Sn(e.year));return t?!n&&Jt("ordinal",e.ordinal):Jt("year",e.year)}(r):an(r),w=b||ln(r);if(w)return qr.invalid(w);const C=m?nn(r,s,o):c?sn(r):r,[T,E]=Sr(C,l,n),S=new qr({ts:T,zone:n,o:E,loc:i});return r.weekday&&h&&e.weekday!==S.weekday?qr.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${S.toISO()}`):S.isValid?S:qr.invalid(S.invalid)}static fromISO(e,t={}){const[n,i]=function(e){return ti(e,[xi,Ai],[Oi,Li],[Di,_i],[ki,Mi])}(e);return Nr(n,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,i]=function(e){return ti(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[wi,Ci])}(e);return Nr(n,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,i]=function(e){return ti(e,[Ti,Ii],[Ei,Ii],[Si,Ni])}(e);return Nr(n,i,t,"HTTP",t)}static fromFormat(e,t,n={}){if(cn(e)||cn(t))throw new Re("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:r=null}=n,s=Ot.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),[o,a,l,c]=function(e,t,n){const{result:i,zone:r,specificOffset:s,invalidReason:o}=mr(e,t,n);return[i,r,s,o]}(s,e,t);return c?qr.invalid(c):Nr(o,a,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return qr.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,i]=function(e){return ti(e,[Ri,Ai],[Vi,Pi])}(e);return Nr(n,i,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new Re("need to specify a reason the DateTime is invalid");const n=e instanceof Zt?e:new Zt(e,t);if(Wt.throwOnInvalid)throw new Ae(n);return new qr({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=fr(e,Ot.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return hr(Kn.parseFormat(e),Ot.fromObject(t)).map((e=>e.val)).join("")}static resetCache(){zr=void 0,Br={}}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?br(this).weekYear:NaN}get weekNumber(){return this.isValid?br(this).weekNumber:NaN}get weekday(){return this.isValid?br(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?wr(this).weekday:NaN}get localWeekNumber(){return this.isValid?wr(this).weekNumber:NaN}get localWeekYear(){return this.isValid?wr(this).weekYear:NaN}get ordinal(){return this.isValid?rn(this.c).ordinal:NaN}get monthShort(){return this.isValid?Xi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Xi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Xi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Xi.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=Nn(this.c),i=this.zone.offset(n-e),r=this.zone.offset(n+e),s=this.zone.offset(n-i*t),o=this.zone.offset(n-r*t);if(s===o)return[this];const a=n-s*t,l=n-o*t,c=Er(a,s),u=Er(l,o);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[Cr(this,{ts:a}),Cr(this,{ts:l})]:[this]}get isInLeapYear(){return En(this.year)}get daysInMonth(){return In(this.year,this.month)}get daysInYear(){return this.isValid?Sn(this.year):NaN}get weeksInWeekYear(){return this.isValid?On(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?On(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:i}=Kn.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(kt.instance(e),t)}toLocal(){return this.setZone(Wt.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=Lt(e,Wt.defaultZone)).equals(this.zone))return this;if(e.isValid){let i=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[i]=Sr(n,t,e)}return Cr(this,{ts:i,zone:e})}return qr.invalid(vr(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return Cr(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=_n(e,Rr),{minDaysInFirstWeek:n,startOfWeek:i}=on(t,this.loc),r=!cn(t.weekYear)||!cn(t.weekNumber)||!cn(t.weekday),s=!cn(t.ordinal),o=!cn(t.year),a=!cn(t.month)||!cn(t.day),l=o||a,c=t.weekYear||t.weekNumber;if((l||s)&&c)throw new Me("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Me("Can't mix ordinal dates with month/day");let u;r?u=nn({...tn(this.c,n,i),...t},n,i):cn(t.ordinal)?(u={...this.toObject(),...t},cn(t.day)&&(u.day=Math.min(In(u.year,u.month),u.day))):u=sn({...rn(this.c),...t});const[d,h]=Sr(u,this.o,this.zone);return Cr(this,{ts:d,o:h})}plus(e){if(!this.isValid)return this;return Cr(this,Ir(this,Ji.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return Cr(this,Ir(this,Ji.fromDurationLike(e).negate()))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},i=Ji.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===i)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===i){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?Kn.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):gr}toLocaleString(e=Be,t={}){return this.isValid?Kn.create(this.loc.clone(t),e).formatDateTime(this):gr}toLocaleParts(e={}){return this.isValid?Kn.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const s="extended"===e;let o=Or(this,s);return o+="T",o+=Dr(this,s,t,n,i,r),o}toISODate({format:e="extended"}={}){return this.isValid?Or(this,"extended"===e):null}toISOWeekDate(){return xr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:r=!1,format:s="extended"}={}){if(!this.isValid)return null;return(i?"T":"")+Dr(this,"extended"===s,t,e,n,r)}toRFC2822(){return xr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return xr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Or(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(t||e)&&(n&&(i+=" "),t?i+="z":e&&(i+="ZZ")),xr(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():gr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Ji.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...n},r=(a=t,Array.isArray(a)?a:[a]).map(Ji.normalizeUnit),s=e.valueOf()>this.valueOf(),o=tr(s?this:e,s?e:this,r,i);var a;return s?o.negate():o}diffNow(e="milliseconds",t={}){return this.diff(qr.now(),e,t)}until(e){return this.isValid?Qi.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const i=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t,n)<=i&&i<=r.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||qr.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let i=["years","months","days","hours","minutes","seconds"],r=e.unit;return Array.isArray(e.unit)&&(i=e.unit,r=void 0),Pr(t,this.plus(n),{...e,numeric:"always",units:i,unit:r})}toRelativeCalendar(e={}){return this.isValid?Pr(e.base||qr.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(qr.isDateTime))throw new Re("min requires all arguments be DateTimes");return mn(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(qr.isDateTime))throw new Re("max requires all arguments be DateTimes");return mn(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:i=null,numberingSystem:r=null}=n;return mr(Ot.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return qr.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:i=null}=t,r=Ot.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new pr(r,e)}static fromFormatParser(e,t,n={}){if(cn(e)||cn(t))throw new Re("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:r=null}=n,s=Ot.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});if(!s.equals(t.locale))throw new Re(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${t.locale}`);const{result:o,zone:a,specificOffset:l,invalidReason:c}=t.explainFromTokens(e);return c?qr.invalid(c):Nr(o,a,n,`format ${t.format}`,e,l)}static get DATE_SHORT(){return Be}static get DATE_MED(){return qe}static get DATE_MED_WITH_WEEKDAY(){return Ue}static get DATE_FULL(){return $e}static get DATE_HUGE(){return He}static get TIME_SIMPLE(){return We}static get TIME_WITH_SECONDS(){return Ze}static get TIME_WITH_SHORT_OFFSET(){return Ge}static get TIME_WITH_LONG_OFFSET(){return Ye}static get TIME_24_SIMPLE(){return Je}static get TIME_24_WITH_SECONDS(){return Ke}static get TIME_24_WITH_SHORT_OFFSET(){return Qe}static get TIME_24_WITH_LONG_OFFSET(){return Xe}static get DATETIME_SHORT(){return et}static get DATETIME_SHORT_WITH_SECONDS(){return tt}static get DATETIME_MED(){return nt}static get DATETIME_MED_WITH_SECONDS(){return it}static get DATETIME_MED_WITH_WEEKDAY(){return rt}static get DATETIME_FULL(){return st}static get DATETIME_FULL_WITH_SECONDS(){return ot}static get DATETIME_HUGE(){return at}static get DATETIME_HUGE_WITH_SECONDS(){return lt}}function Ur(e){if(qr.isDateTime(e))return e;if(e&&e.valueOf&&un(e.valueOf()))return qr.fromJSDate(e);if(e&&"object"==typeof e)return qr.fromObject(e);throw new Re(`Unknown datetime argument: ${e}, of type ${typeof e}`)}class $r{static formatMsDuration(e,t=!1){const n=Math.floor(e%1e3),i=Math.floor(e/1e3)%60,r=Math.floor(e/6e4)%60,s=Math.floor(e/36e5)%24,o=Math.floor(e/864e5),a=De.leadingZeros;let l=a(s,2)+"h"+a(r,2)+"m";return l+=t?a(i,2)+"."+a(n,3)+"s":a(i,2)+"s",o>0&&(l=o+"d"+l),l}static colonFormatMsDuration(e,t=!1){const n=e%1e3,i=Math.floor(e/1e3)%60,r=Math.floor(e/6e4)%60,s=Math.floor(e/36e5),o=De.leadingZeros;let a=o(s,2)+":"+o(r,2)+":";return a+=t?o(i,2)+"."+o(n,3):o(i,2),a}static daysBetween(e,t){return qr.fromJSDate(e).diff(qr.fromJSDate(t)).days}static createSteps(e,t,n,i,r){let s=qr.fromMillis(e).setZone(n);const o=qr.fromMillis(t),a=[];for(;s<o;)a.push(s.toFormat(i)),s=s.plus(r);return a}}var Hr;exports.TimeAgoFormattedPipe=class{transform(e){return $r.formatMsDuration((new Date).getTime()-De.safeNumber(e))}},exports.TimeAgoFormattedPipe=l([e.Pipe({name:"acuteTimeAgo",standalone:!0})],exports.TimeAgoFormattedPipe),exports.TimingPipe=class{transform(e){if(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${this.initZero(t)}${t}:${this.initZero(n)}${n}`}return"00:00"}initZero(e){return e<10?"0":""}},exports.TimingPipe=l([e.Pipe({name:"acuteTiming",standalone:!0})],exports.TimingPipe),exports.GoogleAnalyticsService=class{static{Hr=this}router;static IS_PROD=!0;constructor(e){this.router=e}initialize(){this.onRouteChange();try{const e="https://www.googletagmanager.com/gtag/js?id=",t=document.createElement("script");t.async=!0;const n=Hr.IS_PROD?"G-7D5BBK4K8X":null;t.src=`${e}${n}`,document.head.appendChild(t);const i=document.createElement("script");i.innerHTML=`\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '${n}', {'send_page_view': false});`,document.head.appendChild(i)}catch(e){Te.error("Error adding Google Analytics",e,e)}}onRouteChange(){const e=Hr.IS_PROD?"G-7D5BBK4K8X":null;this.router.events.subscribe((t=>{t instanceof i.NavigationEnd&&(gtag("config",e,{page_path:t.urlAfterRedirects}),Te.info("Sending Google Analytics tracking for: ",t.urlAfterRedirects),Te.info("Google Analytics property ID: ",e))}))}event(e,t,n,i){gtag("event",e,{...t&&{event_category:t},...n&&{event_label:n},...i&&{value:i}})}},exports.GoogleAnalyticsService=Hr=l([e.Injectable({providedIn:"root"}),c("design:paramtypes",[i.Router])],exports.GoogleAnalyticsService);class Wr{logLevel;rethrow;constructor(e=ie,t=!1){this.logLevel=e,this.rethrow=t}handleError(e,t,n,i){if(Te.logByLevel(this.logLevel,"Graphql failed : %s : %s : Anon-%s : %j",e,t,i,n),this.rethrow)throw e}}class Zr{static safeStringifyErr(e,t=!0){let n="ERR WAS NULL";if(e)if(e.message)n=e.message;else try{n=JSON.stringify(e)}catch(t){Te.error("Failed to json stringify: %s",t),n=String(e)}return t&&Te.error("%s",n,e),n}static asErr(e){let t=null;return e&&(t=e instanceof Error?e:new Error("Force-Cast to error : "+String(e))),t}static fErr(e,...t){const n=ye.format(e,...t);return new Error(n)}static throwFormattedErr(e,...t){throw Zr.fErr(e,...t)}}class Gr extends Error{response;request;constructor(e,t){super(`${Gr.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,Gr.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Gr)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${String(e.status)})`}}const Yr=e=>e.toUpperCase(),Jr=e=>"function"==typeof e?e():e,Kr=(e,t)=>e.map(((e,n)=>[e,t[n]])),Qr=e=>{let t={};return e instanceof Headers?t=Xr(e):Array.isArray(e)?e.forEach((([e,n])=>{e&&void 0!==n&&(t[e]=n)})):e&&(t=e),t},Xr=e=>{const t={};return e.forEach(((e,n)=>{t[n]=e})),t},es=e=>e instanceof Error?e:new Error(String(e)),ts=e=>"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then&&"catch"in e&&"function"==typeof e.catch&&"finally"in e&&"function"==typeof e.finally,ns=e=>{throw new Error(`Unhandled case: ${String(e)}`)},is=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);function rs(e,t){if(!Boolean(e))throw new Error(t)}function ss(e,t){if(!Boolean(e))throw new Error("Unexpected invariant triggered.")}const os=/\r\n|[\n\r]/g;function as(e,t){let n=0,i=1;for(const r of e.body.matchAll(os)){if("number"==typeof r.index||ss(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function ls(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=1===t.line?n:0,l=t.column+a,c=`${e.name}:${o}:${l}\n`,u=i.split(/\r\n|[\n\r]/g),d=u[r];if(d.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return c+cs([[`${o} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+cs([[o-1+" |",u[r-1]],[`${o} |`,d],["|","^".padStart(l)],[`${o+1} |`,u[r+1]]])}function cs(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class us extends Error{constructor(e,...t){var n,i,r;const{nodes:s,source:o,positions:a,path:l,originalError:c,extensions:u}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=c?c:void 0,this.nodes=ds(Array.isArray(s)?s:s?[s]:void 0);const d=ds(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==d||null===(i=d[0])||void 0===i?void 0:i.source,this.positions=null!=a?a:null==d?void 0:d.map((e=>e.start)),this.locations=a&&o?a.map((e=>as(o,e))):null==d?void 0:d.map((e=>as(e.source,e.start)));const h="object"==typeof(p=null==c?void 0:c.extensions)&&null!==p?null==c?void 0:c.extensions:void 0;var p;this.extensions=null!==(r=null!=u?u:h)&&void 0!==r?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,us):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+ls((t=n.loc).source,as(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+ls(this.source,t);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function ds(e){return void 0===e||0===e.length?void 0:e}function hs(e,t,n){return new us(`Syntax Error: ${n}`,{source:e,positions:[t]})}class ps{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class ms{constructor(e,t,n,i,r,s){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const fs={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},gs=new Set(Object.keys(fs));function ys(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&gs.has(t)}var vs,bs,ws,Cs;function Ts(e){return 9===e||32===e}function Es(e){return e>=48&&e<=57}function Ss(e){return e>=97&&e<=122||e>=65&&e<=90}function Is(e){return Ss(e)||95===e}function Ns(e){return Ss(e)||Es(e)||95===e}function xs(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let t=0;t<e.length;++t){var s;const o=e[t],a=Os(o);a!==o.length&&(i=null!==(s=i)&&void 0!==s?s:t,r=t,0!==t&&a<n&&(n=a))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=i)&&void 0!==t?t:0,r+1)}function Os(e){let t=0;for(;t<e.length&&Ts(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(vs||(vs={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(bs||(bs={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(ws||(ws={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(Cs||(Cs={}));class Ds{constructor(e){const t=new ms(Cs.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==Cs.EOF)do{if(e.next)e=e.next;else{const t=Rs(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===Cs.COMMENT);return e}}function ks(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function As(e,t){return Ls(e.charCodeAt(t))&&_s(e.charCodeAt(t+1))}function Ls(e){return e>=55296&&e<=56319}function _s(e){return e>=56320&&e<=57343}function Ms(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return Cs.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Fs(e,t,n,i,r){const s=e.line,o=1+n-e.lineStart;return new ms(t,n,i,s,o,r)}function Rs(e,t){const n=e.source.body,i=n.length;let r=t;for(;r<i;){const t=n.charCodeAt(r);switch(t){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:10===n.charCodeAt(r+1)?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return Vs(e,r);case 33:return Fs(e,Cs.BANG,r,r+1);case 36:return Fs(e,Cs.DOLLAR,r,r+1);case 38:return Fs(e,Cs.AMP,r,r+1);case 40:return Fs(e,Cs.PAREN_L,r,r+1);case 41:return Fs(e,Cs.PAREN_R,r,r+1);case 46:if(46===n.charCodeAt(r+1)&&46===n.charCodeAt(r+2))return Fs(e,Cs.SPREAD,r,r+3);break;case 58:return Fs(e,Cs.COLON,r,r+1);case 61:return Fs(e,Cs.EQUALS,r,r+1);case 64:return Fs(e,Cs.AT,r,r+1);case 91:return Fs(e,Cs.BRACKET_L,r,r+1);case 93:return Fs(e,Cs.BRACKET_R,r,r+1);case 123:return Fs(e,Cs.BRACE_L,r,r+1);case 124:return Fs(e,Cs.PIPE,r,r+1);case 125:return Fs(e,Cs.BRACE_R,r,r+1);case 34:return 34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)?Ws(e,r):zs(e,r)}if(Es(t)||45===t)return Ps(e,r,t);if(Is(t))return Zs(e,r);throw hs(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":ks(t)||As(n,r)?`Unexpected character: ${Ms(e,r)}.`:`Invalid character: ${Ms(e,r)}.`)}return Fs(e,Cs.EOF,i,i)}function Vs(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){const e=n.charCodeAt(r);if(10===e||13===e)break;if(ks(e))++r;else{if(!As(n,r))break;r+=2}}return Fs(e,Cs.COMMENT,t,r,n.slice(t+1,r))}function Ps(e,t,n){const i=e.source.body;let r=t,s=n,o=!1;if(45===s&&(s=i.charCodeAt(++r)),48===s){if(s=i.charCodeAt(++r),Es(s))throw hs(e.source,r,`Invalid number, unexpected digit after 0: ${Ms(e,r)}.`)}else r=js(e,r,s),s=i.charCodeAt(r);if(46===s&&(o=!0,s=i.charCodeAt(++r),r=js(e,r,s),s=i.charCodeAt(r)),69!==s&&101!==s||(o=!0,s=i.charCodeAt(++r),43!==s&&45!==s||(s=i.charCodeAt(++r)),r=js(e,r,s),s=i.charCodeAt(r)),46===s||Is(s))throw hs(e.source,r,`Invalid number, expected digit but got: ${Ms(e,r)}.`);return Fs(e,o?Cs.FLOAT:Cs.INT,t,r,i.slice(t,r))}function js(e,t,n){if(!Es(n))throw hs(e.source,t,`Invalid number, expected digit but got: ${Ms(e,t)}.`);const i=e.source.body;let r=t+1;for(;Es(i.charCodeAt(r));)++r;return r}function zs(e,t){const n=e.source.body,i=n.length;let r=t+1,s=r,o="";for(;r<i;){const i=n.charCodeAt(r);if(34===i)return o+=n.slice(s,r),Fs(e,Cs.STRING,t,r+1,o);if(92!==i){if(10===i||13===i)break;if(ks(i))++r;else{if(!As(n,r))throw hs(e.source,r,`Invalid character within String: ${Ms(e,r)}.`);r+=2}}else{o+=n.slice(s,r);const t=117===n.charCodeAt(r+1)?123===n.charCodeAt(r+2)?Bs(e,r):qs(e,r):Hs(e,r);o+=t.value,r+=t.size,s=r}}throw hs(e.source,r,"Unterminated string.")}function Bs(e,t){const n=e.source.body;let i=0,r=3;for(;r<12;){const e=n.charCodeAt(t+r++);if(125===e){if(r<5||!ks(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|$s(e),i<0)break}throw hs(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function qs(e,t){const n=e.source.body,i=Us(n,t+2);if(ks(i))return{value:String.fromCodePoint(i),size:6};if(Ls(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=Us(n,t+8);if(_s(e))return{value:String.fromCodePoint(i,e),size:12}}throw hs(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function Us(e,t){return $s(e.charCodeAt(t))<<12|$s(e.charCodeAt(t+1))<<8|$s(e.charCodeAt(t+2))<<4|$s(e.charCodeAt(t+3))}function $s(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Hs(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw hs(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Ws(e,t){const n=e.source.body,i=n.length;let r=e.lineStart,s=t+3,o=s,a="";const l=[];for(;s<i;){const i=n.charCodeAt(s);if(34===i&&34===n.charCodeAt(s+1)&&34===n.charCodeAt(s+2)){a+=n.slice(o,s),l.push(a);const i=Fs(e,Cs.BLOCK_STRING,t,s+3,xs(l).join("\n"));return e.line+=l.length-1,e.lineStart=r,i}if(92!==i||34!==n.charCodeAt(s+1)||34!==n.charCodeAt(s+2)||34!==n.charCodeAt(s+3))if(10!==i&&13!==i)if(ks(i))++s;else{if(!As(n,s))throw hs(e.source,s,`Invalid character within String: ${Ms(e,s)}.`);s+=2}else a+=n.slice(o,s),l.push(a),13===i&&10===n.charCodeAt(s+1)?s+=2:++s,a="",o=s,r=s;else a+=n.slice(o,s),o=s+1,s+=4}throw hs(e.source,s,"Unterminated string.")}function Zs(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){if(!Ns(n.charCodeAt(r)))break;++r}return Fs(e,Cs.NAME,t,r,n.slice(t,r))}const Gs=10,Ys=2;function Js(e){return Ks(e,[])}function Ks(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:Ks(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>Ys)return"[Array]";const n=Math.min(Gs,e.length),i=e.length-n,r=[];for(let i=0;i<n;++i)r.push(Ks(e[i],t));1===i?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`);return"["+r.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>Ys)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const i=n.map((([e,n])=>e+": "+Ks(n,t)));return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const Qs=globalThis.process&&"production"===process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=Js(e);throw new Error(`Cannot use ${i} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class Xs{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||rs(!1,`Body must be a string. Received: ${Js(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||rs(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||rs(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class eo{constructor(e,t={}){const n=function(e){return Qs(e,Xs)}(e)?e:new Xs(e);this._lexer=new Ds(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(Cs.NAME);return this.node(e,{kind:ws.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:ws.DOCUMENT,definitions:this.many(Cs.SOF,this.parseDefinition,Cs.EOF)})}parseDefinition(){if(this.peek(Cs.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===Cs.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw hs(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(Cs.BRACE_L))return this.node(e,{kind:ws.OPERATION_DEFINITION,operation:vs.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(Cs.NAME)&&(n=this.parseName()),this.node(e,{kind:ws.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(Cs.NAME);switch(e.value){case"query":return vs.QUERY;case"mutation":return vs.MUTATION;case"subscription":return vs.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(Cs.PAREN_L,this.parseVariableDefinition,Cs.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ws.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Cs.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Cs.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(Cs.DOLLAR),this.node(e,{kind:ws.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ws.SELECTION_SET,selections:this.many(Cs.BRACE_L,this.parseSelection,Cs.BRACE_R)})}parseSelection(){return this.peek(Cs.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(Cs.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:ws.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Cs.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Cs.PAREN_L,t,Cs.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(Cs.COLON),this.node(t,{kind:ws.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(Cs.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(Cs.NAME)?this.node(e,{kind:ws.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:ws.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:ws.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:ws.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case Cs.BRACKET_L:return this.parseList(e);case Cs.BRACE_L:return this.parseObject(e);case Cs.INT:return this.advanceLexer(),this.node(t,{kind:ws.INT,value:t.value});case Cs.FLOAT:return this.advanceLexer(),this.node(t,{kind:ws.FLOAT,value:t.value});case Cs.STRING:case Cs.BLOCK_STRING:return this.parseStringLiteral();case Cs.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:ws.BOOLEAN,value:!0});case"false":return this.node(t,{kind:ws.BOOLEAN,value:!1});case"null":return this.node(t,{kind:ws.NULL});default:return this.node(t,{kind:ws.ENUM,value:t.value})}case Cs.DOLLAR:if(e){if(this.expectToken(Cs.DOLLAR),this._lexer.token.kind===Cs.NAME){const e=this._lexer.token.value;throw hs(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:ws.STRING,value:e.value,block:e.kind===Cs.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:ws.LIST,values:this.any(Cs.BRACKET_L,(()=>this.parseValueLiteral(e)),Cs.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:ws.OBJECT,fields:this.any(Cs.BRACE_L,(()=>this.parseObjectField(e)),Cs.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(Cs.COLON),this.node(t,{kind:ws.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(Cs.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(Cs.AT),this.node(t,{kind:ws.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(Cs.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(Cs.BRACKET_R),t=this.node(e,{kind:ws.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(Cs.BANG)?this.node(e,{kind:ws.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:ws.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Cs.STRING)||this.peek(Cs.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(Cs.BRACE_L,this.parseOperationTypeDefinition,Cs.BRACE_R);return this.node(e,{kind:ws.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(Cs.COLON);const n=this.parseNamedType();return this.node(e,{kind:ws.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:ws.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:ws.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Cs.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Cs.BRACE_L,this.parseFieldDefinition,Cs.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Cs.COLON);const r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:ws.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(Cs.PAREN_L,this.parseInputValueDef,Cs.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Cs.COLON);const i=this.parseTypeReference();let r;this.expectOptionalToken(Cs.EQUALS)&&(r=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:ws.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:ws.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:ws.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(Cs.EQUALS)?this.delimitedMany(Cs.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:ws.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(Cs.BRACE_L,this.parseEnumValueDefinition,Cs.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:ws.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw hs(this._lexer.source,this._lexer.token.start,`${to(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:ws.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(Cs.BRACE_L,this.parseInputValueDef,Cs.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===Cs.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(Cs.BRACE_L,this.parseOperationTypeDefinition,Cs.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ws.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:ws.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ws.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ws.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ws.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ws.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ws.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Cs.AT);const n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:ws.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(Cs.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(bs,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new ps(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw hs(this._lexer.source,t.start,`Expected ${no(e)}, found ${to(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==Cs.NAME||t.value!==e)throw hs(this._lexer.source,t.start,`Expected "${e}", found ${to(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===Cs.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return hs(this._lexer.source,t.start,`Unexpected ${to(t)}.`)}any(e,t,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==Cs.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw hs(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function to(e){const t=e.value;return no(e.kind)+(null!=t?` "${t}"`:"")}function no(e){return function(e){return e===Cs.BANG||e===Cs.DOLLAR||e===Cs.AMP||e===Cs.PAREN_L||e===Cs.PAREN_R||e===Cs.SPREAD||e===Cs.COLON||e===Cs.EQUALS||e===Cs.AT||e===Cs.BRACKET_L||e===Cs.BRACKET_R||e===Cs.BRACE_L||e===Cs.PIPE||e===Cs.BRACE_R}(e)?`"${e}"`:e}const io=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ro(e){return so[e.charCodeAt(0)]}const so=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],oo=Object.freeze({});function ao(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function lo(e){return function(e,t,n=fs){const i=new Map;for(const e of Object.values(ws))i.set(e,ao(t,e));let r,s,o,a=Array.isArray(e),l=[e],c=-1,u=[],d=e;const h=[],p=[];do{c++;const e=c===l.length,y=e&&0!==u.length;if(e){if(s=0===p.length?void 0:h[h.length-1],d=o,o=p.pop(),y)if(a){d=d.slice();let e=0;for(const[t,n]of u){const i=t-e;null===n?(d.splice(i,1),e++):d[i]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of u)d[e]=t}c=r.index,l=r.keys,u=r.edits,a=r.inArray,r=r.prev}else if(o){if(s=a?c:l[c],d=o[s],null==d)continue;h.push(s)}let v;if(!Array.isArray(d)){var m,f;ys(d)||rs(!1,`Invalid AST Node: ${Js(d)}.`);const n=e?null===(m=i.get(d.kind))||void 0===m?void 0:m.leave:null===(f=i.get(d.kind))||void 0===f?void 0:f.enter;if(v=null==n?void 0:n.call(t,d,s,o,h,p),v===oo)break;if(!1===v){if(!e){h.pop();continue}}else if(void 0!==v&&(u.push([s,v]),!e)){if(!ys(v)){h.pop();continue}d=v}}var g;void 0===v&&y&&u.push([s,d]),e?h.pop():(r={inArray:a,index:c,keys:l,edits:u,prev:r},a=Array.isArray(d),l=a?d:null!==(g=n[d.kind])&&void 0!==g?g:[],c=-1,u=[],o&&p.push(o),o=d)}while(void 0!==r);return 0!==u.length?u[u.length-1][1]:e}(e,co)}const co={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>uo(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=po("(",uo(e.variableDefinitions,", "),")"),n=uo([e.operation,uo([e.name,t]),uo(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+po(" = ",n)+po(" ",uo(i," "))},SelectionSet:{leave:({selections:e})=>ho(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:r}){const s=po("",e,": ")+t;let o=s+po("(",uo(n,", "),")");return o.length>80&&(o=s+po("(\n",mo(uo(n,"\n")),"\n)")),uo([o,uo(i," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+po(" ",uo(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>uo(["...",po("on ",e),uo(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:r})=>`fragment ${e}${po("(",uo(n,", "),")")} on ${t} ${po("",uo(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),r=1===i.length,s=i.length>1&&i.slice(1).every((e=>0===e.length||Ts(e.charCodeAt(0)))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,l=e.endsWith("\\"),c=a||l,u=!r||e.length>70||c||s||o;let d="";const h=r&&Ts(e.charCodeAt(0));return(u&&!h||s)&&(d+="\n"),d+=n,(u||c)&&(d+="\n"),'"""'+d+'"""'}(e):`"${e.replace(io,ro)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+uo(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+uo(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+po("(",uo(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>po("",e,"\n")+uo(["schema",uo(t," "),ho(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>po("",e,"\n")+uo(["scalar",t,uo(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>po("",e,"\n")+uo(["type",t,po("implements ",uo(n," & ")),uo(i," "),ho(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:r})=>po("",e,"\n")+t+(fo(n)?po("(\n",mo(uo(n,"\n")),"\n)"):po("(",uo(n,", "),")"))+": "+i+po(" ",uo(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:r})=>po("",e,"\n")+uo([t+": "+n,po("= ",i),uo(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>po("",e,"\n")+uo(["interface",t,po("implements ",uo(n," & ")),uo(i," "),ho(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>po("",e,"\n")+uo(["union",t,uo(n," "),po("= ",uo(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>po("",e,"\n")+uo(["enum",t,uo(n," "),ho(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>po("",e,"\n")+uo([t,uo(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>po("",e,"\n")+uo(["input",t,uo(n," "),ho(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:r})=>po("",e,"\n")+"directive @"+t+(fo(n)?po("(\n",mo(uo(n,"\n")),"\n)"):po("(",uo(n,", "),")"))+(i?" repeatable":"")+" on "+uo(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>uo(["extend schema",uo(e," "),ho(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>uo(["extend scalar",e,uo(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>uo(["extend type",e,po("implements ",uo(t," & ")),uo(n," "),ho(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>uo(["extend interface",e,po("implements ",uo(t," & ")),uo(n," "),ho(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>uo(["extend union",e,uo(t," "),po("= ",uo(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>uo(["extend enum",e,uo(t," "),ho(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>uo(["extend input",e,uo(t," "),ho(n)]," ")}};function uo(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function ho(e){return po("{\n",mo(uo(e,"\n")),"\n}")}function po(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function mo(e){return po(" ",e.replace(/\n/g,"\n "))}function fo(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}const go="Accept",yo="Content-Type",vo="application/json",bo="application/graphql-response+json",wo=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),Co=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(To)};if(is(e))return{_tag:"Single",executionResult:To(e)};throw new Error(`Invalid execution result: result is not object or array. \nGot:\n${String(e)}`)}catch(e){return e}},To=e=>{if("object"!=typeof e||null===e)throw new Error("Invalid execution result: result is not object");let t,n,i;if("errors"in e){if(!is(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!is(e.data)&&null!==e.data)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!is(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");i=e.extensions}return{data:n,errors:t,extensions:i}},Eo=e=>Array.isArray(e.errors)?e.errors.length>0:Boolean(e.errors),So=e=>"object"==typeof e&&null!==e&&"kind"in e&&e.kind===ws.OPERATION_DEFINITION,Io=(e,t)=>{const n="string"==typeof e?e:lo(e);let i,r=!1;if(t)return{expression:n,isMutation:r,operationName:i};const s=(e=>{try{const t=e();return ts(t)?t.catch((e=>es(e))):t}catch(e){return es(e)}})((()=>{return"string"==typeof e?new eo(e,t).parseDocument():e;var t}));return s instanceof Error?{expression:n,isMutation:r,operationName:i}:(i=(e=>{let t;const n=e.definitions.filter(So);return 1===n.length&&(t=n[0].name?.value),t})(s),r=(e=>{let t=!1;const n=e.definitions.filter(So);return 1===n.length&&(t=n[0].operation===vs.MUTATION),t})(s),{expression:n,operationName:i,isMutation:r})},No=JSON,xo=async e=>{const t={...e,method:"Single"===e.request._tag?e.request.document.isMutation?"POST":Yr(e.method??"post"):e.request.hasMutations?"POST":Yr(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},n=ko(t.method),i=await n(t);if(!i.ok)return new Gr({status:i.status,headers:i.headers},{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables});const r=await Do(i,e.fetchOptions.jsonSerializer??No);if(r instanceof Error)throw r;const s={status:i.status,headers:i.headers};if((e=>"Batch"===e._tag?e.executionResults.some(Eo):Eo(e.executionResult))(r)&&"none"===t.fetchOptions.errorPolicy){const t="Batch"===r._tag?{...r.executionResults,...s}:{...r.executionResult,...s};return new Gr(t,{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(r._tag){case"Single":return{...s,...Oo(t)(r.executionResult)};case"Batch":return{...s,data:r.executionResults.map(Oo(t))};default:ns(r)}},Oo=e=>t=>({extensions:t.extensions,data:t.data,errors:"all"===e.fetchOptions.errorPolicy?t.errors:void 0}),Do=async(e,t)=>{const n=e.headers.get(yo),i=await e.text();return n&&(e=>{const t=e.toLowerCase();return t.includes(bo)||t.includes(vo)})(n)?Co(t.parse(i)):Co(i)},ko=e=>async t=>{const n=new Headers(t.headers);let i,r=null;if(n.has(go)||n.set(go,[bo,vo].join(", ")),"POST"===e){i=(t.fetchOptions.jsonSerializer??No).stringify(Ao(t)),"string"!=typeof i||n.has(yo)||n.set(yo,vo)}else r=Lo(t);const s={method:e,headers:n,body:i,...t.fetchOptions};let o=new URL(t.url),a=s;if(t.middleware){const e=await Promise.resolve(t.middleware({...s,url:t.url,operationName:"Single"===t.request._tag?t.request.document.operationName:void 0,variables:t.request.variables})),{url:n,...i}=e;o=new URL(n),a=i}r&&r.forEach(((e,t)=>{o.searchParams.append(t,e)}));const l=t.fetch??fetch;return await l(o,a)},Ao=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return Kr(e.request.query,e.request.variables??[]).map((([e,t])=>({query:e,variables:t})));default:throw ns(e.request)}},Lo=e=>{const t=e.fetchOptions.jsonSerializer??No,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",wo(e.request.document.expression)),e.request.variables&&n.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&n.append("operationName",e.request.document.operationName),n;case"Batch":{const i=e.request.variables?.map((e=>t.stringify(e)))??[],r=e.request.query.map(wo),s=Kr(r,i).map((([e,t])=>({query:e,variables:t})));return n.append("query",t.stringify(s)),n}default:throw ns(e.request)}};class _o{url;requestConfig;constructor(e,t={}){this.url=e,this.requestConfig=t}rawRequest=async(...e)=>{const[t,n,i]=e,r=((e,t,n)=>e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0})(t,n,i),{headers:s,fetch:o=globalThis.fetch,method:a="POST",requestMiddleware:l,responseMiddleware:c,excludeOperationName:u,...d}=this.requestConfig,{url:h}=this;void 0!==r.signal&&(d.signal=r.signal);const p=Io(r.query,u),m=await xo({url:h,request:{_tag:"Single",document:p,variables:r.variables},headers:{...Qr(Jr(s)),...Qr(r.requestHeaders)},fetch:o,method:a,fetchOptions:d,middleware:l});if(c&&await c(m,{operationName:p.operationName,variables:n,url:this.url}),m instanceof Error)throw m;return m};async request(e,...t){const[n,i]=t,r=Mo(e,n,i),{headers:s,fetch:o=globalThis.fetch,method:a="POST",requestMiddleware:l,responseMiddleware:c,excludeOperationName:u,...d}=this.requestConfig,{url:h}=this;void 0!==r.signal&&(d.signal=r.signal);const p=Io(r.document,u),m=await xo({url:h,request:{_tag:"Single",document:p,variables:r.variables},headers:{...Qr(Jr(s)),...Qr(r.requestHeaders)},fetch:o,method:a,fetchOptions:d,middleware:l});if(c&&await c(m,{operationName:p.operationName,variables:r.variables,url:this.url}),m instanceof Error)throw m;return m.data}async batchRequests(e,t){const n=((e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0})(e,t),{headers:i,excludeOperationName:r,...s}=this.requestConfig;void 0!==n.signal&&(s.signal=n.signal);const o=n.documents.map((({document:e})=>Io(e,r))),a=o.map((({expression:e})=>e)),l=o.some((({isMutation:e})=>e)),c=n.documents.map((({variables:e})=>e)),u=await xo({url:this.url,request:{_tag:"Batch",operationName:void 0,query:a,hasMutations:l,variables:c},headers:{...Qr(Jr(i)),...Qr(n.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:s,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(u,{operationName:void 0,variables:c,url:this.url}),u instanceof Error)throw u;return u.data}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){const{headers:n}=this.requestConfig;return n?n[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}const Mo=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0};var Fo,Ro;!function(e){e.TokenRequired="TokenRequired",e.AlwaysAnonymous="AlwaysAnonymous",e.AnonymousIfNoTokenAvailable="AnonymousIfNoTokenAvailable"}(Fo||(Fo={}));class Vo{queryProvider;endpointProvider;jwtTokenProvider;errorHandler;clientCache=new Map;noAuthClient;cachedEndpoint;constructor(e,t,n,i=new Wr){this.queryProvider=e,this.endpointProvider=t,this.jwtTokenProvider=n,this.errorHandler=i,ge.notNullOrUndefined(e,"queryProvider"),ge.notNullOrUndefined(t,"endpointProvider"),ge.notNullOrUndefined(i,"errorHandler"),this.cachedEndpoint=this.endpointProvider.fetchGraphqlEndpoint()}currentAuthToken(){return this?.jwtTokenProvider?.fetchJwtToken()}async fetchQueryText(e){const t=await this.queryProvider.fetchQueryText(e);return t||Te.warn("Could not find requested query : %s",e),t}createAnonymousApi(){Te.info("Creating anonymous GraphQLClient");return new _o(this.cachedEndpoint,{errorPolicy:"all"})}fetchApi(e){let t=null;const n=e===Fo.AlwaysAnonymous?null:ye.trimToNull(this?.jwtTokenProvider?.fetchJwtToken());if(e===Fo.TokenRequired&&!n)throw Zr.fErr("No token provided, auth style is TokenRequired");if(this.checkIfEndpointChanged(),Te.info("Fetch auth client %s",ye.obscure(ye.trimToEmpty(n),2,2)),n){if(Te.debug("Fetching authd api"),this.clientCache.has(n))Te.debug("Fetching apollo client from cache");else{const e=this.createAuthApi(n);Te.debug("Setting cache for this token to %s",e),this.clientCache.set(n,e)}t=this.clientCache.get(n)}else Te.debug("Fetching unauthd ap"),this.noAuthClient?Te.debug("Fetching anonymous client from cache"):this.noAuthClient=this.createAnonymousApi(),t=this.noAuthClient;return Te.debug("FetchApi returning %s",t),t}createAuthApi(e){Te.info("Creating a new authenticated api for %s : %s",this.cachedEndpoint,ye.obscure(e,2,2)),ge.notNullUndefinedOrOnlyWhitespaceString(e,"jwtToken"),Te.info("Creating auth apollo client %s",ye.obscure(e,2,2));return new _o(this.cachedEndpoint,{errorPolicy:"all",headers:{authorization:`Bearer ${e}`}})}checkIfEndpointChanged(){const e=this.endpointProvider.fetchGraphqlEndpoint();e!==this.cachedEndpoint&&(Te.info("Endpoint changed from %s to %s - clearing apollo caches"),this.clientCache=new Map,this.noAuthClient=null,this.cachedEndpoint=e)}clearCaches(){Te.info("Clearing cached apollo"),this.clientCache=new Map,this.noAuthClient=null,this.cachedEndpoint=null}static extractSingleValueFromResponse(e){if(!e)throw Zr.fErr("Could not find response in : %j",e);const t=Object.keys(e);1!==t.length&&Zr.throwFormattedErr("Unexpected number of keys : %s : %j",t.length,t);return e[t[0]]}async executeQuery(e,t,n=Fo.TokenRequired){let i=null;try{const r=this.fetchApi(n);if(r){Te.debug("API fetched for %s, fetching gql",e);const n=await this.fetchQueryText(e);Te.debug("API and GQL fetched for %s - running %s %s",e,n,r);const s=await r.request(n,t);i=Vo.extractSingleValueFromResponse(s),Te.silly("Query returned: %j",i)}else Zr.throwFormattedErr("Cannot run - no api fetched")}catch(i){Te.silly("Exception caught in executeQuery : %s %s %j %s",i,e,t,n,i),this.errorHandler.handleError(i,e,t,n)}return i}async executeMutate(e,t,n=Fo.TokenRequired){Te.info("Mutate : %s : %j",e,t);let i=null;const r=this.fetchApi(n);try{if(r){const n=await this.fetchQueryText(e);Te.debug("API and GQL fetched for %s - running %s %s",e,n,r);const s=await r.request(n,t);i=Vo.extractSingleValueFromResponse(s),Te.silly("Mutate returned: %j",i)}else Zr.throwFormattedErr("Cannot run - no api fetched")}catch(i){this.errorHandler.handleError(i,e,t,n)}return i}}function Po(){return"undefined"!=typeof window&&void 0!==window.localStorage?window.localStorage:null}exports.GraphqlQueryService=class{graphqlRatchet;dialogService;messageService;constructor(e,t,n){this.graphqlRatchet=e,this.dialogService=t,this.messageService=n}async executeQuery(e,t,n=Fo.TokenRequired){let i=null;this.messageService.add({severity:"info",summary:"Running query",detail:e,life:3e3}),Te.info("eq: %j -: %s --: %s ---: %j",e,t);try{i=await this.graphqlRatchet.executeQuery(e,t,n)}catch(e){Te.error("Fail : %s",e)}finally{this.messageService.clear()}return i}async executeQueryWithBlock(e,t,n,i=Fo.TokenRequired){let r=null;this.messageService.add({severity:"info",summary:"Running query",detail:t,life:3e3}),Te.info("eqb: %j -: %s --: %s ---: %j",e,t,n);try{r=await exports.BlockUiComponent.runPromiseWithUiBlock(this.dialogService,this.graphqlRatchet.executeQuery(t,n,i),e)}catch(e){Te.error("Fail : %s",e)}finally{this.messageService.clear()}return r}async executeMutate(e,t,n=Fo.TokenRequired){let i=null;this.messageService.add({severity:"info",summary:"Running query",detail:e,life:3e3}),Te.info("eq: %j -: %s --: %s ---: %j",e,t);try{i=await this.graphqlRatchet.executeMutate(e,t,n)}catch(e){Te.error("Fail : %s",e)}finally{this.messageService.clear()}return i}async executeMutateWithBlock(e,t,n,i=Fo.TokenRequired){let r=null;this.messageService.add({severity:"info",summary:"Running query",detail:t,life:3e3});try{r=await exports.BlockUiComponent.runPromiseWithUiBlock(this.dialogService,this.graphqlRatchet.executeMutate(t,n,i),e)}catch(e){Te.error("Fail : %s",e)}finally{this.messageService.clear()}return r}},exports.GraphqlQueryService=l([e.Injectable({providedIn:"root"}),c("design:paramtypes",[Vo,te,L])],exports.GraphqlQueryService),exports.LocalStorageService=class{static{Ro=this}static APP_NAME="Scribe";get storageReady(){return!!Po()}clear(){this.update({})}update(e){if(this.storageReady){const t=e||{},n=JSON.stringify(t);return Te.info("Updating storage to %s",n),localStorage.setItem(Ro.APP_NAME,n),t}return Te.info("Skipping update - storage not ready : %j",e),{}}fetch(){if(this.storageReady){const e=localStorage.getItem(Ro.APP_NAME)||"{}";return JSON.parse(e)}return Te.info("Skipping fetch - storage not ready"),{}}},exports.LocalStorageService=Ro=l([e.Injectable({providedIn:"root"})],exports.LocalStorageService),exports.WindowRefService=class{nativeWindow(){return function(){if("undefined"!=typeof window)return window;throw new Error("Cannot find window object - running in SSR?")}()}},exports.WindowRefService=l([e.Injectable({providedIn:"root"})],exports.WindowRefService),exports.NgxAcuteCommonInfo=class{constructor(){}static buildInformation(){return{version:"LOCAL-SNAPSHOT",hash:"LOCAL-HASH",branch:"LOCAL-BRANCH",tag:"LOCAL-TAG",timeBuiltISO:"LOCAL-TIME-ISO",notes:"LOCAL-NOTES"}}},exports.storageFinder=Po;
|
|
7
|
-
//# sourceMappingURL=my-angular-library.cjs.js.map
|