streamlit-nightly 1.39.1.dev20241008__py2.py3-none-any.whl → 1.39.1.dev20241010__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.
Files changed (53) hide show
  1. streamlit/__init__.py +1 -0
  2. streamlit/elements/widgets/button_group.py +125 -1
  3. streamlit/runtime/caching/cache_utils.py +8 -1
  4. streamlit/static/asset-manifest.json +23 -24
  5. streamlit/static/index.html +1 -1
  6. streamlit/static/static/css/4096.8b8f33d6.chunk.css +1 -0
  7. streamlit/static/static/css/9943.d452238e.chunk.css +1 -0
  8. streamlit/static/static/js/{1086.9d39d6cd.chunk.js → 1086.fba3f8f8.chunk.js} +1 -1
  9. streamlit/static/static/js/1780.3f47c955.chunk.js +1 -0
  10. streamlit/static/static/js/2133.68768c00.chunk.js +1 -0
  11. streamlit/static/static/js/223.7f001ddb.chunk.js +1 -0
  12. streamlit/static/static/js/3391.7aba08a0.chunk.js +17 -0
  13. streamlit/static/static/js/3560.e1f19895.chunk.js +1 -0
  14. streamlit/static/static/js/4096.178414b7.chunk.js +2 -0
  15. streamlit/static/static/js/{195.8e0d331c.chunk.js.LICENSE.txt → 4096.178414b7.chunk.js.LICENSE.txt} +0 -10
  16. streamlit/static/static/js/4103.a5610a9d.chunk.js +1 -0
  17. streamlit/static/static/js/4827.70332470.chunk.js +1 -0
  18. streamlit/static/static/js/5281.5e3aa7c6.chunk.js +1 -0
  19. streamlit/static/static/js/5618.2d933cb5.chunk.js +5 -0
  20. streamlit/static/static/js/{6360.6d7cfa35.chunk.js → 6360.7f51dec0.chunk.js} +1 -1
  21. streamlit/static/static/js/7612.3f409b56.chunk.js +2 -0
  22. streamlit/static/static/js/{8460.7719d604.chunk.js → 8460.3529d92b.chunk.js} +1 -1
  23. streamlit/static/static/js/{8815.288881c5.chunk.js → 8815.edfbec45.chunk.js} +1 -1
  24. streamlit/static/static/js/{9077.e0a8db2a.chunk.js → 9077.721329d6.chunk.js} +1 -1
  25. streamlit/static/static/js/{9114.ad95241a.chunk.js → 9114.11dd8c48.chunk.js} +1 -1
  26. streamlit/static/static/js/9923.50362c7d.chunk.js +1 -0
  27. streamlit/static/static/js/{9943.fc19b785.chunk.js → 9943.29cd4b6c.chunk.js} +1 -1
  28. streamlit/static/static/js/main.d13622b4.js +28 -0
  29. streamlit/static/static/js/{main.b82d9912.js.LICENSE.txt → main.d13622b4.js.LICENSE.txt} +12 -0
  30. {streamlit_nightly-1.39.1.dev20241008.dist-info → streamlit_nightly-1.39.1.dev20241010.dist-info}/METADATA +1 -1
  31. {streamlit_nightly-1.39.1.dev20241008.dist-info → streamlit_nightly-1.39.1.dev20241010.dist-info}/RECORD +36 -38
  32. streamlit/static/static/css/195.81b3d18f.chunk.css +0 -1
  33. streamlit/static/static/css/9943.93909c7e.chunk.css +0 -1
  34. streamlit/static/static/js/1780.e9cf7cb1.chunk.js +0 -1
  35. streamlit/static/static/js/195.8e0d331c.chunk.js +0 -2
  36. streamlit/static/static/js/3391.663b9d47.chunk.js +0 -17
  37. streamlit/static/static/js/3560.ce031236.chunk.js +0 -1
  38. streamlit/static/static/js/3710.5f974086.chunk.js +0 -1
  39. streamlit/static/static/js/4103.374d188d.chunk.js +0 -1
  40. streamlit/static/static/js/4827.f9cb5fa3.chunk.js +0 -1
  41. streamlit/static/static/js/491.c1a2c0b2.chunk.js +0 -2
  42. streamlit/static/static/js/491.c1a2c0b2.chunk.js.LICENSE.txt +0 -1
  43. streamlit/static/static/js/5281.10678439.chunk.js +0 -1
  44. streamlit/static/static/js/5544.2769497c.chunk.js +0 -1
  45. streamlit/static/static/js/5618.83c6b184.chunk.js +0 -5
  46. streamlit/static/static/js/7612.39e7938b.chunk.js +0 -2
  47. streamlit/static/static/js/9923.790a85e7.chunk.js +0 -1
  48. streamlit/static/static/js/main.b82d9912.js +0 -28
  49. /streamlit/static/static/js/{7612.39e7938b.chunk.js.LICENSE.txt → 7612.3f409b56.chunk.js.LICENSE.txt} +0 -0
  50. {streamlit_nightly-1.39.1.dev20241008.data → streamlit_nightly-1.39.1.dev20241010.data}/scripts/streamlit.cmd +0 -0
  51. {streamlit_nightly-1.39.1.dev20241008.dist-info → streamlit_nightly-1.39.1.dev20241010.dist-info}/WHEEL +0 -0
  52. {streamlit_nightly-1.39.1.dev20241008.dist-info → streamlit_nightly-1.39.1.dev20241010.dist-info}/entry_points.txt +0 -0
  53. {streamlit_nightly-1.39.1.dev20241008.dist-info → streamlit_nightly-1.39.1.dev20241010.dist-info}/top_level.txt +0 -0
