@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.
Files changed (28) hide show
  1. package/lib/esm2022/ngx-acute-common.mjs +514 -0
  2. package/lib/esm2022/ngx-acute-common.mjs.map +1 -0
  3. package/package.json +5 -10
  4. package/lib/my-angular-library.cjs.js +0 -7
  5. package/lib/my-angular-library.cjs.js.map +0 -1
  6. package/lib/my-angular-library.esm.js +0 -7
  7. package/lib/my-angular-library.esm.js.map +0 -1
  8. package/lib/my-angular-library.umd.js +0 -7
  9. package/lib/my-angular-library.umd.js.map +0 -1
  10. /package/lib/{build → esm2022/build}/ngx-acute-common-info.d.ts +0 -0
  11. /package/lib/{components → esm2022/components}/dialogs/alert/alert.component.d.ts +0 -0
  12. /package/lib/{components → esm2022/components}/dialogs/block-ui/block-ui.component.d.ts +0 -0
  13. /package/lib/{index.d.ts → esm2022/index.d.ts} +0 -0
  14. /package/lib/{model → esm2022/model}/google-analytics-config.d.ts +0 -0
  15. /package/lib/{pipes → esm2022/pipes}/capitalize.pipe.d.ts +0 -0
  16. /package/lib/{pipes → esm2022/pipes}/dollar-formatted.pipe.d.ts +0 -0
  17. /package/lib/{pipes → esm2022/pipes}/map-values.pipe.d.ts +0 -0
  18. /package/lib/{pipes → esm2022/pipes}/number-with-commas.pipe.d.ts +0 -0
  19. /package/lib/{pipes → esm2022/pipes}/order-by.pipe.d.ts +0 -0
  20. /package/lib/{pipes → esm2022/pipes}/percent-formatted.pipe.d.ts +0 -0
  21. /package/lib/{pipes → esm2022/pipes}/plural.pipe.d.ts +0 -0
  22. /package/lib/{pipes → esm2022/pipes}/round.pipe.d.ts +0 -0
  23. /package/lib/{pipes → esm2022/pipes}/time-ago-formatted.pipe.d.ts +0 -0
  24. /package/lib/{pipes → esm2022/pipes}/timing.pipe.d.ts +0 -0
  25. /package/lib/{services → esm2022/services}/google-analytics.service.d.ts +0 -0
  26. /package/lib/{services → esm2022/services}/graphql-query.service.d.ts +0 -0
  27. /package/lib/{services → esm2022/services}/local-storage.service.d.ts +0 -0
  28. /package/lib/{services → esm2022/services}/window-ref.service.d.ts +0 -0
