@digital-realty/ui-mfe-dcim 17.0.0-master.568095 → 17.0.0

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.
@@ -34,7 +34,7 @@ var wU=Object.defineProperty;var TU=(t,e,r)=>e in t?wU(t,e,{enumerable:!0,config
34
34
  * LICENSE.md file in the root directory of this source tree.
35
35
  *
36
36
  * @license MIT
37
- */function ss(){return ss=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ss.apply(null,arguments)}function _I(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function DH(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function MH(t,e){return t.button===0&&(!e||e==="_self")&&!DH(t)}const PH=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],LH=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],NH="6";try{window.__reactRouterVersion=NH}catch{}function fae(t,e){return Gq({basename:e==null?void 0:e.basename,future:ss({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:yq({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||FH(),routes:t,mapRouteProperties:IH,dataStrategy:e==null?void 0:e.dataStrategy,patchRoutesOnNavigation:e==null?void 0:e.patchRoutesOnNavigation,window:e==null?void 0:e.window}).initialize()}function FH(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=ss({},e,{errors:kH(e.errors)})),e}function kH(t){if(!t)return null;let e=Object.entries(t),r={};for(let[n,i]of e)if(i&&i.__type==="RouteErrorResponse")r[n]=new Pf(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",r[n]=o}catch{}}if(r[n]==null){let a=new Error(i.message);a.stack="",r[n]=a}}else r[n]=i;return r}const xI=ue.createContext({isTransitioning:!1}),jH=ue.createContext(new Map),$H="startTransition",Qw=ue[$H],UH="flushSync",e1=AU[UH];function qH(t){Qw?Qw(t):t()}function Ys(t){e1?e1(t):t()}class HH{constructor(){this.status="pending",this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function dae(t){let{fallbackElement:e,router:r,future:n}=t,[i,a]=ue.useState(r.state),[o,s]=ue.useState(),[l,c]=ue.useState({isTransitioning:!1}),[d,h]=ue.useState(),[g,m]=ue.useState(),[v,_]=ue.useState(),y=ue.useRef(new Map),{v7_startTransition:x}=n||{},w=ue.useCallback(D=>{x?qH(D):D()},[x]),C=ue.useCallback((D,P)=>{let{deletedFetchers:N,flushSync:F,viewTransitionOpts:B}=P;D.fetchers.forEach((te,J)=>{te.data!==void 0&&y.current.set(J,te.data)}),N.forEach(te=>y.current.delete(te));let W=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!B||W){F?Ys(()=>a(D)):w(()=>a(D));return}if(F){Ys(()=>{g&&(d&&d.resolve(),g.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let te=r.window.document.startViewTransition(()=>{Ys(()=>a(D))});te.finished.finally(()=>{Ys(()=>{h(void 0),m(void 0),s(void 0),c({isTransitioning:!1})})}),Ys(()=>m(te));return}g?(d&&d.resolve(),g.skipTransition(),_({state:D,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(s(D),c({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[r.window,g,d,y,w]);ue.useLayoutEffect(()=>r.subscribe(C),[r,C]),ue.useEffect(()=>{l.isTransitioning&&!l.flushSync&&h(new HH)},[l]),ue.useEffect(()=>{if(d&&o&&r.window){let D=o,P=d.promise,N=r.window.document.startViewTransition(async()=>{w(()=>a(D)),await P});N.finished.finally(()=>{h(void 0),m(void 0),s(void 0),c({isTransitioning:!1})}),m(N)}},[w,o,d,r.window]),ue.useEffect(()=>{d&&o&&i.location.key===o.location.key&&d.resolve()},[d,g,i.location,o]),ue.useEffect(()=>{!l.isTransitioning&&v&&(s(v.state),c({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),_(void 0))},[l.isTransitioning,v]),ue.useEffect(()=>{},[]);let A=ue.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:D=>r.navigate(D),push:(D,P,N)=>r.navigate(D,{state:P,preventScrollReset:N==null?void 0:N.preventScrollReset}),replace:(D,P,N)=>r.navigate(D,{replace:!0,state:P,preventScrollReset:N==null?void 0:N.preventScrollReset})}),[r]),E=r.basename||"/",S=ue.useMemo(()=>({router:r,navigator:A,static:!1,basename:E}),[r,A,E]),T=ue.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return ue.useEffect(()=>OH(n,r.future),[n,r.future]),ue.createElement(ue.Fragment,null,ue.createElement(zu.Provider,{value:S},ue.createElement(I0.Provider,{value:i},ue.createElement(jH.Provider,{value:y.current},ue.createElement(xI.Provider,{value:l},ue.createElement(RH,{basename:E,location:i.location,navigationType:i.historyAction,navigator:A,future:T},i.initialized||r.future.v7_partialHydration?ue.createElement(WH,{routes:r.routes,future:r.future,state:i}):e))))),null)}const WH=ue.memo(BH);function BH(t){let{routes:e,future:r,state:n}=t;return gH(e,void 0,n,r)}const zH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",VH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,GH=ue.forwardRef(function(e,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:d,viewTransition:h}=e,g=_I(e,PH),{basename:m}=ue.useContext(qi),v,_=!1;if(typeof c=="string"&&VH.test(c)&&(v=c,zH))try{let C=new URL(window.location.href),A=c.startsWith("//")?new URL(C.protocol+c):new URL(c),E=ki(A.pathname,m);A.origin===C.origin&&E!=null?c=E+A.search+A.hash:_=!0}catch{}let y=hH(c,{relative:i}),x=YH(c,{replace:o,state:s,target:l,preventScrollReset:d,relative:i,viewTransition:h});function w(C){n&&n(C),C.defaultPrevented||x(C)}return ue.createElement("a",ss({},g,{href:v||y,onClick:_||a?n:w,ref:r,target:l}))}),KH=ue.forwardRef(function(e,r){let{"aria-current":n="page",caseSensitive:i=!1,className:a="",end:o=!1,style:s,to:l,viewTransition:c,children:d}=e,h=_I(e,LH),g=yd(l,{relative:h.relative}),m=mo(),v=ue.useContext(I0),{navigator:_,basename:y}=ue.useContext(qi),x=v!=null&&ZH(g)&&c===!0,w=_.encodeLocation?_.encodeLocation(g).pathname:g.pathname,C=m.pathname,A=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(C=C.toLowerCase(),A=A?A.toLowerCase():null,w=w.toLowerCase()),A&&y&&(A=ki(A,y)||A);const E=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let S=C===w||!o&&C.startsWith(w)&&C.charAt(E)==="/",T=A!=null&&(A===w||!o&&A.startsWith(w)&&A.charAt(w.length)==="/"),D={isActive:S,isPending:T,isTransitioning:x},P=S?n:void 0,N;typeof a=="function"?N=a(D):N=[a,S?"active":null,T?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(D):s;return ue.createElement(GH,ss({},h,{"aria-current":P,className:N,ref:r,style:F,to:l,viewTransition:c}),typeof d=="function"?d(D):d)});var Ry;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Ry||(Ry={}));var t1;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(t1||(t1={}));function XH(t){let e=ue.useContext(zu);return e||ot(!1),e}function YH(t,e){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s}=e===void 0?{}:e,l=vd(),c=mo(),d=yd(t,{relative:o});return ue.useCallback(h=>{if(MH(h,r)){h.preventDefault();let g=n!==void 0?n:uo(c)===uo(d);l(t,{replace:g,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[c,l,d,n,i,r,t,a,o,s])}function ZH(t,e){e===void 0&&(e={});let r=ue.useContext(xI);r==null&&ot(!1);let{basename:n}=XH(Ry.useViewTransitionState),i=yd(t,{relative:e.relative});if(!r.isTransitioning)return!1;let a=ki(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=ki(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Mf(i.pathname,o)!=null||Mf(i.pathname,a)!=null}const qa=new Map;function hae(t,e){if(x0===void 0)throw new TypeError('You are using React 17 or below. Install with "npm install use-local-storage-state@17".');const[r]=sr(e==null?void 0:e.defaultValue);if(typeof window>"u")return[r,()=>{},{isPersistent:!0,removeItem:()=>{}}];const n=e==null?void 0:e.serializer;return JH(t,r,e==null?void 0:e.storageSync,n==null?void 0:n.parse,n==null?void 0:n.stringify)}function JH(t,e,r=!0,n=QH,i=JSON.stringify){!qa.has(t)&&e!==void 0&&Zs(()=>localStorage.getItem(t))===null&&Zs(()=>localStorage.setItem(t,i(e)));const a=Kt({item:null,parsed:e}),o=x0(bt(l=>{const c=d=>{t===d&&l()};return Iy.add(c),()=>{Iy.delete(c)}},[t]),()=>{var l;const c=(l=Zs(()=>localStorage.getItem(t)))!==null&&l!==void 0?l:null;if(qa.has(t))a.current={item:c,parsed:qa.get(t)};else if(c!==a.current.item){let d;try{d=c===null?e:n(c)}catch{d=e}a.current={item:c,parsed:d}}return a.current.parsed},()=>e),s=bt(l=>{const c=l instanceof Function?l(a.current.parsed):l;try{localStorage.setItem(t,i(c)),qa.delete(t)}catch{qa.set(t,c)}mp(t)},[t,i]);return ht(()=>{if(!r)return;const l=c=>{c.storageArea===Zs(()=>localStorage)&&c.key===t&&mp(t)};return window.addEventListener("storage",l),()=>window.removeEventListener("storage",l)},[t,r]),yr(()=>[o,s,{isPersistent:o===e||!qa.has(t),removeItem(){Zs(()=>localStorage.removeItem(t)),qa.delete(t),mp(t)}}],[t,s,o,e])}const Iy=new Set;function mp(t){for(const e of[...Iy])e(t)}function QH(t){return t==="undefined"?void 0:JSON.parse(t)}function Zs(t){try{return t()}catch{return}}var eW={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},tW=function(e,r,n){var i,a=eW[e];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function vp(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth,n=t.formats[r]||t.formats[t.defaultWidth];return n}}var rW={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nW={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},iW={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aW={date:vp({formats:rW,defaultWidth:"full"}),time:vp({formats:nW,defaultWidth:"full"}),dateTime:vp({formats:iW,defaultWidth:"full"})},oW={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sW=function(e,r,n,i){return oW[e]};function Js(t){return function(e,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,o=r!=null&&r.width?String(r.width):a;i=t.formattingValues[o]||t.formattingValues[a]}else{var s=t.defaultWidth,l=r!=null&&r.width?String(r.width):t.defaultWidth;i=t.values[l]||t.values[s]}var c=t.argumentCallback?t.argumentCallback(e):e;return i[c]}}var uW={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},lW={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},cW={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},fW={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},hW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},pW=function(e,r){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},gW={ordinalNumber:pW,era:Js({values:uW,defaultWidth:"wide"}),quarter:Js({values:lW,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Js({values:cW,defaultWidth:"wide"}),day:Js({values:fW,defaultWidth:"wide"}),dayPeriod:Js({values:dW,defaultWidth:"wide",formattingValues:hW,defaultFormattingWidth:"wide"})};function Qs(t){return function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;var o=a[0],s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?vW(s,function(h){return h.test(o)}):mW(s,function(h){return h.test(o)}),c;c=t.valueCallback?t.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;var d=e.slice(o.length);return{value:c,rest:d}}}function mW(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function vW(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}function yW(t){return function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;var i=n[0],a=e.match(t.parsePattern);if(!a)return null;var o=t.valueCallback?t.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;var s=e.slice(i.length);return{value:o,rest:s}}}var bW=/^(\d+)(th|st|nd|rd)?/i,_W=/\d+/i,xW={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},wW={any:[/^b/i,/^(a|c)/i]},TW={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},SW={any:[/1/i,/2/i,/3/i,/4/i]},CW={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},EW={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},OW={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},AW={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},RW={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},IW={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},DW={ordinalNumber:yW({matchPattern:bW,parsePattern:_W,valueCallback:function(e){return parseInt(e,10)}}),era:Qs({matchPatterns:xW,defaultMatchWidth:"wide",parsePatterns:wW,defaultParseWidth:"any"}),quarter:Qs({matchPatterns:TW,defaultMatchWidth:"wide",parsePatterns:SW,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Qs({matchPatterns:CW,defaultMatchWidth:"wide",parsePatterns:EW,defaultParseWidth:"any"}),day:Qs({matchPatterns:OW,defaultMatchWidth:"wide",parsePatterns:AW,defaultParseWidth:"any"}),dayPeriod:Qs({matchPatterns:RW,defaultMatchWidth:"any",parsePatterns:IW,defaultParseWidth:"any"})},bd={code:"en-US",formatDistance:tW,formatLong:aW,formatRelative:sW,localize:gW,match:DW,options:{weekStartsOn:0,firstWeekContainsDate:1}};const wI=()=>({adapterLocale:bd}),MW=pd({activeAccount:null,email:"",handleCloseWelcomeVideo:()=>{},internalDomains:[],isError:!1,ready:!1,setActiveAccount:()=>{},setShowReleaseDialog:()=>{},showReleaseDialog:!1,showWelcomeVideo:!1,superUser:!1,userInfo:{},userPreferences:null}),PW=()=>Wu(MW),LW="17.0.0-master.568095",NW={version:LW},FW=()=>{var e;const t=(e=window.gpConfig)==null?void 0:e["ui-mfe-dcim"];if(!t)throw new Error("ui-mfe-dcim config not loaded. Ensure config.json is fetched before app bootstrap.");return t},kW=()=>{const{mfeChartsUi:t}=FW();return{appVersion:NW.version,globalApiUrl:t.globalApiUrl,i18nLoadPath:t.isDev?"/locales/{{lng}}/{{ns}}.json":"/src/lib/locales/{{lng}}/{{ns}}.json"}};class M0 extends Error{constructor(r,n,i,a){super(r);Xe(this,"statusCode",0);Xe(this,"description");Xe(this,"details");this.statusCode=n,this.description=i||"",this.details=a||"",Object.setPrototypeOf(this,M0.prototype)}}const TI=t=>t==null,jW=async t=>{var e,r,n,i,a;if(!t.ok){const o=await t.json(),s=(r=(e=o==null?void 0:o.Errors)==null?void 0:e.Error)==null?void 0:r[0];throw new M0(((i=(n=o==null?void 0:o.Errors)==null?void 0:n.Error)==null?void 0:i[0].ReasonCode)||((a=o==null?void 0:o.error)==null?void 0:a.message),t.status,s==null?void 0:s.Description,s==null?void 0:s.Details)}};function pi(t){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pi(t)}function wt(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Re(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function je(t){Re(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||pi(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function P0(t,e){Re(2,arguments);var r=je(t),n=wt(e);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function _d(t,e){Re(2,arguments);var r=je(t),n=wt(e);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),a=new Date(r.getTime());a.setMonth(r.getMonth()+n+1,0);var o=a.getDate();return i>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function Vu(t,e){Re(2,arguments);var r=je(t).getTime(),n=wt(e);return new Date(r+n)}var $W=36e5;function UW(t,e){Re(2,arguments);var r=wt(e);return Vu(t,r*$W)}var qW={};function Hi(){return qW}function r1(t,e){var r,n,i,a,o,s,l,c;Re(1,arguments);var d=Hi(),h=wt((r=(n=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=je(t),m=g.getDay(),v=(m<h?7:0)+m-h;return g.setDate(g.getDate()-v),g.setHours(0,0,0,0),g}function us(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function lo(t){Re(1,arguments);var e=je(t);return e.setHours(0,0,0,0),e}var HW=864e5;function WW(t,e){Re(2,arguments);var r=lo(t),n=lo(e),i=r.getTime()-us(r),a=n.getTime()-us(n);return Math.round((i-a)/HW)}var BW=6e4;function zW(t,e){Re(2,arguments);var r=wt(e);return Vu(t,r*BW)}function VW(t,e){Re(2,arguments);var r=wt(e),n=r*3;return _d(t,n)}function GW(t,e){Re(2,arguments);var r=wt(e);return Vu(t,r*1e3)}function KW(t,e){Re(2,arguments);var r=wt(e),n=r*7;return P0(t,n)}function XW(t,e){Re(2,arguments);var r=wt(e);return _d(t,r*12)}function ts(t,e){Re(2,arguments);var r=je(t),n=je(e),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}var xd=6e4,wd=36e5,YW=1e3;function ZW(t,e){Re(2,arguments);var r=lo(t),n=lo(e);return r.getTime()===n.getTime()}function SI(t){return Re(1,arguments),t instanceof Date||pi(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function xs(t){if(Re(1,arguments),!SI(t)&&typeof t!="number")return!1;var e=je(t);return!isNaN(Number(e))}function JW(t,e){Re(2,arguments);var r=je(t),n=je(e),i=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return i*12+a}function QW(t,e){Re(2,arguments);var r=je(t),n=je(e);return r.getFullYear()-n.getFullYear()}function n1(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function CI(t,e){Re(2,arguments);var r=je(t),n=je(e),i=n1(r,n),a=Math.abs(WW(r,n));r.setDate(r.getDate()-i*a);var o=+(n1(r,n)===-i),s=i*(a-o);return s===0?0:s}function Td(t,e){return Re(2,arguments),je(t).getTime()-je(e).getTime()}var i1={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},eB="trunc";function Gu(t){return t?i1[t]:i1[eB]}function tB(t,e,r){Re(2,arguments);var n=Td(t,e)/wd;return Gu(void 0)(n)}function rB(t,e,r){Re(2,arguments);var n=Td(t,e)/xd;return Gu(void 0)(n)}function Sd(t){Re(1,arguments);var e=je(t);return e.setHours(23,59,59,999),e}function EI(t){Re(1,arguments);var e=je(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e}function nB(t){Re(1,arguments);var e=je(t);return Sd(e).getTime()===EI(e).getTime()}function OI(t,e){Re(2,arguments);var r=je(t),n=je(e),i=ts(r,n),a=Math.abs(JW(r,n)),o;if(a<1)o=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);var s=ts(r,n)===-i;nB(je(t))&&a===1&&ts(t,n)===1&&(s=!1),o=i*(a-Number(s))}return o===0?0:o}function iB(t,e,r){Re(2,arguments);var n=OI(t,e)/3;return Gu(void 0)(n)}function aB(t,e,r){Re(2,arguments);var n=Td(t,e)/1e3;return Gu(void 0)(n)}function oB(t,e,r){Re(2,arguments);var n=CI(t,e)/7;return Gu(void 0)(n)}function sB(t,e){Re(2,arguments);var r=je(t),n=je(e),i=ts(r,n),a=Math.abs(QW(r,n));r.setFullYear(1584),n.setFullYear(1584);var o=ts(r,n)===-i,s=i*(a-Number(o));return s===0?0:s}function uB(t){Re(1,arguments);var e=je(t);return e.setSeconds(0,0),e}function lB(t){Re(1,arguments);var e=je(t),r=e.getMonth(),n=r-r%3;return e.setMonth(n,1),e.setHours(0,0,0,0),e}function cB(t){Re(1,arguments);var e=je(t);return e.setDate(1),e.setHours(0,0,0,0),e}function fB(t){Re(1,arguments);var e=je(t),r=e.getFullYear();return e.setFullYear(r+1,0,0),e.setHours(23,59,59,999),e}function dB(t){Re(1,arguments);var e=je(t),r=new Date(0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}function hB(t){Re(1,arguments);var e=je(t);return e.setMinutes(59,59,999),e}function pB(t,e){var r,n,i,a,o,s;Re(1,arguments);var l=Hi(),c=wt((r=(n=(i=(a=void 0)!==null&&a!==void 0?a:void 0)!==null&&i!==void 0?i:l.weekStartsOn)!==null&&n!==void 0?n:(o=l.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=je(t),h=d.getDay(),g=(h<c?-7:0)+6-(h-c);return d.setDate(d.getDate()+g),d.setHours(23,59,59,999),d}function gB(t){Re(1,arguments);var e=je(t);return e.setSeconds(59,999),e}function mB(t){Re(1,arguments);var e=je(t),r=e.getMonth(),n=r-r%3+3;return e.setMonth(n,0),e.setHours(23,59,59,999),e}function vB(t){Re(1,arguments);var e=je(t);return e.setMilliseconds(999),e}function AI(t,e){Re(2,arguments);var r=wt(e);return Vu(t,-r)}var yB=864e5;function bB(t){Re(1,arguments);var e=je(t),r=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),i=r-n;return Math.floor(i/yB)+1}function ls(t){Re(1,arguments);var e=1,r=je(t),n=r.getUTCDay(),i=(n<e?7:0)+n-e;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function RI(t){Re(1,arguments);var e=je(t),r=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=ls(n),a=new Date(0);a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0);var o=ls(a);return e.getTime()>=i.getTime()?r+1:e.getTime()>=o.getTime()?r:r-1}function _B(t){Re(1,arguments);var e=RI(t),r=new Date(0);r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0);var n=ls(r);return n}var xB=6048e5;function II(t){Re(1,arguments);var e=je(t),r=ls(e).getTime()-_B(e).getTime();return Math.round(r/xB)+1}function co(t,e){var r,n,i,a,o,s,l,c;Re(1,arguments);var d=Hi(),h=wt((r=(n=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=je(t),m=g.getUTCDay(),v=(m<h?7:0)+m-h;return g.setUTCDate(g.getUTCDate()-v),g.setUTCHours(0,0,0,0),g}function L0(t,e){var r,n,i,a,o,s,l,c;Re(1,arguments);var d=je(t),h=d.getUTCFullYear(),g=Hi(),m=wt((r=(n=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:g.firstWeekContainsDate)!==null&&n!==void 0?n:(l=g.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(h+1,0,m),v.setUTCHours(0,0,0,0);var _=co(v,e),y=new Date(0);y.setUTCFullYear(h,0,m),y.setUTCHours(0,0,0,0);var x=co(y,e);return d.getTime()>=_.getTime()?h+1:d.getTime()>=x.getTime()?h:h-1}function wB(t,e){var r,n,i,a,o,s,l,c;Re(1,arguments);var d=Hi(),h=wt((r=(n=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),g=L0(t,e),m=new Date(0);m.setUTCFullYear(g,0,h),m.setUTCHours(0,0,0,0);var v=co(m,e);return v}var TB=6048e5;function DI(t,e){Re(1,arguments);var r=je(t),n=co(r,e).getTime()-wB(r,e).getTime();return Math.round(n/TB)+1}function Ft(t,e){for(var r=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return r+n}var ia={y:function(e,r){var n=e.getUTCFullYear(),i=n>0?n:1-n;return Ft(r==="yy"?i%100:i,r.length)},M:function(e,r){var n=e.getUTCMonth();return r==="M"?String(n+1):Ft(n+1,2)},d:function(e,r){return Ft(e.getUTCDate(),r.length)},a:function(e,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,r){return Ft(e.getUTCHours()%12||12,r.length)},H:function(e,r){return Ft(e.getUTCHours(),r.length)},m:function(e,r){return Ft(e.getUTCMinutes(),r.length)},s:function(e,r){return Ft(e.getUTCSeconds(),r.length)},S:function(e,r){var n=r.length,i=e.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,n-3));return Ft(a,r.length)}},Wo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},SB={G:function(e,r,n){var i=e.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,r,n){if(r==="yo"){var i=e.getUTCFullYear(),a=i>0?i:1-i;return n.ordinalNumber(a,{unit:"year"})}return ia.y(e,r)},Y:function(e,r,n,i){var a=L0(e,i),o=a>0?a:1-a;if(r==="YY"){var s=o%100;return Ft(s,2)}return r==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ft(o,r.length)},R:function(e,r){var n=RI(e);return Ft(n,r.length)},u:function(e,r){var n=e.getUTCFullYear();return Ft(n,r.length)},Q:function(e,r,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return Ft(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,r,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return Ft(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,r,n){var i=e.getUTCMonth();switch(r){case"M":case"MM":return ia.M(e,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,r,n){var i=e.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return Ft(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,r,n,i){var a=DI(e,i);return r==="wo"?n.ordinalNumber(a,{unit:"week"}):Ft(a,r.length)},I:function(e,r,n){var i=II(e);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):Ft(i,r.length)},d:function(e,r,n){return r==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):ia.d(e,r)},D:function(e,r,n){var i=bB(e);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Ft(i,r.length)},E:function(e,r,n){var i=e.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,r,n,i){var a=e.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return Ft(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,r,n,i){var a=e.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return Ft(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,r,n){var i=e.getUTCDay(),a=i===0?7:i;switch(r){case"i":return String(a);case"ii":return Ft(a,r.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,r,n){var i=e.getUTCHours(),a=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,r,n){var i=e.getUTCHours(),a;switch(i===12?a=Wo.noon:i===0?a=Wo.midnight:a=i/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,r,n){var i=e.getUTCHours(),a;switch(i>=17?a=Wo.evening:i>=12?a=Wo.afternoon:i>=4?a=Wo.morning:a=Wo.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,r,n){if(r==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return ia.h(e,r)},H:function(e,r,n){return r==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ia.H(e,r)},K:function(e,r,n){var i=e.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Ft(i,r.length)},k:function(e,r,n){var i=e.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):Ft(i,r.length)},m:function(e,r,n){return r==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ia.m(e,r)},s:function(e,r,n){return r==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ia.s(e,r)},S:function(e,r){return ia.S(e,r)},X:function(e,r,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return o1(o);case"XXXX":case"XX":return za(o);case"XXXXX":case"XXX":default:return za(o,":")}},x:function(e,r,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(r){case"x":return o1(o);case"xxxx":case"xx":return za(o);case"xxxxx":case"xxx":default:return za(o,":")}},O:function(e,r,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+a1(o,":");case"OOOO":default:return"GMT"+za(o,":")}},z:function(e,r,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+a1(o,":");case"zzzz":default:return"GMT"+za(o,":")}},t:function(e,r,n,i){var a=i._originalDate||e,o=Math.floor(a.getTime()/1e3);return Ft(o,r.length)},T:function(e,r,n,i){var a=i._originalDate||e,o=a.getTime();return Ft(o,r.length)}};function a1(t,e){var r=t>0?"-":"+",n=Math.abs(t),i=Math.floor(n/60),a=n%60;if(a===0)return r+String(i);var o=e;return r+String(i)+o+Ft(a,2)}function o1(t,e){if(t%60===0){var r=t>0?"-":"+";return r+Ft(Math.abs(t)/60,2)}return za(t,e)}function za(t,e){var r=e||"",n=t>0?"-":"+",i=Math.abs(t),a=Ft(Math.floor(i/60),2),o=Ft(i%60,2);return n+a+r+o}var s1=function(e,r){switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},MI=function(e,r){switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},CB=function(e,r){var n=e.match(/(P+)(p+)?/)||[],i=n[1],a=n[2];if(!a)return s1(e,r);var o;switch(i){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",s1(i,r)).replace("{{time}}",MI(a,r))},Dy={p:MI,P:CB},EB=["D","DD"],OB=["YY","YYYY"];function PI(t){return EB.indexOf(t)!==-1}function LI(t){return OB.indexOf(t)!==-1}function Nf(t,e,r){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var AB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IB=/^'([^]*?)'?$/,DB=/''/g,MB=/[a-zA-Z]/;function Ku(t,e,r){var n,i,a,o,s,l,c,d,h,g,m,v,_,y,x,w,C,A;Re(2,arguments);var E=String(e),S=Hi(),T=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:S.locale)!==null&&n!==void 0?n:bd,D=wt((a=(o=(s=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(c=r.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&s!==void 0?s:S.firstWeekContainsDate)!==null&&o!==void 0?o:(h=S.locale)===null||h===void 0||(g=h.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=wt((m=(v=(_=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(x=r.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&_!==void 0?_:S.weekStartsOn)!==null&&v!==void 0?v:(C=S.locale)===null||C===void 0||(A=C.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&m!==void 0?m:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var N=je(t);if(!xs(N))throw new RangeError("Invalid time value");var F=us(N),B=AI(N,F),W={firstWeekContainsDate:D,weekStartsOn:P,locale:T,_originalDate:N},te=E.match(RB).map(function(J){var ie=J[0];if(ie==="p"||ie==="P"){var le=Dy[ie];return le(J,T.formatLong)}return J}).join("").match(AB).map(function(J){if(J==="''")return"'";var ie=J[0];if(ie==="'")return PB(J);var le=SB[ie];if(le)return!(r!=null&&r.useAdditionalWeekYearTokens)&&LI(J)&&Nf(J,e,String(t)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&PI(J)&&Nf(J,e,String(t)),le(B,J,T.localize,W);if(ie.match(MB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");return J}).join("");return te}function PB(t){var e=t.match(IB);return e?e[1].replace(DB,"'"):t}function N0(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}function LB(t){return N0({},t)}var u1=1e3*60,Ff=1440,l1=Ff*30,c1=Ff*365;function NB(t,e,r){var n,i,a;Re(2,arguments);var o=Hi(),s=(n=(i=void 0)!==null&&i!==void 0?i:o.locale)!==null&&n!==void 0?n:bd;if(!s.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var l=ts(t,e);if(isNaN(l))throw new RangeError("Invalid time value");var c=N0(LB(r),{addSuffix:!1,comparison:l}),d,h;l>0?(d=je(e),h=je(t)):(d=je(t),h=je(e));var g=String((a=void 0)!==null&&a!==void 0?a:"round"),m;if(g==="floor")m=Math.floor;else if(g==="ceil")m=Math.ceil;else if(g==="round")m=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var v=h.getTime()-d.getTime(),_=v/u1,y=us(h)-us(d),x=(v-y)/u1,w=r==null?void 0:r.unit,C;if(w?C=String(w):_<1?C="second":_<60?C="minute":_<Ff?C="hour":x<l1?C="day":x<c1?C="month":C="year",C==="second"){var A=m(v/1e3);return s.formatDistance("xSeconds",A,c)}else if(C==="minute"){var E=m(_);return s.formatDistance("xMinutes",E,c)}else if(C==="hour"){var S=m(_/60);return s.formatDistance("xHours",S,c)}else if(C==="day"){var T=m(x/Ff);return s.formatDistance("xDays",T,c)}else if(C==="month"){var D=m(x/l1);return D===12&&w!=="month"?s.formatDistance("xYears",1,c):s.formatDistance("xMonths",D,c)}else if(C==="year"){var P=m(x/c1);return s.formatDistance("xYears",P,c)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function f1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function FB(t,e){if(t){if(typeof t=="string")return f1(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f1(t,e):void 0}}function d1(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=FB(t))||e){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
37
+ */function ss(){return ss=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ss.apply(null,arguments)}function _I(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function DH(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function MH(t,e){return t.button===0&&(!e||e==="_self")&&!DH(t)}const PH=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],LH=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],NH="6";try{window.__reactRouterVersion=NH}catch{}function fae(t,e){return Gq({basename:e==null?void 0:e.basename,future:ss({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:yq({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||FH(),routes:t,mapRouteProperties:IH,dataStrategy:e==null?void 0:e.dataStrategy,patchRoutesOnNavigation:e==null?void 0:e.patchRoutesOnNavigation,window:e==null?void 0:e.window}).initialize()}function FH(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=ss({},e,{errors:kH(e.errors)})),e}function kH(t){if(!t)return null;let e=Object.entries(t),r={};for(let[n,i]of e)if(i&&i.__type==="RouteErrorResponse")r[n]=new Pf(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack="",r[n]=o}catch{}}if(r[n]==null){let a=new Error(i.message);a.stack="",r[n]=a}}else r[n]=i;return r}const xI=ue.createContext({isTransitioning:!1}),jH=ue.createContext(new Map),$H="startTransition",Qw=ue[$H],UH="flushSync",e1=AU[UH];function qH(t){Qw?Qw(t):t()}function Ys(t){e1?e1(t):t()}class HH{constructor(){this.status="pending",this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function dae(t){let{fallbackElement:e,router:r,future:n}=t,[i,a]=ue.useState(r.state),[o,s]=ue.useState(),[l,c]=ue.useState({isTransitioning:!1}),[d,h]=ue.useState(),[g,m]=ue.useState(),[v,_]=ue.useState(),y=ue.useRef(new Map),{v7_startTransition:x}=n||{},w=ue.useCallback(D=>{x?qH(D):D()},[x]),C=ue.useCallback((D,P)=>{let{deletedFetchers:N,flushSync:F,viewTransitionOpts:B}=P;D.fetchers.forEach((te,J)=>{te.data!==void 0&&y.current.set(J,te.data)}),N.forEach(te=>y.current.delete(te));let W=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!B||W){F?Ys(()=>a(D)):w(()=>a(D));return}if(F){Ys(()=>{g&&(d&&d.resolve(),g.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let te=r.window.document.startViewTransition(()=>{Ys(()=>a(D))});te.finished.finally(()=>{Ys(()=>{h(void 0),m(void 0),s(void 0),c({isTransitioning:!1})})}),Ys(()=>m(te));return}g?(d&&d.resolve(),g.skipTransition(),_({state:D,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(s(D),c({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[r.window,g,d,y,w]);ue.useLayoutEffect(()=>r.subscribe(C),[r,C]),ue.useEffect(()=>{l.isTransitioning&&!l.flushSync&&h(new HH)},[l]),ue.useEffect(()=>{if(d&&o&&r.window){let D=o,P=d.promise,N=r.window.document.startViewTransition(async()=>{w(()=>a(D)),await P});N.finished.finally(()=>{h(void 0),m(void 0),s(void 0),c({isTransitioning:!1})}),m(N)}},[w,o,d,r.window]),ue.useEffect(()=>{d&&o&&i.location.key===o.location.key&&d.resolve()},[d,g,i.location,o]),ue.useEffect(()=>{!l.isTransitioning&&v&&(s(v.state),c({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),_(void 0))},[l.isTransitioning,v]),ue.useEffect(()=>{},[]);let A=ue.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:D=>r.navigate(D),push:(D,P,N)=>r.navigate(D,{state:P,preventScrollReset:N==null?void 0:N.preventScrollReset}),replace:(D,P,N)=>r.navigate(D,{replace:!0,state:P,preventScrollReset:N==null?void 0:N.preventScrollReset})}),[r]),E=r.basename||"/",S=ue.useMemo(()=>({router:r,navigator:A,static:!1,basename:E}),[r,A,E]),T=ue.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return ue.useEffect(()=>OH(n,r.future),[n,r.future]),ue.createElement(ue.Fragment,null,ue.createElement(zu.Provider,{value:S},ue.createElement(I0.Provider,{value:i},ue.createElement(jH.Provider,{value:y.current},ue.createElement(xI.Provider,{value:l},ue.createElement(RH,{basename:E,location:i.location,navigationType:i.historyAction,navigator:A,future:T},i.initialized||r.future.v7_partialHydration?ue.createElement(WH,{routes:r.routes,future:r.future,state:i}):e))))),null)}const WH=ue.memo(BH);function BH(t){let{routes:e,future:r,state:n}=t;return gH(e,void 0,n,r)}const zH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",VH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,GH=ue.forwardRef(function(e,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:d,viewTransition:h}=e,g=_I(e,PH),{basename:m}=ue.useContext(qi),v,_=!1;if(typeof c=="string"&&VH.test(c)&&(v=c,zH))try{let C=new URL(window.location.href),A=c.startsWith("//")?new URL(C.protocol+c):new URL(c),E=ki(A.pathname,m);A.origin===C.origin&&E!=null?c=E+A.search+A.hash:_=!0}catch{}let y=hH(c,{relative:i}),x=YH(c,{replace:o,state:s,target:l,preventScrollReset:d,relative:i,viewTransition:h});function w(C){n&&n(C),C.defaultPrevented||x(C)}return ue.createElement("a",ss({},g,{href:v||y,onClick:_||a?n:w,ref:r,target:l}))}),KH=ue.forwardRef(function(e,r){let{"aria-current":n="page",caseSensitive:i=!1,className:a="",end:o=!1,style:s,to:l,viewTransition:c,children:d}=e,h=_I(e,LH),g=yd(l,{relative:h.relative}),m=mo(),v=ue.useContext(I0),{navigator:_,basename:y}=ue.useContext(qi),x=v!=null&&ZH(g)&&c===!0,w=_.encodeLocation?_.encodeLocation(g).pathname:g.pathname,C=m.pathname,A=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(C=C.toLowerCase(),A=A?A.toLowerCase():null,w=w.toLowerCase()),A&&y&&(A=ki(A,y)||A);const E=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let S=C===w||!o&&C.startsWith(w)&&C.charAt(E)==="/",T=A!=null&&(A===w||!o&&A.startsWith(w)&&A.charAt(w.length)==="/"),D={isActive:S,isPending:T,isTransitioning:x},P=S?n:void 0,N;typeof a=="function"?N=a(D):N=[a,S?"active":null,T?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(D):s;return ue.createElement(GH,ss({},h,{"aria-current":P,className:N,ref:r,style:F,to:l,viewTransition:c}),typeof d=="function"?d(D):d)});var Ry;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Ry||(Ry={}));var t1;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(t1||(t1={}));function XH(t){let e=ue.useContext(zu);return e||ot(!1),e}function YH(t,e){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s}=e===void 0?{}:e,l=vd(),c=mo(),d=yd(t,{relative:o});return ue.useCallback(h=>{if(MH(h,r)){h.preventDefault();let g=n!==void 0?n:uo(c)===uo(d);l(t,{replace:g,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[c,l,d,n,i,r,t,a,o,s])}function ZH(t,e){e===void 0&&(e={});let r=ue.useContext(xI);r==null&&ot(!1);let{basename:n}=XH(Ry.useViewTransitionState),i=yd(t,{relative:e.relative});if(!r.isTransitioning)return!1;let a=ki(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=ki(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Mf(i.pathname,o)!=null||Mf(i.pathname,a)!=null}const qa=new Map;function hae(t,e){if(x0===void 0)throw new TypeError('You are using React 17 or below. Install with "npm install use-local-storage-state@17".');const[r]=sr(e==null?void 0:e.defaultValue);if(typeof window>"u")return[r,()=>{},{isPersistent:!0,removeItem:()=>{}}];const n=e==null?void 0:e.serializer;return JH(t,r,e==null?void 0:e.storageSync,n==null?void 0:n.parse,n==null?void 0:n.stringify)}function JH(t,e,r=!0,n=QH,i=JSON.stringify){!qa.has(t)&&e!==void 0&&Zs(()=>localStorage.getItem(t))===null&&Zs(()=>localStorage.setItem(t,i(e)));const a=Kt({item:null,parsed:e}),o=x0(bt(l=>{const c=d=>{t===d&&l()};return Iy.add(c),()=>{Iy.delete(c)}},[t]),()=>{var l;const c=(l=Zs(()=>localStorage.getItem(t)))!==null&&l!==void 0?l:null;if(qa.has(t))a.current={item:c,parsed:qa.get(t)};else if(c!==a.current.item){let d;try{d=c===null?e:n(c)}catch{d=e}a.current={item:c,parsed:d}}return a.current.parsed},()=>e),s=bt(l=>{const c=l instanceof Function?l(a.current.parsed):l;try{localStorage.setItem(t,i(c)),qa.delete(t)}catch{qa.set(t,c)}mp(t)},[t,i]);return ht(()=>{if(!r)return;const l=c=>{c.storageArea===Zs(()=>localStorage)&&c.key===t&&mp(t)};return window.addEventListener("storage",l),()=>window.removeEventListener("storage",l)},[t,r]),yr(()=>[o,s,{isPersistent:o===e||!qa.has(t),removeItem(){Zs(()=>localStorage.removeItem(t)),qa.delete(t),mp(t)}}],[t,s,o,e])}const Iy=new Set;function mp(t){for(const e of[...Iy])e(t)}function QH(t){return t==="undefined"?void 0:JSON.parse(t)}function Zs(t){try{return t()}catch{return}}var eW={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},tW=function(e,r,n){var i,a=eW[e];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function vp(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth,n=t.formats[r]||t.formats[t.defaultWidth];return n}}var rW={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nW={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},iW={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aW={date:vp({formats:rW,defaultWidth:"full"}),time:vp({formats:nW,defaultWidth:"full"}),dateTime:vp({formats:iW,defaultWidth:"full"})},oW={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sW=function(e,r,n,i){return oW[e]};function Js(t){return function(e,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,o=r!=null&&r.width?String(r.width):a;i=t.formattingValues[o]||t.formattingValues[a]}else{var s=t.defaultWidth,l=r!=null&&r.width?String(r.width):t.defaultWidth;i=t.values[l]||t.values[s]}var c=t.argumentCallback?t.argumentCallback(e):e;return i[c]}}var uW={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},lW={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},cW={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},fW={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},hW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},pW=function(e,r){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},gW={ordinalNumber:pW,era:Js({values:uW,defaultWidth:"wide"}),quarter:Js({values:lW,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Js({values:cW,defaultWidth:"wide"}),day:Js({values:fW,defaultWidth:"wide"}),dayPeriod:Js({values:dW,defaultWidth:"wide",formattingValues:hW,defaultFormattingWidth:"wide"})};function Qs(t){return function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;var o=a[0],s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?vW(s,function(h){return h.test(o)}):mW(s,function(h){return h.test(o)}),c;c=t.valueCallback?t.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;var d=e.slice(o.length);return{value:c,rest:d}}}function mW(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function vW(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}function yW(t){return function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;var i=n[0],a=e.match(t.parsePattern);if(!a)return null;var o=t.valueCallback?t.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;var s=e.slice(i.length);return{value:o,rest:s}}}var bW=/^(\d+)(th|st|nd|rd)?/i,_W=/\d+/i,xW={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},wW={any:[/^b/i,/^(a|c)/i]},TW={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},SW={any:[/1/i,/2/i,/3/i,/4/i]},CW={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},EW={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},OW={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},AW={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},RW={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},IW={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},DW={ordinalNumber:yW({matchPattern:bW,parsePattern:_W,valueCallback:function(e){return parseInt(e,10)}}),era:Qs({matchPatterns:xW,defaultMatchWidth:"wide",parsePatterns:wW,defaultParseWidth:"any"}),quarter:Qs({matchPatterns:TW,defaultMatchWidth:"wide",parsePatterns:SW,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Qs({matchPatterns:CW,defaultMatchWidth:"wide",parsePatterns:EW,defaultParseWidth:"any"}),day:Qs({matchPatterns:OW,defaultMatchWidth:"wide",parsePatterns:AW,defaultParseWidth:"any"}),dayPeriod:Qs({matchPatterns:RW,defaultMatchWidth:"any",parsePatterns:IW,defaultParseWidth:"any"})},bd={code:"en-US",formatDistance:tW,formatLong:aW,formatRelative:sW,localize:gW,match:DW,options:{weekStartsOn:0,firstWeekContainsDate:1}};const wI=()=>({adapterLocale:bd}),MW=pd({activeAccount:null,email:"",handleCloseWelcomeVideo:()=>{},internalDomains:[],isError:!1,ready:!1,setActiveAccount:()=>{},setShowReleaseDialog:()=>{},showReleaseDialog:!1,showWelcomeVideo:!1,superUser:!1,userInfo:{},userPreferences:null}),PW=()=>Wu(MW),LW="17.0.0",NW={version:LW},FW=()=>{var e;const t=(e=window.gpConfig)==null?void 0:e["ui-mfe-dcim"];if(!t)throw new Error("ui-mfe-dcim config not loaded. Ensure config.json is fetched before app bootstrap.");return t},kW=()=>{const{mfeChartsUi:t}=FW();return{appVersion:NW.version,globalApiUrl:t.globalApiUrl,i18nLoadPath:t.isDev?"/locales/{{lng}}/{{ns}}.json":"/src/lib/locales/{{lng}}/{{ns}}.json"}};class M0 extends Error{constructor(r,n,i,a){super(r);Xe(this,"statusCode",0);Xe(this,"description");Xe(this,"details");this.statusCode=n,this.description=i||"",this.details=a||"",Object.setPrototypeOf(this,M0.prototype)}}const TI=t=>t==null,jW=async t=>{var e,r,n,i,a;if(!t.ok){const o=await t.json(),s=(r=(e=o==null?void 0:o.Errors)==null?void 0:e.Error)==null?void 0:r[0];throw new M0(((i=(n=o==null?void 0:o.Errors)==null?void 0:n.Error)==null?void 0:i[0].ReasonCode)||((a=o==null?void 0:o.error)==null?void 0:a.message),t.status,s==null?void 0:s.Description,s==null?void 0:s.Details)}};function pi(t){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pi(t)}function wt(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Re(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function je(t){Re(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||pi(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function P0(t,e){Re(2,arguments);var r=je(t),n=wt(e);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function _d(t,e){Re(2,arguments);var r=je(t),n=wt(e);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),a=new Date(r.getTime());a.setMonth(r.getMonth()+n+1,0);var o=a.getDate();return i>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function Vu(t,e){Re(2,arguments);var r=je(t).getTime(),n=wt(e);return new Date(r+n)}var $W=36e5;function UW(t,e){Re(2,arguments);var r=wt(e);return Vu(t,r*$W)}var qW={};function Hi(){return qW}function r1(t,e){var r,n,i,a,o,s,l,c;Re(1,arguments);var d=Hi(),h=wt((r=(n=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=je(t),m=g.getDay(),v=(m<h?7:0)+m-h;return g.setDate(g.getDate()-v),g.setHours(0,0,0,0),g}function us(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function lo(t){Re(1,arguments);var e=je(t);return e.setHours(0,0,0,0),e}var HW=864e5;function WW(t,e){Re(2,arguments);var r=lo(t),n=lo(e),i=r.getTime()-us(r),a=n.getTime()-us(n);return Math.round((i-a)/HW)}var BW=6e4;function zW(t,e){Re(2,arguments);var r=wt(e);return Vu(t,r*BW)}function VW(t,e){Re(2,arguments);var r=wt(e),n=r*3;return _d(t,n)}function GW(t,e){Re(2,arguments);var r=wt(e);return Vu(t,r*1e3)}function KW(t,e){Re(2,arguments);var r=wt(e),n=r*7;return P0(t,n)}function XW(t,e){Re(2,arguments);var r=wt(e);return _d(t,r*12)}function ts(t,e){Re(2,arguments);var r=je(t),n=je(e),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}var xd=6e4,wd=36e5,YW=1e3;function ZW(t,e){Re(2,arguments);var r=lo(t),n=lo(e);return r.getTime()===n.getTime()}function SI(t){return Re(1,arguments),t instanceof Date||pi(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function xs(t){if(Re(1,arguments),!SI(t)&&typeof t!="number")return!1;var e=je(t);return!isNaN(Number(e))}function JW(t,e){Re(2,arguments);var r=je(t),n=je(e),i=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return i*12+a}function QW(t,e){Re(2,arguments);var r=je(t),n=je(e);return r.getFullYear()-n.getFullYear()}function n1(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function CI(t,e){Re(2,arguments);var r=je(t),n=je(e),i=n1(r,n),a=Math.abs(WW(r,n));r.setDate(r.getDate()-i*a);var o=+(n1(r,n)===-i),s=i*(a-o);return s===0?0:s}function Td(t,e){return Re(2,arguments),je(t).getTime()-je(e).getTime()}var i1={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},eB="trunc";function Gu(t){return t?i1[t]:i1[eB]}function tB(t,e,r){Re(2,arguments);var n=Td(t,e)/wd;return Gu(void 0)(n)}function rB(t,e,r){Re(2,arguments);var n=Td(t,e)/xd;return Gu(void 0)(n)}function Sd(t){Re(1,arguments);var e=je(t);return e.setHours(23,59,59,999),e}function EI(t){Re(1,arguments);var e=je(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e}function nB(t){Re(1,arguments);var e=je(t);return Sd(e).getTime()===EI(e).getTime()}function OI(t,e){Re(2,arguments);var r=je(t),n=je(e),i=ts(r,n),a=Math.abs(JW(r,n)),o;if(a<1)o=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);var s=ts(r,n)===-i;nB(je(t))&&a===1&&ts(t,n)===1&&(s=!1),o=i*(a-Number(s))}return o===0?0:o}function iB(t,e,r){Re(2,arguments);var n=OI(t,e)/3;return Gu(void 0)(n)}function aB(t,e,r){Re(2,arguments);var n=Td(t,e)/1e3;return Gu(void 0)(n)}function oB(t,e,r){Re(2,arguments);var n=CI(t,e)/7;return Gu(void 0)(n)}function sB(t,e){Re(2,arguments);var r=je(t),n=je(e),i=ts(r,n),a=Math.abs(QW(r,n));r.setFullYear(1584),n.setFullYear(1584);var o=ts(r,n)===-i,s=i*(a-Number(o));return s===0?0:s}function uB(t){Re(1,arguments);var e=je(t);return e.setSeconds(0,0),e}function lB(t){Re(1,arguments);var e=je(t),r=e.getMonth(),n=r-r%3;return e.setMonth(n,1),e.setHours(0,0,0,0),e}function cB(t){Re(1,arguments);var e=je(t);return e.setDate(1),e.setHours(0,0,0,0),e}function fB(t){Re(1,arguments);var e=je(t),r=e.getFullYear();return e.setFullYear(r+1,0,0),e.setHours(23,59,59,999),e}function dB(t){Re(1,arguments);var e=je(t),r=new Date(0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}function hB(t){Re(1,arguments);var e=je(t);return e.setMinutes(59,59,999),e}function pB(t,e){var r,n,i,a,o,s;Re(1,arguments);var l=Hi(),c=wt((r=(n=(i=(a=void 0)!==null&&a!==void 0?a:void 0)!==null&&i!==void 0?i:l.weekStartsOn)!==null&&n!==void 0?n:(o=l.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=je(t),h=d.getDay(),g=(h<c?-7:0)+6-(h-c);return d.setDate(d.getDate()+g),d.setHours(23,59,59,999),d}function gB(t){Re(1,arguments);var e=je(t);return e.setSeconds(59,999),e}function mB(t){Re(1,arguments);var e=je(t),r=e.getMonth(),n=r-r%3+3;return e.setMonth(n,0),e.setHours(23,59,59,999),e}function vB(t){Re(1,arguments);var e=je(t);return e.setMilliseconds(999),e}function AI(t,e){Re(2,arguments);var r=wt(e);return Vu(t,-r)}var yB=864e5;function bB(t){Re(1,arguments);var e=je(t),r=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),i=r-n;return Math.floor(i/yB)+1}function ls(t){Re(1,arguments);var e=1,r=je(t),n=r.getUTCDay(),i=(n<e?7:0)+n-e;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function RI(t){Re(1,arguments);var e=je(t),r=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=ls(n),a=new Date(0);a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0);var o=ls(a);return e.getTime()>=i.getTime()?r+1:e.getTime()>=o.getTime()?r:r-1}function _B(t){Re(1,arguments);var e=RI(t),r=new Date(0);r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0);var n=ls(r);return n}var xB=6048e5;function II(t){Re(1,arguments);var e=je(t),r=ls(e).getTime()-_B(e).getTime();return Math.round(r/xB)+1}function co(t,e){var r,n,i,a,o,s,l,c;Re(1,arguments);var d=Hi(),h=wt((r=(n=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=je(t),m=g.getUTCDay(),v=(m<h?7:0)+m-h;return g.setUTCDate(g.getUTCDate()-v),g.setUTCHours(0,0,0,0),g}function L0(t,e){var r,n,i,a,o,s,l,c;Re(1,arguments);var d=je(t),h=d.getUTCFullYear(),g=Hi(),m=wt((r=(n=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:g.firstWeekContainsDate)!==null&&n!==void 0?n:(l=g.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(h+1,0,m),v.setUTCHours(0,0,0,0);var _=co(v,e),y=new Date(0);y.setUTCFullYear(h,0,m),y.setUTCHours(0,0,0,0);var x=co(y,e);return d.getTime()>=_.getTime()?h+1:d.getTime()>=x.getTime()?h:h-1}function wB(t,e){var r,n,i,a,o,s,l,c;Re(1,arguments);var d=Hi(),h=wt((r=(n=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&n!==void 0?n:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),g=L0(t,e),m=new Date(0);m.setUTCFullYear(g,0,h),m.setUTCHours(0,0,0,0);var v=co(m,e);return v}var TB=6048e5;function DI(t,e){Re(1,arguments);var r=je(t),n=co(r,e).getTime()-wB(r,e).getTime();return Math.round(n/TB)+1}function Ft(t,e){for(var r=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return r+n}var ia={y:function(e,r){var n=e.getUTCFullYear(),i=n>0?n:1-n;return Ft(r==="yy"?i%100:i,r.length)},M:function(e,r){var n=e.getUTCMonth();return r==="M"?String(n+1):Ft(n+1,2)},d:function(e,r){return Ft(e.getUTCDate(),r.length)},a:function(e,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,r){return Ft(e.getUTCHours()%12||12,r.length)},H:function(e,r){return Ft(e.getUTCHours(),r.length)},m:function(e,r){return Ft(e.getUTCMinutes(),r.length)},s:function(e,r){return Ft(e.getUTCSeconds(),r.length)},S:function(e,r){var n=r.length,i=e.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,n-3));return Ft(a,r.length)}},Wo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},SB={G:function(e,r,n){var i=e.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,r,n){if(r==="yo"){var i=e.getUTCFullYear(),a=i>0?i:1-i;return n.ordinalNumber(a,{unit:"year"})}return ia.y(e,r)},Y:function(e,r,n,i){var a=L0(e,i),o=a>0?a:1-a;if(r==="YY"){var s=o%100;return Ft(s,2)}return r==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ft(o,r.length)},R:function(e,r){var n=RI(e);return Ft(n,r.length)},u:function(e,r){var n=e.getUTCFullYear();return Ft(n,r.length)},Q:function(e,r,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return Ft(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,r,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return Ft(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,r,n){var i=e.getUTCMonth();switch(r){case"M":case"MM":return ia.M(e,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,r,n){var i=e.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return Ft(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,r,n,i){var a=DI(e,i);return r==="wo"?n.ordinalNumber(a,{unit:"week"}):Ft(a,r.length)},I:function(e,r,n){var i=II(e);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):Ft(i,r.length)},d:function(e,r,n){return r==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):ia.d(e,r)},D:function(e,r,n){var i=bB(e);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):Ft(i,r.length)},E:function(e,r,n){var i=e.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,r,n,i){var a=e.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return Ft(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,r,n,i){var a=e.getUTCDay(),o=(a-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return Ft(o,r.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,r,n){var i=e.getUTCDay(),a=i===0?7:i;switch(r){case"i":return String(a);case"ii":return Ft(a,r.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,r,n){var i=e.getUTCHours(),a=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,r,n){var i=e.getUTCHours(),a;switch(i===12?a=Wo.noon:i===0?a=Wo.midnight:a=i/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,r,n){var i=e.getUTCHours(),a;switch(i>=17?a=Wo.evening:i>=12?a=Wo.afternoon:i>=4?a=Wo.morning:a=Wo.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,r,n){if(r==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return ia.h(e,r)},H:function(e,r,n){return r==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ia.H(e,r)},K:function(e,r,n){var i=e.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):Ft(i,r.length)},k:function(e,r,n){var i=e.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):Ft(i,r.length)},m:function(e,r,n){return r==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ia.m(e,r)},s:function(e,r,n){return r==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ia.s(e,r)},S:function(e,r){return ia.S(e,r)},X:function(e,r,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();if(o===0)return"Z";switch(r){case"X":return o1(o);case"XXXX":case"XX":return za(o);case"XXXXX":case"XXX":default:return za(o,":")}},x:function(e,r,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(r){case"x":return o1(o);case"xxxx":case"xx":return za(o);case"xxxxx":case"xxx":default:return za(o,":")}},O:function(e,r,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+a1(o,":");case"OOOO":default:return"GMT"+za(o,":")}},z:function(e,r,n,i){var a=i._originalDate||e,o=a.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+a1(o,":");case"zzzz":default:return"GMT"+za(o,":")}},t:function(e,r,n,i){var a=i._originalDate||e,o=Math.floor(a.getTime()/1e3);return Ft(o,r.length)},T:function(e,r,n,i){var a=i._originalDate||e,o=a.getTime();return Ft(o,r.length)}};function a1(t,e){var r=t>0?"-":"+",n=Math.abs(t),i=Math.floor(n/60),a=n%60;if(a===0)return r+String(i);var o=e;return r+String(i)+o+Ft(a,2)}function o1(t,e){if(t%60===0){var r=t>0?"-":"+";return r+Ft(Math.abs(t)/60,2)}return za(t,e)}function za(t,e){var r=e||"",n=t>0?"-":"+",i=Math.abs(t),a=Ft(Math.floor(i/60),2),o=Ft(i%60,2);return n+a+r+o}var s1=function(e,r){switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},MI=function(e,r){switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},CB=function(e,r){var n=e.match(/(P+)(p+)?/)||[],i=n[1],a=n[2];if(!a)return s1(e,r);var o;switch(i){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",s1(i,r)).replace("{{time}}",MI(a,r))},Dy={p:MI,P:CB},EB=["D","DD"],OB=["YY","YYYY"];function PI(t){return EB.indexOf(t)!==-1}function LI(t){return OB.indexOf(t)!==-1}function Nf(t,e,r){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var AB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IB=/^'([^]*?)'?$/,DB=/''/g,MB=/[a-zA-Z]/;function Ku(t,e,r){var n,i,a,o,s,l,c,d,h,g,m,v,_,y,x,w,C,A;Re(2,arguments);var E=String(e),S=Hi(),T=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:S.locale)!==null&&n!==void 0?n:bd,D=wt((a=(o=(s=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(c=r.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&s!==void 0?s:S.firstWeekContainsDate)!==null&&o!==void 0?o:(h=S.locale)===null||h===void 0||(g=h.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=wt((m=(v=(_=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(x=r.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&_!==void 0?_:S.weekStartsOn)!==null&&v!==void 0?v:(C=S.locale)===null||C===void 0||(A=C.options)===null||A===void 0?void 0:A.weekStartsOn)!==null&&m!==void 0?m:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var N=je(t);if(!xs(N))throw new RangeError("Invalid time value");var F=us(N),B=AI(N,F),W={firstWeekContainsDate:D,weekStartsOn:P,locale:T,_originalDate:N},te=E.match(RB).map(function(J){var ie=J[0];if(ie==="p"||ie==="P"){var le=Dy[ie];return le(J,T.formatLong)}return J}).join("").match(AB).map(function(J){if(J==="''")return"'";var ie=J[0];if(ie==="'")return PB(J);var le=SB[ie];if(le)return!(r!=null&&r.useAdditionalWeekYearTokens)&&LI(J)&&Nf(J,e,String(t)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&PI(J)&&Nf(J,e,String(t)),le(B,J,T.localize,W);if(ie.match(MB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");return J}).join("");return te}function PB(t){var e=t.match(IB);return e?e[1].replace(DB,"'"):t}function N0(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}function LB(t){return N0({},t)}var u1=1e3*60,Ff=1440,l1=Ff*30,c1=Ff*365;function NB(t,e,r){var n,i,a;Re(2,arguments);var o=Hi(),s=(n=(i=void 0)!==null&&i!==void 0?i:o.locale)!==null&&n!==void 0?n:bd;if(!s.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var l=ts(t,e);if(isNaN(l))throw new RangeError("Invalid time value");var c=N0(LB(r),{addSuffix:!1,comparison:l}),d,h;l>0?(d=je(e),h=je(t)):(d=je(t),h=je(e));var g=String((a=void 0)!==null&&a!==void 0?a:"round"),m;if(g==="floor")m=Math.floor;else if(g==="ceil")m=Math.ceil;else if(g==="round")m=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var v=h.getTime()-d.getTime(),_=v/u1,y=us(h)-us(d),x=(v-y)/u1,w=r==null?void 0:r.unit,C;if(w?C=String(w):_<1?C="second":_<60?C="minute":_<Ff?C="hour":x<l1?C="day":x<c1?C="month":C="year",C==="second"){var A=m(v/1e3);return s.formatDistance("xSeconds",A,c)}else if(C==="minute"){var E=m(_);return s.formatDistance("xMinutes",E,c)}else if(C==="hour"){var S=m(_/60);return s.formatDistance("xHours",S,c)}else if(C==="day"){var T=m(x/Ff);return s.formatDistance("xDays",T,c)}else if(C==="month"){var D=m(x/l1);return D===12&&w!=="month"?s.formatDistance("xYears",1,c):s.formatDistance("xMonths",D,c)}else if(C==="year"){var P=m(x/c1);return s.formatDistance("xYears",P,c)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function f1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function FB(t,e){if(t){if(typeof t=="string")return f1(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f1(t,e):void 0}}function d1(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=FB(t))||e){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
38
38
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var c=r.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{o||r.return==null||r.return()}finally{if(s)throw a}}}}function Ee(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function St(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sf(t,e)}function kf(t){return kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kf(t)}function NI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NI=function(){return!!t})()}function kB(t,e){if(e&&(pi(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ee(t)}function Ct(t){var e=NI();return function(){var r,n=kf(t);if(e){var i=kf(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return kB(this,r)}}function _t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jB(t,e){if(pi(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function FI(t){var e=jB(t,"string");return pi(e)=="symbol"?e:e+""}function $B(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,FI(n.key),n)}}function xt(t,e,r){return e&&$B(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function xe(t,e,r){return(e=FI(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var UB=10,kI=(function(){function t(){_t(this,t),xe(this,"priority",void 0),xe(this,"subPriority",0)}return xt(t,[{key:"validate",value:function(r,n){return!0}}]),t})(),qB=(function(t){St(r,t);var e=Ct(r);function r(n,i,a,o,s){var l;return _t(this,r),l=e.call(this),l.value=n,l.validateValue=i,l.setValue=a,l.priority=o,s&&(l.subPriority=s),l}return xt(r,[{key:"validate",value:function(i,a){return this.validateValue(i,this.value,a)}},{key:"set",value:function(i,a,o){return this.setValue(i,a,this.value,o)}}]),r})(kI),HB=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",UB),xe(Ee(n),"subPriority",-1),n}return xt(r,[{key:"set",value:function(i,a){if(a.timestampIsSet)return i;var o=new Date(0);return o.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),o.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),o}}]),r})(kI),It=(function(){function t(){_t(this,t),xe(this,"incompatibleTokens",void 0),xe(this,"priority",void 0),xe(this,"subPriority",void 0)}return xt(t,[{key:"run",value:function(r,n,i,a){var o=this.parse(r,n,i,a);return o?{setter:new qB(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(r,n,i){return!0}}]),t})(),WB=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",140),xe(Ee(n),"incompatibleTokens",["R","u","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"G":case"GG":case"GGG":return o.era(i,{width:"abbreviated"})||o.era(i,{width:"narrow"});case"GGGGG":return o.era(i,{width:"narrow"});case"GGGG":default:return o.era(i,{width:"wide"})||o.era(i,{width:"abbreviated"})||o.era(i,{width:"narrow"})}}},{key:"set",value:function(i,a,o){return a.era=o,i.setUTCFullYear(o,0,1),i.setUTCHours(0,0,0,0),i}}]),r})(It),pr={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ci={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function gr(t,e){return t&&{value:e(t.value),rest:t.rest}}function nr(t,e){var r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function fi(t,e){var r=e.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:e.slice(1)};var n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,a=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:n*(i*wd+a*xd+o*YW),rest:e.slice(r[0].length)}}function jI(t){return nr(pr.anyDigitsSigned,t)}function cr(t,e){switch(t){case 1:return nr(pr.singleDigit,e);case 2:return nr(pr.twoDigits,e);case 3:return nr(pr.threeDigits,e);case 4:return nr(pr.fourDigits,e);default:return nr(new RegExp("^\\d{1,"+t+"}"),e)}}function jf(t,e){switch(t){case 1:return nr(pr.singleDigitSigned,e);case 2:return nr(pr.twoDigitsSigned,e);case 3:return nr(pr.threeDigitsSigned,e);case 4:return nr(pr.fourDigitsSigned,e);default:return nr(new RegExp("^-?\\d{1,"+t+"}"),e)}}function F0(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function $I(t,e){var r=e>0,n=r?e:1-e,i;if(n<=50)i=t||100;else{var a=n+50,o=Math.floor(a/100)*100,s=t>=a%100;i=t+o-(s?100:0)}return r?i:1-i}function UI(t){return t%400===0||t%4===0&&t%100!==0}var BB=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",130),xe(Ee(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){var s=function(c){return{year:c,isTwoDigitYear:a==="yy"}};switch(a){case"y":return gr(cr(4,i),s);case"yo":return gr(o.ordinalNumber(i,{unit:"year"}),s);default:return gr(cr(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,o){var s=i.getUTCFullYear();if(o.isTwoDigitYear){var l=$I(o.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var c=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(c,0,1),i.setUTCHours(0,0,0,0),i}}]),r})(It),zB=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",130),xe(Ee(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){var s=function(c){return{year:c,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return gr(cr(4,i),s);case"Yo":return gr(o.ordinalNumber(i,{unit:"year"}),s);default:return gr(cr(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,o,s){var l=L0(i,s);if(o.isTwoDigitYear){var c=$I(o.year,l);return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),co(i,s)}var d=!("era"in a)||a.era===1?o.year:1-o.year;return i.setUTCFullYear(d,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),co(i,s)}}]),r})(It),VB=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",130),xe(Ee(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a){return jf(a==="R"?4:a.length,i)}},{key:"set",value:function(i,a,o){var s=new Date(0);return s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0),ls(s)}}]),r})(It),GB=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",130),xe(Ee(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a){return jf(a==="u"?4:a.length,i)}},{key:"set",value:function(i,a,o){return i.setUTCFullYear(o,0,1),i.setUTCHours(0,0,0,0),i}}]),r})(It),KB=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",120),xe(Ee(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"Q":case"QQ":return cr(a.length,i);case"Qo":return o.ordinalNumber(i,{unit:"quarter"});case"QQQ":return o.quarter(i,{width:"abbreviated",context:"formatting"})||o.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(i,{width:"wide",context:"formatting"})||o.quarter(i,{width:"abbreviated",context:"formatting"})||o.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r})(It),XB=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",120),xe(Ee(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"q":case"qq":return cr(a.length,i);case"qo":return o.ordinalNumber(i,{unit:"quarter"});case"qqq":return o.quarter(i,{width:"abbreviated",context:"standalone"})||o.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(i,{width:"wide",context:"standalone"})||o.quarter(i,{width:"abbreviated",context:"standalone"})||o.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,o){return i.setUTCMonth((o-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),r})(It),YB=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),xe(Ee(n),"priority",110),n}return xt(r,[{key:"parse",value:function(i,a,o){var s=function(c){return c-1};switch(a){case"M":return gr(nr(pr.month,i),s);case"MM":return gr(cr(2,i),s);case"Mo":return gr(o.ordinalNumber(i,{unit:"month"}),s);case"MMM":return o.month(i,{width:"abbreviated",context:"formatting"})||o.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(i,{width:"wide",context:"formatting"})||o.month(i,{width:"abbreviated",context:"formatting"})||o.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),r})(It),ZB=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",110),xe(Ee(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){var s=function(c){return c-1};switch(a){case"L":return gr(nr(pr.month,i),s);case"LL":return gr(cr(2,i),s);case"Lo":return gr(o.ordinalNumber(i,{unit:"month"}),s);case"LLL":return o.month(i,{width:"abbreviated",context:"standalone"})||o.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(i,{width:"wide",context:"standalone"})||o.month(i,{width:"abbreviated",context:"standalone"})||o.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,o){return i.setUTCMonth(o,1),i.setUTCHours(0,0,0,0),i}}]),r})(It);function JB(t,e,r){Re(2,arguments);var n=je(t),i=wt(e),a=DI(n,r)-i;return n.setUTCDate(n.getUTCDate()-a*7),n}var QB=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",100),xe(Ee(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"w":return nr(pr.week,i);case"wo":return o.ordinalNumber(i,{unit:"week"});default:return cr(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,o,s){return co(JB(i,o,s),s)}}]),r})(It);function e3(t,e){Re(2,arguments);var r=je(t),n=wt(e),i=II(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}var t3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",100),xe(Ee(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"I":return nr(pr.week,i);case"Io":return o.ordinalNumber(i,{unit:"week"});default:return cr(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,o){return ls(e3(i,o))}}]),r})(It),r3=[31,28,31,30,31,30,31,31,30,31,30,31],n3=[31,29,31,30,31,30,31,31,30,31,30,31],i3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",90),xe(Ee(n),"subPriority",1),xe(Ee(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"d":return nr(pr.date,i);case"do":return o.ordinalNumber(i,{unit:"date"});default:return cr(a.length,i)}}},{key:"validate",value:function(i,a){var o=i.getUTCFullYear(),s=UI(o),l=i.getUTCMonth();return s?a>=1&&a<=n3[l]:a>=1&&a<=r3[l]}},{key:"set",value:function(i,a,o){return i.setUTCDate(o),i.setUTCHours(0,0,0,0),i}}]),r})(It),a3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",90),xe(Ee(n),"subpriority",1),xe(Ee(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"D":case"DD":return nr(pr.dayOfYear,i);case"Do":return o.ordinalNumber(i,{unit:"date"});default:return cr(a.length,i)}}},{key:"validate",value:function(i,a){var o=i.getUTCFullYear(),s=UI(o);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(i,a,o){return i.setUTCMonth(0,o),i.setUTCHours(0,0,0,0),i}}]),r})(It);function k0(t,e,r){var n,i,a,o,s,l,c,d;Re(2,arguments);var h=Hi(),g=wt((n=(i=(a=(o=r==null?void 0:r.weekStartsOn)!==null&&o!==void 0?o:r==null||(s=r.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&i!==void 0?i:(c=h.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&n!==void 0?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=je(t),v=wt(e),_=m.getUTCDay(),y=v%7,x=(y+7)%7,w=(x<g?7:0)+v-_;return m.setUTCDate(m.getUTCDate()+w),m}var o3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",90),xe(Ee(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"E":case"EE":case"EEE":return o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=k0(i,o,s),i.setUTCHours(0,0,0,0),i}}]),r})(It),s3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",90),xe(Ee(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o,s){var l=function(d){var h=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+h};switch(a){case"e":case"ee":return gr(cr(a.length,i),l);case"eo":return gr(o.ordinalNumber(i,{unit:"day"}),l);case"eee":return o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"eeeee":return o.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=k0(i,o,s),i.setUTCHours(0,0,0,0),i}}]),r})(It),u3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",90),xe(Ee(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o,s){var l=function(d){var h=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+h};switch(a){case"c":case"cc":return gr(cr(a.length,i),l);case"co":return gr(o.ordinalNumber(i,{unit:"day"}),l);case"ccc":return o.day(i,{width:"abbreviated",context:"standalone"})||o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"});case"ccccc":return o.day(i,{width:"narrow",context:"standalone"});case"cccccc":return o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(i,{width:"wide",context:"standalone"})||o.day(i,{width:"abbreviated",context:"standalone"})||o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,o,s){return i=k0(i,o,s),i.setUTCHours(0,0,0,0),i}}]),r})(It);function l3(t,e){Re(2,arguments);var r=wt(e);r%7===0&&(r=r-7);var n=1,i=je(t),a=i.getUTCDay(),o=r%7,s=(o+7)%7,l=(s<n?7:0)+r-a;return i.setUTCDate(i.getUTCDate()+l),i}var c3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",90),xe(Ee(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){var s=function(c){return c===0?7:c};switch(a){case"i":case"ii":return cr(a.length,i);case"io":return o.ordinalNumber(i,{unit:"day"});case"iii":return gr(o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return gr(o.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return gr(o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return gr(o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,a){return a>=1&&a<=7}},{key:"set",value:function(i,a,o){return i=l3(i,o),i.setUTCHours(0,0,0,0),i}}]),r})(It),f3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",80),xe(Ee(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"a":case"aa":case"aaa":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,o){return i.setUTCHours(F0(o),0,0,0),i}}]),r})(It),d3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",80),xe(Ee(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"b":case"bb":case"bbb":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,o){return i.setUTCHours(F0(o),0,0,0),i}}]),r})(It),h3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",80),xe(Ee(n),"incompatibleTokens",["a","b","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"B":case"BB":case"BBB":return o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(i,{width:"wide",context:"formatting"})||o.dayPeriod(i,{width:"abbreviated",context:"formatting"})||o.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,o){return i.setUTCHours(F0(o),0,0,0),i}}]),r})(It),p3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",70),xe(Ee(n),"incompatibleTokens",["H","K","k","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"h":return nr(pr.hour12h,i);case"ho":return o.ordinalNumber(i,{unit:"hour"});default:return cr(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=12}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):!s&&o===12?i.setUTCHours(0,0,0,0):i.setUTCHours(o,0,0,0),i}}]),r})(It),g3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",70),xe(Ee(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"H":return nr(pr.hour23h,i);case"Ho":return o.ordinalNumber(i,{unit:"hour"});default:return cr(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=23}},{key:"set",value:function(i,a,o){return i.setUTCHours(o,0,0,0),i}}]),r})(It),m3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",70),xe(Ee(n),"incompatibleTokens",["h","H","k","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"K":return nr(pr.hour11h,i);case"Ko":return o.ordinalNumber(i,{unit:"hour"});default:return cr(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,o){var s=i.getUTCHours()>=12;return s&&o<12?i.setUTCHours(o+12,0,0,0):i.setUTCHours(o,0,0,0),i}}]),r})(It),v3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",70),xe(Ee(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"k":return nr(pr.hour24h,i);case"ko":return o.ordinalNumber(i,{unit:"hour"});default:return cr(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=24}},{key:"set",value:function(i,a,o){var s=o<=24?o%24:o;return i.setUTCHours(s,0,0,0),i}}]),r})(It),y3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",60),xe(Ee(n),"incompatibleTokens",["t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"m":return nr(pr.minute,i);case"mo":return o.ordinalNumber(i,{unit:"minute"});default:return cr(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCMinutes(o,0,0),i}}]),r})(It),b3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",50),xe(Ee(n),"incompatibleTokens",["t","T"]),n}return xt(r,[{key:"parse",value:function(i,a,o){switch(a){case"s":return nr(pr.second,i);case"so":return o.ordinalNumber(i,{unit:"second"});default:return cr(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,o){return i.setUTCSeconds(o,0),i}}]),r})(It),_3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",30),xe(Ee(n),"incompatibleTokens",["t","T"]),n}return xt(r,[{key:"parse",value:function(i,a){var o=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return gr(cr(a.length,i),o)}},{key:"set",value:function(i,a,o){return i.setUTCMilliseconds(o),i}}]),r})(It),x3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",10),xe(Ee(n),"incompatibleTokens",["t","T","x"]),n}return xt(r,[{key:"parse",value:function(i,a){switch(a){case"X":return fi(ci.basicOptionalMinutes,i);case"XX":return fi(ci.basic,i);case"XXXX":return fi(ci.basicOptionalSeconds,i);case"XXXXX":return fi(ci.extendedOptionalSeconds,i);case"XXX":default:return fi(ci.extended,i)}}},{key:"set",value:function(i,a,o){return a.timestampIsSet?i:new Date(i.getTime()-o)}}]),r})(It),w3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",10),xe(Ee(n),"incompatibleTokens",["t","T","X"]),n}return xt(r,[{key:"parse",value:function(i,a){switch(a){case"x":return fi(ci.basicOptionalMinutes,i);case"xx":return fi(ci.basic,i);case"xxxx":return fi(ci.basicOptionalSeconds,i);case"xxxxx":return fi(ci.extendedOptionalSeconds,i);case"xxx":default:return fi(ci.extended,i)}}},{key:"set",value:function(i,a,o){return a.timestampIsSet?i:new Date(i.getTime()-o)}}]),r})(It),T3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",40),xe(Ee(n),"incompatibleTokens","*"),n}return xt(r,[{key:"parse",value:function(i){return jI(i)}},{key:"set",value:function(i,a,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),r})(It),S3=(function(t){St(r,t);var e=Ct(r);function r(){var n;_t(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a)),xe(Ee(n),"priority",20),xe(Ee(n),"incompatibleTokens","*"),n}return xt(r,[{key:"parse",value:function(i){return jI(i)}},{key:"set",value:function(i,a,o){return[new Date(o),{timestampIsSet:!0}]}}]),r})(It),C3={G:new WB,y:new BB,Y:new zB,R:new VB,u:new GB,Q:new KB,q:new XB,M:new YB,L:new ZB,w:new QB,I:new t3,d:new i3,D:new a3,E:new o3,e:new s3,c:new u3,i:new c3,a:new f3,b:new d3,B:new h3,h:new p3,H:new g3,K:new m3,k:new v3,m:new y3,s:new b3,S:new _3,X:new x3,x:new w3,t:new T3,T:new S3},E3=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O3=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A3=/^'([^]*?)'?$/,R3=/''/g,I3=/\S/,D3=/[a-zA-Z]/;function qI(t,e,r,n){var i,a,o,s,l,c,d,h,g,m,v,_,y,x,w,C,A,E;Re(3,arguments);var S=String(t),T=String(e),D=Hi(),P=(i=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:D.locale)!==null&&i!==void 0?i:bd;if(!P.match)throw new RangeError("locale must contain match property");var N=wt((o=(s=(l=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(d=n.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&l!==void 0?l:D.firstWeekContainsDate)!==null&&s!==void 0?s:(g=D.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(N>=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=wt((v=(_=(y=(x=n==null?void 0:n.weekStartsOn)!==null&&x!==void 0?x:n==null||(w=n.locale)===null||w===void 0||(C=w.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&y!==void 0?y:D.weekStartsOn)!==null&&_!==void 0?_:(A=D.locale)===null||A===void 0||(E=A.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&v!==void 0?v:0);if(!(F>=0&&F<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return S===""?je(r):new Date(NaN);var B={firstWeekContainsDate:N,weekStartsOn:F,locale:P},W=[new HB],te=T.match(O3).map(function(Ae){var he=Ae[0];if(he in Dy){var ge=Dy[he];return ge(Ae,P.formatLong)}return Ae}).join("").match(E3),J=[],ie=d1(te),le;try{var se=function(){var he=le.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&LI(he)&&Nf(he,T,t),!(n!=null&&n.useAdditionalDayOfYearTokens)&&PI(he)&&Nf(he,T,t);var ge=he[0],Ne=C3[ge];if(Ne){var we=Ne.incompatibleTokens;if(Array.isArray(we)){var ve=J.find(function(Be){return we.includes(Be.token)||Be.token===ge});if(ve)throw new RangeError("The format string mustn't contain `".concat(ve.fullToken,"` and `").concat(he,"` at the same time"))}else if(Ne.incompatibleTokens==="*"&&J.length>0)throw new RangeError("The format string mustn't contain `".concat(he,"` and any other token at the same time"));J.push({token:ge,fullToken:he});var Fe=Ne.run(S,he,P.match,B);if(!Fe)return{v:new Date(NaN)};W.push(Fe.setter),S=Fe.rest}else{if(ge.match(D3))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ge+"`");if(he==="''"?he="'":ge==="'"&&(he=M3(he)),S.indexOf(he)===0)S=S.slice(he.length);else return{v:new Date(NaN)}}};for(ie.s();!(le=ie.n()).done;){var ce=se();if(pi(ce)==="object")return ce.v}}catch(Ae){ie.e(Ae)}finally{ie.f()}if(S.length>0&&I3.test(S))return new Date(NaN);var Q=W.map(function(Ae){return Ae.priority}).sort(function(Ae,he){return he-Ae}).filter(function(Ae,he,ge){return ge.indexOf(Ae)===he}).map(function(Ae){return W.filter(function(he){return he.priority===Ae}).sort(function(he,ge){return ge.subPriority-he.subPriority})}).map(function(Ae){return Ae[0]}),$=je(r);if(isNaN($.getTime()))return new Date(NaN);var X=AI($,us($)),Z={},fe=d1(Q),be;try{for(fe.s();!(be=fe.n()).done;){var _e=be.value;if(!_e.validate(X,B))return new Date(NaN);var Le=_e.set(X,Z,B);Array.isArray(Le)?(X=Le[0],N0(Z,Le[1])):X=Le}}catch(Ae){fe.e(Ae)}finally{fe.f()}return X}function M3(t){return t.match(A3)[1].replace(R3,"'")}function P3(t){Re(1,arguments);var e=je(t);return e.setMinutes(0,0,0),e}function L3(t){Re(1,arguments);var e=je(t);return e.setMilliseconds(0),e}function N3(t,e){Re(2,arguments);var r=wt(e);return P0(t,-r)}function cn(t,e){var r;Re(1,arguments);var n=wt((r=e==null?void 0:e.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var i=$3(t),a;if(i.date){var o=U3(i.date,n);a=q3(o.restDateString,o.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var s=a.getTime(),l=0,c;if(i.time&&(l=H3(i.time),isNaN(l)))return new Date(NaN);if(i.timezone){if(c=W3(i.timezone),isNaN(c))return new Date(NaN)}else{var d=new Date(s+l),h=new Date(0);return h.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),h.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),h}return new Date(s+l+c)}var Kl={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},F3=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,k3=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,j3=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $3(t){var e={},r=t.split(Kl.dateTimeDelimiter),n;if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],Kl.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Kl.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){var i=Kl.timezone.exec(n);i?(e.time=n.replace(i[1],""),e.timezone=i[1]):e.time=n}return e}function U3(t,e){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:a===null?i:a*100,restDateString:t.slice((n[1]||n[2]).length)}}function q3(t,e){if(e===null)return new Date(NaN);var r=t.match(F3);if(!r)return new Date(NaN);var n=!!r[4],i=eu(r[1]),a=eu(r[2])-1,o=eu(r[3]),s=eu(r[4]),l=eu(r[5])-1;if(n)return K3(e,s,l)?B3(e,s,l):new Date(NaN);var c=new Date(0);return!V3(e,a,o)||!G3(e,i)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(i,o)),c)}function eu(t){return t?parseInt(t):1}function H3(t){var e=t.match(k3);if(!e)return NaN;var r=yp(e[1]),n=yp(e[2]),i=yp(e[3]);return X3(r,n,i)?r*wd+n*xd+i*1e3:NaN}function yp(t){return t&&parseFloat(t.replace(",","."))||0}function W3(t){if(t==="Z")return 0;var e=t.match(j3);if(!e)return 0;var r=e[1]==="+"?-1:1,n=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return Y3(n,i)?r*(n*wd+i*xd):NaN}function B3(t,e,r){var n=new Date(0);n.setUTCFullYear(t,0,4);var i=n.getUTCDay()||7,a=(e-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+a),n}var z3=[31,null,31,30,31,30,31,31,30,31,30,31];function HI(t){return t%400===0||t%4===0&&t%100!==0}function V3(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(z3[e]||(HI(t)?29:28))}function G3(t,e){return e>=1&&e<=(HI(t)?366:365)}function K3(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function X3(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function Y3(t,e){return e>=0&&e<=59}function Z3(t,e){Re(2,arguments);var r=wt(e);return _d(t,-r)}function J3(t,e){if(Re(2,arguments),!e||pi(e)!=="object")return new Date(NaN);var r=e.years?wt(e.years):0,n=e.months?wt(e.months):0,i=e.weeks?wt(e.weeks):0,a=e.days?wt(e.days):0,o=e.hours?wt(e.hours):0,s=e.minutes?wt(e.minutes):0,l=e.seconds?wt(e.seconds):0,c=Z3(t,n+r*12),d=N3(c,a+i*7),h=s+o*60,g=l+h*60,m=g*1e3,v=new Date(d.getTime()-m);return v}const Q3=t=>{if(t instanceof Date)return t;const e=t.replace(/-/g,"/").replace("T"," "),r=cn(t);return xs(r)?r:qI(e,"dd/MMM/yy HH:mm:ss",new Date)},ez=(t,e)=>Ku(Q3(t),e),tz=t=>new Date(t*1e3);var WI=(t=>(t.ACTIVE_ACCOUNT="activeAccount",t.X_AUTH="user-authentication",t))(WI||{});const h1="application/json",bp={Accept:"Accept",Authorization:"Authorization",ContentType:"Content-Type"},rz=t=>t.replace(/([^:]\/)\/+/g,"$1"),ei=({pathname:t,searchParams:e})=>{const{globalApiUrl:r}=kW(),n=new URL(r);return n.pathname+=t,n.href=rz(n.href),e&&Object.entries(e).forEach(([i,a])=>{!TI(a)&&a!==""&&(Array.isArray(a)?a.forEach(o=>n.searchParams.append(i,String(o))):n.searchParams.append(i,String(a)))}),n},j0=()=>{const t=new Headers,e=oz();return t.set(bp.Authorization,`Bearer ${e}`),t.set(bp.Accept,h1),t.set(bp.ContentType,h1),t},BI=async(t,e)=>{const r=t.toString(),n=await fetch(r,{mode:"cors",...e});return await jW(n),n},Cd=async(t,e,r)=>{const n=await BI(t,e);if(r)return n;try{return await n.json()}catch{return n.ok||console.error("The response is not valid JSON"),""}},nz=(t,e)=>{const r=j0();return Cd(t,{method:"GET",headers:r},e)},iz=(t,e,r)=>{const n=j0();return Cd(t,{method:"POST",headers:n,body:r?e:JSON.stringify(e)})},az=(t,e)=>{const r=j0();return Cd(t,{method:"PUT",headers:r,body:JSON.stringify(e)})};function oz(){const t=JSON.parse(localStorage.getItem(WI.X_AUTH)||"{}");if(!t.access_token){const e="cannot read x-auth token from local storage";throw console.error(e),new Error(e)}return t.access_token}const ti={baseFetch:BI,get:nz,handleFetch:Cd,post:iz,put:az};var fn=(t=>(t.ACCOUNT="ACCOUNT",t.ACCOUNT_CONTACTS="ACCOUNT_CONTACTS",t.ACCOUNT_ROLES="ACCOUNT_ROLES",t.ACCOUNT_USERS="ACCOUNT_USERS",t.ACCOUNTS="ACCOUNTS",t.ACTIVE_ACCOUNT="ACTIVE_ACCOUNT",t.ALERTS="alerts",t.ASSETS="ASSETS",t.ASSETS_TREE="ASSETS_TREE",t.ATTACHMENTS="ATTACHMENTS",t.ATTACHMENT_CONTENT="ATTACHMENT_CONTENT",t.CANCEL_CS_TICKET="CANCEL_CS_TICKET",t.CANCEL_FA_TICKET="CANCEL_FA_TICKET",t.CANCEL_RH_TICKET="CANCEL_RH_TICKET",t.CANCEL_SR_TICKET="CANCEL_SR_TICKET",t.CATEGORIES="CATEGORIES",t.COMPANIES="COMPANIES",t.CITIES="CITIES",t.CLIENT_SERVICES_TICKET="CLIENT_SERVICES_TICKET",t.CLIENT_SERVICES_TICKETS="CLIENT_SERVICES_TICKETS",t.COOKIES_PREFERENCE="COOKIES_PREFERENCE",t.COURIER_COMPANIES="COURIER_COMPANIES",t.CREATE_ACCOUNT_ROLE="create_account_role",t.CREATE_CUSTOMER_SUPPORT_TICKET="CREATE_CUSTOMER_SUPPORT_TICKET",t.CREATE_NOTIFICATION="CREATE_NOTIFICATION",t.CREATE_PERMISSION_GROUP="create_permission_group",t.CREATE_RELEASE="CREATE_RELEASE",t.CREATE_REMOTE_HANDS_TICKET="CREATE_REMOTE_HANDS_TICKET",t.CREATE_ROLE="CREATE_ROLE",t.CREATE_ROLE_ASSET_PERMISSION="CREATE_ROLE_ASSET_PERMISSION",t.CREATE_ROLE_PERMISSION="CREATE_ROLE_PERMISSION",t.CREATE_ROLE_PERMISSION_GROUP="CREATE_ROLE_PERMISSION_GROUP",t.CUSTOMER_SUPPORT_CONTACTS="CUSTOMER_SUPPORT_CONTACTS",t.CUSTOMER_SUPPORT_TICKETS="CUSTOMER_SUPPORT_TICKETS",t.DATE_FORMAT="DATE_FORMAT",t.DEFAULT_ACCOUNT="DEFAULT_ACCOUNT",t.DELETE_ROLE="DELETE_ROLE",t.DELETE_GROUP_PERMISSION="DELETE_GROUP_PERMISSION",t.DELETE_PERMISSION="DELETE_PERMISSION",t.DELETE_PERMISSION_GROUP="DELETE_PERMISSION_GROUP",t.DCIM_ALERTS="DCIM_ALERTS",t.DCIM_ALERT_INSTANCES="DCIM_ALERT_INSTANCES",t.DCIM_ALERT_INSTANCE_DETAILS="DCIM_ALERT_INSTANCE_DETAILS",t.DCIM_CHART_DATA="DCIM_CHART_DATA",t.DCIM_CHART_DATA_GROUP="DCIM_CHART_DATA_GROUP",t.DCIM_CHART_METADATA="DCIM_CHART_METADATA",t.DCIM_ENABLED_LOCATIONS="DCIM_ENABLED_LOCATIONS",t.DCIM_HISTORICAL_ALERTS="DCIM_HISTORICAL_ALERTS",t.DCIM_HISTORICAL_ALERT_INSTANCE_DETAILS="DCIM_HISTORICAL_ALERT_INSTANCE_DETAILS",t.DCIM_LOCATIONS="DCIM_LOCATIONS",t.DOWNLOAD_USERS="DOWNLOAD_USERS",t.EDIT_ACCOUNT="EDIT_ACCOUNT",t.EDIT_NOTIFICATION="EDIT_NOTIFICATION",t.EDIT_PERMISSION_GROUP="EDIT_PERMISSION_GROUP",t.EDIT_PRIVILEGE="EDIT_PRIVILEGE",t.EDIT_ROLE="EDIT_ROLE",t.EDIT_ROLE_PERMISSION="EDIT_ROLE_PERMISSION",t.EDIT_USER_PERMISSIONS="EDIT_USER_PERMISSIONS",t.EDIT_USER_PREFERENCES="EDIT_USER_PREFERENCES",t.EDIT_USER_PROFILE="EDIT_USER_PROFILE",t.ELEGIBLE_REPORTS="ELEGIBLE_REPORTS",t.FA_TICKET_APPROVE_OR_DENY="FA_TICKET_APPROVE_OR_DENY",t.FACILITY_ACCESS="FACILITY_ACCESS",t.FACILITY_ACCESS_CONTACT_ACCESS="FACILTY_ACCESS_CONTACT_ACCESS",t.FACILITY_ACCESS_CONTACTS="FACILTY_ACCESS_CONTACTS",t.FACILITY_ACCESS_TICKETS="FACILTY_ACCESS_TICKETS",t.LOCATIONS="LOCATIONS",t.LOCATIONS_PAGED="LOCATIONS_PAGED",t.POP_POES_LOCATIONS="POP_POES_LOCATIONS",t.METRICS_FIRST_TIME_LOGIN="METRICS_FIRST_TIME_LOGIN",t.METRICS_LOGIN="metrics_login",t.METRICS_LOGOUT="metrics_logout",t.METROS="metros",t.MODIFY_BADGE="MODIFY_BADGE",t.NOTIFICATION="NOTIFICATION",t.NOTIFICATIONS="NOTIFICATIONS",t.PERMISSION_GROUP_PERMISSIONS="PERMISSION_GROUP_PERMISSIONS",t.PERMISSION_GROUPS="PERMISSION_GROUPS",t.PERMISSIONS="PERMISSIONS",t.PERMISSIONS_PRIVILEGES="PERMISSIONS_PRIVILEGES",t.PERMISSIONS_AVAILABLE="PERMISSIONS_AVAILABLE",t.PLANNED_SITE_MAINTENANCE="PLANNED_SITE_MAINTENANCE",t.PORTAL_ROLES="PORTAL_ROLES",t.POSITIONS="POSITIONS",t.REGIONS="REGIONS",t.RELEASE="RELEASE",t.RELEASE_INFO="RELEASE_INFO",t.REMOVE_ACCOUNT="REMOVE_ACCOUNT",t.REMOVE_ACCOUNT_ROLE="REMOVE_ACCOUNT_ROLE",t.REMOTE_HANDS_TICKET="REMOTE_HANDS_TICKET",t.REMOTE_HANDS_CATEGORIES="REMOTE_HANDS_CATEGORIES",t.REPORT_FILE_DOWNLOAD="REPORT_FILE_DOWNLOAD",t.REPORTS="REPORTS",t.REQUEST_TYPES="REQUEST_TYPES",t.ROLE="ROLE",t.ROLE_ACCESS_PERMISSIONS="ROLE_ACCESS_PERMISSIONS",t.ROLE_ASSET_PERMISSIONS="ROLE_ASSET_PERMISSIONS",t.ROLE_NAMES="ROLE_NAMES",t.ROLE_PERMISSIONS="ROLE_PERMISSIONS",t.ROLE_PERMISSIONS_PRIVILEGES="ROLE_PERMISSIONS_PRIVILEGES",t.ROLE_PERMISSION_GROUP="ROLE_PERMISSION_GROUP",t.ROLES="ROLES",t.SERVICE_TICKETS="SERVICE_TICKETS",t.SERVICE_TICKETS_CANCELLATATION_REASONS="SERVICE_TICKETS_CANCELLATATION_REASONS",t.SET_ACTIVE_USER_ACCOUNT="SET_ACTIVE_USER_ACCOUNT",t.SHIPMENTS_TICKET="SHIPMENTS_TICKET",t.SHIPMENTS_TICKETS="SHIPMENTS_TICKETS",t.SITES="SITES",t.SITES_PAGED="SITES_PAGED",t.SITES_TREE="SITES_TREE",t.SUPPORT_DOWNLOAD="SUPPORT_DOWNLOAD",t.SUPPORT_TICKETS="SUPPORT_TICKETS",t.SUPPORT_TICKET="SUPPORT_TICKET",t.SUPPORT_TICKET_MESSAGES="SUPPORT_TICKET_MESSAGES",t.UNITS="UNITS",t.UNREAD_NOTIFICATIONS="UNREAD_NOTIFICATIONS",t.UPDATE_CUSTOMER_SUPPORT_TICKET="UPDATE_CUSTOMER_SUPPORT_TICKET",t.UPDATE_FA_TICKET="UPDATE_FA_TICKET",t.UPDATE_RELEASE="UPDATE_RELEASE",t.UPDATE_REMOTE_HANDS_TICKET="UPDATE_REMOTE_HANDS_TICKET",t.UPDATE_SHIPMENTS_TICKET="UPDATE_SHIPMENTS_TICKET",t.USER="USER",t.USER_ACCOUNT_CREATORS="USER_ACCOUNT_CREATORS",t.USER_ACCOUNTS="USER_ACCOUNTS",t.USER_ACCOUNT_APPROVALS="USER_ACCOUNT_APPROVALS",t.USER_ACCOUNT_STATUS="USER_ACCOUNT_STATUS",t.USER_ASSIGNMENTS="USER_ASSIGNMENTS",t.USER_BY_EMAIL="USER_BY_EMAIL",t.USER_CREATE="USER_CREATE",t.USER_DETAILS="USER_DETAILS",t.USER_EDIT="USER_EDIT",t.USER_ID="USER_ID",t.USER_INTERNAL_DOMAINS="USER_INTERNAL_DOMAINS",t.USER_IS_ON_BEHALF_OF="USER_IS_ON_BEHALF_OF",t.USER_LOGOUT="USER_LOGOUT",t.USER_ON_BEHALF_OF="USER_ON_BEHALF_OF",t.USER_PREFERENCES="USER_PREFERENCES",t.USER_PROFILE="USER_PROFILE",t.USER_RELEASE="USER_RELEASE",t.USER_UPDATE="USER_UPDATE",t.USERS_CONTACTS="USERS_CONTACTS",t.USERS_LOCATIONS="USERS_LOCATIONS",t.TECHNICAL_SUPPORT_CONTACTS="TECHNICAL_SUPPORT_CONTACTS",t.TIME_ZONE="TIME_ZONE",t.TIME_ZONE_WINDOWS_IANA="TIME_ZONE_WINDOWS_IANA",t.UPLOAD_ATTACHMENTS="UPLOAD_ATTACHMENTS",t.VALIDATE_ROLE="VALIDATE_ROLE",t.WORK_ORDER_DETAILS="WORK_ORDER_DETAILS",t.WORK_ORDERS="WORK_ORDERS",t.CONTACT_US="CONTACT_US",t))(fn||{});const zI={xs:0,sm:600,md:900,lg:1200,xl:1536},At=t=>`(max-width:${zI[t]-.05}px)`,ha=t=>`(min-width:${zI[t]}px)`,sz=(t,e)=>`${ha(t)} and ${At(e)}`,Qe=t=>{const e=bt(n=>{const i=window.matchMedia(t);return i.addEventListener?(i.addEventListener("change",n),()=>i.removeEventListener("change",n)):(i.addListener(n),()=>i.removeListener(n))},[t]),r=bt(()=>window.matchMedia(t).matches,[t]);return x0(e,r,()=>!1)},ws=()=>{const t=Qe(At("md")),e=Qe(sz("sm","lg"));return{isMobile:t,isTablet:e}};var vf=(t=>(t.Hour12="12-hour",t.Hour24="24-hour",t))(vf||{}),$f=(t=>(t.MMddyyyy="MM/dd/yyyy",t.ddMMyyyy="dd/MM/yyyy",t.yyyyMMdd="yyyy/MM/dd",t))($f||{}),hu=(t=>(t.Hour12="h:mm a",t.Hour24="HH:mm",t))(hu||{});const uz="MM/dd/yyyy",Uf=(t,e,r="-")=>!t||t===""||t==="-"?r:(typeof t=="number"&&(t=tz(t)),ez(t,e||uz));function p1(t,e,r){return t.includes(r)?r:e}const $0=()=>{const{userPreferences:t}=PW(),e=$f.MMddyyyy,r=vf.Hour12,n=Intl.DateTimeFormat().resolvedOptions().timeZone,i=yr(()=>({dateFormat:p1(Object.values($f),e,t==null?void 0:t.dateFormat),timeFormat:p1(Object.values(vf),r,t==null?void 0:t.timeFormat),timeZone:(t==null?void 0:t.timeZone)||n}),[e,r,n,t==null?void 0:t.dateFormat,t==null?void 0:t.timeFormat,t==null?void 0:t.timeZone]),a=yr(()=>i.timeFormat===vf.Hour12,[i.timeFormat]),o=bt(c=>{let d=a?"hh:mm aa":"HH:mm";return c&&(d=a?"hh:mm:ss aa":"HH:mm:ss"),d},[a]),s=bt((c,d,h,g)=>{let m=i.dateFormat;return d&&(m=`${m} ${o(h)}`),Uf(c,m,g)},[i.dateFormat,o]),l=bt((c,d,h)=>{const g=o(d);return Uf(c,g,h)},[o]);return{...i,defaultDateFormat:e,defaultTimeFormat:r,defaultTimeZone:n,isTime12Hour:a,formatDateTime:s,formatTime:l,getTimeFormatString:o}};var ua=(t=>(t.DEVICE_NAME="deviceName",t.FUNCTION_VALUE="functionValue",t.THRESHOLD="threshold",t))(ua||{}),VI=(t=>(t.ASC="asc",t.DESC="desc",t))(VI||{});const Ed=()=>{const[t,e]=sr({preferredDateFormat:$f.MMddyyyy,preferredTimeFormat:hu.Hour24}),r=()=>{const l=localStorage.getItem("date-format");if(l)try{const c=JSON.parse(l);c&&typeof c=="object"&&e(c)}catch(c){console.error("Error parsing date-format from local storage:",c)}};ht(()=>{r();const l=()=>{r()};return window.addEventListener("dateFormatChanged",l),()=>{window.removeEventListener("dateFormatChanged",l)}},[]);const n=yr(()=>t.preferredTimeFormat===hu.Hour12,[t.preferredTimeFormat]),i=bt(l=>{let c=n?hu.Hour12:hu.Hour24;return l&&(c=n?"hh:mm:ss a":"HH:mm:ss"),c},[n]),a=yr(()=>`${t.preferredDateFormat} ${t.preferredTimeFormat}`,[t]),o=bt((l,c,d,h)=>{let g=t.preferredDateFormat;return c&&(g=`${g} ${i(d)}`),Uf(l,g,h)},[t.preferredDateFormat,i]),s=bt((l,c,d)=>{const h=i(c);return Uf(l,h,d)},[i]);return{dateTimeFormatPreferences:t,dateTimeFormatUserPreferenceString:a,formatDateTime:o,formatTime:s,getTimeFormatString:i}};var pu={exports:{}};/**
39
39
  * @license
40
40
  * Lodash <https://lodash.com/>
package/dist/index.html CHANGED
@@ -40,7 +40,7 @@
40
40
  })()
41
41
  </script>
42
42
  <script type="module" crossorigin src="/ui-mfe-html-dcim.js"></script>
43
- <link rel="modulepreload" crossorigin href="/assets/app-CYvL5dJy.js">
43
+ <link rel="modulepreload" crossorigin href="/assets/app-BOyxoeHu.js">
44
44
  <link rel="modulepreload" crossorigin href="/ui-mfe-light-dcim.js">
45
45
  <link rel="stylesheet" crossorigin href="/assets/app-Bw0B6N5L.css">
46
46
  </head>
@@ -1 +1 @@
1
- import{a as n,u as a,S as m,j as t,E as c,Q as l,q as d,D as p,R as u,L as h,c as x,r as b}from"./assets/app-CYvL5dJy.js";import f,{createContext as j,Suspense as _}from"react";import o from"react-dom";import"@digital-realty/ix-button/IxButton";import"@digital-realty/ix-dialog/IxDialog";import"@digital-realty/ix-select/IxSelect";import"@digital-realty/ix-select/IxSelectOption";import"@digital-realty/ix-drawer/IxDrawer";import"@digital-realty/ix-icon/IxIcon";import"@digital-realty/ix-divider/IxDivider";import"@digital-realty/ix-progress/IxProgress";import"@digital-realty/ix-icon-button/IxIconButton";import"@digital-realty/ix-grid/IxPagination";import"@digital-realty/ix-switch/IxSwitch";import"@digital-realty/ix-textbox/IxTextbox";import"lit";import"lit/directives/if-defined.js";import"@digital-realty/ix-toast/ix-message-toast.js";import"@digital-realty/ix-checkbox/IxCheckbox";import"@digital-realty/ix-date-next/IxDateNext";const y=j(document.body),E=y.Provider,S=({sessionToken:r,baseUrl:e,parent:s})=>{return n(),a(m.X_AUTH,{defaultValue:JSON.stringify({access_token:r})}),t.jsx(f.StrictMode,{children:t.jsxs(E,{value:s||document.body,children:[t.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"*,*::before,*::after{box-sizing:border-box}"}}),t.jsx(c,{children:t.jsx(l,{client:d,children:t.jsx(p,{children:t.jsx(_,{fallback:t.jsx(h,{}),children:t.jsx(u,{router:i()})})})})})]})});function i(){return x(b,{basename:e})}};class g extends HTMLElement{constructor(){super(),this._root=this.attachShadow({mode:"open"})}connectedCallback(){const e=this.getAttribute("baseUrl");o.render(t.jsx(S,{baseUrl:e,parent:this._root}),this._root)}disconnectedCallback(){o.unmountComponentAtNode(this._root)}}window.customElements.get("ui-mfe-charts")||window.customElements.define("ui-mfe-charts",g);
1
+ import{a as n,u as a,S as m,j as t,E as c,Q as l,q as d,D as p,R as u,L as h,c as x,r as b}from"./assets/app-BOyxoeHu.js";import f,{createContext as j,Suspense as _}from"react";import o from"react-dom";import"@digital-realty/ix-button/IxButton";import"@digital-realty/ix-dialog/IxDialog";import"@digital-realty/ix-select/IxSelect";import"@digital-realty/ix-select/IxSelectOption";import"@digital-realty/ix-drawer/IxDrawer";import"@digital-realty/ix-icon/IxIcon";import"@digital-realty/ix-divider/IxDivider";import"@digital-realty/ix-progress/IxProgress";import"@digital-realty/ix-icon-button/IxIconButton";import"@digital-realty/ix-grid/IxPagination";import"@digital-realty/ix-switch/IxSwitch";import"@digital-realty/ix-textbox/IxTextbox";import"lit";import"lit/directives/if-defined.js";import"@digital-realty/ix-toast/ix-message-toast.js";import"@digital-realty/ix-checkbox/IxCheckbox";import"@digital-realty/ix-date-next/IxDateNext";const y=j(document.body),E=y.Provider,S=({sessionToken:r,baseUrl:e,parent:s})=>{return n(),a(m.X_AUTH,{defaultValue:JSON.stringify({access_token:r})}),t.jsx(f.StrictMode,{children:t.jsxs(E,{value:s||document.body,children:[t.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"*,*::before,*::after{box-sizing:border-box}"}}),t.jsx(c,{children:t.jsx(l,{client:d,children:t.jsx(p,{children:t.jsx(_,{fallback:t.jsx(h,{}),children:t.jsx(u,{router:i()})})})})})]})});function i(){return x(b,{basename:e})}};class g extends HTMLElement{constructor(){super(),this._root=this.attachShadow({mode:"open"})}connectedCallback(){const e=this.getAttribute("baseUrl");o.render(t.jsx(S,{baseUrl:e,parent:this._root}),this._root)}disconnectedCallback(){o.unmountComponentAtNode(this._root)}}window.customElements.get("ui-mfe-charts")||window.customElements.define("ui-mfe-charts",g);
@@ -1 +1 @@
1
- import{g as a,j as l}from"./assets/app-CYvL5dJy.js";import f from"react-dom";import d from"./ui-mfe-light-dcim.js";import"react";import"@digital-realty/ix-button/IxButton";import"@digital-realty/ix-icon/IxIcon";import"@digital-realty/ix-divider/IxDivider";import"@digital-realty/ix-progress/IxProgress";import"@digital-realty/ix-dialog/IxDialog";import"@digital-realty/ix-select/IxSelect";import"@digital-realty/ix-select/IxSelectOption";import"@digital-realty/ix-drawer/IxDrawer";import"@digital-realty/ix-icon-button/IxIconButton";import"@digital-realty/ix-grid/IxPagination";import"@digital-realty/ix-switch/IxSwitch";import"@digital-realty/ix-textbox/IxTextbox";import"lit";import"lit/directives/if-defined.js";import"@digital-realty/ix-toast/ix-message-toast.js";import"@digital-realty/ix-checkbox/IxCheckbox";import"@digital-realty/ix-date-next/IxDateNext";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))c(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&c(n)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function c(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();var o={},m;function g(){if(m)return o;m=1;var i=f;return o.createRoot=i.createRoot,o.hydrateRoot=i.hydrateRoot,o}var y=g();const h=a(y),r=document.getElementById("root");var p;const O=((p=r==null?void 0:r.getAttribute("sessiontoken"))==null?void 0:p.valueOf())||"",R=(r==null?void 0:r.getAttribute("baseUrl"))||"";h.createRoot(r).render(l.jsx(d,{sessionToken:O,baseUrl:R}));
1
+ import{g as a,j as l}from"./assets/app-BOyxoeHu.js";import f from"react-dom";import d from"./ui-mfe-light-dcim.js";import"react";import"@digital-realty/ix-button/IxButton";import"@digital-realty/ix-icon/IxIcon";import"@digital-realty/ix-divider/IxDivider";import"@digital-realty/ix-progress/IxProgress";import"@digital-realty/ix-dialog/IxDialog";import"@digital-realty/ix-select/IxSelect";import"@digital-realty/ix-select/IxSelectOption";import"@digital-realty/ix-drawer/IxDrawer";import"@digital-realty/ix-icon-button/IxIconButton";import"@digital-realty/ix-grid/IxPagination";import"@digital-realty/ix-switch/IxSwitch";import"@digital-realty/ix-textbox/IxTextbox";import"lit";import"lit/directives/if-defined.js";import"@digital-realty/ix-toast/ix-message-toast.js";import"@digital-realty/ix-checkbox/IxCheckbox";import"@digital-realty/ix-date-next/IxDateNext";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))c(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&c(n)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function c(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();var o={},m;function g(){if(m)return o;m=1;var i=f;return o.createRoot=i.createRoot,o.hydrateRoot=i.hydrateRoot,o}var y=g();const h=a(y),r=document.getElementById("root");var p;const O=((p=r==null?void 0:r.getAttribute("sessiontoken"))==null?void 0:p.valueOf())||"",R=(r==null?void 0:r.getAttribute("baseUrl"))||"";h.createRoot(r).render(l.jsx(d,{sessionToken:O,baseUrl:R}));
@@ -1 +1 @@
1
- import{a as i,u as s,S as a,j as r,E as p,Q as m,q as n,D as l,R as u,L as c,c as d,r as x}from"./assets/app-CYvL5dJy.js";import f,{Suspense as j}from"react";import"@digital-realty/ix-button/IxButton";import"@digital-realty/ix-dialog/IxDialog";import"@digital-realty/ix-select/IxSelect";import"@digital-realty/ix-select/IxSelectOption";import"@digital-realty/ix-drawer/IxDrawer";import"react-dom";import"@digital-realty/ix-icon/IxIcon";import"@digital-realty/ix-divider/IxDivider";import"@digital-realty/ix-progress/IxProgress";import"@digital-realty/ix-icon-button/IxIconButton";import"@digital-realty/ix-grid/IxPagination";import"@digital-realty/ix-switch/IxSwitch";import"@digital-realty/ix-textbox/IxTextbox";import"lit";import"lit/directives/if-defined.js";import"@digital-realty/ix-toast/ix-message-toast.js";import"@digital-realty/ix-checkbox/IxCheckbox";import"@digital-realty/ix-date-next/IxDateNext";const w=({sessionToken:e,baseUrl:t,parent:y})=>{return i(),s(a.X_AUTH,{defaultValue:JSON.stringify({access_token:e})}),r.jsxs(f.StrictMode,{children:[r.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"*,*::before,*::after{box-sizing:border-box}"}}),r.jsx(p,{children:r.jsx(m,{client:n,children:r.jsx(l,{children:r.jsx(j,{fallback:r.jsx(c,{}),children:r.jsx(u,{router:o()})})})})})]});function o(){return d(x,{basename:t})}};export{w as default};
1
+ import{a as i,u as s,S as a,j as r,E as p,Q as m,q as n,D as l,R as u,L as c,c as d,r as x}from"./assets/app-BOyxoeHu.js";import f,{Suspense as j}from"react";import"@digital-realty/ix-button/IxButton";import"@digital-realty/ix-dialog/IxDialog";import"@digital-realty/ix-select/IxSelect";import"@digital-realty/ix-select/IxSelectOption";import"@digital-realty/ix-drawer/IxDrawer";import"react-dom";import"@digital-realty/ix-icon/IxIcon";import"@digital-realty/ix-divider/IxDivider";import"@digital-realty/ix-progress/IxProgress";import"@digital-realty/ix-icon-button/IxIconButton";import"@digital-realty/ix-grid/IxPagination";import"@digital-realty/ix-switch/IxSwitch";import"@digital-realty/ix-textbox/IxTextbox";import"lit";import"lit/directives/if-defined.js";import"@digital-realty/ix-toast/ix-message-toast.js";import"@digital-realty/ix-checkbox/IxCheckbox";import"@digital-realty/ix-date-next/IxDateNext";const w=({sessionToken:e,baseUrl:t,parent:y})=>{return i(),s(a.X_AUTH,{defaultValue:JSON.stringify({access_token:e})}),r.jsxs(f.StrictMode,{children:[r.jsx("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"*,*::before,*::after{box-sizing:border-box}"}}),r.jsx(p,{children:r.jsx(m,{client:n,children:r.jsx(l,{children:r.jsx(j,{fallback:r.jsx(c,{}),children:r.jsx(u,{router:o()})})})})})]});function o(){return d(x,{basename:t})}};export{w as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-realty/ui-mfe-dcim",
3
- "version": "17.0.0-master.568095",
3
+ "version": "17.0.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./ui-mfe-dcim.js": "./dist/ui-mfe-dcim.js",