@veecode-platform/plugin-veecode-homepage-dynamic 0.2.2 → 0.2.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/components/VeeCodeHomePage.esm.js +0 -2
- package/dist/components/VeeCodeHomePage.esm.js.map +1 -1
- package/dist-scalprum/plugin-manifest.json +3 -3
- package/dist-scalprum/static/{1213.412457e8.chunk.js → 1213.aff960fc.chunk.js} +3 -3
- package/dist-scalprum/static/1213.aff960fc.chunk.js.map +1 -0
- package/dist-scalprum/static/2211.f5266f49.chunk.js +29 -0
- package/dist-scalprum/static/2211.f5266f49.chunk.js.map +1 -0
- package/dist-scalprum/static/3837.e9b60659.chunk.js +2 -0
- package/dist-scalprum/static/3837.e9b60659.chunk.js.map +1 -0
- package/dist-scalprum/static/41.53c70bd6.chunk.js +2 -0
- package/dist-scalprum/static/41.53c70bd6.chunk.js.map +1 -0
- package/dist-scalprum/static/{4197.8a8b877f.chunk.js → 4197.0e023080.chunk.js} +2 -2
- package/dist-scalprum/static/{4197.8a8b877f.chunk.js.map → 4197.0e023080.chunk.js.map} +1 -1
- package/dist-scalprum/static/{4864.0a352dc6.chunk.js → 4864.3cede332.chunk.js} +2 -2
- package/dist-scalprum/static/{4864.0a352dc6.chunk.js.map → 4864.3cede332.chunk.js.map} +1 -1
- package/dist-scalprum/static/{5255.21365d93.chunk.js → 5255.31f4471a.chunk.js} +2 -2
- package/dist-scalprum/static/{5255.21365d93.chunk.js.map → 5255.31f4471a.chunk.js.map} +1 -1
- package/dist-scalprum/static/5749.9f83e5fe.chunk.js +179 -0
- package/dist-scalprum/static/5749.9f83e5fe.chunk.js.map +1 -0
- package/dist-scalprum/static/{5888.d5ff87d6.chunk.js → 5888.39088266.chunk.js} +1 -1
- package/dist-scalprum/static/{5888.d5ff87d6.chunk.js.map → 5888.39088266.chunk.js.map} +1 -1
- package/dist-scalprum/static/6123.b8f54e25.chunk.js +2 -0
- package/dist-scalprum/static/6123.b8f54e25.chunk.js.map +1 -0
- package/dist-scalprum/static/{6356.0690b575.chunk.js → 6356.a59d5e2e.chunk.js} +2 -2
- package/dist-scalprum/static/{6356.0690b575.chunk.js.map → 6356.a59d5e2e.chunk.js.map} +1 -1
- package/dist-scalprum/static/{6700.f2dbf122.chunk.js → 6700.8ab31ec1.chunk.js} +1 -1
- package/dist-scalprum/static/{6700.f2dbf122.chunk.js.map → 6700.8ab31ec1.chunk.js.map} +1 -1
- package/dist-scalprum/static/8692.8ab75fef.chunk.js +2 -0
- package/dist-scalprum/static/8692.8ab75fef.chunk.js.map +1 -0
- package/dist-scalprum/static/9541.dde4bd87.chunk.js +3 -0
- package/dist-scalprum/static/9541.dde4bd87.chunk.js.map +1 -0
- package/dist-scalprum/static/{9633.d7b4641e.chunk.js → 9633.47d13d21.chunk.js} +2 -2
- package/dist-scalprum/static/{9633.d7b4641e.chunk.js.map → 9633.47d13d21.chunk.js.map} +1 -1
- package/dist-scalprum/static/{exposed-PluginRoot.bf5e0b03.chunk.js → exposed-PluginRoot.221d8f69.chunk.js} +2 -2
- package/dist-scalprum/static/{exposed-PluginRoot.bf5e0b03.chunk.js.map → exposed-PluginRoot.221d8f69.chunk.js.map} +1 -1
- package/dist-scalprum/{veecode-platform.plugin-veecode-homepage.52a7b0ce89460aa40ee1.js → veecode-platform.plugin-veecode-homepage.ea406b87d3dc1c912550.js} +2 -2
- package/dist-scalprum/veecode-platform.plugin-veecode-homepage.ea406b87d3dc1c912550.js.map +1 -0
- package/package.json +1 -1
- package/dist/components/headerComponent/HeaderComponent.esm.js +0 -67
- package/dist/components/headerComponent/HeaderComponent.esm.js.map +0 -1
- package/dist/components/headerComponent/iconButtonComponent/IconButtonComponent.esm.js +0 -35
- package/dist/components/headerComponent/iconButtonComponent/IconButtonComponent.esm.js.map +0 -1
- package/dist/components/headerComponent/logout/Logout.esm.js +0 -30
- package/dist/components/headerComponent/logout/Logout.esm.js.map +0 -1
- package/dist/components/headerComponent/menuItems/MenuItems.esm.js +0 -134
- package/dist/components/headerComponent/menuItems/MenuItems.esm.js.map +0 -1
- package/dist/components/headerComponent/notifications/Notifications.esm.js +0 -72
- package/dist/components/headerComponent/notifications/Notifications.esm.js.map +0 -1
- package/dist/components/headerComponent/profile/Profle.esm.js +0 -19
- package/dist/components/headerComponent/profile/Profle.esm.js.map +0 -1
- package/dist/components/headerComponent/searchComponent/SearchBar.esm.js +0 -113
- package/dist/components/headerComponent/searchComponent/SearchBar.esm.js.map +0 -1
- package/dist/components/headerComponent/searchComponent/SearchComponent.esm.js +0 -13
- package/dist/components/headerComponent/searchComponent/SearchComponent.esm.js.map +0 -1
- package/dist/components/headerComponent/searchComponent/SearchInput.esm.js +0 -32
- package/dist/components/headerComponent/searchComponent/SearchInput.esm.js.map +0 -1
- package/dist/components/headerComponent/searchComponent/SearchOption.esm.js +0 -50
- package/dist/components/headerComponent/searchComponent/SearchOption.esm.js.map +0 -1
- package/dist/components/headerComponent/searchComponent/SearchResultItem.esm.js +0 -44
- package/dist/components/headerComponent/searchComponent/SearchResultItem.esm.js.map +0 -1
- package/dist/components/headerComponent/toggleTheme/ToggleTheme.esm.js +0 -37
- package/dist/components/headerComponent/toggleTheme/ToggleTheme.esm.js.map +0 -1
- package/dist/hooks/useDebouncedCallback.esm.js +0 -26
- package/dist/hooks/useDebouncedCallback.esm.js.map +0 -1
- package/dist/utils/stringUtils.esm.js +0 -35
- package/dist/utils/stringUtils.esm.js.map +0 -1
- package/dist-scalprum/static/1213.412457e8.chunk.js.map +0 -1
- package/dist-scalprum/static/1853.9c4997f9.chunk.js +0 -2
- package/dist-scalprum/static/1853.9c4997f9.chunk.js.map +0 -1
- package/dist-scalprum/static/41.a129355f.chunk.js +0 -2
- package/dist-scalprum/static/41.a129355f.chunk.js.map +0 -1
- package/dist-scalprum/static/5211.b1dc9542.chunk.js +0 -3
- package/dist-scalprum/static/5211.b1dc9542.chunk.js.map +0 -1
- package/dist-scalprum/static/5571.73942ff6.chunk.js +0 -206
- package/dist-scalprum/static/5571.73942ff6.chunk.js.map +0 -1
- package/dist-scalprum/static/6123.94c2f019.chunk.js +0 -2
- package/dist-scalprum/static/6123.94c2f019.chunk.js.map +0 -1
- package/dist-scalprum/static/6460.86145f5a.chunk.js +0 -2
- package/dist-scalprum/static/6460.86145f5a.chunk.js.map +0 -1
- package/dist-scalprum/static/6921.efadb98d.chunk.js +0 -2
- package/dist-scalprum/static/6921.efadb98d.chunk.js.map +0 -1
- package/dist-scalprum/veecode-platform.plugin-veecode-homepage.52a7b0ce89460aa40ee1.js.map +0 -1
- /package/dist-scalprum/static/{1213.412457e8.chunk.js.LICENSE.txt → 1213.aff960fc.chunk.js.LICENSE.txt} +0 -0
- /package/dist-scalprum/static/{5571.73942ff6.chunk.js.LICENSE.txt → 5749.9f83e5fe.chunk.js.LICENSE.txt} +0 -0
- /package/dist-scalprum/static/{5211.b1dc9542.chunk.js.LICENSE.txt → 9541.dde4bd87.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkveecode_platform_plugin_veecode_homepage=self.webpackChunkveecode_platform_plugin_veecode_homepage||[]).push([[6356],{20987:(e,t,n)=>{n.d(t,{$:()=>o,s:()=>a});var r=n(78560),s=n(55488),i=n(9490);const a=(0,n(64218).getOrCreateGlobalSingleton)("catalog:entity-route-ref",()=>(0,i.createRouteRef)({id:"catalog:entity",params:["namespace","kind","name"]}));function o(e,t){let n,i,a;if("string"==typeof e){const t=(0,r.KU)(e);n=t.kind,i=t.namespace,a=t.name}else"metadata"in e?(n=e.kind,i=e.metadata.namespace,a=e.metadata.name):(n=e.kind,i=e.namespace,a=e.name);n=n.toLocaleLowerCase("en-US"),i=i?.toLocaleLowerCase("en-US")??s.oQ;const{encodeParams:o=!1}=t||{};return o&&(n=encodeURIComponent(n),i=encodeURIComponent(i),a=encodeURIComponent(a)),{kind:n,namespace:i,name:a}}},12431:(e,t,n)=>{n.d(t,{E:()=>c});var r=n(31085),s=n(95478),i=n(64947),a=n(87667),o=n(98254),l=n(55138);const c=()=>{const{collapsed:e,setCollapsed:t,visits:n,numVisitsOpen:c,loading:u}=(0,a.NT)(),d=(0,s.useCallback)(()=>t(e=>!e),[t]),{t:h}=(0,o.useTranslationRef)(l.g),m=h(e?"visitedByType.action.viewMore":"visitedByType.action.viewLess");return!u&&n.length<=c?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(i.A,{variant:"text",onClick:d,children:m})}},81706:(e,t,n)=>{n.d(t,{U:()=>Os});var r=n(31085),s=n(95478),i=n(98590);function a(e){try{const t=e.getString("field"),n=e.getString("operator"),r=function(e){let t;try{t=e.getString("value")}catch(n){try{t=e.getNumber("value")}catch{}}return t}(e);return(0,i.Z)(n)&&void 0!==r?{field:t,operator:n,value:r}:void 0}catch(e){return}}function o(e){try{return e.map(a).filter(Boolean)}catch{return}}var l=n(69621),c=n(58007),u=n(8109),d=n(91467),h=n(5951),m=n(37976),f=n(72501),y=n(39970),p=n(9490),g=n(20987),w=n(42791);const v=(0,s.forwardRef)((e,t)=>{const{entityRef:n,defaultKind:s,defaultNamespace:i,title:a,children:o,hideIcon:l,disableTooltip:c,...u}=e,d=function(e){return(0,p.useRouteRef)(g.s)((0,g.$)(e,{encodeParams:!0}))}(e.entityRef),h=o??a??(0,r.jsx)(w.d,{entityRef:n,defaultKind:s,defaultNamespace:i,hideIcon:l,disableTooltip:c});return(0,r.jsx)(y.N_,{...u,ref:t,to:d,children:h})}),k=(0,m.makeStyles)(e=>({name:{marginLeft:"0.8rem",marginRight:"0.8rem",fontSize:e.typography.body1.fontSize}})),b=({visit:e})=>{const t=k();return e.entityRef?(0,r.jsx)(v,{entityRef:e.entityRef,className:t.name,hideIcon:!0,disableTooltip:!0}):(0,r.jsx)(f.A,{component:y.N_,to:e.pathname,noWrap:!0,className:t.name,children:e.name})};class S extends Error{}class T extends S{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class x extends S{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class O extends S{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class N extends S{}class C extends S{constructor(e){super(`Invalid unit ${e}`)}}class M extends S{}class D extends S{constructor(){super("Zone is an abstract class")}}const V="numeric",I="short",E="long",F={year:V,month:V,day:V},L={year:V,month:I,day:V},$={year:V,month:I,day:V,weekday:I},A={year:V,month:E,day:V},j={year:V,month:E,day:V,weekday:E},W={hour:V,minute:V},Z={hour:V,minute:V,second:V},z={hour:V,minute:V,second:V,timeZoneName:I},U={hour:V,minute:V,second:V,timeZoneName:E},R={hour:V,minute:V,hourCycle:"h23"},_={hour:V,minute:V,second:V,hourCycle:"h23"},q={hour:V,minute:V,second:V,hourCycle:"h23",timeZoneName:I},G={hour:V,minute:V,second:V,hourCycle:"h23",timeZoneName:E},H={year:V,month:V,day:V,hour:V,minute:V},P={year:V,month:V,day:V,hour:V,minute:V,second:V},Y={year:V,month:I,day:V,hour:V,minute:V},J={year:V,month:I,day:V,hour:V,minute:V,second:V},B={year:V,month:I,day:V,weekday:I,hour:V,minute:V},K={year:V,month:E,day:V,hour:V,minute:V,timeZoneName:I},X={year:V,month:E,day:V,hour:V,minute:V,second:V,timeZoneName:I},Q={year:V,month:E,day:V,weekday:E,hour:V,minute:V,timeZoneName:E},ee={year:V,month:E,day:V,weekday:E,hour:V,minute:V,second:V,timeZoneName:E};class te{get type(){throw new D}get name(){throw new D}get ianaName(){return this.name}get isUniversal(){throw new D}offsetName(e,t){throw new D}formatOffset(e,t){throw new D}offset(e){throw new D}equals(e){throw new D}get isValid(){throw new D}}let ne=null;class re extends te{static get instance(){return null===ne&&(ne=new re),ne}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Tt(e,t,n)}formatOffset(e,t){return Ct(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}const se=new Map,ie={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},ae=new Map;class oe extends te{static create(e){let t=ae.get(e);return void 0===t&&ae.set(e,t=new oe(e)),t}static resetCache(){ae.clear(),se.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=oe.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Tt(e,t,n,this.name)}formatOffset(e,t){return Ct(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const n=function(e){let t=se.get(e);return void 0===t&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),se.set(e,t)),t}(this.name);let[r,s,i,a,o,l,c]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const{type:t,value:s}=n[e],i=ie[t];"era"===t?r[i]=s:nt(i)||(r[i]=parseInt(s,10))}return r}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,a,o,l,c,u]=r;return[a,s,i,o,l,c,u]}(n,t);"BC"===a&&(r=1-Math.abs(r));let u=+t;const d=u%1e3;return u-=d>=0?d:1e3+d,(vt({year:r,month:s,day:i,hour:24===o?0:o,minute:l,second:c,millisecond:0})-u)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let le={};const ce=new Map;function ue(e,t={}){const n=JSON.stringify([e,t]);let r=ce.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(e,t),ce.set(n,r)),r}const de=new Map,he=new Map;let me=null;const fe=new Map;function ye(e){let t=fe.get(e);return void 0===t&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),fe.set(e,t)),t}const pe=new Map;function ge(e,t,n,r){const s=e.listingMode();return"error"===s?null:"en"===s?n(t):r(t)}class we{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...i}=n;if(!t||Object.keys(i).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=de.get(n);return void 0===r&&(r=new Intl.NumberFormat(e,t),de.set(n,r)),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return dt(this.floor?Math.floor(e):yt(e,3),this.padTo)}}class ve{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&oe.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=ue(t,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ke{constructor(e,t,n){this.opts={style:"long",...n},!t&&it()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,s=JSON.stringify([e,r]);let i=he.get(s);return void 0===i&&(i=new Intl.RelativeTimeFormat(e,t),he.set(s,i)),i}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,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(e);if("auto"===n&&i){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${s[e][0]}`;case-1:return n?"yesterday":`last ${s[e][0]}`;case 0:return n?"today":`this ${s[e][0]}`}}const a=Object.is(t,-0)||t<0,o=Math.abs(t),l=1===o,c=s[e],u=r?l?c[1]:c[2]||c[1]:l?s[e][0]:e;return a?`${o} ${u} ago`:`in ${o} ${u}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const be={firstDay:1,minimalDays:4,weekend:[6,7]};class Se{static fromOpts(e){return Se.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,r,s=!1){const i=e||ze.defaultLocale,a=i||(s?"en-US":me||(me=(new Intl.DateTimeFormat).resolvedOptions().locale,me)),o=t||ze.defaultNumberingSystem,l=n||ze.defaultOutputCalendar,c=ct(r)||ze.defaultWeekSettings;return new Se(a,o,l,c,i)}static resetCache(){me=null,ce.clear(),de.clear(),he.clear(),fe.clear(),pe.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:r}={}){return Se.create(e,t,n,r)}constructor(e,t,n,r,s){const[i,a,o]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=ue(e).resolvedOptions(),r=e}catch(s){const i=e.substring(0,n);t=ue(i).resolvedOptions(),r=i}const{numberingSystem:s,calendar:i}=t;return[r,s,i]}}(e);this.locale=i,this.numberingSystem=t||a||null,this.outputCalendar=n||o||null,this.weekSettings=r,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===ye(e.locale).numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Se.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,ct(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return ge(this,e,Et,()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),r=(t&=!n)?{month:e,day:"numeric"}:{month:e},s=t?"format":"standalone";if(!this.monthsCache[s][e]){const t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,"month");this.monthsCache[s][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=$r.utc(2009,n,1);t.push(e(r))}return t}(t)}return this.monthsCache[s][e]})}weekdays(e,t=!1){return ge(this,e,At,()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=$r.utc(2016,11,13+n);t.push(e(r))}return t}(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return ge(this,void 0,()=>jt,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[$r.utc(2016,11,13,9),$r.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ge(this,e,Ut,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[$r.utc(-40,1,1),$r.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new we(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new ve(e,this.intl,t)}relFormatter(e={}){return new ke(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=le[n];return r||(r=new Intl.ListFormat(e,t),le[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||ye(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:at()?function(e){let t=pe.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...be,...t}),pe.set(e,t)}return t}(this.locale):be}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Te=null;class xe extends te{static get utcInstance(){return null===Te&&(Te=new xe(0)),Te}static instance(e){return 0===e?xe.utcInstance:new xe(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new xe(xt(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Ct(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Ct(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Ct(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class Oe extends te{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ne(e,t){if(nt(e)||null===e)return t;if(e instanceof te)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?re.instance:"utc"===n||"gmt"===n?xe.utcInstance:xe.parseSpecifier(n)||oe.create(e)}return rt(e)?xe.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new Oe(e)}const Ce={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Me={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]},De=Ce.hanidec.replace(/[\[|\]]/g,"").split(""),Ve=new Map;function Ie({numberingSystem:e},t=""){const n=e||"latn";let r=Ve.get(n);void 0===r&&(r=new Map,Ve.set(n,r));let s=r.get(t);return void 0===s&&(s=new RegExp(`${Ce[n]}${t}`),r.set(t,s)),s}let Ee,Fe=()=>Date.now(),Le="system",$e=null,Ae=null,je=null,We=60,Ze=null;class ze{static get now(){return Fe}static set now(e){Fe=e}static set defaultZone(e){Le=e}static get defaultZone(){return Ne(Le,re.instance)}static get defaultLocale(){return $e}static set defaultLocale(e){$e=e}static get defaultNumberingSystem(){return Ae}static set defaultNumberingSystem(e){Ae=e}static get defaultOutputCalendar(){return je}static set defaultOutputCalendar(e){je=e}static get defaultWeekSettings(){return Ze}static set defaultWeekSettings(e){Ze=ct(e)}static get twoDigitCutoffYear(){return We}static set twoDigitCutoffYear(e){We=e%100}static get throwOnInvalid(){return Ee}static set throwOnInvalid(e){Ee=e}static resetCaches(){Se.resetCache(),oe.resetCache(),$r.resetCache(),Ve.clear()}}class Ue{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Re=[0,31,59,90,120,151,181,212,243,273,304,334],_e=[0,31,60,91,121,152,182,213,244,274,305,335];function qe(e,t){return new Ue("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Ge(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function He(e,t,n){return n+(pt(e)?_e:Re)[t-1]}function Pe(e,t){const n=pt(e)?_e:Re,r=n.findIndex(e=>e<t);return{month:r+1,day:t-n[r]}}function Ye(e,t){return(e-t+7)%7+1}function Je(e,t=4,n=1){const{year:r,month:s,day:i}=e,a=He(r,s,i),o=Ye(Ge(r,s,i),n);let l,c=Math.floor((a-o+14-t)/7);return c<1?(l=r-1,c=bt(l,t,n)):c>bt(r,t,n)?(l=r+1,c=1):l=r,{weekYear:l,weekNumber:c,weekday:o,...Mt(e)}}function Be(e,t=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=e,a=Ye(Ge(r,1,t),n),o=gt(r);let l,c=7*s+i-a-7+t;c<1?(l=r-1,c+=gt(l)):c>o?(l=r+1,c-=gt(r)):l=r;const{month:u,day:d}=Pe(l,c);return{year:l,month:u,day:d,...Mt(e)}}function Ke(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:He(t,n,r),...Mt(e)}}function Xe(e){const{year:t,ordinal:n}=e,{month:r,day:s}=Pe(t,n);return{year:t,month:r,day:s,...Mt(e)}}function Qe(e,t){if(!nt(e.localWeekday)||!nt(e.localWeekNumber)||!nt(e.localWeekYear)){if(!nt(e.weekday)||!nt(e.weekNumber)||!nt(e.weekYear))throw new N("Cannot mix locale-based week fields with ISO-based week fields");return nt(e.localWeekday)||(e.weekday=e.localWeekday),nt(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),nt(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function et(e){const t=st(e.year),n=ut(e.month,1,12),r=ut(e.day,1,wt(e.year,e.month));return t?n?!r&&qe("day",e.day):qe("month",e.month):qe("year",e.year)}function tt(e){const{hour:t,minute:n,second:r,millisecond:s}=e,i=ut(t,0,23)||24===t&&0===n&&0===r&&0===s,a=ut(n,0,59),o=ut(r,0,59),l=ut(s,0,999);return i?a?o?!l&&qe("millisecond",s):qe("second",r):qe("minute",n):qe("hour",t)}function nt(e){return void 0===e}function rt(e){return"number"==typeof e}function st(e){return"number"==typeof e&&e%1==0}function it(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function at(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function ot(e,t,n){if(0!==e.length)return e.reduce((e,r)=>{const s=[t(r),r];return e&&n(e[0],s[0])===e[0]?e:s},null)[1]}function lt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ct(e){if(null==e)return null;if("object"!=typeof e)throw new M("Week settings must be an object");if(!ut(e.firstDay,1,7)||!ut(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!ut(e,1,7)))throw new M("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function ut(e,t,n){return st(e)&&e>=t&&e<=n}function dt(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function ht(e){return nt(e)||null===e||""===e?void 0:parseInt(e,10)}function mt(e){return nt(e)||null===e||""===e?void 0:parseFloat(e)}function ft(e){if(!nt(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function yt(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function pt(e){return e%4==0&&(e%100!=0||e%400==0)}function gt(e){return pt(e)?366:365}function wt(e,t){const n=(r=t-1)-12*Math.floor(r/12)+1;var r;return 2===n?pt(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function vt(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function kt(e,t,n){return-Ye(Ge(e,1,t),n)+t-1}function bt(e,t=4,n=1){const r=kt(e,t,n),s=kt(e+1,t,n);return(gt(e)-r+s)/7}function St(e){return e>99?e:e>ze.twoDigitCutoffYear?1900+e:2e3+e}function Tt(e,t,n,r=null){const s=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:t,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(s).find(e=>"timezonename"===e.type.toLowerCase());return o?o.value:null}function xt(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function Ot(e){const t=Number(e);if("boolean"==typeof e||""===e||!Number.isFinite(t))throw new M(`Invalid unit value ${e}`);return t}function Nt(e,t){const n={};for(const r in e)if(lt(e,r)){const s=e[r];if(null==s)continue;n[t(r)]=Ot(s)}return n}function Ct(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${dt(n,2)}:${dt(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${dt(n,2)}${dt(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Mt(e){return function(e){return["hour","minute","second","millisecond"].reduce((t,n)=>(t[n]=e[n],t),{})}(e)}const Dt=["January","February","March","April","May","June","July","August","September","October","November","December"],Vt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],It=["J","F","M","A","M","J","J","A","S","O","N","D"];function Et(e){switch(e){case"narrow":return[...It];case"short":return[...Vt];case"long":return[...Dt];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 Ft=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Lt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],$t=["M","T","W","T","F","S","S"];function At(e){switch(e){case"narrow":return[...$t];case"short":return[...Lt];case"long":return[...Ft];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const jt=["AM","PM"],Wt=["Before Christ","Anno Domini"],Zt=["BC","AD"],zt=["B","A"];function Ut(e){switch(e){case"narrow":return[...zt];case"short":return[...Zt];case"long":return[...Wt];default:return null}}function Rt(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const _t={D:F,DD:L,DDD:A,DDDD:j,t:W,tt:Z,ttt:z,tttt:U,T:R,TT:_,TTT:q,TTTT:G,f:H,ff:Y,fff:K,ffff:Q,F:P,FF:J,FFF:X,FFFF:ee};class qt{static create(e,t={}){return new qt(e,t)}static parseFormat(e){let t=null,n="",r=!1;const s=[];for(let i=0;i<e.length;i++){const a=e.charAt(i);"'"===a?((n.length>0||r)&&s.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(e){return _t[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return dt(e,t);const r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(t,n)=>this.loc.extract(e,t,n),i=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=(t,r)=>n?function(e,t){return Et(t)[e.month-1]}(e,t):s(r?{month:t}:{month:t,day:"numeric"},"month"),o=(t,r)=>n?function(e,t){return At(t)[e.weekday-1]}(e,t):s(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=qt.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?function(e,t){return Ut(t)[e.year<0?0:1]}(e,t):s({era:t},"era");return Rt(qt.parseFormat(t),t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return 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 e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return n?function(e){return jt[e.hour<12?0:1]}(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?s({day:"numeric"},"day"):this.num(e.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(e.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(e.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}})}formatDurationFromString(e,t){const n="negativeLargestOnly"===this.opts.signMode?-1:1,r=e=>{switch(e[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=qt.parseFormat(t),i=s.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),a=e.shiftTo(...i.map(r).filter(e=>e));return Rt(s,((e,t)=>s=>{const i=r(s);if(i){const r=t.isNegativeDuration&&i!==t.largestUnit?n:1;let a;return a="negativeLargestOnly"===this.opts.signMode&&i!==t.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(e.get(i)*r,s.length,a)}return s})(a,{isNegativeDuration:a<0,largestUnit:Object.keys(a.values)[0]}))}}const Gt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ht(...e){const t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function Pt(...e){return t=>e.reduce(([e,n,r],s)=>{const[i,a,o]=s(t,r);return[{...e,...i},a||n,o]},[{},null,1]).slice(0,2)}function Yt(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function Jt(...e){return(t,n)=>{const r={};let s;for(s=0;s<e.length;s++)r[e[s]]=ht(t[n+s]);return[r,null,n+s]}}const Bt=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Kt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Xt=RegExp(`${Kt.source}(?:${Bt.source}?(?:\\[(${Gt.source})\\])?)?`),Qt=RegExp(`(?:[Tt]${Xt.source})?`),en=Jt("weekYear","weekNumber","weekDay"),tn=Jt("year","ordinal"),nn=RegExp(`${Kt.source} ?(?:${Bt.source}|(${Gt.source}))?`),rn=RegExp(`(?: ${nn.source})?`);function sn(e,t,n){const r=e[t];return nt(r)?n:ht(r)}function an(e,t){return[{hours:sn(e,t,0),minutes:sn(e,t+1,0),seconds:sn(e,t+2,0),milliseconds:ft(e[t+3])},null,t+4]}function on(e,t){const n=!e[t]&&!e[t+1],r=xt(e[t+1],e[t+2]);return[{},n?null:xe.instance(r),t+3]}function ln(e,t){return[{},e[t]?oe.create(e[t]):null,t+1]}const cn=RegExp(`^T?${Kt.source}$`),un=/^-?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 dn(e){const[t,n,r,s,i,a,o,l,c]=e,u="-"===t[0],d=l&&"-"===l[0],h=(e,t=!1)=>void 0!==e&&(t||e&&u)?-e:e;return[{years:h(mt(n)),months:h(mt(r)),weeks:h(mt(s)),days:h(mt(i)),hours:h(mt(a)),minutes:h(mt(o)),seconds:h(mt(l),"-0"===l),milliseconds:h(ft(c),d)}]}const hn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function mn(e,t,n,r,s,i,a){const o={year:2===t.length?St(ht(t)):ht(t),month:Vt.indexOf(n)+1,day:ht(r),hour:ht(s),minute:ht(i)};return a&&(o.second=ht(a)),e&&(o.weekday=e.length>3?Ft.indexOf(e)+1:Lt.indexOf(e)+1),o}const fn=/^(?:(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 yn(e){const[,t,n,r,s,i,a,o,l,c,u,d]=e,h=mn(t,s,r,n,i,a,o);let m;return m=l?hn[l]:c?0:xt(u,d),[h,new xe(m)]}const pn=/^(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$/,gn=/^(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$/,wn=/^(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 vn(e){const[,t,n,r,s,i,a,o]=e;return[mn(t,s,r,n,i,a,o),xe.utcInstance]}function kn(e){const[,t,n,r,s,i,a,o]=e;return[mn(t,o,n,r,s,i,a),xe.utcInstance]}const bn=Ht(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Qt),Sn=Ht(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Qt),Tn=Ht(/(\d{4})-?(\d{3})/,Qt),xn=Ht(Xt),On=Pt(function(e,t){return[{year:sn(e,t),month:sn(e,t+1,1),day:sn(e,t+2,1)},null,t+3]},an,on,ln),Nn=Pt(en,an,on,ln),Cn=Pt(tn,an,on,ln),Mn=Pt(an,on,ln),Dn=Pt(an),Vn=Ht(/(\d{4})-(\d\d)-(\d\d)/,rn),In=Ht(nn),En=Pt(an,on,ln),Fn="Invalid Duration",Ln={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}},$n={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},...Ln},An={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},...Ln},jn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Wn=jn.slice(0).reverse();function Zn(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new _n(r)}function zn(e,t){let n=t.milliseconds??0;for(const r of Wn.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function Un(e,t){const n=zn(e,t)<0?-1:1;jn.reduceRight((r,s)=>{if(nt(t[s]))return r;if(r){const i=t[r]*n,a=e[s][r],o=Math.floor(i/a);t[s]+=o*n,t[r]-=o*a*n}return s},null),jn.reduce((n,r)=>{if(nt(t[r]))return n;if(n){const s=t[n]%1;t[n]-=s,t[r]+=s*e[n][r]}return r},null)}function Rn(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}class _n{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?An:$n;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Se.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return _n.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new M("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new _n({values:Nt(e,_n.normalizeUnit),loc:Se.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(rt(e))return _n.fromMillis(e);if(_n.isDuration(e))return e;if("object"==typeof e)return _n.fromObject(e);throw new M(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return Yt(e,[un,dn])}(e);return n?_n.fromObject(n,t):_n.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return Yt(e,[cn,Dn])}(e);return n?_n.fromObject(n,t):_n.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new M("need to specify a reason the Duration is invalid");const n=e instanceof Ue?e:new Ue(e,t);if(ze.throwOnInvalid)throw new O(n);return new _n({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new C(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?qt.create(this.loc,n).formatDurationFromString(this,e):Fn}toHuman(e={}){if(!this.isValid)return Fn;const t=!1!==e.showZeros,n=jn.map(n=>{const r=this.values[n];return nt(r)||0===r&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=yt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},$r.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?zn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=_n.fromDurationLike(e),n={};for(const e of jn)(lt(t.values,e)||lt(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Zn(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=_n.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Ot(e(this.values[n],n));return Zn(this,{values:t},!0)}get(e){return this[_n.normalizeUnit(e)]}set(e){return this.isValid?Zn(this,{values:{...this.values,...Nt(e,_n.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return Zn(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Un(this.matrix,e),Zn(this,{values:e},!0)}rescale(){return this.isValid?Zn(this,{values:Rn(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map(e=>_n.normalizeUnit(e));const t={},n={},r=this.toObject();let s;for(const i of jn)if(e.indexOf(i)>=0){s=i;let e=0;for(const t in n)e+=this.matrix[t][i]*n[t],n[t]=0;rt(r[i])&&(e+=r[i]);const a=Math.trunc(e);t[i]=a,n[i]=(1e3*e-1e3*a)/1e3}else rt(r[i])&&(n[i]=r[i]);for(const e in n)0!==n[e]&&(t[s]+=e===s?n[e]:n[e]/this.matrix[s][e]);return Un(this.matrix,t),Zn(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Zn(this,{values:e},!0)}removeZeros(){return this.isValid?Zn(this,{values:Rn(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(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;function t(e,t){return void 0===e||0===e?void 0===t||0===t:e===t}for(const n of jn)if(!t(this.values[n],e.values[n]))return!1;return!0}}const qn="Invalid Interval";class Gn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new M("need to specify a reason the Interval is invalid");const n=e instanceof Ue?e:new Ue(e,t);if(ze.throwOnInvalid)throw new x(n);return new Gn({invalid:n})}static fromDateTimes(e,t){const n=Ar(e),r=Ar(t),s=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?Gn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Gn.invalid("missing or invalid end"):Gn.invalid("missing or invalid start")}(n,r);return null==s?new Gn({start:n,end:r}):s}static after(e,t){const n=_n.fromDurationLike(t),r=Ar(e);return Gn.fromDateTimes(r,r.plus(n))}static before(e,t){const n=_n.fromDurationLike(t),r=Ar(e);return Gn.fromDateTimes(r.minus(n),r)}static fromISO(e,t){const[n,r]=(e||"").split("/",2);if(n&&r){let e,s,i,a;try{e=$r.fromISO(n,t),s=e.isValid}catch(r){s=!1}try{i=$r.fromISO(r,t),a=i.isValid}catch(r){a=!1}if(s&&a)return Gn.fromDateTimes(e,i);if(s){const n=_n.fromISO(r,t);if(n.isValid)return Gn.after(e,n)}else if(a){const e=_n.fromISO(n,t);if(e.isValid)return Gn.before(i,e)}}return Gn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get 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(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let r;return r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?Gn.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Ar).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),n=[];let{s:r}=this,s=0;for(;r<this.e;){const e=t[s]||this.e,i=+e>+this.e?this.e:e;n.push(Gn.fromDateTimes(r,i)),r=i,s+=1}return n}splitBy(e){const t=_n.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,s=1;const i=[];for(;r<this.e;){const e=this.start.plus(t.mapUnits(e=>e*s));n=+e>+this.e?this.e:e,i.push(Gn.fromDateTimes(r,n)),r=n,s+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e===+e.s}abutsEnd(e){return!!this.isValid&&+e.e===+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:Gn.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Gn.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],s=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]),i=Array.prototype.concat(...s).sort((e,t)=>e.time-t.time);for(const e of i)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!==+e.time&&r.push(Gn.fromDateTimes(t,e.time)),t=null);return Gn.merge(r)}difference(...e){return Gn.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:qn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=F,t={}){return this.isValid?qt.create(this.s.loc.clone(t),e).formatInterval(this):qn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:qn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:qn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:qn}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:qn}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):_n.invalid(this.invalidReason)}mapEndpoints(e){return Gn.fromDateTimes(e(this.s),e(this.e))}}class Hn{static hasDST(e=ze.defaultZone){const t=$r.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return oe.isValidZone(e)}static normalizeZone(e){return Ne(e,ze.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Se.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Se.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Se.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||Se.create(t,n,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||Se.create(t,n,s)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Se.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Se.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Se.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Se.create(t,null,"gregory").eras(e)}static features(){return{relative:it(),localeWeek:at()}}}function Pn(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(_n.fromMillis(r).as("days"))}function Yn(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(-1!==e[n].search(Ce.hanidec))t+=De.indexOf(e[n]);else for(const e in Me){const[n,s]=Me[e];r>=n&&r<=s&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const Jn=`[ ${String.fromCharCode(160)}]`,Bn=new RegExp(Jn,"g");function Kn(e){return e.replace(/\./g,"\\.?").replace(Bn,Jn)}function Xn(e){return e.replace(/\./g,"").replace(Bn," ").toLowerCase()}function Qn(e,t){return null===e?null:{regex:RegExp(e.map(Kn).join("|")),deser:([n])=>e.findIndex(e=>Xn(n)===Xn(e))+t}}function er(e,t){return{regex:e,deser:([,e,t])=>xt(e,t),groups:t}}function tr(e){return{regex:e,deser:([e])=>e}}const nr={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 rr=null;function sr(e,t){return Array.prototype.concat(...e.map(e=>function(e,t){if(e.literal)return e;const n=or(qt.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t)))}class ir{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=sr(qt.parseFormat(t),e),this.units=this.tokens.map(t=>function(e,t){const n=Ie(t),r=Ie(t,"{2}"),s=Ie(t,"{3}"),i=Ie(t,"{4}"),a=Ie(t,"{6}"),o=Ie(t,"{1,2}"),l=Ie(t,"{1,3}"),c=Ie(t,"{1,6}"),u=Ie(t,"{1,9}"),d=Ie(t,"{2,4}"),h=Ie(t,"{4,6}"),m=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},f=(f=>{if(e.literal)return m(f);switch(f.val){case"G":return Qn(t.eras("short"),0);case"GG":return Qn(t.eras("long"),0);case"y":return Yn(c);case"yy":case"kk":return Yn(d,St);case"yyyy":case"kkkk":return Yn(i);case"yyyyy":return Yn(h);case"yyyyyy":return Yn(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Yn(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Yn(r);case"MMM":return Qn(t.months("short",!0),1);case"MMMM":return Qn(t.months("long",!0),1);case"LLL":return Qn(t.months("short",!1),1);case"LLLL":return Qn(t.months("long",!1),1);case"o":case"S":return Yn(l);case"ooo":case"SSS":return Yn(s);case"u":return tr(u);case"uu":return tr(o);case"uuu":case"E":case"c":return Yn(n);case"a":return Qn(t.meridiems(),0);case"EEE":return Qn(t.weekdays("short",!1),1);case"EEEE":return Qn(t.weekdays("long",!1),1);case"ccc":return Qn(t.weekdays("short",!0),1);case"cccc":return Qn(t.weekdays("long",!0),1);case"Z":case"ZZ":return er(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return er(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return tr(/[a-z_+-/]{1,256}?/i);case" ":return tr(/[^\S\n\r]/);default:return m(f)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=e,f}(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){const[e,t]=function(e){const t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"");return[`^${t}$`,e]}(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(e){if(this.isValid){const[t,n]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const s in n)if(lt(n,s)){const i=n[s],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(e[i.token.val[0]]=i.deser(r.slice(t,t+a))),t+=a}return[r,e]}return[r,{}]}(e,this.regex,this.handlers),[r,s,i]=n?function(e){let t,n=null;nt(e.z)||(n=oe.create(e.z)),nt(e.Z)||(n||(n=new xe(e.Z)),t=e.Z),nt(e.q)||(e.M=3*(e.q-1)+1),nt(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),nt(e.u)||(e.S=ft(e.u));const r=Object.keys(e).reduce((t,n)=>{const r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(t[r]=e[n]),t},{});return[r,n,t]}(n):[null,null,void 0];if(lt(n,"a")&<(n,"H"))throw new N("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:s,specificOffset:i}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function ar(e,t,n){return new ir(e,n).explainFromTokens(t)}function or(e,t){if(!e)return null;const n=qt.create(t,e).dtFormatter((rr||(rr=$r.fromMillis(1555555555555)),rr)),r=n.formatToParts(),s=n.resolvedOptions();return r.map(t=>function(e,t,n){const{type:r,value:s}=e;if("literal"===r){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const i=t[r];let a=r;"hour"===r&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let o=nr[a];if("object"==typeof o&&(o=o[i]),o)return{literal:!1,val:o}}(t,e,s))}const lr="Invalid DateTime",cr=864e13;function ur(e){return new Ue("unsupported zone",`the zone "${e.name}" is not supported`)}function dr(e){return null===e.weekData&&(e.weekData=Je(e.c)),e.weekData}function hr(e){return null===e.localWeekData&&(e.localWeekData=Je(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function mr(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new $r({...n,...t,old:n})}function fr(e,t,n){let r=e-60*t*1e3;const s=n.offset(r);if(t===s)return[r,t];r-=60*(s-t)*1e3;const i=n.offset(r);return s===i?[r,s]:[e-60*Math.min(s,i)*1e3,Math.max(s,i)]}function yr(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function pr(e,t,n){return fr(vt(e),t,n)}function gr(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),i={...e.c,year:r,month:s,day:Math.min(e.c.day,wt(r,s))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=_n.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=vt(i);let[l,c]=fr(o,n,e.zone);return 0!==a&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function wr(e,t,n,r,s,i){const{setZone:a,zone:o}=n;if(e&&0!==Object.keys(e).length||t){const r=t||o,s=$r.fromObject(e,{...n,zone:r,specificOffset:i});return a?s:s.setZone(o)}return $r.invalid(new Ue("unparsable",`the input "${s}" can't be parsed as ${r}`))}function vr(e,t,n=!0){return e.isValid?qt.create(Se.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function kr(e,t,n){const r=e.c.year>9999||e.c.year<0;let s="";if(r&&e.c.year>=0&&(s+="+"),s+=dt(e.c.year,r?6:4),"year"===n)return s;if(t){if(s+="-",s+=dt(e.c.month),"month"===n)return s;s+="-"}else if(s+=dt(e.c.month),"month"===n)return s;return s+=dt(e.c.day),s}function br(e,t,n,r,s,i,a){let o=!n||0!==e.c.millisecond||0!==e.c.second,l="";switch(a){case"day":case"month":case"year":break;default:if(l+=dt(e.c.hour),"hour"===a)break;if(t){if(l+=":",l+=dt(e.c.minute),"minute"===a)break;o&&(l+=":",l+=dt(e.c.second))}else{if(l+=dt(e.c.minute),"minute"===a)break;o&&(l+=dt(e.c.second))}if("second"===a)break;!o||r&&0===e.c.millisecond||(l+=".",l+=dt(e.c.millisecond,3))}return s&&(e.isOffsetFixed&&0===e.offset&&!i?l+="Z":e.o<0?(l+="-",l+=dt(Math.trunc(-e.o/60)),l+=":",l+=dt(Math.trunc(-e.o%60))):(l+="+",l+=dt(Math.trunc(e.o/60)),l+=":",l+=dt(Math.trunc(e.o%60)))),i&&(l+="["+e.zone.ianaName+"]"),l}const Sr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Tr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},xr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Or=["year","month","day","hour","minute","second","millisecond"],Nr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Cr=["year","ordinal","hour","minute","second","millisecond"];function Mr(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new C(e);return t}function Dr(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Mr(e)}}function Vr(e,t){const n=Ne(t.zone,ze.defaultZone);if(!n.isValid)return $r.invalid(ur(n));const r=Se.fromObject(t);let s,i;if(nt(e.year))s=ze.now();else{for(const t of Or)nt(e[t])&&(e[t]=Sr[t]);const t=et(e)||tt(e);if(t)return $r.invalid(t);const r=function(e){if(void 0===Fr&&(Fr=ze.now()),"iana"!==e.type)return e.offset(Fr);const t=e.name;let n=Lr.get(t);return void 0===n&&(n=e.offset(Fr),Lr.set(t,n)),n}(n);[s,i]=pr(e,r,n)}return new $r({ts:s,zone:n,loc:r,o:i})}function Ir(e,t,n){const r=!!nt(n.round)||n.round,s=nt(n.rounding)?"trunc":n.rounding,i=(e,i)=>(e=yt(e,r||n.calendary?0:2,n.calendary?"round":s),t.loc.clone(n).relFormatter(n).format(e,i)),a=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return i(a(n.unit),n.unit);for(const e of n.units){const t=a(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,n.units[n.units.length-1])}function Er(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}let Fr;const Lr=new Map;class $r{constructor(e){const t=e.zone||ze.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Ue("invalid input"):null)||(t.isValid?null:ur(t));this.ts=nt(e.ts)?ze.now():e.ts;let r=null,s=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,s]=[e.old.c,e.old.o];else{const i=rt(e.o)&&!e.old?e.o:t.offset(this.ts);r=yr(this.ts,i),n=Number.isNaN(r.year)?new Ue("invalid input"):null,r=n?null:r,s=n?null:i}this._zone=t,this.loc=e.loc||Se.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new $r({})}static local(){const[e,t]=Er(arguments),[n,r,s,i,a,o,l]=t;return Vr({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:l},e)}static utc(){const[e,t]=Er(arguments),[n,r,s,i,a,o,l]=t;return e.zone=xe.utcInstance,Vr({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:l},e)}static fromJSDate(e,t={}){const n=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);var r;if(Number.isNaN(n))return $r.invalid("invalid input");const s=Ne(t.zone,ze.defaultZone);return s.isValid?new $r({ts:n,zone:s,loc:Se.fromObject(t)}):$r.invalid(ur(s))}static fromMillis(e,t={}){if(rt(e))return e<-cr||e>cr?$r.invalid("Timestamp out of range"):new $r({ts:e,zone:Ne(t.zone,ze.defaultZone),loc:Se.fromObject(t)});throw new M(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(rt(e))return new $r({ts:1e3*e,zone:Ne(t.zone,ze.defaultZone),loc:Se.fromObject(t)});throw new M("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=Ne(t.zone,ze.defaultZone);if(!n.isValid)return $r.invalid(ur(n));const r=Se.fromObject(t),s=Nt(e,Dr),{minDaysInFirstWeek:i,startOfWeek:a}=Qe(s,r),o=ze.now(),l=nt(t.specificOffset)?n.offset(o):t.specificOffset,c=!nt(s.ordinal),u=!nt(s.year),d=!nt(s.month)||!nt(s.day),h=u||d,m=s.weekYear||s.weekNumber;if((h||c)&&m)throw new N("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new N("Can't mix ordinal dates with month/day");const f=m||s.weekday&&!h;let y,p,g=yr(o,l);f?(y=Nr,p=Tr,g=Je(g,i,a)):c?(y=Cr,p=xr,g=Ke(g)):(y=Or,p=Sr);let w=!1;for(const e of y)nt(s[e])?s[e]=w?p[e]:g[e]:w=!0;const v=f?function(e,t=4,n=1){const r=st(e.weekYear),s=ut(e.weekNumber,1,bt(e.weekYear,t,n)),i=ut(e.weekday,1,7);return r?s?!i&&qe("weekday",e.weekday):qe("week",e.weekNumber):qe("weekYear",e.weekYear)}(s,i,a):c?function(e){const t=st(e.year),n=ut(e.ordinal,1,gt(e.year));return t?!n&&qe("ordinal",e.ordinal):qe("year",e.year)}(s):et(s),k=v||tt(s);if(k)return $r.invalid(k);const b=f?Be(s,i,a):c?Xe(s):s,[S,T]=pr(b,l,n),x=new $r({ts:S,zone:n,o:T,loc:r});return s.weekday&&h&&e.weekday!==x.weekday?$r.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${x.toISO()}`):x.isValid?x:$r.invalid(x.invalid)}static fromISO(e,t={}){const[n,r]=function(e){return Yt(e,[bn,On],[Sn,Nn],[Tn,Cn],[xn,Mn])}(e);return wr(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return Yt(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[fn,yn])}(e);return wr(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return Yt(e,[pn,vn],[gn,vn],[wn,kn])}(e);return wr(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(nt(e)||nt(t))throw new M("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,i=Se.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[a,o,l,c]=function(e,t,n){const{result:r,zone:s,specificOffset:i,invalidReason:a}=ar(e,t,n);return[r,s,i,a]}(i,e,t);return c?$r.invalid(c):wr(a,o,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return $r.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function(e){return Yt(e,[Vn,On],[In,En])}(e);return wr(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new M("need to specify a reason the DateTime is invalid");const n=e instanceof Ue?e:new Ue(e,t);if(ze.throwOnInvalid)throw new T(n);return new $r({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=or(e,Se.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return sr(qt.parseFormat(e),Se.fromObject(t)).map(e=>e.val).join("")}static resetCache(){Fr=void 0,Lr.clear()}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?dr(this).weekYear:NaN}get weekNumber(){return this.isValid?dr(this).weekNumber:NaN}get weekday(){return this.isValid?dr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?hr(this).weekday:NaN}get localWeekNumber(){return this.isValid?hr(this).weekNumber:NaN}get localWeekYear(){return this.isValid?hr(this).weekYear:NaN}get ordinal(){return this.isValid?Ke(this.c).ordinal:NaN}get monthShort(){return this.isValid?Hn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Hn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Hn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Hn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=vt(this.c),r=this.zone.offset(n-e),s=this.zone.offset(n+e),i=this.zone.offset(n-r*t),a=this.zone.offset(n-s*t);if(i===a)return[this];const o=n-i*t,l=n-a*t,c=yr(o,i),u=yr(l,a);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[mr(this,{ts:o}),mr(this,{ts:l})]:[this]}get isInLeapYear(){return pt(this.year)}get daysInMonth(){return wt(this.year,this.month)}get daysInYear(){return this.isValid?gt(this.year):NaN}get weeksInWeekYear(){return this.isValid?bt(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?bt(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=qt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(xe.instance(e),t)}toLocal(){return this.setZone(ze.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=Ne(e,ze.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=pr(n,t,e)}return mr(this,{ts:r,zone:e})}return $r.invalid(ur(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return mr(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Nt(e,Dr),{minDaysInFirstWeek:n,startOfWeek:r}=Qe(t,this.loc),s=!nt(t.weekYear)||!nt(t.weekNumber)||!nt(t.weekday),i=!nt(t.ordinal),a=!nt(t.year),o=!nt(t.month)||!nt(t.day),l=a||o,c=t.weekYear||t.weekNumber;if((l||i)&&c)throw new N("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new N("Can't mix ordinal dates with month/day");let u;s?u=Be({...Je(this.c,n,r),...t},n,r):nt(t.ordinal)?(u={...this.toObject(),...t},nt(t.day)&&(u.day=Math.min(wt(u.year,u.month),u.day))):u=Xe({...Ke(this.c),...t});const[d,h]=pr(u,this.o,this.zone);return mr(this,{ts:d,o:h})}plus(e){return this.isValid?mr(this,gr(this,_n.fromDurationLike(e))):this}minus(e){return this.isValid?mr(this,gr(this,_n.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},r=_n.normalizeUnit(e);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(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===r){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?qt.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):lr}toLocaleString(e=F,t={}){return this.isValid?qt.create(this.loc.clone(t),e).formatDateTime(this):lr}toLocaleParts(e={}){return this.isValid?qt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1,precision:i="milliseconds"}={}){if(!this.isValid)return null;const a="extended"===e;let o=kr(this,a,i=Mr(i));return Or.indexOf(i)>=3&&(o+="T"),o+=br(this,a,t,n,r,s,i),o}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?kr(this,"extended"===e,Mr(t)):null}toISOWeekDate(){return vr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:i="extended",precision:a="milliseconds"}={}){return this.isValid?(a=Mr(a),(r&&Or.indexOf(a)>=3?"T":"")+br(this,"extended"===i,t,e,n,s,a)):null}toRFC2822(){return vr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return vr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?kr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),vr(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():lr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return _n.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(o=t,Array.isArray(o)?o:[o]).map(_n.normalizeUnit),i=e.valueOf()>this.valueOf(),a=function(e,t,n,r){let[s,i,a,o]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=Pn(e,t);return(n-n%7)/7}],["days",Pn]],s={},i=e;let a,o;for(const[l,c]of r)n.indexOf(l)>=0&&(a=l,s[l]=c(e,t),o=i.plus(s),o>t?(s[l]--,(e=i.plus(s))>t&&(o=e,s[l]--,e=i.plus(s))):e=o);return[e,s,o,a]}(e,t,n);const l=t-s,c=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===c.length&&(a<t&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+l/(a-s)));const u=_n.fromObject(i,r);return c.length>0?_n.fromMillis(l,r).shiftTo(...c).plus(u):u}(i?this:e,i?e:this,s,r);var o;return i?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff($r.now(),e,t)}until(e){return this.isValid?Gn.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const r=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(t,n)<=r&&r<=s.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||$r.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],s=e.unit;return Array.isArray(e.unit)&&(r=e.unit,s=void 0),Ir(t,this.plus(n),{...e,numeric:"always",units:r,unit:s})}toRelativeCalendar(e={}){return this.isValid?Ir(e.base||$r.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every($r.isDateTime))throw new M("min requires all arguments be DateTimes");return ot(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every($r.isDateTime))throw new M("max requires all arguments be DateTimes");return ot(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:s=null}=n;return ar(Se.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return $r.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:r=null}=t,s=Se.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new ir(s,e)}static fromFormatParser(e,t,n={}){if(nt(e)||nt(t))throw new M("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:s=null}=n,i=Se.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});if(!i.equals(t.locale))throw new M(`fromFormatParser called with a locale of ${i}, but the format parser was created for ${t.locale}`);const{result:a,zone:o,specificOffset:l,invalidReason:c}=t.explainFromTokens(e);return c?$r.invalid(c):wr(a,o,n,`format ${t.format}`,e,l)}static get DATE_SHORT(){return F}static get DATE_MED(){return L}static get DATE_MED_WITH_WEEKDAY(){return $}static get DATE_FULL(){return A}static get DATE_HUGE(){return j}static get TIME_SIMPLE(){return W}static get TIME_WITH_SECONDS(){return Z}static get TIME_WITH_SHORT_OFFSET(){return z}static get TIME_WITH_LONG_OFFSET(){return U}static get TIME_24_SIMPLE(){return R}static get TIME_24_WITH_SECONDS(){return _}static get TIME_24_WITH_SHORT_OFFSET(){return q}static get TIME_24_WITH_LONG_OFFSET(){return G}static get DATETIME_SHORT(){return H}static get DATETIME_SHORT_WITH_SECONDS(){return P}static get DATETIME_MED(){return Y}static get DATETIME_MED_WITH_SECONDS(){return J}static get DATETIME_MED_WITH_WEEKDAY(){return B}static get DATETIME_FULL(){return K}static get DATETIME_FULL_WITH_SECONDS(){return X}static get DATETIME_HUGE(){return Q}static get DATETIME_HUGE_WITH_SECONDS(){return ee}}function Ar(e){if($r.isDateTime(e))return e;if(e&&e.valueOf&&rt(e.valueOf()))return $r.fromJSDate(e);if(e&&"object"==typeof e)return $r.fromObject(e);throw new M(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const jr=({visit:e})=>(0,r.jsxs)(f.A,{component:"span",variant:"caption",color:"textSecondary",children:[e.hits," time",e.hits>1?"s":""]}),Wr=({visit:e})=>{const t=$r.fromMillis(e.timestamp);return(0,r.jsx)(f.A,{component:"time",variant:"caption",color:"textSecondary",dateTime:t.toISO()??void 0,children:t.toRelative()})},Zr=({visit:e,type:t})=>"time-ago"===t?(0,r.jsx)(Wr,{visit:e}):(0,r.jsx)(jr,{visit:e});var zr=n(89575),Ur=n(39850),Rr=n(36274);const _r=(0,n(58064).A)(s.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var qr=n(7031),Gr=n(268),Hr=n(19878),Pr=n(11192),Yr=n(97740);function Jr(e){return"Backspace"===e.key||"Delete"===e.key}var Br=s.forwardRef(function(e,t){var n=e.avatar,r=e.classes,i=e.className,a=e.clickable,o=e.color,l=void 0===o?"default":o,c=e.component,u=e.deleteIcon,d=e.disabled,h=void 0!==d&&d,m=e.icon,f=e.label,y=e.onClick,p=e.onDelete,g=e.onKeyDown,w=e.onKeyUp,v=e.size,k=void 0===v?"medium":v,b=e.variant,S=void 0===b?"default":b,T=(0,Ur.A)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),x=s.useRef(null),O=(0,Hr.A)(x,t),N=function(e){e.stopPropagation(),p&&p(e)},C=!(!1===a||!y)||a,M="small"===k,D=c||(C?Yr.A:"div"),V=D===Yr.A?{component:"div"}:{},I=null;if(p){var E=(0,Rr.A)("default"!==l&&("default"===S?r["deleteIconColor".concat((0,Pr.A)(l))]:r["deleteIconOutlinedColor".concat((0,Pr.A)(l))]),M&&r.deleteIconSmall);I=u&&s.isValidElement(u)?s.cloneElement(u,{className:(0,Rr.A)(u.props.className,r.deleteIcon,E),onClick:N}):s.createElement(_r,{className:(0,Rr.A)(r.deleteIcon,E),onClick:N})}var F=null;n&&s.isValidElement(n)&&(F=s.cloneElement(n,{className:(0,Rr.A)(r.avatar,n.props.className,M&&r.avatarSmall,"default"!==l&&r["avatarColor".concat((0,Pr.A)(l))])}));var L=null;return m&&s.isValidElement(m)&&(L=s.cloneElement(m,{className:(0,Rr.A)(r.icon,m.props.className,M&&r.iconSmall,"default"!==l&&r["iconColor".concat((0,Pr.A)(l))])})),s.createElement(D,(0,zr.A)({role:C||p?"button":void 0,className:(0,Rr.A)(r.root,i,"default"!==l&&[r["color".concat((0,Pr.A)(l))],C&&r["clickableColor".concat((0,Pr.A)(l))],p&&r["deletableColor".concat((0,Pr.A)(l))]],"default"!==S&&[r.outlined,{primary:r.outlinedPrimary,secondary:r.outlinedSecondary}[l]],h&&r.disabled,M&&r.sizeSmall,C&&r.clickable,p&&r.deletable),"aria-disabled":!!h||void 0,tabIndex:C||p?0:void 0,onClick:y,onKeyDown:function(e){e.currentTarget===e.target&&Jr(e)&&e.preventDefault(),g&&g(e)},onKeyUp:function(e){e.currentTarget===e.target&&(p&&Jr(e)?p(e):"Escape"===e.key&&x.current&&x.current.blur()),w&&w(e)},ref:O},V,T),F||L,s.createElement("span",{className:(0,Rr.A)(r.label,M&&r.labelSmall)},f),I)});const Kr=(0,qr.A)(function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,Gr.X4)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,Gr.tL)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,Gr.tL)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,Gr.tL)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,Gr.tL)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,Gr.tL)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,Gr.tL)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Gr.X4)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Gr.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Gr.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,Gr.X4)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,Gr.X4)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,Gr.X4)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,Gr.X4)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,Gr.X4)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}},{name:"MuiChip"})(Br),Xr="url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1368' height='401' x='0' y='0' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M437 116C223 116 112 0 112 0h1256v400c-82 0-225-21-282-109-112-175-436-175-649-175z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1368 400V282C891-29 788 40 711 161 608 324 121 372 0 361v39h1368z'/%3e%3cpath fill='url(%23paint2_linear)' d='M1368 244v156H0V94c92-24 198-46 375 0l135 41c176 51 195 109 858 109z'/%3e%3cpath fill='url(%23paint3_linear)' d='M1252 400h116c-14-7-35-14-116-16-663-14-837-128-1013-258l-85-61C98 28 46 8 0 0v400h1252z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M-172-98h1671v601H-172z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='602' x2='1093.5' y1='-960.5' y2='272' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='482' x2='480' y1='1058.5' y2='70.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='424' x2='446.1' y1='-587.5' y2='274.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='587' x2='349' y1='-1120.5' y2='341' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\")",Qr="url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1764' height='479' x='-229' y='-6' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M0 400h1350C1321 336 525 33 179-2c-345-34-395 236-408 402H0z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1378 177v223H0V217s219 75 327 52C436 246 717-35 965 45s254 144 413 132z'/%3e%3cpath fill='url(%23paint2_linear)' d='M26 400l-78-16c-170 205-44-6-137-30l-4-1 4 1 137 30c37-45 89-110 159-201 399-514-45 238 1176-50 275-65 354-39 91 267H26z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='431' x2='397.3' y1='-599' y2='372.8' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='236.5' x2='446.6' y1='-586' y2='381.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='851.8' x2='640.4' y1='-867.2' y2='363.7' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\")",es="url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='2269' height='1408' x='-610' y='-509' maskUnits='userSpaceOnUse'%3e%3ccircle cx='1212.8' cy='74.8' r='317.5' fill='url(%23paint0_linear)' transform='rotate(-52 1213 75)'/%3e%3ccircle cx='737.8' cy='445.8' r='317.5' fill='url(%23paint1_linear)' transform='rotate(-116 738 446)'/%3e%3ccircle cx='601.8' cy='52.8' r='418.6' fill='url(%23paint2_linear)' transform='rotate(-117 602 53)'/%3e%3ccircle cx='999.8' cy='364' r='389.1' fill='url(%23paint3_linear)' transform='rotate(31 1000 364)'/%3e%3cellipse cx='-109.2' cy='263.5' fill='url(%23paint4_linear)' rx='429.2' ry='465.8' transform='rotate(-85 -109 264)'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='1301.2' x2='161.4' y1='-1879.7' y2='-969.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='826.2' x2='-313.6' y1='-1508.7' y2='-598.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='718.4' x2='-784.3' y1='-2524' y2='-1324.2' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='1108.2' x2='-288.6' y1='-2031.1' y2='-915.9' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint4_linear' x1='10.4' x2='-1626.5' y1='-2603.8' y2='-1399.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\")",ts={darkGrey:["#171717","#383838"],marineBlue:["#006D8F","#0049A1"],veryBlue:["#0027AF","#270094"],rubyRed:["#98002B","#8D1134"],toastyOrange:["#BE2200","#A41D00"],purpleSky:["#8912CA","#3E00EA"],eveningSea:["#00CFC5","#035355"],teal:["#005B4B"],pinkSea:["#C8077A","#C2297D"],greens:["#4BB8A5","#187656"]};function ns(e){const{colors:t,shape:n,options:r}=e;return{colors:t,shape:n,backgroundImage:`${n}, linear-gradient(90deg, ${(1===t.length?[t[0],t[0]]:t).join(", ")})`,fontColor:r?.fontColor??"#FFFFFF"}}ns({colors:ts.teal,shape:Xr}),ns({colors:ts.pinkSea,shape:Qr}),ns({colors:ts.purpleSky,shape:es}),ns({colors:ts.marineBlue,shape:Xr}),ns({colors:ts.veryBlue,shape:Xr}),ns({colors:ts.rubyRed,shape:Xr}),ns({colors:ts.darkGrey,shape:Xr}),ns({colors:ts.toastyOrange,shape:Xr}),ns({colors:ts.teal,shape:Qr}),ns({colors:ts.greens,shape:Xr});var rs=n(78560);const ss=(0,m.makeStyles)(e=>({chip:{color:e.palette.common.white,fontWeight:"bold",margin:0}})),is=e=>{const t=Object.keys(ts),n=e%t.length;return ts[t[n]][0]},as=e=>{const t=is(0);if(!e)return t;const n=["component","template","api","group","user","resource","system","domain","location"].indexOf(e.kind.toLocaleLowerCase("en-US"));return-1===n?t:is(n+1)},os=({visit:e})=>{const t=ss(),n=(e=>{try{return(0,rs.KU)(e?.entityRef??"")}catch(e){return}})(e);return(0,r.jsx)(Kr,{size:"small",className:t.chip,label:(n?.kind??"Other").toLocaleLowerCase("en-US"),style:{background:as(n)}})},ls=(0,m.makeStyles)(e=>({avatar:{minWidth:0}})),cs=({visit:e,detailType:t})=>{const n=ls();return(0,r.jsxs)(u.A,{disableGutters:!0,children:[(0,r.jsx)(d.A,{className:n.avatar,children:(0,r.jsx)(os,{visit:e})}),(0,r.jsx)(h.A,{primary:(0,r.jsx)(b,{visit:e}),secondary:(0,r.jsx)(Zr,{visit:e,type:t}),disableTypography:!0})]})};var us=n(98254),ds=n(55138);const hs=()=>{const{t:e}=(0,us.useTranslationRef)(ds.g);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.A,{variant:"body2",color:"textSecondary",children:e("visitList.empty.title")}),(0,r.jsx)(f.A,{variant:"body2",color:"textSecondary",children:e("visitList.empty.description")})]})},ms=()=>{const{t:e}=(0,us.useTranslationRef)(ds.g);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(f.A,{variant:"body2",color:"textSecondary",children:e("visitList.few.title")})})};function fs(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=fs(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const ys=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=fs(e))&&(r&&(r+=" "),r+=t);return r};var ps=s.forwardRef(function(e,t){var n=e.animation,r=void 0===n?"pulse":n,i=e.classes,a=e.className,o=e.component,l=void 0===o?"span":o,c=e.height,u=e.variant,d=void 0===u?"text":u,h=e.width,m=(0,Ur.A)(e,["animation","classes","className","component","height","variant","width"]),f=Boolean(m.children);return s.createElement(l,(0,zr.A)({ref:t,className:ys(i.root,i[d],a,f&&[i.withChildren,!h&&i.fitContent,!c&&i.heightAuto],!1!==r&&i[r])},m,{style:(0,zr.A)({width:h,height:c},m.style)}))});const gs=(0,m.withStyles)(function(e){return{root:{display:"block",backgroundColor:(0,m.alpha)(e.palette.text.primary,"light"===e.palette.type?.11:.13),height:"1.2em"},text:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 60%",transform:"scale(1, 0.60)",borderRadius:e.shape.borderRadius,"&:empty:before":{content:'"\\00a0"'}},rect:{},circle:{borderRadius:"50%"},pulse:{animation:"$pulse 1.5s ease-in-out 0.5s infinite"},"@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}},wave:{position:"relative",overflow:"hidden","&::after":{animation:"$wave 1.6s linear 0.5s infinite",background:"linear-gradient(90deg, transparent, ".concat(e.palette.action.hover,", transparent)"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}},"@keyframes wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},withChildren:{"& > *":{visibility:"hidden"}},fitContent:{maxWidth:"fit-content"},heightAuto:{height:"auto"}}},{name:"MuiSkeleton"})(ps),ws=(0,m.makeStyles)(e=>({skeleton:{borderRadius:30}})),vs=()=>{const e=ws();return(0,r.jsxs)(u.A,{disableGutters:!0,children:[(0,r.jsx)(d.A,{children:(0,r.jsx)(gs,{className:e.skeleton,variant:"rect",width:50,height:24})}),(0,r.jsx)(h.A,{primary:(0,r.jsx)(gs,{variant:"text",width:"100%",height:28}),disableTypography:!0})]})},ks=({numVisitsOpen:e,numVisitsTotal:t,collapsed:n})=>(0,r.jsxs)(r.Fragment,{children:[Array(e).fill(null).map((e,t)=>(0,r.jsx)(vs,{},t)),t>e&&(0,r.jsx)(l.A,{in:!n,children:Array(t-e).fill(null).map((e,t)=>(0,r.jsx)(vs,{},t))})]}),bs=({detailType:e,visits:t=[],numVisitsOpen:n=3,numVisitsTotal:s=8,collapsed:i=!0,loading:a=!1,title:o=""})=>{let u=(0,r.jsx)(r.Fragment,{});return u=a?(0,r.jsx)(ks,{numVisitsOpen:n,numVisitsTotal:s,collapsed:i}):0===t.length?(0,r.jsx)(hs,{}):t.length<n?(0,r.jsxs)(r.Fragment,{children:[t.map((t,n)=>(0,r.jsx)(cs,{visit:t,detailType:e},n)),(0,r.jsx)(ms,{})]}):(0,r.jsxs)(r.Fragment,{children:[t.slice(0,n).map((t,n)=>(0,r.jsx)(cs,{visit:t,detailType:e},n)),t.length>n&&(0,r.jsx)(l.A,{in:!i,children:t.slice(n,s).map((t,n)=>(0,r.jsx)(cs,{visit:t,detailType:e},n))})]}),(0,r.jsxs)(r.Fragment,{children:[o&&(0,r.jsx)("h5",{children:o}),(0,r.jsx)(c.A,{dense:!0,disablePadding:!0,children:u})]})};var Ss=n(87667);const Ts=()=>{const{collapsed:e,numVisitsOpen:t,numVisitsTotal:n,visits:s,loading:i,kind:a}=(0,Ss.NT)();return(0,r.jsx)(bs,{visits:s,detailType:"top"===a?"hits":"time-ago",collapsed:e,numVisitsOpen:t,numVisitsTotal:n,loading:i})};n(28890);var xs=n(35015);const Os=({visits:e,numVisitsOpen:t,numVisitsTotal:n,loading:a,kind:l})=>{const{setContext:c,setVisits:u,setLoading:d}=(0,Ss.NT)();(0,s.useEffect)(()=>{const r={};r.kind=l,e?(r.visits=e,r.loading=!1):a&&(r.loading=a),t&&(r.numVisitsOpen=t),n&&(r.numVisitsTotal=n),c(e=>({...e,...r}))},[c,l,e,a,t,n]);const h=(0,p.useApi)(p.configApiRef),m=(0,p.useApi)(i.y),{loading:f}=(0,xs.A)(async()=>{if(!e&&!a&&"recent"===l){const e=o(h.getOptionalConfigArray("home.recentVisits.filterBy")??[]);return await m.list({limit:n??8,orderBy:[{field:"timestamp",direction:"desc"}],...e&&{filterBy:e}}).then(u)}if(!e&&!a&&"top"===l){const e=o(h.getOptionalConfigArray("home.topVisits.filterBy")??[]);return await m.list({limit:n??8,orderBy:[{field:"hits",direction:"desc"}],...e&&{filterBy:e}}).then(u)}},[m,e,a,u]);return(0,s.useEffect)(()=>{a||d(f)},[a,d,f]),(0,r.jsx)(Ts,{})}},87667:(e,t,n)=>{n.d(t,{DT:()=>c,NT:()=>u});var r=n(31085),s=n(95478);const i={collapsed:!0,numVisitsOpen:3,numVisitsTotal:8,visits:[],loading:!0,kind:"recent"},a={...i,setCollapsed:()=>{},setNumVisitsOpen:()=>{},setNumVisitsTotal:()=>{},setVisits:()=>{},setLoading:()=>{},setKind:()=>{},setContext:()=>{}},o=(0,s.createContext)(a),l=(e,t)=>n=>e(e=>({...e,[t]:"function"==typeof n?n(e[t]):n})),c=({children:e})=>{const[t,n]=(0,s.useState)(i),{setCollapsed:a,setNumVisitsOpen:c,setNumVisitsTotal:u,setVisits:d,setLoading:h,setKind:m}=(0,s.useMemo)(()=>({setCollapsed:l(n,"collapsed"),setNumVisitsOpen:l(n,"numVisitsOpen"),setNumVisitsTotal:l(n,"numVisitsTotal"),setVisits:l(n,"visits"),setLoading:l(n,"loading"),setKind:l(n,"kind")}),[n]),f={...t,setContext:n,setCollapsed:a,setNumVisitsOpen:c,setNumVisitsTotal:u,setVisits:d,setLoading:h,setKind:m};return(0,r.jsx)(o.Provider,{value:f,children:e})},u=()=>{const e=(0,s.useContext)(o);if(void 0===e)throw new Error("VisitedByType useContext found undefined ContextValue, <ContextProvider/> could be missing");return e}},91467:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(89575),s=n(39850),i=n(95478),a=n(36274),o=n(7031),l=n(43504),c=i.forwardRef(function(e,t){var n=e.classes,o=e.className,c=(0,s.A)(e,["classes","className"]),u=i.useContext(l.A);return i.createElement("div",(0,r.A)({className:(0,a.A)(n.root,o,"flex-start"===u.alignItems&&n.alignItemsFlexStart),ref:t},c))});const u=(0,o.A)({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(c)}}]);
|
|
2
|
-
//# sourceMappingURL=6356.
|
|
1
|
+
"use strict";(self.webpackChunkveecode_platform_plugin_veecode_homepage=self.webpackChunkveecode_platform_plugin_veecode_homepage||[]).push([[6356],{20987:(e,t,n)=>{n.d(t,{$:()=>o,s:()=>a});var r=n(78560),s=n(55488),i=n(9490);const a=(0,n(64218).getOrCreateGlobalSingleton)("catalog:entity-route-ref",()=>(0,i.createRouteRef)({id:"catalog:entity",params:["namespace","kind","name"]}));function o(e,t){let n,i,a;if("string"==typeof e){const t=(0,r.KU)(e);n=t.kind,i=t.namespace,a=t.name}else"metadata"in e?(n=e.kind,i=e.metadata.namespace,a=e.metadata.name):(n=e.kind,i=e.namespace,a=e.name);n=n.toLocaleLowerCase("en-US"),i=i?.toLocaleLowerCase("en-US")??s.oQ;const{encodeParams:o=!1}=t||{};return o&&(n=encodeURIComponent(n),i=encodeURIComponent(i),a=encodeURIComponent(a)),{kind:n,namespace:i,name:a}}},12431:(e,t,n)=>{n.d(t,{E:()=>c});var r=n(31085),s=n(95478),i=n(64947),a=n(87667),o=n(98254),l=n(55138);const c=()=>{const{collapsed:e,setCollapsed:t,visits:n,numVisitsOpen:c,loading:u}=(0,a.NT)(),d=(0,s.useCallback)(()=>t(e=>!e),[t]),{t:h}=(0,o.useTranslationRef)(l.g),m=h(e?"visitedByType.action.viewMore":"visitedByType.action.viewLess");return!u&&n.length<=c?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(i.A,{variant:"text",onClick:d,children:m})}},81706:(e,t,n)=>{n.d(t,{U:()=>Os});var r=n(31085),s=n(95478),i=n(98590);function a(e){try{const t=e.getString("field"),n=e.getString("operator"),r=function(e){let t;try{t=e.getString("value")}catch(n){try{t=e.getNumber("value")}catch{}}return t}(e);return(0,i.Z)(n)&&void 0!==r?{field:t,operator:n,value:r}:void 0}catch(e){return}}function o(e){try{return e.map(a).filter(Boolean)}catch{return}}var l=n(69621),c=n(58007),u=n(8109),d=n(91467),h=n(5951),m=n(37976),f=n(72501),y=n(39970),p=n(9490),g=n(20987),w=n(42791);const v=(0,s.forwardRef)((e,t)=>{const{entityRef:n,defaultKind:s,defaultNamespace:i,title:a,children:o,hideIcon:l,disableTooltip:c,...u}=e,d=function(e){return(0,p.useRouteRef)(g.s)((0,g.$)(e,{encodeParams:!0}))}(e.entityRef),h=o??a??(0,r.jsx)(w.d,{entityRef:n,defaultKind:s,defaultNamespace:i,hideIcon:l,disableTooltip:c});return(0,r.jsx)(y.N_,{...u,ref:t,to:d,children:h})}),k=(0,m.makeStyles)(e=>({name:{marginLeft:"0.8rem",marginRight:"0.8rem",fontSize:e.typography.body1.fontSize}})),b=({visit:e})=>{const t=k();return e.entityRef?(0,r.jsx)(v,{entityRef:e.entityRef,className:t.name,hideIcon:!0,disableTooltip:!0}):(0,r.jsx)(f.A,{component:y.N_,to:e.pathname,noWrap:!0,className:t.name,children:e.name})};class S extends Error{}class T extends S{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class x extends S{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class O extends S{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class N extends S{}class C extends S{constructor(e){super(`Invalid unit ${e}`)}}class M extends S{}class D extends S{constructor(){super("Zone is an abstract class")}}const V="numeric",I="short",E="long",F={year:V,month:V,day:V},L={year:V,month:I,day:V},$={year:V,month:I,day:V,weekday:I},A={year:V,month:E,day:V},j={year:V,month:E,day:V,weekday:E},W={hour:V,minute:V},Z={hour:V,minute:V,second:V},z={hour:V,minute:V,second:V,timeZoneName:I},U={hour:V,minute:V,second:V,timeZoneName:E},R={hour:V,minute:V,hourCycle:"h23"},_={hour:V,minute:V,second:V,hourCycle:"h23"},q={hour:V,minute:V,second:V,hourCycle:"h23",timeZoneName:I},G={hour:V,minute:V,second:V,hourCycle:"h23",timeZoneName:E},H={year:V,month:V,day:V,hour:V,minute:V},P={year:V,month:V,day:V,hour:V,minute:V,second:V},Y={year:V,month:I,day:V,hour:V,minute:V},J={year:V,month:I,day:V,hour:V,minute:V,second:V},B={year:V,month:I,day:V,weekday:I,hour:V,minute:V},K={year:V,month:E,day:V,hour:V,minute:V,timeZoneName:I},X={year:V,month:E,day:V,hour:V,minute:V,second:V,timeZoneName:I},Q={year:V,month:E,day:V,weekday:E,hour:V,minute:V,timeZoneName:E},ee={year:V,month:E,day:V,weekday:E,hour:V,minute:V,second:V,timeZoneName:E};class te{get type(){throw new D}get name(){throw new D}get ianaName(){return this.name}get isUniversal(){throw new D}offsetName(e,t){throw new D}formatOffset(e,t){throw new D}offset(e){throw new D}equals(e){throw new D}get isValid(){throw new D}}let ne=null;class re extends te{static get instance(){return null===ne&&(ne=new re),ne}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Tt(e,t,n)}formatOffset(e,t){return Ct(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}const se=new Map,ie={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},ae=new Map;class oe extends te{static create(e){let t=ae.get(e);return void 0===t&&ae.set(e,t=new oe(e)),t}static resetCache(){ae.clear(),se.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=oe.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Tt(e,t,n,this.name)}formatOffset(e,t){return Ct(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const n=function(e){let t=se.get(e);return void 0===t&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),se.set(e,t)),t}(this.name);let[r,s,i,a,o,l,c]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const{type:t,value:s}=n[e],i=ie[t];"era"===t?r[i]=s:nt(i)||(r[i]=parseInt(s,10))}return r}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,a,o,l,c,u]=r;return[a,s,i,o,l,c,u]}(n,t);"BC"===a&&(r=1-Math.abs(r));let u=+t;const d=u%1e3;return u-=d>=0?d:1e3+d,(vt({year:r,month:s,day:i,hour:24===o?0:o,minute:l,second:c,millisecond:0})-u)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let le={};const ce=new Map;function ue(e,t={}){const n=JSON.stringify([e,t]);let r=ce.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(e,t),ce.set(n,r)),r}const de=new Map,he=new Map;let me=null;const fe=new Map;function ye(e){let t=fe.get(e);return void 0===t&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),fe.set(e,t)),t}const pe=new Map;function ge(e,t,n,r){const s=e.listingMode();return"error"===s?null:"en"===s?n(t):r(t)}class we{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...i}=n;if(!t||Object.keys(i).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=de.get(n);return void 0===r&&(r=new Intl.NumberFormat(e,t),de.set(n,r)),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return dt(this.floor?Math.floor(e):yt(e,3),this.padTo)}}class ve{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&oe.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=ue(t,s)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ke{constructor(e,t,n){this.opts={style:"long",...n},!t&&it()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,s=JSON.stringify([e,r]);let i=he.get(s);return void 0===i&&(i=new Intl.RelativeTimeFormat(e,t),he.set(s,i)),i}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,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(e);if("auto"===n&&i){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${s[e][0]}`;case-1:return n?"yesterday":`last ${s[e][0]}`;case 0:return n?"today":`this ${s[e][0]}`}}const a=Object.is(t,-0)||t<0,o=Math.abs(t),l=1===o,c=s[e],u=r?l?c[1]:c[2]||c[1]:l?s[e][0]:e;return a?`${o} ${u} ago`:`in ${o} ${u}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const be={firstDay:1,minimalDays:4,weekend:[6,7]};class Se{static fromOpts(e){return Se.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,r,s=!1){const i=e||ze.defaultLocale,a=i||(s?"en-US":me||(me=(new Intl.DateTimeFormat).resolvedOptions().locale,me)),o=t||ze.defaultNumberingSystem,l=n||ze.defaultOutputCalendar,c=ct(r)||ze.defaultWeekSettings;return new Se(a,o,l,c,i)}static resetCache(){me=null,ce.clear(),de.clear(),he.clear(),fe.clear(),pe.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:r}={}){return Se.create(e,t,n,r)}constructor(e,t,n,r,s){const[i,a,o]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=ue(e).resolvedOptions(),r=e}catch(s){const i=e.substring(0,n);t=ue(i).resolvedOptions(),r=i}const{numberingSystem:s,calendar:i}=t;return[r,s,i]}}(e);this.locale=i,this.numberingSystem=t||a||null,this.outputCalendar=n||o||null,this.weekSettings=r,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===ye(e.locale).numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Se.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,ct(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return ge(this,e,Et,()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),r=(t&=!n)?{month:e,day:"numeric"}:{month:e},s=t?"format":"standalone";if(!this.monthsCache[s][e]){const t=n?e=>this.dtFormatter(e,r).format():e=>this.extract(e,r,"month");this.monthsCache[s][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=$r.utc(2009,n,1);t.push(e(r))}return t}(t)}return this.monthsCache[s][e]})}weekdays(e,t=!1){return ge(this,e,At,()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=$r.utc(2016,11,13+n);t.push(e(r))}return t}(e=>this.extract(e,n,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return ge(this,void 0,()=>jt,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[$r.utc(2016,11,13,9),$r.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ge(this,e,Ut,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[$r.utc(-40,1,1),$r.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===n);return r?r.value:null}numberFormatter(e={}){return new we(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new ve(e,this.intl,t)}relFormatter(e={}){return new ke(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=le[n];return r||(r=new Intl.ListFormat(e,t),le[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||ye(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:at()?function(e){let t=pe.get(e);if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in t||(t={...be,...t}),pe.set(e,t)}return t}(this.locale):be}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Te=null;class xe extends te{static get utcInstance(){return null===Te&&(Te=new xe(0)),Te}static instance(e){return 0===e?xe.utcInstance:new xe(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new xe(xt(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Ct(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Ct(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Ct(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class Oe extends te{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ne(e,t){if(nt(e)||null===e)return t;if(e instanceof te)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?re.instance:"utc"===n||"gmt"===n?xe.utcInstance:xe.parseSpecifier(n)||oe.create(e)}return rt(e)?xe.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new Oe(e)}const Ce={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Me={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]},De=Ce.hanidec.replace(/[\[|\]]/g,"").split(""),Ve=new Map;function Ie({numberingSystem:e},t=""){const n=e||"latn";let r=Ve.get(n);void 0===r&&(r=new Map,Ve.set(n,r));let s=r.get(t);return void 0===s&&(s=new RegExp(`${Ce[n]}${t}`),r.set(t,s)),s}let Ee,Fe=()=>Date.now(),Le="system",$e=null,Ae=null,je=null,We=60,Ze=null;class ze{static get now(){return Fe}static set now(e){Fe=e}static set defaultZone(e){Le=e}static get defaultZone(){return Ne(Le,re.instance)}static get defaultLocale(){return $e}static set defaultLocale(e){$e=e}static get defaultNumberingSystem(){return Ae}static set defaultNumberingSystem(e){Ae=e}static get defaultOutputCalendar(){return je}static set defaultOutputCalendar(e){je=e}static get defaultWeekSettings(){return Ze}static set defaultWeekSettings(e){Ze=ct(e)}static get twoDigitCutoffYear(){return We}static set twoDigitCutoffYear(e){We=e%100}static get throwOnInvalid(){return Ee}static set throwOnInvalid(e){Ee=e}static resetCaches(){Se.resetCache(),oe.resetCache(),$r.resetCache(),Ve.clear()}}class Ue{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Re=[0,31,59,90,120,151,181,212,243,273,304,334],_e=[0,31,60,91,121,152,182,213,244,274,305,335];function qe(e,t){return new Ue("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Ge(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function He(e,t,n){return n+(pt(e)?_e:Re)[t-1]}function Pe(e,t){const n=pt(e)?_e:Re,r=n.findIndex(e=>e<t);return{month:r+1,day:t-n[r]}}function Ye(e,t){return(e-t+7)%7+1}function Je(e,t=4,n=1){const{year:r,month:s,day:i}=e,a=He(r,s,i),o=Ye(Ge(r,s,i),n);let l,c=Math.floor((a-o+14-t)/7);return c<1?(l=r-1,c=bt(l,t,n)):c>bt(r,t,n)?(l=r+1,c=1):l=r,{weekYear:l,weekNumber:c,weekday:o,...Mt(e)}}function Be(e,t=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=e,a=Ye(Ge(r,1,t),n),o=gt(r);let l,c=7*s+i-a-7+t;c<1?(l=r-1,c+=gt(l)):c>o?(l=r+1,c-=gt(r)):l=r;const{month:u,day:d}=Pe(l,c);return{year:l,month:u,day:d,...Mt(e)}}function Ke(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:He(t,n,r),...Mt(e)}}function Xe(e){const{year:t,ordinal:n}=e,{month:r,day:s}=Pe(t,n);return{year:t,month:r,day:s,...Mt(e)}}function Qe(e,t){if(!nt(e.localWeekday)||!nt(e.localWeekNumber)||!nt(e.localWeekYear)){if(!nt(e.weekday)||!nt(e.weekNumber)||!nt(e.weekYear))throw new N("Cannot mix locale-based week fields with ISO-based week fields");return nt(e.localWeekday)||(e.weekday=e.localWeekday),nt(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),nt(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function et(e){const t=st(e.year),n=ut(e.month,1,12),r=ut(e.day,1,wt(e.year,e.month));return t?n?!r&&qe("day",e.day):qe("month",e.month):qe("year",e.year)}function tt(e){const{hour:t,minute:n,second:r,millisecond:s}=e,i=ut(t,0,23)||24===t&&0===n&&0===r&&0===s,a=ut(n,0,59),o=ut(r,0,59),l=ut(s,0,999);return i?a?o?!l&&qe("millisecond",s):qe("second",r):qe("minute",n):qe("hour",t)}function nt(e){return void 0===e}function rt(e){return"number"==typeof e}function st(e){return"number"==typeof e&&e%1==0}function it(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function at(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function ot(e,t,n){if(0!==e.length)return e.reduce((e,r)=>{const s=[t(r),r];return e&&n(e[0],s[0])===e[0]?e:s},null)[1]}function lt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ct(e){if(null==e)return null;if("object"!=typeof e)throw new M("Week settings must be an object");if(!ut(e.firstDay,1,7)||!ut(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!ut(e,1,7)))throw new M("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function ut(e,t,n){return st(e)&&e>=t&&e<=n}function dt(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function ht(e){return nt(e)||null===e||""===e?void 0:parseInt(e,10)}function mt(e){return nt(e)||null===e||""===e?void 0:parseFloat(e)}function ft(e){if(!nt(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function yt(e,t,n="round"){const r=10**t;switch(n){case"expand":return e>0?Math.ceil(e*r)/r:Math.floor(e*r)/r;case"trunc":return Math.trunc(e*r)/r;case"round":return Math.round(e*r)/r;case"floor":return Math.floor(e*r)/r;case"ceil":return Math.ceil(e*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function pt(e){return e%4==0&&(e%100!=0||e%400==0)}function gt(e){return pt(e)?366:365}function wt(e,t){const n=(r=t-1)-12*Math.floor(r/12)+1;var r;return 2===n?pt(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function vt(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function kt(e,t,n){return-Ye(Ge(e,1,t),n)+t-1}function bt(e,t=4,n=1){const r=kt(e,t,n),s=kt(e+1,t,n);return(gt(e)-r+s)/7}function St(e){return e>99?e:e>ze.twoDigitCutoffYear?1900+e:2e3+e}function Tt(e,t,n,r=null){const s=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:t,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(s).find(e=>"timezonename"===e.type.toLowerCase());return o?o.value:null}function xt(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function Ot(e){const t=Number(e);if("boolean"==typeof e||""===e||!Number.isFinite(t))throw new M(`Invalid unit value ${e}`);return t}function Nt(e,t){const n={};for(const r in e)if(lt(e,r)){const s=e[r];if(null==s)continue;n[t(r)]=Ot(s)}return n}function Ct(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${dt(n,2)}:${dt(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${dt(n,2)}${dt(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Mt(e){return function(e){return["hour","minute","second","millisecond"].reduce((t,n)=>(t[n]=e[n],t),{})}(e)}const Dt=["January","February","March","April","May","June","July","August","September","October","November","December"],Vt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],It=["J","F","M","A","M","J","J","A","S","O","N","D"];function Et(e){switch(e){case"narrow":return[...It];case"short":return[...Vt];case"long":return[...Dt];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 Ft=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Lt=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],$t=["M","T","W","T","F","S","S"];function At(e){switch(e){case"narrow":return[...$t];case"short":return[...Lt];case"long":return[...Ft];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const jt=["AM","PM"],Wt=["Before Christ","Anno Domini"],Zt=["BC","AD"],zt=["B","A"];function Ut(e){switch(e){case"narrow":return[...zt];case"short":return[...Zt];case"long":return[...Wt];default:return null}}function Rt(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const _t={D:F,DD:L,DDD:A,DDDD:j,t:W,tt:Z,ttt:z,tttt:U,T:R,TT:_,TTT:q,TTTT:G,f:H,ff:Y,fff:K,ffff:Q,F:P,FF:J,FFF:X,FFFF:ee};class qt{static create(e,t={}){return new qt(e,t)}static parseFormat(e){let t=null,n="",r=!1;const s=[];for(let i=0;i<e.length;i++){const a=e.charAt(i);"'"===a?((n.length>0||r)&&s.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),t=null,n="",r=!r):r||a===t?n+=a:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(e){return _t[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return dt(e,t);const r={...this.opts};return t>0&&(r.padTo=t),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(t,n)=>this.loc.extract(e,t,n),i=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=(t,r)=>n?function(e,t){return Et(t)[e.month-1]}(e,t):s(r?{month:t}:{month:t,day:"numeric"},"month"),o=(t,r)=>n?function(e,t){return At(t)[e.weekday-1]}(e,t):s(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=qt.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?function(e,t){return Ut(t)[e.year<0?0:1]}(e,t):s({era:t},"era");return Rt(qt.parseFormat(t),t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return 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 e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return n?function(e){return jt[e.hour<12?0:1]}(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?s({day:"numeric"},"day"):this.num(e.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(e.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(e.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}})}formatDurationFromString(e,t){const n="negativeLargestOnly"===this.opts.signMode?-1:1,r=e=>{switch(e[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=qt.parseFormat(t),i=s.reduce((e,{literal:t,val:n})=>t?e:e.concat(n),[]),a=e.shiftTo(...i.map(r).filter(e=>e));return Rt(s,((e,t)=>s=>{const i=r(s);if(i){const r=t.isNegativeDuration&&i!==t.largestUnit?n:1;let a;return a="negativeLargestOnly"===this.opts.signMode&&i!==t.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(e.get(i)*r,s.length,a)}return s})(a,{isNegativeDuration:a<0,largestUnit:Object.keys(a.values)[0]}))}}const Gt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ht(...e){const t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function Pt(...e){return t=>e.reduce(([e,n,r],s)=>{const[i,a,o]=s(t,r);return[{...e,...i},a||n,o]},[{},null,1]).slice(0,2)}function Yt(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function Jt(...e){return(t,n)=>{const r={};let s;for(s=0;s<e.length;s++)r[e[s]]=ht(t[n+s]);return[r,null,n+s]}}const Bt=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Kt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Xt=RegExp(`${Kt.source}(?:${Bt.source}?(?:\\[(${Gt.source})\\])?)?`),Qt=RegExp(`(?:[Tt]${Xt.source})?`),en=Jt("weekYear","weekNumber","weekDay"),tn=Jt("year","ordinal"),nn=RegExp(`${Kt.source} ?(?:${Bt.source}|(${Gt.source}))?`),rn=RegExp(`(?: ${nn.source})?`);function sn(e,t,n){const r=e[t];return nt(r)?n:ht(r)}function an(e,t){return[{hours:sn(e,t,0),minutes:sn(e,t+1,0),seconds:sn(e,t+2,0),milliseconds:ft(e[t+3])},null,t+4]}function on(e,t){const n=!e[t]&&!e[t+1],r=xt(e[t+1],e[t+2]);return[{},n?null:xe.instance(r),t+3]}function ln(e,t){return[{},e[t]?oe.create(e[t]):null,t+1]}const cn=RegExp(`^T?${Kt.source}$`),un=/^-?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 dn(e){const[t,n,r,s,i,a,o,l,c]=e,u="-"===t[0],d=l&&"-"===l[0],h=(e,t=!1)=>void 0!==e&&(t||e&&u)?-e:e;return[{years:h(mt(n)),months:h(mt(r)),weeks:h(mt(s)),days:h(mt(i)),hours:h(mt(a)),minutes:h(mt(o)),seconds:h(mt(l),"-0"===l),milliseconds:h(ft(c),d)}]}const hn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function mn(e,t,n,r,s,i,a){const o={year:2===t.length?St(ht(t)):ht(t),month:Vt.indexOf(n)+1,day:ht(r),hour:ht(s),minute:ht(i)};return a&&(o.second=ht(a)),e&&(o.weekday=e.length>3?Ft.indexOf(e)+1:Lt.indexOf(e)+1),o}const fn=/^(?:(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 yn(e){const[,t,n,r,s,i,a,o,l,c,u,d]=e,h=mn(t,s,r,n,i,a,o);let m;return m=l?hn[l]:c?0:xt(u,d),[h,new xe(m)]}const pn=/^(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$/,gn=/^(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$/,wn=/^(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 vn(e){const[,t,n,r,s,i,a,o]=e;return[mn(t,s,r,n,i,a,o),xe.utcInstance]}function kn(e){const[,t,n,r,s,i,a,o]=e;return[mn(t,o,n,r,s,i,a),xe.utcInstance]}const bn=Ht(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Qt),Sn=Ht(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Qt),Tn=Ht(/(\d{4})-?(\d{3})/,Qt),xn=Ht(Xt),On=Pt(function(e,t){return[{year:sn(e,t),month:sn(e,t+1,1),day:sn(e,t+2,1)},null,t+3]},an,on,ln),Nn=Pt(en,an,on,ln),Cn=Pt(tn,an,on,ln),Mn=Pt(an,on,ln),Dn=Pt(an),Vn=Ht(/(\d{4})-(\d\d)-(\d\d)/,rn),In=Ht(nn),En=Pt(an,on,ln),Fn="Invalid Duration",Ln={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}},$n={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},...Ln},An={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},...Ln},jn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Wn=jn.slice(0).reverse();function Zn(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new _n(r)}function zn(e,t){let n=t.milliseconds??0;for(const r of Wn.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function Un(e,t){const n=zn(e,t)<0?-1:1;jn.reduceRight((r,s)=>{if(nt(t[s]))return r;if(r){const i=t[r]*n,a=e[s][r],o=Math.floor(i/a);t[s]+=o*n,t[r]-=o*a*n}return s},null),jn.reduce((n,r)=>{if(nt(t[r]))return n;if(n){const s=t[n]%1;t[n]-=s,t[r]+=s*e[n][r]}return r},null)}function Rn(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}class _n{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?An:$n;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Se.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return _n.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new M("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new _n({values:Nt(e,_n.normalizeUnit),loc:Se.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(rt(e))return _n.fromMillis(e);if(_n.isDuration(e))return e;if("object"==typeof e)return _n.fromObject(e);throw new M(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return Yt(e,[un,dn])}(e);return n?_n.fromObject(n,t):_n.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return Yt(e,[cn,Dn])}(e);return n?_n.fromObject(n,t):_n.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new M("need to specify a reason the Duration is invalid");const n=e instanceof Ue?e:new Ue(e,t);if(ze.throwOnInvalid)throw new O(n);return new _n({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new C(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?qt.create(this.loc,n).formatDurationFromString(this,e):Fn}toHuman(e={}){if(!this.isValid)return Fn;const t=!1!==e.showZeros,n=jn.map(n=>{const r=this.values[n];return nt(r)||0===r&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(r)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=yt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},$r.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?zn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=_n.fromDurationLike(e),n={};for(const e of jn)(lt(t.values,e)||lt(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Zn(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=_n.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Ot(e(this.values[n],n));return Zn(this,{values:t},!0)}get(e){return this[_n.normalizeUnit(e)]}set(e){return this.isValid?Zn(this,{values:{...this.values,...Nt(e,_n.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return Zn(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Un(this.matrix,e),Zn(this,{values:e},!0)}rescale(){return this.isValid?Zn(this,{values:Rn(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map(e=>_n.normalizeUnit(e));const t={},n={},r=this.toObject();let s;for(const i of jn)if(e.indexOf(i)>=0){s=i;let e=0;for(const t in n)e+=this.matrix[t][i]*n[t],n[t]=0;rt(r[i])&&(e+=r[i]);const a=Math.trunc(e);t[i]=a,n[i]=(1e3*e-1e3*a)/1e3}else rt(r[i])&&(n[i]=r[i]);for(const e in n)0!==n[e]&&(t[s]+=e===s?n[e]:n[e]/this.matrix[s][e]);return Un(this.matrix,t),Zn(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Zn(this,{values:e},!0)}removeZeros(){return this.isValid?Zn(this,{values:Rn(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(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;function t(e,t){return void 0===e||0===e?void 0===t||0===t:e===t}for(const n of jn)if(!t(this.values[n],e.values[n]))return!1;return!0}}const qn="Invalid Interval";class Gn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new M("need to specify a reason the Interval is invalid");const n=e instanceof Ue?e:new Ue(e,t);if(ze.throwOnInvalid)throw new x(n);return new Gn({invalid:n})}static fromDateTimes(e,t){const n=Ar(e),r=Ar(t),s=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?Gn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Gn.invalid("missing or invalid end"):Gn.invalid("missing or invalid start")}(n,r);return null==s?new Gn({start:n,end:r}):s}static after(e,t){const n=_n.fromDurationLike(t),r=Ar(e);return Gn.fromDateTimes(r,r.plus(n))}static before(e,t){const n=_n.fromDurationLike(t),r=Ar(e);return Gn.fromDateTimes(r.minus(n),r)}static fromISO(e,t){const[n,r]=(e||"").split("/",2);if(n&&r){let e,s,i,a;try{e=$r.fromISO(n,t),s=e.isValid}catch(r){s=!1}try{i=$r.fromISO(r,t),a=i.isValid}catch(r){a=!1}if(s&&a)return Gn.fromDateTimes(e,i);if(s){const n=_n.fromISO(r,t);if(n.isValid)return Gn.after(e,n)}else if(a){const e=_n.fromISO(n,t);if(e.isValid)return Gn.before(i,e)}}return Gn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get 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(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let r;return r=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(e,t),Math.floor(r.diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?Gn.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Ar).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),n=[];let{s:r}=this,s=0;for(;r<this.e;){const e=t[s]||this.e,i=+e>+this.e?this.e:e;n.push(Gn.fromDateTimes(r,i)),r=i,s+=1}return n}splitBy(e){const t=_n.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,s=1;const i=[];for(;r<this.e;){const e=this.start.plus(t.mapUnits(e=>e*s));n=+e>+this.e?this.e:e,i.push(Gn.fromDateTimes(r,n)),r=n,s+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e===+e.s}abutsEnd(e){return!!this.isValid&&+e.e===+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:Gn.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Gn.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],s=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]),i=Array.prototype.concat(...s).sort((e,t)=>e.time-t.time);for(const e of i)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!==+e.time&&r.push(Gn.fromDateTimes(t,e.time)),t=null);return Gn.merge(r)}difference(...e){return Gn.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:qn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=F,t={}){return this.isValid?qt.create(this.s.loc.clone(t),e).formatInterval(this):qn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:qn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:qn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:qn}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:qn}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):_n.invalid(this.invalidReason)}mapEndpoints(e){return Gn.fromDateTimes(e(this.s),e(this.e))}}class Hn{static hasDST(e=ze.defaultZone){const t=$r.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return oe.isValidZone(e)}static normalizeZone(e){return Ne(e,ze.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Se.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Se.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Se.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||Se.create(t,n,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||Se.create(t,n,s)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Se.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Se.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Se.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Se.create(t,null,"gregory").eras(e)}static features(){return{relative:it(),localeWeek:at()}}}function Pn(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(_n.fromMillis(r).as("days"))}function Yn(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(-1!==e[n].search(Ce.hanidec))t+=De.indexOf(e[n]);else for(const e in Me){const[n,s]=Me[e];r>=n&&r<=s&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const Jn=`[ ${String.fromCharCode(160)}]`,Bn=new RegExp(Jn,"g");function Kn(e){return e.replace(/\./g,"\\.?").replace(Bn,Jn)}function Xn(e){return e.replace(/\./g,"").replace(Bn," ").toLowerCase()}function Qn(e,t){return null===e?null:{regex:RegExp(e.map(Kn).join("|")),deser:([n])=>e.findIndex(e=>Xn(n)===Xn(e))+t}}function er(e,t){return{regex:e,deser:([,e,t])=>xt(e,t),groups:t}}function tr(e){return{regex:e,deser:([e])=>e}}const nr={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 rr=null;function sr(e,t){return Array.prototype.concat(...e.map(e=>function(e,t){if(e.literal)return e;const n=or(qt.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t)))}class ir{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=sr(qt.parseFormat(t),e),this.units=this.tokens.map(t=>function(e,t){const n=Ie(t),r=Ie(t,"{2}"),s=Ie(t,"{3}"),i=Ie(t,"{4}"),a=Ie(t,"{6}"),o=Ie(t,"{1,2}"),l=Ie(t,"{1,3}"),c=Ie(t,"{1,6}"),u=Ie(t,"{1,9}"),d=Ie(t,"{2,4}"),h=Ie(t,"{4,6}"),m=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},f=(f=>{if(e.literal)return m(f);switch(f.val){case"G":return Qn(t.eras("short"),0);case"GG":return Qn(t.eras("long"),0);case"y":return Yn(c);case"yy":case"kk":return Yn(d,St);case"yyyy":case"kkkk":return Yn(i);case"yyyyy":return Yn(h);case"yyyyyy":return Yn(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Yn(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Yn(r);case"MMM":return Qn(t.months("short",!0),1);case"MMMM":return Qn(t.months("long",!0),1);case"LLL":return Qn(t.months("short",!1),1);case"LLLL":return Qn(t.months("long",!1),1);case"o":case"S":return Yn(l);case"ooo":case"SSS":return Yn(s);case"u":return tr(u);case"uu":return tr(o);case"uuu":case"E":case"c":return Yn(n);case"a":return Qn(t.meridiems(),0);case"EEE":return Qn(t.weekdays("short",!1),1);case"EEEE":return Qn(t.weekdays("long",!1),1);case"ccc":return Qn(t.weekdays("short",!0),1);case"cccc":return Qn(t.weekdays("long",!0),1);case"Z":case"ZZ":return er(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return er(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return tr(/[a-z_+-/]{1,256}?/i);case" ":return tr(/[^\S\n\r]/);default:return m(f)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=e,f}(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){const[e,t]=function(e){const t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"");return[`^${t}$`,e]}(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(e){if(this.isValid){const[t,n]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const s in n)if(lt(n,s)){const i=n[s],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(e[i.token.val[0]]=i.deser(r.slice(t,t+a))),t+=a}return[r,e]}return[r,{}]}(e,this.regex,this.handlers),[r,s,i]=n?function(e){let t,n=null;nt(e.z)||(n=oe.create(e.z)),nt(e.Z)||(n||(n=new xe(e.Z)),t=e.Z),nt(e.q)||(e.M=3*(e.q-1)+1),nt(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),nt(e.u)||(e.S=ft(e.u));const r=Object.keys(e).reduce((t,n)=>{const r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(t[r]=e[n]),t},{});return[r,n,t]}(n):[null,null,void 0];if(lt(n,"a")&<(n,"H"))throw new N("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:r,zone:s,specificOffset:i}}return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function ar(e,t,n){return new ir(e,n).explainFromTokens(t)}function or(e,t){if(!e)return null;const n=qt.create(t,e).dtFormatter((rr||(rr=$r.fromMillis(1555555555555)),rr)),r=n.formatToParts(),s=n.resolvedOptions();return r.map(t=>function(e,t,n){const{type:r,value:s}=e;if("literal"===r){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const i=t[r];let a=r;"hour"===r&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let o=nr[a];if("object"==typeof o&&(o=o[i]),o)return{literal:!1,val:o}}(t,e,s))}const lr="Invalid DateTime",cr=864e13;function ur(e){return new Ue("unsupported zone",`the zone "${e.name}" is not supported`)}function dr(e){return null===e.weekData&&(e.weekData=Je(e.c)),e.weekData}function hr(e){return null===e.localWeekData&&(e.localWeekData=Je(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function mr(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new $r({...n,...t,old:n})}function fr(e,t,n){let r=e-60*t*1e3;const s=n.offset(r);if(t===s)return[r,t];r-=60*(s-t)*1e3;const i=n.offset(r);return s===i?[r,s]:[e-60*Math.min(s,i)*1e3,Math.max(s,i)]}function yr(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function pr(e,t,n){return fr(vt(e),t,n)}function gr(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),i={...e.c,year:r,month:s,day:Math.min(e.c.day,wt(r,s))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=_n.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=vt(i);let[l,c]=fr(o,n,e.zone);return 0!==a&&(l+=a,c=e.zone.offset(l)),{ts:l,o:c}}function wr(e,t,n,r,s,i){const{setZone:a,zone:o}=n;if(e&&0!==Object.keys(e).length||t){const r=t||o,s=$r.fromObject(e,{...n,zone:r,specificOffset:i});return a?s:s.setZone(o)}return $r.invalid(new Ue("unparsable",`the input "${s}" can't be parsed as ${r}`))}function vr(e,t,n=!0){return e.isValid?qt.create(Se.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function kr(e,t,n){const r=e.c.year>9999||e.c.year<0;let s="";if(r&&e.c.year>=0&&(s+="+"),s+=dt(e.c.year,r?6:4),"year"===n)return s;if(t){if(s+="-",s+=dt(e.c.month),"month"===n)return s;s+="-"}else if(s+=dt(e.c.month),"month"===n)return s;return s+=dt(e.c.day),s}function br(e,t,n,r,s,i,a){let o=!n||0!==e.c.millisecond||0!==e.c.second,l="";switch(a){case"day":case"month":case"year":break;default:if(l+=dt(e.c.hour),"hour"===a)break;if(t){if(l+=":",l+=dt(e.c.minute),"minute"===a)break;o&&(l+=":",l+=dt(e.c.second))}else{if(l+=dt(e.c.minute),"minute"===a)break;o&&(l+=dt(e.c.second))}if("second"===a)break;!o||r&&0===e.c.millisecond||(l+=".",l+=dt(e.c.millisecond,3))}return s&&(e.isOffsetFixed&&0===e.offset&&!i?l+="Z":e.o<0?(l+="-",l+=dt(Math.trunc(-e.o/60)),l+=":",l+=dt(Math.trunc(-e.o%60))):(l+="+",l+=dt(Math.trunc(e.o/60)),l+=":",l+=dt(Math.trunc(e.o%60)))),i&&(l+="["+e.zone.ianaName+"]"),l}const Sr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Tr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},xr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Or=["year","month","day","hour","minute","second","millisecond"],Nr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Cr=["year","ordinal","hour","minute","second","millisecond"];function Mr(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new C(e);return t}function Dr(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Mr(e)}}function Vr(e,t){const n=Ne(t.zone,ze.defaultZone);if(!n.isValid)return $r.invalid(ur(n));const r=Se.fromObject(t);let s,i;if(nt(e.year))s=ze.now();else{for(const t of Or)nt(e[t])&&(e[t]=Sr[t]);const t=et(e)||tt(e);if(t)return $r.invalid(t);const r=function(e){if(void 0===Fr&&(Fr=ze.now()),"iana"!==e.type)return e.offset(Fr);const t=e.name;let n=Lr.get(t);return void 0===n&&(n=e.offset(Fr),Lr.set(t,n)),n}(n);[s,i]=pr(e,r,n)}return new $r({ts:s,zone:n,loc:r,o:i})}function Ir(e,t,n){const r=!!nt(n.round)||n.round,s=nt(n.rounding)?"trunc":n.rounding,i=(e,i)=>(e=yt(e,r||n.calendary?0:2,n.calendary?"round":s),t.loc.clone(n).relFormatter(n).format(e,i)),a=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return i(a(n.unit),n.unit);for(const e of n.units){const t=a(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,n.units[n.units.length-1])}function Er(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}let Fr;const Lr=new Map;class $r{constructor(e){const t=e.zone||ze.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Ue("invalid input"):null)||(t.isValid?null:ur(t));this.ts=nt(e.ts)?ze.now():e.ts;let r=null,s=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,s]=[e.old.c,e.old.o];else{const i=rt(e.o)&&!e.old?e.o:t.offset(this.ts);r=yr(this.ts,i),n=Number.isNaN(r.year)?new Ue("invalid input"):null,r=n?null:r,s=n?null:i}this._zone=t,this.loc=e.loc||Se.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new $r({})}static local(){const[e,t]=Er(arguments),[n,r,s,i,a,o,l]=t;return Vr({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:l},e)}static utc(){const[e,t]=Er(arguments),[n,r,s,i,a,o,l]=t;return e.zone=xe.utcInstance,Vr({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:l},e)}static fromJSDate(e,t={}){const n=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);var r;if(Number.isNaN(n))return $r.invalid("invalid input");const s=Ne(t.zone,ze.defaultZone);return s.isValid?new $r({ts:n,zone:s,loc:Se.fromObject(t)}):$r.invalid(ur(s))}static fromMillis(e,t={}){if(rt(e))return e<-cr||e>cr?$r.invalid("Timestamp out of range"):new $r({ts:e,zone:Ne(t.zone,ze.defaultZone),loc:Se.fromObject(t)});throw new M(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(rt(e))return new $r({ts:1e3*e,zone:Ne(t.zone,ze.defaultZone),loc:Se.fromObject(t)});throw new M("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=Ne(t.zone,ze.defaultZone);if(!n.isValid)return $r.invalid(ur(n));const r=Se.fromObject(t),s=Nt(e,Dr),{minDaysInFirstWeek:i,startOfWeek:a}=Qe(s,r),o=ze.now(),l=nt(t.specificOffset)?n.offset(o):t.specificOffset,c=!nt(s.ordinal),u=!nt(s.year),d=!nt(s.month)||!nt(s.day),h=u||d,m=s.weekYear||s.weekNumber;if((h||c)&&m)throw new N("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new N("Can't mix ordinal dates with month/day");const f=m||s.weekday&&!h;let y,p,g=yr(o,l);f?(y=Nr,p=Tr,g=Je(g,i,a)):c?(y=Cr,p=xr,g=Ke(g)):(y=Or,p=Sr);let w=!1;for(const e of y)nt(s[e])?s[e]=w?p[e]:g[e]:w=!0;const v=f?function(e,t=4,n=1){const r=st(e.weekYear),s=ut(e.weekNumber,1,bt(e.weekYear,t,n)),i=ut(e.weekday,1,7);return r?s?!i&&qe("weekday",e.weekday):qe("week",e.weekNumber):qe("weekYear",e.weekYear)}(s,i,a):c?function(e){const t=st(e.year),n=ut(e.ordinal,1,gt(e.year));return t?!n&&qe("ordinal",e.ordinal):qe("year",e.year)}(s):et(s),k=v||tt(s);if(k)return $r.invalid(k);const b=f?Be(s,i,a):c?Xe(s):s,[S,T]=pr(b,l,n),x=new $r({ts:S,zone:n,o:T,loc:r});return s.weekday&&h&&e.weekday!==x.weekday?$r.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${x.toISO()}`):x.isValid?x:$r.invalid(x.invalid)}static fromISO(e,t={}){const[n,r]=function(e){return Yt(e,[bn,On],[Sn,Nn],[Tn,Cn],[xn,Mn])}(e);return wr(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return Yt(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[fn,yn])}(e);return wr(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return Yt(e,[pn,vn],[gn,vn],[wn,kn])}(e);return wr(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(nt(e)||nt(t))throw new M("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,i=Se.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[a,o,l,c]=function(e,t,n){const{result:r,zone:s,specificOffset:i,invalidReason:a}=ar(e,t,n);return[r,s,i,a]}(i,e,t);return c?$r.invalid(c):wr(a,o,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return $r.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function(e){return Yt(e,[Vn,On],[In,En])}(e);return wr(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new M("need to specify a reason the DateTime is invalid");const n=e instanceof Ue?e:new Ue(e,t);if(ze.throwOnInvalid)throw new T(n);return new $r({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=or(e,Se.fromObject(t));return n?n.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return sr(qt.parseFormat(e),Se.fromObject(t)).map(e=>e.val).join("")}static resetCache(){Fr=void 0,Lr.clear()}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?dr(this).weekYear:NaN}get weekNumber(){return this.isValid?dr(this).weekNumber:NaN}get weekday(){return this.isValid?dr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?hr(this).weekday:NaN}get localWeekNumber(){return this.isValid?hr(this).weekNumber:NaN}get localWeekYear(){return this.isValid?hr(this).weekYear:NaN}get ordinal(){return this.isValid?Ke(this.c).ordinal:NaN}get monthShort(){return this.isValid?Hn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Hn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Hn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Hn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=vt(this.c),r=this.zone.offset(n-e),s=this.zone.offset(n+e),i=this.zone.offset(n-r*t),a=this.zone.offset(n-s*t);if(i===a)return[this];const o=n-i*t,l=n-a*t,c=yr(o,i),u=yr(l,a);return c.hour===u.hour&&c.minute===u.minute&&c.second===u.second&&c.millisecond===u.millisecond?[mr(this,{ts:o}),mr(this,{ts:l})]:[this]}get isInLeapYear(){return pt(this.year)}get daysInMonth(){return wt(this.year,this.month)}get daysInYear(){return this.isValid?gt(this.year):NaN}get weeksInWeekYear(){return this.isValid?bt(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?bt(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=qt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(xe.instance(e),t)}toLocal(){return this.setZone(ze.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=Ne(e,ze.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=pr(n,t,e)}return mr(this,{ts:r,zone:e})}return $r.invalid(ur(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return mr(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Nt(e,Dr),{minDaysInFirstWeek:n,startOfWeek:r}=Qe(t,this.loc),s=!nt(t.weekYear)||!nt(t.weekNumber)||!nt(t.weekday),i=!nt(t.ordinal),a=!nt(t.year),o=!nt(t.month)||!nt(t.day),l=a||o,c=t.weekYear||t.weekNumber;if((l||i)&&c)throw new N("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new N("Can't mix ordinal dates with month/day");let u;s?u=Be({...Je(this.c,n,r),...t},n,r):nt(t.ordinal)?(u={...this.toObject(),...t},nt(t.day)&&(u.day=Math.min(wt(u.year,u.month),u.day))):u=Xe({...Ke(this.c),...t});const[d,h]=pr(u,this.o,this.zone);return mr(this,{ts:d,o:h})}plus(e){return this.isValid?mr(this,gr(this,_n.fromDurationLike(e))):this}minus(e){return this.isValid?mr(this,gr(this,_n.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},r=_n.normalizeUnit(e);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(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===r){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?qt.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):lr}toLocaleString(e=F,t={}){return this.isValid?qt.create(this.loc.clone(t),e).formatDateTime(this):lr}toLocaleParts(e={}){return this.isValid?qt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1,precision:i="milliseconds"}={}){if(!this.isValid)return null;const a="extended"===e;let o=kr(this,a,i=Mr(i));return Or.indexOf(i)>=3&&(o+="T"),o+=br(this,a,t,n,r,s,i),o}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?kr(this,"extended"===e,Mr(t)):null}toISOWeekDate(){return vr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:i="extended",precision:a="milliseconds"}={}){return this.isValid?(a=Mr(a),(r&&Or.indexOf(a)>=3?"T":"")+br(this,"extended"===i,t,e,n,s,a)):null}toRFC2822(){return vr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return vr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?kr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),vr(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():lr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return _n.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(o=t,Array.isArray(o)?o:[o]).map(_n.normalizeUnit),i=e.valueOf()>this.valueOf(),a=function(e,t,n,r){let[s,i,a,o]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=Pn(e,t);return(n-n%7)/7}],["days",Pn]],s={},i=e;let a,o;for(const[l,c]of r)n.indexOf(l)>=0&&(a=l,s[l]=c(e,t),o=i.plus(s),o>t?(s[l]--,(e=i.plus(s))>t&&(o=e,s[l]--,e=i.plus(s))):e=o);return[e,s,o,a]}(e,t,n);const l=t-s,c=n.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===c.length&&(a<t&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+l/(a-s)));const u=_n.fromObject(i,r);return c.length>0?_n.fromMillis(l,r).shiftTo(...c).plus(u):u}(i?this:e,i?e:this,s,r);var o;return i?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff($r.now(),e,t)}until(e){return this.isValid?Gn.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const r=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(t,n)<=r&&r<=s.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||$r.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],s=e.unit;return Array.isArray(e.unit)&&(r=e.unit,s=void 0),Ir(t,this.plus(n),{...e,numeric:"always",units:r,unit:s})}toRelativeCalendar(e={}){return this.isValid?Ir(e.base||$r.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every($r.isDateTime))throw new M("min requires all arguments be DateTimes");return ot(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every($r.isDateTime))throw new M("max requires all arguments be DateTimes");return ot(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:s=null}=n;return ar(Se.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return $r.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:r=null}=t,s=Se.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new ir(s,e)}static fromFormatParser(e,t,n={}){if(nt(e)||nt(t))throw new M("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:s=null}=n,i=Se.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});if(!i.equals(t.locale))throw new M(`fromFormatParser called with a locale of ${i}, but the format parser was created for ${t.locale}`);const{result:a,zone:o,specificOffset:l,invalidReason:c}=t.explainFromTokens(e);return c?$r.invalid(c):wr(a,o,n,`format ${t.format}`,e,l)}static get DATE_SHORT(){return F}static get DATE_MED(){return L}static get DATE_MED_WITH_WEEKDAY(){return $}static get DATE_FULL(){return A}static get DATE_HUGE(){return j}static get TIME_SIMPLE(){return W}static get TIME_WITH_SECONDS(){return Z}static get TIME_WITH_SHORT_OFFSET(){return z}static get TIME_WITH_LONG_OFFSET(){return U}static get TIME_24_SIMPLE(){return R}static get TIME_24_WITH_SECONDS(){return _}static get TIME_24_WITH_SHORT_OFFSET(){return q}static get TIME_24_WITH_LONG_OFFSET(){return G}static get DATETIME_SHORT(){return H}static get DATETIME_SHORT_WITH_SECONDS(){return P}static get DATETIME_MED(){return Y}static get DATETIME_MED_WITH_SECONDS(){return J}static get DATETIME_MED_WITH_WEEKDAY(){return B}static get DATETIME_FULL(){return K}static get DATETIME_FULL_WITH_SECONDS(){return X}static get DATETIME_HUGE(){return Q}static get DATETIME_HUGE_WITH_SECONDS(){return ee}}function Ar(e){if($r.isDateTime(e))return e;if(e&&e.valueOf&&rt(e.valueOf()))return $r.fromJSDate(e);if(e&&"object"==typeof e)return $r.fromObject(e);throw new M(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const jr=({visit:e})=>(0,r.jsxs)(f.A,{component:"span",variant:"caption",color:"textSecondary",children:[e.hits," time",e.hits>1?"s":""]}),Wr=({visit:e})=>{const t=$r.fromMillis(e.timestamp);return(0,r.jsx)(f.A,{component:"time",variant:"caption",color:"textSecondary",dateTime:t.toISO()??void 0,children:t.toRelative()})},Zr=({visit:e,type:t})=>"time-ago"===t?(0,r.jsx)(Wr,{visit:e}):(0,r.jsx)(jr,{visit:e});var zr=n(89575),Ur=n(39850),Rr=n(36274);const _r=(0,n(58064).A)(s.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var qr=n(7031),Gr=n(268),Hr=n(19878),Pr=n(11192),Yr=n(97740);function Jr(e){return"Backspace"===e.key||"Delete"===e.key}var Br=s.forwardRef(function(e,t){var n=e.avatar,r=e.classes,i=e.className,a=e.clickable,o=e.color,l=void 0===o?"default":o,c=e.component,u=e.deleteIcon,d=e.disabled,h=void 0!==d&&d,m=e.icon,f=e.label,y=e.onClick,p=e.onDelete,g=e.onKeyDown,w=e.onKeyUp,v=e.size,k=void 0===v?"medium":v,b=e.variant,S=void 0===b?"default":b,T=(0,Ur.A)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),x=s.useRef(null),O=(0,Hr.A)(x,t),N=function(e){e.stopPropagation(),p&&p(e)},C=!(!1===a||!y)||a,M="small"===k,D=c||(C?Yr.A:"div"),V=D===Yr.A?{component:"div"}:{},I=null;if(p){var E=(0,Rr.A)("default"!==l&&("default"===S?r["deleteIconColor".concat((0,Pr.A)(l))]:r["deleteIconOutlinedColor".concat((0,Pr.A)(l))]),M&&r.deleteIconSmall);I=u&&s.isValidElement(u)?s.cloneElement(u,{className:(0,Rr.A)(u.props.className,r.deleteIcon,E),onClick:N}):s.createElement(_r,{className:(0,Rr.A)(r.deleteIcon,E),onClick:N})}var F=null;n&&s.isValidElement(n)&&(F=s.cloneElement(n,{className:(0,Rr.A)(r.avatar,n.props.className,M&&r.avatarSmall,"default"!==l&&r["avatarColor".concat((0,Pr.A)(l))])}));var L=null;return m&&s.isValidElement(m)&&(L=s.cloneElement(m,{className:(0,Rr.A)(r.icon,m.props.className,M&&r.iconSmall,"default"!==l&&r["iconColor".concat((0,Pr.A)(l))])})),s.createElement(D,(0,zr.A)({role:C||p?"button":void 0,className:(0,Rr.A)(r.root,i,"default"!==l&&[r["color".concat((0,Pr.A)(l))],C&&r["clickableColor".concat((0,Pr.A)(l))],p&&r["deletableColor".concat((0,Pr.A)(l))]],"default"!==S&&[r.outlined,{primary:r.outlinedPrimary,secondary:r.outlinedSecondary}[l]],h&&r.disabled,M&&r.sizeSmall,C&&r.clickable,p&&r.deletable),"aria-disabled":!!h||void 0,tabIndex:C||p?0:void 0,onClick:y,onKeyDown:function(e){e.currentTarget===e.target&&Jr(e)&&e.preventDefault(),g&&g(e)},onKeyUp:function(e){e.currentTarget===e.target&&(p&&Jr(e)?p(e):"Escape"===e.key&&x.current&&x.current.blur()),w&&w(e)},ref:O},V,T),F||L,s.createElement("span",{className:(0,Rr.A)(r.label,M&&r.labelSmall)},f),I)});const Kr=(0,qr.A)(function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,Gr.X4)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,Gr.tL)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,Gr.tL)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,Gr.tL)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,Gr.tL)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,Gr.tL)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,Gr.tL)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Gr.X4)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Gr.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Gr.X4)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,Gr.X4)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,Gr.X4)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,Gr.X4)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,Gr.X4)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,Gr.X4)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}},{name:"MuiChip"})(Br),Xr="url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1368' height='401' x='0' y='0' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M437 116C223 116 112 0 112 0h1256v400c-82 0-225-21-282-109-112-175-436-175-649-175z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1368 400V282C891-29 788 40 711 161 608 324 121 372 0 361v39h1368z'/%3e%3cpath fill='url(%23paint2_linear)' d='M1368 244v156H0V94c92-24 198-46 375 0l135 41c176 51 195 109 858 109z'/%3e%3cpath fill='url(%23paint3_linear)' d='M1252 400h116c-14-7-35-14-116-16-663-14-837-128-1013-258l-85-61C98 28 46 8 0 0v400h1252z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M-172-98h1671v601H-172z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='602' x2='1093.5' y1='-960.5' y2='272' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='482' x2='480' y1='1058.5' y2='70.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='424' x2='446.1' y1='-587.5' y2='274.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='587' x2='349' y1='-1120.5' y2='341' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\")",Qr="url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1764' height='479' x='-229' y='-6' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M0 400h1350C1321 336 525 33 179-2c-345-34-395 236-408 402H0z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1378 177v223H0V217s219 75 327 52C436 246 717-35 965 45s254 144 413 132z'/%3e%3cpath fill='url(%23paint2_linear)' d='M26 400l-78-16c-170 205-44-6-137-30l-4-1 4 1 137 30c37-45 89-110 159-201 399-514-45 238 1176-50 275-65 354-39 91 267H26z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='431' x2='397.3' y1='-599' y2='372.8' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='236.5' x2='446.6' y1='-586' y2='381.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='851.8' x2='640.4' y1='-867.2' y2='363.7' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\")",es="url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='2269' height='1408' x='-610' y='-509' maskUnits='userSpaceOnUse'%3e%3ccircle cx='1212.8' cy='74.8' r='317.5' fill='url(%23paint0_linear)' transform='rotate(-52 1213 75)'/%3e%3ccircle cx='737.8' cy='445.8' r='317.5' fill='url(%23paint1_linear)' transform='rotate(-116 738 446)'/%3e%3ccircle cx='601.8' cy='52.8' r='418.6' fill='url(%23paint2_linear)' transform='rotate(-117 602 53)'/%3e%3ccircle cx='999.8' cy='364' r='389.1' fill='url(%23paint3_linear)' transform='rotate(31 1000 364)'/%3e%3cellipse cx='-109.2' cy='263.5' fill='url(%23paint4_linear)' rx='429.2' ry='465.8' transform='rotate(-85 -109 264)'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='1301.2' x2='161.4' y1='-1879.7' y2='-969.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='826.2' x2='-313.6' y1='-1508.7' y2='-598.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='718.4' x2='-784.3' y1='-2524' y2='-1324.2' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='1108.2' x2='-288.6' y1='-2031.1' y2='-915.9' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint4_linear' x1='10.4' x2='-1626.5' y1='-2603.8' y2='-1399.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\")",ts={darkGrey:["#171717","#383838"],marineBlue:["#006D8F","#0049A1"],veryBlue:["#0027AF","#270094"],rubyRed:["#98002B","#8D1134"],toastyOrange:["#BE2200","#A41D00"],purpleSky:["#8912CA","#3E00EA"],eveningSea:["#00CFC5","#035355"],teal:["#005B4B"],pinkSea:["#C8077A","#C2297D"],greens:["#4BB8A5","#187656"]};function ns(e){const{colors:t,shape:n,options:r}=e;return{colors:t,shape:n,backgroundImage:`${n}, linear-gradient(90deg, ${(1===t.length?[t[0],t[0]]:t).join(", ")})`,fontColor:r?.fontColor??"#FFFFFF"}}ns({colors:ts.teal,shape:Xr}),ns({colors:ts.pinkSea,shape:Qr}),ns({colors:ts.purpleSky,shape:es}),ns({colors:ts.marineBlue,shape:Xr}),ns({colors:ts.veryBlue,shape:Xr}),ns({colors:ts.rubyRed,shape:Xr}),ns({colors:ts.darkGrey,shape:Xr}),ns({colors:ts.toastyOrange,shape:Xr}),ns({colors:ts.teal,shape:Qr}),ns({colors:ts.greens,shape:Xr});var rs=n(78560);const ss=(0,m.makeStyles)(e=>({chip:{color:e.palette.common.white,fontWeight:"bold",margin:0}})),is=e=>{const t=Object.keys(ts),n=e%t.length;return ts[t[n]][0]},as=e=>{const t=is(0);if(!e)return t;const n=["component","template","api","group","user","resource","system","domain","location"].indexOf(e.kind.toLocaleLowerCase("en-US"));return-1===n?t:is(n+1)},os=({visit:e})=>{const t=ss(),n=(e=>{try{return(0,rs.KU)(e?.entityRef??"")}catch(e){return}})(e);return(0,r.jsx)(Kr,{size:"small",className:t.chip,label:(n?.kind??"Other").toLocaleLowerCase("en-US"),style:{background:as(n)}})},ls=(0,m.makeStyles)(e=>({avatar:{minWidth:0}})),cs=({visit:e,detailType:t})=>{const n=ls();return(0,r.jsxs)(u.A,{disableGutters:!0,children:[(0,r.jsx)(d.A,{className:n.avatar,children:(0,r.jsx)(os,{visit:e})}),(0,r.jsx)(h.A,{primary:(0,r.jsx)(b,{visit:e}),secondary:(0,r.jsx)(Zr,{visit:e,type:t}),disableTypography:!0})]})};var us=n(98254),ds=n(55138);const hs=()=>{const{t:e}=(0,us.useTranslationRef)(ds.g);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.A,{variant:"body2",color:"textSecondary",children:e("visitList.empty.title")}),(0,r.jsx)(f.A,{variant:"body2",color:"textSecondary",children:e("visitList.empty.description")})]})},ms=()=>{const{t:e}=(0,us.useTranslationRef)(ds.g);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(f.A,{variant:"body2",color:"textSecondary",children:e("visitList.few.title")})})};function fs(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=fs(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const ys=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=fs(e))&&(r&&(r+=" "),r+=t);return r};var ps=s.forwardRef(function(e,t){var n=e.animation,r=void 0===n?"pulse":n,i=e.classes,a=e.className,o=e.component,l=void 0===o?"span":o,c=e.height,u=e.variant,d=void 0===u?"text":u,h=e.width,m=(0,Ur.A)(e,["animation","classes","className","component","height","variant","width"]),f=Boolean(m.children);return s.createElement(l,(0,zr.A)({ref:t,className:ys(i.root,i[d],a,f&&[i.withChildren,!h&&i.fitContent,!c&&i.heightAuto],!1!==r&&i[r])},m,{style:(0,zr.A)({width:h,height:c},m.style)}))});const gs=(0,m.withStyles)(function(e){return{root:{display:"block",backgroundColor:(0,m.alpha)(e.palette.text.primary,"light"===e.palette.type?.11:.13),height:"1.2em"},text:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 60%",transform:"scale(1, 0.60)",borderRadius:e.shape.borderRadius,"&:empty:before":{content:'"\\00a0"'}},rect:{},circle:{borderRadius:"50%"},pulse:{animation:"$pulse 1.5s ease-in-out 0.5s infinite"},"@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}},wave:{position:"relative",overflow:"hidden","&::after":{animation:"$wave 1.6s linear 0.5s infinite",background:"linear-gradient(90deg, transparent, ".concat(e.palette.action.hover,", transparent)"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}},"@keyframes wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},withChildren:{"& > *":{visibility:"hidden"}},fitContent:{maxWidth:"fit-content"},heightAuto:{height:"auto"}}},{name:"MuiSkeleton"})(ps),ws=(0,m.makeStyles)(e=>({skeleton:{borderRadius:30}})),vs=()=>{const e=ws();return(0,r.jsxs)(u.A,{disableGutters:!0,children:[(0,r.jsx)(d.A,{children:(0,r.jsx)(gs,{className:e.skeleton,variant:"rect",width:50,height:24})}),(0,r.jsx)(h.A,{primary:(0,r.jsx)(gs,{variant:"text",width:"100%",height:28}),disableTypography:!0})]})},ks=({numVisitsOpen:e,numVisitsTotal:t,collapsed:n})=>(0,r.jsxs)(r.Fragment,{children:[Array(e).fill(null).map((e,t)=>(0,r.jsx)(vs,{},t)),t>e&&(0,r.jsx)(l.A,{in:!n,children:Array(t-e).fill(null).map((e,t)=>(0,r.jsx)(vs,{},t))})]}),bs=({detailType:e,visits:t=[],numVisitsOpen:n=3,numVisitsTotal:s=8,collapsed:i=!0,loading:a=!1,title:o=""})=>{let u=(0,r.jsx)(r.Fragment,{});return u=a?(0,r.jsx)(ks,{numVisitsOpen:n,numVisitsTotal:s,collapsed:i}):0===t.length?(0,r.jsx)(hs,{}):t.length<n?(0,r.jsxs)(r.Fragment,{children:[t.map((t,n)=>(0,r.jsx)(cs,{visit:t,detailType:e},n)),(0,r.jsx)(ms,{})]}):(0,r.jsxs)(r.Fragment,{children:[t.slice(0,n).map((t,n)=>(0,r.jsx)(cs,{visit:t,detailType:e},n)),t.length>n&&(0,r.jsx)(l.A,{in:!i,children:t.slice(n,s).map((t,n)=>(0,r.jsx)(cs,{visit:t,detailType:e},n))})]}),(0,r.jsxs)(r.Fragment,{children:[o&&(0,r.jsx)("h5",{children:o}),(0,r.jsx)(c.A,{dense:!0,disablePadding:!0,children:u})]})};var Ss=n(87667);const Ts=()=>{const{collapsed:e,numVisitsOpen:t,numVisitsTotal:n,visits:s,loading:i,kind:a}=(0,Ss.NT)();return(0,r.jsx)(bs,{visits:s,detailType:"top"===a?"hits":"time-ago",collapsed:e,numVisitsOpen:t,numVisitsTotal:n,loading:i})};n(28890);var xs=n(45274);const Os=({visits:e,numVisitsOpen:t,numVisitsTotal:n,loading:a,kind:l})=>{const{setContext:c,setVisits:u,setLoading:d}=(0,Ss.NT)();(0,s.useEffect)(()=>{const r={};r.kind=l,e?(r.visits=e,r.loading=!1):a&&(r.loading=a),t&&(r.numVisitsOpen=t),n&&(r.numVisitsTotal=n),c(e=>({...e,...r}))},[c,l,e,a,t,n]);const h=(0,p.useApi)(p.configApiRef),m=(0,p.useApi)(i.y),{loading:f}=(0,xs.A)(async()=>{if(!e&&!a&&"recent"===l){const e=o(h.getOptionalConfigArray("home.recentVisits.filterBy")??[]);return await m.list({limit:n??8,orderBy:[{field:"timestamp",direction:"desc"}],...e&&{filterBy:e}}).then(u)}if(!e&&!a&&"top"===l){const e=o(h.getOptionalConfigArray("home.topVisits.filterBy")??[]);return await m.list({limit:n??8,orderBy:[{field:"hits",direction:"desc"}],...e&&{filterBy:e}}).then(u)}},[m,e,a,u]);return(0,s.useEffect)(()=>{a||d(f)},[a,d,f]),(0,r.jsx)(Ts,{})}},87667:(e,t,n)=>{n.d(t,{DT:()=>c,NT:()=>u});var r=n(31085),s=n(95478);const i={collapsed:!0,numVisitsOpen:3,numVisitsTotal:8,visits:[],loading:!0,kind:"recent"},a={...i,setCollapsed:()=>{},setNumVisitsOpen:()=>{},setNumVisitsTotal:()=>{},setVisits:()=>{},setLoading:()=>{},setKind:()=>{},setContext:()=>{}},o=(0,s.createContext)(a),l=(e,t)=>n=>e(e=>({...e,[t]:"function"==typeof n?n(e[t]):n})),c=({children:e})=>{const[t,n]=(0,s.useState)(i),{setCollapsed:a,setNumVisitsOpen:c,setNumVisitsTotal:u,setVisits:d,setLoading:h,setKind:m}=(0,s.useMemo)(()=>({setCollapsed:l(n,"collapsed"),setNumVisitsOpen:l(n,"numVisitsOpen"),setNumVisitsTotal:l(n,"numVisitsTotal"),setVisits:l(n,"visits"),setLoading:l(n,"loading"),setKind:l(n,"kind")}),[n]),f={...t,setContext:n,setCollapsed:a,setNumVisitsOpen:c,setNumVisitsTotal:u,setVisits:d,setLoading:h,setKind:m};return(0,r.jsx)(o.Provider,{value:f,children:e})},u=()=>{const e=(0,s.useContext)(o);if(void 0===e)throw new Error("VisitedByType useContext found undefined ContextValue, <ContextProvider/> could be missing");return e}},91467:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(89575),s=n(39850),i=n(95478),a=n(36274),o=n(7031),l=n(43504),c=i.forwardRef(function(e,t){var n=e.classes,o=e.className,c=(0,s.A)(e,["classes","className"]),u=i.useContext(l.A);return i.createElement("div",(0,r.A)({className:(0,a.A)(n.root,o,"flex-start"===u.alignItems&&n.alignItemsFlexStart),ref:t},c))});const u=(0,o.A)({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})(c)}}]);
|
|
2
|
+
//# sourceMappingURL=6356.a59d5e2e.chunk.js.map
|