@@ -1,7 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("@angular/router")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/common","rxjs","@angular/router"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).AcuteCommon={},e.ng.core,e.ng.common,e.rxjs,e.router)}(this,(function(e,t,n,i,r){"use strict";function s(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 o,a=s(t),l=s(n);function c(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 u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}"function"==typeof SuppressedError&&SuppressedError;class d{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=`${d.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=d.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 h(e,t){return{type:o.Trigger,name:e,definitions:t,options:{}}}function p(e,t=null){return{type:o.Animate,styles:t,timings:e}}function m(e){return{type:o.Style,styles:e,offset:null}}function f(e,t,n=null){return{type:o.Transition,expr:e,animation:t,options:n}}function g(e,t=null){return{type:o.Reference,animation:e,options:t}}function y(e,t=null){return{type:o.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"}(o||(o={}));class v{static{this.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.2.8",ngImport:a,type:v,deps:[],target:a.ɵɵFactoryTarget.Injectable})}static{this.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.2.8",ngImport:a,type:v,providedIn:"root",useFactory:()=>t.inject(w)})}}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.2.8",ngImport:a,type:v,decorators:[{type:t.Injectable,args:[{providedIn:"root",useFactory:()=>t.inject(w)}]}]});class b{}class w extends v{constructor(e,n){super(),this.animationModuleType=t.inject(t.ANIMATION_MODULE_TYPE,{optional:!0}),this._nextAnimationId=0;const i={id:"0",encapsulation:t.ViewEncapsulation.None,styles:[],data:{animation:[]}};if(this._renderer=e.createRenderer(n.body,i),null===this.animationModuleType&&!function(e){const t=e.ɵtype;return 0===t||1===t}(this._renderer))throw new t.ɵ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:o.Sequence,steps:e,options:t}}(e):e;return E(this._renderer,null,t,"register",[n]),new C(t,this._renderer)}static{this.ɵfac=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.2.8",ngImport:a,type:w,deps:[{token:a.RendererFactory2},{token:n.DOCUMENT}],target:a.ɵɵFactoryTarget.Injectable})}static{this.ɵprov=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.2.8",ngImport:a,type:w,providedIn:"root"})}}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.2.8",ngImport:a,type:w,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:a.RendererFactory2},{type:Document,decorators:[{type:t.Inject,args:[n.DOCUMENT]}]}]});class C extends b{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new T(this._id,e,t||{},this._renderer)}}class T{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){E(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 E(e,t,n,i,r){e.setProperty(t,`@@${n}:${i}`,r)}class S{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=S.compare(e,t,i,n);let o=n;return(S.isEmpty(e)||S.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 I=0;function N(e="pn_id_"){return`${e}${++I}`}var O,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"}(O||(O={}));class D{requireConfirmationSource=new i.Subject;acceptConfirmationSource=new i.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"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:D,deps:[],target:a.ɵɵFactoryTarget.Injectable});static"ɵprov"=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:D})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:D,decorators:[{type:t.Injectable}]});class k{activeItemKeyChange=new i.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"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:k,deps:[],target:a.ɵɵFactoryTarget.Injectable});static"ɵprov"=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:k})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:k,decorators:[{type:t.Injectable}]});class A{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 L{filter(e,t,n,i,r){let s=[];if(e)for(let o of e)for(let e of t){let t=S.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=S.removeAccents(t.toString()).toLocaleLowerCase(n);return S.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=S.removeAccents(t.toString()).toLocaleLowerCase(n);return-1!==S.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=S.removeAccents(t.toString()).toLocaleLowerCase(n);return-1===S.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=S.removeAccents(t.toString()).toLocaleLowerCase(n),r=S.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||S.removeAccents(e.toString()).toLocaleLowerCase(n)==S.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&&S.removeAccents(e.toString()).toLocaleLowerCase(n)!=S.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(S.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"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:L,deps:[],target:a.ɵɵFactoryTarget.Injectable});static"ɵprov"=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:L,providedIn:"root"})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:L,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}]});class _{messageSource=new i.Subject;clearSource=new i.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"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:_,deps:[],target:a.ɵɵFactoryTarget.Injectable});static"ɵprov"=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:_})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:_,decorators:[{type:t.Injectable}]});class M{clickSource=new i.Subject;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:M,deps:[],target:a.ɵɵFactoryTarget.Injectable});static"ɵprov"=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:M,providedIn:"root"})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:M,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}]});class F{ripple=!1;inputStyle=t.signal("outlined");overlayOptions={};csp=t.signal({nonce:void 0});filterMatchModeOptions={text:[A.STARTS_WITH,A.CONTAINS,A.NOT_CONTAINS,A.ENDS_WITH,A.EQUALS,A.NOT_EQUALS],numeric:[A.EQUALS,A.NOT_EQUALS,A.LESS_THAN,A.LESS_THAN_OR_EQUAL_TO,A.GREATER_THAN,A.GREATER_THAN_OR_EQUAL_TO],date:[A.DATE_IS,A.DATE_IS_NOT,A.DATE_BEFORE,A.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 i.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"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:F,deps:[],target:a.ɵɵFactoryTarget.Injectable});static"ɵprov"=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:F,providedIn:"root"})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:F,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}]});class R{static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:R,deps:[],target:a.ɵɵFactoryTarget.Component});static"ɵcmp"=a.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:R,isStandalone:!0,selector:"p-header",ngImport:a,template:"<ng-content></ng-content>",isInline:!0})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:R,decorators:[{type:t.Component,args:[{selector:"p-header",standalone:!0,template:"<ng-content></ng-content>"}]}]});class V{static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:V,deps:[],target:a.ɵɵFactoryTarget.Component});static"ɵcmp"=a.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:V,isStandalone:!0,selector:"p-footer",ngImport:a,template:"<ng-content></ng-content>",isInline:!0})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:V,decorators:[{type:t.Component,args:[{selector:"p-footer",standalone:!0,template:"<ng-content></ng-content>"}]}]});class P{template;type;name;constructor(e){this.template=e}getType(){return this.name}static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:P,deps:[{token:a.TemplateRef}],target:a.ɵɵFactoryTarget.Directive});static"ɵdir"=a.ɵɵngDeclareDirective({minVersion:"14.0.0",version:"18.0.1",type:P,isStandalone:!0,selector:"[pTemplate]",inputs:{type:"type",name:["pTemplate","name"]},ngImport:a})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:P,decorators:[{type:t.Directive,args:[{selector:"[pTemplate]",standalone:!0,host:{}}]}],ctorParameters:()=>[{type:a.TemplateRef}],propDecorators:{type:[{type:t.Input}],name:[{type:t.Input,args:["pTemplate"]}]}});class j{static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:j,deps:[],target:a.ɵɵFactoryTarget.NgModule});static"ɵmod"=a.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:a,type:j,imports:[R,V,P],exports:[R,V,P]});static"ɵinj"=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:j})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:j,decorators:[{type:t.NgModule,args:[{imports:[R,V,P],exports:[R,V,P]}]}]});class z{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 B{dragStartSource=new i.Subject;dragStopSource=new i.Subject;dragStart$=this.dragStartSource.asObservable();dragStop$=this.dragStopSource.asObservable();startDrag(e){this.dragStartSource.next(e)}stopDrag(e){this.dragStopSource.next(e)}static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:B,deps:[],target:a.ɵɵFactoryTarget.Injectable});static"ɵprov"=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:B})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:B,decorators:[{type:t.Injectable}]});class q{pFocusTrapDisabled=!1;platformId=t.inject(t.PLATFORM_ID);host=t.inject(t.ElementRef);document=t.inject(n.DOCUMENT);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){n.isPlatformBrowser(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){e.pFocusTrapDisabled&&n.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=>d.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:d.getFirstFocusableElement(t.parentElement,":not(.p-hidden-focusable)");d.focus(i)}onLastHiddenElementFocus(e){const{currentTarget:t,relatedTarget:n}=e,i=n!==this.firstHiddenFocusableElement&&this.host.nativeElement?.contains(n)?this.firstHiddenFocusableElement:d.getLastFocusableElement(t.parentElement,":not(.p-hidden-focusable)");d.focus(i)}static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:q,deps:[],target:a.ɵɵFactoryTarget.Directive});static"ɵdir"=a.ɵɵngDeclareDirective({minVersion:"16.1.0",version:"18.0.1",type:q,selector:"[pFocusTrap]",inputs:{pFocusTrapDisabled:["pFocusTrapDisabled","pFocusTrapDisabled",t.booleanAttribute]},host:{classAttribute:"p-element"},usesOnChanges:!0,ngImport:a})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:q,decorators:[{type:t.Directive,args:[{selector:"[pFocusTrap]",host:{class:"p-element"}}]}],propDecorators:{pFocusTrapDisabled:[{type:t.Input,args:[{transform:t.booleanAttribute}]}]}});class U{static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:U,deps:[],target:a.ɵɵFactoryTarget.NgModule});static"ɵmod"=a.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:a,type:U,declarations:[q],imports:[n.CommonModule],exports:[q]});static"ɵinj"=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:U,imports:[n.CommonModule]})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:U,decorators:[{type:t.NgModule,args:[{imports:[n.CommonModule],exports:[q],declarations:[q]}]}]});class ${label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=S.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"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:$,deps:[],target:a.ɵɵFactoryTarget.Component});static"ɵcmp"=a.ɵɵngDeclareComponent({minVersion:"16.1.0",version:"18.0.1",type:$,isStandalone:!0,selector:"ng-component",inputs:{label:"label",spin:["spin","spin",t.booleanAttribute],styleClass:"styleClass"},host:{classAttribute:"p-element p-icon-wrapper"},ngImport:a,template:" <ng-content></ng-content> ",isInline:!0,changeDetection:a.ChangeDetectionStrategy.OnPush,encapsulation:a.ViewEncapsulation.None})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:$,decorators:[{type:t.Component,args:[{template:" <ng-content></ng-content> ",standalone:!0,changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,host:{class:"p-element p-icon-wrapper"}}]}],propDecorators:{label:[{type:t.Input}],spin:[{type:t.Input,args:[{transform:t.booleanAttribute}]}],styleClass:[{type:t.Input}]}});class H extends ${static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:H,deps:null,target:a.ɵɵFactoryTarget.Component});static"ɵcmp"=a.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:H,isStandalone:!0,selector:"TimesIcon",usesInheritance:!0,ngImport:a,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})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:H,decorators:[{type:t.Component,args:[{selector:"TimesIcon",standalone:!0,imports:[$],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 W extends ${pathId;ngOnInit(){this.pathId="url(#"+N()+")"}static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:W,deps:null,target:a.ɵɵFactoryTarget.Component});static"ɵcmp"=a.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:W,isStandalone:!0,selector:"WindowMaximizeIcon",usesInheritance:!0,ngImport:a,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})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:W,decorators:[{type:t.Component,args:[{selector:"WindowMaximizeIcon",standalone:!0,imports:[$],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 Z extends ${pathId;ngOnInit(){this.pathId="url(#"+N()+")"}static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:Z,deps:null,target:a.ɵɵFactoryTarget.Component});static"ɵcmp"=a.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:Z,isStandalone:!0,selector:"WindowMinimizeIcon",usesInheritance:!0,ngImport:a,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})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:Z,decorators:[{type:t.Component,args:[{selector:"WindowMinimizeIcon",standalone:!0,imports:[$],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 G{viewContainerRef;constructor(e){this.viewContainerRef=e}static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:G,deps:[{token:a.ViewContainerRef}],target:a.ɵɵFactoryTarget.Directive});static"ɵdir"=a.ɵɵngDeclareDirective({minVersion:"14.0.0",version:"18.0.1",type:G,selector:"[pDynamicDialogContent]",host:{classAttribute:"p-element"},ngImport:a})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:G,decorators:[{type:t.Directive,args:[{selector:"[pDynamicDialogContent]",host:{class:"p-element"}}]}],ctorParameters:()=>[{type:a.ViewContainerRef}]});class Y{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 J{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 i.Subject;onClose=this._onClose.asObservable();_onDestroy=new i.Subject;onDestroy=this._onDestroy.asObservable();_onDragStart=new i.Subject;onDragStart=this._onDragStart.asObservable();_onDragEnd=new i.Subject;onDragEnd=this._onDragEnd.asObservable();_onResizeInit=new i.Subject;onResizeInit=this._onResizeInit.asObservable();_onResizeEnd=new i.Subject;onResizeEnd=this._onResizeEnd.asObservable();_onMaximize=new i.Subject;onMaximize=this._onMaximize.asObservable();onChildComponentLoaded=new i.Subject}const K=g([m({transform:"{{transform}}",opacity:0}),p("{{transition}}",m({transform:"none",opacity:1}))]),Q=g([p("{{transition}}",m({transform:"{{transform}}",opacity:0}))]);class X{document;platformId;cd;renderer;config;dialogRef;zone;primeNGConfig;parentDialog;visible=!0;componentRef;mask;resizing;dragging;maximized;_style={};originalStyle;lastPageX;lastPageY;ariaLabelledBy;id=N();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(z.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(n.isPlatformBrowser(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",d.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?N()+"_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&&d.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&&d.addClass(this.document.body,"p-overflow-hidden")}disableModality(){this.wrapper&&(this.config.dismissableMask&&this.unbindMaskClickListener(),1===this.dynamicDialogCount&&d.removeClass(this.document.body,"p-overflow-hidden"),this.cd.destroyed||this.cd.detectChanges())}focus(e=this.contentViewChild.nativeElement){if(!d.getFocusableElements(e).length)return;let t=d.getFocusableElement(e,"[autofocus]");if(t)return void this.zone.runOutsideAngular((()=>{setTimeout((()=>t.focus()),5)}));const n=d.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?d.addClass(this.document.body,"p-overflow-hidden"):d.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,d.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=d.getOuterWidth(this.container),r=d.getOuterHeight(this.container),s=d.getOuterHeight(this.contentViewChild.nativeElement),o=i+t,a=r+n,l=this.container.style.minWidth,c=this.container.style.minHeight,u=this.container.getBoundingClientRect(),h=d.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(o+=t,a+=n),(!l||o>parseInt(l))&&u.left+o<h.width&&(this._style.width=o+"px",this.container.style.width=this._style.width),(!c||a>parseInt(c))&&u.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,d.removeClass(this.document.body,"p-unselectable-text"),this.dialogRef.resizeEnd(e))}initDrag(e){d.hasClass(e.target,"p-dialog-header-icon")||d.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",d.addClass(this.document.body,"p-unselectable-text"),this.dialogRef.dragStart(e))}onDrag(e){if(this.dragging){let t=d.getOuterWidth(this.container),n=d.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=d.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,d.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(){n.isPlatformBrowser(this.platformId)&&this.zone.runOutsideAngular((()=>{this.documentDragListener=this.renderer.listen(this.document,"mousemove",this.onDrag.bind(this))}))}bindDocumentDragEndListener(){n.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(){n.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"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:X,deps:[{token:n.DOCUMENT},{token:t.PLATFORM_ID},{token:a.ChangeDetectorRef},{token:a.Renderer2},{token:Y},{token:J},{token:a.NgZone},{token:F},{token:X,optional:!0,skipSelf:!0}],target:a.ɵɵFactoryTarget.Component});static"ɵcmp"=a.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:X,selector:"p-dynamicDialog",host:{classAttribute:"p-element"},viewQueries:[{propertyName:"insertionPoint",first:!0,predicate:G,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:a,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:a.forwardRef((()=>l.NgClass)),selector:"[ngClass]",inputs:["class","ngClass"]},{kind:"directive",type:a.forwardRef((()=>l.NgComponentOutlet)),selector:"[ngComponentOutlet]",inputs:["ngComponentOutlet","ngComponentOutletInputs","ngComponentOutletInjector","ngComponentOutletContent","ngComponentOutletNgModule","ngComponentOutletNgModuleFactory"]},{kind:"directive",type:a.forwardRef((()=>l.NgIf)),selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{kind:"directive",type:a.forwardRef((()=>l.NgStyle)),selector:"[ngStyle]",inputs:["ngStyle"]},{kind:"component",type:a.forwardRef((()=>W)),selector:"WindowMaximizeIcon"},{kind:"component",type:a.forwardRef((()=>Z)),selector:"WindowMinimizeIcon"},{kind:"component",type:a.forwardRef((()=>H)),selector:"TimesIcon"},{kind:"directive",type:a.forwardRef((()=>q)),selector:"[pFocusTrap]",inputs:["pFocusTrapDisabled"]},{kind:"directive",type:a.forwardRef((()=>G)),selector:"[pDynamicDialogContent]"}],animations:[h("animation",[f("void => visible",[y(K)]),f("visible => void",[y(Q)])])],changeDetection:a.ChangeDetectionStrategy.Default,encapsulation:a.ViewEncapsulation.None})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:X,decorators:[{type:t.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:[h("animation",[f("void => visible",[y(K)]),f("visible => void",[y(Q)])])],changeDetection:t.ChangeDetectionStrategy.Default,encapsulation:t.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:t.Inject,args:[n.DOCUMENT]}]},{type:void 0,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]},{type:a.ChangeDetectorRef},{type:a.Renderer2},{type:Y},{type:J},{type:a.NgZone},{type:F},{type:X,decorators:[{type:t.SkipSelf},{type:t.Optional}]}],propDecorators:{insertionPoint:[{type:t.ViewChild,args:[G]}],maskViewChild:[{type:t.ViewChild,args:["mask"]}],contentViewChild:[{type:t.ViewChild,args:["content"]}],footerViewChild:[{type:t.ViewChild,args:["footer"]}],headerViewChild:[{type:t.ViewChild,args:["titlebar"]}]}});class ee{static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:ee,deps:[],target:a.ɵɵFactoryTarget.NgModule});static"ɵmod"=a.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:a,type:ee,declarations:[X,G],imports:[n.CommonModule,W,Z,H,j,U],exports:[j]});static"ɵinj"=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:ee,imports:[n.CommonModule,W,Z,H,j,U,j]})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:ee,decorators:[{type:t.NgModule,args:[{imports:[n.CommonModule,W,Z,H,j,U],declarations:[X,G],exports:[j]}]}]});class te{_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 ne{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(e,n){const i=new WeakMap;i.set(Y,e);const r=new J;i.set(J,r);const s=r.onClose.subscribe((()=>{this.dialogComponentRefMap.get(r).instance.close()})),o=r.onDestroy.subscribe((()=>{this.removeDialogComponentFromBody(r),o.unsubscribe(),s.unsubscribe()})),a=t.createComponent(X,{environmentInjector:this.appRef.injector,elementInjector:new te(this.injector,i)});this.appRef.attachView(a.hostView);const l=a.hostView.rootNodes[0];return e.appendTo&&"body"!==e.appendTo?d.appendChild(l,e.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"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:ne,deps:[{token:a.ApplicationRef},{token:a.Injector},{token:n.DOCUMENT}],target:a.ɵɵFactoryTarget.Injectable});static"ɵprov"=a.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:ne})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:ne,decorators:[{type:t.Injectable}],ctorParameters:()=>[{type:a.ApplicationRef},{type:a.Injector},{type:Document,decorators:[{type:t.Inject,args:[n.DOCUMENT]}]}]});const ie="error",re="warn",se="info",oe="verbose",ae="debug",le="silly";class ce{_lastLogMessage={messageSource:"No message yet",timestamp:(new Date).getTime(),lvl:se};_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 ue="Console",de="ConsoleNoDebug",he="StdOut";class pe{static LOG_LEVELS_IN_ORDER=[ie,re,se,oe,ae,le];static handlerFunctionMap(e=ue){const t=new Map;if(e===he){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(ie,e),t.set(re,e),t.set(se,e),t.set(oe,e),t.set(ae,e),t.set(le,e)}else t.set(ie,console.error),t.set(re,console.warn),t.set(se,console.info),t.set(oe,e===de?console.log:console.debug),t.set(ae,e===de?console.log:console.debug),t.set(le,e===de?console.log:console.debug);return t}static defaultHandlerFunction(){return console.info}static levelIsEnabled(e,t){const n=pe.LOG_LEVELS_IN_ORDER.indexOf(e),i=pe.LOG_LEVELS_IN_ORDER.indexOf(t);return n>-1&&i>-1&&i>=n}}const me="ClassicSingleLine",fe="StructuredJson",ge="None";class ye{static isNullOrUndefined(e){return Object.is(e,null)||Object.is(e,void 0)}static notNullOrUndefined(e,t="object"){if(ye.isNullOrUndefined(e))throw new Error(t+" may not be null or undefined")}static notNullUndefinedOrOnlyWhitespaceString(e,t="string"){if(ye.isNullOrUndefined(e)||""===e.trim())throw new Error(t+" may not be null or undefined or only whitespace string")}static notNullUndefinedOrEmptyArray(e,t="string"){if(ye.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"){ye.equal(e,!0,t)}static noNullOrUndefinedValuesInArray(e,t=null,n=null){if(ye.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(ye.isNullOrUndefined(e[t]))throw new Error(`Array index ${t} was null or undefined ${n}`)}static noNullOrUndefinedValuesInRestArgs(e,...t){if(ye.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(ye.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 ye.noNullOrUndefinedValuesInArray(e,t)}}class ve{static RFC_3986_RESERVED=["!","*","'","(",")",";",":","@","&","=","+","$",",","/","?","#","[","]","%"];static WHITESPACE=" \n\t";static DIGITS="0123456789";static HEXITS=ve.DIGITS+"ABCDEF";static UPPER_CASE_LATIN="ABCDEFGHIJKLMNOPQRSTUVWXYZ";static LOWER_CASE_LATIN="abcdefghijklmnopqrstuvwxyz";static CASE_INSENSITIVE_LATIN=ve.UPPER_CASE_LATIN+ve.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(ve.trimToNull(e))try{t=JSON.parse(e)}catch{t=null}return t}static canParseAsJson(e){return!!ve.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){ye.true(ve.allUnique(t),"Alphabet must be unique");const i=1===e?[""]:ve.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?ve.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(" ","-"),ve.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 ve.stringContainsOnly(e,ve.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?ve.safeString(e):"").trim()}static trimToNull(e){const t=ve.trimToEmpty(e);return t.length>0?t:null}static trimAllStringPropertiesToNullInPlace(e){return ve.trimAllStringPropertiesInPlace(e,!1)}static trimAllStringPropertiesToEmptyInPlace(e){return ve.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?ve.trimToEmpty(e[n]):ve.trimToNull(e[n]))})),e}static stripNonNumeric(e){let t=e;if(null!=e&&!ve.stringContainsOnlyNumbers(e)){t="";for(let n=0;n<e.length;n++){const i=e.charAt(n);(ve.stringContainsOnlyNumbers(i)||0===n&&"-"===i)&&(t+=i)}}return t}static csvSafe(e){let t=ve.trimToEmpty(ve.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=>ve.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=ve.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=ve.circSafeJsonStringify(s)}return n?(t.unshift(s),e):s}))),t.length&&(e+=" "+t.join(" ")),""+(e=e.replace(/%{2,2}/g,"%"))}}class be{formatMessage(e,t){let n=null;return e&&(n="",n+=t.options.trace?t.options.trace+" ":"",n+="["+e.lvl+"] ",n+=ve.format(e.messageSource,...e.subsVars)),n}}class we{formatMessage(e,t){return null}}class Ce{formatMessage(e,t){let n=null;if(e){const i=Object.assign({},t.options.globalVars||{},e.params||{});i.msg=ve.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 Te{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 pe.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=>ve.trimToNull(e.label())||"Unlabelled"));this.info("Preprocessors: %j",e)}}get guid(){return this._guid}changeRingBufferSize(e){this._ringBuffer=null,e&&(this._ringBuffer=new ce(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 ce(this._options.ringBufferSize)),this._options.formatType){case ge:this._formatter=new we;break;case fe:this._formatter=new Ce;break;default:this._formatter=new be}this._level=this._options.initialLevel,this._handlerFunctionMap=pe.handlerFunctionMap(this._options.outputFunction);const t=this._loggerMeta?this._loggerMeta.loggerInstanceId:null;this._loggerMeta={options:this._options,loggerInstanceName:this.loggerInstanceName,loggerInstanceId:t||ve.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(pe.levelIsEnabled(e,this._level)){let n=this._options.trace||"";n+="["+e+"] ",t.unshift(n);(this._handlerFunctionMap.get(e)||pe.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(pe.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)||pe.defaultHandlerFunction)(t),this._ringBuffer&&this._ringBuffer.addToRingBuffer(n)}}return t}error(e,...t){const n=this.createLogMessage(ie,{},e,...t);return this.recordMessage(n)}errorP(...e){this.consoleLogPassThru(ie,...e)}warn(e,...t){const n=this.createLogMessage(re,{},e,...t);return this.recordMessage(n)}warnP(...e){this.consoleLogPassThru(re,...e)}info(e,...t){const n=this.createLogMessage(se,{},e,...t);return this.recordMessage(n)}infoP(...e){this.consoleLogPassThru(se,...e)}verbose(e,...t){const n=this.createLogMessage(oe,{},e,...t);return this.recordMessage(n)}verboseP(...e){this.consoleLogPassThru(oe,...e)}debug(e,...t){const n=this.createLogMessage(ae,{},e,...t);return this.recordMessage(n)}debugP(...e){this.consoleLogPassThru(ae,...e)}silly(e,...t){const n=this.createLogMessage(le,{},e,...t);return this.recordMessage(n)}sillyP(...e){this.consoleLogPassThru(le,...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 Ee{static LOGGER_INSTANCE_MAP_GLOBAL_KEY="RATCHET_GLOBAL_LOGGER_MAP_V01";static GLOBAL_PROVIDER=process||global||window;static DEFAULT_OPTIONS={initialLevel:se,formatType:me,trace:null,globalVars:{},outputFunction:ue,ringBufferSize:0,preProcessors:[]};static applyDefaultsToOptions(e){const t=e||{};return t.initialLevel=t.initialLevel??Ee.DEFAULT_OPTIONS.initialLevel,t.formatType=t.formatType??Ee.DEFAULT_OPTIONS.formatType,t.trace=t.trace??Ee.DEFAULT_OPTIONS.trace,t.globalVars=t.globalVars??Ee.DEFAULT_OPTIONS.globalVars,t.outputFunction=t.outputFunction??Ee.DEFAULT_OPTIONS.outputFunction,t.ringBufferSize=t.ringBufferSize??Ee.DEFAULT_OPTIONS.ringBufferSize,t}static loggerInstances(){if(!Ee.GLOBAL_PROVIDER)throw new Error("Cannot create logger - could not find a global provider");let e=Ee.GLOBAL_PROVIDER[Ee.LOGGER_INSTANCE_MAP_GLOBAL_KEY];return e||(e=new Map,Ee.GLOBAL_PROVIDER[Ee.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");Ee.DEFAULT_OPTIONS=Object.assign({},e),t&&Array.from(Ee.loggerInstances().values()).forEach((t=>t.options=e))}static getLogger(e="default",t){let n=Ee.loggerInstances().get(e);if(!n){const i=Ee.applyDefaultsToOptions(t);n=new Te(e,i),Ee.loggerInstances().set(e,n)}return n}static recordMessageBuilder(e){return Ee.getLogger().recordMessageBuilder(e)}static levelIsEnabled(e){return Ee.getLogger().levelIsEnabled(e)}static recordMessage(e){return Ee.getLogger().recordMessage(e)}static formatMessages(e){return Ee.getLogger().formatMessages(e)}static updateTracePrefix(e){return Ee.getLogger().updateTracePrefix(e)}static changeRingBufferSize(e){return Ee.getLogger().changeRingBufferSize(e)}static getRingBuffer(){return Ee.getLogger().ringBuffer}static dumpConfigurationIntoLog(){return Ee.getLogger().dumpConfigurationIntoLog()}static dumpOptionsIntoLog(){return Ee.getLogger().dumpOptionsIntoLog()}static getLevel(){return Ee.getLogger().level}static setLevel(e){Ee.getLogger().level=e}static getOptions(){return Ee.getLogger().options}static getMessages(e=null,t=!1,n=!1){const i=Ee.getLogger().ringBuffer;return i?i.getMessages(e,t,n):null}static consoleLogPassThru(e,...t){return Ee.getLogger().consoleLogPassThru(e,...t)}static error(e,...t){return Ee.getLogger().error(e,...t)}static errorP(...e){return Ee.getLogger().errorP(...e)}static warn(e,...t){return Ee.getLogger().warn(e,...t)}static warnP(...e){return Ee.getLogger().warnP(...e)}static info(e,...t){return Ee.getLogger().info(e,...t)}static infoP(...e){return Ee.getLogger().infoP(...e)}static verbose(e,...t){return Ee.getLogger().verbose(e,...t)}static verboseP(...e){return Ee.getLogger().verboseP(...e)}static debug(e,...t){return Ee.getLogger().debug(e,...t)}static debugP(...e){return Ee.getLogger().debugP(...e)}static silly(e,...t){return Ee.getLogger().silly(e,...t)}static sillyP(...e){return Ee.getLogger().sillyP(...e)}static takeSnapshot(){const e=Ee.getLogger().ringBuffer;return e?e.takeSnapshot():null}static logByLevel(e,t,...n){return Ee.getLogger().logByLevel(e,t,...n)}static importMessages(e,t="",n=!0){return Ee.getLogger().importMessages(e,t,n)}static getLastLogMessage(){const e=Ee.getLogger().ringBuffer;return e?e.getLastLogMessage():null}}var Se,Ie,Ne;e.AlertComponent=Se=class{dialogService;cfg;ref;constructor(e,t,n){this.dialogService=e,this.cfg=t,this.ref=n,Ee.info("Creating with %j",this.cfg)}static showAlert(e,t,n="Alert"){return e.open(Se,{data:{message:t instanceof i.BehaviorSubject?t:new i.BehaviorSubject(t)},header:n})}},e.AlertComponent=Se=c([t.Component({selector:"ngx-acute-common-alert",template:"<div><pre>{{cfg.data.message | async}}</pre></div>",standalone:!0,imports:[n.AsyncPipe]}),u("design:paramtypes",[ne,Y,J])],e.AlertComponent);class Oe{styleClass;style;strokeWidth="2";fill="none";animationDuration="2s";ariaLabel;static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:Oe,deps:[],target:a.ɵɵFactoryTarget.Component});static"ɵcmp"=a.ɵɵngDeclareComponent({minVersion:"14.0.0",version:"18.0.1",type:Oe,selector:"p-progressSpinner",inputs:{styleClass:"styleClass",style:"style",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration",ariaLabel:"ariaLabel"},host:{classAttribute:"p-element"},ngImport:a,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:l.NgClass,selector:"[ngClass]",inputs:["class","ngClass"]},{kind:"directive",type:l.NgStyle,selector:"[ngStyle]",inputs:["ngStyle"]}],changeDetection:a.ChangeDetectionStrategy.OnPush,encapsulation:a.ViewEncapsulation.None})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:Oe,decorators:[{type:t.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:t.ChangeDetectionStrategy.OnPush,encapsulation:t.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:t.Input}],style:[{type:t.Input}],strokeWidth:[{type:t.Input}],fill:[{type:t.Input}],animationDuration:[{type:t.Input}],ariaLabel:[{type:t.Input}]}});class xe{static"ɵfac"=a.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:xe,deps:[],target:a.ɵɵFactoryTarget.NgModule});static"ɵmod"=a.ɵɵngDeclareNgModule({minVersion:"14.0.0",version:"18.0.1",ngImport:a,type:xe,declarations:[Oe],imports:[n.CommonModule],exports:[Oe]});static"ɵinj"=a.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:xe,imports:[n.CommonModule]})}a.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"18.0.1",ngImport:a,type:xe,decorators:[{type:t.NgModule,args:[{imports:[n.CommonModule],exports:[Oe],declarations:[Oe]}]}]}),e.BlockUiComponent=Ie=class{dialogService;cfg;constructor(e,t){this.dialogService=e,this.cfg=t}static createUiBlock(e,t="Please wait...",n){return e.open(Ie,{closable:!1,modal:!0,data:{message:t instanceof i.BehaviorSubject?t:new i.BehaviorSubject(t),subMessage:n}})}static async runPromiseWithUiBlock(e,t,n="Please wait...",r){const s=e.open(Ie,{closable:!1,modal:!0,data:{message:n instanceof i.BehaviorSubject?n:new i.BehaviorSubject(n),subMessage:r}});try{const e=await t;return s?.close(e),Ee.info("Blockui - Received %j - closing blocker ui and returning",e),e}catch(e){throw Ee.error("Caught error inside block ui dialog : %s - rethrowing",e,e),s?.close(),e}}},e.BlockUiComponent=Ie=c([t.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:[n.NgIf,n.AsyncPipe,xe]}),u("design:paramtypes",[ne,Y])],e.BlockUiComponent),e.CapitalizePipe=class{transform(e){return e&&e.length?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e}},e.CapitalizePipe=c([t.Pipe({name:"acuteCapitalize",standalone:!0})],e.CapitalizePipe);class De{constructor(){}static centToDollarFormat(e,t=2){return De.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?De.dollarFormat(e.low):" ^ ",t+=" - ",t+=e.high?De.dollarFormat(e.high):" ^ "),t}}e.DollarFormattedPipe=class{transform(e){return null==e?"Null":De.dollarFormat(e)}},e.DollarFormattedPipe=c([t.Pipe({name:"acuteDollars",standalone:!0})],e.DollarFormattedPipe),e.MapValuesPipe=class{transform(e,t){const n=[];for(const t of Object.keys(e))n.push({key:t,val:e[t]});return Ee.info("Map values : %j : %j",n,t),n}},e.MapValuesPipe=c([t.Pipe({name:"acuteMapValues",standalone:!0})],e.MapValuesPipe),e.NumberWithCommasPipe=class{transform(e){return(new Intl.NumberFormat).format(e)}},e.NumberWithCommasPipe=c([t.Pipe({name:"acuteNumberWithCommas",standalone:!0})],e.NumberWithCommasPipe),e.OrderByPipe=Ne=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?-Ne._orderByComparator(e[t],n[t]):Ne._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?-Ne._orderByComparator(e[s],n[s]):Ne._orderByComparator(e[s],n[s]);if(0!=o)return o}return 0}))}},e.OrderByPipe=Ne=c([t.Pipe({name:"acuteOrderBy",pure:!1,standalone:!0})],e.OrderByPipe);class ke{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=ke.safeNumber(e);return null==n?n:ke.safeNumber(n.toFixed(t))}static leadingZeros(e,t){const n=String(e);if(n.length<t){let e="0000";if(t>ke.MAX_LEADING_ZEROS_FORMAT_LENGTH)throw"Cannot format number that large (max length is "+ke.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=ke.safeNumber(e),r=ke.safeNumber(t),s=ke.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),ke.safeNumberOpt(e,i)}static safeNumberOpt(e,t){let n;const i=Object.assign({},ke.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 Ee.warn("Value is of type %s, returning default",t),n=i.ifNotNumber;isNaN(n)&&(Ee.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=>ke.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){ye.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){ye.notNullOrUndefined(e,"items"),ye.notNullOrUndefined(t,"buckets"),ye.true(e>0&&e===Math.floor(e),"Items integer larger than 0"),ye.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?ke.pctFormatted(e.low):" ^ ",t+=" - ",t+=e.high?ke.pctFormatted(e.high):" ^ "),t}static pctFormatted(e,t=2){return null==e?"Null":e.toLocaleString("en-US",{minimumFractionDigits:t,maximumFractionDigits:t})+"%"}}e.PercentFormattedPipe=class{transform(e){return ke.pctFormatted(e)}},e.PercentFormattedPipe=c([t.Pipe({name:"acutePercent",standalone:!0})],e.PercentFormattedPipe),e.PluralPipe=class{transform(e,t,n=""){return 1===(e=e||0)?`${e} ${t}`:n?`${e} ${n}`:`${e} ${t}s`}},e.PluralPipe=c([t.Pipe({name:"acutePlural",standalone:!0})],e.PluralPipe),e.RoundPipe=class{transform(e){return Math.round(e)}},e.RoundPipe=c([t.Pipe({name:"acuteRound",standalone:!0})],e.RoundPipe);class Ae extends Error{}class Le extends Ae{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class _e extends Ae{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Me extends Ae{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Fe extends Ae{}class Re extends Ae{constructor(e){super(`Invalid unit ${e}`)}}class Ve extends Ae{}class Pe extends Ae{constructor(){super("Zone is an abstract class")}}const je="numeric",ze="short",Be="long",qe={year:je,month:je,day:je},Ue={year:je,month:ze,day:je},$e={year:je,month:ze,day:je,weekday:ze},He={year:je,month:Be,day:je},We={year:je,month:Be,day:je,weekday:Be},Ze={hour:je,minute:je},Ge={hour:je,minute:je,second:je},Ye={hour:je,minute:je,second:je,timeZoneName:ze},Je={hour:je,minute:je,second:je,timeZoneName:Be},Ke={hour:je,minute:je,hourCycle:"h23"},Qe={hour:je,minute:je,second:je,hourCycle:"h23"},Xe={hour:je,minute:je,second:je,hourCycle:"h23",timeZoneName:ze},et={hour:je,minute:je,second:je,hourCycle:"h23",timeZoneName:Be},tt={year:je,month:je,day:je,hour:je,minute:je},nt={year:je,month:je,day:je,hour:je,minute:je,second:je},it={year:je,month:ze,day:je,hour:je,minute:je},rt={year:je,month:ze,day:je,hour:je,minute:je,second:je},st={year:je,month:ze,day:je,weekday:ze,hour:je,minute:je},ot={year:je,month:Be,day:je,hour:je,minute:je,timeZoneName:ze},at={year:je,month:Be,day:je,hour:je,minute:je,second:je,timeZoneName:ze},lt={year:je,month:Be,day:je,weekday:Be,hour:je,minute:je,timeZoneName:Be},ct={year:je,month:Be,day:je,weekday:Be,hour:je,minute:je,second:je,timeZoneName:Be};class ut{get type(){throw new Pe}get name(){throw new Pe}get ianaName(){return this.name}get isUniversal(){throw new Pe}offsetName(e,t){throw new Pe}formatOffset(e,t){throw new Pe}offset(e){throw new Pe}equals(e){throw new Pe}get isValid(){throw new Pe}}let dt=null;class ht extends ut{static get instance(){return null===dt&&(dt=new ht),dt}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return An(e,t,n)}formatOffset(e,t){return Fn(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let pt={};const mt={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let ft={};class gt extends ut{static create(e){return ft[e]||(ft[e]=new gt(e)),ft[e]}static resetCache(){ft={},pt={}}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=gt.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return An(e,t,n,this.name)}formatOffset(e,t){return Fn(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(i=this.name,pt[i]||(pt[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"})),pt[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=mt[t];"era"===t?i[s]=r:un(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,(On({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 yt={};let vt={};function bt(e,t={}){const n=JSON.stringify([e,t]);let i=vt[n];return i||(i=new Intl.DateTimeFormat(e,t),vt[n]=i),i}let wt={};let Ct={};let Tt=null;let Et={};function St(e,t,n,i){const r=e.listingMode();return"error"===r?null:"en"===r?n(t):i(t)}class It{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=wt[n];return i||(i=new Intl.NumberFormat(e,t),wt[n]=i),i}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return bn(this.floor?Math.floor(e):En(e,3),this.padTo)}}class Nt{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&&gt.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=bt(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 Ot{constructor(e,t,n){this.opts={style:"long",...n},!t&&pn()&&(this.rtf=function(e,t={}){const{base:n,...i}=t,r=JSON.stringify([e,i]);let s=Ct[r];return s||(s=new Intl.RelativeTimeFormat(e,t),Ct[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 Dt{static fromOpts(e){return Dt.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,i,r=!1){const s=e||Zt.defaultLocale,o=s||(r?"en-US":Tt||(Tt=(new Intl.DateTimeFormat).resolvedOptions().locale,Tt)),a=t||Zt.defaultNumberingSystem,l=n||Zt.defaultOutputCalendar,c=yn(i)||Zt.defaultWeekSettings;return new Dt(o,a,l,c,s)}static resetCache(){Tt=null,vt={},wt={},Ct={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:i}={}){return Dt.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=bt(e).resolvedOptions(),i=e}catch(r){const s=e.substring(0,n);t=bt(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?Dt.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,yn(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 St(this,e,zn,(()=>{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=Ur.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 St(this,e,$n,(()=>{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=Ur.utc(2016,11,13+n);t.push(e(i))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[i][e]}))}meridiems(){return St(this,void 0,(()=>Hn),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ur.utc(2016,11,13,9),Ur.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return St(this,e,Yn,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ur.utc(-40,1,1),Ur.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 It(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Nt(e,this.intl,t)}relFormatter(e={}){return new Ot(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let i=yt[n];return i||(i=new Intl.ListFormat(e,t),yt[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:mn()?function(e){let t=Et[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Et[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 kt=null;class At extends ut{static get utcInstance(){return null===kt&&(kt=new At(0)),kt}static instance(e){return 0===e?At.utcInstance:new At(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new At(Ln(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Fn(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Fn(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Fn(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 Lt extends ut{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 _t(e,t){if(un(e)||null===e)return t;if(e instanceof ut)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?ht.instance:"utc"===n||"gmt"===n?At.utcInstance:At.parseSpecifier(n)||gt.create(e)}return dn(e)?At.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new Lt(e)}const Mt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Ft={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]},Rt=Mt.hanidec.replace(/[\[|\]]/g,"").split("");let Vt={};function Pt({numberingSystem:e},t=""){const n=e||"latn";return Vt[n]||(Vt[n]={}),Vt[n][t]||(Vt[n][t]=new RegExp(`${Mt[n]}${t}`)),Vt[n][t]}let jt,zt=()=>Date.now(),Bt="system",qt=null,Ut=null,$t=null,Ht=60,Wt=null;class Zt{static get now(){return zt}static set now(e){zt=e}static set defaultZone(e){Bt=e}static get defaultZone(){return _t(Bt,ht.instance)}static get defaultLocale(){return qt}static set defaultLocale(e){qt=e}static get defaultNumberingSystem(){return Ut}static set defaultNumberingSystem(e){Ut=e}static get defaultOutputCalendar(){return $t}static set defaultOutputCalendar(e){$t=e}static get defaultWeekSettings(){return Wt}static set defaultWeekSettings(e){Wt=yn(e)}static get twoDigitCutoffYear(){return Ht}static set twoDigitCutoffYear(e){Ht=e%100}static get throwOnInvalid(){return jt}static set throwOnInvalid(e){jt=e}static resetCaches(){Dt.resetCache(),gt.resetCache(),Ur.resetCache(),Vt={}}}class Gt{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Yt=[0,31,59,90,120,151,181,212,243,273,304,334],Jt=[0,31,60,91,121,152,182,213,244,274,305,335];function Kt(e,t){return new Gt("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Qt(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 Xt(e,t,n){return n+(Sn(e)?Jt:Yt)[t-1]}function en(e,t){const n=Sn(e)?Jt:Yt,i=n.findIndex((e=>e<t));return{month:i+1,day:t-n[i]}}function tn(e,t){return(e-t+7)%7+1}function nn(e,t=4,n=1){const{year:i,month:r,day:s}=e,o=Xt(i,r,s),a=tn(Qt(i,r,s),n);let l,c=Math.floor((o-a+14-t)/7);return c<1?(l=i-1,c=Dn(l,t,n)):c>Dn(i,t,n)?(l=i+1,c=1):l=i,{weekYear:l,weekNumber:c,weekday:a,...Rn(e)}}function rn(e,t=4,n=1){const{weekYear:i,weekNumber:r,weekday:s}=e,o=tn(Qt(i,1,t),n),a=In(i);let l,c=7*r+s-o-7+t;c<1?(l=i-1,c+=In(l)):c>a?(l=i+1,c-=In(i)):l=i;const{month:u,day:d}=en(l,c);return{year:l,month:u,day:d,...Rn(e)}}function sn(e){const{year:t,month:n,day:i}=e;return{year:t,ordinal:Xt(t,n,i),...Rn(e)}}function on(e){const{year:t,ordinal:n}=e,{month:i,day:r}=en(t,n);return{year:t,month:i,day:r,...Rn(e)}}function an(e,t){if(!un(e.localWeekday)||!un(e.localWeekNumber)||!un(e.localWeekYear)){if(!un(e.weekday)||!un(e.weekNumber)||!un(e.weekYear))throw new Fe("Cannot mix locale-based week fields with ISO-based week fields");return un(e.localWeekday)||(e.weekday=e.localWeekday),un(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),un(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 ln(e){const t=hn(e.year),n=vn(e.month,1,12),i=vn(e.day,1,Nn(e.year,e.month));return t?n?!i&&Kt("day",e.day):Kt("month",e.month):Kt("year",e.year)}function cn(e){const{hour:t,minute:n,second:i,millisecond:r}=e,s=vn(t,0,23)||24===t&&0===n&&0===i&&0===r,o=vn(n,0,59),a=vn(i,0,59),l=vn(r,0,999);return s?o?a?!l&&Kt("millisecond",r):Kt("second",i):Kt("minute",n):Kt("hour",t)}function un(e){return void 0===e}function dn(e){return"number"==typeof e}function hn(e){return"number"==typeof e&&e%1==0}function pn(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function mn(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function fn(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 gn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function yn(e){if(null==e)return null;if("object"!=typeof e)throw new Ve("Week settings must be an object");if(!vn(e.firstDay,1,7)||!vn(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!vn(e,1,7))))throw new Ve("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function vn(e,t,n){return hn(e)&&e>=t&&e<=n}function bn(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function wn(e){return un(e)||null===e||""===e?void 0:parseInt(e,10)}function Cn(e){return un(e)||null===e||""===e?void 0:parseFloat(e)}function Tn(e){if(!un(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function En(e,t,n=!1){const i=10**t;return(n?Math.trunc:Math.round)(e*i)/i}function Sn(e){return e%4==0&&(e%100!=0||e%400==0)}function In(e){return Sn(e)?366:365}function Nn(e,t){const n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?Sn(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function On(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-tn(Qt(e,1,t),n)+t-1}function Dn(e,t=4,n=1){const i=xn(e,t,n),r=xn(e+1,t,n);return(In(e)-i+r)/7}function kn(e){return e>99?e:e>Zt.twoDigitCutoffYear?1900+e:2e3+e}function An(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 Ln(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 _n(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new Ve(`Invalid unit value ${e}`);return t}function Mn(e,t){const n={};for(const i in e)if(gn(e,i)){const r=e[i];if(null==r)continue;n[t(i)]=_n(r)}return n}function Fn(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}${bn(n,2)}:${bn(i,2)}`;case"narrow":return`${r}${n}${i>0?`:${i}`:""}`;case"techie":return`${r}${bn(n,2)}${bn(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Rn(e){return function(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}(e,["hour","minute","second","millisecond"])}const Vn=["January","February","March","April","May","June","July","August","September","October","November","December"],Pn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],jn=["J","F","M","A","M","J","J","A","S","O","N","D"];function zn(e){switch(e){case"narrow":return[...jn];case"short":return[...Pn];case"long":return[...Vn];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 Bn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],qn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Un=["M","T","W","T","F","S","S"];function $n(e){switch(e){case"narrow":return[...Un];case"short":return[...qn];case"long":return[...Bn];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Hn=["AM","PM"],Wn=["Before Christ","Anno Domini"],Zn=["BC","AD"],Gn=["B","A"];function Yn(e){switch(e){case"narrow":return[...Gn];case"short":return[...Zn];case"long":return[...Wn];default:return null}}function Jn(e,t){let n="";for(const i of e)i.literal?n+=i.val:n+=t(i.val);return n}const Kn={D:qe,DD:Ue,DDD:He,DDDD:We,t:Ze,tt:Ge,ttt:Ye,tttt:Je,T:Ke,TT:Qe,TTT:Xe,TTTT:et,f:tt,ff:it,fff:ot,ffff:lt,F:nt,FF:rt,FFF:at,FFFF:ct};class Qn{static create(e,t={}){return new Qn(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 Kn[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 bn(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 Hn[e.hour<12?0:1]}(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(t,i)=>n?function(e,t){return zn(t)[e.month-1]}(e,t):r(i?{month:t}:{month:t,day:"numeric"},"month"),l=(t,i)=>n?function(e,t){return $n(t)[e.weekday-1]}(e,t):r(i?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),c=t=>{const n=Qn.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},u=t=>n?function(e,t){return Yn(t)[e.year<0?0:1]}(e,t):r({era:t},"era");return Jn(Qn.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=Qn.parseFormat(t),r=i.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]);return Jn(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 Xn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ei(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function ti(...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 ni(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 ii(...e){return(t,n)=>{const i={};let r;for(r=0;r<e.length;r++)i[e[r]]=wn(t[n+r]);return[i,null,n+r]}}const ri=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,si=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,oi=RegExp(`${si.source}${`(?:${ri.source}?(?:\\[(${Xn.source})\\])?)?`}`),ai=RegExp(`(?:T${oi.source})?`),li=ii("weekYear","weekNumber","weekDay"),ci=ii("year","ordinal"),ui=RegExp(`${si.source} ?(?:${ri.source}|(${Xn.source}))?`),di=RegExp(`(?: ${ui.source})?`);function hi(e,t,n){const i=e[t];return un(i)?n:wn(i)}function pi(e,t){return[{hours:hi(e,t,0),minutes:hi(e,t+1,0),seconds:hi(e,t+2,0),milliseconds:Tn(e[t+3])},null,t+4]}function mi(e,t){const n=!e[t]&&!e[t+1],i=Ln(e[t+1],e[t+2]);return[{},n?null:At.instance(i),t+3]}function fi(e,t){return[{},e[t]?gt.create(e[t]):null,t+1]}const gi=RegExp(`^T?${si.source}$`),yi=/^-?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 vi(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(Cn(n)),months:h(Cn(i)),weeks:h(Cn(r)),days:h(Cn(s)),hours:h(Cn(o)),minutes:h(Cn(a)),seconds:h(Cn(l),"-0"===l),milliseconds:h(Tn(c),d)}]}const bi={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wi(e,t,n,i,r,s,o){const a={year:2===t.length?kn(wn(t)):wn(t),month:Pn.indexOf(n)+1,day:wn(i),hour:wn(r),minute:wn(s)};return o&&(a.second=wn(o)),e&&(a.weekday=e.length>3?Bn.indexOf(e)+1:qn.indexOf(e)+1),a}const Ci=/^(?:(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 Ti(e){const[,t,n,i,r,s,o,a,l,c,u,d]=e,h=wi(t,r,i,n,s,o,a);let p;return p=l?bi[l]:c?0:Ln(u,d),[h,new At(p)]}const Ei=/^(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$/,Si=/^(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$/,Ii=/^(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 Ni(e){const[,t,n,i,r,s,o,a]=e;return[wi(t,r,i,n,s,o,a),At.utcInstance]}function Oi(e){const[,t,n,i,r,s,o,a]=e;return[wi(t,a,n,i,r,s,o),At.utcInstance]}const xi=ei(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,ai),Di=ei(/(\d{4})-?W(\d\d)(?:-?(\d))?/,ai),ki=ei(/(\d{4})-?(\d{3})/,ai),Ai=ei(oi),Li=ti((function(e,t){return[{year:hi(e,t),month:hi(e,t+1,1),day:hi(e,t+2,1)},null,t+3]}),pi,mi,fi),_i=ti(li,pi,mi,fi),Mi=ti(ci,pi,mi,fi),Fi=ti(pi,mi,fi);const Ri=ti(pi);const Vi=ei(/(\d{4})-(\d\d)-(\d\d)/,di),Pi=ei(ui),ji=ti(pi,mi,fi);const zi="Invalid Duration",Bi={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}},qi={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},...Bi},Ui=365.2425,$i=30.436875,Hi={years:{quarters:4,months:12,weeks:52.1775,days:Ui,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:$i,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Bi},Wi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Zi=Wi.slice(0).reverse();function Gi(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 Ki(i)}function Yi(e,t){let n=t.milliseconds??0;for(const i of Zi.slice(1))t[i]&&(n+=t[i]*e[i].milliseconds);return n}function Ji(e,t){const n=Yi(e,t)<0?-1:1;Wi.reduceRight(((i,r)=>{if(un(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),Wi.reduce(((n,i)=>{if(un(t[i]))return n;if(n){const r=t[n]%1;t[n]-=r,t[i]+=r*e[n][i]}return i}),null)}class Ki{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?Hi:qi;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Dt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Ki.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new Ve("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Ki({values:Mn(e,Ki.normalizeUnit),loc:Dt.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(dn(e))return Ki.fromMillis(e);if(Ki.isDuration(e))return e;if("object"==typeof e)return Ki.fromObject(e);throw new Ve(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return ni(e,[yi,vi])}(e);return n?Ki.fromObject(n,t):Ki.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return ni(e,[gi,Ri])}(e);return n?Ki.fromObject(n,t):Ki.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new Ve("need to specify a reason the Duration is invalid");const n=e instanceof Gt?e:new Gt(e,t);if(Zt.throwOnInvalid)throw new Me(n);return new Ki({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 Re(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?Qn.create(this.loc,n).formatDurationFromString(this,e):zi}toHuman(e={}){if(!this.isValid)return zi;const t=Wi.map((t=>{const n=this.values[t];return un(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+=En(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 Ur.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?Yi(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Ki.fromDurationLike(e),n={};for(const e of Wi)(gn(t.values,e)||gn(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Gi(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=Ki.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]=_n(e(this.values[n],n));return Gi(this,{values:t},!0)}get(e){return this[Ki.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return Gi(this,{values:{...this.values,...Mn(e,Ki.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:i}={}){return Gi(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 Ji(this.matrix,e),Gi(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return Gi(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=>Ki.normalizeUnit(e)));const t={},n={},i=this.toObject();let r;for(const s of Wi)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;dn(i[s])&&(e+=i[s]);const o=Math.trunc(e);t[s]=o,n[s]=(1e3*e-1e3*o)/1e3}else dn(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 Ji(this.matrix,t),Gi(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 Gi(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 Wi)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 Qi="Invalid Interval";class Xi{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 Ve("need to specify a reason the Interval is invalid");const n=e instanceof Gt?e:new Gt(e,t);if(Zt.throwOnInvalid)throw new _e(n);return new Xi({invalid:n})}static fromDateTimes(e,t){const n=$r(e),i=$r(t),r=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?Xi.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:Xi.invalid("missing or invalid end"):Xi.invalid("missing or invalid start")}(n,i);return null==r?new Xi({start:n,end:i}):r}static after(e,t){const n=Ki.fromDurationLike(t),i=$r(e);return Xi.fromDateTimes(i,i.plus(n))}static before(e,t){const n=Ki.fromDurationLike(t),i=$r(e);return Xi.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=Ur.fromISO(n,t),r=e.isValid}catch(i){r=!1}try{s=Ur.fromISO(i,t),o=s.isValid}catch(i){o=!1}if(r&&o)return Xi.fromDateTimes(e,s);if(r){const n=Ki.fromISO(i,t);if(n.isValid)return Xi.after(e,n)}else if(o){const e=Ki.fromISO(n,t);if(e.isValid)return Xi.before(s,e)}}return Xi.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?Xi.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map($r).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(Xi.fromDateTimes(i,s)),i=s,r+=1}return n}splitBy(e){const t=Ki.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(Xi.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:Xi.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 Xi.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(Xi.fromDateTimes(t,e.time)),t=null);return Xi.merge(i)}difference(...e){return Xi.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Qi}[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=qe,t={}){return this.isValid?Qn.create(this.s.loc.clone(t),e).formatInterval(this):Qi}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Qi}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Qi}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Qi}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Qi}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Ki.invalid(this.invalidReason)}mapEndpoints(e){return Xi.fromDateTimes(e(this.s),e(this.e))}}class er{static hasDST(e=Zt.defaultZone){const t=Ur.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return gt.isValidZone(e)}static normalizeZone(e){return _t(e,Zt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Dt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Dt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Dt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||Dt.create(t,n,r)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||Dt.create(t,n,r)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Dt.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Dt.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Dt.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Dt.create(t,null,"gregory").eras(e)}static features(){return{relative:pn(),localeWeek:mn()}}}function tr(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(t)-n(e);return Math.floor(Ki.fromMillis(i).as("days"))}function nr(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=tr(e,t);return(n-n%7)/7}],["days",tr]],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=Ki.fromObject(s,i);return c.length>0?Ki.fromMillis(l,i).shiftTo(...c).plus(u):u}function ir(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(Mt.hanidec))t+=Rt.indexOf(e[n]);else for(const e in Ft){const[n,r]=Ft[e];i>=n&&i<=r&&(t+=i-n)}}return parseInt(t,10)}return t}(e))}}const rr=`[ ${String.fromCharCode(160)}]`,sr=new RegExp(rr,"g");function or(e){return e.replace(/\./g,"\\.?").replace(sr,rr)}function ar(e){return e.replace(/\./g,"").replace(sr," ").toLowerCase()}function lr(e,t){return null===e?null:{regex:RegExp(e.map(or).join("|")),deser:([n])=>e.findIndex((e=>ar(n)===ar(e)))+t}}function cr(e,t){return{regex:e,deser:([,e,t])=>Ln(e,t),groups:t}}function ur(e){return{regex:e,deser:([e])=>e}}const dr={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 hr=null;function pr(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=gr(Qn.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}class mr{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=pr(Qn.parseFormat(t),e),this.units=this.tokens.map((t=>function(e,t){const n=Pt(t),i=Pt(t,"{2}"),r=Pt(t,"{3}"),s=Pt(t,"{4}"),o=Pt(t,"{6}"),a=Pt(t,"{1,2}"),l=Pt(t,"{1,3}"),c=Pt(t,"{1,6}"),u=Pt(t,"{1,9}"),d=Pt(t,"{2,4}"),h=Pt(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 lr(t.eras("short"),0);case"GG":return lr(t.eras("long"),0);case"y":return ir(c);case"yy":case"kk":return ir(d,kn);case"yyyy":case"kkkk":return ir(s);case"yyyyy":return ir(h);case"yyyyyy":return ir(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return ir(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return ir(i);case"MMM":return lr(t.months("short",!0),1);case"MMMM":return lr(t.months("long",!0),1);case"LLL":return lr(t.months("short",!1),1);case"LLLL":return lr(t.months("long",!1),1);case"o":case"S":return ir(l);case"ooo":case"SSS":return ir(r);case"u":return ur(u);case"uu":return ur(a);case"uuu":case"E":case"c":return ir(n);case"a":return lr(t.meridiems(),0);case"EEE":return lr(t.weekdays("short",!1),1);case"EEEE":return lr(t.weekdays("long",!1),1);case"ccc":return lr(t.weekdays("short",!0),1);case"cccc":return lr(t.weekdays("long",!0),1);case"Z":case"ZZ":return cr(new RegExp(`([+-]${a.source})(?::(${i.source}))?`),2);case"ZZZ":return cr(new RegExp(`([+-]${a.source})(${i.source})?`),2);case"z":return ur(/[a-z_+-/]{1,256}?/i);case" ":return ur(/[^\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(gn(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 un(e.z)||(n=gt.create(e.z)),un(e.Z)||(n||(n=new At(e.Z)),t=e.Z),un(e.q)||(e.M=3*(e.q-1)+1),un(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),un(e.u)||(e.S=Tn(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(gn(n,"a")&&gn(n,"H"))throw new Fe("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 fr(e,t,n){return new mr(e,n).explainFromTokens(t)}function gr(e,t){if(!e)return null;const n=Qn.create(t,e).dtFormatter((hr||(hr=Ur.fromMillis(1555555555555)),hr)),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=dr[o];if("object"==typeof a&&(a=a[s]),a)return{literal:!1,val:a}}(t,e,r)))}const yr="Invalid DateTime",vr=864e13;function br(e){return new Gt("unsupported zone",`the zone "${e.name}" is not supported`)}function wr(e){return null===e.weekData&&(e.weekData=nn(e.c)),e.weekData}function Cr(e){return null===e.localWeekData&&(e.localWeekData=nn(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Tr(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ur({...n,...t,old:n})}function Er(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 Sr(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 Ir(e,t,n){return Er(On(e),t,n)}function Nr(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,Nn(i,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},o=Ki.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=On(s);let[l,c]=Er(a,n,e.zone);return 0!==o&&(l+=o,c=e.zone.offset(l)),{ts:l,o:c}}function Or(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=Ur.fromObject(e,{...n,zone:i,specificOffset:s});return o?r:r.setZone(a)}return Ur.invalid(new Gt("unparsable",`the input "${r}" can't be parsed as ${i}`))}function xr(e,t,n=!0){return e.isValid?Qn.create(Dt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Dr(e,t){const n=e.c.year>9999||e.c.year<0;let i="";return n&&e.c.year>=0&&(i+="+"),i+=bn(e.c.year,n?6:4),t?(i+="-",i+=bn(e.c.month),i+="-",i+=bn(e.c.day)):(i+=bn(e.c.month),i+=bn(e.c.day)),i}function kr(e,t,n,i,r,s){let o=bn(e.c.hour);return t?(o+=":",o+=bn(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(o+=":")):o+=bn(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(o+=bn(e.c.second),0===e.c.millisecond&&i||(o+=".",o+=bn(e.c.millisecond,3))),r&&(e.isOffsetFixed&&0===e.offset&&!s?o+="Z":e.o<0?(o+="-",o+=bn(Math.trunc(-e.o/60)),o+=":",o+=bn(Math.trunc(-e.o%60))):(o+="+",o+=bn(Math.trunc(e.o/60)),o+=":",o+=bn(Math.trunc(e.o%60)))),s&&(o+="["+e.zone.ianaName+"]"),o}const Ar={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Lr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},_r={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Mr=["year","month","day","hour","minute","second","millisecond"],Fr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Rr=["year","ordinal","hour","minute","second","millisecond"];function Vr(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 Re(e);return t}(e)}}function Pr(e,t){const n=_t(t.zone,Zt.defaultZone);if(!n.isValid)return Ur.invalid(br(n));const i=Dt.fromObject(t);let r,s;if(un(e.year))r=Zt.now();else{for(const t of Mr)un(e[t])&&(e[t]=Ar[t]);const t=ln(e)||cn(e);if(t)return Ur.invalid(t);const i=function(e){return qr[e]||(void 0===Br&&(Br=Zt.now()),qr[e]=e.offset(Br)),qr[e]}(n);[r,s]=Ir(e,i,n)}return new Ur({ts:r,zone:n,loc:i,o:s})}function jr(e,t,n){const i=!!un(n.round)||n.round,r=(e,r)=>{e=En(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 zr(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 Br,qr={};class Ur{constructor(e){const t=e.zone||Zt.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Gt("invalid input"):null)||(t.isValid?null:br(t));this.ts=un(e.ts)?Zt.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=dn(e.o)&&!e.old?e.o:t.offset(this.ts);i=Sr(this.ts,s),n=Number.isNaN(i.year)?new Gt("invalid input"):null,i=n?null:i,r=n?null:s}}this._zone=t,this.loc=e.loc||Dt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=r,this.isLuxonDateTime=!0}static now(){return new Ur({})}static local(){const[e,t]=zr(arguments),[n,i,r,s,o,a,l]=t;return Pr({year:n,month:i,day:r,hour:s,minute:o,second:a,millisecond:l},e)}static utc(){const[e,t]=zr(arguments),[n,i,r,s,o,a,l]=t;return e.zone=At.utcInstance,Pr({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 Ur.invalid("invalid input");const r=_t(t.zone,Zt.defaultZone);return r.isValid?new Ur({ts:n,zone:r,loc:Dt.fromObject(t)}):Ur.invalid(br(r))}static fromMillis(e,t={}){if(dn(e))return e<-vr||e>vr?Ur.invalid("Timestamp out of range"):new Ur({ts:e,zone:_t(t.zone,Zt.defaultZone),loc:Dt.fromObject(t)});throw new Ve(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(dn(e))return new Ur({ts:1e3*e,zone:_t(t.zone,Zt.defaultZone),loc:Dt.fromObject(t)});throw new Ve("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=_t(t.zone,Zt.defaultZone);if(!n.isValid)return Ur.invalid(br(n));const i=Dt.fromObject(t),r=Mn(e,Vr),{minDaysInFirstWeek:s,startOfWeek:o}=an(r,i),a=Zt.now(),l=un(t.specificOffset)?n.offset(a):t.specificOffset,c=!un(r.ordinal),u=!un(r.year),d=!un(r.month)||!un(r.day),h=u||d,p=r.weekYear||r.weekNumber;if((h||c)&&p)throw new Fe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new Fe("Can't mix ordinal dates with month/day");const m=p||r.weekday&&!h;let f,g,y=Sr(a,l);m?(f=Fr,g=Lr,y=nn(y,s,o)):c?(f=Rr,g=_r,y=sn(y)):(f=Mr,g=Ar);let v=!1;for(const e of f){un(r[e])?r[e]=v?g[e]:y[e]:v=!0}const b=m?function(e,t=4,n=1){const i=hn(e.weekYear),r=vn(e.weekNumber,1,Dn(e.weekYear,t,n)),s=vn(e.weekday,1,7);return i?r?!s&&Kt("weekday",e.weekday):Kt("week",e.weekNumber):Kt("weekYear",e.weekYear)}(r,s,o):c?function(e){const t=hn(e.year),n=vn(e.ordinal,1,In(e.year));return t?!n&&Kt("ordinal",e.ordinal):Kt("year",e.year)}(r):ln(r),w=b||cn(r);if(w)return Ur.invalid(w);const C=m?rn(r,s,o):c?on(r):r,[T,E]=Ir(C,l,n),S=new Ur({ts:T,zone:n,o:E,loc:i});return r.weekday&&h&&e.weekday!==S.weekday?Ur.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${S.toISO()}`):S.isValid?S:Ur.invalid(S.invalid)}static fromISO(e,t={}){const[n,i]=function(e){return ni(e,[xi,Li],[Di,_i],[ki,Mi],[Ai,Fi])}(e);return Or(n,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,i]=function(e){return ni(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Ci,Ti])}(e);return Or(n,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,i]=function(e){return ni(e,[Ei,Ni],[Si,Ni],[Ii,Oi])}(e);return Or(n,i,t,"HTTP",t)}static fromFormat(e,t,n={}){if(un(e)||un(t))throw new Ve("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:r=null}=n,s=Dt.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),[o,a,l,c]=function(e,t,n){const{result:i,zone:r,specificOffset:s,invalidReason:o}=fr(e,t,n);return[i,r,s,o]}(s,e,t);return c?Ur.invalid(c):Or(o,a,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return Ur.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,i]=function(e){return ni(e,[Vi,Li],[Pi,ji])}(e);return Or(n,i,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new Ve("need to specify a reason the DateTime is invalid");const n=e instanceof Gt?e:new Gt(e,t);if(Zt.throwOnInvalid)throw new Le(n);return new Ur({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=gr(e,Dt.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return pr(Qn.parseFormat(e),Dt.fromObject(t)).map((e=>e.val)).join("")}static resetCache(){Br=void 0,qr={}}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?wr(this).weekYear:NaN}get weekNumber(){return this.isValid?wr(this).weekNumber:NaN}get weekday(){return this.isValid?wr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Cr(this).weekday:NaN}get localWeekNumber(){return this.isValid?Cr(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Cr(this).weekYear:NaN}get ordinal(){return this.isValid?sn(this.c).ordinal:NaN}get monthShort(){return this.isValid?er.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?er.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?er.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?er.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=On(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=Sr(a,s),u=Sr(l,o);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[Tr(this,{ts:a}),Tr(this,{ts:l})]:[this]}get isInLeapYear(){return Sn(this.year)}get daysInMonth(){return Nn(this.year,this.month)}get daysInYear(){return this.isValid?In(this.year):NaN}get weeksInWeekYear(){return this.isValid?Dn(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Dn(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:i}=Qn.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(At.instance(e),t)}toLocal(){return this.setZone(Zt.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=_t(e,Zt.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]=Ir(n,t,e)}return Tr(this,{ts:i,zone:e})}return Ur.invalid(br(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return Tr(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=Mn(e,Vr),{minDaysInFirstWeek:n,startOfWeek:i}=an(t,this.loc),r=!un(t.weekYear)||!un(t.weekNumber)||!un(t.weekday),s=!un(t.ordinal),o=!un(t.year),a=!un(t.month)||!un(t.day),l=o||a,c=t.weekYear||t.weekNumber;if((l||s)&&c)throw new Fe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Fe("Can't mix ordinal dates with month/day");let u;r?u=rn({...nn(this.c,n,i),...t},n,i):un(t.ordinal)?(u={...this.toObject(),...t},un(t.day)&&(u.day=Math.min(Nn(u.year,u.month),u.day))):u=on({...sn(this.c),...t});const[d,h]=Ir(u,this.o,this.zone);return Tr(this,{ts:d,o:h})}plus(e){if(!this.isValid)return this;return Tr(this,Nr(this,Ki.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return Tr(this,Nr(this,Ki.fromDurationLike(e).negate()))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},i=Ki.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?Qn.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):yr}toLocaleString(e=qe,t={}){return this.isValid?Qn.create(this.loc.clone(t),e).formatDateTime(this):yr}toLocaleParts(e={}){return this.isValid?Qn.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=Dr(this,s);return o+="T",o+=kr(this,s,t,n,i,r),o}toISODate({format:e="extended"}={}){return this.isValid?Dr(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":"")+kr(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?Dr(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():yr}[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 Ki.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(Ki.normalizeUnit),s=e.valueOf()>this.valueOf(),o=nr(s?this:e,s?e:this,r,i);var a;return s?o.negate():o}diffNow(e="milliseconds",t={}){return this.diff(Ur.now(),e,t)}until(e){return this.isValid?Xi.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||Ur.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),jr(t,this.plus(n),{...e,numeric:"always",units:i,unit:r})}toRelativeCalendar(e={}){return this.isValid?jr(e.base||Ur.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Ur.isDateTime))throw new Ve("min requires all arguments be DateTimes");return fn(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(Ur.isDateTime))throw new Ve("max requires all arguments be DateTimes");return fn(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:i=null,numberingSystem:r=null}=n;return fr(Dt.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return Ur.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:i=null}=t,r=Dt.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new mr(r,e)}static fromFormatParser(e,t,n={}){if(un(e)||un(t))throw new Ve("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:r=null}=n,s=Dt.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});if(!s.equals(t.locale))throw new Ve(`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?Ur.invalid(c):Or(o,a,n,`format ${t.format}`,e,l)}static get DATE_SHORT(){return qe}static get DATE_MED(){return Ue}static get DATE_MED_WITH_WEEKDAY(){return $e}static get DATE_FULL(){return He}static get DATE_HUGE(){return We}static get TIME_SIMPLE(){return Ze}static get TIME_WITH_SECONDS(){return Ge}static get TIME_WITH_SHORT_OFFSET(){return Ye}static get TIME_WITH_LONG_OFFSET(){return Je}static get TIME_24_SIMPLE(){return Ke}static get TIME_24_WITH_SECONDS(){return Qe}static get TIME_24_WITH_SHORT_OFFSET(){return Xe}static get TIME_24_WITH_LONG_OFFSET(){return et}static get DATETIME_SHORT(){return tt}static get DATETIME_SHORT_WITH_SECONDS(){return nt}static get DATETIME_MED(){return it}static get DATETIME_MED_WITH_SECONDS(){return rt}static get DATETIME_MED_WITH_WEEKDAY(){return st}static get DATETIME_FULL(){return ot}static get DATETIME_FULL_WITH_SECONDS(){return at}static get DATETIME_HUGE(){return lt}static get DATETIME_HUGE_WITH_SECONDS(){return ct}}function $r(e){if(Ur.isDateTime(e))return e;if(e&&e.valueOf&&dn(e.valueOf()))return Ur.fromJSDate(e);if(e&&"object"==typeof e)return Ur.fromObject(e);throw new Ve(`Unknown datetime argument: ${e}, of type ${typeof e}`)}class Hr{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=ke.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=ke.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 Ur.fromJSDate(e).diff(Ur.fromJSDate(t)).days}static createSteps(e,t,n,i,r){let s=Ur.fromMillis(e).setZone(n);const o=Ur.fromMillis(t),a=[];for(;s<o;)a.push(s.toFormat(i)),s=s.plus(r);return a}}var Wr;e.TimeAgoFormattedPipe=class{transform(e){return Hr.formatMsDuration((new Date).getTime()-ke.safeNumber(e))}},e.TimeAgoFormattedPipe=c([t.Pipe({name:"acuteTimeAgo",standalone:!0})],e.TimeAgoFormattedPipe),e.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":""}},e.TimingPipe=c([t.Pipe({name:"acuteTiming",standalone:!0})],e.TimingPipe),e.GoogleAnalyticsService=class{static{Wr=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=Wr.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){Ee.error("Error adding Google Analytics",e,e)}}onRouteChange(){const e=Wr.IS_PROD?"G-7D5BBK4K8X":null;this.router.events.subscribe((t=>{t instanceof r.NavigationEnd&&(gtag("config",e,{page_path:t.urlAfterRedirects}),Ee.info("Sending Google Analytics tracking for: ",t.urlAfterRedirects),Ee.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}})}},e.GoogleAnalyticsService=Wr=c([t.Injectable({providedIn:"root"}),u("design:paramtypes",[r.Router])],e.GoogleAnalyticsService);class Zr{logLevel;rethrow;constructor(e=re,t=!1){this.logLevel=e,this.rethrow=t}handleError(e,t,n,i){if(Ee.logByLevel(this.logLevel,"Graphql failed : %s : %s : Anon-%s : %j",e,t,i,n),this.rethrow)throw e}}class Gr{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){Ee.error("Failed to json stringify: %s",t),n=String(e)}return t&&Ee.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=ve.format(e,...t);return new Error(n)}static throwFormattedErr(e,...t){throw Gr.fErr(e,...t)}}class Yr extends Error{response;request;constructor(e,t){super(`${Yr.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,Yr.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Yr)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${String(e.status)})`}}const Jr=e=>e.toUpperCase(),Kr=e=>"function"==typeof e?e():e,Qr=(e,t)=>e.map(((e,n)=>[e,t[n]])),Xr=e=>{let t={};return e instanceof Headers?t=es(e):Array.isArray(e)?e.forEach((([e,n])=>{e&&void 0!==n&&(t[e]=n)})):e&&(t=e),t},es=e=>{const t={};return e.forEach(((e,n)=>{t[n]=e})),t},ts=e=>e instanceof Error?e:new Error(String(e)),ns=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,is=e=>{throw new Error(`Unhandled case: ${String(e)}`)},rs=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);function ss(e,t){if(!Boolean(e))throw new Error(t)}function os(e,t){if(!Boolean(e))throw new Error("Unexpected invariant triggered.")}const as=/\r\n|[\n\r]/g;function ls(e,t){let n=0,i=1;for(const r of e.body.matchAll(as)){if("number"==typeof r.index||os(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function cs(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+us([[`${o} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+us([[o-1+" |",u[r-1]],[`${o} |`,d],["|","^".padStart(l)],[`${o+1} |`,u[r+1]]])}function us(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 ds 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=hs(Array.isArray(s)?s:s?[s]:void 0);const d=hs(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=>ls(o,e))):null==d?void 0:d.map((e=>ls(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,ds):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"+cs((t=n.loc).source,ls(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+cs(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 hs(e){return void 0===e||0===e.length?void 0:e}function ps(e,t,n){return new ds(`Syntax Error: ${n}`,{source:e,positions:[t]})}class ms{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 fs{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 gs={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"]},ys=new Set(Object.keys(gs));function vs(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&ys.has(t)}var bs,ws,Cs,Ts;function Es(e){return 9===e||32===e}function Ss(e){return e>=48&&e<=57}function Is(e){return e>=97&&e<=122||e>=65&&e<=90}function Ns(e){return Is(e)||95===e}function Os(e){return Is(e)||Ss(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=Ds(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 Ds(e){let t=0;for(;t<e.length&&Es(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(bs||(bs={})),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"}(ws||(ws={})),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"}(Cs||(Cs={})),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"}(Ts||(Ts={}));class ks{constructor(e){const t=new fs(Ts.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!==Ts.EOF)do{if(e.next)e=e.next;else{const t=Vs(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===Ts.COMMENT);return e}}function As(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Ls(e,t){return _s(e.charCodeAt(t))&&Ms(e.charCodeAt(t+1))}function _s(e){return e>=55296&&e<=56319}function Ms(e){return e>=56320&&e<=57343}function Fs(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return Ts.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Rs(e,t,n,i,r){const s=e.line,o=1+n-e.lineStart;return new fs(t,n,i,s,o,r)}function Vs(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 Ps(e,r);case 33:return Rs(e,Ts.BANG,r,r+1);case 36:return Rs(e,Ts.DOLLAR,r,r+1);case 38:return Rs(e,Ts.AMP,r,r+1);case 40:return Rs(e,Ts.PAREN_L,r,r+1);case 41:return Rs(e,Ts.PAREN_R,r,r+1);case 46:if(46===n.charCodeAt(r+1)&&46===n.charCodeAt(r+2))return Rs(e,Ts.SPREAD,r,r+3);break;case 58:return Rs(e,Ts.COLON,r,r+1);case 61:return Rs(e,Ts.EQUALS,r,r+1);case 64:return Rs(e,Ts.AT,r,r+1);case 91:return Rs(e,Ts.BRACKET_L,r,r+1);case 93:return Rs(e,Ts.BRACKET_R,r,r+1);case 123:return Rs(e,Ts.BRACE_L,r,r+1);case 124:return Rs(e,Ts.PIPE,r,r+1);case 125:return Rs(e,Ts.BRACE_R,r,r+1);case 34:return 34===n.charCodeAt(r+1)&&34===n.charCodeAt(r+2)?Zs(e,r):Bs(e,r)}if(Ss(t)||45===t)return js(e,r,t);if(Ns(t))return Gs(e,r);throw ps(e.source,r,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":As(t)||Ls(n,r)?`Unexpected character: ${Fs(e,r)}.`:`Invalid character: ${Fs(e,r)}.`)}return Rs(e,Ts.EOF,i,i)}function Ps(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(As(e))++r;else{if(!Ls(n,r))break;r+=2}}return Rs(e,Ts.COMMENT,t,r,n.slice(t+1,r))}function js(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),Ss(s))throw ps(e.source,r,`Invalid number, unexpected digit after 0: ${Fs(e,r)}.`)}else r=zs(e,r,s),s=i.charCodeAt(r);if(46===s&&(o=!0,s=i.charCodeAt(++r),r=zs(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=zs(e,r,s),s=i.charCodeAt(r)),46===s||Ns(s))throw ps(e.source,r,`Invalid number, expected digit but got: ${Fs(e,r)}.`);return Rs(e,o?Ts.FLOAT:Ts.INT,t,r,i.slice(t,r))}function zs(e,t,n){if(!Ss(n))throw ps(e.source,t,`Invalid number, expected digit but got: ${Fs(e,t)}.`);const i=e.source.body;let r=t+1;for(;Ss(i.charCodeAt(r));)++r;return r}function Bs(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),Rs(e,Ts.STRING,t,r+1,o);if(92!==i){if(10===i||13===i)break;if(As(i))++r;else{if(!Ls(n,r))throw ps(e.source,r,`Invalid character within String: ${Fs(e,r)}.`);r+=2}}else{o+=n.slice(s,r);const t=117===n.charCodeAt(r+1)?123===n.charCodeAt(r+2)?qs(e,r):Us(e,r):Ws(e,r);o+=t.value,r+=t.size,s=r}}throw ps(e.source,r,"Unterminated string.")}function qs(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||!As(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|Hs(e),i<0)break}throw ps(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function Us(e,t){const n=e.source.body,i=$s(n,t+2);if(As(i))return{value:String.fromCodePoint(i),size:6};if(_s(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=$s(n,t+8);if(Ms(e))return{value:String.fromCodePoint(i,e),size:12}}throw ps(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function $s(e,t){return Hs(e.charCodeAt(t))<<12|Hs(e.charCodeAt(t+1))<<8|Hs(e.charCodeAt(t+2))<<4|Hs(e.charCodeAt(t+3))}function Hs(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Ws(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 ps(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Zs(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=Rs(e,Ts.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(As(i))++s;else{if(!Ls(n,s))throw ps(e.source,s,`Invalid character within String: ${Fs(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 ps(e.source,s,"Unterminated string.")}function Gs(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){if(!Os(n.charCodeAt(r)))break;++r}return Rs(e,Ts.NAME,t,r,n.slice(t,r))}const Ys=10,Js=2;function Ks(e){return Qs(e,[])}function Qs(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:Qs(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>Js)return"[Array]";const n=Math.min(Ys,e.length),i=e.length-n,r=[];for(let i=0;i<n;++i)r.push(Qs(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>Js)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+": "+Qs(n,t)));return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const Xs=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=Ks(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 eo{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||ss(!1,`Body must be a string. Received: ${Ks(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||ss(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||ss(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class to{constructor(e,t={}){const n=function(e){return Xs(e,eo)}(e)?e:new eo(e);this._lexer=new ks(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(Ts.NAME);return this.node(e,{kind:Cs.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:Cs.DOCUMENT,definitions:this.many(Ts.SOF,this.parseDefinition,Ts.EOF)})}parseDefinition(){if(this.peek(Ts.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===Ts.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 ps(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(Ts.BRACE_L))return this.node(e,{kind:Cs.OPERATION_DEFINITION,operation:bs.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(Ts.NAME)&&(n=this.parseName()),this.node(e,{kind:Cs.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(Ts.NAME);switch(e.value){case"query":return bs.QUERY;case"mutation":return bs.MUTATION;case"subscription":return bs.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(Ts.PAREN_L,this.parseVariableDefinition,Ts.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Cs.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Ts.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ts.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(Ts.DOLLAR),this.node(e,{kind:Cs.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Cs.SELECTION_SET,selections:this.many(Ts.BRACE_L,this.parseSelection,Ts.BRACE_R)})}parseSelection(){return this.peek(Ts.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,i;return this.expectOptionalToken(Ts.COLON)?(n=t,i=this.parseName()):i=t,this.node(e,{kind:Cs.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ts.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Ts.PAREN_L,t,Ts.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(Ts.COLON),this.node(t,{kind:Cs.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(Ts.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(Ts.NAME)?this.node(e,{kind:Cs.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:Cs.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:Cs.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:Cs.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 Ts.BRACKET_L:return this.parseList(e);case Ts.BRACE_L:return this.parseObject(e);case Ts.INT:return this.advanceLexer(),this.node(t,{kind:Cs.INT,value:t.value});case Ts.FLOAT:return this.advanceLexer(),this.node(t,{kind:Cs.FLOAT,value:t.value});case Ts.STRING:case Ts.BLOCK_STRING:return this.parseStringLiteral();case Ts.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:Cs.BOOLEAN,value:!0});case"false":return this.node(t,{kind:Cs.BOOLEAN,value:!1});case"null":return this.node(t,{kind:Cs.NULL});default:return this.node(t,{kind:Cs.ENUM,value:t.value})}case Ts.DOLLAR:if(e){if(this.expectToken(Ts.DOLLAR),this._lexer.token.kind===Ts.NAME){const e=this._lexer.token.value;throw ps(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:Cs.STRING,value:e.value,block:e.kind===Ts.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:Cs.LIST,values:this.any(Ts.BRACKET_L,(()=>this.parseValueLiteral(e)),Ts.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:Cs.OBJECT,fields:this.any(Ts.BRACE_L,(()=>this.parseObjectField(e)),Ts.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(Ts.COLON),this.node(t,{kind:Cs.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(Ts.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(Ts.AT),this.node(t,{kind:Cs.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(Ts.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(Ts.BRACKET_R),t=this.node(e,{kind:Cs.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(Ts.BANG)?this.node(e,{kind:Cs.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:Cs.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Ts.STRING)||this.peek(Ts.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(Ts.BRACE_L,this.parseOperationTypeDefinition,Ts.BRACE_R);return this.node(e,{kind:Cs.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(Ts.COLON);const n=this.parseNamedType();return this.node(e,{kind:Cs.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:Cs.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:Cs.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Ts.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Ts.BRACE_L,this.parseFieldDefinition,Ts.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Ts.COLON);const r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:Cs.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(Ts.PAREN_L,this.parseInputValueDef,Ts.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Ts.COLON);const i=this.parseTypeReference();let r;this.expectOptionalToken(Ts.EQUALS)&&(r=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:Cs.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:Cs.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:Cs.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(Ts.EQUALS)?this.delimitedMany(Ts.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:Cs.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(Ts.BRACE_L,this.parseEnumValueDefinition,Ts.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:Cs.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 ps(this._lexer.source,this._lexer.token.start,`${no(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:Cs.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(Ts.BRACE_L,this.parseInputValueDef,Ts.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===Ts.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(Ts.BRACE_L,this.parseOperationTypeDefinition,Ts.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:Cs.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:Cs.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:Cs.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:Cs.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:Cs.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:Cs.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:Cs.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Ts.AT);const n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:Cs.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(Ts.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(ws,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new ms(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 ps(this._lexer.source,t.start,`Expected ${io(e)}, found ${no(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==Ts.NAME||t.value!==e)throw ps(this._lexer.source,t.start,`Expected "${e}", found ${no(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===Ts.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return ps(this._lexer.source,t.start,`Unexpected ${no(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!==Ts.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw ps(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function no(e){const t=e.value;return io(e.kind)+(null!=t?` "${t}"`:"")}function io(e){return function(e){return e===Ts.BANG||e===Ts.DOLLAR||e===Ts.AMP||e===Ts.PAREN_L||e===Ts.PAREN_R||e===Ts.SPREAD||e===Ts.COLON||e===Ts.EQUALS||e===Ts.AT||e===Ts.BRACKET_L||e===Ts.BRACKET_R||e===Ts.BRACE_L||e===Ts.PIPE||e===Ts.BRACE_R}(e)?`"${e}"`:e}const ro=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function so(e){return oo[e.charCodeAt(0)]}const oo=["\\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"],ao=Object.freeze({});function lo(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 co(e){return function(e,t,n=gs){const i=new Map;for(const e of Object.values(Cs))i.set(e,lo(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;vs(d)||ss(!1,`Invalid AST Node: ${Ks(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===ao)break;if(!1===v){if(!e){h.pop();continue}}else if(void 0!==v&&(u.push([s,v]),!e)){if(!vs(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,uo)}const uo={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ho(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=mo("(",ho(e.variableDefinitions,", "),")"),n=ho([e.operation,ho([e.name,t]),ho(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+mo(" = ",n)+mo(" ",ho(i," "))},SelectionSet:{leave:({selections:e})=>po(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:r}){const s=mo("",e,": ")+t;let o=s+mo("(",ho(n,", "),")");return o.length>80&&(o=s+mo("(\n",fo(ho(n,"\n")),"\n)")),ho([o,ho(i," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+mo(" ",ho(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>ho(["...",mo("on ",e),ho(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:r})=>`fragment ${e}${mo("(",ho(n,", "),")")} on ${t} ${mo("",ho(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||Es(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&&Es(e.charCodeAt(0));return(u&&!h||s)&&(d+="\n"),d+=n,(u||c)&&(d+="\n"),'"""'+d+'"""'}(e):`"${e.replace(ro,so)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ho(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ho(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+mo("(",ho(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>mo("",e,"\n")+ho(["schema",ho(t," "),po(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>mo("",e,"\n")+ho(["scalar",t,ho(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>mo("",e,"\n")+ho(["type",t,mo("implements ",ho(n," & ")),ho(i," "),po(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:r})=>mo("",e,"\n")+t+(go(n)?mo("(\n",fo(ho(n,"\n")),"\n)"):mo("(",ho(n,", "),")"))+": "+i+mo(" ",ho(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:r})=>mo("",e,"\n")+ho([t+": "+n,mo("= ",i),ho(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>mo("",e,"\n")+ho(["interface",t,mo("implements ",ho(n," & ")),ho(i," "),po(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>mo("",e,"\n")+ho(["union",t,ho(n," "),mo("= ",ho(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>mo("",e,"\n")+ho(["enum",t,ho(n," "),po(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>mo("",e,"\n")+ho([t,ho(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>mo("",e,"\n")+ho(["input",t,ho(n," "),po(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:r})=>mo("",e,"\n")+"directive @"+t+(go(n)?mo("(\n",fo(ho(n,"\n")),"\n)"):mo("(",ho(n,", "),")"))+(i?" repeatable":"")+" on "+ho(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ho(["extend schema",ho(e," "),po(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ho(["extend scalar",e,ho(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>ho(["extend type",e,mo("implements ",ho(t," & ")),ho(n," "),po(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>ho(["extend interface",e,mo("implements ",ho(t," & ")),ho(n," "),po(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>ho(["extend union",e,ho(t," "),mo("= ",ho(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>ho(["extend enum",e,ho(t," "),po(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>ho(["extend input",e,ho(t," "),po(n)]," ")}};function ho(e,t=""){var n;return null!==(n=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==n?n:""}function po(e){return mo("{\n",fo(ho(e,"\n")),"\n}")}function mo(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function fo(e){return mo(" ",e.replace(/\n/g,"\n "))}function go(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}const yo="Accept",vo="Content-Type",bo="application/json",wo="application/graphql-response+json",Co=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),To=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(Eo)};if(rs(e))return{_tag:"Single",executionResult:Eo(e)};throw new Error(`Invalid execution result: result is not object or array. \nGot:\n${String(e)}`)}catch(e){return e}},Eo=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(!rs(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(!rs(e.data)&&null!==e.data)throw new Error("Invalid execution result: data is not plain object");n=e.data}if("extensions"in e){if(!rs(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");i=e.extensions}return{data:n,errors:t,extensions:i}},So=e=>Array.isArray(e.errors)?e.errors.length>0:Boolean(e.errors),Io=e=>"object"==typeof e&&null!==e&&"kind"in e&&e.kind===Cs.OPERATION_DEFINITION,No=(e,t)=>{const n="string"==typeof e?e:co(e);let i,r=!1;if(t)return{expression:n,isMutation:r,operationName:i};const s=(e=>{try{const t=e();return ns(t)?t.catch((e=>ts(e))):t}catch(e){return ts(e)}})((()=>{return"string"==typeof e?new to(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(Io);return 1===n.length&&(t=n[0].name?.value),t})(s),r=(e=>{let t=!1;const n=e.definitions.filter(Io);return 1===n.length&&(t=n[0].operation===bs.MUTATION),t})(s),{expression:n,operationName:i,isMutation:r})},Oo=JSON,xo=async e=>{const t={...e,method:"Single"===e.request._tag?e.request.document.isMutation?"POST":Jr(e.method??"post"):e.request.hasMutations?"POST":Jr(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},n=Ao(t.method),i=await n(t);if(!i.ok)return new Yr({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 ko(i,e.fetchOptions.jsonSerializer??Oo);if(r instanceof Error)throw r;const s={status:i.status,headers:i.headers};if((e=>"Batch"===e._tag?e.executionResults.some(So):So(e.executionResult))(r)&&"none"===t.fetchOptions.errorPolicy){const t="Batch"===r._tag?{...r.executionResults,...s}:{...r.executionResult,...s};return new Yr(t,{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(r._tag){case"Single":return{...s,...Do(t)(r.executionResult)};case"Batch":return{...s,data:r.executionResults.map(Do(t))};default:is(r)}},Do=e=>t=>({extensions:t.extensions,data:t.data,errors:"all"===e.fetchOptions.errorPolicy?t.errors:void 0}),ko=async(e,t)=>{const n=e.headers.get(vo),i=await e.text();return n&&(e=>{const t=e.toLowerCase();return t.includes(wo)||t.includes(bo)})(n)?To(t.parse(i)):To(i)},Ao=e=>async t=>{const n=new Headers(t.headers);let i,r=null;if(n.has(yo)||n.set(yo,[wo,bo].join(", ")),"POST"===e){i=(t.fetchOptions.jsonSerializer??Oo).stringify(Lo(t)),"string"!=typeof i||n.has(vo)||n.set(vo,bo)}else r=_o(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)},Lo=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 Qr(e.request.query,e.request.variables??[]).map((([e,t])=>({query:e,variables:t})));default:throw is(e.request)}},_o=e=>{const t=e.fetchOptions.jsonSerializer??Oo,n=new URLSearchParams;switch(e.request._tag){case"Single":return n.append("query",Co(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(Co),s=Qr(r,i).map((([e,t])=>({query:e,variables:t})));return n.append("query",t.stringify(s)),n}default:throw is(e.request)}};class Mo{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=No(r.query,u),m=await xo({url:h,request:{_tag:"Single",document:p,variables:r.variables},headers:{...Xr(Kr(s)),...Xr(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=Fo(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=No(r.document,u),m=await xo({url:h,request:{_tag:"Single",document:p,variables:r.variables},headers:{...Xr(Kr(s)),...Xr(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})=>No(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:{...Xr(Kr(i)),...Xr(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 Fo=(e,t,n)=>e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0};var Ro,Vo;!function(e){e.TokenRequired="TokenRequired",e.AlwaysAnonymous="AlwaysAnonymous",e.AnonymousIfNoTokenAvailable="AnonymousIfNoTokenAvailable"}(Ro||(Ro={}));class Po{queryProvider;endpointProvider;jwtTokenProvider;errorHandler;clientCache=new Map;noAuthClient;cachedEndpoint;constructor(e,t,n,i=new Zr){this.queryProvider=e,this.endpointProvider=t,this.jwtTokenProvider=n,this.errorHandler=i,ye.notNullOrUndefined(e,"queryProvider"),ye.notNullOrUndefined(t,"endpointProvider"),ye.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||Ee.warn("Could not find requested query : %s",e),t}createAnonymousApi(){Ee.info("Creating anonymous GraphQLClient");return new Mo(this.cachedEndpoint,{errorPolicy:"all"})}fetchApi(e){let t=null;const n=e===Ro.AlwaysAnonymous?null:ve.trimToNull(this?.jwtTokenProvider?.fetchJwtToken());if(e===Ro.TokenRequired&&!n)throw Gr.fErr("No token provided, auth style is TokenRequired");if(this.checkIfEndpointChanged(),Ee.info("Fetch auth client %s",ve.obscure(ve.trimToEmpty(n),2,2)),n){if(Ee.debug("Fetching authd api"),this.clientCache.has(n))Ee.debug("Fetching apollo client from cache");else{const e=this.createAuthApi(n);Ee.debug("Setting cache for this token to %s",e),this.clientCache.set(n,e)}t=this.clientCache.get(n)}else Ee.debug("Fetching unauthd ap"),this.noAuthClient?Ee.debug("Fetching anonymous client from cache"):this.noAuthClient=this.createAnonymousApi(),t=this.noAuthClient;return Ee.debug("FetchApi returning %s",t),t}createAuthApi(e){Ee.info("Creating a new authenticated api for %s : %s",this.cachedEndpoint,ve.obscure(e,2,2)),ye.notNullUndefinedOrOnlyWhitespaceString(e,"jwtToken"),Ee.info("Creating auth apollo client %s",ve.obscure(e,2,2));return new Mo(this.cachedEndpoint,{errorPolicy:"all",headers:{authorization:`Bearer ${e}`}})}checkIfEndpointChanged(){const e=this.endpointProvider.fetchGraphqlEndpoint();e!==this.cachedEndpoint&&(Ee.info("Endpoint changed from %s to %s - clearing apollo caches"),this.clientCache=new Map,this.noAuthClient=null,this.cachedEndpoint=e)}clearCaches(){Ee.info("Clearing cached apollo"),this.clientCache=new Map,this.noAuthClient=null,this.cachedEndpoint=null}static extractSingleValueFromResponse(e){if(!e)throw Gr.fErr("Could not find response in : %j",e);const t=Object.keys(e);1!==t.length&&Gr.throwFormattedErr("Unexpected number of keys : %s : %j",t.length,t);return e[t[0]]}async executeQuery(e,t,n=Ro.TokenRequired){let i=null;try{const r=this.fetchApi(n);if(r){Ee.debug("API fetched for %s, fetching gql",e);const n=await this.fetchQueryText(e);Ee.debug("API and GQL fetched for %s - running %s %s",e,n,r);const s=await r.request(n,t);i=Po.extractSingleValueFromResponse(s),Ee.silly("Query returned: %j",i)}else Gr.throwFormattedErr("Cannot run - no api fetched")}catch(i){Ee.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=Ro.TokenRequired){Ee.info("Mutate : %s : %j",e,t);let i=null;const r=this.fetchApi(n);try{if(r){const n=await this.fetchQueryText(e);Ee.debug("API and GQL fetched for %s - running %s %s",e,n,r);const s=await r.request(n,t);i=Po.extractSingleValueFromResponse(s),Ee.silly("Mutate returned: %j",i)}else Gr.throwFormattedErr("Cannot run - no api fetched")}catch(i){this.errorHandler.handleError(i,e,t,n)}return i}}function jo(){return"undefined"!=typeof window&&void 0!==window.localStorage?window.localStorage:null}e.GraphqlQueryService=class{graphqlRatchet;dialogService;messageService;constructor(e,t,n){this.graphqlRatchet=e,this.dialogService=t,this.messageService=n}async executeQuery(e,t,n=Ro.TokenRequired){let i=null;this.messageService.add({severity:"info",summary:"Running query",detail:e,life:3e3}),Ee.info("eq: %j -: %s --: %s ---: %j",e,t);try{i=await this.graphqlRatchet.executeQuery(e,t,n)}catch(e){Ee.error("Fail : %s",e)}finally{this.messageService.clear()}return i}async executeQueryWithBlock(t,n,i,r=Ro.TokenRequired){let s=null;this.messageService.add({severity:"info",summary:"Running query",detail:n,life:3e3}),Ee.info("eqb: %j -: %s --: %s ---: %j",t,n,i);try{s=await e.BlockUiComponent.runPromiseWithUiBlock(this.dialogService,this.graphqlRatchet.executeQuery(n,i,r),t)}catch(e){Ee.error("Fail : %s",e)}finally{this.messageService.clear()}return s}async executeMutate(e,t,n=Ro.TokenRequired){let i=null;this.messageService.add({severity:"info",summary:"Running query",detail:e,life:3e3}),Ee.info("eq: %j -: %s --: %s ---: %j",e,t);try{i=await this.graphqlRatchet.executeMutate(e,t,n)}catch(e){Ee.error("Fail : %s",e)}finally{this.messageService.clear()}return i}async executeMutateWithBlock(t,n,i,r=Ro.TokenRequired){let s=null;this.messageService.add({severity:"info",summary:"Running query",detail:n,life:3e3});try{s=await e.BlockUiComponent.runPromiseWithUiBlock(this.dialogService,this.graphqlRatchet.executeMutate(n,i,r),t)}catch(e){Ee.error("Fail : %s",e)}finally{this.messageService.clear()}return s}},e.GraphqlQueryService=c([t.Injectable({providedIn:"root"}),u("design:paramtypes",[Po,ne,_])],e.GraphqlQueryService),e.LocalStorageService=class{static{Vo=this}static APP_NAME="Scribe";get storageReady(){return!!jo()}clear(){this.update({})}update(e){if(this.storageReady){const t=e||{},n=JSON.stringify(t);return Ee.info("Updating storage to %s",n),localStorage.setItem(Vo.APP_NAME,n),t}return Ee.info("Skipping update - storage not ready : %j",e),{}}fetch(){if(this.storageReady){const e=localStorage.getItem(Vo.APP_NAME)||"{}";return JSON.parse(e)}return Ee.info("Skipping fetch - storage not ready"),{}}},e.LocalStorageService=Vo=c([t.Injectable({providedIn:"root"})],e.LocalStorageService),e.WindowRefService=class{nativeWindow(){return function(){if("undefined"!=typeof window)return window;throw new Error("Cannot find window object - running in SSR?")}()}},e.WindowRefService=c([t.Injectable({providedIn:"root"})],e.WindowRefService),e.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"}}},e.storageFinder=jo}));
7
- //# sourceMappingURL=my-angular-library.umd.js.map