@adobe/react-spectrum-charts
Version:
Declarative library for composing Spectrum visualizations in React.
2 lines • 477 kB
JavaScript
/*! For license information please see rc.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@spectrum-charts/constants"),require("react"),require("@adobe/react-spectrum"),require("@spectrum-charts/locales"),require("@spectrum-charts/vega-spec-builder"),require("vega"),require("vega-lite"),require("@spectrum-charts/utils"),require("react-dom"),require("@spectrum-charts/themes")):"function"==typeof define&&define.amd?define(["@spectrum-charts/constants","react","@adobe/react-spectrum","@spectrum-charts/locales","@spectrum-charts/vega-spec-builder","vega","vega-lite","@spectrum-charts/utils","react-dom","@spectrum-charts/themes"],t):"object"==typeof exports?exports.reactSpectrumCharts=t(require("@spectrum-charts/constants"),require("react"),require("@adobe/react-spectrum"),require("@spectrum-charts/locales"),require("@spectrum-charts/vega-spec-builder"),require("vega"),require("vega-lite"),require("@spectrum-charts/utils"),require("react-dom"),require("@spectrum-charts/themes")):e.reactSpectrumCharts=t(e["@spectrum-charts/constants"],e.react,e["@adobe/react-spectrum"],e["@spectrum-charts/locales"],e["@spectrum-charts/vega-spec-builder"],e.vega,e["vega-lite"],e["@spectrum-charts/utils"],e["react-dom"],e["@spectrum-charts/themes"])}(this,((e,t,n,r,o,i,a,s,l,u)=>(()=>{var c={7957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.A4uGraphBarVertical=function(e){var t=i({},e);return o.default.createElement("svg",i({viewBox:"0 0 36 36"},t,t),o.default.createElement("path",{fillRule:"evenodd",d:"M26,3V30h6V3a1,1,0,0,0-1-1H27A1,1,0,0,0,26,3Z"}),o.default.createElement("path",{fillRule:"evenodd",d:"M18,13V30h6V13a1,1,0,0,0-1-1H19A1,1,0,0,0,18,13Z"}),o.default.createElement("path",{fillRule:"evenodd",d:"M10,21v9h6V21a1,1,0,0,0-1-1H11A1,1,0,0,0,10,21Z"}),o.default.createElement("path",{fillRule:"evenodd",d:"M2,25v5H8V25a1,1,0,0,0-1-1H3A1,1,0,0,0,2,25Z"}),o.default.createElement("rect",{fillRule:"evenodd",height:"2",rx:"0.5",ry:"0.5",width:"34",y:"32"}))};var r,o=(r=n(9155))&&r.__esModule?r:{default:r};function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}},4561:(e,t,n)=>{var r=n(6759);function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function i(e,t){return e-t*Math.floor(e/t)}o(e.exports,"CalendarDate",(()=>qe)),o(e.exports,"CalendarDateTime",(()=>Qe)),o(e.exports,"Time",(()=>Je)),o(e.exports,"ZonedDateTime",(()=>tt)),o(e.exports,"GregorianCalendar",(()=>d)),o(e.exports,"JapaneseCalendar",(()=>lt)),o(e.exports,"BuddhistCalendar",(()=>ct)),o(e.exports,"TaiwanCalendar",(()=>mt)),o(e.exports,"PersianCalendar",(()=>yt)),o(e.exports,"IndianCalendar",(()=>bt)),o(e.exports,"IslamicCivilCalendar",(()=>It)),o(e.exports,"IslamicTabularCalendar",(()=>Pt)),o(e.exports,"IslamicUmalquraCalendar",(()=>Rt)),o(e.exports,"HebrewCalendar",(()=>Gt)),o(e.exports,"EthiopicCalendar",(()=>Jt)),o(e.exports,"EthiopicAmeteAlemCalendar",(()=>Zt)),o(e.exports,"CopticCalendar",(()=>Qt)),o(e.exports,"createCalendar",(()=>en)),o(e.exports,"toCalendarDate",(()=>ne)),o(e.exports,"toCalendarDateTime",(()=>re)),o(e.exports,"toTime",(()=>oe)),o(e.exports,"toCalendar",(()=>ie)),o(e.exports,"toZoned",(()=>ae)),o(e.exports,"toTimeZone",(()=>se)),o(e.exports,"toLocalTimeZone",(()=>le)),o(e.exports,"fromDate",(()=>te)),o(e.exports,"fromAbsolute",(()=>ee)),o(e.exports,"isSameDay",(()=>f)),o(e.exports,"isSameMonth",(()=>h)),o(e.exports,"isSameYear",(()=>m)),o(e.exports,"isEqualDay",(()=>g)),o(e.exports,"isEqualMonth",(()=>v)),o(e.exports,"isEqualYear",(()=>y)),o(e.exports,"isToday",(()=>b)),o(e.exports,"getDayOfWeek",(()=>E)),o(e.exports,"now",(()=>w)),o(e.exports,"today",(()=>S)),o(e.exports,"getHoursInDay",(()=>T)),o(e.exports,"getLocalTimeZone",(()=>I)),o(e.exports,"startOfMonth",(()=>P)),o(e.exports,"startOfWeek",(()=>D)),o(e.exports,"startOfYear",(()=>N)),o(e.exports,"endOfMonth",(()=>M)),o(e.exports,"endOfWeek",(()=>R)),o(e.exports,"endOfYear",(()=>L)),o(e.exports,"getMinimumMonthInYear",(()=>k)),o(e.exports,"getMinimumDayInMonth",(()=>A)),o(e.exports,"getWeeksInMonth",(()=>j)),o(e.exports,"minDate",(()=>U)),o(e.exports,"maxDate",(()=>z)),o(e.exports,"isWeekend",(()=>G)),o(e.exports,"isWeekday",(()=>$)),o(e.exports,"parseDate",(()=>Re)),o(e.exports,"parseDateTime",(()=>Fe)),o(e.exports,"parseTime",(()=>De)),o(e.exports,"parseAbsolute",(()=>je)),o(e.exports,"parseAbsoluteToLocal",(()=>Ue)),o(e.exports,"parseZonedDateTime",(()=>Be)),o(e.exports,"parseDuration",(()=>We)),o(e.exports,"DateFormatter",(()=>nn));function a(e,t,n,r){let o=(t=l(e,t))-1,i=-2;return n<=2?i=0:s(t)&&(i=-1),1721425+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function s(e){return e%4==0&&(e%100!=0||e%400==0)}function l(e,t){return"BC"===e?1-t:t}function u(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const c={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class d{fromJulianDay(e){let t=e,n=t-1721426,r=Math.floor(n/146097),o=i(n,146097),l=Math.floor(o/36524),c=i(o,36524),d=Math.floor(c/1461),p=i(c,1461),f=Math.floor(p/365),h=400*r+100*l+4*d+f+(4!==l&&4!==f?1:0),[m,g]=u(h),v=t-a(m,g,1,1),y=2;t<a(m,g,3,1)?y=0:s(g)&&(y=1);let b=Math.floor((12*(v+y)+373)/367),E=t-a(m,g,b,1)+1;return new qe(m,g,b,E)}toJulianDay(e){return a(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return c[s(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return s(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const p={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function f(e,t){return t=ie(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function h(e,t){return t=ie(t,e.calendar),e=P(e),t=P(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function m(e,t){return t=ie(t,e.calendar),e=N(e),t=N(t),e.era===t.era&&e.year===t.year}function g(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function v(e,t){return e=P(e),t=P(t),e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month}function y(e,t){return e=N(e),t=N(t),e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year}function b(e,t){return f(e,S(t))}function E(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-function(e){let t=B(e);return t&&p[t]||0}(t))%7;return r<0&&(r+=7),r}function w(e){return ee(Date.now(),e)}function S(e){return ne(w(e))}function x(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function O(e,t){return _(e)-_(t)}function _(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}function T(e,t){let n=Z(e,t);return(Z(e.add({days:1}),t)-n)/36e5}let C=null;function I(){return null==C&&(C=(new Intl.DateTimeFormat).resolvedOptions().timeZone),C}function P(e){return e.subtract({days:e.day-1})}function M(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function N(e){return P(e.subtract({months:e.month-1}))}function L(e){return M(e.add({months:e.calendar.getMonthsInYear(e)-e.month}))}function k(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function A(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function D(e,t){let n=E(e,t);return e.subtract({days:n})}function R(e,t){return D(e,t).add({days:6})}const F=new Map;function B(e){if(Intl.Locale){let t=F.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&F.set(e,t)),t}let t=e.split("-")[1];return"u"===t?void 0:t}function j(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((E(P(e),t)+n)/7)}function U(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function z(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}const H={AF:[4,5],AE:[5,6],BH:[5,6],DZ:[5,6],EG:[5,6],IL:[5,6],IQ:[5,6],IR:[5,5],JO:[5,6],KW:[5,6],LY:[5,6],OM:[5,6],QA:[5,6],SA:[5,6],SD:[5,6],SY:[5,6],YE:[5,6]};function G(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1)%7;r<0&&(r+=7);let o=B(t),[i,a]=H[o]||[6,0];return r===i||r===a}function $(e,t){return!G(e,t)}function X(e){return W(l((e=ie(e,new d)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function W(e,t,n,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function V(e,t){if("UTC"===t)return 0;if(e>0&&t===I())return-6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:o,hour:i,minute:a,second:s}=q(e,t);return W(n,r,o,i,a,s,0)-1e3*Math.floor(e/1e3)}const Y=new Map;function q(e,t){let n=Y.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Y.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let e of r)"literal"!==e.type&&(o[e.type]=e.value);return{year:"BC"===o.era||"B"===o.era?1-o.year:+o.year,month:+o.month,day:+o.day,hour:"24"===o.hour?0:+o.hour,minute:+o.minute,second:+o.second}}const K=864e5;function J(e,t,n,r){return(n===r?[n]:[n,r]).filter((n=>function(e,t,n){let r=q(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}(e,t,n)))}function Z(e,t,n="compatible"){let r=re(e);if("UTC"===t)return X(r);if(t===I()&&"compatible"===n){r=ie(r,new d);let e=new Date,t=l(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let o=X(r),i=V(o-K,t),a=V(o+K,t),s=J(r,t,o-i,o-a);if(1===s.length)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function Q(e,t,n="compatible"){return new Date(Z(e,t,n))}function ee(e,t){let n=V(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new tt(o,i,a,t,n,s,l,u,c)}function te(e,t){return ee(e.getTime(),t)}function ne(e){return new qe(e.calendar,e.era,e.year,e.month,e.day)}function re(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new Qe(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function oe(e){return new Je(e.hour,e.minute,e.second,e.millisecond)}function ie(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,he(r),r}function ae(e,t,n){return e instanceof tt?e.timeZone===t?e:se(e,t):ee(Z(e,t,n),t)}function se(e,t){return ie(ee(X(e)-e.offset,t),e.calendar)}function le(e){return se(e,I())}const ue=36e5;function ce(e,t){let n=e.copy(),r="hour"in n?we(n,t):0;de(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,pe(n),fe(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,pe(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,pe(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,a;let e=null===(i=(a=n.calendar).isInverseEra)||void 0===i?void 0:i.call(a,n);n.year=o,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function de(e,t){var n,r;(null===(n=(r=e.calendar).isInverseEra)||void 0===n?void 0:n.call(r,e))&&(t=-t),e.year+=t}function pe(e){for(;e.month<1;)de(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,de(e,1)}function fe(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function he(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),fe(e)}function me(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function ge(e,t){return ce(e,me(t))}function ve(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),he(n),n}function ye(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),be(n),n}function be(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Ee(e,t){let n=e%t;return n<0&&(n+=t),n}function we(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,function(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Ee(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Ee(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Ee(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Ee(e.hour,24),t}(e)}function Se(e,t){let n=e.copy();return we(n,t),n}function xe(e,t,n,r){let o=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),i=t.indexOf(e.era);if(i<0)throw new Error("Invalid era: "+e.era);i=_e(i,n,0,t.length-1,null==r?void 0:r.round),o.era=t[i],he(o);break}case"year":var i,a;(null===(i=(a=o.calendar).isInverseEra)||void 0===i?void 0:i.call(a,o))&&(n=-n),o.year=_e(e.year,n,-1/0,9999,null==r?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=_e(e.month,n,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":o.day=_e(e.day,n,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),he(o),o}function Oe(e,t,n,r){let o=e.copy();switch(t){case"hour":{let t=e.hour,i=0,a=23;if(12===(null==r?void 0:r.hourCycle)){let e=t>=12;i=e?12:0,a=e?23:11}o.hour=_e(t,n,i,a,null==r?void 0:r.round);break}case"minute":o.minute=_e(e.minute,n,0,59,null==r?void 0:r.round);break;case"second":o.second=_e(e.second,n,0,59,null==r?void 0:r.round);break;case"millisecond":o.millisecond=_e(e.millisecond,n,0,999,null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function _e(e,t,n,r,o=!1){if(o){(e+=Math.sign(t))<n&&(e=r);let o=Math.abs(t);(e=t>0?Math.ceil(e/o)*o:Math.floor(e/o)*o)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function Te(e,t){let n;return n=null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days?Z(ce(re(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):X(e)-e.offset,n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0),ie(ee(n,e.timeZone),e.calendar)}const Ce=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Ie=/^(\d{4})-(\d{2})-(\d{2})$/,Pe=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Me=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::?(\d{2}))?)?\[(.*?)\]$/,Ne=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/,Le=/^((?<negative>-)|\+)?P((?<years>\d*)Y)?((?<months>\d*)M)?((?<weeks>\d*)W)?((?<days>\d*)D)?((?<time>T)((?<hours>\d*[.,]?\d{1,9})H)?((?<minutes>\d*[.,]?\d{1,9})M)?((?<seconds>\d*[.,]?\d{1,9})S)?)?$/,ke=["hours","minutes","seconds"],Ae=["years","months","weeks","days",...ke];function De(e){let t=e.match(Ce);if(!t)throw new Error("Invalid ISO 8601 time string: "+e);return new Je(ze(t[1],0,23),t[2]?ze(t[2],0,59):0,t[3]?ze(t[3],0,59):0,t[4]?1e3*ze(t[4],0,1/0):0)}function Re(e){let t=e.match(Ie);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new qe(ze(t[1],0,9999),ze(t[2],1,12),1);return n.day=ze(t[3],0,n.calendar.getDaysInMonth(n)),n}function Fe(e){let t=e.match(Pe);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=new Qe(ze(t[1],1,9999),ze(t[2],1,12),1,t[4]?ze(t[4],0,23):0,t[5]?ze(t[5],0,59):0,t[6]?ze(t[6],0,59):0,t[7]?1e3*ze(t[7],0,1/0):0);return n.day=ze(t[3],0,n.calendar.getDaysInMonth(n)),n}function Be(e,t){let n=e.match(Me);if(!n)throw new Error("Invalid ISO 8601 date time string: "+e);let r=new tt(ze(n[1],1,9999),ze(n[2],1,12),1,n[10],0,n[4]?ze(n[4],0,23):0,n[5]?ze(n[5],0,59):0,n[6]?ze(n[6],0,59):0,n[7]?1e3*ze(n[7],0,1/0):0);r.day=ze(n[3],0,r.calendar.getDaysInMonth(r));let o,i=re(r);var a;if(n[8]){if(r.offset=36e5*ze(n[8],-23,23)+6e4*ze(null!==(a=n[9])&&void 0!==a?a:"0",0,59),o=X(r)-r.offset,!function(e,t){let n=X(e);return J(e,t,n-V(n-K,t),n-V(n+K,t))}(i,r.timeZone).includes(o))throw new Error(`Offset ${Xe(r.offset)} is invalid for ${$e(r)} in ${r.timeZone}`)}else o=Z(re(i),r.timeZone,t);return ee(o,r.timeZone)}function je(e,t){let n=e.match(Ne);if(!n)throw new Error("Invalid ISO 8601 date time string: "+e);let r=new tt(ze(n[1],1,9999),ze(n[2],1,12),1,t,0,n[4]?ze(n[4],0,23):0,n[5]?ze(n[5],0,59):0,n[6]?ze(n[6],0,59):0,n[7]?1e3*ze(n[7],0,1/0):0);var o;return r.day=ze(n[3],0,r.calendar.getDaysInMonth(r)),n[8]&&(r.offset=36e5*ze(n[8],-23,23)+6e4*ze(null!==(o=n[9])&&void 0!==o?o:"0",0,59)),se(r,t)}function Ue(e){return je(e,I())}function ze(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function He(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Ge(e){let t=ie(e,new d);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function $e(e){return`${Ge(e)}T${He(e)}`}function Xe(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function We(e){var t,n,r,o,i,a,s,l,u;const c=e.match(Le);if(!c)throw new Error(`Invalid ISO 8601 Duration string: ${e}`);const d=(t,n,r,o)=>{if(!t)return 0;try{return(n?-1:1)*ze(t.replace(",","."),r,o)}catch{throw new Error(`Invalid ISO 8601 Duration string: ${e}`)}},p=!!(null===(t=c.groups)||void 0===t?void 0:t.negative),f=Ae.some((e=>{var t;return null===(t=c.groups)||void 0===t?void 0:t[e]}));if(!f)throw new Error(`Invalid ISO 8601 Duration string: ${e}`);if(null===(n=c.groups)||void 0===n?void 0:n.time){const t=ke.some((e=>{var t;return null===(t=c.groups)||void 0===t?void 0:t[e]}));if(!t)throw new Error(`Invalid ISO 8601 Duration string: ${e}`)}const h={years:d(null===(r=c.groups)||void 0===r?void 0:r.years,p,0,9999),months:d(null===(o=c.groups)||void 0===o?void 0:o.months,p,0,12),weeks:d(null===(i=c.groups)||void 0===i?void 0:i.weeks,p,0,1/0),days:d(null===(a=c.groups)||void 0===a?void 0:a.days,p,0,31),hours:d(null===(s=c.groups)||void 0===s?void 0:s.hours,p,0,23),minutes:d(null===(l=c.groups)||void 0===l?void 0:l.minutes,p,0,59),seconds:d(null===(u=c.groups)||void 0===u?void 0:u.seconds,p,0,59)};if(void 0!==h.hours&&h.hours%1!=0&&(h.minutes||h.seconds))throw new Error(`Invalid ISO 8601 Duration string: ${e} - only the smallest unit can be fractional`);if(void 0!==h.minutes&&h.minutes%1!=0&&h.seconds)throw new Error(`Invalid ISO 8601 Duration string: ${e} - only the smallest unit can be fractional`);return h}function Ve(e){let t,n="object"==typeof e[0]?e.shift():new d;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}var Ye=new WeakMap;class qe{copy(){return this.era?new qe(this.calendar,this.era,this.year,this.month,this.day):new qe(this.calendar,this.year,this.month,this.day)}add(e){return ce(this,e)}subtract(e){return ge(this,e)}set(e){return ve(this,e)}cycle(e,t,n){return xe(this,e,t,n)}toDate(e){return Q(this,e)}toString(){return Ge(this)}compare(e){return x(this,e)}constructor(...e){(0,r._)(this,Ye,{writable:!0,value:void 0});let[t,n,o,i,a]=Ve(e);this.calendar=t,this.era=n,this.year=o,this.month=i,this.day=a,he(this)}}var Ke=new WeakMap;class Je{copy(){return new Je(this.hour,this.minute,this.second,this.millisecond)}add(e){return Se(this,e)}subtract(e){return function(e,t){return Se(e,me(t))}(this,e)}set(e){return ye(this,e)}cycle(e,t,n){return Oe(this,e,t,n)}toString(){return He(this)}compare(e){return O(this,e)}constructor(e=0,t=0,n=0,o=0){(0,r._)(this,Ke,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=o,be(this)}}var Ze=new WeakMap;class Qe{copy(){return this.era?new Qe(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Qe(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return ce(this,e)}subtract(e){return ge(this,e)}set(e){return ve(ye(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return xe(this,e,t,n);default:return Oe(this,e,t,n)}}toDate(e,t){return Q(this,e,t)}toString(){return $e(this)}compare(e){let t=x(this,e);return 0===t?O(this,re(e)):t}constructor(...e){(0,r._)(this,Ze,{writable:!0,value:void 0});let[t,n,o,i,a]=Ve(e);this.calendar=t,this.era=n,this.year=o,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,he(this)}}var et=new WeakMap;class tt{copy(){return this.era?new tt(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new tt(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Te(this,e)}subtract(e){return function(e,t){return Te(e,me(t))}(this,e)}set(e,t){return function(e,t,n){let r=re(e),o=ye(ve(r,t),t);return 0===o.compare(r)?e:ie(ee(Z(o,e.timeZone,n),e.timeZone),e.calendar)}(this,e,t)}cycle(e,t,n){return function(e,t,n,r){switch(t){case"hour":{let t=0,o=23;if(12===(null==r?void 0:r.hourCycle)){let n=e.hour>=12;t=n?12:0,o=n?23:11}let i=re(e),a=ie(ye(i,{hour:t}),new d),s=[Z(a,e.timeZone,"earlier"),Z(a,e.timeZone,"later")].filter((t=>ee(t,e.timeZone).day===a.day))[0],l=ie(ye(i,{hour:o}),new d),u=[Z(l,e.timeZone,"earlier"),Z(l,e.timeZone,"later")].filter((t=>ee(t,e.timeZone).day===l.day)).pop(),c=X(e)-e.offset,p=Math.floor(c/ue),f=c%ue;return c=_e(p,n,Math.floor(s/ue),Math.floor(u/ue),null==r?void 0:r.round)*ue+f,ie(ee(c,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Oe(e,t,n,r);case"era":case"year":case"month":case"day":return ie(ee(Z(xe(re(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){return function(e){let t=X(e)-e.offset;return new Date(t)}(this)}toString(){return`${$e(this)}${Xe(this.offset)}[${this.timeZone}]`}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-ae(e,this.timeZone).toDate().getTime()}constructor(...e){(0,r._)(this,et,{writable:!0,value:void 0});let[t,n,o,i,a]=Ve(e),s=e.shift(),l=e.shift();this.calendar=t,this.era=n,this.year=o,this.month=i,this.day=a,this.timeZone=s,this.offset=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,he(this)}}const nt=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],rt=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ot=[1867,1911,1925,1988,2018],it=["meiji","taisho","showa","heisei","reiwa"];function at(e){const t=nt.findIndex((([t,n,r])=>e.year<t||e.year===t&&e.month<n||e.year===t&&e.month===n&&e.day<r));return-1===t?nt.length-1:0===t?0:t-1}function st(e){let t=ot[it.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new qe(e.year+t,e.month,e.day)}class lt extends d{fromJulianDay(e){let t=super.fromJulianDay(e),n=at(t);return new qe(this,it[n],t.year-ot[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(st(e))}balanceDate(e){let t=st(e),n=at(t);it[n]!==e.era&&(e.era=it[n],e.year=t.year-ot[n]),this.constrainDate(e)}constrainDate(e){let t=it.indexOf(e.era),n=rt[t];if(null!=n){let[r,o,i]=n,a=r-ot[t];e.year=Math.max(1,Math.min(a,e.year)),e.year===a&&(e.month=Math.min(o,e.month),e.month===o&&(e.day=Math.min(i,e.day)))}if(1===e.year&&t>=0){let[,n,r]=nt[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return it}getYearsInEra(e){let t=it.indexOf(e.era),n=nt[t],r=nt[t+1];if(null==r)return 9999-n[0]+1;let o=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&o++,o}getDaysInMonth(e){return super.getDaysInMonth(st(e))}getMinimumMonthInYear(e){let t=ut(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=ut(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function ut(e){if(1===e.year){let t=it.indexOf(e.era);return nt[t]}}class ct extends d{fromJulianDay(e){let t=super.fromJulianDay(e),n=l(t.era,t.year);return new qe(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(dt(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(dt(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function dt(e){let[t,n]=u(e.year+-543);return new qe(t,n,e.month,e.day)}const pt=1911;function ft(e){return"minguo"===e.era?e.year+pt:1-e.year+pt}function ht(e){let t=e-pt;return t>0?["minguo",t]:["before_minguo",1-t]}class mt extends d{fromJulianDay(e){let t=super.fromJulianDay(e),n=l(t.era,t.year),[r,o]=ht(n);return new qe(this,r,o,t.month,t.day)}toJulianDay(e){return super.toJulianDay(gt(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=ht(ft(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(gt(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:9999-pt}constructor(...e){super(...e),this.identifier="roc"}}function gt(e){let[t,n]=u(ft(e));return new qe(t,n,e.month,e.day)}function vt(e,t,n){let r=e>0?e-474:e-473,o=i(r,2820)+474,a=t<=7?31*(t-1):30*(t-1)+6;return 1948320+1029983*Math.floor(r/2820)+365*(o-1)+Math.floor((31*o-5)/128)+a+n}class yt{fromJulianDay(e){let t=e-vt(475,1,1),n=Math.floor(t/1029983),r=i(t,1029983),o=474+2820*n+(1029982===r?2820:Math.floor((128*r+46878)/46751));o<=0&&o--;let a=e-vt(o,1,1)+1,s=a<=186?Math.ceil(a/31):Math.ceil((a-6)/31),l=e-vt(o,s,1)+1;return new qe(this,o,s,l)}toJulianDay(e){return vt(e.year,e.month,e.day)}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||function(e){let t=i(e>0?e-474:e-473,2820)+474;return i(31*(t+38),128)<31}(e.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class bt extends d{fromJulianDay(e){let t,n,r,o=super.fromJulianDay(e),i=o.year-78,l=e-a(o.era,o.year,1,1);if(l<80?(i--,t=s(o.year-1)?31:30,l+=t+155+90+10):(t=s(o.year)?31:30,l-=80),l<t)n=1,r=l+1;else{let e=l-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new qe(this,i,n,r)}toJulianDay(e){let t,n,r=e.year+78,[o,i]=u(r);return s(i)?(t=31,n=a(o,i,3,21)):(t=30,n=a(o,i,3,22)),1===e.month?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=30*(e.month-7)),n+=e.day-1,n)}getDaysInMonth(e){return 1===e.month&&s(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const Et=1948440,wt=1948439,St=1300,xt=1600,Ot=460322;function _t(e,t,n,r){return r+Math.ceil(29.5*(n-1))+354*(t-1)+Math.floor((3+11*t)/30)+e-1}function Tt(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+_t(t,r,1,1)))/29.5)+1),i=n-_t(t,r,o,1)+1;return new qe(e,r,o,i)}function Ct(e){return(14+11*e)%30<11}class It{fromJulianDay(e){return Tt(this,Et,e)}toJulianDay(e){return _t(Et,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&Ct(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Ct(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Pt extends It{fromJulianDay(e){return Tt(this,wt,e)}toJulianDay(e){return _t(wt,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let Mt,Nt;function Lt(e){return Ot+Nt[e-St]}function kt(e,t){let n=1<<11-(t-1);return 0==(Mt[e-St]&n)?29:30}function At(e,t){let n=Lt(e);for(let r=1;r<t;r++)n+=kt(e,r);return n}function Dt(e){return Nt[e+1-St]-Nt[e-St]}class Rt extends It{fromJulianDay(e){let t=e-Et,n=Lt(St),r=Lt(xt);if(t<n||t>r)return super.fromJulianDay(e);{let e=St-1,n=1,r=1;for(;r>0;){e++,r=t-Lt(e)+1;let o=Dt(e);if(r===o){n=12;break}if(r<o){let t=kt(e,n);for(n=1;r>t;)r-=t,n++,t=kt(e,n);break}}return new qe(this,e,n,t-At(e,n)+1)}}toJulianDay(e){return e.year<St||e.year>xt?super.toJulianDay(e):Et+At(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<St||e.year>xt?super.getDaysInMonth(e):kt(e.year,e.month)}getDaysInYear(e){return e.year<St||e.year>xt?super.getDaysInYear(e):Dt(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Mt||(Mt=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!Nt){Nt=new Uint32Array(xt-St+1);let e=0;for(let t=St;t<=xt;t++){Nt[t-St]=e;for(let n=1;n<=12;n++)e+=kt(t,n)}}}}const Ft=347997;function Bt(e){return i(7*e+1,19)<7}function jt(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=29*t+Math.floor(n/25920);return i(3*(r+1),7)<3&&(r+=1),r}function Ut(e){return jt(e)+function(e){let t=jt(e-1),n=jt(e);return jt(e+1)-n==356?2:n-t==382?1:0}(e)}function zt(e){return Ut(e+1)-Ut(e)}function Ht(e,t){if(t>=6&&!Bt(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=zt(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?Bt(e)?30:0:30}class Gt{fromJulianDay(e){let t=e-Ft,n=25920*t/765433,r=Math.floor((19*n+234)/235)+1,o=Ut(r),i=Math.floor(t-o);for(;i<1;)r--,o=Ut(r),i=Math.floor(t-o);let a=1,s=0;for(;s<i;)s+=Ht(r,a),a++;return a--,s-=Ht(r,a),new qe(this,r,a,i-s)}toJulianDay(e){let t=Ut(e.year);for(let n=1;n<e.month;n++)t+=Ht(e.year,n);return t+e.day+Ft}getDaysInMonth(e){return Ht(e.year,e.month)}getMonthsInYear(e){return Bt(e.year)?13:12}getDaysInYear(e){return zt(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(Bt(t.year)&&!Bt(e.year)&&t.month>6?e.month--:!Bt(t.year)&&Bt(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const $t=1723856,Xt=1824665,Wt=5500;function Vt(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Yt(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Vt(e,n,1,1))/30);return[n,r,t+1-Vt(e,n,r,1)]}function qt(e){return Math.floor(e%4/3)}function Kt(e,t){return t%13!=0?30:qt(e)+5}class Jt{fromJulianDay(e){let[t,n,r]=Yt($t,e),o="AM";return t<=0&&(o="AA",t+=Wt),new qe(this,o,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=Wt),Vt($t,t,e.month,e.day)}getDaysInMonth(e){return Kt(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+qt(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Zt extends Jt{fromJulianDay(e){let[t,n,r]=Yt($t,e);return t+=Wt,new qe(this,"AA",t,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class Qt extends Jt{fromJulianDay(e){let[t,n,r]=Yt(Xt,e),o="CE";return t<=0&&(o="BCE",t=1-t),new qe(this,o,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Vt(Xt,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),Kt(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function en(e){switch(e){case"buddhist":return new ct;case"ethiopic":return new Jt;case"ethioaa":return new Zt;case"coptic":return new Qt;case"hebrew":return new Gt;case"indian":return new bt;case"islamic-civil":return new It;case"islamic-tbla":return new Pt;case"islamic-umalqura":return new Rt;case"japanese":return new lt;case"persian":return new yt;case"roc":return new mt;default:return new d}}let tn=new Map;class nn{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==sn&&(sn="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),sn&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=on(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===r&&23===o)return"h23";if(24===r&&23===o)return"h24";if(0===r&&11===o)return"h11";if(12===r&&11===o)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=on(e,t),this.options=t}}const rn={true:{ja:"h11"},false:{}};function on(e,t={}){if("boolean"==typeof t.hour12&&(null==an&&(an="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),an)){t={...t};let n=rn[String(t.hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:r,delete t.hour12}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(tn.has(n))return tn.get(n);let r=new Intl.DateTimeFormat(e,t);return tn.set(n,r),r}let an=null,sn=null},3848:(e,t,n)=>{var r=n(2250);function o(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}o(e.exports,"MessageDictionary",(()=>i)),o(e.exports,"MessageFormatter",(()=>a));class i{getStringForLocale(e,t){let n=this.messages[t];n||(n=function(e,t,n="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(t,this.messages,this.defaultLocale),this.messages[t]=n);let r=n[e];if(!r)throw new Error(`Could not find intl message ${e} in ${t} locale`);return r}constructor(e,t="en-US"){this.messages={...e},this.defaultLocale=t}}class a{format(e,t){let n=this.cache[e];if(!n){let t=this.messages.getStringForLocale(e,this.locale);if(!t)throw new Error(`Could not find intl message ${e} in ${this.locale} locale`);n=new((o=r)&&o.__esModule?o.default:o)(t,this.locale),this.cache[e]=n}var o;let i;return t&&(i=Object.keys(t).reduce(((e,n)=>(e[n]=null!=t[n]&&t[n],e)),{})),n.format(i)}constructor(e,t){this.locale=e,this.messages=t,this.cache={}}}},2412:e=>{function t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}t(e.exports,"NumberFormatter",(()=>a)),t(e.exports,"NumberParser",(()=>u));let n=new Map,r=!1;try{r="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(e){}let o=!1;try{o="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const i={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class a{format(e){let t="";if(t=r||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),o=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!==[...o].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(o,"+").replace("!!!",r)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!o){var n;let{unit:e,unitDisplay:r="short",locale:o}=this.resolvedOptions();if(!e)return t;let a=null===(n=i[e])||void 0===n?void 0:n[r];t+=a[o]||a.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return r||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),o||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),"unit"===t.style&&!o){var a;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(a=i[e])||void 0===a?void 0:a[n]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:"decimal"}}let s=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(n.has(s))return n.get(s);let l=new Intl.NumberFormat(e,t);return n.set(s,l),l}(e,t),this.options=t}}const s=new RegExp("^.*\\(.*\\).*$"),l=["latn","arab","hanidec"];class u{parse(e){return d(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return d(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return d(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const c=new Map;function d(e,t,n){let r=p(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n))for(let o of l)if(o!==r.options.numberingSystem){let r=p(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(r.isValidPartialNumber(n))return r}return r}function p(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),r=c.get(n);return r||(r=new f(e,t),c.set(n,r)),r}class f{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=g(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-");t=t.replace("-","");let n=t.indexOf(".");-1===n&&(n=t.length),t=t.replace(".",""),t=n-2==0?`0.${t}`:n-2==-1?`0.0${t}`:n-2==-2?"0.00":`${t.slice(0,n-2)}.${t.slice(n-2)}`,e>-1&&(t=`-${t}`)}let n=t?+t:NaN;if(isNaN(n))return NaN;if("percent"===this.options.style){let e={...this.options,style:"decimal",minimumFractionDigits:Math.min(this.options.minimumFractionDigits+2,20),maximumFractionDigits:Math.min(this.options.maximumFractionDigits+2,20)};return new u(this.locale,e).parse(new a(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&s.test(e)&&(n*=-1),n}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=g(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&(e=g(e,".",String.fromCharCode(8239))),e}isValidPartialNumber(e,t=-1/0,n=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),!(this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits||(this.symbols.group&&(e=g(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0!==e.length))}constructor(e,t={}){var n,r;this.locale=e,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,n,r){var o,i,a,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),u=l.formatToParts(-10000.111),c=l.formatToParts(10000.111),d=m.map((e=>l.formatToParts(e)));var p;let f=null!==(p=null===(o=u.find((e=>"minusSign"===e.type)))||void 0===o?void 0:o.value)&&void 0!==p?p:"-",g=null===(i=c.find((e=>"plusSign"===e.type)))||void 0===i?void 0:i.value;g||"exceptZero"!==(null==r?void 0:r.signDisplay)&&"always"!==(null==r?void 0:r.signDisplay)||(g="+");let y=null===(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find((e=>"decimal"===e.type)))||void 0===a?void 0:a.value,b=null===(s=u.find((e=>"group"===e.type)))||void 0===s?void 0:s.value,E=u.filter((e=>!h.has(e.type))).map((e=>v(e.value))),w=d.flatMap((e=>e.filter((e=>!h.has(e.type))).map((e=>v(e.value))))),S=[...new Set([...E,...w])].sort(((e,t)=>t.length-e.length)),x=0===S.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${S.join("|")}|[\\p{White_Space}]`,"gu"),O=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),_=new Map(O.map(((e,t)=>[e,t])));return{minusSign:f,plusSign:g,decimal:y,group:b,literals:x,numeral:new RegExp(`[${O.join("")}]`,"g"),index:e=>String(_.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!==(n=this.options.minimumFractionDigits)&&void 0!==n?n:0)>18||(null!==(r=this.options.maximumFractionDigits)&&void 0!==r?r:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const h=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),m=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function g(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function v(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},1332:e=>{function t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}t(e.exports,"LocalizedStringDictionary",(()=>i)),t(e.exports,"LocalizedStringFormatter",(()=>l));const n=Symbol.for("react-aria.i18n.locale"),r=Symbol.for("react-aria.i18n.strings");let o;class i{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw new Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[n];if(void 0===o){let e=window[r];if(!e)return null;o={};for(let n in e)o[n]=new i({[t]:e[n]},t)}let a=null==o?void 0:o[e];if(!a)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return a}constructor(e,t="en-US"){this.strings={...e},this.defaultLocale=t}}const a=new Map,s=new Map;class l{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let o=this.locale+":"+n,i=a.get(o);return i||(i=new Intl.PluralRules(this.locale,{type:n}),a.set(o,i)),r=t[i.select(e)]||t.other,"function"==typeof r?r():r}number(e){let t=s.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),s.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}},1438:(e,t,n)=>{var r=n(91),o=n(9155),i=n(7351),a=n(8355);function s(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function l(e){return e&&e.__esModule?e.default:e}function u(e){const t=(0,r.getOwnerDocument)(e);if("virtual"===(0,i.getInteractionModality)()){let n=t.activeElement;(0,r.runAfterTransition)((()=>{t.activeElement===n&&e.isConnected&&(0,r.focusWithoutScrolling)(e)}))}else(0,r.focusWithoutScrolling)(e)}function c(e,t){return"#comment"!==e.nodeName&&function(e){const t=(0,r.getOwnerWindow)(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:o}=e.style,i="none"!==n&&"hidden"!==o&&"collapse"!==o;if(i){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:r}=t(e);i="none"!==n&&"hidden"!==r&&"collapse"!==r}return i}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||c(e.parentElement,e))}s(e.exports,"FocusScope",(()=>f)),s(e.exports,"useFocusManager",(()=>h)),s(e.exports,"getFocusableTreeWalker",(()=>C)),s(e.exports,"createFocusManager",(()=>I)),s(e.exports,"isElementInChildOfActiveScope",(()=>x)),s(e.exports,"FocusRing",(()=>A)),s(e.exports,"FocusableProvider",(()=>F)),s(e.exports,"useFocusable",(()=>B)),s(e.exports,"useFocusRing",(()=>k)),s(e.exports,"focusSafely",(()=>u)),s(e.exports,"useHasTabbableChild",(()=>j));const d=l(o).createContext(null);let p=null;function f(e){let{children:t,contain:n,restoreFocus:i,autoFocus:a}=e,s=(0,o.useRef)(null),u=(0,o.useRef)(null),c=(0,o.useRef)([]),{parentNode:f}=(0,o.useContext)(d)||{},h=(0,o.useMemo)((()=>new N({scopeRef:c})),[c]);(0,r.useLayoutEffect)((()=>{let e=f||L.root;if(L.getTreeNode(e.scopeRef)&&p&&!O(p,e.scopeRef)){let t=L.getTreeNode(p);t&&(e=t)}e.addChild(h),L.addNode(h)}),[h,f]),(0,r.useLayoutEffect)((()=>{let e=L.getTreeNode(c);e&&(e.contain=!!n)}),[n]),(0,r.useLayoutEffect)((()=>{var e;let t=null===(e=s.current)||void 0===e?void 0:e.nextSibling,n=[];for(;t&&t!==u.current;)n.push(t),t=t.nextSibling;c.current=n}),[t]),function(e,t,n){(0,r.useLayoutEffect)((()=>{if(t||n)return;let o=e.current;const i=(0,r.getOwnerDocument)(o?o[0]:void 0);let a=t=>{let n=t.target;w(n,e.current)?p=e:E(n)||(p=null)};return i.addEventListener("focusin",a,!1),null==o||o.forEach((e=>e.addEventListener("focusin",a,!1))),()=>{i.removeEventListener("focusin",a,!1),null==o||o.forEach((e=>e.removeEventListener("focusin",a,!1)))}}),[e,t,n])}(c,i,n),function(e,t){let n=(0,o.useRef)(),i=(0,o.useRef)();(0,r.useLayoutEffect)((()=>{let o=e.current;if(!t)return void(i.current&&(cancelAnimationFrame(i.current),i.current=void 0));const a=(0,r.getOwnerDocument)(o?o[0]:void 0);let s=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!b(e))return;let n=a.activeElement,r=e.current;if(!r||!w(n,r))return;let o=