playbook_ui 14.4.0.pre.rc.14 → 14.4.0.pre.rc.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +245 -23
  3. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +1 -1
  4. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.html.erb +117 -0
  5. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.jsx +227 -0
  6. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.md +1 -0
  7. data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +2 -0
  8. data/app/pb_kits/playbook/pb_form_pill/docs/index.js +1 -0
  9. data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +1 -1
  10. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +5 -1
  11. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.html.erb +72 -0
  12. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.jsx +91 -0
  13. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_rails.md +1 -0
  14. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_react.md +1 -0
  15. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +2 -0
  16. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +1 -0
  17. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +4 -0
  18. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.scss +97 -21
  19. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.test.js +166 -0
  20. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.tsx +45 -6
  21. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_bubble.html.erb +73 -0
  22. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_bubble.jsx +86 -0
  23. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +2 -0
  24. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/index.js +1 -0
  25. data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb +6 -2
  26. data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb +21 -1
  27. data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +16 -0
  28. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +4 -0
  29. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +26 -18
  30. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.html.erb +31 -0
  31. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.jsx +26 -0
  32. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_rails.md +1 -0
  33. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_react.md +1 -0
  34. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +2 -0
  35. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -0
  36. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +4 -0
  37. data/app/pb_kits/playbook/tokens/_colors.scss +2 -0
  38. data/dist/chunks/{_typeahead-BAFhtQtP.js → _typeahead-B2zRxReA.js} +2 -2
  39. data/dist/chunks/{_weekday_stacked-V_fGN_e4.js → _weekday_stacked-Co95UEiW.js} +2 -2
  40. data/dist/chunks/{lib--ErPKv63.js → lib-D2U4I1U6.js} +1 -1
  41. data/dist/chunks/{pb_form_validation-CHMFwDfe.js → pb_form_validation-zV9OpdSt.js} +1 -1
  42. data/dist/chunks/vendor.js +1 -1
  43. data/dist/playbook-doc.js +1 -1
  44. data/dist/playbook-rails-react-bindings.js +1 -1
  45. data/dist/playbook-rails.js +1 -1
  46. data/dist/playbook.css +1 -1
  47. data/lib/playbook/version.rb +1 -1
  48. metadata +18 -5
@@ -1,4 +1,4 @@
1
- import{r as requireLazysizes}from"./lazysizes-B7xYodB-.js";import{jsx,Fragment,jsxs}from"react/jsx-runtime";import*as React from"react";import React__default,{useEffect,createContext,useContext,useState,useCallback,createElement,useRef,forwardRef,useImperativeHandle,Fragment as Fragment$1,useReducer,useMemo,useLayoutEffect,isValidElement}from"react";import{h as buildAriaProps,i as buildDataProps,j as buildHtmlProps,k as classnames,l as globalProps,m as buildCss,F as Flex,I as Icon,n as FlexItem,o as Body$1,p as Caption,A as Avatar,q as domSafeProps,r as Title,s as getAllIcons,S as SectionSeparator,t as Draggable,u as TextInput,v as PropTypes,w as Card,x as noop$3,y as PbReactPopover,z as CircleIconButton,E as Button,H as HighchartsReact,J as Badge,K as joinPresent,N as titleize,O as IconCircle,Q as Image,U as Checkbox,V as Radio}from"./_typeahead-BAFhtQtP.js";import{g as PbTable,D as DateTime$1,a as datePickerHelper,u as useDropdown,o as omitBy,i as isEmpty,m as map,p as partial,j as find$1,k as commonjsGlobal,l as getDefaultExportFromCjs,n as highchartsDarkTheme,q as highchartsTheme,r as noop$4,s as colors,h as PbTextarea}from"./lib--ErPKv63.js";import*as ReactDOM from"react-dom";import ReactDOM__default,{createPortal}from"react-dom";var ls_attrchange={exports:{}};(function(module){(function(window2,factory){if(!window2){return}var globalInstall=function(){factory(window2.lazySizes);window2.removeEventListener("lazyunveilread",globalInstall,true)};factory=factory.bind(null,window2,window2.document);if(module.exports){factory(requireLazysizes())}else if(window2.lazySizes){globalInstall()}else{window2.addEventListener("lazyunveilread",globalInstall,true)}})(typeof window!="undefined"?window:0,(function(window2,document2,lazySizes){var addObserver=function(){var connect,disconnect,observer,connected;var lsCfg=lazySizes.cfg;var attributes={"data-bgset":1,"data-include":1,"data-poster":1,"data-bg":1,"data-script":1};var regClassTest="(\\s|^)("+lsCfg.loadedClass;var docElem=document2.documentElement;var setClass=function(target){lazySizes.rAF((function(){lazySizes.rC(target,lsCfg.loadedClass);if(lsCfg.unloadedClass){lazySizes.rC(target,lsCfg.unloadedClass)}lazySizes.aC(target,lsCfg.lazyClass);if(target.style.display=="none"||target.parentNode&&target.parentNode.style.display=="none"){setTimeout((function(){lazySizes.loader.unveil(target)}),0)}}))};var onMutation=function(mutations){var i,len,mutation,target;for(i=0,len=mutations.length;i<len;i++){mutation=mutations[i];target=mutation.target;if(!target.getAttribute(mutation.attributeName)){continue}if(target.localName=="source"&&target.parentNode){target=target.parentNode.querySelector("img")}if(target&&regClassTest.test(target.className)){setClass(target)}}};if(lsCfg.unloadedClass){regClassTest+="|"+lsCfg.unloadedClass}regClassTest+="|"+lsCfg.loadingClass+")(\\s|$)";regClassTest=new RegExp(regClassTest);attributes[lsCfg.srcAttr]=1;attributes[lsCfg.srcsetAttr]=1;if(window2.MutationObserver){observer=new MutationObserver(onMutation);connect=function(){if(!connected){connected=true;observer.observe(docElem,{subtree:true,attributes:true,attributeFilter:Object.keys(attributes)})}};disconnect=function(){if(connected){connected=false;observer.disconnect()}}}else{docElem.addEventListener("DOMAttrModified",function(){var runs;var modifications=[];var callMutations=function(){onMutation(modifications);modifications=[];runs=false};return function(e){if(connected&&attributes[e.attrName]&&e.newValue){modifications.push({target:e.target,attributeName:e.attrName});if(!runs){setTimeout(callMutations);runs=true}}}}(),true);connect=function(){connected=true};disconnect=function(){connected=false}}addEventListener("lazybeforeunveil",disconnect,true);addEventListener("lazybeforeunveil",connect);addEventListener("lazybeforesizes",disconnect,true);addEventListener("lazybeforesizes",connect);connect();removeEventListener("lazybeforeunveil",addObserver)};addEventListener("lazybeforeunveil",addObserver)}))})(ls_attrchange);
1
+ import{r as requireLazysizes}from"./lazysizes-B7xYodB-.js";import{jsx,Fragment,jsxs}from"react/jsx-runtime";import*as React from"react";import React__default,{useEffect,createContext,useContext,useState,useCallback,createElement,useRef,forwardRef,useImperativeHandle,Fragment as Fragment$1,useReducer,useMemo,useLayoutEffect,isValidElement}from"react";import{h as buildAriaProps,i as buildDataProps,j as buildHtmlProps,k as classnames,l as globalProps,m as buildCss,F as Flex,I as Icon,n as FlexItem,o as Body$1,p as Caption,A as Avatar,q as domSafeProps,r as Title,s as getAllIcons,S as SectionSeparator,t as Draggable,u as TextInput,v as PropTypes,w as Card,x as noop$3,y as PbReactPopover,z as CircleIconButton,E as Button,H as HighchartsReact,J as Badge,K as joinPresent,N as titleize,O as IconCircle,Q as Image,U as Checkbox,V as Radio}from"./_typeahead-B2zRxReA.js";import{g as PbTable,D as DateTime$1,a as datePickerHelper,u as useDropdown,o as omitBy,i as isEmpty,m as map,p as partial,j as find$1,k as commonjsGlobal,l as getDefaultExportFromCjs,n as highchartsDarkTheme,q as highchartsTheme,r as noop$4,s as colors,h as PbTextarea}from"./lib-D2U4I1U6.js";import*as ReactDOM from"react-dom";import ReactDOM__default,{createPortal}from"react-dom";var ls_attrchange={exports:{}};(function(module){(function(window2,factory){if(!window2){return}var globalInstall=function(){factory(window2.lazySizes);window2.removeEventListener("lazyunveilread",globalInstall,true)};factory=factory.bind(null,window2,window2.document);if(module.exports){factory(requireLazysizes())}else if(window2.lazySizes){globalInstall()}else{window2.addEventListener("lazyunveilread",globalInstall,true)}})(typeof window!="undefined"?window:0,(function(window2,document2,lazySizes){var addObserver=function(){var connect,disconnect,observer,connected;var lsCfg=lazySizes.cfg;var attributes={"data-bgset":1,"data-include":1,"data-poster":1,"data-bg":1,"data-script":1};var regClassTest="(\\s|^)("+lsCfg.loadedClass;var docElem=document2.documentElement;var setClass=function(target){lazySizes.rAF((function(){lazySizes.rC(target,lsCfg.loadedClass);if(lsCfg.unloadedClass){lazySizes.rC(target,lsCfg.unloadedClass)}lazySizes.aC(target,lsCfg.lazyClass);if(target.style.display=="none"||target.parentNode&&target.parentNode.style.display=="none"){setTimeout((function(){lazySizes.loader.unveil(target)}),0)}}))};var onMutation=function(mutations){var i,len,mutation,target;for(i=0,len=mutations.length;i<len;i++){mutation=mutations[i];target=mutation.target;if(!target.getAttribute(mutation.attributeName)){continue}if(target.localName=="source"&&target.parentNode){target=target.parentNode.querySelector("img")}if(target&&regClassTest.test(target.className)){setClass(target)}}};if(lsCfg.unloadedClass){regClassTest+="|"+lsCfg.unloadedClass}regClassTest+="|"+lsCfg.loadingClass+")(\\s|$)";regClassTest=new RegExp(regClassTest);attributes[lsCfg.srcAttr]=1;attributes[lsCfg.srcsetAttr]=1;if(window2.MutationObserver){observer=new MutationObserver(onMutation);connect=function(){if(!connected){connected=true;observer.observe(docElem,{subtree:true,attributes:true,attributeFilter:Object.keys(attributes)})}};disconnect=function(){if(connected){connected=false;observer.disconnect()}}}else{docElem.addEventListener("DOMAttrModified",function(){var runs;var modifications=[];var callMutations=function(){onMutation(modifications);modifications=[];runs=false};return function(e){if(connected&&attributes[e.attrName]&&e.newValue){modifications.push({target:e.target,attributeName:e.attrName});if(!runs){setTimeout(callMutations);runs=true}}}}(),true);connect=function(){connected=true};disconnect=function(){connected=false}}addEventListener("lazybeforeunveil",disconnect,true);addEventListener("lazybeforeunveil",connect);addEventListener("lazybeforesizes",disconnect,true);addEventListener("lazybeforesizes",connect);connect();removeEventListener("lazybeforeunveil",addObserver)};addEventListener("lazybeforeunveil",addObserver)}))})(ls_attrchange);
2
2
  /**
3
3
  * table-core
4
4
  *
@@ -18,7 +18,7 @@ import{r as requireLazysizes}from"./lazysizes-B7xYodB-.js";import{jsx,Fragment,j
18
18
  * LICENSE.md file in the root directory of this source tree.
19
19
  *
20
20
  * @license MIT
21
- */function flexRender(Comp,props){return!Comp?null:isReactComponent(Comp)?React.createElement(Comp,props):Comp}function isReactComponent(component){return isClassComponent(component)||typeof component==="function"||isExoticComponent(component)}function isClassComponent(component){return typeof component==="function"&&(()=>{const proto=Object.getPrototypeOf(component);return proto.prototype&&proto.prototype.isReactComponent})()}function isExoticComponent(component){return typeof component==="object"&&typeof component.$$typeof==="symbol"&&["react.memo","react.forward_ref"].includes(component.$$typeof.description)}function useReactTable(options){const resolvedOptions={state:{},onStateChange:()=>{},renderFallbackValue:null,...options};const[tableRef]=React.useState((()=>({current:createTable(resolvedOptions)})));const[state,setState]=React.useState((()=>tableRef.current.initialState));tableRef.current.setOptions((prev=>({...prev,...options,state:{...state,...options.state},onStateChange:updater=>{setState(updater);options.onStateChange==null?void 0:options.onStateChange(updater)}})));return tableRef.current}const TableHead=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,tag:tag="table"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_table_thead",globalProps(props),className);const isTableTag=tag==="table";return jsx(Fragment,{children:isTableTag?jsx("thead",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children}):jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})})};const TableHeader$1=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,tag:tag="table",text:text2}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_table_th",globalProps(props),className);const isTableTag=tag==="table";return jsx(Fragment,{children:isTableTag?jsx("th",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children}):jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children})})};const TableBody$1=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,tag:tag="table"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_table_tbody",globalProps(props),className);const isTableTag=tag==="table";return jsx(Fragment,{children:isTableTag?jsx("tbody",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children}):jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})})};const TableRow=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,sideHighlightColor:sideHighlightColor="none",tag:tag="table"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const sideHighlightClass=sideHighlightColor!=""?`side_highlight_${sideHighlightColor}`:null;const classes=classnames(buildCss("pb_table_row_kit",sideHighlightClass),"pb_table_tr",globalProps(props),className);const isTableTag=tag==="table";return jsx(Fragment,{children:isTableTag?jsx("tr",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children}):jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})})};const TableCell=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,tag:tag="table",text:text2}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_table_td",globalProps(props),className);const isTableTag=tag==="table";return jsx(Fragment,{children:isTableTag?jsx("td",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children}):jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children})})};const Table=props=>{const{aria:aria={},children:children,className:className,collapse:collapse="sm",container:container=true,dark:dark,data:data={},dataTable:dataTable=false,disableHover:disableHover=false,htmlOptions:htmlOptions={},id:id,outerPadding:outerPadding="",responsive:responsive="collapse",singleLine:singleLine=false,size:size="sm",sticky:sticky=false,striped:striped=false,tag:tag="table",verticalBorder:verticalBorder=false}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const tableCollapseCss=responsive!=="none"?`table-collapse-${collapse}`:"";const verticalBorderCss=verticalBorder?"vertical-border":"";const spaceCssName=outerPadding!=="none"?"space_":"";const outerPaddingCss=outerPadding?`outer_padding_${spaceCssName}${outerPadding}`:"";const isTableTag=tag==="table";const classNames=classnames("pb_table",`table-${size}`,`table-responsive-${responsive}`,{"table-card":container,"table-dark":dark,data_table:dataTable,"single-line":singleLine,"no-hover":disableHover,"sticky-header":sticky,striped:striped,[outerPaddingCss]:outerPadding!==""},globalProps(props),tableCollapseCss,verticalBorderCss,className);useEffect((()=>{const instance=new PbTable;instance.connect()}),[]);return jsx(Fragment,{children:isTableTag?jsx("table",{...ariaProps,...dataProps,...htmlProps,className:classNames,id:id,children:children}):jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classNames,id:id,children:children})})};Table.Head=TableHead;Table.Header=TableHeader$1;Table.Body=TableBody$1;Table.Row=TableRow;Table.Cell=TableCell;const AdvancedTableContext=createContext({});const filterExpandableRows=expandedState=>{for(const expandedRow in expandedState){if(expandedState[expandedRow]===false){delete expandedState[expandedRow]}}return expandedState};const updateExpandAndCollapseState=(tableRows,expanded,targetParent)=>{const updateExpandedRows={};const rows=tableRows.rows;let isExpansionConsistent=true;const areRowsExpanded=new Set;for(const row of rows){const shouldBeUpdated=targetParent===void 0?row.depth===0:targetParent===row.parentId;if(shouldBeUpdated){const isExpanded=row.getIsExpanded();areRowsExpanded.add(isExpanded);updateExpandedRows[row.id]=!isExpansionConsistent?true:!isExpanded;if(areRowsExpanded.size>1){isExpansionConsistent=false;for(const key in updateExpandedRows){updateExpandedRows[key]=true}}}}return filterExpandableRows({...expanded,...updateExpandedRows})};const CustomCell=({getValue:getValue,onRowToggleClick:onRowToggleClick,row:row,value:value})=>{const{setExpanded:setExpanded,expanded:expanded,expandedControl:expandedControl,inlineRowLoading:inlineRowLoading}=useContext(AdvancedTableContext);const handleOnExpand=row2=>{onRowToggleClick&&onRowToggleClick(row2);if(!expandedControl){setExpanded({...expanded,[row2.id]:!row2.getIsExpanded()})}};const RowHasChildren=row.original.children?true:false;const renderButton=inlineRowLoading?RowHasChildren:row.getCanExpand();return jsx("div",{style:{paddingLeft:`${row.depth*1.25}em`},children:jsxs(Flex,{alignItems:"center",columnGap:"xs",orientation:"row",children:[renderButton?jsx("button",{className:"gray-icon expand-toggle-icon",onClick:()=>handleOnExpand(row),children:row.getIsExpanded()?jsx(Icon,{cursor:"pointer",icon:"circle-play",rotation:90}):jsx(Icon,{cursor:"pointer",icon:"circle-play"})}):null,jsx(FlexItem,{paddingLeft:renderButton?"none":"xs",children:row.depth===0?getValue():value})]})})};const displayIcon=icon=>{if(typeof icon==="string"){return[icon,icon]}return icon};const SortIconButton=({header:header,sortIcon:sortIcon})=>jsx(Fragment,{children:header.column.getIsSorted()==="desc"?jsx("div",{className:"sort-button-icon",children:jsx(Icon,{icon:displayIcon(sortIcon)[0]})},displayIcon(sortIcon)[0]):jsx("div",{className:"sort-button-icon",children:jsx(Icon,{icon:displayIcon(sortIcon)[1]})},displayIcon(sortIcon)[1])});const ToggleIconButton=({row:row,onClick:onClick})=>{const{toggleExpansionIcon:toggleExpansionIcon}=useContext(AdvancedTableContext);return jsx("button",{className:"gray-icon toggle-all-icon",onClick:()=>onClick(row),children:jsx(Icon,{cursor:"pointer",fixedWidth:true,icon:displayIcon(toggleExpansionIcon)[0]})},displayIcon(toggleExpansionIcon)[0])};const isChrome=()=>{const userAgent=navigator.userAgent.toLowerCase();return userAgent.includes("chrome")&&!userAgent.includes("edg")};const TableHeaderCell=({enableSorting:enableSorting,enableToggleExpansion:enableToggleExpansion,handleExpandOrCollapse:handleExpandOrCollapse,header:header,headerChildren:headerChildren,isPinnedLeft:isPinnedLeft=false,loading:loading,sortIcon:sortIcon})=>{const{sortControl:sortControl,responsive:responsive}=useContext(AdvancedTableContext);const toggleSortButton=event=>{if(sortControl){const sortIsDesc=header.column.getIsSorted()==="desc";sortIsDesc?sortControl.onChange({desc:true}):sortControl.onChange({desc:false})}else{header.column.getToggleSortingHandler()(event)}};const cellClassName=classnames("table-header-cells",`${isChrome()?"chrome-styles":""}`,`${enableSorting?"table-header-cells-active":""}`,{"pinned-left":responsive==="scroll"&&isPinnedLeft});const cellId=`${loading?`loading-${header.id}`:`${header.id}`}`;const isToggleExpansionEnabledLoading=header.index===0&&loading&&(enableToggleExpansion==="all"||"header")&&enableToggleExpansion!=="none";const isToggleExpansionEnabled=header.index===0&&!loading&&(enableToggleExpansion==="all"||"header")&&enableToggleExpansion!=="none";return jsx("th",{align:"right",className:cellClassName,id:cellId,children:header.isPlaceholder?null:headerChildren&&header.index===0?jsxs(Flex,{alignItems:"center",children:[headerChildren,jsx("div",{children:flexRender(header.column.columnDef.header,header.getContext())})]}):jsxs(Flex,{alignItems:"center",justify:header.index===0&&enableSorting?"between":header.index===0&&!enableSorting?"start":"end",children:[isToggleExpansionEnabled&&jsx(ToggleIconButton,{onClick:handleExpandOrCollapse}),isToggleExpansionEnabledLoading&&jsx("div",{className:"loading-toggle-icon header-toggle-icon"}),jsxs(Flex,{className:`${header.index===0&&enableSorting&&"header-sort-button pb_th_link"}`,cursor:header.index===0&&enableSorting?"pointer":"default",...header.index===0&&enableSorting&&{htmlOptions:{onClick:event=>toggleSortButton(event),onKeyDown:event=>{if(event.key==="Enter"){toggleSortButton(event)}},tabIndex:0}},justify:header.index===0&&enableSorting?"between":"none",paddingLeft:enableSorting?"xxs":"xs",children:[jsx("div",{children:flexRender(header.column.columnDef.header,header.getContext())}),header.index===0&&header.column.getCanSort()&&enableSorting&&(loading?jsx("div",{className:"loading-toggle-icon"}):jsx(SortIconButton,{header:header,sortIcon:sortIcon}))]})]})},`${header.id}-header`)};const TableHeader=({children:children,className:className,dark:dark=false,enableSorting:enableSorting=false,id:id,sortIcon:sortIcon=["arrow-up-short-wide","arrow-down-short-wide"],...props})=>{const{enableToggleExpansion:enableToggleExpansion,handleExpandOrCollapse:handleExpandOrCollapse,loading:loading,table:table}=useContext(AdvancedTableContext);const classes=classnames(buildCss("pb_advanced_table_header"),globalProps(props),className);const columnPinning=table.getState().columnPinning;return jsx(Fragment,{children:jsx("thead",{className:classes,id:id,children:table.getHeaderGroups().map((headerGroup=>jsx("tr",{children:headerGroup.headers.map((header=>{const isPinnedLeft=columnPinning.left.includes(header.id);return jsx(TableHeaderCell,{enableSorting:enableSorting,enableToggleExpansion:enableToggleExpansion,handleExpandOrCollapse:handleExpandOrCollapse,header:header,headerChildren:children,isPinnedLeft:isPinnedLeft,loading:loading,sortIcon:sortIcon},`${header.id}-header`)}))},`${headerGroup.id}-headerGroup`)))})})};const LoadingInline=props=>{const{align:align="left",aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,text:text2=" Loading"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss(`pb_loading_inline_kit_${align}`),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs(Body$1,{color:"light",children:[jsx(Icon,{aria:{label:"loading icon"},fixedWidth:true,icon:"spinner",pulse:true}),text2]})})};const CollapsibleTrail=({leftOffset:leftOffset})=>{const style={position:"absolute",left:`${leftOffset}em`,top:0,bottom:0,width:"2px",backgroundColor:"#E4E8F0"};return jsx("div",{className:"collapsible-trail",style:style})};const renderCollapsibleTrail=currentDepth=>{const lines=[];for(let i=1;i<=currentDepth;i++){const additionalOffset=i>1?(i-1)*.25:0;const leftOffset=i*1+additionalOffset;lines.push(jsx(CollapsibleTrail,{leftOffset:leftOffset},i))}return lines};const SubRowHeaderRow=({collapsibleTrail:collapsibleTrail,enableToggleExpansion:enableToggleExpansion,onClick:onClick,row:row,subRowHeaders:subRowHeaders,table:table})=>{const{inlineRowLoading:inlineRowLoading}=useContext(AdvancedTableContext);const numberOfColumns=table.getAllFlatColumns().length;const rowHasChildren=row.original.children?true:false;const canExpand=inlineRowLoading?rowHasChildren:row.getCanExpand();return jsxs("tr",{className:"custom-row bg-silver",children:[jsxs("td",{className:`custom-row-first-column ${isChrome()?"chrome-styles":""}`,colSpan:1,children:[collapsibleTrail&&row.depth>0&&renderCollapsibleTrail(row.depth),jsx("div",{style:{paddingLeft:`${row.depth*1.25}em`},children:jsxs(Flex,{align:"center",columnGap:"xs",children:[enableToggleExpansion==="all"&&canExpand?jsx(ToggleIconButton,{onClick:onClick,row:row}):null,jsx(Caption,{marginLeft:canExpand?"none":"xs",text:subRowHeaders[row.depth-1]})]})})]}),jsx("td",{colSpan:numberOfColumns-1})]})};const LoadingCell=()=>jsx("div",{className:"loading-cell"});const TableBody=({className:className,collapsibleTrail:collapsibleTrail=true,dark:dark=false,id:id,subRowHeaders:subRowHeaders,...props})=>{const{columnDefinitions:columnDefinitions,enableToggleExpansion:enableToggleExpansion,handleExpandOrCollapse:handleExpandOrCollapse,isPinnedLeft:isPinnedLeft=false,inlineRowLoading:inlineRowLoading,loading:loading,responsive:responsive,table:table}=useContext(AdvancedTableContext);const classes=classnames(buildCss("pb_advanced_table_body"),{"pinned-left":responsive==="scroll"&&isPinnedLeft},globalProps(props),className);const columnPinning=table.getState().columnPinning;return jsx(Fragment,{children:jsx("tbody",{className:classes,id:id,children:table.getRowModel().rows.map((row=>{var _a;const isExpandable=row.getIsExpanded();const isFirstChildofSubrow=row.depth>0&&row.index===0;const rowHasNoChildren=row.original.children&&!row.original.children.length?true:false;const numberOfColumns=table.getAllFlatColumns().length;const isDataLoading=isExpandable&&(inlineRowLoading&&rowHasNoChildren)&&row.depth<((_a=columnDefinitions[0].cellAccessors)==null?void 0:_a.length);const rowBackground=isExpandable&&(!inlineRowLoading&&row.getCanExpand()||inlineRowLoading&&rowHasNoChildren);return jsxs(React__default.Fragment,{children:[isFirstChildofSubrow&&subRowHeaders&&jsx(SubRowHeaderRow,{collapsibleTrail:collapsibleTrail,enableToggleExpansion:enableToggleExpansion,onClick:handleExpandOrCollapse,row:row,subRowHeaders:subRowHeaders,table:table}),jsx("tr",{className:`${rowBackground?"bg-silver":"bg-white"} ${row.depth>0?`depth-sub-row-${row.depth}`:""}`,id:`${row.index}-${row.id}-${row.depth}-row`,children:row.getVisibleCells().map(((cell,i)=>{const isPinnedLeft2=columnPinning.left.includes(cell.column.id);return jsxs("td",{align:"right",className:classnames(`${cell.id}-cell position_relative`,isChrome()?"chrome-styles":"",isPinnedLeft2&&"pinned-left"),children:[collapsibleTrail&&i===0&&row.depth>0&&renderCollapsibleTrail(row.depth),jsx("span",{id:`${cell.id}-span`,children:loading?jsx(LoadingCell,{}):flexRender(cell.column.columnDef.cell,cell.getContext())})]},`${cell.id}-data`)}))}),isDataLoading?jsx("tr",{children:jsx("td",{colSpan:numberOfColumns,style:{paddingLeft:`${row.depth===0?.5:row.depth*2}em`},children:jsx(LoadingInline,{})})},`${row.id}-row`):null]},`${row.index}-${row.id}-${row.depth}-row`)}))})})};const AdvancedTable=props=>{const{aria:aria={},children:children,className:className,columnDefinitions:columnDefinitions,dark:dark=false,data:data={},enableToggleExpansion:enableToggleExpansion="header",expandedControl:expandedControl,htmlOptions:htmlOptions={},id:id,initialLoadingRowsCount:initialLoadingRowsCount=10,inlineRowLoading:inlineRowLoading=false,loading:loading,onRowToggleClick:onRowToggleClick,onToggleExpansionClick:onToggleExpansionClick,responsive:responsive="scroll",sortControl:sortControl,tableData:tableData,tableOptions:tableOptions,tableProps:tableProps,toggleExpansionIcon:toggleExpansionIcon="arrows-from-line"}=props;const[loadingStateRowCount,setLoadingStateRowCount]=useState(initialLoadingRowsCount);const[localExpanded,setLocalExpanded]=useState({});const expanded=expandedControl?expandedControl.value:localExpanded;const setExpanded=expandedControl?expandedControl.onChange:setLocalExpanded;const columnHelper=createColumnHelper();const createCellFunction=cellAccessors=>{const columnCells=({row:row,getValue:getValue})=>{const rowData=row.original;switch(row.depth){case 0:{return jsx(CustomCell,{getValue:getValue,onRowToggleClick:onRowToggleClick,row:row})}default:{const depthAccessor=cellAccessors[row.depth-1];const accessorValue=rowData[depthAccessor];return accessorValue?jsx(CustomCell,{onRowToggleClick:onRowToggleClick,row:row,value:accessorValue}):"N/A"}}};return columnCells};const columns=columnDefinitions&&columnDefinitions.map((column=>{const columnStructure={...columnHelper.accessor(column.accessor,{header:column.label})};if(column.cellAccessors){columnStructure.cell=createCellFunction(column.cellAccessors)}return columnStructure}));const sorting=[{id:columnDefinitions[0].accessor,desc:sortControl&&sortControl.value!==null?!sortControl.value.desc:false}];const expandAndSortState=()=>{if(sortControl){return{state:{expanded:expanded,sorting:sorting}}}else{return{state:{expanded:expanded}}}};const table=useReactTable({data:loading?Array(loadingStateRowCount).fill({}):tableData,columns:columns,onExpandedChange:setExpanded,getSubRows:row=>row.children,getCoreRowModel:getCoreRowModel(),getExpandedRowModel:getExpandedRowModel(),getSortedRowModel:getSortedRowModel(),enableSortingRemoval:false,sortDescFirst:true,...expandAndSortState(),...tableOptions});const tableRows=table.getRowModel();const updateLoadingStateRowCount=useCallback((()=>{const rowsCount=table.getRowModel().rows.length;if(rowsCount!==loadingStateRowCount&&rowsCount!==0){setLoadingStateRowCount(rowsCount)}}),[tableData,loadingStateRowCount]);useEffect((()=>{if(!loading){updateLoadingStateRowCount()}}),[loading,updateLoadingStateRowCount]);const handleExpandOrCollapse=async row=>{onToggleExpansionClick&&onToggleExpansionClick(row);const expandedState=expanded;const targetParent=row==null?void 0:row.parentId;const updatedRows=await updateExpandAndCollapseState(tableRows,expandedState,targetParent);setExpanded(updatedRows)};const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_advanced_table"),`table-responsive-${responsive}`,globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx(AdvancedTableContext.Provider,{value:{columnDefinitions:columnDefinitions,enableToggleExpansion:enableToggleExpansion,expanded:expanded,expandedControl:expandedControl,handleExpandOrCollapse:handleExpandOrCollapse,inlineRowLoading:inlineRowLoading,loading:loading,responsive:responsive,setExpanded:setExpanded,sortControl:sortControl,table:table,toggleExpansionIcon:toggleExpansionIcon},children:jsx(Table,{className:`${loading?"content-loading":""}`,dark:dark,dataTable:true,numberSpacing:"tabular",responsive:"none",...tableProps,children:children?children:jsxs(Fragment,{children:[jsx(TableHeader,{}),jsx(TableBody,{})]})})})})};AdvancedTable.Header=TableHeader;AdvancedTable.Body=TableBody;const AvatarActionButton=props=>{const{action:action="add",aria:aria={},linkAriaLabel:linkAriaLabel,className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,imageAlt:imageAlt="",imageUrl:imageUrl,linkUrl:linkUrl,name:name,onClick:onClick,placement:placement="bottom left",size:size="md"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_avatar_action_button_kit",action,placement,size),globalProps(props),className);const icons={add:"plus-circle",remove:"times-circle"};return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs("a",{"aria-label":linkAriaLabel,href:linkUrl,onClick:onClick,children:[jsx(Avatar,{imageAlt:imageAlt,imageUrl:imageUrl,name:name,size:size}),jsx("div",{className:`icon ${dark?"dark":""}`,children:jsx(Icon,{dark:dark,icon:icons[action]})})]})})};const BreadCrumbItem=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,component:component="a",...rest}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const Component=component||"span";const css=classnames(buildCss("pb_bread_crumb_item_kit"),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:css,id:id,children:jsx(Component,{className:"pb_bread_crumb_item",...domSafeProps(rest)})})};const BreadCrumbs=props=>{const{aria:aria={label:"Breadcrumb Navigation"},className:className,data:data={},htmlOptions:htmlOptions={},id:id,children:children}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css=classnames(buildCss("pb_bread_crumbs_kit"),globalProps(props),className);return jsx("nav",{...ariaProps,...dataProps,...htmlProps,className:css,id:id,children:children})};const ButtonToolbar=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,orientation:orientation="horizontal",text:text2,variant:variant="primary"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_button_toolbar_kit",orientation,variant),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children||text2})};const contactTypeMap={cell:"mobile",email:"envelope",extension:"phone-plus",home:"phone",work:"phone-office","work-cell":"phone-laptop","wrong-phone":"phone-slash"};const formatContact=(contactString,contactType)=>{if(contactType==="email")return contactString;const cleaned=contactString.replace(/\D/g,"");const phoneNumber=cleaned.match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);if(contactType==="extension"){return cleaned.match(/^\d{4}$/)}if(phoneNumber){const intlCode=phoneNumber[1]?"+1 ":"";return[intlCode,"(",phoneNumber[2],") ",phoneNumber[3],"-",phoneNumber[4]].join("")}return null};const Contact=props=>{const{aria:aria={},className:className,contactDetail:contactDetail,contactType:contactType,contactValue:contactValue,data:data={},dark:dark=false,htmlOptions:htmlOptions={},id:id}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_contact_kit"),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs(Body$1,{className:"pb_contact_kit",color:"light",dark:dark,tag:"span",children:[jsx(Icon,{dark:dark,fixedWidth:true,icon:contactTypeMap[contactType]||"phone"}),` ${formatContact(contactValue,contactType)} `,contactDetail&&jsx(Caption,{dark:dark,size:"xs",tag:"span",text:contactDetail})]})})};const sizes$1={lg:1,md:3,sm:4};const Currency=props=>{const{abbreviate:abbreviate=false,align:align="left",aria:aria={},amount:amount,data:data={},decimals:decimals="default",emphasized:emphasized=true,htmlOptions:htmlOptions={},id:id,unit:unit,className:className,label:label="",size:size="sm",symbol:symbol="$",variant:variant="default",dark:dark=false,unstyled:unstyled=false}=props;const emphasizedClass=emphasized?"":"_deemphasized";let variantClass;if(variant==="light"){variantClass="_light"}else if(variant==="bold"){variantClass="_bold"}const[whole,decimal="00"]=amount.split(".");const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_currency_kit",align,size),globalProps(props),className);const getFormattedNumber=input=>new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(input);const getAbbreviatedValue=abbrType=>{const num=`${getFormattedNumber(whole.split(",").join(""))}`,isAmount=abbrType==="amount",isUnit=abbrType==="unit";return isAmount?num.slice(0,-1):isUnit?num.slice(-1):""};const getMatchingDecimalAmount=decimals==="matching"?amount:whole,getMatchingDecimalValue=decimals==="matching"?"":`.${decimal}`;const getAmount=abbreviate?getAbbreviatedValue("amount"):getMatchingDecimalAmount,getAbbreviation=abbreviate?getAbbreviatedValue("unit"):null,getDecimalValue=abbreviate?"":getMatchingDecimalValue;return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[jsx(Caption,{dark:dark,children:label}),jsx("div",{className:`pb_currency_wrapper${variantClass||emphasizedClass}`,children:unstyled?jsxs(Fragment,{children:[jsx("div",{children:symbol}),jsx("div",{children:getAmount}),jsxs("div",{children:[getAbbreviation,unit?unit:getDecimalValue]})]}):jsxs(Fragment,{children:[jsx(Body$1,{className:"dollar_sign",color:"light",dark:dark,children:symbol}),jsx(Title,{className:"pb_currency_value",dark:dark,size:sizes$1[size],children:getAmount}),jsxs(Body$1,{className:"unit",color:"light",dark:dark,children:[getAbbreviation,unit?unit:getDecimalValue]})]})})]})};const statusMap={increase:"positive",decrease:"negative",neutral:"neutral"};const iconMap$1={increase:"arrow-up",decrease:"arrow-down"};const StatChange=props=>{const{change:change="neutral",className:className,htmlOptions:htmlOptions={},icon:icon,id:id,value:value}=props;const status=statusMap[change];let returnedIcon=iconMap$1[change];if(icon){returnedIcon=icon}const htmlProps=buildHtmlProps(htmlOptions);return jsx(Fragment,{children:value&&jsx("div",{className:classnames(buildCss("pb_stat_change_kit",status),globalProps(props),className),id:id,...htmlProps,children:jsxs(Body$1,{status:status,children:[returnedIcon&&jsxs(Fragment,{children:[jsx(Icon,{fixed_width:true,icon:returnedIcon})," "]}),`${value}%`]})})})};const StatValue=props=>{const{className:className,htmlOptions:htmlOptions={},id:id,unit:unit,value:value=0}=props;const htmlProps=buildHtmlProps(htmlOptions);const displayValue=function(value2){if(value2||value2===0){return jsx(Title,{size:1,tag:"span",text:`${value2}`})}};const displayUnit=function(unit2){if(unit2){return jsx(Title,{size:3,tag:"span",text:unit2})}};return jsx("div",{className:classnames("pb_stat_value_kit",globalProps(props),className),id:id,...htmlProps,children:jsxs("div",{className:"pb_stat_value_wrapper",children:[displayValue(value)," ",displayUnit(unit)]})})};const DashboardValue=props=>{const{align:align="left",aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,statChange:statChange={},statLabel:statLabel,statValue:statValue={}}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dashboard_value_kit",align),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[statLabel&&jsx(Body$1,{color:"light",children:statLabel}),statValue&&jsx(StatValue,{unit:statValue.unit,value:statValue.value}),statChange&&jsx(StatChange,{change:statChange.change,value:statChange.value})]})};const PbDate=props=>{const{aria:aria={},alignment:alignment="left",className:className,data:data={},htmlOptions:htmlOptions={},id:id,showDayOfWeek:showDayOfWeek=false,showIcon:showIcon=false,size:size="md",unstyled:unstyled=false,value:value}=props;const weekday=DateTime$1.toWeekday(value);const month=DateTime$1.toMonth(value);const day=DateTime$1.toDay(value);const year=DateTime$1.toYear(value);const currentYear=(new Date).getFullYear();const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_date_kit",alignment),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:unstyled?jsxs(Fragment,{children:[showIcon&&jsx("div",{children:jsx(Icon,{fixedWidth:true,icon:"calendar-alt"})}),showDayOfWeek&&jsxs(Fragment,{children:[jsx("div",{children:weekday}),jsx("div",{children:"•"})]}),jsxs("span",{children:[jsxs("span",{children:[month," ",day]}),currentYear!=year&&jsx("span",{children:`, ${year}`})]})]}):size=="md"||size=="lg"?jsxs(Title,{size:4,tag:"h4",children:[showIcon&&jsx(Body$1,{className:"pb_icon_kit_container",color:"light",tag:"span",children:jsx(Icon,{fixedWidth:true,icon:"calendar-alt"})}),showDayOfWeek&&jsxs(Fragment,{children:[weekday,jsx(Body$1,{color:"light",tag:"span",text:" • "})]}),jsxs("span",{children:[month," ",day]}),currentYear!=year&&jsx("span",{children:`, ${year}`})]}):jsxs(Fragment,{children:[showIcon&&jsx(Caption,{className:"pb_icon_kit_container",tag:"span",children:jsx(Icon,{fixedWidth:true,icon:"calendar-alt",size:"sm"})}),showDayOfWeek&&jsxs(Fragment,{children:[jsx(Caption,{tag:"div",children:weekday}),jsx(Caption,{color:"light",tag:"div",text:" • "})]}),jsxs(Caption,{tag:"span",children:[month," ",day,currentYear!=year&&jsx(Fragment,{children:`, ${year}`})]})]})})};const DatePicker=props=>{if(props.plugins);const{allowInput:allowInput=false,aria:aria={},className:className,customQuickPickDates:customQuickPickDates,dark:dark=false,data:data={},defaultDate:defaultDate="",disableDate:disableDate=null,disableInput:disableInput,disableRange:disableRange=null,disableWeekdays:disableWeekdays=null,enableTime:enableTime=false,error:error,format:format="m/d/Y",hideIcon:hideIcon=false,hideLabel:hideLabel=false,htmlOptions:htmlOptions={},id:id,inLine:inLine=false,inputAria:inputAria={},inputData:inputData={},inputOnChange:inputOnChange,inputValue:inputValue,label:label="Date Picker",maxDate:maxDate,minDate:minDate,mode:mode="single",name:name,onChange:onChange=()=>{},onClose:onClose,pickerId:pickerId,placeholder:placeholder="Select Date",plugins:plugins=false,position:position,positionElement:positionElement,scrollContainer:scrollContainer,selectionType:selectionType="",showTimezone:showTimezone=false,staticPosition:staticPosition=true,thisRangesEndToday:thisRangesEndToday=false,yearRange:yearRange=[1900,2100]}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const inputAriaProps=buildAriaProps(inputAria);const inputDataProps=buildDataProps(inputData);useEffect((()=>{datePickerHelper({allowInput:allowInput,customQuickPickDates:customQuickPickDates,defaultDate:defaultDate,disableDate:disableDate,disableRange:disableRange,disableWeekdays:disableWeekdays,enableTime:enableTime,format:format,hideIcon:hideIcon,inLine:inLine,maxDate:maxDate,minDate:minDate,mode:mode,onChange:onChange,onClose:onClose,pickerId:pickerId,plugins:plugins,position:position,positionElement:positionElement,selectionType:selectionType,showTimezone:showTimezone,staticPosition:staticPosition,thisRangesEndToday:thisRangesEndToday,yearRange:yearRange,required:false},scrollContainer)}));const filteredProps={...props};if(filteredProps.marginBottom===void 0){filteredProps.marginBottom="sm"}filteredProps==null?true:delete filteredProps.position;const classes=classnames(buildCss("pb_date_picker_kit"),globalProps(filteredProps),error?"error":null,className);const iconWrapperClass=()=>{let base="cal_icon_wrapper";if(dark){base+=" dark"}if(hideLabel){base+=" no_label_shift"}if(error){base+=" error"}return base};return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs("div",{...inputAriaProps,...inputDataProps,className:"input_wrapper",children:[jsx(Caption,{className:"pb_date_picker_kit_label",text:hideLabel?null:label}),jsxs(Fragment,{children:[jsxs("div",{className:"date_picker_input_wrapper",children:[jsx("input",{autoComplete:"off",className:"date_picker_input",disabled:disableInput,id:pickerId,name:name,onChange:inputOnChange,placeholder:placeholder,value:inputValue}),error&&jsx(Body$1,{status:"negative",text:error,variant:null})]}),!hideIcon&&jsx("div",{className:iconWrapperClass(),id:`cal-icon-${pickerId}`,children:jsx(Icon,{className:"cal_icon",icon:"calendar-alt"})}),hideIcon&&inLine?jsxs("div",{children:[jsx("div",{className:iconWrapperClass(),id:`${pickerId}-icon-plus`,children:jsx(Icon,{className:"date-picker-plus-icon",icon:"plus"})}),jsx("div",{className:iconWrapperClass(),id:`${pickerId}-angle-down`,children:jsx(Icon,{className:"angle_down_icon",icon:"angle-down"})})]}):null]})]})})};const dateTimestamp$1=(dateValue,includeYear)=>{if(includeYear){return`${DateTime$1.toMonth(dateValue)} ${DateTime$1.toDay(dateValue)}, ${DateTime$1.toYear(dateValue)}`}else{return`${DateTime$1.toMonth(dateValue)} ${DateTime$1.toDay(dateValue)}`}};const dateTimeIso$1=dateValue=>DateTime$1.toIso(dateValue);const DateRangeInline=props=>{const{align:align="left",className:className,dark:dark=false,data:data={},endDate:endDate,htmlOptions:htmlOptions={},icon:icon=false,size:size="sm",startDate:startDate}=props;const dateInCurrentYear=()=>{const currentDate=new Date;return(startDate==null?void 0:startDate.getFullYear())===(endDate==null?void 0:endDate.getFullYear())&&(startDate==null?void 0:startDate.getFullYear())===currentDate.getFullYear()};const dateRangeClasses=buildCss("pb_date_range_inline_kit",align);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const renderTime=date=>jsx("time",{dateTime:dateTimeIso$1(date),children:dateInCurrentYear()?` ${dateTimestamp$1(date,false)} `:` ${dateTimestamp$1(date,true)} `});return jsx("div",{...dataProps,...htmlProps,className:classnames(dateRangeClasses,globalProps(props),className),children:jsxs("div",{className:"pb_date_range_inline_wrapper",children:[size==="xs"&&jsxs(Fragment,{children:[icon&&jsx(Caption,{dark:dark,tag:"span",children:jsx(Icon,{className:"pb_date_range_inline_icon",dark:dark,fixedWidth:true,icon:"calendar-alt",size:size,tag:"span"})}),jsx(Caption,{dark:dark,tag:"span",children:renderTime(startDate)}),jsx(Caption,{dark:dark,tag:"span",children:jsx(Icon,{className:"pb_date_range_inline_arrow",dark:dark,fixedWidth:true,icon:"long-arrow-right",tag:"span"})}),jsx(Caption,{dark:dark,tag:"span",children:renderTime(endDate)})]}),size==="sm"&&jsxs(Fragment,{children:[icon&&jsx(Body$1,{color:"light",dark:dark,tag:"span",children:jsx(Icon,{className:"pb_date_range_inline_icon",dark:dark,fixedWidth:true,icon:"calendar-alt",size:size,tag:"span"})}),jsx(Body$1,{dark:dark,tag:"span",children:renderTime(startDate)}),jsx(Body$1,{color:"light",dark:dark,tag:"span",children:jsx(Icon,{className:"pb_date_range_inline_arrow",dark:dark,fixedWidth:true,icon:"long-arrow-right",tag:"span"})}),jsx(Body$1,{dark:dark,tag:"span",children:renderTime(endDate)})]})]})})};const DateYearStacked=props=>{const{align:align="left",className:className,dark:dark=false,date:date,data:data={},htmlOptions:htmlOptions={}}=props;const css=classnames(buildCss("pb_date_year_stacked",align),globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsxs("div",{...dataProps,...htmlProps,className:css,children:[jsx(Title,{dark:dark,size:4,text:`${DateTime$1.toDay(date)} ${DateTime$1.toMonth(date).toUpperCase()}`}),jsx(Body$1,{color:"light",children:DateTime$1.toYear(date)})]})};const DateRangeStacked=props=>{const{className:className,dark:dark=false,endDate:endDate,htmlOptions:htmlOptions={},startDate:startDate,data:data={}}=props;const css=classnames(buildCss("pb_date_range_stacked"),globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx("div",{...dataProps,...htmlProps,className:css,children:jsxs(Flex,{vertical:"center",children:[jsx(FlexItem,{children:jsx(DateYearStacked,{align:"right",dark:dark,date:startDate})}),jsx(FlexItem,{children:jsx("div",{children:jsx(Body$1,{color:"light",tag:"span",children:jsx(Icon,{className:"pb_date_range_stacked_arrow",fixedWidth:true,icon:"long-arrow-right"})})})}),jsx(FlexItem,{children:jsx(DateYearStacked,{dark:dark,date:endDate})})]})})};const sizes={sm:4,md:3};const DateStacked=props=>{const{align:align="left",bold:bold=false,reverse:reverse=false,className:className,dark:dark=false,date:date,data:data={},htmlOptions:htmlOptions={},size:size="sm"}=props;const classes=classnames(buildCss("pb_date_stacked_kit",align,size,{dark:dark,reverse:reverse}),globalProps(props),className);const currentYear=(new Date).getFullYear();const inputYear=DateTime$1.toYear(date);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx(Fragment,{children:bold==false?jsxs("div",{...dataProps,...htmlProps,className:classes,children:[jsxs("div",{className:"pb_date_stacked_day_month",children:[jsx(Caption,{text:DateTime$1.toMonth(date).toUpperCase()}),jsx(Title,{dark:dark,size:sizes[size],text:DateTime$1.toDay(date).toString()})]}),currentYear!=inputYear&&jsx(Caption,{size:"xs",children:inputYear})]}):jsx("div",{...dataProps,...htmlProps,className:classes,children:jsxs("div",{className:"pb_date_stacked_day_month",children:[jsx(Title,{bold:true,dark:dark,size:"4",text:DateTime$1.toMonth(date)}),jsx(Title,{bold:true,dark:dark,size:"4",text:DateTime$1.toDay(date).toString()}),currentYear!=inputYear&&jsx(Title,{size:"4",children:inputYear})]})})})};const Time=props=>{const{align:align,className:className,date:date,htmlOptions:htmlOptions={},showIcon:showIcon,size:size,timeZone:timeZone,unstyled:unstyled=false,showTimezone:showTimezone=true}=props;const classes=classnames(buildCss("pb_time_kit",align,size),globalProps(props),className);const clockIcon=getAllIcons()["clock"];const htmlProps=buildHtmlProps(htmlOptions);return jsxs("div",{...htmlProps,className:classes,children:[showIcon&&(unstyled?jsxs("span",{children:[jsx(Icon,{className:"svg-inline--fa clock",customIcon:clockIcon.icon})," "]}):jsx(Fragment,{children:jsxs(Body$1,{color:"light",tag:"span",children:[jsx(Icon,{className:"svg-inline--fa clock",customIcon:clockIcon.icon,fixedWidth:true,size:size==="md"?"":"sm"})," "]})})),jsx("time",{dateTime:date.toLocaleString(),children:jsx("span",{children:unstyled?jsxs(Fragment,{children:[jsx("span",{children:DateTime$1.toTimeWithMeridiem(date,timeZone)})," ",showTimezone&&jsx("span",{children:DateTime$1.toTimeZone(date,timeZone)})]}):size==="md"?jsxs(Fragment,{children:[jsx(Body$1,{className:"pb_time",tag:"span",text:DateTime$1.toTimeWithMeridiem(date,timeZone)})," ",showTimezone&&jsx(Body$1,{color:"light",tag:"span",text:DateTime$1.toTimeZone(date,timeZone)})]}):jsxs(Fragment,{children:[jsx(Caption,{color:"light",tag:"span",text:DateTime$1.toTimeWithMeridiem(date,timeZone)})," ",showTimezone&&jsx(Caption,{color:"light",tag:"span",text:DateTime$1.toTimeZone(date,timeZone)})]})})})]})};const DateTime=props=>{const{align:align="left",aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},showDayOfWeek:showDayOfWeek=false,datetime:datetime2,id:id,showIcon:showIcon=false,size:size="md",timeZone:timeZone="America/New_York"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_date_time",size),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs(Flex,{horizontal:align,vertical:"baseline",children:[jsx(PbDate,{showDayOfWeek:showDayOfWeek,size:size,value:datetime2}),jsx(Time,{date:datetime2,marginLeft:"sm",showIcon:showIcon,size:size,timeZone:timeZone})]})})};const TimeStackedDefault=props=>{if(props.date);const{align:align="left",className:className,dark:dark,data:data={},date:date,htmlOptions:htmlOptions={},time:time,timeZone:timeZone}=props;const classes=classnames(buildCss("pb_time_stacked_kit",align),globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx("div",{className:classes,...dataProps,...htmlProps,children:jsx(Body$1,{className:classnames("pb_time_stacked","time-spacing"),color:"light",dark:dark,children:jsxs("time",{children:[DateTime$1.toTimeWithMeridiem(date?date:new Date(time),timeZone),jsx(Caption,{className:"pb_time_stacked",color:"light",dark:dark,tag:"span",text:DateTime$1.toTimeZone(date?date:new Date(time),timeZone)})]})})})};const DateTimeStacked=props=>{if(props.date);const{date:date,datetime:datetime2,dark:dark,htmlOptions:htmlOptions={},timeZone:timeZone="America/New_York"}=props;const classes=buildCss("pb_date_time_stacked_kit",globalProps(props));const htmlProps=buildHtmlProps(htmlOptions);return jsxs(Flex,{inline:false,vertical:"stretch",...htmlProps,...props,children:[jsx(FlexItem,{children:jsx(DateStacked,{align:"right",bold:true,dark:dark,date:date||datetime2})}),jsx(SectionSeparator,{className:"date-time-padding",orientation:"vertical"}),jsx(FlexItem,{children:jsx(TimeStackedDefault,{className:classes,dark:dark,date:date||datetime2,timeZone:timeZone})})]})};const Detail=props=>{const{aria:aria={},bold:bold=false,children:children,className:className,color:color="light",data:data={},htmlOptions:htmlOptions={},id:id="",tag:tag="div",text:text2=""}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const isBold=bold?"bold":null;const classes=classnames(buildCss("pb_detail_kit",`color`,color),isBold,globalProps(props),className);const Tag=`${tag}`;return jsx(Tag,{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children})};const DropdownContext=createContext({});const List=props=>{const{aria:aria={},borderless:borderless=false,children:children,className:className,dark:dark=false,data:data={},enableDrag:enableDrag=false,htmlOptions:htmlOptions={},id:id,layout:layout="",ordered:ordered=false,role:role,size:size="",tabIndex:tabIndex,xpadding:xpadding=false,variant:variant,text:text2}=props;const layoutClass={left:"layout_left",right:"layout_right",default:""};const childrenWithProps=React__default.Children.map(children,(child=>React__default.cloneElement(child,{text:text2,variant:variant,enableDrag:enableDrag})));const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_list_kit",layoutClass[layout],size,{dark:dark,borderless:borderless,ordered:ordered,xpadding:xpadding}),globalProps(props),className);return jsx(Fragment,{children:enableDrag?jsx(Draggable.Container,{children:jsx("div",Object.assign({className:classes},{children:ordered?jsx("ol",Object.assign({},ariaProps,dataProps,htmlProps,{className:className,id:id,role:role,tabIndex:tabIndex},{children:childrenWithProps}),void 0):jsx("ul",Object.assign({},ariaProps,dataProps,htmlProps,{className:className,id:id,role:role,tabIndex:tabIndex},{children:childrenWithProps}),void 0)}),void 0)},void 0):jsx("div",Object.assign({className:classes},{children:ordered?jsx("ol",Object.assign({},ariaProps,dataProps,htmlProps,{className:className,id:id,role:role,tabIndex:tabIndex},{children:childrenWithProps}),void 0):jsx("ul",Object.assign({},ariaProps,dataProps,htmlProps,{className:className,id:id,role:role,tabIndex:tabIndex},{children:childrenWithProps}),void 0)}),void 0)},void 0)};const ListItem=props=>{const{aria:aria={},children:children,className:className,data:data={},enableDrag:enableDrag,dragId:dragId,dragHandle:dragHandle=true,htmlOptions:htmlOptions={},id:id,tabIndex:tabIndex}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_item_kit"),globalProps(props),className);return jsx(Fragment,{children:enableDrag?jsx(Draggable.Item,Object.assign({dragId:dragId},{children:jsxs("li",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id,tabIndex:tabIndex},{children:[dragHandle&&jsx("span",Object.assign({style:{verticalAlign:"middle"}},{children:jsx(Body$1,Object.assign({color:"light"},{children:jsx(Icon,{icon:"grip-dots-vertical",verticalAlign:"middle"},void 0)}),void 0)}),void 0),children]}),void 0)}),void 0):jsx("li",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id,tabIndex:tabIndex},{children:children}),void 0)},void 0)};const DropdownContainer=props=>{const{aria:aria={},children:children,className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,searchbar:searchbar=false}=props;const{dropdownContainerRef:dropdownContainerRef,filteredOptions:filteredOptions,filterItem:filterItem,handleChange:handleChange,inputRef:inputRef,isDropDownClosed:isDropDownClosed,setFocusedOptionIndex:setFocusedOptionIndex,triggerRef:triggerRef}=useContext(DropdownContext);const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dropdown_container"),`${isDropDownClosed?"close":"open"}`,globalProps(props),className);return jsxs("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id,onMouseEnter:()=>setFocusedOptionIndex(-1),ref:dropdownContainerRef,style:triggerRef?{}:{position:"absolute"}},{children:[searchbar&&jsx(TextInput,Object.assign({dark:dark,paddingTop:"xs",paddingX:"xs"},{children:jsx("input",{onChange:handleChange,placeholder:"Select...",ref:inputRef,value:filterItem},void 0)}),void 0),jsx(List,Object.assign({dark:dark},{children:(filteredOptions===null||filteredOptions===void 0?void 0:filteredOptions.length)===0?jsx(ListItem,Object.assign({dark:dark,display:"flex",justifyContent:"center",padding:"xs"},{children:jsx(Body$1,{color:"light",dark:dark,text:"no option"},void 0)}),void 0):children}),void 0)]}),void 0)};const DropdownOption=props=>{const{aria:aria={},children:children,className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,key:key,option:option}=props;const{filteredOptions:filteredOptions,filterItem:filterItem,focusedOptionIndex:focusedOptionIndex,handleOptionClick:handleOptionClick,selected:selected}=useContext(DropdownContext);const isItemMatchingFilter=option2=>{const label=typeof option2.label==="string"?option2.label.toLowerCase():option2.label;return String(label).toLowerCase().includes(filterItem.toLowerCase())};if(!isItemMatchingFilter(option)){return null}const isFocused=focusedOptionIndex>=0&&filteredOptions[focusedOptionIndex].label===option.label;const focusedClass=isFocused&&"focused";const selectedClass=`${selected.label===option.label?"selected":"list"}`;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dropdown_option",selectedClass,focusedClass),globalProps(props),className);return createElement("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,key:key,onClick:()=>handleOptionClick(option)},jsx(ListItem,{cursor:"pointer",dark:dark,"data-name":option.value,padding:"none",children:children?jsx("div",{className:"dropdown_option_wrapper",children:children}):jsx(Body$1,{dark:dark,text:option.label})},option.label))};const useHandleOnKeyDown=()=>{const{autocomplete:autocomplete,filteredOptions:filteredOptions,focusedOptionIndex:focusedOptionIndex,handleBackspace:handleBackspace,handleOptionClick:handleOptionClick,selected:selected,setFocusedOptionIndex:setFocusedOptionIndex,setIsDropDownClosed:setIsDropDownClosed}=useContext(DropdownContext);return e=>{if(e.key!=="Tab"&&autocomplete&&selected&&selected.label){handleBackspace()}switch(e.key){case"Backspace":case"Delete":if(autocomplete){handleBackspace()}break;case"ArrowDown":{e.preventDefault();setIsDropDownClosed(false);const nextIndex=(focusedOptionIndex+1)%filteredOptions.length;setFocusedOptionIndex(nextIndex);break}case"ArrowUp":{e.preventDefault();const nextIndexUp=(focusedOptionIndex-1+filteredOptions.length)%filteredOptions.length;setFocusedOptionIndex(nextIndexUp);break}case"Enter":if(focusedOptionIndex!==-1){e.preventDefault();handleOptionClick(filteredOptions[focusedOptionIndex]);setFocusedOptionIndex(-1)}else if(focusedOptionIndex===-1){setIsDropDownClosed(false)}break;case"Tab":setIsDropDownClosed(true);setFocusedOptionIndex(-1);break}}};const DropdownTrigger=props=>{const{aria:aria={},children:children,className:className,customDisplay:customDisplay,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,placeholder:placeholder}=props;const{autocomplete:autocomplete,filterItem:filterItem,handleChange:handleChange,handleWrapperClick:handleWrapperClick,inputRef:inputRef,inputWrapperRef:inputWrapperRef,isDropDownClosed:isDropDownClosed,isInputFocused:isInputFocused,selected:selected,setIsInputFocused:setIsInputFocused,toggleDropdown:toggleDropdown,triggerRef:triggerRef}=useContext(DropdownContext);const handleKeyDown=useHandleOnKeyDown();const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dropdown_trigger"),globalProps(props),className);const triggerWrapperClasses=buildCss("dropdown_trigger_wrapper",isInputFocused&&"focus",!autocomplete&&"select_only");const customDisplayPlaceholder=selected.label?jsx("b",{children:selected.label},void 0):autocomplete?"":placeholder?placeholder:"Select...";const defaultDisplayPlaceholder=selected.label?selected.label:autocomplete?"":placeholder?placeholder:"Select...";return jsx("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id},{children:!triggerRef&&(children?jsx("div",Object.assign({onClick:()=>toggleDropdown(),onKeyDown:handleKeyDown,ref:inputWrapperRef,style:{display:"inline-block"},tabIndex:0},{children:children}),void 0):jsx(Fragment,{children:jsxs(Flex,Object.assign({align:"center",borderRadius:"lg",className:triggerWrapperClasses,cursor:`${autocomplete?"text":"pointer"}`,htmlOptions:{onClick:()=>handleWrapperClick(),onKeyDown:handleKeyDown,tabIndex:"0",ref:inputWrapperRef},justify:"between",paddingX:"sm",paddingY:"xs"},{children:[jsx(FlexItem,{children:jsxs(Flex,Object.assign({align:"center"},{children:[customDisplay?jsxs(Flex,Object.assign({align:"center"},{children:[customDisplay,jsx(Body$1,Object.assign({dark:dark,paddingLeft:`${selected.label?"xs":"none"}`},{children:customDisplayPlaceholder}),void 0)]}),void 0):jsx(Body$1,{dark:dark,text:defaultDisplayPlaceholder},void 0),autocomplete&&jsx("input",{className:"dropdown_input",onChange:handleChange,onClick:()=>toggleDropdown(),onFocus:()=>setIsInputFocused(true),onKeyDown:handleKeyDown,placeholder:selected.label?"":placeholder?placeholder:"Select...",ref:inputRef,value:filterItem},void 0)]}),void 0)},void 0),jsx(Body$1,Object.assign({dark:dark,display:"flex",htmlOptions:{onClick:e=>{e.stopPropagation();handleWrapperClick()}}},{children:jsx(Icon,{cursor:"pointer",dark:dark,icon:`${isDropDownClosed?"chevron-down":"chevron-up"}`,size:"sm"},void 0)}),`${isDropDownClosed?"chevron-down":"chevron-up"}`)]}),void 0)},void 0))}),void 0)};const separateChildComponents=children=>{let trigger=null;let container=null;const otherChildren=[];React__default.Children.forEach(children,(child=>{if(child&&child.type===DropdownTrigger){trigger=child}else if(child&&child.type===DropdownContainer){container=child}else{otherChildren.push(child)}}));return{trigger:trigger,container:container,otherChildren:otherChildren}};const prepareSubcomponents=({children:children,hasTriggerSubcomponent:hasTriggerSubcomponent,hasContainerSubcomponent:hasContainerSubcomponent,trigger:trigger,container:container,otherChildren:otherChildren,dark:dark})=>{const componentsToRender=[];if(!hasTriggerSubcomponent&&!hasContainerSubcomponent){componentsToRender.push(jsx(DropdownTrigger,{dark:dark},void 0));componentsToRender.push(jsx(DropdownContainer,Object.assign({dark:dark},{children:children}),void 0))}else if(!hasTriggerSubcomponent&&hasContainerSubcomponent){componentsToRender.push(jsx(DropdownTrigger,{dark:dark},void 0));componentsToRender.push(children)}else if(hasTriggerSubcomponent&&!hasContainerSubcomponent){componentsToRender.push(trigger);componentsToRender.push(jsx(DropdownContainer,Object.assign({dark:dark},{children:otherChildren}),void 0))}else{componentsToRender.push(trigger);componentsToRender.push(container)}return componentsToRender};const handleClickOutside=({inputWrapperRef:inputWrapperRef,dropdownContainerRef:dropdownContainerRef,setIsDropDownClosed:setIsDropDownClosed,setFocusedOptionIndex:setFocusedOptionIndex,setIsInputFocused:setIsInputFocused})=>e=>{let targetElement=e.target;let shouldClose=true;while(targetElement&&shouldClose){if(targetElement.getAttribute("data-dropdown")==="pb-dropdown-trigger"){shouldClose=false}targetElement=targetElement.parentElement}if(inputWrapperRef.current&&!inputWrapperRef.current.contains(e.target)&&dropdownContainerRef.current&&!dropdownContainerRef.current.contains(e.target)&&shouldClose){setIsDropDownClosed(true);setFocusedOptionIndex(-1);setIsInputFocused(false)}};const Dropdown=props=>{const{aria:aria={},autocomplete:autocomplete=false,blankSelection:blankSelection="",children:children,className:className,dark:dark=false,data:data={},defaultValue:defaultValue={},error:error,htmlOptions:htmlOptions={},id:id,isClosed:isClosed=true,label:label,onSelect:onSelect,options:options,triggerRef:triggerRef}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dropdown"),globalProps(props),className);const[isDropDownClosed,setIsDropDownClosed,toggleDropdown]=useDropdown(isClosed);const[filterItem,setFilterItem]=useState("");const[selected,setSelected]=useState(defaultValue);const[isInputFocused,setIsInputFocused]=useState(false);const[hasTriggerSubcomponent,setHasTriggerSubcomponent]=useState(true);const[hasContainerSubcomponent,setHasContainerSubcomponent]=useState(true);const[focusedOptionIndex,setFocusedOptionIndex]=useState(-1);const dropdownRef=useRef(null);const inputRef=useRef(null);const inputWrapperRef=useRef(null);const dropdownContainerRef=useRef(null);const{trigger:trigger,container:container,otherChildren:otherChildren}=separateChildComponents(children);useEffect((()=>{if(triggerRef==null?void 0:triggerRef.current){const parentElement=triggerRef.current.parentNode;if(parentElement){parentElement.style.position="relative"}}const handleClick=handleClickOutside({inputWrapperRef:inputWrapperRef,dropdownContainerRef:dropdownContainerRef,setIsDropDownClosed:setIsDropDownClosed,setFocusedOptionIndex:setFocusedOptionIndex,setIsInputFocused:setIsInputFocused});window.addEventListener("click",handleClick);return()=>{window.removeEventListener("click",handleClick)}}),[]);useEffect((()=>{setHasTriggerSubcomponent(!!trigger);setHasContainerSubcomponent(!!container)}),[]);useEffect((()=>{setIsDropDownClosed(isClosed)}),[isClosed]);const blankSelectionOption=blankSelection?[{label:blankSelection,value:""}]:[];const optionsWithBlankSelection=blankSelectionOption.concat(options);const filteredOptions=optionsWithBlankSelection==null?void 0:optionsWithBlankSelection.filter((option=>{const label2=typeof option.label==="string"?option.label.toLowerCase():option.label;return String(label2).toLowerCase().includes(filterItem.toLowerCase())}));useEffect((()=>{if(!isDropDownClosed){let newIndex=0;if(selected&&(selected==null?void 0:selected.label)){const selectedIndex=filteredOptions.findIndex((option=>option.label===selected.label));if(selectedIndex>=0){newIndex=selectedIndex}}setFocusedOptionIndex(newIndex)}}),[isDropDownClosed]);const handleChange=e=>{setFilterItem(e.target.value);setIsDropDownClosed(false)};const handleOptionClick=selectedItem=>{setSelected(selectedItem);setFilterItem("");setIsDropDownClosed(true);onSelect&&onSelect(selectedItem)};const handleWrapperClick=()=>{autocomplete&&inputRef.current.focus();toggleDropdown()};const handleBackspace=()=>{setSelected({});onSelect&&onSelect(null);setFocusedOptionIndex(-1)};const componentsToRender=prepareSubcomponents({children:children,hasTriggerSubcomponent:hasTriggerSubcomponent,hasContainerSubcomponent:hasContainerSubcomponent,trigger:trigger,container:container,otherChildren:otherChildren,dark:dark});return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,style:triggerRef?{position:"absolute"}:{position:"relative"},children:jsxs(DropdownContext.Provider,{value:{autocomplete:autocomplete,dropdownContainerRef:dropdownContainerRef,filteredOptions:filteredOptions,filterItem:filterItem,focusedOptionIndex:focusedOptionIndex,handleBackspace:handleBackspace,handleChange:handleChange,handleOptionClick:handleOptionClick,handleWrapperClick:handleWrapperClick,inputRef:inputRef,inputWrapperRef:inputWrapperRef,isDropDownClosed:isDropDownClosed,isInputFocused:isInputFocused,optionsWithBlankSelection:optionsWithBlankSelection,selected:selected,setFocusedOptionIndex:setFocusedOptionIndex,setIsDropDownClosed:setIsDropDownClosed,setIsInputFocused:setIsInputFocused,setSelected:setSelected,toggleDropdown:toggleDropdown,triggerRef:triggerRef},children:[label&&jsx(Caption,{dark:dark,marginBottom:"xs",text:label}),jsxs("div",{className:`dropdown_wrapper ${error?"error":""}`,onBlur:()=>{setTimeout((()=>{if(!dropdownRef.current.contains(document.activeElement)){setIsInputFocused(false)}}),0)},onFocus:()=>setIsInputFocused(true),ref:dropdownRef,children:[children?jsx(Fragment,{children:componentsToRender.map(((component,index)=>jsx(React__default.Fragment,{children:component},index)))}):jsxs(Fragment,{children:[jsx(DropdownTrigger,{}),jsx(DropdownContainer,{children:optionsWithBlankSelection&&(optionsWithBlankSelection==null?void 0:optionsWithBlankSelection.map((option=>jsx(Dropdown.Option,{option:option},option.id))))})]}),error&&jsx(Body$1,{status:"negative",text:error})]})]})})};Dropdown.Option=DropdownOption;Dropdown.Trigger=DropdownTrigger;Dropdown.Container=DropdownContainer;function __awaiter(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator["throw"](value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,[])).next())}))}function __generator(thisArg,body){var _={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},f,y,t,g;return g={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");while(g&&(g=0,op[0]&&(_=0)),_)try{if(f=1,y&&(t=op[0]&2?y["return"]:op[0]?y["throw"]||((t=y["return"])&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;if(y=0,t)op=[op[0]&2,t.value];switch(op[0]){case 0:case 1:t=op;break;case 4:_.label++;return{value:op[1],done:false};case 5:_.label++;y=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(!(t=_.trys,t=t.length>0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(op[0]===6&&_.label<t[1]){_.label=t[1];t=op;break}if(t&&_.label<t[2]){_.label=t[2];_.ops.push(op);break}if(t[2])_.ops.pop();_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e];y=0}finally{f=t=0}if(op[0]&5)throw op[1];return{value:op[0]?op[1]:void 0,done:true}}}function __read(o,n){var m=typeof Symbol==="function"&&o[Symbol.iterator];if(!m)return o;var i=m.call(o),r,ar=[],e;try{while((n===void 0||n-- >0)&&!(r=i.next()).done)ar.push(r.value)}catch(error){e={error:error}}finally{try{if(r&&!r.done&&(m=i["return"]))m.call(i)}finally{if(e)throw e.error}}return ar}function __spread(){for(var ar=[],i=0;i<arguments.length;i++)ar=ar.concat(__read(arguments[i]));return ar}var COMMON_MIME_TYPES=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function toFileWithPath(file,path){var f=withMimeType(file);if(typeof f.path!=="string"){var webkitRelativePath=file.webkitRelativePath;Object.defineProperty(f,"path",{value:typeof path==="string"?path:typeof webkitRelativePath==="string"&&webkitRelativePath.length>0?webkitRelativePath:file.name,writable:false,configurable:false,enumerable:true})}return f}function withMimeType(file){var name=file.name;var hasExtension=name&&name.lastIndexOf(".")!==-1;if(hasExtension&&!file.type){var ext=name.split(".").pop().toLowerCase();var type=COMMON_MIME_TYPES.get(ext);if(type){Object.defineProperty(file,"type",{value:type,writable:false,configurable:false,enumerable:true})}}return file}var FILES_TO_IGNORE=[".DS_Store","Thumbs.db"];function fromEvent(evt){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,isDragEvt(evt)&&evt.dataTransfer?getDataTransferFiles(evt.dataTransfer,evt.type):getInputFiles(evt)]}))}))}function isDragEvt(value){return!!value.dataTransfer}function getInputFiles(evt){var files=isInput(evt.target)?evt.target.files?fromList(evt.target.files):[]:[];return files.map((function(file){return toFileWithPath(file)}))}function isInput(value){return value!==null}function getDataTransferFiles(dt,type){return __awaiter(this,void 0,void 0,(function(){var items,files;return __generator(this,(function(_a){switch(_a.label){case 0:if(!dt.items)return[3,2];items=fromList(dt.items).filter((function(item){return item.kind==="file"}));if(type!=="drop"){return[2,items]}return[4,Promise.all(items.map(toFilePromises))];case 1:files=_a.sent();return[2,noIgnoredFiles(flatten(files))];case 2:return[2,noIgnoredFiles(fromList(dt.files).map((function(file){return toFileWithPath(file)})))]}}))}))}function noIgnoredFiles(files){return files.filter((function(file){return FILES_TO_IGNORE.indexOf(file.name)===-1}))}function fromList(items){var files=[];for(var i=0;i<items.length;i++){var file=items[i];files.push(file)}return files}function toFilePromises(item){if(typeof item.webkitGetAsEntry!=="function"){return fromDataTransferItem(item)}var entry=item.webkitGetAsEntry();if(entry&&entry.isDirectory){return fromDirEntry(entry)}return fromDataTransferItem(item)}function flatten(items){return items.reduce((function(acc,files){return __spread(acc,Array.isArray(files)?flatten(files):[files])}),[])}function fromDataTransferItem(item){var file=item.getAsFile();if(!file){return Promise.reject(item+" is not a File")}var fwp=toFileWithPath(file);return Promise.resolve(fwp)}function fromEntry(entry){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,entry.isDirectory?fromDirEntry(entry):fromFileEntry(entry)]}))}))}function fromDirEntry(entry){var reader=entry.createReader();return new Promise((function(resolve,reject){var entries=[];function readEntries(){var _this=this;reader.readEntries((function(batch){return __awaiter(_this,void 0,void 0,(function(){var files,err_1,items;return __generator(this,(function(_a){switch(_a.label){case 0:if(!!batch.length)return[3,5];_a.label=1;case 1:_a.trys.push([1,3,,4]);return[4,Promise.all(entries)];case 2:files=_a.sent();resolve(files);return[3,4];case 3:err_1=_a.sent();reject(err_1);return[3,4];case 4:return[3,6];case 5:items=Promise.all(batch.map(fromEntry));entries.push(items);readEntries();_a.label=6;case 6:return[2]}}))}))}),(function(err){reject(err)}))}readEntries()}))}function fromFileEntry(entry){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,new Promise((function(resolve,reject){entry.file((function(file){var fwp=toFileWithPath(file,entry.fullPath);resolve(fwp)}),(function(err){reject(err)}))}))]}))}))}var _default=function(file,acceptedFiles){if(file&&acceptedFiles){var acceptedFilesArray=Array.isArray(acceptedFiles)?acceptedFiles:acceptedFiles.split(",");var fileName=file.name||"";var mimeType=(file.type||"").toLowerCase();var baseMimeType=mimeType.replace(/\/.*$/,"");return acceptedFilesArray.some((function(type){var validType=type.trim().toLowerCase();if(validType.charAt(0)==="."){return fileName.toLowerCase().endsWith(validType)}else if(validType.endsWith("/*")){return baseMimeType===validType.replace(/\/.*$/,"")}return mimeType===validType}))}return true};function fileAccepted(file,accept){return file.type==="application/x-moz-file"||_default(file,accept)}function fileMatchSize(file,minSize,maxSize){if(isDefined(file.size)){if(isDefined(minSize)&&isDefined(maxSize))return file.size>=minSize&&file.size<=maxSize;else if(isDefined(minSize))return file.size>=minSize;else if(isDefined(maxSize))return file.size<=maxSize}return true}function isDefined(value){return value!==void 0&&value!==null}function allFilesAccepted(_ref){var files=_ref.files,accept=_ref.accept,minSize=_ref.minSize,maxSize=_ref.maxSize,multiple=_ref.multiple;if(!multiple&&files.length>1){return false}return files.every((function(file){return fileAccepted(file,accept)&&fileMatchSize(file,minSize,maxSize)}))}function isPropagationStopped(event){if(typeof event.isPropagationStopped==="function"){return event.isPropagationStopped()}else if(typeof event.cancelBubble!=="undefined"){return event.cancelBubble}return false}function isEvtWithFiles(event){if(!event.dataTransfer){return!!event.target&&!!event.target.files}return Array.prototype.some.call(event.dataTransfer.types,(function(type){return type==="Files"||type==="application/x-moz-file"}))}function onDocumentDragOver(event){event.preventDefault()}function isIe(userAgent){return userAgent.indexOf("MSIE")!==-1||userAgent.indexOf("Trident/")!==-1}function isEdge(userAgent){return userAgent.indexOf("Edge/")!==-1}function isIeOrEdge(){var userAgent=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return isIe(userAgent)||isEdge(userAgent)}function composeEventHandlers(){for(var _len=arguments.length,fns=new Array(_len),_key=0;_key<_len;_key++){fns[_key]=arguments[_key]}return function(event){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2]}return fns.some((function(fn){if(!isPropagationStopped(event)&&fn){fn.apply(void 0,[event].concat(args))}return isPropagationStopped(event)}))}}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||Object.prototype.toString.call(iter)==="[object Arguments]")return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++){arr2[i]=arr[i]}return arr2}}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(arr,i){if(!(Symbol.iterator in Object(arr)||Object.prototype.toString.call(arr)==="[object Arguments]")){return}var _arr=[];var _n=true;var _d=false;var _e=void 0;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"]!=null)_i["return"]()}finally{if(_d)throw _e}}return _arr}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function ownKeys$1(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly)symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}));keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};if(i%2){ownKeys$1(source,true).forEach((function(key){_defineProperty$1(target,key,source[key])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(target,Object.getOwnPropertyDescriptors(source))}else{ownKeys$1(source).forEach((function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}))}}return target}function _defineProperty$1(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _objectWithoutProperties$1(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose$1(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key]}}return target}function _objectWithoutPropertiesLoose$1(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key]}return target}var Dropzone=forwardRef((function(_ref,ref){var children=_ref.children,params=_objectWithoutProperties$1(_ref,["children"]);var _useDropzone=useDropzone(params),open=_useDropzone.open,props=_objectWithoutProperties$1(_useDropzone,["open"]);useImperativeHandle(ref,(function(){return{open:open}}),[open]);return React__default.createElement(Fragment$1,null,children(_objectSpread({},props,{open:open})))}));Dropzone.displayName="Dropzone";Dropzone.propTypes={children:PropTypes.func,accept:PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),multiple:PropTypes.bool,preventDropOnDocument:PropTypes.bool,noClick:PropTypes.bool,noKeyboard:PropTypes.bool,noDrag:PropTypes.bool,noDragEventsBubbling:PropTypes.bool,minSize:PropTypes.number,maxSize:PropTypes.number,disabled:PropTypes.bool,getFilesFromEvent:PropTypes.func,onFileDialogCancel:PropTypes.func,onDragEnter:PropTypes.func,onDragLeave:PropTypes.func,onDragOver:PropTypes.func,onDrop:PropTypes.func,onDropAccepted:PropTypes.func,onDropRejected:PropTypes.func};var initialState$1={isFocused:false,isFileDialogActive:false,isDragActive:false,isDragAccept:false,isDragReject:false,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]};function useDropzone(){var _ref2=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},accept=_ref2.accept,_ref2$disabled=_ref2.disabled,disabled=_ref2$disabled===void 0?false:_ref2$disabled,_ref2$getFilesFromEve=_ref2.getFilesFromEvent,getFilesFromEvent=_ref2$getFilesFromEve===void 0?fromEvent:_ref2$getFilesFromEve,_ref2$maxSize=_ref2.maxSize,maxSize=_ref2$maxSize===void 0?Infinity:_ref2$maxSize,_ref2$minSize=_ref2.minSize,minSize=_ref2$minSize===void 0?0:_ref2$minSize,_ref2$multiple=_ref2.multiple,multiple=_ref2$multiple===void 0?true:_ref2$multiple,onDragEnter=_ref2.onDragEnter,onDragLeave=_ref2.onDragLeave,onDragOver=_ref2.onDragOver,onDrop=_ref2.onDrop,onDropAccepted=_ref2.onDropAccepted,onDropRejected=_ref2.onDropRejected,onFileDialogCancel=_ref2.onFileDialogCancel,_ref2$preventDropOnDo=_ref2.preventDropOnDocument,preventDropOnDocument=_ref2$preventDropOnDo===void 0?true:_ref2$preventDropOnDo,_ref2$noClick=_ref2.noClick,noClick=_ref2$noClick===void 0?false:_ref2$noClick,_ref2$noKeyboard=_ref2.noKeyboard,noKeyboard=_ref2$noKeyboard===void 0?false:_ref2$noKeyboard,_ref2$noDrag=_ref2.noDrag,noDrag=_ref2$noDrag===void 0?false:_ref2$noDrag,_ref2$noDragEventsBub=_ref2.noDragEventsBubbling,noDragEventsBubbling=_ref2$noDragEventsBub===void 0?false:_ref2$noDragEventsBub;var rootRef=useRef(null);var inputRef=useRef(null);var _useReducer=useReducer(reducer,initialState$1),_useReducer2=_slicedToArray(_useReducer,2),state=_useReducer2[0],dispatch=_useReducer2[1];var isFocused=state.isFocused,isFileDialogActive=state.isFileDialogActive,draggedFiles=state.draggedFiles;var openFileDialog=useCallback((function(){if(inputRef.current){dispatch({type:"openDialog"});inputRef.current.value=null;inputRef.current.click()}}),[dispatch]);var onWindowFocus=function onWindowFocus2(){if(isFileDialogActive){setTimeout((function(){if(inputRef.current){var files=inputRef.current.files;if(!files.length){dispatch({type:"closeDialog"});if(typeof onFileDialogCancel==="function"){onFileDialogCancel()}}}}),300)}};useEffect((function(){window.addEventListener("focus",onWindowFocus,false);return function(){window.removeEventListener("focus",onWindowFocus,false)}}),[inputRef,isFileDialogActive,onFileDialogCancel]);var onKeyDownCb=useCallback((function(event){if(!rootRef.current||!rootRef.current.isEqualNode(event.target)){return}if(event.keyCode===32||event.keyCode===13){event.preventDefault();openFileDialog()}}),[rootRef,inputRef]);var onFocusCb=useCallback((function(){dispatch({type:"focus"})}),[]);var onBlurCb=useCallback((function(){dispatch({type:"blur"})}),[]);var onClickCb=useCallback((function(){if(noClick){return}if(isIeOrEdge()){setTimeout(openFileDialog,0)}else{openFileDialog()}}),[inputRef,noClick]);var dragTargetsRef=useRef([]);var onDocumentDrop=function onDocumentDrop2(event){if(rootRef.current&&rootRef.current.contains(event.target)){return}event.preventDefault();dragTargetsRef.current=[]};useEffect((function(){if(preventDropOnDocument){document.addEventListener("dragover",onDocumentDragOver,false);document.addEventListener("drop",onDocumentDrop,false)}return function(){if(preventDropOnDocument){document.removeEventListener("dragover",onDocumentDragOver);document.removeEventListener("drop",onDocumentDrop)}}}),[rootRef,preventDropOnDocument]);var onDragEnterCb=useCallback((function(event){event.preventDefault();event.persist();stopPropagation(event);if(dragTargetsRef.current.indexOf(event.target)===-1){dragTargetsRef.current=[].concat(_toConsumableArray(dragTargetsRef.current),[event.target])}if(isEvtWithFiles(event)){Promise.resolve(getFilesFromEvent(event)).then((function(draggedFiles2){if(isPropagationStopped(event)&&!noDragEventsBubbling){return}dispatch({draggedFiles:draggedFiles2,isDragActive:true,type:"setDraggedFiles"});if(onDragEnter){onDragEnter(event)}}))}}),[getFilesFromEvent,onDragEnter,noDragEventsBubbling]);var onDragOverCb=useCallback((function(event){event.preventDefault();event.persist();stopPropagation(event);if(event.dataTransfer){try{event.dataTransfer.dropEffect="copy"}catch(_unused){}}if(isEvtWithFiles(event)&&onDragOver){onDragOver(event)}return false}),[onDragOver,noDragEventsBubbling]);var onDragLeaveCb=useCallback((function(event){event.preventDefault();event.persist();stopPropagation(event);var targets=dragTargetsRef.current.filter((function(target){return target!==event.target&&rootRef.current&&rootRef.current.contains(target)}));dragTargetsRef.current=targets;if(targets.length>0){return}dispatch({isDragActive:false,type:"setDraggedFiles",draggedFiles:[]});if(isEvtWithFiles(event)&&onDragLeave){onDragLeave(event)}}),[rootRef,onDragLeave,noDragEventsBubbling]);var onDropCb=useCallback((function(event){event.preventDefault();event.persist();stopPropagation(event);dragTargetsRef.current=[];if(isEvtWithFiles(event)){Promise.resolve(getFilesFromEvent(event)).then((function(files){if(isPropagationStopped(event)&&!noDragEventsBubbling){return}var acceptedFiles=[];var rejectedFiles=[];files.forEach((function(file){if(fileAccepted(file,accept)&&fileMatchSize(file,minSize,maxSize)){acceptedFiles.push(file)}else{rejectedFiles.push(file)}}));if(!multiple&&acceptedFiles.length>1){rejectedFiles.push.apply(rejectedFiles,_toConsumableArray(acceptedFiles.splice(0)))}dispatch({acceptedFiles:acceptedFiles,rejectedFiles:rejectedFiles,type:"setFiles"});if(onDrop){onDrop(acceptedFiles,rejectedFiles,event)}if(rejectedFiles.length>0&&onDropRejected){onDropRejected(rejectedFiles,event)}if(acceptedFiles.length>0&&onDropAccepted){onDropAccepted(acceptedFiles,event)}}))}dispatch({type:"reset"})}),[multiple,accept,minSize,maxSize,getFilesFromEvent,onDrop,onDropAccepted,onDropRejected,noDragEventsBubbling]);var composeHandler=function composeHandler2(fn){return disabled?null:fn};var composeKeyboardHandler=function composeKeyboardHandler2(fn){return noKeyboard?null:composeHandler(fn)};var composeDragHandler=function composeDragHandler2(fn){return noDrag?null:composeHandler(fn)};var stopPropagation=function stopPropagation2(event){if(noDragEventsBubbling){event.stopPropagation()}};var getRootProps=useMemo((function(){return function(){var _ref3=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_ref3$refKey=_ref3.refKey,refKey=_ref3$refKey===void 0?"ref":_ref3$refKey,onKeyDown=_ref3.onKeyDown,onFocus=_ref3.onFocus,onBlur=_ref3.onBlur,onClick=_ref3.onClick,onDragEnter2=_ref3.onDragEnter,onDragOver2=_ref3.onDragOver,onDragLeave2=_ref3.onDragLeave,onDrop2=_ref3.onDrop,rest=_objectWithoutProperties$1(_ref3,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return _objectSpread(_defineProperty$1({onKeyDown:composeKeyboardHandler(composeEventHandlers(onKeyDown,onKeyDownCb)),onFocus:composeKeyboardHandler(composeEventHandlers(onFocus,onFocusCb)),onBlur:composeKeyboardHandler(composeEventHandlers(onBlur,onBlurCb)),onClick:composeHandler(composeEventHandlers(onClick,onClickCb)),onDragEnter:composeDragHandler(composeEventHandlers(onDragEnter2,onDragEnterCb)),onDragOver:composeDragHandler(composeEventHandlers(onDragOver2,onDragOverCb)),onDragLeave:composeDragHandler(composeEventHandlers(onDragLeave2,onDragLeaveCb)),onDrop:composeDragHandler(composeEventHandlers(onDrop2,onDropCb))},refKey,rootRef),!disabled&&!noKeyboard?{tabIndex:0}:{},{},rest)}}),[rootRef,onKeyDownCb,onFocusCb,onBlurCb,onClickCb,onDragEnterCb,onDragOverCb,onDragLeaveCb,onDropCb,noKeyboard,noDrag,disabled]);var onInputElementClick=useCallback((function(event){event.stopPropagation()}),[]);var getInputProps=useMemo((function(){return function(){var _ref4=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_ref4$refKey=_ref4.refKey,refKey=_ref4$refKey===void 0?"ref":_ref4$refKey,onChange=_ref4.onChange,onClick=_ref4.onClick,rest=_objectWithoutProperties$1(_ref4,["refKey","onChange","onClick"]);var inputProps=_defineProperty$1({accept:accept,multiple:multiple,type:"file",style:{display:"none"},onChange:composeHandler(composeEventHandlers(onChange,onDropCb)),onClick:composeHandler(composeEventHandlers(onClick,onInputElementClick)),autoComplete:"off",tabIndex:-1},refKey,inputRef);return _objectSpread({},inputProps,{},rest)}}),[inputRef,accept,multiple,onDropCb,disabled]);var fileCount=draggedFiles.length;var isDragAccept=fileCount>0&&allFilesAccepted({files:draggedFiles,accept:accept,minSize:minSize,maxSize:maxSize,multiple:multiple});var isDragReject=fileCount>0&&!isDragAccept;return _objectSpread({},state,{isDragAccept:isDragAccept,isDragReject:isDragReject,isFocused:isFocused&&!disabled,getRootProps:getRootProps,getInputProps:getInputProps,rootRef:rootRef,inputRef:inputRef,open:composeHandler(openFileDialog)})}function reducer(state,action){switch(action.type){case"focus":return _objectSpread({},state,{isFocused:true});case"blur":return _objectSpread({},state,{isFocused:false});case"openDialog":return _objectSpread({},state,{isFileDialogActive:true});case"closeDialog":return _objectSpread({},state,{isFileDialogActive:false});case"setDraggedFiles":var isDragActive=action.isDragActive,draggedFiles=action.draggedFiles;return _objectSpread({},state,{draggedFiles:draggedFiles,isDragActive:isDragActive});case"setFiles":return _objectSpread({},state,{acceptedFiles:action.acceptedFiles,rejectedFiles:action.rejectedFiles});case"reset":return _objectSpread({},state,{isFileDialogActive:false,isDragActive:false,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]});default:return state}}const getFormattedFileSize=fileSize=>`${fileSize/1e6} MB`;const FileUpload=props=>{const{accept:accept=null,acceptedFilesDescription:acceptedFilesDescription="",className:className,customMessage:customMessage,data:data={},htmlOptions:htmlOptions={},maxSize:maxSize,onFilesAccepted:onFilesAccepted=noop$3,onFilesRejected:onFilesRejected=noop$3}=props;const onDrop=useCallback((files=>{onFilesAccepted(files)}),[onFilesAccepted]);const{getRootProps:getRootProps,getInputProps:getInputProps,isDragActive:isDragActive,rejectedFiles:rejectedFiles}=useDropzone({accept:accept,maxSize:maxSize,onDrop:onDrop});const prevRejected=useRef(null);const maxFileSizeText=`Max file size is ${getFormattedFileSize(maxSize)}.`;useEffect((()=>{if(rejectedFiles===prevRejected.current)return;const isFileTooLarge=maxSize&&rejectedFiles.length>0&&rejectedFiles[0].size>maxSize;if(isFileTooLarge){onFilesRejected(`File size is too large! ${maxFileSizeText}`,rejectedFiles)}prevRejected.current=rejectedFiles}),[maxFileSizeText,maxSize,onFilesRejected,rejectedFiles]);const acceptedFileTypes=()=>accept.map((fileType=>{if(fileType.startsWith("image/")){return fileType.replace("image/"," ")}else{return fileType}}));const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const getDescription=()=>customMessage?customMessage:`Choose a file or drag it here.${accept===null?"":` The accepted file types are: ${acceptedFilesDescription||acceptedFileTypes()}.`}${maxSize?` ${maxFileSizeText}`:""}`;return jsx("div",{className:classnames(buildCss("pb_file_upload_kit"),globalProps(props),className),...dataProps,...htmlProps,...getRootProps(),children:jsxs(Card,{children:[jsx("input",{...getInputProps()}),jsx(Body$1,{color:"light",children:isDragActive?jsx("p",{children:"Drop the files here ..."}):jsx("p",{children:getDescription()})})]})})};const hiddenFilters=value=>isEmpty(value)&&value!==true;const CurrentFilters=({dark:dark,filters:filters})=>{const displayableFilters=omitBy(filters,hiddenFilters);return jsxs("div",{className:"maskContainer",children:[isEmpty(filters)&&jsx("div",{className:"filters",children:jsx(Body$1,{color:"light",paddingLeft:"xs",size:4,tag:"span",text:"No Filter Selected"})}),!isEmpty(filters)&&jsxs("div",{className:"filters",children:[jsx("div",{className:"left_gradient"}),map(displayableFilters,((value,name)=>jsx("div",{className:"filter",children:value===true?jsx(Title,{dark:dark,size:4,tag:"h4",text:name}):jsxs("div",{children:[jsx(Caption,{dark:dark,text:name}),jsx(Title,{dark:dark,size:4,tag:"h4",text:value})]})},`filter-${name}`))),jsx("div",{className:"right_gradient"})]})]})};const FilterBackground=props=>{const{background:background=true,className:className,children:children,dark:dark}=props;return jsx("div",{className:classnames(`pb_filter_kit ${className}`,globalProps(props)),children:background?jsx(Card,{dark:dark,padding:"none",children:children}):jsx(Fragment,{children:children})})};const FiltersPopover=({children:children,dark:dark,maxHeight:maxHeight,minWidth:minWidth,placement:placement="bottom-start"})=>{const[hide2,updateHide]=useState(true);const toggle=()=>updateHide(!hide2);const filterButton=jsx(CircleIconButton,{dark:dark,icon:"filter",id:"filter",onClick:toggle,variant:"secondary"});return jsx(PbReactPopover,{closeOnClick:"outside",maxHeight:maxHeight,minWidth:minWidth,placement:placement,reference:filterButton,shouldClosePopover:updateHide,show:!hide2,children:jsx("div",{className:"pb-form",children:typeof children==="function"?children({closePopover:()=>updateHide(true)}):children})})};const TitleCount=props=>{const{align:align="left",aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},count:count2,id:id,title:title,size:size="sm"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css=classnames(buildCss("pb_title_count_kit",align,size),globalProps(props),className);const formatCount=count2.toLocaleString();return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:css,id:id,children:[jsx(Title,{className:title!==void 0?"pb_title_count_text":"",dark:dark,size:size==="lg"?3:4,text:title}),jsx(Body$1,{color:"light",dark:dark,children:count2&&formatCount})]})};const resultsText=results=>results==1?"Result":"Results";const ResultsCount=({dark:dark,results:results,title:title})=>{const resultTitle=()=>jsx(TitleCount,{align:"center",count:results,dark:dark,title:`${resultsText(results)}:`});const justResults=()=>jsx(Caption,{className:"filter-results",dark:dark,size:"xs",text:`${results} ${resultsText(results)}`});const displayResultsCount=()=>{if(results&&title){return jsx(Fragment,{children:resultTitle()})}else if(results){return jsx(Fragment,{children:justResults()})}else{return jsx("div",{})}};return jsx(Fragment,{children:displayResultsCount()})};const nextValue=(value,name)=>{const current=find$1(value,{name:name});return{name:name,dir:current&&current.dir=="asc"?"desc":"asc"}};const directionIcon=dir=>dir=="asc"?"sort-amount-up":"sort-amount-down";const renderOptions=(options,value,handleChange)=>map(options,((label,name)=>{const next=nextValue(value,name);return jsx(ListItem,{children:jsx(Button,{htmlType:void 0,onClick:partial(handleChange,next),text:` ${label}`,variant:"link"})},`option-${next.name}-${next.dir}`)}));const SortMenu=({dark:dark,options:options,value:value,onChange:onChange})=>{const[hide2,updateHide]=useState(true);const toggle=()=>updateHide(!hide2);const handleChange=value2=>{updateHide(true);onChange([value2])};const sortButton=jsx(Button,{dark:dark,htmlType:void 0,id:"sort-button",onClick:toggle,paddingRight:"none",variant:"link",children:map(value,(({dir:dir,name:name})=>jsxs("span",{children:[` ${options[name]}`,jsx(Icon,{dark:dark,icon:directionIcon(dir)})]},`current-sort-${name}-${dir}`)))});return jsx(PbReactPopover,{className:"pb_filter_sort_menu",closeOnClick:"outside",padding:"none",placement:"bottom",reference:sortButton,shouldClosePopover:updateHide,show:!hide2,children:jsx(List,{children:renderOptions(options,value,handleChange)})})};const FilterSingle=({onSortChange:onSortChange,sortOptions:sortOptions,sortValue:sortValue,filters:filters,results:results,children:children,dark:dark,maxHeight:maxHeight,minWidth:minWidth,placement:placement,...bgProps})=>jsx(FilterBackground,{dark:dark,...bgProps,children:jsxs(Flex,{orientation:"row",paddingRight:"lg",vertical:"center",children:[children&&jsxs(Fragment,{children:[jsx(FiltersPopover,{dark:dark,maxHeight:maxHeight,minWidth:minWidth,placement:placement,children:children}),jsx(CurrentFilters,{dark:dark,filters:filters})]}),jsx(ResultsCount,{dark:dark,results:results}),!isEmpty(sortOptions)&&jsx(SortMenu,{dark:dark,onChange:onSortChange,options:sortOptions,value:sortValue})]})});const FilterDouble=({onSortChange:onSortChange,sortOptions:sortOptions,sortValue:sortValue,filters:filters,results:results,children:children,dark:dark,maxHeight:maxHeight,minWidth:minWidth,placement:placement,...bgProps})=>jsxs(FilterBackground,{dark:dark,...bgProps,children:[jsxs(Flex,{orientation:"row",vertical:"center",children:[jsx(FiltersPopover,{dark:dark,maxHeight:maxHeight,minWidth:minWidth,placement:placement,children:children}),jsx(CurrentFilters,{dark:dark,filters:filters})]}),jsx(SectionSeparator,{dark:dark}),jsxs(Flex,{className:"filter-bottom",orientation:"row",spacing:"between",vertical:"center",children:[jsx(ResultsCount,{dark:dark,results:results,title:true}),jsxs(Flex,{orientation:"row",vertical:"center",children:[jsx(Caption,{dark:dark,text:"sort by:"}),jsx(SortMenu,{dark:dark,onChange:onSortChange,options:sortOptions,value:sortValue})]})]})]});const Filter=({double:double=false,...templateProps})=>{const displayFilter=()=>{if(double===true){return jsx(FilterDouble,{...templateProps})}else{return jsx(FilterSingle,{...templateProps})}};return jsx(Fragment,{children:displayFilter()})};const iconMap={success:"check",error:"exclamation-triangle",neutral:"info-circle",tip:"info-circle"};const FixedConfirmationToast=props=>{const[showToast,toggleToast]=useState(true);const{autoClose:autoClose=0,children:children,className:className,closeable:closeable=false,horizontal:horizontal,htmlOptions:htmlOptions={},icon:icon,multiLine:multiLine=false,onClose:onClose=()=>void 0,open:open=true,status:status="neutral",text:text2,vertical:vertical}=props;const returnedIcon=icon||iconMap[status];const iconClass=icon?"custom_icon":"";const css=classnames(`pb_fixed_confirmation_toast_kit_${status}`,{_multi_line:multiLine},{[`positioned_toast ${vertical} ${horizontal}`]:vertical&&horizontal},`${iconClass}`,globalProps(props),className);const htmlProps=buildHtmlProps(htmlOptions);const autoCloseToast=()=>{if(autoClose&&open){setTimeout((()=>{toggleToast(false);onClose()}),autoClose)}};useEffect((()=>{toggleToast(open);autoCloseToast()}),[open]);const handleClick=()=>{toggleToast(!closeable);onClose()};return jsx(Fragment,{children:showToast&&jsxs("div",{className:css,onClick:handleClick,...htmlProps,children:[returnedIcon&&jsx(Icon,{className:"pb_icon",fixedWidth:true,icon:returnedIcon}),children&&children||text2&&jsx(Title,{className:"pb_fixed_confirmation_toast_text",flex:"1",size:4,text:text2}),closeable&&jsx(Icon,{className:"pb_icon",cursor:"pointer",fixedWidth:false,icon:"times"})]})})};const FormGroup=props=>{const{aria:aria={},className:className,data:data={},fullWidth:fullWidth=false,htmlOptions:htmlOptions={},id:id,children:children}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_form_group_kit",{full:fullWidth}),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})};var highchartsGantt={exports:{}};(function(module){(function(W,I){module.exports?(I["default"]=I,module.exports=W.document?I(W):I):(W.Highcharts&&W.Highcharts.error(16,true),W.Highcharts=I(W))})("undefined"!==typeof window?window:commonjsGlobal,(function(W){function I(c,g2,y,A){c.hasOwnProperty(g2)||(c[g2]=A.apply(null,y),"function"===typeof CustomEvent&&W.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:g2,module:c[g2]}})))}var g={};I(g,"Core/Globals.js",[],(function(){var c;(function(c2){c2.SVG_NS="http://www.w3.org/2000/svg";c2.product="Highcharts";c2.version="10.3.3";c2.win="undefined"!==typeof W?W:{};c2.doc=c2.win.document;c2.svg=c2.doc&&c2.doc.createElementNS&&!!c2.doc.createElementNS(c2.SVG_NS,"svg").createSVGRect;c2.userAgent=c2.win.navigator&&c2.win.navigator.userAgent||"";c2.isChrome=-1!==c2.userAgent.indexOf("Chrome");c2.isFirefox=-1!==c2.userAgent.indexOf("Firefox");c2.isMS=/(edge|msie|trident)/i.test(c2.userAgent)&&!c2.win.opera;c2.isSafari=!c2.isChrome&&-1!==c2.userAgent.indexOf("Safari");c2.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(c2.userAgent);c2.isWebKit=-1!==c2.userAgent.indexOf("AppleWebKit");c2.deg2rad=2*Math.PI/360;c2.hasBidiBug=c2.isFirefox&&4>parseInt(c2.userAgent.split("Firefox/")[1],10);c2.hasTouch=!!c2.win.TouchEvent;c2.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];c2.noop=function(){};c2.supportsPassiveEvents=function(){var g2=false;if(!c2.isMS){var L=Object.defineProperty({},"passive",{get:function(){g2=true}});c2.win.addEventListener&&c2.win.removeEventListener&&(c2.win.addEventListener("testPassive",c2.noop,L),c2.win.removeEventListener("testPassive",c2.noop,L))}return g2}();c2.charts=[];c2.dateFormats={};c2.seriesTypes={};c2.symbolSizes={};c2.chartCount=0})(c||(c={}));return c}));I(g,"Core/Utilities.js",[g["Core/Globals.js"]],(function(c){function g2(h,b2,d2,l2){var v=b2?"Highcharts error":"Highcharts warning";32===h&&(h=""+v+": Deprecated member");var n2=r(h),J=n2?""+v+" #"+h+": www.highcharts.com/errors/"+h+"/":h.toString();if("undefined"!==typeof l2){var E="";n2&&(J+="?");H(l2,(function(h2,b3){E+="\n - ".concat(b3,": ").concat(h2);n2&&(J+=encodeURI(b3)+"="+encodeURI(h2))}));J+=E}u(c,"displayError",{chart:d2,code:h,message:J,params:l2},(function(){if(b2)throw Error(J);f.console&&-1===g2.messages.indexOf(J)&&console.warn(J)}));g2.messages.push(J)}function y(h,b2){var d2={};H(h,(function(v,f2){if(C(h[f2],true)&&!h.nodeType&&b2[f2])v=y(h[f2],b2[f2]),Object.keys(v).length&&(d2[f2]=v);else if(C(h[f2])||h[f2]!==b2[f2]||f2 in h&&!(f2 in b2))d2[f2]=h[f2]}));return d2}function A(h,b2){return parseInt(h,b2||10)}function B(h){return"string"===typeof h}function z(h){h=Object.prototype.toString.call(h);return"[object Array]"===h||"[object Array Iterator]"===h}function C(h,b2){return!!h&&"object"===typeof h&&(!b2||!z(h))}function x(h){return C(h)&&"number"===typeof h.nodeType}function t(h){var b2=h&&h.constructor;return!(!C(h,true)||x(h)||!b2||!b2.name||"Object"===b2.name)}function r(h){return"number"===typeof h&&!isNaN(h)&&Infinity>h&&-Infinity<h}function a(h){return"undefined"!==typeof h&&null!==h}function q(h,b2,d2){var v=B(b2)&&!a(d2),f2,l2=function(b3,d3){a(b3)?h.setAttribute(d3,b3):v?(f2=h.getAttribute(d3))||"class"!==d3||(f2=h.getAttribute(d3+"Name")):h.removeAttribute(d3)};B(b2)?l2(d2,b2):H(b2,l2);return f2}function m(h,b2){var d2;h||(h={});for(d2 in b2)h[d2]=b2[d2];return h}function p(){for(var h=arguments,b2=h.length,d2=0;d2<b2;d2++){var f2=h[d2];if("undefined"!==typeof f2&&null!==f2)return f2}}function k(h,b2){c.isMS&&!c.svg&&b2&&a(b2.opacity)&&(b2.filter="alpha(opacity=".concat(100*b2.opacity,")"));m(h.style,b2)}function e(h){return Math.pow(10,Math.floor(Math.log(h)/Math.LN10))}function D(h,b2){return 1e14<h?h:parseFloat(h.toPrecision(b2||14))}function G(h,b2,d2){var v=c.getStyle||G;if("width"===b2)return b2=Math.min(h.offsetWidth,h.scrollWidth),d2=h.getBoundingClientRect&&h.getBoundingClientRect().width,d2<b2&&d2>=b2-1&&(b2=Math.floor(d2)),Math.max(0,b2-(v(h,"padding-left",true)||0)-(v(h,"padding-right",true)||0));if("height"===b2)return Math.max(0,Math.min(h.offsetHeight,h.scrollHeight)-(v(h,"padding-top",true)||0)-(v(h,"padding-bottom",true)||0));f.getComputedStyle||g2(27,true);if(h=f.getComputedStyle(h,void 0)){var l2=h.getPropertyValue(b2);p(d2,"opacity"!==b2)&&(l2=A(l2))}return l2}function H(h,b2,d2){for(var v in h)Object.hasOwnProperty.call(h,v)&&b2.call(d2||h[v],h[v],v,h)}function K(h,b2,d2){function v(b3,d3){var v2=h.removeEventListener||c.removeEventListenerPolyfill;v2&&v2.call(h,b3,d3,false)}function f2(d3){var f3;if(h.nodeName){if(b2){var l3={};l3[b2]=true}else l3=d3;H(l3,(function(h2,b3){if(d3[b3])for(f3=d3[b3].length;f3--;)v(b3,d3[b3][f3].fn)}))}}var l2="function"===typeof h&&h.prototype||h;if(Object.hasOwnProperty.call(l2,"hcEvents")){var n2=l2.hcEvents;b2?(l2=n2[b2]||[],d2?(n2[b2]=l2.filter((function(h2){return d2!==h2.fn})),v(b2,d2)):(f2(n2),n2[b2]=[])):(f2(n2),delete l2.hcEvents)}}function u(h,b2,d2,f2){d2=d2||{};if(w.createEvent&&(h.dispatchEvent||h.fireEvent&&h!==c)){var v=w.createEvent("Events");v.initEvent(b2,true,true);d2=m(v,d2);h.dispatchEvent?h.dispatchEvent(d2):h.fireEvent(b2,d2)}else if(h.hcEvents){d2.target||m(d2,{preventDefault:function(){d2.defaultPrevented=true},target:h,type:b2});v=[];for(var l2=h,n2=false;l2.hcEvents;)Object.hasOwnProperty.call(l2,"hcEvents")&&l2.hcEvents[b2]&&(v.length&&(n2=true),v.unshift.apply(v,l2.hcEvents[b2])),l2=Object.getPrototypeOf(l2);n2&&v.sort((function(b3,h2){return b3.order-h2.order}));v.forEach((function(b3){false===b3.fn.call(h,d2)&&d2.preventDefault()}))}f2&&!d2.defaultPrevented&&f2.call(h,d2)}var n=c.charts,w=c.doc,f=c.win;(g2||(g2={})).messages=[];Math.easeInOutSine=function(b2){return-.5*(Math.cos(Math.PI*b2)-1)};var l=Array.prototype.find?function(b2,d2){return b2.find(d2)}:function(b2,d2){var h,v=b2.length;for(h=0;h<v;h++)if(d2(b2[h],h))return b2[h]};H({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(b2,d2){c[d2]=function(h){var v;g2(32,false,void 0,(v={},v["Highcharts.".concat(d2)]="use Array.".concat(b2),v));return Array.prototype[b2].apply(h,[].slice.call(arguments,1))}}));var d,b=function(){var b2=Math.random().toString(36).substring(2,9)+"-",v=0;return function(){return"highcharts-"+(d?"":b2)+v++}}();f.jQuery&&(f.jQuery.fn.highcharts=function(){var b2=[].slice.call(arguments);if(this[0])return b2[0]?(new(c[B(b2[0])?b2.shift():"Chart"])(this[0],b2[0],b2[1]),this):n[q(this[0],"data-highcharts-chart")]});l={addEvent:function(b2,d2,f2,l2){void 0===l2&&(l2={});var h="function"===typeof b2&&b2.prototype||b2;Object.hasOwnProperty.call(h,"hcEvents")||(h.hcEvents={});h=h.hcEvents;c.Point&&b2 instanceof c.Point&&b2.series&&b2.series.chart&&(b2.series.chart.runTrackerClick=true);var v=b2.addEventListener||c.addEventListenerPolyfill;v&&v.call(b2,d2,f2,c.supportsPassiveEvents?{passive:void 0===l2.passive?-1!==d2.indexOf("touch"):l2.passive,capture:false}:false);h[d2]||(h[d2]=[]);h[d2].push({fn:f2,order:"number"===typeof l2.order?l2.order:Infinity});h[d2].sort((function(b3,h2){return b3.order-h2.order}));return function(){K(b2,d2,f2)}},arrayMax:function(b2){for(var h=b2.length,d2=b2[0];h--;)b2[h]>d2&&(d2=b2[h]);return d2},arrayMin:function(b2){for(var h=b2.length,d2=b2[0];h--;)b2[h]<d2&&(d2=b2[h]);return d2},attr:q,clamp:function(b2,d2,f2){return b2>d2?b2<f2?b2:f2:d2},cleanRecursively:y,clearTimeout:function(b2){a(b2)&&clearTimeout(b2)},correctFloat:D,createElement:function(b2,d2,f2,l2,n2){b2=w.createElement(b2);d2&&m(b2,d2);n2&&k(b2,{padding:"0",border:"none",margin:"0"});f2&&k(b2,f2);l2&&l2.appendChild(b2);return b2},css:k,defined:a,destroyObjectProperties:function(b2,d2){H(b2,(function(h,f2){h&&h!==d2&&h.destroy&&h.destroy();delete b2[f2]}))},discardElement:function(b2){b2&&b2.parentElement&&b2.parentElement.removeChild(b2)},erase:function(b2,d2){for(var h=b2.length;h--;)if(b2[h]===d2){b2.splice(h,1);break}},error:g2,extend:m,extendClass:function(b2,d2){var h=function(){};h.prototype=new b2;m(h.prototype,d2);return h},find:l,fireEvent:u,getMagnitude:e,getNestedProperty:function(b2,d2){for(b2=b2.split(".");b2.length&&a(d2);){var h=b2.shift();if("undefined"===typeof h||"__proto__"===h)return;d2=d2[h];if(!a(d2)||"function"===typeof d2||"number"===typeof d2.nodeType||d2===f)return}return d2},getStyle:G,inArray:function(b2,d2,f2){g2(32,false,void 0,{"Highcharts.inArray":"use Array.indexOf"});return d2.indexOf(b2,f2)},isArray:z,isClass:t,isDOMElement:x,isFunction:function(b2){return"function"===typeof b2},isNumber:r,isObject:C,isString:B,keys:function(b2){g2(32,false,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(b2)},merge:function(){var b2,d2=arguments,f2={},l2=function(b3,d3){"object"!==typeof b3&&(b3={});H(d3,(function(h,f3){"__proto__"!==f3&&"constructor"!==f3&&(!C(h,true)||t(h)||x(h)?b3[f3]=d3[f3]:b3[f3]=l2(b3[f3]||{},h))}));return b3};true===d2[0]&&(f2=d2[1],d2=Array.prototype.slice.call(d2,2));var n2=d2.length;for(b2=0;b2<n2;b2++)f2=l2(f2,d2[b2]);return f2},normalizeTickInterval:function(b2,d2,f2,l2,n2){var h=b2;f2=p(f2,e(b2));var v=b2/f2;d2||(d2=n2?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],false===l2&&(1===f2?d2=d2.filter((function(b3){return 0===b3%1})):.1>=f2&&(d2=[1/f2])));for(l2=0;l2<d2.length&&!(h=d2[l2],n2&&h*f2>=b2||!n2&&v<=(d2[l2]+(d2[l2+1]||d2[l2]))/2);l2++);return h=D(h*f2,-Math.round(Math.log(.001)/Math.LN10))},objectEach:H,offset:function(b2){var d2=w.documentElement;b2=b2.parentElement||b2.parentNode?b2.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:b2.top+(f.pageYOffset||d2.scrollTop)-(d2.clientTop||0),left:b2.left+(f.pageXOffset||d2.scrollLeft)-(d2.clientLeft||0),width:b2.width,height:b2.height}},pad:function(b2,d2,f2){return Array((d2||2)+1-String(b2).replace("-","").length).join(f2||"0")+b2},pick:p,pInt:A,relativeLength:function(b2,d2,f2){return/%$/.test(b2)?d2*parseFloat(b2)/100+(f2||0):parseFloat(b2)},removeEvent:K,splat:function(b2){return z(b2)?b2:[b2]},stableSort:function(b2,d2){var h=b2.length,f2,l2;for(l2=0;l2<h;l2++)b2[l2].safeI=l2;b2.sort((function(b3,h2){f2=d2(b3,h2);return 0===f2?b3.safeI-h2.safeI:f2}));for(l2=0;l2<h;l2++)delete b2[l2].safeI},syncTimeout:function(b2,d2,f2){if(0<d2)return setTimeout(b2,d2,f2);b2.call(0,f2);return-1},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:b,useSerialIds:function(b2){return d=p(b2,d)},wrap:function(b2,d2,f2){var h=b2[d2];b2[d2]=function(){var b3=arguments,d3=this;return f2.apply(this,[function(){return h.apply(d3,arguments.length?arguments:b3)}].concat([].slice.call(arguments)))}}};return l}));I(g,"Core/Chart/ChartDefaults.js",[],(function(){return{alignThresholds:false,panning:{enabled:false,type:"x"},styledMode:false,borderRadius:0,colorCount:10,allowMutatingData:true,defaultSeriesType:"line",ignoreHiddenSeries:true,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:false,zooming:{singleTouch:false,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}));I(g,"Core/Color/Color.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2){var L=g2.isNumber,A=g2.merge,B=g2.pInt;g2=function(){function g3(C){this.rgba=[NaN,NaN,NaN,NaN];this.input=C;var x=c.Color;if(x&&x!==g3)return new x(C);if(!(this instanceof g3))return new g3(C);this.init(C)}g3.parse=function(c2){return c2?new g3(c2):g3.None};g3.prototype.init=function(c2){var x;if("object"===typeof c2&&"undefined"!==typeof c2.stops)this.stops=c2.stops.map((function(a2){return new g3(a2[1])}));else if("string"===typeof c2){this.input=c2=g3.names[c2.toLowerCase()]||c2;if("#"===c2.charAt(0)){var t=c2.length;var r=parseInt(c2.substr(1),16);7===t?x=[(r&16711680)>>16,(r&65280)>>8,r&255,1]:4===t&&(x=[(r&3840)>>4|(r&3840)>>8,(r&240)>>4|r&240,(r&15)<<4|r&15,1])}if(!x)for(r=g3.parsers.length;r--&&!x;){var a=g3.parsers[r];(t=a.regex.exec(c2))&&(x=a.parse(t))}}x&&(this.rgba=x)};g3.prototype.get=function(c2){var x=this.input,t=this.rgba;if("object"===typeof x&&"undefined"!==typeof this.stops){var r=A(x);r.stops=[].slice.call(r.stops);this.stops.forEach((function(a,q){r.stops[q]=[r.stops[q][0],a.get(c2)]}));return r}return t&&L(t[0])?"rgb"===c2||!c2&&1===t[3]?"rgb("+t[0]+","+t[1]+","+t[2]+")":"a"===c2?"".concat(t[3]):"rgba("+t.join(",")+")":x};g3.prototype.brighten=function(c2){var x=this.rgba;if(this.stops)this.stops.forEach((function(r){r.brighten(c2)}));else if(L(c2)&&0!==c2)for(var t=0;3>t;t++)x[t]+=B(255*c2),0>x[t]&&(x[t]=0),255<x[t]&&(x[t]=255);return this};g3.prototype.setOpacity=function(c2){this.rgba[3]=c2;return this};g3.prototype.tweenTo=function(c2,x){var t=this.rgba,r=c2.rgba;if(!L(t[0])||!L(r[0]))return c2.input||"none";c2=1!==r[3]||1!==t[3];return(c2?"rgba(":"rgb(")+Math.round(r[0]+(t[0]-r[0])*(1-x))+","+Math.round(r[1]+(t[1]-r[1])*(1-x))+","+Math.round(r[2]+(t[2]-r[2])*(1-x))+(c2?","+(r[3]+(t[3]-r[3])*(1-x)):"")+")"};g3.names={white:"#ffffff",black:"#000000"};g3.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(c2){return[B(c2[1]),B(c2[2]),B(c2[3]),parseFloat(c2[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(c2){return[B(c2[1]),B(c2[2]),B(c2[3]),1]}}];g3.None=new g3("");return g3}();return g2}));I(g,"Core/Color/Palettes.js",[],(function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}));I(g,"Core/Time.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2){var L=c.win,A=g2.defined,B=g2.error,z=g2.extend,C=g2.isObject,x=g2.merge,t=g2.objectEach,r=g2.pad,a=g2.pick,q=g2.splat,m=g2.timeUnits,p=c.isSafari&&L.Intl&&L.Intl.DateTimeFormat.prototype.formatRange,k=c.isSafari&&L.Intl&&!L.Intl.DateTimeFormat.prototype.formatRange;g2=function(){function e(e2){this.options={};this.variableTimezone=this.useUTC=false;this.Date=L.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(e2)}e.prototype.get=function(e2,k2){if(this.variableTimezone||this.timezoneOffset){var D=k2.getTime(),p2=D-this.getTimezoneOffset(k2);k2.setTime(p2);e2=k2["getUTC"+e2]();k2.setTime(D);return e2}return this.useUTC?k2["getUTC"+e2]():k2["get"+e2]()};e.prototype.set=function(e2,k2,a2){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===e2||"Seconds"===e2||"Minutes"===e2&&0===this.getTimezoneOffset(k2)%36e5)return k2["setUTC"+e2](a2);var D=this.getTimezoneOffset(k2);D=k2.getTime()-D;k2.setTime(D);k2["setUTC"+e2](a2);e2=this.getTimezoneOffset(k2);D=k2.getTime()+e2;return k2.setTime(D)}return this.useUTC||p&&"FullYear"===e2?k2["setUTC"+e2](a2):k2["set"+e2](a2)};e.prototype.update=function(e2){void 0===e2&&(e2={});var k2=a(e2.useUTC,true);this.options=e2=x(true,this.options,e2);this.Date=e2.Date||L.Date||Date;this.timezoneOffset=(this.useUTC=k2)&&e2.timezoneOffset||void 0;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=k2&&!(!e2.getTimezoneOffset&&!e2.timezone)};e.prototype.makeTime=function(e2,p2,m2,q2,u,n){if(this.useUTC){var w=this.Date.UTC.apply(0,arguments);var f=this.getTimezoneOffset(w);w+=f;var l=this.getTimezoneOffset(w);f!==l?w+=l-f:f-36e5!==this.getTimezoneOffset(w-36e5)||k||(w-=36e5)}else w=new this.Date(e2,p2,a(m2,1),a(q2,0),a(u,0),a(n,0)).getTime();return w};e.prototype.timezoneOffsetFunction=function(){var e2=this,k2=this.options,p2=k2.getTimezoneOffset,a2=k2.moment||L.moment;if(!this.useUTC)return function(e3){return 6e4*new Date(e3.toString()).getTimezoneOffset()};if(k2.timezone){if(a2)return function(e3){return 6e4*-a2.tz(e3,k2.timezone).utcOffset()};B(25)}return this.useUTC&&p2?function(e3){return 6e4*p2(e3.valueOf())}:function(){return 6e4*(e2.timezoneOffset||0)}};e.prototype.dateFormat=function(e2,k2,p2){if(!A(k2)||isNaN(k2))return c.defaultOptions.lang&&c.defaultOptions.lang.invalidDate||"";e2=a(e2,"%Y-%m-%d %H:%M:%S");var D=this,u=new this.Date(k2),n=this.get("Hours",u),w=this.get("Day",u),f=this.get("Date",u),l=this.get("Month",u),d=this.get("FullYear",u),b=c.defaultOptions.lang,h=b&&b.weekdays,v=b&&b.shortWeekdays;u=z({a:v?v[w]:h[w].substr(0,3),A:h[w],d:r(f),e:r(f,2," "),w:w,b:b.shortMonths[l],B:b.months[l],m:r(l+1),o:l+1,y:d.toString().substr(2,2),Y:d,H:r(n),k:n,I:r(n%12||12),l:n%12||12,M:r(this.get("Minutes",u)),p:12>n?"AM":"PM",P:12>n?"am":"pm",S:r(u.getSeconds()),L:r(Math.floor(k2%1e3),3)},c.dateFormats);t(u,(function(b2,d2){for(;-1!==e2.indexOf("%"+d2);)e2=e2.replace("%"+d2,"function"===typeof b2?b2.call(D,k2):b2)}));return p2?e2.substr(0,1).toUpperCase()+e2.substr(1):e2};e.prototype.resolveDTLFormat=function(e2){return C(e2,true)?e2:(e2=q(e2),{main:e2[0],from:e2[1],to:e2[2]})};e.prototype.getTimeTicks=function(e2,k2,p2,q2){var u=this,n=[],w={},f=new u.Date(k2),l=e2.unitRange,d=e2.count||1,b;q2=a(q2,1);if(A(k2)){u.set("Milliseconds",f,l>=m.second?0:d*Math.floor(u.get("Milliseconds",f)/d));l>=m.second&&u.set("Seconds",f,l>=m.minute?0:d*Math.floor(u.get("Seconds",f)/d));l>=m.minute&&u.set("Minutes",f,l>=m.hour?0:d*Math.floor(u.get("Minutes",f)/d));l>=m.hour&&u.set("Hours",f,l>=m.day?0:d*Math.floor(u.get("Hours",f)/d));l>=m.day&&u.set("Date",f,l>=m.month?1:Math.max(1,d*Math.floor(u.get("Date",f)/d)));if(l>=m.month){u.set("Month",f,l>=m.year?0:d*Math.floor(u.get("Month",f)/d));var h=u.get("FullYear",f)}l>=m.year&&u.set("FullYear",f,h-h%d);l===m.week&&(h=u.get("Day",f),u.set("Date",f,u.get("Date",f)-h+q2+(h<q2?-7:0)));h=u.get("FullYear",f);q2=u.get("Month",f);var v=u.get("Date",f),E=u.get("Hours",f);k2=f.getTime();!u.variableTimezone&&u.useUTC||!A(p2)||(b=p2-k2>4*m.month||u.getTimezoneOffset(k2)!==u.getTimezoneOffset(p2));k2=f.getTime();for(f=1;k2<p2;)n.push(k2),k2=l===m.year?u.makeTime(h+f*d,0):l===m.month?u.makeTime(h,q2+f*d):!b||l!==m.day&&l!==m.week?b&&l===m.hour&&1<d?u.makeTime(h,q2,v,E+f*d):k2+l*d:u.makeTime(h,q2,v+f*d*(l===m.day?1:7)),f++;n.push(k2);l<=m.hour&&1e4>n.length&&n.forEach((function(b2){0===b2%18e5&&"000000000"===u.dateFormat("%H%M%S%L",b2)&&(w[b2]="day")}))}n.info=z(e2,{higherRanks:w,totalRange:l*d});return n};e.prototype.getDateFormat=function(e2,k2,p2,a2){var u=this.dateFormat("%m-%d %H:%M:%S.%L",k2),n={millisecond:15,second:12,minute:9,hour:6,day:3},w="millisecond";for(f in m){if(e2===m.week&&+this.dateFormat("%w",k2)===p2&&"00:00:00.000"===u.substr(6)){var f="week";break}if(m[f]>e2){f=w;break}if(n[f]&&u.substr(n[f])!=="01-01 00:00:00.000".substr(n[f]))break;"week"!==f&&(w=f)}return this.resolveDTLFormat(a2[f]).main};return e}();return g2}));I(g,"Core/Defaults.js",[g["Core/Chart/ChartDefaults.js"],g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Color/Palettes.js"],g["Core/Time.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z){g2=g2.parse;var C=z.merge,x={colors:A.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:true},chart:c,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:true,align:"center",alignColumns:true,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:false,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:true,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:true,animation:y.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:false,snap:y.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:g2("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:true,stickOnContact:false,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:false},credits:{enabled:true,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};x.chart.styledMode=false;var t=new B(C(x.global,x.time));c={defaultOptions:x,defaultTime:t,getOptions:function(){return x},setOptions:function(r){C(true,x,r);if(r.time||r.global)y.time?y.time.update(C(x.global,x.time,r.global,r.time)):y.time=t;return x}};return c}));I(g,"Core/Animation/Fx.js",[g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2,y){var L=c.parse,B=g2.win,z=y.isNumber,C=y.objectEach;return function(){function c2(t,r,a){this.pos=NaN;this.options=r;this.elem=t;this.prop=a}c2.prototype.dSetter=function(){var t=this.paths,r=t&&t[0];t=t&&t[1];var a=this.now||0,q=[];if(1!==a&&r&&t)if(r.length===t.length&&1>a)for(var m=0;m<t.length;m++){for(var p=r[m],k=t[m],e=[],D=0;D<k.length;D++){var G=p[D],c3=k[D];z(G)&&z(c3)&&("A"!==k[0]||4!==D&&5!==D)?e[D]=G+a*(c3-G):e[D]=c3}q.push(e)}else q=t;else q=this.toD||[];this.elem.attr("d",q,void 0,true)};c2.prototype.update=function(){var t=this.elem,r=this.prop,a=this.now,q=this.options.step;if(this[r+"Setter"])this[r+"Setter"]();else t.attr?t.element&&t.attr(r,a,null,true):t.style[r]=a+this.unit;q&&q.call(t,a,this)};c2.prototype.run=function(t,r,a){var q=this,m=q.options,p=function(e2){return p.stopped?false:q.step(e2)},k=B.requestAnimationFrame||function(e2){setTimeout(e2,13)},e=function(){for(var p2=0;p2<c2.timers.length;p2++)c2.timers[p2]()||c2.timers.splice(p2--,1);c2.timers.length&&k(e)};t!==r||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=r,this.unit=a,this.now=this.start,this.pos=0,p.elem=this.elem,p.prop=this.prop,p()&&1===c2.timers.push(p)&&k(e)):(delete m.curAnim[this.prop],m.complete&&0===Object.keys(m.curAnim).length&&m.complete.call(this.elem))};c2.prototype.step=function(t){var r=+new Date,a=this.options,q=this.elem,m=a.complete,p=a.duration,k=a.curAnim;if(q.attr&&!q.element)t=false;else if(t||r>=p+this.startTime){this.now=this.end;this.pos=1;this.update();var e=k[this.prop]=true;C(k,(function(k2){true!==k2&&(e=false)}));e&&m&&m.call(q);t=false}else this.pos=a.easing((r-this.startTime)/p),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=true;return t};c2.prototype.initPath=function(t,r,a){function q(k2,n){for(;k2.length<x;){var w=k2[0],f=n[x-k2.length];f&&"M"===w[0]&&(k2[0]="C"===f[0]?["C",w[1],w[2],w[1],w[2],w[1],w[2]]:["L",w[1],w[2]]);k2.unshift(w);e&&(w=k2.pop(),k2.push(k2[k2.length-1],w))}}function m(k2,n){for(;k2.length<x;)if(n=k2[Math.floor(k2.length/D)-1].slice(),"C"===n[0]&&(n[1]=n[5],n[2]=n[6]),e){var w=k2[Math.floor(k2.length/D)].slice();k2.splice(k2.length/2,0,n,w)}else k2.push(n)}var p=t.startX,k=t.endX;a=a.slice();var e=t.isArea,D=e?2:1;r=r&&r.slice();if(!r)return[a,a];if(p&&k&&k.length){for(t=0;t<p.length;t++)if(p[t]===k[0]){var G=t;break}else if(p[0]===k[k.length-p.length+t]){G=t;var c3=true;break}else if(p[p.length-1]===k[k.length-p.length+t]){G=p.length-t;break}"undefined"===typeof G&&(r=[])}if(r.length&&z(G)){var x=a.length+G*D;c3?(q(r,a),m(a,r)):(q(a,r),m(r,a))}return[r,a]};c2.prototype.fillSetter=function(){c2.prototype.strokeSetter.apply(this,arguments)};c2.prototype.strokeSetter=function(){this.elem.attr(this.prop,L(this.start).tweenTo(L(this.end),this.pos),void 0,true)};c2.timers=[];return c2}()}));I(g,"Core/Animation/AnimationUtilities.js",[g["Core/Animation/Fx.js"],g["Core/Utilities.js"]],(function(c,g2){function L(a2){return t(a2)?r({duration:500,defer:0},a2):{duration:a2?500:0,defer:0}}function A(a2,p){for(var k=c.timers.length;k--;)c.timers[k].elem!==a2||p&&p!==c.timers[k].prop||(c.timers[k].stopped=true)}var B=g2.defined,z=g2.getStyle,C=g2.isArray,x=g2.isNumber,t=g2.isObject,r=g2.merge,a=g2.objectEach,q=g2.pick;return{animate:function(q2,p,k){var e,D="",m,H;if(!t(k)){var g3=arguments;k={duration:g3[2],easing:g3[3],complete:g3[4]}}x(k.duration)||(k.duration=400);k.easing="function"===typeof k.easing?k.easing:Math[k.easing]||Math.easeInOutSine;k.curAnim=r(p);a(p,(function(u,n){A(q2,n);H=new c(q2,k,n);m=void 0;"d"===n&&C(p.d)?(H.paths=H.initPath(q2,q2.pathArray,p.d),H.toD=p.d,e=0,m=1):q2.attr?e=q2.attr(n):(e=parseFloat(z(q2,n))||0,"opacity"!==n&&(D="px"));m||(m=u);"string"===typeof m&&m.match("px")&&(m=m.replace(/px/g,""));H.run(e,m,D)}))},animObject:L,getDeferredAnimation:function(a2,p,k){var e=L(p),q2=0,m=0;(k?[k]:a2.series).forEach((function(k2){k2=L(k2.options.animation);q2=p&&B(p.defer)?e.defer:Math.max(q2,k2.duration+k2.defer);m=Math.min(e.duration,k2.duration)}));a2.renderer.forExport&&(q2=0);return{defer:Math.max(0,q2-m),duration:Math.min(q2,m)}},setAnimation:function(a2,p){p.renderer.globalAnimation=q(a2,p.options.chart.animation,true)},stop:A}}));I(g,"Core/Renderer/HTML/AST.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2){var L=c.SVG_NS,A=g2.attr,B=g2.createElement,z=g2.css,C=g2.error,x=g2.isFunction,t=g2.isString,r=g2.objectEach,a=g2.splat,q=(g2=c.win.trustedTypes)&&x(g2.createPolicy)&&g2.createPolicy("highcharts",{createHTML:function(k){return k}}),m=q?q.createHTML(""):"";try{var p=!!(new DOMParser).parseFromString(m,"text/html")}catch(k){p=false}x=function(){function k(e){this.nodes="string"===typeof e?this.parseMarkup(e):e}k.filterUserAttributes=function(e){r(e,(function(p2,a2){var q2=true;-1===k.allowedAttributes.indexOf(a2)&&(q2=false);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(a2)&&(q2=t(p2)&&k.allowedReferences.some((function(e2){return 0===p2.indexOf(e2)})));q2||(C(33,false,void 0,{"Invalid attribute in config":"".concat(a2)}),delete e[a2]);t(p2)&&e[a2]&&(e[a2]=p2.replace(/</g,"&lt;"))}));return e};k.parseStyle=function(e){return e.split(";").reduce((function(e2,k2){k2=k2.split(":").map((function(e3){return e3.trim()}));var p2=k2.shift();p2&&k2.length&&(e2[p2.replace(/-([a-z])/g,(function(e3){return e3[1].toUpperCase()}))]=k2.join(":"));return e2}),{})};k.setElementHTML=function(e,p2){e.innerHTML=k.emptyHTML;p2&&new k(p2).addToDOM(e)};k.prototype.addToDOM=function(e){function p2(e2,q2){var m2;a(e2).forEach((function(e3){var n=e3.tagName,w=e3.textContent?c.doc.createTextNode(e3.textContent):void 0,f=k.bypassHTMLFiltering;if(n)if("#text"===n)var l=w;else if(-1!==k.allowedTags.indexOf(n)||f){n=c.doc.createElementNS("svg"===n?L:q2.namespaceURI||L,n);var d=e3.attributes||{};r(e3,(function(b,h){"tagName"!==h&&"attributes"!==h&&"children"!==h&&"style"!==h&&"textContent"!==h&&(d[h]=b)}));A(n,f?d:k.filterUserAttributes(d));e3.style&&z(n,e3.style);w&&n.appendChild(w);p2(e3.children||[],n);l=n}else C(33,false,void 0,{"Invalid tagName in config":n});l&&q2.appendChild(l);m2=l}));return m2}return p2(this.nodes,e)};k.prototype.parseMarkup=function(e){var a2=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");if(p)e=(new DOMParser).parseFromString(q?q.createHTML(e):e,"text/html");else{var m2=B("div");m2.innerHTML=e;e={body:m2}}var r2=function(e2,p2){var n=e2.nodeName.toLowerCase(),w={tagName:n};"#text"===n&&(w.textContent=e2.textContent||"");if(n=e2.attributes){var f={};[].forEach.call(n,(function(d){"data-style"===d.name?w.style=k.parseStyle(d.value):f[d.name]=d.value}));w.attributes=f}if(e2.childNodes.length){var l=[];[].forEach.call(e2.childNodes,(function(d){r2(d,l)}));l.length&&(w.children=l)}p2.push(w)};[].forEach.call(e.body.childNodes,(function(e2){return r2(e2,a2)}));return a2};k.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" ");k.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");k.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" ");k.emptyHTML=m;k.bypassHTMLFiltering=false;return k}();return x}));I(g,"Core/FormatUtilities.js",[g["Core/Defaults.js"],g["Core/Utilities.js"]],(function(c,g2){function L(r,a,q,m){r=+r||0;a=+a;var p=A.lang,k=(r.toString().split(".")[1]||"").split("e")[0].length,e=r.toString().split("e"),D=a;if(-1===a)a=Math.min(k,20);else if(!C(a))a=2;else if(a&&e[1]&&0>e[1]){var G=a+ +e[1];0<=G?(e[0]=(+e[0]).toExponential(G).split("e")[0],a=G):(e[0]=e[0].split(".")[0]||0,r=20>a?(e[0]*Math.pow(10,e[1])).toFixed(a):0,e[1]=0)}G=(Math.abs(e[1]?e[0]:r)+Math.pow(10,-Math.max(a,k)-1)).toFixed(a);k=String(t(G));var c2=3<k.length?k.length%3:0;q=x(q,p.decimalPoint);m=x(m,p.thousandsSep);r=(0>r?"-":"")+(c2?k.substr(0,c2)+m:"");r=0>+e[1]&&!D?"0":r+k.substr(c2).replace(/(\d{3})(?=\d)/g,"$1"+m);a&&(r+=q+G.slice(-a));e[1]&&0!==+r&&(r+="e"+e[1]);return r}var A=c.defaultOptions,B=c.defaultTime,z=g2.getNestedProperty,C=g2.isNumber,x=g2.pick,t=g2.pInt;return{dateFormat:function(r,a,q){return B.dateFormat(r,a,q)},format:function(r,a,q){var m="{",p=false,k=/f$/,e=/\.([0-9])/,D=A.lang,G=q&&q.time||B;q=q&&q.numberFormatter||L;for(var t2=[];r;){var c2=r.indexOf(m);if(-1===c2)break;var u=r.slice(0,c2);if(p){u=u.split(":");m=z(u.shift()||"",a);if(u.length&&"number"===typeof m)if(u=u.join(":"),k.test(u)){var n=parseInt((u.match(e)||["","-1"])[1],10);null!==m&&(m=q(m,n,D.decimalPoint,-1<u.indexOf(",")?D.thousandsSep:""))}else m=G.dateFormat(u,m);t2.push(m)}else t2.push(u);r=r.slice(c2+1);m=(p=!p)?"}":"{"}t2.push(r);return t2.join("")},numberFormat:L}}));I(g,"Core/Renderer/RendererUtilities.js",[g["Core/Utilities.js"]],(function(c){var g2=c.clamp,y=c.pick,A=c.stableSort,B;(function(c2){function C(c3,t,r){var a=c3,q=a.reducedLen||t,m=function(e2,k2){return(k2.rank||0)-(e2.rank||0)},p=function(e2,k2){return e2.target-k2.target},k,e=true,D=[],G=0;for(k=c3.length;k--;)G+=c3[k].size;if(G>q){A(c3,m);for(G=k=0;G<=q;)G+=c3[k].size,k++;D=c3.splice(k-1,c3.length)}A(c3,p);for(c3=c3.map((function(e2){return{size:e2.size,targets:[e2.target],align:y(e2.align,.5)}}));e;){for(k=c3.length;k--;)q=c3[k],m=(Math.min.apply(0,q.targets)+Math.max.apply(0,q.targets))/2,q.pos=g2(m-q.size*q.align,0,t-q.size);k=c3.length;for(e=false;k--;)0<k&&c3[k-1].pos+c3[k-1].size>c3[k].pos&&(c3[k-1].size+=c3[k].size,c3[k-1].targets=c3[k-1].targets.concat(c3[k].targets),c3[k-1].align=.5,c3[k-1].pos+c3[k-1].size>t&&(c3[k-1].pos=t-c3[k-1].size),c3.splice(k,1),e=true)}a.push.apply(a,D);k=0;c3.some((function(e2){var p2=0;return(e2.targets||[]).some((function(){a[k].pos=e2.pos+p2;if("undefined"!==typeof r&&Math.abs(a[k].pos-a[k].target)>r)return a.slice(0,k+1).forEach((function(e3){return delete e3.pos})),a.reducedLen=(a.reducedLen||t)-.1*t,a.reducedLen>.1*t&&C(a,t,r),true;p2+=a[k].size;k++;return false}))}));A(a,p);return a}c2.distribute=C})(B||(B={}));return B}));I(g,"Core/Renderer/SVG/SVGElement.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){var L=c.animate,z=c.animObject,C=c.stop,x=y.deg2rad,t=y.doc,r=y.svg,a=y.SVG_NS,q=y.win,m=A.addEvent,p=A.attr,k=A.createElement,e=A.css,D=A.defined,G=A.erase,H=A.extend,K=A.fireEvent,u=A.isArray,n=A.isFunction,w=A.isString,f=A.merge,l=A.objectEach,d=A.pick,b=A.pInt,h=A.syncTimeout,v=A.uniqueKey;c=function(){function E(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=a;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}E.prototype._defaultGetter=function(b2){b2=d(this[b2+"Value"],this[b2],this.element?this.element.getAttribute(b2):null,0);/^[\-0-9\.]+$/.test(b2)&&(b2=parseFloat(b2));return b2};E.prototype._defaultSetter=function(b2,d2,h2){h2.setAttribute(d2,b2)};E.prototype.add=function(b2){var d2=this.renderer,h2=this.element;b2&&(this.parentGroup=b2);"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&d2.buildText(this);this.added=true;if(!b2||b2.handleZ||this.zIndex)var f2=this.zIndexSetter();f2||(b2?b2.element:d2.box).appendChild(h2);if(this.onAdd)this.onAdd();return this};E.prototype.addClass=function(b2,d2){var h2=d2?"":this.attr("class")||"";b2=(b2||"").split(/ /g).reduce((function(b3,d3){-1===h2.indexOf(d3)&&b3.push(d3);return b3}),h2?[h2]:[]).join(" ");b2!==h2&&this.attr("class",b2);return this};E.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=false)};E.prototype.align=function(b2,h2,f2){var l2={},v2=this.renderer,F=v2.alignedObjects,n2,e2,J;if(b2){if(this.alignOptions=b2,this.alignByTranslate=h2,!f2||w(f2))this.alignTo=n2=f2||"renderer",G(F,this),F.push(this),f2=void 0}else b2=this.alignOptions,h2=this.alignByTranslate,n2=this.alignTo;f2=d(f2,v2[n2],"scrollablePlotBox"===n2?v2.plotBox:void 0,v2);n2=b2.align;var k2=b2.verticalAlign;v2=(f2.x||0)+(b2.x||0);F=(f2.y||0)+(b2.y||0);"right"===n2?e2=1:"center"===n2&&(e2=2);e2&&(v2+=(f2.width-(b2.width||0))/e2);l2[h2?"translateX":"x"]=Math.round(v2);"bottom"===k2?J=1:"middle"===k2&&(J=2);J&&(F+=(f2.height-(b2.height||0))/J);l2[h2?"translateY":"y"]=Math.round(F);this[this.placed?"animate":"attr"](l2);this.placed=true;this.alignAttr=l2;return this};E.prototype.alignSetter=function(b2){var d2={left:"start",center:"middle",right:"end"};d2[b2]&&(this.alignValue=b2,this.element.setAttribute("text-anchor",d2[b2]))};E.prototype.animate=function(b2,f2,v2){var n2=this,e2=z(d(f2,this.renderer.globalAnimation,true));f2=e2.defer;d(t.hidden,t.msHidden,t.webkitHidden,false)&&(e2.duration=0);0!==e2.duration?(v2&&(e2.complete=v2),h((function(){n2.element&&L(n2,b2,e2)}),f2)):(this.attr(b2,void 0,v2||e2.complete),l(b2,(function(b3,d2){e2.step&&e2.step.call(this,b3,{prop:d2,pos:1,elem:this})}),this));return this};E.prototype.applyTextOutline=function(b2){var d2=this.element;-1!==b2.indexOf("contrast")&&(b2=b2.replace(/contrast/g,this.renderer.getContrast(d2.style.fill)));var h2=b2.split(" ");b2=h2[h2.length-1];if((h2=h2[0])&&"none"!==h2&&y.svg){this.fakeTS=true;h2=h2.replace(/(^[\d\.]+)(.*?)$/g,(function(b3,d3,h3){return 2*Number(d3)+h3}));this.removeTextOutline();var f2=t.createElementNS(a,"tspan");p(f2,{class:"highcharts-text-outline",fill:b2,stroke:b2,"stroke-width":h2,"stroke-linejoin":"round"});b2=d2.querySelector("textPath")||d2;[].forEach.call(b2.childNodes,(function(b3){var d3=b3.cloneNode(true);d3.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(b4){return d3.removeAttribute(b4)}));f2.appendChild(d3)}));var l2=0;[].forEach.call(b2.querySelectorAll("text tspan"),(function(b3){l2+=Number(b3.getAttribute("dy"))}));h2=t.createElementNS(a,"tspan");h2.textContent="​";p(h2,{x:Number(d2.getAttribute("x")),dy:-l2});f2.appendChild(h2);b2.insertBefore(f2,b2.firstChild)}};E.prototype.attr=function(b2,d2,h2,f2){var v2=this.element,F=this.symbolCustomAttribs,n2,e2=this,w2,J;if("string"===typeof b2&&"undefined"!==typeof d2){var k2=b2;b2={};b2[k2]=d2}"string"===typeof b2?e2=(this[b2+"Getter"]||this._defaultGetter).call(this,b2,v2):(l(b2,(function(d3,h3){w2=false;f2||C(this,h3);this.symbolName&&-1!==F.indexOf(h3)&&(n2||(this.symbolAttr(b2),n2=true),w2=true);!this.rotation||"x"!==h3&&"y"!==h3||(this.doTransform=true);w2||(J=this[h3+"Setter"]||this._defaultSetter,J.call(this,d3,h3,v2),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(h3)&&this.updateShadows(h3,d3,J))}),this),this.afterSetters());h2&&h2.call(this);return e2};E.prototype.clip=function(b2){return this.attr("clip-path",b2?"url("+this.renderer.url+"#"+b2.id+")":"none")};E.prototype.crisp=function(b2,d2){d2=d2||b2.strokeWidth||0;var h2=Math.round(d2)%2/2;b2.x=Math.floor(b2.x||this.x||0)+h2;b2.y=Math.floor(b2.y||this.y||0)+h2;b2.width=Math.floor((b2.width||this.width||0)-2*h2);b2.height=Math.floor((b2.height||this.height||0)-2*h2);D(b2.strokeWidth)&&(b2.strokeWidth=d2);return b2};E.prototype.complexColor=function(b2,d2,h2){var n2=this.renderer,e2,F,Q,w2,k2,J,E2,p2,a2,q2,m2=[],M;K(this.renderer,"complexColor",{args:arguments},(function(){b2.radialGradient?F="radialGradient":b2.linearGradient&&(F="linearGradient");if(F){Q=b2[F];k2=n2.gradients;J=b2.stops;a2=h2.radialReference;u(Q)&&(b2[F]=Q={x1:Q[0],y1:Q[1],x2:Q[2],y2:Q[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===F&&a2&&!D(Q.gradientUnits)&&(w2=Q,Q=f(Q,n2.getRadialAttr(a2,w2),{gradientUnits:"userSpaceOnUse"}));l(Q,(function(b3,d3){"id"!==d3&&m2.push(d3,b3)}));l(J,(function(b3){m2.push(b3)}));m2=m2.join(",");if(k2[m2])q2=k2[m2].attr("id");else{Q.id=q2=v();var N=k2[m2]=n2.createElement(F).attr(Q).add(n2.defs);N.radAttr=w2;N.stops=[];J.forEach((function(b3){0===b3[1].indexOf("rgba")?(e2=g2.parse(b3[1]),E2=e2.get("rgb"),p2=e2.get("a")):(E2=b3[1],p2=1);b3=n2.createElement("stop").attr({offset:b3[0],"stop-color":E2,"stop-opacity":p2}).add(N);N.stops.push(b3)}))}M="url("+n2.url+"#"+q2+")";h2.setAttribute(d2,M);h2.gradient=m2;b2.toString=function(){return M}}}))};E.prototype.css=function(d2){var h2=this.styles,n2={},v2=this.element,w2=!h2;d2.color&&(d2.fill=d2.color);h2&&l(d2,(function(b2,d3){h2&&h2[d3]!==b2&&(n2[d3]=b2,w2=true)}));if(w2){h2&&(d2=H(h2,n2));if(null===d2.width||"auto"===d2.width)delete this.textWidth;else if("text"===v2.nodeName.toLowerCase()&&d2.width)var F=this.textWidth=b(d2.width);this.styles=d2;F&&!r&&this.renderer.forExport&&delete d2.width;var Q=f(d2);v2.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach((function(b2){return Q&&delete Q[b2]}));e(v2,Q);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),d2.textOutline&&this.applyTextOutline(d2.textOutline))}return this};E.prototype.dashstyleSetter=function(h2){var f2=this["stroke-width"];"inherit"===f2&&(f2=1);if(h2=h2&&h2.toLowerCase()){var l2=h2.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(h2=l2.length;h2--;)l2[h2]=""+b(l2[h2])*d(f2,NaN);h2=l2.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",h2)}};E.prototype.destroy=function(){var b2=this,d2=b2.element||{},h2=b2.renderer,f2=d2.ownerSVGElement,n2=h2.isSVG&&"SPAN"===d2.nodeName&&b2.parentGroup||void 0;d2.onclick=d2.onmouseout=d2.onmouseover=d2.onmousemove=d2.point=null;C(b2);if(b2.clipPath&&f2){var F=b2.clipPath;[].forEach.call(f2.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(b3){-1<b3.getAttribute("clip-path").indexOf(F.element.id)&&b3.removeAttribute("clip-path")}));b2.clipPath=F.destroy()}if(b2.stops){for(f2=0;f2<b2.stops.length;f2++)b2.stops[f2].destroy();b2.stops.length=0;b2.stops=void 0}b2.safeRemoveChild(d2);for(h2.styledMode||b2.destroyShadows();n2&&n2.div&&0===n2.div.childNodes.length;)d2=n2.parentGroup,b2.safeRemoveChild(n2.div),delete n2.div,n2=d2;b2.alignTo&&G(h2.alignedObjects,b2);l(b2,(function(d3,h3){b2[h3]&&b2[h3].parentGroup===b2&&b2[h3].destroy&&b2[h3].destroy();delete b2[h3]}))};E.prototype.destroyShadows=function(){(this.shadows||[]).forEach((function(b2){this.safeRemoveChild(b2)}),this);this.shadows=void 0};E.prototype.dSetter=function(b2,d2,h2){u(b2)&&("string"===typeof b2[0]&&(b2=this.renderer.pathToSegments(b2)),this.pathArray=b2,b2=b2.reduce((function(b3,d3,h3){return d3&&d3.join?(h3?b3+" ":"")+d3.join(" "):(d3||"").toString()}),""));/(NaN| {2}|^$)/.test(b2)&&(b2="M 0 0");this[d2]!==b2&&(h2.setAttribute(d2,b2),this[d2]=b2)};E.prototype.fadeOut=function(b2){var h2=this;h2.animate({opacity:0},{duration:d(b2,150),complete:function(){h2.hide()}})};E.prototype.fillSetter=function(b2,d2,h2){"string"===typeof b2?h2.setAttribute(d2,b2):b2&&this.complexColor(b2,d2,h2)};E.prototype.getBBox=function(b2,h2){var f2=this.alignValue,l2=this.element,v2=this.renderer,F=this.styles,w2=this.textStr,k2=v2.cache,p2=v2.cacheKeys,a2=l2.namespaceURI===this.SVG_NS;h2=d(h2,this.rotation,0);var N=v2.styledMode?l2&&E.prototype.getStyle.call(l2,"font-size"):F&&F.fontSize,J;if(D(w2)){var q2=w2.toString();-1===q2.indexOf("<")&&(q2=q2.replace(/[0-9]/g,"0"));q2+=["",h2,N,this.textWidth,f2,F&&F.textOverflow,F&&F.fontWeight].join()}q2&&!b2&&(J=k2[q2]);if(!J){if(a2||v2.forExport){try{var u2=this.fakeTS&&function(b3){var d2=l2.querySelector(".highcharts-text-outline");d2&&e(d2,{display:b3})};n(u2)&&u2("none");J=l2.getBBox?H({},l2.getBBox()):{width:l2.offsetWidth,height:l2.offsetHeight,x:0,y:0};n(u2)&&u2("")}catch(U){}if(!J||0>J.width)J={x:0,y:0,width:0,height:0}}else J=this.htmlGetBBox();if(v2.isSVG&&(v2=J.width,b2=J.height,a2&&(J.height=b2={"11px,17":14,"13px,20":16}[""+(N||"")+",".concat(Math.round(b2))]||b2),h2)){a2=Number(l2.getAttribute("y")||0)-J.y;f2={right:1,center:.5}[f2||0]||0;F=h2*x;N=(h2-90)*x;var m2=v2*Math.cos(F);h2=v2*Math.sin(F);u2=Math.cos(N);F=Math.sin(N);v2=J.x+f2*(v2-m2)+a2*u2;N=v2+m2;u2=N-b2*u2;m2=u2-m2;a2=J.y+a2-f2*h2+a2*F;f2=a2+h2;b2=f2-b2*F;h2=b2-h2;J.x=Math.min(v2,N,u2,m2);J.y=Math.min(a2,f2,b2,h2);J.width=Math.max(v2,N,u2,m2)-J.x;J.height=Math.max(a2,f2,b2,h2)-J.y}if(q2&&(""===w2||0<J.height)){for(;250<p2.length;)delete k2[p2.shift()];k2[q2]||p2.push(q2);k2[q2]=J}}return J};E.prototype.getStyle=function(b2){return q.getComputedStyle(this.element||this,"").getPropertyValue(b2)};E.prototype.hasClass=function(b2){return-1!==(""+this.attr("class")).split(" ").indexOf(b2)};E.prototype.hide=function(){return this.attr({visibility:"hidden"})};E.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};E.prototype.init=function(b2,d2){this.element="span"===d2?k(d2):t.createElementNS(this.SVG_NS,d2);this.renderer=b2;K(this,"afterInit")};E.prototype.on=function(b2,d2){var h2=this.onEvents;if(h2[b2])h2[b2]();h2[b2]=m(this.element,b2,d2);return this};E.prototype.opacitySetter=function(b2,d2,h2){this.opacity=b2=Number(Number(b2).toFixed(3));h2.setAttribute(d2,b2)};E.prototype.removeClass=function(b2){return this.attr("class",(""+this.attr("class")).replace(w(b2)?new RegExp("(^| )".concat(b2,"( |$)")):b2," ").replace(/ +/g," ").trim())};E.prototype.removeTextOutline=function(){var b2=this.element.querySelector("tspan.highcharts-text-outline");b2&&this.safeRemoveChild(b2)};E.prototype.safeRemoveChild=function(b2){var d2=b2.parentNode;d2&&d2.removeChild(b2)};E.prototype.setRadialReference=function(b2){var d2=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=b2;d2&&d2.radAttr&&d2.animate(this.renderer.getRadialAttr(b2,d2.radAttr));return this};E.prototype.setTextPath=function(b2,d2){var h2=this;d2=f(true,{enabled:true,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},d2);var l2=this.renderer.url,n2=this.text||this,F=n2.textPath,e2=d2.attributes,w2=d2.enabled;b2=b2||F&&F.path;F&&F.undo();b2&&w2?(d2=m(n2,"afterModifyTree",(function(d3){if(b2&&w2){var f2=b2.attr("id");f2||b2.attr("id",f2=v());var F2={x:0,y:0};D(e2.dx)&&(F2.dx=e2.dx,delete e2.dx);D(e2.dy)&&(F2.dy=e2.dy,delete e2.dy);n2.attr(F2);h2.attr({transform:""});h2.box&&(h2.box=h2.box.destroy());F2=d3.nodes.slice(0);d3.nodes.length=0;d3.nodes[0]={tagName:"textPath",attributes:H(e2,{"text-anchor":e2.textAnchor,href:""+l2+"#".concat(f2)}),children:F2}}})),n2.textPath={path:b2,undo:d2}):(n2.attr({dx:0,dy:0}),delete n2.textPath);this.added&&(n2.textCache="",this.renderer.buildText(n2));return this};E.prototype.shadow=function(b2,d2,h2){var f2=[],n2=this.element,F=this.oldShadowOptions,v2=this.parentGroup,e2=v2&&90===v2.rotation;v2={color:"#000000",offsetX:e2?-1:1,offsetY:e2?-1:1,opacity:.15,width:3};var w2=false,k2;true===b2?k2=v2:"object"===typeof b2&&(k2=H(v2,b2));k2&&(k2&&F&&l(k2,(function(b3,d3){b3!==F[d3]&&(w2=true)})),w2&&this.destroyShadows(),this.oldShadowOptions=k2);if(!k2)this.destroyShadows();else if(!this.shadows){v2=k2.opacity/k2.width;var E2=e2?"translate(".concat(k2.offsetY,", ").concat(k2.offsetX,")"):"translate(".concat(k2.offsetX,", ").concat(k2.offsetY,")");for(e2=1;e2<=k2.width;e2++){var a2=n2.cloneNode(false);var q2=2*k2.width+1-2*e2;p(a2,{stroke:b2.color||"#000000","stroke-opacity":v2*e2,"stroke-width":q2,transform:E2,fill:"none"});a2.setAttribute("class",(a2.getAttribute("class")||"")+" highcharts-shadow");h2&&(p(a2,"height",Math.max(p(a2,"height")-q2,0)),a2.cutHeight=q2);d2?d2.element.appendChild(a2):n2.parentNode&&n2.parentNode.insertBefore(a2,n2);f2.push(a2)}this.shadows=f2}return this};E.prototype.show=function(b2){void 0===b2&&(b2=true);return this.attr({visibility:b2?"inherit":"visible"})};E.prototype["stroke-widthSetter"]=function(b2,d2,h2){this[d2]=b2;h2.setAttribute(d2,b2)};E.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var d2=this.getStyle("stroke-width"),h2=0;if(d2.indexOf("px")===d2.length-2)h2=b(d2);else if(""!==d2){var f2=t.createElementNS(a,"rect");p(f2,{width:d2,"stroke-width":0});this.element.parentNode.appendChild(f2);h2=f2.getBBox().width;f2.parentNode.removeChild(f2)}return h2};E.prototype.symbolAttr=function(b2){var h2=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach((function(f2){h2[f2]=d(b2[f2],h2[f2])}));h2.attr({d:h2.renderer.symbols[h2.symbolName](h2.x,h2.y,h2.width,h2.height,h2)})};E.prototype.textSetter=function(b2){b2!==this.textStr&&(delete this.textPxLength,this.textStr=b2,this.added&&this.renderer.buildText(this))};E.prototype.titleSetter=function(b2){var h2=this.element,f2=h2.getElementsByTagName("title")[0]||t.createElementNS(this.SVG_NS,"title");h2.insertBefore?h2.insertBefore(f2,h2.firstChild):h2.appendChild(f2);f2.textContent=String(d(b2,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")};E.prototype.toFront=function(){var b2=this.element;b2.parentNode.appendChild(b2);return this};E.prototype.translate=function(b2,d2){return this.attr({translateX:b2,translateY:d2})};E.prototype.updateShadows=function(b2,d2,h2){var f2=this.shadows;if(f2)for(var l2=f2.length;l2--;)h2.call(f2[l2],"height"===b2?Math.max(d2-(f2[l2].cutHeight||0),0):"d"===b2?this.d:d2,b2,f2[l2])};E.prototype.updateTransform=function(){var b2=this.element,h2=this.matrix,f2=this.rotation;f2=void 0===f2?0:f2;var l2=this.scaleX,n2=this.scaleY,v2=this.translateX,e2=this.translateY;v2=["translate("+(void 0===v2?0:v2)+","+(void 0===e2?0:e2)+")"];D(h2)&&v2.push("matrix("+h2.join(",")+")");f2&&v2.push("rotate("+f2+" "+d(this.rotationOriginX,b2.getAttribute("x"),0)+" "+d(this.rotationOriginY,b2.getAttribute("y")||0)+")");(D(l2)||D(n2))&&v2.push("scale("+d(l2,1)+" "+d(n2,1)+")");v2.length&&!(this.text||this).textPath&&b2.setAttribute("transform",v2.join(" "))};E.prototype.visibilitySetter=function(b2,d2,h2){"inherit"===b2?h2.removeAttribute(d2):this[d2]!==b2&&h2.setAttribute(d2,b2);this[d2]=b2};E.prototype.xGetter=function(b2){"circle"===this.element.nodeName&&("x"===b2?b2="cx":"y"===b2&&(b2="cy"));return this._defaultGetter(b2)};E.prototype.zIndexSetter=function(d2,h2){var f2=this.renderer,l2=this.parentGroup,v2=(l2||f2).element||f2.box,n2=this.element;f2=v2===f2.box;var e2=false;var w2=this.added;var k2;D(d2)?(n2.setAttribute("data-z-index",d2),d2=+d2,this[h2]===d2&&(w2=false)):D(this[h2])&&n2.removeAttribute("data-z-index");this[h2]=d2;if(w2){(d2=this.zIndex)&&l2&&(l2.handleZ=true);h2=v2.childNodes;for(k2=h2.length-1;0<=k2&&!e2;k2--){l2=h2[k2];w2=l2.getAttribute("data-z-index");var E2=!D(w2);if(l2!==n2){if(0>d2&&E2&&!f2&&!k2)v2.insertBefore(n2,h2[k2]),e2=true;else if(b(w2)<=d2||E2&&(!D(d2)||0<=d2))v2.insertBefore(n2,h2[k2+1]||null),e2=true}}e2||(v2.insertBefore(n2,h2[f2?3:0]||null),e2=true)}return e2};return E}();c.prototype.strokeSetter=c.prototype.fillSetter;c.prototype.yGetter=c.prototype.xGetter;c.prototype.matrixSetter=c.prototype.rotationOriginXSetter=c.prototype.rotationOriginYSetter=c.prototype.rotationSetter=c.prototype.scaleXSetter=c.prototype.scaleYSetter=c.prototype.translateXSetter=c.prototype.translateYSetter=c.prototype.verticalAlignSetter=function(b2,d2){this[d2]=b2;this.doTransform=true};return c}));I(g,"Core/Renderer/RendererRegistry.js",[g["Core/Globals.js"]],(function(c){var g2;(function(g3){g3.rendererTypes={};var L;g3.getRendererType=function(c2){void 0===c2&&(c2=L);return g3.rendererTypes[c2]||g3.rendererTypes[L]};g3.registerRendererType=function(y,z,C){g3.rendererTypes[y]=z;if(!L||C)L=y,c.Renderer=z}})(g2||(g2={}));return g2}));I(g,"Core/Renderer/SVG/SVGLabel.js",[g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],(function(c,g2){var L=this&&this.__extends||function(){var c2=function(a,q){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,p){a2.__proto__=p}||function(a2,p){for(var k in p)p.hasOwnProperty(k)&&(a2[k]=p[k])};return c2(a,q)};return function(a,q){function m(){this.constructor=a}c2(a,q);a.prototype=null===q?Object.create(q):(m.prototype=q.prototype,new m)}}(),A=g2.defined,B=g2.extend,z=g2.isNumber,C=g2.merge,x=g2.pick,t=g2.removeEvent;return function(r){function a(q,m,p,k,e,D,c2,t2,g3,u){var n=r.call(this)||this;n.paddingLeftSetter=n.paddingSetter;n.paddingRightSetter=n.paddingSetter;n.init(q,"g");n.textStr=m;n.x=p;n.y=k;n.anchorX=D;n.anchorY=c2;n.baseline=g3;n.className=u;n.addClass("button"===u?"highcharts-no-tooltip":"highcharts-label");u&&n.addClass("highcharts-"+u);n.text=q.text(void 0,0,0,t2).attr({zIndex:1});var w;"string"===typeof e&&((w=/^url\((.*?)\)$/.test(e))||n.renderer.symbols[e])&&(n.symbolKey=e);n.bBox=a.emptyBBox;n.padding=3;n.baselineOffset=0;n.needsBox=q.styledMode||w;n.deferredAttr={};n.alignFactor=0;return n}L(a,r);a.prototype.alignSetter=function(a2){a2={left:0,center:.5,right:1}[a2];a2!==this.alignFactor&&(this.alignFactor=a2,this.bBox&&z(this.xSetting)&&this.attr({x:this.xSetting}))};a.prototype.anchorXSetter=function(a2,m){this.anchorX=a2;this.boxAttr(m,Math.round(a2)-this.getCrispAdjust()-this.xSetting)};a.prototype.anchorYSetter=function(a2,m){this.anchorY=a2;this.boxAttr(m,a2-this.ySetting)};a.prototype.boxAttr=function(a2,m){this.box?this.box.attr(a2,m):this.deferredAttr[a2]=m};a.prototype.css=function(q){if(q){var m={};q=C(q);a.textProps.forEach((function(a2){"undefined"!==typeof q[a2]&&(m[a2]=q[a2],delete q[a2])}));this.text.css(m);"fontSize"in m||"fontWeight"in m?this.updateTextPadding():("width"in m||"textOverflow"in m)&&this.updateBoxSize()}return c.prototype.css.call(this,q)};a.prototype.destroy=function(){t(this.element,"mouseenter");t(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());c.prototype.destroy.call(this)};a.prototype.fillSetter=function(a2,m){a2&&(this.needsBox=true);this.fill=a2;this.boxAttr(m,a2)};a.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var a2=this.padding,m=x(this.paddingLeft,a2);return{width:this.width,height:this.height,x:this.bBox.x-m,y:this.bBox.y-a2}};a.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};a.prototype.heightSetter=function(a2){this.heightSetting=a2};a.prototype.onAdd=function(){this.text.add(this);this.attr({text:x(this.textStr,""),x:this.x||0,y:this.y||0});this.box&&A(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};a.prototype.paddingSetter=function(a2,m){z(a2)?a2!==this[m]&&(this[m]=a2,this.updateTextPadding()):this[m]=void 0};a.prototype.rSetter=function(a2,m){this.boxAttr(m,a2)};a.prototype.shadow=function(a2){a2&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(a2));return this};a.prototype.strokeSetter=function(a2,m){this.stroke=a2;this.boxAttr(m,a2)};a.prototype["stroke-widthSetter"]=function(a2,m){a2&&(this.needsBox=true);this["stroke-width"]=a2;this.boxAttr(m,a2)};a.prototype["text-alignSetter"]=function(a2){this.textAlign=a2};a.prototype.textSetter=function(a2){"undefined"!==typeof a2&&this.text.attr({text:a2});this.updateTextPadding()};a.prototype.updateBoxSize=function(){var q=this.text,m=q.element.style,p={},k=this.padding,e=this.bBox=z(this.widthSetting)&&z(this.heightSetting)&&!this.textAlign||!A(q.textStr)?a.emptyBBox:q.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||e.height||0)+2*k;m=this.renderer.fontMetrics(m&&m.fontSize,q);this.baselineOffset=k+Math.min((this.text.firstLineMetrics||m).b,e.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-m.h)/2);this.needsBox&&!q.textPath&&(this.box||(q=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),q.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),q.add(this)),q=this.getCrispAdjust(),p.x=q,p.y=(this.baseline?-this.baselineOffset:0)+q,p.width=Math.round(this.width),p.height=Math.round(this.height),this.box.attr(B(p,this.deferredAttr)),this.deferredAttr={})};a.prototype.updateTextPadding=function(){var a2=this.text;if(!a2.textPath){this.updateBoxSize();var m=this.baseline?0:this.baselineOffset,p=x(this.paddingLeft,this.padding);A(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(p+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(p!==a2.x||m!==a2.y)a2.attr("x",p),a2.hasBoxWidthChanged&&(this.bBox=a2.getBBox(true)),"undefined"!==typeof m&&a2.attr("y",m);a2.x=p;a2.y=m}};a.prototype.widthSetter=function(a2){this.widthSetting=z(a2)?a2:void 0};a.prototype.getPaddedWidth=function(){var a2=this.padding,m=x(this.paddingLeft,a2);a2=x(this.paddingRight,a2);return(this.widthSetting||this.bBox.width||0)+m+a2};a.prototype.xSetter=function(a2){this.x=a2;this.alignFactor&&(a2-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=true);this.xSetting=Math.round(a2);this.attr("translateX",this.xSetting)};a.prototype.ySetter=function(a2){this.ySetting=this.y=Math.round(a2);this.attr("translateY",this.ySetting)};a.emptyBBox={width:0,height:0,x:0,y:0};a.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return a}(c)}));I(g,"Core/Renderer/SVG/Symbols.js",[g["Core/Utilities.js"]],(function(c){function g2(c2,t,r,a,q){var m=[];if(q){var p=q.start||0,k=C(q.r,r);r=C(q.r,a||r);var e=(q.end||0)-.001;a=q.innerR;var D=C(q.open,.001>Math.abs((q.end||0)-p-2*Math.PI)),G=Math.cos(p),g3=Math.sin(p),x=Math.cos(e),u=Math.sin(e);p=C(q.longArc,.001>e-p-Math.PI?0:1);m.push(["M",c2+k*G,t+r*g3],["A",k,r,0,p,C(q.clockwise,1),c2+k*x,t+r*u]);B(a)&&m.push(D?["M",c2+a*x,t+a*u]:["L",c2+a*x,t+a*u],["A",a,a,0,p,B(q.clockwise)?1-q.clockwise:0,c2+a*G,t+a*g3]);D||m.push(["Z"])}return m}function y(c2,t,r,a,q){return q&&q.r?A(c2,t,r,a,q):[["M",c2,t],["L",c2+r,t],["L",c2+r,t+a],["L",c2,t+a],["Z"]]}function A(c2,t,r,a,q){q=q&&q.r||0;return[["M",c2+q,t],["L",c2+r-q,t],["C",c2+r,t,c2+r,t,c2+r,t+q],["L",c2+r,t+a-q],["C",c2+r,t+a,c2+r,t+a,c2+r-q,t+a],["L",c2+q,t+a],["C",c2,t+a,c2,t+a,c2,t+a-q],["L",c2,t+q],["C",c2,t,c2,t,c2+q,t]]}var B=c.defined,z=c.isNumber,C=c.pick;return{arc:g2,callout:function(c2,t,r,a,q){var m=Math.min(q&&q.r||0,r,a),p=m+6,k=q&&q.anchorX;q=q&&q.anchorY||0;var e=A(c2,t,r,a,{r:m});if(!z(k))return e;c2+k>=r?q>t+p&&q<t+a-p?e.splice(3,1,["L",c2+r,q-6],["L",c2+r+6,q],["L",c2+r,q+6],["L",c2+r,t+a-m]):e.splice(3,1,["L",c2+r,a/2],["L",k,q],["L",c2+r,a/2],["L",c2+r,t+a-m]):0>=c2+k?q>t+p&&q<t+a-p?e.splice(7,1,["L",c2,q+6],["L",c2-6,q],["L",c2,q-6],["L",c2,t+m]):e.splice(7,1,["L",c2,a/2],["L",k,q],["L",c2,a/2],["L",c2,t+m]):q&&q>a&&k>c2+p&&k<c2+r-p?e.splice(5,1,["L",k+6,t+a],["L",k,t+a+6],["L",k-6,t+a],["L",c2+m,t+a]):q&&0>q&&k>c2+p&&k<c2+r-p&&e.splice(1,1,["L",k-6,t],["L",k,t-6],["L",k+6,t],["L",r-m,t]);return e},circle:function(c2,t,r,a){return g2(c2+r/2,t+a/2,r/2,a/2,{start:.5*Math.PI,end:2.5*Math.PI,open:false})},diamond:function(c2,t,r,a){return[["M",c2+r/2,t],["L",c2+r,t+a/2],["L",c2+r/2,t+a],["L",c2,t+a/2],["Z"]]},rect:y,roundedRect:A,square:y,triangle:function(c2,t,r,a){return[["M",c2+r/2,t],["L",c2+r,t+a],["L",c2,t+a],["Z"]]},"triangle-down":function(c2,t,r,a){return[["M",c2,t],["L",c2+r,t],["L",c2+r/2,t+a],["Z"]]}}}));I(g,"Core/Renderer/SVG/TextBuilder.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2,y){var L=g2.doc,B=g2.SVG_NS,z=g2.win,C=y.attr,x=y.extend,t=y.fireEvent,r=y.isString,a=y.objectEach,q=y.pick;return function(){function m(a2){var k=a2.styles;this.renderer=a2.renderer;this.svgElement=a2;this.width=a2.textWidth;this.textLineHeight=k&&k.lineHeight;this.textOutline=k&&k.textOutline;this.ellipsis=!(!k||"ellipsis"!==k.textOverflow);this.noWrap=!(!k||"nowrap"!==k.whiteSpace);this.fontSize=k&&k.fontSize}m.prototype.buildSVG=function(){var a2=this.svgElement,k=a2.element,e=a2.renderer,m2=q(a2.textStr,"").toString(),G=-1!==m2.indexOf("<"),t2=k.childNodes;e=this.width&&!a2.added&&e.box;var g3=/<br.*?>/g,u=[m2,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(u!==a2.textCache){a2.textCache=u;delete a2.actualWidth;for(u=t2.length;u--;)k.removeChild(t2[u]);G||this.ellipsis||this.width||a2.textPath||-1!==m2.indexOf(" ")&&(!this.noWrap||g3.test(m2))?""!==m2&&(e&&e.appendChild(k),m2=new c(m2),this.modifyTree(m2.nodes),m2.addToDOM(k),this.modifyDOM(),this.ellipsis&&-1!==(k.textContent||"").indexOf("…")&&a2.attr("title",this.unescapeEntities(a2.textStr||"",["&lt;","&gt;"])),e&&e.removeChild(k)):k.appendChild(L.createTextNode(this.unescapeEntities(m2)));r(this.textOutline)&&a2.applyTextOutline&&a2.applyTextOutline(this.textOutline)}};m.prototype.modifyDOM=function(){var a2=this,k=this.svgElement,e=C(k.element,"x");k.firstLineMetrics=void 0;for(var m2;m2=k.element.firstChild;)if(/^[\s\u200B]*$/.test(m2.textContent||" "))k.element.removeChild(m2);else break;[].forEach.call(k.element.querySelectorAll("tspan.highcharts-br"),(function(u,n){u.nextSibling&&u.previousSibling&&(0===n&&1===u.previousSibling.nodeType&&(k.firstLineMetrics=k.renderer.fontMetrics(void 0,u.previousSibling)),C(u,{dy:a2.getLineHeight(u.nextSibling),x:e}))}));var c2=this.width||0;if(c2){var q2=function(u,n){var w=u.textContent||"",f=w.replace(/([^\^])-/g,"$1- ").split(" "),l=!a2.noWrap&&(1<f.length||1<k.element.childNodes.length),d=a2.getLineHeight(n),b=0,h=k.actualWidth;if(a2.ellipsis)w&&a2.truncate(u,w,void 0,0,Math.max(0,c2-parseInt(a2.fontSize||12,10)),(function(b2,d2){return b2.substring(0,d2)+"…"}));else if(l){w=[];for(l=[];n.firstChild&&n.firstChild!==u;)l.push(n.firstChild),n.removeChild(n.firstChild);for(;f.length;)f.length&&!a2.noWrap&&0<b&&(w.push(u.textContent||""),u.textContent=f.join(" ").replace(/- /g,"-")),a2.truncate(u,void 0,f,0===b?h||0:0,c2,(function(b2,d2){return f.slice(0,d2).join(" ").replace(/- /g,"-")})),h=k.actualWidth,b++;l.forEach((function(b2){n.insertBefore(b2,u)}));w.forEach((function(b2){n.insertBefore(L.createTextNode(b2),u);b2=L.createElementNS(B,"tspan");b2.textContent="​";C(b2,{dy:d,x:e});n.insertBefore(b2,u)}))}},r2=function(e2){[].slice.call(e2.childNodes).forEach((function(n){n.nodeType===z.Node.TEXT_NODE?q2(n,e2):(-1!==n.className.baseVal.indexOf("highcharts-br")&&(k.actualWidth=0),r2(n))}))};r2(k.element)}};m.prototype.getLineHeight=function(a2){var k;a2=a2.nodeType===z.Node.TEXT_NODE?a2.parentElement:a2;this.renderer.styledMode||(k=a2&&/(px|em)$/.test(a2.style.fontSize)?a2.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(k,a2||this.svgElement.element).h};m.prototype.modifyTree=function(a2){var k=this,e=function(m2,p){var c2=m2.attributes;c2=void 0===c2?{}:c2;var q2=m2.children,u=m2.style;u=void 0===u?{}:u;var n=m2.tagName,w=k.renderer.styledMode;if("b"===n||"strong"===n)w?c2["class"]="highcharts-strong":u.fontWeight="bold";else if("i"===n||"em"===n)w?c2["class"]="highcharts-emphasized":u.fontStyle="italic";u&&u.color&&(u.fill=u.color);"br"===n?(c2["class"]="highcharts-br",m2.textContent="​",(p=a2[p+1])&&p.textContent&&(p.textContent=p.textContent.replace(/^ +/gm,""))):"a"===n&&q2&&q2.some((function(f){return"#text"===f.tagName}))&&(m2.children=[{children:q2,tagName:"tspan"}]);"#text"!==n&&"a"!==n&&(m2.tagName="tspan");x(m2,{attributes:c2,style:u});q2&&q2.filter((function(f){return"#text"!==f.tagName})).forEach(e)};a2.forEach(e);t(this.svgElement,"afterModifyTree",{nodes:a2})};m.prototype.truncate=function(a2,k,e,m2,c2,q2){var p=this.svgElement,u=p.renderer,n=p.rotation,w=[],f=e?1:0,l=(k||e||"").length,d=l,b,h=function(b2,d2){d2=d2||b2;var h2=a2.parentNode;if(h2&&"undefined"===typeof w[d2])if(h2.getSubStringLength)try{w[d2]=m2+h2.getSubStringLength(0,e?d2+1:d2)}catch(O){}else u.getSpanWidth&&(a2.textContent=q2(k||e,b2),w[d2]=m2+u.getSpanWidth(p,a2));return w[d2]};p.rotation=0;var v=h(a2.textContent.length);if(m2+v>c2){for(;f<=l;)d=Math.ceil((f+l)/2),e&&(b=q2(e,d)),v=h(d,b&&b.length-1),f===l?f=l+1:v>c2?l=d-1:f=d;0===l?a2.textContent="":k&&l===k.length-1||(a2.textContent=b||q2(k||e,d))}e&&e.splice(0,d);p.actualWidth=v;p.rotation=n};m.prototype.unescapeEntities=function(m2,k){a(this.renderer.escapes,(function(e,a2){k&&-1!==k.indexOf(e)||(m2=m2.toString().replace(new RegExp(e,"g"),a2))}));return m2};return m}()}));I(g,"Core/Renderer/SVG/SVGRenderer.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Renderer/SVG/SVGLabel.js"],g["Core/Renderer/SVG/Symbols.js"],g["Core/Renderer/SVG/TextBuilder.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C,x,t){var r=y.charts,a=y.deg2rad,q=y.doc,m=y.isFirefox,p=y.isMS,k=y.isWebKit,e=y.noop,D=y.SVG_NS,G=y.symbolSizes,H=y.win,K=t.addEvent,u=t.attr,n=t.createElement,w=t.css,f=t.defined,l=t.destroyObjectProperties,d=t.extend,b=t.isArray,h=t.isNumber,v=t.isObject,E=t.isString,J=t.merge,M=t.pick,O=t.pInt,P=t.uniqueKey,T;y=function(){function F(b2,d2,h2,f2,l2,n2,v2){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(b2,d2,h2,f2,l2,n2,v2)}F.prototype.init=function(b2,d2,h2,f2,l2,n2,v2){var F2=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),e2=F2.element;v2||F2.css(this.getStyle(f2));b2.appendChild(e2);u(b2,"dir","ltr");-1===b2.innerHTML.indexOf("xmlns")&&u(e2,"xmlns",this.SVG_NS);this.isSVG=true;this.box=e2;this.boxWrapper=F2;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(q.createTextNode("Created with Highcharts 10.3.3"));this.defs=this.createElement("defs").add();this.allowHTML=n2;this.forExport=l2;this.styledMode=v2;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(d2,h2,false);var a2;m&&b2.getBoundingClientRect&&(d2=function(){w(b2,{left:0,top:0});a2=b2.getBoundingClientRect();w(b2,{left:Math.ceil(a2.left)-a2.left+"px",top:Math.ceil(a2.top)-a2.top+"px"})},d2(),this.unSubPixelFix=K(H,"resize",d2))};F.prototype.definition=function(b2){return new c([b2]).addToDOM(this.defs.element)};F.prototype.getReferenceURL=function(){if((m||k)&&q.getElementsByTagName("base").length){if(!f(T)){var b2=P();b2=new c([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:b2},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(b2,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(q.body);w(b2,{position:"fixed",top:0,left:0,zIndex:9e5});var d2=q.elementFromPoint(6,6);T="hitme"===(d2&&d2.id);q.body.removeChild(b2)}if(T)return H.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};F.prototype.getStyle=function(b2){return this.style=d({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},b2)};F.prototype.setStyle=function(b2){this.boxWrapper.css(this.getStyle(b2))};F.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};F.prototype.destroy=function(){var b2=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();l(this.gradients||{});this.gradients=null;b2&&(this.defs=b2.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};F.prototype.createElement=function(b2){var d2=new this.Element;d2.init(this,b2);return d2};F.prototype.getRadialAttr=function(b2,d2){return{cx:b2[0]-b2[2]/2+(d2.cx||0)*b2[2],cy:b2[1]-b2[2]/2+(d2.cy||0)*b2[2],r:(d2.r||0)*b2[2]}};F.prototype.buildText=function(b2){new x(b2).buildSVG()};F.prototype.getContrast=function(b2){b2=g2.parse(b2).rgba.map((function(b3){b3/=255;return.03928>=b3?b3/12.92:Math.pow((b3+.055)/1.055,2.4)}));b2=.2126*b2[0]+.7152*b2[1]+.0722*b2[2];return 1.05/(b2+.05)>(b2+.05)/.05?"#FFFFFF":"#000000"};F.prototype.button=function(b2,h2,f2,l2,n2,F2,e2,a2,w2,k2){void 0===n2&&(n2={});var E2=this.label(b2,h2,f2,w2,void 0,void 0,k2,void 0,"button"),Q=this.styledMode;b2=n2.states||{};var N=0;n2=J(n2);delete n2.states;var m2=J({color:"#333333",cursor:"pointer",fontWeight:"normal"},n2.style);delete n2.style;var u2=c.filterUserAttributes(n2);E2.attr(J({padding:8,r:2},u2));if(!Q){u2=J({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},u2);F2=J(u2,{fill:"#e6e6e6"},c.filterUserAttributes(F2||b2.hover||{}));var q2=F2.style;delete F2.style;e2=J(u2,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},c.filterUserAttributes(e2||b2.select||{}));var D2=e2.style;delete e2.style;a2=J(u2,{style:{color:"#cccccc"}},c.filterUserAttributes(a2||b2.disabled||{}));var r2=a2.style;delete a2.style}K(E2.element,p?"mouseover":"mouseenter",(function(){3!==N&&E2.setState(1)}));K(E2.element,p?"mouseout":"mouseleave",(function(){3!==N&&E2.setState(N)}));E2.setState=function(b3){1!==b3&&(E2.state=N=b3);E2.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][b3||0]);Q||(E2.attr([u2,F2,e2,a2][b3||0]),b3=[m2,q2,D2,r2][b3||0],v(b3)&&E2.css(b3))};Q||(E2.attr(u2).css(d({cursor:"default"},m2)),k2&&E2.text.css({pointerEvents:"none"}));return E2.on("touchstart",(function(b3){return b3.stopPropagation()})).on("click",(function(b3){3!==N&&l2.call(E2,b3)}))};F.prototype.crispLine=function(b2,d2,h2){void 0===h2&&(h2="round");var l2=b2[0],n2=b2[1];f(l2[1])&&l2[1]===n2[1]&&(l2[1]=n2[1]=Math[h2](l2[1])-d2%2/2);f(l2[2])&&l2[2]===n2[2]&&(l2[2]=n2[2]=Math[h2](l2[2])+d2%2/2);return b2};F.prototype.path=function(h2){var f2=this.styledMode?{}:{fill:"none"};b(h2)?f2.d=h2:v(h2)&&d(f2,h2);return this.createElement("path").attr(f2)};F.prototype.circle=function(b2,d2,h2){b2=v(b2)?b2:"undefined"===typeof b2?{}:{x:b2,y:d2,r:h2};d2=this.createElement("circle");d2.xSetter=d2.ySetter=function(b3,d3,h3){h3.setAttribute("c"+d3,b3)};return d2.attr(b2)};F.prototype.arc=function(b2,d2,h2,f2,l2,n2){v(b2)?(f2=b2,d2=f2.y,h2=f2.r,b2=f2.x):f2={innerR:f2,start:l2,end:n2};b2=this.symbol("arc",b2,d2,h2,h2,f2);b2.r=h2;return b2};F.prototype.rect=function(b2,d2,h2,f2,l2,n2){l2=v(b2)?b2.r:l2;var F2=this.createElement("rect");b2=v(b2)?b2:"undefined"===typeof b2?{}:{x:b2,y:d2,width:Math.max(h2,0),height:Math.max(f2,0)};this.styledMode||("undefined"!==typeof n2&&(b2["stroke-width"]=n2,b2=F2.crisp(b2)),b2.fill="none");l2&&(b2.r=l2);F2.rSetter=function(b3,d3,h3){F2.r=b3;u(h3,{rx:b3,ry:b3})};F2.rGetter=function(){return F2.r||0};return F2.attr(b2)};F.prototype.setSize=function(b2,d2,h2){this.width=b2;this.height=d2;this.boxWrapper.animate({width:b2,height:d2},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:M(h2,true)?void 0:0});this.alignElements()};F.prototype.g=function(b2){var d2=this.createElement("g");return b2?d2.attr({class:"highcharts-"+b2}):d2};F.prototype.image=function(b2,d2,f2,l2,n2,v2){var F2={preserveAspectRatio:"none"},e2=function(b3,d3){b3.setAttributeNS?b3.setAttributeNS("http://www.w3.org/1999/xlink","href",d3):b3.setAttribute("hc-svg-href",d3)};h(d2)&&(F2.x=d2);h(f2)&&(F2.y=f2);h(l2)&&(F2.width=l2);h(n2)&&(F2.height=n2);var a2=this.createElement("image").attr(F2);d2=function(d3){e2(a2.element,b2);v2.call(a2,d3)};v2?(e2(a2.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),f2=new H.Image,K(f2,"load",d2),f2.src=b2,f2.complete&&d2({})):e2(a2.element,b2);return a2};F.prototype.symbol=function(b2,h2,l2,v2,F2,e2){var a2=this,k2=/^url\((.*?)\)$/,E2=k2.test(b2),N=!E2&&(this.symbols[b2]?b2:"circle"),m2=N&&this.symbols[N],Q;if(m2){"number"===typeof h2&&(Q=m2.call(this.symbols,Math.round(h2||0),Math.round(l2||0),v2||0,F2||0,e2));var p2=this.path(Q);a2.styledMode||p2.attr("fill","none");d(p2,{symbolName:N||void 0,x:h2,y:l2,width:v2,height:F2});e2&&d(p2,e2)}else if(E2){var c2=b2.match(k2)[1];var J2=p2=this.image(c2);J2.imgwidth=M(G[c2]&&G[c2].width,e2&&e2.width);J2.imgheight=M(G[c2]&&G[c2].height,e2&&e2.height);var D2=function(b3){return b3.attr({width:b3.width,height:b3.height})};["width","height"].forEach((function(b3){J2[b3+"Setter"]=function(b4,d2){this[d2]=b4;b4=this.alignByTranslate;var h3=this.element,l3=this.width,n2=this.height,v3=this.imgwidth,F3=this.imgheight,a3=this["img"+d2];if(f(a3)){var w2=1;e2&&"within"===e2.backgroundSize&&l3&&n2?(w2=Math.min(l3/v3,n2/F3),a3=Math.round(a3*w2),u(h3,{width:Math.round(v3*w2),height:Math.round(F3*w2)})):h3&&h3.setAttribute(d2,a3);b4||this.translate(((l3||0)-a3*w2)/2,((n2||0)-a3*w2)/2)}}}));f(h2)&&J2.attr({x:h2,y:l2});J2.isImg=true;f(J2.imgwidth)&&f(J2.imgheight)?D2(J2):(J2.attr({width:0,height:0}),n("img",{onload:function(){var b3=r[a2.chartIndex];0===this.width&&(w(this,{position:"absolute",top:"-999em"}),q.body.appendChild(this));G[c2]={width:this.width,height:this.height};J2.imgwidth=this.width;J2.imgheight=this.height;J2.element&&D2(J2);this.parentNode&&this.parentNode.removeChild(this);a2.imgCount--;if(!a2.imgCount&&b3&&!b3.hasLoaded)b3.onload()},src:c2}),this.imgCount++)}return p2};F.prototype.clipRect=function(b2,d2,h2,f2){var l2=P()+"-",n2=this.createElement("clipPath").attr({id:l2}).add(this.defs);b2=this.rect(b2,d2,h2,f2,0).add(n2);b2.id=l2;b2.clipPath=n2;b2.count=0;return b2};F.prototype.text=function(b2,d2,h2,l2){var n2={};if(l2&&(this.allowHTML||!this.forExport))return this.html(b2,d2,h2);n2.x=Math.round(d2||0);h2&&(n2.y=Math.round(h2));f(b2)&&(n2.text=b2);b2=this.createElement("text").attr(n2);if(!l2||this.forExport&&!this.allowHTML)b2.xSetter=function(b3,d3,h3){for(var f2=h3.getElementsByTagName("tspan"),l3=h3.getAttribute(d3),n3=0,v2;n3<f2.length;n3++)v2=f2[n3],v2.getAttribute(d3)===l3&&v2.setAttribute(d3,b3);h3.setAttribute(d3,b3)};return b2};F.prototype.fontMetrics=function(b2,d2){b2=!this.styledMode&&/px/.test(b2)||!H.getComputedStyle?b2||d2&&d2.style&&d2.style.fontSize||this.style&&this.style.fontSize:d2&&B.prototype.getStyle.call(d2,"font-size");b2=/px/.test(b2)?O(b2):12;d2=24>b2?b2+3:Math.round(1.2*b2);return{h:d2,b:Math.round(.8*d2),f:b2}};F.prototype.rotCorr=function(b2,d2,h2){var f2=b2;d2&&h2&&(f2=Math.max(f2*Math.cos(d2*a),4));return{x:-b2/3*Math.sin(d2*a),y:f2}};F.prototype.pathToSegments=function(b2){for(var d2=[],f2=[],l2={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},n2=0;n2<b2.length;n2++)E(f2[0])&&h(b2[n2])&&f2.length===l2[f2[0].toUpperCase()]&&b2.splice(n2,0,f2[0].replace("M","L").replace("m","l")),"string"===typeof b2[n2]&&(f2.length&&d2.push(f2.slice(0)),f2.length=0),f2.push(b2[n2]);d2.push(f2.slice(0));return d2};F.prototype.label=function(b2,d2,h2,f2,l2,n2,v2,F2,e2){return new z(this,b2,d2,h2,f2,l2,n2,v2,F2,e2)};F.prototype.alignElements=function(){this.alignedObjects.forEach((function(b2){return b2.align()}))};return F}();d(y.prototype,{Element:B,SVG_NS:D,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:C,draw:e});A.registerRendererType("svg",y,true);return y}));I(g,"Core/Renderer/HTML/HTMLElement.js",[g["Core/Globals.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],(function(c,g2,y){var L=this&&this.__extends||function(){var a2=function(k,e){a2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e2,a3){e2.__proto__=a3}||function(e2,a3){for(var k2 in a3)a3.hasOwnProperty(k2)&&(e2[k2]=a3[k2])};return a2(k,e)};return function(k,e){function m2(){this.constructor=k}a2(k,e);k.prototype=null===e?Object.create(e):(m2.prototype=e.prototype,new m2)}}(),B=c.isFirefox,z=c.isMS,C=c.isWebKit,x=c.win,t=y.css,r=y.defined,a=y.extend,q=y.pick,m=y.pInt;return function(p){function k(){return null!==p&&p.apply(this,arguments)||this}L(k,p);k.compose=function(e){if(-1===k.composedClasses.indexOf(e)){k.composedClasses.push(e);var a2=k.prototype,m2=e.prototype;m2.getSpanCorrection=a2.getSpanCorrection;m2.htmlCss=a2.htmlCss;m2.htmlGetBBox=a2.htmlGetBBox;m2.htmlUpdateTransform=a2.htmlUpdateTransform;m2.setSpanRotation=a2.setSpanRotation}return e};k.prototype.getSpanCorrection=function(e,a2,k2){this.xCorr=-e*k2;this.yCorr=-a2};k.prototype.htmlCss=function(e){var k2="SPAN"===this.element.tagName&&e&&"width"in e,m2=q(k2&&e.width,void 0);if(k2){delete e.width;this.textWidth=m2;var p2=true}e&&"ellipsis"===e.textOverflow&&(e.whiteSpace="nowrap",e.overflow="hidden");this.styles=a(this.styles,e);t(this.element,e);p2&&this.htmlUpdateTransform();return this};k.prototype.htmlGetBBox=function(){var e=this.element;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}};k.prototype.htmlUpdateTransform=function(){if(this.added){var e=this.renderer,a2=this.element,k2=this.translateX||0,p2=this.translateY||0,c2=this.x||0,u=this.y||0,n=this.textAlign||"left",w={left:0,center:.5,right:1}[n],f=this.styles;f=f&&f.whiteSpace;t(a2,{marginLeft:k2,marginTop:p2});!e.styledMode&&this.shadows&&this.shadows.forEach((function(b2){t(b2,{marginLeft:k2+1,marginTop:p2+1})}));this.inverted&&[].forEach.call(a2.childNodes,(function(b2){e.invertChild(b2,a2)}));if("SPAN"===a2.tagName){var l=this.rotation,d=this.textWidth&&m(this.textWidth),b=[l,n,a2.innerHTML,this.textWidth,this.textAlign].join(),h=void 0;h=false;if(d!==this.oldTextWidth){if(this.textPxLength)var v=this.textPxLength;else t(a2,{width:"",whiteSpace:f||"nowrap"}),v=a2.offsetWidth;(d>this.oldTextWidth||v>d)&&(/[ \-]/.test(a2.textContent||a2.innerText)||"ellipsis"===a2.style.textOverflow)&&(t(a2,{width:v>d||l?d+"px":"auto",display:"block",whiteSpace:f||"normal"}),this.oldTextWidth=d,h=true)}this.hasBoxWidthChanged=h;b!==this.cTT&&(h=e.fontMetrics(a2.style.fontSize,a2).b,!r(l)||l===(this.oldRotation||0)&&n===this.oldAlign||this.setSpanRotation(l,w,h),this.getSpanCorrection(!r(l)&&this.textPxLength||a2.offsetWidth,h,w,l,n));t(a2,{left:c2+(this.xCorr||0)+"px",top:u+(this.yCorr||0)+"px"});this.cTT=b;this.oldRotation=l;this.oldAlign=n}}else this.alignOnAdd=true};k.prototype.setSpanRotation=function(e,a2,k2){var m2={},p2=z&&!/Edge/.test(x.navigator.userAgent)?"-ms-transform":C?"-webkit-transform":B?"MozTransform":x.opera?"-o-transform":void 0;p2&&(m2[p2]=m2.transform="rotate("+e+"deg)",m2[p2+(B?"Origin":"-origin")]=m2.transformOrigin=100*a2+"% "+k2+"px",t(this.element,m2))};k.composedClasses=[];return k}(g2)}));I(g,"Core/Renderer/HTML/HTMLRenderer.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Renderer/SVG/SVGRenderer.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){var L=this&&this.__extends||function(){var c2=function(a,q){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,p){a2.__proto__=p}||function(a2,p){for(var k in p)p.hasOwnProperty(k)&&(a2[k]=p[k])};return c2(a,q)};return function(a,q){function m(){this.constructor=a}c2(a,q);a.prototype=null===q?Object.create(q):(m.prototype=q.prototype,new m)}}(),z=A.attr,C=A.createElement,x=A.extend,t=A.pick;return function(r){function a(){return null!==r&&r.apply(this,arguments)||this}L(a,r);a.compose=function(c2){-1===a.composedClasses.indexOf(c2)&&(a.composedClasses.push(c2),c2.prototype.html=a.prototype.html);return c2};a.prototype.html=function(a2,m,p){var k=this.createElement("span"),e=k.element,q=k.renderer,r2=q.isSVG,H=function(e2,a3){["opacity","visibility"].forEach((function(n){e2[n+"Setter"]=function(w,f,l){var d=e2.div?e2.div.style:a3;g2.prototype[n+"Setter"].call(this,w,f,l);d&&(d[f]=w)}}));e2.addedSetters=true};k.textSetter=function(e2){e2!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,c.setElementHTML(this.element,t(e2,"")),this.textStr=e2,k.doTransform=true)};r2&&H(k,k.element.style);k.xSetter=k.ySetter=k.alignSetter=k.rotationSetter=function(e2,a3){"align"===a3?k.alignValue=k.textAlign=e2:k[a3]=e2;k.doTransform=true};k.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=false)};k.attr({text:a2,x:Math.round(m),y:Math.round(p)}).css({position:"absolute"});q.styledMode||k.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});e.style.whiteSpace="nowrap";k.css=k.htmlCss;r2&&(k.add=function(a3){var m2=q.box.parentNode,n=[];if(this.parentGroup=a3){var w=a3.div;if(!w){for(;a3;)n.push(a3),a3=a3.parentGroup;n.reverse().forEach((function(f){function l(b2,d2){f[d2]=b2;"translateX"===d2?h.left=b2+"px":h.top=b2+"px";f.doTransform=true}var d=z(f.element,"class"),b=f.styles||{};w=f.div=f.div||C("div",d?{className:d}:void 0,{position:"absolute",left:(f.translateX||0)+"px",top:(f.translateY||0)+"px",display:f.display,opacity:f.opacity,cursor:b.cursor,pointerEvents:b.pointerEvents,visibility:f.visibility},w||m2);var h=w.style;x(f,{classSetter:function(b2){return function(d2){this.element.setAttribute("class",d2);b2.className=d2}}(w),on:function(){n[0].div&&k.on.apply({element:n[0].div,onEvents:f.onEvents},arguments);return f},translateXSetter:l,translateYSetter:l});f.addedSetters||H(f)}))}}else w=m2;w.appendChild(e);k.added=true;k.alignOnAdd&&k.htmlUpdateTransform();return k});return k};a.composedClasses=[];return a}(y)}));I(g,"Core/Axis/AxisDefaults.js",[],(function(){var c;(function(c2){c2.defaultXAxisOptions={alignTicks:true,allowDecimals:void 0,panningEnabled:true,zIndex:2,zoomEnabled:true,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:false},second:{main:"%H:%M:%S",range:false},minute:{main:"%H:%M",range:false},hour:{main:"%H:%M",range:false},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:false,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:true,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:false,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:false,reversed:void 0,reversedStacks:false,showEmpty:true,showFirstLabel:true,showLastLabel:true,startOfWeek:1,startOnTick:false,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:false,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:true,visible:true,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};c2.defaultYAxisOptions={reversedStacks:true,endOnTick:true,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:true,labels:{x:-8},startOnTick:true,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:false,enabled:false,crop:true,overflow:"justify",formatter:function(){var c3=this.axis.chart.numberFormatter;return c3(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};c2.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};c2.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};c2.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};c2.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(c||(c={}));return c}));I(g,"Core/Foundation.js",[g["Core/Utilities.js"]],(function(c){var g2=c.addEvent,y=c.isFunction,A=c.objectEach,B=c.removeEvent,z;(function(c2){c2.registerEventOptions=function(c3,t){c3.eventOptions=c3.eventOptions||{};A(t.events,(function(r,a){c3.eventOptions[a]!==r&&(c3.eventOptions[a]&&(B(c3,a,c3.eventOptions[a]),delete c3.eventOptions[a]),y(r)&&(c3.eventOptions[a]=r,g2(c3,a,r)))}))}})(z||(z={}));return z}));I(g,"Core/Axis/Tick.js",[g["Core/FormatUtilities.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2,y){var L=g2.deg2rad,B=y.clamp,z=y.correctFloat,C=y.defined,x=y.destroyObjectProperties,t=y.extend,r=y.fireEvent,a=y.isNumber,q=y.merge,m=y.objectEach,p=y.pick;g2=function(){function k(e,a2,k2,m2,p2){this.isNewLabel=this.isNew=true;this.axis=e;this.pos=a2;this.type=k2||"";this.parameters=p2||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;r(this,"init");k2||m2||this.addLabel()}k.prototype.addLabel=function(){var e=this,k2=e.axis,m2=k2.options,q2=k2.chart,g3=k2.categories,u=k2.logarithmic,n=k2.names,w=e.pos,f=p(e.options&&e.options.labels,m2.labels),l=k2.tickPositions,d=w===l[0],b=w===l[l.length-1],h=(!f.step||1===f.step)&&1===k2.tickInterval;l=l.info;var v=e.label,E;g3=this.parameters.category||(g3?p(g3[w],n[w],w):w);u&&a(g3)&&(g3=z(u.lin2log(g3)));if(k2.dateTime)if(l){var J=q2.time.resolveDTLFormat(m2.dateTimeLabelFormats[!m2.grid&&l.higherRanks[w]||l.unitName]);var M=J.main}else a(g3)&&(M=k2.dateTime.getXDateFormat(g3,m2.dateTimeLabelFormats||{}));e.isFirst=d;e.isLast=b;var O={axis:k2,chart:q2,dateTimeLabelFormat:M,isFirst:d,isLast:b,pos:w,tick:e,tickPositionInfo:l,value:g3};r(this,"labelFormat",O);var P=function(b2){return f.formatter?f.formatter.call(b2,b2):f.format?(b2.text=k2.defaultLabelFormatter.call(b2,b2),c.format(f.format,b2,q2)):k2.defaultLabelFormatter.call(b2,b2)};m2=P.call(O,O);var T=J&&J.list;e.shortenLabel=T?function(){for(E=0;E<T.length;E++)if(t(O,{dateTimeLabelFormat:T[E]}),v.attr({text:P.call(O,O)}),v.getBBox().width<k2.getSlotWidth(e)-2*f.padding)return;v.attr({text:""})}:void 0;h&&k2._addedPlotLB&&e.moveLabel(m2,f);C(v)||e.movedLabel?v&&v.textStr!==m2&&!h&&(!v.textWidth||f.style.width||v.styles.width||v.css({width:null}),v.attr({text:m2}),v.textPxLength=v.getBBox().width):(e.label=v=e.createLabel({x:0,y:0},m2,f),e.rotation=0)};k.prototype.createLabel=function(e,a2,k2){var m2=this.axis,p2=m2.chart;if(e=C(a2)&&k2.enabled?p2.renderer.text(a2,e.x,e.y,k2.useHTML).add(m2.labelGroup):null)p2.styledMode||e.css(q(k2.style)),e.textPxLength=e.getBBox().width;return e};k.prototype.destroy=function(){x(this,this.axis)};k.prototype.getPosition=function(e,a2,k2,m2){var p2=this.axis,u=p2.chart,n=m2&&u.oldChartHeight||u.chartHeight;e={x:e?z(p2.translate(a2+k2,void 0,void 0,m2)+p2.transB):p2.left+p2.offset+(p2.opposite?(m2&&u.oldChartWidth||u.chartWidth)-p2.right-p2.left:0),y:e?n-p2.bottom+p2.offset-(p2.opposite?p2.height:0):z(n-p2.translate(a2+k2,void 0,void 0,m2)-p2.transB)};e.y=B(e.y,-1e5,1e5);r(this,"afterGetPosition",{pos:e});return e};k.prototype.getLabelPosition=function(e,a2,k2,m2,p2,u,n,w){var f=this.axis,l=f.transA,d=f.isLinked&&f.linkedParent?f.linkedParent.reversed:f.reversed,b=f.staggerLines,h=f.tickRotCorr||{x:0,y:0},v=m2||f.reserveSpaceDefault?0:-f.labelOffset*("center"===f.labelAlign?.5:1),E={};k2=0===f.side?k2.rotation?-8:-k2.getBBox().height:2===f.side?h.y+8:Math.cos(k2.rotation*L)*(h.y-k2.getBBox(false,0).height/2);C(p2.y)&&(k2=0===f.side&&f.horiz?p2.y+k2:p2.y);e=e+p2.x+v+h.x-(u&&m2?u*l*(d?-1:1):0);a2=a2+k2-(u&&!m2?u*l*(d?1:-1):0);b&&(m2=n/(w||1)%b,f.opposite&&(m2=b-m2-1),a2+=f.labelOffset/b*m2);E.x=e;E.y=Math.round(a2);r(this,"afterGetLabelPosition",{pos:E,tickmarkOffset:u,index:n});return E};k.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};k.prototype.getMarkPath=function(e,a2,k2,m2,p2,u){return u.crispLine([["M",e,a2],["L",e+(p2?0:-k2),a2+(p2?k2:0)]],m2)};k.prototype.handleOverflow=function(e){var a2=this.axis,k2=a2.options.labels,m2=e.x,c2=a2.chart.chartWidth,u=a2.chart.spacing,n=p(a2.labelLeft,Math.min(a2.pos,u[3]));u=p(a2.labelRight,Math.max(a2.isRadial?0:a2.pos+a2.len,c2-u[1]));var w=this.label,f=this.rotation,l={left:0,center:.5,right:1}[a2.labelAlign||w.attr("align")],d=w.getBBox().width,b=a2.getSlotWidth(this),h={},v=b,E=1,q2;if(f||"justify"!==k2.overflow)0>f&&m2-l*d<n?q2=Math.round(m2/Math.cos(f*L)-n):0<f&&m2+l*d>u&&(q2=Math.round((c2-m2)/Math.cos(f*L)));else if(c2=m2+(1-l)*d,m2-l*d<n?v=e.x+v*(1-l)-n:c2>u&&(v=u-e.x+v*l,E=-1),v=Math.min(b,v),v<b&&"center"===a2.labelAlign&&(e.x+=E*(b-v-l*(b-Math.min(d,v)))),d>v||a2.autoRotation&&(w.styles||{}).width)q2=v;q2&&(this.shortenLabel?this.shortenLabel():(h.width=Math.floor(q2)+"px",(k2.style||{}).textOverflow||(h.textOverflow="ellipsis"),w.css(h)))};k.prototype.moveLabel=function(a2,k2){var e=this,p2=e.label,c2=e.axis,u=c2.reversed,n=false;p2&&p2.textStr===a2?(e.movedLabel=p2,n=true,delete e.label):m(c2.ticks,(function(f){n||f.isNew||f===e||!f.label||f.label.textStr!==a2||(e.movedLabel=f.label,n=true,f.labelPos=e.movedLabel.xy,delete f.label)}));if(!n&&(e.labelPos||p2)){var w=e.labelPos||p2.xy;p2=c2.horiz?u?0:c2.width+c2.left:w.x;c2=c2.horiz?w.y:u?c2.width+c2.left:0;e.movedLabel=e.createLabel({x:p2,y:c2},a2,k2);e.movedLabel&&e.movedLabel.attr({opacity:0})}};k.prototype.render=function(a2,k2,m2){var e=this.axis,c2=e.horiz,u=this.pos,n=p(this.tickmarkOffset,e.tickmarkOffset);u=this.getPosition(c2,u,n,k2);n=u.x;var w=u.y;e=c2&&n===e.pos+e.len||!c2&&w===e.pos?-1:1;c2=p(m2,this.label&&this.label.newOpacity,1);m2=p(m2,1);this.isActive=true;this.renderGridLine(k2,m2,e);this.renderMark(u,m2,e);this.renderLabel(u,k2,c2,a2);this.isNew=false;r(this,"afterRender")};k.prototype.renderGridLine=function(e,a2,k2){var m2=this.axis,c2=m2.options,u={},n=this.pos,w=this.type,f=p(this.tickmarkOffset,m2.tickmarkOffset),l=m2.chart.renderer,d=this.gridLine,b=c2.gridLineWidth,h=c2.gridLineColor,v=c2.gridLineDashStyle;"minor"===this.type&&(b=c2.minorGridLineWidth,h=c2.minorGridLineColor,v=c2.minorGridLineDashStyle);d||(m2.chart.styledMode||(u.stroke=h,u["stroke-width"]=b||0,u.dashstyle=v),w||(u.zIndex=1),e&&(a2=0),this.gridLine=d=l.path().attr(u).addClass("highcharts-"+(w?w+"-":"")+"grid-line").add(m2.gridGroup));if(d&&(k2=m2.getPlotLinePath({value:n+f,lineWidth:d.strokeWidth()*k2,force:"pass",old:e,acrossPanes:false})))d[e||this.isNew?"attr":"animate"]({d:k2,opacity:a2})};k.prototype.renderMark=function(a2,k2,m2){var e=this.axis,c2=e.options,u=e.chart.renderer,n=this.type,w=e.tickSize(n?n+"Tick":"tick"),f=a2.x;a2=a2.y;var l=p(c2["minor"!==n?"tickWidth":"minorTickWidth"],!n&&e.isXAxis?1:0);c2=c2["minor"!==n?"tickColor":"minorTickColor"];var d=this.mark,b=!d;w&&(e.opposite&&(w[0]=-w[0]),d||(this.mark=d=u.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(e.axisGroup),e.chart.styledMode||d.attr({stroke:c2,"stroke-width":l})),d[b?"attr":"animate"]({d:this.getMarkPath(f,a2,w[0],d.strokeWidth()*m2,e.horiz,u),opacity:k2}))};k.prototype.renderLabel=function(e,k2,m2,c2){var q2=this.axis,u=q2.horiz,n=q2.options,w=this.label,f=n.labels,l=f.step;q2=p(this.tickmarkOffset,q2.tickmarkOffset);var d=e.x;e=e.y;var b=true;w&&a(d)&&(w.xy=e=this.getLabelPosition(d,e,w,u,f,q2,c2,l),this.isFirst&&!this.isLast&&!n.showFirstLabel||this.isLast&&!this.isFirst&&!n.showLastLabel?b=false:!u||f.step||f.rotation||k2||0===m2||this.handleOverflow(e),l&&c2%l&&(b=false),b&&a(e.y)?(e.opacity=m2,w[this.isNewLabel?"attr":"animate"](e).show(true),this.isNewLabel=false):(w.hide(),this.isNewLabel=true))};k.prototype.replaceMovedLabel=function(){var a2=this.label,k2=this.axis,m2=k2.reversed;if(a2&&!this.isNew){var c2=k2.horiz?m2?k2.left:k2.width+k2.left:a2.xy.x;m2=k2.horiz?a2.xy.y:m2?k2.width+k2.top:k2.top;a2.animate({x:c2,y:m2,opacity:0},void 0,a2.destroy);delete this.label}k2.isDirty=true;this.label=this.movedLabel;delete this.movedLabel};return k}();return g2}));I(g,"Core/Axis/Axis.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/AxisDefaults.js"],g["Core/Color/Color.js"],g["Core/Defaults.js"],g["Core/Foundation.js"],g["Core/Globals.js"],g["Core/Axis/Tick.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C,x){var t=c.animObject,r=A.defaultOptions,a=B.registerEventOptions,q=z.deg2rad,m=x.arrayMax,p=x.arrayMin,k=x.clamp,e=x.correctFloat,D=x.defined,G=x.destroyObjectProperties,H=x.erase,K=x.error,u=x.extend,n=x.fireEvent,w=x.isArray,f=x.isNumber,l=x.isString,d=x.merge,b=x.normalizeTickInterval,h=x.objectEach,v=x.pick,E=x.relativeLength,J=x.removeEvent,M=x.splat,O=x.syncTimeout,P=function(d2,h2){return b(h2,void 0,void 0,v(d2.options.allowDecimals,.5>h2||void 0!==d2.tickAmount),!!d2.tickAmount)};c=function(){function b2(b3,d2){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(b3,d2)}b2.prototype.init=function(b3,d2){var h2=d2.isX;this.chart=b3;this.horiz=b3.inverted&&!this.isZAxis?!h2:h2;this.isXAxis=h2;this.coll=this.coll||(h2?"xAxis":"yAxis");n(this,"init",{userOptions:d2});this.opposite=v(d2.opposite,this.opposite);this.side=v(d2.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(d2);var l2=this.options,e2=l2.labels,F=l2.type;this.userOptions=d2;this.minPixelPadding=0;this.reversed=v(l2.reversed,this.reversed);this.visible=l2.visible;this.zoomEnabled=l2.zoomEnabled;this.hasNames="category"===F||true===l2.categories;this.categories=l2.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=D(l2.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=l2.minRange||l2.maxZoom;this.range=l2.range;this.offset=l2.offset||0;this.min=this.max=null;d2=v(l2.crosshair,M(b3.options.tooltip.crosshairs)[h2?0:1]);this.crosshair=true===d2?{}:d2;-1===b3.axes.indexOf(this)&&(h2?b3.axes.splice(b3.xAxis.length,0,this):b3.axes.push(this),b3[this.coll].push(this));this.series=this.series||[];b3.inverted&&!this.isZAxis&&h2&&"undefined"===typeof this.reversed&&(this.reversed=true);this.labelRotation=f(e2.rotation)?e2.rotation:void 0;a(this,l2);n(this,"afterInit")};b2.prototype.setOptions=function(b3){this.options=d(g2.defaultXAxisOptions,"yAxis"===this.coll&&g2.defaultYAxisOptions,[g2.defaultTopAxisOptions,g2.defaultRightAxisOptions,g2.defaultBottomAxisOptions,g2.defaultLeftAxisOptions][this.side],d(r[this.coll],b3));n(this,"afterSetOptions",{userOptions:b3})};b2.prototype.defaultLabelFormatter=function(b3){var d2=this.axis;b3=this.chart.numberFormatter;var h2=f(this.value)?this.value:NaN,l2=d2.chart.time,n2=this.dateTimeLabelFormat,v2=r.lang,a2=v2.numericSymbols;v2=v2.numericSymbolMagnitude||1e3;var e2=d2.logarithmic?Math.abs(h2):d2.tickInterval,F=a2&&a2.length;if(d2.categories)var k2="".concat(this.value);else if(n2)k2=l2.dateFormat(n2,h2);else if(F&&1e3<=e2)for(;F--&&"undefined"===typeof k2;)d2=Math.pow(v2,F+1),e2>=d2&&0===10*h2%d2&&null!==a2[F]&&0!==h2&&(k2=b3(h2/d2,-1)+a2[F]);"undefined"===typeof k2&&(k2=1e4<=Math.abs(h2)?b3(h2,-1):b3(h2,-1,void 0,""));return k2};b2.prototype.getSeriesExtremes=function(){var b3=this,d2=b3.chart,h2;n(this,"getSeriesExtremes",null,(function(){b3.hasVisibleSeries=false;b3.dataMin=b3.dataMax=b3.threshold=null;b3.softThreshold=!b3.isXAxis;b3.series.forEach((function(l2){if(l2.visible||!d2.options.chart.ignoreHiddenSeries){var n2=l2.options,a2=n2.threshold;b3.hasVisibleSeries=true;b3.positiveValuesOnly&&0>=a2&&(a2=null);if(b3.isXAxis){if(n2=l2.xData,n2.length){n2=b3.logarithmic?n2.filter(b3.validatePositiveValue):n2;h2=l2.getXExtremes(n2);var e2=h2.min;var F=h2.max;f(e2)||e2 instanceof Date||(n2=n2.filter(f),h2=l2.getXExtremes(n2),e2=h2.min,F=h2.max);n2.length&&(b3.dataMin=Math.min(v(b3.dataMin,e2),e2),b3.dataMax=Math.max(v(b3.dataMax,F),F))}}else if(l2=l2.applyExtremes(),f(l2.dataMin)&&(e2=l2.dataMin,b3.dataMin=Math.min(v(b3.dataMin,e2),e2)),f(l2.dataMax)&&(F=l2.dataMax,b3.dataMax=Math.max(v(b3.dataMax,F),F)),D(a2)&&(b3.threshold=a2),!n2.softThreshold||b3.positiveValuesOnly)b3.softThreshold=false}}))}));n(this,"afterGetSeriesExtremes")};b2.prototype.translate=function(b3,d2,h2,l2,n2,v2){var a2=this.linkedParent||this,F=l2&&a2.old?a2.old.min:a2.min;if(!f(F))return NaN;var k2=a2.minPixelPadding;n2=(a2.isOrdinal||a2.brokenAxis&&a2.brokenAxis.hasBreaks||a2.logarithmic&&n2)&&a2.lin2val;var w2=1,m2=0;l2=l2&&a2.old?a2.old.transA:a2.transA;l2||(l2=a2.transA);h2&&(w2*=-1,m2=a2.len);a2.reversed&&(w2*=-1,m2-=w2*(a2.sector||a2.len));d2?(v2=(b3*w2+m2-k2)/l2+F,n2&&(v2=a2.lin2val(v2))):(n2&&(b3=a2.val2lin(b3)),b3=w2*(b3-F)*l2,v2=(a2.isRadial?b3:e(b3))+m2+w2*k2+(f(v2)?l2*v2:0));return v2};b2.prototype.toPixels=function(b3,d2){return this.translate(b3,false,!this.horiz,void 0,true)+(d2?0:this.pos)};b2.prototype.toValue=function(b3,d2){return this.translate(b3-(d2?0:this.pos),true,!this.horiz,void 0,true)};b2.prototype.getPlotLinePath=function(b3){function d2(b4,d3,h3){"pass"!==q2&&(b4<d3||b4>h3)&&(q2?b4=k(b4,d3,h3):M2=true);return b4}var h2=this,l2=h2.chart,a2=h2.left,e2=h2.top,F=b3.old,w2=b3.value,m2=b3.lineWidth,E2=F&&l2.oldChartHeight||l2.chartHeight,c2=F&&l2.oldChartWidth||l2.chartWidth,p2=h2.transB,u2=b3.translatedValue,q2=b3.force,J2,r2,g3,t2,M2;b3={value:w2,lineWidth:m2,old:F,force:q2,acrossPanes:b3.acrossPanes,translatedValue:u2};n(this,"getPlotLinePath",b3,(function(b4){u2=v(u2,h2.translate(w2,void 0,void 0,F));u2=k(u2,-1e5,1e5);J2=g3=Math.round(u2+p2);r2=t2=Math.round(E2-u2-p2);f(u2)?h2.horiz?(r2=e2,t2=E2-h2.bottom,J2=g3=d2(J2,a2,a2+h2.width)):(J2=a2,g3=c2-h2.right,r2=t2=d2(r2,e2,e2+h2.height)):(M2=true,q2=false);b4.path=M2&&!q2?null:l2.renderer.crispLine([["M",J2,r2],["L",g3,t2]],m2||1)}));return b3.path};b2.prototype.getLinearTickPositions=function(b3,d2,h2){var f2=e(Math.floor(d2/b3)*b3);h2=e(Math.ceil(h2/b3)*b3);var l2=[],n2;e(f2+b3)===f2&&(n2=20);if(this.single)return[d2];for(d2=f2;d2<=h2;){l2.push(d2);d2=e(d2+b3,n2);if(d2===a2)break;var a2=d2}return l2};b2.prototype.getMinorTickInterval=function(){var b3=this.options;return true===b3.minorTicks?v(b3.minorTickInterval,"auto"):false===b3.minorTicks?null:b3.minorTickInterval};b2.prototype.getMinorTickPositions=function(){var b3=this.options,d2=this.tickPositions,h2=this.minorTickInterval,f2=this.pointRangePadding||0,l2=this.min-f2;f2=this.max+f2;var n2=f2-l2,a2=[];if(n2&&n2/h2<this.len/3){var v2=this.logarithmic;if(v2)this.paddedTicks.forEach((function(b4,d3,f3){d3&&a2.push.apply(a2,v2.getLogTickPositions(h2,f3[d3-1],f3[d3],true))}));else if(this.dateTime&&"auto"===this.getMinorTickInterval())a2=a2.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(h2),l2,f2,b3.startOfWeek));else for(b3=l2+(d2[0]-l2)%h2;b3<=f2&&b3!==a2[0];b3+=h2)a2.push(b3)}0!==a2.length&&this.trimTicks(a2);return a2};b2.prototype.adjustForMinRange=function(){var b3=this.options,d2=this.logarithmic,h2=this.min,f2=this.max,l2=0,n2,a2,e2,k2;this.isXAxis&&"undefined"===typeof this.minRange&&!d2&&(D(b3.min)||D(b3.max)||D(b3.floor)||D(b3.ceiling)?this.minRange=null:(this.series.forEach((function(b4){e2=b4.xData;k2=b4.xIncrement?1:e2.length-1;if(1<e2.length){for(n2=k2;0<n2;n2--)if(a2=e2[n2]-e2[n2-1],!l2||a2<l2)l2=a2}})),this.minRange=Math.min(5*l2,this.dataMax-this.dataMin)));if(f2-h2<this.minRange){var w2=this.dataMax-this.dataMin>=this.minRange;var E2=this.minRange;var c2=(E2-f2+h2)/2;c2=[h2-c2,v(b3.min,h2-c2)];w2&&(c2[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);h2=m(c2);f2=[h2+E2,v(b3.max,h2+E2)];w2&&(f2[2]=d2?d2.log2lin(this.dataMax):this.dataMax);f2=p(f2);f2-h2<E2&&(c2[0]=f2-E2,c2[1]=v(b3.min,f2-E2),h2=m(c2))}this.min=h2;this.max=f2};b2.prototype.getClosest=function(){var b3;this.categories?b3=1:this.series.forEach((function(d2){var h2=d2.closestPointRange,f2=d2.visible||!d2.chart.options.chart.ignoreHiddenSeries;!d2.noSharedTooltip&&D(h2)&&f2&&(b3=D(b3)?Math.min(b3,h2):h2)}));return b3};b2.prototype.nameToX=function(b3){var d2=w(this.options.categories),h2=d2?this.categories:this.names,f2=b3.options.x;b3.series.requireSorting=false;D(f2)||(f2=this.options.uniqueNames&&h2?d2?h2.indexOf(b3.name):v(h2.keys[b3.name],-1):b3.series.autoIncrement());if(-1===f2){if(!d2&&h2)var l2=h2.length}else l2=f2;"undefined"!==typeof l2?(this.names[l2]=b3.name,this.names.keys[b3.name]=l2):b3.x&&(l2=b3.x);return l2};b2.prototype.updateNames=function(){var b3=this,d2=this.names;0<d2.length&&(Object.keys(d2.keys).forEach((function(b4){delete d2.keys[b4]})),d2.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(d3){d3.xIncrement=null;if(!d3.points||d3.isDirtyData)b3.max=Math.max(b3.max,d3.xData.length-1),d3.processData(),d3.generatePoints();d3.data.forEach((function(h2,f2){if(h2&&h2.options&&"undefined"!==typeof h2.name){var l2=b3.nameToX(h2);"undefined"!==typeof l2&&l2!==h2.x&&(h2.x=l2,d3.xData[f2]=l2)}}))})))};b2.prototype.setAxisTranslation=function(){var b3=this,d2=b3.max-b3.min,h2=b3.linkedParent,f2=!!b3.categories,a2=b3.isXAxis,e2=b3.axisPointRange||0,k2=0,w2=0,m2=b3.transA;if(a2||f2||e2){var E2=b3.getClosest();h2?(k2=h2.minPointOffset,w2=h2.pointRangePadding):b3.series.forEach((function(d3){var h3=f2?1:a2?v(d3.options.pointRange,E2,0):b3.axisPointRange||0,n2=d3.options.pointPlacement;e2=Math.max(e2,h3);if(!b3.single||f2)d3=d3.is("xrange")?!a2:a2,k2=Math.max(k2,d3&&l(n2)?0:h3/2),w2=Math.max(w2,d3&&"on"===n2?0:h3)}));h2=b3.ordinal&&b3.ordinal.slope&&E2?b3.ordinal.slope/E2:1;b3.minPointOffset=k2*=h2;b3.pointRangePadding=w2*=h2;b3.pointRange=Math.min(e2,b3.single&&f2?1:d2);a2&&(b3.closestPointRange=E2)}b3.translationSlope=b3.transA=m2=b3.staticScale||b3.len/(d2+w2||1);b3.transB=b3.horiz?b3.left:b3.bottom;b3.minPixelPadding=m2*k2;n(this,"afterSetAxisTranslation")};b2.prototype.minFromRange=function(){return this.max-this.range};b2.prototype.setTickInterval=function(b3){var d2=this.chart,h2=this.logarithmic,l2=this.options,a2=this.isXAxis,k2=this.isLinked,w2=l2.tickPixelInterval,F=this.categories,m2=this.softThreshold,E2=l2.maxPadding,c2=l2.minPadding,p2=f(l2.tickInterval)&&0<=l2.tickInterval?l2.tickInterval:void 0,u2=f(this.threshold)?this.threshold:null;this.dateTime||F||k2||this.getTickAmount();var q2=v(this.userMin,l2.min);var J2=v(this.userMax,l2.max);if(k2){this.linkedParent=d2[this.coll][l2.linkedTo];var r2=this.linkedParent.getExtremes();this.min=v(r2.min,r2.dataMin);this.max=v(r2.max,r2.dataMax);l2.type!==this.linkedParent.options.type&&K(11,1,d2)}else{if(m2&&D(u2)){if(this.dataMin>=u2)r2=u2,c2=0;else if(this.dataMax<=u2){var g3=u2;E2=0}}this.min=v(q2,r2,this.dataMin);this.max=v(J2,g3,this.dataMax)}h2&&(this.positiveValuesOnly&&!b3&&0>=Math.min(this.min,v(this.dataMin,this.min))&&K(10,1,d2),this.min=e(h2.log2lin(this.min),16),this.max=e(h2.log2lin(this.max),16));this.range&&D(this.max)&&(this.userMin=this.min=q2=Math.max(this.dataMin,this.minFromRange()),this.userMax=J2=this.max,this.range=null);n(this,"foundExtremes");this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(F||this.axisPointRange||this.stacking&&this.stacking.usePercentage||k2)&&D(this.min)&&D(this.max)&&(d2=this.max-this.min)&&(!D(q2)&&c2&&(this.min-=d2*c2),!D(J2)&&E2&&(this.max+=d2*E2));f(this.userMin)||(f(l2.softMin)&&l2.softMin<this.min&&(this.min=q2=l2.softMin),f(l2.floor)&&(this.min=Math.max(this.min,l2.floor)));f(this.userMax)||(f(l2.softMax)&&l2.softMax>this.max&&(this.max=J2=l2.softMax),f(l2.ceiling)&&(this.max=Math.min(this.max,l2.ceiling)));m2&&D(this.dataMin)&&(u2=u2||0,!D(q2)&&this.min<u2&&this.dataMin>=u2?this.min=this.options.minRange?Math.min(u2,this.max-this.minRange):u2:!D(J2)&&this.max>u2&&this.dataMax<=u2&&(this.max=this.options.minRange?Math.max(u2,this.min+this.minRange):u2));f(this.min)&&f(this.max)&&!this.chart.polar&&this.min>this.max&&(D(this.options.min)?this.max=this.min:D(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:k2&&this.linkedParent&&!p2&&w2===this.linkedParent.options.tickPixelInterval?p2=this.linkedParent.tickInterval:v(p2,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,F?1:(this.max-this.min)*w2/Math.max(this.len,w2));if(a2&&!b3){var t2=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach((function(b4){b4.forceCrop=b4.forceCropping&&b4.forceCropping();b4.processData(t2)}));n(this,"postProcessData",{hasExtremesChanged:t2})}this.setAxisTranslation();n(this,"initialAxisTranslation");this.pointRange&&!p2&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));b3=v(l2.minTickInterval,this.dateTime&&!this.series.some((function(b4){return b4.noSharedTooltip}))?this.closestPointRange:0);!p2&&this.tickInterval<b3&&(this.tickInterval=b3);this.dateTime||this.logarithmic||p2||(this.tickInterval=P(this,this.tickInterval));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};b2.prototype.setTickPositions=function(){var b3=this.options,d2=b3.tickPositions,h2=b3.tickPositioner,l2=this.getMinorTickInterval(),a2=this.hasVerticalPanning(),v2="colorAxis"===this.coll,e2=(v2||!a2)&&b3.startOnTick;a2=(v2||!a2)&&b3.endOnTick;v2=[];var k2;this.tickmarkOffset=this.categories&&"between"===b3.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===l2&&this.tickInterval?this.tickInterval/5:l2;this.single=this.min===this.max&&D(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||false!==b3.allowDecimals);if(d2)v2=d2.slice();else if(f(this.min)&&f(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)v2=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,b3.units),this.min,this.max,b3.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,true);else if(this.logarithmic)v2=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(l2=b3=this.tickInterval;l2<=2*b3;)if(v2=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&v2.length>this.tickAmount)this.tickInterval=P(this,l2*=1.1);else break;else v2=[this.min,this.max],K(19,false,this.chart);v2.length>this.len&&(v2=[v2[0],v2[v2.length-1]],v2[0]===v2[1]&&(v2.length=1));h2&&(this.tickPositions=v2,(k2=h2.apply(this,[this.min,this.max]))&&(v2=k2))}this.tickPositions=v2;this.paddedTicks=v2.slice(0);this.trimTicks(v2,e2,a2);!this.isLinked&&f(this.min)&&f(this.max)&&(this.single&&2>v2.length&&!this.categories&&!this.series.some((function(b4){return b4.is("heatmap")&&"between"===b4.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),d2||k2||this.adjustTickAmount());n(this,"afterSetTickPositions")};b2.prototype.trimTicks=function(b3,d2,h2){var f2=b3[0],l2=b3[b3.length-1],a2=!this.isOrdinal&&this.minPointOffset||0;n(this,"trimTicks");if(!this.isLinked){if(d2&&-Infinity!==f2)this.min=f2;else for(;this.min-a2>b3[0];)b3.shift();if(h2)this.max=l2;else for(;this.max+a2<b3[b3.length-1];)b3.pop();0===b3.length&&D(f2)&&!this.options.tickPositions&&b3.push((l2+f2)/2)}};b2.prototype.alignToOthers=function(){var b3=this,d2=[this],h2=b3.options,l2="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,n2=[],a2;b3.thresholdAlignment=void 0;if((false!==this.chart.options.chart.alignTicks&&h2.alignTicks||l2)&&false!==h2.startOnTick&&false!==h2.endOnTick&&!b3.logarithmic){var v2=function(b4){var d3=b4.options;return[b4.horiz?d3.left:d3.top,d3.width,d3.height,d3.pane].join()},e2=v2(this);this.chart[this.coll].forEach((function(h3){var f2=h3.series;f2.length&&f2.some((function(b4){return b4.visible}))&&h3!==b3&&v2(h3)===e2&&(a2=true,d2.push(h3))}))}if(a2&&l2){d2.forEach((function(d3){d3=d3.getThresholdAlignment(b3);f(d3)&&n2.push(d3)}));var k2=1<n2.length?n2.reduce((function(b4,d3){return b4+d3}),0)/n2.length:void 0;d2.forEach((function(b4){b4.thresholdAlignment=k2}))}return a2};b2.prototype.getThresholdAlignment=function(b3){(!f(this.dataMin)||this!==b3&&this.series.some((function(b4){return b4.isDirty||b4.isDirtyData})))&&this.getSeriesExtremes();if(f(this.threshold))return b3=k((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(b3=1-b3),b3};b2.prototype.getTickAmount=function(){var b3=this.options,d2=b3.tickPixelInterval,h2=b3.tickAmount;!D(b3.tickInterval)&&!h2&&this.len<d2&&!this.isRadial&&!this.logarithmic&&b3.startOnTick&&b3.endOnTick&&(h2=2);!h2&&this.alignToOthers()&&(h2=Math.ceil(this.len/d2)+1);4>h2&&(this.finalTickAmt=h2,h2=5);this.tickAmount=h2};b2.prototype.adjustTickAmount=function(){var b3=this,d2=b3.finalTickAmt,h2=b3.max,l2=b3.min,n2=b3.options,a2=b3.tickPositions,k2=b3.tickAmount,w2=b3.thresholdAlignment,m2=a2&&a2.length,E2=v(b3.threshold,b3.softThreshold?0:null);var c2=b3.tickInterval;if(f(w2)){var p2=.5>w2?Math.ceil(w2*(k2-1)):Math.floor(w2*(k2-1));n2.reversed&&(p2=k2-1-p2)}if(b3.hasData()&&f(l2)&&f(h2)){w2=function(){b3.transA*=(m2-1)/(k2-1);b3.min=n2.startOnTick?a2[0]:Math.min(l2,a2[0]);b3.max=n2.endOnTick?a2[a2.length-1]:Math.max(h2,a2[a2.length-1])};if(f(p2)&&f(b3.threshold)){for(;a2[p2]!==E2||a2.length!==k2||a2[0]>l2||a2[a2.length-1]<h2;){a2.length=0;for(a2.push(b3.threshold);a2.length<k2;)void 0===a2[p2]||a2[p2]>b3.threshold?a2.unshift(e(a2[0]-c2)):a2.push(e(a2[a2.length-1]+c2));if(c2>8*b3.tickInterval)break;c2*=2}w2()}else if(m2<k2){for(;a2.length<k2;)a2.length%2||l2===E2?a2.push(e(a2[a2.length-1]+c2)):a2.unshift(e(a2[0]-c2));w2()}if(D(d2)){for(c2=E2=a2.length;c2--;)(3===d2&&1===c2%2||2>=d2&&0<c2&&c2<E2-1)&&a2.splice(c2,1);b3.finalTickAmt=void 0}}};b2.prototype.setScale=function(){var b3=false,d2=false;this.series.forEach((function(h3){b3=b3||h3.isDirtyData||h3.isDirty;d2=d2||h3.xAxis&&h3.xAxis.isDirty||false}));this.setAxisSize();var h2=this.len!==(this.old&&this.old.len);h2||b3||d2||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=false,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=h2||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();b3&&this.panningState&&(this.panningState.isDirty=true);n(this,"afterSetScale")};b2.prototype.setExtremes=function(b3,d2,h2,f2,l2){var a2=this,e2=a2.chart;h2=v(h2,true);a2.series.forEach((function(b4){delete b4.kdTree}));l2=u(l2,{min:b3,max:d2});n(a2,"setExtremes",l2,(function(){a2.userMin=b3;a2.userMax=d2;a2.eventArgs=l2;h2&&e2.redraw(f2)}))};b2.prototype.zoom=function(b3,d2){var h2=this,f2=this.dataMin,l2=this.dataMax,a2=this.options,e2=Math.min(f2,v(a2.min,f2)),k2=Math.max(l2,v(a2.max,l2));b3={newMin:b3,newMax:d2};n(this,"zoom",b3,(function(b4){var d3=b4.newMin,a3=b4.newMax;if(d3!==h2.min||a3!==h2.max)h2.allowZoomOutside||(D(f2)&&(d3<e2&&(d3=e2),d3>k2&&(d3=k2)),D(l2)&&(a3<e2&&(a3=e2),a3>k2&&(a3=k2))),h2.displayBtn="undefined"!==typeof d3||"undefined"!==typeof a3,h2.setExtremes(d3,a3,false,void 0,{trigger:"zoom"});b4.zoomed=true}));return b3.zoomed};b2.prototype.setAxisSize=function(){var b3=this.chart,d2=this.options,h2=d2.offsets||[0,0,0,0],f2=this.horiz,l2=this.width=Math.round(E(v(d2.width,b3.plotWidth-h2[3]+h2[1]),b3.plotWidth)),a2=this.height=Math.round(E(v(d2.height,b3.plotHeight-h2[0]+h2[2]),b3.plotHeight)),n2=this.top=Math.round(E(v(d2.top,b3.plotTop+h2[0]),b3.plotHeight,b3.plotTop));d2=this.left=Math.round(E(v(d2.left,b3.plotLeft+h2[3]),b3.plotWidth,b3.plotLeft));this.bottom=b3.chartHeight-a2-n2;this.right=b3.chartWidth-l2-d2;this.len=Math.max(f2?l2:a2,0);this.pos=f2?d2:n2};b2.prototype.getExtremes=function(){var b3=this.logarithmic;return{min:b3?e(b3.lin2log(this.min)):this.min,max:b3?e(b3.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};b2.prototype.getThreshold=function(b3){var d2=this.logarithmic,h2=d2?d2.lin2log(this.min):this.min;d2=d2?d2.lin2log(this.max):this.max;null===b3||-Infinity===b3?b3=h2:Infinity===b3?b3=d2:h2>b3?b3=h2:d2<b3&&(b3=d2);return this.translate(b3,0,1,0,1)};b2.prototype.autoLabelAlign=function(b3){var d2=(v(b3,0)-90*this.side+720)%360;b3={align:"center"};n(this,"autoLabelAlign",b3,(function(b4){15<d2&&165>d2?b4.align="right":195<d2&&345>d2&&(b4.align="left")}));return b3.align};b2.prototype.tickSize=function(b3){var d2=this.options,h2=v(d2["tick"===b3?"tickWidth":"minorTickWidth"],"tick"===b3&&this.isXAxis&&!this.categories?1:0),f2=d2["tick"===b3?"tickLength":"minorTickLength"];if(h2&&f2){"inside"===d2[b3+"Position"]&&(f2=-f2);var l2=[f2,h2]}b3={tickSize:l2};n(this,"afterTickSize",b3);return b3.tickSize};b2.prototype.labelMetrics=function(){var b3=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[b3]&&this.ticks[b3].label)};b2.prototype.unsquish=function(){var b3=this.options.labels,d2=this.horiz,h2=this.tickInterval,l2=this.len/(((this.categories?1:0)+this.max-this.min)/h2),a2=b3.rotation,n2=this.labelMetrics(),k2=Math.max(this.max-this.min,0),w2=function(b4){var d3=b4/(l2||1);d3=1<d3?Math.ceil(d3):1;d3*h2>k2&&Infinity!==b4&&Infinity!==l2&&k2&&(d3=Math.ceil(k2/h2));return e(d3*h2)},m2=h2,E2=Number.MAX_VALUE;if(d2){if(!b3.staggerLines)if(f(a2))var c2=[a2];else l2<b3.autoRotationLimit&&(c2=b3.autoRotation);if(c2)for(var p2=d2=void 0,u2=0,J2=c2;u2<J2.length;u2++){var r2=J2[u2];if(r2===a2||r2&&-90<=r2&&90>=r2){if(d2=w2(Math.abs(n2.h/Math.sin(q*r2))),p2=d2+Math.abs(r2/360),p2<E2){E2=p2;var g3=r2;m2=d2}}}}else m2=w2(n2.h);this.autoRotation=c2;this.labelRotation=v(g3,f(a2)?a2:0);return b3.step?h2:m2};b2.prototype.getSlotWidth=function(b3){var d2=this.chart,h2=this.horiz,l2=this.options.labels,a2=Math.max(this.tickPositions.length-(this.categories?0:1),1),n2=d2.margin[3];if(b3&&f(b3.slotWidth))return b3.slotWidth;if(h2&&2>l2.step)return l2.rotation?0:(this.staggerLines||1)*this.len/a2;if(!h2){b3=l2.style.width;if(void 0!==b3)return parseInt(String(b3),10);if(n2)return n2-d2.spacing[3]}return.33*d2.chartWidth};b2.prototype.renderUnsquish=function(){var b3=this.chart,d2=b3.renderer,h2=this.tickPositions,f2=this.ticks,a2=this.options.labels,n2=a2.style,v2=this.horiz,e2=this.getSlotWidth(),k2=Math.max(1,Math.round(e2-2*a2.padding)),w2={},m2=this.labelMetrics(),E2=n2.textOverflow,c2=0;l(a2.rotation)||(w2.rotation=a2.rotation||0);h2.forEach((function(b4){b4=f2[b4];b4.movedLabel&&b4.replaceMovedLabel();b4&&b4.label&&b4.label.textPxLength>c2&&(c2=b4.label.textPxLength)}));this.maxLabelLength=c2;if(this.autoRotation)c2>k2&&c2>m2.h?w2.rotation=this.labelRotation:this.labelRotation=0;else if(e2){var p2=k2;if(!E2){var u2="clip";for(k2=h2.length;!v2&&k2--;){var q2=h2[k2];if(q2=f2[q2].label)q2.styles&&"ellipsis"===q2.styles.textOverflow?q2.css({textOverflow:"clip"}):q2.textPxLength>e2&&q2.css({width:e2+"px"}),q2.getBBox().height>this.len/h2.length-(m2.h-m2.f)&&(q2.specificTextOverflow="ellipsis")}}}w2.rotation&&(p2=c2>.5*b3.chartHeight?.33*b3.chartHeight:c2,E2||(u2="ellipsis"));if(this.labelAlign=a2.align||this.autoLabelAlign(this.labelRotation))w2.align=this.labelAlign;h2.forEach((function(b4){var d3=(b4=f2[b4])&&b4.label,h3=n2.width,l2={};d3&&(d3.attr(w2),b4.shortenLabel?b4.shortenLabel():p2&&!h3&&"nowrap"!==n2.whiteSpace&&(p2<d3.textPxLength||"SPAN"===d3.element.tagName)?(l2.width=p2+"px",E2||(l2.textOverflow=d3.specificTextOverflow||u2),d3.css(l2)):d3.styles&&d3.styles.width&&!l2.width&&!h3&&d3.css({width:null}),delete d3.specificTextOverflow,b4.rotation=w2.rotation)}),this);this.tickRotCorr=d2.rotCorr(m2.b,this.labelRotation||0,0!==this.side)};b2.prototype.hasData=function(){return this.series.some((function(b3){return b3.hasData()}))||this.options.showEmpty&&D(this.min)&&D(this.max)};b2.prototype.addTitle=function(b3){var h2=this.chart.renderer,f2=this.horiz,l2=this.opposite,a2=this.options.title,n2=this.chart.styledMode,v2;this.axisTitle||((v2=a2.textAlign)||(v2=(f2?{low:"left",middle:"center",high:"right"}:{low:l2?"right":"left",middle:"center",high:l2?"left":"right"})[a2.align]),this.axisTitle=h2.text(a2.text||"",0,0,a2.useHTML).attr({zIndex:7,rotation:a2.rotation,align:v2}).addClass("highcharts-axis-title"),n2||this.axisTitle.css(d(a2.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=true);n2||a2.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[b3?"show":"hide"](b3)};b2.prototype.generateTick=function(b3){var d2=this.ticks;d2[b3]?d2[b3].addLabel():d2[b3]=new C(this,b3)};b2.prototype.getOffset=function(){var b3=this,d2=this,f2=d2.chart,l2=d2.horiz,a2=d2.options,e2=d2.side,k2=d2.ticks,w2=d2.tickPositions,m2=d2.coll,E2=d2.axisParent,c2=f2.renderer,p2=f2.inverted&&!d2.isZAxis?[1,0,3,2][e2]:e2,u2=d2.hasData(),q2=a2.title,J2=a2.labels,r2=f2.axisOffset;f2=f2.clipOffset;var g3=[-1,1,1,-1][e2],t2=a2.className,M2,O2=0,G2=0,P2=0;d2.showAxis=M2=u2||a2.showEmpty;d2.staggerLines=d2.horiz&&J2.staggerLines||void 0;if(!d2.axisGroup){var x2=function(d3,h2,f3){return c2.g(d3).attr({zIndex:f3}).addClass("highcharts-".concat(m2.toLowerCase()).concat(h2," ")+(b3.isRadial?"highcharts-radial-axis".concat(h2," "):"")+(t2||"")).add(E2)};d2.gridGroup=x2("grid","-grid",a2.gridZIndex);d2.axisGroup=x2("axis","",a2.zIndex);d2.labelGroup=x2("axis-labels","-labels",J2.zIndex)}u2||d2.isLinked?(w2.forEach((function(b4){d2.generateTick(b4)})),d2.renderUnsquish(),d2.reserveSpaceDefault=0===e2||2===e2||{1:"left",3:"right"}[e2]===d2.labelAlign,v(J2.reserveSpace,"center"===d2.labelAlign?true:null,d2.reserveSpaceDefault)&&w2.forEach((function(b4){P2=Math.max(k2[b4].getLabelSize(),P2)})),d2.staggerLines&&(P2*=d2.staggerLines),d2.labelOffset=P2*(d2.opposite?-1:1)):h(k2,(function(b4,d3){b4.destroy();delete k2[d3]}));if(q2&&q2.text&&false!==q2.enabled&&(d2.addTitle(M2),M2&&false!==q2.reserveSpace)){d2.titleOffset=O2=d2.axisTitle.getBBox()[l2?"height":"width"];var T=q2.offset;G2=D(T)?0:v(q2.margin,l2?5:10)}d2.renderLine();d2.offset=g3*v(a2.offset,r2[e2]?r2[e2]+(a2.margin||0):0);d2.tickRotCorr=d2.tickRotCorr||{x:0,y:0};q2=0===e2?-d2.labelMetrics().h:2===e2?d2.tickRotCorr.y:0;u2=Math.abs(P2)+G2;P2&&(u2=u2-q2+g3*(l2?v(J2.y,d2.tickRotCorr.y+8*g3):J2.x));d2.axisTitleMargin=v(T,u2);d2.getMaxLabelDimensions&&(d2.maxLabelDimensions=d2.getMaxLabelDimensions(k2,w2));"colorAxis"!==m2&&(l2=this.tickSize("tick"),r2[e2]=Math.max(r2[e2],(d2.axisTitleMargin||0)+O2+g3*d2.offset,u2,w2&&w2.length&&l2?l2[0]+g3*d2.offset:0),a2=!d2.axisLine||a2.offset?0:2*Math.floor(d2.axisLine.strokeWidth()/2),f2[p2]=Math.max(f2[p2],a2));n(this,"afterGetOffset")};b2.prototype.getLinePath=function(b3){var d2=this.chart,h2=this.opposite,f2=this.offset,l2=this.horiz,a2=this.left+(h2?this.width:0)+f2;f2=d2.chartHeight-this.bottom-(h2?this.height:0)+f2;h2&&(b3*=-1);return d2.renderer.crispLine([["M",l2?this.left:a2,l2?f2:this.top],["L",l2?d2.chartWidth-this.right:a2,l2?f2:d2.chartHeight-this.bottom]],b3)};b2.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};b2.prototype.getTitlePosition=function(){var b3=this.horiz,d2=this.left,h2=this.top,f2=this.len,l2=this.options.title,a2=b3?d2:h2,v2=this.opposite,e2=this.offset,k2=l2.x,w2=l2.y,m2=this.axisTitle,E2=this.chart.renderer.fontMetrics(l2.style.fontSize,m2);m2=m2?Math.max(m2.getBBox(false,0).height-E2.h-1,0):0;f2={low:a2+(b3?0:f2),middle:a2+f2/2,high:a2+(b3?f2:0)}[l2.align];d2=(b3?h2+this.height:d2)+(b3?1:-1)*(v2?-1:1)*(this.axisTitleMargin||0)+[-m2,m2,E2.f,-m2][this.side];b3={x:b3?f2+k2:d2+(v2?this.width:0)+e2+k2,y:b3?d2+w2-(v2?this.height:0)+e2:f2+w2};n(this,"afterGetTitlePosition",{titlePosition:b3});return b3};b2.prototype.renderMinorTick=function(b3,d2){var h2=this.minorTicks;h2[b3]||(h2[b3]=new C(this,b3,"minor"));d2&&h2[b3].isNew&&h2[b3].render(null,true);h2[b3].render(null,false,1)};b2.prototype.renderTick=function(b3,d2,h2){var f2=this.ticks;if(!this.isLinked||b3>=this.min&&b3<=this.max||this.grid&&this.grid.isColumn)f2[b3]||(f2[b3]=new C(this,b3)),h2&&f2[b3].isNew&&f2[b3].render(d2,true,-1),f2[b3].render(d2)};b2.prototype.render=function(){var b3=this,d2=b3.chart,l2=b3.logarithmic,a2=b3.options,v2=b3.isLinked,e2=b3.tickPositions,k2=b3.axisTitle,w2=b3.ticks,m2=b3.minorTicks,E2=b3.alternateBands,c2=a2.stackLabels,p2=a2.alternateGridColor,u2=b3.tickmarkOffset,q2=b3.axisLine,J2=b3.showAxis,r2=t(d2.renderer.globalAnimation),g3,M2;b3.labelEdge.length=0;b3.overlap=false;[w2,m2,E2].forEach((function(b4){h(b4,(function(b5){b5.isActive=false}))}));if(b3.hasData()||v2){var D2=b3.chart.hasRendered&&b3.old&&f(b3.old.min);b3.minorTickInterval&&!b3.categories&&b3.getMinorTickPositions().forEach((function(d3){b3.renderMinorTick(d3,D2)}));e2.length&&(e2.forEach((function(d3,h2){b3.renderTick(d3,h2,D2)})),u2&&(0===b3.min||b3.single)&&(w2[-1]||(w2[-1]=new C(b3,-1,null,true)),w2[-1].render(-1)));p2&&e2.forEach((function(h2,f2){M2="undefined"!==typeof e2[f2+1]?e2[f2+1]+u2:b3.max-u2;0===f2%2&&h2<b3.max&&M2<=b3.max+(d2.polar?-u2:u2)&&(E2[h2]||(E2[h2]=new z.PlotLineOrBand(b3)),g3=h2+u2,E2[h2].options={from:l2?l2.lin2log(g3):g3,to:l2?l2.lin2log(M2):M2,color:p2,className:"highcharts-alternate-grid"},E2[h2].render(),E2[h2].isActive=true)}));b3._addedPlotLB||(b3._addedPlotLB=true,(a2.plotLines||[]).concat(a2.plotBands||[]).forEach((function(d3){b3.addPlotBandOrLine(d3)})))}[w2,m2,E2].forEach((function(b4){var f2=[],l3=r2.duration;h(b4,(function(b5,d3){b5.isActive||(b5.render(d3,false,0),b5.isActive=false,f2.push(d3))}));O((function(){for(var d3=f2.length;d3--;)b4[f2[d3]]&&!b4[f2[d3]].isActive&&(b4[f2[d3]].destroy(),delete b4[f2[d3]])}),b4!==E2&&d2.hasRendered&&l3?l3:0)}));q2&&(q2[q2.isPlaced?"animate":"attr"]({d:this.getLinePath(q2.strokeWidth())}),q2.isPlaced=true,q2[J2?"show":"hide"](J2));k2&&J2&&(a2=b3.getTitlePosition(),k2[k2.isNew?"attr":"animate"](a2),k2.isNew=false);c2&&c2.enabled&&b3.stacking&&b3.stacking.renderStackTotals();b3.old={len:b3.len,max:b3.max,min:b3.min,transA:b3.transA,userMax:b3.userMax,userMin:b3.userMin};b3.isDirty=false;n(this,"afterRender")};b2.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach((function(b3){b3.render()})));this.series.forEach((function(b3){b3.isDirty=true}))};b2.prototype.getKeepProps=function(){return this.keepProps||b2.keepProps};b2.prototype.destroy=function(b3){var d2=this,f2=d2.plotLinesAndBands,l2=this.eventOptions;n(this,"destroy",{keepEvents:b3});b3||J(d2);[d2.ticks,d2.minorTicks,d2.alternateBands].forEach((function(b4){G(b4)}));if(f2)for(b3=f2.length;b3--;)f2[b3].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach((function(b4){d2[b4]&&(d2[b4]=d2[b4].destroy())}));for(var a2 in d2.plotLinesAndBandsGroups)d2.plotLinesAndBandsGroups[a2]=d2.plotLinesAndBandsGroups[a2].destroy();h(d2,(function(b4,h2){-1===d2.getKeepProps().indexOf(h2)&&delete d2[h2]}));this.eventOptions=l2};b2.prototype.drawCrosshair=function(b3,d2){var h2=this.crosshair,f2=v(h2&&h2.snap,true),l2=this.chart,a2,e2=this.cross;n(this,"drawCrosshair",{e:b3,point:d2});b3||(b3=this.cross&&this.cross.e);if(h2&&false!==(D(d2)||!f2)){f2?D(d2)&&(a2=v("colorAxis"!==this.coll?d2.crosshairPos:null,this.isXAxis?d2.plotX:this.len-d2.plotY)):a2=b3&&(this.horiz?b3.chartX-this.pos:this.len-b3.chartY+this.pos);if(D(a2)){var k2={value:d2&&(this.isXAxis?d2.x:v(d2.stackY,d2.y)),translatedValue:a2};l2.polar&&u(k2,{isCrosshair:true,chartX:b3&&b3.chartX,chartY:b3&&b3.chartY,point:d2});k2=this.getPlotLinePath(k2)||null}if(!D(k2)){this.hideCrosshair();return}f2=this.categories&&!this.isRadial;e2||(this.cross=e2=l2.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(f2?"category ":"thin ")+(h2.className||"")).attr({zIndex:v(h2.zIndex,2)}).add(),l2.styledMode||(e2.attr({stroke:h2.color||(f2?y.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":v(h2.width,1)}).css({"pointer-events":"none"}),h2.dashStyle&&e2.attr({dashstyle:h2.dashStyle})));e2.show().attr({d:k2});f2&&!h2.width&&e2.attr({"stroke-width":this.transA});this.cross.e=b3}else this.hideCrosshair();n(this,"afterDrawCrosshair",{e:b3,point:d2})};b2.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();n(this,"afterHideCrosshair")};b2.prototype.hasVerticalPanning=function(){var b3=this.chart.options.chart.panning;return!!(b3&&b3.enabled&&/y/.test(b3.type))};b2.prototype.validatePositiveValue=function(b3){return f(b3)&&0<b3};b2.prototype.update=function(b3,h2){var f2=this.chart;b3=d(this.userOptions,b3);this.destroy(true);this.init(f2,b3);f2.isDirtyBox=true;v(h2,true)&&f2.redraw()};b2.prototype.remove=function(b3){for(var d2=this.chart,h2=this.coll,f2=this.series,l2=f2.length;l2--;)f2[l2]&&f2[l2].remove(false);H(d2.axes,this);H(d2[h2],this);d2[h2].forEach((function(b4,d3){b4.options.index=b4.userOptions.index=d3}));this.destroy();d2.isDirtyBox=true;v(b3,true)&&d2.redraw()};b2.prototype.setTitle=function(b3,d2){this.update({title:b3},d2)};b2.prototype.setCategories=function(b3,d2){this.update({categories:b3},d2)};b2.defaultOptions=g2.defaultXAxisOptions;b2.keepProps="extKey hcEvents names series userMax userMin".split(" ");return b2}();return c}));I(g,"Core/Axis/DateTimeAxis.js",[g["Core/Utilities.js"]],(function(c){var g2=c.addEvent,y=c.getMagnitude,A=c.normalizeTickInterval,B=c.timeUnits,z;(function(c2){function x(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function t(c3){"datetime"!==c3.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new a(this))}var r=[];c2.compose=function(a2){-1===r.indexOf(a2)&&(r.push(a2),a2.keepProps.push("dateTime"),a2.prototype.getTimeTicks=x,g2(a2,"init",t));return a2};var a=function(){function a2(a3){this.axis=a3}a2.prototype.normalizeTimeTickInterval=function(a3,c3){var k=c3||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];c3=k[k.length-1];var e=B[c3[0]],m=c3[1],p;for(p=0;p<k.length&&!(c3=k[p],e=B[c3[0]],m=c3[1],k[p+1]&&a3<=(e*m[m.length-1]+B[k[p+1][0]])/2);p++);e===B.year&&a3<5*e&&(m=[1,2,5]);a3=A(a3/e,m,"year"===c3[0]?Math.max(y(a3/e),1):1);return{unitRange:e,count:a3,unitName:c3[0]}};a2.prototype.getXDateFormat=function(a3,c3){var k=this.axis,e=k.chart.time;return k.closestPointRange?e.getDateFormat(k.closestPointRange,a3,k.options.startOfWeek,c3)||e.resolveDTLFormat(c3.year).main:e.resolveDTLFormat(c3.day).main};return a2}();c2.Additions=a})(z||(z={}));return z}));I(g,"Core/Axis/LogarithmicAxis.js",[g["Core/Utilities.js"]],(function(c){var g2=c.addEvent,y=c.normalizeTickInterval,A=c.pick,B;(function(c2){function C(a){var c3=this.logarithmic;"logarithmic"!==a.userOptions.type?this.logarithmic=void 0:c3||(this.logarithmic=new r(this))}function x(){var a=this.logarithmic;a&&(this.lin2val=function(c3){return a.lin2log(c3)},this.val2lin=function(c3){return a.log2lin(c3)})}var t=[];c2.compose=function(a){-1===t.indexOf(a)&&(t.push(a),a.keepProps.push("logarithmic"),g2(a,"init",C),g2(a,"afterInit",x));return a};var r=function(){function a(a2){this.axis=a2}a.prototype.getLogTickPositions=function(a2,m,c3,k){var e=this.axis,p=e.len,q=e.options,r2=[];k||(this.minorAutoInterval=void 0);if(.5<=a2)a2=Math.round(a2),r2=e.getLinearTickPositions(a2,m,c3);else if(.08<=a2){var g3=Math.floor(m),u,n=q=void 0;for(p=.3<a2?[1,2,4]:.15<a2?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];g3<c3+1&&!n;g3++){var w=p.length;for(u=0;u<w&&!n;u++){var f=this.log2lin(this.lin2log(g3)*p[u]);f>m&&(!k||q<=c3)&&"undefined"!==typeof q&&r2.push(q);q>c3&&(n=true);q=f}}}else m=this.lin2log(m),c3=this.lin2log(c3),a2=k?e.getMinorTickInterval():q.tickInterval,a2=A("auto"===a2?null:a2,this.minorAutoInterval,q.tickPixelInterval/(k?5:1)*(c3-m)/((k?p/e.tickPositions.length:p)||1)),a2=y(a2),r2=e.getLinearTickPositions(a2,m,c3).map(this.log2lin),k||(this.minorAutoInterval=a2/5);k||(e.tickInterval=a2);return r2};a.prototype.lin2log=function(a2){return Math.pow(10,a2)};a.prototype.log2lin=function(a2){return Math.log(a2)/Math.LN10};return a}();c2.Additions=r})(B||(B={}));return B}));I(g,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[g["Core/Utilities.js"]],(function(c){var g2=c.erase,y=c.extend,A=c.isNumber,B;(function(c2){var C=[],x;c2.compose=function(c3,a){x||(x=c3);-1===C.indexOf(a)&&(C.push(a),y(a.prototype,t.prototype));return a};var t=function(){function c3(){}c3.prototype.getPlotBandPath=function(a,c4,m){void 0===m&&(m=this.options);var p=this.getPlotLinePath({value:c4,force:true,acrossPanes:m.acrossPanes}),k=[],e=this.horiz;c4=!A(this.min)||!A(this.max)||a<this.min&&c4<this.min||a>this.max&&c4>this.max;a=this.getPlotLinePath({value:a,force:true,acrossPanes:m.acrossPanes});m=1;if(a&&p){if(c4){var q=a.toString()===p.toString();m=0}for(c4=0;c4<a.length;c4+=2){var r=a[c4],g3=a[c4+1],t2=p[c4],u=p[c4+1];"M"!==r[0]&&"L"!==r[0]||"M"!==g3[0]&&"L"!==g3[0]||"M"!==t2[0]&&"L"!==t2[0]||"M"!==u[0]&&"L"!==u[0]||(e&&t2[1]===r[1]?(t2[1]+=m,u[1]+=m):e||t2[2]!==r[2]||(t2[2]+=m,u[2]+=m),k.push(["M",r[1],r[2]],["L",g3[1],g3[2]],["L",u[1],u[2]],["L",t2[1],t2[2]],["Z"]));k.isFlat=q}}return k};c3.prototype.addPlotBand=function(a){return this.addPlotBandOrLine(a,"plotBands")};c3.prototype.addPlotLine=function(a){return this.addPlotBandOrLine(a,"plotLines")};c3.prototype.addPlotBandOrLine=function(a,c4){var m=this,p=this.userOptions,k=new x(this,a);this.visible&&(k=k.render());if(k){this._addedPlotLB||(this._addedPlotLB=true,(p.plotLines||[]).concat(p.plotBands||[]).forEach((function(a2){m.addPlotBandOrLine(a2)})));if(c4){var e=p[c4]||[];e.push(a);p[c4]=e}this.plotLinesAndBands.push(k)}return k};c3.prototype.removePlotBandOrLine=function(a){var c4=this.plotLinesAndBands,m=this.options,p=this.userOptions;if(c4){for(var k=c4.length;k--;)c4[k].id===a&&c4[k].destroy();[m.plotLines||[],p.plotLines||[],m.plotBands||[],p.plotBands||[]].forEach((function(e){for(k=e.length;k--;)(e[k]||{}).id===a&&g2(e,e[k])}))}};c3.prototype.removePlotBand=function(a){this.removePlotBandOrLine(a)};c3.prototype.removePlotLine=function(a){this.removePlotBandOrLine(a)};return c3}()})(B||(B={}));return B}));I(g,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[g["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],g["Core/Utilities.js"]],(function(c,g2){var y=g2.arrayMax,L=g2.arrayMin,B=g2.defined,z=g2.destroyObjectProperties,C=g2.erase,x=g2.fireEvent,t=g2.merge,r=g2.objectEach,a=g2.pick;g2=function(){function q(a2,c2){this.axis=a2;c2&&(this.options=c2,this.id=c2.id)}q.compose=function(a2){return c.compose(q,a2)};q.prototype.render=function(){x(this,"render");var c2=this,p=c2.axis,k=p.horiz,e=p.logarithmic,q2=c2.options,g3=q2.color,H=a(q2.zIndex,0),C2=q2.events,u={},n=p.chart.renderer,w=q2.label,f=c2.label,l=q2.to,d=q2.from,b=q2.value,h=c2.svgElem,v=[],E=B(d)&&B(l);v=B(b);var J=!h,M={class:"highcharts-plot-"+(E?"band ":"line ")+(q2.className||"")},O=E?"bands":"lines";e&&(d=e.log2lin(d),l=e.log2lin(l),b=e.log2lin(b));p.chart.styledMode||(v?(M.stroke=g3||"#999999",M["stroke-width"]=a(q2.width,1),q2.dashStyle&&(M.dashstyle=q2.dashStyle)):E&&(M.fill=g3||"#e6ebf5",q2.borderWidth&&(M.stroke=q2.borderColor,M["stroke-width"]=q2.borderWidth)));u.zIndex=H;O+="-"+H;(e=p.plotLinesAndBandsGroups[O])||(p.plotLinesAndBandsGroups[O]=e=n.g("plot-"+O).attr(u).add());J&&(c2.svgElem=h=n.path().attr(M).add(e));if(v)v=p.getPlotLinePath({value:b,lineWidth:h.strokeWidth(),acrossPanes:q2.acrossPanes});else if(E)v=p.getPlotBandPath(d,l,q2);else return;!c2.eventsAdded&&C2&&(r(C2,(function(b2,d2){h.on(d2,(function(b3){C2[d2].apply(c2,[b3])}))})),c2.eventsAdded=true);(J||!h.d)&&v&&v.length?h.attr({d:v}):h&&(v?(h.show(),h.animate({d:v})):h.d&&(h.hide(),f&&(c2.label=f=f.destroy())));w&&(B(w.text)||B(w.formatter))&&v&&v.length&&0<p.width&&0<p.height&&!v.isFlat?(w=t({align:k&&E&&"center",x:k?!E&&4:10,verticalAlign:!k&&E&&"middle",y:k?E?16:10:E?6:-4,rotation:k&&!E&&90},w),this.renderLabel(w,v,E,H)):f&&f.hide();return c2};q.prototype.renderLabel=function(a2,c2,k,e){var m=this.axis,p=m.chart.renderer,q2=this.label;q2||(this.label=q2=p.text(this.getLabelText(a2),0,0,a2.useHTML).attr({align:a2.textAlign||a2.align,rotation:a2.rotation,class:"highcharts-plot-"+(k?"band":"line")+"-label "+(a2.className||""),zIndex:e}).add(),m.chart.styledMode||q2.css(t({textOverflow:"ellipsis"},a2.style)));e=c2.xBounds||[c2[0][1],c2[1][1],k?c2[2][1]:c2[0][1]];c2=c2.yBounds||[c2[0][2],c2[1][2],k?c2[2][2]:c2[0][2]];k=L(e);p=L(c2);q2.align(a2,false,{x:k,y:p,width:y(e)-k,height:y(c2)-p});q2.alignValue&&"left"!==q2.alignValue||(a2=a2.clip?m.width:m.chart.chartWidth,q2.css({width:(90===q2.rotation?m.height-(q2.alignAttr.y-m.top):a2-(q2.alignAttr.x-m.left))+"px"}));q2.show(true)};q.prototype.getLabelText=function(a2){return B(a2.formatter)?a2.formatter.call(this):a2.text};q.prototype.destroy=function(){C(this.axis.plotLinesAndBands,this);delete this.axis;z(this)};return q}();return g2}));I(g,"Core/Tooltip.js",[g["Core/FormatUtilities.js"],g["Core/Globals.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B){var z=c.format,C=g2.doc,x=y.distribute,t=B.clamp,r=B.css,a=B.discardElement,q=B.extend,m=B.fireEvent,p=B.isArray,k=B.isNumber,e=B.isString,D=B.merge,G=B.pick,H=B.splat,K=B.syncTimeout;c=function(){function c2(a2,e2){this.allowShared=true;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=true;this.isSticky=false;this.now={};this.options={};this.outside=false;this.chart=a2;this.init(a2,e2)}c2.prototype.applyFilter=function(){var a2=this.chart;a2.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+a2.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})};c2.prototype.bodyFormatter=function(a2){return a2.map((function(a3){var f=a3.series.tooltipOptions;return(f[(a3.point.formatPrefix||"point")+"Formatter"]||a3.point.tooltipFormatter).call(a3.point,f[(a3.point.formatPrefix||"point")+"Format"]||"")}))};c2.prototype.cleanSplit=function(a2){this.chart.series.forEach((function(n){var f=n&&n.tt;f&&(!f.isActive||a2?n.tt=f.destroy():f.isActive=false)}))};c2.prototype.defaultFormatter=function(a2){var n=this.points||H(this);var f=[a2.tooltipFooterHeaderFormatter(n[0])];f=f.concat(a2.bodyFormatter(n));f.push(a2.tooltipFooterHeaderFormatter(n[0],true));return f};c2.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(true),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),a(this.container));B.clearTimeout(this.hideTimer);B.clearTimeout(this.tooltipTimeout)};c2.prototype.getAnchor=function(a2,e2){var f=this.chart,l=f.pointer,d=f.inverted,b=f.plotTop;f=f.plotLeft;a2=H(a2);a2[0].series&&a2[0].series.yAxis&&!a2[0].series.yAxis.options.reversedStacks&&(a2=a2.slice().reverse());if(this.followPointer&&e2)"undefined"===typeof e2.chartX&&(e2=l.normalize(e2)),a2=[e2.chartX-f,e2.chartY-b];else if(a2[0].tooltipPos)a2=a2[0].tooltipPos;else{var h=0,n=0;a2.forEach((function(b2){if(b2=b2.pos(true))h+=b2[0],n+=b2[1]}));h/=a2.length;n/=a2.length;this.shared&&1<a2.length&&e2&&(d?h=e2.chartX:n=e2.chartY);a2=[h-f,n-b]}return a2.map(Math.round)};c2.prototype.getClassName=function(a2,k2,f){var l=a2.series,d=l.options;return[this.options.className,"highcharts-label",f&&"highcharts-tooltip-header",k2?"highcharts-tooltip-box":"highcharts-tooltip",!f&&"highcharts-color-"+G(a2.colorIndex,l.colorIndex),d&&d.className].filter(e).join(" ")};c2.prototype.getLabel=function(){var a2=this,e2=this.chart.styledMode,f=this.options,l=this.split&&this.allowShared,d=f.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),b,h=this.chart.renderer;if(a2.label){var v=!a2.label.hasClass("highcharts-label");(l&&!v||!l&&v)&&a2.destroy()}if(!this.label){if(this.outside){v=this.chart.options.chart.style;var k2=A.getRendererType();this.container=b=g2.doc.createElement("div");b.className="highcharts-tooltip-container";r(b,{position:"absolute",top:"1px",pointerEvents:d,zIndex:Math.max(this.options.style.zIndex||0,(v&&v.zIndex||0)+3)});g2.doc.body.appendChild(b);this.renderer=h=new k2(b,0,0,v,void 0,void 0,h.styledMode)}l?this.label=h.g("tooltip"):(this.label=h.label("",0,0,f.shape,void 0,void 0,f.useHTML,void 0,"tooltip").attr({padding:f.padding,r:f.borderRadius}),e2||this.label.attr({fill:f.backgroundColor,"stroke-width":f.borderWidth}).css(f.style).css({pointerEvents:d}).shadow(f.shadow));e2&&f.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(a2.outside&&!a2.split){var c3=this.label,m2=c3.xSetter,p2=c3.ySetter;c3.xSetter=function(d2){m2.call(c3,a2.distance);b.style.left=d2+"px"};c3.ySetter=function(d2){p2.call(c3,a2.distance);b.style.top=d2+"px"}}this.label.attr({zIndex:8}).add()}return this.label};c2.prototype.getPosition=function(a2,e2,f){var l=this.chart,d=this.distance,b={},h=l.inverted&&f.h||0,n=this.outside,k2=n?C.documentElement.clientWidth-2*d:l.chartWidth,c3=n?Math.max(C.body.scrollHeight,C.documentElement.scrollHeight,C.body.offsetHeight,C.documentElement.offsetHeight,C.documentElement.clientHeight):l.chartHeight,w=l.pointer.getChartPosition(),m2=function(b2){var h2="x"===b2;return[b2,h2?k2:c3,h2?a2:e2].concat(n?[h2?a2*w.scaleX:e2*w.scaleY,h2?w.left-d+(f.plotX+l.plotLeft)*w.scaleX:w.top-d+(f.plotY+l.plotTop)*w.scaleY,0,h2?k2:c3]:[h2?a2:e2,h2?f.plotX+l.plotLeft:f.plotY+l.plotTop,h2?l.plotLeft:l.plotTop,h2?l.plotLeft+l.plotWidth:l.plotTop+l.plotHeight])},p2=m2("y"),u=m2("x"),q2;m2=!!f.negative;!l.polar&&l.hoverSeries&&l.hoverSeries.yAxis&&l.hoverSeries.yAxis.reversed&&(m2=!m2);var g3=!this.followPointer&&G(f.ttBelow,!l.inverted===m2),r2=function(f2,a3,l2,e3,v,k3,c4){var m3=n?"y"===f2?d*w.scaleY:d*w.scaleX:d,E=(l2-e3)/2,p3=e3<v-d,u2=v+d+e3<a3,q3=v-m3-l2+E;v=v+m3-E;if(g3&&u2)b[f2]=v;else if(!g3&&p3)b[f2]=q3;else if(p3)b[f2]=Math.min(c4-e3,0>q3-h?q3:q3-h);else if(u2)b[f2]=Math.max(k3,v+h+l2>a3?v:v+h);else return false},t2=function(h2,f2,a3,l2,n2){var e3;n2<d||n2>f2-d?e3=false:b[h2]=n2<a3/2?1:n2>f2-l2/2?f2-l2-2:n2-a3/2;return e3},D2=function(b2){var d2=p2;p2=u;u=d2;q2=b2},N=function(){false!==r2.apply(0,p2)?false!==t2.apply(0,u)||q2||(D2(true),N()):q2?b.x=b.y=0:(D2(true),N())};(l.inverted||1<this.len)&&D2();N();return b};c2.prototype.hide=function(a2){var n=this;B.clearTimeout(this.hideTimer);a2=G(a2,this.options.hideDelay);this.isHidden||(this.hideTimer=K((function(){n.getLabel().fadeOut(a2?void 0:a2);n.isHidden=true}),a2))};c2.prototype.init=function(a2,e2){this.chart=a2;this.options=e2;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=true;this.split=e2.split&&!a2.inverted&&!a2.polar;this.shared=e2.shared||this.split;this.outside=G(e2.outside,!(!a2.scrollablePixelsX&&!a2.scrollablePixelsY))};c2.prototype.shouldStickOnContact=function(a2){return!(this.followPointer||!this.options.stickOnContact||a2&&!this.chart.pointer.inClass(a2.target,"highcharts-tooltip"))};c2.prototype.move=function(a2,e2,f,l){var d=this,b=d.now,h=false!==d.options.animation&&!d.isHidden&&(1<Math.abs(a2-b.x)||1<Math.abs(e2-b.y)),n=d.followPointer||1<d.len;q(b,{x:h?(2*b.x+a2)/3:a2,y:h?(b.y+e2)/2:e2,anchorX:n?void 0:h?(2*b.anchorX+f)/3:f,anchorY:n?void 0:h?(b.anchorY+l)/2:l});d.getLabel().attr(b);d.drawTracker();h&&(B.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){d&&d.move(a2,e2,f,l)}),32))};c2.prototype.refresh=function(a2,e2){var f=this.chart,l=this.options,d=f.pointer,b=H(a2),h=b[0],n=[],k2=l.formatter||this.defaultFormatter,c3=this.shared,w=f.styledMode,u={};if(l.enabled&&h.series){B.clearTimeout(this.hideTimer);this.allowShared=!(!p(a2)&&a2.series&&a2.series.noSharedTooltip);this.followPointer=!this.split&&h.series.tooltipOptions.followPointer;a2=this.getAnchor(a2,e2);var q2=a2[0],g3=a2[1];c3&&this.allowShared?(d.applyInactiveState(b),b.forEach((function(b2){b2.setState("hover");n.push(b2.getLabelConfig())})),u={x:h.category,y:h.y},u.points=n):u=h.getLabelConfig();this.len=n.length;k2=k2.call(u,this);c3=h.series;this.distance=G(c3.tooltipOptions.distance,16);if(false===k2)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(k2,b);else{var F=q2,r2=g3;e2&&d.isDirectTouch&&(F=e2.chartX-f.plotLeft,r2=e2.chartY-f.plotTop);if(f.polar||false===c3.options.clip||b.some((function(b2){return d.isDirectTouch||b2.series.shouldShowTooltip(F,r2)})))e2=this.getLabel(),l.style.width&&!w||e2.css({width:f.spacingBox.width+"px"}),e2.attr({text:k2&&k2.join?k2.join(""):k2}),e2.addClass(this.getClassName(h),true),w||e2.attr({stroke:l.borderColor||h.color||c3.color||"#666666"}),this.updatePosition({plotX:q2,plotY:g3,negative:h.negative,ttBelow:h.ttBelow,h:a2[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=false}m(this,"refresh")}};c2.prototype.renderSplit=function(a2,k2){function f(b2,d2,h2,a3,f2){void 0===f2&&(f2=true);h2?(d2=y2?0:ca,b2=t(b2-a3/2,X.left,X.right-a3-(l.outside?B2:0))):(d2-=L,b2=f2?b2-a3-H2:b2+H2,b2=t(b2,f2?b2:X.left,X.right));return{x:b2,y:d2}}var l=this,d=l.chart,b=l.chart,h=b.chartWidth,n=b.chartHeight,c3=b.plotHeight,w=b.plotLeft,m2=b.plotTop,p2=b.pointer,u=b.scrollablePixelsY;u=void 0===u?0:u;var g3=b.scrollablePixelsX,F=b.scrollingContainer;F=void 0===F?{scrollLeft:0,scrollTop:0}:F;var r2=F.scrollLeft;F=F.scrollTop;var D2=b.styledMode,H2=l.distance,K2=l.options,N=l.options.positioner,X=l.outside&&"number"!==typeof g3?C.documentElement.getBoundingClientRect():{left:r2,right:r2+h,top:F,bottom:F+n},ba=l.getLabel(),z2=this.renderer||d.renderer,y2=!(!d.xAxis[0]||!d.xAxis[0].opposite);d=p2.getChartPosition();var B2=d.left;d=d.top;var L=m2+F,A2=0,ca=c3-u;e(a2)&&(a2=[false,a2]);a2=a2.slice(0,k2.length+1).reduce((function(b2,d2,h2){if(false!==d2&&""!==d2){h2=k2[h2-1]||{isHeader:true,plotX:k2[0].plotX,plotY:c3,series:{}};var a3=h2.isHeader,e2=a3?l:h2.series;d2=d2.toString();var n2=e2.tt,v=h2.isHeader;var E=h2.series;n2||(n2={padding:K2.padding,r:K2.borderRadius},D2||(n2.fill=K2.backgroundColor,n2["stroke-width"]=K2.borderWidth),n2=z2.label("",0,0,K2[v?"headerShape":"shape"],void 0,void 0,K2.useHTML).addClass(l.getClassName(h2,true,v)).attr(n2).add(ba));n2.isActive=true;n2.attr({text:d2});D2||n2.css(K2.style).shadow(K2.shadow).attr({stroke:K2.borderColor||h2.color||E.color||"#333333"});e2=e2.tt=n2;v=e2.getBBox();d2=v.width+e2.strokeWidth();a3&&(A2=v.height,ca+=A2,y2&&(L-=A2));E=h2.plotX;E=void 0===E?0:E;n2=h2.plotY;n2=void 0===n2?0:n2;var p3=h2.series;if(h2.isHeader){E=w+E;var u2=m2+c3/2}else{var q2=p3.xAxis,J=p3.yAxis;E=q2.pos+t(E,-H2,q2.len+H2);p3.shouldShowTooltip(0,J.pos-m2+n2,{ignoreX:true})&&(u2=J.pos+n2)}E=t(E,X.left-H2,X.right+H2);"number"===typeof u2?(v=v.height+1,n2=N?N.call(l,d2,v,h2):f(E,u2,a3,d2),b2.push({align:N?0:void 0,anchorX:E,anchorY:u2,boxWidth:d2,point:h2,rank:G(n2.rank,a3?1:0),size:v,target:n2.y,tt:e2,x:n2.x})):e2.isActive=false}return b2}),[]);!N&&a2.some((function(b2){var d2=(l.outside?B2:0)+b2.anchorX;return d2<X.left&&d2+b2.boxWidth<X.right?true:d2<B2-X.left+b2.boxWidth&&X.right-d2>d2}))&&(a2=a2.map((function(b2){var d2=f(b2.anchorX,b2.anchorY,b2.point.isHeader,b2.boxWidth,false);return q(b2,{target:d2.y,x:d2.x})})));l.cleanSplit();x(a2,ca);var Z=B2,I2=B2;a2.forEach((function(b2){var d2=b2.x,h2=b2.boxWidth;b2=b2.isHeader;b2||(l.outside&&B2+d2<Z&&(Z=B2+d2),!b2&&l.outside&&Z+h2>I2&&(I2=B2+d2))}));a2.forEach((function(b2){var d2=b2.x,h2=b2.anchorX,a3=b2.pos,f2=b2.point.isHeader;a3={visibility:"undefined"===typeof a3?"hidden":"inherit",x:d2,y:(a3||0)+L,anchorX:h2,anchorY:b2.anchorY};if(l.outside&&d2<h2){var e2=B2-Z;0<e2&&(f2||(a3.x=d2+e2,a3.anchorX=h2+e2),f2&&(a3.x=(I2-Z)/2,a3.anchorX=h2+e2))}b2.tt.attr(a3)}));a2=l.container;u=l.renderer;l.outside&&a2&&u&&(b=ba.getBBox(),u.setSize(b.width+b.x,b.height+b.y,false),a2.style.left=Z+"px",a2.style.top=d+"px")};c2.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var a2=this.chart,e2=this.label,f=this.shared?a2.hoverPoints:a2.hoverPoint;if(e2&&f){var l={x:0,y:0,width:0,height:0};f=this.getAnchor(f);var d=e2.getBBox();f[0]+=a2.plotLeft-e2.translateX;f[1]+=a2.plotTop-e2.translateY;l.x=Math.min(0,f[0]);l.y=Math.min(0,f[1]);l.width=0>f[0]?Math.max(Math.abs(f[0]),d.width-f[0]):Math.max(Math.abs(f[0]),d.width);l.height=0>f[1]?Math.max(Math.abs(f[1]),d.height-Math.abs(f[1])):Math.max(Math.abs(f[1]),d.height);this.tracker?this.tracker.attr(l):(this.tracker=e2.renderer.rect(l).addClass("highcharts-tracker").add(e2),a2.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()};c2.prototype.styledModeFormat=function(a2){return a2.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')};c2.prototype.tooltipFooterHeaderFormatter=function(a2,e2){var f=a2.series,l=f.tooltipOptions,d=f.xAxis,b=d&&d.dateTime;d={isFooter:e2,labelConfig:a2};var h=l.xDateFormat,n=l[e2?"footerFormat":"headerFormat"];m(this,"headerFormatter",d,(function(d2){b&&!h&&k(a2.key)&&(h=b.getXDateFormat(a2.key,l.dateTimeLabelFormats));b&&h&&(a2.point&&a2.point.tooltipDateKeys||["key"]).forEach((function(b2){n=n.replace("{point."+b2+"}","{point."+b2+":"+h+"}")}));f.chart.styledMode&&(n=this.styledModeFormat(n));d2.text=z(n,{point:a2,series:f},this.chart)}));return d.text};c2.prototype.update=function(a2){this.destroy();D(true,this.chart.options.tooltip.userOptions,a2);this.init(this.chart,D(true,this.options,a2))};c2.prototype.updatePosition=function(a2){var e2=this.chart,f=this.distance,l=this.options,d=e2.pointer,b=this.getLabel(),h=d.getChartPosition();d=h.left;var n=h.top,k2=h.scaleX;h=h.scaleY;var c3=(l.positioner||this.getPosition).call(this,b.width,b.height,a2),m2=(a2.plotX||0)+e2.plotLeft;a2=(a2.plotY||0)+e2.plotTop;if(this.outside){l.positioner&&(c3.x+=d-f,c3.y+=n-f);f=l.borderWidth+2*f;this.renderer.setSize(b.width+f,b.height+f,false);if(1!==k2||1!==h)r(this.container,{transform:"scale(".concat(k2,", ").concat(h,")")}),m2*=k2,a2*=h;m2+=d-c3.x;a2+=n-c3.y}this.move(Math.round(c3.x),Math.round(c3.y||0),m2,a2)};return c2}();return c}));I(g,"Core/Series/Point.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Animation/AnimationUtilities.js"],g["Core/Defaults.js"],g["Core/FormatUtilities.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B){var z=g2.animObject,C=y.defaultOptions,x=A.format,t=B.addEvent,r=B.defined,a=B.erase,q=B.extend,m=B.fireEvent,p=B.getNestedProperty,k=B.isArray,e=B.isFunction,D=B.isNumber,G=B.isObject,H=B.merge,K=B.objectEach,u=B.pick,n=B.syncTimeout,w=B.removeEvent,f=B.uniqueKey;g2=function(){function l(){this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=false;this.percentage=this.options=this.name=void 0;this.selected=false;this.total=this.shapeArgs=this.series=void 0;this.visible=true;this.x=void 0}l.prototype.animateBeforeDestroy=function(){var d=this,b={x:d.startXPos,opacity:0},h=d.getGraphicalProps();h.singular.forEach((function(h2){d[h2]=d[h2].animate("dataLabel"===h2?{x:d[h2].startXPos,y:d[h2].startYPos,opacity:0}:b)}));h.plural.forEach((function(b2){d[b2].forEach((function(b3){b3.element&&b3.animate(q({x:d.startXPos},b3.startYPos?{x:b3.startXPos,y:b3.startYPos}:{}))}))}))};l.prototype.applyOptions=function(d,b){var h=this.series,a2=h.options.pointValKey||h.pointValKey;d=l.prototype.optionsToObject.call(this,d);q(this,d);this.options=this.options?q(this.options,d):d;d.group&&delete this.group;d.dataLabels&&delete this.dataLabels;a2&&(this.y=l.prototype.getNestedProperty.call(this,a2));this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof b&&h.xAxis&&h.xAxis.hasNames&&(this.x=h.xAxis.nameToX(this));"undefined"===typeof this.x&&h?this.x="undefined"===typeof b?h.autoIncrement():b:D(d.x)&&h.options.relativeXValue&&(this.x=h.autoIncrement(d.x));return this};l.prototype.destroy=function(){function d(){if(b.graphic||b.graphics||b.dataLabel||b.dataLabels)w(b),b.destroyElements();for(k2 in b)b[k2]=null}var b=this,h=b.series,f2=h.chart;h=h.options.dataSorting;var l2=f2.hoverPoints,e2=z(b.series.chart.renderer.globalAnimation),k2;b.legendItem&&f2.legend.destroyItem(b);l2&&(b.setState(),a(l2,b),l2.length||(f2.hoverPoints=null));if(b===f2.hoverPoint)b.onMouseOut();h&&h.enabled?(this.animateBeforeDestroy(),n(d,e2.duration)):d();f2.pointCount--};l.prototype.destroyElements=function(d){var b=this;d=b.getGraphicalProps(d);d.singular.forEach((function(d2){b[d2]=b[d2].destroy()}));d.plural.forEach((function(d2){b[d2].forEach((function(b2){b2&&b2.element&&b2.destroy()}));delete b[d2]}))};l.prototype.firePointEvent=function(d,b,h){var a2=this,f2=this.series.options;(f2.point.events[d]||a2.options&&a2.options.events&&a2.options.events[d])&&a2.importEvents();"click"===d&&f2.allowPointSelect&&(h=function(b2){a2.select&&a2.select(null,b2.ctrlKey||b2.metaKey||b2.shiftKey)});m(a2,d,b,h)};l.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};l.prototype.getGraphicalProps=function(d){var b=this,h=[],a2={singular:[],plural:[]},f2;d=d||{graphic:1,dataLabel:1};d.graphic&&h.push("graphic","shadowGroup");d.dataLabel&&h.push("dataLabel","dataLabelPath","dataLabelUpper","connector");for(f2=h.length;f2--;){var l2=h[f2];b[l2]&&a2.singular.push(l2)}["graphic","dataLabel","connector"].forEach((function(h2){var f3=h2+"s";d[h2]&&b[f3]&&a2.plural.push(f3)}));return a2};l.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};l.prototype.getNestedProperty=function(d){if(d)return 0===d.indexOf("custom.")?p(d,this.options):this[d]};l.prototype.getZone=function(){var d=this.series,b=d.zones;d=d.zoneAxis||"y";var h,a2=0;for(h=b[a2];this[d]>=h.value;)h=b[++a2];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=h&&h.color&&!this.options.color?h.color:this.nonZonedColor;return h};l.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};l.prototype.init=function(d,b,h){this.series=d;this.applyOptions(b,h);this.id=r(this.id)?this.id:f();this.resolveColor();d.chart.pointCount++;m(this,"afterInit");return this};l.prototype.isValid=function(){return null!==this.x&&D(this.y)};l.prototype.optionsToObject=function(d){var b=this.series,h=b.options.keys,a2=h||b.pointArrayMap||["y"],f2=a2.length,e2={},n2=0,c2=0;if(D(d)||null===d)e2[a2[0]]=d;else if(k(d))for(!h&&d.length>f2&&(b=typeof d[0],"string"===b?e2.name=d[0]:"number"===b&&(e2.x=d[0]),n2++);c2<f2;)h&&"undefined"===typeof d[n2]||(0<a2[c2].indexOf(".")?l.prototype.setNestedProperty(e2,d[n2],a2[c2]):e2[a2[c2]]=d[n2]),n2++,c2++;else"object"===typeof d&&(e2=d,d.dataLabels&&(b._hasPointLabels=true),d.marker&&(b._hasPointMarkers=true));return e2};l.prototype.pos=function(d,b){void 0===b&&(b=this.plotY);var h=this.plotX,a2=this.series,f2=a2.chart,l2=a2.xAxis;a2=a2.yAxis;var e2=0,n2=0;if(D(h)&&D(b))return d&&(e2=l2?l2.pos:f2.plotLeft,n2=a2?a2.pos:f2.plotTop),f2.inverted&&l2&&a2?[a2.len-b+n2,l2.len-h+e2]:[h+e2,b+n2]};l.prototype.resolveColor=function(){var d=this.series,b=d.chart.styledMode;var h=d.chart.options.chart.colorCount;delete this.nonZonedColor;if(d.options.colorByPoint){if(!b){h=d.options.colors||d.chart.options.colors;var a2=h[d.colorCounter];h=h.length}b=d.colorCounter;d.colorCounter++;d.colorCounter===h&&(d.colorCounter=0)}else b||(a2=d.color),b=d.colorIndex;this.colorIndex=u(this.options.colorIndex,b);this.color=u(this.options.color,a2)};l.prototype.setNestedProperty=function(d,b,h){h.split(".").reduce((function(d2,h2,a2,f2){d2[h2]=f2.length-1===a2?b:G(d2[h2],true)?d2[h2]:{};return d2[h2]}),d);return d};l.prototype.shouldDraw=function(){return!this.isNull};l.prototype.tooltipFormatter=function(d){var b=this.series,h=b.tooltipOptions,a2=u(h.valueDecimals,""),f2=h.valuePrefix||"",l2=h.valueSuffix||"";b.chart.styledMode&&(d=b.chart.tooltip.styledModeFormat(d));(b.pointArrayMap||["y"]).forEach((function(b2){b2="{point."+b2;if(f2||l2)d=d.replace(RegExp(b2+"}","g"),f2+b2+"}"+l2);d=d.replace(RegExp(b2+"}","g"),b2+":,."+a2+"f}")}));return x(d,{point:this,series:this.series},b.chart)};l.prototype.update=function(d,b,h,a2){function f2(){l2.applyOptions(d);var a3=n2&&l2.hasMockGraphic;a3=null===l2.y?!a3:a3;n2&&a3&&(l2.graphic=n2.destroy(),delete l2.hasMockGraphic);G(d,true)&&(n2&&n2.element&&d&&d.marker&&"undefined"!==typeof d.marker.symbol&&(l2.graphic=n2.destroy()),d&&d.dataLabels&&l2.dataLabel&&(l2.dataLabel=l2.dataLabel.destroy()),l2.connector&&(l2.connector=l2.connector.destroy()));c2=l2.index;e2.updateParallelArrays(l2,c2);v.data[c2]=G(v.data[c2],true)||G(d,true)?l2.options:u(d,v.data[c2]);e2.isDirty=e2.isDirtyData=true;!e2.fixedBox&&e2.hasCartesianSeries&&(k2.isDirtyBox=true);"point"===v.legendType&&(k2.isDirtyLegend=true);b&&k2.redraw(h)}var l2=this,e2=l2.series,n2=l2.graphic,k2=e2.chart,v=e2.options,c2;b=u(b,true);false===a2?f2():l2.firePointEvent("update",{options:d},f2)};l.prototype.remove=function(d,b){this.series.removePoint(this.series.data.indexOf(this),d,b)};l.prototype.select=function(d,b){var h=this,a2=h.series,f2=a2.chart;this.selectedStaging=d=u(d,!h.selected);h.firePointEvent(d?"select":"unselect",{accumulate:b},(function(){h.selected=h.options.selected=d;a2.options.data[a2.data.indexOf(h)]=h.options;h.setState(d&&"select");b||f2.getSelectedPoints().forEach((function(b2){var d2=b2.series;b2.selected&&b2!==h&&(b2.selected=b2.options.selected=false,d2.options.data[d2.data.indexOf(b2)]=b2.options,b2.setState(f2.hoverPoints&&d2.options.inactiveOtherPoints?"inactive":""),b2.firePointEvent("unselect"))}))}));delete this.selectedStaging};l.prototype.onMouseOver=function(d){var b=this.series.chart,h=b.pointer;d=d?h.normalize(d):h.getChartCoordinatesFromPoint(this,b.inverted);h.runPointActions(d,this)};l.prototype.onMouseOut=function(){var d=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(d.hoverPoints||[]).forEach((function(b){b.setState()}));d.hoverPoints=d.hoverPoint=null};l.prototype.importEvents=function(){if(!this.hasImportedEvents){var d=this,b=H(d.series.options.point,d.options).events;d.events=b;K(b,(function(b2,a2){e(b2)&&t(d,a2,b2)}));this.hasImportedEvents=true}};l.prototype.setState=function(d,b){var h=this.series,a2=this.state,f2=h.options.states[d||"normal"]||{},l2=C.plotOptions[h.type].marker&&h.options.marker,e2=l2&&false===l2.enabled,n2=l2&&l2.states&&l2.states[d||"normal"]||{},k2=false===n2.enabled,w2=this.marker||{},p2=h.chart,g3=l2&&h.markerAttribs,r2=h.halo,t2,G2=h.stateMarkerGraphic;d=d||"";if(!(d===this.state&&!b||this.selected&&"select"!==d||false===f2.enabled||d&&(k2||e2&&false===n2.enabled)||d&&w2.states&&w2.states[d]&&false===w2.states[d].enabled)){this.state=d;g3&&(t2=h.markerAttribs(this,d));if(this.graphic&&!this.hasMockGraphic){a2&&this.graphic.removeClass("highcharts-point-"+a2);d&&this.graphic.addClass("highcharts-point-"+d);if(!p2.styledMode){a2=h.pointAttribs(this,d);var N=u(p2.options.chart.animation,f2.animation);var x2=a2.opacity;h.options.inactiveOtherPoints&&D(x2)&&((this.dataLabels||[]).forEach((function(b2){b2&&!b2.hasClass("highcharts-data-label-hidden")&&b2.animate({opacity:x2},N)})),this.connector&&this.connector.animate({opacity:x2},N));this.graphic.animate(a2,N)}t2&&this.graphic.animate(t2,u(p2.options.chart.animation,n2.animation,l2.animation));G2&&G2.hide()}else{if(d&&n2){l2=w2.symbol||h.symbol;G2&&G2.currentSymbol!==l2&&(G2=G2.destroy());if(t2)if(G2)G2[b?"animate":"attr"]({x:t2.x,y:t2.y});else l2&&(h.stateMarkerGraphic=G2=p2.renderer.symbol(l2,t2.x,t2.y,t2.width,t2.height).add(h.markerGroup),G2.currentSymbol=l2);!p2.styledMode&&G2&&"inactive"!==this.state&&G2.attr(h.pointAttribs(this,d))}G2&&(G2[d&&this.isInside?"show":"hide"](),G2.element.point=this,G2.addClass(this.getClassName(),true))}f2=f2.halo;t2=(G2=this.graphic||G2)&&G2.visibility||"inherit";f2&&f2.size&&G2&&"hidden"!==t2&&!this.isCluster?(r2||(h.halo=r2=p2.renderer.path().add(G2.parentGroup)),r2.show()[b?"animate":"attr"]({d:this.haloPath(f2.size)}),r2.attr({class:"highcharts-halo highcharts-color-"+u(this.colorIndex,h.colorIndex)+(this.className?" "+this.className:""),visibility:t2,zIndex:-1}),r2.point=this,p2.styledMode||r2.attr(q({fill:this.color||h.color,"fill-opacity":f2.opacity},c.filterUserAttributes(f2.attributes||{})))):r2&&r2.point&&r2.point.haloPath&&r2.animate({d:r2.point.haloPath(0)},null,r2.hide);m(this,"afterSetState",{state:d})}};l.prototype.haloPath=function(d){var b=this.pos();return b?this.series.chart.renderer.symbols.circle(Math.floor(b[0])-d,b[1]-d,2*d,2*d):[]};return l}();return g2}));I(g,"Core/Pointer.js",[g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Tooltip.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){var B=c.parse,z=g2.charts,C=g2.noop,x=A.addEvent,t=A.attr,r=A.css,a=A.defined,q=A.extend,m=A.find,p=A.fireEvent,k=A.isNumber,e=A.isObject,D=A.objectEach,G=A.offset,H=A.pick,K=A.splat;c=function(){function c2(a2,e2){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=false;this.eventsToUnbind=[];this.chart=a2;this.hasDragged=false;this.options=e2;this.init(a2,e2)}c2.prototype.applyInactiveState=function(a2){var e2=[],f;(a2||[]).forEach((function(a3){f=a3.series;e2.push(f);f.linkedParent&&e2.push(f.linkedParent);f.linkedSeries&&(e2=e2.concat(f.linkedSeries));f.navigatorSeries&&e2.push(f.navigatorSeries)}));this.chart.series.forEach((function(a3){-1===e2.indexOf(a3)?a3.setState("inactive",true):a3.options.inactiveOtherPoints&&a3.setAllPointsToState("inactive")}))};c2.prototype.destroy=function(){var a2=this;this.eventsToUnbind.forEach((function(a3){return a3()}));this.eventsToUnbind=[];g2.chartCount||(c2.unbindDocumentMouseUp&&(c2.unbindDocumentMouseUp=c2.unbindDocumentMouseUp()),c2.unbindDocumentTouchEnd&&(c2.unbindDocumentTouchEnd=c2.unbindDocumentTouchEnd()));clearInterval(a2.tooltipTimeout);D(a2,(function(e2,f){a2[f]=void 0}))};c2.prototype.getSelectionMarkerAttrs=function(a2,e2){var f=this,l={args:{chartX:a2,chartY:e2},attrs:{},shapeType:"rect"};p(this,"getSelectionMarkerAttrs",l,(function(d){var b=f.chart,h=f.mouseDownX;h=void 0===h?0:h;var l2=f.mouseDownY;l2=void 0===l2?0:l2;var n=f.zoomHor,k2=f.zoomVert;d=d.attrs;d.x=b.plotLeft;d.y=b.plotTop;d.width=n?1:b.plotWidth;d.height=k2?1:b.plotHeight;n&&(b=a2-h,d.width=Math.abs(b),d.x=(0<b?0:b)+h);k2&&(b=e2-l2,d.height=Math.abs(b),d.y=(0<b?0:b)+l2)}));return l};c2.prototype.drag=function(a2){var n=this.chart,f=n.options.chart,l=n.plotLeft,d=n.plotTop,b=n.plotWidth,h=n.plotHeight,k2=this.mouseDownX||0,c3=this.mouseDownY||0,m2=e(f.panning)?f.panning&&f.panning.enabled:f.panning,p2=f.panKey&&a2[f.panKey+"Key"],q2=a2.chartX,u=a2.chartY,g3=this.selectionMarker;g3&&g3.touch||(q2<l?q2=l:q2>l+b&&(q2=l+b),u<d?u=d:u>d+h&&(u=d+h),this.hasDragged=Math.sqrt(Math.pow(k2-q2,2)+Math.pow(c3-u,2)),10<this.hasDragged&&(l=n.isInsidePlot(k2-l,c3-d,{visiblePlotOnly:true}),u=this.getSelectionMarkerAttrs(q2,u),q2=u.shapeType,u=u.attrs,!n.hasCartesianSeries&&!n.mapView||!this.zoomX&&!this.zoomY||!l||p2||g3||(this.selectionMarker=g3=n.renderer[q2](),g3.attr({class:"highcharts-selection-marker",zIndex:7}).add(),n.styledMode||g3.attr({fill:f.selectionMarkerFill||B("#335cad").setOpacity(.25).get()})),g3&&g3.attr(u),l&&!g3&&m2&&n.pan(a2,f.panning)))};c2.prototype.dragStart=function(a2){var e2=this.chart;e2.mouseIsDown=a2.type;e2.cancelClick=false;e2.mouseDownX=this.mouseDownX=a2.chartX;e2.mouseDownY=this.mouseDownY=a2.chartY};c2.prototype.getSelectionBox=function(a2){var e2={args:{marker:a2},result:{}};p(this,"getSelectionBox",e2,(function(f){f.result={x:a2.attr?+a2.attr("x"):a2.x,y:a2.attr?+a2.attr("y"):a2.y,width:a2.attr?a2.attr("width"):a2.width,height:a2.attr?a2.attr("height"):a2.height}}));return e2.result};c2.prototype.drop=function(e2){var n=this,f=this.chart,l=this.hasPinched;if(this.selectionMarker){var d=this.getSelectionBox(this.selectionMarker),b=d.x,h=d.y,c3=d.width,m2=d.height,u={originalEvent:e2,xAxis:[],yAxis:[],x:b,y:h,width:c3,height:m2},g3=!!f.mapView;if(this.hasDragged||l)f.axes.forEach((function(d2){if(d2.zoomEnabled&&a(d2.min)&&(l||n[{xAxis:"zoomX",yAxis:"zoomY"}[d2.coll]])&&k(b)&&k(h)&&k(c3)&&k(m2)){var f2=d2.horiz,v="touchend"===e2.type?d2.minPixelPadding:0,w=d2.toValue((f2?b:h)+v);f2=d2.toValue((f2?b+c3:h+m2)-v);u[d2.coll].push({axis:d2,min:Math.min(w,f2),max:Math.max(w,f2)});g3=true}})),g3&&p(f,"selection",u,(function(b2){f.zoom(q(b2,l?{animation:false}:null))}));k(f.index)&&(this.selectionMarker=this.selectionMarker.destroy());l&&this.scaleGroups()}f&&k(f.index)&&(r(f.container,{cursor:f._cursor}),f.cancelClick=10<this.hasDragged,f.mouseIsDown=this.hasDragged=this.hasPinched=false,this.pinchDown=[])};c2.prototype.findNearestKDPoint=function(a2,k2,f){var l;a2.forEach((function(d){var b=!(d.noSharedTooltip&&k2)&&0>d.options.findNearestPointBy.indexOf("y");d=d.searchPoint(f,b);if((b=e(d,true)&&d.series)&&!(b=!e(l,true))){b=l.distX-d.distX;var h=l.dist-d.dist,a3=(d.series.group&&d.series.group.zIndex)-(l.series.group&&l.series.group.zIndex);b=0<(0!==b&&k2?b:0!==h?h:0!==a3?a3:l.series.index>d.series.index?-1:1)}b&&(l=d)}));return l};c2.prototype.getChartCoordinatesFromPoint=function(a2,e2){var f=a2.series,l=f.xAxis;f=f.yAxis;var d=a2.shapeArgs;if(l&&f){var b=H(a2.clientX,a2.plotX),h=a2.plotY||0;a2.isNode&&d&&k(d.x)&&k(d.y)&&(b=d.x,h=d.y);return e2?{chartX:f.len+f.pos-h,chartY:l.len+l.pos-b}:{chartX:b+l.pos,chartY:h+f.pos}}if(d&&d.x&&d.y)return{chartX:d.x,chartY:d.y}};c2.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a2=this.chart.container,e2=G(a2);this.chartPosition={left:e2.left,top:e2.top,scaleX:1,scaleY:1};var f=a2.offsetWidth;a2=a2.offsetHeight;2<f&&2<a2&&(this.chartPosition.scaleX=e2.width/f,this.chartPosition.scaleY=e2.height/a2);return this.chartPosition};c2.prototype.getCoordinates=function(a2){var e2={xAxis:[],yAxis:[]};this.chart.axes.forEach((function(f){e2[f.isXAxis?"xAxis":"yAxis"].push({axis:f,value:f.toValue(a2[f.horiz?"chartX":"chartY"])})}));return e2};c2.prototype.getHoverData=function(a2,k2,f,l,d,b){var h=[];l=!(!l||!a2);var n=function(b2){return b2.visible&&!(!d&&b2.directTouch)&&H(b2.options.enableMouseTracking,true)},c3={chartX:b?b.chartX:void 0,chartY:b?b.chartY:void 0,shared:d};p(this,"beforeGetHoverData",c3);var w=k2&&!k2.stickyTracking?[k2]:f.filter((function(b2){return b2.stickyTracking&&(c3.filter||n)(b2)}));var u=l||!b?a2:this.findNearestKDPoint(w,d,b);k2=u&&u.series;u&&(d&&!k2.noSharedTooltip?(w=f.filter((function(b2){return c3.filter?c3.filter(b2):n(b2)&&!b2.noSharedTooltip})),w.forEach((function(b2){var d2=m(b2.points,(function(b3){return b3.x===u.x&&!b3.isNull}));e(d2)&&(b2.boosted&&b2.boost&&(d2=b2.boost.getPoint(d2)),h.push(d2))}))):h.push(u));c3={hoverPoint:u};p(this,"afterGetHoverData",c3);return{hoverPoint:c3.hoverPoint,hoverSeries:k2,hoverPoints:h}};c2.prototype.getPointFromEvent=function(a2){a2=a2.target;for(var e2;a2&&!e2;)e2=a2.point,a2=a2.parentNode;return e2};c2.prototype.onTrackerMouseOut=function(a2){a2=a2.relatedTarget||a2.toElement;var e2=this.chart.hoverSeries;this.isDirectTouch=false;if(!(!e2||!a2||e2.stickyTracking||this.inClass(a2,"highcharts-tooltip")||this.inClass(a2,"highcharts-series-"+e2.index)&&this.inClass(a2,"highcharts-tracker")))e2.onMouseOut()};c2.prototype.inClass=function(a2,e2){for(var f;a2;){if(f=t(a2,"class")){if(-1!==f.indexOf(e2))return true;if(-1!==f.indexOf("highcharts-container"))return false}a2=a2.parentElement}};c2.prototype.init=function(a2,e2){this.options=e2;this.chart=a2;this.runChartClick=!(!e2.chart.events||!e2.chart.events.click);this.pinchDown=[];this.lastValidTouch={};y&&(a2.tooltip=new y(a2,e2.tooltip));this.setDOMEvents()};c2.prototype.normalize=function(a2,e2){var f=a2.touches,l=f?f.length?f.item(0):H(f.changedTouches,a2.changedTouches)[0]:a2;e2||(e2=this.getChartPosition());f=l.pageX-e2.left;l=l.pageY-e2.top;f/=e2.scaleX;l/=e2.scaleY;return q(a2,{chartX:Math.round(f),chartY:Math.round(l)})};c2.prototype.onContainerClick=function(a2){var e2=this.chart,f=e2.hoverPoint;a2=this.normalize(a2);var l=e2.plotLeft,d=e2.plotTop;e2.cancelClick||(f&&this.inClass(a2.target,"highcharts-tracker")?(p(f.series,"click",q(a2,{point:f})),e2.hoverPoint&&f.firePointEvent("click",a2)):(q(a2,this.getCoordinates(a2)),e2.isInsidePlot(a2.chartX-l,a2.chartY-d,{visiblePlotOnly:true})&&p(e2,"click",a2)))};c2.prototype.onContainerMouseDown=function(a2){var e2=1===((a2.buttons||a2.button)&1);a2=this.normalize(a2);if(g2.isFirefox&&0!==a2.button)this.onContainerMouseMove(a2);if("undefined"===typeof a2.button||e2)this.zoomOption(a2),e2&&a2.preventDefault&&a2.preventDefault(),this.dragStart(a2)};c2.prototype.onContainerMouseLeave=function(a2){var e2=z[H(c2.hoverChartIndex,-1)],f=this.chart.tooltip;a2=this.normalize(a2);e2&&(a2.relatedTarget||a2.toElement)&&(e2.pointer.reset(),e2.pointer.chartPosition=void 0);f&&!f.isHidden&&this.reset()};c2.prototype.onContainerMouseEnter=function(a2){delete this.chartPosition};c2.prototype.onContainerMouseMove=function(a2){var e2=this.chart,f=e2.tooltip;a2=this.normalize(a2);this.setHoverChartIndex();a2.preventDefault||(a2.returnValue=false);("mousedown"===e2.mouseIsDown||this.touchSelect(a2))&&this.drag(a2);e2.openMenu||!this.inClass(a2.target,"highcharts-tracker")&&!e2.isInsidePlot(a2.chartX-e2.plotLeft,a2.chartY-e2.plotTop,{visiblePlotOnly:true})||f&&f.shouldStickOnContact(a2)||(this.inClass(a2.target,"highcharts-no-tooltip")?this.reset(false,0):this.runPointActions(a2))};c2.prototype.onDocumentTouchEnd=function(a2){var e2=z[H(c2.hoverChartIndex,-1)];e2&&e2.pointer.drop(a2)};c2.prototype.onContainerTouchMove=function(a2){if(this.touchSelect(a2))this.onContainerMouseMove(a2);else this.touch(a2)};c2.prototype.onContainerTouchStart=function(a2){if(this.touchSelect(a2))this.onContainerMouseDown(a2);else this.zoomOption(a2),this.touch(a2,true)};c2.prototype.onDocumentMouseMove=function(a2){var e2=this.chart,f=e2.tooltip,l=this.chartPosition;a2=this.normalize(a2,l);!l||e2.isInsidePlot(a2.chartX-e2.plotLeft,a2.chartY-e2.plotTop,{visiblePlotOnly:true})||f&&f.shouldStickOnContact(a2)||this.inClass(a2.target,"highcharts-tracker")||this.reset()};c2.prototype.onDocumentMouseUp=function(a2){var e2=z[H(c2.hoverChartIndex,-1)];e2&&e2.pointer.drop(a2)};c2.prototype.pinch=function(a2){var e2=this,f=e2.chart,l=e2.pinchDown,d=a2.touches||[],b=d.length,h=e2.lastValidTouch,k2=e2.hasZoom,c3={},n=1===b&&(e2.inClass(a2.target,"highcharts-tracker")&&f.runTrackerClick||e2.runChartClick),m2={},u=e2.chart.tooltip;u=1===b&&H(u&&u.options.followTouchMove,true);var g3=e2.selectionMarker;1<b?e2.initiated=true:u&&(e2.initiated=false);k2&&e2.initiated&&!n&&false!==a2.cancelable&&a2.preventDefault();[].map.call(d,(function(b2){return e2.normalize(b2)}));"touchstart"===a2.type?([].forEach.call(d,(function(b2,d2){l[d2]={chartX:b2.chartX,chartY:b2.chartY}})),h.x=[l[0].chartX,l[1]&&l[1].chartX],h.y=[l[0].chartY,l[1]&&l[1].chartY],f.axes.forEach((function(b2){if(b2.zoomEnabled){var d2=f.bounds[b2.horiz?"h":"v"],a3=b2.minPixelPadding,h2=b2.toPixels(Math.min(H(b2.options.min,b2.dataMin),b2.dataMin)),l2=b2.toPixels(Math.max(H(b2.options.max,b2.dataMax),b2.dataMax)),e3=Math.max(h2,l2);d2.min=Math.min(b2.pos,Math.min(h2,l2)-a3);d2.max=Math.max(b2.pos+b2.len,e3+a3)}})),e2.res=true):u?this.runPointActions(e2.normalize(a2)):l.length&&(p(f,"touchpan",{originalEvent:a2},(function(){g3||(e2.selectionMarker=g3=q({destroy:C,touch:true},f.plotBox));e2.pinchTranslate(l,d,c3,g3,m2,h);e2.hasPinched=k2;e2.scaleGroups(c3,m2)})),e2.res&&(e2.res=false,this.reset(false,0)))};c2.prototype.pinchTranslate=function(a2,e2,f,l,d,b){this.zoomHor&&this.pinchTranslateDirection(true,a2,e2,f,l,d,b);this.zoomVert&&this.pinchTranslateDirection(false,a2,e2,f,l,d,b)};c2.prototype.pinchTranslateDirection=function(a2,e2,f,l,d,b,h,k2){var c3=this.chart,v=a2?"x":"y",n=a2?"X":"Y",m2="chart"+n,p2=a2?"width":"height",u=c3["plot"+(a2?"Left":"Top")],w=c3.inverted,q2=c3.bounds[a2?"h":"v"],g3=1===e2.length,r2=e2[0][m2],t2=!g3&&e2[1][m2];e2=function(){"number"===typeof H2&&20<Math.abs(r2-t2)&&(G2=k2||Math.abs(x2-H2)/Math.abs(r2-t2));D2=(u-x2)/G2+r2;N=c3["plot"+(a2?"Width":"Height")]/G2};var N,D2,G2=k2||1,x2=f[0][m2],H2=!g3&&f[1][m2];e2();f=D2;if(f<q2.min){f=q2.min;var C2=true}else f+N>q2.max&&(f=q2.max-N,C2=true);C2?(x2-=.8*(x2-h[v][0]),"number"===typeof H2&&(H2-=.8*(H2-h[v][1])),e2()):h[v]=[x2,H2];w||(b[v]=D2-u,b[p2]=N);b=w?1/G2:G2;d[p2]=N;d[v]=f;l[w?a2?"scaleY":"scaleX":"scale"+n]=G2;l["translate"+n]=b*u+(x2-b*r2)};c2.prototype.reset=function(a2,e2){var f=this.chart,l=f.hoverSeries,d=f.hoverPoint,b=f.hoverPoints,h=f.tooltip,k2=h&&h.shared?b:d;a2&&k2&&K(k2).forEach((function(b2){b2.series.isCartesian&&"undefined"===typeof b2.plotX&&(a2=false)}));if(a2)h&&k2&&K(k2).length&&(h.refresh(k2),h.shared&&b?b.forEach((function(b2){b2.setState(b2.state,true);b2.series.isCartesian&&(b2.series.xAxis.crosshair&&b2.series.xAxis.drawCrosshair(null,b2),b2.series.yAxis.crosshair&&b2.series.yAxis.drawCrosshair(null,b2))})):d&&(d.setState(d.state,true),f.axes.forEach((function(b2){b2.crosshair&&d.series[b2.coll]===b2&&b2.drawCrosshair(null,d)}))));else{if(d)d.onMouseOut();b&&b.forEach((function(b2){b2.setState()}));if(l)l.onMouseOut();h&&h.hide(e2);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());f.axes.forEach((function(b2){b2.hideCrosshair()}));this.hoverX=f.hoverPoints=f.hoverPoint=null}};c2.prototype.runPointActions=function(a2,e2,f){var l=this.chart,d=l.tooltip&&l.tooltip.options.enabled?l.tooltip:void 0,b=d?d.shared:false,h=e2||l.hoverPoint,k2=h&&h.series||l.hoverSeries;e2=this.getHoverData(h,k2,l.series,(!a2||"touchmove"!==a2.type)&&(!!e2||k2&&k2.directTouch&&this.isDirectTouch),b,a2);h=e2.hoverPoint;k2=e2.hoverSeries;var n=e2.hoverPoints;e2=k2&&k2.tooltipOptions.followPointer&&!k2.tooltipOptions.split;var p2=b&&k2&&!k2.noSharedTooltip;if(h&&(f||h!==l.hoverPoint||d&&d.isHidden)){(l.hoverPoints||[]).forEach((function(b2){-1===n.indexOf(b2)&&b2.setState()}));if(l.hoverSeries!==k2)k2.onMouseOver();this.applyInactiveState(n);(n||[]).forEach((function(b2){b2.setState("hover")}));l.hoverPoint&&l.hoverPoint.firePointEvent("mouseOut");if(!h.series)return;l.hoverPoints=n;l.hoverPoint=h;h.firePointEvent("mouseOver",void 0,(function(){d&&h&&d.refresh(p2?n:h,a2)}))}else e2&&d&&!d.isHidden&&(f=d.getAnchor([{}],a2),l.isInsidePlot(f[0],f[1],{visiblePlotOnly:true})&&d.updatePosition({plotX:f[0],plotY:f[1]}));this.unDocMouseMove||(this.unDocMouseMove=x(l.container.ownerDocument,"mousemove",(function(b2){var d2=z[c2.hoverChartIndex];if(d2)d2.pointer.onDocumentMouseMove(b2)})),this.eventsToUnbind.push(this.unDocMouseMove));l.axes.forEach((function(b2){var d2=H((b2.crosshair||{}).snap,true),h2;d2&&((h2=l.hoverPoint)&&h2.series[b2.coll]===b2||(h2=m(n,(function(d3){return d3.series&&d3.series[b2.coll]===b2}))));h2||!d2?b2.drawCrosshair(a2,h2):b2.hideCrosshair()}))};c2.prototype.scaleGroups=function(a2,e2){var f=this.chart;f.series.forEach((function(l){var d=a2||l.getPlotBox();l.group&&(l.xAxis&&l.xAxis.zoomEnabled||f.mapView)&&(l.group.attr(d),l.markerGroup&&(l.markerGroup.attr(d),l.markerGroup.clip(e2?f.clipRect:null)),l.dataLabelsGroup&&l.dataLabelsGroup.attr(d))}));f.clipRect.attr(e2||f.clipBox)};c2.prototype.setDOMEvents=function(){var a2=this,e2=this.chart.container,f=e2.ownerDocument;e2.onmousedown=this.onContainerMouseDown.bind(this);e2.onmousemove=this.onContainerMouseMove.bind(this);e2.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(x(e2,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(x(e2,"mouseleave",this.onContainerMouseLeave.bind(this)));c2.unbindDocumentMouseUp||(c2.unbindDocumentMouseUp=x(f,"mouseup",this.onDocumentMouseUp.bind(this)));for(var l=this.chart.renderTo.parentElement;l&&"BODY"!==l.tagName;)this.eventsToUnbind.push(x(l,"scroll",(function(){delete a2.chartPosition}))),l=l.parentElement;g2.hasTouch&&(this.eventsToUnbind.push(x(e2,"touchstart",this.onContainerTouchStart.bind(this),{passive:false})),this.eventsToUnbind.push(x(e2,"touchmove",this.onContainerTouchMove.bind(this),{passive:false})),c2.unbindDocumentTouchEnd||(c2.unbindDocumentTouchEnd=x(f,"touchend",this.onDocumentTouchEnd.bind(this),{passive:false})))};c2.prototype.setHoverChartIndex=function(){var a2=this.chart,e2=g2.charts[H(c2.hoverChartIndex,-1)];if(e2&&e2!==a2)e2.pointer.onContainerMouseLeave({relatedTarget:a2.container});e2&&e2.mouseIsDown||(c2.hoverChartIndex=a2.index)};c2.prototype.touch=function(a2,e2){var f=this.chart;this.setHoverChartIndex();if(1===a2.touches.length)if(a2=this.normalize(a2),f.isInsidePlot(a2.chartX-f.plotLeft,a2.chartY-f.plotTop,{visiblePlotOnly:true})&&!f.openMenu){e2&&this.runPointActions(a2);if("touchmove"===a2.type){e2=this.pinchDown;var d=e2[0]?4<=Math.sqrt(Math.pow(e2[0].chartX-a2.chartX,2)+Math.pow(e2[0].chartY-a2.chartY,2)):false}H(d,true)&&this.pinch(a2)}else e2&&this.reset();else 2===a2.touches.length&&this.pinch(a2)};c2.prototype.touchSelect=function(a2){return!(!this.chart.options.chart.zooming.singleTouch||!a2.touches||1!==a2.touches.length)};c2.prototype.zoomOption=function(a2){var e2=this.chart,f=e2.options.chart;e2=e2.inverted;var l=f.zooming.type||"";/touch/.test(a2.type)&&(l=H(f.zooming.pinchType,l));this.zoomX=a2=/x/.test(l);this.zoomY=f=/y/.test(l);this.zoomHor=a2&&!e2||f&&e2;this.zoomVert=f&&!e2||a2&&e2;this.hasZoom=a2||f};return c2}();return c}));I(g,"Core/MSPointer.js",[g["Core/Globals.js"],g["Core/Pointer.js"],g["Core/Utilities.js"]],(function(c,g2,y){function A(){var a2=[];a2.item=function(a3){return this[a3]};m(e,(function(e2){a2.push({pageX:e2.pageX,pageY:e2.pageY,target:e2.target})}));return a2}function B(a2,e2,k2,c2){var n=C[g2.hoverChartIndex||NaN];"touch"!==a2.pointerType&&a2.pointerType!==a2.MSPOINTER_TYPE_TOUCH||!n||(n=n.pointer,c2(a2),n[e2]({type:k2,target:a2.currentTarget,preventDefault:t,touches:A()}))}var z=this&&this.__extends||function(){var a2=function(e2,k2){a2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a3,e3){a3.__proto__=e3}||function(a3,e3){for(var k3 in e3)e3.hasOwnProperty(k3)&&(a3[k3]=e3[k3])};return a2(e2,k2)};return function(e2,k2){function c2(){this.constructor=e2}a2(e2,k2);e2.prototype=null===k2?Object.create(k2):(c2.prototype=k2.prototype,new c2)}}(),C=c.charts,x=c.doc,t=c.noop,r=c.win,a=y.addEvent,q=y.css,m=y.objectEach,p=y.pick,k=y.removeEvent,e={},D=!!r.PointerEvent;return function(m2){function g3(){return null!==m2&&m2.apply(this,arguments)||this}z(g3,m2);g3.isRequired=function(){return!(c.hasTouch||!r.PointerEvent&&!r.MSPointerEvent)};g3.prototype.batchMSEvents=function(a2){a2(this.chart.container,D?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a2(this.chart.container,D?"pointermove":"MSPointerMove",this.onContainerPointerMove);a2(x,D?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};g3.prototype.destroy=function(){this.batchMSEvents(k);m2.prototype.destroy.call(this)};g3.prototype.init=function(a2,e2){m2.prototype.init.call(this,a2,e2);this.hasZoom&&q(a2.container,{"-ms-touch-action":"none","touch-action":"none"})};g3.prototype.onContainerPointerDown=function(a2){B(a2,"onContainerTouchStart","touchstart",(function(a3){e[a3.pointerId]={pageX:a3.pageX,pageY:a3.pageY,target:a3.currentTarget}}))};g3.prototype.onContainerPointerMove=function(a2){B(a2,"onContainerTouchMove","touchmove",(function(a3){e[a3.pointerId]={pageX:a3.pageX,pageY:a3.pageY};e[a3.pointerId].target||(e[a3.pointerId].target=a3.currentTarget)}))};g3.prototype.onDocumentPointerUp=function(a2){B(a2,"onDocumentTouchEnd","touchend",(function(a3){delete e[a3.pointerId]}))};g3.prototype.setDOMEvents=function(){var e2=this.chart.tooltip;m2.prototype.setDOMEvents.call(this);(this.hasZoom||p(e2&&e2.options.followTouchMove,true))&&this.batchMSEvents(a)};return g3}(g2)}));I(g,"Core/Legend/Legend.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/FormatUtilities.js"],g["Core/Globals.js"],g["Core/Series/Point.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z){var C=c.animObject,x=c.setAnimation,t=g2.format,r=y.marginNames,a=B.distribute,q=z.addEvent,m=z.createElement,p=z.css,k=z.defined,e=z.discardElement,D=z.find,G=z.fireEvent,H=z.isNumber,K=z.merge,u=z.pick,n=z.relativeLength,w=z.stableSort,f=z.syncTimeout;c=function(){function l(d,b){this.allItems=[];this.contentGroup=this.box=void 0;this.display=false;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options=void 0;this.padding=0;this.pages=[];this.proximate=false;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=d;this.init(d,b)}l.prototype.init=function(d,b){this.chart=d;this.setOptions(b);b.enabled&&(this.render(),q(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=q(this.chart,"render",(function(){this.legend.proximatePositions();this.legend.positionItems()})):this.unchartrender&&this.unchartrender())};l.prototype.setOptions=function(d){var b=u(d.padding,8);this.options=d;this.chart.styledMode||(this.itemStyle=d.itemStyle,this.itemHiddenStyle=K(this.itemStyle,d.itemHiddenStyle));this.itemMarginTop=d.itemMarginTop||0;this.itemMarginBottom=d.itemMarginBottom||0;this.padding=b;this.initialItemY=b-5;this.symbolWidth=u(d.symbolWidth,16);this.pages=[];this.proximate="proximate"===d.layout&&!this.chart.inverted;this.baseline=void 0};l.prototype.update=function(d,b){var a2=this.chart;this.setOptions(K(true,this.options,d));this.destroy();a2.isDirtyLegend=a2.isDirtyBox=true;u(b,true)&&a2.redraw();G(this,"afterUpdate")};l.prototype.colorizeItem=function(d,b){var a2=d.legendItem||{},f2=a2.group,l2=a2.label,e2=a2.line;a2=a2.symbol;if(f2)f2[b?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var k2=this.options;f2=this.itemHiddenStyle.color;k2=b?k2.itemStyle.color:f2;var c2=b?d.color||f2:f2,n2=d.options&&d.options.marker,m2={fill:c2};l2&&l2.css({fill:k2,color:k2});e2&&e2.attr({stroke:c2});a2&&(n2&&a2.isMarker&&(m2=d.pointAttribs(),b||(m2.stroke=m2.fill=f2)),a2.attr(m2))}G(this,"afterColorizeItem",{item:d,visible:b})};l.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};l.prototype.positionItem=function(d){var b=this,a2=d.legendItem||{},f2=a2.group,l2=a2.x;l2=void 0===l2?0:l2;a2=a2.y;a2=void 0===a2?0:a2;var e2=this.options,c2=e2.symbolPadding,n2=!e2.rtl;e2=d.checkbox;f2&&f2.element&&(c2={translateX:n2?l2:this.legendWidth-l2-2*c2-4,translateY:a2},f2[k(f2.translateY)?"animate":"attr"](c2,void 0,(function(){G(b,"afterPositionItem",{item:d})})));e2&&(e2.x=l2,e2.y=a2)};l.prototype.destroyItem=function(d){for(var b=d.checkbox,a2=d.legendItem||{},f2=0,l2=["group","label","line","symbol"];f2<l2.length;f2++){var k2=l2[f2];a2[k2]&&(a2[k2]=a2[k2].destroy())}b&&e(b);d.legendItem=void 0};l.prototype.destroy=function(){for(var d=0,b=this.getAllItems();d<b.length;d++)this.destroyItem(b[d]);d=0;for(b="clipRect up down pager nav box title group".split(" ");d<b.length;d++){var a2=b[d];this[a2]&&(this[a2]=this[a2].destroy())}this.display=null};l.prototype.positionCheckboxes=function(){var d=this.group&&this.group.alignAttr,b=this.clipHeight||this.legendHeight,a2=this.titleHeight;if(d){var f2=d.translateY;this.allItems.forEach((function(h){var l2=h.checkbox;if(l2){var e2=f2+a2+l2.y+(this.scrollOffset||0)+3;p(l2,{left:d.translateX+h.checkboxOffset+l2.x-20+"px",top:e2+"px",display:this.proximate||e2>f2-6&&e2<f2+b-6?"":"none"})}}),this)}};l.prototype.renderTitle=function(){var d=this.options,b=this.padding,a2=d.title,f2=0;a2.text&&(this.title||(this.title=this.chart.renderer.label(a2.text,b-3,b-4,void 0,void 0,void 0,d.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(a2.style),this.title.add(this.group)),a2.width||this.title.css({width:this.maxLegendWidth+"px"}),d=this.title.getBBox(),f2=d.height,this.offsetWidth=d.width,this.contentGroup.attr({translateY:f2}));this.titleHeight=f2};l.prototype.setText=function(d){var b=this.options;d.legendItem.label.attr({text:b.labelFormat?t(b.labelFormat,d,this.chart):b.labelFormatter.call(d)})};l.prototype.renderItem=function(d){var b=d.legendItem=d.legendItem||{},a2=this.chart,f2=a2.renderer,l2=this.options,e2=this.symbolWidth,k2=l2.symbolPadding||0,c2=this.itemStyle,n2=this.itemHiddenStyle,m2="horizontal"===l2.layout?u(l2.itemDistance,20):0,p2=!l2.rtl,q2=!d.series,w2=!q2&&d.series.drawLegendSymbol?d.series:d,g3=w2.options,r2=this.createCheckboxForItem&&g3&&g3.showCheckbox,t2=l2.useHTML,D2=d.options.className,G2=b.label;g3=e2+k2+m2+(r2?20:0);G2||(b.group=f2.g("legend-item").addClass("highcharts-"+w2.type+"-series highcharts-color-"+d.colorIndex+(D2?" "+D2:"")+(q2?" highcharts-series-"+d.index:"")).attr({zIndex:1}).add(this.scrollGroup),b.label=G2=f2.text("",p2?e2+k2:-k2,this.baseline||0,t2),a2.styledMode||G2.css(K(d.visible?c2:n2)),G2.attr({align:p2?"left":"right",zIndex:2}).add(b.group),this.baseline||(this.fontMetrics=f2.fontMetrics(a2.styledMode?12:c2.fontSize,G2),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,G2.attr("y",this.baseline),this.symbolHeight=l2.symbolHeight||this.fontMetrics.f,l2.squareSymbol&&(this.symbolWidth=u(l2.symbolWidth,Math.max(this.symbolHeight,16)),g3=this.symbolWidth+k2+m2+(r2?20:0),p2&&G2.attr("x",this.symbolWidth+k2))),w2.drawLegendSymbol(this,d),this.setItemEvents&&this.setItemEvents(d,G2,t2));r2&&!d.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(d);this.colorizeItem(d,d.visible);!a2.styledMode&&c2.width||G2.css({width:(l2.itemWidth||this.widthOption||a2.spacingBox.width)-g3+"px"});this.setText(d);a2=G2.getBBox();f2=this.fontMetrics&&this.fontMetrics.h||0;d.itemWidth=d.checkboxOffset=l2.itemWidth||b.labelWidth||a2.width+g3;this.maxItemWidth=Math.max(this.maxItemWidth,d.itemWidth);this.totalItemWidth+=d.itemWidth;this.itemHeight=d.itemHeight=Math.round(b.labelHeight||(a2.height>1.5*f2?a2.height:f2))};l.prototype.layoutItem=function(d){var b=this.options,a2=this.padding,f2="horizontal"===b.layout,l2=d.itemHeight,e2=this.itemMarginBottom,k2=this.itemMarginTop,c2=f2?u(b.itemDistance,20):0,n2=this.maxLegendWidth;b=b.alignColumns&&this.totalItemWidth>n2?this.maxItemWidth:d.itemWidth;var m2=d.legendItem||{};f2&&this.itemX-a2+b>n2&&(this.itemX=a2,this.lastLineHeight&&(this.itemY+=k2+this.lastLineHeight+e2),this.lastLineHeight=0);this.lastItemY=k2+this.itemY+e2;this.lastLineHeight=Math.max(l2,this.lastLineHeight);m2.x=this.itemX;m2.y=this.itemY;f2?this.itemX+=b:(this.itemY+=k2+l2+e2,this.lastLineHeight=l2);this.offsetWidth=this.widthOption||Math.max((f2?this.itemX-a2-(d.checkbox?0:c2):b)+a2,this.offsetWidth)};l.prototype.getAllItems=function(){var d=[];this.chart.series.forEach((function(b){var a2=b&&b.options;b&&u(a2.showInLegend,k(a2.linkedTo)?false:void 0,true)&&(d=d.concat((b.legendItem||{}).labels||("point"===a2.legendType?b.data:b)))}));G(this,"afterGetAllItems",{allItems:d});return d};l.prototype.getAlignment=function(){var d=this.options;return this.proximate?d.align.charAt(0)+"tv":d.floating?"":d.align.charAt(0)+d.verticalAlign.charAt(0)+d.layout.charAt(0)};l.prototype.adjustMargins=function(d,b){var a2=this.chart,f2=this.options,l2=this.getAlignment();l2&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(h,e2){h.test(l2)&&!k(d[e2])&&(a2[r[e2]]=Math.max(a2[r[e2]],a2.legend[(e2+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][e2]*f2[e2%2?"x":"y"]+u(f2.margin,12)+b[e2]+(a2.titleOffset[e2]||0)))}))};l.prototype.proximatePositions=function(){var d=this.chart,b=[],h="left"===this.options.align;this.allItems.forEach((function(a2){var f3;var l3=h;if(a2.yAxis){a2.xAxis.options.reversed&&(l3=!l3);a2.points&&(f3=D(l3?a2.points:a2.points.slice(0).reverse(),(function(b2){return H(b2.plotY)})));l3=this.itemMarginTop+a2.legendItem.label.getBBox().height+this.itemMarginBottom;var e3=a2.yAxis.top-d.plotTop;a2.visible?(f3=f3?f3.plotY:a2.yAxis.height,f3+=e3-.3*l3):f3=e3+a2.yAxis.height;b.push({target:f3,size:l3,item:a2})}}),this);for(var f2,l2=0,e2=a(b,d.plotHeight);l2<e2.length;l2++){var k2=e2[l2];f2=k2.item.legendItem||{};H(k2.pos)&&(f2.y=d.plotTop-d.spacing[0]+k2.pos)}};l.prototype.render=function(){var d=this.chart,b=d.renderer,a2=this.options,f2=this.padding,l2=this.getAllItems(),e2=this.group,k2=this.box;this.itemX=f2;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=n(a2.width,d.spacingBox.width-f2);var c2=d.spacingBox.width-2*f2-a2.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(c2/=2);this.maxLegendWidth=this.widthOption||c2;e2||(this.group=e2=b.g("legend").addClass(a2.className||"").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e2),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();w(l2,(function(b2,d2){return(b2.options&&b2.options.legendIndex||0)-(d2.options&&d2.options.legendIndex||0)}));a2.reversed&&l2.reverse();this.allItems=l2;this.display=c2=!!l2.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;l2.forEach(this.renderItem,this);l2.forEach(this.layoutItem,this);l2=(this.widthOption||this.offsetWidth)+f2;var m2=this.lastItemY+this.lastLineHeight+this.titleHeight;m2=this.handleOverflow(m2);m2+=f2;k2||(this.box=k2=b.rect().addClass("highcharts-legend-box").attr({r:a2.borderRadius}).add(e2));d.styledMode||k2.attr({stroke:a2.borderColor,"stroke-width":a2.borderWidth||0,fill:a2.backgroundColor||"none"}).shadow(a2.shadow);if(0<l2&&0<m2)k2[k2.placed?"animate":"attr"](k2.crisp.call({},{x:0,y:0,width:l2,height:m2},k2.strokeWidth()));e2[c2?"show":"hide"]();d.styledMode&&"none"===e2.getStyle("display")&&(l2=m2=0);this.legendWidth=l2;this.legendHeight=m2;c2&&this.align();this.proximate||this.positionItems();G(this,"afterRender")};l.prototype.align=function(d){void 0===d&&(d=this.chart.spacingBox);var b=this.chart,a2=this.options,f2=d.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<b.titleOffset[0]?f2+=b.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<b.titleOffset[2]&&(f2-=b.titleOffset[2]);f2!==d.y&&(d=K(d,{y:f2}));b.hasRendered||(this.group.placed=false);this.group.align(K(a2,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":a2.verticalAlign}),true,d)};l.prototype.handleOverflow=function(d){var b=this,a2=this.chart,f2=a2.renderer,l2=this.options,e2=l2.y,k2="top"===l2.verticalAlign,c2=this.padding,n2=l2.maxHeight,m2=l2.navigation,p2=u(m2.animation,true),q2=m2.arrowSize||12,w2=this.pages,g3=this.allItems,r2=function(d2){"number"===typeof d2?H2.attr({height:d2}):H2&&(b.clipRect=H2.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=d2?"rect("+c2+"px,9999px,"+(c2+d2)+"px,0)":"auto")},t2=function(d2){b[d2]=f2.circle(0,0,1.3*q2).translate(q2/2,q2/2).add(C2);a2.styledMode||b[d2].attr("fill","rgba(0,0,0,0.0001)");return b[d2]},D2,G2,x2;e2=a2.spacingBox.height+(k2?-e2:e2)-c2;var C2=this.nav,H2=this.clipRect;"horizontal"!==l2.layout||"middle"===l2.verticalAlign||l2.floating||(e2/=2);n2&&(e2=Math.min(e2,n2));w2.length=0;d&&0<e2&&d>e2&&false!==m2.enabled?(this.clipHeight=D2=Math.max(e2-20-this.titleHeight-c2,0),this.currentPage=u(this.currentPage,1),this.fullHeight=d,g3.forEach((function(b2,d2){x2=b2.legendItem||{};b2=x2.y||0;var a3=Math.round(x2.label.getBBox().height),h=w2.length;if(!h||b2-w2[h-1]>D2&&(G2||b2)!==w2[h-1])w2.push(G2||b2),h++;x2.pageIx=h-1;G2&&((g3[d2-1].legendItem||{}).pageIx=h-1);d2===g3.length-1&&b2+a3-w2[h-1]>D2&&a3<=D2&&(w2.push(b2),x2.pageIx=h);b2!==G2&&(G2=b2)})),H2||(H2=b.clipRect=f2.clipRect(0,c2,9999,0),b.contentGroup.clip(H2)),r2(D2),C2||(this.nav=C2=f2.g().attr({zIndex:1}).add(this.group),this.up=f2.symbol("triangle",0,0,q2,q2).add(C2),t2("upTracker").on("click",(function(){b.scroll(-1,p2)})),this.pager=f2.text("",15,10).addClass("highcharts-legend-navigation"),!a2.styledMode&&m2.style&&this.pager.css(m2.style),this.pager.add(C2),this.down=f2.symbol("triangle-down",0,0,q2,q2).add(C2),t2("downTracker").on("click",(function(){b.scroll(1,p2)}))),b.scroll(0),d=e2):C2&&(r2(),this.nav=C2.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return d};l.prototype.scroll=function(d,b){var a2=this,l2=this.chart,e2=this.pages,k2=e2.length,c2=this.clipHeight,n2=this.options.navigation,m2=this.pager,p2=this.padding,q2=this.currentPage+d;q2>k2&&(q2=k2);0<q2&&("undefined"!==typeof b&&x(b,l2),this.nav.attr({translateX:p2,translateY:c2+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach((function(b2){b2.attr({class:1===q2?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),m2.attr({text:q2+"/"+k2}),[this.down,this.downTracker].forEach((function(b2){b2.attr({x:18+this.pager.getBBox().width,class:q2===k2?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),l2.styledMode||(this.up.attr({fill:1===q2?n2.inactiveColor:n2.activeColor}),this.upTracker.css({cursor:1===q2?"default":"pointer"}),this.down.attr({fill:q2===k2?n2.inactiveColor:n2.activeColor}),this.downTracker.css({cursor:q2===k2?"default":"pointer"})),this.scrollOffset=-e2[q2-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=q2,this.positionCheckboxes(),d=C(u(b,l2.renderer.globalAnimation,true)),f((function(){G(a2,"afterScroll",{currentPage:q2})}),d.duration))};l.prototype.setItemEvents=function(d,b,a2){var h=this,f2=d.legendItem||{},l2=h.chart.renderer.boxWrapper,e2=d instanceof A,k2="highcharts-legend-"+(e2?"point":"series")+"-active",c2=h.chart.styledMode,n2=function(b2){h.allItems.forEach((function(a3){d!==a3&&[a3].concat(a3.linkedSeries||[]).forEach((function(d2){d2.setState(b2,!e2)}))}))},m2=0;for(a2=a2?[b,f2.symbol]:[f2.group];m2<a2.length;m2++)if(f2=a2[m2])f2.on("mouseover",(function(){d.visible&&n2("inactive");d.setState("hover");d.visible&&l2.addClass(k2);c2||b.css(h.options.itemHoverStyle)})).on("mouseout",(function(){h.chart.styledMode||b.css(K(d.visible?h.itemStyle:h.itemHiddenStyle));n2("");l2.removeClass(k2);d.setState()})).on("click",(function(b2){var a3=function(){d.setVisible&&d.setVisible();n2(d.visible?"inactive":"")};l2.removeClass(k2);b2={browserEvent:b2};d.firePointEvent?d.firePointEvent("legendItemClick",b2,a3):G(d,"legendItemClick",b2,a3)}))};l.prototype.createCheckboxForItem=function(d){d.checkbox=m("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:d.selected,defaultChecked:d.selected},this.options.itemCheckboxStyle,this.chart.container);q(d.checkbox,"click",(function(b){G(d.series||d,"checkboxClick",{checked:b.target.checked,item:d},(function(){d.select()}))}))};return l}();return c}));I(g,"Core/Series/SeriesRegistry.js",[g["Core/Globals.js"],g["Core/Defaults.js"],g["Core/Series/Point.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){var B=g2.defaultOptions,z=A.extendClass,C=A.merge,x;(function(g3){function r(a,c2){var m=B.plotOptions||{},p=c2.defaultOptions,k=c2.prototype;k.type=a;k.pointClass||(k.pointClass=y);p&&(m[a]=p);g3.seriesTypes[a]=c2}g3.seriesTypes=c.seriesTypes;g3.registerSeriesType=r;g3.seriesType=function(a,c2,m,p,k){var e=B.plotOptions||{};c2=c2||"";e[a]=C(e[c2],m);r(a,z(g3.seriesTypes[c2]||function(){},p));g3.seriesTypes[a].prototype.type=a;k&&(g3.seriesTypes[a].prototype.pointClass=z(y,k));return g3.seriesTypes[a]}})(x||(x={}));return x}));I(g,"Core/Chart/Chart.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/Axis.js"],g["Core/Defaults.js"],g["Core/FormatUtilities.js"],g["Core/Foundation.js"],g["Core/Globals.js"],g["Core/Legend/Legend.js"],g["Core/MSPointer.js"],g["Core/Pointer.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Renderer/SVG/SVGRenderer.js"],g["Core/Time.js"],g["Core/Utilities.js"],g["Core/Renderer/HTML/AST.js"]],(function(c,g2,y,A,B,z,C,x,t,r,a,q,m,p,k){var e=c.animate,D=c.animObject,G=c.setAnimation,H=y.defaultOptions,K=y.defaultTime,u=A.numberFormat,n=B.registerEventOptions,w=z.charts,f=z.doc,l=z.marginNames,d=z.svg,b=z.win,h=a.seriesTypes,v=p.addEvent,E=p.attr,J=p.cleanRecursively,M=p.createElement,O=p.css,P=p.defined,T=p.discardElement,F=p.erase,Q=p.error,aa=p.extend,L=p.find,R=p.fireEvent,N=p.getStyle,X=p.isArray,ba=p.isNumber,da=p.isObject,V=p.isString,U=p.merge,Y=p.objectEach,S=p.pick,ca=p.pInt,Z=p.relativeLength,I2=p.removeEvent,ea=p.splat,fa=p.syncTimeout,ha=p.uniqueKey;c=function(){function a2(b2,d2,a3){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(b2,d2,a3)}a2.chart=function(b2,d2,h2){return new a2(b2,d2,h2)};a2.prototype.getArgs=function(b2,d2,a3){V(b2)||b2.nodeName?(this.renderTo=b2,this.init(d2,a3)):this.init(b2,d2)};a2.prototype.init=function(b2,d2){var a3=b2.plotOptions||{};R(this,"init",{args:arguments},(function(){var h2=U(H,b2),f2=h2.chart;Y(h2.plotOptions,(function(b3,d3){da(b3)&&(b3.tooltip=a3[d3]&&U(a3[d3].tooltip)||void 0)}));h2.tooltip.userOptions=b2.chart&&b2.chart.forExport&&b2.tooltip.userOptions||b2.tooltip;this.userOptions=b2;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=d2;this.isResizing=0;var l2=f2.zooming=f2.zooming||{};b2.chart&&!b2.chart.zooming&&(l2.resetButton=f2.resetZoomButton);l2.key=S(l2.key,f2.zoomKey);l2.pinchType=S(l2.pinchType,f2.pinchType);l2.singleTouch=S(l2.singleTouch,f2.zoomBySingleTouch);l2.type=S(l2.type,f2.zoomType);this.options=h2;this.axes=[];this.series=[];this.time=b2.time&&Object.keys(b2.time).length?new m(b2.time):z.time;this.numberFormatter=f2.numberFormatter||u;this.styledMode=f2.styledMode;this.hasCartesianSeries=f2.showAxes;this.index=w.length;w.push(this);z.chartCount++;n(this,f2);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;R(this,"afterInit");this.firstRender()}))};a2.prototype.initSeries=function(b2){var d2=this.options.chart;d2=b2.type||d2.type||d2.defaultSeriesType;var a3=h[d2];a3||Q(17,true,this,{missingModuleFor:d2});d2=new a3;"function"===typeof d2.init&&d2.init(this,b2);return d2};a2.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach((function(b2){b2.points||b2.data||!b2.enabledDataSorting||b2.setData(b2.options.data,false)}))};a2.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort((function(b2,d2){return b2.linkedSeries.length||d2.linkedSeries.length?d2.linkedSeries.length-b2.linkedSeries.length:0}))};a2.prototype.orderSeries=function(b2){var d2=this.series;b2=b2||0;for(var a3=d2.length;b2<a3;++b2)d2[b2]&&(d2[b2].index=b2,d2[b2].name=d2[b2].getName())};a2.prototype.isInsidePlot=function(b2,d2,a3){void 0===a3&&(a3={});var h2=this.inverted,f2=this.plotBox,l2=this.plotLeft,e2=this.plotTop,k2=this.scrollablePlotBox,c2=0;var n2=0;a3.visiblePlotOnly&&this.scrollingContainer&&(n2=this.scrollingContainer,c2=n2.scrollLeft,n2=n2.scrollTop);var v2=a3.series;f2=a3.visiblePlotOnly&&k2||f2;k2=a3.inverted?d2:b2;d2=a3.inverted?b2:d2;b2={x:k2,y:d2,isInsidePlot:true,options:a3};if(!a3.ignoreX){var m2=v2&&(h2&&!this.polar?v2.yAxis:v2.xAxis)||{pos:l2,len:Infinity};k2=a3.paneCoordinates?m2.pos+k2:l2+k2;k2>=Math.max(c2+l2,m2.pos)&&k2<=Math.min(c2+l2+f2.width,m2.pos+m2.len)||(b2.isInsidePlot=false)}!a3.ignoreY&&b2.isInsidePlot&&(h2=a3.axis&&!a3.axis.isXAxis&&a3.axis||v2&&(h2?v2.xAxis:v2.yAxis)||{pos:e2,len:Infinity},a3=a3.paneCoordinates?h2.pos+d2:e2+d2,a3>=Math.max(n2+e2,h2.pos)&&a3<=Math.min(n2+e2+f2.height,h2.pos+h2.len)||(b2.isInsidePlot=false));R(this,"afterIsInsidePlot",b2);return b2.isInsidePlot};a2.prototype.redraw=function(b2){R(this,"beforeRedraw");var d2=this.hasCartesianSeries?this.axes:this.colorAxis||[],a3=this.series,h2=this.pointer,f2=this.legend,l2=this.userOptions.legend,e2=this.renderer,k2=e2.isHidden(),c2=[],n2=this.isDirtyBox,v2=this.isDirtyLegend;this.setResponsive&&this.setResponsive(false);G(this.hasRendered?b2:false,this);k2&&this.temporaryDisplay();this.layOutTitles();for(b2=a3.length;b2--;){var m2=a3[b2];if(m2.options.stacking||m2.options.centerInCategory){var p2=true;if(m2.isDirty){var q2=true;break}}}if(q2)for(b2=a3.length;b2--;)m2=a3[b2],m2.options.stacking&&(m2.isDirty=true);a3.forEach((function(b3){b3.isDirty&&("point"===b3.options.legendType?("function"===typeof b3.updateTotals&&b3.updateTotals(),v2=true):l2&&(l2.labelFormatter||l2.labelFormat)&&(v2=true));b3.isDirtyData&&R(b3,"updatedData")}));v2&&f2&&f2.options.enabled&&(f2.render(),this.isDirtyLegend=false);p2&&this.getStacks();d2.forEach((function(b3){b3.updateNames();b3.setScale()}));this.getMargins();d2.forEach((function(b3){b3.isDirty&&(n2=true)}));d2.forEach((function(b3){var d3=b3.min+","+b3.max;b3.extKey!==d3&&(b3.extKey=d3,c2.push((function(){R(b3,"afterSetExtremes",aa(b3.eventArgs,b3.getExtremes()));delete b3.eventArgs})));(n2||p2)&&b3.redraw()}));n2&&this.drawChartBox();R(this,"predraw");a3.forEach((function(b3){(n2||b3.isDirty)&&b3.visible&&b3.redraw();b3.isDirtyData=false}));h2&&h2.reset(true);e2.draw();R(this,"redraw");R(this,"render");k2&&this.temporaryDisplay(true);c2.forEach((function(b3){b3.call()}))};a2.prototype.get=function(b2){function d2(d3){return d3.id===b2||d3.options&&d3.options.id===b2}for(var a3=this.series,h2=L(this.axes,d2)||L(this.series,d2),f2=0;!h2&&f2<a3.length;f2++)h2=L(a3[f2].points||[],d2);return h2};a2.prototype.getAxes=function(){var b2=this,d2=this.options,a3=d2.xAxis=ea(d2.xAxis||{});d2=d2.yAxis=ea(d2.yAxis||{});R(this,"getAxes");a3.forEach((function(b3,d3){b3.index=d3;b3.isX=true}));d2.forEach((function(b3,d3){b3.index=d3}));a3.concat(d2).forEach((function(d3){new g2(b2,d3)}));R(this,"afterGetAxes")};a2.prototype.getSelectedPoints=function(){return this.series.reduce((function(b2,d2){d2.getPointsCollection().forEach((function(d3){S(d3.selectedStaging,d3.selected)&&b2.push(d3)}));return b2}),[])};a2.prototype.getSelectedSeries=function(){return this.series.filter((function(b2){return b2.selected}))};a2.prototype.setTitle=function(b2,d2,a3){this.applyDescription("title",b2);this.applyDescription("subtitle",d2);this.applyDescription("caption",void 0);this.layOutTitles(a3)};a2.prototype.applyDescription=function(b2,d2){var a3=this,h2="title"===b2?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};h2=this.options[b2]=U(!this.styledMode&&{style:h2},this.options[b2],d2);var f2=this[b2];f2&&d2&&(this[b2]=f2=f2.destroy());h2&&!f2&&(f2=this.renderer.text(h2.text,0,0,h2.useHTML).attr({align:h2.align,class:"highcharts-"+b2,zIndex:h2.zIndex||4}).add(),f2.update=function(d3){a3[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[b2]](d3)},this.styledMode||f2.css(h2.style),this[b2]=f2)};a2.prototype.layOutTitles=function(b2){var d2=[0,0,0],a3=this.renderer,h2=this.spacingBox;["title","subtitle","caption"].forEach((function(b3){var f3=this[b3],l2=this.options[b3],e2=l2.verticalAlign||"top";b3="title"===b3?"top"===e2?-3:0:"top"===e2?d2[0]+2:0;var k2;if(f3){this.styledMode||(k2=l2.style&&l2.style.fontSize);k2=a3.fontMetrics(k2,f3).b;f3.css({width:(l2.width||h2.width+(l2.widthAdjust||0))+"px"});var c2=Math.round(f3.getBBox(l2.useHTML).height);f3.align(aa({y:"bottom"===e2?k2:b3+k2,height:c2},l2),false,"spacingBox");l2.floating||("top"===e2?d2[0]=Math.ceil(d2[0]+c2):"bottom"===e2&&(d2[2]=Math.ceil(d2[2]+c2)))}}),this);d2[0]&&"top"===(this.options.title.verticalAlign||"top")&&(d2[0]+=this.options.title.margin);d2[2]&&"bottom"===this.options.caption.verticalAlign&&(d2[2]+=this.options.caption.margin);var f2=!this.titleOffset||this.titleOffset.join(",")!==d2.join(",");this.titleOffset=d2;R(this,"afterLayOutTitles");!this.isDirtyBox&&f2&&(this.isDirtyBox=this.isDirtyLegend=f2,this.hasRendered&&S(b2,true)&&this.isDirtyBox&&this.redraw())};a2.prototype.getChartSize=function(){var b2=this.options.chart,d2=b2.width;b2=b2.height;var a3=this.renderTo;P(d2)||(this.containerWidth=N(a3,"width"));P(b2)||(this.containerHeight=N(a3,"height"));this.chartWidth=Math.max(0,d2||this.containerWidth||600);this.chartHeight=Math.max(0,Z(b2,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};a2.prototype.temporaryDisplay=function(b2){var d2=this.renderTo;if(b2)for(;d2&&d2.style;)d2.hcOrigStyle&&(O(d2,d2.hcOrigStyle),delete d2.hcOrigStyle),d2.hcOrigDetached&&(f.body.removeChild(d2),d2.hcOrigDetached=false),d2=d2.parentNode;else for(;d2&&d2.style;){f.body.contains(d2)||d2.parentNode||(d2.hcOrigDetached=true,f.body.appendChild(d2));if("none"===N(d2,"display",false)||d2.hcOricDetached)d2.hcOrigStyle={display:d2.style.display,height:d2.style.height,overflow:d2.style.overflow},b2={display:"block",overflow:"hidden"},d2!==this.renderTo&&(b2.height=0),O(d2,b2),d2.offsetWidth||d2.style.setProperty("display","block","important");d2=d2.parentNode;if(d2===f.body)break}};a2.prototype.setClassName=function(b2){this.container.className="highcharts-container "+(b2||"")};a2.prototype.getContainer=function(){var b2=this.options,a3=b2.chart,h2=ha(),l2,e2=this.renderTo;e2||(this.renderTo=e2=a3.renderTo);V(e2)&&(this.renderTo=e2=f.getElementById(e2));e2||Q(13,true,this);var c2=ca(E(e2,"data-highcharts-chart"));ba(c2)&&w[c2]&&w[c2].hasRendered&&w[c2].destroy();E(e2,"data-highcharts-chart",this.index);e2.innerHTML=k.emptyHTML;a3.skipClone||e2.offsetWidth||this.temporaryDisplay();this.getChartSize();c2=this.chartWidth;var n2=this.chartHeight;O(e2,{overflow:"hidden"});this.styledMode||(l2=aa({position:"relative",overflow:"hidden",width:c2+"px",height:n2+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},a3.style||{}));this.container=h2=M("div",{id:h2},l2,e2);this._cursor=h2.style.cursor;this.renderer=new(a3.renderer||!d?r.getRendererType(a3.renderer):q)(h2,c2,n2,void 0,a3.forExport,b2.exporting&&b2.exporting.allowHTML,this.styledMode);G(void 0,this);this.setClassName(a3.className);if(this.styledMode)for(var v2 in b2.defs)this.renderer.definition(b2.defs[v2]);else this.renderer.setStyle(a3.style);this.renderer.chartIndex=this.index;R(this,"afterGetContainer")};a2.prototype.getMargins=function(b2){var d2=this.spacing,a3=this.margin,h2=this.titleOffset;this.resetMargins();h2[0]&&!P(a3[0])&&(this.plotTop=Math.max(this.plotTop,h2[0]+d2[0]));h2[2]&&!P(a3[2])&&(this.marginBottom=Math.max(this.marginBottom,h2[2]+d2[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(a3,d2);R(this,"getMargins");b2||this.getAxisMargins()};a2.prototype.getAxisMargins=function(){var b2=this,d2=b2.axisOffset=[0,0,0,0],a3=b2.colorAxis,h2=b2.margin,f2=function(b3){b3.forEach((function(b4){b4.visible&&b4.getOffset()}))};b2.hasCartesianSeries?f2(b2.axes):a3&&a3.length&&f2(a3);l.forEach((function(a4,f3){P(h2[f3])||(b2[a4]+=d2[f3])}));b2.setChartSize()};a2.prototype.reflow=function(d2){var a3=this,h2=a3.options.chart,l2=a3.renderTo,e2=P(h2.width)&&P(h2.height),k2=h2.width||N(l2,"width");h2=h2.height||N(l2,"height");l2=d2?d2.target:b;delete a3.pointer.chartPosition;if(!e2&&!a3.isPrinting&&k2&&h2&&(l2===b||l2===f)){if(k2!==a3.containerWidth||h2!==a3.containerHeight)p.clearTimeout(a3.reflowTimeout),a3.reflowTimeout=fa((function(){a3.container&&a3.setSize(void 0,void 0,false)}),d2?100:0);a3.containerWidth=k2;a3.containerHeight=h2}};a2.prototype.setReflow=function(d2){var a3=this;false===d2||this.unbindReflow?false===d2&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=v(b,"resize",(function(b2){a3.options&&a3.reflow(b2)})),v(this,"destroy",this.unbindReflow))};a2.prototype.setSize=function(b2,d2,a3){var h2=this,f2=h2.renderer;h2.isResizing+=1;G(a3,h2);a3=f2.globalAnimation;h2.oldChartHeight=h2.chartHeight;h2.oldChartWidth=h2.chartWidth;"undefined"!==typeof b2&&(h2.options.chart.width=b2);"undefined"!==typeof d2&&(h2.options.chart.height=d2);h2.getChartSize();h2.styledMode||(a3?e:O)(h2.container,{width:h2.chartWidth+"px",height:h2.chartHeight+"px"},a3);h2.setChartSize(true);f2.setSize(h2.chartWidth,h2.chartHeight,a3);h2.axes.forEach((function(b3){b3.isDirty=true;b3.setScale()}));h2.isDirtyLegend=true;h2.isDirtyBox=true;h2.layOutTitles();h2.getMargins();h2.redraw(a3);h2.oldChartHeight=null;R(h2,"resize");fa((function(){h2&&R(h2,"endResize",null,(function(){--h2.isResizing}))}),D(a3).duration)};a2.prototype.setChartSize=function(b2){var d2=this.inverted,a3=this.renderer,h2=this.chartWidth,f2=this.chartHeight,l2=this.options.chart,e2=this.spacing,k2=this.clipOffset,c2,n2,v2,m2;this.plotLeft=c2=Math.round(this.plotLeft);this.plotTop=n2=Math.round(this.plotTop);this.plotWidth=v2=Math.max(0,Math.round(h2-c2-this.marginRight));this.plotHeight=m2=Math.max(0,Math.round(f2-n2-this.marginBottom));this.plotSizeX=d2?m2:v2;this.plotSizeY=d2?v2:m2;this.plotBorderWidth=l2.plotBorderWidth||0;this.spacingBox=a3.spacingBox={x:e2[3],y:e2[0],width:h2-e2[3]-e2[1],height:f2-e2[0]-e2[2]};this.plotBox=a3.plotBox={x:c2,y:n2,width:v2,height:m2};d2=2*Math.floor(this.plotBorderWidth/2);h2=Math.ceil(Math.max(d2,k2[3])/2);f2=Math.ceil(Math.max(d2,k2[0])/2);this.clipBox={x:h2,y:f2,width:Math.floor(this.plotSizeX-Math.max(d2,k2[1])/2-h2),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(d2,k2[2])/2-f2))};b2||(this.axes.forEach((function(b3){b3.setAxisSize();b3.setAxisTranslation()})),a3.alignElements());R(this,"afterSetChartSize",{skipAxes:b2})};a2.prototype.resetMargins=function(){R(this,"resetMargins");var b2=this,d2=b2.options.chart;["margin","spacing"].forEach((function(a3){var h2=d2[a3],f2=da(h2)?h2:[h2,h2,h2,h2];["Top","Right","Bottom","Left"].forEach((function(h3,l2){b2[a3][l2]=S(d2[a3+h3],f2[l2])}))}));l.forEach((function(d3,a3){b2[d3]=S(b2.margin[a3],b2.spacing[a3])}));b2.axisOffset=[0,0,0,0];b2.clipOffset=[0,0,0,0]};a2.prototype.drawChartBox=function(){var b2=this.options.chart,d2=this.renderer,a3=this.chartWidth,h2=this.chartHeight,f2=this.styledMode,l2=this.plotBGImage,e2=b2.backgroundColor,k2=b2.plotBackgroundColor,c2=b2.plotBackgroundImage,n2=this.plotLeft,v2=this.plotTop,m2=this.plotWidth,p2=this.plotHeight,q2=this.plotBox,u2=this.clipRect,g3=this.clipBox,w2=this.chartBackground,E2=this.plotBackground,r2=this.plotBorder,t2,F2="animate";w2||(this.chartBackground=w2=d2.rect().addClass("highcharts-background").add(),F2="attr");if(f2)var N2=t2=w2.strokeWidth();else{N2=b2.borderWidth||0;t2=N2+(b2.shadow?8:0);e2={fill:e2||"none"};if(N2||w2["stroke-width"])e2.stroke=b2.borderColor,e2["stroke-width"]=N2;w2.attr(e2).shadow(b2.shadow)}w2[F2]({x:t2/2,y:t2/2,width:a3-t2-N2%2,height:h2-t2-N2%2,r:b2.borderRadius});F2="animate";E2||(F2="attr",this.plotBackground=E2=d2.rect().addClass("highcharts-plot-background").add());E2[F2](q2);f2||(E2.attr({fill:k2||"none"}).shadow(b2.plotShadow),c2&&(l2?(c2!==l2.attr("href")&&l2.attr("href",c2),l2.animate(q2)):this.plotBGImage=d2.image(c2,n2,v2,m2,p2).add()));u2?u2.animate({width:g3.width,height:g3.height}):this.clipRect=d2.clipRect(g3);F2="animate";r2||(F2="attr",this.plotBorder=r2=d2.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());f2||r2.attr({stroke:b2.plotBorderColor,"stroke-width":b2.plotBorderWidth||0,fill:"none"});r2[F2](r2.crisp({x:n2,y:v2,width:m2,height:p2},-r2.strokeWidth()));this.isDirtyBox=false;R(this,"afterDrawChartBox")};a2.prototype.propFromSeries=function(){var b2=this,d2=b2.options.chart,a3=b2.options.series,f2,l2,e2;["inverted","angular","polar"].forEach((function(k2){l2=h[d2.type||d2.defaultSeriesType];e2=d2[k2]||l2&&l2.prototype[k2];for(f2=a3&&a3.length;!e2&&f2--;)(l2=h[a3[f2].type])&&l2.prototype[k2]&&(e2=true);b2[k2]=e2}))};a2.prototype.linkSeries=function(){var b2=this,d2=b2.series;d2.forEach((function(b3){b3.linkedSeries.length=0}));d2.forEach((function(d3){var a3=d3.options.linkedTo;V(a3)&&(a3=":previous"===a3?b2.series[d3.index-1]:b2.get(a3))&&a3.linkedParent!==d3&&(a3.linkedSeries.push(d3),d3.linkedParent=a3,a3.enabledDataSorting&&d3.setDataSortingOptions(),d3.visible=S(d3.options.visible,a3.options.visible,d3.visible))}));R(this,"afterLinkSeries")};a2.prototype.renderSeries=function(){this.series.forEach((function(b2){b2.translate();b2.render()}))};a2.prototype.renderLabels=function(){var b2=this,d2=b2.options.labels;d2.items&&d2.items.forEach((function(a3){var h2=aa(d2.style,a3.style),f2=ca(h2.left)+b2.plotLeft,l2=ca(h2.top)+b2.plotTop+12;delete h2.left;delete h2.top;b2.renderer.text(a3.html,f2,l2).attr({zIndex:2}).css(h2).add()}))};a2.prototype.render=function(){var b2=this.axes,d2=this.colorAxis,a3=this.renderer,h2=this.options,f2=function(b3){b3.forEach((function(b4){b4.visible&&b4.render()}))},l2=0;this.setTitle();this.legend=new C(this,h2.legend);this.getStacks&&this.getStacks();this.getMargins(true);this.setChartSize();h2=this.plotWidth;b2.some((function(b3){if(b3.horiz&&b3.visible&&b3.options.labels.enabled&&b3.series.length)return l2=21,true}));var e2=this.plotHeight=Math.max(this.plotHeight-l2,0);b2.forEach((function(b3){b3.setScale()}));this.getAxisMargins();var k2=1.1<h2/this.plotWidth,c2=1.05<e2/this.plotHeight;if(k2||c2)b2.forEach((function(b3){(b3.horiz&&k2||!b3.horiz&&c2)&&b3.setTickInterval(true)})),this.getMargins();this.drawChartBox();this.hasCartesianSeries?f2(b2):d2&&d2.length&&f2(d2);this.seriesGroup||(this.seriesGroup=a3.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=true};a2.prototype.addCredits=function(d2){var a3=this,h2=U(true,this.options.credits,d2);h2.enabled&&!this.credits&&(this.credits=this.renderer.text(h2.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){h2.href&&(b.location.href=h2.href)})).attr({align:h2.position.align,zIndex:8}),a3.styledMode||this.credits.css(h2.style),this.credits.add().align(h2.position),this.credits.update=function(b2){a3.credits=a3.credits.destroy();a3.addCredits(b2)})};a2.prototype.destroy=function(){var b2=this,d2=b2.axes,a3=b2.series,h2=b2.container,f2=h2&&h2.parentNode,l2;R(b2,"destroy");b2.renderer.forExport?F(w,b2):w[b2.index]=void 0;z.chartCount--;b2.renderTo.removeAttribute("data-highcharts-chart");I2(b2);for(l2=d2.length;l2--;)d2[l2]=d2[l2].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(l2=a3.length;l2--;)a3[l2]=a3[l2].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach((function(d3){var a4=b2[d3];a4&&a4.destroy&&(b2[d3]=a4.destroy())}));h2&&(h2.innerHTML=k.emptyHTML,I2(h2),f2&&T(h2));Y(b2,(function(d3,a4){delete b2[a4]}))};a2.prototype.firstRender=function(){var b2=this,d2=b2.options;if(!b2.isReadyToRender||b2.isReadyToRender()){b2.getContainer();b2.resetMargins();b2.setChartSize();b2.propFromSeries();b2.getAxes();(X(d2.series)?d2.series:[]).forEach((function(d3){b2.initSeries(d3)}));b2.linkSeries();b2.setSeriesData();R(b2,"beforeRender");t&&(x.isRequired()?b2.pointer=new x(b2,d2):b2.pointer=new t(b2,d2));b2.render();b2.pointer.getChartPosition();if(!b2.renderer.imgCount&&!b2.hasLoaded)b2.onload();b2.temporaryDisplay(true)}};a2.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach((function(b2){b2&&"undefined"!==typeof this.index&&b2.apply(this,[this])}),this);R(this,"load");R(this,"render");P(this.index)&&this.setReflow(this.options.chart.reflow);this.warnIfA11yModuleNotLoaded();this.hasLoaded=true};a2.prototype.warnIfA11yModuleNotLoaded=function(){var b2=this.options,d2=this.title;b2&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(d2&&d2.element.textContent||"").replace(/</g,"&lt;")}),b2.accessibility&&false===b2.accessibility.enabled||Q('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',false,this))};a2.prototype.addSeries=function(b2,d2,a3){var h2=this,f2;b2&&(d2=S(d2,true),R(h2,"addSeries",{options:b2},(function(){f2=h2.initSeries(b2);h2.isDirtyLegend=true;h2.linkSeries();f2.enabledDataSorting&&f2.setData(b2.data,false);R(h2,"afterAddSeries",{series:f2});d2&&h2.redraw(a3)})));return f2};a2.prototype.addAxis=function(b2,d2,a3,h2){return this.createAxis(d2?"xAxis":"yAxis",{axis:b2,redraw:a3,animation:h2})};a2.prototype.addColorAxis=function(b2,d2,a3){return this.createAxis("colorAxis",{axis:b2,redraw:d2,animation:a3})};a2.prototype.createAxis=function(b2,d2){b2=new g2(this,U(d2.axis,{index:this[b2].length,isX:"xAxis"===b2}));S(d2.redraw,true)&&this.redraw(d2.animation);return b2};a2.prototype.showLoading=function(b2){var d2=this,a3=d2.options,h2=a3.loading,f2=function(){l2&&O(l2,{left:d2.plotLeft+"px",top:d2.plotTop+"px",width:d2.plotWidth+"px",height:d2.plotHeight+"px"})},l2=d2.loadingDiv,c2=d2.loadingSpan;l2||(d2.loadingDiv=l2=M("div",{className:"highcharts-loading highcharts-loading-hidden"},null,d2.container));c2||(d2.loadingSpan=c2=M("span",{className:"highcharts-loading-inner"},null,l2),v(d2,"redraw",f2));l2.className="highcharts-loading";k.setElementHTML(c2,S(b2,a3.lang.loading,""));d2.styledMode||(O(l2,aa(h2.style,{zIndex:10})),O(c2,h2.labelStyle),d2.loadingShown||(O(l2,{opacity:0,display:""}),e(l2,{opacity:h2.style.opacity||.5},{duration:h2.showDuration||0})));d2.loadingShown=true;f2()};a2.prototype.hideLoading=function(){var b2=this.options,d2=this.loadingDiv;d2&&(d2.className="highcharts-loading highcharts-loading-hidden",this.styledMode||e(d2,{opacity:0},{duration:b2.loading.hideDuration||100,complete:function(){O(d2,{display:"none"})}}));this.loadingShown=false};a2.prototype.update=function(b2,d2,a3,h2){var f2=this,l2={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},e2=b2.isResponsiveOptions,k2=[],c2,v2;R(f2,"update",{options:b2});e2||f2.setResponsive(false,true);b2=J(b2,f2.options);f2.userOptions=U(f2.userOptions,b2);var p2=b2.chart;if(p2){U(true,f2.options.chart,p2);"className"in p2&&f2.setClassName(p2.className);"reflow"in p2&&f2.setReflow(p2.reflow);if("inverted"in p2||"polar"in p2||"type"in p2){f2.propFromSeries();var q2=true}"alignTicks"in p2&&(q2=true);"events"in p2&&n(this,p2);Y(p2,(function(b3,d3){-1!==f2.propsRequireUpdateSeries.indexOf("chart."+d3)&&(c2=true);-1!==f2.propsRequireDirtyBox.indexOf(d3)&&(f2.isDirtyBox=true);-1!==f2.propsRequireReflow.indexOf(d3)&&(e2?f2.isDirtyBox=true:v2=true)}));!f2.styledMode&&p2.style&&f2.renderer.setStyle(f2.options.chart.style||{})}!f2.styledMode&&b2.colors&&(this.options.colors=b2.colors);b2.time&&(this.time===K&&(this.time=new m(b2.time)),U(true,f2.options.time,b2.time));Y(b2,(function(d3,a4){if(f2[a4]&&"function"===typeof f2[a4].update)f2[a4].update(d3,false);else if("function"===typeof f2[l2[a4]])f2[l2[a4]](d3);else"colors"!==a4&&-1===f2.collectionsWithUpdate.indexOf(a4)&&U(true,f2.options[a4],b2[a4]);"chart"!==a4&&-1!==f2.propsRequireUpdateSeries.indexOf(a4)&&(c2=true)}));this.collectionsWithUpdate.forEach((function(d3){if(b2[d3]){var h3=[];f2[d3].forEach((function(b3,d4){b3.options.isInternal||h3.push(S(b3.options.index,d4))}));ea(b2[d3]).forEach((function(b3,l3){var e3=P(b3.id),k3;e3&&(k3=f2.get(b3.id));!k3&&f2[d3]&&(k3=f2[d3][h3?h3[l3]:l3])&&e3&&P(k3.options.id)&&(k3=void 0);k3&&k3.coll===d3&&(k3.update(b3,false),a3&&(k3.touched=true));!k3&&a3&&f2.collectionsWithInit[d3]&&(f2.collectionsWithInit[d3][0].apply(f2,[b3].concat(f2.collectionsWithInit[d3][1]||[]).concat([false])).touched=true)}));a3&&f2[d3].forEach((function(b3){b3.touched||b3.options.isInternal?delete b3.touched:k2.push(b3)}))}}));k2.forEach((function(b3){b3.chart&&b3.remove&&b3.remove(false)}));q2&&f2.axes.forEach((function(b3){b3.update({},false)}));c2&&f2.getSeriesOrderByLinks().forEach((function(b3){b3.chart&&b3.update({},false)}),this);q2=p2&&p2.width;p2=p2&&(V(p2.height)?Z(p2.height,q2||f2.chartWidth):p2.height);v2||ba(q2)&&q2!==f2.chartWidth||ba(p2)&&p2!==f2.chartHeight?f2.setSize(q2,p2,h2):S(d2,true)&&f2.redraw(h2);R(f2,"afterUpdate",{options:b2,redraw:d2,animation:h2})};a2.prototype.setSubtitle=function(b2,d2){this.applyDescription("subtitle",b2);this.layOutTitles(d2)};a2.prototype.setCaption=function(b2,d2){this.applyDescription("caption",b2);this.layOutTitles(d2)};a2.prototype.showResetZoom=function(){function b2(){d2.zoomOut()}var d2=this,a3=H.lang,h2=d2.options.chart.zooming.resetButton,f2=h2.theme,l2="chart"===h2.relativeTo||"spacingBox"===h2.relativeTo?null:"scrollablePlotBox";R(this,"beforeShowResetZoom",null,(function(){d2.resetZoomButton=d2.renderer.button(a3.resetZoom,null,null,b2,f2).attr({align:h2.position.align,title:a3.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(h2.position,false,l2)}));R(this,"afterShowResetZoom")};a2.prototype.zoomOut=function(){R(this,"selection",{resetSelection:true},this.zoom)};a2.prototype.zoom=function(b2){var d2=this,a3=d2.pointer,h2=false,f2;!b2||b2.resetSelection?(d2.axes.forEach((function(b3){f2=b3.zoom()})),a3.initiated=false):b2.xAxis.concat(b2.yAxis).forEach((function(b3){var l3=b3.axis;if(a3[l3.isXAxis?"zoomX":"zoomY"]&&P(a3.mouseDownX)&&P(a3.mouseDownY)&&d2.isInsidePlot(a3.mouseDownX-d2.plotLeft,a3.mouseDownY-d2.plotTop,{axis:l3})||!P(d2.inverted?a3.mouseDownX:a3.mouseDownY))f2=l3.zoom(b3.min,b3.max),l3.displayBtn&&(h2=true)}));var l2=d2.resetZoomButton;h2&&!l2?d2.showResetZoom():!h2&&da(l2)&&(d2.resetZoomButton=l2.destroy());f2&&d2.redraw(S(d2.options.chart.animation,b2&&b2.animation,100>d2.pointCount))};a2.prototype.pan=function(b2,d2){var a3=this,h2=a3.hoverPoints;d2="object"===typeof d2?d2:{enabled:d2,type:"x"};var f2=a3.options.chart;f2&&f2.panning&&(f2.panning=d2);var l2=d2.type,e2;R(this,"pan",{originalEvent:b2},(function(){h2&&h2.forEach((function(b3){b3.setState()}));var d3=a3.xAxis;"xy"===l2?d3=d3.concat(a3.yAxis):"y"===l2&&(d3=a3.yAxis);var f3={};d3.forEach((function(d4){if(d4.options.panningEnabled&&!d4.options.isInternal){var h3=d4.horiz,k2=b2[h3?"chartX":"chartY"];h3=h3?"mouseDownX":"mouseDownY";var c2=a3[h3],n2=d4.minPointOffset||0,v2=d4.reversed&&!a3.inverted||!d4.reversed&&a3.inverted?-1:1,m2=d4.getExtremes(),p2=d4.toValue(c2-k2,true)+n2*v2,q2=d4.toValue(c2+d4.len-k2,true)-(n2*v2||d4.isXAxis&&d4.pointRangePadding||0),u2=q2<p2;v2=d4.hasVerticalPanning();c2=u2?q2:p2;p2=u2?p2:q2;var w2=d4.panningState;!v2||d4.isXAxis||w2&&!w2.isDirty||d4.series.forEach((function(b3){var d5=b3.getProcessedData(true);d5=b3.getExtremes(d5.yData,true);w2||(w2={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});ba(d5.dataMin)&&ba(d5.dataMax)&&(w2.startMin=Math.min(S(b3.options.threshold,Infinity),d5.dataMin,w2.startMin),w2.startMax=Math.max(S(b3.options.threshold,-Infinity),d5.dataMax,w2.startMax))}));v2=Math.min(S(w2&&w2.startMin,m2.dataMin),n2?m2.min:d4.toValue(d4.toPixels(m2.min)-d4.minPixelPadding));q2=Math.max(S(w2&&w2.startMax,m2.dataMax),n2?m2.max:d4.toValue(d4.toPixels(m2.max)+d4.minPixelPadding));d4.panningState=w2;d4.isOrdinal||(n2=v2-c2,0<n2&&(p2+=n2,c2=v2),n2=p2-q2,0<n2&&(p2=q2,c2-=n2),d4.series.length&&c2!==m2.min&&p2!==m2.max&&c2>=v2&&p2<=q2&&(d4.setExtremes(c2,p2,false,false,{trigger:"pan"}),!a3.resetZoomButton&&c2!==v2&&p2!==q2&&l2.match("y")&&(a3.showResetZoom(),d4.displayBtn=false),e2=true),f3[h3]=k2)}}));Y(f3,(function(b3,d4){a3[d4]=b3}));e2&&a3.redraw(false);O(a3.container,{cursor:"move"})}))};return a2}();aa(c.prototype,{callbacks:[],collectionsWithInit:{xAxis:[c.prototype.addAxis,[true]],yAxis:[c.prototype.addAxis,[false]],series:[c.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});return c}));I(g,"Core/Legend/LegendSymbol.js",[g["Core/Utilities.js"]],(function(c){var g2=c.extend,y=c.merge,A=c.pick,B;(function(c2){c2.drawLineMarker=function(c3){var x=this.legendItem=this.legendItem||{},t=this.options,r=c3.symbolWidth,a=c3.symbolHeight,q=a/2,m=this.chart.renderer,p=x.group;c3=c3.baseline-Math.round(.3*c3.fontMetrics.b);var k={},e=t.marker,D=0;this.chart.styledMode||(k={"stroke-width":Math.min(t.lineWidth||0,24)},t.dashStyle?k.dashstyle=t.dashStyle:"square"!==t.linecap&&(k["stroke-linecap"]="round"));x.line=m.path().addClass("highcharts-graph").attr(k).add(p);k["stroke-linecap"]&&(D=Math.min(x.line.strokeWidth(),r)/2);x.line.attr({d:[["M",D,c3],["L",r-D,c3]]});e&&false!==e.enabled&&r&&(t=Math.min(A(e.radius,q),q),0===this.symbol.indexOf("url")&&(e=y(e,{width:a,height:a}),t=0),x.symbol=x=m.symbol(this.symbol,r/2-t,c3-t,2*t,2*t,g2({context:"legend"},e)).addClass("highcharts-point").add(p),x.isMarker=true)};c2.drawRectangle=function(c3,g3){g3=g3.legendItem||{};var t=c3.symbolHeight,r=c3.options.squareSymbol;g3.symbol=this.chart.renderer.rect(r?(c3.symbolWidth-t)/2:0,c3.baseline-t+1,r?t:c3.symbolWidth,t,A(c3.options.symbolRadius,t/2)).addClass("highcharts-point").attr({zIndex:3}).add(g3.group)}})(B||(B={}));return B}));I(g,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:false,crisp:true,showCheckbox:false,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:true},hover:{animation:{duration:50},enabled:true,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:true,formatter:function(){var c=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":c(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:true,states:{normal:{animation:true},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:true,turboThreshold:1e3,findNearestPointBy:"x"}}));I(g,"Core/Series/Series.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Defaults.js"],g["Core/Foundation.js"],g["Core/Globals.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/Point.js"],g["Core/Series/SeriesDefaults.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C,x,t,r){var a=c.animObject,q=c.setAnimation,m=g2.defaultOptions,p=y.registerEventOptions,k=A.hasTouch,e=A.svg,D=A.win,G=x.seriesTypes,H=r.arrayMax,K=r.arrayMin,u=r.clamp,n=r.cleanRecursively,w=r.correctFloat,f=r.defined,l=r.erase,d=r.error,b=r.extend,h=r.find,v=r.fireEvent,E=r.getNestedProperty,J=r.isArray,M=r.isNumber,O=r.isString,P=r.merge,T=r.objectEach,F=r.pick,Q=r.removeEvent,aa=r.splat,L=r.syncTimeout;c=function(){function c2(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}c2.prototype.init=function(d2,a2){v(this,"init",{options:a2});var h2=this,f2=d2.series;this.eventsToUnbind=[];h2.chart=d2;h2.options=h2.setOptions(a2);a2=h2.options;h2.linkedSeries=[];h2.bindAxes();b(h2,{name:a2.name,state:"",visible:false!==a2.visible,selected:true===a2.selected});p(this,a2);var l2=a2.events;if(l2&&l2.click||a2.point&&a2.point.events&&a2.point.events.click||a2.allowPointSelect)d2.runTrackerClick=true;h2.getColor();h2.getSymbol();h2.parallelArrays.forEach((function(b2){h2[b2+"Data"]||(h2[b2+"Data"]=[])}));h2.isCartesian&&(d2.hasCartesianSeries=true);var e2;f2.length&&(e2=f2[f2.length-1]);h2._i=F(e2&&e2._i,-1)+1;h2.opacity=h2.options.opacity;d2.orderSeries(this.insert(f2));a2.dataSorting&&a2.dataSorting.enabled?h2.setDataSortingOptions():h2.points||h2.data||h2.setData(a2.data,false);v(this,"afterInit")};c2.prototype.is=function(b2){return G[b2]&&this instanceof G[b2]};c2.prototype.insert=function(b2){var d2=this.options.index,a2;if(M(d2)){for(a2=b2.length;a2--;)if(d2>=F(b2[a2].options.index,b2[a2]._i)){b2.splice(a2+1,0,this);break}-1===a2&&b2.unshift(this);a2+=1}else b2.push(this);return F(a2,b2.length-1)};c2.prototype.bindAxes=function(){var b2=this,a2=b2.options,h2=b2.chart,f2;v(this,"bindAxes",null,(function(){(b2.axisTypes||[]).forEach((function(l2){var e2=0;h2[l2].forEach((function(d2){f2=d2.options;if(a2[l2]===e2&&!f2.isInternal||"undefined"!==typeof a2[l2]&&a2[l2]===f2.id||"undefined"===typeof a2[l2]&&0===f2.index)b2.insert(d2.series),b2[l2]=d2,d2.isDirty=true;f2.isInternal||e2++}));b2[l2]||b2.optionalAxis===l2||d(18,true,h2)}))}));v(this,"afterBindAxes")};c2.prototype.updateParallelArrays=function(b2,d2){var a2=b2.series,h2=arguments,f2=M(d2)?function(h3){var f3="y"===h3&&a2.toYData?a2.toYData(b2):b2[h3];a2[h3+"Data"][d2]=f3}:function(b3){Array.prototype[d2].apply(a2[b3+"Data"],Array.prototype.slice.call(h2,2))};a2.parallelArrays.forEach(f2)};c2.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};c2.prototype.autoIncrement=function(b2){var d2=this.options,a2=d2.pointIntervalUnit,h2=d2.relativeXValue,f2=this.chart.time,l2=this.xIncrement,e2;l2=F(l2,d2.pointStart,0);this.pointInterval=e2=F(this.pointInterval,d2.pointInterval,1);h2&&M(b2)&&(e2*=b2);a2&&(d2=new f2.Date(l2),"day"===a2?f2.set("Date",d2,f2.get("Date",d2)+e2):"month"===a2?f2.set("Month",d2,f2.get("Month",d2)+e2):"year"===a2&&f2.set("FullYear",d2,f2.get("FullYear",d2)+e2),e2=d2.getTime()-l2);if(h2&&M(b2))return l2+e2;this.xIncrement=l2+e2;return l2};c2.prototype.setDataSortingOptions=function(){var d2=this.options;b(this,{requireSorting:false,sorted:false,enabledDataSorting:true,allowDG:false});f(d2.pointRange)||(d2.pointRange=1)};c2.prototype.setOptions=function(b2){var d2=this.chart,a2=d2.options,h2=a2.plotOptions,l2=d2.userOptions||{};b2=P(b2);d2=d2.styledMode;var e2={plotOptions:h2,userOptions:b2};v(this,"setOptions",e2);var c3=e2.plotOptions[this.type],k2=l2.plotOptions||{};this.userOptions=e2.userOptions;l2=P(c3,h2.series,l2.plotOptions&&l2.plotOptions[this.type],b2);this.tooltipOptions=P(m.tooltip,m.plotOptions.series&&m.plotOptions.series.tooltip,m.plotOptions[this.type].tooltip,a2.tooltip.userOptions,h2.series&&h2.series.tooltip,h2[this.type].tooltip,b2.tooltip);this.stickyTracking=F(b2.stickyTracking,k2[this.type]&&k2[this.type].stickyTracking,k2.series&&k2.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?true:l2.stickyTracking);null===c3.marker&&delete l2.marker;this.zoneAxis=l2.zoneAxis;h2=this.zones=(l2.zones||[]).slice();!l2.negativeColor&&!l2.negativeFillColor||l2.zones||(a2={value:l2[this.zoneAxis+"Threshold"]||l2.threshold||0,className:"highcharts-negative"},d2||(a2.color=l2.negativeColor,a2.fillColor=l2.negativeFillColor),h2.push(a2));h2.length&&f(h2[h2.length-1].value)&&h2.push(d2?{}:{color:this.color,fillColor:this.fillColor});v(this,"afterSetOptions",{options:l2});return l2};c2.prototype.getName=function(){return F(this.options.name,"Series "+(this.index+1))};c2.prototype.getCyclic=function(b2,d2,a2){var h2=this.chart,l2=this.userOptions,e2=b2+"Index",c3=b2+"Counter",k2=a2?a2.length:F(h2.options.chart[b2+"Count"],h2[b2+"Count"]);if(!d2){var n2=F(l2[e2],l2["_"+e2]);f(n2)||(h2.series.length||(h2[c3]=0),l2["_"+e2]=n2=h2[c3]%k2,h2[c3]+=1);a2&&(d2=a2[n2])}"undefined"!==typeof n2&&(this[e2]=n2);this[b2]=d2};c2.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||m.plotOptions[this.type].color,this.chart.options.colors)};c2.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};c2.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};c2.prototype.findPointIndex=function(b2,d2){var a2=b2.id,f2=b2.x,l2=this.points,e2=this.options.dataSorting,c3,k2;if(a2)e2=this.chart.get(a2),e2 instanceof z&&(c3=e2);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){if(c3=function(d3){return!d3.touched&&d3.index===b2.index},e2&&e2.matchByName?c3=function(d3){return!d3.touched&&d3.name===b2.name}:this.options.relativeXValue&&(c3=function(d3){return!d3.touched&&d3.options.x===b2.x}),c3=h(l2,c3),!c3)return}if(c3){var n2=c3&&c3.index;"undefined"!==typeof n2&&(k2=true)}"undefined"===typeof n2&&M(f2)&&(n2=this.xData.indexOf(f2,d2));-1!==n2&&"undefined"!==typeof n2&&this.cropped&&(n2=n2>=this.cropStart?n2-this.cropStart:n2);!k2&&M(n2)&&l2[n2]&&l2[n2].touched&&(n2=void 0);return n2};c2.prototype.updateData=function(b2,d2){var a2=this.options,h2=a2.dataSorting,l2=this.points,e2=[],c3=this.requireSorting,k2=b2.length===l2.length,n2,v2,m2,p2=true;this.xIncrement=null;b2.forEach((function(b3,d3){var v3=f(b3)&&this.pointClass.prototype.optionsToObject.call({series:this},b3)||{},p3=v3.x;if(v3.id||M(p3)){if(v3=this.findPointIndex(v3,m2),-1===v3||"undefined"===typeof v3?e2.push(b3):l2[v3]&&b3!==a2.data[v3]?(l2[v3].update(b3,false,null,false),l2[v3].touched=true,c3&&(m2=v3+1)):l2[v3]&&(l2[v3].touched=true),!k2||d3!==v3||h2&&h2.enabled||this.hasDerivedData)n2=true}else e2.push(b3)}),this);if(n2)for(b2=l2.length;b2--;)(v2=l2[b2])&&!v2.touched&&v2.remove&&v2.remove(false,d2);else!k2||h2&&h2.enabled?p2=false:(b2.forEach((function(b3,d3){b3!==l2[d3].y&&l2[d3].update&&l2[d3].update(b3,false,null,false)})),e2.length=0);l2.forEach((function(b3){b3&&(b3.touched=false)}));if(!p2)return false;e2.forEach((function(b3){this.addPoint(b3,false,null,null,false)}),this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=H(this.xData),this.autoIncrement());return true};c2.prototype.setData=function(b2,a2,h2,f2){void 0===a2&&(a2=true);var l2=this,e2=l2.points,c3=e2&&e2.length||0,k2=l2.options,n2=l2.chart,v2=k2.dataSorting,m2=l2.xAxis,p2=k2.turboThreshold,q2=this.xData,u2=this.yData,w2=l2.pointArrayMap;w2=w2&&w2.length;var g3=k2.keys,E2,r2=0,t2=1,F2=null;if(!n2.options.chart.allowMutatingData){k2.data&&delete l2.options.data;l2.userOptions.data&&delete l2.userOptions.data;var D2=P(true,b2)}b2=D2||b2||[];D2=b2.length;v2&&v2.enabled&&(b2=this.sortData(b2));n2.options.chart.allowMutatingData&&false!==f2&&D2&&c3&&!l2.cropped&&!l2.hasGroupedData&&l2.visible&&!l2.boosted&&(E2=this.updateData(b2,h2));if(!E2){l2.xIncrement=null;l2.colorCounter=0;this.parallelArrays.forEach((function(b3){l2[b3+"Data"].length=0}));if(p2&&D2>p2)if(F2=l2.getFirstValidPoint(b2),M(F2))for(h2=0;h2<D2;h2++)q2[h2]=this.autoIncrement(),u2[h2]=b2[h2];else if(J(F2))if(w2)if(F2.length===w2)for(h2=0;h2<D2;h2++)q2[h2]=this.autoIncrement(),u2[h2]=b2[h2];else for(h2=0;h2<D2;h2++)f2=b2[h2],q2[h2]=f2[0],u2[h2]=f2.slice(1,w2+1);else if(g3&&(r2=g3.indexOf("x"),t2=g3.indexOf("y"),r2=0<=r2?r2:0,t2=0<=t2?t2:1),1===F2.length&&(t2=0),r2===t2)for(h2=0;h2<D2;h2++)q2[h2]=this.autoIncrement(),u2[h2]=b2[h2][t2];else for(h2=0;h2<D2;h2++)f2=b2[h2],q2[h2]=f2[r2],u2[h2]=f2[t2];else d(12,false,n2);else for(h2=0;h2<D2;h2++)"undefined"!==typeof b2[h2]&&(f2={series:l2},l2.pointClass.prototype.applyOptions.apply(f2,[b2[h2]]),l2.updateParallelArrays(f2,h2));u2&&O(u2[0])&&d(14,true,n2);l2.data=[];l2.options.data=l2.userOptions.data=b2;for(h2=c3;h2--;)e2[h2]&&e2[h2].destroy&&e2[h2].destroy();m2&&(m2.minRange=m2.userMinRange);l2.isDirty=n2.isDirtyBox=true;l2.isDirtyData=!!e2;h2=false}"point"===k2.legendType&&(this.processData(),this.generatePoints());a2&&n2.redraw(h2)};c2.prototype.sortData=function(b2){var d2=this,a2=d2.options.dataSorting.sortKey||"y",h2=function(b3,d3){return f(d3)&&b3.pointClass.prototype.optionsToObject.call({series:b3},d3)||{}};b2.forEach((function(a3,f2){b2[f2]=h2(d2,a3);b2[f2].index=f2}),this);b2.concat().sort((function(b3,d3){b3=E(a2,b3);d3=E(a2,d3);return d3<b3?-1:d3>b3?1:0})).forEach((function(b3,d3){b3.x=d3}),this);d2.linkedSeries&&d2.linkedSeries.forEach((function(d3){var a3=d3.options,f2=a3.data;a3.dataSorting&&a3.dataSorting.enabled||!f2||(f2.forEach((function(a4,l2){f2[l2]=h2(d3,a4);b2[l2]&&(f2[l2].x=b2[l2].x,f2[l2].index=l2)})),d3.setData(f2,false))}));return b2};c2.prototype.getProcessedData=function(b2){var a2=this.xAxis,h2=this.options,f2=h2.cropThreshold,l2=b2||this.getExtremesFromAll||h2.getExtremesFromAll,e2=this.isCartesian;b2=a2&&a2.val2lin;h2=!(!a2||!a2.logarithmic);var c3=0,k2=this.xData,n2=this.yData,v2=this.requireSorting;var m2=false;var p2=k2.length;if(a2){m2=a2.getExtremes();var q2=m2.min;var u2=m2.max;m2=!(!a2.categories||a2.names.length)}if(e2&&this.sorted&&!l2&&(!f2||p2>f2||this.forceCrop)){if(k2[p2-1]<q2||k2[0]>u2)k2=[],n2=[];else if(this.yData&&(k2[0]<q2||k2[p2-1]>u2)){var w2=this.cropData(this.xData,this.yData,q2,u2);k2=w2.xData;n2=w2.yData;c3=w2.start;w2=true}}for(f2=k2.length||1;--f2;)if(a2=h2?b2(k2[f2])-b2(k2[f2-1]):k2[f2]-k2[f2-1],0<a2&&("undefined"===typeof g3||a2<g3))var g3=a2;else 0>a2&&v2&&!m2&&(d(15,false,this.chart),v2=false);return{xData:k2,yData:n2,cropped:w2,cropStart:c3,closestPointRange:g3}};c2.prototype.processData=function(b2){var d2=this.xAxis;if(this.isCartesian&&!this.isDirty&&!d2.isDirty&&!this.yAxis.isDirty&&!b2)return false;b2=this.getProcessedData();this.cropped=b2.cropped;this.cropStart=b2.cropStart;this.processedXData=b2.xData;this.processedYData=b2.yData;this.closestPointRange=this.basePointRange=b2.closestPointRange;v(this,"afterProcessData")};c2.prototype.cropData=function(b2,d2,a2,h2,f2){var l2=b2.length,e2,c3=0,k2=l2;f2=F(f2,this.cropShoulder);for(e2=0;e2<l2;e2++)if(b2[e2]>=a2){c3=Math.max(0,e2-f2);break}for(a2=e2;a2<l2;a2++)if(b2[a2]>h2){k2=a2+f2;break}return{xData:b2.slice(c3,k2),yData:d2.slice(c3,k2),start:c3,end:k2}};c2.prototype.generatePoints=function(){var d2=this.options,a2=this.processedData||d2.data,h2=this.processedXData,f2=this.processedYData,l2=this.pointClass,e2=h2.length,c3=this.cropStart||0,k2=this.hasGroupedData,n2=d2.keys,m2=[];d2=d2.dataGrouping&&d2.dataGrouping.groupAll?c3:0;var p2,q2,u2=this.data;if(!u2&&!k2){var w2=[];w2.length=a2.length;u2=this.data=w2}n2&&k2&&(this.options.keys=false);for(q2=0;q2<e2;q2++){w2=c3+q2;if(k2){var g3=(new l2).init(this,[h2[q2]].concat(aa(f2[q2])));g3.dataGroup=this.groupMap[d2+q2];g3.dataGroup.options&&(g3.options=g3.dataGroup.options,b(g3,g3.dataGroup.options),delete g3.dataLabels)}else(g3=u2[w2])||"undefined"===typeof a2[w2]||(u2[w2]=g3=(new l2).init(this,a2[w2],h2[q2]));g3&&(g3.index=k2?d2+q2:w2,m2[q2]=g3)}this.options.keys=n2;if(u2&&(e2!==(p2=u2.length)||k2))for(q2=0;q2<p2;q2++)q2!==c3||k2||(q2+=e2),u2[q2]&&(u2[q2].destroyElements(),u2[q2].plotX=void 0);this.data=u2;this.points=m2;v(this,"afterGeneratePoints")};c2.prototype.getXExtremes=function(b2){return{min:K(b2),max:H(b2)}};c2.prototype.getExtremes=function(b2,d2){var a2=this.xAxis,h2=this.yAxis,f2=this.processedXData||this.xData,l2=[],e2=this.requireSorting?this.cropShoulder:0;h2=h2?h2.positiveValuesOnly:false;var c3,k2=0,n2=0,m2=0;b2=b2||this.stackedYData||this.processedYData||[];var p2=b2.length;if(a2){var q2=a2.getExtremes();k2=q2.min;n2=q2.max}for(c3=0;c3<p2;c3++){var u2=f2[c3];q2=b2[c3];var w2=(M(q2)||J(q2))&&(q2.length||0<q2||!h2);u2=d2||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!a2||(f2[c3+e2]||u2)>=k2&&(f2[c3-e2]||u2)<=n2;if(w2&&u2)if(w2=q2.length)for(;w2--;)M(q2[w2])&&(l2[m2++]=q2[w2]);else l2[m2++]=q2}b2={activeYData:l2,dataMin:K(l2),dataMax:H(l2)};v(this,"afterGetExtremes",{dataExtremes:b2});return b2};c2.prototype.applyExtremes=function(){var b2=this.getExtremes();this.dataMin=b2.dataMin;this.dataMax=b2.dataMax;return b2};c2.prototype.getFirstValidPoint=function(b2){for(var d2=b2.length,a2=0,h2=null;null===h2&&a2<d2;)h2=b2[a2],a2++;return h2};c2.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var b2=this.options,d2=b2.stacking,a2=this.xAxis,h2=a2.categories,l2=this.enabledDataSorting,e2=this.yAxis,c3=this.points,k2=c3.length,n2=this.pointPlacementToXValue(),m2=!!n2,p2=b2.threshold,q2=b2.startFromThreshold?p2:0,g3=this.zoneAxis||"y",r2,E2,t2=Number.MAX_VALUE;for(r2=0;r2<k2;r2++){var D2=c3[r2],G2=D2.x,x2=void 0,Q2=void 0,O2=D2.y,H2=D2.low,C2=d2&&e2.stacking&&e2.stacking.stacks[(this.negStacks&&O2<(q2?0:p2)?"-":"")+this.stackKey];if(e2.positiveValuesOnly&&!e2.validatePositiveValue(O2)||a2.positiveValuesOnly&&!a2.validatePositiveValue(G2))D2.isNull=true;D2.plotX=E2=w(u(a2.translate(G2,0,0,0,1,n2,"flags"===this.type),-1e5,1e5));if(d2&&this.visible&&C2&&C2[G2]){var P2=this.getStackIndicator(P2,G2,this.index);!D2.isNull&&P2.key&&(x2=C2[G2],Q2=x2.points[P2.key]);x2&&J(Q2)&&(H2=Q2[0],O2=Q2[1],H2===q2&&P2.key===C2[G2].base&&(H2=F(M(p2)?p2:e2.min)),e2.positiveValuesOnly&&f(H2)&&0>=H2&&(H2=void 0),D2.total=D2.stackTotal=F(x2.total),D2.percentage=f(D2.y)&&x2.total?D2.y/x2.total*100:void 0,D2.stackY=O2,this.irregularWidths||x2.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}D2.yBottom=f(H2)?u(e2.translate(H2,0,1,0,1),-1e5,1e5):void 0;this.dataModify&&(O2=this.dataModify.modifyValue(O2,r2));D2.plotY=void 0;M(O2)&&(x2=e2.translate(O2,false,true,false,true),"undefined"!==typeof x2&&(D2.plotY=u(x2,-1e5,1e5)));D2.isInside=this.isPointInside(D2);D2.clientX=m2?w(a2.translate(G2,0,0,0,1,n2)):E2;D2.negative=D2[g3]<(b2[g3+"Threshold"]||p2||0);D2.category=F(h2&&h2[D2.x],D2.x);if(!D2.isNull&&false!==D2.visible){"undefined"!==typeof z2&&(t2=Math.min(t2,Math.abs(E2-z2)));var z2=E2}D2.zone=this.zones.length?D2.getZone():void 0;!D2.graphic&&this.group&&l2&&(D2.isNew=true)}this.closestPointRangePx=t2;v(this,"afterTranslate")};c2.prototype.getValidPoints=function(b2,d2,a2){var h2=this.chart;return(b2||this.points||[]).filter((function(b3){return d2&&!h2.isInsidePlot(b3.plotX,b3.plotY,{inverted:h2.inverted})?false:false!==b3.visible&&(a2||!b3.isNull)}))};c2.prototype.getClipBox=function(){var b2=this.chart,d2=this.xAxis,a2=this.yAxis,h2=P(b2.clipBox);d2&&d2.len!==b2.plotSizeX&&(h2.width=d2.len);a2&&a2.len!==b2.plotSizeY&&(h2.height=a2.len);return h2};c2.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};c2.prototype.setClip=function(){var b2=this.chart,d2=this.group,a2=this.markerGroup,h2=b2.sharedClips;b2=b2.renderer;var f2=this.getClipBox(),l2=this.getSharedClipKey(),e2=h2[l2];e2?e2.animate(f2):h2[l2]=e2=b2.clipRect(f2);d2&&d2.clip(false===this.options.clip?void 0:e2);a2&&a2.clip()};c2.prototype.animate=function(b2){var d2=this.chart,h2=this.group,f2=this.markerGroup,l2=d2.inverted,e2=a(this.options.animation),c3=[this.getSharedClipKey(),e2.duration,e2.easing,e2.defer].join(),k2=d2.sharedClips[c3],n2=d2.sharedClips[c3+"m"];if(b2&&h2)e2=this.getClipBox(),k2?k2.attr("height",e2.height):(e2.width=0,l2&&(e2.x=d2.plotHeight),k2=d2.renderer.clipRect(e2),d2.sharedClips[c3]=k2,n2=d2.renderer.clipRect({x:-99,y:-99,width:l2?d2.plotWidth+199:99,height:l2?99:d2.plotHeight+199}),d2.sharedClips[c3+"m"]=n2),h2.clip(k2),f2&&f2.clip(n2);else if(k2&&!k2.hasClass("highcharts-animating")){d2=this.getClipBox();var v2=e2.step;f2&&f2.element.childNodes.length&&(e2.step=function(b3,d3){v2&&v2.apply(d3,arguments);"width"===d3.prop&&n2&&n2.element&&n2.attr(l2?"height":"width",b3+99)});k2.addClass("highcharts-animating").animate(d2,e2)}};c2.prototype.afterAnimate=function(){var b2=this;this.setClip();T(this.chart.sharedClips,(function(d2,a2,h2){d2&&!b2.chart.container.querySelector('[clip-path="url(#'.concat(d2.id,')"]'))&&(d2.destroy(),delete h2[a2])}));this.finishedAnimating=true;v(this,"afterAnimate")};c2.prototype.drawPoints=function(b2){void 0===b2&&(b2=this.points);var d2=this.chart,a2=d2.styledMode,h2=this.colorAxis,f2=this.options.marker,l2=this[this.specialGroup||"markerGroup"],e2=this.xAxis,c3=F(f2.enabled,!e2||e2.isRadial?true:null,this.closestPointRangePx>=f2.enabledThreshold*f2.radius),k2,n2;if(false!==f2.enabled||this._hasPointMarkers)for(k2=0;k2<b2.length;k2++){var v2=b2[k2];var m2=(n2=v2.graphic)?"animate":"attr";var p2=v2.marker||{};var q2=!!v2.marker;if((c3&&"undefined"===typeof p2.enabled||p2.enabled)&&!v2.isNull&&false!==v2.visible){var u2=F(p2.symbol,this.symbol,"rect");var w2=this.markerAttribs(v2,v2.selected&&"select");this.enabledDataSorting&&(v2.startXPos=e2.reversed?-(w2.width||0):e2.width);var g3=false!==v2.isInside;!n2&&g3&&(0<(w2.width||0)||v2.hasImage)&&(v2.graphic=n2=d2.renderer.symbol(u2,w2.x,w2.y,w2.width,w2.height,q2?p2:f2).add(l2),this.enabledDataSorting&&d2.hasRendered&&(n2.attr({x:v2.startXPos}),m2="animate"));n2&&"animate"===m2&&n2[g3?"show":"hide"](g3).animate(w2);if(n2)if(p2=this.pointAttribs(v2,a2||!v2.selected?void 0:"select"),a2)h2&&n2.css({fill:p2.fill});else n2[m2](p2);n2&&n2.addClass(v2.getClassName(),true)}else n2&&(v2.graphic=n2.destroy())}};c2.prototype.markerAttribs=function(b2,d2){var a2=this.options,h2=a2.marker,f2=b2.marker||{},l2=f2.symbol||h2.symbol,e2={},c3=F(f2.radius,h2&&h2.radius);d2&&(h2=h2.states[d2],d2=f2.states&&f2.states[d2],c3=F(d2&&d2.radius,h2&&h2.radius,c3&&c3+(h2&&h2.radiusPlus||0)));b2.hasImage=l2&&0===l2.indexOf("url");b2.hasImage&&(c3=0);b2=b2.pos();M(c3)&&b2&&(e2.x=b2[0]-c3,e2.y=b2[1]-c3,a2.crisp&&(e2.x=Math.floor(e2.x)));c3&&(e2.width=e2.height=2*c3);return e2};c2.prototype.pointAttribs=function(b2,d2){var a2=this.options.marker,h2=b2&&b2.options,f2=h2&&h2.marker||{},l2=h2&&h2.color,e2=b2&&b2.color,c3=b2&&b2.zone&&b2.zone.color,k2=this.color;b2=F(f2.lineWidth,a2.lineWidth);h2=1;k2=l2||c3||e2||k2;l2=f2.fillColor||a2.fillColor||k2;e2=f2.lineColor||a2.lineColor||k2;d2=d2||"normal";a2=a2.states[d2]||{};d2=f2.states&&f2.states[d2]||{};b2=F(d2.lineWidth,a2.lineWidth,b2+F(d2.lineWidthPlus,a2.lineWidthPlus,0));l2=d2.fillColor||a2.fillColor||l2;e2=d2.lineColor||a2.lineColor||e2;h2=F(d2.opacity,a2.opacity,h2);return{stroke:e2,"stroke-width":b2,fill:l2,opacity:h2}};c2.prototype.destroy=function(b2){var d2=this,a2=d2.chart,h2=/AppleWebKit\/533/.test(D.navigator.userAgent),f2=d2.data||[],e2,c3,k2,n2;v(d2,"destroy",{keepEventsForUpdate:b2});this.removeEvents(b2);(d2.axisTypes||[]).forEach((function(b3){(n2=d2[b3])&&n2.series&&(l(n2.series,d2),n2.isDirty=n2.forceRedraw=true)}));d2.legendItem&&d2.chart.legend.destroyItem(d2);for(c3=f2.length;c3--;)(k2=f2[c3])&&k2.destroy&&k2.destroy();d2.clips&&d2.clips.forEach((function(b3){return b3.destroy()}));r.clearTimeout(d2.animationTimeout);T(d2,(function(b3,d3){b3 instanceof t&&!b3.survive&&(e2=h2&&"group"===d3?"hide":"destroy",b3[e2]())}));a2.hoverSeries===d2&&(a2.hoverSeries=void 0);l(a2.series,d2);a2.orderSeries();T(d2,(function(a3,h3){b2&&"hcEvents"===h3||delete d2[h3]}))};c2.prototype.applyZones=function(){var b2=this,d2=this.chart,a2=d2.renderer,h2=this.zones,f2=this.clips||[],l2=this.graph,e2=this.area,c3=Math.max(d2.plotWidth,d2.plotHeight),k2=this[(this.zoneAxis||"y")+"Axis"],n2=d2.inverted,v2,m2,p2,q2,w2,g3,r2,E2,t2=false;if(h2.length&&(l2||e2)&&k2&&"undefined"!==typeof k2.min){var D2=k2.reversed;var J2=k2.horiz;l2&&!this.showLine&&l2.hide();e2&&e2.hide();var G2=k2.getExtremes();h2.forEach((function(h3,M2){v2=D2?J2?d2.plotWidth:0:J2?0:k2.toPixels(G2.min)||0;v2=u(F(m2,v2),0,c3);m2=u(Math.round(k2.toPixels(F(h3.value,G2.max),true)||0),0,c3);t2&&(v2=m2=k2.toPixels(G2.max));q2=Math.abs(v2-m2);w2=Math.min(v2,m2);g3=Math.max(v2,m2);k2.isXAxis?(p2={x:n2?g3:w2,y:0,width:q2,height:c3},J2||(p2.x=d2.plotHeight-p2.x)):(p2={x:0,y:n2?g3:w2,width:c3,height:q2},J2&&(p2.y=d2.plotWidth-p2.y));n2&&a2.isVML&&(p2=k2.isXAxis?{x:0,y:D2?w2:g3,height:p2.width,width:d2.chartWidth}:{x:p2.y-d2.plotLeft-d2.spacingBox.x,y:0,width:p2.height,height:d2.chartHeight});f2[M2]?f2[M2].animate(p2):f2[M2]=a2.clipRect(p2);r2=b2["zone-area-"+M2];E2=b2["zone-graph-"+M2];l2&&E2&&E2.clip(f2[M2]);e2&&r2&&r2.clip(f2[M2]);t2=h3.value>G2.max;b2.resetZones&&0===m2&&(m2=void 0)}));this.clips=f2}else b2.visible&&(l2&&l2.show(),e2&&e2.show())};c2.prototype.plotGroup=function(b2,d2,a2,h2,l2){var e2=this[b2],c3=!e2;a2={visibility:a2,zIndex:h2||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(a2.opacity=this.opacity);c3&&(this[b2]=e2=this.chart.renderer.g().add(l2));e2.addClass("highcharts-"+d2+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(f(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(e2.hasClass("highcharts-tracker")?" highcharts-tracker":""),true);e2.attr(a2)[c3?"attr":"animate"](this.getPlotBox(d2));return e2};c2.prototype.getPlotBox=function(b2){var d2=this.xAxis,a2=this.yAxis,h2=this.chart;b2=h2.inverted&&!h2.polar&&d2&&false!==this.invertible&&"series"===b2;h2.inverted&&(d2=a2,a2=this.xAxis);return{translateX:d2?d2.left:h2.plotLeft,translateY:a2?a2.top:h2.plotTop,rotation:b2?90:0,rotationOriginX:b2?(d2.len-a2.len)/2:0,rotationOriginY:b2?(d2.len+a2.len)/2:0,scaleX:b2?-1:1,scaleY:1}};c2.prototype.removeEvents=function(b2){b2||Q(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(b3){b3()})),this.eventsToUnbind.length=0)};c2.prototype.render=function(){var b2=this,d2=b2.chart,h2=b2.options,f2=a(h2.animation),l2=b2.visible?"inherit":"hidden",e2=h2.zIndex,c3=b2.hasRendered,k2=d2.seriesGroup;d2=!b2.finishedAnimating&&d2.renderer.isSVG?f2.duration:0;v(this,"render");b2.plotGroup("group","series",l2,e2,k2);b2.markerGroup=b2.plotGroup("markerGroup","markers",l2,e2,k2);false!==h2.clip&&b2.setClip();b2.animate&&d2&&b2.animate(true);b2.drawGraph&&(b2.drawGraph(),b2.applyZones());b2.visible&&b2.drawPoints();b2.drawDataLabels&&b2.drawDataLabels();b2.redrawPoints&&b2.redrawPoints();b2.drawTracker&&false!==b2.options.enableMouseTracking&&b2.drawTracker();b2.animate&&d2&&b2.animate();c3||(d2&&f2.defer&&(d2+=f2.defer),b2.animationTimeout=L((function(){b2.afterAnimate()}),d2||0));b2.isDirty=false;b2.hasRendered=true;v(b2,"afterRender")};c2.prototype.redraw=function(){var b2=this.isDirty||this.isDirtyData;this.translate();this.render();b2&&delete this.kdTree};c2.prototype.searchPoint=function(b2,d2){var a2=this.xAxis,h2=this.yAxis,f2=this.chart.inverted;return this.searchKDTree({clientX:f2?a2.len-b2.chartY+a2.pos:b2.chartX-a2.pos,plotY:f2?h2.len-b2.chartX+h2.pos:b2.chartY-h2.pos},d2,b2)};c2.prototype.buildKDTree=function(b2){function d2(b3,h3,f2){var l2=b3&&b3.length;if(l2){var e2=a2.kdAxisArray[h3%f2];b3.sort((function(b4,d3){return b4[e2]-d3[e2]}));l2=Math.floor(l2/2);return{point:b3[l2],left:d2(b3.slice(0,l2),h3+1,f2),right:d2(b3.slice(l2+1),h3+1,f2)}}}this.buildingKdTree=true;var a2=this,h2=-1<a2.options.findNearestPointBy.indexOf("y")?2:1;delete a2.kdTree;L((function(){a2.kdTree=d2(a2.getValidPoints(null,!a2.directTouch),h2,h2);a2.buildingKdTree=false}),a2.options.kdNow||b2&&"touchstart"===b2.type?0:1)};c2.prototype.searchKDTree=function(b2,d2,a2){function h2(b3,d3,a3,n2){var v2=d3.point,m2=l2.kdAxisArray[a3%n2],p2=v2,q2=f(b3[e2])&&f(v2[e2])?Math.pow(b3[e2]-v2[e2],2):null;var w2=f(b3[c3])&&f(v2[c3])?Math.pow(b3[c3]-v2[c3],2):null;w2=(q2||0)+(w2||0);v2.dist=f(w2)?Math.sqrt(w2):Number.MAX_VALUE;v2.distX=f(q2)?Math.sqrt(q2):Number.MAX_VALUE;m2=b3[m2]-v2[m2];w2=0>m2?"left":"right";q2=0>m2?"right":"left";d3[w2]&&(w2=h2(b3,d3[w2],a3+1,n2),p2=w2[k2]<p2[k2]?w2:v2);d3[q2]&&Math.sqrt(m2*m2)<p2[k2]&&(b3=h2(b3,d3[q2],a3+1,n2),p2=b3[k2]<p2[k2]?b3:p2);return p2}var l2=this,e2=this.kdAxisArray[0],c3=this.kdAxisArray[1],k2=d2?"distX":"dist";d2=-1<l2.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(a2);if(this.kdTree)return h2(b2,this.kdTree,d2,d2)};c2.prototype.pointPlacementToXValue=function(){var b2=this.options,d2=b2.pointRange,a2=this.xAxis;b2=b2.pointPlacement;"between"===b2&&(b2=a2.reversed?-.5:.5);return M(b2)?b2*(d2||a2.pointRange):0};c2.prototype.isPointInside=function(b2){var d2=this.chart,a2=this.xAxis,h2=this.yAxis;return"undefined"!==typeof b2.plotY&&"undefined"!==typeof b2.plotX&&0<=b2.plotY&&b2.plotY<=(h2?h2.len:d2.plotHeight)&&0<=b2.plotX&&b2.plotX<=(a2?a2.len:d2.plotWidth)};c2.prototype.drawTracker=function(){var b2=this,d2=b2.options,a2=d2.trackByArea,h2=[].concat(a2?b2.areaPath:b2.graphPath),f2=b2.chart,l2=f2.pointer,c3=f2.renderer,n2=f2.options.tooltip.snap,m2=b2.tracker,p2=function(d3){if(f2.hoverSeries!==b2)b2.onMouseOver()},q2="rgba(192,192,192,"+(e?1e-4:.002)+")";m2?m2.attr({d:h2}):b2.graph&&(b2.tracker=c3.path(h2).attr({visibility:b2.visible?"inherit":"hidden",zIndex:2}).addClass(a2?"highcharts-tracker-area":"highcharts-tracker-line").add(b2.group),f2.styledMode||b2.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:q2,fill:a2?q2:"none","stroke-width":b2.graph.strokeWidth()+(a2?0:2*n2)}),[b2.tracker,b2.markerGroup,b2.dataLabelsGroup].forEach((function(b3){if(b3&&(b3.addClass("highcharts-tracker").on("mouseover",p2).on("mouseout",(function(b4){l2.onTrackerMouseOut(b4)})),d2.cursor&&!f2.styledMode&&b3.css({cursor:d2.cursor}),k))b3.on("touchstart",p2)})));v(this,"afterDrawTracker")};c2.prototype.addPoint=function(b2,d2,a2,h2,f2){var l2=this.options,e2=this.data,c3=this.chart,k2=this.xAxis;k2=k2&&k2.hasNames&&k2.names;var n2=l2.data,m2=this.xData,p2;d2=F(d2,true);var q2={series:this};this.pointClass.prototype.applyOptions.apply(q2,[b2]);var w2=q2.x;var u2=m2.length;if(this.requireSorting&&w2<m2[u2-1])for(p2=true;u2&&m2[u2-1]>w2;)u2--;this.updateParallelArrays(q2,"splice",u2,0,0);this.updateParallelArrays(q2,u2);k2&&q2.name&&(k2[w2]=q2.name);n2.splice(u2,0,b2);if(p2||this.processedData)this.data.splice(u2,0,null),this.processData();"point"===l2.legendType&&this.generatePoints();a2&&(e2[0]&&e2[0].remove?e2[0].remove(false):(e2.shift(),this.updateParallelArrays(q2,"shift"),n2.shift()));false!==f2&&v(this,"addPoint",{point:q2});this.isDirtyData=this.isDirty=true;d2&&c3.redraw(h2)};c2.prototype.removePoint=function(b2,d2,a2){var h2=this,f2=h2.data,l2=f2[b2],e2=h2.points,c3=h2.chart,k2=function(){e2&&e2.length===f2.length&&e2.splice(b2,1);f2.splice(b2,1);h2.options.data.splice(b2,1);h2.updateParallelArrays(l2||{series:h2},"splice",b2,1);l2&&l2.destroy();h2.isDirty=true;h2.isDirtyData=true;d2&&c3.redraw()};q(a2,c3);d2=F(d2,true);l2?l2.firePointEvent("remove",null,k2):k2()};c2.prototype.remove=function(b2,d2,a2,h2){function f2(){l2.destroy(h2);e2.isDirtyLegend=e2.isDirtyBox=true;e2.linkSeries();F(b2,true)&&e2.redraw(d2)}var l2=this,e2=l2.chart;false!==a2?v(l2,"remove",null,f2):f2()};c2.prototype.update=function(a2,h2){a2=n(a2,this.userOptions);v(this,"update",{options:a2});var f2=this,l2=f2.chart,e2=f2.userOptions,c3=f2.initialType||f2.type,k2=l2.options.plotOptions,m2=G[c3].prototype,p2=f2.finishedAnimating&&{animation:false},q2={},w2=["eventOptions","navigatorSeries","baseSeries"],u2=a2.type||e2.type||l2.options.chart.type,g3=!(this.hasDerivedData||u2&&u2!==this.type||"undefined"!==typeof a2.pointStart||"undefined"!==typeof a2.pointInterval||"undefined"!==typeof a2.relativeXValue||a2.joinBy||a2.mapData||f2.hasOptionChanged("dataGrouping")||f2.hasOptionChanged("pointStart")||f2.hasOptionChanged("pointInterval")||f2.hasOptionChanged("pointIntervalUnit")||f2.hasOptionChanged("keys"));u2=u2||c3;g3&&(w2.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),false!==a2.visible&&w2.push("area","graph"),f2.parallelArrays.forEach((function(b2){w2.push(b2+"Data")})),a2.data&&(a2.dataSorting&&b(f2.options.dataSorting,a2.dataSorting),this.setData(a2.data,false)));a2=P(e2,p2,{index:"undefined"===typeof e2.index?f2.index:e2.index,pointStart:F(k2&&k2.series&&k2.series.pointStart,e2.pointStart,f2.xData[0])},!g3&&{data:f2.options.data},a2);g3&&a2.data&&(a2.data=f2.options.data);w2=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(w2);w2.forEach((function(b2){w2[b2]=f2[b2];delete f2[b2]}));k2=false;if(G[u2]){if(k2=u2!==f2.type,f2.remove(false,false,false,true),k2)if(Object.setPrototypeOf)Object.setPrototypeOf(f2,G[u2].prototype);else{p2=Object.hasOwnProperty.call(f2,"hcEvents")&&f2.hcEvents;for(r2 in m2)f2[r2]=void 0;b(f2,G[u2].prototype);p2?f2.hcEvents=p2:delete f2.hcEvents}}else d(17,true,l2,{missingModuleFor:u2});w2.forEach((function(b2){f2[b2]=w2[b2]}));f2.init(l2,a2);if(g3&&this.points){a2=f2.options;if(false===a2.visible)q2.graphic=1,q2.dataLabel=1;else if(!f2._hasPointLabels){m2=a2.marker;var r2=a2.dataLabels;e2=e2.marker||{};!m2||false!==m2.enabled&&e2.symbol===m2.symbol&&e2.height===m2.height&&e2.width===m2.width||(q2.graphic=1);r2&&false===r2.enabled&&(q2.dataLabel=1)}e2=0;for(m2=this.points;e2<m2.length;e2++)(r2=m2[e2])&&r2.series&&(r2.resolveColor(),Object.keys(q2).length&&r2.destroyElements(q2),false===a2.showInLegend&&r2.legendItem&&l2.legend.destroyItem(r2))}f2.initialType=c3;l2.linkSeries();k2&&f2.linkedSeries.length&&(f2.isDirtyData=true);v(this,"afterUpdate");F(h2,true)&&l2.redraw(g3?void 0:false)};c2.prototype.setName=function(b2){this.name=this.options.name=this.userOptions.name=b2;this.chart.isDirtyLegend=true};c2.prototype.hasOptionChanged=function(b2){var d2=this.options[b2],a2=this.chart.options.plotOptions,h2=this.userOptions[b2];return h2?d2!==h2:d2!==F(a2&&a2[this.type]&&a2[this.type][b2],a2&&a2.series&&a2.series[b2],d2)};c2.prototype.onMouseOver=function(){var b2=this.chart,d2=b2.hoverSeries;b2.pointer.setHoverChartIndex();if(d2&&d2!==this)d2.onMouseOut();this.options.events.mouseOver&&v(this,"mouseOver");this.setState("hover");b2.hoverSeries=this};c2.prototype.onMouseOut=function(){var b2=this.options,d2=this.chart,a2=d2.tooltip,h2=d2.hoverPoint;d2.hoverSeries=null;if(h2)h2.onMouseOut();this&&b2.events.mouseOut&&v(this,"mouseOut");!a2||this.stickyTracking||a2.shared&&!this.noSharedTooltip||a2.hide();d2.series.forEach((function(b3){b3.setState("",true)}))};c2.prototype.setState=function(b2,d2){var a2=this,h2=a2.options,f2=a2.graph,l2=h2.inactiveOtherPoints,e2=h2.states,c3=F(e2[b2||"normal"]&&e2[b2||"normal"].animation,a2.chart.options.chart.animation),k2=h2.lineWidth,n2=0,v2=h2.opacity;b2=b2||"";if(a2.state!==b2&&([a2.group,a2.markerGroup,a2.dataLabelsGroup].forEach((function(d3){d3&&(a2.state&&d3.removeClass("highcharts-series-"+a2.state),b2&&d3.addClass("highcharts-series-"+b2))})),a2.state=b2,!a2.chart.styledMode)){if(e2[b2]&&false===e2[b2].enabled)return;b2&&(k2=e2[b2].lineWidth||k2+(e2[b2].lineWidthPlus||0),v2=F(e2[b2].opacity,v2));if(f2&&!f2.dashstyle&&M(k2))for(h2={"stroke-width":k2},f2.animate(h2,c3);a2["zone-graph-"+n2];)a2["zone-graph-"+n2].animate(h2,c3),n2+=1;l2||[a2.group,a2.markerGroup,a2.dataLabelsGroup,a2.labelBySeries].forEach((function(b3){b3&&b3.animate({opacity:v2},c3)}))}d2&&l2&&a2.points&&a2.setAllPointsToState(b2||void 0)};c2.prototype.setAllPointsToState=function(b2){this.points.forEach((function(d2){d2.setState&&d2.setState(b2)}))};c2.prototype.setVisible=function(b2,d2){var a2=this,h2=a2.chart,f2=h2.options.chart.ignoreHiddenSeries,l2=a2.visible,e2=(a2.visible=b2=a2.options.visible=a2.userOptions.visible="undefined"===typeof b2?!l2:b2)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(b3){if(a2[b3])a2[b3][e2]()}));if(h2.hoverSeries===a2||(h2.hoverPoint&&h2.hoverPoint.series)===a2)a2.onMouseOut();a2.legendItem&&h2.legend.colorizeItem(a2,b2);a2.isDirty=true;a2.options.stacking&&h2.series.forEach((function(b3){b3.options.stacking&&b3.visible&&(b3.isDirty=true)}));a2.linkedSeries.forEach((function(d3){d3.setVisible(b2,false)}));f2&&(h2.isDirtyBox=true);v(a2,e2);false!==d2&&h2.redraw()};c2.prototype.show=function(){this.setVisible(true)};c2.prototype.hide=function(){this.setVisible(false)};c2.prototype.select=function(b2){this.selected=b2=this.options.selected="undefined"===typeof b2?!this.selected:b2;this.checkbox&&(this.checkbox.checked=b2);v(this,b2?"select":"unselect")};c2.prototype.shouldShowTooltip=function(b2,d2,a2){void 0===a2&&(a2={});a2.series=this;a2.visiblePlotOnly=true;return this.chart.isInsidePlot(b2,d2,a2)};c2.defaultOptions=C;c2.types=x.seriesTypes;c2.registerType=x.registerSeriesType;return c2}();b(c.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:false,drawLegendSymbol:B.drawLineMarker,isCartesian:true,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:z,requireSorting:true,sorted:true});x.series=c;return c}));I(g,"Extensions/ScrollablePlotArea.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/Axis.js"],g["Core/Chart/Chart.js"],g["Core/Series/Series.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z){var C=c.stop,x=z.addEvent,t=z.createElement,r=z.defined,a=z.merge,q=z.pick;x(y,"afterSetChartSize",(function(c2){var m=this.options.chart.scrollablePlotArea,k=m&&m.minWidth;m=m&&m.minHeight;if(!this.renderer.forExport){if(k){if(this.scrollablePixelsX=k=Math.max(0,k-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=a(this.plotBox);this.plotBox.width=this.plotWidth+=k;this.inverted?this.clipBox.height+=k:this.clipBox.width+=k;var e={1:{name:"right",value:k}}}}else m&&(this.scrollablePixelsY=k=Math.max(0,m-this.chartHeight),r(k)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=a(this.plotBox),this.plotBox.height=this.plotHeight+=k,this.inverted?this.clipBox.width+=k:this.clipBox.height+=k,e={2:{name:"bottom",value:k}}));e&&!c2.skipAxes&&this.axes.forEach((function(a2){e[a2.side]?a2.getPlotLinePath=function(){var c3=e[a2.side].name,k2=this[c3];this[c3]=k2-e[a2.side].value;var m2=g2.prototype.getPlotLinePath.apply(this,arguments);this[c3]=k2;return m2}:(a2.setAxisSize(),a2.setAxisTranslation())}))}}));x(y,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}));y.prototype.setUpScrolling=function(){var a2=this,c2={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(c2.overflowX="auto");this.scrollablePixelsY&&(c2.overflowY="auto");this.scrollingParent=t("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=t("div",{className:"highcharts-scrolling"},c2,this.scrollingParent);var k;x(this.scrollingContainer,"scroll",(function(){a2.pointer&&(delete a2.pointer.chartPosition,a2.hoverPoint&&(k=a2.hoverPoint),a2.pointer.runPointActions(void 0,k,true))}));this.innerContainer=t("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};y.prototype.moveFixedElements=function(){var a2=this.container,c2=this.fixedRenderer,k=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),e;this.scrollablePixelsX&&!this.inverted?e=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(e=".highcharts-yaxis");e&&k.push(""+e+":not(.highcharts-radial-axis)",""+e+"-labels:not(.highcharts-radial-axis-labels)");k.forEach((function(e2){[].forEach.call(a2.querySelectorAll(e2),(function(a3){(a3.namespaceURI===c2.SVG_NS?c2.box:c2.box.parentNode).appendChild(a3);a3.style.pointerEvents="auto"}))}))};y.prototype.applyFixed=function(){var a2=!this.fixedDiv,c2=this.options.chart,k=c2.scrollablePlotArea,e=B.getRendererType();a2?(this.fixedDiv=t("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(c2.style&&c2.style.zIndex||0)+2,top:0},null,true),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=c2=new e(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=c2.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":q(k.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),x(this,"afterShowResetZoom",this.moveFixedElements),x(this,"afterApplyDrilldown",this.moveFixedElements),x(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a2)this.scrollableDirty=false,this.moveFixedElements();c2=this.chartWidth+(this.scrollablePixelsX||0);e=this.chartHeight+(this.scrollablePixelsY||0);C(this.container);this.container.style.width=c2+"px";this.container.style.height=e+"px";this.renderer.boxWrapper.attr({width:c2,height:e,viewBox:[0,0,c2,e].join(" ")});this.chartBackground.attr({width:c2,height:e});this.scrollingContainer.style.height=this.chartHeight+"px";a2&&(k.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*k.scrollPositionX),k.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*k.scrollPositionY));e=this.axisOffset;a2=this.plotTop-e[0]-1;k=this.plotLeft-e[3]-1;c2=this.plotTop+this.plotHeight+e[2]+1;e=this.plotLeft+this.plotWidth+e[1]+1;var g3=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),r2=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a2=this.scrollablePixelsX?[["M",0,a2],["L",this.plotLeft-1,a2],["L",this.plotLeft-1,c2],["L",0,c2],["Z"],["M",g3,a2],["L",this.chartWidth,a2],["L",this.chartWidth,c2],["L",g3,c2],["Z"]]:this.scrollablePixelsY?[["M",k,0],["L",k,this.plotTop-1],["L",e,this.plotTop-1],["L",e,0],["Z"],["M",k,r2],["L",k,this.chartHeight],["L",e,this.chartHeight],["L",e,r2],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a2})};x(g2,"afterInit",(function(){this.chart.scrollableDirty=true}));x(A,"show",(function(){this.chart.scrollableDirty=true}))}));I(g,"Core/Axis/Stacking/StackItem.js",[g["Core/FormatUtilities.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=c.format,B=g2.series,z=y.destroyObjectProperties,C=y.pick,x=y.isNumber;c=function(){function c2(c3,a,q,m,p){var k=c3.chart.inverted,e=c3.reversed;this.axis=c3;c3=this.isNegative=!!q!==!!e;this.options=a=a||{};this.x=m;this.cumulative=this.total=null;this.points={};this.hasValidPoints=false;this.stack=p;this.rightCliff=this.leftCliff=0;this.alignOptions={align:a.align||(k?c3?"left":"right":"center"),verticalAlign:a.verticalAlign||(k?"middle":c3?"bottom":"top"),y:a.y,x:a.x};this.textAlign=a.textAlign||(k?c3?"right":"left":"center")}c2.prototype.destroy=function(){z(this,this.axis)};c2.prototype.render=function(c3){var a=this.axis.chart,q=this.options,m=q.format;m=m?A(m,this,a):q.formatter.call(this);this.label?this.label.attr({text:m,visibility:"hidden"}):(this.label=a.renderer.label(m,null,void 0,q.shape,void 0,void 0,q.useHTML,false,"stack-labels"),m={r:q.borderRadius||0,text:m,padding:C(q.padding,5),visibility:"hidden"},a.styledMode||(m.fill=q.backgroundColor,m.stroke=q.borderColor,m["stroke-width"]=q.borderWidth,this.label.css(q.style||{})),this.label.attr(m),this.label.added||this.label.add(c3));this.label.labelrank=a.plotSizeY};c2.prototype.setOffset=function(c3,a,q,m,p,k){var e=this.alignOptions,g3=this.axis,r=this.label,t=this.options,z2=this.textAlign,u=g3.chart;c3=this.getStackBox({xOffset:c3,width:a,boxBottom:q,boxTop:m,defaultX:p,xAxis:k});p=e.verticalAlign;r&&c3&&(a=r.getBBox(),q=r.padding,m="justify"===C(t.overflow,"justify"),e.x=t.x||0,e.y=t.y||0,p=this.adjustStackPosition({labelBox:a,verticalAlign:p,textAlign:z2}),z2=p.x,p=p.y,c3.x-=z2,c3.y-=p,r.align(e,false,c3),(z2=u.isInsidePlot(r.alignAttr.x+e.x+z2,r.alignAttr.y+e.y+p))||(m=false),m&&B.prototype.justifyDataLabel.call(g3,r,e,r.alignAttr,a,c3),r.attr({x:r.alignAttr.x,y:r.alignAttr.y,rotation:t.rotation,rotationOriginX:a.width/2,rotationOriginY:a.height/2}),C(!m&&t.crop,true)&&(z2=x(r.x)&&x(r.y)&&u.isInsidePlot(r.x-q+r.width,r.y)&&u.isInsidePlot(r.x+q,r.y)),r[z2?"show":"hide"]())};c2.prototype.adjustStackPosition=function(c3){var a=c3.labelBox,q={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:a.width/2+a.width/2*q[c3.textAlign],y:a.height/2*q[c3.verticalAlign]}};c2.prototype.getStackBox=function(c3){var a=this.axis,q=a.chart,m=c3.boxTop,p=c3.defaultX,k=c3.xOffset,e=c3.width,g3=c3.boxBottom;m=a.stacking.usePercentage?100:C(m,this.total,0);m=a.toPixels(m);c3=C(p,(c3.xAxis||q.xAxis[0]).toPixels(this.x))+k;a=a.toPixels(g3?g3:0);a=Math.abs(m-a);g3=this.isNegative;return q.inverted?{x:(g3?m:m-a)-q.plotLeft,y:c3-q.plotTop,width:a,height:e}:{x:c3-q.plotLeft,y:(g3?m-a:m)-q.plotTop,width:e,height:a}};return c2}();return c}));I(g,"Core/Axis/Stacking/StackingAxis.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/Axis.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Axis/Stacking/StackItem.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B){function z(){var b=this,d2=b.inverted;b.yAxis.forEach((function(b2){b2.stacking&&b2.stacking.stacks&&b2.hasVisibleSeries&&(b2.stacking.oldStacks=b2.stacking.stacks)}));b.series.forEach((function(a2){var h=a2.xAxis&&a2.xAxis.options||{};!a2.options.stacking||true!==a2.visible&&false!==b.options.chart.ignoreHiddenSeries||(a2.stackKey=[a2.type,f(a2.options.stack,""),d2?h.top:h.left,d2?h.height:h.width].join())}))}function C(){var b=this.stacking;if(b){var d2=b.stacks;w(d2,(function(b2,a2){H(b2);d2[a2]=null}));b&&b.stackTotalGroup&&b.stackTotalGroup.destroy()}}function x(){"yAxis"!==this.coll||this.stacking||(this.stacking=new l(this))}function t(b,d2,a2,f2){!G(b)||b.x!==d2||f2&&b.stackKey!==f2?b={x:d2,index:0,key:f2,stackKey:f2}:b.index++;b.key=[a2,d2,b.index].join();return b}function r(){var b=this,d2=b.stackKey,a2=b.yAxis.stacking.stacks,f2=b.processedXData,l2=b[b.options.stacking+"Stacker"],e2;l2&&[d2,"-"+d2].forEach((function(d3){for(var h=f2.length,c2,k2;h--;)c2=f2[h],e2=b.getStackIndicator(e2,c2,b.index,d3),(k2=(c2=a2[d3]&&a2[d3][c2])&&c2.points[e2.key])&&l2.call(b,k2,c2,h)}))}function a(b,d2,a2){d2=d2.total?100/d2.total:0;b[0]=D(b[0]*d2);b[1]=D(b[1]*d2);this.stackedYData[a2]=b[1]}function q(){var b=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?k.setStackedPoints.call(this,"group"):b&&w(b.stacks,(function(d2,a2){"group"===a2.slice(-5)&&(w(d2,(function(b2){return b2.destroy()})),delete b.stacks[a2])}))}function m(b){var d2=this.chart,a2=b||this.options.stacking;if(a2&&(true===this.visible||false===d2.options.chart.ignoreHiddenSeries)){var l2=this.processedXData,e2=this.processedYData,c2=[],k2=e2.length,n2=this.options,m2=n2.threshold,p2=f(n2.startFromThreshold&&m2,0);n2=n2.stack;b=b?""+this.type+",".concat(a2):this.stackKey;var q2="-"+b,w2=this.negStacks;d2="group"===a2?d2.yAxis[0]:this.yAxis;var g3=d2.stacking.stacks,r2=d2.stacking.oldStacks,t2,x2;d2.stacking.stacksTouched+=1;for(x2=0;x2<k2;x2++){var C2=l2[x2];var H2=e2[x2];var z2=this.getStackIndicator(z2,C2,this.index);var B2=z2.key;var y2=(t2=w2&&H2<(p2?0:m2))?q2:b;g3[y2]||(g3[y2]={});g3[y2][C2]||(r2[y2]&&r2[y2][C2]?(g3[y2][C2]=r2[y2][C2],g3[y2][C2].total=null):g3[y2][C2]=new A(d2,d2.options.stackLabels,!!t2,C2,n2));y2=g3[y2][C2];null!==H2?(y2.points[B2]=y2.points[this.index]=[f(y2.cumulative,p2)],G(y2.cumulative)||(y2.base=B2),y2.touched=d2.stacking.stacksTouched,0<z2.index&&false===this.singleStacks&&(y2.points[B2][0]=y2.points[this.index+","+C2+",0"][0])):y2.points[B2]=y2.points[this.index]=null;"percent"===a2?(t2=t2?b:q2,w2&&g3[t2]&&g3[t2][C2]?(t2=g3[t2][C2],y2.total=t2.total=Math.max(t2.total,y2.total)+Math.abs(H2)||0):y2.total=D(y2.total+(Math.abs(H2)||0))):"group"===a2?(u(H2)&&(H2=H2[0]),null!==H2&&(y2.total=(y2.total||0)+1)):y2.total=D(y2.total+(H2||0));y2.cumulative="group"===a2?(y2.total||1)-1:f(y2.cumulative,p2)+(H2||0);null!==H2&&(y2.points[B2].push(y2.cumulative),c2[x2]=y2.cumulative,y2.hasValidPoints=true)}"percent"===a2&&(d2.stacking.usePercentage=true);"group"!==a2&&(this.stackedYData=c2);d2.stacking.oldStacks={}}}var p=c.getDeferredAnimation,k=y.series.prototype,e=B.addEvent,D=B.correctFloat,G=B.defined,H=B.destroyObjectProperties,K=B.fireEvent,u=B.isArray,n=B.isNumber,w=B.objectEach,f=B.pick,l=function(){function b(b2){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=b2}b.prototype.buildStacks=function(){var b2=this.axis,d2=b2.series,a2=b2.options.reversedStacks,f2=d2.length,l2;this.usePercentage=false;for(l2=f2;l2--;){var e2=d2[a2?l2:f2-l2-1];e2.setStackedPoints();e2.setGroupedPoints()}for(l2=0;l2<f2;l2++)d2[l2].modifyStacks();K(b2,"afterBuildStacks")};b.prototype.cleanStacks=function(){if(this.oldStacks)var b2=this.stacks=this.oldStacks;w(b2,(function(b3){w(b3,(function(b4){b4.cumulative=b4.total}))}))};b.prototype.resetStacks=function(){var b2=this;w(this.stacks,(function(d2){w(d2,(function(a2,h){n(a2.touched)&&a2.touched<b2.stacksTouched?(a2.destroy(),delete d2[h]):(a2.total=null,a2.cumulative=null)}))}))};b.prototype.renderStackTotals=function(){var b2=this.axis,d2=b2.chart,a2=d2.renderer,f2=this.stacks;b2=p(d2,b2.options.stackLabels&&b2.options.stackLabels.animation||false);var l2=this.stackTotalGroup=this.stackTotalGroup||a2.g("stack-labels").attr({zIndex:6,opacity:0}).add();l2.translate(d2.plotLeft,d2.plotTop);w(f2,(function(b3){w(b3,(function(b4){b4.render(l2)}))}));l2.animate({opacity:1},b2)};return b}(),d;(function(b){var d2=[];b.compose=function(b2,h,f2){-1===d2.indexOf(b2)&&(d2.push(b2),e(b2,"init",x),e(b2,"destroy",C));-1===d2.indexOf(h)&&(d2.push(h),h.prototype.getStacks=z);-1===d2.indexOf(f2)&&(d2.push(f2),b2=f2.prototype,b2.getStackIndicator=t,b2.modifyStacks=r,b2.percentStacker=a,b2.setGroupedPoints=q,b2.setStackedPoints=m)}})(d||(d={}));return d}));I(g,"Series/Line/LineSeries.js",[g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=this&&this.__extends||function(){var c2=function(g3,t){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c3,a){c3.__proto__=a}||function(c3,a){for(var q in a)a.hasOwnProperty(q)&&(c3[q]=a[q])};return c2(g3,t)};return function(g3,t){function r(){this.constructor=g3}c2(g3,t);g3.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),B=y.defined,z=y.merge;y=function(g3){function x(){var c2=null!==g3&&g3.apply(this,arguments)||this;c2.data=void 0;c2.options=void 0;c2.points=void 0;return c2}A(x,g3);x.prototype.drawGraph=function(){var c2=this,g4=this.options,a=(this.gappedPath||this.getGraphPath).call(this),q=this.chart.styledMode,m=[["graph","highcharts-graph"]];q||m[0].push(g4.lineColor||this.color||"#cccccc",g4.dashStyle);m=c2.getZonesGraphs(m);m.forEach((function(m2,k){var e=m2[0],p=c2[e],r=p?"animate":"attr";p?(p.endX=c2.preventGraphAnimation?null:a.xMap,p.animate({d:a})):a.length&&(c2[e]=p=c2.chart.renderer.path(a).addClass(m2[1]).attr({zIndex:1}).add(c2.group));p&&!q&&(e={stroke:m2[2],"stroke-width":g4.lineWidth||0,fill:c2.fillGraph&&c2.color||"none"},m2[3]?e.dashstyle=m2[3]:"square"!==g4.linecap&&(e["stroke-linecap"]=e["stroke-linejoin"]="round"),p[r](e).shadow(2>k&&g4.shadow));p&&(p.startX=a.xMap,p.isArea=a.isArea)}))};x.prototype.getGraphPath=function(c2,g4,a){var q=this,m=q.options,p=[],k=[],e,r=m.step;c2=c2||q.points;var t=c2.reversed;t&&c2.reverse();(r={right:1,center:2}[r]||r&&3)&&t&&(r=4-r);c2=this.getValidPoints(c2,false,!(m.connectNulls&&!g4&&!a));c2.forEach((function(t2,D){var u=t2.plotX,n=t2.plotY,w=c2[D-1];(t2.leftCliff||w&&w.rightCliff)&&!a&&(e=true);t2.isNull&&!B(g4)&&0<D?e=!m.connectNulls:t2.isNull&&!g4?e=true:(0===D||e?D=[["M",t2.plotX,t2.plotY]]:q.getPointSpline?D=[q.getPointSpline(c2,t2,D)]:r?(D=1===r?[["L",w.plotX,n]]:2===r?[["L",(w.plotX+u)/2,w.plotY],["L",(w.plotX+u)/2,n]]:[["L",u,w.plotY]],D.push(["L",u,n])):D=[["L",u,n]],k.push(t2.x),r&&(k.push(t2.x),2===r&&k.push(t2.x)),p.push.apply(p,D),e=false)}));p.xMap=k;return q.graphPath=p};x.prototype.getZonesGraphs=function(c2){this.zones.forEach((function(g4,a){a=["zone-graph-"+a,"highcharts-graph highcharts-zone-graph-"+a+" "+(g4.className||"")];this.chart.styledMode||a.push(g4.color||this.color,g4.dashStyle||this.options.dashStyle);c2.push(a)}),this);return c2};x.defaultOptions=z(c.defaultOptions,{});return x}(c);g2.registerSeriesType("line",y);return y}));I(g,"Series/Area/AreaSeries.js",[g["Core/Color/Color.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){var B=this&&this.__extends||function(){var a=function(c2,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,c3){a2.__proto__=c3}||function(a2,c3){for(var e in c3)c3.hasOwnProperty(e)&&(a2[e]=c3[e])};return a(c2,m)};return function(c2,m){function p(){this.constructor=c2}a(c2,m);c2.prototype=null===m?Object.create(m):(p.prototype=m.prototype,new p)}}(),z=c.parse,C=y.seriesTypes.line;c=A.extend;var x=A.merge,t=A.objectEach,r=A.pick;A=function(a){function c2(){var c3=null!==a&&a.apply(this,arguments)||this;c3.data=void 0;c3.options=void 0;c3.points=void 0;return c3}B(c2,a);c2.prototype.drawGraph=function(){this.areaPath=[];a.prototype.drawGraph.apply(this);var c3=this,p=this.areaPath,k=this.options,e=[["area","highcharts-area",this.color,k.fillColor]];this.zones.forEach((function(a2,m){e.push(["zone-area-"+m,"highcharts-area highcharts-zone-area-"+m+" "+a2.className,a2.color||c3.color,a2.fillColor||k.fillColor])}));e.forEach((function(a2){var e2=a2[0],m={},q=c3[e2],g3=q?"animate":"attr";q?(q.endX=c3.preventGraphAnimation?null:p.xMap,q.animate({d:p})):(m.zIndex=0,q=c3[e2]=c3.chart.renderer.path(p).addClass(a2[1]).add(c3.group),q.isArea=true);c3.chart.styledMode||(m.fill=r(a2[3],z(a2[2]).setOpacity(r(k.fillOpacity,.75)).get()));q[g3](m);q.startX=p.xMap;q.shiftUnit=k.step?2:1}))};c2.prototype.getGraphPath=function(a2){var c3=C.prototype.getGraphPath,k=this.options,e=k.stacking,m=this.yAxis,q=[],g3=[],t2=this.index,u=m.stacking.stacks[this.stackKey],n=k.threshold,w=Math.round(m.getThreshold(k.threshold));k=r(k.connectNulls,"percent"===e);var f=function(b2,d2,f2){var l2=a2[b2];b2=e&&u[l2.x].points[t2];var c4=l2[f2+"Null"]||0;f2=l2[f2+"Cliff"]||0;l2=true;if(f2||c4){var k2=(c4?b2[0]:b2[1])+f2;var v2=b2[0]+f2;l2=!!c4}else!e&&a2[d2]&&a2[d2].isNull&&(k2=v2=n);"undefined"!==typeof k2&&(g3.push({plotX:h,plotY:null===k2?w:m.getThreshold(k2),isNull:l2,isCliff:true}),q.push({plotX:h,plotY:null===v2?w:m.getThreshold(v2),doCurve:false}))};a2=a2||this.points;e&&(a2=this.getStackPoints(a2));for(var l=0,d=a2.length;l<d;++l){e||(a2[l].leftCliff=a2[l].rightCliff=a2[l].leftNull=a2[l].rightNull=void 0);var b=a2[l].isNull;var h=r(a2[l].rectPlotX,a2[l].plotX);var v=e?r(a2[l].yBottom,w):w;if(!b||k)k||f(l,l-1,"left"),b&&!e&&k||(g3.push(a2[l]),q.push({x:l,plotX:h,plotY:v})),k||f(l,l+1,"right")}f=c3.call(this,g3,true,true);q.reversed=true;b=c3.call(this,q,true,true);(v=b[0])&&"M"===v[0]&&(b[0]=["L",v[1],v[2]]);b=f.concat(b);b.length&&b.push(["Z"]);c3=c3.call(this,g3,false,k);b.xMap=f.xMap;this.areaPath=b;return c3};c2.prototype.getStackPoints=function(a2){var c3=this,k=[],e=[],m=this.xAxis,q=this.yAxis,g3=q.stacking.stacks[this.stackKey],x2={},u=q.series,n=u.length,w=q.options.reversedStacks?1:-1,f=u.indexOf(c3);a2=a2||this.points;if(this.options.stacking){for(var l=0;l<a2.length;l++)a2[l].leftNull=a2[l].rightNull=void 0,x2[a2[l].x]=a2[l];t(g3,(function(b,d2){null!==b.total&&e.push(d2)}));e.sort((function(b,d2){return b-d2}));var d=u.map((function(b){return b.visible}));e.forEach((function(b,a3){var h=0,l2,p;if(x2[b]&&!x2[b].isNull)k.push(x2[b]),[-1,1].forEach((function(h2){var k2=1===h2?"rightNull":"leftNull",m2=g3[e[a3+h2]],v=0;if(m2)for(var q2=f;0<=q2&&q2<n;){var r2=u[q2].index;l2=m2.points[r2];l2||(r2===c3.index?x2[b][k2]=true:d[q2]&&(p=g3[b].points[r2])&&(v-=p[1]-p[0]));q2+=w}x2[b][1===h2?"rightCliff":"leftCliff"]=v}));else{for(var t2=f;0<=t2&&t2<n;){if(l2=g3[b].points[u[t2].index]){h=l2[1];break}t2+=w}h=r(h,0);h=q.translate(h,0,1,0,1);k.push({isNull:true,plotX:m.translate(b,0,0,0,1),x:b,plotY:h,yBottom:h})}}))}return k};c2.defaultOptions=x(C.defaultOptions,{threshold:0});return c2}(C);c(A.prototype,{singleStacks:false,drawLegendSymbol:g2.drawRectangle});y.registerSeriesType("area",A);return A}));I(g,"Series/Spline/SplineSeries.js",[g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2){var y=this&&this.__extends||function(){var c2=function(g3,t){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c3,a){c3.__proto__=a}||function(c3,a){for(var q in a)a.hasOwnProperty(q)&&(c3[q]=a[q])};return c2(g3,t)};return function(g3,t){function r(){this.constructor=g3}c2(g3,t);g3.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),A=c.seriesTypes.line,B=g2.merge,z=g2.pick;g2=function(c2){function g3(){var g4=null!==c2&&c2.apply(this,arguments)||this;g4.data=void 0;g4.options=void 0;g4.points=void 0;return g4}y(g3,c2);g3.prototype.getPointSpline=function(c3,g4,a){var q=g4.plotX||0,m=g4.plotY||0,p=c3[a-1];a=c3[a+1];if(p&&!p.isNull&&false!==p.doCurve&&!g4.isCliff&&a&&!a.isNull&&false!==a.doCurve&&!g4.isCliff){c3=p.plotY||0;var k=a.plotX||0;a=a.plotY||0;var e=0;var r=(1.5*q+(p.plotX||0))/2.5;var t=(1.5*m+c3)/2.5;k=(1.5*q+k)/2.5;var x=(1.5*m+a)/2.5;k!==r&&(e=(x-t)*(k-q)/(k-r)+m-x);t+=e;x+=e;t>c3&&t>m?(t=Math.max(c3,m),x=2*m-t):t<c3&&t<m&&(t=Math.min(c3,m),x=2*m-t);x>a&&x>m?(x=Math.max(a,m),t=2*m-x):x<a&&x<m&&(x=Math.min(a,m),t=2*m-x);g4.rightContX=k;g4.rightContY=x}g4=["C",z(p.rightContX,p.plotX,0),z(p.rightContY,p.plotY,0),z(r,q,0),z(t,m,0),q,m];p.rightContX=p.rightContY=void 0;return g4};g3.defaultOptions=B(A.defaultOptions);return g3}(A);c.registerSeriesType("spline",g2);return g2}));I(g,"Series/AreaSpline/AreaSplineSeries.js",[g["Series/Spline/SplineSeries.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){var B=this&&this.__extends||function(){var c2=function(a,q){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,c3){a2.__proto__=c3}||function(a2,c3){for(var k in c3)c3.hasOwnProperty(k)&&(a2[k]=c3[k])};return c2(a,q)};return function(a,q){function m(){this.constructor=a}c2(a,q);a.prototype=null===q?Object.create(q):(m.prototype=q.prototype,new m)}}(),z=y.seriesTypes,C=z.area;z=z.area.prototype;var x=A.extend,t=A.merge;A=function(g3){function a(){var a2=null!==g3&&g3.apply(this,arguments)||this;a2.data=void 0;a2.points=void 0;a2.options=void 0;return a2}B(a,g3);a.defaultOptions=t(c.defaultOptions,C.defaultOptions);return a}(c);x(A.prototype,{getGraphPath:z.getGraphPath,getStackPoints:z.getStackPoints,drawGraph:z.drawGraph,drawLegendSymbol:g2.drawRectangle});y.registerSeriesType("areaspline",A);return A}));I(g,"Series/Column/ColumnSeriesDefaults.js",[],(function(){return{borderRadius:0,centerInCategory:false,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:false,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:true,stickyTracking:false,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}));I(g,"Series/Column/ColumnSeries.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Color/Color.js"],g["Series/Column/ColumnSeriesDefaults.js"],g["Core/Globals.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C,x){var t=this&&this.__extends||function(){var a2=function(e2,f){a2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a3,d){a3.__proto__=d}||function(a3,d){for(var b in d)d.hasOwnProperty(b)&&(a3[b]=d[b])};return a2(e2,f)};return function(e2,f){function l(){this.constructor=e2}a2(e2,f);e2.prototype=null===f?Object.create(f):(l.prototype=f.prototype,new l)}}(),r=c.animObject,a=g2.parse,q=A.hasTouch;c=A.noop;var m=x.clamp,p=x.defined,k=x.extend,e=x.fireEvent,D=x.isArray,G=x.isNumber,H=x.merge,K=x.pick,u=x.objectEach;x=function(c2){function n(){var a2=null!==c2&&c2.apply(this,arguments)||this;a2.borderWidth=void 0;a2.data=void 0;a2.group=void 0;a2.options=void 0;a2.points=void 0;return a2}t(n,c2);n.prototype.animate=function(a2){var f=this,d=this.yAxis,b=f.options,h=this.chart.inverted,e2={},c3=h?"translateX":"translateY";if(a2)e2.scaleY=.001,a2=m(d.toPixels(b.threshold),d.pos,d.pos+d.len),h?e2.translateX=a2-d.len:e2.translateY=a2,f.clipBox&&f.setClip(),f.group.attr(e2);else{var n2=Number(f.group.attr(c3));f.group.animate({scaleY:1},k(r(f.options.animation),{step:function(b2,a3){f.group&&(e2[c3]=n2+a3.pos*(d.pos-n2),f.group.attr(e2))}}))}};n.prototype.init=function(a2,l){c2.prototype.init.apply(this,arguments);var d=this;a2=d.chart;a2.hasRendered&&a2.series.forEach((function(b){b.type===d.type&&(b.isDirty=true)}))};n.prototype.getColumnMetrics=function(){var a2=this,l=a2.options,d=a2.xAxis,b=a2.yAxis,h=d.options.reversedStacks;h=d.reversed&&!h||!d.reversed&&h;var e2={},c3,k2=0;false===l.grouping?k2=1:a2.chart.series.forEach((function(d2){var h2=d2.yAxis,f=d2.options;if(d2.type===a2.type&&(d2.visible||!a2.chart.options.chart.ignoreHiddenSeries)&&b.len===h2.len&&b.pos===h2.pos){if(f.stacking&&"group"!==f.stacking){c3=d2.stackKey;"undefined"===typeof e2[c3]&&(e2[c3]=k2++);var l2=e2[c3]}else false!==f.grouping&&(l2=k2++);d2.columnIndex=l2}}));var n2=Math.min(Math.abs(d.transA)*(d.ordinal&&d.ordinal.slope||l.pointRange||d.closestPointRange||d.tickInterval||1),d.len),m2=n2*l.groupPadding,p2=(n2-2*m2)/(k2||1);l=Math.min(l.maxPointWidth||d.len,K(l.pointWidth,p2*(1-2*l.pointPadding)));a2.columnMetrics={width:l,offset:(p2-l)/2+(m2+((a2.columnIndex||0)+(h?1:0))*p2-n2/2)*(h?-1:1),paddedWidth:p2,columnCount:k2};return a2.columnMetrics};n.prototype.crispCol=function(a2,l,d,b){var h=this.chart,f=this.borderWidth,e2=-(f%2?.5:0);f=f%2?.5:1;h.inverted&&h.renderer.isVML&&(f+=1);this.options.crisp&&(d=Math.round(a2+d)+e2,a2=Math.round(a2)+e2,d-=a2);b=Math.round(l+b)+f;e2=.5>=Math.abs(l)&&.5<b;l=Math.round(l)+f;b-=l;e2&&b&&(--l,b+=1);return{x:a2,y:l,width:d,height:b}};n.prototype.adjustForMissingColumns=function(a2,l,d,b){var h=this,f=this.options.stacking;if(!d.isNull&&1<b.columnCount){var e2=this.yAxis.options.reversedStacks,c3=0,k2=e2?0:-b.columnCount;u(this.yAxis.stacking&&this.yAxis.stacking.stacks,(function(b2){if("number"===typeof d.x){var a3=b2[d.x.toString()];a3&&(b2=a3.points[h.index],f?(b2&&(c3=k2),a3.hasValidPoints&&(e2?k2++:k2--)):D(b2)&&(b2=Object.keys(a3.points).filter((function(b3){return!b3.match(",")&&a3.points[b3]&&1<a3.points[b3].length})).map(parseFloat).sort((function(b3,d2){return d2-b3})),c3=b2.indexOf(h.index),k2=b2.length))}}));a2=(d.plotX||0)+((k2-1)*b.paddedWidth+l)/2-l-c3*b.paddedWidth}return a2};n.prototype.translate=function(){var a2=this,l=a2.chart,d=a2.options,b=a2.dense=2>a2.closestPointRange*a2.xAxis.transA;b=a2.borderWidth=K(d.borderWidth,b?0:1);var h=a2.xAxis,e2=a2.yAxis,c3=d.threshold,k2=a2.translatedThreshold=e2.getThreshold(c3),n2=K(d.minPointLength,5),g3=a2.getColumnMetrics(),q2=g3.width,u2=a2.pointXOffset=g3.offset,w=a2.dataMin,r2=a2.dataMax,t2=a2.barW=Math.max(q2,1+2*b);l.inverted&&(k2-=.5);d.pointPadding&&(t2=Math.ceil(t2));z.prototype.translate.apply(a2);a2.points.forEach((function(b2){var f=K(b2.yBottom,k2),v=999+Math.abs(f),E=b2.plotX||0;v=m(b2.plotY,-v,e2.len+v);var F=Math.min(v,f),D2=Math.max(v,f)-F,J=q2,x2=E+u2,M=t2;n2&&Math.abs(D2)<n2&&(D2=n2,E=!e2.reversed&&!b2.negative||e2.reversed&&b2.negative,G(c3)&&G(r2)&&b2.y===c3&&r2<=c3&&(e2.min||0)<c3&&(w!==r2||(e2.max||0)<=c3)&&(E=!E),F=Math.abs(F-k2)>n2?f-n2:k2-(E?n2:0));p(b2.options.pointWidth)&&(J=M=Math.ceil(b2.options.pointWidth),x2-=Math.round((J-q2)/2));d.centerInCategory&&(x2=a2.adjustForMissingColumns(x2,J,b2,g3));b2.barX=x2;b2.pointWidth=J;b2.tooltipPos=l.inverted?[m(e2.len+e2.pos-l.plotLeft-v,e2.pos-l.plotLeft,e2.len+e2.pos-l.plotLeft),h.len+h.pos-l.plotTop-x2-M/2,D2]:[h.left-l.plotLeft+x2+M/2,m(v+e2.pos-l.plotTop,e2.pos-l.plotTop,e2.len+e2.pos-l.plotTop),D2];b2.shapeType=a2.pointClass.prototype.shapeType||"rect";b2.shapeArgs=a2.crispCol.apply(a2,b2.isNull?[x2,k2,M,0]:[x2,F,M,D2])}))};n.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};n.prototype.pointAttribs=function(f,l){var d=this.options,b=this.pointAttrToOptions||{},h=b.stroke||"borderColor",e2=b["stroke-width"]||"borderWidth",c3=f&&f.color||this.color,k2=f&&f[h]||d[h]||c3;b=f&&f.options.dashStyle||d.dashStyle;var n2=f&&f[e2]||d[e2]||this[e2]||0,m2=K(f&&f.opacity,d.opacity,1);if(f&&this.zones.length){var p2=f.getZone();c3=f.options.color||p2&&(p2.color||f.nonZonedColor)||this.color;p2&&(k2=p2.borderColor||k2,b=p2.dashStyle||b,n2=p2.borderWidth||n2)}l&&f&&(f=H(d.states[l],f.options.states&&f.options.states[l]||{}),l=f.brightness,c3=f.color||"undefined"!==typeof l&&a(c3).brighten(f.brightness).get()||c3,k2=f[h]||k2,n2=f[e2]||n2,b=f.dashStyle||b,m2=K(f.opacity,m2));h={fill:c3,stroke:k2,"stroke-width":n2,opacity:m2};b&&(h.dashstyle=b);return h};n.prototype.drawPoints=function(a2){void 0===a2&&(a2=this.points);var f=this,d=this.chart,b=f.options,h=d.renderer,e2=b.animationLimit||250,c3;a2.forEach((function(a3){var l=a3.graphic,k2=!!l,n2=l&&d.pointCount<e2?"animate":"attr";if(G(a3.plotY)&&null!==a3.y){c3=a3.shapeArgs;l&&a3.hasNewShapeType()&&(l=l.destroy());f.enabledDataSorting&&(a3.startXPos=f.xAxis.reversed?-(c3?c3.width||0:0):f.xAxis.width);l||(a3.graphic=l=h[a3.shapeType](c3).add(a3.group||f.group))&&f.enabledDataSorting&&d.hasRendered&&d.pointCount<e2&&(l.attr({x:a3.startXPos}),k2=true,n2="animate");if(l&&k2)l[n2](H(c3));if(b.borderRadius)l[n2]({r:b.borderRadius});d.styledMode||l[n2](f.pointAttribs(a3,a3.selected&&"select")).shadow(false!==a3.allowShadow&&b.shadow,null,b.stacking&&!b.borderRadius);l&&(l.addClass(a3.getClassName(),true),l.attr({visibility:a3.visible?"inherit":"hidden"}))}else l&&(a3.graphic=l.destroy())}))};n.prototype.drawTracker=function(a2){void 0===a2&&(a2=this.points);var f=this,d=f.chart,b=d.pointer,h=function(d2){var a3=b.getPointFromEvent(d2);"undefined"!==typeof a3&&(b.isDirectTouch=true,a3.onMouseOver(d2))},c3;a2.forEach((function(b2){c3=D(b2.dataLabels)?b2.dataLabels:b2.dataLabel?[b2.dataLabel]:[];b2.graphic&&(b2.graphic.element.point=b2);c3.forEach((function(d2){d2.div?d2.div.point=b2:d2.element.point=b2}))}));f._hasTracking||(f.trackerGroups.forEach((function(a3){if(f[a3]){f[a3].addClass("highcharts-tracker").on("mouseover",h).on("mouseout",(function(d2){b.onTrackerMouseOut(d2)}));if(q)f[a3].on("touchstart",h);!d.styledMode&&f.options.cursor&&f[a3].css({cursor:f.options.cursor})}})),f._hasTracking=true);e(this,"afterDrawTracker")};n.prototype.remove=function(){var a2=this,l=a2.chart;l.hasRendered&&l.series.forEach((function(d){d.type===a2.type&&(d.isDirty=true)}));z.prototype.remove.apply(a2,arguments)};n.defaultOptions=H(z.defaultOptions,y);return n}(z);k(x.prototype,{cropShoulder:0,directTouch:true,drawLegendSymbol:B.drawRectangle,getSymbol:c,negStacks:true,trackerGroups:["group","dataLabelsGroup"]});C.registerSeriesType("column",x);return x}));I(g,"Core/Series/DataLabel.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/FormatUtilities.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=c.getDeferredAnimation,B=g2.format,z=y.defined,C=y.extend,x=y.fireEvent,t=y.isArray,r=y.isString,a=y.merge,q=y.objectEach,m=y.pick,p=y.splat,k;(function(e){function c2(a2,l,d,b,h){var f=this,e2=this.chart,c3=this.isCartesian&&e2.inverted,k3=this.enabledDataSorting,n2=a2.plotX,p2=a2.plotY,g4=d.rotation,q2=d.align,u2=z(n2)&&z(p2)&&e2.isInsidePlot(n2,Math.round(p2),{inverted:c3,paneCoordinates:true,series:f});p2=function(b2){k3&&f.xAxis&&!w2&&f.setDataLabelStartPos(a2,l,h,u2,b2)};var w2="justify"===m(d.overflow,k3?"none":"justify");n2=this.visible&&false!==a2.visible&&z(n2)&&(a2.series.forceDL||k3&&!w2||u2||m(d.inside,!!this.options.stacking)&&b&&e2.isInsidePlot(n2,c3?b.x+1:b.y+b.height-1,{inverted:c3,paneCoordinates:true,series:f}));c3=a2.pos();if(n2&&c3){g4&&l.attr({align:q2});q2=l.getBBox(true);var r2=[0,0];var t2=e2.renderer.fontMetrics(e2.styledMode?void 0:d.style.fontSize,l).b;b=C({x:c3[0],y:Math.round(c3[1]),width:0,height:0},b);C(d,{width:q2.width,height:q2.height});g4?(w2=false,r2=e2.renderer.rotCorr(t2,g4),t2={x:b.x+(d.x||0)+b.width/2+r2.x,y:b.y+(d.y||0)+{top:0,middle:.5,bottom:1}[d.verticalAlign]*b.height},r2=[q2.x-Number(l.attr("x")),q2.y-Number(l.attr("y"))],p2(t2),l[h?"attr":"animate"](t2)):(p2(b),l.align(d,void 0,b),t2=l.alignAttr);w2&&0<=b.height?this.justifyDataLabel(l,d,t2,q2,b,h):m(d.crop,true)&&(b=t2.x,p2=t2.y,b+=r2[0],p2+=r2[1],n2=e2.isInsidePlot(b,p2,{paneCoordinates:true,series:f})&&e2.isInsidePlot(b+q2.width,p2+q2.height,{paneCoordinates:true,series:f}));if(d.shape&&!g4)l[h?"attr":"animate"]({anchorX:c3[0],anchorY:c3[1]})}h&&k3&&(l.placed=false);n2||k3&&!w2?l.show():(l.hide(),l.placed=false)}function k2(a2,l){var d=l.filter;return d?(l=d.operator,a2=a2[d.property],d=d.value,">"===l&&a2>d||"<"===l&&a2<d||">="===l&&a2>=d||"<="===l&&a2<=d||"=="===l&&a2==d||"==="===l&&a2===d?true:false):true}function g3(a2){void 0===a2&&(a2=this.points);var f=this,d=f.chart,b=f.options,h=f.hasRendered||0,e2=d.renderer,c3=d.options.chart,n2=c3.backgroundColor;c3=c3.plotBackgroundColor;var g4=e2.getContrast(r(c3)&&c3||r(n2)&&n2||"#000000"),w2=b.dataLabels,D;n2=w2.animation;n2=w2.defer?A(d,n2,f):{defer:0,duration:0};w2=u(u(d.options.plotOptions&&d.options.plotOptions.series&&d.options.plotOptions.series.dataLabels,d.options.plotOptions&&d.options.plotOptions[f.type]&&d.options.plotOptions[f.type].dataLabels),w2);x(this,"drawDataLabels");if(t(w2)||w2.enabled||f._hasPointLabels){var G=f.plotGroup("dataLabelsGroup","data-labels",h?"inherit":"hidden",w2.zIndex||6);G.attr({opacity:+h});!h&&(h=f.dataLabelsGroup)&&(f.visible&&G.show(),h[b.animation?"animate":"attr"]({opacity:1},n2));a2.forEach((function(a3){D=p(u(w2,a3.dlOptions||a3.options&&a3.options.dataLabels));D.forEach((function(h2,l){var c4=h2.enabled&&(!a3.isNull||a3.dataLabelOnNull)&&k2(a3,h2),n3=a3.connectors?a3.connectors[l]:a3.connector,p2=a3.dataLabels?a3.dataLabels[l]:a3.dataLabel,v=!p2,w3=m(h2.distance,a3.labelDistance);if(c4){var u2=a3.getLabelConfig();var r2=m(h2[a3.formatPrefix+"Format"],h2.format);u2=z(r2)?B(r2,u2,d):(h2[a3.formatPrefix+"Formatter"]||h2.formatter).call(u2,h2);r2=h2.style;var t2=h2.rotation;d.styledMode||(r2.color=m(h2.color,r2.color,f.color,"#000000"),"contrast"===r2.color?(a3.contrastColor=e2.getContrast(a3.color||f.color),r2.color=!z(w3)&&h2.inside||0>w3||b.stacking?a3.contrastColor:g4):delete a3.contrastColor,b.cursor&&(r2.cursor=b.cursor));var E={r:h2.borderRadius||0,rotation:t2,padding:h2.padding,zIndex:1};if(!d.styledMode){w3=h2.backgroundColor;var D2=h2.borderColor;E.fill="auto"===w3?a3.color:w3;E.stroke="auto"===D2?a3.color:D2;E["stroke-width"]=h2.borderWidth}q(E,(function(b2,a4){"undefined"===typeof b2&&delete E[a4]}))}!p2||c4&&z(u2)&&!!p2.div===!!h2.useHTML&&(p2.rotation&&h2.rotation||p2.rotation===h2.rotation)||(v=true,a3.dataLabel=p2=a3.dataLabel&&a3.dataLabel.destroy(),a3.dataLabels&&(1===a3.dataLabels.length?delete a3.dataLabels:delete a3.dataLabels[l]),l||delete a3.dataLabel,n3&&(a3.connector=a3.connector.destroy(),a3.connectors&&(1===a3.connectors.length?delete a3.connectors:delete a3.connectors[l])));c4&&z(u2)?(p2?E.text=u2:(a3.dataLabels=a3.dataLabels||[],p2=a3.dataLabels[l]=t2?e2.text(u2,0,0,h2.useHTML).addClass("highcharts-data-label"):e2.label(u2,0,0,h2.shape,null,null,h2.useHTML,null,"data-label"),l||(a3.dataLabel=p2),p2.addClass(" highcharts-data-label-color-"+a3.colorIndex+" "+(h2.className||"")+(h2.useHTML?" highcharts-tracker":""))),p2.options=h2,p2.attr(E),d.styledMode||p2.css(r2).shadow(h2.shadow),(l=h2[a3.formatPrefix+"TextPath"]||h2.textPath)&&!h2.useHTML&&(p2.setTextPath(a3.getDataLabelPath&&a3.getDataLabelPath(p2)||a3.graphic,l),a3.dataLabelPath&&!l.enabled&&(a3.dataLabelPath=a3.dataLabelPath.destroy())),p2.added||p2.add(G),f.alignDataLabel(a3,p2,h2,null,v)):p2&&p2.hide()}))}))}x(this,"afterDrawDataLabels")}function y2(a2,e2,d,b,h,c3){var f=this.chart,l=e2.align,k3=e2.verticalAlign,n2=a2.box?0:a2.padding||0,m2=e2.x;m2=void 0===m2?0:m2;var p2=e2.y;p2=void 0===p2?0:p2;var v=(d.x||0)+n2;if(0>v){"right"===l&&0<=m2?(e2.align="left",e2.inside=true):m2-=v;var g4=true}v=(d.x||0)+b.width-n2;v>f.plotWidth&&("left"===l&&0>=m2?(e2.align="right",e2.inside=true):m2+=f.plotWidth-v,g4=true);v=d.y+n2;0>v&&("bottom"===k3&&0<=p2?(e2.verticalAlign="top",e2.inside=true):p2-=v,g4=true);v=(d.y||0)+b.height-n2;v>f.plotHeight&&("top"===k3&&0>=p2?(e2.verticalAlign="bottom",e2.inside=true):p2+=f.plotHeight-v,g4=true);g4&&(e2.x=m2,e2.y=p2,a2.placed=!c3,a2.align(e2,void 0,h));return g4}function u(f,e2){var d=[],b;if(t(f)&&!t(e2))d=f.map((function(b2){return a(b2,e2)}));else if(t(e2)&&!t(f))d=e2.map((function(b2){return a(f,b2)}));else if(t(f)||t(e2))for(b=Math.max(f.length,e2.length);b--;)d[b]=a(f[b],e2[b]);else d=a(f,e2);return d}function n(a2,e2,d,b,h){var f=this.chart,l=f.inverted,c3=this.xAxis,k3=c3.reversed,n2=l?e2.height/2:e2.width/2;a2=(a2=a2.pointWidth)?a2/2:0;e2.startXPos=l?h.x:k3?-n2-a2:c3.width-n2+a2;e2.startYPos=l?k3?this.yAxis.height-n2+a2:-n2-a2:h.y;b?"hidden"===e2.visibility&&(e2.show(),e2.attr({opacity:0}).animate({opacity:1})):e2.attr({opacity:1}).animate({opacity:0},void 0,e2.hide);f.hasRendered&&(d&&e2.attr({x:e2.startXPos,y:e2.startYPos}),e2.placed=true)}var w=[];e.compose=function(a2){if(-1===w.indexOf(a2)){var f=a2.prototype;w.push(a2);f.alignDataLabel=c2;f.drawDataLabels=g3;f.justifyDataLabel=y2;f.setDataLabelStartPos=n}}})(k||(k={}));return k}));I(g,"Series/Column/ColumnDataLabel.js",[g["Core/Series/DataLabel.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=g2.series,B=y.merge,z=y.pick,C;(function(g3){function t(a,c2,m,p,k){var e=this.chart.inverted,g4=a.series,q=(g4.xAxis?g4.xAxis.len:this.chart.plotSizeX)||0;g4=(g4.yAxis?g4.yAxis.len:this.chart.plotSizeY)||0;var r2=a.dlBox||a.shapeArgs,t2=z(a.below,a.plotY>z(this.translatedThreshold,g4)),u=z(m.inside,!!this.options.stacking);r2&&(p=B(r2),0>p.y&&(p.height+=p.y,p.y=0),r2=p.y+p.height-g4,0<r2&&r2<p.height&&(p.height-=r2),e&&(p={x:g4-p.y-p.height,y:q-p.x-p.width,width:p.height,height:p.width}),u||(e?(p.x+=t2?0:p.width,p.width=0):(p.y+=t2?p.height:0,p.height=0)));m.align=z(m.align,!e||u?"center":t2?"right":"left");m.verticalAlign=z(m.verticalAlign,e||u?"middle":t2?"top":"bottom");A.prototype.alignDataLabel.call(this,a,c2,m,p,k);m.inside&&a.contrastColor&&c2.css({color:a.contrastColor})}var r=[];g3.compose=function(a){c.compose(A);-1===r.indexOf(a)&&(r.push(a),a.prototype.alignDataLabel=t)}})(C||(C={}));return C}));I(g,"Series/Bar/BarSeries.js",[g["Series/Column/ColumnSeries.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=this&&this.__extends||function(){var c2=function(g3,t){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c3,a){c3.__proto__=a}||function(c3,a){for(var g4 in a)a.hasOwnProperty(g4)&&(c3[g4]=a[g4])};return c2(g3,t)};return function(g3,t){function r(){this.constructor=g3}c2(g3,t);g3.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),B=y.extend,z=y.merge;y=function(g3){function x(){var c2=null!==g3&&g3.apply(this,arguments)||this;c2.data=void 0;c2.options=void 0;c2.points=void 0;return c2}A(x,g3);x.defaultOptions=z(c.defaultOptions,{});return x}(c);B(y.prototype,{inverted:true});g2.registerSeriesType("bar",y);return y}));I(g,"Series/Scatter/ScatterSeriesDefaults.js",[],(function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:true},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}));I(g,"Series/Scatter/ScatterSeries.js",[g["Series/Scatter/ScatterSeriesDefaults.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=this&&this.__extends||function(){var c2=function(a,g3){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,c3){a2.__proto__=c3}||function(a2,c3){for(var k in c3)c3.hasOwnProperty(k)&&(a2[k]=c3[k])};return c2(a,g3)};return function(a,g3){function m(){this.constructor=a}c2(a,g3);a.prototype=null===g3?Object.create(g3):(m.prototype=g3.prototype,new m)}}(),B=g2.seriesTypes,z=B.column,C=B.line;B=y.addEvent;var x=y.extend,t=y.merge;y=function(g3){function a(){var a2=null!==g3&&g3.apply(this,arguments)||this;a2.data=void 0;a2.options=void 0;a2.points=void 0;return a2}A(a,g3);a.prototype.applyJitter=function(){var a2=this,c2=this.options.jitter,g4=this.points.length;c2&&this.points.forEach((function(k,e){["x","y"].forEach((function(m,p){var q="plot"+m.toUpperCase();if(c2[m]&&!k.isNull){var r=a2[m+"Axis"];var u=c2[m]*r.transA;if(r&&!r.isLog){var n=Math.max(0,k[q]-u);r=Math.min(r.len,k[q]+u);p=1e4*Math.sin(e+p*g4);k[q]=n+(r-n)*(p-Math.floor(p));"x"===m&&(k.clientX=k.plotX)}}}))}))};a.prototype.drawGraph=function(){this.options.lineWidth?g3.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};a.defaultOptions=t(C.defaultOptions,c);return a}(C);x(y.prototype,{drawTracker:z.prototype.drawTracker,sorted:false,requireSorting:false,noSharedTooltip:true,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:false});B(y,"afterTranslate",(function(){this.applyJitter()}));g2.registerSeriesType("scatter",y);return y}));I(g,"Series/CenteredUtilities.js",[g["Core/Globals.js"],g["Core/Series/Series.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=c.deg2rad,B=y.fireEvent,z=y.isNumber,C=y.pick,x=y.relativeLength,t;(function(c2){c2.getCenter=function(){var a=this.options,c3=this.chart,m=2*(a.slicedOffset||0),p=c3.plotWidth-2*m,k=c3.plotHeight-2*m,e=a.center,r=Math.min(p,k),t2=a.thickness,y2=a.size,A2=a.innerSize||0;"string"===typeof y2&&(y2=parseFloat(y2));"string"===typeof A2&&(A2=parseFloat(A2));a=[C(e[0],"50%"),C(e[1],"50%"),C(y2&&0>y2?void 0:a.size,"100%"),C(A2&&0>A2?void 0:a.innerSize||0,"0%")];!c3.angular||this instanceof g2||(a[3]=0);for(e=0;4>e;++e)y2=a[e],c3=2>e||2===e&&/%$/.test(y2),a[e]=x(y2,[p,k,r,a[2]][e])+(c3?m:0);a[3]>a[2]&&(a[3]=a[2]);z(t2)&&2*t2<a[2]&&0<t2&&(a[3]=a[2]-2*t2);B(this,"afterGetCenter",{positions:a});return a};c2.getStartAndEndRadians=function(a,c3){a=z(a)?a:0;c3=z(c3)&&c3>a&&360>c3-a?c3:a+360;return{start:A*(a+-90),end:A*(c3+-90)}}})(t||(t={}));return t}));I(g,"Series/Pie/PiePoint.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Series/Point.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=this&&this.__extends||function(){var a=function(c2,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,c3){a2.__proto__=c3}||function(a2,c3){for(var e in c3)c3.hasOwnProperty(e)&&(a2[e]=c3[e])};return a(c2,m)};return function(c2,m){function g3(){this.constructor=c2}a(c2,m);c2.prototype=null===m?Object.create(m):(g3.prototype=m.prototype,new g3)}}(),B=c.setAnimation,z=y.addEvent,C=y.defined;c=y.extend;var x=y.isNumber,t=y.pick,r=y.relativeLength;g2=function(a){function c2(){var c3=null!==a&&a.apply(this,arguments)||this;c3.labelDistance=void 0;c3.options=void 0;c3.series=void 0;return c3}A(c2,a);c2.prototype.getConnectorPath=function(){var a2=this.labelPosition,c3=this.series.options.dataLabels,k=this.connectorShapes,e=c3.connectorShape;k[e]&&(e=k[e]);return e.call(this,{x:a2.final.x,y:a2.final.y,alignment:a2.alignment},a2.connectorPosition,c3)};c2.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};c2.prototype.haloPath=function(a2){var c3=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c3.x,c3.y,c3.r+a2,c3.r+a2,{innerR:c3.r-1,start:c3.start,end:c3.end})};c2.prototype.init=function(){var c3=this;a.prototype.init.apply(this,arguments);this.name=t(this.name,"Slice");var g3=function(a2){c3.slice("select"===a2.type)};z(this,"select",g3);z(this,"unselect",g3);return this};c2.prototype.isValid=function(){return x(this.y)&&0<=this.y};c2.prototype.setVisible=function(a2,c3){var k=this,e=this.series,g3=e.chart,m=e.options.ignoreHiddenPoint;c3=t(c3,m);a2!==this.visible&&(this.visible=this.options.visible=a2="undefined"===typeof a2?!this.visible:a2,e.options.data[e.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e2){if(k[e2])k[e2][a2?"show":"hide"](a2)})),this.legendItem&&g3.legend.colorizeItem(this,a2),a2||"hover"!==this.state||this.setState(""),m&&(e.isDirty=true),c3&&g3.redraw())};c2.prototype.slice=function(a2,c3,k){var e=this.series;B(k,e.chart);t(c3,true);this.sliced=this.options.sliced=C(a2)?a2:!this.sliced;e.options.data[e.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return c2}(g2);c(g2.prototype,{connectorShapes:{fixedOffset:function(a,c2,g3){var m=c2.breakAt;c2=c2.touchingSliceAt;return[["M",a.x,a.y],g3.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*m.x-c2.x,2*m.y-c2.y,m.x,m.y]:["L",m.x,m.y],["L",c2.x,c2.y]]},straight:function(a,c2){c2=c2.touchingSliceAt;return[["M",a.x,a.y],["L",c2.x,c2.y]]},crookedLine:function(a,c2,g3){c2=c2.touchingSliceAt;var m=this.series,k=m.center[0],e=m.chart.plotWidth,q=m.chart.plotLeft;m=a.alignment;var t2=this.shapeArgs.r;g3=r(g3.crookDistance,1);e="left"===m?k+t2+(e+q-k-t2)*(1-g3):q+(k-t2)*g3;g3=["L",e,a.y];k=true;if("left"===m?e>a.x||e<c2.x:e<a.x||e>c2.x)k=false;a=[["M",a.x,a.y]];k&&a.push(g3);a.push(["L",c2.x,c2.y]);return a}}});return g2}));I(g,"Series/Pie/PieSeriesDefaults.js",[],(function(){return{center:[null,null],clip:false,colorByPoint:true,dataLabels:{allowOverlap:true,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:true,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:true,x:0},fillColor:void 0,ignoreHiddenPoint:true,inactiveOtherPoints:true,legendType:"point",marker:null,size:null,showInLegend:false,slicedOffset:10,stickyTracking:false,tooltip:{followPointer:true},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}));I(g,"Series/Pie/PieSeries.js",[g["Series/CenteredUtilities.js"],g["Series/Column/ColumnSeries.js"],g["Core/Globals.js"],g["Core/Legend/LegendSymbol.js"],g["Series/Pie/PiePoint.js"],g["Series/Pie/PieSeriesDefaults.js"],g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Renderer/SVG/Symbols.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C,x,t,r){var a=this&&this.__extends||function(){var a2=function(e2,c2){a2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a3,e3){a3.__proto__=e3}||function(a3,e3){for(var f in e3)e3.hasOwnProperty(f)&&(a3[f]=e3[f])};return a2(e2,c2)};return function(e2,c2){function k2(){this.constructor=e2}a2(e2,c2);e2.prototype=null===c2?Object.create(c2):(k2.prototype=c2.prototype,new k2)}}(),q=c.getStartAndEndRadians;y=y.noop;var m=r.clamp,p=r.extend,k=r.fireEvent,e=r.merge,D=r.pick,G=r.relativeLength;r=function(c2){function g3(){var a2=null!==c2&&c2.apply(this,arguments)||this;a2.center=void 0;a2.data=void 0;a2.maxLabelDistance=void 0;a2.options=void 0;a2.points=void 0;return a2}a(g3,c2);g3.prototype.animate=function(a2){var e2=this,c3=e2.points,f=e2.startAngleRad;a2||c3.forEach((function(a3){var d=a3.graphic,b=a3.shapeArgs;d&&b&&(d.attr({r:D(a3.startR,e2.center&&e2.center[3]/2),start:f,end:f}),d.animate({r:b.r,start:b.start,end:b.end},e2.options.animation))}))};g3.prototype.drawEmpty=function(){var a2=this.startAngleRad,e2=this.endAngleRad,c3=this.options;if(0===this.total&&this.center){var f=this.center[0];var l=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f,l,this.center[1]/2,0,a2,e2).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:t.arc(f,l,this.center[2]/2,0,{start:a2,end:e2,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":c3.borderWidth,fill:c3.fillColor||"none",stroke:c3.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};g3.prototype.drawPoints=function(){var a2=this.chart.renderer;this.points.forEach((function(e2){e2.graphic&&e2.hasNewShapeType()&&(e2.graphic=e2.graphic.destroy());e2.graphic||(e2.graphic=a2[e2.shapeType](e2.shapeArgs).add(e2.series.group),e2.delayedRendering=true)}))};g3.prototype.generatePoints=function(){c2.prototype.generatePoints.call(this);this.updateTotals()};g3.prototype.getX=function(a2,e2,c3){var f=this.center,l=this.radii?this.radii[c3.index]||0:f[2]/2;a2=Math.asin(m((a2-f[1])/(l+c3.labelDistance),-1,1));return f[0]+(e2?-1:1)*Math.cos(a2)*(l+c3.labelDistance)+(0<c3.labelDistance?(e2?-1:1)*this.options.dataLabels.padding:0)};g3.prototype.hasData=function(){return!!this.processedXData.length};g3.prototype.redrawPoints=function(){var a2=this,c3=a2.chart,k2=c3.renderer,f=a2.options.shadow,l,d,b,h;this.drawEmpty();!f||a2.shadowGroup||c3.styledMode||(a2.shadowGroup=k2.g("shadow").attr({zIndex:-1}).add(a2.group));a2.points.forEach((function(n){var g4={};d=n.graphic;if(!n.isNull&&d){var m2=void 0;h=n.shapeArgs;l=n.getTranslate();c3.styledMode||(m2=n.shadowGroup,f&&!m2&&(m2=n.shadowGroup=k2.g("shadow").add(a2.shadowGroup)),m2&&m2.attr(l),b=a2.pointAttribs(n,n.selected&&"select"));n.delayedRendering?(d.setRadialReference(a2.center).attr(h).attr(l),c3.styledMode||d.attr(b).attr({"stroke-linejoin":"round"}).shadow(f,m2),n.delayedRendering=false):(d.setRadialReference(a2.center),c3.styledMode||e(true,g4,b),e(true,g4,h,l),d.animate(g4));d.attr({visibility:n.visible?"inherit":"hidden"});d.addClass(n.getClassName(),true)}else d&&(n.graphic=d.destroy())}))};g3.prototype.sortByAngle=function(a2,e2){a2.sort((function(a3,f){return"undefined"!==typeof a3.angle&&(f.angle-a3.angle)*e2}))};g3.prototype.translate=function(a2){k(this,"translate");this.generatePoints();var e2=this.options,c3=e2.slicedOffset,f=c3+(e2.borderWidth||0),l=q(e2.startAngle,e2.endAngle),d=this.startAngleRad=l.start;l=(this.endAngleRad=l.end)-d;var b=this.points,h=e2.dataLabels.distance;e2=e2.ignoreHiddenPoint;var g4=b.length,m2,p2=0;a2||(this.center=a2=this.getCenter());for(m2=0;m2<g4;m2++){var u=b[m2];var r2=d+p2*l;!u.isValid()||e2&&!u.visible||(p2+=u.percentage/100);var t2=d+p2*l;var x2={x:a2[0],y:a2[1],r:a2[2]/2,innerR:a2[3]/2,start:Math.round(1e3*r2)/1e3,end:Math.round(1e3*t2)/1e3};u.shapeType="arc";u.shapeArgs=x2;u.labelDistance=D(u.options.dataLabels&&u.options.dataLabels.distance,h);u.labelDistance=G(u.labelDistance,x2.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,u.labelDistance);t2=(t2+r2)/2;t2>1.5*Math.PI?t2-=2*Math.PI:t2<-Math.PI/2&&(t2+=2*Math.PI);u.slicedTranslation={translateX:Math.round(Math.cos(t2)*c3),translateY:Math.round(Math.sin(t2)*c3)};x2=Math.cos(t2)*a2[2]/2;var F=Math.sin(t2)*a2[2]/2;u.tooltipPos=[a2[0]+.7*x2,a2[1]+.7*F];u.half=t2<-Math.PI/2||t2>Math.PI/2?1:0;u.angle=t2;r2=Math.min(f,u.labelDistance/5);u.labelPosition={natural:{x:a2[0]+x2+Math.cos(t2)*u.labelDistance,y:a2[1]+F+Math.sin(t2)*u.labelDistance},final:{},alignment:0>u.labelDistance?"center":u.half?"right":"left",connectorPosition:{breakAt:{x:a2[0]+x2+Math.cos(t2)*r2,y:a2[1]+F+Math.sin(t2)*r2},touchingSliceAt:{x:a2[0]+x2,y:a2[1]+F}}}}k(this,"afterTranslate")};g3.prototype.updateTotals=function(){var a2=this.points,e2=a2.length,c3=this.options.ignoreHiddenPoint,f,l=0;for(f=0;f<e2;f++){var d=a2[f];!d.isValid()||c3&&!d.visible||(l+=d.y)}this.total=l;for(f=0;f<e2;f++)d=a2[f],d.percentage=0<l&&(d.visible||!c3)?d.y/l*100:0,d.total=l};g3.defaultOptions=e(C.defaultOptions,z);return g3}(C);p(r.prototype,{axisTypes:[],directTouch:true,drawGraph:void 0,drawLegendSymbol:A.drawRectangle,drawTracker:g2.prototype.drawTracker,getCenter:c.getCenter,getSymbol:y,isCartesian:false,noSharedTooltip:true,pointAttribs:g2.prototype.pointAttribs,pointClass:B,requireSorting:false,searchPoint:y,trackerGroups:["group","dataLabelsGroup"]});x.registerSeriesType("pie",r);return r}));I(g,"Series/Pie/PieDataLabel.js",[g["Core/Series/DataLabel.js"],g["Core/Globals.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B){var z=g2.noop,C=y.distribute,x=A.series,t=B.arrayMax,r=B.clamp,a=B.defined,q=B.merge,m=B.pick,p=B.relativeLength,k;(function(e){function k2(){var e2=this,c2=e2.data,f=e2.chart,l=e2.options.dataLabels||{},d=l.connectorPadding,b=f.plotWidth,h=f.plotHeight,k3=f.plotLeft,g4=Math.round(f.chartWidth/3),p2=e2.center,u2=p2[2]/2,r2=p2[1],D=[[],[]],G=[0,0,0,0],F=e2.dataLabelPositioners,y3,z2,B3,H,A2,L,K,I2,V,U,Y,S;e2.visible&&(l.enabled||e2._hasPointLabels)&&(c2.forEach((function(b2){b2.dataLabel&&b2.visible&&b2.dataLabel.shortened&&(b2.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),b2.dataLabel.shortened=false)})),x.prototype.drawDataLabels.apply(e2),c2.forEach((function(b2){b2.dataLabel&&(b2.visible?(D[b2.half].push(b2),b2.dataLabel._pos=null,!a(l.style.width)&&!a(b2.options.dataLabels&&b2.options.dataLabels.style&&b2.options.dataLabels.style.width)&&b2.dataLabel.getBBox().width>g4&&(b2.dataLabel.css({width:Math.round(.7*g4)+"px"}),b2.dataLabel.shortened=true)):(b2.dataLabel=b2.dataLabel.destroy(),b2.dataLabels&&1===b2.dataLabels.length&&delete b2.dataLabels))})),D.forEach((function(c3,n){var g5=c3.length,v=[],q2;if(g5){e2.sortByAngle(c3,n-.5);if(0<e2.maxLabelDistance){var w=Math.max(0,r2-u2-e2.maxLabelDistance);var t2=Math.min(r2+u2+e2.maxLabelDistance,f.plotHeight);c3.forEach((function(b2){0<b2.labelDistance&&b2.dataLabel&&(b2.top=Math.max(0,r2-u2-b2.labelDistance),b2.bottom=Math.min(r2+u2+b2.labelDistance,f.plotHeight),q2=b2.dataLabel.getBBox().height||21,b2.distributeBox={target:b2.labelPosition.natural.y-b2.top+q2/2,size:q2,rank:b2.y},v.push(b2.distributeBox))}));w=t2+q2-w;C(v,w,w/5)}for(Y=0;Y<g5;Y++){y3=c3[Y];L=y3.labelPosition;H=y3.dataLabel;U=false===y3.visible?"hidden":"inherit";V=w=L.natural.y;v&&a(y3.distributeBox)&&("undefined"===typeof y3.distributeBox.pos?U="hidden":(K=y3.distributeBox.size,V=F.radialDistributionY(y3)));delete y3.positionIndex;if(l.justify)I2=F.justify(y3,u2,p2);else switch(l.alignTo){case"connectors":I2=F.alignToConnectors(c3,n,b,k3);break;case"plotEdges":I2=F.alignToPlotEdges(H,n,b,k3);break;default:I2=F.radialDistributionX(e2,y3,V,w)}H._attr={visibility:U,align:L.alignment};S=y3.options.dataLabels||{};H._pos={x:I2+m(S.x,l.x)+({left:d,right:-d}[L.alignment]||0),y:V+m(S.y,l.y)-10};L.final.x=I2;L.final.y=V;m(l.crop,true)&&(A2=H.getBBox().width,w=null,I2-A2<d&&1===n?(w=Math.round(A2-I2+d),G[3]=Math.max(w,G[3])):I2+A2>b-d&&0===n&&(w=Math.round(I2+A2-b+d),G[1]=Math.max(w,G[1])),0>V-K/2?G[0]=Math.max(Math.round(-V+K/2),G[0]):V+K/2>h&&(G[2]=Math.max(Math.round(V+K/2-h),G[2])),H.sideOverflow=w)}}})),0===t(G)||this.verifyDataLabelOverflow(G))&&(this.placeDataLabels(),this.points.forEach((function(b2){S=q(l,b2.options.dataLabels);if(z2=m(S.connectorWidth,1)){var a2;B3=b2.connector;if((H=b2.dataLabel)&&H._pos&&b2.visible&&0<b2.labelDistance){U=H._attr.visibility;if(a2=!B3)b2.connector=B3=f.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+b2.colorIndex+(b2.className?" "+b2.className:"")).add(e2.dataLabelsGroup),f.styledMode||B3.attr({"stroke-width":z2,stroke:S.connectorColor||b2.color||"#666666"});B3[a2?"attr":"animate"]({d:b2.getConnectorPath()});B3.attr("visibility",U)}else B3&&(b2.connector=B3.destroy())}})))}function g3(){this.points.forEach((function(a2){var e2=a2.dataLabel,f;e2&&a2.visible&&((f=e2._pos)?(e2.sideOverflow&&(e2._attr.width=Math.max(e2.getBBox().width-e2.sideOverflow,0),e2.css({width:e2._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),e2.shortened=true),e2.attr(e2._attr),e2[e2.moved?"animate":"attr"](f),e2.moved=true):e2&&e2.attr({y:-9999}));delete a2.distributeBox}),this)}function y2(a2){var e2=this.center,f=this.options,c2=f.center,d=f.minSize||80,b=null!==f.size;if(!b){if(null!==c2[0])var h=Math.max(e2[2]-Math.max(a2[1],a2[3]),d);else h=Math.max(e2[2]-a2[1]-a2[3],d),e2[0]+=(a2[3]-a2[1])/2;null!==c2[1]?h=r(h,d,e2[2]-Math.max(a2[0],a2[2])):(h=r(h,d,e2[2]-a2[0]-a2[2]),e2[1]+=(a2[0]-a2[2])/2);h<e2[2]?(e2[2]=h,e2[3]=Math.min(f.thickness?Math.max(0,h-2*f.thickness):Math.max(0,p(f.innerSize||0,h)),h),this.translate(e2),this.drawDataLabels&&this.drawDataLabels()):b=true}return b}var B2=[],u={radialDistributionY:function(a2){return a2.top+a2.distributeBox.pos},radialDistributionX:function(a2,e2,f,c2){return a2.getX(f<e2.top+2||f>e2.bottom-2?c2:f,e2.half,e2)},justify:function(a2,e2,f){return f[0]+(a2.half?-1:1)*(e2+a2.labelDistance)},alignToPlotEdges:function(a2,e2,f,c2){a2=a2.getBBox().width;return e2?a2+c2:f-a2-c2},alignToConnectors:function(a2,e2,f,c2){var d=0,b;a2.forEach((function(a3){b=a3.dataLabel.getBBox().width;b>d&&(d=b)}));return e2?d+c2:f-d-c2}};e.compose=function(a2){c.compose(x);-1===B2.indexOf(a2)&&(B2.push(a2),a2=a2.prototype,a2.dataLabelPositioners=u,a2.alignDataLabel=z,a2.drawDataLabels=k2,a2.placeDataLabels=g3,a2.verifyDataLabelOverflow=y2)}})(k||(k={}));return k}));I(g,"Extensions/OverlappingDataLabels.js",[g["Core/Chart/Chart.js"],g["Core/Utilities.js"]],(function(c,g2){function y(c2,a){var g3=false;if(c2){var m=c2.newOpacity;c2.oldOpacity!==m&&(c2.alignAttr&&c2.placed?(c2[m?"removeClass":"addClass"]("highcharts-data-label-hidden"),g3=true,c2.alignAttr.opacity=m,c2[c2.isOld?"animate":"attr"](c2.alignAttr,null,(function(){a.styledMode||c2.css({pointerEvents:m?"auto":"none"})})),B(a,"afterHideOverlappingLabel")):c2.attr({opacity:m}));c2.isOld=true}return g3}var A=g2.addEvent,B=g2.fireEvent,z=g2.isArray,C=g2.isNumber,x=g2.objectEach,t=g2.pick;A(c,"render",(function(){var c2=this,a=[];(this.labelCollectors||[]).forEach((function(c3){a=a.concat(c3())}));(this.yAxis||[]).forEach((function(c3){c3.stacking&&c3.options.stackLabels&&!c3.options.stackLabels.allowOverlap&&x(c3.stacking.stacks,(function(c4){x(c4,(function(c5){c5.label&&a.push(c5.label)}))}))}));(this.series||[]).forEach((function(g3){var m=g3.options.dataLabels;g3.visible&&(false!==m.enabled||g3._hasPointLabels)&&(m=function(g4){return g4.forEach((function(k){k.visible&&(z(k.dataLabels)?k.dataLabels:k.dataLabel?[k.dataLabel]:[]).forEach((function(e){var g5=e.options;e.labelrank=t(g5.labelrank,k.labelrank,k.shapeArgs&&k.shapeArgs.height);g5.allowOverlap?(e.oldOpacity=e.opacity,e.newOpacity=1,y(e,c2)):a.push(e)}))}))},m(g3.nodes||[]),m(g3.points))}));this.hideOverlappingLabels(a)}));c.prototype.hideOverlappingLabels=function(c2){var a=this,g3=c2.length,m=a.renderer,p,k,e,t2=false;var r=function(a2){var e2,c3=a2.box?0:a2.padding||0,f=e2=0,l;if(a2&&(!a2.alignAttr||a2.placed)){var d=a2.alignAttr||{x:a2.attr("x"),y:a2.attr("y")};var b=a2.parentGroup;a2.width||(e2=a2.getBBox(),a2.width=e2.width,a2.height=e2.height,e2=m.fontMetrics(null,a2.element).h);var h=a2.width-2*c3;(l={left:"0",center:"0.5",right:"1"}[a2.alignValue])?f=+l*h:C(a2.x)&&Math.round(a2.x)!==a2.translateX&&(f=a2.x-a2.translateX);return{x:d.x+(b.translateX||0)+c3-(f||0),y:d.y+(b.translateY||0)+c3-e2,width:a2.width-2*c3,height:a2.height-2*c3}}};for(k=0;k<g3;k++)if(p=c2[k])p.oldOpacity=p.opacity,p.newOpacity=1,p.absoluteBox=r(p);c2.sort((function(a2,e2){return(e2.labelrank||0)-(a2.labelrank||0)}));for(k=0;k<g3;k++){var x2=(r=c2[k])&&r.absoluteBox;for(p=k+1;p<g3;++p){var z2=(e=c2[p])&&e.absoluteBox;!x2||!z2||r===e||0===r.newOpacity||0===e.newOpacity||"hidden"===r.visibility||"hidden"===e.visibility||z2.x>=x2.x+x2.width||z2.x+z2.width<=x2.x||z2.y>=x2.y+x2.height||z2.y+z2.height<=x2.y||((r.labelrank<e.labelrank?r:e).newOpacity=0)}}c2.forEach((function(e2){y(e2,a)&&(t2=true)}));t2&&B(a,"afterHideAllOverlappingLabels")}}));I(g,"Core/Responsive.js",[g["Core/Utilities.js"]],(function(c){var g2=c.extend,y=c.find,A=c.isArray,B=c.isObject,z=c.merge,C=c.objectEach,x=c.pick,t=c.splat,r=c.uniqueKey,a;(function(a2){var c2=[];a2.compose=function(a3){-1===c2.indexOf(a3)&&(c2.push(a3),g2(a3.prototype,p.prototype));return a3};var p=function(){function a3(){}a3.prototype.currentOptions=function(a4){function e(a5,k2,n,g3){var f;C(a5,(function(a6,d){if(!g3&&-1<c3.collectionsWithUpdate.indexOf(d)&&k2[d])for(a6=t(a6),n[d]=[],f=0;f<Math.max(a6.length,k2[d].length);f++)k2[d][f]&&(void 0===a6[f]?n[d][f]=k2[d][f]:(n[d][f]={},e(a6[f],k2[d][f],n[d][f],g3+1)));else B(a6)?(n[d]=A(a6)?[]:{},e(a6,k2[d]||{},n[d],g3+1)):n[d]="undefined"===typeof k2[d]?null:k2[d]}))}var c3=this,k={};e(a4,this.options,k,0);return k};a3.prototype.matchResponsiveRule=function(a4,c3){var e=a4.condition;(e.callback||function(){return this.chartWidth<=x(e.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=x(e.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=x(e.minWidth,0)&&this.chartHeight>=x(e.minHeight,0)}).call(this)&&c3.push(a4._id)};a3.prototype.setResponsive=function(a4,c3){var e=this,k=this.options.responsive,g3=this.currentResponsive,m=[];!c3&&k&&k.rules&&k.rules.forEach((function(a5){"undefined"===typeof a5._id&&(a5._id=r());e.matchResponsiveRule(a5,m)}),this);c3=z.apply(void 0,m.map((function(a5){return y((k||{}).rules||[],(function(e2){return e2._id===a5}))})).map((function(a5){return a5&&a5.chartOptions})));c3.isResponsiveOptions=true;m=m.toString()||void 0;m!==(g3&&g3.ruleIds)&&(g3&&this.update(g3.undoOptions,a4,true),m?(g3=this.currentOptions(c3),g3.isResponsiveOptions=true,this.currentResponsive={ruleIds:m,mergedOptions:c3,undoOptions:g3},this.update(c3,a4,true)):this.currentResponsive=void 0)};return a3}()})(a||(a={}));return a}));I(g,"masters/highcharts.src.js",[g["Core/Globals.js"],g["Core/Utilities.js"],g["Core/Defaults.js"],g["Core/Animation/Fx.js"],g["Core/Animation/AnimationUtilities.js"],g["Core/Renderer/HTML/AST.js"],g["Core/FormatUtilities.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Renderer/SVG/SVGRenderer.js"],g["Core/Renderer/HTML/HTMLElement.js"],g["Core/Renderer/HTML/HTMLRenderer.js"],g["Core/Axis/Axis.js"],g["Core/Axis/DateTimeAxis.js"],g["Core/Axis/LogarithmicAxis.js"],g["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],g["Core/Axis/Tick.js"],g["Core/Tooltip.js"],g["Core/Series/Point.js"],g["Core/Pointer.js"],g["Core/MSPointer.js"],g["Core/Legend/Legend.js"],g["Core/Chart/Chart.js"],g["Core/Axis/Stacking/StackingAxis.js"],g["Core/Axis/Stacking/StackItem.js"],g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Series/Column/ColumnSeries.js"],g["Series/Column/ColumnDataLabel.js"],g["Series/Pie/PieSeries.js"],g["Series/Pie/PieDataLabel.js"],g["Core/Series/DataLabel.js"],g["Core/Responsive.js"],g["Core/Color/Color.js"],g["Core/Time.js"]],(function(c,g2,y,A,B,z,C,x,t,r,a,q,m,p,k,e,D,G,H,K,u,n,w,f,l,d,b,h,v,E,J,M,O,P,T){c.animate=B.animate;c.animObject=B.animObject;c.getDeferredAnimation=B.getDeferredAnimation;c.setAnimation=B.setAnimation;c.stop=B.stop;c.timers=A.timers;c.AST=z;c.Axis=m;c.Chart=w;c.chart=w.chart;c.Fx=A;c.Legend=n;c.PlotLineOrBand=e;c.Point=H;c.Pointer=u.isRequired()?u:K;c.Series=d;c.StackItem=l;c.SVGElement=t;c.SVGRenderer=r;c.Tick=D;c.Time=T;c.Tooltip=G;c.Color=P;c.color=P.parse;q.compose(r);a.compose(t);c.defaultOptions=y.defaultOptions;c.getOptions=y.getOptions;c.time=y.defaultTime;c.setOptions=y.setOptions;c.dateFormat=C.dateFormat;c.format=C.format;c.numberFormat=C.numberFormat;c.addEvent=g2.addEvent;c.arrayMax=g2.arrayMax;c.arrayMin=g2.arrayMin;c.attr=g2.attr;c.clearTimeout=g2.clearTimeout;c.correctFloat=g2.correctFloat;c.createElement=g2.createElement;c.css=g2.css;c.defined=g2.defined;c.destroyObjectProperties=g2.destroyObjectProperties;c.discardElement=g2.discardElement;c.distribute=x.distribute;c.erase=g2.erase;c.error=g2.error;c.extend=g2.extend;c.extendClass=g2.extendClass;c.find=g2.find;c.fireEvent=g2.fireEvent;c.getMagnitude=g2.getMagnitude;c.getStyle=g2.getStyle;c.inArray=g2.inArray;c.isArray=g2.isArray;c.isClass=g2.isClass;c.isDOMElement=g2.isDOMElement;c.isFunction=g2.isFunction;c.isNumber=g2.isNumber;c.isObject=g2.isObject;c.isString=g2.isString;c.keys=g2.keys;c.merge=g2.merge;c.normalizeTickInterval=g2.normalizeTickInterval;c.objectEach=g2.objectEach;c.offset=g2.offset;c.pad=g2.pad;c.pick=g2.pick;c.pInt=g2.pInt;c.relativeLength=g2.relativeLength;c.removeEvent=g2.removeEvent;c.seriesType=b.seriesType;c.splat=g2.splat;c.stableSort=g2.stableSort;c.syncTimeout=g2.syncTimeout;c.timeUnits=g2.timeUnits;c.uniqueKey=g2.uniqueKey;c.useSerialIds=g2.useSerialIds;c.wrap=g2.wrap;v.compose(h);M.compose(d);p.compose(m);k.compose(m);J.compose(E);e.compose(m);O.compose(w);f.compose(m,w,d);return c}));I(g,"Core/Axis/NavigatorAxisComposition.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2){function y(){this.navigatorAxis||(this.navigatorAxis=new q(this))}function A(a2){var c2=this.chart.options,k=c2.navigator,e=this.navigatorAxis,g3=c2.chart.zooming.pinchType,m=c2.rangeSelector;c2=c2.chart.zooming.type;this.isXAxis&&(k&&k.enabled||m&&m.enabled)&&("y"===c2?a2.zoomed=false:(!B&&"xy"===c2||B&&"xy"===g3)&&this.options.range&&(k=e.previousZoom,x(a2.newMin)?e.previousZoom=[this.min,this.max]:k&&(a2.newMin=k[0],a2.newMax=k[1],e.previousZoom=void 0)));"undefined"!==typeof a2.zoomed&&a2.preventDefault()}var B=c.isTouchDevice,z=g2.addEvent,C=g2.correctFloat,x=g2.defined,t=g2.isNumber,r=g2.pick,a=[],q=function(){function c2(a2){this.axis=a2}c2.compose=function(c3){-1===a.indexOf(c3)&&(a.push(c3),c3.keepProps.push("navigatorAxis"),z(c3,"init",y),z(c3,"zoom",A))};c2.prototype.destroy=function(){this.axis=void 0};c2.prototype.toFixedRange=function(a2,c3,e,g3){var k=this.axis,m=k.chart;a2=r(e,k.translate(a2,true,!k.horiz));c3=r(g3,k.translate(c3,true,!k.horiz));m=m&&m.fixedRange;k=(k.pointRange||0)/2;var p=m&&(c3-a2)/m;x(e)||(a2=C(a2+k));x(g3)||(c3=C(c3-k));.7<p&&1.3>p&&(g3?a2=c3-m:c3=a2+m);t(a2)&&t(c3)||(a2=c3=void 0);return{min:a2,max:c3}};return c2}();return q}));I(g,"Stock/Navigator/NavigatorDefaults.js",[g["Core/Color/Color.js"],g["Core/Series/SeriesRegistry.js"]],(function(c,g2){c=c.parse;g2=g2.seriesTypes;g2={height:40,margin:25,maskInside:true,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:true,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:c("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:"undefined"===typeof g2.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:true,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:false,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:false},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:false},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:false,endOnTick:false,minPadding:.1,maxPadding:.1,labels:{enabled:false},crosshair:false,title:{text:null},tickLength:0,tickWidth:0}};return g2}));I(g,"Stock/Navigator/NavigatorSymbols.js",[],(function(){return{"navigator-handle":function(c,g2,y,A,B){void 0===B&&(B={});c=B.width?B.width/2:y;g2=Math.round(c/3)+.5;A=B.height||A;return[["M",-c-1,.5],["L",c,.5],["L",c,A+.5],["L",-c-1,A+.5],["L",-c-1,.5],["M",-g2,4],["L",-g2,A-3],["M",g2-1,4],["L",g2-1,A-3]]}}}));I(g,"Stock/Navigator/NavigatorComposition.js",[g["Core/Defaults.js"],g["Core/Globals.js"],g["Core/Axis/NavigatorAxisComposition.js"],g["Stock/Navigator/NavigatorDefaults.js"],g["Stock/Navigator/NavigatorSymbols.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C){function x(){this.navigator&&this.navigator.setBaseSeries(null,false)}function t(){var a2=this.legend,b=this.navigator;if(b){var h=a2&&a2.options;var e2=b.xAxis;var c2=b.yAxis;var f2=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-f2-b.height:this.spacing[3]+f2,b.top=this.plotTop+f2):(b.left=w(e2.left,this.plotLeft+f2),b.top=b.navigatorOptions.top||this.chartHeight-b.height-f2-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(h&&"bottom"===h.verticalAlign&&"proximate"!==h.layout&&h.enabled&&!h.floating?a2.legendHeight+w(h.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));e2&&c2&&(this.inverted?e2.options.left=c2.options.left=b.left:e2.options.top=c2.options.top=b.top,e2.setAxisSize(),c2.setAxisSize())}}function r(a2){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new l(this),w(a2.redraw,true)&&this.redraw(a2.animation))}function a(){var a2=this.options;if(a2.navigator.enabled||a2.scrollbar.enabled)this.scroller=this.navigator=new l(this)}function q(){var a2=this.options,b=a2.navigator,h=a2.rangeSelector;if((b&&b.enabled||h&&h.enabled)&&(!G&&"x"===a2.chart.zooming.type||G&&"x"===a2.chart.zooming.pinchType))return false}function m(a2){var b=a2.navigator;b&&a2.xAxis[0]&&(a2=a2.xAxis[0].getExtremes(),b.render(a2.min,a2.max))}function p(a2){var b=a2.options.navigator||{},d=a2.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!d.enabled||(n(true,this.options.navigator,b),n(true,this.options.scrollbar,d),delete a2.options.navigator,delete a2.options.scrollbar)}function k(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,false)}var e=c.defaultOptions,D=c.setOptions,G=g2.isTouchDevice,H=z.getRendererType,K=C.addEvent,u=C.extend,n=C.merge,w=C.pick,f=[],l;return{compose:function(d,b,h,c2){y.compose(d);l=h;-1===f.indexOf(b)&&(f.push(b),b.prototype.callbacks.push(m),K(b,"afterAddSeries",x),K(b,"afterSetChartSize",t),K(b,"afterUpdate",r),K(b,"beforeRender",a),K(b,"beforeShowResetZoom",q),K(b,"update",p));-1===f.indexOf(c2)&&(f.push(c2),K(c2,"afterUpdate",k));-1===f.indexOf(H)&&(f.push(H),u(H().prototype.symbols,B));-1===f.indexOf(D)&&(f.push(D),u(e,{navigator:A}))}}}));I(g,"Core/Axis/ScrollbarAxis.js",[g["Core/Utilities.js"]],(function(c){var g2=c.addEvent,y=c.defined,A=c.pick;return function(){function c2(){}c2.compose=function(z,C){if(-1===c2.composed.indexOf(z))c2.composed.push(z);else return z;var x=function(c3){var g3=A(c3.options&&c3.options.min,c3.min),a=A(c3.options&&c3.options.max,c3.max);return{axisMin:g3,axisMax:a,scrollMin:y(c3.dataMin)?Math.min(g3,c3.min,c3.dataMin,A(c3.threshold,Infinity)):g3,scrollMax:y(c3.dataMax)?Math.max(a,c3.max,c3.dataMax,A(c3.threshold,-Infinity)):a}};g2(z,"afterInit",(function(){var c3=this;c3.options&&c3.options.scrollbar&&c3.options.scrollbar.enabled&&(c3.options.scrollbar.vertical=!c3.horiz,c3.options.startOnTick=c3.options.endOnTick=false,c3.scrollbar=new C(c3.chart.renderer,c3.options.scrollbar,c3.chart),g2(c3.scrollbar,"changed",(function(g3){var a=x(c3),q=a.axisMax,m=a.scrollMin,p=a.scrollMax-m;y(a.axisMin)&&y(q)&&(c3.horiz&&!c3.reversed||!c3.horiz&&c3.reversed?(a=m+p*this.to,m+=p*this.from):(a=m+p*(1-this.from),m+=p*(1-this.to)),this.shouldUpdateExtremes(g3.DOMType)?c3.setExtremes(m,a,true,"mousemove"!==g3.DOMType&&"touchmove"!==g3.DOMType,g3):this.setRange(this.from,this.to))})))}));g2(z,"afterRender",(function(){var c3=x(this),g3=c3.scrollMin,a=c3.scrollMax;c3=this.scrollbar;var q=this.axisTitleMargin+(this.titleOffset||0),m=this.chart.scrollbarsOffsets,p=this.options.margin||0;c3&&(this.horiz?(this.opposite||(m[1]+=q),c3.position(this.left,this.top+this.height+2+m[1]-(this.opposite?p:0),this.width,this.height),this.opposite||(m[1]+=p),q=1):(this.opposite&&(m[0]+=q),c3.position(c3.options.opposite?this.left+this.width+2+m[0]-(this.opposite?0:p):this.opposite?0:p,this.top,this.width,this.height),this.opposite&&(m[0]+=p),q=0),m[q]+=c3.size+c3.options.margin,isNaN(g3)||isNaN(a)||!y(this.min)||!y(this.max)||this.min===this.max?c3.setRange(0,1):(m=(this.min-g3)/(a-g3),g3=(this.max-g3)/(a-g3),this.horiz&&!this.reversed||!this.horiz&&this.reversed?c3.setRange(m,g3):c3.setRange(1-g3,1-m)))}));g2(z,"afterGetOffset",(function(){var c3=this.scrollbar&&!this.scrollbar.options.opposite;c3=this.horiz?2:c3?3:1;var g3=this.scrollbar;g3&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[c3]+=g3.size+g3.options.margin)}));return z};c2.composed=[];return c2}()}));I(g,"Stock/Scrollbar/ScrollbarDefaults.js",[g["Core/Globals.js"]],(function(c){return{height:c.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:true,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}}));I(g,"Stock/Scrollbar/Scrollbar.js",[g["Core/Defaults.js"],g["Core/Globals.js"],g["Core/Axis/ScrollbarAxis.js"],g["Stock/Scrollbar/ScrollbarDefaults.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B){var z=c.defaultOptions,C=B.addEvent,x=B.correctFloat,t=B.defined,r=B.destroyObjectProperties,a=B.fireEvent,q=B.merge,m=B.pick,p=B.removeEvent;c=function(){function c2(a2,c3,k){this._events=[];this.chart=void 0;this.from=this.chartY=this.chartX=0;this.scrollbar=this.renderer=this.options=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=void 0;this.trackBorderWidth=1;this.userOptions=void 0;this.y=this.x=0;this.init(a2,c3,k)}c2.compose=function(a2){y.compose(a2,c2)};c2.swapXY=function(a2,c3){c3&&a2.forEach((function(a3){for(var c4=a3.length,e,k=0;k<c4;k+=2)e=a3[k+1],"number"===typeof e&&(a3[k+1]=a3[k+2],a3[k+2]=e)}));return a2};c2.prototype.addEvents=function(){var a2=this.options.inverted?[1,0]:[0,1],c3=this.scrollbarButtons,k=this.scrollbarGroup.element,m2=this.track.element,p2=this.mouseDownHandler.bind(this),q2=this.mouseMoveHandler.bind(this),n=this.mouseUpHandler.bind(this);a2=[[c3[a2[0]].element,"click",this.buttonToMinClick.bind(this)],[c3[a2[1]].element,"click",this.buttonToMaxClick.bind(this)],[m2,"click",this.trackClick.bind(this)],[k,"mousedown",p2],[k.ownerDocument,"mousemove",q2],[k.ownerDocument,"mouseup",n]];g2.hasTouch&&a2.push([k,"touchstart",p2],[k.ownerDocument,"touchmove",q2],[k.ownerDocument,"touchend",n]);a2.forEach((function(a3){C.apply(null,a3)}));this._events=a2};c2.prototype.buttonToMaxClick=function(c3){var e=(this.to-this.from)*m(this.options.step,.2);this.updatePosition(this.from+e,this.to+e);a(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:c3})};c2.prototype.buttonToMinClick=function(c3){var e=x(this.to-this.from)*m(this.options.step,.2);this.updatePosition(x(this.from-e),x(this.to-e));a(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:c3})};c2.prototype.cursorToScrollbarPosition=function(a2){var c3=this.options;c3=c3.minWidth>this.calculatedWidth?c3.minWidth:0;return{chartX:(a2.chartX-this.x-this.xOffset)/(this.barWidth-c3),chartY:(a2.chartY-this.y-this.yOffset)/(this.barWidth-c3)}};c2.prototype.destroy=function(){var a2=this,c3=a2.chart.scroller;a2.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach((function(c4){a2[c4]&&a2[c4].destroy&&(a2[c4]=a2[c4].destroy())}));c3&&a2===c3.scrollbar&&(c3.scrollbar=null,r(c3.scrollbarButtons))};c2.prototype.drawScrollbarButton=function(a2){var e=this.renderer,k=this.scrollbarButtons,g3=this.options,m2=this.size,p2=e.g().add(this.group);k.push(p2);p2=e.rect().addClass("highcharts-scrollbar-button").add(p2);this.chart.styledMode||p2.attr({stroke:g3.buttonBorderColor,"stroke-width":g3.buttonBorderWidth,fill:g3.buttonBackgroundColor});p2.attr(p2.crisp({x:-.5,y:-.5,width:m2+1,height:m2+1,r:g3.buttonBorderRadius},p2.strokeWidth()));p2=e.path(c2.swapXY([["M",m2/2+(a2?-1:1),m2/2-3],["L",m2/2+(a2?-1:1),m2/2+3],["L",m2/2+(a2?2:-2),m2/2]],g3.vertical)).addClass("highcharts-scrollbar-arrow").add(k[a2]);this.chart.styledMode||p2.attr({fill:g3.buttonArrowColor})};c2.prototype.init=function(a2,c3,k){this.scrollbarButtons=[];this.renderer=a2;this.userOptions=c3;this.options=q(A,z.scrollbar,c3);this.chart=k;this.size=m(this.options.size,this.options.height);c3.enabled&&(this.render(),this.addEvents())};c2.prototype.mouseDownHandler=function(a2){a2=this.chart.pointer.normalize(a2);a2=this.cursorToScrollbarPosition(a2);this.chartX=a2.chartX;this.chartY=a2.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=true};c2.prototype.mouseMoveHandler=function(c3){var e=this.chart.pointer.normalize(c3),k=this.options.vertical?"chartY":"chartX",g3=this.initPositions||[];!this.grabbedCenter||c3.touches&&0===c3.touches[0][k]||(e=this.cursorToScrollbarPosition(e)[k],k=this[k],k=e-k,this.hasDragged=true,this.updatePosition(g3[0]+k,g3[1]+k),this.hasDragged&&a(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:c3.type,DOMEvent:c3}))};c2.prototype.mouseUpHandler=function(c3){this.hasDragged&&a(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:c3.type,DOMEvent:c3});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};c2.prototype.position=function(a2,c3,k,g3){var e=this.options.vertical,m2=this.rendered?"animate":"attr",n=g3,p2=0;this.group.show();this.x=a2;this.y=c3+this.trackBorderWidth;this.width=k;this.height=g3;this.xOffset=n;this.yOffset=p2;e?(this.width=this.yOffset=k=p2=this.size,this.xOffset=n=0,this.barWidth=g3-2*k,this.x=a2+=this.options.margin):(this.height=this.xOffset=g3=n=this.size,this.barWidth=k-2*g3,this.y+=this.options.margin);this.group[m2]({translateX:a2,translateY:this.y});this.track[m2]({width:k,height:g3});this.scrollbarButtons[1][m2]({translateX:e?0:k-n,translateY:e?g3-p2:0})};c2.prototype.removeEvents=function(){this._events.forEach((function(a2){p.apply(null,a2)}));this._events.length=0};c2.prototype.render=function(){var a2=this.renderer,k=this.options,g3=this.size,m2=this.chart.styledMode,p2=a2.g("scrollbar").attr({zIndex:k.zIndex}).hide().add();this.group=p2;this.track=a2.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:k.trackBorderRadius||0,height:g3,width:g3}).add(p2);m2||this.track.attr({fill:k.trackBackgroundColor,stroke:k.trackBorderColor,"stroke-width":k.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=a2.g().add(p2);this.scrollbar=a2.rect().addClass("highcharts-scrollbar-thumb").attr({height:g3,width:g3,r:k.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=a2.path(c2.swapXY([["M",-3,g3/4],["L",-3,2*g3/3],["M",0,g3/4],["L",0,2*g3/3],["M",3,g3/4],["L",3,2*g3/3]],k.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);m2||(this.scrollbar.attr({fill:k.barBackgroundColor,stroke:k.barBorderColor,"stroke-width":k.barBorderWidth}),this.scrollbarRifles.attr({stroke:k.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};c2.prototype.setRange=function(a2,c3){var e=this.options,k=e.vertical,g3=e.minWidth,m2=this.barWidth,n=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(t(m2)){var p2=m2*Math.min(c3,1);a2=Math.max(a2,0);var f=Math.ceil(m2*a2);this.calculatedWidth=p2=x(p2-f);p2<g3&&(f=(m2-g3+p2)*a2,p2=g3);g3=Math.floor(f+this.xOffset+this.yOffset);m2=p2/2-.5;this.from=a2;this.to=c3;k?(this.scrollbarGroup[n]({translateY:g3}),this.scrollbar[n]({height:p2}),this.scrollbarRifles[n]({translateY:m2}),this.scrollbarTop=g3,this.scrollbarLeft=0):(this.scrollbarGroup[n]({translateX:g3}),this.scrollbar[n]({width:p2}),this.scrollbarRifles[n]({translateX:m2}),this.scrollbarLeft=g3,this.scrollbarTop=0);12>=p2?this.scrollbarRifles.hide():this.scrollbarRifles.show();false===e.showFull&&(0>=a2&&1<=c3?this.group.hide():this.group.show());this.rendered=true}};c2.prototype.shouldUpdateExtremes=function(a2){return m(this.options.liveRedraw,g2.svg&&!g2.isTouchDevice&&!this.chart.boosted)||"mouseup"===a2||"touchend"===a2||!t(a2)};c2.prototype.trackClick=function(c3){var e=this.chart.pointer.normalize(c3),k=this.to-this.from,g3=this.y+this.scrollbarTop,m2=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>g3||!this.options.vertical&&e.chartX>m2?this.updatePosition(this.from+k,this.to+k):this.updatePosition(this.from-k,this.to-k);a(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:c3})};c2.prototype.update=function(a2){this.destroy();this.init(this.chart.renderer,q(true,this.options,a2),this.chart)};c2.prototype.updatePosition=function(a2,c3){1<c3&&(a2=x(1-x(c3-a2)),c3=1);0>a2&&(c3=x(c3-a2),a2=0);this.from=a2;this.to=c3};c2.defaultOptions=A;return c2}();z.scrollbar=q(true,c.defaultOptions,z.scrollbar);return c}));I(g,"Stock/Navigator/Navigator.js",[g["Core/Axis/Axis.js"],g["Core/Defaults.js"],g["Core/Globals.js"],g["Core/Axis/NavigatorAxisComposition.js"],g["Stock/Navigator/NavigatorComposition.js"],g["Stock/Scrollbar/Scrollbar.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C){function x(a2){for(var b=[],d=1;d<arguments.length;d++)b[d-1]=arguments[d];b=[].filter.call(b,u);if(b.length)return Math[a2].apply(0,b)}var t=g2.defaultOptions,r=y.hasTouch,a=y.isTouchDevice,q=C.addEvent,m=C.clamp,p=C.correctFloat,k=C.defined,e=C.destroyObjectProperties,D=C.erase,G=C.extend,H=C.find,K=C.isArray,u=C.isNumber,n=C.merge,w=C.pick,f=C.removeEvent,l=C.splat;return function(){function d(b){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0;this.init(b)}d.compose=function(b,a2,c2){B.compose(b,a2,d,c2)};d.prototype.drawHandle=function(b,a2,d2,c2){var h=this.navigatorOptions.handles.height;this.handles[a2][c2](d2?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(b,10)+.5-h)}:{translateX:Math.round(this.left+parseInt(b,10)),translateY:Math.round(this.top+this.height/2-h/2-1)})};d.prototype.drawOutline=function(b,a2,d2,c2){var h=this.navigatorOptions.maskInside,e2=this.outline.strokeWidth(),f2=e2/2,l2=e2%2/2;e2=this.outlineHeight;var k2=this.scrollbarHeight||0,g3=this.size,n2=this.left-k2,m2=this.top;d2?(n2-=f2,d2=m2+a2+l2,a2=m2+b+l2,l2=[["M",n2+e2,m2-k2-l2],["L",n2+e2,d2],["L",n2,d2],["L",n2,a2],["L",n2+e2,a2],["L",n2+e2,m2+g3+k2]],h&&l2.push(["M",n2+e2,d2-f2],["L",n2+e2,a2+f2])):(b+=n2+k2-l2,a2+=n2+k2-l2,m2+=f2,l2=[["M",n2,m2],["L",b,m2],["L",b,m2+e2],["L",a2,m2+e2],["L",a2,m2],["L",n2+g3+2*k2,m2]],h&&l2.push(["M",b-f2,m2],["L",a2+f2,m2]));this.outline[c2]({d:l2})};d.prototype.drawMasks=function(b,a2,d2,c2){var h=this.left,e2=this.top,f2=this.height;if(d2){var l2=[h,h,h];var k2=[e2,e2+b,e2+a2];var g3=[f2,f2,f2];var n2=[b,a2-b,this.size-a2]}else l2=[h,h+b,h+a2],k2=[e2,e2,e2],g3=[b,a2-b,this.size-a2],n2=[f2,f2,f2];this.shades.forEach((function(b2,a3){b2[c2]({x:l2[a3],y:k2[a3],width:g3[a3],height:n2[a3]})}))};d.prototype.renderElements=function(){var b=this,a2=b.navigatorOptions,d2=a2.maskInside,c2=b.chart,e2=c2.renderer,f2={cursor:c2.inverted?"ns-resize":"ew-resize"},l2=b.navigatorGroup=e2.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!d2,d2,!d2].forEach((function(d3,h){var k3=e2.rect().addClass("highcharts-navigator-mask"+(1===h?"-inside":"-outside")).add(l2);c2.styledMode||(k3.attr({fill:d3?a2.maskFill:"rgba(0,0,0,0)"}),1===h&&k3.css(f2));b.shades[h]=k3}));b.outline=e2.path().addClass("highcharts-navigator-outline").add(l2);c2.styledMode||b.outline.attr({"stroke-width":a2.outlineWidth,stroke:a2.outlineColor});if(a2.handles&&a2.handles.enabled){var k2=a2.handles,g3=k2.height,n2=k2.width;[0,1].forEach((function(a3){b.handles[a3]=e2.symbol(k2.symbols[a3],-n2/2-1,0,n2,g3,k2);c2.inverted&&b.handles[a3].attr({rotation:90,rotationOriginX:Math.floor(-n2/2),rotationOriginY:(g3+n2)/2});b.handles[a3].attr({zIndex:7-a3}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][a3]).add(l2);c2.styledMode||b.handles[a3].attr({fill:k2.backgroundColor,stroke:k2.borderColor,"stroke-width":k2.lineWidth}).css(f2)}))}};d.prototype.update=function(b){(this.series||[]).forEach((function(b2){b2.baseSeries&&delete b2.baseSeries.navigatorSeries}));this.destroy();n(true,this.chart.options.navigator,b);this.init(this.chart)};d.prototype.render=function(b,a2,d2,c2){var h=this.chart,e2=this.xAxis,f2=e2.pointRange||0,l2=e2.navigatorAxis.fake?h.xAxis[0]:e2,g3=this.navigatorEnabled,n2=this.rendered,v=h.inverted,q2=h.xAxis[0].minRange,r2=h.xAxis[0].options.maxRange,t2=this.scrollbarHeight,E;if(!this.hasDragged||k(d2)){b=p(b-f2/2);a2=p(a2+f2/2);if(!u(b)||!u(a2))if(n2)d2=0,c2=w(e2.width,l2.width);else return;this.left=w(e2.left,h.plotLeft+t2+(v?h.plotWidth:0));var x2=this.size=E=w(e2.len,(v?h.plotHeight:h.plotWidth)-2*t2);h=v?t2:E+2*t2;d2=w(d2,e2.toPixels(b,true));c2=w(c2,e2.toPixels(a2,true));u(d2)&&Infinity!==Math.abs(d2)||(d2=0,c2=h);b=e2.toValue(d2,true);a2=e2.toValue(c2,true);var D2=Math.abs(p(a2-b));D2<q2?this.grabbedLeft?d2=e2.toPixels(a2-q2-f2,true):this.grabbedRight&&(c2=e2.toPixels(b+q2+f2,true)):k(r2)&&p(D2-f2)>r2&&(this.grabbedLeft?d2=e2.toPixels(a2-r2-f2,true):this.grabbedRight&&(c2=e2.toPixels(b+r2+f2,true)));this.zoomedMax=m(Math.max(d2,c2),0,x2);this.zoomedMin=m(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(d2,c2),0,x2);this.range=this.zoomedMax-this.zoomedMin;x2=Math.round(this.zoomedMax);d2=Math.round(this.zoomedMin);g3&&(this.navigatorGroup.attr({visibility:"inherit"}),n2=n2&&!this.hasDragged?"animate":"attr",this.drawMasks(d2,x2,v,n2),this.drawOutline(d2,x2,v,n2),this.navigatorOptions.handles.enabled&&(this.drawHandle(d2,0,v,n2),this.drawHandle(x2,1,v,n2)));this.scrollbar&&(v?(v=this.top-t2,l2=this.left-t2+(g3||!l2.opposite?0:(l2.titleOffset||0)+l2.axisTitleMargin),t2=E+2*t2):(v=this.top+(g3?this.height:-t2),l2=this.left-t2),this.scrollbar.position(l2,v,h,t2),this.scrollbar.setRange(this.zoomedMin/(E||1),this.zoomedMax/(E||1)));this.rendered=true}};d.prototype.addMouseEvents=function(){var b=this,a2=b.chart,d2=a2.container,c2=[],e2,f2;b.mouseMoveHandler=e2=function(a3){b.onMouseMove(a3)};b.mouseUpHandler=f2=function(a3){b.onMouseUp(a3)};c2=b.getPartsEvents("mousedown");c2.push(q(a2.renderTo,"mousemove",e2),q(d2.ownerDocument,"mouseup",f2));r&&(c2.push(q(a2.renderTo,"touchmove",e2),q(d2.ownerDocument,"touchend",f2)),c2.concat(b.getPartsEvents("touchstart")));b.eventsToUnbind=c2;b.series&&b.series[0]&&c2.push(q(b.series[0].xAxis,"foundExtremes",(function(){a2.navigator.modifyNavigatorAxisExtremes()})))};d.prototype.getPartsEvents=function(b){var a2=this,d2=[];["shades","handles"].forEach((function(c2){a2[c2].forEach((function(h,e2){d2.push(q(h.element,b,(function(b2){a2[c2+"Mousedown"](b2,e2)})))}))}));return d2};d.prototype.shadesMousedown=function(b,a2){b=this.chart.pointer.normalize(b);var d2=this.chart,c2=this.xAxis,h=this.zoomedMin,e2=this.size,f2=this.range,l2=this.left,g3=b.chartX;d2.inverted&&(g3=b.chartY,l2=this.top);if(1===a2)this.grabbedCenter=g3,this.fixedWidth=f2,this.dragOffset=g3-h;else{b=g3-l2-f2/2;if(0===a2)b=Math.max(0,b);else if(2===a2&&b+f2>=e2)if(b=e2-f2,this.reversedExtremes){b-=f2;var n2=this.getUnionExtremes().dataMin}else var m2=this.getUnionExtremes().dataMax;b!==h&&(this.fixedWidth=f2,a2=c2.navigatorAxis.toFixedRange(b,b+f2,n2,m2),k(a2.min)&&d2.xAxis[0].setExtremes(Math.min(a2.min,a2.max),Math.max(a2.min,a2.max),true,null,{trigger:"navigator"}))}};d.prototype.handlesMousedown=function(b,a2){this.chart.pointer.normalize(b);b=this.chart;var d2=b.xAxis[0],c2=this.reversedExtremes;0===a2?(this.grabbedLeft=true,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c2?d2.min:d2.max):(this.grabbedRight=true,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c2?d2.max:d2.min);b.fixedRange=null};d.prototype.onMouseMove=function(b){var d2=this,c2=d2.chart,e2=d2.navigatorSize,f2=d2.range,l2=d2.dragOffset,k2=c2.inverted,g3=d2.left;b.touches&&0===b.touches[0].pageX||(b=c2.pointer.normalize(b),c2=b.chartX,k2&&(g3=d2.top,c2=b.chartY),d2.grabbedLeft?(d2.hasDragged=true,d2.render(0,0,c2-g3,d2.otherHandlePos)):d2.grabbedRight?(d2.hasDragged=true,d2.render(0,0,d2.otherHandlePos,c2-g3)):d2.grabbedCenter&&(d2.hasDragged=true,c2<l2?c2=l2:c2>e2+l2-f2&&(c2=e2+l2-f2),d2.render(0,0,c2-l2,c2-l2+f2)),d2.hasDragged&&d2.scrollbar&&w(d2.scrollbar.options.liveRedraw,y.svg&&!a&&!this.chart.boosted)&&(b.DOMType=b.type,setTimeout((function(){d2.onMouseUp(b)}),0)))};d.prototype.onMouseUp=function(b){var a2=this.chart,d2=this.xAxis,c2=this.scrollbar,e2=b.DOMEvent||b,f2=a2.inverted,l2=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!c2||!c2.hasDragged)||"scrollbar"===b.trigger){c2=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var g3=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var n2=this.fixedExtreme;this.zoomedMax===this.size&&(n2=this.reversedExtremes?c2.dataMin:c2.dataMax);0===this.zoomedMin&&(g3=this.reversedExtremes?c2.dataMax:c2.dataMin);d2=d2.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,g3,n2);k(d2.min)&&a2.xAxis[0].setExtremes(Math.min(d2.min,d2.max),Math.max(d2.min,d2.max),true,this.hasDragged?false:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:e2})}"mousemove"!==b.DOMType&&"touchmove"!==b.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&u(this.zoomedMin)&&u(this.zoomedMax)&&(a2=Math.round(this.zoomedMin),b=Math.round(this.zoomedMax),this.shades&&this.drawMasks(a2,b,f2,l2),this.outline&&this.drawOutline(a2,b,f2,l2),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(a2,0,f2,l2),this.drawHandle(b,1,f2,l2)))};d.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach((function(b){b()})),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};d.prototype.removeBaseSeriesEvents=function(){var b=this.baseSeries||[];this.navigatorEnabled&&b[0]&&(false!==this.navigatorOptions.adaptToUpdatedData&&b.forEach((function(b2){f(b2,"updatedData",this.updatedDataHandler)}),this),b[0].xAxis&&f(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};d.prototype.init=function(b){var a2=b.options,d2=a2.navigator||{},e2=d2.enabled,f2=a2.scrollbar||{},l2=f2.enabled;a2=e2&&d2.height||0;var k2=l2&&f2.height||0;this.handles=[];this.shades=[];this.chart=b;this.setBaseSeries();this.height=a2;this.scrollbarHeight=k2;this.scrollbarEnabled=l2;this.navigatorEnabled=e2;this.navigatorOptions=d2;this.scrollbarOptions=f2;this.outlineHeight=a2+k2;this.opposite=w(d2.opposite,!(e2||!b.inverted));var g3=this;e2=g3.baseSeries;f2=b.xAxis.length;l2=b.yAxis.length;var m2=e2&&e2[0]&&e2[0].xAxis||b.xAxis[0]||{options:{}};b.isDirtyBox=true;g3.navigatorEnabled?(g3.xAxis=new c(b,n({breaks:m2.options.breaks,ordinal:m2.options.ordinal},d2.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:true,type:"datetime",index:f2,isInternal:true,offset:0,keepOrdinalPadding:true,startOnTick:false,endOnTick:false,minPadding:0,maxPadding:0,zoomEnabled:false},b.inverted?{offsets:[k2,0,-k2,0],width:a2}:{offsets:[0,-k2,0,k2],height:a2})),g3.yAxis=new c(b,n(d2.yAxis,{id:"navigator-y-axis",alignTicks:false,offset:0,index:l2,isInternal:true,reversed:w(d2.yAxis&&d2.yAxis.reversed,b.yAxis[0]&&b.yAxis[0].reversed,false),zoomEnabled:false},b.inverted?{width:a2}:{height:a2})),e2||d2.series.data?g3.updateNavigatorSeries(false):0===b.series.length&&(g3.unbindRedraw=q(b,"beforeRedraw",(function(){0<b.series.length&&!g3.series&&(g3.setBaseSeries(),g3.unbindRedraw())}))),g3.reversedExtremes=b.inverted&&!g3.xAxis.reversed||!b.inverted&&g3.xAxis.reversed,g3.renderElements(),g3.addMouseEvents()):(g3.xAxis={chart:b,navigatorAxis:{fake:true},translate:function(a3,d3){var c2=b.xAxis[0],e3=c2.getExtremes(),h=c2.len-2*k2,f3=x("min",c2.options.min,e3.dataMin);c2=x("max",c2.options.max,e3.dataMax)-f3;return d3?a3*c2/h+f3:h*(a3-f3)/c2},toPixels:function(b2){return this.translate(b2)},toValue:function(b2){return this.translate(b2,true)}},g3.xAxis.navigatorAxis.axis=g3.xAxis,g3.xAxis.navigatorAxis.toFixedRange=A.prototype.toFixedRange.bind(g3.xAxis.navigatorAxis));b.options.scrollbar.enabled&&(b.scrollbar=g3.scrollbar=new z(b.renderer,n(b.options.scrollbar,{margin:g3.navigatorEnabled?0:10,vertical:b.inverted}),b),q(g3.scrollbar,"changed",(function(b2){var a3=g3.size,d3=a3*this.to;a3*=this.from;g3.hasDragged=g3.scrollbar.hasDragged;g3.render(0,0,a3,d3);this.shouldUpdateExtremes(b2.DOMType)&&setTimeout((function(){g3.onMouseUp(b2)}))})));g3.addBaseSeriesEvents();g3.addChartEvents()};d.prototype.getUnionExtremes=function(b){var a2=this.chart.xAxis[0],d2=this.xAxis,c2=d2.options,e2=a2.options,f2;b&&null===a2.dataMin||(f2={dataMin:w(c2&&c2.min,x("min",e2.min,a2.dataMin,d2.dataMin,d2.min)),dataMax:w(c2&&c2.max,x("max",e2.max,a2.dataMax,d2.dataMax,d2.max))});return f2};d.prototype.setBaseSeries=function(b,a2){var d2=this.chart,c2=this.baseSeries=[];b=b||d2.options&&d2.options.navigator.baseSeries||(d2.series.length?H(d2.series,(function(b2){return!b2.options.isInternal})).index:0);(d2.series||[]).forEach((function(a3,d3){a3.options.isInternal||!a3.options.showInNavigator&&(d3!==b&&a3.options.id!==b||false===a3.options.showInNavigator)||c2.push(a3)}));this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(true,a2)};d.prototype.updateNavigatorSeries=function(b,a2){var d2=this,c2=d2.chart,e2=d2.baseSeries,h={enableMouseTracking:false,index:null,linkedTo:null,group:"nav",padXAxis:false,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:false,stacking:void 0,isInternal:true,states:{inactive:{opacity:1}}},k2=d2.series=(d2.series||[]).filter((function(b2){var a3=b2.baseSeries;return 0>e2.indexOf(a3)?(a3&&(f(a3,"updatedData",d2.updatedDataHandler),delete a3.navigatorSeries),b2.chart&&b2.destroy(),false):true})),g3,m2,p2=d2.navigatorOptions.series,q2;e2&&e2.length&&e2.forEach((function(b2){var f2=b2.navigatorSeries,v=G({color:b2.color,visible:b2.visible},K(p2)?t.navigator.series:p2);f2&&false===d2.navigatorOptions.adaptToUpdatedData||(h.name="Navigator "+e2.length,g3=b2.options||{},q2=g3.navigatorOptions||{},v.dataLabels=l(v.dataLabels),m2=n(g3,h,v,q2),m2.pointRange=w(v.pointRange,q2.pointRange,t.plotOptions[m2.type||"line"].pointRange),v=q2.data||v.data,d2.hasNavigatorData=d2.hasNavigatorData||!!v,m2.data=v||g3.data&&g3.data.slice(0),f2&&f2.options?f2.update(m2,a2):(b2.navigatorSeries=c2.initSeries(m2),b2.navigatorSeries.baseSeries=b2,k2.push(b2.navigatorSeries)))}));if(p2.data&&(!e2||!e2.length)||K(p2))d2.hasNavigatorData=false,p2=l(p2),p2.forEach((function(b2,a3){h.name="Navigator "+(k2.length+1);m2=n(t.navigator.series,{color:c2.series[a3]&&!c2.series[a3].options.isInternal&&c2.series[a3].color||c2.options.colors[a3]||c2.options.colors[0]},h,b2);m2.data=b2.data;m2.data&&(d2.hasNavigatorData=true,k2.push(c2.initSeries(m2)))}));b&&this.addBaseSeriesEvents()};d.prototype.addBaseSeriesEvents=function(){var b=this,a2=this,d2=a2.baseSeries||[];d2[0]&&d2[0].xAxis&&d2[0].eventsToUnbind.push(q(d2[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));d2.forEach((function(d3){d3.eventsToUnbind.push(q(d3,"show",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(true,false)})));d3.eventsToUnbind.push(q(d3,"hide",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(false,false)})));false!==b.navigatorOptions.adaptToUpdatedData&&d3.xAxis&&d3.eventsToUnbind.push(q(d3,"updatedData",b.updatedDataHandler));d3.eventsToUnbind.push(q(d3,"remove",(function(){this.navigatorSeries&&(D(a2.series,this.navigatorSeries),k(this.navigatorSeries.options)&&this.navigatorSeries.remove(false),delete this.navigatorSeries)})))}))};d.prototype.getBaseSeriesMin=function(b){return this.baseSeries.reduce((function(b2,a2){return Math.min(b2,a2.xData&&a2.xData.length?a2.xData[0]:b2)}),b)};d.prototype.modifyNavigatorAxisExtremes=function(){var b=this.xAxis;if("undefined"!==typeof b.getExtremes){var a2=this.getUnionExtremes(true);!a2||a2.dataMin===b.min&&a2.dataMax===b.max||(b.min=a2.dataMin,b.max=a2.dataMax)}};d.prototype.modifyBaseAxisExtremes=function(){var b=this.chart.navigator,a2=this.getExtremes(),d2=a2.dataMin,c2=a2.dataMax;a2=a2.max-a2.min;var e2=b.stickToMin,f2=b.stickToMax,l2=w(this.options.overscroll,0),k2=b.series&&b.series[0],g3=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(e2){var n2=d2;var m2=n2+a2}f2&&(m2=c2+l2,e2||(n2=Math.max(d2,m2-a2,b.getBaseSeriesMin(k2&&k2.xData?k2.xData[0]:-Number.MAX_VALUE))));g3&&(e2||f2)&&u(n2)&&(this.min=this.userMin=n2,this.max=this.userMax=m2)}b.stickToMin=b.stickToMax=null};d.prototype.updatedDataHandler=function(){var b=this.chart.navigator,a2=this.navigatorSeries;b.stickToMax=w(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,b.reversedExtremes?0===Math.round(b.zoomedMin):Math.round(b.zoomedMax)>=Math.round(b.size));b.stickToMin=b.shouldStickToMin(this,b);a2&&!b.hasNavigatorData&&(a2.options.pointStart=this.xData[0],a2.setData(this.options.data,false,null,false))};d.prototype.shouldStickToMin=function(b,a2){a2=a2.getBaseSeriesMin(b.xData[0]);var d2=b.xAxis;b=d2.max;var c2=d2.min;d2=d2.options.range;return u(b)&&u(c2)?d2&&0<b-a2?b-a2<d2:c2<=a2:false};d.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(q(this.chart,"redraw",(function(){var b=this.navigator,a2=b&&(b.baseSeries&&b.baseSeries[0]&&b.baseSeries[0].xAxis||this.xAxis[0]);a2&&b.render(a2.min,a2.max)})),q(this.chart,"getMargins",(function(){var b=this.navigator,a2=b.opposite?"plotTop":"marginBottom";this.inverted&&(a2=b.opposite?"marginRight":"plotLeft");this[a2]=(this[a2]||0)+(b.navigatorEnabled||!this.inverted?b.outlineHeight:0)+b.navigatorOptions.margin})))};d.prototype.destroy=function(){var b=this;this.removeEvents();this.xAxis&&(D(this.chart.xAxis,this.xAxis),D(this.chart.axes,this.xAxis));this.yAxis&&(D(this.chart.yAxis,this.yAxis),D(this.chart.axes,this.yAxis));(this.series||[]).forEach((function(b2){b2.destroy&&b2.destroy()}));"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach((function(a2){b[a2]&&b[a2].destroy&&b[a2].destroy();b[a2]=null}));[this.handles].forEach((function(b2){e(b2)}))};return d}()}));I(g,"Stock/RangeSelector/RangeSelectorDefaults.js",[],(function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:false,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:false,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:true,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}}));I(g,"Stock/RangeSelector/RangeSelectorComposition.js",[g["Core/Defaults.js"],g["Stock/RangeSelector/RangeSelectorDefaults.js"],g["Core/Utilities.js"]],(function(c,g2,y){function A(){var a2=this.range,c2=a2.type,d=this.max,b=this.chart.time,e2=function(a3,d2){var e3="year"===c2?"FullYear":"Month",f=new b.Date(a3),h=b.get(e3,f);b.set(e3,f,h+d2);h===b.get(e3,f)&&b.set("Date",f,0);return f.getTime()-a3};if(G(a2)){var k2=d-a2;var g3=a2}else a2&&(k2=d+e2(d,-(a2.count||1)),this.chart&&(this.chart.fixedRange=d-k2));var n2=K(this.dataMin,Number.MIN_VALUE);G(k2)||(k2=n2);k2<=n2&&(k2=n2,"undefined"===typeof g3&&(g3=e2(k2,a2.count)),this.newMax=Math.min(k2+g3,K(this.dataMax,Number.MAX_VALUE)));G(d)?!G(a2)&&a2&&a2._offsetMin&&(k2+=a2._offsetMin):k2=void 0;return k2}function B(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new w(this))}function z(){var a2=this.axes,c2=this.rangeSelector;c2&&(G(c2.deferredYTDClick)&&(c2.clickButton(c2.deferredYTDClick),delete c2.deferredYTDClick),a2.forEach((function(a3){a3.updateNames();a3.setScale()})),this.getAxisMargins(),c2.render(),a2=c2.options.verticalAlign,c2.options.floating||("bottom"===a2?this.extraBottomMargin=true:"middle"!==a2&&(this.extraTopMargin=true)))}function C(a2){var c2,d,b,e2,f=a2.rangeSelector,k2=function(){f&&(c2=a2.xAxis[0].getExtremes(),d=a2.legend,e2=f&&f.options.verticalAlign,G(c2.min)&&f.render(c2.min,c2.max),d.display&&"top"===e2&&e2===d.options.verticalAlign&&(b=H(a2.spacingBox),b.y="vertical"===d.options.layout?a2.plotTop:b.y+f.getHeight(),d.group.placed=false,d.align(b)))};f&&(D(u,(function(b2){return b2[0]===a2}))||u.push([a2,[p(a2.xAxis[0],"afterSetExtremes",(function(b2){f&&f.render(b2.min,b2.max)})),p(a2,"redraw",k2)]]),k2())}function x(){for(var a2=0,c2=u.length;a2<c2;++a2){var d=u[a2];if(d[0]===this){d[1].forEach((function(b){return b()}));u.splice(a2,1);break}}}function t(){var a2=this.rangeSelector;a2&&(a2=a2.getHeight(),this.extraTopMargin&&(this.plotTop+=a2),this.extraBottomMargin&&(this.marginBottom+=a2))}function r(){var a2=this.rangeSelector;a2&&!a2.options.floating&&(a2.render(),a2=a2.options.verticalAlign,"bottom"===a2?this.extraBottomMargin=true:"middle"!==a2&&(this.extraTopMargin=true))}function a(a2){var c2=a2.options.rangeSelector;a2=this.extraBottomMargin;var d=this.extraTopMargin,b=this.rangeSelector;c2&&c2.enabled&&!k(b)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=true,this.rangeSelector=b=new w(this));this.extraTopMargin=this.extraBottomMargin=false;b&&(C(this),c2=c2&&c2.verticalAlign||b.options&&b.options.verticalAlign,b.options.floating||("bottom"===c2?this.extraBottomMargin=true:"middle"!==c2&&(this.extraTopMargin=true)),this.extraBottomMargin!==a2||this.extraTopMargin!==d)&&(this.isDirtyBox=true)}var q=c.defaultOptions,m=c.setOptions,p=y.addEvent,k=y.defined,e=y.extend,D=y.find,G=y.isNumber,H=y.merge,K=y.pick,u=[],n=[],w;return{compose:function(c2,l,d){w=d;-1===n.indexOf(c2)&&(n.push(c2),c2.prototype.minFromRange=A);-1===n.indexOf(l)&&(n.push(l),p(l,"afterGetContainer",B),p(l,"beforeRender",z),p(l,"destroy",x),p(l,"getMargins",t),p(l,"render",r),p(l,"update",a),l.prototype.callbacks.push(C));-1===n.indexOf(m)&&(e(q,{rangeSelector:g2.rangeSelector}),e(q.lang,g2.lang))}}}));I(g,"Stock/RangeSelector/RangeSelector.js",[g["Core/Axis/Axis.js"],g["Core/Defaults.js"],g["Core/Globals.js"],g["Stock/RangeSelector/RangeSelectorComposition.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z){function C(a2){if(-1!==a2.indexOf("%L"))return"text";var c2="aAdewbBmoyY".split("").some((function(b){return-1!==a2.indexOf("%"+b)})),d="HkIlMS".split("").some((function(b){return-1!==a2.indexOf("%"+b)}));return c2&&d?"datetime-local":c2?"date":d?"time":"text"}var x=g2.defaultOptions,t=z.addEvent,r=z.createElement,a=z.css,q=z.defined,m=z.destroyObjectProperties,p=z.discardElement,k=z.extend,e=z.fireEvent,D=z.isNumber,G=z.merge,H=z.objectEach,K=z.pad,u=z.pick,n=z.pInt,w=z.splat;g2=function(){function f(a2){this.buttons=void 0;this.buttonOptions=f.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=a2;this.init(a2)}f.compose=function(a2,d){A.compose(a2,d,f)};f.prototype.clickButton=function(a2,d){var b=this.chart,h=this.buttonOptions[a2],f2=b.xAxis[0],l=b.scroller&&b.scroller.getUnionExtremes()||f2||{},k2=h.type,g3=h.dataGrouping,n2=l.dataMin,m2=l.dataMax,p2=f2&&Math.round(Math.min(f2.max,u(m2,f2.max)));l=h._range;var r2,x2=true;if(null!==n2&&null!==m2){b.fixedRange=l;this.setSelected(a2);g3&&(this.forcedDataGrouping=true,c.prototype.setDataGrouping.call(f2||{chart:this.chart},g3,false),this.frozenStates=h.preserveDataGrouping);if("month"===k2||"year"===k2)if(f2){k2={range:h,max:p2,chart:b,dataMin:n2,dataMax:m2};var y2=f2.minFromRange.call(k2);D(k2.newMax)&&(p2=k2.newMax);x2=false}else l=h;else if(l)y2=Math.max(p2-l,n2),p2=Math.min(y2+l,m2),x2=false;else if("ytd"===k2)if(f2){if("undefined"===typeof m2||"undefined"===typeof n2)n2=Number.MAX_VALUE,m2=Number.MIN_VALUE,b.series.forEach((function(b2){if(b2=b2.xData)n2=Math.min(b2[0],n2),m2=Math.max(b2[b2.length-1],m2)})),d=false;k2=this.getYTDExtremes(m2,n2,b.time.useUTC);y2=r2=k2.min;p2=k2.max}else{this.deferredYTDClick=a2;return}else"all"===k2&&f2&&(b.navigator&&b.navigator.baseSeries[0]&&(b.navigator.baseSeries[0].xAxis.options.range=void 0),y2=n2,p2=m2);x2&&h._offsetMin&&q(y2)&&(y2+=h._offsetMin);h._offsetMax&&q(p2)&&(p2+=h._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=a2+1);if(f2)f2.setExtremes(y2,p2,u(d,true),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:h});else{var C2=w(b.options.xAxis)[0];var z2=C2.range;C2.range=l;var G2=C2.min;C2.min=r2;t(b,"load",(function(){C2.range=z2;C2.min=G2}))}e(this,"afterBtnClick")}};f.prototype.setSelected=function(a2){this.selected=this.options.selected=a2};f.prototype.init=function(a2){var d=this,b=a2.options.rangeSelector,c2=b.buttons||d.defaultButtons.slice(),f2=b.selected,l=function(){var b2=d.minInput,a3=d.maxInput;b2&&b2.blur&&e(b2,"blur");a3&&a3.blur&&e(a3,"blur")};d.chart=a2;d.options=b;d.buttons=[];d.buttonOptions=c2;this.eventsToUnbind=[];this.eventsToUnbind.push(t(a2.container,"mousedown",l));this.eventsToUnbind.push(t(a2,"resize",l));c2.forEach(d.computeButtonRange);"undefined"!==typeof f2&&c2[f2]&&this.clickButton(f2,false);this.eventsToUnbind.push(t(a2,"load",(function(){a2.xAxis&&a2.xAxis[0]&&t(a2.xAxis[0],"setExtremes",(function(b2){this.max-this.min!==a2.fixedRange&&"rangeSelectorButton"!==b2.trigger&&"updatedData"!==b2.trigger&&d.forcedDataGrouping&&!d.frozenStates&&this.setDataGrouping(false,false)}))})))};f.prototype.updateButtonStates=function(){var a2=this,d=this.chart,b=this.dropdown,c2=d.xAxis[0],e2=Math.round(c2.max-c2.min),f2=!c2.hasVisibleSeries,k2=d.scroller&&d.scroller.getUnionExtremes()||c2,g3=k2.dataMin,n2=k2.dataMax;d=a2.getYTDExtremes(n2,g3,d.time.useUTC);var m2=d.min,p2=d.max,q2=a2.selected,w2=a2.options.allButtonsEnabled,u2=a2.buttons,r2=D(q2);a2.buttonOptions.forEach((function(d2,h){var l=d2._range,k3=d2.type,v=d2.count||1,t2=u2[h],x2=d2._offsetMax-d2._offsetMin,F=h===q2,E=l>n2-g3,D2=l<c2.minRange;d2=0;var y2=false,C2=false;l=l===e2;("month"===k3||"year"===k3)&&e2+36e5>=864e5*{month:28,year:365}[k3]*v-x2&&e2-36e5<=864e5*{month:31,year:366}[k3]*v+x2?l=true:"ytd"===k3?(l=p2-m2+x2===e2,y2=!F):"all"===k3&&(l=c2.max-c2.min>=n2-g3,C2=!F&&r2&&l);k3=!w2&&(E||D2||C2||f2);v=F&&l||l&&!r2&&!y2||F&&a2.frozenStates;k3?d2=3:v&&(r2=true,d2=2);t2.state!==d2&&(t2.setState(d2),b&&(b.options[h+1].disabled=k3,2===d2&&(b.selectedIndex=h+1)),0===d2&&q2===h&&a2.setSelected())}))};f.prototype.computeButtonRange=function(a2){var d=a2.type,b=a2.count||1,c2={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};if(c2[d])a2._range=c2[d]*b;else if("month"===d||"year"===d)a2._range=864e5*{month:30,year:365}[d]*b;a2._offsetMin=u(a2.offsetMin,0);a2._offsetMax=u(a2.offsetMax,0);a2._range+=a2._offsetMax-a2._offsetMin};f.prototype.getInputValue=function(a2){a2="min"===a2?this.minInput:this.maxInput;var d=this.chart.options.rangeSelector,b=this.chart.time;return a2?("text"===a2.type&&d.inputDateParser||this.defaultInputDateParser)(a2.value,b.useUTC,b):0};f.prototype.setInputValue=function(a2,d){var b=this.options,c2=this.chart.time,e2="min"===a2?this.minInput:this.maxInput;a2="min"===a2?this.minDateBox:this.maxDateBox;if(e2){var f2=e2.getAttribute("data-hc-time");f2=q(f2)?Number(f2):void 0;q(d)&&(q(f2)&&e2.setAttribute("data-hc-time-previous",f2),e2.setAttribute("data-hc-time",d),f2=d);e2.value=c2.dateFormat(this.inputTypeFormats[e2.type]||b.inputEditDateFormat,f2);a2&&a2.attr({text:c2.dateFormat(b.inputDateFormat,f2)})}};f.prototype.setInputExtremes=function(a2,d,b){if(a2="min"===a2?this.minInput:this.maxInput){var c2=this.inputTypeFormats[a2.type],e2=this.chart.time;c2&&(d=e2.dateFormat(c2,d),a2.min!==d&&(a2.min=d),b=e2.dateFormat(c2,b),a2.max!==b&&(a2.max=b))}};f.prototype.showInput=function(c2){var d="min"===c2?this.minDateBox:this.maxDateBox;if((c2="min"===c2?this.minInput:this.maxInput)&&d&&this.inputGroup){var b="text"===c2.type,e2=this.inputGroup,f2=e2.translateX;e2=e2.translateY;var l=this.options.inputBoxWidth;a(c2,{width:b?d.width+(l?-2:20)+"px":"auto",height:b?d.height-2+"px":"auto",border:"2px solid silver"});b&&l?a(c2,{left:f2+d.x+"px",top:e2+"px"}):a(c2,{left:Math.min(Math.round(d.x+f2-(c2.offsetWidth-d.width)/2),this.chart.chartWidth-c2.offsetWidth)+"px",top:e2-(c2.offsetHeight-d.height)/2+"px"})}};f.prototype.hideInput=function(c2){(c2="min"===c2?this.minInput:this.maxInput)&&a(c2,{top:"-9999em",border:0,width:"1px",height:"1px"})};f.prototype.defaultInputDateParser=function(a2,d,b){var c2=a2.split("/").join("-").split(" ").join("T");-1===c2.indexOf("T")&&(c2+="T00:00");if(d)c2+="Z";else{var e2;if(e2=y.isSafari)e2=c2,e2=!(6<e2.length&&(e2.lastIndexOf("-")===e2.length-6||e2.lastIndexOf("+")===e2.length-6));e2&&(e2=new Date(c2).getTimezoneOffset()/60,c2+=0>=e2?"+".concat(K(-e2),":00"):"-".concat(K(e2),":00"))}c2=Date.parse(c2);D(c2)||(a2=a2.split("-"),c2=Date.UTC(n(a2[0]),n(a2[1])-1,n(a2[2])));b&&d&&D(c2)&&(c2+=b.getTimezoneOffset(c2));return c2};f.prototype.drawInput=function(c2){function d(){var a2=l.maxInput,d2=l.minInput,e3=b.xAxis[0],f3=b.scroller&&b.scroller.xAxis?b.scroller.xAxis:e3,h=f3.dataMin;f3=f3.dataMax;var k2=l.getInputValue(c2);k2!==Number(w2.getAttribute("data-hc-time-previous"))&&D(k2)&&(w2.setAttribute("data-hc-time-previous",k2),p2&&a2&&D(h)?k2>Number(a2.getAttribute("data-hc-time"))?k2=void 0:k2<h&&(k2=h):d2&&D(f3)&&(k2<Number(d2.getAttribute("data-hc-time"))?k2=void 0:k2>f3&&(k2=f3)),"undefined"!==typeof k2&&e3.setExtremes(p2?k2:e3.min,p2?e3.max:k2,void 0,void 0,{trigger:"rangeSelectorInput"}))}var b=this.chart,e2=this.div,f2=this.inputGroup,l=this,g3=b.renderer.style||{},n2=b.renderer,m2=b.options.rangeSelector,p2="min"===c2,q2=x.lang[p2?"rangeSelectorFrom":"rangeSelectorTo"]||"";q2=n2.label(q2,0).addClass("highcharts-range-label").attr({padding:q2?2:0,height:q2?m2.inputBoxHeight:0}).add(f2);n2=n2.label("",0).addClass("highcharts-range-input").attr({padding:2,width:m2.inputBoxWidth,height:m2.inputBoxHeight,"text-align":"center"}).on("click",(function(){l.showInput(c2);l[c2+"Input"].focus()}));b.styledMode||n2.attr({stroke:m2.inputBoxBorderColor,"stroke-width":1});n2.add(f2);var w2=r("input",{name:c2,className:"highcharts-range-selector"},void 0,e2);w2.setAttribute("type",C(m2.inputDateFormat||"%b %e, %Y"));b.styledMode||(q2.css(G(g3,m2.labelStyle)),n2.css(G({color:"#333333"},g3,m2.inputStyle)),a(w2,k({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:g3.fontSize,fontFamily:g3.fontFamily,top:"-9999em"},m2.inputStyle)));w2.onfocus=function(){l.showInput(c2)};w2.onblur=function(){w2===y.doc.activeElement&&d();l.hideInput(c2);l.setInputValue(c2);w2.blur()};var u2=false;w2.onchange=function(){u2||(d(),l.hideInput(c2),w2.blur())};w2.onkeypress=function(b2){13===b2.keyCode&&d()};w2.onkeydown=function(b2){u2=true;38!==b2.keyCode&&40!==b2.keyCode||d()};w2.onkeyup=function(){u2=false};return{dateBox:n2,input:w2,label:q2}};f.prototype.getPosition=function(){var a2=this.chart,d=a2.options.rangeSelector;a2="top"===d.verticalAlign?a2.plotTop-a2.axisOffset[0]:0;return{buttonTop:a2+d.buttonPosition.y,inputTop:a2+d.inputPosition.y-10}};f.prototype.getYTDExtremes=function(a2,d,b){var c2=this.chart.time,e2=new c2.Date(a2),f2=c2.get("FullYear",e2);b=b?c2.Date.UTC(f2,0,1):+new c2.Date(f2,0,1);d=Math.max(d,b);e2=e2.getTime();return{max:Math.min(a2||e2,e2),min:d}};f.prototype.render=function(a2,d){var b=this.chart,c2=b.renderer,e2=b.container,f2=b.options,l=f2.rangeSelector,k2=u(f2.chart.style&&f2.chart.style.zIndex,0)+1;f2=l.inputEnabled;if(false!==l.enabled){this.rendered||(this.group=c2.g("range-selector-group").attr({zIndex:7}).add(),this.div=r("div",void 0,{position:"relative",height:0,zIndex:k2}),this.buttonOptions.length&&this.renderButtons(),e2.parentNode&&e2.parentNode.insertBefore(this.div,e2),f2&&(this.inputGroup=c2.g("input-group").add(this.group),c2=this.drawInput("min"),this.minDateBox=c2.dateBox,this.minLabel=c2.label,this.minInput=c2.input,c2=this.drawInput("max"),this.maxDateBox=c2.dateBox,this.maxLabel=c2.label,this.maxInput=c2.input));if(f2&&(this.setInputValue("min",a2),this.setInputValue("max",d),a2=b.scroller&&b.scroller.getUnionExtremes()||b.xAxis[0]||{},q(a2.dataMin)&&q(a2.dataMax)&&(b=b.xAxis[0].minRange||0,this.setInputExtremes("min",a2.dataMin,Math.min(a2.dataMax,this.getInputValue("max"))-b),this.setInputExtremes("max",Math.max(a2.dataMin,this.getInputValue("min"))+b,a2.dataMax)),this.inputGroup)){var g3=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach((function(b2){if(b2){var a3=b2.getBBox().width;a3&&(b2.attr({x:g3}),g3+=a3+l.inputSpacing)}}))}this.alignElements();this.rendered=true}};f.prototype.renderButtons=function(){var a2=this,d=this.buttons,b=this.options,c2=x.lang,f2=this.chart.renderer,k2=G(b.buttonTheme),g3=k2&&k2.states,n2=k2.width||28;delete k2.width;delete k2.states;this.buttonGroup=f2.g("range-selector-buttons").add(this.group);var m2=this.dropdown=r("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);t(m2,"touchstart",(function(){m2.style.fontSize="16px"}));[[y.isMS?"mouseover":"mouseenter"],[y.isMS?"mouseout":"mouseleave"],["change","click"]].forEach((function(b2){var c3=b2[0],f3=b2[1];t(m2,c3,(function(){var b3=d[a2.currentButtonIndex()];b3&&e(b3.element,f3||c3)}))}));this.zoomText=f2.label(c2&&c2.rangeSelectorZoom||"",0).attr({padding:b.buttonTheme.padding,height:b.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(b.labelStyle),k2["stroke-width"]=u(k2["stroke-width"],0));r("option",{textContent:this.zoomText.textStr,disabled:true},void 0,m2);this.buttonOptions.forEach((function(b2,c3){r("option",{textContent:b2.title||b2.text},void 0,m2);d[c3]=f2.button(b2.text,0,0,(function(d2){var e2=b2.events&&b2.events.click,f3;e2&&(f3=e2.call(b2,d2));false!==f3&&a2.clickButton(c3);a2.isActive=true}),k2,g3&&g3.hover,g3&&g3.select,g3&&g3.disabled).attr({"text-align":"center",width:n2}).add(a2.buttonGroup);b2.title&&d[c3].attr("title",b2.title)}))};f.prototype.alignElements=function(){var a2=this,d=this.buttonGroup,b=this.buttons,c2=this.chart,e2=this.group,f2=this.inputGroup,k2=this.options,g3=this.zoomText,n2=c2.options,m2=n2.exporting&&false!==n2.exporting.enabled&&n2.navigation&&n2.navigation.buttonOptions;n2=k2.buttonPosition;var p2=k2.inputPosition,q2=k2.verticalAlign,w2=function(b2,d2){return m2&&a2.titleCollision(c2)&&"top"===q2&&"right"===d2.align&&d2.y-b2.getBBox().height-12<(m2.y||0)+(m2.height||0)+c2.spacing[0]?-40:0},r2=c2.plotLeft;if(e2&&n2&&p2){var t2=n2.x-c2.spacing[3];if(d){this.positionButtons();if(!this.initialButtonGroupWidth){var x2=0;g3&&(x2+=g3.getBBox().width+5);b.forEach((function(a3,d2){x2+=a3.width;d2!==b.length-1&&(x2+=k2.buttonSpacing)}));this.initialButtonGroupWidth=x2}r2-=c2.spacing[3];this.updateButtonStates();g3=w2(d,n2);this.alignButtonGroup(g3);e2.placed=d.placed=c2.hasLoaded}d=0;f2&&(d=w2(f2,p2),"left"===p2.align?t2=r2:"right"===p2.align&&(t2=-Math.max(c2.axisOffset[1],-d)),f2.align({y:p2.y,width:f2.getBBox().width,align:p2.align,x:p2.x+t2-2},true,c2.spacingBox),f2.placed=c2.hasLoaded);this.handleCollision(d);e2.align({verticalAlign:q2},true,c2.spacingBox);f2=e2.alignAttr.translateY;d=e2.getBBox().height+20;w2=0;"bottom"===q2&&(w2=(w2=c2.legend&&c2.legend.options)&&"bottom"===w2.verticalAlign&&w2.enabled&&!w2.floating?c2.legend.legendHeight+u(w2.margin,10):0,d=d+w2-20,w2=f2-d-(k2.floating?0:k2.y)-(c2.titleOffset?c2.titleOffset[2]:0)-10);if("top"===q2)k2.floating&&(w2=0),c2.titleOffset&&c2.titleOffset[0]&&(w2=c2.titleOffset[0]),w2+=c2.margin[0]-c2.spacing[0]||0;else if("middle"===q2){if(p2.y===n2.y)w2=f2;else if(p2.y||n2.y)w2=0>p2.y||0>n2.y?w2-Math.min(p2.y,n2.y):f2-d}e2.translate(k2.x,k2.y+Math.floor(w2));n2=this.minInput;p2=this.maxInput;f2=this.dropdown;k2.inputEnabled&&n2&&p2&&(n2.style.marginTop=e2.translateY+"px",p2.style.marginTop=e2.translateY+"px");f2&&(f2.style.marginTop=e2.translateY+"px")}};f.prototype.alignButtonGroup=function(a2,d){var b=this.chart,c2=this.buttonGroup,e2=this.options.buttonPosition,f2=b.plotLeft-b.spacing[3],l=e2.x-b.spacing[3];"right"===e2.align?l+=a2-f2:"center"===e2.align&&(l-=f2/2);c2&&c2.align({y:e2.y,width:u(d,this.initialButtonGroupWidth),align:e2.align,x:l},true,b.spacingBox)};f.prototype.positionButtons=function(){var a2=this.buttons,d=this.chart,b=this.options,c2=this.zoomText,e2=d.hasLoaded?"animate":"attr",f2=b.buttonPosition,k2=d=d.plotLeft;c2&&"hidden"!==c2.visibility&&(c2[e2]({x:u(d+f2.x,d)}),k2+=f2.x+c2.getBBox().width+5);c2=0;for(f2=this.buttonOptions.length;c2<f2;++c2)if("hidden"!==a2[c2].visibility)a2[c2][e2]({x:k2}),k2+=a2[c2].width+b.buttonSpacing;else a2[c2][e2]({x:d})};f.prototype.handleCollision=function(a2){var d=this,b=this.chart,c2=this.buttonGroup,e2=this.inputGroup,f2=this.options,l=f2.buttonPosition,k2=f2.dropdown,g3=f2.inputPosition;f2=function(){var b2=0;d.buttons.forEach((function(a3){a3=a3.getBBox();a3.width>b2&&(b2=a3.width)}));return b2};var n2=function(b2){if(e2&&c2){var d2=e2.alignAttr.translateX+e2.alignOptions.x-a2+e2.getBBox().x+2,f3=e2.alignOptions.width,h=c2.alignAttr.translateX+c2.getBBox().x;return h+b2>d2&&d2+f3>h&&l.y<g3.y+e2.getBBox().height}return false},m2=function(){e2&&c2&&e2.attr({translateX:e2.alignAttr.translateX+(b.axisOffset[1]>=-a2?0:-a2),translateY:e2.alignAttr.translateY+c2.getBBox().height+10})};if(c2){if("always"===k2){this.collapseButtons(a2);n2(f2())&&m2();return}"never"===k2&&this.expandButtons()}e2&&c2?g3.align===l.align||n2(this.initialButtonGroupWidth+20)?"responsive"===k2?(this.collapseButtons(a2),n2(f2())&&m2()):m2():"responsive"===k2&&this.expandButtons():c2&&"responsive"===k2&&(this.initialButtonGroupWidth>b.plotWidth?this.collapseButtons(a2):this.expandButtons())};f.prototype.collapseButtons=function(a2){var d=this.buttons,b=this.buttonOptions,c2=this.chart,e2=this.dropdown,f2=this.options,l=this.zoomText,k2=c2.userOptions.rangeSelector&&c2.userOptions.rangeSelector.buttonTheme||{},g3=function(b2){return{text:b2?""+b2+" ▾":"▾",width:"auto",paddingLeft:u(f2.buttonTheme.paddingLeft,k2.padding,8),paddingRight:u(f2.buttonTheme.paddingRight,k2.padding,8)}};l&&l.hide();var n2=false;b.forEach((function(b2,a3){a3=d[a3];2!==a3.state?a3.hide():(a3.show(),a3.attr(g3(b2.text)),n2=true)}));n2||(e2&&(e2.selectedIndex=0),d[0].show(),d[0].attr(g3(this.zoomText&&this.zoomText.textStr)));b=f2.buttonPosition.align;this.positionButtons();"right"!==b&&"center"!==b||this.alignButtonGroup(a2,d[this.currentButtonIndex()].getBBox().width);this.showDropdown()};f.prototype.expandButtons=function(){var a2=this.buttons,d=this.buttonOptions,b=this.options,c2=this.zoomText;this.hideDropdown();c2&&c2.show();d.forEach((function(d2,c3){c3=a2[c3];c3.show();c3.attr({text:d2.text,width:b.buttonTheme.width||28,paddingLeft:u(b.buttonTheme.paddingLeft,"unset"),paddingRight:u(b.buttonTheme.paddingRight,"unset")});2>c3.state&&c3.setState(0)}));this.positionButtons()};f.prototype.currentButtonIndex=function(){var a2=this.dropdown;return a2&&0<a2.selectedIndex?a2.selectedIndex-1:0};f.prototype.showDropdown=function(){var c2=this.buttonGroup,d=this.buttons,b=this.chart,e2=this.dropdown;if(c2&&e2){var f2=c2.translateX;c2=c2.translateY;d=d[this.currentButtonIndex()].getBBox();a(e2,{left:b.plotLeft+f2+"px",top:c2+.5+"px",width:d.width+"px",height:d.height+"px"});this.hasVisibleDropdown=true}};f.prototype.hideDropdown=function(){var c2=this.dropdown;c2&&(a(c2,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=false)};f.prototype.getHeight=function(){var a2=this.options,d=this.group,b=a2.y,c2=a2.buttonPosition.y,e2=a2.inputPosition.y;if(a2.height)return a2.height;this.alignElements();a2=d?d.getBBox(true).height+13+b:0;d=Math.min(e2,c2);if(0>e2&&0>c2||0<e2&&0<c2)a2+=Math.abs(d);return a2};f.prototype.titleCollision=function(a2){return!(a2.options.title.text||a2.options.subtitle.text)};f.prototype.update=function(a2){var d=this.chart;G(true,d.options.rangeSelector,a2);this.destroy();this.init(d);this.render()};f.prototype.destroy=function(){var a2=this,d=a2.minInput,b=a2.maxInput;a2.eventsToUnbind&&(a2.eventsToUnbind.forEach((function(b2){return b2()})),a2.eventsToUnbind=void 0);m(a2.buttons);d&&(d.onfocus=d.onblur=d.onchange=null);b&&(b.onfocus=b.onblur=b.onchange=null);H(a2,(function(b2,d2){b2&&"chart"!==d2&&(b2 instanceof B?b2.destroy():b2 instanceof W.HTMLElement&&p(b2));b2!==f.prototype[d2]&&(a2[d2]=null)}),this)};return f}();k(g2.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});return g2}));I(g,"Series/XRange/XRangeSeriesDefaults.js",[g["Core/Utilities.js"]],(function(c){var g2=c.correctFloat,y=c.isNumber,A=c.isObject;return{colorByPoint:true,dataLabels:{formatter:function(){var c2=this.point.partialFill;A(c2)&&(c2=c2.amount);if(y(c2)&&0<c2)return g2(100*c2)+"%"},inside:true,verticalAlign:"middle"},tooltip:{headerFormat:'<span style="font-size: 10px">{point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0}}));I(g,"Series/XRange/XRangePoint.js",[g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2){var y=this&&this.__extends||function(){var c2=function(g3,y2){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c3,g4){c3.__proto__=g4}||function(c3,g4){for(var r in g4)g4.hasOwnProperty(r)&&(c3[r]=g4[r])};return c2(g3,y2)};return function(g3,y2){function x(){this.constructor=g3}c2(g3,y2);g3.prototype=null===y2?Object.create(y2):(x.prototype=y2.prototype,new x)}}(),A=c.series.prototype.pointClass.prototype;g2=g2.extend;c=function(c2){function g3(){var g4=null!==c2&&c2.apply(this,arguments)||this;g4.options=void 0;g4.series=void 0;return g4}y(g3,c2);g3.getColorByCategory=function(c3,g4){var t=c3.options.colors||c3.chart.options.colors;c3=g4.y%(t?t.length:c3.chart.options.chart.colorCount);return{colorIndex:c3,color:t&&t[c3]}};g3.prototype.resolveColor=function(){var c3=this.series;if(c3.options.colorByPoint&&!this.options.color){var x=g3.getColorByCategory(c3,this);c3.chart.styledMode||(this.color=x.color);this.options.colorIndex||(this.colorIndex=x.colorIndex)}else this.color||(this.color=c3.color)};g3.prototype.init=function(){A.init.apply(this,arguments);this.y||(this.y=0);return this};g3.prototype.setState=function(){A.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())};g3.prototype.getLabelConfig=function(){var c3=A.getLabelConfig.call(this),g4=this.series.yAxis.categories;c3.x2=this.x2;c3.yCategory=this.yCategory=g4&&g4[this.y];return c3};g3.prototype.isValid=function(){return"number"===typeof this.x&&"number"===typeof this.x2};return g3}(c.seriesTypes.column.prototype.pointClass);g2(c.prototype,{ttBelow:false,tooltipDateKeys:["x","x2"]});return c}));I(g,"Series/XRange/XRangeSeries.js",[g["Core/Globals.js"],g["Core/Color/Color.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"],g["Series/XRange/XRangeSeriesDefaults.js"],g["Series/XRange/XRangePoint.js"]],(function(c,g2,y,A,B,z){function C(){if(this.isXAxis){var a2=H(this.dataMax,-Number.MAX_VALUE);for(var c2=0,e2=this.series;c2<e2.length;c2++){var f=e2[c2];if(f.x2Data){var l=0;for(f=f.x2Data;l<f.length;l++){var d=f[l];if(d&&d>a2){a2=d;var b=true}}}}b&&(this.dataMax=a2)}}var x=this&&this.__extends||function(){var a2=function(c2,e2){a2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a3,c3){a3.__proto__=c3}||function(a3,c3){for(var d in c3)c3.hasOwnProperty(d)&&(a3[d]=c3[d])};return a2(c2,e2)};return function(c2,e2){function f(){this.constructor=c2}a2(c2,e2);c2.prototype=null===e2?Object.create(e2):(f.prototype=e2.prototype,new f)}}();c=c.noop;var t=g2.parse,r=y.series.prototype,a=y.seriesTypes.column,q=A.addEvent,m=A.clamp,p=A.defined;g2=A.extend;var k=A.find,e=A.isNumber,D=A.isObject,G=A.merge,H=A.pick,K=[];A=function(c2){function g3(){var a2=null!==c2&&c2.apply(this,arguments)||this;a2.data=void 0;a2.options=void 0;a2.points=void 0;return a2}x(g3,c2);g3.compose=function(a2){-1===K.indexOf(a2)&&(K.push(a2),q(a2,"afterGetSeriesExtremes",C))};g3.prototype.init=function(){c2.prototype.init.apply(this,arguments);this.options.stacking=void 0};g3.prototype.getColumnMetrics=function(){var a2=this,e2=function(){for(var d=0,b=a2.chart.series;d<b.length;d++){var c3=b[d],e3=c3.xAxis;c3.xAxis=c3.yAxis;c3.yAxis=e3}};e2();var l=c2.prototype.getColumnMetrics.call(this);e2();return l};g3.prototype.cropData=function(a2,c3,e2,d){c3=r.cropData.call(this,this.x2Data,c3,e2,d);c3.xData=a2.slice(c3.start,c3.end);return c3};g3.prototype.findPointIndex=function(a2){var c3=this.cropStart,l=this.points,d=a2.id;if(d)var b=(b=k(l,(function(b2){return b2.id===d})))?b.index:void 0;"undefined"===typeof b&&(b=(b=k(l,(function(b2){return b2.x===a2.x&&b2.x2===a2.x2&&!b2.touched})))?b.index:void 0);this.cropped&&e(b)&&e(c3)&&b>=c3&&(b-=c3);return b};g3.prototype.alignDataLabel=function(a2){var e2=a2.plotX;a2.plotX=H(a2.dlBox&&a2.dlBox.centerX,a2.plotX);c2.prototype.alignDataLabel.apply(this,arguments);a2.plotX=e2};g3.prototype.translatePoint=function(a2){var c3=this.xAxis,l=this.yAxis,d=this.columnMetrics,b=this.options,h=b.minPointLength||0,k2=(a2.shapeArgs&&a2.shapeArgs.width||0)/2,g4=this.pointXOffset=d.offset,n=H(a2.x2,a2.x+(a2.len||0)),q2=a2.plotX,w=c3.translate(n,0,0,0,1);n=Math.abs(w-q2);var u=this.chart.inverted,r2=H(b.borderWidth,1)%2/2,t2=d.offset,x2=Math.round(d.width);h&&(h-=n,0>h&&(h=0),q2-=h/2,w+=h/2);q2=Math.max(q2,-10);w=m(w,-10,c3.len+10);p(a2.options.pointWidth)&&(t2-=(Math.ceil(a2.options.pointWidth)-x2)/2,x2=Math.ceil(a2.options.pointWidth));b.pointPlacement&&e(a2.plotY)&&l.categories&&(a2.plotY=l.translate(a2.y,0,1,0,1,b.pointPlacement));b=Math.floor(Math.min(q2,w))+r2;b={x:b,y:Math.floor(a2.plotY+t2)+r2,width:Math.floor(Math.max(q2,w))+r2-b,height:x2,r:this.options.borderRadius};a2.shapeArgs=b;u?a2.tooltipPos[1]+=g4+k2:a2.tooltipPos[0]-=k2+g4-b.width/2;k2=b.x;g4=k2+b.width;0>k2||g4>c3.len?(k2=m(k2,0,c3.len),g4=m(g4,0,c3.len),w=g4-k2,a2.dlBox=G(b,{x:k2,width:g4-k2,centerX:w?w/2:null})):a2.dlBox=null;k2=a2.tooltipPos;g4=u?1:0;w=u?0:1;d=this.columnMetrics?this.columnMetrics.offset:-d.width/2;k2[g4]=u?k2[g4]+b.width/2:k2[g4]+(c3.reversed?-1:0)*b.width;k2[w]=m(k2[w]+(u?-1:1)*d,0,l.len-1);if(l=a2.partialFill)D(l)&&(l=l.amount),e(l)||(l=0),a2.partShapeArgs=G(b,{r:this.options.borderRadius}),q2=Math.max(Math.round(n*l+a2.plotX-q2),0),a2.clipRectArgs={x:c3.reversed?b.x+n-q2:b.x,y:b.y,width:q2,height:b.height}};g3.prototype.translate=function(){c2.prototype.translate.apply(this,arguments);for(var a2=0,e2=this.points;a2<e2.length;a2++)this.translatePoint(e2[a2])};g3.prototype.drawPoint=function(a2,c3){var e2=this.options,d=this.chart.renderer,b=a2.shapeType,f=a2.shapeArgs,k2=a2.partShapeArgs,g4=a2.clipRectArgs,n=e2.stacking&&!e2.borderRadius,m2=a2.state,p2=e2.states[m2||"normal"]||{},q2="undefined"===typeof m2?"attr":c3;m2=this.pointAttribs(a2,m2);p2=H(this.chart.options.chart.animation,p2.animation);var u=a2.graphic,r2=a2.partialFill;if(a2.isNull||false===a2.visible)u&&(a2.graphic=u.destroy());else{if(u)u.rect[c3](f);else a2.graphic=u=d.g("point").addClass(a2.getClassName()).add(a2.group||this.group),u.rect=d[b](G(f)).addClass(a2.getClassName()).addClass("highcharts-partfill-original").add(u);k2&&(u.partRect?(u.partRect[c3](G(k2)),u.partialClipRect[c3](G(g4))):(u.partialClipRect=d.clipRect(g4.x,g4.y,g4.width,g4.height),u.partRect=d[b](k2).addClass("highcharts-partfill-overlay").add(u).clip(u.partialClipRect)));this.chart.styledMode||(u.rect[c3](m2,p2).shadow(e2.shadow,null,n),k2&&(D(r2)||(r2={}),D(e2.partialFill)&&(r2=G(e2.partialFill,r2)),a2=r2.fill||t(m2.fill).brighten(-.3).get()||t(a2.color||this.color).brighten(-.3).get(),m2.fill=a2,u.partRect[q2](m2,p2).shadow(e2.shadow,null,n)))}};g3.prototype.drawPoints=function(){for(var a2=this.getAnimationVerb(),c3=0,e2=this.points;c3<e2.length;c3++)this.drawPoint(e2[c3],a2)};g3.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"};g3.prototype.isPointInside=function(a2){var e2=a2.shapeArgs,l=a2.plotX,d=a2.plotY;return e2?"undefined"!==typeof l&&"undefined"!==typeof d&&0<=d&&d<=this.yAxis.len&&0<=(e2.x||0)+(e2.width||0)&&l<=this.xAxis.len:c2.prototype.isPointInside.apply(this,arguments)};g3.defaultOptions=G(a.defaultOptions,B);return g3}(a);g2(A.prototype,{pointClass:z,cropShoulder:1,getExtremesFromAll:true,parallelArrays:["x","x2","y"],requireSorting:false,type:"xrange",animate:r.animate,autoIncrement:c,buildKDTree:c});y.registerSeriesType("xrange",A);return A}));I(g,"Series/Gantt/GanttPoint.js",[g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2){var y=this&&this.__extends||function(){var c2=function(g3,y2){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c3,g4){c3.__proto__=g4}||function(c3,g4){for(var r in g4)g4.hasOwnProperty(r)&&(c3[r]=g4[r])};return c2(g3,y2)};return function(g3,y2){function x(){this.constructor=g3}c2(g3,y2);g3.prototype=null===y2?Object.create(y2):(x.prototype=y2.prototype,new x)}}(),A=g2.pick;return function(c2){function g3(){var g4=null!==c2&&c2.apply(this,arguments)||this;g4.options=void 0;g4.series=void 0;return g4}y(g3,c2);g3.setGanttPointAliases=function(c3){function g4(g5,r){"undefined"!==typeof r&&(c3[g5]=r)}g4("x",A(c3.start,c3.x));g4("x2",A(c3.end,c3.x2));g4("partialFill",A(c3.completed,c3.partialFill))};g3.prototype.applyOptions=function(y2,x){y2=c2.prototype.applyOptions.call(this,y2,x);g3.setGanttPointAliases(y2);return y2};g3.prototype.isValid=function(){return("number"===typeof this.start||"number"===typeof this.x)&&("number"===typeof this.end||"number"===typeof this.x2||this.milestone)};return g3}(c.seriesTypes.xrange.prototype.pointClass)}));I(g,"Core/Axis/BrokenAxis.js",[g["Core/Axis/Stacking/StackItem.js"],g["Core/Utilities.js"]],(function(c,g2){var y=g2.addEvent,A=g2.find,B=g2.fireEvent,z=g2.isArray,C=g2.isNumber,x=g2.pick,t;(function(g3){function a(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,false)}function q(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=false)}function m(){var a2=this.brokenAxis;if(a2&&a2.hasBreaks){for(var c2=this.tickPositions,e2=this.tickPositions.info,f=[],l=0;l<c2.length;l++)a2.isInAnyBreak(c2[l])||f.push(c2[l]);this.tickPositions=f;this.tickPositions.info=e2}}function p(){this.brokenAxis||(this.brokenAxis=new K(this))}function k(){var a2=this.options.connectNulls,c2=this.points,e2=this.xAxis,f=this.yAxis;if(this.isDirty)for(var l=c2.length;l--;){var d=c2[l],b=!(null===d.y&&false===a2)&&(e2&&e2.brokenAxis&&e2.brokenAxis.isInAnyBreak(d.x,true)||f&&f.brokenAxis&&f.brokenAxis.isInAnyBreak(d.y,true));d.visible=b?false:false!==d.options.visible}}function e(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,x(this.pointArrayMap,["y"]))}function r(a2,c2){var e2=this,f=e2.points,l,d,b,h;if(a2&&a2.brokenAxis&&a2.brokenAxis.hasBreaks){var k2=a2.brokenAxis;c2.forEach((function(c3){l=k2&&k2.breakArray||[];d=a2.isXAxis?a2.min:x(e2.options.threshold,a2.min);f.forEach((function(e3){h=x(e3["stack"+c3.toUpperCase()],e3[c3]);l.forEach((function(c4){if(C(d)&&C(h)){b=false;if(d<c4.from&&h>c4.to||d>c4.from&&h<c4.from)b="pointBreak";else if(d<c4.from&&h>c4.from&&h<c4.to||d>c4.from&&h>c4.to&&h<c4.from)b="pointInBreak";b&&B(a2,b,{point:e3,brk:c4})}}))}))}))}}function t2(){var a2=this.currentDataGrouping,e2=a2&&a2.gapSize;a2=this.points.slice();var k2=this.yAxis,f=this.options.gapSize,l=a2.length-1,d;if(f&&0<l)for("value"!==this.options.gapUnit&&(f*=this.basePointRange),e2&&e2>f&&e2>=this.basePointRange&&(f=e2),d=void 0;l--;)d&&false!==d.visible||(d=a2[l+1]),e2=a2[l],false!==d.visible&&false!==e2.visible&&(d.x-e2.x>f&&(d=(e2.x+d.x)/2,a2.splice(l+1,0,{isNull:true,x:d}),k2.stacking&&this.options.stacking&&(d=k2.stacking.stacks[this.stackKey][d]=new c(k2,k2.options.stackLabels,false,d,this.stack),d.total=0)),d=e2);return this.getGraphPath(a2)}var H=[];g3.compose=function(c2,g4){-1===H.indexOf(c2)&&(H.push(c2),c2.keepProps.push("brokenAxis"),y(c2,"init",p),y(c2,"afterInit",a),y(c2,"afterSetTickPositions",m),y(c2,"afterSetOptions",q));if(-1===H.indexOf(g4)){H.push(g4);var n=g4.prototype;n.drawBreaks=r;n.gappedPath=t2;y(g4,"afterGeneratePoints",k);y(g4,"afterRender",e)}return c2};var K=function(){function a2(a3){this.hasBreaks=false;this.axis=a3}a2.isInBreak=function(a3,c2){var e2=a3.repeat||Infinity,k2=a3.from,d=a3.to-a3.from;c2=c2>=k2?(c2-k2)%e2:e2-(k2-c2)%e2;return a3.inclusive?c2<=d:c2<d&&0!==c2};a2.lin2Val=function(c2){var e2=this.brokenAxis;e2=e2&&e2.breakArray;if(!e2||!C(c2))return c2;var f;for(f=0;f<e2.length;f++){var k2=e2[f];if(k2.from>=c2)break;else k2.to<c2?c2+=k2.len:a2.isInBreak(k2,c2)&&(c2+=k2.len)}return c2};a2.val2Lin=function(c2){var e2=this.brokenAxis;e2=e2&&e2.breakArray;if(!e2||!C(c2))return c2;var f=c2,k2;for(k2=0;k2<e2.length;k2++){var d=e2[k2];if(d.to<=c2)f-=d.len;else if(d.from>=c2)break;else if(a2.isInBreak(d,c2)){f-=c2-d.from;break}}return f};a2.prototype.findBreakAt=function(a3,c2){return A(c2,(function(c3){return c3.from<a3&&a3<c3.to}))};a2.prototype.isInAnyBreak=function(c2,e2){var f=this.axis,k2=f.options.breaks||[],d=k2.length,b;if(d&&C(c2)){for(;d--;)if(a2.isInBreak(k2[d],c2)){var h=true;b||(b=x(k2[d].showPoints,!f.isXAxis))}var g4=h&&e2?h&&!b:h}return g4};a2.prototype.setBreaks=function(c2,e2){var f=this,k2=f.axis,d=z(c2)&&!!c2.length;k2.isDirty=f.hasBreaks!==d;f.hasBreaks=d;k2.options.breaks=k2.userOptions.breaks=c2;k2.forceRedraw=true;k2.series.forEach((function(b){b.isDirty=true}));d||k2.val2lin!==a2.val2Lin||(delete k2.val2lin,delete k2.lin2val);d&&(k2.userOptions.ordinal=false,k2.lin2val=a2.lin2Val,k2.val2lin=a2.val2Lin,k2.setExtremes=function(b,a3,d2,c3,e3){if(f.hasBreaks){for(var h=this.options.breaks||[],l;l=f.findBreakAt(b,h);)b=l.to;for(;l=f.findBreakAt(a3,h);)a3=l.from;a3<b&&(a3=b)}k2.constructor.prototype.setExtremes.call(this,b,a3,d2,c3,e3)},k2.setAxisTranslation=function(){k2.constructor.prototype.setAxisTranslation.call(this);f.unitLength=void 0;if(f.hasBreaks){var b=k2.options.breaks||[],d2=[],c3=[],e3=x(k2.pointRangePadding,0),l=0,g4,m2=k2.userMin||k2.min,n=k2.userMax||k2.max,p2;b.forEach((function(b2){g4=b2.repeat||Infinity;C(m2)&&C(n)&&(a2.isInBreak(b2,m2)&&(m2+=b2.to%g4-m2%g4),a2.isInBreak(b2,n)&&(n-=n%g4-b2.from%g4))}));b.forEach((function(b2){r2=b2.from;g4=b2.repeat||Infinity;if(C(m2)&&C(n)){for(;r2-g4>m2;)r2-=g4;for(;r2<m2;)r2+=g4;for(p2=r2;p2<n;p2+=g4)d2.push({value:p2,move:"in"}),d2.push({value:p2+b2.to-b2.from,move:"out",size:b2.breakSize})}}));d2.sort((function(b2,a3){return b2.value===a3.value?("in"===b2.move?0:1)-("in"===a3.move?0:1):b2.value-a3.value}));var q2=0;var r2=m2;d2.forEach((function(b2){q2+="in"===b2.move?1:-1;1===q2&&"in"===b2.move&&(r2=b2.value);0===q2&&C(r2)&&(c3.push({from:r2,to:b2.value,len:b2.value-r2-(b2.size||0)}),l+=b2.value-r2-(b2.size||0))}));f.breakArray=c3;C(m2)&&C(n)&&C(k2.min)&&(f.unitLength=n-m2-l+e3,B(k2,"afterBreaks"),k2.staticScale?k2.transA=k2.staticScale:f.unitLength&&(k2.transA*=(n-k2.min+e3)/f.unitLength),e3&&(k2.minPixelPadding=k2.transA*(k2.minPointOffset||0)),k2.min=m2,k2.max=n)}});x(e2,true)&&k2.chart.redraw()};return a2}();g3.Additions=K})(t||(t={}));return t}));I(g,"Core/Axis/GridAxis.js",[g["Core/Axis/Axis.js"],g["Core/Axis/AxisDefaults.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){function B(b2,a2){var d2={width:0,height:0};a2.forEach((function(a3){a3=b2[a3];if(A.isObject(a3,true)){var c2=A.isObject(a3.label,true)?a3.label:{};a3=c2.getBBox?c2.getBBox().height:0;c2.textStr&&!h(c2.textPxLength)&&(c2.textPxLength=c2.getBBox().width);var e2=h(c2.textPxLength)?Math.round(c2.textPxLength):0;c2.textStr&&(e2=Math.round(c2.getBBox().width));d2.height=Math.max(a3,d2.height);d2.width=Math.max(e2,d2.width)}}));"treegrid"===this.options.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode&&(d2.width+=this.options.labels.indentation*((this.treeGrid.mapOfPosToGridNode[-1].height||0)-1));return d2}function z(){var b2=this.grid;(b2&&b2.columns||[]).forEach((function(b3){b3.getOffset()}))}function C(b2){if(true===(this.options.grid||{}).enabled){var a2=this.axisTitle,d2=this.height,c2=this.horiz,e2=this.left,f2=this.offset,h2=this.opposite,k2=this.options,l2=this.top,g3=this.width,m2=this.tickSize(),n2=a2&&a2.getBBox().width,p2=k2.title.x,q2=k2.title.y,r2=E(k2.title.margin,c2?5:10);a2=this.chart.renderer.fontMetrics(k2.title.style.fontSize,a2).f;m2=(c2?l2+d2:e2)+(c2?1:-1)*(h2?-1:1)*(m2?m2[0]/2:0)+(this.side===O.bottom?a2:0);b2.titlePosition.x=c2?e2-(n2||0)/2-r2+p2:m2+(h2?g3:0)+f2+p2;b2.titlePosition.y=c2?m2-(h2?d2:0)+(h2?a2:-a2)/2+f2+q2:l2-r2+q2}}function x(){var b2=this.chart,a2=this.options.grid;a2=void 0===a2?{}:a2;var d2=this.userOptions;if(a2.enabled){var e2=this.options;e2.labels.align=E(e2.labels.align,"center");this.categories||(e2.showLastLabel=false);this.labelRotation=0;e2.labels.rotation=0}if(a2.columns){e2=this.grid.columns=[];for(var f2=this.grid.columnIndex=0;++f2<a2.columns.length;){var h2=v(d2,a2.columns[a2.columns.length-f2-1],{linkedTo:0,type:"category",scrollbar:{enabled:false}});delete h2.grid.columns;h2=new c(this.chart,h2);h2.grid.isColumn=true;h2.grid.columnIndex=f2;l(b2.axes,h2);l(b2[this.coll],h2);e2.push(h2)}}}function t(){var b2=this.grid,a2=this.options;if(true===(a2.grid||{}).enabled){var d2=this.min||0,c2=this.max||0;this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions);this.rightWall&&this.rightWall.destroy();if(this.grid&&this.grid.isOuterAxis()&&this.axisLine){var e2=a2.lineWidth;if(e2){e2=this.getLinePath(e2);var f2=e2[0],h2=e2[1],k2=((this.tickSize("tick")||[1])[0]-1)*(this.side===O.top||this.side===O.left?-1:1);"M"===f2[0]&&"L"===h2[0]&&(this.horiz?(f2[2]+=k2,h2[2]+=k2):(f2[1]+=k2,h2[1]+=k2));!this.horiz&&this.chart.marginRight&&(f2=[f2,["L",this.left,f2[2]||0]],k2=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(c2+this.tickmarkOffset)],h2=[["M",h2[1]||0,this.toPixels(c2+this.tickmarkOffset)],k2],this.grid.upperBorder||0===d2%1||(this.grid.upperBorder=this.grid.renderBorder(f2)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:a2.lineColor,"stroke-width":a2.lineWidth}),this.grid.upperBorder.animate({d:f2})),this.grid.lowerBorder||0===c2%1||(this.grid.lowerBorder=this.grid.renderBorder(h2)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:a2.lineColor,"stroke-width":a2.lineWidth}),this.grid.lowerBorder.animate({d:h2})));this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:a2.lineColor,"stroke-width":a2.lineWidth}),this.grid.axisLineExtra.animate({d:e2})):this.grid.axisLineExtra=this.grid.renderBorder(e2);this.axisLine[this.showAxis?"show":"hide"]()}}(b2&&b2.columns||[]).forEach((function(b3){return b3.render()}));if(!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)){b2=this.tickmarkOffset;a2=this.tickPositions[this.tickPositions.length-1];e2=this.tickPositions[0];for(f2=h2=void 0;(h2=this.hiddenLabels.pop())&&h2.element;)h2.show();for(;(f2=this.hiddenMarks.pop())&&f2.element;)f2.show();(h2=this.ticks[e2].label)&&(d2-e2>b2?this.hiddenLabels.push(h2.hide()):h2.show());(h2=this.ticks[a2].label)&&(a2-c2>b2?this.hiddenLabels.push(h2.hide()):h2.show());(d2=this.ticks[a2].mark)&&a2-c2<b2&&0<a2-c2&&this.ticks[a2].isLast&&this.hiddenMarks.push(d2.hide())}}}function r(){var b2=this.tickPositions&&this.tickPositions.info,a2=this.options,d2=this.userOptions.labels||{};(a2.grid||{}).enabled&&(this.horiz?(this.series.forEach((function(b3){b3.options.pointRange=0})),b2&&a2.dateTimeLabelFormats&&a2.labels&&!f(d2.align)&&(false===a2.dateTimeLabelFormats[b2.unitName].range||1<b2.count)&&(a2.labels.align="left",f(d2.x)||(a2.labels.x=3))):"treegrid"!==this.options.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function a(b2){var a2=this.options;b2=b2.userOptions;var d2=a2&&A.isObject(a2.grid,true)?a2.grid:{};if(true===d2.enabled){var c2=v(true,{className:"highcharts-grid-axis "+(b2.className||""),dateTimeLabelFormats:{hour:{list:["%H:%M","%H"]},day:{list:["%A, %e. %B","%a, %e. %b","%E"]},week:{list:["Week %W","W%W"]},month:{list:["%B","%b","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"13px"}},margin:0,title:{text:null,reserveSpace:false,rotation:0},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},b2);"xAxis"===this.coll&&(f(b2.linkedTo)&&!f(b2.tickPixelInterval)&&(c2.tickPixelInterval=350),f(b2.tickPixelInterval)||!f(b2.linkedTo)||f(b2.tickPositioner)||f(b2.tickInterval)||(c2.tickPositioner=function(b3,a3){var d3=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(d3){for(var e2=c2.units||[],f2=void 0,k2=1,l2="year",g3=0;g3<e2.length;g3++){var m2=e2[g3];if(m2&&m2[0]===d3.unitName){f2=g3;break}}(e2=h(f2)&&e2[f2+1])?(l2=e2[0]||"year",k2=(k2=e2[1])&&k2[0]||1):"year"===d3.unitName&&(k2=10*d3.count);d3=J[l2];this.tickInterval=d3*k2;return this.chart.time.getTimeTicks({unitRange:d3,count:k2,unitName:l2},b3,a3,this.options.startOfWeek)}}));v(true,this.options,c2);this.horiz&&(a2.minPadding=E(b2.minPadding,0),a2.maxPadding=E(b2.maxPadding,0));h(a2.grid.borderWidth)&&(a2.tickWidth=a2.lineWidth=d2.borderWidth)}}function q(b2){b2=(b2=b2.userOptions)&&b2.grid||{};var a2=b2.columns;b2.enabled&&a2&&v(true,this.options,a2[a2.length-1])}function m(){(this.grid.columns||[]).forEach((function(b2){return b2.setScale()}))}function p(a2){var d2=g2.defaultLeftAxisOptions,c2=this.horiz,e2=this.maxLabelDimensions,f2=this.options.grid;f2=void 0===f2?{}:f2;f2.enabled&&e2&&(d2=2*Math.abs(d2.labels.x),c2=c2?f2.cellHeight||d2+e2.height:d2+e2.width,b(a2.tickSize)?a2.tickSize[0]=c2:a2.tickSize=[c2,0])}function k(){this.axes.forEach((function(b2){(b2.grid&&b2.grid.columns||[]).forEach((function(b3){b3.setAxisSize();b3.setAxisTranslation()}))}))}function e(b2){var a2=this.grid;(a2.columns||[]).forEach((function(a3){return a3.destroy(b2.keepEvents)}));a2.columns=void 0}function D(b2){b2=b2.userOptions||{};var a2=b2.grid||{};a2.enabled&&f(a2.borderColor)&&(b2.tickColor=b2.lineColor=a2.borderColor);this.grid||(this.grid=new L(this));this.hiddenLabels=[];this.hiddenMarks=[]}function G(b2){var a2=this.label,d2=this.axis,c2=d2.reversed,e2=d2.chart,f2=d2.options.grid||{},k2=d2.options.labels,l2=k2.align,g3=O[d2.side],m2=b2.tickmarkOffset,n2=d2.tickPositions,p2=this.pos-m2;n2=h(n2[b2.index+1])?n2[b2.index+1]-m2:(d2.max||0)+m2;var q2=d2.tickSize("tick");m2=q2?q2[0]:0;q2=q2?q2[1]/2:0;if(true===f2.enabled){if("top"===g3){f2=d2.top+d2.offset;var r2=f2-m2}else"bottom"===g3?(r2=e2.chartHeight-d2.bottom+d2.offset,f2=r2+m2):(f2=d2.top+d2.len-(d2.translate(c2?n2:p2)||0),r2=d2.top+d2.len-(d2.translate(c2?p2:n2)||0));"right"===g3?(g3=e2.chartWidth-d2.right+d2.offset,c2=g3+m2):"left"===g3?(c2=d2.left+d2.offset,g3=c2-m2):(g3=Math.round(d2.left+(d2.translate(c2?n2:p2)||0))-q2,c2=Math.min(Math.round(d2.left+(d2.translate(c2?p2:n2)||0))-q2,d2.left+d2.len));this.slotWidth=c2-g3;b2.pos.x="left"===l2?g3:"right"===l2?c2:g3+(c2-g3)/2;b2.pos.y=r2+(f2-r2)/2;e2=e2.renderer.fontMetrics(k2.style.fontSize,a2&&a2.element);a2=a2?a2.getBBox().height:0;k2.useHTML?b2.pos.y+=e2.b+-(a2/2):(a2=Math.round(a2/e2.h),b2.pos.y+=(e2.b-(e2.h-e2.f))/2+-((a2-1)*e2.h/2));b2.pos.x+=d2.horiz&&k2.x||0}}function H(b2){var a2=b2.axis,c2=b2.value;if(a2.options.grid&&a2.options.grid.enabled){var e2=a2.tickPositions,f2=(a2.linkedParent||a2).series[0],h2=c2===e2[0];e2=c2===e2[e2.length-1];var k2=f2&&d(f2.options.data,(function(b3){return b3[a2.isXAxis?"x":"y"]===c2})),l2=void 0;k2&&f2.is("gantt")&&(l2=v(k2),y.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(l2));b2.isFirst=h2;b2.isLast=e2;b2.point=l2}}function K(){var b2=this.options,a2=this.categories,d2=this.tickPositions,c2=d2[0],e2=d2[d2.length-1],f2=this.linkedParent&&this.linkedParent.min||this.min,h2=this.linkedParent&&this.linkedParent.max||this.max,k2=this.tickInterval;true!==(b2.grid||{}).enabled||a2||!this.horiz&&!this.isLinked||(c2<f2&&c2+k2>f2&&!b2.startOnTick&&(d2[0]=f2),e2>h2&&e2-k2<h2&&!b2.endOnTick&&(d2[d2.length-1]=h2))}function u(b2){var a2=this.options.grid;return true===(void 0===a2?{}:a2).enabled&&this.categories?this.tickInterval:b2.apply(this,Array.prototype.slice.call(arguments,1))}var n=y.dateFormats,w=A.addEvent,f=A.defined,l=A.erase,d=A.find,b=A.isArray,h=A.isNumber,v=A.merge,E=A.pick,J=A.timeUnits,M=A.wrap,O;(function(b2){b2[b2.top=0]="top";b2[b2.right=1]="right";b2[b2.bottom=2]="bottom";b2[b2.left=3]="left"})(O||(O={}));var I2=[],L=function(){function b2(b3){this.axis=b3}b2.prototype.isOuterAxis=function(){var b3=this.axis,a2=b3.grid.columnIndex,d2=b3.linkedParent&&b3.linkedParent.grid.columns||b3.grid.columns,c2=a2?b3.linkedParent:b3,e2=-1,f2=0;(b3.chart[b3.coll]||[]).forEach((function(a3,d3){a3.side!==b3.side||a3.options.isInternal||(f2=d3,a3===c2&&(e2=d3))}));return f2===e2&&(h(a2)?d2.length===a2:true)};b2.prototype.renderBorder=function(b3){var a2=this.axis,d2=a2.chart.renderer,c2=a2.options;b3=d2.path(b3).addClass("highcharts-axis-line").add(a2.axisBorder);d2.styledMode||b3.attr({stroke:c2.lineColor,"stroke-width":c2.lineWidth,zIndex:7});return b3};return b2}();n.E=function(b2){return this.dateFormat("%a",b2,true).charAt(0)};n.W=function(b2){var a2=this,d2=new this.Date(b2);["Hours","Milliseconds","Minutes","Seconds"].forEach((function(b3){a2.set(b3,d2,0)}));var c2=(this.get("Day",d2)+6)%7;b2=new this.Date(d2.valueOf());this.set("Date",b2,this.get("Date",d2)-c2+3);c2=new this.Date(this.get("FullYear",b2),0,1);4!==this.get("Day",c2)&&(this.set("Month",d2,0),this.set("Date",d2,1+(11-this.get("Day",c2))%7));return(1+Math.floor((b2.valueOf()-c2.valueOf())/6048e5)).toString()};return{compose:function(b2,d2,c2){-1===I2.indexOf(b2)&&(I2.push(b2),b2.keepProps.push("grid"),b2.prototype.getMaxLabelDimensions=B,M(b2.prototype,"unsquish",u),w(b2,"init",D),w(b2,"afterGetOffset",z),w(b2,"afterGetTitlePosition",C),w(b2,"afterInit",x),w(b2,"afterRender",t),w(b2,"afterSetAxisTranslation",r),w(b2,"afterSetOptions",a),w(b2,"afterSetOptions",q),w(b2,"afterSetScale",m),w(b2,"afterTickSize",p),w(b2,"trimTicks",K),w(b2,"destroy",e));-1===I2.indexOf(d2)&&w(d2,"afterSetChartSize",k);-1===I2.indexOf(c2)&&(w(c2,"afterGetLabelPosition",G),w(c2,"labelFormat",H));return b2}}}));I(g,"Gantt/Tree.js",[g["Core/Utilities.js"]],(function(c){var g2=c.extend,y=c.isNumber,A=c.pick,B=function(c2,g3){var t=c2.reduce((function(c3,a){var g4=A(a.parent,"");"undefined"===typeof c3[g4]&&(c3[g4]=[]);c3[g4].push(a);return c3}),{});Object.keys(t).forEach((function(c3,a){var q=t[c3];""!==c3&&-1===g3.indexOf(c3)&&(q.forEach((function(c4){a[""].push(c4)})),delete a[c3])}));return t},z=function(c2,x,t,r,a,q){var m=0,p=0,k=q&&q.after,e=q&&q.before;x={data:r,depth:t-1,id:c2,level:t,parent:x};var D,G;"function"===typeof e&&e(x,q);e=(a[c2]||[]).map((function(e2){var k2=z(e2.id,c2,t+1,e2,a,q),g3=e2.start;e2=true===e2.milestone?g3:e2.end;D=!y(D)||g3<D?g3:D;G=!y(G)||e2>G?e2:G;m=m+1+k2.descendants;p=Math.max(k2.height+1,p);return k2}));r&&(r.start=A(r.start,D),r.end=A(r.end,G));g2(x,{children:e,descendants:m,height:p});"function"===typeof k&&k(x,q);return x};return{getListOfParents:B,getNode:z,getTree:function(c2,g3){var t=c2.map((function(c3){return c3.id}));c2=B(c2,t);return z("",null,1,null,c2,g3)}}}));I(g,"Core/Axis/TreeGrid/TreeGridTick.js",[g["Core/Utilities.js"]],(function(c){function g2(){this.treeGrid||(this.treeGrid=new q(this))}function y(a2,c2){a2=a2.treeGrid;var k=!a2.labelIcon,e=c2.renderer,g3=c2.xy,m=c2.options,p=m.width||0,q2=m.height||0,r2=g3.x-p/2-(m.padding||0);g3=g3.y-q2/2;var n=c2.collapsed?90:180,w=c2.show&&x(g3),f=a2.labelIcon;f||(a2.labelIcon=f=e.path(e.symbols[m.type](m.x||0,m.y||0,p,q2)).addClass("highcharts-label-icon").add(c2.group));f[w?"show":"hide"]();e.styledMode||f.attr({cursor:"pointer",fill:t(c2.color,"#666666"),"stroke-width":1,stroke:m.lineColor,strokeWidth:m.lineWidth||0});f[k?"attr":"animate"]({translateX:r2,translateY:g3,rotation:n})}function A(a2,c2,k,e,g3,q2,r2,y2,u){var m=t(this.options&&this.options.labels,q2);q2=this.pos;var p=this.axis,f="treegrid"===p.options.type;a2=a2.apply(this,[c2,k,e,g3,m,r2,y2,u]);f&&(c2=m&&C(m.symbol,true)?m.symbol:{},m=m&&x(m.indentation)?m.indentation:0,q2=(q2=(p=p.treeGrid.mapOfPosToGridNode)&&p[q2])&&q2.depth||1,a2.x+=(c2.width||0)+2*(c2.padding||0)+(q2-1)*m);return a2}function B(a2){var c2=this,k=c2.pos,e=c2.axis,g3=c2.label,m=e.treeGrid.mapOfPosToGridNode,q2=e.options,r2=t(c2.options&&c2.options.labels,q2&&q2.labels),u=r2&&C(r2.symbol,true)?r2.symbol:{},n=(m=m&&m[k])&&m.depth;q2="treegrid"===q2.type;var w=-1<e.tickPositions.indexOf(k);k=e.chart.styledMode;q2&&m&&g3&&g3.element&&g3.addClass("highcharts-treegrid-node-level-"+n);a2.apply(c2,Array.prototype.slice.call(arguments,1));q2&&g3&&g3.element&&m&&m.descendants&&0<m.descendants&&(e=e.treeGrid.isCollapsed(m),y(c2,{color:!k&&g3.styles&&g3.styles.color||"",collapsed:e,group:g3.parentGroup,options:u,renderer:g3.renderer,show:w,xy:g3.xy}),u="highcharts-treegrid-node-"+(e?"expanded":"collapsed"),g3.addClass("highcharts-treegrid-node-"+(e?"collapsed":"expanded")).removeClass(u),k||g3.css({cursor:"pointer"}),[g3,c2.treeGrid.labelIcon].forEach((function(a3){a3&&!a3.attachedTreeGridEvents&&(z(a3.element,"mouseover",(function(){g3.addClass("highcharts-treegrid-node-active");g3.renderer.styledMode||g3.css({textDecoration:"underline"})})),z(a3.element,"mouseout",(function(){var a4=C(r2.style)?r2.style:{};g3.removeClass("highcharts-treegrid-node-active");g3.renderer.styledMode||g3.css({textDecoration:a4.textDecoration})})),z(a3.element,"click",(function(){c2.treeGrid.toggleCollapse()})),a3.attachedTreeGridEvents=true)})))}var z=c.addEvent,C=c.isObject,x=c.isNumber,t=c.pick,r=c.wrap,a=[],q=function(){function c2(a2){this.tick=a2}c2.compose=function(c3){-1===a.indexOf(c3)&&(a.push(c3),z(c3,"init",g2),r(c3.prototype,"getLabelPosition",A),r(c3.prototype,"renderLabel",B),c3.prototype.collapse=function(a2){this.treeGrid.collapse(a2)},c3.prototype.expand=function(a2){this.treeGrid.expand(a2)},c3.prototype.toggleCollapse=function(a2){this.treeGrid.toggleCollapse(a2)})};c2.prototype.collapse=function(a2){var c3=this.tick,e=c3.axis,g3=e.brokenAxis;g3&&e.treeGrid.mapOfPosToGridNode&&(c3=e.treeGrid.collapse(e.treeGrid.mapOfPosToGridNode[c3.pos]),g3.setBreaks(c3,t(a2,true)))};c2.prototype.destroy=function(){this.labelIcon&&this.labelIcon.destroy()};c2.prototype.expand=function(a2){var c3=this.tick,e=c3.axis,g3=e.brokenAxis;g3&&e.treeGrid.mapOfPosToGridNode&&(c3=e.treeGrid.expand(e.treeGrid.mapOfPosToGridNode[c3.pos]),g3.setBreaks(c3,t(a2,true)))};c2.prototype.toggleCollapse=function(a2){var c3=this.tick,e=c3.axis,g3=e.brokenAxis;g3&&e.treeGrid.mapOfPosToGridNode&&(c3=e.treeGrid.toggleCollapse(e.treeGrid.mapOfPosToGridNode[c3.pos]),g3.setBreaks(c3,t(a2,true)))};return c2}();return q}));I(g,"Series/TreeUtilities.js",[g["Core/Color/Color.js"],g["Core/Utilities.js"]],(function(c,g2){function y(c2,a){var g3=a.before,m=a.idRoot,p=a.mapIdToNode[m],k=a.points[c2.i],e=k&&k.options||{},r=[],x2=0;c2.levelDynamic=c2.level-(false!==a.levelIsConstant?0:p.level);c2.name=t(k&&k.name,"");c2.visible=m===c2.id||true===a.visible;"function"===typeof g3&&(c2=g3(c2,a));c2.children.forEach((function(e2,k2){var g4=A({},a);A(g4,{index:k2,siblings:c2.children.length,visible:c2.visible});e2=y(e2,g4);r.push(e2);e2.visible&&(x2+=e2.val)}));g3=t(e.value,x2);c2.visible=0<=g3&&(0<x2||c2.visible);c2.children=r;c2.childrenTotal=x2;c2.isLeaf=c2.visible&&!x2;c2.val=g3;return c2}var A=g2.extend,B=g2.isArray,z=g2.isNumber,C=g2.isObject,x=g2.merge,t=g2.pick;return{getColor:function(g3,a){var q=a.index,m=a.mapOptionsToLevel,p=a.parentColor,k=a.parentColorIndex,e=a.series,r=a.colors,x2=a.siblings,y2=e.points,z2=e.chart.options.chart,u;if(g3){y2=y2[g3.i];g3=m[g3.level]||{};if(m=y2&&g3.colorByPoint){var n=y2.index%(r?r.length:z2.colorCount);var w=r&&r[n]}if(!e.chart.styledMode){r=y2&&y2.options.color;z2=g3&&g3.color;if(u=p)u=(u=g3&&g3.colorVariation)&&"brightness"===u.key&&q&&x2?c.parse(p).brighten(q/x2*u.to).get():p;u=t(r,z2,w,u,e.color)}var f=t(y2&&y2.options.colorIndex,g3&&g3.colorIndex,n,k,a.colorIndex)}return{color:u,colorIndex:f}},getLevelOptions:function(c2){var a={};if(C(c2)){var g3=z(c2.from)?c2.from:1;var m=c2.levels;var p={};var k=C(c2.defaults)?c2.defaults:{};B(m)&&(p=m.reduce((function(a2,c3){if(C(c3)&&z(c3.level)){var e=x({},c3);var m2=t(e.levelIsConstant,k.levelIsConstant);delete e.levelIsConstant;delete e.level;c3=c3.level+(m2?0:g3-1);C(a2[c3])?x(true,a2[c3],e):a2[c3]=e}return a2}),{}));m=z(c2.to)?c2.to:1;for(c2=0;c2<=m;c2++)a[c2]=x({},k,C(p[c2])?p[c2]:{})}return a},setTreeValues:y,updateRootId:function(c2){if(C(c2)){var a=C(c2.options)?c2.options:{};a=t(c2.rootNode,a.rootId,"");C(c2.userOptions)&&(c2.userOptions.rootId=a);c2.rootNode=a}return a}}}));I(g,"Core/Axis/TreeGrid/TreeGridAxis.js",[g["Core/Axis/BrokenAxis.js"],g["Core/Axis/GridAxis.js"],g["Gantt/Tree.js"],g["Core/Axis/TreeGrid/TreeGridTick.js"],g["Series/TreeUtilities.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z){function C(a2,b){var d=a2.collapseEnd||0;a2=a2.collapseStart||0;d>=b&&(a2-=.5);return{from:a2,to:d,showPoints:false}}function x(a2,b,c2){var d=[],e2=[],f2={},h="boolean"===typeof b?b:false,g3={},l2=-1;a2=y.getTree(a2,{after:function(b2){b2=g3[b2.pos];var a3=0,d2=0;b2.children.forEach((function(b3){d2+=(b3.descendants||0)+1;a3=Math.max((b3.height||0)+1,a3)}));b2.descendants=d2;b2.height=a3;b2.collapsed&&e2.push(b2)},before:function(b2){var a3=G(b2.data,true)?b2.data:{},c3=H(a3.name)?a3.name:"",e3=f2[b2.parent];e3=G(e3,true)?g3[e3.pos]:null;var m2=function(b3){return b3.name===c3},n2;h&&G(e3,true)&&(n2=k(e3.children,m2))?(m2=n2.pos,n2.nodes.push(b2)):m2=l2++;g3[m2]||(g3[m2]=n2={depth:e3?e3.depth+1:0,name:c3,id:a3.id,nodes:[b2],children:[],pos:m2},-1!==m2&&d.push(c3),G(e3,true)&&e3.children.push(n2));H(b2.id)&&(f2[b2.id]=b2);n2&&true===a3.collapsed&&(n2.collapsed=true);b2.pos=m2}});g3=function(b2,a3){var d2=function(b3,c3,e3){var f3=c3+(-1===c3?0:a3-1),h2=(f3-c3)/2,k2=c3+h2;b3.nodes.forEach((function(b4){var a4=b4.data;G(a4,true)&&(a4.y=c3+(a4.seriesIndex||0),delete a4.seriesIndex);b4.pos=k2}));e3[k2]=b3;b3.pos=k2;b3.tickmarkOffset=h2+.5;b3.collapseStart=f3+.5;b3.children.forEach((function(b4){d2(b4,f3+1,e3);f3=(b4.collapseEnd||0)-.5}));b3.collapseEnd=f3+.5;return e3};return d2(b2["-1"],-1,{})}(g3,c2);return{categories:d,mapOfIdToNode:f2,mapOfPosToGridNode:g3,collapsedNodes:e2,tree:a2}}function t(a2){a2.target.axes.filter((function(b){return"treegrid"===b.options.type})).forEach((function(b){var d=b.options||{},c2=d.labels,e2=d.uniqueNames;d=d.max;var f2=0;if(!b.treeGrid.mapOfPosToGridNode||b.series.some((function(b2){return!b2.hasRendered||b2.isDirtyData||b2.isDirty}))){var k2=b.series.reduce((function(b2,a3){a3.visible&&((a3.options.data||[]).forEach((function(d2){a3.options.keys&&a3.options.keys.length&&(d2=a3.pointClass.prototype.optionsToObject.call({series:a3},d2),a3.pointClass.setGanttPointAliases(d2));G(d2,true)&&(d2.seriesIndex=f2,b2.push(d2))})),true===e2&&f2++);return b2}),[]);if(d&&k2.length<d)for(var g3=k2.length;g3<=d;g3++)k2.push({name:g3+"​"});d=x(k2,e2||false,true===e2?f2:1);b.categories=d.categories;b.treeGrid.mapOfPosToGridNode=d.mapOfPosToGridNode;b.hasNames=true;b.treeGrid.tree=d.tree;b.series.forEach((function(b2){var a3=(b2.options.data||[]).map((function(a4){D(a4)&&b2.options.keys&&b2.options.keys.length&&k2.forEach((function(b3){0<=a4.indexOf(b3.x)&&0<=a4.indexOf(b3.x2)&&(a4=b3)}));return G(a4,true)?K(a4):a4}));b2.visible&&b2.setData(a3,false)}));b.treeGrid.mapOptionsToLevel=m({defaults:c2,from:1,levels:c2&&c2.levels,to:b.treeGrid.tree&&b.treeGrid.tree.height});"beforeRender"===a2.type&&(b.treeGrid.collapsedNodes=d.collapsedNodes)}}))}function r(a2,b){var d=this.treeGrid.mapOptionsToLevel||{},c2=this.ticks,e2=c2[b],k2;if("treegrid"===this.options.type&&this.treeGrid.mapOfPosToGridNode){var g3=this.treeGrid.mapOfPosToGridNode[b];(d=d[g3.depth])&&(k2={labels:d});!e2&&f?c2[b]=new f(this,b,void 0,void 0,{category:g3.name,tickmarkOffset:g3.tickmarkOffset,options:k2}):(e2.parameters.category=g3.name,e2.options=k2,e2.addLabel())}else a2.apply(this,Array.prototype.slice.call(arguments,1))}function a(a2,b,c2){var d=this,e2="treegrid"===c2.type;d.treeGrid||(d.treeGrid=new l(d));e2&&(p(b,"beforeRender",t),p(b,"beforeRedraw",t),p(b,"addSeries",(function(b2){b2.options.data&&(b2=x(b2.options.data,c2.uniqueNames||false,1),d.treeGrid.collapsedNodes=(d.treeGrid.collapsedNodes||[]).concat(b2.collapsedNodes))})),p(d,"foundExtremes",(function(){d.treeGrid.collapsedNodes&&d.treeGrid.collapsedNodes.forEach((function(b2){var a3=d.treeGrid.collapse(b2);d.brokenAxis&&(d.brokenAxis.setBreaks(a3,false),d.treeGrid.collapsedNodes&&(d.treeGrid.collapsedNodes=d.treeGrid.collapsedNodes.filter((function(a4){return b2.collapseStart!==a4.collapseStart||b2.collapseEnd!==a4.collapseEnd}))))}))})),p(d,"afterBreaks",(function(){"yAxis"===d.coll&&!d.staticScale&&d.chart.options.chart.height&&(d.isDirty=true)})),c2=K({grid:{enabled:true},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,width:10,padding:5}},uniqueNames:false},c2,{reversed:true,grid:{columns:void 0}}));a2.apply(d,[b,c2]);e2&&(d.hasNames=true,d.options.showLastLabel=true)}function q(a2){var b=this.options;"treegrid"===b.type?(this.min=u(this.userMin,b.min,this.dataMin),this.max=u(this.userMax,b.max,this.dataMax),e(this,"foundExtremes"),this.setAxisTranslation(),this.tickmarkOffset=.5,this.tickInterval=1,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[]):a2.apply(this,Array.prototype.slice.call(arguments,1))}var m=B.getLevelOptions,p=z.addEvent,k=z.find,e=z.fireEvent,D=z.isArray,G=z.isObject,H=z.isString,K=z.merge,u=z.pick,n=z.wrap,w=[],f,l=function(){function d(b){this.axis=b}d.compose=function(b,d2,e2,k2){if(-1===w.indexOf(b)){w.push(b);-1===b.keepProps.indexOf("treeGrid")&&b.keepProps.push("treeGrid");var h=b.prototype;n(h,"generateTick",r);n(h,"init",a);n(h,"setTickInterval",q);h.utils={getNode:y.getNode}}-1===w.indexOf(k2)&&(w.push(k2),f||(f=k2));g2.compose(b,d2,k2);c.compose(b,e2);A.compose(k2);return b};d.prototype.setCollapsedStatus=function(b){var a2=this.axis,d2=a2.chart;a2.series.forEach((function(a3){var c2=a3.options.data;if(b.id&&c2){var e2=d2.get(b.id);a3=c2[a3.data.indexOf(e2)];e2&&a3&&(e2.collapsed=b.collapsed,a3.collapsed=b.collapsed)}}))};d.prototype.collapse=function(b){var a2=this.axis,d2=a2.options.breaks||[],c2=C(b,a2.max);d2.push(c2);b.collapsed=true;a2.treeGrid.setCollapsedStatus(b);return d2};d.prototype.expand=function(b){var a2=this.axis,d2=a2.options.breaks||[],c2=C(b,a2.max);b.collapsed=false;a2.treeGrid.setCollapsedStatus(b);return d2.reduce((function(b2,a3){a3.to===c2.to&&a3.from===c2.from||b2.push(a3);return b2}),[])};d.prototype.getTickPositions=function(){var b=this.axis,a2=Math.floor(b.min/b.tickInterval)*b.tickInterval,d2=Math.ceil(b.max/b.tickInterval)*b.tickInterval;return Object.keys(b.treeGrid.mapOfPosToGridNode||{}).reduce((function(c2,e2){e2=+e2;!(e2>=a2&&e2<=d2)||b.brokenAxis&&b.brokenAxis.isInAnyBreak(e2)||c2.push(e2);return c2}),[])};d.prototype.isCollapsed=function(b){var a2=this.axis,d2=a2.options.breaks||[],c2=C(b,a2.max);return d2.some((function(b2){return b2.from===c2.from&&b2.to===c2.to}))};d.prototype.toggleCollapse=function(b){return this.isCollapsed(b)?this.expand(b):this.collapse(b)};return d}();return l}));I(g,"Extensions/CurrentDateIndication.js",[g["Core/Axis/Axis.js"],g["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=y.addEvent,B=y.merge;y=y.wrap;var z={color:"#ccd6eb",width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(c2,g3){return this.axis.chart.time.dateFormat(g3||"",c2)},rotation:0,style:{fontSize:"10px"}}};A(c,"afterSetOptions",(function(){var c2=this.options,g3=c2.currentDateIndicator;g3&&(g3="object"===typeof g3?B(z,g3):B(z),g3.value=Date.now(),g3.className="highcharts-current-date-indicator",c2.plotLines||(c2.plotLines=[]),c2.plotLines.push(g3))}));A(g2,"render",(function(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})}));y(g2.prototype,"getLabelText",(function(c2,g3){var t=this.options;return t&&t.className&&-1!==t.className.indexOf("highcharts-current-date-indicator")&&t.label&&"function"===typeof t.label.formatter?(t.value=Date.now(),t.label.formatter.call(this,t.value,t.label.format)):c2.call(this,g3)}))}));I(g,"Extensions/StaticScale.js",[g["Core/Axis/Axis.js"],g["Core/Chart/Chart.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=y.addEvent,B=y.defined,z=y.isNumber,C=y.pick;A(c,"afterSetOptions",(function(){var c2=this.chart.options.chart;!this.horiz&&z(this.options.staticScale)&&(!c2.height||c2.scrollablePlotArea&&c2.scrollablePlotArea.minHeight)&&(this.staticScale=this.options.staticScale)}));g2.prototype.adjustHeight=function(){"adjustHeight"!==this.redrawTrigger&&((this.axes||[]).forEach((function(c2){var g3=c2.chart,r=!!g3.initiatedScale&&g3.options.animation,a=c2.options.staticScale;if(c2.staticScale&&B(c2.min)){var q=C(c2.brokenAxis&&c2.brokenAxis.unitLength,c2.max+c2.tickInterval-c2.min)*a;q=Math.max(q,a);a=q-g3.plotHeight;!g3.scrollablePixelsY&&1<=Math.abs(a)&&(g3.plotHeight=q,g3.redrawTrigger="adjustHeight",g3.setSize(void 0,g3.chartHeight+a,r));c2.series.forEach((function(a2){(a2=a2.sharedClipKey&&g3.sharedClips[a2.sharedClipKey])&&a2.attr(g3.inverted?{width:g3.plotHeight}:{height:g3.plotHeight})}))}})),this.initiatedScale=true);this.redrawTrigger=null};A(g2,"render",g2.prototype.adjustHeight)}));I(g,"Extensions/ArrowSymbols.js",[g["Core/Renderer/SVG/SVGRenderer.js"]],(function(c){function g2(c2,g3,y2,x){return[["M",c2,g3+x/2],["L",c2+y2,g3],["L",c2,g3+x/2],["L",c2+y2,g3+x]]}function y(c2,g3,y2,x){return[["M",c2+y2,g3],["L",c2,g3+x/2],["L",c2+y2,g3+x],["Z"]]}function A(c2,g3,A2,x){return y(c2,g3,A2/2,x)}c=c.prototype.symbols;c.arrow=g2;c["arrow-filled"]=y;c["arrow-filled-half"]=A;c["arrow-half"]=function(c2,y2,A2,x){return g2(c2,y2,A2/2,x)};c["triangle-left"]=y;c["triangle-left-half"]=A;return c}));I(g,"Gantt/Connection.js",[g["Core/Defaults.js"],g["Core/Globals.js"],g["Core/Series/Point.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){function B(a2){var c2=a2.shapeArgs;return c2?{xMin:c2.x||0,xMax:(c2.x||0)+(c2.width||0),yMin:c2.y||0,yMax:(c2.y||0)+(c2.height||0)}:(c2=a2.graphic&&a2.graphic.getBBox())?{xMin:a2.plotX-c2.width/2,xMax:a2.plotX+c2.width/2,yMin:a2.plotY-c2.height/2,yMax:a2.plotY+c2.height/2}:null}var z=c.defaultOptions,C=A.defined,x=A.error;c=A.extend;var t=A.merge,r=A.objectEach;var a=g2.deg2rad,q=Math.max,m=Math.min;c(z,{connectors:{type:"straight",lineWidth:1,marker:{enabled:false,align:"center",verticalAlign:"middle",inside:false,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});A=function(){function c2(a2,c3,g3){this.toPoint=this.pathfinder=this.graphics=this.fromPoint=this.chart=void 0;this.init(a2,c3,g3)}c2.prototype.init=function(a2,c3,g3){this.fromPoint=a2;this.toPoint=c3;this.options=g3;this.chart=a2.series.chart;this.pathfinder=this.chart.pathfinder};c2.prototype.renderPath=function(a2,c3,g3){var e=this.chart,k=e.styledMode,m2=e.pathfinder,p=!e.options.chart.forExport&&false!==g3,n=this.graphics&&this.graphics.path;m2.group||(m2.group=e.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(e.seriesGroup));m2.group.translate(e.plotLeft,e.plotTop);n&&n.renderer||(n=e.renderer.path().add(m2.group),k||n.attr({opacity:0}));n.attr(c3);a2={d:a2};k||(a2.opacity=1);n[p?"animate":"attr"](a2,g3);this.graphics=this.graphics||{};this.graphics.path=n};c2.prototype.addMarker=function(c3,e,g3){var k=this.fromPoint.series.chart,m2=k.pathfinder;k=k.renderer;var p="start"===c3?this.fromPoint:this.toPoint,q2=p.getPathfinderAnchorPoint(e);if(e.enabled&&((g3="start"===c3?g3[1]:g3[g3.length-2])&&"M"===g3[0]||"L"===g3[0])){g3={x:g3[1],y:g3[2]};g3=p.getRadiansToVector(g3,q2);q2=p.getMarkerVector(g3,e.radius,q2);g3=-g3/a;if(e.width&&e.height){var n=e.width;var r2=e.height}else n=r2=2*e.radius;this.graphics=this.graphics||{};q2={x:q2.x-n/2,y:q2.y-r2/2,width:n,height:r2,rotation:g3,rotationOriginX:q2.x,rotationOriginY:q2.y};this.graphics[c3]?this.graphics[c3].animate(q2):(this.graphics[c3]=k.symbol(e.symbol).addClass("highcharts-point-connecting-path-"+c3+"-marker").attr(q2).add(m2.group),k.styledMode||this.graphics[c3].attr({fill:e.color||this.fromPoint.color,stroke:e.lineColor,"stroke-width":e.lineWidth,opacity:0}).animate({opacity:1},p.series.options.animation))}};c2.prototype.getPath=function(a2){var c3=this.pathfinder,g3=this.chart,k=c3.algorithms[a2.type],m2=c3.chartObstacles;if("function"!==typeof k)return x('"'+a2.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]};k.requiresObstacles&&!m2&&(m2=c3.chartObstacles=c3.getChartObstacles(a2),g3.options.connectors.algorithmMargin=a2.algorithmMargin,c3.chartObstacleMetrics=c3.getObstacleMetrics(m2));return k(this.fromPoint.getPathfinderAnchorPoint(a2.startMarker),this.toPoint.getPathfinderAnchorPoint(a2.endMarker),t({chartObstacles:m2,lineObstacles:c3.lineObstacles||[],obstacleMetrics:c3.chartObstacleMetrics,hardBounds:{xMin:0,xMax:g3.plotWidth,yMin:0,yMax:g3.plotHeight},obstacleOptions:{margin:a2.algorithmMargin},startDirectionX:c3.getAlgorithmStartDirection(a2.startMarker)},a2))};c2.prototype.render=function(){var a2=this.fromPoint,c3=a2.series,g3=c3.chart,p=g3.pathfinder,r2=t(g3.options.connectors,c3.options.connectors,a2.options.connectors,this.options),x2={};g3.styledMode||(x2.stroke=r2.lineColor||a2.color,x2["stroke-width"]=r2.lineWidth,r2.dashStyle&&(x2.dashstyle=r2.dashStyle));x2["class"]="highcharts-point-connecting-path highcharts-color-"+a2.colorIndex;r2=t(x2,r2);C(r2.marker.radius)||(r2.marker.radius=m(q(Math.ceil((r2.algorithmMargin||8)/2)-1,1),5));a2=this.getPath(r2);g3=a2.path;a2.obstacles&&(p.lineObstacles=p.lineObstacles||[],p.lineObstacles=p.lineObstacles.concat(a2.obstacles));this.renderPath(g3,x2,c3.options.animation);this.addMarker("start",t(r2.marker,r2.startMarker),g3);this.addMarker("end",t(r2.marker,r2.endMarker),g3)};c2.prototype.destroy=function(){this.graphics&&(r(this.graphics,(function(a2){a2.destroy()})),delete this.graphics)};return c2}();g2.Connection=A;c(y.prototype,{getPathfinderAnchorPoint:function(a2){var c2=B(this);switch(a2.align){case"right":var e="xMax";break;case"left":e="xMin"}switch(a2.verticalAlign){case"top":var g3="yMin";break;case"bottom":g3="yMax"}return{x:e?c2[e]:(c2.xMin+c2.xMax)/2,y:g3?c2[g3]:(c2.yMin+c2.yMax)/2}},getRadiansToVector:function(a2,c2){var e;C(c2)||(e=B(this))&&(c2={x:(e.xMin+e.xMax)/2,y:(e.yMin+e.yMax)/2});return Math.atan2(c2.y-a2.y,a2.x-c2.x)},getMarkerVector:function(a2,c2,e){var g3=2*Math.PI,k=B(this),m2=k.xMax-k.xMin,p=k.yMax-k.yMin,q2=Math.atan2(p,m2),n=false;m2/=2;var r2=p/2,f=k.xMin+m2;k=k.yMin+r2;for(var l=f,d=k,b=1,h=1;a2<-Math.PI;)a2+=g3;for(;a2>Math.PI;)a2-=g3;g3=Math.tan(a2);a2>-q2&&a2<=q2?(h=-1,n=true):a2>q2&&a2<=Math.PI-q2?h=-1:a2>Math.PI-q2||a2<=-(Math.PI-q2)?(b=-1,n=true):b=-1;n?(l+=b*m2,d+=h*m2*g3):(l+=p/(2*g3)*b,d+=h*r2);e.x!==f&&(l=e.x);e.y!==k&&(d=e.y);return{x:l+c2*Math.cos(a2),y:d-c2*Math.sin(a2)}}});return A}));I(g,"Gantt/PathfinderAlgorithms.js",[g["Core/Utilities.js"]],(function(c){function g2(a,c2,g3){g3=g3||0;var m=a.length-1;c2-=1e-7;for(var k,e;g3<=m;)if(k=m+g3>>1,e=c2-a[k].xMin,0<e)g3=k+1;else if(0>e)m=k-1;else return k;return 0<g3?g3-1:0}function y(a,c2){for(var m=g2(a,c2.x+1)+1;m--;){var p;if(p=a[m].xMax>=c2.x)p=a[m],p=c2.x<=p.xMax&&c2.x>=p.xMin&&c2.y<=p.yMax&&c2.y>=p.yMin;if(p)return m}return-1}function A(a){var c2=[];if(a.length){c2.push(["M",a[0].start.x,a[0].start.y]);for(var g3=0;g3<a.length;++g3)c2.push(["L",a[g3].end.x,a[g3].end.y])}return c2}function B(a,c2){a.yMin=x(a.yMin,c2.yMin);a.yMax=C(a.yMax,c2.yMax);a.xMin=x(a.xMin,c2.xMin);a.xMax=C(a.xMax,c2.xMax)}var z=c.pick,C=Math.min,x=Math.max,t=Math.abs;c=function(a,c2,g3){function m(a2,c3,e2,g4,d){a2={x:a2.x,y:a2.y};a2[c3]=e2[g4||c3]+(d||0);return a2}function k(a2,c3,e2){var f=t(c3[e2]-a2[e2+"Min"])>t(c3[e2]-a2[e2+"Max"]);return m(c3,e2,a2,e2+(f?"Max":"Min"),f?1:-1)}var e=[],q=z(g3.startDirectionX,t(c2.x-a.x)>t(c2.y-a.y))?"x":"y",r2=g3.chartObstacles,x2=y(r2,a);g3=y(r2,c2);if(-1<g3){var B2=r2[g3];g3=k(B2,c2,q);B2={start:g3,end:c2};var u=g3}else u=c2;-1<x2&&(r2=r2[x2],g3=k(r2,a,q),e.push({start:a,end:g3}),g3[q]>=a[q]===g3[q]>=u[q]&&(q="y"===q?"x":"y",c2=a[q]<c2[q],e.push({start:g3,end:m(g3,q,r2,q+(c2?"Max":"Min"),c2?1:-1)}),q="y"===q?"x":"y"));a=e.length?e[e.length-1].end:a;g3=m(a,q,u);e.push({start:a,end:g3});q=m(g3,"y"===q?"x":"y",u);e.push({start:g3,end:q});e.push(B2);return{path:A(e),obstacles:e}};c.requiresObstacles=true;var r=function(a,c2,m){function p(a2,d2,c3){var e2,f2=a2.x<d2.x?1:-1;if(a2.x<d2.x){var h2=a2;var k2=d2}else h2=d2,k2=a2;if(a2.y<d2.y){var l2=a2;var m2=d2}else l2=d2,m2=a2;for(e2=0>f2?C(g2(b,k2.x),b.length-1):0;b[e2]&&(0<f2&&b[e2].xMin<=k2.x||0>f2&&b[e2].xMax>=h2.x);){if(b[e2].xMin<=k2.x&&b[e2].xMax>=h2.x&&b[e2].yMin<=m2.y&&b[e2].yMax>=l2.y)return c3?{y:a2.y,x:a2.x<d2.x?b[e2].xMin-1:b[e2].xMax+1,obstacle:b[e2]}:{x:a2.x,y:a2.y<d2.y?b[e2].yMin-1:b[e2].yMax+1,obstacle:b[e2]};e2+=f2}return d2}function k(a2,b2,d2,c3,e2){var f2=e2.soft,h2=e2.hard,g3=c3?"x":"y",k2={x:b2.x,y:b2.y},l2={x:b2.x,y:b2.y};e2=a2[g3+"Max"]>=f2[g3+"Max"];f2=a2[g3+"Min"]<=f2[g3+"Min"];var m2=a2[g3+"Max"]>=h2[g3+"Max"];h2=a2[g3+"Min"]<=h2[g3+"Min"];var n2=t(a2[g3+"Min"]-b2[g3]),q2=t(a2[g3+"Max"]-b2[g3]);d2=10>t(n2-q2)?b2[g3]<d2[g3]:q2<n2;l2[g3]=a2[g3+"Min"];k2[g3]=a2[g3+"Max"];a2=p(b2,l2,c3)[g3]!==l2[g3];b2=p(b2,k2,c3)[g3]!==k2[g3];d2=a2?b2?d2:true:b2?false:d2;d2=f2?e2?d2:true:e2?false:d2;return h2?m2?d2:true:m2?false:d2}function e(a2,c3,h2){if(a2.x===c3.x&&a2.y===c3.y)return[];var g3=h2?"x":"y",n2=m.obstacleOptions.margin;var q2={soft:{xMin:w,xMax:f,yMin:l,yMax:d},hard:m.hardBounds};var r3=y(b,a2);if(-1<r3){r3=b[r3];q2=k(r3,a2,c3,h2,q2);B(r3,m.hardBounds);var t2=h2?{y:a2.y,x:r3[q2?"xMax":"xMin"]+(q2?1:-1)}:{x:a2.x,y:r3[q2?"yMax":"yMin"]+(q2?1:-1)};var v2=y(b,t2);-1<v2&&(v2=b[v2],B(v2,m.hardBounds),t2[g3]=q2?x(r3[g3+"Max"]-n2+1,(v2[g3+"Min"]+r3[g3+"Max"])/2):C(r3[g3+"Min"]+n2-1,(v2[g3+"Max"]+r3[g3+"Min"])/2),a2.x===t2.x&&a2.y===t2.y?(u&&(t2[g3]=q2?x(r3[g3+"Max"],v2[g3+"Max"])+1:C(r3[g3+"Min"],v2[g3+"Min"])-1),u=!u):u=false);a2=[{start:a2,end:t2}]}else g3=p(a2,{x:h2?c3.x:a2.x,y:h2?a2.y:c3.y},h2),a2=[{start:a2,end:{x:g3.x,y:g3.y}}],g3[h2?"x":"y"]!==c3[h2?"x":"y"]&&(q2=k(g3.obstacle,g3,c3,!h2,q2),B(g3.obstacle,m.hardBounds),q2={x:h2?g3.x:g3.obstacle[q2?"xMax":"xMin"]+(q2?1:-1),y:h2?g3.obstacle[q2?"yMax":"yMin"]+(q2?1:-1):g3.y},h2=!h2,a2=a2.concat(e({x:g3.x,y:g3.y},q2,h2)));return a2=a2.concat(e(a2[a2.length-1].end,c3,!h2))}function q(a2,b2,d2){var c3=C(a2.xMax-b2.x,b2.x-a2.xMin)<C(a2.yMax-b2.y,b2.y-a2.yMin);d2=k(a2,b2,d2,c3,{soft:m.hardBounds,hard:m.hardBounds});return c3?{y:b2.y,x:a2[d2?"xMax":"xMin"]+(d2?1:-1)}:{x:b2.x,y:a2[d2?"yMax":"yMin"]+(d2?1:-1)}}var r2=z(m.startDirectionX,t(c2.x-a.x)>t(c2.y-a.y)),H=r2?"x":"y",I2=[],u=false,n=m.obstacleMetrics,w=C(a.x,c2.x)-n.maxWidth-10,f=x(a.x,c2.x)+n.maxWidth+10,l=C(a.y,c2.y)-n.maxHeight-10,d=x(a.y,c2.y)+n.maxHeight+10,b=m.chartObstacles;var h=g2(b,w);n=g2(b,f);b=b.slice(h,n+1);if(-1<(n=y(b,c2))){var v=q(b[n],c2,a);I2.push({end:c2,start:v});c2=v}for(;-1<(n=y(b,c2));)h=0>c2[H]-a[H],v={x:c2.x,y:c2.y},v[H]=b[n][h?H+"Max":H+"Min"]+(h?1:-1),I2.push({end:c2,start:v}),c2=v;a=e(a,c2,r2);a=a.concat(I2.reverse());return{path:A(a),obstacles:a}};r.requiresObstacles=true;return{fastAvoid:r,straight:function(a,c2){return{path:[["M",a.x,a.y],["L",c2.x,c2.y]],obstacles:[{start:a,end:c2}]}},simpleConnect:c}}));I(g,"Gantt/Pathfinder.js",[g["Gantt/Connection.js"],g["Core/Chart/Chart.js"],g["Core/Defaults.js"],g["Core/Globals.js"],g["Core/Series/Point.js"],g["Core/Utilities.js"],g["Gantt/PathfinderAlgorithms.js"]],(function(c,g2,y,A,B,z,C){function x(a2){var c2=a2.shapeArgs;return c2?{xMin:c2.x||0,xMax:(c2.x||0)+(c2.width||0),yMin:c2.y||0,yMax:(c2.y||0)+(c2.height||0)}:(c2=a2.graphic&&a2.graphic.getBBox())?{xMin:a2.plotX-c2.width/2,xMax:a2.plotX+c2.width/2,yMin:a2.plotY-c2.height/2,yMax:a2.plotY+c2.height/2}:null}function t(a2){for(var c2=a2.length,g3=0,f,k2,d=[],b=function(a3,d2,c3){c3=e(c3,10);var f2=a3.yMax+c3>d2.yMin-c3&&a3.yMin-c3<d2.yMax+c3,g4=a3.xMax+c3>d2.xMin-c3&&a3.xMin-c3<d2.xMax+c3,h=f2?a3.xMin>d2.xMax?a3.xMin-d2.xMax:d2.xMin-a3.xMax:Infinity,k3=g4?a3.yMin>d2.yMax?a3.yMin-d2.yMax:d2.yMin-a3.yMax:Infinity;return g4&&f2?c3?b(a3,d2,Math.floor(c3/2)):Infinity:H(h,k3)};g3<c2;++g3)for(f=g3+1;f<c2;++f)k2=b(a2[g3],a2[f]),80>k2&&d.push(k2);d.push(80);return G(Math.floor(d.sort((function(a3,b2){return a3-b2}))[Math.floor(d.length/10)]/2-1),1)}function r(a2){if(a2.options.pathfinder||a2.series.reduce((function(a3,c2){c2.options&&k(true,c2.options.connectors=c2.options.connectors||{},c2.options.pathfinder);return a3||c2.options&&c2.options.pathfinder}),false))k(true,a2.options.connectors=a2.options.connectors||{},a2.options.pathfinder),m('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')}y=y.defaultOptions;var a=z.addEvent,q=z.defined,m=z.error,p=z.extend,k=z.merge,e=z.pick,D=z.splat;var G=Math.max,H=Math.min;p(y,{connectors:{type:"straight",lineWidth:1,marker:{enabled:false,align:"center",verticalAlign:"middle",inside:false,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});var I2=function(){function g3(a2){this.lineObstacles=this.group=this.connections=this.chartObstacleMetrics=this.chartObstacles=this.chart=void 0;this.init(a2)}g3.prototype.init=function(c2){this.chart=c2;this.connections=[];a(c2,"redraw",(function(){this.pathfinder.update()}))};g3.prototype.update=function(a2){var e2=this.chart,f=this,g4=f.connections;f.connections=[];e2.series.forEach((function(a3){a3.visible&&!a3.options.isInternal&&a3.points.forEach((function(a4){var b2=a4.options;b2&&b2.dependency&&(b2.connect=b2.dependency);var d2;b2=a4.options&&a4.options.connect&&D(a4.options.connect);a4.visible&&false!==a4.isInside&&b2&&b2.forEach((function(b3){d2=e2.get("string"===typeof b3?b3:b3.to);d2 instanceof B&&d2.series.visible&&d2.visible&&false!==d2.isInside&&f.connections.push(new c(a4,d2,"string"===typeof b3?{}:b3))}))}))}));for(var d=0,b=void 0,h=void 0,k2=g4.length,m2=f.connections.length;d<k2;++d){h=false;var n=g4[d];for(b=0;b<m2;++b){var p2=f.connections[b];if((n.options&&n.options.type)===(p2.options&&p2.options.type)&&n.fromPoint===p2.fromPoint&&n.toPoint===p2.toPoint){p2.graphics=n.graphics;h=true;break}}h||n.destroy()}delete this.chartObstacles;delete this.lineObstacles;f.renderConnections(a2)};g3.prototype.renderConnections=function(c2){c2?this.chart.series.forEach((function(c3){var e2=function(){var a2=c3.chart.pathfinder;(a2&&a2.connections||[]).forEach((function(a3){a3.fromPoint&&a3.fromPoint.series===c3&&a3.render()}));c3.pathfinderRemoveRenderEvent&&(c3.pathfinderRemoveRenderEvent(),delete c3.pathfinderRemoveRenderEvent)};false===c3.options.animation?e2():c3.pathfinderRemoveRenderEvent=a(c3,"afterAnimate",e2)})):this.connections.forEach((function(a2){a2.render()}))};g3.prototype.getChartObstacles=function(a2){for(var c2=[],f=this.chart.series,g4=e(a2.algorithmMargin,0),d,b=0,h=f.length;b<h;++b)if(f[b].visible&&!f[b].options.isInternal){var k2=0,m2=f[b].points.length,n=void 0;for(n=void 0;k2<m2;++k2)n=f[b].points[k2],n.visible&&(n=x(n))&&c2.push({xMin:n.xMin-g4,xMax:n.xMax+g4,yMin:n.yMin-g4,yMax:n.yMax+g4})}c2=c2.sort((function(a3,b2){return a3.xMin-b2.xMin}));q(a2.algorithmMargin)||(d=a2.algorithmMargin=t(c2),c2.forEach((function(a3){a3.xMin-=d;a3.xMax+=d;a3.yMin-=d;a3.yMax+=d})));return c2};g3.prototype.getObstacleMetrics=function(a2){for(var c2=0,e2=0,g4,d,b=a2.length;b--;)g4=a2[b].xMax-a2[b].xMin,d=a2[b].yMax-a2[b].yMin,c2<g4&&(c2=g4),e2<d&&(e2=d);return{maxHeight:e2,maxWidth:c2}};g3.prototype.getAlgorithmStartDirection=function(a2){var c2="top"!==a2.verticalAlign&&"bottom"!==a2.verticalAlign;return"left"!==a2.align&&"right"!==a2.align?c2?void 0:false:c2?true:void 0};return g3}();I2.prototype.algorithms=C;A.Pathfinder=I2;p(B.prototype,{getPathfinderAnchorPoint:function(a2){var c2=x(this);switch(a2.align){case"right":var e2="xMax";break;case"left":e2="xMin"}switch(a2.verticalAlign){case"top":var f="yMin";break;case"bottom":f="yMax"}return{x:e2?c2[e2]:(c2.xMin+c2.xMax)/2,y:f?c2[f]:(c2.yMin+c2.yMax)/2}},getRadiansToVector:function(a2,c2){var e2;q(c2)||(e2=x(this))&&(c2={x:(e2.xMin+e2.xMax)/2,y:(e2.yMin+e2.yMax)/2});return Math.atan2(c2.y-a2.y,a2.x-c2.x)},getMarkerVector:function(a2,c2,e2){var f=2*Math.PI,g3=x(this),d=g3.xMax-g3.xMin,b=g3.yMax-g3.yMin,h=Math.atan2(b,d),k2=false;d/=2;var m2=b/2,n=g3.xMin+d;g3=g3.yMin+m2;for(var p2=n,q2=g3,r2=1,t2=1;a2<-Math.PI;)a2+=f;for(;a2>Math.PI;)a2-=f;f=Math.tan(a2);a2>-h&&a2<=h?(t2=-1,k2=true):a2>h&&a2<=Math.PI-h?t2=-1:a2>Math.PI-h||a2<=-(Math.PI-h)?(r2=-1,k2=true):r2=-1;k2?(p2+=r2*d,q2+=t2*d*f):(p2+=b/(2*f)*r2,q2+=t2*m2);e2.x!==n&&(p2=e2.x);e2.y!==g3&&(q2=e2.y);return{x:p2+c2*Math.cos(a2),y:q2-c2*Math.sin(a2)}}});g2.prototype.callbacks.push((function(a2){false!==a2.options.connectors.enabled&&(r(a2),this.pathfinder=new I2(this),this.pathfinder.update(true))}));return I2}));I(g,"Series/Gantt/GanttSeries.js",[g["Core/Axis/Axis.js"],g["Core/Chart/Chart.js"],g["Series/Gantt/GanttPoint.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Axis/Tick.js"],g["Core/Utilities.js"],g["Core/Axis/TreeGrid/TreeGridAxis.js"]],(function(c,g2,y,A,B,z,C){var x=this&&this.__extends||function(){var a2=function(c2,e){a2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a3,c3){a3.__proto__=c3}||function(a3,c3){for(var e2 in c3)c3.hasOwnProperty(e2)&&(a3[e2]=c3[e2])};return a2(c2,e)};return function(c2,e){function g3(){this.constructor=c2}a2(c2,e);c2.prototype=null===e?Object.create(e):(g3.prototype=e.prototype,new g3)}}(),t=A.series,r=A.seriesTypes.xrange,a=z.extend,q=z.isNumber,m=z.merge;C.compose(c,g2,t,B);c=function(a2){function c2(){var c3=null!==a2&&a2.apply(this,arguments)||this;c3.data=void 0;c3.options=void 0;c3.points=void 0;return c3}x(c2,a2);c2.prototype.drawPoint=function(a3,c3){var e=this.options,g3=this.chart.renderer,k=a3.shapeArgs,m2=a3.plotY,n=a3.graphic,p=a3.selected&&"select",f=e.stacking&&!e.borderRadius;if(a3.options.milestone)if(q(m2)&&null!==a3.y&&false!==a3.visible){k=g3.symbols.diamond(k.x||0,k.y||0,k.width||0,k.height||0);if(n)n[c3]({d:k});else a3.graphic=g3.path(k).addClass(a3.getClassName(),true).add(a3.group||this.group);this.chart.styledMode||a3.graphic.attr(this.pointAttribs(a3,p)).shadow(e.shadow,null,f)}else n&&(a3.graphic=n.destroy());else r.prototype.drawPoint.call(this,a3,c3)};c2.prototype.translatePoint=function(a3){r.prototype.translatePoint.call(this,a3);if(a3.options.milestone){var c3=a3.shapeArgs;var e=c3.height||0;a3.shapeArgs={x:(c3.x||0)-e/2,y:c3.y,width:e,height:e}}};c2.defaultOptions=m(r.defaultOptions,{grouping:false,dataLabels:{enabled:true},tooltip:{headerFormat:'<span style="font-size: 10px">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){var a3=this.series,c3=a3.xAxis,g3=a3.tooltipOptions.dateTimeLabelFormats,k=c3.options.startOfWeek,m2=a3.tooltipOptions,p=m2.xDateFormat,n=this.options.milestone,r2="<b>"+(this.name||this.yCategory)+"</b>";if(m2.pointFormat)return this.tooltipFormatter(m2.pointFormat);!p&&q(this.start)&&(p=a3.chart.time.getDateFormat(c3.closestPointRange,this.start,k,g3||{}));c3=a3.chart.time.dateFormat(p,this.start);a3=a3.chart.time.dateFormat(p,this.end);r2+="<br/>";return n?r2+(c3+"<br/>"):r2+("Start: "+c3+"<br/>End: ")+(a3+"<br/>")}},connectors:{type:"simpleConnect",animation:{reversed:true},startMarker:{enabled:true,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:false,align:"right"}}});return c2}(r);a(c.prototype,{pointArrayMap:["start","end","y"],pointClass:y,setData:t.prototype.setData});A.registerSeriesType("gantt",c);return c}));I(g,"Core/Chart/GanttChart.js",[g["Core/Chart/Chart.js"],g["Core/Defaults.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=this&&this.__extends||function(){var c2=function(g3,a){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,c3){a2.__proto__=c3}||function(a2,c3){for(var g4 in c3)c3.hasOwnProperty(g4)&&(a2[g4]=c3[g4])};return c2(g3,a)};return function(g3,a){function q(){this.constructor=g3}c2(g3,a);g3.prototype=null===a?Object.create(a):(q.prototype=a.prototype,new q)}}(),B=g2.getOptions,z=y.isArray,C=y.merge,x=y.splat;c=function(c2){function g3(){return null!==c2&&c2.apply(this,arguments)||this}A(g3,c2);g3.prototype.init=function(a,g4){var m=B(),p=a.xAxis,k=a.yAxis,e;a.xAxis=a.yAxis=void 0;var q=C(true,{chart:{type:"gantt"},title:{text:null},legend:{enabled:false},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},a,{isGantt:true});a.xAxis=p;a.yAxis=k;q.xAxis=(z(a.xAxis)?a.xAxis:[a.xAxis||{},{}]).map((function(a2,c3){1===c3&&(e=0);return C(m.xAxis,{grid:{enabled:true},opposite:true,linkedTo:e},a2,{type:"datetime"})}));q.yAxis=x(a.yAxis||{}).map((function(a2){return C(m.yAxis,{grid:{enabled:true},staticScale:50,reversed:true,type:a2.categories?a2.type:"treegrid"},a2)}));c2.prototype.init.call(this,q,g4)};return g3}(c);(function(c2){c2.ganttChart=function(g3,a,q){return new c2(g3,a,q)}})(c||(c={}));return c}));I(g,"masters/modules/gantt.src.js",[g["Core/Globals.js"],g["Stock/Navigator/Navigator.js"],g["Stock/Scrollbar/Scrollbar.js"],g["Stock/RangeSelector/RangeSelector.js"],g["Series/XRange/XRangeSeries.js"],g["Core/Chart/GanttChart.js"]],(function(c,g2,y,A,B,z){c.GanttChart=z;c.ganttChart=z.ganttChart;c.Navigator=g2;c.RangeSelector=A;c.Scrollbar=y;g2.compose(c.Axis,c.Chart,c.Series);A.compose(c.Axis,c.Chart);y.compose(c.Axis);B.compose(c.Axis)}));I(g,"masters/highcharts-gantt.src.js",[g["masters/highcharts.src.js"]],(function(c){c.product="Highcharts Gantt";return c}));g["masters/highcharts-gantt.src.js"]._modules=g;return g["masters/highcharts-gantt.src.js"]}))})(highchartsGantt);var highchartsGanttExports=highchartsGantt.exports;const Highcharts=getDefaultExportFromCjs(highchartsGanttExports);const GanttChart=props=>{const{aria:aria={},className:className,customOptions:customOptions={},dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_gantt_chart"),globalProps(props),className);const[options,setOptions]=useState(customOptions);useEffect((()=>{setOptions(customOptions)}),[customOptions]);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();return jsx("div",{children:jsx(HighchartsReact,{constructorType:"ganttChart",containerProps:{className:classnames(globalProps(props),classes),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})})};const typeMap={home:"H#",project:"P#",appointment:"A#",default:"#"};const Hashtag=props=>{const{aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,newWindow:newWindow,rel:rel,target:target,text:text2,type:type="default",url:url}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_hashtag_kit"),globalProps(props),className);const getTargetAttribute=()=>{if(target&&url){return target}else if(newWindow){return"_blank"}else{return"_self"}};return jsx("span",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx("a",{href:url,rel:newWindow?"noreferrer":rel,target:getTargetAttribute(),children:jsx(Badge,{dark:dark,text:typeMap[type]+text2,variant:"primary"})})})};const HomeAddressStreet=props=>{const{address:address,addressCont:addressCont,aria:aria={},city:city,className:className,data:data={},dark:dark=false,emphasis:emphasis="street",htmlOptions:htmlOptions={},homeId:homeId,homeUrl:homeUrl,target:target,newWindow:newWindow,houseStyle:houseStyle,state:state,zipcode:zipcode,territory:territory}=props;const classes=(className2,dark2)=>classnames({pb_home_address_street:!dark2,pb_home_address_street_dark:dark2},globalProps(props),className2);const dataProps=buildDataProps(data);const ariaProps=buildAriaProps(aria);const htmlProps=buildHtmlProps(htmlOptions);const getTargetAttribute=()=>{if(target&&homeUrl){return target}else if(newWindow){return"_blank"}else{return"_self"}};return jsxs("div",{className:classes(className,dark),...ariaProps,...dataProps,...htmlProps,children:[emphasis=="street"&&jsxs("div",{children:[jsx(Title,{className:"pb_home_address_street_address",dark:dark,size:4,children:joinPresent([titleize(address),houseStyle]," · ")}),jsx(Title,{className:"pb_home_address_street_address",dark:dark,size:4,children:titleize(addressCont)}),jsx(Body$1,{color:"light",children:`${titleize(city)}, ${state} ${zipcode}`})]}),emphasis=="city"&&jsxs("div",{children:[jsx(Body$1,{color:"light",children:joinPresent([titleize(address),houseStyle]," · ")}),jsx(Body$1,{color:"light",children:titleize(addressCont)}),jsxs("div",{children:[jsx(Title,{className:"pb_home_address_street_address",dark:dark,size:4,tag:"span",children:`${titleize(city)}, ${state}`}),jsx(Body$1,{color:"light",tag:"span",children:` ${zipcode}`})]})]}),homeId&&jsx(Hashtag,{classname:"home-hashtag",dark:dark,marginRight:"xxs",newWindow:newWindow,target:getTargetAttribute(),text:homeId,type:"home",url:homeUrl||"#"}),jsx(Body$1,{color:"light",tag:"span",children:jsx("small",{children:territory})})]})};const IconStatValue=props=>{const{aria:aria={},className:className,data:data={},dark:dark=false,htmlOptions:htmlOptions={},icon:icon,id:id,orientation:orientation="horizontal",size:size="sm",text:text2="",unit:unit="",value:value=0,variant:variant="lighter"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_icon_stat_value_kit",orientation,size,variant),globalProps(props),className);const titleSize=function(size2){if(size2=="lg"){return jsx(Title,{dark:dark,size:1,tag:"span",text:`${value}`})}else if(size2=="md"){return jsx(Title,{dark:dark,size:2,tag:"span",text:`${value}`})}else{return jsx(Title,{dark:dark,size:3,tag:"span",text:`${value}`})}};return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[jsx(IconCircle,{dark:dark,icon:icon,size:size,variant:variant}),jsxs("div",{children:[jsxs(Flex,{align:"baseline",children:[titleSize(size)," ",jsx(Body$1,{dark:dark,text:unit})]}),jsx(Caption,{dark:dark,text:text2})]})]})};const IconValue=props=>{const{align:align="left",aria:aria={},className:className,dark:dark,data:data={},htmlOptions:htmlOptions={},icon:icon,id:id,text:text2}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_icon_value_kit",align),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs(Body$1,{color:"light",dark:dark,children:[jsx(Icon,{dark:dark,fixedWidth:true,icon:icon}),text2]})})};const Pill=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,text:text2,variant:variant="neutral",textTransform:textTransform="lowercase"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_pill_kit",variant,textTransform),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx(Title,{className:"pb_pill_text",size:4,tag:"div",text:text2})})};const LabelPill=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,label:label,pillValue:pillValue,variant:variant="neutral"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css=classnames("pb_label_pill_kit",globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:css,id:id,children:[jsx(Caption,{className:"pb_label_pill_label",text:label}),jsx(Pill,{className:"pb_label_pill_pill",text:pillValue,variant:variant})]})};const dateString=value=>{const month=DateTime$1.toMonthNum(value);const day=DateTime$1.toDay(value);return` · ${month}/${day}`};const LabelValue=props=>{const{active:active=false,aria:aria={},className:className,dark:dark=false,data:data={},date:date,description:description,htmlOptions:htmlOptions={},icon:icon,id:id,label:label,title:title,value:value,variant:variant="default"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const variantClass=variant==="details"?"details":"";const classes=classnames(buildCss("pb_label_value_kit",variantClass),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,title:title,children:[jsx(Caption,{dark:dark,text:label}),variant==="details"?jsxs(Flex,{inline:true,vertical:"center",children:[icon&&jsx(Body$1,{color:"light",dark:dark,marginRight:"xs",children:jsx(Icon,{dark:dark,fixedWidth:true,icon:icon})}),description&&jsx(Body$1,{color:"light",dark:dark,marginRight:"xs",text:description}),active===true?jsxs(Flex,{inline:true,vertical:"center",children:[title&&jsx(Title,{dark:dark,size:4,text:title,variant:"link"}),date&&jsx(Title,{dark:dark,marginLeft:"xs",size:4,text:" "+dateString(date),variant:"link"})]}):jsxs(Fragment,{children:[title&&jsx(Title,{dark:dark,size:4,text:title}),date&&jsx(Title,{dark:dark,marginLeft:"xs",size:4,text:" "+dateString(date)})]})]}):jsx(Body$1,{dark:dark,text:value})]})};const Side=props=>{const{children:children,className:className}=props;return jsx("div",{className:classnames("layout_sidebar",globalProps(props),className),children:children})};const Body=props=>{const{children:children,className:className}=props;return jsx("div",{className:classnames("layout_body",globalProps(props),className),children:children})};const Item=props=>{const{children:children,className:className,size:size="sm"}=props;const sizeClass=`size_${size}`;return jsx("div",{className:classnames("layout_item",sizeClass,globalProps(props),className),children:children})};const Header=props=>{const{children:children,className:className}=props;return jsx("div",{className:classnames("layout_header",globalProps(props),className),children:children})};const Footer=props=>{const{children:children,className:className}=props;return jsx("div",{className:classnames("layout_footer",globalProps(props),className),children:children})};const Layout=props=>{const{aria:aria={},children:children,className:className,collapse:collapse="md",dark:dark=false,data:data={},full:full=false,htmlOptions:htmlOptions={},position:position="left",responsive:responsive=false,size:size="md",layout:layout="sidebar",variant:variant="light",transparent:transparent=false}=props;const responsiveClass=responsive?"_responsive":"";const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const layoutCss=layout=="collection"?`pb_layout_kit_${layout}`:layout=="kanban"?`pb_layout_kit_${layout}${responsiveClass}`:buildCss(`pb_layout_kit_${layout}`,`size_${size}`,position,variant,{dark:dark,transparent:transparent,full:full});const layoutCollapseCss=layout=="collection"?"":layout=="kanban"?"":buildCss("layout",position,"collapse",collapse);const layoutChildren=React__default.Children.toArray(children);const subComponentTags=tagName=>layoutChildren.filter((c=>{var _a;return((_a=c.type)==null?void 0:_a.displayName)===tagName})).map(((child,i)=>React__default.cloneElement(child,{key:`${tagName.toLowerCase()}-${i}`})));const nonSideChildren=layoutChildren.filter((child=>{var _a;return((_a=child.type)==null?void 0:_a.displayName)!=="Side"}));const filteredProps={...props};filteredProps==null?true:delete filteredProps.position;return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classnames(layoutCss,layoutCollapseCss,className,globalProps(filteredProps)),children:[subComponentTags("Side"),nonSideChildren]})};Layout.Side=Side;Layout.Body=Body;Layout.Item=Item;Layout.Header=Header;Layout.Footer=Footer;const useKbdControls=api=>{const[cmdKey,setCmdKey]=useState("");useEffect((()=>{const handleKeyDown=({key:key})=>{const keyCmd=key.toLowerCase();setCmdKey(keyCmd);switch(keyCmd){case"escape":{api.onClose();break}case"arrowleft":{api.onArrowLeft();break}case"arrowright":{api.onArrowRight();break}}};window.addEventListener("keydown",handleKeyDown);return()=>{window.removeEventListener("keydown",handleKeyDown)}}),[api]);return cmdKey};const LightboxContext=React__default.createContext({});const LightboxHeader=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},onClickRight:onClickRight,spacing:spacing="between",text:text2,navRight:navRight,title:title,closeable:closeable=true,icon:icon="times"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const api=useContext(LightboxContext);const headerCSS=buildCss("lightbox_header");const headerSpacing=globalProps(props,{paddingY:"sm"});const handleOnLightboxClose=()=>api.onClose();const HeaderBody=()=>jsxs(React__default.Fragment,{children:[jsx(FlexItem,{flex:"1",marginLeft:"sm",children:jsx(CircleIconButton,{dark:true,icon:icon,onClick:handleOnLightboxClose,variant:"link"})}),title&&text2&&jsx(FlexItem,{flex:"5",children:jsx(Flex,{justify:"center",children:jsxs(Flex,{align:"center",orientation:"column",children:[typeof title==="string"?jsx(Title,{dark:true,paddingBottom:"xxs",size:4,text:title}):jsx(Flex,{className:"custom-header",justify:"center",children:title}),typeof text2==="string"?jsx(Caption,{dark:true,children:text2}):jsx(Flex,{className:"custom-header",justify:"center",children:text2})]})})}),jsx(FlexItem,{flex:"1",children:jsx(Flex,{justify:"end",children:jsx(Button,{className:"nav-right-btn",dark:true,htmlType:"button",onClick:onClickRight,text:navRight,variant:"link"})})})]});return jsx("div",{className:"carousel-header",children:jsxs(Flex,{...ariaProps,...dataProps,...htmlProps,className:classnames(headerCSS,headerSpacing,className),spacing:spacing,children:[closeable&&jsx(HeaderBody,{}),children]})})};var roundNumber=function(num,decimal){return Number(num.toFixed(decimal))};var checkIsNumber=function(num,defaultValue){return defaultValue};var handleCallback=function(context,event,callback){if(callback&&typeof callback==="function"){callback(context,event)}};var easeOut=function(t){return-Math.cos(t*Math.PI)/2+.5};var linear=function(t){return t};var easeInQuad=function(t){return t*t};var easeOutQuad=function(t){return t*(2-t)};var easeInOutQuad=function(t){return t<.5?2*t*t:-1+(4-2*t)*t};var easeInCubic=function(t){return t*t*t};var easeOutCubic=function(t){return--t*t*t+1};var easeInOutCubic=function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1};var easeInQuart=function(t){return t*t*t*t};var easeOutQuart=function(t){return 1- --t*t*t*t};var easeInOutQuart=function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t};var easeInQuint=function(t){return t*t*t*t*t};var easeOutQuint=function(t){return 1+--t*t*t*t*t};var easeInOutQuint=function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t};var animations={easeOut:easeOut,linear:linear,easeInQuad:easeInQuad,easeOutQuad:easeOutQuad,easeInOutQuad:easeInOutQuad,easeInCubic:easeInCubic,easeOutCubic:easeOutCubic,easeInOutCubic:easeInOutCubic,easeInQuart:easeInQuart,easeOutQuart:easeOutQuart,easeInOutQuart:easeInOutQuart,easeInQuint:easeInQuint,easeOutQuint:easeOutQuint,easeInOutQuint:easeInOutQuint};var handleCancelAnimationFrame=function(animation){if(typeof animation==="number"){cancelAnimationFrame(animation)}};var handleCancelAnimation=function(contextInstance){if(!contextInstance.mounted)return;handleCancelAnimationFrame(contextInstance.animation);contextInstance.animate=false;contextInstance.animation=null;contextInstance.velocity=null};function handleSetupAnimation(contextInstance,animationName,animationTime,callback){if(!contextInstance.mounted)return;var startTime=(new Date).getTime();var lastStep=1;handleCancelAnimation(contextInstance);contextInstance.animation=function(){if(!contextInstance.mounted){return handleCancelAnimationFrame(contextInstance.animation)}var frameTime=(new Date).getTime()-startTime;var animationProgress=frameTime/animationTime;var animationType=animations[animationName];var step=animationType(animationProgress);if(frameTime>=animationTime){callback(lastStep);contextInstance.animation=null}else if(contextInstance.animation){callback(step);requestAnimationFrame(contextInstance.animation)}};requestAnimationFrame(contextInstance.animation)}function isValidTargetState(targetState){var scale=targetState.scale,positionX=targetState.positionX,positionY=targetState.positionY;if(Number.isNaN(scale)||Number.isNaN(positionX)||Number.isNaN(positionY)){return false}return true}function animate(contextInstance,targetState,animationTime,animationName){var isValid=isValidTargetState(targetState);if(!contextInstance.mounted||!isValid)return;var setTransformState=contextInstance.setTransformState;var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;var scaleDiff=targetState.scale-scale;var positionXDiff=targetState.positionX-positionX;var positionYDiff=targetState.positionY-positionY;if(animationTime===0){setTransformState(targetState.scale,targetState.positionX,targetState.positionY)}else{handleSetupAnimation(contextInstance,animationName,animationTime,(function(step){var newScale=scale+scaleDiff*step;var newPositionX=positionX+positionXDiff*step;var newPositionY=positionY+positionYDiff*step;setTransformState(newScale,newPositionX,newPositionY)}))}}function getComponentsSizes(wrapperComponent,contentComponent,newScale){var wrapperWidth=wrapperComponent.offsetWidth;var wrapperHeight=wrapperComponent.offsetHeight;var contentWidth=contentComponent.offsetWidth;var contentHeight=contentComponent.offsetHeight;var newContentWidth=contentWidth*newScale;var newContentHeight=contentHeight*newScale;var newDiffWidth=wrapperWidth-newContentWidth;var newDiffHeight=wrapperHeight-newContentHeight;return{wrapperWidth:wrapperWidth,wrapperHeight:wrapperHeight,newContentWidth:newContentWidth,newDiffWidth:newDiffWidth,newContentHeight:newContentHeight,newDiffHeight:newDiffHeight}}var getBounds=function(wrapperWidth,newContentWidth,diffWidth,wrapperHeight,newContentHeight,diffHeight,centerZoomedOut){var scaleWidthFactor=wrapperWidth>newContentWidth?diffWidth*(centerZoomedOut?1:.5):0;var scaleHeightFactor=wrapperHeight>newContentHeight?diffHeight*(centerZoomedOut?1:.5):0;var minPositionX=wrapperWidth-newContentWidth-scaleWidthFactor;var maxPositionX=scaleWidthFactor;var minPositionY=wrapperHeight-newContentHeight-scaleHeightFactor;var maxPositionY=scaleHeightFactor;return{minPositionX:minPositionX,maxPositionX:maxPositionX,minPositionY:minPositionY,maxPositionY:maxPositionY}};var calculateBounds=function(contextInstance,newScale){var wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent;var centerZoomedOut=contextInstance.setup.centerZoomedOut;if(!wrapperComponent||!contentComponent){throw new Error("Components are not mounted")}var _a=getComponentsSizes(wrapperComponent,contentComponent,newScale),wrapperWidth=_a.wrapperWidth,wrapperHeight=_a.wrapperHeight,newContentWidth=_a.newContentWidth,newDiffWidth=_a.newDiffWidth,newContentHeight=_a.newContentHeight,newDiffHeight=_a.newDiffHeight;var bounds=getBounds(wrapperWidth,newContentWidth,newDiffWidth,wrapperHeight,newContentHeight,newDiffHeight,Boolean(centerZoomedOut));return bounds};var boundLimiter=function(value,minBound,maxBound,isActive){if(!isActive)return roundNumber(value,2);if(value<minBound)return roundNumber(minBound,2);if(value>maxBound)return roundNumber(maxBound,2);return roundNumber(value,2)};var handleCalculateBounds=function(contextInstance,newScale){var bounds=calculateBounds(contextInstance,newScale);contextInstance.bounds=bounds;return bounds};function getMouseBoundedPosition(positionX,positionY,bounds,limitToBounds,paddingValueX,paddingValueY,wrapperComponent){var minPositionX=bounds.minPositionX,minPositionY=bounds.minPositionY,maxPositionX=bounds.maxPositionX,maxPositionY=bounds.maxPositionY;var paddingX=0;var paddingY=0;if(wrapperComponent){paddingX=paddingValueX;paddingY=paddingValueY}var x=boundLimiter(positionX,minPositionX-paddingX,maxPositionX+paddingX,limitToBounds);var y=boundLimiter(positionY,minPositionY-paddingY,maxPositionY+paddingY,limitToBounds);return{x:x,y:y}}function handleCalculateZoomPositions(contextInstance,mouseX,mouseY,newScale,bounds,limitToBounds){var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;var scaleDifference=newScale-scale;if(typeof mouseX!=="number"||typeof mouseY!=="number"){console.error("Mouse X and Y position were not provided!");return{x:positionX,y:positionY}}var calculatedPositionX=positionX-mouseX*scaleDifference;var calculatedPositionY=positionY-mouseY*scaleDifference;var newPositions=getMouseBoundedPosition(calculatedPositionX,calculatedPositionY,bounds,limitToBounds,0,0,null);return newPositions}function checkZoomBounds(zoom,minScale,maxScale,zoomPadding,enablePadding){var scalePadding=enablePadding?zoomPadding:0;var minScaleWithPadding=minScale-scalePadding;if(!Number.isNaN(maxScale)&&zoom>=maxScale)return maxScale;if(!Number.isNaN(minScale)&&zoom<=minScaleWithPadding)return minScaleWithPadding;return zoom}var isPanningStartAllowed=function(contextInstance,event){var excluded=contextInstance.setup.panning.excluded;var isInitialized=contextInstance.isInitialized,wrapperComponent=contextInstance.wrapperComponent;var target=event.target;var isWrapperChild=wrapperComponent===null||wrapperComponent===void 0?void 0:wrapperComponent.contains(target);var isAllowed=isInitialized&&target&&isWrapperChild;if(!isAllowed)return false;var isExcluded=isExcludedNode(target,excluded);if(isExcluded)return false;return true};var isPanningAllowed=function(contextInstance){var isInitialized=contextInstance.isInitialized,isPanning=contextInstance.isPanning,setup=contextInstance.setup;var disabled=setup.panning.disabled;var isAllowed=isInitialized&&isPanning&&!disabled;if(!isAllowed)return false;return true};var handlePanningSetup=function(contextInstance,event){var _a=contextInstance.transformState,positionX=_a.positionX,positionY=_a.positionY;contextInstance.isPanning=true;var x=event.clientX;var y=event.clientY;contextInstance.startCoords={x:x-positionX,y:y-positionY}};var handleTouchPanningSetup=function(contextInstance,event){var touches=event.touches;var _a=contextInstance.transformState,positionX=_a.positionX,positionY=_a.positionY;contextInstance.isPanning=true;var oneFingerTouch=touches.length===1;if(oneFingerTouch){var x=touches[0].clientX;var y=touches[0].clientY;contextInstance.startCoords={x:x-positionX,y:y-positionY}}};function handlePanToBounds(contextInstance){var _a=contextInstance.transformState,positionX=_a.positionX,positionY=_a.positionY,scale=_a.scale;var _b=contextInstance.setup,disabled=_b.disabled,limitToBounds=_b.limitToBounds,centerZoomedOut=_b.centerZoomedOut;var wrapperComponent=contextInstance.wrapperComponent;if(disabled||!wrapperComponent||!contextInstance.bounds)return;var _c=contextInstance.bounds,maxPositionX=_c.maxPositionX,minPositionX=_c.minPositionX,maxPositionY=_c.maxPositionY,minPositionY=_c.minPositionY;var xChanged=positionX>maxPositionX||positionX<minPositionX;var yChanged=positionY>maxPositionY||positionY<minPositionY;var mousePosX=positionX>maxPositionX?wrapperComponent.offsetWidth:contextInstance.setup.minPositionX||0;var mousePosY=positionY>maxPositionY?wrapperComponent.offsetHeight:contextInstance.setup.minPositionY||0;var _d=handleCalculateZoomPositions(contextInstance,mousePosX,mousePosY,scale,contextInstance.bounds,limitToBounds||centerZoomedOut),x=_d.x,y=_d.y;return{scale:scale,positionX:xChanged?x:positionX,positionY:yChanged?y:positionY}}function handleNewPosition(contextInstance,newPositionX,newPositionY,paddingValueX,paddingValueY){var limitToBounds=contextInstance.setup.limitToBounds;var wrapperComponent=contextInstance.wrapperComponent,bounds=contextInstance.bounds;var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;if(wrapperComponent===null||bounds===null||newPositionX===positionX&&newPositionY===positionY){return}var _b=getMouseBoundedPosition(newPositionX,newPositionY,bounds,limitToBounds,paddingValueX,paddingValueY,wrapperComponent),x=_b.x,y=_b.y;contextInstance.setTransformState(scale,x,y)}var getPanningClientPosition=function(contextInstance,clientX,clientY){var startCoords=contextInstance.startCoords,transformState=contextInstance.transformState;var panning=contextInstance.setup.panning;var lockAxisX=panning.lockAxisX,lockAxisY=panning.lockAxisY;var positionX=transformState.positionX,positionY=transformState.positionY;if(!startCoords){return{x:positionX,y:positionY}}var mouseX=clientX-startCoords.x;var mouseY=clientY-startCoords.y;var newPositionX=lockAxisX?positionX:mouseX;var newPositionY=lockAxisY?positionY:mouseY;return{x:newPositionX,y:newPositionY}};var getPaddingValue=function(contextInstance,size){var setup=contextInstance.setup,transformState=contextInstance.transformState;var scale=transformState.scale;var minScale=setup.minScale,disablePadding=setup.disablePadding;if(size>0&&scale>=minScale&&!disablePadding){return size}return 0};var isVelocityCalculationAllowed=function(contextInstance){var mounted=contextInstance.mounted;var _a=contextInstance.setup,disabled=_a.disabled,velocityAnimation=_a.velocityAnimation;var scale=contextInstance.transformState.scale;var disabledVelocity=velocityAnimation.disabled;var isAllowed=!disabledVelocity||scale>1||!disabled||mounted;if(!isAllowed)return false;return true};var isVelocityAllowed=function(contextInstance){var mounted=contextInstance.mounted,velocity=contextInstance.velocity,bounds=contextInstance.bounds;var _a=contextInstance.setup,disabled=_a.disabled,velocityAnimation=_a.velocityAnimation;var scale=contextInstance.transformState.scale;var disabledVelocity=velocityAnimation.disabled;var isAllowed=!disabledVelocity||scale>1||!disabled||mounted;if(!isAllowed)return false;if(!velocity||!bounds)return false;return true};function getVelocityMoveTime(contextInstance,velocity){var velocityAnimation=contextInstance.setup.velocityAnimation;var equalToMove=velocityAnimation.equalToMove,animationTime=velocityAnimation.animationTime,sensitivity=velocityAnimation.sensitivity;if(equalToMove){return animationTime*velocity*sensitivity}return animationTime}function getVelocityPosition(newPosition,startPosition,currentPosition,isLocked,limitToBounds,minPosition,maxPosition,minTarget,maxTarget,step){if(limitToBounds){if(startPosition>maxPosition&&currentPosition>maxPosition){var calculatedPosition=maxPosition+(newPosition-maxPosition)*step;if(calculatedPosition>maxTarget)return maxTarget;if(calculatedPosition<maxPosition)return maxPosition;return calculatedPosition}if(startPosition<minPosition&&currentPosition<minPosition){var calculatedPosition=minPosition+(newPosition-minPosition)*step;if(calculatedPosition<minTarget)return minTarget;if(calculatedPosition>minPosition)return minPosition;return calculatedPosition}}if(isLocked)return startPosition;return boundLimiter(newPosition,minPosition,maxPosition,limitToBounds)}function getSizeMultiplier(wrapperComponent,equalToMove){var defaultMultiplier=1;if(equalToMove){return Math.min(defaultMultiplier,wrapperComponent.offsetWidth/window.innerWidth)}return defaultMultiplier}function handleCalculateVelocity(contextInstance,position){var isAllowed=isVelocityCalculationAllowed(contextInstance);if(!isAllowed){return}var lastMousePosition=contextInstance.lastMousePosition,velocityTime=contextInstance.velocityTime,setup=contextInstance.setup;var wrapperComponent=contextInstance.wrapperComponent;var equalToMove=setup.velocityAnimation.equalToMove;var now=Date.now();if(lastMousePosition&&velocityTime&&wrapperComponent){var sizeMultiplier=getSizeMultiplier(wrapperComponent,equalToMove);var distanceX=position.x-lastMousePosition.x;var distanceY=position.y-lastMousePosition.y;var velocityX=distanceX/sizeMultiplier;var velocityY=distanceY/sizeMultiplier;var interval=now-velocityTime;var speed=distanceX*distanceX+distanceY*distanceY;var velocity=Math.sqrt(speed)/interval;contextInstance.velocity={velocityX:velocityX,velocityY:velocityY,total:velocity}}contextInstance.lastMousePosition=position;contextInstance.velocityTime=now}function handleVelocityPanning(contextInstance){var velocity=contextInstance.velocity,bounds=contextInstance.bounds,setup=contextInstance.setup,wrapperComponent=contextInstance.wrapperComponent;var isAllowed=isVelocityAllowed(contextInstance);if(!isAllowed||!velocity||!bounds||!wrapperComponent){return}var velocityX=velocity.velocityX,velocityY=velocity.velocityY,total=velocity.total;var maxPositionX=bounds.maxPositionX,minPositionX=bounds.minPositionX,maxPositionY=bounds.maxPositionY,minPositionY=bounds.minPositionY;var limitToBounds=setup.limitToBounds,alignmentAnimation=setup.alignmentAnimation;var zoomAnimation=setup.zoomAnimation,panning=setup.panning;var lockAxisY=panning.lockAxisY,lockAxisX=panning.lockAxisX;var animationType=zoomAnimation.animationType;var sizeX=alignmentAnimation.sizeX,sizeY=alignmentAnimation.sizeY,velocityAlignmentTime=alignmentAnimation.velocityAlignmentTime;var alignAnimationTime=velocityAlignmentTime;var moveAnimationTime=getVelocityMoveTime(contextInstance,total);var finalAnimationTime=Math.max(moveAnimationTime,alignAnimationTime);var paddingValueX=getPaddingValue(contextInstance,sizeX);var paddingValueY=getPaddingValue(contextInstance,sizeY);var paddingX=paddingValueX*wrapperComponent.offsetWidth/100;var paddingY=paddingValueY*wrapperComponent.offsetHeight/100;var maxTargetX=maxPositionX+paddingX;var minTargetX=minPositionX-paddingX;var maxTargetY=maxPositionY+paddingY;var minTargetY=minPositionY-paddingY;var startState=contextInstance.transformState;var startTime=(new Date).getTime();handleSetupAnimation(contextInstance,animationType,finalAnimationTime,(function(step){var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;var frameTime=(new Date).getTime()-startTime;var animationProgress=frameTime/alignAnimationTime;var alignAnimation=animations[alignmentAnimation.animationType];var alignStep=1-alignAnimation(Math.min(1,animationProgress));var customStep=1-step;var newPositionX=positionX+velocityX*customStep;var newPositionY=positionY+velocityY*customStep;var currentPositionX=getVelocityPosition(newPositionX,startState.positionX,positionX,lockAxisX,limitToBounds,minPositionX,maxPositionX,minTargetX,maxTargetX,alignStep);var currentPositionY=getVelocityPosition(newPositionY,startState.positionY,positionY,lockAxisY,limitToBounds,minPositionY,maxPositionY,minTargetY,maxTargetY,alignStep);if(positionX!==newPositionX||positionY!==newPositionY){contextInstance.setTransformState(scale,currentPositionX,currentPositionY)}}))}function handlePanningStart(contextInstance,event){var scale=contextInstance.transformState.scale;handleCancelAnimation(contextInstance);handleCalculateBounds(contextInstance,scale);if(window.TouchEvent!==void 0&&event instanceof TouchEvent){handleTouchPanningSetup(contextInstance,event)}else{handlePanningSetup(contextInstance,event)}}function handleAlignToBounds(contextInstance){var scale=contextInstance.transformState.scale;var _a=contextInstance.setup,minScale=_a.minScale,alignmentAnimation=_a.alignmentAnimation;var disabled=alignmentAnimation.disabled,sizeX=alignmentAnimation.sizeX,sizeY=alignmentAnimation.sizeY,animationTime=alignmentAnimation.animationTime,animationType=alignmentAnimation.animationType;var isDisabled=disabled||scale<minScale||!sizeX&&!sizeY;if(isDisabled)return;var targetState=handlePanToBounds(contextInstance);if(targetState){animate(contextInstance,targetState,animationTime,animationType)}}function handlePanning(contextInstance,clientX,clientY){var startCoords=contextInstance.startCoords,setup=contextInstance.setup;var _a=setup.alignmentAnimation,sizeX=_a.sizeX,sizeY=_a.sizeY;if(!startCoords)return;var _b=getPanningClientPosition(contextInstance,clientX,clientY),x=_b.x,y=_b.y;var paddingValueX=getPaddingValue(contextInstance,sizeX);var paddingValueY=getPaddingValue(contextInstance,sizeY);handleCalculateVelocity(contextInstance,{x:x,y:y});handleNewPosition(contextInstance,x,y,paddingValueX,paddingValueY)}function handlePanningEnd(contextInstance){if(contextInstance.isPanning){var velocityDisabled=contextInstance.setup.panning.velocityDisabled;var velocity=contextInstance.velocity,wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent;contextInstance.isPanning=false;contextInstance.animate=false;contextInstance.animation=null;var wrapperRect=wrapperComponent===null||wrapperComponent===void 0?void 0:wrapperComponent.getBoundingClientRect();var contentRect=contentComponent===null||contentComponent===void 0?void 0:contentComponent.getBoundingClientRect();var wrapperWidth=(wrapperRect===null||wrapperRect===void 0?void 0:wrapperRect.width)||0;var wrapperHeight=(wrapperRect===null||wrapperRect===void 0?void 0:wrapperRect.height)||0;var contentWidth=(contentRect===null||contentRect===void 0?void 0:contentRect.width)||0;var contentHeight=(contentRect===null||contentRect===void 0?void 0:contentRect.height)||0;var isZoomed=wrapperWidth<contentWidth||wrapperHeight<contentHeight;var shouldAnimate=!velocityDisabled&&velocity&&(velocity===null||velocity===void 0?void 0:velocity.total)>.1&&isZoomed;if(shouldAnimate){handleVelocityPanning(contextInstance)}else{handleAlignToBounds(contextInstance)}}}function handleZoomToPoint(contextInstance,scale,mouseX,mouseY){var _a=contextInstance.setup,minScale=_a.minScale,maxScale=_a.maxScale,limitToBounds=_a.limitToBounds;var newScale=checkZoomBounds(roundNumber(scale,2),minScale,maxScale,0,false);var bounds=handleCalculateBounds(contextInstance,newScale);var _b=handleCalculateZoomPositions(contextInstance,mouseX,mouseY,newScale,bounds,limitToBounds),x=_b.x,y=_b.y;return{scale:newScale,positionX:x,positionY:y}}function handleAlignToScaleBounds(contextInstance,mousePositionX,mousePositionY){var scale=contextInstance.transformState.scale;var wrapperComponent=contextInstance.wrapperComponent;var _a=contextInstance.setup,minScale=_a.minScale,limitToBounds=_a.limitToBounds,zoomAnimation=_a.zoomAnimation;var disabled=zoomAnimation.disabled,animationTime=zoomAnimation.animationTime,animationType=zoomAnimation.animationType;var isDisabled=disabled||scale>=minScale;if(scale>=1||limitToBounds){handleAlignToBounds(contextInstance)}if(isDisabled||!wrapperComponent||!contextInstance.mounted)return;var mouseX=mousePositionX||wrapperComponent.offsetWidth/2;var mouseY=mousePositionY||wrapperComponent.offsetHeight/2;var targetState=handleZoomToPoint(contextInstance,minScale,mouseX,mouseY);if(targetState){animate(contextInstance,targetState,animationTime,animationType)}}var __assign=function(){__assign=Object.assign||function __assign2(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};return __assign.apply(this,arguments)};function __spreadArray(to,from,pack){for(var i=0,l=from.length,ar;i<l;i++){if(ar||!(i in from)){if(!ar)ar=Array.prototype.slice.call(from,0,i);ar[i]=from[i]}}return to.concat(ar||Array.prototype.slice.call(from))}var initialState={previousScale:1,scale:1,positionX:0,positionY:0};var initialSetup={disabled:false,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:true,centerZoomedOut:false,centerOnInit:false,disablePadding:false,wheel:{step:.2,disabled:false,wheelDisabled:false,touchPadDisabled:false,activationKeys:[],excluded:[]},panning:{disabled:false,velocityDisabled:false,lockAxisX:false,lockAxisY:false,activationKeys:[],excluded:[]},pinch:{step:5,disabled:false,excluded:[]},doubleClick:{disabled:false,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:false,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:false,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:false,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:true}};var createState=function(props){var _a,_b,_c,_d;return{previousScale:(_a=props.initialScale)!==null&&_a!==void 0?_a:initialState.scale,scale:(_b=props.initialScale)!==null&&_b!==void 0?_b:initialState.scale,positionX:(_c=props.initialPositionX)!==null&&_c!==void 0?_c:initialState.positionX,positionY:(_d=props.initialPositionY)!==null&&_d!==void 0?_d:initialState.positionY}};var createSetup=function(props){var newSetup=__assign({},initialSetup);Object.keys(props).forEach((function(key){var validValue=typeof props[key]!=="undefined";var validParameter=typeof initialSetup[key]!=="undefined";if(validParameter&&validValue){var dataType=Object.prototype.toString.call(initialSetup[key]);var isObject2=dataType==="[object Object]";var isArray=dataType==="[object Array]";if(isObject2){newSetup[key]=__assign(__assign({},initialSetup[key]),props[key])}else if(isArray){newSetup[key]=__spreadArray(__spreadArray([],initialSetup[key],true),props[key])}else{newSetup[key]=props[key]}}}));return newSetup};var handleCalculateButtonZoom=function(contextInstance,delta,step){var scale=contextInstance.transformState.scale;var wrapperComponent=contextInstance.wrapperComponent,setup=contextInstance.setup;var maxScale=setup.maxScale,minScale=setup.minScale,zoomAnimation=setup.zoomAnimation;var size=zoomAnimation.size;if(!wrapperComponent){throw new Error("Wrapper is not mounted")}var targetScale=scale*Math.exp(delta*step);var newScale=checkZoomBounds(roundNumber(targetScale,3),minScale,maxScale,size,false);return newScale};function handleZoomToViewCenter(contextInstance,delta,step,animationTime,animationType){var wrapperComponent=contextInstance.wrapperComponent;var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;if(!wrapperComponent)return console.error("No WrapperComponent found");var wrapperWidth=wrapperComponent.offsetWidth;var wrapperHeight=wrapperComponent.offsetHeight;var mouseX=(wrapperWidth/2-positionX)/scale;var mouseY=(wrapperHeight/2-positionY)/scale;var newScale=handleCalculateButtonZoom(contextInstance,delta,step);var targetState=handleZoomToPoint(contextInstance,newScale,mouseX,mouseY);if(!targetState){return console.error("Error during zoom event. New transformation state was not calculated.")}animate(contextInstance,targetState,animationTime,animationType)}function resetTransformations(contextInstance,animationTime,animationType,onResetTransformation){var setup=contextInstance.setup,wrapperComponent=contextInstance.wrapperComponent;var limitToBounds=setup.limitToBounds;var initialTransformation=createState(contextInstance.props);var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;if(!wrapperComponent)return;var newBounds=calculateBounds(contextInstance,initialTransformation.scale);var boundedPositions=getMouseBoundedPosition(initialTransformation.positionX,initialTransformation.positionY,newBounds,limitToBounds,0,0,wrapperComponent);var newState={scale:initialTransformation.scale,positionX:boundedPositions.x,positionY:boundedPositions.y};if(scale===initialTransformation.scale&&positionX===initialTransformation.positionX&&positionY===initialTransformation.positionY){return}onResetTransformation===null||onResetTransformation===void 0?void 0:onResetTransformation();animate(contextInstance,newState,animationTime,animationType)}function getOffset(element,wrapper,content,state){var offset2=element.getBoundingClientRect();var wrapperOffset=wrapper.getBoundingClientRect();var contentOffset=content.getBoundingClientRect();var xOff=wrapperOffset.x*state.scale;var yOff=wrapperOffset.y*state.scale;return{x:(offset2.x-contentOffset.x+xOff)/state.scale,y:(offset2.y-contentOffset.y+yOff)/state.scale}}function calculateZoomToNode(contextInstance,node,customZoom){var wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent,transformState=contextInstance.transformState;var _a=contextInstance.setup,limitToBounds=_a.limitToBounds,minScale=_a.minScale,maxScale=_a.maxScale;if(!wrapperComponent||!contentComponent)return transformState;var wrapperRect=wrapperComponent.getBoundingClientRect();var nodeRect=node.getBoundingClientRect();var nodeOffset=getOffset(node,wrapperComponent,contentComponent,transformState);var nodeLeft=nodeOffset.x;var nodeTop=nodeOffset.y;var nodeWidth=nodeRect.width/transformState.scale;var nodeHeight=nodeRect.height/transformState.scale;var scaleX=wrapperComponent.offsetWidth/nodeWidth;var scaleY=wrapperComponent.offsetHeight/nodeHeight;var newScale=checkZoomBounds(customZoom||Math.min(scaleX,scaleY),minScale,maxScale,0,false);var offsetX=(wrapperRect.width-nodeWidth*newScale)/2;var offsetY=(wrapperRect.height-nodeHeight*newScale)/2;var newPositionX=(wrapperRect.left-nodeLeft)*newScale+offsetX;var newPositionY=(wrapperRect.top-nodeTop)*newScale+offsetY;var bounds=calculateBounds(contextInstance,newScale);var _b=getMouseBoundedPosition(newPositionX,newPositionY,bounds,limitToBounds,0,0,wrapperComponent),x=_b.x,y=_b.y;return{positionX:x,positionY:y,scale:newScale}}var zoomIn=function(contextInstance){return function(step,animationTime,animationType){if(step===void 0){step=.5}if(animationTime===void 0){animationTime=300}if(animationType===void 0){animationType="easeOut"}handleZoomToViewCenter(contextInstance,1,step,animationTime,animationType)}};var zoomOut=function(contextInstance){return function(step,animationTime,animationType){if(step===void 0){step=.5}if(animationTime===void 0){animationTime=300}if(animationType===void 0){animationType="easeOut"}handleZoomToViewCenter(contextInstance,-1,step,animationTime,animationType)}};var setTransform=function(contextInstance){return function(newPositionX,newPositionY,newScale,animationTime,animationType){if(animationTime===void 0){animationTime=300}if(animationType===void 0){animationType="easeOut"}var _a=contextInstance.transformState,positionX=_a.positionX,positionY=_a.positionY,scale=_a.scale;var wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent;var disabled=contextInstance.setup.disabled;if(disabled||!wrapperComponent||!contentComponent)return;var targetState={positionX:Number.isNaN(newPositionX)?positionX:newPositionX,positionY:Number.isNaN(newPositionY)?positionY:newPositionY,scale:Number.isNaN(newScale)?scale:newScale};animate(contextInstance,targetState,animationTime,animationType)}};var resetTransform=function(contextInstance){return function(animationTime,animationType){if(animationTime===void 0){animationTime=200}if(animationType===void 0){animationType="easeOut"}resetTransformations(contextInstance,animationTime,animationType)}};var centerView=function(contextInstance){return function(scale,animationTime,animationType){if(animationTime===void 0){animationTime=200}if(animationType===void 0){animationType="easeOut"}var transformState=contextInstance.transformState,wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent;if(wrapperComponent&&contentComponent){var targetState=getCenterPosition(scale||transformState.scale,wrapperComponent,contentComponent);animate(contextInstance,targetState,animationTime,animationType)}}};var zoomToElement=function(contextInstance){return function(node,scale,animationTime,animationType){if(animationTime===void 0){animationTime=600}if(animationType===void 0){animationType="easeOut"}handleCancelAnimation(contextInstance);var wrapperComponent=contextInstance.wrapperComponent;var target=typeof node==="string"?document.getElementById(node):node;if(wrapperComponent&&target&&wrapperComponent.contains(target)){var targetState=calculateZoomToNode(contextInstance,target,scale);animate(contextInstance,targetState,animationTime,animationType)}}};var getContext=function(contextInstance){return{instance:contextInstance,state:contextInstance.transformState,zoomIn:zoomIn(contextInstance),zoomOut:zoomOut(contextInstance),setTransform:setTransform(contextInstance),resetTransform:resetTransform(contextInstance),centerView:centerView(contextInstance),zoomToElement:zoomToElement(contextInstance)}};var passiveSupported=false;function makePassiveEventOption(){try{var options={get passive(){passiveSupported=true;return false}};return options}catch(err){passiveSupported=false;return passiveSupported}}var isExcludedNode=function(node,excluded){var targetTagName=node.tagName.toUpperCase();var isExcludedTag=excluded.find((function(tag){return tag.toUpperCase()===targetTagName}));if(isExcludedTag)return true;var isExcludedClassName=excluded.find((function(className){return node.classList.contains(className)}));if(isExcludedClassName)return true;return false};var cancelTimeout=function(timeout){if(timeout){clearTimeout(timeout)}};var getTransformStyles=function(x,y,scale){return"translate(".concat(x,"px, ").concat(y,"px) scale(").concat(scale,")")};var getCenterPosition=function(scale,wrapperComponent,contentComponent){var contentWidth=contentComponent.offsetWidth*scale;var contentHeight=contentComponent.offsetHeight*scale;var centerPositionX=(wrapperComponent.offsetWidth-contentWidth)/2;var centerPositionY=(wrapperComponent.offsetHeight-contentHeight)/2;return{scale:scale,positionX:centerPositionX,positionY:centerPositionY}};function mergeRefs(refs){return function(value){refs.forEach((function(ref){if(typeof ref==="function"){ref(value)}else if(ref!=null){ref.current=value}}))}}var isWheelAllowed=function(contextInstance,event){var _a=contextInstance.setup.wheel,disabled=_a.disabled,wheelDisabled=_a.wheelDisabled,touchPadDisabled=_a.touchPadDisabled,excluded=_a.excluded;var isInitialized=contextInstance.isInitialized,isPanning=contextInstance.isPanning;var target=event.target;var isAllowed=isInitialized&&!isPanning&&!disabled&&target;if(!isAllowed)return false;if(wheelDisabled&&!event.ctrlKey)return false;if(touchPadDisabled&&event.ctrlKey)return false;var isExcluded=isExcludedNode(target,excluded);if(isExcluded)return false;return true};var getDeltaY=function(event){if(event){return event.deltaY<0?1:-1}return 0};function getDelta(event,customDelta){var deltaY=getDeltaY(event);var delta=checkIsNumber(customDelta,deltaY);return delta}function getMousePosition(event,contentComponent,scale){var contentRect=contentComponent.getBoundingClientRect();var mouseX=0;var mouseY=0;if("clientX"in event){mouseX=(event.clientX-contentRect.left)/scale;mouseY=(event.clientY-contentRect.top)/scale}else{var touch=event.touches[0];mouseX=(touch.clientX-contentRect.left)/scale;mouseY=(touch.clientY-contentRect.top)/scale}if(Number.isNaN(mouseX)||Number.isNaN(mouseY))console.error("No mouse or touch offset found");return{x:mouseX,y:mouseY}}var handleCalculateWheelZoom=function(contextInstance,delta,step,disable,getTarget){var scale=contextInstance.transformState.scale;var wrapperComponent=contextInstance.wrapperComponent,setup=contextInstance.setup;var maxScale=setup.maxScale,minScale=setup.minScale,zoomAnimation=setup.zoomAnimation,disablePadding=setup.disablePadding;var size=zoomAnimation.size,disabled=zoomAnimation.disabled;if(!wrapperComponent){throw new Error("Wrapper is not mounted")}var targetScale=scale+delta*(scale-scale*step)*step;var paddingEnabled=disable?false:!disabled;var newScale=checkZoomBounds(roundNumber(targetScale,3),minScale,maxScale,size,paddingEnabled&&!disablePadding);return newScale};var handleWheelZoomStop=function(contextInstance,event){var previousWheelEvent=contextInstance.previousWheelEvent;var scale=contextInstance.transformState.scale;var _a=contextInstance.setup,maxScale=_a.maxScale,minScale=_a.minScale;if(!previousWheelEvent)return false;if(scale<maxScale||scale>minScale)return true;if(Math.sign(previousWheelEvent.deltaY)!==Math.sign(event.deltaY))return true;if(previousWheelEvent.deltaY>0&&previousWheelEvent.deltaY<event.deltaY)return true;if(previousWheelEvent.deltaY<0&&previousWheelEvent.deltaY>event.deltaY)return true;if(Math.sign(previousWheelEvent.deltaY)!==Math.sign(event.deltaY))return true;return false};var isPinchStartAllowed=function(contextInstance,event){var _a=contextInstance.setup.pinch,disabled=_a.disabled,excluded=_a.excluded;var isInitialized=contextInstance.isInitialized;var target=event.target;var isAllowed=isInitialized&&!disabled&&target;if(!isAllowed)return false;var isExcluded=isExcludedNode(target,excluded);if(isExcluded)return false;return true};var isPinchAllowed=function(contextInstance){var disabled=contextInstance.setup.pinch.disabled;var isInitialized=contextInstance.isInitialized,pinchStartDistance=contextInstance.pinchStartDistance;var isAllowed=isInitialized&&!disabled&&pinchStartDistance;if(!isAllowed)return false;return true};var calculateTouchMidPoint=function(event,scale,contentComponent){var contentRect=contentComponent.getBoundingClientRect();var touches=event.touches;var firstPointX=roundNumber(touches[0].clientX-contentRect.left,5);var firstPointY=roundNumber(touches[0].clientY-contentRect.top,5);var secondPointX=roundNumber(touches[1].clientX-contentRect.left,5);var secondPointY=roundNumber(touches[1].clientY-contentRect.top,5);return{x:(firstPointX+secondPointX)/2/scale,y:(firstPointY+secondPointY)/2/scale}};var getTouchDistance=function(event){return Math.sqrt(Math.pow(event.touches[0].pageX-event.touches[1].pageX,2)+Math.pow(event.touches[0].pageY-event.touches[1].pageY,2))};var calculatePinchZoom=function(contextInstance,currentDistance){var pinchStartScale=contextInstance.pinchStartScale,pinchStartDistance=contextInstance.pinchStartDistance,setup=contextInstance.setup;var maxScale=setup.maxScale,minScale=setup.minScale,zoomAnimation=setup.zoomAnimation,disablePadding=setup.disablePadding;var size=zoomAnimation.size,disabled=zoomAnimation.disabled;if(!pinchStartScale||pinchStartDistance===null||!currentDistance){throw new Error("Pinch touches distance was not provided")}if(currentDistance<0){return contextInstance.transformState.scale}var touchProportion=currentDistance/pinchStartDistance;var scaleDifference=touchProportion*pinchStartScale;return checkZoomBounds(roundNumber(scaleDifference,2),minScale,maxScale,size,!disabled&&!disablePadding)};var wheelStopEventTime=160;var wheelAnimationTime=100;var handleWheelStart=function(contextInstance,event){var _a=contextInstance.props,onWheelStart=_a.onWheelStart,onZoomStart=_a.onZoomStart;if(!contextInstance.wheelStopEventTimer){handleCancelAnimation(contextInstance);handleCallback(getContext(contextInstance),event,onWheelStart);handleCallback(getContext(contextInstance),event,onZoomStart)}};var handleWheelZoom=function(contextInstance,event){var _a=contextInstance.props,onWheel=_a.onWheel,onZoom=_a.onZoom;var contentComponent=contextInstance.contentComponent,setup=contextInstance.setup,transformState=contextInstance.transformState;var scale=transformState.scale;var limitToBounds=setup.limitToBounds,centerZoomedOut=setup.centerZoomedOut,zoomAnimation=setup.zoomAnimation,wheel=setup.wheel,disablePadding=setup.disablePadding;var size=zoomAnimation.size,disabled=zoomAnimation.disabled;var step=wheel.step;if(!contentComponent){throw new Error("Component not mounted")}event.preventDefault();event.stopPropagation();var delta=getDelta(event,null);var newScale=handleCalculateWheelZoom(contextInstance,delta,step,!event.ctrlKey);if(scale===newScale)return;var bounds=handleCalculateBounds(contextInstance,newScale);var mousePosition=getMousePosition(event,contentComponent,scale);var isPaddingDisabled=disabled||size===0||centerZoomedOut||disablePadding;var isLimitedToBounds=limitToBounds&&isPaddingDisabled;var _b=handleCalculateZoomPositions(contextInstance,mousePosition.x,mousePosition.y,newScale,bounds,isLimitedToBounds),x=_b.x,y=_b.y;contextInstance.previousWheelEvent=event;contextInstance.setTransformState(newScale,x,y);handleCallback(getContext(contextInstance),event,onWheel);handleCallback(getContext(contextInstance),event,onZoom)};var handleWheelStop=function(contextInstance,event){var _a=contextInstance.props,onWheelStop=_a.onWheelStop,onZoomStop=_a.onZoomStop;cancelTimeout(contextInstance.wheelAnimationTimer);contextInstance.wheelAnimationTimer=setTimeout((function(){if(!contextInstance.mounted)return;handleAlignToScaleBounds(contextInstance,event.x,event.y);contextInstance.wheelAnimationTimer=null}),wheelAnimationTime);var hasStoppedZooming=handleWheelZoomStop(contextInstance,event);if(hasStoppedZooming){cancelTimeout(contextInstance.wheelStopEventTimer);contextInstance.wheelStopEventTimer=setTimeout((function(){if(!contextInstance.mounted)return;contextInstance.wheelStopEventTimer=null;handleCallback(getContext(contextInstance),event,onWheelStop);handleCallback(getContext(contextInstance),event,onZoomStop)}),wheelStopEventTime)}};var handlePinchStart=function(contextInstance,event){var distance=getTouchDistance(event);contextInstance.pinchStartDistance=distance;contextInstance.lastDistance=distance;contextInstance.pinchStartScale=contextInstance.transformState.scale;contextInstance.isPanning=false;handleCancelAnimation(contextInstance)};var handlePinchZoom=function(contextInstance,event){var contentComponent=contextInstance.contentComponent,pinchStartDistance=contextInstance.pinchStartDistance;var scale=contextInstance.transformState.scale;var _a=contextInstance.setup,limitToBounds=_a.limitToBounds,centerZoomedOut=_a.centerZoomedOut,zoomAnimation=_a.zoomAnimation;var disabled=zoomAnimation.disabled,size=zoomAnimation.size;if(pinchStartDistance===null||!contentComponent)return;var midPoint=calculateTouchMidPoint(event,scale,contentComponent);if(!Number.isFinite(midPoint.x)||!Number.isFinite(midPoint.y))return;var currentDistance=getTouchDistance(event);var newScale=calculatePinchZoom(contextInstance,currentDistance);if(newScale===scale)return;var bounds=handleCalculateBounds(contextInstance,newScale);var isPaddingDisabled=disabled||size===0||centerZoomedOut;var isLimitedToBounds=limitToBounds&&isPaddingDisabled;var _b=handleCalculateZoomPositions(contextInstance,midPoint.x,midPoint.y,newScale,bounds,isLimitedToBounds),x=_b.x,y=_b.y;contextInstance.pinchMidpoint=midPoint;contextInstance.lastDistance=currentDistance;contextInstance.setTransformState(newScale,x,y)};var handlePinchStop=function(contextInstance){var pinchMidpoint=contextInstance.pinchMidpoint;contextInstance.velocity=null;contextInstance.lastDistance=null;contextInstance.pinchMidpoint=null;contextInstance.pinchStartScale=null;contextInstance.pinchStartDistance=null;handleAlignToScaleBounds(contextInstance,pinchMidpoint===null||pinchMidpoint===void 0?void 0:pinchMidpoint.x,pinchMidpoint===null||pinchMidpoint===void 0?void 0:pinchMidpoint.y)};var handleDoubleClickStop=function(contextInstance,event){var onZoomStop=contextInstance.props.onZoomStop;var animationTime=contextInstance.setup.doubleClick.animationTime;cancelTimeout(contextInstance.doubleClickStopEventTimer);contextInstance.doubleClickStopEventTimer=setTimeout((function(){contextInstance.doubleClickStopEventTimer=null;handleCallback(getContext(contextInstance),event,onZoomStop)}),animationTime)};var handleDoubleClickResetMode=function(contextInstance,event){var _a=contextInstance.props,onZoomStart=_a.onZoomStart,onZoom=_a.onZoom;var _b=contextInstance.setup.doubleClick,animationTime=_b.animationTime,animationType=_b.animationType;handleCallback(getContext(contextInstance),event,onZoomStart);resetTransformations(contextInstance,animationTime,animationType,(function(){return handleCallback(getContext(contextInstance),event,onZoom)}));handleDoubleClickStop(contextInstance,event)};function handleDoubleClick(contextInstance,event){var setup=contextInstance.setup,doubleClickStopEventTimer=contextInstance.doubleClickStopEventTimer,transformState=contextInstance.transformState,contentComponent=contextInstance.contentComponent;var scale=transformState.scale;var _a=contextInstance.props,onZoomStart=_a.onZoomStart,onZoom=_a.onZoom;var _b=setup.doubleClick,disabled=_b.disabled,mode=_b.mode,step=_b.step,animationTime=_b.animationTime,animationType=_b.animationType;if(disabled)return;if(doubleClickStopEventTimer)return;if(mode==="reset"){return handleDoubleClickResetMode(contextInstance,event)}if(!contentComponent)return console.error("No ContentComponent found");var delta=mode==="zoomOut"?-1:1;var newScale=handleCalculateButtonZoom(contextInstance,delta,step);if(scale===newScale)return;handleCallback(getContext(contextInstance),event,onZoomStart);var mousePosition=getMousePosition(event,contentComponent,scale);var targetState=handleZoomToPoint(contextInstance,newScale,mousePosition.x,mousePosition.y);if(!targetState){return console.error("Error during zoom event. New transformation state was not calculated.")}handleCallback(getContext(contextInstance),event,onZoom);animate(contextInstance,targetState,animationTime,animationType);handleDoubleClickStop(contextInstance,event)}var isDoubleClickAllowed=function(contextInstance,event){var isInitialized=contextInstance.isInitialized,setup=contextInstance.setup,wrapperComponent=contextInstance.wrapperComponent;var _a=setup.doubleClick,disabled=_a.disabled,excluded=_a.excluded;var target=event.target;var isWrapperChild=wrapperComponent===null||wrapperComponent===void 0?void 0:wrapperComponent.contains(target);var isAllowed=isInitialized&&target&&isWrapperChild&&!disabled;if(!isAllowed)return false;var isExcluded=isExcludedNode(target,excluded);if(isExcluded)return false;return true};var ZoomPanPinch=function(){function ZoomPanPinch2(props){var _this=this;this.mounted=true;this.onChangeCallbacks=new Set;this.wrapperComponent=null;this.contentComponent=null;this.isInitialized=false;this.bounds=null;this.previousWheelEvent=null;this.wheelStopEventTimer=null;this.wheelAnimationTimer=null;this.isPanning=false;this.startCoords=null;this.lastTouch=null;this.distance=null;this.lastDistance=null;this.pinchStartDistance=null;this.pinchStartScale=null;this.pinchMidpoint=null;this.doubleClickStopEventTimer=null;this.velocity=null;this.velocityTime=null;this.lastMousePosition=null;this.animate=false;this.animation=null;this.maxBounds=null;this.pressedKeys={};this.mount=function(){_this.initializeWindowEvents()};this.unmount=function(){_this.cleanupWindowEvents()};this.update=function(newProps){handleCalculateBounds(_this,_this.transformState.scale);_this.setup=createSetup(newProps)};this.initializeWindowEvents=function(){var _a;var passive=makePassiveEventOption();var currentDocument=(_a=_this.wrapperComponent)===null||_a===void 0?void 0:_a.ownerDocument;var currentWindow=currentDocument===null||currentDocument===void 0?void 0:currentDocument.defaultView;currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("mousedown",_this.onPanningStart,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("mousemove",_this.onPanning,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("mouseup",_this.onPanningStop,passive);currentDocument===null||currentDocument===void 0?void 0:currentDocument.addEventListener("mouseleave",_this.clearPanning,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("keyup",_this.setKeyUnPressed,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("keydown",_this.setKeyPressed,passive)};this.cleanupWindowEvents=function(){var _a,_b;var passive=makePassiveEventOption();var currentDocument=(_a=_this.wrapperComponent)===null||_a===void 0?void 0:_a.ownerDocument;var currentWindow=currentDocument===null||currentDocument===void 0?void 0:currentDocument.defaultView;currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("mousedown",_this.onPanningStart,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("mousemove",_this.onPanning,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("mouseup",_this.onPanningStop,passive);currentDocument===null||currentDocument===void 0?void 0:currentDocument.removeEventListener("mouseleave",_this.clearPanning,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("keyup",_this.setKeyUnPressed,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("keydown",_this.setKeyPressed,passive);document.removeEventListener("mouseleave",_this.clearPanning,passive);handleCancelAnimation(_this);(_b=_this.observer)===null||_b===void 0?void 0:_b.disconnect()};this.handleInitializeWrapperEvents=function(wrapper){var passive=makePassiveEventOption();wrapper.addEventListener("wheel",_this.onWheelZoom,passive);wrapper.addEventListener("dblclick",_this.onDoubleClick,passive);wrapper.addEventListener("touchstart",_this.onTouchPanningStart,passive);wrapper.addEventListener("touchmove",_this.onTouchPanning,passive);wrapper.addEventListener("touchend",_this.onTouchPanningStop,passive)};this.handleInitialize=function(contentComponent){var centerOnInit=_this.setup.centerOnInit;_this.applyTransformation();if(centerOnInit){_this.setCenter();_this.observer=new ResizeObserver((function(){var _a;_this.setCenter();(_a=_this.observer)===null||_a===void 0?void 0:_a.disconnect()}));_this.observer.observe(contentComponent)}};this.onWheelZoom=function(event){var disabled=_this.setup.disabled;if(disabled)return;var isAllowed=isWheelAllowed(_this,event);if(!isAllowed)return;var keysPressed=_this.isPressingKeys(_this.setup.wheel.activationKeys);if(!keysPressed)return;handleWheelStart(_this,event);handleWheelZoom(_this,event);handleWheelStop(_this,event)};this.onPanningStart=function(event){var disabled=_this.setup.disabled;var onPanningStart=_this.props.onPanningStart;if(disabled)return;var isAllowed=isPanningStartAllowed(_this,event);if(!isAllowed)return;var keysPressed=_this.isPressingKeys(_this.setup.panning.activationKeys);if(!keysPressed)return;event.preventDefault();event.stopPropagation();handleCancelAnimation(_this);handlePanningStart(_this,event);handleCallback(getContext(_this),event,onPanningStart)};this.onPanning=function(event){var disabled=_this.setup.disabled;var onPanning=_this.props.onPanning;if(disabled)return;var isAllowed=isPanningAllowed(_this);if(!isAllowed)return;var keysPressed=_this.isPressingKeys(_this.setup.panning.activationKeys);if(!keysPressed)return;event.preventDefault();event.stopPropagation();handlePanning(_this,event.clientX,event.clientY);handleCallback(getContext(_this),event,onPanning)};this.onPanningStop=function(event){var onPanningStop=_this.props.onPanningStop;if(_this.isPanning){handlePanningEnd(_this);handleCallback(getContext(_this),event,onPanningStop)}};this.onPinchStart=function(event){var disabled=_this.setup.disabled;var _a=_this.props,onPinchingStart=_a.onPinchingStart,onZoomStart=_a.onZoomStart;if(disabled)return;var isAllowed=isPinchStartAllowed(_this,event);if(!isAllowed)return;handlePinchStart(_this,event);handleCancelAnimation(_this);handleCallback(getContext(_this),event,onPinchingStart);handleCallback(getContext(_this),event,onZoomStart)};this.onPinch=function(event){var disabled=_this.setup.disabled;var _a=_this.props,onPinching=_a.onPinching,onZoom=_a.onZoom;if(disabled)return;var isAllowed=isPinchAllowed(_this);if(!isAllowed)return;event.preventDefault();event.stopPropagation();handlePinchZoom(_this,event);handleCallback(getContext(_this),event,onPinching);handleCallback(getContext(_this),event,onZoom)};this.onPinchStop=function(event){var _a=_this.props,onPinchingStop=_a.onPinchingStop,onZoomStop=_a.onZoomStop;if(_this.pinchStartScale){handlePinchStop(_this);handleCallback(getContext(_this),event,onPinchingStop);handleCallback(getContext(_this),event,onZoomStop)}};this.onTouchPanningStart=function(event){var disabled=_this.setup.disabled;var onPanningStart=_this.props.onPanningStart;if(disabled)return;var isAllowed=isPanningStartAllowed(_this,event);if(!isAllowed)return;var isDoubleTap=_this.lastTouch&&+new Date-_this.lastTouch<200;if(isDoubleTap&&event.touches.length===1){_this.onDoubleClick(event)}else{_this.lastTouch=+new Date;handleCancelAnimation(_this);var touches=event.touches;var isPanningAction=touches.length===1;var isPinchAction=touches.length===2;if(isPanningAction){handleCancelAnimation(_this);handlePanningStart(_this,event);handleCallback(getContext(_this),event,onPanningStart)}if(isPinchAction){_this.onPinchStart(event)}}};this.onTouchPanning=function(event){var disabled=_this.setup.disabled;var onPanning=_this.props.onPanning;if(_this.isPanning&&event.touches.length===1){if(disabled)return;var isAllowed=isPanningAllowed(_this);if(!isAllowed)return;event.preventDefault();event.stopPropagation();var touch=event.touches[0];handlePanning(_this,touch.clientX,touch.clientY);handleCallback(getContext(_this),event,onPanning)}else if(event.touches.length>1){_this.onPinch(event)}};this.onTouchPanningStop=function(event){_this.onPanningStop(event);_this.onPinchStop(event)};this.onDoubleClick=function(event){var disabled=_this.setup.disabled;if(disabled)return;var isAllowed=isDoubleClickAllowed(_this,event);if(!isAllowed)return;handleDoubleClick(_this,event)};this.clearPanning=function(event){if(_this.isPanning){_this.onPanningStop(event)}};this.setKeyPressed=function(e){_this.pressedKeys[e.key]=true};this.setKeyUnPressed=function(e){_this.pressedKeys[e.key]=false};this.isPressingKeys=function(keys){if(!keys.length){return true}return Boolean(keys.find((function(key){return _this.pressedKeys[key]})))};this.setTransformState=function(scale,positionX,positionY){var onTransformed=_this.props.onTransformed;if(!Number.isNaN(scale)&&!Number.isNaN(positionX)&&!Number.isNaN(positionY)){if(scale!==_this.transformState.scale){_this.transformState.previousScale=_this.transformState.scale;_this.transformState.scale=scale}_this.transformState.positionX=positionX;_this.transformState.positionY=positionY;var ctx_1=getContext(_this);_this.onChangeCallbacks.forEach((function(callback){return callback(ctx_1)}));handleCallback(ctx_1,{scale:scale,positionX:positionX,positionY:positionY},onTransformed);_this.applyTransformation()}else{console.error("Detected NaN set state values")}};this.setCenter=function(){if(_this.wrapperComponent&&_this.contentComponent){var targetState=getCenterPosition(_this.transformState.scale,_this.wrapperComponent,_this.contentComponent);_this.setTransformState(targetState.scale,targetState.positionX,targetState.positionY)}};this.handleTransformStyles=function(x,y,scale){if(_this.props.customTransform){return _this.props.customTransform(x,y,scale)}return getTransformStyles(x,y,scale)};this.applyTransformation=function(){if(!_this.mounted||!_this.contentComponent)return;var _a=_this.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;var transform=_this.handleTransformStyles(positionX,positionY,scale);_this.contentComponent.style.transform=transform};this.getContext=function(){return getContext(_this)};this.onChange=function(callback){if(!_this.onChangeCallbacks.has(callback)){_this.onChangeCallbacks.add(callback)}return function(){_this.onChangeCallbacks.delete(callback)}};this.init=function(wrapperComponent,contentComponent){_this.cleanupWindowEvents();_this.wrapperComponent=wrapperComponent;_this.contentComponent=contentComponent;handleCalculateBounds(_this,_this.transformState.scale);_this.handleInitializeWrapperEvents(wrapperComponent);_this.handleInitialize(contentComponent);_this.initializeWindowEvents();_this.isInitialized=true;handleCallback(getContext(_this),void 0,_this.props.onInit)};this.props=props;this.setup=createSetup(this.props);this.transformState=createState(this.props)}return ZoomPanPinch2}();var Context=React__default.createContext(null);var getContent=function(children,ctx){if(typeof children==="function"){return children(ctx)}return children};var TransformWrapper=React__default.forwardRef((function(props,ref){var _a=useState(0),forceUpdate=_a[1];var children=props.children;var instance=useRef(new ZoomPanPinch(props)).current;var content=getContent(props.children,getContext(instance));var handleOnChange=useCallback((function(){if(typeof children==="function"){forceUpdate((function(prev){return prev+1}))}}),[children]);useImperativeHandle(ref,(function(){return getContext(instance)}),[instance]);useEffect((function(){instance.update(props)}),[instance,props]);useEffect((function(){return instance.onChange(handleOnChange)}),[instance,props,handleOnChange]);return React__default.createElement(Context.Provider,{value:instance},content)}));function styleInject(css,ref){if(ref===void 0)ref={};var insertAt=ref.insertAt;if(typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}}var css_248z=".transform-component-module_wrapper__7HFJe {\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n overflow: hidden;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n margin: 0;\n padding: 0;\n}\n.transform-component-module_content__uCDPE {\n display: flex;\n flex-wrap: wrap;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n margin: 0;\n padding: 0;\n transform-origin: 0% 0%;\n}\n.transform-component-module_content__uCDPE img {\n pointer-events: none;\n}\n";var styles={wrapper:"transform-component-module_wrapper__7HFJe",content:"transform-component-module_content__uCDPE"};styleInject(css_248z);var TransformComponent=function(_a){var children=_a.children,_b=_a.wrapperClass,wrapperClass=_b===void 0?"":_b,_c=_a.contentClass,contentClass=_c===void 0?"":_c,wrapperStyle=_a.wrapperStyle,contentStyle=_a.contentStyle,_d=_a.wrapperProps,wrapperProps=_d===void 0?{}:_d,_e=_a.contentProps,contentProps=_e===void 0?{}:_e;var init=useContext(Context).init;var wrapperRef=useRef(null);var contentRef=useRef(null);useEffect((function(){var wrapper=wrapperRef.current;var content=contentRef.current;if(wrapper!==null&&content!==null&&init){init(wrapper,content)}}),[]);return React__default.createElement("div",__assign({},wrapperProps,{ref:wrapperRef,className:"react-transform-wrapper ".concat(styles.wrapper," ").concat(wrapperClass),style:wrapperStyle}),React__default.createElement("div",__assign({},contentProps,{ref:contentRef,className:"react-transform-component ".concat(styles.content," ").concat(contentClass),style:contentStyle}),children))};React__default.forwardRef((function(props,ref){var localRef=useRef(null);var instance=useContext(Context);useEffect((function(){return instance.onChange((function(ctx){if(localRef.current){var positionX=0;var positionY=0;localRef.current.style.transform=instance.handleTransformStyles(positionX,positionY,1/ctx.state.scale)}}))}),[instance]);return React__default.createElement("div",__assign({},props,{ref:mergeRefs([localRef,ref])}))}));function Slide({alt:alt,onClick:onClick=noop$4,onZoom:onZoom=noop$4,url:url,zooming:zooming=false}){const handlePinchingStop=({state:state})=>{const isZooming=state.scale>1;onZoom(isZooming)};return jsx(TransformWrapper,{doubleClick:{mode:"reset"},initialScale:1,onPinchingStop:handlePinchingStop,panning:{disabled:!zooming},children:jsx("button",{className:"Slide",onClick:onClick,onDoubleClick:()=>onZoom(false),tabIndex:-1,children:jsx(TransformComponent,{wrapperClass:"TransformComponent",children:jsx(Image,{alt:alt,url:url,zIndex:3})})})})}function Slides({urls:urls=[],current:current=0,onChange:onChange=noop$4,setIndex:setIndex}){const[zooming,setZooming]=useState(false);const[touchStart,setTouchStart]=useState(null);const[touchEnd,setTouchEnd]=useState(null);const minSwipeDistance=40;const onTouchStart=e=>{setTouchEnd(null);setTouchStart(e.targetTouches[0].clientX)};const onTouchMove=e=>setTouchEnd(e.targetTouches[0].clientX);const onTouchEnd=()=>{if(!touchStart||!touchEnd)return;const distance=touchStart-touchEnd;const isLeftSwipe=distance>minSwipeDistance;const isRightSwipe=distance<-minSwipeDistance;if(isLeftSwipe){setIndex(current<urls.length-1?current+1:urls.length-1)}else if(isRightSwipe){setIndex(current>0?current-1:0)}};const arrowLeft=()=>setIndex(current>0?current-1:0);const arrowRight=()=>setIndex(current<urls.length-1?current+1:urls.length-1);const handleZoom=isZooming=>setZooming(isZooming);return jsxs("div",{className:"Slides",onTouchEnd:onTouchEnd,onTouchMove:onTouchMove,onTouchStart:onTouchStart,children:[urls.length>1&&jsx(CircleIconButton,{className:"carousel-arrow-left",dark:true,icon:"chevron-left",onClick:arrowLeft,variant:"link"}),jsx(Slide,{onClick:()=>onChange(current),onZoom:handleZoom,url:urls[current],zooming:zooming}),urls.length>1&&jsx(CircleIconButton,{className:"carousel-arrow-right",dark:true,icon:"chevron-right",onClick:arrowRight,variant:"link"})]})}const useWindowSize=()=>{const[size,setSize]=useState({width:window.innerWidth,height:window.innerHeight});useEffect((()=>{const handleResize=()=>{setSize({width:window.innerWidth,height:window.innerHeight})};window.addEventListener("resize",handleResize);handleResize();return()=>window.removeEventListener("resize",handleResize)}),[]);return size};function Thumbnail({active:active=false,alt:alt,width:width,url:url,onClick:onClick,buttonRef:buttonRef}){const activeClasses=classnames("Thumbnail",{active:active});return jsx("button",{className:classnames(activeClasses),onClick:onClick,ref:buttonRef,style:{width:width},type:"button",children:jsx(Image,{alt:alt,size:"sm",url:url})})}function Thumbnails({current:current=0,onChange:onChange=noop$4,urls:urls=[]}){const viewportSize=useWindowSize();const thumbnailWidth=viewportSize.width/8;const shouldBeCentered=thumbnailWidth*urls.length<viewportSize.width*.9;const css=classnames("Thumbnails",{centered:shouldBeCentered});const otherProps={};const thumbnailsRef=React__default.createRef();useLayoutEffect((()=>{var _a,_b,_c;if(shouldBeCentered)return;const currentThumbnail=otherProps.buttonRef.current;const thumbWidth=currentThumbnail.clientWidth,scrollLeft=thumbWidth*current,firstThumb=thumbnailsRef.current.querySelector(".Thumbnail:first-child"),lastThumb=thumbnailsRef.current.querySelector(".Thumbnail:last-child");firstThumb.style.marginLeft=`${((_a=thumbnailsRef.current)==null?void 0:_a.clientWidth)/2-thumbWidth/2}px`;lastThumb.style.marginRight=`${((_b=thumbnailsRef.current)==null?void 0:_b.clientWidth)/2-thumbWidth/2}px`;(_c=thumbnailsRef.current)==null?void 0:_c.scrollTo(scrollLeft,0)}));return jsx("div",{className:css,ref:thumbnailsRef,children:urls.map(((url,i)=>{const active=i===current;if(active)otherProps.buttonRef=React__default.createRef();return jsx(Thumbnail,{active:active,alt:i.toString(),onClick:()=>onChange(i),url:url,...otherProps},i)}))})}function Carousel({currentIndex:currentIndex,photos:photos,onClick:onClick,onChange:onChange=()=>void 0,setIndex:setIndex}){useEffect((()=>{document.body.style.overflow="hidden";return()=>{document.body.style.overflow="initial"}}),[]);const handleChange=index=>{onChange(index)};return jsxs("div",{className:"Lightbox",children:[jsx(Slides,{current:currentIndex,onChange:handleChange,onClick:onClick,setIndex:setIndex,urls:photos.map((photo=>photo.url))}),photos.length>1?jsx(Thumbnails,{current:currentIndex,onChange:handleChange,urls:photos.map((photo=>photo.thumbnail))}):null]})}const Lightbox=props=>{const{aria:aria={},children:children,className:className,currentPhotoIndex:currentPhotoIndex,data:data={},description:description,htmlOptions:htmlOptions={},id:id="",initialPhoto:initialPhoto=0,photos:photos,onChange:onChange=()=>void 0,onClose:onClose,onClickRight:onClickRight,icon:icon="times",navRight:navRight,title:title}=props;const[activePhoto,setActivePhoto]=useState(initialPhoto);useEffect((()=>{onChange(activePhoto)}),[activePhoto]);useEffect((()=>{currentPhotoIndex!==void 0&&currentPhotoIndex!==null&&setActivePhoto(currentPhotoIndex)}),[currentPhotoIndex]);const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_lightbox_kit"),globalProps(props),className);const handleOnSlide=photoIndex=>{setActivePhoto(photoIndex)};const photosMap=useMemo((()=>photos.map((photo=>({url:photo,thumbnail:photo})))),[photos]);const api={onClose:onClose,onArrowLeft:()=>{setActivePhoto(activePhoto>0?activePhoto-1:0)},onArrowRight:()=>{const nextPhoto=activePhoto<photos.length-1?activePhoto+1:photos.length-1;setActivePhoto(nextPhoto)}};useKbdControls(api);const lightboxRef=useRef();return jsx(Fragment$1,{children:jsx(LightboxContext.Provider,{value:api,children:jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,ref:lightboxRef,children:jsxs("div",{className:"carousel",children:[jsx(Lightbox.Header,{icon:icon,navRight:navRight,onClickRight:onClickRight,onClose:onClose,text:description,title:title}),children,jsx(Carousel,{currentIndex:activePhoto,onChange:handleOnSlide,photos:photosMap,setIndex:setActivePhoto})]})})})})};Lightbox.Header=LightboxHeader;const MapCustomButton=({onClick:onClick,icon:icon})=>jsx(Button,{className:"pb_map-custom-button",onClick:onClick,children:jsx(Icon,{icon:icon})});const MapControls=({zoomBtns:zoomBtns,zoomInClick:zoomInClick,zoomOutClick:zoomOutClick,flyTo:flyTo,flyToClick:flyToClick,children:children})=>jsxs(Flex,{className:"custom-nav-control",orientation:"column",children:[zoomBtns?jsxs(Fragment,{children:[jsxs("div",{className:"custom-nav-control-zoom",children:[jsx(Button,{className:"map-zoom-in-button",onClick:zoomInClick,children:jsx(Icon,{icon:"plus"})}),jsx(Button,{className:"map-zoom-out-button",onClick:zoomOutClick,children:jsx(Icon,{icon:"minus"})})]}),flyTo?jsx(Button,{className:"map-flyto-button",onClick:flyToClick,children:jsx(Icon,{icon:"eye"})}):null]}):null,children]});const Map$1=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,zoomBtns:zoomBtns=false,flyTo:flyTo=false,zoomInClick:zoomInClick,zoomOutClick:zoomOutClick,flyToClick:flyToClick}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_map"),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[zoomBtns?jsx(Map$1.Controls,{flyTo:flyTo,flyToClick:flyToClick,zoomBtns:zoomBtns,zoomInClick:zoomInClick,zoomOutClick:zoomOutClick}):null,children]})};Map$1.Controls=MapControls;const Timestamp=props=>{const{align:align="left",aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},text:text2,timezone:timezone,timestamp:timestamp,showDate:showDate=true,showUser:showUser=false,hideUpdated:hideUpdated=false,showTimezone:showTimezone=false,unstyled:unstyled=false,variant:variant="default"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_timestamp_kit",align,{dark:dark,variant:variant}),globalProps(props),className);const currentYear=(new Date).getFullYear().toString();const dateDisplay=`${DateTime$1.toMonth(timestamp,timezone)} ${DateTime$1.toDay(timestamp,timezone)}`;const shouldShowUser=showUser==true&&text2.length>0;const shouldShowTimezone=showTimezone==true&&timezone.length>0;const updatedText=hideUpdated?"":"Last updated";const userDisplay=shouldShowUser?` by ${text2}`:"";let timeDisplay=`${DateTime$1.toHour(timestamp,timezone)}:${DateTime$1.toMinute(timestamp,timezone)}${DateTime$1.toMeridiem(timestamp,timezone)}`;const fullTimeDisplay=()=>{if(shouldShowTimezone){timeDisplay=`${timeDisplay} ${DateTime$1.toTimeZone(timestamp,timezone)}`}return timeDisplay};const fullDateDisplay=()=>{let fullDisplay=`${DateTime$1.toMonth(timestamp,timezone)} ${DateTime$1.toDay(timestamp,timezone)}`;if(DateTime$1.toYear(timestamp,timezone).toString()!==currentYear){fullDisplay=`${fullDisplay}, ${DateTime$1.toYear(timestamp,timezone)}`}return`${fullDisplay} ${" · "} ${fullTimeDisplay()}`};const formatUpdatedString=()=>`Last updated ${userDisplay} on ${dateDisplay} at ${timeDisplay}`;const formatElapsedString=()=>`${updatedText} ${userDisplay} ${DateTime$1.fromNow(timestamp)}`;const timestampText=()=>{switch(variant){case"updated":return formatUpdatedString();case"elapsed":return formatElapsedString();default:return showDate?timestamp?fullDateDisplay():text2:fullTimeDisplay()}};return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:jsx("div",{className:"pb_timestamp_kit",children:unstyled?jsx("div",{children:timestampText()}):jsx(Caption,{dark:dark,size:"xs",text:timestampText()})})})};const MessageMention=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,variant:variant="user"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_message_mention",variant),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})};const Message=props=>{const{aria:aria={},avatarName:avatarName,avatarStatus:avatarStatus=null,avatarUrl:avatarUrl,children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,label:label,message:message,timestamp:timestamp,timestampObject:timestampObject,timezone:timezone,alignTimestamp:alignTimestamp="right"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const shouldDisplayAvatar=avatarUrl||avatarName;const baseClassName=shouldDisplayAvatar?"pb_message_kit_avatar":"pb_message_kit";const classes=classnames(buildCss(baseClassName),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[shouldDisplayAvatar&&jsx(Avatar,{imageUrl:avatarUrl,name:avatarName,size:"xs",status:avatarStatus}),jsxs("div",{className:"content_wrapper",children:[jsxs(Flex,{justify:alignTimestamp==="left"?"none":"between",orientation:"row",children:[label&&jsx(Title,{className:"message_title",size:4,text:label}),jsx(Timestamp,{className:`pull-${alignTimestamp} ${timestampObject?"message_humanized_time":null}`,text:timestamp,timestamp:"",timezone:timezone}),timestampObject&&jsx(Timestamp,{className:`pull-${alignTimestamp} message_timestamp`,text:"",timestamp:timestampObject,timezone:timezone})]}),message&&jsx(Body$1,{className:"pb_message_body",text:message}),children]})]})};Message.Mention=MessageMention;const MultipleUsers=props=>{const{aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,maxDisplayedUsers:maxDisplayedUsers=4,reverse:reverse=false,size:size="xs",users:users}=props;const displayCount=users.length>maxDisplayedUsers?maxDisplayedUsers-1:users.length;const usersToDisplay=users.slice(0,displayCount);const reverseClass=reverse===true?"reverse":"";const avatarSizeClass=size==="xxs"?"xxs":"xs";const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_multiple_users_kit",reverseClass),globalProps(props),className);const itemClasses=classnames("pb_multiple_users_item",buildCss("multiple_users_badge",avatarSizeClass));return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[usersToDisplay.map(((avatarData,index)=>createElement(Avatar,{...avatarData,className:"pb_multiple_users_item",dark:dark,imageAlt:avatarData.name,key:index,size:size}))),users.length>maxDisplayedUsers&&jsx("div",{className:itemClasses,children:`+${users.length-3}`})]})};const MultipleUsersStacked=props=>{const{aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,users:users}=props;const moreThanTwo=users.length>2;const onlyOne=users.length==1;const displayCount=()=>moreThanTwo?1:users.length;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_multiple_users_stacked_kit",{single:onlyOne}),globalProps(props),className);const firstUser=()=>users.slice(0,1).map(((userObject,index)=>createElement(Avatar,{...userObject,className:"pb_multiple_users_stacked_item",dark:dark,key:index,size:"xs"})));const secondUser=()=>{if(moreThanTwo===false){return users.slice(1,2).map(((userObject,index)=>createElement(Avatar,{...userObject,className:"pb_multiple_users_stacked_item second_item",dark:dark,key:index,size:"xs"})))}};const plusUsers=()=>{if(moreThanTwo===true){return jsx(Badge,{className:"pb_multiple_users_stacked_item second_item",dark:dark,rounded:true,text:`+${users.length-displayCount()}`,variant:"primary"})}};return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[firstUser(),secondUser(),plusUsers()]})};const previousOverlayDirectionMap$1={bottom:"to top",top:"to bottom",left:"to right",right:"to left",x:"to right",y:"to top"};const subsequentOverlayDirectionMap$1={...previousOverlayDirectionMap$1,x:"to left",y:"to bottom"};const OverlayPercentage=props=>{const{children:children,color:color,position:position,size:size}=props;const getPreviousOverlayDirection=()=>previousOverlayDirectionMap$1[position];const getSubsequentOverlayDirection=()=>subsequentOverlayDirectionMap$1[position];const hasSubsequentOverlay=position==="x"||position==="y";const previousOverlay=`linear-gradient(${getPreviousOverlayDirection()}, ${colors[color]} 0%, transparent ${size})`;const subsequentOverlay=`linear-gradient(${getSubsequentOverlayDirection()}, ${colors[color]} 0%, transparent ${size})`;return jsxs(Fragment,{children:[jsx("div",{className:"overlay_linear_gradient",style:{background:previousOverlay}}),children,hasSubsequentOverlay&&jsx("div",{className:"overlay_linear_gradient",style:{background:subsequentOverlay}})]})};const previousOverlayDirectionMap={x:"left",y:"top"};const subsequentOverlayDirectionMap={x:"right",y:"bottom"};const OverlayToken=props=>{const{children:children,color:color,position:position,size:size}=props;const hasSubsequentOverlay=position==="x"||position==="y";const getPreviousOverlayDirection=()=>hasSubsequentOverlay?previousOverlayDirectionMap[position]:position;const getSubsequentOverlayDirection=()=>hasSubsequentOverlay?subsequentOverlayDirectionMap[position]:position;const previousOverlayClassName=`overlay_${color}_${getPreviousOverlayDirection()}_${size}`;const subsequentOverlayClassName=`overlay_${color}_${getSubsequentOverlayDirection()}_${size}`;return jsxs(Fragment,{children:[jsx("div",{className:previousOverlayClassName}),children,hasSubsequentOverlay&&jsx("div",{className:subsequentOverlayClassName})]})};const Overlay=props=>{const{aria:aria={},className:className,children:children,color:color="card_light",data:data={},htmlOptions:htmlOptions={},id:id,layout:layout={bottom:"full"}}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const classes=classnames(buildCss("pb_overlay"),globalProps(props),className);const htmlProps=buildHtmlProps(htmlOptions);const getPosition=()=>Object.keys(layout)[0];const getSize2=()=>Object.values(layout)[0];const isSizePercentage=getSize2().includes("%");return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:isSizePercentage?OverlayPercentage({children:children,color:color,position:getPosition(),size:getSize2()}):OverlayToken({children:children,color:color,position:getPosition(),size:getSize2()})})};const Pagination=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,current:current=1,onChange:onChange,range:range=5,total:total=1}=props;const[currentPage,setCurrentPage]=useState(current);const handlePageChange=pageNumber=>{if(pageNumber>=1&&pageNumber<=total){setCurrentPage(pageNumber);if(onChange){onChange(pageNumber)}}};const renderPageButtons=()=>{const buttons=[];let rangeStart=Math.max(1,currentPage-Math.floor(range/2));let rangeEnd=Math.min(total,rangeStart+range-1);if(rangeEnd-rangeStart+1<range){if(rangeStart>1){rangeStart=Math.max(1,rangeEnd-range+1)}else{rangeEnd=Math.min(total,rangeStart+range-1)}}if(rangeStart>1){buttons.push(jsx("li",{className:"pagination-number",onClick:()=>handlePageChange(1),children:"1"},1))}if(rangeStart>2){buttons.push(jsx("li",{className:"pagination-number",onClick:()=>handlePageChange(2),children:"2"},2))}for(let i=rangeStart;i<=rangeEnd;i++){buttons.push(jsx("li",{className:`pagination-number ${i===currentPage?"active":""}`,onClick:()=>handlePageChange(i),children:i},i))}if(rangeEnd<total-1){buttons.push(jsx("li",{className:`pagination-number ${total-1===currentPage?"active":""}`,onClick:()=>handlePageChange(total-1),children:total-1},total-1))}if(rangeEnd<total){buttons.push(jsx("li",{className:`pagination-number ${total===currentPage?"active":""}`,onClick:()=>handlePageChange(total),children:total},total))}return buttons};const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_paginate"),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs("div",{className:"pb_pagination",children:[jsx("li",{className:`pagination-left ${currentPage===1?"disabled":""}`,onClick:()=>handlePageChange(currentPage-1),children:jsx(Icon,{icon:"chevron-left"})}),renderPageButtons(),jsx("li",{className:`pagination-right ${currentPage===total?"disabled":""}`,onClick:()=>handlePageChange(currentPage+1),children:jsx(Icon,{icon:"chevron-right"})})]})})};const Person=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},firstName:firstName,id:id,lastName:lastName}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_person_kit"),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[jsx(Body$1,{className:"pb_person_first",tag:"span",children:firstName}),lastName&&jsx(Title,{className:"pb_person_first",size:4,text:` ${lastName}`})]})};const PersonContact=props=>{const{aria:aria={},className:className,contacts:contacts=[],data:data={},firstName:firstName,htmlOptions:htmlOptions={},id:id,lastName:lastName}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_person_contact_kit"),globalProps(props),className);const wrongContacts=()=>contacts.filter((contactObject=>contactObject.contactType==="wrong-phone"));const validContacts=()=>contacts.filter((contactObject=>contactObject.contactType!=="wrong-phone"));return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[jsx(Person,{firstName:firstName,lastName:lastName}),validContacts().map(((contactObject,index)=>jsx(Contact,{contactDetail:contactObject.contactDetail,contactType:contactObject.contactType,contactValue:contactObject.contactValue},`valid-contact-${index}`))),wrongContacts().map(((contactObject,index)=>jsxs("div",{children:[jsx(Caption,{className:"wrong_numbers",text:"wrong number"},`wrong-contact-caption-${index}`),jsx(Contact,{contactType:contactObject.contactType,contactValue:contactObject.contactValue},`wrong-contact-${index}`)]},`wrong-contact-caption-wrapper-${index}`)))]})};const ProgressPill=({active:active,dark:dark,steps:step})=>jsx("div",{className:`pb_progress_pill${step<=active?"_active":"_inactive"}${dark?" dark":""}`},step);const showSteps=(steps,active,dark)=>{const items=[];for(let step=1;step<=steps;step++){items.push(ProgressPill({steps:step,active:active,dark:dark}))}return items};const ProgressPills=props=>{const{active:active=0,aria:aria={hidden:"true"},className:className,data:data={},htmlOptions:htmlOptions={},id:id,steps:steps=3,title:title,value:value,dark:dark=false}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_progress_pills_kit"),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[title&&jsxs("div",{className:"progress_pills_status",children:[jsx(Title,{dark:dark,size:4,tag:"h4",text:title}),jsx(Body$1,{color:"light",dark:dark,text:value})]}),jsx("div",{className:"progress_pills",children:showSteps(steps,active,dark)})]})};const ProgressSimple=props=>{const{align:align,className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},max:max2,muted:muted=false,percent:percent="",value:value,variant:variant="default",width:width="100%"}=props;const styles2={width:width};const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const variantStyle=variant=="default"?"":variant;const valueStyles={width:percent?`${percent}%`:`${value*100/max2}%`};const wrapperClass=classnames(buildCss("pb_progress_simple_wrapper",align,{dark:dark}),globalProps(props),className);const kitClass=classnames(buildCss("pb_progress_simple_kit",{muted:muted},variantStyle,align),className);return jsx("div",{...dataProps,...htmlProps,className:wrapperClass,children:jsx("div",{className:kitClass,"data-value":value,style:styles2,children:jsx("div",{className:"progress_simple_value",style:valueStyles})})})};const ProgressStep=props=>{const{aria:aria={},className:className,children:children,color:color,data:data={},orientation:orientation="horizontal",htmlOptions:htmlOptions={},icon:icon=false,showIcon:showIcon=false,variant:variant}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const iconStyle=icon===true||showIcon===true?"icon":"";const progressStepCss=buildCss("pb_progress_step_kit",orientation,iconStyle,variant,color);return jsx("ul",{...ariaProps,...dataProps,...htmlProps,className:classnames(progressStepCss,globalProps(props),className),children:children})};const ProgressStepItem=props=>{const{className:className,data:data={},status:status="inactive",children:children,htmlOptions:htmlOptions={},icon:icon="check"}=props;const progressStepItem=buildCss("pb_progress_step_item",status);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx("li",{...dataProps,...htmlProps,className:classnames(progressStepItem,className),children:jsxs("div",{className:"box",children:[jsx("div",{className:"circle",children:jsx(Icon,{icon:icon})}),jsx("div",{className:"content",children:children})]})})};const createOptions=options=>options.map(((option,index)=>jsx("option",{disabled:option.disabled,value:option.value,children:option.text||option.value},index)));const Select=({aria:aria={},blankSelection:blankSelection,children:children,className:className,compact:compact=false,data:data={},disabled:disabled=false,error:error,label:label,htmlOptions:htmlOptions={},inline:inline=false,multiple:multiple=false,name:name,onChange:onChange=()=>void 0,options:options=[],required:required=false,showArrow:showArrow=false,value:value,...props},ref)=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const optionsList=createOptions(options);const inlineClass=inline?"inline":null;const compactClass=compact?"compact":null;const classes=classnames(buildCss("pb_select"),globalProps({...props,marginBottom:props.marginBottom||props.margin||"sm"}),className,inlineClass,{show_arrow:showArrow},compactClass);const selectWrapperClass=classnames(buildCss("pb_select_kit_wrapper"),{error:error},className);const selectBody=(()=>{if(children)return children;return jsxs("select",{...htmlOptions,...domSafeProps(props),disabled:disabled,id:name,multiple:multiple,name:name,onChange:onChange,ref:ref,required:required,value:value,children:[blankSelection&&jsx("option",{value:"",children:blankSelection}),optionsList]})})();return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:[label&&jsx("label",{className:"pb_select_kit_label",htmlFor:name,children:jsx(Caption,{text:label})}),jsxs("label",{className:selectWrapperClass,htmlFor:name,children:[selectBody,multiple!==true?jsx(Icon,{className:"pb_select_kit_caret",fixedWidth:true,icon:"angle-down"}):null,error&&jsx(Body$1,{status:"negative",text:error})]})]})};const Select$1=forwardRef(Select);const SelectableCard=props=>{const{aria:aria={},checked:checked=false,className:className,customIcon:customIcon,dark:dark=false,data:data={},disabled:disabled=false,error:error=false,htmlOptions:htmlOptions={},icon:icon=false,inputId:inputId=null,multi:multi=true,name:name,onChange:onChange=noop$3,text:text2,value:value,variant:variant="default"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_selectable_card_kit",{checked:checked,disabled:disabled,enabled:!disabled}),{error:error},dark?"dark":"",className);const displayIcon2=()=>{if(icon===true){return jsx("div",{className:"pb_selectable_card_circle",children:jsx(Icon,{customIcon:customIcon,fixedWidth:true,icon:"check"})})}};const inputRef=useRef(null);const handleClick=()=>{inputRef.current.click()};const inputType=multi?"checkbox":"radio";const inputIdPresent=inputId!==null?inputId:name;const Input=multi?Checkbox:Radio;const filteredProps={...props};filteredProps==null?true:delete filteredProps.inputId;filteredProps==null?true:delete filteredProps.children;filteredProps==null?true:delete filteredProps.icon;filteredProps==null?true:delete filteredProps.error;filteredProps==null?true:delete filteredProps.dark;filteredProps==null?true:delete filteredProps.multi;filteredProps==null?true:delete filteredProps.customIcon;const labelProps=variant==="displayInput"?{...filteredProps,padding:"none"}:{...filteredProps};return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:[jsx("input",{checked:checked,disabled:disabled,id:inputIdPresent,name:name,onChange:onChange,ref:inputRef,type:inputType,value:value,...filteredProps}),jsxs("label",{className:globalProps(labelProps),htmlFor:inputIdPresent,children:[variant==="displayInput"?jsxs(Flex,{vertical:"center",children:[jsx(Flex,{orientation:"column",padding:"sm",paddingRight:"xs",vertical:"center",children:jsx(Input,{dark:dark,children:jsx("input",{checked:checked,disabled:disabled,onClick:handleClick,readOnly:true,type:inputType})})}),jsx("div",{className:"separator"}),jsx("div",{className:"psuedo_separator"}),jsx(Card,{borderNone:true,dark:dark,padding:"sm",status:error?"negative":null,children:text2||props.children})]}):text2||props.children,displayIcon2()]})]})};const SelectableIcon=({aria:aria={},className:className,checked:checked=false,customIcon:customIcon,data:data={},disabled:disabled=false,htmlOptions:htmlOptions={},icon:icon,inputId:inputId,inputs:inputs="enabled",multi:multi=true,name:name,text:text2,value:value,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_selectable_icon_kit",{checked:checked,disabled:disabled,enabled:!disabled}),globalProps(props),className);const inputType=multi===false?"radio":"checkbox";const inputIdPresent=inputId!==null?inputId:name;return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:[inputs==="disabled"&&jsxs(Fragment,{children:[jsx(Icon,{customIcon:customIcon,icon:icon,size:"2x"}),jsx(Title,{size:4,tag:"h4",text:text2})]}),inputs==="enabled"&&jsxs(Fragment,{children:[jsx("input",{...props,checked:checked,disabled:disabled,id:inputIdPresent,name:name,type:inputType,value:value}),jsxs("label",{htmlFor:inputIdPresent,children:[jsx(Icon,{customIcon:customIcon,icon:icon,size:"2x"}),jsx(Title,{size:4,tag:"h4",text:text2})]})]})]})};const SelectableCardIcon=props=>{const{aria:aria={},checkmark:checkmark=false,checked:checked=false,className:className,customIcon:customIcon,dark:dark=false,data:data={},disabled:disabled=false,htmlOptions:htmlOptions={},icon:icon,inputId:inputId,multi:multi=true,name:name,titleText:titleText,bodyText:bodyText,value:value,onChange:onChange}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_selectable_card_icon_kit",{checked:checked,disabled:disabled,enabled:!disabled}),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:jsx(SelectableCard,{checked:checked,customIcon:customIcon,dark:dark,disabled:disabled,icon:checkmark,inputId:inputId,multi:multi,name:name,onChange:onChange,value:value,children:jsxs(Fragment,{children:[jsx(SelectableIcon,{customIcon:customIcon,icon:icon,inputId:"",inputs:"disabled",name:"",text:titleText}),jsx(Body$1,{color:"light",dark:dark,text:bodyText})]})})})};const SelectableListItem=({aria:aria={},checked:checked=false,children:children,className:className,data:data={},dragId:dragId,dragHandle:dragHandle=true,defaultChecked:defaultChecked,htmlOptions:htmlOptions={},id:id,label:label,text:text2="",name:name="",value:value="",variant:variant="checkbox",onChange:onChange=()=>{},...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_selectable_list_item_kit"),globalProps(props),className);const initialCheckedState=checked;const[checkedState,setCheckedState]=useState(initialCheckedState);const handleChecked=event=>{onChange(event);setCheckedState(event.target.checked)};return jsx(ListItem,{...props,className:classnames(checkedState?"checked_item":"",className),dragHandle:dragHandle,dragId:dragId,children:jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:[variant=="checkbox"&&jsxs(Fragment,{children:[jsx(Checkbox,{checked:checkedState,id:id,name:name,onChange:handleChecked,text:label||text2&&false,type:"checkbox",value:value,...props}),children]}),variant=="radio"&&jsxs(Fragment,{children:[jsx(Radio,{defaultChecked:defaultChecked,id:id,label:label,name:name,onChange:onChange,text:label,type:"radio",value:value,...domSafeProps(props)}),children]}),variant!=="checkbox"&&variant!=="radio"&&{children:children}]})})};const SelectableList=props=>{var _a,_b;const{aria:aria={},children:children,className:className,data:data={},enableDrag:enableDrag=false,htmlOptions:htmlOptions={},id:id}=props;const ariaProps=buildAriaProps(aria);const classes=classnames(buildCss("pb_selectable_list_kit"),globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const isRadio=props.variant==="radio";const defaultCheckedRadioValue=(_b=(_a=children.filter((item=>item.props.defaultChecked))[0])==null?void 0:_a.props)==null?void 0:_b.value;const[selectedRadioValue,setSelectedRadioValue]=useState(defaultCheckedRadioValue);const onChangeRadioValue=({target:target})=>{setSelectedRadioValue(target.value)};let selectableListItems=children;if(isRadio){selectableListItems=children.map((({props:props2})=>createElement(SelectableListItem,{...props2,className:classnames(selectedRadioValue===props2.value?"checked_item":"",props2.className),key:props2.value,onChange:evt=>{var _a2;onChangeRadioValue(evt);(_a2=props2==null?void 0:props2.onChange)==null?void 0:_a2.call(props2,evt)}})))}return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx(List,{enableDrag:enableDrag,variant:props.variant,children:selectableListItems})})};SelectableList.Item=SelectableListItem;const Source=({aria:aria={},className:className,data:data={},hideIcon:hideIcon=false,htmlOptions:htmlOptions={},id:id,source:source,type:type="inbound",user:user={}})=>{const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const ariaProps=buildAriaProps(aria);const css=classnames(["pb_source_kit",className]);const avatar=()=>{if((type==="user"||type==="referral")&&user.name!==void 0){const avatarProps={...user};avatarProps.size="sm";delete avatarProps.userId;return avatarProps}};const typeText=()=>{if(type==="user"||type==="referral"&&user.name!==void 0){return user.name}else{return titleize(type)}};const typeIconNames={events:"calendar-alt",outbound:"sign-out",prospecting:"binoculars",referral:"handshake",retail:"shopping-bag",inbound:"sign-in"};const showIcon=()=>type!=="user"&&avatar()===void 0;return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:css,id:id,children:jsxs("div",{className:"pb__source_layout",children:[hideIcon===false&&jsxs(Fragment,{children:[showIcon()&&jsx(IconCircle,{icon:typeIconNames[type],size:"sm"}),!showIcon()&&jsx(Avatar,{...avatar()})]}),jsxs("div",{className:"pb__source_content",children:[jsx(Title,{size:4,tag:"h4",text:source}),jsxs("div",{className:"pb__source_value",children:[jsx(Body$1,{color:"light",text:typeText()}),user.userId&&jsx(Caption,{text:user.userId})]})]})]})})};const starYellow=jsx("svg",{className:"iamyellow",fill:"none",viewBox:"0 0 18 16",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{clipRule:"evenodd",d:"M9.86015 0.4371C9.73527 0.187329 9.4855 0 9.17328 0C8.89229 0 8.64252 0.187329 8.51763 0.4371L6.36335 4.83932L1.58647 5.55742C1.30547 5.58864 1.08692 5.80719 0.99326 6.05696C0.899595 6.33795 0.962038 6.61895 1.18059 6.8375L4.64617 10.2719L3.80319 15.1112C3.77197 15.3922 3.89685 15.7044 4.11541 15.8605C4.36518 16.0166 4.64617 16.0478 4.89594 15.9229L9.17328 13.6126L13.4506 15.9229C13.7004 16.0478 14.0126 16.0166 14.2624 15.8605C14.4809 15.7044 14.6058 15.3922 14.5434 15.1112L13.7316 10.2719L17.1972 6.8375C17.4157 6.61895 17.4782 6.33795 17.3845 6.05696C17.2909 5.80719 17.0723 5.58864 16.7913 5.55742L12.0144 4.83932L9.86015 0.4371Z",fill:"#F9BB00",fillRule:"evenodd"})});const starPrimary=jsx("svg",{fill:"none",viewBox:"0 0 18 16",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{clipRule:"evenodd",d:"M9.86015 0.4371C9.73527 0.187329 9.4855 0 9.17328 0C8.89229 0 8.64252 0.187329 8.51763 0.4371L6.36335 4.83932L1.58647 5.55742C1.30547 5.58864 1.08692 5.80719 0.99326 6.05696C0.899595 6.33795 0.962038 6.61895 1.18059 6.8375L4.64617 10.2719L3.80319 15.1112C3.77197 15.3922 3.89685 15.7044 4.11541 15.8605C4.36518 16.0166 4.64617 16.0478 4.89594 15.9229L9.17328 13.6126L13.4506 15.9229C13.7004 16.0478 14.0126 16.0166 14.2624 15.8605C14.4809 15.7044 14.6058 15.3922 14.5434 15.1112L13.7316 10.2719L17.1972 6.8375C17.4157 6.61895 17.4782 6.33795 17.3845 6.05696C17.2909 5.80719 17.0723 5.58864 16.7913 5.55742L12.0144 4.83932L9.86015 0.4371Z",fill:"#0056CF",fillRule:"evenodd"})});const starSubtle=jsx("svg",{fill:"none",viewBox:"0 0 18 16",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{clipRule:"evenodd",d:"M8.90904 0.4371C8.78416 0.187329 8.53438 0 8.22217 0C7.94118 0 7.69141 0.187329 7.56652 0.4371L5.41224 4.83932L0.635357 5.55742C0.354364 5.58864 0.135813 5.80719 0.042149 6.05696C-0.0515154 6.33795 0.0109275 6.61895 0.229478 6.8375L3.69506 10.2719L2.85208 15.1112C2.82086 15.3922 2.94574 15.7044 3.16429 15.8605C3.41407 16.0166 3.69506 16.0478 3.94483 15.9229L8.22217 13.6126L12.4995 15.9229C12.7493 16.0478 13.0615 16.0166 13.3113 15.8605C13.5298 15.7044 13.6547 15.3922 13.5923 15.1112L12.7805 10.2719L16.2461 6.8375C16.4646 6.61895 16.5271 6.33795 16.4334 6.05696C16.3397 5.80719 16.1212 5.58864 15.8402 5.55742L11.0633 4.83932L8.90904 0.4371Z",fillRule:"evenodd"})});const starOutline=jsx("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M5.91323 5.33377L6.17269 5.29477L6.28801 5.0591L8.44116 0.659187C8.49971 0.543364 8.59517 0.5 8.64884 0.5C8.74499 0.5 8.83506 0.555009 8.88775 0.659235L11.0409 5.0591L11.1562 5.29477L11.4157 5.33377L16.1925 6.05186L16.2021 6.0533L16.2117 6.05436C16.2359 6.05706 16.2671 6.06847 16.3024 6.09973C16.3374 6.13062 16.3686 6.17476 16.3886 6.22412C16.4186 6.32162 16.401 6.40181 16.3198 6.48332C16.3196 6.48353 16.3194 6.48374 16.3192 6.48395L12.8552 9.91671L12.6712 10.0991L12.7141 10.3546L13.5258 15.1939L13.528 15.2068L13.5308 15.2196C13.5488 15.3004 13.5074 15.402 13.4567 15.4462C13.3391 15.5132 13.2227 15.5096 13.1546 15.4781L8.88646 13.1726L8.64884 13.0443L8.41121 13.1726L4.14274 15.4782C4.07877 15.5083 3.99031 15.5147 3.87267 15.4466C3.82302 15.4033 3.76655 15.2914 3.77463 15.1781L4.61431 10.3577L4.65911 10.1005L4.47368 9.91671L1.0097 6.48394C1.00947 6.48372 1.00925 6.4835 1.00903 6.48327C0.927878 6.40178 0.91031 6.3216 0.94026 6.22412C0.960274 6.17476 0.99154 6.13062 1.02646 6.09973C1.0618 6.06847 1.09296 6.05706 1.11724 6.05436L1.12682 6.0533L1.13635 6.05186L5.91323 5.33377Z",stroke:"#C1CDD6"})});const getStarIconObject=(backgroundType,color,dark,size)=>{const colorClassName=color==="subtle"?dark?"suble_star_dark":"suble_star_light":color==="primary"?dark?"primary_star_dark":"primary_star_light":`${color}_star`;const backgroundClassName=backgroundType==="outline"?dark?"outline_empty_star_dark":"outline_empty_star_light":dark?"empty_star_dark":"empty_star_light";return{yellow:{className:`pb_star_${size} ${colorClassName}`,icon:starYellow},primary:{className:`pb_star_${size} ${colorClassName}`,icon:starPrimary},subtle:{className:`pb_star_${size} ${colorClassName}`,icon:starSubtle},fill:{className:`pb_star_${size} ${backgroundClassName}`,icon:starYellow},outline:{className:`pb_star_${size} ${backgroundClassName}`,icon:starOutline}}};const StarRatingInteractive=props=>{const{backgroundType:backgroundType,colorOption:colorOption,dark:dark,denominator:denominator,onClick:onClick,size:size}=props;const[interactiveStarValue,setInteractiveStarValue]=useState(0);const[hoverStarValue,setHoverStarValue]=useState(null);const starIcon=getStarIconObject(backgroundType,colorOption,dark,size);const handleOnClick=interactiveStarValue2=>{setInteractiveStarValue(interactiveStarValue2);onClick&&onClick(interactiveStarValue2)};const handleMouseEnter=value=>{setHoverStarValue(value)};const handleMouseLeave=()=>{setHoverStarValue(null)};const handleOnKeyDown=(event,starIndex)=>{if(event.key==="Enter"||event.key===" "){event.preventDefault();handleOnClick(starIndex)}};return jsx(Flex,{className:"star_flex_area",children:[...Array(denominator)].map(((_,index)=>{const starIndex=index+1;const isFilled=starIndex<=interactiveStarValue;const isHovered=hoverStarValue!==null&&starIndex>interactiveStarValue&&starIndex<=hoverStarValue;const baseClass=dark?starIcon[backgroundType].className.replace("empty_star_light","empty_star_dark"):starIcon[backgroundType].className;let starClass=baseClass;if(isFilled){starClass=starClass.replace(/(empty_star_light|empty_star_dark)/,"");starClass+=` ${starIcon[colorOption].className}`}if(isHovered){starClass+=" star-hovered"}if(isFilled&&starIndex===interactiveStarValue){starClass+=" star-selected"}return jsx("div",{onKeyDown:event=>handleOnKeyDown(event,starIndex),children:jsx(Icon,{className:starClass.trim(),cursor:"pointer",customIcon:starIcon[backgroundType].icon,htmlOptions:{onClick:()=>handleOnClick(starIndex),onMouseEnter:()=>handleMouseEnter(starIndex),onMouseLeave:()=>handleMouseLeave()},tabIndex:0})},index)}))})};const StarRatingDisplay=props=>{const{backgroundType:backgroundType,colorOption:colorOption,dark:dark,denominator:denominator,layoutOption:layoutOption,rating:rating,size:size}=props;const denominatorStyle=layoutOption==="onestar"?1:denominator;const activeStars=Math.round(rating)>denominatorStyle?denominatorStyle:Math.round(rating);const emptyStars=denominatorStyle-Math.round(rating)<0?0:denominatorStyle-Math.round(rating);const starIcon=getStarIconObject(backgroundType,colorOption,dark,size);return jsxs(Flex,{className:"star_flex_area",children:[[...Array(activeStars)].map(((_,index)=>jsx(React__default.Fragment,{children:jsx(Icon,{className:starIcon[colorOption].className,customIcon:starIcon[colorOption].icon})},index))),[...Array(emptyStars)].map(((_,index)=>jsx(React__default.Fragment,{children:jsx(Icon,{className:starIcon[backgroundType].className,customIcon:starIcon[backgroundType].icon})},index)))]})};const StarRating=props=>{const{aria:aria={},className:className,data:data={},dark:dark=false,layoutOption:layoutOption="default",htmlOptions:htmlOptions={},id:id,rating:rating=0,denominator:denominator=5,colorOption:colorOption="yellow",backgroundType:backgroundType="fill",size:size="sm",variant:variant="display",onClick:onClick}=props;const classes=classnames(buildCss("pb_star_rating_kit"),globalProps(props),className);const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const oneDecimalRating=rating.toFixed(1);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[layoutOption==="number"&&jsxs(Fragment,{children:[(size==="xs"||size==="sm")&&jsx(Caption,{className:"pb_star_rating_number_sm",dark:dark,paddingRight:"xs",size:"xs",text:oneDecimalRating.toString()}),size==="md"&&jsx(Body$1,{className:"pb_star_rating_number_md",color:"light",dark:dark,paddingRight:"xs",text:oneDecimalRating.toString()}),size==="lg"&&jsx(Title,{bold:false,className:"pb_star_rating_number_lg",color:"light",dark:dark,paddingRight:"sm",size:2,text:oneDecimalRating.toString()})]}),variant==="display"&&jsx(StarRatingDisplay,{backgroundType:backgroundType,colorOption:colorOption,dark:dark,denominator:denominator,layoutOption:layoutOption,rating:rating,size:size}),variant==="interactive"&&jsx(StarRatingInteractive,{backgroundType:backgroundType,colorOption:colorOption,dark:dark,denominator:denominator,onClick:onClick,size:size}),layoutOption==="onestar"&&jsxs(Fragment,{children:[(size==="xs"||size==="sm")&&jsx(Caption,{className:"pb_star_rating_number_sm",dark:dark,size:"xs",text:`${rating.toString()} of ${denominator}`}),size==="md"&&jsx(Body$1,{className:"pb_star_rating_number_md",color:"light",dark:dark,text:`${rating.toString()} of ${denominator}`}),size==="lg"&&jsx(Title,{bold:false,className:"pb_star_rating_number_lg",color:"light",dark:dark,size:2,text:`${rating.toString()} of ${denominator}`})]})]})};const Textarea=({aria:aria={},characterCount:characterCount,className:className,children:children,data:data={},disabled:disabled,htmlOptions:htmlOptions={},inline:inline=false,resize:resize="none",error:error,label:label,maxCharacters:maxCharacters,name:name,onChange:onChange=()=>{},placeholder:placeholder,required:required,rows:rows=4,value:value,...props})=>{const ref=useRef(null);useEffect((()=>{if(ref.current&&resize==="auto"){PbTextarea.addMatch(ref.current)}}));const errorClass=error?"error":null;const inlineClass=inline?"inline":"";const resizeClass=`resize_${resize}`;const classes=classnames("pb_textarea_kit",errorClass,inlineClass,resizeClass,globalProps(props),className);const noCount=typeof characterCount!=="undefined";const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const checkIfZero=characterCount2=>characterCount2==0?characterCount2.toString():characterCount2;const characterCounter=()=>maxCharacters&&characterCount?`${checkIfZero(characterCount)} / ${maxCharacters}`:`${checkIfZero(characterCount)}`;return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:[jsx(Caption,{text:label}),children||jsx("textarea",{disabled:disabled,name:name,onChange:onChange,placeholder:placeholder,ref:ref,required:required,rows:rows,value:value,...props}),error?jsx(Fragment,{children:characterCount?jsxs(Flex,{spacing:"between",vertical:"center",children:[jsx(FlexItem,{children:jsx(Body$1,{margin:"none",status:"negative",text:error})}),jsx(FlexItem,{children:jsx(Caption,{margin:"none",size:"xs",text:characterCounter()})})]}):jsx(Body$1,{status:"negative",text:error})}):noCount&&jsx(Caption,{margin:"none",size:"xs",text:characterCounter()})]})};const Textarea$1=forwardRef(Textarea);const timezoneString=dateValue=>`${DateTime$1.toTimeZone(dateValue)}`;const dateTimestamp=dateValue=>`${DateTime$1.toHour(dateValue)}:${DateTime$1.toMinute(dateValue)}${DateTime$1.toMeridiem(dateValue)}`;const dateTimeIso=dateValue=>DateTime$1.toIso(dateValue);const TimeRangeInline=props=>{const{aria:aria={},className:className,data:data={},alignment:alignment="left",htmlOptions:htmlOptions={},size:size="sm",dark:dark=false,icon:icon=false,timezone:timezone=false,startTime:startTime,endTime:endTime,id:id}=props;const dataProps=buildDataProps(data);const ariaProps=buildAriaProps(aria);const htmlProps=buildHtmlProps(htmlOptions);const separator=jsx(Body$1,{color:"light",children:jsx(Icon,{className:"pb_time_range_inline_arrow",dark:dark,fixedWidth:true,icon:"long-arrow-right"})});const iconContent=()=>icon&&jsx(Body$1,{color:"light",tag:"span",children:jsx(Icon,{className:"pb_time_range_inline_icon",dark:dark,fixedWidth:true,icon:"clock",size:size,tag:"span"})});return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classnames("pb_time_range_inline_kit_"+alignment,globalProps(props),className),id:id,children:jsxs("div",{className:"pb_time_range_inline_wrapper",children:[size=="xs"&&jsxs(Fragment,{children:[jsxs(Caption,{dark:dark,tag:"span",children:[iconContent(),jsx("time",{dateTime:dateTimeIso(startTime),children:` ${dateTimestamp(startTime)} `})]}),jsx(Caption,{className:"pb_time_range_inline_arrow",dark:dark,tag:"span",children:separator}),jsx(Caption,{dark:dark,tag:"span",children:jsx("time",{dateTime:dateTimeIso(endTime),children:` ${dateTimestamp(endTime)} `})}),timezone&&jsx(Caption,{className:"pb_time_range_inline_timezone",dark:dark,tag:"span",children:timezoneString(endTime)})]}),size=="sm"&&jsxs(Fragment,{children:[jsxs(Body$1,{dark:dark,tag:"span",children:[iconContent(),jsx("time",{dateTime:dateTimeIso(startTime),children:` ${dateTimestamp(startTime)} `})]}),jsx(Body$1,{className:"pb_time_range_inline_arrow",dark:dark,tag:"span",children:separator}),jsx(Body$1,{dark:dark,tag:"span",children:jsx("time",{dateTime:dateTimeIso(endTime),children:` ${dateTimestamp(endTime)} `})}),timezone&&jsx(Body$1,{className:"pb_time_range_inline_timezone",color:"light",dark:dark,tag:"span",children:timezoneString(endTime)})]})]})})};const TimelineItem=({className:className,children:children,date:date,htmlOptions:htmlOptions={},icon:icon="user",iconColor:iconColor="default",lineStyle:lineStyle="solid",...props})=>{const timelineItemCss=buildCss("pb_timeline_item_kit",lineStyle);const htmlProps=buildHtmlProps(htmlOptions);return jsxs("div",{...htmlProps,className:classnames(timelineItemCss,globalProps(props),className),children:[jsx("div",{className:"pb_timeline_item_left_block",children:date&&jsx(DateStacked,{align:"center",date:date,size:"sm"})}),jsxs("div",{className:"pb_timeline_item_step",children:[jsx(IconCircle,{icon:icon,size:"xs",variant:iconColor}),jsx("div",{className:"pb_timeline_item_connector"})]}),jsx("div",{className:"pb_timeline_item_right_block",children:children})]})};const Timeline=({aria:aria={},className:className,children:children,data:data={},htmlOptions:htmlOptions={},id:id,orientation:orientation="horizontal",showDate:showDate=false,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const dateStyle=showDate===true?"_with_date":"";const timelineCss=buildCss("pb_timeline_kit",`_${orientation}`,dateStyle);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classnames(timelineCss,globalProps(props),className),id:id,children:children})};Timeline.Item=TimelineItem;const TitleDetail=props=>{const{align:align="left",aria:aria={},className:className,data:data={},detail:detail,htmlOptions:htmlOptions={},id:id,title:title}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const pbCss=buildCss("pb_title_detail_kit",align);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classnames(pbCss,globalProps(props),className),id:id,children:[jsx(Title,{size:4,text:title}),jsx(Body$1,{color:"light",text:detail})]})};const Toggle=({aria:aria={},checked:checked=false,children:children,className:className,data:data={},disabled:disabled=false,id:id,htmlOptions:htmlOptions={},name:name,onChange:onChange=()=>{},size:size="sm",value:value,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css=classnames(buildCss("pb_toggle_kit",size,{on:checked,off:!checked}));return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classnames(css,globalProps(props),className),id:id,children:jsxs("label",{className:"pb_toggle_wrapper",children:[children&&children,!children&&jsx("input",{...props,defaultChecked:checked,disabled:disabled,name:name,onChange:onChange,type:"checkbox",value:value}),jsx("div",{className:"pb_toggle_control"})]})})};const Veteran=()=>jsxs("svg",{viewBox:"0 0 200 250",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M198.4 71.5V71c-.2-1.2-1.4-2.1-1.4-2.1L103.2 2.7c-.7-.4-1-.6-1.6-.6-1.3 0-2.3 1-2.3 2.3v67.1h-.6v29.6h99.8l-.1-29.6z",fill:"#004876"}),jsx("path",{d:"M172.9 159.2c-31.4 23-33.2 24.3-33.2 24.3l-40.5 3.2v-29.4l73.7 1.9z",fill:"#FFF"}),jsx("path",{d:"M99.3 125.4V33.5L1.6 102.7l-.1.1c-1 .7-1.5 1.8-1.5 3v67.4c0 1.2.6 2.3 1.5 3l.1.1 93.5 66.3c1.7 1.2 4.1 0 4.1-2.1v-28.9l40.5-28-40.5.7v-25h73.7l25.4-16.9.2-16.8H99.3z",fill:"#BB2432"}),jsx("path",{d:"M99.3 101.1h99.3v24.3H99.3z",fill:"#FFF"})]});const MillionDollar=()=>jsxs("svg",{viewBox:"0 0 242.9 242.9",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",children:[jsx("circle",{cx:121.5,cy:121.5,r:121.5}),jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"a",x1:42.483,x2:200.309,y1:35.645,y2:35.645,children:[jsx("stop",{offset:0,style:{stopColor:"#e6b711"}}),jsx("stop",{offset:.128,style:{stopColor:"#eac23c"}}),jsx("stop",{offset:.278,style:{stopColor:"#ec6"}}),jsx("stop",{offset:.413,style:{stopColor:"#f1d485"}}),jsx("stop",{offset:.527,style:{stopColor:"#f2d998"}}),jsx("stop",{offset:.607,style:{stopColor:"#f3db9f"}}),jsx("stop",{offset:1,style:{stopColor:"#e6b711"}})]}),jsx("path",{d:"M56.4 53.8c16.9-16.2 39.8-26.2 65-26.2 25.2 0 48.1 10 64.9 26.2h14c-19.1-22.2-47.4-36.3-78.9-36.3-31.5 0-59.8 14.1-78.9 36.3h13.9z",style:{fill:"url(#a)"}}),jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"b",x1:17.407,x2:44.897,y1:132.179,y2:132.179,children:[jsx("stop",{offset:0,style:{stopColor:"#e6b711"}}),jsx("stop",{offset:.128,style:{stopColor:"#eac23c"}}),jsx("stop",{offset:.278,style:{stopColor:"#ec6"}}),jsx("stop",{offset:.413,style:{stopColor:"#f1d485"}}),jsx("stop",{offset:.527,style:{stopColor:"#f2d998"}}),jsx("stop",{offset:.607,style:{stopColor:"#f3db9f"}}),jsx("stop",{offset:1,style:{stopColor:"#e6b711"}})]}),jsx("path",{d:"M44.9 175.7c-10.9-15.3-17.3-34-17.3-54.2 0-14.1 3.1-27.5 8.8-39.5H25.3c-5 12.2-7.8 25.5-7.8 39.5 0 22.7 7.3 43.8 19.8 60.9l7.6-6.7z",style:{fill:"url(#b)"}}),jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"c",x1:52.914,x2:189.715,y1:212.573,y2:212.573,children:[jsx("stop",{offset:0,style:{stopColor:"#e6b711"}}),jsx("stop",{offset:.128,style:{stopColor:"#eac23c"}}),jsx("stop",{offset:.278,style:{stopColor:"#ec6"}}),jsx("stop",{offset:.413,style:{stopColor:"#f1d485"}}),jsx("stop",{offset:.527,style:{stopColor:"#f2d998"}}),jsx("stop",{offset:.607,style:{stopColor:"#f3db9f"}}),jsx("stop",{offset:1,style:{stopColor:"#e6b711"}})]}),jsx("path",{d:"M173 199.8c-14.8 9.8-32.5 15.5-51.6 15.5s-37-5.8-51.8-15.6H52.9c18.3 16.1 42.3 25.8 68.5 25.8 26.1 0 50-9.7 68.3-25.7H173z",style:{fill:"url(#c)"}}),jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"d",x1:31.123,x2:207.766,y1:136.159,y2:136.159,children:[jsx("stop",{offset:0,style:{stopColor:"#e6b711"}}),jsx("stop",{offset:.128,style:{stopColor:"#eac23c"}}),jsx("stop",{offset:.278,style:{stopColor:"#ec6"}}),jsx("stop",{offset:.413,style:{stopColor:"#f1d485"}}),jsx("stop",{offset:.527,style:{stopColor:"#f2d998"}}),jsx("stop",{offset:.607,style:{stopColor:"#f3db9f"}}),jsx("stop",{offset:1,style:{stopColor:"#e6b711"}})]}),jsx("path",{d:"M139.2 193v-1.8c5-.4 10.2-.5 13.4-5 3.8-5.2 3.2-15.4 3.2-21.5V78.5l-47.3 120.4L61.2 81.2v61.1c0 13.6.5 35.1 12.5 44.2 4.3 3.2 9 3.9 14.2 4.7v1.8H31.1v-1.8c1.6-.4 3.2-.7 4.8-1.1 22.6-5.7 22.9-32.4 22.9-51.1v-37.8c0-6.1.5-13.3-3.2-18.5-4.5-6.1-13.4-7.2-20.4-7.5v-1.8H96l29.6 75.4 29.9-75.4h52.3v1.8c-4.8.4-10.2.9-13.4 5-3.8 4.8-3.2 15.9-3.2 21.9v62.5c0 6.3-.7 16.1 3.2 21.5 3.2 4.3 6.2 4.7 11.2 5v1.8h-66.4z",style:{fill:"url(#d)"}}),jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"e",x1:30.453,x2:213.794,y1:63.629,y2:63.629,children:[jsx("stop",{offset:0,style:{stopColor:"#e6b711"}}),jsx("stop",{offset:.128,style:{stopColor:"#eac23c"}}),jsx("stop",{offset:.278,style:{stopColor:"#ec6"}}),jsx("stop",{offset:.413,style:{stopColor:"#f1d485"}}),jsx("stop",{offset:.527,style:{stopColor:"#f2d998"}}),jsx("stop",{offset:.607,style:{stopColor:"#f3db9f"}}),jsx("stop",{offset:1,style:{stopColor:"#e6b711"}})]}),jsx("path",{d:"M30.5 60.6h183.3v6.1H30.5z",style:{fill:"url(#e)"}}),jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"f",x1:196.676,x2:225.538,y1:132.923,y2:132.923,children:[jsx("stop",{offset:0,style:{stopColor:"#e6b711"}}),jsx("stop",{offset:.128,style:{stopColor:"#eac23c"}}),jsx("stop",{offset:.278,style:{stopColor:"#ec6"}}),jsx("stop",{offset:.413,style:{stopColor:"#f1d485"}}),jsx("stop",{offset:.527,style:{stopColor:"#f2d998"}}),jsx("stop",{offset:.607,style:{stopColor:"#f3db9f"}}),jsx("stop",{offset:1,style:{stopColor:"#e6b711"}})]}),jsx("path",{d:"M196.7 177.5c11.5-15.6 18.7-35.2 18.7-56 0-14.1-3.1-27.5-8.8-39.5h11.1c5 12.2 7.8 25.5 7.8 39.5 0 23.4-7.8 45-20.9 62.4l-7.9-6.4z",style:{fill:"url(#f)"}})]});const UserBadge=props=>{const{aria:aria={},badge:badge="million-dollar",className:className,data:data={},htmlOptions:htmlOptions={},id:id,size:size="md"}=props;const image=badge==="million-dollar"?jsx(MillionDollar,{}):jsx(Veteran,{});const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_user_badge_kit",size),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx("div",{className:"pb_user_badge_wrapper",children:image})})};function isOfType$4(type){return value=>typeof value===type}var isFunction$2=isOfType$4("function");var isNull$1=value=>value===null;var isRegex$1=value=>Object.prototype.toString.call(value).slice(8,-1)==="RegExp";var isObject$1=value=>!isUndefined$1(value)&&!isNull$1(value)&&(isFunction$2(value)||typeof value==="object");var isUndefined$1=isOfType$4("undefined");function equalArray$1(left,right){const{length:length}=left;if(length!==right.length){return false}for(let index=length;index--!==0;){if(!equal$1(left[index],right[index])){return false}}return true}function equalArrayBuffer$1(left,right){if(left.byteLength!==right.byteLength){return false}const view1=new DataView(left.buffer);const view2=new DataView(right.buffer);let index=left.byteLength;while(index--){if(view1.getUint8(index)!==view2.getUint8(index)){return false}}return true}function equalMap$1(left,right){if(left.size!==right.size){return false}for(const index of left.entries()){if(!right.has(index[0])){return false}}for(const index of left.entries()){if(!equal$1(index[1],right.get(index[0]))){return false}}return true}function equalSet$1(left,right){if(left.size!==right.size){return false}for(const index of left.entries()){if(!right.has(index[0])){return false}}return true}function equal$1(left,right){if(left===right){return true}if(left&&isObject$1(left)&&right&&isObject$1(right)){if(left.constructor!==right.constructor){return false}if(Array.isArray(left)&&Array.isArray(right)){return equalArray$1(left,right)}if(left instanceof Map&&right instanceof Map){return equalMap$1(left,right)}if(left instanceof Set&&right instanceof Set){return equalSet$1(left,right)}if(ArrayBuffer.isView(left)&&ArrayBuffer.isView(right)){return equalArrayBuffer$1(left,right)}if(isRegex$1(left)&&isRegex$1(right)){return left.source===right.source&&left.flags===right.flags}if(left.valueOf!==Object.prototype.valueOf){return left.valueOf()===right.valueOf()}if(left.toString!==Object.prototype.toString){return left.toString()===right.toString()}const leftKeys=Object.keys(left);const rightKeys=Object.keys(right);if(leftKeys.length!==rightKeys.length){return false}for(let index=leftKeys.length;index--!==0;){if(!Object.prototype.hasOwnProperty.call(right,leftKeys[index])){return false}}for(let index=leftKeys.length;index--!==0;){const key=leftKeys[index];if(key==="_owner"&&left.$$typeof){continue}if(!equal$1(left[key],right[key])){return false}}return true}if(Number.isNaN(left)&&Number.isNaN(right)){return true}return left===right}var objectTypes$2=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"];var primitiveTypes$2=["bigint","boolean","null","number","string","symbol","undefined"];function getObjectType$2(value){const objectTypeName=Object.prototype.toString.call(value).slice(8,-1);if(/HTML\w+Element/.test(objectTypeName)){return"HTMLElement"}if(isObjectType$2(objectTypeName)){return objectTypeName}return void 0}function isObjectOfType$2(type){return value=>getObjectType$2(value)===type}function isObjectType$2(name){return objectTypes$2.includes(name)}function isOfType$3(type){return value=>typeof value===type}function isPrimitiveType$2(name){return primitiveTypes$2.includes(name)}var DOM_PROPERTIES_TO_CHECK$2=["innerHTML","ownerDocument","style","attributes","nodeValue"];function is$2(value){if(value===null){return"null"}switch(typeof value){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(is$2.array(value)){return"Array"}if(is$2.plainFunction(value)){return"Function"}const tagType=getObjectType$2(value);if(tagType){return tagType}return"Object"}is$2.array=Array.isArray;is$2.arrayOf=(target,predicate)=>{if(!is$2.array(target)&&!is$2.function(predicate)){return false}return target.every((d=>predicate(d)))};is$2.asyncGeneratorFunction=value=>getObjectType$2(value)==="AsyncGeneratorFunction";is$2.asyncFunction=isObjectOfType$2("AsyncFunction");is$2.bigint=isOfType$3("bigint");is$2.boolean=value=>value===true||value===false;is$2.date=isObjectOfType$2("Date");is$2.defined=value=>!is$2.undefined(value);is$2.domElement=value=>is$2.object(value)&&!is$2.plainObject(value)&&value.nodeType===1&&is$2.string(value.nodeName)&&DOM_PROPERTIES_TO_CHECK$2.every((property=>property in value));is$2.empty=value=>is$2.string(value)&&value.length===0||is$2.array(value)&&value.length===0||is$2.object(value)&&!is$2.map(value)&&!is$2.set(value)&&Object.keys(value).length===0||is$2.set(value)&&value.size===0||is$2.map(value)&&value.size===0;is$2.error=isObjectOfType$2("Error");is$2.function=isOfType$3("function");is$2.generator=value=>is$2.iterable(value)&&is$2.function(value.next)&&is$2.function(value.throw);is$2.generatorFunction=isObjectOfType$2("GeneratorFunction");is$2.instanceOf=(instance,class_)=>{if(!instance||!class_){return false}return Object.getPrototypeOf(instance)===class_.prototype};is$2.iterable=value=>!is$2.nullOrUndefined(value)&&is$2.function(value[Symbol.iterator]);is$2.map=isObjectOfType$2("Map");is$2.nan=value=>Number.isNaN(value);is$2.null=value=>value===null;is$2.nullOrUndefined=value=>is$2.null(value)||is$2.undefined(value);is$2.number=value=>isOfType$3("number")(value)&&!is$2.nan(value);is$2.numericString=value=>is$2.string(value)&&value.length>0&&!Number.isNaN(Number(value));is$2.object=value=>!is$2.nullOrUndefined(value)&&(is$2.function(value)||typeof value==="object");is$2.oneOf=(target,value)=>{if(!is$2.array(target)){return false}return target.indexOf(value)>-1};is$2.plainFunction=isObjectOfType$2("Function");is$2.plainObject=value=>{if(getObjectType$2(value)!=="Object"){return false}const prototype=Object.getPrototypeOf(value);return prototype===null||prototype===Object.getPrototypeOf({})};is$2.primitive=value=>is$2.null(value)||isPrimitiveType$2(typeof value);is$2.promise=isObjectOfType$2("Promise");is$2.propertyOf=(target,key,predicate)=>{if(!is$2.object(target)||!key){return false}const value=target[key];if(is$2.function(predicate)){return predicate(value)}return is$2.defined(value)};is$2.regexp=isObjectOfType$2("RegExp");is$2.set=isObjectOfType$2("Set");is$2.string=isOfType$3("string");is$2.symbol=isOfType$3("symbol");is$2.undefined=isOfType$3("undefined");is$2.weakMap=isObjectOfType$2("WeakMap");is$2.weakSet=isObjectOfType$2("WeakSet");var src_default$1=is$2;var objectTypes$1=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"];var primitiveTypes$1=["bigint","boolean","null","number","string","symbol","undefined"];function getObjectType$1(value){const objectTypeName=Object.prototype.toString.call(value).slice(8,-1);if(/HTML\w+Element/.test(objectTypeName)){return"HTMLElement"}if(isObjectType$1(objectTypeName)){return objectTypeName}return void 0}function isObjectOfType$1(type){return value=>getObjectType$1(value)===type}function isObjectType$1(name){return objectTypes$1.includes(name)}function isOfType$2(type){return value=>typeof value===type}function isPrimitiveType$1(name){return primitiveTypes$1.includes(name)}var DOM_PROPERTIES_TO_CHECK$1=["innerHTML","ownerDocument","style","attributes","nodeValue"];function is$1(value){if(value===null){return"null"}switch(typeof value){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(is$1.array(value)){return"Array"}if(is$1.plainFunction(value)){return"Function"}const tagType=getObjectType$1(value);if(tagType){return tagType}return"Object"}is$1.array=Array.isArray;is$1.arrayOf=(target,predicate)=>{if(!is$1.array(target)&&!is$1.function(predicate)){return false}return target.every((d=>predicate(d)))};is$1.asyncGeneratorFunction=value=>getObjectType$1(value)==="AsyncGeneratorFunction";is$1.asyncFunction=isObjectOfType$1("AsyncFunction");is$1.bigint=isOfType$2("bigint");is$1.boolean=value=>value===true||value===false;is$1.date=isObjectOfType$1("Date");is$1.defined=value=>!is$1.undefined(value);is$1.domElement=value=>is$1.object(value)&&!is$1.plainObject(value)&&value.nodeType===1&&is$1.string(value.nodeName)&&DOM_PROPERTIES_TO_CHECK$1.every((property=>property in value));is$1.empty=value=>is$1.string(value)&&value.length===0||is$1.array(value)&&value.length===0||is$1.object(value)&&!is$1.map(value)&&!is$1.set(value)&&Object.keys(value).length===0||is$1.set(value)&&value.size===0||is$1.map(value)&&value.size===0;is$1.error=isObjectOfType$1("Error");is$1.function=isOfType$2("function");is$1.generator=value=>is$1.iterable(value)&&is$1.function(value.next)&&is$1.function(value.throw);is$1.generatorFunction=isObjectOfType$1("GeneratorFunction");is$1.instanceOf=(instance,class_)=>{if(!instance||!class_){return false}return Object.getPrototypeOf(instance)===class_.prototype};is$1.iterable=value=>!is$1.nullOrUndefined(value)&&is$1.function(value[Symbol.iterator]);is$1.map=isObjectOfType$1("Map");is$1.nan=value=>Number.isNaN(value);is$1.null=value=>value===null;is$1.nullOrUndefined=value=>is$1.null(value)||is$1.undefined(value);is$1.number=value=>isOfType$2("number")(value)&&!is$1.nan(value);is$1.numericString=value=>is$1.string(value)&&value.length>0&&!Number.isNaN(Number(value));is$1.object=value=>!is$1.nullOrUndefined(value)&&(is$1.function(value)||typeof value==="object");is$1.oneOf=(target,value)=>{if(!is$1.array(target)){return false}return target.indexOf(value)>-1};is$1.plainFunction=isObjectOfType$1("Function");is$1.plainObject=value=>{if(getObjectType$1(value)!=="Object"){return false}const prototype=Object.getPrototypeOf(value);return prototype===null||prototype===Object.getPrototypeOf({})};is$1.primitive=value=>is$1.null(value)||isPrimitiveType$1(typeof value);is$1.promise=isObjectOfType$1("Promise");is$1.propertyOf=(target,key,predicate)=>{if(!is$1.object(target)||!key){return false}const value=target[key];if(is$1.function(predicate)){return predicate(value)}return is$1.defined(value)};is$1.regexp=isObjectOfType$1("RegExp");is$1.set=isObjectOfType$1("Set");is$1.string=isOfType$2("string");is$1.symbol=isOfType$2("symbol");is$1.undefined=isOfType$2("undefined");is$1.weakMap=isObjectOfType$1("WeakMap");is$1.weakSet=isObjectOfType$1("WeakSet");var src_default=is$1;function canHaveLength$1(...arguments_){return arguments_.every((d=>src_default.string(d)||src_default.array(d)||src_default.plainObject(d)))}function checkEquality$1(left,right,value){if(!isSameType$1(left,right)){return false}if([left,right].every(src_default.array)){return!left.some(hasValue$1(value))&&right.some(hasValue$1(value))}if([left,right].every(src_default.plainObject)){return!Object.entries(left).some(hasEntry$1(value))&&Object.entries(right).some(hasEntry$1(value))}return right===value}function compareNumbers$1(previousData,data,options){const{actual:actual,key:key,previous:previous,type:type}=options;const left=nested$1(previousData,key);const right=nested$1(data,key);let changed=[left,right].every(src_default.number)&&(type==="increased"?left<right:left>right);if(!src_default.undefined(actual)){changed=changed&&right===actual}if(!src_default.undefined(previous)){changed=changed&&left===previous}return changed}function compareValues$1(previousData,data,options){const{key:key,type:type,value:value}=options;const left=nested$1(previousData,key);const right=nested$1(data,key);const primary=type==="added"?left:right;const secondary=type==="added"?right:left;if(!src_default.nullOrUndefined(value)){if(src_default.defined(primary)){if(src_default.array(primary)||src_default.plainObject(primary)){return checkEquality$1(primary,secondary,value)}}else{return equal$1(secondary,value)}return false}if([left,right].every(src_default.array)){return!secondary.every(isEqualPredicate$1(primary))}if([left,right].every(src_default.plainObject)){return hasExtraKeys$1(Object.keys(primary),Object.keys(secondary))}return![left,right].every((d=>src_default.primitive(d)&&src_default.defined(d)))&&(type==="added"?!src_default.defined(left)&&src_default.defined(right):src_default.defined(left)&&!src_default.defined(right))}function getIterables$1(previousData,data,{key:key}={}){let left=nested$1(previousData,key);let right=nested$1(data,key);if(!isSameType$1(left,right)){throw new TypeError("Inputs have different types")}if(!canHaveLength$1(left,right)){throw new TypeError("Inputs don't have length")}if([left,right].every(src_default.plainObject)){left=Object.keys(left);right=Object.keys(right)}return[left,right]}function hasEntry$1(input){return([key,value])=>{if(src_default.array(input)){return equal$1(input,value)||input.some((d=>equal$1(d,value)||src_default.array(value)&&isEqualPredicate$1(value)(d)))}if(src_default.plainObject(input)&&input[key]){return!!input[key]&&equal$1(input[key],value)}return equal$1(input,value)}}function hasExtraKeys$1(left,right){return right.some((d=>!left.includes(d)))}function hasValue$1(input){return value=>{if(src_default.array(input)){return input.some((d=>equal$1(d,value)||src_default.array(value)&&isEqualPredicate$1(value)(d)))}return equal$1(input,value)}}function includesOrEqualsTo$1(previousValue,value){return src_default.array(previousValue)?previousValue.some((d=>equal$1(d,value))):equal$1(previousValue,value)}function isEqualPredicate$1(data){return value=>data.some((d=>equal$1(d,value)))}function isSameType$1(...arguments_){return arguments_.every(src_default.array)||arguments_.every(src_default.number)||arguments_.every(src_default.plainObject)||arguments_.every(src_default.string)}function nested$1(data,property){if(src_default.plainObject(data)||src_default.array(data)){if(src_default.string(property)){const props=property.split(".");return props.reduce(((acc,d)=>acc&&acc[d]),data)}if(src_default.number(property)){return data[property]}return data}return data}function treeChanges$1(previousData,data){if([previousData,data].some(src_default.nullOrUndefined)){throw new Error("Missing required parameters")}if(![previousData,data].every((d=>src_default.plainObject(d)||src_default.array(d)))){throw new Error("Expected plain objects or array")}const added=(key,value)=>{try{return compareValues$1(previousData,data,{key:key,type:"added",value:value})}catch{return false}};const changed=(key,actual,previous)=>{try{const left=nested$1(previousData,key);const right=nested$1(data,key);const hasActual=src_default.defined(actual);const hasPrevious=src_default.defined(previous);if(hasActual||hasPrevious){const leftComparator=hasPrevious?includesOrEqualsTo$1(previous,left):!includesOrEqualsTo$1(actual,left);const rightComparator=includesOrEqualsTo$1(actual,right);return leftComparator&&rightComparator}if([left,right].every(src_default.array)||[left,right].every(src_default.plainObject)){return!equal$1(left,right)}return left!==right}catch{return false}};const changedFrom=(key,previous,actual)=>{if(!src_default.defined(key)){return false}try{const left=nested$1(previousData,key);const right=nested$1(data,key);const hasActual=src_default.defined(actual);return includesOrEqualsTo$1(previous,left)&&(hasActual?includesOrEqualsTo$1(actual,right):!hasActual)}catch{return false}};const decreased=(key,actual,previous)=>{if(!src_default.defined(key)){return false}try{return compareNumbers$1(previousData,data,{key:key,actual:actual,previous:previous,type:"decreased"})}catch{return false}};const emptied=key=>{try{const[left,right]=getIterables$1(previousData,data,{key:key});return!!left.length&&!right.length}catch{return false}};const filled=key=>{try{const[left,right]=getIterables$1(previousData,data,{key:key});return!left.length&&!!right.length}catch{return false}};const increased=(key,actual,previous)=>{if(!src_default.defined(key)){return false}try{return compareNumbers$1(previousData,data,{key:key,actual:actual,previous:previous,type:"increased"})}catch{return false}};const removed=(key,value)=>{try{return compareValues$1(previousData,data,{key:key,type:"removed",value:value})}catch{return false}};return{added:added,changed:changed,changedFrom:changedFrom,decreased:decreased,emptied:emptied,filled:filled,increased:increased,removed:removed}}var E_NOSCROLL=new Error("Element already at target scroll position");var E_CANCELLED=new Error("Scroll cancelled");var min=Math.min;var ms=Date.now;var scroll={left:make("scrollLeft"),top:make("scrollTop")};function make(prop){return function scroll2(el,to,opts,cb){opts=opts||{};if(typeof opts=="function")cb=opts,opts={};if(typeof cb!="function")cb=noop$2;var start=ms();var from=el[prop];var ease=opts.ease||inOutSine;var duration=!isNaN(opts.duration)?+opts.duration:350;var cancelled=false;return from===to?cb(E_NOSCROLL,el[prop]):requestAnimationFrame(animate2),cancel;function cancel(){cancelled=true}function animate2(timestamp){if(cancelled)return cb(E_CANCELLED,el[prop]);var now=ms();var time=min(1,(now-start)/duration);var eased=ease(time);el[prop]=eased*(to-from)+from;time<1?requestAnimationFrame(animate2):requestAnimationFrame((function(){cb(null,el[prop])}))}}}function inOutSine(n){return.5*(1-Math.cos(Math.PI*n))}function noop$2(){}const scroll$1=getDefaultExportFromCjs(scroll);var scrollparent={exports:{}};(function(module){(function(root,factory){if(module.exports){module.exports=factory()}else{root.Scrollparent=factory()}})(commonjsGlobal,(function(){function isScrolling(node){var overflow=getComputedStyle(node,null).getPropertyValue("overflow");return overflow.indexOf("scroll")>-1||overflow.indexOf("auto")>-1}function scrollParent2(node){if(!(node instanceof HTMLElement||node instanceof SVGElement)){return void 0}var current=node.parentNode;while(current.parentNode){if(isScrolling(current)){return current}current=current.parentNode}return document.scrollingElement||document.documentElement}return scrollParent2}))})(scrollparent);var scrollparentExports=scrollparent.exports;const scrollParent=getDefaultExportFromCjs(scrollparentExports);var isMergeableObject=function isMergeableObject2(value){return isNonNullObject(value)&&!isSpecial(value)};function isNonNullObject(value){return!!value&&typeof value==="object"}function isSpecial(value){var stringValue=Object.prototype.toString.call(value);return stringValue==="[object RegExp]"||stringValue==="[object Date]"||isReactElement(value)}var canUseSymbol=typeof Symbol==="function"&&Symbol.for;var REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(value){return value.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(val){return Array.isArray(val)?[]:{}}function cloneUnlessOtherwiseSpecified(value,options){return options.clone!==false&&options.isMergeableObject(value)?deepmerge(emptyTarget(value),value,options):value}function defaultArrayMerge(target,source,options){return target.concat(source).map((function(element){return cloneUnlessOtherwiseSpecified(element,options)}))}function getMergeFunction(key,options){if(!options.customMerge){return deepmerge}var customMerge=options.customMerge(key);return typeof customMerge==="function"?customMerge:deepmerge}function getEnumerableOwnPropertySymbols(target){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(target).filter((function(symbol){return Object.propertyIsEnumerable.call(target,symbol)})):[]}function getKeys(target){return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))}function propertyIsOnObject(object,property){try{return property in object}catch(_){return false}}function propertyIsUnsafe(target,key){return propertyIsOnObject(target,key)&&!(Object.hasOwnProperty.call(target,key)&&Object.propertyIsEnumerable.call(target,key))}function mergeObject(target,source,options){var destination={};if(options.isMergeableObject(target)){getKeys(target).forEach((function(key){destination[key]=cloneUnlessOtherwiseSpecified(target[key],options)}))}getKeys(source).forEach((function(key){if(propertyIsUnsafe(target,key)){return}if(propertyIsOnObject(target,key)&&options.isMergeableObject(source[key])){destination[key]=getMergeFunction(key,options)(target[key],source[key],options)}else{destination[key]=cloneUnlessOtherwiseSpecified(source[key],options)}}));return destination}function deepmerge(target,source,options){options=options||{};options.arrayMerge=options.arrayMerge||defaultArrayMerge;options.isMergeableObject=options.isMergeableObject||isMergeableObject;options.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var sourceIsArray=Array.isArray(source);var targetIsArray=Array.isArray(target);var sourceAndTargetTypesMatch=sourceIsArray===targetIsArray;if(!sourceAndTargetTypesMatch){return cloneUnlessOtherwiseSpecified(source,options)}else if(sourceIsArray){return options.arrayMerge(target,source,options)}else{return mergeObject(target,source,options)}}deepmerge.all=function deepmergeAll(array,options){if(!Array.isArray(array)){throw new Error("first argument should be an array")}return array.reduce((function(prev,next){return deepmerge(prev,next,options)}),{})};var deepmerge_1=deepmerge;var cjs=deepmerge_1;const deepmerge2=getDefaultExportFromCjs(cjs);
21
+ */function flexRender(Comp,props){return!Comp?null:isReactComponent(Comp)?React.createElement(Comp,props):Comp}function isReactComponent(component){return isClassComponent(component)||typeof component==="function"||isExoticComponent(component)}function isClassComponent(component){return typeof component==="function"&&(()=>{const proto=Object.getPrototypeOf(component);return proto.prototype&&proto.prototype.isReactComponent})()}function isExoticComponent(component){return typeof component==="object"&&typeof component.$$typeof==="symbol"&&["react.memo","react.forward_ref"].includes(component.$$typeof.description)}function useReactTable(options){const resolvedOptions={state:{},onStateChange:()=>{},renderFallbackValue:null,...options};const[tableRef]=React.useState((()=>({current:createTable(resolvedOptions)})));const[state,setState]=React.useState((()=>tableRef.current.initialState));tableRef.current.setOptions((prev=>({...prev,...options,state:{...state,...options.state},onStateChange:updater=>{setState(updater);options.onStateChange==null?void 0:options.onStateChange(updater)}})));return tableRef.current}const TableHead=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,tag:tag="table"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_table_thead",globalProps(props),className);const isTableTag=tag==="table";return jsx(Fragment,{children:isTableTag?jsx("thead",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children}):jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})})};const TableHeader$1=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,tag:tag="table",text:text2}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_table_th",globalProps(props),className);const isTableTag=tag==="table";return jsx(Fragment,{children:isTableTag?jsx("th",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children}):jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children})})};const TableBody$1=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,tag:tag="table"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_table_tbody",globalProps(props),className);const isTableTag=tag==="table";return jsx(Fragment,{children:isTableTag?jsx("tbody",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children}):jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})})};const TableRow=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,sideHighlightColor:sideHighlightColor="none",tag:tag="table"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const sideHighlightClass=sideHighlightColor!=""?`side_highlight_${sideHighlightColor}`:null;const classes=classnames(buildCss("pb_table_row_kit",sideHighlightClass),"pb_table_tr",globalProps(props),className);const isTableTag=tag==="table";return jsx(Fragment,{children:isTableTag?jsx("tr",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children}):jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})})};const TableCell=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,tag:tag="table",text:text2}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_table_td",globalProps(props),className);const isTableTag=tag==="table";return jsx(Fragment,{children:isTableTag?jsx("td",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children}):jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children})})};const Table=props=>{const{aria:aria={},children:children,className:className,collapse:collapse="sm",container:container=true,dark:dark,data:data={},dataTable:dataTable=false,disableHover:disableHover=false,htmlOptions:htmlOptions={},id:id,outerPadding:outerPadding="",responsive:responsive="collapse",singleLine:singleLine=false,size:size="sm",sticky:sticky=false,striped:striped=false,tag:tag="table",verticalBorder:verticalBorder=false}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const tableCollapseCss=responsive!=="none"?`table-collapse-${collapse}`:"";const verticalBorderCss=verticalBorder?"vertical-border":"";const spaceCssName=outerPadding!=="none"?"space_":"";const outerPaddingCss=outerPadding?`outer_padding_${spaceCssName}${outerPadding}`:"";const isTableTag=tag==="table";const classNames=classnames("pb_table",`table-${size}`,`table-responsive-${responsive}`,{"table-card":container,"table-dark":dark,data_table:dataTable,"single-line":singleLine,"no-hover":disableHover,"sticky-header":sticky,striped:striped,[outerPaddingCss]:outerPadding!==""},globalProps(props),tableCollapseCss,verticalBorderCss,className);useEffect((()=>{const instance=new PbTable;instance.connect()}),[]);return jsx(Fragment,{children:isTableTag?jsx("table",{...ariaProps,...dataProps,...htmlProps,className:classNames,id:id,children:children}):jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classNames,id:id,children:children})})};Table.Head=TableHead;Table.Header=TableHeader$1;Table.Body=TableBody$1;Table.Row=TableRow;Table.Cell=TableCell;const AdvancedTableContext=createContext({});const filterExpandableRows=expandedState=>{for(const expandedRow in expandedState){if(expandedState[expandedRow]===false){delete expandedState[expandedRow]}}return expandedState};const updateExpandAndCollapseState=(tableRows,expanded,targetParent)=>{const updateExpandedRows={};const rows=tableRows.rows;let isExpansionConsistent=true;const areRowsExpanded=new Set;for(const row of rows){const shouldBeUpdated=targetParent===void 0?row.depth===0:targetParent===row.parentId;if(shouldBeUpdated){const isExpanded=row.getIsExpanded();areRowsExpanded.add(isExpanded);updateExpandedRows[row.id]=!isExpansionConsistent?true:!isExpanded;if(areRowsExpanded.size>1){isExpansionConsistent=false;for(const key in updateExpandedRows){updateExpandedRows[key]=true}}}}return filterExpandableRows({...expanded,...updateExpandedRows})};const CustomCell=({getValue:getValue,onRowToggleClick:onRowToggleClick,row:row,value:value})=>{const{setExpanded:setExpanded,expanded:expanded,expandedControl:expandedControl,inlineRowLoading:inlineRowLoading}=useContext(AdvancedTableContext);const handleOnExpand=row2=>{onRowToggleClick&&onRowToggleClick(row2);if(!expandedControl){setExpanded({...expanded,[row2.id]:!row2.getIsExpanded()})}};const RowHasChildren=row.original.children?true:false;const renderButton=inlineRowLoading?RowHasChildren:row.getCanExpand();return jsx("div",{style:{paddingLeft:`${row.depth*1.25}em`},children:jsxs(Flex,{alignItems:"center",columnGap:"xs",orientation:"row",children:[renderButton?jsx("button",{className:"gray-icon expand-toggle-icon",onClick:()=>handleOnExpand(row),children:row.getIsExpanded()?jsx(Icon,{cursor:"pointer",icon:"circle-play",rotation:90}):jsx(Icon,{cursor:"pointer",icon:"circle-play"})}):null,jsx(FlexItem,{paddingLeft:renderButton?"none":"xs",children:row.depth===0?getValue():value})]})})};const displayIcon=icon=>{if(typeof icon==="string"){return[icon,icon]}return icon};const SortIconButton=({header:header,sortIcon:sortIcon})=>jsx(Fragment,{children:header.column.getIsSorted()==="desc"?jsx("div",{className:"sort-button-icon",children:jsx(Icon,{icon:displayIcon(sortIcon)[0]})},displayIcon(sortIcon)[0]):jsx("div",{className:"sort-button-icon",children:jsx(Icon,{icon:displayIcon(sortIcon)[1]})},displayIcon(sortIcon)[1])});const ToggleIconButton=({row:row,onClick:onClick})=>{const{toggleExpansionIcon:toggleExpansionIcon}=useContext(AdvancedTableContext);return jsx("button",{className:"gray-icon toggle-all-icon",onClick:()=>onClick(row),children:jsx(Icon,{cursor:"pointer",fixedWidth:true,icon:displayIcon(toggleExpansionIcon)[0]})},displayIcon(toggleExpansionIcon)[0])};const isChrome=()=>{const userAgent=navigator.userAgent.toLowerCase();return userAgent.includes("chrome")&&!userAgent.includes("edg")};const TableHeaderCell=({enableSorting:enableSorting,enableToggleExpansion:enableToggleExpansion,handleExpandOrCollapse:handleExpandOrCollapse,header:header,headerChildren:headerChildren,isPinnedLeft:isPinnedLeft=false,loading:loading,sortIcon:sortIcon})=>{const{sortControl:sortControl,responsive:responsive}=useContext(AdvancedTableContext);const toggleSortButton=event=>{if(sortControl){const sortIsDesc=header.column.getIsSorted()==="desc";sortIsDesc?sortControl.onChange({desc:true}):sortControl.onChange({desc:false})}else{header.column.getToggleSortingHandler()(event)}};const cellClassName=classnames("table-header-cells",`${isChrome()?"chrome-styles":""}`,`${enableSorting?"table-header-cells-active":""}`,{"pinned-left":responsive==="scroll"&&isPinnedLeft});const cellId=`${loading?`loading-${header.id}`:`${header.id}`}`;const isToggleExpansionEnabledLoading=header.index===0&&loading&&(enableToggleExpansion==="all"||"header")&&enableToggleExpansion!=="none";const isToggleExpansionEnabled=header.index===0&&!loading&&(enableToggleExpansion==="all"||"header")&&enableToggleExpansion!=="none";return jsx("th",{align:"right",className:cellClassName,id:cellId,children:header.isPlaceholder?null:headerChildren&&header.index===0?jsxs(Flex,{alignItems:"center",children:[headerChildren,jsx("div",{children:flexRender(header.column.columnDef.header,header.getContext())})]}):jsxs(Flex,{alignItems:"center",justify:header.index===0&&enableSorting?"between":header.index===0&&!enableSorting?"start":"end",children:[isToggleExpansionEnabled&&jsx(ToggleIconButton,{onClick:handleExpandOrCollapse}),isToggleExpansionEnabledLoading&&jsx("div",{className:"loading-toggle-icon header-toggle-icon"}),jsxs(Flex,{className:`${header.index===0&&enableSorting&&"header-sort-button pb_th_link"}`,cursor:header.index===0&&enableSorting?"pointer":"default",...header.index===0&&enableSorting&&{htmlOptions:{onClick:event=>toggleSortButton(event),onKeyDown:event=>{if(event.key==="Enter"){toggleSortButton(event)}},tabIndex:0}},justify:header.index===0&&enableSorting?"between":"none",paddingLeft:enableSorting?"xxs":"xs",children:[jsx("div",{children:flexRender(header.column.columnDef.header,header.getContext())}),header.index===0&&header.column.getCanSort()&&enableSorting&&(loading?jsx("div",{className:"loading-toggle-icon"}):jsx(SortIconButton,{header:header,sortIcon:sortIcon}))]})]})},`${header.id}-header`)};const TableHeader=({children:children,className:className,dark:dark=false,enableSorting:enableSorting=false,id:id,sortIcon:sortIcon=["arrow-up-short-wide","arrow-down-short-wide"],...props})=>{const{enableToggleExpansion:enableToggleExpansion,handleExpandOrCollapse:handleExpandOrCollapse,loading:loading,table:table}=useContext(AdvancedTableContext);const classes=classnames(buildCss("pb_advanced_table_header"),globalProps(props),className);const columnPinning=table.getState().columnPinning;return jsx(Fragment,{children:jsx("thead",{className:classes,id:id,children:table.getHeaderGroups().map((headerGroup=>jsx("tr",{children:headerGroup.headers.map((header=>{const isPinnedLeft=columnPinning.left.includes(header.id);return jsx(TableHeaderCell,{enableSorting:enableSorting,enableToggleExpansion:enableToggleExpansion,handleExpandOrCollapse:handleExpandOrCollapse,header:header,headerChildren:children,isPinnedLeft:isPinnedLeft,loading:loading,sortIcon:sortIcon},`${header.id}-header`)}))},`${headerGroup.id}-headerGroup`)))})})};const LoadingInline=props=>{const{align:align="left",aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,text:text2=" Loading"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss(`pb_loading_inline_kit_${align}`),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs(Body$1,{color:"light",children:[jsx(Icon,{aria:{label:"loading icon"},fixedWidth:true,icon:"spinner",pulse:true}),text2]})})};const CollapsibleTrail=({leftOffset:leftOffset})=>{const style={position:"absolute",left:`${leftOffset}em`,top:0,bottom:0,width:"2px",backgroundColor:"#E4E8F0"};return jsx("div",{className:"collapsible-trail",style:style})};const renderCollapsibleTrail=currentDepth=>{const lines=[];for(let i=1;i<=currentDepth;i++){const additionalOffset=i>1?(i-1)*.25:0;const leftOffset=i*1+additionalOffset;lines.push(jsx(CollapsibleTrail,{leftOffset:leftOffset},i))}return lines};const SubRowHeaderRow=({collapsibleTrail:collapsibleTrail,enableToggleExpansion:enableToggleExpansion,onClick:onClick,row:row,subRowHeaders:subRowHeaders,table:table})=>{const{inlineRowLoading:inlineRowLoading}=useContext(AdvancedTableContext);const numberOfColumns=table.getAllFlatColumns().length;const rowHasChildren=row.original.children?true:false;const canExpand=inlineRowLoading?rowHasChildren:row.getCanExpand();return jsxs("tr",{className:"custom-row bg-silver",children:[jsxs("td",{className:`custom-row-first-column ${isChrome()?"chrome-styles":""}`,colSpan:1,children:[collapsibleTrail&&row.depth>0&&renderCollapsibleTrail(row.depth),jsx("div",{style:{paddingLeft:`${row.depth*1.25}em`},children:jsxs(Flex,{align:"center",columnGap:"xs",children:[enableToggleExpansion==="all"&&canExpand?jsx(ToggleIconButton,{onClick:onClick,row:row}):null,jsx(Caption,{marginLeft:canExpand?"none":"xs",text:subRowHeaders[row.depth-1]})]})})]}),jsx("td",{colSpan:numberOfColumns-1})]})};const LoadingCell=()=>jsx("div",{className:"loading-cell"});const TableBody=({className:className,collapsibleTrail:collapsibleTrail=true,dark:dark=false,id:id,subRowHeaders:subRowHeaders,...props})=>{const{columnDefinitions:columnDefinitions,enableToggleExpansion:enableToggleExpansion,handleExpandOrCollapse:handleExpandOrCollapse,isPinnedLeft:isPinnedLeft=false,inlineRowLoading:inlineRowLoading,loading:loading,responsive:responsive,table:table}=useContext(AdvancedTableContext);const classes=classnames(buildCss("pb_advanced_table_body"),{"pinned-left":responsive==="scroll"&&isPinnedLeft},globalProps(props),className);const columnPinning=table.getState().columnPinning;return jsx(Fragment,{children:jsx("tbody",{className:classes,id:id,children:table.getRowModel().rows.map((row=>{var _a;const isExpandable=row.getIsExpanded();const isFirstChildofSubrow=row.depth>0&&row.index===0;const rowHasNoChildren=row.original.children&&!row.original.children.length?true:false;const numberOfColumns=table.getAllFlatColumns().length;const isDataLoading=isExpandable&&(inlineRowLoading&&rowHasNoChildren)&&row.depth<((_a=columnDefinitions[0].cellAccessors)==null?void 0:_a.length);const rowBackground=isExpandable&&(!inlineRowLoading&&row.getCanExpand()||inlineRowLoading&&rowHasNoChildren);return jsxs(React__default.Fragment,{children:[isFirstChildofSubrow&&subRowHeaders&&jsx(SubRowHeaderRow,{collapsibleTrail:collapsibleTrail,enableToggleExpansion:enableToggleExpansion,onClick:handleExpandOrCollapse,row:row,subRowHeaders:subRowHeaders,table:table}),jsx("tr",{className:`${rowBackground?"bg-silver":"bg-white"} ${row.depth>0?`depth-sub-row-${row.depth}`:""}`,id:`${row.index}-${row.id}-${row.depth}-row`,children:row.getVisibleCells().map(((cell,i)=>{const isPinnedLeft2=columnPinning.left.includes(cell.column.id);return jsxs("td",{align:"right",className:classnames(`${cell.id}-cell position_relative`,isChrome()?"chrome-styles":"",isPinnedLeft2&&"pinned-left"),children:[collapsibleTrail&&i===0&&row.depth>0&&renderCollapsibleTrail(row.depth),jsx("span",{id:`${cell.id}-span`,children:loading?jsx(LoadingCell,{}):flexRender(cell.column.columnDef.cell,cell.getContext())})]},`${cell.id}-data`)}))}),isDataLoading?jsx("tr",{children:jsx("td",{colSpan:numberOfColumns,style:{paddingLeft:`${row.depth===0?.5:row.depth*2}em`},children:jsx(LoadingInline,{})})},`${row.id}-row`):null]},`${row.index}-${row.id}-${row.depth}-row`)}))})})};const AdvancedTable=props=>{const{aria:aria={},children:children,className:className,columnDefinitions:columnDefinitions,dark:dark=false,data:data={},enableToggleExpansion:enableToggleExpansion="header",expandedControl:expandedControl,htmlOptions:htmlOptions={},id:id,initialLoadingRowsCount:initialLoadingRowsCount=10,inlineRowLoading:inlineRowLoading=false,loading:loading,onRowToggleClick:onRowToggleClick,onToggleExpansionClick:onToggleExpansionClick,responsive:responsive="scroll",sortControl:sortControl,tableData:tableData,tableOptions:tableOptions,tableProps:tableProps,toggleExpansionIcon:toggleExpansionIcon="arrows-from-line"}=props;const[loadingStateRowCount,setLoadingStateRowCount]=useState(initialLoadingRowsCount);const[localExpanded,setLocalExpanded]=useState({});const expanded=expandedControl?expandedControl.value:localExpanded;const setExpanded=expandedControl?expandedControl.onChange:setLocalExpanded;const columnHelper=createColumnHelper();const createCellFunction=cellAccessors=>{const columnCells=({row:row,getValue:getValue})=>{const rowData=row.original;switch(row.depth){case 0:{return jsx(CustomCell,{getValue:getValue,onRowToggleClick:onRowToggleClick,row:row})}default:{const depthAccessor=cellAccessors[row.depth-1];const accessorValue=rowData[depthAccessor];return accessorValue?jsx(CustomCell,{onRowToggleClick:onRowToggleClick,row:row,value:accessorValue}):"N/A"}}};return columnCells};const columns=columnDefinitions&&columnDefinitions.map((column=>{const columnStructure={...columnHelper.accessor(column.accessor,{header:column.label})};if(column.cellAccessors){columnStructure.cell=createCellFunction(column.cellAccessors)}return columnStructure}));const sorting=[{id:columnDefinitions[0].accessor,desc:sortControl&&sortControl.value!==null?!sortControl.value.desc:false}];const expandAndSortState=()=>{if(sortControl){return{state:{expanded:expanded,sorting:sorting}}}else{return{state:{expanded:expanded}}}};const table=useReactTable({data:loading?Array(loadingStateRowCount).fill({}):tableData,columns:columns,onExpandedChange:setExpanded,getSubRows:row=>row.children,getCoreRowModel:getCoreRowModel(),getExpandedRowModel:getExpandedRowModel(),getSortedRowModel:getSortedRowModel(),enableSortingRemoval:false,sortDescFirst:true,...expandAndSortState(),...tableOptions});const tableRows=table.getRowModel();const updateLoadingStateRowCount=useCallback((()=>{const rowsCount=table.getRowModel().rows.length;if(rowsCount!==loadingStateRowCount&&rowsCount!==0){setLoadingStateRowCount(rowsCount)}}),[tableData,loadingStateRowCount]);useEffect((()=>{if(!loading){updateLoadingStateRowCount()}}),[loading,updateLoadingStateRowCount]);const handleExpandOrCollapse=async row=>{onToggleExpansionClick&&onToggleExpansionClick(row);const expandedState=expanded;const targetParent=row==null?void 0:row.parentId;const updatedRows=await updateExpandAndCollapseState(tableRows,expandedState,targetParent);setExpanded(updatedRows)};const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_advanced_table"),`table-responsive-${responsive}`,globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx(AdvancedTableContext.Provider,{value:{columnDefinitions:columnDefinitions,enableToggleExpansion:enableToggleExpansion,expanded:expanded,expandedControl:expandedControl,handleExpandOrCollapse:handleExpandOrCollapse,inlineRowLoading:inlineRowLoading,loading:loading,responsive:responsive,setExpanded:setExpanded,sortControl:sortControl,table:table,toggleExpansionIcon:toggleExpansionIcon},children:jsx(Table,{className:`${loading?"content-loading":""}`,dark:dark,dataTable:true,numberSpacing:"tabular",responsive:"none",...tableProps,children:children?children:jsxs(Fragment,{children:[jsx(TableHeader,{}),jsx(TableBody,{})]})})})})};AdvancedTable.Header=TableHeader;AdvancedTable.Body=TableBody;const AvatarActionButton=props=>{const{action:action="add",aria:aria={},linkAriaLabel:linkAriaLabel,className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,imageAlt:imageAlt="",imageUrl:imageUrl,linkUrl:linkUrl,name:name,onClick:onClick,placement:placement="bottom left",size:size="md"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_avatar_action_button_kit",action,placement,size),globalProps(props),className);const icons={add:"plus-circle",remove:"times-circle"};return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs("a",{"aria-label":linkAriaLabel,href:linkUrl,onClick:onClick,children:[jsx(Avatar,{imageAlt:imageAlt,imageUrl:imageUrl,name:name,size:size}),jsx("div",{className:`icon ${dark?"dark":""}`,children:jsx(Icon,{dark:dark,icon:icons[action]})})]})})};const BreadCrumbItem=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,component:component="a",...rest}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const Component=component||"span";const css=classnames(buildCss("pb_bread_crumb_item_kit"),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:css,id:id,children:jsx(Component,{className:"pb_bread_crumb_item",...domSafeProps(rest)})})};const BreadCrumbs=props=>{const{aria:aria={label:"Breadcrumb Navigation"},className:className,data:data={},htmlOptions:htmlOptions={},id:id,children:children}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css=classnames(buildCss("pb_bread_crumbs_kit"),globalProps(props),className);return jsx("nav",{...ariaProps,...dataProps,...htmlProps,className:css,id:id,children:children})};const ButtonToolbar=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,orientation:orientation="horizontal",text:text2,variant:variant="primary"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_button_toolbar_kit",orientation,variant),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children||text2})};const contactTypeMap={cell:"mobile",email:"envelope",extension:"phone-plus",home:"phone",work:"phone-office","work-cell":"phone-laptop","wrong-phone":"phone-slash"};const formatContact=(contactString,contactType)=>{if(contactType==="email")return contactString;const cleaned=contactString.replace(/\D/g,"");const phoneNumber=cleaned.match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);if(contactType==="extension"){return cleaned.match(/^\d{4}$/)}if(phoneNumber){const intlCode=phoneNumber[1]?"+1 ":"";return[intlCode,"(",phoneNumber[2],") ",phoneNumber[3],"-",phoneNumber[4]].join("")}return null};const Contact=props=>{const{aria:aria={},className:className,contactDetail:contactDetail,contactType:contactType,contactValue:contactValue,data:data={},dark:dark=false,htmlOptions:htmlOptions={},id:id}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_contact_kit"),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs(Body$1,{className:"pb_contact_kit",color:"light",dark:dark,tag:"span",children:[jsx(Icon,{dark:dark,fixedWidth:true,icon:contactTypeMap[contactType]||"phone"}),` ${formatContact(contactValue,contactType)} `,contactDetail&&jsx(Caption,{dark:dark,size:"xs",tag:"span",text:contactDetail})]})})};const sizes$1={lg:1,md:3,sm:4};const Currency=props=>{const{abbreviate:abbreviate=false,align:align="left",aria:aria={},amount:amount,data:data={},decimals:decimals="default",emphasized:emphasized=true,htmlOptions:htmlOptions={},id:id,unit:unit,className:className,label:label="",size:size="sm",symbol:symbol="$",variant:variant="default",dark:dark=false,unstyled:unstyled=false}=props;const emphasizedClass=emphasized?"":"_deemphasized";let variantClass;if(variant==="light"){variantClass="_light"}else if(variant==="bold"){variantClass="_bold"}const[whole,decimal="00"]=amount.split(".");const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_currency_kit",align,size),globalProps(props),className);const getFormattedNumber=input=>new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(input);const getAbbreviatedValue=abbrType=>{const num=`${getFormattedNumber(whole.split(",").join(""))}`,isAmount=abbrType==="amount",isUnit=abbrType==="unit";return isAmount?num.slice(0,-1):isUnit?num.slice(-1):""};const getMatchingDecimalAmount=decimals==="matching"?amount:whole,getMatchingDecimalValue=decimals==="matching"?"":`.${decimal}`;const getAmount=abbreviate?getAbbreviatedValue("amount"):getMatchingDecimalAmount,getAbbreviation=abbreviate?getAbbreviatedValue("unit"):null,getDecimalValue=abbreviate?"":getMatchingDecimalValue;return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[jsx(Caption,{dark:dark,children:label}),jsx("div",{className:`pb_currency_wrapper${variantClass||emphasizedClass}`,children:unstyled?jsxs(Fragment,{children:[jsx("div",{children:symbol}),jsx("div",{children:getAmount}),jsxs("div",{children:[getAbbreviation,unit?unit:getDecimalValue]})]}):jsxs(Fragment,{children:[jsx(Body$1,{className:"dollar_sign",color:"light",dark:dark,children:symbol}),jsx(Title,{className:"pb_currency_value",dark:dark,size:sizes$1[size],children:getAmount}),jsxs(Body$1,{className:"unit",color:"light",dark:dark,children:[getAbbreviation,unit?unit:getDecimalValue]})]})})]})};const statusMap={increase:"positive",decrease:"negative",neutral:"neutral"};const iconMap$1={increase:"arrow-up",decrease:"arrow-down"};const StatChange=props=>{const{change:change="neutral",className:className,htmlOptions:htmlOptions={},icon:icon,id:id,value:value}=props;const status=statusMap[change];let returnedIcon=iconMap$1[change];if(icon){returnedIcon=icon}const htmlProps=buildHtmlProps(htmlOptions);return jsx(Fragment,{children:value&&jsx("div",{className:classnames(buildCss("pb_stat_change_kit",status),globalProps(props),className),id:id,...htmlProps,children:jsxs(Body$1,{status:status,children:[returnedIcon&&jsxs(Fragment,{children:[jsx(Icon,{fixed_width:true,icon:returnedIcon})," "]}),`${value}%`]})})})};const StatValue=props=>{const{className:className,htmlOptions:htmlOptions={},id:id,unit:unit,value:value=0}=props;const htmlProps=buildHtmlProps(htmlOptions);const displayValue=function(value2){if(value2||value2===0){return jsx(Title,{size:1,tag:"span",text:`${value2}`})}};const displayUnit=function(unit2){if(unit2){return jsx(Title,{size:3,tag:"span",text:unit2})}};return jsx("div",{className:classnames("pb_stat_value_kit",globalProps(props),className),id:id,...htmlProps,children:jsxs("div",{className:"pb_stat_value_wrapper",children:[displayValue(value)," ",displayUnit(unit)]})})};const DashboardValue=props=>{const{align:align="left",aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,statChange:statChange={},statLabel:statLabel,statValue:statValue={}}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dashboard_value_kit",align),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[statLabel&&jsx(Body$1,{color:"light",children:statLabel}),statValue&&jsx(StatValue,{unit:statValue.unit,value:statValue.value}),statChange&&jsx(StatChange,{change:statChange.change,value:statChange.value})]})};const PbDate=props=>{const{aria:aria={},alignment:alignment="left",className:className,data:data={},htmlOptions:htmlOptions={},id:id,showDayOfWeek:showDayOfWeek=false,showIcon:showIcon=false,size:size="md",unstyled:unstyled=false,value:value}=props;const weekday=DateTime$1.toWeekday(value);const month=DateTime$1.toMonth(value);const day=DateTime$1.toDay(value);const year=DateTime$1.toYear(value);const currentYear=(new Date).getFullYear();const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_date_kit",alignment),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:unstyled?jsxs(Fragment,{children:[showIcon&&jsx("div",{children:jsx(Icon,{fixedWidth:true,icon:"calendar-alt"})}),showDayOfWeek&&jsxs(Fragment,{children:[jsx("div",{children:weekday}),jsx("div",{children:"•"})]}),jsxs("span",{children:[jsxs("span",{children:[month," ",day]}),currentYear!=year&&jsx("span",{children:`, ${year}`})]})]}):size=="md"||size=="lg"?jsxs(Title,{size:4,tag:"h4",children:[showIcon&&jsx(Body$1,{className:"pb_icon_kit_container",color:"light",tag:"span",children:jsx(Icon,{fixedWidth:true,icon:"calendar-alt"})}),showDayOfWeek&&jsxs(Fragment,{children:[weekday,jsx(Body$1,{color:"light",tag:"span",text:" • "})]}),jsxs("span",{children:[month," ",day]}),currentYear!=year&&jsx("span",{children:`, ${year}`})]}):jsxs(Fragment,{children:[showIcon&&jsx(Caption,{className:"pb_icon_kit_container",tag:"span",children:jsx(Icon,{fixedWidth:true,icon:"calendar-alt",size:"sm"})}),showDayOfWeek&&jsxs(Fragment,{children:[jsx(Caption,{tag:"div",children:weekday}),jsx(Caption,{color:"light",tag:"div",text:" • "})]}),jsxs(Caption,{tag:"span",children:[month," ",day,currentYear!=year&&jsx(Fragment,{children:`, ${year}`})]})]})})};const DatePicker=props=>{if(props.plugins);const{allowInput:allowInput=false,aria:aria={},className:className,customQuickPickDates:customQuickPickDates,dark:dark=false,data:data={},defaultDate:defaultDate="",disableDate:disableDate=null,disableInput:disableInput,disableRange:disableRange=null,disableWeekdays:disableWeekdays=null,enableTime:enableTime=false,error:error,format:format="m/d/Y",hideIcon:hideIcon=false,hideLabel:hideLabel=false,htmlOptions:htmlOptions={},id:id,inLine:inLine=false,inputAria:inputAria={},inputData:inputData={},inputOnChange:inputOnChange,inputValue:inputValue,label:label="Date Picker",maxDate:maxDate,minDate:minDate,mode:mode="single",name:name,onChange:onChange=()=>{},onClose:onClose,pickerId:pickerId,placeholder:placeholder="Select Date",plugins:plugins=false,position:position,positionElement:positionElement,scrollContainer:scrollContainer,selectionType:selectionType="",showTimezone:showTimezone=false,staticPosition:staticPosition=true,thisRangesEndToday:thisRangesEndToday=false,yearRange:yearRange=[1900,2100]}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const inputAriaProps=buildAriaProps(inputAria);const inputDataProps=buildDataProps(inputData);useEffect((()=>{datePickerHelper({allowInput:allowInput,customQuickPickDates:customQuickPickDates,defaultDate:defaultDate,disableDate:disableDate,disableRange:disableRange,disableWeekdays:disableWeekdays,enableTime:enableTime,format:format,hideIcon:hideIcon,inLine:inLine,maxDate:maxDate,minDate:minDate,mode:mode,onChange:onChange,onClose:onClose,pickerId:pickerId,plugins:plugins,position:position,positionElement:positionElement,selectionType:selectionType,showTimezone:showTimezone,staticPosition:staticPosition,thisRangesEndToday:thisRangesEndToday,yearRange:yearRange,required:false},scrollContainer)}));const filteredProps={...props};if(filteredProps.marginBottom===void 0){filteredProps.marginBottom="sm"}filteredProps==null?true:delete filteredProps.position;const classes=classnames(buildCss("pb_date_picker_kit"),globalProps(filteredProps),error?"error":null,className);const iconWrapperClass=()=>{let base="cal_icon_wrapper";if(dark){base+=" dark"}if(hideLabel){base+=" no_label_shift"}if(error){base+=" error"}return base};return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs("div",{...inputAriaProps,...inputDataProps,className:"input_wrapper",children:[jsx(Caption,{className:"pb_date_picker_kit_label",text:hideLabel?null:label}),jsxs(Fragment,{children:[jsxs("div",{className:"date_picker_input_wrapper",children:[jsx("input",{autoComplete:"off",className:"date_picker_input",disabled:disableInput,id:pickerId,name:name,onChange:inputOnChange,placeholder:placeholder,value:inputValue}),error&&jsx(Body$1,{status:"negative",text:error,variant:null})]}),!hideIcon&&jsx("div",{className:iconWrapperClass(),id:`cal-icon-${pickerId}`,children:jsx(Icon,{className:"cal_icon",icon:"calendar-alt"})}),hideIcon&&inLine?jsxs("div",{children:[jsx("div",{className:iconWrapperClass(),id:`${pickerId}-icon-plus`,children:jsx(Icon,{className:"date-picker-plus-icon",icon:"plus"})}),jsx("div",{className:iconWrapperClass(),id:`${pickerId}-angle-down`,children:jsx(Icon,{className:"angle_down_icon",icon:"angle-down"})})]}):null]})]})})};const dateTimestamp$1=(dateValue,includeYear)=>{if(includeYear){return`${DateTime$1.toMonth(dateValue)} ${DateTime$1.toDay(dateValue)}, ${DateTime$1.toYear(dateValue)}`}else{return`${DateTime$1.toMonth(dateValue)} ${DateTime$1.toDay(dateValue)}`}};const dateTimeIso$1=dateValue=>DateTime$1.toIso(dateValue);const DateRangeInline=props=>{const{align:align="left",className:className,dark:dark=false,data:data={},endDate:endDate,htmlOptions:htmlOptions={},icon:icon=false,size:size="sm",startDate:startDate}=props;const dateInCurrentYear=()=>{const currentDate=new Date;return(startDate==null?void 0:startDate.getFullYear())===(endDate==null?void 0:endDate.getFullYear())&&(startDate==null?void 0:startDate.getFullYear())===currentDate.getFullYear()};const dateRangeClasses=buildCss("pb_date_range_inline_kit",align);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const renderTime=date=>jsx("time",{dateTime:dateTimeIso$1(date),children:dateInCurrentYear()?` ${dateTimestamp$1(date,false)} `:` ${dateTimestamp$1(date,true)} `});return jsx("div",{...dataProps,...htmlProps,className:classnames(dateRangeClasses,globalProps(props),className),children:jsxs("div",{className:"pb_date_range_inline_wrapper",children:[size==="xs"&&jsxs(Fragment,{children:[icon&&jsx(Caption,{dark:dark,tag:"span",children:jsx(Icon,{className:"pb_date_range_inline_icon",dark:dark,fixedWidth:true,icon:"calendar-alt",size:size,tag:"span"})}),jsx(Caption,{dark:dark,tag:"span",children:renderTime(startDate)}),jsx(Caption,{dark:dark,tag:"span",children:jsx(Icon,{className:"pb_date_range_inline_arrow",dark:dark,fixedWidth:true,icon:"long-arrow-right",tag:"span"})}),jsx(Caption,{dark:dark,tag:"span",children:renderTime(endDate)})]}),size==="sm"&&jsxs(Fragment,{children:[icon&&jsx(Body$1,{color:"light",dark:dark,tag:"span",children:jsx(Icon,{className:"pb_date_range_inline_icon",dark:dark,fixedWidth:true,icon:"calendar-alt",size:size,tag:"span"})}),jsx(Body$1,{dark:dark,tag:"span",children:renderTime(startDate)}),jsx(Body$1,{color:"light",dark:dark,tag:"span",children:jsx(Icon,{className:"pb_date_range_inline_arrow",dark:dark,fixedWidth:true,icon:"long-arrow-right",tag:"span"})}),jsx(Body$1,{dark:dark,tag:"span",children:renderTime(endDate)})]})]})})};const DateYearStacked=props=>{const{align:align="left",className:className,dark:dark=false,date:date,data:data={},htmlOptions:htmlOptions={}}=props;const css=classnames(buildCss("pb_date_year_stacked",align),globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsxs("div",{...dataProps,...htmlProps,className:css,children:[jsx(Title,{dark:dark,size:4,text:`${DateTime$1.toDay(date)} ${DateTime$1.toMonth(date).toUpperCase()}`}),jsx(Body$1,{color:"light",children:DateTime$1.toYear(date)})]})};const DateRangeStacked=props=>{const{className:className,dark:dark=false,endDate:endDate,htmlOptions:htmlOptions={},startDate:startDate,data:data={}}=props;const css=classnames(buildCss("pb_date_range_stacked"),globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx("div",{...dataProps,...htmlProps,className:css,children:jsxs(Flex,{vertical:"center",children:[jsx(FlexItem,{children:jsx(DateYearStacked,{align:"right",dark:dark,date:startDate})}),jsx(FlexItem,{children:jsx("div",{children:jsx(Body$1,{color:"light",tag:"span",children:jsx(Icon,{className:"pb_date_range_stacked_arrow",fixedWidth:true,icon:"long-arrow-right"})})})}),jsx(FlexItem,{children:jsx(DateYearStacked,{dark:dark,date:endDate})})]})})};const sizes={sm:4,md:3};const DateStacked=props=>{const{align:align="left",bold:bold=false,reverse:reverse=false,className:className,dark:dark=false,date:date,data:data={},htmlOptions:htmlOptions={},size:size="sm"}=props;const classes=classnames(buildCss("pb_date_stacked_kit",align,size,{dark:dark,reverse:reverse}),globalProps(props),className);const currentYear=(new Date).getFullYear();const inputYear=DateTime$1.toYear(date);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx(Fragment,{children:bold==false?jsxs("div",{...dataProps,...htmlProps,className:classes,children:[jsxs("div",{className:"pb_date_stacked_day_month",children:[jsx(Caption,{text:DateTime$1.toMonth(date).toUpperCase()}),jsx(Title,{dark:dark,size:sizes[size],text:DateTime$1.toDay(date).toString()})]}),currentYear!=inputYear&&jsx(Caption,{size:"xs",children:inputYear})]}):jsx("div",{...dataProps,...htmlProps,className:classes,children:jsxs("div",{className:"pb_date_stacked_day_month",children:[jsx(Title,{bold:true,dark:dark,size:"4",text:DateTime$1.toMonth(date)}),jsx(Title,{bold:true,dark:dark,size:"4",text:DateTime$1.toDay(date).toString()}),currentYear!=inputYear&&jsx(Title,{size:"4",children:inputYear})]})})})};const Time=props=>{const{align:align,className:className,date:date,htmlOptions:htmlOptions={},showIcon:showIcon,size:size,timeZone:timeZone,unstyled:unstyled=false,showTimezone:showTimezone=true}=props;const classes=classnames(buildCss("pb_time_kit",align,size),globalProps(props),className);const clockIcon=getAllIcons()["clock"];const htmlProps=buildHtmlProps(htmlOptions);return jsxs("div",{...htmlProps,className:classes,children:[showIcon&&(unstyled?jsxs("span",{children:[jsx(Icon,{className:"svg-inline--fa clock",customIcon:clockIcon.icon})," "]}):jsx(Fragment,{children:jsxs(Body$1,{color:"light",tag:"span",children:[jsx(Icon,{className:"svg-inline--fa clock",customIcon:clockIcon.icon,fixedWidth:true,size:size==="md"?"":"sm"})," "]})})),jsx("time",{dateTime:date.toLocaleString(),children:jsx("span",{children:unstyled?jsxs(Fragment,{children:[jsx("span",{children:DateTime$1.toTimeWithMeridiem(date,timeZone)})," ",showTimezone&&jsx("span",{children:DateTime$1.toTimeZone(date,timeZone)})]}):size==="md"?jsxs(Fragment,{children:[jsx(Body$1,{className:"pb_time",tag:"span",text:DateTime$1.toTimeWithMeridiem(date,timeZone)})," ",showTimezone&&jsx(Body$1,{color:"light",tag:"span",text:DateTime$1.toTimeZone(date,timeZone)})]}):jsxs(Fragment,{children:[jsx(Caption,{color:"light",tag:"span",text:DateTime$1.toTimeWithMeridiem(date,timeZone)})," ",showTimezone&&jsx(Caption,{color:"light",tag:"span",text:DateTime$1.toTimeZone(date,timeZone)})]})})})]})};const DateTime=props=>{const{align:align="left",aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},showDayOfWeek:showDayOfWeek=false,datetime:datetime2,id:id,showIcon:showIcon=false,size:size="md",timeZone:timeZone="America/New_York"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_date_time",size),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs(Flex,{horizontal:align,vertical:"baseline",children:[jsx(PbDate,{showDayOfWeek:showDayOfWeek,size:size,value:datetime2}),jsx(Time,{date:datetime2,marginLeft:"sm",showIcon:showIcon,size:size,timeZone:timeZone})]})})};const TimeStackedDefault=props=>{if(props.date);const{align:align="left",className:className,dark:dark,data:data={},date:date,htmlOptions:htmlOptions={},time:time,timeZone:timeZone}=props;const classes=classnames(buildCss("pb_time_stacked_kit",align),globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx("div",{className:classes,...dataProps,...htmlProps,children:jsx(Body$1,{className:classnames("pb_time_stacked","time-spacing"),color:"light",dark:dark,children:jsxs("time",{children:[DateTime$1.toTimeWithMeridiem(date?date:new Date(time),timeZone),jsx(Caption,{className:"pb_time_stacked",color:"light",dark:dark,tag:"span",text:DateTime$1.toTimeZone(date?date:new Date(time),timeZone)})]})})})};const DateTimeStacked=props=>{if(props.date);const{date:date,datetime:datetime2,dark:dark,htmlOptions:htmlOptions={},timeZone:timeZone="America/New_York"}=props;const classes=buildCss("pb_date_time_stacked_kit",globalProps(props));const htmlProps=buildHtmlProps(htmlOptions);return jsxs(Flex,{inline:false,vertical:"stretch",...htmlProps,...props,children:[jsx(FlexItem,{children:jsx(DateStacked,{align:"right",bold:true,dark:dark,date:date||datetime2})}),jsx(SectionSeparator,{className:"date-time-padding",orientation:"vertical"}),jsx(FlexItem,{children:jsx(TimeStackedDefault,{className:classes,dark:dark,date:date||datetime2,timeZone:timeZone})})]})};const Detail=props=>{const{aria:aria={},bold:bold=false,children:children,className:className,color:color="light",data:data={},htmlOptions:htmlOptions={},id:id="",tag:tag="div",text:text2=""}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const isBold=bold?"bold":null;const classes=classnames(buildCss("pb_detail_kit",`color`,color),isBold,globalProps(props),className);const Tag=`${tag}`;return jsx(Tag,{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text2||children})};const DropdownContext=createContext({});const List=props=>{const{aria:aria={},borderless:borderless=false,children:children,className:className,dark:dark=false,data:data={},enableDrag:enableDrag=false,htmlOptions:htmlOptions={},id:id,layout:layout="",ordered:ordered=false,role:role,size:size="",tabIndex:tabIndex,xpadding:xpadding=false,variant:variant,text:text2}=props;const layoutClass={left:"layout_left",right:"layout_right",default:""};const childrenWithProps=React__default.Children.map(children,(child=>React__default.cloneElement(child,{text:text2,variant:variant,enableDrag:enableDrag})));const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_list_kit",layoutClass[layout],size,{dark:dark,borderless:borderless,ordered:ordered,xpadding:xpadding}),globalProps(props),className);return jsx(Fragment,{children:enableDrag?jsx(Draggable.Container,{children:jsx("div",Object.assign({className:classes},{children:ordered?jsx("ol",Object.assign({},ariaProps,dataProps,htmlProps,{className:className,id:id,role:role,tabIndex:tabIndex},{children:childrenWithProps}),void 0):jsx("ul",Object.assign({},ariaProps,dataProps,htmlProps,{className:className,id:id,role:role,tabIndex:tabIndex},{children:childrenWithProps}),void 0)}),void 0)},void 0):jsx("div",Object.assign({className:classes},{children:ordered?jsx("ol",Object.assign({},ariaProps,dataProps,htmlProps,{className:className,id:id,role:role,tabIndex:tabIndex},{children:childrenWithProps}),void 0):jsx("ul",Object.assign({},ariaProps,dataProps,htmlProps,{className:className,id:id,role:role,tabIndex:tabIndex},{children:childrenWithProps}),void 0)}),void 0)},void 0)};const ListItem=props=>{const{aria:aria={},children:children,className:className,data:data={},enableDrag:enableDrag,dragId:dragId,dragHandle:dragHandle=true,htmlOptions:htmlOptions={},id:id,tabIndex:tabIndex}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_item_kit"),globalProps(props),className);return jsx(Fragment,{children:enableDrag?jsx(Draggable.Item,Object.assign({dragId:dragId},{children:jsxs("li",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id,tabIndex:tabIndex},{children:[dragHandle&&jsx("span",Object.assign({style:{verticalAlign:"middle"}},{children:jsx(Body$1,Object.assign({color:"light"},{children:jsx(Icon,{icon:"grip-dots-vertical",verticalAlign:"middle"},void 0)}),void 0)}),void 0),children]}),void 0)}),void 0):jsx("li",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id,tabIndex:tabIndex},{children:children}),void 0)},void 0)};const DropdownContainer=props=>{const{aria:aria={},children:children,className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,searchbar:searchbar=false}=props;const{dropdownContainerRef:dropdownContainerRef,filteredOptions:filteredOptions,filterItem:filterItem,handleChange:handleChange,inputRef:inputRef,isDropDownClosed:isDropDownClosed,setFocusedOptionIndex:setFocusedOptionIndex,triggerRef:triggerRef}=useContext(DropdownContext);const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dropdown_container"),`${isDropDownClosed?"close":"open"}`,globalProps(props),className);return jsxs("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id,onMouseEnter:()=>setFocusedOptionIndex(-1),ref:dropdownContainerRef,style:triggerRef?{}:{position:"absolute"}},{children:[searchbar&&jsx(TextInput,Object.assign({dark:dark,paddingTop:"xs",paddingX:"xs"},{children:jsx("input",{onChange:handleChange,placeholder:"Select...",ref:inputRef,value:filterItem},void 0)}),void 0),jsx(List,Object.assign({dark:dark},{children:(filteredOptions===null||filteredOptions===void 0?void 0:filteredOptions.length)===0?jsx(ListItem,Object.assign({dark:dark,display:"flex",justifyContent:"center",padding:"xs"},{children:jsx(Body$1,{color:"light",dark:dark,text:"no option"},void 0)}),void 0):children}),void 0)]}),void 0)};const DropdownOption=props=>{const{aria:aria={},children:children,className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,key:key,option:option}=props;const{filteredOptions:filteredOptions,filterItem:filterItem,focusedOptionIndex:focusedOptionIndex,handleOptionClick:handleOptionClick,selected:selected}=useContext(DropdownContext);const isItemMatchingFilter=option2=>{const label=typeof option2.label==="string"?option2.label.toLowerCase():option2.label;return String(label).toLowerCase().includes(filterItem.toLowerCase())};if(!isItemMatchingFilter(option)){return null}const isFocused=focusedOptionIndex>=0&&filteredOptions[focusedOptionIndex].label===option.label;const focusedClass=isFocused&&"focused";const selectedClass=`${selected.label===option.label?"selected":"list"}`;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dropdown_option",selectedClass,focusedClass),globalProps(props),className);return createElement("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,key:key,onClick:()=>handleOptionClick(option)},jsx(ListItem,{cursor:"pointer",dark:dark,"data-name":option.value,padding:"none",children:children?jsx("div",{className:"dropdown_option_wrapper",children:children}):jsx(Body$1,{dark:dark,text:option.label})},option.label))};const useHandleOnKeyDown=()=>{const{autocomplete:autocomplete,filteredOptions:filteredOptions,focusedOptionIndex:focusedOptionIndex,handleBackspace:handleBackspace,handleOptionClick:handleOptionClick,selected:selected,setFocusedOptionIndex:setFocusedOptionIndex,setIsDropDownClosed:setIsDropDownClosed}=useContext(DropdownContext);return e=>{if(e.key!=="Tab"&&autocomplete&&selected&&selected.label){handleBackspace()}switch(e.key){case"Backspace":case"Delete":if(autocomplete){handleBackspace()}break;case"ArrowDown":{e.preventDefault();setIsDropDownClosed(false);const nextIndex=(focusedOptionIndex+1)%filteredOptions.length;setFocusedOptionIndex(nextIndex);break}case"ArrowUp":{e.preventDefault();const nextIndexUp=(focusedOptionIndex-1+filteredOptions.length)%filteredOptions.length;setFocusedOptionIndex(nextIndexUp);break}case"Enter":if(focusedOptionIndex!==-1){e.preventDefault();handleOptionClick(filteredOptions[focusedOptionIndex]);setFocusedOptionIndex(-1)}else if(focusedOptionIndex===-1){setIsDropDownClosed(false)}break;case"Tab":setIsDropDownClosed(true);setFocusedOptionIndex(-1);break}}};const DropdownTrigger=props=>{const{aria:aria={},children:children,className:className,customDisplay:customDisplay,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,placeholder:placeholder}=props;const{autocomplete:autocomplete,filterItem:filterItem,handleChange:handleChange,handleWrapperClick:handleWrapperClick,inputRef:inputRef,inputWrapperRef:inputWrapperRef,isDropDownClosed:isDropDownClosed,isInputFocused:isInputFocused,selected:selected,setIsInputFocused:setIsInputFocused,toggleDropdown:toggleDropdown,triggerRef:triggerRef}=useContext(DropdownContext);const handleKeyDown=useHandleOnKeyDown();const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dropdown_trigger"),globalProps(props),className);const triggerWrapperClasses=buildCss("dropdown_trigger_wrapper",isInputFocused&&"focus",!autocomplete&&"select_only");const customDisplayPlaceholder=selected.label?jsx("b",{children:selected.label},void 0):autocomplete?"":placeholder?placeholder:"Select...";const defaultDisplayPlaceholder=selected.label?selected.label:autocomplete?"":placeholder?placeholder:"Select...";return jsx("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id},{children:!triggerRef&&(children?jsx("div",Object.assign({onClick:()=>toggleDropdown(),onKeyDown:handleKeyDown,ref:inputWrapperRef,style:{display:"inline-block"},tabIndex:0},{children:children}),void 0):jsx(Fragment,{children:jsxs(Flex,Object.assign({align:"center",borderRadius:"lg",className:triggerWrapperClasses,cursor:`${autocomplete?"text":"pointer"}`,htmlOptions:{onClick:()=>handleWrapperClick(),onKeyDown:handleKeyDown,tabIndex:"0",ref:inputWrapperRef},justify:"between",paddingX:"sm",paddingY:"xs"},{children:[jsx(FlexItem,{children:jsxs(Flex,Object.assign({align:"center"},{children:[customDisplay?jsxs(Flex,Object.assign({align:"center"},{children:[customDisplay,jsx(Body$1,Object.assign({dark:dark,paddingLeft:`${selected.label?"xs":"none"}`},{children:customDisplayPlaceholder}),void 0)]}),void 0):jsx(Body$1,{dark:dark,text:defaultDisplayPlaceholder},void 0),autocomplete&&jsx("input",{className:"dropdown_input",onChange:handleChange,onClick:()=>toggleDropdown(),onFocus:()=>setIsInputFocused(true),onKeyDown:handleKeyDown,placeholder:selected.label?"":placeholder?placeholder:"Select...",ref:inputRef,value:filterItem},void 0)]}),void 0)},void 0),jsx(Body$1,Object.assign({dark:dark,display:"flex",htmlOptions:{onClick:e=>{e.stopPropagation();handleWrapperClick()}}},{children:jsx(Icon,{cursor:"pointer",dark:dark,icon:`${isDropDownClosed?"chevron-down":"chevron-up"}`,size:"sm"},void 0)}),`${isDropDownClosed?"chevron-down":"chevron-up"}`)]}),void 0)},void 0))}),void 0)};const separateChildComponents=children=>{let trigger=null;let container=null;const otherChildren=[];React__default.Children.forEach(children,(child=>{if(child&&child.type===DropdownTrigger){trigger=child}else if(child&&child.type===DropdownContainer){container=child}else{otherChildren.push(child)}}));return{trigger:trigger,container:container,otherChildren:otherChildren}};const prepareSubcomponents=({children:children,hasTriggerSubcomponent:hasTriggerSubcomponent,hasContainerSubcomponent:hasContainerSubcomponent,trigger:trigger,container:container,otherChildren:otherChildren,dark:dark})=>{const componentsToRender=[];if(!hasTriggerSubcomponent&&!hasContainerSubcomponent){componentsToRender.push(jsx(DropdownTrigger,{dark:dark},void 0));componentsToRender.push(jsx(DropdownContainer,Object.assign({dark:dark},{children:children}),void 0))}else if(!hasTriggerSubcomponent&&hasContainerSubcomponent){componentsToRender.push(jsx(DropdownTrigger,{dark:dark},void 0));componentsToRender.push(children)}else if(hasTriggerSubcomponent&&!hasContainerSubcomponent){componentsToRender.push(trigger);componentsToRender.push(jsx(DropdownContainer,Object.assign({dark:dark},{children:otherChildren}),void 0))}else{componentsToRender.push(trigger);componentsToRender.push(container)}return componentsToRender};const handleClickOutside=({inputWrapperRef:inputWrapperRef,dropdownContainerRef:dropdownContainerRef,setIsDropDownClosed:setIsDropDownClosed,setFocusedOptionIndex:setFocusedOptionIndex,setIsInputFocused:setIsInputFocused})=>e=>{let targetElement=e.target;let shouldClose=true;while(targetElement&&shouldClose){if(targetElement.getAttribute("data-dropdown")==="pb-dropdown-trigger"){shouldClose=false}targetElement=targetElement.parentElement}if(inputWrapperRef.current&&!inputWrapperRef.current.contains(e.target)&&dropdownContainerRef.current&&!dropdownContainerRef.current.contains(e.target)&&shouldClose){setIsDropDownClosed(true);setFocusedOptionIndex(-1);setIsInputFocused(false)}};const Dropdown=props=>{const{aria:aria={},autocomplete:autocomplete=false,blankSelection:blankSelection="",children:children,className:className,dark:dark=false,data:data={},defaultValue:defaultValue={},error:error,htmlOptions:htmlOptions={},id:id,isClosed:isClosed=true,label:label,onSelect:onSelect,options:options,triggerRef:triggerRef}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_dropdown"),globalProps(props),className);const[isDropDownClosed,setIsDropDownClosed,toggleDropdown]=useDropdown(isClosed);const[filterItem,setFilterItem]=useState("");const[selected,setSelected]=useState(defaultValue);const[isInputFocused,setIsInputFocused]=useState(false);const[hasTriggerSubcomponent,setHasTriggerSubcomponent]=useState(true);const[hasContainerSubcomponent,setHasContainerSubcomponent]=useState(true);const[focusedOptionIndex,setFocusedOptionIndex]=useState(-1);const dropdownRef=useRef(null);const inputRef=useRef(null);const inputWrapperRef=useRef(null);const dropdownContainerRef=useRef(null);const{trigger:trigger,container:container,otherChildren:otherChildren}=separateChildComponents(children);useEffect((()=>{if(triggerRef==null?void 0:triggerRef.current){const parentElement=triggerRef.current.parentNode;if(parentElement){parentElement.style.position="relative"}}const handleClick=handleClickOutside({inputWrapperRef:inputWrapperRef,dropdownContainerRef:dropdownContainerRef,setIsDropDownClosed:setIsDropDownClosed,setFocusedOptionIndex:setFocusedOptionIndex,setIsInputFocused:setIsInputFocused});window.addEventListener("click",handleClick);return()=>{window.removeEventListener("click",handleClick)}}),[]);useEffect((()=>{setHasTriggerSubcomponent(!!trigger);setHasContainerSubcomponent(!!container)}),[]);useEffect((()=>{setIsDropDownClosed(isClosed)}),[isClosed]);const blankSelectionOption=blankSelection?[{label:blankSelection,value:""}]:[];const optionsWithBlankSelection=blankSelectionOption.concat(options);const filteredOptions=optionsWithBlankSelection==null?void 0:optionsWithBlankSelection.filter((option=>{const label2=typeof option.label==="string"?option.label.toLowerCase():option.label;return String(label2).toLowerCase().includes(filterItem.toLowerCase())}));useEffect((()=>{if(!isDropDownClosed){let newIndex=0;if(selected&&(selected==null?void 0:selected.label)){const selectedIndex=filteredOptions.findIndex((option=>option.label===selected.label));if(selectedIndex>=0){newIndex=selectedIndex}}setFocusedOptionIndex(newIndex)}}),[isDropDownClosed]);const handleChange=e=>{setFilterItem(e.target.value);setIsDropDownClosed(false)};const handleOptionClick=selectedItem=>{setSelected(selectedItem);setFilterItem("");setIsDropDownClosed(true);onSelect&&onSelect(selectedItem)};const handleWrapperClick=()=>{autocomplete&&inputRef.current.focus();toggleDropdown()};const handleBackspace=()=>{setSelected({});onSelect&&onSelect(null);setFocusedOptionIndex(-1)};const componentsToRender=prepareSubcomponents({children:children,hasTriggerSubcomponent:hasTriggerSubcomponent,hasContainerSubcomponent:hasContainerSubcomponent,trigger:trigger,container:container,otherChildren:otherChildren,dark:dark});return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,style:triggerRef?{position:"absolute"}:{position:"relative"},children:jsxs(DropdownContext.Provider,{value:{autocomplete:autocomplete,dropdownContainerRef:dropdownContainerRef,filteredOptions:filteredOptions,filterItem:filterItem,focusedOptionIndex:focusedOptionIndex,handleBackspace:handleBackspace,handleChange:handleChange,handleOptionClick:handleOptionClick,handleWrapperClick:handleWrapperClick,inputRef:inputRef,inputWrapperRef:inputWrapperRef,isDropDownClosed:isDropDownClosed,isInputFocused:isInputFocused,optionsWithBlankSelection:optionsWithBlankSelection,selected:selected,setFocusedOptionIndex:setFocusedOptionIndex,setIsDropDownClosed:setIsDropDownClosed,setIsInputFocused:setIsInputFocused,setSelected:setSelected,toggleDropdown:toggleDropdown,triggerRef:triggerRef},children:[label&&jsx(Caption,{dark:dark,marginBottom:"xs",text:label}),jsxs("div",{className:`dropdown_wrapper ${error?"error":""}`,onBlur:()=>{setTimeout((()=>{if(!dropdownRef.current.contains(document.activeElement)){setIsInputFocused(false)}}),0)},onFocus:()=>setIsInputFocused(true),ref:dropdownRef,children:[children?jsx(Fragment,{children:componentsToRender.map(((component,index)=>jsx(React__default.Fragment,{children:component},index)))}):jsxs(Fragment,{children:[jsx(DropdownTrigger,{}),jsx(DropdownContainer,{children:optionsWithBlankSelection&&(optionsWithBlankSelection==null?void 0:optionsWithBlankSelection.map((option=>jsx(Dropdown.Option,{option:option},option.id))))})]}),error&&jsx(Body$1,{status:"negative",text:error})]})]})})};Dropdown.Option=DropdownOption;Dropdown.Trigger=DropdownTrigger;Dropdown.Container=DropdownContainer;function __awaiter(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P((function(resolve){resolve(value)}))}return new(P||(P=Promise))((function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator["throw"](value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,[])).next())}))}function __generator(thisArg,body){var _={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},f,y,t,g;return g={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");while(g&&(g=0,op[0]&&(_=0)),_)try{if(f=1,y&&(t=op[0]&2?y["return"]:op[0]?y["throw"]||((t=y["return"])&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;if(y=0,t)op=[op[0]&2,t.value];switch(op[0]){case 0:case 1:t=op;break;case 4:_.label++;return{value:op[1],done:false};case 5:_.label++;y=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(!(t=_.trys,t=t.length>0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(op[0]===6&&_.label<t[1]){_.label=t[1];t=op;break}if(t&&_.label<t[2]){_.label=t[2];_.ops.push(op);break}if(t[2])_.ops.pop();_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e];y=0}finally{f=t=0}if(op[0]&5)throw op[1];return{value:op[0]?op[1]:void 0,done:true}}}function __read(o,n){var m=typeof Symbol==="function"&&o[Symbol.iterator];if(!m)return o;var i=m.call(o),r,ar=[],e;try{while((n===void 0||n-- >0)&&!(r=i.next()).done)ar.push(r.value)}catch(error){e={error:error}}finally{try{if(r&&!r.done&&(m=i["return"]))m.call(i)}finally{if(e)throw e.error}}return ar}function __spread(){for(var ar=[],i=0;i<arguments.length;i++)ar=ar.concat(__read(arguments[i]));return ar}var COMMON_MIME_TYPES=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function toFileWithPath(file,path){var f=withMimeType(file);if(typeof f.path!=="string"){var webkitRelativePath=file.webkitRelativePath;Object.defineProperty(f,"path",{value:typeof path==="string"?path:typeof webkitRelativePath==="string"&&webkitRelativePath.length>0?webkitRelativePath:file.name,writable:false,configurable:false,enumerable:true})}return f}function withMimeType(file){var name=file.name;var hasExtension=name&&name.lastIndexOf(".")!==-1;if(hasExtension&&!file.type){var ext=name.split(".").pop().toLowerCase();var type=COMMON_MIME_TYPES.get(ext);if(type){Object.defineProperty(file,"type",{value:type,writable:false,configurable:false,enumerable:true})}}return file}var FILES_TO_IGNORE=[".DS_Store","Thumbs.db"];function fromEvent(evt){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,isDragEvt(evt)&&evt.dataTransfer?getDataTransferFiles(evt.dataTransfer,evt.type):getInputFiles(evt)]}))}))}function isDragEvt(value){return!!value.dataTransfer}function getInputFiles(evt){var files=isInput(evt.target)?evt.target.files?fromList(evt.target.files):[]:[];return files.map((function(file){return toFileWithPath(file)}))}function isInput(value){return value!==null}function getDataTransferFiles(dt,type){return __awaiter(this,void 0,void 0,(function(){var items,files;return __generator(this,(function(_a){switch(_a.label){case 0:if(!dt.items)return[3,2];items=fromList(dt.items).filter((function(item){return item.kind==="file"}));if(type!=="drop"){return[2,items]}return[4,Promise.all(items.map(toFilePromises))];case 1:files=_a.sent();return[2,noIgnoredFiles(flatten(files))];case 2:return[2,noIgnoredFiles(fromList(dt.files).map((function(file){return toFileWithPath(file)})))]}}))}))}function noIgnoredFiles(files){return files.filter((function(file){return FILES_TO_IGNORE.indexOf(file.name)===-1}))}function fromList(items){var files=[];for(var i=0;i<items.length;i++){var file=items[i];files.push(file)}return files}function toFilePromises(item){if(typeof item.webkitGetAsEntry!=="function"){return fromDataTransferItem(item)}var entry=item.webkitGetAsEntry();if(entry&&entry.isDirectory){return fromDirEntry(entry)}return fromDataTransferItem(item)}function flatten(items){return items.reduce((function(acc,files){return __spread(acc,Array.isArray(files)?flatten(files):[files])}),[])}function fromDataTransferItem(item){var file=item.getAsFile();if(!file){return Promise.reject(item+" is not a File")}var fwp=toFileWithPath(file);return Promise.resolve(fwp)}function fromEntry(entry){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,entry.isDirectory?fromDirEntry(entry):fromFileEntry(entry)]}))}))}function fromDirEntry(entry){var reader=entry.createReader();return new Promise((function(resolve,reject){var entries=[];function readEntries(){var _this=this;reader.readEntries((function(batch){return __awaiter(_this,void 0,void 0,(function(){var files,err_1,items;return __generator(this,(function(_a){switch(_a.label){case 0:if(!!batch.length)return[3,5];_a.label=1;case 1:_a.trys.push([1,3,,4]);return[4,Promise.all(entries)];case 2:files=_a.sent();resolve(files);return[3,4];case 3:err_1=_a.sent();reject(err_1);return[3,4];case 4:return[3,6];case 5:items=Promise.all(batch.map(fromEntry));entries.push(items);readEntries();_a.label=6;case 6:return[2]}}))}))}),(function(err){reject(err)}))}readEntries()}))}function fromFileEntry(entry){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(_a){return[2,new Promise((function(resolve,reject){entry.file((function(file){var fwp=toFileWithPath(file,entry.fullPath);resolve(fwp)}),(function(err){reject(err)}))}))]}))}))}var _default=function(file,acceptedFiles){if(file&&acceptedFiles){var acceptedFilesArray=Array.isArray(acceptedFiles)?acceptedFiles:acceptedFiles.split(",");var fileName=file.name||"";var mimeType=(file.type||"").toLowerCase();var baseMimeType=mimeType.replace(/\/.*$/,"");return acceptedFilesArray.some((function(type){var validType=type.trim().toLowerCase();if(validType.charAt(0)==="."){return fileName.toLowerCase().endsWith(validType)}else if(validType.endsWith("/*")){return baseMimeType===validType.replace(/\/.*$/,"")}return mimeType===validType}))}return true};function fileAccepted(file,accept){return file.type==="application/x-moz-file"||_default(file,accept)}function fileMatchSize(file,minSize,maxSize){if(isDefined(file.size)){if(isDefined(minSize)&&isDefined(maxSize))return file.size>=minSize&&file.size<=maxSize;else if(isDefined(minSize))return file.size>=minSize;else if(isDefined(maxSize))return file.size<=maxSize}return true}function isDefined(value){return value!==void 0&&value!==null}function allFilesAccepted(_ref){var files=_ref.files,accept=_ref.accept,minSize=_ref.minSize,maxSize=_ref.maxSize,multiple=_ref.multiple;if(!multiple&&files.length>1){return false}return files.every((function(file){return fileAccepted(file,accept)&&fileMatchSize(file,minSize,maxSize)}))}function isPropagationStopped(event){if(typeof event.isPropagationStopped==="function"){return event.isPropagationStopped()}else if(typeof event.cancelBubble!=="undefined"){return event.cancelBubble}return false}function isEvtWithFiles(event){if(!event.dataTransfer){return!!event.target&&!!event.target.files}return Array.prototype.some.call(event.dataTransfer.types,(function(type){return type==="Files"||type==="application/x-moz-file"}))}function onDocumentDragOver(event){event.preventDefault()}function isIe(userAgent){return userAgent.indexOf("MSIE")!==-1||userAgent.indexOf("Trident/")!==-1}function isEdge(userAgent){return userAgent.indexOf("Edge/")!==-1}function isIeOrEdge(){var userAgent=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return isIe(userAgent)||isEdge(userAgent)}function composeEventHandlers(){for(var _len=arguments.length,fns=new Array(_len),_key=0;_key<_len;_key++){fns[_key]=arguments[_key]}return function(event){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2]}return fns.some((function(fn){if(!isPropagationStopped(event)&&fn){fn.apply(void 0,[event].concat(args))}return isPropagationStopped(event)}))}}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||Object.prototype.toString.call(iter)==="[object Arguments]")return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++){arr2[i]=arr[i]}return arr2}}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(arr,i){if(!(Symbol.iterator in Object(arr)||Object.prototype.toString.call(arr)==="[object Arguments]")){return}var _arr=[];var _n=true;var _d=false;var _e=void 0;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"]!=null)_i["return"]()}finally{if(_d)throw _e}}return _arr}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function ownKeys$1(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly)symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}));keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};if(i%2){ownKeys$1(source,true).forEach((function(key){_defineProperty$1(target,key,source[key])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(target,Object.getOwnPropertyDescriptors(source))}else{ownKeys$1(source).forEach((function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}))}}return target}function _defineProperty$1(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _objectWithoutProperties$1(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose$1(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key]}}return target}function _objectWithoutPropertiesLoose$1(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key]}return target}var Dropzone=forwardRef((function(_ref,ref){var children=_ref.children,params=_objectWithoutProperties$1(_ref,["children"]);var _useDropzone=useDropzone(params),open=_useDropzone.open,props=_objectWithoutProperties$1(_useDropzone,["open"]);useImperativeHandle(ref,(function(){return{open:open}}),[open]);return React__default.createElement(Fragment$1,null,children(_objectSpread({},props,{open:open})))}));Dropzone.displayName="Dropzone";Dropzone.propTypes={children:PropTypes.func,accept:PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),multiple:PropTypes.bool,preventDropOnDocument:PropTypes.bool,noClick:PropTypes.bool,noKeyboard:PropTypes.bool,noDrag:PropTypes.bool,noDragEventsBubbling:PropTypes.bool,minSize:PropTypes.number,maxSize:PropTypes.number,disabled:PropTypes.bool,getFilesFromEvent:PropTypes.func,onFileDialogCancel:PropTypes.func,onDragEnter:PropTypes.func,onDragLeave:PropTypes.func,onDragOver:PropTypes.func,onDrop:PropTypes.func,onDropAccepted:PropTypes.func,onDropRejected:PropTypes.func};var initialState$1={isFocused:false,isFileDialogActive:false,isDragActive:false,isDragAccept:false,isDragReject:false,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]};function useDropzone(){var _ref2=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},accept=_ref2.accept,_ref2$disabled=_ref2.disabled,disabled=_ref2$disabled===void 0?false:_ref2$disabled,_ref2$getFilesFromEve=_ref2.getFilesFromEvent,getFilesFromEvent=_ref2$getFilesFromEve===void 0?fromEvent:_ref2$getFilesFromEve,_ref2$maxSize=_ref2.maxSize,maxSize=_ref2$maxSize===void 0?Infinity:_ref2$maxSize,_ref2$minSize=_ref2.minSize,minSize=_ref2$minSize===void 0?0:_ref2$minSize,_ref2$multiple=_ref2.multiple,multiple=_ref2$multiple===void 0?true:_ref2$multiple,onDragEnter=_ref2.onDragEnter,onDragLeave=_ref2.onDragLeave,onDragOver=_ref2.onDragOver,onDrop=_ref2.onDrop,onDropAccepted=_ref2.onDropAccepted,onDropRejected=_ref2.onDropRejected,onFileDialogCancel=_ref2.onFileDialogCancel,_ref2$preventDropOnDo=_ref2.preventDropOnDocument,preventDropOnDocument=_ref2$preventDropOnDo===void 0?true:_ref2$preventDropOnDo,_ref2$noClick=_ref2.noClick,noClick=_ref2$noClick===void 0?false:_ref2$noClick,_ref2$noKeyboard=_ref2.noKeyboard,noKeyboard=_ref2$noKeyboard===void 0?false:_ref2$noKeyboard,_ref2$noDrag=_ref2.noDrag,noDrag=_ref2$noDrag===void 0?false:_ref2$noDrag,_ref2$noDragEventsBub=_ref2.noDragEventsBubbling,noDragEventsBubbling=_ref2$noDragEventsBub===void 0?false:_ref2$noDragEventsBub;var rootRef=useRef(null);var inputRef=useRef(null);var _useReducer=useReducer(reducer,initialState$1),_useReducer2=_slicedToArray(_useReducer,2),state=_useReducer2[0],dispatch=_useReducer2[1];var isFocused=state.isFocused,isFileDialogActive=state.isFileDialogActive,draggedFiles=state.draggedFiles;var openFileDialog=useCallback((function(){if(inputRef.current){dispatch({type:"openDialog"});inputRef.current.value=null;inputRef.current.click()}}),[dispatch]);var onWindowFocus=function onWindowFocus2(){if(isFileDialogActive){setTimeout((function(){if(inputRef.current){var files=inputRef.current.files;if(!files.length){dispatch({type:"closeDialog"});if(typeof onFileDialogCancel==="function"){onFileDialogCancel()}}}}),300)}};useEffect((function(){window.addEventListener("focus",onWindowFocus,false);return function(){window.removeEventListener("focus",onWindowFocus,false)}}),[inputRef,isFileDialogActive,onFileDialogCancel]);var onKeyDownCb=useCallback((function(event){if(!rootRef.current||!rootRef.current.isEqualNode(event.target)){return}if(event.keyCode===32||event.keyCode===13){event.preventDefault();openFileDialog()}}),[rootRef,inputRef]);var onFocusCb=useCallback((function(){dispatch({type:"focus"})}),[]);var onBlurCb=useCallback((function(){dispatch({type:"blur"})}),[]);var onClickCb=useCallback((function(){if(noClick){return}if(isIeOrEdge()){setTimeout(openFileDialog,0)}else{openFileDialog()}}),[inputRef,noClick]);var dragTargetsRef=useRef([]);var onDocumentDrop=function onDocumentDrop2(event){if(rootRef.current&&rootRef.current.contains(event.target)){return}event.preventDefault();dragTargetsRef.current=[]};useEffect((function(){if(preventDropOnDocument){document.addEventListener("dragover",onDocumentDragOver,false);document.addEventListener("drop",onDocumentDrop,false)}return function(){if(preventDropOnDocument){document.removeEventListener("dragover",onDocumentDragOver);document.removeEventListener("drop",onDocumentDrop)}}}),[rootRef,preventDropOnDocument]);var onDragEnterCb=useCallback((function(event){event.preventDefault();event.persist();stopPropagation(event);if(dragTargetsRef.current.indexOf(event.target)===-1){dragTargetsRef.current=[].concat(_toConsumableArray(dragTargetsRef.current),[event.target])}if(isEvtWithFiles(event)){Promise.resolve(getFilesFromEvent(event)).then((function(draggedFiles2){if(isPropagationStopped(event)&&!noDragEventsBubbling){return}dispatch({draggedFiles:draggedFiles2,isDragActive:true,type:"setDraggedFiles"});if(onDragEnter){onDragEnter(event)}}))}}),[getFilesFromEvent,onDragEnter,noDragEventsBubbling]);var onDragOverCb=useCallback((function(event){event.preventDefault();event.persist();stopPropagation(event);if(event.dataTransfer){try{event.dataTransfer.dropEffect="copy"}catch(_unused){}}if(isEvtWithFiles(event)&&onDragOver){onDragOver(event)}return false}),[onDragOver,noDragEventsBubbling]);var onDragLeaveCb=useCallback((function(event){event.preventDefault();event.persist();stopPropagation(event);var targets=dragTargetsRef.current.filter((function(target){return target!==event.target&&rootRef.current&&rootRef.current.contains(target)}));dragTargetsRef.current=targets;if(targets.length>0){return}dispatch({isDragActive:false,type:"setDraggedFiles",draggedFiles:[]});if(isEvtWithFiles(event)&&onDragLeave){onDragLeave(event)}}),[rootRef,onDragLeave,noDragEventsBubbling]);var onDropCb=useCallback((function(event){event.preventDefault();event.persist();stopPropagation(event);dragTargetsRef.current=[];if(isEvtWithFiles(event)){Promise.resolve(getFilesFromEvent(event)).then((function(files){if(isPropagationStopped(event)&&!noDragEventsBubbling){return}var acceptedFiles=[];var rejectedFiles=[];files.forEach((function(file){if(fileAccepted(file,accept)&&fileMatchSize(file,minSize,maxSize)){acceptedFiles.push(file)}else{rejectedFiles.push(file)}}));if(!multiple&&acceptedFiles.length>1){rejectedFiles.push.apply(rejectedFiles,_toConsumableArray(acceptedFiles.splice(0)))}dispatch({acceptedFiles:acceptedFiles,rejectedFiles:rejectedFiles,type:"setFiles"});if(onDrop){onDrop(acceptedFiles,rejectedFiles,event)}if(rejectedFiles.length>0&&onDropRejected){onDropRejected(rejectedFiles,event)}if(acceptedFiles.length>0&&onDropAccepted){onDropAccepted(acceptedFiles,event)}}))}dispatch({type:"reset"})}),[multiple,accept,minSize,maxSize,getFilesFromEvent,onDrop,onDropAccepted,onDropRejected,noDragEventsBubbling]);var composeHandler=function composeHandler2(fn){return disabled?null:fn};var composeKeyboardHandler=function composeKeyboardHandler2(fn){return noKeyboard?null:composeHandler(fn)};var composeDragHandler=function composeDragHandler2(fn){return noDrag?null:composeHandler(fn)};var stopPropagation=function stopPropagation2(event){if(noDragEventsBubbling){event.stopPropagation()}};var getRootProps=useMemo((function(){return function(){var _ref3=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_ref3$refKey=_ref3.refKey,refKey=_ref3$refKey===void 0?"ref":_ref3$refKey,onKeyDown=_ref3.onKeyDown,onFocus=_ref3.onFocus,onBlur=_ref3.onBlur,onClick=_ref3.onClick,onDragEnter2=_ref3.onDragEnter,onDragOver2=_ref3.onDragOver,onDragLeave2=_ref3.onDragLeave,onDrop2=_ref3.onDrop,rest=_objectWithoutProperties$1(_ref3,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return _objectSpread(_defineProperty$1({onKeyDown:composeKeyboardHandler(composeEventHandlers(onKeyDown,onKeyDownCb)),onFocus:composeKeyboardHandler(composeEventHandlers(onFocus,onFocusCb)),onBlur:composeKeyboardHandler(composeEventHandlers(onBlur,onBlurCb)),onClick:composeHandler(composeEventHandlers(onClick,onClickCb)),onDragEnter:composeDragHandler(composeEventHandlers(onDragEnter2,onDragEnterCb)),onDragOver:composeDragHandler(composeEventHandlers(onDragOver2,onDragOverCb)),onDragLeave:composeDragHandler(composeEventHandlers(onDragLeave2,onDragLeaveCb)),onDrop:composeDragHandler(composeEventHandlers(onDrop2,onDropCb))},refKey,rootRef),!disabled&&!noKeyboard?{tabIndex:0}:{},{},rest)}}),[rootRef,onKeyDownCb,onFocusCb,onBlurCb,onClickCb,onDragEnterCb,onDragOverCb,onDragLeaveCb,onDropCb,noKeyboard,noDrag,disabled]);var onInputElementClick=useCallback((function(event){event.stopPropagation()}),[]);var getInputProps=useMemo((function(){return function(){var _ref4=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_ref4$refKey=_ref4.refKey,refKey=_ref4$refKey===void 0?"ref":_ref4$refKey,onChange=_ref4.onChange,onClick=_ref4.onClick,rest=_objectWithoutProperties$1(_ref4,["refKey","onChange","onClick"]);var inputProps=_defineProperty$1({accept:accept,multiple:multiple,type:"file",style:{display:"none"},onChange:composeHandler(composeEventHandlers(onChange,onDropCb)),onClick:composeHandler(composeEventHandlers(onClick,onInputElementClick)),autoComplete:"off",tabIndex:-1},refKey,inputRef);return _objectSpread({},inputProps,{},rest)}}),[inputRef,accept,multiple,onDropCb,disabled]);var fileCount=draggedFiles.length;var isDragAccept=fileCount>0&&allFilesAccepted({files:draggedFiles,accept:accept,minSize:minSize,maxSize:maxSize,multiple:multiple});var isDragReject=fileCount>0&&!isDragAccept;return _objectSpread({},state,{isDragAccept:isDragAccept,isDragReject:isDragReject,isFocused:isFocused&&!disabled,getRootProps:getRootProps,getInputProps:getInputProps,rootRef:rootRef,inputRef:inputRef,open:composeHandler(openFileDialog)})}function reducer(state,action){switch(action.type){case"focus":return _objectSpread({},state,{isFocused:true});case"blur":return _objectSpread({},state,{isFocused:false});case"openDialog":return _objectSpread({},state,{isFileDialogActive:true});case"closeDialog":return _objectSpread({},state,{isFileDialogActive:false});case"setDraggedFiles":var isDragActive=action.isDragActive,draggedFiles=action.draggedFiles;return _objectSpread({},state,{draggedFiles:draggedFiles,isDragActive:isDragActive});case"setFiles":return _objectSpread({},state,{acceptedFiles:action.acceptedFiles,rejectedFiles:action.rejectedFiles});case"reset":return _objectSpread({},state,{isFileDialogActive:false,isDragActive:false,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]});default:return state}}const getFormattedFileSize=fileSize=>`${fileSize/1e6} MB`;const FileUpload=props=>{const{accept:accept=null,acceptedFilesDescription:acceptedFilesDescription="",className:className,customMessage:customMessage,data:data={},htmlOptions:htmlOptions={},maxSize:maxSize,onFilesAccepted:onFilesAccepted=noop$3,onFilesRejected:onFilesRejected=noop$3}=props;const onDrop=useCallback((files=>{onFilesAccepted(files)}),[onFilesAccepted]);const{getRootProps:getRootProps,getInputProps:getInputProps,isDragActive:isDragActive,rejectedFiles:rejectedFiles}=useDropzone({accept:accept,maxSize:maxSize,onDrop:onDrop});const prevRejected=useRef(null);const maxFileSizeText=`Max file size is ${getFormattedFileSize(maxSize)}.`;useEffect((()=>{if(rejectedFiles===prevRejected.current)return;const isFileTooLarge=maxSize&&rejectedFiles.length>0&&rejectedFiles[0].size>maxSize;if(isFileTooLarge){onFilesRejected(`File size is too large! ${maxFileSizeText}`,rejectedFiles)}prevRejected.current=rejectedFiles}),[maxFileSizeText,maxSize,onFilesRejected,rejectedFiles]);const acceptedFileTypes=()=>accept.map((fileType=>{if(fileType.startsWith("image/")){return fileType.replace("image/"," ")}else{return fileType}}));const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const getDescription=()=>customMessage?customMessage:`Choose a file or drag it here.${accept===null?"":` The accepted file types are: ${acceptedFilesDescription||acceptedFileTypes()}.`}${maxSize?` ${maxFileSizeText}`:""}`;return jsx("div",{className:classnames(buildCss("pb_file_upload_kit"),globalProps(props),className),...dataProps,...htmlProps,...getRootProps(),children:jsxs(Card,{children:[jsx("input",{...getInputProps()}),jsx(Body$1,{color:"light",children:isDragActive?jsx("p",{children:"Drop the files here ..."}):jsx("p",{children:getDescription()})})]})})};const hiddenFilters=value=>isEmpty(value)&&value!==true;const CurrentFilters=({dark:dark,filters:filters})=>{const displayableFilters=omitBy(filters,hiddenFilters);return jsxs("div",{className:"maskContainer",children:[isEmpty(filters)&&jsx("div",{className:"filters",children:jsx(Body$1,{color:"light",paddingLeft:"xs",size:4,tag:"span",text:"No Filter Selected"})}),!isEmpty(filters)&&jsxs("div",{className:"filters",children:[jsx("div",{className:"left_gradient"}),map(displayableFilters,((value,name)=>jsx("div",{className:"filter",children:value===true?jsx(Title,{dark:dark,size:4,tag:"h4",text:name}):jsxs("div",{children:[jsx(Caption,{dark:dark,text:name}),jsx(Title,{dark:dark,size:4,tag:"h4",text:value})]})},`filter-${name}`))),jsx("div",{className:"right_gradient"})]})]})};const FilterBackground=props=>{const{background:background=true,className:className,children:children,dark:dark}=props;return jsx("div",{className:classnames(`pb_filter_kit ${className}`,globalProps(props)),children:background?jsx(Card,{dark:dark,padding:"none",children:children}):jsx(Fragment,{children:children})})};const FiltersPopover=({children:children,dark:dark,maxHeight:maxHeight,minWidth:minWidth,placement:placement="bottom-start"})=>{const[hide2,updateHide]=useState(true);const toggle=()=>updateHide(!hide2);const filterButton=jsx(CircleIconButton,{dark:dark,icon:"filter",id:"filter",onClick:toggle,variant:"secondary"});return jsx(PbReactPopover,{closeOnClick:"outside",maxHeight:maxHeight,minWidth:minWidth,placement:placement,reference:filterButton,shouldClosePopover:updateHide,show:!hide2,children:jsx("div",{className:"pb-form",children:typeof children==="function"?children({closePopover:()=>updateHide(true)}):children})})};const TitleCount=props=>{const{align:align="left",aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},count:count2,id:id,title:title,size:size="sm"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css=classnames(buildCss("pb_title_count_kit",align,size),globalProps(props),className);const formatCount=count2.toLocaleString();return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:css,id:id,children:[jsx(Title,{className:title!==void 0?"pb_title_count_text":"",dark:dark,size:size==="lg"?3:4,text:title}),jsx(Body$1,{color:"light",dark:dark,children:count2&&formatCount})]})};const resultsText=results=>results==1?"Result":"Results";const ResultsCount=({dark:dark,results:results,title:title})=>{const resultTitle=()=>jsx(TitleCount,{align:"center",count:results,dark:dark,title:`${resultsText(results)}:`});const justResults=()=>jsx(Caption,{className:"filter-results",dark:dark,size:"xs",text:`${results} ${resultsText(results)}`});const displayResultsCount=()=>{if(results&&title){return jsx(Fragment,{children:resultTitle()})}else if(results){return jsx(Fragment,{children:justResults()})}else{return jsx("div",{})}};return jsx(Fragment,{children:displayResultsCount()})};const nextValue=(value,name)=>{const current=find$1(value,{name:name});return{name:name,dir:current&&current.dir=="asc"?"desc":"asc"}};const directionIcon=dir=>dir=="asc"?"sort-amount-up":"sort-amount-down";const renderOptions=(options,value,handleChange)=>map(options,((label,name)=>{const next=nextValue(value,name);return jsx(ListItem,{children:jsx(Button,{htmlType:void 0,onClick:partial(handleChange,next),text:` ${label}`,variant:"link"})},`option-${next.name}-${next.dir}`)}));const SortMenu=({dark:dark,options:options,value:value,onChange:onChange})=>{const[hide2,updateHide]=useState(true);const toggle=()=>updateHide(!hide2);const handleChange=value2=>{updateHide(true);onChange([value2])};const sortButton=jsx(Button,{dark:dark,htmlType:void 0,id:"sort-button",onClick:toggle,paddingRight:"none",variant:"link",children:map(value,(({dir:dir,name:name})=>jsxs("span",{children:[` ${options[name]}`,jsx(Icon,{dark:dark,icon:directionIcon(dir)})]},`current-sort-${name}-${dir}`)))});return jsx(PbReactPopover,{className:"pb_filter_sort_menu",closeOnClick:"outside",padding:"none",placement:"bottom",reference:sortButton,shouldClosePopover:updateHide,show:!hide2,children:jsx(List,{children:renderOptions(options,value,handleChange)})})};const FilterSingle=({onSortChange:onSortChange,sortOptions:sortOptions,sortValue:sortValue,filters:filters,results:results,children:children,dark:dark,maxHeight:maxHeight,minWidth:minWidth,placement:placement,...bgProps})=>jsx(FilterBackground,{dark:dark,...bgProps,children:jsxs(Flex,{orientation:"row",paddingRight:"lg",vertical:"center",children:[children&&jsxs(Fragment,{children:[jsx(FiltersPopover,{dark:dark,maxHeight:maxHeight,minWidth:minWidth,placement:placement,children:children}),jsx(CurrentFilters,{dark:dark,filters:filters})]}),jsx(ResultsCount,{dark:dark,results:results}),!isEmpty(sortOptions)&&jsx(SortMenu,{dark:dark,onChange:onSortChange,options:sortOptions,value:sortValue})]})});const FilterDouble=({onSortChange:onSortChange,sortOptions:sortOptions,sortValue:sortValue,filters:filters,results:results,children:children,dark:dark,maxHeight:maxHeight,minWidth:minWidth,placement:placement,...bgProps})=>jsxs(FilterBackground,{dark:dark,...bgProps,children:[jsxs(Flex,{orientation:"row",vertical:"center",children:[jsx(FiltersPopover,{dark:dark,maxHeight:maxHeight,minWidth:minWidth,placement:placement,children:children}),jsx(CurrentFilters,{dark:dark,filters:filters})]}),jsx(SectionSeparator,{dark:dark}),jsxs(Flex,{className:"filter-bottom",orientation:"row",spacing:"between",vertical:"center",children:[jsx(ResultsCount,{dark:dark,results:results,title:true}),jsxs(Flex,{orientation:"row",vertical:"center",children:[jsx(Caption,{dark:dark,text:"sort by:"}),jsx(SortMenu,{dark:dark,onChange:onSortChange,options:sortOptions,value:sortValue})]})]})]});const Filter=({double:double=false,...templateProps})=>{const displayFilter=()=>{if(double===true){return jsx(FilterDouble,{...templateProps})}else{return jsx(FilterSingle,{...templateProps})}};return jsx(Fragment,{children:displayFilter()})};const iconMap={success:"check",error:"exclamation-triangle",neutral:"info-circle",tip:"info-circle"};const FixedConfirmationToast=props=>{const[showToast,toggleToast]=useState(true);const{autoClose:autoClose=0,children:children,className:className,closeable:closeable=false,horizontal:horizontal,htmlOptions:htmlOptions={},icon:icon,multiLine:multiLine=false,onClose:onClose=()=>void 0,open:open=true,status:status="neutral",text:text2,vertical:vertical}=props;const returnedIcon=icon||iconMap[status];const iconClass=icon?"custom_icon":"";const css=classnames(`pb_fixed_confirmation_toast_kit_${status}`,{_multi_line:multiLine},{[`positioned_toast ${vertical} ${horizontal}`]:vertical&&horizontal},`${iconClass}`,globalProps(props),className);const htmlProps=buildHtmlProps(htmlOptions);const autoCloseToast=()=>{if(autoClose&&open){setTimeout((()=>{toggleToast(false);onClose()}),autoClose)}};useEffect((()=>{toggleToast(open);autoCloseToast()}),[open]);const handleClick=()=>{toggleToast(!closeable);onClose()};return jsx(Fragment,{children:showToast&&jsxs("div",{className:css,onClick:handleClick,...htmlProps,children:[returnedIcon&&jsx(Icon,{className:"pb_icon",fixedWidth:true,icon:returnedIcon}),children&&children||text2&&jsx(Title,{className:"pb_fixed_confirmation_toast_text",flex:"1",size:4,text:text2}),closeable&&jsx(Icon,{className:"pb_icon",cursor:"pointer",fixedWidth:false,icon:"times"})]})})};const FormGroup=props=>{const{aria:aria={},className:className,data:data={},fullWidth:fullWidth=false,htmlOptions:htmlOptions={},id:id,children:children}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_form_group_kit",{full:fullWidth}),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})};var highchartsGantt={exports:{}};(function(module){(function(W,I){module.exports?(I["default"]=I,module.exports=W.document?I(W):I):(W.Highcharts&&W.Highcharts.error(16,true),W.Highcharts=I(W))})("undefined"!==typeof window?window:commonjsGlobal,(function(W){function I(c,g2,y,A){c.hasOwnProperty(g2)||(c[g2]=A.apply(null,y),"function"===typeof CustomEvent&&W.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:g2,module:c[g2]}})))}var g={};I(g,"Core/Globals.js",[],(function(){var c;(function(c2){c2.SVG_NS="http://www.w3.org/2000/svg";c2.product="Highcharts";c2.version="10.3.3";c2.win="undefined"!==typeof W?W:{};c2.doc=c2.win.document;c2.svg=c2.doc&&c2.doc.createElementNS&&!!c2.doc.createElementNS(c2.SVG_NS,"svg").createSVGRect;c2.userAgent=c2.win.navigator&&c2.win.navigator.userAgent||"";c2.isChrome=-1!==c2.userAgent.indexOf("Chrome");c2.isFirefox=-1!==c2.userAgent.indexOf("Firefox");c2.isMS=/(edge|msie|trident)/i.test(c2.userAgent)&&!c2.win.opera;c2.isSafari=!c2.isChrome&&-1!==c2.userAgent.indexOf("Safari");c2.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(c2.userAgent);c2.isWebKit=-1!==c2.userAgent.indexOf("AppleWebKit");c2.deg2rad=2*Math.PI/360;c2.hasBidiBug=c2.isFirefox&&4>parseInt(c2.userAgent.split("Firefox/")[1],10);c2.hasTouch=!!c2.win.TouchEvent;c2.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];c2.noop=function(){};c2.supportsPassiveEvents=function(){var g2=false;if(!c2.isMS){var L=Object.defineProperty({},"passive",{get:function(){g2=true}});c2.win.addEventListener&&c2.win.removeEventListener&&(c2.win.addEventListener("testPassive",c2.noop,L),c2.win.removeEventListener("testPassive",c2.noop,L))}return g2}();c2.charts=[];c2.dateFormats={};c2.seriesTypes={};c2.symbolSizes={};c2.chartCount=0})(c||(c={}));return c}));I(g,"Core/Utilities.js",[g["Core/Globals.js"]],(function(c){function g2(h,b2,d2,l2){var v=b2?"Highcharts error":"Highcharts warning";32===h&&(h=""+v+": Deprecated member");var n2=r(h),J=n2?""+v+" #"+h+": www.highcharts.com/errors/"+h+"/":h.toString();if("undefined"!==typeof l2){var E="";n2&&(J+="?");H(l2,(function(h2,b3){E+="\n - ".concat(b3,": ").concat(h2);n2&&(J+=encodeURI(b3)+"="+encodeURI(h2))}));J+=E}u(c,"displayError",{chart:d2,code:h,message:J,params:l2},(function(){if(b2)throw Error(J);f.console&&-1===g2.messages.indexOf(J)&&console.warn(J)}));g2.messages.push(J)}function y(h,b2){var d2={};H(h,(function(v,f2){if(C(h[f2],true)&&!h.nodeType&&b2[f2])v=y(h[f2],b2[f2]),Object.keys(v).length&&(d2[f2]=v);else if(C(h[f2])||h[f2]!==b2[f2]||f2 in h&&!(f2 in b2))d2[f2]=h[f2]}));return d2}function A(h,b2){return parseInt(h,b2||10)}function B(h){return"string"===typeof h}function z(h){h=Object.prototype.toString.call(h);return"[object Array]"===h||"[object Array Iterator]"===h}function C(h,b2){return!!h&&"object"===typeof h&&(!b2||!z(h))}function x(h){return C(h)&&"number"===typeof h.nodeType}function t(h){var b2=h&&h.constructor;return!(!C(h,true)||x(h)||!b2||!b2.name||"Object"===b2.name)}function r(h){return"number"===typeof h&&!isNaN(h)&&Infinity>h&&-Infinity<h}function a(h){return"undefined"!==typeof h&&null!==h}function q(h,b2,d2){var v=B(b2)&&!a(d2),f2,l2=function(b3,d3){a(b3)?h.setAttribute(d3,b3):v?(f2=h.getAttribute(d3))||"class"!==d3||(f2=h.getAttribute(d3+"Name")):h.removeAttribute(d3)};B(b2)?l2(d2,b2):H(b2,l2);return f2}function m(h,b2){var d2;h||(h={});for(d2 in b2)h[d2]=b2[d2];return h}function p(){for(var h=arguments,b2=h.length,d2=0;d2<b2;d2++){var f2=h[d2];if("undefined"!==typeof f2&&null!==f2)return f2}}function k(h,b2){c.isMS&&!c.svg&&b2&&a(b2.opacity)&&(b2.filter="alpha(opacity=".concat(100*b2.opacity,")"));m(h.style,b2)}function e(h){return Math.pow(10,Math.floor(Math.log(h)/Math.LN10))}function D(h,b2){return 1e14<h?h:parseFloat(h.toPrecision(b2||14))}function G(h,b2,d2){var v=c.getStyle||G;if("width"===b2)return b2=Math.min(h.offsetWidth,h.scrollWidth),d2=h.getBoundingClientRect&&h.getBoundingClientRect().width,d2<b2&&d2>=b2-1&&(b2=Math.floor(d2)),Math.max(0,b2-(v(h,"padding-left",true)||0)-(v(h,"padding-right",true)||0));if("height"===b2)return Math.max(0,Math.min(h.offsetHeight,h.scrollHeight)-(v(h,"padding-top",true)||0)-(v(h,"padding-bottom",true)||0));f.getComputedStyle||g2(27,true);if(h=f.getComputedStyle(h,void 0)){var l2=h.getPropertyValue(b2);p(d2,"opacity"!==b2)&&(l2=A(l2))}return l2}function H(h,b2,d2){for(var v in h)Object.hasOwnProperty.call(h,v)&&b2.call(d2||h[v],h[v],v,h)}function K(h,b2,d2){function v(b3,d3){var v2=h.removeEventListener||c.removeEventListenerPolyfill;v2&&v2.call(h,b3,d3,false)}function f2(d3){var f3;if(h.nodeName){if(b2){var l3={};l3[b2]=true}else l3=d3;H(l3,(function(h2,b3){if(d3[b3])for(f3=d3[b3].length;f3--;)v(b3,d3[b3][f3].fn)}))}}var l2="function"===typeof h&&h.prototype||h;if(Object.hasOwnProperty.call(l2,"hcEvents")){var n2=l2.hcEvents;b2?(l2=n2[b2]||[],d2?(n2[b2]=l2.filter((function(h2){return d2!==h2.fn})),v(b2,d2)):(f2(n2),n2[b2]=[])):(f2(n2),delete l2.hcEvents)}}function u(h,b2,d2,f2){d2=d2||{};if(w.createEvent&&(h.dispatchEvent||h.fireEvent&&h!==c)){var v=w.createEvent("Events");v.initEvent(b2,true,true);d2=m(v,d2);h.dispatchEvent?h.dispatchEvent(d2):h.fireEvent(b2,d2)}else if(h.hcEvents){d2.target||m(d2,{preventDefault:function(){d2.defaultPrevented=true},target:h,type:b2});v=[];for(var l2=h,n2=false;l2.hcEvents;)Object.hasOwnProperty.call(l2,"hcEvents")&&l2.hcEvents[b2]&&(v.length&&(n2=true),v.unshift.apply(v,l2.hcEvents[b2])),l2=Object.getPrototypeOf(l2);n2&&v.sort((function(b3,h2){return b3.order-h2.order}));v.forEach((function(b3){false===b3.fn.call(h,d2)&&d2.preventDefault()}))}f2&&!d2.defaultPrevented&&f2.call(h,d2)}var n=c.charts,w=c.doc,f=c.win;(g2||(g2={})).messages=[];Math.easeInOutSine=function(b2){return-.5*(Math.cos(Math.PI*b2)-1)};var l=Array.prototype.find?function(b2,d2){return b2.find(d2)}:function(b2,d2){var h,v=b2.length;for(h=0;h<v;h++)if(d2(b2[h],h))return b2[h]};H({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(b2,d2){c[d2]=function(h){var v;g2(32,false,void 0,(v={},v["Highcharts.".concat(d2)]="use Array.".concat(b2),v));return Array.prototype[b2].apply(h,[].slice.call(arguments,1))}}));var d,b=function(){var b2=Math.random().toString(36).substring(2,9)+"-",v=0;return function(){return"highcharts-"+(d?"":b2)+v++}}();f.jQuery&&(f.jQuery.fn.highcharts=function(){var b2=[].slice.call(arguments);if(this[0])return b2[0]?(new(c[B(b2[0])?b2.shift():"Chart"])(this[0],b2[0],b2[1]),this):n[q(this[0],"data-highcharts-chart")]});l={addEvent:function(b2,d2,f2,l2){void 0===l2&&(l2={});var h="function"===typeof b2&&b2.prototype||b2;Object.hasOwnProperty.call(h,"hcEvents")||(h.hcEvents={});h=h.hcEvents;c.Point&&b2 instanceof c.Point&&b2.series&&b2.series.chart&&(b2.series.chart.runTrackerClick=true);var v=b2.addEventListener||c.addEventListenerPolyfill;v&&v.call(b2,d2,f2,c.supportsPassiveEvents?{passive:void 0===l2.passive?-1!==d2.indexOf("touch"):l2.passive,capture:false}:false);h[d2]||(h[d2]=[]);h[d2].push({fn:f2,order:"number"===typeof l2.order?l2.order:Infinity});h[d2].sort((function(b3,h2){return b3.order-h2.order}));return function(){K(b2,d2,f2)}},arrayMax:function(b2){for(var h=b2.length,d2=b2[0];h--;)b2[h]>d2&&(d2=b2[h]);return d2},arrayMin:function(b2){for(var h=b2.length,d2=b2[0];h--;)b2[h]<d2&&(d2=b2[h]);return d2},attr:q,clamp:function(b2,d2,f2){return b2>d2?b2<f2?b2:f2:d2},cleanRecursively:y,clearTimeout:function(b2){a(b2)&&clearTimeout(b2)},correctFloat:D,createElement:function(b2,d2,f2,l2,n2){b2=w.createElement(b2);d2&&m(b2,d2);n2&&k(b2,{padding:"0",border:"none",margin:"0"});f2&&k(b2,f2);l2&&l2.appendChild(b2);return b2},css:k,defined:a,destroyObjectProperties:function(b2,d2){H(b2,(function(h,f2){h&&h!==d2&&h.destroy&&h.destroy();delete b2[f2]}))},discardElement:function(b2){b2&&b2.parentElement&&b2.parentElement.removeChild(b2)},erase:function(b2,d2){for(var h=b2.length;h--;)if(b2[h]===d2){b2.splice(h,1);break}},error:g2,extend:m,extendClass:function(b2,d2){var h=function(){};h.prototype=new b2;m(h.prototype,d2);return h},find:l,fireEvent:u,getMagnitude:e,getNestedProperty:function(b2,d2){for(b2=b2.split(".");b2.length&&a(d2);){var h=b2.shift();if("undefined"===typeof h||"__proto__"===h)return;d2=d2[h];if(!a(d2)||"function"===typeof d2||"number"===typeof d2.nodeType||d2===f)return}return d2},getStyle:G,inArray:function(b2,d2,f2){g2(32,false,void 0,{"Highcharts.inArray":"use Array.indexOf"});return d2.indexOf(b2,f2)},isArray:z,isClass:t,isDOMElement:x,isFunction:function(b2){return"function"===typeof b2},isNumber:r,isObject:C,isString:B,keys:function(b2){g2(32,false,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(b2)},merge:function(){var b2,d2=arguments,f2={},l2=function(b3,d3){"object"!==typeof b3&&(b3={});H(d3,(function(h,f3){"__proto__"!==f3&&"constructor"!==f3&&(!C(h,true)||t(h)||x(h)?b3[f3]=d3[f3]:b3[f3]=l2(b3[f3]||{},h))}));return b3};true===d2[0]&&(f2=d2[1],d2=Array.prototype.slice.call(d2,2));var n2=d2.length;for(b2=0;b2<n2;b2++)f2=l2(f2,d2[b2]);return f2},normalizeTickInterval:function(b2,d2,f2,l2,n2){var h=b2;f2=p(f2,e(b2));var v=b2/f2;d2||(d2=n2?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],false===l2&&(1===f2?d2=d2.filter((function(b3){return 0===b3%1})):.1>=f2&&(d2=[1/f2])));for(l2=0;l2<d2.length&&!(h=d2[l2],n2&&h*f2>=b2||!n2&&v<=(d2[l2]+(d2[l2+1]||d2[l2]))/2);l2++);return h=D(h*f2,-Math.round(Math.log(.001)/Math.LN10))},objectEach:H,offset:function(b2){var d2=w.documentElement;b2=b2.parentElement||b2.parentNode?b2.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:b2.top+(f.pageYOffset||d2.scrollTop)-(d2.clientTop||0),left:b2.left+(f.pageXOffset||d2.scrollLeft)-(d2.clientLeft||0),width:b2.width,height:b2.height}},pad:function(b2,d2,f2){return Array((d2||2)+1-String(b2).replace("-","").length).join(f2||"0")+b2},pick:p,pInt:A,relativeLength:function(b2,d2,f2){return/%$/.test(b2)?d2*parseFloat(b2)/100+(f2||0):parseFloat(b2)},removeEvent:K,splat:function(b2){return z(b2)?b2:[b2]},stableSort:function(b2,d2){var h=b2.length,f2,l2;for(l2=0;l2<h;l2++)b2[l2].safeI=l2;b2.sort((function(b3,h2){f2=d2(b3,h2);return 0===f2?b3.safeI-h2.safeI:f2}));for(l2=0;l2<h;l2++)delete b2[l2].safeI},syncTimeout:function(b2,d2,f2){if(0<d2)return setTimeout(b2,d2,f2);b2.call(0,f2);return-1},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:b,useSerialIds:function(b2){return d=p(b2,d)},wrap:function(b2,d2,f2){var h=b2[d2];b2[d2]=function(){var b3=arguments,d3=this;return f2.apply(this,[function(){return h.apply(d3,arguments.length?arguments:b3)}].concat([].slice.call(arguments)))}}};return l}));I(g,"Core/Chart/ChartDefaults.js",[],(function(){return{alignThresholds:false,panning:{enabled:false,type:"x"},styledMode:false,borderRadius:0,colorCount:10,allowMutatingData:true,defaultSeriesType:"line",ignoreHiddenSeries:true,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:false,zooming:{singleTouch:false,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}));I(g,"Core/Color/Color.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2){var L=g2.isNumber,A=g2.merge,B=g2.pInt;g2=function(){function g3(C){this.rgba=[NaN,NaN,NaN,NaN];this.input=C;var x=c.Color;if(x&&x!==g3)return new x(C);if(!(this instanceof g3))return new g3(C);this.init(C)}g3.parse=function(c2){return c2?new g3(c2):g3.None};g3.prototype.init=function(c2){var x;if("object"===typeof c2&&"undefined"!==typeof c2.stops)this.stops=c2.stops.map((function(a2){return new g3(a2[1])}));else if("string"===typeof c2){this.input=c2=g3.names[c2.toLowerCase()]||c2;if("#"===c2.charAt(0)){var t=c2.length;var r=parseInt(c2.substr(1),16);7===t?x=[(r&16711680)>>16,(r&65280)>>8,r&255,1]:4===t&&(x=[(r&3840)>>4|(r&3840)>>8,(r&240)>>4|r&240,(r&15)<<4|r&15,1])}if(!x)for(r=g3.parsers.length;r--&&!x;){var a=g3.parsers[r];(t=a.regex.exec(c2))&&(x=a.parse(t))}}x&&(this.rgba=x)};g3.prototype.get=function(c2){var x=this.input,t=this.rgba;if("object"===typeof x&&"undefined"!==typeof this.stops){var r=A(x);r.stops=[].slice.call(r.stops);this.stops.forEach((function(a,q){r.stops[q]=[r.stops[q][0],a.get(c2)]}));return r}return t&&L(t[0])?"rgb"===c2||!c2&&1===t[3]?"rgb("+t[0]+","+t[1]+","+t[2]+")":"a"===c2?"".concat(t[3]):"rgba("+t.join(",")+")":x};g3.prototype.brighten=function(c2){var x=this.rgba;if(this.stops)this.stops.forEach((function(r){r.brighten(c2)}));else if(L(c2)&&0!==c2)for(var t=0;3>t;t++)x[t]+=B(255*c2),0>x[t]&&(x[t]=0),255<x[t]&&(x[t]=255);return this};g3.prototype.setOpacity=function(c2){this.rgba[3]=c2;return this};g3.prototype.tweenTo=function(c2,x){var t=this.rgba,r=c2.rgba;if(!L(t[0])||!L(r[0]))return c2.input||"none";c2=1!==r[3]||1!==t[3];return(c2?"rgba(":"rgb(")+Math.round(r[0]+(t[0]-r[0])*(1-x))+","+Math.round(r[1]+(t[1]-r[1])*(1-x))+","+Math.round(r[2]+(t[2]-r[2])*(1-x))+(c2?","+(r[3]+(t[3]-r[3])*(1-x)):"")+")"};g3.names={white:"#ffffff",black:"#000000"};g3.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(c2){return[B(c2[1]),B(c2[2]),B(c2[3]),parseFloat(c2[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(c2){return[B(c2[1]),B(c2[2]),B(c2[3]),1]}}];g3.None=new g3("");return g3}();return g2}));I(g,"Core/Color/Palettes.js",[],(function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}));I(g,"Core/Time.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2){var L=c.win,A=g2.defined,B=g2.error,z=g2.extend,C=g2.isObject,x=g2.merge,t=g2.objectEach,r=g2.pad,a=g2.pick,q=g2.splat,m=g2.timeUnits,p=c.isSafari&&L.Intl&&L.Intl.DateTimeFormat.prototype.formatRange,k=c.isSafari&&L.Intl&&!L.Intl.DateTimeFormat.prototype.formatRange;g2=function(){function e(e2){this.options={};this.variableTimezone=this.useUTC=false;this.Date=L.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(e2)}e.prototype.get=function(e2,k2){if(this.variableTimezone||this.timezoneOffset){var D=k2.getTime(),p2=D-this.getTimezoneOffset(k2);k2.setTime(p2);e2=k2["getUTC"+e2]();k2.setTime(D);return e2}return this.useUTC?k2["getUTC"+e2]():k2["get"+e2]()};e.prototype.set=function(e2,k2,a2){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===e2||"Seconds"===e2||"Minutes"===e2&&0===this.getTimezoneOffset(k2)%36e5)return k2["setUTC"+e2](a2);var D=this.getTimezoneOffset(k2);D=k2.getTime()-D;k2.setTime(D);k2["setUTC"+e2](a2);e2=this.getTimezoneOffset(k2);D=k2.getTime()+e2;return k2.setTime(D)}return this.useUTC||p&&"FullYear"===e2?k2["setUTC"+e2](a2):k2["set"+e2](a2)};e.prototype.update=function(e2){void 0===e2&&(e2={});var k2=a(e2.useUTC,true);this.options=e2=x(true,this.options,e2);this.Date=e2.Date||L.Date||Date;this.timezoneOffset=(this.useUTC=k2)&&e2.timezoneOffset||void 0;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=k2&&!(!e2.getTimezoneOffset&&!e2.timezone)};e.prototype.makeTime=function(e2,p2,m2,q2,u,n){if(this.useUTC){var w=this.Date.UTC.apply(0,arguments);var f=this.getTimezoneOffset(w);w+=f;var l=this.getTimezoneOffset(w);f!==l?w+=l-f:f-36e5!==this.getTimezoneOffset(w-36e5)||k||(w-=36e5)}else w=new this.Date(e2,p2,a(m2,1),a(q2,0),a(u,0),a(n,0)).getTime();return w};e.prototype.timezoneOffsetFunction=function(){var e2=this,k2=this.options,p2=k2.getTimezoneOffset,a2=k2.moment||L.moment;if(!this.useUTC)return function(e3){return 6e4*new Date(e3.toString()).getTimezoneOffset()};if(k2.timezone){if(a2)return function(e3){return 6e4*-a2.tz(e3,k2.timezone).utcOffset()};B(25)}return this.useUTC&&p2?function(e3){return 6e4*p2(e3.valueOf())}:function(){return 6e4*(e2.timezoneOffset||0)}};e.prototype.dateFormat=function(e2,k2,p2){if(!A(k2)||isNaN(k2))return c.defaultOptions.lang&&c.defaultOptions.lang.invalidDate||"";e2=a(e2,"%Y-%m-%d %H:%M:%S");var D=this,u=new this.Date(k2),n=this.get("Hours",u),w=this.get("Day",u),f=this.get("Date",u),l=this.get("Month",u),d=this.get("FullYear",u),b=c.defaultOptions.lang,h=b&&b.weekdays,v=b&&b.shortWeekdays;u=z({a:v?v[w]:h[w].substr(0,3),A:h[w],d:r(f),e:r(f,2," "),w:w,b:b.shortMonths[l],B:b.months[l],m:r(l+1),o:l+1,y:d.toString().substr(2,2),Y:d,H:r(n),k:n,I:r(n%12||12),l:n%12||12,M:r(this.get("Minutes",u)),p:12>n?"AM":"PM",P:12>n?"am":"pm",S:r(u.getSeconds()),L:r(Math.floor(k2%1e3),3)},c.dateFormats);t(u,(function(b2,d2){for(;-1!==e2.indexOf("%"+d2);)e2=e2.replace("%"+d2,"function"===typeof b2?b2.call(D,k2):b2)}));return p2?e2.substr(0,1).toUpperCase()+e2.substr(1):e2};e.prototype.resolveDTLFormat=function(e2){return C(e2,true)?e2:(e2=q(e2),{main:e2[0],from:e2[1],to:e2[2]})};e.prototype.getTimeTicks=function(e2,k2,p2,q2){var u=this,n=[],w={},f=new u.Date(k2),l=e2.unitRange,d=e2.count||1,b;q2=a(q2,1);if(A(k2)){u.set("Milliseconds",f,l>=m.second?0:d*Math.floor(u.get("Milliseconds",f)/d));l>=m.second&&u.set("Seconds",f,l>=m.minute?0:d*Math.floor(u.get("Seconds",f)/d));l>=m.minute&&u.set("Minutes",f,l>=m.hour?0:d*Math.floor(u.get("Minutes",f)/d));l>=m.hour&&u.set("Hours",f,l>=m.day?0:d*Math.floor(u.get("Hours",f)/d));l>=m.day&&u.set("Date",f,l>=m.month?1:Math.max(1,d*Math.floor(u.get("Date",f)/d)));if(l>=m.month){u.set("Month",f,l>=m.year?0:d*Math.floor(u.get("Month",f)/d));var h=u.get("FullYear",f)}l>=m.year&&u.set("FullYear",f,h-h%d);l===m.week&&(h=u.get("Day",f),u.set("Date",f,u.get("Date",f)-h+q2+(h<q2?-7:0)));h=u.get("FullYear",f);q2=u.get("Month",f);var v=u.get("Date",f),E=u.get("Hours",f);k2=f.getTime();!u.variableTimezone&&u.useUTC||!A(p2)||(b=p2-k2>4*m.month||u.getTimezoneOffset(k2)!==u.getTimezoneOffset(p2));k2=f.getTime();for(f=1;k2<p2;)n.push(k2),k2=l===m.year?u.makeTime(h+f*d,0):l===m.month?u.makeTime(h,q2+f*d):!b||l!==m.day&&l!==m.week?b&&l===m.hour&&1<d?u.makeTime(h,q2,v,E+f*d):k2+l*d:u.makeTime(h,q2,v+f*d*(l===m.day?1:7)),f++;n.push(k2);l<=m.hour&&1e4>n.length&&n.forEach((function(b2){0===b2%18e5&&"000000000"===u.dateFormat("%H%M%S%L",b2)&&(w[b2]="day")}))}n.info=z(e2,{higherRanks:w,totalRange:l*d});return n};e.prototype.getDateFormat=function(e2,k2,p2,a2){var u=this.dateFormat("%m-%d %H:%M:%S.%L",k2),n={millisecond:15,second:12,minute:9,hour:6,day:3},w="millisecond";for(f in m){if(e2===m.week&&+this.dateFormat("%w",k2)===p2&&"00:00:00.000"===u.substr(6)){var f="week";break}if(m[f]>e2){f=w;break}if(n[f]&&u.substr(n[f])!=="01-01 00:00:00.000".substr(n[f]))break;"week"!==f&&(w=f)}return this.resolveDTLFormat(a2[f]).main};return e}();return g2}));I(g,"Core/Defaults.js",[g["Core/Chart/ChartDefaults.js"],g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Color/Palettes.js"],g["Core/Time.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z){g2=g2.parse;var C=z.merge,x={colors:A.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:true},chart:c,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:true,align:"center",alignColumns:true,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:false,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:true,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:true,animation:y.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:false,snap:y.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:g2("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:true,stickOnContact:false,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:false},credits:{enabled:true,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};x.chart.styledMode=false;var t=new B(C(x.global,x.time));c={defaultOptions:x,defaultTime:t,getOptions:function(){return x},setOptions:function(r){C(true,x,r);if(r.time||r.global)y.time?y.time.update(C(x.global,x.time,r.global,r.time)):y.time=t;return x}};return c}));I(g,"Core/Animation/Fx.js",[g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2,y){var L=c.parse,B=g2.win,z=y.isNumber,C=y.objectEach;return function(){function c2(t,r,a){this.pos=NaN;this.options=r;this.elem=t;this.prop=a}c2.prototype.dSetter=function(){var t=this.paths,r=t&&t[0];t=t&&t[1];var a=this.now||0,q=[];if(1!==a&&r&&t)if(r.length===t.length&&1>a)for(var m=0;m<t.length;m++){for(var p=r[m],k=t[m],e=[],D=0;D<k.length;D++){var G=p[D],c3=k[D];z(G)&&z(c3)&&("A"!==k[0]||4!==D&&5!==D)?e[D]=G+a*(c3-G):e[D]=c3}q.push(e)}else q=t;else q=this.toD||[];this.elem.attr("d",q,void 0,true)};c2.prototype.update=function(){var t=this.elem,r=this.prop,a=this.now,q=this.options.step;if(this[r+"Setter"])this[r+"Setter"]();else t.attr?t.element&&t.attr(r,a,null,true):t.style[r]=a+this.unit;q&&q.call(t,a,this)};c2.prototype.run=function(t,r,a){var q=this,m=q.options,p=function(e2){return p.stopped?false:q.step(e2)},k=B.requestAnimationFrame||function(e2){setTimeout(e2,13)},e=function(){for(var p2=0;p2<c2.timers.length;p2++)c2.timers[p2]()||c2.timers.splice(p2--,1);c2.timers.length&&k(e)};t!==r||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=r,this.unit=a,this.now=this.start,this.pos=0,p.elem=this.elem,p.prop=this.prop,p()&&1===c2.timers.push(p)&&k(e)):(delete m.curAnim[this.prop],m.complete&&0===Object.keys(m.curAnim).length&&m.complete.call(this.elem))};c2.prototype.step=function(t){var r=+new Date,a=this.options,q=this.elem,m=a.complete,p=a.duration,k=a.curAnim;if(q.attr&&!q.element)t=false;else if(t||r>=p+this.startTime){this.now=this.end;this.pos=1;this.update();var e=k[this.prop]=true;C(k,(function(k2){true!==k2&&(e=false)}));e&&m&&m.call(q);t=false}else this.pos=a.easing((r-this.startTime)/p),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=true;return t};c2.prototype.initPath=function(t,r,a){function q(k2,n){for(;k2.length<x;){var w=k2[0],f=n[x-k2.length];f&&"M"===w[0]&&(k2[0]="C"===f[0]?["C",w[1],w[2],w[1],w[2],w[1],w[2]]:["L",w[1],w[2]]);k2.unshift(w);e&&(w=k2.pop(),k2.push(k2[k2.length-1],w))}}function m(k2,n){for(;k2.length<x;)if(n=k2[Math.floor(k2.length/D)-1].slice(),"C"===n[0]&&(n[1]=n[5],n[2]=n[6]),e){var w=k2[Math.floor(k2.length/D)].slice();k2.splice(k2.length/2,0,n,w)}else k2.push(n)}var p=t.startX,k=t.endX;a=a.slice();var e=t.isArea,D=e?2:1;r=r&&r.slice();if(!r)return[a,a];if(p&&k&&k.length){for(t=0;t<p.length;t++)if(p[t]===k[0]){var G=t;break}else if(p[0]===k[k.length-p.length+t]){G=t;var c3=true;break}else if(p[p.length-1]===k[k.length-p.length+t]){G=p.length-t;break}"undefined"===typeof G&&(r=[])}if(r.length&&z(G)){var x=a.length+G*D;c3?(q(r,a),m(a,r)):(q(a,r),m(r,a))}return[r,a]};c2.prototype.fillSetter=function(){c2.prototype.strokeSetter.apply(this,arguments)};c2.prototype.strokeSetter=function(){this.elem.attr(this.prop,L(this.start).tweenTo(L(this.end),this.pos),void 0,true)};c2.timers=[];return c2}()}));I(g,"Core/Animation/AnimationUtilities.js",[g["Core/Animation/Fx.js"],g["Core/Utilities.js"]],(function(c,g2){function L(a2){return t(a2)?r({duration:500,defer:0},a2):{duration:a2?500:0,defer:0}}function A(a2,p){for(var k=c.timers.length;k--;)c.timers[k].elem!==a2||p&&p!==c.timers[k].prop||(c.timers[k].stopped=true)}var B=g2.defined,z=g2.getStyle,C=g2.isArray,x=g2.isNumber,t=g2.isObject,r=g2.merge,a=g2.objectEach,q=g2.pick;return{animate:function(q2,p,k){var e,D="",m,H;if(!t(k)){var g3=arguments;k={duration:g3[2],easing:g3[3],complete:g3[4]}}x(k.duration)||(k.duration=400);k.easing="function"===typeof k.easing?k.easing:Math[k.easing]||Math.easeInOutSine;k.curAnim=r(p);a(p,(function(u,n){A(q2,n);H=new c(q2,k,n);m=void 0;"d"===n&&C(p.d)?(H.paths=H.initPath(q2,q2.pathArray,p.d),H.toD=p.d,e=0,m=1):q2.attr?e=q2.attr(n):(e=parseFloat(z(q2,n))||0,"opacity"!==n&&(D="px"));m||(m=u);"string"===typeof m&&m.match("px")&&(m=m.replace(/px/g,""));H.run(e,m,D)}))},animObject:L,getDeferredAnimation:function(a2,p,k){var e=L(p),q2=0,m=0;(k?[k]:a2.series).forEach((function(k2){k2=L(k2.options.animation);q2=p&&B(p.defer)?e.defer:Math.max(q2,k2.duration+k2.defer);m=Math.min(e.duration,k2.duration)}));a2.renderer.forExport&&(q2=0);return{defer:Math.max(0,q2-m),duration:Math.min(q2,m)}},setAnimation:function(a2,p){p.renderer.globalAnimation=q(a2,p.options.chart.animation,true)},stop:A}}));I(g,"Core/Renderer/HTML/AST.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2){var L=c.SVG_NS,A=g2.attr,B=g2.createElement,z=g2.css,C=g2.error,x=g2.isFunction,t=g2.isString,r=g2.objectEach,a=g2.splat,q=(g2=c.win.trustedTypes)&&x(g2.createPolicy)&&g2.createPolicy("highcharts",{createHTML:function(k){return k}}),m=q?q.createHTML(""):"";try{var p=!!(new DOMParser).parseFromString(m,"text/html")}catch(k){p=false}x=function(){function k(e){this.nodes="string"===typeof e?this.parseMarkup(e):e}k.filterUserAttributes=function(e){r(e,(function(p2,a2){var q2=true;-1===k.allowedAttributes.indexOf(a2)&&(q2=false);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(a2)&&(q2=t(p2)&&k.allowedReferences.some((function(e2){return 0===p2.indexOf(e2)})));q2||(C(33,false,void 0,{"Invalid attribute in config":"".concat(a2)}),delete e[a2]);t(p2)&&e[a2]&&(e[a2]=p2.replace(/</g,"&lt;"))}));return e};k.parseStyle=function(e){return e.split(";").reduce((function(e2,k2){k2=k2.split(":").map((function(e3){return e3.trim()}));var p2=k2.shift();p2&&k2.length&&(e2[p2.replace(/-([a-z])/g,(function(e3){return e3[1].toUpperCase()}))]=k2.join(":"));return e2}),{})};k.setElementHTML=function(e,p2){e.innerHTML=k.emptyHTML;p2&&new k(p2).addToDOM(e)};k.prototype.addToDOM=function(e){function p2(e2,q2){var m2;a(e2).forEach((function(e3){var n=e3.tagName,w=e3.textContent?c.doc.createTextNode(e3.textContent):void 0,f=k.bypassHTMLFiltering;if(n)if("#text"===n)var l=w;else if(-1!==k.allowedTags.indexOf(n)||f){n=c.doc.createElementNS("svg"===n?L:q2.namespaceURI||L,n);var d=e3.attributes||{};r(e3,(function(b,h){"tagName"!==h&&"attributes"!==h&&"children"!==h&&"style"!==h&&"textContent"!==h&&(d[h]=b)}));A(n,f?d:k.filterUserAttributes(d));e3.style&&z(n,e3.style);w&&n.appendChild(w);p2(e3.children||[],n);l=n}else C(33,false,void 0,{"Invalid tagName in config":n});l&&q2.appendChild(l);m2=l}));return m2}return p2(this.nodes,e)};k.prototype.parseMarkup=function(e){var a2=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");if(p)e=(new DOMParser).parseFromString(q?q.createHTML(e):e,"text/html");else{var m2=B("div");m2.innerHTML=e;e={body:m2}}var r2=function(e2,p2){var n=e2.nodeName.toLowerCase(),w={tagName:n};"#text"===n&&(w.textContent=e2.textContent||"");if(n=e2.attributes){var f={};[].forEach.call(n,(function(d){"data-style"===d.name?w.style=k.parseStyle(d.value):f[d.name]=d.value}));w.attributes=f}if(e2.childNodes.length){var l=[];[].forEach.call(e2.childNodes,(function(d){r2(d,l)}));l.length&&(w.children=l)}p2.push(w)};[].forEach.call(e.body.childNodes,(function(e2){return r2(e2,a2)}));return a2};k.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" ");k.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");k.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" ");k.emptyHTML=m;k.bypassHTMLFiltering=false;return k}();return x}));I(g,"Core/FormatUtilities.js",[g["Core/Defaults.js"],g["Core/Utilities.js"]],(function(c,g2){function L(r,a,q,m){r=+r||0;a=+a;var p=A.lang,k=(r.toString().split(".")[1]||"").split("e")[0].length,e=r.toString().split("e"),D=a;if(-1===a)a=Math.min(k,20);else if(!C(a))a=2;else if(a&&e[1]&&0>e[1]){var G=a+ +e[1];0<=G?(e[0]=(+e[0]).toExponential(G).split("e")[0],a=G):(e[0]=e[0].split(".")[0]||0,r=20>a?(e[0]*Math.pow(10,e[1])).toFixed(a):0,e[1]=0)}G=(Math.abs(e[1]?e[0]:r)+Math.pow(10,-Math.max(a,k)-1)).toFixed(a);k=String(t(G));var c2=3<k.length?k.length%3:0;q=x(q,p.decimalPoint);m=x(m,p.thousandsSep);r=(0>r?"-":"")+(c2?k.substr(0,c2)+m:"");r=0>+e[1]&&!D?"0":r+k.substr(c2).replace(/(\d{3})(?=\d)/g,"$1"+m);a&&(r+=q+G.slice(-a));e[1]&&0!==+r&&(r+="e"+e[1]);return r}var A=c.defaultOptions,B=c.defaultTime,z=g2.getNestedProperty,C=g2.isNumber,x=g2.pick,t=g2.pInt;return{dateFormat:function(r,a,q){return B.dateFormat(r,a,q)},format:function(r,a,q){var m="{",p=false,k=/f$/,e=/\.([0-9])/,D=A.lang,G=q&&q.time||B;q=q&&q.numberFormatter||L;for(var t2=[];r;){var c2=r.indexOf(m);if(-1===c2)break;var u=r.slice(0,c2);if(p){u=u.split(":");m=z(u.shift()||"",a);if(u.length&&"number"===typeof m)if(u=u.join(":"),k.test(u)){var n=parseInt((u.match(e)||["","-1"])[1],10);null!==m&&(m=q(m,n,D.decimalPoint,-1<u.indexOf(",")?D.thousandsSep:""))}else m=G.dateFormat(u,m);t2.push(m)}else t2.push(u);r=r.slice(c2+1);m=(p=!p)?"}":"{"}t2.push(r);return t2.join("")},numberFormat:L}}));I(g,"Core/Renderer/RendererUtilities.js",[g["Core/Utilities.js"]],(function(c){var g2=c.clamp,y=c.pick,A=c.stableSort,B;(function(c2){function C(c3,t,r){var a=c3,q=a.reducedLen||t,m=function(e2,k2){return(k2.rank||0)-(e2.rank||0)},p=function(e2,k2){return e2.target-k2.target},k,e=true,D=[],G=0;for(k=c3.length;k--;)G+=c3[k].size;if(G>q){A(c3,m);for(G=k=0;G<=q;)G+=c3[k].size,k++;D=c3.splice(k-1,c3.length)}A(c3,p);for(c3=c3.map((function(e2){return{size:e2.size,targets:[e2.target],align:y(e2.align,.5)}}));e;){for(k=c3.length;k--;)q=c3[k],m=(Math.min.apply(0,q.targets)+Math.max.apply(0,q.targets))/2,q.pos=g2(m-q.size*q.align,0,t-q.size);k=c3.length;for(e=false;k--;)0<k&&c3[k-1].pos+c3[k-1].size>c3[k].pos&&(c3[k-1].size+=c3[k].size,c3[k-1].targets=c3[k-1].targets.concat(c3[k].targets),c3[k-1].align=.5,c3[k-1].pos+c3[k-1].size>t&&(c3[k-1].pos=t-c3[k-1].size),c3.splice(k,1),e=true)}a.push.apply(a,D);k=0;c3.some((function(e2){var p2=0;return(e2.targets||[]).some((function(){a[k].pos=e2.pos+p2;if("undefined"!==typeof r&&Math.abs(a[k].pos-a[k].target)>r)return a.slice(0,k+1).forEach((function(e3){return delete e3.pos})),a.reducedLen=(a.reducedLen||t)-.1*t,a.reducedLen>.1*t&&C(a,t,r),true;p2+=a[k].size;k++;return false}))}));A(a,p);return a}c2.distribute=C})(B||(B={}));return B}));I(g,"Core/Renderer/SVG/SVGElement.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){var L=c.animate,z=c.animObject,C=c.stop,x=y.deg2rad,t=y.doc,r=y.svg,a=y.SVG_NS,q=y.win,m=A.addEvent,p=A.attr,k=A.createElement,e=A.css,D=A.defined,G=A.erase,H=A.extend,K=A.fireEvent,u=A.isArray,n=A.isFunction,w=A.isString,f=A.merge,l=A.objectEach,d=A.pick,b=A.pInt,h=A.syncTimeout,v=A.uniqueKey;c=function(){function E(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=a;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}E.prototype._defaultGetter=function(b2){b2=d(this[b2+"Value"],this[b2],this.element?this.element.getAttribute(b2):null,0);/^[\-0-9\.]+$/.test(b2)&&(b2=parseFloat(b2));return b2};E.prototype._defaultSetter=function(b2,d2,h2){h2.setAttribute(d2,b2)};E.prototype.add=function(b2){var d2=this.renderer,h2=this.element;b2&&(this.parentGroup=b2);"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&d2.buildText(this);this.added=true;if(!b2||b2.handleZ||this.zIndex)var f2=this.zIndexSetter();f2||(b2?b2.element:d2.box).appendChild(h2);if(this.onAdd)this.onAdd();return this};E.prototype.addClass=function(b2,d2){var h2=d2?"":this.attr("class")||"";b2=(b2||"").split(/ /g).reduce((function(b3,d3){-1===h2.indexOf(d3)&&b3.push(d3);return b3}),h2?[h2]:[]).join(" ");b2!==h2&&this.attr("class",b2);return this};E.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=false)};E.prototype.align=function(b2,h2,f2){var l2={},v2=this.renderer,F=v2.alignedObjects,n2,e2,J;if(b2){if(this.alignOptions=b2,this.alignByTranslate=h2,!f2||w(f2))this.alignTo=n2=f2||"renderer",G(F,this),F.push(this),f2=void 0}else b2=this.alignOptions,h2=this.alignByTranslate,n2=this.alignTo;f2=d(f2,v2[n2],"scrollablePlotBox"===n2?v2.plotBox:void 0,v2);n2=b2.align;var k2=b2.verticalAlign;v2=(f2.x||0)+(b2.x||0);F=(f2.y||0)+(b2.y||0);"right"===n2?e2=1:"center"===n2&&(e2=2);e2&&(v2+=(f2.width-(b2.width||0))/e2);l2[h2?"translateX":"x"]=Math.round(v2);"bottom"===k2?J=1:"middle"===k2&&(J=2);J&&(F+=(f2.height-(b2.height||0))/J);l2[h2?"translateY":"y"]=Math.round(F);this[this.placed?"animate":"attr"](l2);this.placed=true;this.alignAttr=l2;return this};E.prototype.alignSetter=function(b2){var d2={left:"start",center:"middle",right:"end"};d2[b2]&&(this.alignValue=b2,this.element.setAttribute("text-anchor",d2[b2]))};E.prototype.animate=function(b2,f2,v2){var n2=this,e2=z(d(f2,this.renderer.globalAnimation,true));f2=e2.defer;d(t.hidden,t.msHidden,t.webkitHidden,false)&&(e2.duration=0);0!==e2.duration?(v2&&(e2.complete=v2),h((function(){n2.element&&L(n2,b2,e2)}),f2)):(this.attr(b2,void 0,v2||e2.complete),l(b2,(function(b3,d2){e2.step&&e2.step.call(this,b3,{prop:d2,pos:1,elem:this})}),this));return this};E.prototype.applyTextOutline=function(b2){var d2=this.element;-1!==b2.indexOf("contrast")&&(b2=b2.replace(/contrast/g,this.renderer.getContrast(d2.style.fill)));var h2=b2.split(" ");b2=h2[h2.length-1];if((h2=h2[0])&&"none"!==h2&&y.svg){this.fakeTS=true;h2=h2.replace(/(^[\d\.]+)(.*?)$/g,(function(b3,d3,h3){return 2*Number(d3)+h3}));this.removeTextOutline();var f2=t.createElementNS(a,"tspan");p(f2,{class:"highcharts-text-outline",fill:b2,stroke:b2,"stroke-width":h2,"stroke-linejoin":"round"});b2=d2.querySelector("textPath")||d2;[].forEach.call(b2.childNodes,(function(b3){var d3=b3.cloneNode(true);d3.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(b4){return d3.removeAttribute(b4)}));f2.appendChild(d3)}));var l2=0;[].forEach.call(b2.querySelectorAll("text tspan"),(function(b3){l2+=Number(b3.getAttribute("dy"))}));h2=t.createElementNS(a,"tspan");h2.textContent="​";p(h2,{x:Number(d2.getAttribute("x")),dy:-l2});f2.appendChild(h2);b2.insertBefore(f2,b2.firstChild)}};E.prototype.attr=function(b2,d2,h2,f2){var v2=this.element,F=this.symbolCustomAttribs,n2,e2=this,w2,J;if("string"===typeof b2&&"undefined"!==typeof d2){var k2=b2;b2={};b2[k2]=d2}"string"===typeof b2?e2=(this[b2+"Getter"]||this._defaultGetter).call(this,b2,v2):(l(b2,(function(d3,h3){w2=false;f2||C(this,h3);this.symbolName&&-1!==F.indexOf(h3)&&(n2||(this.symbolAttr(b2),n2=true),w2=true);!this.rotation||"x"!==h3&&"y"!==h3||(this.doTransform=true);w2||(J=this[h3+"Setter"]||this._defaultSetter,J.call(this,d3,h3,v2),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(h3)&&this.updateShadows(h3,d3,J))}),this),this.afterSetters());h2&&h2.call(this);return e2};E.prototype.clip=function(b2){return this.attr("clip-path",b2?"url("+this.renderer.url+"#"+b2.id+")":"none")};E.prototype.crisp=function(b2,d2){d2=d2||b2.strokeWidth||0;var h2=Math.round(d2)%2/2;b2.x=Math.floor(b2.x||this.x||0)+h2;b2.y=Math.floor(b2.y||this.y||0)+h2;b2.width=Math.floor((b2.width||this.width||0)-2*h2);b2.height=Math.floor((b2.height||this.height||0)-2*h2);D(b2.strokeWidth)&&(b2.strokeWidth=d2);return b2};E.prototype.complexColor=function(b2,d2,h2){var n2=this.renderer,e2,F,Q,w2,k2,J,E2,p2,a2,q2,m2=[],M;K(this.renderer,"complexColor",{args:arguments},(function(){b2.radialGradient?F="radialGradient":b2.linearGradient&&(F="linearGradient");if(F){Q=b2[F];k2=n2.gradients;J=b2.stops;a2=h2.radialReference;u(Q)&&(b2[F]=Q={x1:Q[0],y1:Q[1],x2:Q[2],y2:Q[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===F&&a2&&!D(Q.gradientUnits)&&(w2=Q,Q=f(Q,n2.getRadialAttr(a2,w2),{gradientUnits:"userSpaceOnUse"}));l(Q,(function(b3,d3){"id"!==d3&&m2.push(d3,b3)}));l(J,(function(b3){m2.push(b3)}));m2=m2.join(",");if(k2[m2])q2=k2[m2].attr("id");else{Q.id=q2=v();var N=k2[m2]=n2.createElement(F).attr(Q).add(n2.defs);N.radAttr=w2;N.stops=[];J.forEach((function(b3){0===b3[1].indexOf("rgba")?(e2=g2.parse(b3[1]),E2=e2.get("rgb"),p2=e2.get("a")):(E2=b3[1],p2=1);b3=n2.createElement("stop").attr({offset:b3[0],"stop-color":E2,"stop-opacity":p2}).add(N);N.stops.push(b3)}))}M="url("+n2.url+"#"+q2+")";h2.setAttribute(d2,M);h2.gradient=m2;b2.toString=function(){return M}}}))};E.prototype.css=function(d2){var h2=this.styles,n2={},v2=this.element,w2=!h2;d2.color&&(d2.fill=d2.color);h2&&l(d2,(function(b2,d3){h2&&h2[d3]!==b2&&(n2[d3]=b2,w2=true)}));if(w2){h2&&(d2=H(h2,n2));if(null===d2.width||"auto"===d2.width)delete this.textWidth;else if("text"===v2.nodeName.toLowerCase()&&d2.width)var F=this.textWidth=b(d2.width);this.styles=d2;F&&!r&&this.renderer.forExport&&delete d2.width;var Q=f(d2);v2.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach((function(b2){return Q&&delete Q[b2]}));e(v2,Q);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),d2.textOutline&&this.applyTextOutline(d2.textOutline))}return this};E.prototype.dashstyleSetter=function(h2){var f2=this["stroke-width"];"inherit"===f2&&(f2=1);if(h2=h2&&h2.toLowerCase()){var l2=h2.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(h2=l2.length;h2--;)l2[h2]=""+b(l2[h2])*d(f2,NaN);h2=l2.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",h2)}};E.prototype.destroy=function(){var b2=this,d2=b2.element||{},h2=b2.renderer,f2=d2.ownerSVGElement,n2=h2.isSVG&&"SPAN"===d2.nodeName&&b2.parentGroup||void 0;d2.onclick=d2.onmouseout=d2.onmouseover=d2.onmousemove=d2.point=null;C(b2);if(b2.clipPath&&f2){var F=b2.clipPath;[].forEach.call(f2.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(b3){-1<b3.getAttribute("clip-path").indexOf(F.element.id)&&b3.removeAttribute("clip-path")}));b2.clipPath=F.destroy()}if(b2.stops){for(f2=0;f2<b2.stops.length;f2++)b2.stops[f2].destroy();b2.stops.length=0;b2.stops=void 0}b2.safeRemoveChild(d2);for(h2.styledMode||b2.destroyShadows();n2&&n2.div&&0===n2.div.childNodes.length;)d2=n2.parentGroup,b2.safeRemoveChild(n2.div),delete n2.div,n2=d2;b2.alignTo&&G(h2.alignedObjects,b2);l(b2,(function(d3,h3){b2[h3]&&b2[h3].parentGroup===b2&&b2[h3].destroy&&b2[h3].destroy();delete b2[h3]}))};E.prototype.destroyShadows=function(){(this.shadows||[]).forEach((function(b2){this.safeRemoveChild(b2)}),this);this.shadows=void 0};E.prototype.dSetter=function(b2,d2,h2){u(b2)&&("string"===typeof b2[0]&&(b2=this.renderer.pathToSegments(b2)),this.pathArray=b2,b2=b2.reduce((function(b3,d3,h3){return d3&&d3.join?(h3?b3+" ":"")+d3.join(" "):(d3||"").toString()}),""));/(NaN| {2}|^$)/.test(b2)&&(b2="M 0 0");this[d2]!==b2&&(h2.setAttribute(d2,b2),this[d2]=b2)};E.prototype.fadeOut=function(b2){var h2=this;h2.animate({opacity:0},{duration:d(b2,150),complete:function(){h2.hide()}})};E.prototype.fillSetter=function(b2,d2,h2){"string"===typeof b2?h2.setAttribute(d2,b2):b2&&this.complexColor(b2,d2,h2)};E.prototype.getBBox=function(b2,h2){var f2=this.alignValue,l2=this.element,v2=this.renderer,F=this.styles,w2=this.textStr,k2=v2.cache,p2=v2.cacheKeys,a2=l2.namespaceURI===this.SVG_NS;h2=d(h2,this.rotation,0);var N=v2.styledMode?l2&&E.prototype.getStyle.call(l2,"font-size"):F&&F.fontSize,J;if(D(w2)){var q2=w2.toString();-1===q2.indexOf("<")&&(q2=q2.replace(/[0-9]/g,"0"));q2+=["",h2,N,this.textWidth,f2,F&&F.textOverflow,F&&F.fontWeight].join()}q2&&!b2&&(J=k2[q2]);if(!J){if(a2||v2.forExport){try{var u2=this.fakeTS&&function(b3){var d2=l2.querySelector(".highcharts-text-outline");d2&&e(d2,{display:b3})};n(u2)&&u2("none");J=l2.getBBox?H({},l2.getBBox()):{width:l2.offsetWidth,height:l2.offsetHeight,x:0,y:0};n(u2)&&u2("")}catch(U){}if(!J||0>J.width)J={x:0,y:0,width:0,height:0}}else J=this.htmlGetBBox();if(v2.isSVG&&(v2=J.width,b2=J.height,a2&&(J.height=b2={"11px,17":14,"13px,20":16}[""+(N||"")+",".concat(Math.round(b2))]||b2),h2)){a2=Number(l2.getAttribute("y")||0)-J.y;f2={right:1,center:.5}[f2||0]||0;F=h2*x;N=(h2-90)*x;var m2=v2*Math.cos(F);h2=v2*Math.sin(F);u2=Math.cos(N);F=Math.sin(N);v2=J.x+f2*(v2-m2)+a2*u2;N=v2+m2;u2=N-b2*u2;m2=u2-m2;a2=J.y+a2-f2*h2+a2*F;f2=a2+h2;b2=f2-b2*F;h2=b2-h2;J.x=Math.min(v2,N,u2,m2);J.y=Math.min(a2,f2,b2,h2);J.width=Math.max(v2,N,u2,m2)-J.x;J.height=Math.max(a2,f2,b2,h2)-J.y}if(q2&&(""===w2||0<J.height)){for(;250<p2.length;)delete k2[p2.shift()];k2[q2]||p2.push(q2);k2[q2]=J}}return J};E.prototype.getStyle=function(b2){return q.getComputedStyle(this.element||this,"").getPropertyValue(b2)};E.prototype.hasClass=function(b2){return-1!==(""+this.attr("class")).split(" ").indexOf(b2)};E.prototype.hide=function(){return this.attr({visibility:"hidden"})};E.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};E.prototype.init=function(b2,d2){this.element="span"===d2?k(d2):t.createElementNS(this.SVG_NS,d2);this.renderer=b2;K(this,"afterInit")};E.prototype.on=function(b2,d2){var h2=this.onEvents;if(h2[b2])h2[b2]();h2[b2]=m(this.element,b2,d2);return this};E.prototype.opacitySetter=function(b2,d2,h2){this.opacity=b2=Number(Number(b2).toFixed(3));h2.setAttribute(d2,b2)};E.prototype.removeClass=function(b2){return this.attr("class",(""+this.attr("class")).replace(w(b2)?new RegExp("(^| )".concat(b2,"( |$)")):b2," ").replace(/ +/g," ").trim())};E.prototype.removeTextOutline=function(){var b2=this.element.querySelector("tspan.highcharts-text-outline");b2&&this.safeRemoveChild(b2)};E.prototype.safeRemoveChild=function(b2){var d2=b2.parentNode;d2&&d2.removeChild(b2)};E.prototype.setRadialReference=function(b2){var d2=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=b2;d2&&d2.radAttr&&d2.animate(this.renderer.getRadialAttr(b2,d2.radAttr));return this};E.prototype.setTextPath=function(b2,d2){var h2=this;d2=f(true,{enabled:true,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},d2);var l2=this.renderer.url,n2=this.text||this,F=n2.textPath,e2=d2.attributes,w2=d2.enabled;b2=b2||F&&F.path;F&&F.undo();b2&&w2?(d2=m(n2,"afterModifyTree",(function(d3){if(b2&&w2){var f2=b2.attr("id");f2||b2.attr("id",f2=v());var F2={x:0,y:0};D(e2.dx)&&(F2.dx=e2.dx,delete e2.dx);D(e2.dy)&&(F2.dy=e2.dy,delete e2.dy);n2.attr(F2);h2.attr({transform:""});h2.box&&(h2.box=h2.box.destroy());F2=d3.nodes.slice(0);d3.nodes.length=0;d3.nodes[0]={tagName:"textPath",attributes:H(e2,{"text-anchor":e2.textAnchor,href:""+l2+"#".concat(f2)}),children:F2}}})),n2.textPath={path:b2,undo:d2}):(n2.attr({dx:0,dy:0}),delete n2.textPath);this.added&&(n2.textCache="",this.renderer.buildText(n2));return this};E.prototype.shadow=function(b2,d2,h2){var f2=[],n2=this.element,F=this.oldShadowOptions,v2=this.parentGroup,e2=v2&&90===v2.rotation;v2={color:"#000000",offsetX:e2?-1:1,offsetY:e2?-1:1,opacity:.15,width:3};var w2=false,k2;true===b2?k2=v2:"object"===typeof b2&&(k2=H(v2,b2));k2&&(k2&&F&&l(k2,(function(b3,d3){b3!==F[d3]&&(w2=true)})),w2&&this.destroyShadows(),this.oldShadowOptions=k2);if(!k2)this.destroyShadows();else if(!this.shadows){v2=k2.opacity/k2.width;var E2=e2?"translate(".concat(k2.offsetY,", ").concat(k2.offsetX,")"):"translate(".concat(k2.offsetX,", ").concat(k2.offsetY,")");for(e2=1;e2<=k2.width;e2++){var a2=n2.cloneNode(false);var q2=2*k2.width+1-2*e2;p(a2,{stroke:b2.color||"#000000","stroke-opacity":v2*e2,"stroke-width":q2,transform:E2,fill:"none"});a2.setAttribute("class",(a2.getAttribute("class")||"")+" highcharts-shadow");h2&&(p(a2,"height",Math.max(p(a2,"height")-q2,0)),a2.cutHeight=q2);d2?d2.element.appendChild(a2):n2.parentNode&&n2.parentNode.insertBefore(a2,n2);f2.push(a2)}this.shadows=f2}return this};E.prototype.show=function(b2){void 0===b2&&(b2=true);return this.attr({visibility:b2?"inherit":"visible"})};E.prototype["stroke-widthSetter"]=function(b2,d2,h2){this[d2]=b2;h2.setAttribute(d2,b2)};E.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var d2=this.getStyle("stroke-width"),h2=0;if(d2.indexOf("px")===d2.length-2)h2=b(d2);else if(""!==d2){var f2=t.createElementNS(a,"rect");p(f2,{width:d2,"stroke-width":0});this.element.parentNode.appendChild(f2);h2=f2.getBBox().width;f2.parentNode.removeChild(f2)}return h2};E.prototype.symbolAttr=function(b2){var h2=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach((function(f2){h2[f2]=d(b2[f2],h2[f2])}));h2.attr({d:h2.renderer.symbols[h2.symbolName](h2.x,h2.y,h2.width,h2.height,h2)})};E.prototype.textSetter=function(b2){b2!==this.textStr&&(delete this.textPxLength,this.textStr=b2,this.added&&this.renderer.buildText(this))};E.prototype.titleSetter=function(b2){var h2=this.element,f2=h2.getElementsByTagName("title")[0]||t.createElementNS(this.SVG_NS,"title");h2.insertBefore?h2.insertBefore(f2,h2.firstChild):h2.appendChild(f2);f2.textContent=String(d(b2,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")};E.prototype.toFront=function(){var b2=this.element;b2.parentNode.appendChild(b2);return this};E.prototype.translate=function(b2,d2){return this.attr({translateX:b2,translateY:d2})};E.prototype.updateShadows=function(b2,d2,h2){var f2=this.shadows;if(f2)for(var l2=f2.length;l2--;)h2.call(f2[l2],"height"===b2?Math.max(d2-(f2[l2].cutHeight||0),0):"d"===b2?this.d:d2,b2,f2[l2])};E.prototype.updateTransform=function(){var b2=this.element,h2=this.matrix,f2=this.rotation;f2=void 0===f2?0:f2;var l2=this.scaleX,n2=this.scaleY,v2=this.translateX,e2=this.translateY;v2=["translate("+(void 0===v2?0:v2)+","+(void 0===e2?0:e2)+")"];D(h2)&&v2.push("matrix("+h2.join(",")+")");f2&&v2.push("rotate("+f2+" "+d(this.rotationOriginX,b2.getAttribute("x"),0)+" "+d(this.rotationOriginY,b2.getAttribute("y")||0)+")");(D(l2)||D(n2))&&v2.push("scale("+d(l2,1)+" "+d(n2,1)+")");v2.length&&!(this.text||this).textPath&&b2.setAttribute("transform",v2.join(" "))};E.prototype.visibilitySetter=function(b2,d2,h2){"inherit"===b2?h2.removeAttribute(d2):this[d2]!==b2&&h2.setAttribute(d2,b2);this[d2]=b2};E.prototype.xGetter=function(b2){"circle"===this.element.nodeName&&("x"===b2?b2="cx":"y"===b2&&(b2="cy"));return this._defaultGetter(b2)};E.prototype.zIndexSetter=function(d2,h2){var f2=this.renderer,l2=this.parentGroup,v2=(l2||f2).element||f2.box,n2=this.element;f2=v2===f2.box;var e2=false;var w2=this.added;var k2;D(d2)?(n2.setAttribute("data-z-index",d2),d2=+d2,this[h2]===d2&&(w2=false)):D(this[h2])&&n2.removeAttribute("data-z-index");this[h2]=d2;if(w2){(d2=this.zIndex)&&l2&&(l2.handleZ=true);h2=v2.childNodes;for(k2=h2.length-1;0<=k2&&!e2;k2--){l2=h2[k2];w2=l2.getAttribute("data-z-index");var E2=!D(w2);if(l2!==n2){if(0>d2&&E2&&!f2&&!k2)v2.insertBefore(n2,h2[k2]),e2=true;else if(b(w2)<=d2||E2&&(!D(d2)||0<=d2))v2.insertBefore(n2,h2[k2+1]||null),e2=true}}e2||(v2.insertBefore(n2,h2[f2?3:0]||null),e2=true)}return e2};return E}();c.prototype.strokeSetter=c.prototype.fillSetter;c.prototype.yGetter=c.prototype.xGetter;c.prototype.matrixSetter=c.prototype.rotationOriginXSetter=c.prototype.rotationOriginYSetter=c.prototype.rotationSetter=c.prototype.scaleXSetter=c.prototype.scaleYSetter=c.prototype.translateXSetter=c.prototype.translateYSetter=c.prototype.verticalAlignSetter=function(b2,d2){this[d2]=b2;this.doTransform=true};return c}));I(g,"Core/Renderer/RendererRegistry.js",[g["Core/Globals.js"]],(function(c){var g2;(function(g3){g3.rendererTypes={};var L;g3.getRendererType=function(c2){void 0===c2&&(c2=L);return g3.rendererTypes[c2]||g3.rendererTypes[L]};g3.registerRendererType=function(y,z,C){g3.rendererTypes[y]=z;if(!L||C)L=y,c.Renderer=z}})(g2||(g2={}));return g2}));I(g,"Core/Renderer/SVG/SVGLabel.js",[g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],(function(c,g2){var L=this&&this.__extends||function(){var c2=function(a,q){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,p){a2.__proto__=p}||function(a2,p){for(var k in p)p.hasOwnProperty(k)&&(a2[k]=p[k])};return c2(a,q)};return function(a,q){function m(){this.constructor=a}c2(a,q);a.prototype=null===q?Object.create(q):(m.prototype=q.prototype,new m)}}(),A=g2.defined,B=g2.extend,z=g2.isNumber,C=g2.merge,x=g2.pick,t=g2.removeEvent;return function(r){function a(q,m,p,k,e,D,c2,t2,g3,u){var n=r.call(this)||this;n.paddingLeftSetter=n.paddingSetter;n.paddingRightSetter=n.paddingSetter;n.init(q,"g");n.textStr=m;n.x=p;n.y=k;n.anchorX=D;n.anchorY=c2;n.baseline=g3;n.className=u;n.addClass("button"===u?"highcharts-no-tooltip":"highcharts-label");u&&n.addClass("highcharts-"+u);n.text=q.text(void 0,0,0,t2).attr({zIndex:1});var w;"string"===typeof e&&((w=/^url\((.*?)\)$/.test(e))||n.renderer.symbols[e])&&(n.symbolKey=e);n.bBox=a.emptyBBox;n.padding=3;n.baselineOffset=0;n.needsBox=q.styledMode||w;n.deferredAttr={};n.alignFactor=0;return n}L(a,r);a.prototype.alignSetter=function(a2){a2={left:0,center:.5,right:1}[a2];a2!==this.alignFactor&&(this.alignFactor=a2,this.bBox&&z(this.xSetting)&&this.attr({x:this.xSetting}))};a.prototype.anchorXSetter=function(a2,m){this.anchorX=a2;this.boxAttr(m,Math.round(a2)-this.getCrispAdjust()-this.xSetting)};a.prototype.anchorYSetter=function(a2,m){this.anchorY=a2;this.boxAttr(m,a2-this.ySetting)};a.prototype.boxAttr=function(a2,m){this.box?this.box.attr(a2,m):this.deferredAttr[a2]=m};a.prototype.css=function(q){if(q){var m={};q=C(q);a.textProps.forEach((function(a2){"undefined"!==typeof q[a2]&&(m[a2]=q[a2],delete q[a2])}));this.text.css(m);"fontSize"in m||"fontWeight"in m?this.updateTextPadding():("width"in m||"textOverflow"in m)&&this.updateBoxSize()}return c.prototype.css.call(this,q)};a.prototype.destroy=function(){t(this.element,"mouseenter");t(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());c.prototype.destroy.call(this)};a.prototype.fillSetter=function(a2,m){a2&&(this.needsBox=true);this.fill=a2;this.boxAttr(m,a2)};a.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var a2=this.padding,m=x(this.paddingLeft,a2);return{width:this.width,height:this.height,x:this.bBox.x-m,y:this.bBox.y-a2}};a.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};a.prototype.heightSetter=function(a2){this.heightSetting=a2};a.prototype.onAdd=function(){this.text.add(this);this.attr({text:x(this.textStr,""),x:this.x||0,y:this.y||0});this.box&&A(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};a.prototype.paddingSetter=function(a2,m){z(a2)?a2!==this[m]&&(this[m]=a2,this.updateTextPadding()):this[m]=void 0};a.prototype.rSetter=function(a2,m){this.boxAttr(m,a2)};a.prototype.shadow=function(a2){a2&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(a2));return this};a.prototype.strokeSetter=function(a2,m){this.stroke=a2;this.boxAttr(m,a2)};a.prototype["stroke-widthSetter"]=function(a2,m){a2&&(this.needsBox=true);this["stroke-width"]=a2;this.boxAttr(m,a2)};a.prototype["text-alignSetter"]=function(a2){this.textAlign=a2};a.prototype.textSetter=function(a2){"undefined"!==typeof a2&&this.text.attr({text:a2});this.updateTextPadding()};a.prototype.updateBoxSize=function(){var q=this.text,m=q.element.style,p={},k=this.padding,e=this.bBox=z(this.widthSetting)&&z(this.heightSetting)&&!this.textAlign||!A(q.textStr)?a.emptyBBox:q.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||e.height||0)+2*k;m=this.renderer.fontMetrics(m&&m.fontSize,q);this.baselineOffset=k+Math.min((this.text.firstLineMetrics||m).b,e.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-m.h)/2);this.needsBox&&!q.textPath&&(this.box||(q=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),q.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),q.add(this)),q=this.getCrispAdjust(),p.x=q,p.y=(this.baseline?-this.baselineOffset:0)+q,p.width=Math.round(this.width),p.height=Math.round(this.height),this.box.attr(B(p,this.deferredAttr)),this.deferredAttr={})};a.prototype.updateTextPadding=function(){var a2=this.text;if(!a2.textPath){this.updateBoxSize();var m=this.baseline?0:this.baselineOffset,p=x(this.paddingLeft,this.padding);A(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(p+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(p!==a2.x||m!==a2.y)a2.attr("x",p),a2.hasBoxWidthChanged&&(this.bBox=a2.getBBox(true)),"undefined"!==typeof m&&a2.attr("y",m);a2.x=p;a2.y=m}};a.prototype.widthSetter=function(a2){this.widthSetting=z(a2)?a2:void 0};a.prototype.getPaddedWidth=function(){var a2=this.padding,m=x(this.paddingLeft,a2);a2=x(this.paddingRight,a2);return(this.widthSetting||this.bBox.width||0)+m+a2};a.prototype.xSetter=function(a2){this.x=a2;this.alignFactor&&(a2-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=true);this.xSetting=Math.round(a2);this.attr("translateX",this.xSetting)};a.prototype.ySetter=function(a2){this.ySetting=this.y=Math.round(a2);this.attr("translateY",this.ySetting)};a.emptyBBox={width:0,height:0,x:0,y:0};a.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return a}(c)}));I(g,"Core/Renderer/SVG/Symbols.js",[g["Core/Utilities.js"]],(function(c){function g2(c2,t,r,a,q){var m=[];if(q){var p=q.start||0,k=C(q.r,r);r=C(q.r,a||r);var e=(q.end||0)-.001;a=q.innerR;var D=C(q.open,.001>Math.abs((q.end||0)-p-2*Math.PI)),G=Math.cos(p),g3=Math.sin(p),x=Math.cos(e),u=Math.sin(e);p=C(q.longArc,.001>e-p-Math.PI?0:1);m.push(["M",c2+k*G,t+r*g3],["A",k,r,0,p,C(q.clockwise,1),c2+k*x,t+r*u]);B(a)&&m.push(D?["M",c2+a*x,t+a*u]:["L",c2+a*x,t+a*u],["A",a,a,0,p,B(q.clockwise)?1-q.clockwise:0,c2+a*G,t+a*g3]);D||m.push(["Z"])}return m}function y(c2,t,r,a,q){return q&&q.r?A(c2,t,r,a,q):[["M",c2,t],["L",c2+r,t],["L",c2+r,t+a],["L",c2,t+a],["Z"]]}function A(c2,t,r,a,q){q=q&&q.r||0;return[["M",c2+q,t],["L",c2+r-q,t],["C",c2+r,t,c2+r,t,c2+r,t+q],["L",c2+r,t+a-q],["C",c2+r,t+a,c2+r,t+a,c2+r-q,t+a],["L",c2+q,t+a],["C",c2,t+a,c2,t+a,c2,t+a-q],["L",c2,t+q],["C",c2,t,c2,t,c2+q,t]]}var B=c.defined,z=c.isNumber,C=c.pick;return{arc:g2,callout:function(c2,t,r,a,q){var m=Math.min(q&&q.r||0,r,a),p=m+6,k=q&&q.anchorX;q=q&&q.anchorY||0;var e=A(c2,t,r,a,{r:m});if(!z(k))return e;c2+k>=r?q>t+p&&q<t+a-p?e.splice(3,1,["L",c2+r,q-6],["L",c2+r+6,q],["L",c2+r,q+6],["L",c2+r,t+a-m]):e.splice(3,1,["L",c2+r,a/2],["L",k,q],["L",c2+r,a/2],["L",c2+r,t+a-m]):0>=c2+k?q>t+p&&q<t+a-p?e.splice(7,1,["L",c2,q+6],["L",c2-6,q],["L",c2,q-6],["L",c2,t+m]):e.splice(7,1,["L",c2,a/2],["L",k,q],["L",c2,a/2],["L",c2,t+m]):q&&q>a&&k>c2+p&&k<c2+r-p?e.splice(5,1,["L",k+6,t+a],["L",k,t+a+6],["L",k-6,t+a],["L",c2+m,t+a]):q&&0>q&&k>c2+p&&k<c2+r-p&&e.splice(1,1,["L",k-6,t],["L",k,t-6],["L",k+6,t],["L",r-m,t]);return e},circle:function(c2,t,r,a){return g2(c2+r/2,t+a/2,r/2,a/2,{start:.5*Math.PI,end:2.5*Math.PI,open:false})},diamond:function(c2,t,r,a){return[["M",c2+r/2,t],["L",c2+r,t+a/2],["L",c2+r/2,t+a],["L",c2,t+a/2],["Z"]]},rect:y,roundedRect:A,square:y,triangle:function(c2,t,r,a){return[["M",c2+r/2,t],["L",c2+r,t+a],["L",c2,t+a],["Z"]]},"triangle-down":function(c2,t,r,a){return[["M",c2,t],["L",c2+r,t],["L",c2+r/2,t+a],["Z"]]}}}));I(g,"Core/Renderer/SVG/TextBuilder.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2,y){var L=g2.doc,B=g2.SVG_NS,z=g2.win,C=y.attr,x=y.extend,t=y.fireEvent,r=y.isString,a=y.objectEach,q=y.pick;return function(){function m(a2){var k=a2.styles;this.renderer=a2.renderer;this.svgElement=a2;this.width=a2.textWidth;this.textLineHeight=k&&k.lineHeight;this.textOutline=k&&k.textOutline;this.ellipsis=!(!k||"ellipsis"!==k.textOverflow);this.noWrap=!(!k||"nowrap"!==k.whiteSpace);this.fontSize=k&&k.fontSize}m.prototype.buildSVG=function(){var a2=this.svgElement,k=a2.element,e=a2.renderer,m2=q(a2.textStr,"").toString(),G=-1!==m2.indexOf("<"),t2=k.childNodes;e=this.width&&!a2.added&&e.box;var g3=/<br.*?>/g,u=[m2,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(u!==a2.textCache){a2.textCache=u;delete a2.actualWidth;for(u=t2.length;u--;)k.removeChild(t2[u]);G||this.ellipsis||this.width||a2.textPath||-1!==m2.indexOf(" ")&&(!this.noWrap||g3.test(m2))?""!==m2&&(e&&e.appendChild(k),m2=new c(m2),this.modifyTree(m2.nodes),m2.addToDOM(k),this.modifyDOM(),this.ellipsis&&-1!==(k.textContent||"").indexOf("…")&&a2.attr("title",this.unescapeEntities(a2.textStr||"",["&lt;","&gt;"])),e&&e.removeChild(k)):k.appendChild(L.createTextNode(this.unescapeEntities(m2)));r(this.textOutline)&&a2.applyTextOutline&&a2.applyTextOutline(this.textOutline)}};m.prototype.modifyDOM=function(){var a2=this,k=this.svgElement,e=C(k.element,"x");k.firstLineMetrics=void 0;for(var m2;m2=k.element.firstChild;)if(/^[\s\u200B]*$/.test(m2.textContent||" "))k.element.removeChild(m2);else break;[].forEach.call(k.element.querySelectorAll("tspan.highcharts-br"),(function(u,n){u.nextSibling&&u.previousSibling&&(0===n&&1===u.previousSibling.nodeType&&(k.firstLineMetrics=k.renderer.fontMetrics(void 0,u.previousSibling)),C(u,{dy:a2.getLineHeight(u.nextSibling),x:e}))}));var c2=this.width||0;if(c2){var q2=function(u,n){var w=u.textContent||"",f=w.replace(/([^\^])-/g,"$1- ").split(" "),l=!a2.noWrap&&(1<f.length||1<k.element.childNodes.length),d=a2.getLineHeight(n),b=0,h=k.actualWidth;if(a2.ellipsis)w&&a2.truncate(u,w,void 0,0,Math.max(0,c2-parseInt(a2.fontSize||12,10)),(function(b2,d2){return b2.substring(0,d2)+"…"}));else if(l){w=[];for(l=[];n.firstChild&&n.firstChild!==u;)l.push(n.firstChild),n.removeChild(n.firstChild);for(;f.length;)f.length&&!a2.noWrap&&0<b&&(w.push(u.textContent||""),u.textContent=f.join(" ").replace(/- /g,"-")),a2.truncate(u,void 0,f,0===b?h||0:0,c2,(function(b2,d2){return f.slice(0,d2).join(" ").replace(/- /g,"-")})),h=k.actualWidth,b++;l.forEach((function(b2){n.insertBefore(b2,u)}));w.forEach((function(b2){n.insertBefore(L.createTextNode(b2),u);b2=L.createElementNS(B,"tspan");b2.textContent="​";C(b2,{dy:d,x:e});n.insertBefore(b2,u)}))}},r2=function(e2){[].slice.call(e2.childNodes).forEach((function(n){n.nodeType===z.Node.TEXT_NODE?q2(n,e2):(-1!==n.className.baseVal.indexOf("highcharts-br")&&(k.actualWidth=0),r2(n))}))};r2(k.element)}};m.prototype.getLineHeight=function(a2){var k;a2=a2.nodeType===z.Node.TEXT_NODE?a2.parentElement:a2;this.renderer.styledMode||(k=a2&&/(px|em)$/.test(a2.style.fontSize)?a2.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(k,a2||this.svgElement.element).h};m.prototype.modifyTree=function(a2){var k=this,e=function(m2,p){var c2=m2.attributes;c2=void 0===c2?{}:c2;var q2=m2.children,u=m2.style;u=void 0===u?{}:u;var n=m2.tagName,w=k.renderer.styledMode;if("b"===n||"strong"===n)w?c2["class"]="highcharts-strong":u.fontWeight="bold";else if("i"===n||"em"===n)w?c2["class"]="highcharts-emphasized":u.fontStyle="italic";u&&u.color&&(u.fill=u.color);"br"===n?(c2["class"]="highcharts-br",m2.textContent="​",(p=a2[p+1])&&p.textContent&&(p.textContent=p.textContent.replace(/^ +/gm,""))):"a"===n&&q2&&q2.some((function(f){return"#text"===f.tagName}))&&(m2.children=[{children:q2,tagName:"tspan"}]);"#text"!==n&&"a"!==n&&(m2.tagName="tspan");x(m2,{attributes:c2,style:u});q2&&q2.filter((function(f){return"#text"!==f.tagName})).forEach(e)};a2.forEach(e);t(this.svgElement,"afterModifyTree",{nodes:a2})};m.prototype.truncate=function(a2,k,e,m2,c2,q2){var p=this.svgElement,u=p.renderer,n=p.rotation,w=[],f=e?1:0,l=(k||e||"").length,d=l,b,h=function(b2,d2){d2=d2||b2;var h2=a2.parentNode;if(h2&&"undefined"===typeof w[d2])if(h2.getSubStringLength)try{w[d2]=m2+h2.getSubStringLength(0,e?d2+1:d2)}catch(O){}else u.getSpanWidth&&(a2.textContent=q2(k||e,b2),w[d2]=m2+u.getSpanWidth(p,a2));return w[d2]};p.rotation=0;var v=h(a2.textContent.length);if(m2+v>c2){for(;f<=l;)d=Math.ceil((f+l)/2),e&&(b=q2(e,d)),v=h(d,b&&b.length-1),f===l?f=l+1:v>c2?l=d-1:f=d;0===l?a2.textContent="":k&&l===k.length-1||(a2.textContent=b||q2(k||e,d))}e&&e.splice(0,d);p.actualWidth=v;p.rotation=n};m.prototype.unescapeEntities=function(m2,k){a(this.renderer.escapes,(function(e,a2){k&&-1!==k.indexOf(e)||(m2=m2.toString().replace(new RegExp(e,"g"),a2))}));return m2};return m}()}));I(g,"Core/Renderer/SVG/SVGRenderer.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Renderer/SVG/SVGLabel.js"],g["Core/Renderer/SVG/Symbols.js"],g["Core/Renderer/SVG/TextBuilder.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C,x,t){var r=y.charts,a=y.deg2rad,q=y.doc,m=y.isFirefox,p=y.isMS,k=y.isWebKit,e=y.noop,D=y.SVG_NS,G=y.symbolSizes,H=y.win,K=t.addEvent,u=t.attr,n=t.createElement,w=t.css,f=t.defined,l=t.destroyObjectProperties,d=t.extend,b=t.isArray,h=t.isNumber,v=t.isObject,E=t.isString,J=t.merge,M=t.pick,O=t.pInt,P=t.uniqueKey,T;y=function(){function F(b2,d2,h2,f2,l2,n2,v2){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(b2,d2,h2,f2,l2,n2,v2)}F.prototype.init=function(b2,d2,h2,f2,l2,n2,v2){var F2=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),e2=F2.element;v2||F2.css(this.getStyle(f2));b2.appendChild(e2);u(b2,"dir","ltr");-1===b2.innerHTML.indexOf("xmlns")&&u(e2,"xmlns",this.SVG_NS);this.isSVG=true;this.box=e2;this.boxWrapper=F2;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(q.createTextNode("Created with Highcharts 10.3.3"));this.defs=this.createElement("defs").add();this.allowHTML=n2;this.forExport=l2;this.styledMode=v2;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(d2,h2,false);var a2;m&&b2.getBoundingClientRect&&(d2=function(){w(b2,{left:0,top:0});a2=b2.getBoundingClientRect();w(b2,{left:Math.ceil(a2.left)-a2.left+"px",top:Math.ceil(a2.top)-a2.top+"px"})},d2(),this.unSubPixelFix=K(H,"resize",d2))};F.prototype.definition=function(b2){return new c([b2]).addToDOM(this.defs.element)};F.prototype.getReferenceURL=function(){if((m||k)&&q.getElementsByTagName("base").length){if(!f(T)){var b2=P();b2=new c([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:b2},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(b2,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(q.body);w(b2,{position:"fixed",top:0,left:0,zIndex:9e5});var d2=q.elementFromPoint(6,6);T="hitme"===(d2&&d2.id);q.body.removeChild(b2)}if(T)return H.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};F.prototype.getStyle=function(b2){return this.style=d({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},b2)};F.prototype.setStyle=function(b2){this.boxWrapper.css(this.getStyle(b2))};F.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};F.prototype.destroy=function(){var b2=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();l(this.gradients||{});this.gradients=null;b2&&(this.defs=b2.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};F.prototype.createElement=function(b2){var d2=new this.Element;d2.init(this,b2);return d2};F.prototype.getRadialAttr=function(b2,d2){return{cx:b2[0]-b2[2]/2+(d2.cx||0)*b2[2],cy:b2[1]-b2[2]/2+(d2.cy||0)*b2[2],r:(d2.r||0)*b2[2]}};F.prototype.buildText=function(b2){new x(b2).buildSVG()};F.prototype.getContrast=function(b2){b2=g2.parse(b2).rgba.map((function(b3){b3/=255;return.03928>=b3?b3/12.92:Math.pow((b3+.055)/1.055,2.4)}));b2=.2126*b2[0]+.7152*b2[1]+.0722*b2[2];return 1.05/(b2+.05)>(b2+.05)/.05?"#FFFFFF":"#000000"};F.prototype.button=function(b2,h2,f2,l2,n2,F2,e2,a2,w2,k2){void 0===n2&&(n2={});var E2=this.label(b2,h2,f2,w2,void 0,void 0,k2,void 0,"button"),Q=this.styledMode;b2=n2.states||{};var N=0;n2=J(n2);delete n2.states;var m2=J({color:"#333333",cursor:"pointer",fontWeight:"normal"},n2.style);delete n2.style;var u2=c.filterUserAttributes(n2);E2.attr(J({padding:8,r:2},u2));if(!Q){u2=J({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},u2);F2=J(u2,{fill:"#e6e6e6"},c.filterUserAttributes(F2||b2.hover||{}));var q2=F2.style;delete F2.style;e2=J(u2,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},c.filterUserAttributes(e2||b2.select||{}));var D2=e2.style;delete e2.style;a2=J(u2,{style:{color:"#cccccc"}},c.filterUserAttributes(a2||b2.disabled||{}));var r2=a2.style;delete a2.style}K(E2.element,p?"mouseover":"mouseenter",(function(){3!==N&&E2.setState(1)}));K(E2.element,p?"mouseout":"mouseleave",(function(){3!==N&&E2.setState(N)}));E2.setState=function(b3){1!==b3&&(E2.state=N=b3);E2.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][b3||0]);Q||(E2.attr([u2,F2,e2,a2][b3||0]),b3=[m2,q2,D2,r2][b3||0],v(b3)&&E2.css(b3))};Q||(E2.attr(u2).css(d({cursor:"default"},m2)),k2&&E2.text.css({pointerEvents:"none"}));return E2.on("touchstart",(function(b3){return b3.stopPropagation()})).on("click",(function(b3){3!==N&&l2.call(E2,b3)}))};F.prototype.crispLine=function(b2,d2,h2){void 0===h2&&(h2="round");var l2=b2[0],n2=b2[1];f(l2[1])&&l2[1]===n2[1]&&(l2[1]=n2[1]=Math[h2](l2[1])-d2%2/2);f(l2[2])&&l2[2]===n2[2]&&(l2[2]=n2[2]=Math[h2](l2[2])+d2%2/2);return b2};F.prototype.path=function(h2){var f2=this.styledMode?{}:{fill:"none"};b(h2)?f2.d=h2:v(h2)&&d(f2,h2);return this.createElement("path").attr(f2)};F.prototype.circle=function(b2,d2,h2){b2=v(b2)?b2:"undefined"===typeof b2?{}:{x:b2,y:d2,r:h2};d2=this.createElement("circle");d2.xSetter=d2.ySetter=function(b3,d3,h3){h3.setAttribute("c"+d3,b3)};return d2.attr(b2)};F.prototype.arc=function(b2,d2,h2,f2,l2,n2){v(b2)?(f2=b2,d2=f2.y,h2=f2.r,b2=f2.x):f2={innerR:f2,start:l2,end:n2};b2=this.symbol("arc",b2,d2,h2,h2,f2);b2.r=h2;return b2};F.prototype.rect=function(b2,d2,h2,f2,l2,n2){l2=v(b2)?b2.r:l2;var F2=this.createElement("rect");b2=v(b2)?b2:"undefined"===typeof b2?{}:{x:b2,y:d2,width:Math.max(h2,0),height:Math.max(f2,0)};this.styledMode||("undefined"!==typeof n2&&(b2["stroke-width"]=n2,b2=F2.crisp(b2)),b2.fill="none");l2&&(b2.r=l2);F2.rSetter=function(b3,d3,h3){F2.r=b3;u(h3,{rx:b3,ry:b3})};F2.rGetter=function(){return F2.r||0};return F2.attr(b2)};F.prototype.setSize=function(b2,d2,h2){this.width=b2;this.height=d2;this.boxWrapper.animate({width:b2,height:d2},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:M(h2,true)?void 0:0});this.alignElements()};F.prototype.g=function(b2){var d2=this.createElement("g");return b2?d2.attr({class:"highcharts-"+b2}):d2};F.prototype.image=function(b2,d2,f2,l2,n2,v2){var F2={preserveAspectRatio:"none"},e2=function(b3,d3){b3.setAttributeNS?b3.setAttributeNS("http://www.w3.org/1999/xlink","href",d3):b3.setAttribute("hc-svg-href",d3)};h(d2)&&(F2.x=d2);h(f2)&&(F2.y=f2);h(l2)&&(F2.width=l2);h(n2)&&(F2.height=n2);var a2=this.createElement("image").attr(F2);d2=function(d3){e2(a2.element,b2);v2.call(a2,d3)};v2?(e2(a2.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),f2=new H.Image,K(f2,"load",d2),f2.src=b2,f2.complete&&d2({})):e2(a2.element,b2);return a2};F.prototype.symbol=function(b2,h2,l2,v2,F2,e2){var a2=this,k2=/^url\((.*?)\)$/,E2=k2.test(b2),N=!E2&&(this.symbols[b2]?b2:"circle"),m2=N&&this.symbols[N],Q;if(m2){"number"===typeof h2&&(Q=m2.call(this.symbols,Math.round(h2||0),Math.round(l2||0),v2||0,F2||0,e2));var p2=this.path(Q);a2.styledMode||p2.attr("fill","none");d(p2,{symbolName:N||void 0,x:h2,y:l2,width:v2,height:F2});e2&&d(p2,e2)}else if(E2){var c2=b2.match(k2)[1];var J2=p2=this.image(c2);J2.imgwidth=M(G[c2]&&G[c2].width,e2&&e2.width);J2.imgheight=M(G[c2]&&G[c2].height,e2&&e2.height);var D2=function(b3){return b3.attr({width:b3.width,height:b3.height})};["width","height"].forEach((function(b3){J2[b3+"Setter"]=function(b4,d2){this[d2]=b4;b4=this.alignByTranslate;var h3=this.element,l3=this.width,n2=this.height,v3=this.imgwidth,F3=this.imgheight,a3=this["img"+d2];if(f(a3)){var w2=1;e2&&"within"===e2.backgroundSize&&l3&&n2?(w2=Math.min(l3/v3,n2/F3),a3=Math.round(a3*w2),u(h3,{width:Math.round(v3*w2),height:Math.round(F3*w2)})):h3&&h3.setAttribute(d2,a3);b4||this.translate(((l3||0)-a3*w2)/2,((n2||0)-a3*w2)/2)}}}));f(h2)&&J2.attr({x:h2,y:l2});J2.isImg=true;f(J2.imgwidth)&&f(J2.imgheight)?D2(J2):(J2.attr({width:0,height:0}),n("img",{onload:function(){var b3=r[a2.chartIndex];0===this.width&&(w(this,{position:"absolute",top:"-999em"}),q.body.appendChild(this));G[c2]={width:this.width,height:this.height};J2.imgwidth=this.width;J2.imgheight=this.height;J2.element&&D2(J2);this.parentNode&&this.parentNode.removeChild(this);a2.imgCount--;if(!a2.imgCount&&b3&&!b3.hasLoaded)b3.onload()},src:c2}),this.imgCount++)}return p2};F.prototype.clipRect=function(b2,d2,h2,f2){var l2=P()+"-",n2=this.createElement("clipPath").attr({id:l2}).add(this.defs);b2=this.rect(b2,d2,h2,f2,0).add(n2);b2.id=l2;b2.clipPath=n2;b2.count=0;return b2};F.prototype.text=function(b2,d2,h2,l2){var n2={};if(l2&&(this.allowHTML||!this.forExport))return this.html(b2,d2,h2);n2.x=Math.round(d2||0);h2&&(n2.y=Math.round(h2));f(b2)&&(n2.text=b2);b2=this.createElement("text").attr(n2);if(!l2||this.forExport&&!this.allowHTML)b2.xSetter=function(b3,d3,h3){for(var f2=h3.getElementsByTagName("tspan"),l3=h3.getAttribute(d3),n3=0,v2;n3<f2.length;n3++)v2=f2[n3],v2.getAttribute(d3)===l3&&v2.setAttribute(d3,b3);h3.setAttribute(d3,b3)};return b2};F.prototype.fontMetrics=function(b2,d2){b2=!this.styledMode&&/px/.test(b2)||!H.getComputedStyle?b2||d2&&d2.style&&d2.style.fontSize||this.style&&this.style.fontSize:d2&&B.prototype.getStyle.call(d2,"font-size");b2=/px/.test(b2)?O(b2):12;d2=24>b2?b2+3:Math.round(1.2*b2);return{h:d2,b:Math.round(.8*d2),f:b2}};F.prototype.rotCorr=function(b2,d2,h2){var f2=b2;d2&&h2&&(f2=Math.max(f2*Math.cos(d2*a),4));return{x:-b2/3*Math.sin(d2*a),y:f2}};F.prototype.pathToSegments=function(b2){for(var d2=[],f2=[],l2={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},n2=0;n2<b2.length;n2++)E(f2[0])&&h(b2[n2])&&f2.length===l2[f2[0].toUpperCase()]&&b2.splice(n2,0,f2[0].replace("M","L").replace("m","l")),"string"===typeof b2[n2]&&(f2.length&&d2.push(f2.slice(0)),f2.length=0),f2.push(b2[n2]);d2.push(f2.slice(0));return d2};F.prototype.label=function(b2,d2,h2,f2,l2,n2,v2,F2,e2){return new z(this,b2,d2,h2,f2,l2,n2,v2,F2,e2)};F.prototype.alignElements=function(){this.alignedObjects.forEach((function(b2){return b2.align()}))};return F}();d(y.prototype,{Element:B,SVG_NS:D,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:C,draw:e});A.registerRendererType("svg",y,true);return y}));I(g,"Core/Renderer/HTML/HTMLElement.js",[g["Core/Globals.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],(function(c,g2,y){var L=this&&this.__extends||function(){var a2=function(k,e){a2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e2,a3){e2.__proto__=a3}||function(e2,a3){for(var k2 in a3)a3.hasOwnProperty(k2)&&(e2[k2]=a3[k2])};return a2(k,e)};return function(k,e){function m2(){this.constructor=k}a2(k,e);k.prototype=null===e?Object.create(e):(m2.prototype=e.prototype,new m2)}}(),B=c.isFirefox,z=c.isMS,C=c.isWebKit,x=c.win,t=y.css,r=y.defined,a=y.extend,q=y.pick,m=y.pInt;return function(p){function k(){return null!==p&&p.apply(this,arguments)||this}L(k,p);k.compose=function(e){if(-1===k.composedClasses.indexOf(e)){k.composedClasses.push(e);var a2=k.prototype,m2=e.prototype;m2.getSpanCorrection=a2.getSpanCorrection;m2.htmlCss=a2.htmlCss;m2.htmlGetBBox=a2.htmlGetBBox;m2.htmlUpdateTransform=a2.htmlUpdateTransform;m2.setSpanRotation=a2.setSpanRotation}return e};k.prototype.getSpanCorrection=function(e,a2,k2){this.xCorr=-e*k2;this.yCorr=-a2};k.prototype.htmlCss=function(e){var k2="SPAN"===this.element.tagName&&e&&"width"in e,m2=q(k2&&e.width,void 0);if(k2){delete e.width;this.textWidth=m2;var p2=true}e&&"ellipsis"===e.textOverflow&&(e.whiteSpace="nowrap",e.overflow="hidden");this.styles=a(this.styles,e);t(this.element,e);p2&&this.htmlUpdateTransform();return this};k.prototype.htmlGetBBox=function(){var e=this.element;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}};k.prototype.htmlUpdateTransform=function(){if(this.added){var e=this.renderer,a2=this.element,k2=this.translateX||0,p2=this.translateY||0,c2=this.x||0,u=this.y||0,n=this.textAlign||"left",w={left:0,center:.5,right:1}[n],f=this.styles;f=f&&f.whiteSpace;t(a2,{marginLeft:k2,marginTop:p2});!e.styledMode&&this.shadows&&this.shadows.forEach((function(b2){t(b2,{marginLeft:k2+1,marginTop:p2+1})}));this.inverted&&[].forEach.call(a2.childNodes,(function(b2){e.invertChild(b2,a2)}));if("SPAN"===a2.tagName){var l=this.rotation,d=this.textWidth&&m(this.textWidth),b=[l,n,a2.innerHTML,this.textWidth,this.textAlign].join(),h=void 0;h=false;if(d!==this.oldTextWidth){if(this.textPxLength)var v=this.textPxLength;else t(a2,{width:"",whiteSpace:f||"nowrap"}),v=a2.offsetWidth;(d>this.oldTextWidth||v>d)&&(/[ \-]/.test(a2.textContent||a2.innerText)||"ellipsis"===a2.style.textOverflow)&&(t(a2,{width:v>d||l?d+"px":"auto",display:"block",whiteSpace:f||"normal"}),this.oldTextWidth=d,h=true)}this.hasBoxWidthChanged=h;b!==this.cTT&&(h=e.fontMetrics(a2.style.fontSize,a2).b,!r(l)||l===(this.oldRotation||0)&&n===this.oldAlign||this.setSpanRotation(l,w,h),this.getSpanCorrection(!r(l)&&this.textPxLength||a2.offsetWidth,h,w,l,n));t(a2,{left:c2+(this.xCorr||0)+"px",top:u+(this.yCorr||0)+"px"});this.cTT=b;this.oldRotation=l;this.oldAlign=n}}else this.alignOnAdd=true};k.prototype.setSpanRotation=function(e,a2,k2){var m2={},p2=z&&!/Edge/.test(x.navigator.userAgent)?"-ms-transform":C?"-webkit-transform":B?"MozTransform":x.opera?"-o-transform":void 0;p2&&(m2[p2]=m2.transform="rotate("+e+"deg)",m2[p2+(B?"Origin":"-origin")]=m2.transformOrigin=100*a2+"% "+k2+"px",t(this.element,m2))};k.composedClasses=[];return k}(g2)}));I(g,"Core/Renderer/HTML/HTMLRenderer.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Renderer/SVG/SVGRenderer.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){var L=this&&this.__extends||function(){var c2=function(a,q){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,p){a2.__proto__=p}||function(a2,p){for(var k in p)p.hasOwnProperty(k)&&(a2[k]=p[k])};return c2(a,q)};return function(a,q){function m(){this.constructor=a}c2(a,q);a.prototype=null===q?Object.create(q):(m.prototype=q.prototype,new m)}}(),z=A.attr,C=A.createElement,x=A.extend,t=A.pick;return function(r){function a(){return null!==r&&r.apply(this,arguments)||this}L(a,r);a.compose=function(c2){-1===a.composedClasses.indexOf(c2)&&(a.composedClasses.push(c2),c2.prototype.html=a.prototype.html);return c2};a.prototype.html=function(a2,m,p){var k=this.createElement("span"),e=k.element,q=k.renderer,r2=q.isSVG,H=function(e2,a3){["opacity","visibility"].forEach((function(n){e2[n+"Setter"]=function(w,f,l){var d=e2.div?e2.div.style:a3;g2.prototype[n+"Setter"].call(this,w,f,l);d&&(d[f]=w)}}));e2.addedSetters=true};k.textSetter=function(e2){e2!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,c.setElementHTML(this.element,t(e2,"")),this.textStr=e2,k.doTransform=true)};r2&&H(k,k.element.style);k.xSetter=k.ySetter=k.alignSetter=k.rotationSetter=function(e2,a3){"align"===a3?k.alignValue=k.textAlign=e2:k[a3]=e2;k.doTransform=true};k.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=false)};k.attr({text:a2,x:Math.round(m),y:Math.round(p)}).css({position:"absolute"});q.styledMode||k.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});e.style.whiteSpace="nowrap";k.css=k.htmlCss;r2&&(k.add=function(a3){var m2=q.box.parentNode,n=[];if(this.parentGroup=a3){var w=a3.div;if(!w){for(;a3;)n.push(a3),a3=a3.parentGroup;n.reverse().forEach((function(f){function l(b2,d2){f[d2]=b2;"translateX"===d2?h.left=b2+"px":h.top=b2+"px";f.doTransform=true}var d=z(f.element,"class"),b=f.styles||{};w=f.div=f.div||C("div",d?{className:d}:void 0,{position:"absolute",left:(f.translateX||0)+"px",top:(f.translateY||0)+"px",display:f.display,opacity:f.opacity,cursor:b.cursor,pointerEvents:b.pointerEvents,visibility:f.visibility},w||m2);var h=w.style;x(f,{classSetter:function(b2){return function(d2){this.element.setAttribute("class",d2);b2.className=d2}}(w),on:function(){n[0].div&&k.on.apply({element:n[0].div,onEvents:f.onEvents},arguments);return f},translateXSetter:l,translateYSetter:l});f.addedSetters||H(f)}))}}else w=m2;w.appendChild(e);k.added=true;k.alignOnAdd&&k.htmlUpdateTransform();return k});return k};a.composedClasses=[];return a}(y)}));I(g,"Core/Axis/AxisDefaults.js",[],(function(){var c;(function(c2){c2.defaultXAxisOptions={alignTicks:true,allowDecimals:void 0,panningEnabled:true,zIndex:2,zoomEnabled:true,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:false},second:{main:"%H:%M:%S",range:false},minute:{main:"%H:%M",range:false},hour:{main:"%H:%M",range:false},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:false,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:true,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:false,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:false,reversed:void 0,reversedStacks:false,showEmpty:true,showFirstLabel:true,showLastLabel:true,startOfWeek:1,startOnTick:false,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:false,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:true,visible:true,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};c2.defaultYAxisOptions={reversedStacks:true,endOnTick:true,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:true,labels:{x:-8},startOnTick:true,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:false,enabled:false,crop:true,overflow:"justify",formatter:function(){var c3=this.axis.chart.numberFormatter;return c3(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};c2.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};c2.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};c2.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};c2.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(c||(c={}));return c}));I(g,"Core/Foundation.js",[g["Core/Utilities.js"]],(function(c){var g2=c.addEvent,y=c.isFunction,A=c.objectEach,B=c.removeEvent,z;(function(c2){c2.registerEventOptions=function(c3,t){c3.eventOptions=c3.eventOptions||{};A(t.events,(function(r,a){c3.eventOptions[a]!==r&&(c3.eventOptions[a]&&(B(c3,a,c3.eventOptions[a]),delete c3.eventOptions[a]),y(r)&&(c3.eventOptions[a]=r,g2(c3,a,r)))}))}})(z||(z={}));return z}));I(g,"Core/Axis/Tick.js",[g["Core/FormatUtilities.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2,y){var L=g2.deg2rad,B=y.clamp,z=y.correctFloat,C=y.defined,x=y.destroyObjectProperties,t=y.extend,r=y.fireEvent,a=y.isNumber,q=y.merge,m=y.objectEach,p=y.pick;g2=function(){function k(e,a2,k2,m2,p2){this.isNewLabel=this.isNew=true;this.axis=e;this.pos=a2;this.type=k2||"";this.parameters=p2||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;r(this,"init");k2||m2||this.addLabel()}k.prototype.addLabel=function(){var e=this,k2=e.axis,m2=k2.options,q2=k2.chart,g3=k2.categories,u=k2.logarithmic,n=k2.names,w=e.pos,f=p(e.options&&e.options.labels,m2.labels),l=k2.tickPositions,d=w===l[0],b=w===l[l.length-1],h=(!f.step||1===f.step)&&1===k2.tickInterval;l=l.info;var v=e.label,E;g3=this.parameters.category||(g3?p(g3[w],n[w],w):w);u&&a(g3)&&(g3=z(u.lin2log(g3)));if(k2.dateTime)if(l){var J=q2.time.resolveDTLFormat(m2.dateTimeLabelFormats[!m2.grid&&l.higherRanks[w]||l.unitName]);var M=J.main}else a(g3)&&(M=k2.dateTime.getXDateFormat(g3,m2.dateTimeLabelFormats||{}));e.isFirst=d;e.isLast=b;var O={axis:k2,chart:q2,dateTimeLabelFormat:M,isFirst:d,isLast:b,pos:w,tick:e,tickPositionInfo:l,value:g3};r(this,"labelFormat",O);var P=function(b2){return f.formatter?f.formatter.call(b2,b2):f.format?(b2.text=k2.defaultLabelFormatter.call(b2,b2),c.format(f.format,b2,q2)):k2.defaultLabelFormatter.call(b2,b2)};m2=P.call(O,O);var T=J&&J.list;e.shortenLabel=T?function(){for(E=0;E<T.length;E++)if(t(O,{dateTimeLabelFormat:T[E]}),v.attr({text:P.call(O,O)}),v.getBBox().width<k2.getSlotWidth(e)-2*f.padding)return;v.attr({text:""})}:void 0;h&&k2._addedPlotLB&&e.moveLabel(m2,f);C(v)||e.movedLabel?v&&v.textStr!==m2&&!h&&(!v.textWidth||f.style.width||v.styles.width||v.css({width:null}),v.attr({text:m2}),v.textPxLength=v.getBBox().width):(e.label=v=e.createLabel({x:0,y:0},m2,f),e.rotation=0)};k.prototype.createLabel=function(e,a2,k2){var m2=this.axis,p2=m2.chart;if(e=C(a2)&&k2.enabled?p2.renderer.text(a2,e.x,e.y,k2.useHTML).add(m2.labelGroup):null)p2.styledMode||e.css(q(k2.style)),e.textPxLength=e.getBBox().width;return e};k.prototype.destroy=function(){x(this,this.axis)};k.prototype.getPosition=function(e,a2,k2,m2){var p2=this.axis,u=p2.chart,n=m2&&u.oldChartHeight||u.chartHeight;e={x:e?z(p2.translate(a2+k2,void 0,void 0,m2)+p2.transB):p2.left+p2.offset+(p2.opposite?(m2&&u.oldChartWidth||u.chartWidth)-p2.right-p2.left:0),y:e?n-p2.bottom+p2.offset-(p2.opposite?p2.height:0):z(n-p2.translate(a2+k2,void 0,void 0,m2)-p2.transB)};e.y=B(e.y,-1e5,1e5);r(this,"afterGetPosition",{pos:e});return e};k.prototype.getLabelPosition=function(e,a2,k2,m2,p2,u,n,w){var f=this.axis,l=f.transA,d=f.isLinked&&f.linkedParent?f.linkedParent.reversed:f.reversed,b=f.staggerLines,h=f.tickRotCorr||{x:0,y:0},v=m2||f.reserveSpaceDefault?0:-f.labelOffset*("center"===f.labelAlign?.5:1),E={};k2=0===f.side?k2.rotation?-8:-k2.getBBox().height:2===f.side?h.y+8:Math.cos(k2.rotation*L)*(h.y-k2.getBBox(false,0).height/2);C(p2.y)&&(k2=0===f.side&&f.horiz?p2.y+k2:p2.y);e=e+p2.x+v+h.x-(u&&m2?u*l*(d?-1:1):0);a2=a2+k2-(u&&!m2?u*l*(d?1:-1):0);b&&(m2=n/(w||1)%b,f.opposite&&(m2=b-m2-1),a2+=f.labelOffset/b*m2);E.x=e;E.y=Math.round(a2);r(this,"afterGetLabelPosition",{pos:E,tickmarkOffset:u,index:n});return E};k.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};k.prototype.getMarkPath=function(e,a2,k2,m2,p2,u){return u.crispLine([["M",e,a2],["L",e+(p2?0:-k2),a2+(p2?k2:0)]],m2)};k.prototype.handleOverflow=function(e){var a2=this.axis,k2=a2.options.labels,m2=e.x,c2=a2.chart.chartWidth,u=a2.chart.spacing,n=p(a2.labelLeft,Math.min(a2.pos,u[3]));u=p(a2.labelRight,Math.max(a2.isRadial?0:a2.pos+a2.len,c2-u[1]));var w=this.label,f=this.rotation,l={left:0,center:.5,right:1}[a2.labelAlign||w.attr("align")],d=w.getBBox().width,b=a2.getSlotWidth(this),h={},v=b,E=1,q2;if(f||"justify"!==k2.overflow)0>f&&m2-l*d<n?q2=Math.round(m2/Math.cos(f*L)-n):0<f&&m2+l*d>u&&(q2=Math.round((c2-m2)/Math.cos(f*L)));else if(c2=m2+(1-l)*d,m2-l*d<n?v=e.x+v*(1-l)-n:c2>u&&(v=u-e.x+v*l,E=-1),v=Math.min(b,v),v<b&&"center"===a2.labelAlign&&(e.x+=E*(b-v-l*(b-Math.min(d,v)))),d>v||a2.autoRotation&&(w.styles||{}).width)q2=v;q2&&(this.shortenLabel?this.shortenLabel():(h.width=Math.floor(q2)+"px",(k2.style||{}).textOverflow||(h.textOverflow="ellipsis"),w.css(h)))};k.prototype.moveLabel=function(a2,k2){var e=this,p2=e.label,c2=e.axis,u=c2.reversed,n=false;p2&&p2.textStr===a2?(e.movedLabel=p2,n=true,delete e.label):m(c2.ticks,(function(f){n||f.isNew||f===e||!f.label||f.label.textStr!==a2||(e.movedLabel=f.label,n=true,f.labelPos=e.movedLabel.xy,delete f.label)}));if(!n&&(e.labelPos||p2)){var w=e.labelPos||p2.xy;p2=c2.horiz?u?0:c2.width+c2.left:w.x;c2=c2.horiz?w.y:u?c2.width+c2.left:0;e.movedLabel=e.createLabel({x:p2,y:c2},a2,k2);e.movedLabel&&e.movedLabel.attr({opacity:0})}};k.prototype.render=function(a2,k2,m2){var e=this.axis,c2=e.horiz,u=this.pos,n=p(this.tickmarkOffset,e.tickmarkOffset);u=this.getPosition(c2,u,n,k2);n=u.x;var w=u.y;e=c2&&n===e.pos+e.len||!c2&&w===e.pos?-1:1;c2=p(m2,this.label&&this.label.newOpacity,1);m2=p(m2,1);this.isActive=true;this.renderGridLine(k2,m2,e);this.renderMark(u,m2,e);this.renderLabel(u,k2,c2,a2);this.isNew=false;r(this,"afterRender")};k.prototype.renderGridLine=function(e,a2,k2){var m2=this.axis,c2=m2.options,u={},n=this.pos,w=this.type,f=p(this.tickmarkOffset,m2.tickmarkOffset),l=m2.chart.renderer,d=this.gridLine,b=c2.gridLineWidth,h=c2.gridLineColor,v=c2.gridLineDashStyle;"minor"===this.type&&(b=c2.minorGridLineWidth,h=c2.minorGridLineColor,v=c2.minorGridLineDashStyle);d||(m2.chart.styledMode||(u.stroke=h,u["stroke-width"]=b||0,u.dashstyle=v),w||(u.zIndex=1),e&&(a2=0),this.gridLine=d=l.path().attr(u).addClass("highcharts-"+(w?w+"-":"")+"grid-line").add(m2.gridGroup));if(d&&(k2=m2.getPlotLinePath({value:n+f,lineWidth:d.strokeWidth()*k2,force:"pass",old:e,acrossPanes:false})))d[e||this.isNew?"attr":"animate"]({d:k2,opacity:a2})};k.prototype.renderMark=function(a2,k2,m2){var e=this.axis,c2=e.options,u=e.chart.renderer,n=this.type,w=e.tickSize(n?n+"Tick":"tick"),f=a2.x;a2=a2.y;var l=p(c2["minor"!==n?"tickWidth":"minorTickWidth"],!n&&e.isXAxis?1:0);c2=c2["minor"!==n?"tickColor":"minorTickColor"];var d=this.mark,b=!d;w&&(e.opposite&&(w[0]=-w[0]),d||(this.mark=d=u.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(e.axisGroup),e.chart.styledMode||d.attr({stroke:c2,"stroke-width":l})),d[b?"attr":"animate"]({d:this.getMarkPath(f,a2,w[0],d.strokeWidth()*m2,e.horiz,u),opacity:k2}))};k.prototype.renderLabel=function(e,k2,m2,c2){var q2=this.axis,u=q2.horiz,n=q2.options,w=this.label,f=n.labels,l=f.step;q2=p(this.tickmarkOffset,q2.tickmarkOffset);var d=e.x;e=e.y;var b=true;w&&a(d)&&(w.xy=e=this.getLabelPosition(d,e,w,u,f,q2,c2,l),this.isFirst&&!this.isLast&&!n.showFirstLabel||this.isLast&&!this.isFirst&&!n.showLastLabel?b=false:!u||f.step||f.rotation||k2||0===m2||this.handleOverflow(e),l&&c2%l&&(b=false),b&&a(e.y)?(e.opacity=m2,w[this.isNewLabel?"attr":"animate"](e).show(true),this.isNewLabel=false):(w.hide(),this.isNewLabel=true))};k.prototype.replaceMovedLabel=function(){var a2=this.label,k2=this.axis,m2=k2.reversed;if(a2&&!this.isNew){var c2=k2.horiz?m2?k2.left:k2.width+k2.left:a2.xy.x;m2=k2.horiz?a2.xy.y:m2?k2.width+k2.top:k2.top;a2.animate({x:c2,y:m2,opacity:0},void 0,a2.destroy);delete this.label}k2.isDirty=true;this.label=this.movedLabel;delete this.movedLabel};return k}();return g2}));I(g,"Core/Axis/Axis.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/AxisDefaults.js"],g["Core/Color/Color.js"],g["Core/Defaults.js"],g["Core/Foundation.js"],g["Core/Globals.js"],g["Core/Axis/Tick.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C,x){var t=c.animObject,r=A.defaultOptions,a=B.registerEventOptions,q=z.deg2rad,m=x.arrayMax,p=x.arrayMin,k=x.clamp,e=x.correctFloat,D=x.defined,G=x.destroyObjectProperties,H=x.erase,K=x.error,u=x.extend,n=x.fireEvent,w=x.isArray,f=x.isNumber,l=x.isString,d=x.merge,b=x.normalizeTickInterval,h=x.objectEach,v=x.pick,E=x.relativeLength,J=x.removeEvent,M=x.splat,O=x.syncTimeout,P=function(d2,h2){return b(h2,void 0,void 0,v(d2.options.allowDecimals,.5>h2||void 0!==d2.tickAmount),!!d2.tickAmount)};c=function(){function b2(b3,d2){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(b3,d2)}b2.prototype.init=function(b3,d2){var h2=d2.isX;this.chart=b3;this.horiz=b3.inverted&&!this.isZAxis?!h2:h2;this.isXAxis=h2;this.coll=this.coll||(h2?"xAxis":"yAxis");n(this,"init",{userOptions:d2});this.opposite=v(d2.opposite,this.opposite);this.side=v(d2.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(d2);var l2=this.options,e2=l2.labels,F=l2.type;this.userOptions=d2;this.minPixelPadding=0;this.reversed=v(l2.reversed,this.reversed);this.visible=l2.visible;this.zoomEnabled=l2.zoomEnabled;this.hasNames="category"===F||true===l2.categories;this.categories=l2.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=D(l2.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=l2.minRange||l2.maxZoom;this.range=l2.range;this.offset=l2.offset||0;this.min=this.max=null;d2=v(l2.crosshair,M(b3.options.tooltip.crosshairs)[h2?0:1]);this.crosshair=true===d2?{}:d2;-1===b3.axes.indexOf(this)&&(h2?b3.axes.splice(b3.xAxis.length,0,this):b3.axes.push(this),b3[this.coll].push(this));this.series=this.series||[];b3.inverted&&!this.isZAxis&&h2&&"undefined"===typeof this.reversed&&(this.reversed=true);this.labelRotation=f(e2.rotation)?e2.rotation:void 0;a(this,l2);n(this,"afterInit")};b2.prototype.setOptions=function(b3){this.options=d(g2.defaultXAxisOptions,"yAxis"===this.coll&&g2.defaultYAxisOptions,[g2.defaultTopAxisOptions,g2.defaultRightAxisOptions,g2.defaultBottomAxisOptions,g2.defaultLeftAxisOptions][this.side],d(r[this.coll],b3));n(this,"afterSetOptions",{userOptions:b3})};b2.prototype.defaultLabelFormatter=function(b3){var d2=this.axis;b3=this.chart.numberFormatter;var h2=f(this.value)?this.value:NaN,l2=d2.chart.time,n2=this.dateTimeLabelFormat,v2=r.lang,a2=v2.numericSymbols;v2=v2.numericSymbolMagnitude||1e3;var e2=d2.logarithmic?Math.abs(h2):d2.tickInterval,F=a2&&a2.length;if(d2.categories)var k2="".concat(this.value);else if(n2)k2=l2.dateFormat(n2,h2);else if(F&&1e3<=e2)for(;F--&&"undefined"===typeof k2;)d2=Math.pow(v2,F+1),e2>=d2&&0===10*h2%d2&&null!==a2[F]&&0!==h2&&(k2=b3(h2/d2,-1)+a2[F]);"undefined"===typeof k2&&(k2=1e4<=Math.abs(h2)?b3(h2,-1):b3(h2,-1,void 0,""));return k2};b2.prototype.getSeriesExtremes=function(){var b3=this,d2=b3.chart,h2;n(this,"getSeriesExtremes",null,(function(){b3.hasVisibleSeries=false;b3.dataMin=b3.dataMax=b3.threshold=null;b3.softThreshold=!b3.isXAxis;b3.series.forEach((function(l2){if(l2.visible||!d2.options.chart.ignoreHiddenSeries){var n2=l2.options,a2=n2.threshold;b3.hasVisibleSeries=true;b3.positiveValuesOnly&&0>=a2&&(a2=null);if(b3.isXAxis){if(n2=l2.xData,n2.length){n2=b3.logarithmic?n2.filter(b3.validatePositiveValue):n2;h2=l2.getXExtremes(n2);var e2=h2.min;var F=h2.max;f(e2)||e2 instanceof Date||(n2=n2.filter(f),h2=l2.getXExtremes(n2),e2=h2.min,F=h2.max);n2.length&&(b3.dataMin=Math.min(v(b3.dataMin,e2),e2),b3.dataMax=Math.max(v(b3.dataMax,F),F))}}else if(l2=l2.applyExtremes(),f(l2.dataMin)&&(e2=l2.dataMin,b3.dataMin=Math.min(v(b3.dataMin,e2),e2)),f(l2.dataMax)&&(F=l2.dataMax,b3.dataMax=Math.max(v(b3.dataMax,F),F)),D(a2)&&(b3.threshold=a2),!n2.softThreshold||b3.positiveValuesOnly)b3.softThreshold=false}}))}));n(this,"afterGetSeriesExtremes")};b2.prototype.translate=function(b3,d2,h2,l2,n2,v2){var a2=this.linkedParent||this,F=l2&&a2.old?a2.old.min:a2.min;if(!f(F))return NaN;var k2=a2.minPixelPadding;n2=(a2.isOrdinal||a2.brokenAxis&&a2.brokenAxis.hasBreaks||a2.logarithmic&&n2)&&a2.lin2val;var w2=1,m2=0;l2=l2&&a2.old?a2.old.transA:a2.transA;l2||(l2=a2.transA);h2&&(w2*=-1,m2=a2.len);a2.reversed&&(w2*=-1,m2-=w2*(a2.sector||a2.len));d2?(v2=(b3*w2+m2-k2)/l2+F,n2&&(v2=a2.lin2val(v2))):(n2&&(b3=a2.val2lin(b3)),b3=w2*(b3-F)*l2,v2=(a2.isRadial?b3:e(b3))+m2+w2*k2+(f(v2)?l2*v2:0));return v2};b2.prototype.toPixels=function(b3,d2){return this.translate(b3,false,!this.horiz,void 0,true)+(d2?0:this.pos)};b2.prototype.toValue=function(b3,d2){return this.translate(b3-(d2?0:this.pos),true,!this.horiz,void 0,true)};b2.prototype.getPlotLinePath=function(b3){function d2(b4,d3,h3){"pass"!==q2&&(b4<d3||b4>h3)&&(q2?b4=k(b4,d3,h3):M2=true);return b4}var h2=this,l2=h2.chart,a2=h2.left,e2=h2.top,F=b3.old,w2=b3.value,m2=b3.lineWidth,E2=F&&l2.oldChartHeight||l2.chartHeight,c2=F&&l2.oldChartWidth||l2.chartWidth,p2=h2.transB,u2=b3.translatedValue,q2=b3.force,J2,r2,g3,t2,M2;b3={value:w2,lineWidth:m2,old:F,force:q2,acrossPanes:b3.acrossPanes,translatedValue:u2};n(this,"getPlotLinePath",b3,(function(b4){u2=v(u2,h2.translate(w2,void 0,void 0,F));u2=k(u2,-1e5,1e5);J2=g3=Math.round(u2+p2);r2=t2=Math.round(E2-u2-p2);f(u2)?h2.horiz?(r2=e2,t2=E2-h2.bottom,J2=g3=d2(J2,a2,a2+h2.width)):(J2=a2,g3=c2-h2.right,r2=t2=d2(r2,e2,e2+h2.height)):(M2=true,q2=false);b4.path=M2&&!q2?null:l2.renderer.crispLine([["M",J2,r2],["L",g3,t2]],m2||1)}));return b3.path};b2.prototype.getLinearTickPositions=function(b3,d2,h2){var f2=e(Math.floor(d2/b3)*b3);h2=e(Math.ceil(h2/b3)*b3);var l2=[],n2;e(f2+b3)===f2&&(n2=20);if(this.single)return[d2];for(d2=f2;d2<=h2;){l2.push(d2);d2=e(d2+b3,n2);if(d2===a2)break;var a2=d2}return l2};b2.prototype.getMinorTickInterval=function(){var b3=this.options;return true===b3.minorTicks?v(b3.minorTickInterval,"auto"):false===b3.minorTicks?null:b3.minorTickInterval};b2.prototype.getMinorTickPositions=function(){var b3=this.options,d2=this.tickPositions,h2=this.minorTickInterval,f2=this.pointRangePadding||0,l2=this.min-f2;f2=this.max+f2;var n2=f2-l2,a2=[];if(n2&&n2/h2<this.len/3){var v2=this.logarithmic;if(v2)this.paddedTicks.forEach((function(b4,d3,f3){d3&&a2.push.apply(a2,v2.getLogTickPositions(h2,f3[d3-1],f3[d3],true))}));else if(this.dateTime&&"auto"===this.getMinorTickInterval())a2=a2.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(h2),l2,f2,b3.startOfWeek));else for(b3=l2+(d2[0]-l2)%h2;b3<=f2&&b3!==a2[0];b3+=h2)a2.push(b3)}0!==a2.length&&this.trimTicks(a2);return a2};b2.prototype.adjustForMinRange=function(){var b3=this.options,d2=this.logarithmic,h2=this.min,f2=this.max,l2=0,n2,a2,e2,k2;this.isXAxis&&"undefined"===typeof this.minRange&&!d2&&(D(b3.min)||D(b3.max)||D(b3.floor)||D(b3.ceiling)?this.minRange=null:(this.series.forEach((function(b4){e2=b4.xData;k2=b4.xIncrement?1:e2.length-1;if(1<e2.length){for(n2=k2;0<n2;n2--)if(a2=e2[n2]-e2[n2-1],!l2||a2<l2)l2=a2}})),this.minRange=Math.min(5*l2,this.dataMax-this.dataMin)));if(f2-h2<this.minRange){var w2=this.dataMax-this.dataMin>=this.minRange;var E2=this.minRange;var c2=(E2-f2+h2)/2;c2=[h2-c2,v(b3.min,h2-c2)];w2&&(c2[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);h2=m(c2);f2=[h2+E2,v(b3.max,h2+E2)];w2&&(f2[2]=d2?d2.log2lin(this.dataMax):this.dataMax);f2=p(f2);f2-h2<E2&&(c2[0]=f2-E2,c2[1]=v(b3.min,f2-E2),h2=m(c2))}this.min=h2;this.max=f2};b2.prototype.getClosest=function(){var b3;this.categories?b3=1:this.series.forEach((function(d2){var h2=d2.closestPointRange,f2=d2.visible||!d2.chart.options.chart.ignoreHiddenSeries;!d2.noSharedTooltip&&D(h2)&&f2&&(b3=D(b3)?Math.min(b3,h2):h2)}));return b3};b2.prototype.nameToX=function(b3){var d2=w(this.options.categories),h2=d2?this.categories:this.names,f2=b3.options.x;b3.series.requireSorting=false;D(f2)||(f2=this.options.uniqueNames&&h2?d2?h2.indexOf(b3.name):v(h2.keys[b3.name],-1):b3.series.autoIncrement());if(-1===f2){if(!d2&&h2)var l2=h2.length}else l2=f2;"undefined"!==typeof l2?(this.names[l2]=b3.name,this.names.keys[b3.name]=l2):b3.x&&(l2=b3.x);return l2};b2.prototype.updateNames=function(){var b3=this,d2=this.names;0<d2.length&&(Object.keys(d2.keys).forEach((function(b4){delete d2.keys[b4]})),d2.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(d3){d3.xIncrement=null;if(!d3.points||d3.isDirtyData)b3.max=Math.max(b3.max,d3.xData.length-1),d3.processData(),d3.generatePoints();d3.data.forEach((function(h2,f2){if(h2&&h2.options&&"undefined"!==typeof h2.name){var l2=b3.nameToX(h2);"undefined"!==typeof l2&&l2!==h2.x&&(h2.x=l2,d3.xData[f2]=l2)}}))})))};b2.prototype.setAxisTranslation=function(){var b3=this,d2=b3.max-b3.min,h2=b3.linkedParent,f2=!!b3.categories,a2=b3.isXAxis,e2=b3.axisPointRange||0,k2=0,w2=0,m2=b3.transA;if(a2||f2||e2){var E2=b3.getClosest();h2?(k2=h2.minPointOffset,w2=h2.pointRangePadding):b3.series.forEach((function(d3){var h3=f2?1:a2?v(d3.options.pointRange,E2,0):b3.axisPointRange||0,n2=d3.options.pointPlacement;e2=Math.max(e2,h3);if(!b3.single||f2)d3=d3.is("xrange")?!a2:a2,k2=Math.max(k2,d3&&l(n2)?0:h3/2),w2=Math.max(w2,d3&&"on"===n2?0:h3)}));h2=b3.ordinal&&b3.ordinal.slope&&E2?b3.ordinal.slope/E2:1;b3.minPointOffset=k2*=h2;b3.pointRangePadding=w2*=h2;b3.pointRange=Math.min(e2,b3.single&&f2?1:d2);a2&&(b3.closestPointRange=E2)}b3.translationSlope=b3.transA=m2=b3.staticScale||b3.len/(d2+w2||1);b3.transB=b3.horiz?b3.left:b3.bottom;b3.minPixelPadding=m2*k2;n(this,"afterSetAxisTranslation")};b2.prototype.minFromRange=function(){return this.max-this.range};b2.prototype.setTickInterval=function(b3){var d2=this.chart,h2=this.logarithmic,l2=this.options,a2=this.isXAxis,k2=this.isLinked,w2=l2.tickPixelInterval,F=this.categories,m2=this.softThreshold,E2=l2.maxPadding,c2=l2.minPadding,p2=f(l2.tickInterval)&&0<=l2.tickInterval?l2.tickInterval:void 0,u2=f(this.threshold)?this.threshold:null;this.dateTime||F||k2||this.getTickAmount();var q2=v(this.userMin,l2.min);var J2=v(this.userMax,l2.max);if(k2){this.linkedParent=d2[this.coll][l2.linkedTo];var r2=this.linkedParent.getExtremes();this.min=v(r2.min,r2.dataMin);this.max=v(r2.max,r2.dataMax);l2.type!==this.linkedParent.options.type&&K(11,1,d2)}else{if(m2&&D(u2)){if(this.dataMin>=u2)r2=u2,c2=0;else if(this.dataMax<=u2){var g3=u2;E2=0}}this.min=v(q2,r2,this.dataMin);this.max=v(J2,g3,this.dataMax)}h2&&(this.positiveValuesOnly&&!b3&&0>=Math.min(this.min,v(this.dataMin,this.min))&&K(10,1,d2),this.min=e(h2.log2lin(this.min),16),this.max=e(h2.log2lin(this.max),16));this.range&&D(this.max)&&(this.userMin=this.min=q2=Math.max(this.dataMin,this.minFromRange()),this.userMax=J2=this.max,this.range=null);n(this,"foundExtremes");this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(F||this.axisPointRange||this.stacking&&this.stacking.usePercentage||k2)&&D(this.min)&&D(this.max)&&(d2=this.max-this.min)&&(!D(q2)&&c2&&(this.min-=d2*c2),!D(J2)&&E2&&(this.max+=d2*E2));f(this.userMin)||(f(l2.softMin)&&l2.softMin<this.min&&(this.min=q2=l2.softMin),f(l2.floor)&&(this.min=Math.max(this.min,l2.floor)));f(this.userMax)||(f(l2.softMax)&&l2.softMax>this.max&&(this.max=J2=l2.softMax),f(l2.ceiling)&&(this.max=Math.min(this.max,l2.ceiling)));m2&&D(this.dataMin)&&(u2=u2||0,!D(q2)&&this.min<u2&&this.dataMin>=u2?this.min=this.options.minRange?Math.min(u2,this.max-this.minRange):u2:!D(J2)&&this.max>u2&&this.dataMax<=u2&&(this.max=this.options.minRange?Math.max(u2,this.min+this.minRange):u2));f(this.min)&&f(this.max)&&!this.chart.polar&&this.min>this.max&&(D(this.options.min)?this.max=this.min:D(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:k2&&this.linkedParent&&!p2&&w2===this.linkedParent.options.tickPixelInterval?p2=this.linkedParent.tickInterval:v(p2,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,F?1:(this.max-this.min)*w2/Math.max(this.len,w2));if(a2&&!b3){var t2=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach((function(b4){b4.forceCrop=b4.forceCropping&&b4.forceCropping();b4.processData(t2)}));n(this,"postProcessData",{hasExtremesChanged:t2})}this.setAxisTranslation();n(this,"initialAxisTranslation");this.pointRange&&!p2&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));b3=v(l2.minTickInterval,this.dateTime&&!this.series.some((function(b4){return b4.noSharedTooltip}))?this.closestPointRange:0);!p2&&this.tickInterval<b3&&(this.tickInterval=b3);this.dateTime||this.logarithmic||p2||(this.tickInterval=P(this,this.tickInterval));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};b2.prototype.setTickPositions=function(){var b3=this.options,d2=b3.tickPositions,h2=b3.tickPositioner,l2=this.getMinorTickInterval(),a2=this.hasVerticalPanning(),v2="colorAxis"===this.coll,e2=(v2||!a2)&&b3.startOnTick;a2=(v2||!a2)&&b3.endOnTick;v2=[];var k2;this.tickmarkOffset=this.categories&&"between"===b3.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===l2&&this.tickInterval?this.tickInterval/5:l2;this.single=this.min===this.max&&D(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||false!==b3.allowDecimals);if(d2)v2=d2.slice();else if(f(this.min)&&f(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)v2=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,b3.units),this.min,this.max,b3.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,true);else if(this.logarithmic)v2=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(l2=b3=this.tickInterval;l2<=2*b3;)if(v2=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&v2.length>this.tickAmount)this.tickInterval=P(this,l2*=1.1);else break;else v2=[this.min,this.max],K(19,false,this.chart);v2.length>this.len&&(v2=[v2[0],v2[v2.length-1]],v2[0]===v2[1]&&(v2.length=1));h2&&(this.tickPositions=v2,(k2=h2.apply(this,[this.min,this.max]))&&(v2=k2))}this.tickPositions=v2;this.paddedTicks=v2.slice(0);this.trimTicks(v2,e2,a2);!this.isLinked&&f(this.min)&&f(this.max)&&(this.single&&2>v2.length&&!this.categories&&!this.series.some((function(b4){return b4.is("heatmap")&&"between"===b4.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),d2||k2||this.adjustTickAmount());n(this,"afterSetTickPositions")};b2.prototype.trimTicks=function(b3,d2,h2){var f2=b3[0],l2=b3[b3.length-1],a2=!this.isOrdinal&&this.minPointOffset||0;n(this,"trimTicks");if(!this.isLinked){if(d2&&-Infinity!==f2)this.min=f2;else for(;this.min-a2>b3[0];)b3.shift();if(h2)this.max=l2;else for(;this.max+a2<b3[b3.length-1];)b3.pop();0===b3.length&&D(f2)&&!this.options.tickPositions&&b3.push((l2+f2)/2)}};b2.prototype.alignToOthers=function(){var b3=this,d2=[this],h2=b3.options,l2="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,n2=[],a2;b3.thresholdAlignment=void 0;if((false!==this.chart.options.chart.alignTicks&&h2.alignTicks||l2)&&false!==h2.startOnTick&&false!==h2.endOnTick&&!b3.logarithmic){var v2=function(b4){var d3=b4.options;return[b4.horiz?d3.left:d3.top,d3.width,d3.height,d3.pane].join()},e2=v2(this);this.chart[this.coll].forEach((function(h3){var f2=h3.series;f2.length&&f2.some((function(b4){return b4.visible}))&&h3!==b3&&v2(h3)===e2&&(a2=true,d2.push(h3))}))}if(a2&&l2){d2.forEach((function(d3){d3=d3.getThresholdAlignment(b3);f(d3)&&n2.push(d3)}));var k2=1<n2.length?n2.reduce((function(b4,d3){return b4+d3}),0)/n2.length:void 0;d2.forEach((function(b4){b4.thresholdAlignment=k2}))}return a2};b2.prototype.getThresholdAlignment=function(b3){(!f(this.dataMin)||this!==b3&&this.series.some((function(b4){return b4.isDirty||b4.isDirtyData})))&&this.getSeriesExtremes();if(f(this.threshold))return b3=k((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(b3=1-b3),b3};b2.prototype.getTickAmount=function(){var b3=this.options,d2=b3.tickPixelInterval,h2=b3.tickAmount;!D(b3.tickInterval)&&!h2&&this.len<d2&&!this.isRadial&&!this.logarithmic&&b3.startOnTick&&b3.endOnTick&&(h2=2);!h2&&this.alignToOthers()&&(h2=Math.ceil(this.len/d2)+1);4>h2&&(this.finalTickAmt=h2,h2=5);this.tickAmount=h2};b2.prototype.adjustTickAmount=function(){var b3=this,d2=b3.finalTickAmt,h2=b3.max,l2=b3.min,n2=b3.options,a2=b3.tickPositions,k2=b3.tickAmount,w2=b3.thresholdAlignment,m2=a2&&a2.length,E2=v(b3.threshold,b3.softThreshold?0:null);var c2=b3.tickInterval;if(f(w2)){var p2=.5>w2?Math.ceil(w2*(k2-1)):Math.floor(w2*(k2-1));n2.reversed&&(p2=k2-1-p2)}if(b3.hasData()&&f(l2)&&f(h2)){w2=function(){b3.transA*=(m2-1)/(k2-1);b3.min=n2.startOnTick?a2[0]:Math.min(l2,a2[0]);b3.max=n2.endOnTick?a2[a2.length-1]:Math.max(h2,a2[a2.length-1])};if(f(p2)&&f(b3.threshold)){for(;a2[p2]!==E2||a2.length!==k2||a2[0]>l2||a2[a2.length-1]<h2;){a2.length=0;for(a2.push(b3.threshold);a2.length<k2;)void 0===a2[p2]||a2[p2]>b3.threshold?a2.unshift(e(a2[0]-c2)):a2.push(e(a2[a2.length-1]+c2));if(c2>8*b3.tickInterval)break;c2*=2}w2()}else if(m2<k2){for(;a2.length<k2;)a2.length%2||l2===E2?a2.push(e(a2[a2.length-1]+c2)):a2.unshift(e(a2[0]-c2));w2()}if(D(d2)){for(c2=E2=a2.length;c2--;)(3===d2&&1===c2%2||2>=d2&&0<c2&&c2<E2-1)&&a2.splice(c2,1);b3.finalTickAmt=void 0}}};b2.prototype.setScale=function(){var b3=false,d2=false;this.series.forEach((function(h3){b3=b3||h3.isDirtyData||h3.isDirty;d2=d2||h3.xAxis&&h3.xAxis.isDirty||false}));this.setAxisSize();var h2=this.len!==(this.old&&this.old.len);h2||b3||d2||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=false,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=h2||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();b3&&this.panningState&&(this.panningState.isDirty=true);n(this,"afterSetScale")};b2.prototype.setExtremes=function(b3,d2,h2,f2,l2){var a2=this,e2=a2.chart;h2=v(h2,true);a2.series.forEach((function(b4){delete b4.kdTree}));l2=u(l2,{min:b3,max:d2});n(a2,"setExtremes",l2,(function(){a2.userMin=b3;a2.userMax=d2;a2.eventArgs=l2;h2&&e2.redraw(f2)}))};b2.prototype.zoom=function(b3,d2){var h2=this,f2=this.dataMin,l2=this.dataMax,a2=this.options,e2=Math.min(f2,v(a2.min,f2)),k2=Math.max(l2,v(a2.max,l2));b3={newMin:b3,newMax:d2};n(this,"zoom",b3,(function(b4){var d3=b4.newMin,a3=b4.newMax;if(d3!==h2.min||a3!==h2.max)h2.allowZoomOutside||(D(f2)&&(d3<e2&&(d3=e2),d3>k2&&(d3=k2)),D(l2)&&(a3<e2&&(a3=e2),a3>k2&&(a3=k2))),h2.displayBtn="undefined"!==typeof d3||"undefined"!==typeof a3,h2.setExtremes(d3,a3,false,void 0,{trigger:"zoom"});b4.zoomed=true}));return b3.zoomed};b2.prototype.setAxisSize=function(){var b3=this.chart,d2=this.options,h2=d2.offsets||[0,0,0,0],f2=this.horiz,l2=this.width=Math.round(E(v(d2.width,b3.plotWidth-h2[3]+h2[1]),b3.plotWidth)),a2=this.height=Math.round(E(v(d2.height,b3.plotHeight-h2[0]+h2[2]),b3.plotHeight)),n2=this.top=Math.round(E(v(d2.top,b3.plotTop+h2[0]),b3.plotHeight,b3.plotTop));d2=this.left=Math.round(E(v(d2.left,b3.plotLeft+h2[3]),b3.plotWidth,b3.plotLeft));this.bottom=b3.chartHeight-a2-n2;this.right=b3.chartWidth-l2-d2;this.len=Math.max(f2?l2:a2,0);this.pos=f2?d2:n2};b2.prototype.getExtremes=function(){var b3=this.logarithmic;return{min:b3?e(b3.lin2log(this.min)):this.min,max:b3?e(b3.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};b2.prototype.getThreshold=function(b3){var d2=this.logarithmic,h2=d2?d2.lin2log(this.min):this.min;d2=d2?d2.lin2log(this.max):this.max;null===b3||-Infinity===b3?b3=h2:Infinity===b3?b3=d2:h2>b3?b3=h2:d2<b3&&(b3=d2);return this.translate(b3,0,1,0,1)};b2.prototype.autoLabelAlign=function(b3){var d2=(v(b3,0)-90*this.side+720)%360;b3={align:"center"};n(this,"autoLabelAlign",b3,(function(b4){15<d2&&165>d2?b4.align="right":195<d2&&345>d2&&(b4.align="left")}));return b3.align};b2.prototype.tickSize=function(b3){var d2=this.options,h2=v(d2["tick"===b3?"tickWidth":"minorTickWidth"],"tick"===b3&&this.isXAxis&&!this.categories?1:0),f2=d2["tick"===b3?"tickLength":"minorTickLength"];if(h2&&f2){"inside"===d2[b3+"Position"]&&(f2=-f2);var l2=[f2,h2]}b3={tickSize:l2};n(this,"afterTickSize",b3);return b3.tickSize};b2.prototype.labelMetrics=function(){var b3=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[b3]&&this.ticks[b3].label)};b2.prototype.unsquish=function(){var b3=this.options.labels,d2=this.horiz,h2=this.tickInterval,l2=this.len/(((this.categories?1:0)+this.max-this.min)/h2),a2=b3.rotation,n2=this.labelMetrics(),k2=Math.max(this.max-this.min,0),w2=function(b4){var d3=b4/(l2||1);d3=1<d3?Math.ceil(d3):1;d3*h2>k2&&Infinity!==b4&&Infinity!==l2&&k2&&(d3=Math.ceil(k2/h2));return e(d3*h2)},m2=h2,E2=Number.MAX_VALUE;if(d2){if(!b3.staggerLines)if(f(a2))var c2=[a2];else l2<b3.autoRotationLimit&&(c2=b3.autoRotation);if(c2)for(var p2=d2=void 0,u2=0,J2=c2;u2<J2.length;u2++){var r2=J2[u2];if(r2===a2||r2&&-90<=r2&&90>=r2){if(d2=w2(Math.abs(n2.h/Math.sin(q*r2))),p2=d2+Math.abs(r2/360),p2<E2){E2=p2;var g3=r2;m2=d2}}}}else m2=w2(n2.h);this.autoRotation=c2;this.labelRotation=v(g3,f(a2)?a2:0);return b3.step?h2:m2};b2.prototype.getSlotWidth=function(b3){var d2=this.chart,h2=this.horiz,l2=this.options.labels,a2=Math.max(this.tickPositions.length-(this.categories?0:1),1),n2=d2.margin[3];if(b3&&f(b3.slotWidth))return b3.slotWidth;if(h2&&2>l2.step)return l2.rotation?0:(this.staggerLines||1)*this.len/a2;if(!h2){b3=l2.style.width;if(void 0!==b3)return parseInt(String(b3),10);if(n2)return n2-d2.spacing[3]}return.33*d2.chartWidth};b2.prototype.renderUnsquish=function(){var b3=this.chart,d2=b3.renderer,h2=this.tickPositions,f2=this.ticks,a2=this.options.labels,n2=a2.style,v2=this.horiz,e2=this.getSlotWidth(),k2=Math.max(1,Math.round(e2-2*a2.padding)),w2={},m2=this.labelMetrics(),E2=n2.textOverflow,c2=0;l(a2.rotation)||(w2.rotation=a2.rotation||0);h2.forEach((function(b4){b4=f2[b4];b4.movedLabel&&b4.replaceMovedLabel();b4&&b4.label&&b4.label.textPxLength>c2&&(c2=b4.label.textPxLength)}));this.maxLabelLength=c2;if(this.autoRotation)c2>k2&&c2>m2.h?w2.rotation=this.labelRotation:this.labelRotation=0;else if(e2){var p2=k2;if(!E2){var u2="clip";for(k2=h2.length;!v2&&k2--;){var q2=h2[k2];if(q2=f2[q2].label)q2.styles&&"ellipsis"===q2.styles.textOverflow?q2.css({textOverflow:"clip"}):q2.textPxLength>e2&&q2.css({width:e2+"px"}),q2.getBBox().height>this.len/h2.length-(m2.h-m2.f)&&(q2.specificTextOverflow="ellipsis")}}}w2.rotation&&(p2=c2>.5*b3.chartHeight?.33*b3.chartHeight:c2,E2||(u2="ellipsis"));if(this.labelAlign=a2.align||this.autoLabelAlign(this.labelRotation))w2.align=this.labelAlign;h2.forEach((function(b4){var d3=(b4=f2[b4])&&b4.label,h3=n2.width,l2={};d3&&(d3.attr(w2),b4.shortenLabel?b4.shortenLabel():p2&&!h3&&"nowrap"!==n2.whiteSpace&&(p2<d3.textPxLength||"SPAN"===d3.element.tagName)?(l2.width=p2+"px",E2||(l2.textOverflow=d3.specificTextOverflow||u2),d3.css(l2)):d3.styles&&d3.styles.width&&!l2.width&&!h3&&d3.css({width:null}),delete d3.specificTextOverflow,b4.rotation=w2.rotation)}),this);this.tickRotCorr=d2.rotCorr(m2.b,this.labelRotation||0,0!==this.side)};b2.prototype.hasData=function(){return this.series.some((function(b3){return b3.hasData()}))||this.options.showEmpty&&D(this.min)&&D(this.max)};b2.prototype.addTitle=function(b3){var h2=this.chart.renderer,f2=this.horiz,l2=this.opposite,a2=this.options.title,n2=this.chart.styledMode,v2;this.axisTitle||((v2=a2.textAlign)||(v2=(f2?{low:"left",middle:"center",high:"right"}:{low:l2?"right":"left",middle:"center",high:l2?"left":"right"})[a2.align]),this.axisTitle=h2.text(a2.text||"",0,0,a2.useHTML).attr({zIndex:7,rotation:a2.rotation,align:v2}).addClass("highcharts-axis-title"),n2||this.axisTitle.css(d(a2.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=true);n2||a2.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[b3?"show":"hide"](b3)};b2.prototype.generateTick=function(b3){var d2=this.ticks;d2[b3]?d2[b3].addLabel():d2[b3]=new C(this,b3)};b2.prototype.getOffset=function(){var b3=this,d2=this,f2=d2.chart,l2=d2.horiz,a2=d2.options,e2=d2.side,k2=d2.ticks,w2=d2.tickPositions,m2=d2.coll,E2=d2.axisParent,c2=f2.renderer,p2=f2.inverted&&!d2.isZAxis?[1,0,3,2][e2]:e2,u2=d2.hasData(),q2=a2.title,J2=a2.labels,r2=f2.axisOffset;f2=f2.clipOffset;var g3=[-1,1,1,-1][e2],t2=a2.className,M2,O2=0,G2=0,P2=0;d2.showAxis=M2=u2||a2.showEmpty;d2.staggerLines=d2.horiz&&J2.staggerLines||void 0;if(!d2.axisGroup){var x2=function(d3,h2,f3){return c2.g(d3).attr({zIndex:f3}).addClass("highcharts-".concat(m2.toLowerCase()).concat(h2," ")+(b3.isRadial?"highcharts-radial-axis".concat(h2," "):"")+(t2||"")).add(E2)};d2.gridGroup=x2("grid","-grid",a2.gridZIndex);d2.axisGroup=x2("axis","",a2.zIndex);d2.labelGroup=x2("axis-labels","-labels",J2.zIndex)}u2||d2.isLinked?(w2.forEach((function(b4){d2.generateTick(b4)})),d2.renderUnsquish(),d2.reserveSpaceDefault=0===e2||2===e2||{1:"left",3:"right"}[e2]===d2.labelAlign,v(J2.reserveSpace,"center"===d2.labelAlign?true:null,d2.reserveSpaceDefault)&&w2.forEach((function(b4){P2=Math.max(k2[b4].getLabelSize(),P2)})),d2.staggerLines&&(P2*=d2.staggerLines),d2.labelOffset=P2*(d2.opposite?-1:1)):h(k2,(function(b4,d3){b4.destroy();delete k2[d3]}));if(q2&&q2.text&&false!==q2.enabled&&(d2.addTitle(M2),M2&&false!==q2.reserveSpace)){d2.titleOffset=O2=d2.axisTitle.getBBox()[l2?"height":"width"];var T=q2.offset;G2=D(T)?0:v(q2.margin,l2?5:10)}d2.renderLine();d2.offset=g3*v(a2.offset,r2[e2]?r2[e2]+(a2.margin||0):0);d2.tickRotCorr=d2.tickRotCorr||{x:0,y:0};q2=0===e2?-d2.labelMetrics().h:2===e2?d2.tickRotCorr.y:0;u2=Math.abs(P2)+G2;P2&&(u2=u2-q2+g3*(l2?v(J2.y,d2.tickRotCorr.y+8*g3):J2.x));d2.axisTitleMargin=v(T,u2);d2.getMaxLabelDimensions&&(d2.maxLabelDimensions=d2.getMaxLabelDimensions(k2,w2));"colorAxis"!==m2&&(l2=this.tickSize("tick"),r2[e2]=Math.max(r2[e2],(d2.axisTitleMargin||0)+O2+g3*d2.offset,u2,w2&&w2.length&&l2?l2[0]+g3*d2.offset:0),a2=!d2.axisLine||a2.offset?0:2*Math.floor(d2.axisLine.strokeWidth()/2),f2[p2]=Math.max(f2[p2],a2));n(this,"afterGetOffset")};b2.prototype.getLinePath=function(b3){var d2=this.chart,h2=this.opposite,f2=this.offset,l2=this.horiz,a2=this.left+(h2?this.width:0)+f2;f2=d2.chartHeight-this.bottom-(h2?this.height:0)+f2;h2&&(b3*=-1);return d2.renderer.crispLine([["M",l2?this.left:a2,l2?f2:this.top],["L",l2?d2.chartWidth-this.right:a2,l2?f2:d2.chartHeight-this.bottom]],b3)};b2.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};b2.prototype.getTitlePosition=function(){var b3=this.horiz,d2=this.left,h2=this.top,f2=this.len,l2=this.options.title,a2=b3?d2:h2,v2=this.opposite,e2=this.offset,k2=l2.x,w2=l2.y,m2=this.axisTitle,E2=this.chart.renderer.fontMetrics(l2.style.fontSize,m2);m2=m2?Math.max(m2.getBBox(false,0).height-E2.h-1,0):0;f2={low:a2+(b3?0:f2),middle:a2+f2/2,high:a2+(b3?f2:0)}[l2.align];d2=(b3?h2+this.height:d2)+(b3?1:-1)*(v2?-1:1)*(this.axisTitleMargin||0)+[-m2,m2,E2.f,-m2][this.side];b3={x:b3?f2+k2:d2+(v2?this.width:0)+e2+k2,y:b3?d2+w2-(v2?this.height:0)+e2:f2+w2};n(this,"afterGetTitlePosition",{titlePosition:b3});return b3};b2.prototype.renderMinorTick=function(b3,d2){var h2=this.minorTicks;h2[b3]||(h2[b3]=new C(this,b3,"minor"));d2&&h2[b3].isNew&&h2[b3].render(null,true);h2[b3].render(null,false,1)};b2.prototype.renderTick=function(b3,d2,h2){var f2=this.ticks;if(!this.isLinked||b3>=this.min&&b3<=this.max||this.grid&&this.grid.isColumn)f2[b3]||(f2[b3]=new C(this,b3)),h2&&f2[b3].isNew&&f2[b3].render(d2,true,-1),f2[b3].render(d2)};b2.prototype.render=function(){var b3=this,d2=b3.chart,l2=b3.logarithmic,a2=b3.options,v2=b3.isLinked,e2=b3.tickPositions,k2=b3.axisTitle,w2=b3.ticks,m2=b3.minorTicks,E2=b3.alternateBands,c2=a2.stackLabels,p2=a2.alternateGridColor,u2=b3.tickmarkOffset,q2=b3.axisLine,J2=b3.showAxis,r2=t(d2.renderer.globalAnimation),g3,M2;b3.labelEdge.length=0;b3.overlap=false;[w2,m2,E2].forEach((function(b4){h(b4,(function(b5){b5.isActive=false}))}));if(b3.hasData()||v2){var D2=b3.chart.hasRendered&&b3.old&&f(b3.old.min);b3.minorTickInterval&&!b3.categories&&b3.getMinorTickPositions().forEach((function(d3){b3.renderMinorTick(d3,D2)}));e2.length&&(e2.forEach((function(d3,h2){b3.renderTick(d3,h2,D2)})),u2&&(0===b3.min||b3.single)&&(w2[-1]||(w2[-1]=new C(b3,-1,null,true)),w2[-1].render(-1)));p2&&e2.forEach((function(h2,f2){M2="undefined"!==typeof e2[f2+1]?e2[f2+1]+u2:b3.max-u2;0===f2%2&&h2<b3.max&&M2<=b3.max+(d2.polar?-u2:u2)&&(E2[h2]||(E2[h2]=new z.PlotLineOrBand(b3)),g3=h2+u2,E2[h2].options={from:l2?l2.lin2log(g3):g3,to:l2?l2.lin2log(M2):M2,color:p2,className:"highcharts-alternate-grid"},E2[h2].render(),E2[h2].isActive=true)}));b3._addedPlotLB||(b3._addedPlotLB=true,(a2.plotLines||[]).concat(a2.plotBands||[]).forEach((function(d3){b3.addPlotBandOrLine(d3)})))}[w2,m2,E2].forEach((function(b4){var f2=[],l3=r2.duration;h(b4,(function(b5,d3){b5.isActive||(b5.render(d3,false,0),b5.isActive=false,f2.push(d3))}));O((function(){for(var d3=f2.length;d3--;)b4[f2[d3]]&&!b4[f2[d3]].isActive&&(b4[f2[d3]].destroy(),delete b4[f2[d3]])}),b4!==E2&&d2.hasRendered&&l3?l3:0)}));q2&&(q2[q2.isPlaced?"animate":"attr"]({d:this.getLinePath(q2.strokeWidth())}),q2.isPlaced=true,q2[J2?"show":"hide"](J2));k2&&J2&&(a2=b3.getTitlePosition(),k2[k2.isNew?"attr":"animate"](a2),k2.isNew=false);c2&&c2.enabled&&b3.stacking&&b3.stacking.renderStackTotals();b3.old={len:b3.len,max:b3.max,min:b3.min,transA:b3.transA,userMax:b3.userMax,userMin:b3.userMin};b3.isDirty=false;n(this,"afterRender")};b2.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach((function(b3){b3.render()})));this.series.forEach((function(b3){b3.isDirty=true}))};b2.prototype.getKeepProps=function(){return this.keepProps||b2.keepProps};b2.prototype.destroy=function(b3){var d2=this,f2=d2.plotLinesAndBands,l2=this.eventOptions;n(this,"destroy",{keepEvents:b3});b3||J(d2);[d2.ticks,d2.minorTicks,d2.alternateBands].forEach((function(b4){G(b4)}));if(f2)for(b3=f2.length;b3--;)f2[b3].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach((function(b4){d2[b4]&&(d2[b4]=d2[b4].destroy())}));for(var a2 in d2.plotLinesAndBandsGroups)d2.plotLinesAndBandsGroups[a2]=d2.plotLinesAndBandsGroups[a2].destroy();h(d2,(function(b4,h2){-1===d2.getKeepProps().indexOf(h2)&&delete d2[h2]}));this.eventOptions=l2};b2.prototype.drawCrosshair=function(b3,d2){var h2=this.crosshair,f2=v(h2&&h2.snap,true),l2=this.chart,a2,e2=this.cross;n(this,"drawCrosshair",{e:b3,point:d2});b3||(b3=this.cross&&this.cross.e);if(h2&&false!==(D(d2)||!f2)){f2?D(d2)&&(a2=v("colorAxis"!==this.coll?d2.crosshairPos:null,this.isXAxis?d2.plotX:this.len-d2.plotY)):a2=b3&&(this.horiz?b3.chartX-this.pos:this.len-b3.chartY+this.pos);if(D(a2)){var k2={value:d2&&(this.isXAxis?d2.x:v(d2.stackY,d2.y)),translatedValue:a2};l2.polar&&u(k2,{isCrosshair:true,chartX:b3&&b3.chartX,chartY:b3&&b3.chartY,point:d2});k2=this.getPlotLinePath(k2)||null}if(!D(k2)){this.hideCrosshair();return}f2=this.categories&&!this.isRadial;e2||(this.cross=e2=l2.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(f2?"category ":"thin ")+(h2.className||"")).attr({zIndex:v(h2.zIndex,2)}).add(),l2.styledMode||(e2.attr({stroke:h2.color||(f2?y.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":v(h2.width,1)}).css({"pointer-events":"none"}),h2.dashStyle&&e2.attr({dashstyle:h2.dashStyle})));e2.show().attr({d:k2});f2&&!h2.width&&e2.attr({"stroke-width":this.transA});this.cross.e=b3}else this.hideCrosshair();n(this,"afterDrawCrosshair",{e:b3,point:d2})};b2.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();n(this,"afterHideCrosshair")};b2.prototype.hasVerticalPanning=function(){var b3=this.chart.options.chart.panning;return!!(b3&&b3.enabled&&/y/.test(b3.type))};b2.prototype.validatePositiveValue=function(b3){return f(b3)&&0<b3};b2.prototype.update=function(b3,h2){var f2=this.chart;b3=d(this.userOptions,b3);this.destroy(true);this.init(f2,b3);f2.isDirtyBox=true;v(h2,true)&&f2.redraw()};b2.prototype.remove=function(b3){for(var d2=this.chart,h2=this.coll,f2=this.series,l2=f2.length;l2--;)f2[l2]&&f2[l2].remove(false);H(d2.axes,this);H(d2[h2],this);d2[h2].forEach((function(b4,d3){b4.options.index=b4.userOptions.index=d3}));this.destroy();d2.isDirtyBox=true;v(b3,true)&&d2.redraw()};b2.prototype.setTitle=function(b3,d2){this.update({title:b3},d2)};b2.prototype.setCategories=function(b3,d2){this.update({categories:b3},d2)};b2.defaultOptions=g2.defaultXAxisOptions;b2.keepProps="extKey hcEvents names series userMax userMin".split(" ");return b2}();return c}));I(g,"Core/Axis/DateTimeAxis.js",[g["Core/Utilities.js"]],(function(c){var g2=c.addEvent,y=c.getMagnitude,A=c.normalizeTickInterval,B=c.timeUnits,z;(function(c2){function x(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function t(c3){"datetime"!==c3.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new a(this))}var r=[];c2.compose=function(a2){-1===r.indexOf(a2)&&(r.push(a2),a2.keepProps.push("dateTime"),a2.prototype.getTimeTicks=x,g2(a2,"init",t));return a2};var a=function(){function a2(a3){this.axis=a3}a2.prototype.normalizeTimeTickInterval=function(a3,c3){var k=c3||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];c3=k[k.length-1];var e=B[c3[0]],m=c3[1],p;for(p=0;p<k.length&&!(c3=k[p],e=B[c3[0]],m=c3[1],k[p+1]&&a3<=(e*m[m.length-1]+B[k[p+1][0]])/2);p++);e===B.year&&a3<5*e&&(m=[1,2,5]);a3=A(a3/e,m,"year"===c3[0]?Math.max(y(a3/e),1):1);return{unitRange:e,count:a3,unitName:c3[0]}};a2.prototype.getXDateFormat=function(a3,c3){var k=this.axis,e=k.chart.time;return k.closestPointRange?e.getDateFormat(k.closestPointRange,a3,k.options.startOfWeek,c3)||e.resolveDTLFormat(c3.year).main:e.resolveDTLFormat(c3.day).main};return a2}();c2.Additions=a})(z||(z={}));return z}));I(g,"Core/Axis/LogarithmicAxis.js",[g["Core/Utilities.js"]],(function(c){var g2=c.addEvent,y=c.normalizeTickInterval,A=c.pick,B;(function(c2){function C(a){var c3=this.logarithmic;"logarithmic"!==a.userOptions.type?this.logarithmic=void 0:c3||(this.logarithmic=new r(this))}function x(){var a=this.logarithmic;a&&(this.lin2val=function(c3){return a.lin2log(c3)},this.val2lin=function(c3){return a.log2lin(c3)})}var t=[];c2.compose=function(a){-1===t.indexOf(a)&&(t.push(a),a.keepProps.push("logarithmic"),g2(a,"init",C),g2(a,"afterInit",x));return a};var r=function(){function a(a2){this.axis=a2}a.prototype.getLogTickPositions=function(a2,m,c3,k){var e=this.axis,p=e.len,q=e.options,r2=[];k||(this.minorAutoInterval=void 0);if(.5<=a2)a2=Math.round(a2),r2=e.getLinearTickPositions(a2,m,c3);else if(.08<=a2){var g3=Math.floor(m),u,n=q=void 0;for(p=.3<a2?[1,2,4]:.15<a2?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];g3<c3+1&&!n;g3++){var w=p.length;for(u=0;u<w&&!n;u++){var f=this.log2lin(this.lin2log(g3)*p[u]);f>m&&(!k||q<=c3)&&"undefined"!==typeof q&&r2.push(q);q>c3&&(n=true);q=f}}}else m=this.lin2log(m),c3=this.lin2log(c3),a2=k?e.getMinorTickInterval():q.tickInterval,a2=A("auto"===a2?null:a2,this.minorAutoInterval,q.tickPixelInterval/(k?5:1)*(c3-m)/((k?p/e.tickPositions.length:p)||1)),a2=y(a2),r2=e.getLinearTickPositions(a2,m,c3).map(this.log2lin),k||(this.minorAutoInterval=a2/5);k||(e.tickInterval=a2);return r2};a.prototype.lin2log=function(a2){return Math.pow(10,a2)};a.prototype.log2lin=function(a2){return Math.log(a2)/Math.LN10};return a}();c2.Additions=r})(B||(B={}));return B}));I(g,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[g["Core/Utilities.js"]],(function(c){var g2=c.erase,y=c.extend,A=c.isNumber,B;(function(c2){var C=[],x;c2.compose=function(c3,a){x||(x=c3);-1===C.indexOf(a)&&(C.push(a),y(a.prototype,t.prototype));return a};var t=function(){function c3(){}c3.prototype.getPlotBandPath=function(a,c4,m){void 0===m&&(m=this.options);var p=this.getPlotLinePath({value:c4,force:true,acrossPanes:m.acrossPanes}),k=[],e=this.horiz;c4=!A(this.min)||!A(this.max)||a<this.min&&c4<this.min||a>this.max&&c4>this.max;a=this.getPlotLinePath({value:a,force:true,acrossPanes:m.acrossPanes});m=1;if(a&&p){if(c4){var q=a.toString()===p.toString();m=0}for(c4=0;c4<a.length;c4+=2){var r=a[c4],g3=a[c4+1],t2=p[c4],u=p[c4+1];"M"!==r[0]&&"L"!==r[0]||"M"!==g3[0]&&"L"!==g3[0]||"M"!==t2[0]&&"L"!==t2[0]||"M"!==u[0]&&"L"!==u[0]||(e&&t2[1]===r[1]?(t2[1]+=m,u[1]+=m):e||t2[2]!==r[2]||(t2[2]+=m,u[2]+=m),k.push(["M",r[1],r[2]],["L",g3[1],g3[2]],["L",u[1],u[2]],["L",t2[1],t2[2]],["Z"]));k.isFlat=q}}return k};c3.prototype.addPlotBand=function(a){return this.addPlotBandOrLine(a,"plotBands")};c3.prototype.addPlotLine=function(a){return this.addPlotBandOrLine(a,"plotLines")};c3.prototype.addPlotBandOrLine=function(a,c4){var m=this,p=this.userOptions,k=new x(this,a);this.visible&&(k=k.render());if(k){this._addedPlotLB||(this._addedPlotLB=true,(p.plotLines||[]).concat(p.plotBands||[]).forEach((function(a2){m.addPlotBandOrLine(a2)})));if(c4){var e=p[c4]||[];e.push(a);p[c4]=e}this.plotLinesAndBands.push(k)}return k};c3.prototype.removePlotBandOrLine=function(a){var c4=this.plotLinesAndBands,m=this.options,p=this.userOptions;if(c4){for(var k=c4.length;k--;)c4[k].id===a&&c4[k].destroy();[m.plotLines||[],p.plotLines||[],m.plotBands||[],p.plotBands||[]].forEach((function(e){for(k=e.length;k--;)(e[k]||{}).id===a&&g2(e,e[k])}))}};c3.prototype.removePlotBand=function(a){this.removePlotBandOrLine(a)};c3.prototype.removePlotLine=function(a){this.removePlotBandOrLine(a)};return c3}()})(B||(B={}));return B}));I(g,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[g["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],g["Core/Utilities.js"]],(function(c,g2){var y=g2.arrayMax,L=g2.arrayMin,B=g2.defined,z=g2.destroyObjectProperties,C=g2.erase,x=g2.fireEvent,t=g2.merge,r=g2.objectEach,a=g2.pick;g2=function(){function q(a2,c2){this.axis=a2;c2&&(this.options=c2,this.id=c2.id)}q.compose=function(a2){return c.compose(q,a2)};q.prototype.render=function(){x(this,"render");var c2=this,p=c2.axis,k=p.horiz,e=p.logarithmic,q2=c2.options,g3=q2.color,H=a(q2.zIndex,0),C2=q2.events,u={},n=p.chart.renderer,w=q2.label,f=c2.label,l=q2.to,d=q2.from,b=q2.value,h=c2.svgElem,v=[],E=B(d)&&B(l);v=B(b);var J=!h,M={class:"highcharts-plot-"+(E?"band ":"line ")+(q2.className||"")},O=E?"bands":"lines";e&&(d=e.log2lin(d),l=e.log2lin(l),b=e.log2lin(b));p.chart.styledMode||(v?(M.stroke=g3||"#999999",M["stroke-width"]=a(q2.width,1),q2.dashStyle&&(M.dashstyle=q2.dashStyle)):E&&(M.fill=g3||"#e6ebf5",q2.borderWidth&&(M.stroke=q2.borderColor,M["stroke-width"]=q2.borderWidth)));u.zIndex=H;O+="-"+H;(e=p.plotLinesAndBandsGroups[O])||(p.plotLinesAndBandsGroups[O]=e=n.g("plot-"+O).attr(u).add());J&&(c2.svgElem=h=n.path().attr(M).add(e));if(v)v=p.getPlotLinePath({value:b,lineWidth:h.strokeWidth(),acrossPanes:q2.acrossPanes});else if(E)v=p.getPlotBandPath(d,l,q2);else return;!c2.eventsAdded&&C2&&(r(C2,(function(b2,d2){h.on(d2,(function(b3){C2[d2].apply(c2,[b3])}))})),c2.eventsAdded=true);(J||!h.d)&&v&&v.length?h.attr({d:v}):h&&(v?(h.show(),h.animate({d:v})):h.d&&(h.hide(),f&&(c2.label=f=f.destroy())));w&&(B(w.text)||B(w.formatter))&&v&&v.length&&0<p.width&&0<p.height&&!v.isFlat?(w=t({align:k&&E&&"center",x:k?!E&&4:10,verticalAlign:!k&&E&&"middle",y:k?E?16:10:E?6:-4,rotation:k&&!E&&90},w),this.renderLabel(w,v,E,H)):f&&f.hide();return c2};q.prototype.renderLabel=function(a2,c2,k,e){var m=this.axis,p=m.chart.renderer,q2=this.label;q2||(this.label=q2=p.text(this.getLabelText(a2),0,0,a2.useHTML).attr({align:a2.textAlign||a2.align,rotation:a2.rotation,class:"highcharts-plot-"+(k?"band":"line")+"-label "+(a2.className||""),zIndex:e}).add(),m.chart.styledMode||q2.css(t({textOverflow:"ellipsis"},a2.style)));e=c2.xBounds||[c2[0][1],c2[1][1],k?c2[2][1]:c2[0][1]];c2=c2.yBounds||[c2[0][2],c2[1][2],k?c2[2][2]:c2[0][2]];k=L(e);p=L(c2);q2.align(a2,false,{x:k,y:p,width:y(e)-k,height:y(c2)-p});q2.alignValue&&"left"!==q2.alignValue||(a2=a2.clip?m.width:m.chart.chartWidth,q2.css({width:(90===q2.rotation?m.height-(q2.alignAttr.y-m.top):a2-(q2.alignAttr.x-m.left))+"px"}));q2.show(true)};q.prototype.getLabelText=function(a2){return B(a2.formatter)?a2.formatter.call(this):a2.text};q.prototype.destroy=function(){C(this.axis.plotLinesAndBands,this);delete this.axis;z(this)};return q}();return g2}));I(g,"Core/Tooltip.js",[g["Core/FormatUtilities.js"],g["Core/Globals.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B){var z=c.format,C=g2.doc,x=y.distribute,t=B.clamp,r=B.css,a=B.discardElement,q=B.extend,m=B.fireEvent,p=B.isArray,k=B.isNumber,e=B.isString,D=B.merge,G=B.pick,H=B.splat,K=B.syncTimeout;c=function(){function c2(a2,e2){this.allowShared=true;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=true;this.isSticky=false;this.now={};this.options={};this.outside=false;this.chart=a2;this.init(a2,e2)}c2.prototype.applyFilter=function(){var a2=this.chart;a2.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+a2.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})};c2.prototype.bodyFormatter=function(a2){return a2.map((function(a3){var f=a3.series.tooltipOptions;return(f[(a3.point.formatPrefix||"point")+"Formatter"]||a3.point.tooltipFormatter).call(a3.point,f[(a3.point.formatPrefix||"point")+"Format"]||"")}))};c2.prototype.cleanSplit=function(a2){this.chart.series.forEach((function(n){var f=n&&n.tt;f&&(!f.isActive||a2?n.tt=f.destroy():f.isActive=false)}))};c2.prototype.defaultFormatter=function(a2){var n=this.points||H(this);var f=[a2.tooltipFooterHeaderFormatter(n[0])];f=f.concat(a2.bodyFormatter(n));f.push(a2.tooltipFooterHeaderFormatter(n[0],true));return f};c2.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(true),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),a(this.container));B.clearTimeout(this.hideTimer);B.clearTimeout(this.tooltipTimeout)};c2.prototype.getAnchor=function(a2,e2){var f=this.chart,l=f.pointer,d=f.inverted,b=f.plotTop;f=f.plotLeft;a2=H(a2);a2[0].series&&a2[0].series.yAxis&&!a2[0].series.yAxis.options.reversedStacks&&(a2=a2.slice().reverse());if(this.followPointer&&e2)"undefined"===typeof e2.chartX&&(e2=l.normalize(e2)),a2=[e2.chartX-f,e2.chartY-b];else if(a2[0].tooltipPos)a2=a2[0].tooltipPos;else{var h=0,n=0;a2.forEach((function(b2){if(b2=b2.pos(true))h+=b2[0],n+=b2[1]}));h/=a2.length;n/=a2.length;this.shared&&1<a2.length&&e2&&(d?h=e2.chartX:n=e2.chartY);a2=[h-f,n-b]}return a2.map(Math.round)};c2.prototype.getClassName=function(a2,k2,f){var l=a2.series,d=l.options;return[this.options.className,"highcharts-label",f&&"highcharts-tooltip-header",k2?"highcharts-tooltip-box":"highcharts-tooltip",!f&&"highcharts-color-"+G(a2.colorIndex,l.colorIndex),d&&d.className].filter(e).join(" ")};c2.prototype.getLabel=function(){var a2=this,e2=this.chart.styledMode,f=this.options,l=this.split&&this.allowShared,d=f.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),b,h=this.chart.renderer;if(a2.label){var v=!a2.label.hasClass("highcharts-label");(l&&!v||!l&&v)&&a2.destroy()}if(!this.label){if(this.outside){v=this.chart.options.chart.style;var k2=A.getRendererType();this.container=b=g2.doc.createElement("div");b.className="highcharts-tooltip-container";r(b,{position:"absolute",top:"1px",pointerEvents:d,zIndex:Math.max(this.options.style.zIndex||0,(v&&v.zIndex||0)+3)});g2.doc.body.appendChild(b);this.renderer=h=new k2(b,0,0,v,void 0,void 0,h.styledMode)}l?this.label=h.g("tooltip"):(this.label=h.label("",0,0,f.shape,void 0,void 0,f.useHTML,void 0,"tooltip").attr({padding:f.padding,r:f.borderRadius}),e2||this.label.attr({fill:f.backgroundColor,"stroke-width":f.borderWidth}).css(f.style).css({pointerEvents:d}).shadow(f.shadow));e2&&f.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(a2.outside&&!a2.split){var c3=this.label,m2=c3.xSetter,p2=c3.ySetter;c3.xSetter=function(d2){m2.call(c3,a2.distance);b.style.left=d2+"px"};c3.ySetter=function(d2){p2.call(c3,a2.distance);b.style.top=d2+"px"}}this.label.attr({zIndex:8}).add()}return this.label};c2.prototype.getPosition=function(a2,e2,f){var l=this.chart,d=this.distance,b={},h=l.inverted&&f.h||0,n=this.outside,k2=n?C.documentElement.clientWidth-2*d:l.chartWidth,c3=n?Math.max(C.body.scrollHeight,C.documentElement.scrollHeight,C.body.offsetHeight,C.documentElement.offsetHeight,C.documentElement.clientHeight):l.chartHeight,w=l.pointer.getChartPosition(),m2=function(b2){var h2="x"===b2;return[b2,h2?k2:c3,h2?a2:e2].concat(n?[h2?a2*w.scaleX:e2*w.scaleY,h2?w.left-d+(f.plotX+l.plotLeft)*w.scaleX:w.top-d+(f.plotY+l.plotTop)*w.scaleY,0,h2?k2:c3]:[h2?a2:e2,h2?f.plotX+l.plotLeft:f.plotY+l.plotTop,h2?l.plotLeft:l.plotTop,h2?l.plotLeft+l.plotWidth:l.plotTop+l.plotHeight])},p2=m2("y"),u=m2("x"),q2;m2=!!f.negative;!l.polar&&l.hoverSeries&&l.hoverSeries.yAxis&&l.hoverSeries.yAxis.reversed&&(m2=!m2);var g3=!this.followPointer&&G(f.ttBelow,!l.inverted===m2),r2=function(f2,a3,l2,e3,v,k3,c4){var m3=n?"y"===f2?d*w.scaleY:d*w.scaleX:d,E=(l2-e3)/2,p3=e3<v-d,u2=v+d+e3<a3,q3=v-m3-l2+E;v=v+m3-E;if(g3&&u2)b[f2]=v;else if(!g3&&p3)b[f2]=q3;else if(p3)b[f2]=Math.min(c4-e3,0>q3-h?q3:q3-h);else if(u2)b[f2]=Math.max(k3,v+h+l2>a3?v:v+h);else return false},t2=function(h2,f2,a3,l2,n2){var e3;n2<d||n2>f2-d?e3=false:b[h2]=n2<a3/2?1:n2>f2-l2/2?f2-l2-2:n2-a3/2;return e3},D2=function(b2){var d2=p2;p2=u;u=d2;q2=b2},N=function(){false!==r2.apply(0,p2)?false!==t2.apply(0,u)||q2||(D2(true),N()):q2?b.x=b.y=0:(D2(true),N())};(l.inverted||1<this.len)&&D2();N();return b};c2.prototype.hide=function(a2){var n=this;B.clearTimeout(this.hideTimer);a2=G(a2,this.options.hideDelay);this.isHidden||(this.hideTimer=K((function(){n.getLabel().fadeOut(a2?void 0:a2);n.isHidden=true}),a2))};c2.prototype.init=function(a2,e2){this.chart=a2;this.options=e2;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=true;this.split=e2.split&&!a2.inverted&&!a2.polar;this.shared=e2.shared||this.split;this.outside=G(e2.outside,!(!a2.scrollablePixelsX&&!a2.scrollablePixelsY))};c2.prototype.shouldStickOnContact=function(a2){return!(this.followPointer||!this.options.stickOnContact||a2&&!this.chart.pointer.inClass(a2.target,"highcharts-tooltip"))};c2.prototype.move=function(a2,e2,f,l){var d=this,b=d.now,h=false!==d.options.animation&&!d.isHidden&&(1<Math.abs(a2-b.x)||1<Math.abs(e2-b.y)),n=d.followPointer||1<d.len;q(b,{x:h?(2*b.x+a2)/3:a2,y:h?(b.y+e2)/2:e2,anchorX:n?void 0:h?(2*b.anchorX+f)/3:f,anchorY:n?void 0:h?(b.anchorY+l)/2:l});d.getLabel().attr(b);d.drawTracker();h&&(B.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){d&&d.move(a2,e2,f,l)}),32))};c2.prototype.refresh=function(a2,e2){var f=this.chart,l=this.options,d=f.pointer,b=H(a2),h=b[0],n=[],k2=l.formatter||this.defaultFormatter,c3=this.shared,w=f.styledMode,u={};if(l.enabled&&h.series){B.clearTimeout(this.hideTimer);this.allowShared=!(!p(a2)&&a2.series&&a2.series.noSharedTooltip);this.followPointer=!this.split&&h.series.tooltipOptions.followPointer;a2=this.getAnchor(a2,e2);var q2=a2[0],g3=a2[1];c3&&this.allowShared?(d.applyInactiveState(b),b.forEach((function(b2){b2.setState("hover");n.push(b2.getLabelConfig())})),u={x:h.category,y:h.y},u.points=n):u=h.getLabelConfig();this.len=n.length;k2=k2.call(u,this);c3=h.series;this.distance=G(c3.tooltipOptions.distance,16);if(false===k2)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(k2,b);else{var F=q2,r2=g3;e2&&d.isDirectTouch&&(F=e2.chartX-f.plotLeft,r2=e2.chartY-f.plotTop);if(f.polar||false===c3.options.clip||b.some((function(b2){return d.isDirectTouch||b2.series.shouldShowTooltip(F,r2)})))e2=this.getLabel(),l.style.width&&!w||e2.css({width:f.spacingBox.width+"px"}),e2.attr({text:k2&&k2.join?k2.join(""):k2}),e2.addClass(this.getClassName(h),true),w||e2.attr({stroke:l.borderColor||h.color||c3.color||"#666666"}),this.updatePosition({plotX:q2,plotY:g3,negative:h.negative,ttBelow:h.ttBelow,h:a2[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=false}m(this,"refresh")}};c2.prototype.renderSplit=function(a2,k2){function f(b2,d2,h2,a3,f2){void 0===f2&&(f2=true);h2?(d2=y2?0:ca,b2=t(b2-a3/2,X.left,X.right-a3-(l.outside?B2:0))):(d2-=L,b2=f2?b2-a3-H2:b2+H2,b2=t(b2,f2?b2:X.left,X.right));return{x:b2,y:d2}}var l=this,d=l.chart,b=l.chart,h=b.chartWidth,n=b.chartHeight,c3=b.plotHeight,w=b.plotLeft,m2=b.plotTop,p2=b.pointer,u=b.scrollablePixelsY;u=void 0===u?0:u;var g3=b.scrollablePixelsX,F=b.scrollingContainer;F=void 0===F?{scrollLeft:0,scrollTop:0}:F;var r2=F.scrollLeft;F=F.scrollTop;var D2=b.styledMode,H2=l.distance,K2=l.options,N=l.options.positioner,X=l.outside&&"number"!==typeof g3?C.documentElement.getBoundingClientRect():{left:r2,right:r2+h,top:F,bottom:F+n},ba=l.getLabel(),z2=this.renderer||d.renderer,y2=!(!d.xAxis[0]||!d.xAxis[0].opposite);d=p2.getChartPosition();var B2=d.left;d=d.top;var L=m2+F,A2=0,ca=c3-u;e(a2)&&(a2=[false,a2]);a2=a2.slice(0,k2.length+1).reduce((function(b2,d2,h2){if(false!==d2&&""!==d2){h2=k2[h2-1]||{isHeader:true,plotX:k2[0].plotX,plotY:c3,series:{}};var a3=h2.isHeader,e2=a3?l:h2.series;d2=d2.toString();var n2=e2.tt,v=h2.isHeader;var E=h2.series;n2||(n2={padding:K2.padding,r:K2.borderRadius},D2||(n2.fill=K2.backgroundColor,n2["stroke-width"]=K2.borderWidth),n2=z2.label("",0,0,K2[v?"headerShape":"shape"],void 0,void 0,K2.useHTML).addClass(l.getClassName(h2,true,v)).attr(n2).add(ba));n2.isActive=true;n2.attr({text:d2});D2||n2.css(K2.style).shadow(K2.shadow).attr({stroke:K2.borderColor||h2.color||E.color||"#333333"});e2=e2.tt=n2;v=e2.getBBox();d2=v.width+e2.strokeWidth();a3&&(A2=v.height,ca+=A2,y2&&(L-=A2));E=h2.plotX;E=void 0===E?0:E;n2=h2.plotY;n2=void 0===n2?0:n2;var p3=h2.series;if(h2.isHeader){E=w+E;var u2=m2+c3/2}else{var q2=p3.xAxis,J=p3.yAxis;E=q2.pos+t(E,-H2,q2.len+H2);p3.shouldShowTooltip(0,J.pos-m2+n2,{ignoreX:true})&&(u2=J.pos+n2)}E=t(E,X.left-H2,X.right+H2);"number"===typeof u2?(v=v.height+1,n2=N?N.call(l,d2,v,h2):f(E,u2,a3,d2),b2.push({align:N?0:void 0,anchorX:E,anchorY:u2,boxWidth:d2,point:h2,rank:G(n2.rank,a3?1:0),size:v,target:n2.y,tt:e2,x:n2.x})):e2.isActive=false}return b2}),[]);!N&&a2.some((function(b2){var d2=(l.outside?B2:0)+b2.anchorX;return d2<X.left&&d2+b2.boxWidth<X.right?true:d2<B2-X.left+b2.boxWidth&&X.right-d2>d2}))&&(a2=a2.map((function(b2){var d2=f(b2.anchorX,b2.anchorY,b2.point.isHeader,b2.boxWidth,false);return q(b2,{target:d2.y,x:d2.x})})));l.cleanSplit();x(a2,ca);var Z=B2,I2=B2;a2.forEach((function(b2){var d2=b2.x,h2=b2.boxWidth;b2=b2.isHeader;b2||(l.outside&&B2+d2<Z&&(Z=B2+d2),!b2&&l.outside&&Z+h2>I2&&(I2=B2+d2))}));a2.forEach((function(b2){var d2=b2.x,h2=b2.anchorX,a3=b2.pos,f2=b2.point.isHeader;a3={visibility:"undefined"===typeof a3?"hidden":"inherit",x:d2,y:(a3||0)+L,anchorX:h2,anchorY:b2.anchorY};if(l.outside&&d2<h2){var e2=B2-Z;0<e2&&(f2||(a3.x=d2+e2,a3.anchorX=h2+e2),f2&&(a3.x=(I2-Z)/2,a3.anchorX=h2+e2))}b2.tt.attr(a3)}));a2=l.container;u=l.renderer;l.outside&&a2&&u&&(b=ba.getBBox(),u.setSize(b.width+b.x,b.height+b.y,false),a2.style.left=Z+"px",a2.style.top=d+"px")};c2.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var a2=this.chart,e2=this.label,f=this.shared?a2.hoverPoints:a2.hoverPoint;if(e2&&f){var l={x:0,y:0,width:0,height:0};f=this.getAnchor(f);var d=e2.getBBox();f[0]+=a2.plotLeft-e2.translateX;f[1]+=a2.plotTop-e2.translateY;l.x=Math.min(0,f[0]);l.y=Math.min(0,f[1]);l.width=0>f[0]?Math.max(Math.abs(f[0]),d.width-f[0]):Math.max(Math.abs(f[0]),d.width);l.height=0>f[1]?Math.max(Math.abs(f[1]),d.height-Math.abs(f[1])):Math.max(Math.abs(f[1]),d.height);this.tracker?this.tracker.attr(l):(this.tracker=e2.renderer.rect(l).addClass("highcharts-tracker").add(e2),a2.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()};c2.prototype.styledModeFormat=function(a2){return a2.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')};c2.prototype.tooltipFooterHeaderFormatter=function(a2,e2){var f=a2.series,l=f.tooltipOptions,d=f.xAxis,b=d&&d.dateTime;d={isFooter:e2,labelConfig:a2};var h=l.xDateFormat,n=l[e2?"footerFormat":"headerFormat"];m(this,"headerFormatter",d,(function(d2){b&&!h&&k(a2.key)&&(h=b.getXDateFormat(a2.key,l.dateTimeLabelFormats));b&&h&&(a2.point&&a2.point.tooltipDateKeys||["key"]).forEach((function(b2){n=n.replace("{point."+b2+"}","{point."+b2+":"+h+"}")}));f.chart.styledMode&&(n=this.styledModeFormat(n));d2.text=z(n,{point:a2,series:f},this.chart)}));return d.text};c2.prototype.update=function(a2){this.destroy();D(true,this.chart.options.tooltip.userOptions,a2);this.init(this.chart,D(true,this.options,a2))};c2.prototype.updatePosition=function(a2){var e2=this.chart,f=this.distance,l=this.options,d=e2.pointer,b=this.getLabel(),h=d.getChartPosition();d=h.left;var n=h.top,k2=h.scaleX;h=h.scaleY;var c3=(l.positioner||this.getPosition).call(this,b.width,b.height,a2),m2=(a2.plotX||0)+e2.plotLeft;a2=(a2.plotY||0)+e2.plotTop;if(this.outside){l.positioner&&(c3.x+=d-f,c3.y+=n-f);f=l.borderWidth+2*f;this.renderer.setSize(b.width+f,b.height+f,false);if(1!==k2||1!==h)r(this.container,{transform:"scale(".concat(k2,", ").concat(h,")")}),m2*=k2,a2*=h;m2+=d-c3.x;a2+=n-c3.y}this.move(Math.round(c3.x),Math.round(c3.y||0),m2,a2)};return c2}();return c}));I(g,"Core/Series/Point.js",[g["Core/Renderer/HTML/AST.js"],g["Core/Animation/AnimationUtilities.js"],g["Core/Defaults.js"],g["Core/FormatUtilities.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B){var z=g2.animObject,C=y.defaultOptions,x=A.format,t=B.addEvent,r=B.defined,a=B.erase,q=B.extend,m=B.fireEvent,p=B.getNestedProperty,k=B.isArray,e=B.isFunction,D=B.isNumber,G=B.isObject,H=B.merge,K=B.objectEach,u=B.pick,n=B.syncTimeout,w=B.removeEvent,f=B.uniqueKey;g2=function(){function l(){this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=false;this.percentage=this.options=this.name=void 0;this.selected=false;this.total=this.shapeArgs=this.series=void 0;this.visible=true;this.x=void 0}l.prototype.animateBeforeDestroy=function(){var d=this,b={x:d.startXPos,opacity:0},h=d.getGraphicalProps();h.singular.forEach((function(h2){d[h2]=d[h2].animate("dataLabel"===h2?{x:d[h2].startXPos,y:d[h2].startYPos,opacity:0}:b)}));h.plural.forEach((function(b2){d[b2].forEach((function(b3){b3.element&&b3.animate(q({x:d.startXPos},b3.startYPos?{x:b3.startXPos,y:b3.startYPos}:{}))}))}))};l.prototype.applyOptions=function(d,b){var h=this.series,a2=h.options.pointValKey||h.pointValKey;d=l.prototype.optionsToObject.call(this,d);q(this,d);this.options=this.options?q(this.options,d):d;d.group&&delete this.group;d.dataLabels&&delete this.dataLabels;a2&&(this.y=l.prototype.getNestedProperty.call(this,a2));this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof b&&h.xAxis&&h.xAxis.hasNames&&(this.x=h.xAxis.nameToX(this));"undefined"===typeof this.x&&h?this.x="undefined"===typeof b?h.autoIncrement():b:D(d.x)&&h.options.relativeXValue&&(this.x=h.autoIncrement(d.x));return this};l.prototype.destroy=function(){function d(){if(b.graphic||b.graphics||b.dataLabel||b.dataLabels)w(b),b.destroyElements();for(k2 in b)b[k2]=null}var b=this,h=b.series,f2=h.chart;h=h.options.dataSorting;var l2=f2.hoverPoints,e2=z(b.series.chart.renderer.globalAnimation),k2;b.legendItem&&f2.legend.destroyItem(b);l2&&(b.setState(),a(l2,b),l2.length||(f2.hoverPoints=null));if(b===f2.hoverPoint)b.onMouseOut();h&&h.enabled?(this.animateBeforeDestroy(),n(d,e2.duration)):d();f2.pointCount--};l.prototype.destroyElements=function(d){var b=this;d=b.getGraphicalProps(d);d.singular.forEach((function(d2){b[d2]=b[d2].destroy()}));d.plural.forEach((function(d2){b[d2].forEach((function(b2){b2&&b2.element&&b2.destroy()}));delete b[d2]}))};l.prototype.firePointEvent=function(d,b,h){var a2=this,f2=this.series.options;(f2.point.events[d]||a2.options&&a2.options.events&&a2.options.events[d])&&a2.importEvents();"click"===d&&f2.allowPointSelect&&(h=function(b2){a2.select&&a2.select(null,b2.ctrlKey||b2.metaKey||b2.shiftKey)});m(a2,d,b,h)};l.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};l.prototype.getGraphicalProps=function(d){var b=this,h=[],a2={singular:[],plural:[]},f2;d=d||{graphic:1,dataLabel:1};d.graphic&&h.push("graphic","shadowGroup");d.dataLabel&&h.push("dataLabel","dataLabelPath","dataLabelUpper","connector");for(f2=h.length;f2--;){var l2=h[f2];b[l2]&&a2.singular.push(l2)}["graphic","dataLabel","connector"].forEach((function(h2){var f3=h2+"s";d[h2]&&b[f3]&&a2.plural.push(f3)}));return a2};l.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};l.prototype.getNestedProperty=function(d){if(d)return 0===d.indexOf("custom.")?p(d,this.options):this[d]};l.prototype.getZone=function(){var d=this.series,b=d.zones;d=d.zoneAxis||"y";var h,a2=0;for(h=b[a2];this[d]>=h.value;)h=b[++a2];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=h&&h.color&&!this.options.color?h.color:this.nonZonedColor;return h};l.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};l.prototype.init=function(d,b,h){this.series=d;this.applyOptions(b,h);this.id=r(this.id)?this.id:f();this.resolveColor();d.chart.pointCount++;m(this,"afterInit");return this};l.prototype.isValid=function(){return null!==this.x&&D(this.y)};l.prototype.optionsToObject=function(d){var b=this.series,h=b.options.keys,a2=h||b.pointArrayMap||["y"],f2=a2.length,e2={},n2=0,c2=0;if(D(d)||null===d)e2[a2[0]]=d;else if(k(d))for(!h&&d.length>f2&&(b=typeof d[0],"string"===b?e2.name=d[0]:"number"===b&&(e2.x=d[0]),n2++);c2<f2;)h&&"undefined"===typeof d[n2]||(0<a2[c2].indexOf(".")?l.prototype.setNestedProperty(e2,d[n2],a2[c2]):e2[a2[c2]]=d[n2]),n2++,c2++;else"object"===typeof d&&(e2=d,d.dataLabels&&(b._hasPointLabels=true),d.marker&&(b._hasPointMarkers=true));return e2};l.prototype.pos=function(d,b){void 0===b&&(b=this.plotY);var h=this.plotX,a2=this.series,f2=a2.chart,l2=a2.xAxis;a2=a2.yAxis;var e2=0,n2=0;if(D(h)&&D(b))return d&&(e2=l2?l2.pos:f2.plotLeft,n2=a2?a2.pos:f2.plotTop),f2.inverted&&l2&&a2?[a2.len-b+n2,l2.len-h+e2]:[h+e2,b+n2]};l.prototype.resolveColor=function(){var d=this.series,b=d.chart.styledMode;var h=d.chart.options.chart.colorCount;delete this.nonZonedColor;if(d.options.colorByPoint){if(!b){h=d.options.colors||d.chart.options.colors;var a2=h[d.colorCounter];h=h.length}b=d.colorCounter;d.colorCounter++;d.colorCounter===h&&(d.colorCounter=0)}else b||(a2=d.color),b=d.colorIndex;this.colorIndex=u(this.options.colorIndex,b);this.color=u(this.options.color,a2)};l.prototype.setNestedProperty=function(d,b,h){h.split(".").reduce((function(d2,h2,a2,f2){d2[h2]=f2.length-1===a2?b:G(d2[h2],true)?d2[h2]:{};return d2[h2]}),d);return d};l.prototype.shouldDraw=function(){return!this.isNull};l.prototype.tooltipFormatter=function(d){var b=this.series,h=b.tooltipOptions,a2=u(h.valueDecimals,""),f2=h.valuePrefix||"",l2=h.valueSuffix||"";b.chart.styledMode&&(d=b.chart.tooltip.styledModeFormat(d));(b.pointArrayMap||["y"]).forEach((function(b2){b2="{point."+b2;if(f2||l2)d=d.replace(RegExp(b2+"}","g"),f2+b2+"}"+l2);d=d.replace(RegExp(b2+"}","g"),b2+":,."+a2+"f}")}));return x(d,{point:this,series:this.series},b.chart)};l.prototype.update=function(d,b,h,a2){function f2(){l2.applyOptions(d);var a3=n2&&l2.hasMockGraphic;a3=null===l2.y?!a3:a3;n2&&a3&&(l2.graphic=n2.destroy(),delete l2.hasMockGraphic);G(d,true)&&(n2&&n2.element&&d&&d.marker&&"undefined"!==typeof d.marker.symbol&&(l2.graphic=n2.destroy()),d&&d.dataLabels&&l2.dataLabel&&(l2.dataLabel=l2.dataLabel.destroy()),l2.connector&&(l2.connector=l2.connector.destroy()));c2=l2.index;e2.updateParallelArrays(l2,c2);v.data[c2]=G(v.data[c2],true)||G(d,true)?l2.options:u(d,v.data[c2]);e2.isDirty=e2.isDirtyData=true;!e2.fixedBox&&e2.hasCartesianSeries&&(k2.isDirtyBox=true);"point"===v.legendType&&(k2.isDirtyLegend=true);b&&k2.redraw(h)}var l2=this,e2=l2.series,n2=l2.graphic,k2=e2.chart,v=e2.options,c2;b=u(b,true);false===a2?f2():l2.firePointEvent("update",{options:d},f2)};l.prototype.remove=function(d,b){this.series.removePoint(this.series.data.indexOf(this),d,b)};l.prototype.select=function(d,b){var h=this,a2=h.series,f2=a2.chart;this.selectedStaging=d=u(d,!h.selected);h.firePointEvent(d?"select":"unselect",{accumulate:b},(function(){h.selected=h.options.selected=d;a2.options.data[a2.data.indexOf(h)]=h.options;h.setState(d&&"select");b||f2.getSelectedPoints().forEach((function(b2){var d2=b2.series;b2.selected&&b2!==h&&(b2.selected=b2.options.selected=false,d2.options.data[d2.data.indexOf(b2)]=b2.options,b2.setState(f2.hoverPoints&&d2.options.inactiveOtherPoints?"inactive":""),b2.firePointEvent("unselect"))}))}));delete this.selectedStaging};l.prototype.onMouseOver=function(d){var b=this.series.chart,h=b.pointer;d=d?h.normalize(d):h.getChartCoordinatesFromPoint(this,b.inverted);h.runPointActions(d,this)};l.prototype.onMouseOut=function(){var d=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(d.hoverPoints||[]).forEach((function(b){b.setState()}));d.hoverPoints=d.hoverPoint=null};l.prototype.importEvents=function(){if(!this.hasImportedEvents){var d=this,b=H(d.series.options.point,d.options).events;d.events=b;K(b,(function(b2,a2){e(b2)&&t(d,a2,b2)}));this.hasImportedEvents=true}};l.prototype.setState=function(d,b){var h=this.series,a2=this.state,f2=h.options.states[d||"normal"]||{},l2=C.plotOptions[h.type].marker&&h.options.marker,e2=l2&&false===l2.enabled,n2=l2&&l2.states&&l2.states[d||"normal"]||{},k2=false===n2.enabled,w2=this.marker||{},p2=h.chart,g3=l2&&h.markerAttribs,r2=h.halo,t2,G2=h.stateMarkerGraphic;d=d||"";if(!(d===this.state&&!b||this.selected&&"select"!==d||false===f2.enabled||d&&(k2||e2&&false===n2.enabled)||d&&w2.states&&w2.states[d]&&false===w2.states[d].enabled)){this.state=d;g3&&(t2=h.markerAttribs(this,d));if(this.graphic&&!this.hasMockGraphic){a2&&this.graphic.removeClass("highcharts-point-"+a2);d&&this.graphic.addClass("highcharts-point-"+d);if(!p2.styledMode){a2=h.pointAttribs(this,d);var N=u(p2.options.chart.animation,f2.animation);var x2=a2.opacity;h.options.inactiveOtherPoints&&D(x2)&&((this.dataLabels||[]).forEach((function(b2){b2&&!b2.hasClass("highcharts-data-label-hidden")&&b2.animate({opacity:x2},N)})),this.connector&&this.connector.animate({opacity:x2},N));this.graphic.animate(a2,N)}t2&&this.graphic.animate(t2,u(p2.options.chart.animation,n2.animation,l2.animation));G2&&G2.hide()}else{if(d&&n2){l2=w2.symbol||h.symbol;G2&&G2.currentSymbol!==l2&&(G2=G2.destroy());if(t2)if(G2)G2[b?"animate":"attr"]({x:t2.x,y:t2.y});else l2&&(h.stateMarkerGraphic=G2=p2.renderer.symbol(l2,t2.x,t2.y,t2.width,t2.height).add(h.markerGroup),G2.currentSymbol=l2);!p2.styledMode&&G2&&"inactive"!==this.state&&G2.attr(h.pointAttribs(this,d))}G2&&(G2[d&&this.isInside?"show":"hide"](),G2.element.point=this,G2.addClass(this.getClassName(),true))}f2=f2.halo;t2=(G2=this.graphic||G2)&&G2.visibility||"inherit";f2&&f2.size&&G2&&"hidden"!==t2&&!this.isCluster?(r2||(h.halo=r2=p2.renderer.path().add(G2.parentGroup)),r2.show()[b?"animate":"attr"]({d:this.haloPath(f2.size)}),r2.attr({class:"highcharts-halo highcharts-color-"+u(this.colorIndex,h.colorIndex)+(this.className?" "+this.className:""),visibility:t2,zIndex:-1}),r2.point=this,p2.styledMode||r2.attr(q({fill:this.color||h.color,"fill-opacity":f2.opacity},c.filterUserAttributes(f2.attributes||{})))):r2&&r2.point&&r2.point.haloPath&&r2.animate({d:r2.point.haloPath(0)},null,r2.hide);m(this,"afterSetState",{state:d})}};l.prototype.haloPath=function(d){var b=this.pos();return b?this.series.chart.renderer.symbols.circle(Math.floor(b[0])-d,b[1]-d,2*d,2*d):[]};return l}();return g2}));I(g,"Core/Pointer.js",[g["Core/Color/Color.js"],g["Core/Globals.js"],g["Core/Tooltip.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){var B=c.parse,z=g2.charts,C=g2.noop,x=A.addEvent,t=A.attr,r=A.css,a=A.defined,q=A.extend,m=A.find,p=A.fireEvent,k=A.isNumber,e=A.isObject,D=A.objectEach,G=A.offset,H=A.pick,K=A.splat;c=function(){function c2(a2,e2){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=false;this.eventsToUnbind=[];this.chart=a2;this.hasDragged=false;this.options=e2;this.init(a2,e2)}c2.prototype.applyInactiveState=function(a2){var e2=[],f;(a2||[]).forEach((function(a3){f=a3.series;e2.push(f);f.linkedParent&&e2.push(f.linkedParent);f.linkedSeries&&(e2=e2.concat(f.linkedSeries));f.navigatorSeries&&e2.push(f.navigatorSeries)}));this.chart.series.forEach((function(a3){-1===e2.indexOf(a3)?a3.setState("inactive",true):a3.options.inactiveOtherPoints&&a3.setAllPointsToState("inactive")}))};c2.prototype.destroy=function(){var a2=this;this.eventsToUnbind.forEach((function(a3){return a3()}));this.eventsToUnbind=[];g2.chartCount||(c2.unbindDocumentMouseUp&&(c2.unbindDocumentMouseUp=c2.unbindDocumentMouseUp()),c2.unbindDocumentTouchEnd&&(c2.unbindDocumentTouchEnd=c2.unbindDocumentTouchEnd()));clearInterval(a2.tooltipTimeout);D(a2,(function(e2,f){a2[f]=void 0}))};c2.prototype.getSelectionMarkerAttrs=function(a2,e2){var f=this,l={args:{chartX:a2,chartY:e2},attrs:{},shapeType:"rect"};p(this,"getSelectionMarkerAttrs",l,(function(d){var b=f.chart,h=f.mouseDownX;h=void 0===h?0:h;var l2=f.mouseDownY;l2=void 0===l2?0:l2;var n=f.zoomHor,k2=f.zoomVert;d=d.attrs;d.x=b.plotLeft;d.y=b.plotTop;d.width=n?1:b.plotWidth;d.height=k2?1:b.plotHeight;n&&(b=a2-h,d.width=Math.abs(b),d.x=(0<b?0:b)+h);k2&&(b=e2-l2,d.height=Math.abs(b),d.y=(0<b?0:b)+l2)}));return l};c2.prototype.drag=function(a2){var n=this.chart,f=n.options.chart,l=n.plotLeft,d=n.plotTop,b=n.plotWidth,h=n.plotHeight,k2=this.mouseDownX||0,c3=this.mouseDownY||0,m2=e(f.panning)?f.panning&&f.panning.enabled:f.panning,p2=f.panKey&&a2[f.panKey+"Key"],q2=a2.chartX,u=a2.chartY,g3=this.selectionMarker;g3&&g3.touch||(q2<l?q2=l:q2>l+b&&(q2=l+b),u<d?u=d:u>d+h&&(u=d+h),this.hasDragged=Math.sqrt(Math.pow(k2-q2,2)+Math.pow(c3-u,2)),10<this.hasDragged&&(l=n.isInsidePlot(k2-l,c3-d,{visiblePlotOnly:true}),u=this.getSelectionMarkerAttrs(q2,u),q2=u.shapeType,u=u.attrs,!n.hasCartesianSeries&&!n.mapView||!this.zoomX&&!this.zoomY||!l||p2||g3||(this.selectionMarker=g3=n.renderer[q2](),g3.attr({class:"highcharts-selection-marker",zIndex:7}).add(),n.styledMode||g3.attr({fill:f.selectionMarkerFill||B("#335cad").setOpacity(.25).get()})),g3&&g3.attr(u),l&&!g3&&m2&&n.pan(a2,f.panning)))};c2.prototype.dragStart=function(a2){var e2=this.chart;e2.mouseIsDown=a2.type;e2.cancelClick=false;e2.mouseDownX=this.mouseDownX=a2.chartX;e2.mouseDownY=this.mouseDownY=a2.chartY};c2.prototype.getSelectionBox=function(a2){var e2={args:{marker:a2},result:{}};p(this,"getSelectionBox",e2,(function(f){f.result={x:a2.attr?+a2.attr("x"):a2.x,y:a2.attr?+a2.attr("y"):a2.y,width:a2.attr?a2.attr("width"):a2.width,height:a2.attr?a2.attr("height"):a2.height}}));return e2.result};c2.prototype.drop=function(e2){var n=this,f=this.chart,l=this.hasPinched;if(this.selectionMarker){var d=this.getSelectionBox(this.selectionMarker),b=d.x,h=d.y,c3=d.width,m2=d.height,u={originalEvent:e2,xAxis:[],yAxis:[],x:b,y:h,width:c3,height:m2},g3=!!f.mapView;if(this.hasDragged||l)f.axes.forEach((function(d2){if(d2.zoomEnabled&&a(d2.min)&&(l||n[{xAxis:"zoomX",yAxis:"zoomY"}[d2.coll]])&&k(b)&&k(h)&&k(c3)&&k(m2)){var f2=d2.horiz,v="touchend"===e2.type?d2.minPixelPadding:0,w=d2.toValue((f2?b:h)+v);f2=d2.toValue((f2?b+c3:h+m2)-v);u[d2.coll].push({axis:d2,min:Math.min(w,f2),max:Math.max(w,f2)});g3=true}})),g3&&p(f,"selection",u,(function(b2){f.zoom(q(b2,l?{animation:false}:null))}));k(f.index)&&(this.selectionMarker=this.selectionMarker.destroy());l&&this.scaleGroups()}f&&k(f.index)&&(r(f.container,{cursor:f._cursor}),f.cancelClick=10<this.hasDragged,f.mouseIsDown=this.hasDragged=this.hasPinched=false,this.pinchDown=[])};c2.prototype.findNearestKDPoint=function(a2,k2,f){var l;a2.forEach((function(d){var b=!(d.noSharedTooltip&&k2)&&0>d.options.findNearestPointBy.indexOf("y");d=d.searchPoint(f,b);if((b=e(d,true)&&d.series)&&!(b=!e(l,true))){b=l.distX-d.distX;var h=l.dist-d.dist,a3=(d.series.group&&d.series.group.zIndex)-(l.series.group&&l.series.group.zIndex);b=0<(0!==b&&k2?b:0!==h?h:0!==a3?a3:l.series.index>d.series.index?-1:1)}b&&(l=d)}));return l};c2.prototype.getChartCoordinatesFromPoint=function(a2,e2){var f=a2.series,l=f.xAxis;f=f.yAxis;var d=a2.shapeArgs;if(l&&f){var b=H(a2.clientX,a2.plotX),h=a2.plotY||0;a2.isNode&&d&&k(d.x)&&k(d.y)&&(b=d.x,h=d.y);return e2?{chartX:f.len+f.pos-h,chartY:l.len+l.pos-b}:{chartX:b+l.pos,chartY:h+f.pos}}if(d&&d.x&&d.y)return{chartX:d.x,chartY:d.y}};c2.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a2=this.chart.container,e2=G(a2);this.chartPosition={left:e2.left,top:e2.top,scaleX:1,scaleY:1};var f=a2.offsetWidth;a2=a2.offsetHeight;2<f&&2<a2&&(this.chartPosition.scaleX=e2.width/f,this.chartPosition.scaleY=e2.height/a2);return this.chartPosition};c2.prototype.getCoordinates=function(a2){var e2={xAxis:[],yAxis:[]};this.chart.axes.forEach((function(f){e2[f.isXAxis?"xAxis":"yAxis"].push({axis:f,value:f.toValue(a2[f.horiz?"chartX":"chartY"])})}));return e2};c2.prototype.getHoverData=function(a2,k2,f,l,d,b){var h=[];l=!(!l||!a2);var n=function(b2){return b2.visible&&!(!d&&b2.directTouch)&&H(b2.options.enableMouseTracking,true)},c3={chartX:b?b.chartX:void 0,chartY:b?b.chartY:void 0,shared:d};p(this,"beforeGetHoverData",c3);var w=k2&&!k2.stickyTracking?[k2]:f.filter((function(b2){return b2.stickyTracking&&(c3.filter||n)(b2)}));var u=l||!b?a2:this.findNearestKDPoint(w,d,b);k2=u&&u.series;u&&(d&&!k2.noSharedTooltip?(w=f.filter((function(b2){return c3.filter?c3.filter(b2):n(b2)&&!b2.noSharedTooltip})),w.forEach((function(b2){var d2=m(b2.points,(function(b3){return b3.x===u.x&&!b3.isNull}));e(d2)&&(b2.boosted&&b2.boost&&(d2=b2.boost.getPoint(d2)),h.push(d2))}))):h.push(u));c3={hoverPoint:u};p(this,"afterGetHoverData",c3);return{hoverPoint:c3.hoverPoint,hoverSeries:k2,hoverPoints:h}};c2.prototype.getPointFromEvent=function(a2){a2=a2.target;for(var e2;a2&&!e2;)e2=a2.point,a2=a2.parentNode;return e2};c2.prototype.onTrackerMouseOut=function(a2){a2=a2.relatedTarget||a2.toElement;var e2=this.chart.hoverSeries;this.isDirectTouch=false;if(!(!e2||!a2||e2.stickyTracking||this.inClass(a2,"highcharts-tooltip")||this.inClass(a2,"highcharts-series-"+e2.index)&&this.inClass(a2,"highcharts-tracker")))e2.onMouseOut()};c2.prototype.inClass=function(a2,e2){for(var f;a2;){if(f=t(a2,"class")){if(-1!==f.indexOf(e2))return true;if(-1!==f.indexOf("highcharts-container"))return false}a2=a2.parentElement}};c2.prototype.init=function(a2,e2){this.options=e2;this.chart=a2;this.runChartClick=!(!e2.chart.events||!e2.chart.events.click);this.pinchDown=[];this.lastValidTouch={};y&&(a2.tooltip=new y(a2,e2.tooltip));this.setDOMEvents()};c2.prototype.normalize=function(a2,e2){var f=a2.touches,l=f?f.length?f.item(0):H(f.changedTouches,a2.changedTouches)[0]:a2;e2||(e2=this.getChartPosition());f=l.pageX-e2.left;l=l.pageY-e2.top;f/=e2.scaleX;l/=e2.scaleY;return q(a2,{chartX:Math.round(f),chartY:Math.round(l)})};c2.prototype.onContainerClick=function(a2){var e2=this.chart,f=e2.hoverPoint;a2=this.normalize(a2);var l=e2.plotLeft,d=e2.plotTop;e2.cancelClick||(f&&this.inClass(a2.target,"highcharts-tracker")?(p(f.series,"click",q(a2,{point:f})),e2.hoverPoint&&f.firePointEvent("click",a2)):(q(a2,this.getCoordinates(a2)),e2.isInsidePlot(a2.chartX-l,a2.chartY-d,{visiblePlotOnly:true})&&p(e2,"click",a2)))};c2.prototype.onContainerMouseDown=function(a2){var e2=1===((a2.buttons||a2.button)&1);a2=this.normalize(a2);if(g2.isFirefox&&0!==a2.button)this.onContainerMouseMove(a2);if("undefined"===typeof a2.button||e2)this.zoomOption(a2),e2&&a2.preventDefault&&a2.preventDefault(),this.dragStart(a2)};c2.prototype.onContainerMouseLeave=function(a2){var e2=z[H(c2.hoverChartIndex,-1)],f=this.chart.tooltip;a2=this.normalize(a2);e2&&(a2.relatedTarget||a2.toElement)&&(e2.pointer.reset(),e2.pointer.chartPosition=void 0);f&&!f.isHidden&&this.reset()};c2.prototype.onContainerMouseEnter=function(a2){delete this.chartPosition};c2.prototype.onContainerMouseMove=function(a2){var e2=this.chart,f=e2.tooltip;a2=this.normalize(a2);this.setHoverChartIndex();a2.preventDefault||(a2.returnValue=false);("mousedown"===e2.mouseIsDown||this.touchSelect(a2))&&this.drag(a2);e2.openMenu||!this.inClass(a2.target,"highcharts-tracker")&&!e2.isInsidePlot(a2.chartX-e2.plotLeft,a2.chartY-e2.plotTop,{visiblePlotOnly:true})||f&&f.shouldStickOnContact(a2)||(this.inClass(a2.target,"highcharts-no-tooltip")?this.reset(false,0):this.runPointActions(a2))};c2.prototype.onDocumentTouchEnd=function(a2){var e2=z[H(c2.hoverChartIndex,-1)];e2&&e2.pointer.drop(a2)};c2.prototype.onContainerTouchMove=function(a2){if(this.touchSelect(a2))this.onContainerMouseMove(a2);else this.touch(a2)};c2.prototype.onContainerTouchStart=function(a2){if(this.touchSelect(a2))this.onContainerMouseDown(a2);else this.zoomOption(a2),this.touch(a2,true)};c2.prototype.onDocumentMouseMove=function(a2){var e2=this.chart,f=e2.tooltip,l=this.chartPosition;a2=this.normalize(a2,l);!l||e2.isInsidePlot(a2.chartX-e2.plotLeft,a2.chartY-e2.plotTop,{visiblePlotOnly:true})||f&&f.shouldStickOnContact(a2)||this.inClass(a2.target,"highcharts-tracker")||this.reset()};c2.prototype.onDocumentMouseUp=function(a2){var e2=z[H(c2.hoverChartIndex,-1)];e2&&e2.pointer.drop(a2)};c2.prototype.pinch=function(a2){var e2=this,f=e2.chart,l=e2.pinchDown,d=a2.touches||[],b=d.length,h=e2.lastValidTouch,k2=e2.hasZoom,c3={},n=1===b&&(e2.inClass(a2.target,"highcharts-tracker")&&f.runTrackerClick||e2.runChartClick),m2={},u=e2.chart.tooltip;u=1===b&&H(u&&u.options.followTouchMove,true);var g3=e2.selectionMarker;1<b?e2.initiated=true:u&&(e2.initiated=false);k2&&e2.initiated&&!n&&false!==a2.cancelable&&a2.preventDefault();[].map.call(d,(function(b2){return e2.normalize(b2)}));"touchstart"===a2.type?([].forEach.call(d,(function(b2,d2){l[d2]={chartX:b2.chartX,chartY:b2.chartY}})),h.x=[l[0].chartX,l[1]&&l[1].chartX],h.y=[l[0].chartY,l[1]&&l[1].chartY],f.axes.forEach((function(b2){if(b2.zoomEnabled){var d2=f.bounds[b2.horiz?"h":"v"],a3=b2.minPixelPadding,h2=b2.toPixels(Math.min(H(b2.options.min,b2.dataMin),b2.dataMin)),l2=b2.toPixels(Math.max(H(b2.options.max,b2.dataMax),b2.dataMax)),e3=Math.max(h2,l2);d2.min=Math.min(b2.pos,Math.min(h2,l2)-a3);d2.max=Math.max(b2.pos+b2.len,e3+a3)}})),e2.res=true):u?this.runPointActions(e2.normalize(a2)):l.length&&(p(f,"touchpan",{originalEvent:a2},(function(){g3||(e2.selectionMarker=g3=q({destroy:C,touch:true},f.plotBox));e2.pinchTranslate(l,d,c3,g3,m2,h);e2.hasPinched=k2;e2.scaleGroups(c3,m2)})),e2.res&&(e2.res=false,this.reset(false,0)))};c2.prototype.pinchTranslate=function(a2,e2,f,l,d,b){this.zoomHor&&this.pinchTranslateDirection(true,a2,e2,f,l,d,b);this.zoomVert&&this.pinchTranslateDirection(false,a2,e2,f,l,d,b)};c2.prototype.pinchTranslateDirection=function(a2,e2,f,l,d,b,h,k2){var c3=this.chart,v=a2?"x":"y",n=a2?"X":"Y",m2="chart"+n,p2=a2?"width":"height",u=c3["plot"+(a2?"Left":"Top")],w=c3.inverted,q2=c3.bounds[a2?"h":"v"],g3=1===e2.length,r2=e2[0][m2],t2=!g3&&e2[1][m2];e2=function(){"number"===typeof H2&&20<Math.abs(r2-t2)&&(G2=k2||Math.abs(x2-H2)/Math.abs(r2-t2));D2=(u-x2)/G2+r2;N=c3["plot"+(a2?"Width":"Height")]/G2};var N,D2,G2=k2||1,x2=f[0][m2],H2=!g3&&f[1][m2];e2();f=D2;if(f<q2.min){f=q2.min;var C2=true}else f+N>q2.max&&(f=q2.max-N,C2=true);C2?(x2-=.8*(x2-h[v][0]),"number"===typeof H2&&(H2-=.8*(H2-h[v][1])),e2()):h[v]=[x2,H2];w||(b[v]=D2-u,b[p2]=N);b=w?1/G2:G2;d[p2]=N;d[v]=f;l[w?a2?"scaleY":"scaleX":"scale"+n]=G2;l["translate"+n]=b*u+(x2-b*r2)};c2.prototype.reset=function(a2,e2){var f=this.chart,l=f.hoverSeries,d=f.hoverPoint,b=f.hoverPoints,h=f.tooltip,k2=h&&h.shared?b:d;a2&&k2&&K(k2).forEach((function(b2){b2.series.isCartesian&&"undefined"===typeof b2.plotX&&(a2=false)}));if(a2)h&&k2&&K(k2).length&&(h.refresh(k2),h.shared&&b?b.forEach((function(b2){b2.setState(b2.state,true);b2.series.isCartesian&&(b2.series.xAxis.crosshair&&b2.series.xAxis.drawCrosshair(null,b2),b2.series.yAxis.crosshair&&b2.series.yAxis.drawCrosshair(null,b2))})):d&&(d.setState(d.state,true),f.axes.forEach((function(b2){b2.crosshair&&d.series[b2.coll]===b2&&b2.drawCrosshair(null,d)}))));else{if(d)d.onMouseOut();b&&b.forEach((function(b2){b2.setState()}));if(l)l.onMouseOut();h&&h.hide(e2);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());f.axes.forEach((function(b2){b2.hideCrosshair()}));this.hoverX=f.hoverPoints=f.hoverPoint=null}};c2.prototype.runPointActions=function(a2,e2,f){var l=this.chart,d=l.tooltip&&l.tooltip.options.enabled?l.tooltip:void 0,b=d?d.shared:false,h=e2||l.hoverPoint,k2=h&&h.series||l.hoverSeries;e2=this.getHoverData(h,k2,l.series,(!a2||"touchmove"!==a2.type)&&(!!e2||k2&&k2.directTouch&&this.isDirectTouch),b,a2);h=e2.hoverPoint;k2=e2.hoverSeries;var n=e2.hoverPoints;e2=k2&&k2.tooltipOptions.followPointer&&!k2.tooltipOptions.split;var p2=b&&k2&&!k2.noSharedTooltip;if(h&&(f||h!==l.hoverPoint||d&&d.isHidden)){(l.hoverPoints||[]).forEach((function(b2){-1===n.indexOf(b2)&&b2.setState()}));if(l.hoverSeries!==k2)k2.onMouseOver();this.applyInactiveState(n);(n||[]).forEach((function(b2){b2.setState("hover")}));l.hoverPoint&&l.hoverPoint.firePointEvent("mouseOut");if(!h.series)return;l.hoverPoints=n;l.hoverPoint=h;h.firePointEvent("mouseOver",void 0,(function(){d&&h&&d.refresh(p2?n:h,a2)}))}else e2&&d&&!d.isHidden&&(f=d.getAnchor([{}],a2),l.isInsidePlot(f[0],f[1],{visiblePlotOnly:true})&&d.updatePosition({plotX:f[0],plotY:f[1]}));this.unDocMouseMove||(this.unDocMouseMove=x(l.container.ownerDocument,"mousemove",(function(b2){var d2=z[c2.hoverChartIndex];if(d2)d2.pointer.onDocumentMouseMove(b2)})),this.eventsToUnbind.push(this.unDocMouseMove));l.axes.forEach((function(b2){var d2=H((b2.crosshair||{}).snap,true),h2;d2&&((h2=l.hoverPoint)&&h2.series[b2.coll]===b2||(h2=m(n,(function(d3){return d3.series&&d3.series[b2.coll]===b2}))));h2||!d2?b2.drawCrosshair(a2,h2):b2.hideCrosshair()}))};c2.prototype.scaleGroups=function(a2,e2){var f=this.chart;f.series.forEach((function(l){var d=a2||l.getPlotBox();l.group&&(l.xAxis&&l.xAxis.zoomEnabled||f.mapView)&&(l.group.attr(d),l.markerGroup&&(l.markerGroup.attr(d),l.markerGroup.clip(e2?f.clipRect:null)),l.dataLabelsGroup&&l.dataLabelsGroup.attr(d))}));f.clipRect.attr(e2||f.clipBox)};c2.prototype.setDOMEvents=function(){var a2=this,e2=this.chart.container,f=e2.ownerDocument;e2.onmousedown=this.onContainerMouseDown.bind(this);e2.onmousemove=this.onContainerMouseMove.bind(this);e2.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(x(e2,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(x(e2,"mouseleave",this.onContainerMouseLeave.bind(this)));c2.unbindDocumentMouseUp||(c2.unbindDocumentMouseUp=x(f,"mouseup",this.onDocumentMouseUp.bind(this)));for(var l=this.chart.renderTo.parentElement;l&&"BODY"!==l.tagName;)this.eventsToUnbind.push(x(l,"scroll",(function(){delete a2.chartPosition}))),l=l.parentElement;g2.hasTouch&&(this.eventsToUnbind.push(x(e2,"touchstart",this.onContainerTouchStart.bind(this),{passive:false})),this.eventsToUnbind.push(x(e2,"touchmove",this.onContainerTouchMove.bind(this),{passive:false})),c2.unbindDocumentTouchEnd||(c2.unbindDocumentTouchEnd=x(f,"touchend",this.onDocumentTouchEnd.bind(this),{passive:false})))};c2.prototype.setHoverChartIndex=function(){var a2=this.chart,e2=g2.charts[H(c2.hoverChartIndex,-1)];if(e2&&e2!==a2)e2.pointer.onContainerMouseLeave({relatedTarget:a2.container});e2&&e2.mouseIsDown||(c2.hoverChartIndex=a2.index)};c2.prototype.touch=function(a2,e2){var f=this.chart;this.setHoverChartIndex();if(1===a2.touches.length)if(a2=this.normalize(a2),f.isInsidePlot(a2.chartX-f.plotLeft,a2.chartY-f.plotTop,{visiblePlotOnly:true})&&!f.openMenu){e2&&this.runPointActions(a2);if("touchmove"===a2.type){e2=this.pinchDown;var d=e2[0]?4<=Math.sqrt(Math.pow(e2[0].chartX-a2.chartX,2)+Math.pow(e2[0].chartY-a2.chartY,2)):false}H(d,true)&&this.pinch(a2)}else e2&&this.reset();else 2===a2.touches.length&&this.pinch(a2)};c2.prototype.touchSelect=function(a2){return!(!this.chart.options.chart.zooming.singleTouch||!a2.touches||1!==a2.touches.length)};c2.prototype.zoomOption=function(a2){var e2=this.chart,f=e2.options.chart;e2=e2.inverted;var l=f.zooming.type||"";/touch/.test(a2.type)&&(l=H(f.zooming.pinchType,l));this.zoomX=a2=/x/.test(l);this.zoomY=f=/y/.test(l);this.zoomHor=a2&&!e2||f&&e2;this.zoomVert=f&&!e2||a2&&e2;this.hasZoom=a2||f};return c2}();return c}));I(g,"Core/MSPointer.js",[g["Core/Globals.js"],g["Core/Pointer.js"],g["Core/Utilities.js"]],(function(c,g2,y){function A(){var a2=[];a2.item=function(a3){return this[a3]};m(e,(function(e2){a2.push({pageX:e2.pageX,pageY:e2.pageY,target:e2.target})}));return a2}function B(a2,e2,k2,c2){var n=C[g2.hoverChartIndex||NaN];"touch"!==a2.pointerType&&a2.pointerType!==a2.MSPOINTER_TYPE_TOUCH||!n||(n=n.pointer,c2(a2),n[e2]({type:k2,target:a2.currentTarget,preventDefault:t,touches:A()}))}var z=this&&this.__extends||function(){var a2=function(e2,k2){a2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a3,e3){a3.__proto__=e3}||function(a3,e3){for(var k3 in e3)e3.hasOwnProperty(k3)&&(a3[k3]=e3[k3])};return a2(e2,k2)};return function(e2,k2){function c2(){this.constructor=e2}a2(e2,k2);e2.prototype=null===k2?Object.create(k2):(c2.prototype=k2.prototype,new c2)}}(),C=c.charts,x=c.doc,t=c.noop,r=c.win,a=y.addEvent,q=y.css,m=y.objectEach,p=y.pick,k=y.removeEvent,e={},D=!!r.PointerEvent;return function(m2){function g3(){return null!==m2&&m2.apply(this,arguments)||this}z(g3,m2);g3.isRequired=function(){return!(c.hasTouch||!r.PointerEvent&&!r.MSPointerEvent)};g3.prototype.batchMSEvents=function(a2){a2(this.chart.container,D?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a2(this.chart.container,D?"pointermove":"MSPointerMove",this.onContainerPointerMove);a2(x,D?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};g3.prototype.destroy=function(){this.batchMSEvents(k);m2.prototype.destroy.call(this)};g3.prototype.init=function(a2,e2){m2.prototype.init.call(this,a2,e2);this.hasZoom&&q(a2.container,{"-ms-touch-action":"none","touch-action":"none"})};g3.prototype.onContainerPointerDown=function(a2){B(a2,"onContainerTouchStart","touchstart",(function(a3){e[a3.pointerId]={pageX:a3.pageX,pageY:a3.pageY,target:a3.currentTarget}}))};g3.prototype.onContainerPointerMove=function(a2){B(a2,"onContainerTouchMove","touchmove",(function(a3){e[a3.pointerId]={pageX:a3.pageX,pageY:a3.pageY};e[a3.pointerId].target||(e[a3.pointerId].target=a3.currentTarget)}))};g3.prototype.onDocumentPointerUp=function(a2){B(a2,"onDocumentTouchEnd","touchend",(function(a3){delete e[a3.pointerId]}))};g3.prototype.setDOMEvents=function(){var e2=this.chart.tooltip;m2.prototype.setDOMEvents.call(this);(this.hasZoom||p(e2&&e2.options.followTouchMove,true))&&this.batchMSEvents(a)};return g3}(g2)}));I(g,"Core/Legend/Legend.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/FormatUtilities.js"],g["Core/Globals.js"],g["Core/Series/Point.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z){var C=c.animObject,x=c.setAnimation,t=g2.format,r=y.marginNames,a=B.distribute,q=z.addEvent,m=z.createElement,p=z.css,k=z.defined,e=z.discardElement,D=z.find,G=z.fireEvent,H=z.isNumber,K=z.merge,u=z.pick,n=z.relativeLength,w=z.stableSort,f=z.syncTimeout;c=function(){function l(d,b){this.allItems=[];this.contentGroup=this.box=void 0;this.display=false;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options=void 0;this.padding=0;this.pages=[];this.proximate=false;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=d;this.init(d,b)}l.prototype.init=function(d,b){this.chart=d;this.setOptions(b);b.enabled&&(this.render(),q(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=q(this.chart,"render",(function(){this.legend.proximatePositions();this.legend.positionItems()})):this.unchartrender&&this.unchartrender())};l.prototype.setOptions=function(d){var b=u(d.padding,8);this.options=d;this.chart.styledMode||(this.itemStyle=d.itemStyle,this.itemHiddenStyle=K(this.itemStyle,d.itemHiddenStyle));this.itemMarginTop=d.itemMarginTop||0;this.itemMarginBottom=d.itemMarginBottom||0;this.padding=b;this.initialItemY=b-5;this.symbolWidth=u(d.symbolWidth,16);this.pages=[];this.proximate="proximate"===d.layout&&!this.chart.inverted;this.baseline=void 0};l.prototype.update=function(d,b){var a2=this.chart;this.setOptions(K(true,this.options,d));this.destroy();a2.isDirtyLegend=a2.isDirtyBox=true;u(b,true)&&a2.redraw();G(this,"afterUpdate")};l.prototype.colorizeItem=function(d,b){var a2=d.legendItem||{},f2=a2.group,l2=a2.label,e2=a2.line;a2=a2.symbol;if(f2)f2[b?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var k2=this.options;f2=this.itemHiddenStyle.color;k2=b?k2.itemStyle.color:f2;var c2=b?d.color||f2:f2,n2=d.options&&d.options.marker,m2={fill:c2};l2&&l2.css({fill:k2,color:k2});e2&&e2.attr({stroke:c2});a2&&(n2&&a2.isMarker&&(m2=d.pointAttribs(),b||(m2.stroke=m2.fill=f2)),a2.attr(m2))}G(this,"afterColorizeItem",{item:d,visible:b})};l.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};l.prototype.positionItem=function(d){var b=this,a2=d.legendItem||{},f2=a2.group,l2=a2.x;l2=void 0===l2?0:l2;a2=a2.y;a2=void 0===a2?0:a2;var e2=this.options,c2=e2.symbolPadding,n2=!e2.rtl;e2=d.checkbox;f2&&f2.element&&(c2={translateX:n2?l2:this.legendWidth-l2-2*c2-4,translateY:a2},f2[k(f2.translateY)?"animate":"attr"](c2,void 0,(function(){G(b,"afterPositionItem",{item:d})})));e2&&(e2.x=l2,e2.y=a2)};l.prototype.destroyItem=function(d){for(var b=d.checkbox,a2=d.legendItem||{},f2=0,l2=["group","label","line","symbol"];f2<l2.length;f2++){var k2=l2[f2];a2[k2]&&(a2[k2]=a2[k2].destroy())}b&&e(b);d.legendItem=void 0};l.prototype.destroy=function(){for(var d=0,b=this.getAllItems();d<b.length;d++)this.destroyItem(b[d]);d=0;for(b="clipRect up down pager nav box title group".split(" ");d<b.length;d++){var a2=b[d];this[a2]&&(this[a2]=this[a2].destroy())}this.display=null};l.prototype.positionCheckboxes=function(){var d=this.group&&this.group.alignAttr,b=this.clipHeight||this.legendHeight,a2=this.titleHeight;if(d){var f2=d.translateY;this.allItems.forEach((function(h){var l2=h.checkbox;if(l2){var e2=f2+a2+l2.y+(this.scrollOffset||0)+3;p(l2,{left:d.translateX+h.checkboxOffset+l2.x-20+"px",top:e2+"px",display:this.proximate||e2>f2-6&&e2<f2+b-6?"":"none"})}}),this)}};l.prototype.renderTitle=function(){var d=this.options,b=this.padding,a2=d.title,f2=0;a2.text&&(this.title||(this.title=this.chart.renderer.label(a2.text,b-3,b-4,void 0,void 0,void 0,d.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(a2.style),this.title.add(this.group)),a2.width||this.title.css({width:this.maxLegendWidth+"px"}),d=this.title.getBBox(),f2=d.height,this.offsetWidth=d.width,this.contentGroup.attr({translateY:f2}));this.titleHeight=f2};l.prototype.setText=function(d){var b=this.options;d.legendItem.label.attr({text:b.labelFormat?t(b.labelFormat,d,this.chart):b.labelFormatter.call(d)})};l.prototype.renderItem=function(d){var b=d.legendItem=d.legendItem||{},a2=this.chart,f2=a2.renderer,l2=this.options,e2=this.symbolWidth,k2=l2.symbolPadding||0,c2=this.itemStyle,n2=this.itemHiddenStyle,m2="horizontal"===l2.layout?u(l2.itemDistance,20):0,p2=!l2.rtl,q2=!d.series,w2=!q2&&d.series.drawLegendSymbol?d.series:d,g3=w2.options,r2=this.createCheckboxForItem&&g3&&g3.showCheckbox,t2=l2.useHTML,D2=d.options.className,G2=b.label;g3=e2+k2+m2+(r2?20:0);G2||(b.group=f2.g("legend-item").addClass("highcharts-"+w2.type+"-series highcharts-color-"+d.colorIndex+(D2?" "+D2:"")+(q2?" highcharts-series-"+d.index:"")).attr({zIndex:1}).add(this.scrollGroup),b.label=G2=f2.text("",p2?e2+k2:-k2,this.baseline||0,t2),a2.styledMode||G2.css(K(d.visible?c2:n2)),G2.attr({align:p2?"left":"right",zIndex:2}).add(b.group),this.baseline||(this.fontMetrics=f2.fontMetrics(a2.styledMode?12:c2.fontSize,G2),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,G2.attr("y",this.baseline),this.symbolHeight=l2.symbolHeight||this.fontMetrics.f,l2.squareSymbol&&(this.symbolWidth=u(l2.symbolWidth,Math.max(this.symbolHeight,16)),g3=this.symbolWidth+k2+m2+(r2?20:0),p2&&G2.attr("x",this.symbolWidth+k2))),w2.drawLegendSymbol(this,d),this.setItemEvents&&this.setItemEvents(d,G2,t2));r2&&!d.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(d);this.colorizeItem(d,d.visible);!a2.styledMode&&c2.width||G2.css({width:(l2.itemWidth||this.widthOption||a2.spacingBox.width)-g3+"px"});this.setText(d);a2=G2.getBBox();f2=this.fontMetrics&&this.fontMetrics.h||0;d.itemWidth=d.checkboxOffset=l2.itemWidth||b.labelWidth||a2.width+g3;this.maxItemWidth=Math.max(this.maxItemWidth,d.itemWidth);this.totalItemWidth+=d.itemWidth;this.itemHeight=d.itemHeight=Math.round(b.labelHeight||(a2.height>1.5*f2?a2.height:f2))};l.prototype.layoutItem=function(d){var b=this.options,a2=this.padding,f2="horizontal"===b.layout,l2=d.itemHeight,e2=this.itemMarginBottom,k2=this.itemMarginTop,c2=f2?u(b.itemDistance,20):0,n2=this.maxLegendWidth;b=b.alignColumns&&this.totalItemWidth>n2?this.maxItemWidth:d.itemWidth;var m2=d.legendItem||{};f2&&this.itemX-a2+b>n2&&(this.itemX=a2,this.lastLineHeight&&(this.itemY+=k2+this.lastLineHeight+e2),this.lastLineHeight=0);this.lastItemY=k2+this.itemY+e2;this.lastLineHeight=Math.max(l2,this.lastLineHeight);m2.x=this.itemX;m2.y=this.itemY;f2?this.itemX+=b:(this.itemY+=k2+l2+e2,this.lastLineHeight=l2);this.offsetWidth=this.widthOption||Math.max((f2?this.itemX-a2-(d.checkbox?0:c2):b)+a2,this.offsetWidth)};l.prototype.getAllItems=function(){var d=[];this.chart.series.forEach((function(b){var a2=b&&b.options;b&&u(a2.showInLegend,k(a2.linkedTo)?false:void 0,true)&&(d=d.concat((b.legendItem||{}).labels||("point"===a2.legendType?b.data:b)))}));G(this,"afterGetAllItems",{allItems:d});return d};l.prototype.getAlignment=function(){var d=this.options;return this.proximate?d.align.charAt(0)+"tv":d.floating?"":d.align.charAt(0)+d.verticalAlign.charAt(0)+d.layout.charAt(0)};l.prototype.adjustMargins=function(d,b){var a2=this.chart,f2=this.options,l2=this.getAlignment();l2&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(h,e2){h.test(l2)&&!k(d[e2])&&(a2[r[e2]]=Math.max(a2[r[e2]],a2.legend[(e2+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][e2]*f2[e2%2?"x":"y"]+u(f2.margin,12)+b[e2]+(a2.titleOffset[e2]||0)))}))};l.prototype.proximatePositions=function(){var d=this.chart,b=[],h="left"===this.options.align;this.allItems.forEach((function(a2){var f3;var l3=h;if(a2.yAxis){a2.xAxis.options.reversed&&(l3=!l3);a2.points&&(f3=D(l3?a2.points:a2.points.slice(0).reverse(),(function(b2){return H(b2.plotY)})));l3=this.itemMarginTop+a2.legendItem.label.getBBox().height+this.itemMarginBottom;var e3=a2.yAxis.top-d.plotTop;a2.visible?(f3=f3?f3.plotY:a2.yAxis.height,f3+=e3-.3*l3):f3=e3+a2.yAxis.height;b.push({target:f3,size:l3,item:a2})}}),this);for(var f2,l2=0,e2=a(b,d.plotHeight);l2<e2.length;l2++){var k2=e2[l2];f2=k2.item.legendItem||{};H(k2.pos)&&(f2.y=d.plotTop-d.spacing[0]+k2.pos)}};l.prototype.render=function(){var d=this.chart,b=d.renderer,a2=this.options,f2=this.padding,l2=this.getAllItems(),e2=this.group,k2=this.box;this.itemX=f2;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=n(a2.width,d.spacingBox.width-f2);var c2=d.spacingBox.width-2*f2-a2.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(c2/=2);this.maxLegendWidth=this.widthOption||c2;e2||(this.group=e2=b.g("legend").addClass(a2.className||"").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(e2),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();w(l2,(function(b2,d2){return(b2.options&&b2.options.legendIndex||0)-(d2.options&&d2.options.legendIndex||0)}));a2.reversed&&l2.reverse();this.allItems=l2;this.display=c2=!!l2.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;l2.forEach(this.renderItem,this);l2.forEach(this.layoutItem,this);l2=(this.widthOption||this.offsetWidth)+f2;var m2=this.lastItemY+this.lastLineHeight+this.titleHeight;m2=this.handleOverflow(m2);m2+=f2;k2||(this.box=k2=b.rect().addClass("highcharts-legend-box").attr({r:a2.borderRadius}).add(e2));d.styledMode||k2.attr({stroke:a2.borderColor,"stroke-width":a2.borderWidth||0,fill:a2.backgroundColor||"none"}).shadow(a2.shadow);if(0<l2&&0<m2)k2[k2.placed?"animate":"attr"](k2.crisp.call({},{x:0,y:0,width:l2,height:m2},k2.strokeWidth()));e2[c2?"show":"hide"]();d.styledMode&&"none"===e2.getStyle("display")&&(l2=m2=0);this.legendWidth=l2;this.legendHeight=m2;c2&&this.align();this.proximate||this.positionItems();G(this,"afterRender")};l.prototype.align=function(d){void 0===d&&(d=this.chart.spacingBox);var b=this.chart,a2=this.options,f2=d.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<b.titleOffset[0]?f2+=b.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<b.titleOffset[2]&&(f2-=b.titleOffset[2]);f2!==d.y&&(d=K(d,{y:f2}));b.hasRendered||(this.group.placed=false);this.group.align(K(a2,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":a2.verticalAlign}),true,d)};l.prototype.handleOverflow=function(d){var b=this,a2=this.chart,f2=a2.renderer,l2=this.options,e2=l2.y,k2="top"===l2.verticalAlign,c2=this.padding,n2=l2.maxHeight,m2=l2.navigation,p2=u(m2.animation,true),q2=m2.arrowSize||12,w2=this.pages,g3=this.allItems,r2=function(d2){"number"===typeof d2?H2.attr({height:d2}):H2&&(b.clipRect=H2.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=d2?"rect("+c2+"px,9999px,"+(c2+d2)+"px,0)":"auto")},t2=function(d2){b[d2]=f2.circle(0,0,1.3*q2).translate(q2/2,q2/2).add(C2);a2.styledMode||b[d2].attr("fill","rgba(0,0,0,0.0001)");return b[d2]},D2,G2,x2;e2=a2.spacingBox.height+(k2?-e2:e2)-c2;var C2=this.nav,H2=this.clipRect;"horizontal"!==l2.layout||"middle"===l2.verticalAlign||l2.floating||(e2/=2);n2&&(e2=Math.min(e2,n2));w2.length=0;d&&0<e2&&d>e2&&false!==m2.enabled?(this.clipHeight=D2=Math.max(e2-20-this.titleHeight-c2,0),this.currentPage=u(this.currentPage,1),this.fullHeight=d,g3.forEach((function(b2,d2){x2=b2.legendItem||{};b2=x2.y||0;var a3=Math.round(x2.label.getBBox().height),h=w2.length;if(!h||b2-w2[h-1]>D2&&(G2||b2)!==w2[h-1])w2.push(G2||b2),h++;x2.pageIx=h-1;G2&&((g3[d2-1].legendItem||{}).pageIx=h-1);d2===g3.length-1&&b2+a3-w2[h-1]>D2&&a3<=D2&&(w2.push(b2),x2.pageIx=h);b2!==G2&&(G2=b2)})),H2||(H2=b.clipRect=f2.clipRect(0,c2,9999,0),b.contentGroup.clip(H2)),r2(D2),C2||(this.nav=C2=f2.g().attr({zIndex:1}).add(this.group),this.up=f2.symbol("triangle",0,0,q2,q2).add(C2),t2("upTracker").on("click",(function(){b.scroll(-1,p2)})),this.pager=f2.text("",15,10).addClass("highcharts-legend-navigation"),!a2.styledMode&&m2.style&&this.pager.css(m2.style),this.pager.add(C2),this.down=f2.symbol("triangle-down",0,0,q2,q2).add(C2),t2("downTracker").on("click",(function(){b.scroll(1,p2)}))),b.scroll(0),d=e2):C2&&(r2(),this.nav=C2.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return d};l.prototype.scroll=function(d,b){var a2=this,l2=this.chart,e2=this.pages,k2=e2.length,c2=this.clipHeight,n2=this.options.navigation,m2=this.pager,p2=this.padding,q2=this.currentPage+d;q2>k2&&(q2=k2);0<q2&&("undefined"!==typeof b&&x(b,l2),this.nav.attr({translateX:p2,translateY:c2+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach((function(b2){b2.attr({class:1===q2?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),m2.attr({text:q2+"/"+k2}),[this.down,this.downTracker].forEach((function(b2){b2.attr({x:18+this.pager.getBBox().width,class:q2===k2?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),l2.styledMode||(this.up.attr({fill:1===q2?n2.inactiveColor:n2.activeColor}),this.upTracker.css({cursor:1===q2?"default":"pointer"}),this.down.attr({fill:q2===k2?n2.inactiveColor:n2.activeColor}),this.downTracker.css({cursor:q2===k2?"default":"pointer"})),this.scrollOffset=-e2[q2-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=q2,this.positionCheckboxes(),d=C(u(b,l2.renderer.globalAnimation,true)),f((function(){G(a2,"afterScroll",{currentPage:q2})}),d.duration))};l.prototype.setItemEvents=function(d,b,a2){var h=this,f2=d.legendItem||{},l2=h.chart.renderer.boxWrapper,e2=d instanceof A,k2="highcharts-legend-"+(e2?"point":"series")+"-active",c2=h.chart.styledMode,n2=function(b2){h.allItems.forEach((function(a3){d!==a3&&[a3].concat(a3.linkedSeries||[]).forEach((function(d2){d2.setState(b2,!e2)}))}))},m2=0;for(a2=a2?[b,f2.symbol]:[f2.group];m2<a2.length;m2++)if(f2=a2[m2])f2.on("mouseover",(function(){d.visible&&n2("inactive");d.setState("hover");d.visible&&l2.addClass(k2);c2||b.css(h.options.itemHoverStyle)})).on("mouseout",(function(){h.chart.styledMode||b.css(K(d.visible?h.itemStyle:h.itemHiddenStyle));n2("");l2.removeClass(k2);d.setState()})).on("click",(function(b2){var a3=function(){d.setVisible&&d.setVisible();n2(d.visible?"inactive":"")};l2.removeClass(k2);b2={browserEvent:b2};d.firePointEvent?d.firePointEvent("legendItemClick",b2,a3):G(d,"legendItemClick",b2,a3)}))};l.prototype.createCheckboxForItem=function(d){d.checkbox=m("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:d.selected,defaultChecked:d.selected},this.options.itemCheckboxStyle,this.chart.container);q(d.checkbox,"click",(function(b){G(d.series||d,"checkboxClick",{checked:b.target.checked,item:d},(function(){d.select()}))}))};return l}();return c}));I(g,"Core/Series/SeriesRegistry.js",[g["Core/Globals.js"],g["Core/Defaults.js"],g["Core/Series/Point.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){var B=g2.defaultOptions,z=A.extendClass,C=A.merge,x;(function(g3){function r(a,c2){var m=B.plotOptions||{},p=c2.defaultOptions,k=c2.prototype;k.type=a;k.pointClass||(k.pointClass=y);p&&(m[a]=p);g3.seriesTypes[a]=c2}g3.seriesTypes=c.seriesTypes;g3.registerSeriesType=r;g3.seriesType=function(a,c2,m,p,k){var e=B.plotOptions||{};c2=c2||"";e[a]=C(e[c2],m);r(a,z(g3.seriesTypes[c2]||function(){},p));g3.seriesTypes[a].prototype.type=a;k&&(g3.seriesTypes[a].prototype.pointClass=z(y,k));return g3.seriesTypes[a]}})(x||(x={}));return x}));I(g,"Core/Chart/Chart.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/Axis.js"],g["Core/Defaults.js"],g["Core/FormatUtilities.js"],g["Core/Foundation.js"],g["Core/Globals.js"],g["Core/Legend/Legend.js"],g["Core/MSPointer.js"],g["Core/Pointer.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Renderer/SVG/SVGRenderer.js"],g["Core/Time.js"],g["Core/Utilities.js"],g["Core/Renderer/HTML/AST.js"]],(function(c,g2,y,A,B,z,C,x,t,r,a,q,m,p,k){var e=c.animate,D=c.animObject,G=c.setAnimation,H=y.defaultOptions,K=y.defaultTime,u=A.numberFormat,n=B.registerEventOptions,w=z.charts,f=z.doc,l=z.marginNames,d=z.svg,b=z.win,h=a.seriesTypes,v=p.addEvent,E=p.attr,J=p.cleanRecursively,M=p.createElement,O=p.css,P=p.defined,T=p.discardElement,F=p.erase,Q=p.error,aa=p.extend,L=p.find,R=p.fireEvent,N=p.getStyle,X=p.isArray,ba=p.isNumber,da=p.isObject,V=p.isString,U=p.merge,Y=p.objectEach,S=p.pick,ca=p.pInt,Z=p.relativeLength,I2=p.removeEvent,ea=p.splat,fa=p.syncTimeout,ha=p.uniqueKey;c=function(){function a2(b2,d2,a3){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(b2,d2,a3)}a2.chart=function(b2,d2,h2){return new a2(b2,d2,h2)};a2.prototype.getArgs=function(b2,d2,a3){V(b2)||b2.nodeName?(this.renderTo=b2,this.init(d2,a3)):this.init(b2,d2)};a2.prototype.init=function(b2,d2){var a3=b2.plotOptions||{};R(this,"init",{args:arguments},(function(){var h2=U(H,b2),f2=h2.chart;Y(h2.plotOptions,(function(b3,d3){da(b3)&&(b3.tooltip=a3[d3]&&U(a3[d3].tooltip)||void 0)}));h2.tooltip.userOptions=b2.chart&&b2.chart.forExport&&b2.tooltip.userOptions||b2.tooltip;this.userOptions=b2;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=d2;this.isResizing=0;var l2=f2.zooming=f2.zooming||{};b2.chart&&!b2.chart.zooming&&(l2.resetButton=f2.resetZoomButton);l2.key=S(l2.key,f2.zoomKey);l2.pinchType=S(l2.pinchType,f2.pinchType);l2.singleTouch=S(l2.singleTouch,f2.zoomBySingleTouch);l2.type=S(l2.type,f2.zoomType);this.options=h2;this.axes=[];this.series=[];this.time=b2.time&&Object.keys(b2.time).length?new m(b2.time):z.time;this.numberFormatter=f2.numberFormatter||u;this.styledMode=f2.styledMode;this.hasCartesianSeries=f2.showAxes;this.index=w.length;w.push(this);z.chartCount++;n(this,f2);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;R(this,"afterInit");this.firstRender()}))};a2.prototype.initSeries=function(b2){var d2=this.options.chart;d2=b2.type||d2.type||d2.defaultSeriesType;var a3=h[d2];a3||Q(17,true,this,{missingModuleFor:d2});d2=new a3;"function"===typeof d2.init&&d2.init(this,b2);return d2};a2.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach((function(b2){b2.points||b2.data||!b2.enabledDataSorting||b2.setData(b2.options.data,false)}))};a2.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort((function(b2,d2){return b2.linkedSeries.length||d2.linkedSeries.length?d2.linkedSeries.length-b2.linkedSeries.length:0}))};a2.prototype.orderSeries=function(b2){var d2=this.series;b2=b2||0;for(var a3=d2.length;b2<a3;++b2)d2[b2]&&(d2[b2].index=b2,d2[b2].name=d2[b2].getName())};a2.prototype.isInsidePlot=function(b2,d2,a3){void 0===a3&&(a3={});var h2=this.inverted,f2=this.plotBox,l2=this.plotLeft,e2=this.plotTop,k2=this.scrollablePlotBox,c2=0;var n2=0;a3.visiblePlotOnly&&this.scrollingContainer&&(n2=this.scrollingContainer,c2=n2.scrollLeft,n2=n2.scrollTop);var v2=a3.series;f2=a3.visiblePlotOnly&&k2||f2;k2=a3.inverted?d2:b2;d2=a3.inverted?b2:d2;b2={x:k2,y:d2,isInsidePlot:true,options:a3};if(!a3.ignoreX){var m2=v2&&(h2&&!this.polar?v2.yAxis:v2.xAxis)||{pos:l2,len:Infinity};k2=a3.paneCoordinates?m2.pos+k2:l2+k2;k2>=Math.max(c2+l2,m2.pos)&&k2<=Math.min(c2+l2+f2.width,m2.pos+m2.len)||(b2.isInsidePlot=false)}!a3.ignoreY&&b2.isInsidePlot&&(h2=a3.axis&&!a3.axis.isXAxis&&a3.axis||v2&&(h2?v2.xAxis:v2.yAxis)||{pos:e2,len:Infinity},a3=a3.paneCoordinates?h2.pos+d2:e2+d2,a3>=Math.max(n2+e2,h2.pos)&&a3<=Math.min(n2+e2+f2.height,h2.pos+h2.len)||(b2.isInsidePlot=false));R(this,"afterIsInsidePlot",b2);return b2.isInsidePlot};a2.prototype.redraw=function(b2){R(this,"beforeRedraw");var d2=this.hasCartesianSeries?this.axes:this.colorAxis||[],a3=this.series,h2=this.pointer,f2=this.legend,l2=this.userOptions.legend,e2=this.renderer,k2=e2.isHidden(),c2=[],n2=this.isDirtyBox,v2=this.isDirtyLegend;this.setResponsive&&this.setResponsive(false);G(this.hasRendered?b2:false,this);k2&&this.temporaryDisplay();this.layOutTitles();for(b2=a3.length;b2--;){var m2=a3[b2];if(m2.options.stacking||m2.options.centerInCategory){var p2=true;if(m2.isDirty){var q2=true;break}}}if(q2)for(b2=a3.length;b2--;)m2=a3[b2],m2.options.stacking&&(m2.isDirty=true);a3.forEach((function(b3){b3.isDirty&&("point"===b3.options.legendType?("function"===typeof b3.updateTotals&&b3.updateTotals(),v2=true):l2&&(l2.labelFormatter||l2.labelFormat)&&(v2=true));b3.isDirtyData&&R(b3,"updatedData")}));v2&&f2&&f2.options.enabled&&(f2.render(),this.isDirtyLegend=false);p2&&this.getStacks();d2.forEach((function(b3){b3.updateNames();b3.setScale()}));this.getMargins();d2.forEach((function(b3){b3.isDirty&&(n2=true)}));d2.forEach((function(b3){var d3=b3.min+","+b3.max;b3.extKey!==d3&&(b3.extKey=d3,c2.push((function(){R(b3,"afterSetExtremes",aa(b3.eventArgs,b3.getExtremes()));delete b3.eventArgs})));(n2||p2)&&b3.redraw()}));n2&&this.drawChartBox();R(this,"predraw");a3.forEach((function(b3){(n2||b3.isDirty)&&b3.visible&&b3.redraw();b3.isDirtyData=false}));h2&&h2.reset(true);e2.draw();R(this,"redraw");R(this,"render");k2&&this.temporaryDisplay(true);c2.forEach((function(b3){b3.call()}))};a2.prototype.get=function(b2){function d2(d3){return d3.id===b2||d3.options&&d3.options.id===b2}for(var a3=this.series,h2=L(this.axes,d2)||L(this.series,d2),f2=0;!h2&&f2<a3.length;f2++)h2=L(a3[f2].points||[],d2);return h2};a2.prototype.getAxes=function(){var b2=this,d2=this.options,a3=d2.xAxis=ea(d2.xAxis||{});d2=d2.yAxis=ea(d2.yAxis||{});R(this,"getAxes");a3.forEach((function(b3,d3){b3.index=d3;b3.isX=true}));d2.forEach((function(b3,d3){b3.index=d3}));a3.concat(d2).forEach((function(d3){new g2(b2,d3)}));R(this,"afterGetAxes")};a2.prototype.getSelectedPoints=function(){return this.series.reduce((function(b2,d2){d2.getPointsCollection().forEach((function(d3){S(d3.selectedStaging,d3.selected)&&b2.push(d3)}));return b2}),[])};a2.prototype.getSelectedSeries=function(){return this.series.filter((function(b2){return b2.selected}))};a2.prototype.setTitle=function(b2,d2,a3){this.applyDescription("title",b2);this.applyDescription("subtitle",d2);this.applyDescription("caption",void 0);this.layOutTitles(a3)};a2.prototype.applyDescription=function(b2,d2){var a3=this,h2="title"===b2?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};h2=this.options[b2]=U(!this.styledMode&&{style:h2},this.options[b2],d2);var f2=this[b2];f2&&d2&&(this[b2]=f2=f2.destroy());h2&&!f2&&(f2=this.renderer.text(h2.text,0,0,h2.useHTML).attr({align:h2.align,class:"highcharts-"+b2,zIndex:h2.zIndex||4}).add(),f2.update=function(d3){a3[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[b2]](d3)},this.styledMode||f2.css(h2.style),this[b2]=f2)};a2.prototype.layOutTitles=function(b2){var d2=[0,0,0],a3=this.renderer,h2=this.spacingBox;["title","subtitle","caption"].forEach((function(b3){var f3=this[b3],l2=this.options[b3],e2=l2.verticalAlign||"top";b3="title"===b3?"top"===e2?-3:0:"top"===e2?d2[0]+2:0;var k2;if(f3){this.styledMode||(k2=l2.style&&l2.style.fontSize);k2=a3.fontMetrics(k2,f3).b;f3.css({width:(l2.width||h2.width+(l2.widthAdjust||0))+"px"});var c2=Math.round(f3.getBBox(l2.useHTML).height);f3.align(aa({y:"bottom"===e2?k2:b3+k2,height:c2},l2),false,"spacingBox");l2.floating||("top"===e2?d2[0]=Math.ceil(d2[0]+c2):"bottom"===e2&&(d2[2]=Math.ceil(d2[2]+c2)))}}),this);d2[0]&&"top"===(this.options.title.verticalAlign||"top")&&(d2[0]+=this.options.title.margin);d2[2]&&"bottom"===this.options.caption.verticalAlign&&(d2[2]+=this.options.caption.margin);var f2=!this.titleOffset||this.titleOffset.join(",")!==d2.join(",");this.titleOffset=d2;R(this,"afterLayOutTitles");!this.isDirtyBox&&f2&&(this.isDirtyBox=this.isDirtyLegend=f2,this.hasRendered&&S(b2,true)&&this.isDirtyBox&&this.redraw())};a2.prototype.getChartSize=function(){var b2=this.options.chart,d2=b2.width;b2=b2.height;var a3=this.renderTo;P(d2)||(this.containerWidth=N(a3,"width"));P(b2)||(this.containerHeight=N(a3,"height"));this.chartWidth=Math.max(0,d2||this.containerWidth||600);this.chartHeight=Math.max(0,Z(b2,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};a2.prototype.temporaryDisplay=function(b2){var d2=this.renderTo;if(b2)for(;d2&&d2.style;)d2.hcOrigStyle&&(O(d2,d2.hcOrigStyle),delete d2.hcOrigStyle),d2.hcOrigDetached&&(f.body.removeChild(d2),d2.hcOrigDetached=false),d2=d2.parentNode;else for(;d2&&d2.style;){f.body.contains(d2)||d2.parentNode||(d2.hcOrigDetached=true,f.body.appendChild(d2));if("none"===N(d2,"display",false)||d2.hcOricDetached)d2.hcOrigStyle={display:d2.style.display,height:d2.style.height,overflow:d2.style.overflow},b2={display:"block",overflow:"hidden"},d2!==this.renderTo&&(b2.height=0),O(d2,b2),d2.offsetWidth||d2.style.setProperty("display","block","important");d2=d2.parentNode;if(d2===f.body)break}};a2.prototype.setClassName=function(b2){this.container.className="highcharts-container "+(b2||"")};a2.prototype.getContainer=function(){var b2=this.options,a3=b2.chart,h2=ha(),l2,e2=this.renderTo;e2||(this.renderTo=e2=a3.renderTo);V(e2)&&(this.renderTo=e2=f.getElementById(e2));e2||Q(13,true,this);var c2=ca(E(e2,"data-highcharts-chart"));ba(c2)&&w[c2]&&w[c2].hasRendered&&w[c2].destroy();E(e2,"data-highcharts-chart",this.index);e2.innerHTML=k.emptyHTML;a3.skipClone||e2.offsetWidth||this.temporaryDisplay();this.getChartSize();c2=this.chartWidth;var n2=this.chartHeight;O(e2,{overflow:"hidden"});this.styledMode||(l2=aa({position:"relative",overflow:"hidden",width:c2+"px",height:n2+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},a3.style||{}));this.container=h2=M("div",{id:h2},l2,e2);this._cursor=h2.style.cursor;this.renderer=new(a3.renderer||!d?r.getRendererType(a3.renderer):q)(h2,c2,n2,void 0,a3.forExport,b2.exporting&&b2.exporting.allowHTML,this.styledMode);G(void 0,this);this.setClassName(a3.className);if(this.styledMode)for(var v2 in b2.defs)this.renderer.definition(b2.defs[v2]);else this.renderer.setStyle(a3.style);this.renderer.chartIndex=this.index;R(this,"afterGetContainer")};a2.prototype.getMargins=function(b2){var d2=this.spacing,a3=this.margin,h2=this.titleOffset;this.resetMargins();h2[0]&&!P(a3[0])&&(this.plotTop=Math.max(this.plotTop,h2[0]+d2[0]));h2[2]&&!P(a3[2])&&(this.marginBottom=Math.max(this.marginBottom,h2[2]+d2[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(a3,d2);R(this,"getMargins");b2||this.getAxisMargins()};a2.prototype.getAxisMargins=function(){var b2=this,d2=b2.axisOffset=[0,0,0,0],a3=b2.colorAxis,h2=b2.margin,f2=function(b3){b3.forEach((function(b4){b4.visible&&b4.getOffset()}))};b2.hasCartesianSeries?f2(b2.axes):a3&&a3.length&&f2(a3);l.forEach((function(a4,f3){P(h2[f3])||(b2[a4]+=d2[f3])}));b2.setChartSize()};a2.prototype.reflow=function(d2){var a3=this,h2=a3.options.chart,l2=a3.renderTo,e2=P(h2.width)&&P(h2.height),k2=h2.width||N(l2,"width");h2=h2.height||N(l2,"height");l2=d2?d2.target:b;delete a3.pointer.chartPosition;if(!e2&&!a3.isPrinting&&k2&&h2&&(l2===b||l2===f)){if(k2!==a3.containerWidth||h2!==a3.containerHeight)p.clearTimeout(a3.reflowTimeout),a3.reflowTimeout=fa((function(){a3.container&&a3.setSize(void 0,void 0,false)}),d2?100:0);a3.containerWidth=k2;a3.containerHeight=h2}};a2.prototype.setReflow=function(d2){var a3=this;false===d2||this.unbindReflow?false===d2&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=v(b,"resize",(function(b2){a3.options&&a3.reflow(b2)})),v(this,"destroy",this.unbindReflow))};a2.prototype.setSize=function(b2,d2,a3){var h2=this,f2=h2.renderer;h2.isResizing+=1;G(a3,h2);a3=f2.globalAnimation;h2.oldChartHeight=h2.chartHeight;h2.oldChartWidth=h2.chartWidth;"undefined"!==typeof b2&&(h2.options.chart.width=b2);"undefined"!==typeof d2&&(h2.options.chart.height=d2);h2.getChartSize();h2.styledMode||(a3?e:O)(h2.container,{width:h2.chartWidth+"px",height:h2.chartHeight+"px"},a3);h2.setChartSize(true);f2.setSize(h2.chartWidth,h2.chartHeight,a3);h2.axes.forEach((function(b3){b3.isDirty=true;b3.setScale()}));h2.isDirtyLegend=true;h2.isDirtyBox=true;h2.layOutTitles();h2.getMargins();h2.redraw(a3);h2.oldChartHeight=null;R(h2,"resize");fa((function(){h2&&R(h2,"endResize",null,(function(){--h2.isResizing}))}),D(a3).duration)};a2.prototype.setChartSize=function(b2){var d2=this.inverted,a3=this.renderer,h2=this.chartWidth,f2=this.chartHeight,l2=this.options.chart,e2=this.spacing,k2=this.clipOffset,c2,n2,v2,m2;this.plotLeft=c2=Math.round(this.plotLeft);this.plotTop=n2=Math.round(this.plotTop);this.plotWidth=v2=Math.max(0,Math.round(h2-c2-this.marginRight));this.plotHeight=m2=Math.max(0,Math.round(f2-n2-this.marginBottom));this.plotSizeX=d2?m2:v2;this.plotSizeY=d2?v2:m2;this.plotBorderWidth=l2.plotBorderWidth||0;this.spacingBox=a3.spacingBox={x:e2[3],y:e2[0],width:h2-e2[3]-e2[1],height:f2-e2[0]-e2[2]};this.plotBox=a3.plotBox={x:c2,y:n2,width:v2,height:m2};d2=2*Math.floor(this.plotBorderWidth/2);h2=Math.ceil(Math.max(d2,k2[3])/2);f2=Math.ceil(Math.max(d2,k2[0])/2);this.clipBox={x:h2,y:f2,width:Math.floor(this.plotSizeX-Math.max(d2,k2[1])/2-h2),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(d2,k2[2])/2-f2))};b2||(this.axes.forEach((function(b3){b3.setAxisSize();b3.setAxisTranslation()})),a3.alignElements());R(this,"afterSetChartSize",{skipAxes:b2})};a2.prototype.resetMargins=function(){R(this,"resetMargins");var b2=this,d2=b2.options.chart;["margin","spacing"].forEach((function(a3){var h2=d2[a3],f2=da(h2)?h2:[h2,h2,h2,h2];["Top","Right","Bottom","Left"].forEach((function(h3,l2){b2[a3][l2]=S(d2[a3+h3],f2[l2])}))}));l.forEach((function(d3,a3){b2[d3]=S(b2.margin[a3],b2.spacing[a3])}));b2.axisOffset=[0,0,0,0];b2.clipOffset=[0,0,0,0]};a2.prototype.drawChartBox=function(){var b2=this.options.chart,d2=this.renderer,a3=this.chartWidth,h2=this.chartHeight,f2=this.styledMode,l2=this.plotBGImage,e2=b2.backgroundColor,k2=b2.plotBackgroundColor,c2=b2.plotBackgroundImage,n2=this.plotLeft,v2=this.plotTop,m2=this.plotWidth,p2=this.plotHeight,q2=this.plotBox,u2=this.clipRect,g3=this.clipBox,w2=this.chartBackground,E2=this.plotBackground,r2=this.plotBorder,t2,F2="animate";w2||(this.chartBackground=w2=d2.rect().addClass("highcharts-background").add(),F2="attr");if(f2)var N2=t2=w2.strokeWidth();else{N2=b2.borderWidth||0;t2=N2+(b2.shadow?8:0);e2={fill:e2||"none"};if(N2||w2["stroke-width"])e2.stroke=b2.borderColor,e2["stroke-width"]=N2;w2.attr(e2).shadow(b2.shadow)}w2[F2]({x:t2/2,y:t2/2,width:a3-t2-N2%2,height:h2-t2-N2%2,r:b2.borderRadius});F2="animate";E2||(F2="attr",this.plotBackground=E2=d2.rect().addClass("highcharts-plot-background").add());E2[F2](q2);f2||(E2.attr({fill:k2||"none"}).shadow(b2.plotShadow),c2&&(l2?(c2!==l2.attr("href")&&l2.attr("href",c2),l2.animate(q2)):this.plotBGImage=d2.image(c2,n2,v2,m2,p2).add()));u2?u2.animate({width:g3.width,height:g3.height}):this.clipRect=d2.clipRect(g3);F2="animate";r2||(F2="attr",this.plotBorder=r2=d2.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());f2||r2.attr({stroke:b2.plotBorderColor,"stroke-width":b2.plotBorderWidth||0,fill:"none"});r2[F2](r2.crisp({x:n2,y:v2,width:m2,height:p2},-r2.strokeWidth()));this.isDirtyBox=false;R(this,"afterDrawChartBox")};a2.prototype.propFromSeries=function(){var b2=this,d2=b2.options.chart,a3=b2.options.series,f2,l2,e2;["inverted","angular","polar"].forEach((function(k2){l2=h[d2.type||d2.defaultSeriesType];e2=d2[k2]||l2&&l2.prototype[k2];for(f2=a3&&a3.length;!e2&&f2--;)(l2=h[a3[f2].type])&&l2.prototype[k2]&&(e2=true);b2[k2]=e2}))};a2.prototype.linkSeries=function(){var b2=this,d2=b2.series;d2.forEach((function(b3){b3.linkedSeries.length=0}));d2.forEach((function(d3){var a3=d3.options.linkedTo;V(a3)&&(a3=":previous"===a3?b2.series[d3.index-1]:b2.get(a3))&&a3.linkedParent!==d3&&(a3.linkedSeries.push(d3),d3.linkedParent=a3,a3.enabledDataSorting&&d3.setDataSortingOptions(),d3.visible=S(d3.options.visible,a3.options.visible,d3.visible))}));R(this,"afterLinkSeries")};a2.prototype.renderSeries=function(){this.series.forEach((function(b2){b2.translate();b2.render()}))};a2.prototype.renderLabels=function(){var b2=this,d2=b2.options.labels;d2.items&&d2.items.forEach((function(a3){var h2=aa(d2.style,a3.style),f2=ca(h2.left)+b2.plotLeft,l2=ca(h2.top)+b2.plotTop+12;delete h2.left;delete h2.top;b2.renderer.text(a3.html,f2,l2).attr({zIndex:2}).css(h2).add()}))};a2.prototype.render=function(){var b2=this.axes,d2=this.colorAxis,a3=this.renderer,h2=this.options,f2=function(b3){b3.forEach((function(b4){b4.visible&&b4.render()}))},l2=0;this.setTitle();this.legend=new C(this,h2.legend);this.getStacks&&this.getStacks();this.getMargins(true);this.setChartSize();h2=this.plotWidth;b2.some((function(b3){if(b3.horiz&&b3.visible&&b3.options.labels.enabled&&b3.series.length)return l2=21,true}));var e2=this.plotHeight=Math.max(this.plotHeight-l2,0);b2.forEach((function(b3){b3.setScale()}));this.getAxisMargins();var k2=1.1<h2/this.plotWidth,c2=1.05<e2/this.plotHeight;if(k2||c2)b2.forEach((function(b3){(b3.horiz&&k2||!b3.horiz&&c2)&&b3.setTickInterval(true)})),this.getMargins();this.drawChartBox();this.hasCartesianSeries?f2(b2):d2&&d2.length&&f2(d2);this.seriesGroup||(this.seriesGroup=a3.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=true};a2.prototype.addCredits=function(d2){var a3=this,h2=U(true,this.options.credits,d2);h2.enabled&&!this.credits&&(this.credits=this.renderer.text(h2.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){h2.href&&(b.location.href=h2.href)})).attr({align:h2.position.align,zIndex:8}),a3.styledMode||this.credits.css(h2.style),this.credits.add().align(h2.position),this.credits.update=function(b2){a3.credits=a3.credits.destroy();a3.addCredits(b2)})};a2.prototype.destroy=function(){var b2=this,d2=b2.axes,a3=b2.series,h2=b2.container,f2=h2&&h2.parentNode,l2;R(b2,"destroy");b2.renderer.forExport?F(w,b2):w[b2.index]=void 0;z.chartCount--;b2.renderTo.removeAttribute("data-highcharts-chart");I2(b2);for(l2=d2.length;l2--;)d2[l2]=d2[l2].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(l2=a3.length;l2--;)a3[l2]=a3[l2].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach((function(d3){var a4=b2[d3];a4&&a4.destroy&&(b2[d3]=a4.destroy())}));h2&&(h2.innerHTML=k.emptyHTML,I2(h2),f2&&T(h2));Y(b2,(function(d3,a4){delete b2[a4]}))};a2.prototype.firstRender=function(){var b2=this,d2=b2.options;if(!b2.isReadyToRender||b2.isReadyToRender()){b2.getContainer();b2.resetMargins();b2.setChartSize();b2.propFromSeries();b2.getAxes();(X(d2.series)?d2.series:[]).forEach((function(d3){b2.initSeries(d3)}));b2.linkSeries();b2.setSeriesData();R(b2,"beforeRender");t&&(x.isRequired()?b2.pointer=new x(b2,d2):b2.pointer=new t(b2,d2));b2.render();b2.pointer.getChartPosition();if(!b2.renderer.imgCount&&!b2.hasLoaded)b2.onload();b2.temporaryDisplay(true)}};a2.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach((function(b2){b2&&"undefined"!==typeof this.index&&b2.apply(this,[this])}),this);R(this,"load");R(this,"render");P(this.index)&&this.setReflow(this.options.chart.reflow);this.warnIfA11yModuleNotLoaded();this.hasLoaded=true};a2.prototype.warnIfA11yModuleNotLoaded=function(){var b2=this.options,d2=this.title;b2&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(d2&&d2.element.textContent||"").replace(/</g,"&lt;")}),b2.accessibility&&false===b2.accessibility.enabled||Q('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',false,this))};a2.prototype.addSeries=function(b2,d2,a3){var h2=this,f2;b2&&(d2=S(d2,true),R(h2,"addSeries",{options:b2},(function(){f2=h2.initSeries(b2);h2.isDirtyLegend=true;h2.linkSeries();f2.enabledDataSorting&&f2.setData(b2.data,false);R(h2,"afterAddSeries",{series:f2});d2&&h2.redraw(a3)})));return f2};a2.prototype.addAxis=function(b2,d2,a3,h2){return this.createAxis(d2?"xAxis":"yAxis",{axis:b2,redraw:a3,animation:h2})};a2.prototype.addColorAxis=function(b2,d2,a3){return this.createAxis("colorAxis",{axis:b2,redraw:d2,animation:a3})};a2.prototype.createAxis=function(b2,d2){b2=new g2(this,U(d2.axis,{index:this[b2].length,isX:"xAxis"===b2}));S(d2.redraw,true)&&this.redraw(d2.animation);return b2};a2.prototype.showLoading=function(b2){var d2=this,a3=d2.options,h2=a3.loading,f2=function(){l2&&O(l2,{left:d2.plotLeft+"px",top:d2.plotTop+"px",width:d2.plotWidth+"px",height:d2.plotHeight+"px"})},l2=d2.loadingDiv,c2=d2.loadingSpan;l2||(d2.loadingDiv=l2=M("div",{className:"highcharts-loading highcharts-loading-hidden"},null,d2.container));c2||(d2.loadingSpan=c2=M("span",{className:"highcharts-loading-inner"},null,l2),v(d2,"redraw",f2));l2.className="highcharts-loading";k.setElementHTML(c2,S(b2,a3.lang.loading,""));d2.styledMode||(O(l2,aa(h2.style,{zIndex:10})),O(c2,h2.labelStyle),d2.loadingShown||(O(l2,{opacity:0,display:""}),e(l2,{opacity:h2.style.opacity||.5},{duration:h2.showDuration||0})));d2.loadingShown=true;f2()};a2.prototype.hideLoading=function(){var b2=this.options,d2=this.loadingDiv;d2&&(d2.className="highcharts-loading highcharts-loading-hidden",this.styledMode||e(d2,{opacity:0},{duration:b2.loading.hideDuration||100,complete:function(){O(d2,{display:"none"})}}));this.loadingShown=false};a2.prototype.update=function(b2,d2,a3,h2){var f2=this,l2={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},e2=b2.isResponsiveOptions,k2=[],c2,v2;R(f2,"update",{options:b2});e2||f2.setResponsive(false,true);b2=J(b2,f2.options);f2.userOptions=U(f2.userOptions,b2);var p2=b2.chart;if(p2){U(true,f2.options.chart,p2);"className"in p2&&f2.setClassName(p2.className);"reflow"in p2&&f2.setReflow(p2.reflow);if("inverted"in p2||"polar"in p2||"type"in p2){f2.propFromSeries();var q2=true}"alignTicks"in p2&&(q2=true);"events"in p2&&n(this,p2);Y(p2,(function(b3,d3){-1!==f2.propsRequireUpdateSeries.indexOf("chart."+d3)&&(c2=true);-1!==f2.propsRequireDirtyBox.indexOf(d3)&&(f2.isDirtyBox=true);-1!==f2.propsRequireReflow.indexOf(d3)&&(e2?f2.isDirtyBox=true:v2=true)}));!f2.styledMode&&p2.style&&f2.renderer.setStyle(f2.options.chart.style||{})}!f2.styledMode&&b2.colors&&(this.options.colors=b2.colors);b2.time&&(this.time===K&&(this.time=new m(b2.time)),U(true,f2.options.time,b2.time));Y(b2,(function(d3,a4){if(f2[a4]&&"function"===typeof f2[a4].update)f2[a4].update(d3,false);else if("function"===typeof f2[l2[a4]])f2[l2[a4]](d3);else"colors"!==a4&&-1===f2.collectionsWithUpdate.indexOf(a4)&&U(true,f2.options[a4],b2[a4]);"chart"!==a4&&-1!==f2.propsRequireUpdateSeries.indexOf(a4)&&(c2=true)}));this.collectionsWithUpdate.forEach((function(d3){if(b2[d3]){var h3=[];f2[d3].forEach((function(b3,d4){b3.options.isInternal||h3.push(S(b3.options.index,d4))}));ea(b2[d3]).forEach((function(b3,l3){var e3=P(b3.id),k3;e3&&(k3=f2.get(b3.id));!k3&&f2[d3]&&(k3=f2[d3][h3?h3[l3]:l3])&&e3&&P(k3.options.id)&&(k3=void 0);k3&&k3.coll===d3&&(k3.update(b3,false),a3&&(k3.touched=true));!k3&&a3&&f2.collectionsWithInit[d3]&&(f2.collectionsWithInit[d3][0].apply(f2,[b3].concat(f2.collectionsWithInit[d3][1]||[]).concat([false])).touched=true)}));a3&&f2[d3].forEach((function(b3){b3.touched||b3.options.isInternal?delete b3.touched:k2.push(b3)}))}}));k2.forEach((function(b3){b3.chart&&b3.remove&&b3.remove(false)}));q2&&f2.axes.forEach((function(b3){b3.update({},false)}));c2&&f2.getSeriesOrderByLinks().forEach((function(b3){b3.chart&&b3.update({},false)}),this);q2=p2&&p2.width;p2=p2&&(V(p2.height)?Z(p2.height,q2||f2.chartWidth):p2.height);v2||ba(q2)&&q2!==f2.chartWidth||ba(p2)&&p2!==f2.chartHeight?f2.setSize(q2,p2,h2):S(d2,true)&&f2.redraw(h2);R(f2,"afterUpdate",{options:b2,redraw:d2,animation:h2})};a2.prototype.setSubtitle=function(b2,d2){this.applyDescription("subtitle",b2);this.layOutTitles(d2)};a2.prototype.setCaption=function(b2,d2){this.applyDescription("caption",b2);this.layOutTitles(d2)};a2.prototype.showResetZoom=function(){function b2(){d2.zoomOut()}var d2=this,a3=H.lang,h2=d2.options.chart.zooming.resetButton,f2=h2.theme,l2="chart"===h2.relativeTo||"spacingBox"===h2.relativeTo?null:"scrollablePlotBox";R(this,"beforeShowResetZoom",null,(function(){d2.resetZoomButton=d2.renderer.button(a3.resetZoom,null,null,b2,f2).attr({align:h2.position.align,title:a3.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(h2.position,false,l2)}));R(this,"afterShowResetZoom")};a2.prototype.zoomOut=function(){R(this,"selection",{resetSelection:true},this.zoom)};a2.prototype.zoom=function(b2){var d2=this,a3=d2.pointer,h2=false,f2;!b2||b2.resetSelection?(d2.axes.forEach((function(b3){f2=b3.zoom()})),a3.initiated=false):b2.xAxis.concat(b2.yAxis).forEach((function(b3){var l3=b3.axis;if(a3[l3.isXAxis?"zoomX":"zoomY"]&&P(a3.mouseDownX)&&P(a3.mouseDownY)&&d2.isInsidePlot(a3.mouseDownX-d2.plotLeft,a3.mouseDownY-d2.plotTop,{axis:l3})||!P(d2.inverted?a3.mouseDownX:a3.mouseDownY))f2=l3.zoom(b3.min,b3.max),l3.displayBtn&&(h2=true)}));var l2=d2.resetZoomButton;h2&&!l2?d2.showResetZoom():!h2&&da(l2)&&(d2.resetZoomButton=l2.destroy());f2&&d2.redraw(S(d2.options.chart.animation,b2&&b2.animation,100>d2.pointCount))};a2.prototype.pan=function(b2,d2){var a3=this,h2=a3.hoverPoints;d2="object"===typeof d2?d2:{enabled:d2,type:"x"};var f2=a3.options.chart;f2&&f2.panning&&(f2.panning=d2);var l2=d2.type,e2;R(this,"pan",{originalEvent:b2},(function(){h2&&h2.forEach((function(b3){b3.setState()}));var d3=a3.xAxis;"xy"===l2?d3=d3.concat(a3.yAxis):"y"===l2&&(d3=a3.yAxis);var f3={};d3.forEach((function(d4){if(d4.options.panningEnabled&&!d4.options.isInternal){var h3=d4.horiz,k2=b2[h3?"chartX":"chartY"];h3=h3?"mouseDownX":"mouseDownY";var c2=a3[h3],n2=d4.minPointOffset||0,v2=d4.reversed&&!a3.inverted||!d4.reversed&&a3.inverted?-1:1,m2=d4.getExtremes(),p2=d4.toValue(c2-k2,true)+n2*v2,q2=d4.toValue(c2+d4.len-k2,true)-(n2*v2||d4.isXAxis&&d4.pointRangePadding||0),u2=q2<p2;v2=d4.hasVerticalPanning();c2=u2?q2:p2;p2=u2?p2:q2;var w2=d4.panningState;!v2||d4.isXAxis||w2&&!w2.isDirty||d4.series.forEach((function(b3){var d5=b3.getProcessedData(true);d5=b3.getExtremes(d5.yData,true);w2||(w2={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});ba(d5.dataMin)&&ba(d5.dataMax)&&(w2.startMin=Math.min(S(b3.options.threshold,Infinity),d5.dataMin,w2.startMin),w2.startMax=Math.max(S(b3.options.threshold,-Infinity),d5.dataMax,w2.startMax))}));v2=Math.min(S(w2&&w2.startMin,m2.dataMin),n2?m2.min:d4.toValue(d4.toPixels(m2.min)-d4.minPixelPadding));q2=Math.max(S(w2&&w2.startMax,m2.dataMax),n2?m2.max:d4.toValue(d4.toPixels(m2.max)+d4.minPixelPadding));d4.panningState=w2;d4.isOrdinal||(n2=v2-c2,0<n2&&(p2+=n2,c2=v2),n2=p2-q2,0<n2&&(p2=q2,c2-=n2),d4.series.length&&c2!==m2.min&&p2!==m2.max&&c2>=v2&&p2<=q2&&(d4.setExtremes(c2,p2,false,false,{trigger:"pan"}),!a3.resetZoomButton&&c2!==v2&&p2!==q2&&l2.match("y")&&(a3.showResetZoom(),d4.displayBtn=false),e2=true),f3[h3]=k2)}}));Y(f3,(function(b3,d4){a3[d4]=b3}));e2&&a3.redraw(false);O(a3.container,{cursor:"move"})}))};return a2}();aa(c.prototype,{callbacks:[],collectionsWithInit:{xAxis:[c.prototype.addAxis,[true]],yAxis:[c.prototype.addAxis,[false]],series:[c.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});return c}));I(g,"Core/Legend/LegendSymbol.js",[g["Core/Utilities.js"]],(function(c){var g2=c.extend,y=c.merge,A=c.pick,B;(function(c2){c2.drawLineMarker=function(c3){var x=this.legendItem=this.legendItem||{},t=this.options,r=c3.symbolWidth,a=c3.symbolHeight,q=a/2,m=this.chart.renderer,p=x.group;c3=c3.baseline-Math.round(.3*c3.fontMetrics.b);var k={},e=t.marker,D=0;this.chart.styledMode||(k={"stroke-width":Math.min(t.lineWidth||0,24)},t.dashStyle?k.dashstyle=t.dashStyle:"square"!==t.linecap&&(k["stroke-linecap"]="round"));x.line=m.path().addClass("highcharts-graph").attr(k).add(p);k["stroke-linecap"]&&(D=Math.min(x.line.strokeWidth(),r)/2);x.line.attr({d:[["M",D,c3],["L",r-D,c3]]});e&&false!==e.enabled&&r&&(t=Math.min(A(e.radius,q),q),0===this.symbol.indexOf("url")&&(e=y(e,{width:a,height:a}),t=0),x.symbol=x=m.symbol(this.symbol,r/2-t,c3-t,2*t,2*t,g2({context:"legend"},e)).addClass("highcharts-point").add(p),x.isMarker=true)};c2.drawRectangle=function(c3,g3){g3=g3.legendItem||{};var t=c3.symbolHeight,r=c3.options.squareSymbol;g3.symbol=this.chart.renderer.rect(r?(c3.symbolWidth-t)/2:0,c3.baseline-t+1,r?t:c3.symbolWidth,t,A(c3.options.symbolRadius,t/2)).addClass("highcharts-point").attr({zIndex:3}).add(g3.group)}})(B||(B={}));return B}));I(g,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:false,crisp:true,showCheckbox:false,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:true},hover:{animation:{duration:50},enabled:true,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:true,formatter:function(){var c=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":c(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:true,states:{normal:{animation:true},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:true,turboThreshold:1e3,findNearestPointBy:"x"}}));I(g,"Core/Series/Series.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Defaults.js"],g["Core/Foundation.js"],g["Core/Globals.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/Point.js"],g["Core/Series/SeriesDefaults.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C,x,t,r){var a=c.animObject,q=c.setAnimation,m=g2.defaultOptions,p=y.registerEventOptions,k=A.hasTouch,e=A.svg,D=A.win,G=x.seriesTypes,H=r.arrayMax,K=r.arrayMin,u=r.clamp,n=r.cleanRecursively,w=r.correctFloat,f=r.defined,l=r.erase,d=r.error,b=r.extend,h=r.find,v=r.fireEvent,E=r.getNestedProperty,J=r.isArray,M=r.isNumber,O=r.isString,P=r.merge,T=r.objectEach,F=r.pick,Q=r.removeEvent,aa=r.splat,L=r.syncTimeout;c=function(){function c2(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}c2.prototype.init=function(d2,a2){v(this,"init",{options:a2});var h2=this,f2=d2.series;this.eventsToUnbind=[];h2.chart=d2;h2.options=h2.setOptions(a2);a2=h2.options;h2.linkedSeries=[];h2.bindAxes();b(h2,{name:a2.name,state:"",visible:false!==a2.visible,selected:true===a2.selected});p(this,a2);var l2=a2.events;if(l2&&l2.click||a2.point&&a2.point.events&&a2.point.events.click||a2.allowPointSelect)d2.runTrackerClick=true;h2.getColor();h2.getSymbol();h2.parallelArrays.forEach((function(b2){h2[b2+"Data"]||(h2[b2+"Data"]=[])}));h2.isCartesian&&(d2.hasCartesianSeries=true);var e2;f2.length&&(e2=f2[f2.length-1]);h2._i=F(e2&&e2._i,-1)+1;h2.opacity=h2.options.opacity;d2.orderSeries(this.insert(f2));a2.dataSorting&&a2.dataSorting.enabled?h2.setDataSortingOptions():h2.points||h2.data||h2.setData(a2.data,false);v(this,"afterInit")};c2.prototype.is=function(b2){return G[b2]&&this instanceof G[b2]};c2.prototype.insert=function(b2){var d2=this.options.index,a2;if(M(d2)){for(a2=b2.length;a2--;)if(d2>=F(b2[a2].options.index,b2[a2]._i)){b2.splice(a2+1,0,this);break}-1===a2&&b2.unshift(this);a2+=1}else b2.push(this);return F(a2,b2.length-1)};c2.prototype.bindAxes=function(){var b2=this,a2=b2.options,h2=b2.chart,f2;v(this,"bindAxes",null,(function(){(b2.axisTypes||[]).forEach((function(l2){var e2=0;h2[l2].forEach((function(d2){f2=d2.options;if(a2[l2]===e2&&!f2.isInternal||"undefined"!==typeof a2[l2]&&a2[l2]===f2.id||"undefined"===typeof a2[l2]&&0===f2.index)b2.insert(d2.series),b2[l2]=d2,d2.isDirty=true;f2.isInternal||e2++}));b2[l2]||b2.optionalAxis===l2||d(18,true,h2)}))}));v(this,"afterBindAxes")};c2.prototype.updateParallelArrays=function(b2,d2){var a2=b2.series,h2=arguments,f2=M(d2)?function(h3){var f3="y"===h3&&a2.toYData?a2.toYData(b2):b2[h3];a2[h3+"Data"][d2]=f3}:function(b3){Array.prototype[d2].apply(a2[b3+"Data"],Array.prototype.slice.call(h2,2))};a2.parallelArrays.forEach(f2)};c2.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};c2.prototype.autoIncrement=function(b2){var d2=this.options,a2=d2.pointIntervalUnit,h2=d2.relativeXValue,f2=this.chart.time,l2=this.xIncrement,e2;l2=F(l2,d2.pointStart,0);this.pointInterval=e2=F(this.pointInterval,d2.pointInterval,1);h2&&M(b2)&&(e2*=b2);a2&&(d2=new f2.Date(l2),"day"===a2?f2.set("Date",d2,f2.get("Date",d2)+e2):"month"===a2?f2.set("Month",d2,f2.get("Month",d2)+e2):"year"===a2&&f2.set("FullYear",d2,f2.get("FullYear",d2)+e2),e2=d2.getTime()-l2);if(h2&&M(b2))return l2+e2;this.xIncrement=l2+e2;return l2};c2.prototype.setDataSortingOptions=function(){var d2=this.options;b(this,{requireSorting:false,sorted:false,enabledDataSorting:true,allowDG:false});f(d2.pointRange)||(d2.pointRange=1)};c2.prototype.setOptions=function(b2){var d2=this.chart,a2=d2.options,h2=a2.plotOptions,l2=d2.userOptions||{};b2=P(b2);d2=d2.styledMode;var e2={plotOptions:h2,userOptions:b2};v(this,"setOptions",e2);var c3=e2.plotOptions[this.type],k2=l2.plotOptions||{};this.userOptions=e2.userOptions;l2=P(c3,h2.series,l2.plotOptions&&l2.plotOptions[this.type],b2);this.tooltipOptions=P(m.tooltip,m.plotOptions.series&&m.plotOptions.series.tooltip,m.plotOptions[this.type].tooltip,a2.tooltip.userOptions,h2.series&&h2.series.tooltip,h2[this.type].tooltip,b2.tooltip);this.stickyTracking=F(b2.stickyTracking,k2[this.type]&&k2[this.type].stickyTracking,k2.series&&k2.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?true:l2.stickyTracking);null===c3.marker&&delete l2.marker;this.zoneAxis=l2.zoneAxis;h2=this.zones=(l2.zones||[]).slice();!l2.negativeColor&&!l2.negativeFillColor||l2.zones||(a2={value:l2[this.zoneAxis+"Threshold"]||l2.threshold||0,className:"highcharts-negative"},d2||(a2.color=l2.negativeColor,a2.fillColor=l2.negativeFillColor),h2.push(a2));h2.length&&f(h2[h2.length-1].value)&&h2.push(d2?{}:{color:this.color,fillColor:this.fillColor});v(this,"afterSetOptions",{options:l2});return l2};c2.prototype.getName=function(){return F(this.options.name,"Series "+(this.index+1))};c2.prototype.getCyclic=function(b2,d2,a2){var h2=this.chart,l2=this.userOptions,e2=b2+"Index",c3=b2+"Counter",k2=a2?a2.length:F(h2.options.chart[b2+"Count"],h2[b2+"Count"]);if(!d2){var n2=F(l2[e2],l2["_"+e2]);f(n2)||(h2.series.length||(h2[c3]=0),l2["_"+e2]=n2=h2[c3]%k2,h2[c3]+=1);a2&&(d2=a2[n2])}"undefined"!==typeof n2&&(this[e2]=n2);this[b2]=d2};c2.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||m.plotOptions[this.type].color,this.chart.options.colors)};c2.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};c2.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};c2.prototype.findPointIndex=function(b2,d2){var a2=b2.id,f2=b2.x,l2=this.points,e2=this.options.dataSorting,c3,k2;if(a2)e2=this.chart.get(a2),e2 instanceof z&&(c3=e2);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){if(c3=function(d3){return!d3.touched&&d3.index===b2.index},e2&&e2.matchByName?c3=function(d3){return!d3.touched&&d3.name===b2.name}:this.options.relativeXValue&&(c3=function(d3){return!d3.touched&&d3.options.x===b2.x}),c3=h(l2,c3),!c3)return}if(c3){var n2=c3&&c3.index;"undefined"!==typeof n2&&(k2=true)}"undefined"===typeof n2&&M(f2)&&(n2=this.xData.indexOf(f2,d2));-1!==n2&&"undefined"!==typeof n2&&this.cropped&&(n2=n2>=this.cropStart?n2-this.cropStart:n2);!k2&&M(n2)&&l2[n2]&&l2[n2].touched&&(n2=void 0);return n2};c2.prototype.updateData=function(b2,d2){var a2=this.options,h2=a2.dataSorting,l2=this.points,e2=[],c3=this.requireSorting,k2=b2.length===l2.length,n2,v2,m2,p2=true;this.xIncrement=null;b2.forEach((function(b3,d3){var v3=f(b3)&&this.pointClass.prototype.optionsToObject.call({series:this},b3)||{},p3=v3.x;if(v3.id||M(p3)){if(v3=this.findPointIndex(v3,m2),-1===v3||"undefined"===typeof v3?e2.push(b3):l2[v3]&&b3!==a2.data[v3]?(l2[v3].update(b3,false,null,false),l2[v3].touched=true,c3&&(m2=v3+1)):l2[v3]&&(l2[v3].touched=true),!k2||d3!==v3||h2&&h2.enabled||this.hasDerivedData)n2=true}else e2.push(b3)}),this);if(n2)for(b2=l2.length;b2--;)(v2=l2[b2])&&!v2.touched&&v2.remove&&v2.remove(false,d2);else!k2||h2&&h2.enabled?p2=false:(b2.forEach((function(b3,d3){b3!==l2[d3].y&&l2[d3].update&&l2[d3].update(b3,false,null,false)})),e2.length=0);l2.forEach((function(b3){b3&&(b3.touched=false)}));if(!p2)return false;e2.forEach((function(b3){this.addPoint(b3,false,null,null,false)}),this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=H(this.xData),this.autoIncrement());return true};c2.prototype.setData=function(b2,a2,h2,f2){void 0===a2&&(a2=true);var l2=this,e2=l2.points,c3=e2&&e2.length||0,k2=l2.options,n2=l2.chart,v2=k2.dataSorting,m2=l2.xAxis,p2=k2.turboThreshold,q2=this.xData,u2=this.yData,w2=l2.pointArrayMap;w2=w2&&w2.length;var g3=k2.keys,E2,r2=0,t2=1,F2=null;if(!n2.options.chart.allowMutatingData){k2.data&&delete l2.options.data;l2.userOptions.data&&delete l2.userOptions.data;var D2=P(true,b2)}b2=D2||b2||[];D2=b2.length;v2&&v2.enabled&&(b2=this.sortData(b2));n2.options.chart.allowMutatingData&&false!==f2&&D2&&c3&&!l2.cropped&&!l2.hasGroupedData&&l2.visible&&!l2.boosted&&(E2=this.updateData(b2,h2));if(!E2){l2.xIncrement=null;l2.colorCounter=0;this.parallelArrays.forEach((function(b3){l2[b3+"Data"].length=0}));if(p2&&D2>p2)if(F2=l2.getFirstValidPoint(b2),M(F2))for(h2=0;h2<D2;h2++)q2[h2]=this.autoIncrement(),u2[h2]=b2[h2];else if(J(F2))if(w2)if(F2.length===w2)for(h2=0;h2<D2;h2++)q2[h2]=this.autoIncrement(),u2[h2]=b2[h2];else for(h2=0;h2<D2;h2++)f2=b2[h2],q2[h2]=f2[0],u2[h2]=f2.slice(1,w2+1);else if(g3&&(r2=g3.indexOf("x"),t2=g3.indexOf("y"),r2=0<=r2?r2:0,t2=0<=t2?t2:1),1===F2.length&&(t2=0),r2===t2)for(h2=0;h2<D2;h2++)q2[h2]=this.autoIncrement(),u2[h2]=b2[h2][t2];else for(h2=0;h2<D2;h2++)f2=b2[h2],q2[h2]=f2[r2],u2[h2]=f2[t2];else d(12,false,n2);else for(h2=0;h2<D2;h2++)"undefined"!==typeof b2[h2]&&(f2={series:l2},l2.pointClass.prototype.applyOptions.apply(f2,[b2[h2]]),l2.updateParallelArrays(f2,h2));u2&&O(u2[0])&&d(14,true,n2);l2.data=[];l2.options.data=l2.userOptions.data=b2;for(h2=c3;h2--;)e2[h2]&&e2[h2].destroy&&e2[h2].destroy();m2&&(m2.minRange=m2.userMinRange);l2.isDirty=n2.isDirtyBox=true;l2.isDirtyData=!!e2;h2=false}"point"===k2.legendType&&(this.processData(),this.generatePoints());a2&&n2.redraw(h2)};c2.prototype.sortData=function(b2){var d2=this,a2=d2.options.dataSorting.sortKey||"y",h2=function(b3,d3){return f(d3)&&b3.pointClass.prototype.optionsToObject.call({series:b3},d3)||{}};b2.forEach((function(a3,f2){b2[f2]=h2(d2,a3);b2[f2].index=f2}),this);b2.concat().sort((function(b3,d3){b3=E(a2,b3);d3=E(a2,d3);return d3<b3?-1:d3>b3?1:0})).forEach((function(b3,d3){b3.x=d3}),this);d2.linkedSeries&&d2.linkedSeries.forEach((function(d3){var a3=d3.options,f2=a3.data;a3.dataSorting&&a3.dataSorting.enabled||!f2||(f2.forEach((function(a4,l2){f2[l2]=h2(d3,a4);b2[l2]&&(f2[l2].x=b2[l2].x,f2[l2].index=l2)})),d3.setData(f2,false))}));return b2};c2.prototype.getProcessedData=function(b2){var a2=this.xAxis,h2=this.options,f2=h2.cropThreshold,l2=b2||this.getExtremesFromAll||h2.getExtremesFromAll,e2=this.isCartesian;b2=a2&&a2.val2lin;h2=!(!a2||!a2.logarithmic);var c3=0,k2=this.xData,n2=this.yData,v2=this.requireSorting;var m2=false;var p2=k2.length;if(a2){m2=a2.getExtremes();var q2=m2.min;var u2=m2.max;m2=!(!a2.categories||a2.names.length)}if(e2&&this.sorted&&!l2&&(!f2||p2>f2||this.forceCrop)){if(k2[p2-1]<q2||k2[0]>u2)k2=[],n2=[];else if(this.yData&&(k2[0]<q2||k2[p2-1]>u2)){var w2=this.cropData(this.xData,this.yData,q2,u2);k2=w2.xData;n2=w2.yData;c3=w2.start;w2=true}}for(f2=k2.length||1;--f2;)if(a2=h2?b2(k2[f2])-b2(k2[f2-1]):k2[f2]-k2[f2-1],0<a2&&("undefined"===typeof g3||a2<g3))var g3=a2;else 0>a2&&v2&&!m2&&(d(15,false,this.chart),v2=false);return{xData:k2,yData:n2,cropped:w2,cropStart:c3,closestPointRange:g3}};c2.prototype.processData=function(b2){var d2=this.xAxis;if(this.isCartesian&&!this.isDirty&&!d2.isDirty&&!this.yAxis.isDirty&&!b2)return false;b2=this.getProcessedData();this.cropped=b2.cropped;this.cropStart=b2.cropStart;this.processedXData=b2.xData;this.processedYData=b2.yData;this.closestPointRange=this.basePointRange=b2.closestPointRange;v(this,"afterProcessData")};c2.prototype.cropData=function(b2,d2,a2,h2,f2){var l2=b2.length,e2,c3=0,k2=l2;f2=F(f2,this.cropShoulder);for(e2=0;e2<l2;e2++)if(b2[e2]>=a2){c3=Math.max(0,e2-f2);break}for(a2=e2;a2<l2;a2++)if(b2[a2]>h2){k2=a2+f2;break}return{xData:b2.slice(c3,k2),yData:d2.slice(c3,k2),start:c3,end:k2}};c2.prototype.generatePoints=function(){var d2=this.options,a2=this.processedData||d2.data,h2=this.processedXData,f2=this.processedYData,l2=this.pointClass,e2=h2.length,c3=this.cropStart||0,k2=this.hasGroupedData,n2=d2.keys,m2=[];d2=d2.dataGrouping&&d2.dataGrouping.groupAll?c3:0;var p2,q2,u2=this.data;if(!u2&&!k2){var w2=[];w2.length=a2.length;u2=this.data=w2}n2&&k2&&(this.options.keys=false);for(q2=0;q2<e2;q2++){w2=c3+q2;if(k2){var g3=(new l2).init(this,[h2[q2]].concat(aa(f2[q2])));g3.dataGroup=this.groupMap[d2+q2];g3.dataGroup.options&&(g3.options=g3.dataGroup.options,b(g3,g3.dataGroup.options),delete g3.dataLabels)}else(g3=u2[w2])||"undefined"===typeof a2[w2]||(u2[w2]=g3=(new l2).init(this,a2[w2],h2[q2]));g3&&(g3.index=k2?d2+q2:w2,m2[q2]=g3)}this.options.keys=n2;if(u2&&(e2!==(p2=u2.length)||k2))for(q2=0;q2<p2;q2++)q2!==c3||k2||(q2+=e2),u2[q2]&&(u2[q2].destroyElements(),u2[q2].plotX=void 0);this.data=u2;this.points=m2;v(this,"afterGeneratePoints")};c2.prototype.getXExtremes=function(b2){return{min:K(b2),max:H(b2)}};c2.prototype.getExtremes=function(b2,d2){var a2=this.xAxis,h2=this.yAxis,f2=this.processedXData||this.xData,l2=[],e2=this.requireSorting?this.cropShoulder:0;h2=h2?h2.positiveValuesOnly:false;var c3,k2=0,n2=0,m2=0;b2=b2||this.stackedYData||this.processedYData||[];var p2=b2.length;if(a2){var q2=a2.getExtremes();k2=q2.min;n2=q2.max}for(c3=0;c3<p2;c3++){var u2=f2[c3];q2=b2[c3];var w2=(M(q2)||J(q2))&&(q2.length||0<q2||!h2);u2=d2||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!a2||(f2[c3+e2]||u2)>=k2&&(f2[c3-e2]||u2)<=n2;if(w2&&u2)if(w2=q2.length)for(;w2--;)M(q2[w2])&&(l2[m2++]=q2[w2]);else l2[m2++]=q2}b2={activeYData:l2,dataMin:K(l2),dataMax:H(l2)};v(this,"afterGetExtremes",{dataExtremes:b2});return b2};c2.prototype.applyExtremes=function(){var b2=this.getExtremes();this.dataMin=b2.dataMin;this.dataMax=b2.dataMax;return b2};c2.prototype.getFirstValidPoint=function(b2){for(var d2=b2.length,a2=0,h2=null;null===h2&&a2<d2;)h2=b2[a2],a2++;return h2};c2.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var b2=this.options,d2=b2.stacking,a2=this.xAxis,h2=a2.categories,l2=this.enabledDataSorting,e2=this.yAxis,c3=this.points,k2=c3.length,n2=this.pointPlacementToXValue(),m2=!!n2,p2=b2.threshold,q2=b2.startFromThreshold?p2:0,g3=this.zoneAxis||"y",r2,E2,t2=Number.MAX_VALUE;for(r2=0;r2<k2;r2++){var D2=c3[r2],G2=D2.x,x2=void 0,Q2=void 0,O2=D2.y,H2=D2.low,C2=d2&&e2.stacking&&e2.stacking.stacks[(this.negStacks&&O2<(q2?0:p2)?"-":"")+this.stackKey];if(e2.positiveValuesOnly&&!e2.validatePositiveValue(O2)||a2.positiveValuesOnly&&!a2.validatePositiveValue(G2))D2.isNull=true;D2.plotX=E2=w(u(a2.translate(G2,0,0,0,1,n2,"flags"===this.type),-1e5,1e5));if(d2&&this.visible&&C2&&C2[G2]){var P2=this.getStackIndicator(P2,G2,this.index);!D2.isNull&&P2.key&&(x2=C2[G2],Q2=x2.points[P2.key]);x2&&J(Q2)&&(H2=Q2[0],O2=Q2[1],H2===q2&&P2.key===C2[G2].base&&(H2=F(M(p2)?p2:e2.min)),e2.positiveValuesOnly&&f(H2)&&0>=H2&&(H2=void 0),D2.total=D2.stackTotal=F(x2.total),D2.percentage=f(D2.y)&&x2.total?D2.y/x2.total*100:void 0,D2.stackY=O2,this.irregularWidths||x2.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}D2.yBottom=f(H2)?u(e2.translate(H2,0,1,0,1),-1e5,1e5):void 0;this.dataModify&&(O2=this.dataModify.modifyValue(O2,r2));D2.plotY=void 0;M(O2)&&(x2=e2.translate(O2,false,true,false,true),"undefined"!==typeof x2&&(D2.plotY=u(x2,-1e5,1e5)));D2.isInside=this.isPointInside(D2);D2.clientX=m2?w(a2.translate(G2,0,0,0,1,n2)):E2;D2.negative=D2[g3]<(b2[g3+"Threshold"]||p2||0);D2.category=F(h2&&h2[D2.x],D2.x);if(!D2.isNull&&false!==D2.visible){"undefined"!==typeof z2&&(t2=Math.min(t2,Math.abs(E2-z2)));var z2=E2}D2.zone=this.zones.length?D2.getZone():void 0;!D2.graphic&&this.group&&l2&&(D2.isNew=true)}this.closestPointRangePx=t2;v(this,"afterTranslate")};c2.prototype.getValidPoints=function(b2,d2,a2){var h2=this.chart;return(b2||this.points||[]).filter((function(b3){return d2&&!h2.isInsidePlot(b3.plotX,b3.plotY,{inverted:h2.inverted})?false:false!==b3.visible&&(a2||!b3.isNull)}))};c2.prototype.getClipBox=function(){var b2=this.chart,d2=this.xAxis,a2=this.yAxis,h2=P(b2.clipBox);d2&&d2.len!==b2.plotSizeX&&(h2.width=d2.len);a2&&a2.len!==b2.plotSizeY&&(h2.height=a2.len);return h2};c2.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};c2.prototype.setClip=function(){var b2=this.chart,d2=this.group,a2=this.markerGroup,h2=b2.sharedClips;b2=b2.renderer;var f2=this.getClipBox(),l2=this.getSharedClipKey(),e2=h2[l2];e2?e2.animate(f2):h2[l2]=e2=b2.clipRect(f2);d2&&d2.clip(false===this.options.clip?void 0:e2);a2&&a2.clip()};c2.prototype.animate=function(b2){var d2=this.chart,h2=this.group,f2=this.markerGroup,l2=d2.inverted,e2=a(this.options.animation),c3=[this.getSharedClipKey(),e2.duration,e2.easing,e2.defer].join(),k2=d2.sharedClips[c3],n2=d2.sharedClips[c3+"m"];if(b2&&h2)e2=this.getClipBox(),k2?k2.attr("height",e2.height):(e2.width=0,l2&&(e2.x=d2.plotHeight),k2=d2.renderer.clipRect(e2),d2.sharedClips[c3]=k2,n2=d2.renderer.clipRect({x:-99,y:-99,width:l2?d2.plotWidth+199:99,height:l2?99:d2.plotHeight+199}),d2.sharedClips[c3+"m"]=n2),h2.clip(k2),f2&&f2.clip(n2);else if(k2&&!k2.hasClass("highcharts-animating")){d2=this.getClipBox();var v2=e2.step;f2&&f2.element.childNodes.length&&(e2.step=function(b3,d3){v2&&v2.apply(d3,arguments);"width"===d3.prop&&n2&&n2.element&&n2.attr(l2?"height":"width",b3+99)});k2.addClass("highcharts-animating").animate(d2,e2)}};c2.prototype.afterAnimate=function(){var b2=this;this.setClip();T(this.chart.sharedClips,(function(d2,a2,h2){d2&&!b2.chart.container.querySelector('[clip-path="url(#'.concat(d2.id,')"]'))&&(d2.destroy(),delete h2[a2])}));this.finishedAnimating=true;v(this,"afterAnimate")};c2.prototype.drawPoints=function(b2){void 0===b2&&(b2=this.points);var d2=this.chart,a2=d2.styledMode,h2=this.colorAxis,f2=this.options.marker,l2=this[this.specialGroup||"markerGroup"],e2=this.xAxis,c3=F(f2.enabled,!e2||e2.isRadial?true:null,this.closestPointRangePx>=f2.enabledThreshold*f2.radius),k2,n2;if(false!==f2.enabled||this._hasPointMarkers)for(k2=0;k2<b2.length;k2++){var v2=b2[k2];var m2=(n2=v2.graphic)?"animate":"attr";var p2=v2.marker||{};var q2=!!v2.marker;if((c3&&"undefined"===typeof p2.enabled||p2.enabled)&&!v2.isNull&&false!==v2.visible){var u2=F(p2.symbol,this.symbol,"rect");var w2=this.markerAttribs(v2,v2.selected&&"select");this.enabledDataSorting&&(v2.startXPos=e2.reversed?-(w2.width||0):e2.width);var g3=false!==v2.isInside;!n2&&g3&&(0<(w2.width||0)||v2.hasImage)&&(v2.graphic=n2=d2.renderer.symbol(u2,w2.x,w2.y,w2.width,w2.height,q2?p2:f2).add(l2),this.enabledDataSorting&&d2.hasRendered&&(n2.attr({x:v2.startXPos}),m2="animate"));n2&&"animate"===m2&&n2[g3?"show":"hide"](g3).animate(w2);if(n2)if(p2=this.pointAttribs(v2,a2||!v2.selected?void 0:"select"),a2)h2&&n2.css({fill:p2.fill});else n2[m2](p2);n2&&n2.addClass(v2.getClassName(),true)}else n2&&(v2.graphic=n2.destroy())}};c2.prototype.markerAttribs=function(b2,d2){var a2=this.options,h2=a2.marker,f2=b2.marker||{},l2=f2.symbol||h2.symbol,e2={},c3=F(f2.radius,h2&&h2.radius);d2&&(h2=h2.states[d2],d2=f2.states&&f2.states[d2],c3=F(d2&&d2.radius,h2&&h2.radius,c3&&c3+(h2&&h2.radiusPlus||0)));b2.hasImage=l2&&0===l2.indexOf("url");b2.hasImage&&(c3=0);b2=b2.pos();M(c3)&&b2&&(e2.x=b2[0]-c3,e2.y=b2[1]-c3,a2.crisp&&(e2.x=Math.floor(e2.x)));c3&&(e2.width=e2.height=2*c3);return e2};c2.prototype.pointAttribs=function(b2,d2){var a2=this.options.marker,h2=b2&&b2.options,f2=h2&&h2.marker||{},l2=h2&&h2.color,e2=b2&&b2.color,c3=b2&&b2.zone&&b2.zone.color,k2=this.color;b2=F(f2.lineWidth,a2.lineWidth);h2=1;k2=l2||c3||e2||k2;l2=f2.fillColor||a2.fillColor||k2;e2=f2.lineColor||a2.lineColor||k2;d2=d2||"normal";a2=a2.states[d2]||{};d2=f2.states&&f2.states[d2]||{};b2=F(d2.lineWidth,a2.lineWidth,b2+F(d2.lineWidthPlus,a2.lineWidthPlus,0));l2=d2.fillColor||a2.fillColor||l2;e2=d2.lineColor||a2.lineColor||e2;h2=F(d2.opacity,a2.opacity,h2);return{stroke:e2,"stroke-width":b2,fill:l2,opacity:h2}};c2.prototype.destroy=function(b2){var d2=this,a2=d2.chart,h2=/AppleWebKit\/533/.test(D.navigator.userAgent),f2=d2.data||[],e2,c3,k2,n2;v(d2,"destroy",{keepEventsForUpdate:b2});this.removeEvents(b2);(d2.axisTypes||[]).forEach((function(b3){(n2=d2[b3])&&n2.series&&(l(n2.series,d2),n2.isDirty=n2.forceRedraw=true)}));d2.legendItem&&d2.chart.legend.destroyItem(d2);for(c3=f2.length;c3--;)(k2=f2[c3])&&k2.destroy&&k2.destroy();d2.clips&&d2.clips.forEach((function(b3){return b3.destroy()}));r.clearTimeout(d2.animationTimeout);T(d2,(function(b3,d3){b3 instanceof t&&!b3.survive&&(e2=h2&&"group"===d3?"hide":"destroy",b3[e2]())}));a2.hoverSeries===d2&&(a2.hoverSeries=void 0);l(a2.series,d2);a2.orderSeries();T(d2,(function(a3,h3){b2&&"hcEvents"===h3||delete d2[h3]}))};c2.prototype.applyZones=function(){var b2=this,d2=this.chart,a2=d2.renderer,h2=this.zones,f2=this.clips||[],l2=this.graph,e2=this.area,c3=Math.max(d2.plotWidth,d2.plotHeight),k2=this[(this.zoneAxis||"y")+"Axis"],n2=d2.inverted,v2,m2,p2,q2,w2,g3,r2,E2,t2=false;if(h2.length&&(l2||e2)&&k2&&"undefined"!==typeof k2.min){var D2=k2.reversed;var J2=k2.horiz;l2&&!this.showLine&&l2.hide();e2&&e2.hide();var G2=k2.getExtremes();h2.forEach((function(h3,M2){v2=D2?J2?d2.plotWidth:0:J2?0:k2.toPixels(G2.min)||0;v2=u(F(m2,v2),0,c3);m2=u(Math.round(k2.toPixels(F(h3.value,G2.max),true)||0),0,c3);t2&&(v2=m2=k2.toPixels(G2.max));q2=Math.abs(v2-m2);w2=Math.min(v2,m2);g3=Math.max(v2,m2);k2.isXAxis?(p2={x:n2?g3:w2,y:0,width:q2,height:c3},J2||(p2.x=d2.plotHeight-p2.x)):(p2={x:0,y:n2?g3:w2,width:c3,height:q2},J2&&(p2.y=d2.plotWidth-p2.y));n2&&a2.isVML&&(p2=k2.isXAxis?{x:0,y:D2?w2:g3,height:p2.width,width:d2.chartWidth}:{x:p2.y-d2.plotLeft-d2.spacingBox.x,y:0,width:p2.height,height:d2.chartHeight});f2[M2]?f2[M2].animate(p2):f2[M2]=a2.clipRect(p2);r2=b2["zone-area-"+M2];E2=b2["zone-graph-"+M2];l2&&E2&&E2.clip(f2[M2]);e2&&r2&&r2.clip(f2[M2]);t2=h3.value>G2.max;b2.resetZones&&0===m2&&(m2=void 0)}));this.clips=f2}else b2.visible&&(l2&&l2.show(),e2&&e2.show())};c2.prototype.plotGroup=function(b2,d2,a2,h2,l2){var e2=this[b2],c3=!e2;a2={visibility:a2,zIndex:h2||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(a2.opacity=this.opacity);c3&&(this[b2]=e2=this.chart.renderer.g().add(l2));e2.addClass("highcharts-"+d2+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(f(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(e2.hasClass("highcharts-tracker")?" highcharts-tracker":""),true);e2.attr(a2)[c3?"attr":"animate"](this.getPlotBox(d2));return e2};c2.prototype.getPlotBox=function(b2){var d2=this.xAxis,a2=this.yAxis,h2=this.chart;b2=h2.inverted&&!h2.polar&&d2&&false!==this.invertible&&"series"===b2;h2.inverted&&(d2=a2,a2=this.xAxis);return{translateX:d2?d2.left:h2.plotLeft,translateY:a2?a2.top:h2.plotTop,rotation:b2?90:0,rotationOriginX:b2?(d2.len-a2.len)/2:0,rotationOriginY:b2?(d2.len+a2.len)/2:0,scaleX:b2?-1:1,scaleY:1}};c2.prototype.removeEvents=function(b2){b2||Q(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(b3){b3()})),this.eventsToUnbind.length=0)};c2.prototype.render=function(){var b2=this,d2=b2.chart,h2=b2.options,f2=a(h2.animation),l2=b2.visible?"inherit":"hidden",e2=h2.zIndex,c3=b2.hasRendered,k2=d2.seriesGroup;d2=!b2.finishedAnimating&&d2.renderer.isSVG?f2.duration:0;v(this,"render");b2.plotGroup("group","series",l2,e2,k2);b2.markerGroup=b2.plotGroup("markerGroup","markers",l2,e2,k2);false!==h2.clip&&b2.setClip();b2.animate&&d2&&b2.animate(true);b2.drawGraph&&(b2.drawGraph(),b2.applyZones());b2.visible&&b2.drawPoints();b2.drawDataLabels&&b2.drawDataLabels();b2.redrawPoints&&b2.redrawPoints();b2.drawTracker&&false!==b2.options.enableMouseTracking&&b2.drawTracker();b2.animate&&d2&&b2.animate();c3||(d2&&f2.defer&&(d2+=f2.defer),b2.animationTimeout=L((function(){b2.afterAnimate()}),d2||0));b2.isDirty=false;b2.hasRendered=true;v(b2,"afterRender")};c2.prototype.redraw=function(){var b2=this.isDirty||this.isDirtyData;this.translate();this.render();b2&&delete this.kdTree};c2.prototype.searchPoint=function(b2,d2){var a2=this.xAxis,h2=this.yAxis,f2=this.chart.inverted;return this.searchKDTree({clientX:f2?a2.len-b2.chartY+a2.pos:b2.chartX-a2.pos,plotY:f2?h2.len-b2.chartX+h2.pos:b2.chartY-h2.pos},d2,b2)};c2.prototype.buildKDTree=function(b2){function d2(b3,h3,f2){var l2=b3&&b3.length;if(l2){var e2=a2.kdAxisArray[h3%f2];b3.sort((function(b4,d3){return b4[e2]-d3[e2]}));l2=Math.floor(l2/2);return{point:b3[l2],left:d2(b3.slice(0,l2),h3+1,f2),right:d2(b3.slice(l2+1),h3+1,f2)}}}this.buildingKdTree=true;var a2=this,h2=-1<a2.options.findNearestPointBy.indexOf("y")?2:1;delete a2.kdTree;L((function(){a2.kdTree=d2(a2.getValidPoints(null,!a2.directTouch),h2,h2);a2.buildingKdTree=false}),a2.options.kdNow||b2&&"touchstart"===b2.type?0:1)};c2.prototype.searchKDTree=function(b2,d2,a2){function h2(b3,d3,a3,n2){var v2=d3.point,m2=l2.kdAxisArray[a3%n2],p2=v2,q2=f(b3[e2])&&f(v2[e2])?Math.pow(b3[e2]-v2[e2],2):null;var w2=f(b3[c3])&&f(v2[c3])?Math.pow(b3[c3]-v2[c3],2):null;w2=(q2||0)+(w2||0);v2.dist=f(w2)?Math.sqrt(w2):Number.MAX_VALUE;v2.distX=f(q2)?Math.sqrt(q2):Number.MAX_VALUE;m2=b3[m2]-v2[m2];w2=0>m2?"left":"right";q2=0>m2?"right":"left";d3[w2]&&(w2=h2(b3,d3[w2],a3+1,n2),p2=w2[k2]<p2[k2]?w2:v2);d3[q2]&&Math.sqrt(m2*m2)<p2[k2]&&(b3=h2(b3,d3[q2],a3+1,n2),p2=b3[k2]<p2[k2]?b3:p2);return p2}var l2=this,e2=this.kdAxisArray[0],c3=this.kdAxisArray[1],k2=d2?"distX":"dist";d2=-1<l2.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(a2);if(this.kdTree)return h2(b2,this.kdTree,d2,d2)};c2.prototype.pointPlacementToXValue=function(){var b2=this.options,d2=b2.pointRange,a2=this.xAxis;b2=b2.pointPlacement;"between"===b2&&(b2=a2.reversed?-.5:.5);return M(b2)?b2*(d2||a2.pointRange):0};c2.prototype.isPointInside=function(b2){var d2=this.chart,a2=this.xAxis,h2=this.yAxis;return"undefined"!==typeof b2.plotY&&"undefined"!==typeof b2.plotX&&0<=b2.plotY&&b2.plotY<=(h2?h2.len:d2.plotHeight)&&0<=b2.plotX&&b2.plotX<=(a2?a2.len:d2.plotWidth)};c2.prototype.drawTracker=function(){var b2=this,d2=b2.options,a2=d2.trackByArea,h2=[].concat(a2?b2.areaPath:b2.graphPath),f2=b2.chart,l2=f2.pointer,c3=f2.renderer,n2=f2.options.tooltip.snap,m2=b2.tracker,p2=function(d3){if(f2.hoverSeries!==b2)b2.onMouseOver()},q2="rgba(192,192,192,"+(e?1e-4:.002)+")";m2?m2.attr({d:h2}):b2.graph&&(b2.tracker=c3.path(h2).attr({visibility:b2.visible?"inherit":"hidden",zIndex:2}).addClass(a2?"highcharts-tracker-area":"highcharts-tracker-line").add(b2.group),f2.styledMode||b2.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:q2,fill:a2?q2:"none","stroke-width":b2.graph.strokeWidth()+(a2?0:2*n2)}),[b2.tracker,b2.markerGroup,b2.dataLabelsGroup].forEach((function(b3){if(b3&&(b3.addClass("highcharts-tracker").on("mouseover",p2).on("mouseout",(function(b4){l2.onTrackerMouseOut(b4)})),d2.cursor&&!f2.styledMode&&b3.css({cursor:d2.cursor}),k))b3.on("touchstart",p2)})));v(this,"afterDrawTracker")};c2.prototype.addPoint=function(b2,d2,a2,h2,f2){var l2=this.options,e2=this.data,c3=this.chart,k2=this.xAxis;k2=k2&&k2.hasNames&&k2.names;var n2=l2.data,m2=this.xData,p2;d2=F(d2,true);var q2={series:this};this.pointClass.prototype.applyOptions.apply(q2,[b2]);var w2=q2.x;var u2=m2.length;if(this.requireSorting&&w2<m2[u2-1])for(p2=true;u2&&m2[u2-1]>w2;)u2--;this.updateParallelArrays(q2,"splice",u2,0,0);this.updateParallelArrays(q2,u2);k2&&q2.name&&(k2[w2]=q2.name);n2.splice(u2,0,b2);if(p2||this.processedData)this.data.splice(u2,0,null),this.processData();"point"===l2.legendType&&this.generatePoints();a2&&(e2[0]&&e2[0].remove?e2[0].remove(false):(e2.shift(),this.updateParallelArrays(q2,"shift"),n2.shift()));false!==f2&&v(this,"addPoint",{point:q2});this.isDirtyData=this.isDirty=true;d2&&c3.redraw(h2)};c2.prototype.removePoint=function(b2,d2,a2){var h2=this,f2=h2.data,l2=f2[b2],e2=h2.points,c3=h2.chart,k2=function(){e2&&e2.length===f2.length&&e2.splice(b2,1);f2.splice(b2,1);h2.options.data.splice(b2,1);h2.updateParallelArrays(l2||{series:h2},"splice",b2,1);l2&&l2.destroy();h2.isDirty=true;h2.isDirtyData=true;d2&&c3.redraw()};q(a2,c3);d2=F(d2,true);l2?l2.firePointEvent("remove",null,k2):k2()};c2.prototype.remove=function(b2,d2,a2,h2){function f2(){l2.destroy(h2);e2.isDirtyLegend=e2.isDirtyBox=true;e2.linkSeries();F(b2,true)&&e2.redraw(d2)}var l2=this,e2=l2.chart;false!==a2?v(l2,"remove",null,f2):f2()};c2.prototype.update=function(a2,h2){a2=n(a2,this.userOptions);v(this,"update",{options:a2});var f2=this,l2=f2.chart,e2=f2.userOptions,c3=f2.initialType||f2.type,k2=l2.options.plotOptions,m2=G[c3].prototype,p2=f2.finishedAnimating&&{animation:false},q2={},w2=["eventOptions","navigatorSeries","baseSeries"],u2=a2.type||e2.type||l2.options.chart.type,g3=!(this.hasDerivedData||u2&&u2!==this.type||"undefined"!==typeof a2.pointStart||"undefined"!==typeof a2.pointInterval||"undefined"!==typeof a2.relativeXValue||a2.joinBy||a2.mapData||f2.hasOptionChanged("dataGrouping")||f2.hasOptionChanged("pointStart")||f2.hasOptionChanged("pointInterval")||f2.hasOptionChanged("pointIntervalUnit")||f2.hasOptionChanged("keys"));u2=u2||c3;g3&&(w2.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),false!==a2.visible&&w2.push("area","graph"),f2.parallelArrays.forEach((function(b2){w2.push(b2+"Data")})),a2.data&&(a2.dataSorting&&b(f2.options.dataSorting,a2.dataSorting),this.setData(a2.data,false)));a2=P(e2,p2,{index:"undefined"===typeof e2.index?f2.index:e2.index,pointStart:F(k2&&k2.series&&k2.series.pointStart,e2.pointStart,f2.xData[0])},!g3&&{data:f2.options.data},a2);g3&&a2.data&&(a2.data=f2.options.data);w2=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(w2);w2.forEach((function(b2){w2[b2]=f2[b2];delete f2[b2]}));k2=false;if(G[u2]){if(k2=u2!==f2.type,f2.remove(false,false,false,true),k2)if(Object.setPrototypeOf)Object.setPrototypeOf(f2,G[u2].prototype);else{p2=Object.hasOwnProperty.call(f2,"hcEvents")&&f2.hcEvents;for(r2 in m2)f2[r2]=void 0;b(f2,G[u2].prototype);p2?f2.hcEvents=p2:delete f2.hcEvents}}else d(17,true,l2,{missingModuleFor:u2});w2.forEach((function(b2){f2[b2]=w2[b2]}));f2.init(l2,a2);if(g3&&this.points){a2=f2.options;if(false===a2.visible)q2.graphic=1,q2.dataLabel=1;else if(!f2._hasPointLabels){m2=a2.marker;var r2=a2.dataLabels;e2=e2.marker||{};!m2||false!==m2.enabled&&e2.symbol===m2.symbol&&e2.height===m2.height&&e2.width===m2.width||(q2.graphic=1);r2&&false===r2.enabled&&(q2.dataLabel=1)}e2=0;for(m2=this.points;e2<m2.length;e2++)(r2=m2[e2])&&r2.series&&(r2.resolveColor(),Object.keys(q2).length&&r2.destroyElements(q2),false===a2.showInLegend&&r2.legendItem&&l2.legend.destroyItem(r2))}f2.initialType=c3;l2.linkSeries();k2&&f2.linkedSeries.length&&(f2.isDirtyData=true);v(this,"afterUpdate");F(h2,true)&&l2.redraw(g3?void 0:false)};c2.prototype.setName=function(b2){this.name=this.options.name=this.userOptions.name=b2;this.chart.isDirtyLegend=true};c2.prototype.hasOptionChanged=function(b2){var d2=this.options[b2],a2=this.chart.options.plotOptions,h2=this.userOptions[b2];return h2?d2!==h2:d2!==F(a2&&a2[this.type]&&a2[this.type][b2],a2&&a2.series&&a2.series[b2],d2)};c2.prototype.onMouseOver=function(){var b2=this.chart,d2=b2.hoverSeries;b2.pointer.setHoverChartIndex();if(d2&&d2!==this)d2.onMouseOut();this.options.events.mouseOver&&v(this,"mouseOver");this.setState("hover");b2.hoverSeries=this};c2.prototype.onMouseOut=function(){var b2=this.options,d2=this.chart,a2=d2.tooltip,h2=d2.hoverPoint;d2.hoverSeries=null;if(h2)h2.onMouseOut();this&&b2.events.mouseOut&&v(this,"mouseOut");!a2||this.stickyTracking||a2.shared&&!this.noSharedTooltip||a2.hide();d2.series.forEach((function(b3){b3.setState("",true)}))};c2.prototype.setState=function(b2,d2){var a2=this,h2=a2.options,f2=a2.graph,l2=h2.inactiveOtherPoints,e2=h2.states,c3=F(e2[b2||"normal"]&&e2[b2||"normal"].animation,a2.chart.options.chart.animation),k2=h2.lineWidth,n2=0,v2=h2.opacity;b2=b2||"";if(a2.state!==b2&&([a2.group,a2.markerGroup,a2.dataLabelsGroup].forEach((function(d3){d3&&(a2.state&&d3.removeClass("highcharts-series-"+a2.state),b2&&d3.addClass("highcharts-series-"+b2))})),a2.state=b2,!a2.chart.styledMode)){if(e2[b2]&&false===e2[b2].enabled)return;b2&&(k2=e2[b2].lineWidth||k2+(e2[b2].lineWidthPlus||0),v2=F(e2[b2].opacity,v2));if(f2&&!f2.dashstyle&&M(k2))for(h2={"stroke-width":k2},f2.animate(h2,c3);a2["zone-graph-"+n2];)a2["zone-graph-"+n2].animate(h2,c3),n2+=1;l2||[a2.group,a2.markerGroup,a2.dataLabelsGroup,a2.labelBySeries].forEach((function(b3){b3&&b3.animate({opacity:v2},c3)}))}d2&&l2&&a2.points&&a2.setAllPointsToState(b2||void 0)};c2.prototype.setAllPointsToState=function(b2){this.points.forEach((function(d2){d2.setState&&d2.setState(b2)}))};c2.prototype.setVisible=function(b2,d2){var a2=this,h2=a2.chart,f2=h2.options.chart.ignoreHiddenSeries,l2=a2.visible,e2=(a2.visible=b2=a2.options.visible=a2.userOptions.visible="undefined"===typeof b2?!l2:b2)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(b3){if(a2[b3])a2[b3][e2]()}));if(h2.hoverSeries===a2||(h2.hoverPoint&&h2.hoverPoint.series)===a2)a2.onMouseOut();a2.legendItem&&h2.legend.colorizeItem(a2,b2);a2.isDirty=true;a2.options.stacking&&h2.series.forEach((function(b3){b3.options.stacking&&b3.visible&&(b3.isDirty=true)}));a2.linkedSeries.forEach((function(d3){d3.setVisible(b2,false)}));f2&&(h2.isDirtyBox=true);v(a2,e2);false!==d2&&h2.redraw()};c2.prototype.show=function(){this.setVisible(true)};c2.prototype.hide=function(){this.setVisible(false)};c2.prototype.select=function(b2){this.selected=b2=this.options.selected="undefined"===typeof b2?!this.selected:b2;this.checkbox&&(this.checkbox.checked=b2);v(this,b2?"select":"unselect")};c2.prototype.shouldShowTooltip=function(b2,d2,a2){void 0===a2&&(a2={});a2.series=this;a2.visiblePlotOnly=true;return this.chart.isInsidePlot(b2,d2,a2)};c2.defaultOptions=C;c2.types=x.seriesTypes;c2.registerType=x.registerSeriesType;return c2}();b(c.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:false,drawLegendSymbol:B.drawLineMarker,isCartesian:true,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:z,requireSorting:true,sorted:true});x.series=c;return c}));I(g,"Extensions/ScrollablePlotArea.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/Axis.js"],g["Core/Chart/Chart.js"],g["Core/Series/Series.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z){var C=c.stop,x=z.addEvent,t=z.createElement,r=z.defined,a=z.merge,q=z.pick;x(y,"afterSetChartSize",(function(c2){var m=this.options.chart.scrollablePlotArea,k=m&&m.minWidth;m=m&&m.minHeight;if(!this.renderer.forExport){if(k){if(this.scrollablePixelsX=k=Math.max(0,k-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=a(this.plotBox);this.plotBox.width=this.plotWidth+=k;this.inverted?this.clipBox.height+=k:this.clipBox.width+=k;var e={1:{name:"right",value:k}}}}else m&&(this.scrollablePixelsY=k=Math.max(0,m-this.chartHeight),r(k)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=a(this.plotBox),this.plotBox.height=this.plotHeight+=k,this.inverted?this.clipBox.width+=k:this.clipBox.height+=k,e={2:{name:"bottom",value:k}}));e&&!c2.skipAxes&&this.axes.forEach((function(a2){e[a2.side]?a2.getPlotLinePath=function(){var c3=e[a2.side].name,k2=this[c3];this[c3]=k2-e[a2.side].value;var m2=g2.prototype.getPlotLinePath.apply(this,arguments);this[c3]=k2;return m2}:(a2.setAxisSize(),a2.setAxisTranslation())}))}}));x(y,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}));y.prototype.setUpScrolling=function(){var a2=this,c2={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(c2.overflowX="auto");this.scrollablePixelsY&&(c2.overflowY="auto");this.scrollingParent=t("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=t("div",{className:"highcharts-scrolling"},c2,this.scrollingParent);var k;x(this.scrollingContainer,"scroll",(function(){a2.pointer&&(delete a2.pointer.chartPosition,a2.hoverPoint&&(k=a2.hoverPoint),a2.pointer.runPointActions(void 0,k,true))}));this.innerContainer=t("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};y.prototype.moveFixedElements=function(){var a2=this.container,c2=this.fixedRenderer,k=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),e;this.scrollablePixelsX&&!this.inverted?e=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?e=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(e=".highcharts-yaxis");e&&k.push(""+e+":not(.highcharts-radial-axis)",""+e+"-labels:not(.highcharts-radial-axis-labels)");k.forEach((function(e2){[].forEach.call(a2.querySelectorAll(e2),(function(a3){(a3.namespaceURI===c2.SVG_NS?c2.box:c2.box.parentNode).appendChild(a3);a3.style.pointerEvents="auto"}))}))};y.prototype.applyFixed=function(){var a2=!this.fixedDiv,c2=this.options.chart,k=c2.scrollablePlotArea,e=B.getRendererType();a2?(this.fixedDiv=t("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(c2.style&&c2.style.zIndex||0)+2,top:0},null,true),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=c2=new e(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=c2.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":q(k.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),x(this,"afterShowResetZoom",this.moveFixedElements),x(this,"afterApplyDrilldown",this.moveFixedElements),x(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a2)this.scrollableDirty=false,this.moveFixedElements();c2=this.chartWidth+(this.scrollablePixelsX||0);e=this.chartHeight+(this.scrollablePixelsY||0);C(this.container);this.container.style.width=c2+"px";this.container.style.height=e+"px";this.renderer.boxWrapper.attr({width:c2,height:e,viewBox:[0,0,c2,e].join(" ")});this.chartBackground.attr({width:c2,height:e});this.scrollingContainer.style.height=this.chartHeight+"px";a2&&(k.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*k.scrollPositionX),k.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*k.scrollPositionY));e=this.axisOffset;a2=this.plotTop-e[0]-1;k=this.plotLeft-e[3]-1;c2=this.plotTop+this.plotHeight+e[2]+1;e=this.plotLeft+this.plotWidth+e[1]+1;var g3=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),r2=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a2=this.scrollablePixelsX?[["M",0,a2],["L",this.plotLeft-1,a2],["L",this.plotLeft-1,c2],["L",0,c2],["Z"],["M",g3,a2],["L",this.chartWidth,a2],["L",this.chartWidth,c2],["L",g3,c2],["Z"]]:this.scrollablePixelsY?[["M",k,0],["L",k,this.plotTop-1],["L",e,this.plotTop-1],["L",e,0],["Z"],["M",k,r2],["L",k,this.chartHeight],["L",e,this.chartHeight],["L",e,r2],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a2})};x(g2,"afterInit",(function(){this.chart.scrollableDirty=true}));x(A,"show",(function(){this.chart.scrollableDirty=true}))}));I(g,"Core/Axis/Stacking/StackItem.js",[g["Core/FormatUtilities.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=c.format,B=g2.series,z=y.destroyObjectProperties,C=y.pick,x=y.isNumber;c=function(){function c2(c3,a,q,m,p){var k=c3.chart.inverted,e=c3.reversed;this.axis=c3;c3=this.isNegative=!!q!==!!e;this.options=a=a||{};this.x=m;this.cumulative=this.total=null;this.points={};this.hasValidPoints=false;this.stack=p;this.rightCliff=this.leftCliff=0;this.alignOptions={align:a.align||(k?c3?"left":"right":"center"),verticalAlign:a.verticalAlign||(k?"middle":c3?"bottom":"top"),y:a.y,x:a.x};this.textAlign=a.textAlign||(k?c3?"right":"left":"center")}c2.prototype.destroy=function(){z(this,this.axis)};c2.prototype.render=function(c3){var a=this.axis.chart,q=this.options,m=q.format;m=m?A(m,this,a):q.formatter.call(this);this.label?this.label.attr({text:m,visibility:"hidden"}):(this.label=a.renderer.label(m,null,void 0,q.shape,void 0,void 0,q.useHTML,false,"stack-labels"),m={r:q.borderRadius||0,text:m,padding:C(q.padding,5),visibility:"hidden"},a.styledMode||(m.fill=q.backgroundColor,m.stroke=q.borderColor,m["stroke-width"]=q.borderWidth,this.label.css(q.style||{})),this.label.attr(m),this.label.added||this.label.add(c3));this.label.labelrank=a.plotSizeY};c2.prototype.setOffset=function(c3,a,q,m,p,k){var e=this.alignOptions,g3=this.axis,r=this.label,t=this.options,z2=this.textAlign,u=g3.chart;c3=this.getStackBox({xOffset:c3,width:a,boxBottom:q,boxTop:m,defaultX:p,xAxis:k});p=e.verticalAlign;r&&c3&&(a=r.getBBox(),q=r.padding,m="justify"===C(t.overflow,"justify"),e.x=t.x||0,e.y=t.y||0,p=this.adjustStackPosition({labelBox:a,verticalAlign:p,textAlign:z2}),z2=p.x,p=p.y,c3.x-=z2,c3.y-=p,r.align(e,false,c3),(z2=u.isInsidePlot(r.alignAttr.x+e.x+z2,r.alignAttr.y+e.y+p))||(m=false),m&&B.prototype.justifyDataLabel.call(g3,r,e,r.alignAttr,a,c3),r.attr({x:r.alignAttr.x,y:r.alignAttr.y,rotation:t.rotation,rotationOriginX:a.width/2,rotationOriginY:a.height/2}),C(!m&&t.crop,true)&&(z2=x(r.x)&&x(r.y)&&u.isInsidePlot(r.x-q+r.width,r.y)&&u.isInsidePlot(r.x+q,r.y)),r[z2?"show":"hide"]())};c2.prototype.adjustStackPosition=function(c3){var a=c3.labelBox,q={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:a.width/2+a.width/2*q[c3.textAlign],y:a.height/2*q[c3.verticalAlign]}};c2.prototype.getStackBox=function(c3){var a=this.axis,q=a.chart,m=c3.boxTop,p=c3.defaultX,k=c3.xOffset,e=c3.width,g3=c3.boxBottom;m=a.stacking.usePercentage?100:C(m,this.total,0);m=a.toPixels(m);c3=C(p,(c3.xAxis||q.xAxis[0]).toPixels(this.x))+k;a=a.toPixels(g3?g3:0);a=Math.abs(m-a);g3=this.isNegative;return q.inverted?{x:(g3?m:m-a)-q.plotLeft,y:c3-q.plotTop,width:a,height:e}:{x:c3-q.plotLeft,y:(g3?m-a:m)-q.plotTop,width:e,height:a}};return c2}();return c}));I(g,"Core/Axis/Stacking/StackingAxis.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Axis/Axis.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Axis/Stacking/StackItem.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B){function z(){var b=this,d2=b.inverted;b.yAxis.forEach((function(b2){b2.stacking&&b2.stacking.stacks&&b2.hasVisibleSeries&&(b2.stacking.oldStacks=b2.stacking.stacks)}));b.series.forEach((function(a2){var h=a2.xAxis&&a2.xAxis.options||{};!a2.options.stacking||true!==a2.visible&&false!==b.options.chart.ignoreHiddenSeries||(a2.stackKey=[a2.type,f(a2.options.stack,""),d2?h.top:h.left,d2?h.height:h.width].join())}))}function C(){var b=this.stacking;if(b){var d2=b.stacks;w(d2,(function(b2,a2){H(b2);d2[a2]=null}));b&&b.stackTotalGroup&&b.stackTotalGroup.destroy()}}function x(){"yAxis"!==this.coll||this.stacking||(this.stacking=new l(this))}function t(b,d2,a2,f2){!G(b)||b.x!==d2||f2&&b.stackKey!==f2?b={x:d2,index:0,key:f2,stackKey:f2}:b.index++;b.key=[a2,d2,b.index].join();return b}function r(){var b=this,d2=b.stackKey,a2=b.yAxis.stacking.stacks,f2=b.processedXData,l2=b[b.options.stacking+"Stacker"],e2;l2&&[d2,"-"+d2].forEach((function(d3){for(var h=f2.length,c2,k2;h--;)c2=f2[h],e2=b.getStackIndicator(e2,c2,b.index,d3),(k2=(c2=a2[d3]&&a2[d3][c2])&&c2.points[e2.key])&&l2.call(b,k2,c2,h)}))}function a(b,d2,a2){d2=d2.total?100/d2.total:0;b[0]=D(b[0]*d2);b[1]=D(b[1]*d2);this.stackedYData[a2]=b[1]}function q(){var b=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?k.setStackedPoints.call(this,"group"):b&&w(b.stacks,(function(d2,a2){"group"===a2.slice(-5)&&(w(d2,(function(b2){return b2.destroy()})),delete b.stacks[a2])}))}function m(b){var d2=this.chart,a2=b||this.options.stacking;if(a2&&(true===this.visible||false===d2.options.chart.ignoreHiddenSeries)){var l2=this.processedXData,e2=this.processedYData,c2=[],k2=e2.length,n2=this.options,m2=n2.threshold,p2=f(n2.startFromThreshold&&m2,0);n2=n2.stack;b=b?""+this.type+",".concat(a2):this.stackKey;var q2="-"+b,w2=this.negStacks;d2="group"===a2?d2.yAxis[0]:this.yAxis;var g3=d2.stacking.stacks,r2=d2.stacking.oldStacks,t2,x2;d2.stacking.stacksTouched+=1;for(x2=0;x2<k2;x2++){var C2=l2[x2];var H2=e2[x2];var z2=this.getStackIndicator(z2,C2,this.index);var B2=z2.key;var y2=(t2=w2&&H2<(p2?0:m2))?q2:b;g3[y2]||(g3[y2]={});g3[y2][C2]||(r2[y2]&&r2[y2][C2]?(g3[y2][C2]=r2[y2][C2],g3[y2][C2].total=null):g3[y2][C2]=new A(d2,d2.options.stackLabels,!!t2,C2,n2));y2=g3[y2][C2];null!==H2?(y2.points[B2]=y2.points[this.index]=[f(y2.cumulative,p2)],G(y2.cumulative)||(y2.base=B2),y2.touched=d2.stacking.stacksTouched,0<z2.index&&false===this.singleStacks&&(y2.points[B2][0]=y2.points[this.index+","+C2+",0"][0])):y2.points[B2]=y2.points[this.index]=null;"percent"===a2?(t2=t2?b:q2,w2&&g3[t2]&&g3[t2][C2]?(t2=g3[t2][C2],y2.total=t2.total=Math.max(t2.total,y2.total)+Math.abs(H2)||0):y2.total=D(y2.total+(Math.abs(H2)||0))):"group"===a2?(u(H2)&&(H2=H2[0]),null!==H2&&(y2.total=(y2.total||0)+1)):y2.total=D(y2.total+(H2||0));y2.cumulative="group"===a2?(y2.total||1)-1:f(y2.cumulative,p2)+(H2||0);null!==H2&&(y2.points[B2].push(y2.cumulative),c2[x2]=y2.cumulative,y2.hasValidPoints=true)}"percent"===a2&&(d2.stacking.usePercentage=true);"group"!==a2&&(this.stackedYData=c2);d2.stacking.oldStacks={}}}var p=c.getDeferredAnimation,k=y.series.prototype,e=B.addEvent,D=B.correctFloat,G=B.defined,H=B.destroyObjectProperties,K=B.fireEvent,u=B.isArray,n=B.isNumber,w=B.objectEach,f=B.pick,l=function(){function b(b2){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=b2}b.prototype.buildStacks=function(){var b2=this.axis,d2=b2.series,a2=b2.options.reversedStacks,f2=d2.length,l2;this.usePercentage=false;for(l2=f2;l2--;){var e2=d2[a2?l2:f2-l2-1];e2.setStackedPoints();e2.setGroupedPoints()}for(l2=0;l2<f2;l2++)d2[l2].modifyStacks();K(b2,"afterBuildStacks")};b.prototype.cleanStacks=function(){if(this.oldStacks)var b2=this.stacks=this.oldStacks;w(b2,(function(b3){w(b3,(function(b4){b4.cumulative=b4.total}))}))};b.prototype.resetStacks=function(){var b2=this;w(this.stacks,(function(d2){w(d2,(function(a2,h){n(a2.touched)&&a2.touched<b2.stacksTouched?(a2.destroy(),delete d2[h]):(a2.total=null,a2.cumulative=null)}))}))};b.prototype.renderStackTotals=function(){var b2=this.axis,d2=b2.chart,a2=d2.renderer,f2=this.stacks;b2=p(d2,b2.options.stackLabels&&b2.options.stackLabels.animation||false);var l2=this.stackTotalGroup=this.stackTotalGroup||a2.g("stack-labels").attr({zIndex:6,opacity:0}).add();l2.translate(d2.plotLeft,d2.plotTop);w(f2,(function(b3){w(b3,(function(b4){b4.render(l2)}))}));l2.animate({opacity:1},b2)};return b}(),d;(function(b){var d2=[];b.compose=function(b2,h,f2){-1===d2.indexOf(b2)&&(d2.push(b2),e(b2,"init",x),e(b2,"destroy",C));-1===d2.indexOf(h)&&(d2.push(h),h.prototype.getStacks=z);-1===d2.indexOf(f2)&&(d2.push(f2),b2=f2.prototype,b2.getStackIndicator=t,b2.modifyStacks=r,b2.percentStacker=a,b2.setGroupedPoints=q,b2.setStackedPoints=m)}})(d||(d={}));return d}));I(g,"Series/Line/LineSeries.js",[g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=this&&this.__extends||function(){var c2=function(g3,t){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c3,a){c3.__proto__=a}||function(c3,a){for(var q in a)a.hasOwnProperty(q)&&(c3[q]=a[q])};return c2(g3,t)};return function(g3,t){function r(){this.constructor=g3}c2(g3,t);g3.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),B=y.defined,z=y.merge;y=function(g3){function x(){var c2=null!==g3&&g3.apply(this,arguments)||this;c2.data=void 0;c2.options=void 0;c2.points=void 0;return c2}A(x,g3);x.prototype.drawGraph=function(){var c2=this,g4=this.options,a=(this.gappedPath||this.getGraphPath).call(this),q=this.chart.styledMode,m=[["graph","highcharts-graph"]];q||m[0].push(g4.lineColor||this.color||"#cccccc",g4.dashStyle);m=c2.getZonesGraphs(m);m.forEach((function(m2,k){var e=m2[0],p=c2[e],r=p?"animate":"attr";p?(p.endX=c2.preventGraphAnimation?null:a.xMap,p.animate({d:a})):a.length&&(c2[e]=p=c2.chart.renderer.path(a).addClass(m2[1]).attr({zIndex:1}).add(c2.group));p&&!q&&(e={stroke:m2[2],"stroke-width":g4.lineWidth||0,fill:c2.fillGraph&&c2.color||"none"},m2[3]?e.dashstyle=m2[3]:"square"!==g4.linecap&&(e["stroke-linecap"]=e["stroke-linejoin"]="round"),p[r](e).shadow(2>k&&g4.shadow));p&&(p.startX=a.xMap,p.isArea=a.isArea)}))};x.prototype.getGraphPath=function(c2,g4,a){var q=this,m=q.options,p=[],k=[],e,r=m.step;c2=c2||q.points;var t=c2.reversed;t&&c2.reverse();(r={right:1,center:2}[r]||r&&3)&&t&&(r=4-r);c2=this.getValidPoints(c2,false,!(m.connectNulls&&!g4&&!a));c2.forEach((function(t2,D){var u=t2.plotX,n=t2.plotY,w=c2[D-1];(t2.leftCliff||w&&w.rightCliff)&&!a&&(e=true);t2.isNull&&!B(g4)&&0<D?e=!m.connectNulls:t2.isNull&&!g4?e=true:(0===D||e?D=[["M",t2.plotX,t2.plotY]]:q.getPointSpline?D=[q.getPointSpline(c2,t2,D)]:r?(D=1===r?[["L",w.plotX,n]]:2===r?[["L",(w.plotX+u)/2,w.plotY],["L",(w.plotX+u)/2,n]]:[["L",u,w.plotY]],D.push(["L",u,n])):D=[["L",u,n]],k.push(t2.x),r&&(k.push(t2.x),2===r&&k.push(t2.x)),p.push.apply(p,D),e=false)}));p.xMap=k;return q.graphPath=p};x.prototype.getZonesGraphs=function(c2){this.zones.forEach((function(g4,a){a=["zone-graph-"+a,"highcharts-graph highcharts-zone-graph-"+a+" "+(g4.className||"")];this.chart.styledMode||a.push(g4.color||this.color,g4.dashStyle||this.options.dashStyle);c2.push(a)}),this);return c2};x.defaultOptions=z(c.defaultOptions,{});return x}(c);g2.registerSeriesType("line",y);return y}));I(g,"Series/Area/AreaSeries.js",[g["Core/Color/Color.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){var B=this&&this.__extends||function(){var a=function(c2,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,c3){a2.__proto__=c3}||function(a2,c3){for(var e in c3)c3.hasOwnProperty(e)&&(a2[e]=c3[e])};return a(c2,m)};return function(c2,m){function p(){this.constructor=c2}a(c2,m);c2.prototype=null===m?Object.create(m):(p.prototype=m.prototype,new p)}}(),z=c.parse,C=y.seriesTypes.line;c=A.extend;var x=A.merge,t=A.objectEach,r=A.pick;A=function(a){function c2(){var c3=null!==a&&a.apply(this,arguments)||this;c3.data=void 0;c3.options=void 0;c3.points=void 0;return c3}B(c2,a);c2.prototype.drawGraph=function(){this.areaPath=[];a.prototype.drawGraph.apply(this);var c3=this,p=this.areaPath,k=this.options,e=[["area","highcharts-area",this.color,k.fillColor]];this.zones.forEach((function(a2,m){e.push(["zone-area-"+m,"highcharts-area highcharts-zone-area-"+m+" "+a2.className,a2.color||c3.color,a2.fillColor||k.fillColor])}));e.forEach((function(a2){var e2=a2[0],m={},q=c3[e2],g3=q?"animate":"attr";q?(q.endX=c3.preventGraphAnimation?null:p.xMap,q.animate({d:p})):(m.zIndex=0,q=c3[e2]=c3.chart.renderer.path(p).addClass(a2[1]).add(c3.group),q.isArea=true);c3.chart.styledMode||(m.fill=r(a2[3],z(a2[2]).setOpacity(r(k.fillOpacity,.75)).get()));q[g3](m);q.startX=p.xMap;q.shiftUnit=k.step?2:1}))};c2.prototype.getGraphPath=function(a2){var c3=C.prototype.getGraphPath,k=this.options,e=k.stacking,m=this.yAxis,q=[],g3=[],t2=this.index,u=m.stacking.stacks[this.stackKey],n=k.threshold,w=Math.round(m.getThreshold(k.threshold));k=r(k.connectNulls,"percent"===e);var f=function(b2,d2,f2){var l2=a2[b2];b2=e&&u[l2.x].points[t2];var c4=l2[f2+"Null"]||0;f2=l2[f2+"Cliff"]||0;l2=true;if(f2||c4){var k2=(c4?b2[0]:b2[1])+f2;var v2=b2[0]+f2;l2=!!c4}else!e&&a2[d2]&&a2[d2].isNull&&(k2=v2=n);"undefined"!==typeof k2&&(g3.push({plotX:h,plotY:null===k2?w:m.getThreshold(k2),isNull:l2,isCliff:true}),q.push({plotX:h,plotY:null===v2?w:m.getThreshold(v2),doCurve:false}))};a2=a2||this.points;e&&(a2=this.getStackPoints(a2));for(var l=0,d=a2.length;l<d;++l){e||(a2[l].leftCliff=a2[l].rightCliff=a2[l].leftNull=a2[l].rightNull=void 0);var b=a2[l].isNull;var h=r(a2[l].rectPlotX,a2[l].plotX);var v=e?r(a2[l].yBottom,w):w;if(!b||k)k||f(l,l-1,"left"),b&&!e&&k||(g3.push(a2[l]),q.push({x:l,plotX:h,plotY:v})),k||f(l,l+1,"right")}f=c3.call(this,g3,true,true);q.reversed=true;b=c3.call(this,q,true,true);(v=b[0])&&"M"===v[0]&&(b[0]=["L",v[1],v[2]]);b=f.concat(b);b.length&&b.push(["Z"]);c3=c3.call(this,g3,false,k);b.xMap=f.xMap;this.areaPath=b;return c3};c2.prototype.getStackPoints=function(a2){var c3=this,k=[],e=[],m=this.xAxis,q=this.yAxis,g3=q.stacking.stacks[this.stackKey],x2={},u=q.series,n=u.length,w=q.options.reversedStacks?1:-1,f=u.indexOf(c3);a2=a2||this.points;if(this.options.stacking){for(var l=0;l<a2.length;l++)a2[l].leftNull=a2[l].rightNull=void 0,x2[a2[l].x]=a2[l];t(g3,(function(b,d2){null!==b.total&&e.push(d2)}));e.sort((function(b,d2){return b-d2}));var d=u.map((function(b){return b.visible}));e.forEach((function(b,a3){var h=0,l2,p;if(x2[b]&&!x2[b].isNull)k.push(x2[b]),[-1,1].forEach((function(h2){var k2=1===h2?"rightNull":"leftNull",m2=g3[e[a3+h2]],v=0;if(m2)for(var q2=f;0<=q2&&q2<n;){var r2=u[q2].index;l2=m2.points[r2];l2||(r2===c3.index?x2[b][k2]=true:d[q2]&&(p=g3[b].points[r2])&&(v-=p[1]-p[0]));q2+=w}x2[b][1===h2?"rightCliff":"leftCliff"]=v}));else{for(var t2=f;0<=t2&&t2<n;){if(l2=g3[b].points[u[t2].index]){h=l2[1];break}t2+=w}h=r(h,0);h=q.translate(h,0,1,0,1);k.push({isNull:true,plotX:m.translate(b,0,0,0,1),x:b,plotY:h,yBottom:h})}}))}return k};c2.defaultOptions=x(C.defaultOptions,{threshold:0});return c2}(C);c(A.prototype,{singleStacks:false,drawLegendSymbol:g2.drawRectangle});y.registerSeriesType("area",A);return A}));I(g,"Series/Spline/SplineSeries.js",[g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2){var y=this&&this.__extends||function(){var c2=function(g3,t){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c3,a){c3.__proto__=a}||function(c3,a){for(var q in a)a.hasOwnProperty(q)&&(c3[q]=a[q])};return c2(g3,t)};return function(g3,t){function r(){this.constructor=g3}c2(g3,t);g3.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),A=c.seriesTypes.line,B=g2.merge,z=g2.pick;g2=function(c2){function g3(){var g4=null!==c2&&c2.apply(this,arguments)||this;g4.data=void 0;g4.options=void 0;g4.points=void 0;return g4}y(g3,c2);g3.prototype.getPointSpline=function(c3,g4,a){var q=g4.plotX||0,m=g4.plotY||0,p=c3[a-1];a=c3[a+1];if(p&&!p.isNull&&false!==p.doCurve&&!g4.isCliff&&a&&!a.isNull&&false!==a.doCurve&&!g4.isCliff){c3=p.plotY||0;var k=a.plotX||0;a=a.plotY||0;var e=0;var r=(1.5*q+(p.plotX||0))/2.5;var t=(1.5*m+c3)/2.5;k=(1.5*q+k)/2.5;var x=(1.5*m+a)/2.5;k!==r&&(e=(x-t)*(k-q)/(k-r)+m-x);t+=e;x+=e;t>c3&&t>m?(t=Math.max(c3,m),x=2*m-t):t<c3&&t<m&&(t=Math.min(c3,m),x=2*m-t);x>a&&x>m?(x=Math.max(a,m),t=2*m-x):x<a&&x<m&&(x=Math.min(a,m),t=2*m-x);g4.rightContX=k;g4.rightContY=x}g4=["C",z(p.rightContX,p.plotX,0),z(p.rightContY,p.plotY,0),z(r,q,0),z(t,m,0),q,m];p.rightContX=p.rightContY=void 0;return g4};g3.defaultOptions=B(A.defaultOptions);return g3}(A);c.registerSeriesType("spline",g2);return g2}));I(g,"Series/AreaSpline/AreaSplineSeries.js",[g["Series/Spline/SplineSeries.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){var B=this&&this.__extends||function(){var c2=function(a,q){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,c3){a2.__proto__=c3}||function(a2,c3){for(var k in c3)c3.hasOwnProperty(k)&&(a2[k]=c3[k])};return c2(a,q)};return function(a,q){function m(){this.constructor=a}c2(a,q);a.prototype=null===q?Object.create(q):(m.prototype=q.prototype,new m)}}(),z=y.seriesTypes,C=z.area;z=z.area.prototype;var x=A.extend,t=A.merge;A=function(g3){function a(){var a2=null!==g3&&g3.apply(this,arguments)||this;a2.data=void 0;a2.points=void 0;a2.options=void 0;return a2}B(a,g3);a.defaultOptions=t(c.defaultOptions,C.defaultOptions);return a}(c);x(A.prototype,{getGraphPath:z.getGraphPath,getStackPoints:z.getStackPoints,drawGraph:z.drawGraph,drawLegendSymbol:g2.drawRectangle});y.registerSeriesType("areaspline",A);return A}));I(g,"Series/Column/ColumnSeriesDefaults.js",[],(function(){return{borderRadius:0,centerInCategory:false,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:false,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:true,stickyTracking:false,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}));I(g,"Series/Column/ColumnSeries.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Color/Color.js"],g["Series/Column/ColumnSeriesDefaults.js"],g["Core/Globals.js"],g["Core/Legend/LegendSymbol.js"],g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C,x){var t=this&&this.__extends||function(){var a2=function(e2,f){a2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a3,d){a3.__proto__=d}||function(a3,d){for(var b in d)d.hasOwnProperty(b)&&(a3[b]=d[b])};return a2(e2,f)};return function(e2,f){function l(){this.constructor=e2}a2(e2,f);e2.prototype=null===f?Object.create(f):(l.prototype=f.prototype,new l)}}(),r=c.animObject,a=g2.parse,q=A.hasTouch;c=A.noop;var m=x.clamp,p=x.defined,k=x.extend,e=x.fireEvent,D=x.isArray,G=x.isNumber,H=x.merge,K=x.pick,u=x.objectEach;x=function(c2){function n(){var a2=null!==c2&&c2.apply(this,arguments)||this;a2.borderWidth=void 0;a2.data=void 0;a2.group=void 0;a2.options=void 0;a2.points=void 0;return a2}t(n,c2);n.prototype.animate=function(a2){var f=this,d=this.yAxis,b=f.options,h=this.chart.inverted,e2={},c3=h?"translateX":"translateY";if(a2)e2.scaleY=.001,a2=m(d.toPixels(b.threshold),d.pos,d.pos+d.len),h?e2.translateX=a2-d.len:e2.translateY=a2,f.clipBox&&f.setClip(),f.group.attr(e2);else{var n2=Number(f.group.attr(c3));f.group.animate({scaleY:1},k(r(f.options.animation),{step:function(b2,a3){f.group&&(e2[c3]=n2+a3.pos*(d.pos-n2),f.group.attr(e2))}}))}};n.prototype.init=function(a2,l){c2.prototype.init.apply(this,arguments);var d=this;a2=d.chart;a2.hasRendered&&a2.series.forEach((function(b){b.type===d.type&&(b.isDirty=true)}))};n.prototype.getColumnMetrics=function(){var a2=this,l=a2.options,d=a2.xAxis,b=a2.yAxis,h=d.options.reversedStacks;h=d.reversed&&!h||!d.reversed&&h;var e2={},c3,k2=0;false===l.grouping?k2=1:a2.chart.series.forEach((function(d2){var h2=d2.yAxis,f=d2.options;if(d2.type===a2.type&&(d2.visible||!a2.chart.options.chart.ignoreHiddenSeries)&&b.len===h2.len&&b.pos===h2.pos){if(f.stacking&&"group"!==f.stacking){c3=d2.stackKey;"undefined"===typeof e2[c3]&&(e2[c3]=k2++);var l2=e2[c3]}else false!==f.grouping&&(l2=k2++);d2.columnIndex=l2}}));var n2=Math.min(Math.abs(d.transA)*(d.ordinal&&d.ordinal.slope||l.pointRange||d.closestPointRange||d.tickInterval||1),d.len),m2=n2*l.groupPadding,p2=(n2-2*m2)/(k2||1);l=Math.min(l.maxPointWidth||d.len,K(l.pointWidth,p2*(1-2*l.pointPadding)));a2.columnMetrics={width:l,offset:(p2-l)/2+(m2+((a2.columnIndex||0)+(h?1:0))*p2-n2/2)*(h?-1:1),paddedWidth:p2,columnCount:k2};return a2.columnMetrics};n.prototype.crispCol=function(a2,l,d,b){var h=this.chart,f=this.borderWidth,e2=-(f%2?.5:0);f=f%2?.5:1;h.inverted&&h.renderer.isVML&&(f+=1);this.options.crisp&&(d=Math.round(a2+d)+e2,a2=Math.round(a2)+e2,d-=a2);b=Math.round(l+b)+f;e2=.5>=Math.abs(l)&&.5<b;l=Math.round(l)+f;b-=l;e2&&b&&(--l,b+=1);return{x:a2,y:l,width:d,height:b}};n.prototype.adjustForMissingColumns=function(a2,l,d,b){var h=this,f=this.options.stacking;if(!d.isNull&&1<b.columnCount){var e2=this.yAxis.options.reversedStacks,c3=0,k2=e2?0:-b.columnCount;u(this.yAxis.stacking&&this.yAxis.stacking.stacks,(function(b2){if("number"===typeof d.x){var a3=b2[d.x.toString()];a3&&(b2=a3.points[h.index],f?(b2&&(c3=k2),a3.hasValidPoints&&(e2?k2++:k2--)):D(b2)&&(b2=Object.keys(a3.points).filter((function(b3){return!b3.match(",")&&a3.points[b3]&&1<a3.points[b3].length})).map(parseFloat).sort((function(b3,d2){return d2-b3})),c3=b2.indexOf(h.index),k2=b2.length))}}));a2=(d.plotX||0)+((k2-1)*b.paddedWidth+l)/2-l-c3*b.paddedWidth}return a2};n.prototype.translate=function(){var a2=this,l=a2.chart,d=a2.options,b=a2.dense=2>a2.closestPointRange*a2.xAxis.transA;b=a2.borderWidth=K(d.borderWidth,b?0:1);var h=a2.xAxis,e2=a2.yAxis,c3=d.threshold,k2=a2.translatedThreshold=e2.getThreshold(c3),n2=K(d.minPointLength,5),g3=a2.getColumnMetrics(),q2=g3.width,u2=a2.pointXOffset=g3.offset,w=a2.dataMin,r2=a2.dataMax,t2=a2.barW=Math.max(q2,1+2*b);l.inverted&&(k2-=.5);d.pointPadding&&(t2=Math.ceil(t2));z.prototype.translate.apply(a2);a2.points.forEach((function(b2){var f=K(b2.yBottom,k2),v=999+Math.abs(f),E=b2.plotX||0;v=m(b2.plotY,-v,e2.len+v);var F=Math.min(v,f),D2=Math.max(v,f)-F,J=q2,x2=E+u2,M=t2;n2&&Math.abs(D2)<n2&&(D2=n2,E=!e2.reversed&&!b2.negative||e2.reversed&&b2.negative,G(c3)&&G(r2)&&b2.y===c3&&r2<=c3&&(e2.min||0)<c3&&(w!==r2||(e2.max||0)<=c3)&&(E=!E),F=Math.abs(F-k2)>n2?f-n2:k2-(E?n2:0));p(b2.options.pointWidth)&&(J=M=Math.ceil(b2.options.pointWidth),x2-=Math.round((J-q2)/2));d.centerInCategory&&(x2=a2.adjustForMissingColumns(x2,J,b2,g3));b2.barX=x2;b2.pointWidth=J;b2.tooltipPos=l.inverted?[m(e2.len+e2.pos-l.plotLeft-v,e2.pos-l.plotLeft,e2.len+e2.pos-l.plotLeft),h.len+h.pos-l.plotTop-x2-M/2,D2]:[h.left-l.plotLeft+x2+M/2,m(v+e2.pos-l.plotTop,e2.pos-l.plotTop,e2.len+e2.pos-l.plotTop),D2];b2.shapeType=a2.pointClass.prototype.shapeType||"rect";b2.shapeArgs=a2.crispCol.apply(a2,b2.isNull?[x2,k2,M,0]:[x2,F,M,D2])}))};n.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};n.prototype.pointAttribs=function(f,l){var d=this.options,b=this.pointAttrToOptions||{},h=b.stroke||"borderColor",e2=b["stroke-width"]||"borderWidth",c3=f&&f.color||this.color,k2=f&&f[h]||d[h]||c3;b=f&&f.options.dashStyle||d.dashStyle;var n2=f&&f[e2]||d[e2]||this[e2]||0,m2=K(f&&f.opacity,d.opacity,1);if(f&&this.zones.length){var p2=f.getZone();c3=f.options.color||p2&&(p2.color||f.nonZonedColor)||this.color;p2&&(k2=p2.borderColor||k2,b=p2.dashStyle||b,n2=p2.borderWidth||n2)}l&&f&&(f=H(d.states[l],f.options.states&&f.options.states[l]||{}),l=f.brightness,c3=f.color||"undefined"!==typeof l&&a(c3).brighten(f.brightness).get()||c3,k2=f[h]||k2,n2=f[e2]||n2,b=f.dashStyle||b,m2=K(f.opacity,m2));h={fill:c3,stroke:k2,"stroke-width":n2,opacity:m2};b&&(h.dashstyle=b);return h};n.prototype.drawPoints=function(a2){void 0===a2&&(a2=this.points);var f=this,d=this.chart,b=f.options,h=d.renderer,e2=b.animationLimit||250,c3;a2.forEach((function(a3){var l=a3.graphic,k2=!!l,n2=l&&d.pointCount<e2?"animate":"attr";if(G(a3.plotY)&&null!==a3.y){c3=a3.shapeArgs;l&&a3.hasNewShapeType()&&(l=l.destroy());f.enabledDataSorting&&(a3.startXPos=f.xAxis.reversed?-(c3?c3.width||0:0):f.xAxis.width);l||(a3.graphic=l=h[a3.shapeType](c3).add(a3.group||f.group))&&f.enabledDataSorting&&d.hasRendered&&d.pointCount<e2&&(l.attr({x:a3.startXPos}),k2=true,n2="animate");if(l&&k2)l[n2](H(c3));if(b.borderRadius)l[n2]({r:b.borderRadius});d.styledMode||l[n2](f.pointAttribs(a3,a3.selected&&"select")).shadow(false!==a3.allowShadow&&b.shadow,null,b.stacking&&!b.borderRadius);l&&(l.addClass(a3.getClassName(),true),l.attr({visibility:a3.visible?"inherit":"hidden"}))}else l&&(a3.graphic=l.destroy())}))};n.prototype.drawTracker=function(a2){void 0===a2&&(a2=this.points);var f=this,d=f.chart,b=d.pointer,h=function(d2){var a3=b.getPointFromEvent(d2);"undefined"!==typeof a3&&(b.isDirectTouch=true,a3.onMouseOver(d2))},c3;a2.forEach((function(b2){c3=D(b2.dataLabels)?b2.dataLabels:b2.dataLabel?[b2.dataLabel]:[];b2.graphic&&(b2.graphic.element.point=b2);c3.forEach((function(d2){d2.div?d2.div.point=b2:d2.element.point=b2}))}));f._hasTracking||(f.trackerGroups.forEach((function(a3){if(f[a3]){f[a3].addClass("highcharts-tracker").on("mouseover",h).on("mouseout",(function(d2){b.onTrackerMouseOut(d2)}));if(q)f[a3].on("touchstart",h);!d.styledMode&&f.options.cursor&&f[a3].css({cursor:f.options.cursor})}})),f._hasTracking=true);e(this,"afterDrawTracker")};n.prototype.remove=function(){var a2=this,l=a2.chart;l.hasRendered&&l.series.forEach((function(d){d.type===a2.type&&(d.isDirty=true)}));z.prototype.remove.apply(a2,arguments)};n.defaultOptions=H(z.defaultOptions,y);return n}(z);k(x.prototype,{cropShoulder:0,directTouch:true,drawLegendSymbol:B.drawRectangle,getSymbol:c,negStacks:true,trackerGroups:["group","dataLabelsGroup"]});C.registerSeriesType("column",x);return x}));I(g,"Core/Series/DataLabel.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/FormatUtilities.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=c.getDeferredAnimation,B=g2.format,z=y.defined,C=y.extend,x=y.fireEvent,t=y.isArray,r=y.isString,a=y.merge,q=y.objectEach,m=y.pick,p=y.splat,k;(function(e){function c2(a2,l,d,b,h){var f=this,e2=this.chart,c3=this.isCartesian&&e2.inverted,k3=this.enabledDataSorting,n2=a2.plotX,p2=a2.plotY,g4=d.rotation,q2=d.align,u2=z(n2)&&z(p2)&&e2.isInsidePlot(n2,Math.round(p2),{inverted:c3,paneCoordinates:true,series:f});p2=function(b2){k3&&f.xAxis&&!w2&&f.setDataLabelStartPos(a2,l,h,u2,b2)};var w2="justify"===m(d.overflow,k3?"none":"justify");n2=this.visible&&false!==a2.visible&&z(n2)&&(a2.series.forceDL||k3&&!w2||u2||m(d.inside,!!this.options.stacking)&&b&&e2.isInsidePlot(n2,c3?b.x+1:b.y+b.height-1,{inverted:c3,paneCoordinates:true,series:f}));c3=a2.pos();if(n2&&c3){g4&&l.attr({align:q2});q2=l.getBBox(true);var r2=[0,0];var t2=e2.renderer.fontMetrics(e2.styledMode?void 0:d.style.fontSize,l).b;b=C({x:c3[0],y:Math.round(c3[1]),width:0,height:0},b);C(d,{width:q2.width,height:q2.height});g4?(w2=false,r2=e2.renderer.rotCorr(t2,g4),t2={x:b.x+(d.x||0)+b.width/2+r2.x,y:b.y+(d.y||0)+{top:0,middle:.5,bottom:1}[d.verticalAlign]*b.height},r2=[q2.x-Number(l.attr("x")),q2.y-Number(l.attr("y"))],p2(t2),l[h?"attr":"animate"](t2)):(p2(b),l.align(d,void 0,b),t2=l.alignAttr);w2&&0<=b.height?this.justifyDataLabel(l,d,t2,q2,b,h):m(d.crop,true)&&(b=t2.x,p2=t2.y,b+=r2[0],p2+=r2[1],n2=e2.isInsidePlot(b,p2,{paneCoordinates:true,series:f})&&e2.isInsidePlot(b+q2.width,p2+q2.height,{paneCoordinates:true,series:f}));if(d.shape&&!g4)l[h?"attr":"animate"]({anchorX:c3[0],anchorY:c3[1]})}h&&k3&&(l.placed=false);n2||k3&&!w2?l.show():(l.hide(),l.placed=false)}function k2(a2,l){var d=l.filter;return d?(l=d.operator,a2=a2[d.property],d=d.value,">"===l&&a2>d||"<"===l&&a2<d||">="===l&&a2>=d||"<="===l&&a2<=d||"=="===l&&a2==d||"==="===l&&a2===d?true:false):true}function g3(a2){void 0===a2&&(a2=this.points);var f=this,d=f.chart,b=f.options,h=f.hasRendered||0,e2=d.renderer,c3=d.options.chart,n2=c3.backgroundColor;c3=c3.plotBackgroundColor;var g4=e2.getContrast(r(c3)&&c3||r(n2)&&n2||"#000000"),w2=b.dataLabels,D;n2=w2.animation;n2=w2.defer?A(d,n2,f):{defer:0,duration:0};w2=u(u(d.options.plotOptions&&d.options.plotOptions.series&&d.options.plotOptions.series.dataLabels,d.options.plotOptions&&d.options.plotOptions[f.type]&&d.options.plotOptions[f.type].dataLabels),w2);x(this,"drawDataLabels");if(t(w2)||w2.enabled||f._hasPointLabels){var G=f.plotGroup("dataLabelsGroup","data-labels",h?"inherit":"hidden",w2.zIndex||6);G.attr({opacity:+h});!h&&(h=f.dataLabelsGroup)&&(f.visible&&G.show(),h[b.animation?"animate":"attr"]({opacity:1},n2));a2.forEach((function(a3){D=p(u(w2,a3.dlOptions||a3.options&&a3.options.dataLabels));D.forEach((function(h2,l){var c4=h2.enabled&&(!a3.isNull||a3.dataLabelOnNull)&&k2(a3,h2),n3=a3.connectors?a3.connectors[l]:a3.connector,p2=a3.dataLabels?a3.dataLabels[l]:a3.dataLabel,v=!p2,w3=m(h2.distance,a3.labelDistance);if(c4){var u2=a3.getLabelConfig();var r2=m(h2[a3.formatPrefix+"Format"],h2.format);u2=z(r2)?B(r2,u2,d):(h2[a3.formatPrefix+"Formatter"]||h2.formatter).call(u2,h2);r2=h2.style;var t2=h2.rotation;d.styledMode||(r2.color=m(h2.color,r2.color,f.color,"#000000"),"contrast"===r2.color?(a3.contrastColor=e2.getContrast(a3.color||f.color),r2.color=!z(w3)&&h2.inside||0>w3||b.stacking?a3.contrastColor:g4):delete a3.contrastColor,b.cursor&&(r2.cursor=b.cursor));var E={r:h2.borderRadius||0,rotation:t2,padding:h2.padding,zIndex:1};if(!d.styledMode){w3=h2.backgroundColor;var D2=h2.borderColor;E.fill="auto"===w3?a3.color:w3;E.stroke="auto"===D2?a3.color:D2;E["stroke-width"]=h2.borderWidth}q(E,(function(b2,a4){"undefined"===typeof b2&&delete E[a4]}))}!p2||c4&&z(u2)&&!!p2.div===!!h2.useHTML&&(p2.rotation&&h2.rotation||p2.rotation===h2.rotation)||(v=true,a3.dataLabel=p2=a3.dataLabel&&a3.dataLabel.destroy(),a3.dataLabels&&(1===a3.dataLabels.length?delete a3.dataLabels:delete a3.dataLabels[l]),l||delete a3.dataLabel,n3&&(a3.connector=a3.connector.destroy(),a3.connectors&&(1===a3.connectors.length?delete a3.connectors:delete a3.connectors[l])));c4&&z(u2)?(p2?E.text=u2:(a3.dataLabels=a3.dataLabels||[],p2=a3.dataLabels[l]=t2?e2.text(u2,0,0,h2.useHTML).addClass("highcharts-data-label"):e2.label(u2,0,0,h2.shape,null,null,h2.useHTML,null,"data-label"),l||(a3.dataLabel=p2),p2.addClass(" highcharts-data-label-color-"+a3.colorIndex+" "+(h2.className||"")+(h2.useHTML?" highcharts-tracker":""))),p2.options=h2,p2.attr(E),d.styledMode||p2.css(r2).shadow(h2.shadow),(l=h2[a3.formatPrefix+"TextPath"]||h2.textPath)&&!h2.useHTML&&(p2.setTextPath(a3.getDataLabelPath&&a3.getDataLabelPath(p2)||a3.graphic,l),a3.dataLabelPath&&!l.enabled&&(a3.dataLabelPath=a3.dataLabelPath.destroy())),p2.added||p2.add(G),f.alignDataLabel(a3,p2,h2,null,v)):p2&&p2.hide()}))}))}x(this,"afterDrawDataLabels")}function y2(a2,e2,d,b,h,c3){var f=this.chart,l=e2.align,k3=e2.verticalAlign,n2=a2.box?0:a2.padding||0,m2=e2.x;m2=void 0===m2?0:m2;var p2=e2.y;p2=void 0===p2?0:p2;var v=(d.x||0)+n2;if(0>v){"right"===l&&0<=m2?(e2.align="left",e2.inside=true):m2-=v;var g4=true}v=(d.x||0)+b.width-n2;v>f.plotWidth&&("left"===l&&0>=m2?(e2.align="right",e2.inside=true):m2+=f.plotWidth-v,g4=true);v=d.y+n2;0>v&&("bottom"===k3&&0<=p2?(e2.verticalAlign="top",e2.inside=true):p2-=v,g4=true);v=(d.y||0)+b.height-n2;v>f.plotHeight&&("top"===k3&&0>=p2?(e2.verticalAlign="bottom",e2.inside=true):p2+=f.plotHeight-v,g4=true);g4&&(e2.x=m2,e2.y=p2,a2.placed=!c3,a2.align(e2,void 0,h));return g4}function u(f,e2){var d=[],b;if(t(f)&&!t(e2))d=f.map((function(b2){return a(b2,e2)}));else if(t(e2)&&!t(f))d=e2.map((function(b2){return a(f,b2)}));else if(t(f)||t(e2))for(b=Math.max(f.length,e2.length);b--;)d[b]=a(f[b],e2[b]);else d=a(f,e2);return d}function n(a2,e2,d,b,h){var f=this.chart,l=f.inverted,c3=this.xAxis,k3=c3.reversed,n2=l?e2.height/2:e2.width/2;a2=(a2=a2.pointWidth)?a2/2:0;e2.startXPos=l?h.x:k3?-n2-a2:c3.width-n2+a2;e2.startYPos=l?k3?this.yAxis.height-n2+a2:-n2-a2:h.y;b?"hidden"===e2.visibility&&(e2.show(),e2.attr({opacity:0}).animate({opacity:1})):e2.attr({opacity:1}).animate({opacity:0},void 0,e2.hide);f.hasRendered&&(d&&e2.attr({x:e2.startXPos,y:e2.startYPos}),e2.placed=true)}var w=[];e.compose=function(a2){if(-1===w.indexOf(a2)){var f=a2.prototype;w.push(a2);f.alignDataLabel=c2;f.drawDataLabels=g3;f.justifyDataLabel=y2;f.setDataLabelStartPos=n}}})(k||(k={}));return k}));I(g,"Series/Column/ColumnDataLabel.js",[g["Core/Series/DataLabel.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=g2.series,B=y.merge,z=y.pick,C;(function(g3){function t(a,c2,m,p,k){var e=this.chart.inverted,g4=a.series,q=(g4.xAxis?g4.xAxis.len:this.chart.plotSizeX)||0;g4=(g4.yAxis?g4.yAxis.len:this.chart.plotSizeY)||0;var r2=a.dlBox||a.shapeArgs,t2=z(a.below,a.plotY>z(this.translatedThreshold,g4)),u=z(m.inside,!!this.options.stacking);r2&&(p=B(r2),0>p.y&&(p.height+=p.y,p.y=0),r2=p.y+p.height-g4,0<r2&&r2<p.height&&(p.height-=r2),e&&(p={x:g4-p.y-p.height,y:q-p.x-p.width,width:p.height,height:p.width}),u||(e?(p.x+=t2?0:p.width,p.width=0):(p.y+=t2?p.height:0,p.height=0)));m.align=z(m.align,!e||u?"center":t2?"right":"left");m.verticalAlign=z(m.verticalAlign,e||u?"middle":t2?"top":"bottom");A.prototype.alignDataLabel.call(this,a,c2,m,p,k);m.inside&&a.contrastColor&&c2.css({color:a.contrastColor})}var r=[];g3.compose=function(a){c.compose(A);-1===r.indexOf(a)&&(r.push(a),a.prototype.alignDataLabel=t)}})(C||(C={}));return C}));I(g,"Series/Bar/BarSeries.js",[g["Series/Column/ColumnSeries.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=this&&this.__extends||function(){var c2=function(g3,t){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c3,a){c3.__proto__=a}||function(c3,a){for(var g4 in a)a.hasOwnProperty(g4)&&(c3[g4]=a[g4])};return c2(g3,t)};return function(g3,t){function r(){this.constructor=g3}c2(g3,t);g3.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),B=y.extend,z=y.merge;y=function(g3){function x(){var c2=null!==g3&&g3.apply(this,arguments)||this;c2.data=void 0;c2.options=void 0;c2.points=void 0;return c2}A(x,g3);x.defaultOptions=z(c.defaultOptions,{});return x}(c);B(y.prototype,{inverted:true});g2.registerSeriesType("bar",y);return y}));I(g,"Series/Scatter/ScatterSeriesDefaults.js",[],(function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:true},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}));I(g,"Series/Scatter/ScatterSeries.js",[g["Series/Scatter/ScatterSeriesDefaults.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=this&&this.__extends||function(){var c2=function(a,g3){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,c3){a2.__proto__=c3}||function(a2,c3){for(var k in c3)c3.hasOwnProperty(k)&&(a2[k]=c3[k])};return c2(a,g3)};return function(a,g3){function m(){this.constructor=a}c2(a,g3);a.prototype=null===g3?Object.create(g3):(m.prototype=g3.prototype,new m)}}(),B=g2.seriesTypes,z=B.column,C=B.line;B=y.addEvent;var x=y.extend,t=y.merge;y=function(g3){function a(){var a2=null!==g3&&g3.apply(this,arguments)||this;a2.data=void 0;a2.options=void 0;a2.points=void 0;return a2}A(a,g3);a.prototype.applyJitter=function(){var a2=this,c2=this.options.jitter,g4=this.points.length;c2&&this.points.forEach((function(k,e){["x","y"].forEach((function(m,p){var q="plot"+m.toUpperCase();if(c2[m]&&!k.isNull){var r=a2[m+"Axis"];var u=c2[m]*r.transA;if(r&&!r.isLog){var n=Math.max(0,k[q]-u);r=Math.min(r.len,k[q]+u);p=1e4*Math.sin(e+p*g4);k[q]=n+(r-n)*(p-Math.floor(p));"x"===m&&(k.clientX=k.plotX)}}}))}))};a.prototype.drawGraph=function(){this.options.lineWidth?g3.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};a.defaultOptions=t(C.defaultOptions,c);return a}(C);x(y.prototype,{drawTracker:z.prototype.drawTracker,sorted:false,requireSorting:false,noSharedTooltip:true,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:false});B(y,"afterTranslate",(function(){this.applyJitter()}));g2.registerSeriesType("scatter",y);return y}));I(g,"Series/CenteredUtilities.js",[g["Core/Globals.js"],g["Core/Series/Series.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=c.deg2rad,B=y.fireEvent,z=y.isNumber,C=y.pick,x=y.relativeLength,t;(function(c2){c2.getCenter=function(){var a=this.options,c3=this.chart,m=2*(a.slicedOffset||0),p=c3.plotWidth-2*m,k=c3.plotHeight-2*m,e=a.center,r=Math.min(p,k),t2=a.thickness,y2=a.size,A2=a.innerSize||0;"string"===typeof y2&&(y2=parseFloat(y2));"string"===typeof A2&&(A2=parseFloat(A2));a=[C(e[0],"50%"),C(e[1],"50%"),C(y2&&0>y2?void 0:a.size,"100%"),C(A2&&0>A2?void 0:a.innerSize||0,"0%")];!c3.angular||this instanceof g2||(a[3]=0);for(e=0;4>e;++e)y2=a[e],c3=2>e||2===e&&/%$/.test(y2),a[e]=x(y2,[p,k,r,a[2]][e])+(c3?m:0);a[3]>a[2]&&(a[3]=a[2]);z(t2)&&2*t2<a[2]&&0<t2&&(a[3]=a[2]-2*t2);B(this,"afterGetCenter",{positions:a});return a};c2.getStartAndEndRadians=function(a,c3){a=z(a)?a:0;c3=z(c3)&&c3>a&&360>c3-a?c3:a+360;return{start:A*(a+-90),end:A*(c3+-90)}}})(t||(t={}));return t}));I(g,"Series/Pie/PiePoint.js",[g["Core/Animation/AnimationUtilities.js"],g["Core/Series/Point.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=this&&this.__extends||function(){var a=function(c2,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,c3){a2.__proto__=c3}||function(a2,c3){for(var e in c3)c3.hasOwnProperty(e)&&(a2[e]=c3[e])};return a(c2,m)};return function(c2,m){function g3(){this.constructor=c2}a(c2,m);c2.prototype=null===m?Object.create(m):(g3.prototype=m.prototype,new g3)}}(),B=c.setAnimation,z=y.addEvent,C=y.defined;c=y.extend;var x=y.isNumber,t=y.pick,r=y.relativeLength;g2=function(a){function c2(){var c3=null!==a&&a.apply(this,arguments)||this;c3.labelDistance=void 0;c3.options=void 0;c3.series=void 0;return c3}A(c2,a);c2.prototype.getConnectorPath=function(){var a2=this.labelPosition,c3=this.series.options.dataLabels,k=this.connectorShapes,e=c3.connectorShape;k[e]&&(e=k[e]);return e.call(this,{x:a2.final.x,y:a2.final.y,alignment:a2.alignment},a2.connectorPosition,c3)};c2.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};c2.prototype.haloPath=function(a2){var c3=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c3.x,c3.y,c3.r+a2,c3.r+a2,{innerR:c3.r-1,start:c3.start,end:c3.end})};c2.prototype.init=function(){var c3=this;a.prototype.init.apply(this,arguments);this.name=t(this.name,"Slice");var g3=function(a2){c3.slice("select"===a2.type)};z(this,"select",g3);z(this,"unselect",g3);return this};c2.prototype.isValid=function(){return x(this.y)&&0<=this.y};c2.prototype.setVisible=function(a2,c3){var k=this,e=this.series,g3=e.chart,m=e.options.ignoreHiddenPoint;c3=t(c3,m);a2!==this.visible&&(this.visible=this.options.visible=a2="undefined"===typeof a2?!this.visible:a2,e.options.data[e.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e2){if(k[e2])k[e2][a2?"show":"hide"](a2)})),this.legendItem&&g3.legend.colorizeItem(this,a2),a2||"hover"!==this.state||this.setState(""),m&&(e.isDirty=true),c3&&g3.redraw())};c2.prototype.slice=function(a2,c3,k){var e=this.series;B(k,e.chart);t(c3,true);this.sliced=this.options.sliced=C(a2)?a2:!this.sliced;e.options.data[e.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return c2}(g2);c(g2.prototype,{connectorShapes:{fixedOffset:function(a,c2,g3){var m=c2.breakAt;c2=c2.touchingSliceAt;return[["M",a.x,a.y],g3.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*m.x-c2.x,2*m.y-c2.y,m.x,m.y]:["L",m.x,m.y],["L",c2.x,c2.y]]},straight:function(a,c2){c2=c2.touchingSliceAt;return[["M",a.x,a.y],["L",c2.x,c2.y]]},crookedLine:function(a,c2,g3){c2=c2.touchingSliceAt;var m=this.series,k=m.center[0],e=m.chart.plotWidth,q=m.chart.plotLeft;m=a.alignment;var t2=this.shapeArgs.r;g3=r(g3.crookDistance,1);e="left"===m?k+t2+(e+q-k-t2)*(1-g3):q+(k-t2)*g3;g3=["L",e,a.y];k=true;if("left"===m?e>a.x||e<c2.x:e<a.x||e>c2.x)k=false;a=[["M",a.x,a.y]];k&&a.push(g3);a.push(["L",c2.x,c2.y]);return a}}});return g2}));I(g,"Series/Pie/PieSeriesDefaults.js",[],(function(){return{center:[null,null],clip:false,colorByPoint:true,dataLabels:{allowOverlap:true,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:true,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:true,x:0},fillColor:void 0,ignoreHiddenPoint:true,inactiveOtherPoints:true,legendType:"point",marker:null,size:null,showInLegend:false,slicedOffset:10,stickyTracking:false,tooltip:{followPointer:true},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}));I(g,"Series/Pie/PieSeries.js",[g["Series/CenteredUtilities.js"],g["Series/Column/ColumnSeries.js"],g["Core/Globals.js"],g["Core/Legend/LegendSymbol.js"],g["Series/Pie/PiePoint.js"],g["Series/Pie/PieSeriesDefaults.js"],g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Renderer/SVG/Symbols.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C,x,t,r){var a=this&&this.__extends||function(){var a2=function(e2,c2){a2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a3,e3){a3.__proto__=e3}||function(a3,e3){for(var f in e3)e3.hasOwnProperty(f)&&(a3[f]=e3[f])};return a2(e2,c2)};return function(e2,c2){function k2(){this.constructor=e2}a2(e2,c2);e2.prototype=null===c2?Object.create(c2):(k2.prototype=c2.prototype,new k2)}}(),q=c.getStartAndEndRadians;y=y.noop;var m=r.clamp,p=r.extend,k=r.fireEvent,e=r.merge,D=r.pick,G=r.relativeLength;r=function(c2){function g3(){var a2=null!==c2&&c2.apply(this,arguments)||this;a2.center=void 0;a2.data=void 0;a2.maxLabelDistance=void 0;a2.options=void 0;a2.points=void 0;return a2}a(g3,c2);g3.prototype.animate=function(a2){var e2=this,c3=e2.points,f=e2.startAngleRad;a2||c3.forEach((function(a3){var d=a3.graphic,b=a3.shapeArgs;d&&b&&(d.attr({r:D(a3.startR,e2.center&&e2.center[3]/2),start:f,end:f}),d.animate({r:b.r,start:b.start,end:b.end},e2.options.animation))}))};g3.prototype.drawEmpty=function(){var a2=this.startAngleRad,e2=this.endAngleRad,c3=this.options;if(0===this.total&&this.center){var f=this.center[0];var l=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f,l,this.center[1]/2,0,a2,e2).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:t.arc(f,l,this.center[2]/2,0,{start:a2,end:e2,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":c3.borderWidth,fill:c3.fillColor||"none",stroke:c3.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};g3.prototype.drawPoints=function(){var a2=this.chart.renderer;this.points.forEach((function(e2){e2.graphic&&e2.hasNewShapeType()&&(e2.graphic=e2.graphic.destroy());e2.graphic||(e2.graphic=a2[e2.shapeType](e2.shapeArgs).add(e2.series.group),e2.delayedRendering=true)}))};g3.prototype.generatePoints=function(){c2.prototype.generatePoints.call(this);this.updateTotals()};g3.prototype.getX=function(a2,e2,c3){var f=this.center,l=this.radii?this.radii[c3.index]||0:f[2]/2;a2=Math.asin(m((a2-f[1])/(l+c3.labelDistance),-1,1));return f[0]+(e2?-1:1)*Math.cos(a2)*(l+c3.labelDistance)+(0<c3.labelDistance?(e2?-1:1)*this.options.dataLabels.padding:0)};g3.prototype.hasData=function(){return!!this.processedXData.length};g3.prototype.redrawPoints=function(){var a2=this,c3=a2.chart,k2=c3.renderer,f=a2.options.shadow,l,d,b,h;this.drawEmpty();!f||a2.shadowGroup||c3.styledMode||(a2.shadowGroup=k2.g("shadow").attr({zIndex:-1}).add(a2.group));a2.points.forEach((function(n){var g4={};d=n.graphic;if(!n.isNull&&d){var m2=void 0;h=n.shapeArgs;l=n.getTranslate();c3.styledMode||(m2=n.shadowGroup,f&&!m2&&(m2=n.shadowGroup=k2.g("shadow").add(a2.shadowGroup)),m2&&m2.attr(l),b=a2.pointAttribs(n,n.selected&&"select"));n.delayedRendering?(d.setRadialReference(a2.center).attr(h).attr(l),c3.styledMode||d.attr(b).attr({"stroke-linejoin":"round"}).shadow(f,m2),n.delayedRendering=false):(d.setRadialReference(a2.center),c3.styledMode||e(true,g4,b),e(true,g4,h,l),d.animate(g4));d.attr({visibility:n.visible?"inherit":"hidden"});d.addClass(n.getClassName(),true)}else d&&(n.graphic=d.destroy())}))};g3.prototype.sortByAngle=function(a2,e2){a2.sort((function(a3,f){return"undefined"!==typeof a3.angle&&(f.angle-a3.angle)*e2}))};g3.prototype.translate=function(a2){k(this,"translate");this.generatePoints();var e2=this.options,c3=e2.slicedOffset,f=c3+(e2.borderWidth||0),l=q(e2.startAngle,e2.endAngle),d=this.startAngleRad=l.start;l=(this.endAngleRad=l.end)-d;var b=this.points,h=e2.dataLabels.distance;e2=e2.ignoreHiddenPoint;var g4=b.length,m2,p2=0;a2||(this.center=a2=this.getCenter());for(m2=0;m2<g4;m2++){var u=b[m2];var r2=d+p2*l;!u.isValid()||e2&&!u.visible||(p2+=u.percentage/100);var t2=d+p2*l;var x2={x:a2[0],y:a2[1],r:a2[2]/2,innerR:a2[3]/2,start:Math.round(1e3*r2)/1e3,end:Math.round(1e3*t2)/1e3};u.shapeType="arc";u.shapeArgs=x2;u.labelDistance=D(u.options.dataLabels&&u.options.dataLabels.distance,h);u.labelDistance=G(u.labelDistance,x2.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,u.labelDistance);t2=(t2+r2)/2;t2>1.5*Math.PI?t2-=2*Math.PI:t2<-Math.PI/2&&(t2+=2*Math.PI);u.slicedTranslation={translateX:Math.round(Math.cos(t2)*c3),translateY:Math.round(Math.sin(t2)*c3)};x2=Math.cos(t2)*a2[2]/2;var F=Math.sin(t2)*a2[2]/2;u.tooltipPos=[a2[0]+.7*x2,a2[1]+.7*F];u.half=t2<-Math.PI/2||t2>Math.PI/2?1:0;u.angle=t2;r2=Math.min(f,u.labelDistance/5);u.labelPosition={natural:{x:a2[0]+x2+Math.cos(t2)*u.labelDistance,y:a2[1]+F+Math.sin(t2)*u.labelDistance},final:{},alignment:0>u.labelDistance?"center":u.half?"right":"left",connectorPosition:{breakAt:{x:a2[0]+x2+Math.cos(t2)*r2,y:a2[1]+F+Math.sin(t2)*r2},touchingSliceAt:{x:a2[0]+x2,y:a2[1]+F}}}}k(this,"afterTranslate")};g3.prototype.updateTotals=function(){var a2=this.points,e2=a2.length,c3=this.options.ignoreHiddenPoint,f,l=0;for(f=0;f<e2;f++){var d=a2[f];!d.isValid()||c3&&!d.visible||(l+=d.y)}this.total=l;for(f=0;f<e2;f++)d=a2[f],d.percentage=0<l&&(d.visible||!c3)?d.y/l*100:0,d.total=l};g3.defaultOptions=e(C.defaultOptions,z);return g3}(C);p(r.prototype,{axisTypes:[],directTouch:true,drawGraph:void 0,drawLegendSymbol:A.drawRectangle,drawTracker:g2.prototype.drawTracker,getCenter:c.getCenter,getSymbol:y,isCartesian:false,noSharedTooltip:true,pointAttribs:g2.prototype.pointAttribs,pointClass:B,requireSorting:false,searchPoint:y,trackerGroups:["group","dataLabelsGroup"]});x.registerSeriesType("pie",r);return r}));I(g,"Series/Pie/PieDataLabel.js",[g["Core/Series/DataLabel.js"],g["Core/Globals.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B){var z=g2.noop,C=y.distribute,x=A.series,t=B.arrayMax,r=B.clamp,a=B.defined,q=B.merge,m=B.pick,p=B.relativeLength,k;(function(e){function k2(){var e2=this,c2=e2.data,f=e2.chart,l=e2.options.dataLabels||{},d=l.connectorPadding,b=f.plotWidth,h=f.plotHeight,k3=f.plotLeft,g4=Math.round(f.chartWidth/3),p2=e2.center,u2=p2[2]/2,r2=p2[1],D=[[],[]],G=[0,0,0,0],F=e2.dataLabelPositioners,y3,z2,B3,H,A2,L,K,I2,V,U,Y,S;e2.visible&&(l.enabled||e2._hasPointLabels)&&(c2.forEach((function(b2){b2.dataLabel&&b2.visible&&b2.dataLabel.shortened&&(b2.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),b2.dataLabel.shortened=false)})),x.prototype.drawDataLabels.apply(e2),c2.forEach((function(b2){b2.dataLabel&&(b2.visible?(D[b2.half].push(b2),b2.dataLabel._pos=null,!a(l.style.width)&&!a(b2.options.dataLabels&&b2.options.dataLabels.style&&b2.options.dataLabels.style.width)&&b2.dataLabel.getBBox().width>g4&&(b2.dataLabel.css({width:Math.round(.7*g4)+"px"}),b2.dataLabel.shortened=true)):(b2.dataLabel=b2.dataLabel.destroy(),b2.dataLabels&&1===b2.dataLabels.length&&delete b2.dataLabels))})),D.forEach((function(c3,n){var g5=c3.length,v=[],q2;if(g5){e2.sortByAngle(c3,n-.5);if(0<e2.maxLabelDistance){var w=Math.max(0,r2-u2-e2.maxLabelDistance);var t2=Math.min(r2+u2+e2.maxLabelDistance,f.plotHeight);c3.forEach((function(b2){0<b2.labelDistance&&b2.dataLabel&&(b2.top=Math.max(0,r2-u2-b2.labelDistance),b2.bottom=Math.min(r2+u2+b2.labelDistance,f.plotHeight),q2=b2.dataLabel.getBBox().height||21,b2.distributeBox={target:b2.labelPosition.natural.y-b2.top+q2/2,size:q2,rank:b2.y},v.push(b2.distributeBox))}));w=t2+q2-w;C(v,w,w/5)}for(Y=0;Y<g5;Y++){y3=c3[Y];L=y3.labelPosition;H=y3.dataLabel;U=false===y3.visible?"hidden":"inherit";V=w=L.natural.y;v&&a(y3.distributeBox)&&("undefined"===typeof y3.distributeBox.pos?U="hidden":(K=y3.distributeBox.size,V=F.radialDistributionY(y3)));delete y3.positionIndex;if(l.justify)I2=F.justify(y3,u2,p2);else switch(l.alignTo){case"connectors":I2=F.alignToConnectors(c3,n,b,k3);break;case"plotEdges":I2=F.alignToPlotEdges(H,n,b,k3);break;default:I2=F.radialDistributionX(e2,y3,V,w)}H._attr={visibility:U,align:L.alignment};S=y3.options.dataLabels||{};H._pos={x:I2+m(S.x,l.x)+({left:d,right:-d}[L.alignment]||0),y:V+m(S.y,l.y)-10};L.final.x=I2;L.final.y=V;m(l.crop,true)&&(A2=H.getBBox().width,w=null,I2-A2<d&&1===n?(w=Math.round(A2-I2+d),G[3]=Math.max(w,G[3])):I2+A2>b-d&&0===n&&(w=Math.round(I2+A2-b+d),G[1]=Math.max(w,G[1])),0>V-K/2?G[0]=Math.max(Math.round(-V+K/2),G[0]):V+K/2>h&&(G[2]=Math.max(Math.round(V+K/2-h),G[2])),H.sideOverflow=w)}}})),0===t(G)||this.verifyDataLabelOverflow(G))&&(this.placeDataLabels(),this.points.forEach((function(b2){S=q(l,b2.options.dataLabels);if(z2=m(S.connectorWidth,1)){var a2;B3=b2.connector;if((H=b2.dataLabel)&&H._pos&&b2.visible&&0<b2.labelDistance){U=H._attr.visibility;if(a2=!B3)b2.connector=B3=f.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+b2.colorIndex+(b2.className?" "+b2.className:"")).add(e2.dataLabelsGroup),f.styledMode||B3.attr({"stroke-width":z2,stroke:S.connectorColor||b2.color||"#666666"});B3[a2?"attr":"animate"]({d:b2.getConnectorPath()});B3.attr("visibility",U)}else B3&&(b2.connector=B3.destroy())}})))}function g3(){this.points.forEach((function(a2){var e2=a2.dataLabel,f;e2&&a2.visible&&((f=e2._pos)?(e2.sideOverflow&&(e2._attr.width=Math.max(e2.getBBox().width-e2.sideOverflow,0),e2.css({width:e2._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),e2.shortened=true),e2.attr(e2._attr),e2[e2.moved?"animate":"attr"](f),e2.moved=true):e2&&e2.attr({y:-9999}));delete a2.distributeBox}),this)}function y2(a2){var e2=this.center,f=this.options,c2=f.center,d=f.minSize||80,b=null!==f.size;if(!b){if(null!==c2[0])var h=Math.max(e2[2]-Math.max(a2[1],a2[3]),d);else h=Math.max(e2[2]-a2[1]-a2[3],d),e2[0]+=(a2[3]-a2[1])/2;null!==c2[1]?h=r(h,d,e2[2]-Math.max(a2[0],a2[2])):(h=r(h,d,e2[2]-a2[0]-a2[2]),e2[1]+=(a2[0]-a2[2])/2);h<e2[2]?(e2[2]=h,e2[3]=Math.min(f.thickness?Math.max(0,h-2*f.thickness):Math.max(0,p(f.innerSize||0,h)),h),this.translate(e2),this.drawDataLabels&&this.drawDataLabels()):b=true}return b}var B2=[],u={radialDistributionY:function(a2){return a2.top+a2.distributeBox.pos},radialDistributionX:function(a2,e2,f,c2){return a2.getX(f<e2.top+2||f>e2.bottom-2?c2:f,e2.half,e2)},justify:function(a2,e2,f){return f[0]+(a2.half?-1:1)*(e2+a2.labelDistance)},alignToPlotEdges:function(a2,e2,f,c2){a2=a2.getBBox().width;return e2?a2+c2:f-a2-c2},alignToConnectors:function(a2,e2,f,c2){var d=0,b;a2.forEach((function(a3){b=a3.dataLabel.getBBox().width;b>d&&(d=b)}));return e2?d+c2:f-d-c2}};e.compose=function(a2){c.compose(x);-1===B2.indexOf(a2)&&(B2.push(a2),a2=a2.prototype,a2.dataLabelPositioners=u,a2.alignDataLabel=z,a2.drawDataLabels=k2,a2.placeDataLabels=g3,a2.verifyDataLabelOverflow=y2)}})(k||(k={}));return k}));I(g,"Extensions/OverlappingDataLabels.js",[g["Core/Chart/Chart.js"],g["Core/Utilities.js"]],(function(c,g2){function y(c2,a){var g3=false;if(c2){var m=c2.newOpacity;c2.oldOpacity!==m&&(c2.alignAttr&&c2.placed?(c2[m?"removeClass":"addClass"]("highcharts-data-label-hidden"),g3=true,c2.alignAttr.opacity=m,c2[c2.isOld?"animate":"attr"](c2.alignAttr,null,(function(){a.styledMode||c2.css({pointerEvents:m?"auto":"none"})})),B(a,"afterHideOverlappingLabel")):c2.attr({opacity:m}));c2.isOld=true}return g3}var A=g2.addEvent,B=g2.fireEvent,z=g2.isArray,C=g2.isNumber,x=g2.objectEach,t=g2.pick;A(c,"render",(function(){var c2=this,a=[];(this.labelCollectors||[]).forEach((function(c3){a=a.concat(c3())}));(this.yAxis||[]).forEach((function(c3){c3.stacking&&c3.options.stackLabels&&!c3.options.stackLabels.allowOverlap&&x(c3.stacking.stacks,(function(c4){x(c4,(function(c5){c5.label&&a.push(c5.label)}))}))}));(this.series||[]).forEach((function(g3){var m=g3.options.dataLabels;g3.visible&&(false!==m.enabled||g3._hasPointLabels)&&(m=function(g4){return g4.forEach((function(k){k.visible&&(z(k.dataLabels)?k.dataLabels:k.dataLabel?[k.dataLabel]:[]).forEach((function(e){var g5=e.options;e.labelrank=t(g5.labelrank,k.labelrank,k.shapeArgs&&k.shapeArgs.height);g5.allowOverlap?(e.oldOpacity=e.opacity,e.newOpacity=1,y(e,c2)):a.push(e)}))}))},m(g3.nodes||[]),m(g3.points))}));this.hideOverlappingLabels(a)}));c.prototype.hideOverlappingLabels=function(c2){var a=this,g3=c2.length,m=a.renderer,p,k,e,t2=false;var r=function(a2){var e2,c3=a2.box?0:a2.padding||0,f=e2=0,l;if(a2&&(!a2.alignAttr||a2.placed)){var d=a2.alignAttr||{x:a2.attr("x"),y:a2.attr("y")};var b=a2.parentGroup;a2.width||(e2=a2.getBBox(),a2.width=e2.width,a2.height=e2.height,e2=m.fontMetrics(null,a2.element).h);var h=a2.width-2*c3;(l={left:"0",center:"0.5",right:"1"}[a2.alignValue])?f=+l*h:C(a2.x)&&Math.round(a2.x)!==a2.translateX&&(f=a2.x-a2.translateX);return{x:d.x+(b.translateX||0)+c3-(f||0),y:d.y+(b.translateY||0)+c3-e2,width:a2.width-2*c3,height:a2.height-2*c3}}};for(k=0;k<g3;k++)if(p=c2[k])p.oldOpacity=p.opacity,p.newOpacity=1,p.absoluteBox=r(p);c2.sort((function(a2,e2){return(e2.labelrank||0)-(a2.labelrank||0)}));for(k=0;k<g3;k++){var x2=(r=c2[k])&&r.absoluteBox;for(p=k+1;p<g3;++p){var z2=(e=c2[p])&&e.absoluteBox;!x2||!z2||r===e||0===r.newOpacity||0===e.newOpacity||"hidden"===r.visibility||"hidden"===e.visibility||z2.x>=x2.x+x2.width||z2.x+z2.width<=x2.x||z2.y>=x2.y+x2.height||z2.y+z2.height<=x2.y||((r.labelrank<e.labelrank?r:e).newOpacity=0)}}c2.forEach((function(e2){y(e2,a)&&(t2=true)}));t2&&B(a,"afterHideAllOverlappingLabels")}}));I(g,"Core/Responsive.js",[g["Core/Utilities.js"]],(function(c){var g2=c.extend,y=c.find,A=c.isArray,B=c.isObject,z=c.merge,C=c.objectEach,x=c.pick,t=c.splat,r=c.uniqueKey,a;(function(a2){var c2=[];a2.compose=function(a3){-1===c2.indexOf(a3)&&(c2.push(a3),g2(a3.prototype,p.prototype));return a3};var p=function(){function a3(){}a3.prototype.currentOptions=function(a4){function e(a5,k2,n,g3){var f;C(a5,(function(a6,d){if(!g3&&-1<c3.collectionsWithUpdate.indexOf(d)&&k2[d])for(a6=t(a6),n[d]=[],f=0;f<Math.max(a6.length,k2[d].length);f++)k2[d][f]&&(void 0===a6[f]?n[d][f]=k2[d][f]:(n[d][f]={},e(a6[f],k2[d][f],n[d][f],g3+1)));else B(a6)?(n[d]=A(a6)?[]:{},e(a6,k2[d]||{},n[d],g3+1)):n[d]="undefined"===typeof k2[d]?null:k2[d]}))}var c3=this,k={};e(a4,this.options,k,0);return k};a3.prototype.matchResponsiveRule=function(a4,c3){var e=a4.condition;(e.callback||function(){return this.chartWidth<=x(e.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=x(e.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=x(e.minWidth,0)&&this.chartHeight>=x(e.minHeight,0)}).call(this)&&c3.push(a4._id)};a3.prototype.setResponsive=function(a4,c3){var e=this,k=this.options.responsive,g3=this.currentResponsive,m=[];!c3&&k&&k.rules&&k.rules.forEach((function(a5){"undefined"===typeof a5._id&&(a5._id=r());e.matchResponsiveRule(a5,m)}),this);c3=z.apply(void 0,m.map((function(a5){return y((k||{}).rules||[],(function(e2){return e2._id===a5}))})).map((function(a5){return a5&&a5.chartOptions})));c3.isResponsiveOptions=true;m=m.toString()||void 0;m!==(g3&&g3.ruleIds)&&(g3&&this.update(g3.undoOptions,a4,true),m?(g3=this.currentOptions(c3),g3.isResponsiveOptions=true,this.currentResponsive={ruleIds:m,mergedOptions:c3,undoOptions:g3},this.update(c3,a4,true)):this.currentResponsive=void 0)};return a3}()})(a||(a={}));return a}));I(g,"masters/highcharts.src.js",[g["Core/Globals.js"],g["Core/Utilities.js"],g["Core/Defaults.js"],g["Core/Animation/Fx.js"],g["Core/Animation/AnimationUtilities.js"],g["Core/Renderer/HTML/AST.js"],g["Core/FormatUtilities.js"],g["Core/Renderer/RendererUtilities.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Renderer/SVG/SVGRenderer.js"],g["Core/Renderer/HTML/HTMLElement.js"],g["Core/Renderer/HTML/HTMLRenderer.js"],g["Core/Axis/Axis.js"],g["Core/Axis/DateTimeAxis.js"],g["Core/Axis/LogarithmicAxis.js"],g["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],g["Core/Axis/Tick.js"],g["Core/Tooltip.js"],g["Core/Series/Point.js"],g["Core/Pointer.js"],g["Core/MSPointer.js"],g["Core/Legend/Legend.js"],g["Core/Chart/Chart.js"],g["Core/Axis/Stacking/StackingAxis.js"],g["Core/Axis/Stacking/StackItem.js"],g["Core/Series/Series.js"],g["Core/Series/SeriesRegistry.js"],g["Series/Column/ColumnSeries.js"],g["Series/Column/ColumnDataLabel.js"],g["Series/Pie/PieSeries.js"],g["Series/Pie/PieDataLabel.js"],g["Core/Series/DataLabel.js"],g["Core/Responsive.js"],g["Core/Color/Color.js"],g["Core/Time.js"]],(function(c,g2,y,A,B,z,C,x,t,r,a,q,m,p,k,e,D,G,H,K,u,n,w,f,l,d,b,h,v,E,J,M,O,P,T){c.animate=B.animate;c.animObject=B.animObject;c.getDeferredAnimation=B.getDeferredAnimation;c.setAnimation=B.setAnimation;c.stop=B.stop;c.timers=A.timers;c.AST=z;c.Axis=m;c.Chart=w;c.chart=w.chart;c.Fx=A;c.Legend=n;c.PlotLineOrBand=e;c.Point=H;c.Pointer=u.isRequired()?u:K;c.Series=d;c.StackItem=l;c.SVGElement=t;c.SVGRenderer=r;c.Tick=D;c.Time=T;c.Tooltip=G;c.Color=P;c.color=P.parse;q.compose(r);a.compose(t);c.defaultOptions=y.defaultOptions;c.getOptions=y.getOptions;c.time=y.defaultTime;c.setOptions=y.setOptions;c.dateFormat=C.dateFormat;c.format=C.format;c.numberFormat=C.numberFormat;c.addEvent=g2.addEvent;c.arrayMax=g2.arrayMax;c.arrayMin=g2.arrayMin;c.attr=g2.attr;c.clearTimeout=g2.clearTimeout;c.correctFloat=g2.correctFloat;c.createElement=g2.createElement;c.css=g2.css;c.defined=g2.defined;c.destroyObjectProperties=g2.destroyObjectProperties;c.discardElement=g2.discardElement;c.distribute=x.distribute;c.erase=g2.erase;c.error=g2.error;c.extend=g2.extend;c.extendClass=g2.extendClass;c.find=g2.find;c.fireEvent=g2.fireEvent;c.getMagnitude=g2.getMagnitude;c.getStyle=g2.getStyle;c.inArray=g2.inArray;c.isArray=g2.isArray;c.isClass=g2.isClass;c.isDOMElement=g2.isDOMElement;c.isFunction=g2.isFunction;c.isNumber=g2.isNumber;c.isObject=g2.isObject;c.isString=g2.isString;c.keys=g2.keys;c.merge=g2.merge;c.normalizeTickInterval=g2.normalizeTickInterval;c.objectEach=g2.objectEach;c.offset=g2.offset;c.pad=g2.pad;c.pick=g2.pick;c.pInt=g2.pInt;c.relativeLength=g2.relativeLength;c.removeEvent=g2.removeEvent;c.seriesType=b.seriesType;c.splat=g2.splat;c.stableSort=g2.stableSort;c.syncTimeout=g2.syncTimeout;c.timeUnits=g2.timeUnits;c.uniqueKey=g2.uniqueKey;c.useSerialIds=g2.useSerialIds;c.wrap=g2.wrap;v.compose(h);M.compose(d);p.compose(m);k.compose(m);J.compose(E);e.compose(m);O.compose(w);f.compose(m,w,d);return c}));I(g,"Core/Axis/NavigatorAxisComposition.js",[g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2){function y(){this.navigatorAxis||(this.navigatorAxis=new q(this))}function A(a2){var c2=this.chart.options,k=c2.navigator,e=this.navigatorAxis,g3=c2.chart.zooming.pinchType,m=c2.rangeSelector;c2=c2.chart.zooming.type;this.isXAxis&&(k&&k.enabled||m&&m.enabled)&&("y"===c2?a2.zoomed=false:(!B&&"xy"===c2||B&&"xy"===g3)&&this.options.range&&(k=e.previousZoom,x(a2.newMin)?e.previousZoom=[this.min,this.max]:k&&(a2.newMin=k[0],a2.newMax=k[1],e.previousZoom=void 0)));"undefined"!==typeof a2.zoomed&&a2.preventDefault()}var B=c.isTouchDevice,z=g2.addEvent,C=g2.correctFloat,x=g2.defined,t=g2.isNumber,r=g2.pick,a=[],q=function(){function c2(a2){this.axis=a2}c2.compose=function(c3){-1===a.indexOf(c3)&&(a.push(c3),c3.keepProps.push("navigatorAxis"),z(c3,"init",y),z(c3,"zoom",A))};c2.prototype.destroy=function(){this.axis=void 0};c2.prototype.toFixedRange=function(a2,c3,e,g3){var k=this.axis,m=k.chart;a2=r(e,k.translate(a2,true,!k.horiz));c3=r(g3,k.translate(c3,true,!k.horiz));m=m&&m.fixedRange;k=(k.pointRange||0)/2;var p=m&&(c3-a2)/m;x(e)||(a2=C(a2+k));x(g3)||(c3=C(c3-k));.7<p&&1.3>p&&(g3?a2=c3-m:c3=a2+m);t(a2)&&t(c3)||(a2=c3=void 0);return{min:a2,max:c3}};return c2}();return q}));I(g,"Stock/Navigator/NavigatorDefaults.js",[g["Core/Color/Color.js"],g["Core/Series/SeriesRegistry.js"]],(function(c,g2){c=c.parse;g2=g2.seriesTypes;g2={height:40,margin:25,maskInside:true,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:true,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:c("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:"undefined"===typeof g2.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:true,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:false,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:false},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:false},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:false,endOnTick:false,minPadding:.1,maxPadding:.1,labels:{enabled:false},crosshair:false,title:{text:null},tickLength:0,tickWidth:0}};return g2}));I(g,"Stock/Navigator/NavigatorSymbols.js",[],(function(){return{"navigator-handle":function(c,g2,y,A,B){void 0===B&&(B={});c=B.width?B.width/2:y;g2=Math.round(c/3)+.5;A=B.height||A;return[["M",-c-1,.5],["L",c,.5],["L",c,A+.5],["L",-c-1,A+.5],["L",-c-1,.5],["M",-g2,4],["L",-g2,A-3],["M",g2-1,4],["L",g2-1,A-3]]}}}));I(g,"Stock/Navigator/NavigatorComposition.js",[g["Core/Defaults.js"],g["Core/Globals.js"],g["Core/Axis/NavigatorAxisComposition.js"],g["Stock/Navigator/NavigatorDefaults.js"],g["Stock/Navigator/NavigatorSymbols.js"],g["Core/Renderer/RendererRegistry.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C){function x(){this.navigator&&this.navigator.setBaseSeries(null,false)}function t(){var a2=this.legend,b=this.navigator;if(b){var h=a2&&a2.options;var e2=b.xAxis;var c2=b.yAxis;var f2=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-f2-b.height:this.spacing[3]+f2,b.top=this.plotTop+f2):(b.left=w(e2.left,this.plotLeft+f2),b.top=b.navigatorOptions.top||this.chartHeight-b.height-f2-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(h&&"bottom"===h.verticalAlign&&"proximate"!==h.layout&&h.enabled&&!h.floating?a2.legendHeight+w(h.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));e2&&c2&&(this.inverted?e2.options.left=c2.options.left=b.left:e2.options.top=c2.options.top=b.top,e2.setAxisSize(),c2.setAxisSize())}}function r(a2){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new l(this),w(a2.redraw,true)&&this.redraw(a2.animation))}function a(){var a2=this.options;if(a2.navigator.enabled||a2.scrollbar.enabled)this.scroller=this.navigator=new l(this)}function q(){var a2=this.options,b=a2.navigator,h=a2.rangeSelector;if((b&&b.enabled||h&&h.enabled)&&(!G&&"x"===a2.chart.zooming.type||G&&"x"===a2.chart.zooming.pinchType))return false}function m(a2){var b=a2.navigator;b&&a2.xAxis[0]&&(a2=a2.xAxis[0].getExtremes(),b.render(a2.min,a2.max))}function p(a2){var b=a2.options.navigator||{},d=a2.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!d.enabled||(n(true,this.options.navigator,b),n(true,this.options.scrollbar,d),delete a2.options.navigator,delete a2.options.scrollbar)}function k(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,false)}var e=c.defaultOptions,D=c.setOptions,G=g2.isTouchDevice,H=z.getRendererType,K=C.addEvent,u=C.extend,n=C.merge,w=C.pick,f=[],l;return{compose:function(d,b,h,c2){y.compose(d);l=h;-1===f.indexOf(b)&&(f.push(b),b.prototype.callbacks.push(m),K(b,"afterAddSeries",x),K(b,"afterSetChartSize",t),K(b,"afterUpdate",r),K(b,"beforeRender",a),K(b,"beforeShowResetZoom",q),K(b,"update",p));-1===f.indexOf(c2)&&(f.push(c2),K(c2,"afterUpdate",k));-1===f.indexOf(H)&&(f.push(H),u(H().prototype.symbols,B));-1===f.indexOf(D)&&(f.push(D),u(e,{navigator:A}))}}}));I(g,"Core/Axis/ScrollbarAxis.js",[g["Core/Utilities.js"]],(function(c){var g2=c.addEvent,y=c.defined,A=c.pick;return function(){function c2(){}c2.compose=function(z,C){if(-1===c2.composed.indexOf(z))c2.composed.push(z);else return z;var x=function(c3){var g3=A(c3.options&&c3.options.min,c3.min),a=A(c3.options&&c3.options.max,c3.max);return{axisMin:g3,axisMax:a,scrollMin:y(c3.dataMin)?Math.min(g3,c3.min,c3.dataMin,A(c3.threshold,Infinity)):g3,scrollMax:y(c3.dataMax)?Math.max(a,c3.max,c3.dataMax,A(c3.threshold,-Infinity)):a}};g2(z,"afterInit",(function(){var c3=this;c3.options&&c3.options.scrollbar&&c3.options.scrollbar.enabled&&(c3.options.scrollbar.vertical=!c3.horiz,c3.options.startOnTick=c3.options.endOnTick=false,c3.scrollbar=new C(c3.chart.renderer,c3.options.scrollbar,c3.chart),g2(c3.scrollbar,"changed",(function(g3){var a=x(c3),q=a.axisMax,m=a.scrollMin,p=a.scrollMax-m;y(a.axisMin)&&y(q)&&(c3.horiz&&!c3.reversed||!c3.horiz&&c3.reversed?(a=m+p*this.to,m+=p*this.from):(a=m+p*(1-this.from),m+=p*(1-this.to)),this.shouldUpdateExtremes(g3.DOMType)?c3.setExtremes(m,a,true,"mousemove"!==g3.DOMType&&"touchmove"!==g3.DOMType,g3):this.setRange(this.from,this.to))})))}));g2(z,"afterRender",(function(){var c3=x(this),g3=c3.scrollMin,a=c3.scrollMax;c3=this.scrollbar;var q=this.axisTitleMargin+(this.titleOffset||0),m=this.chart.scrollbarsOffsets,p=this.options.margin||0;c3&&(this.horiz?(this.opposite||(m[1]+=q),c3.position(this.left,this.top+this.height+2+m[1]-(this.opposite?p:0),this.width,this.height),this.opposite||(m[1]+=p),q=1):(this.opposite&&(m[0]+=q),c3.position(c3.options.opposite?this.left+this.width+2+m[0]-(this.opposite?0:p):this.opposite?0:p,this.top,this.width,this.height),this.opposite&&(m[0]+=p),q=0),m[q]+=c3.size+c3.options.margin,isNaN(g3)||isNaN(a)||!y(this.min)||!y(this.max)||this.min===this.max?c3.setRange(0,1):(m=(this.min-g3)/(a-g3),g3=(this.max-g3)/(a-g3),this.horiz&&!this.reversed||!this.horiz&&this.reversed?c3.setRange(m,g3):c3.setRange(1-g3,1-m)))}));g2(z,"afterGetOffset",(function(){var c3=this.scrollbar&&!this.scrollbar.options.opposite;c3=this.horiz?2:c3?3:1;var g3=this.scrollbar;g3&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[c3]+=g3.size+g3.options.margin)}));return z};c2.composed=[];return c2}()}));I(g,"Stock/Scrollbar/ScrollbarDefaults.js",[g["Core/Globals.js"]],(function(c){return{height:c.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,opposite:true,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1}}));I(g,"Stock/Scrollbar/Scrollbar.js",[g["Core/Defaults.js"],g["Core/Globals.js"],g["Core/Axis/ScrollbarAxis.js"],g["Stock/Scrollbar/ScrollbarDefaults.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B){var z=c.defaultOptions,C=B.addEvent,x=B.correctFloat,t=B.defined,r=B.destroyObjectProperties,a=B.fireEvent,q=B.merge,m=B.pick,p=B.removeEvent;c=function(){function c2(a2,c3,k){this._events=[];this.chart=void 0;this.from=this.chartY=this.chartX=0;this.scrollbar=this.renderer=this.options=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=void 0;this.trackBorderWidth=1;this.userOptions=void 0;this.y=this.x=0;this.init(a2,c3,k)}c2.compose=function(a2){y.compose(a2,c2)};c2.swapXY=function(a2,c3){c3&&a2.forEach((function(a3){for(var c4=a3.length,e,k=0;k<c4;k+=2)e=a3[k+1],"number"===typeof e&&(a3[k+1]=a3[k+2],a3[k+2]=e)}));return a2};c2.prototype.addEvents=function(){var a2=this.options.inverted?[1,0]:[0,1],c3=this.scrollbarButtons,k=this.scrollbarGroup.element,m2=this.track.element,p2=this.mouseDownHandler.bind(this),q2=this.mouseMoveHandler.bind(this),n=this.mouseUpHandler.bind(this);a2=[[c3[a2[0]].element,"click",this.buttonToMinClick.bind(this)],[c3[a2[1]].element,"click",this.buttonToMaxClick.bind(this)],[m2,"click",this.trackClick.bind(this)],[k,"mousedown",p2],[k.ownerDocument,"mousemove",q2],[k.ownerDocument,"mouseup",n]];g2.hasTouch&&a2.push([k,"touchstart",p2],[k.ownerDocument,"touchmove",q2],[k.ownerDocument,"touchend",n]);a2.forEach((function(a3){C.apply(null,a3)}));this._events=a2};c2.prototype.buttonToMaxClick=function(c3){var e=(this.to-this.from)*m(this.options.step,.2);this.updatePosition(this.from+e,this.to+e);a(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:c3})};c2.prototype.buttonToMinClick=function(c3){var e=x(this.to-this.from)*m(this.options.step,.2);this.updatePosition(x(this.from-e),x(this.to-e));a(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:c3})};c2.prototype.cursorToScrollbarPosition=function(a2){var c3=this.options;c3=c3.minWidth>this.calculatedWidth?c3.minWidth:0;return{chartX:(a2.chartX-this.x-this.xOffset)/(this.barWidth-c3),chartY:(a2.chartY-this.y-this.yOffset)/(this.barWidth-c3)}};c2.prototype.destroy=function(){var a2=this,c3=a2.chart.scroller;a2.removeEvents();["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach((function(c4){a2[c4]&&a2[c4].destroy&&(a2[c4]=a2[c4].destroy())}));c3&&a2===c3.scrollbar&&(c3.scrollbar=null,r(c3.scrollbarButtons))};c2.prototype.drawScrollbarButton=function(a2){var e=this.renderer,k=this.scrollbarButtons,g3=this.options,m2=this.size,p2=e.g().add(this.group);k.push(p2);p2=e.rect().addClass("highcharts-scrollbar-button").add(p2);this.chart.styledMode||p2.attr({stroke:g3.buttonBorderColor,"stroke-width":g3.buttonBorderWidth,fill:g3.buttonBackgroundColor});p2.attr(p2.crisp({x:-.5,y:-.5,width:m2+1,height:m2+1,r:g3.buttonBorderRadius},p2.strokeWidth()));p2=e.path(c2.swapXY([["M",m2/2+(a2?-1:1),m2/2-3],["L",m2/2+(a2?-1:1),m2/2+3],["L",m2/2+(a2?2:-2),m2/2]],g3.vertical)).addClass("highcharts-scrollbar-arrow").add(k[a2]);this.chart.styledMode||p2.attr({fill:g3.buttonArrowColor})};c2.prototype.init=function(a2,c3,k){this.scrollbarButtons=[];this.renderer=a2;this.userOptions=c3;this.options=q(A,z.scrollbar,c3);this.chart=k;this.size=m(this.options.size,this.options.height);c3.enabled&&(this.render(),this.addEvents())};c2.prototype.mouseDownHandler=function(a2){a2=this.chart.pointer.normalize(a2);a2=this.cursorToScrollbarPosition(a2);this.chartX=a2.chartX;this.chartY=a2.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=true};c2.prototype.mouseMoveHandler=function(c3){var e=this.chart.pointer.normalize(c3),k=this.options.vertical?"chartY":"chartX",g3=this.initPositions||[];!this.grabbedCenter||c3.touches&&0===c3.touches[0][k]||(e=this.cursorToScrollbarPosition(e)[k],k=this[k],k=e-k,this.hasDragged=true,this.updatePosition(g3[0]+k,g3[1]+k),this.hasDragged&&a(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:c3.type,DOMEvent:c3}))};c2.prototype.mouseUpHandler=function(c3){this.hasDragged&&a(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:c3.type,DOMEvent:c3});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};c2.prototype.position=function(a2,c3,k,g3){var e=this.options.vertical,m2=this.rendered?"animate":"attr",n=g3,p2=0;this.group.show();this.x=a2;this.y=c3+this.trackBorderWidth;this.width=k;this.height=g3;this.xOffset=n;this.yOffset=p2;e?(this.width=this.yOffset=k=p2=this.size,this.xOffset=n=0,this.barWidth=g3-2*k,this.x=a2+=this.options.margin):(this.height=this.xOffset=g3=n=this.size,this.barWidth=k-2*g3,this.y+=this.options.margin);this.group[m2]({translateX:a2,translateY:this.y});this.track[m2]({width:k,height:g3});this.scrollbarButtons[1][m2]({translateX:e?0:k-n,translateY:e?g3-p2:0})};c2.prototype.removeEvents=function(){this._events.forEach((function(a2){p.apply(null,a2)}));this._events.length=0};c2.prototype.render=function(){var a2=this.renderer,k=this.options,g3=this.size,m2=this.chart.styledMode,p2=a2.g("scrollbar").attr({zIndex:k.zIndex}).hide().add();this.group=p2;this.track=a2.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:k.trackBorderRadius||0,height:g3,width:g3}).add(p2);m2||this.track.attr({fill:k.trackBackgroundColor,stroke:k.trackBorderColor,"stroke-width":k.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=a2.g().add(p2);this.scrollbar=a2.rect().addClass("highcharts-scrollbar-thumb").attr({height:g3,width:g3,r:k.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=a2.path(c2.swapXY([["M",-3,g3/4],["L",-3,2*g3/3],["M",0,g3/4],["L",0,2*g3/3],["M",3,g3/4],["L",3,2*g3/3]],k.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);m2||(this.scrollbar.attr({fill:k.barBackgroundColor,stroke:k.barBorderColor,"stroke-width":k.barBorderWidth}),this.scrollbarRifles.attr({stroke:k.rifleColor,"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};c2.prototype.setRange=function(a2,c3){var e=this.options,k=e.vertical,g3=e.minWidth,m2=this.barWidth,n=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(t(m2)){var p2=m2*Math.min(c3,1);a2=Math.max(a2,0);var f=Math.ceil(m2*a2);this.calculatedWidth=p2=x(p2-f);p2<g3&&(f=(m2-g3+p2)*a2,p2=g3);g3=Math.floor(f+this.xOffset+this.yOffset);m2=p2/2-.5;this.from=a2;this.to=c3;k?(this.scrollbarGroup[n]({translateY:g3}),this.scrollbar[n]({height:p2}),this.scrollbarRifles[n]({translateY:m2}),this.scrollbarTop=g3,this.scrollbarLeft=0):(this.scrollbarGroup[n]({translateX:g3}),this.scrollbar[n]({width:p2}),this.scrollbarRifles[n]({translateX:m2}),this.scrollbarLeft=g3,this.scrollbarTop=0);12>=p2?this.scrollbarRifles.hide():this.scrollbarRifles.show();false===e.showFull&&(0>=a2&&1<=c3?this.group.hide():this.group.show());this.rendered=true}};c2.prototype.shouldUpdateExtremes=function(a2){return m(this.options.liveRedraw,g2.svg&&!g2.isTouchDevice&&!this.chart.boosted)||"mouseup"===a2||"touchend"===a2||!t(a2)};c2.prototype.trackClick=function(c3){var e=this.chart.pointer.normalize(c3),k=this.to-this.from,g3=this.y+this.scrollbarTop,m2=this.x+this.scrollbarLeft;this.options.vertical&&e.chartY>g3||!this.options.vertical&&e.chartX>m2?this.updatePosition(this.from+k,this.to+k):this.updatePosition(this.from-k,this.to-k);a(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:c3})};c2.prototype.update=function(a2){this.destroy();this.init(this.chart.renderer,q(true,this.options,a2),this.chart)};c2.prototype.updatePosition=function(a2,c3){1<c3&&(a2=x(1-x(c3-a2)),c3=1);0>a2&&(c3=x(c3-a2),a2=0);this.from=a2;this.to=c3};c2.defaultOptions=A;return c2}();z.scrollbar=q(true,c.defaultOptions,z.scrollbar);return c}));I(g,"Stock/Navigator/Navigator.js",[g["Core/Axis/Axis.js"],g["Core/Defaults.js"],g["Core/Globals.js"],g["Core/Axis/NavigatorAxisComposition.js"],g["Stock/Navigator/NavigatorComposition.js"],g["Stock/Scrollbar/Scrollbar.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z,C){function x(a2){for(var b=[],d=1;d<arguments.length;d++)b[d-1]=arguments[d];b=[].filter.call(b,u);if(b.length)return Math[a2].apply(0,b)}var t=g2.defaultOptions,r=y.hasTouch,a=y.isTouchDevice,q=C.addEvent,m=C.clamp,p=C.correctFloat,k=C.defined,e=C.destroyObjectProperties,D=C.erase,G=C.extend,H=C.find,K=C.isArray,u=C.isNumber,n=C.merge,w=C.pick,f=C.removeEvent,l=C.splat;return function(){function d(b){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0;this.init(b)}d.compose=function(b,a2,c2){B.compose(b,a2,d,c2)};d.prototype.drawHandle=function(b,a2,d2,c2){var h=this.navigatorOptions.handles.height;this.handles[a2][c2](d2?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(b,10)+.5-h)}:{translateX:Math.round(this.left+parseInt(b,10)),translateY:Math.round(this.top+this.height/2-h/2-1)})};d.prototype.drawOutline=function(b,a2,d2,c2){var h=this.navigatorOptions.maskInside,e2=this.outline.strokeWidth(),f2=e2/2,l2=e2%2/2;e2=this.outlineHeight;var k2=this.scrollbarHeight||0,g3=this.size,n2=this.left-k2,m2=this.top;d2?(n2-=f2,d2=m2+a2+l2,a2=m2+b+l2,l2=[["M",n2+e2,m2-k2-l2],["L",n2+e2,d2],["L",n2,d2],["L",n2,a2],["L",n2+e2,a2],["L",n2+e2,m2+g3+k2]],h&&l2.push(["M",n2+e2,d2-f2],["L",n2+e2,a2+f2])):(b+=n2+k2-l2,a2+=n2+k2-l2,m2+=f2,l2=[["M",n2,m2],["L",b,m2],["L",b,m2+e2],["L",a2,m2+e2],["L",a2,m2],["L",n2+g3+2*k2,m2]],h&&l2.push(["M",b-f2,m2],["L",a2+f2,m2]));this.outline[c2]({d:l2})};d.prototype.drawMasks=function(b,a2,d2,c2){var h=this.left,e2=this.top,f2=this.height;if(d2){var l2=[h,h,h];var k2=[e2,e2+b,e2+a2];var g3=[f2,f2,f2];var n2=[b,a2-b,this.size-a2]}else l2=[h,h+b,h+a2],k2=[e2,e2,e2],g3=[b,a2-b,this.size-a2],n2=[f2,f2,f2];this.shades.forEach((function(b2,a3){b2[c2]({x:l2[a3],y:k2[a3],width:g3[a3],height:n2[a3]})}))};d.prototype.renderElements=function(){var b=this,a2=b.navigatorOptions,d2=a2.maskInside,c2=b.chart,e2=c2.renderer,f2={cursor:c2.inverted?"ns-resize":"ew-resize"},l2=b.navigatorGroup=e2.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!d2,d2,!d2].forEach((function(d3,h){var k3=e2.rect().addClass("highcharts-navigator-mask"+(1===h?"-inside":"-outside")).add(l2);c2.styledMode||(k3.attr({fill:d3?a2.maskFill:"rgba(0,0,0,0)"}),1===h&&k3.css(f2));b.shades[h]=k3}));b.outline=e2.path().addClass("highcharts-navigator-outline").add(l2);c2.styledMode||b.outline.attr({"stroke-width":a2.outlineWidth,stroke:a2.outlineColor});if(a2.handles&&a2.handles.enabled){var k2=a2.handles,g3=k2.height,n2=k2.width;[0,1].forEach((function(a3){b.handles[a3]=e2.symbol(k2.symbols[a3],-n2/2-1,0,n2,g3,k2);c2.inverted&&b.handles[a3].attr({rotation:90,rotationOriginX:Math.floor(-n2/2),rotationOriginY:(g3+n2)/2});b.handles[a3].attr({zIndex:7-a3}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][a3]).add(l2);c2.styledMode||b.handles[a3].attr({fill:k2.backgroundColor,stroke:k2.borderColor,"stroke-width":k2.lineWidth}).css(f2)}))}};d.prototype.update=function(b){(this.series||[]).forEach((function(b2){b2.baseSeries&&delete b2.baseSeries.navigatorSeries}));this.destroy();n(true,this.chart.options.navigator,b);this.init(this.chart)};d.prototype.render=function(b,a2,d2,c2){var h=this.chart,e2=this.xAxis,f2=e2.pointRange||0,l2=e2.navigatorAxis.fake?h.xAxis[0]:e2,g3=this.navigatorEnabled,n2=this.rendered,v=h.inverted,q2=h.xAxis[0].minRange,r2=h.xAxis[0].options.maxRange,t2=this.scrollbarHeight,E;if(!this.hasDragged||k(d2)){b=p(b-f2/2);a2=p(a2+f2/2);if(!u(b)||!u(a2))if(n2)d2=0,c2=w(e2.width,l2.width);else return;this.left=w(e2.left,h.plotLeft+t2+(v?h.plotWidth:0));var x2=this.size=E=w(e2.len,(v?h.plotHeight:h.plotWidth)-2*t2);h=v?t2:E+2*t2;d2=w(d2,e2.toPixels(b,true));c2=w(c2,e2.toPixels(a2,true));u(d2)&&Infinity!==Math.abs(d2)||(d2=0,c2=h);b=e2.toValue(d2,true);a2=e2.toValue(c2,true);var D2=Math.abs(p(a2-b));D2<q2?this.grabbedLeft?d2=e2.toPixels(a2-q2-f2,true):this.grabbedRight&&(c2=e2.toPixels(b+q2+f2,true)):k(r2)&&p(D2-f2)>r2&&(this.grabbedLeft?d2=e2.toPixels(a2-r2-f2,true):this.grabbedRight&&(c2=e2.toPixels(b+r2+f2,true)));this.zoomedMax=m(Math.max(d2,c2),0,x2);this.zoomedMin=m(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(d2,c2),0,x2);this.range=this.zoomedMax-this.zoomedMin;x2=Math.round(this.zoomedMax);d2=Math.round(this.zoomedMin);g3&&(this.navigatorGroup.attr({visibility:"inherit"}),n2=n2&&!this.hasDragged?"animate":"attr",this.drawMasks(d2,x2,v,n2),this.drawOutline(d2,x2,v,n2),this.navigatorOptions.handles.enabled&&(this.drawHandle(d2,0,v,n2),this.drawHandle(x2,1,v,n2)));this.scrollbar&&(v?(v=this.top-t2,l2=this.left-t2+(g3||!l2.opposite?0:(l2.titleOffset||0)+l2.axisTitleMargin),t2=E+2*t2):(v=this.top+(g3?this.height:-t2),l2=this.left-t2),this.scrollbar.position(l2,v,h,t2),this.scrollbar.setRange(this.zoomedMin/(E||1),this.zoomedMax/(E||1)));this.rendered=true}};d.prototype.addMouseEvents=function(){var b=this,a2=b.chart,d2=a2.container,c2=[],e2,f2;b.mouseMoveHandler=e2=function(a3){b.onMouseMove(a3)};b.mouseUpHandler=f2=function(a3){b.onMouseUp(a3)};c2=b.getPartsEvents("mousedown");c2.push(q(a2.renderTo,"mousemove",e2),q(d2.ownerDocument,"mouseup",f2));r&&(c2.push(q(a2.renderTo,"touchmove",e2),q(d2.ownerDocument,"touchend",f2)),c2.concat(b.getPartsEvents("touchstart")));b.eventsToUnbind=c2;b.series&&b.series[0]&&c2.push(q(b.series[0].xAxis,"foundExtremes",(function(){a2.navigator.modifyNavigatorAxisExtremes()})))};d.prototype.getPartsEvents=function(b){var a2=this,d2=[];["shades","handles"].forEach((function(c2){a2[c2].forEach((function(h,e2){d2.push(q(h.element,b,(function(b2){a2[c2+"Mousedown"](b2,e2)})))}))}));return d2};d.prototype.shadesMousedown=function(b,a2){b=this.chart.pointer.normalize(b);var d2=this.chart,c2=this.xAxis,h=this.zoomedMin,e2=this.size,f2=this.range,l2=this.left,g3=b.chartX;d2.inverted&&(g3=b.chartY,l2=this.top);if(1===a2)this.grabbedCenter=g3,this.fixedWidth=f2,this.dragOffset=g3-h;else{b=g3-l2-f2/2;if(0===a2)b=Math.max(0,b);else if(2===a2&&b+f2>=e2)if(b=e2-f2,this.reversedExtremes){b-=f2;var n2=this.getUnionExtremes().dataMin}else var m2=this.getUnionExtremes().dataMax;b!==h&&(this.fixedWidth=f2,a2=c2.navigatorAxis.toFixedRange(b,b+f2,n2,m2),k(a2.min)&&d2.xAxis[0].setExtremes(Math.min(a2.min,a2.max),Math.max(a2.min,a2.max),true,null,{trigger:"navigator"}))}};d.prototype.handlesMousedown=function(b,a2){this.chart.pointer.normalize(b);b=this.chart;var d2=b.xAxis[0],c2=this.reversedExtremes;0===a2?(this.grabbedLeft=true,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=c2?d2.min:d2.max):(this.grabbedRight=true,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=c2?d2.max:d2.min);b.fixedRange=null};d.prototype.onMouseMove=function(b){var d2=this,c2=d2.chart,e2=d2.navigatorSize,f2=d2.range,l2=d2.dragOffset,k2=c2.inverted,g3=d2.left;b.touches&&0===b.touches[0].pageX||(b=c2.pointer.normalize(b),c2=b.chartX,k2&&(g3=d2.top,c2=b.chartY),d2.grabbedLeft?(d2.hasDragged=true,d2.render(0,0,c2-g3,d2.otherHandlePos)):d2.grabbedRight?(d2.hasDragged=true,d2.render(0,0,d2.otherHandlePos,c2-g3)):d2.grabbedCenter&&(d2.hasDragged=true,c2<l2?c2=l2:c2>e2+l2-f2&&(c2=e2+l2-f2),d2.render(0,0,c2-l2,c2-l2+f2)),d2.hasDragged&&d2.scrollbar&&w(d2.scrollbar.options.liveRedraw,y.svg&&!a&&!this.chart.boosted)&&(b.DOMType=b.type,setTimeout((function(){d2.onMouseUp(b)}),0)))};d.prototype.onMouseUp=function(b){var a2=this.chart,d2=this.xAxis,c2=this.scrollbar,e2=b.DOMEvent||b,f2=a2.inverted,l2=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!c2||!c2.hasDragged)||"scrollbar"===b.trigger){c2=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var g3=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var n2=this.fixedExtreme;this.zoomedMax===this.size&&(n2=this.reversedExtremes?c2.dataMin:c2.dataMax);0===this.zoomedMin&&(g3=this.reversedExtremes?c2.dataMax:c2.dataMin);d2=d2.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,g3,n2);k(d2.min)&&a2.xAxis[0].setExtremes(Math.min(d2.min,d2.max),Math.max(d2.min,d2.max),true,this.hasDragged?false:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:e2})}"mousemove"!==b.DOMType&&"touchmove"!==b.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&u(this.zoomedMin)&&u(this.zoomedMax)&&(a2=Math.round(this.zoomedMin),b=Math.round(this.zoomedMax),this.shades&&this.drawMasks(a2,b,f2,l2),this.outline&&this.drawOutline(a2,b,f2,l2),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(a2,0,f2,l2),this.drawHandle(b,1,f2,l2)))};d.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach((function(b){b()})),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};d.prototype.removeBaseSeriesEvents=function(){var b=this.baseSeries||[];this.navigatorEnabled&&b[0]&&(false!==this.navigatorOptions.adaptToUpdatedData&&b.forEach((function(b2){f(b2,"updatedData",this.updatedDataHandler)}),this),b[0].xAxis&&f(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};d.prototype.init=function(b){var a2=b.options,d2=a2.navigator||{},e2=d2.enabled,f2=a2.scrollbar||{},l2=f2.enabled;a2=e2&&d2.height||0;var k2=l2&&f2.height||0;this.handles=[];this.shades=[];this.chart=b;this.setBaseSeries();this.height=a2;this.scrollbarHeight=k2;this.scrollbarEnabled=l2;this.navigatorEnabled=e2;this.navigatorOptions=d2;this.scrollbarOptions=f2;this.outlineHeight=a2+k2;this.opposite=w(d2.opposite,!(e2||!b.inverted));var g3=this;e2=g3.baseSeries;f2=b.xAxis.length;l2=b.yAxis.length;var m2=e2&&e2[0]&&e2[0].xAxis||b.xAxis[0]||{options:{}};b.isDirtyBox=true;g3.navigatorEnabled?(g3.xAxis=new c(b,n({breaks:m2.options.breaks,ordinal:m2.options.ordinal},d2.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:true,type:"datetime",index:f2,isInternal:true,offset:0,keepOrdinalPadding:true,startOnTick:false,endOnTick:false,minPadding:0,maxPadding:0,zoomEnabled:false},b.inverted?{offsets:[k2,0,-k2,0],width:a2}:{offsets:[0,-k2,0,k2],height:a2})),g3.yAxis=new c(b,n(d2.yAxis,{id:"navigator-y-axis",alignTicks:false,offset:0,index:l2,isInternal:true,reversed:w(d2.yAxis&&d2.yAxis.reversed,b.yAxis[0]&&b.yAxis[0].reversed,false),zoomEnabled:false},b.inverted?{width:a2}:{height:a2})),e2||d2.series.data?g3.updateNavigatorSeries(false):0===b.series.length&&(g3.unbindRedraw=q(b,"beforeRedraw",(function(){0<b.series.length&&!g3.series&&(g3.setBaseSeries(),g3.unbindRedraw())}))),g3.reversedExtremes=b.inverted&&!g3.xAxis.reversed||!b.inverted&&g3.xAxis.reversed,g3.renderElements(),g3.addMouseEvents()):(g3.xAxis={chart:b,navigatorAxis:{fake:true},translate:function(a3,d3){var c2=b.xAxis[0],e3=c2.getExtremes(),h=c2.len-2*k2,f3=x("min",c2.options.min,e3.dataMin);c2=x("max",c2.options.max,e3.dataMax)-f3;return d3?a3*c2/h+f3:h*(a3-f3)/c2},toPixels:function(b2){return this.translate(b2)},toValue:function(b2){return this.translate(b2,true)}},g3.xAxis.navigatorAxis.axis=g3.xAxis,g3.xAxis.navigatorAxis.toFixedRange=A.prototype.toFixedRange.bind(g3.xAxis.navigatorAxis));b.options.scrollbar.enabled&&(b.scrollbar=g3.scrollbar=new z(b.renderer,n(b.options.scrollbar,{margin:g3.navigatorEnabled?0:10,vertical:b.inverted}),b),q(g3.scrollbar,"changed",(function(b2){var a3=g3.size,d3=a3*this.to;a3*=this.from;g3.hasDragged=g3.scrollbar.hasDragged;g3.render(0,0,a3,d3);this.shouldUpdateExtremes(b2.DOMType)&&setTimeout((function(){g3.onMouseUp(b2)}))})));g3.addBaseSeriesEvents();g3.addChartEvents()};d.prototype.getUnionExtremes=function(b){var a2=this.chart.xAxis[0],d2=this.xAxis,c2=d2.options,e2=a2.options,f2;b&&null===a2.dataMin||(f2={dataMin:w(c2&&c2.min,x("min",e2.min,a2.dataMin,d2.dataMin,d2.min)),dataMax:w(c2&&c2.max,x("max",e2.max,a2.dataMax,d2.dataMax,d2.max))});return f2};d.prototype.setBaseSeries=function(b,a2){var d2=this.chart,c2=this.baseSeries=[];b=b||d2.options&&d2.options.navigator.baseSeries||(d2.series.length?H(d2.series,(function(b2){return!b2.options.isInternal})).index:0);(d2.series||[]).forEach((function(a3,d3){a3.options.isInternal||!a3.options.showInNavigator&&(d3!==b&&a3.options.id!==b||false===a3.options.showInNavigator)||c2.push(a3)}));this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(true,a2)};d.prototype.updateNavigatorSeries=function(b,a2){var d2=this,c2=d2.chart,e2=d2.baseSeries,h={enableMouseTracking:false,index:null,linkedTo:null,group:"nav",padXAxis:false,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:false,stacking:void 0,isInternal:true,states:{inactive:{opacity:1}}},k2=d2.series=(d2.series||[]).filter((function(b2){var a3=b2.baseSeries;return 0>e2.indexOf(a3)?(a3&&(f(a3,"updatedData",d2.updatedDataHandler),delete a3.navigatorSeries),b2.chart&&b2.destroy(),false):true})),g3,m2,p2=d2.navigatorOptions.series,q2;e2&&e2.length&&e2.forEach((function(b2){var f2=b2.navigatorSeries,v=G({color:b2.color,visible:b2.visible},K(p2)?t.navigator.series:p2);f2&&false===d2.navigatorOptions.adaptToUpdatedData||(h.name="Navigator "+e2.length,g3=b2.options||{},q2=g3.navigatorOptions||{},v.dataLabels=l(v.dataLabels),m2=n(g3,h,v,q2),m2.pointRange=w(v.pointRange,q2.pointRange,t.plotOptions[m2.type||"line"].pointRange),v=q2.data||v.data,d2.hasNavigatorData=d2.hasNavigatorData||!!v,m2.data=v||g3.data&&g3.data.slice(0),f2&&f2.options?f2.update(m2,a2):(b2.navigatorSeries=c2.initSeries(m2),b2.navigatorSeries.baseSeries=b2,k2.push(b2.navigatorSeries)))}));if(p2.data&&(!e2||!e2.length)||K(p2))d2.hasNavigatorData=false,p2=l(p2),p2.forEach((function(b2,a3){h.name="Navigator "+(k2.length+1);m2=n(t.navigator.series,{color:c2.series[a3]&&!c2.series[a3].options.isInternal&&c2.series[a3].color||c2.options.colors[a3]||c2.options.colors[0]},h,b2);m2.data=b2.data;m2.data&&(d2.hasNavigatorData=true,k2.push(c2.initSeries(m2)))}));b&&this.addBaseSeriesEvents()};d.prototype.addBaseSeriesEvents=function(){var b=this,a2=this,d2=a2.baseSeries||[];d2[0]&&d2[0].xAxis&&d2[0].eventsToUnbind.push(q(d2[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));d2.forEach((function(d3){d3.eventsToUnbind.push(q(d3,"show",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(true,false)})));d3.eventsToUnbind.push(q(d3,"hide",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(false,false)})));false!==b.navigatorOptions.adaptToUpdatedData&&d3.xAxis&&d3.eventsToUnbind.push(q(d3,"updatedData",b.updatedDataHandler));d3.eventsToUnbind.push(q(d3,"remove",(function(){this.navigatorSeries&&(D(a2.series,this.navigatorSeries),k(this.navigatorSeries.options)&&this.navigatorSeries.remove(false),delete this.navigatorSeries)})))}))};d.prototype.getBaseSeriesMin=function(b){return this.baseSeries.reduce((function(b2,a2){return Math.min(b2,a2.xData&&a2.xData.length?a2.xData[0]:b2)}),b)};d.prototype.modifyNavigatorAxisExtremes=function(){var b=this.xAxis;if("undefined"!==typeof b.getExtremes){var a2=this.getUnionExtremes(true);!a2||a2.dataMin===b.min&&a2.dataMax===b.max||(b.min=a2.dataMin,b.max=a2.dataMax)}};d.prototype.modifyBaseAxisExtremes=function(){var b=this.chart.navigator,a2=this.getExtremes(),d2=a2.dataMin,c2=a2.dataMax;a2=a2.max-a2.min;var e2=b.stickToMin,f2=b.stickToMax,l2=w(this.options.overscroll,0),k2=b.series&&b.series[0],g3=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(e2){var n2=d2;var m2=n2+a2}f2&&(m2=c2+l2,e2||(n2=Math.max(d2,m2-a2,b.getBaseSeriesMin(k2&&k2.xData?k2.xData[0]:-Number.MAX_VALUE))));g3&&(e2||f2)&&u(n2)&&(this.min=this.userMin=n2,this.max=this.userMax=m2)}b.stickToMin=b.stickToMax=null};d.prototype.updatedDataHandler=function(){var b=this.chart.navigator,a2=this.navigatorSeries;b.stickToMax=w(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,b.reversedExtremes?0===Math.round(b.zoomedMin):Math.round(b.zoomedMax)>=Math.round(b.size));b.stickToMin=b.shouldStickToMin(this,b);a2&&!b.hasNavigatorData&&(a2.options.pointStart=this.xData[0],a2.setData(this.options.data,false,null,false))};d.prototype.shouldStickToMin=function(b,a2){a2=a2.getBaseSeriesMin(b.xData[0]);var d2=b.xAxis;b=d2.max;var c2=d2.min;d2=d2.options.range;return u(b)&&u(c2)?d2&&0<b-a2?b-a2<d2:c2<=a2:false};d.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(q(this.chart,"redraw",(function(){var b=this.navigator,a2=b&&(b.baseSeries&&b.baseSeries[0]&&b.baseSeries[0].xAxis||this.xAxis[0]);a2&&b.render(a2.min,a2.max)})),q(this.chart,"getMargins",(function(){var b=this.navigator,a2=b.opposite?"plotTop":"marginBottom";this.inverted&&(a2=b.opposite?"marginRight":"plotLeft");this[a2]=(this[a2]||0)+(b.navigatorEnabled||!this.inverted?b.outlineHeight:0)+b.navigatorOptions.margin})))};d.prototype.destroy=function(){var b=this;this.removeEvents();this.xAxis&&(D(this.chart.xAxis,this.xAxis),D(this.chart.axes,this.xAxis));this.yAxis&&(D(this.chart.yAxis,this.yAxis),D(this.chart.axes,this.yAxis));(this.series||[]).forEach((function(b2){b2.destroy&&b2.destroy()}));"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach((function(a2){b[a2]&&b[a2].destroy&&b[a2].destroy();b[a2]=null}));[this.handles].forEach((function(b2){e(b2)}))};return d}()}));I(g,"Stock/RangeSelector/RangeSelectorDefaults.js",[],(function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:false,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:false,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:true,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#335cad",cursor:"pointer"},labelStyle:{color:"#666666"}}}}));I(g,"Stock/RangeSelector/RangeSelectorComposition.js",[g["Core/Defaults.js"],g["Stock/RangeSelector/RangeSelectorDefaults.js"],g["Core/Utilities.js"]],(function(c,g2,y){function A(){var a2=this.range,c2=a2.type,d=this.max,b=this.chart.time,e2=function(a3,d2){var e3="year"===c2?"FullYear":"Month",f=new b.Date(a3),h=b.get(e3,f);b.set(e3,f,h+d2);h===b.get(e3,f)&&b.set("Date",f,0);return f.getTime()-a3};if(G(a2)){var k2=d-a2;var g3=a2}else a2&&(k2=d+e2(d,-(a2.count||1)),this.chart&&(this.chart.fixedRange=d-k2));var n2=K(this.dataMin,Number.MIN_VALUE);G(k2)||(k2=n2);k2<=n2&&(k2=n2,"undefined"===typeof g3&&(g3=e2(k2,a2.count)),this.newMax=Math.min(k2+g3,K(this.dataMax,Number.MAX_VALUE)));G(d)?!G(a2)&&a2&&a2._offsetMin&&(k2+=a2._offsetMin):k2=void 0;return k2}function B(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new w(this))}function z(){var a2=this.axes,c2=this.rangeSelector;c2&&(G(c2.deferredYTDClick)&&(c2.clickButton(c2.deferredYTDClick),delete c2.deferredYTDClick),a2.forEach((function(a3){a3.updateNames();a3.setScale()})),this.getAxisMargins(),c2.render(),a2=c2.options.verticalAlign,c2.options.floating||("bottom"===a2?this.extraBottomMargin=true:"middle"!==a2&&(this.extraTopMargin=true)))}function C(a2){var c2,d,b,e2,f=a2.rangeSelector,k2=function(){f&&(c2=a2.xAxis[0].getExtremes(),d=a2.legend,e2=f&&f.options.verticalAlign,G(c2.min)&&f.render(c2.min,c2.max),d.display&&"top"===e2&&e2===d.options.verticalAlign&&(b=H(a2.spacingBox),b.y="vertical"===d.options.layout?a2.plotTop:b.y+f.getHeight(),d.group.placed=false,d.align(b)))};f&&(D(u,(function(b2){return b2[0]===a2}))||u.push([a2,[p(a2.xAxis[0],"afterSetExtremes",(function(b2){f&&f.render(b2.min,b2.max)})),p(a2,"redraw",k2)]]),k2())}function x(){for(var a2=0,c2=u.length;a2<c2;++a2){var d=u[a2];if(d[0]===this){d[1].forEach((function(b){return b()}));u.splice(a2,1);break}}}function t(){var a2=this.rangeSelector;a2&&(a2=a2.getHeight(),this.extraTopMargin&&(this.plotTop+=a2),this.extraBottomMargin&&(this.marginBottom+=a2))}function r(){var a2=this.rangeSelector;a2&&!a2.options.floating&&(a2.render(),a2=a2.options.verticalAlign,"bottom"===a2?this.extraBottomMargin=true:"middle"!==a2&&(this.extraTopMargin=true))}function a(a2){var c2=a2.options.rangeSelector;a2=this.extraBottomMargin;var d=this.extraTopMargin,b=this.rangeSelector;c2&&c2.enabled&&!k(b)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=true,this.rangeSelector=b=new w(this));this.extraTopMargin=this.extraBottomMargin=false;b&&(C(this),c2=c2&&c2.verticalAlign||b.options&&b.options.verticalAlign,b.options.floating||("bottom"===c2?this.extraBottomMargin=true:"middle"!==c2&&(this.extraTopMargin=true)),this.extraBottomMargin!==a2||this.extraTopMargin!==d)&&(this.isDirtyBox=true)}var q=c.defaultOptions,m=c.setOptions,p=y.addEvent,k=y.defined,e=y.extend,D=y.find,G=y.isNumber,H=y.merge,K=y.pick,u=[],n=[],w;return{compose:function(c2,l,d){w=d;-1===n.indexOf(c2)&&(n.push(c2),c2.prototype.minFromRange=A);-1===n.indexOf(l)&&(n.push(l),p(l,"afterGetContainer",B),p(l,"beforeRender",z),p(l,"destroy",x),p(l,"getMargins",t),p(l,"render",r),p(l,"update",a),l.prototype.callbacks.push(C));-1===n.indexOf(m)&&(e(q,{rangeSelector:g2.rangeSelector}),e(q.lang,g2.lang))}}}));I(g,"Stock/RangeSelector/RangeSelector.js",[g["Core/Axis/Axis.js"],g["Core/Defaults.js"],g["Core/Globals.js"],g["Stock/RangeSelector/RangeSelectorComposition.js"],g["Core/Renderer/SVG/SVGElement.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z){function C(a2){if(-1!==a2.indexOf("%L"))return"text";var c2="aAdewbBmoyY".split("").some((function(b){return-1!==a2.indexOf("%"+b)})),d="HkIlMS".split("").some((function(b){return-1!==a2.indexOf("%"+b)}));return c2&&d?"datetime-local":c2?"date":d?"time":"text"}var x=g2.defaultOptions,t=z.addEvent,r=z.createElement,a=z.css,q=z.defined,m=z.destroyObjectProperties,p=z.discardElement,k=z.extend,e=z.fireEvent,D=z.isNumber,G=z.merge,H=z.objectEach,K=z.pad,u=z.pick,n=z.pInt,w=z.splat;g2=function(){function f(a2){this.buttons=void 0;this.buttonOptions=f.prototype.defaultButtons;this.initialButtonGroupWidth=0;this.options=void 0;this.chart=a2;this.init(a2)}f.compose=function(a2,d){A.compose(a2,d,f)};f.prototype.clickButton=function(a2,d){var b=this.chart,h=this.buttonOptions[a2],f2=b.xAxis[0],l=b.scroller&&b.scroller.getUnionExtremes()||f2||{},k2=h.type,g3=h.dataGrouping,n2=l.dataMin,m2=l.dataMax,p2=f2&&Math.round(Math.min(f2.max,u(m2,f2.max)));l=h._range;var r2,x2=true;if(null!==n2&&null!==m2){b.fixedRange=l;this.setSelected(a2);g3&&(this.forcedDataGrouping=true,c.prototype.setDataGrouping.call(f2||{chart:this.chart},g3,false),this.frozenStates=h.preserveDataGrouping);if("month"===k2||"year"===k2)if(f2){k2={range:h,max:p2,chart:b,dataMin:n2,dataMax:m2};var y2=f2.minFromRange.call(k2);D(k2.newMax)&&(p2=k2.newMax);x2=false}else l=h;else if(l)y2=Math.max(p2-l,n2),p2=Math.min(y2+l,m2),x2=false;else if("ytd"===k2)if(f2){if("undefined"===typeof m2||"undefined"===typeof n2)n2=Number.MAX_VALUE,m2=Number.MIN_VALUE,b.series.forEach((function(b2){if(b2=b2.xData)n2=Math.min(b2[0],n2),m2=Math.max(b2[b2.length-1],m2)})),d=false;k2=this.getYTDExtremes(m2,n2,b.time.useUTC);y2=r2=k2.min;p2=k2.max}else{this.deferredYTDClick=a2;return}else"all"===k2&&f2&&(b.navigator&&b.navigator.baseSeries[0]&&(b.navigator.baseSeries[0].xAxis.options.range=void 0),y2=n2,p2=m2);x2&&h._offsetMin&&q(y2)&&(y2+=h._offsetMin);h._offsetMax&&q(p2)&&(p2+=h._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=a2+1);if(f2)f2.setExtremes(y2,p2,u(d,true),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:h});else{var C2=w(b.options.xAxis)[0];var z2=C2.range;C2.range=l;var G2=C2.min;C2.min=r2;t(b,"load",(function(){C2.range=z2;C2.min=G2}))}e(this,"afterBtnClick")}};f.prototype.setSelected=function(a2){this.selected=this.options.selected=a2};f.prototype.init=function(a2){var d=this,b=a2.options.rangeSelector,c2=b.buttons||d.defaultButtons.slice(),f2=b.selected,l=function(){var b2=d.minInput,a3=d.maxInput;b2&&b2.blur&&e(b2,"blur");a3&&a3.blur&&e(a3,"blur")};d.chart=a2;d.options=b;d.buttons=[];d.buttonOptions=c2;this.eventsToUnbind=[];this.eventsToUnbind.push(t(a2.container,"mousedown",l));this.eventsToUnbind.push(t(a2,"resize",l));c2.forEach(d.computeButtonRange);"undefined"!==typeof f2&&c2[f2]&&this.clickButton(f2,false);this.eventsToUnbind.push(t(a2,"load",(function(){a2.xAxis&&a2.xAxis[0]&&t(a2.xAxis[0],"setExtremes",(function(b2){this.max-this.min!==a2.fixedRange&&"rangeSelectorButton"!==b2.trigger&&"updatedData"!==b2.trigger&&d.forcedDataGrouping&&!d.frozenStates&&this.setDataGrouping(false,false)}))})))};f.prototype.updateButtonStates=function(){var a2=this,d=this.chart,b=this.dropdown,c2=d.xAxis[0],e2=Math.round(c2.max-c2.min),f2=!c2.hasVisibleSeries,k2=d.scroller&&d.scroller.getUnionExtremes()||c2,g3=k2.dataMin,n2=k2.dataMax;d=a2.getYTDExtremes(n2,g3,d.time.useUTC);var m2=d.min,p2=d.max,q2=a2.selected,w2=a2.options.allButtonsEnabled,u2=a2.buttons,r2=D(q2);a2.buttonOptions.forEach((function(d2,h){var l=d2._range,k3=d2.type,v=d2.count||1,t2=u2[h],x2=d2._offsetMax-d2._offsetMin,F=h===q2,E=l>n2-g3,D2=l<c2.minRange;d2=0;var y2=false,C2=false;l=l===e2;("month"===k3||"year"===k3)&&e2+36e5>=864e5*{month:28,year:365}[k3]*v-x2&&e2-36e5<=864e5*{month:31,year:366}[k3]*v+x2?l=true:"ytd"===k3?(l=p2-m2+x2===e2,y2=!F):"all"===k3&&(l=c2.max-c2.min>=n2-g3,C2=!F&&r2&&l);k3=!w2&&(E||D2||C2||f2);v=F&&l||l&&!r2&&!y2||F&&a2.frozenStates;k3?d2=3:v&&(r2=true,d2=2);t2.state!==d2&&(t2.setState(d2),b&&(b.options[h+1].disabled=k3,2===d2&&(b.selectedIndex=h+1)),0===d2&&q2===h&&a2.setSelected())}))};f.prototype.computeButtonRange=function(a2){var d=a2.type,b=a2.count||1,c2={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};if(c2[d])a2._range=c2[d]*b;else if("month"===d||"year"===d)a2._range=864e5*{month:30,year:365}[d]*b;a2._offsetMin=u(a2.offsetMin,0);a2._offsetMax=u(a2.offsetMax,0);a2._range+=a2._offsetMax-a2._offsetMin};f.prototype.getInputValue=function(a2){a2="min"===a2?this.minInput:this.maxInput;var d=this.chart.options.rangeSelector,b=this.chart.time;return a2?("text"===a2.type&&d.inputDateParser||this.defaultInputDateParser)(a2.value,b.useUTC,b):0};f.prototype.setInputValue=function(a2,d){var b=this.options,c2=this.chart.time,e2="min"===a2?this.minInput:this.maxInput;a2="min"===a2?this.minDateBox:this.maxDateBox;if(e2){var f2=e2.getAttribute("data-hc-time");f2=q(f2)?Number(f2):void 0;q(d)&&(q(f2)&&e2.setAttribute("data-hc-time-previous",f2),e2.setAttribute("data-hc-time",d),f2=d);e2.value=c2.dateFormat(this.inputTypeFormats[e2.type]||b.inputEditDateFormat,f2);a2&&a2.attr({text:c2.dateFormat(b.inputDateFormat,f2)})}};f.prototype.setInputExtremes=function(a2,d,b){if(a2="min"===a2?this.minInput:this.maxInput){var c2=this.inputTypeFormats[a2.type],e2=this.chart.time;c2&&(d=e2.dateFormat(c2,d),a2.min!==d&&(a2.min=d),b=e2.dateFormat(c2,b),a2.max!==b&&(a2.max=b))}};f.prototype.showInput=function(c2){var d="min"===c2?this.minDateBox:this.maxDateBox;if((c2="min"===c2?this.minInput:this.maxInput)&&d&&this.inputGroup){var b="text"===c2.type,e2=this.inputGroup,f2=e2.translateX;e2=e2.translateY;var l=this.options.inputBoxWidth;a(c2,{width:b?d.width+(l?-2:20)+"px":"auto",height:b?d.height-2+"px":"auto",border:"2px solid silver"});b&&l?a(c2,{left:f2+d.x+"px",top:e2+"px"}):a(c2,{left:Math.min(Math.round(d.x+f2-(c2.offsetWidth-d.width)/2),this.chart.chartWidth-c2.offsetWidth)+"px",top:e2-(c2.offsetHeight-d.height)/2+"px"})}};f.prototype.hideInput=function(c2){(c2="min"===c2?this.minInput:this.maxInput)&&a(c2,{top:"-9999em",border:0,width:"1px",height:"1px"})};f.prototype.defaultInputDateParser=function(a2,d,b){var c2=a2.split("/").join("-").split(" ").join("T");-1===c2.indexOf("T")&&(c2+="T00:00");if(d)c2+="Z";else{var e2;if(e2=y.isSafari)e2=c2,e2=!(6<e2.length&&(e2.lastIndexOf("-")===e2.length-6||e2.lastIndexOf("+")===e2.length-6));e2&&(e2=new Date(c2).getTimezoneOffset()/60,c2+=0>=e2?"+".concat(K(-e2),":00"):"-".concat(K(e2),":00"))}c2=Date.parse(c2);D(c2)||(a2=a2.split("-"),c2=Date.UTC(n(a2[0]),n(a2[1])-1,n(a2[2])));b&&d&&D(c2)&&(c2+=b.getTimezoneOffset(c2));return c2};f.prototype.drawInput=function(c2){function d(){var a2=l.maxInput,d2=l.minInput,e3=b.xAxis[0],f3=b.scroller&&b.scroller.xAxis?b.scroller.xAxis:e3,h=f3.dataMin;f3=f3.dataMax;var k2=l.getInputValue(c2);k2!==Number(w2.getAttribute("data-hc-time-previous"))&&D(k2)&&(w2.setAttribute("data-hc-time-previous",k2),p2&&a2&&D(h)?k2>Number(a2.getAttribute("data-hc-time"))?k2=void 0:k2<h&&(k2=h):d2&&D(f3)&&(k2<Number(d2.getAttribute("data-hc-time"))?k2=void 0:k2>f3&&(k2=f3)),"undefined"!==typeof k2&&e3.setExtremes(p2?k2:e3.min,p2?e3.max:k2,void 0,void 0,{trigger:"rangeSelectorInput"}))}var b=this.chart,e2=this.div,f2=this.inputGroup,l=this,g3=b.renderer.style||{},n2=b.renderer,m2=b.options.rangeSelector,p2="min"===c2,q2=x.lang[p2?"rangeSelectorFrom":"rangeSelectorTo"]||"";q2=n2.label(q2,0).addClass("highcharts-range-label").attr({padding:q2?2:0,height:q2?m2.inputBoxHeight:0}).add(f2);n2=n2.label("",0).addClass("highcharts-range-input").attr({padding:2,width:m2.inputBoxWidth,height:m2.inputBoxHeight,"text-align":"center"}).on("click",(function(){l.showInput(c2);l[c2+"Input"].focus()}));b.styledMode||n2.attr({stroke:m2.inputBoxBorderColor,"stroke-width":1});n2.add(f2);var w2=r("input",{name:c2,className:"highcharts-range-selector"},void 0,e2);w2.setAttribute("type",C(m2.inputDateFormat||"%b %e, %Y"));b.styledMode||(q2.css(G(g3,m2.labelStyle)),n2.css(G({color:"#333333"},g3,m2.inputStyle)),a(w2,k({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:g3.fontSize,fontFamily:g3.fontFamily,top:"-9999em"},m2.inputStyle)));w2.onfocus=function(){l.showInput(c2)};w2.onblur=function(){w2===y.doc.activeElement&&d();l.hideInput(c2);l.setInputValue(c2);w2.blur()};var u2=false;w2.onchange=function(){u2||(d(),l.hideInput(c2),w2.blur())};w2.onkeypress=function(b2){13===b2.keyCode&&d()};w2.onkeydown=function(b2){u2=true;38!==b2.keyCode&&40!==b2.keyCode||d()};w2.onkeyup=function(){u2=false};return{dateBox:n2,input:w2,label:q2}};f.prototype.getPosition=function(){var a2=this.chart,d=a2.options.rangeSelector;a2="top"===d.verticalAlign?a2.plotTop-a2.axisOffset[0]:0;return{buttonTop:a2+d.buttonPosition.y,inputTop:a2+d.inputPosition.y-10}};f.prototype.getYTDExtremes=function(a2,d,b){var c2=this.chart.time,e2=new c2.Date(a2),f2=c2.get("FullYear",e2);b=b?c2.Date.UTC(f2,0,1):+new c2.Date(f2,0,1);d=Math.max(d,b);e2=e2.getTime();return{max:Math.min(a2||e2,e2),min:d}};f.prototype.render=function(a2,d){var b=this.chart,c2=b.renderer,e2=b.container,f2=b.options,l=f2.rangeSelector,k2=u(f2.chart.style&&f2.chart.style.zIndex,0)+1;f2=l.inputEnabled;if(false!==l.enabled){this.rendered||(this.group=c2.g("range-selector-group").attr({zIndex:7}).add(),this.div=r("div",void 0,{position:"relative",height:0,zIndex:k2}),this.buttonOptions.length&&this.renderButtons(),e2.parentNode&&e2.parentNode.insertBefore(this.div,e2),f2&&(this.inputGroup=c2.g("input-group").add(this.group),c2=this.drawInput("min"),this.minDateBox=c2.dateBox,this.minLabel=c2.label,this.minInput=c2.input,c2=this.drawInput("max"),this.maxDateBox=c2.dateBox,this.maxLabel=c2.label,this.maxInput=c2.input));if(f2&&(this.setInputValue("min",a2),this.setInputValue("max",d),a2=b.scroller&&b.scroller.getUnionExtremes()||b.xAxis[0]||{},q(a2.dataMin)&&q(a2.dataMax)&&(b=b.xAxis[0].minRange||0,this.setInputExtremes("min",a2.dataMin,Math.min(a2.dataMax,this.getInputValue("max"))-b),this.setInputExtremes("max",Math.max(a2.dataMin,this.getInputValue("min"))+b,a2.dataMax)),this.inputGroup)){var g3=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach((function(b2){if(b2){var a3=b2.getBBox().width;a3&&(b2.attr({x:g3}),g3+=a3+l.inputSpacing)}}))}this.alignElements();this.rendered=true}};f.prototype.renderButtons=function(){var a2=this,d=this.buttons,b=this.options,c2=x.lang,f2=this.chart.renderer,k2=G(b.buttonTheme),g3=k2&&k2.states,n2=k2.width||28;delete k2.width;delete k2.states;this.buttonGroup=f2.g("range-selector-buttons").add(this.group);var m2=this.dropdown=r("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);t(m2,"touchstart",(function(){m2.style.fontSize="16px"}));[[y.isMS?"mouseover":"mouseenter"],[y.isMS?"mouseout":"mouseleave"],["change","click"]].forEach((function(b2){var c3=b2[0],f3=b2[1];t(m2,c3,(function(){var b3=d[a2.currentButtonIndex()];b3&&e(b3.element,f3||c3)}))}));this.zoomText=f2.label(c2&&c2.rangeSelectorZoom||"",0).attr({padding:b.buttonTheme.padding,height:b.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(b.labelStyle),k2["stroke-width"]=u(k2["stroke-width"],0));r("option",{textContent:this.zoomText.textStr,disabled:true},void 0,m2);this.buttonOptions.forEach((function(b2,c3){r("option",{textContent:b2.title||b2.text},void 0,m2);d[c3]=f2.button(b2.text,0,0,(function(d2){var e2=b2.events&&b2.events.click,f3;e2&&(f3=e2.call(b2,d2));false!==f3&&a2.clickButton(c3);a2.isActive=true}),k2,g3&&g3.hover,g3&&g3.select,g3&&g3.disabled).attr({"text-align":"center",width:n2}).add(a2.buttonGroup);b2.title&&d[c3].attr("title",b2.title)}))};f.prototype.alignElements=function(){var a2=this,d=this.buttonGroup,b=this.buttons,c2=this.chart,e2=this.group,f2=this.inputGroup,k2=this.options,g3=this.zoomText,n2=c2.options,m2=n2.exporting&&false!==n2.exporting.enabled&&n2.navigation&&n2.navigation.buttonOptions;n2=k2.buttonPosition;var p2=k2.inputPosition,q2=k2.verticalAlign,w2=function(b2,d2){return m2&&a2.titleCollision(c2)&&"top"===q2&&"right"===d2.align&&d2.y-b2.getBBox().height-12<(m2.y||0)+(m2.height||0)+c2.spacing[0]?-40:0},r2=c2.plotLeft;if(e2&&n2&&p2){var t2=n2.x-c2.spacing[3];if(d){this.positionButtons();if(!this.initialButtonGroupWidth){var x2=0;g3&&(x2+=g3.getBBox().width+5);b.forEach((function(a3,d2){x2+=a3.width;d2!==b.length-1&&(x2+=k2.buttonSpacing)}));this.initialButtonGroupWidth=x2}r2-=c2.spacing[3];this.updateButtonStates();g3=w2(d,n2);this.alignButtonGroup(g3);e2.placed=d.placed=c2.hasLoaded}d=0;f2&&(d=w2(f2,p2),"left"===p2.align?t2=r2:"right"===p2.align&&(t2=-Math.max(c2.axisOffset[1],-d)),f2.align({y:p2.y,width:f2.getBBox().width,align:p2.align,x:p2.x+t2-2},true,c2.spacingBox),f2.placed=c2.hasLoaded);this.handleCollision(d);e2.align({verticalAlign:q2},true,c2.spacingBox);f2=e2.alignAttr.translateY;d=e2.getBBox().height+20;w2=0;"bottom"===q2&&(w2=(w2=c2.legend&&c2.legend.options)&&"bottom"===w2.verticalAlign&&w2.enabled&&!w2.floating?c2.legend.legendHeight+u(w2.margin,10):0,d=d+w2-20,w2=f2-d-(k2.floating?0:k2.y)-(c2.titleOffset?c2.titleOffset[2]:0)-10);if("top"===q2)k2.floating&&(w2=0),c2.titleOffset&&c2.titleOffset[0]&&(w2=c2.titleOffset[0]),w2+=c2.margin[0]-c2.spacing[0]||0;else if("middle"===q2){if(p2.y===n2.y)w2=f2;else if(p2.y||n2.y)w2=0>p2.y||0>n2.y?w2-Math.min(p2.y,n2.y):f2-d}e2.translate(k2.x,k2.y+Math.floor(w2));n2=this.minInput;p2=this.maxInput;f2=this.dropdown;k2.inputEnabled&&n2&&p2&&(n2.style.marginTop=e2.translateY+"px",p2.style.marginTop=e2.translateY+"px");f2&&(f2.style.marginTop=e2.translateY+"px")}};f.prototype.alignButtonGroup=function(a2,d){var b=this.chart,c2=this.buttonGroup,e2=this.options.buttonPosition,f2=b.plotLeft-b.spacing[3],l=e2.x-b.spacing[3];"right"===e2.align?l+=a2-f2:"center"===e2.align&&(l-=f2/2);c2&&c2.align({y:e2.y,width:u(d,this.initialButtonGroupWidth),align:e2.align,x:l},true,b.spacingBox)};f.prototype.positionButtons=function(){var a2=this.buttons,d=this.chart,b=this.options,c2=this.zoomText,e2=d.hasLoaded?"animate":"attr",f2=b.buttonPosition,k2=d=d.plotLeft;c2&&"hidden"!==c2.visibility&&(c2[e2]({x:u(d+f2.x,d)}),k2+=f2.x+c2.getBBox().width+5);c2=0;for(f2=this.buttonOptions.length;c2<f2;++c2)if("hidden"!==a2[c2].visibility)a2[c2][e2]({x:k2}),k2+=a2[c2].width+b.buttonSpacing;else a2[c2][e2]({x:d})};f.prototype.handleCollision=function(a2){var d=this,b=this.chart,c2=this.buttonGroup,e2=this.inputGroup,f2=this.options,l=f2.buttonPosition,k2=f2.dropdown,g3=f2.inputPosition;f2=function(){var b2=0;d.buttons.forEach((function(a3){a3=a3.getBBox();a3.width>b2&&(b2=a3.width)}));return b2};var n2=function(b2){if(e2&&c2){var d2=e2.alignAttr.translateX+e2.alignOptions.x-a2+e2.getBBox().x+2,f3=e2.alignOptions.width,h=c2.alignAttr.translateX+c2.getBBox().x;return h+b2>d2&&d2+f3>h&&l.y<g3.y+e2.getBBox().height}return false},m2=function(){e2&&c2&&e2.attr({translateX:e2.alignAttr.translateX+(b.axisOffset[1]>=-a2?0:-a2),translateY:e2.alignAttr.translateY+c2.getBBox().height+10})};if(c2){if("always"===k2){this.collapseButtons(a2);n2(f2())&&m2();return}"never"===k2&&this.expandButtons()}e2&&c2?g3.align===l.align||n2(this.initialButtonGroupWidth+20)?"responsive"===k2?(this.collapseButtons(a2),n2(f2())&&m2()):m2():"responsive"===k2&&this.expandButtons():c2&&"responsive"===k2&&(this.initialButtonGroupWidth>b.plotWidth?this.collapseButtons(a2):this.expandButtons())};f.prototype.collapseButtons=function(a2){var d=this.buttons,b=this.buttonOptions,c2=this.chart,e2=this.dropdown,f2=this.options,l=this.zoomText,k2=c2.userOptions.rangeSelector&&c2.userOptions.rangeSelector.buttonTheme||{},g3=function(b2){return{text:b2?""+b2+" ▾":"▾",width:"auto",paddingLeft:u(f2.buttonTheme.paddingLeft,k2.padding,8),paddingRight:u(f2.buttonTheme.paddingRight,k2.padding,8)}};l&&l.hide();var n2=false;b.forEach((function(b2,a3){a3=d[a3];2!==a3.state?a3.hide():(a3.show(),a3.attr(g3(b2.text)),n2=true)}));n2||(e2&&(e2.selectedIndex=0),d[0].show(),d[0].attr(g3(this.zoomText&&this.zoomText.textStr)));b=f2.buttonPosition.align;this.positionButtons();"right"!==b&&"center"!==b||this.alignButtonGroup(a2,d[this.currentButtonIndex()].getBBox().width);this.showDropdown()};f.prototype.expandButtons=function(){var a2=this.buttons,d=this.buttonOptions,b=this.options,c2=this.zoomText;this.hideDropdown();c2&&c2.show();d.forEach((function(d2,c3){c3=a2[c3];c3.show();c3.attr({text:d2.text,width:b.buttonTheme.width||28,paddingLeft:u(b.buttonTheme.paddingLeft,"unset"),paddingRight:u(b.buttonTheme.paddingRight,"unset")});2>c3.state&&c3.setState(0)}));this.positionButtons()};f.prototype.currentButtonIndex=function(){var a2=this.dropdown;return a2&&0<a2.selectedIndex?a2.selectedIndex-1:0};f.prototype.showDropdown=function(){var c2=this.buttonGroup,d=this.buttons,b=this.chart,e2=this.dropdown;if(c2&&e2){var f2=c2.translateX;c2=c2.translateY;d=d[this.currentButtonIndex()].getBBox();a(e2,{left:b.plotLeft+f2+"px",top:c2+.5+"px",width:d.width+"px",height:d.height+"px"});this.hasVisibleDropdown=true}};f.prototype.hideDropdown=function(){var c2=this.dropdown;c2&&(a(c2,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=false)};f.prototype.getHeight=function(){var a2=this.options,d=this.group,b=a2.y,c2=a2.buttonPosition.y,e2=a2.inputPosition.y;if(a2.height)return a2.height;this.alignElements();a2=d?d.getBBox(true).height+13+b:0;d=Math.min(e2,c2);if(0>e2&&0>c2||0<e2&&0<c2)a2+=Math.abs(d);return a2};f.prototype.titleCollision=function(a2){return!(a2.options.title.text||a2.options.subtitle.text)};f.prototype.update=function(a2){var d=this.chart;G(true,d.options.rangeSelector,a2);this.destroy();this.init(d);this.render()};f.prototype.destroy=function(){var a2=this,d=a2.minInput,b=a2.maxInput;a2.eventsToUnbind&&(a2.eventsToUnbind.forEach((function(b2){return b2()})),a2.eventsToUnbind=void 0);m(a2.buttons);d&&(d.onfocus=d.onblur=d.onchange=null);b&&(b.onfocus=b.onblur=b.onchange=null);H(a2,(function(b2,d2){b2&&"chart"!==d2&&(b2 instanceof B?b2.destroy():b2 instanceof W.HTMLElement&&p(b2));b2!==f.prototype[d2]&&(a2[d2]=null)}),this)};return f}();k(g2.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});return g2}));I(g,"Series/XRange/XRangeSeriesDefaults.js",[g["Core/Utilities.js"]],(function(c){var g2=c.correctFloat,y=c.isNumber,A=c.isObject;return{colorByPoint:true,dataLabels:{formatter:function(){var c2=this.point.partialFill;A(c2)&&(c2=c2.amount);if(y(c2)&&0<c2)return g2(100*c2)+"%"},inside:true,verticalAlign:"middle"},tooltip:{headerFormat:'<span style="font-size: 10px">{point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0}}));I(g,"Series/XRange/XRangePoint.js",[g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2){var y=this&&this.__extends||function(){var c2=function(g3,y2){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c3,g4){c3.__proto__=g4}||function(c3,g4){for(var r in g4)g4.hasOwnProperty(r)&&(c3[r]=g4[r])};return c2(g3,y2)};return function(g3,y2){function x(){this.constructor=g3}c2(g3,y2);g3.prototype=null===y2?Object.create(y2):(x.prototype=y2.prototype,new x)}}(),A=c.series.prototype.pointClass.prototype;g2=g2.extend;c=function(c2){function g3(){var g4=null!==c2&&c2.apply(this,arguments)||this;g4.options=void 0;g4.series=void 0;return g4}y(g3,c2);g3.getColorByCategory=function(c3,g4){var t=c3.options.colors||c3.chart.options.colors;c3=g4.y%(t?t.length:c3.chart.options.chart.colorCount);return{colorIndex:c3,color:t&&t[c3]}};g3.prototype.resolveColor=function(){var c3=this.series;if(c3.options.colorByPoint&&!this.options.color){var x=g3.getColorByCategory(c3,this);c3.chart.styledMode||(this.color=x.color);this.options.colorIndex||(this.colorIndex=x.colorIndex)}else this.color||(this.color=c3.color)};g3.prototype.init=function(){A.init.apply(this,arguments);this.y||(this.y=0);return this};g3.prototype.setState=function(){A.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())};g3.prototype.getLabelConfig=function(){var c3=A.getLabelConfig.call(this),g4=this.series.yAxis.categories;c3.x2=this.x2;c3.yCategory=this.yCategory=g4&&g4[this.y];return c3};g3.prototype.isValid=function(){return"number"===typeof this.x&&"number"===typeof this.x2};return g3}(c.seriesTypes.column.prototype.pointClass);g2(c.prototype,{ttBelow:false,tooltipDateKeys:["x","x2"]});return c}));I(g,"Series/XRange/XRangeSeries.js",[g["Core/Globals.js"],g["Core/Color/Color.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"],g["Series/XRange/XRangeSeriesDefaults.js"],g["Series/XRange/XRangePoint.js"]],(function(c,g2,y,A,B,z){function C(){if(this.isXAxis){var a2=H(this.dataMax,-Number.MAX_VALUE);for(var c2=0,e2=this.series;c2<e2.length;c2++){var f=e2[c2];if(f.x2Data){var l=0;for(f=f.x2Data;l<f.length;l++){var d=f[l];if(d&&d>a2){a2=d;var b=true}}}}b&&(this.dataMax=a2)}}var x=this&&this.__extends||function(){var a2=function(c2,e2){a2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a3,c3){a3.__proto__=c3}||function(a3,c3){for(var d in c3)c3.hasOwnProperty(d)&&(a3[d]=c3[d])};return a2(c2,e2)};return function(c2,e2){function f(){this.constructor=c2}a2(c2,e2);c2.prototype=null===e2?Object.create(e2):(f.prototype=e2.prototype,new f)}}();c=c.noop;var t=g2.parse,r=y.series.prototype,a=y.seriesTypes.column,q=A.addEvent,m=A.clamp,p=A.defined;g2=A.extend;var k=A.find,e=A.isNumber,D=A.isObject,G=A.merge,H=A.pick,K=[];A=function(c2){function g3(){var a2=null!==c2&&c2.apply(this,arguments)||this;a2.data=void 0;a2.options=void 0;a2.points=void 0;return a2}x(g3,c2);g3.compose=function(a2){-1===K.indexOf(a2)&&(K.push(a2),q(a2,"afterGetSeriesExtremes",C))};g3.prototype.init=function(){c2.prototype.init.apply(this,arguments);this.options.stacking=void 0};g3.prototype.getColumnMetrics=function(){var a2=this,e2=function(){for(var d=0,b=a2.chart.series;d<b.length;d++){var c3=b[d],e3=c3.xAxis;c3.xAxis=c3.yAxis;c3.yAxis=e3}};e2();var l=c2.prototype.getColumnMetrics.call(this);e2();return l};g3.prototype.cropData=function(a2,c3,e2,d){c3=r.cropData.call(this,this.x2Data,c3,e2,d);c3.xData=a2.slice(c3.start,c3.end);return c3};g3.prototype.findPointIndex=function(a2){var c3=this.cropStart,l=this.points,d=a2.id;if(d)var b=(b=k(l,(function(b2){return b2.id===d})))?b.index:void 0;"undefined"===typeof b&&(b=(b=k(l,(function(b2){return b2.x===a2.x&&b2.x2===a2.x2&&!b2.touched})))?b.index:void 0);this.cropped&&e(b)&&e(c3)&&b>=c3&&(b-=c3);return b};g3.prototype.alignDataLabel=function(a2){var e2=a2.plotX;a2.plotX=H(a2.dlBox&&a2.dlBox.centerX,a2.plotX);c2.prototype.alignDataLabel.apply(this,arguments);a2.plotX=e2};g3.prototype.translatePoint=function(a2){var c3=this.xAxis,l=this.yAxis,d=this.columnMetrics,b=this.options,h=b.minPointLength||0,k2=(a2.shapeArgs&&a2.shapeArgs.width||0)/2,g4=this.pointXOffset=d.offset,n=H(a2.x2,a2.x+(a2.len||0)),q2=a2.plotX,w=c3.translate(n,0,0,0,1);n=Math.abs(w-q2);var u=this.chart.inverted,r2=H(b.borderWidth,1)%2/2,t2=d.offset,x2=Math.round(d.width);h&&(h-=n,0>h&&(h=0),q2-=h/2,w+=h/2);q2=Math.max(q2,-10);w=m(w,-10,c3.len+10);p(a2.options.pointWidth)&&(t2-=(Math.ceil(a2.options.pointWidth)-x2)/2,x2=Math.ceil(a2.options.pointWidth));b.pointPlacement&&e(a2.plotY)&&l.categories&&(a2.plotY=l.translate(a2.y,0,1,0,1,b.pointPlacement));b=Math.floor(Math.min(q2,w))+r2;b={x:b,y:Math.floor(a2.plotY+t2)+r2,width:Math.floor(Math.max(q2,w))+r2-b,height:x2,r:this.options.borderRadius};a2.shapeArgs=b;u?a2.tooltipPos[1]+=g4+k2:a2.tooltipPos[0]-=k2+g4-b.width/2;k2=b.x;g4=k2+b.width;0>k2||g4>c3.len?(k2=m(k2,0,c3.len),g4=m(g4,0,c3.len),w=g4-k2,a2.dlBox=G(b,{x:k2,width:g4-k2,centerX:w?w/2:null})):a2.dlBox=null;k2=a2.tooltipPos;g4=u?1:0;w=u?0:1;d=this.columnMetrics?this.columnMetrics.offset:-d.width/2;k2[g4]=u?k2[g4]+b.width/2:k2[g4]+(c3.reversed?-1:0)*b.width;k2[w]=m(k2[w]+(u?-1:1)*d,0,l.len-1);if(l=a2.partialFill)D(l)&&(l=l.amount),e(l)||(l=0),a2.partShapeArgs=G(b,{r:this.options.borderRadius}),q2=Math.max(Math.round(n*l+a2.plotX-q2),0),a2.clipRectArgs={x:c3.reversed?b.x+n-q2:b.x,y:b.y,width:q2,height:b.height}};g3.prototype.translate=function(){c2.prototype.translate.apply(this,arguments);for(var a2=0,e2=this.points;a2<e2.length;a2++)this.translatePoint(e2[a2])};g3.prototype.drawPoint=function(a2,c3){var e2=this.options,d=this.chart.renderer,b=a2.shapeType,f=a2.shapeArgs,k2=a2.partShapeArgs,g4=a2.clipRectArgs,n=e2.stacking&&!e2.borderRadius,m2=a2.state,p2=e2.states[m2||"normal"]||{},q2="undefined"===typeof m2?"attr":c3;m2=this.pointAttribs(a2,m2);p2=H(this.chart.options.chart.animation,p2.animation);var u=a2.graphic,r2=a2.partialFill;if(a2.isNull||false===a2.visible)u&&(a2.graphic=u.destroy());else{if(u)u.rect[c3](f);else a2.graphic=u=d.g("point").addClass(a2.getClassName()).add(a2.group||this.group),u.rect=d[b](G(f)).addClass(a2.getClassName()).addClass("highcharts-partfill-original").add(u);k2&&(u.partRect?(u.partRect[c3](G(k2)),u.partialClipRect[c3](G(g4))):(u.partialClipRect=d.clipRect(g4.x,g4.y,g4.width,g4.height),u.partRect=d[b](k2).addClass("highcharts-partfill-overlay").add(u).clip(u.partialClipRect)));this.chart.styledMode||(u.rect[c3](m2,p2).shadow(e2.shadow,null,n),k2&&(D(r2)||(r2={}),D(e2.partialFill)&&(r2=G(e2.partialFill,r2)),a2=r2.fill||t(m2.fill).brighten(-.3).get()||t(a2.color||this.color).brighten(-.3).get(),m2.fill=a2,u.partRect[q2](m2,p2).shadow(e2.shadow,null,n)))}};g3.prototype.drawPoints=function(){for(var a2=this.getAnimationVerb(),c3=0,e2=this.points;c3<e2.length;c3++)this.drawPoint(e2[c3],a2)};g3.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"};g3.prototype.isPointInside=function(a2){var e2=a2.shapeArgs,l=a2.plotX,d=a2.plotY;return e2?"undefined"!==typeof l&&"undefined"!==typeof d&&0<=d&&d<=this.yAxis.len&&0<=(e2.x||0)+(e2.width||0)&&l<=this.xAxis.len:c2.prototype.isPointInside.apply(this,arguments)};g3.defaultOptions=G(a.defaultOptions,B);return g3}(a);g2(A.prototype,{pointClass:z,cropShoulder:1,getExtremesFromAll:true,parallelArrays:["x","x2","y"],requireSorting:false,type:"xrange",animate:r.animate,autoIncrement:c,buildKDTree:c});y.registerSeriesType("xrange",A);return A}));I(g,"Series/Gantt/GanttPoint.js",[g["Core/Series/SeriesRegistry.js"],g["Core/Utilities.js"]],(function(c,g2){var y=this&&this.__extends||function(){var c2=function(g3,y2){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c3,g4){c3.__proto__=g4}||function(c3,g4){for(var r in g4)g4.hasOwnProperty(r)&&(c3[r]=g4[r])};return c2(g3,y2)};return function(g3,y2){function x(){this.constructor=g3}c2(g3,y2);g3.prototype=null===y2?Object.create(y2):(x.prototype=y2.prototype,new x)}}(),A=g2.pick;return function(c2){function g3(){var g4=null!==c2&&c2.apply(this,arguments)||this;g4.options=void 0;g4.series=void 0;return g4}y(g3,c2);g3.setGanttPointAliases=function(c3){function g4(g5,r){"undefined"!==typeof r&&(c3[g5]=r)}g4("x",A(c3.start,c3.x));g4("x2",A(c3.end,c3.x2));g4("partialFill",A(c3.completed,c3.partialFill))};g3.prototype.applyOptions=function(y2,x){y2=c2.prototype.applyOptions.call(this,y2,x);g3.setGanttPointAliases(y2);return y2};g3.prototype.isValid=function(){return("number"===typeof this.start||"number"===typeof this.x)&&("number"===typeof this.end||"number"===typeof this.x2||this.milestone)};return g3}(c.seriesTypes.xrange.prototype.pointClass)}));I(g,"Core/Axis/BrokenAxis.js",[g["Core/Axis/Stacking/StackItem.js"],g["Core/Utilities.js"]],(function(c,g2){var y=g2.addEvent,A=g2.find,B=g2.fireEvent,z=g2.isArray,C=g2.isNumber,x=g2.pick,t;(function(g3){function a(){"undefined"!==typeof this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,false)}function q(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=false)}function m(){var a2=this.brokenAxis;if(a2&&a2.hasBreaks){for(var c2=this.tickPositions,e2=this.tickPositions.info,f=[],l=0;l<c2.length;l++)a2.isInAnyBreak(c2[l])||f.push(c2[l]);this.tickPositions=f;this.tickPositions.info=e2}}function p(){this.brokenAxis||(this.brokenAxis=new K(this))}function k(){var a2=this.options.connectNulls,c2=this.points,e2=this.xAxis,f=this.yAxis;if(this.isDirty)for(var l=c2.length;l--;){var d=c2[l],b=!(null===d.y&&false===a2)&&(e2&&e2.brokenAxis&&e2.brokenAxis.isInAnyBreak(d.x,true)||f&&f.brokenAxis&&f.brokenAxis.isInAnyBreak(d.y,true));d.visible=b?false:false!==d.options.visible}}function e(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,x(this.pointArrayMap,["y"]))}function r(a2,c2){var e2=this,f=e2.points,l,d,b,h;if(a2&&a2.brokenAxis&&a2.brokenAxis.hasBreaks){var k2=a2.brokenAxis;c2.forEach((function(c3){l=k2&&k2.breakArray||[];d=a2.isXAxis?a2.min:x(e2.options.threshold,a2.min);f.forEach((function(e3){h=x(e3["stack"+c3.toUpperCase()],e3[c3]);l.forEach((function(c4){if(C(d)&&C(h)){b=false;if(d<c4.from&&h>c4.to||d>c4.from&&h<c4.from)b="pointBreak";else if(d<c4.from&&h>c4.from&&h<c4.to||d>c4.from&&h>c4.to&&h<c4.from)b="pointInBreak";b&&B(a2,b,{point:e3,brk:c4})}}))}))}))}}function t2(){var a2=this.currentDataGrouping,e2=a2&&a2.gapSize;a2=this.points.slice();var k2=this.yAxis,f=this.options.gapSize,l=a2.length-1,d;if(f&&0<l)for("value"!==this.options.gapUnit&&(f*=this.basePointRange),e2&&e2>f&&e2>=this.basePointRange&&(f=e2),d=void 0;l--;)d&&false!==d.visible||(d=a2[l+1]),e2=a2[l],false!==d.visible&&false!==e2.visible&&(d.x-e2.x>f&&(d=(e2.x+d.x)/2,a2.splice(l+1,0,{isNull:true,x:d}),k2.stacking&&this.options.stacking&&(d=k2.stacking.stacks[this.stackKey][d]=new c(k2,k2.options.stackLabels,false,d,this.stack),d.total=0)),d=e2);return this.getGraphPath(a2)}var H=[];g3.compose=function(c2,g4){-1===H.indexOf(c2)&&(H.push(c2),c2.keepProps.push("brokenAxis"),y(c2,"init",p),y(c2,"afterInit",a),y(c2,"afterSetTickPositions",m),y(c2,"afterSetOptions",q));if(-1===H.indexOf(g4)){H.push(g4);var n=g4.prototype;n.drawBreaks=r;n.gappedPath=t2;y(g4,"afterGeneratePoints",k);y(g4,"afterRender",e)}return c2};var K=function(){function a2(a3){this.hasBreaks=false;this.axis=a3}a2.isInBreak=function(a3,c2){var e2=a3.repeat||Infinity,k2=a3.from,d=a3.to-a3.from;c2=c2>=k2?(c2-k2)%e2:e2-(k2-c2)%e2;return a3.inclusive?c2<=d:c2<d&&0!==c2};a2.lin2Val=function(c2){var e2=this.brokenAxis;e2=e2&&e2.breakArray;if(!e2||!C(c2))return c2;var f;for(f=0;f<e2.length;f++){var k2=e2[f];if(k2.from>=c2)break;else k2.to<c2?c2+=k2.len:a2.isInBreak(k2,c2)&&(c2+=k2.len)}return c2};a2.val2Lin=function(c2){var e2=this.brokenAxis;e2=e2&&e2.breakArray;if(!e2||!C(c2))return c2;var f=c2,k2;for(k2=0;k2<e2.length;k2++){var d=e2[k2];if(d.to<=c2)f-=d.len;else if(d.from>=c2)break;else if(a2.isInBreak(d,c2)){f-=c2-d.from;break}}return f};a2.prototype.findBreakAt=function(a3,c2){return A(c2,(function(c3){return c3.from<a3&&a3<c3.to}))};a2.prototype.isInAnyBreak=function(c2,e2){var f=this.axis,k2=f.options.breaks||[],d=k2.length,b;if(d&&C(c2)){for(;d--;)if(a2.isInBreak(k2[d],c2)){var h=true;b||(b=x(k2[d].showPoints,!f.isXAxis))}var g4=h&&e2?h&&!b:h}return g4};a2.prototype.setBreaks=function(c2,e2){var f=this,k2=f.axis,d=z(c2)&&!!c2.length;k2.isDirty=f.hasBreaks!==d;f.hasBreaks=d;k2.options.breaks=k2.userOptions.breaks=c2;k2.forceRedraw=true;k2.series.forEach((function(b){b.isDirty=true}));d||k2.val2lin!==a2.val2Lin||(delete k2.val2lin,delete k2.lin2val);d&&(k2.userOptions.ordinal=false,k2.lin2val=a2.lin2Val,k2.val2lin=a2.val2Lin,k2.setExtremes=function(b,a3,d2,c3,e3){if(f.hasBreaks){for(var h=this.options.breaks||[],l;l=f.findBreakAt(b,h);)b=l.to;for(;l=f.findBreakAt(a3,h);)a3=l.from;a3<b&&(a3=b)}k2.constructor.prototype.setExtremes.call(this,b,a3,d2,c3,e3)},k2.setAxisTranslation=function(){k2.constructor.prototype.setAxisTranslation.call(this);f.unitLength=void 0;if(f.hasBreaks){var b=k2.options.breaks||[],d2=[],c3=[],e3=x(k2.pointRangePadding,0),l=0,g4,m2=k2.userMin||k2.min,n=k2.userMax||k2.max,p2;b.forEach((function(b2){g4=b2.repeat||Infinity;C(m2)&&C(n)&&(a2.isInBreak(b2,m2)&&(m2+=b2.to%g4-m2%g4),a2.isInBreak(b2,n)&&(n-=n%g4-b2.from%g4))}));b.forEach((function(b2){r2=b2.from;g4=b2.repeat||Infinity;if(C(m2)&&C(n)){for(;r2-g4>m2;)r2-=g4;for(;r2<m2;)r2+=g4;for(p2=r2;p2<n;p2+=g4)d2.push({value:p2,move:"in"}),d2.push({value:p2+b2.to-b2.from,move:"out",size:b2.breakSize})}}));d2.sort((function(b2,a3){return b2.value===a3.value?("in"===b2.move?0:1)-("in"===a3.move?0:1):b2.value-a3.value}));var q2=0;var r2=m2;d2.forEach((function(b2){q2+="in"===b2.move?1:-1;1===q2&&"in"===b2.move&&(r2=b2.value);0===q2&&C(r2)&&(c3.push({from:r2,to:b2.value,len:b2.value-r2-(b2.size||0)}),l+=b2.value-r2-(b2.size||0))}));f.breakArray=c3;C(m2)&&C(n)&&C(k2.min)&&(f.unitLength=n-m2-l+e3,B(k2,"afterBreaks"),k2.staticScale?k2.transA=k2.staticScale:f.unitLength&&(k2.transA*=(n-k2.min+e3)/f.unitLength),e3&&(k2.minPixelPadding=k2.transA*(k2.minPointOffset||0)),k2.min=m2,k2.max=n)}});x(e2,true)&&k2.chart.redraw()};return a2}();g3.Additions=K})(t||(t={}));return t}));I(g,"Core/Axis/GridAxis.js",[g["Core/Axis/Axis.js"],g["Core/Axis/AxisDefaults.js"],g["Core/Globals.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){function B(b2,a2){var d2={width:0,height:0};a2.forEach((function(a3){a3=b2[a3];if(A.isObject(a3,true)){var c2=A.isObject(a3.label,true)?a3.label:{};a3=c2.getBBox?c2.getBBox().height:0;c2.textStr&&!h(c2.textPxLength)&&(c2.textPxLength=c2.getBBox().width);var e2=h(c2.textPxLength)?Math.round(c2.textPxLength):0;c2.textStr&&(e2=Math.round(c2.getBBox().width));d2.height=Math.max(a3,d2.height);d2.width=Math.max(e2,d2.width)}}));"treegrid"===this.options.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode&&(d2.width+=this.options.labels.indentation*((this.treeGrid.mapOfPosToGridNode[-1].height||0)-1));return d2}function z(){var b2=this.grid;(b2&&b2.columns||[]).forEach((function(b3){b3.getOffset()}))}function C(b2){if(true===(this.options.grid||{}).enabled){var a2=this.axisTitle,d2=this.height,c2=this.horiz,e2=this.left,f2=this.offset,h2=this.opposite,k2=this.options,l2=this.top,g3=this.width,m2=this.tickSize(),n2=a2&&a2.getBBox().width,p2=k2.title.x,q2=k2.title.y,r2=E(k2.title.margin,c2?5:10);a2=this.chart.renderer.fontMetrics(k2.title.style.fontSize,a2).f;m2=(c2?l2+d2:e2)+(c2?1:-1)*(h2?-1:1)*(m2?m2[0]/2:0)+(this.side===O.bottom?a2:0);b2.titlePosition.x=c2?e2-(n2||0)/2-r2+p2:m2+(h2?g3:0)+f2+p2;b2.titlePosition.y=c2?m2-(h2?d2:0)+(h2?a2:-a2)/2+f2+q2:l2-r2+q2}}function x(){var b2=this.chart,a2=this.options.grid;a2=void 0===a2?{}:a2;var d2=this.userOptions;if(a2.enabled){var e2=this.options;e2.labels.align=E(e2.labels.align,"center");this.categories||(e2.showLastLabel=false);this.labelRotation=0;e2.labels.rotation=0}if(a2.columns){e2=this.grid.columns=[];for(var f2=this.grid.columnIndex=0;++f2<a2.columns.length;){var h2=v(d2,a2.columns[a2.columns.length-f2-1],{linkedTo:0,type:"category",scrollbar:{enabled:false}});delete h2.grid.columns;h2=new c(this.chart,h2);h2.grid.isColumn=true;h2.grid.columnIndex=f2;l(b2.axes,h2);l(b2[this.coll],h2);e2.push(h2)}}}function t(){var b2=this.grid,a2=this.options;if(true===(a2.grid||{}).enabled){var d2=this.min||0,c2=this.max||0;this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions);this.rightWall&&this.rightWall.destroy();if(this.grid&&this.grid.isOuterAxis()&&this.axisLine){var e2=a2.lineWidth;if(e2){e2=this.getLinePath(e2);var f2=e2[0],h2=e2[1],k2=((this.tickSize("tick")||[1])[0]-1)*(this.side===O.top||this.side===O.left?-1:1);"M"===f2[0]&&"L"===h2[0]&&(this.horiz?(f2[2]+=k2,h2[2]+=k2):(f2[1]+=k2,h2[1]+=k2));!this.horiz&&this.chart.marginRight&&(f2=[f2,["L",this.left,f2[2]||0]],k2=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(c2+this.tickmarkOffset)],h2=[["M",h2[1]||0,this.toPixels(c2+this.tickmarkOffset)],k2],this.grid.upperBorder||0===d2%1||(this.grid.upperBorder=this.grid.renderBorder(f2)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:a2.lineColor,"stroke-width":a2.lineWidth}),this.grid.upperBorder.animate({d:f2})),this.grid.lowerBorder||0===c2%1||(this.grid.lowerBorder=this.grid.renderBorder(h2)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:a2.lineColor,"stroke-width":a2.lineWidth}),this.grid.lowerBorder.animate({d:h2})));this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:a2.lineColor,"stroke-width":a2.lineWidth}),this.grid.axisLineExtra.animate({d:e2})):this.grid.axisLineExtra=this.grid.renderBorder(e2);this.axisLine[this.showAxis?"show":"hide"]()}}(b2&&b2.columns||[]).forEach((function(b3){return b3.render()}));if(!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)){b2=this.tickmarkOffset;a2=this.tickPositions[this.tickPositions.length-1];e2=this.tickPositions[0];for(f2=h2=void 0;(h2=this.hiddenLabels.pop())&&h2.element;)h2.show();for(;(f2=this.hiddenMarks.pop())&&f2.element;)f2.show();(h2=this.ticks[e2].label)&&(d2-e2>b2?this.hiddenLabels.push(h2.hide()):h2.show());(h2=this.ticks[a2].label)&&(a2-c2>b2?this.hiddenLabels.push(h2.hide()):h2.show());(d2=this.ticks[a2].mark)&&a2-c2<b2&&0<a2-c2&&this.ticks[a2].isLast&&this.hiddenMarks.push(d2.hide())}}}function r(){var b2=this.tickPositions&&this.tickPositions.info,a2=this.options,d2=this.userOptions.labels||{};(a2.grid||{}).enabled&&(this.horiz?(this.series.forEach((function(b3){b3.options.pointRange=0})),b2&&a2.dateTimeLabelFormats&&a2.labels&&!f(d2.align)&&(false===a2.dateTimeLabelFormats[b2.unitName].range||1<b2.count)&&(a2.labels.align="left",f(d2.x)||(a2.labels.x=3))):"treegrid"!==this.options.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function a(b2){var a2=this.options;b2=b2.userOptions;var d2=a2&&A.isObject(a2.grid,true)?a2.grid:{};if(true===d2.enabled){var c2=v(true,{className:"highcharts-grid-axis "+(b2.className||""),dateTimeLabelFormats:{hour:{list:["%H:%M","%H"]},day:{list:["%A, %e. %B","%a, %e. %b","%E"]},week:{list:["Week %W","W%W"]},month:{list:["%B","%b","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"13px"}},margin:0,title:{text:null,reserveSpace:false,rotation:0},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},b2);"xAxis"===this.coll&&(f(b2.linkedTo)&&!f(b2.tickPixelInterval)&&(c2.tickPixelInterval=350),f(b2.tickPixelInterval)||!f(b2.linkedTo)||f(b2.tickPositioner)||f(b2.tickInterval)||(c2.tickPositioner=function(b3,a3){var d3=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(d3){for(var e2=c2.units||[],f2=void 0,k2=1,l2="year",g3=0;g3<e2.length;g3++){var m2=e2[g3];if(m2&&m2[0]===d3.unitName){f2=g3;break}}(e2=h(f2)&&e2[f2+1])?(l2=e2[0]||"year",k2=(k2=e2[1])&&k2[0]||1):"year"===d3.unitName&&(k2=10*d3.count);d3=J[l2];this.tickInterval=d3*k2;return this.chart.time.getTimeTicks({unitRange:d3,count:k2,unitName:l2},b3,a3,this.options.startOfWeek)}}));v(true,this.options,c2);this.horiz&&(a2.minPadding=E(b2.minPadding,0),a2.maxPadding=E(b2.maxPadding,0));h(a2.grid.borderWidth)&&(a2.tickWidth=a2.lineWidth=d2.borderWidth)}}function q(b2){b2=(b2=b2.userOptions)&&b2.grid||{};var a2=b2.columns;b2.enabled&&a2&&v(true,this.options,a2[a2.length-1])}function m(){(this.grid.columns||[]).forEach((function(b2){return b2.setScale()}))}function p(a2){var d2=g2.defaultLeftAxisOptions,c2=this.horiz,e2=this.maxLabelDimensions,f2=this.options.grid;f2=void 0===f2?{}:f2;f2.enabled&&e2&&(d2=2*Math.abs(d2.labels.x),c2=c2?f2.cellHeight||d2+e2.height:d2+e2.width,b(a2.tickSize)?a2.tickSize[0]=c2:a2.tickSize=[c2,0])}function k(){this.axes.forEach((function(b2){(b2.grid&&b2.grid.columns||[]).forEach((function(b3){b3.setAxisSize();b3.setAxisTranslation()}))}))}function e(b2){var a2=this.grid;(a2.columns||[]).forEach((function(a3){return a3.destroy(b2.keepEvents)}));a2.columns=void 0}function D(b2){b2=b2.userOptions||{};var a2=b2.grid||{};a2.enabled&&f(a2.borderColor)&&(b2.tickColor=b2.lineColor=a2.borderColor);this.grid||(this.grid=new L(this));this.hiddenLabels=[];this.hiddenMarks=[]}function G(b2){var a2=this.label,d2=this.axis,c2=d2.reversed,e2=d2.chart,f2=d2.options.grid||{},k2=d2.options.labels,l2=k2.align,g3=O[d2.side],m2=b2.tickmarkOffset,n2=d2.tickPositions,p2=this.pos-m2;n2=h(n2[b2.index+1])?n2[b2.index+1]-m2:(d2.max||0)+m2;var q2=d2.tickSize("tick");m2=q2?q2[0]:0;q2=q2?q2[1]/2:0;if(true===f2.enabled){if("top"===g3){f2=d2.top+d2.offset;var r2=f2-m2}else"bottom"===g3?(r2=e2.chartHeight-d2.bottom+d2.offset,f2=r2+m2):(f2=d2.top+d2.len-(d2.translate(c2?n2:p2)||0),r2=d2.top+d2.len-(d2.translate(c2?p2:n2)||0));"right"===g3?(g3=e2.chartWidth-d2.right+d2.offset,c2=g3+m2):"left"===g3?(c2=d2.left+d2.offset,g3=c2-m2):(g3=Math.round(d2.left+(d2.translate(c2?n2:p2)||0))-q2,c2=Math.min(Math.round(d2.left+(d2.translate(c2?p2:n2)||0))-q2,d2.left+d2.len));this.slotWidth=c2-g3;b2.pos.x="left"===l2?g3:"right"===l2?c2:g3+(c2-g3)/2;b2.pos.y=r2+(f2-r2)/2;e2=e2.renderer.fontMetrics(k2.style.fontSize,a2&&a2.element);a2=a2?a2.getBBox().height:0;k2.useHTML?b2.pos.y+=e2.b+-(a2/2):(a2=Math.round(a2/e2.h),b2.pos.y+=(e2.b-(e2.h-e2.f))/2+-((a2-1)*e2.h/2));b2.pos.x+=d2.horiz&&k2.x||0}}function H(b2){var a2=b2.axis,c2=b2.value;if(a2.options.grid&&a2.options.grid.enabled){var e2=a2.tickPositions,f2=(a2.linkedParent||a2).series[0],h2=c2===e2[0];e2=c2===e2[e2.length-1];var k2=f2&&d(f2.options.data,(function(b3){return b3[a2.isXAxis?"x":"y"]===c2})),l2=void 0;k2&&f2.is("gantt")&&(l2=v(k2),y.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(l2));b2.isFirst=h2;b2.isLast=e2;b2.point=l2}}function K(){var b2=this.options,a2=this.categories,d2=this.tickPositions,c2=d2[0],e2=d2[d2.length-1],f2=this.linkedParent&&this.linkedParent.min||this.min,h2=this.linkedParent&&this.linkedParent.max||this.max,k2=this.tickInterval;true!==(b2.grid||{}).enabled||a2||!this.horiz&&!this.isLinked||(c2<f2&&c2+k2>f2&&!b2.startOnTick&&(d2[0]=f2),e2>h2&&e2-k2<h2&&!b2.endOnTick&&(d2[d2.length-1]=h2))}function u(b2){var a2=this.options.grid;return true===(void 0===a2?{}:a2).enabled&&this.categories?this.tickInterval:b2.apply(this,Array.prototype.slice.call(arguments,1))}var n=y.dateFormats,w=A.addEvent,f=A.defined,l=A.erase,d=A.find,b=A.isArray,h=A.isNumber,v=A.merge,E=A.pick,J=A.timeUnits,M=A.wrap,O;(function(b2){b2[b2.top=0]="top";b2[b2.right=1]="right";b2[b2.bottom=2]="bottom";b2[b2.left=3]="left"})(O||(O={}));var I2=[],L=function(){function b2(b3){this.axis=b3}b2.prototype.isOuterAxis=function(){var b3=this.axis,a2=b3.grid.columnIndex,d2=b3.linkedParent&&b3.linkedParent.grid.columns||b3.grid.columns,c2=a2?b3.linkedParent:b3,e2=-1,f2=0;(b3.chart[b3.coll]||[]).forEach((function(a3,d3){a3.side!==b3.side||a3.options.isInternal||(f2=d3,a3===c2&&(e2=d3))}));return f2===e2&&(h(a2)?d2.length===a2:true)};b2.prototype.renderBorder=function(b3){var a2=this.axis,d2=a2.chart.renderer,c2=a2.options;b3=d2.path(b3).addClass("highcharts-axis-line").add(a2.axisBorder);d2.styledMode||b3.attr({stroke:c2.lineColor,"stroke-width":c2.lineWidth,zIndex:7});return b3};return b2}();n.E=function(b2){return this.dateFormat("%a",b2,true).charAt(0)};n.W=function(b2){var a2=this,d2=new this.Date(b2);["Hours","Milliseconds","Minutes","Seconds"].forEach((function(b3){a2.set(b3,d2,0)}));var c2=(this.get("Day",d2)+6)%7;b2=new this.Date(d2.valueOf());this.set("Date",b2,this.get("Date",d2)-c2+3);c2=new this.Date(this.get("FullYear",b2),0,1);4!==this.get("Day",c2)&&(this.set("Month",d2,0),this.set("Date",d2,1+(11-this.get("Day",c2))%7));return(1+Math.floor((b2.valueOf()-c2.valueOf())/6048e5)).toString()};return{compose:function(b2,d2,c2){-1===I2.indexOf(b2)&&(I2.push(b2),b2.keepProps.push("grid"),b2.prototype.getMaxLabelDimensions=B,M(b2.prototype,"unsquish",u),w(b2,"init",D),w(b2,"afterGetOffset",z),w(b2,"afterGetTitlePosition",C),w(b2,"afterInit",x),w(b2,"afterRender",t),w(b2,"afterSetAxisTranslation",r),w(b2,"afterSetOptions",a),w(b2,"afterSetOptions",q),w(b2,"afterSetScale",m),w(b2,"afterTickSize",p),w(b2,"trimTicks",K),w(b2,"destroy",e));-1===I2.indexOf(d2)&&w(d2,"afterSetChartSize",k);-1===I2.indexOf(c2)&&(w(c2,"afterGetLabelPosition",G),w(c2,"labelFormat",H));return b2}}}));I(g,"Gantt/Tree.js",[g["Core/Utilities.js"]],(function(c){var g2=c.extend,y=c.isNumber,A=c.pick,B=function(c2,g3){var t=c2.reduce((function(c3,a){var g4=A(a.parent,"");"undefined"===typeof c3[g4]&&(c3[g4]=[]);c3[g4].push(a);return c3}),{});Object.keys(t).forEach((function(c3,a){var q=t[c3];""!==c3&&-1===g3.indexOf(c3)&&(q.forEach((function(c4){a[""].push(c4)})),delete a[c3])}));return t},z=function(c2,x,t,r,a,q){var m=0,p=0,k=q&&q.after,e=q&&q.before;x={data:r,depth:t-1,id:c2,level:t,parent:x};var D,G;"function"===typeof e&&e(x,q);e=(a[c2]||[]).map((function(e2){var k2=z(e2.id,c2,t+1,e2,a,q),g3=e2.start;e2=true===e2.milestone?g3:e2.end;D=!y(D)||g3<D?g3:D;G=!y(G)||e2>G?e2:G;m=m+1+k2.descendants;p=Math.max(k2.height+1,p);return k2}));r&&(r.start=A(r.start,D),r.end=A(r.end,G));g2(x,{children:e,descendants:m,height:p});"function"===typeof k&&k(x,q);return x};return{getListOfParents:B,getNode:z,getTree:function(c2,g3){var t=c2.map((function(c3){return c3.id}));c2=B(c2,t);return z("",null,1,null,c2,g3)}}}));I(g,"Core/Axis/TreeGrid/TreeGridTick.js",[g["Core/Utilities.js"]],(function(c){function g2(){this.treeGrid||(this.treeGrid=new q(this))}function y(a2,c2){a2=a2.treeGrid;var k=!a2.labelIcon,e=c2.renderer,g3=c2.xy,m=c2.options,p=m.width||0,q2=m.height||0,r2=g3.x-p/2-(m.padding||0);g3=g3.y-q2/2;var n=c2.collapsed?90:180,w=c2.show&&x(g3),f=a2.labelIcon;f||(a2.labelIcon=f=e.path(e.symbols[m.type](m.x||0,m.y||0,p,q2)).addClass("highcharts-label-icon").add(c2.group));f[w?"show":"hide"]();e.styledMode||f.attr({cursor:"pointer",fill:t(c2.color,"#666666"),"stroke-width":1,stroke:m.lineColor,strokeWidth:m.lineWidth||0});f[k?"attr":"animate"]({translateX:r2,translateY:g3,rotation:n})}function A(a2,c2,k,e,g3,q2,r2,y2,u){var m=t(this.options&&this.options.labels,q2);q2=this.pos;var p=this.axis,f="treegrid"===p.options.type;a2=a2.apply(this,[c2,k,e,g3,m,r2,y2,u]);f&&(c2=m&&C(m.symbol,true)?m.symbol:{},m=m&&x(m.indentation)?m.indentation:0,q2=(q2=(p=p.treeGrid.mapOfPosToGridNode)&&p[q2])&&q2.depth||1,a2.x+=(c2.width||0)+2*(c2.padding||0)+(q2-1)*m);return a2}function B(a2){var c2=this,k=c2.pos,e=c2.axis,g3=c2.label,m=e.treeGrid.mapOfPosToGridNode,q2=e.options,r2=t(c2.options&&c2.options.labels,q2&&q2.labels),u=r2&&C(r2.symbol,true)?r2.symbol:{},n=(m=m&&m[k])&&m.depth;q2="treegrid"===q2.type;var w=-1<e.tickPositions.indexOf(k);k=e.chart.styledMode;q2&&m&&g3&&g3.element&&g3.addClass("highcharts-treegrid-node-level-"+n);a2.apply(c2,Array.prototype.slice.call(arguments,1));q2&&g3&&g3.element&&m&&m.descendants&&0<m.descendants&&(e=e.treeGrid.isCollapsed(m),y(c2,{color:!k&&g3.styles&&g3.styles.color||"",collapsed:e,group:g3.parentGroup,options:u,renderer:g3.renderer,show:w,xy:g3.xy}),u="highcharts-treegrid-node-"+(e?"expanded":"collapsed"),g3.addClass("highcharts-treegrid-node-"+(e?"collapsed":"expanded")).removeClass(u),k||g3.css({cursor:"pointer"}),[g3,c2.treeGrid.labelIcon].forEach((function(a3){a3&&!a3.attachedTreeGridEvents&&(z(a3.element,"mouseover",(function(){g3.addClass("highcharts-treegrid-node-active");g3.renderer.styledMode||g3.css({textDecoration:"underline"})})),z(a3.element,"mouseout",(function(){var a4=C(r2.style)?r2.style:{};g3.removeClass("highcharts-treegrid-node-active");g3.renderer.styledMode||g3.css({textDecoration:a4.textDecoration})})),z(a3.element,"click",(function(){c2.treeGrid.toggleCollapse()})),a3.attachedTreeGridEvents=true)})))}var z=c.addEvent,C=c.isObject,x=c.isNumber,t=c.pick,r=c.wrap,a=[],q=function(){function c2(a2){this.tick=a2}c2.compose=function(c3){-1===a.indexOf(c3)&&(a.push(c3),z(c3,"init",g2),r(c3.prototype,"getLabelPosition",A),r(c3.prototype,"renderLabel",B),c3.prototype.collapse=function(a2){this.treeGrid.collapse(a2)},c3.prototype.expand=function(a2){this.treeGrid.expand(a2)},c3.prototype.toggleCollapse=function(a2){this.treeGrid.toggleCollapse(a2)})};c2.prototype.collapse=function(a2){var c3=this.tick,e=c3.axis,g3=e.brokenAxis;g3&&e.treeGrid.mapOfPosToGridNode&&(c3=e.treeGrid.collapse(e.treeGrid.mapOfPosToGridNode[c3.pos]),g3.setBreaks(c3,t(a2,true)))};c2.prototype.destroy=function(){this.labelIcon&&this.labelIcon.destroy()};c2.prototype.expand=function(a2){var c3=this.tick,e=c3.axis,g3=e.brokenAxis;g3&&e.treeGrid.mapOfPosToGridNode&&(c3=e.treeGrid.expand(e.treeGrid.mapOfPosToGridNode[c3.pos]),g3.setBreaks(c3,t(a2,true)))};c2.prototype.toggleCollapse=function(a2){var c3=this.tick,e=c3.axis,g3=e.brokenAxis;g3&&e.treeGrid.mapOfPosToGridNode&&(c3=e.treeGrid.toggleCollapse(e.treeGrid.mapOfPosToGridNode[c3.pos]),g3.setBreaks(c3,t(a2,true)))};return c2}();return q}));I(g,"Series/TreeUtilities.js",[g["Core/Color/Color.js"],g["Core/Utilities.js"]],(function(c,g2){function y(c2,a){var g3=a.before,m=a.idRoot,p=a.mapIdToNode[m],k=a.points[c2.i],e=k&&k.options||{},r=[],x2=0;c2.levelDynamic=c2.level-(false!==a.levelIsConstant?0:p.level);c2.name=t(k&&k.name,"");c2.visible=m===c2.id||true===a.visible;"function"===typeof g3&&(c2=g3(c2,a));c2.children.forEach((function(e2,k2){var g4=A({},a);A(g4,{index:k2,siblings:c2.children.length,visible:c2.visible});e2=y(e2,g4);r.push(e2);e2.visible&&(x2+=e2.val)}));g3=t(e.value,x2);c2.visible=0<=g3&&(0<x2||c2.visible);c2.children=r;c2.childrenTotal=x2;c2.isLeaf=c2.visible&&!x2;c2.val=g3;return c2}var A=g2.extend,B=g2.isArray,z=g2.isNumber,C=g2.isObject,x=g2.merge,t=g2.pick;return{getColor:function(g3,a){var q=a.index,m=a.mapOptionsToLevel,p=a.parentColor,k=a.parentColorIndex,e=a.series,r=a.colors,x2=a.siblings,y2=e.points,z2=e.chart.options.chart,u;if(g3){y2=y2[g3.i];g3=m[g3.level]||{};if(m=y2&&g3.colorByPoint){var n=y2.index%(r?r.length:z2.colorCount);var w=r&&r[n]}if(!e.chart.styledMode){r=y2&&y2.options.color;z2=g3&&g3.color;if(u=p)u=(u=g3&&g3.colorVariation)&&"brightness"===u.key&&q&&x2?c.parse(p).brighten(q/x2*u.to).get():p;u=t(r,z2,w,u,e.color)}var f=t(y2&&y2.options.colorIndex,g3&&g3.colorIndex,n,k,a.colorIndex)}return{color:u,colorIndex:f}},getLevelOptions:function(c2){var a={};if(C(c2)){var g3=z(c2.from)?c2.from:1;var m=c2.levels;var p={};var k=C(c2.defaults)?c2.defaults:{};B(m)&&(p=m.reduce((function(a2,c3){if(C(c3)&&z(c3.level)){var e=x({},c3);var m2=t(e.levelIsConstant,k.levelIsConstant);delete e.levelIsConstant;delete e.level;c3=c3.level+(m2?0:g3-1);C(a2[c3])?x(true,a2[c3],e):a2[c3]=e}return a2}),{}));m=z(c2.to)?c2.to:1;for(c2=0;c2<=m;c2++)a[c2]=x({},k,C(p[c2])?p[c2]:{})}return a},setTreeValues:y,updateRootId:function(c2){if(C(c2)){var a=C(c2.options)?c2.options:{};a=t(c2.rootNode,a.rootId,"");C(c2.userOptions)&&(c2.userOptions.rootId=a);c2.rootNode=a}return a}}}));I(g,"Core/Axis/TreeGrid/TreeGridAxis.js",[g["Core/Axis/BrokenAxis.js"],g["Core/Axis/GridAxis.js"],g["Gantt/Tree.js"],g["Core/Axis/TreeGrid/TreeGridTick.js"],g["Series/TreeUtilities.js"],g["Core/Utilities.js"]],(function(c,g2,y,A,B,z){function C(a2,b){var d=a2.collapseEnd||0;a2=a2.collapseStart||0;d>=b&&(a2-=.5);return{from:a2,to:d,showPoints:false}}function x(a2,b,c2){var d=[],e2=[],f2={},h="boolean"===typeof b?b:false,g3={},l2=-1;a2=y.getTree(a2,{after:function(b2){b2=g3[b2.pos];var a3=0,d2=0;b2.children.forEach((function(b3){d2+=(b3.descendants||0)+1;a3=Math.max((b3.height||0)+1,a3)}));b2.descendants=d2;b2.height=a3;b2.collapsed&&e2.push(b2)},before:function(b2){var a3=G(b2.data,true)?b2.data:{},c3=H(a3.name)?a3.name:"",e3=f2[b2.parent];e3=G(e3,true)?g3[e3.pos]:null;var m2=function(b3){return b3.name===c3},n2;h&&G(e3,true)&&(n2=k(e3.children,m2))?(m2=n2.pos,n2.nodes.push(b2)):m2=l2++;g3[m2]||(g3[m2]=n2={depth:e3?e3.depth+1:0,name:c3,id:a3.id,nodes:[b2],children:[],pos:m2},-1!==m2&&d.push(c3),G(e3,true)&&e3.children.push(n2));H(b2.id)&&(f2[b2.id]=b2);n2&&true===a3.collapsed&&(n2.collapsed=true);b2.pos=m2}});g3=function(b2,a3){var d2=function(b3,c3,e3){var f3=c3+(-1===c3?0:a3-1),h2=(f3-c3)/2,k2=c3+h2;b3.nodes.forEach((function(b4){var a4=b4.data;G(a4,true)&&(a4.y=c3+(a4.seriesIndex||0),delete a4.seriesIndex);b4.pos=k2}));e3[k2]=b3;b3.pos=k2;b3.tickmarkOffset=h2+.5;b3.collapseStart=f3+.5;b3.children.forEach((function(b4){d2(b4,f3+1,e3);f3=(b4.collapseEnd||0)-.5}));b3.collapseEnd=f3+.5;return e3};return d2(b2["-1"],-1,{})}(g3,c2);return{categories:d,mapOfIdToNode:f2,mapOfPosToGridNode:g3,collapsedNodes:e2,tree:a2}}function t(a2){a2.target.axes.filter((function(b){return"treegrid"===b.options.type})).forEach((function(b){var d=b.options||{},c2=d.labels,e2=d.uniqueNames;d=d.max;var f2=0;if(!b.treeGrid.mapOfPosToGridNode||b.series.some((function(b2){return!b2.hasRendered||b2.isDirtyData||b2.isDirty}))){var k2=b.series.reduce((function(b2,a3){a3.visible&&((a3.options.data||[]).forEach((function(d2){a3.options.keys&&a3.options.keys.length&&(d2=a3.pointClass.prototype.optionsToObject.call({series:a3},d2),a3.pointClass.setGanttPointAliases(d2));G(d2,true)&&(d2.seriesIndex=f2,b2.push(d2))})),true===e2&&f2++);return b2}),[]);if(d&&k2.length<d)for(var g3=k2.length;g3<=d;g3++)k2.push({name:g3+"​"});d=x(k2,e2||false,true===e2?f2:1);b.categories=d.categories;b.treeGrid.mapOfPosToGridNode=d.mapOfPosToGridNode;b.hasNames=true;b.treeGrid.tree=d.tree;b.series.forEach((function(b2){var a3=(b2.options.data||[]).map((function(a4){D(a4)&&b2.options.keys&&b2.options.keys.length&&k2.forEach((function(b3){0<=a4.indexOf(b3.x)&&0<=a4.indexOf(b3.x2)&&(a4=b3)}));return G(a4,true)?K(a4):a4}));b2.visible&&b2.setData(a3,false)}));b.treeGrid.mapOptionsToLevel=m({defaults:c2,from:1,levels:c2&&c2.levels,to:b.treeGrid.tree&&b.treeGrid.tree.height});"beforeRender"===a2.type&&(b.treeGrid.collapsedNodes=d.collapsedNodes)}}))}function r(a2,b){var d=this.treeGrid.mapOptionsToLevel||{},c2=this.ticks,e2=c2[b],k2;if("treegrid"===this.options.type&&this.treeGrid.mapOfPosToGridNode){var g3=this.treeGrid.mapOfPosToGridNode[b];(d=d[g3.depth])&&(k2={labels:d});!e2&&f?c2[b]=new f(this,b,void 0,void 0,{category:g3.name,tickmarkOffset:g3.tickmarkOffset,options:k2}):(e2.parameters.category=g3.name,e2.options=k2,e2.addLabel())}else a2.apply(this,Array.prototype.slice.call(arguments,1))}function a(a2,b,c2){var d=this,e2="treegrid"===c2.type;d.treeGrid||(d.treeGrid=new l(d));e2&&(p(b,"beforeRender",t),p(b,"beforeRedraw",t),p(b,"addSeries",(function(b2){b2.options.data&&(b2=x(b2.options.data,c2.uniqueNames||false,1),d.treeGrid.collapsedNodes=(d.treeGrid.collapsedNodes||[]).concat(b2.collapsedNodes))})),p(d,"foundExtremes",(function(){d.treeGrid.collapsedNodes&&d.treeGrid.collapsedNodes.forEach((function(b2){var a3=d.treeGrid.collapse(b2);d.brokenAxis&&(d.brokenAxis.setBreaks(a3,false),d.treeGrid.collapsedNodes&&(d.treeGrid.collapsedNodes=d.treeGrid.collapsedNodes.filter((function(a4){return b2.collapseStart!==a4.collapseStart||b2.collapseEnd!==a4.collapseEnd}))))}))})),p(d,"afterBreaks",(function(){"yAxis"===d.coll&&!d.staticScale&&d.chart.options.chart.height&&(d.isDirty=true)})),c2=K({grid:{enabled:true},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,width:10,padding:5}},uniqueNames:false},c2,{reversed:true,grid:{columns:void 0}}));a2.apply(d,[b,c2]);e2&&(d.hasNames=true,d.options.showLastLabel=true)}function q(a2){var b=this.options;"treegrid"===b.type?(this.min=u(this.userMin,b.min,this.dataMin),this.max=u(this.userMax,b.max,this.dataMax),e(this,"foundExtremes"),this.setAxisTranslation(),this.tickmarkOffset=.5,this.tickInterval=1,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[]):a2.apply(this,Array.prototype.slice.call(arguments,1))}var m=B.getLevelOptions,p=z.addEvent,k=z.find,e=z.fireEvent,D=z.isArray,G=z.isObject,H=z.isString,K=z.merge,u=z.pick,n=z.wrap,w=[],f,l=function(){function d(b){this.axis=b}d.compose=function(b,d2,e2,k2){if(-1===w.indexOf(b)){w.push(b);-1===b.keepProps.indexOf("treeGrid")&&b.keepProps.push("treeGrid");var h=b.prototype;n(h,"generateTick",r);n(h,"init",a);n(h,"setTickInterval",q);h.utils={getNode:y.getNode}}-1===w.indexOf(k2)&&(w.push(k2),f||(f=k2));g2.compose(b,d2,k2);c.compose(b,e2);A.compose(k2);return b};d.prototype.setCollapsedStatus=function(b){var a2=this.axis,d2=a2.chart;a2.series.forEach((function(a3){var c2=a3.options.data;if(b.id&&c2){var e2=d2.get(b.id);a3=c2[a3.data.indexOf(e2)];e2&&a3&&(e2.collapsed=b.collapsed,a3.collapsed=b.collapsed)}}))};d.prototype.collapse=function(b){var a2=this.axis,d2=a2.options.breaks||[],c2=C(b,a2.max);d2.push(c2);b.collapsed=true;a2.treeGrid.setCollapsedStatus(b);return d2};d.prototype.expand=function(b){var a2=this.axis,d2=a2.options.breaks||[],c2=C(b,a2.max);b.collapsed=false;a2.treeGrid.setCollapsedStatus(b);return d2.reduce((function(b2,a3){a3.to===c2.to&&a3.from===c2.from||b2.push(a3);return b2}),[])};d.prototype.getTickPositions=function(){var b=this.axis,a2=Math.floor(b.min/b.tickInterval)*b.tickInterval,d2=Math.ceil(b.max/b.tickInterval)*b.tickInterval;return Object.keys(b.treeGrid.mapOfPosToGridNode||{}).reduce((function(c2,e2){e2=+e2;!(e2>=a2&&e2<=d2)||b.brokenAxis&&b.brokenAxis.isInAnyBreak(e2)||c2.push(e2);return c2}),[])};d.prototype.isCollapsed=function(b){var a2=this.axis,d2=a2.options.breaks||[],c2=C(b,a2.max);return d2.some((function(b2){return b2.from===c2.from&&b2.to===c2.to}))};d.prototype.toggleCollapse=function(b){return this.isCollapsed(b)?this.expand(b):this.collapse(b)};return d}();return l}));I(g,"Extensions/CurrentDateIndication.js",[g["Core/Axis/Axis.js"],g["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=y.addEvent,B=y.merge;y=y.wrap;var z={color:"#ccd6eb",width:2,label:{format:"%a, %b %d %Y, %H:%M",formatter:function(c2,g3){return this.axis.chart.time.dateFormat(g3||"",c2)},rotation:0,style:{fontSize:"10px"}}};A(c,"afterSetOptions",(function(){var c2=this.options,g3=c2.currentDateIndicator;g3&&(g3="object"===typeof g3?B(z,g3):B(z),g3.value=Date.now(),g3.className="highcharts-current-date-indicator",c2.plotLines||(c2.plotLines=[]),c2.plotLines.push(g3))}));A(g2,"render",(function(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})}));y(g2.prototype,"getLabelText",(function(c2,g3){var t=this.options;return t&&t.className&&-1!==t.className.indexOf("highcharts-current-date-indicator")&&t.label&&"function"===typeof t.label.formatter?(t.value=Date.now(),t.label.formatter.call(this,t.value,t.label.format)):c2.call(this,g3)}))}));I(g,"Extensions/StaticScale.js",[g["Core/Axis/Axis.js"],g["Core/Chart/Chart.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=y.addEvent,B=y.defined,z=y.isNumber,C=y.pick;A(c,"afterSetOptions",(function(){var c2=this.chart.options.chart;!this.horiz&&z(this.options.staticScale)&&(!c2.height||c2.scrollablePlotArea&&c2.scrollablePlotArea.minHeight)&&(this.staticScale=this.options.staticScale)}));g2.prototype.adjustHeight=function(){"adjustHeight"!==this.redrawTrigger&&((this.axes||[]).forEach((function(c2){var g3=c2.chart,r=!!g3.initiatedScale&&g3.options.animation,a=c2.options.staticScale;if(c2.staticScale&&B(c2.min)){var q=C(c2.brokenAxis&&c2.brokenAxis.unitLength,c2.max+c2.tickInterval-c2.min)*a;q=Math.max(q,a);a=q-g3.plotHeight;!g3.scrollablePixelsY&&1<=Math.abs(a)&&(g3.plotHeight=q,g3.redrawTrigger="adjustHeight",g3.setSize(void 0,g3.chartHeight+a,r));c2.series.forEach((function(a2){(a2=a2.sharedClipKey&&g3.sharedClips[a2.sharedClipKey])&&a2.attr(g3.inverted?{width:g3.plotHeight}:{height:g3.plotHeight})}))}})),this.initiatedScale=true);this.redrawTrigger=null};A(g2,"render",g2.prototype.adjustHeight)}));I(g,"Extensions/ArrowSymbols.js",[g["Core/Renderer/SVG/SVGRenderer.js"]],(function(c){function g2(c2,g3,y2,x){return[["M",c2,g3+x/2],["L",c2+y2,g3],["L",c2,g3+x/2],["L",c2+y2,g3+x]]}function y(c2,g3,y2,x){return[["M",c2+y2,g3],["L",c2,g3+x/2],["L",c2+y2,g3+x],["Z"]]}function A(c2,g3,A2,x){return y(c2,g3,A2/2,x)}c=c.prototype.symbols;c.arrow=g2;c["arrow-filled"]=y;c["arrow-filled-half"]=A;c["arrow-half"]=function(c2,y2,A2,x){return g2(c2,y2,A2/2,x)};c["triangle-left"]=y;c["triangle-left-half"]=A;return c}));I(g,"Gantt/Connection.js",[g["Core/Defaults.js"],g["Core/Globals.js"],g["Core/Series/Point.js"],g["Core/Utilities.js"]],(function(c,g2,y,A){function B(a2){var c2=a2.shapeArgs;return c2?{xMin:c2.x||0,xMax:(c2.x||0)+(c2.width||0),yMin:c2.y||0,yMax:(c2.y||0)+(c2.height||0)}:(c2=a2.graphic&&a2.graphic.getBBox())?{xMin:a2.plotX-c2.width/2,xMax:a2.plotX+c2.width/2,yMin:a2.plotY-c2.height/2,yMax:a2.plotY+c2.height/2}:null}var z=c.defaultOptions,C=A.defined,x=A.error;c=A.extend;var t=A.merge,r=A.objectEach;var a=g2.deg2rad,q=Math.max,m=Math.min;c(z,{connectors:{type:"straight",lineWidth:1,marker:{enabled:false,align:"center",verticalAlign:"middle",inside:false,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});A=function(){function c2(a2,c3,g3){this.toPoint=this.pathfinder=this.graphics=this.fromPoint=this.chart=void 0;this.init(a2,c3,g3)}c2.prototype.init=function(a2,c3,g3){this.fromPoint=a2;this.toPoint=c3;this.options=g3;this.chart=a2.series.chart;this.pathfinder=this.chart.pathfinder};c2.prototype.renderPath=function(a2,c3,g3){var e=this.chart,k=e.styledMode,m2=e.pathfinder,p=!e.options.chart.forExport&&false!==g3,n=this.graphics&&this.graphics.path;m2.group||(m2.group=e.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(e.seriesGroup));m2.group.translate(e.plotLeft,e.plotTop);n&&n.renderer||(n=e.renderer.path().add(m2.group),k||n.attr({opacity:0}));n.attr(c3);a2={d:a2};k||(a2.opacity=1);n[p?"animate":"attr"](a2,g3);this.graphics=this.graphics||{};this.graphics.path=n};c2.prototype.addMarker=function(c3,e,g3){var k=this.fromPoint.series.chart,m2=k.pathfinder;k=k.renderer;var p="start"===c3?this.fromPoint:this.toPoint,q2=p.getPathfinderAnchorPoint(e);if(e.enabled&&((g3="start"===c3?g3[1]:g3[g3.length-2])&&"M"===g3[0]||"L"===g3[0])){g3={x:g3[1],y:g3[2]};g3=p.getRadiansToVector(g3,q2);q2=p.getMarkerVector(g3,e.radius,q2);g3=-g3/a;if(e.width&&e.height){var n=e.width;var r2=e.height}else n=r2=2*e.radius;this.graphics=this.graphics||{};q2={x:q2.x-n/2,y:q2.y-r2/2,width:n,height:r2,rotation:g3,rotationOriginX:q2.x,rotationOriginY:q2.y};this.graphics[c3]?this.graphics[c3].animate(q2):(this.graphics[c3]=k.symbol(e.symbol).addClass("highcharts-point-connecting-path-"+c3+"-marker").attr(q2).add(m2.group),k.styledMode||this.graphics[c3].attr({fill:e.color||this.fromPoint.color,stroke:e.lineColor,"stroke-width":e.lineWidth,opacity:0}).animate({opacity:1},p.series.options.animation))}};c2.prototype.getPath=function(a2){var c3=this.pathfinder,g3=this.chart,k=c3.algorithms[a2.type],m2=c3.chartObstacles;if("function"!==typeof k)return x('"'+a2.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]};k.requiresObstacles&&!m2&&(m2=c3.chartObstacles=c3.getChartObstacles(a2),g3.options.connectors.algorithmMargin=a2.algorithmMargin,c3.chartObstacleMetrics=c3.getObstacleMetrics(m2));return k(this.fromPoint.getPathfinderAnchorPoint(a2.startMarker),this.toPoint.getPathfinderAnchorPoint(a2.endMarker),t({chartObstacles:m2,lineObstacles:c3.lineObstacles||[],obstacleMetrics:c3.chartObstacleMetrics,hardBounds:{xMin:0,xMax:g3.plotWidth,yMin:0,yMax:g3.plotHeight},obstacleOptions:{margin:a2.algorithmMargin},startDirectionX:c3.getAlgorithmStartDirection(a2.startMarker)},a2))};c2.prototype.render=function(){var a2=this.fromPoint,c3=a2.series,g3=c3.chart,p=g3.pathfinder,r2=t(g3.options.connectors,c3.options.connectors,a2.options.connectors,this.options),x2={};g3.styledMode||(x2.stroke=r2.lineColor||a2.color,x2["stroke-width"]=r2.lineWidth,r2.dashStyle&&(x2.dashstyle=r2.dashStyle));x2["class"]="highcharts-point-connecting-path highcharts-color-"+a2.colorIndex;r2=t(x2,r2);C(r2.marker.radius)||(r2.marker.radius=m(q(Math.ceil((r2.algorithmMargin||8)/2)-1,1),5));a2=this.getPath(r2);g3=a2.path;a2.obstacles&&(p.lineObstacles=p.lineObstacles||[],p.lineObstacles=p.lineObstacles.concat(a2.obstacles));this.renderPath(g3,x2,c3.options.animation);this.addMarker("start",t(r2.marker,r2.startMarker),g3);this.addMarker("end",t(r2.marker,r2.endMarker),g3)};c2.prototype.destroy=function(){this.graphics&&(r(this.graphics,(function(a2){a2.destroy()})),delete this.graphics)};return c2}();g2.Connection=A;c(y.prototype,{getPathfinderAnchorPoint:function(a2){var c2=B(this);switch(a2.align){case"right":var e="xMax";break;case"left":e="xMin"}switch(a2.verticalAlign){case"top":var g3="yMin";break;case"bottom":g3="yMax"}return{x:e?c2[e]:(c2.xMin+c2.xMax)/2,y:g3?c2[g3]:(c2.yMin+c2.yMax)/2}},getRadiansToVector:function(a2,c2){var e;C(c2)||(e=B(this))&&(c2={x:(e.xMin+e.xMax)/2,y:(e.yMin+e.yMax)/2});return Math.atan2(c2.y-a2.y,a2.x-c2.x)},getMarkerVector:function(a2,c2,e){var g3=2*Math.PI,k=B(this),m2=k.xMax-k.xMin,p=k.yMax-k.yMin,q2=Math.atan2(p,m2),n=false;m2/=2;var r2=p/2,f=k.xMin+m2;k=k.yMin+r2;for(var l=f,d=k,b=1,h=1;a2<-Math.PI;)a2+=g3;for(;a2>Math.PI;)a2-=g3;g3=Math.tan(a2);a2>-q2&&a2<=q2?(h=-1,n=true):a2>q2&&a2<=Math.PI-q2?h=-1:a2>Math.PI-q2||a2<=-(Math.PI-q2)?(b=-1,n=true):b=-1;n?(l+=b*m2,d+=h*m2*g3):(l+=p/(2*g3)*b,d+=h*r2);e.x!==f&&(l=e.x);e.y!==k&&(d=e.y);return{x:l+c2*Math.cos(a2),y:d-c2*Math.sin(a2)}}});return A}));I(g,"Gantt/PathfinderAlgorithms.js",[g["Core/Utilities.js"]],(function(c){function g2(a,c2,g3){g3=g3||0;var m=a.length-1;c2-=1e-7;for(var k,e;g3<=m;)if(k=m+g3>>1,e=c2-a[k].xMin,0<e)g3=k+1;else if(0>e)m=k-1;else return k;return 0<g3?g3-1:0}function y(a,c2){for(var m=g2(a,c2.x+1)+1;m--;){var p;if(p=a[m].xMax>=c2.x)p=a[m],p=c2.x<=p.xMax&&c2.x>=p.xMin&&c2.y<=p.yMax&&c2.y>=p.yMin;if(p)return m}return-1}function A(a){var c2=[];if(a.length){c2.push(["M",a[0].start.x,a[0].start.y]);for(var g3=0;g3<a.length;++g3)c2.push(["L",a[g3].end.x,a[g3].end.y])}return c2}function B(a,c2){a.yMin=x(a.yMin,c2.yMin);a.yMax=C(a.yMax,c2.yMax);a.xMin=x(a.xMin,c2.xMin);a.xMax=C(a.xMax,c2.xMax)}var z=c.pick,C=Math.min,x=Math.max,t=Math.abs;c=function(a,c2,g3){function m(a2,c3,e2,g4,d){a2={x:a2.x,y:a2.y};a2[c3]=e2[g4||c3]+(d||0);return a2}function k(a2,c3,e2){var f=t(c3[e2]-a2[e2+"Min"])>t(c3[e2]-a2[e2+"Max"]);return m(c3,e2,a2,e2+(f?"Max":"Min"),f?1:-1)}var e=[],q=z(g3.startDirectionX,t(c2.x-a.x)>t(c2.y-a.y))?"x":"y",r2=g3.chartObstacles,x2=y(r2,a);g3=y(r2,c2);if(-1<g3){var B2=r2[g3];g3=k(B2,c2,q);B2={start:g3,end:c2};var u=g3}else u=c2;-1<x2&&(r2=r2[x2],g3=k(r2,a,q),e.push({start:a,end:g3}),g3[q]>=a[q]===g3[q]>=u[q]&&(q="y"===q?"x":"y",c2=a[q]<c2[q],e.push({start:g3,end:m(g3,q,r2,q+(c2?"Max":"Min"),c2?1:-1)}),q="y"===q?"x":"y"));a=e.length?e[e.length-1].end:a;g3=m(a,q,u);e.push({start:a,end:g3});q=m(g3,"y"===q?"x":"y",u);e.push({start:g3,end:q});e.push(B2);return{path:A(e),obstacles:e}};c.requiresObstacles=true;var r=function(a,c2,m){function p(a2,d2,c3){var e2,f2=a2.x<d2.x?1:-1;if(a2.x<d2.x){var h2=a2;var k2=d2}else h2=d2,k2=a2;if(a2.y<d2.y){var l2=a2;var m2=d2}else l2=d2,m2=a2;for(e2=0>f2?C(g2(b,k2.x),b.length-1):0;b[e2]&&(0<f2&&b[e2].xMin<=k2.x||0>f2&&b[e2].xMax>=h2.x);){if(b[e2].xMin<=k2.x&&b[e2].xMax>=h2.x&&b[e2].yMin<=m2.y&&b[e2].yMax>=l2.y)return c3?{y:a2.y,x:a2.x<d2.x?b[e2].xMin-1:b[e2].xMax+1,obstacle:b[e2]}:{x:a2.x,y:a2.y<d2.y?b[e2].yMin-1:b[e2].yMax+1,obstacle:b[e2]};e2+=f2}return d2}function k(a2,b2,d2,c3,e2){var f2=e2.soft,h2=e2.hard,g3=c3?"x":"y",k2={x:b2.x,y:b2.y},l2={x:b2.x,y:b2.y};e2=a2[g3+"Max"]>=f2[g3+"Max"];f2=a2[g3+"Min"]<=f2[g3+"Min"];var m2=a2[g3+"Max"]>=h2[g3+"Max"];h2=a2[g3+"Min"]<=h2[g3+"Min"];var n2=t(a2[g3+"Min"]-b2[g3]),q2=t(a2[g3+"Max"]-b2[g3]);d2=10>t(n2-q2)?b2[g3]<d2[g3]:q2<n2;l2[g3]=a2[g3+"Min"];k2[g3]=a2[g3+"Max"];a2=p(b2,l2,c3)[g3]!==l2[g3];b2=p(b2,k2,c3)[g3]!==k2[g3];d2=a2?b2?d2:true:b2?false:d2;d2=f2?e2?d2:true:e2?false:d2;return h2?m2?d2:true:m2?false:d2}function e(a2,c3,h2){if(a2.x===c3.x&&a2.y===c3.y)return[];var g3=h2?"x":"y",n2=m.obstacleOptions.margin;var q2={soft:{xMin:w,xMax:f,yMin:l,yMax:d},hard:m.hardBounds};var r3=y(b,a2);if(-1<r3){r3=b[r3];q2=k(r3,a2,c3,h2,q2);B(r3,m.hardBounds);var t2=h2?{y:a2.y,x:r3[q2?"xMax":"xMin"]+(q2?1:-1)}:{x:a2.x,y:r3[q2?"yMax":"yMin"]+(q2?1:-1)};var v2=y(b,t2);-1<v2&&(v2=b[v2],B(v2,m.hardBounds),t2[g3]=q2?x(r3[g3+"Max"]-n2+1,(v2[g3+"Min"]+r3[g3+"Max"])/2):C(r3[g3+"Min"]+n2-1,(v2[g3+"Max"]+r3[g3+"Min"])/2),a2.x===t2.x&&a2.y===t2.y?(u&&(t2[g3]=q2?x(r3[g3+"Max"],v2[g3+"Max"])+1:C(r3[g3+"Min"],v2[g3+"Min"])-1),u=!u):u=false);a2=[{start:a2,end:t2}]}else g3=p(a2,{x:h2?c3.x:a2.x,y:h2?a2.y:c3.y},h2),a2=[{start:a2,end:{x:g3.x,y:g3.y}}],g3[h2?"x":"y"]!==c3[h2?"x":"y"]&&(q2=k(g3.obstacle,g3,c3,!h2,q2),B(g3.obstacle,m.hardBounds),q2={x:h2?g3.x:g3.obstacle[q2?"xMax":"xMin"]+(q2?1:-1),y:h2?g3.obstacle[q2?"yMax":"yMin"]+(q2?1:-1):g3.y},h2=!h2,a2=a2.concat(e({x:g3.x,y:g3.y},q2,h2)));return a2=a2.concat(e(a2[a2.length-1].end,c3,!h2))}function q(a2,b2,d2){var c3=C(a2.xMax-b2.x,b2.x-a2.xMin)<C(a2.yMax-b2.y,b2.y-a2.yMin);d2=k(a2,b2,d2,c3,{soft:m.hardBounds,hard:m.hardBounds});return c3?{y:b2.y,x:a2[d2?"xMax":"xMin"]+(d2?1:-1)}:{x:b2.x,y:a2[d2?"yMax":"yMin"]+(d2?1:-1)}}var r2=z(m.startDirectionX,t(c2.x-a.x)>t(c2.y-a.y)),H=r2?"x":"y",I2=[],u=false,n=m.obstacleMetrics,w=C(a.x,c2.x)-n.maxWidth-10,f=x(a.x,c2.x)+n.maxWidth+10,l=C(a.y,c2.y)-n.maxHeight-10,d=x(a.y,c2.y)+n.maxHeight+10,b=m.chartObstacles;var h=g2(b,w);n=g2(b,f);b=b.slice(h,n+1);if(-1<(n=y(b,c2))){var v=q(b[n],c2,a);I2.push({end:c2,start:v});c2=v}for(;-1<(n=y(b,c2));)h=0>c2[H]-a[H],v={x:c2.x,y:c2.y},v[H]=b[n][h?H+"Max":H+"Min"]+(h?1:-1),I2.push({end:c2,start:v}),c2=v;a=e(a,c2,r2);a=a.concat(I2.reverse());return{path:A(a),obstacles:a}};r.requiresObstacles=true;return{fastAvoid:r,straight:function(a,c2){return{path:[["M",a.x,a.y],["L",c2.x,c2.y]],obstacles:[{start:a,end:c2}]}},simpleConnect:c}}));I(g,"Gantt/Pathfinder.js",[g["Gantt/Connection.js"],g["Core/Chart/Chart.js"],g["Core/Defaults.js"],g["Core/Globals.js"],g["Core/Series/Point.js"],g["Core/Utilities.js"],g["Gantt/PathfinderAlgorithms.js"]],(function(c,g2,y,A,B,z,C){function x(a2){var c2=a2.shapeArgs;return c2?{xMin:c2.x||0,xMax:(c2.x||0)+(c2.width||0),yMin:c2.y||0,yMax:(c2.y||0)+(c2.height||0)}:(c2=a2.graphic&&a2.graphic.getBBox())?{xMin:a2.plotX-c2.width/2,xMax:a2.plotX+c2.width/2,yMin:a2.plotY-c2.height/2,yMax:a2.plotY+c2.height/2}:null}function t(a2){for(var c2=a2.length,g3=0,f,k2,d=[],b=function(a3,d2,c3){c3=e(c3,10);var f2=a3.yMax+c3>d2.yMin-c3&&a3.yMin-c3<d2.yMax+c3,g4=a3.xMax+c3>d2.xMin-c3&&a3.xMin-c3<d2.xMax+c3,h=f2?a3.xMin>d2.xMax?a3.xMin-d2.xMax:d2.xMin-a3.xMax:Infinity,k3=g4?a3.yMin>d2.yMax?a3.yMin-d2.yMax:d2.yMin-a3.yMax:Infinity;return g4&&f2?c3?b(a3,d2,Math.floor(c3/2)):Infinity:H(h,k3)};g3<c2;++g3)for(f=g3+1;f<c2;++f)k2=b(a2[g3],a2[f]),80>k2&&d.push(k2);d.push(80);return G(Math.floor(d.sort((function(a3,b2){return a3-b2}))[Math.floor(d.length/10)]/2-1),1)}function r(a2){if(a2.options.pathfinder||a2.series.reduce((function(a3,c2){c2.options&&k(true,c2.options.connectors=c2.options.connectors||{},c2.options.pathfinder);return a3||c2.options&&c2.options.pathfinder}),false))k(true,a2.options.connectors=a2.options.connectors||{},a2.options.pathfinder),m('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')}y=y.defaultOptions;var a=z.addEvent,q=z.defined,m=z.error,p=z.extend,k=z.merge,e=z.pick,D=z.splat;var G=Math.max,H=Math.min;p(y,{connectors:{type:"straight",lineWidth:1,marker:{enabled:false,align:"center",verticalAlign:"middle",inside:false,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}});var I2=function(){function g3(a2){this.lineObstacles=this.group=this.connections=this.chartObstacleMetrics=this.chartObstacles=this.chart=void 0;this.init(a2)}g3.prototype.init=function(c2){this.chart=c2;this.connections=[];a(c2,"redraw",(function(){this.pathfinder.update()}))};g3.prototype.update=function(a2){var e2=this.chart,f=this,g4=f.connections;f.connections=[];e2.series.forEach((function(a3){a3.visible&&!a3.options.isInternal&&a3.points.forEach((function(a4){var b2=a4.options;b2&&b2.dependency&&(b2.connect=b2.dependency);var d2;b2=a4.options&&a4.options.connect&&D(a4.options.connect);a4.visible&&false!==a4.isInside&&b2&&b2.forEach((function(b3){d2=e2.get("string"===typeof b3?b3:b3.to);d2 instanceof B&&d2.series.visible&&d2.visible&&false!==d2.isInside&&f.connections.push(new c(a4,d2,"string"===typeof b3?{}:b3))}))}))}));for(var d=0,b=void 0,h=void 0,k2=g4.length,m2=f.connections.length;d<k2;++d){h=false;var n=g4[d];for(b=0;b<m2;++b){var p2=f.connections[b];if((n.options&&n.options.type)===(p2.options&&p2.options.type)&&n.fromPoint===p2.fromPoint&&n.toPoint===p2.toPoint){p2.graphics=n.graphics;h=true;break}}h||n.destroy()}delete this.chartObstacles;delete this.lineObstacles;f.renderConnections(a2)};g3.prototype.renderConnections=function(c2){c2?this.chart.series.forEach((function(c3){var e2=function(){var a2=c3.chart.pathfinder;(a2&&a2.connections||[]).forEach((function(a3){a3.fromPoint&&a3.fromPoint.series===c3&&a3.render()}));c3.pathfinderRemoveRenderEvent&&(c3.pathfinderRemoveRenderEvent(),delete c3.pathfinderRemoveRenderEvent)};false===c3.options.animation?e2():c3.pathfinderRemoveRenderEvent=a(c3,"afterAnimate",e2)})):this.connections.forEach((function(a2){a2.render()}))};g3.prototype.getChartObstacles=function(a2){for(var c2=[],f=this.chart.series,g4=e(a2.algorithmMargin,0),d,b=0,h=f.length;b<h;++b)if(f[b].visible&&!f[b].options.isInternal){var k2=0,m2=f[b].points.length,n=void 0;for(n=void 0;k2<m2;++k2)n=f[b].points[k2],n.visible&&(n=x(n))&&c2.push({xMin:n.xMin-g4,xMax:n.xMax+g4,yMin:n.yMin-g4,yMax:n.yMax+g4})}c2=c2.sort((function(a3,b2){return a3.xMin-b2.xMin}));q(a2.algorithmMargin)||(d=a2.algorithmMargin=t(c2),c2.forEach((function(a3){a3.xMin-=d;a3.xMax+=d;a3.yMin-=d;a3.yMax+=d})));return c2};g3.prototype.getObstacleMetrics=function(a2){for(var c2=0,e2=0,g4,d,b=a2.length;b--;)g4=a2[b].xMax-a2[b].xMin,d=a2[b].yMax-a2[b].yMin,c2<g4&&(c2=g4),e2<d&&(e2=d);return{maxHeight:e2,maxWidth:c2}};g3.prototype.getAlgorithmStartDirection=function(a2){var c2="top"!==a2.verticalAlign&&"bottom"!==a2.verticalAlign;return"left"!==a2.align&&"right"!==a2.align?c2?void 0:false:c2?true:void 0};return g3}();I2.prototype.algorithms=C;A.Pathfinder=I2;p(B.prototype,{getPathfinderAnchorPoint:function(a2){var c2=x(this);switch(a2.align){case"right":var e2="xMax";break;case"left":e2="xMin"}switch(a2.verticalAlign){case"top":var f="yMin";break;case"bottom":f="yMax"}return{x:e2?c2[e2]:(c2.xMin+c2.xMax)/2,y:f?c2[f]:(c2.yMin+c2.yMax)/2}},getRadiansToVector:function(a2,c2){var e2;q(c2)||(e2=x(this))&&(c2={x:(e2.xMin+e2.xMax)/2,y:(e2.yMin+e2.yMax)/2});return Math.atan2(c2.y-a2.y,a2.x-c2.x)},getMarkerVector:function(a2,c2,e2){var f=2*Math.PI,g3=x(this),d=g3.xMax-g3.xMin,b=g3.yMax-g3.yMin,h=Math.atan2(b,d),k2=false;d/=2;var m2=b/2,n=g3.xMin+d;g3=g3.yMin+m2;for(var p2=n,q2=g3,r2=1,t2=1;a2<-Math.PI;)a2+=f;for(;a2>Math.PI;)a2-=f;f=Math.tan(a2);a2>-h&&a2<=h?(t2=-1,k2=true):a2>h&&a2<=Math.PI-h?t2=-1:a2>Math.PI-h||a2<=-(Math.PI-h)?(r2=-1,k2=true):r2=-1;k2?(p2+=r2*d,q2+=t2*d*f):(p2+=b/(2*f)*r2,q2+=t2*m2);e2.x!==n&&(p2=e2.x);e2.y!==g3&&(q2=e2.y);return{x:p2+c2*Math.cos(a2),y:q2-c2*Math.sin(a2)}}});g2.prototype.callbacks.push((function(a2){false!==a2.options.connectors.enabled&&(r(a2),this.pathfinder=new I2(this),this.pathfinder.update(true))}));return I2}));I(g,"Series/Gantt/GanttSeries.js",[g["Core/Axis/Axis.js"],g["Core/Chart/Chart.js"],g["Series/Gantt/GanttPoint.js"],g["Core/Series/SeriesRegistry.js"],g["Core/Axis/Tick.js"],g["Core/Utilities.js"],g["Core/Axis/TreeGrid/TreeGridAxis.js"]],(function(c,g2,y,A,B,z,C){var x=this&&this.__extends||function(){var a2=function(c2,e){a2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a3,c3){a3.__proto__=c3}||function(a3,c3){for(var e2 in c3)c3.hasOwnProperty(e2)&&(a3[e2]=c3[e2])};return a2(c2,e)};return function(c2,e){function g3(){this.constructor=c2}a2(c2,e);c2.prototype=null===e?Object.create(e):(g3.prototype=e.prototype,new g3)}}(),t=A.series,r=A.seriesTypes.xrange,a=z.extend,q=z.isNumber,m=z.merge;C.compose(c,g2,t,B);c=function(a2){function c2(){var c3=null!==a2&&a2.apply(this,arguments)||this;c3.data=void 0;c3.options=void 0;c3.points=void 0;return c3}x(c2,a2);c2.prototype.drawPoint=function(a3,c3){var e=this.options,g3=this.chart.renderer,k=a3.shapeArgs,m2=a3.plotY,n=a3.graphic,p=a3.selected&&"select",f=e.stacking&&!e.borderRadius;if(a3.options.milestone)if(q(m2)&&null!==a3.y&&false!==a3.visible){k=g3.symbols.diamond(k.x||0,k.y||0,k.width||0,k.height||0);if(n)n[c3]({d:k});else a3.graphic=g3.path(k).addClass(a3.getClassName(),true).add(a3.group||this.group);this.chart.styledMode||a3.graphic.attr(this.pointAttribs(a3,p)).shadow(e.shadow,null,f)}else n&&(a3.graphic=n.destroy());else r.prototype.drawPoint.call(this,a3,c3)};c2.prototype.translatePoint=function(a3){r.prototype.translatePoint.call(this,a3);if(a3.options.milestone){var c3=a3.shapeArgs;var e=c3.height||0;a3.shapeArgs={x:(c3.x||0)-e/2,y:c3.y,width:e,height:e}}};c2.defaultOptions=m(r.defaultOptions,{grouping:false,dataLabels:{enabled:true},tooltip:{headerFormat:'<span style="font-size: 10px">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){var a3=this.series,c3=a3.xAxis,g3=a3.tooltipOptions.dateTimeLabelFormats,k=c3.options.startOfWeek,m2=a3.tooltipOptions,p=m2.xDateFormat,n=this.options.milestone,r2="<b>"+(this.name||this.yCategory)+"</b>";if(m2.pointFormat)return this.tooltipFormatter(m2.pointFormat);!p&&q(this.start)&&(p=a3.chart.time.getDateFormat(c3.closestPointRange,this.start,k,g3||{}));c3=a3.chart.time.dateFormat(p,this.start);a3=a3.chart.time.dateFormat(p,this.end);r2+="<br/>";return n?r2+(c3+"<br/>"):r2+("Start: "+c3+"<br/>End: ")+(a3+"<br/>")}},connectors:{type:"simpleConnect",animation:{reversed:true},startMarker:{enabled:true,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:false,align:"right"}}});return c2}(r);a(c.prototype,{pointArrayMap:["start","end","y"],pointClass:y,setData:t.prototype.setData});A.registerSeriesType("gantt",c);return c}));I(g,"Core/Chart/GanttChart.js",[g["Core/Chart/Chart.js"],g["Core/Defaults.js"],g["Core/Utilities.js"]],(function(c,g2,y){var A=this&&this.__extends||function(){var c2=function(g3,a){c2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a2,c3){a2.__proto__=c3}||function(a2,c3){for(var g4 in c3)c3.hasOwnProperty(g4)&&(a2[g4]=c3[g4])};return c2(g3,a)};return function(g3,a){function q(){this.constructor=g3}c2(g3,a);g3.prototype=null===a?Object.create(a):(q.prototype=a.prototype,new q)}}(),B=g2.getOptions,z=y.isArray,C=y.merge,x=y.splat;c=function(c2){function g3(){return null!==c2&&c2.apply(this,arguments)||this}A(g3,c2);g3.prototype.init=function(a,g4){var m=B(),p=a.xAxis,k=a.yAxis,e;a.xAxis=a.yAxis=void 0;var q=C(true,{chart:{type:"gantt"},title:{text:null},legend:{enabled:false},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},a,{isGantt:true});a.xAxis=p;a.yAxis=k;q.xAxis=(z(a.xAxis)?a.xAxis:[a.xAxis||{},{}]).map((function(a2,c3){1===c3&&(e=0);return C(m.xAxis,{grid:{enabled:true},opposite:true,linkedTo:e},a2,{type:"datetime"})}));q.yAxis=x(a.yAxis||{}).map((function(a2){return C(m.yAxis,{grid:{enabled:true},staticScale:50,reversed:true,type:a2.categories?a2.type:"treegrid"},a2)}));c2.prototype.init.call(this,q,g4)};return g3}(c);(function(c2){c2.ganttChart=function(g3,a,q){return new c2(g3,a,q)}})(c||(c={}));return c}));I(g,"masters/modules/gantt.src.js",[g["Core/Globals.js"],g["Stock/Navigator/Navigator.js"],g["Stock/Scrollbar/Scrollbar.js"],g["Stock/RangeSelector/RangeSelector.js"],g["Series/XRange/XRangeSeries.js"],g["Core/Chart/GanttChart.js"]],(function(c,g2,y,A,B,z){c.GanttChart=z;c.ganttChart=z.ganttChart;c.Navigator=g2;c.RangeSelector=A;c.Scrollbar=y;g2.compose(c.Axis,c.Chart,c.Series);A.compose(c.Axis,c.Chart);y.compose(c.Axis);B.compose(c.Axis)}));I(g,"masters/highcharts-gantt.src.js",[g["masters/highcharts.src.js"]],(function(c){c.product="Highcharts Gantt";return c}));g["masters/highcharts-gantt.src.js"]._modules=g;return g["masters/highcharts-gantt.src.js"]}))})(highchartsGantt);var highchartsGanttExports=highchartsGantt.exports;const Highcharts=getDefaultExportFromCjs(highchartsGanttExports);const GanttChart=props=>{const{aria:aria={},className:className,customOptions:customOptions={},dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_gantt_chart"),globalProps(props),className);const[options,setOptions]=useState(customOptions);useEffect((()=>{setOptions(customOptions)}),[customOptions]);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();return jsx("div",{children:jsx(HighchartsReact,{constructorType:"ganttChart",containerProps:{className:classnames(globalProps(props),classes),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})})};const typeMap={home:"H#",project:"P#",appointment:"A#",default:"#"};const Hashtag=props=>{const{aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,newWindow:newWindow,rel:rel,target:target,text:text2,type:type="default",url:url}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_hashtag_kit"),globalProps(props),className);const getTargetAttribute=()=>{if(target&&url){return target}else if(newWindow){return"_blank"}else{return"_self"}};return jsx("span",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx("a",{href:url,rel:newWindow?"noreferrer":rel,target:getTargetAttribute(),children:jsx(Badge,{dark:dark,text:typeMap[type]+text2,variant:"primary"})})})};const HomeAddressStreet=props=>{const{address:address,addressCont:addressCont,aria:aria={},city:city,className:className,data:data={},dark:dark=false,emphasis:emphasis="street",htmlOptions:htmlOptions={},homeId:homeId,homeUrl:homeUrl,target:target,newWindow:newWindow,houseStyle:houseStyle,state:state,zipcode:zipcode,territory:territory}=props;const classes=(className2,dark2)=>classnames({pb_home_address_street:!dark2,pb_home_address_street_dark:dark2},globalProps(props),className2);const dataProps=buildDataProps(data);const ariaProps=buildAriaProps(aria);const htmlProps=buildHtmlProps(htmlOptions);const getTargetAttribute=()=>{if(target&&homeUrl){return target}else if(newWindow){return"_blank"}else{return"_self"}};return jsxs("div",{className:classes(className,dark),...ariaProps,...dataProps,...htmlProps,children:[emphasis=="street"&&jsxs("div",{children:[jsx(Title,{className:"pb_home_address_street_address",dark:dark,size:4,children:joinPresent([titleize(address),houseStyle]," · ")}),jsx(Title,{className:"pb_home_address_street_address",dark:dark,size:4,children:titleize(addressCont)}),jsx(Body$1,{color:"light",children:`${titleize(city)}, ${state} ${zipcode}`})]}),emphasis=="city"&&jsxs("div",{children:[jsx(Body$1,{color:"light",children:joinPresent([titleize(address),houseStyle]," · ")}),jsx(Body$1,{color:"light",children:titleize(addressCont)}),jsxs("div",{children:[jsx(Title,{className:"pb_home_address_street_address",dark:dark,size:4,tag:"span",children:`${titleize(city)}, ${state}`}),jsx(Body$1,{color:"light",tag:"span",children:` ${zipcode}`})]})]}),homeId&&jsx(Hashtag,{classname:"home-hashtag",dark:dark,marginRight:"xxs",newWindow:newWindow,target:getTargetAttribute(),text:homeId,type:"home",url:homeUrl||"#"}),jsx(Body$1,{color:"light",tag:"span",children:jsx("small",{children:territory})})]})};const IconStatValue=props=>{const{aria:aria={},className:className,data:data={},dark:dark=false,htmlOptions:htmlOptions={},icon:icon,id:id,orientation:orientation="horizontal",size:size="sm",text:text2="",unit:unit="",value:value=0,variant:variant="lighter"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_icon_stat_value_kit",orientation,size,variant),globalProps(props),className);const titleSize=function(size2){if(size2=="lg"){return jsx(Title,{dark:dark,size:1,tag:"span",text:`${value}`})}else if(size2=="md"){return jsx(Title,{dark:dark,size:2,tag:"span",text:`${value}`})}else{return jsx(Title,{dark:dark,size:3,tag:"span",text:`${value}`})}};return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[jsx(IconCircle,{dark:dark,icon:icon,size:size,variant:variant}),jsxs("div",{children:[jsxs(Flex,{align:"baseline",children:[titleSize(size)," ",jsx(Body$1,{dark:dark,text:unit})]}),jsx(Caption,{dark:dark,text:text2})]})]})};const IconValue=props=>{const{align:align="left",aria:aria={},className:className,dark:dark,data:data={},htmlOptions:htmlOptions={},icon:icon,id:id,text:text2}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_icon_value_kit",align),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs(Body$1,{color:"light",dark:dark,children:[jsx(Icon,{dark:dark,fixedWidth:true,icon:icon}),text2]})})};const Pill=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,text:text2,variant:variant="neutral",textTransform:textTransform="lowercase"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_pill_kit",variant,textTransform),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx(Title,{className:"pb_pill_text",size:4,tag:"div",text:text2})})};const LabelPill=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,label:label,pillValue:pillValue,variant:variant="neutral"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css=classnames("pb_label_pill_kit",globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:css,id:id,children:[jsx(Caption,{className:"pb_label_pill_label",text:label}),jsx(Pill,{className:"pb_label_pill_pill",text:pillValue,variant:variant})]})};const dateString=value=>{const month=DateTime$1.toMonthNum(value);const day=DateTime$1.toDay(value);return` · ${month}/${day}`};const LabelValue=props=>{const{active:active=false,aria:aria={},className:className,dark:dark=false,data:data={},date:date,description:description,htmlOptions:htmlOptions={},icon:icon,id:id,label:label,title:title,value:value,variant:variant="default"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const variantClass=variant==="details"?"details":"";const classes=classnames(buildCss("pb_label_value_kit",variantClass),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,title:title,children:[jsx(Caption,{dark:dark,text:label}),variant==="details"?jsxs(Flex,{inline:true,vertical:"center",children:[icon&&jsx(Body$1,{color:"light",dark:dark,marginRight:"xs",children:jsx(Icon,{dark:dark,fixedWidth:true,icon:icon})}),description&&jsx(Body$1,{color:"light",dark:dark,marginRight:"xs",text:description}),active===true?jsxs(Flex,{inline:true,vertical:"center",children:[title&&jsx(Title,{dark:dark,size:4,text:title,variant:"link"}),date&&jsx(Title,{dark:dark,marginLeft:"xs",size:4,text:" "+dateString(date),variant:"link"})]}):jsxs(Fragment,{children:[title&&jsx(Title,{dark:dark,size:4,text:title}),date&&jsx(Title,{dark:dark,marginLeft:"xs",size:4,text:" "+dateString(date)})]})]}):jsx(Body$1,{dark:dark,text:value})]})};const Side=props=>{const{children:children,className:className}=props;return jsx("div",{className:classnames("layout_sidebar",globalProps(props),className),children:children})};const Body=props=>{const{children:children,className:className}=props;return jsx("div",{className:classnames("layout_body",globalProps(props),className),children:children})};const Item=props=>{const{children:children,className:className,size:size="sm"}=props;const sizeClass=`size_${size}`;return jsx("div",{className:classnames("layout_item",sizeClass,globalProps(props),className),children:children})};const Header=props=>{const{children:children,className:className}=props;return jsx("div",{className:classnames("layout_header",globalProps(props),className),children:children})};const Footer=props=>{const{children:children,className:className}=props;return jsx("div",{className:classnames("layout_footer",globalProps(props),className),children:children})};const Layout=props=>{const{aria:aria={},children:children,className:className,collapse:collapse="md",dark:dark=false,data:data={},full:full=false,htmlOptions:htmlOptions={},position:position="left",responsive:responsive=false,size:size="md",layout:layout="sidebar",variant:variant="light",transparent:transparent=false}=props;const responsiveClass=responsive?"_responsive":"";const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const layoutCss=layout=="collection"?`pb_layout_kit_${layout}`:layout=="kanban"?`pb_layout_kit_${layout}${responsiveClass}`:buildCss(`pb_layout_kit_${layout}`,`size_${size}`,position,variant,{dark:dark,transparent:transparent,full:full});const layoutCollapseCss=layout=="collection"?"":layout=="kanban"?"":buildCss("layout",position,"collapse",collapse);const layoutChildren=React__default.Children.toArray(children);const subComponentTags=tagName=>layoutChildren.filter((c=>{var _a;return((_a=c.type)==null?void 0:_a.displayName)===tagName})).map(((child,i)=>React__default.cloneElement(child,{key:`${tagName.toLowerCase()}-${i}`})));const nonSideChildren=layoutChildren.filter((child=>{var _a;return((_a=child.type)==null?void 0:_a.displayName)!=="Side"}));const filteredProps={...props};filteredProps==null?true:delete filteredProps.position;return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classnames(layoutCss,layoutCollapseCss,className,globalProps(filteredProps)),children:[subComponentTags("Side"),nonSideChildren]})};Layout.Side=Side;Layout.Body=Body;Layout.Item=Item;Layout.Header=Header;Layout.Footer=Footer;const useKbdControls=api=>{const[cmdKey,setCmdKey]=useState("");useEffect((()=>{const handleKeyDown=({key:key})=>{const keyCmd=key.toLowerCase();setCmdKey(keyCmd);switch(keyCmd){case"escape":{api.onClose();break}case"arrowleft":{api.onArrowLeft();break}case"arrowright":{api.onArrowRight();break}}};window.addEventListener("keydown",handleKeyDown);return()=>{window.removeEventListener("keydown",handleKeyDown)}}),[api]);return cmdKey};const LightboxContext=React__default.createContext({});const LightboxHeader=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},onClickRight:onClickRight,spacing:spacing="between",text:text2,navRight:navRight,title:title,closeable:closeable=true,icon:icon="times"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const api=useContext(LightboxContext);const headerCSS=buildCss("lightbox_header");const headerSpacing=globalProps(props,{paddingY:"sm"});const handleOnLightboxClose=()=>api.onClose();const HeaderBody=()=>jsxs(React__default.Fragment,{children:[jsx(FlexItem,{flex:"1",marginLeft:"sm",children:jsx(CircleIconButton,{dark:true,icon:icon,onClick:handleOnLightboxClose,variant:"link"})}),title&&text2&&jsx(FlexItem,{flex:"5",children:jsx(Flex,{justify:"center",children:jsxs(Flex,{align:"center",orientation:"column",children:[typeof title==="string"?jsx(Title,{dark:true,paddingBottom:"xxs",size:4,text:title}):jsx(Flex,{className:"custom-header",justify:"center",children:title}),typeof text2==="string"?jsx(Caption,{dark:true,children:text2}):jsx(Flex,{className:"custom-header",justify:"center",children:text2})]})})}),jsx(FlexItem,{flex:"1",children:jsx(Flex,{justify:"end",children:jsx(Button,{className:"nav-right-btn",dark:true,htmlType:"button",onClick:onClickRight,text:navRight,variant:"link"})})})]});return jsx("div",{className:"carousel-header",children:jsxs(Flex,{...ariaProps,...dataProps,...htmlProps,className:classnames(headerCSS,headerSpacing,className),spacing:spacing,children:[closeable&&jsx(HeaderBody,{}),children]})})};var roundNumber=function(num,decimal){return Number(num.toFixed(decimal))};var checkIsNumber=function(num,defaultValue){return defaultValue};var handleCallback=function(context,event,callback){if(callback&&typeof callback==="function"){callback(context,event)}};var easeOut=function(t){return-Math.cos(t*Math.PI)/2+.5};var linear=function(t){return t};var easeInQuad=function(t){return t*t};var easeOutQuad=function(t){return t*(2-t)};var easeInOutQuad=function(t){return t<.5?2*t*t:-1+(4-2*t)*t};var easeInCubic=function(t){return t*t*t};var easeOutCubic=function(t){return--t*t*t+1};var easeInOutCubic=function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1};var easeInQuart=function(t){return t*t*t*t};var easeOutQuart=function(t){return 1- --t*t*t*t};var easeInOutQuart=function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t};var easeInQuint=function(t){return t*t*t*t*t};var easeOutQuint=function(t){return 1+--t*t*t*t*t};var easeInOutQuint=function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t};var animations={easeOut:easeOut,linear:linear,easeInQuad:easeInQuad,easeOutQuad:easeOutQuad,easeInOutQuad:easeInOutQuad,easeInCubic:easeInCubic,easeOutCubic:easeOutCubic,easeInOutCubic:easeInOutCubic,easeInQuart:easeInQuart,easeOutQuart:easeOutQuart,easeInOutQuart:easeInOutQuart,easeInQuint:easeInQuint,easeOutQuint:easeOutQuint,easeInOutQuint:easeInOutQuint};var handleCancelAnimationFrame=function(animation){if(typeof animation==="number"){cancelAnimationFrame(animation)}};var handleCancelAnimation=function(contextInstance){if(!contextInstance.mounted)return;handleCancelAnimationFrame(contextInstance.animation);contextInstance.animate=false;contextInstance.animation=null;contextInstance.velocity=null};function handleSetupAnimation(contextInstance,animationName,animationTime,callback){if(!contextInstance.mounted)return;var startTime=(new Date).getTime();var lastStep=1;handleCancelAnimation(contextInstance);contextInstance.animation=function(){if(!contextInstance.mounted){return handleCancelAnimationFrame(contextInstance.animation)}var frameTime=(new Date).getTime()-startTime;var animationProgress=frameTime/animationTime;var animationType=animations[animationName];var step=animationType(animationProgress);if(frameTime>=animationTime){callback(lastStep);contextInstance.animation=null}else if(contextInstance.animation){callback(step);requestAnimationFrame(contextInstance.animation)}};requestAnimationFrame(contextInstance.animation)}function isValidTargetState(targetState){var scale=targetState.scale,positionX=targetState.positionX,positionY=targetState.positionY;if(Number.isNaN(scale)||Number.isNaN(positionX)||Number.isNaN(positionY)){return false}return true}function animate(contextInstance,targetState,animationTime,animationName){var isValid=isValidTargetState(targetState);if(!contextInstance.mounted||!isValid)return;var setTransformState=contextInstance.setTransformState;var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;var scaleDiff=targetState.scale-scale;var positionXDiff=targetState.positionX-positionX;var positionYDiff=targetState.positionY-positionY;if(animationTime===0){setTransformState(targetState.scale,targetState.positionX,targetState.positionY)}else{handleSetupAnimation(contextInstance,animationName,animationTime,(function(step){var newScale=scale+scaleDiff*step;var newPositionX=positionX+positionXDiff*step;var newPositionY=positionY+positionYDiff*step;setTransformState(newScale,newPositionX,newPositionY)}))}}function getComponentsSizes(wrapperComponent,contentComponent,newScale){var wrapperWidth=wrapperComponent.offsetWidth;var wrapperHeight=wrapperComponent.offsetHeight;var contentWidth=contentComponent.offsetWidth;var contentHeight=contentComponent.offsetHeight;var newContentWidth=contentWidth*newScale;var newContentHeight=contentHeight*newScale;var newDiffWidth=wrapperWidth-newContentWidth;var newDiffHeight=wrapperHeight-newContentHeight;return{wrapperWidth:wrapperWidth,wrapperHeight:wrapperHeight,newContentWidth:newContentWidth,newDiffWidth:newDiffWidth,newContentHeight:newContentHeight,newDiffHeight:newDiffHeight}}var getBounds=function(wrapperWidth,newContentWidth,diffWidth,wrapperHeight,newContentHeight,diffHeight,centerZoomedOut){var scaleWidthFactor=wrapperWidth>newContentWidth?diffWidth*(centerZoomedOut?1:.5):0;var scaleHeightFactor=wrapperHeight>newContentHeight?diffHeight*(centerZoomedOut?1:.5):0;var minPositionX=wrapperWidth-newContentWidth-scaleWidthFactor;var maxPositionX=scaleWidthFactor;var minPositionY=wrapperHeight-newContentHeight-scaleHeightFactor;var maxPositionY=scaleHeightFactor;return{minPositionX:minPositionX,maxPositionX:maxPositionX,minPositionY:minPositionY,maxPositionY:maxPositionY}};var calculateBounds=function(contextInstance,newScale){var wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent;var centerZoomedOut=contextInstance.setup.centerZoomedOut;if(!wrapperComponent||!contentComponent){throw new Error("Components are not mounted")}var _a=getComponentsSizes(wrapperComponent,contentComponent,newScale),wrapperWidth=_a.wrapperWidth,wrapperHeight=_a.wrapperHeight,newContentWidth=_a.newContentWidth,newDiffWidth=_a.newDiffWidth,newContentHeight=_a.newContentHeight,newDiffHeight=_a.newDiffHeight;var bounds=getBounds(wrapperWidth,newContentWidth,newDiffWidth,wrapperHeight,newContentHeight,newDiffHeight,Boolean(centerZoomedOut));return bounds};var boundLimiter=function(value,minBound,maxBound,isActive){if(!isActive)return roundNumber(value,2);if(value<minBound)return roundNumber(minBound,2);if(value>maxBound)return roundNumber(maxBound,2);return roundNumber(value,2)};var handleCalculateBounds=function(contextInstance,newScale){var bounds=calculateBounds(contextInstance,newScale);contextInstance.bounds=bounds;return bounds};function getMouseBoundedPosition(positionX,positionY,bounds,limitToBounds,paddingValueX,paddingValueY,wrapperComponent){var minPositionX=bounds.minPositionX,minPositionY=bounds.minPositionY,maxPositionX=bounds.maxPositionX,maxPositionY=bounds.maxPositionY;var paddingX=0;var paddingY=0;if(wrapperComponent){paddingX=paddingValueX;paddingY=paddingValueY}var x=boundLimiter(positionX,minPositionX-paddingX,maxPositionX+paddingX,limitToBounds);var y=boundLimiter(positionY,minPositionY-paddingY,maxPositionY+paddingY,limitToBounds);return{x:x,y:y}}function handleCalculateZoomPositions(contextInstance,mouseX,mouseY,newScale,bounds,limitToBounds){var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;var scaleDifference=newScale-scale;if(typeof mouseX!=="number"||typeof mouseY!=="number"){console.error("Mouse X and Y position were not provided!");return{x:positionX,y:positionY}}var calculatedPositionX=positionX-mouseX*scaleDifference;var calculatedPositionY=positionY-mouseY*scaleDifference;var newPositions=getMouseBoundedPosition(calculatedPositionX,calculatedPositionY,bounds,limitToBounds,0,0,null);return newPositions}function checkZoomBounds(zoom,minScale,maxScale,zoomPadding,enablePadding){var scalePadding=enablePadding?zoomPadding:0;var minScaleWithPadding=minScale-scalePadding;if(!Number.isNaN(maxScale)&&zoom>=maxScale)return maxScale;if(!Number.isNaN(minScale)&&zoom<=minScaleWithPadding)return minScaleWithPadding;return zoom}var isPanningStartAllowed=function(contextInstance,event){var excluded=contextInstance.setup.panning.excluded;var isInitialized=contextInstance.isInitialized,wrapperComponent=contextInstance.wrapperComponent;var target=event.target;var isWrapperChild=wrapperComponent===null||wrapperComponent===void 0?void 0:wrapperComponent.contains(target);var isAllowed=isInitialized&&target&&isWrapperChild;if(!isAllowed)return false;var isExcluded=isExcludedNode(target,excluded);if(isExcluded)return false;return true};var isPanningAllowed=function(contextInstance){var isInitialized=contextInstance.isInitialized,isPanning=contextInstance.isPanning,setup=contextInstance.setup;var disabled=setup.panning.disabled;var isAllowed=isInitialized&&isPanning&&!disabled;if(!isAllowed)return false;return true};var handlePanningSetup=function(contextInstance,event){var _a=contextInstance.transformState,positionX=_a.positionX,positionY=_a.positionY;contextInstance.isPanning=true;var x=event.clientX;var y=event.clientY;contextInstance.startCoords={x:x-positionX,y:y-positionY}};var handleTouchPanningSetup=function(contextInstance,event){var touches=event.touches;var _a=contextInstance.transformState,positionX=_a.positionX,positionY=_a.positionY;contextInstance.isPanning=true;var oneFingerTouch=touches.length===1;if(oneFingerTouch){var x=touches[0].clientX;var y=touches[0].clientY;contextInstance.startCoords={x:x-positionX,y:y-positionY}}};function handlePanToBounds(contextInstance){var _a=contextInstance.transformState,positionX=_a.positionX,positionY=_a.positionY,scale=_a.scale;var _b=contextInstance.setup,disabled=_b.disabled,limitToBounds=_b.limitToBounds,centerZoomedOut=_b.centerZoomedOut;var wrapperComponent=contextInstance.wrapperComponent;if(disabled||!wrapperComponent||!contextInstance.bounds)return;var _c=contextInstance.bounds,maxPositionX=_c.maxPositionX,minPositionX=_c.minPositionX,maxPositionY=_c.maxPositionY,minPositionY=_c.minPositionY;var xChanged=positionX>maxPositionX||positionX<minPositionX;var yChanged=positionY>maxPositionY||positionY<minPositionY;var mousePosX=positionX>maxPositionX?wrapperComponent.offsetWidth:contextInstance.setup.minPositionX||0;var mousePosY=positionY>maxPositionY?wrapperComponent.offsetHeight:contextInstance.setup.minPositionY||0;var _d=handleCalculateZoomPositions(contextInstance,mousePosX,mousePosY,scale,contextInstance.bounds,limitToBounds||centerZoomedOut),x=_d.x,y=_d.y;return{scale:scale,positionX:xChanged?x:positionX,positionY:yChanged?y:positionY}}function handleNewPosition(contextInstance,newPositionX,newPositionY,paddingValueX,paddingValueY){var limitToBounds=contextInstance.setup.limitToBounds;var wrapperComponent=contextInstance.wrapperComponent,bounds=contextInstance.bounds;var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;if(wrapperComponent===null||bounds===null||newPositionX===positionX&&newPositionY===positionY){return}var _b=getMouseBoundedPosition(newPositionX,newPositionY,bounds,limitToBounds,paddingValueX,paddingValueY,wrapperComponent),x=_b.x,y=_b.y;contextInstance.setTransformState(scale,x,y)}var getPanningClientPosition=function(contextInstance,clientX,clientY){var startCoords=contextInstance.startCoords,transformState=contextInstance.transformState;var panning=contextInstance.setup.panning;var lockAxisX=panning.lockAxisX,lockAxisY=panning.lockAxisY;var positionX=transformState.positionX,positionY=transformState.positionY;if(!startCoords){return{x:positionX,y:positionY}}var mouseX=clientX-startCoords.x;var mouseY=clientY-startCoords.y;var newPositionX=lockAxisX?positionX:mouseX;var newPositionY=lockAxisY?positionY:mouseY;return{x:newPositionX,y:newPositionY}};var getPaddingValue=function(contextInstance,size){var setup=contextInstance.setup,transformState=contextInstance.transformState;var scale=transformState.scale;var minScale=setup.minScale,disablePadding=setup.disablePadding;if(size>0&&scale>=minScale&&!disablePadding){return size}return 0};var isVelocityCalculationAllowed=function(contextInstance){var mounted=contextInstance.mounted;var _a=contextInstance.setup,disabled=_a.disabled,velocityAnimation=_a.velocityAnimation;var scale=contextInstance.transformState.scale;var disabledVelocity=velocityAnimation.disabled;var isAllowed=!disabledVelocity||scale>1||!disabled||mounted;if(!isAllowed)return false;return true};var isVelocityAllowed=function(contextInstance){var mounted=contextInstance.mounted,velocity=contextInstance.velocity,bounds=contextInstance.bounds;var _a=contextInstance.setup,disabled=_a.disabled,velocityAnimation=_a.velocityAnimation;var scale=contextInstance.transformState.scale;var disabledVelocity=velocityAnimation.disabled;var isAllowed=!disabledVelocity||scale>1||!disabled||mounted;if(!isAllowed)return false;if(!velocity||!bounds)return false;return true};function getVelocityMoveTime(contextInstance,velocity){var velocityAnimation=contextInstance.setup.velocityAnimation;var equalToMove=velocityAnimation.equalToMove,animationTime=velocityAnimation.animationTime,sensitivity=velocityAnimation.sensitivity;if(equalToMove){return animationTime*velocity*sensitivity}return animationTime}function getVelocityPosition(newPosition,startPosition,currentPosition,isLocked,limitToBounds,minPosition,maxPosition,minTarget,maxTarget,step){if(limitToBounds){if(startPosition>maxPosition&&currentPosition>maxPosition){var calculatedPosition=maxPosition+(newPosition-maxPosition)*step;if(calculatedPosition>maxTarget)return maxTarget;if(calculatedPosition<maxPosition)return maxPosition;return calculatedPosition}if(startPosition<minPosition&&currentPosition<minPosition){var calculatedPosition=minPosition+(newPosition-minPosition)*step;if(calculatedPosition<minTarget)return minTarget;if(calculatedPosition>minPosition)return minPosition;return calculatedPosition}}if(isLocked)return startPosition;return boundLimiter(newPosition,minPosition,maxPosition,limitToBounds)}function getSizeMultiplier(wrapperComponent,equalToMove){var defaultMultiplier=1;if(equalToMove){return Math.min(defaultMultiplier,wrapperComponent.offsetWidth/window.innerWidth)}return defaultMultiplier}function handleCalculateVelocity(contextInstance,position){var isAllowed=isVelocityCalculationAllowed(contextInstance);if(!isAllowed){return}var lastMousePosition=contextInstance.lastMousePosition,velocityTime=contextInstance.velocityTime,setup=contextInstance.setup;var wrapperComponent=contextInstance.wrapperComponent;var equalToMove=setup.velocityAnimation.equalToMove;var now=Date.now();if(lastMousePosition&&velocityTime&&wrapperComponent){var sizeMultiplier=getSizeMultiplier(wrapperComponent,equalToMove);var distanceX=position.x-lastMousePosition.x;var distanceY=position.y-lastMousePosition.y;var velocityX=distanceX/sizeMultiplier;var velocityY=distanceY/sizeMultiplier;var interval=now-velocityTime;var speed=distanceX*distanceX+distanceY*distanceY;var velocity=Math.sqrt(speed)/interval;contextInstance.velocity={velocityX:velocityX,velocityY:velocityY,total:velocity}}contextInstance.lastMousePosition=position;contextInstance.velocityTime=now}function handleVelocityPanning(contextInstance){var velocity=contextInstance.velocity,bounds=contextInstance.bounds,setup=contextInstance.setup,wrapperComponent=contextInstance.wrapperComponent;var isAllowed=isVelocityAllowed(contextInstance);if(!isAllowed||!velocity||!bounds||!wrapperComponent){return}var velocityX=velocity.velocityX,velocityY=velocity.velocityY,total=velocity.total;var maxPositionX=bounds.maxPositionX,minPositionX=bounds.minPositionX,maxPositionY=bounds.maxPositionY,minPositionY=bounds.minPositionY;var limitToBounds=setup.limitToBounds,alignmentAnimation=setup.alignmentAnimation;var zoomAnimation=setup.zoomAnimation,panning=setup.panning;var lockAxisY=panning.lockAxisY,lockAxisX=panning.lockAxisX;var animationType=zoomAnimation.animationType;var sizeX=alignmentAnimation.sizeX,sizeY=alignmentAnimation.sizeY,velocityAlignmentTime=alignmentAnimation.velocityAlignmentTime;var alignAnimationTime=velocityAlignmentTime;var moveAnimationTime=getVelocityMoveTime(contextInstance,total);var finalAnimationTime=Math.max(moveAnimationTime,alignAnimationTime);var paddingValueX=getPaddingValue(contextInstance,sizeX);var paddingValueY=getPaddingValue(contextInstance,sizeY);var paddingX=paddingValueX*wrapperComponent.offsetWidth/100;var paddingY=paddingValueY*wrapperComponent.offsetHeight/100;var maxTargetX=maxPositionX+paddingX;var minTargetX=minPositionX-paddingX;var maxTargetY=maxPositionY+paddingY;var minTargetY=minPositionY-paddingY;var startState=contextInstance.transformState;var startTime=(new Date).getTime();handleSetupAnimation(contextInstance,animationType,finalAnimationTime,(function(step){var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;var frameTime=(new Date).getTime()-startTime;var animationProgress=frameTime/alignAnimationTime;var alignAnimation=animations[alignmentAnimation.animationType];var alignStep=1-alignAnimation(Math.min(1,animationProgress));var customStep=1-step;var newPositionX=positionX+velocityX*customStep;var newPositionY=positionY+velocityY*customStep;var currentPositionX=getVelocityPosition(newPositionX,startState.positionX,positionX,lockAxisX,limitToBounds,minPositionX,maxPositionX,minTargetX,maxTargetX,alignStep);var currentPositionY=getVelocityPosition(newPositionY,startState.positionY,positionY,lockAxisY,limitToBounds,minPositionY,maxPositionY,minTargetY,maxTargetY,alignStep);if(positionX!==newPositionX||positionY!==newPositionY){contextInstance.setTransformState(scale,currentPositionX,currentPositionY)}}))}function handlePanningStart(contextInstance,event){var scale=contextInstance.transformState.scale;handleCancelAnimation(contextInstance);handleCalculateBounds(contextInstance,scale);if(window.TouchEvent!==void 0&&event instanceof TouchEvent){handleTouchPanningSetup(contextInstance,event)}else{handlePanningSetup(contextInstance,event)}}function handleAlignToBounds(contextInstance){var scale=contextInstance.transformState.scale;var _a=contextInstance.setup,minScale=_a.minScale,alignmentAnimation=_a.alignmentAnimation;var disabled=alignmentAnimation.disabled,sizeX=alignmentAnimation.sizeX,sizeY=alignmentAnimation.sizeY,animationTime=alignmentAnimation.animationTime,animationType=alignmentAnimation.animationType;var isDisabled=disabled||scale<minScale||!sizeX&&!sizeY;if(isDisabled)return;var targetState=handlePanToBounds(contextInstance);if(targetState){animate(contextInstance,targetState,animationTime,animationType)}}function handlePanning(contextInstance,clientX,clientY){var startCoords=contextInstance.startCoords,setup=contextInstance.setup;var _a=setup.alignmentAnimation,sizeX=_a.sizeX,sizeY=_a.sizeY;if(!startCoords)return;var _b=getPanningClientPosition(contextInstance,clientX,clientY),x=_b.x,y=_b.y;var paddingValueX=getPaddingValue(contextInstance,sizeX);var paddingValueY=getPaddingValue(contextInstance,sizeY);handleCalculateVelocity(contextInstance,{x:x,y:y});handleNewPosition(contextInstance,x,y,paddingValueX,paddingValueY)}function handlePanningEnd(contextInstance){if(contextInstance.isPanning){var velocityDisabled=contextInstance.setup.panning.velocityDisabled;var velocity=contextInstance.velocity,wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent;contextInstance.isPanning=false;contextInstance.animate=false;contextInstance.animation=null;var wrapperRect=wrapperComponent===null||wrapperComponent===void 0?void 0:wrapperComponent.getBoundingClientRect();var contentRect=contentComponent===null||contentComponent===void 0?void 0:contentComponent.getBoundingClientRect();var wrapperWidth=(wrapperRect===null||wrapperRect===void 0?void 0:wrapperRect.width)||0;var wrapperHeight=(wrapperRect===null||wrapperRect===void 0?void 0:wrapperRect.height)||0;var contentWidth=(contentRect===null||contentRect===void 0?void 0:contentRect.width)||0;var contentHeight=(contentRect===null||contentRect===void 0?void 0:contentRect.height)||0;var isZoomed=wrapperWidth<contentWidth||wrapperHeight<contentHeight;var shouldAnimate=!velocityDisabled&&velocity&&(velocity===null||velocity===void 0?void 0:velocity.total)>.1&&isZoomed;if(shouldAnimate){handleVelocityPanning(contextInstance)}else{handleAlignToBounds(contextInstance)}}}function handleZoomToPoint(contextInstance,scale,mouseX,mouseY){var _a=contextInstance.setup,minScale=_a.minScale,maxScale=_a.maxScale,limitToBounds=_a.limitToBounds;var newScale=checkZoomBounds(roundNumber(scale,2),minScale,maxScale,0,false);var bounds=handleCalculateBounds(contextInstance,newScale);var _b=handleCalculateZoomPositions(contextInstance,mouseX,mouseY,newScale,bounds,limitToBounds),x=_b.x,y=_b.y;return{scale:newScale,positionX:x,positionY:y}}function handleAlignToScaleBounds(contextInstance,mousePositionX,mousePositionY){var scale=contextInstance.transformState.scale;var wrapperComponent=contextInstance.wrapperComponent;var _a=contextInstance.setup,minScale=_a.minScale,limitToBounds=_a.limitToBounds,zoomAnimation=_a.zoomAnimation;var disabled=zoomAnimation.disabled,animationTime=zoomAnimation.animationTime,animationType=zoomAnimation.animationType;var isDisabled=disabled||scale>=minScale;if(scale>=1||limitToBounds){handleAlignToBounds(contextInstance)}if(isDisabled||!wrapperComponent||!contextInstance.mounted)return;var mouseX=mousePositionX||wrapperComponent.offsetWidth/2;var mouseY=mousePositionY||wrapperComponent.offsetHeight/2;var targetState=handleZoomToPoint(contextInstance,minScale,mouseX,mouseY);if(targetState){animate(contextInstance,targetState,animationTime,animationType)}}var __assign=function(){__assign=Object.assign||function __assign2(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}return t};return __assign.apply(this,arguments)};function __spreadArray(to,from,pack){for(var i=0,l=from.length,ar;i<l;i++){if(ar||!(i in from)){if(!ar)ar=Array.prototype.slice.call(from,0,i);ar[i]=from[i]}}return to.concat(ar||Array.prototype.slice.call(from))}var initialState={previousScale:1,scale:1,positionX:0,positionY:0};var initialSetup={disabled:false,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:true,centerZoomedOut:false,centerOnInit:false,disablePadding:false,wheel:{step:.2,disabled:false,wheelDisabled:false,touchPadDisabled:false,activationKeys:[],excluded:[]},panning:{disabled:false,velocityDisabled:false,lockAxisX:false,lockAxisY:false,activationKeys:[],excluded:[]},pinch:{step:5,disabled:false,excluded:[]},doubleClick:{disabled:false,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:false,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:false,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:false,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:true}};var createState=function(props){var _a,_b,_c,_d;return{previousScale:(_a=props.initialScale)!==null&&_a!==void 0?_a:initialState.scale,scale:(_b=props.initialScale)!==null&&_b!==void 0?_b:initialState.scale,positionX:(_c=props.initialPositionX)!==null&&_c!==void 0?_c:initialState.positionX,positionY:(_d=props.initialPositionY)!==null&&_d!==void 0?_d:initialState.positionY}};var createSetup=function(props){var newSetup=__assign({},initialSetup);Object.keys(props).forEach((function(key){var validValue=typeof props[key]!=="undefined";var validParameter=typeof initialSetup[key]!=="undefined";if(validParameter&&validValue){var dataType=Object.prototype.toString.call(initialSetup[key]);var isObject2=dataType==="[object Object]";var isArray=dataType==="[object Array]";if(isObject2){newSetup[key]=__assign(__assign({},initialSetup[key]),props[key])}else if(isArray){newSetup[key]=__spreadArray(__spreadArray([],initialSetup[key],true),props[key])}else{newSetup[key]=props[key]}}}));return newSetup};var handleCalculateButtonZoom=function(contextInstance,delta,step){var scale=contextInstance.transformState.scale;var wrapperComponent=contextInstance.wrapperComponent,setup=contextInstance.setup;var maxScale=setup.maxScale,minScale=setup.minScale,zoomAnimation=setup.zoomAnimation;var size=zoomAnimation.size;if(!wrapperComponent){throw new Error("Wrapper is not mounted")}var targetScale=scale*Math.exp(delta*step);var newScale=checkZoomBounds(roundNumber(targetScale,3),minScale,maxScale,size,false);return newScale};function handleZoomToViewCenter(contextInstance,delta,step,animationTime,animationType){var wrapperComponent=contextInstance.wrapperComponent;var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;if(!wrapperComponent)return console.error("No WrapperComponent found");var wrapperWidth=wrapperComponent.offsetWidth;var wrapperHeight=wrapperComponent.offsetHeight;var mouseX=(wrapperWidth/2-positionX)/scale;var mouseY=(wrapperHeight/2-positionY)/scale;var newScale=handleCalculateButtonZoom(contextInstance,delta,step);var targetState=handleZoomToPoint(contextInstance,newScale,mouseX,mouseY);if(!targetState){return console.error("Error during zoom event. New transformation state was not calculated.")}animate(contextInstance,targetState,animationTime,animationType)}function resetTransformations(contextInstance,animationTime,animationType,onResetTransformation){var setup=contextInstance.setup,wrapperComponent=contextInstance.wrapperComponent;var limitToBounds=setup.limitToBounds;var initialTransformation=createState(contextInstance.props);var _a=contextInstance.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;if(!wrapperComponent)return;var newBounds=calculateBounds(contextInstance,initialTransformation.scale);var boundedPositions=getMouseBoundedPosition(initialTransformation.positionX,initialTransformation.positionY,newBounds,limitToBounds,0,0,wrapperComponent);var newState={scale:initialTransformation.scale,positionX:boundedPositions.x,positionY:boundedPositions.y};if(scale===initialTransformation.scale&&positionX===initialTransformation.positionX&&positionY===initialTransformation.positionY){return}onResetTransformation===null||onResetTransformation===void 0?void 0:onResetTransformation();animate(contextInstance,newState,animationTime,animationType)}function getOffset(element,wrapper,content,state){var offset2=element.getBoundingClientRect();var wrapperOffset=wrapper.getBoundingClientRect();var contentOffset=content.getBoundingClientRect();var xOff=wrapperOffset.x*state.scale;var yOff=wrapperOffset.y*state.scale;return{x:(offset2.x-contentOffset.x+xOff)/state.scale,y:(offset2.y-contentOffset.y+yOff)/state.scale}}function calculateZoomToNode(contextInstance,node,customZoom){var wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent,transformState=contextInstance.transformState;var _a=contextInstance.setup,limitToBounds=_a.limitToBounds,minScale=_a.minScale,maxScale=_a.maxScale;if(!wrapperComponent||!contentComponent)return transformState;var wrapperRect=wrapperComponent.getBoundingClientRect();var nodeRect=node.getBoundingClientRect();var nodeOffset=getOffset(node,wrapperComponent,contentComponent,transformState);var nodeLeft=nodeOffset.x;var nodeTop=nodeOffset.y;var nodeWidth=nodeRect.width/transformState.scale;var nodeHeight=nodeRect.height/transformState.scale;var scaleX=wrapperComponent.offsetWidth/nodeWidth;var scaleY=wrapperComponent.offsetHeight/nodeHeight;var newScale=checkZoomBounds(customZoom||Math.min(scaleX,scaleY),minScale,maxScale,0,false);var offsetX=(wrapperRect.width-nodeWidth*newScale)/2;var offsetY=(wrapperRect.height-nodeHeight*newScale)/2;var newPositionX=(wrapperRect.left-nodeLeft)*newScale+offsetX;var newPositionY=(wrapperRect.top-nodeTop)*newScale+offsetY;var bounds=calculateBounds(contextInstance,newScale);var _b=getMouseBoundedPosition(newPositionX,newPositionY,bounds,limitToBounds,0,0,wrapperComponent),x=_b.x,y=_b.y;return{positionX:x,positionY:y,scale:newScale}}var zoomIn=function(contextInstance){return function(step,animationTime,animationType){if(step===void 0){step=.5}if(animationTime===void 0){animationTime=300}if(animationType===void 0){animationType="easeOut"}handleZoomToViewCenter(contextInstance,1,step,animationTime,animationType)}};var zoomOut=function(contextInstance){return function(step,animationTime,animationType){if(step===void 0){step=.5}if(animationTime===void 0){animationTime=300}if(animationType===void 0){animationType="easeOut"}handleZoomToViewCenter(contextInstance,-1,step,animationTime,animationType)}};var setTransform=function(contextInstance){return function(newPositionX,newPositionY,newScale,animationTime,animationType){if(animationTime===void 0){animationTime=300}if(animationType===void 0){animationType="easeOut"}var _a=contextInstance.transformState,positionX=_a.positionX,positionY=_a.positionY,scale=_a.scale;var wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent;var disabled=contextInstance.setup.disabled;if(disabled||!wrapperComponent||!contentComponent)return;var targetState={positionX:Number.isNaN(newPositionX)?positionX:newPositionX,positionY:Number.isNaN(newPositionY)?positionY:newPositionY,scale:Number.isNaN(newScale)?scale:newScale};animate(contextInstance,targetState,animationTime,animationType)}};var resetTransform=function(contextInstance){return function(animationTime,animationType){if(animationTime===void 0){animationTime=200}if(animationType===void 0){animationType="easeOut"}resetTransformations(contextInstance,animationTime,animationType)}};var centerView=function(contextInstance){return function(scale,animationTime,animationType){if(animationTime===void 0){animationTime=200}if(animationType===void 0){animationType="easeOut"}var transformState=contextInstance.transformState,wrapperComponent=contextInstance.wrapperComponent,contentComponent=contextInstance.contentComponent;if(wrapperComponent&&contentComponent){var targetState=getCenterPosition(scale||transformState.scale,wrapperComponent,contentComponent);animate(contextInstance,targetState,animationTime,animationType)}}};var zoomToElement=function(contextInstance){return function(node,scale,animationTime,animationType){if(animationTime===void 0){animationTime=600}if(animationType===void 0){animationType="easeOut"}handleCancelAnimation(contextInstance);var wrapperComponent=contextInstance.wrapperComponent;var target=typeof node==="string"?document.getElementById(node):node;if(wrapperComponent&&target&&wrapperComponent.contains(target)){var targetState=calculateZoomToNode(contextInstance,target,scale);animate(contextInstance,targetState,animationTime,animationType)}}};var getContext=function(contextInstance){return{instance:contextInstance,state:contextInstance.transformState,zoomIn:zoomIn(contextInstance),zoomOut:zoomOut(contextInstance),setTransform:setTransform(contextInstance),resetTransform:resetTransform(contextInstance),centerView:centerView(contextInstance),zoomToElement:zoomToElement(contextInstance)}};var passiveSupported=false;function makePassiveEventOption(){try{var options={get passive(){passiveSupported=true;return false}};return options}catch(err){passiveSupported=false;return passiveSupported}}var isExcludedNode=function(node,excluded){var targetTagName=node.tagName.toUpperCase();var isExcludedTag=excluded.find((function(tag){return tag.toUpperCase()===targetTagName}));if(isExcludedTag)return true;var isExcludedClassName=excluded.find((function(className){return node.classList.contains(className)}));if(isExcludedClassName)return true;return false};var cancelTimeout=function(timeout){if(timeout){clearTimeout(timeout)}};var getTransformStyles=function(x,y,scale){return"translate(".concat(x,"px, ").concat(y,"px) scale(").concat(scale,")")};var getCenterPosition=function(scale,wrapperComponent,contentComponent){var contentWidth=contentComponent.offsetWidth*scale;var contentHeight=contentComponent.offsetHeight*scale;var centerPositionX=(wrapperComponent.offsetWidth-contentWidth)/2;var centerPositionY=(wrapperComponent.offsetHeight-contentHeight)/2;return{scale:scale,positionX:centerPositionX,positionY:centerPositionY}};function mergeRefs(refs){return function(value){refs.forEach((function(ref){if(typeof ref==="function"){ref(value)}else if(ref!=null){ref.current=value}}))}}var isWheelAllowed=function(contextInstance,event){var _a=contextInstance.setup.wheel,disabled=_a.disabled,wheelDisabled=_a.wheelDisabled,touchPadDisabled=_a.touchPadDisabled,excluded=_a.excluded;var isInitialized=contextInstance.isInitialized,isPanning=contextInstance.isPanning;var target=event.target;var isAllowed=isInitialized&&!isPanning&&!disabled&&target;if(!isAllowed)return false;if(wheelDisabled&&!event.ctrlKey)return false;if(touchPadDisabled&&event.ctrlKey)return false;var isExcluded=isExcludedNode(target,excluded);if(isExcluded)return false;return true};var getDeltaY=function(event){if(event){return event.deltaY<0?1:-1}return 0};function getDelta(event,customDelta){var deltaY=getDeltaY(event);var delta=checkIsNumber(customDelta,deltaY);return delta}function getMousePosition(event,contentComponent,scale){var contentRect=contentComponent.getBoundingClientRect();var mouseX=0;var mouseY=0;if("clientX"in event){mouseX=(event.clientX-contentRect.left)/scale;mouseY=(event.clientY-contentRect.top)/scale}else{var touch=event.touches[0];mouseX=(touch.clientX-contentRect.left)/scale;mouseY=(touch.clientY-contentRect.top)/scale}if(Number.isNaN(mouseX)||Number.isNaN(mouseY))console.error("No mouse or touch offset found");return{x:mouseX,y:mouseY}}var handleCalculateWheelZoom=function(contextInstance,delta,step,disable,getTarget){var scale=contextInstance.transformState.scale;var wrapperComponent=contextInstance.wrapperComponent,setup=contextInstance.setup;var maxScale=setup.maxScale,minScale=setup.minScale,zoomAnimation=setup.zoomAnimation,disablePadding=setup.disablePadding;var size=zoomAnimation.size,disabled=zoomAnimation.disabled;if(!wrapperComponent){throw new Error("Wrapper is not mounted")}var targetScale=scale+delta*(scale-scale*step)*step;var paddingEnabled=disable?false:!disabled;var newScale=checkZoomBounds(roundNumber(targetScale,3),minScale,maxScale,size,paddingEnabled&&!disablePadding);return newScale};var handleWheelZoomStop=function(contextInstance,event){var previousWheelEvent=contextInstance.previousWheelEvent;var scale=contextInstance.transformState.scale;var _a=contextInstance.setup,maxScale=_a.maxScale,minScale=_a.minScale;if(!previousWheelEvent)return false;if(scale<maxScale||scale>minScale)return true;if(Math.sign(previousWheelEvent.deltaY)!==Math.sign(event.deltaY))return true;if(previousWheelEvent.deltaY>0&&previousWheelEvent.deltaY<event.deltaY)return true;if(previousWheelEvent.deltaY<0&&previousWheelEvent.deltaY>event.deltaY)return true;if(Math.sign(previousWheelEvent.deltaY)!==Math.sign(event.deltaY))return true;return false};var isPinchStartAllowed=function(contextInstance,event){var _a=contextInstance.setup.pinch,disabled=_a.disabled,excluded=_a.excluded;var isInitialized=contextInstance.isInitialized;var target=event.target;var isAllowed=isInitialized&&!disabled&&target;if(!isAllowed)return false;var isExcluded=isExcludedNode(target,excluded);if(isExcluded)return false;return true};var isPinchAllowed=function(contextInstance){var disabled=contextInstance.setup.pinch.disabled;var isInitialized=contextInstance.isInitialized,pinchStartDistance=contextInstance.pinchStartDistance;var isAllowed=isInitialized&&!disabled&&pinchStartDistance;if(!isAllowed)return false;return true};var calculateTouchMidPoint=function(event,scale,contentComponent){var contentRect=contentComponent.getBoundingClientRect();var touches=event.touches;var firstPointX=roundNumber(touches[0].clientX-contentRect.left,5);var firstPointY=roundNumber(touches[0].clientY-contentRect.top,5);var secondPointX=roundNumber(touches[1].clientX-contentRect.left,5);var secondPointY=roundNumber(touches[1].clientY-contentRect.top,5);return{x:(firstPointX+secondPointX)/2/scale,y:(firstPointY+secondPointY)/2/scale}};var getTouchDistance=function(event){return Math.sqrt(Math.pow(event.touches[0].pageX-event.touches[1].pageX,2)+Math.pow(event.touches[0].pageY-event.touches[1].pageY,2))};var calculatePinchZoom=function(contextInstance,currentDistance){var pinchStartScale=contextInstance.pinchStartScale,pinchStartDistance=contextInstance.pinchStartDistance,setup=contextInstance.setup;var maxScale=setup.maxScale,minScale=setup.minScale,zoomAnimation=setup.zoomAnimation,disablePadding=setup.disablePadding;var size=zoomAnimation.size,disabled=zoomAnimation.disabled;if(!pinchStartScale||pinchStartDistance===null||!currentDistance){throw new Error("Pinch touches distance was not provided")}if(currentDistance<0){return contextInstance.transformState.scale}var touchProportion=currentDistance/pinchStartDistance;var scaleDifference=touchProportion*pinchStartScale;return checkZoomBounds(roundNumber(scaleDifference,2),minScale,maxScale,size,!disabled&&!disablePadding)};var wheelStopEventTime=160;var wheelAnimationTime=100;var handleWheelStart=function(contextInstance,event){var _a=contextInstance.props,onWheelStart=_a.onWheelStart,onZoomStart=_a.onZoomStart;if(!contextInstance.wheelStopEventTimer){handleCancelAnimation(contextInstance);handleCallback(getContext(contextInstance),event,onWheelStart);handleCallback(getContext(contextInstance),event,onZoomStart)}};var handleWheelZoom=function(contextInstance,event){var _a=contextInstance.props,onWheel=_a.onWheel,onZoom=_a.onZoom;var contentComponent=contextInstance.contentComponent,setup=contextInstance.setup,transformState=contextInstance.transformState;var scale=transformState.scale;var limitToBounds=setup.limitToBounds,centerZoomedOut=setup.centerZoomedOut,zoomAnimation=setup.zoomAnimation,wheel=setup.wheel,disablePadding=setup.disablePadding;var size=zoomAnimation.size,disabled=zoomAnimation.disabled;var step=wheel.step;if(!contentComponent){throw new Error("Component not mounted")}event.preventDefault();event.stopPropagation();var delta=getDelta(event,null);var newScale=handleCalculateWheelZoom(contextInstance,delta,step,!event.ctrlKey);if(scale===newScale)return;var bounds=handleCalculateBounds(contextInstance,newScale);var mousePosition=getMousePosition(event,contentComponent,scale);var isPaddingDisabled=disabled||size===0||centerZoomedOut||disablePadding;var isLimitedToBounds=limitToBounds&&isPaddingDisabled;var _b=handleCalculateZoomPositions(contextInstance,mousePosition.x,mousePosition.y,newScale,bounds,isLimitedToBounds),x=_b.x,y=_b.y;contextInstance.previousWheelEvent=event;contextInstance.setTransformState(newScale,x,y);handleCallback(getContext(contextInstance),event,onWheel);handleCallback(getContext(contextInstance),event,onZoom)};var handleWheelStop=function(contextInstance,event){var _a=contextInstance.props,onWheelStop=_a.onWheelStop,onZoomStop=_a.onZoomStop;cancelTimeout(contextInstance.wheelAnimationTimer);contextInstance.wheelAnimationTimer=setTimeout((function(){if(!contextInstance.mounted)return;handleAlignToScaleBounds(contextInstance,event.x,event.y);contextInstance.wheelAnimationTimer=null}),wheelAnimationTime);var hasStoppedZooming=handleWheelZoomStop(contextInstance,event);if(hasStoppedZooming){cancelTimeout(contextInstance.wheelStopEventTimer);contextInstance.wheelStopEventTimer=setTimeout((function(){if(!contextInstance.mounted)return;contextInstance.wheelStopEventTimer=null;handleCallback(getContext(contextInstance),event,onWheelStop);handleCallback(getContext(contextInstance),event,onZoomStop)}),wheelStopEventTime)}};var handlePinchStart=function(contextInstance,event){var distance=getTouchDistance(event);contextInstance.pinchStartDistance=distance;contextInstance.lastDistance=distance;contextInstance.pinchStartScale=contextInstance.transformState.scale;contextInstance.isPanning=false;handleCancelAnimation(contextInstance)};var handlePinchZoom=function(contextInstance,event){var contentComponent=contextInstance.contentComponent,pinchStartDistance=contextInstance.pinchStartDistance;var scale=contextInstance.transformState.scale;var _a=contextInstance.setup,limitToBounds=_a.limitToBounds,centerZoomedOut=_a.centerZoomedOut,zoomAnimation=_a.zoomAnimation;var disabled=zoomAnimation.disabled,size=zoomAnimation.size;if(pinchStartDistance===null||!contentComponent)return;var midPoint=calculateTouchMidPoint(event,scale,contentComponent);if(!Number.isFinite(midPoint.x)||!Number.isFinite(midPoint.y))return;var currentDistance=getTouchDistance(event);var newScale=calculatePinchZoom(contextInstance,currentDistance);if(newScale===scale)return;var bounds=handleCalculateBounds(contextInstance,newScale);var isPaddingDisabled=disabled||size===0||centerZoomedOut;var isLimitedToBounds=limitToBounds&&isPaddingDisabled;var _b=handleCalculateZoomPositions(contextInstance,midPoint.x,midPoint.y,newScale,bounds,isLimitedToBounds),x=_b.x,y=_b.y;contextInstance.pinchMidpoint=midPoint;contextInstance.lastDistance=currentDistance;contextInstance.setTransformState(newScale,x,y)};var handlePinchStop=function(contextInstance){var pinchMidpoint=contextInstance.pinchMidpoint;contextInstance.velocity=null;contextInstance.lastDistance=null;contextInstance.pinchMidpoint=null;contextInstance.pinchStartScale=null;contextInstance.pinchStartDistance=null;handleAlignToScaleBounds(contextInstance,pinchMidpoint===null||pinchMidpoint===void 0?void 0:pinchMidpoint.x,pinchMidpoint===null||pinchMidpoint===void 0?void 0:pinchMidpoint.y)};var handleDoubleClickStop=function(contextInstance,event){var onZoomStop=contextInstance.props.onZoomStop;var animationTime=contextInstance.setup.doubleClick.animationTime;cancelTimeout(contextInstance.doubleClickStopEventTimer);contextInstance.doubleClickStopEventTimer=setTimeout((function(){contextInstance.doubleClickStopEventTimer=null;handleCallback(getContext(contextInstance),event,onZoomStop)}),animationTime)};var handleDoubleClickResetMode=function(contextInstance,event){var _a=contextInstance.props,onZoomStart=_a.onZoomStart,onZoom=_a.onZoom;var _b=contextInstance.setup.doubleClick,animationTime=_b.animationTime,animationType=_b.animationType;handleCallback(getContext(contextInstance),event,onZoomStart);resetTransformations(contextInstance,animationTime,animationType,(function(){return handleCallback(getContext(contextInstance),event,onZoom)}));handleDoubleClickStop(contextInstance,event)};function handleDoubleClick(contextInstance,event){var setup=contextInstance.setup,doubleClickStopEventTimer=contextInstance.doubleClickStopEventTimer,transformState=contextInstance.transformState,contentComponent=contextInstance.contentComponent;var scale=transformState.scale;var _a=contextInstance.props,onZoomStart=_a.onZoomStart,onZoom=_a.onZoom;var _b=setup.doubleClick,disabled=_b.disabled,mode=_b.mode,step=_b.step,animationTime=_b.animationTime,animationType=_b.animationType;if(disabled)return;if(doubleClickStopEventTimer)return;if(mode==="reset"){return handleDoubleClickResetMode(contextInstance,event)}if(!contentComponent)return console.error("No ContentComponent found");var delta=mode==="zoomOut"?-1:1;var newScale=handleCalculateButtonZoom(contextInstance,delta,step);if(scale===newScale)return;handleCallback(getContext(contextInstance),event,onZoomStart);var mousePosition=getMousePosition(event,contentComponent,scale);var targetState=handleZoomToPoint(contextInstance,newScale,mousePosition.x,mousePosition.y);if(!targetState){return console.error("Error during zoom event. New transformation state was not calculated.")}handleCallback(getContext(contextInstance),event,onZoom);animate(contextInstance,targetState,animationTime,animationType);handleDoubleClickStop(contextInstance,event)}var isDoubleClickAllowed=function(contextInstance,event){var isInitialized=contextInstance.isInitialized,setup=contextInstance.setup,wrapperComponent=contextInstance.wrapperComponent;var _a=setup.doubleClick,disabled=_a.disabled,excluded=_a.excluded;var target=event.target;var isWrapperChild=wrapperComponent===null||wrapperComponent===void 0?void 0:wrapperComponent.contains(target);var isAllowed=isInitialized&&target&&isWrapperChild&&!disabled;if(!isAllowed)return false;var isExcluded=isExcludedNode(target,excluded);if(isExcluded)return false;return true};var ZoomPanPinch=function(){function ZoomPanPinch2(props){var _this=this;this.mounted=true;this.onChangeCallbacks=new Set;this.wrapperComponent=null;this.contentComponent=null;this.isInitialized=false;this.bounds=null;this.previousWheelEvent=null;this.wheelStopEventTimer=null;this.wheelAnimationTimer=null;this.isPanning=false;this.startCoords=null;this.lastTouch=null;this.distance=null;this.lastDistance=null;this.pinchStartDistance=null;this.pinchStartScale=null;this.pinchMidpoint=null;this.doubleClickStopEventTimer=null;this.velocity=null;this.velocityTime=null;this.lastMousePosition=null;this.animate=false;this.animation=null;this.maxBounds=null;this.pressedKeys={};this.mount=function(){_this.initializeWindowEvents()};this.unmount=function(){_this.cleanupWindowEvents()};this.update=function(newProps){handleCalculateBounds(_this,_this.transformState.scale);_this.setup=createSetup(newProps)};this.initializeWindowEvents=function(){var _a;var passive=makePassiveEventOption();var currentDocument=(_a=_this.wrapperComponent)===null||_a===void 0?void 0:_a.ownerDocument;var currentWindow=currentDocument===null||currentDocument===void 0?void 0:currentDocument.defaultView;currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("mousedown",_this.onPanningStart,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("mousemove",_this.onPanning,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("mouseup",_this.onPanningStop,passive);currentDocument===null||currentDocument===void 0?void 0:currentDocument.addEventListener("mouseleave",_this.clearPanning,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("keyup",_this.setKeyUnPressed,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.addEventListener("keydown",_this.setKeyPressed,passive)};this.cleanupWindowEvents=function(){var _a,_b;var passive=makePassiveEventOption();var currentDocument=(_a=_this.wrapperComponent)===null||_a===void 0?void 0:_a.ownerDocument;var currentWindow=currentDocument===null||currentDocument===void 0?void 0:currentDocument.defaultView;currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("mousedown",_this.onPanningStart,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("mousemove",_this.onPanning,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("mouseup",_this.onPanningStop,passive);currentDocument===null||currentDocument===void 0?void 0:currentDocument.removeEventListener("mouseleave",_this.clearPanning,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("keyup",_this.setKeyUnPressed,passive);currentWindow===null||currentWindow===void 0?void 0:currentWindow.removeEventListener("keydown",_this.setKeyPressed,passive);document.removeEventListener("mouseleave",_this.clearPanning,passive);handleCancelAnimation(_this);(_b=_this.observer)===null||_b===void 0?void 0:_b.disconnect()};this.handleInitializeWrapperEvents=function(wrapper){var passive=makePassiveEventOption();wrapper.addEventListener("wheel",_this.onWheelZoom,passive);wrapper.addEventListener("dblclick",_this.onDoubleClick,passive);wrapper.addEventListener("touchstart",_this.onTouchPanningStart,passive);wrapper.addEventListener("touchmove",_this.onTouchPanning,passive);wrapper.addEventListener("touchend",_this.onTouchPanningStop,passive)};this.handleInitialize=function(contentComponent){var centerOnInit=_this.setup.centerOnInit;_this.applyTransformation();if(centerOnInit){_this.setCenter();_this.observer=new ResizeObserver((function(){var _a;_this.setCenter();(_a=_this.observer)===null||_a===void 0?void 0:_a.disconnect()}));_this.observer.observe(contentComponent)}};this.onWheelZoom=function(event){var disabled=_this.setup.disabled;if(disabled)return;var isAllowed=isWheelAllowed(_this,event);if(!isAllowed)return;var keysPressed=_this.isPressingKeys(_this.setup.wheel.activationKeys);if(!keysPressed)return;handleWheelStart(_this,event);handleWheelZoom(_this,event);handleWheelStop(_this,event)};this.onPanningStart=function(event){var disabled=_this.setup.disabled;var onPanningStart=_this.props.onPanningStart;if(disabled)return;var isAllowed=isPanningStartAllowed(_this,event);if(!isAllowed)return;var keysPressed=_this.isPressingKeys(_this.setup.panning.activationKeys);if(!keysPressed)return;event.preventDefault();event.stopPropagation();handleCancelAnimation(_this);handlePanningStart(_this,event);handleCallback(getContext(_this),event,onPanningStart)};this.onPanning=function(event){var disabled=_this.setup.disabled;var onPanning=_this.props.onPanning;if(disabled)return;var isAllowed=isPanningAllowed(_this);if(!isAllowed)return;var keysPressed=_this.isPressingKeys(_this.setup.panning.activationKeys);if(!keysPressed)return;event.preventDefault();event.stopPropagation();handlePanning(_this,event.clientX,event.clientY);handleCallback(getContext(_this),event,onPanning)};this.onPanningStop=function(event){var onPanningStop=_this.props.onPanningStop;if(_this.isPanning){handlePanningEnd(_this);handleCallback(getContext(_this),event,onPanningStop)}};this.onPinchStart=function(event){var disabled=_this.setup.disabled;var _a=_this.props,onPinchingStart=_a.onPinchingStart,onZoomStart=_a.onZoomStart;if(disabled)return;var isAllowed=isPinchStartAllowed(_this,event);if(!isAllowed)return;handlePinchStart(_this,event);handleCancelAnimation(_this);handleCallback(getContext(_this),event,onPinchingStart);handleCallback(getContext(_this),event,onZoomStart)};this.onPinch=function(event){var disabled=_this.setup.disabled;var _a=_this.props,onPinching=_a.onPinching,onZoom=_a.onZoom;if(disabled)return;var isAllowed=isPinchAllowed(_this);if(!isAllowed)return;event.preventDefault();event.stopPropagation();handlePinchZoom(_this,event);handleCallback(getContext(_this),event,onPinching);handleCallback(getContext(_this),event,onZoom)};this.onPinchStop=function(event){var _a=_this.props,onPinchingStop=_a.onPinchingStop,onZoomStop=_a.onZoomStop;if(_this.pinchStartScale){handlePinchStop(_this);handleCallback(getContext(_this),event,onPinchingStop);handleCallback(getContext(_this),event,onZoomStop)}};this.onTouchPanningStart=function(event){var disabled=_this.setup.disabled;var onPanningStart=_this.props.onPanningStart;if(disabled)return;var isAllowed=isPanningStartAllowed(_this,event);if(!isAllowed)return;var isDoubleTap=_this.lastTouch&&+new Date-_this.lastTouch<200;if(isDoubleTap&&event.touches.length===1){_this.onDoubleClick(event)}else{_this.lastTouch=+new Date;handleCancelAnimation(_this);var touches=event.touches;var isPanningAction=touches.length===1;var isPinchAction=touches.length===2;if(isPanningAction){handleCancelAnimation(_this);handlePanningStart(_this,event);handleCallback(getContext(_this),event,onPanningStart)}if(isPinchAction){_this.onPinchStart(event)}}};this.onTouchPanning=function(event){var disabled=_this.setup.disabled;var onPanning=_this.props.onPanning;if(_this.isPanning&&event.touches.length===1){if(disabled)return;var isAllowed=isPanningAllowed(_this);if(!isAllowed)return;event.preventDefault();event.stopPropagation();var touch=event.touches[0];handlePanning(_this,touch.clientX,touch.clientY);handleCallback(getContext(_this),event,onPanning)}else if(event.touches.length>1){_this.onPinch(event)}};this.onTouchPanningStop=function(event){_this.onPanningStop(event);_this.onPinchStop(event)};this.onDoubleClick=function(event){var disabled=_this.setup.disabled;if(disabled)return;var isAllowed=isDoubleClickAllowed(_this,event);if(!isAllowed)return;handleDoubleClick(_this,event)};this.clearPanning=function(event){if(_this.isPanning){_this.onPanningStop(event)}};this.setKeyPressed=function(e){_this.pressedKeys[e.key]=true};this.setKeyUnPressed=function(e){_this.pressedKeys[e.key]=false};this.isPressingKeys=function(keys){if(!keys.length){return true}return Boolean(keys.find((function(key){return _this.pressedKeys[key]})))};this.setTransformState=function(scale,positionX,positionY){var onTransformed=_this.props.onTransformed;if(!Number.isNaN(scale)&&!Number.isNaN(positionX)&&!Number.isNaN(positionY)){if(scale!==_this.transformState.scale){_this.transformState.previousScale=_this.transformState.scale;_this.transformState.scale=scale}_this.transformState.positionX=positionX;_this.transformState.positionY=positionY;var ctx_1=getContext(_this);_this.onChangeCallbacks.forEach((function(callback){return callback(ctx_1)}));handleCallback(ctx_1,{scale:scale,positionX:positionX,positionY:positionY},onTransformed);_this.applyTransformation()}else{console.error("Detected NaN set state values")}};this.setCenter=function(){if(_this.wrapperComponent&&_this.contentComponent){var targetState=getCenterPosition(_this.transformState.scale,_this.wrapperComponent,_this.contentComponent);_this.setTransformState(targetState.scale,targetState.positionX,targetState.positionY)}};this.handleTransformStyles=function(x,y,scale){if(_this.props.customTransform){return _this.props.customTransform(x,y,scale)}return getTransformStyles(x,y,scale)};this.applyTransformation=function(){if(!_this.mounted||!_this.contentComponent)return;var _a=_this.transformState,scale=_a.scale,positionX=_a.positionX,positionY=_a.positionY;var transform=_this.handleTransformStyles(positionX,positionY,scale);_this.contentComponent.style.transform=transform};this.getContext=function(){return getContext(_this)};this.onChange=function(callback){if(!_this.onChangeCallbacks.has(callback)){_this.onChangeCallbacks.add(callback)}return function(){_this.onChangeCallbacks.delete(callback)}};this.init=function(wrapperComponent,contentComponent){_this.cleanupWindowEvents();_this.wrapperComponent=wrapperComponent;_this.contentComponent=contentComponent;handleCalculateBounds(_this,_this.transformState.scale);_this.handleInitializeWrapperEvents(wrapperComponent);_this.handleInitialize(contentComponent);_this.initializeWindowEvents();_this.isInitialized=true;handleCallback(getContext(_this),void 0,_this.props.onInit)};this.props=props;this.setup=createSetup(this.props);this.transformState=createState(this.props)}return ZoomPanPinch2}();var Context=React__default.createContext(null);var getContent=function(children,ctx){if(typeof children==="function"){return children(ctx)}return children};var TransformWrapper=React__default.forwardRef((function(props,ref){var _a=useState(0),forceUpdate=_a[1];var children=props.children;var instance=useRef(new ZoomPanPinch(props)).current;var content=getContent(props.children,getContext(instance));var handleOnChange=useCallback((function(){if(typeof children==="function"){forceUpdate((function(prev){return prev+1}))}}),[children]);useImperativeHandle(ref,(function(){return getContext(instance)}),[instance]);useEffect((function(){instance.update(props)}),[instance,props]);useEffect((function(){return instance.onChange(handleOnChange)}),[instance,props,handleOnChange]);return React__default.createElement(Context.Provider,{value:instance},content)}));function styleInject(css,ref){if(ref===void 0)ref={};var insertAt=ref.insertAt;if(typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}}var css_248z=".transform-component-module_wrapper__7HFJe {\n position: relative;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n overflow: hidden;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n margin: 0;\n padding: 0;\n}\n.transform-component-module_content__uCDPE {\n display: flex;\n flex-wrap: wrap;\n width: -moz-fit-content;\n width: fit-content;\n height: -moz-fit-content;\n height: fit-content;\n margin: 0;\n padding: 0;\n transform-origin: 0% 0%;\n}\n.transform-component-module_content__uCDPE img {\n pointer-events: none;\n}\n";var styles={wrapper:"transform-component-module_wrapper__7HFJe",content:"transform-component-module_content__uCDPE"};styleInject(css_248z);var TransformComponent=function(_a){var children=_a.children,_b=_a.wrapperClass,wrapperClass=_b===void 0?"":_b,_c=_a.contentClass,contentClass=_c===void 0?"":_c,wrapperStyle=_a.wrapperStyle,contentStyle=_a.contentStyle,_d=_a.wrapperProps,wrapperProps=_d===void 0?{}:_d,_e=_a.contentProps,contentProps=_e===void 0?{}:_e;var init=useContext(Context).init;var wrapperRef=useRef(null);var contentRef=useRef(null);useEffect((function(){var wrapper=wrapperRef.current;var content=contentRef.current;if(wrapper!==null&&content!==null&&init){init(wrapper,content)}}),[]);return React__default.createElement("div",__assign({},wrapperProps,{ref:wrapperRef,className:"react-transform-wrapper ".concat(styles.wrapper," ").concat(wrapperClass),style:wrapperStyle}),React__default.createElement("div",__assign({},contentProps,{ref:contentRef,className:"react-transform-component ".concat(styles.content," ").concat(contentClass),style:contentStyle}),children))};React__default.forwardRef((function(props,ref){var localRef=useRef(null);var instance=useContext(Context);useEffect((function(){return instance.onChange((function(ctx){if(localRef.current){var positionX=0;var positionY=0;localRef.current.style.transform=instance.handleTransformStyles(positionX,positionY,1/ctx.state.scale)}}))}),[instance]);return React__default.createElement("div",__assign({},props,{ref:mergeRefs([localRef,ref])}))}));function Slide({alt:alt,onClick:onClick=noop$4,onZoom:onZoom=noop$4,url:url,zooming:zooming=false}){const handlePinchingStop=({state:state})=>{const isZooming=state.scale>1;onZoom(isZooming)};return jsx(TransformWrapper,{doubleClick:{mode:"reset"},initialScale:1,onPinchingStop:handlePinchingStop,panning:{disabled:!zooming},children:jsx("button",{className:"Slide",onClick:onClick,onDoubleClick:()=>onZoom(false),tabIndex:-1,children:jsx(TransformComponent,{wrapperClass:"TransformComponent",children:jsx(Image,{alt:alt,url:url,zIndex:3})})})})}function Slides({urls:urls=[],current:current=0,onChange:onChange=noop$4,setIndex:setIndex}){const[zooming,setZooming]=useState(false);const[touchStart,setTouchStart]=useState(null);const[touchEnd,setTouchEnd]=useState(null);const minSwipeDistance=40;const onTouchStart=e=>{setTouchEnd(null);setTouchStart(e.targetTouches[0].clientX)};const onTouchMove=e=>setTouchEnd(e.targetTouches[0].clientX);const onTouchEnd=()=>{if(!touchStart||!touchEnd)return;const distance=touchStart-touchEnd;const isLeftSwipe=distance>minSwipeDistance;const isRightSwipe=distance<-minSwipeDistance;if(isLeftSwipe){setIndex(current<urls.length-1?current+1:urls.length-1)}else if(isRightSwipe){setIndex(current>0?current-1:0)}};const arrowLeft=()=>setIndex(current>0?current-1:0);const arrowRight=()=>setIndex(current<urls.length-1?current+1:urls.length-1);const handleZoom=isZooming=>setZooming(isZooming);return jsxs("div",{className:"Slides",onTouchEnd:onTouchEnd,onTouchMove:onTouchMove,onTouchStart:onTouchStart,children:[urls.length>1&&jsx(CircleIconButton,{className:"carousel-arrow-left",dark:true,icon:"chevron-left",onClick:arrowLeft,variant:"link"}),jsx(Slide,{onClick:()=>onChange(current),onZoom:handleZoom,url:urls[current],zooming:zooming}),urls.length>1&&jsx(CircleIconButton,{className:"carousel-arrow-right",dark:true,icon:"chevron-right",onClick:arrowRight,variant:"link"})]})}const useWindowSize=()=>{const[size,setSize]=useState({width:window.innerWidth,height:window.innerHeight});useEffect((()=>{const handleResize=()=>{setSize({width:window.innerWidth,height:window.innerHeight})};window.addEventListener("resize",handleResize);handleResize();return()=>window.removeEventListener("resize",handleResize)}),[]);return size};function Thumbnail({active:active=false,alt:alt,width:width,url:url,onClick:onClick,buttonRef:buttonRef}){const activeClasses=classnames("Thumbnail",{active:active});return jsx("button",{className:classnames(activeClasses),onClick:onClick,ref:buttonRef,style:{width:width},type:"button",children:jsx(Image,{alt:alt,size:"sm",url:url})})}function Thumbnails({current:current=0,onChange:onChange=noop$4,urls:urls=[]}){const viewportSize=useWindowSize();const thumbnailWidth=viewportSize.width/8;const shouldBeCentered=thumbnailWidth*urls.length<viewportSize.width*.9;const css=classnames("Thumbnails",{centered:shouldBeCentered});const otherProps={};const thumbnailsRef=React__default.createRef();useLayoutEffect((()=>{var _a,_b,_c;if(shouldBeCentered)return;const currentThumbnail=otherProps.buttonRef.current;const thumbWidth=currentThumbnail.clientWidth,scrollLeft=thumbWidth*current,firstThumb=thumbnailsRef.current.querySelector(".Thumbnail:first-child"),lastThumb=thumbnailsRef.current.querySelector(".Thumbnail:last-child");firstThumb.style.marginLeft=`${((_a=thumbnailsRef.current)==null?void 0:_a.clientWidth)/2-thumbWidth/2}px`;lastThumb.style.marginRight=`${((_b=thumbnailsRef.current)==null?void 0:_b.clientWidth)/2-thumbWidth/2}px`;(_c=thumbnailsRef.current)==null?void 0:_c.scrollTo(scrollLeft,0)}));return jsx("div",{className:css,ref:thumbnailsRef,children:urls.map(((url,i)=>{const active=i===current;if(active)otherProps.buttonRef=React__default.createRef();return jsx(Thumbnail,{active:active,alt:i.toString(),onClick:()=>onChange(i),url:url,...otherProps},i)}))})}function Carousel({currentIndex:currentIndex,photos:photos,onClick:onClick,onChange:onChange=()=>void 0,setIndex:setIndex}){useEffect((()=>{document.body.style.overflow="hidden";return()=>{document.body.style.overflow="initial"}}),[]);const handleChange=index=>{onChange(index)};return jsxs("div",{className:"Lightbox",children:[jsx(Slides,{current:currentIndex,onChange:handleChange,onClick:onClick,setIndex:setIndex,urls:photos.map((photo=>photo.url))}),photos.length>1?jsx(Thumbnails,{current:currentIndex,onChange:handleChange,urls:photos.map((photo=>photo.thumbnail))}):null]})}const Lightbox=props=>{const{aria:aria={},children:children,className:className,currentPhotoIndex:currentPhotoIndex,data:data={},description:description,htmlOptions:htmlOptions={},id:id="",initialPhoto:initialPhoto=0,photos:photos,onChange:onChange=()=>void 0,onClose:onClose,onClickRight:onClickRight,icon:icon="times",navRight:navRight,title:title}=props;const[activePhoto,setActivePhoto]=useState(initialPhoto);useEffect((()=>{onChange(activePhoto)}),[activePhoto]);useEffect((()=>{currentPhotoIndex!==void 0&&currentPhotoIndex!==null&&setActivePhoto(currentPhotoIndex)}),[currentPhotoIndex]);const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_lightbox_kit"),globalProps(props),className);const handleOnSlide=photoIndex=>{setActivePhoto(photoIndex)};const photosMap=useMemo((()=>photos.map((photo=>({url:photo,thumbnail:photo})))),[photos]);const api={onClose:onClose,onArrowLeft:()=>{setActivePhoto(activePhoto>0?activePhoto-1:0)},onArrowRight:()=>{const nextPhoto=activePhoto<photos.length-1?activePhoto+1:photos.length-1;setActivePhoto(nextPhoto)}};useKbdControls(api);const lightboxRef=useRef();return jsx(Fragment$1,{children:jsx(LightboxContext.Provider,{value:api,children:jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,ref:lightboxRef,children:jsxs("div",{className:"carousel",children:[jsx(Lightbox.Header,{icon:icon,navRight:navRight,onClickRight:onClickRight,onClose:onClose,text:description,title:title}),children,jsx(Carousel,{currentIndex:activePhoto,onChange:handleOnSlide,photos:photosMap,setIndex:setActivePhoto})]})})})})};Lightbox.Header=LightboxHeader;const MapCustomButton=({onClick:onClick,icon:icon})=>jsx(Button,{className:"pb_map-custom-button",onClick:onClick,children:jsx(Icon,{icon:icon})});const MapControls=({zoomBtns:zoomBtns,zoomInClick:zoomInClick,zoomOutClick:zoomOutClick,flyTo:flyTo,flyToClick:flyToClick,children:children})=>jsxs(Flex,{className:"custom-nav-control",orientation:"column",children:[zoomBtns?jsxs(Fragment,{children:[jsxs("div",{className:"custom-nav-control-zoom",children:[jsx(Button,{className:"map-zoom-in-button",onClick:zoomInClick,children:jsx(Icon,{icon:"plus"})}),jsx(Button,{className:"map-zoom-out-button",onClick:zoomOutClick,children:jsx(Icon,{icon:"minus"})})]}),flyTo?jsx(Button,{className:"map-flyto-button",onClick:flyToClick,children:jsx(Icon,{icon:"eye"})}):null]}):null,children]});const Map$1=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,zoomBtns:zoomBtns=false,flyTo:flyTo=false,zoomInClick:zoomInClick,zoomOutClick:zoomOutClick,flyToClick:flyToClick}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_map"),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[zoomBtns?jsx(Map$1.Controls,{flyTo:flyTo,flyToClick:flyToClick,zoomBtns:zoomBtns,zoomInClick:zoomInClick,zoomOutClick:zoomOutClick}):null,children]})};Map$1.Controls=MapControls;const Timestamp=props=>{const{align:align="left",aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},text:text2,timezone:timezone,timestamp:timestamp,showDate:showDate=true,showUser:showUser=false,hideUpdated:hideUpdated=false,showTimezone:showTimezone=false,unstyled:unstyled=false,variant:variant="default"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_timestamp_kit",align,{dark:dark,variant:variant}),globalProps(props),className);const currentYear=(new Date).getFullYear().toString();const dateDisplay=`${DateTime$1.toMonth(timestamp,timezone)} ${DateTime$1.toDay(timestamp,timezone)}`;const shouldShowUser=showUser==true&&text2.length>0;const shouldShowTimezone=showTimezone==true&&timezone.length>0;const updatedText=hideUpdated?"":"Last updated";const userDisplay=shouldShowUser?` by ${text2}`:"";let timeDisplay=`${DateTime$1.toHour(timestamp,timezone)}:${DateTime$1.toMinute(timestamp,timezone)}${DateTime$1.toMeridiem(timestamp,timezone)}`;const fullTimeDisplay=()=>{if(shouldShowTimezone){timeDisplay=`${timeDisplay} ${DateTime$1.toTimeZone(timestamp,timezone)}`}return timeDisplay};const fullDateDisplay=()=>{let fullDisplay=`${DateTime$1.toMonth(timestamp,timezone)} ${DateTime$1.toDay(timestamp,timezone)}`;if(DateTime$1.toYear(timestamp,timezone).toString()!==currentYear){fullDisplay=`${fullDisplay}, ${DateTime$1.toYear(timestamp,timezone)}`}return`${fullDisplay} ${" · "} ${fullTimeDisplay()}`};const formatUpdatedString=()=>`Last updated ${userDisplay} on ${dateDisplay} at ${timeDisplay}`;const formatElapsedString=()=>`${updatedText} ${userDisplay} ${DateTime$1.fromNow(timestamp)}`;const timestampText=()=>{switch(variant){case"updated":return formatUpdatedString();case"elapsed":return formatElapsedString();default:return showDate?timestamp?fullDateDisplay():text2:fullTimeDisplay()}};return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:jsx("div",{className:"pb_timestamp_kit",children:unstyled?jsx("div",{children:timestampText()}):jsx(Caption,{dark:dark,size:"xs",text:timestampText()})})})};const MessageMention=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,variant:variant="user"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_message_mention",variant),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children})};const Message=props=>{const{aria:aria={},avatarName:avatarName,avatarStatus:avatarStatus=null,avatarUrl:avatarUrl,children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,label:label,message:message,timestamp:timestamp,timestampObject:timestampObject,timezone:timezone,alignTimestamp:alignTimestamp="right"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const shouldDisplayAvatar=avatarUrl||avatarName;const baseClassName=shouldDisplayAvatar?"pb_message_kit_avatar":"pb_message_kit";const classes=classnames(buildCss(baseClassName),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[shouldDisplayAvatar&&jsx(Avatar,{imageUrl:avatarUrl,name:avatarName,size:"xs",status:avatarStatus}),jsxs("div",{className:"content_wrapper",children:[jsxs(Flex,{justify:alignTimestamp==="left"?"none":"between",orientation:"row",children:[label&&jsx(Title,{className:"message_title",size:4,text:label}),jsx(Timestamp,{className:`pull-${alignTimestamp} ${timestampObject?"message_humanized_time":null}`,text:timestamp,timestamp:"",timezone:timezone}),timestampObject&&jsx(Timestamp,{className:`pull-${alignTimestamp} message_timestamp`,text:"",timestamp:timestampObject,timezone:timezone})]}),message&&jsx(Body$1,{className:"pb_message_body",text:message}),children]})]})};Message.Mention=MessageMention;const MultipleUsers=props=>{const{aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,maxDisplayedUsers:maxDisplayedUsers=4,reverse:reverse=false,size:size="xs",users:users}=props;const displayCount=users.length>maxDisplayedUsers?maxDisplayedUsers-1:users.length;const usersToDisplay=users.slice(0,displayCount);const reverseClass=reverse===true?"reverse":"";const avatarSizeClass=size==="xxs"?"xxs":"xs";const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_multiple_users_kit",reverseClass),globalProps(props),className);const itemClasses=classnames("pb_multiple_users_item",buildCss("multiple_users_badge",avatarSizeClass));return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[usersToDisplay.map(((avatarData,index)=>createElement(Avatar,{...avatarData,className:"pb_multiple_users_item",dark:dark,imageAlt:avatarData.name,key:index,size:size}))),users.length>maxDisplayedUsers&&jsx("div",{className:itemClasses,children:`+${users.length-3}`})]})};const MultipleUsersStacked=props=>{const{aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,users:users,variant:variant="default"}=props;const moreThanTwo=users.length>2;const onlyOne=users.length==1;const isBubble=variant==="bubble";const tripleBubble=isBubble&&users.length===3;const quadrupleBubble=isBubble&&users.length>3;const displayCount=()=>moreThanTwo?1:users.length;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_multiple_users_stacked_kit",{single:onlyOne,bubble:isBubble}),globalProps(props),className);const firstUser=()=>users.slice(0,1).map(((userObject,index)=>createElement(Avatar,{...userObject,className:`pb_multiple_users_stacked_item first_item${tripleBubble?" triple_bubble":""}${quadrupleBubble?" quadruple_bubble":""}`,dark:dark,key:index,size:isBubble?"sm":"xs"})));const secondUser=()=>{if(!moreThanTwo||isBubble&&users.length>1){return users.slice(1,2).map(((userObject,index)=>createElement(Avatar,{...userObject,className:`pb_multiple_users_stacked_item second_item${tripleBubble?" triple_bubble":""}${quadrupleBubble?" quadruple_bubble":""}`,dark:dark,key:index,size:"xs"})))}};const thirdUser=()=>{if(isBubble&&users.length>2){return users.slice(2,3).map(((userObject,index)=>createElement(Avatar,{...userObject,className:`pb_multiple_users_stacked_item third_item${quadrupleBubble?" quadruple_bubble":""}`,dark:dark,key:index,size:"xs"})))}};const fourthUser=()=>{if(isBubble&&users.length>3){return users.slice(3,4).map(((userObject,index)=>createElement(Avatar,{...userObject,className:"pb_multiple_users_stacked_item fourth_item",dark:dark,key:index,size:"xs"})))}};const plusUsers=()=>{if(moreThanTwo&&!isBubble){return jsx(Badge,{className:"pb_multiple_users_stacked_item second_item",dark:dark,rounded:true,text:`+${users.length-displayCount()}`,variant:"primary"})}};return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[firstUser(),secondUser(),thirdUser(),fourthUser(),plusUsers()]})};const previousOverlayDirectionMap$1={bottom:"to top",top:"to bottom",left:"to right",right:"to left",x:"to right",y:"to top"};const subsequentOverlayDirectionMap$1={...previousOverlayDirectionMap$1,x:"to left",y:"to bottom"};const OverlayPercentage=props=>{const{children:children,color:color,position:position,size:size}=props;const getPreviousOverlayDirection=()=>previousOverlayDirectionMap$1[position];const getSubsequentOverlayDirection=()=>subsequentOverlayDirectionMap$1[position];const hasSubsequentOverlay=position==="x"||position==="y";const previousOverlay=`linear-gradient(${getPreviousOverlayDirection()}, ${colors[color]} 0%, transparent ${size})`;const subsequentOverlay=`linear-gradient(${getSubsequentOverlayDirection()}, ${colors[color]} 0%, transparent ${size})`;return jsxs(Fragment,{children:[jsx("div",{className:"overlay_linear_gradient",style:{background:previousOverlay}}),children,hasSubsequentOverlay&&jsx("div",{className:"overlay_linear_gradient",style:{background:subsequentOverlay}})]})};const previousOverlayDirectionMap={x:"left",y:"top"};const subsequentOverlayDirectionMap={x:"right",y:"bottom"};const OverlayToken=props=>{const{children:children,color:color,position:position,size:size}=props;const hasSubsequentOverlay=position==="x"||position==="y";const getPreviousOverlayDirection=()=>hasSubsequentOverlay?previousOverlayDirectionMap[position]:position;const getSubsequentOverlayDirection=()=>hasSubsequentOverlay?subsequentOverlayDirectionMap[position]:position;const previousOverlayClassName=`overlay_${color}_${getPreviousOverlayDirection()}_${size}`;const subsequentOverlayClassName=`overlay_${color}_${getSubsequentOverlayDirection()}_${size}`;return jsxs(Fragment,{children:[jsx("div",{className:previousOverlayClassName}),children,hasSubsequentOverlay&&jsx("div",{className:subsequentOverlayClassName})]})};const Overlay=props=>{const{aria:aria={},className:className,children:children,color:color="card_light",data:data={},htmlOptions:htmlOptions={},id:id,layout:layout={bottom:"full"}}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const classes=classnames(buildCss("pb_overlay"),globalProps(props),className);const htmlProps=buildHtmlProps(htmlOptions);const getPosition=()=>Object.keys(layout)[0];const getSize2=()=>Object.values(layout)[0];const isSizePercentage=getSize2().includes("%");return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:isSizePercentage?OverlayPercentage({children:children,color:color,position:getPosition(),size:getSize2()}):OverlayToken({children:children,color:color,position:getPosition(),size:getSize2()})})};const Pagination=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,current:current=1,onChange:onChange,range:range=5,total:total=1}=props;const[currentPage,setCurrentPage]=useState(current);const handlePageChange=pageNumber=>{if(pageNumber>=1&&pageNumber<=total){setCurrentPage(pageNumber);if(onChange){onChange(pageNumber)}}};const renderPageButtons=()=>{const buttons=[];let rangeStart=Math.max(1,currentPage-Math.floor(range/2));let rangeEnd=Math.min(total,rangeStart+range-1);if(rangeEnd-rangeStart+1<range){if(rangeStart>1){rangeStart=Math.max(1,rangeEnd-range+1)}else{rangeEnd=Math.min(total,rangeStart+range-1)}}if(rangeStart>1){buttons.push(jsx("li",{className:"pagination-number",onClick:()=>handlePageChange(1),children:"1"},1))}if(rangeStart>2){buttons.push(jsx("li",{className:"pagination-number",onClick:()=>handlePageChange(2),children:"2"},2))}for(let i=rangeStart;i<=rangeEnd;i++){buttons.push(jsx("li",{className:`pagination-number ${i===currentPage?"active":""}`,onClick:()=>handlePageChange(i),children:i},i))}if(rangeEnd<total-1){buttons.push(jsx("li",{className:`pagination-number ${total-1===currentPage?"active":""}`,onClick:()=>handlePageChange(total-1),children:total-1},total-1))}if(rangeEnd<total){buttons.push(jsx("li",{className:`pagination-number ${total===currentPage?"active":""}`,onClick:()=>handlePageChange(total),children:total},total))}return buttons};const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_paginate"),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs("div",{className:"pb_pagination",children:[jsx("li",{className:`pagination-left ${currentPage===1?"disabled":""}`,onClick:()=>handlePageChange(currentPage-1),children:jsx(Icon,{icon:"chevron-left"})}),renderPageButtons(),jsx("li",{className:`pagination-right ${currentPage===total?"disabled":""}`,onClick:()=>handlePageChange(currentPage+1),children:jsx(Icon,{icon:"chevron-right"})})]})})};const Person=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},firstName:firstName,id:id,lastName:lastName}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_person_kit"),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[jsx(Body$1,{className:"pb_person_first",tag:"span",children:firstName}),lastName&&jsx(Title,{className:"pb_person_first",size:4,text:` ${lastName}`})]})};const PersonContact=props=>{const{aria:aria={},className:className,contacts:contacts=[],data:data={},firstName:firstName,htmlOptions:htmlOptions={},id:id,lastName:lastName}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_person_contact_kit"),globalProps(props),className);const wrongContacts=()=>contacts.filter((contactObject=>contactObject.contactType==="wrong-phone"));const validContacts=()=>contacts.filter((contactObject=>contactObject.contactType!=="wrong-phone"));return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[jsx(Person,{firstName:firstName,lastName:lastName}),validContacts().map(((contactObject,index)=>jsx(Contact,{contactDetail:contactObject.contactDetail,contactType:contactObject.contactType,contactValue:contactObject.contactValue},`valid-contact-${index}`))),wrongContacts().map(((contactObject,index)=>jsxs("div",{children:[jsx(Caption,{className:"wrong_numbers",text:"wrong number"},`wrong-contact-caption-${index}`),jsx(Contact,{contactType:contactObject.contactType,contactValue:contactObject.contactValue},`wrong-contact-${index}`)]},`wrong-contact-caption-wrapper-${index}`)))]})};const ProgressPill=({active:active,dark:dark,steps:step})=>jsx("div",{className:`pb_progress_pill${step<=active?"_active":"_inactive"}${dark?" dark":""}`},step);const showSteps=(steps,active,dark)=>{const items=[];for(let step=1;step<=steps;step++){items.push(ProgressPill({steps:step,active:active,dark:dark}))}return items};const ProgressPills=props=>{const{active:active=0,aria:aria={hidden:"true"},className:className,data:data={},htmlOptions:htmlOptions={},id:id,steps:steps=3,title:title,value:value,dark:dark=false}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_progress_pills_kit"),globalProps(props),className);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[title&&jsxs("div",{className:"progress_pills_status",children:[jsx(Title,{dark:dark,size:4,tag:"h4",text:title}),jsx(Body$1,{color:"light",dark:dark,text:value})]}),jsx("div",{className:"progress_pills",children:showSteps(steps,active,dark)})]})};const ProgressSimple=props=>{const{align:align,className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},max:max2,muted:muted=false,percent:percent="",value:value,variant:variant="default",width:width="100%"}=props;const styles2={width:width};const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const variantStyle=variant=="default"?"":variant;const valueStyles={width:percent?`${percent}%`:`${value*100/max2}%`};const wrapperClass=classnames(buildCss("pb_progress_simple_wrapper",align,{dark:dark}),globalProps(props),className);const kitClass=classnames(buildCss("pb_progress_simple_kit",{muted:muted},variantStyle,align),className);return jsx("div",{...dataProps,...htmlProps,className:wrapperClass,children:jsx("div",{className:kitClass,"data-value":value,style:styles2,children:jsx("div",{className:"progress_simple_value",style:valueStyles})})})};const ProgressStep=props=>{const{aria:aria={},className:className,children:children,color:color,data:data={},orientation:orientation="horizontal",htmlOptions:htmlOptions={},icon:icon=false,showIcon:showIcon=false,variant:variant}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const iconStyle=icon===true||showIcon===true?"icon":"";const progressStepCss=buildCss("pb_progress_step_kit",orientation,iconStyle,variant,color);return jsx("ul",{...ariaProps,...dataProps,...htmlProps,className:classnames(progressStepCss,globalProps(props),className),children:children})};const ProgressStepItem=props=>{const{className:className,data:data={},status:status="inactive",children:children,htmlOptions:htmlOptions={},icon:icon="check"}=props;const progressStepItem=buildCss("pb_progress_step_item",status);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx("li",{...dataProps,...htmlProps,className:classnames(progressStepItem,className),children:jsxs("div",{className:"box",children:[jsx("div",{className:"circle",children:jsx(Icon,{icon:icon})}),jsx("div",{className:"content",children:children})]})})};const createOptions=options=>options.map(((option,index)=>jsx("option",{disabled:option.disabled,value:option.value,children:option.text||option.value},index)));const Select=({aria:aria={},blankSelection:blankSelection,children:children,className:className,compact:compact=false,data:data={},disabled:disabled=false,error:error,label:label,htmlOptions:htmlOptions={},inline:inline=false,multiple:multiple=false,name:name,onChange:onChange=()=>void 0,options:options=[],required:required=false,showArrow:showArrow=false,value:value,...props},ref)=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const optionsList=createOptions(options);const inlineClass=inline?"inline":null;const compactClass=compact?"compact":null;const classes=classnames(buildCss("pb_select"),globalProps({...props,marginBottom:props.marginBottom||props.margin||"sm"}),className,inlineClass,{show_arrow:showArrow},compactClass);const selectWrapperClass=classnames(buildCss("pb_select_kit_wrapper"),{error:error},className);const selectBody=(()=>{if(children)return children;return jsxs("select",{...htmlOptions,...domSafeProps(props),disabled:disabled,id:name,multiple:multiple,name:name,onChange:onChange,ref:ref,required:required,value:value,children:[blankSelection&&jsx("option",{value:"",children:blankSelection}),optionsList]})})();return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:[label&&jsx("label",{className:"pb_select_kit_label",htmlFor:name,children:jsx(Caption,{text:label})}),jsxs("label",{className:selectWrapperClass,htmlFor:name,children:[selectBody,multiple!==true?jsx(Icon,{className:"pb_select_kit_caret",fixedWidth:true,icon:"angle-down"}):null,error&&jsx(Body$1,{status:"negative",text:error})]})]})};const Select$1=forwardRef(Select);const SelectableCard=props=>{const{aria:aria={},checked:checked=false,className:className,customIcon:customIcon,dark:dark=false,data:data={},disabled:disabled=false,error:error=false,htmlOptions:htmlOptions={},icon:icon=false,inputId:inputId=null,multi:multi=true,name:name,onChange:onChange=noop$3,text:text2,value:value,variant:variant="default"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_selectable_card_kit",{checked:checked,disabled:disabled,enabled:!disabled}),{error:error},dark?"dark":"",className);const displayIcon2=()=>{if(icon===true){return jsx("div",{className:"pb_selectable_card_circle",children:jsx(Icon,{customIcon:customIcon,fixedWidth:true,icon:"check"})})}};const inputRef=useRef(null);const handleClick=()=>{inputRef.current.click()};const inputType=multi?"checkbox":"radio";const inputIdPresent=inputId!==null?inputId:name;const Input=multi?Checkbox:Radio;const filteredProps={...props};filteredProps==null?true:delete filteredProps.inputId;filteredProps==null?true:delete filteredProps.children;filteredProps==null?true:delete filteredProps.icon;filteredProps==null?true:delete filteredProps.error;filteredProps==null?true:delete filteredProps.dark;filteredProps==null?true:delete filteredProps.multi;filteredProps==null?true:delete filteredProps.customIcon;const labelProps=variant==="displayInput"?{...filteredProps,padding:"none"}:{...filteredProps};return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:[jsx("input",{checked:checked,disabled:disabled,id:inputIdPresent,name:name,onChange:onChange,ref:inputRef,type:inputType,value:value,...filteredProps}),jsxs("label",{className:globalProps(labelProps),htmlFor:inputIdPresent,children:[variant==="displayInput"?jsxs(Flex,{vertical:"center",children:[jsx(Flex,{orientation:"column",padding:"sm",paddingRight:"xs",vertical:"center",children:jsx(Input,{dark:dark,children:jsx("input",{checked:checked,disabled:disabled,onClick:handleClick,readOnly:true,type:inputType})})}),jsx("div",{className:"separator"}),jsx("div",{className:"psuedo_separator"}),jsx(Card,{borderNone:true,dark:dark,padding:"sm",status:error?"negative":null,children:text2||props.children})]}):text2||props.children,displayIcon2()]})]})};const SelectableIcon=({aria:aria={},className:className,checked:checked=false,customIcon:customIcon,data:data={},disabled:disabled=false,htmlOptions:htmlOptions={},icon:icon,inputId:inputId,inputs:inputs="enabled",multi:multi=true,name:name,text:text2,value:value,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_selectable_icon_kit",{checked:checked,disabled:disabled,enabled:!disabled}),globalProps(props),className);const inputType=multi===false?"radio":"checkbox";const inputIdPresent=inputId!==null?inputId:name;return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:[inputs==="disabled"&&jsxs(Fragment,{children:[jsx(Icon,{customIcon:customIcon,icon:icon,size:"2x"}),jsx(Title,{size:4,tag:"h4",text:text2})]}),inputs==="enabled"&&jsxs(Fragment,{children:[jsx("input",{...props,checked:checked,disabled:disabled,id:inputIdPresent,name:name,type:inputType,value:value}),jsxs("label",{htmlFor:inputIdPresent,children:[jsx(Icon,{customIcon:customIcon,icon:icon,size:"2x"}),jsx(Title,{size:4,tag:"h4",text:text2})]})]})]})};const SelectableCardIcon=props=>{const{aria:aria={},checkmark:checkmark=false,checked:checked=false,className:className,customIcon:customIcon,dark:dark=false,data:data={},disabled:disabled=false,htmlOptions:htmlOptions={},icon:icon,inputId:inputId,multi:multi=true,name:name,titleText:titleText,bodyText:bodyText,value:value,onChange:onChange}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_selectable_card_icon_kit",{checked:checked,disabled:disabled,enabled:!disabled}),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:jsx(SelectableCard,{checked:checked,customIcon:customIcon,dark:dark,disabled:disabled,icon:checkmark,inputId:inputId,multi:multi,name:name,onChange:onChange,value:value,children:jsxs(Fragment,{children:[jsx(SelectableIcon,{customIcon:customIcon,icon:icon,inputId:"",inputs:"disabled",name:"",text:titleText}),jsx(Body$1,{color:"light",dark:dark,text:bodyText})]})})})};const SelectableListItem=({aria:aria={},checked:checked=false,children:children,className:className,data:data={},dragId:dragId,dragHandle:dragHandle=true,defaultChecked:defaultChecked,htmlOptions:htmlOptions={},id:id,label:label,text:text2="",name:name="",value:value="",variant:variant="checkbox",onChange:onChange=()=>{},...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_selectable_list_item_kit"),globalProps(props),className);const initialCheckedState=checked;const[checkedState,setCheckedState]=useState(initialCheckedState);const handleChecked=event=>{onChange(event);setCheckedState(event.target.checked)};return jsx(ListItem,{...props,className:classnames(checkedState?"checked_item":"",className),dragHandle:dragHandle,dragId:dragId,children:jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:[variant=="checkbox"&&jsxs(Fragment,{children:[jsx(Checkbox,{checked:checkedState,id:id,name:name,onChange:handleChecked,text:label||text2&&false,type:"checkbox",value:value,...props}),children]}),variant=="radio"&&jsxs(Fragment,{children:[jsx(Radio,{defaultChecked:defaultChecked,id:id,label:label,name:name,onChange:onChange,text:label,type:"radio",value:value,...domSafeProps(props)}),children]}),variant!=="checkbox"&&variant!=="radio"&&{children:children}]})})};const SelectableList=props=>{var _a,_b;const{aria:aria={},children:children,className:className,data:data={},enableDrag:enableDrag=false,htmlOptions:htmlOptions={},id:id}=props;const ariaProps=buildAriaProps(aria);const classes=classnames(buildCss("pb_selectable_list_kit"),globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const isRadio=props.variant==="radio";const defaultCheckedRadioValue=(_b=(_a=children.filter((item=>item.props.defaultChecked))[0])==null?void 0:_a.props)==null?void 0:_b.value;const[selectedRadioValue,setSelectedRadioValue]=useState(defaultCheckedRadioValue);const onChangeRadioValue=({target:target})=>{setSelectedRadioValue(target.value)};let selectableListItems=children;if(isRadio){selectableListItems=children.map((({props:props2})=>createElement(SelectableListItem,{...props2,className:classnames(selectedRadioValue===props2.value?"checked_item":"",props2.className),key:props2.value,onChange:evt=>{var _a2;onChangeRadioValue(evt);(_a2=props2==null?void 0:props2.onChange)==null?void 0:_a2.call(props2,evt)}})))}return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx(List,{enableDrag:enableDrag,variant:props.variant,children:selectableListItems})})};SelectableList.Item=SelectableListItem;const Source=({aria:aria={},className:className,data:data={},hideIcon:hideIcon=false,htmlOptions:htmlOptions={},id:id,source:source,type:type="inbound",user:user={}})=>{const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const ariaProps=buildAriaProps(aria);const css=classnames(["pb_source_kit",className]);const avatar=()=>{if((type==="user"||type==="referral")&&user.name!==void 0){const avatarProps={...user};avatarProps.size="sm";delete avatarProps.userId;return avatarProps}};const typeText=()=>{if(type==="user"||type==="referral"&&user.name!==void 0){return user.name}else{return titleize(type)}};const typeIconNames={events:"calendar-alt",outbound:"sign-out",prospecting:"binoculars",referral:"handshake",retail:"shopping-bag",inbound:"sign-in"};const showIcon=()=>type!=="user"&&avatar()===void 0;return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:css,id:id,children:jsxs("div",{className:"pb__source_layout",children:[hideIcon===false&&jsxs(Fragment,{children:[showIcon()&&jsx(IconCircle,{icon:typeIconNames[type],size:"sm"}),!showIcon()&&jsx(Avatar,{...avatar()})]}),jsxs("div",{className:"pb__source_content",children:[jsx(Title,{size:4,tag:"h4",text:source}),jsxs("div",{className:"pb__source_value",children:[jsx(Body$1,{color:"light",text:typeText()}),user.userId&&jsx(Caption,{text:user.userId})]})]})]})})};const starYellow=jsx("svg",{className:"iamyellow",fill:"none",viewBox:"0 0 18 16",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{clipRule:"evenodd",d:"M9.86015 0.4371C9.73527 0.187329 9.4855 0 9.17328 0C8.89229 0 8.64252 0.187329 8.51763 0.4371L6.36335 4.83932L1.58647 5.55742C1.30547 5.58864 1.08692 5.80719 0.99326 6.05696C0.899595 6.33795 0.962038 6.61895 1.18059 6.8375L4.64617 10.2719L3.80319 15.1112C3.77197 15.3922 3.89685 15.7044 4.11541 15.8605C4.36518 16.0166 4.64617 16.0478 4.89594 15.9229L9.17328 13.6126L13.4506 15.9229C13.7004 16.0478 14.0126 16.0166 14.2624 15.8605C14.4809 15.7044 14.6058 15.3922 14.5434 15.1112L13.7316 10.2719L17.1972 6.8375C17.4157 6.61895 17.4782 6.33795 17.3845 6.05696C17.2909 5.80719 17.0723 5.58864 16.7913 5.55742L12.0144 4.83932L9.86015 0.4371Z",fill:"#F9BB00",fillRule:"evenodd"})});const starPrimary=jsx("svg",{fill:"none",viewBox:"0 0 18 16",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{clipRule:"evenodd",d:"M9.86015 0.4371C9.73527 0.187329 9.4855 0 9.17328 0C8.89229 0 8.64252 0.187329 8.51763 0.4371L6.36335 4.83932L1.58647 5.55742C1.30547 5.58864 1.08692 5.80719 0.99326 6.05696C0.899595 6.33795 0.962038 6.61895 1.18059 6.8375L4.64617 10.2719L3.80319 15.1112C3.77197 15.3922 3.89685 15.7044 4.11541 15.8605C4.36518 16.0166 4.64617 16.0478 4.89594 15.9229L9.17328 13.6126L13.4506 15.9229C13.7004 16.0478 14.0126 16.0166 14.2624 15.8605C14.4809 15.7044 14.6058 15.3922 14.5434 15.1112L13.7316 10.2719L17.1972 6.8375C17.4157 6.61895 17.4782 6.33795 17.3845 6.05696C17.2909 5.80719 17.0723 5.58864 16.7913 5.55742L12.0144 4.83932L9.86015 0.4371Z",fill:"#0056CF",fillRule:"evenodd"})});const starSubtle=jsx("svg",{fill:"none",viewBox:"0 0 18 16",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{clipRule:"evenodd",d:"M8.90904 0.4371C8.78416 0.187329 8.53438 0 8.22217 0C7.94118 0 7.69141 0.187329 7.56652 0.4371L5.41224 4.83932L0.635357 5.55742C0.354364 5.58864 0.135813 5.80719 0.042149 6.05696C-0.0515154 6.33795 0.0109275 6.61895 0.229478 6.8375L3.69506 10.2719L2.85208 15.1112C2.82086 15.3922 2.94574 15.7044 3.16429 15.8605C3.41407 16.0166 3.69506 16.0478 3.94483 15.9229L8.22217 13.6126L12.4995 15.9229C12.7493 16.0478 13.0615 16.0166 13.3113 15.8605C13.5298 15.7044 13.6547 15.3922 13.5923 15.1112L12.7805 10.2719L16.2461 6.8375C16.4646 6.61895 16.5271 6.33795 16.4334 6.05696C16.3397 5.80719 16.1212 5.58864 15.8402 5.55742L11.0633 4.83932L8.90904 0.4371Z",fillRule:"evenodd"})});const starOutline=jsx("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M5.91323 5.33377L6.17269 5.29477L6.28801 5.0591L8.44116 0.659187C8.49971 0.543364 8.59517 0.5 8.64884 0.5C8.74499 0.5 8.83506 0.555009 8.88775 0.659235L11.0409 5.0591L11.1562 5.29477L11.4157 5.33377L16.1925 6.05186L16.2021 6.0533L16.2117 6.05436C16.2359 6.05706 16.2671 6.06847 16.3024 6.09973C16.3374 6.13062 16.3686 6.17476 16.3886 6.22412C16.4186 6.32162 16.401 6.40181 16.3198 6.48332C16.3196 6.48353 16.3194 6.48374 16.3192 6.48395L12.8552 9.91671L12.6712 10.0991L12.7141 10.3546L13.5258 15.1939L13.528 15.2068L13.5308 15.2196C13.5488 15.3004 13.5074 15.402 13.4567 15.4462C13.3391 15.5132 13.2227 15.5096 13.1546 15.4781L8.88646 13.1726L8.64884 13.0443L8.41121 13.1726L4.14274 15.4782C4.07877 15.5083 3.99031 15.5147 3.87267 15.4466C3.82302 15.4033 3.76655 15.2914 3.77463 15.1781L4.61431 10.3577L4.65911 10.1005L4.47368 9.91671L1.0097 6.48394C1.00947 6.48372 1.00925 6.4835 1.00903 6.48327C0.927878 6.40178 0.91031 6.3216 0.94026 6.22412C0.960274 6.17476 0.99154 6.13062 1.02646 6.09973C1.0618 6.06847 1.09296 6.05706 1.11724 6.05436L1.12682 6.0533L1.13635 6.05186L5.91323 5.33377Z",stroke:"#C1CDD6"})});const getStarIconObject=(backgroundType,color,dark,size)=>{const colorClassName=color==="subtle"?dark?"suble_star_dark":"suble_star_light":color==="primary"?dark?"primary_star_dark":"primary_star_light":`${color}_star`;const backgroundClassName=backgroundType==="outline"?dark?"outline_empty_star_dark":"outline_empty_star_light":dark?"empty_star_dark":"empty_star_light";return{yellow:{className:`pb_star_${size} ${colorClassName}`,icon:starYellow},primary:{className:`pb_star_${size} ${colorClassName}`,icon:starPrimary},subtle:{className:`pb_star_${size} ${colorClassName}`,icon:starSubtle},fill:{className:`pb_star_${size} ${backgroundClassName}`,icon:starYellow},outline:{className:`pb_star_${size} ${backgroundClassName}`,icon:starOutline}}};const StarRatingInteractive=props=>{const{backgroundType:backgroundType,colorOption:colorOption,dark:dark,denominator:denominator,onClick:onClick,size:size}=props;const[interactiveStarValue,setInteractiveStarValue]=useState(0);const[hoverStarValue,setHoverStarValue]=useState(null);const starIcon=getStarIconObject(backgroundType,colorOption,dark,size);const handleOnClick=interactiveStarValue2=>{setInteractiveStarValue(interactiveStarValue2);onClick&&onClick(interactiveStarValue2)};const handleMouseEnter=value=>{setHoverStarValue(value)};const handleMouseLeave=()=>{setHoverStarValue(null)};const handleOnKeyDown=(event,starIndex)=>{if(event.key==="Enter"||event.key===" "){event.preventDefault();handleOnClick(starIndex)}};return jsx(Flex,{className:"star_flex_area",children:[...Array(denominator)].map(((_,index)=>{const starIndex=index+1;const isFilled=starIndex<=interactiveStarValue;const isHovered=hoverStarValue!==null&&starIndex>interactiveStarValue&&starIndex<=hoverStarValue;const baseClass=dark?starIcon[backgroundType].className.replace("empty_star_light","empty_star_dark"):starIcon[backgroundType].className;let starClass=baseClass;if(isFilled){starClass=starClass.replace(/(empty_star_light|empty_star_dark)/,"");starClass+=` ${starIcon[colorOption].className}`}if(isHovered){starClass+=" star-hovered"}if(isFilled&&starIndex===interactiveStarValue){starClass+=" star-selected"}return jsx("div",{onKeyDown:event=>handleOnKeyDown(event,starIndex),children:jsx(Icon,{className:starClass.trim(),cursor:"pointer",customIcon:starIcon[backgroundType].icon,htmlOptions:{onClick:()=>handleOnClick(starIndex),onMouseEnter:()=>handleMouseEnter(starIndex),onMouseLeave:()=>handleMouseLeave()},tabIndex:0})},index)}))})};const StarRatingDisplay=props=>{const{backgroundType:backgroundType,colorOption:colorOption,dark:dark,denominator:denominator,layoutOption:layoutOption,rating:rating,size:size}=props;const denominatorStyle=layoutOption==="onestar"?1:denominator;const activeStars=Math.round(rating)>denominatorStyle?denominatorStyle:Math.round(rating);const emptyStars=denominatorStyle-Math.round(rating)<0?0:denominatorStyle-Math.round(rating);const starIcon=getStarIconObject(backgroundType,colorOption,dark,size);return jsxs(Flex,{className:"star_flex_area",children:[[...Array(activeStars)].map(((_,index)=>jsx(React__default.Fragment,{children:jsx(Icon,{className:starIcon[colorOption].className,customIcon:starIcon[colorOption].icon})},index))),[...Array(emptyStars)].map(((_,index)=>jsx(React__default.Fragment,{children:jsx(Icon,{className:starIcon[backgroundType].className,customIcon:starIcon[backgroundType].icon})},index)))]})};const StarRating=props=>{const{aria:aria={},className:className,data:data={},dark:dark=false,layoutOption:layoutOption="default",htmlOptions:htmlOptions={},id:id,rating:rating=0,denominator:denominator=5,colorOption:colorOption="yellow",backgroundType:backgroundType="fill",size:size="sm",variant:variant="display",onClick:onClick}=props;const classes=classnames(buildCss("pb_star_rating_kit"),globalProps(props),className);const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const oneDecimalRating=rating.toFixed(1);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[layoutOption==="number"&&jsxs(Fragment,{children:[(size==="xs"||size==="sm")&&jsx(Caption,{className:"pb_star_rating_number_sm",dark:dark,paddingRight:"xs",size:"xs",text:oneDecimalRating.toString()}),size==="md"&&jsx(Body$1,{className:"pb_star_rating_number_md",color:"light",dark:dark,paddingRight:"xs",text:oneDecimalRating.toString()}),size==="lg"&&jsx(Title,{bold:false,className:"pb_star_rating_number_lg",color:"light",dark:dark,paddingRight:"sm",size:2,text:oneDecimalRating.toString()})]}),variant==="display"&&jsx(StarRatingDisplay,{backgroundType:backgroundType,colorOption:colorOption,dark:dark,denominator:denominator,layoutOption:layoutOption,rating:rating,size:size}),variant==="interactive"&&jsx(StarRatingInteractive,{backgroundType:backgroundType,colorOption:colorOption,dark:dark,denominator:denominator,onClick:onClick,size:size}),layoutOption==="onestar"&&jsxs(Fragment,{children:[(size==="xs"||size==="sm")&&jsx(Caption,{className:"pb_star_rating_number_sm",dark:dark,size:"xs",text:`${rating.toString()} of ${denominator}`}),size==="md"&&jsx(Body$1,{className:"pb_star_rating_number_md",color:"light",dark:dark,text:`${rating.toString()} of ${denominator}`}),size==="lg"&&jsx(Title,{bold:false,className:"pb_star_rating_number_lg",color:"light",dark:dark,size:2,text:`${rating.toString()} of ${denominator}`})]})]})};const Textarea=({aria:aria={},characterCount:characterCount,className:className,children:children,data:data={},disabled:disabled,htmlOptions:htmlOptions={},inline:inline=false,resize:resize="none",error:error,label:label,maxCharacters:maxCharacters,name:name,onChange:onChange=()=>{},placeholder:placeholder,required:required,rows:rows=4,value:value,...props})=>{const ref=useRef(null);useEffect((()=>{if(ref.current&&resize==="auto"){PbTextarea.addMatch(ref.current)}}));const errorClass=error?"error":null;const inlineClass=inline?"inline":"";const resizeClass=`resize_${resize}`;const classes=classnames("pb_textarea_kit",errorClass,inlineClass,resizeClass,globalProps(props),className);const noCount=typeof characterCount!=="undefined";const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const checkIfZero=characterCount2=>characterCount2==0?characterCount2.toString():characterCount2;const characterCounter=()=>maxCharacters&&characterCount?`${checkIfZero(characterCount)} / ${maxCharacters}`:`${checkIfZero(characterCount)}`;return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:[jsx(Caption,{text:label}),children||jsx("textarea",{disabled:disabled,name:name,onChange:onChange,placeholder:placeholder,ref:ref,required:required,rows:rows,value:value,...props}),error?jsx(Fragment,{children:characterCount?jsxs(Flex,{spacing:"between",vertical:"center",children:[jsx(FlexItem,{children:jsx(Body$1,{margin:"none",status:"negative",text:error})}),jsx(FlexItem,{children:jsx(Caption,{margin:"none",size:"xs",text:characterCounter()})})]}):jsx(Body$1,{status:"negative",text:error})}):noCount&&jsx(Caption,{margin:"none",size:"xs",text:characterCounter()})]})};const Textarea$1=forwardRef(Textarea);const timezoneString=dateValue=>`${DateTime$1.toTimeZone(dateValue)}`;const dateTimestamp=dateValue=>`${DateTime$1.toHour(dateValue)}:${DateTime$1.toMinute(dateValue)}${DateTime$1.toMeridiem(dateValue)}`;const dateTimeIso=dateValue=>DateTime$1.toIso(dateValue);const TimeRangeInline=props=>{const{aria:aria={},className:className,data:data={},alignment:alignment="left",htmlOptions:htmlOptions={},size:size="sm",dark:dark=false,icon:icon=false,timezone:timezone=false,startTime:startTime,endTime:endTime,id:id}=props;const dataProps=buildDataProps(data);const ariaProps=buildAriaProps(aria);const htmlProps=buildHtmlProps(htmlOptions);const separator=jsx(Body$1,{color:"light",children:jsx(Icon,{className:"pb_time_range_inline_arrow",dark:dark,fixedWidth:true,icon:"long-arrow-right"})});const iconContent=()=>icon&&jsx(Body$1,{color:"light",tag:"span",children:jsx(Icon,{className:"pb_time_range_inline_icon",dark:dark,fixedWidth:true,icon:"clock",size:size,tag:"span"})});return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classnames("pb_time_range_inline_kit_"+alignment,globalProps(props),className),id:id,children:jsxs("div",{className:"pb_time_range_inline_wrapper",children:[size=="xs"&&jsxs(Fragment,{children:[jsxs(Caption,{dark:dark,tag:"span",children:[iconContent(),jsx("time",{dateTime:dateTimeIso(startTime),children:` ${dateTimestamp(startTime)} `})]}),jsx(Caption,{className:"pb_time_range_inline_arrow",dark:dark,tag:"span",children:separator}),jsx(Caption,{dark:dark,tag:"span",children:jsx("time",{dateTime:dateTimeIso(endTime),children:` ${dateTimestamp(endTime)} `})}),timezone&&jsx(Caption,{className:"pb_time_range_inline_timezone",dark:dark,tag:"span",children:timezoneString(endTime)})]}),size=="sm"&&jsxs(Fragment,{children:[jsxs(Body$1,{dark:dark,tag:"span",children:[iconContent(),jsx("time",{dateTime:dateTimeIso(startTime),children:` ${dateTimestamp(startTime)} `})]}),jsx(Body$1,{className:"pb_time_range_inline_arrow",dark:dark,tag:"span",children:separator}),jsx(Body$1,{dark:dark,tag:"span",children:jsx("time",{dateTime:dateTimeIso(endTime),children:` ${dateTimestamp(endTime)} `})}),timezone&&jsx(Body$1,{className:"pb_time_range_inline_timezone",color:"light",dark:dark,tag:"span",children:timezoneString(endTime)})]})]})})};const TimelineItem=({className:className,children:children,date:date,htmlOptions:htmlOptions={},icon:icon="user",iconColor:iconColor="default",lineStyle:lineStyle="solid",...props})=>{const timelineItemCss=buildCss("pb_timeline_item_kit",lineStyle);const htmlProps=buildHtmlProps(htmlOptions);return jsxs("div",{...htmlProps,className:classnames(timelineItemCss,globalProps(props),className),children:[jsx("div",{className:"pb_timeline_item_left_block",children:date&&jsx(DateStacked,{align:"center",date:date,size:"sm"})}),jsxs("div",{className:"pb_timeline_item_step",children:[jsx(IconCircle,{icon:icon,size:"xs",variant:iconColor}),jsx("div",{className:"pb_timeline_item_connector"})]}),jsx("div",{className:"pb_timeline_item_right_block",children:children})]})};const Timeline=({aria:aria={},className:className,children:children,data:data={},htmlOptions:htmlOptions={},id:id,orientation:orientation="horizontal",showDate:showDate=false,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const dateStyle=showDate===true?"_with_date":"";const timelineCss=buildCss("pb_timeline_kit",`_${orientation}`,dateStyle);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classnames(timelineCss,globalProps(props),className),id:id,children:children})};Timeline.Item=TimelineItem;const TitleDetail=props=>{const{align:align="left",aria:aria={},className:className,data:data={},detail:detail,htmlOptions:htmlOptions={},id:id,title:title}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const pbCss=buildCss("pb_title_detail_kit",align);return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classnames(pbCss,globalProps(props),className),id:id,children:[jsx(Title,{size:4,text:title}),jsx(Body$1,{color:"light",text:detail})]})};const Toggle=({aria:aria={},checked:checked=false,children:children,className:className,data:data={},disabled:disabled=false,id:id,htmlOptions:htmlOptions={},name:name,onChange:onChange=()=>{},size:size="sm",value:value,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css=classnames(buildCss("pb_toggle_kit",size,{on:checked,off:!checked}));return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classnames(css,globalProps(props),className),id:id,children:jsxs("label",{className:"pb_toggle_wrapper",children:[children&&children,!children&&jsx("input",{...props,defaultChecked:checked,disabled:disabled,name:name,onChange:onChange,type:"checkbox",value:value}),jsx("div",{className:"pb_toggle_control"})]})})};const Veteran=()=>jsxs("svg",{viewBox:"0 0 200 250",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M198.4 71.5V71c-.2-1.2-1.4-2.1-1.4-2.1L103.2 2.7c-.7-.4-1-.6-1.6-.6-1.3 0-2.3 1-2.3 2.3v67.1h-.6v29.6h99.8l-.1-29.6z",fill:"#004876"}),jsx("path",{d:"M172.9 159.2c-31.4 23-33.2 24.3-33.2 24.3l-40.5 3.2v-29.4l73.7 1.9z",fill:"#FFF"}),jsx("path",{d:"M99.3 125.4V33.5L1.6 102.7l-.1.1c-1 .7-1.5 1.8-1.5 3v67.4c0 1.2.6 2.3 1.5 3l.1.1 93.5 66.3c1.7 1.2 4.1 0 4.1-2.1v-28.9l40.5-28-40.5.7v-25h73.7l25.4-16.9.2-16.8H99.3z",fill:"#BB2432"}),jsx("path",{d:"M99.3 101.1h99.3v24.3H99.3z",fill:"#FFF"})]});const MillionDollar=()=>jsxs("svg",{viewBox:"0 0 242.9 242.9",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",children:[jsx("circle",{cx:121.5,cy:121.5,r:121.5}),jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"a",x1:42.483,x2:200.309,y1:35.645,y2:35.645,children:[jsx("stop",{offset:0,style:{stopColor:"#e6b711"}}),jsx("stop",{offset:.128,style:{stopColor:"#eac23c"}}),jsx("stop",{offset:.278,style:{stopColor:"#ec6"}}),jsx("stop",{offset:.413,style:{stopColor:"#f1d485"}}),jsx("stop",{offset:.527,style:{stopColor:"#f2d998"}}),jsx("stop",{offset:.607,style:{stopColor:"#f3db9f"}}),jsx("stop",{offset:1,style:{stopColor:"#e6b711"}})]}),jsx("path",{d:"M56.4 53.8c16.9-16.2 39.8-26.2 65-26.2 25.2 0 48.1 10 64.9 26.2h14c-19.1-22.2-47.4-36.3-78.9-36.3-31.5 0-59.8 14.1-78.9 36.3h13.9z",style:{fill:"url(#a)"}}),jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"b",x1:17.407,x2:44.897,y1:132.179,y2:132.179,children:[jsx("stop",{offset:0,style:{stopColor:"#e6b711"}}),jsx("stop",{offset:.128,style:{stopColor:"#eac23c"}}),jsx("stop",{offset:.278,style:{stopColor:"#ec6"}}),jsx("stop",{offset:.413,style:{stopColor:"#f1d485"}}),jsx("stop",{offset:.527,style:{stopColor:"#f2d998"}}),jsx("stop",{offset:.607,style:{stopColor:"#f3db9f"}}),jsx("stop",{offset:1,style:{stopColor:"#e6b711"}})]}),jsx("path",{d:"M44.9 175.7c-10.9-15.3-17.3-34-17.3-54.2 0-14.1 3.1-27.5 8.8-39.5H25.3c-5 12.2-7.8 25.5-7.8 39.5 0 22.7 7.3 43.8 19.8 60.9l7.6-6.7z",style:{fill:"url(#b)"}}),jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"c",x1:52.914,x2:189.715,y1:212.573,y2:212.573,children:[jsx("stop",{offset:0,style:{stopColor:"#e6b711"}}),jsx("stop",{offset:.128,style:{stopColor:"#eac23c"}}),jsx("stop",{offset:.278,style:{stopColor:"#ec6"}}),jsx("stop",{offset:.413,style:{stopColor:"#f1d485"}}),jsx("stop",{offset:.527,style:{stopColor:"#f2d998"}}),jsx("stop",{offset:.607,style:{stopColor:"#f3db9f"}}),jsx("stop",{offset:1,style:{stopColor:"#e6b711"}})]}),jsx("path",{d:"M173 199.8c-14.8 9.8-32.5 15.5-51.6 15.5s-37-5.8-51.8-15.6H52.9c18.3 16.1 42.3 25.8 68.5 25.8 26.1 0 50-9.7 68.3-25.7H173z",style:{fill:"url(#c)"}}),jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"d",x1:31.123,x2:207.766,y1:136.159,y2:136.159,children:[jsx("stop",{offset:0,style:{stopColor:"#e6b711"}}),jsx("stop",{offset:.128,style:{stopColor:"#eac23c"}}),jsx("stop",{offset:.278,style:{stopColor:"#ec6"}}),jsx("stop",{offset:.413,style:{stopColor:"#f1d485"}}),jsx("stop",{offset:.527,style:{stopColor:"#f2d998"}}),jsx("stop",{offset:.607,style:{stopColor:"#f3db9f"}}),jsx("stop",{offset:1,style:{stopColor:"#e6b711"}})]}),jsx("path",{d:"M139.2 193v-1.8c5-.4 10.2-.5 13.4-5 3.8-5.2 3.2-15.4 3.2-21.5V78.5l-47.3 120.4L61.2 81.2v61.1c0 13.6.5 35.1 12.5 44.2 4.3 3.2 9 3.9 14.2 4.7v1.8H31.1v-1.8c1.6-.4 3.2-.7 4.8-1.1 22.6-5.7 22.9-32.4 22.9-51.1v-37.8c0-6.1.5-13.3-3.2-18.5-4.5-6.1-13.4-7.2-20.4-7.5v-1.8H96l29.6 75.4 29.9-75.4h52.3v1.8c-4.8.4-10.2.9-13.4 5-3.8 4.8-3.2 15.9-3.2 21.9v62.5c0 6.3-.7 16.1 3.2 21.5 3.2 4.3 6.2 4.7 11.2 5v1.8h-66.4z",style:{fill:"url(#d)"}}),jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"e",x1:30.453,x2:213.794,y1:63.629,y2:63.629,children:[jsx("stop",{offset:0,style:{stopColor:"#e6b711"}}),jsx("stop",{offset:.128,style:{stopColor:"#eac23c"}}),jsx("stop",{offset:.278,style:{stopColor:"#ec6"}}),jsx("stop",{offset:.413,style:{stopColor:"#f1d485"}}),jsx("stop",{offset:.527,style:{stopColor:"#f2d998"}}),jsx("stop",{offset:.607,style:{stopColor:"#f3db9f"}}),jsx("stop",{offset:1,style:{stopColor:"#e6b711"}})]}),jsx("path",{d:"M30.5 60.6h183.3v6.1H30.5z",style:{fill:"url(#e)"}}),jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"f",x1:196.676,x2:225.538,y1:132.923,y2:132.923,children:[jsx("stop",{offset:0,style:{stopColor:"#e6b711"}}),jsx("stop",{offset:.128,style:{stopColor:"#eac23c"}}),jsx("stop",{offset:.278,style:{stopColor:"#ec6"}}),jsx("stop",{offset:.413,style:{stopColor:"#f1d485"}}),jsx("stop",{offset:.527,style:{stopColor:"#f2d998"}}),jsx("stop",{offset:.607,style:{stopColor:"#f3db9f"}}),jsx("stop",{offset:1,style:{stopColor:"#e6b711"}})]}),jsx("path",{d:"M196.7 177.5c11.5-15.6 18.7-35.2 18.7-56 0-14.1-3.1-27.5-8.8-39.5h11.1c5 12.2 7.8 25.5 7.8 39.5 0 23.4-7.8 45-20.9 62.4l-7.9-6.4z",style:{fill:"url(#f)"}})]});const UserBadge=props=>{const{aria:aria={},badge:badge="million-dollar",className:className,data:data={},htmlOptions:htmlOptions={},id:id,size:size="md"}=props;const image=badge==="million-dollar"?jsx(MillionDollar,{}):jsx(Veteran,{});const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_user_badge_kit",size),globalProps(props),className);return jsx("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx("div",{className:"pb_user_badge_wrapper",children:image})})};function isOfType$4(type){return value=>typeof value===type}var isFunction$2=isOfType$4("function");var isNull$1=value=>value===null;var isRegex$1=value=>Object.prototype.toString.call(value).slice(8,-1)==="RegExp";var isObject$1=value=>!isUndefined$1(value)&&!isNull$1(value)&&(isFunction$2(value)||typeof value==="object");var isUndefined$1=isOfType$4("undefined");function equalArray$1(left,right){const{length:length}=left;if(length!==right.length){return false}for(let index=length;index--!==0;){if(!equal$1(left[index],right[index])){return false}}return true}function equalArrayBuffer$1(left,right){if(left.byteLength!==right.byteLength){return false}const view1=new DataView(left.buffer);const view2=new DataView(right.buffer);let index=left.byteLength;while(index--){if(view1.getUint8(index)!==view2.getUint8(index)){return false}}return true}function equalMap$1(left,right){if(left.size!==right.size){return false}for(const index of left.entries()){if(!right.has(index[0])){return false}}for(const index of left.entries()){if(!equal$1(index[1],right.get(index[0]))){return false}}return true}function equalSet$1(left,right){if(left.size!==right.size){return false}for(const index of left.entries()){if(!right.has(index[0])){return false}}return true}function equal$1(left,right){if(left===right){return true}if(left&&isObject$1(left)&&right&&isObject$1(right)){if(left.constructor!==right.constructor){return false}if(Array.isArray(left)&&Array.isArray(right)){return equalArray$1(left,right)}if(left instanceof Map&&right instanceof Map){return equalMap$1(left,right)}if(left instanceof Set&&right instanceof Set){return equalSet$1(left,right)}if(ArrayBuffer.isView(left)&&ArrayBuffer.isView(right)){return equalArrayBuffer$1(left,right)}if(isRegex$1(left)&&isRegex$1(right)){return left.source===right.source&&left.flags===right.flags}if(left.valueOf!==Object.prototype.valueOf){return left.valueOf()===right.valueOf()}if(left.toString!==Object.prototype.toString){return left.toString()===right.toString()}const leftKeys=Object.keys(left);const rightKeys=Object.keys(right);if(leftKeys.length!==rightKeys.length){return false}for(let index=leftKeys.length;index--!==0;){if(!Object.prototype.hasOwnProperty.call(right,leftKeys[index])){return false}}for(let index=leftKeys.length;index--!==0;){const key=leftKeys[index];if(key==="_owner"&&left.$$typeof){continue}if(!equal$1(left[key],right[key])){return false}}return true}if(Number.isNaN(left)&&Number.isNaN(right)){return true}return left===right}var objectTypes$2=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"];var primitiveTypes$2=["bigint","boolean","null","number","string","symbol","undefined"];function getObjectType$2(value){const objectTypeName=Object.prototype.toString.call(value).slice(8,-1);if(/HTML\w+Element/.test(objectTypeName)){return"HTMLElement"}if(isObjectType$2(objectTypeName)){return objectTypeName}return void 0}function isObjectOfType$2(type){return value=>getObjectType$2(value)===type}function isObjectType$2(name){return objectTypes$2.includes(name)}function isOfType$3(type){return value=>typeof value===type}function isPrimitiveType$2(name){return primitiveTypes$2.includes(name)}var DOM_PROPERTIES_TO_CHECK$2=["innerHTML","ownerDocument","style","attributes","nodeValue"];function is$2(value){if(value===null){return"null"}switch(typeof value){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(is$2.array(value)){return"Array"}if(is$2.plainFunction(value)){return"Function"}const tagType=getObjectType$2(value);if(tagType){return tagType}return"Object"}is$2.array=Array.isArray;is$2.arrayOf=(target,predicate)=>{if(!is$2.array(target)&&!is$2.function(predicate)){return false}return target.every((d=>predicate(d)))};is$2.asyncGeneratorFunction=value=>getObjectType$2(value)==="AsyncGeneratorFunction";is$2.asyncFunction=isObjectOfType$2("AsyncFunction");is$2.bigint=isOfType$3("bigint");is$2.boolean=value=>value===true||value===false;is$2.date=isObjectOfType$2("Date");is$2.defined=value=>!is$2.undefined(value);is$2.domElement=value=>is$2.object(value)&&!is$2.plainObject(value)&&value.nodeType===1&&is$2.string(value.nodeName)&&DOM_PROPERTIES_TO_CHECK$2.every((property=>property in value));is$2.empty=value=>is$2.string(value)&&value.length===0||is$2.array(value)&&value.length===0||is$2.object(value)&&!is$2.map(value)&&!is$2.set(value)&&Object.keys(value).length===0||is$2.set(value)&&value.size===0||is$2.map(value)&&value.size===0;is$2.error=isObjectOfType$2("Error");is$2.function=isOfType$3("function");is$2.generator=value=>is$2.iterable(value)&&is$2.function(value.next)&&is$2.function(value.throw);is$2.generatorFunction=isObjectOfType$2("GeneratorFunction");is$2.instanceOf=(instance,class_)=>{if(!instance||!class_){return false}return Object.getPrototypeOf(instance)===class_.prototype};is$2.iterable=value=>!is$2.nullOrUndefined(value)&&is$2.function(value[Symbol.iterator]);is$2.map=isObjectOfType$2("Map");is$2.nan=value=>Number.isNaN(value);is$2.null=value=>value===null;is$2.nullOrUndefined=value=>is$2.null(value)||is$2.undefined(value);is$2.number=value=>isOfType$3("number")(value)&&!is$2.nan(value);is$2.numericString=value=>is$2.string(value)&&value.length>0&&!Number.isNaN(Number(value));is$2.object=value=>!is$2.nullOrUndefined(value)&&(is$2.function(value)||typeof value==="object");is$2.oneOf=(target,value)=>{if(!is$2.array(target)){return false}return target.indexOf(value)>-1};is$2.plainFunction=isObjectOfType$2("Function");is$2.plainObject=value=>{if(getObjectType$2(value)!=="Object"){return false}const prototype=Object.getPrototypeOf(value);return prototype===null||prototype===Object.getPrototypeOf({})};is$2.primitive=value=>is$2.null(value)||isPrimitiveType$2(typeof value);is$2.promise=isObjectOfType$2("Promise");is$2.propertyOf=(target,key,predicate)=>{if(!is$2.object(target)||!key){return false}const value=target[key];if(is$2.function(predicate)){return predicate(value)}return is$2.defined(value)};is$2.regexp=isObjectOfType$2("RegExp");is$2.set=isObjectOfType$2("Set");is$2.string=isOfType$3("string");is$2.symbol=isOfType$3("symbol");is$2.undefined=isOfType$3("undefined");is$2.weakMap=isObjectOfType$2("WeakMap");is$2.weakSet=isObjectOfType$2("WeakSet");var src_default$1=is$2;var objectTypes$1=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"];var primitiveTypes$1=["bigint","boolean","null","number","string","symbol","undefined"];function getObjectType$1(value){const objectTypeName=Object.prototype.toString.call(value).slice(8,-1);if(/HTML\w+Element/.test(objectTypeName)){return"HTMLElement"}if(isObjectType$1(objectTypeName)){return objectTypeName}return void 0}function isObjectOfType$1(type){return value=>getObjectType$1(value)===type}function isObjectType$1(name){return objectTypes$1.includes(name)}function isOfType$2(type){return value=>typeof value===type}function isPrimitiveType$1(name){return primitiveTypes$1.includes(name)}var DOM_PROPERTIES_TO_CHECK$1=["innerHTML","ownerDocument","style","attributes","nodeValue"];function is$1(value){if(value===null){return"null"}switch(typeof value){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(is$1.array(value)){return"Array"}if(is$1.plainFunction(value)){return"Function"}const tagType=getObjectType$1(value);if(tagType){return tagType}return"Object"}is$1.array=Array.isArray;is$1.arrayOf=(target,predicate)=>{if(!is$1.array(target)&&!is$1.function(predicate)){return false}return target.every((d=>predicate(d)))};is$1.asyncGeneratorFunction=value=>getObjectType$1(value)==="AsyncGeneratorFunction";is$1.asyncFunction=isObjectOfType$1("AsyncFunction");is$1.bigint=isOfType$2("bigint");is$1.boolean=value=>value===true||value===false;is$1.date=isObjectOfType$1("Date");is$1.defined=value=>!is$1.undefined(value);is$1.domElement=value=>is$1.object(value)&&!is$1.plainObject(value)&&value.nodeType===1&&is$1.string(value.nodeName)&&DOM_PROPERTIES_TO_CHECK$1.every((property=>property in value));is$1.empty=value=>is$1.string(value)&&value.length===0||is$1.array(value)&&value.length===0||is$1.object(value)&&!is$1.map(value)&&!is$1.set(value)&&Object.keys(value).length===0||is$1.set(value)&&value.size===0||is$1.map(value)&&value.size===0;is$1.error=isObjectOfType$1("Error");is$1.function=isOfType$2("function");is$1.generator=value=>is$1.iterable(value)&&is$1.function(value.next)&&is$1.function(value.throw);is$1.generatorFunction=isObjectOfType$1("GeneratorFunction");is$1.instanceOf=(instance,class_)=>{if(!instance||!class_){return false}return Object.getPrototypeOf(instance)===class_.prototype};is$1.iterable=value=>!is$1.nullOrUndefined(value)&&is$1.function(value[Symbol.iterator]);is$1.map=isObjectOfType$1("Map");is$1.nan=value=>Number.isNaN(value);is$1.null=value=>value===null;is$1.nullOrUndefined=value=>is$1.null(value)||is$1.undefined(value);is$1.number=value=>isOfType$2("number")(value)&&!is$1.nan(value);is$1.numericString=value=>is$1.string(value)&&value.length>0&&!Number.isNaN(Number(value));is$1.object=value=>!is$1.nullOrUndefined(value)&&(is$1.function(value)||typeof value==="object");is$1.oneOf=(target,value)=>{if(!is$1.array(target)){return false}return target.indexOf(value)>-1};is$1.plainFunction=isObjectOfType$1("Function");is$1.plainObject=value=>{if(getObjectType$1(value)!=="Object"){return false}const prototype=Object.getPrototypeOf(value);return prototype===null||prototype===Object.getPrototypeOf({})};is$1.primitive=value=>is$1.null(value)||isPrimitiveType$1(typeof value);is$1.promise=isObjectOfType$1("Promise");is$1.propertyOf=(target,key,predicate)=>{if(!is$1.object(target)||!key){return false}const value=target[key];if(is$1.function(predicate)){return predicate(value)}return is$1.defined(value)};is$1.regexp=isObjectOfType$1("RegExp");is$1.set=isObjectOfType$1("Set");is$1.string=isOfType$2("string");is$1.symbol=isOfType$2("symbol");is$1.undefined=isOfType$2("undefined");is$1.weakMap=isObjectOfType$1("WeakMap");is$1.weakSet=isObjectOfType$1("WeakSet");var src_default=is$1;function canHaveLength$1(...arguments_){return arguments_.every((d=>src_default.string(d)||src_default.array(d)||src_default.plainObject(d)))}function checkEquality$1(left,right,value){if(!isSameType$1(left,right)){return false}if([left,right].every(src_default.array)){return!left.some(hasValue$1(value))&&right.some(hasValue$1(value))}if([left,right].every(src_default.plainObject)){return!Object.entries(left).some(hasEntry$1(value))&&Object.entries(right).some(hasEntry$1(value))}return right===value}function compareNumbers$1(previousData,data,options){const{actual:actual,key:key,previous:previous,type:type}=options;const left=nested$1(previousData,key);const right=nested$1(data,key);let changed=[left,right].every(src_default.number)&&(type==="increased"?left<right:left>right);if(!src_default.undefined(actual)){changed=changed&&right===actual}if(!src_default.undefined(previous)){changed=changed&&left===previous}return changed}function compareValues$1(previousData,data,options){const{key:key,type:type,value:value}=options;const left=nested$1(previousData,key);const right=nested$1(data,key);const primary=type==="added"?left:right;const secondary=type==="added"?right:left;if(!src_default.nullOrUndefined(value)){if(src_default.defined(primary)){if(src_default.array(primary)||src_default.plainObject(primary)){return checkEquality$1(primary,secondary,value)}}else{return equal$1(secondary,value)}return false}if([left,right].every(src_default.array)){return!secondary.every(isEqualPredicate$1(primary))}if([left,right].every(src_default.plainObject)){return hasExtraKeys$1(Object.keys(primary),Object.keys(secondary))}return![left,right].every((d=>src_default.primitive(d)&&src_default.defined(d)))&&(type==="added"?!src_default.defined(left)&&src_default.defined(right):src_default.defined(left)&&!src_default.defined(right))}function getIterables$1(previousData,data,{key:key}={}){let left=nested$1(previousData,key);let right=nested$1(data,key);if(!isSameType$1(left,right)){throw new TypeError("Inputs have different types")}if(!canHaveLength$1(left,right)){throw new TypeError("Inputs don't have length")}if([left,right].every(src_default.plainObject)){left=Object.keys(left);right=Object.keys(right)}return[left,right]}function hasEntry$1(input){return([key,value])=>{if(src_default.array(input)){return equal$1(input,value)||input.some((d=>equal$1(d,value)||src_default.array(value)&&isEqualPredicate$1(value)(d)))}if(src_default.plainObject(input)&&input[key]){return!!input[key]&&equal$1(input[key],value)}return equal$1(input,value)}}function hasExtraKeys$1(left,right){return right.some((d=>!left.includes(d)))}function hasValue$1(input){return value=>{if(src_default.array(input)){return input.some((d=>equal$1(d,value)||src_default.array(value)&&isEqualPredicate$1(value)(d)))}return equal$1(input,value)}}function includesOrEqualsTo$1(previousValue,value){return src_default.array(previousValue)?previousValue.some((d=>equal$1(d,value))):equal$1(previousValue,value)}function isEqualPredicate$1(data){return value=>data.some((d=>equal$1(d,value)))}function isSameType$1(...arguments_){return arguments_.every(src_default.array)||arguments_.every(src_default.number)||arguments_.every(src_default.plainObject)||arguments_.every(src_default.string)}function nested$1(data,property){if(src_default.plainObject(data)||src_default.array(data)){if(src_default.string(property)){const props=property.split(".");return props.reduce(((acc,d)=>acc&&acc[d]),data)}if(src_default.number(property)){return data[property]}return data}return data}function treeChanges$1(previousData,data){if([previousData,data].some(src_default.nullOrUndefined)){throw new Error("Missing required parameters")}if(![previousData,data].every((d=>src_default.plainObject(d)||src_default.array(d)))){throw new Error("Expected plain objects or array")}const added=(key,value)=>{try{return compareValues$1(previousData,data,{key:key,type:"added",value:value})}catch{return false}};const changed=(key,actual,previous)=>{try{const left=nested$1(previousData,key);const right=nested$1(data,key);const hasActual=src_default.defined(actual);const hasPrevious=src_default.defined(previous);if(hasActual||hasPrevious){const leftComparator=hasPrevious?includesOrEqualsTo$1(previous,left):!includesOrEqualsTo$1(actual,left);const rightComparator=includesOrEqualsTo$1(actual,right);return leftComparator&&rightComparator}if([left,right].every(src_default.array)||[left,right].every(src_default.plainObject)){return!equal$1(left,right)}return left!==right}catch{return false}};const changedFrom=(key,previous,actual)=>{if(!src_default.defined(key)){return false}try{const left=nested$1(previousData,key);const right=nested$1(data,key);const hasActual=src_default.defined(actual);return includesOrEqualsTo$1(previous,left)&&(hasActual?includesOrEqualsTo$1(actual,right):!hasActual)}catch{return false}};const decreased=(key,actual,previous)=>{if(!src_default.defined(key)){return false}try{return compareNumbers$1(previousData,data,{key:key,actual:actual,previous:previous,type:"decreased"})}catch{return false}};const emptied=key=>{try{const[left,right]=getIterables$1(previousData,data,{key:key});return!!left.length&&!right.length}catch{return false}};const filled=key=>{try{const[left,right]=getIterables$1(previousData,data,{key:key});return!left.length&&!!right.length}catch{return false}};const increased=(key,actual,previous)=>{if(!src_default.defined(key)){return false}try{return compareNumbers$1(previousData,data,{key:key,actual:actual,previous:previous,type:"increased"})}catch{return false}};const removed=(key,value)=>{try{return compareValues$1(previousData,data,{key:key,type:"removed",value:value})}catch{return false}};return{added:added,changed:changed,changedFrom:changedFrom,decreased:decreased,emptied:emptied,filled:filled,increased:increased,removed:removed}}var E_NOSCROLL=new Error("Element already at target scroll position");var E_CANCELLED=new Error("Scroll cancelled");var min=Math.min;var ms=Date.now;var scroll={left:make("scrollLeft"),top:make("scrollTop")};function make(prop){return function scroll2(el,to,opts,cb){opts=opts||{};if(typeof opts=="function")cb=opts,opts={};if(typeof cb!="function")cb=noop$2;var start=ms();var from=el[prop];var ease=opts.ease||inOutSine;var duration=!isNaN(opts.duration)?+opts.duration:350;var cancelled=false;return from===to?cb(E_NOSCROLL,el[prop]):requestAnimationFrame(animate2),cancel;function cancel(){cancelled=true}function animate2(timestamp){if(cancelled)return cb(E_CANCELLED,el[prop]);var now=ms();var time=min(1,(now-start)/duration);var eased=ease(time);el[prop]=eased*(to-from)+from;time<1?requestAnimationFrame(animate2):requestAnimationFrame((function(){cb(null,el[prop])}))}}}function inOutSine(n){return.5*(1-Math.cos(Math.PI*n))}function noop$2(){}const scroll$1=getDefaultExportFromCjs(scroll);var scrollparent={exports:{}};(function(module){(function(root,factory){if(module.exports){module.exports=factory()}else{root.Scrollparent=factory()}})(commonjsGlobal,(function(){function isScrolling(node){var overflow=getComputedStyle(node,null).getPropertyValue("overflow");return overflow.indexOf("scroll")>-1||overflow.indexOf("auto")>-1}function scrollParent2(node){if(!(node instanceof HTMLElement||node instanceof SVGElement)){return void 0}var current=node.parentNode;while(current.parentNode){if(isScrolling(current)){return current}current=current.parentNode}return document.scrollingElement||document.documentElement}return scrollParent2}))})(scrollparent);var scrollparentExports=scrollparent.exports;const scrollParent=getDefaultExportFromCjs(scrollparentExports);var isMergeableObject=function isMergeableObject2(value){return isNonNullObject(value)&&!isSpecial(value)};function isNonNullObject(value){return!!value&&typeof value==="object"}function isSpecial(value){var stringValue=Object.prototype.toString.call(value);return stringValue==="[object RegExp]"||stringValue==="[object Date]"||isReactElement(value)}var canUseSymbol=typeof Symbol==="function"&&Symbol.for;var REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(value){return value.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(val){return Array.isArray(val)?[]:{}}function cloneUnlessOtherwiseSpecified(value,options){return options.clone!==false&&options.isMergeableObject(value)?deepmerge(emptyTarget(value),value,options):value}function defaultArrayMerge(target,source,options){return target.concat(source).map((function(element){return cloneUnlessOtherwiseSpecified(element,options)}))}function getMergeFunction(key,options){if(!options.customMerge){return deepmerge}var customMerge=options.customMerge(key);return typeof customMerge==="function"?customMerge:deepmerge}function getEnumerableOwnPropertySymbols(target){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(target).filter((function(symbol){return Object.propertyIsEnumerable.call(target,symbol)})):[]}function getKeys(target){return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))}function propertyIsOnObject(object,property){try{return property in object}catch(_){return false}}function propertyIsUnsafe(target,key){return propertyIsOnObject(target,key)&&!(Object.hasOwnProperty.call(target,key)&&Object.propertyIsEnumerable.call(target,key))}function mergeObject(target,source,options){var destination={};if(options.isMergeableObject(target)){getKeys(target).forEach((function(key){destination[key]=cloneUnlessOtherwiseSpecified(target[key],options)}))}getKeys(source).forEach((function(key){if(propertyIsUnsafe(target,key)){return}if(propertyIsOnObject(target,key)&&options.isMergeableObject(source[key])){destination[key]=getMergeFunction(key,options)(target[key],source[key],options)}else{destination[key]=cloneUnlessOtherwiseSpecified(source[key],options)}}));return destination}function deepmerge(target,source,options){options=options||{};options.arrayMerge=options.arrayMerge||defaultArrayMerge;options.isMergeableObject=options.isMergeableObject||isMergeableObject;options.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var sourceIsArray=Array.isArray(source);var targetIsArray=Array.isArray(target);var sourceAndTargetTypesMatch=sourceIsArray===targetIsArray;if(!sourceAndTargetTypesMatch){return cloneUnlessOtherwiseSpecified(source,options)}else if(sourceIsArray){return options.arrayMerge(target,source,options)}else{return mergeObject(target,source,options)}}deepmerge.all=function deepmergeAll(array,options){if(!Array.isArray(array)){throw new Error("first argument should be an array")}return array.reduce((function(prev,next){return deepmerge(prev,next,options)}),{})};var deepmerge_1=deepmerge;var cjs=deepmerge_1;const deepmerge2=getDefaultExportFromCjs(cjs);
22
22
  /**!
23
23
  * @fileOverview Kickass library to create and place poppers near their reference elements.
24
24
  * @version 1.16.1