@@ -1,17 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[3391],{139:(t,e,a)=>{a.d(e,{R:()=>s});var n=a(58878),r=a(38815),i=a(52050),o=a(90782);const s=t=>{var e;let{children:a}=t;const s=null===(e=(0,n.useContext)(i.E))||void 0===e?void 0:e();return s?(0,r.createPortal)(a,s):(0,o.jsx)(o.Fragment,{children:a})}},81580:(t,e,a)=>{a.d(e,{A:()=>l});var n=a(58878),r=a(32099),i=a.n(r);const o=(0,a(89653).A)("div",{target:"ecnfqzf0"})((()=>({"@media print":{display:"none"}})),"");var s=a(90782);const c=t=>{let{className:e,scriptRunId:a,numParticles:n,numParticleTypes:r,ParticleComponent:c}=t;return(0,s.jsx)(o,{className:e,"data-testid":e,children:i()(n).map((t=>{const e=Math.floor(Math.random()*r);return(0,s.jsx)(c,{particleType:e},a+t)}))})},l=(0,n.memo)(c)},30625:(t,e,a)=>{a.r(e),a.d(e,{NUM_FLAKES:()=>f,default:()=>k});var n=a(58878);const r=a.p+"static/media/flake-0.beded754e8024c73d9d2.png",i=a.p+"static/media/flake-1.8077dc154e0bf900aa73.png",o=a.p+"static/media/flake-2.e3f07d06933dd0e84c24.png";var s=a(81580),c=a(139),l=a(89653),d=a(60667);const m=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.random()*(t-e)+e},p=(0,l.A)("img",{target:"ekdfb790"})((t=>{let{theme:e}=t;return{position:"fixed",top:"-150px",marginLeft:"-75px",zIndex:e.zIndices.balloons,left:`${m(90,10)}vw`,animationDelay:`${m(4e3)}ms`,height:"150px",width:"150px",pointerEvents:"none",animationDuration:"3000ms",animationName:d.i7`
2
- from {
3
- transform:
4
- translateY(0)
5
- rotateX(${m(360)}deg)
6
- rotateY(${m(360)}deg)
7
- rotateZ(${m(360)}deg);
8
- }
9
-
10
- to {
11
- transform:
12
- translateY(calc(100vh + ${150}px))
13
- rotateX(0)
14
- rotateY(0)
15
- rotateZ(0);
16
- }
17
- `,animationTimingFunction:"ease-in",animationDirection:"normal",animationIterationCount:1,opacity:1}}),"");var u=a(90782);const f=100,h=[r,i,o],g=h.length,v=t=>{let{particleType:e}=t;return(0,u.jsx)(p,{src:h[e]})},x=function(t){let{scriptRunId:e}=t;return(0,u.jsx)(c.R,{children:(0,u.jsx)(s.A,{className:"stSnow","data-testid":"stSnow",scriptRunId:e,numParticleTypes:g,numParticles:f,ParticleComponent:v})})},k=(0,n.memo)(x)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[3560],{34752:(e,t,r)=>{r.d(t,{X:()=>l,o:()=>i});var o=r(58878),n=r(25571);class i{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,r){(0,n.se)(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,n._L)(t)&&(this.formClearListener=e.addFormClearedListener(t,r),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function l(e){let{element:t,widgetMgr:r,onFormCleared:i}=e;(0,o.useEffect)((()=>{if(!(0,n._L)(t.formId))return;const e=r.addFormClearedListener(t.formId,i);return()=>{e.disconnect()}}),[t,r,i])}},33560:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var o=r(58878),n=r(10783),i=r(38065),l=r(3680),a=r(8151),s=r(34752),d=r(70474),u=r(78286),c=r(93480),p=r(997),f=r(25571);const b=(0,r(89653).A)("div",{target:"e1ipygm10"})((()=>({position:"absolute",top:"50%",right:"2.05em"})),"");var y=r(90782);class g extends o.PureComponent{constructor(){super(...arguments),this.formClearHelper=new s.o,this.state={value:this.initialValue},this.commitWidgetValue=e=>{const{widgetMgr:t,element:r,fragmentId:o}=this.props;t.setStringValue(r,this.state.value,e,o)},this.onFormCleared=()=>{this.setState(((e,t)=>{var r;return{value:null!==(r=t.element.default)&&void 0!==r?r:null}}),(()=>this.commitWidgetValue({fromUi:!0})))},this.handleChange=e=>{let t;t=null===e?null:this.dateToString(e),this.setState({value:t},(()=>this.commitWidgetValue({fromUi:!0})))},this.stringToDate=e=>{if(null===e)return null;const[t,r]=e.split(":").map(Number),o=new Date;return o.setHours(t),o.setMinutes(r),o},this.dateToString=e=>`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`}get initialValue(){var e;const t=this.props.widgetMgr.getStringValue(this.props.element);return null!==(e=null!==t&&void 0!==t?t:this.props.element.default)&&void 0!==e?e:null}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:null!==e&&void 0!==e?e:null},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{disabled:t,width:r,element:o,widgetMgr:a,theme:s}=this.props,g=(0,f.hX)(o.default)&&!t,m={width:r},h={Select:{props:{disabled:t,overrides:{ControlContainer:{style:{height:s.sizes.minElementHeight,borderLeftWidth:s.sizes.borderWidth,borderRightWidth:s.sizes.borderWidth,borderTopWidth:s.sizes.borderWidth,borderBottomWidth:s.sizes.borderWidth}},IconsContainer:{style:()=>({paddingRight:s.spacing.sm})},ValueContainer:{style:()=>({lineHeight:s.lineHeights.inputWidget,paddingRight:s.spacing.sm,paddingLeft:s.spacing.sm,paddingBottom:s.spacing.sm,paddingTop:s.spacing.sm})},SingleValue:{props:{"data-testid":"stTimeInputTimeDisplay"}},Dropdown:{style:()=>({paddingTop:s.spacing.none,paddingBottom:s.spacing.none})},Popover:{props:{overrides:{Body:{style:()=>({marginTop:s.spacing.px})}}}},SelectArrow:{component:l.A,props:{overrides:{Svg:{style:()=>({width:s.iconSizes.xl,height:s.iconSizes.xl})}}}}}}}};return this.formClearHelper.manageFormClearListener(a,o.formId,this.onFormCleared),(0,y.jsxs)("div",{className:"stTimeInput","data-testid":"stTimeInput",style:m,children:[(0,y.jsx)(d.L,{label:o.label,disabled:t,labelVisibility:(0,f.yv)(null===(e=o.labelVisibility)||void 0===e?void 0:e.value),children:o.help&&(0,y.jsx)(u.j,{children:(0,y.jsx)(c.A,{content:o.help,placement:p.W.TOP_RIGHT})})}),(0,y.jsx)(n.A,{format:"24",step:o.step?Number(o.step):900,value:(0,f.hX)(this.state.value)?void 0:this.stringToDate(this.state.value),onChange:this.handleChange,overrides:h,nullable:g,creatable:!0,"aria-label":o.label}),g&&!(0,f.hX)(this.state.value)&&(0,y.jsx)(b,{onClick:()=>{this.handleChange(null)},"data-testid":"stTimeInputClearButton",children:(0,y.jsx)(i.GZ,{overrides:{Svg:{style:{color:s.colors.darkGray,transform:"scale(1.41)",width:s.spacing.twoXL,":hover":{fill:s.colors.bodyText}}}},$isFocusVisible:!1})})]})}}const m=(0,a.b)(g)},14051:(e,t,r)=>{r.r(t),r.d(t,{ThemeConsumer:()=>l,ThemeProvider:()=>o.A,createThemedStyled:()=>n.Fo,createThemedUseStyletron:()=>n.jT,createThemedWithStyle:()=>n.NN,expandBorderStyles:()=>i.d2,hexToRgb:()=>i.E2,styled:()=>n.I4,useStyletron:()=>n.c6,withStyle:()=>n._F,withWrapper:()=>n.K6});var o=r(93200),n=r(57224),i=r(76939),l=o.D.Consumer},91367:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getOverride=f,t.getOverrideProps=b,t.getOverrides=g,t.mergeConfigurationOverrides=h,t.mergeOverride=m,t.mergeOverrides=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign({},e,t);return Object.keys(r).reduce((function(r,o){return r[o]=m(y(e[o]),y(t[o])),r}),{})},t.toObjectOverride=y,t.useOverrides=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.useMemo((function(){return Object.keys(e).reduce((function(r,o){return r[o]=g(t[o],e[o]),r}),{})}),[t])};var o,n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}o.default=e,r&&r.set(e,o);return o}(r(58878)),i=r(64157),l=(o=r(48095))&&o.__esModule?o:{default:o};function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},s.apply(this,arguments)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e){return(0,i.isValidElementType)(e)?e:e&&"object"===p(e)?e.component:e}function b(e){return e&&"object"===p(e)?"object"===p(e.props)?u(u({},e.props),{},{$style:e.style}):{$style:e.style}:{}}function y(e){return(0,i.isValidElementType)(e)?{component:e}:e||{}}function g(e,t){var r=f(e)||t;if(e&&"object"===p(e)&&"function"===typeof e.props){0;var o=n.forwardRef((function(t,o){var i=e.props(t),l=b(u(u({},e),{},{props:i}));return n.createElement(r,s({ref:o},l))}));return o.displayName=r.displayName,[o,{}]}var i=b(e);return[r,i]}function m(e,t){var r=u(u({},e),t);return e.props&&t.props&&(r.props=h(e.props,t.props)),e.style&&t.style&&(r.style=h(e.style,t.style)),r}function h(e,t){return"object"===p(e)&&"object"===p(t)?(0,l.default)({},e,t):function(){return(0,l.default)({},"function"===typeof e?e.apply(void 0,arguments):e,"function"===typeof t?t.apply(void 0,arguments):t)}}},311:(e,t,r)=>{function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=i?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(n,l,a):n[l]=e[l]}n.default=e,r&&r.set(e,n);return n}(r(58878)),l=r(14051),a=r(91367),s=(n=r(71123))&&n.__esModule?n:{default:n},d=["title","size","color","overrides"];function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},c.apply(this,arguments)}function p(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},i=Object.keys(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var o,n,i=[],l=!0,a=!1;try{for(r=r.call(e);!(l=(o=r.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(s){a=!0,n=s}finally{try{l||null==r.return||r.return()}finally{if(a)throw n}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}(e,t)||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 b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function y(e,t){var r=f((0,l.useStyletron)(),2)[1],o=e.title,n=void 0===o?"Delete Alt":o,u=e.size,b=e.color,y=e.overrides,g=void 0===y?{}:y,m=p(e,d),h=(0,a.mergeOverride)({component:r.icons&&r.icons.DeleteAlt?r.icons.DeleteAlt:null},g&&g.Svg?(0,a.toObjectOverride)(g.Svg):{});return i.createElement(s.default,c({viewBox:"0 0 24 24",ref:t,title:n,size:u,color:b,overrides:{Svg:h}},m),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58173 16.4183 4 12 4C7.58173 4 4 7.58173 4 12C4 16.4183 7.58173 20 12 20ZM10.0303 8.96967C9.73743 8.67679 9.26257 8.67679 8.96967 8.96967C8.67676 9.26257 8.67676 9.73743 8.96967 10.0303L10.9393 12L8.96967 13.9697C8.67676 14.2626 8.67676 14.7374 8.96967 15.0303C9.26257 15.3232 9.73743 15.3232 10.0303 15.0303L12 13.0607L13.9697 15.0303C14.2626 15.3232 14.7374 15.3232 15.0303 15.0303C15.3232 14.7374 15.3232 14.2626 15.0303 13.9697L13.0607 12L15.0303 10.0303C15.3232 9.73743 15.3232 9.26257 15.0303 8.96967C14.7374 8.67679 14.2626 8.67679 13.9697 8.96967L12 10.9393L10.0303 8.96967Z"}))}var g=i.forwardRef(y);t.default=g},71123:(e,t,r)=>{function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!==typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=i?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(n,l,a):n[l]=e[l]}n.default=e,r&&r.set(e,n);return n}(r(58878)),l=r(91367),a=r(20658),s=(n=r(5087))&&n.__esModule?n:{default:n},d=["children","title","size","color","overrides"];function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},c.apply(this,arguments)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var o,n,i=[],l=!0,a=!1;try{for(r=r.call(e);!(l=(o=r.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(s){a=!0,n=s}finally{try{l||null==r.return||r.return()}finally{if(a)throw n}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(e,t)||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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function m(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},i=Object.keys(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var h=function(e,t){var r=e.children,o=e.title,n=e.size,u=e.color,p=e.overrides,b=void 0===p?{}:p,g=m(e,d),h=y((0,l.getOverrides)(b.Svg,a.Svg),2),v=h[0],O=h[1],S=v.__STYLETRON__?f(f({title:o,$color:u,$size:n},g),O):f(f({title:o,color:u,size:n},(0,s.default)(g)),(0,s.default)(O));return i.createElement(v,c({"data-baseweb":"icon",ref:t},S),o?i.createElement("title",null,o):null,r)},v=i.forwardRef(h);t.default=v},5087:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};for(var r in e)"$"!==r[0]&&(t[r]=e[r]);return t}},20658:(e,t,r)=>{function o(e){var t=e.$theme,r=e.$size,o=e.$color,n=t.sizing.scale600;r&&(n=t.sizing[r]?t.sizing[r]:"number"===typeof r?"".concat(r,"px"):r);var i="currentColor";return o&&(i=t.colors[o]?t.colors[o]:o),{display:"inline-block",fill:i,color:i,height:n,width:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.Svg=void 0,t.getSvgStyles=o;var n=(0,r(14051).styled)("svg",o);t.Svg=n,n.displayName="Svg",n.displayName="Svg"},96902:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.STATE_CHANGE_TYPE=t.SIZE=t.ENHANCER_POSITION=t.CUSTOM_INPUT_TYPE=t.ADJOINED=void 0;t.STATE_CHANGE_TYPE={change:"change"};t.CUSTOM_INPUT_TYPE={textarea:"textarea"};t.ADJOINED={none:"none",left:"left",right:"right",both:"both"};t.SIZE={mini:"mini",default:"default",compact:"compact",large:"large"};t.ENHANCER_POSITION={start:"start",end:"end"}},38065:(e,t,r)=>{t.GZ=void 0;var o,n=r(14051),i=r(96902),l=(o=r(311))&&o.__esModule?o:{default:o};function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=(0,n.styled)("button",(function(e){var t,r=e.$theme,o=e.$size,n=e.$isFocusVisible,l=(t={},d(t,i.SIZE.mini,r.sizing.scale400),d(t,i.SIZE.compact,r.sizing.scale400),d(t,i.SIZE.default,r.sizing.scale300),d(t,i.SIZE.large,r.sizing.scale200),t)[o];return{display:"flex",alignItems:"center",borderTopStyle:"none",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"none",background:"none",paddingLeft:l,paddingRight:l,outline:n?"solid 3px ".concat(r.colors.accent):"none",color:r.colors.contentPrimary}}));u.displayName="StyledMaskToggleButton",u.displayName="StyledMaskToggleButton";var c=(0,n.styled)("div",(function(e){var t,r=e.$alignTop,o=void 0!==r&&r,n=e.$size,l=e.$theme,a=(t={},d(t,i.SIZE.mini,l.sizing.scale200),d(t,i.SIZE.compact,l.sizing.scale200),d(t,i.SIZE.default,l.sizing.scale100),d(t,i.SIZE.large,l.sizing.scale0),t)[n];return{display:"flex",alignItems:o?"flex-start":"center",paddingLeft:a,paddingRight:a,paddingTop:o?l.sizing.scale500:"0px",color:l.colors.contentPrimary}}));c.displayName="StyledClearIconContainer",c.displayName="StyledClearIconContainer";var p=(0,n.styled)(l.default,(function(e){var t=e.$theme;return{cursor:"pointer",outline:e.$isFocusVisible?"solid 3px ".concat(t.colors.accent):"none"}}));function f(e,t){var r;return(r={},d(r,i.SIZE.mini,t.font100),d(r,i.SIZE.compact,t.font200),d(r,i.SIZE.default,t.font300),d(r,i.SIZE.large,t.font400),r)[e]}t.GZ=p,p.displayName="StyledClearIcon",p.displayName="StyledClearIcon";var b=function(e){var t=e.$isFocused,r=e.$adjoined,o=e.$error,n=e.$disabled,l=e.$positive,a=e.$size,d=e.$theme,u=e.$theme,c=u.borders,p=u.colors,b=u.sizing,y=u.typography,g=u.animation,m=e.$hasIconTrailing;return s(s(s(s({boxSizing:"border-box",display:"flex",overflow:"hidden",width:"100%",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",transitionProperty:"border",transitionDuration:g.timing200,transitionTimingFunction:g.easeOutCurve},function(e,t){var r=t.inputBorderRadius;return e===i.SIZE.mini&&(r=t.inputBorderRadiusMini),{borderTopLeftRadius:r,borderBottomLeftRadius:r,borderTopRightRadius:r,borderBottomRightRadius:r}}(a,c)),f(a,y)),function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4?arguments[4]:void 0;return e?{borderLeftColor:n.inputFillDisabled,borderRightColor:n.inputFillDisabled,borderTopColor:n.inputFillDisabled,borderBottomColor:n.inputFillDisabled,backgroundColor:n.inputFillDisabled}:t?{borderLeftColor:n.borderSelected,borderRightColor:n.borderSelected,borderTopColor:n.borderSelected,borderBottomColor:n.borderSelected,backgroundColor:n.inputFillActive}:r?{borderLeftColor:n.inputBorderError,borderRightColor:n.inputBorderError,borderTopColor:n.inputBorderError,borderBottomColor:n.inputBorderError,backgroundColor:n.inputFillError}:o?{borderLeftColor:n.inputBorderPositive,borderRightColor:n.inputBorderPositive,borderTopColor:n.inputBorderPositive,borderBottomColor:n.inputBorderPositive,backgroundColor:n.inputFillPositive}:{borderLeftColor:n.inputBorder,borderRightColor:n.inputBorder,borderTopColor:n.inputBorder,borderBottomColor:n.inputBorder,backgroundColor:n.inputFill}}(n,t,o,l,p)),function(e,t,r,o,n){var l=e===i.ADJOINED.both||e===i.ADJOINED.left&&"rtl"!==o||e===i.ADJOINED.right&&"rtl"===o||n&&"rtl"===o,a=e===i.ADJOINED.both||e===i.ADJOINED.right&&"rtl"!==o||e===i.ADJOINED.left&&"rtl"===o||n&&"rtl"!==o;return{paddingLeft:l?r.scale550:"0px",paddingRight:a?r.scale550:"0px"}}(r,0,b,d.direction,m))};var y=(0,n.styled)("div",b);y.displayName="Root",y.displayName="Root";var g=(0,n.styled)("div",(function(e){var t=e.$size,r=e.$disabled,o=e.$isFocused,n=e.$error,l=e.$positive,a=e.$theme,u=a.colors,c=a.sizing,p=a.typography,b=a.animation;return s(s(s({display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"color, background-color",transitionDuration:b.timing200,transitionTimingFunction:b.easeOutCurve},f(t,p)),function(e,t){var r;return(r={},d(r,i.SIZE.mini,{paddingRight:t.scale400,paddingLeft:t.scale400}),d(r,i.SIZE.compact,{paddingRight:t.scale400,paddingLeft:t.scale400}),d(r,i.SIZE.default,{paddingRight:t.scale300,paddingLeft:t.scale300}),d(r,i.SIZE.large,{paddingRight:t.scale200,paddingLeft:t.scale200}),r)[e]}(t,c)),function(e,t,r,o,n){return e?{color:n.inputEnhancerTextDisabled,backgroundColor:n.inputFillDisabled}:t?{color:n.contentPrimary,backgroundColor:n.inputFillActive}:r?{color:n.contentPrimary,backgroundColor:n.inputFillError}:o?{color:n.contentPrimary,backgroundColor:n.inputFillPositive}:{color:n.contentPrimary,backgroundColor:n.inputFill}}(r,o,n,l,u))}));g.displayName="InputEnhancer",g.displayName="InputEnhancer";var m=function(e){var t=e.$isFocused,r=e.$error,o=e.$disabled,n=e.$positive,i=e.$size,l=e.$theme,a=l.colors,d=l.typography,u=l.animation;return s(s({display:"flex",width:"100%",transitionProperty:"background-color",transitionDuration:u.timing200,transitionTimingFunction:u.easeOutCurve},f(i,d)),function(e,t,r,o,n){return e?{color:n.inputTextDisabled,backgroundColor:n.inputFillDisabled}:t?{color:n.contentPrimary,backgroundColor:n.inputFillActive}:r?{color:n.contentPrimary,backgroundColor:n.inputFillError}:o?{color:n.contentPrimary,backgroundColor:n.inputFillPositive}:{color:n.contentPrimary,backgroundColor:n.inputFill}}(o,t,r,n,a))};var h=(0,n.styled)("div",m);h.displayName="InputContainer",h.displayName="InputContainer";var v=function(e){var t=e.$disabled,r=(e.$isFocused,e.$error,e.$size),o=e.$theme,n=o.colors,l=o.sizing;return s(s(s({boxSizing:"border-box",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderRightStyle:"none",borderTopStyle:"none",borderBottomStyle:"none",outline:"none",width:"100%",minWidth:0,maxWidth:"100%",cursor:t?"not-allowed":"text",margin:"0",paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0"},f(r,o.typography)),function(e,t){var r;return(r={},d(r,i.SIZE.mini,{paddingTop:t.scale100,paddingBottom:t.scale100,paddingLeft:t.scale550,paddingRight:t.scale550}),d(r,i.SIZE.compact,{paddingTop:t.scale200,paddingBottom:t.scale200,paddingLeft:t.scale550,paddingRight:t.scale550}),d(r,i.SIZE.default,{paddingTop:t.scale400,paddingBottom:t.scale400,paddingLeft:t.scale550,paddingRight:t.scale550}),d(r,i.SIZE.large,{paddingTop:t.scale550,paddingBottom:t.scale550,paddingLeft:t.scale550,paddingRight:t.scale550}),r)[e]}(r,l)),function(e,t,r,o){return e?{color:o.inputTextDisabled,"-webkit-text-fill-color":o.inputTextDisabled,caretColor:o.contentPrimary,"::placeholder":{color:o.inputPlaceholderDisabled}}:{color:o.contentPrimary,caretColor:o.contentPrimary,"::placeholder":{color:o.inputPlaceholder}}}(t,0,0,n))};var O=(0,n.styled)("input",v);O.displayName="Input",O.displayName="Input"},48095:(e,t)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){return Array.isArray(e)||"[object Object]"=={}.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){t=t||{};for(var n,i,l=arguments.length<=1?0:arguments.length-1,a=0;a<l;a++)for(var s in n=(a+1<1||arguments.length<=a+1?void 0:arguments[a+1])||{})void 0!==r(n[s])&&(o(i=n[s])?t[s]=e(t[s]||Array.isArray(i)&&[]||{},i):t[s]=i);return t}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[3710],{40223:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>xe});var i=o(58878),r=o(6334),n=o(72192),l=o(59353),a=o(78025),s=o(43338),c=o(8151),d=o(68994),h=o(58144),u=o(85850),g=o(22044),m=o(29669);var p=o(53124),b=o.n(p),f=o(32782),v=o(67253),y=o(1780),w=o(84152),S=o(6240),x=o(90782);const C=e=>{let{error:t,width:o,deltaType:i}=e;return t instanceof j?(0,x.jsx)(S.A,{width:o,name:"No Mapbox token provided",message:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("p",{children:["To use ",(0,x.jsxs)("code",{children:["st.",i]})," or ",(0,x.jsx)("code",{children:"st.map"})," you need to set up a Mapbox access token."]}),(0,x.jsxs)("p",{children:["To get a token, create an account at"," ",(0,x.jsx)("a",{href:"https://mapbox.com",children:"https://mapbox.com"}),". It's free for moderate usage levels!"]}),(0,x.jsxs)("p",{children:["Once you have a token, just set it using the Streamlit config option ",(0,x.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,x.jsxs)("p",{children:["See"," ",(0,x.jsx)("a",{href:"https://docs.streamlit.io/develop/api-reference/configuration/config.toml",children:"our documentation"})," ","for more info on how to set config options."]})]})}):t instanceof k?(0,x.jsx)(S.A,{width:o,name:"Error fetching Streamlit Mapbox token",message:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("p",{children:"This app requires an internet connection."}),(0,x.jsx)("p",{children:"Please check your connection and try again."}),(0,x.jsxs)("p",{children:["If you think this is a bug, please file bug report"," ",(0,x.jsx)("a",{href:"https://github.com/streamlit/streamlit/issues/new/choose",children:"here"}),"."]})]})}):(0,x.jsx)(S.A,{width:o,name:"Error fetching Streamlit Mapbox token",message:t.message})};class j extends Error{}class k extends Error{}const F="https://data.streamlit.io/tokens.json",A="mapbox",M=e=>t=>{class o extends i.PureComponent{constructor(o){super(o),this.context=void 0,this.initMapboxToken=async()=>{try{const e=await f.A.get(F),{[A]:t}=e.data;if(!t)throw new Error(`Missing token ${A}`);this.setState({mapboxToken:t,isFetching:!1})}catch(e){const t=(0,v.$)(e);throw this.setState({mapboxTokenError:t,isFetching:!1}),new k(`${t.message} (${F})`)}},this.render=()=>{const{mapboxToken:o,mapboxTokenError:i,isFetching:r}=this.state,{width:n}=this.props;return i?(0,x.jsx)(C,{width:n,error:i,deltaType:e}):r?(0,x.jsx)(y.E,{element:m.EA.create({style:m.EA.SkeletonStyle.ELEMENT})}):(0,x.jsx)(t,{...this.props,mapboxToken:o,width:n})},this.state={isFetching:!0,mapboxToken:void 0,mapboxTokenError:void 0}}componentDidMount(){const e=this.props.element.mapboxToken||this.context.libConfig.mapboxToken;e?this.setState({mapboxToken:e,isFetching:!1}):this.initMapboxToken()}}return o.displayName=`withMapboxToken(${t.displayName||t.name})`,o.contextType=w.n,b()(o,t)};var T=o(89653);const N=(0,T.A)("div",{target:"e1az0zs51"})((e=>{let{width:t,height:o}=e;return{position:"relative",height:o,width:t}}),""),E=(0,T.A)("div",{target:"e1az0zs50"})((e=>{let{theme:t}=e;return{position:"absolute",right:"2.625rem",top:t.spacing.md,zIndex:1,".mapboxgl-ctrl.mapboxgl-ctrl-group":{overflow:"hidden",background:t.colors.bgColor},"button:not(:disabled)":{background:t.colors.bgColor,"& + button":{borderTopColor:t.colors.secondaryBg},"&.mapboxgl-ctrl-icon:hover":{backgroundColor:(0,h.iq)(t)?"":t.colors.darkenedBgMix25},"& span":{filter:(0,h.iq)(t)?"":"invert(100%)"}}}}),"");var I=o(21640),O=o(71034),V=o.n(O),$=o(32735);var W=o(3101),D=o(14251),U=o(86202),P=o(26592),_=o(64639),z=o(73417),J=o(27126),B=o(38287);const L={classes:{...z,...o(19720),...B,...o(14249),CartoLayer:D.A},functions:{colorBins:U.A,colorCategories:P.A,colorContinuous:_.A}},q=new J.A({configuration:L});var G=o(44605),X=o(24983),Z=o(68212),K=o(20302),R=o(52265),H=o(60152),Q=o(70023),Y=o(6934),ee=o(34676),te=o(36217),oe=o(79579),ie=o(5830),re=o(74839),ne=o(16554),le=o(10762),ae=o(71749),se=o(45310),ce=o(26642),de=o(38610),he=o(41881);const ue={[ie.A.layerName]:["getFillColor"],[re.A.layerName]:["getFillColor"],[ne.Ay.layerName]:["getFillColor"],[le.A.layerName]:["getFillColor"],[ae.A.layerName]:["getFillColor"],[se.A.layerName]:["getFillColor"],[ce.A.layerName]:["getColor"],[G.A.layerName]:["getTargetColor","getSourceColor"],[X.A.layerName]:["getFillColor"],[Z.A.layerName]:["getFillColor"],[K.A.layerName]:["getColor"],[R.A.layerName]:["getColor"],[H.A.layerName]:["getColor"],[Q.A.layerName]:["getColor"],[Y.A.layerName]:["getFillColor"],[ee.A.layerName]:["getFillColor","getColor","getLineColor"],[te.A.layerName]:["getFillColor"],[oe.A.layerName]:["getColor"],[de.A.layerName]:["getColor"],[he.A.layerName]:["getColor"]},ge=e=>{let{isSelected:t,object:o,objectInfo:i,opacity:r,originalFillFunction:n}=e;const l=(e=>{let{object:t,objectInfo:o,originalFillFunction:i}=e;const r="function"===typeof i?i(t,o):i;if(Array.isArray(r))return[r[0]||0,r[1]||0,r[2]||0,r[3]||255];if("string"===typeof r&&r.startsWith("@@=")){const e=q.convert({originalColor:r}).originalColor(t);return[e[0]||0,e[1]||0,e[2]||0,e[3]||255]}return null})({object:o,objectInfo:i,originalFillFunction:n});if(!l)return null;let a=0;return a=t?Math.max("number"===typeof l[3]?l[3]:r,r):Math.min("number"===typeof l[3]?l[3]:r,r),[l[0]||0,l[1]||0,l[2]||0,a]},me={selection:{indices:{},objects:{}}},pe=(e,t)=>{const o=t.match(/{(.*?)}/g);return o&&o.forEach((o=>{const i=o.substring(1,o.length-1);e.object.hasOwnProperty(i)?t=t.replace(o,e.object[i]):e.object.hasOwnProperty("properties")&&e.object.properties.hasOwnProperty(i)&&(t=t.replace(o,e.object.properties[i]))})),t};function be(e,t){if(!t.id)return me;const o=e.getElementState(t.id,"selection");return null!==o&&void 0!==o?o:me}function fe(e,t){if(!t.id)return me;const o=e.getStringValue(t),i=o?I.A.parse(o):null;return null!==i&&void 0!==i?i:me}function ve(e,t,o,i){e.id&&t.setStringValue(e,JSON.stringify(o.value),{fromUi:o.fromUi},i)}const ye=e=>{var t;const{element:o,fragmentId:r,height:n,isFullScreen:l,isLightTheme:a,theme:s,widgetMgr:c,width:d}=e,{selectionMode:h,tooltip:u,useContainerWidth:g}=o,m=null!==l&&void 0!==l&&l,[p,b]=(0,W._)({element:o,getDefaultState:be,getStateFromWidgetMgr:fe,updateWidgetMgrState:ve,widgetMgr:c,fragmentId:r}),[f,v]=(0,i.useState)({bearing:0,pitch:0,zoom:11}),{height:y,width:w}=(e=>{let{container:t,element:o,heightFallback:r="auto",isFullScreen:n,shouldUseContainerWidth:l,widthFallback:a="auto"}=e;return{width:(0,i.useMemo)((()=>l||n?"100%":o.width||t.width||a),[t.width,o.width,n,l,a]),height:(0,i.useMemo)((()=>n&&t.height?t.height:o.height||t.height||r),[n,o.height,t.height,r])}})({element:o,isFullScreen:m,shouldUseContainerWidth:g,container:{height:n,width:d},heightFallback:(null===(t=f.initialViewState)||void 0===t?void 0:t.height)||500}),[S,x]=(0,i.useState)({}),C=h[0],j=void 0!==C,k=j&&Object.keys(p.selection.indices).length>0,F=(0,i.useMemo)((()=>Object.freeze(I.A.parse(o.json))),[m,a,o.json]),A=(0,i.useMemo)((()=>{const e={...F};if(e.mapStyle||(e.mapStyle=`mapbox://styles/mapbox/${a?"light":"dark"}-v9`),m?Object.assign(e.initialViewState,{width:w,height:y}):(e.initialViewState.height||(e.initialViewState.height=500),g&&(e.initialViewState.width=w)),e.layers){const t=Object.values(p.selection.indices).some((e=>null===e||void 0===e?void 0:e.length)),o=e.layers.some((e=>Object.hasOwn(e,"pickable")));e.layers=e.layers.map((e=>{var i,r;if(!e||Array.isArray(e)||!j)return e;o||(e.pickable=!0);const n=`${e.id||null}`,l=(null===p||void 0===p||null===(i=p.selection)||void 0===i||null===(r=i.indices)||void 0===r?void 0:r[n])||[],a=ue[e["@@type"]];if(!a)return e;const c={...e};return a.forEach((o=>{var i;c.updateTriggers={[o]:[...(null===(i=c.updateTriggers)||void 0===i?void 0:i[o])||[],l,t]};const r=!t,n=e[o];if(r||!n)return c;const a=Math.floor(102),d=(0,$.Du)(s.colors.primary),h=[d[0],d[1],d[2],255],u=(0,$.Du)(s.colors.gray20),g=[u[0],u[1],u[2],a];c[o]=(e,t)=>(e=>{let{isSelected:t,object:o,objectInfo:i,originalFillFunction:r,selectedColor:n,selectedOpacity:l=255,unselectedColor:a,unselectedOpacity:s=Math.floor(102)}=e;return t?ge({opacity:l,isSelected:!0,object:o,objectInfo:i,originalFillFunction:r})||n:ge({opacity:s,isSelected:!1,object:o,objectInfo:i,originalFillFunction:r})||a})({isSelected:l.includes(t.index),object:e,objectInfo:t,originalFillFunction:n,selectedColor:h,unselectedColor:g,selectedOpacity:255,unselectedOpacity:a})})),c}))}return null===e||void 0===e||delete e.views,q.convert(e)}),[p.selection.indices,y,m,a,j,F,g,s.colors.gray20,s.colors.primary,w]);(0,i.useEffect)((()=>{if(!V()(A.initialViewState,S)){const e=Object.keys(A.initialViewState).reduce(((e,t)=>A.initialViewState[t]===S[t]?e:{...e,[t]:A.initialViewState[t]}),{});v({...f,...e}),x(A.initialViewState)}}),[A.initialViewState,S,f]);const M=(0,i.useCallback)((e=>{if(!e||!e.object||!u)return null;const t=I.A.parse(u);return t.html?t.html=pe(e,t.html):t.text=pe(e,t.text),t}),[u]),T=(0,i.useCallback)((e=>{let{viewState:t}=e;v(t)}),[v]);return{createTooltip:M,data:p,deck:A,hasActiveSelection:k,height:y,isSelectionModeActivated:j,onViewStateChange:T,selectionMode:C,setSelection:b,viewState:f,width:w}};o(93298);(0,s.mk)([l.y,a.B]);const we=me.selection,Se=[],xe=M("st.pydeck_chart")((0,g.A)((e=>{const{collapse:t,disabled:o,disableFullscreenMode:l,element:a,expand:s,fragmentId:g,height:p,isFullScreen:b,mapboxToken:f,widgetMgr:v,width:y}=e,{mapboxToken:w}=a,S=(0,c.u)(),{createTooltip:C,data:j,deck:k,hasActiveSelection:F,height:A,isSelectionModeActivated:M,onViewStateChange:T,selectionMode:I,setSelection:O,viewState:V,width:$}=ye({element:a,fragmentId:g,height:p,isFullScreen:b,isLightTheme:(0,h.iq)(S),theme:S,widgetMgr:v,width:y}),[W,D]=(0,i.useState)(!1);(0,i.useEffect)((()=>{D(!0)}),[]);const U=(0,i.useCallback)((e=>{var t;if(void 0===I)return;const{index:o,object:i}=e,r=`${(null===(t=e.layer)||void 0===t?void 0:t.id)||null}`,n=j,l=-1===o,a=(()=>{if(l)return we;switch(I){case m.Xw.SelectionMode.SINGLE_OBJECT:var e;return(null===(e=n.selection.indices[r])||void 0===e?void 0:e[0])===o?we:{indices:{[`${r}`]:[o]},objects:{[`${r}`]:[i]}};case m.Xw.SelectionMode.MULTI_OBJECT:{const e=new Map(((null===n||void 0===n||null===(t=n.selection)||void 0===t||null===(a=t.indices)||void 0===a?void 0:a[r])||[]).map(((e,t)=>{var o,i,l;return[e,null===(o=n.selection)||void 0===o||null===(i=o.objects)||void 0===i||null===(l=i[r])||void 0===l?void 0:l[t]]})));if(e.has(o)?e.delete(o):e.set(o,i),0===e.size){const{[r]:e,...t}=n.selection.indices,{[r]:o,...i}=n.selection.objects;return{indices:t,objects:i}}return{indices:{...n.selection.indices,[`${r}`]:Array.from(e.keys())},objects:{...n.selection.objects,[`${r}`]:Array.from(e.values())}}}default:throw(e=>{throw new Error(`Reached a branch with non-exhaustive item: ${e}`)})(I),new Error("Invalid selection mode")}var t,a})();JSON.stringify(a)!==JSON.stringify(n.selection)&&O({fromUi:!0,value:{selection:a}})}),[I,j,O]),P=(0,i.useCallback)((()=>{O({value:{selection:we},fromUi:!0})}),[O]);return(0,x.jsxs)(N,{className:"stDeckGlJsonChart","data-testid":"stDeckGlJsonChart",width:$,height:A,children:[(0,x.jsx)(u.A,{isFullScreen:b,disableFullscreenMode:l,onExpand:s,onCollapse:t,target:N,locked:!(!F||o)||void 0,children:F&&!o&&(0,x.jsx)(u.K,{label:"Clear selection",onClick:P,icon:d.b})}),(0,x.jsxs)(r.A,{viewState:V,onViewStateChange:T,height:A,width:$,layers:W?k.layers:Se,getTooltip:C,ContextProvider:n.wZ.Provider,controller:!0,onClick:M&&!o?U:void 0,children:[(0,x.jsx)(n.b,{height:A,width:$,mapStyle:k.mapStyle&&("string"===typeof k.mapStyle?k.mapStyle:k.mapStyle[0]),mapboxApiAccessToken:w||f}),(0,x.jsx)(E,{children:(0,x.jsx)(n.ov,{"data-testid":"stDeckGlJsonChartZoomButton",showCompass:!1})})]})]})}),!0))},3101:(e,t,o)=>{"use strict";o.d(t,{_:()=>l,t:()=>a});var i=o(58878),r=o(34752),n=o(25571);function l(e){let{getStateFromWidgetMgr:t,getDefaultState:o,updateWidgetMgrState:l,element:a,widgetMgr:s,fragmentId:c,onFormCleared:d}=e;const[h,u]=(0,i.useState)((()=>{var e;return null!==(e=t(s,a))&&void 0!==e?e:o(s,a)})),[g,m]=(0,i.useState)({value:h,fromUi:!1});(0,i.useEffect)((()=>{(0,n.hX)(g)||(m(null),u(g.value),l(a,s,g,c))}),[g,l,a,s,c]);const p=(0,i.useCallback)((()=>{m({value:o(s,a),fromUi:!0}),null===d||void 0===d||d()}),[m,a,o,s,d]);return(0,r.X)({widgetMgr:s,element:a,onFormCleared:p}),[h,m]}function a(e){let{getStateFromWidgetMgr:t,getDefaultStateFromProto:o,getCurrStateFromProto:r,updateWidgetMgrState:n,element:a,widgetMgr:s,fragmentId:c,onFormCleared:d}=e;const h=(0,i.useCallback)(((e,t)=>o(t)),[o]),[u,g]=l({getStateFromWidgetMgr:t,getDefaultState:h,updateWidgetMgrState:n,element:a,widgetMgr:s,fragmentId:c,onFormCleared:d});return(0,i.useEffect)((()=>{a.setValue&&(a.setValue=!1,g({value:r(a),fromUi:!1}))}),[a,r,g]),[u,g]}},63872:()=>{},35111:()=>{}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[4103],{3727:(e,t,s)=>{s.d(t,{A:()=>h,o:()=>c});var i=s(58878),r=s(8151),o=s(70766),a=s(35331),n=s(58144),l=s(84152),d=s(90782);let c;!function(e){e.EXTRASMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRALARGE="xl"}(c||(c={}));const h=function(e){let{value:t,width:s,size:h=c.SMALL,overrides:u}=e;const g=(0,r.u)(),p={xs:g.spacing.twoXS,sm:g.spacing.sm,md:g.spacing.lg,lg:g.spacing.xl,xl:g.spacing.twoXL},{activeTheme:m}=i.useContext(l.n),f=!(0,n.tl)(m),S={BarContainer:{style:{marginTop:g.spacing.none,marginBottom:g.spacing.none,marginRight:g.spacing.none,marginLeft:g.spacing.none}},Bar:{style:e=>{let{$theme:t}=e;return{width:s?s.toString():void 0,marginTop:g.spacing.none,marginBottom:g.spacing.none,marginRight:g.spacing.none,marginLeft:g.spacing.none,height:p[h],backgroundColor:t.colors.progressbarTrackFill,borderTopLeftRadius:g.spacing.twoXS,borderTopRightRadius:g.spacing.twoXS,borderBottomLeftRadius:g.spacing.twoXS,borderBottomRightRadius:g.spacing.twoXS}}},BarProgress:{style:()=>({backgroundColor:f?g.colors.primary:g.colors.blue70,borderTopLeftRadius:g.spacing.twoXS,borderTopRightRadius:g.spacing.twoXS,borderBottomLeftRadius:g.spacing.twoXS,borderBottomRightRadius:g.spacing.twoXS})}};return(0,d.jsx)(o.A,{value:t,overrides:(0,a.Qp)(S,u)})}},54103:(e,t,s)=>{s.r(t),s.d(t,{default:()=>K});var i,r=s(58878),o=s(41766),a=s(32782),n=s(71034),l=s.n(n),d=s(29669),c=s(64611),h=s(997),u=s(93480),g=s(70474),p=s(78286),m=s(34752),f=s(84996),S=s(25571),C=s(9830),R=s(3727),b=s(89653),w=s(32735);function I(e,t){switch(e){case i.XSMALL:return{padding:`${t.spacing.twoXS} ${t.spacing.sm}`,fontSize:t.fontSizes.sm};case i.SMALL:return{padding:`${t.spacing.twoXS} ${t.spacing.md}`};case i.LARGE:return{padding:`${t.spacing.md} ${t.spacing.md}`};default:return{padding:`${t.spacing.xs} ${t.spacing.md}`}}}!function(e){e.XSMALL="xsmall",e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(i||(i={}));const F=(0,b.A)("div",{target:"etz5kuj9"})((()=>({position:"relative",overflow:"hidden",width:"100%",objectFit:"contain"})),""),v=(0,b.A)("div",{target:"etz5kuj8"})((e=>{let{theme:t,width:s}=e;return{backgroundColor:t.colors.secondaryBg,borderRadius:`${t.radii.default} ${t.radii.default} 0 0`,width:"100%",height:9*s/16,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}}),""),x=(0,b.A)("p",{target:"etz5kuj7"})((e=>{let{theme:t}=e;return{marginTop:t.spacing.sm,textAlign:"center"}}),""),M=(0,b.A)("img",{target:"etz5kuj6"})((e=>{let{theme:t,opacity:s}=e;return{borderRadius:`${t.radii.default} ${t.radii.default} 0 0`,objectFit:"contain",opacity:s}}),""),y=(0,b.A)("a",{target:"etz5kuj5"})((e=>{let{theme:t}=e;return{color:t.colors.primary,display:"block",textDecoration:"none"}}),""),L=(0,b.A)("span",{target:"etz5kuj4"})((()=>({display:"flex",alignItems:"center"})),""),E=(0,b.A)("div",{target:"etz5kuj3"})((e=>{let{theme:t}=e;return{position:"absolute",top:t.spacing.lg,right:t.spacing.lg,zIndex:1,color:t.colors.fadedText40,mixBlendMode:"difference",opacity:.6}}),""),j=(0,b.A)("div",{target:"etz5kuj1"})((()=>({height:"fit-content",width:"100%",position:"absolute",bottom:0})),""),T=(0,b.A)("button",{target:"etz5kuj0"})((e=>{let{theme:t}=e;return{position:"relative",display:"inline-flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:t.colors.lightenedBg05,border:`${t.sizes.borderWidth} solid ${t.colors.borderColor}`,borderRadius:`0 0 ${t.radii.default} ${t.radii.default}`,"&:hover":{borderColor:t.colors.primary,color:t.colors.primary},"&:active":{color:t.colors.white,borderColor:t.colors.primary,backgroundColor:t.colors.primary},"&:focus:not(:active)":{borderColor:t.colors.primary,color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{color:t.colors.fadedText40},fontWeight:t.fontWeights.normal,padding:`${t.spacing.xs} ${t.spacing.md}`,margin:t.spacing.none,lineHeight:t.lineHeights.base,color:"inherit",width:"100%",userSelect:"none","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${(0,w.No)(t.colors.primary,.5)}`},...I(i.MEDIUM,t)}}),"");var U=s(90782);const P=function(e){let{disabled:t,onClick:s,children:i,progress:r}=e;return(0,U.jsxs)(T,{disabled:t||!1,onClick:s||(()=>{}),progress:r||null,"data-testid":"stCameraInputButton",children:[i,r&&(0,U.jsx)(j,{children:(0,U.jsx)(R.A,{value:r,size:R.o.EXTRASMALL,overrides:{Bar:{style:{borderTopLeftRadius:0,borderTopRightRadius:0}},BarProgress:{style:{borderTopLeftRadius:0,borderTopRightRadius:0}},BarContainer:{style:{borderTopLeftRadius:0,borderTopRightRadius:0}}}})})]})};var A=s(25005),k=s(36459),X=s(84720),z=s(27792);let $;!function(e){e.USER="user",e.ENVIRONMENT="environment"}($||($={}));const _=e=>{let{switchFacingMode:t}=e;return(0,U.jsx)(E,{"data-testid":"stCameraInputSwitchButton",children:(0,U.jsx)(h.A,{content:"Switch camera",placement:h.W.TOP_RIGHT,children:(0,U.jsx)(k.Ay,{kind:X.KX.MINIMAL,onClick:t,children:(0,U.jsx)(c.A,{content:A.G,size:"twoXL",color:z.A.white})})})})};var W=s(21806),B=s(8151),D=s(2273),O=s(54806),V=s.n(O),G=s(39095);let N;!function(e){e.PENDING="pending",e.SUCCESS="success",e.ERROR="error"}(N||(N={}));const H=e=>{let{width:t}=e;return(0,U.jsxs)(v,{width:t,children:[(0,U.jsx)(c.A,{size:"threeXL",color:z.A.gray60,content:W.C}),(0,U.jsxs)(x,{children:["This app would like to use your camera.",(0,U.jsx)(y,{href:G.oe,rel:"noopener noreferrer",target:"_blank",children:"Learn how to allow access."})]})]})},Q=e=>{let{handleCapture:t,width:s,disabled:i,clearPhotoInProgress:o,setClearPhotoInProgress:a,facingMode:n,setFacingMode:l,testOverride:d}=e;const[c,h]=(0,r.useState)(d||N.PENDING),u=(0,r.useRef)(null),[g,p]=(0,r.useState)(s),m=(0,r.useCallback)((0,S.sg)(1e3,p),[]);(0,r.useEffect)((()=>{m(s)}),[s,m]);const f=(0,B.u)();return(0,U.jsxs)(F,{width:g,"data-testid":"stCameraInputWebcamComponent",children:[c===N.SUCCESS||i||o?D.Fr&&(0,U.jsx)(_,{switchFacingMode:l}):(0,U.jsx)(H,{width:g}),(0,U.jsx)(v,{"data-testid":"stCameraInputWebcamStyledBox",hidden:c!==N.SUCCESS&&!i&&!o,width:g,children:!i&&(0,U.jsx)(V(),{audio:!1,ref:u,screenshotFormat:"image/jpeg",screenshotQuality:1,width:g,height:9*g/16,style:{borderRadius:`${f.radii.default} ${f.radii.default} 0 0`},onUserMediaError:()=>{h(N.ERROR)},onUserMedia:()=>{h(N.SUCCESS),a(!1)},videoConstraints:{width:{ideal:g},facingMode:n}})}),(0,U.jsx)(P,{onClick:function(){if(null!==u.current){const e=u.current.getScreenshot();t(e)}},disabled:c!==N.SUCCESS||i||o,children:"Take Photo"})]})};class q extends r.PureComponent{constructor(e){super(e),this.localFileIdCounter=1,this.RESTORED_FROM_WIDGET_STRING="RESTORED_FROM_WIDGET",this.formClearHelper=new m.o,this.getProgress=()=>{if(this.state.files.length>0&&"uploading"===this.state.files[this.state.files.length-1].status.type){return this.state.files[this.state.files.length-1].status.progress}},this.setClearPhotoInProgress=e=>{this.setState({clearPhotoInProgress:e})},this.setFacingMode=()=>{this.setState((e=>({facingMode:e.facingMode===$.USER?$.ENVIRONMENT:$.USER})))},this.handleCapture=e=>{if(null===e)return Promise.resolve();this.setState({imgSrc:e,shutter:!0,minShutterEffectPassed:!1});return(t=e,s=`camera-input-${(new Date).toISOString().replace(/:/g,"_")}.jpg`,fetch(t).then((e=>e.arrayBuffer())).then((e=>new File([e],s,{type:"image/jpeg"})))).then((e=>this.props.uploadClient.fetchFileURLs([e]).then((t=>({file:e,fileUrls:t[0]}))))).then((e=>{let{file:t,fileUrls:s}=e;return this.uploadFile(s,t)})).then((()=>{return e=150,new Promise((t=>setTimeout(t,e)));var e})).then((()=>{this.setState(((t,s)=>({imgSrc:e,shutter:t.shutter,minShutterEffectPassed:!0})))})).catch((e=>{(0,f.vV)(e)}));var t,s},this.removeCapture=()=>{0!==this.state.files.length&&(this.state.files.forEach((e=>this.deleteFile(e.id))),this.setState({imgSrc:null,clearPhotoInProgress:!0}))},this.componentDidUpdate=()=>{if("ready"!==this.status)return;const e=this.createWidgetValue(),{element:t,widgetMgr:s,fragmentId:i}=this.props,r=s.getFileUploaderStateValue(t);l()(e,r)||s.setFileUploaderStateValue(t,e,{fromUi:!0},i)},this.onFormCleared=()=>{this.setState({files:[]},(()=>{const e=this.createWidgetValue();if((0,S.hX)(e))return;this.setState({imgSrc:null});const{widgetMgr:t,element:s,fragmentId:i}=this.props;t.setFileUploaderStateValue(s,e,{fromUi:!0},i)}))},this.deleteFile=e=>{const t=this.getFile(e);(0,S.hX)(t)||("uploading"===t.status.type&&t.status.cancelToken.cancel(),"uploaded"===t.status.type&&t.status.fileUrls.deleteUrl&&this.props.uploadClient.deleteFile(t.status.fileUrls.deleteUrl),this.removeFile(e))},this.addFile=e=>{this.setState((t=>({files:[...t.files,e]})))},this.removeFile=e=>{this.setState((t=>({files:t.files.filter((t=>t.id!==e))})))},this.getFile=e=>this.state.files.find((t=>t.id===e)),this.updateFile=(e,t)=>{this.setState((s=>({files:s.files.map((s=>s.id===e?t:s))})))},this.onUploadComplete=(e,t)=>{this.setState((()=>({shutter:!1})));const s=this.getFile(e);(0,S.hX)(s)||"uploading"!==s.status.type||this.updateFile(s.id,s.setStatus({type:"uploaded",fileId:t.fileId,fileUrls:t}))},this.onUploadProgress=(e,t)=>{const s=this.getFile(t);if((0,S.hX)(s)||"uploading"!==s.status.type)return;const i=Math.round(100*e.loaded/e.total);s.status.progress!==i&&this.updateFile(t,s.setStatus({type:"uploading",cancelToken:s.status.cancelToken,progress:i}))},this.reset=()=>{this.setState({files:[],imgSrc:null})},this.uploadFile=(e,t)=>{const s=a.A.CancelToken.source(),i=new C.m(t.name,t.size,this.nextLocalFileId(),{type:"uploading",cancelToken:s,progress:1});this.addFile(i),this.props.uploadClient.uploadFile(this.props.element,e.uploadUrl,t,(e=>this.onUploadProgress(e,i.id)),s.token).then((()=>this.onUploadComplete(i.id,e))).catch((e=>{a.A.isCancel(e)||this.updateFile(i.id,i.setStatus({type:"error",errorMessage:e?e.toString():"Unknown error"}))}))},this.state=this.initialValue}get initialValue(){const e={files:[],imgSrc:null,shutter:!1,minShutterEffectPassed:!0,clearPhotoInProgress:!1,facingMode:$.USER},{widgetMgr:t,element:s}=this.props,i=t.getFileUploaderStateValue(s);if((0,S.hX)(i))return e;const{uploadedFileInfo:r}=i;return(0,S.hX)(r)||0===r.length?e:{files:r.map((e=>{const t=e.name,s=e.size,i=e.fileId,r=e.fileUrls;return new C.m(t,s,this.nextLocalFileId(),{type:"uploaded",fileId:i,fileUrls:r})})),imgSrc:0===r.length?"":this.RESTORED_FROM_WIDGET_STRING,shutter:!1,minShutterEffectPassed:!1,clearPhotoInProgress:!1,facingMode:$.USER}}componentWillUnmount(){this.formClearHelper.disconnect()}get status(){return this.state.files.some((e=>"uploading"===e.status.type))?"updating":"ready"}componentDidMount(){const e=this.createWidgetValue(),{element:t,widgetMgr:s,fragmentId:i}=this.props;void 0===s.getFileUploaderStateValue(t)&&s.setFileUploaderStateValue(t,e,{fromUi:!1},i)}createWidgetValue(){const e=this.state.files.filter((e=>"uploaded"===e.status.type)).map((e=>{const{name:t,size:s,status:i}=e;return new d.HY({fileId:i.fileId,fileUrls:i.fileUrls,name:t,size:s})}));return new d.qX({uploadedFileInfo:e})}render(){var e;const{element:t,widgetMgr:s,disabled:i,width:r}=this.props;return this.formClearHelper.manageFormClearListener(s,t.formId,this.onFormCleared),(0,U.jsxs)(F,{className:"stCameraInput","data-testid":"stCameraInput",width:r,children:[(0,U.jsx)(g.L,{label:t.label,disabled:i,labelVisibility:(0,S.yv)(null===(e=t.labelVisibility)||void 0===e?void 0:e.value),children:t.help&&(0,U.jsx)(p.j,{children:(0,U.jsx)(u.A,{content:t.help,placement:h.W.TOP_RIGHT})})}),this.state.imgSrc?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(v,{width:r,children:this.state.imgSrc!==this.RESTORED_FROM_WIDGET_STRING&&(0,U.jsx)(M,{src:this.state.imgSrc,alt:"Snapshot",opacity:this.state.shutter||!this.state.minShutterEffectPassed?"50%":"100%",width:r,height:9*r/16})}),(0,U.jsx)(P,{onClick:this.removeCapture,progress:this.getProgress(),disabled:!!this.getProgress()||i,children:this.getProgress()?"Uploading...":(0,U.jsxs)(L,{children:[(0,U.jsx)(c.A,{content:o.X,margin:"0 xs 0 0",size:"sm"})," Clear photo"]})})]}):(0,U.jsx)(Q,{handleCapture:this.handleCapture,width:r,disabled:i,clearPhotoInProgress:this.state.clearPhotoInProgress,setClearPhotoInProgress:this.setClearPhotoInProgress,facingMode:this.state.facingMode,setFacingMode:this.setFacingMode,testOverride:this.props.testOverride})]})}nextLocalFileId(){return this.localFileIdCounter++}}const K=q},9830:(e,t,s)=>{s.d(t,{m:()=>i});class i{setStatus(e){return new i(this.name,this.size,this.id,e)}constructor(e,t,s,i){this.name=void 0,this.size=void 0,this.status=void 0,this.id=void 0,this.name=e,this.size=t,this.id=s,this.status=i}}},34752:(e,t,s)=>{s.d(t,{X:()=>a,o:()=>o});var i=s(58878),r=s(25571);class o{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,s){(0,r.se)(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,r._L)(t)&&(this.formClearListener=e.addFormClearedListener(t,s),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function a(e){let{element:t,widgetMgr:s,onFormCleared:o}=e;(0,i.useEffect)((()=>{if(!(0,r._L)(t.formId))return;const e=s.addFormClearedListener(t.formId,o);return()=>{e.disconnect()}}),[t,s,o])}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[4827],{74827:(e,r,o)=>{o.r(r),o.d(r,{default:()=>f});var t=o(58878),a=o(8151),n=o(94426),l=o(997),i=o(98350),s=o(34914),d=o(84152),c=o(42333),g=o(89653);const p=(0,g.A)("div",{target:"e11k5jya2"})((()=>({display:"flex",flexDirection:"column"})),""),u=(0,g.A)("a",{target:"e11k5jya1"})((e=>{let{disabled:r,isCurrentPage:o,fluidWidth:t,theme:a}=e;return{textDecoration:"none",width:"number"==typeof t?`${t}px`:"fit-content",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:a.spacing.sm,borderRadius:a.radii.default,paddingLeft:a.spacing.sm,paddingRight:a.spacing.sm,marginTop:a.spacing.threeXS,marginBottom:a.spacing.threeXS,lineHeight:a.lineHeights.menuItem,backgroundColor:o?a.colors.darkenedBgMix15:"transparent","&:hover":{backgroundColor:o?a.colors.darkenedBgMix25:a.colors.darkenedBgMix15},"&:active,&:visited,&:hover":{textDecoration:"none"},"&:focus":{outline:"none"},"&:focus-visible":{backgroundColor:a.colors.darkenedBgMix15},"@media print":{paddingLeft:a.spacing.none},...r?{borderColor:a.colors.borderColor,backgroundColor:a.colors.transparent,color:a.colors.fadedText40,cursor:"not-allowed","&:hover":{color:a.colors.fadedText40,backgroundColor:a.colors.transparent}}:{}}}),""),h=(0,g.A)("span",{target:"e11k5jya0"})((e=>{let{disabled:r,theme:o}=e;return{color:o.colors.bodyText,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"table-cell",...r?{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}:{}}}),"");var b=o(90782);const f=function(e){const{onPageChange:r,currentPageScriptHash:o}=t.useContext(d.n),g=t.useContext(c.A),{colors:f}=(0,a.u)(),{disabled:x,element:k,width:C}=e,m={width:C},v=function(e,r){return!(null!==e||!r)||!(null===e&&!r)&&!0===e}(k.useContainerWidth,g),w=o===k.pageScriptHash;return(0,b.jsx)("div",{className:"stPageLink","data-testid":"stPageLink",style:m,children:(0,b.jsx)(i.F,{help:k.help,placement:l.W.TOP_RIGHT,children:(0,b.jsx)(p,{children:(0,b.jsxs)(u,{"data-testid":"stPageLink-NavLink",disabled:x,isCurrentPage:w,fluidWidth:!!v&&C,href:k.page,target:k.external?"_blank":"",rel:"noreferrer",onClick:e=>{k.external?x&&e.preventDefault():(e.preventDefault(),x||r(k.pageScriptHash))},children:[k.icon&&(0,b.jsx)(n.$,{size:"lg",color:f.bodyText,iconValue:k.icon}),(0,b.jsx)(h,{disabled:x,children:(0,b.jsx)(s.Ay,{source:k.label,allowHTML:!1,isLabel:!0,boldLabel:w,largerLabel:!0,disableLinks:!0})})]})})})})}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 491.c1a2c0b2.chunk.js.LICENSE.txt */
2
- (self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[491],{90491:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function s(){return t.apply(null,arguments)}function i(e){t=e}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function l(e){return void 0===e}function d(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,s=[],i=e.length;for(n=0;n<i;++n)s.push(t(e[n],n));return s}function f(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,s){return qn(e,t,n,s,!0).utc()}function _(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return null==e._pf&&(e._pf=_()),e._pf}function g(e){var t=null,s=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=y(e),s=n.call(t.parsedDateParts,(function(e){return null!=e})),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function w(e){var t=m(NaN);return null!=e?f(y(t),e):y(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),s=n.length>>>0;for(t=0;t<s;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=s.momentProperties=[],p=!1;function k(e,t){var n,s,i,r=v.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=y(t)),l(t._locale)||(e._locale=t._locale),r>0)for(n=0;n<r;n++)l(i=t[s=v[n]])||(e[s]=i);return e}function M(e){k(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===p&&(p=!0,s.updateOffset(this),p=!1)}function D(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function Y(e){!1===s.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return f((function(){if(null!=s.deprecationHandler&&s.deprecationHandler(null,e),n){var i,r,a,u=[],l=arguments.length;for(r=0;r<l;r++){if(i="","object"===typeof arguments[r]){for(a in i+="\n["+r+"] ",arguments[0])o(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[r];u.push(i)}Y(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var O,b={};function T(e,t){null!=s.deprecationHandler&&s.deprecationHandler(e,t),b[e]||(Y(t),b[e]=!0)}function x(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function N(e){var t,n;for(n in e)o(e,n)&&(x(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function W(e,t){var n,s=f({},e);for(n in t)o(t,n)&&(a(e[n])&&a(t[n])?(s[n]={},f(s[n],e[n]),f(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)o(e,n)&&!o(t,n)&&a(e[n])&&(s[n]=f({},s[n]));return s}function P(e){null!=e&&this.set(e)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function C(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return x(s)?s.call(t,n):s}function U(e,t,n){var s=""+Math.abs(e),i=t-s.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},V={};function E(e,t,n,s){var i=s;"string"===typeof s&&(i=function(){return this[s]()}),e&&(V[e]=i),t&&(V[t[0]]=function(){return U(i.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function A(e){var t,n,s=e.match(H);for(t=0,n=s.length;t<n;t++)V[s[t]]?s[t]=V[s[t]]:s[t]=G(s[t]);return function(t){var i,r="";for(i=0;i<n;i++)r+=x(s[i])?s[i].call(t,e):s[i];return r}}function j(e,t){return e.isValid()?(t=I(t,e.localeData()),L[t]=L[t]||A(t),L[t](e)):e.localeData().invalidDate()}function I(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,s),F.lastIndex=0,n-=1;return e}var Z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function z(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(H).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var $="Invalid date";function q(){return this._invalidDate}var B="%d",J=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var X={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function K(e,t,n,s){var i=this._relativeTime[n];return x(i)?i(e,t,n,s):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}var te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function se(e){var t,n,s={};for(n in e)o(e,n)&&(t=ne(n))&&(s[t]=e[n]);return s}var ie={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function re(e){var t,n=[];for(t in e)o(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}var ae,oe=/\d/,ue=/\d\d/,le=/\d{3}/,de=/\d{4}/,he=/[+-]?\d{6}/,ce=/\d\d?/,fe=/\d\d\d\d?/,me=/\d\d\d\d\d\d?/,_e=/\d{1,3}/,ye=/\d{1,4}/,ge=/[+-]?\d{1,6}/,we=/\d+/,ve=/[+-]?\d+/,pe=/Z|[+-]\d\d:?\d\d/gi,ke=/Z|[+-]\d\d(?::?\d\d)?/gi,Me=/[+-]?\d+(\.\d{1,3})?/,De=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ye=/^[1-9]\d?/,Se=/^([1-9]\d|\d)/;function Oe(e,t,n){ae[e]=x(t)?t:function(e,s){return e&&n?n:t}}function be(e,t){return o(ae,e)?ae[e](t._strict,t._locale):new RegExp(Te(e))}function Te(e){return xe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,s,i){return t||n||s||i})))}function xe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ne(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function We(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Ne(t)),n}ae={};var Pe={};function Re(e,t){var n,s,i=t;for("string"===typeof e&&(e=[e]),d(t)&&(i=function(e,n){n[t]=We(e)}),s=e.length,n=0;n<s;n++)Pe[e[n]]=i}function Ce(e,t){Re(e,(function(e,n,s,i){s._w=s._w||{},t(e,s._w,s,i)}))}function Ue(e,t,n){null!=t&&o(Pe,e)&&Pe[e](t,n._a,n,e)}function He(e){return e%4===0&&e%100!==0||e%400===0}var Fe=0,Le=1,Ve=2,Ee=3,Ge=4,Ae=5,je=6,Ie=7,Ze=8;function ze(e){return He(e)?366:365}E("Y",0,0,(function(){var e=this.year();return e<=9999?U(e,4):"+"+e})),E(0,["YY",2],0,(function(){return this.year()%100})),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),Oe("Y",ve),Oe("YY",ce,ue),Oe("YYYY",ye,de),Oe("YYYYY",ge,he),Oe("YYYYYY",ge,he),Re(["YYYYY","YYYYYY"],Fe),Re("YYYY",(function(e,t){t[Fe]=2===e.length?s.parseTwoDigitYear(e):We(e)})),Re("YY",(function(e,t){t[Fe]=s.parseTwoDigitYear(e)})),Re("Y",(function(e,t){t[Fe]=parseInt(e,10)})),s.parseTwoDigitYear=function(e){return We(e)+(We(e)>68?1900:2e3)};var $e,qe=Je("FullYear",!0);function Be(){return He(this.year())}function Je(e,t){return function(n){return null!=n?(Xe(this,e,n),s.updateOffset(this,t),this):Qe(this,e)}}function Qe(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Xe(e,t,n){var s,i,r,a,o;if(e.isValid()&&!isNaN(n)){switch(s=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(i?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(i?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(i?s.setUTCHours(n):s.setHours(n));case"Date":return void(i?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}r=n,a=e.month(),o=29!==(o=e.date())||1!==a||He(r)?o:28,i?s.setUTCFullYear(r,a,o):s.setFullYear(r,a,o)}}function Ke(e){return x(this[e=ne(e)])?this[e]():this}function et(e,t){if("object"===typeof e){var n,s=re(e=se(e)),i=s.length;for(n=0;n<i;n++)this[s[n].unit](e[s[n].unit])}else if(x(this[e=ne(e)]))return this[e](t);return this}function tt(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=tt(t,12);return e+=(t-n)/12,1===n?He(e)?29:28:31-n%7%2}$e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},E("M",["MM",2],"Mo",(function(){return this.month()+1})),E("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),E("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Oe("M",ce,Ye),Oe("MM",ce,ue),Oe("MMM",(function(e,t){return t.monthsShortRegex(e)})),Oe("MMMM",(function(e,t){return t.monthsRegex(e)})),Re(["M","MM"],(function(e,t){t[Le]=We(e)-1})),Re(["MMM","MMMM"],(function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);null!=i?t[Le]=i:y(n).invalidMonth=e}));var st="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),it="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=De,ot=De;function ut(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone}function lt(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=m([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=$e.call(this._shortMonthsParse,a))?i:null:-1!==(i=$e.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=$e.call(this._shortMonthsParse,a))||-1!==(i=$e.call(this._longMonthsParse,a))?i:null:-1!==(i=$e.call(this._longMonthsParse,a))||-1!==(i=$e.call(this._shortMonthsParse,a))?i:null}function ht(e,t,n){var s,i,r;if(this._monthsParseExact)return dt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=m([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}}function ct(e,t){if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=We(t);else if(!d(t=e.localeData().monthsParse(t)))return e;var n=t,s=e.date();return s=s<29?s:Math.min(s,nt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,s):e._d.setMonth(n,s),e}function ft(e){return null!=e?(ct(this,e),s.updateOffset(this,!0),this):Qe(this,"Month")}function mt(){return nt(this.year(),this.month())}function _t(e){return this._monthsParseExact?(o(this,"_monthsRegex")||gt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function yt(e){return this._monthsParseExact?(o(this,"_monthsRegex")||gt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=ot),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function gt(){function e(e,t){return t.length-e.length}var t,n,s,i,r=[],a=[],o=[];for(t=0;t<12;t++)n=m([2e3,t]),s=xe(this.monthsShort(n,"")),i=xe(this.months(n,"")),r.push(s),a.push(i),o.push(i),o.push(s);r.sort(e),a.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function wt(e,t,n,s,i,r,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}function vt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function pt(e,t,n){var s=7+t-n;return-(7+vt(e,0,s).getUTCDay()-t)%7+s-1}function kt(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+pt(e,s,i);return o<=0?a=ze(r=e-1)+o:o>ze(e)?(r=e+1,a=o-ze(e)):(r=e,a=o),{year:r,dayOfYear:a}}function Mt(e,t,n){var s,i,r=pt(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Dt(i=e.year()-1,t,n):a>Dt(e.year(),t,n)?(s=a-Dt(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Dt(e,t,n){var s=pt(e,t,n),i=pt(e+1,t,n);return(ze(e)-s+i)/7}function Yt(e){return Mt(e,this._week.dow,this._week.doy).week}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),Oe("w",ce,Ye),Oe("ww",ce,ue),Oe("W",ce,Ye),Oe("WW",ce,ue),Ce(["w","ww","W","WW"],(function(e,t,n,s){t[s.substr(0,1)]=We(e)}));var St={dow:0,doy:6};function Ot(){return this._week.dow}function bt(){return this._week.doy}function Tt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function xt(e){var t=Mt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Nt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Wt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}E("d",0,"do","day"),E("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),E("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),E("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),Oe("d",ce),Oe("e",ce),Oe("E",ce),Oe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Oe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Oe("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ce(["dd","ddd","dddd"],(function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:y(n).invalidWeekday=e})),Ce(["d","e","E"],(function(e,t,n,s){t[s]=We(e)}));var Rt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ct="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ut="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ht=De,Ft=De,Lt=De;function Vt(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pt(n,this._week.dow):e?n[e.day()]:n}function Et(e){return!0===e?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Gt(e){return!0===e?Pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function At(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=m([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,a))||-1!==(i=$e.call(this._shortWeekdaysParse,a))||-1!==(i=$e.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,a))||-1!==(i=$e.call(this._weekdaysParse,a))||-1!==(i=$e.call(this._minWeekdaysParse,a))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,a))||-1!==(i=$e.call(this._weekdaysParse,a))||-1!==(i=$e.call(this._shortWeekdaysParse,a))?i:null}function jt(e,t,n){var s,i,r;if(this._weekdaysParseExact)return At.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=m([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}}function It(e){if(!this.isValid())return null!=e?this:NaN;var t=Qe(this,"Day");return null!=e?(e=Nt(e,this.localeData()),this.add(e-t,"d")):t}function Zt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function zt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Wt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function $t(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ht),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Bt(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jt(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),s=xe(this.weekdaysMin(n,"")),i=xe(this.weekdaysShort(n,"")),r=xe(this.weekdays(n,"")),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Xt(){return this.hours()||24}function Kt(e,t){E(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,Qt),E("k",["kk",2],0,Xt),E("hmm",0,0,(function(){return""+Qt.apply(this)+U(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+Qt.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+U(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)})),Kt("a",!0),Kt("A",!1),Oe("a",en),Oe("A",en),Oe("H",ce,Se),Oe("h",ce,Ye),Oe("k",ce,Ye),Oe("HH",ce,ue),Oe("hh",ce,ue),Oe("kk",ce,ue),Oe("hmm",fe),Oe("hmmss",me),Oe("Hmm",fe),Oe("Hmmss",me),Re(["H","HH"],Ee),Re(["k","kk"],(function(e,t,n){var s=We(e);t[Ee]=24===s?0:s})),Re(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Re(["h","hh"],(function(e,t,n){t[Ee]=We(e),y(n).bigHour=!0})),Re("hmm",(function(e,t,n){var s=e.length-2;t[Ee]=We(e.substr(0,s)),t[Ge]=We(e.substr(s)),y(n).bigHour=!0})),Re("hmmss",(function(e,t,n){var s=e.length-4,i=e.length-2;t[Ee]=We(e.substr(0,s)),t[Ge]=We(e.substr(s,2)),t[Ae]=We(e.substr(i)),y(n).bigHour=!0})),Re("Hmm",(function(e,t,n){var s=e.length-2;t[Ee]=We(e.substr(0,s)),t[Ge]=We(e.substr(s))})),Re("Hmmss",(function(e,t,n){var s=e.length-4,i=e.length-2;t[Ee]=We(e.substr(0,s)),t[Ge]=We(e.substr(s,2)),t[Ae]=We(e.substr(i))}));var nn=/[ap]\.?m?\.?/i,sn=Je("Hours",!0);function rn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,on={calendar:R,longDateFormat:Z,invalidDate:$,ordinal:B,dayOfMonthOrdinalParse:J,relativeTime:X,months:st,monthsShort:it,week:St,weekdays:Rt,weekdaysMin:Ut,weekdaysShort:Ct,meridiemParse:nn},un={},ln={};function dn(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n+=1)if(e[n]!==t[n])return n;return s}function hn(e){return e?e.toLowerCase().replace("_","-"):e}function cn(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=hn(e[r]).split("-")).length,n=(n=hn(e[r+1]))?n.split("-"):null;t>0;){if(s=mn(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&dn(i,n)>=t-1)break;t--}r++}return an}function fn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function mn(t){var n=null;if(void 0===un[t]&&e&&e.exports&&fn(t))try{n=an._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),_n(n)}catch(s){un[t]=null}return un[t]}function _n(e,t){var n;return e&&((n=l(t)?wn(e):yn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function yn(e,t){if(null!==t){var n,s=on;if(t.abbr=e,null!=un[e])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])s=un[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return ln[t.parentLocale]||(ln[t.parentLocale]=[]),ln[t.parentLocale].push({name:e,config:t}),null;s=n._config}return un[e]=new P(W(s,t)),ln[e]&&ln[e].forEach((function(e){yn(e.name,e.config)})),_n(e),un[e]}return delete un[e],null}function gn(e,t){if(null!=t){var n,s,i=on;null!=un[e]&&null!=un[e].parentLocale?un[e].set(W(un[e]._config,t)):(null!=(s=mn(e))&&(i=s._config),t=W(i,t),null==s&&(t.abbr=e),(n=new P(t)).parentLocale=un[e],un[e]=n),_n(e)}else null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===_n()&&_n(e)):null!=un[e]&&delete un[e]);return un[e]}function wn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!r(e)){if(t=mn(e))return t;e=[e]}return cn(e)}function vn(){return O(un)}function pn(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[Le]<0||n[Le]>11?Le:n[Ve]<1||n[Ve]>nt(n[Fe],n[Le])?Ve:n[Ee]<0||n[Ee]>24||24===n[Ee]&&(0!==n[Ge]||0!==n[Ae]||0!==n[je])?Ee:n[Ge]<0||n[Ge]>59?Ge:n[Ae]<0||n[Ae]>59?Ae:n[je]<0||n[je]>999?je:-1,y(e)._overflowDayOfYear&&(t<Fe||t>Ve)&&(t=Ve),y(e)._overflowWeeks&&-1===t&&(t=Ie),y(e)._overflowWeekday&&-1===t&&(t=Ze),y(e).overflow=t),e}var kn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dn=/Z|[+-]\d\d(?::?\d\d)?/,Yn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],On=/^\/?Date\((-?\d+)/i,bn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Tn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xn(e){var t,n,s,i,r,a,o=e._i,u=kn.exec(o)||Mn.exec(o),l=Yn.length,d=Sn.length;if(u){for(y(e).iso=!0,t=0,n=l;t<n;t++)if(Yn[t][1].exec(u[1])){i=Yn[t][0],s=!1!==Yn[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=d;t<n;t++)if(Sn[t][1].exec(u[3])){r=(u[2]||" ")+Sn[t][0];break}if(null==r)return void(e._isValid=!1)}if(!s&&null!=r)return void(e._isValid=!1);if(u[4]){if(!Dn.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),Gn(e)}else e._isValid=!1}function Nn(e,t,n,s,i,r){var a=[Wn(e),it.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&a.push(parseInt(r,10)),a}function Wn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rn(e,t,n){return!e||Ct.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Cn(e,t,n){if(e)return Tn[e];if(t)return 0;var s=parseInt(n,10),i=s%100;return(s-i)/100*60+i}function Un(e){var t,n=bn.exec(Pn(e._i));if(n){if(t=Nn(n[4],n[3],n[2],n[5],n[6],n[7]),!Rn(n[1],t,e))return;e._a=t,e._tzm=Cn(n[8],n[9],n[10]),e._d=vt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function Hn(e){var t=On.exec(e._i);null===t?(xn(e),!1===e._isValid&&(delete e._isValid,Un(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:s.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Fn(e,t,n){return null!=e?e:null!=t?t:n}function Ln(e){var t=new Date(s.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Vn(e){var t,n,s,i,r,a=[];if(!e._d){for(s=Ln(e),e._w&&null==e._a[Ve]&&null==e._a[Le]&&En(e),null!=e._dayOfYear&&(r=Fn(e._a[Fe],s[Fe]),(e._dayOfYear>ze(r)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=vt(r,0,e._dayOfYear),e._a[Le]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ee]&&0===e._a[Ge]&&0===e._a[Ae]&&0===e._a[je]&&(e._nextDay=!0,e._a[Ee]=0),e._d=(e._useUTC?vt:wt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ee]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(y(e).weekdayMismatch=!0)}}function En(e){var t,n,s,i,r,a,o,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,a=4,n=Fn(t.GG,e._a[Fe],Mt(Bn(),1,4).year),s=Fn(t.W,1),((i=Fn(t.E,1))<1||i>7)&&(u=!0)):(r=e._locale._week.dow,a=e._locale._week.doy,l=Mt(Bn(),r,a),n=Fn(t.gg,e._a[Fe],l.year),s=Fn(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(u=!0)):i=r),s<1||s>Dt(n,r,a)?y(e)._overflowWeeks=!0:null!=u?y(e)._overflowWeekday=!0:(o=kt(n,s,i,r,a),e._a[Fe]=o.year,e._dayOfYear=o.dayOfYear)}function Gn(e){if(e._f!==s.ISO_8601)if(e._f!==s.RFC_2822){e._a=[],y(e).empty=!0;var t,n,i,r,a,o,u,l=""+e._i,d=l.length,h=0;for(u=(i=I(e._f,e._locale).match(H)||[]).length,t=0;t<u;t++)r=i[t],(n=(l.match(be(r,e))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&y(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),h+=n.length),V[r]?(n?y(e).empty=!1:y(e).unusedTokens.push(r),Ue(r,n,e)):e._strict&&!n&&y(e).unusedTokens.push(r);y(e).charsLeftOver=d-h,l.length>0&&y(e).unusedInput.push(l),e._a[Ee]<=12&&!0===y(e).bigHour&&e._a[Ee]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[Ee]=An(e._locale,e._a[Ee],e._meridiem),null!==(o=y(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(o,e._a[Fe])),Vn(e),pn(e)}else Un(e);else xn(e)}function An(e,t,n){var s;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0),t):t}function jn(e){var t,n,s,i,r,a,o=!1,u=e._f.length;if(0===u)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)r=0,a=!1,t=k({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Gn(t),g(t)&&(a=!0),r+=y(t).charsLeftOver,r+=10*y(t).unusedTokens.length,y(t).score=r,o?r<s&&(s=r,n=t):(null==s||r<s||a)&&(s=r,n=t,a&&(o=!0));f(e,n||t)}function In(e){if(!e._d){var t=se(e._i),n=void 0===t.day?t.date:t.day;e._a=c([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Vn(e)}}function Zn(e){var t=new M(pn(zn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function zn(e){var t=e._i,n=e._f;return e._locale=e._locale||wn(e._l),null===t||void 0===n&&""===t?w({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),D(t)?new M(pn(t)):(h(t)?e._d=t:r(n)?jn(e):n?Gn(e):$n(e),g(e)||(e._d=null),e))}function $n(e){var t=e._i;l(t)?e._d=new Date(s.now()):h(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Hn(e):r(t)?(e._a=c(t.slice(0),(function(e){return parseInt(e,10)})),Vn(e)):a(t)?In(e):d(t)?e._d=new Date(t):s.createFromInputFallback(e)}function qn(e,t,n,s,i){var o={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==n&&!1!==n||(s=n,n=void 0),(a(e)&&u(e)||r(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=s,Zn(o)}function Bn(e,t,n,s){return qn(e,t,n,s,!1)}s.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),s.ISO_8601=function(){},s.RFC_2822=function(){};var Jn=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Bn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:w()})),Qn=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Bn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:w()}));function Xn(e,t){var n,s;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Bn();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}function Kn(){return Xn("isBefore",[].slice.call(arguments,0))}function es(){return Xn("isAfter",[].slice.call(arguments,0))}var ts=function(){return Date.now?Date.now():+new Date},ns=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ss(e){var t,n,s=!1,i=ns.length;for(t in e)if(o(e,t)&&(-1===$e.call(ns,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[ns[n]]){if(s)return!1;parseFloat(e[ns[n]])!==We(e[ns[n]])&&(s=!0)}return!0}function is(){return this._isValid}function rs(){return Ts(NaN)}function as(e){var t=se(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=ss(t),this._milliseconds=+d+1e3*l+6e4*u+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*s+12*n,this._data={},this._locale=wn(),this._bubble()}function os(e){return e instanceof as}function us(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ls(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s<i;s++)(n&&e[s]!==t[s]||!n&&We(e[s])!==We(t[s]))&&a++;return a+r}function ds(e,t){E(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+U(~~(e/60),2)+t+U(~~e%60,2)}))}ds("Z",":"),ds("ZZ",""),Oe("Z",ke),Oe("ZZ",ke),Re(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=cs(ke,e)}));var hs=/([\+\-]|\d\d)/gi;function cs(e,t){var n,s,i=(t||"").match(e);return null===i?null:0===(s=60*(n=((i[i.length-1]||[])+"").match(hs)||["-",0,0])[1]+We(n[2]))?0:"+"===n[0]?s:-s}function fs(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(D(e)||h(e)?e.valueOf():Bn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),s.updateOffset(n,!1),n):Bn(e).local()}function ms(e){return-Math.round(e._d.getTimezoneOffset())}function _s(e,t,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=cs(ke,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=ms(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Rs(this,Ts(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:ms(this)}function ys(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gs(e){return this.utcOffset(0,e)}function ws(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ms(this),"m")),this}function vs(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=cs(pe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function ps(e){return!!this.isValid()&&(e=e?Bn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function ks(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ms(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return k(t,this),(t=zn(t))._a?(e=t._isUTC?m(t._a):Bn(t._a),this._isDSTShifted=this.isValid()&&ls(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ds(){return!!this.isValid()&&!this._isUTC}function Ys(){return!!this.isValid()&&this._isUTC}function Ss(){return!!this.isValid()&&this._isUTC&&0===this._offset}s.updateOffset=function(){};var Os=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,bs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ts(e,t){var n,s,i,r=e,a=null;return os(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(a=Os.exec(e))?(n="-"===a[1]?-1:1,r={y:0,d:We(a[Ve])*n,h:We(a[Ee])*n,m:We(a[Ge])*n,s:We(a[Ae])*n,ms:We(us(1e3*a[je]))*n}):(a=bs.exec(e))?(n="-"===a[1]?-1:1,r={y:xs(a[2],n),M:xs(a[3],n),w:xs(a[4],n),d:xs(a[5],n),h:xs(a[6],n),m:xs(a[7],n),s:xs(a[8],n)}):null==r?r={}:"object"===typeof r&&("from"in r||"to"in r)&&(i=Ws(Bn(r.from),Bn(r.to)),(r={}).ms=i.milliseconds,r.M=i.months),s=new as(r),os(e)&&o(e,"_locale")&&(s._locale=e._locale),os(e)&&o(e,"_isValid")&&(s._isValid=e._isValid),s}function xs(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ns(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ws(e,t){var n;return e.isValid()&&t.isValid()?(t=fs(t,e),e.isBefore(t)?n=Ns(e,t):((n=Ns(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ps(e,t){return function(n,s){var i;return null===s||isNaN(+s)||(T(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=s,s=i),Rs(this,Ts(n,s),e),this}}function Rs(e,t,n,i){var r=t._milliseconds,a=us(t._days),o=us(t._months);e.isValid()&&(i=null==i||i,o&&ct(e,Qe(e,"Month")+o*n),a&&Xe(e,"Date",Qe(e,"Date")+a*n),r&&e._d.setTime(e._d.valueOf()+r*n),i&&s.updateOffset(e,a||o))}Ts.fn=as.prototype,Ts.invalid=rs;var Cs=Ps(1,"add"),Us=Ps(-1,"subtract");function Hs(e){return"string"===typeof e||e instanceof String}function Fs(e){return D(e)||h(e)||Hs(e)||d(e)||Vs(e)||Ls(e)||null===e||void 0===e}function Ls(e){var t,n,s=a(e)&&!u(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=r.length;for(t=0;t<l;t+=1)n=r[t],i=i||o(e,n);return s&&i}function Vs(e){var t=r(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&Hs(e)})).length),t&&n}function Es(e){var t,n,s=a(e)&&!u(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)n=r[t],i=i||o(e,n);return s&&i}function Gs(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function As(e,t){1===arguments.length&&(arguments[0]?Fs(arguments[0])?(e=arguments[0],t=void 0):Es(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Bn(),i=fs(n,this).startOf("day"),r=s.calendarFormat(this,i)||"sameElse",a=t&&(x(t[r])?t[r].call(this,n):t[r]);return this.format(a||this.localeData().calendar(r,this,Bn(n)))}function js(){return new M(this)}function Is(e,t){var n=D(e)?e:Bn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Zs(e,t){var n=D(e)?e:Bn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function zs(e,t,n,s){var i=D(e)?e:Bn(e),r=D(t)?t:Bn(t);return!!(this.isValid()&&i.isValid()&&r.isValid())&&("("===(s=s||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===s[1]?this.isBefore(r,n):!this.isAfter(r,n))}function $s(e,t){var n,s=D(e)?e:Bn(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function qs(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Bs(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Js(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=fs(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=ne(t)){case"year":r=Qs(this,s)/12;break;case"month":r=Qs(this,s);break;case"quarter":r=Qs(this,s)/3;break;case"second":r=(this-s)/1e3;break;case"minute":r=(this-s)/6e4;break;case"hour":r=(this-s)/36e5;break;case"day":r=(this-s-i)/864e5;break;case"week":r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:Ne(r)}function Qs(e,t){if(e.date()<t.date())return-Qs(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,"months");return-(n+(t-s<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(n+1,"months")-s)))||0}function Xs(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ks(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?j(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(n,"Z")):j(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,s,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",s=r+'[")]',this.format(e+t+n+s)}function ti(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=j(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(D(e)&&e.isValid()||Bn(e).isValid())?Ts({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.from(Bn(),e)}function ii(e,t){return this.isValid()&&(D(e)&&e.isValid()||Bn(e).isValid())?Ts({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ri(e){return this.to(Bn(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=wn(e))&&(this._locale=t),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oi=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ui(){return this._locale}var li=1e3,di=60*li,hi=60*di,ci=3506328*hi;function fi(e,t){return(e%t+t)%t}function mi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ci:new Date(e,t,n).valueOf()}function _i(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ci:Date.UTC(e,t,n)}function yi(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?_i:mi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fi(t+(this._isUTC?0:this.utcOffset()*di),hi);break;case"minute":t=this._d.valueOf(),t-=fi(t,di);break;case"second":t=this._d.valueOf(),t-=fi(t,li)}return this._d.setTime(t),s.updateOffset(this,!0),this}function gi(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?_i:mi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hi-fi(t+(this._isUTC?0:this.utcOffset()*di),hi)-1;break;case"minute":t=this._d.valueOf(),t+=di-fi(t,di)-1;break;case"second":t=this._d.valueOf(),t+=li-fi(t,li)-1}return this._d.setTime(t),s.updateOffset(this,!0),this}function wi(){return this._d.valueOf()-6e4*(this._offset||0)}function vi(){return Math.floor(this.valueOf()/1e3)}function pi(){return new Date(this.valueOf())}function ki(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Mi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Di(){return this.isValid()?this.toISOString():null}function Yi(){return g(this)}function Si(){return f({},y(this))}function Oi(){return y(this).overflow}function bi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ti(e,t){var n,i,r,a=this._eras||wn("en")._eras;for(n=0,i=a.length;n<i;++n)switch("string"===typeof a[n].since&&(r=s(a[n].since).startOf("day"),a[n].since=r.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":r=s(a[n].until).startOf("day").valueOf(),a[n].until=r.valueOf()}return a}function xi(e,t,n){var s,i,r,a,o,u=this.eras();for(e=e.toUpperCase(),s=0,i=u.length;s<i;++s)if(r=u[s].name.toUpperCase(),a=u[s].abbr.toUpperCase(),o=u[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[s];break;case"NNNN":if(r===e)return u[s];break;case"NNNNN":if(o===e)return u[s]}else if([r,a,o].indexOf(e)>=0)return u[s]}function Ni(e,t){var n=e.since<=e.until?1:-1;return void 0===t?s(e.since).year():s(e.since).year()+(t-e.offset)*n}function Wi(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].name;if(s[e].until<=n&&n<=s[e].since)return s[e].name}return""}function Pi(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].narrow;if(s[e].until<=n&&n<=s[e].since)return s[e].narrow}return""}function Ri(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].abbr;if(s[e].until<=n&&n<=s[e].since)return s[e].abbr}return""}function Ci(){var e,t,n,i,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,i=this.clone().startOf("day").valueOf(),r[e].since<=i&&i<=r[e].until||r[e].until<=i&&i<=r[e].since)return(this.year()-s(r[e].since).year())*n+r[e].offset;return this.year()}function Ui(e){return o(this,"_erasNameRegex")||Ai.call(this),e?this._erasNameRegex:this._erasRegex}function Hi(e){return o(this,"_erasAbbrRegex")||Ai.call(this),e?this._erasAbbrRegex:this._erasRegex}function Fi(e){return o(this,"_erasNarrowRegex")||Ai.call(this),e?this._erasNarrowRegex:this._erasRegex}function Li(e,t){return t.erasAbbrRegex(e)}function Vi(e,t){return t.erasNameRegex(e)}function Ei(e,t){return t.erasNarrowRegex(e)}function Gi(e,t){return t._eraYearOrdinalRegex||we}function Ai(){var e,t,n,s,i,r=[],a=[],o=[],u=[],l=this.eras();for(e=0,t=l.length;e<t;++e)n=xe(l[e].name),s=xe(l[e].abbr),i=xe(l[e].narrow),a.push(n),r.push(s),o.push(i),u.push(n),u.push(s),u.push(i);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function ji(e,t){E(0,[e,e.length],0,t)}function Ii(e){return Ji.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Zi(e){return Ji.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zi(){return Dt(this.year(),1,4)}function $i(){return Dt(this.isoWeekYear(),1,4)}function qi(){var e=this.localeData()._week;return Dt(this.year(),e.dow,e.doy)}function Bi(){var e=this.localeData()._week;return Dt(this.weekYear(),e.dow,e.doy)}function Ji(e,t,n,s,i){var r;return null==e?Mt(this,s,i).year:(t>(r=Dt(e,s,i))&&(t=r),Qi.call(this,e,t,n,s,i))}function Qi(e,t,n,s,i){var r=kt(e,t,n,s,i),a=vt(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Xi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),Oe("N",Li),Oe("NN",Li),Oe("NNN",Li),Oe("NNNN",Vi),Oe("NNNNN",Ei),Re(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?y(n).era=i:y(n).invalidEra=e})),Oe("y",we),Oe("yy",we),Oe("yyy",we),Oe("yyyy",we),Oe("yo",Gi),Re(["y","yy","yyy","yyyy"],Fe),Re(["yo"],(function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Fe]=n._locale.eraYearOrdinalParse(e,i):t[Fe]=parseInt(e,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ji("gggg","weekYear"),ji("ggggg","weekYear"),ji("GGGG","isoWeekYear"),ji("GGGGG","isoWeekYear"),Oe("G",ve),Oe("g",ve),Oe("GG",ce,ue),Oe("gg",ce,ue),Oe("GGGG",ye,de),Oe("gggg",ye,de),Oe("GGGGG",ge,he),Oe("ggggg",ge,he),Ce(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,s){t[s.substr(0,2)]=We(e)})),Ce(["gg","GG"],(function(e,t,n,i){t[i]=s.parseTwoDigitYear(e)})),E("Q",0,"Qo","quarter"),Oe("Q",oe),Re("Q",(function(e,t){t[Le]=3*(We(e)-1)})),E("D",["DD",2],"Do","date"),Oe("D",ce,Ye),Oe("DD",ce,ue),Oe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Re(["D","DD"],Ve),Re("Do",(function(e,t){t[Ve]=We(e.match(ce)[0])}));var Ki=Je("Date",!0);function er(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}E("DDD",["DDDD",3],"DDDo","dayOfYear"),Oe("DDD",_e),Oe("DDDD",le),Re(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=We(e)})),E("m",["mm",2],0,"minute"),Oe("m",ce,Se),Oe("mm",ce,ue),Re(["m","mm"],Ge);var tr=Je("Minutes",!1);E("s",["ss",2],0,"second"),Oe("s",ce,Se),Oe("ss",ce,ue),Re(["s","ss"],Ae);var nr,sr,ir=Je("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Oe("S",_e,oe),Oe("SS",_e,ue),Oe("SSS",_e,le),nr="SSSS";nr.length<=9;nr+="S")Oe(nr,we);function rr(e,t){t[je]=We(1e3*("0."+e))}for(nr="S";nr.length<=9;nr+="S")Re(nr,rr);function ar(){return this._isUTC?"UTC":""}function or(){return this._isUTC?"Coordinated Universal Time":""}sr=Je("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var ur=M.prototype;function lr(e){return Bn(1e3*e)}function dr(){return Bn.apply(null,arguments).parseZone()}function hr(e){return e}ur.add=Cs,ur.calendar=As,ur.clone=js,ur.diff=Js,ur.endOf=gi,ur.format=ti,ur.from=ni,ur.fromNow=si,ur.to=ii,ur.toNow=ri,ur.get=Ke,ur.invalidAt=Oi,ur.isAfter=Is,ur.isBefore=Zs,ur.isBetween=zs,ur.isSame=$s,ur.isSameOrAfter=qs,ur.isSameOrBefore=Bs,ur.isValid=Yi,ur.lang=oi,ur.locale=ai,ur.localeData=ui,ur.max=Qn,ur.min=Jn,ur.parsingFlags=Si,ur.set=et,ur.startOf=yi,ur.subtract=Us,ur.toArray=ki,ur.toObject=Mi,ur.toDate=pi,ur.toISOString=Ks,ur.inspect=ei,"undefined"!==typeof Symbol&&null!=Symbol.for&&(ur[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ur.toJSON=Di,ur.toString=Xs,ur.unix=vi,ur.valueOf=wi,ur.creationData=bi,ur.eraName=Wi,ur.eraNarrow=Pi,ur.eraAbbr=Ri,ur.eraYear=Ci,ur.year=qe,ur.isLeapYear=Be,ur.weekYear=Ii,ur.isoWeekYear=Zi,ur.quarter=ur.quarters=Xi,ur.month=ft,ur.daysInMonth=mt,ur.week=ur.weeks=Tt,ur.isoWeek=ur.isoWeeks=xt,ur.weeksInYear=qi,ur.weeksInWeekYear=Bi,ur.isoWeeksInYear=zi,ur.isoWeeksInISOWeekYear=$i,ur.date=Ki,ur.day=ur.days=It,ur.weekday=Zt,ur.isoWeekday=zt,ur.dayOfYear=er,ur.hour=ur.hours=sn,ur.minute=ur.minutes=tr,ur.second=ur.seconds=ir,ur.millisecond=ur.milliseconds=sr,ur.utcOffset=_s,ur.utc=gs,ur.local=ws,ur.parseZone=vs,ur.hasAlignedHourOffset=ps,ur.isDST=ks,ur.isLocal=Ds,ur.isUtcOffset=Ys,ur.isUtc=Ss,ur.isUTC=Ss,ur.zoneAbbr=ar,ur.zoneName=or,ur.dates=S("dates accessor is deprecated. Use date instead.",Ki),ur.months=S("months accessor is deprecated. Use month instead",ft),ur.years=S("years accessor is deprecated. Use year instead",qe),ur.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ys),ur.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ms);var cr=P.prototype;function fr(e,t,n,s){var i=wn(),r=m().set(s,t);return i[n](r,e)}function mr(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return fr(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=fr(e,s,n,"month");return i}function _r(e,t,n,s){"boolean"===typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var i,r=wn(),a=e?r._week.dow:0,o=[];if(null!=n)return fr(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=fr(t,(i+a)%7,s,"day");return o}function yr(e,t){return mr(e,t,"months")}function gr(e,t){return mr(e,t,"monthsShort")}function wr(e,t,n){return _r(e,t,n,"weekdays")}function vr(e,t,n){return _r(e,t,n,"weekdaysShort")}function pr(e,t,n){return _r(e,t,n,"weekdaysMin")}cr.calendar=C,cr.longDateFormat=z,cr.invalidDate=q,cr.ordinal=Q,cr.preparse=hr,cr.postformat=hr,cr.relativeTime=K,cr.pastFuture=ee,cr.set=N,cr.eras=Ti,cr.erasParse=xi,cr.erasConvertYear=Ni,cr.erasAbbrRegex=Hi,cr.erasNameRegex=Ui,cr.erasNarrowRegex=Fi,cr.months=ut,cr.monthsShort=lt,cr.monthsParse=ht,cr.monthsRegex=yt,cr.monthsShortRegex=_t,cr.week=Yt,cr.firstDayOfYear=bt,cr.firstDayOfWeek=Ot,cr.weekdays=Vt,cr.weekdaysMin=Gt,cr.weekdaysShort=Et,cr.weekdaysParse=jt,cr.weekdaysRegex=$t,cr.weekdaysShortRegex=qt,cr.weekdaysMinRegex=Bt,cr.isPM=tn,cr.meridiem=rn,_n("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===We(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),s.lang=S("moment.lang is deprecated. Use moment.locale instead.",_n),s.langData=S("moment.langData is deprecated. Use moment.localeData instead.",wn);var kr=Math.abs;function Mr(){var e=this._data;return this._milliseconds=kr(this._milliseconds),this._days=kr(this._days),this._months=kr(this._months),e.milliseconds=kr(e.milliseconds),e.seconds=kr(e.seconds),e.minutes=kr(e.minutes),e.hours=kr(e.hours),e.months=kr(e.months),e.years=kr(e.years),this}function Dr(e,t,n,s){var i=Ts(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function Yr(e,t){return Dr(this,e,t,1)}function Sr(e,t){return Dr(this,e,t,-1)}function Or(e){return e<0?Math.floor(e):Math.ceil(e)}function br(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*Or(xr(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=Ne(r/1e3),u.seconds=e%60,t=Ne(e/60),u.minutes=t%60,n=Ne(t/60),u.hours=n%24,a+=Ne(n/24),o+=i=Ne(Tr(a)),a-=Or(xr(i)),s=Ne(o/12),o%=12,u.days=a,u.months=o,u.years=s,this}function Tr(e){return 4800*e/146097}function xr(e){return 146097*e/4800}function Nr(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+Tr(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(xr(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}}function Wr(e){return function(){return this.as(e)}}var Pr=Wr("ms"),Rr=Wr("s"),Cr=Wr("m"),Ur=Wr("h"),Hr=Wr("d"),Fr=Wr("w"),Lr=Wr("M"),Vr=Wr("Q"),Er=Wr("y"),Gr=Pr;function Ar(){return Ts(this)}function jr(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Ir(e){return function(){return this.isValid()?this._data[e]:NaN}}var Zr=Ir("milliseconds"),zr=Ir("seconds"),$r=Ir("minutes"),qr=Ir("hours"),Br=Ir("days"),Jr=Ir("months"),Qr=Ir("years");function Xr(){return Ne(this.days()/7)}var Kr=Math.round,ea={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ta(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}function na(e,t,n,s){var i=Ts(e).abs(),r=Kr(i.as("s")),a=Kr(i.as("m")),o=Kr(i.as("h")),u=Kr(i.as("d")),l=Kr(i.as("M")),d=Kr(i.as("w")),h=Kr(i.as("y")),c=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||a<=1&&["m"]||a<n.m&&["mm",a]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(c=c||d<=1&&["w"]||d<n.w&&["ww",d]),(c=c||l<=1&&["M"]||l<n.M&&["MM",l]||h<=1&&["y"]||["yy",h])[2]=t,c[3]=+e>0,c[4]=s,ta.apply(null,c)}function sa(e){return void 0===e?Kr:"function"===typeof e&&(Kr=e,!0)}function ia(e,t){return void 0!==ea[e]&&(void 0===t?ea[e]:(ea[e]=t,"s"===e&&(ea.ss=t-1),!0))}function ra(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,i=!1,r=ea;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(r=Object.assign({},ea,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),s=na(this,!i,r,n=this.localeData()),i&&(s=n.pastFuture(+this,s)),n.postformat(s)}var aa=Math.abs;function oa(e){return(e>0)-(e<0)||+e}function ua(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o,u=aa(this._milliseconds)/1e3,l=aa(this._days),d=aa(this._months),h=this.asSeconds();return h?(e=Ne(u/60),t=Ne(e/60),u%=60,e%=60,n=Ne(d/12),d%=12,s=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",r=oa(this._months)!==oa(h)?"-":"",a=oa(this._days)!==oa(h)?"-":"",o=oa(this._milliseconds)!==oa(h)?"-":"",i+"P"+(n?r+n+"Y":"")+(d?r+d+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+s+"S":"")):"P0D"}var la=as.prototype;return la.isValid=is,la.abs=Mr,la.add=Yr,la.subtract=Sr,la.as=Nr,la.asMilliseconds=Pr,la.asSeconds=Rr,la.asMinutes=Cr,la.asHours=Ur,la.asDays=Hr,la.asWeeks=Fr,la.asMonths=Lr,la.asQuarters=Vr,la.asYears=Er,la.valueOf=Gr,la._bubble=br,la.clone=Ar,la.get=jr,la.milliseconds=Zr,la.seconds=zr,la.minutes=$r,la.hours=qr,la.days=Br,la.weeks=Xr,la.months=Jr,la.years=Qr,la.humanize=ra,la.toISOString=ua,la.toString=ua,la.toJSON=ua,la.locale=ai,la.localeData=ui,la.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ua),la.lang=oi,E("X",0,0,"unix"),E("x",0,0,"valueOf"),Oe("x",ve),Oe("X",Me),Re("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Re("x",(function(e,t,n){n._d=new Date(We(e))})),s.version="2.30.1",i(Bn),s.fn=ur,s.min=Kn,s.max=es,s.now=ts,s.utc=m,s.unix=lr,s.months=yr,s.isDate=h,s.locale=_n,s.invalid=w,s.duration=Ts,s.isMoment=D,s.weekdays=wr,s.parseZone=dr,s.localeData=wn,s.isDuration=os,s.monthsShort=gr,s.weekdaysMin=pr,s.defineLocale=yn,s.updateLocale=gn,s.locales=vn,s.weekdaysShort=vr,s.normalizeUnits=ne,s.relativeTimeRounding=sa,s.relativeTimeThreshold=ia,s.calendarFormat=Gs,s.prototype=ur,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s}()}}]);
@@ -1 +0,0 @@
1
- //! moment.js
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[5281],{3727:(e,t,i)=>{i.d(t,{A:()=>c,o:()=>p});var s=i(58878),n=i(8151),l=i(70766),r=i(35331),a=i(58144),o=i(84152),d=i(90782);let p;!function(e){e.EXTRASMALL="xs",e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e.EXTRALARGE="xl"}(p||(p={}));const c=function(e){let{value:t,width:i,size:c=p.SMALL,overrides:g}=e;const h=(0,n.u)(),u={xs:h.spacing.twoXS,sm:h.spacing.sm,md:h.spacing.lg,lg:h.spacing.xl,xl:h.spacing.twoXL},{activeTheme:m}=s.useContext(o.n),f=!(0,a.tl)(m),x={BarContainer:{style:{marginTop:h.spacing.none,marginBottom:h.spacing.none,marginRight:h.spacing.none,marginLeft:h.spacing.none}},Bar:{style:e=>{let{$theme:t}=e;return{width:i?i.toString():void 0,marginTop:h.spacing.none,marginBottom:h.spacing.none,marginRight:h.spacing.none,marginLeft:h.spacing.none,height:u[c],backgroundColor:t.colors.progressbarTrackFill,borderTopLeftRadius:h.spacing.twoXS,borderTopRightRadius:h.spacing.twoXS,borderBottomLeftRadius:h.spacing.twoXS,borderBottomRightRadius:h.spacing.twoXS}}},BarProgress:{style:()=>({backgroundColor:f?h.colors.primary:h.colors.blue70,borderTopLeftRadius:h.spacing.twoXS,borderTopRightRadius:h.spacing.twoXS,borderBottomLeftRadius:h.spacing.twoXS,borderBottomRightRadius:h.spacing.twoXS})}};return(0,d.jsx)(l.A,{value:t,overrides:(0,r.Qp)(x,g)})}},9830:(e,t,i)=>{i.d(t,{m:()=>s});class s{setStatus(e){return new s(this.name,this.size,this.id,e)}constructor(e,t,i,s){this.name=void 0,this.size=void 0,this.status=void 0,this.id=void 0,this.name=e,this.size=t,this.id=i,this.status=s}}},55281:(e,t,i)=>{i.r(t),i.d(t,{default:()=>he});var s=i(58878),n=i(32782),l=i(71034),r=i.n(l),a=i(50609),o=i.n(a),d=i(25571),p=i(29669),c=i(34752);let g;!function(e){e.Gigabyte="gb",e.Megabyte="mb",e.Kilobyte="kb",e.Byte="b"}(g||(g={}));const h=(0,d.Q2)()?1024:1e3,u=[g.Gigabyte,g.Megabyte,g.Kilobyte,g.Byte],m=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(t||(t=g.Byte),i<0&&(i=0),e<0)throw new Error("Size must be greater than or equal to 0");const s=u.indexOf(t);return s&&e>h/2?m(e/h,u[s-1],i):`${e.toFixed(i)}${t.toUpperCase()}`};var f=i(70474),x=i(78286),w=i(93480),y=i(997),b=i(97779),F=i(36459),S=i(84720),v=i(89653);const I=(0,v.A)("section",{target:"e1b2p2ww15"})((e=>{let{isDisabled:t,theme:i}=e;return{display:"flex",alignItems:"center",padding:i.spacing.lg,backgroundColor:i.colors.secondaryBg,borderRadius:i.radii.default,":focus":{outline:"none"},":focus-visible":{boxShadow:`0 0 0 1px ${i.colors.primary}`},color:t?i.colors.gray:i.colors.bodyText}}),""),j=(0,v.A)("div",{target:"e1b2p2ww14"})((()=>({marginRight:"auto",alignItems:"center",display:"flex"})),""),U=(0,v.A)("span",{target:"e1b2p2ww13"})((e=>{let{theme:t}=e;return{color:t.colors.darkenedBgMix100,marginRight:t.spacing.lg}}),""),A=(0,v.A)("span",{target:"e1b2p2ww12"})((e=>{let{theme:t}=e;return{marginBottom:t.spacing.twoXS}}),""),L=(0,v.A)("div",{target:"e1b2p2ww11"})({name:"1fttcpj",styles:"display:flex;flex-direction:column"}),z=(0,v.A)("div",{target:"e1b2p2ww10"})((e=>{let{theme:t}=e;return{left:0,right:0,lineHeight:t.lineHeights.tight,paddingTop:t.spacing.md,paddingLeft:t.spacing.lg,paddingRight:t.spacing.lg}}),""),M=(0,v.A)("ul",{target:"e1b2p2ww9"})((e=>{let{theme:t}=e;return{listStyleType:"none",marginBottom:t.spacing.none}}),""),C=(0,v.A)("li",{target:"e1b2p2ww8"})((e=>{let{theme:t}=e;return{margin:t.spacing.none,padding:t.spacing.none}}),""),B=(0,v.A)("div",{target:"e1b2p2ww7"})((e=>{let{theme:t}=e;return{display:"flex",alignItems:"baseline",flex:1,paddingLeft:t.spacing.lg,overflow:"hidden"}}),""),X=(0,v.A)("div",{target:"e1b2p2ww6"})((e=>{let{theme:t}=e;return{marginRight:t.spacing.sm,marginBottom:t.spacing.twoXS,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}),""),R=(0,v.A)("div",{target:"e1b2p2ww5"})((e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",marginBottom:t.spacing.twoXS}}),""),k=(0,v.A)("span",{target:"e1b2p2ww4"})((e=>{let{theme:t}=e;return{marginRight:t.spacing.twoXS}}),""),D=(0,v.A)("div",{target:"e1b2p2ww3"})((e=>{let{theme:t}=e;return{display:"flex",padding:t.spacing.twoXS,color:t.colors.darkenedBgMix100}}),""),T=(0,v.A)("small",{target:"e1b2p2ww2"})((e=>{let{theme:t}=e;return{color:t.colors.danger,fontSize:t.fontSizes.sm,height:t.fontSizes.sm,lineHeight:t.fontSizes.sm,display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),""),E=(0,v.A)("span",{target:"e1b2p2ww1"})({name:"0",styles:""}),P=e=>({[I]:{display:"flex",flexDirection:"column",alignItems:"flex-start"},[j]:{marginBottom:e.spacing.lg},[U]:{display:"none"},[z]:{paddingRight:e.spacing.lg},[R]:{maxWidth:"inherit",flex:1,alignItems:"flex-start",marginBottom:e.spacing.sm},[X]:{width:e.sizes.full},[B]:{flexDirection:"column"},[T]:{height:"auto",whiteSpace:"initial"},[E]:{display:"none"},[C]:{margin:e.spacing.none,padding:e.spacing.none}}),V=(0,v.A)("div",{target:"e1b2p2ww0"})((e=>{let{theme:t}=e;return t.inSidebar?P(t):{[`@media (max-width: ${t.breakpoints.sm})`]:P(t)}}),"");var N=i(72718),$=i(64611),W=i(12978),H=i(90782);const O=e=>{let{multiple:t,acceptedExtensions:i,maxSizeBytes:s}=e;return(0,H.jsxs)(j,{"data-testid":"stFileUploaderDropzoneInstructions",children:[(0,H.jsx)(U,{children:(0,H.jsx)($.A,{content:N.b,size:"threeXL"})}),(0,H.jsxs)(L,{children:[(0,H.jsxs)(A,{children:["Drag and drop file",t?"s":""," here"]}),(0,H.jsxs)(W.O,{children:[`Limit ${m(s,g.Byte,0)} per file`,i.length?` \u2022 ${i.map((e=>e.replace(/^\./,"").toUpperCase())).join(", ")}`:null]})]})]})},_=e=>{let{onDrop:t,multiple:i,acceptedExtensions:s,maxSizeBytes:n,disabled:l,label:r}=e;return(0,H.jsx)(b.Ay,{onDrop:t,multiple:i,accept:s.length?s:void 0,maxSize:n,disabled:l,useFsAccessApi:!1,children:e=>{let{getRootProps:t,getInputProps:a}=e;return(0,H.jsxs)(I,{...t(),"data-testid":"stFileUploaderDropzone",isDisabled:l,"aria-label":r,children:[(0,H.jsx)("input",{"data-testid":"stFileUploaderDropzoneInput",...a()}),(0,H.jsx)(O,{multiple:i,acceptedExtensions:s,maxSizeBytes:n}),(0,H.jsx)(F.Ay,{kind:S.KX.SECONDARY,disabled:l,size:S.Pj.SMALL,children:"Browse files"})]})}})};var K=i(53124),G=i.n(K),q=i(35526),Q=i(77434),Y=i(76370);const Z=(0,v.A)("div",{target:"e1nlpozb1"})((e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:t.spacing.twoXS,marginBottom:t.spacing.twoXS}}),""),J=(0,v.A)("div",{target:"e1nlpozb0"})((e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",justifyContent:"center",color:t.colors.fadedText40}}),""),ee=e=>{let{currentPage:t,totalPages:i,onNext:s,onPrevious:n}=e;return(0,H.jsxs)(Z,{"data-testid":"stFileUploaderPagination",children:[(0,H.jsx)(W.O,{children:`Showing page ${t} of ${i}`}),(0,H.jsxs)(J,{children:[(0,H.jsx)(F.Ay,{onClick:n,kind:S.KX.MINIMAL,children:(0,H.jsx)($.A,{content:Q.J,size:"xl"})}),(0,H.jsx)(F.Ay,{onClick:s,kind:S.KX.MINIMAL,children:(0,H.jsx)($.A,{content:Y.c,size:"xl"})})]})]})},te=(e,t)=>Math.ceil(e.length/t),ie=e=>G()((t=>{let{pageSize:i,items:n,resetOnAdd:l,...r}=t;const[a,o]=(0,s.useState)(0),[d,p]=(0,s.useState)(te(n,i)),c=(0,q.Z)(n);(0,s.useEffect)((()=>{c&&c.length!==n.length&&p(te(n,i)),c&&c.length<n.length?l&&o(0):a+1>=d&&o(d-1)}),[n,a,i,c,l,d]);const g=n.slice(a*i,a*i+i);return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(e,{items:g,...r}),n.length>i?(0,H.jsx)(ee,{pageSize:i,totalPages:d,currentPage:a+1,onNext:()=>{o(Math.min(a+1,d-1))},onPrevious:()=>{o(Math.max(0,a-1))}}):null]})}),e);var se=i(2742),ne=i(97522),le=i(64754),re=i(3727);const ae=e=>{let{fileInfo:t}=e;return"uploading"===t.status.type?(0,H.jsx)(re.A,{value:t.status.progress,size:re.o.SMALL}):"error"===t.status.type?(0,H.jsxs)(T,{children:[(0,H.jsx)(k,{"data-testid":"stFileUploaderFileErrorMessage",children:t.status.errorMessage}),(0,H.jsx)(E,{children:(0,H.jsx)($.A,{content:se.$,size:"lg"})})]}):"uploaded"===t.status.type?(0,H.jsx)(W.O,{children:m(t.size,g.Byte)}):null},oe=e=>{let{fileInfo:t,onDelete:i}=e;return(0,H.jsxs)(R,{className:"stFileUploaderFile","data-testid":"stFileUploaderFile",children:[(0,H.jsx)(D,{children:(0,H.jsx)($.A,{content:ne.i,size:"twoXL"})}),(0,H.jsxs)(B,{className:"stFileUploaderFileData",children:[(0,H.jsx)(X,{className:"stFileUploaderFileName","data-testid":"stFileUploaderFileName",title:t.name,children:t.name}),(0,H.jsx)(ae,{fileInfo:t})]}),(0,H.jsx)("div",{"data-testid":"stFileUploaderDeleteBtn",children:(0,H.jsx)(F.Ay,{onClick:()=>i(t.id),kind:S.KX.MINIMAL,children:(0,H.jsx)($.A,{content:le.k,size:"lg"})})})]})},de=ie((e=>{let{items:t,onDelete:i}=e;return(0,H.jsx)(M,{children:t.map((e=>(0,H.jsx)(C,{children:(0,H.jsx)(oe,{fileInfo:e,onDelete:i})},e.id)))})})),pe=e=>(0,H.jsx)(z,{children:(0,H.jsx)(de,{...e})});var ce=i(9830);class ge extends s.PureComponent{constructor(e){super(e),this.formClearHelper=new c.o,this.localFileIdCounter=1,this.forceUpdatingStatus=!1,this.componentDidUpdate=()=>{if("ready"!==this.status)return;const e=this.createWidgetValue(),{element:t,widgetMgr:i,fragmentId:s}=this.props,n=i.getFileUploaderStateValue(t);r()(e,n)||i.setFileUploaderStateValue(t,e,{fromUi:!0},s)},this.reset=()=>{this.setState({files:[]})},this.dropHandler=(e,t)=>{const{element:i}=this.props,{multipleFiles:s}=i;if(!s&&0===e.length&&t.length>1){const i=t.findIndex((e=>1===e.errors.length&&"too-many-files"===e.errors[0].code));i>=0&&(e.push(t[i].file),t.splice(i,1))}if(this.props.uploadClient.fetchFileURLs(e).then((t=>{if(!s&&e.length>0){const e=this.state.files.find((e=>"error"!==e.status.type));e&&(this.forceUpdatingStatus=!0,this.deleteFile(e.id),this.forceUpdatingStatus=!1)}o()(t,e).forEach((e=>{let[t,i]=e;this.uploadFile(t,i)}))})).catch((t=>{this.addFiles(e.map((e=>new ce.m(e.name,e.size,this.nextLocalFileId(),{type:"error",errorMessage:t}))))})),t.length>0){const e=t.map((e=>{const{file:t}=e;return new ce.m(t.name,t.size,this.nextLocalFileId(),{type:"error",errorMessage:this.getErrorMessage(e.errors[0].code,e.file)})}));this.addFiles(e)}},this.uploadFile=(e,t)=>{const i=n.A.CancelToken.source(),s=new ce.m(t.name,t.size,this.nextLocalFileId(),{type:"uploading",cancelToken:i,progress:1});this.addFile(s),this.props.uploadClient.uploadFile(this.props.element,e.uploadUrl,t,(e=>this.onUploadProgress(e,s.id)),i.token).then((()=>this.onUploadComplete(s.id,e))).catch((e=>{n.A.isCancel(e)||this.updateFile(s.id,s.setStatus({type:"error",errorMessage:e?e.toString():"Unknown error"}))}))},this.onUploadComplete=(e,t)=>{const i=this.getFile(e);(0,d.hX)(i)||"uploading"!==i.status.type||this.updateFile(i.id,i.setStatus({type:"uploaded",fileId:t.fileId,fileUrls:t}))},this.getErrorMessage=(e,t)=>{switch(e){case"file-too-large":return`File must be ${m(this.maxUploadSizeInBytes,g.Byte)} or smaller.`;case"file-invalid-type":return`${t.type} files are not allowed.`;case"file-too-small":return"File size is too small.";case"too-many-files":return"Only one file is allowed.";default:return"Unexpected error. Please try again."}},this.deleteFile=e=>{const t=this.getFile(e);(0,d.hX)(t)||("uploading"===t.status.type&&t.status.cancelToken.cancel(),"uploaded"===t.status.type&&t.status.fileUrls.deleteUrl&&this.props.uploadClient.deleteFile(t.status.fileUrls.deleteUrl),this.removeFile(e))},this.addFile=e=>{this.setState((t=>({files:[...t.files,e]})))},this.addFiles=e=>{this.setState((t=>({files:[...t.files,...e]})))},this.removeFile=e=>{this.setState((t=>({files:t.files.filter((t=>t.id!==e))})))},this.getFile=e=>this.state.files.find((t=>t.id===e)),this.updateFile=(e,t)=>{this.setState((i=>({files:i.files.map((i=>i.id===e?t:i))})))},this.onUploadProgress=(e,t)=>{const i=this.getFile(t);if((0,d.hX)(i)||"uploading"!==i.status.type)return;const s=Math.round(100*e.loaded/e.total);i.status.progress!==s&&this.updateFile(t,i.setStatus({type:"uploading",cancelToken:i.status.cancelToken,progress:s}))},this.onFormCleared=()=>{this.setState({files:[]},(()=>{const e=this.createWidgetValue();if((0,d.hX)(e))return;const{widgetMgr:t,element:i,fragmentId:s}=this.props;t.setFileUploaderStateValue(i,e,{fromUi:!0},s)}))},this.state=this.initialValue}get initialValue(){const e={files:[],newestServerFileId:0},{widgetMgr:t,element:i}=this.props,s=t.getFileUploaderStateValue(i);if((0,d.hX)(s))return e;const{uploadedFileInfo:n}=s;return(0,d.hX)(n)||0===n.length?e:{files:n.map((e=>{const t=e.name,i=e.size,s=e.fileId,n=e.fileUrls;return new ce.m(t,i,this.nextLocalFileId(),{type:"uploaded",fileId:s,fileUrls:n})}))}}componentWillUnmount(){this.formClearHelper.disconnect()}get maxUploadSizeInBytes(){return((e,t,i)=>{if(e<0)throw Error("Size must be 0 or greater");const s=u.findIndex((e=>e===t)),n=u.findIndex((e=>e===i));if(-1===s||-1===n)throw Error("Unexpected byte unit provided");if(s===n)return e;const l=Math.abs(s-n),r=h**l;return s>n?e/r:e*r})(this.props.element.maxUploadSizeMb,g.Megabyte,g.Byte)}get status(){return this.state.files.some((e=>"uploading"===e.status.type))||this.forceUpdatingStatus?"updating":"ready"}componentDidMount(){const e=this.createWidgetValue(),{element:t,widgetMgr:i,fragmentId:s}=this.props;void 0===i.getFileUploaderStateValue(t)&&i.setFileUploaderStateValue(t,e,{fromUi:!1},s)}createWidgetValue(){const e=this.state.files.filter((e=>"uploaded"===e.status.type)).map((e=>{const{name:t,size:i,status:s}=e,{fileId:n,fileUrls:l}=s;return new p.HY({fileId:n,fileUrls:l,name:t,size:i})}));return new p.qX({uploadedFileInfo:e})}render(){var e;const{files:t}=this.state,{element:i,disabled:s,widgetMgr:n}=this.props,l=i.type;this.formClearHelper.manageFormClearListener(n,i.formId,this.onFormCleared);const r=t.slice().reverse();return(0,H.jsxs)(V,{className:"stFileUploader","data-testid":"stFileUploader",children:[(0,H.jsx)(f.L,{label:i.label,disabled:s,labelVisibility:(0,d.yv)(null===(e=i.labelVisibility)||void 0===e?void 0:e.value),children:i.help&&(0,H.jsx)(x.j,{children:(0,H.jsx)(w.A,{content:i.help,placement:y.W.TOP_RIGHT})})}),(0,H.jsx)(_,{onDrop:this.dropHandler,multiple:i.multipleFiles,acceptedExtensions:l,maxSizeBytes:this.maxUploadSizeInBytes,label:i.label,disabled:s}),r.length>0&&(0,H.jsx)(pe,{items:r,pageSize:3,onDelete:this.deleteFile,resetOnAdd:!0})]})}nextLocalFileId(){return this.localFileIdCounter++}}const he=ge},34752:(e,t,i)=>{i.d(t,{X:()=>r,o:()=>l});var s=i(58878),n=i(25571);class l{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,i){(0,n.se)(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,n._L)(t)&&(this.formClearListener=e.addFormClearedListener(t,i),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function r(e){let{element:t,widgetMgr:i,onFormCleared:l}=e;(0,s.useEffect)((()=>{if(!(0,n._L)(t.formId))return;const e=i.addFormClearedListener(t.formId,l);return()=>{e.disconnect()}}),[t,i,l])}},35526:(e,t,i)=>{i.d(t,{Z:()=>n});var s=i(58878);const n=e=>{const t=(0,s.useRef)();return(0,s.useEffect)((()=>{t.current=e}),[e]),t.current}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[5544],{41514:(n,t,r)=>{r.d(t,{u:()=>a});var e=r(68102),i=r(58878),o=r(68622),a=i.forwardRef((function(n,t){return i.createElement(o.I,(0,e.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},n,{ref:t}),i.createElement("path",{d:"M0 0v4l1.5-1.5L3 4l1-1-1.5-1.5L4 0H0zm5 4L4 5l1.5 1.5L4 8h4V4L6.5 5.5 5 4z"}))}));a.displayName="FullscreenEnter"},67214:(n,t,r)=>{r.d(t,{Q:()=>a});var e=r(68102),i=r(58878),o=r(68622),a=i.forwardRef((function(n,t){return i.createElement(o.I,(0,e.A)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},n,{ref:t}),i.createElement("path",{d:"M1 0L0 1l1.5 1.5L0 4h4V0L2.5 1.5 1 0zm3 4v4l1.5-1.5L7 8l1-1-1.5-1.5L8 4H4z"}))}));a.displayName="FullscreenExit"},25638:(n,t,r)=>{function e(n,t){return null==n||null==t?NaN:n<t?-1:n>t?1:n>=t?0:NaN}r.d(t,{A:()=>e})},66384:(n,t,r)=>{r.d(t,{Ay:()=>s,Jj:()=>u,ah:()=>l});var e=r(25638),i=r(87821),o=r(2651);const a=(0,i.A)(e.A),u=a.right,l=a.left,s=((0,i.A)(o.A).center,u)},87821:(n,t,r)=>{r.d(t,{A:()=>o});var e=r(25638);function i(n,t){return null==n||null==t?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function o(n){let t,r,o;function u(n,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length;if(i<o){if(0!==t(e,e))return o;do{const t=i+o>>>1;r(n[t],e)<0?i=t+1:o=t}while(i<o)}return i}return 2!==n.length?(t=e.A,r=(t,r)=>(0,e.A)(n(t),r),o=(t,r)=>n(t)-r):(t=n===e.A||n===i?n:a,r=n,o=n),{left:u,center:function(n,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const e=u(n,t,r,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length)-1);return e>r&&o(n[e-1],t)>-o(n[e],t)?e-1:e},right:function(n,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.length;if(i<o){if(0!==t(e,e))return o;do{const t=i+o>>>1;r(n[t],e)<=0?i=t+1:o=t}while(i<o)}return i}}}function a(){return 0}},39687:(n,t,r)=>{r.d(t,{A:()=>i});var e=r(67413);function i(n,t){const r=(0,e.A)(n,t);return r?Math.sqrt(r):r}},57214:(n,t,r)=>{function e(n,t){let r;if(void 0===t)for(const e of n)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let e=-1;for(let i of n)null!=(i=t(i,++e,n))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}r.d(t,{A:()=>e})},89504:(n,t,r)=>{r.d(t,{A:()=>i});var e=r(8410);function i(n,t){return(0,e.Ay)(n,.5,t)}},15232:(n,t,r)=>{function e(n,t){let r;if(void 0===t)for(const e of n)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let e=-1;for(let i of n)null!=(i=t(i,++e,n))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}r.d(t,{A:()=>e})},2651:(n,t,r)=>{function e(n){return null===n?NaN:+n}function*i(n,t){if(void 0===t)for(let r of n)null!=r&&(r=+r)>=r&&(yield r);else{let r=-1;for(let e of n)null!=(e=t(e,++r,n))&&(e=+e)>=e&&(yield e)}}r.d(t,{A:()=>e,n:()=>i})},14826:(n,t,r)=>{function e(n,t){return Array.from(t,(t=>n[t]))}r.d(t,{A:()=>e})},8410:(n,t,r)=>{r.d(t,{Ay:()=>s,Z4:()=>c});var e=r(57214),i=r(15232),o=r(87670);function a(n,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4?arguments[4]:void 0;if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),e=Math.floor(Math.min(n.length-1,e)),!(r<=t&&t<=e))return n;for(i=void 0===i?o.o2:(0,o.JC)(i);e>r;){if(e-r>600){const o=e-r+1,u=t-r+1,l=Math.log(o),s=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*s*(o-s)/o)*(u-o/2<0?-1:1);a(n,t,Math.max(r,Math.floor(t-u*s/o+c)),Math.min(e,Math.floor(t+(o-u)*s/o+c)),i)}const o=n[t];let l=r,s=e;for(u(n,r,t),i(n[e],o)>0&&u(n,r,e);l<s;){for(u(n,l,s),++l,--s;i(n[l],o)<0;)++l;for(;i(n[s],o)>0;)--s}0===i(n[r],o)?u(n,r,s):(++s,u(n,s,e)),s<=t&&(r=s+1),t<=s&&(e=s-1)}return n}function u(n,t,r){const e=n[t];n[t]=n[r],n[r]=e}var l=r(2651);function s(n,t,r){if((o=(n=Float64Array.from((0,l.n)(n,r))).length)&&!isNaN(t=+t)){if(t<=0||o<2)return(0,i.A)(n);if(t>=1)return(0,e.A)(n);var o,u=(o-1)*t,s=Math.floor(u),c=(0,e.A)(a(n,s).subarray(0,s+1));return c+((0,i.A)(n.subarray(s+1))-c)*(u-s)}}function c(n,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.A;if((e=n.length)&&!isNaN(t=+t)){if(t<=0||e<2)return+r(n[0],0,n);if(t>=1)return+r(n[e-1],e-1,n);var e,i=(e-1)*t,o=Math.floor(i),a=+r(n[o],o,n);return a+(+r(n[o+1],o+1,n)-a)*(i-o)}}},65537:(n,t,r)=>{function e(n,t,r){n=+n,t=+t,r=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+r;for(var e=-1,i=0|Math.max(0,Math.ceil((t-n)/r)),o=new Array(i);++e<i;)o[e]=n+e*r;return o}r.d(t,{A:()=>e})},87670:(n,t,r)=>{r.d(t,{Ay:()=>o,JC:()=>a,o2:()=>u});var e=r(25638),i=r(14826);function o(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];if("function"!==typeof n[Symbol.iterator])throw new TypeError("values is not iterable");n=Array.from(n);let[o]=r;if(o&&2!==o.length||r.length>1){const t=Uint32Array.from(n,((n,t)=>t));return r.length>1?(r=r.map((t=>n.map(t))),t.sort(((n,t)=>{for(const e of r){const r=u(e[n],e[t]);if(r)return r}}))):(o=n.map(o),t.sort(((n,t)=>u(o[n],o[t])))),(0,i.A)(n,t)}return n.sort(a(o))}function a(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.A;if(n===e.A)return u;if("function"!==typeof n)throw new TypeError("compare is not a function");return(t,r)=>{const e=n(t,r);return e||0===e?e:(0===n(r,r))-(0===n(t,t))}}function u(n,t){return(null==n||!(n>=n))-(null==t||!(t>=t))||(n<t?-1:n>t?1:0)}},17698:(n,t,r)=>{r.d(t,{Ay:()=>u,lq:()=>l,sG:()=>s});const e=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(n,t,r){const u=(t-n)/Math.max(0,r),l=Math.floor(Math.log10(u)),s=u/Math.pow(10,l),c=s>=e?10:s>=i?5:s>=o?2:1;let h,f,g;return l<0?(g=Math.pow(10,-l)/c,h=Math.round(n*g),f=Math.round(t*g),h/g<n&&++h,f/g>t&&--f,g=-g):(g=Math.pow(10,l)*c,h=Math.round(n/g),f=Math.round(t/g),h*g<n&&++h,f*g>t&&--f),f<h&&.5<=r&&r<2?a(n,t,2*r):[h,f,g]}function u(n,t,r){if(!((r=+r)>0))return[];if((n=+n)===(t=+t))return[n];const e=t<n,[i,o,u]=e?a(t,n,r):a(n,t,r);if(!(o>=i))return[];const l=o-i+1,s=new Array(l);if(e)if(u<0)for(let a=0;a<l;++a)s[a]=(o-a)/-u;else for(let a=0;a<l;++a)s[a]=(o-a)*u;else if(u<0)for(let a=0;a<l;++a)s[a]=(i+a)/-u;else for(let a=0;a<l;++a)s[a]=(i+a)*u;return s}function l(n,t,r){return a(n=+n,t=+t,r=+r)[2]}function s(n,t,r){r=+r;const e=(t=+t)<(n=+n),i=e?l(t,n,r):l(n,t,r);return(e?-1:1)*(i<0?1/-i:i)}},67413:(n,t,r)=>{function e(n,t){let r,e=0,i=0,o=0;if(void 0===t)for(let a of n)null!=a&&(a=+a)>=a&&(r=a-i,i+=r/++e,o+=r*(a-i));else{let a=-1;for(let u of n)null!=(u=t(u,++a,n))&&(u=+u)>=u&&(r=u-i,i+=r/++e,o+=r*(u-i))}if(e>1)return o/(e-1)}r.d(t,{A:()=>e})},89421:(n,t,r)=>{r.d(t,{Ay:()=>w,Gw:()=>k,KI:()=>L,Q1:()=>i,Qh:()=>N,Uw:()=>a,b:()=>x,ef:()=>o});var e=r(39655);function i(){}var o=.7,a=1/o,u="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,h=new RegExp(`^rgb\\(${u},${u},${u}\\)$`),f=new RegExp(`^rgb\\(${s},${s},${s}\\)$`),g=new RegExp(`^rgba\\(${u},${u},${u},${l}\\)$`),d=new RegExp(`^rgba\\(${s},${s},${s},${l}\\)$`),p=new RegExp(`^hsl\\(${l},${s},${s}\\)$`),m=new RegExp(`^hsla\\(${l},${s},${s},${l}\\)$`),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function v(){return this.rgb().formatHex()}function A(){return this.rgb().formatRgb()}function w(n){var t,r;return n=(n+"").trim().toLowerCase(),(t=c.exec(n))?(r=t[1].length,t=parseInt(t[1],16),6===r?M(t):3===r?new k(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?b(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?b(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=h.exec(n))?new k(t[1],t[2],t[3],1):(t=f.exec(n))?new k(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=g.exec(n))?b(t[1],t[2],t[3],t[4]):(t=d.exec(n))?b(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=p.exec(n))?S(t[1],t[2]/100,t[3]/100,1):(t=m.exec(n))?S(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(n)?M(y[n]):"transparent"===n?new k(NaN,NaN,NaN,0):null}function M(n){return new k(n>>16&255,n>>8&255,255&n,1)}function b(n,t,r,e){return e<=0&&(n=t=r=NaN),new k(n,t,r,e)}function x(n){return n instanceof i||(n=w(n)),n?new k((n=n.rgb()).r,n.g,n.b,n.opacity):new k}function N(n,t,r,e){return 1===arguments.length?x(n):new k(n,t,r,null==e?1:e)}function k(n,t,r,e){this.r=+n,this.g=+t,this.b=+r,this.opacity=+e}function $(){return`#${_(this.r)}${_(this.g)}${_(this.b)}`}function E(){const n=C(this.opacity);return`${1===n?"rgb(":"rgba("}${q(this.r)}, ${q(this.g)}, ${q(this.b)}${1===n?")":`, ${n})`}`}function C(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function q(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function _(n){return((n=q(n))<16?"0":"")+n.toString(16)}function S(n,t,r,e){return e<=0?n=t=r=NaN:r<=0||r>=1?n=t=NaN:t<=0&&(n=NaN),new R(n,t,r,e)}function j(n){if(n instanceof R)return new R(n.h,n.s,n.l,n.opacity);if(n instanceof i||(n=w(n)),!n)return new R;if(n instanceof R)return n;var t=(n=n.rgb()).r/255,r=n.g/255,e=n.b/255,o=Math.min(t,r,e),a=Math.max(t,r,e),u=NaN,l=a-o,s=(a+o)/2;return l?(u=t===a?(r-e)/l+6*(r<e):r===a?(e-t)/l+2:(t-r)/l+4,l/=s<.5?a+o:2-a-o,u*=60):l=s>0&&s<1?0:u,new R(u,l,s,n.opacity)}function L(n,t,r,e){return 1===arguments.length?j(n):new R(n,t,r,null==e?1:e)}function R(n,t,r,e){this.h=+n,this.s=+t,this.l=+r,this.opacity=+e}function H(n){return(n=(n||0)%360)<0?n+360:n}function z(n){return Math.max(0,Math.min(1,n||0))}function G(n,t,r){return 255*(n<60?t+(r-t)*n/60:n<180?r:n<240?t+(r-t)*(240-n)/60:t)}(0,e.A)(i,w,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return j(this).formatHsl()},formatRgb:A,toString:A}),(0,e.A)(k,N,(0,e.X)(i,{brighter(n){return n=null==n?a:Math.pow(a,n),new k(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=null==n?o:Math.pow(o,n),new k(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new k(q(this.r),q(this.g),q(this.b),C(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$,formatHex:$,formatHex8:function(){return`#${_(this.r)}${_(this.g)}${_(this.b)}${_(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:E,toString:E})),(0,e.A)(R,L,(0,e.X)(i,{brighter(n){return n=null==n?a:Math.pow(a,n),new R(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=null==n?o:Math.pow(o,n),new R(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+360*(this.h<0),t=isNaN(n)||isNaN(this.s)?0:this.s,r=this.l,e=r+(r<.5?r:1-r)*t,i=2*r-e;return new k(G(n>=240?n-240:n+120,i,e),G(n,i,e),G(n<120?n+240:n-120,i,e),this.opacity)},clamp(){return new R(H(this.h),z(this.s),z(this.l),C(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=C(this.opacity);return`${1===n?"hsl(":"hsla("}${H(this.h)}, ${100*z(this.s)}%, ${100*z(this.l)}%${1===n?")":`, ${n})`}`}}))},39655:(n,t,r)=>{function e(n,t,r){n.prototype=t.prototype=r,r.constructor=n}function i(n,t){var r=Object.create(n.prototype);for(var e in t)r[e]=t[e];return r}r.d(t,{A:()=>e,X:()=>i})},55453:(n,t,r)=>{r.d(t,{GP:()=>i,s:()=>o});var e,i,o,a,u=r(75351);a={thousands:",",grouping:[3],currency:["$",""]},e=(0,u.A)(a),i=e.format,o=e.formatPrefix},30563:(n,t,r)=>{r.d(t,{A:()=>i});var e=r(88772);function i(n){return(n=(0,e.f)(Math.abs(n)))?n[1]:NaN}},88772:(n,t,r)=>{function e(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function i(n,t){if((r=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var r,e=n.slice(0,r);return[e.length>1?e[0]+e.slice(2):e,+n.slice(r+1)]}r.d(t,{A:()=>e,f:()=>i})},46047:(n,t,r)=>{r.d(t,{A:()=>i});var e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(n){if(!(t=e.exec(n)))throw new Error("invalid format: "+n);var t;return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(n){this.fill=void 0===n.fill?" ":n.fill+"",this.align=void 0===n.align?">":n.align+"",this.sign=void 0===n.sign?"-":n.sign+"",this.symbol=void 0===n.symbol?"":n.symbol+"",this.zero=!!n.zero,this.width=void 0===n.width?void 0:+n.width,this.comma=!!n.comma,this.precision=void 0===n.precision?void 0:+n.precision,this.trim=!!n.trim,this.type=void 0===n.type?"":n.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},75351:(n,t,r)=>{r.d(t,{A:()=>f});var e=r(30563);var i=r(46047);var o,a=r(88772);function u(n,t){var r=(0,a.f)(n,t);if(!r)return n+"";var e=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+e:e.length>i+1?e.slice(0,i+1)+"."+e.slice(i+1):e+new Array(i-e.length+2).join("0")}const l={"%":(n,t)=>(100*n).toFixed(t),b:n=>Math.round(n).toString(2),c:n=>n+"",d:a.A,e:(n,t)=>n.toExponential(t),f:(n,t)=>n.toFixed(t),g:(n,t)=>n.toPrecision(t),o:n=>Math.round(n).toString(8),p:(n,t)=>u(100*n,t),r:u,s:function(n,t){var r=(0,a.f)(n,t);if(!r)return n+"";var e=r[0],i=r[1],u=i-(o=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,l=e.length;return u===l?e:u>l?e+new Array(u-l+1).join("0"):u>0?e.slice(0,u)+"."+e.slice(u):"0."+new Array(1-u).join("0")+(0,a.f)(n,Math.max(0,t+u-1))[0]},X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function s(n){return n}var c=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function f(n){var t,r,a=void 0===n.grouping||void 0===n.thousands?s:(t=c.call(n.grouping,Number),r=n.thousands+"",function(n,e){for(var i=n.length,o=[],a=0,u=t[0],l=0;i>0&&u>0&&(l+u+1>e&&(u=Math.max(1,e-l)),o.push(n.substring(i-=u,i+u)),!((l+=u+1)>e));)u=t[a=(a+1)%t.length];return o.reverse().join(r)}),u=void 0===n.currency?"":n.currency[0]+"",f=void 0===n.currency?"":n.currency[1]+"",g=void 0===n.decimal?".":n.decimal+"",d=void 0===n.numerals?s:function(n){return function(t){return t.replace(/[0-9]/g,(function(t){return n[+t]}))}}(c.call(n.numerals,String)),p=void 0===n.percent?"%":n.percent+"",m=void 0===n.minus?"\u2212":n.minus+"",y=void 0===n.nan?"NaN":n.nan+"";function v(n){var t=(n=(0,i.A)(n)).fill,r=n.align,e=n.sign,s=n.symbol,c=n.zero,v=n.width,A=n.comma,w=n.precision,M=n.trim,b=n.type;"n"===b?(A=!0,b="g"):l[b]||(void 0===w&&(w=12),M=!0,b="g"),(c||"0"===t&&"="===r)&&(c=!0,t="0",r="=");var x="$"===s?u:"#"===s&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",N="$"===s?f:/[%p]/.test(b)?p:"",k=l[b],$=/[defgprs%]/.test(b);function E(n){var i,u,l,s=x,f=N;if("c"===b)f=k(n)+f,n="";else{var p=(n=+n)<0||1/n<0;if(n=isNaN(n)?y:k(Math.abs(n),w),M&&(n=function(n){n:for(var t,r=n.length,e=1,i=-1;e<r;++e)switch(n[e]){case".":i=t=e;break;case"0":0===i&&(i=e),t=e;break;default:if(!+n[e])break n;i>0&&(i=0)}return i>0?n.slice(0,i)+n.slice(t+1):n}(n)),p&&0===+n&&"+"!==e&&(p=!1),s=(p?"("===e?e:m:"-"===e||"("===e?"":e)+s,f=("s"===b?h[8+o/3]:"")+f+(p&&"("===e?")":""),$)for(i=-1,u=n.length;++i<u;)if(48>(l=n.charCodeAt(i))||l>57){f=(46===l?g+n.slice(i+1):n.slice(i))+f,n=n.slice(0,i);break}}A&&!c&&(n=a(n,1/0));var E=s.length+n.length+f.length,C=E<v?new Array(v-E+1).join(t):"";switch(A&&c&&(n=a(C+n,C.length?v-f.length:1/0),C=""),r){case"<":n=s+n+f+C;break;case"=":n=s+C+n+f;break;case"^":n=C.slice(0,E=C.length>>1)+s+n+f+C.slice(E);break;default:n=C+s+n+f}return d(n)}return w=void 0===w?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),E.toString=function(){return n+""},E}return{format:v,formatPrefix:function(n,t){var r=v(((n=(0,i.A)(n)).type="f",n)),o=3*Math.max(-8,Math.min(8,Math.floor((0,e.A)(t)/3))),a=Math.pow(10,-o),u=h[8+o/3];return function(n){return r(a*n)+u}}}}},52102:(n,t,r)=>{r.d(t,{A:()=>i});var e=r(30563);function i(n){return Math.max(0,-(0,e.A)(Math.abs(n)))}},16038:(n,t,r)=>{r.d(t,{A:()=>i});var e=r(30563);function i(n,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,e.A)(t)/3)))-(0,e.A)(Math.abs(n)))}},96324:(n,t,r)=>{r.d(t,{A:()=>i});var e=r(30563);function i(n,t){return n=Math.abs(n),t=Math.abs(t)-n,Math.max(0,(0,e.A)(t)-(0,e.A)(n))+1}},63535:(n,t,r)=>{r.d(t,{$:()=>a,A:()=>o});var e=r(80039),i=r(30032);function o(n,t){return((0,i.p)(t)?i.A:a)(n,t)}function a(n,t){var r,i=t?t.length:0,o=n?Math.min(i,n.length):0,a=new Array(o),u=new Array(i);for(r=0;r<o;++r)a[r]=(0,e.A)(n[r],t[r]);for(;r<i;++r)u[r]=t[r];return function(n){for(r=0;r<o;++r)u[r]=a[r](n);return u}}},36368:(n,t,r)=>{function e(n,t,r,e,i){var o=n*n,a=o*n;return((1-3*n+3*o-a)*t+(4-6*o+3*a)*r+(1+3*n+3*o-3*a)*e+a*i)/6}function i(n){var t=n.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=n[i],a=n[i+1],u=i>0?n[i-1]:2*o-a,l=i<t-1?n[i+2]:2*a-o;return e((r-i/t)*t,u,o,a,l)}}r.d(t,{A:()=>i,H:()=>e})},16284:(n,t,r)=>{r.d(t,{A:()=>i});var e=r(36368);function i(n){var t=n.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*t),o=n[(i+t-1)%t],a=n[i%t],u=n[(i+1)%t],l=n[(i+2)%t];return(0,e.H)((r-i/t)*t,o,a,u,l)}}},73637:(n,t,r)=>{r.d(t,{Ay:()=>u,lG:()=>o,uN:()=>a});var e=r(80428);function i(n,t){return function(r){return n+r*t}}function o(n,t){var r=t-n;return r?i(n,r>180||r<-180?r-360*Math.round(r/360):r):(0,e.A)(isNaN(n)?t:n)}function a(n){return 1===(n=+n)?u:function(t,r){return r-t?function(n,t,r){return n=Math.pow(n,r),t=Math.pow(t,r)-n,r=1/r,function(e){return Math.pow(n+e*t,r)}}(t,r,n):(0,e.A)(isNaN(t)?r:t)}}function u(n,t){var r=t-n;return r?i(n,r):(0,e.A)(isNaN(n)?t:n)}},80428:(n,t,r)=>{r.d(t,{A:()=>e});const e=n=>()=>n},44700:(n,t,r)=>{function e(n,t){var r=new Date;return n=+n,t=+t,function(e){return r.setTime(n*(1-e)+t*e),r}}r.d(t,{A:()=>e})},48853:(n,t,r)=>{function e(n,t){return n=+n,t=+t,function(r){return n*(1-r)+t*r}}r.d(t,{A:()=>e})},30032:(n,t,r)=>{function e(n,t){t||(t=[]);var r,e=n?Math.min(t.length,n.length):0,i=t.slice();return function(o){for(r=0;r<e;++r)i[r]=n[r]*(1-o)+t[r]*o;return i}}function i(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}r.d(t,{A:()=>e,p:()=>i})},47983:(n,t,r)=>{r.d(t,{A:()=>i});var e=r(80039);function i(n,t){var r,i={},o={};for(r in null!==n&&"object"===typeof n||(n={}),null!==t&&"object"===typeof t||(t={}),t)r in n?i[r]=(0,e.A)(n[r],t[r]):o[r]=t[r];return function(n){for(r in i)o[r]=i[r](n);return o}}},70701:(n,t,r)=>{r.d(t,{Ay:()=>u,Ik:()=>s,uL:()=>c});var e=r(89421),i=r(36368),o=r(16284),a=r(73637);const u=function n(t){var r=(0,a.uN)(t);function i(n,t){var i=r((n=(0,e.Qh)(n)).r,(t=(0,e.Qh)(t)).r),o=r(n.g,t.g),u=r(n.b,t.b),l=(0,a.Ay)(n.opacity,t.opacity);return function(t){return n.r=i(t),n.g=o(t),n.b=u(t),n.opacity=l(t),n+""}}return i.gamma=n,i}(1);function l(n){return function(t){var r,i,o=t.length,a=new Array(o),u=new Array(o),l=new Array(o);for(r=0;r<o;++r)i=(0,e.Qh)(t[r]),a[r]=i.r||0,u[r]=i.g||0,l[r]=i.b||0;return a=n(a),u=n(u),l=n(l),i.opacity=1,function(n){return i.r=a(n),i.g=u(n),i.b=l(n),i+""}}}var s=l(i.A),c=l(o.A)},72970:(n,t,r)=>{function e(n,t){return n=+n,t=+t,function(r){return Math.round(n*(1-r)+t*r)}}r.d(t,{A:()=>e})},56409:(n,t,r)=>{r.d(t,{A:()=>a});var e=r(48853),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(i.source,"g");function a(n,t){var r,a,u,l=i.lastIndex=o.lastIndex=0,s=-1,c=[],h=[];for(n+="",t+="";(r=i.exec(n))&&(a=o.exec(t));)(u=a.index)>l&&(u=t.slice(l,u),c[s]?c[s]+=u:c[++s]=u),(r=r[0])===(a=a[0])?c[s]?c[s]+=a:c[++s]=a:(c[++s]=null,h.push({i:s,x:(0,e.A)(r,a)})),l=o.lastIndex;return l<t.length&&(u=t.slice(l),c[s]?c[s]+=u:c[++s]=u),c.length<2?h[0]?function(n){return function(t){return n(t)+""}}(h[0].x):function(n){return function(){return n}}(t):(t=h.length,function(n){for(var r,e=0;e<t;++e)c[(r=h[e]).i]=r.x(n);return c.join("")})}},80039:(n,t,r)=>{r.d(t,{A:()=>f});var e=r(89421),i=r(70701),o=r(63535),a=r(44700),u=r(48853),l=r(47983),s=r(56409),c=r(80428),h=r(30032);function f(n,t){var r,f=typeof t;return null==t||"boolean"===f?(0,c.A)(t):("number"===f?u.A:"string"===f?(r=(0,e.Ay)(t))?(t=r,i.Ay):s.A:t instanceof e.Ay?i.Ay:t instanceof Date?a.A:(0,h.p)(t)?h.A:Array.isArray(t)?o.$:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?l.A:u.A)(n,t)}},95507:(n,t,r)=>{r.d(t,{C:()=>g,Ay:()=>p,D_:()=>s,Gu:()=>d});var e=r(66384),i=r(80039),o=r(48853),a=r(72970);var u=r(68558),l=[0,1];function s(n){return n}function c(n,t){return(t-=n=+n)?function(r){return(r-n)/t}:(r=isNaN(t)?NaN:.5,function(){return r});var r}function h(n,t,r){var e=n[0],i=n[1],o=t[0],a=t[1];return i<e?(e=c(i,e),o=r(a,o)):(e=c(e,i),o=r(o,a)),function(n){return o(e(n))}}function f(n,t,r){var i=Math.min(n.length,t.length)-1,o=new Array(i),a=new Array(i),u=-1;for(n[i]<n[0]&&(n=n.slice().reverse(),t=t.slice().reverse());++u<i;)o[u]=c(n[u],n[u+1]),a[u]=r(t[u],t[u+1]);return function(t){var r=(0,e.Ay)(n,t,1,i)-1;return a[r](o[r](t))}}function g(n,t){return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function d(){var n,t,r,e,c,g,d=l,p=l,m=i.A,y=s;function v(){var n=Math.min(d.length,p.length);return y!==s&&(y=function(n,t){var r;return n>t&&(r=n,n=t,t=r),function(r){return Math.max(n,Math.min(t,r))}}(d[0],d[n-1])),e=n>2?f:h,c=g=null,A}function A(t){return null==t||isNaN(t=+t)?r:(c||(c=e(d.map(n),p,m)))(n(y(t)))}return A.invert=function(r){return y(t((g||(g=e(p,d.map(n),o.A)))(r)))},A.domain=function(n){return arguments.length?(d=Array.from(n,u.A),v()):d.slice()},A.range=function(n){return arguments.length?(p=Array.from(n),v()):p.slice()},A.rangeRound=function(n){return p=Array.from(n),m=a.A,v()},A.clamp=function(n){return arguments.length?(y=!!n||s,v()):y!==s},A.interpolate=function(n){return arguments.length?(m=n,v()):m},A.unknown=function(n){return arguments.length?(r=n,A):r},function(r,e){return n=r,t=e,v()}}function p(){return d()(s,s)}},57113:(n,t,r)=>{function e(n,t){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(t).domain(n)}return this}function i(n,t){switch(arguments.length){case 0:break;case 1:"function"===typeof n?this.interpolator(n):this.range(n);break;default:this.domain(n),"function"===typeof t?this.interpolator(t):this.range(t)}return this}r.d(t,{C:()=>e,K:()=>i})},53142:(n,t,r)=>{r.d(t,{A:()=>l,C:()=>u});var e=r(17698),i=r(95507),o=r(57113),a=r(10545);function u(n){var t=n.domain;return n.ticks=function(n){var r=t();return(0,e.Ay)(r[0],r[r.length-1],null==n?10:n)},n.tickFormat=function(n,r){var e=t();return(0,a.A)(e[0],e[e.length-1],null==n?10:n,r)},n.nice=function(r){null==r&&(r=10);var i,o,a=t(),u=0,l=a.length-1,s=a[u],c=a[l],h=10;for(c<s&&(o=s,s=c,c=o,o=u,u=l,l=o);h-- >0;){if((o=(0,e.lq)(s,c,r))===i)return a[u]=s,a[l]=c,t(a);if(o>0)s=Math.floor(s/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;s=Math.ceil(s*o)/o,c=Math.floor(c*o)/o}i=o}return n},n}function l(){var n=(0,i.Ay)();return n.copy=function(){return(0,i.C)(n,l())},o.C.apply(n,arguments),u(n)}},18617:(n,t,r)=>{r.d(t,{A:()=>m,g:()=>p});var e=r(17698),i=r(46047),o=r(55453),a=r(73806),u=r(95507),l=r(57113);function s(n){return Math.log(n)}function c(n){return Math.exp(n)}function h(n){return-Math.log(-n)}function f(n){return-Math.exp(-n)}function g(n){return isFinite(n)?+("1e"+n):n<0?0:n}function d(n){return(t,r)=>-n(-t,r)}function p(n){const t=n(s,c),r=t.domain;let u,l,p=10;function m(){return u=function(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),t=>Math.log(t)/n)}(p),l=function(n){return 10===n?g:n===Math.E?Math.exp:t=>Math.pow(n,t)}(p),r()[0]<0?(u=d(u),l=d(l),n(h,f)):n(s,c),t}return t.base=function(n){return arguments.length?(p=+n,m()):p},t.domain=function(n){return arguments.length?(r(n),m()):r()},t.ticks=n=>{const t=r();let i=t[0],o=t[t.length-1];const a=o<i;a&&([i,o]=[o,i]);let s,c,h=u(i),f=u(o);const g=null==n?10:+n;let d=[];if(!(p%1)&&f-h<g){if(h=Math.floor(h),f=Math.ceil(f),i>0){for(;h<=f;++h)for(s=1;s<p;++s)if(c=h<0?s/l(-h):s*l(h),!(c<i)){if(c>o)break;d.push(c)}}else for(;h<=f;++h)for(s=p-1;s>=1;--s)if(c=h>0?s/l(-h):s*l(h),!(c<i)){if(c>o)break;d.push(c)}2*d.length<g&&(d=(0,e.Ay)(i,o,g))}else d=(0,e.Ay)(h,f,Math.min(f-h,g)).map(l);return a?d.reverse():d},t.tickFormat=(n,r)=>{if(null==n&&(n=10),null==r&&(r=10===p?"s":","),"function"!==typeof r&&(p%1||null!=(r=(0,i.A)(r)).precision||(r.trim=!0),r=(0,o.GP)(r)),n===1/0)return r;const e=Math.max(1,p*n/t.ticks().length);return n=>{let t=n/l(Math.round(u(n)));return t*p<p-.5&&(t*=p),t<=e?r(n):""}},t.nice=()=>r((0,a.A)(r(),{floor:n=>l(Math.floor(u(n))),ceil:n=>l(Math.ceil(u(n)))})),t}function m(){const n=p((0,u.Gu)()).domain([1,10]);return n.copy=()=>(0,u.C)(n,m()).base(n.base()),l.C.apply(n,arguments),n}},73806:(n,t,r)=>{function e(n,t){var r,e=0,i=(n=n.slice()).length-1,o=n[e],a=n[i];return a<o&&(r=e,e=i,i=r,r=o,o=a,a=r),n[e]=t.floor(o),n[i]=t.ceil(a),n}r.d(t,{A:()=>e})},68558:(n,t,r)=>{function e(n){return+n}r.d(t,{A:()=>e})},61562:(n,t,r)=>{r.d(t,{A:()=>a,h:()=>o});var e=r(19639),i=r(57113);const o=Symbol("implicit");function a(){var n=new e.B,t=[],r=[],u=o;function l(e){let i=n.get(e);if(void 0===i){if(u!==o)return u;n.set(e,i=t.push(e)-1)}return r[i%r.length]}return l.domain=function(r){if(!arguments.length)return t.slice();t=[],n=new e.B;for(const e of r)n.has(e)||n.set(e,t.push(e)-1);return l},l.range=function(n){return arguments.length?(r=Array.from(n),l):r.slice()},l.unknown=function(n){return arguments.length?(u=n,l):u},l.copy=function(){return a(t,r).unknown(u)},i.C.apply(l,arguments),l}},52509:(n,t,r)=>{r.d(t,{Ay:()=>c,DS:()=>s,RZ:()=>h});var e=r(53142),i=r(95507),o=r(57113);function a(n){return function(t){return t<0?-Math.pow(-t,n):Math.pow(t,n)}}function u(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function l(n){return n<0?-n*n:n*n}function s(n){var t=n(i.D_,i.D_),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?n(i.D_,i.D_):.5===r?n(u,l):n(a(r),a(1/r)):r},(0,e.C)(t)}function c(){var n=s((0,i.Gu)());return n.copy=function(){return(0,i.C)(n,c()).exponent(n.exponent())},o.C.apply(n,arguments),n}function h(){return c.apply(null,arguments).exponent(.5)}},39622:(n,t,r)=>{r.d(t,{A:()=>u});var e=r(8410),i=r(66384),o=r(25638),a=r(57113);function u(){var n,t=[],r=[],l=[];function s(){var n=0,i=Math.max(1,r.length);for(l=new Array(i-1);++n<i;)l[n-1]=(0,e.Z4)(t,n/i);return c}function c(t){return null==t||isNaN(t=+t)?n:r[(0,i.Ay)(l,t)]}return c.invertExtent=function(n){var e=r.indexOf(n);return e<0?[NaN,NaN]:[e>0?l[e-1]:t[0],e<l.length?l[e]:t[t.length-1]]},c.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let r of n)null==r||isNaN(r=+r)||t.push(r);return t.sort(o.A),s()},c.range=function(n){return arguments.length?(r=Array.from(n),s()):r.slice()},c.unknown=function(t){return arguments.length?(n=t,c):n},c.quantiles=function(){return l.slice()},c.copy=function(){return u().domain(t).range(r).unknown(n)},a.C.apply(c,arguments)}},57892:(n,t,r)=>{r.d(t,{A:()=>a});var e=r(66384),i=r(53142),o=r(57113);function a(){var n,t=0,r=1,u=1,l=[.5],s=[0,1];function c(t){return null!=t&&t<=t?s[(0,e.Ay)(l,t,0,u)]:n}function h(){var n=-1;for(l=new Array(u);++n<u;)l[n]=((n+1)*r-(n-u)*t)/(u+1);return c}return c.domain=function(n){return arguments.length?([t,r]=n,t=+t,r=+r,h()):[t,r]},c.range=function(n){return arguments.length?(u=(s=Array.from(n)).length-1,h()):s.slice()},c.invertExtent=function(n){var e=s.indexOf(n);return e<0?[NaN,NaN]:e<1?[t,l[0]]:e>=u?[l[u-1],r]:[l[e-1],l[e]]},c.unknown=function(t){return arguments.length?(n=t,c):c},c.thresholds=function(){return l.slice()},c.copy=function(){return a().domain([t,r]).range(s).unknown(n)},o.C.apply((0,i.C)(c),arguments)}},31708:(n,t,r)=>{r.d(t,{A:()=>o});var e=r(66384),i=r(57113);function o(){var n,t=[.5],r=[0,1],a=1;function u(i){return null!=i&&i<=i?r[(0,e.Ay)(t,i,0,a)]:n}return u.domain=function(n){return arguments.length?(t=Array.from(n),a=Math.min(t.length,r.length-1),u):t.slice()},u.range=function(n){return arguments.length?(r=Array.from(n),a=Math.min(t.length,r.length-1),u):r.slice()},u.invertExtent=function(n){var e=r.indexOf(n);return[t[e-1],t[e]]},u.unknown=function(t){return arguments.length?(n=t,u):n},u.copy=function(){return o().domain(t).range(r).unknown(n)},i.C.apply(u,arguments)}},10545:(n,t,r)=>{r.d(t,{A:()=>s});var e=r(17698),i=r(46047),o=r(16038),a=r(55453),u=r(96324),l=r(52102);function s(n,t,r,s){var c,h=(0,e.sG)(n,t,r);switch((s=(0,i.A)(null==s?",f":s)).type){case"s":var f=Math.max(Math.abs(n),Math.abs(t));return null!=s.precision||isNaN(c=(0,o.A)(h,f))||(s.precision=c),(0,a.s)(s,f);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN(c=(0,u.A)(h,Math.max(Math.abs(n),Math.abs(t))))||(s.precision=c-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(c=(0,l.A)(h))||(s.precision=c-2*("%"===s.type))}return(0,a.GP)(s)}},19639:(n,t,r)=>{r.d(t,{B:()=>e,v:()=>i});class e extends Map{constructor(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=n)for(const[r,e]of n)this.set(r,e)}get(n){return super.get(o(this,n))}has(n){return super.has(o(this,n))}set(n,t){return super.set(a(this,n),t)}delete(n){return super.delete(u(this,n))}}class i extends Set{constructor(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=n)for(const r of n)this.add(r)}has(n){return super.has(o(this,n))}add(n){return super.add(a(this,n))}delete(n){return super.delete(u(this,n))}}function o(n,t){let{_intern:r,_key:e}=n;const i=e(t);return r.has(i)?r.get(i):t}function a(n,t){let{_intern:r,_key:e}=n;const i=e(t);return r.has(i)?r.get(i):(r.set(i,t),t)}function u(n,t){let{_intern:r,_key:e}=n;const i=e(t);return r.has(i)&&(t=r.get(i),r.delete(i)),t}function l(n){return null!==n&&"object"===typeof n?n.valueOf():n}}}]);
@@ -1,5 +0,0 @@
1
- (self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[5618],{68035:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});r(58878);var n=r(25571),o=r(78286),i=r(89653);const a=r(60667).i7`
2
- 50% {
3
- color: rgba(0, 0, 0, 0);
4
- }
5
- `,l=(0,i.A)("span",{target:"edlqvik0"})((e=>{let{includeDot:t,shouldBlink:r,theme:n}=e;return{...t?{"&::before":{opacity:1,content:'"\u2022"',animation:"none",color:n.colors.gray,margin:`0 ${n.spacing.twoXS}`}}:{},...r?{color:n.colors.red,animationName:`${a}`,animationDuration:"0.5s",animationIterationCount:5}:{}}}),"");var s=r(90782);const u=e=>{let{dirty:t,value:r,inForm:i,maxLength:a,className:u,type:c="single",allowEnterToSubmit:d=!0}=e;const f=[],p=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];f.push((0,s.jsx)(l,{includeDot:f.length>0,shouldBlink:t,children:e},f.length))};if(d){const e=i?"submit form":"apply";if("multiline"===c){p(`Press ${(0,n.u_)()?"\u2318":"Ctrl"}+Enter to ${e}`)}else"single"===c&&p(`Press Enter to ${e}`)}return a&&("chat"!==c||t)&&p(`${r.length}/${a}`,t&&r.length>=a),(0,s.jsx)(o.tp,{"data-testid":"InputInstructions",className:u,children:f})}},34752:(e,t,r)=>{"use strict";r.d(t,{X:()=>a,o:()=>i});var n=r(58878),o=r(25571);class i{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,r){(0,o.se)(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,o._L)(t)&&(this.formClearListener=e.addFormClearedListener(t,r),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function a(e){let{element:t,widgetMgr:r,onFormCleared:i}=e;(0,n.useEffect)((()=>{if(!(0,o._L)(t.formId))return;const e=r.addFormClearedListener(t.formId,i);return()=>{e.disconnect()}}),[t,r,i])}},25618:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var n=r(58878),o=r(94928),i=r(8151),a=r(32698),l=r.n(a),s=r(68035),u=r(70474),c=r(78286),d=r(93480),f=r(997),p=r(25571),m=r(3101),g=r(90782);const h=(e,t)=>{var r,n;return null!==(r=null!==(n=e.getStringValue(t))&&void 0!==n?n:t.default)&&void 0!==r?r:null},y=e=>{var t;return null!==(t=e.default)&&void 0!==t?t:null},b=e=>{var t;return null!==(t=e.value)&&void 0!==t?t:null},v=(e,t,r,n)=>{t.setStringValue(e,r.value,{fromUi:r.fromUi},n)},S=e=>{var t,r;let{disabled:a,element:S,widgetMgr:w,fragmentId:O,width:C}=e;const F=(0,n.useRef)(l()("text_area_")).current,[j,x]=(0,n.useState)(null!==(t=h(w,S))&&void 0!==t?t:null),[I,P]=(0,n.useState)(!1),[T,W]=(0,n.useState)(!1),E=(0,n.useCallback)((()=>{var e;x(null!==(e=S.default)&&void 0!==e?e:null),P(!0)}),[S]),[,M]=(0,m.t)({getStateFromWidgetMgr:h,getDefaultStateFromProto:y,getCurrStateFromProto:b,updateWidgetMgrState:v,element:S,widgetMgr:w,fragmentId:O,onFormCleared:E}),$=(0,i.u)(),k=(0,n.useCallback)((e=>{let{fromUi:t}=e;M({value:j,fromUi:t}),P(!1)}),[j,M]),_=(0,n.useCallback)((()=>{I&&k({fromUi:!0}),W(!1)}),[I,k]),A=(0,n.useCallback)((()=>{W(!0)}),[]),D=(0,n.useCallback)((e=>{const{value:t}=e.target,{maxChars:r}=S;0!==r&&t.length>r||(x(t),P(!0))}),[S]),R=(0,n.useCallback)((e=>{const{metaKey:t,ctrlKey:r}=e,{formId:n}=S,o=w.allowFormEnterToSubmit(n);(e=>{var t;const{keyCode:r,key:n}=e;return("Enter"===n||13===r||10===r)&&!(!0===(null===(t=e.nativeEvent)||void 0===t?void 0:t.isComposing))})(e)&&(r||t)&&I&&(e.preventDefault(),k({fromUi:!0}),o&&w.submitForm(n,O))}),[S,w,I,k,O]),L={width:C},{height:z,placeholder:B,formId:U}=S,N=(0,p.Ml)({formId:U})?w.allowFormEnterToSubmit(U):I,K=T&&C>$.breakpoints.hideWidgetDetails,V=z&&z<95?`${z}px`:"95px";return(0,g.jsxs)("div",{className:"stTextArea","data-testid":"stTextArea",style:L,children:[(0,g.jsx)(u.L,{label:S.label,disabled:a,labelVisibility:(0,p.yv)(null===(r=S.labelVisibility)||void 0===r?void 0:r.value),htmlFor:F,children:S.help&&(0,g.jsx)(c.j,{children:(0,g.jsx)(d.A,{content:S.help,placement:f.W.TOP_RIGHT})})}),(0,g.jsx)(o.A,{value:null!==j&&void 0!==j?j:"",placeholder:B,onBlur:_,onFocus:A,onChange:D,onKeyDown:R,"aria-label":S.label,disabled:a,id:F,overrides:{Input:{style:{lineHeight:$.lineHeights.inputWidget,height:z?`${z}px`:"",minHeight:V,resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:$.spacing.lg,paddingLeft:$.spacing.lg,paddingBottom:$.spacing.lg,paddingTop:$.spacing.lg}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:{borderLeftWidth:$.sizes.borderWidth,borderRightWidth:$.sizes.borderWidth,borderTopWidth:$.sizes.borderWidth,borderBottomWidth:$.sizes.borderWidth}}}}),K&&(0,g.jsx)(s.A,{dirty:I,value:null!==j&&void 0!==j?j:"",maxLength:S.maxChars,type:"multiline",inForm:(0,p.Ml)({formId:U}),allowEnterToSubmit:N})]})}},3101:(e,t,r)=>{"use strict";r.d(t,{_:()=>a,t:()=>l});var n=r(58878),o=r(34752),i=r(25571);function a(e){let{getStateFromWidgetMgr:t,getDefaultState:r,updateWidgetMgrState:a,element:l,widgetMgr:s,fragmentId:u,onFormCleared:c}=e;const[d,f]=(0,n.useState)((()=>{var e;return null!==(e=t(s,l))&&void 0!==e?e:r(s,l)})),[p,m]=(0,n.useState)({value:d,fromUi:!1});(0,n.useEffect)((()=>{(0,i.hX)(p)||(m(null),f(p.value),a(l,s,p,u))}),[p,a,l,s,u]);const g=(0,n.useCallback)((()=>{m({value:r(s,l),fromUi:!0}),null===c||void 0===c||c()}),[m,l,r,s,c]);return(0,o.X)({widgetMgr:s,element:l,onFormCleared:g}),[d,m]}function l(e){let{getStateFromWidgetMgr:t,getDefaultStateFromProto:r,getCurrStateFromProto:o,updateWidgetMgrState:i,element:l,widgetMgr:s,fragmentId:u,onFormCleared:c}=e;const d=(0,n.useCallback)(((e,t)=>r(t)),[r]),[f,p]=a({getStateFromWidgetMgr:t,getDefaultState:d,updateWidgetMgrState:i,element:l,widgetMgr:s,fragmentId:u,onFormCleared:c});return(0,n.useEffect)((()=>{l.setValue&&(l.setValue=!1,p({value:o(l),fromUi:!1}))}),[l,o,p]),[f,p]}},94928:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(58878),o=r(35331),i=r(18648),a=r(92850),l=r(57224),s=r(81301);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=(0,l.I4)("div",(function(e){return c(c({},(0,s.vt)(c(c({$positive:!1},e),{},{$hasIconTrailing:!1}))),{},{width:e.$resize?"fit-content":"100%"})}));f.displayName="StyledTextAreaRoot",f.displayName="StyledTextAreaRoot";var p=(0,l.I4)("div",(function(e){return(0,s.EO)(c({$positive:!1},e))}));p.displayName="StyledTextareaContainer",p.displayName="StyledTextareaContainer";var m=(0,l.I4)("textarea",(function(e){return c(c({},(0,s.n)(e)),{},{resize:e.$resize||"none"})}));function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(s){l=!0,o=s}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}(e,t)||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 b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function w(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=C(e);if(t){var o=C(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===g(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}(this,r)}}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function F(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}m.displayName="StyledTextarea",m.displayName="StyledTextarea";var j=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(u,e);var t,r,l,s=w(u);function u(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return F(O(e=s.call.apply(s,[this].concat(r))),"state",{isFocused:e.props.autoFocus||!1}),F(O(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t)})),F(O(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t)})),e}return t=u,(r=[{key:"render",value:function(){var e=this.props.overrides,t=void 0===e?{}:e,r=y((0,o._O)(t.Root,f),2),l=r[0],s=r[1],u=(0,o.Qp)({Input:{component:m},InputContainer:{component:p}},t);return n.createElement(l,h({"data-baseweb":"textarea",$isFocused:this.state.isFocused,$isReadOnly:this.props.readOnly,$disabled:this.props.disabled,$error:this.props.error,$positive:this.props.positive,$required:this.props.required,$resize:this.props.resize},s),n.createElement(i.A,h({},this.props,{type:a.GT.textarea,overrides:u,onFocus:this.onFocus,onBlur:this.onBlur,resize:this.props.resize})))}}])&&v(t.prototype,r),l&&v(t,l),Object.defineProperty(t,"prototype",{writable:!1}),u}(n.Component);F(j,"defaultProps",{autoFocus:!1,disabled:!1,readOnly:!1,error:!1,name:"",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},overrides:{},placeholder:"",required:!1,rows:3,size:a.SK.default});const x=j},32698:(e,t,r)=>{var n=r(30136),o=0;e.exports=function(e){var t=++o;return n(e)+t}}}]);