Release v27.003 (from d1c8c1a5)

This commit is contained in:
jenkins
2024-03-14 17:06:28 +00:00
parent 5b960a8ec3
commit 2099f2689c
16 changed files with 638 additions and 560 deletions

View File

@@ -5,6 +5,23 @@
<!-- markdownlint-disable no-inline-html -->
<!-- markdownlint-disable code-block-style -->
## Version 27.003
*Date: Thu Mar 14 2024*
**Improvements**
- **Added the resetLayoutSizes method.** Use [`resetLayoutSizes`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#resetlayoutsizes) to reset the sizes of all charts within a multiple-chart layout back to their initial default values. `Trading Platform Only`
- **Added the unloadUnusedCharts method.** The [`unloadUnusedCharts`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#unloadunusedcharts) method deletes non-visible charts from a multiple-chart layout. Use this method to
prevent the library's inherent behavior to restore previously displayed charts instead of creating new
charts when changing layouts. `Trading Platform Only`
**Bug Fixes**
- **Displaying volume indicator on chart load when visible_plots_set is not specified.** The chart will now correctly display the volume indicator if the `create_volume_indicator_by_default` featureset is enabled even if the symbols [LibrarySymbolInfo](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo) doesn't specify the optional [`visible_plots_set`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#visible_plots_set) property.
- **Prioritise widget constructor symbol over saved state.** The [`symbol`](../api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#symbol) property in the widget constructor will now have priority over symbols loaded from saved chart states when using [`saved_data`](../api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#saved_data) or [`load_last_chart`](../api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#load_last_chart). Fixes [#7922](https://github.com/tradingview/charting_library/issues/7922) [#8473](https://github.com/tradingview/charting_library/issues/8473) [#7926](https://github.com/tradingview/charting_library/issues/7926) [#8168](https://github.com/tradingview/charting_library/issues/8168)
- **Fixed an issue where the time_frames description was ignored.**
## Version 27.002
*Date: Thu Feb 22 2024*

View File

@@ -13,7 +13,7 @@ const{definition:{id:t,properties:{checked:n,option:i,disabled:r,visible:s},titl
className:Ze.rangePointerWrap},o.createElement("div",{className:c(Ze.pointer,s&&Ze.dragged),style:{[h]:100*p+"%"}}))))}_dragSubscribe(){const e=(0,g.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const e=(0,g.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))}_getNewPosition(e){const{min:t,max:n}=this.props,o=n-t,i=(0,g.ensureNotNull)(this._container),r=(0,g.ensureNotNull)(this._pointer),a=i.getBoundingClientRect(),l=r.offsetWidth;let s=e.clientX-l/2-a.left;return(0,$e.isRtl)()&&(s=a.width-s-l),(0,D.clamp)(s/(a.width-l),0,1)*o+t}_detectPointerMode(e){const{from:t,to:n}=this.props,{pointerDragMode:o}=this.state;if(0!==o)return o;const i=this._getNewPosition(e),r=Math.abs(t-i),a=Math.abs(n-i),l=r===a?i<t?1:2:r<a?1:2;return this.setState({pointerDragMode:l}),l}_handleChange(e,t){const{from:n,to:o,onChange:i}=this.props;e===n&&t===o||i(e,t)}}var Ke=n(90692),qe=n(66586);function Qe(e){const{definition:{id:t,properties:{checked:n,disabled:i,from:r,to:s},title:c,solutionId:u,max:p,min:h},offset:m,disabled:f}=e,[g]=(0,a.useDefinitionProperty)({property:n,defaultValue:!0}),[b]=(0,a.useDefinitionProperty)({property:i,defaultValue:!1}),E=(0,Q.useWatchedValueReadonly)({watchedValue:h,defaultValue:void 0}),D=(0,Q.useWatchedValueReadonly)({watchedValue:p,defaultValue:void 0}),[_,w]=(0,a.useDefinitionProperty)({property:r}),[C,x]=(0,a.useDefinitionProperty)({property:s}),P=v(_)||v(C),T=y(P?"mixed":_,(function(e){if(w(e),v(I)){const e=D||100;B(e),x(e)}})),[V,N,k]=T,M=y(P?"mixed":C,(function(e){if(x(e),v(V)){const e=E||0;N(e),w(e)}})),[I,B,F]=M,A=v(V)||v(I),L=f||v(g)||!g,R={flushed:!1};return o.createElement(l.CommonSection,{id:t,offset:m,checked:n,title:c,disabled:f||b},o.createElement(Z.CellWrap,{className:qe.range},function(){if(!E||!D)return null;return o.createElement(Ke.MatchMedia,{rule:"screen and (max-width: 460px)"},(e=>o.createElement(K,{breakPoint:"Medium"},o.createElement(o.Fragment,null,o.createElement("span",{className:qe.valueInput},o.createElement(S,{className:qe.input,sharedBuffer:T,min:E,max:v(I)?D:I,step:1,disabled:L,name:"from-input",mode:"integer",defaultValue:E}),e?o.createElement("span",{className:qe.rangeSlider},"—"):o.createElement(je,{className:d()(qe.rangeSlider,A&&qe.rangeSlider_mixed),from:A?E:V,to:A?D:I,min:E,max:D,onChange:z,onCommit:W,disabled:L}))),o.createElement(o.Fragment,null,o.createElement("span",{className:qe.valueInput},o.createElement(S,{className:qe.input,sharedBuffer:M,min:v(V)?E:V,max:D,step:1,disabled:L,name:"to-input",mode:"integer",defaultValue:D}),u&&!1)))))}()));function z(e,t){N(Math.round(e)),B(Math.round(t))}function W(){R.flushed||(k(),F(),R.flushed=!0)}}var et=n(86067),tt=n(53424),nt=n(54970);function ot(e){const{definitions:t,name:n,offset:i}=e,r=d()(nt.cell,nt.fragmentCell,t.some((e=>void 0!==e.solutionId))&&nt.largeWidth)
;return o.createElement(Ve.PropertyTable.Row,null,o.createElement(Ve.PropertyTable.Cell,{className:r,offset:i,placement:"first",verticalAlign:"adaptive",colSpan:2,"data-section-name":n,checkableTitle:!0},t.map((e=>o.createElement("div",{className:nt.item,key:e.id,"data-section-name":e.id},o.createElement(rt,{definition:e}))))))}function it(e){const{definition:t,offset:n}=e;return o.createElement(Ve.PropertyTable.Row,null,o.createElement(Ve.PropertyTable.Cell,{className:nt.cell,offset:n,placement:"first",verticalAlign:"adaptive",colSpan:2,checkableTitle:!0},o.createElement(rt,{definition:t})))}function rt(e){const{definition:{id:t,properties:{disabled:n,checked:i,color:r,level:l,width:s,style:c},solutionId:p,title:m,widthValues:f,styleValues:g}}=e,[v]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),[y]=(0,a.useDefinitionProperty)({property:n,defaultValue:!1}),b=y||!v;return o.createElement(o.Fragment,null,o.createElement(tt.CheckableTitle,{name:`is-enabled-${t}`,className:d()(m&&nt.withTitle),title:m&&o.createElement("span",{className:nt.title},m),property:i,disabled:y}),l&&o.createElement(C,{className:d()(nt.input,nt.control),property:l,disabled:b}),r&&o.createElement(R,{className:nt.control,disabled:b,color:r,thickness:s,thicknessItems:f}),c&&o.createElement(h,{id:(0,u.createDomId)(t,"leveled-line-style-select"),className:nt.control,property:c,disabled:b,allowedLineStyles:g}),p&&!1)}var at=n(27394);function lt(e){const{definition:{id:t,properties:{option1:n,option2:i,checked:r,disabled:s},title:c,solutionId:d,optionsItems1:p,optionsItems2:h},offset:m}=e,[f]=(0,a.useDefinitionProperty)({property:r,defaultValue:!0}),[g]=(0,a.useDefinitionProperty)({property:s,defaultValue:!1}),v=e.disabled||!f;return o.createElement(l.CommonSection,{id:t,offset:m,checked:r,title:c,solutionId:d,disabled:e.disabled||g},o.createElement(K,{className:at.twoOptions},o.createElement(re,{id:(0,u.createDomId)(t,"two-options-dropdown-1"),"data-name":"two-options-dropdown-1",className:at.dropdown,menuClassName:at.menu,property:n,disabled:v,options:p}),o.createElement(re,{id:(0,u.createDomId)(t,"two-options-dropdown-2"),"data-name":"two-options-dropdown-2",className:at.dropdown,menuClassName:at.menu,property:i,disabled:v,options:h})))}var st=n(22332);function ct(e){const{definition:{id:t,properties:{color1:n,color2:i,option:r},options:a,color1Visible:s,color2Visible:c,title:p,noAlpha1:h,noAlpha2:m,solutionId:f},offset:g}=e,v=(0,Q.useWatchedValueReadonly)({watchedValue:s,defaultValue:!1}),y=(0,Q.useWatchedValueReadonly)({watchedValue:c,defaultValue:!1}),b=(0,o.useContext)(ye.ControlCustomWidthContext);return o.createElement(l.CommonSection,{id:t,offset:g,solutionId:f,title:p},o.createElement(Z.CellWrap,{className:st.optionalTwoColors},o.createElement(K,null,o.createElement(re,{id:(0,u.createDomId)(t,"options-dropdown"),"data-name":"options-dropdown",className:d()(st.dropdown,b[t]&&st[b[t]]),menuClassName:d()(st.dropdownMenu,b[t]&&st[b[t]]),property:r,options:a}),o.createElement(o.Fragment,null,v&&E(n,h),y&&E(i,m)))));function E(e,t){
return o.createElement("span",{className:st.colorPicker},o.createElement(R,{color:e,noAlpha:t}))}}var dt=n(39828),ut=n(22497);function pt(e){const{source:t,inputs:n,model:i,inputsTabProperty:r,studyMetaInfo:a}=e.definition;return o.createElement(dt.InputsTabContent,{className:ut.withoutPadding,property:r,model:i,study:t,studyMetaInfo:a,inputs:n})}var ht=n(56840),mt=n(38297),ft=n(83682),gt=n(173);var vt=n(20520),yt=n(37558),bt=n(41590),Et=n(27317),Dt=n(40173);function _t(e){!function(e,t){(0,o.useEffect)((()=>{const n=t||document;return n.addEventListener("scroll",e),()=>n.removeEventListener("scroll",e)}),[e])}(e,document)}var wt=n(12811),Ct=n(24437),St=n(38446);function xt(e){const{children:t,highlight:n,disabled:i,reference:r,...a}=e,l=n?"primary":"default";return o.createElement("div",{...a,ref:r,className:d()(St.wrapper,St[`intent-${l}`],St["border-thin"],St["size-medium"],n&&St.highlight,n&&St.focused,i&&St.disabled),"data-role":"button"},o.createElement("div",{className:d()(St.childrenContainer,i&&St.disabled)},t),n&&o.createElement("span",{className:St.shadow}))}var Pt=n(64104);const Tt=()=>null,Vt=(0,Dt.mergeThemes)(Et.DEFAULT_MENU_THEME,{menuBox:Pt.menuBox});function Nt(e){const{value:t,disabled:n,onSelect:i}=e,r=(0,o.useRef)(null),{current:a}=(0,o.useRef)(ht.getJSON("RecentlyUsedEmojis",[t])),[l,s]=(0,o.useState)(a),[c,d]=(0,o.useState)(!1),u=(0,o.useCallback)((()=>d(!1)),[]);_t(u);const p=(0,o.useCallback)((e=>{const t=Array.from(new Set([e,...l])).slice(0,18);ht.setJSON("RecentlyUsedEmojis",t),s(t),i(e),u()}),[l,i]),h=(m=l,(0,o.useMemo)((()=>(gt.emojiGroups[0].emojis=m,[...gt.emojiGroups])),[m]));var m;return o.createElement(o.Fragment,null,o.createElement(xt,{reference:r,highlight:c,disabled:n,"data-name":"emoji-picker"},o.createElement(ft.EmojiWrap,{emoji:t,onClick:function(){n||d(!0)}})),o.createElement(Ke.MatchMedia,{rule:Ct.DialogBreakpoints.TabletSmall},(e=>c&&o.createElement(yt.DrawerManager,null,e?o.createElement(bt.Drawer,{className:Pt.drawer,position:"Bottom",onClose:u},o.createElement(mt.EmojiList,{emojis:h,onSelect:p,height:378})):o.createElement(vt.PopupMenu,{theme:Vt,isOpened:!0,position:(0,wt.getPopupPositioner)(r.current,{horizontalDropDirection:wt.HorizontalDropDirection.FromLeftToRight,horizontalAttachEdge:wt.HorizontalAttachEdge.Left}),onClickOutside:u,onClose:Tt},o.createElement(mt.EmojiList,{className:Pt.desktopSize,emojis:h,onSelect:p,height:378}))))))}var kt=n(35199);function Mt(e){const{definition:{id:t,title:n,properties:i,solutionId:r},offset:s}=e,{checked:c,emoji:d,backgroundColor:u}=i,[p]=(0,a.useDefinitionProperty)({property:c,defaultValue:!1}),[h,m]=(0,a.useDefinitionProperty)({property:d,defaultValue:"🙂"}),[f,g]=(0,a.useDefinitionProperty)({property:u,defaultValue:ue.colorsPalette["color-tv-blue-a600"]}),[v]=(0,a.useDefinitionProperty)({property:i.disabled,defaultValue:!1}),y=e.disabled||!p;return o.createElement(l.CommonSection,{id:t,offset:s,checked:c,title:n,solutionId:r,disabled:e.disabled||v},o.createElement(Nt,{value:h,disabled:y,onSelect:m
}),o.createElement(A.ColorSelect,{className:kt.colorSelect,disabled:y,color:function(){if("mixed"===f)return f;return(0,F.rgbToHexString)((0,F.parseRgb)(f))}(),opacity:f&&"mixed"!==f?(0,F.parseRgba)(f)[3]:void 0,onColorChange:function(e){const t=f&&"mixed"!==f?(0,L.alphaToTransparency)((0,F.parseRgba)(f)[3]):0;g((0,L.generateColor)(String(e),t,!0))},onOpacityChange:function(e){g((0,L.generateColor)(f,(0,L.alphaToTransparency)(e),!0))}}))}function It(e){const{definition:{id:t,properties:{disabled:n,visible:i},childrenDefinitions:r,title:s},offset:c}=e,[d]=(0,a.useDefinitionProperty)({property:n,defaultValue:!1}),[u]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),p=e.disabled;return u?o.createElement(o.Fragment,null,s&&o.createElement(l.CommonSection,{id:t,offset:c,title:s,disabled:e.disabled||d}),r.map((e=>o.createElement(tn,{key:e.id,disabled:p,definition:e,offset:Boolean(s)})))):null}var Bt=n(38528),Ft=n(36104),At=n(3343),Lt=n(26597),Rt=n(59054),zt=n(50238),Wt=n(16838),Gt=n(16396),Ht=n(32389),Ot=n(54583);function Ut(e){const{isDisabled:t,hint:n,label:i,isChecked:r,checkboxClassName:a,labelClassName:l,indeterminate:s,isActive:d,checkboxTabIndex:u,checkboxReference:p,checkboxDataRole:h,...m}=e;return o.createElement(Gt.PopupMenuItem,{...m,isDisabled:t,shortcut:n,dontClosePopup:!0,labelRowClassName:l,label:o.createElement(Ht.Checkbox,{reference:p,disabled:t,label:i,checked:r,indeterminate:s,className:c(Ot.checkbox,a),tabIndex:u,"data-role":h})})}var Jt=n(81091);function Yt(e){const[t,n]=(0,zt.useRovingTabindexElement)(null);return o.createElement(Ut,{...e,className:Jt.item,checkboxClassName:Jt.checkbox,checkboxReference:t,checkboxTabIndex:n,checkboxDataRole:Wt.PLATFORM_ACCESSIBILITY_ENABLED?"menuitem":void 0,onKeyDown:function(e){if(!Wt.PLATFORM_ACCESSIBILITY_ENABLED)return;const n=(0,At.hashFromEvent)(e);13!==n&&32!==n||(e.preventDefault(),t.current instanceof HTMLElement&&t.current.click())},"aria-disabled":Wt.PLATFORM_ACCESSIBILITY_ENABLED&&e.isDisabled||void 0})}var Xt=n(81261),$t=n(58516);function Zt(e){return!e.readonly&&!e.disabled}function jt(e){const{selectedItems:t,placeholder:n}=e;if(!t.length)return o.createElement("span",null,n);const i=t.map((e=>{var t,n,o;return null!==(n=null!==(t=e.selectedContent)&&void 0!==t?t:e.content)&&void 0!==n?n:null===(o=e.value)||void 0===o?void 0:o.toString()})).reduce(((e,t,n)=>t?(e.push(o.createElement("span",{key:n,className:$t.contentPart},t)),e.push(o.createElement("span",{key:`separator_${n}`},","," ")),e):e),[]);return i.length&&i.splice(-1),o.createElement("span",{className:$t.btnContent},i)}function Kt(e,t){
}),o.createElement(A.ColorSelect,{className:kt.colorSelect,disabled:y,color:function(){if("mixed"===f)return f;return(0,F.rgbToHexString)((0,F.parseRgb)(f))}(),opacity:f&&"mixed"!==f?(0,F.parseRgba)(f)[3]:void 0,onColorChange:function(e){const t=f&&"mixed"!==f?(0,L.alphaToTransparency)((0,F.parseRgba)(f)[3]):0;g((0,L.generateColor)(String(e),t,!0))},onOpacityChange:function(e){g((0,L.generateColor)(f,(0,L.alphaToTransparency)(e),!0))}}))}function It(e){const{definition:{id:t,properties:{disabled:n,visible:i},childrenDefinitions:r,title:s},offset:c}=e,[d]=(0,a.useDefinitionProperty)({property:n,defaultValue:!1}),[u]=(0,a.useDefinitionProperty)({property:i,defaultValue:!0}),p=e.disabled;return u?o.createElement(o.Fragment,null,s&&o.createElement(l.CommonSection,{id:t,offset:c,title:s,disabled:e.disabled||d}),r.map((e=>o.createElement(tn,{key:e.id,disabled:p,definition:e,offset:Boolean(s)})))):null}var Bt=n(38528),Ft=n(36104),At=n(3343),Lt=n(26597),Rt=n(59054),zt=n(50238),Wt=n(16838),Gt=n(16396),Ht=n(15294),Ot=n(54583);function Ut(e){const{isDisabled:t,hint:n,label:i,isChecked:r,checkboxClassName:a,labelClassName:l,indeterminate:s,isActive:d,checkboxTabIndex:u,checkboxReference:p,checkboxDataRole:h,...m}=e;return o.createElement(Gt.PopupMenuItem,{...m,isDisabled:t,shortcut:n,dontClosePopup:!0,labelRowClassName:l,label:o.createElement(Ht.Checkbox,{reference:p,disabled:t,label:i,checked:r,indeterminate:s,className:c(Ot.checkbox,a),tabIndex:u,"data-role":h})})}var Jt=n(81091);function Yt(e){const[t,n]=(0,zt.useRovingTabindexElement)(null);return o.createElement(Ut,{...e,className:Jt.item,checkboxClassName:Jt.checkbox,checkboxReference:t,checkboxTabIndex:n,checkboxDataRole:Wt.PLATFORM_ACCESSIBILITY_ENABLED?"menuitem":void 0,onKeyDown:function(e){if(!Wt.PLATFORM_ACCESSIBILITY_ENABLED)return;const n=(0,At.hashFromEvent)(e);13!==n&&32!==n||(e.preventDefault(),t.current instanceof HTMLElement&&t.current.click())},"aria-disabled":Wt.PLATFORM_ACCESSIBILITY_ENABLED&&e.isDisabled||void 0})}var Xt=n(81261),$t=n(58516);function Zt(e){return!e.readonly&&!e.disabled}function jt(e){const{selectedItems:t,placeholder:n}=e;if(!t.length)return o.createElement("span",null,n);const i=t.map((e=>{var t,n,o;return null!==(n=null!==(t=e.selectedContent)&&void 0!==t?t:e.content)&&void 0!==n?n:null===(o=e.value)||void 0===o?void 0:o.toString()})).reduce(((e,t,n)=>t?(e.push(o.createElement("span",{key:n,className:$t.contentPart},t)),e.push(o.createElement("span",{key:`separator_${n}`},","," ")),e):e),[]);return i.length&&i.splice(-1),o.createElement("span",{className:$t.btnContent},i)}function Kt(e,t){
const{id:n,items:i,menuClassName:r,menuItemClassName:a,tabIndex:l,disabled:s,highlight:c,intent:d,hideArrowButton:p,placeholder:h,value:m,"aria-labelledby":f,onFocus:g,onBlur:v,onClick:y,onChange:b,onKeyDown:E,openMenuOnEnter:D=!0,"aria-describedby":_,"aria-invalid":w,...C}=e,{listboxId:S,isOpened:x,isFocused:P,buttonTabIndex:T,highlight:V,intent:N,open:k,onOpen:M,close:I,toggle:B,buttonFocusBindings:F,onButtonClick:A,buttonRef:L,listboxRef:R,listboxTabIndex:z,buttonAria:W}=(0,Ft.useControlDisclosure)({id:n,disabled:s,buttonTabIndex:l,intent:d,highlight:c,onFocus:g,onBlur:v,onClick:y}),G=i.filter(Zt).filter((e=>m.some((t=>e.value===t)))),H=(0,u.joinDomIds)(f,n),O=H.length>0?H:void 0,U=(0,o.useMemo)((()=>({role:"listbox","aria-labelledby":f})),[f]),J=(0,Lt.useKeyboardToggle)(B,x||D),Y=(0,Lt.useKeyboardOpen)(x,k),X=(0,Lt.useKeyboardEventHandler)([J,Y]),$=(0,Bt.useMergedRefs)([L,t]);return o.createElement(Rt.ControlDisclosureView,{...C,...W,...F,id:n,role:"button",tabIndex:T,"aria-owns":W["aria-controls"],"aria-haspopup":"listbox","aria-labelledby":O,disabled:s,hideArrowButton:p,isFocused:P,isOpened:x,highlight:V,intent:N,ref:$,onClick:A,onClose:I,onKeyDown:X,onOpen:M,listboxTabIndex:z,listboxId:S,listboxClassName:r,listboxAria:U,"aria-describedby":_,"aria-invalid":w,listboxReference:R,onListboxKeyDown:function(e){switch((0,At.hashFromEvent)(e)){case 27:case 9:return void(x&&(e.preventDefault(),I()))}(0,Xt.handleAccessibleMenuKeyDown)(e)},onListboxFocus:e=>(0,Xt.handleAccessibleMenuFocus)(e,L),buttonChildren:o.createElement(jt,{selectedItems:null!=G?G:null,placeholder:h})},i.map(((e,t)=>{var i,r,l;if(e.readonly)return o.createElement(o.Fragment,{key:`readonly_item_${t}`},e.content);const s=function(e,t){var n;return null!==(n=null==t?void 0:t.id)&&void 0!==n?n:(0,u.createDomId)(e,"item",null==t?void 0:t.value)}(n,e);return o.createElement(Yt,{key:s,id:s,className:a,"aria-selected":m===e.value,isChecked:m.includes(e.value),label:null!==(l=null!==(i=e.content)&&void 0!==i?i:null===(r=e.value)||void 0===r?void 0:r.toString())&&void 0!==l?l:"",onClick:()=>function(e){const t=new Set(m);t.has(e)?t.delete(e):t.add(e);b(Array.from(t))}(e.value),isDisabled:e.disabled})})))}Kt.displayName="Multiselect";const qt=o.forwardRef(Kt);var Qt=n(85357);function en(e){const{definition:t}=e,{checkableListOptions:r,definitions:a}=t,[l,s]=(0,o.useState)(p());(0,o.useEffect)((()=>{const e={},t=()=>{const e=p();s(e)};return t(),r.forEach((n=>{var o;n.properties.checked&&(null===(o=n.properties.checked)||void 0===o||o.subscribe(e,t))})),()=>{r.forEach((n=>{var o;n.properties.checked&&(null===(o=n.properties.checked)||void 0===o||o.unsubscribe(e,t))}))}}),[t]);const c=[],d=[],u=[];return a.value().forEach((e=>{(0,i.isPropertyDefinition)(e)&&((0,i.isColorDefinition)(e)?c.push(e):(0,i.isLineDefinition)(e)?d.push(e):(0,i.isOptionsDefinition)(e)&&u.push(e))})),o.createElement(o.Fragment,null,o.createElement(Ve.PropertyTable.Row,null,o.createElement(Ve.PropertyTable.Cell,{verticalAlign:"topCenter",placement:"first"
},t.title),o.createElement(Ve.PropertyTable.Cell,{placement:"last"},o.createElement("div",{className:Qt.wrap},o.createElement(qt,{className:Qt.select,placeholder:z.t(null,void 0,n(45044)),onChange:function(e){const t=new Set(e);r.forEach((e=>{var n,o;!t.has(e.id)||(null===(n=e.properties.checked)||void 0===n?void 0:n.value())?!t.has(e.id)&&(null===(o=e.properties.checked)||void 0===o?void 0:o.value())&&e.properties.checked.setValue(!1):(0,g.ensureDefined)(e.properties.checked).setValue(!0)}))},value:l,matchButtonAndListboxWidths:!0,items:r.map((e=>({id:e.id,content:(0,g.ensureDefined)(e.title),value:e.id})))}),c.length||d.length?o.createElement("div",{className:Qt.colorsWrap},d.map((e=>o.createElement(R,{key:e.id,color:(0,g.ensureDefined)(e.properties.color),thickness:e.properties.width,thicknessItems:e.widthValues}))),c.map((e=>o.createElement(R,{key:e.id,color:e.properties.color})))):null))),u.map((e=>o.createElement(Ve.PropertyTable.Row,{key:e.id},o.createElement(Ve.PropertyTable.Cell,{placement:"first"}),o.createElement(Ve.PropertyTable.Cell,{placement:"last"},o.createElement(re,{className:Qt.select,property:e.properties.option,options:e.options}))))));function p(){return r.filter((e=>{var t;return(0,g.ensureDefined)(null===(t=e.properties)||void 0===t?void 0:t.checked).value()})).map((e=>e.id))}}function tn(e){const{definition:t,offset:n,disabled:a}=e;if(function(e){(0,o.useEffect)((()=>{if(void 0===e)return;const t={...e.properties};return Object.entries(t).forEach((([n,o])=>{void 0!==o&&o.subscribe(t,(()=>Xe.logger.logNormal(`Property "${n}" in definition "${e.id}" was updated to value "${o.value()}"`)))})),()=>{Object.entries(t).forEach((([,e])=>{null==e||e.unsubscribeAll(t)}))}}),[e])}((0,i.isPropertyDefinitionsGroup)(t)?void 0:t),(0,i.isPropertyDefinitionsGroup)(t))return o.createElement(nn,{definition:t,offset:n,disabled:a});switch(t.propType){case"line":return o.createElement(te,{...e,definition:t});case"checkable":return o.createElement(s,{...e,definition:t});case"color":return o.createElement(ce,{...e,definition:t});case"transparency":return o.createElement(fe,{...e,definition:t});case"twoColors":return o.createElement(ve,{...e,definition:t});case"optionalTwoColors":return o.createElement(ct,{...e,definition:t});case"fourColors":case"soundSelect":case"image":default:return null;case"number":return o.createElement(Ee,{...e,definition:t});case"symbol":return o.createElement(r.SymbolInputsButton,{...e,definition:t});case"text":return o.createElement(Le,{...e,definition:t});case"checkableSet":return o.createElement(De,{...e,definition:t});case"set":return o.createElement(It,{...e,definition:t});case"options":return o.createElement(Ye,{...e,definition:t});case"range":return o.createElement(Qe,{...e,definition:t});case"coordinates":case"selectionCoordinates":return o.createElement(He,{...e,definition:t});case"twoOptions":return o.createElement(lt,{...e,definition:t});case"leveledLine":return o.createElement(it,{...e,definition:t});case"emoji":return o.createElement(Mt,{...e,definition:t});case"studyInputs":
return o.createElement(pt,{...e,definition:t})}}function nn(e){const{definition:t}=e,n=(0,Q.useWatchedValueReadonly)({watchedValue:t.definitions});return(0,Q.useWatchedValueReadonly)({watchedValue:t.visible,defaultValue:!0})?(0,i.isCheckableListOptionsDefinition)(t)?o.createElement(en,{definition:t}):o.createElement(o.Fragment,null,t.title&&o.createElement(et.GroupTitleSection,{title:t.title,name:t.id}),n&&function(e){const t=[];return e.reduce(((e,t)=>{if((0,i.isPropertyDefinitionsGroup)(t)||"leveledLine"!==t.propType)e.push(t);else{const n=e[e.length-1];Array.isArray(n)?n.push(t):e.push([t])}return e}),t)}(n).map((n=>Array.isArray(n)?o.createElement(ot,{key:n[0].id,name:t.id,definitions:n}):o.createElement(tn,{key:n.id,...e,definition:n}))),"general"===t.groupType&&o.createElement(Ve.PropertyTable.GroupSeparator,{size:1})):null}},95711:(e,t,n)=>{"use strict";n.d(t,{PopupContext:()=>o});const o=n(50959).createContext(null)},16181:(e,t,n)=>{"use strict";n.d(t,{PopupDialog:()=>x});var o=n(50959),i=n(97754),r=n(50151),a=n(99663),l=n(67961),s=n(90186),c=n(5734);class d extends o.PureComponent{constructor(){super(...arguments),this._manager=new l.OverlapManager,this._handleSlot=e=>{this._manager.setContainer(e)}}render(){const{rounded:e=!0,shadowed:t=!0,fullscreen:n=!1,darker:r=!1,className:l,backdrop:d,containerTabIndex:u=-1}=this.props,p=i(l,c.dialog,e&&c.rounded,t&&c.shadowed,n&&c.fullscreen,r&&c.darker),h=(0,s.filterDataProps)(this.props),m=this.props.style?{...this._createStyles(),...this.props.style}:this._createStyles();return o.createElement(o.Fragment,null,o.createElement(a.SlotContext.Provider,{value:this._manager},d&&o.createElement("div",{onClick:this.props.onClickBackdrop,className:c.backdrop}),o.createElement("div",{...h,className:p,style:m,ref:this.props.reference,onFocus:this.props.onFocus,onMouseDown:this.props.onMouseDown,onMouseUp:this.props.onMouseUp,onClick:this.props.onClick,onKeyDown:this.props.onKeyDown,tabIndex:u,"aria-label":this.props.containerAriaLabel},this.props.children)),o.createElement(a.Slot,{reference:this._handleSlot}))}_createStyles(){const{bottom:e,left:t,width:n,right:o,top:i,zIndex:r,height:a}=this.props;return{bottom:e,left:t,right:o,top:i,zIndex:r,maxWidth:n,height:a}}}var u=n(86431),p=n(52778),h=n(37160);function m(e,t,n,o){return e+t>o&&(e=o-t),e<n&&(e=n),e}function f(e){return{x:(0,h.clamp)(e.x,20,document.documentElement.clientWidth-20),y:(0,h.clamp)(e.y,20,window.innerHeight-20)}}function g(e){return{x:e.clientX,y:e.clientY}}function v(e){return{x:e.touches[0].clientX,y:e.touches[0].clientY}}class y{constructor(e,t,n={boundByScreen:!0}){this._drag=null,this._canBeTouchClick=!1,this._frame=null,this._onMouseDragStart=e=>{if(0!==e.button||this._isTargetNoDraggable(e))return;e.preventDefault(),document.addEventListener("mousemove",this._onMouseDragMove),document.addEventListener("mouseup",this._onMouseDragEnd);const t=f(g(e));this._dragStart(t)},this._onTouchDragStart=e=>{if(this._isTargetNoDraggable(e))return;this._canBeTouchClick=!0,e.preventDefault(),

View File

@@ -1,21 +1,21 @@
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4713],{37287:e=>{e.exports={calendar:"calendar-N6r5jhbE",popupStyle:"popupStyle-N6r5jhbE",header:"header-N6r5jhbE","flip-horizontal":"flip-horizontal-N6r5jhbE","sub-header":"sub-header-N6r5jhbE","view-month":"view-month-N6r5jhbE","view-year":"view-year-N6r5jhbE","view-decades":"view-decades-N6r5jhbE",weeks:"weeks-N6r5jhbE",week:"week-N6r5jhbE",day:"day-N6r5jhbE","accent-color":"accent-color-N6r5jhbE","current-day":"current-day-N6r5jhbE","slot-wrapper":"slot-wrapper-N6r5jhbE","hide-focus-ring":"hide-focus-ring-N6r5jhbE","decade-button":"decade-button-N6r5jhbE","visually-hidden":"visually-hidden-N6r5jhbE"}},53209:e=>{e.exports={container:"container-PNiXwSz6",icon:"icon-PNiXwSz6",tooltip:"tooltip-PNiXwSz6",date:"date-PNiXwSz6",time:"time-PNiXwSz6"}},20111:e=>{e.exports={pickerInput:"pickerInput-P2cJzZdH",icon:"icon-P2cJzZdH",disabled:"disabled-P2cJzZdH",picker:"picker-P2cJzZdH",fixed:"fixed-P2cJzZdH",absolute:"absolute-P2cJzZdH",nativePicker:"nativePicker-P2cJzZdH"}},30247:e=>{e.exports={tooltip:"tooltip-RU08GcsY"}},44022:e=>{e.exports={errors:"errors-bghR31WL",show:"show-bghR31WL",error:"error-bghR31WL","visually-hidden":"visually-hidden-bghR31WL"}},40461:e=>{e.exports={"error-icon":"error-icon-UhKAouIg","intent-danger":"intent-danger-UhKAouIg","intent-warning":"intent-warning-UhKAouIg"}},78634:e=>{e.exports={wrap:"wrap-NsE0FV0Z",input:"input-NsE0FV0Z"}},43832:e=>{e.exports={icon:"icon-Rubz29lH"}},27345:e=>{e.exports={"static-messages":"static-messages-cF4vS9J8",errors:"errors-cF4vS9J8",warnings:"warnings-cF4vS9J8","success-mesages":"success-mesages-cF4vS9J8","input-description":"input-description-cF4vS9J8",message:"message-cF4vS9J8"}},71986:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 430px)",item:"item-jFqVJoPk",hovered:"hovered-jFqVJoPk",isDisabled:"isDisabled-jFqVJoPk",isActive:"isActive-jFqVJoPk",shortcut:"shortcut-jFqVJoPk",toolbox:"toolbox-jFqVJoPk",withIcon:"withIcon-jFqVJoPk","round-icon":"round-icon-jFqVJoPk",icon:"icon-jFqVJoPk",labelRow:"labelRow-jFqVJoPk",label:"label-jFqVJoPk",showOnHover:"showOnHover-jFqVJoPk","disclosure-item-circle-logo":"disclosure-item-circle-logo-jFqVJoPk",showOnFocus:"showOnFocus-jFqVJoPk"}},78869:(e,t,n)=>{"use strict";n.d(t,{useRefsMap:()=>a});var s=n(50959);function a(){const e=(0,s.useRef)(new Map),t=(0,s.useCallback)((t=>n=>{null!==n?e.current.set(t,n):e.current.delete(t)}),[e]);return[e,t]}},47201:(e,t,n)=>{"use strict";function s(...e){return t=>{for(const n of e)void 0!==n&&n(t)}}n.d(t,{createSafeMulticastEventHandler:()=>s})},27365:(e,t,n)=>{"use strict";n.d(t,{getChartTimezoneOffsetMs:()=>o,getTimezoneName:()=>r});var s=n(41249),a=n.n(s);function r(e){const t=e.model().timezone();if("exchange"!==t)return t;const n=e.model().mainSeries().symbolInfo();return null==n?void 0:n.timezone}function o(e,t){if(void 0===t)return 0;return a().get_timezone(t).offset_utc(e)}},51826:(e,t,n)=>{"use strict";n.d(t,{DialogsOpenerManager:()=>s,dialogsOpenerManager:()=>a});class s{constructor(){
this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const a=new s},1405:(e,t,n)=>{"use strict";n.d(t,{anchors:()=>s});n(50959);const s={bottom:{attachment:{horizontal:"left",vertical:"top"},targetAttachment:{horizontal:"left",vertical:"bottom"}},top:{attachment:{horizontal:"left",vertical:"bottom"},targetAttachment:{horizontal:"left",vertical:"top"}},topRight:{attachment:{horizontal:"right",vertical:"bottom"},targetAttachment:{horizontal:"right",vertical:"top"}},bottomRight:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"bottom"}}}},15499:(e,t,n)=>{"use strict";n.d(t,{CalendarViewType:()=>w,DECADES_YEARS_AMOUNT:()=>y,MONTHS:()=>o,MONTHS_SHORT:()=>i,SUB_HEADER_DECADES:()=>D,SUB_HEADER_YEAR:()=>b,WEEKDAYS_MIN:()=>a,getCurrentAriaLabel:()=>F,getCurrentVisibleTitle:()=>M,getDayAriaLabel:()=>C,getNextAriaLabel:()=>_,getNextLiveRegionConfirmation:()=>k,getNextMonth:()=>R,getPrevAriaLabel:()=>E,getPrevLiveRegionConfirmation:()=>S,getViewTypeLiveRegionConfirmation:()=>N});var s=n(11542);const a=[s.t(null,{context:"day_of_week"},n(11268)),s.t(null,{context:"day_of_week"},n(31533)),s.t(null,{context:"day_of_week"},n(26230)),s.t(null,{context:"day_of_week"},n(24793)),s.t(null,{context:"day_of_week"},n(19801)),s.t(null,{context:"day_of_week"},n(63331)),s.t(null,{context:"day_of_week"},n(85954))],r=[s.t(null,void 0,n(72149)),s.t(null,void 0,n(61199)),s.t(null,void 0,n(44979)),s.t(null,void 0,n(7147)),s.t(null,void 0,n(7951)),s.t(null,void 0,n(72970)),s.t(null,void 0,n(1144))],o=[s.t(null,void 0,n(26910)),s.t(null,void 0,n(16467)),s.t(null,void 0,n(84675)),s.t(null,void 0,n(97637)),s.t(null,void 0,n(68327)),s.t(null,void 0,n(49385)),s.t(null,void 0,n(23230)),s.t(null,void 0,n(86797)),s.t(null,void 0,n(61132)),s.t(null,void 0,n(90784)),s.t(null,void 0,n(71194)),s.t(null,void 0,n(55669))],i=[s.t(null,void 0,n(95425)),s.t(null,void 0,n(35050)),s.t(null,void 0,n(51369)),s.t(null,void 0,n(42762)),s.t(null,void 0,n(68327)),s.t(null,void 0,n(15224)),s.t(null,void 0,n(6215)),s.t(null,void 0,n(38465)),s.t(null,void 0,n(57902)),s.t(null,void 0,n(73546)),s.t(null,void 0,n(71230)),s.t(null,void 0,n(92203))],l=s.t(null,void 0,n(2587)),c=s.t(null,void 0,n(39752)),u=s.t(null,void 0,n(39329)),h=s.t(null,void 0,n(83771)),d=s.t(null,void 0,n(27004)),p=s.t(null,void 0,n(75385)),m=s.t(null,void 0,n(83583)),g=s.t(null,void 0,n(80879)),f=s.t(null,void 0,n(6244)),v={setMonth:s.t(null,void 0,n(92702)),setYear:s.t(null,void 0,n(52051)),setDecades:s.t(null,void 0,n(99990))};var w;!function(e){e.Month="month",e.Year="year",e.Decades="decades"}(w||(w={}));const D=s.t(null,void 0,n(69325)),b=s.t(null,void 0,n(95543)),y=20;function C(e){return`${r[e.getDay()]} ${e.getDate()} ${o[e.getMonth()]} ${e.getFullYear()}`}function E(e,t){switch(e){case w.Month:{const e=new Date(t);return e.setMonth(e.getMonth()-1),`${l}, ${o[e.getMonth()]} ${e.getFullYear()}`}case w.Year:
return`${u}, ${t.getFullYear()-1}`;case w.Decades:return`${d}, ${t.getFullYear()-y} - ${t.getFullYear()-1}`}}function _(e,t){switch(e){case w.Month:{const e=new Date(t);return e.setMonth(e.getMonth()+1),`${c}, ${o[e.getMonth()]} ${e.getFullYear()}`}case w.Year:return`${h}, ${t.getFullYear()+1}`;case w.Decades:return`${p}, ${t.getFullYear()+y} - ${t.getFullYear()+2*y-1}`}}function F(e,t){switch(e){case w.Month:return`${m}, ${t.getFullYear()}`;case w.Year:return`${g}, ${t.getFullYear()} - ${t.getFullYear()+y-1}`;case w.Decades:return`${f}, ${o[t.getMonth()]} ${t.getFullYear()}`}}function M(e,t){switch(e){case w.Month:return`${o[t.getMonth()]} ${t.getFullYear()}`;case w.Year:return`${t.getFullYear()}`;case w.Decades:return`${t.getFullYear()} - ${t.getFullYear()+y-1}`}}function S(e,t){switch(e){case w.Month:{const e=new Date(t);return e.setMonth(e.getMonth()-1),v.setMonth.format({month:o[e.getMonth()]})}case w.Year:return v.setYear.format({year:""+(t.getFullYear()-1)});case w.Decades:return v.setDecades.format({year_start:""+(t.getFullYear()-y),year_end:""+(t.getFullYear()-1)})}}function k(e,t){switch(e){case w.Month:{const e=R(t);return v.setMonth.format({month:o[e.getMonth()]})}case w.Year:return v.setYear.format({year:`${t.getFullYear()+1}`});case w.Decades:return v.setDecades.format({year_start:`${t.getFullYear()+y}`,year_end:""+(t.getFullYear()+2*y-1)})}}function N(e,t){switch(e){case w.Month:return v.setYear.format({year:`${t.getFullYear()}`});case w.Year:return v.setDecades.format({year_start:`${t.getFullYear()}`,year_end:""+(t.getFullYear()+y-1)});case w.Decades:return v.setMonth.format({month:o[t.getMonth()]})}}function R(e){return 11===e.getMonth()?new Date(e.getFullYear()+1,0,1):new Date(e.getFullYear(),e.getMonth()+1,1)}},28746:(e,t,n)=>{"use strict";n.d(t,{Calendar:()=>E});var s=n(50959),a=n(97754),r=n(14543),o=n(17140),i=n(37287);function l(e){const{prevAriaLabel:t,nextAriaLabel:n,currentAriaLabel:a,currentVisibleTitle:l,isNextDisabled:c,isPrevDisabled:u,isViewModeDisabled:h,prevRef:d,middleRef:p,onPrevClick:m,onNextClick:g,onCurrentClick:f,onPrevKeyDown:v,onMiddleKeyDown:w,onHeaderKeyDown:D}=e;return s.createElement("div",{className:i.header,onKeyDown:D},s.createElement(r.LightButton,{startIcon:o,onClick:m,size:"small",variant:"ghost","aria-label":t,disabled:u,onKeyDown:v,reference:d}),s.createElement(r.LightButton,{size:"small",variant:"ghost","aria-label":a,onClick:f,disabled:h,onKeyDown:w,reference:p},l),s.createElement(r.LightButton,{startIcon:o,onClick:g,size:"small",variant:"ghost","aria-label":n,disabled:c,className:i["flip-horizontal"]}))}var c=n(23935),u=n(15499),h=n(53741);class d extends s.PureComponent{constructor(){super(...arguments),this._dateFormatter=new h.DateFormatter,this._getVariant=()=>{let e="ghost";return this._withinSelectedRange()&&(e=this.props.isDisabled?"secondary":"quiet-primary"),this._isOnHighlightedEdge()&&this.props.isDisabled&&(e="quiet-primary"),e},this._onClick=()=>{this.props.onClick&&!this.props.isDisabled&&this.props.onClick(new Date(this.props.day))}}render(){
const e=a(i.day,this.props.isDisabled&&i.disabled,!this.props.isDisabled&&(this.props.isSelected||this._isOnHighlightedEdge())&&i["accent-color"],this._withinSelectedRange()&&i["within-selected-range"],this._isCurrentDay()&&i["current-day"],!this.props.showFocusRing&&i["hide-focus-ring"]),t=this.props.isSelected||this._isOnHighlightedEdge()||this._withinSelectedRange(),n=t||this._isCurrentDay();return s.createElement(r.LightButton,{onClick:this._onClick,onFocus:this.props.onFocus,size:"small",variant:this._getVariant(),isSelected:n,"data-day":this._dateFormatter.formatLocal(this.props.day),className:e,disabled:this.props.isDisabled,reference:this.props.reference,tabIndex:this.props.tabIndex,"aria-label":(0,u.getDayAriaLabel)(this.props.day),"aria-selected":t,"aria-current":this._isCurrentDay()?"date":void 0},this.props.day.getDate())}_isOnHighlightedEdge(){const{day:e,highlightedFrom:t,highlightedTo:n}=this.props;return!(!t||!n)&&((0,c.isSameDay)(e,t)||(0,c.isSameDay)(e,n))}_withinSelectedRange(){const{day:e,highlightedFrom:t,highlightedTo:n}=this.props;return!(!t||!n)&&this._isBetweenByDay(t,e,n)}_isCurrentDay(){return(0,c.isSameDay)(new Date,this.props.day)}_isBetweenByDay(e,t,n){const s=(0,c.resetToDayStart)(e),a=(0,c.resetToDayStart)(t),r=(0,c.resetToDayStart)(n);return s<a&&a<r}}var p=n(78869),m=n(68335);function g({isDisabledDate:e,findDate:t,getFirstDate:n,getLastDate:a,setNext:r,setPrev:o,dateToFocus:i,verticalOffset:l,dateLevel:u}){const[h,d]=(0,p.useRefsMap)(),g=(0,s.useCallback)((t=>t?e(t)?null:t:null),[e]),f=(0,s.useCallback)(((n,s)=>{if(!n)return null;const a=(0,c.getCloneDateWithOffset)({dateFrom:n,offset:s,isDisabledDate:e,level:u});return g(t(a))}),[t,g]),v=(0,s.useCallback)((()=>{const e=n();return g(e)||f(e,1)}),[g,f]),w=(0,s.useCallback)((()=>{const e=a();return g(e)||f(e,-1)}),[g,f]),D=(0,s.useCallback)(((t,n)=>{if(!t)return;const s=(0,c.getCloneDateWithOffset)({dateFrom:t,offset:n,isDisabledDate:e,level:u});s&&(n>0?r(s):o(s))}),[e,r,o]),{currentlyFocused:b,setCurrentlyFocused:y,focusItem:C,bindings:E}=function({refsMap:e,verticalOffset:t,getNextKeyToFocus:n,getFirstKey:a,getLastKey:r,onGridEnd:o}){const[i,l]=(0,s.useState)(null),c=(0,s.useCallback)((t=>{if(!t)return;const n=e.current.get(t);n&&(n.focus(),l(t))}),[e]),u=(0,s.useCallback)((e=>{const t=n(i,e);t?c(t):o(i,e)}),[i,n]),h=(0,s.useCallback)((e=>{const n=(0,m.hashFromEvent)(e);if(40===n&&(e.preventDefault(),u(t)),38===n&&(e.preventDefault(),u(-1*t)),39===n&&(e.preventDefault(),u(1)),37===n&&(e.preventDefault(),u(-1)),36===n){e.preventDefault();const t=a();c(t)}if(35===n){e.preventDefault();const t=r();c(t)}}),[i,n]);return{currentlyFocused:i,setCurrentlyFocused:l,focusItem:c,bindings:{onKeyDown:h}}}({refsMap:h,verticalOffset:l,getNextKeyToFocus:f,getFirstKey:v,getLastKey:w,onGridEnd:D});return(0,s.useEffect)((()=>C(g(t(i)))),[i]),{itemsRefs:h,setItemRef:d,ensureNotDisabledDate:g,currentlyFocused:b,setCurrentlyFocused:y,focusItem:C,bindings:E}}function f(e){
const{selectedDate:t,dateToFocus:n,weeks:a,onClickDay:r,setPrevMonth:o,setNextMonth:l,maxDate:h,minDate:p,disableWeekends:m,showFocusRing:f,highlightedFrom:v,highlightedTo:w,isDisabled:D,focusableDateRef:b}=e,y=(0,s.useCallback)((e=>{if(!e)return null;let t=null;return a.find((({days:n})=>(t=n.find((t=>(0,c.isSameDay)(t,e))),t))),t}),[a]),C=(0,s.useCallback)((()=>a[0].days[0]),[a]),E=(0,s.useCallback)((()=>{const e=a[a.length-1].days;return e[e.length-1]}),[a]),_=(0,s.useCallback)((e=>D||(0,c.isDayDisabled)({day:e,minDate:p,maxDate:h,disableWeekends:m})),[p,h,m,D]),{itemsRefs:F,setItemRef:M,currentlyFocused:S,setCurrentlyFocused:k,bindings:N}=g({isDisabledDate:_,findDate:y,getFirstDate:C,getLastDate:E,setPrev:o,setNext:l,dateToFocus:n,verticalOffset:7,dateLevel:"day"}),R=(0,c.getDateInTabOrder)({selectedDate:t,dateToFocus:n,currentlyFocused:S,firstEnabledDate:(0,c.getFirstEnabledDay)(a,_),getFirstDate:C,getLastDate:E,isDisabledDate:_});return(0,s.useEffect)((()=>{b.current=R&&F.current.get(R)||null}),[R,b]),s.createElement(s.Fragment,null,s.createElement("div",{className:i["sub-header"],"aria-hidden":!0},u.WEEKDAYS_MIN.map((e=>s.createElement("span",{key:e},e)))),s.createElement("div",{className:i["view-month"],tabIndex:-1,...N},s.createElement("div",{className:i.weeks},a.map((({week:e,days:n})=>s.createElement("div",{className:i.week,key:e},n.map((e=>s.createElement(d,{key:e.toDateString(),day:e,isDisabled:_(e),isSelected:(0,c.isSameDay)(e,t),onClick:r,highlightedFrom:v,highlightedTo:w,reference:M(e),tabIndex:(0,c.isSameDay)(e,R)?0:-1,onFocus:(0,c.isSameDay)(e,R)?()=>k(e):void 0,showFocusRing:f})))))))))}function v(e){const{months:t,selectedDate:n,maxDate:a,minDate:o,showFocusRing:l,dateToFocus:h,isDisabled:d,focusableDateRef:p,onSelect:m,setPrevYear:f,setNextYear:v}=e,w=(0,s.useCallback)((e=>d||!(0,c.isInRange)(e,o,a,"month")),[o,a,d]),D=(0,s.useCallback)((e=>{if(!e)return null;let n=null;return t.find((({date:t})=>(n=(0,c.isSameMonth)(e,t)?t:null,n))),n}),[t]),b=(0,s.useCallback)((()=>t[0].date),[t]),y=(0,s.useCallback)((()=>t[t.length-1].date),[t]),{itemsRefs:C,setItemRef:E,currentlyFocused:_,setCurrentlyFocused:F,bindings:M}=g({isDisabledDate:w,findDate:D,getFirstDate:b,getLastDate:y,setPrev:f,setNext:v,verticalOffset:3,dateToFocus:h,dateLevel:"month"}),S=(0,c.getDateInTabOrder)({selectedDate:n,dateToFocus:h,currentlyFocused:_,firstEnabledDate:(0,c.getFirstEnabledMonth)(t,w),getFirstDate:b,getLastDate:y,isDisabledDate:w});return(0,s.useEffect)((()=>{p.current=S&&C.current.get(S)||null}),[S,p]),s.createElement(s.Fragment,null,s.createElement("div",{className:i["sub-header"],"aria-hidden":!0},s.createElement("span",null,u.SUB_HEADER_YEAR)),s.createElement("div",{className:i["view-year"],...M},t.map((({title:e,ariaLabel:t,date:a})=>{const o=(0,c.isSameMonth)(a,n),u=w(a),h=o?"quiet-primary":"ghost";return s.createElement(r.LightButton,{key:a.toDateString(),size:"small",variant:h,disabled:u,isSelected:o,className:!l&&i["hide-focus-ring"],onClick:()=>m(a),reference:E(a),tabIndex:(0,c.isSameMonth)(a,S)?0:-1,onFocus:(0,
c.isSameMonth)(a,S)?()=>F(a):void 0,"aria-label":`${t} ${a.getFullYear()}`,"aria-selected":o},e)}))))}function w(e){const{years:t,selectedDate:n,dateToFocus:o,maxDate:l,minDate:h,showFocusRing:d,isDisabled:p,focusableDateRef:m,onSelect:f,setPrevDecades:v,setNextDecades:w}=e,D=(0,s.useCallback)((e=>p||!(0,c.isInRange)(e,h,l,"year")),[h,l,p]),b=(0,s.useCallback)((e=>e&&t.find((t=>(0,c.isSameYear)(e,t)))||null),[t]),y=(0,s.useCallback)((()=>t[0]),[t]),C=(0,s.useCallback)((()=>t[t.length-1]),[t]),{itemsRefs:E,setItemRef:_,currentlyFocused:F,setCurrentlyFocused:M,bindings:S}=g({isDisabledDate:D,findDate:b,getFirstDate:y,getLastDate:C,setPrev:v,setNext:w,dateToFocus:o,verticalOffset:4,dateLevel:"year"}),k=(0,c.getDateInTabOrder)({selectedDate:n,dateToFocus:o,currentlyFocused:F,firstEnabledDate:(0,c.getFirstEnabledYear)(t,D),getFirstDate:y,getLastDate:C,isDisabledDate:D});return(0,s.useEffect)((()=>{m.current=k&&E.current.get(k)||null}),[k,m]),s.createElement(s.Fragment,null,s.createElement("div",{className:i["sub-header"],"aria-hidden":!0},s.createElement("span",null,u.SUB_HEADER_DECADES)),s.createElement("div",{className:i["view-decades"],...S},t.map((e=>{const t=e.getFullYear(),o=(0,c.isSameYear)(e,n),l=D(e),u=o?"quiet-primary":"ghost";return s.createElement(r.LightButton,{key:e.toDateString(),size:"small",variant:u,disabled:l,isSelected:o,className:a(i["decade-button"],!d&&i["hide-focus-ring"]),onClick:()=>f(e),reference:_(e),tabIndex:(0,c.isSameYear)(e,k)?0:-1,onFocus:(0,c.isSameYear)(e,k)?()=>M(e):void 0,"aria-selected":o},t)}))))}class D{constructor(e,t=[]){this._messagesQueue=[],this._alternate=!1,this._renderedMessage=null,this._idCounter=0,this._containers=[...t],this._type=e}setContainers(e){this._containers=[...e]}addMessage(e,t=0){const n=this._generateId(),s={id:n,message:e,destroyTimeout:this._calculateDestroyTimeout(e,t)};return this._messagesQueue.push(s),this._renderedMessage||this._renderMessage(),{...s,type:this._type,destroy:this._getDestroyMessageCallback(n)}}destroyAll(){var e;this._messagesQueue=[],clearTimeout(null===(e=this._renderedMessage)||void 0===e?void 0:e.destroyTimer),this._containers.forEach((e=>{e.innerText=""})),this._renderedMessage=null,this._alternate=!1}_generateId(){return`live-region-${this._type}-${this._idCounter++}`}_calculateDestroyTimeout(e,t=0){const n=50*e.trim().length+200,s=250*e.trim().length;return Math.min(Math.max(n,t),s)}_findById(e){var t;return(null===(t=this._renderedMessage)||void 0===t?void 0:t.id)===e?this._renderedMessage:this._messagesQueue.find((t=>t.id===e))}_getDestroyMessageCallback(e){return async t=>{const n=this._findById(e);return!!n&&(n.renderedTo?!!t&&(this._removeRenderedMessage(),this._renderMessage(),!0):(this._removeFromQueue(n),!0))}}_removeRenderedMessage(){var e;const t=null===(e=this._renderedMessage)||void 0===e?void 0:e.renderedTo;t&&(t.innerText=""),this._renderedMessage=null}_removeFromQueue(e){this._messagesQueue=this._messagesQueue.filter((t=>t!==e))}async _renderMessage(){if(!this._containers.length||!this._messagesQueue.length)return
;const e=this._alternate?this._containers[0]:this._containers[1],t=this._messagesQueue.shift();let n;e.innerText=t.message;const s=new Promise(((e,s)=>{n=setTimeout((()=>{var n;if((null===(n=this._renderedMessage)||void 0===n?void 0:n.id)===t.id)return this._removeRenderedMessage(),void this._renderMessage().then(e);s("Currently rendered message is not the one that you 're trying to destroy")}),t.destroyTimeout)}));this._renderedMessage={...t,renderedTo:e,destroyTimer:n,destroyPromise:s},this._alternate=!this._alternate}}class b extends D{}const y=new class{constructor(){this.isInited=!1,this._politeQueue=new b("polite"),this._assertiveQueue=new b("assertive")}renderTo(e,t=!1){return t&&this.destroy(),this._init(e)}destroy(){this._politeQueue.destroyAll(),this._assertiveQueue.destroyAll(),this.isInited=!1}sayPolitely(e,t){return this.isInited?this._politeQueue.addMessage(e,t):null}interrupt(e,t){return this.isInited?this._assertiveQueue.addMessage(e,t):null}_init(e){if(!e)return!1;if(this.isInited)return!1;return!!this._setContainers(e)&&(this.isInited=!0,!0)}_setContainers(e){const t=document.getElementById(e);if(!t)return!1;const n=t.querySelectorAll('[aria-live="polite"]'),s=t.querySelectorAll('[aria-live="assertive"]');return!(!n||2!==n.length||!s||2!==s.length)&&(this._politeQueue.setContainers([n[0],n[1]]),this._assertiveQueue.setContainers([s[0],s[1]]),!0)}};function C({viewType:e,decadesStartYear:t,viewDate:n,setPrev:a,setNext:r,switchViewType:o}){const[i,l]=(0,s.useState)(null),c=(0,s.useCallback)((e=>{i&&i.destroy(),l(y.sayPolitely(e))}),[i,l]);return{onPrevClick:(0,s.useCallback)((()=>{c((0,u.getPrevLiveRegionConfirmation)(e,e===u.CalendarViewType.Decades?t:n)),a(null)}),[a,c]),onNextClick:(0,s.useCallback)((()=>{c((0,u.getNextLiveRegionConfirmation)(e,e===u.CalendarViewType.Decades?t:n)),r(null)}),[r,c]),onSwitchViewType:(0,s.useCallback)((s=>{c((0,u.getViewTypeLiveRegionConfirmation)(e,e===u.CalendarViewType.Year?t:n)),o(s)}),[o,c])}}function E(e){const{selectedDate:t,maxDate:n,minDate:r,className:o,disableWeekends:h,highlightedFrom:d,highlightedTo:p,popupStyle:g=!0,showFocusRing:D=!1,autoFocus:b=!1,isDisabled:y=!1,withFocusTrap:E=!1,endSlot:_,onSelect:F,onMonthSwitch:M,onYearSwitch:S,onDecadesSwitch:k,onViewTypeChange:N,focusTriggerElement:R}=e,[x,T]=(0,s.useState)(D),I=(0,s.useCallback)((()=>T(!0)),[T]);(0,s.useEffect)((()=>{D&&T(!0)}),[D]);const P=(0,s.useCallback)((e=>{R&&38===(0,m.hashFromEvent)(e)&&(e.preventDefault(),e.stopPropagation(),T(!1),R())}),[R]),{viewDate:A,viewType:Y,dateToFocus:O,weeks:V,months:z,years:L,isNextDisabled:H,isPrevDisabled:B,setPrev:$,setNext:K,switchViewType:W,onClickDay:j,onClickMonth:J,onClickYear:q}=function({selectedDate:e,autoFocus:t,showFocusRing:n,minDate:a,maxDate:r,onSelect:o,onMonthSwitch:i,onYearSwitch:l,onDecadesSwitch:h,onViewTypeChange:d}){const[p,m]=(0,s.useState)(e),[g,f]=(0,s.useState)(u.CalendarViewType.Month),[v,w]=(0,s.useState)(t?e:null),D=(0,s.useMemo)((()=>(0,c.getDecadesStart)(p)),[p]),b=(0,s.useCallback)((e=>{const t=new Date(p),n=(0,
u.getNextMonth)(p),s=new Date(n.getFullYear(),n.getMonth()+e,0).getDate(),a=p.getDate()>s?s:p.getDate();t.setMonth(t.getMonth()+e,a),m(t),i&&i(t)}),[p,i]),y=(0,s.useCallback)((e=>{const t=new Date(p);t.setFullYear(t.getFullYear()+e),m(t),l&&l(t)}),[p,l]),C=(0,s.useCallback)((e=>{const t=new Date(D);t.setFullYear(t.getFullYear()+e),m(t),h&&h(t)}),[D,p,h]),E=(0,s.useCallback)(((e,t)=>{switch(t&&w(t),g){case u.CalendarViewType.Month:return b(1*e);case u.CalendarViewType.Year:return y(1*e);case u.CalendarViewType.Decades:return C(e*u.DECADES_YEARS_AMOUNT)}}),[g,b,y,C]),_=(0,s.useCallback)((e=>E(-1,e)),[E]),F=(0,s.useCallback)((e=>E(1,e)),[E]),M=(0,s.useCallback)((()=>{const e=Object.values(u.CalendarViewType);let t=e.indexOf(g)+1;t>=e.length&&(t=0),f(e[t]),d&&d(e[t])}),[g]),S=(0,s.useCallback)((e=>{m(new Date(e)),o&&o(new Date(e))}),[o]),k=(0,s.useCallback)((e=>{const t=new Date(p);t.setMonth(e.getMonth()),(0,c.isSameMonth)(t,e)||t.setMonth(e.getMonth(),1),m(t);const n=new Date(v||p);n.setMonth(e.getMonth()),(0,c.isSameMonth)(n,e)||n.setMonth(e.getMonth(),1),w(n),f(u.CalendarViewType.Month)}),[p,o,M]),N=(0,s.useCallback)((e=>{const t=new Date(p);t.setFullYear(e.getFullYear()),m(t);const n=new Date(v||p);n.setFullYear(e.getFullYear()),w(n),f(u.CalendarViewType.Year)}),[p,o,M]),R=(0,s.useMemo)((()=>(0,c.getWeeks)(p)),[p]),x=(0,s.useMemo)((()=>(0,c.getMonths)(p)),[p]),T=(0,s.useMemo)((()=>(0,c.getDecades)(D)),[D]),I=(0,s.useMemo)((()=>{switch(g){case u.CalendarViewType.Month:{const e=R[R.length-1].days,t=new Date(e[e.length-1]);return t.setDate(t.getDate()+1),!(0,c.isInRange)(t,a,r)}case u.CalendarViewType.Year:{const e=new Date(x[x.length-1].date);return e.setMonth(e.getMonth()+1),!(0,c.isInRange)(e,a,r,"month")}case u.CalendarViewType.Decades:{const e=new Date(T[T.length-1]);return e.setFullYear(e.getFullYear()+1),!(0,c.isInRange)(e,a,r,"year")}}}),[g,a,r,R,x,T]),P=(0,s.useMemo)((()=>{switch(g){case u.CalendarViewType.Month:{const e=new Date(R[0].days[0]);return e.setDate(e.getDate()-1),!(0,c.isInRange)(e,a,r)}case u.CalendarViewType.Year:{const e=new Date(x[0].date);return e.setMonth(e.getMonth()-1),!(0,c.isInRange)(e,a,r,"month")}case u.CalendarViewType.Decades:{const e=new Date(T[0]);return e.setFullYear(e.getFullYear()-1),!(0,c.isInRange)(e,a,r,"year")}}}),[g,a,r,R,x,T]);return(0,s.useEffect)((()=>{!v&&n&&t&&w(e),n||w(null)}),[t,e,v,n]),{viewDate:p,viewType:g,dateToFocus:v,weeks:R,months:x,years:T,isNextDisabled:I,isPrevDisabled:P,setPrev:_,setNext:F,switchViewType:M,onClickDay:S,onClickMonth:k,onClickYear:N}}({selectedDate:t,minDate:r,maxDate:n,autoFocus:b,showFocusRing:x,onMonthSwitch:M,onYearSwitch:S,onDecadesSwitch:k,onViewTypeChange:N,onSelect:F}),{focusableDateRef:U,prevRef:Q,middleRef:Z,onPrevKeyDown:X,onMiddleKeyDown:G,forwardFocusToStart:ee}=function({withFocusTrap:e,isPrevDisabled:t}){const n=(0,s.useRef)(null),a=(0,s.useCallback)((t=>{var s;e&&m.Modifiers.Shift+9===(0,m.hashFromEvent)(t)&&(t.preventDefault(),null===(s=n.current)||void 0===s||s.focus())}),[e]),r=(0,s.useCallback)((e=>{t||a(e)}),[t,a]),o=(0,
s.useCallback)((e=>{t&&a(e)}),[t,a]),i=(0,s.useRef)(null),l=(0,s.useRef)(null),c=(0,s.useCallback)((e=>{var n,s;e.preventDefault(),e.stopPropagation(),t?null===(s=l.current)||void 0===s||s.focus():null===(n=i.current)||void 0===n||n.focus()}),[t]);return{focusableDateRef:n,prevRef:i,middleRef:l,onPrevKeyDown:r,onMiddleKeyDown:o,forwardFocusToStart:c}}({withFocusTrap:E,isPrevDisabled:B}),te=(0,s.useMemo)((()=>L[0]),[L]),{onPrevClick:ne,onNextClick:se,onSwitchViewType:ae}=C({viewType:Y,decadesStartYear:te,viewDate:A,setPrev:$,setNext:K,switchViewType:W});return s.createElement("div",{className:a(i.calendar,g&&i.popupStyle,o),tabIndex:-1,onKeyDown:I},s.createElement(l,{prevAriaLabel:(0,u.getPrevAriaLabel)(Y,Y===u.CalendarViewType.Decades?te:A),nextAriaLabel:(0,u.getNextAriaLabel)(Y,Y===u.CalendarViewType.Decades?te:A),currentAriaLabel:(0,u.getCurrentAriaLabel)(Y,Y===u.CalendarViewType.Year?te:A),currentVisibleTitle:(0,u.getCurrentVisibleTitle)(Y,Y===u.CalendarViewType.Decades?te:A),onPrevClick:ne,onNextClick:se,onPrevKeyDown:X,onMiddleKeyDown:G,onHeaderKeyDown:P,onCurrentClick:ae,isNextDisabled:y||H,isPrevDisabled:y||B,isViewModeDisabled:y,prevRef:Q,middleRef:Z}),Y===u.CalendarViewType.Month&&s.createElement(f,{weeks:V,selectedDate:t,dateToFocus:O,maxDate:n,minDate:r,onClickDay:j,disableWeekends:h,highlightedFrom:d,highlightedTo:p,setPrevMonth:$,setNextMonth:K,showFocusRing:x,isDisabled:y,focusableDateRef:U}),Y===u.CalendarViewType.Year&&s.createElement(v,{months:z,selectedDate:t,dateToFocus:O,maxDate:n,minDate:r,onSelect:J,setPrevYear:$,setNextYear:K,showFocusRing:x,isDisabled:y,focusableDateRef:U}),Y===u.CalendarViewType.Decades&&s.createElement(w,{years:L,selectedDate:t,dateToFocus:O,maxDate:n,minDate:r,onSelect:q,setPrevDecades:$,setNextDecades:K,showFocusRing:x,isDisabled:y,focusableDateRef:U}),s.createElement("div",{className:i["slot-wrapper"]},_),E&&s.createElement("div",{tabIndex:0,onFocus:ee}))}},85528:(e,t,n)=>{"use strict";n.d(t,{DatePicker:()=>F});var s=n(11542),a=n(50959),r=n(97754),o=n(5325),i=n(32563),l=n(53741),c=n(28746),u=n(50151),h=n(9745),d=n(86623),p=n(95263),m=n(78274),g=n(52778),f=n(42842),v=n(68335),w=n(20111);class D extends a.PureComponent{constructor(e){super(e),this._input=null,this._inputContainer=null,this._handleFocus=e=>{var t,n;this.props.showOnFocus&&this.props.onShowPicker(),null===(n=(t=this.props).onFocus)||void 0===n||n.call(t,e)},this._handleInputRef=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(this._input)},this._handleContainerRef=e=>{this._inputContainer=e},this._onShowPicker=e=>{if(e&&this._inputContainer){const t=e.getBoundingClientRect(),n=this._inputContainer.getBoundingClientRect();t.width&&t.width>window.innerWidth-n.left?(e.style.right="0",e.style.left="auto"):(e.style.right="auto",e.style.left=`${n.left}px`);const s=window.innerHeight-n.bottom,a=n.top;if(s>=t.height)return void(e.style.top=`${n.bottom}px`);e.style.top="auto",e.style.bottom=a<t.height?"0":`${s+n.height}px`}},this._onChange=()=>{const e=(0,u.ensureNotNull)(this._input).value
;this.setState({value:e}),this.props.onType(e)},this._onKeyDown=e=>{this.props.hideOnKeyDown&&this.props.onHidePicker(),this.props.onKeyDown&&this.props.onKeyDown(e)},this._onKeyPress=e=>{if(e.charCode){const t=String.fromCharCode(e.charCode);this.props.inputRegex.test(t)||e.preventDefault()}},this._onKeyUp=e=>{if(8!==e.keyCode){const e=(0,u.ensureNotNull)(this._input).value,t=this.props.fixValue(e);t!==e&&this.setState({value:t})}},this._handleDropdownKeydown=e=>{var t;27===(0,v.hashFromEvent)(e)&&(null===(t=this._input)||void 0===t||t.focus(),this.props.onHidePicker())},this.state={value:e.value,valueFromProps:e.value}}render(){const{position:e="fixed",className:t,size:n,disabled:s,readonly:o,errors:i,icon:l,InputComponent:c=d.FormInput}=this.props;return a.createElement("div",{className:w.pickerInput,ref:this._handleContainerRef},a.createElement(c,{value:this.state.value,onBlur:this.props.onBlur,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onChange:this._onChange,onFocus:this._handleFocus,onClick:this.props.onShowPicker,reference:this._handleInputRef,className:t,size:n,disabled:s,errors:i,messagesPosition:p.MessagesPosition.Attached,hasErrors:this.props.showErrorMessages&&i&&i.length>0,name:this.props.name,readonly:o,endSlot:i&&i.length?void 0:a.createElement(m.EndSlot,null,a.createElement(h.Icon,{icon:l,className:r(w.icon,s&&w.disabled),onClick:s||o?void 0:this.props.onShowPicker})),"data-name":this.props.name}),this.props.showPicker&&!o?a.createElement(f.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},a.createElement(g.OutsideEvent,{mouseDown:!0,handler:this.props.onHidePicker},(t=>a.createElement("span",{ref:t,style:{pointerEvents:"auto"}},a.createElement("div",{className:r(w.picker,w[e]),key:"0",ref:this._onShowPicker,onKeyDown:this._handleDropdownKeydown},this.props.children))))):null)}static getDerivedStateFromProps(e,t){return e.value!==t.valueFromProps?{value:e.value,valueFromProps:e.value}:null}}D.defaultProps={showOnFocus:!0};class b extends a.PureComponent{constructor(e){super(e),this._input=null,this._nativeInputRef=a.createRef(),this._handleInputRef=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(this._input)},this._onFocus=()=>{this.setState({isFocused:!0})},this._onBlur=()=>{this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.state.value),this.setState({isFocused:!1})},this._onChange=e=>{const{value:t}=e.target;t&&(this.setState({value:t}),this.props.onChange(t))},this.state={value:e.value,isFocused:!1}}componentDidMount(){this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.props.value)}render(){const{className:e,containerClassName:t,disabled:n,errors:s,InputComponent:o=d.FormInput}=this.props,i=!this.props.readonly&&!n,l=this.props.showErrorMessages&&s&&s.length>0;return a.createElement("div",{className:r(w.pickerInput,t)},a.createElement(o,{value:this.state.value,readonly:!0,noReadonlyStyles:!0,
endSlot:s&&s.length?void 0:a.createElement(m.EndSlot,null,a.createElement(h.Icon,{icon:this.props.icon,className:r(w.icon,n&&w.disabled)})),className:e,inputClassName:w.textInput,size:this.props.size,disabled:n,hasErrors:l,errors:s,alwaysShowAttachedErrors:!0,messagesPosition:p.MessagesPosition.Attached,name:i?void 0:this.props.name,reference:this._handleInputRef,highlight:this.state.isFocused,intent:!l&&this.state.isFocused?"primary":void 0}),i&&a.createElement("input",{ref:this._nativeInputRef,type:this.props.type,className:w.nativePicker,onChange:this._onChange,onInput:this._onChange,min:this.props.min,max:this.props.max,name:this.props.name,onFocus:this._onFocus,onBlur:this._onBlur}))}}var y=n(23935),C=n(67029),E=n(53017),_=n(1401);class F extends a.PureComponent{constructor(e){super(e),this._pickerInputContainerRef=a.createRef(),this._pickerInpuRef=a.createRef(),this._dateFormatter=new l.DateFormatter,this._onPickerInputKeyDown=e=>{const t=(0,v.hashFromEvent)(e);if([v.Modifiers.Shift+9,9].includes(t))this._hideCalendar();else{if(40===t)return e.preventDefault(),this._showCalendar(),void this.setState({autofocusCalendar:!0});13===t&&this.props.onEnter&&this.props.onEnter(e),this._hideCalendar()}},this._returnFocusToInput=()=>{var e;this.setState({autofocusCalendar:!1}),null===(e=this._pickerInpuRef.current)||void 0===e||e.focus()},this._fixValue=e=>(e=(e=e.substring(0,10)).replace(/-+/g,"-"),(/^\d{4}$/.test(e)||/^\d{4}-\d{2}$/.test(e))&&(e+="-"),e),this._isValid=e=>{if(/^[0-9]{4}(-[0-9]{2}){2}/.test(e)){const t=new Date(e.concat("T00:00"));return!(0,y.isInvalidDateObj)(t)&&(!!(this.props.noRangeValidation||i.mobiletouch&&o.isIOS)||(0,y.isInRange)(t,this.props.minDate,this.props.maxDate))}return!1},this._onBlur=e=>{var t;if(!this.props.revertInvalidData||(null===(t=this._pickerInputContainerRef.current)||void 0===t?void 0:t.contains(e.relatedTarget)))return;const{value:n}=e.target;if(!this._isValid(n)){const t=new Date(this.state.date);this.setState({pickerInputKey:e.timeStamp,date:t,isInvalid:!1}),this.props.onPick(t)}},this._onType=e=>{const t=this._isValid(e)?new Date(e.concat("T00:00")):null;t?this.setState({date:t,isInvalid:!1}):this.setState({isInvalid:!0}),this.props.onPick(t)},this._onSelect=e=>{this.setState({date:e,showCalendar:!1,isInvalid:!1}),this.props.onPick(e)},this._showCalendar=()=>{this.setState({showCalendar:!0})},this._hideCalendar=()=>{this.setState({showCalendar:!1,autofocusCalendar:!1})},this._getErrors=()=>{const e=this.props.errors?[...this.props.errors]:[];return this.state.isInvalid&&e.push(s.t(null,void 0,n(5122))),e},this.state={pickerInputKey:0,date:e.initial,showCalendar:!1,isInvalid:!this._isValid(this._dateFormatter.formatLocal(e.initial)),autofocusCalendar:!1,initial:e.initial}}render(){const e=this.props.endSlotComponent,t=(0,E.mergeRefs)([this._pickerInpuRef,this.props.inputReference]);return i.mobiletouch?a.createElement(b,{value:this._dateFormatter.formatLocal(this.state.date),type:"date",onChange:this._onType,icon:_,disabled:this.props.disabled,size:this.props.size,
min:this.props.minDate&&this._dateFormatter.formatLocal(this.props.minDate),max:this.props.maxDate&&this._dateFormatter.formatLocal(this.props.maxDate),errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,className:r(this._getFontSizeClassName(this.props.size),this.props.className),containerClassName:this.props.containerClassName,inputReference:this.props.inputReference,InputComponent:this.props.InputComponent}):a.createElement("div",{className:this.props.containerClassName,ref:this._pickerInputContainerRef},a.createElement(D,{key:this.state.pickerInputKey,value:this._dateFormatter.formatLocal(this.state.date),inputRegex:/[0-9.]/,fixValue:this._fixValue,onType:this._onType,onBlur:this._onBlur,onShowPicker:this._showCalendar,onHidePicker:this._hideCalendar,showPicker:this.state.showCalendar&&this.props.withCalendar,showOnFocus:this.props.showOnFocus,icon:_,disabled:this.props.disabled,size:this.props.size,errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,position:this.props.position,className:r(this._getFontSizeClassName(this.props.size),this.props.className),inputReference:t,InputComponent:this.props.InputComponent,onKeyDown:this._onPickerInputKeyDown,onFocus:this.props.onFocus},a.createElement(c.Calendar,{selectedDate:this.state.date,maxDate:this.props.maxDate,minDate:this.props.minDate,onSelect:this._onSelect,endSlot:e&&a.createElement(e,{onSelectDate:this._onSelect}),autoFocus:this.state.autofocusCalendar,showFocusRing:this.state.autofocusCalendar,focusTriggerElement:this._returnFocusToInput,withFocusTrap:!0})))}static getDerivedStateFromProps(e,t){return t.initial!==e.initial?{...t,date:e.initial,initial:e.initial}:null}_getFontSizeClassName(e){return e?"large"===e?C.InputClasses.FontSizeLarge:C.InputClasses.FontSizeMedium:void 0}}F.defaultProps={position:"fixed",withCalendar:!0}},76056:(e,t,n)=>{"use strict";n.d(t,{DateInput:()=>m});var s=n(50959),a=n(11542),r=n(9745),o=n(78274),i=n(86623),l=n(97754),c=n.n(l),u=n(30247);function h(e){const{className:t,text:n}=e;return s.createElement("span",{className:c()(u.tooltip,t)},n)}var d=n(98475);const p=n(53209);function m(e){const{hasErrors:t,onClick:l,errors:c,className:u,theme:m=p,...g}=e;return s.createElement("div",{className:m.container,onClick:l},s.createElement(i.FormInput,{...g,className:m.date,hasErrors:t,errors:[],endSlot:!t&&s.createElement(o.EndSlot,{icon:!0,interactive:!1},s.createElement(r.Icon,{icon:d,className:m.icon}))}),t&&s.createElement(h,{text:a.t(null,void 0,n(32457)),className:m.tooltip}))}},23935:(e,t,n)=>{"use strict";n.d(t,{addLocalTime:()=>b,getCloneDateWithOffset:()=>N,getDateInTabOrder:()=>R,getDecades:()=>_,getDecadesStart:()=>y,getFirstEnabledDay:()=>M,getFirstEnabledMonth:()=>S,getFirstEnabledYear:()=>k,getMonths:()=>E,getWeeks:()=>C,isDayDisabled:()=>F,isInRange:()=>f,isInvalidDateObj:()=>v,isSameDay:()=>u,isSameMonth:()=>h,isSameYear:()=>d,resetToDayEnd:()=>o,resetToDayStart:()=>r,
subtractLocalTime:()=>D,twoDigitsFormat:()=>a});var s=n(15499);function a(e){return("0"+e).slice(-2)}function r(e){const t=new Date(e);return t.setMilliseconds(0),t.setSeconds(0),t.setMinutes(0),t.setHours(0),t}function o(e){const t=new Date(e);return t.setMilliseconds(999),t.setSeconds(59),t.setMinutes(59),t.setHours(23),t}function i(e,t=!1){const n=r(e),s=t?function(e){if(e>6)throw new Error("Invalid day is provided");return 0===e?6:e-1}(n.getDay()):n.getDay();return n.setDate(n.getDate()-s),n}function l(e){const t=r(e);return t.setDate(1),t}function c(e){const t=l(e);return t.setMonth(1),t}function u(e,t){return!!t&&Number(r(e))===Number(r(t))}function h(e,t){return!!t&&Number(l(e))===Number(l(t))}function d(e,t){return!!t&&Number(c(e))===Number(c(t))}function p(e){const t=new Date(e.getFullYear(),0,1),n=(Number(e)-Number(t))/864e5;return Math.ceil((n+t.getDay()+1)/7)}function m(e){const t=new Date(e);return t.setDate(t.getDate()+7),t}const g={day:r,month:l,year:c};function f(e,t,n,s="day"){const a=g[s],r=!t||Number(a(t))-Number(a(e))<=0;return(!n||Number(a(n))-Number(a(e))>=0)&&r}function v(e){return Number.isNaN(Number(e))}function w(e){return new Date(e).getTimezoneOffset()/60}function D(e){const t=new Date(e);return t.setHours(t.getHours()+w(t)),t}function b(e){const t=new Date(e);return t.setHours(t.getHours()-w(t)),t}function y(e){const t=e.getFullYear()%10*-1,n=new Date(e);return n.setFullYear(e.getFullYear()+t),n}function C(e){const t=[];let n=i(l(e),!0);for(let s=0;s<6;s++){const s=[];for(let t=0;t<7;t++){const a=new Date(n);a.setDate(a.getDate()+t),h(a,e)&&s.push(a)}s.length&&t.push({week:p(n),days:s}),n=new Date(m(n))}return t}function E(e){return s.MONTHS_SHORT.map(((t,n)=>{const a=l(e);return a.setMonth(n),{title:t,ariaLabel:s.MONTHS[n],date:a}}))}function _(e){const t=[];for(let n=0;n<s.DECADES_YEARS_AMOUNT;n++){const s=new Date(e);s.setFullYear(e.getFullYear()+n),t.push(s)}return t}function F({day:e,minDate:t,maxDate:n,disableWeekends:s=!1}){if(!f(e,t,n))return!0;const a=[6,0].includes(e.getDay());return!!s&&a}function M(e,t){return function n(s=0,a=0){if(!e[s]||!e[s].days[a])return;const r=e[s].days,o=r[a];return t(o)?a+1<r.length?n(s,a+1):n(s+1,0):o}()}function S(e,t){return function n(s=0){if(!e[s])return;const a=e[s].date;return t(a)?n(s+1):a}()}function k(e,t){return function n(s=0){if(!e[s])return;const a=e[s];return t(a)?n(s+1):a}()}function N({dateFrom:e,offset:t,level:n="day",maxIterations:s=6,isDisabledDate:a=(()=>!1)}){return function e(r,o=0){const i=new Date(r);switch(n){case"day":i.setDate(i.getDate()+t);break;case"month":i.setMonth(i.getMonth()+t);break;case"year":i.setFullYear(i.getFullYear()+t)}const l=a(i);return o>s||!l?l?null:i:e(i,o+1)}(e)}function R({selectedDate:e,dateToFocus:t,currentlyFocused:n,firstEnabledDate:s,getFirstDate:a,getLastDate:r,isDisabledDate:o}){const i=f(e,a(),r(),"day")&&!o(e)?e:null,l=t&&f(t,a(),r(),"day")&&!o(t)?t:null;return(n&&f(n,a(),r(),"day")&&!o(n)?n:null)||i||l||s}},70412:(e,t,n)=>{"use strict";n.d(t,{hoverMouseEventFilter:()=>r,
useAccurateHover:()=>o,useHover:()=>a});var s=n(50959);function a(){const[e,t]=(0,s.useState)(!1);return[e,{onMouseOver:function(e){r(e)&&t(!0)},onMouseOut:function(e){r(e)&&t(!1)}}]}function r(e){return!e.currentTarget.contains(e.relatedTarget)}function o(e){const[t,n]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{const t=t=>{if(null===e.current)return;const s=e.current.contains(t.target);n(s)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)}),[]),t}},86623:(e,t,n)=>{"use strict";n.d(t,{FormInput:()=>c});var s=n(50959),a=n(31261),r=n(95263),o=n(78274),i=n(47201),l=n(38528);function c(e){var t;const{intent:n,onFocus:c,onBlur:u,onMouseOver:h,onMouseOut:d,containerReference:p=null,endSlot:m,hasErrors:g,hasWarnings:f,hasSuccessMessages:v,errors:w,warnings:D,successMessages:b,alwaysShowAttachedErrors:y,iconHidden:C,messagesPosition:E,messagesAttachment:_,customErrorsAttachment:F,messagesRoot:M,inheritMessagesWidthFromTarget:S,disableMessagesRtlStyles:k,"aria-required":N,"aria-invalid":R,"aria-label":x,inputDescription:T,...I}=e,P=(0,r.useControlValidationLayout)({hasErrors:g,hasWarnings:f,hasSuccessMessages:v,errors:w,warnings:D,successMessages:b,alwaysShowAttachedErrors:y,iconHidden:C,messagesPosition:E,messagesAttachment:_,customErrorsAttachment:F,messagesRoot:M,inheritMessagesWidthFromTarget:S,disableMessagesRtlStyles:k,inputDescription:T}),A=(0,i.createSafeMulticastEventHandler)(c,P.onFocus),Y=(0,i.createSafeMulticastEventHandler)(u,P.onBlur),O=(0,i.createSafeMulticastEventHandler)(h,P.onMouseOver),V=(0,i.createSafeMulticastEventHandler)(d,P.onMouseOut);return s.createElement(s.Fragment,null,s.createElement(a.InputControl,{...I,intent:null!==(t=P.intent)&&void 0!==t?t:n,onFocus:A,onBlur:Y,onMouseOver:O,onMouseOut:V,containerReference:(0,l.useMergedRefs)([p,P.containerReference]),endSlot:s.createElement(s.Fragment,null,P.icon&&s.createElement(o.EndSlot,{icon:!0},P.icon),m),"aria-required":N,"aria-invalid":R,"aria-describedby":P.ariaIds,"aria-label":x}),P.renderedErrors)}},36565:(e,t,n)=>{"use strict";n.d(t,{TimeInput:()=>A});var s=n(49483),a=n(50959),r=n(97754),o=n.n(r),i=n(50151),l=n(47201),c=n(78274),u=n(31261),h=n(9745),d=n(43832),p=n(95096);function m(e){return a.createElement(h.Icon,{className:d.icon,icon:p})}var g=n(29202),f=n(78634);var v=n(36383),w=n(37160);const D={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}};function b(e,t,n){const s=[],a=n;let r=0,o=0;const i=e.length,l=a.length;let c=-1,u=0;const h=[],d=i-1,p=[];let m;for(;r<i&&o<l;){const n=e.charAt(r),i=a.charAt(o),l=D[n];l?(i.match(l.pattern)?(s.push(i),l.recursive&&(-1===c?c=r:r===d&&r!==c&&(r=c-1),d===c&&(r-=1)),r+=1):i===m?(u--,m=void 0):l.optional?(r+=1,o-=1):l.fallback?(s.push(l.fallback),r+=1,o-=1):p.push({p:o,v:i,e:l.pattern}),o+=1):(t||s.push(n),i===n?(h.push(o),o+=1):(m=n,h.push(o+u),u++),r+=1)}const g=e.charAt(d);i!==l+1||D[g]||s.push(g);const f=s.join(""),v=function(e,t){const n=0,s={}
;for(let e=0;e<t.length;e++)s[t[e]+n]=1;return s}(0,h);return[f,v,p]}function y(e,t,n){const s=function(e){let t=!0;for(let n=0;n<e.length;n++){const s=D[e.charAt(n)];if(s&&s.recursive){t=!1;break}}return t?e.length:void 0}(e),[r,o]=b(e,!1,t),[l,c]=(0,a.useState)(r),[u,h]=(0,a.useState)(0),[d,p]=(0,a.useState)(!1),m=(0,a.useRef)(o),g=(0,a.useRef)(l);return(0,a.useEffect)((()=>{const[n,s]=b(e,!1,t);c(n),f(s)}),[t,e]),(0,a.useLayoutEffect)((()=>{const e=(0,i.ensureNotNull)(n.current);d&&(e.setSelectionRange(u,u),p(!1)),h(C(e))}),[d]),[t,g,{onChange:function(){const t=(0,i.ensureNotNull)(n.current),s=t.value,[a,r]=b(e,!1,s);c(a),g.current=a;const o=f(r),d=function(e,t,n,s,a,r){if(e!==t){const o=t.length,i=e.length;let l=0,c=0,u=0,h=0,d=0;for(d=s;d<o&&a[d];d++)c++;for(d=s-1;d>=0&&a[d];d--)l++;for(d=s-1;d>=0;d--)a[d]&&u++;for(d=n-1;d>=0;d--)r[d]&&h++;if(s>i)s=10*o;else if(n>=s&&n!==i){if(r[s]){const e=s;s-=h-u,a[s-=l]&&(s=e)}}else s>n&&(s+=u-h,s+=c)}return s}(l,a,u,C(t),r,o);h(d),p(!0)},onSelect:function(){const e=(0,i.ensureNotNull)(n.current);h(C(e))},maxLength:s}];function f(e){const t=m.current;return m.current=e,t}}function C(e){return e.selectionStart||0}function E(e){const{value:t,mask:n,onChange:s,...r}=e,o=(0,a.useRef)(null),[i,l,c]=y(n,t,o);return(0,a.useLayoutEffect)((()=>{void 0!==e.reference&&(e.reference.current=o.current)}),[e.reference]),a.createElement(u.InputControl,{...r,maxLength:c.maxLength,value:i,autoComplete:"off",reference:function(e){o.current=e},onChange:function(){c.onChange(),s(l.current)},onSelect:c.onSelect})}var _=n(68335),F=n(20520),M=n(16396),S=n(78071);const k=(()=>{const e=[];for(let t=0;t<24;++t)for(let n=0;n<60;n+=15){const[s,a]=[I(t.toString()),I(n.toString())],r=`${s}:${a}`,o=x(r)?r:T(r);e.push(o)}return e})();function N(e){let t=!1;const n=(0,a.useRef)(null),s=(0,a.useRef)(null),r=(0,a.useRef)(null),l=(0,a.useRef)(null),[u,h]=(0,g.useFocus)(),[d,p]=(0,a.useState)(e.value),f=R(d),D=x(f)?f:T(f),[b,y]=(0,a.useState)(D),C=u||L().some((e=>null!==e&&e.contains(document.activeElement)));(0,a.useLayoutEffect)((()=>p(e.value)),[e.value]),(0,a.useLayoutEffect)((()=>y(D)),[d,C]),(0,a.useEffect)((()=>H(b===D?"auto":"smooth")),[b]);const N=(0,S.lowerbound)(k,D,((e,t)=>e<t));let I=k;k[N]!==D&&(I=[...k],I.splice(N,0,D));const P=(0,v.useOutsideEvent)({mouseDown:!0,touchStart:!0,handler:function(e){null!==s.current&&C&&e.target instanceof Node&&null!==r.current&&!r.current.contains(e.target)&&s.current.blur()}});return a.createElement("div",{className:o()(e.className),onKeyDown:function(e){if(e.defaultPrevented)return;const t=(0,_.hashFromEvent)(e.nativeEvent);if(38===t){e.preventDefault();const t=(I.indexOf(b)+I.length-1)%I.length;y(I[t])}if(40===t){e.preventDefault();const t=(I.indexOf(b)+I.length+1)%I.length;y(I[t])}},onFocus:function(e){V(e)||h.onFocus(e)},onBlur:function(e){V(e)||h.onBlur(e)},ref:P},a.createElement(E,{disabled:e.disabled,name:e.name,endSlot:a.createElement(c.EndSlot,{icon:!0},a.createElement(m,null)),reference:s,containerReference:n,mask:"09:00",value:d,onFocus:function(t){
var n;setTimeout(B,0),null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:function(e){V(e)||A(d)},onChange:function(t){p(t),e.onInput&&e.onInput(t)},onKeyDown:function(e){if(e.defaultPrevented)return;const t=(0,_.hashFromEvent)(e.nativeEvent);13===t&&(e.preventDefault(),A(b),(0,i.ensureNotNull)(s.current).blur());27===t&&(e.preventDefault(),(0,i.ensureNotNull)(s.current).blur())}}),a.createElement(F.PopupMenu,{onOpen:function(){H()},onClose:function(){},position:function(){const e=(0,i.ensureNotNull)(n.current).getBoundingClientRect(),t=window.innerHeight-e.bottom,s=e.top;let a=231,r=e.bottom;if(a>s&&a>t){const n=(0,w.clamp)(a,0,s),o=(0,w.clamp)(a,0,t);a=Math.max(n,o),r=n>o?e.top-n:e.bottom}else a>t&&(r=e.top-a);return{x:e.left,y:r,overrideWidth:e.width,overrideHeight:a}},closeOnClickOutside:!1,isOpened:C,tabIndex:-1,reference:r},I.map((e=>a.createElement(M.PopupMenuItem,{key:e,label:e,isActive:e===D,isHovered:e===b,reference:e===b?Y:void 0,onClick:O,onClickArg:e})))));function A(n){const s=R(n),a=x(s)?s:T(s);p(a),t||(t=!0,e.onChange(a))}function Y(e){l.current=e}function O(e){A((0,i.ensureDefined)(e)),(0,i.ensureNotNull)(r.current).blur()}function V(e){return u&&(null!==z(document.activeElement)||null!==z(e.relatedTarget))}function z(e){return e instanceof Node&&L().find((t=>null!==t&&t.contains(e)))||null}function L(){return[r.current,s.current]}function H(e="auto"){if(null!==l.current){const t=(0,i.ensureNotNull)(r.current).getBoundingClientRect(),n=l.current.getBoundingClientRect();(t.top>n.top||t.bottom<n.bottom)&&l.current.scrollIntoView({behavior:e})}}function B(){const e=s.current;if(null!==e){const t=e.value||"";e.setSelectionRange(0,t.length)}}}function R(e){const[t="",n=""]=e.split(":"),[s,a]=[I(t),P(n)];return`${s}:${a}`}function x(e){return/^(0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/g.test(e)}function T(e){const[t,n]=e.split(":"),[s,a]=[(0,w.clamp)(parseInt(t),0,23),(0,w.clamp)(parseInt(n),0,59)],[r,o]=[I(s.toString()),P(a.toString())];return`${r}:${o}`}function I(e){return e.slice(0,2).padStart(2,"0")}function P(e){return e.slice(0,2).padEnd(2,"0")}const A=s.CheckMobile.any()?function(e){const{onChange:t,onFocus:n,value:s,className:r,...h}=e,d=(0,a.useRef)(null),[p,v]=(0,g.useFocus)(),w=(0,l.createSafeMulticastEventHandler)(v.onBlur,(function(){d.current&&s&&(d.current.defaultValue=s)}));return(0,a.useLayoutEffect)((()=>{d.current&&s&&(d.current.defaultValue=s)}),[]),(0,a.useLayoutEffect)((()=>{d.current&&s&&(d.current.value=s)}),[s]),a.createElement("div",{className:o()(f.wrap,r)},a.createElement(u.InputControl,{...h,type:"text",endSlot:a.createElement(c.EndSlot,{icon:!0},a.createElement(m,null)),value:s,highlight:p,intent:p?"primary":void 0,onFocus:function(e){(0,i.ensureNotNull)(d.current).focus(),n&&n(e)},onChange:function(){}}),a.createElement("input",{...v,disabled:e.disabled,className:f.input,type:"time",onBlur:w,onChange:function(e){const{value:n}=e.currentTarget;t&&n&&t(n)},ref:d}))}:N},95263:(e,t,n)=>{"use strict";n.d(t,{MessagesPosition:()=>_,useControlValidationLayout:()=>I})
;var s=n(50959),a=n(97754);function r(e,t){(0,s.useEffect)((()=>(t&&t(e),()=>{t&&t(e)})),[])}var o=n(29202),i=n(70412),l=n(78274),c=n(1405),u=n(86431),h=n(962);var d=n(44022),p=n(38223);class m extends s.PureComponent{render(){const{children:e=[],show:t=!1,customErrorClass:n,disableRtlStyles:r,messageIdCallback:o}=this.props,i=a(d.errors,{[d.show]:t},n),l=e.map(((e,t)=>s.createElement(w,{key:t,messageIdCallback:o},e)));let c={position:"absolute",top:this.props.top,width:this.props.width,height:this.props.height,bottom:void 0!==this.props.bottom?this.props.bottom:"100%",right:void 0!==this.props.right?this.props.right:0,left:this.props.left,zIndex:this.props.zIndex,maxWidth:this.props.maxWidth};if((0,p.isRtl)()&&!r){const{left:e,right:t}=c;c={...c,left:t,right:e}}return s.createElement("div",{style:c,className:i},l)}}const g=(0,u.makeOverlapable)((f=m,(v=class extends s.PureComponent{constructor(e){super(e),this._getComponentInstance=e=>{this._instance=e},this._throttleCalcProps=()=>{requestAnimationFrame((()=>this.setState(this._calcProps(this.props))))},this.state=this._getStateFromProps()}componentDidMount(){this._instanceElem=h.findDOMNode(this._instance),this.props.attachOnce||this._subscribe(),this.setState(this._calcProps(this.props))}componentDidUpdate(e){e.children===this.props.children&&e.top===this.props.top&&e.left===this.props.left&&e.width===this.props.width||this.setState(this._getStateFromProps(),(()=>this.setState(this._calcProps(this.props))))}render(){return s.createElement("div",{style:{position:"absolute",width:"100%",top:0,left:0}},s.createElement(f,{...this.props,ref:this._getComponentInstance,top:this.state.top,bottom:void 0!==this.state.bottom?this.state.bottom:"auto",right:void 0!==this.state.right?this.state.right:"auto",left:this.state.left,width:this.state.width,maxWidth:this.state.maxWidth},this.props.children))}componentWillUnmount(){this._unsubsribe()}_getStateFromProps(){return{bottom:this.props.bottom,left:this.props.left,right:this.props.right,top:void 0!==this.props.top?this.props.top:-1e4,width:this.props.inheritWidthFromTarget?this.props.target&&this.props.target.getBoundingClientRect().width:this.props.width,maxWidth:this.props.inheritMaxWidthFromTarget&&this.props.target&&this.props.target.getBoundingClientRect().width}}_calcProps(e){if(e.target&&e.attachment&&e.targetAttachment){const t=this._calcTargetProps(e.target,e.attachment,e.targetAttachment);if(null===t)return{};const{width:n,inheritWidthFromTarget:s=!0,inheritMaxWidthFromTarget:a=!1}=this.props,r={width:s?t.width:n,maxWidth:a?t.width:void 0};switch(e.attachment.vertical){case"bottom":case"middle":r.top=t.y;break;default:r[e.attachment.vertical]=t.y}switch(e.attachment.horizontal){case"right":case"center":r.left=t.x;break;default:r[e.attachment.horizontal]=t.x}return r}return{}}_calcTargetProps(e,t,n){const s=e.getBoundingClientRect(),a=this._instanceElem.getBoundingClientRect(),r="parent"===this.props.root?this._getCoordsRelToParentEl(e,s):this._getCoordsRelToDocument(s);if(null===r)return null
;const o=this._getDimensions(a),i=this._getDimensions(s).width;let l=0,c=0;switch(t.vertical){case"top":c=r[n.vertical];break;case"bottom":c=r[n.vertical]-o.height;break;case"middle":c=r[n.vertical]-o.height/2}switch(t.horizontal){case"left":l=r[n.horizontal];break;case"right":l=r[n.horizontal]-o.width;break;case"center":l=r[n.horizontal]-o.width/2}return"number"==typeof this.props.attachmentOffsetY&&(c+=this.props.attachmentOffsetY),"number"==typeof this.props.attachmentOffsetX&&(l+=this.props.attachmentOffsetX),{x:l,y:c,width:i}}_getCoordsRelToDocument(e){const t=pageYOffset,n=pageXOffset,s=e.top+t,a=e.bottom+t,r=e.left+n;return{top:s,bottom:a,left:r,right:e.right+n,middle:(s+e.height)/2,center:r+e.width/2}}_getCoordsRelToParentEl(e,t){const n=e.offsetParent;if(null===n)return null;const s=n.scrollTop,a=n.scrollLeft,r=e.offsetTop+s,o=e.offsetLeft+a,i=t.width+o;return{top:r,bottom:t.height+r,left:o,right:i,middle:(r+t.height)/2,center:(o+t.width)/2}}_getDimensions(e){return{height:e.height,width:e.width}}_subscribe(){"document"===this.props.root&&(window.addEventListener("scroll",this._throttleCalcProps,!0),window.addEventListener("resize",this._throttleCalcProps))}_unsubsribe(){window.removeEventListener("scroll",this._throttleCalcProps,!0),window.removeEventListener("resize",this._throttleCalcProps)}}).displayName="Attachable Component",v));var f,v;function w(e){const{children:t,messageIdCallback:n,...a}=e;return s.createElement("div",{...a,className:d.error},t)}function D(e){const{children:t,messageIdCallback:n,...a}=e,o=s.useId();return r(o,n),s.createElement("span",{...a,className:d["visually-hidden"],id:o},t)}var b=n(9745),y=n(16658),C=n(40461);function E(e){const{intent:t="danger"}=e;return s.createElement(b.Icon,{icon:y,className:a(C["error-icon"],C[`intent-${t}`])})}var _,F,M=n(27345);!function(e){e[e.Attached=0]="Attached",e[e.Static=1]="Static",e[e.Hidden=2]="Hidden"}(_||(_={})),function(e){e.Top="top",e.Bottom="bottom"}(F||(F={}));const S={top:{attachment:c.anchors.topRight.attachment,targetAttachment:c.anchors.topRight.targetAttachment,attachmentOffsetY:-4},bottom:{attachment:c.anchors.bottomRight.attachment,targetAttachment:c.anchors.bottomRight.targetAttachment,attachmentOffsetY:4}};function k(e){const{isOpened:t,target:n,errorAttachment:a=F.Top,customErrorsAttachment:r,root:o="parent",inheritWidthFromTarget:i=!1,disableRtlStyles:l,children:c,messageIdCallback:u}=e,{attachment:h,targetAttachment:d,attachmentOffsetY:p}=null!=r?r:S[a];return s.createElement(s.Fragment,null,s.createElement(g,{isOpened:t,target:n,root:o,inheritWidthFromTarget:i,attachment:h,targetAttachment:d,attachmentOffsetY:p,disableRtlStyles:l,messageIdCallback:u,inheritMaxWidthFromTarget:!0,show:!0},c),s.createElement(D,{messageIdCallback:u},c))}function N(e,t){return Boolean(e)&&void 0!==t&&t.length>0}function R(e,t,n){return e===_.Attached&&N(t,n)}function x(e,t,n){return e===_.Static&&N(t,n)}function T(e,t,n){
const{hasErrors:s,hasWarnings:a,hasSuccessMessages:r,alwaysShowAttachedErrors:o,iconHidden:i,errors:l,warnings:c,successMessages:u,messagesPosition:h=_.Static}=e,d=R(h,s,l),p=R(h,a,c),m=d&&(t||n||Boolean(o)),g=!m&&p&&(t||n),f=x(h,s,l),v=!f&&x(h,a,c),w=!f&&!v&&x(h,r,u),D=!i&&Boolean(s),b=!i&&!D&&Boolean(a),y=function(e,t,n){return Boolean(n)?"success":Boolean(e)?"danger":Boolean(t)?"warning":void 0}(s,a,r);return{hasAttachedErrorMessages:d,hasAttachedWarningMessages:p,showAttachedErrorMessages:m,showAttachedWarningMessages:g,showStaticErrorMessages:f,showStaticWarningMessages:v,showStaticSuccessMessages:w,showErrorIcon:D,showWarningIcon:b,intent:y}}function I(e){var t,n,r,c;const{errors:u,warnings:h,successMessages:d,messagesAttachment:p,customErrorsAttachment:m,messagesRoot:g,inheritMessagesWidthFromTarget:f,disableMessagesRtlStyles:v,inputDescription:w}=e,[D,b]=(0,o.useFocus)(),[y,C]=(0,i.useHover)(),_=(0,s.useRef)(null),[F,S]=s.useState(void 0),N=(0,s.useRef)(new Map),R=s.useCallback((e=>{if(!e)return;const t=N.current;t.has(e)?t.delete(e):t.set(e,e),0!==t.size?S(Array.from(t.keys()).join(" ")):S(void 0)}),[S,N.current]),{hasAttachedErrorMessages:x,hasAttachedWarningMessages:I,showAttachedErrorMessages:A,showAttachedWarningMessages:Y,showStaticErrorMessages:O,showStaticWarningMessages:V,showStaticSuccessMessages:z,showErrorIcon:L,showWarningIcon:H,intent:B}=T(e,D,y),$=L||H?s.createElement(E,{intent:L?"danger":"warning"}):void 0,K=x?s.createElement(k,{errorAttachment:p,customErrorsAttachment:m,isOpened:A,target:_.current,root:g,inheritWidthFromTarget:f,disableRtlStyles:v,children:u,messageIdCallback:R}):void 0,W=I?s.createElement(k,{errorAttachment:p,isOpened:Y,target:_.current,root:g,inheritWidthFromTarget:f,disableRtlStyles:v,children:h,messageIdCallback:R}):void 0,j=O?s.createElement(l.AfterSlot,{className:a(M["static-messages"],M.errors)},null==u?void 0:u.map(((e,t)=>s.createElement(P,{key:t,messageIdCallback:R},e)))):void 0,J=V?s.createElement(l.AfterSlot,{className:a(M["static-messages"],M.warnings)},null==h?void 0:h.map(((e,t)=>s.createElement(P,{key:t,messageIdCallback:R},e)))):void 0,q=z?s.createElement(l.AfterSlot,{className:a(M["static-messages"],M["success-mesages"])},null==d?void 0:d.map(((e,t)=>s.createElement(P,{key:t,messageIdCallback:R},e)))):void 0,U=!O&&!V&&!z&&w?s.createElement(l.AfterSlot,{className:a(M["static-messages"],M["input-description"])},s.createElement(P,{messageIdCallback:R},w)):void 0;return{ariaIds:F,icon:$,renderedErrors:null!==(c=null!==(r=null!==(n=null!==(t=null!=K?K:W)&&void 0!==t?t:j)&&void 0!==n?n:J)&&void 0!==r?r:q)&&void 0!==c?c:U,containerReference:_,intent:B,...b,...C}}function P(e){const{children:t,messageIdCallback:n,...a}=e,o=s.useId();return r(o,n),s.createElement("span",{...a,className:M.message,id:o},t)}},16396:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>c,PopupMenuItem:()=>h});var s=n(50959),a=n(97754),r=n(51768),o=n(59064),i=n(76068),l=n(71986);const c=l;function u(e){e.stopPropagation()}function h(e){
const{id:t,role:n,className:c,title:h,labelRowClassName:d,labelClassName:p,toolboxClassName:m,shortcut:g,forceShowShortcuts:f,icon:v,iconClassname:w,isActive:D,isDisabled:b,isHovered:y,appearAsDisabled:C,label:E,link:_,showToolboxOnHover:F,showToolboxOnFocus:M,target:S,rel:k,toolbox:N,reference:R,onMouseOut:x,onMouseOver:T,onKeyDown:I,suppressToolboxClick:P=!0,theme:A=l,tabIndex:Y,tagName:O,renderComponent:V,roundedIcon:z,iconAriaProps:L,circleLogo:H,dontClosePopup:B,onClick:$,onClickArg:K,trackEventObject:W,trackMouseWheelClick:j,trackRightClick:J,...q}=e,U=(0,s.useRef)(null),Q=(0,s.useMemo)((()=>function(e){function t(t){const{reference:n,...a}=t,r=null!=e?e:a.href?"a":"div",o="a"===r?a:function(e){const{download:t,href:n,hrefLang:s,media:a,ping:r,rel:o,target:i,type:l,referrerPolicy:c,...u}=e;return u}(a);return s.createElement(r,{...o,ref:n})}return t.displayName=`DefaultComponent(${e})`,t}(O)),[O]),Z=null!=V?V:Q;return s.createElement(Z,{...q,id:t,role:n,className:a(c,A.item,v&&A.withIcon,{[A.isActive]:D,[A.isDisabled]:b||C,[A.hovered]:y}),title:h,href:_,target:S,rel:k,reference:function(e){U.current=e,"function"==typeof R&&R(e);"object"==typeof R&&(R.current=e)},onClick:function(e){if(b)return;W&&(0,r.trackEvent)(W.category,W.event,W.label);$&&$(K,e);B||(0,o.globalCloseMenu)()},onContextMenu:function(e){W&&J&&(0,r.trackEvent)(W.category,W.event,`${W.label}_rightClick`)},onMouseUp:function(e){if(1===e.button&&_&&W){let e=W.label;j&&(e+="_mouseWheelClick"),(0,r.trackEvent)(W.category,W.event,e)}},onMouseOver:T,onMouseOut:x,onKeyDown:I,tabIndex:Y},H&&s.createElement(i.CircleLogo,{...L,className:l["disclosure-item-circle-logo"],size:"xxxsmall",logoUrl:H.logoUrl,placeholderLetter:H.placeholderLetter}),v&&s.createElement("span",{"aria-label":L&&L["aria-label"],"aria-hidden":L&&Boolean(L["aria-hidden"]),className:a(A.icon,z&&l["round-icon"],w),dangerouslySetInnerHTML:{__html:v}}),s.createElement("span",{className:a(A.labelRow,d)},s.createElement("span",{className:a(A.label,p)},E)),(void 0!==g||f)&&s.createElement("span",{className:A.shortcut},(X=g)&&X.split("+").join(" + ")),void 0!==N&&s.createElement("span",{onClick:P?u:void 0,className:a(m,A.toolbox,{[A.showOnHover]:F,[A.showOnFocus]:M})},N));var X}},20520:(e,t,n)=>{"use strict";n.d(t,{PopupMenu:()=>d});var s=n(50959),a=n(962),r=n(62942),o=n(42842),i=n(27317),l=n(29197);const c=s.createContext(void 0);var u=n(36383);const h=s.createContext({setMenuMaxWidth:!1});function d(e){const{controller:t,children:n,isOpened:d,closeOnClickOutside:p=!0,doNotCloseOn:m,onClickOutside:g,onClose:f,onKeyboardClose:v,"data-name":w="popup-menu-container",...D}=e,b=(0,s.useContext)(l.CloseDelegateContext),y=s.useContext(h),C=(0,s.useContext)(c),E=(0,u.useOutsideEvent)({handler:function(e){g&&g(e);if(!p)return;const t=(0,r.default)(m)?m():null==m?[]:[m];if(t.length>0&&e.target instanceof Node)for(const n of t){const t=a.findDOMNode(n);if(t instanceof Node&&t.contains(e.target))return}f()},mouseDown:!0,touchStart:!0});return d?s.createElement(o.Portal,{top:"0",left:"0",right:"0",
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4713],{37287:e=>{e.exports={calendar:"calendar-N6r5jhbE",popupStyle:"popupStyle-N6r5jhbE",header:"header-N6r5jhbE","flip-horizontal":"flip-horizontal-N6r5jhbE","sub-header":"sub-header-N6r5jhbE","view-month":"view-month-N6r5jhbE","view-year":"view-year-N6r5jhbE","view-decades":"view-decades-N6r5jhbE",weeks:"weeks-N6r5jhbE",week:"week-N6r5jhbE",day:"day-N6r5jhbE","accent-color":"accent-color-N6r5jhbE","current-day":"current-day-N6r5jhbE","slot-wrapper":"slot-wrapper-N6r5jhbE","hide-focus-ring":"hide-focus-ring-N6r5jhbE","decade-button":"decade-button-N6r5jhbE","visually-hidden":"visually-hidden-N6r5jhbE"}},53209:e=>{e.exports={container:"container-PNiXwSz6",icon:"icon-PNiXwSz6",tooltip:"tooltip-PNiXwSz6",date:"date-PNiXwSz6",time:"time-PNiXwSz6"}},20111:e=>{e.exports={pickerInput:"pickerInput-P2cJzZdH",icon:"icon-P2cJzZdH",disabled:"disabled-P2cJzZdH",picker:"picker-P2cJzZdH",fixed:"fixed-P2cJzZdH",absolute:"absolute-P2cJzZdH",nativePicker:"nativePicker-P2cJzZdH"}},30247:e=>{e.exports={tooltip:"tooltip-RU08GcsY"}},44022:e=>{e.exports={errors:"errors-bghR31WL",show:"show-bghR31WL",error:"error-bghR31WL","visually-hidden":"visually-hidden-bghR31WL"}},40461:e=>{e.exports={"error-icon":"error-icon-UhKAouIg","intent-danger":"intent-danger-UhKAouIg","intent-warning":"intent-warning-UhKAouIg"}},78634:e=>{e.exports={wrap:"wrap-NsE0FV0Z",input:"input-NsE0FV0Z"}},43832:e=>{e.exports={icon:"icon-Rubz29lH"}},27345:e=>{e.exports={"static-messages":"static-messages-cF4vS9J8",errors:"errors-cF4vS9J8",warnings:"warnings-cF4vS9J8","success-mesages":"success-mesages-cF4vS9J8","input-description":"input-description-cF4vS9J8",message:"message-cF4vS9J8"}},71986:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 430px)",item:"item-jFqVJoPk",hovered:"hovered-jFqVJoPk",isDisabled:"isDisabled-jFqVJoPk",isActive:"isActive-jFqVJoPk",shortcut:"shortcut-jFqVJoPk",toolbox:"toolbox-jFqVJoPk",withIcon:"withIcon-jFqVJoPk","round-icon":"round-icon-jFqVJoPk",icon:"icon-jFqVJoPk",labelRow:"labelRow-jFqVJoPk",label:"label-jFqVJoPk",showOnHover:"showOnHover-jFqVJoPk","disclosure-item-circle-logo":"disclosure-item-circle-logo-jFqVJoPk",showOnFocus:"showOnFocus-jFqVJoPk"}},78869:(e,t,n)=>{"use strict";n.d(t,{useRefsMap:()=>r});var s=n(50959);function r(){const e=(0,s.useRef)(new Map),t=(0,s.useCallback)((t=>n=>{null!==n?e.current.set(t,n):e.current.delete(t)}),[e]);return[e,t]}},47201:(e,t,n)=>{"use strict";function s(...e){return t=>{for(const n of e)void 0!==n&&n(t)}}n.d(t,{createSafeMulticastEventHandler:()=>s})},27365:(e,t,n)=>{"use strict";n.d(t,{getChartTimezoneOffsetMs:()=>o,getTimezoneName:()=>a});var s=n(41249),r=n.n(s);function a(e){const t=e.model().timezone();if("exchange"!==t)return t;const n=e.model().mainSeries().symbolInfo();return null==n?void 0:n.timezone}function o(e,t){if(void 0===t)return 0;return r().get_timezone(t).offset_utc(e)}},51826:(e,t,n)=>{"use strict";n.d(t,{DialogsOpenerManager:()=>s,dialogsOpenerManager:()=>r});class s{constructor(){
this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const r=new s},1405:(e,t,n)=>{"use strict";n.d(t,{anchors:()=>s});n(50959);const s={bottom:{attachment:{horizontal:"left",vertical:"top"},targetAttachment:{horizontal:"left",vertical:"bottom"}},top:{attachment:{horizontal:"left",vertical:"bottom"},targetAttachment:{horizontal:"left",vertical:"top"}},topRight:{attachment:{horizontal:"right",vertical:"bottom"},targetAttachment:{horizontal:"right",vertical:"top"}},bottomRight:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"bottom"}}}},15499:(e,t,n)=>{"use strict";n.d(t,{CalendarViewType:()=>w,DECADES_YEARS_AMOUNT:()=>y,MONTHS:()=>o,MONTHS_SHORT:()=>i,SUB_HEADER_DECADES:()=>D,SUB_HEADER_YEAR:()=>b,WEEKDAYS_MIN:()=>r,getCurrentAriaLabel:()=>F,getCurrentVisibleTitle:()=>M,getDayAriaLabel:()=>C,getNextAriaLabel:()=>_,getNextLiveRegionConfirmation:()=>k,getNextMonth:()=>R,getPrevAriaLabel:()=>E,getPrevLiveRegionConfirmation:()=>S,getViewTypeLiveRegionConfirmation:()=>N});var s=n(11542);const r=[s.t(null,{context:"day_of_week"},n(11268)),s.t(null,{context:"day_of_week"},n(31533)),s.t(null,{context:"day_of_week"},n(26230)),s.t(null,{context:"day_of_week"},n(24793)),s.t(null,{context:"day_of_week"},n(19801)),s.t(null,{context:"day_of_week"},n(63331)),s.t(null,{context:"day_of_week"},n(85954))],a=[s.t(null,void 0,n(72149)),s.t(null,void 0,n(61199)),s.t(null,void 0,n(44979)),s.t(null,void 0,n(7147)),s.t(null,void 0,n(7951)),s.t(null,void 0,n(72970)),s.t(null,void 0,n(1144))],o=[s.t(null,void 0,n(26910)),s.t(null,void 0,n(16467)),s.t(null,void 0,n(84675)),s.t(null,void 0,n(97637)),s.t(null,void 0,n(68327)),s.t(null,void 0,n(49385)),s.t(null,void 0,n(23230)),s.t(null,void 0,n(86797)),s.t(null,void 0,n(61132)),s.t(null,void 0,n(90784)),s.t(null,void 0,n(71194)),s.t(null,void 0,n(55669))],i=[s.t(null,void 0,n(95425)),s.t(null,void 0,n(35050)),s.t(null,void 0,n(51369)),s.t(null,void 0,n(42762)),s.t(null,void 0,n(68327)),s.t(null,void 0,n(15224)),s.t(null,void 0,n(6215)),s.t(null,void 0,n(38465)),s.t(null,void 0,n(57902)),s.t(null,void 0,n(73546)),s.t(null,void 0,n(71230)),s.t(null,void 0,n(92203))],l=s.t(null,void 0,n(2587)),c=s.t(null,void 0,n(39752)),u=s.t(null,void 0,n(39329)),h=s.t(null,void 0,n(83771)),d=s.t(null,void 0,n(27004)),p=s.t(null,void 0,n(75385)),m=s.t(null,void 0,n(83583)),g=s.t(null,void 0,n(80879)),f=s.t(null,void 0,n(6244)),v={setMonth:s.t(null,void 0,n(92702)),setYear:s.t(null,void 0,n(52051)),setDecades:s.t(null,void 0,n(99990))};var w;!function(e){e.Month="month",e.Year="year",e.Decades="decades"}(w||(w={}));const D=s.t(null,void 0,n(69325)),b=s.t(null,void 0,n(95543)),y=20;function C(e){return`${a[e.getDay()]} ${e.getDate()} ${o[e.getMonth()]} ${e.getFullYear()}`}function E(e,t){switch(e){case w.Month:{const e=new Date(t);return e.setMonth(e.getMonth()-1),`${l}, ${o[e.getMonth()]} ${e.getFullYear()}`}case w.Year:
return`${u}, ${t.getFullYear()-1}`;case w.Decades:return`${d}, ${t.getFullYear()-y} - ${t.getFullYear()-1}`}}function _(e,t){switch(e){case w.Month:{const e=new Date(t);return e.setMonth(e.getMonth()+1),`${c}, ${o[e.getMonth()]} ${e.getFullYear()}`}case w.Year:return`${h}, ${t.getFullYear()+1}`;case w.Decades:return`${p}, ${t.getFullYear()+y} - ${t.getFullYear()+2*y-1}`}}function F(e,t){switch(e){case w.Month:return`${m}, ${t.getFullYear()}`;case w.Year:return`${g}, ${t.getFullYear()} - ${t.getFullYear()+y-1}`;case w.Decades:return`${f}, ${o[t.getMonth()]} ${t.getFullYear()}`}}function M(e,t){switch(e){case w.Month:return`${o[t.getMonth()]} ${t.getFullYear()}`;case w.Year:return`${t.getFullYear()}`;case w.Decades:return`${t.getFullYear()} - ${t.getFullYear()+y-1}`}}function S(e,t){switch(e){case w.Month:{const e=new Date(t);return e.setMonth(e.getMonth()-1),v.setMonth.format({month:o[e.getMonth()]})}case w.Year:return v.setYear.format({year:""+(t.getFullYear()-1)});case w.Decades:return v.setDecades.format({year_start:""+(t.getFullYear()-y),year_end:""+(t.getFullYear()-1)})}}function k(e,t){switch(e){case w.Month:{const e=R(t);return v.setMonth.format({month:o[e.getMonth()]})}case w.Year:return v.setYear.format({year:`${t.getFullYear()+1}`});case w.Decades:return v.setDecades.format({year_start:`${t.getFullYear()+y}`,year_end:""+(t.getFullYear()+2*y-1)})}}function N(e,t){switch(e){case w.Month:return v.setYear.format({year:`${t.getFullYear()}`});case w.Year:return v.setDecades.format({year_start:`${t.getFullYear()}`,year_end:""+(t.getFullYear()+y-1)});case w.Decades:return v.setMonth.format({month:o[t.getMonth()]})}}function R(e){return 11===e.getMonth()?new Date(e.getFullYear()+1,0,1):new Date(e.getFullYear(),e.getMonth()+1,1)}},28746:(e,t,n)=>{"use strict";n.d(t,{Calendar:()=>E});var s=n(50959),r=n(97754),a=n(14543),o=n(17140),i=n(37287);function l(e){const{prevAriaLabel:t,nextAriaLabel:n,currentAriaLabel:r,currentVisibleTitle:l,isNextDisabled:c,isPrevDisabled:u,isViewModeDisabled:h,prevRef:d,middleRef:p,onPrevClick:m,onNextClick:g,onCurrentClick:f,onPrevKeyDown:v,onMiddleKeyDown:w,onHeaderKeyDown:D}=e;return s.createElement("div",{className:i.header,onKeyDown:D},s.createElement(a.LightButton,{startIcon:o,onClick:m,size:"small",variant:"ghost","aria-label":t,disabled:u,onKeyDown:v,reference:d}),s.createElement(a.LightButton,{size:"small",variant:"ghost","aria-label":r,onClick:f,disabled:h,onKeyDown:w,reference:p},l),s.createElement(a.LightButton,{startIcon:o,onClick:g,size:"small",variant:"ghost","aria-label":n,disabled:c,className:i["flip-horizontal"]}))}var c=n(23935),u=n(15499),h=n(53741);class d extends s.PureComponent{constructor(){super(...arguments),this._dateFormatter=new h.DateFormatter,this._getVariant=()=>{let e="ghost";return this._withinSelectedRange()&&(e=this.props.isDisabled?"secondary":"quiet-primary"),this._isOnHighlightedEdge()&&this.props.isDisabled&&(e="quiet-primary"),e},this._onClick=()=>{this.props.onClick&&!this.props.isDisabled&&this.props.onClick(new Date(this.props.day))}}render(){
const e=r(i.day,this.props.isDisabled&&i.disabled,!this.props.isDisabled&&(this.props.isSelected||this._isOnHighlightedEdge())&&i["accent-color"],this._withinSelectedRange()&&i["within-selected-range"],this._isCurrentDay()&&i["current-day"],!this.props.showFocusRing&&i["hide-focus-ring"]),t=this.props.isSelected||this._isOnHighlightedEdge()||this._withinSelectedRange(),n=t||this._isCurrentDay();return s.createElement(a.LightButton,{onClick:this._onClick,onFocus:this.props.onFocus,size:"small",variant:this._getVariant(),isSelected:n,"data-day":this._dateFormatter.formatLocal(this.props.day),className:e,disabled:this.props.isDisabled,reference:this.props.reference,tabIndex:this.props.tabIndex,"aria-label":(0,u.getDayAriaLabel)(this.props.day),"aria-selected":t,"aria-current":this._isCurrentDay()?"date":void 0},this.props.day.getDate())}_isOnHighlightedEdge(){const{day:e,highlightedFrom:t,highlightedTo:n}=this.props;return!(!t||!n)&&((0,c.isSameDay)(e,t)||(0,c.isSameDay)(e,n))}_withinSelectedRange(){const{day:e,highlightedFrom:t,highlightedTo:n}=this.props;return!(!t||!n)&&this._isBetweenByDay(t,e,n)}_isCurrentDay(){return(0,c.isSameDay)(new Date,this.props.day)}_isBetweenByDay(e,t,n){const s=(0,c.resetToDayStart)(e),r=(0,c.resetToDayStart)(t),a=(0,c.resetToDayStart)(n);return s<r&&r<a}}var p=n(78869),m=n(68335);function g({isDisabledDate:e,findDate:t,getFirstDate:n,getLastDate:r,setNext:a,setPrev:o,dateToFocus:i,verticalOffset:l,dateLevel:u}){const[h,d]=(0,p.useRefsMap)(),g=(0,s.useCallback)((t=>t?e(t)?null:t:null),[e]),f=(0,s.useCallback)(((n,s)=>{if(!n)return null;const r=(0,c.getCloneDateWithOffset)({dateFrom:n,offset:s,isDisabledDate:e,level:u});return g(t(r))}),[t,g]),v=(0,s.useCallback)((()=>{const e=n();return g(e)||f(e,1)}),[g,f]),w=(0,s.useCallback)((()=>{const e=r();return g(e)||f(e,-1)}),[g,f]),D=(0,s.useCallback)(((t,n)=>{if(!t)return;const s=(0,c.getCloneDateWithOffset)({dateFrom:t,offset:n,isDisabledDate:e,level:u});s&&(n>0?a(s):o(s))}),[e,a,o]),{currentlyFocused:b,setCurrentlyFocused:y,focusItem:C,bindings:E}=function({refsMap:e,verticalOffset:t,getNextKeyToFocus:n,getFirstKey:r,getLastKey:a,onGridEnd:o}){const[i,l]=(0,s.useState)(null),c=(0,s.useCallback)((t=>{if(!t)return;const n=e.current.get(t);n&&(n.focus(),l(t))}),[e]),u=(0,s.useCallback)((e=>{const t=n(i,e);t?c(t):o(i,e)}),[i,n]),h=(0,s.useCallback)((e=>{const n=(0,m.hashFromEvent)(e);if(40===n&&(e.preventDefault(),u(t)),38===n&&(e.preventDefault(),u(-1*t)),39===n&&(e.preventDefault(),u(1)),37===n&&(e.preventDefault(),u(-1)),36===n){e.preventDefault();const t=r();c(t)}if(35===n){e.preventDefault();const t=a();c(t)}}),[i,n]);return{currentlyFocused:i,setCurrentlyFocused:l,focusItem:c,bindings:{onKeyDown:h}}}({refsMap:h,verticalOffset:l,getNextKeyToFocus:f,getFirstKey:v,getLastKey:w,onGridEnd:D});return(0,s.useEffect)((()=>C(g(t(i)))),[i]),{itemsRefs:h,setItemRef:d,ensureNotDisabledDate:g,currentlyFocused:b,setCurrentlyFocused:y,focusItem:C,bindings:E}}function f(e){
const{selectedDate:t,dateToFocus:n,weeks:r,onClickDay:a,setPrevMonth:o,setNextMonth:l,maxDate:h,minDate:p,disableWeekends:m,showFocusRing:f,highlightedFrom:v,highlightedTo:w,isDisabled:D,focusableDateRef:b}=e,y=(0,s.useCallback)((e=>{if(!e)return null;let t=null;return r.find((({days:n})=>(t=n.find((t=>(0,c.isSameDay)(t,e))),t))),t}),[r]),C=(0,s.useCallback)((()=>r[0].days[0]),[r]),E=(0,s.useCallback)((()=>{const e=r[r.length-1].days;return e[e.length-1]}),[r]),_=(0,s.useCallback)((e=>D||(0,c.isDayDisabled)({day:e,minDate:p,maxDate:h,disableWeekends:m})),[p,h,m,D]),{itemsRefs:F,setItemRef:M,currentlyFocused:S,setCurrentlyFocused:k,bindings:N}=g({isDisabledDate:_,findDate:y,getFirstDate:C,getLastDate:E,setPrev:o,setNext:l,dateToFocus:n,verticalOffset:7,dateLevel:"day"}),R=(0,c.getDateInTabOrder)({selectedDate:t,dateToFocus:n,currentlyFocused:S,firstEnabledDate:(0,c.getFirstEnabledDay)(r,_),getFirstDate:C,getLastDate:E,isDisabledDate:_});return(0,s.useEffect)((()=>{b.current=R&&F.current.get(R)||null}),[R,b]),s.createElement(s.Fragment,null,s.createElement("div",{className:i["sub-header"],"aria-hidden":!0},u.WEEKDAYS_MIN.map((e=>s.createElement("span",{key:e},e)))),s.createElement("div",{className:i["view-month"],tabIndex:-1,...N},s.createElement("div",{className:i.weeks},r.map((({week:e,days:n})=>s.createElement("div",{className:i.week,key:e},n.map((e=>s.createElement(d,{key:e.toDateString(),day:e,isDisabled:_(e),isSelected:(0,c.isSameDay)(e,t),onClick:a,highlightedFrom:v,highlightedTo:w,reference:M(e),tabIndex:(0,c.isSameDay)(e,R)?0:-1,onFocus:(0,c.isSameDay)(e,R)?()=>k(e):void 0,showFocusRing:f})))))))))}function v(e){const{months:t,selectedDate:n,maxDate:r,minDate:o,showFocusRing:l,dateToFocus:h,isDisabled:d,focusableDateRef:p,onSelect:m,setPrevYear:f,setNextYear:v}=e,w=(0,s.useCallback)((e=>d||!(0,c.isInRange)(e,o,r,"month")),[o,r,d]),D=(0,s.useCallback)((e=>{if(!e)return null;let n=null;return t.find((({date:t})=>(n=(0,c.isSameMonth)(e,t)?t:null,n))),n}),[t]),b=(0,s.useCallback)((()=>t[0].date),[t]),y=(0,s.useCallback)((()=>t[t.length-1].date),[t]),{itemsRefs:C,setItemRef:E,currentlyFocused:_,setCurrentlyFocused:F,bindings:M}=g({isDisabledDate:w,findDate:D,getFirstDate:b,getLastDate:y,setPrev:f,setNext:v,verticalOffset:3,dateToFocus:h,dateLevel:"month"}),S=(0,c.getDateInTabOrder)({selectedDate:n,dateToFocus:h,currentlyFocused:_,firstEnabledDate:(0,c.getFirstEnabledMonth)(t,w),getFirstDate:b,getLastDate:y,isDisabledDate:w});return(0,s.useEffect)((()=>{p.current=S&&C.current.get(S)||null}),[S,p]),s.createElement(s.Fragment,null,s.createElement("div",{className:i["sub-header"],"aria-hidden":!0},s.createElement("span",null,u.SUB_HEADER_YEAR)),s.createElement("div",{className:i["view-year"],...M},t.map((({title:e,ariaLabel:t,date:r})=>{const o=(0,c.isSameMonth)(r,n),u=w(r),h=o?"quiet-primary":"ghost";return s.createElement(a.LightButton,{key:r.toDateString(),size:"small",variant:h,disabled:u,isSelected:o,className:!l&&i["hide-focus-ring"],onClick:()=>m(r),reference:E(r),tabIndex:(0,c.isSameMonth)(r,S)?0:-1,onFocus:(0,
c.isSameMonth)(r,S)?()=>F(r):void 0,"aria-label":`${t} ${r.getFullYear()}`,"aria-selected":o},e)}))))}function w(e){const{years:t,selectedDate:n,dateToFocus:o,maxDate:l,minDate:h,showFocusRing:d,isDisabled:p,focusableDateRef:m,onSelect:f,setPrevDecades:v,setNextDecades:w}=e,D=(0,s.useCallback)((e=>p||!(0,c.isInRange)(e,h,l,"year")),[h,l,p]),b=(0,s.useCallback)((e=>e&&t.find((t=>(0,c.isSameYear)(e,t)))||null),[t]),y=(0,s.useCallback)((()=>t[0]),[t]),C=(0,s.useCallback)((()=>t[t.length-1]),[t]),{itemsRefs:E,setItemRef:_,currentlyFocused:F,setCurrentlyFocused:M,bindings:S}=g({isDisabledDate:D,findDate:b,getFirstDate:y,getLastDate:C,setPrev:v,setNext:w,dateToFocus:o,verticalOffset:4,dateLevel:"year"}),k=(0,c.getDateInTabOrder)({selectedDate:n,dateToFocus:o,currentlyFocused:F,firstEnabledDate:(0,c.getFirstEnabledYear)(t,D),getFirstDate:y,getLastDate:C,isDisabledDate:D});return(0,s.useEffect)((()=>{m.current=k&&E.current.get(k)||null}),[k,m]),s.createElement(s.Fragment,null,s.createElement("div",{className:i["sub-header"],"aria-hidden":!0},s.createElement("span",null,u.SUB_HEADER_DECADES)),s.createElement("div",{className:i["view-decades"],...S},t.map((e=>{const t=e.getFullYear(),o=(0,c.isSameYear)(e,n),l=D(e),u=o?"quiet-primary":"ghost";return s.createElement(a.LightButton,{key:e.toDateString(),size:"small",variant:u,disabled:l,isSelected:o,className:r(i["decade-button"],!d&&i["hide-focus-ring"]),onClick:()=>f(e),reference:_(e),tabIndex:(0,c.isSameYear)(e,k)?0:-1,onFocus:(0,c.isSameYear)(e,k)?()=>M(e):void 0,"aria-selected":o},t)}))))}class D{constructor(e,t=[]){this._messagesQueue=[],this._alternate=!1,this._renderedMessage=null,this._idCounter=0,this._containers=[...t],this._type=e}setContainers(e){this._containers=[...e]}addMessage(e,t=0){const n=this._generateId(),s={id:n,message:e,destroyTimeout:this._calculateDestroyTimeout(e,t)};return this._messagesQueue.push(s),this._renderedMessage||this._renderMessage(),{...s,type:this._type,destroy:this._getDestroyMessageCallback(n)}}destroyAll(){var e;this._messagesQueue=[],clearTimeout(null===(e=this._renderedMessage)||void 0===e?void 0:e.destroyTimer),this._containers.forEach((e=>{e.innerText=""})),this._renderedMessage=null,this._alternate=!1}_generateId(){return`live-region-${this._type}-${this._idCounter++}`}_calculateDestroyTimeout(e,t=0){const n=50*e.trim().length+200,s=250*e.trim().length;return Math.min(Math.max(n,t),s)}_findById(e){var t;return(null===(t=this._renderedMessage)||void 0===t?void 0:t.id)===e?this._renderedMessage:this._messagesQueue.find((t=>t.id===e))}_getDestroyMessageCallback(e){return async t=>{const n=this._findById(e);return!!n&&(n.renderedTo?!!t&&(this._removeRenderedMessage(),this._renderMessage(),!0):(this._removeFromQueue(n),!0))}}_removeRenderedMessage(){var e;const t=null===(e=this._renderedMessage)||void 0===e?void 0:e.renderedTo;t&&(t.innerText=""),this._renderedMessage=null}_removeFromQueue(e){this._messagesQueue=this._messagesQueue.filter((t=>t!==e))}async _renderMessage(){if(!this._containers.length||!this._messagesQueue.length)return
;const e=this._alternate?this._containers[0]:this._containers[1],t=this._messagesQueue.shift();let n;e.innerText=t.message;const s=new Promise(((e,s)=>{n=setTimeout((()=>{var n;if((null===(n=this._renderedMessage)||void 0===n?void 0:n.id)===t.id)return this._removeRenderedMessage(),void this._renderMessage().then(e);s("Currently rendered message is not the one that you 're trying to destroy")}),t.destroyTimeout)}));this._renderedMessage={...t,renderedTo:e,destroyTimer:n,destroyPromise:s},this._alternate=!this._alternate}}class b extends D{}const y=new class{constructor(){this.isInited=!1,this._politeQueue=new b("polite"),this._assertiveQueue=new b("assertive")}renderTo(e,t=!1){return t&&this.destroy(),this._init(e)}destroy(){this._politeQueue.destroyAll(),this._assertiveQueue.destroyAll(),this.isInited=!1}sayPolitely(e,t){return this.isInited?this._politeQueue.addMessage(e,t):null}interrupt(e,t){return this.isInited?this._assertiveQueue.addMessage(e,t):null}_init(e){if(!e)return!1;if(this.isInited)return!1;return!!this._setContainers(e)&&(this.isInited=!0,!0)}_setContainers(e){const t=document.getElementById(e);if(!t)return!1;const n=t.querySelectorAll('[aria-live="polite"]'),s=t.querySelectorAll('[aria-live="assertive"]');return!(!n||2!==n.length||!s||2!==s.length)&&(this._politeQueue.setContainers([n[0],n[1]]),this._assertiveQueue.setContainers([s[0],s[1]]),!0)}};function C({viewType:e,decadesStartYear:t,viewDate:n,setPrev:r,setNext:a,switchViewType:o}){const[i,l]=(0,s.useState)(null),c=(0,s.useCallback)((e=>{i&&i.destroy(),l(y.sayPolitely(e))}),[i,l]);return{onPrevClick:(0,s.useCallback)((()=>{c((0,u.getPrevLiveRegionConfirmation)(e,e===u.CalendarViewType.Decades?t:n)),r(null)}),[r,c]),onNextClick:(0,s.useCallback)((()=>{c((0,u.getNextLiveRegionConfirmation)(e,e===u.CalendarViewType.Decades?t:n)),a(null)}),[a,c]),onSwitchViewType:(0,s.useCallback)((s=>{c((0,u.getViewTypeLiveRegionConfirmation)(e,e===u.CalendarViewType.Year?t:n)),o(s)}),[o,c])}}function E(e){const{selectedDate:t,maxDate:n,minDate:a,className:o,disableWeekends:h,highlightedFrom:d,highlightedTo:p,popupStyle:g=!0,showFocusRing:D=!1,autoFocus:b=!1,isDisabled:y=!1,withFocusTrap:E=!1,endSlot:_,onSelect:F,onMonthSwitch:M,onYearSwitch:S,onDecadesSwitch:k,onViewTypeChange:N,focusTriggerElement:R}=e,[x,T]=(0,s.useState)(D),I=(0,s.useCallback)((()=>T(!0)),[T]);(0,s.useEffect)((()=>{D&&T(!0)}),[D]);const P=(0,s.useCallback)((e=>{R&&38===(0,m.hashFromEvent)(e)&&(e.preventDefault(),e.stopPropagation(),T(!1),R())}),[R]),{viewDate:A,viewType:Y,dateToFocus:O,weeks:V,months:z,years:L,isNextDisabled:H,isPrevDisabled:B,setPrev:$,setNext:K,switchViewType:W,onClickDay:j,onClickMonth:J,onClickYear:q}=function({selectedDate:e,autoFocus:t,showFocusRing:n,minDate:r,maxDate:a,onSelect:o,onMonthSwitch:i,onYearSwitch:l,onDecadesSwitch:h,onViewTypeChange:d}){const[p,m]=(0,s.useState)(e),[g,f]=(0,s.useState)(u.CalendarViewType.Month),[v,w]=(0,s.useState)(t?e:null),D=(0,s.useMemo)((()=>(0,c.getDecadesStart)(p)),[p]),b=(0,s.useCallback)((e=>{const t=new Date(p),n=(0,
u.getNextMonth)(p),s=new Date(n.getFullYear(),n.getMonth()+e,0).getDate(),r=p.getDate()>s?s:p.getDate();t.setMonth(t.getMonth()+e,r),m(t),i&&i(t)}),[p,i]),y=(0,s.useCallback)((e=>{const t=new Date(p);t.setFullYear(t.getFullYear()+e),m(t),l&&l(t)}),[p,l]),C=(0,s.useCallback)((e=>{const t=new Date(D);t.setFullYear(t.getFullYear()+e),m(t),h&&h(t)}),[D,p,h]),E=(0,s.useCallback)(((e,t)=>{switch(t&&w(t),g){case u.CalendarViewType.Month:return b(1*e);case u.CalendarViewType.Year:return y(1*e);case u.CalendarViewType.Decades:return C(e*u.DECADES_YEARS_AMOUNT)}}),[g,b,y,C]),_=(0,s.useCallback)((e=>E(-1,e)),[E]),F=(0,s.useCallback)((e=>E(1,e)),[E]),M=(0,s.useCallback)((()=>{const e=Object.values(u.CalendarViewType);let t=e.indexOf(g)+1;t>=e.length&&(t=0),f(e[t]),d&&d(e[t])}),[g]),S=(0,s.useCallback)((e=>{m(new Date(e)),o&&o(new Date(e))}),[o]),k=(0,s.useCallback)((e=>{const t=new Date(p);t.setMonth(e.getMonth()),(0,c.isSameMonth)(t,e)||t.setMonth(e.getMonth(),1),m(t);const n=new Date(v||p);n.setMonth(e.getMonth()),(0,c.isSameMonth)(n,e)||n.setMonth(e.getMonth(),1),w(n),f(u.CalendarViewType.Month)}),[p,o,M]),N=(0,s.useCallback)((e=>{const t=new Date(p);t.setFullYear(e.getFullYear()),m(t);const n=new Date(v||p);n.setFullYear(e.getFullYear()),w(n),f(u.CalendarViewType.Year)}),[p,o,M]),R=(0,s.useMemo)((()=>(0,c.getWeeks)(p)),[p]),x=(0,s.useMemo)((()=>(0,c.getMonths)(p)),[p]),T=(0,s.useMemo)((()=>(0,c.getDecades)(D)),[D]),I=(0,s.useMemo)((()=>{switch(g){case u.CalendarViewType.Month:{const e=R[R.length-1].days,t=new Date(e[e.length-1]);return t.setDate(t.getDate()+1),!(0,c.isInRange)(t,r,a)}case u.CalendarViewType.Year:{const e=new Date(x[x.length-1].date);return e.setMonth(e.getMonth()+1),!(0,c.isInRange)(e,r,a,"month")}case u.CalendarViewType.Decades:{const e=new Date(T[T.length-1]);return e.setFullYear(e.getFullYear()+1),!(0,c.isInRange)(e,r,a,"year")}}}),[g,r,a,R,x,T]),P=(0,s.useMemo)((()=>{switch(g){case u.CalendarViewType.Month:{const e=new Date(R[0].days[0]);return e.setDate(e.getDate()-1),!(0,c.isInRange)(e,r,a)}case u.CalendarViewType.Year:{const e=new Date(x[0].date);return e.setMonth(e.getMonth()-1),!(0,c.isInRange)(e,r,a,"month")}case u.CalendarViewType.Decades:{const e=new Date(T[0]);return e.setFullYear(e.getFullYear()-1),!(0,c.isInRange)(e,r,a,"year")}}}),[g,r,a,R,x,T]);return(0,s.useEffect)((()=>{!v&&n&&t&&w(e),n||w(null)}),[t,e,v,n]),{viewDate:p,viewType:g,dateToFocus:v,weeks:R,months:x,years:T,isNextDisabled:I,isPrevDisabled:P,setPrev:_,setNext:F,switchViewType:M,onClickDay:S,onClickMonth:k,onClickYear:N}}({selectedDate:t,minDate:a,maxDate:n,autoFocus:b,showFocusRing:x,onMonthSwitch:M,onYearSwitch:S,onDecadesSwitch:k,onViewTypeChange:N,onSelect:F}),{focusableDateRef:U,prevRef:Q,middleRef:Z,onPrevKeyDown:X,onMiddleKeyDown:G,forwardFocusToStart:ee}=function({withFocusTrap:e,isPrevDisabled:t}){const n=(0,s.useRef)(null),r=(0,s.useCallback)((t=>{var s;e&&m.Modifiers.Shift+9===(0,m.hashFromEvent)(t)&&(t.preventDefault(),null===(s=n.current)||void 0===s||s.focus())}),[e]),a=(0,s.useCallback)((e=>{t||r(e)}),[t,r]),o=(0,
s.useCallback)((e=>{t&&r(e)}),[t,r]),i=(0,s.useRef)(null),l=(0,s.useRef)(null),c=(0,s.useCallback)((e=>{var n,s;e.preventDefault(),e.stopPropagation(),t?null===(s=l.current)||void 0===s||s.focus():null===(n=i.current)||void 0===n||n.focus()}),[t]);return{focusableDateRef:n,prevRef:i,middleRef:l,onPrevKeyDown:a,onMiddleKeyDown:o,forwardFocusToStart:c}}({withFocusTrap:E,isPrevDisabled:B}),te=(0,s.useMemo)((()=>L[0]),[L]),{onPrevClick:ne,onNextClick:se,onSwitchViewType:re}=C({viewType:Y,decadesStartYear:te,viewDate:A,setPrev:$,setNext:K,switchViewType:W});return s.createElement("div",{className:r(i.calendar,g&&i.popupStyle,o),tabIndex:-1,onKeyDown:I},s.createElement(l,{prevAriaLabel:(0,u.getPrevAriaLabel)(Y,Y===u.CalendarViewType.Decades?te:A),nextAriaLabel:(0,u.getNextAriaLabel)(Y,Y===u.CalendarViewType.Decades?te:A),currentAriaLabel:(0,u.getCurrentAriaLabel)(Y,Y===u.CalendarViewType.Year?te:A),currentVisibleTitle:(0,u.getCurrentVisibleTitle)(Y,Y===u.CalendarViewType.Decades?te:A),onPrevClick:ne,onNextClick:se,onPrevKeyDown:X,onMiddleKeyDown:G,onHeaderKeyDown:P,onCurrentClick:re,isNextDisabled:y||H,isPrevDisabled:y||B,isViewModeDisabled:y,prevRef:Q,middleRef:Z}),Y===u.CalendarViewType.Month&&s.createElement(f,{weeks:V,selectedDate:t,dateToFocus:O,maxDate:n,minDate:a,onClickDay:j,disableWeekends:h,highlightedFrom:d,highlightedTo:p,setPrevMonth:$,setNextMonth:K,showFocusRing:x,isDisabled:y,focusableDateRef:U}),Y===u.CalendarViewType.Year&&s.createElement(v,{months:z,selectedDate:t,dateToFocus:O,maxDate:n,minDate:a,onSelect:J,setPrevYear:$,setNextYear:K,showFocusRing:x,isDisabled:y,focusableDateRef:U}),Y===u.CalendarViewType.Decades&&s.createElement(w,{years:L,selectedDate:t,dateToFocus:O,maxDate:n,minDate:a,onSelect:q,setPrevDecades:$,setNextDecades:K,showFocusRing:x,isDisabled:y,focusableDateRef:U}),s.createElement("div",{className:i["slot-wrapper"]},_),E&&s.createElement("div",{tabIndex:0,onFocus:ee}))}},85528:(e,t,n)=>{"use strict";n.d(t,{DatePicker:()=>F});var s=n(11542),r=n(50959),a=n(97754),o=n(5325),i=n(32563),l=n(53741),c=n(28746),u=n(50151),h=n(9745),d=n(86623),p=n(95263),m=n(78274),g=n(52778),f=n(42842),v=n(68335),w=n(20111);class D extends r.PureComponent{constructor(e){super(e),this._input=null,this._inputContainer=null,this._handleFocus=e=>{var t,n;this.props.showOnFocus&&this.props.onShowPicker(),null===(n=(t=this.props).onFocus)||void 0===n||n.call(t,e)},this._handleInputRef=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(this._input)},this._handleContainerRef=e=>{this._inputContainer=e},this._onShowPicker=e=>{if(e&&this._inputContainer){const t=e.getBoundingClientRect(),n=this._inputContainer.getBoundingClientRect();t.width&&t.width>window.innerWidth-n.left?(e.style.right="0",e.style.left="auto"):(e.style.right="auto",e.style.left=`${n.left}px`);const s=window.innerHeight-n.bottom,r=n.top;if(s>=t.height)return void(e.style.top=`${n.bottom}px`);e.style.top="auto",e.style.bottom=r<t.height?"0":`${s+n.height}px`}},this._onChange=()=>{const e=(0,u.ensureNotNull)(this._input).value
;this.setState({value:e}),this.props.onType(e)},this._onKeyDown=e=>{this.props.hideOnKeyDown&&this.props.onHidePicker(),this.props.onKeyDown&&this.props.onKeyDown(e)},this._onKeyPress=e=>{if(e.charCode){const t=String.fromCharCode(e.charCode);this.props.inputRegex.test(t)||e.preventDefault()}},this._onKeyUp=e=>{if(8!==e.keyCode){const e=(0,u.ensureNotNull)(this._input).value,t=this.props.fixValue(e);t!==e&&this.setState({value:t})}},this._handleDropdownKeydown=e=>{var t;27===(0,v.hashFromEvent)(e)&&(null===(t=this._input)||void 0===t||t.focus(),this.props.onHidePicker())},this.state={value:e.value,valueFromProps:e.value}}render(){const{position:e="fixed",className:t,size:n,disabled:s,readonly:o,errors:i,icon:l,InputComponent:c=d.FormInput}=this.props;return r.createElement("div",{className:w.pickerInput,ref:this._handleContainerRef},r.createElement(c,{value:this.state.value,onBlur:this.props.onBlur,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onChange:this._onChange,onFocus:this._handleFocus,onClick:this.props.onShowPicker,reference:this._handleInputRef,className:t,size:n,disabled:s,errors:i,messagesPosition:p.MessagesPosition.Attached,hasErrors:this.props.showErrorMessages&&i&&i.length>0,name:this.props.name,readonly:o,endSlot:i&&i.length?void 0:r.createElement(m.EndSlot,null,r.createElement(h.Icon,{icon:l,className:a(w.icon,s&&w.disabled),onClick:s||o?void 0:this.props.onShowPicker})),"data-name":this.props.name}),this.props.showPicker&&!o?r.createElement(f.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},r.createElement(g.OutsideEvent,{mouseDown:!0,handler:this.props.onHidePicker},(t=>r.createElement("span",{ref:t,style:{pointerEvents:"auto"}},r.createElement("div",{className:a(w.picker,w[e]),key:"0",ref:this._onShowPicker,onKeyDown:this._handleDropdownKeydown},this.props.children))))):null)}static getDerivedStateFromProps(e,t){return e.value!==t.valueFromProps?{value:e.value,valueFromProps:e.value}:null}}D.defaultProps={showOnFocus:!0};class b extends r.PureComponent{constructor(e){super(e),this._input=null,this._nativeInputRef=r.createRef(),this._handleInputRef=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(this._input)},this._onFocus=()=>{this.setState({isFocused:!0})},this._onBlur=()=>{this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.props.value),this.setState({isFocused:!1})},this._onChange=e=>{const{value:t}=e.target;t&&(this.setState({value:t}),this.props.onChange(t))},this.state={value:e.value,isFocused:!1}}componentDidMount(){this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.props.value)}render(){const{className:e,containerClassName:t,disabled:n,errors:s,InputComponent:o=d.FormInput}=this.props,i=!this.props.readonly&&!n,l=this.props.showErrorMessages&&s&&s.length>0;return r.createElement("div",{className:a(w.pickerInput,t)},r.createElement(o,{value:this.props.value,readonly:!0,noReadonlyStyles:!0,
endSlot:s&&s.length?void 0:r.createElement(m.EndSlot,null,r.createElement(h.Icon,{icon:this.props.icon,className:a(w.icon,n&&w.disabled)})),className:e,inputClassName:w.textInput,size:this.props.size,disabled:n,hasErrors:l,errors:s,alwaysShowAttachedErrors:!0,messagesPosition:p.MessagesPosition.Attached,name:i?void 0:this.props.name,reference:this._handleInputRef,highlight:this.state.isFocused,intent:!l&&this.state.isFocused?"primary":void 0}),i&&r.createElement("input",{ref:this._nativeInputRef,type:this.props.type,className:w.nativePicker,onChange:this._onChange,onInput:this._onChange,min:this.props.min,max:this.props.max,name:this.props.name,onFocus:this._onFocus,onBlur:this._onBlur}))}}var y=n(23935),C=n(67029),E=n(53017),_=n(1401);class F extends r.PureComponent{constructor(e){super(e),this._pickerInputContainerRef=r.createRef(),this._pickerInpuRef=r.createRef(),this._dateFormatter=new l.DateFormatter,this._onPickerInputKeyDown=e=>{const t=(0,v.hashFromEvent)(e);if([v.Modifiers.Shift+9,9].includes(t))this._hideCalendar();else{if(40===t)return e.preventDefault(),this._showCalendar(),void this.setState({autofocusCalendar:!0});13===t&&this.props.onEnter&&this.props.onEnter(e),this._hideCalendar()}},this._returnFocusToInput=()=>{var e;this.setState({autofocusCalendar:!1}),null===(e=this._pickerInpuRef.current)||void 0===e||e.focus()},this._fixValue=e=>(e=(e=e.substring(0,10)).replace(/-+/g,"-"),(/^\d{4}$/.test(e)||/^\d{4}-\d{2}$/.test(e))&&(e+="-"),e),this._isValid=e=>{const t=this._dateFormatter.parse(e);if(t.res&&/^[0-9]{4}(-[0-9]{2}){2}/.test(t.value)){const e=new Date(t.value);return!(0,y.isInvalidDateObj)(e)&&(!!(this.props.noRangeValidation||i.mobiletouch&&o.isIOS)||(0,y.isInRange)(e,this.props.minDate,this.props.maxDate))}return!1},this._onBlur=e=>{var t;if(!this.props.revertInvalidData||(null===(t=this._pickerInputContainerRef.current)||void 0===t?void 0:t.contains(e.relatedTarget)))return;const{value:n}=e.target;if(!this._isValid(n)){const t=new Date(this.state.date);this.setState({pickerInputKey:e.timeStamp,date:t,isInvalid:!1}),this.props.onPick(t)}},this._onType=e=>{const t=this._isValid(e)?new Date(e.concat("T00:00")):null;t?this.setState({date:t,isInvalid:!1}):this.setState({isInvalid:!0}),this.props.onPick(t)},this._onSelect=e=>{this.setState({date:e,showCalendar:!1,isInvalid:!1}),this.props.onPick(e)},this._showCalendar=()=>{this.setState({showCalendar:!0})},this._hideCalendar=()=>{this.setState({showCalendar:!1,autofocusCalendar:!1})},this._getErrors=()=>{const e=this.props.errors?[...this.props.errors]:[];return this.state.isInvalid&&e.push(s.t(null,void 0,n(5122))),e},this.state={pickerInputKey:0,date:e.initial,showCalendar:!1,isInvalid:!this._isValid(this._dateFormatter.formatLocal(e.initial)),autofocusCalendar:!1,initial:e.initial}}render(){const e=this.props.endSlotComponent,t=(0,E.mergeRefs)([this._pickerInpuRef,this.props.inputReference]);return i.mobiletouch?r.createElement(b,{value:this._dateFormatter.formatLocal(this.state.date),type:"date",onChange:this._onType,icon:_,
disabled:this.props.disabled,size:this.props.size,min:this.props.minDate&&this._dateFormatter.formatLocal(this.props.minDate),max:this.props.maxDate&&this._dateFormatter.formatLocal(this.props.maxDate),errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,className:a(this._getFontSizeClassName(this.props.size),this.props.className),containerClassName:this.props.containerClassName,inputReference:this.props.inputReference,InputComponent:this.props.InputComponent}):r.createElement("div",{className:this.props.containerClassName,ref:this._pickerInputContainerRef},r.createElement(D,{key:this.state.pickerInputKey,value:this._dateFormatter.formatLocal(this.state.date),inputRegex:/[0-9.]/,fixValue:this._fixValue,onType:this._onType,onBlur:this._onBlur,onShowPicker:this._showCalendar,onHidePicker:this._hideCalendar,showPicker:this.state.showCalendar&&this.props.withCalendar,showOnFocus:this.props.showOnFocus,icon:_,disabled:this.props.disabled,size:this.props.size,errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,position:this.props.position,className:a(this._getFontSizeClassName(this.props.size),this.props.className),inputReference:t,InputComponent:this.props.InputComponent,onKeyDown:this._onPickerInputKeyDown,onFocus:this.props.onFocus},r.createElement(c.Calendar,{selectedDate:this.state.date,maxDate:this.props.maxDate,minDate:this.props.minDate,onSelect:this._onSelect,endSlot:e&&r.createElement(e,{onSelectDate:this._onSelect}),autoFocus:this.state.autofocusCalendar,showFocusRing:this.state.autofocusCalendar,focusTriggerElement:this._returnFocusToInput,withFocusTrap:!0})))}static getDerivedStateFromProps(e,t){return t.initial!==e.initial?{...t,date:e.initial,initial:e.initial}:null}_getFontSizeClassName(e){return e?"large"===e?C.InputClasses.FontSizeLarge:C.InputClasses.FontSizeMedium:void 0}}F.defaultProps={position:"fixed",withCalendar:!0}},76056:(e,t,n)=>{"use strict";n.d(t,{DateInput:()=>m});var s=n(50959),r=n(11542),a=n(9745),o=n(78274),i=n(86623),l=n(97754),c=n.n(l),u=n(30247);function h(e){const{className:t,text:n}=e;return s.createElement("span",{className:c()(u.tooltip,t)},n)}var d=n(98475);const p=n(53209);function m(e){const{hasErrors:t,onClick:l,errors:c,className:u,theme:m=p,...g}=e;return s.createElement("div",{className:m.container,onClick:l},s.createElement(i.FormInput,{...g,className:m.date,hasErrors:t,errors:[],endSlot:!t&&s.createElement(o.EndSlot,{icon:!0,interactive:!1},s.createElement(a.Icon,{icon:d,className:m.icon}))}),t&&s.createElement(h,{text:r.t(null,void 0,n(32457)),className:m.tooltip}))}},23935:(e,t,n)=>{"use strict";n.d(t,{addLocalTime:()=>b,getCloneDateWithOffset:()=>N,getDateInTabOrder:()=>R,getDecades:()=>_,getDecadesStart:()=>y,getFirstEnabledDay:()=>M,getFirstEnabledMonth:()=>S,getFirstEnabledYear:()=>k,getMonths:()=>E,getWeeks:()=>C,isDayDisabled:()=>F,isInRange:()=>f,isInvalidDateObj:()=>v,isSameDay:()=>u,isSameMonth:()=>h,isSameYear:()=>d,
resetToDayEnd:()=>o,resetToDayStart:()=>a,subtractLocalTime:()=>D,twoDigitsFormat:()=>r});var s=n(15499);function r(e){return("0"+e).slice(-2)}function a(e){const t=new Date(e);return t.setMilliseconds(0),t.setSeconds(0),t.setMinutes(0),t.setHours(0),t}function o(e){const t=new Date(e);return t.setMilliseconds(999),t.setSeconds(59),t.setMinutes(59),t.setHours(23),t}function i(e,t=!1){const n=a(e),s=t?function(e){if(e>6)throw new Error("Invalid day is provided");return 0===e?6:e-1}(n.getDay()):n.getDay();return n.setDate(n.getDate()-s),n}function l(e){const t=a(e);return t.setDate(1),t}function c(e){const t=l(e);return t.setMonth(1),t}function u(e,t){return!!t&&Number(a(e))===Number(a(t))}function h(e,t){return!!t&&Number(l(e))===Number(l(t))}function d(e,t){return!!t&&Number(c(e))===Number(c(t))}function p(e){const t=new Date(e.getFullYear(),0,1),n=(Number(e)-Number(t))/864e5;return Math.ceil((n+t.getDay()+1)/7)}function m(e){const t=new Date(e);return t.setDate(t.getDate()+7),t}const g={day:a,month:l,year:c};function f(e,t,n,s="day"){const r=g[s],a=!t||Number(r(t))-Number(r(e))<=0;return(!n||Number(r(n))-Number(r(e))>=0)&&a}function v(e){return Number.isNaN(Number(e))}function w(e){return new Date(e).getTimezoneOffset()/60}function D(e){const t=new Date(e);return t.setHours(t.getHours()+w(t)),t}function b(e){const t=new Date(e);return t.setHours(t.getHours()-w(t)),t}function y(e){const t=e.getFullYear()%10*-1,n=new Date(e);return n.setFullYear(e.getFullYear()+t),n}function C(e){const t=[];let n=i(l(e),!0);for(let s=0;s<6;s++){const s=[];for(let t=0;t<7;t++){const r=new Date(n);r.setDate(r.getDate()+t),h(r,e)&&s.push(r)}s.length&&t.push({week:p(n),days:s}),n=new Date(m(n))}return t}function E(e){return s.MONTHS_SHORT.map(((t,n)=>{const r=l(e);return r.setMonth(n),{title:t,ariaLabel:s.MONTHS[n],date:r}}))}function _(e){const t=[];for(let n=0;n<s.DECADES_YEARS_AMOUNT;n++){const s=new Date(e);s.setFullYear(e.getFullYear()+n),t.push(s)}return t}function F({day:e,minDate:t,maxDate:n,disableWeekends:s=!1}){if(!f(e,t,n))return!0;const r=[6,0].includes(e.getDay());return!!s&&r}function M(e,t){return function n(s=0,r=0){if(!e[s]||!e[s].days[r])return;const a=e[s].days,o=a[r];return t(o)?r+1<a.length?n(s,r+1):n(s+1,0):o}()}function S(e,t){return function n(s=0){if(!e[s])return;const r=e[s].date;return t(r)?n(s+1):r}()}function k(e,t){return function n(s=0){if(!e[s])return;const r=e[s];return t(r)?n(s+1):r}()}function N({dateFrom:e,offset:t,level:n="day",maxIterations:s=6,isDisabledDate:r=(()=>!1)}){return function e(a,o=0){const i=new Date(a);switch(n){case"day":i.setDate(i.getDate()+t);break;case"month":i.setMonth(i.getMonth()+t);break;case"year":i.setFullYear(i.getFullYear()+t)}const l=r(i);return o>s||!l?l?null:i:e(i,o+1)}(e)}function R({selectedDate:e,dateToFocus:t,currentlyFocused:n,firstEnabledDate:s,getFirstDate:r,getLastDate:a,isDisabledDate:o}){const i=f(e,r(),a(),"day")&&!o(e)?e:null,l=t&&f(t,r(),a(),"day")&&!o(t)?t:null;return(n&&f(n,r(),a(),"day")&&!o(n)?n:null)||i||l||s}},70412:(e,t,n)=>{"use strict";n.d(t,{
hoverMouseEventFilter:()=>a,useAccurateHover:()=>o,useHover:()=>r});var s=n(50959);function r(){const[e,t]=(0,s.useState)(!1);return[e,{onMouseOver:function(e){a(e)&&t(!0)},onMouseOut:function(e){a(e)&&t(!1)}}]}function a(e){return!e.currentTarget.contains(e.relatedTarget)}function o(e){const[t,n]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{const t=t=>{if(null===e.current)return;const s=e.current.contains(t.target);n(s)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)}),[]),t}},86623:(e,t,n)=>{"use strict";n.d(t,{FormInput:()=>c});var s=n(50959),r=n(31261),a=n(95263),o=n(78274),i=n(47201),l=n(38528);function c(e){var t;const{intent:n,onFocus:c,onBlur:u,onMouseOver:h,onMouseOut:d,containerReference:p=null,endSlot:m,hasErrors:g,hasWarnings:f,hasSuccessMessages:v,errors:w,warnings:D,successMessages:b,alwaysShowAttachedErrors:y,iconHidden:C,messagesPosition:E,messagesAttachment:_,customErrorsAttachment:F,messagesRoot:M,inheritMessagesWidthFromTarget:S,disableMessagesRtlStyles:k,"aria-required":N,"aria-invalid":R,"aria-label":x,inputDescription:T,...I}=e,P=(0,a.useControlValidationLayout)({hasErrors:g,hasWarnings:f,hasSuccessMessages:v,errors:w,warnings:D,successMessages:b,alwaysShowAttachedErrors:y,iconHidden:C,messagesPosition:E,messagesAttachment:_,customErrorsAttachment:F,messagesRoot:M,inheritMessagesWidthFromTarget:S,disableMessagesRtlStyles:k,inputDescription:T}),A=(0,i.createSafeMulticastEventHandler)(c,P.onFocus),Y=(0,i.createSafeMulticastEventHandler)(u,P.onBlur),O=(0,i.createSafeMulticastEventHandler)(h,P.onMouseOver),V=(0,i.createSafeMulticastEventHandler)(d,P.onMouseOut);return s.createElement(s.Fragment,null,s.createElement(r.InputControl,{...I,intent:null!==(t=P.intent)&&void 0!==t?t:n,onFocus:A,onBlur:Y,onMouseOver:O,onMouseOut:V,containerReference:(0,l.useMergedRefs)([p,P.containerReference]),endSlot:s.createElement(s.Fragment,null,P.icon&&s.createElement(o.EndSlot,{icon:!0},P.icon),m),"aria-required":N,"aria-invalid":R,"aria-describedby":P.ariaIds,"aria-label":x}),P.renderedErrors)}},36565:(e,t,n)=>{"use strict";n.d(t,{TimeInput:()=>A});var s=n(49483),r=n(50959),a=n(97754),o=n.n(a),i=n(50151),l=n(47201),c=n(78274),u=n(31261),h=n(9745),d=n(43832),p=n(95096);function m(e){return r.createElement(h.Icon,{className:d.icon,icon:p})}var g=n(29202),f=n(78634);var v=n(36383),w=n(37160);const D={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}};function b(e,t,n){const s=[],r=n;let a=0,o=0;const i=e.length,l=r.length;let c=-1,u=0;const h=[],d=i-1,p=[];let m;for(;a<i&&o<l;){const n=e.charAt(a),i=r.charAt(o),l=D[n];l?(i.match(l.pattern)?(s.push(i),l.recursive&&(-1===c?c=a:a===d&&a!==c&&(a=c-1),d===c&&(a-=1)),a+=1):i===m?(u--,m=void 0):l.optional?(a+=1,o-=1):l.fallback?(s.push(l.fallback),a+=1,o-=1):p.push({p:o,v:i,e:l.pattern}),o+=1):(t||s.push(n),i===n?(h.push(o),o+=1):(m=n,h.push(o+u),u++),a+=1)}const g=e.charAt(d);i!==l+1||D[g]||s.push(g);const f=s.join(""),v=function(e,t){const n=0,s={}
;for(let e=0;e<t.length;e++)s[t[e]+n]=1;return s}(0,h);return[f,v,p]}function y(e,t,n){const s=function(e){let t=!0;for(let n=0;n<e.length;n++){const s=D[e.charAt(n)];if(s&&s.recursive){t=!1;break}}return t?e.length:void 0}(e),[a,o]=b(e,!1,t),[l,c]=(0,r.useState)(a),[u,h]=(0,r.useState)(0),[d,p]=(0,r.useState)(!1),m=(0,r.useRef)(o),g=(0,r.useRef)(l);return(0,r.useEffect)((()=>{const[n,s]=b(e,!1,t);c(n),f(s)}),[t,e]),(0,r.useLayoutEffect)((()=>{const e=(0,i.ensureNotNull)(n.current);d&&(e.setSelectionRange(u,u),p(!1)),h(C(e))}),[d]),[t,g,{onChange:function(){const t=(0,i.ensureNotNull)(n.current),s=t.value,[r,a]=b(e,!1,s);c(r),g.current=r;const o=f(a),d=function(e,t,n,s,r,a){if(e!==t){const o=t.length,i=e.length;let l=0,c=0,u=0,h=0,d=0;for(d=s;d<o&&r[d];d++)c++;for(d=s-1;d>=0&&r[d];d--)l++;for(d=s-1;d>=0;d--)r[d]&&u++;for(d=n-1;d>=0;d--)a[d]&&h++;if(s>i)s=10*o;else if(n>=s&&n!==i){if(a[s]){const e=s;s-=h-u,r[s-=l]&&(s=e)}}else s>n&&(s+=u-h,s+=c)}return s}(l,r,u,C(t),a,o);h(d),p(!0)},onSelect:function(){const e=(0,i.ensureNotNull)(n.current);h(C(e))},maxLength:s}];function f(e){const t=m.current;return m.current=e,t}}function C(e){return e.selectionStart||0}function E(e){const{value:t,mask:n,onChange:s,...a}=e,o=(0,r.useRef)(null),[i,l,c]=y(n,t,o);return(0,r.useLayoutEffect)((()=>{void 0!==e.reference&&(e.reference.current=o.current)}),[e.reference]),r.createElement(u.InputControl,{...a,maxLength:c.maxLength,value:i,autoComplete:"off",reference:function(e){o.current=e},onChange:function(){c.onChange(),s(l.current)},onSelect:c.onSelect})}var _=n(68335),F=n(20520),M=n(16396),S=n(78071);const k=(()=>{const e=[];for(let t=0;t<24;++t)for(let n=0;n<60;n+=15){const[s,r]=[I(t.toString()),I(n.toString())],a=`${s}:${r}`,o=x(a)?a:T(a);e.push(o)}return e})();function N(e){let t=!1;const n=(0,r.useRef)(null),s=(0,r.useRef)(null),a=(0,r.useRef)(null),l=(0,r.useRef)(null),[u,h]=(0,g.useFocus)(),[d,p]=(0,r.useState)(e.value),f=R(d),D=x(f)?f:T(f),[b,y]=(0,r.useState)(D),C=u||L().some((e=>null!==e&&e.contains(document.activeElement)));(0,r.useLayoutEffect)((()=>p(e.value)),[e.value]),(0,r.useLayoutEffect)((()=>y(D)),[d,C]),(0,r.useEffect)((()=>H(b===D?"auto":"smooth")),[b]);const N=(0,S.lowerbound)(k,D,((e,t)=>e<t));let I=k;k[N]!==D&&(I=[...k],I.splice(N,0,D));const P=(0,v.useOutsideEvent)({mouseDown:!0,touchStart:!0,handler:function(e){null!==s.current&&C&&e.target instanceof Node&&null!==a.current&&!a.current.contains(e.target)&&s.current.blur()}});return r.createElement("div",{className:o()(e.className),onKeyDown:function(e){if(e.defaultPrevented)return;const t=(0,_.hashFromEvent)(e.nativeEvent);if(38===t){e.preventDefault();const t=(I.indexOf(b)+I.length-1)%I.length;y(I[t])}if(40===t){e.preventDefault();const t=(I.indexOf(b)+I.length+1)%I.length;y(I[t])}},onFocus:function(e){V(e)||h.onFocus(e)},onBlur:function(e){V(e)||h.onBlur(e)},ref:P},r.createElement(E,{disabled:e.disabled,name:e.name,endSlot:r.createElement(c.EndSlot,{icon:!0},r.createElement(m,null)),reference:s,containerReference:n,mask:"09:00",value:d,onFocus:function(t){
var n;setTimeout(B,0),null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:function(e){V(e)||A(d)},onChange:function(t){p(t),e.onInput&&e.onInput(t)},onKeyDown:function(e){if(e.defaultPrevented)return;const t=(0,_.hashFromEvent)(e.nativeEvent);13===t&&(e.preventDefault(),A(b),(0,i.ensureNotNull)(s.current).blur());27===t&&(e.preventDefault(),(0,i.ensureNotNull)(s.current).blur())}}),r.createElement(F.PopupMenu,{onOpen:function(){H()},onClose:function(){},position:function(){const e=(0,i.ensureNotNull)(n.current).getBoundingClientRect(),t=window.innerHeight-e.bottom,s=e.top;let r=231,a=e.bottom;if(r>s&&r>t){const n=(0,w.clamp)(r,0,s),o=(0,w.clamp)(r,0,t);r=Math.max(n,o),a=n>o?e.top-n:e.bottom}else r>t&&(a=e.top-r);return{x:e.left,y:a,overrideWidth:e.width,overrideHeight:r}},closeOnClickOutside:!1,isOpened:C,tabIndex:-1,reference:a},I.map((e=>r.createElement(M.PopupMenuItem,{key:e,label:e,isActive:e===D,isHovered:e===b,reference:e===b?Y:void 0,onClick:O,onClickArg:e})))));function A(n){const s=R(n),r=x(s)?s:T(s);p(r),t||(t=!0,e.onChange(r))}function Y(e){l.current=e}function O(e){A((0,i.ensureDefined)(e)),(0,i.ensureNotNull)(a.current).blur()}function V(e){return u&&(null!==z(document.activeElement)||null!==z(e.relatedTarget))}function z(e){return e instanceof Node&&L().find((t=>null!==t&&t.contains(e)))||null}function L(){return[a.current,s.current]}function H(e="auto"){if(null!==l.current){const t=(0,i.ensureNotNull)(a.current).getBoundingClientRect(),n=l.current.getBoundingClientRect();(t.top>n.top||t.bottom<n.bottom)&&l.current.scrollIntoView({behavior:e})}}function B(){const e=s.current;if(null!==e){const t=e.value||"";e.setSelectionRange(0,t.length)}}}function R(e){const[t="",n=""]=e.split(":"),[s,r]=[I(t),P(n)];return`${s}:${r}`}function x(e){return/^(0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/g.test(e)}function T(e){const[t,n]=e.split(":"),[s,r]=[(0,w.clamp)(parseInt(t),0,23),(0,w.clamp)(parseInt(n),0,59)],[a,o]=[I(s.toString()),P(r.toString())];return`${a}:${o}`}function I(e){return e.slice(0,2).padStart(2,"0")}function P(e){return e.slice(0,2).padEnd(2,"0")}const A=s.CheckMobile.any()?function(e){const{onChange:t,onFocus:n,value:s,className:a,...h}=e,d=(0,r.useRef)(null),[p,v]=(0,g.useFocus)(),w=(0,l.createSafeMulticastEventHandler)(v.onBlur,(function(){d.current&&s&&(d.current.defaultValue=s)}));return(0,r.useLayoutEffect)((()=>{d.current&&s&&(d.current.defaultValue=s)}),[]),(0,r.useLayoutEffect)((()=>{d.current&&s&&(d.current.value=s)}),[s]),r.createElement("div",{className:o()(f.wrap,a)},r.createElement(u.InputControl,{...h,type:"text",endSlot:r.createElement(c.EndSlot,{icon:!0},r.createElement(m,null)),value:s,highlight:p,intent:p?"primary":void 0,onFocus:function(e){(0,i.ensureNotNull)(d.current).focus(),n&&n(e)},onChange:function(){}}),r.createElement("input",{...v,disabled:e.disabled,className:f.input,type:"time",onBlur:w,onChange:function(e){const{value:n}=e.currentTarget;t&&n&&t(n)},ref:d}))}:N},95263:(e,t,n)=>{"use strict";n.d(t,{MessagesPosition:()=>_,useControlValidationLayout:()=>I})
;var s=n(50959),r=n(97754);function a(e,t){(0,s.useEffect)((()=>(t&&t(e),()=>{t&&t(e)})),[])}var o=n(29202),i=n(70412),l=n(78274),c=n(1405),u=n(86431),h=n(962);var d=n(44022),p=n(38223);class m extends s.PureComponent{render(){const{children:e=[],show:t=!1,customErrorClass:n,disableRtlStyles:a,messageIdCallback:o}=this.props,i=r(d.errors,{[d.show]:t},n),l=e.map(((e,t)=>s.createElement(w,{key:t,messageIdCallback:o},e)));let c={position:"absolute",top:this.props.top,width:this.props.width,height:this.props.height,bottom:void 0!==this.props.bottom?this.props.bottom:"100%",right:void 0!==this.props.right?this.props.right:0,left:this.props.left,zIndex:this.props.zIndex,maxWidth:this.props.maxWidth};if((0,p.isRtl)()&&!a){const{left:e,right:t}=c;c={...c,left:t,right:e}}return s.createElement("div",{style:c,className:i},l)}}const g=(0,u.makeOverlapable)((f=m,(v=class extends s.PureComponent{constructor(e){super(e),this._getComponentInstance=e=>{this._instance=e},this._throttleCalcProps=()=>{requestAnimationFrame((()=>this.setState(this._calcProps(this.props))))},this.state=this._getStateFromProps()}componentDidMount(){this._instanceElem=h.findDOMNode(this._instance),this.props.attachOnce||this._subscribe(),this.setState(this._calcProps(this.props))}componentDidUpdate(e){e.children===this.props.children&&e.top===this.props.top&&e.left===this.props.left&&e.width===this.props.width||this.setState(this._getStateFromProps(),(()=>this.setState(this._calcProps(this.props))))}render(){return s.createElement("div",{style:{position:"absolute",width:"100%",top:0,left:0}},s.createElement(f,{...this.props,ref:this._getComponentInstance,top:this.state.top,bottom:void 0!==this.state.bottom?this.state.bottom:"auto",right:void 0!==this.state.right?this.state.right:"auto",left:this.state.left,width:this.state.width,maxWidth:this.state.maxWidth},this.props.children))}componentWillUnmount(){this._unsubsribe()}_getStateFromProps(){return{bottom:this.props.bottom,left:this.props.left,right:this.props.right,top:void 0!==this.props.top?this.props.top:-1e4,width:this.props.inheritWidthFromTarget?this.props.target&&this.props.target.getBoundingClientRect().width:this.props.width,maxWidth:this.props.inheritMaxWidthFromTarget&&this.props.target&&this.props.target.getBoundingClientRect().width}}_calcProps(e){if(e.target&&e.attachment&&e.targetAttachment){const t=this._calcTargetProps(e.target,e.attachment,e.targetAttachment);if(null===t)return{};const{width:n,inheritWidthFromTarget:s=!0,inheritMaxWidthFromTarget:r=!1}=this.props,a={width:s?t.width:n,maxWidth:r?t.width:void 0};switch(e.attachment.vertical){case"bottom":case"middle":a.top=t.y;break;default:a[e.attachment.vertical]=t.y}switch(e.attachment.horizontal){case"right":case"center":a.left=t.x;break;default:a[e.attachment.horizontal]=t.x}return a}return{}}_calcTargetProps(e,t,n){const s=e.getBoundingClientRect(),r=this._instanceElem.getBoundingClientRect(),a="parent"===this.props.root?this._getCoordsRelToParentEl(e,s):this._getCoordsRelToDocument(s);if(null===a)return null
;const o=this._getDimensions(r),i=this._getDimensions(s).width;let l=0,c=0;switch(t.vertical){case"top":c=a[n.vertical];break;case"bottom":c=a[n.vertical]-o.height;break;case"middle":c=a[n.vertical]-o.height/2}switch(t.horizontal){case"left":l=a[n.horizontal];break;case"right":l=a[n.horizontal]-o.width;break;case"center":l=a[n.horizontal]-o.width/2}return"number"==typeof this.props.attachmentOffsetY&&(c+=this.props.attachmentOffsetY),"number"==typeof this.props.attachmentOffsetX&&(l+=this.props.attachmentOffsetX),{x:l,y:c,width:i}}_getCoordsRelToDocument(e){const t=pageYOffset,n=pageXOffset,s=e.top+t,r=e.bottom+t,a=e.left+n;return{top:s,bottom:r,left:a,right:e.right+n,middle:(s+e.height)/2,center:a+e.width/2}}_getCoordsRelToParentEl(e,t){const n=e.offsetParent;if(null===n)return null;const s=n.scrollTop,r=n.scrollLeft,a=e.offsetTop+s,o=e.offsetLeft+r,i=t.width+o;return{top:a,bottom:t.height+a,left:o,right:i,middle:(a+t.height)/2,center:(o+t.width)/2}}_getDimensions(e){return{height:e.height,width:e.width}}_subscribe(){"document"===this.props.root&&(window.addEventListener("scroll",this._throttleCalcProps,!0),window.addEventListener("resize",this._throttleCalcProps))}_unsubsribe(){window.removeEventListener("scroll",this._throttleCalcProps,!0),window.removeEventListener("resize",this._throttleCalcProps)}}).displayName="Attachable Component",v));var f,v;function w(e){const{children:t,messageIdCallback:n,...r}=e;return s.createElement("div",{...r,className:d.error},t)}function D(e){const{children:t,messageIdCallback:n,...r}=e,o=s.useId();return a(o,n),s.createElement("span",{...r,className:d["visually-hidden"],id:o},t)}var b=n(9745),y=n(16658),C=n(40461);function E(e){const{intent:t="danger"}=e;return s.createElement(b.Icon,{icon:y,className:r(C["error-icon"],C[`intent-${t}`])})}var _,F,M=n(27345);!function(e){e[e.Attached=0]="Attached",e[e.Static=1]="Static",e[e.Hidden=2]="Hidden"}(_||(_={})),function(e){e.Top="top",e.Bottom="bottom"}(F||(F={}));const S={top:{attachment:c.anchors.topRight.attachment,targetAttachment:c.anchors.topRight.targetAttachment,attachmentOffsetY:-4},bottom:{attachment:c.anchors.bottomRight.attachment,targetAttachment:c.anchors.bottomRight.targetAttachment,attachmentOffsetY:4}};function k(e){const{isOpened:t,target:n,errorAttachment:r=F.Top,customErrorsAttachment:a,root:o="parent",inheritWidthFromTarget:i=!1,disableRtlStyles:l,children:c,messageIdCallback:u}=e,{attachment:h,targetAttachment:d,attachmentOffsetY:p}=null!=a?a:S[r];return s.createElement(s.Fragment,null,s.createElement(g,{isOpened:t,target:n,root:o,inheritWidthFromTarget:i,attachment:h,targetAttachment:d,attachmentOffsetY:p,disableRtlStyles:l,messageIdCallback:u,inheritMaxWidthFromTarget:!0,show:!0},c),s.createElement(D,{messageIdCallback:u},c))}function N(e,t){return Boolean(e)&&void 0!==t&&t.length>0}function R(e,t,n){return e===_.Attached&&N(t,n)}function x(e,t,n){return e===_.Static&&N(t,n)}function T(e,t,n){
const{hasErrors:s,hasWarnings:r,hasSuccessMessages:a,alwaysShowAttachedErrors:o,iconHidden:i,errors:l,warnings:c,successMessages:u,messagesPosition:h=_.Static}=e,d=R(h,s,l),p=R(h,r,c),m=d&&(t||n||Boolean(o)),g=!m&&p&&(t||n),f=x(h,s,l),v=!f&&x(h,r,c),w=!f&&!v&&x(h,a,u),D=!i&&Boolean(s),b=!i&&!D&&Boolean(r),y=function(e,t,n){return Boolean(n)?"success":Boolean(e)?"danger":Boolean(t)?"warning":void 0}(s,r,a);return{hasAttachedErrorMessages:d,hasAttachedWarningMessages:p,showAttachedErrorMessages:m,showAttachedWarningMessages:g,showStaticErrorMessages:f,showStaticWarningMessages:v,showStaticSuccessMessages:w,showErrorIcon:D,showWarningIcon:b,intent:y}}function I(e){var t,n,a,c;const{errors:u,warnings:h,successMessages:d,messagesAttachment:p,customErrorsAttachment:m,messagesRoot:g,inheritMessagesWidthFromTarget:f,disableMessagesRtlStyles:v,inputDescription:w}=e,[D,b]=(0,o.useFocus)(),[y,C]=(0,i.useHover)(),_=(0,s.useRef)(null),[F,S]=s.useState(void 0),N=(0,s.useRef)(new Map),R=s.useCallback((e=>{if(!e)return;const t=N.current;t.has(e)?t.delete(e):t.set(e,e),0!==t.size?S(Array.from(t.keys()).join(" ")):S(void 0)}),[S,N.current]),{hasAttachedErrorMessages:x,hasAttachedWarningMessages:I,showAttachedErrorMessages:A,showAttachedWarningMessages:Y,showStaticErrorMessages:O,showStaticWarningMessages:V,showStaticSuccessMessages:z,showErrorIcon:L,showWarningIcon:H,intent:B}=T(e,D,y),$=L||H?s.createElement(E,{intent:L?"danger":"warning"}):void 0,K=x?s.createElement(k,{errorAttachment:p,customErrorsAttachment:m,isOpened:A,target:_.current,root:g,inheritWidthFromTarget:f,disableRtlStyles:v,children:u,messageIdCallback:R}):void 0,W=I?s.createElement(k,{errorAttachment:p,isOpened:Y,target:_.current,root:g,inheritWidthFromTarget:f,disableRtlStyles:v,children:h,messageIdCallback:R}):void 0,j=O?s.createElement(l.AfterSlot,{className:r(M["static-messages"],M.errors)},null==u?void 0:u.map(((e,t)=>s.createElement(P,{key:t,messageIdCallback:R},e)))):void 0,J=V?s.createElement(l.AfterSlot,{className:r(M["static-messages"],M.warnings)},null==h?void 0:h.map(((e,t)=>s.createElement(P,{key:t,messageIdCallback:R},e)))):void 0,q=z?s.createElement(l.AfterSlot,{className:r(M["static-messages"],M["success-mesages"])},null==d?void 0:d.map(((e,t)=>s.createElement(P,{key:t,messageIdCallback:R},e)))):void 0,U=!O&&!V&&!z&&w?s.createElement(l.AfterSlot,{className:r(M["static-messages"],M["input-description"])},s.createElement(P,{messageIdCallback:R},w)):void 0;return{ariaIds:F,icon:$,renderedErrors:null!==(c=null!==(a=null!==(n=null!==(t=null!=K?K:W)&&void 0!==t?t:j)&&void 0!==n?n:J)&&void 0!==a?a:q)&&void 0!==c?c:U,containerReference:_,intent:B,...b,...C}}function P(e){const{children:t,messageIdCallback:n,...r}=e,o=s.useId();return a(o,n),s.createElement("span",{...r,className:M.message,id:o},t)}},16396:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>c,PopupMenuItem:()=>h});var s=n(50959),r=n(97754),a=n(51768),o=n(59064),i=n(76068),l=n(71986);const c=l;function u(e){e.stopPropagation()}function h(e){
const{id:t,role:n,className:c,title:h,labelRowClassName:d,labelClassName:p,toolboxClassName:m,shortcut:g,forceShowShortcuts:f,icon:v,iconClassname:w,isActive:D,isDisabled:b,isHovered:y,appearAsDisabled:C,label:E,link:_,showToolboxOnHover:F,showToolboxOnFocus:M,target:S,rel:k,toolbox:N,reference:R,onMouseOut:x,onMouseOver:T,onKeyDown:I,suppressToolboxClick:P=!0,theme:A=l,tabIndex:Y,tagName:O,renderComponent:V,roundedIcon:z,iconAriaProps:L,circleLogo:H,dontClosePopup:B,onClick:$,onClickArg:K,trackEventObject:W,trackMouseWheelClick:j,trackRightClick:J,...q}=e,U=(0,s.useRef)(null),Q=(0,s.useMemo)((()=>function(e){function t(t){const{reference:n,...r}=t,a=null!=e?e:r.href?"a":"div",o="a"===a?r:function(e){const{download:t,href:n,hrefLang:s,media:r,ping:a,rel:o,target:i,type:l,referrerPolicy:c,...u}=e;return u}(r);return s.createElement(a,{...o,ref:n})}return t.displayName=`DefaultComponent(${e})`,t}(O)),[O]),Z=null!=V?V:Q;return s.createElement(Z,{...q,id:t,role:n,className:r(c,A.item,v&&A.withIcon,{[A.isActive]:D,[A.isDisabled]:b||C,[A.hovered]:y}),title:h,href:_,target:S,rel:k,reference:function(e){U.current=e,"function"==typeof R&&R(e);"object"==typeof R&&(R.current=e)},onClick:function(e){if(b)return;W&&(0,a.trackEvent)(W.category,W.event,W.label);$&&$(K,e);B||(0,o.globalCloseMenu)()},onContextMenu:function(e){W&&J&&(0,a.trackEvent)(W.category,W.event,`${W.label}_rightClick`)},onMouseUp:function(e){if(1===e.button&&_&&W){let e=W.label;j&&(e+="_mouseWheelClick"),(0,a.trackEvent)(W.category,W.event,e)}},onMouseOver:T,onMouseOut:x,onKeyDown:I,tabIndex:Y},H&&s.createElement(i.CircleLogo,{...L,className:l["disclosure-item-circle-logo"],size:"xxxsmall",logoUrl:H.logoUrl,placeholderLetter:H.placeholderLetter}),v&&s.createElement("span",{"aria-label":L&&L["aria-label"],"aria-hidden":L&&Boolean(L["aria-hidden"]),className:r(A.icon,z&&l["round-icon"],w),dangerouslySetInnerHTML:{__html:v}}),s.createElement("span",{className:r(A.labelRow,d)},s.createElement("span",{className:r(A.label,p)},E)),(void 0!==g||f)&&s.createElement("span",{className:A.shortcut},(X=g)&&X.split("+").join(" + ")),void 0!==N&&s.createElement("span",{onClick:P?u:void 0,className:r(m,A.toolbox,{[A.showOnHover]:F,[A.showOnFocus]:M})},N));var X}},20520:(e,t,n)=>{"use strict";n.d(t,{PopupMenu:()=>d});var s=n(50959),r=n(962),a=n(62942),o=n(42842),i=n(27317),l=n(29197);const c=s.createContext(void 0);var u=n(36383);const h=s.createContext({setMenuMaxWidth:!1});function d(e){const{controller:t,children:n,isOpened:d,closeOnClickOutside:p=!0,doNotCloseOn:m,onClickOutside:g,onClose:f,onKeyboardClose:v,"data-name":w="popup-menu-container",...D}=e,b=(0,s.useContext)(l.CloseDelegateContext),y=s.useContext(h),C=(0,s.useContext)(c),E=(0,u.useOutsideEvent)({handler:function(e){g&&g(e);if(!p)return;const t=(0,a.default)(m)?m():null==m?[]:[m];if(t.length>0&&e.target instanceof Node)for(const n of t){const t=r.findDOMNode(n);if(t instanceof Node&&t.contains(e.target))return}f()},mouseDown:!0,touchStart:!0});return d?s.createElement(o.Portal,{top:"0",left:"0",right:"0",
bottom:"0",pointerEvents:"none"},s.createElement("span",{ref:E,style:{pointerEvents:"auto"}},s.createElement(i.Menu,{...D,onClose:f,onKeyboardClose:v,onScroll:function(t){const{onScroll:n}=e;n&&n(t)},customCloseDelegate:b,customRemeasureDelegate:C,ref:t,"data-name":w,limitMaxWidth:y.setMenuMaxWidth},n))):null}},17140:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="m16.47 7.47 1.06 1.06L12.06 14l5.47 5.47-1.06 1.06L9.94 14l6.53-6.53Z"/></svg>'},98475:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M10 4h1v2h6V4h1v2h2.5A2.5 2.5 0 0 1 23 8.5v11a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 5 19.5v-11A2.5 2.5 0 0 1 7.5 6H10V4zm8 3H7.5C6.67 7 6 7.67 6 8.5v11c0 .83.67 1.5 1.5 1.5h13c.83 0 1.5-.67 1.5-1.5v-11c0-.83-.67-1.5-1.5-1.5H18zm-3 2h-2v2h2V9zm-7 4h2v2H8v-2zm12-4h-2v2h2V9zm-7 4h2v2h-2v-2zm-3 4H8v2h2v-2zm3 0h2v2h-2v-2zm7-4h-2v2h2v-2z"/></svg>'},1401:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="M4 0c-.6 0-1 .4-1 1v1H1c-.6 0-1 .4-1 1v12c0 .6.4 1 1 1h14c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1h-2V1c0-.6-.4-1-1-1h-1c-.6 0-1 .4-1 1v1H6V1c0-.6-.4-1-1-1H4zM2 5h12v9H2V5zm5 2v2h2V7H7zm3 0v2h2V7h-2zm-6 3v2h2v-2H4zm3 0v2h2v-2H7zm3 0v2h2v-2h-2z"/></svg>'},16658:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" fill-rule="evenodd" d="M9 16A7 7 0 1 0 9 2a7 7 0 0 0 0 14Zm0 1A8 8 0 1 0 9 1a8 8 0 0 0 0 16ZM8 5a1 1 0 0 1 2 0v4a1 1 0 1 1-2 0V5Zm1 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>'},95096:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17"><path fill="currentColor" d="M1 8.5a7.5 7.5 0 1 1 15 0 7.5 7.5 0 0 1-15 0zM8.5 0a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zM9 9V3H8v5H5v1h4z"/></svg>'}}]);

View File

@@ -2,7 +2,7 @@
dropped:"dropped-PYEOTd6i"}},45350:e=>{e.exports={"nav-button":"nav-button-znwuaSC1",link:"link-znwuaSC1",background:"background-znwuaSC1",icon:"icon-znwuaSC1","flip-icon":"flip-icon-znwuaSC1","size-large":"size-large-znwuaSC1","preserve-paddings":"preserve-paddings-znwuaSC1","size-medium":"size-medium-znwuaSC1","size-small":"size-small-znwuaSC1","size-xsmall":"size-xsmall-znwuaSC1","size-xxsmall":"size-xxsmall-znwuaSC1","visually-hidden":"visually-hidden-znwuaSC1"}},70048:e=>{e.exports={wrapper:"wrapper-GZajBGIm",input:"input-GZajBGIm",box:"box-GZajBGIm",icon:"icon-GZajBGIm",noOutline:"noOutline-GZajBGIm","intent-danger":"intent-danger-GZajBGIm",check:"check-GZajBGIm",dot:"dot-GZajBGIm"}},69789:e=>{e.exports={checkbox:"checkbox-vyj6oJxw",reverse:"reverse-vyj6oJxw",label:"label-vyj6oJxw",baseline:"baseline-vyj6oJxw"}},22623:e=>{e.exports={"textarea-container":"textarea-container-x5KHDULU","change-highlight":"change-highlight-x5KHDULU",focused:"focused-x5KHDULU","resize-vertical":"resize-vertical-x5KHDULU","resize-horizontal":"resize-horizontal-x5KHDULU","resize-both":"resize-both-x5KHDULU",textarea:"textarea-x5KHDULU","with-icon":"with-icon-x5KHDULU",endslot:"endslot-x5KHDULU"}},78370:e=>{e.exports={"intent-default":"intent-default-EZuD3gZZ","intent-danger":"intent-danger-EZuD3gZZ","intent-warning":"intent-warning-EZuD3gZZ","intent-success":"intent-success-EZuD3gZZ","icon-wrapper-size-small":"icon-wrapper-size-small-EZuD3gZZ","icon-wrapper-size-medium":"icon-wrapper-size-medium-EZuD3gZZ","icon-wrapper-size-large":"icon-wrapper-size-large-EZuD3gZZ","icon-wrapper":"icon-wrapper-EZuD3gZZ",icon:"icon-EZuD3gZZ"}},88400:e=>{e.exports={radio:"radio-ALqkCUvs",input:"input-ALqkCUvs",box:"box-ALqkCUvs",reverse:"reverse-ALqkCUvs",label:"label-ALqkCUvs",wrapper:"wrapper-ALqkCUvs",noOutline:"noOutline-ALqkCUvs"}},52272:e=>{e.exports={wrap:"wrap-QStmZL8l",thicknessItem:"thicknessItem-QStmZL8l",checked:"checked-QStmZL8l",accessible:"accessible-QStmZL8l",focusVisible:"focusVisible-QStmZL8l",radio:"radio-QStmZL8l",bar:"bar-QStmZL8l"}},12863:e=>{e.exports={innerLabel:"innerLabel-DjbvBF5Y"}},21234:e=>{e.exports={controlWrapper:"controlWrapper-DBTazUk2",hidden:"hidden-DBTazUk2",control:"control-DBTazUk2",controlIncrease:"controlIncrease-DBTazUk2",controlDecrease:"controlDecrease-DBTazUk2",controlIcon:"controlIcon-DBTazUk2",title:"title-DBTazUk2"}},55596:e=>{e.exports={dialog:"dialog-b8SxMnzX",wrapper:"wrapper-b8SxMnzX",separator:"separator-b8SxMnzX",bounded:"bounded-b8SxMnzX"}},69827:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-BZKENkhT",unsetAlign:"unsetAlign-BZKENkhT",title:"title-BZKENkhT",subtitle:"subtitle-BZKENkhT",textWrap:"textWrap-BZKENkhT",ellipsis:"ellipsis-BZKENkhT",close:"close-BZKENkhT",icon:"icon-BZKENkhT"}},60015:e=>{e.exports={wrap:"wrap-ne5qGlZh",icon:"icon-ne5qGlZh",text:"text-ne5qGlZh",disabled:"disabled-ne5qGlZh"}},28685:e=>{e.exports={colorPickerWrap:"colorPickerWrap-Sw_a4qpB",focused:"focused-Sw_a4qpB",readonly:"readonly-Sw_a4qpB",disabled:"disabled-Sw_a4qpB",
"size-small":"size-small-Sw_a4qpB","size-medium":"size-medium-Sw_a4qpB","size-large":"size-large-Sw_a4qpB","font-size-small":"font-size-small-Sw_a4qpB","font-size-medium":"font-size-medium-Sw_a4qpB","font-size-large":"font-size-large-Sw_a4qpB","border-none":"border-none-Sw_a4qpB",shadow:"shadow-Sw_a4qpB","border-thin":"border-thin-Sw_a4qpB","border-thick":"border-thick-Sw_a4qpB","intent-default":"intent-default-Sw_a4qpB","intent-success":"intent-success-Sw_a4qpB","intent-warning":"intent-warning-Sw_a4qpB","intent-danger":"intent-danger-Sw_a4qpB","intent-primary":"intent-primary-Sw_a4qpB","corner-top-left":"corner-top-left-Sw_a4qpB","corner-top-right":"corner-top-right-Sw_a4qpB","corner-bottom-right":"corner-bottom-right-Sw_a4qpB","corner-bottom-left":"corner-bottom-left-Sw_a4qpB",colorPicker:"colorPicker-Sw_a4qpB",swatch:"swatch-Sw_a4qpB",placeholderContainer:"placeholderContainer-Sw_a4qpB",placeholder:"placeholder-Sw_a4qpB",mixedColor:"mixedColor-Sw_a4qpB",white:"white-Sw_a4qpB",opacitySwatch:"opacitySwatch-Sw_a4qpB",colorLine:"colorLine-Sw_a4qpB",multiWidth:"multiWidth-Sw_a4qpB",line:"line-Sw_a4qpB",thicknessContainer:"thicknessContainer-Sw_a4qpB",thicknessTitle:"thicknessTitle-Sw_a4qpB"}},86536:e=>{e.exports={thicknessContainer:"thicknessContainer-C05zSid7",thicknessTitle:"thicknessTitle-C05zSid7"}},69006:e=>{e.exports={hasTooltip:"hasTooltip-DcvaoxPU",uppercase:"uppercase-DcvaoxPU"}},2746:e=>{e.exports={wrap:"wrap-Q2NZ0gvI"}},25679:e=>{e.exports={checkbox:"checkbox-FG0u1J5p",title:"title-FG0u1J5p"}},41125:e=>{e.exports={hintButton:"hintButton-qEI9XsjF"}},69750:e=>{e.exports={titleWrap:"titleWrap-SexRbl__",title:"title-SexRbl__"}},63581:e=>{e.exports={button:"button-HBcDEU4c",accessible:"accessible-HBcDEU4c"}},93402:e=>{e.exports={container:"container-mdcOkvbj",sectionTitle:"sectionTitle-mdcOkvbj",separator:"separator-mdcOkvbj",customButton:"customButton-mdcOkvbj",accessible:"accessible-mdcOkvbj"}},80679:e=>{e.exports={container:"container-iiEYaqPD",form:"form-iiEYaqPD",swatch:"swatch-iiEYaqPD",inputWrap:"inputWrap-iiEYaqPD",inputHash:"inputHash-iiEYaqPD",input:"input-iiEYaqPD",buttonWrap:"buttonWrap-iiEYaqPD",hueSaturationWrap:"hueSaturationWrap-iiEYaqPD",saturation:"saturation-iiEYaqPD",hue:"hue-iiEYaqPD"}},1369:e=>{e.exports={hue:"hue-r4uo5Wn6",pointer:"pointer-r4uo5Wn6",accessible:"accessible-r4uo5Wn6",pointerContainer:"pointerContainer-r4uo5Wn6"}},30099:e=>{e.exports={opacity:"opacity-EnWts7Xu",opacitySlider:"opacitySlider-EnWts7Xu",opacitySliderGradient:"opacitySliderGradient-EnWts7Xu",pointer:"pointer-EnWts7Xu",dragged:"dragged-EnWts7Xu",opacityPointerWrap:"opacityPointerWrap-EnWts7Xu",opacityInputWrap:"opacityInputWrap-EnWts7Xu",opacityInput:"opacityInput-EnWts7Xu",opacityInputPercent:"opacityInputPercent-EnWts7Xu",accessible:"accessible-EnWts7Xu"}},35257:e=>{e.exports={saturation:"saturation-NFNfqP2w",pointer:"pointer-NFNfqP2w",accessible:"accessible-NFNfqP2w"}},87466:e=>{e.exports={swatches:"swatches-sfn7Lezv",swatch:"swatch-sfn7Lezv",hover:"hover-sfn7Lezv",empty:"empty-sfn7Lezv",white:"white-sfn7Lezv",
selected:"selected-sfn7Lezv",contextItem:"contextItem-sfn7Lezv",row:"row-sfn7Lezv"}},66986:e=>{e.exports={button:"button-tFul0OhX","button-children":"button-children-tFul0OhX",hiddenArrow:"hiddenArrow-tFul0OhX",invisibleFocusHandler:"invisibleFocusHandler-tFul0OhX"}},42335:e=>{e.exports={"icon-wrapper":"icon-wrapper-dikdewwx","with-tooltip":"with-tooltip-dikdewwx","no-active-state":"no-active-state-dikdewwx"}},60673:e=>{e.exports={placeholder:"placeholder-V6ceS6BN"}},40191:e=>{e.exports={menuWrap:"menuWrap-Kq3ruQo8",isMeasuring:"isMeasuring-Kq3ruQo8",scrollWrap:"scrollWrap-Kq3ruQo8",momentumBased:"momentumBased-Kq3ruQo8",menuBox:"menuBox-Kq3ruQo8",isHidden:"isHidden-Kq3ruQo8"}},45719:e=>{e.exports={separator:"separator-Pf4rIzEt"}},57340:(e,t,n)=>{"use strict";n.d(t,{CloseButton:()=>d});var o=n(50959),s=n(64388),r=n(17105),i=n(15130),a=n(38822),l=n(63346),c=n(34983);function u(e="large"){switch(e){case"large":return r;case"medium":default:return i;case"small":return a;case"xsmall":return l;case"xxsmall":return c}}const d=o.forwardRef(((e,t)=>o.createElement(s.NavButton,{...e,ref:t,icon:u(e.size)})))},64388:(e,t,n)=>{"use strict";n.d(t,{NavButton:()=>c});var o=n(50959),s=n(97754),r=n(9745),i=n(45350);function a(e){const{size:t="large",preservePaddings:n,isLink:o,flipIconOnRtl:r,className:a}=e;return s(i["nav-button"],i[`size-${t}`],n&&i["preserve-paddings"],r&&i["flip-icon"],o&&i.link,a)}function l(e){const{children:t,icon:n}=e;return o.createElement(o.Fragment,null,o.createElement("span",{className:i.background}),o.createElement(r.Icon,{icon:n,className:i.icon,"aria-hidden":!0}),t&&o.createElement("span",{className:i["visually-hidden"]},t))}const c=(0,o.forwardRef)(((e,t)=>{const{icon:n,type:s="button",preservePaddings:r,flipIconOnRtl:i,size:c,"aria-label":u,...d}=e;return o.createElement("button",{...d,className:a({...e,children:u}),ref:t,type:s},o.createElement(l,{icon:n},u))}));c.displayName="NavButton";var u=n(21593),d=n(53017);(0,o.forwardRef)(((e,t)=>{const{icon:n,renderComponent:s,"aria-label":r,...i}=e,c=null!=s?s:u.CustomComponentDefaultLink;return o.createElement(c,{...i,className:a({...e,children:r,isLink:!0}),reference:(0,d.isomorphicRef)(t)},o.createElement(l,{icon:n},r))})).displayName="NavAnchorButton"},70673:(e,t,n)=>{"use strict";n.d(t,{CheckboxInput:()=>u});var o=n(50959),s=n(97754),r=n(90186),i=n(9745),a=n(65890),l=n(70048),c=n.n(l);function u(e){const t=s(c().box,c()[`intent-${e.intent}`],{[c().check]:!Boolean(e.indeterminate),[c().dot]:Boolean(e.indeterminate),[c().noOutline]:-1===e.tabIndex}),n=s(c().wrapper,e.className);return o.createElement("span",{className:n,title:e.title,style:e.style},o.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:c().input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference,"aria-required":e["aria-required"],"aria-describedby":e["aria-describedby"],"aria-invalid":e["aria-invalid"],...(0,r.filterDataProps)(e)
}),o.createElement("span",{className:t},o.createElement(i.Icon,{icon:a,className:c().icon})))}},32389:(e,t,n)=>{"use strict";n.d(t,{Checkbox:()=>c});var o=n(50959),s=n(97754),r=n(59416),i=n(70673),a=n(69789),l=n.n(a);class c extends o.PureComponent{render(){const{inputClassName:e,labelClassName:t,...n}=this.props,r=s(this.props.className,l().checkbox,{[l().reverse]:Boolean(this.props.labelPositionReverse),[l().baseline]:Boolean(this.props.labelAlignBaseline)}),a=s(l().label,t,{[l().disabled]:this.props.disabled});let c=null;return this.props.label&&(c=o.createElement("span",{className:a,title:this.props.title},this.props.label)),o.createElement("label",{className:r},o.createElement(i.CheckboxInput,{...n,className:e}),c)}}c.defaultProps={value:"on"};(0,r.makeSwitchGroupItem)(c)},2568:(e,t,n)=>{"use strict";n.d(t,{Textarea:()=>C});var o,s=n(50959),r=n(97754),i=n(38528),a=n(29202),l=n(48027),c=n(45812),u=n(47201),d=n(48907),p=n(67029),h=n(78274),m=n(22623),v=n.n(m);!function(e){e.None="none",e.Vertical="vertical",e.Horizontal="horizontal",e.Both="both"}(o||(o={}));const f=s.forwardRef(((e,t)=>{const{id:n,title:o,tabIndex:i,containerTabIndex:a,role:l,inputClassName:c,autoComplete:u,autoFocus:d,cols:m,disabled:f,isFocused:g,form:b,maxLength:C,minLength:y,name:E,placeholder:w,readonly:_,required:S,rows:x,value:N,defaultValue:T,wrap:I,containerReference:k,onChange:B,onSelect:P,onFocus:D,onContainerFocus:M,onBlur:O,onPaste:R,"aria-describedby":L,"aria-required":A,"aria-invalid":F,hasIcon:W,endSlot:V,hasAttachImage:z,...q}=e,K={id:n,title:o,tabIndex:i,role:l,autoComplete:u,autoFocus:d,cols:m,disabled:f,form:b,maxLength:C,minLength:y,name:E,placeholder:w,readOnly:_,required:S,rows:x,value:N,defaultValue:T,wrap:I,onChange:B,onSelect:P,onFocus:D,onBlur:O,onPaste:R,"aria-describedby":L,"aria-required":A,"aria-invalid":F};return s.createElement(p.ControlSkeleton,{...q,tabIndex:a,disabled:f,readonly:_,isFocused:g,ref:k,onFocus:M,middleSlot:s.createElement(h.MiddleSlot,null,s.createElement("textarea",{...K,className:r(v().textarea,c,V&&v().endslot),ref:t})),...V&&{endSlot:s.createElement("span",{className:r(!z&&v()["with-icon"])},V)}})}));f.displayName="TextareaView";const g=(e,t,n)=>t?void 0:e?-1:n,b=(e,t,n)=>t?void 0:e?n:-1,C=s.forwardRef(((e,t)=>{e=(0,l.useControl)(e);const{className:n,disabled:p,autoSelectOnFocus:h,tabIndex:m=0,borderStyle:C,highlight:y,resize:E,containerReference:w=null,onFocus:_,onBlur:S,hasIcon:x,...N}=e,T=(0,s.useRef)(null),I=(0,s.useRef)(null),{isMouseDown:k,handleMouseDown:B,handleMouseUp:P}=(0,c.useIsMouseDown)(),[D,M]=(0,a.useFocus)(),O=(0,u.createSafeMulticastEventHandler)(M.onFocus,(function(e){h&&!k.current&&(0,d.selectAllContent)(e.currentTarget)}),_),R=(0,u.createSafeMulticastEventHandler)(M.onBlur,S),L=void 0!==E&&E!==o.None,A=null!=C?C:L?y?"thick":"thin":void 0,F=null!=y?y:!L&&void 0;return s.createElement(f,{...N,className:r(v()["textarea-container"],L&&v()["change-highlight"],E&&E!==o.None&&v()[`resize-${E}`],D&&v().focused,n),disabled:p,isFocused:D,containerTabIndex:g(D,p,m),tabIndex:b(D,p,m),
}),o.createElement("span",{className:t},o.createElement(i.Icon,{icon:a,className:c().icon})))}},15294:(e,t,n)=>{"use strict";n.d(t,{Checkbox:()=>c});var o=n(50959),s=n(97754),r=n(59416),i=n(70673),a=n(69789),l=n.n(a);class c extends o.PureComponent{render(){const{inputClassName:e,labelClassName:t,...n}=this.props,r=s(this.props.className,l().checkbox,{[l().reverse]:Boolean(this.props.labelPositionReverse),[l().baseline]:Boolean(this.props.labelAlignBaseline)}),a=s(l().label,t,{[l().disabled]:this.props.disabled});let c=null;return this.props.label&&(c=o.createElement("span",{className:a,title:this.props.title},this.props.label)),o.createElement("label",{className:r},o.createElement(i.CheckboxInput,{...n,className:e}),c)}}c.defaultProps={value:"on"};(0,r.makeSwitchGroupItem)(c)},2568:(e,t,n)=>{"use strict";n.d(t,{Textarea:()=>C});var o,s=n(50959),r=n(97754),i=n(38528),a=n(29202),l=n(48027),c=n(45812),u=n(47201),d=n(48907),p=n(67029),h=n(78274),m=n(22623),v=n.n(m);!function(e){e.None="none",e.Vertical="vertical",e.Horizontal="horizontal",e.Both="both"}(o||(o={}));const f=s.forwardRef(((e,t)=>{const{id:n,title:o,tabIndex:i,containerTabIndex:a,role:l,inputClassName:c,autoComplete:u,autoFocus:d,cols:m,disabled:f,isFocused:g,form:b,maxLength:C,minLength:y,name:E,placeholder:w,readonly:_,required:S,rows:x,value:N,defaultValue:T,wrap:I,containerReference:k,onChange:B,onSelect:P,onFocus:D,onContainerFocus:M,onBlur:O,onPaste:R,"aria-describedby":L,"aria-required":A,"aria-invalid":F,hasIcon:W,endSlot:V,hasAttachImage:z,...q}=e,K={id:n,title:o,tabIndex:i,role:l,autoComplete:u,autoFocus:d,cols:m,disabled:f,form:b,maxLength:C,minLength:y,name:E,placeholder:w,readOnly:_,required:S,rows:x,value:N,defaultValue:T,wrap:I,onChange:B,onSelect:P,onFocus:D,onBlur:O,onPaste:R,"aria-describedby":L,"aria-required":A,"aria-invalid":F};return s.createElement(p.ControlSkeleton,{...q,tabIndex:a,disabled:f,readonly:_,isFocused:g,ref:k,onFocus:M,middleSlot:s.createElement(h.MiddleSlot,null,s.createElement("textarea",{...K,className:r(v().textarea,c,V&&v().endslot),ref:t})),...V&&{endSlot:s.createElement("span",{className:r(!z&&v()["with-icon"])},V)}})}));f.displayName="TextareaView";const g=(e,t,n)=>t?void 0:e?-1:n,b=(e,t,n)=>t?void 0:e?n:-1,C=s.forwardRef(((e,t)=>{e=(0,l.useControl)(e);const{className:n,disabled:p,autoSelectOnFocus:h,tabIndex:m=0,borderStyle:C,highlight:y,resize:E,containerReference:w=null,onFocus:_,onBlur:S,hasIcon:x,...N}=e,T=(0,s.useRef)(null),I=(0,s.useRef)(null),{isMouseDown:k,handleMouseDown:B,handleMouseUp:P}=(0,c.useIsMouseDown)(),[D,M]=(0,a.useFocus)(),O=(0,u.createSafeMulticastEventHandler)(M.onFocus,(function(e){h&&!k.current&&(0,d.selectAllContent)(e.currentTarget)}),_),R=(0,u.createSafeMulticastEventHandler)(M.onBlur,S),L=void 0!==E&&E!==o.None,A=null!=C?C:L?y?"thick":"thin":void 0,F=null!=y?y:!L&&void 0;return s.createElement(f,{...N,className:r(v()["textarea-container"],L&&v()["change-highlight"],E&&E!==o.None&&v()[`resize-${E}`],D&&v().focused,n),disabled:p,isFocused:D,containerTabIndex:g(D,p,m),tabIndex:b(D,p,m),
borderStyle:A,highlight:F,onContainerFocus:function(e){I.current===e.target&&null!==T.current&&T.current.focus()},onFocus:O,onBlur:R,onMouseDown:B,onMouseUp:P,ref:function(e){T.current=e,"function"==typeof t?t(e):t&&(t.current=e)},containerReference:(0,i.useMergedRefs)([w,I]),hasIcon:x})}));C.displayName="Textarea"},38952:(e,t,n)=>{"use strict";function o(e){const{reference:t,...n}=e;return{...n,ref:t}}n.d(t,{renameRef:()=>o})},21593:(e,t,n)=>{"use strict";n.d(t,{CustomComponentDefaultLink:()=>r});var o=n(50959),s=n(38952);function r(e){return o.createElement("a",{...(0,s.renameRef)(e)})}o.PureComponent},36104:(e,t,n)=>{"use strict";n.d(t,{useControlDisclosure:()=>s});var o=n(7953);function s(e){const{intent:t,highlight:n,...s}=e,{isFocused:r,...i}=(0,o.useDisclosure)(s);return{...i,isFocused:r,highlight:null!=n?n:r,intent:null!=t?t:r?"primary":"default"}}},36383:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>r});var o=n(50959),s=n(27267);function r(e){const{click:t,mouseDown:n,touchEnd:r,touchStart:i,handler:a,reference:l,ownerDocument:c=document}=e,u=(0,o.useRef)(null),d=(0,o.useRef)(new CustomEvent("timestamp").timeStamp);return(0,o.useLayoutEffect)((()=>{const e={click:t,mouseDown:n,touchEnd:r,touchStart:i},o=l?l.current:u.current;return(0,s.addOutsideEventListener)(d.current,o,a,c,e)}),[t,n,r,i,a]),l||u}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>s});var o=n(50959);const s=o.forwardRef(((e,t)=>{const{icon:n="",...s}=e;return o.createElement("span",{...s,ref:t,dangerouslySetInnerHTML:{__html:n}})}))},83021:(e,t,n)=>{"use strict";n.d(t,{SubmenuContext:()=>s,SubmenuHandler:()=>r});var o=n(50959);const s=o.createContext(null);function r(e){const[t,n]=(0,o.useState)(null),r=(0,o.useRef)(null),i=(0,o.useRef)(new Map);return(0,o.useEffect)((()=>()=>{null!==r.current&&clearTimeout(r.current)}),[]),o.createElement(s.Provider,{value:{current:t,setCurrent:function(e){null!==r.current&&(clearTimeout(r.current),r.current=null);null===t?n(e):r.current=setTimeout((()=>{r.current=null,n(e)}),100)},registerSubmenu:function(e,t){return i.current.set(e,t),()=>{i.current.delete(e)}},isSubmenuNode:function(e){return Array.from(i.current.values()).some((t=>t(e)))}}},e.children)}},99663:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>s,SlotContext:()=>r});var o=n(50959);class s extends o.Component{shouldComponentUpdate(){return!1}render(){return o.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const r=o.createContext(null)},59416:(e,t,n)=>{"use strict";n.d(t,{SwitchGroup:()=>i,makeSwitchGroupItem:()=>a});var o=n(50959),s=n(74786);const r=(0,o.createContext)({getName:()=>"",getValues:()=>[],getOnChange:()=>s.default,subscribe:s.default,unsubscribe:s.default});class i extends o.PureComponent{constructor(e){super(e),this._subscriptions=new Set,this._getName=()=>this.props.name,this._getValues=()=>this.props.values,this._getOnChange=()=>this.props.onChange,this._subscribe=e=>{this._subscriptions.add(e)},this._unsubscribe=e=>{this._subscriptions.delete(e)},this.state={switchGroupContext:{
getName:this._getName,getValues:this._getValues,getOnChange:this._getOnChange,subscribe:this._subscribe,unsubscribe:this._unsubscribe}}}render(){return o.createElement(r.Provider,{value:this.state.switchGroupContext},this.props.children)}componentDidUpdate(e){this._notify(this._getUpdates(this.props.values,e.values))}_notify(e){this._subscriptions.forEach((t=>t(e)))}_getUpdates(e,t){return[...t,...e].filter((n=>t.includes(n)?!e.includes(n):e.includes(n)))}}function a(e){var t;return t=class extends o.PureComponent{constructor(){super(...arguments),this._onChange=e=>{this.context.getOnChange()(e)},this._onUpdate=e=>{e.includes(this.props.value)&&this.forceUpdate()}}componentDidMount(){this.context.subscribe(this._onUpdate)}render(){return o.createElement(e,{...this.props,name:this._getName(),onChange:this._onChange,checked:this._isChecked()})}componentWillUnmount(){this.context.unsubscribe(this._onUpdate)}_getName(){return this.context.getName()}_isChecked(){return this.context.getValues().includes(this.props.value)}},t.contextType=r,t}},67961:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>r,getRootOverlapManager:()=>a});var o=n(50151);class s{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter((t=>e!==t))}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class r{constructor(e=document){this._storage=new s,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach((e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)}))}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const o=this._document.createElement("div");if(o.style.position=t.position,o.style.zIndex=this._index.toString(),o.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(o);else if(t.index<=0)this._container.insertBefore(o,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(o,e)}}else"reverse"===t.direction?this._container.insertBefore(o,this._container.firstChild):this._container.appendChild(o);return this._windows.set(e,o),++this._index,o}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const i=new WeakMap;function a(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,o.ensureDefined)(i.get(t));{const t=new r(e),n=function(e){
const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return i.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}},92399:(e,t,n)=>{"use strict";n.d(t,{NumberInputView:()=>I});var o=n(50959),s=n(32563),r=n(97754),i=n(67029),a=n(78274),l=n(86623),c=n(95263),u=n(1405),d=n(12863);const p={large:i.InputClasses.FontSizeLarge,medium:i.InputClasses.FontSizeMedium},h={attachment:u.anchors.top.attachment,targetAttachment:u.anchors.top.targetAttachment,attachmentOffsetY:-4};function m(e){const{className:t,inputClassName:n,stretch:s=!0,errorMessage:i,fontSizeStyle:u="large",endSlot:m,button:v,error:f,warning:g,innerLabel:b,inputReference:C,children:y,...E}=e,w=f&&void 0!==i?[i]:void 0,_=g&&void 0!==i?[i]:void 0,S=r(d.inputContainer,p[u],t),x=b?o.createElement(a.StartSlot,{className:d.innerLabel,interactive:!1},b):void 0,N=m||v||y?o.createElement(a.EndSlot,null,m,v,y):void 0;return o.createElement(l.FormInput,{...E,className:S,inputClassName:n,errors:w,warnings:_,hasErrors:f,hasWarnings:g,messagesPosition:c.MessagesPosition.Attached,customErrorsAttachment:h,messagesRoot:"document",inheritMessagesWidthFromTarget:!0,disableMessagesRtlStyles:!0,iconHidden:!0,stretch:s,reference:C,startSlot:x,endSlot:N})}var v=n(38528),f=n(11542),g=n(9745),b=n(21861),C=n(2948),y=n(21234);function E(e){const t=r(y.control,y.controlIncrease),s=r(y.control,y.controlDecrease);return o.createElement(o.Fragment,null,void 0!==e.title&&o.createElement("div",{className:y.title},e.title),o.createElement("div",{className:y.controlWrapper},(e.defaultButtonsVisible||e.title)&&o.createElement(o.Fragment,null,o.createElement("button",{type:"button",tabIndex:-1,"aria-label":f.t(null,void 0,n(46812)),className:t,onClick:e.increaseValue,onMouseDown:b.preventDefault},o.createElement(g.Icon,{icon:C,className:y.controlIcon})),o.createElement("button",{type:"button",tabIndex:-1,"aria-label":f.t(null,void 0,n(56095)),className:s,onClick:e.decreaseValue,onMouseDown:b.preventDefault},o.createElement(g.Icon,{icon:C,className:y.controlIcon})))))}var w=n(70412),_=n(29202),S=n(47201),x=n(68335);const N=[38],T=[40];function I(e){const[t,n]=(0,w.useHover)(),[r,i]=(0,_.useFocus)(),a=(0,o.useRef)(null),l=(0,S.createSafeMulticastEventHandler)(i.onFocus,e.onFocus),c=(0,S.createSafeMulticastEventHandler)(i.onBlur,e.onBlur),u=(0,o.useCallback)((t=>{!e.disabled&&r&&(t.preventDefault(),t.deltaY<0?e.onValueByStepChange(1):e.onValueByStepChange(-1))}),[r,e.disabled,e.onValueByStepChange]);return o.createElement(m,{...n,id:e.id,name:e.name,pattern:e.pattern,borderStyle:e.borderStyle,fontSizeStyle:e.fontSizeStyle,value:e.value,className:e.className,inputClassName:e.inputClassName,autoComplete:e.autoComplete,button:function(){const{button:n,forceShowControls:i,disabled:a,title:l}=e,c=!a&&!s.mobiletouch&&(i||r||t);return a?void 0:o.createElement(o.Fragment,null,null!=n?n:o.createElement(E,{increaseValue:d,decreaseValue:p,defaultButtonsVisible:c,title:l}))}(),disabled:e.disabled,
@@ -13,7 +13,7 @@ onFocus:x.onFocus,onBlur:x.onBlur,disabled:b},"function"==typeof t?t(w,S):t),o.c
const{className:t,selectOpacity:n=void 0!==e.opacity,thickness:s,color:i,disabled:a,opacity:l=1,onColorChange:c,onOpacityChange:u,onThicknessChange:d,thicknessItems:p,onPopupClose:h,"data-name":m}=e,[g,b,C]=(0,f.useCustomColors)();return o.createElement(v,{className:t,disabled:a,color:"mixed"!==i?i:null,selectOpacity:n,opacity:l,selectCustom:!0,customColors:g,onColorChange:c,onOpacityChange:i?u:void 0,onAddColor:b,onRemoveCustomColor:C,button:function(e,t){const n=e||t,c=n?"primary":"default";return o.createElement("div",{className:r()(T.colorPickerWrap,T[`intent-${c}`],T["border-thin"],T["size-medium"],n&&T.highlight,n&&T.focused,a&&T.disabled),"data-role":"button","data-name":s?"color-with-thickness-select":"color-select"},o.createElement("div",{className:r()(T.colorPicker,a&&T.disabled)},i&&"mixed"!==i?function(){const e=k(i,l),t=l>=.95&&B(i);return o.createElement("div",{className:T.opacitySwatch},o.createElement("div",{style:{backgroundColor:e},className:r()(T.swatch,t&&T.white)}))}():o.createElement("div",{className:T.placeholderContainer},o.createElement("div",{className:"mixed"===i?T.mixedColor:T.placeholder})),s&&function(){const e=i&&"mixed"!==i?k(i,l):void 0;if("mixed"===s)return o.createElement("div",{className:T.multiWidth},o.createElement("div",{style:{backgroundColor:e},className:T.line}),o.createElement("div",{style:{backgroundColor:e},className:T.line}),o.createElement("div",{style:{backgroundColor:e},className:T.line}));return o.createElement("span",{className:r()(T.colorLine,B(i)&&T.white),style:{height:s,backgroundColor:e}})}()),n&&o.createElement("span",{className:T.shadow}))},onPopupClose:h,"data-name":m},s&&p&&o.createElement(N,{value:s,items:p,onChange:function(e){d&&d(e)}}))}function k(e,t){return e?(0,g.generateColor)(e,(0,g.alphaToTransparency)(t),!0):"#000000"}function B(e){return!!e&&e.toLowerCase()===b.white}},48897:(e,t,n)=>{"use strict";n.d(t,{SymbolInputsButton:()=>x});var o=n(50959),s=n(97754),r=n.n(s),i=n(11542),a=n(50151),l=n(50655),c=n(95711),u=n(14483),d=n(55141),p=n(65106),h=n(1861),m=n(9745),v=n(10600),f=n(60015);function g(e){const{value:t,onClick:n,className:r,startSlot:i,disabled:a=!1}=e;return o.createElement("div",{className:s(f.wrap,a&&f.disabled,r),onClick:n,"data-name":"edit-button"},o.createElement("div",{className:s(f.text,"apply-overflow-tooltip")},void 0!==i&&i,o.createElement("span",null,t)),o.createElement(m.Icon,{icon:v,className:f.icon}))}var b=n(31356),C=n(78260),y=n(44254),E=n(15983),w=n(82708),_=n(69006);function S(e){const{symbol:t,onSymbolChanged:s,disabled:a,className:d}=e,[m,v]=(0,o.useState)(t),f=(0,o.useContext)(l.SlotContext),b=(0,o.useContext)(c.PopupContext);return o.createElement(g,{value:m,onClick:function(){const e=function(e){const t=(0,y.tokenize)(e);return(0,E.isSpread)(t)}(m)?m:(0,w.safeShortName)(m),t=(0,p.getSymbolSearchCompleteOverrideFunction)();(0,h.showSymbolSearchItemsDialog)({onSearchComplete:e=>{t(e[0].symbol,e[0].result).then((e=>{s(e.symbol),v(e.name)}))},dialogTitle:i.t(null,void 0,n(23398)),defaultValue:e,manager:f,onClose:()=>{
b&&b.focus()},showSpreadActions:u.enabled("show_spread_operators")&&u.enabled("studies_symbol_search_spread_operators")})},disabled:a,className:r()(d,u.enabled("uppercase_instrument_names")&&_.uppercase)})}function x(e){if("definition"in e){const{propType:t,properties:n,id:s,title:r="",solutionId:i}=e.definition,l=n[t],c=l.value()||"",u=e=>{l.setValue(e)};return o.createElement(b.CommonSection,{id:s,title:r,solutionId:i},o.createElement(C.CellWrap,null,o.createElement(S,{symbol:(0,a.ensureDefined)(c),onSymbolChanged:u})))}{const{study:t,value:n,input:{id:s,name:i},onChange:l,disabled:c,hasTooltip:u}=e,p=e=>{const n=(0,d.getInternalSymbolName)(e,t);l(n,s,i)};return o.createElement(S,{symbol:(0,a.ensureDefined)(n),onSymbolChanged:p,disabled:c,className:r()(u&&_.hasTooltip)})}}},1861:(e,t,n)=>{"use strict";n.d(t,{showSymbolSearchItemsDialog:()=>l});var o=n(50959),s=n(962),r=n(50655),i=n(51826),a=n(22350);function l(e){const{initialMode:t="symbolSearch",autofocus:n=!0,defaultValue:l,showSpreadActions:c,selectSearchOnInit:u,onSearchComplete:d,dialogTitle:p,placeholder:h,fullscreen:m,initialScreen:v,wrapper:f,dialog:g,contentItem:b,onClose:C,onOpen:y,footer:E,symbolTypes:w,searchInput:_,emptyState:S,hideMarkedListFlag:x,dialogWidth:N="auto",manager:T,shouldReturnFocus:I,onSymbolFiltersParamsChange:k,onEmptyResults:B}=e;if(i.dialogsOpenerManager.isOpened("SymbolSearch")||i.dialogsOpenerManager.isOpened("ChangeIntervalDialog"))return;const P=document.createElement("div"),D=o.createElement(r.SlotContext.Provider,{value:null!=T?T:null},o.createElement(a.SymbolSearchItemsDialog,{onClose:M,initialMode:t,defaultValue:l,showSpreadActions:c,hideMarkedListFlag:x,selectSearchOnInit:u,onSearchComplete:d,dialogTitle:p,placeholder:h,fullscreen:m,initialScreen:v,wrapper:f,dialog:g,contentItem:b,footer:E,symbolTypes:w,searchInput:_,emptyState:S,autofocus:n,dialogWidth:N,shouldReturnFocus:I,onSymbolFiltersParamsChange:k,onEmptyResults:B}));function M(){s.unmountComponentAtNode(P),i.dialogsOpenerManager.setAsClosed("SymbolSearch"),C&&C()}return s.render(D,P),i.dialogsOpenerManager.setAsOpened("SymbolSearch"),y&&y(),{close:M}}},50238:(e,t,n)=>{"use strict";n.d(t,{useRovingTabindexElement:()=>i});var o=n(50959),s=n(39416),r=n(16838);function i(e,t=[]){const[n,i]=(0,o.useState)(!1),a=(0,s.useFunctionalRefObject)(e);return(0,o.useLayoutEffect)((()=>{if(!r.PLATFORM_ACCESSIBILITY_ENABLED)return;const e=a.current;if(null===e)return;const t=e=>{switch(e.type){case"roving-tabindex:main-element":i(!0);break;case"roving-tabindex:secondary-element":i(!1)}};return e.addEventListener("roving-tabindex:main-element",t),e.addEventListener("roving-tabindex:secondary-element",t),()=>{e.removeEventListener("roving-tabindex:main-element",t),e.removeEventListener("roving-tabindex:secondary-element",t)}}),t),[a,r.PLATFORM_ACCESSIBILITY_ENABLED?n?0:-1:void 0]}},59369:(e,t,n)=>{"use strict";n.d(t,{useRowsNavigation:()=>c});var o=n(50959),s=n(50151),r=n(16838),i=n(68335),a=n(71468);const l=[37,39,38,40];function c(e){const t=(0,o.useRef)(null);return(0,
o.useLayoutEffect)((()=>{if(!r.PLATFORM_ACCESSIBILITY_ENABLED)return;const e=(0,s.ensureNotNull)(t.current),n=()=>{const n=(0,r.queryTabbableElements)(e).sort(r.navigationOrderComparator);if(0===n.length||n[0].parentElement&&!p(n[0].parentElement,(0,s.ensureNotNull)(t.current))){const o=function(e){const n=d(e).sort(r.navigationOrderComparator).find((e=>p(e,(0,s.ensureNotNull)(t.current))));if(!n)return null;const o=Array.from(n.children);if(!o.length)return null;return o[0]}(e);if(null===o)return;if((0,a.becomeMainElement)(o),n.length>0)for(const e of n)(0,a.becomeSecondaryElement)(e)}};return window.addEventListener("keyboard-navigation-activation",n),n(),()=>window.removeEventListener("keyboard-navigation-activation",n)}),[]),[t,function(t){if(!r.PLATFORM_ACCESSIBILITY_ENABLED)return;if(t.defaultPrevented)return;const n=(0,i.hashFromEvent)(t);if(!l.includes(n))return;const o=document.activeElement;if(!(o instanceof HTMLElement))return;const s=t.currentTarget;let a,c;if(e){const e=o.parentElement;a=e?Array.from(e.children):[],c=a.indexOf(o)}else a=(p=s,Array.from(p.querySelectorAll("button:not([disabled]):not([aria-disabled])")).filter((0,r.createScopedVisibleElementFilter)(p))).sort(r.navigationOrderComparator),c=a.indexOf(o);var p;if(0===a.length||-1===c)return;const m=(0,r.mapKeyCodeToDirection)(n);switch(m){case"inlinePrev":if(t.preventDefault(),!e&&0===c)break;h(u(a,c,-1));break;case"inlineNext":if(t.preventDefault(),!e&&c===a.length-1)break;h(u(a,c,1));break;case"blockPrev":case"blockNext":(n=>{if(!document.activeElement)return;const o=d(s),r=document.activeElement.parentElement;if(!r)return;const i=Array.from(r.children).indexOf(document.activeElement);if(-1===i)return;const a=o["blockNext"===n?o.indexOf(r)+1:o.indexOf(r)-1];if(!a)return;t.preventDefault();const l=Array.from(a.children);l.length&&(!e&&i<=l.length-1?h(l[i]):h(l[0]))})(m)}}]}function u(e,t,n){return e[(t+e.length+n)%e.length]}function d(e){return Array.from(e.querySelectorAll('[data-role="row"]')).filter((0,r.createScopedVisibleElementFilter)(e))}function p(e,t){const n=(0,s.ensureNotNull)(e.parentElement).offsetTop,o=n+(0,s.ensureNotNull)(e.parentElement).clientHeight,r=t.scrollTop,i=r+t.clientHeight;return n>=r&&o<=i}function h(e){document.activeElement&&(0,a.becomeSecondaryElement)(document.activeElement),(0,a.becomeMainElement)(e),e.focus()}},73146:(e,t,n)=>{"use strict";n.d(t,{createAdapter:()=>r});var o=n(92249),s=n(28853);function r(e){if((0,o.isLineTool)(e))return{isPine:()=>!1,isStandardPine:()=>!1,canOverrideMinTick:()=>!1,resolvedSymbolInfoBySymbol:()=>{throw new TypeError("Only study is supported.")},symbolsResolved:()=>{throw new TypeError("Only study is supported.")},parentSources:()=>{throw new TypeError("Only study is supported.")},getAllChildren:()=>[],sourceId:()=>{throw new TypeError("Only study is supported.")},inputs:()=>({}),parentSourceForInput:()=>{throw new TypeError("Only study is supported.")}};if((0,s.isStudy)(e))return e;if("isInputsStudy"in e)return e;throw new TypeError("Unsupported source type.")}},
45560:(e,t,n)=>{"use strict";n.d(t,{useDefinitionProperty:()=>r});var o=n(50959),s=n(71953);const r=e=>{const t="property"in e?e.property:void 0,n="defaultValue"in e?e.defaultValue:e.property.value(),[r,i]=(0,o.useState)(t?t.value():n);(0,o.useEffect)((()=>{if(t){const n={};return i(t.value()),t.subscribe(n,(t=>{const n=t.value();e.handler&&e.handler(n),i(n)})),()=>{t.unsubscribeAll(n)}}return()=>{}}),[t]);return[r,e=>{if(void 0!==t){const n=t.value();s.logger.logNormal(`Changing property value from "${n}" to "${e}"`),t.setValue(e)}}]}},78260:(e,t,n)=>{"use strict";n.d(t,{CellWrap:()=>a});var o=n(50959),s=n(97754),r=n.n(s),i=n(2746);function a(e){return o.createElement("div",{className:r()(i.wrap,e.className)},e.children)}},53424:(e,t,n)=>{"use strict";n.d(t,{CheckableTitle:()=>c});var o=n(50959),s=n(32389),r=n(45560);function i(e){const{property:t,...n}=e,[i,a]=(0,r.useDefinitionProperty)({property:t}),l="mixed"===i;return o.createElement(s.Checkbox,{...n,name:"toggle-enabled",checked:l||i,indeterminate:l,onChange:function(){a("mixed"===i||!i)}})}var a=n(78260),l=n(25679);function c(e){const{property:t,disabled:n,title:s,className:r,name:c}=e,u=o.createElement("span",{className:l.title},s);return o.createElement(a.CellWrap,{className:r},t?o.createElement(i,{name:c,className:l.checkbox,property:t,disabled:n,label:u,labelAlignBaseline:!0}):u)}},31356:(e,t,n)=>{"use strict";n.d(t,{CommonSection:()=>i});var o=n(50959),s=n(11062),r=n(53424);n(41125);function i(e){const{id:t,offset:n,disabled:i,checked:a,title:l,children:c,solutionId:u}=e;return o.createElement(s.PropertyTable.Row,null,o.createElement(s.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:n,"data-section-name":t,colSpan:Boolean(c)?void 0:2,checkableTitle:!0},o.createElement(r.CheckableTitle,{name:`is-enabled-${t}`,title:l,disabled:i,property:a}),u&&!Boolean(c)&&!1),Boolean(c)&&o.createElement(s.PropertyTable.Cell,{placement:"last","data-section-name":t},c,u&&!1))}},86067:(e,t,n)=>{"use strict";n.d(t,{GroupTitleSection:()=>a});var o=n(50959),s=n(11062),r=n(53424),i=n(69750);function a(e){return o.createElement(s.PropertyTable.Row,null,o.createElement(s.PropertyTable.Cell,{className:i.titleWrap,placement:"first",verticalAlign:"adaptive",colSpan:2,"data-section-name":e.name,checkableTitle:!0},o.createElement(r.CheckableTitle,{title:e.title,name:`is-enabled-${e.name}`,className:i.title})))}},71953:(e,t,n)=>{"use strict";n.d(t,{logger:()=>o});const o=(0,n(59224).getLogger)("Platform.GUI.PropertyDefinitionTrace")},35789:(e,t,n)=>{"use strict";n.d(t,{ColorPicker:()=>U});var o=n(50959),s=n(97754),r=n.n(s),i=n(11542),a=n(16838),l=n(59369),c=n(43688),u=n(93532),d=n(45582),p=Math.ceil,h=Math.max;const m=function(e,t,n){t=(n?(0,u.default)(e,t,n):void 0===t)?1:h((0,d.default)(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,r=0,i=Array(p(o/t));s<o;)i[r++]=(0,c.default)(e,s,s+=t);return i};var v=n(24377),f=n(50151),g=n(49483),b=n(20520),C=n(16396),y=n(6914),E=n(50238),w=n(35149),_=n(87466);function S(e){
45560:(e,t,n)=>{"use strict";n.d(t,{useDefinitionProperty:()=>r});var o=n(50959),s=n(71953);const r=e=>{const t="property"in e?e.property:void 0,n="defaultValue"in e?e.defaultValue:e.property.value(),[r,i]=(0,o.useState)(t?t.value():n);(0,o.useEffect)((()=>{if(t){const n={};return i(t.value()),t.subscribe(n,(t=>{const n=t.value();e.handler&&e.handler(n),i(n)})),()=>{t.unsubscribeAll(n)}}return()=>{}}),[t]);return[r,e=>{if(void 0!==t){const n=t.value();s.logger.logNormal(`Changing property value from "${n}" to "${e}"`),t.setValue(e)}}]}},78260:(e,t,n)=>{"use strict";n.d(t,{CellWrap:()=>a});var o=n(50959),s=n(97754),r=n.n(s),i=n(2746);function a(e){return o.createElement("div",{className:r()(i.wrap,e.className)},e.children)}},53424:(e,t,n)=>{"use strict";n.d(t,{CheckableTitle:()=>c});var o=n(50959),s=n(15294),r=n(45560);function i(e){const{property:t,...n}=e,[i,a]=(0,r.useDefinitionProperty)({property:t}),l="mixed"===i;return o.createElement(s.Checkbox,{...n,name:"toggle-enabled",checked:l||i,indeterminate:l,onChange:function(){a("mixed"===i||!i)}})}var a=n(78260),l=n(25679);function c(e){const{property:t,disabled:n,title:s,className:r,name:c}=e,u=o.createElement("span",{className:l.title},s);return o.createElement(a.CellWrap,{className:r},t?o.createElement(i,{name:c,className:l.checkbox,property:t,disabled:n,label:u,labelAlignBaseline:!0}):u)}},31356:(e,t,n)=>{"use strict";n.d(t,{CommonSection:()=>i});var o=n(50959),s=n(11062),r=n(53424);n(41125);function i(e){const{id:t,offset:n,disabled:i,checked:a,title:l,children:c,solutionId:u}=e;return o.createElement(s.PropertyTable.Row,null,o.createElement(s.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:n,"data-section-name":t,colSpan:Boolean(c)?void 0:2,checkableTitle:!0},o.createElement(r.CheckableTitle,{name:`is-enabled-${t}`,title:l,disabled:i,property:a}),u&&!Boolean(c)&&!1),Boolean(c)&&o.createElement(s.PropertyTable.Cell,{placement:"last","data-section-name":t},c,u&&!1))}},86067:(e,t,n)=>{"use strict";n.d(t,{GroupTitleSection:()=>a});var o=n(50959),s=n(11062),r=n(53424),i=n(69750);function a(e){return o.createElement(s.PropertyTable.Row,null,o.createElement(s.PropertyTable.Cell,{className:i.titleWrap,placement:"first",verticalAlign:"adaptive",colSpan:2,"data-section-name":e.name,checkableTitle:!0},o.createElement(r.CheckableTitle,{title:e.title,name:`is-enabled-${e.name}`,className:i.title})))}},71953:(e,t,n)=>{"use strict";n.d(t,{logger:()=>o});const o=(0,n(59224).getLogger)("Platform.GUI.PropertyDefinitionTrace")},35789:(e,t,n)=>{"use strict";n.d(t,{ColorPicker:()=>U});var o=n(50959),s=n(97754),r=n.n(s),i=n(11542),a=n(16838),l=n(59369),c=n(43688),u=n(93532),d=n(45582),p=Math.ceil,h=Math.max;const m=function(e,t,n){t=(n?(0,u.default)(e,t,n):void 0===t)?1:h((0,d.default)(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,r=0,i=Array(p(o/t));s<o;)i[r++]=(0,c.default)(e,s,s+=t);return i};var v=n(24377),f=n(50151),g=n(49483),b=n(20520),C=n(16396),y=n(6914),E=n(50238),w=n(35149),_=n(87466);function S(e){
const{color:t,selected:r,onSelect:l,onSwatchRemove:c}=e,[u,d]=(0,o.useState)(!1),[p,h]=(0,E.useRovingTabindexElement)(null),m=Boolean(c)&&!g.CheckMobile.any();return o.createElement(o.Fragment,null,o.createElement("button",{ref:p,style:t?{color:t}:void 0,className:s(_.swatch,a.PLATFORM_ACCESSIBILITY_ENABLED&&_.accessible,u&&_.hover,r&&_.selected,!t&&_.empty,String(t).toLowerCase()===y.white&&_.white),onClick:function(){l(t)},onContextMenu:m?v:void 0,tabIndex:h,"data-role":"swatch"}),m&&o.createElement(b.PopupMenu,{isOpened:u,onClose:v,position:function(){const e=(0,f.ensureNotNull)(p.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height+4}},onClickOutside:v},o.createElement(C.PopupMenuItem,{className:_.contextItem,label:i.t(null,void 0,n(54336)),icon:w,onClick:function(){v(),(0,f.ensureDefined)(c)()},dontClosePopup:!0})));function v(){d(!u)}}function x(e){const{colors:t,color:n,children:s,onSelect:r,onRemoveCustomColor:i}=e;if(!t)return null;const a=n?(0,v.parseRgb)(String(n)):void 0,l=m(t,10);return o.createElement("div",{className:_.swatches},l.map(((e,t)=>o.createElement("div",{className:_.row,"data-role":"row",key:t},e.map(((e,n)=>o.createElement(S,{key:String(e)+n,color:e,selected:a&&(0,v.areEqualRgb)(a,(0,v.parseRgb)(String(e))),onSelect:c,onSwatchRemove:i?()=>function(e,t){const n=10*e+t;null==i||i(n)}(t,n):void 0})))))),s);function c(e){r&&r(e)}}var N=n(54368),T=n(94720);function I(e){const t=`Invalid RGB color: ${e}`;if(null===e)throw new Error(t);const n=e.match(/^#?([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i);if(null===n)throw new Error(t);const[,o,s,r]=n;if(!o||!s||!r)throw new Error(t);const i=parseInt(o,16)/255,a=parseInt(s,16)/255,l=parseInt(r,16)/255,c=Math.max(i,a,l),u=Math.min(i,a,l);let d;const p=c,h=c-u,m=0===c?0:h/c;if(c===u)d=0;else{switch(c){case i:d=(a-l)/h+(a<l?6:0);break;case a:d=(l-i)/h+2;break;case l:d=(i-a)/h+4;break;default:d=0}d/=6}return{h:d,s:m,v:p}}var k=n(43370),B=n(68335),P=n(37160),D=n(35257);const M=[37,39,38,40],O=.01;class R extends o.PureComponent{constructor(){super(...arguments),this._container=null,this._refContainer=e=>{this._container=e},this._handlePosition=e=>{const{hsv:{h:t},onChange:n}=this.props;if(!n)return;const o=(0,f.ensureNotNull)(this._container).getBoundingClientRect(),s=e.clientX-o.left,r=e.clientY-o.top;n({h:t,s:(0,P.clamp)(s/o.width,0,1),v:(0,P.clamp)(1-r/o.height,0,1)})},this._handleKeyDown=e=>{const{hsv:{h:t,s:n,v:o},onChange:s}=this.props,r=(0,B.hashFromEvent)(e);if(!s||!M.includes(r))return;if(37===r||39===r){return void s({h:t,s:(0,P.clamp)(37===r?n-O:n+O,0,1),v:o})}s({h:t,s:n,v:(0,P.clamp)(40===r?o-O:o+O,0,1)})},this._mouseDown=e=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=e=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(e)},this._mouseMove=(0,k.default)(this._handlePosition,100),this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])}}render(){
const{className:e,hsv:{h:t,s:n,v:s}}=this.props,i=`hsl(${360*t}, 100%, 50%)`;return o.createElement("div",{tabIndex:a.PLATFORM_ACCESSIBILITY_ENABLED?0:-1,className:r()(a.PLATFORM_ACCESSIBILITY_ENABLED&&D.accessible,e),onKeyDown:this._handleKeyDown},o.createElement("div",{className:D.saturation,style:{backgroundColor:i},ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},o.createElement("div",{className:D.pointer,style:{left:100*n+"%",top:100*(1-s)+"%"}})))}}var L=n(1369);class A extends o.PureComponent{constructor(){super(...arguments),this._container=null,this._refContainer=e=>{this._container=e},this._handlePosition=e=>{const{hsv:{s:t,v:n},onChange:o}=this.props;if(!o)return;const s=(0,f.ensureNotNull)(this._container).getBoundingClientRect(),r=e.clientY-s.top;o({h:(0,P.clamp)(r/s.height,0,1),s:t,v:n})},this._handleKeyDown=e=>{const{hsv:{h:t,s:n,v:o},onChange:s}=this.props,r=(0,B.hashFromEvent)(e);if(!s||38!==r&&40!==r)return;s({h:(0,P.clamp)(38===r?t-.01:t+.01,0,1),s:n,v:o})},this._mouseDown=e=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=e=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(e)},this._mouseMove=(0,k.default)(this._handlePosition,100),this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])}}render(){const{className:e,hsv:{h:t}}=this.props;return o.createElement("div",{className:r()(L.hue,a.PLATFORM_ACCESSIBILITY_ENABLED&&L.accessible,e),tabIndex:a.PLATFORM_ACCESSIBILITY_ENABLED?0:-1,onKeyDown:this._handleKeyDown},o.createElement("div",{className:L.pointerContainer,ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},o.createElement("div",{className:L.pointer,style:{top:100*t+"%"}})))}}var F=n(80679);const W="#000000",V=i.t(null,{context:"Color Picker"},n(40276));class z extends o.PureComponent{constructor(e){super(e),this._inputRef=o.createRef(),this._handleHSV=e=>{const t=function(e){const{h:t,s:n,v:o}=e;let s,r,i;const a=Math.floor(6*t),l=6*t-a,c=o*(1-n),u=o*(1-l*n),d=o*(1-(1-l)*n);switch(a%6){case 0:s=o,r=d,i=c;break;case 1:s=u,r=o,i=c;break;case 2:s=c,r=o,i=d;break;case 3:s=c,r=u,i=o;break;case 4:s=d,r=c,i=o;break;case 5:s=o,r=c,i=u;break;default:s=0,r=0,i=0}return"#"+[255*s,255*r,255*i].map((e=>("0"+Math.round(e).toString(16)).replace(/.+?([a-f0-9]{2})$/i,"$1"))).join("")}(e)||W;this.setState({color:t,inputColor:t.replace(/^#/,""),hsv:e}),this.props.onSelect(t)},this._handleInput=e=>{const t=e.currentTarget.value;try{const e=I(t),n=`#${t}`;this.setState({color:n,inputColor:t,hsv:e}),this.props.onSelect(n)}catch(e){this.setState({inputColor:t})}},this._handleAddColor=()=>this.props.onAdd(this.state.color);const t=e.color||W;this.state={color:t,inputColor:t.replace(/^#/,""),hsv:I(t)}}componentDidMount(){var e
;a.PLATFORM_ACCESSIBILITY_ENABLED&&!g.CheckMobile.any()&&(null===(e=this._inputRef.current)||void 0===e||e.focus())}render(){const{color:e,hsv:t,inputColor:n}=this.state;return o.createElement("div",{className:F.container},o.createElement("div",{className:F.form},o.createElement("div",{className:F.swatch,style:{backgroundColor:e}}),o.createElement("div",{className:F.inputWrap},o.createElement("span",{className:F.inputHash},"#"),o.createElement("input",{ref:this._inputRef,type:"text",className:F.input,value:n,onChange:this._handleInput})),o.createElement("div",{className:F.buttonWrap},o.createElement(T.Button,{size:"s",onClick:this._handleAddColor},V))),o.createElement("div",{className:F.hueSaturationWrap},o.createElement(R,{className:F.saturation,hsv:t,onChange:this._handleHSV}),o.createElement(A,{className:F.hue,hsv:t,onChange:this._handleHSV})))}}var q=n(93402);const K=i.t(null,{context:"Color Picker"},n(53585)),H=i.t(null,{context:"Color Picker"},n(81865));function U(e){const{color:t,opacity:n,selectCustom:s,selectOpacity:i,customColors:c,onRemoveCustomColor:u,onToggleCustom:d,onOpacityChange:p,menu:h}=e,[m,v]=(0,o.useState)(!1),f="number"==typeof n?n:1,[g,b]=(0,l.useRowsNavigation)();return(0,o.useLayoutEffect)((()=>{h&&h.update()}),[i,h]),m?o.createElement(z,{color:t,onSelect:C,onAdd:function(t){v(!1),null==d||d(!1);const{onAddColor:n}=e;n&&n(t)}}):o.createElement("div",{className:q.container},o.createElement("div",{ref:g,onKeyDown:b},o.createElement(x,{colors:y.basic,color:t,onSelect:C}),o.createElement(x,{colors:y.extended,color:t,onSelect:C}),o.createElement("div",{className:q.separator}),o.createElement(x,{colors:c,color:t,onSelect:C,onRemoveCustomColor:u},s&&o.createElement(o.Fragment,null,a.PLATFORM_ACCESSIBILITY_ENABLED?(null==c?void 0:c.length)?o.createElement("button",{title:K,onClick:E,className:r()(q.customButton,q.accessible,"apply-common-tooltip"),tabIndex:-1}):o.createElement("div",{"data-role":"row"},o.createElement("button",{title:K,onClick:E,className:r()(q.customButton,q.accessible,"apply-common-tooltip"),tabIndex:-1})):o.createElement("div",{className:r()(q.customButton,"apply-common-tooltip"),onClick:E,title:K,tabIndex:-1})))),i&&o.createElement(o.Fragment,null,o.createElement("div",{className:q.sectionTitle},H),o.createElement(N.Opacity,{color:t,opacity:f,onChange:function(e){p&&p(e)}})));function C(t){const{onColorChange:n}=e;n&&n(t,m)}function E(e){v(!0),null==d||d(!0)}}},54368:(e,t,n)=>{"use strict";n.d(t,{Opacity:()=>u});var o=n(50959),s=n(97754),r=n(50151),i=n(37160),a=n(68335),l=n(16838),c=n(30099);class u extends o.PureComponent{constructor(e){super(e),this._container=null,this._pointer=null,this._raf=null,this._refContainer=e=>{this._container=e},this._refPointer=e=>{this._pointer=e},this._handlePosition=e=>{null===this._raf&&(this._raf=requestAnimationFrame((()=>{const t=(0,r.ensureNotNull)(this._container),n=(0,r.ensureNotNull)(this._pointer),o=t.getBoundingClientRect(),s=n.offsetWidth,a=e.clientX-s/2-o.left,l=(0,i.clamp)(a/(o.width-s),0,1);this.setState({
@@ -31,7 +31,7 @@ className:d()(v.input,v.sessionInputContainer),name:"start",value:(0,r.ensureDef
const{input:e,value:t,disabled:r,hasTooltip:i}=this.props,a=A.Interval.parse(void 0===t?e.defval:t),l=a.isValid()?a.value():t,c=W?W.get().filter((e=>!A.Interval.parse(e).isRange())):[],u=(0,F.mergeResolutions)(V,(0,F.isSecondsEnabled)()?z:[],(0,F.isTicksEnabled)()?q:[],c);return u.unshift(""),s.createElement(B.Select,{id:e.id,className:d()(v.input,v.resolution,i&&v.hasTooltip),menuClassName:d()(v.dropdownMenu,v.resolution),items:(p=u,p.map((e=>({value:e,content:""===e?o.t(null,void 0,n(94551)):(0,F.getTranslatedResolutionModel)(e).hint})))),value:l,onChange:this._onChange,disabled:r});var p}}const H=(0,h.bind)(K);var U=n(41552),Z=n(41594);class G extends s.PureComponent{render(){return s.createElement(k.PropertyContext.Consumer,null,(e=>e?this._getColorInputWithContext(e):null))}_getColorInputWithContext(e){var t;const{input:{id:n},disabled:o,hasTooltip:r}=this.props,{model:i,study:a}=e;if("properties"in a||"tempProperties"in a){const e="properties"in a?a.properties().inputs[n]:null===(t=a.tempProperties)||void 0===t?void 0:t.inputs.child(n);return s.createElement(Z.StylePropertyContainer,{model:i,property:e},s.createElement(U.ColorWithThicknessSelect,{className:d()(r&&v.hasTooltip),color:e,disabled:o}))}return null}}var Y=n(85528),$=n(76056),j=n(23935),Q=n(27365),X=n(93071);const J=(0,h.bind)((function(e){const{value:t,onChange:n,input:o,tzName:r,hasTooltip:i}=e,{id:a,name:l,defval:c}=o,u=(0,s.useMemo)((()=>Number(null!=t?t:c)),[t,c]),p=(0,s.useMemo)((()=>(0,Q.getChartTimezoneOffsetMs)(u,r)),[u,r]),h=(0,s.useMemo)((()=>{const e=new Date(u+p+v(u));return e.setSeconds(0),e}),[u,p]),m=(0,s.useMemo)((()=>(0,j.twoDigitsFormat)(h.getHours())+":"+(0,j.twoDigitsFormat)(h.getMinutes())),[h]);return s.createElement("div",{className:d()(X.container,i&&X.hasTooltip)},s.createElement("div",{className:X.datePickerWrapper},s.createElement(Y.DatePicker,{InputComponent:$.DateInput,initial:h,onPick:function(e){if(null===e)return;const t=new Date(h);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),n(f(t),a,l)},revertInvalidData:!0})),s.createElement("div",{className:X.timePickerWrapper},s.createElement(w.TimeInput,{value:m,onChange:function(e){const[t,o]=e.split(":"),s=new Date(h);s.setHours(Number(t)),s.setMinutes(Number(o)),n(f(s),a,l)}})));function v(e){return 60*new Date(e).getTimezoneOffset()*1e3}function f(e){return e.valueOf()-p-v(u)}}));class ee extends s.PureComponent{render(){const{input:e,disabled:t,onChange:n,tzName:o,hasTooltip:r}=this.props;if((0,i.isStudyInputOptionsInfo)(e))return s.createElement(D,{input:e,disabled:t,onChange:n,hasTooltip:r});switch(e.type){case"integer":return s.createElement(a.IntegerInput,{input:e,disabled:t,onChange:n,hasTooltip:r});case"float":case"price":return s.createElement(l.FloatInput,{input:e,disabled:t,onChange:n,hasTooltip:r});case"bool":return s.createElement(c.BoolInput,{input:e,disabled:t,onChange:n,hasTooltip:r});case"text":return s.createElement(b,{input:e,disabled:t,onChange:n,hasTooltip:r});case"symbol":return s.createElement(C.SymbolInput,{input:e,
disabled:t,onChange:n,hasTooltip:r});case"session":return s.createElement(x,{input:e,disabled:t,onChange:n,hasTooltip:r});case"source":return s.createElement(L,{input:e,disabled:t,onChange:n,hasTooltip:r});case"resolution":return s.createElement(H,{input:e,disabled:t,onChange:n,hasTooltip:r});case"time":return s.createElement(J,{input:e,tzName:o,onChange:n,hasTooltip:r});case"color":return s.createElement(G,{input:e,disabled:t,onChange:n,hasTooltip:r});default:return null}}}var te=n(24150),ne=n(76694);class oe extends s.PureComponent{render(){const{label:e,children:t,input:i,disabled:a,onChange:l,labelAlign:c,grouped:u,tooltip:d,solutionId:p,offset:h}=this.props,m=Boolean(d);return s.createElement(y.PropertyTable.Row,null,s.createElement(y.PropertyTable.Cell,{"data-study-input-name":(null==i?void 0:i.id)&&`${i.id}-label`,placement:"first",verticalAlign:c,grouped:u,offset:h},void 0!==e?e:o.t((0,r.ensureDefined)(i).name,{context:"input"},n(88601))),s.createElement(y.PropertyTable.Cell,{"data-study-input-name":(null==i?void 0:i.id)&&`${i.id}-input`,placement:"last",grouped:u},t||s.createElement(ee,{input:(0,r.ensureDefined)(i),onChange:l,disabled:a,hasTooltip:m}),m&&s.createElement(ne.IconGroupWrapper,null,d&&s.createElement(te.InputTooltip,{title:d}),!1)))}}},39828:(e,t,n)=>{"use strict";n.d(t,{InputsTabContent:()=>V});var o,s=n(50959),r=n(50151),i=n(11542),a=n(76917),l=n(11062),c=n(59416),u=n(97754),d=n.n(u),p=n(88400),h=n.n(p);const m=(0,c.makeSwitchGroupItem)(((o=class extends s.PureComponent{constructor(){super(...arguments),this._onChange=()=>{this.props.onChange&&this.props.onChange(this.props.value)}}render(){const e=u(this.props.className,h().radio,{[h().reverse]:Boolean(this.props.labelPositionReverse)}),t=u(h().label,{[h().disabled]:this.props.disabled}),n=u(h().box,{[h().noOutline]:-1===this.props.tabIndex});let o=null;return this.props.label&&(o=s.createElement("span",{className:t},this.props.label)),s.createElement("label",{className:e},s.createElement("span",{className:h().wrapper,title:this.props.title},s.createElement("input",{id:this.props.id,tabIndex:this.props.tabIndex,autoFocus:this.props.autoFocus,role:this.props.role,className:h().input,type:"radio",name:this.props.name,checked:this.props.checked,disabled:this.props.disabled,value:this.props.value,onChange:this._onChange,ref:this.props.reference,"aria-describedby":this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"]}),s.createElement("span",{className:n})),o)}}).defaultProps={value:"on"},o));var v=n(55141),f=n(83207),g=n(24150),b=n(76694),C=n(27698);function y(e){const{children:t,input:o,disabled:u,onChange:d,grouped:p,tooltip:h,solutionId:y}=e,E=(0,s.useContext)(a.PropertyContext),{values:w,setValue:_}=(0,r.ensureNotNull)(E),S=w[o.id],[x,N]=(0,s.useState)(S?"another-symbol":"main-symbol"),[T,I]=(0,s.useState)(S),k=Boolean(h);return(0,s.useEffect)((()=>{S&&I(S)}),[S]),s.createElement(c.SwitchGroup,{name:`symbol-source-${o.id}`,values:[x],onChange:function(e){N(e),"main-symbol"===e?(0,
f.setter)(_)("",o.id,o.name):"another-symbol"===e&&T&&(0,f.setter)(_,d)(T,o.id,o.name)}},s.createElement(l.PropertyTable.Row,null,s.createElement(l.PropertyTable.Cell,{colSpan:2,placement:"first",grouped:p,"data-study-input-name":(null==o?void 0:o.id)&&`${o.id}-main-symbol`},s.createElement(m,{value:"main-symbol",className:C.checkbox,disabled:u,label:s.createElement("span",{className:C.label},i.t(null,{context:"input"},n(88046)))}))),s.createElement(l.PropertyTable.Row,null,s.createElement(l.PropertyTable.Cell,{placement:"first",grouped:p,"data-study-input-name":(null==o?void 0:o.id)&&`${o.id}-another-symbol-label`},s.createElement(m,{value:"another-symbol",className:C.checkbox,disabled:u,label:s.createElement("span",{className:C.label},i.t(null,{context:"input"},n(73755)))})),s.createElement(l.PropertyTable.Cell,{placement:"last",grouped:p,"data-study-input-name":(null==o?void 0:o.id)&&`${o.id}-another-symbol-input`},t||s.createElement(v.SymbolInput,{input:(0,r.ensureDefined)(o),onChange:d,disabled:u||"main-symbol"===x,hasTooltip:k}),k&&s.createElement(b.IconGroupWrapper,null,h&&s.createElement(g.InputTooltip,{title:h}),!1))))}var E=n(4781);class w extends s.PureComponent{render(){const{label:e,input:t,tooltip:n,solutionId:o}=this.props,r=Boolean(n);return s.createElement(l.PropertyTable.Row,null,s.createElement(l.PropertyTable.Cell,{placement:"first",colSpan:2,"data-study-input-name":(null==t?void 0:t.id)&&`${t.id}-checkbox`},s.createElement(E.BoolInput,{label:e,input:t,hasTooltip:r}),r&&s.createElement(b.IconGroupWrapper,null,n&&s.createElement(g.InputTooltip,{title:n}),!1)))}}var _=n(12949),S=n(2568),x=n(67029),N=n(90009);class T extends s.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:o}=this.props;o(e.currentTarget.value,t,n)}}render(){const{input:{defval:e},value:t,disabled:n,onBlur:o,onKeyDown:r}=this.props;return s.createElement(S.Textarea,{className:d()(C.input,C.textarea,x.InputClasses.FontSizeMedium),value:void 0===t?e:t,onChange:this._onChange,onBlur:o,onKeyDown:r,disabled:n,maxLength:4096})}}const I=(0,N.debounced)(T),k=(0,f.bind)(I);var B=n(80128);function P(e){const{input:t,label:n,tooltip:o,solutionId:r}=e,i=Boolean(o);return s.createElement(l.PropertyTable.Row,null,s.createElement(l.PropertyTable.Cell,{placement:"first",colSpan:2,className:B.wrap,"data-study-input-name":(null==t?void 0:t.id)&&`${t.id}-textarea`},s.createElement("div",{className:B.labelWrap},s.createElement("span",{className:d()(B.label,i&&B.hasTooltip)},n),i&&s.createElement(b.IconGroupWrapper,null,o&&s.createElement(g.InputTooltip,{title:o}),!1)),s.createElement(k,{input:t})))}function D(e){const{input:t,tooltip:o,solutionId:r}=e;return"symbol"===t.type&&t.optional?s.createElement(y,{input:t,tooltip:o,solutionId:r}):"bool"===t.type?s.createElement(w,{label:i.t(t.name,{context:"input"},n(88601)),input:t,tooltip:o,solutionId:r}):"text_area"===t.type?s.createElement(P,{label:i.t(t.name,{context:"input"},n(88601)),input:t,tooltip:o,solutionId:r}):s.createElement(_.InputRow,{
labelAlign:function(e){switch(e){case"session":return"adaptive";case"time":return"topCenter";default:return}}(t.type),input:t,tooltip:o,solutionId:r})}var M=n(86067),O=n(17611);function R(e){const{content:t}=e;let n;return s.createElement(l.PropertyTable.InlineRowContext.Provider,{value:!0},s.createElement("div",{className:O.inlineRow},t.children.map(((e,o)=>(void 0!==e.tooltip&&(n=e.tooltip),s.createElement(D,{key:e.id,input:e,tooltip:o===t.children.length-1?n:void 0}))))))}var L=n(64420),A=n(26278);function F(e){const{content:t}=e;return(0,L.isGroup)(t)?(0,L.isInputInlines)(t)?s.createElement(R,{content:t}):s.createElement(s.Fragment,null,s.createElement("div",{className:A.titleWrap},s.createElement(M.GroupTitleSection,{title:i.t(t.id,{context:"input"},n(88601)),name:t.id})),t.children.map((e=>(0,L.isGroup)(e)?s.createElement(R,{key:e.id,content:e}):s.createElement(D,{key:e.id,input:e,tooltip:e.tooltip,solutionId:e.solutionId}))),s.createElement("div",{className:A.groupFooter})):s.createElement(D,{input:t,tooltip:t.tooltip,solutionId:t.solutionId})}const W={offset:i.t(null,void 0,n(89298))};class V extends s.PureComponent{render(){const{reference:e,inputs:t,property:n,study:o,studyMetaInfo:i,model:a,onStudyInputChange:c,className:u}=this.props,{offset:d,offsets:p}=n;return s.createElement(l.PropertyTable,{reference:e,className:u},s.createElement(z,{study:o,model:a,property:n.inputs,inputs:t,onStudyInputChange:c}),d&&this._createOffsetSection(d,(0,r.ensureDefined)(i.offset)),p&&p.childNames().map((e=>{var t;const n=p.childs()[e];return this._createOffsetSection(n,(0,r.ensureDefined)(null===(t=i.offsets)||void 0===t?void 0:t[e]))})))}_createOffsetSection(e,t){const n=e.childs();return s.createElement(z,{key:`offset_${t.title}`,study:this.props.study,model:this.props.model,inputs:[q(n,t)],property:e})}}function z(e){const{study:t,model:n,inputs:o,property:r,onStudyInputChange:i}=e,l=o,c=(0,s.useMemo)((()=>(0,L.getInputGroups)(l)),[l]);return s.createElement(a.PropertyContainer,{property:r,study:t,model:n,onStudyInputChange:i},!1,!1,c.map((e=>s.createElement(s.Fragment,{key:e.id},s.createElement(F,{content:e}),!1))))}function q(e,t){return{id:"val",name:t.title||W.offset,defval:e.val.value(),type:"integer",min:t.min,max:t.max}}},4781:(e,t,n)=>{"use strict";n.d(t,{BoolInput:()=>u,BoolInputComponent:()=>c});var o=n(50959),s=n(32389),r=n(97754),i=n.n(r),a=n(83207),l=n(27698);class c extends o.PureComponent{constructor(){super(...arguments),this._onChange=()=>{const{input:{id:e,name:t},value:n,onChange:o}=this.props;o(!n,e,t)}}render(){const{input:{defval:e},value:t,disabled:n,label:r,hasTooltip:a}=this.props,c=void 0===t?e:t;return o.createElement(s.Checkbox,{className:i()(l.checkbox,a&&l.hasTooltip),disabled:n,checked:c,onChange:this._onChange,label:o.createElement("span",{className:l.label},r),labelAlignBaseline:!0})}}const u=(0,a.bind)(c)},90009:(e,t,n)=>{"use strict";n.d(t,{debounced:()=>r});var o=n(50959);const s={blur:0,commit:0,change:1/0};function r(e,t=s){return class extends o.PureComponent{constructor(e){
labelAlign:function(e){switch(e){case"session":return"adaptive";case"time":return"topCenter";default:return}}(t.type),input:t,tooltip:o,solutionId:r})}var M=n(86067),O=n(17611);function R(e){const{content:t}=e;let n;return s.createElement(l.PropertyTable.InlineRowContext.Provider,{value:!0},s.createElement("div",{className:O.inlineRow},t.children.map(((e,o)=>(void 0!==e.tooltip&&(n=e.tooltip),s.createElement(D,{key:e.id,input:e,tooltip:o===t.children.length-1?n:void 0}))))))}var L=n(64420),A=n(26278);function F(e){const{content:t}=e;return(0,L.isGroup)(t)?(0,L.isInputInlines)(t)?s.createElement(R,{content:t}):s.createElement(s.Fragment,null,s.createElement("div",{className:A.titleWrap},s.createElement(M.GroupTitleSection,{title:i.t(t.id,{context:"input"},n(88601)),name:t.id})),t.children.map((e=>(0,L.isGroup)(e)?s.createElement(R,{key:e.id,content:e}):s.createElement(D,{key:e.id,input:e,tooltip:e.tooltip,solutionId:e.solutionId}))),s.createElement("div",{className:A.groupFooter})):s.createElement(D,{input:t,tooltip:t.tooltip,solutionId:t.solutionId})}const W={offset:i.t(null,void 0,n(89298))};class V extends s.PureComponent{render(){const{reference:e,inputs:t,property:n,study:o,studyMetaInfo:i,model:a,onStudyInputChange:c,className:u}=this.props,{offset:d,offsets:p}=n;return s.createElement(l.PropertyTable,{reference:e,className:u},s.createElement(z,{study:o,model:a,property:n.inputs,inputs:t,onStudyInputChange:c}),d&&this._createOffsetSection(d,(0,r.ensureDefined)(i.offset)),p&&p.childNames().map((e=>{var t;const n=p.childs()[e];return this._createOffsetSection(n,(0,r.ensureDefined)(null===(t=i.offsets)||void 0===t?void 0:t[e]))})))}_createOffsetSection(e,t){const n=e.childs();return s.createElement(z,{key:`offset_${t.title}`,study:this.props.study,model:this.props.model,inputs:[q(n,t)],property:e})}}function z(e){const{study:t,model:n,inputs:o,property:r,onStudyInputChange:i}=e,l=o,c=(0,s.useMemo)((()=>(0,L.getInputGroups)(l)),[l]);return s.createElement(a.PropertyContainer,{property:r,study:t,model:n,onStudyInputChange:i},!1,!1,c.map((e=>s.createElement(s.Fragment,{key:e.id},s.createElement(F,{content:e}),!1))))}function q(e,t){return{id:"val",name:t.title||W.offset,defval:e.val.value(),type:"integer",min:t.min,max:t.max}}},4781:(e,t,n)=>{"use strict";n.d(t,{BoolInput:()=>u,BoolInputComponent:()=>c});var o=n(50959),s=n(15294),r=n(97754),i=n.n(r),a=n(83207),l=n(27698);class c extends o.PureComponent{constructor(){super(...arguments),this._onChange=()=>{const{input:{id:e,name:t},value:n,onChange:o}=this.props;o(!n,e,t)}}render(){const{input:{defval:e},value:t,disabled:n,label:r,hasTooltip:a}=this.props,c=void 0===t?e:t;return o.createElement(s.Checkbox,{className:i()(l.checkbox,a&&l.hasTooltip),disabled:n,checked:c,onChange:this._onChange,label:o.createElement("span",{className:l.label},r),labelAlignBaseline:!0})}}const u=(0,a.bind)(c)},90009:(e,t,n)=>{"use strict";n.d(t,{debounced:()=>r});var o=n(50959);const s={blur:0,commit:0,change:1/0};function r(e,t=s){return class extends o.PureComponent{constructor(e){
super(e),this._onChange=(e,n,o)=>{const s=t.change;s?(clearTimeout(this._timeout),this.setState({value:e},(()=>{s!==1/0&&(this._timeout=setTimeout((()=>this._flush()),s))}))):this._flush(e)},this._onBlur=()=>{this._debounce(t.blur);const{onBlur:e}=this.props;e&&e()},this._onKeyDown=e=>{13===e.keyCode&&this._debounce(t.commit)},this.state={prevValue:e.value,value:e.value}}componentWillUnmount(){this._flush()}render(){const{value:t}=this.state;return o.createElement(e,{...this.props,value:t,onChange:this._onChange,onBlur:this._onBlur,onKeyDown:this._onKeyDown})}static getDerivedStateFromProps(e,t){return e.value===t.prevValue?t:{prevValue:e.value,value:e.value}}_debounce(e){e?(clearTimeout(this._timeout),e!==1/0&&(this._timeout=setTimeout((()=>this._flush()),e))):this.setState((e=>{this._flush(e.value)}))}_flush(e){const{input:{id:t,name:n},onChange:o}=this.props,{prevValue:s,value:r}=this.state;clearTimeout(this._timeout);const i=void 0!==e?e:r;void 0!==i&&i!==s&&o(i,t,n)}}}},47510:(e,t,n)=>{"use strict";n.d(t,{FloatInput:()=>p,FloatInputComponent:()=>d});var o=n(50959),s=n(97754),r=n.n(s),i=n(95052),a=n(83207),l=n(90009),c=n(27698);class u extends o.PureComponent{render(){const{hasTooltip:e}=this.props;return o.createElement(i.NumericInput,{...this.props,className:r()(c.input,e&&c.hasTooltip),stretch:!1})}}const d=(0,l.debounced)(u,{change:1/0,commit:0,blur:0}),p=(0,a.bind)(d)},96438:(e,t,n)=>{"use strict";n.d(t,{IntegerInput:()=>p,IntegerInputComponent:()=>d});var o=n(50959),s=n(97754),r=n.n(s),i=n(83207),a=n(90009),l=n(95052),c=n(27698);class u extends o.PureComponent{render(){const{hasTooltip:e}=this.props;return o.createElement(l.NumericInput,{...this.props,mode:"integer",className:r()(c.input,e&&c.hasTooltip),stretch:!1})}}const d=(0,a.debounced)(u,{change:1/0,commit:0,blur:0}),p=(0,i.bind)(d)},95052:(e,t,n)=>{"use strict";n.d(t,{NumericInput:()=>C});var o=n(50959),s=n(50151),r=n(11542),i=n(60521),a=n(49483),l=n(92399),c=n(82161),u=n(38223);var d=n(87663),p=n(37160);const h=new class{constructor(e=" "){this._divider=e}format(e){const t=(0,c.splitThousands)(e,this._divider);return(0,u.isRtl)()?(0,u.startWithLTR)(t):t}parse(e){const t=(0,u.stripLTRMarks)(e).split(this._divider).join(""),n=Number(t);return isNaN(n)||/e/i.test(t)?{res:!1}:{res:!0,value:n,suggest:this.format(n)}}},m=/^-?[0-9]*$/,v=9e15;class f extends o.PureComponent{constructor(e){super(e),this._onFocus=e=>{this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus(e)},this._onBlur=e=>{this.setState({focused:!1}),!1!==this.props.shouldApplyValueOnBlur&&(this.setState({displayValue:g(this.props,this.props.value)}),this.props.errorHandler&&this.props.errorHandler(!1)),this.props.onBlur&&this.props.onBlur(e)},this._onValueChange=e=>{const t=e.target.value;if(void 0!==this.props.onEmptyString&&""===t&&this.props.onEmptyString(),"integer"===this.props.mode&&!m.test(t))return;const n=b(t,this.props.formatter),o=n.res?this._checkValueBoundaries(n.value):{isPassed:!1,msg:void 0
},s=n.res&&!o.isPassed,r=n.res&&n.suggest&&!this.state.focused?n.suggest:t,i=s&&o.msg?o.msg:this._errMsg;this.setState({displayValue:r,errorMsg:i}),n.res&&o.isPassed&&this.props.onValueChange(n.value,"input"),this.props.errorHandler&&this.props.errorHandler(!n.res||s)},this._onValueByStepChange=e=>{const{roundByStep:t=!0,step:n=1,uiStep:o,min:s=n,formatter:r}=this.props,a=b(this.state.displayValue,r),l=null!=o?o:n;let c=n;if(a.res){const o=new i.Big(a.value),r=o.minus(s).mod(n);let u=o.plus(e*l);!r.eq(0)&&t&&(u=u.plus((e>0?0:1)*l).minus(r)),c=u.toNumber()}const{isPassed:u,clampedValue:d}=this._checkValueBoundaries(c);c=u?c:d,this.setState({displayValue:g(this.props,c)}),this.props.onValueChange(c,"step"),this.props.errorHandler&&this.props.errorHandler(!1)};const{value:t}=e;this._errMsg=r.t(null,void 0,n(35563)),this.state={value:t,displayValue:g(e,t),focused:!1,errorMsg:this._errMsg}}render(){var e;return o.createElement(l.NumberInputView,{id:this.props.id,inputMode:null!==(e=this.props.inputMode)&&void 0!==e?e:this.state.inputMode,borderStyle:this.props.borderStyle,fontSizeStyle:this.props.fontSizeStyle,value:this.state.displayValue,forceShowControls:this.props.forceShowControls,className:this.props.className,inputClassName:this.props.inputClassName,button:this.props.button,placeholder:this.props.placeholder,innerLabel:this.props.innerLabel,endSlot:this.props.endSlot,disabled:this.props.disabled,warning:this.props.warning,error:this.props.error,autoComplete:this.props.autoComplete,errorMessage:this.props.errorMessage||this.state.errorMsg,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this.props.inputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown,controlDecKeyCodes:this.props.controlDecKeyCodes,controlIncKeyCodes:this.props.controlIncKeyCodes,title:this.props.title,intent:this.props.intent,highlight:this.props.highlight,highlightRemoveRoundBorder:this.props.highlightRemoveRoundBorder,stretch:this.props.stretch,autoSelectOnFocus:!a.CheckMobile.any(),"data-name":this.props["data-name"]})}componentDidMount(){this.setState({inputMode:a.CheckMobile.iOS()?void 0:"numeric"})}getClampedValue(){const{min:e=-1/0,max:t=v}=this.props,n=b(this.state.displayValue,this.props.formatter);return n.res?(0,p.clamp)(n.value,e,t):null}static getDerivedStateFromProps(e,t){const{alwaysUpdateValueFromProps:n,value:o}=e;return t.focused&&!n||t.value===o?null:{value:o,displayValue:g(e,o)}}_checkValueBoundaries(e){var t,o,s,i;const{min:a=-1/0,max:l=v}=this.props,c=function(e,t,n){const o=e>=t,s=e<=n;return{passMin:o,passMax:s,pass:o&&s,clamped:(0,p.clamp)(e,t,n)}}(e,a,l);let u;return c.passMax||(u=null!==(o=null===(t=this.props.boundariesErrorMessages)||void 0===t?void 0:t.greaterThanMax)&&void 0!==o?o:r.t(null,{replace:{max:String(l)}},n(2607))),c.passMin||(u=null!==(i=null===(s=this.props.boundariesErrorMessages)||void 0===s?void 0:s.lessThanMin)&&void 0!==i?i:r.t(null,{replace:{
min:String(a)}},n(53669))),{isPassed:c.pass,msg:u,clampedValue:c.clamped}}}function g(e,t){const{useFormatter:n=!0,formatter:o,mode:s}=e;return n&&"integer"!==s?function(e,t=h){return null!==e?t.format(e):""}(t,o):function(e){if(null===e)return"";return d.NumericFormatter.formatNoE(e)}(t)}function b(e,t=h){return t.parse?t.parse(e):{res:!1,error:"Formatter does not support parse"}}class C extends o.PureComponent{constructor(){super(...arguments),this._container=null,this._handleContainerRef=e=>this._container=e,this._onChange=(e,t)=>{const{input:{id:n,name:o},onChange:s,onBlur:r}=this.props;s(e,n,o),"step"===t&&r&&r()},this._onBlur=e=>{const{onBlur:t}=this.props;if(t){const n=(0,s.ensureNotNull)(this._container);n.contains(document.activeElement)||n.contains(e.relatedTarget)||t()}}}render(){const{input:{defval:e,min:t,max:n,step:s},value:r,disabled:i,onKeyDown:a,className:l,mode:c,stretch:u}=this.props;return o.createElement(f,{className:l,value:Number(void 0===r?e:r),min:t,max:n,step:s,mode:c,onBlur:this._onBlur,onValueChange:this._onChange,onKeyDown:a,disabled:i,containerReference:this._handleContainerRef,fontSizeStyle:"medium",roundByStep:!1,stretch:u})}}},55141:(e,t,n)=>{"use strict";n.d(t,{SymbolInput:()=>d,getInternalSymbolName:()=>c});var o=n(50959),s=n(50151),r=n(76917),i=n(83207),a=n(73146),l=n(48897);function c(e,t){const n=(0,a.createAdapter)(t).resolvedSymbolInfoBySymbol(e);return n&&(n.ticker||n.full_name)?n.ticker||n.full_name:e}function u(e,t){const n=(0,a.createAdapter)(t).resolvedSymbolInfoBySymbol(e);return null===n?e:n.name}const d=(0,i.bind)((function(e){const t=(0,o.useContext)(r.PropertyContext),{study:n}=(0,s.ensureNotNull)(t),{input:{defval:i},value:a}=e;return o.createElement(l.SymbolInputsButton,{...e,value:u(a||i||"",n),study:n})}))},41552:(e,t,n)=>{"use strict";n.d(t,{ColorWithThicknessSelect:()=>f});var o=n(50959),s=n(24377),r=n(11542),i=n(36298),a=n(87095),l=n(41594),c=n(58593),u=n(17948),d=n(51768);const p=new i.TranslatedString("change thickness",r.t(null,void 0,n(95657))),h=new i.TranslatedString("change color",r.t(null,void 0,n(13066))),m=new i.TranslatedString("change opacity",r.t(null,void 0,n(17023))),v=[1,2,3,4];class f extends o.PureComponent{constructor(){super(...arguments),this._trackEventLabel=null,this._getTransparencyValue=()=>{const{transparency:e}=this.props;return e?e.value():0},this._getOpacityValue=()=>{const{color:e}=this.props,t=(0,u.getPropertyValue)(e);if(t)return(0,a.isHexColor)(t)?(0,a.transparencyToAlpha)(this._getTransparencyValue()):(0,s.parseRgba)(t)[3]},this._getColorValueInHex=()=>{const{color:e}=this.props,t=(0,u.getPropertyValue)(e);return t?(0,a.isHexColor)(t)?t:(0,s.rgbToHexString)((0,s.parseRgb)(t)):null},this._onThicknessChange=e=>{const{thickness:t}=this.props;void 0!==t&&this._setProperty(t,e,p)},this._onColorChange=e=>{const{color:t,isPaletteColor:n}=this.props,o=(0,u.getPropertyValue)(t);let r=0;o&&(r=(0,a.isHexColor)(o)?this._getTransparencyValue():(0,a.alphaToTransparency)((0,s.parseRgba)(o)[3])),this._setProperty(t,(0,

View File

@@ -4,8 +4,8 @@ white:"white-UL6iwcBa",gray:"gray-UL6iwcBa",primary:"primary-UL6iwcBa"}},22436:e
inner:"inner-3kCW6DWs"}},21648:e=>{e.exports={sliderRow:"sliderRow-k2h4OAz8"}},36898:(e,t,s)=>{"use strict";s.d(t,{useMouseClickAutoBlur:()=>i});var r=s(50959),a=s(76460),n=s(16838);function i(e,t=!0){(0,r.useEffect)((()=>{if(!n.PLATFORM_ACCESSIBILITY_ENABLED||!t)return;const s=t=>{const s=e.current;null!==s&&document.activeElement instanceof HTMLElement&&((0,a.isKeyboardClick)(t)||s.contains(document.activeElement)&&"INPUT"!==document.activeElement.tagName&&document.activeElement.blur())};return window.addEventListener("click",s,!0),()=>window.removeEventListener("click",s,!0)}),[t])}},81351:(e,t,s)=>{"use strict";s.d(t,{AccessibleMenuItem:()=>u});var r=s(50959),a=s(97754),n=s.n(a),i=s(3343),o=s(50238),l=s(16838),c=s(16396),d=s(47102);function u(e){const{className:t,...s}=e,[a,u]=(0,o.useRovingTabindexElement)(null);return r.createElement(c.PopupMenuItem,{...s,className:n()(l.PLATFORM_ACCESSIBILITY_ENABLED&&d.accessible,e.isActive&&d.active,t),reference:a,tabIndex:u,onKeyDown:function(e){if(!l.PLATFORM_ACCESSIBILITY_ENABLED||e.target!==e.currentTarget)return;const t=(0,i.hashFromEvent)(e);13!==t&&32!==t||(e.preventDefault(),a.current instanceof HTMLElement&&a.current.click())},"data-role":l.PLATFORM_ACCESSIBILITY_ENABLED?"menuitem":void 0,"aria-disabled":l.PLATFORM_ACCESSIBILITY_ENABLED&&e.isDisabled||void 0})}},82962:(e,t,s)=>{"use strict";s.d(t,{ToolWidgetMenuSummary:()=>i});var r=s(50959),a=s(97754),n=s(44242);function i(e){return r.createElement("div",{className:a(e.className,n.title)},e.children)}},88066:(e,t,s)=>{"use strict";s.d(t,{DEFAULT_TOOLBAR_BUTTON_THEME:()=>o,ToolbarButton:()=>l});var r=s(50959),a=s(31409),n=s(50238),i=s(16838);const o=a.DEFAULT_TOOL_WIDGET_BUTTON_THEME,l=(0,r.forwardRef)((function(e,t){const{tooltip:s,...o}=e,[l,c]=(0,n.useRovingTabindexElement)(t);return r.createElement(a.ToolWidgetButton,{"aria-label":i.PLATFORM_ACCESSIBILITY_ENABLED?s:void 0,...o,tag:i.PLATFORM_ACCESSIBILITY_ENABLED?"button":"div",ref:l,tabIndex:c,"data-tooltip":s})}))},48889:(e,t,s)=>{"use strict";s.d(t,{ToolbarIconButton:()=>o});var r=s(50959),a=s(50238),n=s(16838),i=s(50813);const o=(0,r.forwardRef)((function(e,t){const{tooltip:s,...o}=e,[l,c]=(0,a.useRovingTabindexElement)(t);return r.createElement(i.ToolWidgetIconButton,{"aria-label":n.PLATFORM_ACCESSIBILITY_ENABLED?s:void 0,...o,tag:n.PLATFORM_ACCESSIBILITY_ENABLED?"button":"div",ref:l,tabIndex:c,"data-tooltip":s})}))},50298:(e,t,s)=>{"use strict";s.d(t,{ToolbarMenuButton:()=>d});var r=s(50959),a=s(39416),n=s(8087),i=s(50238),o=s(16838),l=s(36898),c=s(81261);const d=(0,r.forwardRef)((function(e,t){const{tooltip:s,menuReference:d=null,...u}=e,[h,m]=(0,i.useRovingTabindexElement)(null),p=(0,a.useFunctionalRefObject)(d);return(0,l.useMouseClickAutoBlur)(p),r.createElement(n.ToolWidgetMenu,{"aria-label":o.PLATFORM_ACCESSIBILITY_ENABLED?s:void 0,...u,ref:t,tag:o.PLATFORM_ACCESSIBILITY_ENABLED?"button":"div",reference:h,tabIndex:m,"data-tooltip":s,menuReference:p,onMenuKeyDown:c.handleAccessibleMenuKeyDown,onMenuFocus:e=>(0,c.handleAccessibleMenuFocus)(e,h)})}))},
54079:(e,t,s)=>{"use strict";s.d(t,{Toolbar:()=>u});var r=s(50959),a=s(50151),n=s(47201),i=s(3343),o=s(16838),l=s(71468),c=s(39416),d=s(36898);const u=(0,r.forwardRef)((function(e,t){const{onKeyDown:s,orientation:u,blurOnEscKeydown:h=!0,blurOnClick:m=!0,...p}=e,g=o.PLATFORM_ACCESSIBILITY_ENABLED?{role:"toolbar","aria-orientation":u}:{},v=(0,c.useFunctionalRefObject)(t);return(0,r.useLayoutEffect)((()=>{if(!o.PLATFORM_ACCESSIBILITY_ENABLED)return;const e=(0,a.ensureNotNull)(v.current),t=()=>{const t=(0,o.queryTabbableElements)(e).sort(o.navigationOrderComparator);if(0===t.length){const[t]=(0,o.queryFocusableElements)(e).sort(o.navigationOrderComparator);if(void 0===t)return;(0,l.becomeMainElement)(t)}if(t.length>1){const[,...e]=t;for(const t of e)(0,l.becomeSecondaryElement)(t)}};return window.addEventListener("keyboard-navigation-activation",t),()=>window.removeEventListener("keyboard-navigation-activation",t)}),[]),(0,d.useMouseClickAutoBlur)(v,m),r.createElement("div",{...p,...g,ref:v,onKeyDown:(0,n.createSafeMulticastEventHandler)((function(e){if(!o.PLATFORM_ACCESSIBILITY_ENABLED)return;if(e.defaultPrevented)return;if(!(document.activeElement instanceof HTMLElement))return;const t=(0,i.hashFromEvent)(e);if(h&&27===t)return e.preventDefault(),void document.activeElement.blur();if("vertical"!==u&&37!==t&&39!==t)return;if("vertical"===u&&38!==t&&40!==t)return;const s=e.currentTarget,r=(0,o.queryFocusableElements)(s).sort(o.navigationOrderComparator);if(0===r.length)return;const a=r.indexOf(document.activeElement);if(-1===a)return;e.preventDefault();const n=()=>{const e=(a+r.length-1)%r.length;(0,l.becomeSecondaryElement)(r[a]),(0,l.becomeMainElement)(r[e]),r[e].focus()},c=()=>{const e=(a+r.length+1)%r.length;(0,l.becomeSecondaryElement)(r[a]),(0,l.becomeMainElement)(r[e]),r[e].focus()};switch((0,o.mapKeyCodeToDirection)(t)){case"inlinePrev":"vertical"!==u&&n();break;case"inlineNext":"vertical"!==u&&c();break;case"blockPrev":"vertical"===u&&n();break;case"blockNext":"vertical"===u&&c()}}),s)})}))},33279:(e,t,s)=>{"use strict";s.r(t),s.d(t,{BottomToolbarRenderer:()=>gt});var r=s(50959),a=s(962),n=s(11542),i=s(19036),o=s(97754),l=s.n(o),c=s(14483),d=s(50298),u=s(12811),h=s(59064),m=s(90692),p=s(81351),g=s(51613),v=s(50151),_=s(51768),b=s(95366),f=s(57898),y=s(36274);const S=e=>n.t(null,{plural:"{str} minutes",count:e,replace:{str:`${e}`}},s(60144)),E=e=>n.t(null,{plural:"{str} hours",count:e,replace:{str:`${e}`}},s(17174)),k=e=>n.t(null,{plural:"{str} months",count:e,replace:{str:`${e}`}},s(28039)),C={1:{resolution:"1",text:S(1)},3:{resolution:"3",text:S(3)},5:{resolution:"5",text:S(5)},15:{resolution:"15",text:S(15)},30:{resolution:"30",text:S(30)},45:{resolution:"45",text:S(45)},60:{resolution:"60",text:E(1)},120:{resolution:"120",text:E(2)},180:{resolution:"180",text:E(3)},240:{resolution:"240",text:E(4)},"1D":{resolution:"1D",text:(w=1,n.t(null,{plural:"{str} days",count:w,replace:{str:`${w}`}},s(74262)))},"1W":{resolution:"1W",text:(T=1,n.t(null,{plural:"{str} weeks",count:T,replace:{str:`${T}`}},s(14074)))},"1M":{
resolution:"1M",text:k(1)},"3M":{resolution:"3M",text:k(3)},"6M":{resolution:"6M",text:k(6)},"12M":{resolution:"12M",text:(x=1,n.t(null,{plural:"{str} years",count:x,replace:{str:`${x}`}},s(8222)))}};var x,T,w;function M(e){const t=function(e){const t=e.value.value,r=y.Interval.parse(t);if(!r.isValid()){if("YTD"===t)return n.t(null,{context:"timeframe_title"},s(87556));if("ALL"===t)return n.t(null,{context:"timeframe_title"},s(74944));if("LASTSESSION"===t)return A(1)}if(r.isMinutes()){const e=r.multiplier();return e%60!=0?(i=e,n.t(null,{plural:"{str} minutes",count:i,replace:{str:`${i}`},context:"timeframe_title"},s(44795))):(a=e/60,n.t(null,{plural:"{str} hours",count:a,replace:{str:`${a}`},context:"timeframe_title"},s(89020)))}var a;var i;if(r.isDays())return A(r.multiplier());if(r.isWeeks())return(e=>n.t(null,{plural:"{str} weeks",count:e,replace:{str:`${e}`},context:"timeframe_title"},s(67518)))(r.multiplier());if(r.isMonths()){const e=r.multiplier();return e%12!=0?(o=e,n.t(null,{plural:"{str} months",count:o,replace:{str:`${o}`},context:"timeframe_title"},s(3189))):(e=>n.t(null,{plural:"{str} years",count:e,replace:{str:`${e}`},context:"timeframe_title"},s(6598)))(e/12)}var o;return e.description||e.text}(e),r=function(e){const t=e.targetResolution,r=y.Interval.parse(t);if(r.isMinutes()){const e=r.multiplier();return e%60!=0?(i=e,n.t(null,{plural:"{str} minutes intervals",count:i,replace:{str:`${i}`},context:"timeframe_title"},s(56347))):(a=e/60,n.t(null,{plural:"{str} hours intervals",count:a,replace:{str:`${a}`},context:"timeframe_title"},s(54028)))}var a;var i;if(r.isDays())return(e=>n.t(null,{plural:"{str} days intervals",count:e,replace:{str:`${e}`},context:"timeframe_title"},s(81693)))(r.multiplier());if(r.isWeeks())return(e=>n.t(null,{plural:"{str} weeks intervals",count:e,replace:{str:`${e}`},context:"timeframe_title"},s(58667)))(r.multiplier());if(r.isMonths()){const e=r.multiplier();return e%12!=0?(o=e,n.t(null,{plural:"{str} months intervals",count:o,replace:{str:`${o}`},context:"timeframe_title"},s(99773))):(e=>n.t(null,{plural:"{str} years intervals",count:e,replace:{str:`${e}`},context:"timeframe_title"},s(57849)))(e/12)}var o;return C[t].text}(e);return n.t(null,{replace:{timePeriod:t,timeInterval:r},context:"timeframe_title"},s(29505))}const A=e=>n.t(null,{plural:"{str} days",count:e,replace:{str:`${e}`},context:"timeframe_title"},s(42908));class z{constructor(e){this._state={ranges:[]},this._change=new f.Delegate,this._rangeChangedListenerBound=this._onRangeChanged.bind(this);const{chartWidget:t}=this._context=e;t.withModel(null,(()=>{const e=t.model(),s=e.mainSeries();s.onStatusChanged().subscribe(this,this._updateAvailableRanges),c.enabled("update_timeframes_set_on_symbol_resolve")&&s.dataEvents().symbolResolved().subscribe(this,this._updateAvailableRanges),s.priceScale().properties().childs().lockScale.subscribe(this,this._updateAvailableRanges);const r=e.model().appliedTimeFrame();r.subscribe(this._rangeChangedListenerBound),this._rangeChangedListenerBound(r.value()),
this._updateAvailableRanges()}))}state(){return this._state}onChange(){return this._change}selectRange(e){this._setState({activeRange:e.value.value});const{chartWidgetCollection:t}=this._context,s={val:e.value,res:e.targetResolution};t.setTimeFrame(s)}destroy(){const{chartWidget:e}=this._context;e.withModel(null,(()=>{const t=e.model(),s=t.mainSeries();s.onStatusChanged().unsubscribe(this,this._updateAvailableRanges),c.enabled("update_timeframes_set_on_symbol_resolve")&&s.dataEvents().symbolResolved().unsubscribe(this,this._updateAvailableRanges),s.priceScale().properties().childs().lockScale.unsubscribe(this,this._updateAvailableRanges),t.model().appliedTimeFrame().unsubscribe(this._rangeChangedListenerBound)})),this._change.destroy()}_setState(e){this._state=Object.assign({},this._state,e),this._change.fire(this._state)}_onRangeChanged(e){let t;null!==e&&"period-back"===e.val.type&&(t=e.val.value),this._setState({activeRange:t})}_updateAvailableRanges(){const{availableTimeFrames:e,chartWidget:t}=this._context;if(!t.hasModel())return;const s=t.model().mainSeries(),r=s.status();if(2===r||1===r)return;const a=e(s.symbolInfo(),s.status()).map((e=>({...e,description:M(e)})));0!==a.length&&this._setState({ranges:a})}}const I=(0,b.registryContextType)();function L(e){var t;return(t=class extends r.PureComponent{constructor(e,t){super(e,t),this._handleUpdate=e=>{this.setState(e)},this._handleSelectRange=e=>{var t,s;(0,_.trackEvent)("GUI","Chart Bottom Toolbar",`range ${e.value}`),null===(s=(t=this.props).onSelectRange)||void 0===s||s.call(t,e),this._binding.selectRange(e)},(0,b.validateRegistry)(t,{availableTimeFrames:i.any.isRequired,chartWidgetCollection:i.any.isRequired,chartWidget:i.any.isRequired}),D.has(t.chartWidget)||D.set(t.chartWidget,new z(t));const s=this._binding=(0,v.ensureDefined)(D.get(t.chartWidget));this.state=s.state()}componentDidMount(){this._binding.onChange().subscribe(this,this._handleUpdate)}componentWillUnmount(){this._binding.onChange().unsubscribe(this,this._handleUpdate)}render(){return r.createElement(e,{goToDateButton:this.props.goToDateButton,className:this.props.className,ranges:this.state.ranges,activeRange:this.state.activeRange,onSelectRange:this._handleSelectRange})}}).contextType=I,t}const D=new WeakMap;var B=s(64358),N=s(23829),R=s(1109),W=s(53180),j=s(90752),P=s(7458);function H(e){const{ranges:t,activeRange:s,onSelectRange:a}=e;return r.createElement(r.Fragment,null,t.map((e=>r.createElement(N.ContextMenuItem,{key:e.value.value,label:e.description||e.text,active:s===e.value.value,checked:s===e.value.value,checkable:!0,disabled:!1,onClick:n.bind(null,e),doNotCloseOnClick:!1,subItems:[]}))));function n(e){e&&a&&a(e),(0,h.globalCloseMenu)()}}function U(e){const{onGoToDateClick:t}=e;return r.createElement(r.Fragment,null,r.createElement(R.Separator,{className:P.separator}),r.createElement(N.ContextMenuItem,{icon:j,label:(0,W.appendEllipsis)(n.t(null,void 0,s(369))),onClick:t,active:!1,checked:!1,checkable:!1,disabled:!1,doNotCloseOnClick:!1,subItems:[]}))}const F={
title:n.t(null,void 0,s(60222)),goToDate:(0,W.appendEllipsis)(n.t(null,void 0,s(369)))},O=(0,b.registryContextType)();class Y extends r.PureComponent{constructor(e,t){super(e,t),this._handleGoToDateClick=()=>{const{chartWidget:e}=this.context;(0,B.showGoToDateDialog)(e),(0,h.globalCloseMenu)()},this._handleRangeSelect=e=>{e&&this.props.onSelectRange&&this.props.onSelectRange(e),(0,h.globalCloseMenu)()},this._renderChildren=e=>{const{ranges:t,activeRange:s,goToDateButton:a}=this.props;return e?r.createElement(r.Fragment,null,r.createElement(H,{ranges:t,activeRange:s,onSelectRange:this._handleRangeSelect}),a&&r.createElement(U,{onGoToDateClick:this._handleGoToDateClick})):r.createElement(r.Fragment,null,t.map((e=>r.createElement(p.AccessibleMenuItem,{key:e.value.value,label:e.description||e.text,isActive:s===e.value.value,onClick:this._handleRangeSelect,onClickArg:e}))),a&&r.createElement(g.PopupMenuSeparator,null),a&&r.createElement(p.AccessibleMenuItem,{label:F.goToDate,onClick:this._handleGoToDateClick}))},(0,b.validateRegistry)(t,{chartWidget:i.any.isRequired})}render(){return r.createElement(m.MatchMedia,{rule:"screen and (max-width: 430px)"},(e=>r.createElement(d.ToolbarMenuButton,{className:l()(P.button,this.props.className),content:F.title,arrow:!0,verticalAttachEdge:u.VerticalAttachEdge.Top,verticalDropDirection:u.VerticalDropDirection.FromBottomToTop,horizontalMargin:4,"data-name":"date-ranges-menu",isDrawer:e,onClick:this._trackClick},this._renderChildren(e))))}_trackClick(){0}}Y.contextType=O;const J=L(Y);var X=s(4618);const G=X;function V(e){return class extends r.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){(0,v.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,s=this._generateTabs();return r.createElement("div",{className:o(t,X.tabs),"data-name":this.props["data-name"]},s,r.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,r.Children.map(this.props.children,(e=>{const t=e,s=Boolean(t.props.isActive),a={reference:e=>{s&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return r.cloneElement(t,a)}))}_componentDidUpdate(){const e=(0,v.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,s=this.activeTab.current.offsetLeft;e.transform=`translateX(${s}px)`,e.width=`${t}px`,e.opacity="1"}else e.opacity="0"}}}V((function(e){return r.createElement("div",{className:X.slider,ref:e.reference})}));var q=s(40173),Z=s(88066),$=s(91348);(0,q.mergeThemes)(Z.DEFAULT_TOOLBAR_BUTTON_THEME,$);function K(e){const{reference:t,text:s,tooltip:a,isActive:n,className:i,onClick:l,theme:c=$,...d}=e,u=o(i,c.item,{[c.isActive]:n});return r.createElement(Z.ToolbarButton,{...d,ref:t,text:s,isActive:n,tooltip:a,className:u,onClick:l})}var Q=s(22586);const ee=(0,q.mergeThemes)(G,Q);var te=s(21648);const se=V((function(e){
this._updateAvailableRanges()}))}state(){return this._state}onChange(){return this._change}selectRange(e){this._setState({activeRange:e.value.value});const{chartWidgetCollection:t}=this._context,s={val:e.value,res:e.targetResolution};t.setTimeFrame(s)}destroy(){const{chartWidget:e}=this._context;e.withModel(null,(()=>{const t=e.model(),s=t.mainSeries();s.onStatusChanged().unsubscribe(this,this._updateAvailableRanges),c.enabled("update_timeframes_set_on_symbol_resolve")&&s.dataEvents().symbolResolved().unsubscribe(this,this._updateAvailableRanges),s.priceScale().properties().childs().lockScale.unsubscribe(this,this._updateAvailableRanges),t.model().appliedTimeFrame().unsubscribe(this._rangeChangedListenerBound)})),this._change.destroy()}_setState(e){this._state=Object.assign({},this._state,e),this._change.fire(this._state)}_onRangeChanged(e){let t;null!==e&&"period-back"===e.val.type&&(t=e.val.value),this._setState({activeRange:t})}_updateAvailableRanges(){const{availableTimeFrames:e,chartWidget:t}=this._context;if(!t.hasModel())return;const s=t.model().mainSeries(),r=s.status();if(2===r||1===r)return;const a=e(s.symbolInfo(),s.status()).map((e=>({...e,description:""===e.description?M(e):e.description})));0!==a.length&&this._setState({ranges:a})}}const I=(0,b.registryContextType)();function L(e){var t;return(t=class extends r.PureComponent{constructor(e,t){super(e,t),this._handleUpdate=e=>{this.setState(e)},this._handleSelectRange=e=>{var t,s;(0,_.trackEvent)("GUI","Chart Bottom Toolbar",`range ${e.value}`),null===(s=(t=this.props).onSelectRange)||void 0===s||s.call(t,e),this._binding.selectRange(e)},(0,b.validateRegistry)(t,{availableTimeFrames:i.any.isRequired,chartWidgetCollection:i.any.isRequired,chartWidget:i.any.isRequired}),D.has(t.chartWidget)||D.set(t.chartWidget,new z(t));const s=this._binding=(0,v.ensureDefined)(D.get(t.chartWidget));this.state=s.state()}componentDidMount(){this._binding.onChange().subscribe(this,this._handleUpdate)}componentWillUnmount(){this._binding.onChange().unsubscribe(this,this._handleUpdate)}render(){return r.createElement(e,{goToDateButton:this.props.goToDateButton,className:this.props.className,ranges:this.state.ranges,activeRange:this.state.activeRange,onSelectRange:this._handleSelectRange})}}).contextType=I,t}const D=new WeakMap;var B=s(64358),N=s(23829),R=s(1109),W=s(53180),j=s(90752),P=s(7458);function H(e){const{ranges:t,activeRange:s,onSelectRange:a}=e;return r.createElement(r.Fragment,null,t.map((e=>r.createElement(N.ContextMenuItem,{key:e.value.value,label:e.description||e.text,active:s===e.value.value,checked:s===e.value.value,checkable:!0,disabled:!1,onClick:n.bind(null,e),doNotCloseOnClick:!1,subItems:[]}))));function n(e){e&&a&&a(e),(0,h.globalCloseMenu)()}}function U(e){const{onGoToDateClick:t}=e;return r.createElement(r.Fragment,null,r.createElement(R.Separator,{className:P.separator}),r.createElement(N.ContextMenuItem,{icon:j,label:(0,W.appendEllipsis)(n.t(null,void 0,s(369))),onClick:t,active:!1,checked:!1,checkable:!1,disabled:!1,doNotCloseOnClick:!1,subItems:[]
}))}const F={title:n.t(null,void 0,s(60222)),goToDate:(0,W.appendEllipsis)(n.t(null,void 0,s(369)))},O=(0,b.registryContextType)();class Y extends r.PureComponent{constructor(e,t){super(e,t),this._handleGoToDateClick=()=>{const{chartWidget:e}=this.context;(0,B.showGoToDateDialog)(e),(0,h.globalCloseMenu)()},this._handleRangeSelect=e=>{e&&this.props.onSelectRange&&this.props.onSelectRange(e),(0,h.globalCloseMenu)()},this._renderChildren=e=>{const{ranges:t,activeRange:s,goToDateButton:a}=this.props;return e?r.createElement(r.Fragment,null,r.createElement(H,{ranges:t,activeRange:s,onSelectRange:this._handleRangeSelect}),a&&r.createElement(U,{onGoToDateClick:this._handleGoToDateClick})):r.createElement(r.Fragment,null,t.map((e=>r.createElement(p.AccessibleMenuItem,{key:e.value.value,label:e.description||e.text,isActive:s===e.value.value,onClick:this._handleRangeSelect,onClickArg:e}))),a&&r.createElement(g.PopupMenuSeparator,null),a&&r.createElement(p.AccessibleMenuItem,{label:F.goToDate,onClick:this._handleGoToDateClick}))},(0,b.validateRegistry)(t,{chartWidget:i.any.isRequired})}render(){return r.createElement(m.MatchMedia,{rule:"screen and (max-width: 430px)"},(e=>r.createElement(d.ToolbarMenuButton,{className:l()(P.button,this.props.className),content:F.title,arrow:!0,verticalAttachEdge:u.VerticalAttachEdge.Top,verticalDropDirection:u.VerticalDropDirection.FromBottomToTop,horizontalMargin:4,"data-name":"date-ranges-menu",isDrawer:e,onClick:this._trackClick},this._renderChildren(e))))}_trackClick(){0}}Y.contextType=O;const J=L(Y);var X=s(4618);const G=X;function V(e){return class extends r.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){(0,v.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,s=this._generateTabs();return r.createElement("div",{className:o(t,X.tabs),"data-name":this.props["data-name"]},s,r.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,r.Children.map(this.props.children,(e=>{const t=e,s=Boolean(t.props.isActive),a={reference:e=>{s&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return r.cloneElement(t,a)}))}_componentDidUpdate(){const e=(0,v.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,s=this.activeTab.current.offsetLeft;e.transform=`translateX(${s}px)`,e.width=`${t}px`,e.opacity="1"}else e.opacity="0"}}}V((function(e){return r.createElement("div",{className:X.slider,ref:e.reference})}));var q=s(40173),Z=s(88066),$=s(91348);(0,q.mergeThemes)(Z.DEFAULT_TOOLBAR_BUTTON_THEME,$);function K(e){const{reference:t,text:s,tooltip:a,isActive:n,className:i,onClick:l,theme:c=$,...d}=e,u=o(i,c.item,{[c.isActive]:n});return r.createElement(Z.ToolbarButton,{...d,ref:t,text:s,isActive:n,tooltip:a,className:u,onClick:l})}var Q=s(22586);const ee=(0,q.mergeThemes)(G,Q);var te=s(21648);const se=V((function(e){
return r.createElement("div",{className:o(e.className,ee.slider),ref:e.reference},r.createElement("div",{className:ee.inner}))}));const re=L((function(e){const{className:t,ranges:s,activeRange:a,onSelectRange:n}=e;return r.createElement(se,{className:o(te.sliderRow,t),"data-name":"date-ranges-tabs"},s.map((e=>r.createElement(K,{key:e.value.value,value:e.value.value,"data-name":`date-range-tab-${e.value.value}`,isActive:a===e.value.value,onClick:n&&n.bind(null,e),text:e.text,tooltip:e.description||e.text}))))}));var ae=s(61814),ne=s(68335),ie=s(48889),oe=s(92574),le=s(50242);const ce=(0,ae.hotKeySerialize)({keys:[(0,ne.humanReadableModifiers)(ne.Modifiers.Alt,!1),"G"],text:"{0} + {1}"}),de=(0,b.registryContextType)();class ue extends r.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidget:e}=this.context;(0,_.trackEvent)("GUI","Chart Bottom Toolbar","go to"),(0,B.showGoToDateDialog)(e)},(0,b.validateRegistry)(t,{chartWidget:i.any.isRequired})}render(){const{className:e,ranges:t}=this.props;return t.length>0&&r.createElement(ie.ToolbarIconButton,{icon:oe,onClick:this._handleClick,"data-tooltip-hotkey":ce,tooltip:n.t(null,void 0,s(369)),"data-name":"go-to-date",className:o(le.button,e)})}}ue.contextType=de;const he=L(ue);var me=s(76460),pe=s(88270),ge=s(79206),ve=s(39347),_e=s(41249),be=s(92216),fe=s(16164),ye=s(10643),Se=s(85616);const Ee=(0,q.mergeThemes)(Z.DEFAULT_TOOLBAR_BUTTON_THEME,{isDisabled:Se.disabled,button:Se.button});const ke=(0,b.registryContextType)();class Ce extends r.PureComponent{constructor(e,t){super(e,t),this._timeFormatter=new ge.TimeFormatter((0,be.getHourMinuteSecondFormat)(fe.timeHoursFormatProperty.value())),this._tickInterval=void 0,this._element=null,this._menuShown=!1,this._preventShowingMenu=!1,this._tickClock=()=>{const{chartApiInstance:e}=this.context;if(void 0!==this._timezone){const t=(0,_e.utc_to_cal)(this._timezone,e.serverTime());this.setState({time:this._timeFormatter.format(t)})}},this._getActions=()=>{if(!this.props.withMenu)return[];const{chartWidget:e}=this.context;return function(e){e.updateActions();const t=e.actions();return t&&t.applyTimeZone instanceof ve.Action?t.applyTimeZone.getSubItems():[]}(e)},this._handleRef=e=>{this._element=e},this._onMouseDown=()=>{this._preventShowingMenu=this._menuShown},this._showMenu=e=>{if(this._preventShowingMenu)return void ye.ContextMenuManager.hideAll();const t=(0,v.ensureNotNull)(this._element),s=this._getActions();if(0===s.length)return;const r=t.getBoundingClientRect();ye.ContextMenuManager.showMenu(s,{clientX:r.left,clientY:r.top,attachToYBy:"bottom"},{returnFocus:!0,takeFocus:!0,isKeyboardEvent:(0,me.isKeyboardClick)(e)},{menuName:"TimezoneMenuContextMenu"},(()=>{this._menuShown=!1})).then((()=>{this._menuShown=!0}))},(0,b.validateRegistry)(t,{chartWidget:i.any.isRequired,chartApiInstance:i.any.isRequired}),this.state={time:""}}componentDidMount(){const{chartWidget:e}=this.context;this._tickInterval=setInterval(this._tickClock,1e3),e.withModel(null,(()=>{const t=e.model()
;t.model().mainSeries().dataEvents().symbolResolved().subscribe(this,this.updateTimezonesButton),t.model().properties().childs().timezone.subscribe(this,this.updateTimezonesButton),fe.timeHoursFormatProperty.subscribe(this,this._timeHoursFormatPropertyChanged)}))}componentWillUnmount(){const{chartWidget:e}=this.context;clearInterval(this._tickInterval),e.withModel(null,(()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().unsubscribe(this,this.updateTimezonesButton),t.model().properties().childs().timezone.unsubscribe(this,this.updateTimezonesButton),fe.timeHoursFormatProperty.unsubscribe(this,this._timeHoursFormatPropertyChanged)}))}render(){const{className:e,withMenu:t}=this.props,{time:a}=this.state,i=void 0!==this._timezone?(0,pe.parseTzOffset)(this._timezone.name()).string:null;return r.createElement(Z.ToolbarButton,{onMouseDown:this._onMouseDown,ref:this._handleRef,onClick:this._showMenu,isDisabled:!t,theme:Ee,"data-name":"time-zone-menu",tooltip:t?n.t(null,void 0,s(87492)):void 0,className:e,text:a&&i&&`${a} (${i})`})}updateTimezonesButton(){const{chartWidget:e}=this.context;if(!e.hasModel())return;if(null===e.model().mainSeries().symbolInfo())return;let t=e.model().model().timezone();if("exchange"===t){const s=(0,v.ensureNotNull)(e.model().mainSeries().symbolInfo()).timezone;s&&(t=s)}this._timezone=(0,_e.get_timezone)(t),this._tickClock()}_timeHoursFormatPropertyChanged(){this._timeFormatter=new ge.TimeFormatter((0,be.getHourMinuteSecondFormat)(fe.timeHoursFormatProperty.value())),this.updateTimezonesButton()}}Ce.contextType=ke;var xe=s(56812);function Te(e){return r.createElement("span",{className:o(xe.separator,e.className)})}var we=s(54079),Me=s(36298),Ae=s(49483);class ze{constructor(e,t,s){this._highlighted=!1,this._chartWidget=e,this._priceScaleGetter=t,this._owner=s,this._setHighlight=this._setHighlight.bind(this),this._removeHighlight=this._removeHighlight.bind(this)}destroy(){this._highlighted&&this._removeHighlight()}handlers(){const e=Ae.CheckMobile.any();return{onMouseEnter:e?void 0:this._setHighlight,onMouseLeave:e?void 0:this._removeHighlight}}_setHighlight(){if(!this._chartWidget.hasModel())return;const e=this._chartWidget.model().model(),t=e.paneForSource(e.mainSeries()),s=this._priceScaleGetter();if(null===t||null===s)return;const r=this._chartWidget.paneByState(t);if(null!==r){const t=r.rightPriceAxisesContainer().findAxisWidgetForScale(s);let a=null;null!==t&&(a=t.axisInfo());const n=r.leftPriceAxisesContainer().findAxisWidgetForScale(s);null!==n&&(a=n.axisInfo());const i=r.highlightedPriceAxis();null!==a&&i.value().axis!==a&&(i.setValue({owner:this._owner,axis:a}),e.lightUpdate(),this._highlighted=!0)}}_removeHighlight(){if(!this._chartWidget.hasModel())return;const e=this._chartWidget.model().model(),t=e.paneForSource(e.mainSeries());if(null===t)return;const s=this._chartWidget.paneByState(t);if(null!==s){const t=s.highlightedPriceAxis(),r=t.value();null!==r.axis&&r.owner===this._owner&&(t.setValue({owner:this._owner,axis:null}),e.lightUpdate(),this._highlighted=!1)
}}}const Ie=(0,b.registryContextType)(),Le=new Me.TranslatedString("toggle log scale",n.t(null,void 0,s(60166)));const De=(0,b.registryContextType)(),Be=new Me.TranslatedString("toggle auto scale",n.t(null,void 0,s(63060)));const Ne=(0,b.registryContextType)(),Re=new Me.TranslatedString("toggle percentage scale",n.t(null,void 0,s(68642)));const We=(0,b.registryContextType)();var je=s(42142),Pe=s(21861),He=s(82962),Ue=s(11678),Fe=s(97086);const Oe=new Me.TranslatedString("change session",n.t(null,void 0,s(65303))),Ye={hint:n.t(null,void 0,s(25866)),headerMenuText:n.t(null,void 0,s(44794))},Je=(0,b.registryContextType)();class Xe extends r.PureComponent{constructor(e,t){super(e,t),(0,b.validateRegistry)(t,{chartWidget:i.any.isRequired,chartApiInstance:i.any.isRequired}),this.state={availableSessions:[]}}componentDidMount(){const{chartWidget:e}=this.context;e.withModel(null,(()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().subscribe(this,this.updateSessionButton),t.model().mainSeries().properties().childs().sessionId.subscribe(this,this.updateSessionButton),this.updateSessionButton()}))}componentWillUnmount(){const{chartWidget:e}=this.context;e.withModel(null,(()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().unsubscribe(this,this.updateSessionButton),t.model().mainSeries().properties().childs().sessionId.unsubscribe(this,this.updateSessionButton)}))}render(){const{className:e,withMenu:t}=this.props,{sessionName:s,sessionDescription:a}=this.state;return r.createElement(d.ToolbarMenuButton,{arrow:!1,isDisabled:!t,content:s,className:e,closeOnClickOutside:!0,tooltip:t?a:void 0,"data-name":"session-menu",verticalDropDirection:u.VerticalDropDirection.FromBottomToTop,verticalAttachEdge:u.VerticalAttachEdge.Top,onClick:this._trackClick},this._menuItems())}updateSessionButton(){var e,t;const{chartWidget:s}=this.context;if(!s.model())return;const r=s.model().mainSeries().symbolInfo();if(null===r)return;const a=r.subsession_id,n=null!==(t=null===(e=r.subsessions)||void 0===e?void 0:e.filter((e=>!e.private)))&&void 0!==t?t:[],i=n.find((e=>e.id===a));this.setState({sessionId:a,sessionName:(0,Ue.translateSessionShortDescription)((null==i?void 0:i.description)||""),sessionDescription:(0,Ue.translateSessionDescription)((null==i?void 0:i.description)||""),availableSessions:n})}_menuItems(){if(!this.props.withMenu)return[];const{chartWidget:e}=this.context,{availableSessions:t}=this.state;if(!e.model())return[];const s=e.model().mainSeries(),a=[r.createElement(He.ToolWidgetMenuSummary,{key:"header_menu_text",className:Fe.headerMenuText},Ye.headerMenuText.toUpperCase())];for(const n of t){const t={category:"SetSession",event:n.id},i=()=>{e.model().setProperty(s.properties().childs().sessionId,n.id,Oe)};a.push(r.createElement(p.AccessibleMenuItem,{key:n.id,label:(0,Ue.translateSessionDescription)(n.description),isActive:this.state.sessionId===n.id,trackEventObject:t,onClick:i}))}return a}_trackClick(){0}}Xe.contextType=Je;var Ge=s(21868),Ve=s(72026),qe=s(51267),Ze=s(64264);const $e={

View File

@@ -1,6 +1,6 @@
(()=>{"use strict";var e,a,d,c,t,f={},b={};function r(e){var a=b[e];if(void 0!==a)return a.exports;var d=b[e]={id:e,loaded:!1,exports:{}};return f[e].call(d.exports,d,d.exports,r),d.loaded=!0,d.exports}r.m=f,r.c=b,e=[],r.O=(a,d,c,t)=>{if(!d){var f=1/0;for(i=0;i<e.length;i++){for(var[d,c,t]=e[i],b=!0,n=0;n<d.length;n++)(!1&t||f>=t)&&Object.keys(r.O).every((e=>r.O[e](d[n])))?d.splice(n--,1):(b=!1,t<f&&(f=t));if(b){e.splice(i--,1);var o=c();void 0!==o&&(a=o)}}return a}t=t||0;for(var i=e.length;i>0&&e[i-1][2]>t;i--)e[i]=e[i-1];e[i]=[d,c,t]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a}),a},d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var t=Object.create(null);r.r(t);var f={};a=a||[null,d({}),d([]),d(d)];for(var b=2&c&&e;"object"==typeof b&&!~a.indexOf(b);b=d(b))Object.getOwnPropertyNames(b).forEach((a=>f[a]=()=>e[a]));return f.default=()=>e,r.d(t,f),t},r.d=(e,a)=>{for(var d in a)r.o(a,d)&&!r.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,d)=>(r.f[d](e,a),a)),[])),r.u=e=>9417===e?"__LANG__.9417.7ff64779d43389a1bb41.js":3175===e?"__LANG__.3175.e0a2c845c5cba23f42fb.js":3951===e?"__LANG__.3951.babac9be598102fb0d92.js":5362===e?"__LANG__.5362.311bfba5d2c84b13ec2b.js":2578===e?"__LANG__.2578.ab3178e0160c259eac53.js":2547===e?"__LANG__.2547.28b713bedf796244795d.js":2285===e?"__LANG__.2285.1268ecef367debd2960b.js":344===e?"__LANG__.344.a9e566fa1091368f40c7.js":178===e?"__LANG__.178.dd03c0163a8373c0fc5b.js":6306===e?"__LANG__.6306.b88dcc3f0d7db89ebfc1.js":3236===e?"__LANG__.3236.e12bb9a536432e97ec0c.js":({92:"chart-screenshot-hint",139:"get-error-card",507:"study-pane-views",607:"study-property-pages-with-definitions",731:"add-compare-dialog",1583:"lt-pane-views",1584:"context-menu-renderer",1702:"manage-drawings-dialog",1754:"symbol-search-dialog",1859:"go-to-date-dialog-impl",1890:"line-tools-icons",2077:"change-interval-dialog",2183:"study-inputs-pane-views",2306:"floating-toolbars",2377:"hammerjs",2616:"svg-renderer",2704:"currency-label-menu",2878:"drawing-toolbar",3005:"header-toolbar",3030:"new-confirm-inputs-dialog",3596:"general-property-page",4013:"custom-intervals-add-dialog",4079:"series-pane-views",4389:"take-chart-image-impl",4665:"share-chart-to-social-utils",4862:"object-tree-dialog",5009:"load-chart-dialog",5093:"chart-widget-gui",5516:"restricted-toolset",5551:"favorite-drawings-api",5565:"ichart-storage",5598:"lt-stickers-atlas",6124:"chart-storage-library-http",6166:"chart-event-hint",6265:"new-edit-object-dialog",6456:"study-market",6631:"study-template-dialog",6780:"source-properties-editor",7078:"general-chart-properties-dialog",7129:"line-tools-synchronizer",7260:"chart-bottom-toolbar",7271:"compare-model",7648:"show-theme-save-dialog",7987:"lt-icons-atlas",8020:"user-defined-bars-marks-tooltip",8313:"chart-storage-external-adapter",
8537:"lt-property-pages-with-definitions",8643:"full-tooltips-popup",8890:"simple-dialog",9039:"lollipop-tooltip-renderer",9374:"symbol-info-dialog-impl",9498:"export-data",9685:"series-icons-map",9754:"global-search-dialog"}[e]||e)+"."+{6:"a03a8ff024d47ed075c6",92:"795900ef9e075c847a64",139:"83ba0cba4c0538851e0a",507:"51d0897ba74454ec3423",524:"2b350163c328ac8dce2e",607:"1d3c58ff151a9c7c19a3",731:"5039a5ac2f3556b18cb1",750:"e16edadfacd60574d861",826:"906374d84a8e6c40c6e8",855:"61db310932f8af2c5989",898:"b63568700f1380e37b1a",956:"a325fc0a9a24da09a622",962:"9f54d549868e21286372",1033:"bb804c64fe58de0bace7",1109:"845f0f111ff830ab93c8",1553:"c076714f5e24887f0b94",1583:"077de067da0763f84cb2",1584:"4170e3d150582097504c",1702:"5f8ccee744105adf029e",1740:"4c61de525e940eee4f3c",1754:"e5850d7e02343ee54c52",1762:"9511e5b410d7d629bc49",1803:"5799aa316db71b2f13e5",1859:"851f6bf2bf36fe8fbac4",1890:"ecc8d3a4af49afed6b6d",2052:"e9d07fdfb896fca26166",2077:"ebdeefbf84f9e033ed5b",2109:"291fa715b6ded706c3dd",2183:"6caf467f12b1d6ee408a",2191:"2197cc1b66a1db8969cc",2260:"95dc0a20b147b6b2eeed",2306:"96ac7a46b7738535bc92",2377:"6e30e0c48af40bf2f6c0",2443:"66f44a8bfe8d49aaeaee",2486:"2b718a16270e4168ea54",2544:"225f38946afc6ad55a35",2587:"615babc52637decdb6e2",2616:"f065beaf6b5b37da27d9",2639:"a55d77a7912be54f7b9d",2666:"d28c0fa0a323b8118f22",2676:"a9a5ede4d514162164fa",2704:"8bac01cc43d3f2cbf903",2731:"55eed17fefac5e82c077",2846:"fbbd62afe04b4f9387f2",2878:"37a00c1b0c7a68cc1d44",3005:"df1a95078c18a5da785c",3030:"5ce0d1c060e0d28cde15",3066:"8b1d2ceb22d9fedde67b",3263:"238cd2d620e004adee5a",3353:"de1d5e3e034ab68aa9fc",3502:"1985af3fa836c4248178",3596:"e4f9354142134a911ace",3610:"c79c6bddd919cb78428a",3717:"6f65e91a870250a6e450",3780:"ef366b87d104534e68d8",3842:"8758110ab553b5368121",3896:"14d9e7509c300245c219",3914:"33b17e48eb923e015932",3939:"2ee1e71dbe0bc0d85625",3980:"9d7eeb2bacce45c508b3",3986:"b50fcad4f1b77533bda7",4013:"1aa54900370f7317d3f0",4015:"9b6607a6f543f077c5a5",4062:"9229fac3ef3db26fd5bc",4079:"d3299bca6e9fad2c340a",4102:"67b3d1107a6ec8d571eb",4215:"8934b190aaed2663c300",4370:"18ca7d93e5073f0446c0",4389:"600804a9c180df6a83b1",4403:"bf44a542113a4440984b",4648:"af8e7c4b04b18b9156b0",4665:"d7331dbca4a2aa0909e7",4713:"8582f5ea3328f2cbdfae",4781:"e8294ba5c7c6aef1fce7",4788:"d3e8ad5f514051fcc835",4862:"0b6cab4cb55e2cef2c40",4894:"035fecc664874bb752b0",4987:"a23484dfcca6d5fae195",5009:"9a37c608b4849a6f8a11",5057:"5382614553878fcf337d",5093:"75a373be3b6816e8b55a",5128:"57de9f218989cee8119d",5145:"da831552b3b54ca47682",5163:"953e65e04ed31b0ea0b3",5164:"a45b25a7ca6a0c16f810",5166:"979eb8cba5281ffcb38b",5516:"78732f5a01aa118efb81",5551:"340e60e2342b0d93ebe7",5565:"1144e5a1b4f8503ee572",5598:"52ad6e6d7d7b134ab0ba",5649:"5c1e55c9dad604880876",5664:"87e81959e880fa8ba65d",5866:"039e25226b82968cca61",5940:"c058b0e0ef421f740684",5983:"3c0ae13972f5d3433a77",5993:"0e5f49179c6a516963de",6025:"d669a0315da9d6fda6b3",6036:"5b373caaaa6e1ba4495f",6106:"1d31df88e63bf542ea7b",6124:"f1f53155460ee314f062",6166:"9fb712c61440c609af69",
6214:"5a578175aab923a979dc",6221:"56c4d15c823c019ddb39",6265:"b3553940c9159e24d8aa",6408:"e58aaf98d9306e8d9b77",6456:"b04732ea1491ac587015",6494:"7f264af8142cb9910c06",6625:"364cf21fe24d7e675de8",6631:"45bca887c7f2c0d84601",6639:"a1bd5bf1d51c681561a1",6747:"ae7a7ec28d22057d6d0d",6752:"912872ffa56a7243d664",6780:"3b96f58f66e0caa61b15",6884:"07642217627127113fb0",6918:"c8f3265e9286a784038b",6925:"665969c4af4481df0691",6949:"f50051a55eaa8dd5e780",6985:"8d289318ce5fe6dc7763",7051:"cff4509091dbd0706ebe",7078:"cddce4ed266fd9e0629e",7111:"4716f3208dc337521c10",7129:"0bc2d3617dda7143f094",7149:"d450e8145ad7e6fbd67f",7194:"098c1a8da1ddbbda98f6",7260:"6826612f0a41ab0fc35c",7271:"f7e796a37129a93179ee",7350:"aa555ff9e17c4029aedd",7391:"c63bd39c42093cc4130c",7413:"3a52b91975b98e6fe8e4",7550:"087936b2aa6ea51cd6bf",7555:"ea682716c26bc13db765",7648:"02c87d9b20f743b5cf16",7663:"6fabc58c7ddf7c2b076f",7807:"6adfcf6c0792dc9c9363",7871:"df6a9177c293c0c53e80",7987:"5d7c9d668ac98bd5bce1",8020:"71213c4f755723965a80",8056:"c06a1c8fb4a1f18cf217",8149:"9fb525d10e5c8ba95701",8167:"3edae41386acc976c9f8",8287:"7a7977ba76726177fb3c",8313:"9c1267d07e48b8d8f53f",8450:"757d38443ea38bd0165f",8537:"ae758430950906d90d11",8643:"3a92633d0497afb5344c",8882:"9838a8b1e0e6766b6408",8890:"6a6e7744cd3263ce2887",8904:"87e94e93ade13962a48f",9039:"19bbb3fc39665da2e3e6",9138:"f516266ddcf6ca8c7064",9327:"0c38440ca52f144413ac",9374:"6ef1056ef156ddb4caf1",9403:"61498701a4dae3f700c2",9465:"ca5284cff2560957cdd6",9498:"f43b3c60275506b2198a",9685:"f25fb7b89b7e831b726c",9754:"91018047180ff0d9e40b",9789:"458feb5c8c0263b0618b",9842:"581808dd4a8651b16779",9916:"0c2cb2d12479a20efce1"}[e]+".js",r.miniCssF=e=>e+"."+{6:"362fa6a7ab1f3e3b06c4",524:"ef662c4bc3e57dd91171",826:"2effba57f47544e58368",855:"56a5e53c97d91a9f96f7",898:"f909d7c1efc95f635922",956:"1e89775cfd644d656c56",1033:"5197f9f8b8500206d06c",1109:"b1ced88f4a839badfff1",1762:"7ff6b353c441db2276da",1803:"4653bb65d2b0d594d6af",2109:"4d5de3fbde1cd7dc5e9f",2191:"bb0aa12f5e562fd483f3",2260:"b98824e4829a1aa9b444",2486:"82c7dba4839761a57f28",2587:"1f1100dc01693edfe269",2639:"7b1d42eef7b89e0e96d3",2666:"fbb750fd312778403036",2676:"2d3cabbd39a3b0d6e9ea",2731:"ec19f123cabf8efd03a4",3066:"58a325f25b087530293d",3353:"860146c59230ab4bd938",3502:"c49903f7222870ff8aca",3610:"11b7ad14e26429fdfa5d",3717:"856421c70a4dff35762a",3780:"a289557f2e0bcabcc4ca",3842:"8cf6b523fd5a5b6fb022",3896:"96db838d3467bcf68051",3914:"d2b6c577f350629b6837",3939:"4d0187960a564ff5a557",3980:"b2ff45a2d8bb6a131d7c",4015:"1d0e3a62a59d173c81f3",4102:"4abd8542fa3aa3e7fd5d",4215:"d24836a292b1969ab4bb",4781:"cf1365a3bf51d9989978",4788:"3cff897925f7a8dbc837",4894:"99d4c2794da9feef3c70",4987:"ca5d16a7e990d39bfb0e",5145:"a2b224fd27ab2941c565",5163:"950dd1d584f76da1ed3b",5166:"a12c50ad6225ca6de843",5649:"b60ed09c5ea8c55827d4",5866:"f164dd2a584ab0f493cf",5940:"aedc1bdbd324e6042b17",5993:"4705829d0834140ee3f2",6025:"263b457b1a7f9ca139b2",6036:"3b493a9f0ab052e6447c",6106:"f01163745d787b60c86c",6214:"65b7dbf8be6cca5ac143",6221:"bc53670dfb8f982908a2",
8537:"lt-property-pages-with-definitions",8643:"full-tooltips-popup",8890:"simple-dialog",9039:"lollipop-tooltip-renderer",9374:"symbol-info-dialog-impl",9498:"export-data",9685:"series-icons-map",9754:"global-search-dialog"}[e]||e)+"."+{6:"a03a8ff024d47ed075c6",92:"795900ef9e075c847a64",139:"83ba0cba4c0538851e0a",507:"51d0897ba74454ec3423",524:"2b350163c328ac8dce2e",607:"1d3c58ff151a9c7c19a3",731:"5039a5ac2f3556b18cb1",750:"e16edadfacd60574d861",826:"906374d84a8e6c40c6e8",855:"61db310932f8af2c5989",898:"b63568700f1380e37b1a",956:"a325fc0a9a24da09a622",962:"9f54d549868e21286372",1033:"bb804c64fe58de0bace7",1109:"845f0f111ff830ab93c8",1553:"c076714f5e24887f0b94",1583:"077de067da0763f84cb2",1584:"4170e3d150582097504c",1702:"5f8ccee744105adf029e",1740:"4c61de525e940eee4f3c",1754:"e5850d7e02343ee54c52",1762:"9511e5b410d7d629bc49",1803:"5799aa316db71b2f13e5",1859:"851f6bf2bf36fe8fbac4",1890:"ecc8d3a4af49afed6b6d",2052:"e9d07fdfb896fca26166",2077:"ebdeefbf84f9e033ed5b",2109:"291fa715b6ded706c3dd",2183:"6caf467f12b1d6ee408a",2191:"2197cc1b66a1db8969cc",2260:"95dc0a20b147b6b2eeed",2306:"96ac7a46b7738535bc92",2377:"6e30e0c48af40bf2f6c0",2443:"66f44a8bfe8d49aaeaee",2486:"2b718a16270e4168ea54",2544:"225f38946afc6ad55a35",2587:"615babc52637decdb6e2",2616:"f065beaf6b5b37da27d9",2639:"a55d77a7912be54f7b9d",2666:"d28c0fa0a323b8118f22",2676:"a9a5ede4d514162164fa",2704:"8bac01cc43d3f2cbf903",2731:"55eed17fefac5e82c077",2846:"fbbd62afe04b4f9387f2",2878:"37a00c1b0c7a68cc1d44",3005:"df1a95078c18a5da785c",3030:"5ce0d1c060e0d28cde15",3066:"8b1d2ceb22d9fedde67b",3263:"238cd2d620e004adee5a",3353:"de1d5e3e034ab68aa9fc",3502:"1985af3fa836c4248178",3596:"e4f9354142134a911ace",3610:"c79c6bddd919cb78428a",3717:"6f65e91a870250a6e450",3780:"ef366b87d104534e68d8",3842:"8758110ab553b5368121",3896:"14d9e7509c300245c219",3914:"33b17e48eb923e015932",3939:"2ee1e71dbe0bc0d85625",3980:"9d7eeb2bacce45c508b3",3986:"b50fcad4f1b77533bda7",4013:"1aa54900370f7317d3f0",4015:"9b6607a6f543f077c5a5",4062:"9229fac3ef3db26fd5bc",4079:"d3299bca6e9fad2c340a",4102:"67b3d1107a6ec8d571eb",4215:"8934b190aaed2663c300",4370:"18ca7d93e5073f0446c0",4389:"600804a9c180df6a83b1",4403:"bf44a542113a4440984b",4648:"7172f75bb866b3438c6f",4665:"d7331dbca4a2aa0909e7",4713:"d82fc553d710da1606f0",4781:"e8294ba5c7c6aef1fce7",4788:"d3e8ad5f514051fcc835",4862:"0b6cab4cb55e2cef2c40",4894:"035fecc664874bb752b0",4987:"a23484dfcca6d5fae195",5009:"9a37c608b4849a6f8a11",5057:"5382614553878fcf337d",5093:"75a373be3b6816e8b55a",5128:"57de9f218989cee8119d",5145:"da831552b3b54ca47682",5163:"953e65e04ed31b0ea0b3",5164:"a45b25a7ca6a0c16f810",5166:"979eb8cba5281ffcb38b",5516:"78732f5a01aa118efb81",5551:"340e60e2342b0d93ebe7",5565:"1144e5a1b4f8503ee572",5598:"52ad6e6d7d7b134ab0ba",5649:"5c1e55c9dad604880876",5664:"87e81959e880fa8ba65d",5866:"039e25226b82968cca61",5940:"c058b0e0ef421f740684",5983:"3c0ae13972f5d3433a77",5993:"0e5f49179c6a516963de",6025:"d669a0315da9d6fda6b3",6036:"5b373caaaa6e1ba4495f",6106:"1d31df88e63bf542ea7b",6124:"f1f53155460ee314f062",6166:"9fb712c61440c609af69",
6214:"5a578175aab923a979dc",6221:"56c4d15c823c019ddb39",6265:"b3553940c9159e24d8aa",6408:"e58aaf98d9306e8d9b77",6456:"b04732ea1491ac587015",6494:"7f264af8142cb9910c06",6625:"364cf21fe24d7e675de8",6631:"711ba6ae5b343ace8691",6639:"a1bd5bf1d51c681561a1",6747:"ae7a7ec28d22057d6d0d",6752:"912872ffa56a7243d664",6780:"3b96f58f66e0caa61b15",6884:"07642217627127113fb0",6918:"c8f3265e9286a784038b",6925:"665969c4af4481df0691",6949:"f50051a55eaa8dd5e780",6985:"8d289318ce5fe6dc7763",7051:"ba50ecafb4527628fb40",7078:"cddce4ed266fd9e0629e",7111:"4716f3208dc337521c10",7129:"0bc2d3617dda7143f094",7149:"d450e8145ad7e6fbd67f",7194:"098c1a8da1ddbbda98f6",7260:"90c0a4f4e79f0973fd8f",7271:"f7e796a37129a93179ee",7350:"aa555ff9e17c4029aedd",7391:"c63bd39c42093cc4130c",7413:"3a52b91975b98e6fe8e4",7550:"087936b2aa6ea51cd6bf",7555:"ea682716c26bc13db765",7648:"02c87d9b20f743b5cf16",7663:"6fabc58c7ddf7c2b076f",7807:"6adfcf6c0792dc9c9363",7871:"df6a9177c293c0c53e80",7987:"5d7c9d668ac98bd5bce1",8020:"71213c4f755723965a80",8056:"c06a1c8fb4a1f18cf217",8149:"9fb525d10e5c8ba95701",8167:"3edae41386acc976c9f8",8287:"7a7977ba76726177fb3c",8313:"9c1267d07e48b8d8f53f",8450:"757d38443ea38bd0165f",8537:"ae758430950906d90d11",8643:"3a92633d0497afb5344c",8882:"9838a8b1e0e6766b6408",8890:"6a6e7744cd3263ce2887",8904:"87e94e93ade13962a48f",9039:"19bbb3fc39665da2e3e6",9138:"f516266ddcf6ca8c7064",9327:"0c38440ca52f144413ac",9374:"6ef1056ef156ddb4caf1",9403:"61498701a4dae3f700c2",9465:"ca5284cff2560957cdd6",9498:"f43b3c60275506b2198a",9685:"f25fb7b89b7e831b726c",9754:"91018047180ff0d9e40b",9789:"458feb5c8c0263b0618b",9842:"581808dd4a8651b16779",9916:"0c2cb2d12479a20efce1"}[e]+".js",r.miniCssF=e=>e+"."+{6:"362fa6a7ab1f3e3b06c4",524:"ef662c4bc3e57dd91171",826:"2effba57f47544e58368",855:"56a5e53c97d91a9f96f7",898:"f909d7c1efc95f635922",956:"1e89775cfd644d656c56",1033:"5197f9f8b8500206d06c",1109:"b1ced88f4a839badfff1",1762:"7ff6b353c441db2276da",1803:"4653bb65d2b0d594d6af",2109:"4d5de3fbde1cd7dc5e9f",2191:"bb0aa12f5e562fd483f3",2260:"b98824e4829a1aa9b444",2486:"82c7dba4839761a57f28",2587:"1f1100dc01693edfe269",2639:"7b1d42eef7b89e0e96d3",2666:"fbb750fd312778403036",2676:"2d3cabbd39a3b0d6e9ea",2731:"ec19f123cabf8efd03a4",3066:"58a325f25b087530293d",3353:"860146c59230ab4bd938",3502:"c49903f7222870ff8aca",3610:"11b7ad14e26429fdfa5d",3717:"856421c70a4dff35762a",3780:"a289557f2e0bcabcc4ca",3842:"8cf6b523fd5a5b6fb022",3896:"96db838d3467bcf68051",3914:"d2b6c577f350629b6837",3939:"4d0187960a564ff5a557",3980:"b2ff45a2d8bb6a131d7c",4015:"1d0e3a62a59d173c81f3",4102:"4abd8542fa3aa3e7fd5d",4215:"d24836a292b1969ab4bb",4781:"cf1365a3bf51d9989978",4788:"3cff897925f7a8dbc837",4894:"99d4c2794da9feef3c70",4987:"ca5d16a7e990d39bfb0e",5145:"a2b224fd27ab2941c565",5163:"950dd1d584f76da1ed3b",5166:"a12c50ad6225ca6de843",5649:"b60ed09c5ea8c55827d4",5866:"f164dd2a584ab0f493cf",5940:"aedc1bdbd324e6042b17",5993:"4705829d0834140ee3f2",6025:"263b457b1a7f9ca139b2",6036:"3b493a9f0ab052e6447c",6106:"f01163745d787b60c86c",6214:"65b7dbf8be6cca5ac143",6221:"bc53670dfb8f982908a2",
6494:"4c212043f24336e170d5",6625:"0ed88fc3a989c98408cc",6639:"885b5577e3fb71ee2bea",6747:"c7d403ae692f88568278",6752:"207eb3cc75b3ed2c6754",6884:"bb7d30a7bbbe5af36556",6925:"a3a09d7303a96edb77cb",6949:"19355e81a60b640ea097",6985:"2cd225354e2fd236e8e9",7111:"b16b4eb739a7e8577559",7149:"12adbb19fdefe9b66b18",7194:"e04f69c8933166966874",7350:"00632eec360f0cf2d9a0",7391:"9c809fa91ed0c8f75bc0",7413:"f830ad1ad6ee6f9b1cb3",7555:"8c1e3939e7666b0f8c69",7807:"8577632fdab29ee53ddf",7871:"fff454908cba03863eb7",8056:"1f54f717d8e522c55c89",8149:"21f2b01074a4d082e268",8287:"2b6f71ec5c0064590ffd",8450:"f75ab24e1ecb22d29183",8904:"a302177fe7e3ccd50cb0",9138:"03b8fbcfabcae851949a",9327:"97be240031495a68333f",9403:"db9859ab09623682562c",9465:"fd61e82b3c912f2e9fad",9789:"cb5ad20bc727d3820b6c",9842:"ceaeabba258d065497c8",9916:"60c48148a54dba9504a0"}[e]+".css",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},t="tradingview:",r.l=(e,a,d,f)=>{if(c[e])c[e].push(a);else{var b,n;if(void 0!==d)for(var o=document.getElementsByTagName("script"),i=0;i<o.length;i++){var l=o[i];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==t+d){b=l;break}}b||(n=!0,(b=document.createElement("script")).charset="utf-8",b.timeout=120,r.nc&&b.setAttribute("nonce",r.nc),b.setAttribute("data-webpack",t+d),b.src=e,0!==b.src.indexOf(window.location.origin+"/")&&(b.crossOrigin="anonymous")),c[e]=[a];var s=(a,d)=>{b.onerror=b.onload=null,clearTimeout(u);var t=c[e];if(delete c[e],b.parentNode&&b.parentNode.removeChild(b),t&&t.forEach((e=>e(d))),a)return a(d)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=s.bind(null,b.onerror),b.onload=s.bind(null,b.onload),n&&document.head.appendChild(b)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var a=r.g.document;if(!e&&a&&(a.currentScript&&(e=a.currentScript.src),!e)){var d=a.getElementsByTagName("script");d.length&&(e=d[d.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),r.g.location&&r.p.startsWith(r.g.location.origin)&&(r.p=r.p.slice(r.g.location.origin.length)),(()=>{const e=r.u;r.u=a=>e(a).replace("__LANG__",r.g.language)})(),(()=>{const e={ca_ES:(e=1)=>+(1!=e),cs:(e=1)=>+(1==e?0:e>=2&&e<=4?1:2),el:(e=1)=>+(1!=e),da_DK:(e=1)=>+(1!=e),en:(e=1)=>+(1!=e),et_EE:(e=1)=>+(1!=e),fa:(e=1)=>0,hu_HU:(e=1)=>0,id_ID:(e=1)=>0,it:(e=1)=>+(1!=e),ms_MY:(e=1)=>0,
no:(e=1)=>+(1!=e),nl_NL:(e=1)=>+(1!=e),ro:(e=1)=>+(1==e?0:e%100>19||e%100==0&&0!=e?2:1),sk_SK:(e=1)=>+(1==e?0:e>=2&&e<=4?1:2),sv:(e=1)=>+(1!=e),zh:(e=1)=>0,zh_TW:(e=1)=>0,de:(e=1)=>+(1!=e),es:(e=1)=>+(1!=e),fr:(e=1)=>+(e>1),he_IL:(e=1)=>+(1==e?0:2==e?1:e>10&&e%10==0?2:3),ko:(e=1)=>0,ja:(e=1)=>0,pl:(e=1)=>+(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),pt:(e=1)=>+(1!=e),tr:(e=1)=>+(1!=e),vi:(e=1)=>0,ar:(e=1)=>+(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11&&e%100<=99?4:5),ru:(e=1)=>+(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),th:(e=1)=>0};r.tf=(a,d={},c)=>{if(null===a){if(Array.isArray(c)){if(r.g.customTranslateFunction){const e=r.g.customTranslateFunction(c[0],d.plural?{...d,plural:c.length>2?c.slice(1):c[1]}:d,!0);if(null!==e)return e}return(c[e[r.g.language](d.count)]||c[0]).replace(/{(\w+)}/g,((e,a)=>void 0!==(d.replace||d)[a]?(d.replace||d)[a]:e))}return"object"==typeof c?r.tf(null,d,c[r.g.language||"en"]):r.tf(c,d)}if(c&&a){const e=`${a}${d.context?`_${d.context}`:""}`;if(c[e])return r.tf(null,d,c[e])}if("number"==typeof a)return a.toString();if("string"!=typeof a)return"";if(r.g.customTranslateFunction){const e=r.g.customTranslateFunction(a,d,!1);if(null!==e)return e}return(d.plural&&1!=+d.count?d.plural:a).replace(/{(\w+)}/g,((e,a)=>void 0!==(d.replace||d)[a]?(d.replace||d)[a]:e))}})(),r.p=r.g.WEBPACK_PUBLIC_PATH||r.p;var n=r.e,o=Object.create(null);function i(e,a){return n(e).catch((function(){return new Promise((function(d){var c=function(){self.removeEventListener("online",c,!1),!1===navigator.onLine?self.addEventListener("online",c,!1):d(a<2?i(e,a+1):n(e))};setTimeout(c,a*a*1e3)}))}))}r.e=function(e){if(!o[e]){o[e]=i(e,0);var a=function(){delete o[e]};o[e].then(a,a)}return o[e]},(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((a,d)=>{var c=r.miniCssF(e),t=r.p+c;if(((e,a)=>{for(var d=document.getElementsByTagName("link"),c=0;c<d.length;c++){var t=(b=d[c]).getAttribute("data-href")||b.getAttribute("href");if("stylesheet"===b.rel&&(t===e||t===a))return b}var f=document.getElementsByTagName("style");for(c=0;c<f.length;c++){var b;if((t=(b=f[c]).getAttribute("data-href"))===e||t===a)return b}})(c,t))return a();((e,a,d,c,t)=>{var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onerror=f.onload=d=>{if(f.onerror=f.onload=null,"load"===d.type)c();else{var b=d&&("load"===d.type?"missing":d.type),r=d&&d.target&&d.target.href||a,n=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");n.code="CSS_CHUNK_LOAD_FAILED",n.type=b,n.request=r,f.parentNode&&f.parentNode.removeChild(f),t(n)}},f.href=a,0!==f.href.indexOf(window.location.origin+"/")&&(f.crossOrigin="anonymous"),d?d.parentNode.insertBefore(f,d.nextSibling):document.head.appendChild(f)})(e,t,null,a,d)})),a={3666:0};r.f.miniCss=(d,c)=>{a[d]?c.push(a[d]):0!==a[d]&&{6:1,524:1,826:1,855:1,898:1,956:1,1033:1,1109:1,1762:1,1803:1,2109:1,2191:1,2260:1,2486:1,2587:1,2639:1,2666:1,2676:1,2731:1,3066:1,3353:1,3502:1,3610:1,3717:1,3780:1,3842:1,3896:1,3914:1,3939:1,3980:1,4015:1,4102:1,4215:1,4781:1,
4788:1,4894:1,4987:1,5145:1,5163:1,5166:1,5649:1,5866:1,5940:1,5993:1,6025:1,6036:1,6106:1,6214:1,6221:1,6494:1,6625:1,6639:1,6747:1,6752:1,6884:1,6925:1,6949:1,6985:1,7111:1,7149:1,7194:1,7350:1,7391:1,7413:1,7555:1,7807:1,7871:1,8056:1,8149:1,8287:1,8450:1,8904:1,9138:1,9327:1,9403:1,9465:1,9789:1,9842:1,9916:1}[d]&&c.push(a[d]=e(d).then((()=>{a[d]=0}),(e=>{throw delete a[d],e})))}}})(),(()=>{var e={3666:0,6150:0};r.f.j=(a,d)=>{var c=r.o(e,a)?e[a]:void 0;if(0!==c)if(c)d.push(c[2]);else if(/^(1(033|109|762|803)|2(6(39|66|76)|109|191|260|486|587|731)|3(9(14|39|80)|(06|66|89)6|353|502|610|717|780|842)|4(78[18]|[02]15|102|894|987)|5(1(45|63|66)|24|649|866|940|993)|6(9(25|49|85)|[06]25|(21|49|88)4||036|106|150|221|639|747|752)|7(1(11|49|94)|350|391|413|555|807|871)|8(056|149|26|287|450|55|904|98)|9(138|327|403|465|56|789|842|916))$/.test(a))e[a]=0;else{var t=new Promise(((d,t)=>c=e[a]=[d,t]));d.push(c[2]=t);var f=r.p+r.u(a),b=new Error;r.l(f,(d=>{if(r.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var t=d&&("load"===d.type?"missing":d.type),f=d&&d.target&&d.target.src;b.message="Loading chunk "+a+" failed.\n("+t+": "+f+")",b.name="ChunkLoadError",b.type=t,b.request=f,c[1](b)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,d)=>{var c,t,[f,b,n]=d,o=0;if(f.some((a=>0!==e[a]))){for(c in b)r.o(b,c)&&(r.m[c]=b[c]);if(n)var i=n(r)}for(a&&a(d);o<f.length;o++)t=f[o],r.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return r.O(i)},d=self.webpackChunktradingview=self.webpackChunktradingview||[];d.forEach(a.bind(null,0)),d.push=a.bind(null,d.push.bind(d))})(),(()=>{const{miniCssF:e}=r;r.miniCssF=a=>self.document&&"rtl"===self.document.dir?e(a).replace(/\.css$/,".rtl.css"):e(a)})()})();

View File

@@ -1,6 +1,6 @@
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6631],{74786:(e,t,a)=>{"use strict";a.d(t,{default:()=>n});const n=function(){}},70048:e=>{e.exports={wrapper:"wrapper-GZajBGIm",input:"input-GZajBGIm",box:"box-GZajBGIm",icon:"icon-GZajBGIm",noOutline:"noOutline-GZajBGIm","intent-danger":"intent-danger-GZajBGIm",check:"check-GZajBGIm",dot:"dot-GZajBGIm"}},69789:e=>{e.exports={checkbox:"checkbox-vyj6oJxw",reverse:"reverse-vyj6oJxw",label:"label-vyj6oJxw",baseline:"baseline-vyj6oJxw"}},83073:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-PhMf7PhQ",submitButton:"submitButton-PhMf7PhQ",buttons:"buttons-PhMf7PhQ"}},70673:(e,t,a)=>{"use strict";a.d(t,{CheckboxInput:()=>c});var n=a(50959),i=a(97754),l=a(90186),s=a(9745),o=a(65890),r=a(70048),m=a.n(r);function c(e){const t=i(m().box,m()[`intent-${e.intent}`],{[m().check]:!Boolean(e.indeterminate),[m().dot]:Boolean(e.indeterminate),[m().noOutline]:-1===e.tabIndex}),a=i(m().wrapper,e.className);return n.createElement("span",{className:a,title:e.title,style:e.style},n.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:m().input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference,"aria-required":e["aria-required"],"aria-describedby":e["aria-describedby"],"aria-invalid":e["aria-invalid"],...(0,l.filterDataProps)(e)}),n.createElement("span",{className:t},n.createElement(s.Icon,{icon:o,className:m().icon})))}},32389:(e,t,a)=>{"use strict";a.d(t,{Checkbox:()=>m});var n=a(50959),i=a(97754),l=a(59416),s=a(70673),o=a(69789),r=a.n(o);class m extends n.PureComponent{render(){const{inputClassName:e,labelClassName:t,...a}=this.props,l=i(this.props.className,r().checkbox,{[r().reverse]:Boolean(this.props.labelPositionReverse),[r().baseline]:Boolean(this.props.labelAlignBaseline)}),o=i(r().label,t,{[r().disabled]:this.props.disabled});let m=null;return this.props.label&&(m=n.createElement("span",{className:o,title:this.props.title},this.props.label)),n.createElement("label",{className:l},n.createElement(s.CheckboxInput,{...a,className:e}),m)}}m.defaultProps={value:"on"};(0,l.makeSwitchGroupItem)(m)},59416:(e,t,a)=>{"use strict";a.d(t,{SwitchGroup:()=>s,makeSwitchGroupItem:()=>o});var n=a(50959),i=a(74786);const l=(0,n.createContext)({getName:()=>"",getValues:()=>[],getOnChange:()=>i.default,subscribe:i.default,unsubscribe:i.default});class s extends n.PureComponent{constructor(e){super(e),this._subscriptions=new Set,this._getName=()=>this.props.name,this._getValues=()=>this.props.values,this._getOnChange=()=>this.props.onChange,this._subscribe=e=>{this._subscriptions.add(e)},this._unsubscribe=e=>{this._subscriptions.delete(e)},this.state={switchGroupContext:{getName:this._getName,getValues:this._getValues,getOnChange:this._getOnChange,subscribe:this._subscribe,unsubscribe:this._unsubscribe}}}render(){return n.createElement(l.Provider,{value:this.state.switchGroupContext},this.props.children)
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6631],{74786:(e,t,a)=>{"use strict";a.d(t,{default:()=>n});const n=function(){}},70048:e=>{e.exports={wrapper:"wrapper-GZajBGIm",input:"input-GZajBGIm",box:"box-GZajBGIm",icon:"icon-GZajBGIm",noOutline:"noOutline-GZajBGIm","intent-danger":"intent-danger-GZajBGIm",check:"check-GZajBGIm",dot:"dot-GZajBGIm"}},69789:e=>{e.exports={checkbox:"checkbox-vyj6oJxw",reverse:"reverse-vyj6oJxw",label:"label-vyj6oJxw",baseline:"baseline-vyj6oJxw"}},83073:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-PhMf7PhQ",submitButton:"submitButton-PhMf7PhQ",buttons:"buttons-PhMf7PhQ"}},70673:(e,t,a)=>{"use strict";a.d(t,{CheckboxInput:()=>c});var n=a(50959),i=a(97754),l=a(90186),s=a(9745),o=a(65890),r=a(70048),m=a.n(r);function c(e){const t=i(m().box,m()[`intent-${e.intent}`],{[m().check]:!Boolean(e.indeterminate),[m().dot]:Boolean(e.indeterminate),[m().noOutline]:-1===e.tabIndex}),a=i(m().wrapper,e.className);return n.createElement("span",{className:a,title:e.title,style:e.style},n.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:m().input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference,"aria-required":e["aria-required"],"aria-describedby":e["aria-describedby"],"aria-invalid":e["aria-invalid"],...(0,l.filterDataProps)(e)}),n.createElement("span",{className:t},n.createElement(s.Icon,{icon:o,className:m().icon})))}},15294:(e,t,a)=>{"use strict";a.d(t,{Checkbox:()=>m});var n=a(50959),i=a(97754),l=a(59416),s=a(70673),o=a(69789),r=a.n(o);class m extends n.PureComponent{render(){const{inputClassName:e,labelClassName:t,...a}=this.props,l=i(this.props.className,r().checkbox,{[r().reverse]:Boolean(this.props.labelPositionReverse),[r().baseline]:Boolean(this.props.labelAlignBaseline)}),o=i(r().label,t,{[r().disabled]:this.props.disabled});let m=null;return this.props.label&&(m=n.createElement("span",{className:o,title:this.props.title},this.props.label)),n.createElement("label",{className:l},n.createElement(s.CheckboxInput,{...a,className:e}),m)}}m.defaultProps={value:"on"};(0,l.makeSwitchGroupItem)(m)},59416:(e,t,a)=>{"use strict";a.d(t,{SwitchGroup:()=>s,makeSwitchGroupItem:()=>o});var n=a(50959),i=a(74786);const l=(0,n.createContext)({getName:()=>"",getValues:()=>[],getOnChange:()=>i.default,subscribe:i.default,unsubscribe:i.default});class s extends n.PureComponent{constructor(e){super(e),this._subscriptions=new Set,this._getName=()=>this.props.name,this._getValues=()=>this.props.values,this._getOnChange=()=>this.props.onChange,this._subscribe=e=>{this._subscriptions.add(e)},this._unsubscribe=e=>{this._subscriptions.delete(e)},this.state={switchGroupContext:{getName:this._getName,getValues:this._getValues,getOnChange:this._getOnChange,subscribe:this._subscribe,unsubscribe:this._unsubscribe}}}render(){return n.createElement(l.Provider,{value:this.state.switchGroupContext},this.props.children)
}componentDidUpdate(e){this._notify(this._getUpdates(this.props.values,e.values))}_notify(e){this._subscriptions.forEach((t=>t(e)))}_getUpdates(e,t){return[...t,...e].filter((a=>t.includes(a)?!e.includes(a):e.includes(a)))}}function o(e){var t;return t=class extends n.PureComponent{constructor(){super(...arguments),this._onChange=e=>{this.context.getOnChange()(e)},this._onUpdate=e=>{e.includes(this.props.value)&&this.forceUpdate()}}componentDidMount(){this.context.subscribe(this._onUpdate)}render(){return n.createElement(e,{...this.props,name:this._getName(),onChange:this._onChange,checked:this._isChecked()})}componentWillUnmount(){this.context.unsubscribe(this._onUpdate)}_getName(){return this.context.getName()}_isChecked(){return this.context.getValues().includes(this.props.value)}},t.contextType=l,t}},50182:(e,t,a)=>{"use strict";a.d(t,{AdaptiveConfirmDialog:()=>d});var n=a(50959),i=a(97754),l=a.n(i),s=a(94720),o=a(50151),r=a(11542),m=a(68335),c=a(35057),u=a(83073);class d extends n.PureComponent{constructor(){super(...arguments),this._dialogRef=n.createRef(),this._handleClose=()=>{const{defaultActionOnClose:e,onSubmit:t,onCancel:a,onClose:n}=this.props;switch(e){case"submit":t();break;case"cancel":a()}n()},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleKeyDown=e=>{const{onSubmit:t,submitButtonDisabled:a,submitOnEnterKey:n}=this.props;13===(0,m.hashFromEvent)(e)&&n&&(e.preventDefault(),a||t())}}render(){const{render:e,onClose:t,onSubmit:a,onCancel:i,footerLeftRenderer:l,submitButtonText:s,submitButtonDisabled:o,defaultActionOnClose:r,submitOnEnterKey:m,...u}=this.props;return n.createElement(c.AdaptivePopupDialog,{...u,ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose})}focus(){(0,o.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){return e=>{const{render:t,footerLeftRenderer:i,additionalButtons:o,submitButtonText:m,submitButtonDisabled:c,onSubmit:d,cancelButtonText:h,showCancelButton:p=!0,submitButtonClassName:b,cancelButtonClassName:v,buttonsWrapperClassName:g}=this.props;return n.createElement(n.Fragment,null,t(e),n.createElement("div",{className:u.footer},i&&i(e.isSmallWidth),n.createElement("div",{className:l()(u.buttons,g)},o,p&&n.createElement(s.Button,{className:v,name:"cancel",appearance:"stroke",onClick:this._handleCancel},null!=h?h:r.t(null,void 0,a(20036))),n.createElement("span",{className:u.submitButton},n.createElement(s.Button,{className:b,disabled:c,name:"submit",onClick:d,"data-name":"submit-button"},null!=m?m:r.t(null,void 0,a(68988)))))))}}}d.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},92297:e=>{e.exports={loading:"loading-BPaLXf0z"}},15747:e=>{e.exports={container:"container-CD9TBN7D",withSuggestions:"withSuggestions-CD9TBN7D",title:"title-CD9TBN7D",autocomplete:"autocomplete-CD9TBN7D",saveSymbol:"saveSymbol-CD9TBN7D",saveInterval:"saveInterval-CD9TBN7D",indicators:"indicators-CD9TBN7D",hintLabel:"hintLabel-CD9TBN7D",hintMark:"hintMark-CD9TBN7D",
hidden:"hidden-CD9TBN7D"}},13932:(e,t,a)=>{"use strict";a.r(t),a.d(t,{StudyTemplateSaver:()=>A});var n=a(50151),i=a(11542),l=a(50959),s=a(962),o=(a(42053),a(97754)),r=a(32389),m=a(21788),c=a(9745),u=a(50182),d=a(50655),h=a(26996),p=a(92297);function b(e){const{isLoading:t}=e;return l.createElement("span",{className:t?p.loading:void 0},i.t(null,void 0,a(85520)),t&&l.createElement(h.Loader,{color:"white"}))}class v extends l.PureComponent{constructor(e){super(e),this._dialogRef=l.createRef(),this._manager=null,this._handleSubmit=()=>{this.setState({isLoading:!0}),this.props.onSubmit(this)},this.state={isLoading:!1}}render(){const{isOpened:e,saveDisabled:t,title:a,onClose:n}=this.props;return l.createElement(u.AdaptiveConfirmDialog,{ref:this._dialogRef,onClose:n,onSubmit:this._handleSubmit,onCancel:n,onClickOutside:n,isOpened:e,title:a,dataName:"save-rename-dialog",render:this._renderDialogBody(),defaultActionOnClose:"none",submitButtonText:l.createElement(b,{isLoading:this.state.isLoading}),submitButtonDisabled:t})}focus(){(0,n.ensureNotNull)(this._dialogRef.current).focus()}manager(){return this._manager}submit(){this.props.onSubmit(this)}close(){this.props.onClose()}dropLoading(){this.setState({isLoading:!1})}_renderDialogBody(){return()=>l.createElement(d.SlotContext.Consumer,null,(e=>(this._manager=e,this.props.children)))}}var g=a(33547),S=a(85508),_=a(15747),y=a(49483);const f=i.t(null,void 0,a(50912)),w=i.t(null,void 0,a(40898)),C=i.t(null,void 0,a(33455)),N=i.t(null,void 0,a(63135)),k=[_.hintMark,"apply-common-tooltip"];function x(e){const{title:t,saveSymbolHintText:a,saveIntervalHintText:i,indicatorsText:s,source:u,onClose:d,onSubmit:h}=e,[p,b]=(0,l.useState)(""),[y,x]=(0,l.useState)(!1),[I,T]=(0,l.useState)(!1),[D,E]=(0,l.useState)(!1),L=(0,l.useRef)(null),B=(0,l.useRef)(null);return(0,l.useEffect)((()=>{(0,n.ensureNotNull)(B.current).focus()}),[]),l.createElement(v,{ref:L,isOpened:!0,saveDisabled:!p,title:t,onClose:d,onSubmit:function(e){h({title:p,saveSymbol:y,saveInterval:I},e)}},l.createElement("div",{className:o(_.container,D&&_.withSuggestions)},l.createElement("div",{className:_.title},f),l.createElement("div",{className:_.autocomplete},l.createElement(m.Autocomplete,{maxLength:64,value:p,onChange:b,onBlur:function(){(0,n.ensureNotNull)(L.current).focus()},source:u,allowUserDefinedValues:!0,preventOnFocusOpen:!0,noEmptyText:!0,preventSearchOnEmptyQuery:!0,filter:g.autocompleteFilter,setupHTMLInput:function(e){B.current=e},onSuggestionsOpen:function(){E(!0)},onSuggestionsClose:function(){E(!1)}})),l.createElement("div",{className:_.saveSymbol},l.createElement(r.Checkbox,{label:l.createElement("span",{className:_.hintLabel},C,l.createElement(c.Icon,{icon:S,className:o(k),title:a})),onChange:function(){x(!y),(0,n.ensureNotNull)(L.current).focus()},checked:y})),l.createElement("div",{className:_.saveInterval},l.createElement(r.Checkbox,{label:l.createElement("span",{className:_.hintLabel},N,l.createElement(c.Icon,{icon:S,className:o(k),title:i})),onChange:function(){T(!I),(0,
hidden:"hidden-CD9TBN7D"}},13932:(e,t,a)=>{"use strict";a.r(t),a.d(t,{StudyTemplateSaver:()=>A});var n=a(50151),i=a(11542),l=a(50959),s=a(962),o=(a(42053),a(97754)),r=a(15294),m=a(21788),c=a(9745),u=a(50182),d=a(50655),h=a(26996),p=a(92297);function b(e){const{isLoading:t}=e;return l.createElement("span",{className:t?p.loading:void 0},i.t(null,void 0,a(85520)),t&&l.createElement(h.Loader,{color:"white"}))}class v extends l.PureComponent{constructor(e){super(e),this._dialogRef=l.createRef(),this._manager=null,this._handleSubmit=()=>{this.setState({isLoading:!0}),this.props.onSubmit(this)},this.state={isLoading:!1}}render(){const{isOpened:e,saveDisabled:t,title:a,onClose:n}=this.props;return l.createElement(u.AdaptiveConfirmDialog,{ref:this._dialogRef,onClose:n,onSubmit:this._handleSubmit,onCancel:n,onClickOutside:n,isOpened:e,title:a,dataName:"save-rename-dialog",render:this._renderDialogBody(),defaultActionOnClose:"none",submitButtonText:l.createElement(b,{isLoading:this.state.isLoading}),submitButtonDisabled:t})}focus(){(0,n.ensureNotNull)(this._dialogRef.current).focus()}manager(){return this._manager}submit(){this.props.onSubmit(this)}close(){this.props.onClose()}dropLoading(){this.setState({isLoading:!1})}_renderDialogBody(){return()=>l.createElement(d.SlotContext.Consumer,null,(e=>(this._manager=e,this.props.children)))}}var g=a(33547),S=a(85508),_=a(15747),y=a(49483);const f=i.t(null,void 0,a(50912)),w=i.t(null,void 0,a(40898)),C=i.t(null,void 0,a(33455)),N=i.t(null,void 0,a(63135)),k=[_.hintMark,"apply-common-tooltip"];function x(e){const{title:t,saveSymbolHintText:a,saveIntervalHintText:i,indicatorsText:s,source:u,onClose:d,onSubmit:h}=e,[p,b]=(0,l.useState)(""),[y,x]=(0,l.useState)(!1),[I,T]=(0,l.useState)(!1),[D,E]=(0,l.useState)(!1),L=(0,l.useRef)(null),B=(0,l.useRef)(null);return(0,l.useEffect)((()=>{(0,n.ensureNotNull)(B.current).focus()}),[]),l.createElement(v,{ref:L,isOpened:!0,saveDisabled:!p,title:t,onClose:d,onSubmit:function(e){h({title:p,saveSymbol:y,saveInterval:I},e)}},l.createElement("div",{className:o(_.container,D&&_.withSuggestions)},l.createElement("div",{className:_.title},f),l.createElement("div",{className:_.autocomplete},l.createElement(m.Autocomplete,{maxLength:64,value:p,onChange:b,onBlur:function(){(0,n.ensureNotNull)(L.current).focus()},source:u,allowUserDefinedValues:!0,preventOnFocusOpen:!0,noEmptyText:!0,preventSearchOnEmptyQuery:!0,filter:g.autocompleteFilter,setupHTMLInput:function(e){B.current=e},onSuggestionsOpen:function(){E(!0)},onSuggestionsClose:function(){E(!1)}})),l.createElement("div",{className:_.saveSymbol},l.createElement(r.Checkbox,{label:l.createElement("span",{className:_.hintLabel},C,l.createElement(c.Icon,{icon:S,className:o(k),title:a})),onChange:function(){x(!y),(0,n.ensureNotNull)(L.current).focus()},checked:y})),l.createElement("div",{className:_.saveInterval},l.createElement(r.Checkbox,{label:l.createElement("span",{className:_.hintLabel},N,l.createElement(c.Icon,{icon:S,className:o(k),title:i})),onChange:function(){T(!I),(0,
n.ensureNotNull)(L.current).focus()},checked:I})),l.createElement("div",{className:_.title},w),l.createElement("div",{className:o(_.indicators,D&&_.withSuggestions)},s)))}y.CheckMobile.any()&&k.push(_.hidden);var I=a(76422),T=a(52092);class D{constructor(e){this._container=document.createElement("div"),this.close=()=>{this.unmount(),this._onClose&&this._onClose()},this.unmount=()=>{I.unsubscribe(T.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this.unmount,null),s.unmountComponentAtNode(this._container)},this._title=e.title,this._saveSymbolHintText=e.saveSymbolHintText,this._saveIntervalHintText=e.saveIntervalHintText,this._indicatorsText=e.indicatorsText,this._source=e.source,this._onSubmit=e.onSubmit,this._onClose=e.onClose,I.subscribe(T.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this.unmount,null)}mount(){s.render(l.createElement(x,{title:this._title,saveSymbolHintText:this._saveSymbolHintText,saveIntervalHintText:this._saveIntervalHintText,indicatorsText:this._indicatorsText,source:this._source,onClose:this.close,onSubmit:this._onSubmit}),this._container)}destroy(){this.unmount()}show(){this.mount()}}var E=a(61595),L=a(3615),B=a(11321),z=a(39344),M=a(39080);const j=i.t(null,void 0,a(21939)),O=i.t(null,void 0,a(61422)),R=i.t(null,void 0,a(30858)),P=i.t(null,void 0,a(83081));function G(e,t,a){const n=()=>{E.backend.invalidateStudyTemplatesList(),E.backend.getStudyTemplatesList().then(t)};E.backend.saveStudyTemplate(e).then(n)}class A{constructor(e){this._dialog=null,this._onSave=e=>{this._options.onSave(e),this._close()},this._showSaveDialog=async()=>{const e=this._controller.model().mainSeries().symbol(),t=this._controller.model().mainSeries().interval(),a=await this._getActualTemplateList();await this._showTemplateSaveRenameDialog(a,e,t)},this._close=()=>{this._dialog&&(this._dialog.destroy(),this._dialog=null)},this._options=e,this._controller=e.controller}show(){(0,M.runOrSigninWithFeature)(this._showSaveDialog,{feature:"customIndicators",source:"Study templates save as",sourceMeta:"Chart"})}_prepareData(e,t,a){const n=this._controller.model().studyTemplate(t,a);return{name:e,content:JSON.stringify(n),meta_info:(0,z.createStudyTemplateMetaInfo)(this._controller,n.interval)}}_doSave(e,t,a){const{title:n,saveSymbol:i,saveInterval:l}=t;if(!n)return;const s=a.manager()||void 0,o=this._prepareData(n,i,l);if(e.find((e=>e.name===n))){const e=e=>{e?G(o,this._onSave):(a.focus(),a.dropLoading())};(function(e,t){return new Promise((a=>(0,L.showConfirm)({text:P.format({templateName:e}),onConfirm:({dialogClose:e})=>{a(!0),e()},onClose:()=>a(!1)},t)))})(n,s).then(e)}else{G(o,this._onSave)}}_getActualTemplateList(){return E.backend.invalidateStudyTemplatesList(),E.backend.getStudyTemplatesList()}_showTemplateSaveRenameDialog(e,t,a){const n=(0,z.createStudyTemplateMetaInfo)(this._controller);(this._dialog=new D({source:e.map((e=>e.name)),title:j,saveSymbolHintText:O.format({symbol:t}),saveIntervalHintText:R.format({interval:(0,B.translatedIntervalString)(a)}),indicatorsText:(0,z.descriptionString)(n.indicators),onSubmit:(t,a)=>this._doSave(e,t,a),
onClose:this._close})).show()}}},39344:(e,t,a)=>{"use strict";a.d(t,{createStudyTemplateMetaInfo:()=>l,descriptionString:()=>s});var n=a(28853),i=a(37591);function l(e,t){return{indicators:e.orderedDataSources(!0).filter((e=>(0,n.isStudy)(e)&&!0)).map((e=>({id:e.metaInfo().id,description:e.title(i.TitleDisplayTarget.StatusLine,!0,void 0,!0)}))),interval:t}}function s(e){const t=new Map;return e.forEach((e=>{const[a,n]=t.get(e.id)||[e.description,0];t.set(e.id,[a,n+1])})),Array.from(t.values()).map((([e,t])=>`${e}${t>1?` x ${t}`:""}`)).join(", ")}},33547:(e,t,a)=>{"use strict";function n(e,t){return Boolean(""===e||e&&-1!==t.toLowerCase().indexOf(e.toLowerCase()))}a.d(t,{autocompleteFilter:()=>n})},65890:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 9" width="11" height="9" fill="none"><path stroke-width="2" d="M0.999878 4L3.99988 7L9.99988 1"/></svg>'},85508:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M8 8.5h1.5V14"/><circle fill="currentColor" cx="9" cy="5" r="1"/><path stroke="currentColor" d="M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0z"/></svg>'},80395:e=>{e.exports={ar:["إغلاق القائمة"],ca_ES:"Close menu",cs:"Close menu",de:["Menü schließen"],el:"Close menu",en:"Close menu",es:["Cerrar menú"],fa:"Close menu",fr:["Fermer le menu"],he_IL:["סגור תפריט"],hu_HU:"Close menu",id_ID:["Pilih menu"],it:["Chiudere menù"],ja:["メニューを閉じる"],ko:["메뉴 닫기"],ms_MY:["Tutup menu"],nl_NL:"Close menu",pl:["Zamknij menu"],pt:["Fechar menu"],ro:"Close menu",ru:["Закрыть меню"],sv:["Stäng menyn"],th:["ปิดเมนู"],tr:["Menüyü kapat"],vi:["Đóng menu"],zh:["关闭菜单"],zh_TW:["關閉選單"]}},21939:e=>{e.exports={ar:["حفظ قالب المؤشر"],ca_ES:"Save Indicator Template",cs:"Save Indicator Template",de:["Indikatorvorlage speichern"],el:"Save Indicator Template",en:"Save Indicator Template",es:["Guardar plantilla de indicadores"],fa:"Save Indicator Template",fr:["Sauver le modèle d'indicateur"],he_IL:["שמור תבנית אינדיקטור"],hu_HU:"Save Indicator Template",id_ID:["Simpan Template Indikator"],it:["Salva modello indicatore"],ja:["インジケーターテンプレートを保存"],ko:["인디케이터 템플릿 세이브"],ms_MY:["Simpan Templat Penunjuk"],nl_NL:"Save Indicator Template",pl:["Zapisz szablon wskaźnika"],pt:["Salvar Conjunto de Indicadores"],ro:"Save Indicator Template",ru:["Сохранить шаблон индикаторов"],sv:["Spara indikatormall"],th:["บันทึกรูปแบบอินดิเคเตอร์"],tr:["Gösterge Şablonu Kaydet"],vi:["Lưu mẫu chỉ báo"],zh:["保存指标模板"],zh_TW:["儲存指標範本為"]}},40898:e=>{e.exports={ar:["المؤشرات المحفوظة"],ca_ES:"Saved indicators",cs:"Saved indicators",de:["Gespeicherte Indikatoren"],el:"Saved indicators",en:"Saved indicators",es:["Indicadores guardados"],fa:"Saved indicators",fr:["Indicateurs sauvegardés"],he_IL:["אינדיקטורים שמורים"],hu_HU:"Saved indicators",id_ID:["Indikator tersimpan"],it:["Indicatori salvati"],ja:["保存されたインジケーター"],ko:["세이브된 인디케이터"],ms_MY:["Petunjuk yang disimpan"],nl_NL:"Saved indicators",pl:["Zapisane wskaźniki"],pt:["Indicadores salvos"],ro:"Saved indicators",
ru:["Сохранённые индикаторы"],sv:["Sparade indikatorer"],th:["อินดิเคเตอร์ที่เซฟไว้"],tr:["Kaydedilmiş göstergeler"],vi:["Chỉ báo đã được lưu"],zh:["已存指标"],zh_TW:["已存指標"]}},30858:e=>{e.exports={ar:["سيؤدي تحديد هذا الخيار إلى تعيين الفاصل الزمني‎{interval} على الرسم البياني عند تطبيق هذا القالب"],ca_ES:"Selecting this option will set the {interval} interval on the chart when this template is applied",cs:"Selecting this option will set the {interval} interval on the chart when this template is applied",de:["Durch Auswahl dieser Option wird das {interval}-Intervall im Chart festgelegt, wenn diese Vorlage angewendet wird"],el:"Selecting this option will set the {interval} interval on the chart when this template is applied",en:"Selecting this option will set the {interval} interval on the chart when this template is applied",es:["Al seleccionar esta opción se establecerá el intervalo {interval} en el gráfico cuando se aplique esta plantilla"],fa:"Selecting this option will set the {interval} interval on the chart when this template is applied",fr:["En sélectionnant cette option, l'intervalle {interval} sera placé sur le graphique lorsque ce modèle est appliqué"],he_IL:["בחירת אפשרות זו תגדיר את האינטרוול {interval} בגרף כאשר מיושמת תבנית זו"],hu_HU:"Selecting this option will set the {interval} interval on the chart when this template is applied",id_ID:["Memilih opsi ini akan mengatur interval {interval} pada chart saat template ini diterapkan"],it:["Selezionando questa opzione, il modello viene applicato cambiando il timeframe in {interval}"],ja:["この項目を選択すると、テンプレートが適用された時にチャートの時間足が{interval}に設定されます"],ko:["이 옵션을 고르면 이 템플릿이 적용될 때 차트에 {interval} 을 세팅하게 됩니다."],ms_MY:["Memilih pilihan ini akan menetapkan selang masa {interval} pada carta apabila templat ini digunakan"],nl_NL:"Selecting this option will set the {interval} interval on the chart when this template is applied",pl:["Wybór tej opcji spowoduje ustawienie na wykresie interwału {interval} po zastosowaniu tego szablonu"],pt:["Selecionar esta opção definirá o intervalo {interval} no gráfico quando este modelo for aplicado"],ro:"Selecting this option will set the {interval} interval on the chart when this template is applied",ru:["Включите, чтобы установить на графике интервал {interval}, когда этот шаблон применён"],sv:["Om du väljer detta alternativ ställer du in intervallet {interval} i diagrammet när den här mallen används"],th:["การเลือกตัวเลือกนี้จะเป็นการกำหนดช่วงเวลา {interval} บนชาร์ต เมื่อเทมเพลตนี้ถูกใช้งาน"],tr:["Bu seçeneğin belirlenmesi ile, bu taslak uygulandığında grafikte {interval} aralığı ayarlanır"],vi:["Chọn tùy chọn này sẽ đặt khoảng thời gian {interval} trên biểu đồ khi mẫu này được áp dụng"],zh:["套用此模板时,选择此选项将在图表上设置{interval}周期"],zh_TW:["套用此模板時,選擇此選項將在圖表上設置{interval}周期"]}},61422:e=>{e.exports={ar:["سيؤدي تحديد هذا الخيار إلى تعيين الرمز {symbol} على الرسم البياني عند تطبيق هذا القالب"],ca_ES:"Selecting this option will set the {symbol} symbol on the chart when this template is applied",

File diff suppressed because one or more lines are too long

View File

@@ -3819,8 +3819,8 @@ export interface ChartingLibraryWidgetOptions {
*/
height?: number;
/**
* Set the storage URL endpoint for use with the high-level saving / loading charts API.
* Refer to [Saving and Loading Charts](https://www.tradingview.com/charting-library-docs/latest/saving_loading/saving_loading.md) for more information.
* Set the storage URL endpoint for use with the high-level saving/loading chart API.
* Refer to [Save and load REST API](https://www.tradingview.com/charting-library-docs/latest/saving_loading/save-load-rest-api/save-load-rest-api.md) for more information.
*
* ```javascript
* charts_storage_url: 'http://storage.yourserver.com',
@@ -4053,7 +4053,7 @@ export interface ChartingLibraryWidgetOptions {
/**
* An object containing the save/load functions.
* It is used to implement a custom save/load algorithm.
* Please see details and an example on [Saving and Loading Charts page](https://www.tradingview.com/charting-library-docs/latest/saving_loading/saving_loading.md#api-handlers).
* Refer to [API handlers](https://www.tradingview.com/charting-library-docs/latest/saving_loading/save-load-adapter.md) for more information.
*/
save_load_adapter?: IExternalSaveLoadAdapter;
/**
@@ -4070,7 +4070,7 @@ export interface ChartingLibraryWidgetOptions {
*/
loading_screen?: LoadingScreenOptions;
/**
* An object that contains set/remove functions. Use it to save chart settings to your preferred storage (including server-side).
* An object that contains set/remove functions. Use it to save [user settings](https://www.tradingview.com/charting-library-docs/latest/saving_loading/user-settings.md) to your preferred storage, including the server-side one.
*
* Example:
* ```javascript
@@ -5006,6 +5006,11 @@ export interface CustomFormatter {
format(date: Date): string;
/** Converts date and time to local time zone. */
formatLocal(date: Date): string;
/**
* Returns a value in a format known by the UI.
* Required when using `dateFormatter`, it has to return a date in the following format: `YYYY-MM-DD`.
*/
parse(value: string): string;
}
/**
* Formatters used to adjust the displayed format of the date and time values.
@@ -5041,12 +5046,11 @@ export interface CustomIndicator {
*/
readonly metainfo: StudyMetaInfo;
/**
* The Custom Study Constructor is a Function Constructor in terms of ES5.
* The library creates an instance of a custom study by applying operator new to the constructor.
* The library expects the constructor to create an instance of the study with one mandatory method - `main()` and one optional method - `init()`.
* Once the study is created the library calls init (if exists) and main sequentially with empty context to collect information about all vars.
* The field should contain an ES5 constructor function. The library applies the `new` operator to the constructor to create an instance of the custom indicator.
* The constructor contains the mandatory `main` method and the optional `init` method.
* Once the indicator instance is created, the library calls `init` (if exists) and `main` sequentially with empty context to collect information about all variables.
*
* Refer to [Custom Studies Constructor](https://www.tradingview.com/charting-library-docs/latest/custom_studies/Custom-Studies-Constructor.md) for more information.
* Refer to the [Constructor](https://www.tradingview.com/charting-library-docs/latest/custom_studies/custom-indicator-constructor.md) article for more information.
*/
readonly constructor: LibraryPineStudyConstructor<IPineStudyResult> | ((this: LibraryPineStudy<IPineStudyResult>) => void);
}
@@ -10512,6 +10516,24 @@ export interface IChartingLibraryWidget {
* @returns A count of the charts in the current layout.
*/
chartsCount(): number;
/**
* This method deletes non-visible charts from a multiple-chart layout.
*
* When a user transitions from a layout with a larger number of charts
* to one with fewer charts, the unused chart APIs still exist behind the scenes.
* This inherent behavior allows the library to restore previously displayed charts.
*
* If you prefer that additional charts are displayed as new, with no record of previous
* charts at the same position, you can use this method to delete all non-visible charts.
* It is most effective to run this method right after a layout change (one can subscribe to
* {@link SubscribeEventsMap.layout_changed} to know when this occurs).
*
* Please ensure that any subscriptions or event listeners associated with the
* hidden charts are removed prior to invoking this method.
*
* @returns void
*/
unloadUnusedCharts(): void;
/**
* Get the current chart layout type.
*
@@ -10530,6 +10552,13 @@ export interface IChartingLibraryWidget {
* @returns A string of the name of the current chart layout.
*/
layoutName(): string;
/**
* Resets the sizes of all charts within a multiple-chart layout back to their initial default values.
* This action redistributes the space equally among all charts to ensure consistency in layout design.
*
* @param disableUndo When set to true, the reset action is not added to the undo stack. Hence, the user cannot undo the reset operation.
*/
resetLayoutSizes(disableUndo?: boolean): void;
/**
* Change the theme of the chart.
*
@@ -10691,6 +10720,13 @@ export interface IChartingLibraryWidget {
* @param enabled A boolean flag. `true` to enable debug mode, `false` to disable.
*/
setDebugMode(enabled: boolean): void;
/**
* Get a watched value that read/write/subscribe to the state of the 'draw on all charts' mode.
*
* When enabled new drawings will be replicated to all charts in the layout
* and shown when the same ticker is selected.
*/
drawOnAllChartsEnabled(): IWatchedValue<boolean>;
/**
* Clears the undo & redo history.
*
@@ -11371,7 +11407,7 @@ export interface IExternalSaveLoadAdapter {
* @param chartId The chart ID
* @param state The drawings and drawing groups state
*/
saveLineToolsAndGroups(layoutId: string | undefined, chartId: string, state: LineToolsAndGroupsState): Promise<void>;
saveLineToolsAndGroups(layoutId: string | undefined, chartId: string | number, state: LineToolsAndGroupsState): Promise<void>;
/**
* Load drawings and drawing groups associated with a chart layout.
*
@@ -11382,7 +11418,7 @@ export interface IExternalSaveLoadAdapter {
*
* @returns The drawings and drawing groups state
*/
loadLineToolsAndGroups(layoutId: string | undefined, chartId: string, requestType: LineToolsAndGroupsLoadRequestType, requestContext: LineToolsAndGroupsLoadRequestContext): Promise<Partial<LineToolsAndGroupsState> | null>;
loadLineToolsAndGroups(layoutId: string | undefined, chartId: string | number, requestType: LineToolsAndGroupsLoadRequestType, requestContext: LineToolsAndGroupsLoadRequestContext): Promise<Partial<LineToolsAndGroupsState> | null>;
}
/** Definition of a formatter */
export interface IFormatter<T> {
@@ -12463,12 +12499,15 @@ export interface ISeriesApi {
/** Sets properties for a specific chart style */
setChartStyleProperties<T extends ChartStyle>(chartStyle: T, newPrefs: Partial<SeriesPreferencesMap[T]>): void;
}
/**
* Properties of the {@link ChartingLibraryWidgetOptions.settings_adapter} property that allows saving [user settings](https://www.tradingview.com/charting-library-docs/latest/saving_loading/user-settings.md) to your preferred storage, including server-side.
*/
export interface ISettingsAdapter {
/** Initial settings */
/** Initial settings the chart should be initiated with. */
initialSettings?: InitialSettingsMap;
/** Set a value for a setting */
/** Set a value for a setting. */
setValue(key: string, value: string): void;
/** Remove a value for a setting */
/** Remove a value for a setting. */
removeValue(key: string): void;
}
/**
@@ -13814,10 +13853,12 @@ export interface LibrarySubsessionInfo {
}
export interface LibrarySymbolInfo {
/**
* Symbol Name
* It's the name of the symbol. It is a string that your users will be able to see.
* Also, it will be used for data requests if you are not using tickers.
* It should not contain the exchange name.
* It is a symbol name within an exchange, such as `AAPL` or `9988` (Hong Kong).
* Note that it should not contain the exchange name.
* This symbol name is visible to users and can be repeated.
*
* By default, `name` is used to resolve symbols in the [Datafeed API](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Datafeed-API.md).
* If you use {@link LibrarySymbolInfo.ticker}, the library will use the ticker for Datafeed API requests.
*/
name: string;
/**
@@ -13828,10 +13869,10 @@ export interface LibrarySymbolInfo {
string
];
/**
* Unique symbol id
* It's an unique identifier for this particular symbol in your symbology.
* If you specify this property then its value will be used for all data requests for this symbol. ticker will be treated the same as {@link LibrarySymbolInfo.name} if not specified explicitly.
* It should not contain the exchange name.
* It is an unique identifier for a particular symbol in your [symbology](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Symbology.md).
* If you specify this property, its value will be used for all data requests for this symbol.
* `ticker` will be treated the same as {@link LibrarySymbolInfo.name} if not specified explicitly.
* Note that it should not contain the exchange name.
*/
ticker?: string;
/**
@@ -13851,7 +13892,7 @@ export interface LibrarySymbolInfo {
*/
type: string;
/**
* Trading hours for this symbol. See the [Trading Sessions article](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Trading-Sessions) to learn more details.
* Trading hours for this symbol. See the [Trading sessions](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Trading-Sessions.md) article to learn more details.
* @example "1700-0200"
*/
session: string;
@@ -13860,16 +13901,23 @@ export interface LibrarySymbolInfo {
*/
session_display?: string;
/**
* List of holidays for this symbol. These dates are not displayed on the chart.
* It's a string in the following format: `YYYYMMDD[,YYYYMMDD]`.
* A string that contains a list of non-trading holidays for the symbol.
* Holiday dates should be in the `YYYYMMDD` format.
* These dates are not displayed on the chart.
*
* You can specify a correction for a holiday using {@link LibrarySymbolInfo.corrections}.
* @example "20181105,20181107,20181112"
*/
session_holidays?: string;
/**
* List of corrections for this symbol. Corrections are days with specific trading sessions. They can be applied to holidays as well.
* List of corrections for a symbol. The corrections are days when the trading session differs from the default one set in {@link LibrarySymbolInfo.session}.
* The `corrections` value is a string in the following format: `SESSION:YYYYMMDD`.
* For more information, refer to [corrections](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Symbology.md#corrections).
*
* It's a string in the following format: `SESSION:YYYYMMDD[,YYYYMMDD][;SESSION:YYYYMMDD[,YYYYMMDD]]`
* Where SESSION has the same format as [Trading Sessions](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Trading-Sessions).
* The string below specifies corrections for two trading days:
*
* - November 13, 2018. This trading day is split into two sessions. The first session starts at 19:00 four days before (November 9, 2018) and ends at 23:50 four days before. The second session starts at 10:00 and ends at 18:45.
* - November 14, 2018. The session starts at 10:00 and ends at 14:00.
*
* @example "1900F4-2350F4,1000-1845:20181113;1000-1400:20181114"
*/
@@ -14096,7 +14144,9 @@ export interface LibrarySymbolInfo {
volume_precision?: number;
/**
* The status code of a series with this symbol.
* This could be represented as an icon in the legend, next to the market status icon for `delayed_streaming` & `endofday` type of data.
* For `delayed_streaming` and `endofday` type of data, the status is displayed as an icon and the *Data is delayed* section in the [_Legend_](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Legend.md#display-delayed-data-information), next to the market status icon.
* Note that you should also enable the [`display_data_mode`](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets.md#display_data_mode) featureset.
*
* When declaring `delayed_streaming` you also have to specify its {@link LibrarySymbolInfo.delay} in seconds.
*/
data_status?: "streaming" | "endofday" | "delayed_streaming";
@@ -27337,7 +27387,7 @@ export type SingleChartLayoutType = "s";
export type SingleIndicatorOverrides = FiftyTwoWeekHighLowIndicatorOverrides | AcceleratorOscillatorIndicatorOverrides | AccumulationDistributionIndicatorOverrides | AccumulativeSwingIndexIndicatorOverrides | AdvanceDeclineIndicatorOverrides | AnchoredVWAPIndicatorOverrides | ArnaudLegouxMovingAverageIndicatorOverrides | AroonIndicatorOverrides | AverageDirectionalIndexIndicatorOverrides | AveragePriceIndicatorOverrides | AverageTrueRangeIndicatorOverrides | AwesomeOscillatorIndicatorOverrides | BalanceofPowerIndicatorOverrides | BollingerBandsIndicatorOverrides | BollingerBandsBIndicatorOverrides | BollingerBandsWidthIndicatorOverrides | ChaikinMoneyFlowIndicatorOverrides | ChaikinOscillatorIndicatorOverrides | ChaikinVolatilityIndicatorOverrides | ChandeKrollStopIndicatorOverrides | ChandeMomentumOscillatorIndicatorOverrides | ChopZoneIndicatorOverrides | ChoppinessIndexIndicatorOverrides | CommodityChannelIndexIndicatorOverrides | CompareIndicatorOverrides | ConnorsRSIIndicatorOverrides | CoppockCurveIndicatorOverrides | CorrelationLogIndicatorOverrides | CorrelationCoefficientIndicatorOverrides | DetrendedPriceOscillatorIndicatorOverrides | DirectionalMovementIndicatorOverrides | DonchianChannelsIndicatorOverrides | DoubleEMAIndicatorOverrides | EMACrossIndicatorOverrides | EaseOfMovementIndicatorOverrides | EldersForceIndexIndicatorOverrides | EnvelopesIndicatorOverrides | FisherTransformIndicatorOverrides | FixedRangeIndicatorOverrides | GuppyMultipleMovingAverageIndicatorOverrides | HistoricalVolatilityIndicatorOverrides | HullMovingAverageIndicatorOverrides | IchimokuCloudIndicatorOverrides | KeltnerChannelsIndicatorOverrides | KlingerOscillatorIndicatorOverrides | KnowSureThingIndicatorOverrides | LeastSquaresMovingAverageIndicatorOverrides | LinearRegressionCurveIndicatorOverrides | LinearRegressionSlopeIndicatorOverrides | MACrossIndicatorOverrides | MAwithEMACrossIndicatorOverrides | MACDIndicatorOverrides | MajorityRuleIndicatorOverrides | MassIndexIndicatorOverrides | McGinleyDynamicIndicatorOverrides | MedianPriceIndicatorOverrides | MomentumIndicatorOverrides | MoneyFlowIndexIndicatorOverrides | MovingAverageIndicatorOverrides | MovingAverageAdaptiveIndicatorOverrides | MovingAverageChannelIndicatorOverrides | MovingAverageDoubleIndicatorOverrides | MovingAverageExponentialIndicatorOverrides | MovingAverageHammingIndicatorOverrides | MovingAverageMultipleIndicatorOverrides | MovingAverageTripleIndicatorOverrides | MovingAverageWeightedIndicatorOverrides | NetVolumeIndicatorOverrides | OnBalanceVolumeIndicatorOverrides | OverlayIndicatorOverrides | ParabolicSARIndicatorOverrides | PivotPointsStandardIndicatorOverrides | PriceChannelIndicatorOverrides | PriceOscillatorIndicatorOverrides | PriceVolumeTrendIndicatorOverrides | RateOfChangeIndicatorOverrides | RatioIndicatorOverrides | RegressionTrendIndicatorOverrides | RelativeStrengthIndexIndicatorOverrides | RelativeVigorIndexIndicatorOverrides | RelativeVolatilityIndexIndicatorOverrides | SMIErgodicIndicatorOscillatorIndicatorOverrides | SessionsIndicatorOverrides | SmoothedMovingAverageIndicatorOverrides | SpreadIndicatorOverrides | StandardDeviationIndicatorOverrides | StandardErrorIndicatorOverrides | StandardErrorBandsIndicatorOverrides | StochasticIndicatorOverrides | StochasticRSIIndicatorOverrides | SuperTrendIndicatorOverrides | TRIXIndicatorOverrides | TrendStrengthIndexIndicatorOverrides | TripleEMAIndicatorOverrides | TrueStrengthIndexIndicatorOverrides | TypicalPriceIndicatorOverrides | UltimateOscillatorIndicatorOverrides | VWAPIndicatorOverrides | VWMAIndicatorOverrides | VolatilityClosetoCloseIndicatorOverrides | VolatilityIndexIndicatorOverrides | VolatilityOHLCIndicatorOverrides | VolatilityZeroTrendClosetoCloseIndicatorOverrides | VolumeIndicatorOverrides | VolumeOscillatorIndicatorOverrides | VolumeProfileFixedRangeIndicatorOverrides | VolumeProfileVisibleRangeIndicatorOverrides | VortexIndicatorIndicatorOverrides | WilliamsRIndicatorOverrides | WilliamsAlligatorIndicatorOverrides | WilliamsFractalIndicatorOverrides | ZigZagIndicatorOverrides;
export type StudyAvailableConstSources = "open" | "high" | "low" | "close" | "hl2" | "hlc3" | "ohlc4" | "hlcc4";
/** An event related to a study. */
export type StudyEventType = "remove" | "price_scale_changed" | "paste_study";
export type StudyEventType = "create" | "remove" | "price_scale_changed" | "paste_study";
export type StudyFilledAreaStyle = StudyFilledAreaSolidColorStyle | StudyFilledAreaGradientColorStyle;
export type StudyInputId = Nominal<string, "StudyInputId">;
export type StudyInputInfo = StudyBooleanInputInfo | StudyTextInputInfo | StudySymbolInputInfo | StudyResolutionInputInfo | StudySessionInputInfo | StudySourceInputInfo | StudyNumericInputInfo | StudyPriceInputInfo | StudyColorInputInfo | StudyTimeInputInfo | StudyBarTimeInputInfo | StudyTextareaInputInfo;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -387,10 +387,12 @@ export interface LibrarySubsessionInfo {
}
export interface LibrarySymbolInfo {
/**
* Symbol Name
* It's the name of the symbol. It is a string that your users will be able to see.
* Also, it will be used for data requests if you are not using tickers.
* It should not contain the exchange name.
* It is a symbol name within an exchange, such as `AAPL` or `9988` (Hong Kong).
* Note that it should not contain the exchange name.
* This symbol name is visible to users and can be repeated.
*
* By default, `name` is used to resolve symbols in the [Datafeed API](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Datafeed-API.md).
* If you use {@link LibrarySymbolInfo.ticker}, the library will use the ticker for Datafeed API requests.
*/
name: string;
/**
@@ -401,10 +403,10 @@ export interface LibrarySymbolInfo {
string
];
/**
* Unique symbol id
* It's an unique identifier for this particular symbol in your symbology.
* If you specify this property then its value will be used for all data requests for this symbol. ticker will be treated the same as {@link LibrarySymbolInfo.name} if not specified explicitly.
* It should not contain the exchange name.
* It is an unique identifier for a particular symbol in your [symbology](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Symbology.md).
* If you specify this property, its value will be used for all data requests for this symbol.
* `ticker` will be treated the same as {@link LibrarySymbolInfo.name} if not specified explicitly.
* Note that it should not contain the exchange name.
*/
ticker?: string;
/**
@@ -424,7 +426,7 @@ export interface LibrarySymbolInfo {
*/
type: string;
/**
* Trading hours for this symbol. See the [Trading Sessions article](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Trading-Sessions) to learn more details.
* Trading hours for this symbol. See the [Trading sessions](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Trading-Sessions.md) article to learn more details.
* @example "1700-0200"
*/
session: string;
@@ -433,16 +435,23 @@ export interface LibrarySymbolInfo {
*/
session_display?: string;
/**
* List of holidays for this symbol. These dates are not displayed on the chart.
* It's a string in the following format: `YYYYMMDD[,YYYYMMDD]`.
* A string that contains a list of non-trading holidays for the symbol.
* Holiday dates should be in the `YYYYMMDD` format.
* These dates are not displayed on the chart.
*
* You can specify a correction for a holiday using {@link LibrarySymbolInfo.corrections}.
* @example "20181105,20181107,20181112"
*/
session_holidays?: string;
/**
* List of corrections for this symbol. Corrections are days with specific trading sessions. They can be applied to holidays as well.
* List of corrections for a symbol. The corrections are days when the trading session differs from the default one set in {@link LibrarySymbolInfo.session}.
* The `corrections` value is a string in the following format: `SESSION:YYYYMMDD`.
* For more information, refer to [corrections](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Symbology.md#corrections).
*
* It's a string in the following format: `SESSION:YYYYMMDD[,YYYYMMDD][;SESSION:YYYYMMDD[,YYYYMMDD]]`
* Where SESSION has the same format as [Trading Sessions](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Trading-Sessions).
* The string below specifies corrections for two trading days:
*
* - November 13, 2018. This trading day is split into two sessions. The first session starts at 19:00 four days before (November 9, 2018) and ends at 23:50 four days before. The second session starts at 10:00 and ends at 18:45.
* - November 14, 2018. The session starts at 10:00 and ends at 14:00.
*
* @example "1900F4-2350F4,1000-1845:20181113;1000-1400:20181114"
*/
@@ -669,7 +678,9 @@ export interface LibrarySymbolInfo {
volume_precision?: number;
/**
* The status code of a series with this symbol.
* This could be represented as an icon in the legend, next to the market status icon for `delayed_streaming` & `endofday` type of data.
* For `delayed_streaming` and `endofday` type of data, the status is displayed as an icon and the *Data is delayed* section in the [_Legend_](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Legend.md#display-delayed-data-information), next to the market status icon.
* Note that you should also enable the [`display_data_mode`](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets.md#display_data_mode) featureset.
*
* When declaring `delayed_streaming` you also have to specify its {@link LibrarySymbolInfo.delay} in seconds.
*/
data_status?: "streaming" | "endofday" | "delayed_streaming";

View File

@@ -1,6 +1,6 @@
{
"private": true,
"description": "CL v27.002 (internal id 18ee23e7 @ 2024-02-23T14:47:48.290Z)",
"description": "CL v27.003 (internal id d1c8c1a5 @ 2024-03-14T16:58:45.558Z)",
"type": "module",
"main": "charting_library.cjs.js",
"module": "charting_library.esm.js",

View File

@@ -23,6 +23,6 @@
},
"homepage": "https://www.tradingview.com/charting-library-docs",
"name": "charting_library",
"version": "27.002",
"version": "27.003",
"types": "charting_library.d.ts"
}