diff --git a/analytics-provider/src/main/java/org/digma/intellij/plugin/analytics/AnalyticsProvider.java b/analytics-provider/src/main/java/org/digma/intellij/plugin/analytics/AnalyticsProvider.java index a8b99d054..42bba4e75 100644 --- a/analytics-provider/src/main/java/org/digma/intellij/plugin/analytics/AnalyticsProvider.java +++ b/analytics-provider/src/main/java/org/digma/intellij/plugin/analytics/AnalyticsProvider.java @@ -70,12 +70,18 @@ public interface AnalyticsProvider extends Closeable { String getServices(String environment); + String getEndpoints(String service, Map queryParams); + + String getEndpointIssues(String queryParams); + String getAssetsReportStats(Map queryParams); String getIssuesReportStats(Map queryParams); String getServiceReport(String queryParams); + String getEnvironmentsByService(String service); + String getNotifications(NotificationsRequest notificationsRequest); void setReadNotificationsTime(SetReadNotificationsRequest setReadNotificationsRequest); diff --git a/analytics-provider/src/main/java/org/digma/intellij/plugin/analytics/RestAnalyticsProvider.java b/analytics-provider/src/main/java/org/digma/intellij/plugin/analytics/RestAnalyticsProvider.java index bce218e9a..1410614ff 100644 --- a/analytics-provider/src/main/java/org/digma/intellij/plugin/analytics/RestAnalyticsProvider.java +++ b/analytics-provider/src/main/java/org/digma/intellij/plugin/analytics/RestAnalyticsProvider.java @@ -233,6 +233,17 @@ public String getServices(String environment) { return execute(() -> client.analyticsProvider.getServices(environment)); } + @Override + public String getEndpoints(String service, Map queryParams) { + return execute(() -> client.analyticsProvider.getEndpoints(service, queryParams)); + } + + @Override + public String getEndpointIssues(String queryParams) { + return execute(() -> client.analyticsProvider.getEndpointIssues(queryParams)); + } + + @Override public String getIssuesReportStats(Map queryParams) { return execute(() -> client.analyticsProvider.getIssuesReportStats(queryParams)); @@ -243,6 +254,11 @@ public String getServiceReport(String queryParams) { return execute(() -> client.analyticsProvider.getServiceReport(queryParams)); } + @Override + public String getEnvironmentsByService(String service) { + return execute(() -> client.analyticsProvider.getEnvironmentsByService(service)); + } + @Override public String getAssetsReportStats(Map queryParams) { return execute(() -> client.analyticsProvider.getAssetsReportStats(queryParams)); @@ -887,6 +903,13 @@ Call setInsightCustomStartTime( @POST("reports/services/issues") Call getServiceReport(@Body String filters); + @Headers({ + "Accept: application/+json", + "Content-Type:application/json" + }) + @GET("services/{service}/environments") + Call getEnvironmentsByService(@Path("service") String service); + @Headers({ "Accept: application/+json", @@ -895,6 +918,19 @@ Call setInsightCustomStartTime( @GET("reports/assets/statistics") Call getAssetsReportStats(@QueryMap Map fields); + @Headers({ + "Accept: application/+json", + "Content-Type:application/json" + }) + @GET("services/{service}/endpoints") + Call getEndpoints(@Path("service") String service, @QueryMap Map fields); + + @Headers({ + "Accept: application/+json", + "Content-Type:application/json" + }) + @POST("reports/endpoints/issues") + Call getEndpointIssues(@Body String filters); @GET("services/getServices") Call getServices(@Query("environment") String environment); diff --git a/ide-common/src/main/java/org/digma/intellij/plugin/analytics/AnalyticsService.java b/ide-common/src/main/java/org/digma/intellij/plugin/analytics/AnalyticsService.java index 806d4c81f..e0de18727 100644 --- a/ide-common/src/main/java/org/digma/intellij/plugin/analytics/AnalyticsService.java +++ b/ide-common/src/main/java/org/digma/intellij/plugin/analytics/AnalyticsService.java @@ -320,6 +320,16 @@ public String getServices(String environment) throws AnalyticsServiceException { analyticsProviderProxy.getServices(environment)); } + public String getEndpoints(String service, @NotNull Map queryParams) throws AnalyticsServiceException { + return executeCatching(() -> + analyticsProviderProxy.getEndpoints(service, queryParams)); + } + + public String getEndpointIssues(String queryParams) throws AnalyticsServiceException { + return executeCatching(() -> + analyticsProviderProxy.getEndpointIssues(queryParams)); + } + public String getAssetsReportStats(@NotNull Map queryParams) throws AnalyticsServiceException { return executeCatching(() -> analyticsProviderProxy.getAssetsReportStats(queryParams)); @@ -335,6 +345,11 @@ public String getServiceReport(@NotNull String queryParams) throws AnalyticsSer analyticsProviderProxy.getServiceReport(queryParams)); } + public String getEnvironmentsByService(String service) throws AnalyticsServiceException { + return executeCatching(() -> + analyticsProviderProxy.getEnvironmentsByService(service)); + } + public void resetThrottlingStatus() throws AnalyticsServiceException { executeCatching(() -> { analyticsProviderProxy.resetThrottlingStatus(); @@ -342,7 +357,6 @@ public void resetThrottlingStatus() throws AnalyticsServiceException { }); } - // return JSON as string (type LatestTestsOfSpanResponse) public String getLatestTestsOfSpan(TestsScopeRequest req, FilterForLatestTests filter, int pageSize) throws AnalyticsServiceException { return executeCatching(() -> analyticsProviderProxy.getLatestTestsOfSpan( diff --git a/src/main/java/org/digma/intellij/plugin/dashboard/DashboardMessageRouterHandler.java b/src/main/java/org/digma/intellij/plugin/dashboard/DashboardMessageRouterHandler.java index 6a490f3f7..f307429fb 100644 --- a/src/main/java/org/digma/intellij/plugin/dashboard/DashboardMessageRouterHandler.java +++ b/src/main/java/org/digma/intellij/plugin/dashboard/DashboardMessageRouterHandler.java @@ -58,6 +58,15 @@ public boolean doOnQuery(@NotNull Project project, @NotNull CefBrowser browser, case "DASHBOARD/GET_METRICS_REPORT_DATA" -> { pushMetricsData(browser, requestJsonNode); } + case "DASHBOARD/GET_SERVICE_ENDPOINTS" -> { + pushEndpoints(browser, requestJsonNode); + } + case "DASHBOARD/GET_ENDPOINTS_ISSUES" -> { + pushEndpointsIssues(browser, requestJsonNode); + } + case "DASHBOARD/GET_SERVICE_ENVIRONMENTS" -> { + pushEnvironmentsData(browser, requestJsonNode); + } case "GLOBAL/GET_BACKEND_INFO" -> { //do nothing, dashboard app sends that for some reason, but it's not necessary } @@ -82,10 +91,40 @@ private void pushServices(CefBrowser browser, JsonNode requestJsonNode) { try { var payload = AnalyticsService.getInstance(project).getServices(env); var message = new SetServicesMessage(payload); - Log.log(logger::trace, project, "sending DASHBOARD/GET_SERVICES message"); + Log.log(logger::trace, project, "sending DASHBOARD/SET_SERVICES message"); + serializeAndExecuteWindowPostMessageJavaScript(browser, message); + } catch (AnalyticsServiceException ex) { + Log.log(logger::trace, getProject(), "sending DASHBOARD/SET_SERVICES message with error"); + } + } + + private void pushEndpoints(CefBrowser browser, JsonNode requestJsonNode) { + var project = getProject(); + Log.log(logger::trace, project, "pushEndpoints called"); + var requestPayload = getPayloadFromRequestNonNull(requestJsonNode); + var backendQueryParams = getMapFromNode(requestPayload, getObjectMapper()); + var service = requestPayload.get("service").textValue(); + try { + var payload = AnalyticsService.getInstance(project).getEndpoints(service, backendQueryParams); + var message = new SetEndpointsMessage(payload); + Log.log(logger::trace, project, "sending DASHBOARD/SET_SERVICE_ENDPOINTS message"); + serializeAndExecuteWindowPostMessageJavaScript(browser, message); + } catch (AnalyticsServiceException ex) { + Log.log(logger::trace, getProject(), "sending DASHBOARD/SET_SERVICE_ENDPOINTS message with error"); + } + } + + private void pushEndpointsIssues(CefBrowser browser, JsonNode requestJsonNode) { + var project = getProject(); + Log.log(logger::trace, project, "pushEndpointsIssues called"); + var requestPayload = getPayloadFromRequestNonNull(requestJsonNode); + try { + var payload = AnalyticsService.getInstance(project).getEndpointIssues(requestPayload.toString()); + var message = new SetEndpointIssuesMessage(payload); + Log.log(logger::trace, project, "sending DASHBOARD/SET_ENDPOINTS_ISSUES message"); serializeAndExecuteWindowPostMessageJavaScript(browser, message); } catch (AnalyticsServiceException ex) { - Log.log(logger::trace, getProject(), "sending DASHBOARD/GET_SERVICES message with error"); + Log.log(logger::trace, getProject(), "sending DASHBOARD/SET_ENDPOINTS_ISSUES message with error"); } } @@ -97,10 +136,10 @@ private void pushAssetsReportStats(CefBrowser browser, JsonNode requestJsonNode) try { var payload = AnalyticsService.getInstance(project).getAssetsReportStats(backendQueryParams); var message = new SetAssetsReportStatsMessage(payload); - Log.log(logger::trace, project, "sending DASHBOARD/GET_REPORT_ASSETS_STATS message"); + Log.log(logger::trace, project, "sending DASHBOARD/SET_REPORT_ASSETS_STATS message"); serializeAndExecuteWindowPostMessageJavaScript(browser, message); } catch (AnalyticsServiceException ex) { - Log.log(logger::trace, getProject(), "sending DASHBOARD/GET_REPORT_ASSETS_STATS message with error"); + Log.log(logger::trace, getProject(), "sending DASHBOARD/SET_REPORT_ASSETS_STATS message with error"); } } @@ -112,10 +151,10 @@ private void pushIssuesReportStats(CefBrowser browser, JsonNode requestJsonNode) try { var payload = AnalyticsService.getInstance(project).getIssuesReportStats(backendQueryParams); var message = new SetIssuesReportStatsMessage(payload); - Log.log(logger::trace, project, "sending DASHBOARD/GET_REPORT_ISSUES_STATS message"); + Log.log(logger::trace, project, "sending DASHBOARD/SET_REPORT_ISSUES_STATS message"); serializeAndExecuteWindowPostMessageJavaScript(browser, message); } catch (AnalyticsServiceException ex) { - Log.log(logger::trace, getProject(), "sending DASHBOARD/GET_REPORT_ISSUES_STATS message with error"); + Log.log(logger::trace, getProject(), "sending DASHBOARD/SET_REPORT_ISSUES_STATS message with error"); } } @@ -126,10 +165,25 @@ private void pushMetricsData(CefBrowser browser, JsonNode requestJsonNode) { try { var payload = AnalyticsService.getInstance(project).getServiceReport(requestPayload.toString()); var message = new SetMetricsReportMessage(payload); - Log.log(logger::trace, project, "sending DASHBOARD/GET_METRICS_REPORT_DATA message"); + Log.log(logger::trace, project, "sending DASHBOARD/SET_METRICS_REPORT_DATA message"); + serializeAndExecuteWindowPostMessageJavaScript(browser, message); + } catch (AnalyticsServiceException ex) { + Log.log(logger::trace, getProject(), "sending DASHBOARD/SET_METRICS_REPORT_DATA message with error"); + } + } + + private void pushEnvironmentsData(CefBrowser browser, JsonNode requestJsonNode) { + var project = getProject(); + var requestPayload = getPayloadFromRequestNonNull(requestJsonNode); + var service = requestPayload.get("service").textValue(); + Log.log(logger::trace, project, "pushEnvironmentsData called"); + try { + var payload = AnalyticsService.getInstance(project).getEnvironmentsByService(service); + var message = new SetEnvironmentsMessage(payload); + Log.log(logger::trace, project, "sending DASHBOARD/SET_SERVICE_ENVIRONMENTS message"); serializeAndExecuteWindowPostMessageJavaScript(browser, message); } catch (AnalyticsServiceException ex) { - Log.log(logger::trace, getProject(), "sending DASHBOARD/GET_METRICS_REPORT_DATA message with error"); + Log.log(logger::trace, getProject(), "sending DASHBOARD/SET_SERVICE_ENVIRONMENTS message with error"); } } diff --git a/src/main/kotlin/org/digma/intellij/plugin/ui/dashboard/reports/model/SetEndpointIssuesMessage.kt b/src/main/kotlin/org/digma/intellij/plugin/ui/dashboard/reports/model/SetEndpointIssuesMessage.kt new file mode 100644 index 000000000..fc67c4522 --- /dev/null +++ b/src/main/kotlin/org/digma/intellij/plugin/ui/dashboard/reports/model/SetEndpointIssuesMessage.kt @@ -0,0 +1,9 @@ +package org.digma.intellij.plugin.ui.dashboard.reports.model + +import com.fasterxml.jackson.annotation.JsonRawValue +import org.digma.intellij.plugin.ui.jcef.JCEFGlobalConstants + +data class SetEndpointIssuesMessage(@JsonRawValue val payload: String) { + val type = JCEFGlobalConstants.REQUEST_MESSAGE_TYPE + val action = "DASHBOARD/SET_ENDPOINTS_ISSUES" +} \ No newline at end of file diff --git a/src/main/kotlin/org/digma/intellij/plugin/ui/dashboard/reports/model/SetEndpointsMessage.kt b/src/main/kotlin/org/digma/intellij/plugin/ui/dashboard/reports/model/SetEndpointsMessage.kt new file mode 100644 index 000000000..2c17168d3 --- /dev/null +++ b/src/main/kotlin/org/digma/intellij/plugin/ui/dashboard/reports/model/SetEndpointsMessage.kt @@ -0,0 +1,9 @@ +package org.digma.intellij.plugin.ui.dashboard.reports.model + +import com.fasterxml.jackson.annotation.JsonRawValue +import org.digma.intellij.plugin.ui.jcef.JCEFGlobalConstants + +data class SetEndpointsMessage(@JsonRawValue val payload: String) { + val type = JCEFGlobalConstants.REQUEST_MESSAGE_TYPE + val action = "DASHBOARD/SET_SERVICE_ENDPOINTS" +} \ No newline at end of file diff --git a/src/main/kotlin/org/digma/intellij/plugin/ui/dashboard/reports/model/SetEnvironmentsMessage.kt b/src/main/kotlin/org/digma/intellij/plugin/ui/dashboard/reports/model/SetEnvironmentsMessage.kt new file mode 100644 index 000000000..c300e28ef --- /dev/null +++ b/src/main/kotlin/org/digma/intellij/plugin/ui/dashboard/reports/model/SetEnvironmentsMessage.kt @@ -0,0 +1,9 @@ +package org.digma.intellij.plugin.ui.dashboard.reports.model + +import com.fasterxml.jackson.annotation.JsonRawValue +import org.digma.intellij.plugin.ui.jcef.JCEFGlobalConstants + +data class SetEnvironmentsMessage(@JsonRawValue val payload: String) { + val type = JCEFGlobalConstants.REQUEST_MESSAGE_TYPE + val action = "DASHBOARD/SET_SERVICE_ENVIRONMENTS" +} \ No newline at end of file diff --git a/src/main/resources/webview/dashboard/index.js b/src/main/resources/webview/dashboard/index.js index 3920b55a3..5c281aee0 100644 --- a/src/main/resources/webview/dashboard/index.js +++ b/src/main/resources/webview/dashboard/index.js @@ -1,5 +1,5 @@ /*! For license information please see index.js.LICENSE.txt */ -(()=>{var e,t,n={97654:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FloatingArrow:()=>ut,FloatingDelayGroup:()=>Ot,FloatingFocusManager:()=>Jt,FloatingList:()=>nn,FloatingNode:()=>mt,FloatingOverlay:()=>an,FloatingPortal:()=>Qt,FloatingTree:()=>yt,arrow:()=>Se,autoPlacement:()=>R,autoUpdate:()=>me,computePosition:()=>ye,detectOverflow:()=>x,flip:()=>I,getOverflowAncestors:()=>ne,hide:()=>M,inline:()=>N,inner:()=>Gn,limitShift:()=>F,offset:()=>j,platform:()=>ge,safePolygon:()=>Yn,shift:()=>L,size:()=>B,useClick:()=>un,useClientPoint:()=>pn,useDelayGroup:()=>Ct,useDelayGroupContext:()=>Tt,useDismiss:()=>yn,useFloating:()=>vn,useFloatingNodeId:()=>gt,useFloatingParentNodeId:()=>pt,useFloatingPortalNode:()=>Kt,useFloatingTree:()=>ht,useFocus:()=>bn,useHover:()=>Et,useId:()=>st,useInnerOffset:()=>Vn,useInteractions:()=>Sn,useListItem:()=>rn,useListNavigation:()=>Nn,useMergeRefs:()=>jn,useRole:()=>Ln,useTransitionStatus:()=>$n,useTransitionStyles:()=>Un,useTypeahead:()=>Hn});const r=["top","right","bottom","left"],o=["start","end"],i=r.reduce(((e,t)=>e.concat(t,t+"-"+o[0],t+"-"+o[1])),[]),a=Math.min,l=Math.max,s=Math.round,u=Math.floor,c=e=>({x:e,y:e}),f={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function p(e,t,n){return l(e,a(t,n))}function h(e,t){return"function"==typeof e?e(t):e}function g(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function y(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function b(e){return["top","bottom"].includes(g(e))?"y":"x"}function w(e){return y(b(e))}function S(e,t,n){void 0===n&&(n=!1);const r=m(e),o=w(e),i=v(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=_(a)),[a,_(a)]}function E(e){return e.replace(/start|end/g,(e=>d[e]))}function _(e){return e.replace(/left|right|bottom|top/g,(e=>f[e]))}function T(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function O(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function C(e,t,n){let{reference:r,floating:o}=e;const i=b(t),a=w(t),l=v(a),s=g(t),u="y"===i,c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(m(t)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1)}return p}async function x(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=h(t,e),g=T(p),m=l[d?"floating"===f?"reference":"floating":f],y=O(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===f?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},S=O(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:s}):v);return{top:(y.top-S.top+g.top)/w.y,bottom:(S.bottom-y.bottom+g.bottom)/w.y,left:(y.left-S.left+g.left)/w.x,right:(S.right-y.right+g.right)/w.x}}const A=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:s}=t,{element:u,padding:c=0}=h(e,t)||{};if(null==u)return{};const f=T(c),d={x:n,y:r},g=w(o),y=v(g),b=await l.getDimensions(u),S="y"===g,E=S?"top":"left",_=S?"bottom":"right",O=S?"clientHeight":"clientWidth",C=i.reference[y]+i.reference[g]-d[g]-i.floating[y],x=d[g]-i.reference[g],A=await(null==l.getOffsetParent?void 0:l.getOffsetParent(u));let R=A?A[O]:0;R&&await(null==l.isElement?void 0:l.isElement(A))||(R=s.floating[O]||i.floating[y]);const I=C/2-x/2,k=R/2-b[y]/2-1,P=a(f[E],k),M=a(f[_],k),D=P,N=R-b[y]-M,j=R/2-b[y]/2+I,L=p(D,j,N),F=null!=m(o)&&j!=L&&i.reference[y]/2-(jm(t)===e)),...n.filter((t=>m(t)!==e))]:n.filter((e=>g(e)===e))).filter((n=>!e||m(n)===e||!!t&&E(n)!==n))}(d||null,y,p):p,w=await x(t,v),_=(null==(n=l.autoPlacement)?void 0:n.index)||0,T=b[_];if(null==T)return{};const O=S(T,a,await(null==u.isRTL?void 0:u.isRTL(c.floating)));if(s!==T)return{reset:{placement:b[0]}};const C=[w[g(T)],w[O[0]],w[O[1]]],A=[...(null==(r=l.autoPlacement)?void 0:r.overflows)||[],{placement:T,overflows:C}],R=b[_+1];if(R)return{data:{index:_+1,overflows:A},reset:{placement:R}};const I=A.map((e=>{const t=m(e.placement);return[e.placement,t&&f?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),k=(null==(o=I.filter((e=>e[2].slice(0,m(e[0])?2:3).every((e=>e<=0))))[0])?void 0:o[0])||I[0][0];return k!==s?{data:{index:_+1,overflows:A},reset:{placement:k}}:{}}}},I=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:s}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...v}=h(e,t),b=g(r),w=g(a)===a,T=await(null==l.isRTL?void 0:l.isRTL(s.floating)),O=f||(w||!y?[_(a)]:function(e){const t=_(e);return[E(e),t,E(t)]}(a));f||"none"===p||O.push(...function(e,t,n,r){const o=m(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(g(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(E)))),i}(a,y,p,T));const C=[a,...O],A=await x(t,v),R=[];let I=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&R.push(A[b]),c){const e=S(r,i,T);R.push(A[e[0]],A[e[1]])}if(I=[...I,{placement:r,overflows:R}],!R.every((e=>e<=0))){var k,P;const e=((null==(k=o.flip)?void 0:k.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(P=I.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(d){case"bestFit":{var M;const e=null==(M=I.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function k(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function P(e){return r.some((t=>e[t]>=0))}const M=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=h(e,t);switch(r){case"referenceHidden":{const e=k(await x(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:P(e)}}}case"escaped":{const e=k(await x(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:P(e)}}}default:return{}}}}};function D(e){const t=a(...e.map((e=>e.left))),n=a(...e.map((e=>e.top)));return{x:t,y:n,width:l(...e.map((e=>e.right)))-t,height:l(...e.map((e=>e.bottom)))-n}}const N=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:i,strategy:s}=t,{padding:u=2,x:c,y:f}=h(e,t),d=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(r.reference))||[]),p=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let r=null;for(let e=0;er.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map((e=>O(D(e))))}(d),m=O(D(d)),y=T(u),v=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&p[0].left>p[1].right&&null!=c&&null!=f)return p.find((e=>c>e.left-y.left&&ce.top-y.top&&f=2){if("y"===b(n)){const e=p[0],t=p[p.length-1],r="top"===g(n),o=e.top,i=t.bottom,a=r?e.left:t.left,l=r?e.right:t.right;return{top:o,bottom:i,left:a,right:l,width:l-a,height:i-o,x:a,y:o}}const e="left"===g(n),t=l(...p.map((e=>e.right))),r=a(...p.map((e=>e.left))),o=p.filter((n=>e?n.left===r:n.right===t)),i=o[0].top,s=o[o.length-1].bottom;return{top:i,bottom:s,left:r,right:t,width:t-r,height:s-i,x:r,y:i}}return m}},floating:r.floating,strategy:s});return o.reference.x!==v.reference.x||o.reference.y!==v.reference.y||o.reference.width!==v.reference.width||o.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},j=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=g(n),l=m(n),s="y"===b(n),u=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,f=h(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof y&&(p="end"===l?-1*y:y),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},L=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=h(e,t),u={x:n,y:r},c=await x(t,s),f=b(g(o)),d=y(f);let m=u[d],v=u[f];if(i){const e="y"===d?"bottom":"right";m=p(m+c["y"===d?"top":"left"],m,m-c[e])}if(a){const e="y"===f?"bottom":"right";v=p(v+c["y"===f?"top":"left"],v,v-c[e])}const w=l.fn({...t,[d]:m,[f]:v});return{...w,data:{x:w.x-n,y:w.y-r}}}}},F=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=h(e,t),c={x:n,y:r},f=b(o),d=y(f);let p=c[d],m=c[f];const v=h(l,t),w="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+w.mainAxis,n=i.reference[d]+i.reference[e]-w.mainAxis;pn&&(p=n)}if(u){var S,E;const e="y"===d?"width":"height",t=["top","left"].includes(g(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(S=a.offset)?void 0:S[f])||0)+(t?0:w.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(E=a.offset)?void 0:E[f])||0)-(t?w.crossAxis:0);mr&&(m=r)}return{[d]:p,[f]:m}}}},B=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...u}=h(e,t),c=await x(t,u),f=g(n),d=m(n),p="y"===b(n),{width:y,height:v}=r.floating;let w,S;"top"===f||"bottom"===f?(w=f,S=d===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(S=f,w="end"===d?"top":"bottom");const E=v-c[w],_=y-c[S],T=!t.middlewareData.shift;let O=E,C=_;if(p){const e=y-c.left-c.right;C=d||T?a(_,e):e}else{const e=v-c.top-c.bottom;O=d||T?a(E,e):e}if(T&&!d){const e=l(c.left,0),t=l(c.right,0),n=l(c.top,0),r=l(c.bottom,0);p?C=y-2*(0!==e||0!==t?e+t:l(c.left,c.right)):O=v-2*(0!==n||0!==r?n+r:l(c.top,c.bottom))}await s({...t,availableWidth:C,availableHeight:O});const A=await o.getDimensions(i.floating);return y!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function $(e){return z(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function H(e){var t;return null==(t=(z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function z(e){return e instanceof Node||e instanceof U(e).Node}function G(e){return e instanceof Element||e instanceof U(e).Element}function V(e){return e instanceof HTMLElement||e instanceof U(e).HTMLElement}function W(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof U(e).ShadowRoot)}function Y(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function q(e){return["table","td","th"].includes($(e))}function K(e){const t=Q(),n=Z(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Q(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function X(e){return["html","body","#document"].includes($(e))}function Z(e){return U(e).getComputedStyle(e)}function J(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ee(e){if("html"===$(e))return e;const t=e.assignedSlot||e.parentNode||W(e)&&e.host||H(e);return W(t)?t.host:t}function te(e){const t=ee(e);return X(t)?e.ownerDocument?e.ownerDocument.body:e.body:V(t)&&Y(t)?t:te(t)}function ne(e,t){var n;void 0===t&&(t=[]);const r=te(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=U(r);return o?t.concat(i,i.visualViewport||[],Y(r)?r:[]):t.concat(r,ne(r))}function re(e){const t=Z(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=V(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=s(n)!==i||s(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function oe(e){return G(e)?e:e.contextElement}function ie(e){const t=oe(e);if(!V(t))return c(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=re(t);let a=(i?s(n.width):n.width)/r,l=(i?s(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const ae=c(0);function le(e){const t=U(e);return Q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ae}function se(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=oe(e);let a=c(1);t&&(r?G(r)&&(a=ie(r)):a=ie(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==U(e))&&t}(i,n,r)?le(i):c(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(i){const e=U(i),t=r&&G(r)?U(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=ie(n),t=n.getBoundingClientRect(),r=Z(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,f*=e.x,d*=e.y,s+=o,u+=i,n=U(n).frameElement}}return O({width:f,height:d,x:s,y:u})}function ue(e){return se(H(e)).left+J(e).scrollLeft}function ce(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=U(e),r=H(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=Q();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=H(e),n=J(e),r=e.ownerDocument.body,o=l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ue(e);const s=-n.scrollTop;return"rtl"===Z(r).direction&&(a+=l(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(H(e));else if(G(t))r=function(e,t){const n=se(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=V(e)?ie(e):c(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=le(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return O(r)}function fe(e,t){const n=ee(e);return!(n===t||!G(n)||X(n))&&("fixed"===Z(n).position||fe(n,t))}function de(e,t,n){const r=V(t),o=H(t),i="fixed"===n,a=se(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=c(0);if(r||!r&&!i)if(("body"!==$(t)||Y(o))&&(l=J(t)),r){const e=se(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ue(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function pe(e,t){return V(e)&&"fixed"!==Z(e).position?t?t(e):e.offsetParent:null}function he(e,t){const n=U(e);if(!V(e))return n;let r=pe(e,t);for(;r&&q(r)&&"static"===Z(r).position;)r=pe(r,t);return r&&("html"===$(r)||"body"===$(r)&&"static"===Z(r).position&&!K(r))?n:r||function(e){let t=ee(e);for(;V(t)&&!X(t);){if(K(t))return t;t=ee(t)}return null}(e)||n}const ge={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=V(n),i=H(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},l=c(1);const s=c(0);if((o||!o&&"fixed"!==r)&&(("body"!==$(n)||Y(i))&&(a=J(n)),V(n))){const e=se(n);l=ie(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+s.x,y:t.y*l.y-a.scrollTop*l.y+s.y}},getDocumentElement:H,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=ne(e).filter((e=>G(e)&&"body"!==$(e))),o=null;const i="fixed"===Z(e).position;let a=i?ee(e):e;for(;G(a)&&!X(a);){const t=Z(a),n=K(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Y(a)&&!n&&fe(e,a))?r=r.filter((e=>e!==a)):o=t,a=ee(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],u=i.reduce(((e,n)=>{const r=ce(t,n,o);return e.top=l(r.top,e.top),e.right=a(r.right,e.right),e.bottom=a(r.bottom,e.bottom),e.left=l(r.left,e.left),e}),ce(t,s,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:he,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||he,i=this.getDimensions;return{reference:de(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return re(e)},getScale:ie,isElement:G,isRTL:function(e){return"rtl"===Z(e).direction}};function me(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,d=oe(e),p=o||i?[...d?ne(d):[],...ne(t)]:[];p.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const h=d&&c?function(e,t){let n,r=null;const o=H(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function s(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),i();const{left:d,top:p,width:h,height:g}=e.getBoundingClientRect();if(c||t(),!h||!g)return;const m={rootMargin:-u(p)+"px "+-u(o.clientWidth-(d+h))+"px "+-u(o.clientHeight-(p+g))+"px "+-u(d)+"px",threshold:l(0,a(1,f))||1};let y=!0;function v(e){const t=e[0].intersectionRatio;if(t!==f){if(!y)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}y=!1}try{r=new IntersectionObserver(v,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(v,m)}r.observe(e)}(!0),i}(d,n):null;let g,m=-1,y=null;s&&(y=new ResizeObserver((e=>{let[r]=e;r&&r.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{y&&y.observe(t)}))),n()})),d&&!f&&y.observe(d),y.observe(t));let v=f?se(e):null;return f&&function t(){const r=se(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n(),v=r,g=requestAnimationFrame(t)}(),n(),()=>{p.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),h&&h(),y&&y.disconnect(),y=null,f&&cancelAnimationFrame(g)}}const ye=(e,t,n)=>{const r=new Map,o={platform:ge,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=C(u,r,s),d=r,p={},h=0;for(let n=0;n({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?A({element:n.current,padding:r}).fn(t):{}:n?A({element:n,padding:r}).fn(t):{};var o}});var Ee="undefined"!=typeof document?ve.useLayoutEffect:ve.useEffect;function _e(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!_e(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||_e(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Te(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Oe(e,t){const n=Te(e);return Math.round(t*n)/n}function Ce(e){const t=ve.useRef(e);return Ee((()=>{t.current=e})),t}function xe(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(r=n.shadowRoot)?void 0:r.activeElement);){var n,r;t=t.shadowRoot.activeElement}return t}function Ae(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&W(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Re(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Ie(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function ke(e){if(0===e.mozInputSource&&e.isTrusted)return!0;const t=/Android/i;return(t.test(Re())||t.test(Ie()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}function Pe(e){return 0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"!==e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail}function Me(){return/apple/i.test(navigator.vendor)}function De(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Ne(e){return(null==e?void 0:e.ownerDocument)||document}function je(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Le(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Fe="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Be(e){return V(e)&&e.matches(Fe)}function $e(e){e.preventDefault(),e.stopPropagation()}var Ue=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),He="undefined"==typeof Element,ze=He?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ge=!He&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Ve=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},We=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!Ve(a,!1))if("SLOT"===a.tagName){var l=a.assignedElements(),s=e(l.length?l:a.children,!0,r);r.flatten?o.push.apply(o,s):o.push({scopeParent:a,candidates:s})}else{ze.call(a,Ue)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var u=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),c=!Ve(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(u&&c){var f=e(!0===u?a.children:u.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:a,candidates:f})}else i.unshift.apply(i,a.children)}}return o},Ye=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},qe=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Ye(e)?0:e.tabIndex},Ke=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Qe=function(e){return"INPUT"===e.tagName},Xe=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Ze=function(e,t){return!(t.disabled||Ve(t)||function(e){return Qe(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=ze.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ze.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Xe(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,l=Ge(e);if(a&&!a.shadowRoot&&!0===r(a))return Xe(e);e=e.assignedSlot?e.assignedSlot:a||l===e.ownerDocument?a:l.host}e=i}if(function(e){var t,n,r,o,i=e&&Ge(e),a=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&a;){var s,u,c;l=!(null===(u=a=null===(s=i=Ge(a))||void 0===s?void 0:s.host)||void 0===u||null===(c=u.ownerDocument)||void 0===c||!c.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},tt=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,l=function(e,t){var n=qe(e);return n<0&&t&&!Ye(e)?0:n}(a,i),s=i?e(t.candidates):a;0===l?i?n.push.apply(n,s):n.push(a):r.push({documentOrder:o,tabIndex:l,item:t,isScope:i,content:s})})),r.sort(Ke).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},nt=function(e,t){var n;return n=(t=t||{}).getShadowRoot?We([e],t.includeContainer,{filter:Je.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:et}):function(e,t,n){if(Ve(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Ue));return t&&ze.call(e,Ue)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Je.bind(null,t)),tt(n)};function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+at++,st=be["useId".toString()]||function(){const[e,t]=ve.useState((()=>it?lt():void 0));return ot((()=>{null==e&&t(lt())}),[]),ve.useEffect((()=>{it||(it=!0)}),[]),e},ut=ve.forwardRef((function(e,t){let{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o}},width:i=14,height:a=7,tipRadius:l=0,strokeWidth:s=0,staticOffset:u,stroke:c,d:f,style:{transform:d,...p}={},...h}=e;const g=st();if(!r)return null;s*=2;const m=s/2,y=i/2*(l/-8+1),v=a/2*l/4,[b,w]=n.split("-"),S=ge.isRTL(r),E=!!f,_="top"===b||"bottom"===b,T=u&&"end"===w?"bottom":"top";let O=u&&"end"===w?"right":"left";u&&S&&(O="end"===w?"left":"right");const C=null!=(null==o?void 0:o.x)?u||o.x:"",x=null!=(null==o?void 0:o.y)?u||o.y:"",A=f||"M0,0 H"+i+" L"+(i-y)+","+(a-v)+" Q"+i/2+","+a+" "+y+","+(a-v)+" Z",R={top:E?"rotate(180deg)":"",left:E?"rotate(90deg)":"rotate(-90deg)",bottom:E?"":"rotate(180deg)",right:E?"rotate(-90deg)":"rotate(90deg)"}[b];return ve.createElement("svg",rt({},h,{"aria-hidden":!0,ref:t,width:E?i:i+s,height:i,viewBox:"0 0 "+i+" "+(a>i?a:i),style:{position:"absolute",pointerEvents:"none",[O]:C,[T]:x,[b]:_||E?"100%":"calc(100% - "+s/2+"px)",transform:""+R+(null!=d?d:""),...p}}),s>0&&ve.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:c,strokeWidth:s+(f?0:1),d:A}),ve.createElement("path",{stroke:s&&!f?h.fill:"none",d:A}),ve.createElement("clipPath",{id:g},ve.createElement("rect",{x:-m,y:m*(E?-1:1),width:i+s,height:i})))}));function ct(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const ft=ve.createContext(null),dt=ve.createContext(null),pt=()=>{var e;return(null==(e=ve.useContext(ft))?void 0:e.id)||null},ht=()=>ve.useContext(dt);function gt(e){const t=st(),n=ht(),r=pt(),o=e||r;return ot((()=>{const e={id:t,parentId:o};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,o]),t}function mt(e){let{children:t,id:n}=e;const r=pt();return ve.createElement(ft.Provider,{value:ve.useMemo((()=>({id:n,parentId:r})),[n,r])},t)}function yt(e){let{children:t}=e;const n=ve.useRef([]),r=ve.useCallback((e=>{n.current=[...n.current,e]}),[]),o=ve.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),i=ve.useState((()=>ct()))[0];return ve.createElement(dt.Provider,{value:ve.useMemo((()=>({nodesRef:n,addNode:r,removeNode:o,events:i})),[n,r,o,i])},t)}function vt(e){return"data-floating-ui-"+e}function bt(e){const t=(0,ve.useRef)(e);return ot((()=>{t.current=e})),t}const wt=vt("safe-polygon");function St(e,t,n){return n&&!De(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Et(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:{domReference:a,floating:l},refs:s}=e,{enabled:u=!0,delay:c=0,handleClose:f=null,mouseOnly:d=!1,restMs:p=0,move:h=!0}=t,g=ht(),m=pt(),y=bt(f),v=bt(c),b=ve.useRef(),w=ve.useRef(),S=ve.useRef(),E=ve.useRef(),_=ve.useRef(!0),T=ve.useRef(!1),O=ve.useRef((()=>{})),C=ve.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);ve.useEffect((()=>{if(u)return i.on("dismiss",e),()=>{i.off("dismiss",e)};function e(){clearTimeout(w.current),clearTimeout(E.current),_.current=!0}}),[u,i]),ve.useEffect((()=>{if(!u||!y.current||!n)return;function e(e){C()&&r(!1,e)}const t=Ne(l).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[l,n,r,u,y,o,C]);const x=ve.useCallback((function(e,t){void 0===t&&(t=!0);const n=St(v.current,"close",b.current);n&&!S.current?(clearTimeout(w.current),w.current=setTimeout((()=>r(!1,e)),n)):t&&(clearTimeout(w.current),r(!1,e))}),[v,r]),A=ve.useCallback((()=>{O.current(),S.current=void 0}),[]),R=ve.useCallback((()=>{if(T.current){const e=Ne(s.floating.current).body;e.style.pointerEvents="",e.removeAttribute(wt),T.current=!1}}),[s]);return ve.useEffect((()=>{if(u&&G(a)){const e=a;return n&&e.addEventListener("mouseleave",c),null==l||l.addEventListener("mouseleave",c),h&&e.addEventListener("mousemove",i,{once:!0}),e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",s),()=>{n&&e.removeEventListener("mouseleave",c),null==l||l.removeEventListener("mouseleave",c),h&&e.removeEventListener("mousemove",i),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",s)}}function t(){return!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)}function i(e){if(clearTimeout(w.current),_.current=!1,d&&!De(b.current)||p>0&&0===St(v.current,"open"))return;const t=St(v.current,"open",b.current);t?w.current=setTimeout((()=>{r(!0,e)}),t):r(!0,e)}function s(r){if(t())return;O.current();const o=Ne(l);if(clearTimeout(E.current),y.current){n||clearTimeout(w.current),S.current=y.current({...e,tree:g,x:r.clientX,y:r.clientY,onClose(){R(),A(),x(r)}});const t=S.current;return o.addEventListener("mousemove",t),void(O.current=()=>{o.removeEventListener("mousemove",t)})}("touch"!==b.current||!Ae(l,r.relatedTarget))&&x(r)}function c(n){t()||null==y.current||y.current({...e,tree:g,x:n.clientX,y:n.clientY,onClose(){R(),A(),x(n)}})(n)}}),[a,l,u,e,d,p,h,x,A,R,r,n,g,v,y,o]),ot((()=>{var e;if(u&&n&&null!=(e=y.current)&&e.__options.blockPointerEvents&&C()){const e=Ne(l).body;if(e.setAttribute(wt,""),e.style.pointerEvents="none",T.current=!0,G(a)&&l){var t,r;const e=a,n=null==g||null==(t=g.nodesRef.current.find((e=>e.id===m)))||null==(r=t.context)?void 0:r.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{e.style.pointerEvents="",l.style.pointerEvents=""}}}}),[u,n,m,l,a,g,y,o,C]),ot((()=>{n||(b.current=void 0,A(),R())}),[n,A,R]),ve.useEffect((()=>()=>{A(),clearTimeout(w.current),clearTimeout(E.current),R()}),[u,a,A,R]),ve.useMemo((()=>{if(!u)return{};function e(e){b.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){n||0===p||(clearTimeout(E.current),E.current=setTimeout((()=>{_.current||r(!0,e.nativeEvent)}),p))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){i.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),x(e.nativeEvent,!1)}}}}),[i,u,p,n,r,x])}const _t=ve.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),Tt=()=>ve.useContext(_t),Ot=e=>{let{children:t,delay:n,timeoutMs:r=0}=e;const[o,i]=ve.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),a=ve.useRef(null),l=ve.useCallback((e=>{i({currentId:e})}),[]);return ot((()=>{o.currentId?null===a.current?a.current=o.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),a.current=null)}),[o.currentId]),ve.createElement(_t.Provider,{value:ve.useMemo((()=>({...o,setState:i,setCurrentId:l})),[o,i,l])},t)},Ct=(e,t)=>{let{open:n,onOpenChange:r}=e,{id:o}=t;const{currentId:i,setCurrentId:a,initialDelay:l,setState:s,timeoutMs:u}=Tt();ot((()=>{i&&(s({delay:{open:1,close:St(l,"close")}}),i!==o&&r(!1))}),[o,r,s,i,l]),ot((()=>{function e(){r(!1),s({delay:l,currentId:null})}if(!n&&i===o){if(u){const t=window.setTimeout(e,u);return()=>{clearTimeout(t)}}e()}}),[n,s,i,o,r,l,u]),ot((()=>{n&&a(o)}),[n,a,o])};let xt=0;function At(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(xt);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():xt=requestAnimationFrame(i)}function Rt(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let It=new WeakMap,kt=new WeakSet,Pt={},Mt=0;const Dt=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,Nt=e=>e&&(e.host||Nt(e.parentNode)),jt=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=Nt(t);return e.contains(n)?n:null})).filter((e=>null!=e));function Lt(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Ne(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=jt(t,e),l=new Set,s=new Set(a),u=[];Pt[o]||(Pt[o]=new WeakMap);const c=Pt[o];return a.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!s.has(t)&&Array.prototype.forEach.call(t.children,(t=>{if(l.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(It.get(t)||0)+1,a=(c.get(t)||0)+1;It.set(t,r),c.set(t,a),u.push(t),1===r&&n&&kt.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),l.clear(),Mt++,()=>{u.forEach((e=>{const t=(It.get(e)||0)-1,n=(c.get(e)||0)-1;It.set(e,t),c.set(e,n),t||(!kt.has(e)&&i&&e.removeAttribute(i),kt.delete(e)),n||e.removeAttribute(o)})),Mt--,Mt||(It=new WeakMap,It=new WeakMap,kt=new WeakSet,Pt={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Ft=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Bt(e,t){const n=nt(e,Ft());"prev"===t&&n.reverse();const r=n.indexOf(xe(Ne(e)));return n.slice(r+1)[0]}function $t(){return Bt(document.body,"next")}function Ut(){return Bt(document.body,"prev")}function Ht(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Ae(n,r)}function zt(e){nt(e,Ft()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Gt(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Vt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Wt(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Yt=ve.forwardRef((function(e,t){const[n,r]=ve.useState();ot((()=>(Me()&&r("button"),document.addEventListener("keydown",Wt),()=>{document.removeEventListener("keydown",Wt)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[vt("focus-guard")]:"",style:Vt};return ve.createElement("span",rt({},e,o))})),qt=ve.createContext(null);function Kt(e){let{id:t,root:n}=void 0===e?{}:e;const[r,o]=ve.useState(null),i=st(),a=Xt(),l=ve.useMemo((()=>({id:t,root:n,portalContext:a,uniqueId:i})),[t,n,a,i]),s=ve.useRef();return ot((()=>()=>{null==r||r.remove()}),[r,l]),ot((()=>{if(s.current===l)return;s.current=l;const{id:e,root:t,portalContext:n,uniqueId:r}=l,i=e?document.getElementById(e):null,a=vt("portal");if(i){const e=document.createElement("div");e.id=r,e.setAttribute(a,""),i.appendChild(e),o(e)}else{let i=t||(null==n?void 0:n.portalNode);i&&!G(i)&&(i=i.current),i=i||document.body;let l=null;e&&(l=document.createElement("div"),l.id=e,i.appendChild(l));const s=document.createElement("div");s.id=r,s.setAttribute(a,""),i=l||i,i.appendChild(s),o(s)}}),[l]),r}function Qt(e){let{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e;const i=Kt({id:n,root:r}),[a,l]=ve.useState(null),s=ve.useRef(null),u=ve.useRef(null),c=ve.useRef(null),f=ve.useRef(null),d=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return ve.useEffect((()=>{if(i&&o&&(null==a||!a.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&Ht(e)&&("focusin"===e.type?Gt:zt)(i)}}),[i,o,null==a?void 0:a.modal]),ve.createElement(qt.Provider,{value:ve.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:f,portalNode:i,setFocusManagerState:l})),[o,i])},d&&i&&ve.createElement(Yt,{"data-type":"outside",ref:s,onFocus:e=>{if(Ht(e,i)){var t;null==(t=c.current)||t.focus()}else{const e=Ut()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),d&&i&&ve.createElement("span",{"aria-owns":i.id,style:Vt}),i&&(0,we.createPortal)(t,i),d&&i&&ve.createElement(Yt,{"data-type":"outside",ref:u,onFocus:e=>{if(Ht(e,i)){var t;null==(t=f.current)||t.focus()}else{const t=$t()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent))}}}))}const Xt=()=>ve.useContext(qt),Zt=ve.forwardRef((function(e,t){return ve.createElement("button",rt({},e,{type:"button",ref:t,tabIndex:-1,style:Vt}))}));function Jt(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:a=0,returnFocus:l=!0,modal:s=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:c=!0}=e,{open:f,refs:d,nodeId:p,onOpenChange:h,events:g,dataRef:m,elements:{domReference:y,floating:v}}=t,b=!Dt()||i,w=bt(o),S=bt(a),E=bt(l),_=ht(),T=Xt(),O="number"==typeof a&&a<0,C=ve.useRef(null),x=ve.useRef(null),A=ve.useRef(!1),R=ve.useRef(null),I=ve.useRef(!1),k=null!=T,P=y&&"combobox"===y.getAttribute("role")&&Be(y),M=ve.useCallback((function(e){return void 0===e&&(e=v),e?nt(e,Ft()):[]}),[v]),D=ve.useCallback((e=>{const t=M(e);return w.current.map((e=>y&&"reference"===e?y:v&&"floating"===e?v:t)).filter(Boolean).flat()}),[y,v,w,M]);function N(e){return!r&&u&&s?ve.createElement(Zt,{ref:"start"===e?C:x,onClick:e=>h(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}ve.useEffect((()=>{if(r||!s)return;function e(e){if("Tab"===e.key){Ae(v,xe(Ne(v)))&&0===M().length&&!P&&$e(e);const t=D(),n=Le(e);"reference"===w.current[0]&&n===y&&($e(e),e.shiftKey?At(t[t.length-1]):At(t[1])),"floating"===w.current[1]&&n===v&&e.shiftKey&&($e(e),At(t[0]))}}const t=Ne(v);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,y,v,s,w,d,P,M,D]),ve.useEffect((()=>{if(!r&&c)return v&&V(y)?(y.addEventListener("focusout",t),y.addEventListener("pointerdown",e),!s&&v.addEventListener("focusout",t),()=>{y.removeEventListener("focusout",t),y.removeEventListener("pointerdown",e),!s&&v.removeEventListener("focusout",t)}):void 0;function e(){I.current=!0,setTimeout((()=>{I.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(Ae(y,t)||Ae(v,t)||Ae(t,v)||Ae(null==T?void 0:T.portalNode,t)||null!=t&&t.hasAttribute(vt("focus-guard"))||_&&(Rt(_.nodesRef.current,p).find((e=>{var n,r;return Ae(null==(n=e.context)?void 0:n.elements.floating,t)||Ae(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(_.nodesRef.current,p).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));t&&n&&!I.current&&t!==R.current&&(A.current=!0,h(!1,e))}))}}),[r,y,v,s,p,_,T,h,c]),ve.useEffect((()=>{var e;if(r)return;const t=Array.from((null==T||null==(e=T.portalNode)?void 0:e.querySelectorAll("["+vt("portal")+"]"))||[]);if(v){const e=[v,...t,C.current,x.current,w.current.includes("reference")||P?y:null].filter((e=>null!=e)),n=s?Lt(e,b,!b):Lt(e);return()=>{n()}}}),[r,y,v,s,w,T,P,b]),ot((()=>{if(r||!v)return;const e=xe(Ne(v));queueMicrotask((()=>{const t=D(v),n=S.current,r=("number"==typeof n?t[n]:n.current)||v,o=Ae(v,e);O||o||!f||At(r,{preventScroll:r===v})}))}),[r,f,v,O,D,S]),ot((()=>{if(r||!v)return;let e=!1;const t=Ne(v),n=xe(t),o=m.current;function i(t){if("escapeKey"===t.type&&d.domReference.current&&(R.current=d.domReference.current),["referencePress","escapeKey"].includes(t.type))return;const n=t.data.returnFocus;"object"==typeof n?(A.current=!1,e=n.preventScroll):A.current=!n}return R.current=n,g.on("dismiss",i),()=>{g.off("dismiss",i);const n=xe(t);(Ae(v,n)||_&&Rt(_.nodesRef.current,p).some((e=>{var t;return Ae(null==(t=e.context)?void 0:t.elements.floating,n)}))||o.openEvent&&["click","mousedown"].includes(o.openEvent.type))&&d.domReference.current&&(R.current=d.domReference.current),E.current&&V(R.current)&&!A.current&&At(R.current,{cancelPrevious:!1,preventScroll:e})}}),[r,v,E,m,d,g,_,p]),ot((()=>{if(!r&&T)return T.setFocusManagerState({modal:s,closeOnFocusOut:c,open:f,onOpenChange:h,refs:d}),()=>{T.setFocusManagerState(null)}}),[r,T,s,f,h,d,c]),ot((()=>{if(!r&&v&&"function"==typeof MutationObserver){const e=()=>{const e=v.getAttribute("tabindex");w.current.includes("floating")||xe(Ne(v))!==d.domReference.current&&0===M().length?"0"!==e&&v.setAttribute("tabindex","0"):"-1"!==e&&v.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(v,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}}),[r,v,d,w,M]);const j=!r&&b&&!P&&(k||s);return ve.createElement(ve.Fragment,null,j&&ve.createElement(Yt,{"data-type":"inside",ref:null==T?void 0:T.beforeInsideRef,onFocus:e=>{if(s){const e=D();At("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=T&&T.preserveTabOrder&&T.portalNode)if(A.current=!1,Ht(e,T.portalNode)){const e=$t()||y;null==e||e.focus()}else{var t;null==(t=T.beforeOutsideRef.current)||t.focus()}}}),!P&&N("start"),n,N("end"),j&&ve.createElement(Yt,{"data-type":"inside",ref:null==T?void 0:T.afterInsideRef,onFocus:e=>{if(s)At(D()[0]);else if(null!=T&&T.preserveTabOrder&&T.portalNode)if(c&&(A.current=!0),Ht(e,T.portalNode)){const e=Ut()||y;null==e||e.focus()}else{var t;null==(t=T.afterOutsideRef.current)||t.focus()}}}))}function en(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const tn=ve.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function nn(e){let{children:t,elementsRef:n,labelsRef:r}=e;const[o,i]=ve.useState((()=>new Map)),a=ve.useCallback((e=>{i((t=>new Map(t).set(e,null)))}),[]),l=ve.useCallback((e=>{i((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return ot((()=>{const e=new Map(o);Array.from(e.keys()).sort(en).forEach(((t,n)=>{e.set(t,n)})),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(o,e)||i(e)}),[o]),ve.createElement(tn.Provider,{value:ve.useMemo((()=>({register:a,unregister:l,map:o,elementsRef:n,labelsRef:r})),[a,l,o,n,r])},t)}function rn(e){let{label:t}=void 0===e?{}:e;const[n,r]=ve.useState(null),o=ve.useRef(null),{register:i,unregister:a,map:l,elementsRef:s,labelsRef:u}=ve.useContext(tn),c=ve.useCallback((e=>{if(o.current=e,null!==n&&(s.current[n]=e,u)){var r;const o=void 0!==t;u.current[n]=o?t:null!=(r=null==e?void 0:e.textContent)?r:null}}),[n,s,u,t]);return ot((()=>{const e=o.current;if(e)return i(e),()=>{a(e)}}),[i,a]),ot((()=>{const e=o.current?l.get(o.current):null;null!=e&&r(e)}),[l]),ve.useMemo((()=>({ref:c,index:null==n?-1:n})),[n,c])}const on=vt("scroll-lock"),an=ve.forwardRef((function(e,t){let{lockScroll:n=!1,...r}=e;return ot((()=>{var e,t;if(!n)return;if(document.body.hasAttribute(on))return;document.body.setAttribute(on,"");const r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(Re()))return Object.assign(document.body.style,{overflow:"hidden",[r]:o+"px"}),()=>{document.body.removeAttribute(on),Object.assign(document.body.style,{overflow:"",[r]:""})};const i=(null==(e=window.visualViewport)?void 0:e.offsetLeft)||0,a=(null==(t=window.visualViewport)?void 0:t.offsetTop)||0,l=window.pageXOffset,s=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(s-Math.floor(a))+"px",left:-(l-Math.floor(i))+"px",right:"0",[r]:o+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[r]:""}),document.body.removeAttribute(on),window.scrollTo(l,s)}}),[n]),ve.createElement("div",rt({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))}));function ln(e){return V(e.target)&&"BUTTON"===e.target.tagName}function sn(e){return Be(e)}function un(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:s=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0}=t,f=ve.useRef(),d=ve.useRef(!1);return ve.useMemo((()=>a?{reference:{onPointerDown(e){f.current=e.pointerType},onMouseDown(e){0===e.button&&(De(f.current,!0)&&u||"click"!==l&&(!n||!s||o.current.openEvent&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent)):r(!1,e.nativeEvent)))},onClick(e){"mousedown"===l&&f.current?f.current=void 0:De(f.current,!0)&&u||(!n||!s||o.current.openEvent&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent):r(!1,e.nativeEvent))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!c||ln(e)||(" "!==e.key||sn(i)||(e.preventDefault(),d.current=!0),"Enter"===e.key&&r(!n||!s,e.nativeEvent))},onKeyUp(e){e.defaultPrevented||!c||ln(e)||sn(i)||" "===e.key&&d.current&&(d.current=!1,r(!n||!s,e.nativeEvent))}}}:{}),[a,o,l,u,c,i,s,n,r])}const cn=be["useInsertionEffect".toString()]||(e=>e());function fn(e){const t=ve.useRef((()=>{}));return cn((()=>{t.current=e})),ve.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r{c.current||o.current.openEvent&&!dn(o.current.openEvent)||r.setPositionReference(function(e,t){let n=null,r=null,o=!1;return{contextElement:e.current||void 0,getBoundingClientRect(){var i,a;const l=(null==(i=e.current)?void 0:i.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s="x"===t.axis||"both"===t.axis,u="y"===t.axis||"both"===t.axis,c=["mouseenter","mousemove"].includes((null==(a=t.dataRef.current.openEvent)?void 0:a.type)||"")&&"touch"!==t.pointerType;let f=l.width,d=l.height,p=l.x,h=l.y;return null==n&&t.x&&s&&(n=l.x-t.x),null==r&&t.y&&u&&(r=l.y-t.y),p-=n||0,h-=r||0,f=0,d=0,!o||c?(f="y"===t.axis?l.width:0,d="x"===t.axis?l.height:0,p=s&&null!=t.x?t.x:p,h=u&&null!=t.y?t.y:h):o&&!c&&(d="x"===t.axis?l.height:d,f="y"===t.axis?l.width:f),o=!0,{width:f,height:d,x:p,y:h,top:h,right:p+f,bottom:h+d,left:p}}}}(r.domReference,{x:e,y:t,axis:l,dataRef:o,pointerType:d}))})),y=fn((e=>{null==s&&null==u&&(n?f.current||g([]):m(e.clientX,e.clientY))})),v=De(d)?i:n,b=ve.useCallback((()=>{if(!v||!a||null!=s||null!=u)return;const e=U(r.floating.current);function t(n){const o=Le(n);Ae(r.floating.current,o)?(e.removeEventListener("mousemove",t),f.current=null):m(n.clientX,n.clientY)}if(!o.current.openEvent||dn(o.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),f.current=null};return f.current=n,n}r.setPositionReference(r.domReference.current)}),[o,a,v,r,m,s,u]);return ve.useEffect((()=>b()),[b,h]),ve.useEffect((()=>{a&&!i&&(c.current=!1)}),[a,i]),ve.useEffect((()=>{!a&&n&&(c.current=!0)}),[a,n]),ot((()=>{!a||null==s&&null==u||(c.current=!1,m(s,u))}),[a,s,u,m]),ve.useMemo((()=>{if(!a)return{};function e(e){let{pointerType:t}=e;p(t)}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove:y,onMouseEnter:y}}}),[a,y])}const hn={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},gn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},mn=e=>{var t,n;return{escapeKeyBubbles:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePressBubbles:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function yn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,nodeId:i,elements:{reference:a,domReference:l,floating:s},dataRef:u}=e,{enabled:c=!0,escapeKey:f=!0,outsidePress:d=!0,outsidePressEvent:p="pointerdown",referencePress:h=!1,referencePressEvent:g="pointerdown",ancestorScroll:m=!1,bubbles:y}=t,v=ht(),b=null!=pt(),w=fn("function"==typeof d?d:()=>!1),S="function"==typeof d?w:d,E=ve.useRef(!1),{escapeKeyBubbles:_,outsidePressBubbles:T}=mn(y),O=fn((e=>{if(!n||!c||!f||"Escape"!==e.key)return;const t=v?Rt(v.nodesRef.current,i):[];if(!_&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e)})),C=fn((e=>{const t=E.current;if(E.current=!1,t)return;if("function"==typeof S&&!S(e))return;const n=Le(e),a="["+vt("inert")+"]",u=Ne(s).querySelectorAll(a);let c=G(n)?n:null;for(;c&&!X(c);){const e=ee(c);if(e===Ne(s).body||!G(e))break;c=e}if(u.length&&G(n)&&!n.matches("html,body")&&!Ae(n,s)&&Array.from(u).every((e=>!Ae(c,e))))return;if(V(n)&&s){const t=n.clientWidth>0&&n.scrollWidth>n.clientWidth,r=n.clientHeight>0&&n.scrollHeight>n.clientHeight;let o=r&&e.offsetX>n.clientWidth;if(r&&"rtl"===Z(n).direction&&(o=e.offsetX<=n.offsetWidth-n.clientWidth),o||t&&e.offsetY>n.clientHeight)return}const f=v&&Rt(v.nodesRef.current,i).some((t=>{var n;return je(e,null==(n=t.context)?void 0:n.elements.floating)}));if(je(e,s)||je(e,l)||f)return;const d=v?Rt(v.nodesRef.current,i):[];if(d.length>0){let e=!0;if(d.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:b?{preventScroll:!0}:ke(e)||Pe(e)}}),r(!1,e)}));return ve.useEffect((()=>{if(!n||!c)return;function e(e){r(!1,e)}u.current.__escapeKeyBubbles=_,u.current.__outsidePressBubbles=T;const t=Ne(s);f&&t.addEventListener("keydown",O),S&&t.addEventListener(p,C);let o=[];return m&&(G(l)&&(o=ne(l)),G(s)&&(o=o.concat(ne(s))),!G(a)&&a&&a.contextElement&&(o=o.concat(ne(a.contextElement)))),o=o.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),o.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{f&&t.removeEventListener("keydown",O),S&&t.removeEventListener(p,C),o.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[u,s,l,a,f,S,p,n,r,m,c,_,T,O,C]),ve.useEffect((()=>{E.current=!1}),[S,p]),ve.useMemo((()=>c?{reference:{onKeyDown:O,[hn[g]]:e=>{h&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1,e.nativeEvent))}},floating:{onKeyDown:O,[gn[p]]:()=>{E.current=!0}}}:{}),[c,o,h,p,g,r,O])}function vn(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:r,nodeId:o}=e,[i,a]=ve.useState(null),l=(null==(t=e.elements)?void 0:t.reference)||i,s=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[c,f]=ve.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=ve.useState(r);_e(d,r)||p(r);const[h,g]=ve.useState(null),[m,y]=ve.useState(null),v=ve.useCallback((e=>{e!=E.current&&(E.current=e,g(e))}),[g]),b=ve.useCallback((e=>{e!==_.current&&(_.current=e,y(e))}),[y]),w=i||h,S=a||m,E=ve.useRef(null),_=ve.useRef(null),T=ve.useRef(c),O=Ce(s),C=Ce(o),x=ve.useCallback((()=>{if(!E.current||!_.current)return;const e={placement:t,strategy:n,middleware:d};C.current&&(e.platform=C.current),ye(E.current,_.current,e).then((e=>{const t={...e,isPositioned:!0};A.current&&!_e(T.current,t)&&(T.current=t,we.flushSync((()=>{f(t)})))}))}),[d,t,n,C]);Ee((()=>{!1===u&&T.current.isPositioned&&(T.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const A=ve.useRef(!1);Ee((()=>(A.current=!0,()=>{A.current=!1})),[]),Ee((()=>{if(w&&(E.current=w),S&&(_.current=S),w&&S){if(O.current)return O.current(w,S,x);x()}}),[w,S,x,O]);const R=ve.useMemo((()=>({reference:E,floating:_,setReference:v,setFloating:b})),[v,b]),I=ve.useMemo((()=>({reference:w,floating:S})),[w,S]),k=ve.useMemo((()=>{const e={position:n,left:0,top:0};if(!I.floating)return e;const t=Oe(I.floating,c.x),r=Oe(I.floating,c.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...Te(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,l,I.floating,c.x,c.y]);return ve.useMemo((()=>({...c,update:x,refs:R,elements:I,floatingStyles:k})),[c,x,R,I,k])}(e),u=ht(),c=fn(((e,t)=>{e&&(d.current.openEvent=t),null==r||r(e,t)})),f=ve.useRef(null),d=ve.useRef({}),p=ve.useState((()=>ct()))[0],h=st(),g=ve.useCallback((e=>{const t=G(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;s.refs.setReference(t)}),[s.refs]),m=ve.useCallback((e=>{(G(e)||null===e)&&(f.current=e,a(e)),(G(s.refs.reference.current)||null===s.refs.reference.current||null!==e&&!G(e))&&s.refs.setReference(e)}),[s.refs]),y=ve.useMemo((()=>({...s.refs,setReference:m,setPositionReference:g,domReference:f})),[s.refs,m,g]),v=ve.useMemo((()=>({...s.elements,domReference:l})),[s.elements,l]),b=ve.useMemo((()=>({...s,refs:y,elements:v,dataRef:d,nodeId:o,floatingId:h,events:p,open:n,onOpenChange:c})),[s,o,h,p,n,c,y,v]);return ot((()=>{const e=null==u?void 0:u.nodesRef.current.find((e=>e.id===o));e&&(e.context=b)})),ve.useMemo((()=>({...s,context:b,refs:y,elements:v})),[s,y,v,b])}function bn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,refs:a,elements:{floating:l,domReference:s}}=e,{enabled:u=!0,keyboardOnly:c=!0}=t,f=ve.useRef(""),d=ve.useRef(!1),p=ve.useRef();return ve.useEffect((()=>{if(!u)return;const e=Ne(l).defaultView||window;function t(){!n&&V(s)&&s===xe(Ne(s))&&(d.current=!0)}return e.addEventListener("blur",t),()=>{e.removeEventListener("blur",t)}}),[l,s,n,u]),ve.useEffect((()=>{if(u)return i.on("dismiss",e),()=>{i.off("dismiss",e)};function e(e){"referencePress"!==e.type&&"escapeKey"!==e.type||(d.current=!0)}}),[i,u]),ve.useEffect((()=>()=>{clearTimeout(p.current)}),[]),ve.useMemo((()=>u?{reference:{onPointerDown(e){let{pointerType:t}=e;f.current=t,d.current=!(!t||!c)},onMouseLeave(){d.current=!1},onFocus(e){var t;d.current||"focus"===e.type&&"mousedown"===(null==(t=o.current.openEvent)?void 0:t.type)&&je(o.current.openEvent,s)||r(!0,e.nativeEvent)},onBlur(e){d.current=!1;const t=e.relatedTarget,n=G(t)&&t.hasAttribute(vt("focus-guard"))&&"outside"===t.getAttribute("data-type");p.current=setTimeout((()=>{Ae(a.floating.current,t)||Ae(s,t)||n||r(!1,e.nativeEvent)}))}}}:{}),[u,c,s,a,o,r])}function wn(e,t,n){const r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map((e=>e?e[n]:null)).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var i;0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(i=r.get(n))||i.push(o),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;ie(...o))).find((e=>void 0!==e))})):e[n]=o})),e):e),{})}}function Sn(e){void 0===e&&(e=[]);const t=e,n=ve.useCallback((t=>wn(t,e,"reference")),t),r=ve.useCallback((t=>wn(t,e,"floating")),t),o=ve.useCallback((t=>wn(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return ve.useMemo((()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o})),[n,r,o])}let En=!1;const _n="ArrowUp",Tn="ArrowDown",On="ArrowLeft",Cn="ArrowRight";function xn(e,t,n){return Math.floor(e/t)!==n}function An(e,t){return t<0||t>=e.current.length}function Rn(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const a=e.current;let l=n;do{var s,u;l+=r?-i:i}while(l>=0&&l<=a.length-1&&(o?o.includes(l):null==a[l]||(null==(s=a[l])?void 0:s.hasAttribute("disabled"))||"true"===(null==(u=a[l])?void 0:u.getAttribute("aria-disabled"))));return l}function In(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function kn(e,t){return In(t,e===_n||e===Tn,e===On||e===Cn)}function Pn(e,t,n){return In(t,e===Tn,n?e===On:e===Cn)||"Enter"===e||" "==e||""===e}function Mn(e,t){return Rn(e,{disabledIndices:t})}function Dn(e,t){return Rn(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Nn(e,t){const{open:n,onOpenChange:r,refs:o,elements:{domReference:i,floating:a}}=e,{listRef:l,activeIndex:s,onNavigate:u=()=>{},enabled:c=!0,selectedIndex:f=null,allowEscape:d=!1,loop:p=!1,nested:h=!1,rtl:g=!1,virtual:m=!1,focusItemOnOpen:y="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:b=!0,disabledIndices:w,orientation:S="vertical",cols:E=1,scrollItemIntoView:_=!0}=t,T=pt(),O=ht(),C=fn(u),x=ve.useRef(y),A=ve.useRef(null!=f?f:-1),R=ve.useRef(null),I=ve.useRef(!0),k=ve.useRef(C),P=ve.useRef(!!a),M=ve.useRef(!1),D=ve.useRef(!1),N=bt(w),j=bt(n),L=bt(_),[F,B]=ve.useState(),$=fn((function(e,t,n){void 0===n&&(n=!1);const r=e.current[t.current];r&&(m?B(r.id):At(r,{preventScroll:!0,sync:!(!Re().toLowerCase().startsWith("mac")||navigator.maxTouchPoints||!Me())&&(En||M.current)}),requestAnimationFrame((()=>{const e=L.current;e&&r&&(n||!I.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})))}));ot((()=>{document.createElement("div").focus({get preventScroll(){return En=!0,!1}})}),[]),ot((()=>{c&&(n&&a?x.current&&null!=f&&(D.current=!0,C(f)):P.current&&(A.current=-1,k.current(null)))}),[c,n,a,f,C]),ot((()=>{if(c&&n&&a)if(null==s){if(M.current=!1,null!=f)return;if(P.current&&(A.current=-1,$(l,A)),!P.current&&x.current&&(null!=R.current||!0===x.current&&null==R.current)){let e=0;const t=()=>{null==l.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(A.current=null==R.current||Pn(R.current,S,g)||h?Mn(l,N.current):Dn(l,N.current),R.current=null,C(A.current))};t()}}else An(l,s)||(A.current=s,$(l,A,D.current),D.current=!1)}),[c,n,a,s,f,h,l,S,g,C,$,N]),ot((()=>{if(c&&P.current&&!a&&O){var e,t;const n=O.nodesRef.current,r=null==(e=n.find((e=>e.id===T)))||null==(t=e.context)?void 0:t.elements.floating,o=xe(Ne(a)),i=n.some((e=>e.context&&Ae(e.context.elements.floating,o)));r&&!i&&r.focus({preventScroll:!0})}}),[c,a,O,T]),ot((()=>{k.current=C,P.current=!!a})),ot((()=>{n||(R.current=null)}),[n]);const U=null!=s,H=ve.useMemo((()=>{function e(e){if(!n)return;const t=l.current.indexOf(e);-1!==t&&C(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...v&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;I.current&&"touch"!==t&&(A.current=-1,$(l,A),C(null),m||At(o.floating.current,{preventScroll:!0}))}}}}),[n,o,$,v,l,C,m]);return ve.useMemo((()=>{if(!c)return{};const e=N.current;function t(t){if(I.current=!1,M.current=!0,!j.current&&t.currentTarget===o.floating.current)return;if(h&&function(e,t,n){return In(t,n?e===Cn:e===On,e===_n)}(t.key,S,g))return $e(t),r(!1,t.nativeEvent),void(V(i)&&i.focus());const a=A.current,s=Mn(l,e),u=Dn(l,e);if("Home"===t.key&&($e(t),A.current=s,C(A.current)),"End"===t.key&&($e(t),A.current=u,C(A.current)),E>1){const n=A.current;if(t.key===_n){if($e(t),-1===n)A.current=u;else if(A.current=Rn(l,{startingIndex:n,amount:E,decrement:!0,disabledIndices:e}),p&&(n-Ee?r:r-E}An(l,A.current)&&(A.current=n),C(A.current)}if(t.key===Tn&&($e(t),-1===n?A.current=s:(A.current=Rn(l,{startingIndex:n,amount:E,disabledIndices:e}),p&&n+E>u&&(A.current=Rn(l,{startingIndex:n%E-E,amount:E,disabledIndices:e}))),An(l,A.current)&&(A.current=n),C(A.current)),"both"===S){const r=Math.floor(n/E);t.key===Cn&&($e(t),n%E!=E-1?(A.current=Rn(l,{startingIndex:n,disabledIndices:e}),p&&xn(A.current,E,r)&&(A.current=Rn(l,{startingIndex:n-n%E-1,disabledIndices:e}))):p&&(A.current=Rn(l,{startingIndex:n-n%E-1,disabledIndices:e})),xn(A.current,E,r)&&(A.current=n)),t.key===On&&($e(t),n%E!=0?(A.current=Rn(l,{startingIndex:n,disabledIndices:e,decrement:!0}),p&&xn(A.current,E,r)&&(A.current=Rn(l,{startingIndex:n+(E-n%E),decrement:!0,disabledIndices:e}))):p&&(A.current=Rn(l,{startingIndex:n+(E-n%E),decrement:!0,disabledIndices:e})),xn(A.current,E,r)&&(A.current=n));const o=Math.floor(u/E)===r;return An(l,A.current)&&(A.current=p&&o?t.key===On?u:Rn(l,{startingIndex:n-n%E-1,disabledIndices:e}):n),void C(A.current)}}if(kn(t.key,S)){if($e(t),n&&!m&&xe(t.currentTarget.ownerDocument)===t.currentTarget)return A.current=Pn(t.key,S,g)?s:u,void C(A.current);Pn(t.key,S,g)?A.current=p?a>=u?d&&a!==l.current.length?-1:s:Rn(l,{startingIndex:a,disabledIndices:e}):Math.min(u,Rn(l,{startingIndex:a,disabledIndices:e})):A.current=p?a<=s?d&&-1!==a?l.current.length:u:Rn(l,{startingIndex:a,decrement:!0,disabledIndices:e}):Math.max(s,Rn(l,{startingIndex:a,decrement:!0,disabledIndices:e})),An(l,A.current)?C(null):C(A.current)}}function a(e){"auto"===y&&ke(e.nativeEvent)&&(x.current=!0)}const s=m&&n&&U&&{"aria-activedescendant":F};return{reference:{...s,onKeyDown(o){I.current=!1;const i=0===o.key.indexOf("Arrow");if(m&&n)return t(o);if(!n&&!b&&i)return;const a=i||"Enter"===o.key||""===o.key.trim(),s=kn(o.key,S),u=function(e,t,n){return In(t,n?e===On:e===Cn,e===Tn)}(o.key,S,g);a&&(R.current=h&&s?null:o.key),h?u&&($e(o),n?(A.current=Mn(l,e),C(A.current)):r(!0,o.nativeEvent)):s&&(null!=f&&(A.current=f),$e(o),!n&&b?r(!0,o.nativeEvent):t(o),n&&C(A.current))},onFocus(){n&&C(null)},onPointerDown:function(e){x.current=y,"auto"===y&&Pe(e.nativeEvent)&&(x.current=!0)},onMouseDown:a,onClick:a},floating:{"aria-orientation":"both"===S?void 0:S,...s,onKeyDown:t,onPointerMove(){I.current=!0}},item:H}}),[i,o,F,N,j,l,c,S,g,m,n,U,h,f,b,d,E,p,y,C,r,H])}function jn(e){return ve.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}function Ln(e,t){void 0===t&&(t={});const{open:n,floatingId:r}=e,{enabled:o=!0,role:i="dialog"}=t,a=st();return ve.useMemo((()=>{const e={id:r,role:i};return o?"tooltip"===i?{reference:{"aria-describedby":n?r:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===i?"dialog":i,"aria-controls":n?r:void 0,..."listbox"===i&&{role:"combobox"},..."menu"===i&&{id:a}},floating:{...e,..."menu"===i&&{"aria-labelledby":a}}}:{}}),[o,i,n,r,a])}const Fn=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function Bn(e,t){return"function"==typeof e?e(t):e}function $n(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,i=("number"==typeof o?o:o.close)||0,[a,l]=ve.useState(!1),[s,u]=ve.useState("unmounted"),c=function(e,t){const[n,r]=ve.useState(e);return e&&!n&&r(!0),ve.useEffect((()=>{if(!e){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,t]),n}(n,i);return ot((()=>{a&&!c&&u("unmounted")}),[a,c]),ot((()=>{if(r){if(n){u("initial");const e=requestAnimationFrame((()=>{u("open")}));return()=>{cancelAnimationFrame(e)}}l(!0),u("close")}}),[n,r]),{isMounted:c,status:s}}function Un(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:o,common:i,duration:a=250}=t,l=e.placement,s=l.split("-")[0],u=ve.useMemo((()=>({side:s,placement:l})),[s,l]),c="number"==typeof a,f=(c?a:a.open)||0,d=(c?a:a.close)||0,[p,h]=ve.useState((()=>({...Bn(i,u),...Bn(n,u)}))),{isMounted:g,status:m}=$n(e,{duration:a}),y=bt(n),v=bt(r),b=bt(o),w=bt(i);return ot((()=>{const e=Bn(y.current,u),t=Bn(b.current,u),n=Bn(w.current,u),r=Bn(v.current,u)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===m&&h((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===m&&h({transitionProperty:Object.keys(r).map(Fn).join(","),transitionDuration:f+"ms",...n,...r}),"close"===m){const r=t||e;h({transitionProperty:Object.keys(r).map(Fn).join(","),transitionDuration:d+"ms",...n,...r})}}),[d,b,y,v,w,f,m,u]),{isMounted:g,styles:p}}function Hn(e,t){var n;const{open:r,dataRef:o}=e,{listRef:i,activeIndex:a,onMatch:l,onTypingChange:s,enabled:u=!0,findMatch:c=null,resetMs:f=750,ignoreKeys:d=[],selectedIndex:p=null}=t,h=ve.useRef(),g=ve.useRef(""),m=ve.useRef(null!=(n=null!=p?p:a)?n:-1),y=ve.useRef(null),v=fn(l),b=fn(s),w=bt(c),S=bt(d);return ot((()=>{r&&(clearTimeout(h.current),y.current=null,g.current="")}),[r]),ot((()=>{var e;r&&""===g.current&&(m.current=null!=(e=null!=p?p:a)?e:-1)}),[r,p,a]),ve.useMemo((()=>{if(!u)return{};function e(e){e?o.current.typing||(o.current.typing=e,b(e)):o.current.typing&&(o.current.typing=e,b(e))}function t(e,t,n){const r=w.current?w.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}function n(n){const o=i.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(o,o,g.current)?e(!1):" "===n.key&&$e(n)),null==o||S.current.includes(n.key)||1!==n.key.length||n.ctrlKey||n.metaKey||n.altKey)return;r&&" "!==n.key&&($e(n),e(!0)),o.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&g.current===n.key&&(g.current="",m.current=y.current),g.current+=n.key,clearTimeout(h.current),h.current=setTimeout((()=>{g.current="",m.current=y.current,e(!1)}),f);const a=m.current,l=t(o,[...o.slice((a||0)+1),...o.slice(0,(a||0)+1)],g.current);-1!==l?(v(l),y.current=l):" "!==n.key&&(g.current="",e(!1))}return{reference:{onKeyDown:n},floating:{onKeyDown:n,onKeyUp(t){" "===t.key&&e(!1)}}}}),[u,r,o,i,f,S,w,v,b])}function zn(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Gn=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:u,...c}=e,{rects:f,elements:{floating:d}}=t,p=n.current[a];if(!p)return{};const h={...t,...await j(-p.offsetTop-d.clientTop-f.reference.height/2-p.offsetHeight/2-i).fn(t)},g=(null==u?void 0:u.current)||d,m=await x(zn(h,g.scrollHeight),c),y=await x(h,{...c,elementContext:"reference"}),v=Math.max(0,m.top),b=h.y+v,w=Math.max(0,g.scrollHeight-v-Math.max(0,m.bottom));return g.style.maxHeight=w+"px",g.scrollTop=v,o&&(g.offsetHeight=-s||y.bottom>=-s?(0,we.flushSync)((()=>o(!0))):(0,we.flushSync)((()=>o(!1)))),r&&(r.current=await x(zn({...h,y:b},g.offsetHeight),c)),{y:b}}});function Vn(e,t){const{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:a,onChange:l}=t,s=fn(l),u=ve.useRef(!1),c=ve.useRef(null),f=ve.useRef(null);return ve.useEffect((()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;const n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,l=n<0?-1:1,u=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),(0,we.flushSync)((()=>{s((e=>e+Math[u](n,a*l)))}))):/firefox/i.test(Ie())&&(t.scrollTop+=n))}const t=(null==a?void 0:a.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{c.current=t.scrollTop,null!=i.current&&(f.current={...i.current})})),()=>{c.current=null,f.current=null,t.removeEventListener("wheel",e)}):void 0}),[o,n,r.floating,i,a,s]),ve.useMemo((()=>o?{floating:{onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==a?void 0:a.current)||r.floating;if(i.current&&e&&u.current){if(null!==c.current){const t=e.scrollTop-c.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&(0,we.flushSync)((()=>s((e=>e+t))))}requestAnimationFrame((()=>{c.current=e.scrollTop}))}}}}:{}),[o,i,r.floating,a,s])}function Wn(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e=r!=u>=r&&n<=(s-i)*(r-l)/(u-l)+i&&(o=!o)}return o}function Yn(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,l=null,s=performance.now();const u=e=>{let{x:n,y:u,placement:c,elements:f,onClose:d,nodeId:p,tree:h}=e;return function(e){function g(){clearTimeout(o),d()}if(clearTimeout(o),!f.domReference||!f.floating||null==c||null==n||null==u)return;const{clientX:m,clientY:y}=e,v=[m,y],b=Le(e),w="mouseleave"===e.type,S=Ae(f.floating,b),E=Ae(f.domReference,b),_=f.domReference.getBoundingClientRect(),T=f.floating.getBoundingClientRect(),O=c.split("-")[0],C=n>T.right-T.width/2,x=u>T.bottom-T.height/2,A=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(v,_),R=T.width>_.width,I=T.height>_.height,k=(R?_:T).left,P=(R?_:T).right,M=(I?_:T).top,D=(I?_:T).bottom;if(S&&(i=!0,!w))return;if(E&&(i=!1),E&&!w)return void(i=!0);if(w&&G(e.relatedTarget)&&Ae(f.floating,e.relatedTarget))return;if(h&&Rt(h.nodesRef.current,p).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===O&&u>=_.bottom-1||"bottom"===O&&u<=_.top+1||"left"===O&&n>=_.right-1||"right"===O&&n<=_.left+1)return g();let N=[];switch(O){case"top":N=[[k,_.top+1],[k,T.bottom-1],[P,T.bottom-1],[P,_.top+1]];break;case"bottom":N=[[k,T.top+1],[k,_.bottom-1],[P,_.bottom-1],[P,T.top+1]];break;case"left":N=[[T.right-1,D],[T.right-1,M],[_.left+1,M],[_.left+1,D]];break;case"right":N=[[_.right-1,D],[_.right-1,M],[T.left+1,M],[T.left+1,D]]}if(!Wn([m,y],N)){if(i&&!A)return g();if(!w&&r){const t=function(e,t){const n=performance.now(),r=n-s;if(null===a||null===l||0===r)return a=e,l=t,s=n,null;const o=e-a,i=t-l,u=Math.sqrt(o*o+i*i);return a=e,l=t,s=n,u/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}Wn([m,y],function(e){let[n,r]=e;switch(O){case"top":return[[R?n+t/2:C?n+4*t:n-4*t,r+t+1],[R?n-t/2:C?n+4*t:n-4*t,r+t+1],[T.left,C||R?T.bottom-t:T.top],[T.right,C?R?T.bottom-t:T.top:T.bottom-t]];case"bottom":return[[R?n+t/2:C?n+4*t:n-4*t,r-t],[R?n-t/2:C?n+4*t:n-4*t,r-t],[T.left,C||R?T.top+t:T.bottom],[T.right,C?R?T.top+t:T.bottom:T.top+t]];case"left":{const e=[n+t+1,I?r+t/2:x?r+4*t:r-4*t],o=[n+t+1,I?r-t/2:x?r+4*t:r-4*t];return[[x||I?T.right-t:T.left,T.top],[x?I?T.right-t:T.left:T.right-t,T.bottom],e,o]}case"right":return[[n-t,I?r+t/2:x?r+4*t:r-4*t],[n-t,I?r-t/2:x?r+4*t:r-4*t],[x||I?T.left+t:T.right,T.top],[x?I?T.left+t:T.right:T.left+t,T.bottom]]}}([n,u]))?!i&&r&&(o=window.setTimeout(g,40)):g()}}};return u.__options={blockPointerEvents:n},u}},2012:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(96540),o=n(5464);function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=i(r);t.flexRender=function(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?a.createElement(e,t):e:null;var n},t.useReactTable=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=a.useState((()=>({current:o.createTable(t)}))),[r,i]=a.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current},Object.keys(o).forEach((function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}))},38069:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={sum:(e,t,n)=>n.reduce(((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)}),0),min:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)})),r},max:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r=n)&&(r=n)})),r},extent:(e,t,n)=>{let r,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o{let n=0,r=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)})),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=0,r=0;return t.forEach((t=>{let o=t.getValue(e);"number"==typeof o&&(n=Math.min(n,o),r=Math.max(r,o))})),(n+r)/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length};t.aggregationFns=n},81920:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createColumnHelper=function(){return{accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}},10492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889);t.createCell=function(e,t,n,o){const i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:()=>{var t;return null!=(t=i.getValue())?t:e.options.renderFallbackValue},getContext:r.memo((()=>[e,n,t,i]),((e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue})),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach((r=>{Object.assign(i,null==r.createCell?void 0:r.createCell(i,n,t,e))}),{}),i}},53394:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889);t.createColumn=function(e,t,n,o){var i,a;const l={...e._getDefaultColumnDef(),...t},s=l.accessorKey;let u,c=null!=(i=null!=(a=l.id)?a:s?s.replace(".","_"):void 0)?i:"string"==typeof l.header?l.header:void 0;if(l.accessorFn?u=l.accessorFn:s&&(u=s.includes(".")?e=>{let t=e;for(const e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[l.accessorKey]),!c)throw new Error;let f={id:`${String(c)}`,accessorFn:u,parent:o,depth:n,columnDef:l,columns:[],getFlatColumns:r.memo((()=>[!0]),(()=>{var e;return[f,...null==(e=f.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:r.memo((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=f.columns)&&t.length){let t=f.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[f]}),{key:"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};return f=e._features.reduce(((t,n)=>Object.assign(t,null==n.createColumn?void 0:n.createColumn(f,e))),f),f}},35776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889);function o(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{Object.assign(o,null==t.createHeader?void 0:t.createHeader(o,e))})),o}const i={createTable:e=>({getHeaderGroups:r.memo((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>{var i,l;const s=null!=(i=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],u=null!=(l=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?l:[];return a(t,[...s,...n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),...u],e)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:r.memo((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>a(t,n=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:r.memo((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,r)=>{var o;return a(t,null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"left")}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:r.memo((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,r)=>{var o;return a(t,null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"right")}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:r.memo((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:r.memo((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:r.memo((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:r.memo((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:r.memo((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:r.memo((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:r.memo((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:r.memo((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:r.memo((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:r.memo((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:r.memo((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:r.memo((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var r,o,i,a,l,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(l=null==(s=n[0])?void 0:s.headers)?l:[]].map((e=>e.getLeafHeaders())).flat()}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})};function a(e,t,n,r){var i,a;let l=0;const s=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)}),0)};s(e);let u=[];const c=(e,t)=>{const i={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},a=[];e.forEach((e=>{const l=[...a].reverse()[0];let s,u=!1;if(e.column.depth===i.depth&&e.column.parent?s=e.column.parent:(s=e.column,u=!0),l&&(null==l?void 0:l.column)===s)l.subHeaders.push(e);else{const i=o(n,s,{id:[r,t,s.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:u,placeholderId:u?`${a.filter((e=>e.column===s)).length}`:void 0,depth:t,index:a.length});i.subHeaders.push(e),a.push(i)}i.headers.push(e),e.headerGroup=i})),u.push(i),t>0&&c(a,t-1)},f=t.map(((e,t)=>o(n,e,{depth:l,index:t})));c(f,l-1),u.reverse();const d=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)}))):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return d(null!=(i=null==(a=u[0])?void 0:a.headers)?i:[]),u}t.Headers=i,t.buildHeaderGroups=a},86162:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889),o=n(10492);t.createRow=(e,t,n,i,a,l)=>{let s={id:t,index:i,original:n,depth:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(s._valuesCache[t]=n.accessorFn(s.original,i),s._valuesCache[t]):void 0},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,i),s._uniqueValuesCache[t]):(s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=l?l:[],getLeafRows:()=>r.flattenBy(s.subRows,(e=>e.subRows)),getAllCells:r.memo((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>o.createCell(e,s,t,t.id)))),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:r.memo((()=>[s.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889),o=n(53394),i=n(35776),a=n(95468),l=n(46114),s=n(82993),u=n(81285),c=n(35012),f=n(13448),d=n(25303),p=n(57534),h=n(13154),g=n(82056);const m=[i.Headers,g.Visibility,c.Ordering,d.Pinning,s.Filters,h.Sorting,u.Grouping,l.Expanding,f.Pagination,p.RowSelection,a.ColumnSizing];t.createTable=function(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:m};const i=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let a={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;a=null!=(t=null==e.getInitialState?void 0:e.getInitialState(a))?t:a}));const l=[];let s=!1;const u={_features:m,options:{...i,...e},initialState:a,_queue:e=>{l.push(e),s||(s=!0,Promise.resolve().then((()=>{for(;l.length;)l.shift()();s=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=r.functionalUpdate(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,r)=>{var o;return null!=(o=null==n.options.getRowId?void 0:n.options.getRowId(e,t,r))?o:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:e=>{const t=n.getRowModel().rowsById[e];if(!t)throw new Error;return t},_getDefaultColumnDef:r.memo((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:r.memo((()=>[n._getColumnDefs()]),(e=>{const t=function(e,r,i){return void 0===i&&(i=0),e.map((e=>{const a=o.createColumn(n,e,i,r),l=e;return a.columns=l.columns?t(l.columns,a,i+1):[],a}))};return t(e)}),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:r.memo((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:r.memo((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:r.memo((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>{let n=e.flatMap((e=>e.getLeafColumns()));return t(n)}),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>n._getAllFlatColumnsById()[e]};return Object.assign(n,u),n._features.forEach((e=>Object.assign(n,null==e.createTable?void 0:e.createTable(n)))),n}},95468:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889);const o={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},i={getDefaultColumnDef:()=>o,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:r.makeStateUpdater("columnSizing",e),onColumnSizingInfoChange:r.makeStateUpdater("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var n,r,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:o.minSize,null!=(r=null!=a?a:e.columnDef.size)?r:o.size),null!=(i=e.columnDef.maxSize)?i:o.maxSize)},getStart:n=>{const r=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex((t=>t.id===e.id));if(o>0){const e=r[o-1];return e.getStart(n)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing((t=>{let{[e.id]:n,...r}=t;return r}))},getCanResize:()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},getStart:()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{const n=t.getColumn(e.column.id),r=null==n?void 0:n.getCanResize();return o=>{if(!n||!r)return;if(null==o.persist||o.persist(),s(o)&&o.touches&&o.touches.length>1)return;const i=e.getSize(),a=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[n.id,n.getSize()]],u=s(o)?Math.round(o.touches[0].clientX):o.clientX,c={},f=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var t,r;const o=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),i=Math.max(o/(null!=(r=null==e?void 0:e.startSize)?r:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*i,0))/100})),{...e,deltaOffset:o,deltaPercentage:i}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...c}))))},d=e=>f("move",e),p=e=>{f("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},h={moveHandler:e=>d(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",h.moveHandler),document.removeEventListener("mouseup",h.upHandler),p(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",g.moveHandler),document.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!l()&&{passive:!1};s(o)?(document.addEventListener("touchmove",g.moveHandler,m),document.addEventListener("touchend",g.upHandler,m)):(document.addEventListener("mousemove",h.moveHandler,m),document.addEventListener("mouseup",h.upHandler,m)),t.setColumnSizingInfo((e=>({...e,startOffset:u,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:n.id})))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},resetHeaderSizeInfo:t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},getTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getLeftTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getCenterTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getRightTotalSize:()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}})};let a=null;function l(){if("boolean"==typeof a)return a;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return a=e,a}function s(e){return"touchstart"===e.type}t.ColumnSizing=i,t.defaultColumnSizing=o,t.passiveEventSupported=l},46114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889);const o={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:r.makeStateUpdater("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;return{_autoResetExpanded:()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},setExpanded:t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),toggleAllRowsExpanded:t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},resetExpanded:t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},getCanSomeRowsExpand:()=>e.getRowModel().flatRows.some((e=>e.getCanExpand())),getToggleAllRowsExpandedHandler:()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},getIsAllRowsExpanded:()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},getExpandedDepth:()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())}},createRow:(e,t)=>({toggleExpanded:n=>{t.setExpanded((r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=r,n=null!=(o=n)?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=a;return n}return r}))},getIsExpanded:()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},getCanExpand:()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},getToggleExpandedHandler:()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}})};t.Expanding=o},82993:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6195),o=n(73889);const i={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:o.makeStateUpdater("columnFilters",e),onGlobalFilterChange:o.makeStateUpdater("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n,r;const o=null==(n=e.getCoreRowModel().flatRows[0])||null==(r=n._getAllCellsByColumnId()[t.id])?void 0:r.getValue();return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"string"==typeof o?r.filterFns.includesString:"number"==typeof o?r.filterFns.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?r.filterFns.equals:Array.isArray(o)?r.filterFns.arrIncludes:r.filterFns.weakEquals},getFilterFn:()=>{var n,i;return o.isFunction(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(i=t.options.filterFns)?void 0:i[e.columnDef.filterFn])?n:r.filterFns[e.columnDef.filterFn]},getCanFilter:()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},getCanGlobalFilter:()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var n,r;return null==(n=t.getState().columnFilters)||null==(r=n.find((t=>t.id===e.id)))?void 0:r.value},getFilterIndex:()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},setFilterValue:n=>{t.setColumnFilters((t=>{const r=e.getFilterFn(),i=null==t?void 0:t.find((t=>t.id===e.id)),l=o.functionalUpdate(n,i?i.value:void 0);var s;if(a(r,l,e))return null!=(s=null==t?void 0:t.filter((t=>t.id!==e.id)))?s:[];const u={id:e.id,value:l};var c;return i?null!=(c=null==t?void 0:t.map((t=>t.id===e.id?u:t)))?c:[]:null!=t&&t.length?[...t,u]:[u]}))},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>r.filterFns.includesString,getGlobalFilterFn:()=>{var t,n;const{globalFilterFn:i}=e.options;return o.isFunction(i)?i:"auto"===i?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[i])?t:r.filterFns[i]},setColumnFilters:t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var r;return null==(r=o.functionalUpdate(t,e))?void 0:r.filter((e=>{const t=n.find((t=>t.id===e.id));return!t||!a(t.getFilterFn(),e.value,t)}))}))},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})};function a(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}t.Filters=i,t.shouldAutoRemoveFilter=a},81285:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(38069),o=n(73889);const i={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o.makeStateUpdater("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},getCanGroup:()=>{var n,r,o,i;return null!=(n=null==(r=null!=(o=null==(i=e.columnDef.enableGrouping)||i)?o:t.options.enableGrouping)||r)?n:!!e.accessorFn},getIsGrouped:()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},getGroupedIndex:()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},getToggleGroupingHandler:()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const n=t.getCoreRowModel().flatRows[0],o=null==n?void 0:n.getValue(e.id);return"number"==typeof o?r.aggregationFns.sum:"[object Date]"===Object.prototype.toString.call(o)?r.aggregationFns.extent:void 0},getAggregationFn:()=>{var n,i;if(!e)throw new Error;return o.isFunction(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(i=t.options.aggregationFns)?void 0:i[e.columnDef.aggregationFn])?n:r.aggregationFns[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,n,r)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===n.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}})};t.Grouping=i,t.orderColumns=function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter((e=>!t.includes(e.id)));return"remove"===n?r:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...r]}},35012:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889),o=n(81285);const i={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:r.makeStateUpdater("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},_getOrderColumnsFn:r.memo((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>r=>{let i=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex((t=>t.id===e));r>-1&&i.push(n.splice(r,1)[0])}i=[...i,...n]}else i=r;return o.orderColumns(i,t,n)}),{key:!1})})};t.Ordering=i},13448:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889);const o={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:r.makeStateUpdater("pagination",e)}),createTable:e=>{let t=!1,n=!1;return{_autoResetPageIndex:()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>r.functionalUpdate(t,e))),resetPagination:t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},setPageIndex:t=>{e.setPagination((n=>{let o=r.functionalUpdate(t,n.pageIndex);const i=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,i)),{...n,pageIndex:o}}))},resetPageIndex:t=>{var n,r,o;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(o=r.pagination)?void 0:o.pageIndex)?n:0)},resetPageSize:t=>{var n,r,o;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(o=r.pagination)?void 0:o.pageSize)?n:10)},setPageSize:t=>{e.setPagination((e=>{const n=Math.max(1,r.functionalUpdate(t,e.pageSize)),o=e.pageSize*e.pageIndex,i=Math.floor(o/n);return{...e,pageIndex:i,pageSize:n}}))},setPageCount:t=>e.setPagination((n=>{var o;let i=r.functionalUpdate(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}})),getPageOptions:r.memo((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&te.setPageIndex((e=>e-1)),nextPage:()=>e.setPageIndex((e=>e+1)),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}};t.Pagination=o},25303:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889);const o={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:r.makeStateUpdater("columnPinning",e)}),createColumn:(e,t)=>({pin:n=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,i,a,l,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===n?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},getCanPin:()=>e.getLeafColumns().some((e=>{var n,r;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=t.options.enablePinning)||r)})),getIsPinned:()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:r,right:o}=t.getState().columnPinning,i=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==o?void 0:o.includes(e)));return i?"left":!!a&&"right"},getPinnedIndex:()=>{var n,r,o;const i=e.getIsPinned();return i?null!=(n=null==(r=t.getState().columnPinning)||null==(o=r[i])?void 0:o.indexOf(e.id))?n:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:r.memo((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.column.id)))}),{key:"row.getCenterVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:r.memo((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"row.getLeftVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:r.memo((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"row.getRightVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},getIsSomeColumnsPinned:t=>{var n;const r=e.getState().columnPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},getLeftLeafColumns:r.memo((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:r.memo((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:r.memo((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.id)))}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})};t.Pinning=o},57534:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889);const o={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:r.makeStateUpdater("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},toggleAllRowsSelected:t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):o.forEach((e=>{delete r[e.id]})),r}))},toggleAllPageRowsSelected:t=>e.setRowSelection((n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{i(o,t.id,r,e)})),o})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:r.memo((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?a(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:r.memo((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?a(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:r.memo((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?a(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(r=!1),r},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some((e=>!n[e.id]))&&(r=!1),r},getIsSomeRowsSelected:()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.some((e=>e.getIsSelected()||e.getIsSomeSelected()))},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:n=>{const r=e.getIsSelected();t.setRowSelection((o=>{if(r===(n=void 0!==n?n:!r))return o;const a={...o};return i(a,e.id,n,t),a}))},getIsSelected:()=>{const{rowSelection:n}=t.getState();return l(e,n)},getIsSomeSelected:()=>{const{rowSelection:n}=t.getState();return"some"===s(e,n)},getIsAllSubRowsSelected:()=>{const{rowSelection:n}=t.getState();return"all"===s(e,n)},getCanSelect:()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},getCanSelectSubRows:()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},getCanMultiSelect:()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},getToggleSelectedHandler:()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}})},i=(e,t,n,r)=>{var o;const a=r.getRow(t);n?(a.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),a.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(o=a.subRows)&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach((t=>i(e,t.id,n,r)))};function a(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map((e=>{var t;const a=l(e,n);if(a&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function l(e,t){var n;return null!=(n=t[e.id])&&n}function s(e,t,n){if(e.subRows&&e.subRows.length){let n=!0,r=!1;return e.subRows.forEach((e=>{r&&!n||(l(e,t)?r=!0:n=!1)})),n?"all":!!r&&"some"}return!1}t.RowSelection=o,t.isRowSelected=l,t.isSubRowSelected=s,t.selectRowsFn=a},13154:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(63667),o=n(73889);const i={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:o.makeStateUpdater("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return r.sortingFns.datetime;if("string"==typeof n&&(o=!0,n.split(r.reSplitAlphaNumeric).length>1))return r.sortingFns.alphanumeric}return o?r.sortingFns.text:r.sortingFns.basic},getAutoSortDir:()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var n,i;if(!e)throw new Error;return o.isFunction(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(i=t.options.sortingFns)?void 0:i[e.columnDef.sortingFn])?n:r.sortingFns[e.columnDef.sortingFn]},toggleSorting:(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting((a=>{const l=null==a?void 0:a.find((t=>t.id===e.id)),s=null==a?void 0:a.findIndex((t=>t.id===e.id));let u,c=[],f=i?n:"desc"===o;var d;return u=null!=a&&a.length&&e.getCanMultiSort()&&r?l?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":l?"toggle":"replace","toggle"===u&&(i||o||(u="remove")),"add"===u?(c=[...a,{id:e.id,desc:f}],c.splice(0,c.length-(null!=(d=t.options.maxMultiSortColCount)?d:Number.MAX_SAFE_INTEGER))):c="toggle"===u?a.map((t=>t.id===e.id?{...t,desc:f}:t)):"remove"===u?a.filter((t=>t.id!==e.id)):[{id:e.id,desc:f}],c}))},getFirstSortDir:()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},getNextSortingOrder:n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},getCanSort:()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},getCanMultiSort:()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},getIsSorted:()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!r&&(r.desc?"desc":"asc")},getSortIndex:()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},clearSorting:()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},getToggleSortingHandler:()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}}),createTable:e=>({setSorting:t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),resetSorting:t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})};t.Sorting=i},82056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889);const o={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:r.makeStateUpdater("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},getIsVisible:()=>{var n,r;return null==(n=null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},getCanHide:()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:r.memo((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:r.memo((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{const t=(t,n)=>r.memo((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),getVisibleLeafColumns:t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),setColumnVisibility:t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),resetColumnVisibility:t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},toggleAllColumnsVisible:t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),getToggleAllColumnsVisibilityHandler:()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}}};t.Visibility=o},6195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=(e,t,n)=>{var r;const o=n.toLowerCase();return Boolean(null==(r=e.getValue(t))?void 0:r.toLowerCase().includes(o))};n.autoRemove=e=>d(e);const r=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))?void 0:r.includes(n))};r.autoRemove=e=>d(e);const o=(e,t,n)=>{var r;return(null==(r=e.getValue(t))?void 0:r.toLowerCase())===n.toLowerCase()};o.autoRemove=e=>d(e);const i=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};i.autoRemove=e=>d(e)||!(null!=e&&e.length);const a=(e,t,n)=>!n.some((n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}));a.autoRemove=e=>d(e)||!(null!=e&&e.length);const l=(e,t,n)=>n.some((n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}));l.autoRemove=e=>d(e)||!(null!=e&&e.length);const s=(e,t,n)=>e.getValue(t)===n;s.autoRemove=e=>d(e);const u=(e,t,n)=>e.getValue(t)==n;u.autoRemove=e=>d(e);const c=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};c.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(o)?1/0:o;if(i>a){const e=i;i=a,a=e}return[i,a]},c.autoRemove=e=>d(e)||d(e[0])&&d(e[1]);const f={includesString:n,includesStringSensitive:r,equalsString:o,arrIncludes:i,arrIncludesAll:a,arrIncludesSome:l,equals:s,weakEquals:u,inNumberRange:c};function d(e){return null==e||""===e}t.filterFns=f},5464:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1198),o=n(53394),i=n(35776),a=n(86162),l=n(10492),s=n(95468),u=n(46114),c=n(82993),f=n(81285),d=n(35012),p=n(13448),h=n(25303),g=n(57534),m=n(13154),y=n(82056),v=n(6195),b=n(63667),w=n(38069),S=n(81920),E=n(73889),_=n(38340),T=n(56316),O=n(10019),C=n(21791),x=n(95874),A=n(39610),R=n(74455),I=n(92594),k=n(20747);t.createTable=r.createTable,t.createColumn=o.createColumn,t.Headers=i.Headers,t.buildHeaderGroups=i.buildHeaderGroups,t.createRow=a.createRow,t.createCell=l.createCell,t.ColumnSizing=s.ColumnSizing,t.defaultColumnSizing=s.defaultColumnSizing,t.passiveEventSupported=s.passiveEventSupported,t.Expanding=u.Expanding,t.Filters=c.Filters,t.shouldAutoRemoveFilter=c.shouldAutoRemoveFilter,t.Grouping=f.Grouping,t.orderColumns=f.orderColumns,t.Ordering=d.Ordering,t.Pagination=p.Pagination,t.Pinning=h.Pinning,t.RowSelection=g.RowSelection,t.isRowSelected=g.isRowSelected,t.isSubRowSelected=g.isSubRowSelected,t.selectRowsFn=g.selectRowsFn,t.Sorting=m.Sorting,t.Visibility=y.Visibility,t.filterFns=v.filterFns,t.reSplitAlphaNumeric=b.reSplitAlphaNumeric,t.sortingFns=b.sortingFns,t.aggregationFns=w.aggregationFns,t.createColumnHelper=S.createColumnHelper,t.flattenBy=E.flattenBy,t.functionalUpdate=E.functionalUpdate,t.isFunction=E.isFunction,t.makeStateUpdater=E.makeStateUpdater,t.memo=E.memo,t.noop=E.noop,t.getCoreRowModel=_.getCoreRowModel,t.getFilteredRowModel=T.getFilteredRowModel,t.getFacetedRowModel=O.getFacetedRowModel,t.getFacetedUniqueValues=C.getFacetedUniqueValues,t.getFacetedMinMaxValues=x.getFacetedMinMaxValues,t.getSortedRowModel=A.getSortedRowModel,t.getGroupedRowModel=R.getGroupedRowModel,t.expandRows=I.expandRows,t.getExpandedRowModel=I.getExpandedRowModel,t.getPaginationRowModel=k.getPaginationRowModel},63667:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=/([0-9]+)/gm;function r(e,t){return e===t?0:e>t?1:-1}function o(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function i(e,t){const r=e.split(n).filter(Boolean),o=t.split(n).filter(Boolean);for(;r.length&&o.length;){const e=r.shift(),t=o.shift(),n=parseInt(e,10),i=parseInt(t,10),a=[n,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(n)?-1:1;if(n>i)return 1;if(i>n)return-1}}return r.length-o.length}const a={alphanumeric:(e,t,n)=>i(o(e.getValue(n)).toLowerCase(),o(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>i(o(e.getValue(n)),o(t.getValue(n))),text:(e,t,n)=>r(o(e.getValue(n)).toLowerCase(),o(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>r(o(e.getValue(n)),o(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:rr(e.getValue(n),t.getValue(n))};t.reSplitAlphaNumeric=n,t.sortingFns=a},73889:(e,t)=>{"use strict";function n(e,t){return"function"==typeof e?e(t):e}Object.defineProperty(t,"__esModule",{value:!0}),t.flattenBy=function(e,t){const n=[],r=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)}))};return r(e),n},t.functionalUpdate=n,t.isFunction=function(e){return e instanceof Function},t.makeStateUpdater=function(e,t){return r=>{t.setState((t=>({...t,[e]:n(r,t[e])})))}},t.memo=function(e,t,n){let r,o=[];return()=>{let i;n.key&&n.debug&&(i=Date.now());const a=e();if(a.length===o.length&&!a.some(((e,t)=>o[t]!==e)))return r;let l;if(o=a,n.key&&n.debug&&(l=Date.now()),r=t(...a),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-i))/100,t=Math.round(100*(Date.now()-l))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(86162);function o(e,t,n){var o;const i={},a=null!=(o=n.options.maxLeafRowFilterDepth)?o:100,l=function(e,o){void 0===o&&(o=0);const s=[];for(let c=0;c{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(86162),o=n(73889);t.getCoreRowModel=function(){return e=>o.memo((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(t,i,a){void 0===i&&(i=0);const l=[];for(let u=0;u{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}},92594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889);function o(e){const t=[],n=e=>{var r;t.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}t.expandRows=o,t.getExpandedRowModel=function(){return e=>r.memo((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?o(t):t),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}})}},95874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889);t.getFacetedMinMaxValues=function(){return(e,t)=>r.memo((()=>{var n;return[null==(n=e.getColumn(t))?void 0:n.getFacetedRowModel()]}),(e=>{var n;if(!e)return;const r=null==(n=e.flatRows[0])?void 0:n.getUniqueValues(t);if(void 0===r)return;let o=[r,r];for(let n=0;no[1]&&(o[1]=t)}}return o}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{}})}},10019:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889),o=n(78662);t.getFacetedRowModel=function(){return(e,t)=>r.memo((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()]),((n,r,i)=>{if(!n.rows.length||(null==r||!r.length)&&!i)return n;const a=[...r.map((e=>e.id)).filter((e=>e!==t)),i?"__global__":void 0].filter(Boolean);return o.filterRows(n.rows,(e=>{for(let t=0;t{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{}})}},21791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889);t.getFacetedUniqueValues=function(){return(e,t)=>r.memo((()=>{var n;return[null==(n=e.getColumn(t))?void 0:n.getFacetedRowModel()]}),(e=>{if(!e)return new Map;let n=new Map;for(let o=0;o{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{}})}},56316:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889),o=n(78662);t.getFilteredRowModel=function(){return e=>r.memo((()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter]),((t,n,r)=>{if(!t.rows.length||(null==n||!n.length)&&!r){for(let e=0;e{var n;const r=e.getColumn(t.id);if(!r)return;const o=r.getFilterFn();o&&i.push({id:t.id,filterFn:o,resolvedValue:null!=(n=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?n:t.value})}));const l=n.map((e=>e.id)),s=e.getGlobalFilterFn(),u=e.getAllLeafColumns().filter((e=>e.getCanGlobalFilter()));let c,f;r&&s&&u.length&&(l.push("__global__"),u.forEach((e=>{var t;a.push({id:e.id,filterFn:s,resolvedValue:null!=(t=null==s.resolveFilterValue?void 0:s.resolveFilterValue(r))?t:r})})));for(let e=0;e{n.columnFiltersMeta[t]=e}))}if(a.length){for(let e=0;e{n.columnFiltersMeta[t]=e}))){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return o.filterRows(t.rows,(e=>{for(let t=0;t{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}},74455:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(86162),o=n(73889);t.getGroupedRowModel=function(){return e=>o.memo((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n;const i=t.filter((t=>e.getColumn(t))),a=[],l={},s=function(t,n,u){if(void 0===n&&(n=0),n>=i.length)return t.map((e=>(e.depth=n,a.push(e),l[e.id]=e,e.subRows&&(e.subRows=s(e.subRows,n+1)),e)));const c=i[n],f=function(e,t){const n=new Map;return e.reduce(((e,n)=>{const r=`${n.getValue(t)}`,o=e.get(r);return o?o.push(n):e.set(r,[n]),e}),n)}(t,c),d=Array.from(f.entries()).map(((t,f)=>{let[d,p]=t,h=`${c}:${d}`;h=u?`${u}>${h}`:h;const g=s(p,n+1,h),m=n?o.flattenBy(p,(e=>e.subRows)):p,y=r.createRow(e,h,m[0].original,f,n);return Object.assign(y,{groupingColumnId:c,groupingValue:d,subRows:g,leafRows:m,getValue:t=>{var n;if(i.includes(t))return y._valuesCache.hasOwnProperty(t)||p[0]&&(y._valuesCache[t]=null!=(n=p[0].getValue(t))?n:void 0),y._valuesCache[t];if(y._groupingValuesCache.hasOwnProperty(t))return y._groupingValuesCache[t];const r=e.getColumn(t),o=null==r?void 0:r.getAggregationFn();return o?(y._groupingValuesCache[t]=o(t,m,p),y._groupingValuesCache[t]):void 0}}),g.forEach((e=>{a.push(e),l[e.id]=e})),y}));return d},u=s(n.rows,0,"");return u.forEach((e=>{a.push(e),l[e.id]=e})),{rows:u,flatRows:a,rowsById:l}}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}},20747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889),o=n(92594);t.getPaginationRowModel=function(e){return e=>r.memo((()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded]),((t,n)=>{if(!n.rows.length)return n;const{pageSize:r,pageIndex:i}=t;let{rows:a,flatRows:l,rowsById:s}=n;const u=r*i,c=u+r;let f;a=a.slice(u,c),f=e.options.paginateExpandedRows?{rows:a,flatRows:l,rowsById:s}:o.expandRows({rows:a,flatRows:l,rowsById:s}),f.flatRows=[];const d=e=>{f.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d)};return f.rows.forEach(d),f}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}})}},39610:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73889);t.getSortedRowModel=function(){return e=>r.memo((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n;const r=e.getState().sorting,o=[],i=r.filter((t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),a={};i.forEach((t=>{const n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})}));const l=e=>{const t=[...e];return t.sort(((e,t)=>{for(let r=0;r{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=l(e.subRows))})),t};return{rows:l(n.rows),flatRows:o,rowsById:n.rowsById}}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}},17965:(e,t,n)=>{"use strict";var r=n(16426),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,s,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),s=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),l.selectNodeContents(u),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},67044:(e,t,n)=>{"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{A:()=>r})},70551:(e,t,n)=>{"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{A:()=>r})},51831:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},o="trunc";function i(e){return e?r[e]:r[o]}},94188:(e,t,n)=>{"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{A:()=>r})},93165:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(92998),o=n(2118),i=n(10123),a=n(70551),l=n(94188);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){if((0,a.A)(2,arguments),!t||"object"!==s(t))return new Date(NaN);var n=t.years?(0,l.A)(t.years):0,u=t.months?(0,l.A)(t.months):0,c=t.weeks?(0,l.A)(t.weeks):0,f=t.days?(0,l.A)(t.days):0,d=t.hours?(0,l.A)(t.hours):0,p=t.minutes?(0,l.A)(t.minutes):0,h=t.seconds?(0,l.A)(t.seconds):0,g=(0,i.A)(e),m=u||n?(0,o.A)(g,u+12*n):g,y=f||c?(0,r.A)(m,f+7*c):m,v=1e3*(h+60*(p+60*d));return new Date(y.getTime()+v)}},92998:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(94188),o=n(10123),i=n(70551);function a(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),a=(0,r.A)(t);return isNaN(a)?new Date(NaN):a?(n.setDate(n.getDate()+a),n):n}},2118:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(94188),o=n(10123),i=n(70551);function a(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),a=(0,r.A)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var l=n.getDate(),s=new Date(n.getTime());return s.setMonth(n.getMonth()+a+1,0),l>=s.getDate()?s:(n.setFullYear(s.getFullYear(),s.getMonth(),l),n)}},6982:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(10123),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(e),i=(0,r.A)(t),a=n.getTime()-i.getTime();return a<0?-1:a>0?1:a}},57499:(e,t,n)=>{"use strict";n.d(t,{BM:()=>b,Cg:()=>a,GW:()=>i,Ki:()=>o,Mf:()=>v,Z7:()=>w,_m:()=>s,bF:()=>g,e8:()=>d,gs:()=>p,h:()=>r,hq:()=>y,l5:()=>c,pe:()=>m,rI:()=>f,s0:()=>l,tF:()=>h,uL:()=>u});var r=7,o=365.2425,i=24*Math.pow(10,8)*60*60*1e3,a=6e4,l=36e5,s=1e3,u=-i,c=60,f=3,d=12,p=4,h=3600,g=60,m=24*h,y=7*m,v=m*o,b=v/12,w=3*b},40063:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(67044),o=n(31127),i=n(70551),a=864e5;function l(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),l=(0,o.A)(t),s=n.getTime()-(0,r.A)(n),u=l.getTime()-(0,r.A)(l);return Math.round((s-u)/a)}},60667:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(10123),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(e),i=(0,r.A)(t);return 12*(n.getFullYear()-i.getFullYear())+(n.getMonth()-i.getMonth())}},82002:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(10123),o=n(70551);function i(e,t){(0,o.A)(2,arguments);var n=(0,r.A)(e),i=(0,r.A)(t);return n.getFullYear()-i.getFullYear()}},89045:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(10123),o=n(40063),i=n(70551);function a(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function l(e,t){(0,i.A)(2,arguments);var n=(0,r.A)(e),l=(0,r.A)(t),s=a(n,l),u=Math.abs((0,o.A)(n,l));n.setDate(n.getDate()-s*u);var c=s*(u-Number(a(n,l)===-s));return 0===c?0:c}},43253:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57499),o=n(81384),i=n(70551),a=n(51831);function l(e,t,n){(0,i.A)(2,arguments);var l=(0,o.A)(e,t)/r.s0;return(0,a.u)(null==n?void 0:n.roundingMethod)(l)}},81384:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(10123),o=n(70551);function i(e,t){return(0,o.A)(2,arguments),(0,r.A)(e).getTime()-(0,r.A)(t).getTime()}},53303:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(57499),o=n(81384),i=n(70551),a=n(51831);function l(e,t,n){(0,i.A)(2,arguments);var l=(0,o.A)(e,t)/r.Cg;return(0,a.u)(null==n?void 0:n.roundingMethod)(l)}},21897:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(10123),o=n(60667),i=n(6982),a=n(70551),l=n(22613);function s(e,t){(0,a.A)(2,arguments);var n,s=(0,r.A)(e),u=(0,r.A)(t),c=(0,i.A)(s,u),f=Math.abs((0,o.A)(s,u));if(f<1)n=0;else{1===s.getMonth()&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-c*f);var d=(0,i.A)(s,u)===-c;(0,l.A)((0,r.A)(e))&&1===f&&1===(0,i.A)(e,u)&&(d=!1),n=c*(f-Number(d))}return 0===n?0:n}},90063:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(81384),o=n(70551),i=n(51831);function a(e,t,n){(0,o.A)(2,arguments);var a=(0,r.A)(e,t)/1e3;return(0,i.u)(null==n?void 0:n.roundingMethod)(a)}},74952:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(10123),o=n(82002),i=n(6982),a=n(70551);function l(e,t){(0,a.A)(2,arguments);var n=(0,r.A)(e),l=(0,r.A)(t),s=(0,i.A)(n,l),u=Math.abs((0,o.A)(n,l));n.setFullYear(1584),l.setFullYear(1584);var c=(0,i.A)(n,l)===-s,f=s*(u-Number(c));return 0===f?0:f}},66212:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(10123),o=n(70551);function i(e){(0,o.A)(1,arguments);var t=(0,r.A)(e);return t.setHours(23,59,59,999),t}},19312:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(10123),o=n(70551);function i(e){(0,o.A)(1,arguments);var t=(0,r.A)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},97842:(e,t,n)=>{"use strict";n.r(t),n.d(t,{add:()=>r.A,addBusinessDays:()=>c,addDays:()=>f.A,addHours:()=>h,addISOWeekYears:()=>T,addMilliseconds:()=>d,addMinutes:()=>C,addMonths:()=>x.A,addQuarters:()=>A,addSeconds:()=>R,addWeeks:()=>I,addYears:()=>k,areIntervalsOverlapping:()=>P,clamp:()=>L,closestIndexTo:()=>F,closestTo:()=>B,compareAsc:()=>$.A,compareDesc:()=>U,daysInWeek:()=>H.h,daysInYear:()=>H.Ki,daysToWeeks:()=>z,differenceInBusinessDays:()=>K,differenceInCalendarDays:()=>E.A,differenceInCalendarISOWeekYears:()=>Q,differenceInCalendarISOWeeks:()=>J,differenceInCalendarMonths:()=>ee.A,differenceInCalendarQuarters:()=>ne,differenceInCalendarWeeks:()=>oe,differenceInCalendarYears:()=>ie.A,differenceInDays:()=>ae.A,differenceInHours:()=>le.A,differenceInISOWeekYears:()=>ue,differenceInMilliseconds:()=>ce.A,differenceInMinutes:()=>fe.A,differenceInMonths:()=>de.A,differenceInQuarters:()=>he,differenceInSeconds:()=>ge.A,differenceInWeeks:()=>me,differenceInYears:()=>ye.A,eachDayOfInterval:()=>ve,eachHourOfInterval:()=>be,eachMinuteOfInterval:()=>Se,eachMonthOfInterval:()=>Ee,eachQuarterOfInterval:()=>Te,eachWeekOfInterval:()=>Oe,eachWeekendOfInterval:()=>Ce,eachWeekendOfMonth:()=>Re,eachWeekendOfYear:()=>Pe,eachYearOfInterval:()=>Me,endOfDay:()=>De.A,endOfDecade:()=>Ne,endOfHour:()=>je,endOfISOWeek:()=>Fe,endOfISOWeekYear:()=>Be,endOfMinute:()=>$e,endOfMonth:()=>Ae.A,endOfQuarter:()=>Ue,endOfSecond:()=>He,endOfToday:()=>ze,endOfTomorrow:()=>Ge,endOfWeek:()=>Le,endOfYear:()=>Ie,endOfYesterday:()=>Ve,format:()=>At,formatDistance:()=>Nt,formatDistanceStrict:()=>$t,formatDistanceToNow:()=>Ut,formatDistanceToNowStrict:()=>Ht,formatDuration:()=>Gt,formatISO:()=>Vt,formatISO9075:()=>Wt,formatISODuration:()=>qt,formatRFC3339:()=>Kt,formatRFC7231:()=>Zt,formatRelative:()=>Jt,fromUnixTime:()=>en,getDate:()=>tn,getDay:()=>nn,getDayOfYear:()=>rn,getDaysInMonth:()=>on,getDaysInYear:()=>ln,getDecade:()=>sn,getDefaultOptions:()=>un,getHours:()=>cn,getISODay:()=>fn,getISOWeek:()=>pn,getISOWeekYear:()=>w,getISOWeeksInYear:()=>gn,getMilliseconds:()=>mn,getMinutes:()=>yn,getMonth:()=>vn,getOverlappingDaysInIntervals:()=>wn,getQuarter:()=>te,getSeconds:()=>Sn,getTime:()=>En,getUnixTime:()=>_n,getWeek:()=>xn,getWeekOfMonth:()=>An,getWeekYear:()=>Tn,getWeeksInMonth:()=>In,getYear:()=>kn,hoursToMilliseconds:()=>Pn,hoursToMinutes:()=>Mn,hoursToSeconds:()=>Dn,intervalToDuration:()=>Nn.default,intlFormat:()=>jn,intlFormatDistance:()=>Ln,isAfter:()=>Fn,isBefore:()=>Bn,isDate:()=>Y,isEqual:()=>$n,isExists:()=>Un,isFirstDayOfMonth:()=>Hn,isFriday:()=>zn,isFuture:()=>Gn,isLastDayOfMonth:()=>Vn.A,isLeapYear:()=>an,isMatch:()=>ns,isMonday:()=>rs,isPast:()=>os,isSameDay:()=>V,isSameHour:()=>as,isSameISOWeek:()=>ss,isSameISOWeekYear:()=>us,isSameMinute:()=>cs,isSameMonth:()=>fs,isSameQuarter:()=>ds,isSameSecond:()=>hs,isSameWeek:()=>ls,isSameYear:()=>gs,isSaturday:()=>u,isSunday:()=>s,isThisHour:()=>ms,isThisISOWeek:()=>ys,isThisMinute:()=>vs,isThisMonth:()=>bs,isThisQuarter:()=>ws,isThisSecond:()=>Ss,isThisWeek:()=>Es,isThisYear:()=>_s,isThursday:()=>Ts,isToday:()=>Os,isTomorrow:()=>Cs,isTuesday:()=>xs,isValid:()=>q,isWednesday:()=>As,isWeekend:()=>a,isWithinInterval:()=>Rs,isYesterday:()=>ks,lastDayOfDecade:()=>Ps,lastDayOfISOWeek:()=>Ds,lastDayOfISOWeekYear:()=>Ns,lastDayOfMonth:()=>Rn,lastDayOfQuarter:()=>js,lastDayOfWeek:()=>Ms,lastDayOfYear:()=>Ls,lightFormat:()=>Hs,max:()=>D,maxTime:()=>H.GW,milliseconds:()=>Gs,millisecondsInHour:()=>H.s0,millisecondsInMinute:()=>H.Cg,millisecondsInSecond:()=>H._m,millisecondsToHours:()=>Vs,millisecondsToMinutes:()=>Ws,millisecondsToSeconds:()=>Ys,min:()=>j,minTime:()=>H.uL,minutesInHour:()=>H.l5,minutesToHours:()=>qs,minutesToMilliseconds:()=>Ks,minutesToSeconds:()=>Qs,monthsInQuarter:()=>H.rI,monthsInYear:()=>H.e8,monthsToQuarters:()=>Xs,monthsToYears:()=>Zs,nextDay:()=>Js,nextFriday:()=>eu,nextMonday:()=>tu,nextSaturday:()=>nu,nextSunday:()=>ru,nextThursday:()=>ou,nextTuesday:()=>iu,nextWednesday:()=>au,parse:()=>ts,parseISO:()=>lu,parseJSON:()=>mu,previousDay:()=>yu,previousFriday:()=>vu,previousMonday:()=>bu,previousSaturday:()=>wu,previousSunday:()=>Su,previousThursday:()=>Eu,previousTuesday:()=>_u,previousWednesday:()=>Tu,quartersInYear:()=>H.gs,quartersToMonths:()=>Ou,quartersToYears:()=>Cu,roundToNearestMinutes:()=>xu,secondsInDay:()=>H.pe,secondsInHour:()=>H.tF,secondsInMinute:()=>H.bF,secondsInMonth:()=>H.BM,secondsInQuarter:()=>H.Z7,secondsInWeek:()=>H.hq,secondsInYear:()=>H.Mf,secondsToHours:()=>Au,secondsToMilliseconds:()=>Ru,secondsToMinutes:()=>Iu,set:()=>Mu,setDate:()=>Du,setDay:()=>Nu,setDayOfYear:()=>ju,setDefaultOptions:()=>Lu,setHours:()=>Fu,setISODay:()=>Bu,setISOWeek:()=>$u,setISOWeekYear:()=>_,setMilliseconds:()=>Uu,setMinutes:()=>Hu,setMonth:()=>ku,setQuarter:()=>zu,setSeconds:()=>Gu,setWeek:()=>Vu,setWeekYear:()=>Wu,setYear:()=>Yu,startOfDay:()=>G.A,startOfDecade:()=>qu,startOfHour:()=>is,startOfISOWeek:()=>b,startOfISOWeekYear:()=>S,startOfMinute:()=>we,startOfMonth:()=>xe,startOfQuarter:()=>_e,startOfSecond:()=>ps,startOfToday:()=>Ku,startOfTomorrow:()=>Qu,startOfWeek:()=>v,startOfWeekYear:()=>On,startOfYear:()=>ke,startOfYesterday:()=>Xu,sub:()=>ec,subBusinessDays:()=>tc,subDays:()=>Is,subHours:()=>nc,subISOWeekYears:()=>se,subMilliseconds:()=>We,subMinutes:()=>rc,subMonths:()=>Zu,subQuarters:()=>oc,subSeconds:()=>ic,subWeeks:()=>ac,subYears:()=>lc,toDate:()=>o.A,weeksToDays:()=>sc,yearsToMonths:()=>uc,yearsToQuarters:()=>cc});var r=n(93165),o=n(10123),i=n(70551);function a(e){(0,i.A)(1,arguments);var t=(0,o.A)(e).getDay();return 0===t||6===t}var l=n(94188);function s(e){return(0,i.A)(1,arguments),0===(0,o.A)(e).getDay()}function u(e){return(0,i.A)(1,arguments),6===(0,o.A)(e).getDay()}function c(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=a(n),c=(0,l.A)(t);if(isNaN(c))return new Date(NaN);var f=n.getHours(),d=c<0?-1:1,p=(0,l.A)(c/5);n.setDate(n.getDate()+7*p);for(var h=Math.abs(c%5);h>0;)n.setDate(n.getDate()+d),a(n)||(h-=1);return r&&a(n)&&0!==c&&(u(n)&&n.setDate(n.getDate()+(d<0?2:-1)),s(n)&&n.setDate(n.getDate()+(d<0?1:-2))),n.setHours(f),n}var f=n(92998);function d(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e).getTime(),r=(0,l.A)(t);return new Date(n+r)}var p=36e5;function h(e,t){return(0,i.A)(2,arguments),d(e,(0,l.A)(t)*p)}var g={};function m(){return g}function y(e){g=e}function v(e,t){var n,r,a,s,u,c,f,d;(0,i.A)(1,arguments);var p=m(),h=(0,l.A)(null!==(n=null!==(r=null!==(a=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(u=t.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==a?a:p.weekStartsOn)&&void 0!==r?r:null===(f=p.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,o.A)(e),y=g.getDay(),v=(y=a.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function S(e){(0,i.A)(1,arguments);var t=w(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),b(n)}var E=n(40063);function _(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,l.A)(t),a=(0,E.A)(n,S(n)),s=new Date(0);return s.setFullYear(r,0,4),s.setHours(0,0,0,0),(n=S(s)).setDate(n.getDate()+a),n}function T(e,t){(0,i.A)(2,arguments);var n=(0,l.A)(t);return _(e,w(e)+n)}var O=6e4;function C(e,t){return(0,i.A)(2,arguments),d(e,(0,l.A)(t)*O)}var x=n(2118);function A(e,t){(0,i.A)(2,arguments);var n=3*(0,l.A)(t);return(0,x.A)(e,n)}function R(e,t){return(0,i.A)(2,arguments),d(e,1e3*(0,l.A)(t))}function I(e,t){(0,i.A)(2,arguments);var n=7*(0,l.A)(t);return(0,f.A)(e,n)}function k(e,t){(0,i.A)(2,arguments);var n=(0,l.A)(t);return(0,x.A)(e,12*n)}function P(e,t,n){(0,i.A)(2,arguments);var r=(0,o.A)(null==e?void 0:e.start).getTime(),a=(0,o.A)(null==e?void 0:e.end).getTime(),l=(0,o.A)(null==t?void 0:t.start).getTime(),s=(0,o.A)(null==t?void 0:t.end).getTime();if(!(r<=a&&l<=s))throw new RangeError("Invalid interval");return null!=n&&n.inclusive?r<=s&&l<=a:rt||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}function L(e,t){var n=t.start,r=t.end;return(0,i.A)(2,arguments),j([D([e,n]),r])}function F(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e);if(isNaN(Number(n)))return NaN;var r,a,l=n.getTime();return(null==t?[]:"function"==typeof t.forEach?t:Array.prototype.slice.call(t)).forEach((function(e,t){var n=(0,o.A)(e);if(isNaN(Number(n)))return r=NaN,void(a=NaN);var i=Math.abs(l-n.getTime());(null==r||i0?-1:a<0?1:a}var H=n(57499);function z(e){(0,i.A)(1,arguments);var t=e/H.h;return Math.floor(t)}var G=n(31127);function V(e,t){(0,i.A)(2,arguments);var n=(0,G.A)(e),r=(0,G.A)(t);return n.getTime()===r.getTime()}function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function Y(e){return(0,i.A)(1,arguments),e instanceof Date||"object"===W(e)&&"[object Date]"===Object.prototype.toString.call(e)}function q(e){if((0,i.A)(1,arguments),!Y(e)&&"number"!=typeof e)return!1;var t=(0,o.A)(e);return!isNaN(Number(t))}function K(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,o.A)(t);if(!q(n)||!q(r))return NaN;var s=(0,E.A)(n,r),u=s<0?-1:1,c=(0,l.A)(s/7),d=5*c;for(r=(0,f.A)(r,7*c);!V(n,r);)d+=a(r)?0:u,r=(0,f.A)(r,u);return 0===d?0:d}function Q(e,t){return(0,i.A)(2,arguments),w(e)-w(t)}var X=n(67044),Z=6048e5;function J(e,t){(0,i.A)(2,arguments);var n=b(e),r=b(t),o=n.getTime()-(0,X.A)(n),a=r.getTime()-(0,X.A)(r);return Math.round((o-a)/Z)}var ee=n(60667);function te(e){(0,i.A)(1,arguments);var t=(0,o.A)(e);return Math.floor(t.getMonth()/3)+1}function ne(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,o.A)(t);return 4*(n.getFullYear()-r.getFullYear())+(te(n)-te(r))}var re=6048e5;function oe(e,t,n){(0,i.A)(2,arguments);var r=v(e,n),o=v(t,n),a=r.getTime()-(0,X.A)(r),l=o.getTime()-(0,X.A)(o);return Math.round((a-l)/re)}var ie=n(82002),ae=n(89045),le=n(43253);function se(e,t){return(0,i.A)(2,arguments),T(e,-(0,l.A)(t))}function ue(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,o.A)(t),a=(0,$.A)(n,r),l=Math.abs(Q(n,r));n=se(n,a*l);var s=a*(l-Number((0,$.A)(n,r)===-a));return 0===s?0:s}var ce=n(81384),fe=n(53303),de=n(21897),pe=n(51831);function he(e,t,n){(0,i.A)(2,arguments);var r=(0,de.A)(e,t)/3;return(0,pe.u)(null==n?void 0:n.roundingMethod)(r)}var ge=n(90063);function me(e,t,n){(0,i.A)(2,arguments);var r=(0,ae.A)(e,t)/7;return(0,pe.u)(null==n?void 0:n.roundingMethod)(r)}var ye=n(74952);function ve(e,t){var n;(0,i.A)(1,arguments);var r=e||{},a=(0,o.A)(r.start),l=(0,o.A)(r.end).getTime();if(!(a.getTime()<=l))throw new RangeError("Invalid interval");var s=[],u=a;u.setHours(0,0,0,0);var c=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=l;)s.push((0,o.A)(u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return s}function be(e,t){var n;(0,i.A)(1,arguments);var r=e||{},a=(0,o.A)(r.start),l=(0,o.A)(r.end),s=a.getTime(),u=l.getTime();if(!(s<=u))throw new RangeError("Invalid interval");var c=[],f=a;f.setMinutes(0,0,0);var d=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(d<1||isNaN(d))throw new RangeError("`options.step` must be a number greater than 1");for(;f.getTime()<=u;)c.push((0,o.A)(f)),f=h(f,d);return c}function we(e){(0,i.A)(1,arguments);var t=(0,o.A)(e);return t.setSeconds(0,0),t}function Se(e,t){var n;(0,i.A)(1,arguments);var r=we((0,o.A)(e.start)),a=(0,o.A)(e.end),l=r.getTime(),s=a.getTime();if(l>=s)throw new RangeError("Invalid interval");var u=[],c=r,f=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(f<1||isNaN(f))throw new RangeError("`options.step` must be a number equal to or greater than 1");for(;c.getTime()<=s;)u.push((0,o.A)(c)),c=C(c,f);return u}function Ee(e){(0,i.A)(1,arguments);var t=e||{},n=(0,o.A)(t.start),r=(0,o.A)(t.end).getTime(),a=[];if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var l=n;for(l.setHours(0,0,0,0),l.setDate(1);l.getTime()<=r;)a.push((0,o.A)(l)),l.setMonth(l.getMonth()+1);return a}function _e(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function Te(e){(0,i.A)(1,arguments);var t=e||{},n=(0,o.A)(t.start),r=(0,o.A)(t.end),a=r.getTime();if(!(n.getTime()<=a))throw new RangeError("Invalid interval");var l=_e(n);a=_e(r).getTime();for(var s=[],u=l;u.getTime()<=a;)s.push((0,o.A)(u)),u=A(u,1);return s}function Oe(e,t){(0,i.A)(1,arguments);var n=e||{},r=(0,o.A)(n.start),a=(0,o.A)(n.end),l=a.getTime();if(!(r.getTime()<=l))throw new RangeError("Invalid interval");var s=v(r,t),u=v(a,t);s.setHours(15),u.setHours(15),l=u.getTime();for(var c=[],f=s;f.getTime()<=l;)f.setHours(0),c.push((0,o.A)(f)),(f=I(f,1)).setHours(15);return c}function Ce(e){(0,i.A)(1,arguments);for(var t=ve(e),n=[],r=0;r=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,o.A)(e),y=g.getDay(),v=6+(y=a.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Ke(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),n=Ye(t).getTime()-function(e){(0,i.A)(1,arguments);var t=qe(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Ye(n)}(t).getTime();return Math.round(n/6048e5)+1}function Qe(e,t){var n,r,a,s,u,c,f,d;(0,i.A)(1,arguments);var p=m(),h=(0,l.A)(null!==(n=null!==(r=null!==(a=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(u=t.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==a?a:p.weekStartsOn)&&void 0!==r?r:null===(f=p.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,o.A)(e),y=g.getUTCDay(),v=(y=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(h+1,0,y),v.setUTCHours(0,0,0,0);var b=Qe(v,t),w=new Date(0);w.setUTCFullYear(h,0,y),w.setUTCHours(0,0,0,0);var S=Qe(w,t);return p.getTime()>=b.getTime()?h+1:p.getTime()>=S.getTime()?h:h-1}function Ze(e,t){(0,i.A)(1,arguments);var n=(0,o.A)(e),r=Qe(n,t).getTime()-function(e,t){var n,r,o,a,s,u,c,f;(0,i.A)(1,arguments);var d=m(),p=(0,l.A)(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(s=t.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==r?r:null===(c=d.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),h=Xe(e,t),g=new Date(0);return g.setUTCFullYear(h,0,p),g.setUTCHours(0,0,0,0),Qe(g,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function Je(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return Je("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Je(n+1,2)},d:function(e,t){return Je(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Je(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Je(e.getUTCHours(),t.length)},m:function(e,t){return Je(e.getUTCMinutes(),t.length)},s:function(e,t){return Je(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return Je(Math.floor(r*Math.pow(10,n-3)),t.length)}};const tt=et;function nt(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+Je(i,2)}function rt(e,t){return e%60==0?(e>0?"-":"+")+Je(Math.abs(e)/60,2):ot(e,t)}function ot(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+Je(Math.floor(o/60),2)+n+Je(o%60,2)}const it={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return tt.y(e,t)},Y:function(e,t,n,r){var o=Xe(e,r),i=o>0?o:1-o;return"YY"===t?Je(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):Je(i,t.length)},R:function(e,t){return Je(qe(e),t.length)},u:function(e,t){return Je(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Je(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Je(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return tt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Je(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=Ze(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Je(o,t.length)},I:function(e,t,n){var r=Ke(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Je(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):tt.d(e,t)},D:function(e,t,n){var r=function(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Je(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Je(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Je(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Je(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return tt.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):tt.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Je(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Je(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):tt.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):tt.s(e,t)},S:function(e,t){return tt.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return rt(o);case"XXXX":case"XX":return ot(o);default:return ot(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return rt(o);case"xxxx":case"xx":return ot(o);default:return ot(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+nt(o,":");default:return"GMT"+ot(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+nt(o,":");default:return"GMT"+ot(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return Je(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return Je((r._originalDate||e).getTime(),t.length)}};var at=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},lt=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},st={p:lt,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return at(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",at(o,t)).replace("{{time}}",lt(i,t))}};const ut=st;var ct=["D","DD"],ft=["YY","YYYY"];function dt(e){return-1!==ct.indexOf(e)}function pt(e){return-1!==ft.indexOf(e)}function ht(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var gt={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"}};function mt(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var yt,vt={date:mt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:mt({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:mt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},bt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function wt(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,l=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[l]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function St(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,l=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e){for(var t=0;t0?"in "+r:r+" ago":r},formatLong:vt,formatRelative:function(e,t,n,r){return bt[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:wt({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:wt({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:wt({values:{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"]},defaultWidth:"wide"}),day:wt({values:{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"]},defaultWidth:"wide"}),dayPeriod:wt({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(yt={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(yt.matchPattern);if(!n)return null;var r=n[0],o=e.match(yt.parsePattern);if(!o)return null;var i=yt.valueCallback?yt.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:St({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:St({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:St({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:St({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:St({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var _t=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ot=/^'([^]*?)'?$/,Ct=/''/g,xt=/[a-zA-Z]/;function At(e,t,n){var r,a,s,u,c,f,d,p,h,g,y,v,b,w,S,E,_,T;(0,i.A)(2,arguments);var O=String(t),C=m(),x=null!==(r=null!==(a=null==n?void 0:n.locale)&&void 0!==a?a:C.locale)&&void 0!==r?r:Et,A=(0,l.A)(null!==(s=null!==(u=null!==(c=null!==(f=null==n?void 0:n.firstWeekContainsDate)&&void 0!==f?f:null==n||null===(d=n.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:C.firstWeekContainsDate)&&void 0!==u?u:null===(h=C.locale)||void 0===h||null===(g=h.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==s?s:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=(0,l.A)(null!==(y=null!==(v=null!==(b=null!==(w=null==n?void 0:n.weekStartsOn)&&void 0!==w?w:null==n||null===(S=n.locale)||void 0===S||null===(E=S.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==b?b:C.weekStartsOn)&&void 0!==v?v:null===(_=C.locale)||void 0===_||null===(T=_.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==y?y:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var I=(0,o.A)(e);if(!q(I))throw new RangeError("Invalid time value");var k=We(I,(0,X.A)(I)),P={firstWeekContainsDate:A,weekStartsOn:R,locale:x,_originalDate:I};return O.match(Tt).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ut[t])(e,x.formatLong):e})).join("").match(_t).map((function(r){if("''"===r)return"'";var o,i,a=r[0];if("'"===a)return(i=(o=r).match(Ot))?i[1].replace(Ct,"'"):o;var l=it[a];if(l)return null!=n&&n.useAdditionalWeekYearTokens||!pt(r)||ht(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!dt(r)||ht(r,t,String(e)),l(k,r,x.localize,P);if(a.match(xt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r})).join("")}function Rt(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function It(e){return Rt({},e)}var kt=1440,Pt=2520,Mt=43200,Dt=86400;function Nt(e,t,n){var r,a;(0,i.A)(2,arguments);var l=m(),s=null!==(r=null!==(a=null==n?void 0:n.locale)&&void 0!==a?a:l.locale)&&void 0!==r?r:Et;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var u=(0,$.A)(e,t);if(isNaN(u))throw new RangeError("Invalid time value");var c,f,d=Rt(It(n),{addSuffix:Boolean(null==n?void 0:n.addSuffix),comparison:u});u>0?(c=(0,o.A)(t),f=(0,o.A)(e)):(c=(0,o.A)(e),f=(0,o.A)(t));var p,h=(0,ge.A)(f,c),g=((0,X.A)(f)-(0,X.A)(c))/1e3,y=Math.round((h-g)/60);if(y<2)return null!=n&&n.includeSeconds?h<5?s.formatDistance("lessThanXSeconds",5,d):h<10?s.formatDistance("lessThanXSeconds",10,d):h<20?s.formatDistance("lessThanXSeconds",20,d):h<40?s.formatDistance("halfAMinute",0,d):h<60?s.formatDistance("lessThanXMinutes",1,d):s.formatDistance("xMinutes",1,d):0===y?s.formatDistance("lessThanXMinutes",1,d):s.formatDistance("xMinutes",y,d);if(y<45)return s.formatDistance("xMinutes",y,d);if(y<90)return s.formatDistance("aboutXHours",1,d);if(y0?(f=(0,o.A)(t),d=(0,o.A)(e)):(f=(0,o.A)(e),d=(0,o.A)(t));var h,g=String(null!==(l=null==n?void 0:n.roundingMethod)&&void 0!==l?l:"round");if("floor"===g)h=Math.floor;else if("ceil"===g)h=Math.ceil;else{if("round"!==g)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");h=Math.round}var y,v=d.getTime()-f.getTime(),b=v/jt,w=(v-((0,X.A)(d)-(0,X.A)(f)))/jt,S=null==n?void 0:n.unit;if("second"===(y=S?String(S):b<1?"second":b<60?"minute":b=0&&i<=3))throw new RangeError("fractionDigits must be between 0 and 3 inclusively");var a=Je(r.getDate(),2),s=Je(r.getMonth()+1,2),u=r.getFullYear(),c=Je(r.getHours(),2),f=Je(r.getMinutes(),2),d=Je(r.getSeconds(),2),p="";if(i>0){var h=r.getMilliseconds();p="."+Je(Math.floor(h*Math.pow(10,i-3)),i)}var g="",m=r.getTimezoneOffset();if(0!==m){var y=Math.abs(m),v=Je((0,l.A)(y/60),2),b=Je(y%60,2);g="".concat(m<0?"+":"-").concat(v,":").concat(b)}else g="Z";return"".concat(u,"-").concat(s,"-").concat(a,"T").concat(c,":").concat(f,":").concat(d).concat(p).concat(g)}var Qt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Xt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Zt(e){if(arguments.length<1)throw new TypeError("1 arguments required, but only ".concat(arguments.length," present"));var t=(0,o.A)(e);if(!q(t))throw new RangeError("Invalid time value");var n=Qt[t.getUTCDay()],r=Je(t.getUTCDate(),2),i=Xt[t.getUTCMonth()],a=t.getUTCFullYear(),l=Je(t.getUTCHours(),2),s=Je(t.getUTCMinutes(),2),u=Je(t.getUTCSeconds(),2);return"".concat(n,", ").concat(r," ").concat(i," ").concat(a," ").concat(l,":").concat(s,":").concat(u," GMT")}function Jt(e,t,n){var r,a,s,u,c,f,d,p,h,g;(0,i.A)(2,arguments);var y=(0,o.A)(e),v=(0,o.A)(t),b=m(),w=null!==(r=null!==(a=null==n?void 0:n.locale)&&void 0!==a?a:b.locale)&&void 0!==r?r:Et,S=(0,l.A)(null!==(s=null!==(u=null!==(c=null!==(f=null==n?void 0:n.weekStartsOn)&&void 0!==f?f:null==n||null===(d=n.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==c?c:b.weekStartsOn)&&void 0!==u?u:null===(h=b.locale)||void 0===h||null===(g=h.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==s?s:0);if(!w.localize)throw new RangeError("locale must contain localize property");if(!w.formatLong)throw new RangeError("locale must contain formatLong property");if(!w.formatRelative)throw new RangeError("locale must contain formatRelative property");var _,T=(0,E.A)(y,v);if(isNaN(T))throw new RangeError("Invalid time value");_=T<-6?"other":T<-1?"lastWeek":T<0?"yesterday":T<1?"today":T<2?"tomorrow":T<7?"nextWeek":"other";var O=We(y,(0,X.A)(y)),C=We(v,(0,X.A)(v));return At(y,w.formatRelative(_,O,C,{locale:w,weekStartsOn:S}),{locale:w,weekStartsOn:S})}function en(e){(0,i.A)(1,arguments);var t=(0,l.A)(e);return(0,o.A)(1e3*t)}function tn(e){return(0,i.A)(1,arguments),(0,o.A)(e).getDate()}function nn(e){return(0,i.A)(1,arguments),(0,o.A)(e).getDay()}function rn(e){(0,i.A)(1,arguments);var t=(0,o.A)(e);return(0,E.A)(t,ke(t))+1}function on(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),n=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function an(e){(0,i.A)(1,arguments);var t=(0,o.A)(e).getFullYear();return t%400==0||t%4==0&&t%100!=0}function ln(e){(0,i.A)(1,arguments);var t=(0,o.A)(e);return"Invalid Date"===String(new Date(t))?NaN:an(t)?366:365}function sn(e){(0,i.A)(1,arguments);var t=(0,o.A)(e).getFullYear();return 10*Math.floor(t/10)}function un(){return Rt({},m())}function cn(e){return(0,i.A)(1,arguments),(0,o.A)(e).getHours()}function fn(e){(0,i.A)(1,arguments);var t=(0,o.A)(e).getDay();return 0===t&&(t=7),t}var dn=6048e5;function pn(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),n=b(t).getTime()-S(t).getTime();return Math.round(n/dn)+1}var hn=6048e5;function gn(e){(0,i.A)(1,arguments);var t=S(e),n=S(I(t,60)).valueOf()-t.valueOf();return Math.round(n/hn)}function mn(e){return(0,i.A)(1,arguments),(0,o.A)(e).getMilliseconds()}function yn(e){return(0,i.A)(1,arguments),(0,o.A)(e).getMinutes()}function vn(e){return(0,i.A)(1,arguments),(0,o.A)(e).getMonth()}var bn=864e5;function wn(e,t){(0,i.A)(2,arguments);var n=e||{},r=t||{},a=(0,o.A)(n.start).getTime(),l=(0,o.A)(n.end).getTime(),s=(0,o.A)(r.start).getTime(),u=(0,o.A)(r.end).getTime();if(!(a<=l&&s<=u))throw new RangeError("Invalid interval");if(!(al?l:u)-(s=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setFullYear(h+1,0,y),b.setHours(0,0,0,0);var w=v(b,t),S=new Date(0);S.setFullYear(h,0,y),S.setHours(0,0,0,0);var E=v(S,t);return p.getTime()>=w.getTime()?h+1:p.getTime()>=E.getTime()?h:h-1}function On(e,t){var n,r,o,a,s,u,c,f;(0,i.A)(1,arguments);var d=m(),p=(0,l.A)(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(s=t.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==r?r:null===(c=d.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),h=Tn(e,t),g=new Date(0);return g.setFullYear(h,0,p),g.setHours(0,0,0,0),v(g,t)}var Cn=6048e5;function xn(e,t){(0,i.A)(1,arguments);var n=(0,o.A)(e),r=v(n,t).getTime()-On(n,t).getTime();return Math.round(r/Cn)+1}function An(e,t){var n,r,o,a,s,u,c,f;(0,i.A)(1,arguments);var d=m(),p=(0,l.A)(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t||null===(s=t.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==o?o:d.weekStartsOn)&&void 0!==r?r:null===(c=d.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=tn(e);if(isNaN(h))return NaN;var g=p-nn(xe(e));g<=0&&(g+=7);var y=h-g;return Math.ceil(y/7)+1}function Rn(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function In(e,t){return(0,i.A)(1,arguments),oe(Rn(e),xe(e),t)+1}function kn(e){return(0,i.A)(1,arguments),(0,o.A)(e).getFullYear()}function Pn(e){return(0,i.A)(1,arguments),Math.floor(e*H.s0)}function Mn(e){return(0,i.A)(1,arguments),Math.floor(e*H.l5)}function Dn(e){return(0,i.A)(1,arguments),Math.floor(e*H.tF)}var Nn=n(41454);function jn(e,t,n){var r,o,a;return(0,i.A)(1,arguments),void 0===(a=t)||"locale"in a?n=t:o=t,new Intl.DateTimeFormat(null===(r=n)||void 0===r?void 0:r.locale,o).format(e)}function Ln(e,t,n){(0,i.A)(2,arguments);var r,a=0,l=(0,o.A)(e),s=(0,o.A)(t);if(null!=n&&n.unit)"second"===(r=null==n?void 0:n.unit)?a=(0,ge.A)(l,s):"minute"===r?a=(0,fe.A)(l,s):"hour"===r?a=(0,le.A)(l,s):"day"===r?a=(0,E.A)(l,s):"week"===r?a=oe(l,s):"month"===r?a=(0,ee.A)(l,s):"quarter"===r?a=ne(l,s):"year"===r&&(a=(0,ie.A)(l,s));else{var u=(0,ge.A)(l,s);Math.abs(u)r.getTime()}function Bn(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,o.A)(t);return n.getTime()Date.now()}var Vn=n(22613);function Wn(e){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wn(e)}function Yn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qn(e,t)}function qn(e,t){return qn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qn(e,t)}function Kn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xn(e);if(t){var o=Xn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!==Wn(t)&&"function"!=typeof t?Qn(e):t}(this,n)}}function Qn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xn(e){return Xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xn(e)}function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jn(e,t){for(var n=0;n0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function Wr(e){return e%400==0||e%4==0&&e%100!=0}function Yr(e){return Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yr(e)}function qr(e,t){for(var n=0;n0}},{key:"set",value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=Vr(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}}])&&qr(t.prototype,n),a}(ar);function eo(e){return eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eo(e)}function to(e,t){for(var n=0;n0}},{key:"set",value:function(e,t,n,r){var o=Xe(e,r);if(n.isTwoDigitYear){var i=Vr(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Qe(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Qe(e,r)}}])&&to(t.prototype,n),a}(ar);function lo(e){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lo(e)}function so(e,t){for(var n=0;n=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}])&&_o(t.prototype,n),a}(ar);function Ro(e){return Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ro(e)}function Io(e,t){for(var n=0;n=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}])&&Io(t.prototype,n),a}(ar);function jo(e){return jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jo(e)}function Lo(e,t){for(var n=0;n=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}])&&Lo(t.prototype,n),a}(ar);function zo(e){return zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zo(e)}function Go(e,t){for(var n=0;n=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}])&&Go(t.prototype,n),a}(ar);function Qo(e){return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qo(e)}function Xo(e,t){for(var n=0;n=1&&t<=53}},{key:"set",value:function(e,t,n,r){return Qe(function(e,t,n){(0,i.A)(2,arguments);var r=(0,o.A)(e),a=(0,l.A)(t),s=Ze(r,n)-a;return r.setUTCDate(r.getUTCDate()-7*s),r}(e,n,r),r)}}],n&&Xo(t.prototype,n),u}(ar);function ri(e){return ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ri(e)}function oi(e,t){for(var n=0;n=1&&t<=53}},{key:"set",value:function(e,t,n){return Ye(function(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,l.A)(t),a=Ke(n)-r;return n.setUTCDate(n.getUTCDate()-7*a),n}(e,n))}}],n&&oi(t.prototype,n),u}(ar);function ci(e){return ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ci(e)}function fi(e,t){for(var n=0;n=1&&t<=yi[r]:t>=1&&t<=mi[r]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}],n&&fi(t.prototype,n),a}(ar);function bi(e){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bi(e)}function wi(e,t){for(var n=0;n=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}])&&wi(t.prototype,n),a}(ar);function Ci(e,t,n){var r,a,s,u,c,f,d,p;(0,i.A)(2,arguments);var h=m(),g=(0,l.A)(null!==(r=null!==(a=null!==(s=null!==(u=null==n?void 0:n.weekStartsOn)&&void 0!==u?u:null==n||null===(c=n.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==s?s:h.weekStartsOn)&&void 0!==a?a:null===(d=h.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==r?r:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=(0,o.A)(e),v=(0,l.A)(t),b=((v%7+7)%7=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Ci(e,n,r)).setUTCHours(0,0,0,0),e}}])&&Ai(t.prototype,n),a}(ar);function Di(e){return Di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Di(e)}function Ni(e,t){for(var n=0;n=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Ci(e,n,r)).setUTCHours(0,0,0,0),e}}])&&Ni(t.prototype,n),a}(ar);function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}function Hi(e,t){for(var n=0;n=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=Ci(e,n,r)).setUTCHours(0,0,0,0),e}}])&&Hi(t.prototype,n),a}(ar);function qi(e){return qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qi(e)}function Ki(e,t){for(var n=0;n=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){(0,i.A)(2,arguments);var n=(0,l.A)(t);n%7==0&&(n-=7);var r=(0,o.A)(e),a=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+a),r}(e,n),e.setUTCHours(0,0,0,0),e}}],n&&Ki(t.prototype,n),u}(ar);function ta(e){return ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ta(e)}function na(e,t){for(var n=0;n=1&&t<=12}},{key:"set",value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}])&&_a(t.prototype,n),a}(ar);function Ra(e){return Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ra(e)}function Ia(e,t){for(var n=0;n=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}])&&Ia(t.prototype,n),a}(ar);function ja(e){return ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ja(e)}function La(e,t){for(var n=0;n=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}])&&La(t.prototype,n),a}(ar);function za(e){return za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},za(e)}function Ga(e,t){for(var n=0;n=1&&t<=24}},{key:"set",value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}])&&Ga(t.prototype,n),a}(ar);function Qa(e){return Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qa(e)}function Xa(e,t){for(var n=0;n=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}])&&Xa(t.prototype,n),a}(ar);function rl(e){return rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rl(e)}function ol(e,t){for(var n=0;n=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}])&&ol(t.prototype,n),a}(ar);function cl(e){return cl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cl(e)}function fl(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function ql(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=(0,l.A)(null!==(v=null!==(b=null!==(w=null!==(S=null==r?void 0:r.weekStartsOn)&&void 0!==S?S:null==r||null===(E=r.locale)||void 0===E||null===(_=E.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==w?w:A.weekStartsOn)&&void 0!==b?b:null===(T=A.locale)||void 0===T||null===(O=T.options)||void 0===O?void 0:O.weekStartsOn)&&void 0!==v?v:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===x)return""===C?(0,o.A)(n):new Date(NaN);var P,M={firstWeekContainsDate:I,weekStartsOn:k,locale:R},D=[new or],N=x.match(Ql).map((function(e){var t=e[0];return t in ut?(0,ut[t])(e,R.formatLong):e})).join("").match(Kl),j=[],L=Yl(N);try{var F=function(){var t=P.value;null!=r&&r.useAdditionalWeekYearTokens||!pt(t)||ht(t,x,e),null!=r&&r.useAdditionalDayOfYearTokens||!dt(t)||ht(t,x,e);var n=t[0],o=Vl[n];if(o){var i=o.incompatibleTokens;if(Array.isArray(i)){var a=j.find((function(e){return i.includes(e.token)||e.token===n}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));j.push({token:n,fullToken:t});var l=o.run(C,t,R.match,M);if(!l)return{v:new Date(NaN)};D.push(l.setter),C=l.rest}else{if(n.match(es))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(Xl)[1].replace(Zl,"'")),0!==C.indexOf(t))return{v:new Date(NaN)};C=C.slice(t.length)}};for(L.s();!(P=L.n()).done;){var B=F();if("object"===Wl(B))return B.v}}catch(e){L.e(e)}finally{L.f()}if(C.length>0&&Jl.test(C))return new Date(NaN);var $=D.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return D.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),U=(0,o.A)(n);if(isNaN(U.getTime()))return new Date(NaN);var H,z=We(U,(0,X.A)(U)),G={},V=Yl($);try{for(V.s();!(H=V.n()).done;){var W=H.value;if(!W.validate(z,M))return new Date(NaN);var Y=W.set(z,G,M);Array.isArray(Y)?(z=Y[0],Rt(G,Y[1])):z=Y}}catch(e){V.e(e)}finally{V.f()}return z}function ns(e,t,n){return(0,i.A)(2,arguments),q(ts(e,t,new Date,n))}function rs(e){return(0,i.A)(1,arguments),1===(0,o.A)(e).getDay()}function os(e){return(0,i.A)(1,arguments),(0,o.A)(e).getTime()=r&&n<=a}function Is(e,t){(0,i.A)(2,arguments);var n=(0,l.A)(t);return(0,f.A)(e,-n)}function ks(e){return(0,i.A)(1,arguments),V(e,Is(Date.now(),1))}function Ps(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),n=t.getFullYear(),r=9+10*Math.floor(n/10);return t.setFullYear(r+1,0,0),t.setHours(0,0,0,0),t}function Ms(e,t){var n,r,a,s,u,c,f,d;(0,i.A)(1,arguments);var p=m(),h=(0,l.A)(null!==(n=null!==(r=null!==(a=null!==(s=null==t?void 0:t.weekStartsOn)&&void 0!==s?s:null==t||null===(u=t.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==a?a:p.weekStartsOn)&&void 0!==r?r:null===(f=p.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==n?n:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var g=(0,o.A)(e),y=g.getDay(),v=6+(y2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],su.timeZoneDelimiter.test(n.date)&&(n.date=e.split(su.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=su.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}(e);if(a.date){var s=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(a.date,r);o=function(e,t){if(null===t)return new Date(NaN);var n=e.match(uu);if(!n)return new Date(NaN);var r=!!n[4],o=du(n[1]),i=du(n[2])-1,a=du(n[3]),l=du(n[4]),s=du(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,l,s)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}(t,l,s):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(hu[t]||(gu(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(gu(e)?366:365)}(t,o)?(u.setUTCFullYear(t,i,Math.max(o,a)),u):new Date(NaN)}(s.restDateString,s.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var u,c=o.getTime(),f=0;if(a.time&&(f=function(e){var t=e.match(cu);if(!t)return NaN;var n=pu(t[1]),r=pu(t[2]),o=pu(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*H.s0+r*H.Cg+1e3*o:NaN}(a.time),isNaN(f)))return new Date(NaN);if(!a.timezone){var d=new Date(c+f),p=new Date(0);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}return u=function(e){if("Z"===e)return 0;var t=e.match(fu);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*H.s0+o*H.Cg):NaN}(a.timezone),isNaN(u)?new Date(NaN):new Date(c+f+u)}var su={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},uu=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,cu=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,fu=/^([+-])(\d{2})(?::?(\d{2}))?$/;function du(e){return e?parseInt(e):1}function pu(e){return e&&parseFloat(e.replace(",","."))||0}var hu=[31,null,31,30,31,30,31,31,30,31,30,31];function gu(e){return e%400==0||e%4==0&&e%100!=0}function mu(e){if((0,i.A)(1,arguments),"string"==typeof e){var t=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return t?new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4]-(+t[9]||0)*("-"==t[8]?-1:1),+t[5]-(+t[10]||0)*("-"==t[8]?-1:1),+t[6],+((t[7]||"0")+"00").substring(0,3))):new Date(NaN)}return(0,o.A)(e)}function yu(e,t){(0,i.A)(2,arguments);var n=nn(e)-t;return n<=0&&(n+=7),Is(e,n)}function vu(e){return(0,i.A)(1,arguments),yu(e,5)}function bu(e){return(0,i.A)(1,arguments),yu(e,1)}function wu(e){return(0,i.A)(1,arguments),yu(e,6)}function Su(e){return(0,i.A)(1,arguments),yu(e,0)}function Eu(e){return(0,i.A)(1,arguments),yu(e,4)}function _u(e){return(0,i.A)(1,arguments),yu(e,2)}function Tu(e){return(0,i.A)(1,arguments),yu(e,3)}function Ou(e){return(0,i.A)(1,arguments),Math.floor(e*H.rI)}function Cu(e){(0,i.A)(1,arguments);var t=e/H.gs;return Math.floor(t)}function xu(e,t){var n;if(arguments.length<1)throw new TypeError("1 argument required, but only none provided present");var r=(0,l.A)(null!==(n=null==t?void 0:t.nearestTo)&&void 0!==n?n:1);if(r<1||r>30)throw new RangeError("`options.nearestTo` must be between 1 and 30");var i=(0,o.A)(e),a=i.getSeconds(),s=i.getMinutes()+a/60,u=(0,pe.u)(null==t?void 0:t.roundingMethod)(s/r)*r,c=s%r,f=Math.round(c/r)*r;return new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),u+f)}function Au(e){(0,i.A)(1,arguments);var t=e/H.tF;return Math.floor(t)}function Ru(e){return(0,i.A)(1,arguments),e*H._m}function Iu(e){(0,i.A)(1,arguments);var t=e/H.bF;return Math.floor(t)}function ku(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,l.A)(t),a=n.getFullYear(),s=n.getDate(),u=new Date(0);u.setFullYear(a,r,15),u.setHours(0,0,0,0);var c=on(u);return n.setMonth(r,Math.min(s,c)),n}function Pu(e){return Pu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pu(e)}function Mu(e,t){if((0,i.A)(2,arguments),"object"!==Pu(t)||null===t)throw new RangeError("values parameter must be an object");var n=(0,o.A)(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=ku(n,t.month)),null!=t.date&&n.setDate((0,l.A)(t.date)),null!=t.hours&&n.setHours((0,l.A)(t.hours)),null!=t.minutes&&n.setMinutes((0,l.A)(t.minutes)),null!=t.seconds&&n.setSeconds((0,l.A)(t.seconds)),null!=t.milliseconds&&n.setMilliseconds((0,l.A)(t.milliseconds)),n)}function Du(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,l.A)(t);return n.setDate(r),n}function Nu(e,t,n){var r,a,s,u,c,d,p,h;(0,i.A)(2,arguments);var g=m(),y=(0,l.A)(null!==(r=null!==(a=null!==(s=null!==(u=null==n?void 0:n.weekStartsOn)&&void 0!==u?u:null==n||null===(c=n.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:g.weekStartsOn)&&void 0!==a?a:null===(p=g.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==r?r:0);if(!(y>=0&&y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,o.A)(e),b=(0,l.A)(t),w=v.getDay(),S=7-y,E=b<0||b>6?b-(w+S)%7:((b%7+7)%7+S)%7-(w+S)%7;return(0,f.A)(v,E)}function ju(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,l.A)(t);return n.setMonth(0),n.setDate(r),n}function Lu(e){(0,i.A)(1,arguments);var t={},n=m();for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(void 0===e[o]?delete t[o]:t[o]=e[o]);y(t)}function Fu(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,l.A)(t);return n.setHours(r),n}function Bu(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,l.A)(t)-fn(n);return(0,f.A)(n,r)}function $u(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,l.A)(t),a=pn(n)-r;return n.setDate(n.getDate()-7*a),n}function Uu(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,l.A)(t);return n.setMilliseconds(r),n}function Hu(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,l.A)(t);return n.setMinutes(r),n}function zu(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,l.A)(t)-(Math.floor(n.getMonth()/3)+1);return ku(n,n.getMonth()+3*r)}function Gu(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,l.A)(t);return n.setSeconds(r),n}function Vu(e,t,n){(0,i.A)(2,arguments);var r=(0,o.A)(e),a=(0,l.A)(t),s=xn(r,n)-a;return r.setDate(r.getDate()-7*s),r}function Wu(e,t,n){var r,a,s,u,c,f,d,p;(0,i.A)(2,arguments);var h=m(),g=(0,l.A)(null!==(r=null!==(a=null!==(s=null!==(u=null==n?void 0:n.firstWeekContainsDate)&&void 0!==u?u:null==n||null===(c=n.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==s?s:h.firstWeekContainsDate)&&void 0!==a?a:null===(d=h.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==r?r:1),y=(0,o.A)(e),v=(0,l.A)(t),b=(0,E.A)(y,On(y,n)),w=new Date(0);return w.setFullYear(v,0,g),w.setHours(0,0,0,0),(y=On(w,n)).setDate(y.getDate()+b),y}function Yu(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e),r=(0,l.A)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function qu(e){(0,i.A)(1,arguments);var t=(0,o.A)(e),n=t.getFullYear(),r=10*Math.floor(n/10);return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}function Ku(){return(0,G.A)(Date.now())}function Qu(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r+1),o.setHours(0,0,0,0),o}function Xu(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r-1),o.setHours(0,0,0,0),o}function Zu(e,t){(0,i.A)(2,arguments);var n=(0,l.A)(t);return(0,x.A)(e,-n)}function Ju(e){return Ju="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ju(e)}function ec(e,t){if((0,i.A)(2,arguments),!t||"object"!==Ju(t))return new Date(NaN);var n=t.years?(0,l.A)(t.years):0,r=t.months?(0,l.A)(t.months):0,o=t.weeks?(0,l.A)(t.weeks):0,a=t.days?(0,l.A)(t.days):0,s=t.hours?(0,l.A)(t.hours):0,u=t.minutes?(0,l.A)(t.minutes):0,c=t.seconds?(0,l.A)(t.seconds):0,f=Is(Zu(e,r+12*n),a+7*o),d=1e3*(c+60*(u+60*s));return new Date(f.getTime()-d)}function tc(e,t){return(0,i.A)(2,arguments),c(e,-(0,l.A)(t))}function nc(e,t){return(0,i.A)(2,arguments),h(e,-(0,l.A)(t))}function rc(e,t){return(0,i.A)(2,arguments),C(e,-(0,l.A)(t))}function oc(e,t){return(0,i.A)(2,arguments),A(e,-(0,l.A)(t))}function ic(e,t){return(0,i.A)(2,arguments),R(e,-(0,l.A)(t))}function ac(e,t){return(0,i.A)(2,arguments),I(e,-(0,l.A)(t))}function lc(e,t){return(0,i.A)(2,arguments),k(e,-(0,l.A)(t))}function sc(e){return(0,i.A)(1,arguments),Math.floor(e*H.h)}function uc(e){return(0,i.A)(1,arguments),Math.floor(e*H.e8)}function cc(e){return(0,i.A)(1,arguments),Math.floor(e*H.gs)}},41454:(e,t,n)=>{"use strict";n.d(t,{default:()=>p});var r=n(6982),o=n(93165),i=n(89045),a=n(43253),l=n(53303),s=n(21897),u=n(90063),c=n(74952),f=n(10123),d=n(70551);function p(e){(0,d.A)(1,arguments);var t=(0,f.A)(e.start),n=(0,f.A)(e.end);if(isNaN(t.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw new RangeError("End Date is invalid");var p={};p.years=Math.abs((0,c.A)(n,t));var h=(0,r.A)(n,t),g=(0,o.A)(t,{years:h*p.years});p.months=Math.abs((0,s.A)(n,g));var m=(0,o.A)(g,{months:h*p.months});p.days=Math.abs((0,i.A)(n,m));var y=(0,o.A)(m,{days:h*p.days});p.hours=Math.abs((0,a.A)(n,y));var v=(0,o.A)(y,{hours:h*p.hours});p.minutes=Math.abs((0,l.A)(n,v));var b=(0,o.A)(v,{minutes:h*p.minutes});return p.seconds=Math.abs((0,u.A)(n,b)),p}},22613:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(10123),o=n(66212),i=n(19312),a=n(70551);function l(e){(0,a.A)(1,arguments);var t=(0,r.A)(e);return(0,o.A)(t).getTime()===(0,i.A)(t).getTime()}},31127:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(10123),o=n(70551);function i(e){(0,o.A)(1,arguments);var t=(0,r.A)(e);return t.setHours(0,0,0,0),t}},10123:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(70551);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e){(0,r.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===o(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(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))}},45228:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s{"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},14116:(e,t,n)=>{"use strict";n.r(t),n.d(t,{borderBoxWarn:()=>l,default:()=>s,observerErr:()=>a});var r=n(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t&&t>h&&(p=e,h=t)})),p),v.currentBreakpoint!==y.current&&(S.current&&S.current(v),y.current=v.currentBreakpoint)):S.current&&S.current(v);var w={currentBreakpoint:v.currentBreakpoint,width:a,height:c,entry:r};E.current&&!E.current(w)||(!E.current&&s&&u?g((function(e){return e.currentBreakpoint!==w.currentBreakpoint?w:e})):g(w))}}))})),T(),function(){_(),e&&cancelAnimationFrame(e)}}),[JSON.stringify(s),n,T,_,u]),o({},h,{observe:T,unobserve:_})}},22551:(e,t,n)=>{"use strict";var r=n(96540),o=n(69982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n