@bino-bi/bn-template-engine 1.0.0-alpha.2 → 1.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/{p-a95ccc16.entry.js → p-1970906d.entry.js} +1 -1
- package/dist/bn-template-engine/{p-0ca8dc17.entry.js → p-1dbd339c.entry.js} +1 -1
- package/dist/bn-template-engine/p-2e68cf09.entry.js +1 -0
- package/dist/bn-template-engine/{p-bc59ea5c.entry.js → p-31cc6a2d.entry.js} +1 -1
- package/dist/bn-template-engine/{p--PSoPbDM.js → p-8tsCnxIz.js} +1 -1
- package/dist/bn-template-engine/{p-dd9dd407.entry.js → p-997b2fe4.entry.js} +1 -1
- package/dist/bn-template-engine/{p-DgfL-ffj.js → p-B4ySv9KQ.js} +1 -1
- package/dist/bn-template-engine/{p-DVo6aZUE.js → p-BL8gyUwE.js} +1 -1
- package/dist/bn-template-engine/{p-CvXqez4D.js → p-C0yAPzJz.js} +1 -1
- package/dist/bn-template-engine/p-DtdQCMzj.js +1 -0
- package/dist/bn-template-engine/{p-e102a490.entry.js → p-a90f1cbe.entry.js} +1 -1
- package/dist/bn-template-engine/{p-35638ad0.entry.js → p-d7f0cbaf.entry.js} +1 -1
- package/dist/bn-template-engine/{p-1d9a3be9.entry.js → p-dfb61aa5.entry.js} +1 -1
- package/dist/bn-template-engine/{p-f89e55c6.entry.js → p-ece17f84.entry.js} +1 -1
- package/dist/bn-template-engine/p-fd427179.entry.js +1 -0
- package/dist/bn-template-engine/p-sqjrku2z.js +1 -0
- package/dist/cjs/{DataFormatDigits-CbIVfGEH.js → DataFormatDigits-DAmZzqbD.js} +1 -1
- package/dist/cjs/{DateStringFactory-CfkXYAMN.js → DateStringFactory-CcluhpGI.js} +1 -1
- package/dist/cjs/{Order-DtpbD8mQ.js → Order-BKoDS21t.js} +28 -0
- package/dist/cjs/{SVGVariancesStyleGroup-D-rTWlDo.js → SVGVariancesStyleGroup-DYYAU-81.js} +1 -1
- package/dist/cjs/{StringAdapter-ByCHdlDO.js → StringAdapter-Bneo8T4k.js} +1 -1
- package/dist/cjs/bn-body_4.cjs.entry.js +4 -4
- package/dist/cjs/bn-chart-structure.cjs.entry.js +3 -3
- package/dist/cjs/bn-chart-time.cjs.entry.js +3 -3
- package/dist/cjs/bn-context_5.cjs.entry.js +115 -44
- package/dist/cjs/bn-grid.cjs.entry.js +3 -3
- package/dist/cjs/bn-image.cjs.entry.js +3 -3
- package/dist/cjs/bn-template-engine.cjs.js +1 -1
- package/dist/cjs/bn-text.cjs.entry.js +3 -3
- package/dist/cjs/bn-tree.cjs.entry.js +3 -3
- package/dist/cjs/ibcs-chart-structure.cjs.entry.js +4 -4
- package/dist/cjs/ibcs-chart-time.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{withStyled-BBtMesx3.js → withStyled-CW30Bh6c.js} +6 -2
- package/dist/collection/components/bn-table/bn-table.js +63 -12
- package/dist/collection/components/bn-table/ibcs-table.css +7 -5
- package/dist/collection/components/bn-table/ibcs-table.js +22 -1
- package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +56 -25
- package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -1
- package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +12 -3
- package/dist/collection/components/bn-table/utils/helper/ColumnStatistics.js +9 -1
- package/dist/collection/utils/constants.js +27 -0
- package/dist/collection/utils/validate.js +4 -1
- package/dist/components/DataFormatDigits.js +1 -1
- package/dist/components/DateStringFactory.js +1 -1
- package/dist/components/Order.js +1 -1
- package/dist/components/SVGVariancesStyleGroup.js +1 -1
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-title2.js +1 -1
- package/dist/components/ibcs-chart-structure2.js +1 -1
- package/dist/components/ibcs-chart-time2.js +1 -1
- package/dist/components/ibcs-table2.js +1 -1
- package/dist/components/ibcs-title2.js +1 -1
- package/dist/components/ibcsRuleSet.js +1 -1
- package/dist/components/validate.js +1 -1
- package/dist/esm/{DataFormatDigits-DYdbRX-1.js → DataFormatDigits--qIbKvXa.js} +1 -1
- package/dist/esm/{DateStringFactory-DRcbojUT.js → DateStringFactory-XWdUjsn8.js} +1 -1
- package/dist/esm/{Order-DdexOqTs.js → Order-sqjrku2z.js} +28 -1
- package/dist/esm/{SVGVariancesStyleGroup-D0Cwprv1.js → SVGVariancesStyleGroup-ibg3sLjM.js} +1 -1
- package/dist/esm/{StringAdapter-CTL-Dvzp.js → StringAdapter-BCLJpQQ8.js} +1 -1
- package/dist/esm/bn-body_4.entry.js +4 -4
- package/dist/esm/bn-chart-structure.entry.js +3 -3
- package/dist/esm/bn-chart-time.entry.js +3 -3
- package/dist/esm/bn-context_5.entry.js +115 -44
- package/dist/esm/bn-grid.entry.js +3 -3
- package/dist/esm/bn-image.entry.js +3 -3
- package/dist/esm/bn-template-engine.js +1 -1
- package/dist/esm/bn-text.entry.js +3 -3
- package/dist/esm/bn-tree.entry.js +3 -3
- package/dist/esm/ibcs-chart-structure.entry.js +4 -4
- package/dist/esm/ibcs-chart-time.entry.js +5 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{withStyled-DCipbf2O.js → withStyled-D1fAWJ3g.js} +6 -3
- package/dist/types/components/bn-table/bn-table.d.ts +11 -7
- package/dist/types/components/bn-table/ibcs-table.d.ts +1 -0
- package/dist/types/components/bn-table/utils/elements/Cell.d.ts +1 -0
- package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +3 -0
- package/dist/types/components.d.ts +22 -2
- package/dist/types/utils/constants.d.ts +15 -0
- package/dist/types/utils/validate.d.ts +1 -0
- package/package.json +1 -1
- package/dist/bn-template-engine/p-60a7fc59.entry.js +0 -1
- package/dist/bn-template-engine/p-DdexOqTs.js +0 -1
- package/dist/bn-template-engine/p-DyRaC0MB.js +0 -1
- package/dist/bn-template-engine/p-d279b578.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t,e,n,r,s,i,u,a,o,c,l,h,d,m;!function(t){t.ALL="all",t.META="meta"}(t||(t={})),function(t){t.CURRENCY="currency",t.VOLUME="volume"}(e||(e={})),function(t){t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(n||(n={})),function(t){t.POS="pos",t.NEG="neg",t.NEU="neu"}(r||(r={})),function(t){t.DECIMAL="decimal",t.PERCENT="percent"}(s||(s={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}(i||(i={})),function(t){t.INF="inf",t.W100="w100",t.W50="w50",t.W25="w25",t.W20="w20",t.W15="w15",t.W10="w10",t.W5="w5"}(u||(u={})),function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex"}(a||(a={})),function(t){t.SMART="smart",t.LONG="long",t.SHORT="short"}(o||(o={})),function(t){t.COLUMN="column",t.LINE="line",t.WATERFALL="waterfall"}(c||(c={})),function(t){t.BAR="bar",t.LINE="line",t.AUTO="auto"}(l||(l={})),function(t){t.SCENARIO="scenario",t.CATEGORY="category",t.SUBCATEGORY="subcategory",t.ROWGROUP="rowgroup"}(h||(h={})),function(t){t.ABSOLUTE="absolute",t.RELATIVE="relative",t.ABSOLUTE_RELATIVE="absolute-relative"}(d||(d={})),function(t){t.ASC="asc",t.DESC="desc",t.DATASET="dataset"}(m||(m={}));class f extends Error{}class y extends f{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class g extends f{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class w extends f{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class p extends f{}class M extends f{constructor(t){super(`Invalid unit ${t}`)}}class S extends f{}class k extends f{constructor(){super("Zone is an abstract class")}}const b="numeric",N="short",T="long",v={year:b,month:b,day:b},E={year:b,month:N,day:b},O={year:b,month:N,day:b,weekday:N},D={year:b,month:T,day:b},I={year:b,month:T,day:b,weekday:T},$={hour:b,minute:b},x={hour:b,minute:b,second:b},F={hour:b,minute:b,second:b,timeZoneName:N},Z={hour:b,minute:b,second:b,timeZoneName:T},L={hour:b,minute:b,hourCycle:"h23"},W={hour:b,minute:b,second:b,hourCycle:"h23"},C={hour:b,minute:b,second:b,hourCycle:"h23",timeZoneName:N},A={hour:b,minute:b,second:b,hourCycle:"h23",timeZoneName:T},_={year:b,month:b,day:b,hour:b,minute:b},j={year:b,month:b,day:b,hour:b,minute:b,second:b},q={year:b,month:N,day:b,hour:b,minute:b},H={year:b,month:N,day:b,hour:b,minute:b,second:b},z={year:b,month:N,day:b,weekday:N,hour:b,minute:b},R={year:b,month:T,day:b,hour:b,minute:b,timeZoneName:N},U={year:b,month:T,day:b,hour:b,minute:b,second:b,timeZoneName:N},J={year:b,month:T,day:b,weekday:T,hour:b,minute:b,timeZoneName:T},G={year:b,month:T,day:b,weekday:T,hour:b,minute:b,second:b,timeZoneName:T};class P{get type(){throw new k}get name(){throw new k}get ianaName(){return this.name}get isUniversal(){throw new k}offsetName(t,e){throw new k}formatOffset(t,e){throw new k}offset(t){throw new k}equals(t){throw new k}get isValid(){throw new k}}let Y=null;class V extends P{static get instance(){return null===Y&&(Y=new V),Y}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return ye(t,e,n)}formatOffset(t,e){return Me(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}const B=new Map,Q={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},K=new Map;class X extends P{static create(t){let e=K.get(t);return void 0===e&&K.set(t,e=new X(t)),e}static resetCache(){K.clear(),B.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=X.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return ye(t,e,n,this.name)}formatOffset(t,e){return Me(this.offset(t),e)}offset(t){if(!this.valid)return NaN;const e=new Date(t);if(isNaN(e))return NaN;const n=function(t){let e=B.get(t);return void 0===e&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),B.set(t,e)),e}(this.name);let[r,s,i,u,a,o,c]=n.formatToParts?function(t,e){const n=t.formatToParts(e),r=[];for(let t=0;t<n.length;t++){const{type:e,value:s}=n[t],i=Q[e];"era"===e?r[i]=s:Yt(i)||(r[i]=parseInt(s,10))}return r}(n,e):function(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,u,a,o,c,l]=r;return[u,s,i,a,o,c,l]}(n,e);"BC"===u&&(r=1-Math.abs(r));let l=+e;const h=l%1e3;return l-=h>=0?h:1e3+h,(he({year:r,month:s,day:i,hour:24===a?0:a,minute:o,second:c,millisecond:0})-l)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let tt={};const et=new Map;function nt(t,e={}){const n=JSON.stringify([t,e]);let r=et.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(t,e),et.set(n,r)),r}const rt=new Map,st=new Map;let it=null;const ut=new Map;function at(t){let e=ut.get(t);return void 0===e&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),ut.set(t,e)),e}const ot=new Map;function ct(t,e,n,r){const s=t.listingMode();return"error"===s?null:"en"===s?n(e):r(e)}class lt{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...i}=n;if(!e||Object.keys(i).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t,e={}){const n=JSON.stringify([t,e]);let r=rt.get(n);return void 0===r&&(r=new Intl.NumberFormat(t,e),rt.set(n,r)),r}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return re(this.floor?Math.floor(t):ae(t,3),this.padTo)}}class ht{constructor(t,e,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&X.create(n).valid?(r=n,this.dt=t):(r="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=nt(e,s)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class dt{constructor(t,e,n){this.opts={style:"long",...n},!e&&Qt()&&(this.rtf=function(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=st.get(s);return void 0===i&&(i=new Intl.RelativeTimeFormat(t,e),st.set(s,i)),i}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n="always",r=!1){const s={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."]},i=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&i){const n="days"===t;switch(e){case 1:return n?"tomorrow":`next ${s[t][0]}`;case-1:return n?"yesterday":`last ${s[t][0]}`;case 0:return n?"today":`this ${s[t][0]}`}}const u=Object.is(e,-0)||e<0,a=Math.abs(e),o=1===a,c=s[t],l=r?o?c[1]:c[2]||c[1]:o?s[t][0]:t;return u?`${a} ${l} ago`:`in ${a} ${l}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}const mt={firstDay:1,minimalDays:4,weekend:[6,7]};class ft{static fromOpts(t){return ft.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,n,r,s=!1){const i=t||Ft.defaultLocale,u=i||(s?"en-US":it||(it=(new Intl.DateTimeFormat).resolvedOptions().locale,it)),a=e||Ft.defaultNumberingSystem,o=n||Ft.defaultOutputCalendar,c=ee(r)||Ft.defaultWeekSettings;return new ft(u,a,o,c,i)}static resetCache(){it=null,et.clear(),rt.clear(),st.clear(),ut.clear(),ot.clear()}static fromObject({locale:t,numberingSystem:e,outputCalendar:n,weekSettings:r}={}){return ft.create(t,e,n,r)}constructor(t,e,n,r,s){const[i,u,a]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,r;try{e=nt(t).resolvedOptions(),r=t}catch(s){const i=t.substring(0,n);e=nt(i).resolvedOptions(),r=i}const{numberingSystem:s,calendar:i}=e;return[r,s,i]}}(t);this.locale=i,this.numberingSystem=e||u||null,this.outputCalendar=n||a||null,this.weekSettings=r,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===at(t.locale).numberingSystem)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?ft.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,ee(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return ct(this,t,Te,(()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),r=(e&=!n)?{month:t,day:"numeric"}:{month:t},s=e?"format":"standalone";return this.monthsCache[s][t]||(this.monthsCache[s][t]=function(t){const e=[];for(let n=1;n<=12;n++){const r=Or.utc(2009,n,1);e.push(t(r))}return e}(n?t=>this.dtFormatter(t,r).format():t=>this.extract(t,r,"month"))),this.monthsCache[s][t]}))}weekdays(t,e=!1){return ct(this,t,De,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=function(t){const e=[];for(let n=1;n<=7;n++){const r=Or.utc(2016,11,13+n);e.push(t(r))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[r][t]}))}meridiems(){return ct(this,void 0,(()=>Ie),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Or.utc(2016,11,13,9),Or.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return ct(this,t,Ze,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[Or.utc(-40,1,1),Or.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const r=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return r?r.value:null}numberFormatter(t={}){return new lt(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new ht(t,this.intl,e)}relFormatter(t={}){return new dt(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const n=JSON.stringify([t,e]);let r=tt[n];return r||(r=new Intl.ListFormat(t,e),tt[n]=r),r}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||at(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Kt()?function(t){let e=ot.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...mt,...e}),ot.set(t,e)}return e}(this.locale):mt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let yt=null;class gt extends P{static get utcInstance(){return null===yt&&(yt=new gt(0)),yt}static instance(t){return 0===t?gt.utcInstance:new gt(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new gt(ge(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Me(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Me(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return Me(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class wt extends P{constructor(t){super(),this.zoneName=t}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 pt(t,e){if(Yt(t)||null===t)return e;if(t instanceof P)return t;if("string"==typeof t){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?V.instance:"utc"===n||"gmt"===n?gt.utcInstance:gt.parseSpecifier(n)||X.create(t)}return Vt(t)?gt.instance(t):"object"==typeof t&&"offset"in t&&"function"==typeof t.offset?t:new wt(t)}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"},St={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]},kt=Mt.hanidec.replace(/[\[|\]]/g,"").split(""),bt=new Map;function Nt({numberingSystem:t},e=""){const n=t||"latn";let r=bt.get(n);void 0===r&&(r=new Map,bt.set(n,r));let s=r.get(e);return void 0===s&&(s=new RegExp(`${Mt[n]}${e}`),r.set(e,s)),s}let Tt,vt=()=>Date.now(),Et="system",Ot=null,Dt=null,It=null,$t=60,xt=null;class Ft{static get now(){return vt}static set now(t){vt=t}static set defaultZone(t){Et=t}static get defaultZone(){return pt(Et,V.instance)}static get defaultLocale(){return Ot}static set defaultLocale(t){Ot=t}static get defaultNumberingSystem(){return Dt}static set defaultNumberingSystem(t){Dt=t}static get defaultOutputCalendar(){return It}static set defaultOutputCalendar(t){It=t}static get defaultWeekSettings(){return xt}static set defaultWeekSettings(t){xt=ee(t)}static get twoDigitCutoffYear(){return $t}static set twoDigitCutoffYear(t){$t=t%100}static get throwOnInvalid(){return Tt}static set throwOnInvalid(t){Tt=t}static resetCaches(){ft.resetCache(),X.resetCache(),Or.resetCache(),bt.clear()}}class Zt{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Lt=[0,31,59,90,120,151,181,212,243,273,304,334],Wt=[0,31,60,91,121,152,182,213,244,274,305,335];function Ct(t,e){return new Zt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function At(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function _t(t,e,n){return n+(oe(t)?Wt:Lt)[e-1]}function jt(t,e){const n=oe(t)?Wt:Lt,r=n.findIndex((t=>t<e));return{month:r+1,day:e-n[r]}}function qt(t,e){return(t-e+7)%7+1}function Ht(t,e=4,n=1){const{year:r,month:s,day:i}=t,u=_t(r,s,i),a=qt(At(r,s,i),n);let o,c=Math.floor((u-a+14-e)/7);return c<1?(o=r-1,c=me(o,e,n)):c>me(r,e,n)?(o=r+1,c=1):o=r,{weekYear:o,weekNumber:c,weekday:a,...Se(t)}}function zt(t,e=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=t,u=qt(At(r,1,e),n),a=ce(r);let o,c=7*s+i-u-7+e;c<1?(o=r-1,c+=ce(o)):c>a?(o=r+1,c-=ce(r)):o=r;const{month:l,day:h}=jt(o,c);return{year:o,month:l,day:h,...Se(t)}}function Rt(t){const{year:e,month:n,day:r}=t;return{year:e,ordinal:_t(e,n,r),...Se(t)}}function Ut(t){const{year:e,ordinal:n}=t,{month:r,day:s}=jt(e,n);return{year:e,month:r,day:s,...Se(t)}}function Jt(t,e){if(!Yt(t.localWeekday)||!Yt(t.localWeekNumber)||!Yt(t.localWeekYear)){if(!Yt(t.weekday)||!Yt(t.weekNumber)||!Yt(t.weekYear))throw new p("Cannot mix locale-based week fields with ISO-based week fields");return Yt(t.localWeekday)||(t.weekday=t.localWeekday),Yt(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Yt(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Gt(t){const e=Bt(t.year),n=ne(t.month,1,12),r=ne(t.day,1,le(t.year,t.month));return e?n?!r&&Ct("day",t.day):Ct("month",t.month):Ct("year",t.year)}function Pt(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=ne(e,0,23)||24===e&&0===n&&0===r&&0===s,u=ne(n,0,59),a=ne(r,0,59),o=ne(s,0,999);return i?u?a?!o&&Ct("millisecond",s):Ct("second",r):Ct("minute",n):Ct("hour",e)}function Yt(t){return void 0===t}function Vt(t){return"number"==typeof t}function Bt(t){return"number"==typeof t&&t%1==0}function Qt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function Kt(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function Xt(t,e,n){if(0!==t.length)return t.reduce(((t,r)=>{const s=[e(r),r];return t&&n(t[0],s[0])===t[0]?t:s}),null)[1]}function te(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ee(t){if(null==t)return null;if("object"!=typeof t)throw new S("Week settings must be an object");if(!ne(t.firstDay,1,7)||!ne(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!ne(t,1,7))))throw new S("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function ne(t,e,n){return Bt(t)&&t>=e&&t<=n}function re(t,e=2){let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function se(t){return Yt(t)||null===t||""===t?void 0:parseInt(t,10)}function ie(t){return Yt(t)||null===t||""===t?void 0:parseFloat(t)}function ue(t){if(!Yt(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function ae(t,e,n="round"){const r=10**e;switch(n){case"expand":return t>0?Math.ceil(t*r)/r:Math.floor(t*r)/r;case"trunc":return Math.trunc(t*r)/r;case"round":return Math.round(t*r)/r;case"floor":return Math.floor(t*r)/r;case"ceil":return Math.ceil(t*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function oe(t){return t%4==0&&(t%100!=0||t%400==0)}function ce(t){return oe(t)?366:365}function le(t,e){const n=(r=e-1)-12*Math.floor(r/12)+1;var r;return 2===n?oe(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function he(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function de(t,e,n){return-qt(At(t,1,e),n)+e-1}function me(t,e=4,n=1){const r=de(t,e,n),s=de(t+1,e,n);return(ce(t)-r+s)/7}function fe(t){return t>99?t:t>Ft.twoDigitCutoffYear?1900+t:2e3+t}function ye(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const u={timeZoneName:e,...i},a=new Intl.DateTimeFormat(n,u).formatToParts(s).find((t=>"timezonename"===t.type.toLowerCase()));return a?a.value:null}function ge(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function we(t){const e=Number(t);if("boolean"==typeof t||""===t||!Number.isFinite(e))throw new S(`Invalid unit value ${t}`);return e}function pe(t,e){const n={};for(const r in t)if(te(t,r)){const s=t[r];if(null==s)continue;n[e(r)]=we(s)}return n}function Me(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${re(n,2)}:${re(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${re(n,2)}${re(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Se(t){return function(t){return["hour","minute","second","millisecond"].reduce(((e,n)=>(e[n]=t[n],e)),{})}(t)}const ke=["January","February","March","April","May","June","July","August","September","October","November","December"],be=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ne=["J","F","M","A","M","J","J","A","S","O","N","D"];function Te(t){switch(t){case"narrow":return[...Ne];case"short":return[...be];case"long":return[...ke];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 ve=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ee=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Oe=["M","T","W","T","F","S","S"];function De(t){switch(t){case"narrow":return[...Oe];case"short":return[...Ee];case"long":return[...ve];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ie=["AM","PM"],$e=["Before Christ","Anno Domini"],xe=["BC","AD"],Fe=["B","A"];function Ze(t){switch(t){case"narrow":return[...Fe];case"short":return[...xe];case"long":return[...$e];default:return null}}function Le(t,e){let n="";for(const r of t)n+=r.literal?r.val:e(r.val);return n}const We={D:v,DD:E,DDD:D,DDDD:I,t:$,tt:x,ttt:F,tttt:Z,T:L,TT:W,TTT:C,TTTT:A,f:_,ff:q,fff:R,ffff:J,F:j,FF:H,FFF:U,FFFF:G};class Ce{static create(t,e={}){return new Ce(t,e)}static parseFormat(t){let e=null,n="",r=!1;const s=[];for(let i=0;i<t.length;i++){const u=t.charAt(i);"'"===u?((n.length>0||r)&&s.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),e=null,n="",r=!r):r||u===e?n+=u:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=u,e=u)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(t){return We[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0,n){if(this.opts.forceSimple)return re(t,e);const r={...this.opts};return e>0&&(r.padTo=e),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(e,n)=>this.loc.extract(t,e,n),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",u=(e,r)=>n?function(t,e){return Te(e)[t.month-1]}(t,e):s(r?{month:e}:{month:e,day:"numeric"},"month"),a=(e,r)=>n?function(t,e){return De(e)[t.weekday-1]}(t,e):s(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),o=e=>{const n=Ce.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},c=e=>n?function(t,e){return Ze(e)[t.year<0?0:1]}(t,e):s({era:e},"era");return Le(Ce.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return n?function(t){return Ie[t.hour<12?0:1]}(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?s({day:"numeric"},"day"):this.num(t.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return a("short",!0);case"cccc":return a("long",!0);case"ccccc":return a("narrow",!0);case"EEE":return a("short",!1);case"EEEE":return a("long",!1);case"EEEEE":return a("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(t.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(t.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return o(e)}}))}formatDurationFromString(t,e){const n="negativeLargestOnly"===this.opts.signMode?-1:1,r=t=>{switch(t[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},s=Ce.parseFormat(e),i=s.reduce(((t,{literal:e,val:n})=>e?t:t.concat(n)),[]),u=t.shiftTo(...i.map(r).filter((t=>t)));return Le(s,((t,e)=>s=>{const i=r(s);if(i){const r=e.isNegativeDuration&&i!==e.largestUnit?n:1;let u;return u="negativeLargestOnly"===this.opts.signMode&&i!==e.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(t.get(i)*r,s.length,u)}return s})(u,{isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]}))}}const Ae=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function _e(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function je(...t){return e=>t.reduce((([t,n,r],s)=>{const[i,u,a]=s(e,r);return[{...t,...i},u||n,a]}),[{},null,1]).slice(0,2)}function qe(t,...e){if(null==t)return[null,null];for(const[n,r]of e){const e=n.exec(t);if(e)return r(e)}return[null,null]}function He(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=se(e[n+s]);return[r,null,n+s]}}const ze=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Re=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ue=RegExp(`${Re.source}(?:${ze.source}?(?:\\[(${Ae.source})\\])?)?`),Je=RegExp(`(?:[Tt]${Ue.source})?`),Ge=He("weekYear","weekNumber","weekDay"),Pe=He("year","ordinal"),Ye=RegExp(`${Re.source} ?(?:${ze.source}|(${Ae.source}))?`),Ve=RegExp(`(?: ${Ye.source})?`);function Be(t,e,n){const r=t[e];return Yt(r)?n:se(r)}function Qe(t,e){return[{hours:Be(t,e,0),minutes:Be(t,e+1,0),seconds:Be(t,e+2,0),milliseconds:ue(t[e+3])},null,e+4]}function Ke(t,e){const n=!t[e]&&!t[e+1],r=ge(t[e+1],t[e+2]);return[{},n?null:gt.instance(r),e+3]}function Xe(t,e){return[{},t[e]?X.create(t[e]):null,e+1]}const tn=RegExp(`^T?${Re.source}$`),en=/^-?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 nn(t){const[e,n,r,s,i,u,a,o,c]=t,l="-"===e[0],h=o&&"-"===o[0],d=(t,e=!1)=>void 0!==t&&(e||t&&l)?-t:t;return[{years:d(ie(n)),months:d(ie(r)),weeks:d(ie(s)),days:d(ie(i)),hours:d(ie(u)),minutes:d(ie(a)),seconds:d(ie(o),"-0"===o),milliseconds:d(ue(c),h)}]}const rn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function sn(t,e,n,r,s,i,u){const a={year:2===e.length?fe(se(e)):se(e),month:be.indexOf(n)+1,day:se(r),hour:se(s),minute:se(i)};return u&&(a.second=se(u)),t&&(a.weekday=t.length>3?ve.indexOf(t)+1:Ee.indexOf(t)+1),a}const un=/^(?:(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 an(t){const[,e,n,r,s,i,u,a,o,c,l,h]=t,d=sn(e,s,r,n,i,u,a);let m;return m=o?rn[o]:c?0:ge(l,h),[d,new gt(m)]}const on=/^(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$/,cn=/^(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$/,ln=/^(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 hn(t){const[,e,n,r,s,i,u,a]=t;return[sn(e,s,r,n,i,u,a),gt.utcInstance]}function dn(t){const[,e,n,r,s,i,u,a]=t;return[sn(e,a,n,r,s,i,u),gt.utcInstance]}const mn=_e(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Je),fn=_e(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Je),yn=_e(/(\d{4})-?(\d{3})/,Je),gn=_e(Ue),wn=je((function(t,e){return[{year:Be(t,e),month:Be(t,e+1,1),day:Be(t,e+2,1)},null,e+3]}),Qe,Ke,Xe),pn=je(Ge,Qe,Ke,Xe),Mn=je(Pe,Qe,Ke,Xe),Sn=je(Qe,Ke,Xe),kn=je(Qe),bn=_e(/(\d{4})-(\d\d)-(\d\d)/,Ve),Nn=_e(Ye),Tn=je(Qe,Ke,Xe),vn="Invalid Duration",En={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}},On={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},...En},Dn={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,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:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...En},In=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],$n=In.slice(0).reverse();function xn(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Wn(r)}function Fn(t,e){let n=e.milliseconds??0;for(const r of $n.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function Zn(t,e){const n=Fn(t,e)<0?-1:1;In.reduceRight(((r,s)=>{if(Yt(e[s]))return r;if(r){const i=t[s][r],u=Math.floor(e[r]*n/i);e[s]+=u*n,e[r]-=u*i*n}return s}),null),In.reduce(((n,r)=>{if(Yt(e[r]))return n;if(n){const s=e[n]%1;e[n]-=s,e[r]+=s*t[n][r]}return r}),null)}function Ln(t){const e={};for(const[n,r]of Object.entries(t))0!==r&&(e[n]=r);return e}class Wn{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?Dn:On;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||ft.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return Wn.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new S("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new Wn({values:pe(t,Wn.normalizeUnit),loc:ft.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(Vt(t))return Wn.fromMillis(t);if(Wn.isDuration(t))return t;if("object"==typeof t)return Wn.fromObject(t);throw new S(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[n]=function(t){return qe(t,[en,nn])}(t);return n?Wn.fromObject(n,e):Wn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[n]=function(t){return qe(t,[tn,kn])}(t);return n?Wn.fromObject(n,e):Wn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new S("need to specify a reason the Duration is invalid");const n=t instanceof Zt?t:new Zt(t,e);if(Ft.throwOnInvalid)throw new w(n);return new Wn({invalid:n})}static normalizeUnit(t){const e={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"}[t?t.toLowerCase():t];if(!e)throw new M(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Ce.create(this.loc,n).formatDurationFromString(this,t):vn}toHuman(t={}){if(!this.isValid)return vn;const e=!1!==t.showZeros,n=In.map((n=>{const r=this.values[n];return Yt(r)||0===r&&!e?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(r)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=ae(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();return e<0||e>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Or.fromMillis(e,{zone:"UTC"}).toISOTime(t))}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?Fn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=Wn.fromDurationLike(t),n={};for(const t of In)(te(e.values,t)||te(this.values,t))&&(n[t]=e.get(t)+this.get(t));return xn(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=Wn.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=we(t(this.values[n],n));return xn(this,{values:e},!0)}get(t){return this[Wn.normalizeUnit(t)]}set(t){return this.isValid?xn(this,{values:{...this.values,...pe(t,Wn.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:r}={}){return xn(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Zn(this.matrix,t),xn(this,{values:t},!0)}rescale(){return this.isValid?xn(this,{values:Ln(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>Wn.normalizeUnit(t)));const e={},n={},r=this.toObject();let s;for(const i of In)if(t.indexOf(i)>=0){s=i;let t=0;for(const e in n)t+=this.matrix[e][i]*n[e],n[e]=0;Vt(r[i])&&(t+=r[i]);const u=Math.trunc(t);e[i]=u,n[i]=(1e3*t-1e3*u)/1e3}else Vt(r[i])&&(n[i]=r[i]);for(const t in n)0!==n[t]&&(e[s]+=t===s?n[t]:n[t]/this.matrix[s][t]);return Zn(this.matrix,e),xn(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return xn(this,{values:t},!0)}removeZeros(){return this.isValid?xn(this,{values:Ln(this.values)},!0):this}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(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const r of In)if(n=t.values[r],!(void 0===(e=this.values[r])||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const Cn="Invalid Interval";class An{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new S("need to specify a reason the Interval is invalid");const n=t instanceof Zt?t:new Zt(t,e);if(Ft.throwOnInvalid)throw new g(n);return new An({invalid:n})}static fromDateTimes(t,e){const n=Dr(t),r=Dr(e),s=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?An.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:An.invalid("missing or invalid end"):An.invalid("missing or invalid start")}(n,r);return null==s?new An({start:n,end:r}):s}static after(t,e){const n=Wn.fromDurationLike(e),r=Dr(t);return An.fromDateTimes(r,r.plus(n))}static before(t,e){const n=Wn.fromDurationLike(e),r=Dr(t);return An.fromDateTimes(r.minus(n),r)}static fromISO(t,e){const[n,r]=(t||"").split("/",2);if(n&&r){let t,s,i,u;try{t=Or.fromISO(n,e),s=t.isValid}catch(r){s=!1}try{i=Or.fromISO(r,e),u=i.isValid}catch(r){u=!1}if(s&&u)return An.fromDateTimes(t,i);if(s){const n=Wn.fromISO(r,e);if(n.isValid)return An.after(t,n)}else if(u){const t=Wn.fromISO(n,e);if(t.isValid)return An.before(i,t)}}return An.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):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(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",e){if(!this.isValid)return NaN;const n=this.start.startOf(t,e);let r;return r=e?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(t,e),Math.floor(r.diff(n,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?An.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(Dr).filter((t=>this.contains(t))).sort(((t,e)=>t.toMillis()-e.toMillis())),n=[];let{s:r}=this,s=0;for(;r<this.e;){const t=e[s]||this.e,i=+t>+this.e?this.e:t;n.push(An.fromDateTimes(r,i)),r=i,s+=1}return n}splitBy(t){const e=Wn.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s:r}=this,s=1;const i=[];for(;r<this.e;){const t=this.start.plus(e.mapUnits((t=>t*s)));n=+t>+this.e?this.e:t,i.push(An.fromDateTimes(r,n)),r=n,s+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return e>=n?null:An.fromDateTimes(e,n)}union(t){return this.isValid?An.fromDateTimes(this.s<t.s?this.s:t.s,this.e>t.e?this.e:t.e):this}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],n)=>e?e.overlaps(n)||e.abutsStart(n)?[t,e.union(n)]:[t.concat([e]),n]:[t,n]),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const r=[],s=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),i=Array.prototype.concat(...s).sort(((t,e)=>t.time-e.time));for(const t of i)n+="s"===t.type?1:-1,1===n?e=t.time:(e&&+e!=+t.time&&r.push(An.fromDateTimes(e,t.time)),e=null);return An.merge(r)}difference(...t){return An.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Cn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=v,e={}){return this.isValid?Ce.create(this.s.loc.clone(e),t).formatInterval(this):Cn}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Cn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Cn}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Cn}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:Cn}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):Wn.invalid(this.invalidReason)}mapEndpoints(t){return An.fromDateTimes(t(this.s),t(this.e))}}class _n{static hasDST(t=Ft.defaultZone){const e=Or.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return X.isValidZone(t)}static normalizeZone(t){return pt(t,Ft.defaultZone)}static getStartOfWeek({locale:t=null,locObj:e=null}={}){return(e||ft.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:e=null}={}){return(e||ft.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:e=null}={}){return(e||ft.create(t)).getWeekendDays().slice()}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||ft.create(e,n,s)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||ft.create(e,n,s)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||ft.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||ft.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return ft.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return ft.create(e,null,"gregory").eras(t)}static features(){return{relative:Qt(),localeWeek:Kt()}}}function jn(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(Wn.fromMillis(r).as("days"))}function qn(t,e=t=>t){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(-1!==t[n].search(Mt.hanidec))e+=kt.indexOf(t[n]);else for(const t in St){const[n,s]=St[t];r>=n&&r<=s&&(e+=r-n)}}return parseInt(e,10)}return e}(t))}}const Hn=`[ ${String.fromCharCode(160)}]`,zn=new RegExp(Hn,"g");function Rn(t){return t.replace(/\./g,"\\.?").replace(zn,Hn)}function Un(t){return t.replace(/\./g,"").replace(zn," ").toLowerCase()}function Jn(t,e){return null===t?null:{regex:RegExp(t.map(Rn).join("|")),deser:([n])=>t.findIndex((t=>Un(n)===Un(t)))+e}}function Gn(t,e){return{regex:t,deser:([,t,e])=>ge(t,e),groups:e}}function Pn(t){return{regex:t,deser:([t])=>t}}const Yn={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 Vn=null;function Bn(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=Xn(Ce.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}class Qn{constructor(t,e){if(this.locale=t,this.format=e,this.tokens=Bn(Ce.parseFormat(e),t),this.units=this.tokens.map((e=>function(t,e){const n=Nt(e),r=Nt(e,"{2}"),s=Nt(e,"{3}"),i=Nt(e,"{4}"),u=Nt(e,"{6}"),a=Nt(e,"{1,2}"),o=Nt(e,"{1,3}"),c=Nt(e,"{1,6}"),l=Nt(e,"{1,9}"),h=Nt(e,"{2,4}"),d=Nt(e,"{4,6}"),m=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},f=(f=>{if(t.literal)return m(f);switch(f.val){case"G":return Jn(e.eras("short"),0);case"GG":return Jn(e.eras("long"),0);case"y":return qn(c);case"yy":case"kk":return qn(h,fe);case"yyyy":case"kkkk":return qn(i);case"yyyyy":return qn(d);case"yyyyyy":return qn(u);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return qn(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return qn(r);case"MMM":return Jn(e.months("short",!0),1);case"MMMM":return Jn(e.months("long",!0),1);case"LLL":return Jn(e.months("short",!1),1);case"LLLL":return Jn(e.months("long",!1),1);case"o":case"S":return qn(o);case"ooo":case"SSS":return qn(s);case"u":return Pn(l);case"uu":return Pn(a);case"uuu":case"E":case"c":return qn(n);case"a":return Jn(e.meridiems(),0);case"EEE":return Jn(e.weekdays("short",!1),1);case"EEEE":return Jn(e.weekdays("long",!1),1);case"ccc":return Jn(e.weekdays("short",!0),1);case"cccc":return Jn(e.weekdays("long",!0),1);case"Z":case"ZZ":return Gn(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return Gn(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return Pn(/[a-z_+-/]{1,256}?/i);case" ":return Pn(/[^\S\n\r]/);default:return m(f)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=t,f}(e,t))),this.disqualifyingUnit=this.units.find((t=>t.invalidReason)),!this.disqualifyingUnit){const[t,e]=[`^${(n=this.units).map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"")}$`,n];this.regex=RegExp(t,"i"),this.handlers=e}var n}explainFromTokens(t){if(this.isValid){const[e,n]=function(t,e,n){const r=t.match(e);if(r){const t={};let e=1;for(const s in n)if(te(n,s)){const i=n[s],u=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(r.slice(e,e+u))),e+=u}return[r,t]}return[r,{}]}(t,this.regex,this.handlers),[r,s,i]=n?function(t){let e,n=null;return Yt(t.z)||(n=X.create(t.z)),Yt(t.Z)||(n||(n=new gt(t.Z)),e=t.Z),Yt(t.q)||(t.M=3*(t.q-1)+1),Yt(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Yt(t.u)||(t.S=ue(t.u)),[Object.keys(t).reduce(((e,n)=>{const r=(t=>{switch(t){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 r&&(e[r]=t[n]),e}),{}),n,e]}(n):[null,null,void 0];if(te(n,"a")&&te(n,"H"))throw new p("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:e,matches:n,result:r,zone:s,specificOffset:i}}return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Kn(t,e,n){return new Qn(t,n).explainFromTokens(e)}function Xn(t,e){if(!t)return null;const n=Ce.create(e,t).dtFormatter((Vn||(Vn=Or.fromMillis(1555555555555)),Vn)),r=n.formatToParts(),s=n.resolvedOptions();return r.map((e=>function(t,e,n){const{type:r,value:s}=t;if("literal"===r){const t=/^\s+$/.test(s);return{literal:!t,val:t?" ":s}}let i=r;"hour"===r&&(i=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let u=Yn[i];if("object"==typeof u&&(u=u[e[r]]),u)return{literal:!1,val:u}}(e,t,s)))}const tr="Invalid DateTime",er=864e13;function nr(t){return new Zt("unsupported zone",`the zone "${t.name}" is not supported`)}function rr(t){return null===t.weekData&&(t.weekData=Ht(t.c)),t.weekData}function sr(t){return null===t.localWeekData&&(t.localWeekData=Ht(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ir(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Or({...n,...e,old:n})}function ur(t,e,n){let r=t-60*e*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=60*(s-e)*1e3;const i=n.offset(r);return s===i?[r,s]:[t-60*Math.min(s,i)*1e3,Math.max(s,i)]}function ar(t,e){const n=new Date(t+=60*e*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 or(t,e,n){return ur(he(t),e,n)}function cr(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:r,month:s,day:Math.min(t.c.day,le(r,s))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},u=Wn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=he(i);let[o,c]=ur(a,n,t.zone);return 0!==u&&(o+=u,c=t.zone.offset(o)),{ts:o,o:c}}function lr(t,e,n,r,s,i){const{setZone:u,zone:a}=n;if(t&&0!==Object.keys(t).length||e){const r=e||a,s=Or.fromObject(t,{...n,zone:r,specificOffset:i});return u?s:s.setZone(a)}return Or.invalid(new Zt("unparsable",`the input "${s}" can't be parsed as ${r}`))}function hr(t,e,n=!0){return t.isValid?Ce.create(ft.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function dr(t,e,n){const r=t.c.year>9999||t.c.year<0;let s="";if(r&&t.c.year>=0&&(s+="+"),s+=re(t.c.year,r?6:4),"year"===n)return s;if(e){if(s+="-",s+=re(t.c.month),"month"===n)return s;s+="-"}else if(s+=re(t.c.month),"month"===n)return s;return s+=re(t.c.day),s}function mr(t,e,n,r,s,i,u){let a=!n||0!==t.c.millisecond||0!==t.c.second,o="";switch(u){case"day":case"month":case"year":break;default:if(o+=re(t.c.hour),"hour"===u)break;if(e){if(o+=":",o+=re(t.c.minute),"minute"===u)break;a&&(o+=":",o+=re(t.c.second))}else{if(o+=re(t.c.minute),"minute"===u)break;a&&(o+=re(t.c.second))}if("second"===u)break;!a||r&&0===t.c.millisecond||(o+=".",o+=re(t.c.millisecond,3))}return s&&(t.isOffsetFixed&&0===t.offset&&!i?o+="Z":t.o<0?(o+="-",o+=re(Math.trunc(-t.o/60)),o+=":",o+=re(Math.trunc(-t.o%60))):(o+="+",o+=re(Math.trunc(t.o/60)),o+=":",o+=re(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const fr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},yr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},gr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},wr=["year","month","day","hour","minute","second","millisecond"],pr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Mr=["year","ordinal","hour","minute","second","millisecond"];function Sr(t){const e={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"}[t.toLowerCase()];if(!e)throw new M(t);return e}function kr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Sr(t)}}function br(t,e){const n=pt(e.zone,Ft.defaultZone);if(!n.isValid)return Or.invalid(nr(n));const r=ft.fromObject(e);let s,i;if(Yt(t.year))s=Ft.now();else{for(const e of wr)Yt(t[e])&&(t[e]=fr[e]);const e=Gt(t)||Pt(t);if(e)return Or.invalid(e);const r=function(t){if(void 0===vr&&(vr=Ft.now()),"iana"!==t.type)return t.offset(vr);const e=t.name;let n=Er.get(e);return void 0===n&&(n=t.offset(vr),Er.set(e,n)),n}(n);[s,i]=or(t,r,n)}return new Or({ts:s,zone:n,loc:r,o:i})}function Nr(t,e,n){const r=!!Yt(n.round)||n.round,s=Yt(n.rounding)?"trunc":n.rounding,i=(t,i)=>(t=ae(t,r||n.calendary?0:2,n.calendary?"round":s),e.loc.clone(n).relFormatter(n).format(t,i)),u=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return i(u(n.unit),n.unit);for(const t of n.units){const e=u(t);if(Math.abs(e)>=1)return i(e,t)}return i(t>e?-0:0,n.units[n.units.length-1])}function Tr(t){let e,n={};return t.length>0&&"object"==typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}let vr;const Er=new Map;class Or{constructor(t){const e=t.zone||Ft.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Zt("invalid input"):null)||(e.isValid?null:nr(e));this.ts=Yt(t.ts)?Ft.now():t.ts;let r=null,s=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,s]=[t.old.c,t.old.o];else{const i=Vt(t.o)&&!t.old?t.o:e.offset(this.ts);r=ar(this.ts,i),n=Number.isNaN(r.year)?new Zt("invalid input"):null,r=n?null:r,s=n?null:i}this._zone=e,this.loc=t.loc||ft.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new Or({})}static local(){const[t,e]=Tr(arguments),[n,r,s,i,u,a,o]=e;return br({year:n,month:r,day:s,hour:i,minute:u,second:a,millisecond:o},t)}static utc(){const[t,e]=Tr(arguments),[n,r,s,i,u,a,o]=e;return t.zone=gt.utcInstance,br({year:n,month:r,day:s,hour:i,minute:u,second:a,millisecond:o},t)}static fromJSDate(t,e={}){const n="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(n))return Or.invalid("invalid input");const r=pt(e.zone,Ft.defaultZone);return r.isValid?new Or({ts:n,zone:r,loc:ft.fromObject(e)}):Or.invalid(nr(r))}static fromMillis(t,e={}){if(Vt(t))return t<-er||t>er?Or.invalid("Timestamp out of range"):new Or({ts:t,zone:pt(e.zone,Ft.defaultZone),loc:ft.fromObject(e)});throw new S(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(Vt(t))return new Or({ts:1e3*t,zone:pt(e.zone,Ft.defaultZone),loc:ft.fromObject(e)});throw new S("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const n=pt(e.zone,Ft.defaultZone);if(!n.isValid)return Or.invalid(nr(n));const r=ft.fromObject(e),s=pe(t,kr),{minDaysInFirstWeek:i,startOfWeek:u}=Jt(s,r),a=Ft.now(),o=Yt(e.specificOffset)?n.offset(a):e.specificOffset,c=!Yt(s.ordinal),l=!Yt(s.year),h=!Yt(s.month)||!Yt(s.day),d=l||h,m=s.weekYear||s.weekNumber;if((d||c)&&m)throw new p("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new p("Can't mix ordinal dates with month/day");const f=m||s.weekday&&!d;let y,g,w=ar(a,o);f?(y=pr,g=yr,w=Ht(w,i,u)):c?(y=Mr,g=gr,w=Rt(w)):(y=wr,g=fr);let M=!1;for(const t of y)Yt(s[t])?s[t]=M?g[t]:w[t]:M=!0;const S=f?function(t,e=4,n=1){const r=Bt(t.weekYear),s=ne(t.weekNumber,1,me(t.weekYear,e,n)),i=ne(t.weekday,1,7);return r?s?!i&&Ct("weekday",t.weekday):Ct("week",t.weekNumber):Ct("weekYear",t.weekYear)}(s,i,u):c?function(t){const e=Bt(t.year),n=ne(t.ordinal,1,ce(t.year));return e?!n&&Ct("ordinal",t.ordinal):Ct("year",t.year)}(s):Gt(s),k=S||Pt(s);if(k)return Or.invalid(k);const b=f?zt(s,i,u):c?Ut(s):s,[N,T]=or(b,o,n),v=new Or({ts:N,zone:n,o:T,loc:r});return s.weekday&&d&&t.weekday!==v.weekday?Or.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${v.toISO()}`):v.isValid?v:Or.invalid(v.invalid)}static fromISO(t,e={}){const[n,r]=function(t){return qe(t,[mn,wn],[fn,pn],[yn,Mn],[gn,Sn])}(t);return lr(n,r,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[n,r]=function(t){return qe(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[un,an])}(t);return lr(n,r,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[n,r]=function(t){return qe(t,[on,hn],[cn,hn],[ln,dn])}(t);return lr(n,r,e,"HTTP",e)}static fromFormat(t,e,n={}){if(Yt(t)||Yt(e))throw new S("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,i=ft.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[u,a,o,c]=function(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:u}=Kn(t,e,n);return[r,s,i,u]}(i,t,e);return c?Or.invalid(c):lr(u,a,n,`format ${e}`,t,o)}static fromString(t,e,n={}){return Or.fromFormat(t,e,n)}static fromSQL(t,e={}){const[n,r]=function(t){return qe(t,[bn,wn],[Nn,Tn])}(t);return lr(n,r,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new S("need to specify a reason the DateTime is invalid");const n=t instanceof Zt?t:new Zt(t,e);if(Ft.throwOnInvalid)throw new y(n);return new Or({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const n=Xn(t,ft.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){return Bn(Ce.parseFormat(t),ft.fromObject(e)).map((t=>t.val)).join("")}static resetCache(){vr=void 0,Er.clear()}get(t){return this[t]}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?rr(this).weekYear:NaN}get weekNumber(){return this.isValid?rr(this).weekNumber:NaN}get weekday(){return this.isValid?rr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?sr(this).weekday:NaN}get localWeekNumber(){return this.isValid?sr(this).weekNumber:NaN}get localWeekYear(){return this.isValid?sr(this).weekYear:NaN}get ordinal(){return this.isValid?Rt(this.c).ordinal:NaN}get monthShort(){return this.isValid?_n.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?_n.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?_n.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?_n.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 t=864e5,e=6e4,n=he(this.c),r=this.zone.offset(n-t),s=this.zone.offset(n+t),i=this.zone.offset(n-r*e),u=this.zone.offset(n-s*e);if(i===u)return[this];const a=n-i*e,o=n-u*e,c=ar(a,i),l=ar(o,u);return c.hour===l.hour&&c.minute===l.minute&&c.second===l.second&&c.millisecond===l.millisecond?[ir(this,{ts:a}),ir(this,{ts:o})]:[this]}get isInLeapYear(){return oe(this.year)}get daysInMonth(){return le(this.year,this.month)}get daysInYear(){return this.isValid?ce(this.year):NaN}get weeksInWeekYear(){return this.isValid?me(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?me(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:n,calendar:r}=Ce.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:r}}toUTC(t=0,e={}){return this.setZone(gt.instance(t),e)}toLocal(){return this.setZone(Ft.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=pt(t,Ft.defaultZone)).equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[r]=or(n,e,t)}return ir(this,{ts:r,zone:t})}return Or.invalid(nr(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return ir(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=pe(t,kr),{minDaysInFirstWeek:n,startOfWeek:r}=Jt(e,this.loc),s=!Yt(e.weekYear)||!Yt(e.weekNumber)||!Yt(e.weekday),i=!Yt(e.ordinal),u=!Yt(e.year),a=!Yt(e.month)||!Yt(e.day);if((u||a||i)&&(e.weekYear||e.weekNumber))throw new p("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&i)throw new p("Can't mix ordinal dates with month/day");let o;s?o=zt({...Ht(this.c,n,r),...e},n,r):Yt(e.ordinal)?(o={...this.toObject(),...e},Yt(e.day)&&(o.day=Math.min(le(o.year,o.month),o.day))):o=Ut({...Rt(this.c),...e});const[c,l]=or(o,this.o,this.zone);return ir(this,{ts:c,o:l})}plus(t){return this.isValid?ir(this,cr(this,Wn.fromDurationLike(t))):this}minus(t){return this.isValid?ir(this,cr(this,Wn.fromDurationLike(t).negate())):this}startOf(t,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;const n={},r=Wn.normalizeUnit(t);switch(r){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"===r)if(e){const t=this.loc.getStartOfWeek(),{weekday:e}=this;e<t&&(n.weekNumber=this.weekNumber-1),n.weekday=t}else n.weekday=1;if("quarters"===r){const t=Math.ceil(this.month/3);n.month=3*(t-1)+1}return this.set(n)}endOf(t,e){return this.isValid?this.plus({[t]:1}).startOf(t,e).minus(1):this}toFormat(t,e={}){return this.isValid?Ce.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):tr}toLocaleString(t=v,e={}){return this.isValid?Ce.create(this.loc.clone(e),t).formatDateTime(this):tr}toLocaleParts(t={}){return this.isValid?Ce.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1,precision:i="milliseconds"}={}){if(!this.isValid)return null;const u="extended"===t;let a=dr(this,u,i=Sr(i));return wr.indexOf(i)>=3&&(a+="T"),a+=mr(this,u,e,n,r,s,i),a}toISODate({format:t="extended",precision:e="day"}={}){return this.isValid?dr(this,"extended"===t,Sr(e)):null}toISOWeekDate(){return hr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:i="extended",precision:u="milliseconds"}={}){return this.isValid?(u=Sr(u),(r&&wr.indexOf(u)>=3?"T":"")+mr(this,"extended"===i,e,t,n,s,u)):null}toRFC2822(){return hr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return hr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?dr(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(e||t)&&(n&&(r+=" "),e?r+="z":t&&(r+="ZZ")),hr(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():tr}[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(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",n={}){if(!this.isValid||!t.isValid)return Wn.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(a=e,Array.isArray(a)?a:[a]).map(Wn.normalizeUnit),i=t.valueOf()>this.valueOf(),u=function(t,e,n,r){let[s,i,u,a]=function(t,e,n){const r=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=jn(t,e);return(n-n%7)/7}],["days",jn]],s={},i=t;let u,a;for(const[o,c]of r)n.indexOf(o)>=0&&(u=o,s[o]=c(t,e),a=i.plus(s),a>e?(s[o]--,(t=i.plus(s))>e&&(a=t,s[o]--,t=i.plus(s))):t=a);return[t,s,a,u]}(t,e,n);const o=e-s,c=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===c.length&&(u<e&&(u=s.plus({[a]:1})),u!==s&&(i[a]=(i[a]||0)+o/(u-s)));const l=Wn.fromObject(i,r);return c.length>0?Wn.fromMillis(o,r).shiftTo(...c).plus(l):l}(i?this:t,i?t:this,s,r);var a;return i?u.negate():u}diffNow(t="milliseconds",e={}){return this.diff(Or.now(),t,e)}until(t){return this.isValid?An.fromDateTimes(this,t):this}hasSame(t,e,n){if(!this.isValid)return!1;const r=t.valueOf(),s=this.setZone(t.zone,{keepLocalTime:!0});return s.startOf(e,n)<=r&&r<=s.endOf(e,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||Or.fromObject({},{zone:this.zone}),n=t.padding?this<e?-t.padding:t.padding:0;let r=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(r=t.unit,s=void 0),Nr(e,this.plus(n),{...t,numeric:"always",units:r,unit:s})}toRelativeCalendar(t={}){return this.isValid?Nr(t.base||Or.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Or.isDateTime))throw new S("min requires all arguments be DateTimes");return Xt(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(Or.isDateTime))throw new S("max requires all arguments be DateTimes");return Xt(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,n={}){const{locale:r=null,numberingSystem:s=null}=n;return Kn(ft.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return Or.fromFormatExplain(t,e,n)}static buildFormatParser(t,e={}){const{locale:n=null,numberingSystem:r=null}=e,s=ft.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new Qn(s,t)}static fromFormatParser(t,e,n={}){if(Yt(t)||Yt(e))throw new S("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:s=null}=n,i=ft.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});if(!i.equals(e.locale))throw new S(`fromFormatParser called with a locale of ${i}, but the format parser was created for ${e.locale}`);const{result:u,zone:a,specificOffset:o,invalidReason:c}=e.explainFromTokens(t);return c?Or.invalid(c):lr(u,a,n,`format ${e.format}`,t,o)}static get DATE_SHORT(){return v}static get DATE_MED(){return E}static get DATE_MED_WITH_WEEKDAY(){return O}static get DATE_FULL(){return D}static get DATE_HUGE(){return I}static get TIME_SIMPLE(){return $}static get TIME_WITH_SECONDS(){return x}static get TIME_WITH_SHORT_OFFSET(){return F}static get TIME_WITH_LONG_OFFSET(){return Z}static get TIME_24_SIMPLE(){return L}static get TIME_24_WITH_SECONDS(){return W}static get TIME_24_WITH_SHORT_OFFSET(){return C}static get TIME_24_WITH_LONG_OFFSET(){return A}static get DATETIME_SHORT(){return _}static get DATETIME_SHORT_WITH_SECONDS(){return j}static get DATETIME_MED(){return q}static get DATETIME_MED_WITH_SECONDS(){return H}static get DATETIME_MED_WITH_WEEKDAY(){return z}static get DATETIME_FULL(){return R}static get DATETIME_FULL_WITH_SECONDS(){return U}static get DATETIME_HUGE(){return J}static get DATETIME_HUGE_WITH_SECONDS(){return G}}function Dr(t){if(Or.isDateTime(t))return t;if(t&&t.valueOf&&Vt(t.valueOf()))return Or.fromJSDate(t);if(t&&"object"==typeof t)return Or.fromObject(t);throw new S(`Unknown datetime argument: ${t}, of type ${typeof t}`)}class Ir{static isExisting(t){return null!=t}static isString(t){return"string"==typeof t}static isNumber(t){return"number"==typeof t&&!Number.isNaN(t)}static isBoolean(t){return"boolean"==typeof t}static isArray(t){return Array.isArray(t)}static isObject(t){return"object"==typeof t&&null!==t}static isOperator(t){return"+"===t||"-"===t}static isDate(t){return t instanceof Or&&t.isValid}}class $r{static adaptDefaultString(t){return Ir.isString(t)?t.trim():""}static adaptArray(t,e){const n=[];return Ir.isArray(t)&&t.forEach((t=>{n.push(e.adapt(t))})),n}}var xr,Fr;!function(t){t.ASC="asc",t.DESC="desc"}(xr||(xr={})),function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex",t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(Fr||(Fr={}));class Zr{constructor(t=["category"],e=xr.ASC){this.hierarchy=t,this.direction=e}}class Lr{constructor(t){this.stringAdapter=t}adapt(t){var e;const n=$r.adaptArray(t.hierarchy,this.stringAdapter),r=xr[null===(e=t.direction)||void 0===e?void 0:e.toUpperCase()]||xr.ASC;return new Zr(n.map((t=>Fr[t.toUpperCase()]||Fr.CATEGORY)),r)}default(){return new Zr(["category"],xr.ASC)}}export{a as A,l as C,Or as D,t as I,e as M,xr as O,m as S,i as T,Fr as a,d as b,o as c,$r as d,Ir as e,n as f,r as g,s as h,u as i,Lr as j,h as k}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as t,g as n,h as r,T as e,a as s,O as a,M as o,i,A as u,c}from"./p-DdexOqTs.js";import{D as l,a as f}from"./p-DgfL-ffj.js";import{f as m,g as d}from"./p-JNHhIe7t.js";import{r as N}from"./p-tzFCK9qn.js";function p(t){return null==t||""===t||"null"===t}function b(n){return p(n)||"auto"===n.trim().toLowerCase()?[]:v((null==n?void 0:n.split(",").filter((n=>!(n.toUpperCase().trim()in t)))).toString())}function v(r){return p(r)?[]:r.replace(";",",").split(",").filter((r=>{var e,s,a;const o=r.split("_"),i=null===(e=o[0])||void 0===e?void 0:e.replace(/^dr|^d/,"").toUpperCase().trim(),u=null===(s=o[1])||void 0===s?void 0:s.toUpperCase().trim(),c=null===(a=o[2])||void 0===a?void 0:a.toUpperCase().trim();return 3!==o.length||!(i in t)||!(u in t)||!(c in n)}))}function h(t){return p(t)||"auto"===t.trim().toLowerCase()?[]:v(t.split(",").filter((t=>!(t.toUpperCase()in s))).toString())}function g(t){return!p(t)&&Number.isInteger(Number(t))}function y(t){return!p(t)&&!Number.isNaN(Number(t))}function O(t){return!p(t)&&(null==t?void 0:t.toUpperCase())in a}function S(t){return"auto"===(null==t?void 0:t.toLowerCase())||(null==t?void 0:t.toUpperCase())in u}function J(t){if(p(t))return[];try{const n=JSON.parse(t);if(n instanceof Array)return n.filter((t=>!(t.hasOwnProperty("name")&&t.hasOwnProperty("unit"))))}catch(t){console.error("validateMeasureList: failed to parse JSON",t)}return["Invalid JSON structure"]}function w(t){const n=Date.parse(t);return Number.isInteger(n)}function A(t){return(null==t?void 0:t.toUpperCase())in f}function j(t){return(null==t?void 0:t.toUpperCase())in l}function k(t){return(null==t?void 0:t.toUpperCase())in c}function T(t){return!p(t)&&(null==t?void 0:t.toUpperCase())in r}function $(t){return!p(t)&&["true","false",!0,!1].some((n=>n===t))}function M(t){return!p(t)&&(null==t?void 0:t.toUpperCase())in e}function x(t){if(p(t))return[];try{const n=JSON.parse(t);if(n instanceof Array)return n.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category")&&t.hasOwnProperty("subCategory"))))}catch(t){console.error("validateThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function z(t){if(p(t))return[];try{const n=JSON.parse(t);if(n instanceof Array)return n.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category"))))}catch(t){console.error("validatePartOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function E(t){return(null==t?void 0:t.trim().toUpperCase())in o}function G(t){return["_","k","M","G","T","P","E","Z","Y","m","μ","n","p","P","f","a","z","y"].includes(null==t?void 0:t.trim())||["GREATEST","LEAST"].includes(null==t?void 0:t.trim().toUpperCase())}function I(t){return(null==t?void 0:t.toUpperCase().trim())in i}function q(t){if(p(t))return[];try{return JSON.parse(t).filter((t=>!(t.hasOwnProperty("scenario")&&t.hasOwnProperty("name")&&t.hasOwnProperty("subGroups"))))}catch(t){console.error("validateColumnThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function C(t){if(p(t))return[];try{const n=JSON.parse(t);if("object"!=typeof n||null===n||Array.isArray(n))return["stack: must be a JSON object"];const r=[];if(n.hasOwnProperty("by")){const t=["scenario","category","subcategory","rowgroup"];t.includes(n.by)||r.push(`stack: 'by' must be one of: ${t.join(", ")}`)}else r.push("stack: 'by' is required");if(n.hasOwnProperty("mode")){const t=["absolute","relative","absolute-relative"];t.includes(n.mode)||r.push(`stack: 'mode' must be one of: ${t.join(", ")}`)}if(n.hasOwnProperty("order")){const t=["asc","desc","dataset"];t.includes(n.order)||r.push(`stack: 'order' must be one of: ${t.join(", ")}`)}return r}catch(t){return["stack: invalid JSON"]}}class D{constructor(){this.cache=new Map,this.tag=D.makeStyleTag()}static makeStyleTag(){const t=document.createElement("style");return t.type="text/css",t.setAttribute("data-bn-computed-style",""),t.append(document.createTextNode("")),(document.head||document.querySelector("head")).append(t),t}apply(t){t.forEach((t=>this.cache.set(t.className,t.style))),this.tag.innerHTML=Array.from(this.cache.values()).map((t=>t)).join("\n")}}const L=new D,P=t=>y(t)?`${t}px`:t,_={width:{className:"w",cssName:"width",attrName:"width",transform:P},height:{className:"h",cssName:"height",attrName:"height",transform:P},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:P},right:{className:"rgt",cssName:"right",attrName:"right",transform:P},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:P},left:{className:"lft",cssName:"left",attrName:"left",transform:P},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:P},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},F=Object.keys(_);function H(t,n){const r=function(t,n){const r=function(t){for(var n,r=0,e=0,s=t.length;s>=4;++e,s-=4)n=1540483477*(65535&(n=255&t.charCodeAt(e)|(255&t.charCodeAt(++e))<<8|(255&t.charCodeAt(++e))<<16|(255&t.charCodeAt(++e))<<24))+(59797*(n>>>16)<<16),r=1540483477*(65535&(n^=n>>>24))+(59797*(n>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(s){case 3:r^=(255&t.charCodeAt(e+2))<<16;case 2:r^=(255&t.charCodeAt(e+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(e)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(n);return`bn-c-${t.className}_${r}`}(t,n),e=function(t,n,r){return`.${n} {${t.cssName}: ${r};}`}(t,r,n);return{className:r,style:e}}const K=t=>{const n=new Map;return F.forEach((r=>{const e=t.getAttribute(r);e&&(["top","left","right","bottom"].includes(r)&&n.set("position",H(_.position,"absolute")),n.set(r,H(_[r],(_[r].transform||function(t){return t})(e))))})),n},R=new MutationObserver((t=>{for(const n of t){const t=n.target,r=K(t);L.apply(r);const e=Array.from(r.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...e).join(" "),m(t)}})),Y=t=>{const n=t.connectedCallback,r=t.disconnectedCallback;t.connectedCallback=()=>{const r=d(t);if(!r)throw new Error("Can't find element field in component undefined");(t=>{const n=K(t);L.apply(n);const r=Array.from(n.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...r).join(" "),R.observe(t,{attributes:!0,attributeFilter:F,childList:!1,subtree:!1})})(r),N(n,t)},t.disconnectedCallback=()=>{N(r,t)}};export{v as a,S as b,h as c,O as d,g as e,$ as f,G as g,C as h,y as i,p as j,j as k,k as l,J as m,w as n,A as o,T as p,M as q,x as r,z as s,E as t,I as u,b as v,Y as w,q as x}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s,H as i,g as e,d as n}from"./p-JNHhIe7t.js";import{w as a}from"./p-CYjZRKdI.js";import{w as r}from"./p-BSfqOkN_.js";import{w as o}from"./p-tzFCK9qn.js";import{w as d,v as l,a as h,c,d as u,m as f,n as p,j as v,k as b,o as m}from"./p-DyRaC0MB.js";import{I as g,O as y,D as w,e as R,d as _,j as S}from"./p-DdexOqTs.js";import{w as k}from"./p-CRLgp9-v.js";import{a as E}from"./p-DRikHQE-.js";import{a as D,D as x,b as O}from"./p-DgfL-ffj.js";import{F as C}from"./p-1jFf17Vj.js";import{I as M,S as j}from"./p--PSoPbDM.js";import"./p-BFTU3MAI.js";const z=class{constructor(s){t(this,s),a(this),this.errors=o(this),this.componentStyle=r(this)}getFontStyles(){return this.componentStyle((t=>{var s,i,e,n;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(e=t.global)||void 0===e?void 0:e.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}render(){return s(i,{key:"f43978af1c6658c6fa165093c3ada6b5f3b5986d",style:this.getFontStyles()},s("slot",{key:"b9c97432089676fc373b1d5ee59573ef5681a5c5"}))}get element(){return e(this)}};z.style=':host{flex:1;position:relative;overflow:hidden;display:block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}';const F=class{constructor(s){t(this,s),this.pageNumber=null,this.displayPageNumber=!0,a(this),this.errors=o(this),this.componentStyle=r(this)}getFontStyles(){return this.componentStyle((t=>{var s,i,e,n;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(e=t.global)||void 0===e?void 0:e.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}isValidHttpUrl(t){let s;try{s=new URL(t)}catch(t){return!1}return"http:"===s.protocol||"https:"===s.protocol}prepareAssetUrl(t){return this.isValidHttpUrl(t)?t:`./assets/${t}.png`}render(){return s(i,{key:"c445ca8c8abde56b46564932a6fcd079aa1e640d",id:this.displayPageNumber||this.text||this.code?"container-page-footer":"container",style:this.getFontStyles()},s("div",{key:"2e5829597d228c78acbbbf130bfc440092456cb4",id:"footer-text"},null!=this.text?s("span",{class:"note"},this.text):""),s("div",{key:"a2c98bf85fc41fa0aebc35fded0528cd8ba4948f",id:"code"},null!=this.code?s("img",{class:"image",src:n(`${this.prepareAssetUrl(this.code)}`)}):""),s("div",{key:"e879c6ed16996d8b505d64426e2253f3057863f5",id:"page-number"},this.displayPageNumber?s("span",{class:"page"},this.pageNumber):""))}static get assetsDirs(){return["assets"]}get element(){return e(this)}};F.style=':host{padding:0.2em 0.5em;display:flex;flex-direction:row;justify-content:space-between;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}:host(#container-page-footer){box-sizing:border-box;-webkit-box-sizing:border-box;border-top:0.1em solid #ddd}div#footer-text{font-size:0.6em;display:inline}div#code{flex:1;display:inline;text-align:right;padding-right:1em}div#page-number{font-size:0.6em;display:inline}.image{z-index:2;background-color:transparent;border:transparent;height:1.2em;width:auto}';const P=class{constructor(s){t(this,s),this.businessUnit="",this.order="category",this.orderDirection="asc",this.dateFormat="none",this.dateLink="none",d(this),a(this),this.t=k(this).t,this.errors=o(this),this.componentStyle=r(this)}validateScenario(t){const s="ERR_scenarios",i=l(t);i.length>0?this.errors.addOrReplace({id:s,type:"warning",message:"scenarios: invalid value(s) '"+(null==i?void 0:i.toString())+"' are not supported."}):this.errors.remove(s)}validateVariances(t){const s="ERR_variances",i=h(t);i.length>0?this.errors.addOrReplace({id:s,type:"warning",message:"variances: invalid value(s) '"+(null==i?void 0:i.toString())+"' are not supported."}):this.errors.remove(s)}validateOrder(t){const s=c(t),i="ERR_order";s.length>0?this.errors.addOrReplace({id:i,type:"warning",message:"order: invalid value(s) '"+(null==s?void 0:s.toString())+"' are not supported."}):this.errors.remove(i)}validateOrderDirection(t){const s="ERR_orderDirection";u(t)?this.errors.remove(s):this.errors.addOrReplace({id:s,type:"warning",message:"orderDirection: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}validateMeasures(t){const s="ERR_measures",i=f(t);i.length>0?this.errors.addOrReplace({id:s,type:"warning",message:"measures: invalid value(s) '"+(null==i?void 0:i.toString())+'\' are not supported. Valid format example: [{"name": "Bruttoumsatz", "unit": "mEUR"}]'}):this.errors.remove(s)}validateDateStart(t){const s="ERR_dateStart";p(t)||v(t)?this.errors.remove(s):this.errors.addOrReplace({id:s,type:"warning",message:"dateStart: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}validateDateEnd(t){const s="ERR_dateEnd";p(t)||v(t)?this.errors.remove(s):this.errors.addOrReplace({id:s,type:"warning",message:"dateStart: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}validateDateFormat(t){const s="ERR_dateFormat";b(t)||v(t)?this.errors.remove(s):this.errors.addOrReplace({id:s,type:"warning",message:"dateFormat: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}validateDateLink(t){const s="ERR_dateLink";m(t)||v(t)?this.errors.remove(s):this.errors.addOrReplace({id:s,type:"warning",message:"dateLink: invalid value '"+(null==t?void 0:t.toString())+"' is not supported."})}componentWillLoad(){this.validateScenario(this.scenarios),this.validateVariances(this.variances),this.validateMeasures(this.measures),this.validateDateStart(this.dateStart),this.validateDateEnd(this.dateEnd),this.validateDateFormat(this.dateFormat),this.validateDateLink(this.dateLink),this.validateOrderDirection(this.orderDirection),this.validateOrder(this.order)}prepareI18n(){const t=E,s=new Map(["SEPERATOR_WS","in","CONNECTOR_WS"].map((t=>[t,this.t(".".concat(t))]))),i=new Map(t.map((t=>[t,this.t("global.".concat(t))])));return new Map([...i.entries(),...s.entries()])}prepareI18nMode(){return g.META}prepareTitleOrder(){var t;return v(this.order)||v(this.orderDirection)?null:{hierarchy:this.order.split(",").map((t=>t.trim())),direction:y[null===(t=this.orderDirection)||void 0===t?void 0:t.toUpperCase()]}}prepareTitleTimePeriod(){var t,s;return v(this.dateStart)&&v(this.dateEnd)||v(this.dateLink)?null:{start:w.fromISO(this.dateStart),end:w.fromISO(this.dateEnd),format:x[null===(t=this.dateFormat)||void 0===t?void 0:t.toUpperCase()],link:D[null===(s=this.dateLink)||void 0===s?void 0:s.toUpperCase()]}}prepareMeasures(){return v(this.measures)?[]:JSON.parse(this.measures)}prepareScenarios(){var t,s,i,e;if(v(this.scenarios)&&v(this.variances))return[];let n=[];return(null===(t=this.scenarios)||void 0===t?void 0:t.trim().length)>0&&(n=n.concat(null===(s=this.scenarios)||void 0===s?void 0:s.split(","))),(null===(i=this.variances)||void 0===i?void 0:i.trim().length)>0&&(n=n.concat(null===(e=this.variances)||void 0===e?void 0:e.split(","))),n.map((t=>t.trim()))}prepareBusinessUnit(){return v(this.businessUnit)||"null"===this.businessUnit?null:this.businessUnit}getFontStyles(){return this.componentStyle((t=>{var s,i,e,n;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(e=t.global)||void 0===e?void 0:e.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}render(){const t=this.getFontStyles();return s(i,{key:"029abd8096c5274f94123da2dc1c1e88e76be922",style:t},s("ibcs-title",{key:"c8b128a6ea36d44d8a0730898b35fa3f944e23ae",businessUnit:this.prepareBusinessUnit(),scenarios:this.prepareScenarios(),measures:this.prepareMeasures(),timeperiod:this.prepareTitleTimePeriod(),order:this.prepareTitleOrder(),i18n:this.prepareI18n(),"i18n-mode":this.prepareI18nMode()}))}get element(){return e(this)}static get watchers(){return{scenarios:[{validateScenario:0}],variances:[{validateVariances:0}],order:[{validateOrder:0}],orderDirection:[{validateOrderDirection:0}],measures:[{validateMeasures:0}],dateStart:[{validateDateStart:0}],dateEnd:[{validateDateEnd:0}],dateFormat:[{validateDateFormat:0}],dateLink:[{validateDateLink:0}]}}};P.style=':host{padding:0.5em;margin-bottom:0.5em;box-sizing:border-box;-webkit-box-sizing:border-box;width:100%;display:block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}';class T{constructor(){}createMeasures(t,s,i){if(this.allMeasuresUseSameUnit(t)){const e=t.length;let n="",a="";for(let r=0;r<e;r++){let o="";r>0&&(o=s.get("SEPERATOR_WS")),e>1&&r===e-1&&(o=s.get("CONNECTOR_WS")),i===g.ALL?(n=(s.get(n)||n)+o+(s.get(t[r].name)||t[r].name),a=s.get(t[r].unit)||t[r].unit):(n=n+o+t[r].name,a=t[r].unit)}return[{name:n,unit:a}]}return t}createDimension(t,s,i,e,n){let a="";return void 0!==s&&(a=(new O).getDateLinkString(s.start,s.end,s.link,s.format,n)),a+t.map((t=>{let s="";return null!=i&&null!=i.hierarchy&&i.hierarchy.find((s=>s===t))&&(s=e.get("asc"===i.direction?"ORDER_asc":"ORDER_desc")),"".concat(" ",C.translateScenarioLabel(t,e),s)})).toString()}allMeasuresUseSameUnit(t){const s=new Map;return t.forEach((function(t){s.set(t.unit,!0)})),1===s.size}}class L{constructor(){this.businessunit="",this.measures=[],this.scenarios=[],this.i18nMode=g.ALL,this.intervalSpanLimit=32}}class N{constructor(t,s,i,e){this.measureEntryAdapter=t,this.timePeriodAdapter=s,this.orderAdapter=i,this.stringAdapter=e}adapt(t){const s=new L;return R.isString(t.businessunit)&&(s.businessunit=t.businessunit),R.isArray(t.measures)&&(s.measures=_.adaptArray(t.measures,this.measureEntryAdapter)),R.isArray(t.scenarios)&&(s.scenarios=_.adaptArray(t.scenarios,this.stringAdapter)),R.isExisting(t.timeperiod)&&(s.timeperiod=this.timePeriodAdapter.adapt(t.timeperiod)),R.isNumber(t.intervalSpanLimit)&&(s.intervalSpanLimit=t.intervalSpanLimit),R.isExisting(t.i18nMode)&&(s.i18nMode=t.i18nMode),R.isExisting(t.order)&&(s.order=this.orderAdapter.adapt(t.order)),s}default(){return new L}}var U;!function(t){t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.DIRTY=1]="DIRTY"}(U||(U={}));class A{constructor(t){this.i18n=new Map,this.unit="",this.measures=[],this.dimension="",this.config=new L,this.state=U.DIRTY,this.ruleSet=t||new M,this.dataSetFactory=new T,this.state=U.DIRTY,this.setI18n(new Map)}setI18n(t){this.state=U.DIRTY;const s=new Map([["SEPERATOR_WS",", "],["in","in"],["ORDER_asc","↑"],["ORDER_desc","↓"],["ac1","AC"],["pp1","PY"],["fc1","FC"],["pl1","PL"],["ac2","AC2"],["pp2","PY2"],["fc2","FC2"],["pl2","PL2"],["ac3","AC3"],["pp3","PY3"],["fc3","FC3"],["pp3","PL3"],["ac4","AC4"],["py4","PY4"],["fc4","FC4"],["pp4","PL4"],["category"," "],["operation"," "],["there_of","davon"],["part_of","in % von"],["ibcssymbol_delta_ac","Δ{%}"],["ibcssymbol_delta_generic","Δ({%})"],["ibcssymbol_delta_ac_relative","Δ{%}%"],["ibcssymbol_delta_generic_relative","Δ({%})%"],["SUM_TOTAL","❖"],["CONNECTOR_WS"," und "]]);this.i18n=new Map([...s,...t||new Map])}update(){return U.DIRTY===this.state&&(this.unit=this.config.businessunit,this.measures=this.dataSetFactory.createMeasures(this.config.measures,this.i18n,this.config.i18nMode),this.dimension=this.dataSetFactory.createDimension(this.config.scenarios,this.config.timeperiod,this.config.order,this.i18n,this.config.intervalSpanLimit),this.state=U.UP_TO_DATE),this}setConfig(t){this.config=this.initConfig(t)}initConfig(t){this.state=U.DIRTY;const s=t,i=this;return t.scenarios.sort(((t,s)=>i.ruleSet.getScenarioSorIndex(t)-i.ruleSet.getScenarioSorIndex(s))),s}}class W{constructor(t="",s=""){this.name=t,this.unit=s}}class I{construnctor(){}adapt(t){const s=new W;return R.isString(t.name)&&(s.name=t.name),R.isString(t.unit)&&(s.unit=t.unit),s}default(){return new W("","")}}class B{constructor(t=w.now(),s=w.now(),i=x.AUTO,e=D.AUTO){this.start=t,this.end=s,this.format=i,this.link=e}}class Y{construnctor(){}adapt(t){const s=new B;return R.isDate(t.start)&&(s.start=t.start),R.isDate(t.end)&&(s.end=t.end),R.isExisting(t.format)&&(s.format=t.format),R.isExisting(t.link)&&(s.link=t.link),s}default(){return new B}}const V=class{constructor(s){t(this,s),this.businessUnit="",this.scenarios=[],this.measures=[],this.intervalSpanLimit=28,this.order={hierarchy:[],direction:y.ASC},this.i18n=new Map,this.i18nMode=g.ALL,this.title=new A(new M)}async setBusinessUnit(t){this.businessUnit=t}async setProps(t){Object.keys(t).forEach((s=>{this[s]=t[s]}))}render(){return s("div",{key:"08439c867ae47a9ee17ef8280801896a823c8826"},s("div",{key:"bb5b7325de2ae2f2e0bdba8d7f7f36511835efa9"},this.title.unit),s("div",{key:"3edb730c95280ca0c47db70e32dd8e471747d989"},this.title.measures.map(((t,i)=>s("span",null,this.isFirstElement(i)?this.title.i18n.get("SEPERATOR_WS"):"",s("span",{class:"measure"},t.name)," ",t.unit?this.title.i18n.get("in"):""," ",t.unit)))),s("div",{key:"3bae51f2fddef6b2195d1c24915512b6255c9a75"},this.title.dimension))}componentWillLoad(){const t=this.prepareConfig();this.title=new A(new M),this.title.setI18n(this.i18n),this.title.setConfig(t)}componentWillUpdate(){const t=this.prepareConfig();this.title.setI18n(this.i18n),this.title.setConfig(t)}componentWillRender(){this.title.update()}isFirstElement(t){return 0!==t}prepareConfig(){return new N(new I,new Y,new S(new j),new j).adapt({businessunit:this.businessUnit,measures:this.measures,scenarios:this.scenarios,timeperiod:this.timeperiod,intervalSpanLimit:this.intervalSpanLimit,i18nMode:this.i18nMode,order:this.order})}};V.style=':host{display:block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.measure{font-weight:bold}div{background-color:var(--bn-font-background, white);color:var(--bn-font-color, black)}';export{z as bn_body,F as bn_footer,P as bn_title,V as ibcs_title}
|