streamlit-nightly 1.31.2.dev20240212__py2.py3-none-any.whl → 1.31.2.dev20240214__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- streamlit/case_converters.py +9 -4
- streamlit/cli_util.py +2 -0
- streamlit/code_util.py +5 -2
- streamlit/color_util.py +2 -0
- streamlit/column_config.py +2 -0
- streamlit/commands/execution_control.py +4 -2
- streamlit/commands/experimental_query_params.py +7 -4
- streamlit/commands/page_config.py +11 -9
- streamlit/components/v1/components.py +23 -16
- streamlit/config.py +3 -5
- streamlit/config_option.py +12 -11
- streamlit/connections/base_connection.py +4 -2
- streamlit/connections/snowflake_connection.py +4 -4
- streamlit/connections/snowpark_connection.py +3 -3
- streamlit/connections/sql_connection.py +6 -6
- streamlit/connections/util.py +8 -5
- streamlit/constants.py +2 -0
- streamlit/cursor.py +16 -14
- streamlit/delta_generator.py +10 -13
- streamlit/deprecation_util.py +4 -3
- streamlit/echo.py +5 -3
- streamlit/elements/alert.py +16 -14
- streamlit/elements/altair_utils.py +8 -6
- streamlit/elements/arrow.py +4 -4
- streamlit/elements/arrow_altair.py +24 -34
- streamlit/elements/arrow_vega_lite.py +9 -14
- streamlit/elements/balloons.py +4 -2
- streamlit/elements/bokeh_chart.py +7 -7
- streamlit/elements/code.py +6 -4
- streamlit/elements/deck_gl_json_chart.py +8 -8
- streamlit/elements/doc_string.py +5 -9
- streamlit/elements/empty.py +4 -2
- streamlit/elements/exception.py +10 -10
- streamlit/elements/form.py +1 -3
- streamlit/elements/graphviz_chart.py +5 -6
- streamlit/elements/heading.py +16 -14
- streamlit/elements/iframe.py +14 -12
- streamlit/elements/image.py +8 -8
- streamlit/elements/json.py +6 -4
- streamlit/elements/layouts.py +12 -10
- streamlit/elements/lib/column_config_utils.py +2 -2
- streamlit/elements/lib/column_types.py +23 -23
- streamlit/elements/lib/dicttools.py +10 -6
- streamlit/elements/lib/mutable_status_container.py +7 -7
- streamlit/elements/lib/pandas_styler_utils.py +6 -6
- streamlit/elements/lib/streamlit_plotly_theme.py +2 -0
- streamlit/elements/map.py +11 -22
- streamlit/elements/markdown.py +16 -14
- streamlit/elements/media.py +16 -16
- streamlit/elements/metric.py +9 -7
- streamlit/elements/plotly_chart.py +5 -5
- streamlit/elements/progress.py +6 -6
- streamlit/elements/pyplot.py +10 -13
- streamlit/elements/snow.py +4 -2
- streamlit/elements/spinner.py +2 -0
- streamlit/elements/text.py +7 -5
- streamlit/elements/toast.py +6 -4
- streamlit/elements/utils.py +15 -28
- streamlit/elements/widgets/button.py +39 -39
- streamlit/elements/widgets/camera_input.py +21 -17
- streamlit/elements/widgets/chat.py +6 -7
- streamlit/elements/widgets/checkbox.py +21 -19
- streamlit/elements/widgets/color_picker.py +18 -16
- streamlit/elements/widgets/data_editor.py +7 -7
- streamlit/elements/widgets/file_uploader.py +59 -55
- streamlit/elements/widgets/multiselect.py +33 -42
- streamlit/elements/widgets/number_input.py +10 -5
- streamlit/elements/widgets/radio.py +1 -1
- streamlit/elements/widgets/select_slider.py +25 -34
- streamlit/elements/widgets/selectbox.py +1 -1
- streamlit/elements/widgets/slider.py +28 -36
- streamlit/elements/widgets/text_widgets.py +6 -6
- streamlit/elements/widgets/time_widgets.py +13 -13
- streamlit/elements/write.py +21 -29
- streamlit/env_util.py +5 -3
- streamlit/error_util.py +7 -3
- streamlit/errors.py +3 -1
- streamlit/external/langchain/streamlit_callback_handler.py +26 -24
- streamlit/file_util.py +18 -14
- streamlit/folder_black_list.py +3 -1
- streamlit/git_util.py +5 -3
- streamlit/js_number.py +10 -13
- streamlit/logger.py +5 -5
- streamlit/net_util.py +14 -11
- streamlit/platform.py +2 -0
- streamlit/runtime/__init__.py +2 -0
- streamlit/runtime/app_session.py +42 -42
- streamlit/runtime/caching/__init__.py +4 -4
- streamlit/runtime/caching/cache_data_api.py +3 -3
- streamlit/runtime/caching/cache_errors.py +5 -3
- streamlit/runtime/caching/cache_type.py +2 -0
- streamlit/runtime/caching/cache_utils.py +2 -4
- streamlit/runtime/caching/cached_message_replay.py +12 -5
- streamlit/runtime/caching/hashing.py +29 -21
- streamlit/runtime/caching/storage/cache_storage_protocol.py +1 -2
- streamlit/runtime/caching/storage/local_disk_cache_storage.py +6 -5
- streamlit/runtime/connection_factory.py +8 -8
- streamlit/runtime/forward_msg_cache.py +20 -18
- streamlit/runtime/forward_msg_queue.py +8 -9
- streamlit/runtime/legacy_caching/caching.py +32 -42
- streamlit/runtime/legacy_caching/hashing.py +29 -25
- streamlit/runtime/media_file_manager.py +16 -14
- streamlit/runtime/media_file_storage.py +8 -8
- streamlit/runtime/memory_media_file_storage.py +12 -14
- streamlit/runtime/memory_session_storage.py +4 -3
- streamlit/runtime/memory_uploaded_file_manager.py +9 -10
- streamlit/runtime/metrics_util.py +20 -20
- streamlit/runtime/runtime.py +25 -27
- streamlit/runtime/runtime_util.py +5 -3
- streamlit/runtime/script_data.py +2 -0
- streamlit/runtime/scriptrunner/magic.py +17 -11
- streamlit/runtime/scriptrunner/magic_funcs.py +2 -0
- streamlit/runtime/scriptrunner/script_requests.py +6 -4
- streamlit/runtime/scriptrunner/script_run_context.py +17 -17
- streamlit/runtime/scriptrunner/script_runner.py +7 -5
- streamlit/runtime/secrets.py +4 -6
- streamlit/runtime/session_manager.py +14 -14
- streamlit/runtime/state/common.py +5 -4
- streamlit/runtime/state/query_params.py +8 -6
- streamlit/runtime/state/query_params_proxy.py +7 -5
- streamlit/runtime/state/safe_session_state.py +7 -5
- streamlit/runtime/state/session_state.py +3 -4
- streamlit/runtime/state/session_state_proxy.py +5 -5
- streamlit/runtime/state/widgets.py +20 -18
- streamlit/runtime/stats.py +13 -15
- streamlit/runtime/uploaded_file_manager.py +6 -5
- streamlit/runtime/websocket_session_manager.py +14 -14
- streamlit/source_util.py +13 -11
- streamlit/static/asset-manifest.json +13 -13
- streamlit/static/index.html +1 -1
- streamlit/static/static/css/2411.8b8f33d6.chunk.css +1 -0
- streamlit/static/static/css/43.e3b876c5.chunk.css +1 -0
- streamlit/static/static/css/6692.65519639.chunk.css +1 -0
- streamlit/static/static/js/{3075.76725a14.chunk.js → 2411.714d213e.chunk.js} +2 -2
- streamlit/static/static/js/4185.21ca0590.chunk.js +1 -0
- streamlit/static/static/js/43.36939bb1.chunk.js +1 -0
- streamlit/static/static/js/{5117.6a701db1.chunk.js → 5117.04bfe5d3.chunk.js} +1 -1
- streamlit/static/static/js/{5791.30b01ee8.chunk.js → 5791.c5138157.chunk.js} +1 -1
- streamlit/static/static/js/656.8c998bc8.chunk.js +2 -0
- streamlit/static/static/js/{6692.6ac4ea6f.chunk.js → 6692.6496cbc2.chunk.js} +1 -1
- streamlit/static/static/js/7142.400eefdd.chunk.js +1 -0
- streamlit/static/static/js/main.2737c0f9.js +2 -0
- streamlit/static/static/js/{main.043d802e.js.LICENSE.txt → main.2737c0f9.js.LICENSE.txt} +23 -25
- streamlit/string_util.py +13 -9
- streamlit/temporary_directory.py +3 -1
- streamlit/testing/v1/element_tree.py +1 -2
- streamlit/testing/v1/util.py +7 -3
- streamlit/type_util.py +30 -25
- streamlit/url_util.py +6 -4
- streamlit/user_info.py +8 -6
- streamlit/util.py +23 -37
- streamlit/version.py +16 -9
- streamlit/watcher/event_based_path_watcher.py +10 -10
- streamlit/watcher/local_sources_watcher.py +15 -13
- streamlit/watcher/path_watcher.py +0 -3
- streamlit/watcher/polling_path_watcher.py +9 -8
- streamlit/watcher/util.py +3 -2
- streamlit/web/cache_storage_manager_config.py +2 -0
- streamlit/web/server/app_static_file_handler.py +6 -5
- streamlit/web/server/browser_websocket_handler.py +10 -8
- streamlit/web/server/component_request_handler.py +7 -4
- streamlit/web/server/media_file_handler.py +5 -4
- streamlit/web/server/routes.py +6 -3
- streamlit/web/server/server.py +41 -34
- streamlit/web/server/server_util.py +8 -3
- streamlit/web/server/stats_request_handler.py +14 -5
- streamlit/web/server/upload_file_request_handler.py +7 -8
- streamlit/web/server/websocket_headers.py +2 -2
- {streamlit_nightly-1.31.2.dev20240212.dist-info → streamlit_nightly-1.31.2.dev20240214.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.31.2.dev20240212.dist-info → streamlit_nightly-1.31.2.dev20240214.dist-info}/RECORD +176 -176
- streamlit/static/static/css/3075.81b3d18f.chunk.css +0 -1
- streamlit/static/static/css/43.c24b25fa.chunk.css +0 -1
- streamlit/static/static/css/6692.bb444a79.chunk.css +0 -1
- streamlit/static/static/js/1215.baf3721f.chunk.js +0 -2
- streamlit/static/static/js/4185.90e929dc.chunk.js +0 -1
- streamlit/static/static/js/43.8ca4bc8a.chunk.js +0 -1
- streamlit/static/static/js/7142.a359ed63.chunk.js +0 -1
- streamlit/static/static/js/main.043d802e.js +0 -2
- /streamlit/static/static/js/{3075.76725a14.chunk.js.LICENSE.txt → 2411.714d213e.chunk.js.LICENSE.txt} +0 -0
- /streamlit/static/static/js/{1215.baf3721f.chunk.js.LICENSE.txt → 656.8c998bc8.chunk.js.LICENSE.txt} +0 -0
- {streamlit_nightly-1.31.2.dev20240212.data → streamlit_nightly-1.31.2.dev20240214.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.31.2.dev20240212.dist-info → streamlit_nightly-1.31.2.dev20240214.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.31.2.dev20240212.dist-info → streamlit_nightly-1.31.2.dev20240214.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.31.2.dev20240212.dist-info → streamlit_nightly-1.31.2.dev20240214.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[4185],{72394:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>L});var s=i(66845),o=i(59109),n=i(97365),a=i(62813),r=i.n(a),h=i(35569),c=i(25621),l=i(27466),p=i(43536),d=i(80248),m=i(44948),g=i(12879),u=i(47203),w=i(61355),x=i(82595),b=i(19754),S=i(62622),k=i(63765),y=i(13005),v=i.n(y),j=i(82309),f=i(40864);const T=t=>{let{error:e,width:i,deltaType:s}=t;return e instanceof J?(0,f.jsx)(j.Z,{width:i,name:"No Mapbox token provided",message:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("p",{children:["To use ",(0,f.jsxs)("code",{children:["st.",s]})," or ",(0,f.jsx)("code",{children:"st.map"})," you need to set up a Mapbox access token."]}),(0,f.jsxs)("p",{children:["To get a token, create an account at"," ",(0,f.jsx)("a",{href:"https://mapbox.com",children:"https://mapbox.com"}),". It's free for moderate usage levels!"]}),(0,f.jsxs)("p",{children:["Once you have a token, just set it using the Streamlit config option ",(0,f.jsx)("code",{children:"mapbox.token"})," and don't forget to restart your Streamlit server at this point if it's still running, then reload this tab."]}),(0,f.jsxs)("p",{children:["See"," ",(0,f.jsx)("a",{href:"https://docs.streamlit.io/library/advanced-features/configuration#view-all-configuration-options",children:"our documentation"})," ","for more info on how to set config options."]})]})}):e instanceof Z?(0,f.jsx)(j.Z,{width:i,name:"Error fetching Streamlit Mapbox token",message:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("p",{children:"This app requires an internet connection."}),(0,f.jsx)("p",{children:"Please check your connection and try again."}),(0,f.jsxs)("p",{children:["If you think this is a bug, please file bug report"," ",(0,f.jsx)("a",{href:"https://github.com/streamlit/streamlit/issues/new/choose",children:"here"}),"."]})]})}):(0,f.jsx)(j.Z,{width:i,name:"Error fetching Streamlit Mapbox token",message:e.message})};var V=i(23183),C=i(55140),F=i(66694);class J extends Error{}class Z extends Error{}const E="https://data.streamlit.io/tokens.json",z="mapbox",M=t=>e=>{class i extends s.PureComponent{constructor(i){super(i),this.initMapboxToken=async()=>{try{const t=await V.Z.get(E),{[z]:e}=t.data;if(!e)throw new Error("Missing token ".concat(z));this.setState({mapboxToken:e,isFetching:!1})}catch(t){const e=(0,k.b)(t);throw this.setState({mapboxTokenError:e,isFetching:!1}),new Z("".concat(e.message," (").concat(E,")"))}},this.render=()=>{const{mapboxToken:i,mapboxTokenError:s,isFetching:o}=this.state,{width:n}=this.props;return s?(0,f.jsx)(T,{width:n,error:s,deltaType:t}):o?(0,f.jsx)(C.O,{}):(0,f.jsx)(e,{...this.props,mapboxToken:i,width:n})},this.state={isFetching:!0,mapboxToken:void 0,mapboxTokenError:void 0}}componentDidMount(){const t=this.props.element.mapboxToken||this.context.libConfig.mapboxToken;t?this.setState({mapboxToken:t,isFetching:!1}):this.initMapboxToken()}}return i.displayName="withMapboxToken(".concat(e.displayName||e.name,")"),i.contextType=F.E,v()(i,e)};var D=i(1515);const I=(0,D.Z)("div",{target:"e1az0zs51"})((t=>{let{width:e,height:i,theme:s}=t;return{marginTop:s.spacing.sm,position:"relative",height:i,width:e}}),""),O=(0,D.Z)("div",{target:"e1az0zs50"})((t=>{let{theme:e}=t;return{position:"absolute",right:"2.625rem",top:e.spacing.md,zIndex:1,"button:not(:disabled)":{background:e.colors.bgColor,"& + button":{borderTopColor:e.colors.secondaryBg},"& span":{filter:(0,l.Iy)(e)?"":"invert(100%)"}}}}),"");i(79259);const P={classes:{...p,...g,...m,...u}};(0,b.fh)([w.w,x.E]);const N=new d.Z({configuration:P});class _ extends s.PureComponent{constructor(){super(...arguments),this.state={viewState:{bearing:0,pitch:0,zoom:11},initialized:!1,initialViewState:{},id:void 0,pydeckJson:void 0,isFullScreen:!1,isLightTheme:(0,l.Iy)(this.props.theme)},this.componentDidMount=()=>{this.setState({initialized:!0})},this.createTooltip=t=>{const{element:e}=this.props;if(!t||!t.object||!e.tooltip)return!1;const i=n.Z.parse(e.tooltip);return i.html?i.html=this.interpolate(t,i.html):i.text=this.interpolate(t,i.text),i},this.interpolate=(t,e)=>{const i=e.match(/{(.*?)}/g);return i&&i.forEach((i=>{const s=i.substring(1,i.length-1);t.object.hasOwnProperty(s)&&(e=e.replace(i,t.object[s]))})),e},this.onViewStateChange=t=>{let{viewState:e}=t;this.setState({viewState:e})}}static getDerivedStateFromProps(t,e){const i=_.getDeckObject(t,e);if(!r()(i.initialViewState,e.initialViewState)){const t=Object.keys(i.initialViewState).reduce(((t,s)=>i.initialViewState[s]===e.initialViewState[s]?t:{...t,[s]:i.initialViewState[s]}),{});return{viewState:{...e.viewState,...t},initialViewState:i.initialViewState}}return null}render(){const t=_.getDeckObject(this.props,this.state),{viewState:e}=this.state;return(0,f.jsx)(I,{className:"stDeckGlJsonChart",width:t.initialViewState.width,height:t.initialViewState.height,"data-testid":"stDeckGlJsonChart",children:(0,f.jsxs)(o.Z,{viewState:e,onViewStateChange:this.onViewStateChange,height:t.initialViewState.height,width:t.initialViewState.width,layers:this.state.initialized?t.layers:[],getTooltip:this.createTooltip,ContextProvider:h.X$.Provider,controller:!0,children:[(0,f.jsx)(h.Z3,{height:t.initialViewState.height,width:t.initialViewState.width,mapStyle:t.mapStyle&&("string"===typeof t.mapStyle?t.mapStyle:t.mapStyle[0]),mapboxApiAccessToken:this.props.element.mapboxToken||this.props.mapboxToken}),(0,f.jsx)(O,{children:(0,f.jsx)(h.Pv,{className:"zoomButton",showCompass:!1})})]})})}}_.getDeckObject=(t,e)=>{var i,s;const{element:o,width:a,height:r,theme:h,isFullScreen:c}=t,p=null!==c&&void 0!==c&&c;var d,m,g;(o.id===e.id&&e.isFullScreen===p&&e.isLightTheme===(0,l.Iy)(h)||(e.pydeckJson=n.Z.parse(o.json),e.id=o.id),null!==(i=e.pydeckJson)&&void 0!==i&&i.mapStyle||(e.pydeckJson.mapStyle="mapbox://styles/mapbox/".concat((0,l.Iy)(h)?"light":"dark","-v9")),c)?Object.assign(null===(d=e.pydeckJson)||void 0===d?void 0:d.initialViewState,{width:a,height:r}):(null!==(m=e.pydeckJson)&&void 0!==m&&null!==(g=m.initialViewState)&&void 0!==g&&g.height||(e.pydeckJson.initialViewState.height=500),o.useContainerWidth&&(e.pydeckJson.initialViewState.width=a));return e.isFullScreen=c,e.isLightTheme=(0,l.Iy)(h),null===(s=e.pydeckJson)||void 0===s||delete s.views,N.convert(e.pydeckJson)};const L=(0,c.b)(M("st.pydeck_chart")((0,S.Z)(_)))},2090:()=>{},72709:()=>{},20035:()=>{},72672:()=>{}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[43],{10043:(t,e,o)=>{o.r(e),o.d(e,{default:()=>V});var n=o(66845),i=o(25621),a=o(6988),r=o(40566),s=o(60784),l=o(23849),d=o(62622),c=o(63765),h=o(72789),g=o(96825),u=o.n(g),m=o(99394),f=o.n(m),p=o(27466);function b(t,e){const o={font:e.genericFonts.bodyFont,background:e.colors.bgColor,fieldTitle:"verbal",autosize:{type:"fit",contains:"padding"},title:{align:"left",anchor:"start",color:e.colors.headingColor,titleFontStyle:"normal",fontWeight:e.fontWeights.bold,fontSize:e.fontSizes.smPx+2,orient:"top",offset:26},header:{titleFontWeight:e.fontWeights.normal,titleFontSize:e.fontSizes.mdPx,titleColor:(0,p.Xy)(e),titleFontStyle:"normal",labelFontSize:e.fontSizes.twoSmPx,labelFontWeight:e.fontWeights.normal,labelColor:(0,p.Xy)(e),labelFontStyle:"normal"},axis:{labelFontSize:e.fontSizes.twoSmPx,labelFontWeight:e.fontWeights.normal,labelColor:(0,p.Xy)(e),labelFontStyle:"normal",titleFontWeight:e.fontWeights.normal,titleFontSize:e.fontSizes.smPx,titleColor:(0,p.Xy)(e),titleFontStyle:"normal",ticks:!1,gridColor:(0,p.ny)(e),domain:!1,domainWidth:1,domainColor:(0,p.ny)(e),labelFlush:!0,labelFlushOffset:1,labelBound:!1,labelLimit:100,titlePadding:e.spacing.lgPx,labelPadding:e.spacing.lgPx,labelSeparation:e.spacing.twoXSPx,labelOverlap:!0},legend:{labelFontSize:e.fontSizes.smPx,labelFontWeight:e.fontWeights.normal,labelColor:(0,p.Xy)(e),titleFontSize:e.fontSizes.smPx,titleFontWeight:e.fontWeights.normal,titleFontStyle:"normal",titleColor:(0,p.Xy)(e),titlePadding:5,labelPadding:e.spacing.lgPx,columnPadding:e.spacing.smPx,rowPadding:e.spacing.twoXSPx,padding:7,symbolStrokeWidth:4},range:{category:(0,p.iY)(e),diverging:(0,p.ru)(e),ramp:(0,p.Gy)(e),heatmap:(0,p.Gy)(e)},view:{columns:1,strokeWidth:0,stroke:"transparent",continuousHeight:350,continuousWidth:400},concat:{columns:1},facet:{columns:1},mark:{tooltip:!0,...(0,p.Iy)(e)?{color:"#0068C9"}:{color:"#83C9FF"}},bar:{binSpacing:e.spacing.twoXSPx,discreteBandSize:{band:.85}},axisDiscrete:{grid:!1},axisXPoint:{grid:!1},axisTemporal:{grid:!1},axisXBand:{grid:!1}};return t?f()({},o,t,((t,e)=>Array.isArray(e)?e:void 0)):o}const y=(0,o(1515).Z)("div",{target:"egd2k5h0"})((t=>{let{theme:e}=t;return{"&.vega-embed":{"&:hover summary, .vega-embed:focus summary":{background:"transparent"},"&.has-actions":{paddingRight:0},".vega-actions":{zIndex:e.zIndices.popupMenu,backgroundColor:e.colors.bgColor,boxShadow:"rgb(0 0 0 / 16%) 0px 4px 16px",border:"1px solid ".concat(e.colors.fadedText10),a:{fontFamily:e.genericFonts.bodyFont,fontWeight:e.fontWeights.normal,fontSize:e.fontSizes.md,margin:0,padding:"".concat(e.spacing.twoXS," ").concat(e.spacing.twoXL),color:e.colors.bodyText},"a:hover":{backgroundColor:e.colors.secondaryBg,color:e.colors.bodyText},":before":{content:"none"},":after":{content:"none"}},summary:{opacity:0,height:"auto",zIndex:e.zIndices.menuButton,border:"none",boxShadow:"none",borderRadius:e.radii.lg,color:e.colors.fadedText10,backgroundColor:"transparent",transition:"opacity 300ms 150ms,transform 300ms 150ms","&:active, &:focus-visible, &:hover":{border:"none",boxShadow:"none",color:e.colors.bodyText,opacity:"1 !important",background:e.colors.darkenedBgMix25}}}}}),"");var w=o(40864);const v={DATAFRAME_INDEX:"(index)"},x="source",S=new Set([h.GI.DatetimeIndex,h.GI.Float64Index,h.GI.Int64Index,h.GI.RangeIndex,h.GI.UInt64Index]);class F extends n.PureComponent{constructor(){super(...arguments),this.vegaView=void 0,this.vegaFinalizer=void 0,this.defaultDataName=x,this.element=null,this.state={error:void 0},this.finalizeView=()=>{this.vegaFinalizer&&this.vegaFinalizer(),this.vegaFinalizer=void 0,this.vegaView=void 0},this.generateSpec=()=>{var t,e;const{element:o,theme:n}=this.props,i=JSON.parse(o.spec),{useContainerWidth:a}=o;if("streamlit"===o.vegaLiteTheme?i.config=b(i.config,n):"streamlit"===(null===(t=i.usermeta)||void 0===t||null===(e=t.embedOptions)||void 0===e?void 0:e.theme)?(i.config=b(i.config,n),i.usermeta.embedOptions.theme=void 0):i.config=function(t,e){const{colors:o,fontSizes:n,genericFonts:i}=e,a={labelFont:i.bodyFont,titleFont:i.bodyFont,labelFontSize:n.twoSmPx,titleFontSize:n.twoSmPx},r={background:o.bgColor,axis:{labelColor:o.bodyText,titleColor:o.bodyText,gridColor:(0,p.ny)(e),...a},legend:{labelColor:o.bodyText,titleColor:o.bodyText,...a},title:{color:o.bodyText,subtitleColor:o.bodyText,...a},header:{labelColor:o.bodyText,titleColor:o.bodyText,...a},view:{stroke:(0,p.ny)(e),continuousHeight:350,continuousWidth:400},mark:{tooltip:!0}};return t?u()({},r,t):r}(i.config,n),this.props.height?(i.width=this.props.width,i.height=this.props.height):a&&(i.width=this.props.width),i.padding||(i.padding={}),null==i.padding.bottom&&(i.padding.bottom=20),i.datasets)throw new Error("Datasets should not be passed as part of the spec");return i}}async componentDidMount(){try{await this.createView()}catch(t){const e=(0,c.b)(t);this.setState({error:e})}}componentWillUnmount(){this.finalizeView()}async componentDidUpdate(t){const{element:e,theme:o}=t,{element:n,theme:i}=this.props,a=e.spec,{spec:r}=n;if(!this.vegaView||a!==r||o!==i||t.width!==this.props.width||t.height!==this.props.height||t.element.vegaLiteTheme!==this.props.element.vegaLiteTheme){(0,l.ji)("Vega spec changed.");try{await this.createView()}catch(u){const t=(0,c.b)(u);this.setState({error:t})}return}const s=e.data,{data:d}=n;(s||d)&&this.updateData(this.defaultDataName,s,d);const h=z(e)||{},g=z(n)||{};for(const[l,c]of Object.entries(g)){const t=l||this.defaultDataName,e=h[t];this.updateData(t,e,c)}for(const l of Object.keys(h))g.hasOwnProperty(l)||l===this.defaultDataName||this.updateData(l,null,null);this.vegaView.resize().runAsync()}updateData(t,e,o){if(!this.vegaView)throw new Error("Chart has not been drawn yet");if(!o||0===o.data.numRows){return void(this.vegaView._runtime.data.hasOwnProperty(t)&&this.vegaView.remove(t,r.truthy))}if(!e||0===e.data.numRows)return void this.vegaView.insert(t,C(o));const{dataRows:n,dataColumns:i}=e.dimensions,{dataRows:a,dataColumns:s}=o.dimensions;if(function(t,e,o,n,i,a){if(o!==a)return!1;if(e>=i)return!1;if(0===e)return!1;const r=a-1,s=e-1;if(t.getDataValue(0,r)!==n.getDataValue(0,r)||t.getDataValue(s,r)!==n.getDataValue(s,r))return!1;return!0}(e,n,i,o,a,s))n<a&&this.vegaView.insert(t,C(o,n));else{const e=r.changeset().remove(r.truthy).insert(C(o));this.vegaView.change(t,e),(0,l.ji)("Had to clear the ".concat(t," dataset before inserting data through Vega view."))}}async createView(){if((0,l.ji)("Creating a new Vega view."),!this.element)throw Error("Element missing.");this.finalizeView();const t=this.props.element,e=this.generateSpec(),o={ast:!0,expr:s.N,tooltip:{disableDefaultStyle:!0},defaultStyle:!1,forceActionsMenu:!0},{vgSpec:n,view:i,finalize:r}=await(0,a.ZP)(this.element,e,o);this.vegaView=i,this.vegaFinalizer=r;const d=function(t){const e=z(t);if(null==e)return null;const o={};for(const[n,i]of Object.entries(e))o[n]=C(i);return o}(t),c=d?Object.keys(d):[];if(1===c.length){const[t]=c;this.defaultDataName=t}else 0===c.length&&n.data&&(this.defaultDataName=x);const h=function(t){const e=t.data;if(!e||0===e.data.numRows)return null;return C(e)}(t);if(h&&i.insert(this.defaultDataName,h),d)for(const[a,s]of Object.entries(d))i.insert(a,s);await i.runAsync(),this.vegaView.resize().runAsync()}render(){if(this.state.error)throw this.state.error;return(0,w.jsx)(y,{"data-testid":"stArrowVegaLiteChart",ref:t=>{this.element=t}})}}function z(t){var e;if(0===(null===(e=t.datasets)||void 0===e?void 0:e.length))return null;const o={};return t.datasets.forEach((t=>{if(!t)return;const e=t.hasName?t.name:null;o[e]=t.data})),o}function C(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t.isEmpty())return[];const o=[],{dataRows:n,dataColumns:i}=t.dimensions,a=h.fu.getTypeName(t.types.index[0]),r=S.has(a);for(let s=e;s<n;s++){const e={};if(r){const o=t.getIndexValue(s,0);e[v.DATAFRAME_INDEX]="bigint"===typeof o?Number(o):o}for(let o=0;o<i;o++){const n=t.getDataValue(s,o);e[t.columns[0][o]]="bigint"===typeof n?Number(n):n}o.push(e)}return o}const V=(0,i.b)((0,d.Z)(F))}}]);
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[7142],{15610:(t,e,r)=>{function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function a(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function o(t){a(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"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://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function i(t,e){a(2,arguments);var r=o(t),i=n(e);return isNaN(i)?new Date(NaN):i?(r.setDate(r.getDate()+i),r):r}function u(t,e){a(2,arguments);var r=o(t).getTime(),i=n(e);return new Date(r+i)}r.d(e,{Z:()=>ve});function s(t,e){a(2,arguments);var r=o(t),i=n(e);if(isNaN(i))return new Date(NaN);if(!i)return r;var u=r.getDate(),s=new Date(r.getTime());return s.setMonth(r.getMonth()+i+1,0),u>=s.getDate()?s:(r.setFullYear(s.getFullYear(),s.getMonth(),u),r)}function c(t,e){return a(2,arguments),s(t,12*n(e))}function d(t,e){a(2,arguments);var r=o(t),n=o(e),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function l(t,e){a(2,arguments);var r=o(t),n=o(e),i=d(r,n),u=Math.abs(function(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getFullYear()-n.getFullYear()}(r,n));r.setFullYear("1584"),n.setFullYear("1584");var s=i*(u-(d(r,n)===-i));return 0===s?0:s}function f(t,e){a(2,arguments);var r=o(t),n=o(e),i=d(r,n),u=Math.abs(function(t,e){a(2,arguments);var r=o(t),n=o(e);return 12*(r.getFullYear()-n.getFullYear())+(r.getMonth()-n.getMonth())}(r,n));r.setMonth(r.getMonth()-i*u);var s=i*(u-(d(r,n)===-i));return 0===s?0:s}var h=6e4;function p(t){return t.getTime()%h}function m(t){var e=new Date(t.getTime()),r=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var n=r>0?(h+p(e))%h:p(e);return r*h+n}function g(t){a(1,arguments);var e=o(t);return e.setHours(0,0,0,0),e}var w=864e5;function y(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function v(t,e){a(2,arguments);var r=o(t),n=o(e),i=y(r,n),u=Math.abs(function(t,e){a(2,arguments);var r=g(t),n=g(e),o=r.getTime()-m(r),i=n.getTime()-m(n);return Math.round((o-i)/w)}(r,n));r.setDate(r.getDate()-i*u);var s=i*(u-(y(r,n)===-i));return 0===s?0:s}function b(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getTime()-n.getTime()}function T(t){a(1,arguments);var e=o(t);return e.setHours(23,59,59,999),e}function M(t,e){a(1,arguments);var r=e||{},i=r.locale,u=i&&i.options&&i.options.weekStartsOn,s=null==u?0:n(u),c=null==r.weekStartsOn?s:n(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=o(t),l=d.getDay(),f=6+(l<c?-7:0)-(l-c);return d.setDate(d.getDate()+f),d.setHours(23,59,59,999),d}function D(t){a(1,arguments);var e=o(t),r=e.getFullYear();return e.setFullYear(r+1,0,0),e.setHours(23,59,59,999),e}function C(t){a(1,arguments);var e=o(t);return!isNaN(e)}var k={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 x(t){return function(e){var r=e||{},n=r.width?String(r.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var S={date:x({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:x({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:x({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var O={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function P(t){return function(e,r){var n,a=r||{};if("formatting"===(a.context?String(a.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,i=a.width?String(a.width):o;n=t.formattingValues[i]||t.formattingValues[o]}else{var u=t.defaultWidth,s=a.width?String(a.width):t.defaultWidth;n=t.values[s]||t.values[u]}return n[t.argumentCallback?t.argumentCallback(e):e]}}function E(t){return function(e,r){var n=String(e),a=r||{},o=a.width,i=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],u=n.match(i);if(!u)return null;var s,c=u[0],d=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth];return s="[object Array]"===Object.prototype.toString.call(d)?function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}(d,(function(t){return t.test(c)})):function(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}(d,(function(t){return t.test(c)})),s=t.valueCallback?t.valueCallback(s):s,{value:s=a.valueCallback?a.valueCallback(s):s,rest:n.slice(c.length)}}}var U;const Y={code:"en-US",formatDistance:function(t,e,r){var n;return r=r||{},n="string"===typeof k[t]?k[t]:1===e?k[t].one:k[t].other.replace("{{count}}",e),r.addSuffix?r.comparison>0?"in "+n:n+" ago":n},formatLong:S,formatRelative:function(t,e,r,n){return O[t]},localize:{ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:P({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:P({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:P({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:P({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:P({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:(U={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t,e){var r=String(t),n=e||{},a=r.match(U.matchPattern);if(!a)return null;var o=a[0],i=r.match(U.parsePattern);if(!i)return null;var u=U.valueCallback?U.valueCallback(i[0]):i[0];return{value:u=n.valueCallback?n.valueCallback(u):u,rest:r.slice(o.length)}}),era:E({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:E({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(t){return t+1}}),month:E({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:E({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:E({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}};function H(t,e){return a(2,arguments),u(t,-n(e))}function N(t,e){for(var r=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return r+n}const W={y:function(t,e){var r=t.getUTCFullYear(),n=r>0?r:1-r;return N("yy"===e?n%100:n,e.length)},M:function(t,e){var r=t.getUTCMonth();return"M"===e?String(r+1):N(r+1,2)},d:function(t,e){return N(t.getUTCDate(),e.length)},a:function(t,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return r.toUpperCase();case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(t,e){return N(t.getUTCHours()%12||12,e.length)},H:function(t,e){return N(t.getUTCHours(),e.length)},m:function(t,e){return N(t.getUTCMinutes(),e.length)},s:function(t,e){return N(t.getUTCSeconds(),e.length)},S:function(t,e){var r=e.length,n=t.getUTCMilliseconds();return N(Math.floor(n*Math.pow(10,r-3)),e.length)}};function q(t){a(1,arguments);var e=o(t),r=e.getUTCDay(),n=(r<1?7:0)+r-1;return e.setUTCDate(e.getUTCDate()-n),e.setUTCHours(0,0,0,0),e}function L(t){a(1,arguments);var e=o(t),r=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=q(n),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var s=q(u);return e.getTime()>=i.getTime()?r+1:e.getTime()>=s.getTime()?r:r-1}var A=6048e5;function j(t){a(1,arguments);var e=o(t),r=q(e).getTime()-function(t){a(1,arguments);var e=L(t),r=new Date(0);return r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0),q(r)}(e).getTime();return Math.round(r/A)+1}function F(t,e){a(1,arguments);var r=e||{},i=r.locale,u=i&&i.options&&i.options.weekStartsOn,s=null==u?0:n(u),c=null==r.weekStartsOn?s:n(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=o(t),l=d.getUTCDay(),f=(l<c?7:0)+l-c;return d.setUTCDate(d.getUTCDate()-f),d.setUTCHours(0,0,0,0),d}function I(t,e){a(1,arguments);var r=o(t,e),i=r.getUTCFullYear(),u=e||{},s=u.locale,c=s&&s.options&&s.options.firstWeekContainsDate,d=null==c?1:n(c),l=null==u.firstWeekContainsDate?d:n(u.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(i+1,0,l),f.setUTCHours(0,0,0,0);var h=F(f,e),p=new Date(0);p.setUTCFullYear(i,0,l),p.setUTCHours(0,0,0,0);var m=F(p,e);return r.getTime()>=h.getTime()?i+1:r.getTime()>=m.getTime()?i:i-1}var R=6048e5;function Q(t,e){a(1,arguments);var r=o(t),i=F(r,e).getTime()-function(t,e){a(1,arguments);var r=e||{},o=r.locale,i=o&&o.options&&o.options.firstWeekContainsDate,u=null==i?1:n(i),s=null==r.firstWeekContainsDate?u:n(r.firstWeekContainsDate),c=I(t,e),d=new Date(0);return d.setUTCFullYear(c,0,s),d.setUTCHours(0,0,0,0),F(d,e)}(r,e).getTime();return Math.round(i/R)+1}var B="midnight",G="noon",X="morning",z="afternoon",_="evening",Z="night",J={G:function(t,e,r){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if("yo"===e){var n=t.getUTCFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return W.y(t,e)},Y:function(t,e,r,n){var a=I(t,n),o=a>0?a:1-a;return"YY"===e?N(o%100,2):"Yo"===e?r.ordinalNumber(o,{unit:"year"}):N(o,e.length)},R:function(t,e){return N(L(t),e.length)},u:function(t,e){return N(t.getUTCFullYear(),e.length)},Q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return N(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return N(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){var n=t.getUTCMonth();switch(e){case"M":case"MM":return W.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return N(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){var a=Q(t,n);return"wo"===e?r.ordinalNumber(a,{unit:"week"}):N(a,e.length)},I:function(t,e,r){var n=j(t);return"Io"===e?r.ordinalNumber(n,{unit:"week"}):N(n,e.length)},d:function(t,e,r){return"do"===e?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):W.d(t,e)},D:function(t,e,r){var n=function(t){a(1,arguments);var e=o(t),r=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=r-e.getTime();return Math.floor(n/864e5)+1}(t);return"Do"===e?r.ordinalNumber(n,{unit:"dayOfYear"}):N(n,e.length)},E:function(t,e,r){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){var a=t.getUTCDay(),o=(a-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return N(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var a=t.getUTCDay(),o=(a-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return N(o,e.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,r){var n=t.getUTCDay(),a=0===n?7:n;switch(e){case"i":return String(a);case"ii":return N(a,e.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){var n,a=t.getUTCHours();switch(n=12===a?G:0===a?B:a/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){var n,a=t.getUTCHours();switch(n=a>=17?_:a>=12?z:a>=4?X:Z,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if("ho"===e){var n=t.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return W.h(t,e)},H:function(t,e,r){return"Ho"===e?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):W.H(t,e)},K:function(t,e,r){var n=t.getUTCHours()%12;return"Ko"===e?r.ordinalNumber(n,{unit:"hour"}):N(n,e.length)},k:function(t,e,r){var n=t.getUTCHours();return 0===n&&(n=24),"ko"===e?r.ordinalNumber(n,{unit:"hour"}):N(n,e.length)},m:function(t,e,r){return"mo"===e?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):W.m(t,e)},s:function(t,e,r){return"so"===e?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):W.s(t,e)},S:function(t,e){return W.S(t,e)},X:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return $(a);case"XXXX":case"XX":return V(a);default:return V(a,":")}},x:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return $(a);case"xxxx":case"xx":return V(a);default:return V(a,":")}},O:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+K(a,":");default:return"GMT"+V(a,":")}},z:function(t,e,r,n){var a=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+K(a,":");default:return"GMT"+V(a,":")}},t:function(t,e,r,n){var a=n._originalDate||t;return N(Math.floor(a.getTime()/1e3),e.length)},T:function(t,e,r,n){return N((n._originalDate||t).getTime(),e.length)}};function K(t,e){var r=t>0?"-":"+",n=Math.abs(t),a=Math.floor(n/60),o=n%60;if(0===o)return r+String(a);var i=e||"";return r+String(a)+i+N(o,2)}function $(t,e){return t%60===0?(t>0?"-":"+")+N(Math.abs(t)/60,2):V(t,e)}function V(t,e){var r=e||"",n=t>0?"-":"+",a=Math.abs(t);return n+N(Math.floor(a/60),2)+r+N(a%60,2)}const tt=J;function et(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}}function rt(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}}var nt={p:rt,P:function(t,e){var r,n=t.match(/(P+)(p+)?/),a=n[1],o=n[2];if(!o)return et(t,e);switch(a){case"P":r=e.dateTime({width:"short"});break;case"PP":r=e.dateTime({width:"medium"});break;case"PPP":r=e.dateTime({width:"long"});break;default:r=e.dateTime({width:"full"})}return r.replace("{{date}}",et(a,e)).replace("{{time}}",rt(o,e))}};const at=nt;var ot=["D","DD"],it=["YY","YYYY"];function ut(t){return-1!==ot.indexOf(t)}function st(t){return-1!==it.indexOf(t)}function ct(t,e,r){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var dt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ft=/^'([^]*?)'?$/,ht=/''/g,pt=/[a-zA-Z]/;function mt(t,e,r){a(2,arguments);var i=String(e),u=r||{},s=u.locale||Y,c=s.options&&s.options.firstWeekContainsDate,d=null==c?1:n(c),l=null==u.firstWeekContainsDate?d:n(u.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=s.options&&s.options.weekStartsOn,h=null==f?0:n(f),p=null==u.weekStartsOn?h:n(u.weekStartsOn);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!s.localize)throw new RangeError("locale must contain localize property");if(!s.formatLong)throw new RangeError("locale must contain formatLong property");var g=o(t);if(!C(g))throw new RangeError("Invalid time value");var w=H(g,m(g)),y={firstWeekContainsDate:l,weekStartsOn:p,locale:s,_originalDate:g};return i.match(lt).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,at[e])(t,s.formatLong,y):t})).join("").match(dt).map((function(r){if("''"===r)return"'";var n=r[0];if("'"===n)return r.match(ft)[1].replace(ht,"'");var a=tt[n];if(a)return!u.useAdditionalWeekYearTokens&&st(r)&&ct(r,e,t),!u.useAdditionalDayOfYearTokens&&ut(r)&&ct(r,e,t),a(w,r,s.localize,y);if(n.match(pt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return r})).join("")}function gt(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getTime()>n.getTime()}function wt(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getTime()<n.getTime()}function yt(t){a(1,arguments);var e=o(t);return e.setMinutes(0,0,0),e}function vt(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in e=e||{})e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function bt(t,e,r){a(2,arguments);var i=r||{},u=i.locale,s=u&&u.options&&u.options.weekStartsOn,c=null==s?0:n(s),d=null==i.weekStartsOn?c:n(i.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=o(t),f=n(e),h=((f%7+7)%7<d?7:0)+f-l.getUTCDay();return l.setUTCDate(l.getUTCDate()+h),l}var Tt=/^(1[0-2]|0?\d)/,Mt=/^(3[0-1]|[0-2]?\d)/,Dt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Ct=/^(5[0-3]|[0-4]?\d)/,kt=/^(2[0-3]|[0-1]?\d)/,xt=/^(2[0-4]|[0-1]?\d)/,St=/^(1[0-1]|0?\d)/,Ot=/^(1[0-2]|0?\d)/,Pt=/^[0-5]?\d/,Et=/^[0-5]?\d/,Ut=/^\d/,Yt=/^\d{1,2}/,Ht=/^\d{1,3}/,Nt=/^\d{1,4}/,Wt=/^-?\d+/,qt=/^-?\d/,Lt=/^-?\d{1,2}/,At=/^-?\d{1,3}/,jt=/^-?\d{1,4}/,Ft=/^([+-])(\d{2})(\d{2})?|Z/,It=/^([+-])(\d{2})(\d{2})|Z/,Rt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Qt=/^([+-])(\d{2}):(\d{2})|Z/,Bt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Gt(t,e,r){var n=e.match(t);if(!n)return null;var a=parseInt(n[0],10);return{value:r?r(a):a,rest:e.slice(n[0].length)}}function Xt(t,e){var r=e.match(t);return r?"Z"===r[0]?{value:0,rest:e.slice(1)}:{value:("+"===r[1]?1:-1)*(36e5*(r[2]?parseInt(r[2],10):0)+6e4*(r[3]?parseInt(r[3],10):0)+1e3*(r[5]?parseInt(r[5],10):0)),rest:e.slice(r[0].length)}:null}function zt(t,e){return Gt(Wt,t,e)}function _t(t,e,r){switch(t){case 1:return Gt(Ut,e,r);case 2:return Gt(Yt,e,r);case 3:return Gt(Ht,e,r);case 4:return Gt(Nt,e,r);default:return Gt(new RegExp("^\\d{1,"+t+"}"),e,r)}}function Zt(t,e,r){switch(t){case 1:return Gt(qt,e,r);case 2:return Gt(Lt,e,r);case 3:return Gt(At,e,r);case 4:return Gt(jt,e,r);default:return Gt(new RegExp("^-?\\d{1,"+t+"}"),e,r)}}function Jt(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Kt(t,e){var r,n=e>0,a=n?e:1-e;if(a<=50)r=t||100;else{var o=a+50;r=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return n?r:1-r}var $t=[31,28,31,30,31,30,31,31,30,31,30,31],Vt=[31,29,31,30,31,30,31,31,30,31,30,31];function te(t){return t%400===0||t%4===0&&t%100!==0}var ee={G:{priority:140,parse:function(t,e,r,n){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}},set:function(t,e,r,n){return e.era=r,t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(t,e,r,n){var a=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return _t(4,t,a);case"yo":return r.ordinalNumber(t,{unit:"year",valueCallback:a});default:return _t(e.length,t,a)}},validate:function(t,e,r){return e.isTwoDigitYear||e.year>0},set:function(t,e,r,n){var a=t.getUTCFullYear();if(r.isTwoDigitYear){var o=Kt(r.year,a);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}var i="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(t,e,r,n){var a=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return _t(4,t,a);case"Yo":return r.ordinalNumber(t,{unit:"year",valueCallback:a});default:return _t(e.length,t,a)}},validate:function(t,e,r){return e.isTwoDigitYear||e.year>0},set:function(t,e,r,n){var a=I(t,n);if(r.isTwoDigitYear){var o=Kt(r.year,a);return t.setUTCFullYear(o,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),F(t,n)}var i="era"in e&&1!==e.era?1-r.year:r.year;return t.setUTCFullYear(i,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),F(t,n)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(t,e,r,n){return Zt("R"===e?4:e.length,t)},set:function(t,e,r,n){var a=new Date(0);return a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0),q(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(t,e,r,n){return Zt("u"===e?4:e.length,t)},set:function(t,e,r,n){return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(t,e,r,n){switch(e){case"Q":case"QQ":return _t(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=1&&e<=4},set:function(t,e,r,n){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(t,e,r,n){switch(e){case"q":case"qq":return _t(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=1&&e<=4},set:function(t,e,r,n){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(t,e,r,n){var a=function(t){return t-1};switch(e){case"M":return Gt(Tt,t,a);case"MM":return _t(2,t,a);case"Mo":return r.ordinalNumber(t,{unit:"month",valueCallback:a});case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(t,e,r,n){var a=function(t){return t-1};switch(e){case"L":return Gt(Tt,t,a);case"LL":return _t(2,t,a);case"Lo":return r.ordinalNumber(t,{unit:"month",valueCallback:a});case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(t,e,r,n){switch(e){case"w":return Gt(Ct,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return _t(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=53},set:function(t,e,r,i){return F(function(t,e,r){a(2,arguments);var i=o(t),u=n(e),s=Q(i,r)-u;return i.setUTCDate(i.getUTCDate()-7*s),i}(t,r,i),i)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(t,e,r,n){switch(e){case"I":return Gt(Ct,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return _t(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=53},set:function(t,e,r,i){return q(function(t,e){a(2,arguments);var r=o(t),i=n(e),u=j(r)-i;return r.setUTCDate(r.getUTCDate()-7*u),r}(t,r,i),i)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(t,e,r,n){switch(e){case"d":return Gt(Mt,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return _t(e.length,t)}},validate:function(t,e,r){var n=te(t.getUTCFullYear()),a=t.getUTCMonth();return n?e>=1&&e<=Vt[a]:e>=1&&e<=$t[a]},set:function(t,e,r,n){return t.setUTCDate(r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(t,e,r,n){switch(e){case"D":case"DD":return Gt(Dt,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return _t(e.length,t)}},validate:function(t,e,r){return te(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,r,n){return t.setUTCMonth(0,r),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(t,e,r,n){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return(t=bt(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(t,e,r,n){var a=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return _t(e.length,t,a);case"eo":return r.ordinalNumber(t,{unit:"day",valueCallback:a});case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return(t=bt(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(t,e,r,n){var a=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return _t(e.length,t,a);case"co":return r.ordinalNumber(t,{unit:"day",valueCallback:a});case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,r){return e>=0&&e<=6},set:function(t,e,r,n){return(t=bt(t,r,n)).setUTCHours(0,0,0,0),t},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(t,e,r,n){var a=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return _t(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return r.day(t,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return r.day(t,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a});default:return r.day(t,{width:"wide",context:"formatting",valueCallback:a})||r.day(t,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(t,{width:"short",context:"formatting",valueCallback:a})||r.day(t,{width:"narrow",context:"formatting",valueCallback:a})}},validate:function(t,e,r){return e>=1&&e<=7},set:function(t,e,r,i){return t=function(t,e){a(2,arguments);var r=n(e);r%7===0&&(r-=7);var i=o(t),u=((r%7+7)%7<1?7:0)+r-i.getUTCDay();return i.setUTCDate(i.getUTCDate()+u),i}(t,r,i),t.setUTCHours(0,0,0,0),t},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(t,e,r,n){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(Jt(r),0,0,0),t},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(t,e,r,n){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(Jt(r),0,0,0),t},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(t,e,r,n){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,r,n){return t.setUTCHours(Jt(r),0,0,0),t},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(t,e,r,n){switch(e){case"h":return Gt(Ot,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return _t(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=12},set:function(t,e,r,n){var a=t.getUTCHours()>=12;return a&&r<12?t.setUTCHours(r+12,0,0,0):a||12!==r?t.setUTCHours(r,0,0,0):t.setUTCHours(0,0,0,0),t},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(t,e,r,n){switch(e){case"H":return Gt(kt,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return _t(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=23},set:function(t,e,r,n){return t.setUTCHours(r,0,0,0),t},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(t,e,r,n){switch(e){case"K":return Gt(St,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return _t(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=11},set:function(t,e,r,n){return t.getUTCHours()>=12&&r<12?t.setUTCHours(r+12,0,0,0):t.setUTCHours(r,0,0,0),t},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(t,e,r,n){switch(e){case"k":return Gt(xt,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return _t(e.length,t)}},validate:function(t,e,r){return e>=1&&e<=24},set:function(t,e,r,n){var a=r<=24?r%24:r;return t.setUTCHours(a,0,0,0),t},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(t,e,r,n){switch(e){case"m":return Gt(Pt,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return _t(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=59},set:function(t,e,r,n){return t.setUTCMinutes(r,0,0),t},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(t,e,r,n){switch(e){case"s":return Gt(Et,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return _t(e.length,t)}},validate:function(t,e,r){return e>=0&&e<=59},set:function(t,e,r,n){return t.setUTCSeconds(r,0),t},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(t,e,r,n){return _t(e.length,t,(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))},set:function(t,e,r,n){return t.setUTCMilliseconds(r),t},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(t,e,r,n){switch(e){case"X":return Xt(Ft,t);case"XX":return Xt(It,t);case"XXXX":return Xt(Rt,t);case"XXXXX":return Xt(Bt,t);default:return Xt(Qt,t)}},set:function(t,e,r,n){return e.timestampIsSet?t:new Date(t.getTime()-r)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(t,e,r,n){switch(e){case"x":return Xt(Ft,t);case"xx":return Xt(It,t);case"xxxx":return Xt(Rt,t);case"xxxxx":return Xt(Bt,t);default:return Xt(Qt,t)}},set:function(t,e,r,n){return e.timestampIsSet?t:new Date(t.getTime()-r)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(t,e,r,n){return zt(t)},set:function(t,e,r,n){return[new Date(1e3*r),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(t,e,r,n){return zt(t)},set:function(t,e,r,n){return[new Date(r),{timestampIsSet:!0}]},incompatibleTokens:"*"}};const re=ee;var ne=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ae=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,oe=/^'([^]*?)'?$/,ie=/''/g,ue=/\S/,se=/[a-zA-Z]/;function ce(t,e){if(e.timestampIsSet)return t;var r=new Date(0);return r.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),r.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),r}function de(t){a(1,arguments);var e=o(t),r=e.getFullYear(),n=e.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function le(t){a(1,arguments);var e=o(t);return e.setDate(1),e.setHours(0,0,0,0),e}function fe(t){a(1,arguments);var e=o(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e}function he(t,e){a(1,arguments);var r=e||{},i=r.locale,u=i&&i.options&&i.options.weekStartsOn,s=null==u?0:n(u),c=null==r.weekStartsOn?s:n(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=o(t),l=d.getDay(),f=(l<c?7:0)+l-c;return d.setDate(d.getDate()-f),d.setHours(0,0,0,0),d}function pe(t){a(1,arguments);var e=o(t),r=new Date(0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}var me=r(12019),ge=r.n(me),we={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"},ye=function(){function t(t){var e=void 0===t?{}:t,r=e.locale,n=e.formats;this.lib="date-fns",this.locale=r,this.formats=Object.assign({},we,n)}return t.prototype.is12HourCycleInCurrentLocale=function(){return!this.locale||/a/.test(this.locale.formatLong.time())},t.prototype.getFormatHelperText=function(t){var e=this.locale||Y;return t.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((function(t){var r=t[0];return"p"===r||"P"===r?(0,ge()[r])(t,e.formatLong,{}):t})).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()},t.prototype.getCurrentLocaleCode=function(){var t;return(null===(t=this.locale)||void 0===t?void 0:t.code)||"en-US"},t.prototype.addSeconds=function(t,e){return function(t,e){return a(2,arguments),u(t,1e3*n(e))}(t,e)},t.prototype.addMinutes=function(t,e){return function(t,e){return a(2,arguments),u(t,6e4*n(e))}(t,e)},t.prototype.addHours=function(t,e){return function(t,e){return a(2,arguments),u(t,36e5*n(e))}(t,e)},t.prototype.addDays=function(t,e){return i(t,e)},t.prototype.addWeeks=function(t,e){return function(t,e){return a(2,arguments),i(t,7*n(e))}(t,e)},t.prototype.addMonths=function(t,e){return s(t,e)},t.prototype.isValid=function(t){return C(this.date(t))},t.prototype.getDiff=function(t,e,r){switch(r){case"years":return l(t,this.date(e));case"quarters":return function(t,e){a(2,arguments);var r=f(t,e)/3;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"months":return f(t,this.date(e));case"weeks":return function(t,e){a(2,arguments);var r=v(t,e)/7;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"days":return v(t,this.date(e));case"hours":return function(t,e){a(2,arguments);var r=b(t,e)/36e5;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"minutes":return function(t,e){a(2,arguments);var r=b(t,e)/6e4;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));case"seconds":return function(t,e){a(2,arguments);var r=b(t,e)/1e3;return r>0?Math.floor(r):Math.ceil(r)}(t,this.date(e));default:return b(t,this.date(e))}},t.prototype.isAfter=function(t,e){return gt(t,e)},t.prototype.isBefore=function(t,e){return wt(t,e)},t.prototype.startOfDay=function(t){return g(t)},t.prototype.endOfDay=function(t){return T(t)},t.prototype.getHours=function(t){return function(t){return a(1,arguments),o(t).getHours()}(t)},t.prototype.setHours=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e);return r.setHours(i),r}(t,e)},t.prototype.setMinutes=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e);return r.setMinutes(i),r}(t,e)},t.prototype.getSeconds=function(t){return function(t){return a(1,arguments),o(t).getSeconds()}(t)},t.prototype.setSeconds=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e);return r.setSeconds(i),r}(t,e)},t.prototype.isSameDay=function(t,e){return function(t,e){a(2,arguments);var r=g(t),n=g(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.isSameMonth=function(t,e){return function(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}(t,e)},t.prototype.isSameYear=function(t,e){return function(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getFullYear()===n.getFullYear()}(t,e)},t.prototype.isSameHour=function(t,e){return function(t,e){a(2,arguments);var r=yt(t),n=yt(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.startOfMonth=function(t){return le(t)},t.prototype.endOfMonth=function(t){return fe(t)},t.prototype.startOfWeek=function(t){return he(t,{locale:this.locale})},t.prototype.endOfWeek=function(t){return M(t,{locale:this.locale})},t.prototype.getYear=function(t){return function(t){return a(1,arguments),o(t).getFullYear()}(t)},t.prototype.setYear=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e);return isNaN(r)?new Date(NaN):(r.setFullYear(i),r)}(t,e)},t.prototype.date=function(t){return"undefined"===typeof t?new Date:null===t?null:new Date(t)},t.prototype.toJsDate=function(t){return t},t.prototype.parse=function(t,e){return""===t?null:function(t,e,r,i){a(3,arguments);var u=String(t),s=String(e),c=i||{},d=c.locale||Y;if(!d.match)throw new RangeError("locale must contain match property");var l=d.options&&d.options.firstWeekContainsDate,f=null==l?1:n(l),h=null==c.firstWeekContainsDate?f:n(c.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=d.options&&d.options.weekStartsOn,g=null==p?0:n(p),w=null==c.weekStartsOn?g:n(c.weekStartsOn);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===s)return""===u?o(r):new Date(NaN);var y,v={firstWeekContainsDate:h,weekStartsOn:w,locale:d},b=[{priority:10,subPriority:-1,set:ce,index:0}],T=s.match(ae).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,at[e])(t,d.formatLong,v):t})).join("").match(ne),M=[];for(y=0;y<T.length;y++){var D=T[y];!c.useAdditionalWeekYearTokens&&st(D)&&ct(D,s,t),!c.useAdditionalDayOfYearTokens&&ut(D)&&ct(D,s,t);var C=D[0],k=re[C];if(k){var x=k.incompatibleTokens;if(Array.isArray(x)){for(var S=void 0,O=0;O<M.length;O++){var P=M[O].token;if(-1!==x.indexOf(P)||P===C){S=M[O];break}}if(S)throw new RangeError("The format string mustn't contain `".concat(S.fullToken,"` and `").concat(D,"` at the same time"))}else if("*"===k.incompatibleTokens&&M.length)throw new RangeError("The format string mustn't contain `".concat(D,"` and any other token at the same time"));M.push({token:C,fullToken:D});var E=k.parse(u,D,d.match,v);if(!E)return new Date(NaN);b.push({priority:k.priority,subPriority:k.subPriority||0,set:k.set,validate:k.validate,value:E.value,index:b.length}),u=E.rest}else{if(C.match(se))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");if("''"===D?D="'":"'"===C&&(D=D.match(oe)[1].replace(ie,"'")),0!==u.indexOf(D))return new Date(NaN);u=u.slice(D.length)}}if(u.length>0&&ue.test(u))return new Date(NaN);var U=b.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,r){return r.indexOf(t)===e})).map((function(t){return b.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),N=o(r);if(isNaN(N))return new Date(NaN);var W=H(N,m(N)),q={};for(y=0;y<U.length;y++){var L=U[y];if(L.validate&&!L.validate(W,L.value,v))return new Date(NaN);var A=L.set(W,q,L.value,v);A[0]?(W=A[0],vt(q,A[1])):W=A}return W}(t,e,new Date,{locale:this.locale})},t.prototype.format=function(t,e){return this.formatByString(t,this.formats[e])},t.prototype.formatByString=function(t,e){return mt(t,e,{locale:this.locale})},t.prototype.isEqual=function(t,e){return null===t&&null===e||function(t,e){a(2,arguments);var r=o(t),n=o(e);return r.getTime()===n.getTime()}(t,e)},t.prototype.isNull=function(t){return null===t},t.prototype.isAfterDay=function(t,e){return gt(t,T(e))},t.prototype.isBeforeDay=function(t,e){return wt(t,g(e))},t.prototype.isBeforeYear=function(t,e){return wt(t,pe(e))},t.prototype.isAfterYear=function(t,e){return gt(t,D(e))},t.prototype.isWithinRange=function(t,e){return function(t,e){a(2,arguments);var r=e||{},n=o(t).getTime(),i=o(r.start).getTime(),u=o(r.end).getTime();if(!(i<=u))throw new RangeError("Invalid interval");return n>=i&&n<=u}(t,{start:e[0],end:e[1]})},t.prototype.formatNumber=function(t){return t},t.prototype.getMinutes=function(t){return t.getMinutes()},t.prototype.getMonth=function(t){return t.getMonth()},t.prototype.getDaysInMonth=function(t){return de(t)},t.prototype.setMonth=function(t,e){return function(t,e){a(2,arguments);var r=o(t),i=n(e),u=r.getFullYear(),s=r.getDate(),c=new Date(0);c.setFullYear(u,i,15),c.setHours(0,0,0,0);var d=de(c);return r.setMonth(i,Math.min(s,d)),r}(t,e)},t.prototype.getMeridiemText=function(t){return"am"===t?"AM":"PM"},t.prototype.getNextMonth=function(t){return s(t,1)},t.prototype.getPreviousMonth=function(t){return s(t,-1)},t.prototype.getMonthArray=function(t){for(var e=[pe(t)];e.length<12;){var r=e[e.length-1];e.push(this.getNextMonth(r))}return e},t.prototype.mergeDateAndTime=function(t,e){return this.setSeconds(this.setMinutes(this.setHours(t,this.getHours(e)),this.getMinutes(e)),this.getSeconds(e))},t.prototype.getWeekdays=function(){var t=this,e=new Date;return function(t,e){a(1,arguments);var r=t||{},n=o(r.start),i=o(r.end).getTime();if(!(n.getTime()<=i))throw new RangeError("Invalid interval");var u=[],s=n;s.setHours(0,0,0,0);var c=e&&"step"in e?Number(e.step):1;if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=i;)u.push(o(s)),s.setDate(s.getDate()+c),s.setHours(0,0,0,0);return u}({start:he(e,{locale:this.locale}),end:M(e,{locale:this.locale})}).map((function(e){return t.formatByString(e,"EEEEEE")}))},t.prototype.getWeekArray=function(t){for(var e=he(le(t),{locale:this.locale}),r=M(fe(t),{locale:this.locale}),n=0,a=e,o=[];wt(a,r);){var u=Math.floor(n/7);o[u]=o[u]||[],o[u].push(a),a=i(a,1),n+=1}return o},t.prototype.getYearRange=function(t,e){for(var r=pe(t),n=D(e),a=[],o=r;wt(o,n);)a.push(o),o=c(o,1);return a},t}();const ve=new ye({})},42703:(t,e,r)=>{function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,a,o=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);i=!0);}catch(s){u=!0,a=s}finally{try{i||null==r.return||r.return()}finally{if(u)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,{Z:()=>d});const d=s((function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,"adapter",void 0),c(this,"cloneAdapter",(function(t,e){var r={MomentUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"D",fullOrdinalWeek:"dddd, MMMM Do YYYY",slashDate:"YYYY/MM/DD",weekday:"dddd",weekdaymin:"dd",quarter:"[Q]Q"}},DateFnsUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"d",weekday:"EEEE",weekdaymin:"EEEEEE",slashDate:"yyyy/MM/dd",fullOrdinalWeek:"EEEE, MMMM do yyyy",quarter:"QQQ"}},LuxonUtils:{formats:{monthNumber:"M",dayOfMonthNumber:"d",weekday:"EEEE",weekdaymin:"EEEEE",slashDate:"yyyy/MM/dd",fullOrdinalWeek:"EEEE, MMMM dd yyyy",quarter:"Qq"}}},n=function(t){return{formats:t.formats,locale:t.locale}},a=e||n,o=t.constructor,i=r[t.constructor.name]||r.DateFnsUtils,u=i.getOptions,s=void 0===u?n:u,c=i.formats,d=s(t);return new o(Object.assign({},a(Object.assign({},d,{formats:Object.assign({},d.formats,c)}))))})),c(this,"format",(function(t,e,n){return(n?r.getAdapterWithNewLocale(n):r.adapter).format(t,e)})),c(this,"getAdapterWithNewLocale",(function(t){return r.cloneAdapter(r.adapter,(function(e){return i(i({},e),{},{locale:t})}))})),c(this,"date",(function(t){return r.adapter.date(t)})),c(this,"dateToSeconds",(function(t){return r.adapter.getSeconds(t)+60*r.adapter.getMinutes(t)+3600*r.adapter.getHours(t)})),c(this,"secondsToHourMinute",(function(t){var e=r.adapter.toJsDate(r.adapter.date(1e3*t));return[e.getUTCHours(),e.getUTCMinutes()]})),c(this,"differenceInCalendarMonths",(function(t,e){return 12*(r.adapter.getYear(t)-r.adapter.getYear(e))+(r.adapter.getMonth(t)-r.adapter.getMonth(e))})),c(this,"getStartOfWeek",(function(t,e){var n=e?r.getAdapterWithNewLocale(e):r.adapter;return n.startOfWeek(n.date(t))})),c(this,"formatDate",(function(t,e,n){return(n?r.getAdapterWithNewLocale(n):r.adapter).formatByString(t,e)})),c(this,"getWeekdayMinInLocale",(function(t,e){return r.getAdapterWithNewLocale(e).format(t,"weekdaymin")})),c(this,"getMonthInLocale",(function(t,e){var n=r.getAdapterWithNewLocale(e);return n.format(n.setMonth(n.date(),t),"month")})),c(this,"getWeekdayInLocale",(function(t,e){return r.getAdapterWithNewLocale(e).format(t,"weekday")})),c(this,"getQuarterInLocale",(function(t,e){var n=r.getAdapterWithNewLocale(e);return n.format(n.setMonth(n.date(),3*t),"quarter")})),c(this,"getEndOfWeek",(function(t){return r.adapter.endOfWeek(t)})),c(this,"getDay",(function(t){return Number(r.adapter.formatByString(t,"e"))-1})),c(this,"addWeeks",(function(t,e){return r.adapter.addDays(t,7*e)})),c(this,"subWeeks",(function(t,e){return r.addWeeks(t,-1*e)})),c(this,"addYears",(function(t,e){return r.adapter.addMonths(t,12*e)})),c(this,"subYears",(function(t,e){return r.addYears(t,-1*e)})),c(this,"isSameYear",(function(t,e){return!(!t||!e)&&r.adapter.isSameYear(t,e)})),c(this,"isStartOfMonth",(function(t){return r.adapter.isSameDay(t,r.adapter.startOfMonth(t))})),c(this,"isEndOfMonth",(function(t){return r.adapter.isSameDay(t,r.adapter.endOfMonth(t))})),c(this,"isDayInRange",(function(t,e,n){return r.adapter.isWithinRange(t,[e,n])})),c(this,"isSameDay",(function(t,e){return!(!t||!e)&&r.adapter.isSameDay(t,e)})),c(this,"isSameMonth",(function(t,e){return!(!t||!e)&&r.adapter.isSameMonth(t,e)})),c(this,"dateRangeIncludesDates",(function(t,e){var a=n(t,2),o=a[0],i=a[1];if(o&&i&&Array.isArray(e)&&e.length)for(var u=0;u<e.length;u++){var s=e[u];if(r.isDayInRange(s,o,i))return!0}return!1})),c(this,"subDays",(function(t,e){return r.adapter.addDays(t,-1*e)})),c(this,"subMonths",(function(t,e){return r.adapter.addMonths(t,-1*e)})),c(this,"min",(function(t){return t.reduce((function(t,e){return r.adapter.isBefore(e,t)?e:t}))})),c(this,"max",(function(t){return t.reduce((function(t,e){return r.adapter.isAfter(e,t)?e:t}))})),c(this,"getEffectiveMinDate",(function(t){var e=t.minDate,n=t.includeDates;if(n&&e){var a=n.filter((function(t){return r.isOnOrAfterDay(t,e)}));return r.min(a)}return n&&n.length?r.min(n):n&&n.length||!e?r.adapter.date():e})),c(this,"getEffectiveMaxDate",(function(t){var e=t.maxDate,n=t.includeDates;if(n&&e){var a=n.filter((function(t){return r.isOnOrBeforeDay(t,e)}));return r.max(a)}return n?r.max(n):!n&&e?e:r.adapter.date()})),c(this,"monthDisabledBefore",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minDate,a=e.includeDates,o=r.subMonths(t,1);return!!n&&r.differenceInCalendarMonths(n,o)>0||!!a&&a.every((function(t){return r.differenceInCalendarMonths(t,o)>0}))||!1})),c(this,"monthDisabledAfter",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.maxDate,a=e.includeDates,o=r.adapter.addMonths(t,1);return!!n&&r.differenceInCalendarMonths(o,n)>0||!!a&&a.every((function(t){return r.differenceInCalendarMonths(o,t)>0}))||!1})),c(this,"setDate",(function(t,e){var n=r.adapter.startOfMonth(t),a=r.adapter.mergeDateAndTime(n,t),o=r.adapter.setSeconds(a,r.adapter.getSeconds(t));return r.adapter.addDays(o,e-1)})),c(this,"getDate",(function(t){return Number(r.adapter.format(t,"dayOfMonthNumber"))})),c(this,"applyDateToTime",(function(t,e){if(!t)return e;var n=r.adapter.getYear(e),a=r.adapter.getMonth(e),o=r.getDate(e),i=r.adapter.setYear(t,n),u=r.adapter.setMonth(i,a);return r.setDate(u,o)})),c(this,"applyTimeToDate",(function(t,e){return t?r.adapter.setSeconds(r.adapter.mergeDateAndTime(t,e),0):e})),c(this,"isDayDisabled",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minDate,a=e.maxDate,o=e.excludeDates,i=e.includeDates,u=e.filterDate;return r.isOutOfBounds(t,{minDate:n,maxDate:a})||o&&o.some((function(e){return r.adapter.isSameDay(t,e)}))||i&&!i.some((function(e){return r.adapter.isSameDay(t,e)}))||u&&!u(t)||!1})),c(this,"isOnOrAfterDay",(function(t,e){return!!r.adapter.isSameDay(t,e)||r.adapter.isAfter(t,e)})),c(this,"isOnOrBeforeDay",(function(t,e){return!!r.adapter.isSameDay(t,e)||r.adapter.isBefore(t,e)})),c(this,"isOutOfBounds",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minDate,a=e.maxDate;return!!n&&!r.isOnOrAfterDay(t,n)||!!a&&!r.isOnOrBeforeDay(t,a)})),c(this,"parseString",(function(t,e,n){return(n?r.getAdapterWithNewLocale(n):r.adapter).parse(t,e)})),c(this,"parse",(function(t,e,n){var a=n?r.getAdapterWithNewLocale(n):r.adapter;return a.parse(t,a.formats[e])})),c(this,"setMilliseconds",(function(t,e){return r.adapter.date(1e3*r.adapter.getSeconds(r.adapter.startOfDay(t))+e)})),c(this,"set",(function(t,e){var n=t;return null!=e.year&&(n=r.setYear(n,e.year)),null!=e.month&&(n=r.setMonth(n,e.month)),null!=e.date&&(n=r.setDate(n,Number(e.date))),null!=e.hours&&(n=r.setHours(n,Number(e.hours))),null!=e.minutes&&(n=r.setMinutes(n,Number(e.minutes))),null!=e.seconds&&(n=r.setSeconds(n,Number(e.seconds))),n})),c(this,"getQuarter",(function(t){return Math.floor(r.getMonth(t)/3)+1})),c(this,"setSeconds",(function(t,e){return r.adapter.setSeconds(t,e)})),c(this,"setMinutes",(function(t,e){return r.adapter.setMinutes(t,e)})),c(this,"setHours",(function(t,e){return r.adapter.setHours(t,e)})),c(this,"setMonth",(function(t,e){return r.adapter.setMonth(t,e)})),c(this,"setYear",(function(t,e){return r.adapter.setYear(t,e)})),c(this,"getMinutes",(function(t){return r.adapter.getMinutes(t)})),c(this,"getHours",(function(t){return r.adapter.getHours(t)})),c(this,"getMonth",(function(t){return r.adapter.getMonth(t)})),c(this,"getYear",(function(t){return r.adapter.getYear(t)})),c(this,"getStartOfMonth",(function(t){return r.adapter.startOfMonth(t)})),c(this,"getEndOfMonth",(function(t){return r.adapter.endOfMonth(t)})),c(this,"addDays",(function(t,e){return r.adapter.addDays(t,e)})),c(this,"addMonths",(function(t,e){return r.adapter.addMonths(t,e)})),c(this,"isBefore",(function(t,e){return r.adapter.isBefore(t,e)})),c(this,"isAfter",(function(t,e){return r.adapter.isAfter(t,e)})),c(this,"isEqual",(function(t,e){return r.adapter.isEqual(t,e)})),c(this,"isValid",(function(t){return r.adapter.isValid(t)})),this.adapter=this.cloneAdapter(e)}))},97142:(t,e,r)=>{r.d(e,{Z:()=>T});var n=r(66845),a=r(80318),o=r(99282),i=r(36355),u=r(91034),s=r(42703),c=r(15610);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(this,arguments)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,a,o=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);i=!0);}catch(s){u=!0,a=s}finally{try{i||null==r.return||r.return()}finally{if(u)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t){var e=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(t){return!1}}();return function(){var r,n=y(t);if(e){var a=y(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===d(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return w(t)}(this,r)}}function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function v(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(h,t);var e,r,c,d=g(h);function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),v(w(e=d.call(this,t)),"dateHelpers",void 0),v(w(e),"state",{steps:[],value:null}),v(w(e),"onChange",(function(t){if(e.setState({value:t.value[0]}),0!==t.value.length){var r="string"===typeof t.value[0].id?parseInt(t.value[0].id,10):t.value[0].id||0;e.handleChange(r)}else e.props.nullable&&e.props.onChange&&e.props.onChange(null)})),v(w(e),"secondsToLabel",(function(t,r){var n=f(e.dateHelpers.secondsToHourMinute(t),2),a=n[0],o=n[1],i=function(t){return t<10?"0".concat(t):t};if("12"===r){var u=t>=43200;return u&&(a-=12),0===a&&(a=12),"".concat(a,":").concat(i(o)," ").concat(u?"PM":"AM")}return"".concat(i(a),":").concat(i(o))})),v(w(e),"stringToOptions",(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12",n="12"===r?/^(1[0-2]|0?[1-9]):([0-5][0-9]) ?([AaPp][Mm]?)?$/:/^([0-9]|0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$/,a=t.match(n);if(!a)return[];var o=Number(a[1]),i=Number(a[2]),u=[];if("24"===r)u=[{hours:o,minutes:i}];else{var s=o%12,c=a[3];u=c?[{hours:"a"===c.toLowerCase()[0]?s:s+12,minutes:i}]:[{hours:s,minutes:i},{hours:s+12,minutes:i}]}return u.map((function(t){var n=3600*t.hours+60*t.minutes;return{id:n,label:e.secondsToLabel(n,r)}}))})),v(w(e),"handleChange",(function(t){var r=f(e.dateHelpers.secondsToHourMinute(t),2),n=r[0],a=r[1],o=e.setTime(e.props.value,n,a,0);e.props.onChange&&e.props.onChange(o)})),v(w(e),"setTime",(function(t,r,n,a){var o=e.dateHelpers;return(0,o.setSeconds)((0,o.setMinutes)((0,o.setHours)(e.props.adapter.startOfDay(e.props.adapter.date(t||void 0)),r),n),a)})),v(w(e),"getTimeWindowInSeconds",(function(t){var r=e.props,n=r.minTime,a=r.maxTime,o=r.ignoreMinMaxDateComponent,i=e.setTime(e.props.value,0,0,0),u=e.setTime(e.props.value,24,0,0);n=!n||e.props.adapter.isBefore(n,i)&&!o?i:e.setTime(e.props.value,e.props.adapter.getHours(n),e.props.adapter.getMinutes(n),e.props.adapter.getSeconds(n)),a=!a||e.props.adapter.isAfter(a,u)&&!o?u:e.setTime(e.props.value,e.props.adapter.getHours(a),e.props.adapter.getMinutes(a),e.props.adapter.getSeconds(a)+1);var s=e.props.adapter.toJsDate(n),c=e.props.adapter.toJsDate(a),d=e.props.adapter.toJsDate(i);return{start:(s-d)/1e3,end:(c-d)/1e3}})),v(w(e),"buildSteps",(function(){var t=e.props.step,r=void 0===t?900:t,n=e.getTimeWindowInSeconds(r),a=(n.end-n.start)/r;if(!Number.isInteger(a)){a=Math.round(a)}for(var o=[],i=n.start;i<n.end;i+=r)o.push(i);return o})),v(w(e),"creatableFilterOptions",(function(t,r,n,a){var o=e.stringToOptions(r,e.props.format);return o.length?o:(0,i.Z)(t,r,n,a)})),v(w(e),"buildSelectedOption",(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"12",n=e.dateHelpers.dateToSeconds(t);return{id:n,label:e.secondsToLabel(n,r||"12")}})),e.dateHelpers=new s.Z(t.adapter),e}return e=h,(r=[{key:"componentDidMount",value:function(){var t=this.buildSteps();if(this.props.value&&this.props.adapter.isValid(this.props.value))this.setState({steps:t,value:this.buildSelectedOption(this.props.value,this.props.format)});else{var e=this.dateHelpers.dateToSeconds(this.props.adapter.date()),r=43200;t.forEach((function(t){Math.abs(t-e)<Math.abs(r-e)&&(r=t)})),this.setState({steps:t,value:this.props.nullable?void 0:{id:r,label:this.secondsToLabel(r,this.props.format)}}),(this.props.value||!this.props.nullable&&!this.props.value)&&this.handleChange(r)}}},{key:"componentDidUpdate",value:function(t){var e=t.format!==this.props.format,r=t.step!==this.props.step,n=t.adapter!==this.props.adapter,a=t.minTime!==this.props.minTime,o=t.maxTime!==this.props.maxTime;if(n&&(this.dateHelpers=new s.Z(this.props.adapter)),e||r||a||o){var i=this.buildSteps();this.setState({steps:i})}t.value&&!this.props.value&&this.setState({value:null})}},{key:"render",value:function(){var t=this,e=this.props,r=e.format,i=e.overrides,s=void 0===i?{}:i,c=e.adapter,d=f((0,a.jb)(s.Select,u.Z),2),h=d[0],p=d[1];p.overrides=(0,a.aO)({Dropdown:{style:{maxHeight:"126px"}}},p.overrides);var m=this.props.value&&c.isValid(this.props.value)?this.buildSelectedOption(this.props.value,this.props.format):this.state.value;return n.createElement(o.R.Consumer,null,(function(e){var a="12"===r?e.datepicker.timePickerAriaLabel12Hour:e.datepicker.timePickerAriaLabel24Hour;return n.createElement(h,l({"aria-label":a,disabled:t.props.disabled,error:t.props.error,positive:t.props.positive,size:t.props.size,placeholder:t.props.placeholder||"HH:mm",options:t.state.steps.map((function(e){return{id:e,label:t.secondsToLabel(e,t.props.format)}})),filterOptions:t.props.creatable?t.creatableFilterOptions:void 0,onChange:t.onChange,value:m?[m]:m,clearable:!1,backspaceRemoves:!1,valueKey:"label"},p))}))}}])&&p(e.prototype,r),c&&p(e,c),Object.defineProperty(e,"prototype",{writable:!1}),h}(n.Component);v(b,"defaultProps",{format:"12",step:900,creatable:!1,adapter:c.Z,ignoreMinMaxDateComponent:!1});const T=b},12019:(t,e)=>{function r(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}}function n(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={p:n,P:function(t,e){var a,o=t.match(/(P+)(p+)?/),i=o[1],u=o[2];if(!u)return r(t,e);switch(i){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;default:a=e.dateTime({width:"full"})}return a.replace("{{date}}",r(i,e)).replace("{{time}}",n(u,e))}};e.default=a,t.exports=e.default}}]);
|