import{jsx as jsx$1,Fragment,jsxs}from"react/jsx-runtime";import*as React from"react";import React__default,{createContext,useReducer,useEffect,useMemo,useContext,createElement,useState,useRef,forwardRef,useCallback,useImperativeHandle,useLayoutEffect,Component,Fragment as Fragment$1}from"react";import{l as getDefaultExportFromCjs,r as filter,s as omit,t as get,q as commonjsGlobal,k as colors$1,v as typography,w as merge,x as useCollapsible,y as getAugmentedNamespace,z as createPopper,A as uniqueId,B as cloneDeep,C as isString}from"./lib-Bf_E03gc.js";import*as ReactDOM from"react-dom";import ReactDOM__default,{createPortal}from"react-dom";import{TrixEditor}from"react-trix";import Trix from"trix";import require$$0 from"react-is";var classnames$1={exports:{}}; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(module){(function(){var hasOwn={}.hasOwnProperty;function classNames2(){var classes=[];for(var i=0;iObject.keys(data).reduce(((props,key)=>{props[`${prefix2}-${key}`]=data[key];return props}),{});const noop$1=()=>{};const buildAriaProps=aria=>buildPrefixedProps("aria",aria);const buildDataProps=data=>buildPrefixedProps("data",data);const buildCss=(...rules)=>classnames(rules).replace(/\s/g,"_");const buildHtmlProps=htmlOptions=>{const htmlProps={};Object.keys(htmlOptions).forEach((key=>{htmlProps[key]=htmlOptions[key]}));return htmlProps};const isEmpty$1=value=>value==="";const titleizedWord=word=>word.charAt(0).toUpperCase()+word.slice(1).toLowerCase();const titleize=sentence=>isEmpty$1(sentence)?sentence:sentence.split(" ").map(titleizedWord).join(" ");const notEmpty=value=>!isEmpty$1(value);const joinPresent=(array,separator)=>filter(array,notEmpty).join(separator);const camelToSnakeCase=word=>word.split(/([A-Z])/g).map(((w2,i)=>{const prefix2=i>0?"_":"";return w2===w2.toLowerCase()?w2:prefix2+w2.toLowerCase()})).join("");const BitValues=[0,1];const getResponsivePropClasses=(prop,classPrefix)=>{const keys=Object.keys(prop);return keys.map((size=>{const propValue=typeof prop[size]==="string"?camelToSnakeCase(prop[size]):prop[size];return`${classPrefix}_${size}_${propValue}`})).join(" ")};const getPositioningPropsClasses=(position2,value)=>{let css4="";if(typeof value==="string"){css4+=`${position2}_${value}`}else if(typeof value==="object"&&value.inset){css4+=`${position2}_${value.value}_inset`}else if(typeof value==="object"){css4+=`${position2}_${value.value}`}return css4};const PROP_CATEGORIES={hoverProps:({hover:hover})=>{let css4="";if(!hover)return css4;css4+=hover.shadow?`hover_shadow_${hover.shadow} `:"";css4+=hover.background?`hover_background_${hover.background} `:"";css4+=hover.scale?`hover_scale_${hover.scale} `:"";css4+=hover.color?`hover_color_${hover.color} `:"";return css4},spacingProps:({marginRight:marginRight,marginLeft:marginLeft,marginTop:marginTop,marginBottom:marginBottom,marginX:marginX,marginY:marginY,margin:margin,paddingRight:paddingRight,paddingLeft:paddingLeft,paddingTop:paddingTop,paddingBottom:paddingBottom,paddingX:paddingX,paddingY:paddingY,padding:padding})=>{let css4="";const spacingProps={marginRight:marginRight,marginLeft:marginLeft,marginTop:marginTop,marginBottom:marginBottom,marginX:marginX,marginY:marginY,margin:margin,paddingRight:paddingRight,paddingLeft:paddingLeft,paddingTop:paddingTop,paddingBottom:paddingBottom,paddingX:paddingX,paddingY:paddingY,padding:padding};const screenSizeValues=["xs","sm","md","lg","xl"];function handleObjectValue(properties,prefix2){let classResult="";const breakValue=properties.break||"on";const defaultValue=properties.default||null;Object.entries(properties).forEach((([key,value])=>{if(screenSizeValues.includes(key)){classResult+=`break_${breakValue}_${key}:${prefix2}_${value} `}}));if(defaultValue){classResult+=`${prefix2}_${defaultValue} `}return classResult}function getPrefix(key){const prefixes={marginRight:"mr",marginLeft:"ml",marginTop:"mt",marginBottom:"mb",marginX:"mx",marginY:"my",margin:"m",paddingRight:"pr",paddingLeft:"pl",paddingTop:"pt",paddingBottom:"pb",paddingX:"px",paddingY:"py",padding:"p"};return prefixes[key]}Object.entries(spacingProps).forEach((([key,value])=>{if(value){if(typeof value==="object"){css4+=handleObjectValue(value,getPrefix(key))}else{const prefix2=getPrefix(key);css4+=`${prefix2}_${value} `}}}));return css4.trim()},borderRadiusProps:({borderRadius:borderRadius2})=>{let css4="";css4+=borderRadius2?`border_radius_${borderRadius2} `:"";return css4},overflowProps:({overflow:overflow,overflowX:overflowX,overflowY:overflowY})=>{let css4="";css4+=overflow?`overflow_${overflow}`:"";css4+=overflowX?`overflow_x_${overflowX}`:"";css4+=overflowY?`overflow_y_${overflowY}`:"";return css4},truncateProps:({truncate:truncate})=>{if(typeof truncate==="object"){return""}else{return truncate?`truncate_${truncate}`:""}},darkProps:({dark:dark})=>dark?"dark":"",numberSpacingProps:({numberSpacing:numberSpacing})=>{let css4="";css4+=numberSpacing?`ns_${numberSpacing} `:"";return css4},maxWidthProps:({maxWidth:maxWidth})=>{let css4="";css4+=maxWidth?`max_width_${maxWidth} `:"";return css4},zIndexProps:zIndex=>{let css4="";Object.entries(zIndex).forEach((zIndexEntry=>{if(zIndexEntry[0]=="zIndex"){if(typeof zIndexEntry[1]=="number"){css4+=`z_index_${zIndexEntry[1]} `}else if(typeof zIndexEntry[1]=="object"){Object.entries(zIndexEntry[1]).forEach((zIndexObj=>{css4+=`z_index_${zIndexObj[0]}_${zIndexObj[1]} `}))}}}));return css4},shadowProps:({shadow:shadow})=>{let css4="";css4+=shadow?`shadow_${shadow} `:"";return css4},lineHeightProps:({lineHeight:lineHeight})=>{let css4="";css4+=lineHeight?`line_height_${lineHeight} `:"";return css4},displayProps:display=>{let css4="";Object.entries(display).forEach((displayEntry=>{if(displayEntry[0]=="display"){if(typeof displayEntry[1]=="string"){css4+=`display_${displayEntry[1]} `}else if(typeof displayEntry[1]=="object"){Object.entries(displayEntry[1]).forEach((displayObj=>{css4+=`display_${displayObj[0]}_${displayObj[1]} `}))}else;}}));return css4},cursorProps:({cursor:cursor2})=>{let css4="";css4+=cursor2?`cursor_${camelToSnakeCase(cursor2)}`:"";return css4},alignContentProps:({alignContent:alignContent})=>{if(typeof alignContent==="object"){return getResponsivePropClasses(alignContent,"align_content")}return alignContent?`align_content_${camelToSnakeCase(alignContent)}`:""},alignItemsProps:({alignItems:alignItems})=>{if(typeof alignItems==="object"){return getResponsivePropClasses(alignItems,"align_items")}else{return alignItems?`align_items_${camelToSnakeCase(alignItems)}`:""}},alignSelfProps:({alignSelf:alignSelf})=>{if(typeof alignSelf==="object"){return getResponsivePropClasses(alignSelf,"align_self")}else{return alignSelf?`align_self_${alignSelf}`:""}},flexDirectionProps:({flexDirection:flexDirection})=>{if(typeof flexDirection=="object"){return getResponsivePropClasses(flexDirection,"flex_direction")}else{return flexDirection?`flex_direction_${camelToSnakeCase(flexDirection)}`:""}},flexWrapProps:({flexWrap:flexWrap})=>{if(typeof flexWrap=="object"){return getResponsivePropClasses(flexWrap,"flex_wrap")}else{return flexWrap?`flex_wrap_${camelToSnakeCase(flexWrap)}`:""}},flexProps:({flex:flex})=>{if(typeof flex==="object"){return getResponsivePropClasses(flex,"flex")}else{return flex?`flex_${flex}`:""}},flexGrowProps:({flexGrow:flexGrow})=>{if(typeof flexGrow=="object"){return getResponsivePropClasses(flexGrow,"flex_grow")}else if(BitValues.includes(flexGrow)){return`flex_grow_${flexGrow}`}else{return""}},flexShrinkProps:({flexShrink:flexShrink})=>{if(typeof flexShrink=="object"){return getResponsivePropClasses(flexShrink,"flex_shrink")}else if(BitValues.includes(flexShrink)){return`flex_shrink_${flexShrink}`}else{return""}},justifyContentProps:({justifyContent:justifyContent})=>{if(typeof justifyContent==="object"){return getResponsivePropClasses(justifyContent,"justify_content")}else{return justifyContent?`justify_content_${camelToSnakeCase(justifyContent)}`:""}},justifySelfProps:({justifySelf:justifySelf})=>{if(typeof justifySelf==="object"){return getResponsivePropClasses(justifySelf,"justify_self")}else{return justifySelf?`justify_self_${justifySelf}`:""}},orderProps:({order:order})=>{if(typeof order==="object"){return getResponsivePropClasses(order,"flex_order")}else{return order?`flex_order_${order}`:""}},positionProps:({position:position2})=>{let css4="";css4+=position2&&position2!=="static"?`position_${position2}`:"";return css4},topProps:({top:top})=>getPositioningPropsClasses("top",top),rightProps:({right:right})=>getPositioningPropsClasses("right",right),bottomProps:({bottom:bottom})=>getPositioningPropsClasses("bottom",bottom),leftProps:({left:left})=>getPositioningPropsClasses("left",left),textAlignProps:({textAlign:textAlign})=>{if(typeof textAlign==="object"){return getResponsivePropClasses(textAlign,"text_align")}else{return textAlign?`text_align_${textAlign} `:""}},verticalAlignProps:({verticalAlign:verticalAlign})=>{if(typeof verticalAlign==="object"){return getResponsivePropClasses(verticalAlign,"vertical_align")}else{return verticalAlign?`vertical_align_${verticalAlign} `:""}}};const globalProps=(props,defaultProps2={})=>{const allProps=Object.assign(Object.assign({},props),defaultProps2);return Object.keys(PROP_CATEGORIES).map((key=>PROP_CATEGORIES[key](allProps))).filter((value=>(value===null||value===void 0?void 0:value.length)>0)).join(" ")};const domSafeProps=props=>{const notSafeProps=["marginRight","marginLeft","marginTop","marginBottom","marginX","marginY","margin","paddingRight","paddingLeft","paddingTop","paddingBottom","paddingX","paddingY","padding","dark","enableDrag"];return omit(props,notSafeProps)};const Flex=props=>{const{align:align="none",children:children,className:className,data:data={},inline:inline=false,horizontal:horizontal="left",htmlOptions:htmlOptions={},justify:justify="none",orientation:orientation="row",spacing:spacing2="none",gap:gap="none",rowGap:rowGap="none",columnGap:columnGap="none",reverse:reverse=false,vertical:vertical="top",wrap:wrap=false,alignSelf:alignSelf="none"}=props;const orientationClass=orientation!==void 0?`orientation_${orientation}`:"";const justifyClass=justify!=="none"?`justify_content_${justify}`:`justify_content_${horizontal}`;const alignClass=align!=="none"?`align_items_${align}`:`align_items_${vertical}`;const inlineClass=inline===true?"inline":"";const spacingClass=spacing2!==void 0?`spacing_${spacing2}`:"";const gapClass=gap!=="none"?`gap_${gap}`:"";const rowGapClass=rowGap!=="none"?`rowGap_${rowGap}`:"";const columnGapClass=columnGap!=="none"?`columnGap_${columnGap}`:"";const wrapClass=wrap===true?"wrap":"";const reverseClass=reverse===true?"reverse":"";const alignSelfClass=alignSelf!=="none"?`align_self_${alignSelf}`:"";const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx$1("div",Object.assign({className:classnames(buildCss("pb_flex_kit",orientationClass,justifyClass,alignClass,inlineClass,reverseClass,wrapClass,spacingClass,gapClass,rowGapClass,columnGapClass,alignSelfClass),globalProps(props),className)},dataProps,htmlProps,{children:children}),void 0)};const FlexItem=props=>{const{children:children,className:className,fixedSize:fixedSize,grow:grow,htmlOptions:htmlOptions={},shrink:shrink,flex:flex="none",order:order="none",alignSelf:alignSelf,displayFlex:displayFlex}=props;const growClass=grow===true?"grow":"";const displayFlexClass=displayFlex===true?`display_flex_${displayFlex}`:"";const flexClass=flex!=="none"?`flex_${flex}`:"";const shrinkClass=shrink===true?"shrink":"";const alignSelfClass=alignSelf?`align_self_${alignSelf}`:"";const fixedStyle=fixedSize!==void 0?{flexBasis:`${fixedSize}`}:null;const orderClass=order!=="none"?`order_${order}`:null;const htmlProps=buildHtmlProps(htmlOptions);return jsx$1("div",Object.assign({},htmlProps,{className:classnames(buildCss("pb_flex_item_kit",growClass,shrinkClass,flexClass,displayFlexClass),orderClass,alignSelfClass,globalProps(props),className),style:fixedStyle},{children:children}),void 0)};const isValidEmoji=emoji=>{const emojiRegex=new RegExp("^(\\p{Emoji}|\\uFE0F|\\u200D|\\u20E3)+$","u");return emojiRegex.test(emoji)};const flipMap={fa:{horizontal:"fa-flip-horizontal",vertical:"fa-flip-vertical",both:"fa-flip-horizontal fa-flip-vertical",none:""},svg:{horizontal:"flip_horizontal",vertical:"flip_vertical",both:"flip_horizontal flip_vertical",none:""}};const pulseMap={fa:"fa-pulse",svg:"pulse"};const spinMap={fa:"fa-spin",svg:"spin"};const rotateMap={fa:{90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},svg:{90:"rotate_90",180:"rotate_180",270:"rotate_270"}};const sizeMap={fa:{lg:"fa-lg",xs:"fa-xs",sm:"fa-sm","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x","":""},svg:{lg:"svg_lg",xs:"svg_xs",sm:"svg_sm","1x":"svg_1x","2x":"svg_2x","3x":"svg_3x","4x":"svg_4x","5x":"svg_5x","6x":"svg_6x","7x":"svg_7x","8x":"svg_8x","9x":"svg_9x","10x":"svg_10x","":""}};const Icon=props=>{const{aria:aria={},border:border=false,className:className,color:color,customIcon:customIcon,data:data={},fixedWidth:fixedWidth=true,flip:flip="none",htmlOptions:htmlOptions={},icon:icon="",id:id,inverse:inverse=false,listItem:listItem=false,pull:pull,pulse:pulse=false,rotation:rotation,size:size,fontStyle:fontStyle="far",spin:spin=false}=props;let iconElement=typeof icon==="object"?icon:null;if(!customIcon&&!iconElement){const PowerIcon=window.PB_ICONS?window.PB_ICONS[icon]:null;if(PowerIcon){iconElement=jsx$1(PowerIcon,{},void 0)}}const isFA=!iconElement&&!customIcon;let classes=classnames(!iconElement&&!customIcon?"pb_icon_kit":"",iconElement||customIcon?"pb_custom_icon":fontStyle,iconElement?"svg-inline--fa":"",color?`color_${color}`:"",globalProps(props),className);const transformClasses=classnames(flip?flipMap[isFA?"fa":"svg"][flip]:null,pulse?pulseMap[isFA?"fa":"svg"]:null,rotation?rotateMap[isFA?"fa":"svg"][rotation]:null,spin?spinMap[isFA?"fa":"svg"]:null,size?sizeMap[isFA?"fa":"svg"][size]:null,border?isFA?"fa-border":"svg_border":null,fixedWidth?isFA?"fa-fw":"svg_fw":null,inverse?isFA?"fa-inverse":"svg_inverse":null,listItem?isFA?"fa-li":"svg_li":null,pull?isFA?`fa-pull-${pull}`:`pull_${pull}`:null);classes+=` ${transformClasses}`;if(isFA){const faClassList={"fa-border":border,"fa-inverse":inverse,"fa-li":listItem,[`fa-${size}`]:size,[`fa-pull-${pull}`]:pull};faClassList[`fa-${icon}`]=icon;classes+=` ${classnames(faClassList)}`}const classesEmoji=classnames("pb_icon_kit_emoji",globalProps(props),className);aria.label?null:aria.label=`${icon} icon`;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const displaySVG=customIcon2=>{if(iconElement||customIcon2)return jsx$1(Fragment,{children:React__default.cloneElement(iconElement||customIcon2,Object.assign(Object.assign(Object.assign({},dataProps),htmlProps),{className:classes,id:id,width:"auto",height:"auto"}))},void 0);else if(isValidEmoji(icon))return jsx$1(Fragment,{children:jsx$1("span",Object.assign({},dataProps,htmlProps,{className:classesEmoji,id:id},{children:icon}),void 0)},void 0);else return jsxs(Fragment,{children:[jsx$1("i",Object.assign({},dataProps,htmlProps,{className:classes,id:id}),void 0),jsx$1("span",Object.assign({},ariaProps,{hidden:true}),void 0)]},void 0)};return jsx$1(Fragment,{children:displaySVG(customIcon)},void 0)};var main={exports:{}};(function(module){module.exports=function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module2=installedModules[moduleId]={exports:{},id:moduleId,loaded:false};modules[moduleId].call(module2.exports,module2,module2.exports,__webpack_require__);module2.loaded=true;return module2.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="";return __webpack_require__(0)}([function(module2,exports,__webpack_require__){module2.exports=__webpack_require__(1)},function(module2,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:true});function _interopRequireDefault2(obj){return obj&&obj.__esModule?obj:{default:obj}}var _Highlighter=__webpack_require__(2);var _Highlighter2=_interopRequireDefault2(_Highlighter);exports["default"]=_Highlighter2["default"];module2.exports=exports["default"]},function(module2,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:true});var _extends2=Object.assign||function(target){for(var i=1;i=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i]}return target}var _highlightWordsCore=__webpack_require__(3);var _propTypes3=__webpack_require__(4);var _propTypes22=_interopRequireDefault2(_propTypes3);var _react3=__webpack_require__(14);var _memoizeOne=__webpack_require__(15);var _memoizeOne2=_interopRequireDefault2(_memoizeOne);Highlighter2.propTypes={activeClassName:_propTypes22["default"].string,activeIndex:_propTypes22["default"].number,activeStyle:_propTypes22["default"].object,autoEscape:_propTypes22["default"].bool,className:_propTypes22["default"].string,findChunks:_propTypes22["default"].func,highlightClassName:_propTypes22["default"].oneOfType([_propTypes22["default"].object,_propTypes22["default"].string]),highlightStyle:_propTypes22["default"].object,highlightTag:_propTypes22["default"].oneOfType([_propTypes22["default"].node,_propTypes22["default"].func,_propTypes22["default"].string]),sanitize:_propTypes22["default"].func,searchWords:_propTypes22["default"].arrayOf(_propTypes22["default"].oneOfType([_propTypes22["default"].string,_propTypes22["default"].instanceOf(RegExp)])).isRequired,textToHighlight:_propTypes22["default"].string.isRequired,unhighlightTag:_propTypes22["default"].oneOfType([_propTypes22["default"].node,_propTypes22["default"].func,_propTypes22["default"].string]),unhighlightClassName:_propTypes22["default"].string,unhighlightStyle:_propTypes22["default"].object};function Highlighter2(_ref3){var _ref$activeClassName=_ref3.activeClassName;var activeClassName=_ref$activeClassName===void 0?"":_ref$activeClassName;var _ref$activeIndex=_ref3.activeIndex;var activeIndex=_ref$activeIndex===void 0?-1:_ref$activeIndex;var activeStyle=_ref3.activeStyle;var autoEscape=_ref3.autoEscape;var _ref$caseSensitive=_ref3.caseSensitive;var caseSensitive=_ref$caseSensitive===void 0?false:_ref$caseSensitive;var className=_ref3.className;var findChunks=_ref3.findChunks;var _ref$highlightClassName=_ref3.highlightClassName;var highlightClassName=_ref$highlightClassName===void 0?"":_ref$highlightClassName;var _ref$highlightStyle=_ref3.highlightStyle;var highlightStyle=_ref$highlightStyle===void 0?{}:_ref$highlightStyle;var _ref$highlightTag=_ref3.highlightTag;var highlightTag=_ref$highlightTag===void 0?"mark":_ref$highlightTag;var sanitize=_ref3.sanitize;var searchWords=_ref3.searchWords;var textToHighlight=_ref3.textToHighlight;var _ref$unhighlightTag=_ref3.unhighlightTag;var unhighlightTag=_ref$unhighlightTag===void 0?"span":_ref$unhighlightTag;var _ref$unhighlightClassName=_ref3.unhighlightClassName;var unhighlightClassName=_ref$unhighlightClassName===void 0?"":_ref$unhighlightClassName;var unhighlightStyle=_ref3.unhighlightStyle;var rest=_objectWithoutProperties2(_ref3,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]);var chunks=(0,_highlightWordsCore.findAll)({autoEscape:autoEscape,caseSensitive:caseSensitive,findChunks:findChunks,sanitize:sanitize,searchWords:searchWords,textToHighlight:textToHighlight});var HighlightTag=highlightTag;var highlightIndex=-1;var highlightClassNames="";var highlightStyles=void 0;var lowercaseProps=function lowercaseProps2(object){var mapped={};for(var key in object){mapped[key.toLowerCase()]=object[key]}return mapped};var memoizedLowercaseProps=(0,_memoizeOne2["default"])(lowercaseProps);return(0,_react3.createElement)("span",_extends2({className:className},rest,{children:chunks.map((function(chunk,index2){var text=textToHighlight.substr(chunk.start,chunk.end-chunk.start);if(chunk.highlight){highlightIndex++;var highlightClass=void 0;if(typeof highlightClassName==="object"){if(!caseSensitive){highlightClassName=memoizedLowercaseProps(highlightClassName);highlightClass=highlightClassName[text.toLowerCase()]}else{highlightClass=highlightClassName[text]}}else{highlightClass=highlightClassName}var isActive=highlightIndex===+activeIndex;highlightClassNames=highlightClass+" "+(isActive?activeClassName:"");highlightStyles=isActive===true&&activeStyle!=null?Object.assign({},highlightStyle,activeStyle):highlightStyle;var props={children:text,className:highlightClassNames,key:index2,style:highlightStyles};if(typeof HighlightTag!=="string"){props.highlightIndex=highlightIndex}return(0,_react3.createElement)(HighlightTag,props)}else{return(0,_react3.createElement)(unhighlightTag,{children:text,className:unhighlightClassName,key:index2,style:unhighlightStyle})}}))}))}module2.exports=exports["default"]},function(module2,exports){module2.exports=function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module3=installedModules[moduleId]={exports:{},id:moduleId,loaded:false};modules[moduleId].call(module3.exports,module3,module3.exports,__webpack_require__);module3.loaded=true;return module3.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="";return __webpack_require__(0)}([function(module3,exports2,__webpack_require__){module3.exports=__webpack_require__(1)},function(module3,exports2,__webpack_require__){Object.defineProperty(exports2,"__esModule",{value:true});var _utils=__webpack_require__(2);Object.defineProperty(exports2,"combineChunks",{enumerable:true,get:function get2(){return _utils.combineChunks}});Object.defineProperty(exports2,"fillInChunks",{enumerable:true,get:function get2(){return _utils.fillInChunks}});Object.defineProperty(exports2,"findAll",{enumerable:true,get:function get2(){return _utils.findAll}});Object.defineProperty(exports2,"findChunks",{enumerable:true,get:function get2(){return _utils.findChunks}})},function(module3,exports2){Object.defineProperty(exports2,"__esModule",{value:true});exports2.findAll=function findAll2(_ref3){var autoEscape=_ref3.autoEscape,_ref$caseSensitive=_ref3.caseSensitive,caseSensitive=_ref$caseSensitive===void 0?false:_ref$caseSensitive,_ref$findChunks=_ref3.findChunks,findChunks=_ref$findChunks===void 0?defaultFindChunks:_ref$findChunks,sanitize=_ref3.sanitize,searchWords=_ref3.searchWords,textToHighlight=_ref3.textToHighlight;return fillInChunks({chunksToHighlight:combineChunks({chunks:findChunks({autoEscape:autoEscape,caseSensitive:caseSensitive,sanitize:sanitize,searchWords:searchWords,textToHighlight:textToHighlight})}),totalLength:textToHighlight?textToHighlight.length:0})};var combineChunks=exports2.combineChunks=function combineChunks2(_ref22){var chunks=_ref22.chunks;chunks=chunks.sort((function(first,second){return first.start-second.start})).reduce((function(processedChunks,nextChunk){if(processedChunks.length===0){return[nextChunk]}else{var prevChunk=processedChunks.pop();if(nextChunk.start<=prevChunk.end){var endIndex=Math.max(prevChunk.end,nextChunk.end);processedChunks.push({start:prevChunk.start,end:endIndex})}else{processedChunks.push(prevChunk,nextChunk)}return processedChunks}}),[]);return chunks};var defaultFindChunks=function defaultFindChunks2(_ref3){var autoEscape=_ref3.autoEscape,caseSensitive=_ref3.caseSensitive,_ref3$sanitize=_ref3.sanitize,sanitize=_ref3$sanitize===void 0?identity:_ref3$sanitize,searchWords=_ref3.searchWords,textToHighlight=_ref3.textToHighlight;textToHighlight=sanitize(textToHighlight);return searchWords.filter((function(searchWord){return searchWord})).reduce((function(chunks,searchWord){searchWord=sanitize(searchWord);if(autoEscape){searchWord=escapeRegExpFn(searchWord)}var regex=new RegExp(searchWord,caseSensitive?"g":"gi");var match2=void 0;while(match2=regex.exec(textToHighlight)){var start=match2.index;var end=regex.lastIndex;if(end>start){chunks.push({start:start,end:end})}if(match2.index==regex.lastIndex){regex.lastIndex++}}return chunks}),[])};exports2.findChunks=defaultFindChunks;var fillInChunks=exports2.fillInChunks=function fillInChunks2(_ref4){var chunksToHighlight=_ref4.chunksToHighlight,totalLength=_ref4.totalLength;var allChunks=[];var append2=function append22(start,end,highlight){if(end-start>0){allChunks.push({start:start,end:end,highlight:highlight})}};if(chunksToHighlight.length===0){append2(0,totalLength,false)}else{var lastIndex=0;chunksToHighlight.forEach((function(chunk){append2(lastIndex,chunk.start,false);append2(chunk.start,chunk.end,true);lastIndex=chunk.end}));append2(lastIndex,totalLength,false)}return allChunks};function identity(value){return value}function escapeRegExpFn(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(module2,exports,__webpack_require__){(function(process){if(process.env.NODE_ENV!=="production"){var REACT_ELEMENT_TYPE=typeof Symbol==="function"&&Symbol.for&&Symbol.for("react.element")||60103;var isValidElement=function(object){return typeof object==="object"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE};var throwOnDirectAccess=true;module2.exports=__webpack_require__(6)(isValidElement,throwOnDirectAccess)}else{module2.exports=__webpack_require__(13)()}}).call(exports,__webpack_require__(5))},function(module2,exports){var process=module2.exports={};var cachedSetTimeout;var cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){cachedSetTimeout=setTimeout}else{cachedSetTimeout=defaultSetTimout}}catch(e2){cachedSetTimeout=defaultSetTimout}try{if(typeof clearTimeout==="function"){cachedClearTimeout=clearTimeout}else{cachedClearTimeout=defaultClearTimeout}}catch(e2){cachedClearTimeout=defaultClearTimeout}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout){return setTimeout(fun,0)}if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(fun,0)}try{return cachedSetTimeout(fun,0)}catch(e2){try{return cachedSetTimeout.call(null,fun,0)}catch(e22){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout){return clearTimeout(marker)}if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(marker)}try{return cachedClearTimeout(marker)}catch(e2){try{return cachedClearTimeout.call(null,marker)}catch(e22){return cachedClearTimeout.call(this,marker)}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue)}else{queueIndex=-1}if(queue.length){drainQueue()}}function drainQueue(){if(draining){return}var timeout=runTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex1){for(var i=1;i1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}var argIndex=0;var message="Warning: "+format.replace(/%s/g,(function(){return args[argIndex++]}));if(typeof console!=="undefined"){console.error(message)}try{throw new Error(message)}catch(x2){}};warning2=function warning22(condition,format){if(format===void 0){throw new Error("`warning(condition, format, ...args)` requires a warning message argument")}if(format.indexOf("Failed Composite propType: ")===0){return}if(!condition){for(var _len2=arguments.length,args=Array(_len2>2?_len2-2:0),_key2=2;_key2<_len2;_key2++){args[_key2-2]=arguments[_key2]}printWarning.apply(void 0,[format].concat(args))}}}module2.exports=warning2}).call(exports,__webpack_require__(5))},function(module2,exports){var getOwnPropertySymbols=Object.getOwnPropertySymbols;var hasOwnProperty2=Object.prototype.hasOwnProperty;var propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(val){if(val===null||val===void 0){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(val)}function shouldUseNative(){try{if(!Object.assign){return false}var test1=new String("abc");test1[5]="de";if(Object.getOwnPropertyNames(test1)[0]==="5"){return false}var test2={};for(var i=0;i<10;i++){test2["_"+String.fromCharCode(i)]=i}var order2=Object.getOwnPropertyNames(test2).map((function(n2){return test2[n2]}));if(order2.join("")!=="0123456789"){return false}var test3={};"abcdefghijklmnopqrst".split("").forEach((function(letter){test3[letter]=letter}));if(Object.keys(Object.assign({},test3)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(err){return false}}module2.exports=shouldUseNative()?Object.assign:function(target,source){var from2;var to=toObject(target);var symbols;for(var s2=1;s21&&arguments[1]!==void 0?arguments[1]:simpleIsEqual;var lastThis=void 0;var lastArgs=[];var lastResult=void 0;var calledOnce=false;var isNewArgEqualToLast=function isNewArgEqualToLast2(newArg,index22){return isEqual3(newArg,lastArgs[index22])};var result=function result2(){for(var _len=arguments.length,newArgs=Array(_len),_key=0;_key<_len;_key++){newArgs[_key]=arguments[_key]}if(calledOnce&&lastThis===this&&newArgs.length===lastArgs.length&&newArgs.every(isNewArgEqualToLast)){return lastResult}calledOnce=true;lastThis=this;lastArgs=newArgs;lastResult=resultFn.apply(this,newArgs);return lastResult};return result}module2.exports=index2}])})(main);var mainExports=main.exports;const Highlighter=getDefaultExportFromCjs(mainExports);const Highlight=props=>{const{children:children,className:className="pb_highlight_kit",data:data={},highlightedText:highlightedText=["highlight"],htmlOptions:htmlOptions={},id:id="",text:text=""}=props;const htmlProps=buildHtmlProps(htmlOptions);const highlightContent=text||children;return jsx$1(Highlighter,Object.assign({autoEscape:true,data:data,highlightClassName:classnames(globalProps(props),className),highlightTag:"mark",id:id,searchWords:highlightedText,textToHighlight:highlightContent},htmlProps),void 0)};const Body$1=props=>{if(props.variant);const{aria:aria={},children:children,className:className,color:color="",data:data={},highlightedText:highlightedText=[],highlighting:highlighting=false,htmlOptions:htmlOptions={},id:id="",status:status=null,tag:tag="div",text:text="",variant:variant=null}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_body_kit",color,variant,status),globalProps(props),className);const Tag=`${tag}`;return jsxs(Tag,Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id},{children:[highlighting&&jsx$1(Highlight,Object.assign({highlightedText:highlightedText,text:text},{children:children}),void 0),!highlighting&&(text||children)]}),void 0)};const Caption=props=>{if(props.variant);const{aria:aria={},children:children,className:className,color:color,data:data={},htmlOptions:htmlOptions={},id:id,size:size="md",tag:tag="div",text:text,variant:variant=null}=props;const tagOptions=["h1","h2","h3","h4","h5","h6","p","span","div","caption"];const Tag=tagOptions.includes(tag)?tag:"div";const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css4=classnames(buildCss("pb_caption_kit",size,variant,color),globalProps(props),className);return jsx$1(Tag,Object.assign({},ariaProps,dataProps,htmlProps,{className:css4,id:id},{children:text||children}),void 0)};const getPlacementProps=(placement,size)=>{let placementMapping={};switch(size){case"xxs":case"xs":placementMapping={"top-right":{top:"xs",right:"xs"},"bottom-left":{bottom:"xs",left:"xs"},"top-left":{top:"xs",left:"xs"},"bottom-right":{bottom:"xs",right:"xs"},"bottom-center":{bottom:"xs",className:"overlay_bottom_center"},"top-center":{top:"xs",className:"overlay_top_center"},"left-center":{left:"sm",className:"overlay_left_center"},"right-center":{right:"sm",className:"overlay_right_center"}};break;case"sm":placementMapping={"top-right":{top:"0",right:"xs"},"bottom-left":{bottom:"0",left:"xs"},"top-left":{top:"0",left:"xs"},"bottom-right":{bottom:"0",right:"xs"},"bottom-center":{bottom:"xs",className:"overlay_bottom_center"},"top-center":{top:"xs",className:"overlay_top_center"},"left-center":{left:"sm",className:"overlay_left_center"},"right-center":{right:"sm",className:"overlay_right_center"}};break;case"md":case"lg":placementMapping={"top-right":{top:"0",right:"0"},"bottom-left":{bottom:"0",left:"0"},"top-left":{top:"0",left:"0"},"bottom-right":{bottom:"0",right:"0"},"bottom-center":{bottom:"xs",className:"overlay_bottom_center"},"top-center":{top:"xs",className:"overlay_top_center"},"left-center":{left:"sm",className:"overlay_left_center"},"right-center":{right:"sm",className:"overlay_right_center"}};break;case"xl":placementMapping={"top-right":{top:{value:"xxs",inset:true},right:{value:"xxs",inset:true}},"bottom-left":{bottom:{value:"xxs",inset:true},left:{value:"xxs",inset:true}},"top-left":{top:{value:"xxs",inset:true},left:{value:"xxs",inset:true}},"bottom-right":{bottom:{value:"xxs",inset:true},right:{value:"xxs",inset:true}},"bottom-center":{bottom:"xs",className:"overlay_bottom_center"},"top-center":{top:"xs",className:"overlay_top_center"},"left-center":{left:"sm",className:"overlay_left_center"},"right-center":{right:"sm",className:"overlay_right_center"}};break}return placementMapping[placement]||{}};const Image=props=>{const{alt:alt="",aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,onError:onError=null,rounded:rounded=false,size:size="",transition:transition="fade",url:url=""}=props;const ariaProps=buildAriaProps(aria);const classes=classnames(buildCss("pb_image_kit",size?`size_${size}`:null),"lazyload",transition,{rounded:rounded},globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx$1("img",{...ariaProps,...dataProps,...htmlProps,alt:alt,className:classes,"data-src":url,id:id,onError:onError,src:url})};const OnlineStatus=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,status:status="offline"}=props;aria.label=status;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_online_status_kit",status),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id})};const Badge=props=>{const{aria:aria={},className:className,closeProps:closeProps={},data:data={},htmlOptions:htmlOptions={},id:id,removeIcon:removeIcon=false,removeOnClick:removeOnClick,rounded:rounded=false,text:text,variant:variant="neutral"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css4=classnames(buildCss("pb_badge_kit",variant==="success"?"success_sm":variant,rounded?"rounded":null),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:css4,id:id,children:jsxs("span",{children:[text,removeIcon&&jsx$1("span",{onClick:removeOnClick,style:{cursor:"pointer"},...closeProps,children:jsx$1(Icon,{fixedWidth:true,icon:"times"})})]})})};const IconCircle=props=>{const{aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},icon:icon,id:id,size:size="md",variant:variant="default"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_icon_circle_kit",`size_${size}`,variant),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx$1(Icon,{dark:dark,icon:icon})})};const initialState={items:[],dragData:{id:"",initialGroup:""},isDragging:"",activeContainer:""};const reducer=(state,action)=>{switch(action.type){case"SET_ITEMS":return Object.assign(Object.assign({},state),{items:action.payload});case"SET_DRAG_DATA":return Object.assign(Object.assign({},state),{dragData:action.payload});case"SET_IS_DRAGGING":return Object.assign(Object.assign({},state),{isDragging:action.payload});case"SET_ACTIVE_CONTAINER":return Object.assign(Object.assign({},state),{activeContainer:action.payload});case"CHANGE_CATEGORY":return Object.assign(Object.assign({},state),{items:state.items.map((item=>item.id===action.payload.itemId?Object.assign(Object.assign({},item),{container:action.payload.container}):item))});case"REORDER_ITEMS":{const{dragId:dragId,targetId:targetId}=action.payload;const newItems=[...state.items];const draggedItem=newItems.find((item=>item.id===dragId));const draggedIndex=newItems.indexOf(draggedItem);const targetIndex=newItems.findIndex((item=>item.id===targetId));newItems.splice(draggedIndex,1);newItems.splice(targetIndex,0,draggedItem);return Object.assign(Object.assign({},state),{items:newItems})}default:return state}};const DragContext=createContext({});const DraggableContext=()=>useContext(DragContext);const DraggableProvider=({children:children,initialItems:initialItems,onReorder:onReorder,onDragStart:onDragStart,onDragEnter:onDragEnter,onDragEnd:onDragEnd,onDrop:onDrop,onDragOver:onDragOver})=>{const[state,dispatch]=useReducer(reducer,initialState);useEffect((()=>{dispatch({type:"SET_ITEMS",payload:initialItems})}),[initialItems]);useEffect((()=>{onReorder(state.items)}),[state.items]);const handleDragStart=(id,container)=>{dispatch({type:"SET_DRAG_DATA",payload:{id:id,initialGroup:container}});dispatch({type:"SET_IS_DRAGGING",payload:id});if(onDragStart)onDragStart(id,container)};const handleDragEnter=(id,container)=>{if(state.dragData.id!==id){dispatch({type:"REORDER_ITEMS",payload:{dragId:state.dragData.id,targetId:id}});dispatch({type:"SET_DRAG_DATA",payload:{id:state.dragData.id,initialGroup:container}})}if(onDragEnter)onDragEnter(id,container)};const handleDragEnd=()=>{dispatch({type:"SET_IS_DRAGGING",payload:""});dispatch({type:"SET_ACTIVE_CONTAINER",payload:""});if(onDragEnd)onDragEnd()};const changeCategory=(itemId,container)=>{dispatch({type:"CHANGE_CATEGORY",payload:{itemId:itemId,container:container}})};const handleDrop=container=>{dispatch({type:"SET_IS_DRAGGING",payload:""});dispatch({type:"SET_ACTIVE_CONTAINER",payload:""});changeCategory(state.dragData.id,container);if(onDrop)onDrop(container)};const handleDragOver=(e2,container)=>{e2.preventDefault();dispatch({type:"SET_ACTIVE_CONTAINER",payload:container});if(onDragOver)onDragOver(e2,container)};const contextValue=useMemo((()=>({items:state.items,dragData:state.dragData,isDragging:state.isDragging,activeContainer:state.activeContainer,handleDragStart:handleDragStart,handleDragEnter:handleDragEnter,handleDragEnd:handleDragEnd,handleDrop:handleDrop,handleDragOver:handleDragOver})),[state]);return jsx$1(DragContext.Provider,Object.assign({value:contextValue},{children:children}),void 0)};const DraggableContainer=props=>{const{aria:aria={},children:children,className:className,container:container,data:data={},htmlOptions:htmlOptions={},id:id}=props;const{handleDragOver:handleDragOver,handleDrop:handleDrop,activeContainer:activeContainer}=DraggableContext();const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_draggable_container"),`${activeContainer===container?"active":""}`,globalProps(props),className);return createElement("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id,key:container,onDragOver:e2=>handleDragOver(e2,container),onDrop:()=>handleDrop(container)}),children)};const DraggableItem=props=>{const{aria:aria={},children:children,className:className,container:container,data:data={},htmlOptions:htmlOptions={},id:id,dragId:dragId}=props;const{isDragging:isDragging,handleDragStart:handleDragStart,handleDragEnter:handleDragEnter,handleDragEnd:handleDragEnd}=DraggableContext();const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_draggable_item"),`${isDragging===dragId?"is_dragging":""}`,globalProps(props),className);return createElement("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,draggable:true,id:id,key:dragId,onDragEnd:()=>handleDragEnd(),onDragEnter:()=>handleDragEnter(dragId,container),onDragStart:()=>handleDragStart(dragId,container)}),children)};const Draggable=props=>{const{aria:aria={},className:className,children:children,data:data={},htmlOptions:htmlOptions={},id:id}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_draggable"),globalProps(props),className);return jsx$1("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id},{children:children}),void 0)};Draggable.Container=DraggableContainer;Draggable.Item=DraggableItem;const Header=props=>{const{children:children,className:className,headerColor:headerColor="category_1",headerColorStriped:headerColorStriped=false}=props;const headerCSS=buildCss("pb_card_header_kit",`${headerColor}`,headerColorStriped?"striped":"");const headerSpacing=globalProps(props);return jsx$1("div",Object.assign({className:classnames(headerCSS,headerSpacing,className)},{children:children}),void 0)};const Body=props=>{const{children:children,className:className}=props;const bodyCSS=buildCss("pb_card_body_kit");const bodySpacing=globalProps(props);return jsx$1("div",Object.assign({className:classnames(bodyCSS,bodySpacing,className)},{children:children}),void 0)};const Card=props=>{const{aria:aria={},background:background="none",borderNone:borderNone=false,borderRadius:borderRadius2="md",children:children,className:className,data:data={},dragId:dragId,dragHandle:dragHandle=true,draggableItem:draggableItem=false,highlight:highlight={},htmlOptions:htmlOptions={},selected:selected=false,tag:tag="div"}=props;const borderCSS=borderNone==true?"border_none":"";const selectedCSS=selected==true?"selected":"deselected";const backgroundCSS=background=="none"?"":`background_${background}`;const cardCss=buildCss("pb_card_kit",selectedCSS,borderCSS,`border_radius_${borderRadius2}`,backgroundCSS,{[`highlight_${highlight.position}`]:highlight.position,[`highlight_${highlight.color}`]:highlight.color});const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const cardChildren=React__default.Children.toArray(children);const subComponentTags=tagName=>cardChildren.filter((c2=>get(c2,"type.displayName")===tagName)).map(((child,i)=>{if(React__default.isValidElement(child)){return React__default.cloneElement(child,{key:`${tagName.toLowerCase()}-${i}`})}}));const nonHeaderChildren=cardChildren.filter((child=>get(child,"type.displayName")!=="Header"));const tagOptions=["div","section","footer","header","article","aside","main","nav"];const Tag=tagOptions.includes(tag)?tag:"div";return jsx$1(Fragment,{children:draggableItem?jsx$1(Draggable.Item,Object.assign({dragId:dragId},{children:jsxs(Tag,Object.assign({},ariaProps,dataProps,htmlProps,{className:classnames(cardCss,globalProps(props),className)},{children:[subComponentTags("Header"),dragHandle?jsxs(Flex,{children:[jsx$1("span",Object.assign({className:"card_draggable_handle"},{children:jsx$1(Icon,{icon:"grip-dots-vertical",paddingRight:"xs",verticalAlign:"middle"},void 0)}),void 0),jsx$1("div",Object.assign({style:{width:"100%"}},{children:nonHeaderChildren}),void 0)]},void 0):nonHeaderChildren]}),void 0)}),dragId):jsxs(Tag,Object.assign({},ariaProps,dataProps,htmlProps,{className:classnames(cardCss,globalProps(props),className)},{children:[subComponentTags("Header"),nonHeaderChildren]}),void 0)},void 0)};Card.Header=Header;Card.Body=Body;const firstTwoInitials=name2=>name2.split(/\s/).map((name22=>name22[0])).join("").substring(0,2);const Avatar=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},name:name2=void 0,componentOverlay:componentOverlay,id:id="",imageAlt:imageAlt="",imageUrl:imageUrl,size:size="md",status:status=null,dark:dark=false}=props;const dataProps=buildDataProps(data);const ariaProps=buildAriaProps(aria);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_avatar_kit",`size_${size}`),globalProps(props),className);const initials=name2&&firstTwoInitials(name2);dataProps["data-initials"]=initials;const[error,setError]=useState(false);const handleError=()=>setError(true);const canShowImage=imageUrl&&!error;return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:componentOverlay?jsxs(Flex,{display:"display_inline_block",position:"relative",children:[jsx$1("div",{className:"avatar_wrapper","data-initials":initials,children:canShowImage&&jsx$1(Image,{alt:imageAlt?imageAlt:name2,onError:handleError,url:imageUrl})}),componentOverlay.component==="badge"&&jsx$1(Card,{borderNone:true,borderRadius:"rounded",padding:"none",position:"absolute",...getPlacementProps(componentOverlay.placement,size),children:jsx$1(Badge,{rounded:true,text:componentOverlay.text,variant:componentOverlay.variant})}),componentOverlay.component==="iconCircle"&&jsx$1(Card,{borderNone:true,borderRadius:"rounded",htmlOptions:{style:{padding:"2px"}},position:"absolute",...getPlacementProps(componentOverlay.placement,size),children:jsx$1(IconCircle,{icon:componentOverlay.icon,size:"xxs",variant:componentOverlay.variant})})]}):jsxs(Fragment,{children:[jsx$1("div",{className:"avatar_wrapper","data-initials":initials,children:canShowImage&&jsx$1(Image,{alt:imageAlt?imageAlt:name2,onError:handleError,url:imageUrl})}),status&&jsx$1(OnlineStatus,{className:`size_${size}`,dark:dark,status:status})]})})};const breakpoints={xs:"(max-width: 575px)",sm:"(min-width: 576px) and (max-width: 767px)",md:"(min-width: 768px) and (max-width: 991px)",lg:"(min-width: 992px) and (max-width: 1199px)",xl:"(min-width: 1200px)"};const getResponsiveValue=prop=>{if(typeof prop==="string"){return prop}for(const[bp,value]of Object.entries(prop||{})){if(bp!=="default"&&window.matchMedia(breakpoints[bp]).matches){return value}}return(prop==null?void 0:prop.default)||void 0};const Background=props=>{const{alt:alt=void 0,aria:aria={},backgroundColor:backgroundColor="light",backgroundPosition:backgroundPosition="",backgroundRepeat:backgroundRepeat="initial",backgroundSize:backgroundSize="cover",children:children,className:className,customColor:customColor,data:data={},htmlOptions:htmlOptions={},id:id,imageUrl:imageUrl="",tag:tag="div",transition:transition=""}=props;const[responsiveProps,setResponsiveProps]=useState({backgroundSize:getResponsiveValue(backgroundSize),backgroundPosition:getResponsiveValue(backgroundPosition),backgroundRepeat:getResponsiveValue(backgroundRepeat),backgroundColor:getResponsiveValue(backgroundColor),imageUrl:getResponsiveValue(imageUrl)});useEffect((()=>{const updateResponsiveProps=()=>{setResponsiveProps({backgroundSize:getResponsiveValue(props.backgroundSize),backgroundPosition:getResponsiveValue(props.backgroundPosition),backgroundRepeat:getResponsiveValue(props.backgroundRepeat),backgroundColor:getResponsiveValue(props.backgroundColor),imageUrl:getResponsiveValue(props.imageUrl)})};window.addEventListener("resize",updateResponsiveProps);return()=>window.removeEventListener("resize",updateResponsiveProps)}),[props]);const{backgroundColor:resBackgroundColor,backgroundPosition:resBackgroundPosition,backgroundRepeat:resBackgroundRepeat,backgroundSize:resBackgroundSize,imageUrl:resImageUrl}=responsiveProps;const classes=classnames(buildCss("pb_background_kit"),"lazyload",globalProps(props),transition,{[`pb_background_color_${resBackgroundColor}`]:resBackgroundColor&&!customColor,[`pb_background_custom_color`]:!!customColor},className);const backgroundStyle={backgroundColor:customColor||void 0,...resImageUrl!==""?{backgroundImage:resImageUrl?`url(${resImageUrl})`:void 0,backgroundRepeat:resBackgroundRepeat||void 0,backgroundPosition:resBackgroundPosition||void 0,backgroundSize:resBackgroundSize||void 0}:{}};const Tag=`${tag}`;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx$1(Tag,{...ariaProps,...dataProps,...htmlProps,alt:alt,className:classes,id:id,style:backgroundStyle,children:children})};var highchartsReact_min={exports:{}};(function(module,exports){!function(t2,e2){module.exports=e2(React__default)}("undefined"!=typeof self?self:commonjsGlobal,(function(t2){return function(t3){function e2(n2){if(r2[n2])return r2[n2].exports;var o2=r2[n2]={i:n2,l:false,exports:{}};return t3[n2].call(o2.exports,o2,o2.exports,e2),o2.l=true,o2.exports}var r2={};return e2.m=t3,e2.c=r2,e2.d=function(t4,r3,n2){e2.o(t4,r3)||Object.defineProperty(t4,r3,{configurable:false,enumerable:true,get:n2})},e2.n=function(t4){var r3=t4&&t4.__esModule?function(){return t4.default}:function(){return t4};return e2.d(r3,"a",r3),r3},e2.o=function(t4,e3){return Object.prototype.hasOwnProperty.call(t4,e3)},e2.p="",e2(e2.s=0)}([function(t3,e2,r2){function n2(){return n2=Object.assign?Object.assign.bind():function(t4){for(var e3=1;e3t4.length)&&(e3=t4.length);for(var r3=0,n3=new Array(e3);r3parseInt(a3.userAgent.split("Firefox/")[1],10);a3.hasTouch=!!a3.win.TouchEvent;a3.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a3.noop=function(){};a3.supportsPassiveEvents=function(){var g3=false;if(!a3.isMS){var A2=Object.defineProperty({},"passive",{get:function(){g3=true}});a3.win.addEventListener&&a3.win.removeEventListener&&(a3.win.addEventListener("testPassive",a3.noop,A2),a3.win.removeEventListener("testPassive",a3.noop,A2))}return g3}();a3.charts=[];a3.dateFormats={};a3.seriesTypes={};a3.symbolSizes={};a3.chartCount=0})(a2||(a2={}));return a2}));K(g2,"Core/Utilities.js",[g2["Core/Globals.js"]],(function(a2){function g3(b3,c3,n3,J){var z2=c3?"Highcharts error":"Highcharts warning";32===b3&&(b3=""+z2+": Deprecated member");var q=l2(b3),u3=q?""+z2+" #"+b3+": www.highcharts.com/errors/"+b3+"/":b3.toString();if("undefined"!==typeof J){var N="";q&&(u3+="?");E2(J,(function(b4,z3){N+="\n - ".concat(z3,": ").concat(b4);q&&(u3+=encodeURI(z3)+"="+encodeURI(b4))}));u3+=N}y2(a2,"displayError",{chart:n3,code:b3,message:u3,params:J},(function(){if(c3)throw Error(u3);f2.console&&-1===g3.messages.indexOf(u3)&&console.warn(u3)}));g3.messages.push(u3)}function x2(b3,f3){var z2={};E2(b3,(function(c3,q){if(H2(b3[q],true)&&!b3.nodeType&&f3[q])c3=x2(b3[q],f3[q]),Object.keys(c3).length&&(z2[q]=c3);else if(H2(b3[q])||b3[q]!==f3[q]||q in b3&&!(q in f3))z2[q]=b3[q]}));return z2}function F2(b3,f3){return parseInt(b3,f3||10)}function C2(b3){return"string"===typeof b3}function B(b3){b3=Object.prototype.toString.call(b3);return"[object Array]"===b3||"[object Array Iterator]"===b3}function H2(b3,f3){return!!b3&&"object"===typeof b3&&(!f3||!B(b3))}function t2(b3){return H2(b3)&&"number"===typeof b3.nodeType}function r2(b3){var f3=b3&&b3.constructor;return!(!H2(b3,true)||t2(b3)||!f3||!f3.name||"Object"===f3.name)}function l2(b3){return"number"===typeof b3&&!isNaN(b3)&&Infinity>b3&&-Infinity=c3-1&&(c3=Math.floor(n3)),Math.max(0,c3-(z2(b3,"padding-left",true)||0)-(z2(b3,"padding-right",true)||0));if("height"===c3)return Math.max(0,Math.min(b3.offsetHeight,b3.scrollHeight)-(z2(b3,"padding-top",true)||0)-(z2(b3,"padding-bottom",true)||0));f2.getComputedStyle||g3(27,true);if(b3=f2.getComputedStyle(b3,void 0)){var q=b3.getPropertyValue(c3);m2(n3,"opacity"!==c3)&&(q=F2(q))}return q}function E2(b3,f3,c3){for(var z2 in b3)Object.hasOwnProperty.call(b3,z2)&&f3.call(c3||b3[z2],b3[z2],z2,b3)}function L2(b3,f3,c3){function z2(f4,c4){var v2=b3.removeEventListener||a2.removeEventListenerPolyfill;v2&&v2.call(b3,f4,c4,false)}function q(c4){var v2;if(b3.nodeName){if(f3){var q2={};q2[f3]=true}else q2=c4;E2(q2,(function(b4,f4){if(c4[f4])for(v2=c4[f4].length;v2--;)z2(f4,c4[f4][v2].fn)}))}}var n3="function"===typeof b3&&b3.prototype||b3;if(Object.hasOwnProperty.call(n3,"hcEvents")){var u3=n3.hcEvents;f3?(n3=u3[f3]||[],c3?(u3[f3]=n3.filter((function(b4){return c3!==b4.fn})),z2(f3,c3)):(q(u3),u3[f3]=[])):(q(u3),delete n3.hcEvents)}}function y2(b3,f3,c3,J){c3=c3||{};if(w2.createEvent&&(b3.dispatchEvent||b3.fireEvent&&b3!==a2)){var z2=w2.createEvent("Events");z2.initEvent(f3,true,true);c3=h2(z2,c3);b3.dispatchEvent?b3.dispatchEvent(c3):b3.fireEvent(f3,c3)}else if(b3.hcEvents){c3.target||h2(c3,{preventDefault:function(){c3.defaultPrevented=true},target:b3,type:f3});z2=[];for(var q=b3,n3=false;q.hcEvents;)Object.hasOwnProperty.call(q,"hcEvents")&&q.hcEvents[f3]&&(z2.length&&(n3=true),z2.unshift.apply(z2,q.hcEvents[f3])),q=Object.getPrototypeOf(q);n3&&z2.sort((function(b4,f4){return b4.order-f4.order}));z2.forEach((function(f4){false===f4.fn.call(b3,c3)&&c3.preventDefault()}))}J&&!c3.defaultPrevented&&J.call(b3,c3)}var c2=a2.charts,w2=a2.doc,f2=a2.win;(g3||(g3={})).messages=[];Math.easeInOutSine=function(b3){return-.5*(Math.cos(Math.PI*b3)-1)};var n2=Array.prototype.find?function(b3,f3){return b3.find(f3)}:function(b3,f3){var c3,q=b3.length;for(c3=0;c3c3&&(c3=b3[f3]);return c3},arrayMin:function(b3){for(var f3=b3.length,c3=b3[0];f3--;)b3[f3]f3?b3=f3&&(c3=[1/f3])));for(J=0;J=b3||!n3&&u3<=(c3[J]+(c3[J+1]||c3[J]))/2);J++);return q=D2(q*f3,-Math.round(Math.log(.001)/Math.LN10))},objectEach:E2,offset:function(b3){var c3=w2.documentElement;b3=b3.parentElement||b3.parentNode?b3.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:b3.top+(f2.pageYOffset||c3.scrollTop)-(c3.clientTop||0),left:b3.left+(f2.pageXOffset||c3.scrollLeft)-(c3.clientLeft||0),width:b3.width,height:b3.height}},pad:function(b3,c3,f3){return Array((c3||2)+1-String(b3).replace("-","").length).join(f3||"0")+b3},pick:m2,pInt:F2,relativeLength:function(b3,c3,f3){return/%$/.test(b3)?c3*parseFloat(b3)/100+(f3||0):parseFloat(b3)},removeEvent:L2,splat:function(b3){return B(b3)?b3:[b3]},stableSort:function(b3,c3){var f3=b3.length,J,n3;for(n3=0;n3>16,(l2&65280)>>8,l2&255,1]:4===r2&&(t2=[(l2&3840)>>4|(l2&3840)>>8,(l2&240)>>4|l2&240,(l2&15)<<4|l2&15,1])}if(!t2)for(l2=g4.parsers.length;l2--&&!t2;){var e2=g4.parsers[l2];(r2=e2.regex.exec(a3))&&(t2=e2.parse(r2))}}t2&&(this.rgba=t2)};g4.prototype.get=function(a3){var t2=this.input,r2=this.rgba;if("object"===typeof t2&&"undefined"!==typeof this.stops){var l2=F2(t2);l2.stops=[].slice.call(l2.stops);this.stops.forEach((function(e2,d2){l2.stops[d2]=[l2.stops[d2][0],e2.get(a3)]}));return l2}return r2&&A2(r2[0])?"rgb"===a3||!a3&&1===r2[3]?"rgb("+r2[0]+","+r2[1]+","+r2[2]+")":"a"===a3?"".concat(r2[3]):"rgba("+r2.join(",")+")":t2};g4.prototype.brighten=function(a3){var t2=this.rgba;if(this.stops)this.stops.forEach((function(l2){l2.brighten(a3)}));else if(A2(a3)&&0!==a3)for(var r2=0;3>r2;r2++)t2[r2]+=C2(255*a3),0>t2[r2]&&(t2[r2]=0),255c2?"AM":"PM",P:12>c2?"am":"pm",S:l2(p3.getSeconds()),L:l2(Math.floor(h3%1e3),3)},a2.dateFormats);r2(p3,(function(b3,c3){for(;-1!==d3.indexOf("%"+c3);)d3=d3.replace("%"+c3,"function"===typeof b3?b3.call(m3,h3):b3)}));return k3?d3.substr(0,1).toUpperCase()+d3.substr(1):d3};p2.prototype.resolveDTLFormat=function(e3){return H2(e3,true)?e3:(e3=d2(e3),{main:e3[0],from:e3[1],to:e3[2]})};p2.prototype.getTimeTicks=function(d3,k3,p3,m3){var y2=this,c2=[],w2={},f2=new y2.Date(k3),n2=d3.unitRange,b2=d3.count||1,u2;m3=e2(m3,1);if(F2(k3)){y2.set("Milliseconds",f2,n2>=h2.second?0:b2*Math.floor(y2.get("Milliseconds",f2)/b2));n2>=h2.second&&y2.set("Seconds",f2,n2>=h2.minute?0:b2*Math.floor(y2.get("Seconds",f2)/b2));n2>=h2.minute&&y2.set("Minutes",f2,n2>=h2.hour?0:b2*Math.floor(y2.get("Minutes",f2)/b2));n2>=h2.hour&&y2.set("Hours",f2,n2>=h2.day?0:b2*Math.floor(y2.get("Hours",f2)/b2));n2>=h2.day&&y2.set("Date",f2,n2>=h2.month?1:Math.max(1,b2*Math.floor(y2.get("Date",f2)/b2)));if(n2>=h2.month){y2.set("Month",f2,n2>=h2.year?0:b2*Math.floor(y2.get("Month",f2)/b2));var z2=y2.get("FullYear",f2)}n2>=h2.year&&y2.set("FullYear",f2,z2-z2%b2);n2===h2.week&&(z2=y2.get("Day",f2),y2.set("Date",f2,y2.get("Date",f2)-z2+m3+(z24*h2.month||y2.getTimezoneOffset(k3)!==y2.getTimezoneOffset(p3));k3=f2.getTime();for(f2=1;k3c2.length&&c2.forEach((function(b3){0===b3%18e5&&"000000000"===y2.dateFormat("%H%M%S%L",b3)&&(w2[b3]="day")}))}c2.info=B(d3,{higherRanks:w2,totalRange:n2*b2});return c2};p2.prototype.getDateFormat=function(d3,e3,k3,p3){var m3=this.dateFormat("%m-%d %H:%M:%S.%L",e3),c2={millisecond:15,second:12,minute:9,hour:6,day:3},w2="millisecond";for(f2 in h2){if(d3===h2.week&&+this.dateFormat("%w",e3)===k3&&"00:00:00.000"===m3.substr(6)){var f2="week";break}if(h2[f2]>d3){f2=w2;break}if(c2[f2]&&m3.substr(c2[f2])!=="01-01 00:00:00.000".substr(c2[f2]))break;"week"!==f2&&(w2=f2)}return this.resolveDTLFormat(p3[f2]).main};return p2}();return g3}));K(g2,"Core/Defaults.js",[g2["Core/Chart/ChartDefaults.js"],g2["Core/Color/Color.js"],g2["Core/Globals.js"],g2["Core/Color/Palettes.js"],g2["Core/Time.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B){g3=g3.parse;var A2=B.merge,t2={colors:F2.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:a2,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:x2.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:x2.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:' {series.name}: {point.y}
',backgroundColor:g3("#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"}};t2.chart.styledMode=false;var r2=new C2(A2(t2.global,t2.time));a2={defaultOptions:t2,defaultTime:r2,getOptions:function(){return t2},setOptions:function(l2){A2(true,t2,l2);if(l2.time||l2.global)x2.time?x2.time.update(A2(t2.global,t2.time,l2.global,l2.time)):x2.time=r2;return t2}};return a2}));K(g2,"Core/Animation/Fx.js",[g2["Core/Color/Color.js"],g2["Core/Globals.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=a2.parse,C2=g3.win,B=x2.isNumber,H2=x2.objectEach;return function(){function a3(a4,l2,e2){this.pos=NaN;this.options=l2;this.elem=a4;this.prop=e2}a3.prototype.dSetter=function(){var a4=this.paths,l2=a4&&a4[0];a4=a4&&a4[1];var e2=this.now||0,d2=[];if(1!==e2&&l2&&a4)if(l2.length===a4.length&&1>e2)for(var h2=0;h2=m2+this.startTime){this.now=this.end;this.pos=1;this.update();var p2=k2[this.prop]=true;H2(k2,(function(d3){true!==d3&&(p2=false)}));p2&&h2&&h2.call(d2);a4=false}else this.pos=e2.easing((l2-this.startTime)/m2),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a4=true;return a4};a3.prototype.initPath=function(a4,l2,e2){function d2(d3,c2){for(;d3.lengthp2[1]){var g4=e2+ +p2[1];0<=g4?(p2[0]=(+p2[0]).toExponential(g4).split("e")[0],e2=g4):(p2[0]=p2[0].split(".")[0]||0,a3=20>e2?(p2[0]*Math.pow(10,p2[1])).toFixed(e2):0,p2[1]=0)}g4=(Math.abs(p2[1]?p2[0]:a3)+Math.pow(10,-Math.max(e2,k2)-1)).toFixed(e2);k2=String(r2(g4));var E2=3a3?"-":"")+(E2?k2.substr(0,E2)+h2:"");a3=0>+p2[1]&&!l2?"0":a3+k2.substr(E2).replace(/(\d{3})(?=\d)/g,"$1"+h2);e2&&(a3+=d2+g4.slice(-e2));p2[1]&&0!==+a3&&(a3+="e"+p2[1]);return a3}var F2=a2.defaultOptions,C2=a2.defaultTime,B=g3.getNestedProperty,H2=g3.isNumber,t2=g3.pick,r2=g3.pInt;return{dateFormat:function(a3,e2,d2){return C2.dateFormat(a3,e2,d2)},format:function(a3,e2,d2){var h2="{",m2=false,k2=/f$/,p2=/\.([0-9])/,l2=F2.lang,g4=d2&&d2.time||C2;d2=d2&&d2.numberFormatter||A2;for(var E2=[];a3;){var t3=a3.indexOf(h2);if(-1===t3)break;var y2=a3.slice(0,t3);if(m2){y2=y2.split(":");h2=B(y2.shift()||"",e2);if(y2.length&&"number"===typeof h2)if(y2=y2.join(":"),k2.test(y2)){var c2=parseInt((y2.match(p2)||["","-1"])[1],10);null!==h2&&(h2=d2(h2,c2,l2.decimalPoint,-1d2){F2(a4,h2);for(I=k2=0;I<=d2;)I+=a4[k2].size,k2++;D2=a4.splice(k2-1,a4.length)}F2(a4,m2);for(a4=a4.map((function(d3){return{size:d3.size,targets:[d3.target],align:x2(d3.align,.5)}}));p2;){for(k2=a4.length;k2--;)d2=a4[k2],h2=(Math.min.apply(0,d2.targets)+Math.max.apply(0,d2.targets))/2,d2.pos=g3(h2-d2.size*d2.align,0,r2-d2.size);k2=a4.length;for(p2=false;k2--;)0a4[k2].pos&&(a4[k2-1].size+=a4[k2].size,a4[k2-1].targets=a4[k2-1].targets.concat(a4[k2].targets),a4[k2-1].align=.5,a4[k2-1].pos+a4[k2-1].size>r2&&(a4[k2-1].pos=r2-a4[k2-1].size),a4.splice(k2,1),p2=true)}e2.push.apply(e2,D2);k2=0;a4.some((function(d3){var h3=0;return(d3.targets||[]).some((function(){e2[k2].pos=d3.pos+h3;if("undefined"!==typeof l2&&Math.abs(e2[k2].pos-e2[k2].target)>l2)return e2.slice(0,k2+1).forEach((function(d4){return delete d4.pos})),e2.reducedLen=(e2.reducedLen||r2)-.1*r2,e2.reducedLen>.1*r2&&A2(e2,r2,l2),true;h3+=e2[k2].size;k2++;return false}))}));F2(e2,m2);return e2}a3.distribute=A2})(C2||(C2={}));return C2}));K(g2,"Core/Renderer/SVG/SVGElement.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/Color/Color.js"],g2["Core/Globals.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2){var A2=a2.animate,B=a2.animObject,H2=a2.stop,t2=x2.deg2rad,r2=x2.doc,l2=x2.svg,e2=x2.SVG_NS,d2=x2.win,h2=F2.addEvent,m2=F2.attr,k2=F2.createElement,p2=F2.css,D2=F2.defined,I=F2.erase,E2=F2.extend,L2=F2.fireEvent,y2=F2.isArray,c2=F2.isFunction,w2=F2.isString,f2=F2.merge,n2=F2.objectEach,b2=F2.pick,u2=F2.pInt,z2=F2.syncTimeout,q=F2.uniqueKey;a2=function(){function a3(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=e2;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}a3.prototype._defaultGetter=function(c3){c3=b2(this[c3+"Value"],this[c3],this.element?this.element.getAttribute(c3):null,0);/^[\-0-9\.]+$/.test(c3)&&(c3=parseFloat(c3));return c3};a3.prototype._defaultSetter=function(b3,c3,f3){f3.setAttribute(c3,b3)};a3.prototype.add=function(b3){var c3=this.renderer,f3=this.element;b3&&(this.parentGroup=b3);"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&c3.buildText(this);this.added=true;if(!b3||b3.handleZ||this.zIndex)var d3=this.zIndexSetter();d3||(b3?b3.element:c3.box).appendChild(f3);if(this.onAdd)this.onAdd();return this};a3.prototype.addClass=function(b3,c3){var f3=c3?"":this.attr("class")||"";b3=(b3||"").split(/ /g).reduce((function(b4,c4){-1===f3.indexOf(c4)&&b4.push(c4);return b4}),f3?[f3]:[]).join(" ");b3!==f3&&this.attr("class",b3);return this};a3.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=false)};a3.prototype.align=function(c3,f3,d3){var n3={},e3=this.renderer,v2=e3.alignedObjects,q2,J,u3;if(c3){if(this.alignOptions=c3,this.alignByTranslate=f3,!d3||w2(d3))this.alignTo=q2=d3||"renderer",I(v2,this),v2.push(this),d3=void 0}else c3=this.alignOptions,f3=this.alignByTranslate,q2=this.alignTo;d3=b2(d3,e3[q2],"scrollablePlotBox"===q2?e3.plotBox:void 0,e3);q2=c3.align;var a4=c3.verticalAlign;e3=(d3.x||0)+(c3.x||0);v2=(d3.y||0)+(c3.y||0);"right"===q2?J=1:"center"===q2&&(J=2);J&&(e3+=(d3.width-(c3.width||0))/J);n3[f3?"translateX":"x"]=Math.round(e3);"bottom"===a4?u3=1:"middle"===a4&&(u3=2);u3&&(v2+=(d3.height-(c3.height||0))/u3);n3[f3?"translateY":"y"]=Math.round(v2);this[this.placed?"animate":"attr"](n3);this.placed=true;this.alignAttr=n3;return this};a3.prototype.alignSetter=function(b3){var c3={left:"start",center:"middle",right:"end"};c3[b3]&&(this.alignValue=b3,this.element.setAttribute("text-anchor",c3[b3]))};a3.prototype.animate=function(c3,f3,d3){var e3=this,q2=B(b2(f3,this.renderer.globalAnimation,true));f3=q2.defer;b2(r2.hidden,r2.msHidden,r2.webkitHidden,false)&&(q2.duration=0);0!==q2.duration?(d3&&(q2.complete=d3),z2((function(){e3.element&&A2(e3,c3,q2)}),f3)):(this.attr(c3,void 0,d3||q2.complete),n2(c3,(function(b3,c4){q2.step&&q2.step.call(this,b3,{prop:c4,pos:1,elem:this})}),this));return this};a3.prototype.applyTextOutline=function(b3){var c3=this.element;-1!==b3.indexOf("contrast")&&(b3=b3.replace(/contrast/g,this.renderer.getContrast(c3.style.fill)));var f3=b3.split(" ");b3=f3[f3.length-1];if((f3=f3[0])&&"none"!==f3&&x2.svg){this.fakeTS=true;f3=f3.replace(/(^[\d\.]+)(.*?)$/g,(function(b4,c4,f4){return 2*Number(c4)+f4}));this.removeTextOutline();var d3=r2.createElementNS(e2,"tspan");m2(d3,{class:"highcharts-text-outline",fill:b3,stroke:b3,"stroke-width":f3,"stroke-linejoin":"round"});b3=c3.querySelector("textPath")||c3;[].forEach.call(b3.childNodes,(function(b4){var c4=b4.cloneNode(true);c4.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(b5){return c4.removeAttribute(b5)}));d3.appendChild(c4)}));var n3=0;[].forEach.call(b3.querySelectorAll("text tspan"),(function(b4){n3+=Number(b4.getAttribute("dy"))}));f3=r2.createElementNS(e2,"tspan");f3.textContent="​";m2(f3,{x:Number(c3.getAttribute("x")),dy:-n3});d3.appendChild(f3);b3.insertBefore(d3,b3.firstChild)}};a3.prototype.attr=function(b3,c3,f3,d3){var e3=this.element,v2=this.symbolCustomAttribs,q2,u3=this,J,a4;if("string"===typeof b3&&"undefined"!==typeof c3){var G=b3;b3={};b3[G]=c3}"string"===typeof b3?u3=(this[b3+"Getter"]||this._defaultGetter).call(this,b3,e3):(n2(b3,(function(c4,f4){J=false;d3||H2(this,f4);this.symbolName&&-1!==v2.indexOf(f4)&&(q2||(this.symbolAttr(b3),q2=true),J=true);!this.rotation||"x"!==f4&&"y"!==f4||(this.doTransform=true);J||(a4=this[f4+"Setter"]||this._defaultSetter,a4.call(this,c4,f4,e3),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(f4)&&this.updateShadows(f4,c4,a4))}),this),this.afterSetters());f3&&f3.call(this);return u3};a3.prototype.clip=function(b3){return this.attr("clip-path",b3?"url("+this.renderer.url+"#"+b3.id+")":"none")};a3.prototype.crisp=function(b3,c3){c3=c3||b3.strokeWidth||0;var f3=Math.round(c3)%2/2;b3.x=Math.floor(b3.x||this.x||0)+f3;b3.y=Math.floor(b3.y||this.y||0)+f3;b3.width=Math.floor((b3.width||this.width||0)-2*f3);b3.height=Math.floor((b3.height||this.height||0)-2*f3);D2(b3.strokeWidth)&&(b3.strokeWidth=c3);return b3};a3.prototype.complexColor=function(b3,c3,d3){var e3=this.renderer,u3,v2,a4,J,h3,z3,G,k3,M,w3,m3=[],p3;L2(this.renderer,"complexColor",{args:arguments},(function(){b3.radialGradient?v2="radialGradient":b3.linearGradient&&(v2="linearGradient");if(v2){a4=b3[v2];h3=e3.gradients;z3=b3.stops;M=d3.radialReference;y2(a4)&&(b3[v2]=a4={x1:a4[0],y1:a4[1],x2:a4[2],y2:a4[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===v2&&M&&!D2(a4.gradientUnits)&&(J=a4,a4=f2(a4,e3.getRadialAttr(M,J),{gradientUnits:"userSpaceOnUse"}));n2(a4,(function(b4,c4){"id"!==c4&&m3.push(c4,b4)}));n2(z3,(function(b4){m3.push(b4)}));m3=m3.join(",");if(h3[m3])w3=h3[m3].attr("id");else{a4.id=w3=q();var U=h3[m3]=e3.createElement(v2).attr(a4).add(e3.defs);U.radAttr=J;U.stops=[];z3.forEach((function(b4){0===b4[1].indexOf("rgba")?(u3=g3.parse(b4[1]),G=u3.get("rgb"),k3=u3.get("a")):(G=b4[1],k3=1);b4=e3.createElement("stop").attr({offset:b4[0],"stop-color":G,"stop-opacity":k3}).add(U);U.stops.push(b4)}))}p3="url("+e3.url+"#"+w3+")";d3.setAttribute(c3,p3);d3.gradient=m3;b3.toString=function(){return p3}}}))};a3.prototype.css=function(b3){var c3=this.styles,d3={},e3=this.element,q2=!c3;b3.color&&(b3.fill=b3.color);c3&&n2(b3,(function(b4,f3){c3&&c3[f3]!==b4&&(d3[f3]=b4,q2=true)}));if(q2){c3&&(b3=E2(c3,d3));if(null===b3.width||"auto"===b3.width)delete this.textWidth;else if("text"===e3.nodeName.toLowerCase()&&b3.width)var v2=this.textWidth=u2(b3.width);this.styles=b3;v2&&!l2&&this.renderer.forExport&&delete b3.width;var a4=f2(b3);e3.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach((function(b4){return a4&&delete a4[b4]}));p2(e3,a4);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),b3.textOutline&&this.applyTextOutline(b3.textOutline))}return this};a3.prototype.dashstyleSetter=function(c3){var f3=this["stroke-width"];"inherit"===f3&&(f3=1);if(c3=c3&&c3.toLowerCase()){var d3=c3.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(c3=d3.length;c3--;)d3[c3]=""+u2(d3[c3])*b2(f3,NaN);c3=d3.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c3)}};a3.prototype.destroy=function(){var b3=this,c3=b3.element||{},f3=b3.renderer,d3=c3.ownerSVGElement,e3=f3.isSVG&&"SPAN"===c3.nodeName&&b3.parentGroup||void 0;c3.onclick=c3.onmouseout=c3.onmouseover=c3.onmousemove=c3.point=null;H2(b3);if(b3.clipPath&&d3){var v2=b3.clipPath;[].forEach.call(d3.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(b4){-1m3.width)m3={x:0,y:0,width:0,height:0}}else m3=this.htmlGetBBox();if(q2.isSVG&&(q2=m3.width,f3=m3.height,k3&&(m3.height=f3={"11px,17":14,"13px,20":16}[""+(G||"")+",".concat(Math.round(f3))]||f3),d3)){k3=Number(e3.getAttribute("y")||0)-m3.y;n3={right:1,center:.5}[n3||0]||0;v2=d3*t2;G=(d3-90)*t2;var J=q2*Math.cos(v2);d3=q2*Math.sin(v2);w3=Math.cos(G);v2=Math.sin(G);q2=m3.x+n3*(q2-J)+k3*w3;G=q2+J;w3=G-f3*w3;J=w3-J;k3=m3.y+k3-n3*d3+k3*v2;n3=k3+d3;f3=n3-f3*v2;d3=f3-d3;m3.x=Math.min(q2,G,w3,J);m3.y=Math.min(k3,n3,f3,d3);m3.width=Math.max(q2,G,w3,J)-m3.x;m3.height=Math.max(k3,n3,f3,d3)-m3.y}if(M&&(""===u3||0]*>/g,"").replace(/</g,"<").replace(/>/g,">")};a3.prototype.toFront=function(){var b3=this.element;b3.parentNode.appendChild(b3);return this};a3.prototype.translate=function(b3,c3){return this.attr({translateX:b3,translateY:c3})};a3.prototype.updateShadows=function(b3,c3,f3){var d3=this.shadows;if(d3)for(var e3=d3.length;e3--;)f3.call(d3[e3],"height"===b3?Math.max(c3-(d3[e3].cutHeight||0),0):"d"===b3?this.d:c3,b3,d3[e3])};a3.prototype.updateTransform=function(){var c3=this.element,f3=this.matrix,d3=this.rotation;d3=void 0===d3?0:d3;var e3=this.scaleX,n3=this.scaleY,v2=this.translateX,q2=this.translateY;v2=["translate("+(void 0===v2?0:v2)+","+(void 0===q2?0:q2)+")"];D2(f3)&&v2.push("matrix("+f3.join(",")+")");d3&&v2.push("rotate("+d3+" "+b2(this.rotationOriginX,c3.getAttribute("x"),0)+" "+b2(this.rotationOriginY,c3.getAttribute("y")||0)+")");(D2(e3)||D2(n3))&&v2.push("scale("+b2(e3,1)+" "+b2(n3,1)+")");v2.length&&!(this.text||this).textPath&&c3.setAttribute("transform",v2.join(" "))};a3.prototype.visibilitySetter=function(b3,c3,f3){"inherit"===b3?f3.removeAttribute(c3):this[c3]!==b3&&f3.setAttribute(c3,b3);this[c3]=b3};a3.prototype.xGetter=function(b3){"circle"===this.element.nodeName&&("x"===b3?b3="cx":"y"===b3&&(b3="cy"));return this._defaultGetter(b3)};a3.prototype.zIndexSetter=function(b3,c3){var f3=this.renderer,d3=this.parentGroup,e3=(d3||f3).element||f3.box,v2=this.element;f3=e3===f3.box;var n3=false;var q2=this.added;var a4;D2(b3)?(v2.setAttribute("data-z-index",b3),b3=+b3,this[c3]===b3&&(q2=false)):D2(this[c3])&&v2.removeAttribute("data-z-index");this[c3]=b3;if(q2){(b3=this.zIndex)&&d3&&(d3.handleZ=true);c3=e3.childNodes;for(a4=c3.length-1;0<=a4&&!n3;a4--){d3=c3[a4];q2=d3.getAttribute("data-z-index");var h3=!D2(q2);if(d3!==v2){if(0>b3&&h3&&!f3&&!a4)e3.insertBefore(v2,c3[a4]),n3=true;else if(u2(q2)<=b3||h3&&(!D2(b3)||0<=b3))e3.insertBefore(v2,c3[a4+1]||null),n3=true}}n3||(e3.insertBefore(v2,c3[f3?3:0]||null),n3=true)}return n3};return a3}();a2.prototype.strokeSetter=a2.prototype.fillSetter;a2.prototype.yGetter=a2.prototype.xGetter;a2.prototype.matrixSetter=a2.prototype.rotationOriginXSetter=a2.prototype.rotationOriginYSetter=a2.prototype.rotationSetter=a2.prototype.scaleXSetter=a2.prototype.scaleYSetter=a2.prototype.translateXSetter=a2.prototype.translateYSetter=a2.prototype.verticalAlignSetter=function(b3,c3){this[c3]=b3;this.doTransform=true};return a2}));K(g2,"Core/Renderer/RendererRegistry.js",[g2["Core/Globals.js"]],(function(a2){var g3;(function(g4){g4.rendererTypes={};var A2;g4.getRendererType=function(a3){void 0===a3&&(a3=A2);return g4.rendererTypes[a3]||g4.rendererTypes[A2]};g4.registerRendererType=function(x2,B,H2){g4.rendererTypes[x2]=B;if(!A2||H2)A2=x2,a2.Renderer=B}})(g3||(g3={}));return g3}));K(g2,"Core/Renderer/SVG/SVGLabel.js",[g2["Core/Renderer/SVG/SVGElement.js"],g2["Core/Utilities.js"]],(function(a2,g3){var A2=this&&this.__extends||function(){var a3=function(e2,d2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d3,e3){d3.__proto__=e3}||function(d3,e3){for(var a4 in e3)e3.hasOwnProperty(a4)&&(d3[a4]=e3[a4])};return a3(e2,d2)};return function(e2,d2){function h2(){this.constructor=e2}a3(e2,d2);e2.prototype=null===d2?Object.create(d2):(h2.prototype=d2.prototype,new h2)}}(),F2=g3.defined,C2=g3.extend,B=g3.isNumber,H2=g3.merge,t2=g3.pick,r2=g3.removeEvent;return function(g4){function e2(d2,a3,m2,k2,p2,l2,I,E2,r3,y2){var c2=g4.call(this)||this;c2.paddingLeftSetter=c2.paddingSetter;c2.paddingRightSetter=c2.paddingSetter;c2.init(d2,"g");c2.textStr=a3;c2.x=m2;c2.y=k2;c2.anchorX=l2;c2.anchorY=I;c2.baseline=r3;c2.className=y2;c2.addClass("button"===y2?"highcharts-no-tooltip":"highcharts-label");y2&&c2.addClass("highcharts-"+y2);c2.text=d2.text(void 0,0,0,E2).attr({zIndex:1});var h2;"string"===typeof p2&&((h2=/^url\((.*?)\)$/.test(p2))||c2.renderer.symbols[p2])&&(c2.symbolKey=p2);c2.bBox=e2.emptyBBox;c2.padding=3;c2.baselineOffset=0;c2.needsBox=d2.styledMode||h2;c2.deferredAttr={};c2.alignFactor=0;return c2}A2(e2,g4);e2.prototype.alignSetter=function(d2){d2={left:0,center:.5,right:1}[d2];d2!==this.alignFactor&&(this.alignFactor=d2,this.bBox&&B(this.xSetting)&&this.attr({x:this.xSetting}))};e2.prototype.anchorXSetter=function(d2,e3){this.anchorX=d2;this.boxAttr(e3,Math.round(d2)-this.getCrispAdjust()-this.xSetting)};e2.prototype.anchorYSetter=function(d2,e3){this.anchorY=d2;this.boxAttr(e3,d2-this.ySetting)};e2.prototype.boxAttr=function(d2,e3){this.box?this.box.attr(d2,e3):this.deferredAttr[d2]=e3};e2.prototype.css=function(d2){if(d2){var h2={};d2=H2(d2);e2.textProps.forEach((function(e3){"undefined"!==typeof d2[e3]&&(h2[e3]=d2[e3],delete d2[e3])}));this.text.css(h2);"fontSize"in h2||"fontWeight"in h2?this.updateTextPadding():("width"in h2||"textOverflow"in h2)&&this.updateBoxSize()}return a2.prototype.css.call(this,d2)};e2.prototype.destroy=function(){r2(this.element,"mouseenter");r2(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a2.prototype.destroy.call(this)};e2.prototype.fillSetter=function(d2,e3){d2&&(this.needsBox=true);this.fill=d2;this.boxAttr(e3,d2)};e2.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var d2=this.padding,e3=t2(this.paddingLeft,d2);return{width:this.width,height:this.height,x:this.bBox.x-e3,y:this.bBox.y-d2}};e2.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};e2.prototype.heightSetter=function(d2){this.heightSetting=d2};e2.prototype.onAdd=function(){this.text.add(this);this.attr({text:t2(this.textStr,""),x:this.x||0,y:this.y||0});this.box&&F2(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};e2.prototype.paddingSetter=function(d2,e3){B(d2)?d2!==this[e3]&&(this[e3]=d2,this.updateTextPadding()):this[e3]=void 0};e2.prototype.rSetter=function(d2,e3){this.boxAttr(e3,d2)};e2.prototype.shadow=function(d2){d2&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(d2));return this};e2.prototype.strokeSetter=function(d2,e3){this.stroke=d2;this.boxAttr(e3,d2)};e2.prototype["stroke-widthSetter"]=function(d2,e3){d2&&(this.needsBox=true);this["stroke-width"]=d2;this.boxAttr(e3,d2)};e2.prototype["text-alignSetter"]=function(d2){this.textAlign=d2};e2.prototype.textSetter=function(d2){"undefined"!==typeof d2&&this.text.attr({text:d2});this.updateTextPadding()};e2.prototype.updateBoxSize=function(){var d2=this.text,a3=d2.element.style,m2={},k2=this.padding,p2=this.bBox=B(this.widthSetting)&&B(this.heightSetting)&&!this.textAlign||!F2(d2.textStr)?e2.emptyBBox:d2.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||p2.height||0)+2*k2;a3=this.renderer.fontMetrics(a3&&a3.fontSize,d2);this.baselineOffset=k2+Math.min((this.text.firstLineMetrics||a3).b,p2.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-a3.h)/2);this.needsBox&&!d2.textPath&&(this.box||(d2=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),d2.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),d2.add(this)),d2=this.getCrispAdjust(),m2.x=d2,m2.y=(this.baseline?-this.baselineOffset:0)+d2,m2.width=Math.round(this.width),m2.height=Math.round(this.height),this.box.attr(C2(m2,this.deferredAttr)),this.deferredAttr={})};e2.prototype.updateTextPadding=function(){var d2=this.text;if(!d2.textPath){this.updateBoxSize();var e3=this.baseline?0:this.baselineOffset,a3=t2(this.paddingLeft,this.padding);F2(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(a3+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(a3!==d2.x||e3!==d2.y)d2.attr("x",a3),d2.hasBoxWidthChanged&&(this.bBox=d2.getBBox(true)),"undefined"!==typeof e3&&d2.attr("y",e3);d2.x=a3;d2.y=e3}};e2.prototype.widthSetter=function(d2){this.widthSetting=B(d2)?d2:void 0};e2.prototype.getPaddedWidth=function(){var d2=this.padding,e3=t2(this.paddingLeft,d2);d2=t2(this.paddingRight,d2);return(this.widthSetting||this.bBox.width||0)+e3+d2};e2.prototype.xSetter=function(d2){this.x=d2;this.alignFactor&&(d2-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=true);this.xSetting=Math.round(d2);this.attr("translateX",this.xSetting)};e2.prototype.ySetter=function(d2){this.ySetting=this.y=Math.round(d2);this.attr("translateY",this.ySetting)};e2.emptyBBox={width:0,height:0,x:0,y:0};e2.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return e2}(a2)}));K(g2,"Core/Renderer/SVG/Symbols.js",[g2["Core/Utilities.js"]],(function(a2){function g3(a3,g4,l2,e2,d2){var h2=[];if(d2){var m2=d2.start||0,k2=H2(d2.r,l2);l2=H2(d2.r,e2||l2);var p2=(d2.end||0)-.001;e2=d2.innerR;var D2=H2(d2.open,.001>Math.abs((d2.end||0)-m2-2*Math.PI)),I=Math.cos(m2),E2=Math.sin(m2),r2=Math.cos(p2),y2=Math.sin(p2);m2=H2(d2.longArc,.001>p2-m2-Math.PI?0:1);h2.push(["M",a3+k2*I,g4+l2*E2],["A",k2,l2,0,m2,H2(d2.clockwise,1),a3+k2*r2,g4+l2*y2]);C2(e2)&&h2.push(D2?["M",a3+e2*r2,g4+e2*y2]:["L",a3+e2*r2,g4+e2*y2],["A",e2,e2,0,m2,C2(d2.clockwise)?1-d2.clockwise:0,a3+e2*I,g4+e2*E2]);D2||h2.push(["Z"])}return h2}function x2(a3,g4,l2,e2,d2){return d2&&d2.r?F2(a3,g4,l2,e2,d2):[["M",a3,g4],["L",a3+l2,g4],["L",a3+l2,g4+e2],["L",a3,g4+e2],["Z"]]}function F2(a3,g4,l2,e2,d2){d2=d2&&d2.r||0;return[["M",a3+d2,g4],["L",a3+l2-d2,g4],["C",a3+l2,g4,a3+l2,g4,a3+l2,g4+d2],["L",a3+l2,g4+e2-d2],["C",a3+l2,g4+e2,a3+l2,g4+e2,a3+l2-d2,g4+e2],["L",a3+d2,g4+e2],["C",a3,g4+e2,a3,g4+e2,a3,g4+e2-d2],["L",a3,g4+d2],["C",a3,g4,a3,g4,a3+d2,g4]]}var C2=a2.defined,B=a2.isNumber,H2=a2.pick;return{arc:g3,callout:function(a3,g4,l2,e2,d2){var h2=Math.min(d2&&d2.r||0,l2,e2),m2=h2+6,k2=d2&&d2.anchorX;d2=d2&&d2.anchorY||0;var p2=F2(a3,g4,l2,e2,{r:h2});if(!B(k2))return p2;a3+k2>=l2?d2>g4+m2&&d2=a3+k2?d2>g4+m2&&d2e2&&k2>a3+m2&&k2d2&&k2>a3+m2&&k2/g,y2=[g4,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(y2!==e3.textCache){e3.textCache=y2;delete e3.actualWidth;for(y2=E2.length;y2--;)k2.removeChild(E2[y2]);I||this.ellipsis||this.width||e3.textPath||-1!==g4.indexOf(" ")&&(!this.noWrap||L2.test(g4))?""!==g4&&(h3&&h3.appendChild(k2),g4=new a2(g4),this.modifyTree(g4.nodes),g4.addToDOM(k2),this.modifyDOM(),this.ellipsis&&-1!==(k2.textContent||"").indexOf("…")&&e3.attr("title",this.unescapeEntities(e3.textStr||"",["<",">"])),h3&&h3.removeChild(k2)):k2.appendChild(A2.createTextNode(this.unescapeEntities(g4)));l2(this.textOutline)&&e3.applyTextOutline&&e3.applyTextOutline(this.textOutline)}};h2.prototype.modifyDOM=function(){var d3=this,e3=this.svgElement,a3=H2(e3.element,"x");e3.firstLineMetrics=void 0;for(var h3;h3=e3.element.firstChild;)if(/^[\s\u200B]*$/.test(h3.textContent||" "))e3.element.removeChild(h3);else break;[].forEach.call(e3.element.querySelectorAll("tspan.highcharts-br"),(function(h4,c2){h4.nextSibling&&h4.previousSibling&&(0===c2&&1===h4.previousSibling.nodeType&&(e3.firstLineMetrics=e3.renderer.fontMetrics(void 0,h4.previousSibling)),H2(h4,{dy:d3.getLineHeight(h4.nextSibling),x:a3}))}));var g4=this.width||0;if(g4){var l3=function(h4,c2){var w2=h4.textContent||"",f2=w2.replace(/([^\^])-/g,"$1- ").split(" "),n2=!d3.noWrap&&(1g4){for(;f2<=n2;)b2=Math.ceil((f2+n2)/2),a3&&(u2=l3(a3,b2)),q=z2(b2,u2&&u2.length-1),f2===n2?f2=n2+1:q>g4?n2=b2-1:f2=b2;0===n2?d3.textContent="":e3&&n2===e3.length-1||(d3.textContent=u2||l3(e3||a3,b2))}a3&&a3.splice(0,b2);k2.actualWidth=q;k2.rotation=c2};h2.prototype.unescapeEntities=function(d3,a3){e2(this.renderer.escapes,(function(e3,h3){a3&&-1!==a3.indexOf(e3)||(d3=d3.toString().replace(new RegExp(e3,"g"),h3))}));return d3};return h2}()}));K(g2,"Core/Renderer/SVG/SVGRenderer.js",[g2["Core/Renderer/HTML/AST.js"],g2["Core/Color/Color.js"],g2["Core/Globals.js"],g2["Core/Renderer/RendererRegistry.js"],g2["Core/Renderer/SVG/SVGElement.js"],g2["Core/Renderer/SVG/SVGLabel.js"],g2["Core/Renderer/SVG/Symbols.js"],g2["Core/Renderer/SVG/TextBuilder.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B,H2,t2,r2){var l2=x2.charts,e2=x2.deg2rad,d2=x2.doc,h2=x2.isFirefox,m2=x2.isMS,k2=x2.isWebKit,p2=x2.noop,D2=x2.SVG_NS,I=x2.symbolSizes,E2=x2.win,L2=r2.addEvent,y2=r2.attr,c2=r2.createElement,w2=r2.css,f2=r2.defined,n2=r2.destroyObjectProperties,b2=r2.extend,u2=r2.isArray,z2=r2.isNumber,q=r2.isObject,N=r2.isString,J=r2.merge,O2=r2.pick,Q=r2.pInt,A2=r2.uniqueKey,Y;x2=function(){function v2(b3,c3,f3,d3,e3,v3,a3){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(b3,c3,f3,d3,e3,v3,a3)}v2.prototype.init=function(b3,c3,f3,e3,v3,a3,n3){var G=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),q2=G.element;n3||G.css(this.getStyle(e3));b3.appendChild(q2);y2(b3,"dir","ltr");-1===b3.innerHTML.indexOf("xmlns")&&y2(q2,"xmlns",this.SVG_NS);this.isSVG=true;this.box=q2;this.boxWrapper=G;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(d2.createTextNode("Created with Highcharts 10.3.3"));this.defs=this.createElement("defs").add();this.allowHTML=a3;this.forExport=v3;this.styledMode=n3;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(c3,f3,false);var u3;h2&&b3.getBoundingClientRect&&(c3=function(){w2(b3,{left:0,top:0});u3=b3.getBoundingClientRect();w2(b3,{left:Math.ceil(u3.left)-u3.left+"px",top:Math.ceil(u3.top)-u3.top+"px"})},c3(),this.unSubPixelFix=L2(E2,"resize",c3))};v2.prototype.definition=function(b3){return new a2([b3]).addToDOM(this.defs.element)};v2.prototype.getReferenceURL=function(){if((h2||k2)&&d2.getElementsByTagName("base").length){if(!f2(Y)){var b3=A2();b3=new a2([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:b3},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(b3,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(d2.body);w2(b3,{position:"fixed",top:0,left:0,zIndex:9e5});var c3=d2.elementFromPoint(6,6);Y="hitme"===(c3&&c3.id);d2.body.removeChild(b3)}if(Y)return E2.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};v2.prototype.getStyle=function(c3){return this.style=b2({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c3)};v2.prototype.setStyle=function(b3){this.boxWrapper.css(this.getStyle(b3))};v2.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};v2.prototype.destroy=function(){var b3=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();n2(this.gradients||{});this.gradients=null;b3&&(this.defs=b3.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};v2.prototype.createElement=function(b3){var c3=new this.Element;c3.init(this,b3);return c3};v2.prototype.getRadialAttr=function(b3,c3){return{cx:b3[0]-b3[2]/2+(c3.cx||0)*b3[2],cy:b3[1]-b3[2]/2+(c3.cy||0)*b3[2],r:(c3.r||0)*b3[2]}};v2.prototype.buildText=function(b3){new t2(b3).buildSVG()};v2.prototype.getContrast=function(b3){b3=g3.parse(b3).rgba.map((function(b4){b4/=255;return.03928>=b4?b4/12.92:Math.pow((b4+.055)/1.055,2.4)}));b3=.2126*b3[0]+.7152*b3[1]+.0722*b3[2];return 1.05/(b3+.05)>(b3+.05)/.05?"#FFFFFF":"#000000"};v2.prototype.button=function(c3,f3,d3,e3,v3,n3,u3,h3,z3,w3){void 0===v3&&(v3={});var G=this.label(c3,f3,d3,z3,void 0,void 0,w3,void 0,"button"),k3=this.styledMode;c3=v3.states||{};var M=0;v3=J(v3);delete v3.states;var g4=J({color:"#333333",cursor:"pointer",fontWeight:"normal"},v3.style);delete v3.style;var p3=a2.filterUserAttributes(v3);G.attr(J({padding:8,r:2},p3));if(!k3){p3=J({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},p3);n3=J(p3,{fill:"#e6e6e6"},a2.filterUserAttributes(n3||c3.hover||{}));var U=n3.style;delete n3.style;u3=J(p3,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a2.filterUserAttributes(u3||c3.select||{}));var P=u3.style;delete u3.style;h3=J(p3,{style:{color:"#cccccc"}},a2.filterUserAttributes(h3||c3.disabled||{}));var y3=h3.style;delete h3.style}L2(G.element,m2?"mouseover":"mouseenter",(function(){3!==M&&G.setState(1)}));L2(G.element,m2?"mouseout":"mouseleave",(function(){3!==M&&G.setState(M)}));G.setState=function(b3){1!==b3&&(G.state=M=b3);G.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][b3||0]);k3||(G.attr([p3,n3,u3,h3][b3||0]),b3=[g4,U,P,y3][b3||0],q(b3)&&G.css(b3))};k3||(G.attr(p3).css(b2({cursor:"default"},g4)),w3&&G.text.css({pointerEvents:"none"}));return G.on("touchstart",(function(b3){return b3.stopPropagation()})).on("click",(function(b3){3!==M&&e3.call(G,b3)}))};v2.prototype.crispLine=function(b3,c3,d3){void 0===d3&&(d3="round");var e3=b3[0],v3=b3[1];f2(e3[1])&&e3[1]===v3[1]&&(e3[1]=v3[1]=Math[d3](e3[1])-c3%2/2);f2(e3[2])&&e3[2]===v3[2]&&(e3[2]=v3[2]=Math[d3](e3[2])+c3%2/2);return b3};v2.prototype.path=function(c3){var f3=this.styledMode?{}:{fill:"none"};u2(c3)?f3.d=c3:q(c3)&&b2(f3,c3);return this.createElement("path").attr(f3)};v2.prototype.circle=function(b3,c3,f3){b3=q(b3)?b3:"undefined"===typeof b3?{}:{x:b3,y:c3,r:f3};c3=this.createElement("circle");c3.xSetter=c3.ySetter=function(b4,c4,f4){f4.setAttribute("c"+c4,b4)};return c3.attr(b3)};v2.prototype.arc=function(b3,c3,f3,d3,e3,v3){q(b3)?(d3=b3,c3=d3.y,f3=d3.r,b3=d3.x):d3={innerR:d3,start:e3,end:v3};b3=this.symbol("arc",b3,c3,f3,f3,d3);b3.r=f3;return b3};v2.prototype.rect=function(b3,c3,f3,d3,e3,v3){e3=q(b3)?b3.r:e3;var a3=this.createElement("rect");b3=q(b3)?b3:"undefined"===typeof b3?{}:{x:b3,y:c3,width:Math.max(f3,0),height:Math.max(d3,0)};this.styledMode||("undefined"!==typeof v3&&(b3["stroke-width"]=v3,b3=a3.crisp(b3)),b3.fill="none");e3&&(b3.r=e3);a3.rSetter=function(b4,c4,f4){a3.r=b4;y2(f4,{rx:b4,ry:b4})};a3.rGetter=function(){return a3.r||0};return a3.attr(b3)};v2.prototype.setSize=function(b3,c3,f3){this.width=b3;this.height=c3;this.boxWrapper.animate({width:b3,height:c3},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:O2(f3,true)?void 0:0});this.alignElements()};v2.prototype.g=function(b3){var c3=this.createElement("g");return b3?c3.attr({class:"highcharts-"+b3}):c3};v2.prototype.image=function(b3,c3,f3,d3,e3,v3){var a3={preserveAspectRatio:"none"},n3=function(b4,c4){b4.setAttributeNS?b4.setAttributeNS("http://www.w3.org/1999/xlink","href",c4):b4.setAttribute("hc-svg-href",c4)};z2(c3)&&(a3.x=c3);z2(f3)&&(a3.y=f3);z2(d3)&&(a3.width=d3);z2(e3)&&(a3.height=e3);var G=this.createElement("image").attr(a3);c3=function(c4){n3(G.element,b3);v3.call(G,c4)};v3?(n3(G.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),f3=new E2.Image,L2(f3,"load",c3),f3.src=b3,f3.complete&&c3({})):n3(G.element,b3);return G};v2.prototype.symbol=function(e3,v3,a3,n3,G,q2){var u3=this,h3=/^url\((.*?)\)$/,z3=h3.test(e3),k3=!z3&&(this.symbols[e3]?e3:"circle"),g4=k3&&this.symbols[k3],m3;if(g4){"number"===typeof v3&&(m3=g4.call(this.symbols,Math.round(v3||0),Math.round(a3||0),n3||0,G||0,q2));var p3=this.path(m3);u3.styledMode||p3.attr("fill","none");b2(p3,{symbolName:k3||void 0,x:v3,y:a3,width:n3,height:G});q2&&b2(p3,q2)}else if(z3){var P=e3.match(h3)[1];var U=p3=this.image(P);U.imgwidth=O2(I[P]&&I[P].width,q2&&q2.width);U.imgheight=O2(I[P]&&I[P].height,q2&&q2.height);var N2=function(b3){return b3.attr({width:b3.width,height:b3.height})};["width","height"].forEach((function(b3){U[b3+"Setter"]=function(b4,c3){this[c3]=b4;b4=this.alignByTranslate;var d3=this.element,e4=this.width,v4=this.height,a4=this.imgwidth,n4=this.imgheight,G2=this["img"+c3];if(f2(G2)){var u4=1;q2&&"within"===q2.backgroundSize&&e4&&v4?(u4=Math.min(e4/a4,v4/n4),G2=Math.round(G2*u4),y2(d3,{width:Math.round(a4*u4),height:Math.round(n4*u4)})):d3&&d3.setAttribute(c3,G2);b4||this.translate(((e4||0)-G2*u4)/2,((v4||0)-G2*u4)/2)}}}));f2(v3)&&U.attr({x:v3,y:a3});U.isImg=true;f2(U.imgwidth)&&f2(U.imgheight)?N2(U):(U.attr({width:0,height:0}),c2("img",{onload:function(){var b3=l2[u3.chartIndex];0===this.width&&(w2(this,{position:"absolute",top:"-999em"}),d2.body.appendChild(this));I[P]={width:this.width,height:this.height};U.imgwidth=this.width;U.imgheight=this.height;U.element&&N2(U);this.parentNode&&this.parentNode.removeChild(this);u3.imgCount--;if(!u3.imgCount&&b3&&!b3.hasLoaded)b3.onload()},src:P}),this.imgCount++)}return p3};v2.prototype.clipRect=function(b3,c3,f3,d3){var e3=A2()+"-",v3=this.createElement("clipPath").attr({id:e3}).add(this.defs);b3=this.rect(b3,c3,f3,d3,0).add(v3);b3.id=e3;b3.clipPath=v3;b3.count=0;return b3};v2.prototype.text=function(b3,c3,d3,e3){var v3={};if(e3&&(this.allowHTML||!this.forExport))return this.html(b3,c3,d3);v3.x=Math.round(c3||0);d3&&(v3.y=Math.round(d3));f2(b3)&&(v3.text=b3);b3=this.createElement("text").attr(v3);if(!e3||this.forExport&&!this.allowHTML)b3.xSetter=function(b4,c4,f3){for(var d4=f3.getElementsByTagName("tspan"),e4=f3.getAttribute(c4),v4=0,a3;v4b3?b3+3:Math.round(1.2*b3);return{h:c3,b:Math.round(.8*c3),f:b3}};v2.prototype.rotCorr=function(b3,c3,f3){var d3=b3;c3&&f3&&(d3=Math.max(d3*Math.cos(c3*e2),4));return{x:-b3/3*Math.sin(c3*e2),y:d3}};v2.prototype.pathToSegments=function(b3){for(var c3=[],f3=[],d3={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},e3=0;e3":">","'":"'",'"':"""},symbols:H2,draw:p2});F2.registerRendererType("svg",x2,true);return x2}));K(g2,"Core/Renderer/HTML/HTMLElement.js",[g2["Core/Globals.js"],g2["Core/Renderer/SVG/SVGElement.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=this&&this.__extends||function(){var d3=function(e3,a3){d3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d4,e4){d4.__proto__=e4}||function(d4,e4){for(var a4 in e4)e4.hasOwnProperty(a4)&&(d4[a4]=e4[a4])};return d3(e3,a3)};return function(e3,a3){function h3(){this.constructor=e3}d3(e3,a3);e3.prototype=null===a3?Object.create(a3):(h3.prototype=a3.prototype,new h3)}}(),C2=a2.isFirefox,B=a2.isMS,H2=a2.isWebKit,t2=a2.win,r2=x2.css,l2=x2.defined,e2=x2.extend,d2=x2.pick,h2=x2.pInt;return function(a3){function k2(){return null!==a3&&a3.apply(this,arguments)||this}A2(k2,a3);k2.compose=function(d3){if(-1===k2.composedClasses.indexOf(d3)){k2.composedClasses.push(d3);var e3=k2.prototype,a4=d3.prototype;a4.getSpanCorrection=e3.getSpanCorrection;a4.htmlCss=e3.htmlCss;a4.htmlGetBBox=e3.htmlGetBBox;a4.htmlUpdateTransform=e3.htmlUpdateTransform;a4.setSpanRotation=e3.setSpanRotation}return d3};k2.prototype.getSpanCorrection=function(d3,e3,a4){this.xCorr=-d3*a4;this.yCorr=-e3};k2.prototype.htmlCss=function(a4){var h3="SPAN"===this.element.tagName&&a4&&"width"in a4,k3=d2(h3&&a4.width,void 0);if(h3){delete a4.width;this.textWidth=k3;var g4=true}a4&&"ellipsis"===a4.textOverflow&&(a4.whiteSpace="nowrap",a4.overflow="hidden");this.styles=e2(this.styles,a4);r2(this.element,a4);g4&&this.htmlUpdateTransform();return this};k2.prototype.htmlGetBBox=function(){var d3=this.element;return{x:d3.offsetLeft,y:d3.offsetTop,width:d3.offsetWidth,height:d3.offsetHeight}};k2.prototype.htmlUpdateTransform=function(){if(this.added){var d3=this.renderer,e3=this.element,a4=this.translateX||0,k3=this.translateY||0,g4=this.x||0,m2=this.y||0,c2=this.textAlign||"left",w2={left:0,center:.5,right:1}[c2],f2=this.styles;f2=f2&&f2.whiteSpace;r2(e3,{marginLeft:a4,marginTop:k3});!d3.styledMode&&this.shadows&&this.shadows.forEach((function(b3){r2(b3,{marginLeft:a4+1,marginTop:k3+1})}));this.inverted&&[].forEach.call(e3.childNodes,(function(b3){d3.invertChild(b3,e3)}));if("SPAN"===e3.tagName){var n2=this.rotation,b2=this.textWidth&&h2(this.textWidth),u2=[n2,c2,e3.innerHTML,this.textWidth,this.textAlign].join(),z2=void 0;z2=false;if(b2!==this.oldTextWidth){if(this.textPxLength)var q=this.textPxLength;else r2(e3,{width:"",whiteSpace:f2||"nowrap"}),q=e3.offsetWidth;(b2>this.oldTextWidth||q>b2)&&(/[ \-]/.test(e3.textContent||e3.innerText)||"ellipsis"===e3.style.textOverflow)&&(r2(e3,{width:q>b2||n2?b2+"px":"auto",display:"block",whiteSpace:f2||"normal"}),this.oldTextWidth=b2,z2=true)}this.hasBoxWidthChanged=z2;u2!==this.cTT&&(z2=d3.fontMetrics(e3.style.fontSize,e3).b,!l2(n2)||n2===(this.oldRotation||0)&&c2===this.oldAlign||this.setSpanRotation(n2,w2,z2),this.getSpanCorrection(!l2(n2)&&this.textPxLength||e3.offsetWidth,z2,w2,n2,c2));r2(e3,{left:g4+(this.xCorr||0)+"px",top:m2+(this.yCorr||0)+"px"});this.cTT=u2;this.oldRotation=n2;this.oldAlign=c2}}else this.alignOnAdd=true};k2.prototype.setSpanRotation=function(d3,e3,a4){var h3={},k3=B&&!/Edge/.test(t2.navigator.userAgent)?"-ms-transform":H2?"-webkit-transform":C2?"MozTransform":t2.opera?"-o-transform":void 0;k3&&(h3[k3]=h3.transform="rotate("+d3+"deg)",h3[k3+(C2?"Origin":"-origin")]=h3.transformOrigin=100*e3+"% "+a4+"px",r2(this.element,h3))};k2.composedClasses=[];return k2}(g3)}));K(g2,"Core/Renderer/HTML/HTMLRenderer.js",[g2["Core/Renderer/HTML/AST.js"],g2["Core/Renderer/SVG/SVGElement.js"],g2["Core/Renderer/SVG/SVGRenderer.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2){var A2=this&&this.__extends||function(){var a3=function(e2,d2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d3,e3){d3.__proto__=e3}||function(d3,e3){for(var a4 in e3)e3.hasOwnProperty(a4)&&(d3[a4]=e3[a4])};return a3(e2,d2)};return function(e2,d2){function h2(){this.constructor=e2}a3(e2,d2);e2.prototype=null===d2?Object.create(d2):(h2.prototype=d2.prototype,new h2)}}(),B=F2.attr,H2=F2.createElement,t2=F2.extend,r2=F2.pick;return function(l2){function e2(){return null!==l2&&l2.apply(this,arguments)||this}A2(e2,l2);e2.compose=function(d2){-1===e2.composedClasses.indexOf(d2)&&(e2.composedClasses.push(d2),d2.prototype.html=e2.prototype.html);return d2};e2.prototype.html=function(d2,e3,m2){var h2=this.createElement("span"),p2=h2.element,l3=h2.renderer,I=l3.isSVG,E2=function(d3,e4){["opacity","visibility"].forEach((function(c2){d3[c2+"Setter"]=function(a3,f2,n2){var b2=d3.div?d3.div.style:e4;g3.prototype[c2+"Setter"].call(this,a3,f2,n2);b2&&(b2[f2]=a3)}}));d3.addedSetters=true};h2.textSetter=function(d3){d3!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a2.setElementHTML(this.element,r2(d3,"")),this.textStr=d3,h2.doTransform=true)};I&&E2(h2,h2.element.style);h2.xSetter=h2.ySetter=h2.alignSetter=h2.rotationSetter=function(d3,e4){"align"===e4?h2.alignValue=h2.textAlign=d3:h2[e4]=d3;h2.doTransform=true};h2.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=false)};h2.attr({text:d2,x:Math.round(e3),y:Math.round(m2)}).css({position:"absolute"});l3.styledMode||h2.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});p2.style.whiteSpace="nowrap";h2.css=h2.htmlCss;I&&(h2.add=function(d3){var e4=l3.box.parentNode,c2=[];if(this.parentGroup=d3){var a3=d3.div;if(!a3){for(;d3;)c2.push(d3),d3=d3.parentGroup;c2.reverse().forEach((function(f2){function d4(b3,c3){f2[c3]=b3;"translateX"===c3?z2.left=b3+"px":z2.top=b3+"px";f2.doTransform=true}var b2=B(f2.element,"class"),u2=f2.styles||{};a3=f2.div=f2.div||H2("div",b2?{className:b2}:void 0,{position:"absolute",left:(f2.translateX||0)+"px",top:(f2.translateY||0)+"px",display:f2.display,opacity:f2.opacity,cursor:u2.cursor,pointerEvents:u2.pointerEvents,visibility:f2.visibility},a3||e4);var z2=a3.style;t2(f2,{classSetter:function(b3){return function(c3){this.element.setAttribute("class",c3);b3.className=c3}}(a3),on:function(){c2[0].div&&h2.on.apply({element:c2[0].div,onEvents:f2.onEvents},arguments);return f2},translateXSetter:d4,translateYSetter:d4});f2.addedSetters||E2(f2)}))}}else a3=e4;a3.appendChild(p2);h2.added=true;h2.alignOnAdd&&h2.htmlUpdateTransform();return h2});return h2};e2.composedClasses=[];return e2}(x2)}));K(g2,"Core/Axis/AxisDefaults.js",[],(function(){var a2;(function(a3){a3.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"};a3.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 a4=this.axis.chart.numberFormatter;return a4(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};a3.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};a3.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};a3.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};a3.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(a2||(a2={}));return a2}));K(g2,"Core/Foundation.js",[g2["Core/Utilities.js"]],(function(a2){var g3=a2.addEvent,x2=a2.isFunction,F2=a2.objectEach,C2=a2.removeEvent,B;(function(a3){a3.registerEventOptions=function(a4,r2){a4.eventOptions=a4.eventOptions||{};F2(r2.events,(function(l2,e2){a4.eventOptions[e2]!==l2&&(a4.eventOptions[e2]&&(C2(a4,e2,a4.eventOptions[e2]),delete a4.eventOptions[e2]),x2(l2)&&(a4.eventOptions[e2]=l2,g3(a4,e2,l2)))}))}})(B||(B={}));return B}));K(g2,"Core/Axis/Tick.js",[g2["Core/FormatUtilities.js"],g2["Core/Globals.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=g3.deg2rad,C2=x2.clamp,B=x2.correctFloat,H2=x2.defined,t2=x2.destroyObjectProperties,r2=x2.extend,l2=x2.fireEvent,e2=x2.isNumber,d2=x2.merge,h2=x2.objectEach,m2=x2.pick;g3=function(){function g4(d3,e3,a3,h3,g5){this.isNewLabel=this.isNew=true;this.axis=d3;this.pos=e3;this.type=a3||"";this.parameters=g5||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;l2(this,"init");a3||h3||this.addLabel()}g4.prototype.addLabel=function(){var d3=this,h3=d3.axis,g5=h3.options,k2=h3.chart,L2=h3.categories,y2=h3.logarithmic,c2=h3.names,w2=d3.pos,f2=m2(d3.options&&d3.options.labels,g5.labels),n2=h3.tickPositions,b2=w2===n2[0],u2=w2===n2[n2.length-1],z2=(!f2.step||1===f2.step)&&1===h3.tickInterval;n2=n2.info;var q=d3.label,N;L2=this.parameters.category||(L2?m2(L2[w2],c2[w2],w2):w2);y2&&e2(L2)&&(L2=B(y2.lin2log(L2)));if(h3.dateTime)if(n2){var J=k2.time.resolveDTLFormat(g5.dateTimeLabelFormats[!g5.grid&&n2.higherRanks[w2]||n2.unitName]);var O2=J.main}else e2(L2)&&(O2=h3.dateTime.getXDateFormat(L2,g5.dateTimeLabelFormats||{}));d3.isFirst=b2;d3.isLast=u2;var Q={axis:h3,chart:k2,dateTimeLabelFormat:O2,isFirst:b2,isLast:u2,pos:w2,tick:d3,tickPositionInfo:n2,value:L2};l2(this,"labelFormat",Q);var t3=function(b3){return f2.formatter?f2.formatter.call(b3,b3):f2.format?(b3.text=h3.defaultLabelFormatter.call(b3,b3),a2.format(f2.format,b3,k2)):h3.defaultLabelFormatter.call(b3,b3)};g5=t3.call(Q,Q);var Y=J&&J.list;d3.shortenLabel=Y?function(){for(N=0;Nf2&&h3-n2*b2k2&&(l3=Math.round((g5-h3)/Math.cos(f2*A2)));else if(g5=h3+(1-n2)*b2,h3-n2*b2k2&&(q=k2-d3.x+q*n2,p2=-1),q=Math.min(u2,q),qq||e3.autoRotation&&(w2.styles||{}).width)l3=q;l3&&(this.shortenLabel?this.shortenLabel():(z2.width=Math.floor(l3)+"px",(a3.style||{}).textOverflow||(z2.textOverflow="ellipsis"),w2.css(z2)))};g4.prototype.moveLabel=function(d3,e3){var a3=this,g5=a3.label,k2=a3.axis,m3=k2.reversed,c2=false;g5&&g5.textStr===d3?(a3.movedLabel=g5,c2=true,delete a3.label):h2(k2.ticks,(function(f2){c2||f2.isNew||f2===a3||!f2.label||f2.label.textStr!==d3||(a3.movedLabel=f2.label,c2=true,f2.labelPos=a3.movedLabel.xy,delete f2.label)}));if(!c2&&(a3.labelPos||g5)){var w2=a3.labelPos||g5.xy;g5=k2.horiz?m3?0:k2.width+k2.left:w2.x;k2=k2.horiz?w2.y:m3?k2.width+k2.left:0;a3.movedLabel=a3.createLabel({x:g5,y:k2},d3,e3);a3.movedLabel&&a3.movedLabel.attr({opacity:0})}};g4.prototype.render=function(d3,e3,a3){var h3=this.axis,g5=h3.horiz,k2=this.pos,c2=m2(this.tickmarkOffset,h3.tickmarkOffset);k2=this.getPosition(g5,k2,c2,e3);c2=k2.x;var w2=k2.y;h3=g5&&c2===h3.pos+h3.len||!g5&&w2===h3.pos?-1:1;g5=m2(a3,this.label&&this.label.newOpacity,1);a3=m2(a3,1);this.isActive=true;this.renderGridLine(e3,a3,h3);this.renderMark(k2,a3,h3);this.renderLabel(k2,e3,g5,d3);this.isNew=false;l2(this,"afterRender")};g4.prototype.renderGridLine=function(d3,e3,a3){var h3=this.axis,g5=h3.options,k2={},c2=this.pos,w2=this.type,f2=m2(this.tickmarkOffset,h3.tickmarkOffset),n2=h3.chart.renderer,b2=this.gridLine,u2=g5.gridLineWidth,z2=g5.gridLineColor,q=g5.gridLineDashStyle;"minor"===this.type&&(u2=g5.minorGridLineWidth,z2=g5.minorGridLineColor,q=g5.minorGridLineDashStyle);b2||(h3.chart.styledMode||(k2.stroke=z2,k2["stroke-width"]=u2||0,k2.dashstyle=q),w2||(k2.zIndex=1),d3&&(e3=0),this.gridLine=b2=n2.path().attr(k2).addClass("highcharts-"+(w2?w2+"-":"")+"grid-line").add(h3.gridGroup));if(b2&&(a3=h3.getPlotLinePath({value:c2+f2,lineWidth:b2.strokeWidth()*a3,force:"pass",old:d3,acrossPanes:false})))b2[d3||this.isNew?"attr":"animate"]({d:a3,opacity:e3})};g4.prototype.renderMark=function(d3,e3,a3){var h3=this.axis,g5=h3.options,k2=h3.chart.renderer,c2=this.type,w2=h3.tickSize(c2?c2+"Tick":"tick"),f2=d3.x;d3=d3.y;var n2=m2(g5["minor"!==c2?"tickWidth":"minorTickWidth"],!c2&&h3.isXAxis?1:0);g5=g5["minor"!==c2?"tickColor":"minorTickColor"];var b2=this.mark,u2=!b2;w2&&(h3.opposite&&(w2[0]=-w2[0]),b2||(this.mark=b2=k2.path().addClass("highcharts-"+(c2?c2+"-":"")+"tick").add(h3.axisGroup),h3.chart.styledMode||b2.attr({stroke:g5,"stroke-width":n2})),b2[u2?"attr":"animate"]({d:this.getMarkPath(f2,d3,w2[0],b2.strokeWidth()*a3,h3.horiz,k2),opacity:e3}))};g4.prototype.renderLabel=function(d3,a3,h3,g5){var k2=this.axis,l3=k2.horiz,c2=k2.options,w2=this.label,f2=c2.labels,n2=f2.step;k2=m2(this.tickmarkOffset,k2.tickmarkOffset);var b2=d3.x;d3=d3.y;var u2=true;w2&&e2(b2)&&(w2.xy=d3=this.getLabelPosition(b2,d3,w2,l3,f2,k2,g5,n2),this.isFirst&&!this.isLast&&!c2.showFirstLabel||this.isLast&&!this.isFirst&&!c2.showLastLabel?u2=false:!l3||f2.step||f2.rotation||a3||0===h3||this.handleOverflow(d3),n2&&g5%n2&&(u2=false),u2&&e2(d3.y)?(d3.opacity=h3,w2[this.isNewLabel?"attr":"animate"](d3).show(true),this.isNewLabel=false):(w2.hide(),this.isNewLabel=true))};g4.prototype.replaceMovedLabel=function(){var d3=this.label,e3=this.axis,a3=e3.reversed;if(d3&&!this.isNew){var h3=e3.horiz?a3?e3.left:e3.width+e3.left:d3.xy.x;a3=e3.horiz?d3.xy.y:a3?e3.width+e3.top:e3.top;d3.animate({x:h3,y:a3,opacity:0},void 0,d3.destroy);delete this.label}e3.isDirty=true;this.label=this.movedLabel;delete this.movedLabel};return g4}();return g3}));K(g2,"Core/Axis/Axis.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/Axis/AxisDefaults.js"],g2["Core/Color/Color.js"],g2["Core/Defaults.js"],g2["Core/Foundation.js"],g2["Core/Globals.js"],g2["Core/Axis/Tick.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B,H2,t2){var r2=a2.animObject,l2=F2.defaultOptions,e2=C2.registerEventOptions,d2=B.deg2rad,h2=t2.arrayMax,m2=t2.arrayMin,k2=t2.clamp,p2=t2.correctFloat,D2=t2.defined,I=t2.destroyObjectProperties,E2=t2.erase,A2=t2.error,y2=t2.extend,c2=t2.fireEvent,w2=t2.isArray,f2=t2.isNumber,n2=t2.isString,b2=t2.merge,u2=t2.normalizeTickInterval,z2=t2.objectEach,q=t2.pick,N=t2.relativeLength,J=t2.removeEvent,O2=t2.splat,Q=t2.syncTimeout,T2=function(b3,c3){return u2(c3,void 0,void 0,q(b3.options.allowDecimals,.5>c3||void 0!==b3.tickAmount),!!b3.tickAmount)};a2=function(){function a3(b3,c3){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,c3)}a3.prototype.init=function(b3,d3){var a4=d3.isX;this.chart=b3;this.horiz=b3.inverted&&!this.isZAxis?!a4:a4;this.isXAxis=a4;this.coll=this.coll||(a4?"xAxis":"yAxis");c2(this,"init",{userOptions:d3});this.opposite=q(d3.opposite,this.opposite);this.side=q(d3.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(d3);var v2=this.options,n3=v2.labels,h3=v2.type;this.userOptions=d3;this.minPixelPadding=0;this.reversed=q(v2.reversed,this.reversed);this.visible=v2.visible;this.zoomEnabled=v2.zoomEnabled;this.hasNames="category"===h3||true===v2.categories;this.categories=v2.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=D2(v2.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=v2.minRange||v2.maxZoom;this.range=v2.range;this.offset=v2.offset||0;this.min=this.max=null;d3=q(v2.crosshair,O2(b3.options.tooltip.crosshairs)[a4?0:1]);this.crosshair=true===d3?{}:d3;-1===b3.axes.indexOf(this)&&(a4?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&&a4&&"undefined"===typeof this.reversed&&(this.reversed=true);this.labelRotation=f2(n3.rotation)?n3.rotation:void 0;e2(this,v2);c2(this,"afterInit")};a3.prototype.setOptions=function(f3){this.options=b2(g3.defaultXAxisOptions,"yAxis"===this.coll&&g3.defaultYAxisOptions,[g3.defaultTopAxisOptions,g3.defaultRightAxisOptions,g3.defaultBottomAxisOptions,g3.defaultLeftAxisOptions][this.side],b2(l2[this.coll],f3));c2(this,"afterSetOptions",{userOptions:f3})};a3.prototype.defaultLabelFormatter=function(b3){var c3=this.axis;b3=this.chart.numberFormatter;var d3=f2(this.value)?this.value:NaN,a4=c3.chart.time,e3=this.dateTimeLabelFormat,v2=l2.lang,n3=v2.numericSymbols;v2=v2.numericSymbolMagnitude||1e3;var h3=c3.logarithmic?Math.abs(d3):c3.tickInterval,q2=n3&&n3.length;if(c3.categories)var u3="".concat(this.value);else if(e3)u3=a4.dateFormat(e3,d3);else if(q2&&1e3<=h3)for(;q2--&&"undefined"===typeof u3;)c3=Math.pow(v2,q2+1),h3>=c3&&0===10*d3%c3&&null!==n3[q2]&&0!==d3&&(u3=b3(d3/c3,-1)+n3[q2]);"undefined"===typeof u3&&(u3=1e4<=Math.abs(d3)?b3(d3,-1):b3(d3,-1,void 0,""));return u3};a3.prototype.getSeriesExtremes=function(){var b3=this,d3=b3.chart,a4;c2(this,"getSeriesExtremes",null,(function(){b3.hasVisibleSeries=false;b3.dataMin=b3.dataMax=b3.threshold=null;b3.softThreshold=!b3.isXAxis;b3.series.forEach((function(c3){if(c3.visible||!d3.options.chart.ignoreHiddenSeries){var e3=c3.options,v2=e3.threshold;b3.hasVisibleSeries=true;b3.positiveValuesOnly&&0>=v2&&(v2=null);if(b3.isXAxis){if(e3=c3.xData,e3.length){e3=b3.logarithmic?e3.filter(b3.validatePositiveValue):e3;a4=c3.getXExtremes(e3);var n3=a4.min;var h3=a4.max;f2(n3)||n3 instanceof Date||(e3=e3.filter(f2),a4=c3.getXExtremes(e3),n3=a4.min,h3=a4.max);e3.length&&(b3.dataMin=Math.min(q(b3.dataMin,n3),n3),b3.dataMax=Math.max(q(b3.dataMax,h3),h3))}}else if(c3=c3.applyExtremes(),f2(c3.dataMin)&&(n3=c3.dataMin,b3.dataMin=Math.min(q(b3.dataMin,n3),n3)),f2(c3.dataMax)&&(h3=c3.dataMax,b3.dataMax=Math.max(q(b3.dataMax,h3),h3)),D2(v2)&&(b3.threshold=v2),!e3.softThreshold||b3.positiveValuesOnly)b3.softThreshold=false}}))}));c2(this,"afterGetSeriesExtremes")};a3.prototype.translate=function(b3,c3,d3,a4,e3,n3){var v2=this.linkedParent||this,h3=a4&&v2.old?v2.old.min:v2.min;if(!f2(h3))return NaN;var q2=v2.minPixelPadding;e3=(v2.isOrdinal||v2.brokenAxis&&v2.brokenAxis.hasBreaks||v2.logarithmic&&e3)&&v2.lin2val;var u3=1,G=0;a4=a4&&v2.old?v2.old.transA:v2.transA;a4||(a4=v2.transA);d3&&(u3*=-1,G=v2.len);v2.reversed&&(u3*=-1,G-=u3*(v2.sector||v2.len));c3?(n3=(b3*u3+G-q2)/a4+h3,e3&&(n3=v2.lin2val(n3))):(e3&&(b3=v2.val2lin(b3)),b3=u3*(b3-h3)*a4,n3=(v2.isRadial?b3:p2(b3))+G+u3*q2+(f2(n3)?a4*n3:0));return n3};a3.prototype.toPixels=function(b3,c3){return this.translate(b3,false,!this.horiz,void 0,true)+(c3?0:this.pos)};a3.prototype.toValue=function(b3,c3){return this.translate(b3-(c3?0:this.pos),true,!this.horiz,void 0,true)};a3.prototype.getPlotLinePath=function(b3){function d3(b4,c3,f3){"pass"!==p3&&(b4f3)&&(p3?b4=k2(b4,c3,f3):r3=true);return b4}var a4=this,e3=a4.chart,v2=a4.left,n3=a4.top,h3=b3.old,u3=b3.value,g4=b3.lineWidth,z3=h3&&e3.oldChartHeight||e3.chartHeight,w3=h3&&e3.oldChartWidth||e3.chartWidth,m3=a4.transB,l3=b3.translatedValue,p3=b3.force,J2,N2,y3,O3,r3;b3={value:u3,lineWidth:g4,old:h3,force:p3,acrossPanes:b3.acrossPanes,translatedValue:l3};c2(this,"getPlotLinePath",b3,(function(b4){l3=q(l3,a4.translate(u3,void 0,void 0,h3));l3=k2(l3,-1e5,1e5);J2=y3=Math.round(l3+m3);N2=O3=Math.round(z3-l3-m3);f2(l3)?a4.horiz?(N2=n3,O3=z3-a4.bottom,J2=y3=d3(J2,v2,v2+a4.width)):(J2=v2,y3=w3-a4.right,N2=O3=d3(N2,n3,n3+a4.height)):(r3=true,p3=false);b4.path=r3&&!p3?null:e3.renderer.crispLine([["M",J2,N2],["L",y3,O3]],g4||1)}));return b3.path};a3.prototype.getLinearTickPositions=function(b3,c3,f3){var d3=p2(Math.floor(c3/b3)*b3);f3=p2(Math.ceil(f3/b3)*b3);var a4=[],e3;p2(d3+b3)===d3&&(e3=20);if(this.single)return[c3];for(c3=d3;c3<=f3;){a4.push(c3);c3=p2(c3+b3,e3);if(c3===v2)break;var v2=c3}return a4};a3.prototype.getMinorTickInterval=function(){var b3=this.options;return true===b3.minorTicks?q(b3.minorTickInterval,"auto"):false===b3.minorTicks?null:b3.minorTickInterval};a3.prototype.getMinorTickPositions=function(){var b3=this.options,c3=this.tickPositions,f3=this.minorTickInterval,d3=this.pointRangePadding||0,a4=this.min-d3;d3=this.max+d3;var e3=d3-a4,n3=[];if(e3&&e3/f3=this.minRange;var k3=this.minRange;var w3=(k3-d3+f3)/2;w3=[f3-w3,q(b3.min,f3-w3)];z3&&(w3[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);f3=h2(w3);d3=[f3+k3,q(b3.max,f3+k3)];z3&&(d3[2]=c3?c3.log2lin(this.dataMax):this.dataMax);d3=m2(d3);d3-f3=m3)N2=m3,z3=0;else if(this.dataMax<=m3){var y3=m3;k3=0}}this.min=q(l3,N2,this.dataMin);this.max=q(J2,y3,this.dataMax)}a4&&(this.positiveValuesOnly&&!b3&&0>=Math.min(this.min,q(this.dataMin,this.min))&&A2(10,1,d3),this.min=p2(a4.log2lin(this.min),16),this.max=p2(a4.log2lin(this.max),16));this.range&&D2(this.max)&&(this.userMin=this.min=l3=Math.max(this.dataMin,this.minFromRange()),this.userMax=J2=this.max,this.range=null);c2(this,"foundExtremes");this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(v2||this.axisPointRange||this.stacking&&this.stacking.usePercentage||h3)&&D2(this.min)&&D2(this.max)&&(d3=this.max-this.min)&&(!D2(l3)&&z3&&(this.min-=d3*z3),!D2(J2)&&k3&&(this.max+=d3*k3));f2(this.userMin)||(f2(e3.softMin)&&e3.softMinthis.max&&(this.max=J2=e3.softMax),f2(e3.ceiling)&&(this.max=Math.min(this.max,e3.ceiling)));g4&&D2(this.dataMin)&&(m3=m3||0,!D2(l3)&&this.min=m3?this.min=this.options.minRange?Math.min(m3,this.max-this.minRange):m3:!D2(J2)&&this.max>m3&&this.dataMax<=m3&&(this.max=this.options.minRange?Math.max(m3,this.min+this.minRange):m3));f2(this.min)&&f2(this.max)&&!this.chart.polar&&this.min>this.max&&(D2(this.options.min)?this.max=this.min:D2(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:h3&&this.linkedParent&&!w3&&u3===this.linkedParent.options.tickPixelInterval?w3=this.linkedParent.tickInterval:q(w3,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,v2?1:(this.max-this.min)*u3/Math.max(this.len,u3));if(n3&&!b3){var O3=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(O3)}));c2(this,"postProcessData",{hasExtremesChanged:O3})}this.setAxisTranslation();c2(this,"initialAxisTranslation");this.pointRange&&!w3&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));b3=q(e3.minTickInterval,this.dateTime&&!this.series.some((function(b4){return b4.noSharedTooltip}))?this.closestPointRange:0);!w3&&this.tickIntervalMath.max(2*this.len,200)))if(this.dateTime)h3=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)h3=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(e3=b3=this.tickInterval;e3<=2*b3;)if(h3=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&h3.length>this.tickAmount)this.tickInterval=T2(this,e3*=1.1);else break;else h3=[this.min,this.max],A2(19,false,this.chart);h3.length>this.len&&(h3=[h3[0],h3[h3.length-1]],h3[0]===h3[1]&&(h3.length=1));a4&&(this.tickPositions=h3,(q2=a4.apply(this,[this.min,this.max]))&&(h3=q2))}this.tickPositions=h3;this.paddedTicks=h3.slice(0);this.trimTicks(h3,u3,n3);!this.isLinked&&f2(this.min)&&f2(this.max)&&(this.single&&2>h3.length&&!this.categories&&!this.series.some((function(b4){return b4.is("heatmap")&&"between"===b4.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),d3||q2||this.adjustTickAmount());c2(this,"afterSetTickPositions")};a3.prototype.trimTicks=function(b3,f3,d3){var a4=b3[0],e3=b3[b3.length-1],h3=!this.isOrdinal&&this.minPointOffset||0;c2(this,"trimTicks");if(!this.isLinked){if(f3&&-Infinity!==a4)this.min=a4;else for(;this.min-h3>b3[0];)b3.shift();if(d3)this.max=e3;else for(;this.max+h3f3&&(this.finalTickAmt=f3,f3=5);this.tickAmount=f3};a3.prototype.adjustTickAmount=function(){var b3=this,c3=b3.finalTickAmt,d3=b3.max,a4=b3.min,e3=b3.options,h3=b3.tickPositions,n3=b3.tickAmount,u3=b3.thresholdAlignment,g4=h3&&h3.length,k3=q(b3.threshold,b3.softThreshold?0:null);var z3=b3.tickInterval;if(f2(u3)){var w3=.5>u3?Math.ceil(u3*(n3-1)):Math.floor(u3*(n3-1));e3.reversed&&(w3=n3-1-w3)}if(b3.hasData()&&f2(a4)&&f2(d3)){u3=function(){b3.transA*=(g4-1)/(n3-1);b3.min=e3.startOnTick?h3[0]:Math.min(a4,h3[0]);b3.max=e3.endOnTick?h3[h3.length-1]:Math.max(d3,h3[h3.length-1])};if(f2(w3)&&f2(b3.threshold)){for(;h3[w3]!==k3||h3.length!==n3||h3[0]>a4||h3[h3.length-1]b3.threshold?h3.unshift(p2(h3[0]-z3)):h3.push(p2(h3[h3.length-1]+z3));if(z3>8*b3.tickInterval)break;z3*=2}u3()}else if(g4=c3&&0u3&&(c3=u3)),D2(e3)&&(f4u3&&(f4=u3))),d3.displayBtn="undefined"!==typeof c3||"undefined"!==typeof f4,d3.setExtremes(c3,f4,false,void 0,{trigger:"zoom"});b4.zoomed=true}));return b3.zoomed};a3.prototype.setAxisSize=function(){var b3=this.chart,c3=this.options,f3=c3.offsets||[0,0,0,0],d3=this.horiz,a4=this.width=Math.round(N(q(c3.width,b3.plotWidth-f3[3]+f3[1]),b3.plotWidth)),e3=this.height=Math.round(N(q(c3.height,b3.plotHeight-f3[0]+f3[2]),b3.plotHeight)),h3=this.top=Math.round(N(q(c3.top,b3.plotTop+f3[0]),b3.plotHeight,b3.plotTop));c3=this.left=Math.round(N(q(c3.left,b3.plotLeft+f3[3]),b3.plotWidth,b3.plotLeft));this.bottom=b3.chartHeight-e3-h3;this.right=b3.chartWidth-a4-c3;this.len=Math.max(d3?a4:e3,0);this.pos=d3?c3:h3};a3.prototype.getExtremes=function(){var b3=this.logarithmic;return{min:b3?p2(b3.lin2log(this.min)):this.min,max:b3?p2(b3.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a3.prototype.getThreshold=function(b3){var c3=this.logarithmic,f3=c3?c3.lin2log(this.min):this.min;c3=c3?c3.lin2log(this.max):this.max;null===b3||-Infinity===b3?b3=f3:Infinity===b3?b3=c3:f3>b3?b3=f3:c3f3?b4.align="right":195f3&&(b4.align="left")}));return b3.align};a3.prototype.tickSize=function(b3){var f3=this.options,d3=q(f3["tick"===b3?"tickWidth":"minorTickWidth"],"tick"===b3&&this.isXAxis&&!this.categories?1:0),a4=f3["tick"===b3?"tickLength":"minorTickLength"];if(d3&&a4){"inside"===f3[b3+"Position"]&&(a4=-a4);var e3=[a4,d3]}b3={tickSize:e3};c2(this,"afterTickSize",b3);return b3.tickSize};a3.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)};a3.prototype.unsquish=function(){var b3=this.options.labels,c3=this.horiz,a4=this.tickInterval,e3=this.len/(((this.categories?1:0)+this.max-this.min)/a4),h3=b3.rotation,n3=this.labelMetrics(),u3=Math.max(this.max-this.min,0),g4=function(b4){var c4=b4/(e3||1);c4=1u3&&Infinity!==b4&&Infinity!==e3&&u3&&(c4=Math.ceil(u3/a4));return p2(c4*a4)},z3=a4,k3=Number.MAX_VALUE;if(c3){if(!b3.staggerLines)if(f2(h3))var w3=[h3];else e3=N2){if(c3=g4(Math.abs(n3.h/Math.sin(d2*N2))),m3=c3+Math.abs(N2/360),m3a4.step)return a4.rotation?0:(this.staggerLines||1)*this.len/e3;if(!d3){b3=a4.style.width;if(void 0!==b3)return parseInt(String(b3),10);if(h3)return h3-c3.spacing[3]}return.33*c3.chartWidth};a3.prototype.renderUnsquish=function(){var b3=this.chart,c3=b3.renderer,f3=this.tickPositions,d3=this.ticks,a4=this.options.labels,e3=a4.style,h3=this.horiz,u3=this.getSlotWidth(),q2=Math.max(1,Math.round(u3-2*a4.padding)),g4={},z3=this.labelMetrics(),k3=e3.textOverflow,w3=0;n2(a4.rotation)||(g4.rotation=a4.rotation||0);f3.forEach((function(b4){b4=d3[b4];b4.movedLabel&&b4.replaceMovedLabel();b4&&b4.label&&b4.label.textPxLength>w3&&(w3=b4.label.textPxLength)}));this.maxLabelLength=w3;if(this.autoRotation)w3>q2&&w3>z3.h?g4.rotation=this.labelRotation:this.labelRotation=0;else if(u3){var m3=q2;if(!k3){var l3="clip";for(q2=f3.length;!h3&&q2--;){var p3=f3[q2];if(p3=d3[p3].label)p3.styles&&"ellipsis"===p3.styles.textOverflow?p3.css({textOverflow:"clip"}):p3.textPxLength>u3&&p3.css({width:u3+"px"}),p3.getBBox().height>this.len/f3.length-(z3.h-z3.f)&&(p3.specificTextOverflow="ellipsis")}}}g4.rotation&&(m3=w3>.5*b3.chartHeight?.33*b3.chartHeight:w3,k3||(l3="ellipsis"));if(this.labelAlign=a4.align||this.autoLabelAlign(this.labelRotation))g4.align=this.labelAlign;f3.forEach((function(b4){var c4=(b4=d3[b4])&&b4.label,f4=e3.width,a5={};c4&&(c4.attr(g4),b4.shortenLabel?b4.shortenLabel():m3&&!f4&&"nowrap"!==e3.whiteSpace&&(m3=this.min&&b3<=this.max||this.grid&&this.grid.isColumn)d3[b3]||(d3[b3]=new H2(this,b3)),f3&&d3[b3].isNew&&d3[b3].render(c3,true,-1),d3[b3].render(c3)};a3.prototype.render=function(){var b3=this,d3=b3.chart,a4=b3.logarithmic,e3=b3.options,h3=b3.isLinked,n3=b3.tickPositions,u3=b3.axisTitle,q2=b3.ticks,g4=b3.minorTicks,k3=b3.alternateBands,w3=e3.stackLabels,m3=e3.alternateGridColor,l3=b3.tickmarkOffset,p3=b3.axisLine,N2=b3.showAxis,J2=r2(d3.renderer.globalAnimation),y3,O3;b3.labelEdge.length=0;b3.overlap=false;[q2,g4,k3].forEach((function(b4){z2(b4,(function(b5){b5.isActive=false}))}));if(b3.hasData()||h3){var D3=b3.chart.hasRendered&&b3.old&&f2(b3.old.min);b3.minorTickInterval&&!b3.categories&&b3.getMinorTickPositions().forEach((function(c3){b3.renderMinorTick(c3,D3)}));n3.length&&(n3.forEach((function(c3,f3){b3.renderTick(c3,f3,D3)})),l3&&(0===b3.min||b3.single)&&(q2[-1]||(q2[-1]=new H2(b3,-1,null,true)),q2[-1].render(-1)));m3&&n3.forEach((function(c3,f3){O3="undefined"!==typeof n3[f3+1]?n3[f3+1]+l3:b3.max-l3;0===f3%2&&c3a5&&(!g4||m2<=e2)&&"undefined"!==typeof m2&&l3.push(m2);m2>e2&&(c2=true);m2=f2}}}else a5=this.lin2log(a5),e2=this.lin2log(e2),d2=g4?h2.getMinorTickInterval():m2.tickInterval,d2=F2("auto"===d2?null:d2,this.minorAutoInterval,m2.tickPixelInterval/(g4?5:1)*(e2-a5)/((g4?k2/h2.tickPositions.length:k2)||1)),d2=x2(d2),l3=h2.getLinearTickPositions(d2,a5,e2).map(this.log2lin),g4||(this.minorAutoInterval=d2/5);g4||(h2.tickInterval=d2);return l3};a4.prototype.lin2log=function(d2){return Math.pow(10,d2)};a4.prototype.log2lin=function(d2){return Math.log(d2)/Math.LN10};return a4}();a3.Additions=l2})(C2||(C2={}));return C2}));K(g2,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[g2["Core/Utilities.js"]],(function(a2){var g3=a2.erase,x2=a2.extend,F2=a2.isNumber,C2;(function(a3){var A2=[],t2;a3.compose=function(a4,e2){t2||(t2=a4);-1===A2.indexOf(e2)&&(A2.push(e2),x2(e2.prototype,r2.prototype));return e2};var r2=function(){function a4(){}a4.prototype.getPlotBandPath=function(a5,d2,h2){void 0===h2&&(h2=this.options);var e2=this.getPlotLinePath({value:d2,force:true,acrossPanes:h2.acrossPanes}),g4=[],l2=this.horiz;d2=!F2(this.min)||!F2(this.max)||a5this.max&&d2>this.max;a5=this.getPlotLinePath({value:a5,force:true,acrossPanes:h2.acrossPanes});h2=1;if(a5&&e2){if(d2){var r3=a5.toString()===e2.toString();h2=0}for(d2=0;d2l4-h3?l4:l4-h3);else if(G2)e3[c3]=Math.max(u2,n2+h3+a5>f3?n2:n2+h3);else return false},D3=function(c3,f3,a5,d4,h4){var n2;h4f3-b2?n2=false:e3[c3]=h4f3-d4/2?f3-d4-2:h4-a5/2;return n2},E3=function(b3){var c3=p3;p3=y2;y2=c3;v2=b3},G=function(){false!==t3.apply(0,p3)?false!==D3.apply(0,y2)||v2||(E3(true),G()):v2?e3.x=e3.y=0:(E3(true),G())};(d3.inverted||1c3}))&&(c2=c2.map((function(b3){var c3=f2(b3.anchorX,b3.anchorY,b3.point.isHeader,b3.boxWidth,false);return d2(b3,{target:c3.y,x:c3.x})})));e3.cleanSplit();t2(c2,ba);var B=V2,F3=V2;c2.forEach((function(b3){var c3=b3.x,a5=b3.boxWidth;b3=b3.isHeader;b3||(e3.outside&&V2+c3F3&&(F3=V2+c3))}));c2.forEach((function(b3){var c3=b3.x,a5=b3.anchorX,f3=b3.pos,d3=b3.point.isHeader;f3={visibility:"undefined"===typeof f3?"hidden":"inherit",x:c3,y:(f3||0)+Z,anchorX:a5,anchorY:b3.anchorY};if(e3.outside&&c3f2[0]?Math.max(Math.abs(f2[0]),b2.width-f2[0]):Math.max(Math.abs(f2[0]),b2.width);d3.height=0>f2[1]?Math.max(Math.abs(f2[1]),b2.height-Math.abs(f2[1])):Math.max(Math.abs(f2[1]),b2.height);this.tracker?this.tracker.attr(d3):(this.tracker=a4.renderer.rect(d3).addClass("highcharts-tracker").add(a4),c2.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()};a3.prototype.styledModeFormat=function(c2){return c2.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}"')};a3.prototype.tooltipFooterHeaderFormatter=function(c2,a4){var f2=c2.series,d3=f2.tooltipOptions,b2=f2.xAxis,e3=b2&&b2.dateTime;b2={isFooter:a4,labelConfig:c2};var g4=d3.xDateFormat,q=d3[a4?"footerFormat":"headerFormat"];h2(this,"headerFormatter",b2,(function(b3){e3&&!g4&&k2(c2.key)&&(g4=e3.getXDateFormat(c2.key,d3.dateTimeLabelFormats));e3&&g4&&(c2.point&&c2.point.tooltipDateKeys||["key"]).forEach((function(b4){q=q.replace("{point."+b4+"}","{point."+b4+":"+g4+"}")}));f2.chart.styledMode&&(q=this.styledModeFormat(q));b3.text=A2(q,{point:c2,series:f2},this.chart)}));return b2.text};a3.prototype.update=function(c2){this.destroy();D2(true,this.chart.options.tooltip.userOptions,c2);this.init(this.chart,D2(true,this.options,c2))};a3.prototype.updatePosition=function(c2){var a4=this.chart,f2=this.distance,d3=this.options,b2=a4.pointer,e3=this.getLabel(),h3=b2.getChartPosition();b2=h3.left;var g4=h3.top,k3=h3.scaleX;h3=h3.scaleY;var m3=(d3.positioner||this.getPosition).call(this,e3.width,e3.height,c2),p3=(c2.plotX||0)+a4.plotLeft;c2=(c2.plotY||0)+a4.plotTop;if(this.outside){d3.positioner&&(m3.x+=b2-f2,m3.y+=g4-f2);f2=d3.borderWidth+2*f2;this.renderer.setSize(e3.width+f2,e3.height+f2,false);if(1!==k3||1!==h3)l2(this.container,{transform:"scale(".concat(k3,", ").concat(h3,")")}),p3*=k3,c2*=h3;p3+=b2-m3.x;c2+=g4-m3.y}this.move(Math.round(m3.x),Math.round(m3.y||0),p3,c2)};return a3}();return a2}));K(g2,"Core/Series/Point.js",[g2["Core/Renderer/HTML/AST.js"],g2["Core/Animation/AnimationUtilities.js"],g2["Core/Defaults.js"],g2["Core/FormatUtilities.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2){var A2=g3.animObject,H2=x2.defaultOptions,t2=F2.format,r2=C2.addEvent,l2=C2.defined,e2=C2.erase,d2=C2.extend,h2=C2.fireEvent,m2=C2.getNestedProperty,k2=C2.isArray,p2=C2.isFunction,D2=C2.isNumber,I=C2.isObject,E2=C2.merge,L2=C2.objectEach,y2=C2.pick,c2=C2.syncTimeout,w2=C2.removeEvent,f2=C2.uniqueKey;g3=function(){function g4(){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}g4.prototype.animateBeforeDestroy=function(){var b2=this,c3={x:b2.startXPos,opacity:0},a3=b2.getGraphicalProps();a3.singular.forEach((function(a4){b2[a4]=b2[a4].animate("dataLabel"===a4?{x:b2[a4].startXPos,y:b2[a4].startYPos,opacity:0}:c3)}));a3.plural.forEach((function(c4){b2[c4].forEach((function(c5){c5.element&&c5.animate(d2({x:b2.startXPos},c5.startYPos?{x:c5.startXPos,y:c5.startYPos}:{}))}))}))};g4.prototype.applyOptions=function(b2,c3){var a3=this.series,f3=a3.options.pointValKey||a3.pointValKey;b2=g4.prototype.optionsToObject.call(this,b2);d2(this,b2);this.options=this.options?d2(this.options,b2):b2;b2.group&&delete this.group;b2.dataLabels&&delete this.dataLabels;f3&&(this.y=g4.prototype.getNestedProperty.call(this,f3));this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof c3&&a3.xAxis&&a3.xAxis.hasNames&&(this.x=a3.xAxis.nameToX(this));"undefined"===typeof this.x&&a3?this.x="undefined"===typeof c3?a3.autoIncrement():c3:D2(b2.x)&&a3.options.relativeXValue&&(this.x=a3.autoIncrement(b2.x));return this};g4.prototype.destroy=function(){function b2(){if(a3.graphic||a3.graphics||a3.dataLabel||a3.dataLabels)w2(a3),a3.destroyElements();for(n2 in a3)a3[n2]=null}var a3=this,f3=a3.series,d3=f3.chart;f3=f3.options.dataSorting;var h3=d3.hoverPoints,g5=A2(a3.series.chart.renderer.globalAnimation),n2;a3.legendItem&&d3.legend.destroyItem(a3);h3&&(a3.setState(),e2(h3,a3),h3.length||(d3.hoverPoints=null));if(a3===d3.hoverPoint)a3.onMouseOut();f3&&f3.enabled?(this.animateBeforeDestroy(),c2(b2,g5.duration)):b2();d3.pointCount--};g4.prototype.destroyElements=function(b2){var c3=this;b2=c3.getGraphicalProps(b2);b2.singular.forEach((function(b3){c3[b3]=c3[b3].destroy()}));b2.plural.forEach((function(b3){c3[b3].forEach((function(b4){b4&&b4.element&&b4.destroy()}));delete c3[b3]}))};g4.prototype.firePointEvent=function(b2,c3,a3){var f3=this,d3=this.series.options;(d3.point.events[b2]||f3.options&&f3.options.events&&f3.options.events[b2])&&f3.importEvents();"click"===b2&&d3.allowPointSelect&&(a3=function(b3){f3.select&&f3.select(null,b3.ctrlKey||b3.metaKey||b3.shiftKey)});h2(f3,b2,c3,a3)};g4.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",""):"")};g4.prototype.getGraphicalProps=function(b2){var c3=this,a3=[],f3={singular:[],plural:[]},d3;b2=b2||{graphic:1,dataLabel:1};b2.graphic&&a3.push("graphic","shadowGroup");b2.dataLabel&&a3.push("dataLabel","dataLabelPath","dataLabelUpper","connector");for(d3=a3.length;d3--;){var e3=a3[d3];c3[e3]&&f3.singular.push(e3)}["graphic","dataLabel","connector"].forEach((function(a4){var d4=a4+"s";b2[a4]&&c3[d4]&&f3.plural.push(d4)}));return f3};g4.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}};g4.prototype.getNestedProperty=function(b2){if(b2)return 0===b2.indexOf("custom.")?m2(b2,this.options):this[b2]};g4.prototype.getZone=function(){var b2=this.series,c3=b2.zones;b2=b2.zoneAxis||"y";var a3,f3=0;for(a3=c3[f3];this[b2]>=a3.value;)a3=c3[++f3];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=a3&&a3.color&&!this.options.color?a3.color:this.nonZonedColor;return a3};g4.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};g4.prototype.init=function(b2,c3,a3){this.series=b2;this.applyOptions(c3,a3);this.id=l2(this.id)?this.id:f2();this.resolveColor();b2.chart.pointCount++;h2(this,"afterInit");return this};g4.prototype.isValid=function(){return null!==this.x&&D2(this.y)};g4.prototype.optionsToObject=function(b2){var c3=this.series,a3=c3.options.keys,f3=a3||c3.pointArrayMap||["y"],d3=f3.length,e3={},h3=0,n2=0;if(D2(b2)||null===b2)e3[f3[0]]=b2;else if(k2(b2))for(!a3&&b2.length>d3&&(c3=typeof b2[0],"string"===c3?e3.name=b2[0]:"number"===c3&&(e3.x=b2[0]),h3++);n2d3+e3&&(y2=d3+e3),r3b2+h3&&(r3=b2+h3),this.hasDragged=Math.sqrt(Math.pow(g4-y2,2)+Math.pow(k3-r3,2)),10b2.options.findNearestPointBy.indexOf("y");b2=b2.searchPoint(f2,c3);if((c3=p2(b2,true)&&b2.series)&&!(c3=!p2(d3,true))){c3=d3.distX-b2.distX;var e3=d3.dist-b2.dist,h3=(b2.series.group&&b2.series.group.zIndex)-(d3.series.group&&d3.series.group.zIndex);c3=0<(0!==c3&&a4?c3:0!==e3?e3:0!==h3?h3:d3.series.index>b2.series.index?-1:1)}c3&&(d3=b2)}));return d3};a3.prototype.getChartCoordinatesFromPoint=function(c2,a4){var f2=c2.series,d3=f2.xAxis;f2=f2.yAxis;var b2=c2.shapeArgs;if(d3&&f2){var e3=E2(c2.clientX,c2.plotX),h3=c2.plotY||0;c2.isNode&&b2&&k2(b2.x)&&k2(b2.y)&&(e3=b2.x,h3=b2.y);return a4?{chartX:f2.len+f2.pos-h3,chartY:d3.len+d3.pos-e3}:{chartX:e3+d3.pos,chartY:h3+f2.pos}}if(b2&&b2.x&&b2.y)return{chartX:b2.x,chartY:b2.y}};a3.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var c2=this.chart.container,a4=I(c2);this.chartPosition={left:a4.left,top:a4.top,scaleX:1,scaleY:1};var f2=c2.offsetWidth;c2=c2.offsetHeight;2p3.max&&(f2=p3.max-G,E3=true);E3?(t3-=.8*(t3-g4[n2][0]),"number"===typeof R2&&(R2-=.8*(R2-g4[n2][1])),d3()):g4[n2]=[t3,R2];z2||(h3[n2]=P-l3,h3[m3]=G);h3=z2?1/M:M;b2[m3]=G;b2[n2]=f2;e3[z2?a4?"scaleY":"scaleX":"scale"+q]=M;e3["translate"+q]=h3*l3+(t3-h3*y2)};a3.prototype.reset=function(a4,d3){var c2=this.chart,e3=c2.hoverSeries,b2=c2.hoverPoint,h3=c2.hoverPoints,g4=c2.tooltip,k3=g4&&g4.shared?h3:b2;a4&&k3&&L2(k3).forEach((function(b3){b3.series.isCartesian&&"undefined"===typeof b3.plotX&&(a4=false)}));if(a4)g4&&k3&&L2(k3).length&&(g4.refresh(k3),g4.shared&&h3?h3.forEach((function(b3){b3.setState(b3.state,true);b3.series.isCartesian&&(b3.series.xAxis.crosshair&&b3.series.xAxis.drawCrosshair(null,b3),b3.series.yAxis.crosshair&&b3.series.yAxis.drawCrosshair(null,b3))})):b2&&(b2.setState(b2.state,true),c2.axes.forEach((function(a5){a5.crosshair&&b2.series[a5.coll]===a5&&a5.drawCrosshair(null,b2)}))));else{if(b2)b2.onMouseOut();h3&&h3.forEach((function(b3){b3.setState()}));if(e3)e3.onMouseOut();g4&&g4.hide(d3);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());c2.axes.forEach((function(b3){b3.hideCrosshair()}));this.hoverX=c2.hoverPoints=c2.hoverPoint=null}};a3.prototype.runPointActions=function(c2,d3,f2){var e3=this.chart,b2=e3.tooltip&&e3.tooltip.options.enabled?e3.tooltip:void 0,g4=b2?b2.shared:false,k3=d3||e3.hoverPoint,q=k3&&k3.series||e3.hoverSeries;d3=this.getHoverData(k3,q,e3.series,(!c2||"touchmove"!==c2.type)&&(!!d3||q&&q.directTouch&&this.isDirectTouch),g4,c2);k3=d3.hoverPoint;q=d3.hoverSeries;var m3=d3.hoverPoints;d3=q&&q.tooltipOptions.followPointer&&!q.tooltipOptions.split;var l3=g4&&q&&!q.noSharedTooltip;if(k3&&(f2||k3!==e3.hoverPoint||b2&&b2.isHidden)){(e3.hoverPoints||[]).forEach((function(b3){-1===m3.indexOf(b3)&&b3.setState()}));if(e3.hoverSeries!==q)q.onMouseOver();this.applyInactiveState(m3);(m3||[]).forEach((function(b3){b3.setState("hover")}));e3.hoverPoint&&e3.hoverPoint.firePointEvent("mouseOut");if(!k3.series)return;e3.hoverPoints=m3;e3.hoverPoint=k3;k3.firePointEvent("mouseOver",void 0,(function(){b2&&k3&&b2.refresh(l3?m3:k3,c2)}))}else d3&&b2&&!b2.isHidden&&(f2=b2.getAnchor([{}],c2),e3.isInsidePlot(f2[0],f2[1],{visiblePlotOnly:true})&&b2.updatePosition({plotX:f2[0],plotY:f2[1]}));this.unDocMouseMove||(this.unDocMouseMove=t2(e3.container.ownerDocument,"mousemove",(function(b3){var c3=B[a3.hoverChartIndex];if(c3)c3.pointer.onDocumentMouseMove(b3)})),this.eventsToUnbind.push(this.unDocMouseMove));e3.axes.forEach((function(b3){var a4=E2((b3.crosshair||{}).snap,true),d4;a4&&((d4=e3.hoverPoint)&&d4.series[b3.coll]===b3||(d4=h2(m3,(function(a5){return a5.series&&a5.series[b3.coll]===b3}))));d4||!a4?b3.drawCrosshair(c2,d4):b3.hideCrosshair()}))};a3.prototype.scaleGroups=function(a4,d3){var c2=this.chart;c2.series.forEach((function(f2){var b2=a4||f2.getPlotBox();f2.group&&(f2.xAxis&&f2.xAxis.zoomEnabled||c2.mapView)&&(f2.group.attr(b2),f2.markerGroup&&(f2.markerGroup.attr(b2),f2.markerGroup.clip(d3?c2.clipRect:null)),f2.dataLabelsGroup&&f2.dataLabelsGroup.attr(b2))}));c2.clipRect.attr(d3||c2.clipBox)};a3.prototype.setDOMEvents=function(){var c2=this,d3=this.chart.container,f2=d3.ownerDocument;d3.onmousedown=this.onContainerMouseDown.bind(this);d3.onmousemove=this.onContainerMouseMove.bind(this);d3.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(t2(d3,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(t2(d3,"mouseleave",this.onContainerMouseLeave.bind(this)));a3.unbindDocumentMouseUp||(a3.unbindDocumentMouseUp=t2(f2,"mouseup",this.onDocumentMouseUp.bind(this)));for(var e3=this.chart.renderTo.parentElement;e3&&"BODY"!==e3.tagName;)this.eventsToUnbind.push(t2(e3,"scroll",(function(){delete c2.chartPosition}))),e3=e3.parentElement;g3.hasTouch&&(this.eventsToUnbind.push(t2(d3,"touchstart",this.onContainerTouchStart.bind(this),{passive:false})),this.eventsToUnbind.push(t2(d3,"touchmove",this.onContainerTouchMove.bind(this),{passive:false})),a3.unbindDocumentTouchEnd||(a3.unbindDocumentTouchEnd=t2(f2,"touchend",this.onDocumentTouchEnd.bind(this),{passive:false})))};a3.prototype.setHoverChartIndex=function(){var c2=this.chart,d3=g3.charts[E2(a3.hoverChartIndex,-1)];if(d3&&d3!==c2)d3.pointer.onContainerMouseLeave({relatedTarget:c2.container});d3&&d3.mouseIsDown||(a3.hoverChartIndex=c2.index)};a3.prototype.touch=function(a4,d3){var c2=this.chart;this.setHoverChartIndex();if(1===a4.touches.length)if(a4=this.normalize(a4),c2.isInsidePlot(a4.chartX-c2.plotLeft,a4.chartY-c2.plotTop,{visiblePlotOnly:true})&&!c2.openMenu){d3&&this.runPointActions(a4);if("touchmove"===a4.type){d3=this.pinchDown;var b2=d3[0]?4<=Math.sqrt(Math.pow(d3[0].chartX-a4.chartX,2)+Math.pow(d3[0].chartY-a4.chartY,2)):false}E2(b2,true)&&this.pinch(a4)}else d3&&this.reset();else 2===a4.touches.length&&this.pinch(a4)};a3.prototype.touchSelect=function(a4){return!(!this.chart.options.chart.zooming.singleTouch||!a4.touches||1!==a4.touches.length)};a3.prototype.zoomOption=function(a4){var c2=this.chart,d3=c2.options.chart;c2=c2.inverted;var e3=d3.zooming.type||"";/touch/.test(a4.type)&&(e3=E2(d3.zooming.pinchType,e3));this.zoomX=a4=/x/.test(e3);this.zoomY=d3=/y/.test(e3);this.zoomHor=a4&&!c2||d3&&c2;this.zoomVert=d3&&!c2||a4&&c2;this.hasZoom=a4||d3};return a3}();return a2}));K(g2,"Core/MSPointer.js",[g2["Core/Globals.js"],g2["Core/Pointer.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){function A2(){var a3=[];a3.item=function(a4){return this[a4]};h2(p2,(function(d3){a3.push({pageX:d3.pageX,pageY:d3.pageY,target:d3.target})}));return a3}function C2(a3,d3,e3,h3){var c2=H2[g3.hoverChartIndex||NaN];"touch"!==a3.pointerType&&a3.pointerType!==a3.MSPOINTER_TYPE_TOUCH||!c2||(c2=c2.pointer,h3(a3),c2[d3]({type:e3,target:a3.currentTarget,preventDefault:r2,touches:A2()}))}var B=this&&this.__extends||function(){var a3=function(d3,e3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,c2){a4.__proto__=c2}||function(a4,c2){for(var d4 in c2)c2.hasOwnProperty(d4)&&(a4[d4]=c2[d4])};return a3(d3,e3)};return function(d3,e3){function h3(){this.constructor=d3}a3(d3,e3);d3.prototype=null===e3?Object.create(e3):(h3.prototype=e3.prototype,new h3)}}(),H2=a2.charts,t2=a2.doc,r2=a2.noop,l2=a2.win,e2=x2.addEvent,d2=x2.css,h2=x2.objectEach,m2=x2.pick,k2=x2.removeEvent,p2={},D2=!!l2.PointerEvent;return function(h3){function g4(){return null!==h3&&h3.apply(this,arguments)||this}B(g4,h3);g4.isRequired=function(){return!(a2.hasTouch||!l2.PointerEvent&&!l2.MSPointerEvent)};g4.prototype.batchMSEvents=function(a3){a3(this.chart.container,D2?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a3(this.chart.container,D2?"pointermove":"MSPointerMove",this.onContainerPointerMove);a3(t2,D2?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};g4.prototype.destroy=function(){this.batchMSEvents(k2);h3.prototype.destroy.call(this)};g4.prototype.init=function(a3,e3){h3.prototype.init.call(this,a3,e3);this.hasZoom&&d2(a3.container,{"-ms-touch-action":"none","touch-action":"none"})};g4.prototype.onContainerPointerDown=function(a3){C2(a3,"onContainerTouchStart","touchstart",(function(a4){p2[a4.pointerId]={pageX:a4.pageX,pageY:a4.pageY,target:a4.currentTarget}}))};g4.prototype.onContainerPointerMove=function(a3){C2(a3,"onContainerTouchMove","touchmove",(function(a4){p2[a4.pointerId]={pageX:a4.pageX,pageY:a4.pageY};p2[a4.pointerId].target||(p2[a4.pointerId].target=a4.currentTarget)}))};g4.prototype.onDocumentPointerUp=function(a3){C2(a3,"onDocumentTouchEnd","touchend",(function(a4){delete p2[a4.pointerId]}))};g4.prototype.setDOMEvents=function(){var a3=this.chart.tooltip;h3.prototype.setDOMEvents.call(this);(this.hasZoom||m2(a3&&a3.options.followTouchMove,true))&&this.batchMSEvents(e2)};return g4}(g3)}));K(g2,"Core/Legend/Legend.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/FormatUtilities.js"],g2["Core/Globals.js"],g2["Core/Series/Point.js"],g2["Core/Renderer/RendererUtilities.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B){var A2=a2.animObject,t2=a2.setAnimation,r2=g3.format,l2=x2.marginNames,e2=C2.distribute,d2=B.addEvent,h2=B.createElement,m2=B.css,k2=B.defined,p2=B.discardElement,D2=B.find,I=B.fireEvent,E2=B.isNumber,L2=B.merge,y2=B.pick,c2=B.relativeLength,w2=B.stableSort,f2=B.syncTimeout;a2=function(){function a3(b2,a4){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=b2;this.init(b2,a4)}a3.prototype.init=function(b2,a4){this.chart=b2;this.setOptions(a4);a4.enabled&&(this.render(),d2(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=d2(this.chart,"render",(function(){this.legend.proximatePositions();this.legend.positionItems()})):this.unchartrender&&this.unchartrender())};a3.prototype.setOptions=function(b2){var a4=y2(b2.padding,8);this.options=b2;this.chart.styledMode||(this.itemStyle=b2.itemStyle,this.itemHiddenStyle=L2(this.itemStyle,b2.itemHiddenStyle));this.itemMarginTop=b2.itemMarginTop||0;this.itemMarginBottom=b2.itemMarginBottom||0;this.padding=a4;this.initialItemY=a4-5;this.symbolWidth=y2(b2.symbolWidth,16);this.pages=[];this.proximate="proximate"===b2.layout&&!this.chart.inverted;this.baseline=void 0};a3.prototype.update=function(b2,a4){var c3=this.chart;this.setOptions(L2(true,this.options,b2));this.destroy();c3.isDirtyLegend=c3.isDirtyBox=true;y2(a4,true)&&c3.redraw();I(this,"afterUpdate")};a3.prototype.colorizeItem=function(b2,a4){var c3=b2.legendItem||{},d3=c3.group,f3=c3.label,e3=c3.line;c3=c3.symbol;if(d3)d3[a4?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var h3=this.options;d3=this.itemHiddenStyle.color;h3=a4?h3.itemStyle.color:d3;var g4=a4?b2.color||d3:d3,k3=b2.options&&b2.options.marker,n2={fill:g4};f3&&f3.css({fill:h3,color:h3});e3&&e3.attr({stroke:g4});c3&&(k3&&c3.isMarker&&(n2=b2.pointAttribs(),a4||(n2.stroke=n2.fill=d3)),c3.attr(n2))}I(this,"afterColorizeItem",{item:b2,visible:a4})};a3.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};a3.prototype.positionItem=function(b2){var a4=this,c3=b2.legendItem||{},d3=c3.group,f3=c3.x;f3=void 0===f3?0:f3;c3=c3.y;c3=void 0===c3?0:c3;var e3=this.options,h3=e3.symbolPadding,g4=!e3.rtl;e3=b2.checkbox;d3&&d3.element&&(h3={translateX:g4?f3:this.legendWidth-f3-2*h3-4,translateY:c3},d3[k2(d3.translateY)?"animate":"attr"](h3,void 0,(function(){I(a4,"afterPositionItem",{item:b2})})));e3&&(e3.x=f3,e3.y=c3)};a3.prototype.destroyItem=function(b2){for(var a4=b2.checkbox,c3=b2.legendItem||{},d3=0,f3=["group","label","line","symbol"];d3d3-6&&h31.5*d3?c3.height:d3))};a3.prototype.layoutItem=function(b2){var a4=this.options,c3=this.padding,d3="horizontal"===a4.layout,f3=b2.itemHeight,e3=this.itemMarginBottom,h3=this.itemMarginTop,g4=d3?y2(a4.itemDistance,20):0,k3=this.maxLegendWidth;a4=a4.alignColumns&&this.totalItemWidth>k3?this.maxItemWidth:b2.itemWidth;var n2=b2.legendItem||{};d3&&this.itemX-c3+a4>k3&&(this.itemX=c3,this.lastLineHeight&&(this.itemY+=h3+this.lastLineHeight+e3),this.lastLineHeight=0);this.lastItemY=h3+this.itemY+e3;this.lastLineHeight=Math.max(f3,this.lastLineHeight);n2.x=this.itemX;n2.y=this.itemY;d3?this.itemX+=a4:(this.itemY+=h3+f3+e3,this.lastLineHeight=f3);this.offsetWidth=this.widthOption||Math.max((d3?this.itemX-c3-(b2.checkbox?0:g4):a4)+c3,this.offsetWidth)};a3.prototype.getAllItems=function(){var b2=[];this.chart.series.forEach((function(a4){var c3=a4&&a4.options;a4&&y2(c3.showInLegend,k2(c3.linkedTo)?false:void 0,true)&&(b2=b2.concat((a4.legendItem||{}).labels||("point"===c3.legendType?a4.data:a4)))}));I(this,"afterGetAllItems",{allItems:b2});return b2};a3.prototype.getAlignment=function(){var b2=this.options;return this.proximate?b2.align.charAt(0)+"tv":b2.floating?"":b2.align.charAt(0)+b2.verticalAlign.charAt(0)+b2.layout.charAt(0)};a3.prototype.adjustMargins=function(b2,a4){var c3=this.chart,d3=this.options,f3=this.getAlignment();f3&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(e3,h3){e3.test(f3)&&!k2(b2[h3])&&(c3[l2[h3]]=Math.max(c3[l2[h3]],c3.legend[(h3+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h3]*d3[h3%2?"x":"y"]+y2(d3.margin,12)+a4[h3]+(c3.titleOffset[h3]||0)))}))};a3.prototype.proximatePositions=function(){var b2=this.chart,a4=[],c3="left"===this.options.align;this.allItems.forEach((function(d4){var f4;var e3=c3;if(d4.yAxis){d4.xAxis.options.reversed&&(e3=!e3);d4.points&&(f4=D2(e3?d4.points:d4.points.slice(0).reverse(),(function(b3){return E2(b3.plotY)})));e3=this.itemMarginTop+d4.legendItem.label.getBBox().height+this.itemMarginBottom;var h4=d4.yAxis.top-b2.plotTop;d4.visible?(f4=f4?f4.plotY:d4.yAxis.height,f4+=h4-.3*e3):f4=h4+d4.yAxis.height;a4.push({target:f4,size:e3,item:d4})}}),this);for(var d3,f3=0,h3=e2(a4,b2.plotHeight);f3e3&&false!==n2.enabled?(this.clipHeight=P=Math.max(e3-20-this.titleHeight-g4,0),this.currentPage=y2(this.currentPage,1),this.fullHeight=b2,r3.forEach((function(b3,a5){t3=b3.legendItem||{};b3=t3.y||0;var c4=Math.round(t3.label.getBBox().height),d4=p3.length;if(!d4||b3-p3[d4-1]>P&&(M||b3)!==p3[d4-1])p3.push(M||b3),d4++;t3.pageIx=d4-1;M&&((r3[a5-1].legendItem||{}).pageIx=d4-1);a5===r3.length-1&&b3+c4-p3[d4-1]>P&&c4<=P&&(p3.push(b3),t3.pageIx=d4);b3!==M&&(M=b3)})),D3||(D3=a4.clipRect=d3.clipRect(0,g4,9999,0),a4.contentGroup.clip(D3)),w3(P),R2||(this.nav=R2=d3.g().attr({zIndex:1}).add(this.group),this.up=d3.symbol("triangle",0,0,l3,l3).add(R2),G("upTracker").on("click",(function(){a4.scroll(-1,m3)})),this.pager=d3.text("",15,10).addClass("highcharts-legend-navigation"),!c3.styledMode&&n2.style&&this.pager.css(n2.style),this.pager.add(R2),this.down=d3.symbol("triangle-down",0,0,l3,l3).add(R2),G("downTracker").on("click",(function(){a4.scroll(1,m3)}))),a4.scroll(0),b2=e3):R2&&(w3(),this.nav=R2.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return b2};a3.prototype.scroll=function(b2,a4){var c3=this,d3=this.chart,e3=this.pages,h3=e3.length,g4=this.clipHeight,k3=this.options.navigation,n2=this.pager,m3=this.padding,l3=this.currentPage+b2;l3>h3&&(l3=h3);0=Math.max(k3+e3,q2.pos)&&g4<=Math.min(k3+e3+f3.width,q2.pos+q2.len)||(b3.isInsidePlot=false)}!c3.ignoreY&&b3.isInsidePlot&&(d3=c3.axis&&!c3.axis.isXAxis&&c3.axis||m3&&(d3?m3.xAxis:m3.yAxis)||{pos:h3,len:Infinity},c3=c3.paneCoordinates?d3.pos+a4:h3+a4,c3>=Math.max(n3+h3,d3.pos)&&c3<=Math.min(n3+h3+f3.height,d3.pos+d3.len)||(b3.isInsidePlot=false));S2(this,"afterIsInsidePlot",b3);return b3.isInsidePlot};a3.prototype.redraw=function(b3){S2(this,"beforeRedraw");var a4=this.hasCartesianSeries?this.axes:this.colorAxis||[],c3=this.series,d3=this.pointer,f3=this.legend,e3=this.userOptions.legend,h3=this.renderer,g4=h3.isHidden(),k3=[],n3=this.isDirtyBox,m3=this.isDirtyLegend;this.setResponsive&&this.setResponsive(false);A2(this.hasRendered?b3:false,this);g4&&this.temporaryDisplay();this.layOutTitles();for(b3=c3.length;b3--;){var q2=c3[b3];if(q2.options.stacking||q2.options.centerInCategory){var l3=true;if(q2.isDirty){var G2=true;break}}}if(G2)for(b3=c3.length;b3--;)q2=c3[b3],q2.options.stacking&&(q2.isDirty=true);c3.forEach((function(b4){b4.isDirty&&("point"===b4.options.legendType?("function"===typeof b4.updateTotals&&b4.updateTotals(),m3=true):e3&&(e3.labelFormatter||e3.labelFormat)&&(m3=true));b4.isDirtyData&&S2(b4,"updatedData")}));m3&&f3&&f3.options.enabled&&(f3.render(),this.isDirtyLegend=false);l3&&this.getStacks();a4.forEach((function(b4){b4.updateNames();b4.setScale()}));this.getMargins();a4.forEach((function(b4){b4.isDirty&&(n3=true)}));a4.forEach((function(b4){var a5=b4.min+","+b4.max;b4.extKey!==a5&&(b4.extKey=a5,k3.push((function(){S2(b4,"afterSetExtremes",K2(b4.eventArgs,b4.getExtremes()));delete b4.eventArgs})));(n3||l3)&&b4.redraw()}));n3&&this.drawChartBox();S2(this,"predraw");c3.forEach((function(b4){(n3||b4.isDirty)&&b4.visible&&b4.redraw();b4.isDirtyData=false}));d3&&d3.reset(true);h3.draw();S2(this,"redraw");S2(this,"render");g4&&this.temporaryDisplay(true);k3.forEach((function(b4){b4.call()}))};a3.prototype.get=function(b3){function a4(a5){return a5.id===b3||a5.options&&a5.options.id===b3}for(var c3=this.series,d3=ca(this.axes,a4)||ca(this.series,a4),f3=0;!d3&&f3a4.pointCount))};a3.prototype.pan=function(b3,a4){var c3=this,d3=c3.hoverPoints;a4="object"===typeof a4?a4:{enabled:a4,type:"x"};var f3=c3.options.chart;f3&&f3.panning&&(f3.panning=a4);var e3=a4.type,h3;S2(this,"pan",{originalEvent:b3},(function(){d3&&d3.forEach((function(b4){b4.setState()}));var a5=c3.xAxis;"xy"===e3?a5=a5.concat(c3.yAxis):"y"===e3&&(a5=c3.yAxis);var f4={};a5.forEach((function(a6){if(a6.options.panningEnabled&&!a6.options.isInternal){var d4=a6.horiz,g4=b3[d4?"chartX":"chartY"];d4=d4?"mouseDownX":"mouseDownY";var k3=c3[d4],n3=a6.minPointOffset||0,m3=a6.reversed&&!c3.inverted||!a6.reversed&&c3.inverted?-1:1,l3=a6.getExtremes(),q2=a6.toValue(k3-g4,true)+n3*m3,G2=a6.toValue(k3+a6.len-g4,true)-(n3*m3||a6.isXAxis&&a6.pointRangePadding||0),u3=G2=m3&&q2<=G2&&(a6.setExtremes(k3,q2,false,false,{trigger:"pan"}),!c3.resetZoomButton&&k3!==m3&&q2!==G2&&e3.match("y")&&(c3.showResetZoom(),a6.displayBtn=false),h3=true),f4[d4]=g4)}}));Z(f4,(function(b4,a6){c3[a6]=b4}));h3&&c3.redraw(false);Q(c3.container,{cursor:"move"})}))};return a3}();K2(a2.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a2.prototype.addAxis,[true]],yAxis:[a2.prototype.addAxis,[false]],series:[a2.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 a2}));K(g2,"Core/Legend/LegendSymbol.js",[g2["Core/Utilities.js"]],(function(a2){var g3=a2.extend,x2=a2.merge,F2=a2.pick,C2;(function(a3){a3.drawLineMarker=function(a4){var t2=this.legendItem=this.legendItem||{},r2=this.options,l2=a4.symbolWidth,e2=a4.symbolHeight,d2=e2/2,h2=this.chart.renderer,m2=t2.group;a4=a4.baseline-Math.round(.3*a4.fontMetrics.b);var k2={},p2=r2.marker,D2=0;this.chart.styledMode||(k2={"stroke-width":Math.min(r2.lineWidth||0,24)},r2.dashStyle?k2.dashstyle=r2.dashStyle:"square"!==r2.linecap&&(k2["stroke-linecap"]="round"));t2.line=h2.path().addClass("highcharts-graph").attr(k2).add(m2);k2["stroke-linecap"]&&(D2=Math.min(t2.line.strokeWidth(),l2)/2);t2.line.attr({d:[["M",D2,a4],["L",l2-D2,a4]]});p2&&false!==p2.enabled&&l2&&(r2=Math.min(F2(p2.radius,d2),d2),0===this.symbol.indexOf("url")&&(p2=x2(p2,{width:e2,height:e2}),r2=0),t2.symbol=t2=h2.symbol(this.symbol,l2/2-r2,a4-r2,2*r2,2*r2,g3({context:"legend"},p2)).addClass("highcharts-point").add(m2),t2.isMarker=true)};a3.drawRectangle=function(a4,g4){g4=g4.legendItem||{};var r2=a4.symbolHeight,l2=a4.options.squareSymbol;g4.symbol=this.chart.renderer.rect(l2?(a4.symbolWidth-r2)/2:0,a4.baseline-r2+1,l2?r2:a4.symbolWidth,r2,F2(a4.options.symbolRadius,r2/2)).addClass("highcharts-point").attr({zIndex:3}).add(g4.group)}})(C2||(C2={}));return C2}));K(g2,"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 a2=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":a2(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"}}));K(g2,"Core/Series/Series.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/Defaults.js"],g2["Core/Foundation.js"],g2["Core/Globals.js"],g2["Core/Legend/LegendSymbol.js"],g2["Core/Series/Point.js"],g2["Core/Series/SeriesDefaults.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Renderer/SVG/SVGElement.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B,H2,t2,r2,l2){var e2=a2.animObject,d2=a2.setAnimation,h2=g3.defaultOptions,m2=x2.registerEventOptions,k2=F2.hasTouch,p2=F2.svg,D2=F2.win,A2=t2.seriesTypes,E2=l2.arrayMax,L2=l2.arrayMin,y2=l2.clamp,c2=l2.cleanRecursively,w2=l2.correctFloat,f2=l2.defined,n2=l2.erase,b2=l2.error,u2=l2.extend,z2=l2.find,q=l2.fireEvent,N=l2.getNestedProperty,J=l2.isArray,O2=l2.isNumber,Q=l2.isString,T2=l2.merge,Y=l2.objectEach,v2=l2.pick,U=l2.removeEvent,K2=l2.splat,ca=l2.syncTimeout;a2=function(){function a3(){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}a3.prototype.init=function(b3,a4){q(this,"init",{options:a4});var c3=this,d3=b3.series;this.eventsToUnbind=[];c3.chart=b3;c3.options=c3.setOptions(a4);a4=c3.options;c3.linkedSeries=[];c3.bindAxes();u2(c3,{name:a4.name,state:"",visible:false!==a4.visible,selected:true===a4.selected});m2(this,a4);var f3=a4.events;if(f3&&f3.click||a4.point&&a4.point.events&&a4.point.events.click||a4.allowPointSelect)b3.runTrackerClick=true;c3.getColor();c3.getSymbol();c3.parallelArrays.forEach((function(b4){c3[b4+"Data"]||(c3[b4+"Data"]=[])}));c3.isCartesian&&(b3.hasCartesianSeries=true);var e3;d3.length&&(e3=d3[d3.length-1]);c3._i=v2(e3&&e3._i,-1)+1;c3.opacity=c3.options.opacity;b3.orderSeries(this.insert(d3));a4.dataSorting&&a4.dataSorting.enabled?c3.setDataSortingOptions():c3.points||c3.data||c3.setData(a4.data,false);q(this,"afterInit")};a3.prototype.is=function(b3){return A2[b3]&&this instanceof A2[b3]};a3.prototype.insert=function(b3){var a4=this.options.index,c3;if(O2(a4)){for(c3=b3.length;c3--;)if(a4>=v2(b3[c3].options.index,b3[c3]._i)){b3.splice(c3+1,0,this);break}-1===c3&&b3.unshift(this);c3+=1}else b3.push(this);return v2(c3,b3.length-1)};a3.prototype.bindAxes=function(){var a4=this,c3=a4.options,d3=a4.chart,f3;q(this,"bindAxes",null,(function(){(a4.axisTypes||[]).forEach((function(e3){var h3=0;d3[e3].forEach((function(b3){f3=b3.options;if(c3[e3]===h3&&!f3.isInternal||"undefined"!==typeof c3[e3]&&c3[e3]===f3.id||"undefined"===typeof c3[e3]&&0===f3.index)a4.insert(b3.series),a4[e3]=b3,b3.isDirty=true;f3.isInternal||h3++}));a4[e3]||a4.optionalAxis===e3||b2(18,true,d3)}))}));q(this,"afterBindAxes")};a3.prototype.updateParallelArrays=function(b3,a4){var c3=b3.series,d3=arguments,f3=O2(a4)?function(d4){var f4="y"===d4&&c3.toYData?c3.toYData(b3):b3[d4];c3[d4+"Data"][a4]=f4}:function(b4){Array.prototype[a4].apply(c3[b4+"Data"],Array.prototype.slice.call(d3,2))};c3.parallelArrays.forEach(f3)};a3.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?k3-this.cropStart:k3);!g4&&O2(k3)&&f3[k3]&&f3[k3].touched&&(k3=void 0);return k3};a3.prototype.updateData=function(b3,a4){var c3=this.options,d3=c3.dataSorting,e3=this.points,h3=[],g4=this.requireSorting,k3=b3.length===e3.length,n3,m3,q2,l3=true;this.xIncrement=null;b3.forEach((function(b4,a5){var m4=f2(b4)&&this.pointClass.prototype.optionsToObject.call({series:this},b4)||{},l4=m4.x;if(m4.id||O2(l4)){if(m4=this.findPointIndex(m4,q2),-1===m4||"undefined"===typeof m4?h3.push(b4):e3[m4]&&b4!==c3.data[m4]?(e3[m4].update(b4,false,null,false),e3[m4].touched=true,g4&&(q2=m4+1)):e3[m4]&&(e3[m4].touched=true),!k3||a5!==m4||d3&&d3.enabled||this.hasDerivedData)n3=true}else h3.push(b4)}),this);if(n3)for(b3=e3.length;b3--;)(m3=e3[b3])&&!m3.touched&&m3.remove&&m3.remove(false,a4);else!k3||d3&&d3.enabled?l3=false:(b3.forEach((function(b4,a5){b4!==e3[a5].y&&e3[a5].update&&e3[a5].update(b4,false,null,false)})),h3.length=0);e3.forEach((function(b4){b4&&(b4.touched=false)}));if(!l3)return false;h3.forEach((function(b4){this.addPoint(b4,false,null,null,false)}),this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=E2(this.xData),this.autoIncrement());return true};a3.prototype.setData=function(a4,c3,d3,f3){void 0===c3&&(c3=true);var e3=this,h3=e3.points,g4=h3&&h3.length||0,k3=e3.options,n3=e3.chart,m3=k3.dataSorting,l3=e3.xAxis,q2=k3.turboThreshold,u3=this.xData,p3=this.yData,G=e3.pointArrayMap;G=G&&G.length;var v3=k3.keys,w3,r3=0,z3=1,y3=null;if(!n3.options.chart.allowMutatingData){k3.data&&delete e3.options.data;e3.userOptions.data&&delete e3.userOptions.data;var M=T2(true,a4)}a4=M||a4||[];M=a4.length;m3&&m3.enabled&&(a4=this.sortData(a4));n3.options.chart.allowMutatingData&&false!==f3&&M&&g4&&!e3.cropped&&!e3.hasGroupedData&&e3.visible&&!e3.boosted&&(w3=this.updateData(a4,d3));if(!w3){e3.xIncrement=null;e3.colorCounter=0;this.parallelArrays.forEach((function(b3){e3[b3+"Data"].length=0}));if(q2&&M>q2)if(y3=e3.getFirstValidPoint(a4),O2(y3))for(d3=0;d3b4?1:0})).forEach((function(b4,a5){b4.x=a5}),this);a4.linkedSeries&&a4.linkedSeries.forEach((function(a5){var c4=a5.options,e3=c4.data;c4.dataSorting&&c4.dataSorting.enabled||!e3||(e3.forEach((function(c5,f3){e3[f3]=d3(a5,c5);b3[f3]&&(e3[f3].x=b3[f3].x,e3[f3].index=f3)})),a5.setData(e3,false))}));return b3};a3.prototype.getProcessedData=function(a4){var c3=this.xAxis,d3=this.options,e3=d3.cropThreshold,f3=a4||this.getExtremesFromAll||d3.getExtremesFromAll,h3=this.isCartesian;a4=c3&&c3.val2lin;d3=!(!c3||!c3.logarithmic);var g4=0,k3=this.xData,n3=this.yData,m3=this.requireSorting;var l3=false;var q2=k3.length;if(c3){l3=c3.getExtremes();var u3=l3.min;var p3=l3.max;l3=!(!c3.categories||c3.names.length)}if(h3&&this.sorted&&!f3&&(!e3||q2>e3||this.forceCrop)){if(k3[q2-1]p3)k3=[],n3=[];else if(this.yData&&(k3[0]p3)){var G=this.cropData(this.xData,this.yData,u3,p3);k3=G.xData;n3=G.yData;g4=G.start;G=true}}for(e3=k3.length||1;--e3;)if(c3=d3?a4(k3[e3])-a4(k3[e3-1]):k3[e3]-k3[e3-1],0c3&&m3&&!l3&&(b2(15,false,this.chart),m3=false);return{xData:k3,yData:n3,cropped:G,cropStart:g4,closestPointRange:v3}};a3.prototype.processData=function(b3){var a4=this.xAxis;if(this.isCartesian&&!this.isDirty&&!a4.isDirty&&!this.yAxis.isDirty&&!b3)return false;b3=this.getProcessedData();this.cropped=b3.cropped;this.cropStart=b3.cropStart;this.processedXData=b3.xData;this.processedYData=b3.yData;this.closestPointRange=this.basePointRange=b3.closestPointRange;q(this,"afterProcessData")};a3.prototype.cropData=function(b3,a4,c3,d3,e3){var f3=b3.length,h3,g4=0,k3=f3;e3=v2(e3,this.cropShoulder);for(h3=0;h3=c3){g4=Math.max(0,h3-e3);break}for(c3=h3;c3d3){k3=c3+e3;break}return{xData:b3.slice(g4,k3),yData:a4.slice(g4,k3),start:g4,end:k3}};a3.prototype.generatePoints=function(){var b3=this.options,a4=this.processedData||b3.data,c3=this.processedXData,d3=this.processedYData,e3=this.pointClass,f3=c3.length,h3=this.cropStart||0,g4=this.hasGroupedData,k3=b3.keys,n3=[];b3=b3.dataGrouping&&b3.dataGrouping.groupAll?h3:0;var m3,l3,p3=this.data;if(!p3&&!g4){var v3=[];v3.length=a4.length;p3=this.data=v3}k3&&g4&&(this.options.keys=false);for(l3=0;l3=k3&&(e3[g4-h3]||u3)<=n3;if(G&&u3)if(G=p3.length)for(;G--;)O2(p3[G])&&(f3[m3++]=p3[G]);else f3[m3++]=p3}b3={activeYData:f3,dataMin:L2(f3),dataMax:E2(f3)};q(this,"afterGetExtremes",{dataExtremes:b3});return b3};a3.prototype.applyExtremes=function(){var b3=this.getExtremes();this.dataMin=b3.dataMin;this.dataMax=b3.dataMax;return b3};a3.prototype.getFirstValidPoint=function(b3){for(var a4=b3.length,c3=0,d3=null;null===d3&&c3=x3&&(x3=void 0),D3.total=D3.stackTotal=v2(A3.total),D3.percentage=f2(D3.y)&&A3.total?D3.y/A3.total*100:void 0,D3.stackY=I,this.irregularWidths||A3.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}D3.yBottom=f2(x3)?y2(h3.translate(x3,0,1,0,1),-1e5,1e5):void 0;this.dataModify&&(I=this.dataModify.modifyValue(I,r3));D3.plotY=void 0;O2(I)&&(A3=h3.translate(I,false,true,false,true),"undefined"!==typeof A3&&(D3.plotY=y2(A3,-1e5,1e5)));D3.isInside=this.isPointInside(D3);D3.clientX=m3?w2(c3.translate(E3,0,0,0,1,n3)):z3;D3.negative=D3[u3]<(b3[u3+"Threshold"]||l3||0);D3.category=v2(d3&&d3[D3.x],D3.x);if(!D3.isNull&&false!==D3.visible){"undefined"!==typeof B2&&(t3=Math.min(t3,Math.abs(z3-B2)));var B2=z3}D3.zone=this.zones.length?D3.getZone():void 0;!D3.graphic&&this.group&&e3&&(D3.isNew=true)}this.closestPointRangePx=t3;q(this,"afterTranslate")};a3.prototype.getValidPoints=function(b3,a4,c3){var d3=this.chart;return(b3||this.points||[]).filter((function(b4){return a4&&!d3.isInsidePlot(b4.plotX,b4.plotY,{inverted:d3.inverted})?false:false!==b4.visible&&(c3||!b4.isNull)}))};a3.prototype.getClipBox=function(){var b3=this.chart,a4=this.xAxis,c3=this.yAxis,d3=T2(b3.clipBox);a4&&a4.len!==b3.plotSizeX&&(d3.width=a4.len);c3&&c3.len!==b3.plotSizeY&&(d3.height=c3.len);return d3};a3.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};a3.prototype.setClip=function(){var b3=this.chart,a4=this.group,c3=this.markerGroup,d3=b3.sharedClips;b3=b3.renderer;var e3=this.getClipBox(),f3=this.getSharedClipKey(),h3=d3[f3];h3?h3.animate(e3):d3[f3]=h3=b3.clipRect(e3);a4&&a4.clip(false===this.options.clip?void 0:h3);c3&&c3.clip()};a3.prototype.animate=function(b3){var a4=this.chart,c3=this.group,d3=this.markerGroup,f3=a4.inverted,h3=e2(this.options.animation),g4=[this.getSharedClipKey(),h3.duration,h3.easing,h3.defer].join(),k3=a4.sharedClips[g4],n3=a4.sharedClips[g4+"m"];if(b3&&c3)h3=this.getClipBox(),k3?k3.attr("height",h3.height):(h3.width=0,f3&&(h3.x=a4.plotHeight),k3=a4.renderer.clipRect(h3),a4.sharedClips[g4]=k3,n3=a4.renderer.clipRect({x:-99,y:-99,width:f3?a4.plotWidth+199:99,height:f3?99:a4.plotHeight+199}),a4.sharedClips[g4+"m"]=n3),c3.clip(k3),d3&&d3.clip(n3);else if(k3&&!k3.hasClass("highcharts-animating")){a4=this.getClipBox();var m3=h3.step;d3&&d3.element.childNodes.length&&(h3.step=function(b4,a5){m3&&m3.apply(a5,arguments);"width"===a5.prop&&n3&&n3.element&&n3.attr(f3?"height":"width",b4+99)});k3.addClass("highcharts-animating").animate(a4,h3)}};a3.prototype.afterAnimate=function(){var b3=this;this.setClip();Y(this.chart.sharedClips,(function(a4,c3,d3){a4&&!b3.chart.container.querySelector('[clip-path="url(#'.concat(a4.id,')"]'))&&(a4.destroy(),delete d3[c3])}));this.finishedAnimating=true;q(this,"afterAnimate")};a3.prototype.drawPoints=function(b3){void 0===b3&&(b3=this.points);var a4=this.chart,c3=a4.styledMode,d3=this.colorAxis,e3=this.options.marker,f3=this[this.specialGroup||"markerGroup"],h3=this.xAxis,g4=v2(e3.enabled,!h3||h3.isRadial?true:null,this.closestPointRangePx>=e3.enabledThreshold*e3.radius),k3,n3;if(false!==e3.enabled||this._hasPointMarkers)for(k3=0;k3A3.max;b3.resetZones&&0===l3&&(l3=void 0)}));this.clips=e3}else b3.visible&&(f3&&f3.show(),h3&&h3.show())};a3.prototype.plotGroup=function(b3,a4,c3,d3,e3){var h3=this[b3],g4=!h3;c3={visibility:c3,zIndex:d3||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(c3.opacity=this.opacity);g4&&(this[b3]=h3=this.chart.renderer.g().add(e3));h3.addClass("highcharts-"+a4+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(f2(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(h3.hasClass("highcharts-tracker")?" highcharts-tracker":""),true);h3.attr(c3)[g4?"attr":"animate"](this.getPlotBox(a4));return h3};a3.prototype.getPlotBox=function(b3){var a4=this.xAxis,c3=this.yAxis,d3=this.chart;b3=d3.inverted&&!d3.polar&&a4&&false!==this.invertible&&"series"===b3;d3.inverted&&(a4=c3,c3=this.xAxis);return{translateX:a4?a4.left:d3.plotLeft,translateY:c3?c3.top:d3.plotTop,rotation:b3?90:0,rotationOriginX:b3?(a4.len-c3.len)/2:0,rotationOriginY:b3?(a4.len+c3.len)/2:0,scaleX:b3?-1:1,scaleY:1}};a3.prototype.removeEvents=function(b3){b3||U(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(b4){b4()})),this.eventsToUnbind.length=0)};a3.prototype.render=function(){var b3=this,a4=b3.chart,c3=b3.options,d3=e2(c3.animation),f3=b3.visible?"inherit":"hidden",h3=c3.zIndex,g4=b3.hasRendered,k3=a4.seriesGroup;a4=!b3.finishedAnimating&&a4.renderer.isSVG?d3.duration:0;q(this,"render");b3.plotGroup("group","series",f3,h3,k3);b3.markerGroup=b3.plotGroup("markerGroup","markers",f3,h3,k3);false!==c3.clip&&b3.setClip();b3.animate&&a4&&b3.animate(true);b3.drawGraph&&(b3.drawGraph(),b3.applyZones());b3.visible&&b3.drawPoints();b3.drawDataLabels&&b3.drawDataLabels();b3.redrawPoints&&b3.redrawPoints();b3.drawTracker&&false!==b3.options.enableMouseTracking&&b3.drawTracker();b3.animate&&a4&&b3.animate();g4||(a4&&d3.defer&&(a4+=d3.defer),b3.animationTimeout=ca((function(){b3.afterAnimate()}),a4||0));b3.isDirty=false;b3.hasRendered=true;q(b3,"afterRender")};a3.prototype.redraw=function(){var b3=this.isDirty||this.isDirtyData;this.translate();this.render();b3&&delete this.kdTree};a3.prototype.searchPoint=function(b3,a4){var c3=this.xAxis,d3=this.yAxis,e3=this.chart.inverted;return this.searchKDTree({clientX:e3?c3.len-b3.chartY+c3.pos:b3.chartX-c3.pos,plotY:e3?d3.len-b3.chartX+d3.pos:b3.chartY-d3.pos},a4,b3)};a3.prototype.buildKDTree=function(b3){function a4(b4,d4,e3){var f3=b4&&b4.length;if(f3){var h3=c3.kdAxisArray[d4%e3];b4.sort((function(b5,a5){return b5[h3]-a5[h3]}));f3=Math.floor(f3/2);return{point:b4[f3],left:a4(b4.slice(0,f3),d4+1,e3),right:a4(b4.slice(f3+1),d4+1,e3)}}}this.buildingKdTree=true;var c3=this,d3=-1l3?"left":"right";p3=0>l3?"right":"left";a5[u3]&&(u3=d3(b4,a5[u3],c4+1,n3),q2=u3[k3]u3;)r3--;this.updateParallelArrays(p3,"splice",r3,0,0);this.updateParallelArrays(p3,r3);k3&&p3.name&&(k3[u3]=p3.name);n3.splice(r3,0,b3);if(l3||this.processedData)this.data.splice(r3,0,null),this.processData();"point"===f3.legendType&&this.generatePoints();c3&&(h3[0]&&h3[0].remove?h3[0].remove(false):(h3.shift(),this.updateParallelArrays(p3,"shift"),n3.shift()));false!==e3&&q(this,"addPoint",{point:p3});this.isDirtyData=this.isDirty=true;a4&&g4.redraw(d3)};a3.prototype.removePoint=function(b3,a4,c3){var e3=this,f3=e3.data,h3=f3[b3],g4=e3.points,k3=e3.chart,n3=function(){g4&&g4.length===f3.length&&g4.splice(b3,1);f3.splice(b3,1);e3.options.data.splice(b3,1);e3.updateParallelArrays(h3||{series:e3},"splice",b3,1);h3&&h3.destroy();e3.isDirty=true;e3.isDirtyData=true;a4&&k3.redraw()};d2(c3,k3);a4=v2(a4,true);h3?h3.firePointEvent("remove",null,n3):n3()};a3.prototype.remove=function(b3,a4,c3,d3){function e3(){f3.destroy(d3);h3.isDirtyLegend=h3.isDirtyBox=true;h3.linkSeries();v2(b3,true)&&h3.redraw(a4)}var f3=this,h3=f3.chart;false!==c3?q(f3,"remove",null,e3):e3()};a3.prototype.update=function(a4,d3){a4=c2(a4,this.userOptions);q(this,"update",{options:a4});var e3=this,f3=e3.chart,h3=e3.userOptions,g4=e3.initialType||e3.type,k3=f3.options.plotOptions,n3=A2[g4].prototype,m3=e3.finishedAnimating&&{animation:false},l3={},p3=["eventOptions","navigatorSeries","baseSeries"],r3=a4.type||h3.type||f3.options.chart.type,z3=!(this.hasDerivedData||r3&&r3!==this.type||"undefined"!==typeof a4.pointStart||"undefined"!==typeof a4.pointInterval||"undefined"!==typeof a4.relativeXValue||a4.joinBy||a4.mapData||e3.hasOptionChanged("dataGrouping")||e3.hasOptionChanged("pointStart")||e3.hasOptionChanged("pointInterval")||e3.hasOptionChanged("pointIntervalUnit")||e3.hasOptionChanged("keys"));r3=r3||g4;z3&&(p3.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),false!==a4.visible&&p3.push("area","graph"),e3.parallelArrays.forEach((function(b3){p3.push(b3+"Data")})),a4.data&&(a4.dataSorting&&u2(e3.options.dataSorting,a4.dataSorting),this.setData(a4.data,false)));a4=T2(h3,m3,{index:"undefined"===typeof h3.index?e3.index:h3.index,pointStart:v2(k3&&k3.series&&k3.series.pointStart,h3.pointStart,e3.xData[0])},!z3&&{data:e3.options.data},a4);z3&&a4.data&&(a4.data=e3.options.data);p3=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(p3);p3.forEach((function(b3){p3[b3]=e3[b3];delete e3[b3]}));k3=false;if(A2[r3]){if(k3=r3!==e3.type,e3.remove(false,false,false,true),k3)if(Object.setPrototypeOf)Object.setPrototypeOf(e3,A2[r3].prototype);else{m3=Object.hasOwnProperty.call(e3,"hcEvents")&&e3.hcEvents;for(w3 in n3)e3[w3]=void 0;u2(e3,A2[r3].prototype);m3?e3.hcEvents=m3:delete e3.hcEvents}}else b2(17,true,f3,{missingModuleFor:r3});p3.forEach((function(b3){e3[b3]=p3[b3]}));e3.init(f3,a4);if(z3&&this.points){a4=e3.options;if(false===a4.visible)l3.graphic=1,l3.dataLabel=1;else if(!e3._hasPointLabels){n3=a4.marker;var w3=a4.dataLabels;h3=h3.marker||{};!n3||false!==n3.enabled&&h3.symbol===n3.symbol&&h3.height===n3.height&&h3.width===n3.width||(l3.graphic=1);w3&&false===w3.enabled&&(l3.dataLabel=1)}h3=0;for(n3=this.points;h3k2&&g5.shadow));l2&&(l2.startX=e2.xMap,l2.isArea=e2.isArea)}))};t2.prototype.getGraphPath=function(a3,g5,e2){var d2=this,h2=d2.options,m2=[],k2=[],l2,r2=h2.step;a3=a3||d2.points;var t3=a3.reversed;t3&&a3.reverse();(r2={right:1,center:2}[r2]||r2&&3)&&t3&&(r2=4-r2);a3=this.getValidPoints(a3,false,!(h2.connectNulls&&!g5&&!e2));a3.forEach((function(p2,t4){var y2=p2.plotX,c2=p2.plotY,w2=a3[t4-1];(p2.leftCliff||w2&&w2.rightCliff)&&!e2&&(l2=true);p2.isNull&&!C2(g5)&&0a4&&t2>h2?(t2=Math.max(a4,h2),A3=2*h2-t2):t2e2&&A3>h2?(A3=Math.max(e2,h2),t2=2*h2-A3):A3=Math.abs(c3)&&.5a4.closestPointRange*a4.xAxis.transA;d3=a4.borderWidth=L2(b2.borderWidth,d3?0:1);var e3=a4.xAxis,g4=a4.yAxis,k3=b2.threshold,l3=a4.translatedThreshold=g4.getThreshold(k3),p3=L2(b2.minPointLength,5),r3=a4.getColumnMetrics(),w2=r3.width,y3=a4.pointXOffset=r3.offset,v2=a4.dataMin,t3=a4.dataMax,A3=a4.barW=Math.max(w2,1+2*d3);c3.inverted&&(l3-=.5);b2.pointPadding&&(A3=Math.ceil(A3));B.prototype.translate.apply(a4);a4.points.forEach((function(d4){var f2=L2(d4.yBottom,l3),n2=999+Math.abs(f2),q=d4.plotX||0;n2=h2(d4.plotY,-n2,g4.len+n2);var u2=Math.min(n2,f2),z2=Math.max(n2,f2)-u2,D2=w2,x3=q+y3,E3=A3;p3&&Math.abs(z2)p3?f2-p3:l3-(q?p3:0));m2(d4.options.pointWidth)&&(D2=E3=Math.ceil(d4.options.pointWidth),x3-=Math.round((D2-w2)/2));b2.centerInCategory&&(x3=a4.adjustForMissingColumns(x3,D2,d4,r3));d4.barX=x3;d4.pointWidth=D2;d4.tooltipPos=c3.inverted?[h2(g4.len+g4.pos-c3.plotLeft-n2,g4.pos-c3.plotLeft,g4.len+g4.pos-c3.plotLeft),e3.len+e3.pos-c3.plotTop-x3-E3/2,z2]:[e3.left-c3.plotLeft+x3+E3/2,h2(n2+g4.pos-c3.plotTop,g4.pos-c3.plotTop,g4.len+g4.pos-c3.plotTop),z2];d4.shapeType=a4.pointClass.prototype.shapeType||"rect";d4.shapeArgs=a4.crispCol.apply(a4,d4.isNull?[x3,l3,E3,0]:[x3,u2,E3,z2])}))};c2.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};c2.prototype.pointAttribs=function(a4,c3){var b2=this.options,d3=this.pointAttrToOptions||{},f2=d3.stroke||"borderColor",g4=d3["stroke-width"]||"borderWidth",h3=a4&&a4.color||this.color,k3=a4&&a4[f2]||b2[f2]||h3;d3=a4&&a4.options.dashStyle||b2.dashStyle;var n2=a4&&a4[g4]||b2[g4]||this[g4]||0,m3=L2(a4&&a4.opacity,b2.opacity,1);if(a4&&this.zones.length){var l3=a4.getZone();h3=a4.options.color||l3&&(l3.color||a4.nonZonedColor)||this.color;l3&&(k3=l3.borderColor||k3,d3=l3.dashStyle||d3,n2=l3.borderWidth||n2)}c3&&a4&&(a4=E2(b2.states[c3],a4.options.states&&a4.options.states[c3]||{}),c3=a4.brightness,h3=a4.color||"undefined"!==typeof c3&&e2(h3).brighten(a4.brightness).get()||h3,k3=a4[f2]||k3,n2=a4[g4]||n2,d3=a4.dashStyle||d3,m3=L2(a4.opacity,m3));f2={fill:h3,stroke:k3,"stroke-width":n2,opacity:m3};d3&&(f2.dashstyle=d3);return f2};c2.prototype.drawPoints=function(a4){void 0===a4&&(a4=this.points);var c3=this,b2=this.chart,d3=c3.options,e3=b2.renderer,f2=d3.animationLimit||250,g4;a4.forEach((function(a5){var h3=a5.graphic,k3=!!h3,n2=h3&&b2.pointCount"===c3&&a4>b2||"<"===c3&&a4="===c3&&a4>=b2||"<="===c3&&a4<=b2||"=="===c3&&a4==b2||"==="===c3&&a4===b2?true:false):true}function p2(a4){void 0===a4&&(a4=this.points);var c3=this,b2=c3.chart,e3=c3.options,f2=c3.hasRendered||0,g5=b2.renderer,p3=b2.options.chart,w3=p3.backgroundColor;p3=p3.plotBackgroundColor;var x4=g5.getContrast(l2(p3)&&p3||l2(w3)&&w3||"#000000"),D2=e3.dataLabels,E2;w3=D2.animation;w3=D2.defer?A2(b2,w3,c3):{defer:0,duration:0};D2=y2(y2(b2.options.plotOptions&&b2.options.plotOptions.series&&b2.options.plotOptions.series.dataLabels,b2.options.plotOptions&&b2.options.plotOptions[c3.type]&&b2.options.plotOptions[c3.type].dataLabels),D2);t2(this,"drawDataLabels");if(r2(D2)||D2.enabled||c3._hasPointLabels){var F2=c3.plotGroup("dataLabelsGroup","data-labels",f2?"inherit":"hidden",D2.zIndex||6);F2.attr({opacity:+f2});!f2&&(f2=c3.dataLabelsGroup)&&(c3.visible&&F2.show(),f2[e3.animation?"animate":"attr"]({opacity:1},w3));a4.forEach((function(a5){E2=m2(y2(D2,a5.dlOptions||a5.options&&a5.options.dataLabels));E2.forEach((function(f3,n2){var m3=f3.enabled&&(!a5.isNull||a5.dataLabelOnNull)&&k3(a5,f3),l3=a5.connectors?a5.connectors[n2]:a5.connector,p4=a5.dataLabels?a5.dataLabels[n2]:a5.dataLabel,q=!p4,r3=h2(f3.distance,a5.labelDistance);if(m3){var u2=a5.getLabelConfig();var w4=h2(f3[a5.formatPrefix+"Format"],f3.format);u2=B(w4)?C2(w4,u2,b2):(f3[a5.formatPrefix+"Formatter"]||f3.formatter).call(u2,f3);w4=f3.style;var y3=f3.rotation;b2.styledMode||(w4.color=h2(f3.color,w4.color,c3.color,"#000000"),"contrast"===w4.color?(a5.contrastColor=g5.getContrast(a5.color||c3.color),w4.color=!B(r3)&&f3.inside||0>r3||e3.stacking?a5.contrastColor:x4):delete a5.contrastColor,e3.cursor&&(w4.cursor=e3.cursor));var t3={r:f3.borderRadius||0,rotation:y3,padding:f3.padding,zIndex:1};if(!b2.styledMode){r3=f3.backgroundColor;var v2=f3.borderColor;t3.fill="auto"===r3?a5.color:r3;t3.stroke="auto"===v2?a5.color:v2;t3["stroke-width"]=f3.borderWidth}d2(t3,(function(a6,b3){"undefined"===typeof a6&&delete t3[b3]}))}!p4||m3&&B(u2)&&!!p4.div===!!f3.useHTML&&(p4.rotation&&f3.rotation||p4.rotation===f3.rotation)||(q=true,a5.dataLabel=p4=a5.dataLabel&&a5.dataLabel.destroy(),a5.dataLabels&&(1===a5.dataLabels.length?delete a5.dataLabels:delete a5.dataLabels[n2]),n2||delete a5.dataLabel,l3&&(a5.connector=a5.connector.destroy(),a5.connectors&&(1===a5.connectors.length?delete a5.connectors:delete a5.connectors[n2])));m3&&B(u2)?(p4?t3.text=u2:(a5.dataLabels=a5.dataLabels||[],p4=a5.dataLabels[n2]=y3?g5.text(u2,0,0,f3.useHTML).addClass("highcharts-data-label"):g5.label(u2,0,0,f3.shape,null,null,f3.useHTML,null,"data-label"),n2||(a5.dataLabel=p4),p4.addClass(" highcharts-data-label-color-"+a5.colorIndex+" "+(f3.className||"")+(f3.useHTML?" highcharts-tracker":""))),p4.options=f3,p4.attr(t3),b2.styledMode||p4.css(w4).shadow(f3.shadow),(n2=f3[a5.formatPrefix+"TextPath"]||f3.textPath)&&!f3.useHTML&&(p4.setTextPath(a5.getDataLabelPath&&a5.getDataLabelPath(p4)||a5.graphic,n2),a5.dataLabelPath&&!n2.enabled&&(a5.dataLabelPath=a5.dataLabelPath.destroy())),p4.added||p4.add(F2),c3.alignDataLabel(a5,p4,f3,null,q)):p4&&p4.hide()}))}))}t2(this,"afterDrawDataLabels")}function x3(a4,c3,b2,d3,e3,g5){var f2=this.chart,h3=c3.align,k4=c3.verticalAlign,n2=a4.box?0:a4.padding||0,m3=c3.x;m3=void 0===m3?0:m3;var l3=c3.y;l3=void 0===l3?0:l3;var p3=(b2.x||0)+n2;if(0>p3){"right"===h3&&0<=m3?(c3.align="left",c3.inside=true):m3-=p3;var q=true}p3=(b2.x||0)+d3.width-n2;p3>f2.plotWidth&&("left"===h3&&0>=m3?(c3.align="right",c3.inside=true):m3+=f2.plotWidth-p3,q=true);p3=b2.y+n2;0>p3&&("bottom"===k4&&0<=l3?(c3.verticalAlign="top",c3.inside=true):l3-=p3,q=true);p3=(b2.y||0)+d3.height-n2;p3>f2.plotHeight&&("top"===k4&&0>=l3?(c3.verticalAlign="bottom",c3.inside=true):l3+=f2.plotHeight-p3,q=true);q&&(c3.x=m3,c3.y=l3,a4.placed=!g5,a4.align(c3,void 0,e3));return q}function y2(a4,c3){var b2=[],d3;if(r2(a4)&&!r2(c3))b2=a4.map((function(a5){return e2(a5,c3)}));else if(r2(c3)&&!r2(a4))b2=c3.map((function(b3){return e2(a4,b3)}));else if(r2(a4)||r2(c3))for(d3=Math.max(a4.length,c3.length);d3--;)b2[d3]=e2(a4[d3],c3[d3]);else b2=e2(a4,c3);return b2}function c2(a4,c3,b2,d3,e3){var f2=this.chart,g5=f2.inverted,h3=this.xAxis,k4=h3.reversed,m3=g5?c3.height/2:c3.width/2;a4=(a4=a4.pointWidth)?a4/2:0;c3.startXPos=g5?e3.x:k4?-m3-a4:h3.width-m3+a4;c3.startYPos=g5?k4?this.yAxis.height-m3+a4:-m3-a4:e3.y;d3?"hidden"===c3.visibility&&(c3.show(),c3.attr({opacity:0}).animate({opacity:1})):c3.attr({opacity:1}).animate({opacity:0},void 0,c3.hide);f2.hasRendered&&(b2&&c3.attr({x:c3.startXPos,y:c3.startYPos}),c3.placed=true)}var w2=[];a3.compose=function(a4){if(-1===w2.indexOf(a4)){var d3=a4.prototype;w2.push(a4);d3.alignDataLabel=g4;d3.drawDataLabels=p2;d3.justifyDataLabel=x3;d3.setDataLabelStartPos=c2}}})(k2||(k2={}));return k2}));K(g2,"Series/Column/ColumnDataLabel.js",[g2["Core/Series/DataLabel.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=g3.series,C2=x2.merge,B=x2.pick,H2;(function(g4){function r2(a3,d2,g5,m2,k2){var e2=this.chart.inverted,h2=a3.series,l3=(h2.xAxis?h2.xAxis.len:this.chart.plotSizeX)||0;h2=(h2.yAxis?h2.yAxis.len:this.chart.plotSizeY)||0;var r3=a3.dlBox||a3.shapeArgs,t2=B(a3.below,a3.plotY>B(this.translatedThreshold,h2)),y2=B(g5.inside,!!this.options.stacking);r3&&(m2=C2(r3),0>m2.y&&(m2.height+=m2.y,m2.y=0),r3=m2.y+m2.height-h2,0 {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}}));K(g2,"Series/Scatter/ScatterSeries.js",[g2["Series/Scatter/ScatterSeriesDefaults.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=this&&this.__extends||function(){var a3=function(e2,d2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,d3){a4.__proto__=d3}||function(a4,d3){for(var e3 in d3)d3.hasOwnProperty(e3)&&(a4[e3]=d3[e3])};return a3(e2,d2)};return function(e2,d2){function g4(){this.constructor=e2}a3(e2,d2);e2.prototype=null===d2?Object.create(d2):(g4.prototype=d2.prototype,new g4)}}(),C2=g3.seriesTypes,B=C2.column,H2=C2.line;C2=x2.addEvent;var t2=x2.extend,r2=x2.merge;x2=function(g4){function e2(){var a3=null!==g4&&g4.apply(this,arguments)||this;a3.data=void 0;a3.options=void 0;a3.points=void 0;return a3}A2(e2,g4);e2.prototype.applyJitter=function(){var a3=this,e3=this.options.jitter,g5=this.points.length;e3&&this.points.forEach((function(d2,h2){["x","y"].forEach((function(k2,m2){var l2="plot"+k2.toUpperCase();if(e3[k2]&&!d2.isNull){var p2=a3[k2+"Axis"];var r3=e3[k2]*p2.transA;if(p2&&!p2.isLog){var c2=Math.max(0,d2[l2]-r3);p2=Math.min(p2.len,d2[l2]+r3);m2=1e4*Math.sin(h2+m2*g5);d2[l2]=c2+(p2-c2)*(m2-Math.floor(m2));"x"===k2&&(d2.clientX=d2.plotX)}}}))}))};e2.prototype.drawGraph=function(){this.options.lineWidth?g4.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};e2.defaultOptions=r2(H2.defaultOptions,a2);return e2}(H2);t2(x2.prototype,{drawTracker:B.prototype.drawTracker,sorted:false,requireSorting:false,noSharedTooltip:true,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:false});C2(x2,"afterTranslate",(function(){this.applyJitter()}));g3.registerSeriesType("scatter",x2);return x2}));K(g2,"Series/CenteredUtilities.js",[g2["Core/Globals.js"],g2["Core/Series/Series.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=a2.deg2rad,C2=x2.fireEvent,B=x2.isNumber,H2=x2.pick,t2=x2.relativeLength,r2;(function(a3){a3.getCenter=function(){var a4=this.options,d2=this.chart,h2=2*(a4.slicedOffset||0),m2=d2.plotWidth-2*h2,k2=d2.plotHeight-2*h2,l2=a4.center,r3=Math.min(m2,k2),A3=a4.thickness,x3=a4.size,F2=a4.innerSize||0;"string"===typeof x3&&(x3=parseFloat(x3));"string"===typeof F2&&(F2=parseFloat(F2));a4=[H2(l2[0],"50%"),H2(l2[1],"50%"),H2(x3&&0>x3?void 0:a4.size,"100%"),H2(F2&&0>F2?void 0:a4.innerSize||0,"0%")];!d2.angular||this instanceof g3||(a4[3]=0);for(l2=0;4>l2;++l2)x3=a4[l2],d2=2>l2||2===l2&&/%$/.test(x3),a4[l2]=t2(x3,[m2,k2,r3,a4[2]][l2])+(d2?h2:0);a4[3]>a4[2]&&(a4[3]=a4[2]);B(A3)&&2*A3a4&&360>d2-a4?d2:a4+360;return{start:A2*(a4+-90),end:A2*(d2+-90)}}})(r2||(r2={}));return r2}));K(g2,"Series/Pie/PiePoint.js",[g2["Core/Animation/AnimationUtilities.js"],g2["Core/Series/Point.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2){var A2=this&&this.__extends||function(){var a3=function(d2,e2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,d3){a4.__proto__=d3}||function(a4,d3){for(var e3 in d3)d3.hasOwnProperty(e3)&&(a4[e3]=d3[e3])};return a3(d2,e2)};return function(d2,e2){function g4(){this.constructor=d2}a3(d2,e2);d2.prototype=null===e2?Object.create(e2):(g4.prototype=e2.prototype,new g4)}}(),C2=a2.setAnimation,B=x2.addEvent,H2=x2.defined;a2=x2.extend;var t2=x2.isNumber,r2=x2.pick,l2=x2.relativeLength;g3=function(a3){function d2(){var d3=null!==a3&&a3.apply(this,arguments)||this;d3.labelDistance=void 0;d3.options=void 0;d3.series=void 0;return d3}A2(d2,a3);d2.prototype.getConnectorPath=function(){var a4=this.labelPosition,d3=this.series.options.dataLabels,e2=this.connectorShapes,g4=d3.connectorShape;e2[g4]&&(g4=e2[g4]);return g4.call(this,{x:a4.final.x,y:a4.final.y,alignment:a4.alignment},a4.connectorPosition,d3)};d2.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};d2.prototype.haloPath=function(a4){var d3=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(d3.x,d3.y,d3.r+a4,d3.r+a4,{innerR:d3.r-1,start:d3.start,end:d3.end})};d2.prototype.init=function(){var d3=this;a3.prototype.init.apply(this,arguments);this.name=r2(this.name,"Slice");var e2=function(a4){d3.slice("select"===a4.type)};B(this,"select",e2);B(this,"unselect",e2);return this};d2.prototype.isValid=function(){return t2(this.y)&&0<=this.y};d2.prototype.setVisible=function(a4,d3){var e2=this,g4=this.series,h2=g4.chart,m2=g4.options.ignoreHiddenPoint;d3=r2(d3,m2);a4!==this.visible&&(this.visible=this.options.visible=a4="undefined"===typeof a4?!this.visible:a4,g4.options.data[g4.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(d4){if(e2[d4])e2[d4][a4?"show":"hide"](a4)})),this.legendItem&&h2.legend.colorizeItem(this,a4),a4||"hover"!==this.state||this.setState(""),m2&&(g4.isDirty=true),d3&&h2.redraw())};d2.prototype.slice=function(a4,d3,e2){var g4=this.series;C2(e2,g4.chart);r2(d3,true);this.sliced=this.options.sliced=H2(a4)?a4:!this.sliced;g4.options.data[g4.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return d2}(g3);a2(g3.prototype,{connectorShapes:{fixedOffset:function(a3,d2,g4){var e2=d2.breakAt;d2=d2.touchingSliceAt;return[["M",a3.x,a3.y],g4.softConnector?["C",a3.x+("left"===a3.alignment?-5:5),a3.y,2*e2.x-d2.x,2*e2.y-d2.y,e2.x,e2.y]:["L",e2.x,e2.y],["L",d2.x,d2.y]]},straight:function(a3,d2){d2=d2.touchingSliceAt;return[["M",a3.x,a3.y],["L",d2.x,d2.y]]},crookedLine:function(a3,d2,g4){d2=d2.touchingSliceAt;var e2=this.series,h2=e2.center[0],p2=e2.chart.plotWidth,r3=e2.chart.plotLeft;e2=a3.alignment;var t3=this.shapeArgs.r;g4=l2(g4.crookDistance,1);p2="left"===e2?h2+t3+(p2+r3-h2-t3)*(1-g4):r3+(h2-t3)*g4;g4=["L",p2,a3.y];h2=true;if("left"===e2?p2>a3.x||p2d2.x)h2=false;a3=[["M",a3.x,a3.y]];h2&&a3.push(g4);a3.push(["L",d2.x,d2.y]);return a3}}});return g3}));K(g2,"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}}}}));K(g2,"Series/Pie/PieSeries.js",[g2["Series/CenteredUtilities.js"],g2["Series/Column/ColumnSeries.js"],g2["Core/Globals.js"],g2["Core/Legend/LegendSymbol.js"],g2["Series/Pie/PiePoint.js"],g2["Series/Pie/PieSeriesDefaults.js"],g2["Core/Series/Series.js"],g2["Core/Series/SeriesRegistry.js"],g2["Core/Renderer/SVG/Symbols.js"],g2["Core/Utilities.js"]],(function(a2,g3,x2,F2,C2,B,H2,t2,r2,l2){var e2=this&&this.__extends||function(){var a3=function(d3,e3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,d4){a4.__proto__=d4}||function(a4,d4){for(var c2 in d4)d4.hasOwnProperty(c2)&&(a4[c2]=d4[c2])};return a3(d3,e3)};return function(d3,e3){function c2(){this.constructor=d3}a3(d3,e3);d3.prototype=null===e3?Object.create(e3):(c2.prototype=e3.prototype,new c2)}}(),d2=a2.getStartAndEndRadians;x2=x2.noop;var h2=l2.clamp,m2=l2.extend,k2=l2.fireEvent,p2=l2.merge,A2=l2.pick,I=l2.relativeLength;l2=function(a3){function g4(){var d3=null!==a3&&a3.apply(this,arguments)||this;d3.center=void 0;d3.data=void 0;d3.maxLabelDistance=void 0;d3.options=void 0;d3.points=void 0;return d3}e2(g4,a3);g4.prototype.animate=function(a4){var c2=this,d3=c2.points,e3=c2.startAngleRad;a4||d3.forEach((function(a5){var b2=a5.graphic,d4=a5.shapeArgs;b2&&d4&&(b2.attr({r:A2(a5.startR,c2.center&&c2.center[3]/2),start:e3,end:e3}),b2.animate({r:d4.r,start:d4.start,end:d4.end},c2.options.animation))}))};g4.prototype.drawEmpty=function(){var a4=this.startAngleRad,c2=this.endAngleRad,d3=this.options;if(0===this.total&&this.center){var e3=this.center[0];var g5=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(e3,g5,this.center[1]/2,0,a4,c2).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:r2.arc(e3,g5,this.center[2]/2,0,{start:a4,end:c2,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":d3.borderWidth,fill:d3.fillColor||"none",stroke:d3.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};g4.prototype.drawPoints=function(){var a4=this.chart.renderer;this.points.forEach((function(c2){c2.graphic&&c2.hasNewShapeType()&&(c2.graphic=c2.graphic.destroy());c2.graphic||(c2.graphic=a4[c2.shapeType](c2.shapeArgs).add(c2.series.group),c2.delayedRendering=true)}))};g4.prototype.generatePoints=function(){a3.prototype.generatePoints.call(this);this.updateTotals()};g4.prototype.getX=function(a4,c2,d3){var e3=this.center,g5=this.radii?this.radii[d3.index]||0:e3[2]/2;a4=Math.asin(h2((a4-e3[1])/(g5+d3.labelDistance),-1,1));return e3[0]+(c2?-1:1)*Math.cos(a4)*(g5+d3.labelDistance)+(01.5*Math.PI?x3-=2*Math.PI:x3<-Math.PI/2&&(x3+=2*Math.PI);t3.slicedTranslation={translateX:Math.round(Math.cos(x3)*e3),translateY:Math.round(Math.sin(x3)*e3)};D2=Math.cos(x3)*a4[2]/2;var v2=Math.sin(x3)*a4[2]/2;t3.tooltipPos=[a4[0]+.7*D2,a4[1]+.7*v2];t3.half=x3<-Math.PI/2||x3>Math.PI/2?1:0;t3.angle=x3;y2=Math.min(f2,t3.labelDistance/5);t3.labelPosition={natural:{x:a4[0]+D2+Math.cos(x3)*t3.labelDistance,y:a4[1]+v2+Math.sin(x3)*t3.labelDistance},final:{},alignment:0>t3.labelDistance?"center":t3.half?"right":"left",connectorPosition:{breakAt:{x:a4[0]+D2+Math.cos(x3)*y2,y:a4[1]+v2+Math.sin(x3)*y2},touchingSliceAt:{x:a4[0]+D2,y:a4[1]+v2}}}}k2(this,"afterTranslate")};g4.prototype.updateTotals=function(){var a4=this.points,c2=a4.length,d3=this.options.ignoreHiddenPoint,e3,g5=0;for(e3=0;e3y3&&(a4.dataLabel.css({width:Math.round(.7*y3)+"px"}),a4.dataLabel.shortened=true)):(a4.dataLabel=a4.dataLabel.destroy(),a4.dataLabels&&1===a4.dataLabels.length&&delete a4.dataLabels))})),B2.forEach((function(c2,d3){var g6=c2.length,n2=[],q;if(g6){a3.sortByAngle(c2,d3-.5);if(0l3-b2&&0===d3&&(r3=Math.round(X+G-l3+b2),E2[1]=Math.max(r3,E2[1])),0>R2-M/2?E2[0]=Math.max(Math.round(-R2+M/2),E2[0]):R2+M/2>m3&&(E2[2]=Math.max(Math.round(R2+M/2-m3),E2[2])),L2.sideOverflow=r3)}}})),0===r2(E2)||this.verifyDataLabelOverflow(E2))&&(this.placeDataLabels(),this.points.forEach((function(b3){W2=d2(k4,b3.options.dataLabels);if(F3=h2(W2.connectorWidth,1)){var c2;I=b3.connector;if((L2=b3.dataLabel)&&L2._pos&&b3.visible&&0d3.bottom-2?g5:e3,d3.half,d3)},justify:function(a3,d3,e3){return e3[0]+(a3.half?-1:1)*(d3+a3.labelDistance)},alignToPlotEdges:function(a3,d3,e3,g5){a3=a3.getBBox().width;return d3?a3+g5:e3-a3-g5},alignToConnectors:function(a3,d3,e3,g5){var b2=0,c2;a3.forEach((function(a4){c2=a4.dataLabel.getBBox().width;c2>b2&&(b2=c2)}));return d3?b2+g5:e3-b2-g5}};g4.compose=function(c2){a2.compose(t2);-1===B.indexOf(c2)&&(B.push(c2),c2=c2.prototype,c2.dataLabelPositioners=y2,c2.alignDataLabel=A2,c2.drawDataLabels=k3,c2.placeDataLabels=p2,c2.verifyDataLabelOverflow=x3)}})(k2||(k2={}));return k2}));K(g2,"Extensions/OverlappingDataLabels.js",[g2["Core/Chart/Chart.js"],g2["Core/Utilities.js"]],(function(a2,g3){function A2(a3,e2){var d2=false;if(a3){var g4=a3.newOpacity;a3.oldOpacity!==g4&&(a3.alignAttr&&a3.placed?(a3[g4?"removeClass":"addClass"]("highcharts-data-label-hidden"),d2=true,a3.alignAttr.opacity=g4,a3[a3.isOld?"animate":"attr"](a3.alignAttr,null,(function(){e2.styledMode||a3.css({pointerEvents:g4?"auto":"none"})})),C2(e2,"afterHideOverlappingLabel")):a3.attr({opacity:g4}));a3.isOld=true}return d2}var F2=g3.addEvent,C2=g3.fireEvent,B=g3.isArray,H2=g3.isNumber,t2=g3.objectEach,r2=g3.pick;F2(a2,"render",(function(){var a3=this,e2=[];(this.labelCollectors||[]).forEach((function(a4){e2=e2.concat(a4())}));(this.yAxis||[]).forEach((function(a4){a4.stacking&&a4.options.stackLabels&&!a4.options.stackLabels.allowOverlap&&t2(a4.stacking.stacks,(function(a5){t2(a5,(function(a6){a6.label&&e2.push(a6.label)}))}))}));(this.series||[]).forEach((function(d2){var g4=d2.options.dataLabels;d2.visible&&(false!==g4.enabled||d2._hasPointLabels)&&(g4=function(d3){return d3.forEach((function(d4){d4.visible&&(B(d4.dataLabels)?d4.dataLabels:d4.dataLabel?[d4.dataLabel]:[]).forEach((function(g5){var h2=g5.options;g5.labelrank=r2(h2.labelrank,d4.labelrank,d4.shapeArgs&&d4.shapeArgs.height);h2.allowOverlap?(g5.oldOpacity=g5.opacity,g5.newOpacity=1,A2(g5,a3)):e2.push(g5)}))}))},g4(d2.nodes||[]),g4(d2.points))}));this.hideOverlappingLabels(e2)}));a2.prototype.hideOverlappingLabels=function(a3){var e2=this,d2=a3.length,g4=e2.renderer,l2,k2,p2,r3=false;var t3=function(a4){var c2,d3=a4.box?0:a4.padding||0,e3=c2=0,h2;if(a4&&(!a4.alignAttr||a4.placed)){var b2=a4.alignAttr||{x:a4.attr("x"),y:a4.attr("y")};var k3=a4.parentGroup;a4.width||(c2=a4.getBBox(),a4.width=c2.width,a4.height=c2.height,c2=g4.fontMetrics(null,a4.element).h);var l3=a4.width-2*d3;(h2={left:"0",center:"0.5",right:"1"}[a4.alignValue])?e3=+h2*l3:H2(a4.x)&&Math.round(a4.x)!==a4.translateX&&(e3=a4.x-a4.translateX);return{x:b2.x+(k3.translateX||0)+d3-(e3||0),y:b2.y+(k3.translateY||0)+d3-c2,width:a4.width-2*d3,height:a4.height-2*d3}}};for(k2=0;k2=x2.x+x2.width||B2.x+B2.width<=x2.x||B2.y>=x2.y+x2.height||B2.y+B2.height<=x2.y||((t3.labelrank=t2(e4.minWidth,0)&&this.chartHeight>=t2(e4.minHeight,0)}).call(this)&&d3.push(a5._id)};a4.prototype.setResponsive=function(a5,d3){var e4=this,g4=this.options.responsive,h2=this.currentResponsive,k2=[];!d3&&g4&&g4.rules&&g4.rules.forEach((function(a6){"undefined"===typeof a6._id&&(a6._id=l2());e4.matchResponsiveRule(a6,k2)}),this);d3=B.apply(void 0,k2.map((function(a6){return x2((g4||{}).rules||[],(function(c2){return c2._id===a6}))})).map((function(a6){return a6&&a6.chartOptions})));d3.isResponsiveOptions=true;k2=k2.toString()||void 0;k2!==(h2&&h2.ruleIds)&&(h2&&this.update(h2.undoOptions,a5,true),k2?(h2=this.currentOptions(d3),h2.isResponsiveOptions=true,this.currentResponsive={ruleIds:k2,mergedOptions:d3,undoOptions:h2},this.update(d3,a5,true)):this.currentResponsive=void 0)};return a4}()})(e2||(e2={}));return e2}));K(g2,"masters/highcharts.src.js",[g2["Core/Globals.js"],g2["Core/Utilities.js"],g2["Core/Defaults.js"],g2["Core/Animation/Fx.js"],g2["Core/Animation/AnimationUtilities.js"],g2["Core/Renderer/HTML/AST.js"],g2["Core/FormatUtilities.js"],g2["Core/Renderer/RendererUtilities.js"],g2["Core/Renderer/SVG/SVGElement.js"],g2["Core/Renderer/SVG/SVGRenderer.js"],g2["Core/Renderer/HTML/HTMLElement.js"],g2["Core/Renderer/HTML/HTMLRenderer.js"],g2["Core/Axis/Axis.js"],g2["Core/Axis/DateTimeAxis.js"],g2["Core/Axis/LogarithmicAxis.js"],g2["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],g2["Core/Axis/Tick.js"],g2["Core/Tooltip.js"],g2["Core/Series/Point.js"],g2["Core/Pointer.js"],g2["Core/MSPointer.js"],g2["Core/Legend/Legend.js"],g2["Core/Chart/Chart.js"],g2["Core/Axis/Stacking/StackingAxis.js"],g2["Core/Axis/Stacking/StackItem.js"],g2["Core/Series/Series.js"],g2["Core/Series/SeriesRegistry.js"],g2["Series/Column/ColumnSeries.js"],g2["Series/Column/ColumnDataLabel.js"],g2["Series/Pie/PieSeries.js"],g2["Series/Pie/PieDataLabel.js"],g2["Core/Series/DataLabel.js"],g2["Core/Responsive.js"],g2["Core/Color/Color.js"],g2["Core/Time.js"]],(function(a2,g3,x2,F2,C2,B,H2,t2,r2,l2,e2,d2,h2,m2,k2,p2,D2,I,E2,L2,y2,c2,w2,f2,n2,b2,u2,z2,q,K2,J,O2,Q,T2,Y){a2.animate=C2.animate;a2.animObject=C2.animObject;a2.getDeferredAnimation=C2.getDeferredAnimation;a2.setAnimation=C2.setAnimation;a2.stop=C2.stop;a2.timers=F2.timers;a2.AST=B;a2.Axis=h2;a2.Chart=w2;a2.chart=w2.chart;a2.Fx=F2;a2.Legend=c2;a2.PlotLineOrBand=p2;a2.Point=E2;a2.Pointer=y2.isRequired()?y2:L2;a2.Series=b2;a2.StackItem=n2;a2.SVGElement=r2;a2.SVGRenderer=l2;a2.Tick=D2;a2.Time=Y;a2.Tooltip=I;a2.Color=T2;a2.color=T2.parse;d2.compose(l2);e2.compose(r2);a2.defaultOptions=x2.defaultOptions;a2.getOptions=x2.getOptions;a2.time=x2.defaultTime;a2.setOptions=x2.setOptions;a2.dateFormat=H2.dateFormat;a2.format=H2.format;a2.numberFormat=H2.numberFormat;a2.addEvent=g3.addEvent;a2.arrayMax=g3.arrayMax;a2.arrayMin=g3.arrayMin;a2.attr=g3.attr;a2.clearTimeout=g3.clearTimeout;a2.correctFloat=g3.correctFloat;a2.createElement=g3.createElement;a2.css=g3.css;a2.defined=g3.defined;a2.destroyObjectProperties=g3.destroyObjectProperties;a2.discardElement=g3.discardElement;a2.distribute=t2.distribute;a2.erase=g3.erase;a2.error=g3.error;a2.extend=g3.extend;a2.extendClass=g3.extendClass;a2.find=g3.find;a2.fireEvent=g3.fireEvent;a2.getMagnitude=g3.getMagnitude;a2.getStyle=g3.getStyle;a2.inArray=g3.inArray;a2.isArray=g3.isArray;a2.isClass=g3.isClass;a2.isDOMElement=g3.isDOMElement;a2.isFunction=g3.isFunction;a2.isNumber=g3.isNumber;a2.isObject=g3.isObject;a2.isString=g3.isString;a2.keys=g3.keys;a2.merge=g3.merge;a2.normalizeTickInterval=g3.normalizeTickInterval;a2.objectEach=g3.objectEach;a2.offset=g3.offset;a2.pad=g3.pad;a2.pick=g3.pick;a2.pInt=g3.pInt;a2.relativeLength=g3.relativeLength;a2.removeEvent=g3.removeEvent;a2.seriesType=u2.seriesType;a2.splat=g3.splat;a2.stableSort=g3.stableSort;a2.syncTimeout=g3.syncTimeout;a2.timeUnits=g3.timeUnits;a2.uniqueKey=g3.uniqueKey;a2.useSerialIds=g3.useSerialIds;a2.wrap=g3.wrap;q.compose(z2);O2.compose(b2);m2.compose(h2);k2.compose(h2);J.compose(K2);p2.compose(h2);Q.compose(w2);f2.compose(h2,w2,b2);return a2}));g2["masters/highcharts.src.js"]._modules=g2;return g2["masters/highcharts.src.js"]}))})(highcharts);var highchartsExports=highcharts.exports;const Highcharts$1=getDefaultExportFromCjs(highchartsExports);const highchartsTheme={lang:{thousandsSep:","},colors:[colors$1.data_1,colors$1.data_2,colors$1.data_3,colors$1.data_4,colors$1.data_5,colors$1.data_6,colors$1.data_7],chart:{borderWidth:0,borderRadius:0,plotBackgroundColor:void 0,plotShadow:false,plotBorderWidth:0},title:{style:{color:colors$1.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_3}},subtitle:{style:{fontFamily:typography.font_family_base,color:colors$1.text_lt_light,fontWeight:typography.regular,fontSize:typography.text_base}},xAxis:{gridLineWidth:0,lineColor:colors$1.border_light,tickColor:colors$1.border_light,labels:{style:{fontFamily:typography.font_family_base,color:colors$1.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{color:colors$1.text_lt_default,fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_4}}},yAxis:{alternateGridColor:void 0,minorTickInterval:null,gridLineColor:colors$1.border_light,minorGridLineColor:colors$1.border_light,lineWidth:0,tickWidth:0,labels:{style:{fontFamily:typography.font_family_base,color:colors$1.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{fontFamily:typography.font_family_base,color:colors$1.text_lt_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}}},legend:{layout:"horizontal",align:"center",verticalAlign:"bottom",itemStyle:{fontFamily:typography.font_family_base,color:colors$1.text_lt_light,fontWeight:typography.regular,fontSize:typography.text_smaller},itemHoverStyle:{color:colors$1.text_lt_default},itemHiddenStyle:{color:colors$1.text_lt_lighter}},tooltip:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,colors$1.bg_dark],[1,colors$1.bg_dark]]},shadow:false,borderWidth:0,borderRadius:10,style:{fontFamily:typography.font_family_base,color:colors$1.text_dk_default,fontWeight:typography.regular,fontSize:typography.text_smaller}},pane:{background:{borderColor:colors$1.border_light}},plotOptions:{series:{threshold:null},pie:{colors:[colors$1.data_1,colors$1.data_2,colors$1.data_3,colors$1.data_4,colors$1.data_5,colors$1.data_6,colors$1.data_7],dataLabels:{style:{fontFamily:typography.font_family_base,fontSize:typography.text_smaller,color:colors$1.text_lt_light,fontWeight:typography.regular,textOutline:"2px $white"}}},line:{dataLabels:{color:"#CCC"},marker:{lineColor:"#333"}},treemap:{layoutAlgorithm:"squarified",allowTraversingTree:false,animationLimit:1e3,colors:[colors$1.data_1,colors$1.data_2,colors$1.data_3,colors$1.data_4,colors$1.data_5,colors$1.data_6,colors$1.data_7,colors$1.data_8],dataLabels:{enabled:true,style:{fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_4}},levels:[{level:1,dataLabels:{enabled:false}}],traverseUpButton:{position:{y:-50}}}},credits:{enabled:false}};const highchartsDarkTheme={lang:{thousandsSep:","},colors:[colors$1.data_1,colors$1.data_2,colors$1.data_3,colors$1.data_4,colors$1.data_5,colors$1.data_6,colors$1.data_7],chart:{borderWidth:0,borderRadius:0,plotBackgroundColor:void 0,plotShadow:false,plotBorderWidth:0},title:{style:{color:colors$1.text_dk_default,fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_3}},subtitle:{style:{fontFamily:typography.font_family_base,color:colors$1.text_dk_light,fontWeight:typography.regular,fontSize:typography.text_base}},xAxis:{gridLineWidth:0,lineColor:colors$1.border_dark,tickColor:colors$1.border_dark,labels:{style:{fontFamily:typography.font_family_base,color:colors$1.text_dk_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{color:colors$1.text_dk_default,fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_4}}},yAxis:{alternateGridColor:void 0,minorTickInterval:null,gridLineColor:colors$1.border_dark,minorGridLineColor:colors$1.border_dark,lineWidth:0,tickWidth:0,labels:{style:{fontFamily:typography.font_family_base,color:colors$1.text_dk_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}},title:{style:{fontFamily:typography.font_family_base,color:colors$1.text_dk_lighter,fontWeight:typography.bold,fontSize:typography.text_smaller}}},legend:{layout:"horizontal",align:"center",verticalAlign:"bottom",itemStyle:{fontFamily:typography.font_family_base,color:colors$1.text_dk_light,fontWeight:typography.regular,fontSize:typography.text_smaller},itemHoverStyle:{color:colors$1.text_dk_default},itemHiddenStyle:{color:colors$1.text_dk_lighter}},tooltip:{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,colors$1.card_light],[1,colors$1.card_light]]},shadow:false,borderWidth:0,borderRadius:10,style:{fontFamily:typography.font_family_base,color:colors$1.text_lt_default,fontWeight:typography.regular,fontSize:typography.text_smaller}},pane:{background:{borderColor:colors$1.border_dark}},plotOptions:{series:{borderColor:colors$1.bg_dark_card,borderWidth:2,threshold:null},pie:{colors:[colors$1.data_1,colors$1.data_2,colors$1.data_3,colors$1.data_4,colors$1.data_5,colors$1.data_6,colors$1.data_7],dataLabels:{style:{fontFamily:typography.font_family_base,fontSize:typography.text_smaller,color:colors$1.text_dk_light,fontWeight:typography.regular}}},line:{dataLabels:{color:colors$1.text_dk_light},marker:{lineColor:colors$1.border_dark}},treemap:{layoutAlgorithm:"squarified",allowTraversingTree:false,animationLimit:1e3,colors:[colors$1.data_1,colors$1.data_2,colors$1.data_3,colors$1.data_4,colors$1.data_5,colors$1.data_6,colors$1.data_7,colors$1.data_8],dataLabels:{enabled:true,style:{fontFamily:typography.font_family_base,fontWeight:typography.bold,fontSize:typography.heading_4}},levels:[{level:1,dataLabels:{enabled:false}}],traverseUpButton:{position:{y:-50}}}},credits:{enabled:false}};const mapColors=array=>{const regex=/(data)\-[1-8]/;const newArray=array.map((item=>regex.test(item)?`${colors$1[`data_${item[item.length-1]}`]}`:item));return newArray};const BarGraph=({aria:aria={},data:data={},align:align="center",axisTitle:axisTitle,dark:dark=false,chartData:chartData,className:className="pb_bar_graph",colors:colors2,htmlOptions:htmlOptions={},customOptions:customOptions={},axisFormat:axisFormat,id:id,pointStart:pointStart,stacking:stacking,subTitle:subTitle,type:type="column",title:title="Title",xAxisCategories:xAxisCategories,yAxisMin:yAxisMin,yAxisMax:yAxisMax,legend:legend=false,toggleLegendClick:toggleLegendClick=true,height:height,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x2=0,y:y2=0,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},subtitle:{text:subTitle},yAxis:[{labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat&&axisFormat[0]?axisFormat[0].format:""},min:yAxisMin,max:yAxisMax,opposite:false,title:{text:Array.isArray(axisTitle)?axisTitle.length>0?axisTitle[0].name:null:axisTitle},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]}],xAxis:{categories:xAxisCategories},legend:{enabled:legend,align:align,verticalAlign:verticalAlign,layout:layout,x:x2,y:y2},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{stacking:stacking,pointStart:pointStart,borderWidth:stacking?0:"",events:{},dataLabels:{enabled:false}}},series:chartData,credits:false};if(Array.isArray(axisTitle)&&axisTitle.length>1&&axisTitle[1].name){staticOptions.yAxis.push({labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat[1].format},min:yAxisMin,max:yAxisMax,opposite:true,title:{text:axisTitle[1].name},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]})}if(!toggleLegendClick){staticOptions.plotOptions.series.events={legendItemClick:()=>false}}const filteredProps={...props};delete filteredProps.verticalAlign;const[options2,setOptions]=useState({});useEffect((()=>{setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx$1(HighchartsReact,{containerProps:{className:classnames(globalProps(filteredProps),className),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})};const buttonClassName=props=>{const{disabled:disabled=false,fullWidth:fullWidth=false,highlight:highlight,icon:icon,loading:loading=false,type:type="inline",variant:variant="primary",size:size=null}=props;let className="pb_button_kit";className+=`${variant!==null?`_${variant}`:""}`;className+=`${type!==null?`_${type}`:""}`;className+=`${fullWidth?"_block":""}`;className+=disabled?"_disabled":"_enabled";className+=loading?"_loading":"";className+=`${size!==null?` size_${size}`:""}`;className+=`${variant==="reaction"&&!isValidEmoji(icon)?` reaction_default`:""}`;className+=`${variant==="reaction"&&highlight?` active`:""}`;return className};const Button=props=>{const{aria:aria={},children:children,className:className,count:count2,data:data={},disabled:disabled,htmlOptions:htmlOptions={},icon:icon=null,iconRight:iconRight=false,id:id,loading:loading=false,onClick:onClick,tabIndex:tabIndex,link:link=null,newWindow:newWindow=false,target:target="",text:text,htmlType:htmlType="button",value:value,variant:variant,form:form=null}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css4=classnames(buttonClassName(props),globalProps(props),className);const loadingIcon=jsx$1("div",{className:"loading-icon",children:jsx$1(Icon,{fixedWidth:true,icon:"spinner",pulse:true})});const content=jsxs("span",{className:"pb_button_content",children:[icon&&!iconRight&&jsx$1("i",{className:`pb_icon_kit far fa-${icon} fa-fw button_with_icon`}),jsx$1("span",{children:text||children}),icon&&iconRight&&jsx$1("i",{className:`pb_icon_kit far fa-${icon} fa-fw button_with_icon_right`})]});const ifLoading=()=>{if(loading){return jsx$1(Fragment,{children:loadingIcon})}else{return content}};const getTargetAttribute=()=>{if(target&&link){return target}else if(newWindow){return"_blank"}return null};const displayButton=()=>{if(link){return jsx$1("a",{...ariaProps,...dataProps,...htmlProps,className:css4,href:link,id:id,rel:target!=="child"?"noreferrer":null,role:"link",tabIndex:tabIndex,target:getTargetAttribute(),children:ifLoading()})}else if(variant==="reaction"){return jsxs("button",{...ariaProps,...dataProps,...htmlProps,className:css4,disabled:disabled,form:form,id:id,onClick:onClick,role:"button",tabIndex:tabIndex,type:htmlType,value:value,children:[icon&&isValidEmoji(icon)&&jsxs(Flex,{align:"center",children:[jsx$1(Icon,{icon:icon}),count2&&jsx$1(Caption,{paddingLeft:"xxs",size:"xs",children:count2})]}),!isValidEmoji(icon)&&jsx$1(Icon,{icon:icon?icon:"face-smile-plus"})]})}else{return jsx$1("button",{...ariaProps,...dataProps,...htmlProps,className:css4,disabled:disabled,form:form,id:id,onClick:onClick,role:"button",tabIndex:tabIndex,type:htmlType,value:value,children:ifLoading()})}};return jsx$1(Fragment,{children:displayButton()})};const Checkbox=props=>{const{aria:aria={},checked:checked=false,children:children,className:className,dark:dark=false,data:data={},disabled:disabled=false,error:error=false,htmlOptions:htmlOptions={},id:id,indeterminate:indeterminate=false,name:name2="",onChange:onChange2=()=>{},tabIndex:tabIndex,text:text="",value:value=""}=props;const checkRef=useRef(null);const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_checkbox_kit",checked?"checked":null,error?"error":null,indeterminate?"indeterminate":null),globalProps(props),className);useEffect((()=>{if(checkRef.current){checkRef.current.checked=checked;checkRef.current.indeterminate=indeterminate}}),[indeterminate,checked]);const checkboxChildren=()=>{if(children)return children;else return jsx$1("input",{defaultChecked:checked,disabled:disabled,name:name2,onChange:onChange2,ref:checkRef,tabIndex:tabIndex,type:"checkbox",value:value})};return jsxs("label",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[jsx$1(Fragment,{children:checkboxChildren()}),!indeterminate&&jsx$1("span",{className:"pb_checkbox_checkmark",children:jsx$1(Icon,{className:"check_icon",fixedWidth:true,icon:"check"})}),indeterminate&&jsx$1("span",{className:"pb_checkbox_indeterminate",children:jsx$1(Icon,{className:"indeterminate_icon",fixedWidth:true,icon:"minus"})}),jsx$1(Body$1,{className:"pb_checkbox_label",dark:dark,status:error?"negative":null,variant:null,children:text})]})};var highchartsMore$1={exports:{}};(function(module){(function(d2){module.exports?(d2["default"]=d2,module.exports=d2):d2("undefined"!==typeof Highcharts?Highcharts:void 0)})((function(d2){function D2(b2,c2,h2,a2){b2.hasOwnProperty(c2)||(b2[c2]=a2.apply(null,h2),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:c2,module:b2[c2]}})))}d2=d2?d2._modules:{};D2(d2,"Extensions/Pane.js",[d2["Core/Chart/Chart.js"],d2["Series/CenteredUtilities.js"],d2["Core/Globals.js"],d2["Core/Pointer.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2,a2,f2){function w2(g2,k2,e3,a3,G){var m2=true,E2=e3[0],v2=e3[1],c3=Math.sqrt(Math.pow(g2-E2,2)+Math.pow(k2-v2,2));q(a3)&&q(G)&&(g2=Math.atan2(r2(k2-v2,8),r2(g2-E2,8)),G!==a3&&(m2=a3>G?g2>=a3&&g2<=Math.PI||g2<=G&&g2>=-Math.PI:g2>=a3&&g2<=r2(G,8)));return c3<=Math.ceil(e3[2]/2)&&m2}var d3=f2.addEvent,r2=f2.correctFloat,q=f2.defined,F2=f2.extend,p2=f2.merge,l2=f2.pick,e2=f2.splat;b2.prototype.collectionsWithUpdate.push("pane");f2=function(){function g2(k2,g3){this.options=this.chart=this.center=this.background=void 0;this.coll="pane";this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0};this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"};this.init(k2,g3)}g2.prototype.init=function(k2,g3){this.chart=g3;this.background=[];g3.pane.push(this);this.setOptions(k2)};g2.prototype.setOptions=function(k2){this.options=p2(this.defaultOptions,this.chart.angular?{background:{}}:void 0,k2)};g2.prototype.render=function(){var k2=this.options,g3=this.options.background,a3=this.chart.renderer;this.group||(this.group=a3.g("pane-group").attr({zIndex:k2.zIndex||0}).add());this.updateCenter();if(g3)for(g3=e2(g3),k2=Math.max(g3.length,this.background.length||0),a3=0;a3● {series.name}: {point.low} - {point.high}
'},trackByArea:true,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}};a2=function(e3){function a3(){var g3=null!==e3&&e3.apply(this,arguments)||this;g3.data=void 0;g3.options=void 0;g3.points=void 0;g3.lowerStateMarkerGraphic=void 0;g3.xAxis=void 0;return g3}f2(a3,e3);a3.prototype.toYData=function(g3){return[g3.low,g3.high]};a3.prototype.highToXY=function(g3){var e4=this.chart,k3=this.xAxis.postTranslate(g3.rectPlotX||0,this.yAxis.len-(g3.plotHigh||0));g3.plotHighX=k3.x-e4.plotLeft;g3.plotHigh=k3.y-e4.plotTop;g3.plotLowX=g3.plotX};a3.prototype.getGraphPath=function(e4){var k3=[],a4=[],m3=r2.getGraphPath,b3=this.options,c3=this.chart.polar,x2=c3&&false!==b3.connectEnds,B=b3.connectNulls,y2,f3=b3.step;e4=e4||this.points;for(y2=e4.length;y2--;){var t2=e4[y2];var G=c3?{plotX:t2.rectPlotX,plotY:t2.yBottom,doCurve:false}:{plotX:t2.plotX,plotY:t2.plotY,doCurve:false};t2.isNull||x2||B||e4[y2+1]&&!e4[y2+1].isNull||a4.push(G);var l3={polarPlotY:t2.polarPlotY,rectPlotX:t2.rectPlotX,yBottom:t2.yBottom,plotX:g2(t2.plotHighX,t2.plotX),plotY:t2.plotHigh,isNull:t2.isNull};a4.push(l3);k3.push(l3);t2.isNull||x2||B||e4[y2-1]&&!e4[y2-1].isNull||a4.push(G)}e4=m3.call(this,e4);f3&&(true===f3&&(f3="left"),b3.step={left:"right",center:"center",right:"left"}[f3]);k3=m3.call(this,k3);a4=m3.call(this,a4);b3.step=f3;b3=[].concat(e4,k3);!this.chart.polar&&a4[0]&&"M"===a4[0][0]&&(a4[0]=["L",a4[0][1],a4[0][2]]);this.graphPath=b3;this.areaPath=e4.concat(a4);b3.isArea=true;b3.xMap=e4.xMap;this.areaPath.xMap=e4.xMap;return b3};a3.prototype.drawDataLabels=function(){var e4=this.points,g3=e4.length,k3=[],a4=this.options.dataLabels,m3=this.chart.inverted,b3,x2;if(a4){if(l2(a4)){var c3=a4[0]||{enabled:false};var y2=a4[1]||{enabled:false}}else c3=p2({},a4),c3.x=a4.xHigh,c3.y=a4.yHigh,y2=p2({},a4),y2.x=a4.xLow,y2.y=a4.yLow;if(c3.enabled||this._hasPointLabels){for(b3=g3;b3--;)if(x2=e4[b3]){var f3=x2.plotHigh;f3=void 0===f3?0:f3;var t2=x2.plotLow;t2=void 0===t2?0:t2;t2=c3.inside?f3t2;x2.y=x2.high;x2._plotY=x2.plotY;x2.plotY=f3;k3[b3]=x2.dataLabel;x2.dataLabel=x2.dataLabelUpper;x2.below=t2;m3?c3.align||(c3.align=t2?"right":"left"):c3.verticalAlign||(c3.verticalAlign=t2?"top":"bottom")}this.options.dataLabels=c3;r2.drawDataLabels&&r2.drawDataLabels.apply(this,arguments);for(b3=g3;b3--;)if(x2=e4[b3])x2.dataLabelUpper=x2.dataLabel,x2.dataLabel=k3[b3],delete x2.dataLabels,x2.y=x2.low,x2.plotY=x2._plotY}if(y2.enabled||this._hasPointLabels){for(b3=g3;b3--;)if(x2=e4[b3])k3=x2.plotHigh,f3=void 0===k3?0:k3,k3=x2.plotLow,t2=void 0===k3?0:k3,t2=y2.inside?f3t2,x2.below=!t2,m3?y2.align||(y2.align=t2?"left":"right"):y2.verticalAlign||(y2.verticalAlign=t2?"bottom":"top");this.options.dataLabels=y2;r2.drawDataLabels&&r2.drawDataLabels.apply(this,arguments)}if(c3.enabled){for(b3=g3;b3--;)if(x2=e4[b3])x2.dataLabels=[x2.dataLabelUpper,x2.dataLabel].filter((function(e5){return!!e5}))}this.options.dataLabels=a4}};a3.prototype.alignDataLabel=function(){q.alignDataLabel.apply(this,arguments)};a3.prototype.drawPoints=function(){var e4=this.points.length,k3;r2.drawPoints.apply(this,arguments);for(k3=0;k3{series.name}
Maximum: {point.high}
Upper quartile: {point.q3}
Median: {point.median}
Lower quartile: {point.q1}
Minimum: {point.low}
'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2});return c3}(b2);d3(a2.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:c2,setStackedPoints:c2});h2.registerSeriesType("boxplot",a2);return a2}));D2(d2,"Series/Bubble/BubbleLegendDefaults.js",[],(function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:false,labels:{className:void 0,allowOverlap:false,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:false,zIndex:1,zThreshold:0}}));D2(d2,"Series/Bubble/BubbleLegendItem.js",[d2["Core/Color/Color.js"],d2["Core/FormatUtilities.js"],d2["Core/Globals.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2,a2){var f2=b2.parse,d3=h2.noop,n2=a2.arrayMax,r2=a2.arrayMin,q=a2.isNumber,F2=a2.merge,p2=a2.pick,l2=a2.stableSort;b2=function(){function a3(a4,e2){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legend=this.fontMetrics=this.chart=void 0;this.setState=d3;this.init(a4,e2)}a3.prototype.init=function(a4,e2){this.options=a4;this.visible=true;this.chart=e2.chart;this.legend=e2};a3.prototype.addToLegend=function(a4){a4.splice(this.options.legendIndex,0,this)};a3.prototype.drawLegendSymbol=function(a4){var g2=this.chart,e2=p2(a4.options.itemDistance,20),b3=this.legendItem||{},c3=this.options,f3=c3.ranges,h3=c3.connectorDistance;this.fontMetrics=g2.renderer.fontMetrics(c3.labels.style.fontSize);f3&&f3.length&&q(f3[0].value)?(l2(f3,(function(a5,g3){return g3.value-a5.value})),this.ranges=f3,this.setOptions(),this.render(),a4=this.getMaxLabelSize(),f3=this.ranges[0].radius,g2=2*f3,h3=h3-f3+a4.width,h3=0=b3&&this.renderRange(f3)}a4.symbol.add(a4.label);a4.label.add(a4.group);this.hideOverlappingLabels()};a3.prototype.renderRange=function(a4){var e2=this.options,g2=e2.labels,b3=this.chart,c3=b3.series[e2.seriesIndex],f3=b3.renderer,h3=this.symbols;b3=h3.labels;var d4=a4.center,l3=Math.abs(a4.radius),I=e2.connectorDistance||0,K=g2.align,x2=e2.connectorWidth,B=this.ranges[0].radius||0,y2=d4-l3-e2.borderWidth/2+x2/2,H2=this.fontMetrics;H2=H2.f/2-(H2.h-H2.f)/2;var t2=f3.styledMode;I=this.legend.options.rtl||"left"===K?-I:I;"center"===K&&(I=0,e2.connectorDistance=0,a4.labelAttribs.align="center");K=y2+e2.labels.y;var n3=B+I+e2.labels.x;h3.bubbleItems.push(f3.circle(B,d4+((y2%1?1:.5)-(x2%2?0:.5)),l3).attr(t2?{}:a4.bubbleAttribs).addClass((t2?"highcharts-color-"+c3.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(e2.className||"")).add(this.legendItem.symbol));h3.connectors.push(f3.path(f3.crispLine([["M",B,y2],["L",B+I,y2]],e2.connectorWidth)).attr(t2?{}:a4.connectorAttribs).addClass((t2?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(e2.connectorClassName||"")).add(this.legendItem.symbol));a4=f3.text(this.formatLabel(a4),n3,K+H2).attr(t2?{}:a4.labelAttribs).css(t2?{}:g2.style).addClass("highcharts-bubble-legend-labels "+(e2.labels.className||"")).add(this.legendItem.symbol);b3.push(a4);a4.placed=true;a4.alignAttr={x:n3,y:K+H2}};a3.prototype.getMaxLabelSize=function(){var a4,e2;this.symbols.labels.forEach((function(g2){e2=g2.getBBox(true);a4=a4?e2.width>a4.width?e2:a4:e2}));return a4||{}};a3.prototype.formatLabel=function(a4){var e2=this.options,g2=e2.labels.formatter;e2=e2.labels.format;var b3=this.chart.numberFormatter;return e2?c2.format(e2,a4):g2?g2.call(a4):b3(a4.value,1)};a3.prototype.hideOverlappingLabels=function(){var a4=this.chart,e2=this.symbols;!this.options.labels.allowOverlap&&e2&&(a4.hideOverlappingLabels(e2.labels),e2.labels.forEach((function(a5,g2){a5.newOpacity?a5.newOpacity!==a5.oldOpacity&&e2.connectors[g2].show():e2.connectors[g2].hide()})))};a3.prototype.getRanges=function(){var a4=this.legend.bubbleLegend,e2=a4.options.ranges,b3,c3=Number.MAX_VALUE,f3=-Number.MAX_VALUE;a4.chart.series.forEach((function(a5){a5.isBubble&&!a5.ignoreSeries&&(b3=a5.zData.filter(q),b3.length&&(c3=p2(a5.options.zMin,Math.min(c3,Math.max(r2(b3),false===a5.options.displayNegative?a5.options.zThreshold:-Number.MAX_VALUE))),f3=p2(a5.options.zMax,Math.max(f3,n2(b3)))))}));var h3=c3===f3?[{value:f3}]:[{value:c3},{value:(c3+f3)/2},{value:f3,autoRanges:true}];e2.length&&e2[0].radius&&h3.reverse();h3.forEach((function(a5,g2){e2&&e2[g2]&&(h3[g2]=F2(e2[g2],a5))}));return h3};a3.prototype.predictBubbleSizes=function(){var a4=this.chart,e2=this.fontMetrics,b3=a4.legend.options,c3=b3.floating,f3=(b3="horizontal"===b3.layout)?a4.legend.lastLineHeight:0,h3=a4.plotSizeX,d4=a4.plotSizeY,v2=a4.series[this.options.seriesIndex],l3=v2.getPxExtremes();a4=Math.ceil(l3.minPxSize);l3=Math.ceil(l3.maxPxSize);var I=Math.min(d4,h3);v2=v2.options.maxSize;if(c3||!/%$/.test(v2))e2=l3;else if(v2=parseFloat(v2),e2=(I+f3-e2.h/2)*v2/100/(v2/100+1),b3&&d4-e2>=h3||!b3&&h3-e2>=d4)e2=l3;return[a4,Math.ceil(e2)]};a3.prototype.updateRanges=function(a4,e2){var b3=this.legend.options.bubbleLegend;b3.minSize=a4;b3.maxSize=e2;b3.ranges=this.getRanges()};a3.prototype.correctSizes=function(){var a4=this.legend,e2=this.chart.series[this.options.seriesIndex].getPxExtremes();1f3.height&&(f3.height=a3[c3].itemHeight);f3.step=g3}}return e3}function r2(a3){var e3=this.bubbleLegend,b3=this.options,g3=b3.bubbleLegend,f3=d3(this.chart);e3&&e3.ranges&&e3.ranges.length&&(g3.ranges.length&&(g3.autoRanges=!!g3.ranges[0].autoRanges),this.destroyItem(e3));0<=f3&&b3.enabled&&g3.enabled&&(g3.seriesIndex=f3,this.bubbleLegend=new c2(g3,this),this.bubbleLegend.addToLegend(a3.allItems))}function q(){var a3=this.chart,e3=this.visible,b3=this.chart.legend;b3&&b3.bubbleLegend&&(this.visible=!e3,this.ignoreSeries=e3,a3=0<=d3(a3),b3.bubbleLegend.visible!==a3&&(b3.update({bubbleLegend:{enabled:a3}}),b3.bubbleLegend.visible=a3),this.visible=e3)}function F2(a3,e3){var b3=a3.options.rtl,g3,c3,f3,k3,m2=0;a3.allItems.forEach((function(a4,x2){k3=a4.legendItem||{};if(k3.group){g3=k3.group.translateX||0;c3=k3.y||0;if((f3=a4.movementX)||b3&&a4.ranges)f3=b3?g3-a4.options.maxSize/2:g3+f3,k3.group.attr({translateX:f3});x2>e3[m2].step&&m2++;k3.group.attr({translateY:Math.round(c3+e3[m2].height/2)});k3.y=c3+e3[m2].height/2}}))}var p2=h2.setOptions,l2=a2.addEvent,e2=a2.objectEach,g2=a2.wrap,k2=[];return{compose:function(a3,e3,c3){-1===k2.indexOf(a3)&&(k2.push(a3),p2({legend:{bubbleLegend:b2}}),g2(a3.prototype,"drawChartBox",f2));-1===k2.indexOf(e3)&&(k2.push(e3),l2(e3,"afterGetAllItems",r2));-1===k2.indexOf(c3)&&(k2.push(c3),l2(c3,"legendItemClick",q))}}}));D2(d2,"Series/Bubble/BubblePoint.js",[d2["Core/Series/Point.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2){var a2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,b4){a4.__proto__=b4}||function(a4,b4){for(var c4 in b4)b4.hasOwnProperty(c4)&&(a4[c4]=b4[c4])};return a3(b3,c3)};return function(b3,c3){function f2(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(f2.prototype=c3.prototype,new f2)}}();h2=h2.extend;c2=function(c3){function f2(){var a3=null!==c3&&c3.apply(this,arguments)||this;a3.options=void 0;a3.series=void 0;return a3}a2(f2,c3);f2.prototype.haloPath=function(a3){return b2.prototype.haloPath.call(this,0===a3?0:(this.marker?this.marker.radius||0:0)+a3)};return f2}(c2.seriesTypes.scatter.prototype.pointClass);h2(c2.prototype,{ttBelow:false});return c2}));D2(d2,"Series/Bubble/BubbleSeries.js",[d2["Series/Bubble/BubbleLegendComposition.js"],d2["Series/Bubble/BubblePoint.js"],d2["Core/Color/Color.js"],d2["Core/Globals.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2,a2,f2,d3){function n2(){var a3=this,e3=this.len,b3=this.chart,g3=this.isXAxis,c3=g3?"xData":"yData",f3=this.min,k3=this.max-f3,m3=0,d4=e3,h3=e3/k3,l3;this.series.forEach((function(e4){if(e4.bubblePadding&&(e4.visible||!b3.options.chart.ignoreHiddenSeries)){l3=a3.allowZoomOutside=true;var x2=e4[c3];g3&&((e4.onPoint||e4).getRadii(0,0,e4),e4.onPoint&&(e4.radii=e4.onPoint.radii));if(0=b3/2?(g3.marker=m2(g3.marker,{radius:f3,width:2*f3,height:2*f3}),g3.dlBox={x:g3.plotX-f3,y:g3.plotY-f3,width:2*f3,height:2*f3}):(g3.shapeArgs=g3.plotY=g3.dlBox=void 0,g3.isInside=false)}};c3.prototype.getPxExtremes=function(){var a4=Math.min(this.chart.plotWidth,this.chart.plotHeight),e3=function(e4){if("string"===typeof e4){var b4=/%$/.test(e4);e4=parseInt(e4,10)}return b4?a4*e4/100:e4},b3=e3(L2(this.options.minSize,8));e3=Math.max(e3(L2(this.options.maxSize,"20%")),b3);return{minPxSize:b3,maxPxSize:e3}};c3.prototype.getZExtremes=function(){var a4=this.options,b3=(this.zData||[]).filter(N);if(b3.length){var c4=L2(a4.zMin,k2(g2(b3),false===a4.displayNegative?a4.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a4=L2(a4.zMax,e2(b3));if(N(c4)&&N(a4))return{zMin:c4,zMax:a4}}};c3.defaultOptions=G(l2.defaultOptions,{dataLabels:{formatter:function(){var a4=this.series.chart.numberFormatter,e3=this.point.z;return N(e3)?a4(e3,-1):""},inside:true,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:false,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return c3}(l2);m2(d3.prototype,{alignDataLabel:a2.alignDataLabel,applyZones:h2,bubblePadding:true,buildKDTree:h2,directTouch:true,isBubble:true,pointArrayMap:["y","z"],pointClass:c2,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});p2(d3,"updatedData",(function(a3){delete a3.target.chart.bubbleZExtremes}));p2(d3,"remove",(function(a3){delete a3.target.chart.bubbleZExtremes}));f2.registerSeriesType("bubble",d3);return d3}));D2(d2,"Series/ColumnRange/ColumnRangePoint.js",[d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2){var h2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,b4){a4.__proto__=b4}||function(a4,b4){for(var c4 in b4)b4.hasOwnProperty(c4)&&(a4[c4]=b4[c4])};return a3(b3,c3)};return function(b3,c3){function f3(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(f3.prototype=c3.prototype,new f3)}}(),a2=b2.seriesTypes;b2=a2.column.prototype.pointClass.prototype;var f2=c2.extend,d3=c2.isNumber;c2=function(a3){function b3(){var b4=null!==a3&&a3.apply(this,arguments)||this;b4.options=void 0;b4.series=void 0;return b4}h2(b3,a3);b3.prototype.isValid=function(){return d3(this.low)};return b3}(a2.arearange.prototype.pointClass);f2(c2.prototype,{setState:b2.setState});return c2}));D2(d2,"Series/ColumnRange/ColumnRangeSeries.js",[d2["Series/ColumnRange/ColumnRangePoint.js"],d2["Core/Globals.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,d3,a2){var f2=this&&this.__extends||function(){var a3=function(e3,b3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,e4){a4.__proto__=e4}||function(a4,e4){for(var b4 in e4)e4.hasOwnProperty(b4)&&(a4[b4]=e4[b4])};return a3(e3,b3)};return function(e3,b3){function c3(){this.constructor=e3}a3(e3,b3);e3.prototype=null===b3?Object.create(b3):(c3.prototype=b3.prototype,new c3)}}();c2=c2.noop;var h2=d3.seriesTypes,n2=h2.arearange,r2=h2.column,q=h2.column.prototype,F2=a2.clamp;h2=a2.extend;var p2=a2.isNumber,l2=a2.merge,e2=a2.pick,g2={pointRange:null,marker:null,states:{hover:{halo:false}}};a2=function(a3){function b3(){return null!==a3&&a3.apply(this,arguments)||this}f2(b3,a3);b3.prototype.setOptions=function(){l2(true,arguments[0],{stacking:void 0});return n2.prototype.setOptions.apply(this,arguments)};b3.prototype.translate=function(){var a4=this,b4=this.yAxis,c3=this.xAxis,g3=c3.startAngleRad,f3=this.chart,k2=this.xAxis.isRadial,d4=Math.max(f3.chartWidth,f3.chartHeight)+999,h3,x2,m2,l3;q.translate.apply(this);this.points.forEach((function(B){var t2=B.shapeArgs||{},y2=a4.options.minPointLength,n3=B.plotY,H2=b4.translate(B.high,0,1,0,1);p2(H2)&&p2(n3)&&(B.plotHigh=F2(H2,-d4,d4),B.plotLow=F2(n3,-d4,d4),l3=B.plotHigh,h3=e2(B.rectPlotY,B.plotY)-B.plotHigh,Math.abs(h3)h3&&(h3*=-1,l3-=h3),k2&&a4.polar?(m2=B.barX+g3,B.shapeType="arc",B.shapeArgs=a4.polar.arc(l3+h3,l3,m2,m2+B.pointWidth)):(t2.height=h3,t2.y=l3,y2=t2.x,y2=void 0===y2?0:y2,t2=t2.width,t2=void 0===t2?0:t2,B.tooltipPos=f3.inverted?[b4.len+b4.pos-f3.plotLeft-l3-h3/2,c3.len+c3.pos-f3.plotTop-y2-t2/2,h3]:[c3.left-f3.plotLeft+y2+t2/2,b4.pos-f3.plotTop+l3+h3/2,h3]))}))};b3.prototype.pointAttribs=function(){return q.pointAttribs.apply(this,arguments)};b3.prototype.translate3dPoints=function(){return q.translate3dPoints.apply(this,arguments)};b3.prototype.translate3dShapes=function(){return q.translate3dShapes.apply(this,arguments)};b3.defaultOptions=l2(r2.defaultOptions,n2.defaultOptions,g2);return b3}(n2);h2(a2.prototype,{directTouch:true,pointClass:b2,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:q.adjustForMissingColumns,animate:q.animate,crispCol:q.crispCol,drawGraph:c2,drawPoints:q.drawPoints,getSymbol:c2,drawTracker:q.drawTracker,getColumnMetrics:q.getColumnMetrics});d3.registerSeriesType("columnrange",a2);return a2}));D2(d2,"Series/ColumnPyramid/ColumnPyramidSeries.js",[d2["Series/Column/ColumnSeries.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2){var a2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,e2){a4.__proto__=e2}||function(a4,e2){for(var b4 in e2)e2.hasOwnProperty(b4)&&(a4[b4]=e2[b4])};return a3(b3,c3)};return function(b3,c3){function f3(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(f3.prototype=c3.prototype,new f3)}}(),f2=b2.prototype,d3=h2.clamp,n2=h2.merge,r2=h2.pick;h2=function(c3){function h3(){var a3=null!==c3&&c3.apply(this,arguments)||this;a3.data=void 0;a3.options=void 0;a3.points=void 0;return a3}a2(h3,c3);h3.prototype.translate=function(){var a3=this,b3=a3.chart,e2=a3.options,c4=a3.dense=2>a3.closestPointRange*a3.xAxis.transA;c4=a3.borderWidth=r2(e2.borderWidth,c4?0:1);var k2=a3.yAxis,h4=e2.threshold,n3=a3.translatedThreshold=k2.getThreshold(h4),G=r2(e2.minPointLength,5),w2=a3.getColumnMetrics(),E2=w2.width,v2=a3.barW=Math.max(E2,1+2*c4),q=a3.pointXOffset=w2.offset;b3.inverted&&(n3-=.5);e2.pointPadding&&(v2=Math.ceil(v2));f2.translate.apply(a3);a3.points.forEach((function(c5){var g2=r2(c5.yBottom,n3),f3=999+Math.abs(g2),m2=d3(c5.plotY,-f3,k2.len+f3);f3=c5.plotX+q;var y2=v2/2,l2=Math.min(m2,g2);g2=Math.max(m2,g2)-l2;var t2;c5.barX=f3;c5.pointWidth=E2;c5.tooltipPos=b3.inverted?[k2.len+k2.pos-b3.plotLeft-m2,a3.xAxis.len-f3-y2,g2]:[f3+y2,m2+k2.pos-b3.plotTop,g2];m2=h4+(c5.total||c5.y);"percent"===e2.stacking&&(m2=h4+(0>c5.y)?-100:100);m2=k2.toPixels(m2,true);var J=(t2=b3.plotHeight-m2-(b3.plotHeight-n3))?y2*(l2-m2)/t2:0;var w3=t2?y2*(l2+g2-m2)/t2:0;t2=f3-J+y2;J=f3+J+y2;var p2=f3+w3+y2;w3=f3-w3+y2;var A2=l2-G;var F2=l2+g2;0>c5.y&&(A2=l2,F2=l2+g2+G);b3.inverted&&(p2=k2.width-l2,t2=m2-(k2.width-n3),J=y2*(m2-p2)/t2,w3=y2*(m2-(p2-g2))/t2,t2=f3+y2+J,J=t2-2*J,p2=f3-w3+y2,w3=f3+w3+y2,A2=l2,F2=l2+g2-G,0>c5.y&&(F2=l2+g2+G));c5.shapeType="path";c5.shapeArgs={x:t2,y:A2,width:J-t2,height:g2,d:[["M",t2,A2],["L",J,A2],["L",p2,F2],["L",w3,F2],["Z"]]}}))};h3.defaultOptions=n2(b2.defaultOptions,{});return h3}(b2);c2.registerSeriesType("columnpyramid",h2);return h2}));D2(d2,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],(function(){return{color:"#000000",grouping:false,linkedTo:":previous",tooltip:{pointFormat:' {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}}));D2(d2,"Series/ErrorBar/ErrorBarSeries.js",[d2["Series/BoxPlot/BoxPlotSeries.js"],d2["Series/Column/ColumnSeries.js"],d2["Series/ErrorBar/ErrorBarSeriesDefaults.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2,a2,f2){var d3=this&&this.__extends||function(){var a3=function(b3,e2){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,e3){a4.__proto__=e3}||function(a4,e3){for(var b4 in e3)e3.hasOwnProperty(b4)&&(a4[b4]=e3[b4])};return a3(b3,e2)};return function(b3,e2){function c3(){this.constructor=b3}a3(b3,e2);b3.prototype=null===e2?Object.create(e2):(c3.prototype=e2.prototype,new c3)}}(),n2=a2.seriesTypes.arearange,r2=f2.addEvent,q=f2.merge;f2=f2.extend;var F2=function(a3){function f3(){var e2=null!==a3&&a3.apply(this,arguments)||this;e2.data=void 0;e2.options=void 0;e2.points=void 0;return e2}d3(f3,a3);f3.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||c2.prototype.getColumnMetrics.call(this)};f3.prototype.drawDataLabels=function(){var a4=this.pointValKey;n2&&(n2.prototype.drawDataLabels.call(this),this.data.forEach((function(e2){e2.y=e2[a4]})))};f3.prototype.toYData=function(a4){return[a4.low,a4.high]};f3.defaultOptions=q(b2.defaultOptions,h2);return f3}(b2);r2(F2,"afterTranslate",(function(){this.points.forEach((function(a3){a3.plotLow=a3.plotY}))}),{order:0});f2(F2.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:false});a2.registerSeriesType("errorbar",F2);return F2}));D2(d2,"Series/Gauge/GaugePoint.js",[d2["Core/Series/SeriesRegistry.js"]],(function(b2){var c2=this&&this.__extends||function(){var b3=function(a2,c3){b3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a3,b4){a3.__proto__=b4}||function(a3,b4){for(var c4 in b4)b4.hasOwnProperty(c4)&&(a3[c4]=b4[c4])};return b3(a2,c3)};return function(a2,c3){function f2(){this.constructor=a2}b3(a2,c3);a2.prototype=null===c3?Object.create(c3):(f2.prototype=c3.prototype,new f2)}}();return function(b3){function a2(){var a3=null!==b3&&b3.apply(this,arguments)||this;a3.options=void 0;a3.series=void 0;a3.shapeArgs=void 0;return a3}c2(a2,b3);a2.prototype.setState=function(a3){this.state=a3};return a2}(b2.series.prototype.pointClass)}));D2(d2,"Series/Gauge/GaugeSeries.js",[d2["Series/Gauge/GaugePoint.js"],d2["Core/Globals.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,h2,a2){var f2=this&&this.__extends||function(){var a3=function(e3,b3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,e4){a4.__proto__=e4}||function(a4,e4){for(var b4 in e4)e4.hasOwnProperty(b4)&&(a4[b4]=e4[b4])};return a3(e3,b3)};return function(e3,b3){function c3(){this.constructor=e3}a3(e3,b3);e3.prototype=null===b3?Object.create(b3):(c3.prototype=b3.prototype,new c3)}}();c2=c2.noop;var d3=h2.series,n2=h2.seriesTypes.column,r2=a2.clamp,q=a2.isNumber,F2=a2.extend,p2=a2.merge,l2=a2.pick,e2=a2.pInt;a2=function(a3){function b3(){var e3=null!==a3&&a3.apply(this,arguments)||this;e3.data=void 0;e3.points=void 0;e3.options=void 0;e3.yAxis=void 0;return e3}f2(b3,a3);b3.prototype.translate=function(){var a4=this.yAxis,b4=this.options,c3=a4.center;this.generatePoints();this.points.forEach((function(g2){var f3=p2(b4.dial,g2.dial),d4=e2(f3.radius)*c3[2]/200,h3=e2(f3.baseLength)*d4/100,k2=e2(f3.rearLength)*d4/100,m2=f3.baseWidth,x2=f3.topWidth,B=b4.overshoot,y2=a4.startAngleRad+a4.translate(g2.y,void 0,void 0,void 0,true);if(q(B)||false===b4.wrap)B=q(B)?B/180*Math.PI:0,y2=r2(y2,a4.startAngleRad-B,a4.endAngleRad+B);y2=180*y2/Math.PI;g2.shapeType="path";g2.shapeArgs={d:f3.path||[["M",-k2,-m2/2],["L",h3,-m2/2],["L",d4,-x2/2],["L",d4,x2/2],["L",h3,m2/2],["L",-k2,m2/2],["Z"]],translateX:c3[0],translateY:c3[1],rotation:y2};g2.plotX=c3[0];g2.plotY=c3[1]}))};b3.prototype.drawPoints=function(){var a4=this,e3=a4.chart,b4=a4.yAxis.center,c3=a4.pivot,g2=a4.options,f3=g2.pivot,d4=e3.renderer;a4.points.forEach((function(b5){var c4=b5.graphic,f4=b5.shapeArgs,h3=f4.d,k2=p2(g2.dial,b5.dial);c4?(c4.animate(f4),f4.d=h3):b5.graphic=d4[b5.shapeType](f4).attr({rotation:f4.rotation,zIndex:1}).addClass("highcharts-dial").add(a4.group);if(!e3.styledMode)b5.graphic[c4?"animate":"attr"]({stroke:k2.borderColor,"stroke-width":k2.borderWidth,fill:k2.backgroundColor})}));c3?c3.animate({translateX:b4[0],translateY:b4[1]}):f3&&(a4.pivot=d4.circle(0,0,f3.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(b4[0],b4[1]).add(a4.group),e3.styledMode||a4.pivot.attr({fill:f3.backgroundColor,stroke:f3.borderColor,"stroke-width":f3.borderWidth}))};b3.prototype.animate=function(a4){var e3=this;a4||e3.points.forEach((function(a5){var b4=a5.graphic;b4&&(b4.attr({rotation:180*e3.yAxis.startAngleRad/Math.PI}),b4.animate({rotation:a5.shapeArgs.rotation},e3.options.animation))}))};b3.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup);d3.prototype.render.call(this);this.group.clip(this.chart.clipRect)};b3.prototype.setData=function(a4,e3){d3.prototype.setData.call(this,a4,false);this.processData();this.generatePoints();l2(e3,true)&&this.chart.redraw()};b3.prototype.hasData=function(){return!!this.points.length};b3.defaultOptions=p2(d3.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:false,defer:false,enabled:true,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:false});return b3}(d3);F2(a2.prototype,{angular:true,directTouch:true,drawGraph:c2,drawTracker:n2.prototype.drawTracker,fixedBox:true,forceDL:true,noSharedTooltip:true,pointClass:b2,trackerGroups:["group","dataLabelsGroup"]});h2.registerSeriesType("gauge",a2);return a2}));D2(d2,"Series/DragNodesComposition.js",[d2["Core/Utilities.js"]],(function(b2){function c2(){var a3=this,b3,c3,h2;a3.container&&(b3=d3(a3.container,"mousedown",(function(b4){var f2=a3.hoverPoint;f2&&f2.series&&f2.series.hasDraggableNodes&&f2.series.options.draggable&&(f2.series.onMouseDown(f2,b4),c3=d3(a3.container,"mousemove",(function(a4){return f2&&f2.series&&f2.series.onMouseMove(f2,a4)})),h2=d3(a3.container.ownerDocument,"mouseup",(function(a4){c3();h2();return f2&&f2.series&&f2.series.onMouseUp(f2,a4)})))})));d3(a3,"destroy",(function(){b3()}))}var d3=b2.addEvent,a2=[];return{compose:function(b3){-1===a2.indexOf(b3)&&(a2.push(b3),d3(b3,"load",c2))},onMouseDown:function(a3,b3){b3=this.chart.pointer.normalize(b3);a3.fixedPosition={chartX:b3.chartX,chartY:b3.chartY,plotX:a3.plotX,plotY:a3.plotY};a3.inDragMode=true},onMouseMove:function(a3,b3){if(a3.fixedPosition&&a3.inDragMode){var c3=this.chart,f2=c3.pointer.normalize(b3);b3=a3.fixedPosition.chartX-f2.chartX;f2=a3.fixedPosition.chartY-f2.chartY;var d4=c3.graphLayoutsLookup,h2=void 0,w2=void 0;if(5b2?1:0)}}}));D2(d2,"Series/PackedBubble/PackedBubbleIntegration.js",[d2["Core/Globals.js"],d2["Series/Networkgraph/VerletIntegration.js"]],(function(b2,c2){return{barycenter:function(){for(var b3=this.options.gravitationalConstant,a2=this.box,c3=this.nodes,d3,n2,r2=0;r2Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature};c3.prototype.getSystemTemperature=function(){for(var a3=0,b3=0,c4=this.nodes;b3Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&1e-5>a4||0>=this.temperature};l2.prototype.setCircularPositions=function(){for(var a4=this.box,b3=this.nodes,c3=2*Math.PI/(b3.length+1),d4=this.options.initialPositionRadius,f3,h3,l3=0,E2=0;E2d4&&(e2.degree+=.01,e2.neighbours++,c3=a4.repulsiveForce(-d4/Math.sqrt(e2.neighbours),a4.k,e2,g2)),a4.force("repulsive",e2,c3*g2.mass,f3,g2,d4))}))}))};l2.prototype.applyLimitBox=function(b3,c3){if(this.options.splitSeries&&!b3.isParentNode&&this.options.parentNodeLimit){var e2=this.getDistXY(b3,b3.series.parentNode);var d4=b3.series.parentNodeRadius-b3.marker.radius-this.vectorLength(e2);0>d4&&d4>-2*b3.marker.radius&&(b3.plotX-=.01*e2.x,b3.plotY-=.01*e2.y)}a3.prototype.applyLimitBox.call(this,b3,c3)};return l2}(d3);return b2.layouts.packedbubble=a2}));D2(d2,"Series/PackedBubble/PackedBubbleSeries.js",[d2["Core/Color/Color.js"],d2["Series/DragNodesComposition.js"],d2["Series/GraphLayoutComposition.js"],d2["Core/Globals.js"],d2["Series/PackedBubble/PackedBubblePoint.js"],d2["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],d2["Series/PackedBubble/PackedBubbleLayout.js"],d2["Core/Series/SeriesRegistry.js"],d2["Core/Utilities.js"]],(function(b2,c2,d3,a2,f2,w2,n2,r2,q){var h2=this&&this.__extends||function(){var a3=function(b3,c3){a3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a4,b4){a4.__proto__=b4}||function(a4,b4){for(var c4 in b4)b4.hasOwnProperty(c4)&&(a4[c4]=b4[c4])};return a3(b3,c3)};return function(b3,c3){function e3(){this.constructor=b3}a3(b3,c3);b3.prototype=null===c3?Object.create(c3):(e3.prototype=c3.prototype,new e3)}}(),p2=b2.parse;b2=a2.noop;var l2=r2.series.prototype,e2=r2.seriesTypes.bubble,g2=q.addEvent,k2=q.clamp,m2=q.defined,D3=q.extend,G=q.fireEvent,L2=q.isArray,E2=q.isNumber,v2=q.merge,Q=q.pick;q=function(a3){function b3(){var b4=null!==a3&&a3.apply(this,arguments)||this;b4.chart=void 0;b4.data=void 0;b4.layout=void 0;b4.options=void 0;b4.parentNodeMass=0;b4.points=void 0;b4.xData=void 0;return b4}h2(b3,a3);b3.compose=function(a4,b4,d4,f3){e2.compose(a4,b4,d4,f3);c2.compose(b4);n2.compose(b4)};b3.prototype.accumulateAllPoints=function(){for(var a4=this.chart,b4=[],c3,e3=0,d4=a4.series;e3e3&&(e3=a6),a6Math.sqrt(c3*c3+e3*e3)-Math.abs(a4[2]+b4[2])};b3.prototype.createParentNodes=function(){var a4=this,b4=this.pointClass,c3=this.chart,e3=this.parentNodeLayout,d4=this.layout.options,f3,g3=this.parentNode,h3={radius:this.parentNodeRadius,lineColor:this.color,fillColor:p2(this.color).brighten(.4).get()};d4.parentNodeOptions&&(h3=v2(d4.parentNodeOptions.marker||{},h3));this.parentNodeMass=0;this.points.forEach((function(b5){a4.parentNodeMass+=Math.PI*Math.pow(b5.marker.radius,2)}));this.calculateParentRadius();e3.nodes.forEach((function(b5){b5.seriesIndex===a4.index&&(f3=true)}));e3.setArea(0,0,c3.plotWidth,c3.plotHeight);f3||(g3||(g3=(new b4).init(this,{mass:this.parentNodeRadius/2,marker:h3,dataLabels:{inside:false},states:{normal:{marker:h3},hover:{marker:h3}},dataLabelOnNull:true,degree:this.parentNodeRadius,isParentNode:true,seriesIndex:this.index})),this.parentNode&&(g3.plotX=this.parentNode.plotX,g3.plotY=this.parentNode.plotY),this.parentNode=g3,e3.addElementsToCollection([this],e3.series),e3.addElementsToCollection([g3],e3.nodes))};b3.prototype.deferLayout=function(){var a4=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),a4.splitSeries&&this.addSeriesLayout())};b3.prototype.destroy=function(){var a4=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach((function(b4){b4.removeElementFromCollection(a4,b4.series)}),this);this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy()));l2.destroy.apply(this,arguments)};b3.prototype.drawDataLabels=function(){l2.drawDataLabels.call(this,this.points);this.parentNode&&(this.parentNode.formatPrefix="parentNode",l2.drawDataLabels.call(this,[this.parentNode]))};b3.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var a4=this.chart,b4=this.layout.options.parentNodeOptions.marker;b4={fill:b4.fillColor||p2(this.color).brighten(.4).get(),opacity:b4.fillOpacity,stroke:b4.lineColor||this.color,"stroke-width":Q(b4.lineWidth,this.options.lineWidth)};this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,a4.seriesGroup),this.group.attr({zIndex:2}));this.calculateParentRadius();var c3=v2({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},b4);this.parentNode.graphic||(this.graph=this.parentNode.graphic=a4.renderer.symbol(b4.symbol).add(this.parentNodesGroup));this.parentNode.graphic.attr(c3)}};b3.prototype.drawTracker=function(){var b4=this.parentNode;a3.prototype.drawTracker.call(this);if(b4){var c3=L2(b4.dataLabels)?b4.dataLabels:b4.dataLabel?[b4.dataLabel]:[];b4.graphic&&(b4.graphic.element.point=b4);c3.forEach((function(a4){a4.div?a4.div.point=b4:a4.element.point=b4}))}};b3.prototype.getPointRadius=function(){var a4=this,b4=this.chart,c3=this.options,e3=c3.useSimulation,d4=Math.min(b4.plotWidth,b4.plotHeight),f3={},g3=[],h3=b4.allDataPoints||[],m3=h3.length,l3,v3,u2,C2;["minSize","maxSize"].forEach((function(a5){var b5=parseInt(c3[a5],10),e4=/%$/.test(c3[a5]);f3[a5]=e4?d4*b5/100:b5*Math.sqrt(m3)}));b4.minRadius=l3=f3.minSize/Math.sqrt(m3);b4.maxRadius=v3=f3.maxSize/Math.sqrt(m3);var z2=e3?this.calculateZExtremes():[l3,v3];h3.forEach((function(b5,c4){u2=e3?k2(b5[2],z2[0],z2[1]):b5[2];C2=a4.getRadius(z2[0],z2[1],l3,v3,u2);0===C2&&(C2=null);h3[c4][2]=C2;g3.push(C2)}));this.radii=g3};b3.prototype.init=function(){l2.init.apply(this,arguments);this.eventsToUnbind.push(g2(this,"updatedData",(function(){var a4=this;this.chart.series.forEach((function(b4){b4.type===a4.type&&(b4.isDirty=true)}),this)})));return this};b3.prototype.onMouseUp=function(a4){var b4=a4;if(b4.fixedPosition&&!b4.removed){var e3=this.layout,d4=this.parentNodeLayout,f3,g3;d4&&e3.options.dragBetweenSeries&&d4.nodes.forEach((function(a5){b4&&b4.marker&&a5!==b4.series.parentNode&&(f3=e3.getDistXY(b4,a5),g3=e3.vectorLength(f3)-a5.marker.radius-b4.marker.radius,0>g3&&(a5.series.addPoint(v2(b4.options,{plotX:b4.plotX,plotY:b4.plotY}),false),e3.removeElementFromCollection(b4,e3.nodes),b4.remove()))}));c2.onMouseUp.apply(this,arguments)}};b3.prototype.placeBubbles=function(a4){var b4=this.checkOverlap,c3=this.positionBubble,e3=[],d4=1,f3=0,g3=0;var h3=[];var k3;a4=a4.sort((function(a5,b5){return b5[2]-a5[2]}));if(a4.length){e3.push([[0,0,a4[0][2],a4[0][3],a4[0][4]]]);if(1a4[1]-b4[1]?0:Math.PI)+f3+d4*(0>(a4[0]-b4[0])*(a4[1]-b4[1])?1:-1);return[b4[0]+(b4[2]+c3[2])*Math.sin(a4),b4[1]-(b4[2]+c3[2])*Math.cos(a4),c3[2],c3[3],c3[4]]};b3.prototype.render=function(){var a4=[];l2.render.apply(this,arguments);this.options.dataLabels.allowOverlap||(this.data.forEach((function(b4){L2(b4.dataLabels)&&b4.dataLabels.forEach((function(b5){a4.push(b5)}))})),this.options.useSimulation&&this.chart.hideOverlappingLabels(a4))};b3.prototype.resizeRadius=function(){var a4=this.chart,b4=a4.rawPositions,c3=Math.min,e3=Math.max,d4=a4.plotLeft,f3=a4.plotTop,g3=a4.plotHeight,h3=a4.plotWidth,k3,m3;var l3=k3=Number.POSITIVE_INFINITY;var u2=m3=Number.NEGATIVE_INFINITY;for(var C2=0;C2p3.height&&(p3.y+=p3.height,p3.height*=-1);l3.plotY=p3.y=Math.round(p3.y||0)-this.borderWidth%2/2;p3.height=Math.max(Math.round(p3.height||0),.001);l3.yBottom=p3.y+p3.height;p3.height<=c3&&!l3.isNull?(p3.height=c3,p3.y-=e3,l3.plotY=p3.y,l3.minPointLengthOffset=0>l3.y?-e3:e3):(l3.isNull&&(p3.width=0),l3.minPointLengthOffset=0);r3=l3.plotY+(l3.negative?p3.height:0);l3.below&&(l3.plotY+=p3.height);l3.tooltipPos&&(this.chart.inverted?l3.tooltipPos[0]=b4.len-r3:l3.tooltipPos[1]=r3);l3.isInside=this.isPointInside(l3)}}};b3.prototype.processData=function(b4){var c3=this.options,d4=this.yData,f3=c3.data,g3=d4.length,h3=c3.threshold||0,k3,l3,m3,t2,n2;for(n2=l3=k3=m3=t2=0;n2n2.y&&!g3||0n2.indexOf(g3)&&(p3=true);c3[g3]||(c3[g3]={});if(n2=c3[g3])for(var r3=0;r3-Math.PI/2&&z3-Math.PI&&0>z3||z3>Math.PI?-10:10)}return k3}function x2(a4){var b3=this,c4=this.pane.center,e3=this.chart,d5=e3.inverted,f3=a4.reverse,h3=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},C3=h3.innerRadius||"0%",k3=h3.outerRadius||"100%",l3=c4[0]+e3.plotLeft,m4=c4[1]+e3.plotTop,u3=this.height,z3=a4.isCrosshair;h3=c4[3]/2;var n3=a4.value,P;var q2=this.getPosition(n3);var p3=q2.x;q2=q2.y;z3&&(q2=this.getCrosshairPosition(a4,l3,m4),n3=q2[0],p3=q2[1],q2=q2[2]);if(this.isCircular)n3=Math.sqrt(Math.pow(p3-l3,2)+Math.pow(q2-m4,2)),f3="string"===typeof C3?g2(C3,1):C3/n3,e3="string"===typeof k3?g2(k3,1):k3/n3,c4&&h3&&(h3/=n3,f3n3||n3>u3)&&(n3=0),"circle"===this.options.gridLineInterpolation)c4=this.getLinePath(0,n3,h3);else if(c4=[],e3[d5?"yAxis":"xAxis"].forEach((function(a5){a5.pane===b3.pane&&(P=a5)})),P)for(l3=P.tickPositions,P.autoConnect&&(l3=l3.concat([l3[0]])),f3&&(l3=l3.slice().reverse()),n3&&(n3+=h3),m4=0;m4a4?0:a4,this.center[2]/2)-this.offset)}function y2(){var a4=this.center,b3=this.chart,c4=this.options.title;return{x:b3.plotLeft+a4[0]+(c4.x||0),y:b3.plotTop+a4[1]-{high:.5,middle:.25,low:0}[c4.align]*a4[2]+(c4.y||0)}}function H2(a4){a4.beforeSetTickPositions=c3;a4.createLabelCollector=d4;a4.getCrosshairPosition=v2;a4.getLinePath=w2;a4.getOffset=D3;a4.getPlotBandPath=K;a4.getPlotLinePath=x2;a4.getPosition=B;a4.getTitlePosition=y2;a4.postTranslate=u2;a4.setAxisSize=z2;a4.setAxisTranslation=O2;a4.setOptions=R2}function t2(){var a4=this.chart,b3=this.options,c4=this.pane,d5=c4&&c4.options;a4.angular&&this.isXAxis||!c4||!a4.angular&&!a4.polar||(a4=2*Math.PI,c4=(e2(d5.startAngle,0)-90)*Math.PI/180,d5=(e2(d5.endAngle,e2(d5.startAngle,0)+360)-90)*Math.PI/180,this.angleRad=(b3.angle||0)*Math.PI/180,this.startAngleRad=c4,this.endAngleRad=d5,this.offset=b3.offset||0,b3=(c4%a4+a4)%a4,d5=(d5%a4+a4)%a4,b3>Math.PI&&(b3-=a4),d5>Math.PI&&(d5-=a4),this.normalizedStartAngleRad=b3,this.normalizedEndAngleRad=d5)}function J(a4){this.isRadial&&(a4.align=void 0,a4.preventDefault())}function N(){if(this.chart&&this.chart.labelCollectors){var a4=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;0<=a4&&this.chart.labelCollectors.splice(a4,1)}}function U(a4){var c4=this.chart,e3=c4.inverted,d5=c4.angular,f3=c4.polar,g3=this.isXAxis,k3=this.coll,n3=d5&&g3;a4=a4.userOptions.pane||0;a4=this.pane=c4.pane&&c4.pane[a4];var u3;if("colorAxis"===k3)this.isRadial=false;else{if(d5){if(n3?(this.isHidden=true,this.createLabelCollector=m3,this.getOffset=h2,this.render=this.redraw=C2,this.setTitle=this.setCategories=this.setScale=h2):H2(this),u3=!g3)this.defaultPolarOptions=Y}else f3&&(H2(this),this.defaultPolarOptions=(u3=this.horiz)?X:l2("xAxis"===k3?b2.defaultXAxisOptions:b2.defaultYAxisOptions,Z),e3&&"yAxis"===k3&&(this.defaultPolarOptions.stackLabels=b2.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=true));d5||f3?(this.isRadial=true,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&c4.labelCollectors.push(this.labelCollector)):this.isRadial=false;a4&&u3&&(a4.axis=this);this.isCircular=u3}}function A2(){this.isRadial&&this.beforeSetTickPositions()}function M(a4){var b3=this.label;if(b3){var c4=this.axis,d5=b3.getBBox(),f3=c4.options.labels,h3=(c4.translate(this.pos)+c4.startAngleRad+Math.PI/2)/Math.PI*180%360,C3=Math.round(h3),k3=q(f3.y)?0:.3*-d5.height,l3=f3.y,m4=20,u3=f3.align,n3="end",z3=0>C3?C3+360:C3,p3=z3,O3=0,t3=0;if(c4.isRadial){var r3=c4.getPosition(this.pos,c4.center[2]/2+g2(e2(f3.distance,-25),c4.center[2]/2,-c4.center[2]/2));"auto"===f3.rotation?b3.attr({rotation:h3}):q(l3)||(l3=c4.chart.renderer.fontMetrics(b3.styles&&b3.styles.fontSize).b-d5.height/2);q(u3)||(c4.isCircular?(d5.width>c4.len*c4.tickInterval/(c4.max-c4.min)&&(m4=0),u3=h3>m4&&h3<180-m4?"left":h3>180+m4&&h3<360-m4?"right":"center"):u3="center",b3.attr({align:u3}));if("auto"===u3&&2===c4.tickPositions.length&&c4.isCircular){90z3?z3=180-z3:270=z3&&(z3=540-z3);180=p3&&(p3=360-p3);if(c4.pane.options.startAngle===C3||c4.pane.options.startAngle===C3+360||c4.pane.options.startAngle===C3-360)n3="start";u3=-90<=C3&&90>=C3||-360<=C3&&-270>=C3||270<=C3&&360>=C3?"start"===n3?"right":"left":"start"===n3?"left":"right";70p3&&(u3="center");15>z3||180<=z3&&195>z3?O3=.3*d5.height:15<=z3&&35>=z3?O3="start"===n3?0:.75*d5.height:195<=z3&&215>=z3?O3="start"===n3?.75*d5.height:0:35=z3?O3="start"===n3?.25*-d5.height:d5.height:215=z3&&(O3="start"===n3?d5.height:.25*-d5.height);15>p3?t3="start"===n3?.15*-d5.height:.15*d5.height:165=p3&&(t3="start"===n3?.15*d5.height:.15*-d5.height);b3.attr({align:u3});b3.translate(t3,O3+k3)}a4.pos.x=r3.x+(f3.x||0);a4.pos.y=r3.y+(l3||0)}}}function S2(a4){this.axis.getPosition&&F2(a4.pos,this.axis.getPosition(this.pos))}function u2(a4,b3){var c4=this.chart,e3=this.center;a4=this.startAngleRad+a4;return{x:c4.plotLeft+e3[0]+Math.cos(a4)*b3,y:c4.plotTop+e3[1]+Math.sin(a4)*b3}}function C2(){this.isDirty=false}function z2(){this.constructor.prototype.setAxisSize.call(this);if(this.isRadial){this.pane.updateCenter(this);var a4=this.center=this.pane.center.slice();if(this.isCircular)this.sector=this.endAngleRad-this.startAngleRad;else{var b3=this.postTranslate(this.angleRad,a4[3]/2);a4[0]=b3.x-this.chart.plotLeft;a4[1]=b3.y-this.chart.plotTop}this.len=this.width=this.height=(a4[2]-a4[3])*e2(this.sector,1)/2}}function O2(){this.constructor.prototype.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)}function R2(a4){a4=this.options=l2(this.constructor.defaultOptions,this.defaultPolarOptions,f2[this.coll],a4);a4.plotBands||(a4.plotBands=[]);p2(this,"afterSetOptions")}function W2(a4,b3,c4,e3,d5,f3,g3){var h3=this.axis;h3.isRadial?(a4=h3.getPosition(this.pos,h3.center[2]/2+e3),b3=["M",b3,c4,"L",a4.x,a4.y]):b3=a4.call(this,b3,c4,e3,d5,f3,g3);return b3}var T2=[],X={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:false,tickLength:0},Y={labels:{align:"center",x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},Z={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:false,title:{x:4,text:null,rotation:90}};a3.compose=function(a4,b3){-1===T2.indexOf(a4)&&(T2.push(a4),n2(a4,"afterInit",t2),n2(a4,"autoLabelAlign",J),n2(a4,"destroy",N),n2(a4,"init",U),n2(a4,"initialAxisTranslation",A2));-1===T2.indexOf(b3)&&(T2.push(b3),n2(b3,"afterGetLabelPosition",M),n2(b3,"afterGetPosition",S2),k2(b3.prototype,"getMarkPath",W2));return a4}})(m2||(m2={}));return m2}));D2(d2,"Series/PolarComposition.js",[d2["Core/Animation/AnimationUtilities.js"],d2["Core/Globals.js"],d2["Extensions/Pane.js"],d2["Core/Axis/RadialAxis.js"],d2["Core/Utilities.js"]],(function(b2,c2,d3,a2,f2){function h2(a3,b3,c3,e3){var d4=e3?1:0;var f3=0<=b3&&b3<=a3.length-1?b3:0>b3?a3.length-1+b3:0;b3=0>f3-1?a3.length-(1+d4):f3-1;var g3=a3[b3];d4=a3[f3+1>a3.length-1?d4:f3+1];var C2=g3.plotY;var k3=d4.plotX;var l3=d4.plotY;d4=a3[f3].plotX;f3=a3[f3].plotY;g3=(1.5*d4+g3.plotX)/2.5;C2=(1.5*f3+C2)/2.5;k3=(1.5*d4+k3)/2.5;var m3=(1.5*f3+l3)/2.5;l3=Math.sqrt(Math.pow(g3-d4,2)+Math.pow(C2-f3,2));var z2=Math.sqrt(Math.pow(k3-d4,2)+Math.pow(m3-f3,2));g3=Math.atan2(C2-f3,g3-d4);m3=Math.PI/2+(g3+Math.atan2(m3-f3,k3-d4))/2;Math.abs(g3-m3)>Math.PI/2&&(m3-=Math.PI);g3=d4+Math.cos(m3)*l3;C2=f3+Math.sin(m3)*l3;k3=d4+Math.cos(Math.PI+m3)*z2;m3=f3+Math.sin(Math.PI+m3)*z2;d4={rightContX:k3,rightContY:m3,leftContX:g3,leftContY:C2,plotX:d4,plotY:f3};c3&&(d4.prevPointCont=h2(a3,b3,false,e3));return d4}function n2(){(this.pane||[]).forEach((function(a3){a3.render()}))}function r2(a3){var b3=a3.args[0].xAxis,c3=a3.args[0].yAxis;a3=a3.args[0].chart;b3&&c3&&("polygon"===c3.gridLineInterpolation?(b3.startOnTick=true,b3.endOnTick=true):"polygon"===b3.gridLineInterpolation&&a3.inverted&&(c3.startOnTick=true,c3.endOnTick=true))}function q(){var a3=this;this.pane||(this.pane=[]);this.options.pane=V2(this.options.pane);this.options.pane.forEach((function(b3){new d3(b3,a3)}),this)}function D3(a3){var b3=a3.args.marker,c3=this.chart.xAxis[0],d4=this.chart.yAxis[0],e3=this.chart.inverted,f3=e3?d4:c3;c3=e3?c3:d4;if(this.chart.polar){a3.preventDefault();d4=(b3.attr?b3.attr("start"):b3.start)-f3.startAngleRad;e3=b3.attr?b3.attr("r"):b3.r;var g3=(b3.attr?b3.attr("end"):b3.end)-f3.startAngleRad;b3=b3.attr?b3.attr("innerR"):b3.innerR;a3.result.x=d4+f3.pos;a3.result.width=g3-d4;a3.result.y=c3.len+c3.pos-b3;a3.result.height=b3-e3}}function p2(a3){var b3=this.chart;if(b3.polar&&b3.hoverPane&&b3.hoverPane.axis){a3.preventDefault();var c3=b3.hoverPane.center,d4=this.mouseDownX||0,e3=this.mouseDownY||0,f3=a3.args.chartY,g3=a3.args.chartX,h3=2*Math.PI,l3=b3.hoverPane.axis.startAngleRad,m3=b3.hoverPane.axis.endAngleRad,n3=b3.inverted?b3.xAxis[0]:b3.yAxis[0],u2={},q2="arc";u2.x=c3[0]+b3.plotLeft;u2.y=c3[1]+b3.plotTop;if(this.zoomHor){var p3=0=t3&&(t3+=h3);0>=r3&&(r3+=h3);r3m3+(h3-p3)/2&&(r3=t3,t3=0>=l3?l3:0);h3=u2.start=Math.max(t3+l3,l3);t3=u2.end=Math.min(r3+l3,m3);"polygon"===n3.options.gridLineInterpolation&&(r3=b3.hoverPane.axis,p3=h3-r3.startAngleRad+r3.pos,t3-=h3,q2=n3.getPlotLinePath({value:n3.max}),h3=r3.toValue(p3),p3=r3.toValue(p3+t3),h3c3[2]/2&&(f3=c3[2]/2),d4this.xAxis.max?(b3[d4].isNull=true,b3[d4].plotY=NaN):b3[d4].isNull=b3[d4].isValid&&!b3[d4].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(B(this,"afterRender",(function(){if(a3.polar){var b4=this.yAxis.pane.center;if(this.clipCircle)this.clipCircle.animate({x:b4[0],y:b4[1],r:b4[2]/2,innerR:b4[3]/2});else{var d5=a3.renderer,e3=b4[0],f3=b4[1],g3=b4[2]/2,h3=b4[3]/2;b4=U();var k3=d5.createElement("clipPath").attr({id:b4}).add(d5.defs);d5=h3?d5.arc(e3,f3,g3,h3,0,2*Math.PI).add(k3):d5.circle(e3,f3,g3).add(k3);d5.id=b4;d5.clipPath=k3;this.clipCircle=d5}this.group.clip(this.clipCircle);this.setClip=c2.noop}}))))}}function g2(a3){var b3=this.chart,c3=this.xAxis;c3=c3.pane&&c3.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(a3.chartX-(c3&&c3[0]||0)-b3.plotLeft,a3.chartY-(c3&&c3[1]||0)-b3.plotTop)})}function k2(a3,b3,c3,d4){var e3=d4.tickInterval;d4=d4.tickPositions;var f3=H2(d4,(function(a4){return a4>=c3})),g3=H2(K([],d4,true).reverse(),(function(a4){return a4<=b3}));y2(f3)||(f3=d4[d4.length-1]);y2(g3)||(g3=d4[0],f3+=e3,a3[0][0]="L",a3.unshift(a3[a3.length-3]));a3=a3.slice(d4.indexOf(g3),d4.indexOf(f3)+1);a3[0][0]="M";return a3}function m2(a3,b3){return H2(this.pane||[],(function(a4){return a4.options.id===b3}))||a3.call(this,b3)}function N(a3,b3,c3,d4,e3,f3){var g3=this.chart,h3=J(d4.inside,!!this.options.stacking);g3.polar?(a3=b3.rectPlotX/Math.PI*180,g3.inverted?(this.forceDL=g3.isInsidePlot(b3.plotX,b3.plotY),h3&&b3.shapeArgs?(e3=b3.shapeArgs,e3=this.yAxis.postTranslate(((e3.start||0)+(e3.end||0))/2-this.xAxis.startAngleRad,b3.barX+b3.pointWidth/2),e3={x:e3.x-g3.plotLeft,y:e3.y-g3.plotTop}):b3.tooltipPos&&(e3={x:b3.tooltipPos[0],y:b3.tooltipPos[1]}),d4.align=J(d4.align,"center"),d4.verticalAlign=J(d4.verticalAlign,"middle")):(null===d4.align&&(d4.align=20a3?"left":200a3?"right":"center"),null===d4.verticalAlign&&(d4.verticalAlign=45>a3||315a3?"top":"middle")),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,b3,c3,d4,e3,f3),this.isRadialBar&&b3.shapeArgs&&b3.shapeArgs.start===b3.shapeArgs.end?c3.hide():c3.show()):a3.call(this,b3,c3,d4,e3,f3)}function G(a3){var b3=this.options,c3=b3.stacking,d4=this.chart,e3=this.xAxis,g3=this.yAxis,h3=g3.reversed,k3=g3.center,l3=e3.startAngleRad,m3=e3.endAngleRad-l3,n3=0,p3=0,q2=0;this.preventPostTranslate=true;a3.call(this);if(e3.isRadial){a3=this.points;e3=a3.length;var r3=g3.translate(g3.min);var u2=g3.translate(g3.max);b3=b3.threshold||0;d4.inverted&&t2(b3)&&(n3=g3.translate(b3),y2(n3)&&(0>n3?n3=0:n3>m3&&(n3=m3),this.translatedThreshold=n3+l3));for(;e3--;){b3=a3[e3];var v3=b3.barX;var w2=b3.x;var x3=b3.y;b3.shapeType="arc";if(d4.inverted){b3.plotY=g3.translate(x3);c3&&g3.stacking?(x3=g3.stacking.stacks[(0>x3?"-":"")+this.stackKey],this.visible&&x3&&x3[w2]&&!b3.isNull&&(q2=x3[w2].points[this.getStackIndicator(void 0,w2,this.index).key],p3=g3.translate(q2[0]),q2=g3.translate(q2[1]),y2(p3)&&(p3=f2.clamp(p3,0,m3)))):(p3=n3,q2=b3.plotY);p3>q2&&(q2=[p3,p3=q2][0]);if(!h3)if(p3u2)q2=u2;else{if(q2u2)p3=q2=0}else if(q2>r3)q2=r3;else if(p3r3||q2g3.max&&(p3=q2=h3?m3:0);p3+=l3;q2+=l3;k3&&(b3.barX=v3+=k3[3]/2);w2=Math.max(v3,0);x3=Math.max(v3+b3.pointWidth,0);b3.shapeArgs={x:k3&&k3[0],y:k3&&k3[1],r:x3,innerR:w2,start:p3,end:q2};b3.opacity=p3===q2?0:void 0;b3.plotY=(y2(this.translatedThreshold)&&(p3k3[1])}}}function L2(a3,b3){var c3=this;if(this.chart.polar){b3=b3||this.points;for(var d4=0;d4b4&&(b4=h3),0>a3&&(a3=h3));return{x:f3[0],y:f3[1],r:b4,innerR:a3,start:c3,end:d4}};b3.prototype.toXY=function(a3){var b4=this.series,c3=b4.chart,d4=b4.xAxis,e3=b4.yAxis,f3=a3.plotX,g3=c3.inverted,h3=a3.y,k3=a3.plotY,l3=g3?f3:e3.len-k3;g3&&b4&&!b4.isRadialBar&&(a3.plotY=k3=t2(h3)?e3.translate(h3):0);a3.rectPlotX=f3;a3.rectPlotY=k3;e3.center&&(l3+=e3.center[3]/2);t2(k3)&&(e3=g3?e3.postTranslate(k3,l3):d4.postTranslate(f3,l3),a3.plotX=a3.polarPlotX=e3.x-c3.plotLeft,a3.plotY=a3.polarPlotY=e3.y-c3.plotTop);b4.kdByAngle?(b4=(f3/Math.PI*180+d4.pane.options.startAngle)%360,0>b4&&(b4+=360),a3.clientX=b4):a3.clientX=a3.plotX};return b3}();return S2}));D2(d2,"masters/highcharts-more.src.js",[d2["Core/Globals.js"],d2["Core/Series/SeriesRegistry.js"],d2["Series/Bubble/BubbleSeries.js"],d2["Series/PackedBubble/PackedBubbleSeries.js"],d2["Series/PolarComposition.js"]],(function(b2,c2,d3,a2,f2){d3.compose(b2.Axis,b2.Chart,b2.Legend,b2.Series);a2.compose(b2.Axis,b2.Chart,b2.Legend,b2.Series);f2.compose(b2.Axis,b2.Chart,b2.Pointer,b2.Series,b2.Tick,c2.seriesTypes.areasplinerange,c2.seriesTypes.column,c2.seriesTypes.line,c2.seriesTypes.spline)}))}))})(highchartsMore$1);var highchartsMoreExports=highchartsMore$1.exports;const highchartsMore=getDefaultExportFromCjs(highchartsMoreExports);const alignBlockElement=event2=>{const itemToMove=document.querySelector(`#wrapper-circle-chart-${event2.target.renderTo.id} .pb-circle-chart-block`);const chartContainer=document.querySelector(`#${event2.target.renderTo.id}`);if(itemToMove!==null&&chartContainer!==null){itemToMove.style.height=`${event2.target.chartHeight}px`;itemToMove.style.width=`${event2.target.chartWidth}px`;if(chartContainer.firstChild!==null){chartContainer.firstChild.before(itemToMove)}}};const CircleChart=({align:align="center",aria:aria={},rounded:rounded=false,borderColor:borderColor=(rounded?null:""),borderWidth:borderWidth=(rounded?20:null),chartData:chartData,children:children,className:className,colors:colors2=[],customOptions:customOptions={},dark:dark=false,data:data={},dataLabelHtml:dataLabelHtml="
{point.name}
",dataLabels:dataLabels=false,height:height,htmlOptions:htmlOptions={},id:id,innerSize:innerSize="md",legend:legend=false,maxPointSize:maxPointSize=null,minPointSize:minPointSize=null,startAngle:startAngle=null,style:style="pie",title:title,tooltipHtml:tooltipHtml,useHtml:useHtml=false,zMin:zMin=null,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x2=0,y:y2=0,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);highchartsMore(Highcharts$1);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};setupTheme();Highcharts$1.setOptions({tooltip:{headerFormat:null,pointFormat:tooltipHtml?tooltipHtml:'{point.name}: {point.y}',useHTML:useHtml}});const innerSizes={sm:"35%",md:"50%",lg:"85%",none:"0%"};const innerSizeFormat=size=>innerSizes[size];const filteredProps={...props};delete filteredProps.verticalAlign;const[options2,setOptions]=useState({});useEffect((()=>{const formattedChartData=chartData.map((obj=>{obj.y=obj.value;delete obj.value;return obj}));const staticOptions={title:{text:title},chart:{height:height,type:style,events:{render:event2=>alignBlockElement(event2),redraw:event2=>alignBlockElement(event2)}},legend:{align:align,verticalAlign:verticalAlign,layout:layout,x:x2,y:y2},plotOptions:{pie:{colors:colors2.length>0?mapColors(colors2):highchartsTheme.colors,dataLabels:{enabled:dataLabels,connectorShape:"straight",connectorWidth:3,format:dataLabelHtml},showInLegend:legend}},series:[{minPointSize:minPointSize,maxPointSize:maxPointSize,innerSize:borderWidth==20?"100%":innerSizeFormat(innerSize),data:formattedChartData,zMin:zMin,startAngle:startAngle,borderWidth:borderWidth,borderColor:borderColor}],credits:false};setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx$1(Fragment,{children:children?jsxs("div",{id:`wrapper-circle-chart-${id}`,children:[jsx$1(HighchartsReact,{containerProps:{className:classnames("pb_circle_chart",globalProps(filteredProps)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2}),jsx$1("div",{className:"pb-circle-chart-block",children:children})]}):jsx$1(HighchartsReact,{containerProps:{className:classnames("pb_circle_chart",globalProps(filteredProps)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})})};const CircleIconButton=props=>{const{aria:aria={},className:className,dark:dark,data:data={},disabled:disabled,htmlOptions:htmlOptions={},icon:icon,id:id,onClick:onClick=noop$1,type:type,link:link,newWindow:newWindow,variant:variant}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_circle_icon_button_kit"),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx$1(Button,{dark:dark,disabled:disabled,htmlType:type,link:link,newWindow:newWindow,onClick:onClick,text:null,variant:variant,children:jsx$1(Icon,{fixedWidth:true,icon:icon})})})};const showElement=elem=>{elem.style.display="block";const height=elem.scrollHeight+"px";elem.style.height=height;elem.classList.add("is-visible");elem.style.overflow="hidden";window.setTimeout((()=>{elem.style.height="";elem.style.overflow="visible"}),300)};const hideElement=elem=>{elem.style.height=elem.scrollHeight+"px";window.setTimeout((()=>{elem.style.height="0";elem.style.paddingTop="0";elem.style.paddingBottom="0";elem.style.overflow="hidden"}),1);window.setTimeout((()=>{elem.classList.remove("is-visible");elem.style.overflow=""}),300)};const CollapsibleContext=createContext({});const CollapsibleContent=({children:children,className:className,...props})=>{const context=useContext(CollapsibleContext);const contentCSS=buildCss("pb_collapsible_content_kit");const contentSpacing=globalProps(props);const contentRef=useRef(null);useEffect((()=>{if(contentRef.current){if(context.collapsed){hideElement(contentRef.current)}else{showElement(contentRef.current)}}}),[context.collapsed]);return jsx$1("div",{className:classnames(contentCSS,contentSpacing,"toggle-content",className),"data-collapsible-content":"true",ref:contentRef,children:children})};const colorMap={default:"#242B42",light:"#687887",lighter:"#C1CDD6",link:"#0056CF",error:"#FF2229",success:"#00CA74"};const CollapsibleIcon=({collapsed:collapsed,icon:icon,iconSize:iconSize,iconColor:iconColor,onIconClick:onIconClick})=>{const color=colorMap[iconColor];const showIcon=icon2=>{if(typeof icon2==="string"){return[icon2,icon2]}return icon2};const handleIconClick=e2=>{if(onIconClick){e2.stopPropagation();onIconClick()}};return jsx$1(Fragment,{children:collapsed?jsx$1("div",{className:"icon_wrapper",onClick:e2=>handleIconClick(e2),style:{verticalAlign:"middle",color:color},children:jsx$1(Icon,{icon:icon?showIcon(icon)[0]:"chevron-down",size:iconSize})},icon?showIcon(icon)[0]:"chevron-down"):jsx$1("div",{className:"icon_wrapper",onClick:e2=>handleIconClick(e2),style:{verticalAlign:"middle",color:color},children:jsx$1(Icon,{icon:icon?showIcon(icon)[1]:"chevron-up",size:iconSize})},icon?showIcon(icon)[1]:"chevron-up")})};const CollapsibleMain=({children:children,className:className,cursor:cursor2="pointer",...props})=>{const{collapsed:collapsed,toggle:toggle,icon:icon,iconSize:iconSize,iconColor:iconColor,onIconClick:onIconClick,onClick:onClick}=useContext(CollapsibleContext);const mainCSS=buildCss("pb_collapsible_main_kit");const mainSpacing=globalProps(props,{cursor:cursor2});const handleCollapsibleClick=()=>{onClick&&onClick();const disableToggle=onClick&&onClick();if(disableToggle!==true){toggle()}};return jsx$1("div",{className:classnames(mainCSS,mainSpacing,className),children:jsx$1("div",{onClick:handleCollapsibleClick,children:jsxs(Flex,{spacing:"between",vertical:"center",children:[jsx$1(FlexItem,{children:children}),jsx$1(FlexItem,{children:jsx$1(CollapsibleIcon,{collapsed:collapsed,icon:icon,iconColor:iconColor,iconSize:iconSize,onIconClick:onIconClick})})]})})})};const Collapsible=({aria:aria={},className:className,children:children,collapsed:collapsed=true,data:data={},htmlOptions:htmlOptions={},icon:icon,iconColor:iconColor="default",iconSize:iconSize,onIconClick:onIconClick,onClick:onClick,id:id,...props})=>{const[isCollapsed,toggle,setIsCollapsed]=useCollapsible(collapsed);useEffect((()=>{setIsCollapsed(collapsed)}),[collapsed]);if(children.length!==2){throw new Error("Collapsible requires and to function properly.")}const FirstChild=children[0];const Main=FirstChild.type===CollapsibleMain?FirstChild:null;const Content=children[1];const{children:mainChildren=null,...mainProps}=Main?Main.props:{};const{children:contentChildren,...contentProps}=Content.props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_collapsible_kit"),globalProps(props),className);return jsx$1(CollapsibleContext.Provider,{value:{collapsed:isCollapsed,toggle:toggle,icon:icon,iconSize:iconSize,iconColor:iconColor,onIconClick:onIconClick,onClick:onClick},children:jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[Main?jsx$1(CollapsibleMain,{...mainProps,children:mainChildren}):FirstChild,jsx$1(CollapsibleContent,{...contentProps,children:contentChildren})]})})};Collapsible.Main=CollapsibleMain;Collapsible.Content=CollapsibleContent;Collapsible.Icon=CollapsibleIcon;const Title=props=>{if(props.variant);const{aria:aria={},children:children,className:className,color:color,data:data={},htmlOptions:htmlOptions={},id:id,size:size=3,bold:bold=true,tag:tag="h3",text:text,variant:variant=null}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const getBold=bold?"":"thin";const isSizeNumberOrString=typeof size==="number"||typeof size==="string";const buildResponsiveSizeCss=()=>{let css4="";if(!isSizeNumberOrString){Object.entries(size).forEach((sizeObj=>{css4+=`pb_title_kit_${sizeObj[0]}_${sizeObj[1]} `}))}return css4.trim()};const classes=classnames(buildCss("pb_title_kit",isSizeNumberOrString?`size_${size}`:"",variant,color,getBold),globalProps(props),buildResponsiveSizeCss(),className);const Tag=`${tag}`;return jsx$1(Tag,{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text||children})};const SectionSeparator=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,lineStyle:lineStyle="solid",orientation:orientation="horizontal",text:text,dark:dark=false,variant:variant="card"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_section_separator_kit",variant,orientation,lineStyle==="dashed"?lineStyle:""),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:children&&children||text&&jsx$1("span",{children:jsx$1(Caption,{dark:dark,text:text})})})};var lib={exports:{}};var Modal$2={};var propTypes={exports:{}};var ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";var ReactPropTypesSecret_1=ReactPropTypesSecret$1;var ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret===ReactPropTypesSecret){return}var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");err.name="Invariant Violation";throw err}shim.isRequired=shim;function getShim(){return shim}var ReactPropTypes={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};ReactPropTypes.PropTypes=ReactPropTypes;return ReactPropTypes};{propTypes.exports=factoryWithThrowingShims()}var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports);var ModalPortal={exports:{}};var focusManager={};var tabbable={exports:{}};(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});exports.default=findTabbableDescendants; /*! * Adapted from jQuery UI core * * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core/ */var DISPLAY_NONE="none";var DISPLAY_CONTENTS="contents";var tabbableNode=/input|select|textarea|button|object|iframe/;function isNotOverflowing(element,style){return style.getPropertyValue("overflow")!=="visible"||element.scrollWidth<=0&&element.scrollHeight<=0}function hidesContents(element){var zeroSize=element.offsetWidth<=0&&element.offsetHeight<=0;if(zeroSize&&!element.innerHTML)return true;try{var style=window.getComputedStyle(element);var displayValue=style.getPropertyValue("display");return zeroSize?displayValue!==DISPLAY_CONTENTS&&isNotOverflowing(element,style):displayValue===DISPLAY_NONE}catch(exception){console.warn("Failed to inspect element style");return false}}function visible(element){var parentElement=element;var rootNode=element.getRootNode&&element.getRootNode();while(parentElement){if(parentElement===document.body)break;if(rootNode&&parentElement===rootNode)parentElement=rootNode.host.parentNode;if(hidesContents(parentElement))return false;parentElement=parentElement.parentNode}return true}function focusable(element,isTabIndexNotNaN){var nodeName=element.nodeName.toLowerCase();var res=tabbableNode.test(nodeName)&&!element.disabled||(nodeName==="a"?element.href||isTabIndexNotNaN:isTabIndexNotNaN);return res&&visible(element)}function tabbable2(element){var tabIndex=element.getAttribute("tabindex");if(tabIndex===null)tabIndex=void 0;var isTabIndexNaN=isNaN(tabIndex);return(isTabIndexNaN||tabIndex>=0)&&focusable(element,!isTabIndexNaN)}function findTabbableDescendants(element){var descendants=[].slice.call(element.querySelectorAll("*"),0).reduce((function(finished,el){return finished.concat(!el.shadowRoot?[el]:findTabbableDescendants(el.shadowRoot))}),[]);return descendants.filter(tabbable2)}module.exports=exports["default"]})(tabbable,tabbable.exports);var tabbableExports=tabbable.exports;Object.defineProperty(focusManager,"__esModule",{value:true});focusManager.resetState=resetState$4;focusManager.log=log$4;focusManager.handleBlur=handleBlur;focusManager.handleFocus=handleFocus;focusManager.markForFocusLater=markForFocusLater;focusManager.returnFocus=returnFocus;focusManager.popWithoutFocus=popWithoutFocus;focusManager.setupScopedFocus=setupScopedFocus;focusManager.teardownScopedFocus=teardownScopedFocus;var _tabbable=tabbableExports;var _tabbable2=_interopRequireDefault$4(_tabbable);function _interopRequireDefault$4(obj){return obj&&obj.__esModule?obj:{default:obj}}var focusLaterElements=[];var modalElement=null;var needToFocus=false;function resetState$4(){focusLaterElements=[]}function log$4(){}function handleBlur(){needToFocus=true}function handleFocus(){if(needToFocus){needToFocus=false;if(!modalElement){return}setTimeout((function(){if(modalElement.contains(document.activeElement)){return}var el=(0,_tabbable2.default)(modalElement)[0]||modalElement;el.focus()}),0)}}function markForFocusLater(){focusLaterElements.push(document.activeElement)}function returnFocus(){var preventScroll=arguments.length>0&&arguments[0]!==void 0?arguments[0]:false;var toFocus=null;try{if(focusLaterElements.length!==0){toFocus=focusLaterElements.pop();toFocus.focus({preventScroll:preventScroll})}return}catch(e2){console.warn(["You tried to return focus to",toFocus,"but it is not in the DOM anymore"].join(" "))}}function popWithoutFocus(){focusLaterElements.length>0&&focusLaterElements.pop()}function setupScopedFocus(element){modalElement=element;if(window.addEventListener){window.addEventListener("blur",handleBlur,false);document.addEventListener("focus",handleFocus,true)}else{window.attachEvent("onBlur",handleBlur);document.attachEvent("onFocus",handleFocus)}}function teardownScopedFocus(){modalElement=null;if(window.addEventListener){window.removeEventListener("blur",handleBlur);document.removeEventListener("focus",handleFocus)}else{window.detachEvent("onBlur",handleBlur);document.detachEvent("onFocus",handleFocus)}}var scopeTab={exports:{}};(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});exports.default=scopeTab2;var _tabbable3=tabbableExports;var _tabbable22=_interopRequireDefault2(_tabbable3);function _interopRequireDefault2(obj){return obj&&obj.__esModule?obj:{default:obj}}function getActiveElement(){var el=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return el.activeElement.shadowRoot?getActiveElement(el.activeElement.shadowRoot):el.activeElement}function scopeTab2(node2,event2){var tabbable2=(0,_tabbable22.default)(node2);if(!tabbable2.length){event2.preventDefault();return}var target=void 0;var shiftKey=event2.shiftKey;var head=tabbable2[0];var tail=tabbable2[tabbable2.length-1];var activeElement=getActiveElement();if(node2===activeElement){if(!shiftKey)return;target=tail}if(tail===activeElement&&!shiftKey){target=head}if(head===activeElement&&shiftKey){target=tail}if(target){event2.preventDefault();target.focus();return}var checkSafari=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);var isSafariDesktop=checkSafari!=null&&checkSafari[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(!isSafariDesktop)return;var x2=tabbable2.indexOf(activeElement);if(x2>-1){x2+=shiftKey?-1:1}target=tabbable2[x2];if(typeof target==="undefined"){event2.preventDefault();target=shiftKey?tail:head;target.focus();return}event2.preventDefault();target.focus()}module.exports=exports["default"]})(scopeTab,scopeTab.exports);var scopeTabExports=scopeTab.exports;var ariaAppHider$1={};var warning=function(){};var warning_1=warning;const warning$1=getDefaultExportFromCjs(warning_1);var safeHTMLElement={};var exenv={exports:{}}; /*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. */(function(module){(function(){var canUseDOM2=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);var ExecutionEnvironment2={canUseDOM:canUseDOM2,canUseWorkers:typeof Worker!=="undefined",canUseEventListeners:canUseDOM2&&!!(window.addEventListener||window.attachEvent),canUseViewport:canUseDOM2&&!!window.screen};if(module.exports){module.exports=ExecutionEnvironment2}else{window.ExecutionEnvironment=ExecutionEnvironment2}})()})(exenv);var exenvExports=exenv.exports;const ExecutionEnvironment=getDefaultExportFromCjs(exenvExports);Object.defineProperty(safeHTMLElement,"__esModule",{value:true});safeHTMLElement.canUseDOM=safeHTMLElement.SafeNodeList=safeHTMLElement.SafeHTMLCollection=void 0;var _exenv=exenvExports;var _exenv2=_interopRequireDefault$3(_exenv);function _interopRequireDefault$3(obj){return obj&&obj.__esModule?obj:{default:obj}}var EE=_exenv2.default;var SafeHTMLElement=EE.canUseDOM?window.HTMLElement:{};safeHTMLElement.SafeHTMLCollection=EE.canUseDOM?window.HTMLCollection:{};safeHTMLElement.SafeNodeList=EE.canUseDOM?window.NodeList:{};safeHTMLElement.canUseDOM=EE.canUseDOM;safeHTMLElement.default=SafeHTMLElement;Object.defineProperty(ariaAppHider$1,"__esModule",{value:true});ariaAppHider$1.resetState=resetState$3;ariaAppHider$1.log=log$3;ariaAppHider$1.assertNodeList=assertNodeList;ariaAppHider$1.setElement=setElement;ariaAppHider$1.validateElement=validateElement;ariaAppHider$1.hide=hide;ariaAppHider$1.show=show;ariaAppHider$1.documentNotReadyOrSSRTesting=documentNotReadyOrSSRTesting;var _warning=warning_1;var _warning2=_interopRequireDefault$2(_warning);var _safeHTMLElement$1=safeHTMLElement;function _interopRequireDefault$2(obj){return obj&&obj.__esModule?obj:{default:obj}}var globalElement=null;function resetState$3(){if(globalElement){if(globalElement.removeAttribute){globalElement.removeAttribute("aria-hidden")}else if(globalElement.length!=null){globalElement.forEach((function(element){return element.removeAttribute("aria-hidden")}))}else{document.querySelectorAll(globalElement).forEach((function(element){return element.removeAttribute("aria-hidden")}))}}globalElement=null}function log$3(){}function assertNodeList(nodeList,selector){if(!nodeList||!nodeList.length){throw new Error("react-modal: No elements were found for selector "+selector+".")}}function setElement(element){var useElement=element;if(typeof useElement==="string"&&_safeHTMLElement$1.canUseDOM){var el=document.querySelectorAll(useElement);assertNodeList(el,useElement);useElement=el}globalElement=useElement||globalElement;return globalElement}function validateElement(appElement){var el=appElement||globalElement;if(el){return Array.isArray(el)||el instanceof HTMLCollection||el instanceof NodeList?el:[el]}else{(0,_warning2.default)(false,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" "));return[]}}function hide(appElement){var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=void 0;try{for(var _iterator=validateElement(appElement)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var el=_step.value;el.setAttribute("aria-hidden","true")}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}function show(appElement){var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=void 0;try{for(var _iterator2=validateElement(appElement)[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var el=_step2.value;el.removeAttribute("aria-hidden")}}catch(err){_didIteratorError2=true;_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}function documentNotReadyOrSSRTesting(){globalElement=null}var classList={};Object.defineProperty(classList,"__esModule",{value:true});classList.resetState=resetState$2;classList.log=log$2;var htmlClassList={};var docBodyClassList={};function removeClass(at,cls){at.classList.remove(cls)}function resetState$2(){var htmlElement=document.getElementsByTagName("html")[0];for(var cls in htmlClassList){removeClass(htmlElement,htmlClassList[cls])}var body=document.body;for(var _cls in docBodyClassList){removeClass(body,docBodyClassList[_cls])}htmlClassList={};docBodyClassList={}}function log$2(){}var incrementReference=function incrementReference2(poll,className){if(!poll[className]){poll[className]=0}poll[className]+=1;return className};var decrementReference=function decrementReference2(poll,className){if(poll[className]){poll[className]-=1}return className};var trackClass=function trackClass2(classListRef,poll,classes){classes.forEach((function(className){incrementReference(poll,className);classListRef.add(className)}))};var untrackClass=function untrackClass2(classListRef,poll,classes){classes.forEach((function(className){decrementReference(poll,className);poll[className]===0&&classListRef.remove(className)}))};classList.add=function add2(element,classString){return trackClass(element.classList,element.nodeName.toLowerCase()=="html"?htmlClassList:docBodyClassList,classString.split(" "))};classList.remove=function remove2(element,classString){return untrackClass(element.classList,element.nodeName.toLowerCase()=="html"?htmlClassList:docBodyClassList,classString.split(" "))};var portalOpenInstances$1={};Object.defineProperty(portalOpenInstances$1,"__esModule",{value:true});portalOpenInstances$1.log=log$1;portalOpenInstances$1.resetState=resetState$1;function _classCallCheck$2(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var PortalOpenInstances=function PortalOpenInstances2(){var _this=this;_classCallCheck$2(this,PortalOpenInstances2);this.register=function(openInstance){if(_this.openInstances.indexOf(openInstance)!==-1){return}_this.openInstances.push(openInstance);_this.emit("register")};this.deregister=function(openInstance){var index2=_this.openInstances.indexOf(openInstance);if(index2===-1){return}_this.openInstances.splice(index2,1);_this.emit("deregister")};this.subscribe=function(callback){_this.subscribers.push(callback)};this.emit=function(eventType){_this.subscribers.forEach((function(subscriber){return subscriber(eventType,_this.openInstances.slice())}))};this.openInstances=[];this.subscribers=[]};var portalOpenInstances=new PortalOpenInstances;function log$1(){console.log("portalOpenInstances ----------");console.log(portalOpenInstances.openInstances.length);portalOpenInstances.openInstances.forEach((function(p2){return console.log(p2)}));console.log("end portalOpenInstances ----------")}function resetState$1(){portalOpenInstances=new PortalOpenInstances}portalOpenInstances$1.default=portalOpenInstances;var bodyTrap$1={};Object.defineProperty(bodyTrap$1,"__esModule",{value:true});bodyTrap$1.resetState=resetState;bodyTrap$1.log=log;var _portalOpenInstances=portalOpenInstances$1;var _portalOpenInstances2=_interopRequireDefault$1(_portalOpenInstances);function _interopRequireDefault$1(obj){return obj&&obj.__esModule?obj:{default:obj}}var before=void 0,after=void 0,instances=[];function resetState(){var _arr=[before,after];for(var _i=0;_i<_arr.length;_i++){var item=_arr[_i];if(!item)continue;item.parentNode&&item.parentNode.removeChild(item)}before=after=null;instances=[]}function log(){console.log("bodyTrap ----------");console.log(instances.length);var _arr2=[before,after];for(var _i2=0;_i2<_arr2.length;_i2++){var item=_arr2[_i2];var check=item||{};console.log(check.nodeName,check.className,check.id)}console.log("edn bodyTrap ----------")}function focusContent(){if(instances.length===0){return}instances[instances.length-1].focusContent()}function bodyTrap(eventType,openInstances){if(!before&&!after){before=document.createElement("div");before.setAttribute("data-react-modal-body-trap","");before.style.position="absolute";before.style.opacity="0";before.setAttribute("tabindex","0");before.addEventListener("focus",focusContent);after=before.cloneNode();after.addEventListener("focus",focusContent)}instances=openInstances;if(instances.length>0){if(document.body.firstChild!==before){document.body.insertBefore(before,document.body.firstChild)}if(document.body.lastChild!==after){document.body.appendChild(after)}}else{if(before.parentElement){before.parentElement.removeChild(before)}if(after.parentElement){after.parentElement.removeChild(after)}}}_portalOpenInstances2.default.subscribe(bodyTrap);(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});var _extends2=Object.assign||function(target){for(var i=1;i0){ariaHiddenInstances-=1;if(ariaHiddenInstances===0){ariaAppHider2.show(appElement)}}if(_this.props.shouldFocusAfterRender){if(_this.props.shouldReturnFocusAfterClose){focusManager$1.returnFocus(_this.props.preventScroll);focusManager$1.teardownScopedFocus()}else{focusManager$1.popWithoutFocus()}}if(_this.props.onAfterClose){_this.props.onAfterClose()}_portalOpenInstances22.default.deregister(_this)};_this.open=function(){_this.beforeOpen();if(_this.state.afterOpen&&_this.state.beforeClose){clearTimeout(_this.closeTimer);_this.setState({beforeClose:false})}else{if(_this.props.shouldFocusAfterRender){focusManager$1.setupScopedFocus(_this.node);focusManager$1.markForFocusLater()}_this.setState({isOpen:true},(function(){_this.openAnimationFrame=requestAnimationFrame((function(){_this.setState({afterOpen:true});if(_this.props.isOpen&&_this.props.onAfterOpen){_this.props.onAfterOpen({overlayEl:_this.overlay,contentEl:_this.content})}}))}))}};_this.close=function(){if(_this.props.closeTimeoutMS>0){_this.closeWithTimeout()}else{_this.closeWithoutTimeout()}};_this.focusContent=function(){return _this.content&&!_this.contentHasFocus()&&_this.content.focus({preventScroll:true})};_this.closeWithTimeout=function(){var closesAt=Date.now()+_this.props.closeTimeoutMS;_this.setState({beforeClose:true,closesAt:closesAt},(function(){_this.closeTimer=setTimeout(_this.closeWithoutTimeout,_this.state.closesAt-Date.now())}))};_this.closeWithoutTimeout=function(){_this.setState({beforeClose:false,isOpen:false,afterOpen:false,closesAt:null},_this.afterClose)};_this.handleKeyDown=function(event2){if(isTabKey(event2)){(0,_scopeTab2.default)(_this.content,event2)}if(_this.props.shouldCloseOnEsc&&isEscKey(event2)){event2.stopPropagation();_this.requestClose(event2)}};_this.handleOverlayOnClick=function(event2){if(_this.shouldClose===null){_this.shouldClose=true}if(_this.shouldClose&&_this.props.shouldCloseOnOverlayClick){if(_this.ownerHandlesClose()){_this.requestClose(event2)}else{_this.focusContent()}}_this.shouldClose=null};_this.handleContentOnMouseUp=function(){_this.shouldClose=false};_this.handleOverlayOnMouseDown=function(event2){if(!_this.props.shouldCloseOnOverlayClick&&event2.target==_this.overlay){event2.preventDefault()}};_this.handleContentOnClick=function(){_this.shouldClose=false};_this.handleContentOnMouseDown=function(){_this.shouldClose=false};_this.requestClose=function(event2){return _this.ownerHandlesClose()&&_this.props.onRequestClose(event2)};_this.ownerHandlesClose=function(){return _this.props.onRequestClose};_this.shouldBeClosed=function(){return!_this.state.isOpen&&!_this.state.beforeClose};_this.contentHasFocus=function(){return document.activeElement===_this.content||_this.content.contains(document.activeElement)};_this.buildClassName=function(which,additional){var classNames2=(typeof additional==="undefined"?"undefined":_typeof2(additional))==="object"?additional:{base:CLASS_NAMES[which],afterOpen:CLASS_NAMES[which]+"--after-open",beforeClose:CLASS_NAMES[which]+"--before-close"};var className=classNames2.base;if(_this.state.afterOpen){className=className+" "+classNames2.afterOpen}if(_this.state.beforeClose){className=className+" "+classNames2.beforeClose}return typeof additional==="string"&&additional?className+" "+additional:className};_this.attributesFromObject=function(prefix2,items){return Object.keys(items).reduce((function(acc,name2){acc[prefix2+"-"+name2]=items[name2];return acc}),{})};_this.state={afterOpen:false,beforeClose:false};_this.shouldClose=null;_this.moveFromContentToOverlay=null;return _this}_createClass2(ModalPortal22,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.isOpen){this.open()}}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps,prevState){if(this.props.isOpen&&!prevProps.isOpen){this.open()}else if(!this.props.isOpen&&prevProps.isOpen){this.close()}if(this.props.shouldFocusAfterRender&&this.state.isOpen&&!prevState.isOpen){this.focusContent()}}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(this.state.isOpen){this.afterClose()}clearTimeout(this.closeTimer);cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function beforeOpen(){var _props=this.props,appElement=_props.appElement,ariaHideApp=_props.ariaHideApp,htmlOpenClassName=_props.htmlOpenClassName,bodyOpenClassName2=_props.bodyOpenClassName,parentSelector2=_props.parentSelector;var parentDocument=parentSelector2&&parentSelector2().ownerDocument||document;bodyOpenClassName2&&classList$1.add(parentDocument.body,bodyOpenClassName2);htmlOpenClassName&&classList$1.add(parentDocument.getElementsByTagName("html")[0],htmlOpenClassName);if(ariaHideApp){ariaHiddenInstances+=1;ariaAppHider2.hide(appElement)}_portalOpenInstances22.default.register(this)}},{key:"render",value:function render(){var _props2=this.props,id=_props2.id,className=_props2.className,overlayClassName=_props2.overlayClassName,defaultStyles2=_props2.defaultStyles,children=_props2.children;var contentStyles=className?{}:defaultStyles2.content;var overlayStyles=overlayClassName?{}:defaultStyles2.overlay;if(this.shouldBeClosed()){return null}var overlayProps={ref:this.setOverlayRef,className:this.buildClassName("overlay",overlayClassName),style:_extends2({},overlayStyles,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown};var contentProps=_extends2({id:id,ref:this.setContentRef,style:_extends2({},contentStyles,this.props.style.content),className:this.buildClassName("content",className),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",_extends2({modal:true},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId});var contentElement2=this.props.contentElement(contentProps,children);return this.props.overlayElement(overlayProps,contentElement2)}}]);return ModalPortal22}(_react3.Component);ModalPortal2.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}};ModalPortal2.propTypes={isOpen:_propTypes22.default.bool.isRequired,defaultStyles:_propTypes22.default.shape({content:_propTypes22.default.object,overlay:_propTypes22.default.object}),style:_propTypes22.default.shape({content:_propTypes22.default.object,overlay:_propTypes22.default.object}),className:_propTypes22.default.oneOfType([_propTypes22.default.string,_propTypes22.default.object]),overlayClassName:_propTypes22.default.oneOfType([_propTypes22.default.string,_propTypes22.default.object]),parentSelector:_propTypes22.default.func,bodyOpenClassName:_propTypes22.default.string,htmlOpenClassName:_propTypes22.default.string,ariaHideApp:_propTypes22.default.bool,appElement:_propTypes22.default.oneOfType([_propTypes22.default.instanceOf(_safeHTMLElement22.default),_propTypes22.default.instanceOf(_safeHTMLElement3.SafeHTMLCollection),_propTypes22.default.instanceOf(_safeHTMLElement3.SafeNodeList),_propTypes22.default.arrayOf(_propTypes22.default.instanceOf(_safeHTMLElement22.default))]),onAfterOpen:_propTypes22.default.func,onAfterClose:_propTypes22.default.func,onRequestClose:_propTypes22.default.func,closeTimeoutMS:_propTypes22.default.number,shouldFocusAfterRender:_propTypes22.default.bool,shouldCloseOnOverlayClick:_propTypes22.default.bool,shouldReturnFocusAfterClose:_propTypes22.default.bool,preventScroll:_propTypes22.default.bool,role:_propTypes22.default.string,contentLabel:_propTypes22.default.string,aria:_propTypes22.default.object,data:_propTypes22.default.object,children:_propTypes22.default.node,shouldCloseOnEsc:_propTypes22.default.bool,overlayRef:_propTypes22.default.func,contentRef:_propTypes22.default.func,id:_propTypes22.default.string,overlayElement:_propTypes22.default.func,contentElement:_propTypes22.default.func,testId:_propTypes22.default.string};exports.default=ModalPortal2;module.exports=exports["default"]})(ModalPortal,ModalPortal.exports);var ModalPortalExports=ModalPortal.exports;function componentWillMount(){var state=this.constructor.getDerivedStateFromProps(this.props,this.state);if(state!==null&&state!==void 0){this.setState(state)}}function componentWillReceiveProps(nextProps){function updater(prevState){var state=this.constructor.getDerivedStateFromProps(nextProps,prevState);return state!==null&&state!==void 0?state:null}this.setState(updater.bind(this))}function componentWillUpdate(nextProps,nextState){try{var prevProps=this.props;var prevState=this.state;this.props=nextProps;this.state=nextState;this.__reactInternalSnapshotFlag=true;this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(prevProps,prevState)}finally{this.props=prevProps;this.state=prevState}}componentWillMount.__suppressDeprecationWarning=true;componentWillReceiveProps.__suppressDeprecationWarning=true;componentWillUpdate.__suppressDeprecationWarning=true;function polyfill(Component2){var prototype=Component2.prototype;if(!prototype||!prototype.isReactComponent){throw new Error("Can only polyfill class components")}if(typeof Component2.getDerivedStateFromProps!=="function"&&typeof prototype.getSnapshotBeforeUpdate!=="function"){return Component2}var foundWillMountName=null;var foundWillReceivePropsName=null;var foundWillUpdateName=null;if(typeof prototype.componentWillMount==="function"){foundWillMountName="componentWillMount"}else if(typeof prototype.UNSAFE_componentWillMount==="function"){foundWillMountName="UNSAFE_componentWillMount"}if(typeof prototype.componentWillReceiveProps==="function"){foundWillReceivePropsName="componentWillReceiveProps"}else if(typeof prototype.UNSAFE_componentWillReceiveProps==="function"){foundWillReceivePropsName="UNSAFE_componentWillReceiveProps"}if(typeof prototype.componentWillUpdate==="function"){foundWillUpdateName="componentWillUpdate"}else if(typeof prototype.UNSAFE_componentWillUpdate==="function"){foundWillUpdateName="UNSAFE_componentWillUpdate"}if(foundWillMountName!==null||foundWillReceivePropsName!==null||foundWillUpdateName!==null){var componentName=Component2.displayName||Component2.name;var newApiName=typeof Component2.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+componentName+" uses "+newApiName+" but also contains the following legacy lifecycles:"+(foundWillMountName!==null?"\n "+foundWillMountName:"")+(foundWillReceivePropsName!==null?"\n "+foundWillReceivePropsName:"")+(foundWillUpdateName!==null?"\n "+foundWillUpdateName:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if(typeof Component2.getDerivedStateFromProps==="function"){prototype.componentWillMount=componentWillMount;prototype.componentWillReceiveProps=componentWillReceiveProps}if(typeof prototype.getSnapshotBeforeUpdate==="function"){if(typeof prototype.componentDidUpdate!=="function"){throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype")}prototype.componentWillUpdate=componentWillUpdate;var componentDidUpdate=prototype.componentDidUpdate;prototype.componentDidUpdate=function componentDidUpdatePolyfill(prevProps,prevState,maybeSnapshot){var snapshot=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:maybeSnapshot;componentDidUpdate.call(this,prevProps,prevState,snapshot)}}return Component2}const reactLifecyclesCompat_es=Object.freeze(Object.defineProperty({__proto__:null,polyfill:polyfill},Symbol.toStringTag,{value:"Module"}));const require$$6=getAugmentedNamespace(reactLifecyclesCompat_es);Object.defineProperty(Modal$2,"__esModule",{value:true});Modal$2.bodyOpenClassName=Modal$2.portalClassName=void 0;var _extends$1=Object.assign||function(target){for(var i=1;i{const{onClose:onClose}=props;return jsx$1("div",{className:"pb_dialog_close_icon",onClick:onClose,children:jsx$1(Icon,{fixedWidth:true,icon:"times"})})};const DialogContext=React__default.createContext(null);const DialogHeader=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},spacing:spacing2="between",closeable:closeable=true,separator:separator=true}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const api=useContext(DialogContext);const headerCSS=buildCss("dialog_header");const headerSpacing=globalProps(props);return jsxs("div",{className:"dialog_sticky_header",children:[jsxs(Flex,{...ariaProps,...dataProps,...htmlProps,className:classnames(headerCSS,headerSpacing,className),spacing:spacing2,children:[children,closeable&&jsx$1(CloseIcon,{onClose:api.onClose})]}),separator&&jsx$1(SectionSeparator,{})]})};const DialogFooter=props=>{const{children:children,className:className,htmlOptions:htmlOptions={},spacing:spacing2="between",separator:separator=false}=props;const footerCSS=buildCss("dialog_footer");const footerSpacing=globalProps(props);const htmlProps=buildHtmlProps(htmlOptions);return jsxs("div",{...htmlProps,children:[separator&&jsx$1(SectionSeparator,{}),jsx$1("div",{className:"dialog-pseudo-footer"}),jsx$1(Flex,{className:classnames(footerCSS,footerSpacing,className),spacing:spacing2,children:children})]})};const DialogBody=props=>{const{children:children,className:className}=props;const bodyCSS=buildCss("dialog_body");const bodySpacing=globalProps(props);return jsx$1("div",{className:classnames(bodyCSS,bodySpacing,className),children:children})};const Dialog=props=>{const{aria:aria={},cancelButton:cancelButton,confirmButton:confirmButton,className:className,data:data={},htmlOptions:htmlOptions={},id:id,size:size="md",children:children,loading:loading=false,fullHeight:fullHeight=false,opened:opened,onCancel:onCancel,onConfirm:onConfirm,onClose:onClose,placement:placement="center",portalClassName:portalClassName2,shouldCloseOnOverlayClick:shouldCloseOnOverlayClick=true,status:status,text:text,title:title,trigger:trigger}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const dialogClassNames={base:classnames("pb_dialog",buildCss("pb_dialog",size,placement)),afterOpen:"pb_dialog_after_open",beforeClose:"pb_dialog_before_close"};const fullHeightClassNames=()=>{if(!fullHeight)return null;if(size==="xl")return`full_height_center`;return`full_height_${placement}`};const overlayClassNames={base:`pb_dialog_overlay ${fullHeight!==null&&fullHeightClassNames()}`,afterOpen:"pb_dialog_overlay_after_open",beforeClose:"pb_dialog_overlay_before_close"};const classes=classnames(buildCss("pb_dialog_wrapper"),globalProps(props),className);const[triggerOpened,setTriggerOpened]=useState(false),modalIsOpened=trigger?triggerOpened:opened;const api={onClose:trigger?function(){setTriggerOpened(false)}:onClose};if(trigger){const modalTrigger=document.querySelector(trigger);modalTrigger.addEventListener("click",(()=>{setTriggerOpened(true);document.querySelector("#cancel-button").addEventListener("click",(()=>{setTriggerOpened(false)}))}),{once:true})}const sweetAlertStatus={default:{icon:"exclamation-circle",variant:"default",size:"lg"},info:{icon:"info-circle",variant:"default",size:"lg"},caution:{icon:"exclamation-triangle",variant:"yellow",size:"lg"},delete:{icon:"trash-alt",variant:"red",size:"lg"},error:{icon:"times-circle",variant:"red",size:"lg"},success:{icon:"check-circle",variant:"green",size:"lg"}};return jsx$1(DialogContext.Provider,{value:api,children:jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:jsx$1(Modal,{ariaHideApp:false,className:dialogClassNames,closeTimeoutMS:200,contentLabel:"Minimal Modal Example",id:id,isOpen:modalIsOpened,onRequestClose:onClose,overlayClassName:overlayClassNames,portalClassName:portalClassName2,shouldCloseOnOverlayClick:shouldCloseOnOverlayClick,children:jsxs(Fragment,{children:[title&&!status?jsx$1(Dialog.Header,{children:title}):null,!status&&text?jsx$1(Dialog.Body,{children:text}):null,status&&jsx$1(Dialog.Body,{className:"dialog_status_text_align",padding:"md",children:jsxs(Flex,{align:"center",orientation:"column",children:[jsx$1(IconCircle,{icon:sweetAlertStatus[status].icon,size:sweetAlertStatus[status].size,variant:sweetAlertStatus[status].variant}),jsx$1(Title,{marginTop:"sm",size:3,children:title}),jsx$1(Body$1,{marginTop:"xs",text:text})]})}),cancelButton&&confirmButton?jsxs(Dialog.Footer,{children:[jsx$1(Button,{htmlType:"button",loading:loading,onClick:onConfirm,variant:"primary",children:confirmButton}),jsx$1(Button,{htmlType:"button",id:"cancel-button",onClick:onCancel,variant:"link",children:cancelButton})]}):null,children]})})})})};Dialog.Header=DialogHeader;Dialog.Body=DialogBody;Dialog.Footer=DialogFooter;const normalizeCharacters=widths=>widths.map((width=>parseInt(width.toString().replace(/[^0-9.]/gi,""))));const barValues=(normalizedValues,colors2)=>{const arrSum=value=>value.reduce(((a2,b2)=>a2+b2),0);const widthSum=arrSum(normalizedValues);return normalizedValues.map(((value,i)=>jsx$1("div",{className:classnames("pb_distribution_width",colors2[i]?`color_${colors2[i]}`:""),style:{width:`${value*100/widthSum}%`}},i)))};const DistributionBar=props=>{const{htmlOptions:htmlOptions={},size:size="lg",widths:widths=[1],colors:colors2=[]}=props;const normalizedValues=normalizeCharacters(widths);const htmlProps=buildHtmlProps(htmlOptions);return jsx$1("div",{className:classnames(`pb_distribution_bar_${size}`,globalProps(props)),...htmlProps,children:barValues(normalizedValues,colors2)})};const TextInput=(props,ref)=>{const{addOn:addOn={icon:null,alignment:"right",border:true},aria:aria={},className:className,dark:dark=false,data:data={},disabled:disabled,error:error,htmlOptions:htmlOptions={},id:id,inline:inline=false,name:name2,label:label,onChange:onChange2=()=>{},placeholder:placeholder,required:required,type:type="text",value:value="",children:children=null}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const filteredProps=Object.assign({},props);if(filteredProps.marginBottom===void 0){filteredProps.marginBottom="sm"}const{alignment:alignment,border:border,icon:icon}=addOn;const addOnAlignment=alignment==="left"?"left":"right";const borderToChange=addOnAlignment==="left"?"right":"left";const borderToggle=border===false?"off":"on";const borderCss=`border_${borderToChange}_${borderToggle}`;const shouldShowAddOn=icon!==null;const addOnCss=shouldShowAddOn?"text_input_wrapper_add_on":"";const addOnDarkModeCardCss=shouldShowAddOn&&dark?"add-on-card-dark":"";const css4=classnames(["pb_text_input_kit",inline?"inline":"",error?"error":"",globalProps(filteredProps),className]);const addOnIcon=jsx$1(Icon,{className:"add-on-icon",dark:dark,fixedWidth:false,icon:icon},void 0);const childInput=children?children.type==="input":void 0;const textInput=childInput?React__default.cloneElement(children,{className:"text_input"}):createElement("input",Object.assign({},domSafeProps(props),{className:"text_input",disabled:disabled,id:id,key:id,name:name2,onChange:onChange2,placeholder:placeholder,ref:ref,required:required,type:type,value:value}));const addOnInput=jsx$1(React__default.Fragment,{children:jsxs(Flex,Object.assign({className:`add-on-${addOnAlignment} ${borderCss}`,vertical:"center"},{children:[addOnAlignment=="left"&&jsxs(Fragment,{children:[jsx$1(Card,Object.assign({className:`${addOnDarkModeCardCss} add-on-card card-left-aligned`,dark:dark},{children:addOnIcon}),void 0),textInput]},void 0),addOnAlignment!="left"&&jsxs(Fragment,{children:[textInput,jsx$1(Card,Object.assign({className:`${addOnDarkModeCardCss} add-on-card card-right-aligned`,dark:dark},{children:addOnIcon}),void 0)]},void 0)]}),void 0)},void 0);const render=(()=>{if(children&&!childInput)return children;if(shouldShowAddOn)return addOnInput;return textInput})();return jsxs("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:css4},{children:[label&&jsx$1(Caption,{className:"pb_text_input_kit_label",text:label},void 0),jsxs("div",Object.assign({className:`${addOnCss} text_input_wrapper`},{children:[render,error&&jsx$1(Body$1,{status:"negative",text:error,variant:null},void 0)]}),void 0)]}),void 0)};const TextInput$1=forwardRef(TextInput);var ManagerReferenceNodeContext=React.createContext();var ManagerReferenceNodeSetterContext=React.createContext();function Manager(_ref3){var children=_ref3.children;var _React$useState=React.useState(null),referenceNode=_React$useState[0],setReferenceNode=_React$useState[1];var hasUnmounted=React.useRef(false);React.useEffect((function(){return function(){hasUnmounted.current=true}}),[]);var handleSetReferenceNode=React.useCallback((function(node2){if(!hasUnmounted.current){setReferenceNode(node2)}}),[]);return React.createElement(ManagerReferenceNodeContext.Provider,{value:referenceNode},React.createElement(ManagerReferenceNodeSetterContext.Provider,{value:handleSetReferenceNode},children))}var unwrapArray=function unwrapArray2(arg){return Array.isArray(arg)?arg[0]:arg};var safeInvoke=function safeInvoke2(fn){if(typeof fn==="function"){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}return fn.apply(void 0,args)}};var setRef=function setRef2(ref,node2){if(typeof ref==="function"){return safeInvoke(ref,node2)}else if(ref!=null){ref.current=node2}};var fromEntries=function fromEntries2(entries){return entries.reduce((function(acc,_ref3){var key=_ref3[0],value=_ref3[1];acc[key]=value;return acc}),{})};var useIsomorphicLayoutEffect=typeof window!=="undefined"&&window.document&&window.document.createElement?React.useLayoutEffect:React.useEffect;var hasElementType=typeof Element!=="undefined";var hasMap=typeof Map==="function";var hasSet=typeof Set==="function";var hasArrayBuffer=typeof ArrayBuffer==="function"&&!!ArrayBuffer.isView;function equal(a2,b2){if(a2===b2)return true;if(a2&&b2&&typeof a2=="object"&&typeof b2=="object"){if(a2.constructor!==b2.constructor)return false;var length2,i,keys;if(Array.isArray(a2)){length2=a2.length;if(length2!=b2.length)return false;for(i=length2;i--!==0;)if(!equal(a2[i],b2[i]))return false;return true}var it;if(hasMap&&a2 instanceof Map&&b2 instanceof Map){if(a2.size!==b2.size)return false;it=a2.entries();while(!(i=it.next()).done)if(!b2.has(i.value[0]))return false;it=a2.entries();while(!(i=it.next()).done)if(!equal(i.value[1],b2.get(i.value[0])))return false;return true}if(hasSet&&a2 instanceof Set&&b2 instanceof Set){if(a2.size!==b2.size)return false;it=a2.entries();while(!(i=it.next()).done)if(!b2.has(i.value[0]))return false;return true}if(hasArrayBuffer&&ArrayBuffer.isView(a2)&&ArrayBuffer.isView(b2)){length2=a2.length;if(length2!=b2.length)return false;for(i=length2;i--!==0;)if(a2[i]!==b2[i])return false;return true}if(a2.constructor===RegExp)return a2.source===b2.source&&a2.flags===b2.flags;if(a2.valueOf!==Object.prototype.valueOf)return a2.valueOf()===b2.valueOf();if(a2.toString!==Object.prototype.toString)return a2.toString()===b2.toString();keys=Object.keys(a2);length2=keys.length;if(length2!==Object.keys(b2).length)return false;for(i=length2;i--!==0;)if(!Object.prototype.hasOwnProperty.call(b2,keys[i]))return false;if(hasElementType&&a2 instanceof Element)return false;for(i=length2;i--!==0;){if((keys[i]==="_owner"||keys[i]==="__v"||keys[i]==="__o")&&a2.$$typeof){continue}if(!equal(a2[keys[i]],b2[keys[i]]))return false}return true}return a2!==a2&&b2!==b2}var reactFastCompare=function isEqual(a2,b2){try{return equal(a2,b2)}catch(error){if((error.message||"").match(/stack|recursion/i)){console.warn("react-fast-compare cannot handle circular refs");return false}throw error}};const isEqual$1=getDefaultExportFromCjs(reactFastCompare);var EMPTY_MODIFIERS$1=[];var usePopper=function usePopper2(referenceElement,popperElement,options2){if(options2===void 0){options2={}}var prevOptions=React.useRef(null);var optionsWithDefaults={onFirstUpdate:options2.onFirstUpdate,placement:options2.placement||"bottom",strategy:options2.strategy||"absolute",modifiers:options2.modifiers||EMPTY_MODIFIERS$1};var _React$useState=React.useState({styles:{popper:{position:optionsWithDefaults.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),state=_React$useState[0],setState=_React$useState[1];var updateStateModifier=React.useMemo((function(){return{name:"updateState",enabled:true,phase:"write",fn:function fn(_ref3){var state2=_ref3.state;var elements=Object.keys(state2.elements);ReactDOM.flushSync((function(){setState({styles:fromEntries(elements.map((function(element){return[element,state2.styles[element]||{}]}))),attributes:fromEntries(elements.map((function(element){return[element,state2.attributes[element]]})))})}))},requires:["computeStyles"]}}),[]);var popperOptions=React.useMemo((function(){var newOptions={onFirstUpdate:optionsWithDefaults.onFirstUpdate,placement:optionsWithDefaults.placement,strategy:optionsWithDefaults.strategy,modifiers:[].concat(optionsWithDefaults.modifiers,[updateStateModifier,{name:"applyStyles",enabled:false}])};if(isEqual$1(prevOptions.current,newOptions)){return prevOptions.current||newOptions}else{prevOptions.current=newOptions;return newOptions}}),[optionsWithDefaults.onFirstUpdate,optionsWithDefaults.placement,optionsWithDefaults.strategy,optionsWithDefaults.modifiers,updateStateModifier]);var popperInstanceRef=React.useRef();useIsomorphicLayoutEffect((function(){if(popperInstanceRef.current){popperInstanceRef.current.setOptions(popperOptions)}}),[popperOptions]);useIsomorphicLayoutEffect((function(){if(referenceElement==null||popperElement==null){return}var createPopper$1=options2.createPopper||createPopper;var popperInstance=createPopper$1(referenceElement,popperElement,popperOptions);popperInstanceRef.current=popperInstance;return function(){popperInstance.destroy();popperInstanceRef.current=null}}),[referenceElement,popperElement,options2.createPopper]);return{state:popperInstanceRef.current?popperInstanceRef.current.state:null,styles:state.styles,attributes:state.attributes,update:popperInstanceRef.current?popperInstanceRef.current.update:null,forceUpdate:popperInstanceRef.current?popperInstanceRef.current.forceUpdate:null}};var NOOP=function NOOP2(){return void 0};var NOOP_PROMISE=function NOOP_PROMISE2(){return Promise.resolve(null)};var EMPTY_MODIFIERS=[];function Popper(_ref3){var _ref$placement=_ref3.placement,placement=_ref$placement===void 0?"bottom":_ref$placement,_ref$strategy=_ref3.strategy,strategy=_ref$strategy===void 0?"absolute":_ref$strategy,_ref$modifiers=_ref3.modifiers,modifiers=_ref$modifiers===void 0?EMPTY_MODIFIERS:_ref$modifiers,referenceElement=_ref3.referenceElement,onFirstUpdate=_ref3.onFirstUpdate,innerRef=_ref3.innerRef,children=_ref3.children;var referenceNode=React.useContext(ManagerReferenceNodeContext);var _React$useState=React.useState(null),popperElement=_React$useState[0],setPopperElement=_React$useState[1];var _React$useState2=React.useState(null),arrowElement=_React$useState2[0],setArrowElement=_React$useState2[1];React.useEffect((function(){setRef(innerRef,popperElement)}),[innerRef,popperElement]);var options2=React.useMemo((function(){return{placement:placement,strategy:strategy,onFirstUpdate:onFirstUpdate,modifiers:[].concat(modifiers,[{name:"arrow",enabled:arrowElement!=null,options:{element:arrowElement}}])}}),[placement,strategy,onFirstUpdate,modifiers,arrowElement]);var _usePopper=usePopper(referenceElement||referenceNode,popperElement,options2),state=_usePopper.state,styles=_usePopper.styles,forceUpdate=_usePopper.forceUpdate,update=_usePopper.update;var childrenProps=React.useMemo((function(){return{ref:setPopperElement,style:styles.popper,placement:state?state.placement:placement,hasPopperEscaped:state&&state.modifiersData.hide?state.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:state&&state.modifiersData.hide?state.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:styles.arrow,ref:setArrowElement},forceUpdate:forceUpdate||NOOP,update:update||NOOP_PROMISE}}),[setPopperElement,setArrowElement,placement,state,styles,update,forceUpdate]);return unwrapArray(children)(childrenProps)}function Reference(_ref3){var children=_ref3.children,innerRef=_ref3.innerRef;var setReferenceNode=React.useContext(ManagerReferenceNodeSetterContext);var refHandler=React.useCallback((function(node2){setRef(innerRef,node2);safeInvoke(setReferenceNode,node2)}),[innerRef,setReferenceNode]);React.useEffect((function(){return function(){return setRef(innerRef,null)}}),[]);React.useEffect((function(){warning$1(Boolean(setReferenceNode),"`Reference` should not be used outside of a `Manager` component.")}),[setReferenceNode]);return unwrapArray(children)({ref:refHandler})}const POPOVER_MODIFIERS={offset:{enabled:true,name:"offset",options:{offset:[0,20]},phase:"main"}};const popoverModifiers=({modifiers:modifiers,offset:offset})=>offset?modifiers.concat([POPOVER_MODIFIERS.offset]):modifiers;const Popover=props=>{const{aria:aria={},className:className,children:children,data:data={},htmlOptions:htmlOptions={},id:id,modifiers:modifiers,offset:offset,placement:placement,referenceElement:referenceElement,zIndex:zIndex,maxHeight:maxHeight,maxWidth:maxWidth,minHeight:minHeight,minWidth:minWidth,targetId:targetId}=props;const popoverSpacing=globalProps(props).includes("dark")||!globalProps(props)?"p_sm":globalProps(props);const overflowHandling=maxHeight||maxWidth?"overflow_handling":"";const zIndexStyle=zIndex?{zIndex:zIndex}:{};const widthHeightStyles=()=>Object.assign({},maxHeight?{maxHeight:maxHeight}:{},maxWidth?{maxWidth:maxWidth}:{},minHeight?{minHeight:minHeight}:{},minWidth?{minWidth:minWidth}:{});const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_popover_kit"),globalProps(props),className);return jsx$1(Popper,{modifiers:popoverModifiers({modifiers:modifiers,offset:offset}),placement:placement,referenceElement:referenceElement,children:({placement:placement2,ref:ref,style:style})=>jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,"data-placement":placement2,id:id,ref:ref,style:Object.assign({},style,zIndexStyle),children:jsx$1("div",{className:classnames(`${buildCss("pb_popover_tooltip")} show`),children:jsx$1("div",{className:classnames("pb_popover_body",popoverSpacing,overflowHandling),id:targetId,style:widthHeightStyles(),children:children})})})})};const PbReactPopover=props=>{const[targetId]=useState(uniqueId("id-"));const{className:className,children:children,modifiers:modifiers=[],offset:offset=false,placement:placement="left",portal:portal="body",reference:reference,referenceElement:referenceElement,show:show2=false,usePortal:usePortal=true,zIndex:zIndex,maxHeight:maxHeight,maxWidth:maxWidth,minHeight:minHeight,minWidth:minWidth}=props;useEffect((()=>{const{closeOnClick:closeOnClick,shouldClosePopover:shouldClosePopover=noop$1}=props;if(!closeOnClick)return;document.body.addEventListener("click",(e2=>{const target=e2.target;const targetIsPopover=target.closest("#"+targetId)!==null;const targetIsReference=target.closest("#reference-"+targetId)!==null;const shouldClose=()=>{setTimeout((()=>shouldClosePopover(true)),0)};switch(closeOnClick){case"outside":if(!targetIsPopover&&!targetIsReference)shouldClose();break;case"inside":if(targetIsPopover)shouldClose();break;case"any":if(targetIsPopover||!targetIsPopover&&!targetIsReference)shouldClose();break}}),{capture:true})}),[]);const popoverComponent=jsx$1(Popover,{className:className,maxHeight:maxHeight,maxWidth:maxWidth,minHeight:minHeight,minWidth:minWidth,modifiers:modifiers,offset:offset,placement:placement,referenceElement:referenceElement,targetId:targetId,zIndex:zIndex,...props,children:children});return jsx$1(Manager,{children:jsxs(Fragment,{children:[reference&&!referenceElement&&jsx$1(Reference,{children:({ref:ref})=>jsx$1("span",{className:"pb_popover_reference_wrapper",id:"reference-"+targetId,ref:ref,children:jsx$1(reference.type,{...reference.props})})}),show2&&(usePortal?jsx$1(Fragment,{children:ReactDOM__default.createPortal(popoverComponent,document.querySelector(portal))}):{popoverComponent:popoverComponent})]})})};const FormPill=props=>{const{className:className,htmlOptions:htmlOptions={},id:id,text:text,name:name2,onClick:onClick=()=>void 0,avatarUrl:avatarUrl,closeProps:closeProps={},size:size="",textTransform:textTransform="none",color:color="primary",data:data={},tabIndex:tabIndex,icon:icon=""}=props;const iconClass=icon?"_icon":"";const css4=classnames(`pb_form_pill_kit_${color}${iconClass}`,globalProps(props),className,size==="small"?"small":null,textTransform);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsxs("div",{className:css4,id:id,tabIndex:tabIndex,...dataProps,...htmlProps,children:[(name2&&!icon&&!text||name2&&!icon&&text)&&jsxs(Fragment,{children:[jsx$1(Avatar,{imageUrl:avatarUrl,name:name2,size:"xs",status:null}),jsx$1(Title,{className:"pb_form_pill_text",size:4,text:name2})]}),(name2&&icon&&!text||name2&&icon&&text)&&jsxs(Fragment,{children:[jsx$1(Avatar,{imageUrl:avatarUrl,name:name2,size:"xs",status:null}),jsx$1(Title,{className:"pb_form_pill_text",size:4,text:name2}),jsx$1(Icon,{className:"pb_form_pill_icon",icon:icon})]}),!name2&&icon&&text&&jsxs(Fragment,{children:[jsx$1(Icon,{className:"pb_form_pill_icon",icon:icon}),jsx$1(Title,{className:"pb_form_pill_tag",size:4,text:text})]}),!name2&&!icon&&text&&jsx$1(Title,{className:"pb_form_pill_tag",size:4,text:text}),jsx$1("div",{className:"pb_form_pill_close",onClick:onClick,...closeProps,children:jsx$1(Icon,{fixedWidth:true,icon:"times"})})]})};var solidGauge$1={exports:{}};(function(module){(function(a2){module.exports?(a2["default"]=a2,module.exports=a2):a2("undefined"!==typeof Highcharts?Highcharts:void 0)})((function(a2){function b2(a3,h2,g2,f2){a3.hasOwnProperty(h2)||(a3[h2]=f2.apply(null,g2),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:h2,module:a3[h2]}})))}a2=a2?a2._modules:{};b2(a2,"Core/Axis/SolidGaugeAxis.js",[a2["Core/Color/Color.js"],a2["Core/Utilities.js"]],(function(a3,h2){var g2=a3.parse,f2=h2.extend,c2=h2.merge,b3;(function(a4){var b4={initDataClasses:function(a5){var r2=this.chart,w2,b5=0,d2=this.options;this.dataClasses=w2=[];a5.dataClasses.forEach((function(k2,l2){k2=c2(k2);w2.push(k2);k2.color||("category"===d2.dataClassColor?(l2=r2.options.colors,k2.color=l2[b5++],b5===l2.length&&(b5=0)):k2.color=g2(d2.minColor).tweenTo(g2(d2.maxColor),l2/(a5.dataClasses.length-1)))}))},initStops:function(a5){this.stops=a5.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach((function(a6){a6.color=g2(a6[1])}))},toColor:function(a5,c3){var b5=this.stops,g3=this.dataClasses,d2;if(g3)for(d2=g3.length;d2--;){var k2=g3[d2];var l2=k2.from;b5=k2.to;if(("undefined"===typeof l2||a5>=l2)&&("undefined"===typeof b5||a5<=b5)){var f3=k2.color;c3&&(c3.dataClass=d2);break}}else{this.logarithmic&&(a5=this.val2lin(a5));a5=1-(this.max-a5)/(this.max-this.min);for(d2=b5.length;d2--&&!(a5>b5[d2][0]););l2=b5[d2]||b5[d2+1];b5=b5[d2+1]||l2;a5=1-(b5[0]-a5)/(b5[0]-l2[0]||1);f3=l2.color.tweenTo(b5.color,a5)}return f3}};a4.init=function(a5){f2(a5,b4)}})(b3||(b3={}));return b3}));b2(a2,"Series/SolidGauge/SolidGaugeSeriesDefaults.js",[],(function(){return{colorByPoint:true,dataLabels:{y:0}}}));b2(a2,"Series/SolidGauge/SolidGaugeComposition.js",[a2["Core/Renderer/SVG/SVGRenderer.js"]],(function(a3){a3=a3.prototype;var b3=a3.symbols.arc;a3.symbols.arc=function(a4,f2,c2,h2,e2){a4=b3(a4,f2,c2,h2,e2);e2&&e2.rounded&&(c2=((e2.r||c2)-(e2.innerR||0))/2,f2=a4[0],e2=a4[2],"M"===f2[0]&&"L"===e2[0]&&(f2=["A",c2,c2,0,1,1,f2[1],f2[2]],a4[2]=["A",c2,c2,0,1,1,e2[1],e2[2]],a4[4]=f2));return a4}}));b2(a2,"Series/SolidGauge/SolidGaugeSeries.js",[a2["Core/Legend/LegendSymbol.js"],a2["Core/Series/SeriesRegistry.js"],a2["Core/Axis/SolidGaugeAxis.js"],a2["Series/SolidGauge/SolidGaugeSeriesDefaults.js"],a2["Core/Utilities.js"]],(function(a3,b3,g2,f2,c2){var h2=this&&this.__extends||function(){var a4=function(b4,n2){a4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a5,b5){a5.__proto__=b5}||function(a5,b5){for(var n3 in b5)b5.hasOwnProperty(n3)&&(a5[n3]=b5[n3])};return a4(b4,n2)};return function(b4,n2){function c3(){this.constructor=b4}a4(b4,n2);b4.prototype=null===n2?Object.create(n2):(c3.prototype=n2.prototype,new c3)}}(),e2=b3.seriesTypes,x2=e2.gauge,r2=e2.pie.prototype,y2=c2.clamp,w2=c2.extend,z2=c2.isNumber,d2=c2.merge,k2=c2.pick,l2=c2.pInt;c2=function(a4){function b4(){var b5=null!==a4&&a4.apply(this,arguments)||this;b5.data=void 0;b5.points=void 0;b5.options=void 0;b5.axis=void 0;b5.yAxis=void 0;b5.startAngleRad=void 0;b5.thresholdAngleRad=void 0;return b5}h2(b4,a4);b4.prototype.translate=function(){var a5=this.yAxis;g2.init(a5);!a5.dataClasses&&a5.options.dataClasses&&a5.initDataClasses(a5.options);a5.initStops(a5.options);x2.prototype.translate.call(this)};b4.prototype.drawPoints=function(){var a5=this.yAxis,b5=a5.center,c3=this.options,f3=this.chart.renderer,d3=c3.overshoot;d3=z2(d3)?d3/180*Math.PI:0;var e3;z2(c3.threshold)&&(e3=a5.startAngleRad+a5.translate(c3.threshold,void 0,void 0,void 0,true));this.thresholdAngleRad=k2(e3,a5.startAngleRad);e3=0;for(var h3=this.points;e32*Math.PI&&(p2=u2+2*Math.PI);m2.shapeArgs=t2={x:b5[0],y:b5[1],r:g3,innerR:t2,start:u2,end:p2,rounded:c3.rounded};m2.startR=g3;q?(g3=t2.d,q.animate(w2({fill:v2},t2)),g3&&(t2.d=g3)):m2.graphic=q=f3.arc(t2).attr({fill:v2,"sweep-flag":0}).add(this.group);this.chart.styledMode||("square"!==c3.linecap&&q.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),q.attr({stroke:c3.borderColor||"none","stroke-width":c3.borderWidth||0}));q&&q.addClass(m2.getClassName(),true)}}};b4.prototype.animate=function(a5){a5||(this.startAngleRad=this.thresholdAngleRad,r2.animate.call(this,a5))};b4.defaultOptions=d2(x2.defaultOptions,f2);return b4}(x2);w2(c2.prototype,{drawLegendSymbol:a3.drawRectangle});b3.registerSeriesType("solidgauge",c2);return c2}));b2(a2,"masters/modules/solid-gauge.src.js",[],(function(){}))}))})(solidGauge$1);var solidGaugeExports=solidGauge$1.exports;const solidGauge=getDefaultExportFromCjs(solidGaugeExports);const Gauge=({aria:aria={},chartData:chartData,customOptions:customOptions={},dark:dark=false,data:data={},disableAnimation:disableAnimation=false,fullCircle:fullCircle=false,height:height=null,htmlOptions:htmlOptions={},id:id,max:max2=100,min:min2=0,prefix:prefix2="",showLabels:showLabels=false,style:style="solidgauge",suffix:suffix="",title:title="",tooltipHtml:tooltipHtml='{point.name}: {point.y}',colors:colors2=[],minorTickInterval:minorTickInterval=null,circumference:circumference=(fullCircle?[0,360]:[-100,100]),...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);highchartsMore(Highcharts$1);solidGauge(Highcharts$1);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};setupTheme();Highcharts$1.setOptions({tooltip:{pointFormat:tooltipHtml,followPointer:true}});const css4=buildCss({pb_gauge_kit:true});const[options2,setOptions]=useState({});useEffect((()=>{const formattedChartData=chartData.map((obj=>{obj.y=obj.value;delete obj.value;return obj}));const staticOptions={chart:{events:{load(){setTimeout(this.reflow.bind(this),0)}},type:style,height:height},title:{text:title},yAxis:{min:min2,max:max2,lineWidth:0,tickWidth:0,minorTickInterval:minorTickInterval,tickAmount:2,tickPositions:[min2,max2],labels:{y:26,enabled:showLabels}},credits:false,series:[{data:formattedChartData}],pane:{center:["50%","50%"],size:"90%",startAngle:circumference[0],endAngle:circumference[1],background:{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane"}},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{animation:!disableAnimation},solidgauge:{borderColor:colors2!==void 0&&colors2.length===1?mapColors(colors2).join():highchartsTheme.colors[0],borderWidth:20,radius:90,innerRadius:"90%",dataLabels:{borderWidth:0,color:colors$1.text_lt_default,enabled:true,format:`${prefix2}{y:,f}${suffix}`,style:{fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_2},y:-26}}}};setOptions(merge(staticOptions,customOptions));if(document.querySelector(".prefix")){document.querySelectorAll(".prefix").forEach((prefix22=>{prefix22.setAttribute("y","28")}));document.querySelectorAll(".fix").forEach((fix=>fix.setAttribute("y","38")))}}),[chartData]);return jsx$1(HighchartsReact,{containerProps:{className:classnames(css4,globalProps(props)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})};const Legend=props=>{const{aria:aria={},className:className,color:color="data_1",dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,prefixText:prefixText,text:text}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const customColor=color.charAt(0)==="#"&&color;const customColorStyle={background:customColor};const bodyCss=classnames(buildCss("pb_legend_kit",customColor?"":color),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:bodyCss,id:id,children:jsxs(Body$1,{color:dark?"lighter":"light",children:[jsx$1("span",{className:`${customColor?"pb_legend_indicator_circle_custom":"pb_legend_indicator_circle"}`,style:customColorStyle}),prefixText&&jsx$1(Title,{dark:dark,size:4,tag:"span",text:` ${prefixText} `}),` ${text} `]})})};const LineGraph=({aria:aria={},data:data={},align:align="center",className:className="pb_bar_graph",customOptions:customOptions={},dark:dark=false,gradient:gradient=false,type:type="line",htmlOptions:htmlOptions={},id:id,legend:legend=false,toggleLegendClick:toggleLegendClick=true,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x2=0,y:y2=0,axisTitle:axisTitle,xAxisCategories:xAxisCategories,yAxisMin:yAxisMin,yAxisMax:yAxisMax,chartData:chartData,pointStart:pointStart,subTitle:subTitle,title:title,height:height,colors:colors2=[],...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},subtitle:{text:subTitle},yAxis:{min:yAxisMin,max:yAxisMax,title:{text:axisTitle}},xAxis:{categories:xAxisCategories},legend:{enabled:legend,align:align,verticalAlign:verticalAlign,layout:layout,x:x2,y:y2},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{pointStart:pointStart,events:{},dataLabels:{enabled:false}}},series:chartData,credits:false};if(!toggleLegendClick){staticOptions.plotOptions.series.events={legendItemClick:()=>false}}const filteredProps={...props};delete filteredProps.verticalAlign;const[options2,setOptions]=useState({});useEffect((()=>{setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx$1(HighchartsReact,{containerProps:{className:classnames(globalProps(filteredProps),className),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})};const Radio=({aria:aria={},alignment:alignment,children:children,className:className,dark:dark=false,data:data={},disabled:disabled=false,error:error=false,htmlOptions:htmlOptions={},id:id,label:label,name:name2="radio_name",text:text="Radio Text",value:value="radio_text",onChange:onChange2=()=>{},...props},ref)=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_radio_kit",alignment),dark?"dark":null,error?"error":null,globalProps(props),className);const displayRadio=props2=>{if(children)return children;else return jsx$1("input",{disabled:disabled,id:id,name:name2,onChange:onChange2,ref:ref,text:text,type:"radio",value:value,...props2})};return jsxs("label",{...ariaProps,...dataProps,...htmlProps,className:classes,htmlFor:id,children:[jsx$1(Fragment,{children:displayRadio(props)}),jsx$1("span",{className:"pb_radio_button"}),jsx$1(Body$1,{dark:dark,status:error?"negative":null,text:label,variant:null})]})};const Radio$1=forwardRef(Radio);const filterFormattedDataById=(formattedData,id)=>{const matched=[];const recursiveSearch=(data,term)=>{for(const item of data){if(item.id.toLowerCase()===term.toLowerCase()){matched.push(item);return}if(item.children&&item.children.length>0){recursiveSearch(item.children,term)}}};recursiveSearch(formattedData,id);return matched};const findByFilter=(formattedData,searchTerm)=>{const matchedItems=[];const recursiveSearch=(data,term)=>{for(const item of data){if(item.label.toLowerCase().includes(term.toLowerCase())){matchedItems.push(item)}if(item.children){recursiveSearch(item.children,term)}}};recursiveSearch(formattedData,searchTerm);return matchedItems};const getAncestorsOfUnchecked=(data,item)=>{if(item.parent_id){const ancestor=filterFormattedDataById(data,item.parent_id);ancestor[0].checked=false;ancestor[0].parent_id&&getAncestorsOfUnchecked(data,ancestor[0])}return data};const getCheckedItems=data=>{const checkedItems=[];if(!Array.isArray(data)){return}data.forEach((item=>{if(item.checked){checkedItems.push(item)}if(item.children&&item.children.length>0){const childCheckedItems=getCheckedItems(item.children);checkedItems.push(...childCheckedItems)}}));return checkedItems};const getDefaultCheckedItems=treeData=>{const checkedDefault=[];const traverseTree=items=>{if(!Array.isArray(items)){return}items.forEach((item=>{if(item.checked){if(item.children&&item.children.length>0){const uncheckedChildren=item.children.filter((child=>!child.checked));if(uncheckedChildren.length===0){checkedDefault.push(item);return}}else{const parent=items.find((parentItem=>parentItem.id===item.parentId));if(!parent||!parent.checked){checkedDefault.push(item)}}}if(item.children&&item.children.length>0){traverseTree(item.children)}}))};traverseTree(treeData);return checkedDefault};const recursiveCheckParent=(item,data)=>{if(item.parent_id!==null){const parent=filterFormattedDataById(data,item.parent_id);const allChildrenChecked=parent[0].children.every((child=>child.checked));if(allChildrenChecked){parent[0].checked=true;const parentHasParent=parent[0].parent_id!==null;if(parentHasParent){recursiveCheckParent(parent[0],data)}}}return data};const getExpandedItems=(treeData,selectedIds)=>{const expandedItems=[];const traverse=(items,ancestors=[])=>{for(let i=0;iancestor.id)))}if(Array.isArray(item.children)){const hasCheckedChildren=item.children.some((child=>child.checked));if(hasCheckedChildren){expandedItems.push(...itemAncestors.map((ancestor=>ancestor.id)))}traverse(item.children,itemAncestors)}}};traverse(treeData);return expandedItems};const MultiLevelSelect=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,inputDisplay:inputDisplay="pills",inputName:inputName,name:name2,returnAllSelected:returnAllSelected=false,treeData:treeData,onSelect:onSelect=()=>null,selectedIds:selectedIds,variant:variant="multi"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_multi_level_select"),globalProps(props),className);const dropdownRef=useRef(null);const[isDropdownClosed,setIsDropdownClosed]=useState(true);const[filterItem,setFilterItem]=useState("");const[formattedData,setFormattedData]=useState([]);const[returnedArray,setReturnedArray]=useState([]);const[defaultReturn,setDefaultReturn]=useState([]);const initialExpandedItems=getExpandedItems(treeData,selectedIds);const[expanded,setExpanded]=useState(initialExpandedItems);const[singleSelectedItem,setSingleSelectedItem]=useState({id:[],value:"",item:[]});const modifyRecursive=(tree,check)=>{if(!Array.isArray(tree)){return}return tree.map((item=>{item.checked=check;item.children=modifyRecursive(item.children,check);return item}))};const addCheckedAndParentProperty=(treeData2,selectedIds2,parent_id=null,depth=0)=>{if(!Array.isArray(treeData2)){return}return treeData2.map((item=>{const newItem={...item,checked:Boolean(selectedIds2&&selectedIds2.length&&selectedIds2.includes(item.id)),parent_id:parent_id,depth:depth};if(newItem.children&&newItem.children.length>0){const children=item.checked&&!returnAllSelected?modifyRecursive(item.children,true):item.children;newItem.children=addCheckedAndParentProperty(children,selectedIds2,newItem.id,depth+1)}return newItem}))};useEffect((()=>{const formattedData2=addCheckedAndParentProperty(treeData,variant==="single"?[selectedIds==null?void 0:selectedIds[0]]:selectedIds);setFormattedData(formattedData2);if(variant==="single"){if((selectedIds==null?void 0:selectedIds.length)===0||!(selectedIds==null?void 0:selectedIds.length)){setSingleSelectedItem({id:[],value:"",item:[]})}else{if((selectedIds==null?void 0:selectedIds.length)!==0&&!singleSelectedItem.value){const selectedItem=filterFormattedDataById(formattedData2,selectedIds[0]);if(!selectedItem.length){setSingleSelectedItem({id:[],value:"",item:[]})}else{const{id:id2,value:value}=selectedItem[0];setSingleSelectedItem({id:[id2],value:value,item:selectedItem})}}}}}),[treeData,selectedIds]);useEffect((()=>{if(returnAllSelected){setReturnedArray(getCheckedItems(formattedData))}else if(variant==="single"){setDefaultReturn(singleSelectedItem.item)}else{setDefaultReturn(getDefaultCheckedItems(formattedData))}}),[formattedData]);useEffect((()=>{const handleClickOutside=event2=>{if(dropdownRef.current&&!dropdownRef.current.contains(event2.target)){setIsDropdownClosed(true)}};window.addEventListener("click",handleClickOutside);return()=>{window.removeEventListener("click",handleClickOutside)}}),[]);const modifyValue=(id2,tree,check)=>{if(!Array.isArray(tree)){return}return tree.map((item=>{if(item.id!=id2)item.children=modifyValue(id2,item.children,check);else{item.checked=check;if(variant==="single"){item.children=modifyRecursive(item.children,!check)}else{item.children=modifyRecursive(item.children,check)}}return item}))};const checkItem=item=>{const tree=cloneDeep(formattedData);if(returnAllSelected){return modifyValue(item.id,tree,true)}else{const checkedTree=modifyValue(item.id,tree,true);return recursiveCheckParent(item,checkedTree)}};const unCheckItem=item=>{const tree=cloneDeep(formattedData);if(returnAllSelected){return modifyValue(item.id,tree,false)}else{const uncheckedTree=modifyValue(item.id,tree,false);return getAncestorsOfUnchecked(uncheckedTree,item)}};const changeItem=(item,check)=>{const tree=check?checkItem(item):unCheckItem(item);setFormattedData(tree);return tree};const handlePillClose=(event2,clickedItem)=>{event2.stopPropagation();const updatedTree=changeItem(clickedItem,false);if(returnAllSelected){onSelect(getCheckedItems(updatedTree))}else{onSelect(getDefaultCheckedItems(updatedTree))}};const handleInputWrapperClick=e2=>{e2.stopPropagation();if(e2.target.id==="multiselect_input"||e2.target.classList.contains("pb_form_pill_tag")){return}setIsDropdownClosed(!isDropdownClosed)};const handledropdownItemClick=(e2,check)=>{const clickedItem=e2.target.parentNode.id;setFilterItem("");const filtered=filterFormattedDataById(formattedData,clickedItem);const updatedTree=changeItem(filtered[0],check);if(returnAllSelected){onSelect(getCheckedItems(updatedTree))}else{onSelect(getDefaultCheckedItems(updatedTree))}};const handleRadioButtonClick=e2=>{const{id:id2,value:inputText}=e2.target;const selectedItemID=id2.match(/^[^-]*/)[0];const treeWithNoSelections=modifyRecursive(formattedData,false);const treeWithSelectedItem=modifyValue(selectedItemID,treeWithNoSelections,true);const selectedItem=filterFormattedDataById(treeWithSelectedItem,selectedItemID);setFormattedData(treeWithSelectedItem);setSingleSelectedItem({id:[selectedItemID],value:inputText,item:selectedItem});setFilterItem("");setIsDropdownClosed(true);onSelect(selectedItem)};const handleRadioInputChange=inputText=>{modifyRecursive(formattedData,false);setDefaultReturn([]);setSingleSelectedItem({id:[],value:inputText,item:[]});setFilterItem(inputText)};const isTreeRowExpanded=item=>expanded.indexOf(item.id)>-1;const handleToggleClick=(id2,event2)=>{event2.stopPropagation();const clickedItem=filterFormattedDataById(formattedData,id2);if(clickedItem){let expandedArray=[...expanded];const itemExpanded=isTreeRowExpanded(clickedItem[0]);if(itemExpanded)expandedArray=expandedArray.filter((i=>i!=clickedItem[0].id));else expandedArray.push(clickedItem[0].id);setExpanded(expandedArray)}};const itemsSelectedLength=()=>{let items;if(returnAllSelected&&returnedArray&&returnedArray.length){items=returnedArray.length}else if(!returnAllSelected&&defaultReturn&&defaultReturn.length){items=defaultReturn.length}return items};const renderNestedOptions=items=>jsx$1("ul",{children:Array.isArray(items)&&items.map((item=>jsx$1("div",{children:jsxs("li",{className:"dropdown_item","data-name":item.id,children:[jsxs("div",{className:"dropdown_item_checkbox_row",children:[!item.parent_id&&!item.children?null:jsx$1("div",{children:jsx$1(CircleIconButton,{className:item.children&&item.children.length>0?"":"toggle_icon",icon:isTreeRowExpanded(item)?"chevron-down":"chevron-right",onClick:event2=>handleToggleClick(item.id,event2),variant:"link"})},isTreeRowExpanded(item)?"chevron-down":"chevron-right"),variant==="single"?item.hideRadio?jsx$1(Body$1,{children:item.label}):jsx$1(Radio$1,{checked:item.checked,id:`${item.id}-${item.label}`,label:item.label,name:inputName,onChange:e2=>handleRadioButtonClick(e2),padding:item.children?"none":"xs",type:"radio",value:item.label}):jsx$1(Checkbox,{id:item.id,text:item.label,children:jsx$1("input",{checked:item.checked,name:item.label,onChange:e2=>{handledropdownItemClick(e2,!item.checked)},type:"checkbox",value:item.label})})]}),isTreeRowExpanded(item)&&item.children&&item.children.length>0&&(variant==="single"||!filterItem)&&jsx$1("div",{children:renderNestedOptions(item.children)})]})},item.id)))});return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs("div",{className:"wrapper",ref:dropdownRef,children:[jsxs("div",{className:"input_wrapper",onClick:handleInputWrapperClick,children:[jsxs("div",{className:"input_inner_container",children:[variant==="single"&&defaultReturn.length!==0?defaultReturn.map((selectedItem=>jsx$1("input",{name:`${name2}[]`,type:"hidden",value:selectedItem.id},selectedItem.id))):null,variant!=="single"&&jsxs(Fragment,{children:[returnAllSelected&&returnedArray.length!==0?returnedArray.map((item=>jsx$1("input",{name:`${name2}[]`,type:"hidden",value:item.id},item.id))):null,returnAllSelected&&returnedArray.length!==0&&inputDisplay==="pills"?returnedArray.map(((item,index2)=>jsx$1(FormPill,{onClick:event2=>handlePillClose(event2,item),size:"small",text:item.label},index2))):null,!returnAllSelected&&defaultReturn.length!==0&&inputDisplay==="pills"?defaultReturn.map(((item,index2)=>jsx$1(FormPill,{onClick:event2=>handlePillClose(event2,item),size:"small",text:item.label},index2))):null,returnAllSelected&&returnedArray.length!==0&&inputDisplay==="pills"&&jsx$1("br",{}),!returnAllSelected&&defaultReturn.length!==0&&inputDisplay==="pills"&&jsx$1("br",{})]}),jsx$1("input",{id:"multiselect_input",onChange:e2=>{variant==="single"?handleRadioInputChange(e2.target.value):setFilterItem(e2.target.value)},onClick:()=>setIsDropdownClosed(false),placeholder:inputDisplay==="none"&&itemsSelectedLength()?`${itemsSelectedLength()} ${itemsSelectedLength()===1?"item":"items"} selected`:"Start typing...",value:singleSelectedItem.value||filterItem})]}),isDropdownClosed?jsx$1("div",{children:jsx$1(Icon,{icon:"chevron-down",size:"xs"})},"chevron-down"):jsx$1("div",{children:jsx$1(Icon,{icon:"chevron-up",size:"xs"})},"chevron-up")]}),jsx$1("div",{className:`dropdown_menu ${isDropdownClosed?"close":"open"}`,children:renderNestedOptions(filterItem?findByFilter(formattedData,filterItem):formattedData)})]})})};const Nav=props=>{const{aria:aria={},borderless:borderless=false,children:children,className:className,data:data={},dark:dark=false,highlight:highlight=true,htmlOptions:htmlOptions={},id:id,link:link="#",onClick:onClick,orientation:orientation="vertical",title:title="",variant:variant="normal",itemSpacing:itemSpacing}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const cardCss=classnames(buildCss("pb_nav_list",variant,orientation,{highlight:highlight,borderless:borderless}),globalProps(props),className);const childrenWithProps=React__default.Children.map(children,(child=>{if(React__default.isValidElement(child)){const childProps={orientation:orientation,variant:variant,itemSpacing:itemSpacing};return React__default.cloneElement(child,childProps)}return child}));return jsxs("nav",{...ariaProps,...dataProps,...htmlProps,className:cardCss,id:id,children:[title&&jsx$1("div",{className:"pb_nav_list_title",children:jsx$1("a",{className:"pb_nav_list_item_link_text",href:link,onClick:onClick,children:jsx$1(Caption,{dark:dark,size:"md",text:`${title}`})})}),jsx$1("div",{className:"pb_nav_wrapper",children:childrenWithProps})]})};const NavItem=props=>{const fontWeightDefault=(orientation2,variant2)=>orientation2==="horizontal"&&variant2==="subtle"?"regular":orientation2==="horizontal"&&variant2==="normal"?"bold":"regular";const{active:active=false,highlighted_border:highlighted_border=true,aria:aria={},orientation:orientation,variant:variant,fontWeight:fontWeight=fontWeightDefault(orientation,variant),children:children,className:className,collapsible:collapsible,data:data={},dark:dark=false,fontSize:fontSize="normal",htmlOptions:htmlOptions={},iconLeft:iconLeft,iconRight:iconRight,onIconRightClick:onIconRightClick,onIconLeftClick:onIconLeftClick,id:id,imageUrl:imageUrl,link:link,onClick:onClick,target:target="_self",text:text="",collapsibleTrail:collapsibleTrail,collapsed:collapsed,itemSpacing:itemSpacing,margin:margin,marginBottom:marginBottom,marginTop:marginTop,marginRight:marginRight,marginLeft:marginLeft,marginX:marginX,marginY:marginY}=props;const spacingMarginProps={margin:margin,marginBottom:marginBottom,marginTop:marginTop,marginRight:marginRight,marginLeft:marginLeft,marginX:marginX,marginY:marginY};const filterItemSpacing=obj=>{const filteredPadding2={};const filteredMargin2={};for(const key in obj){if(key.startsWith("padding")){filteredPadding2[key]=obj[key]}else if(key.startsWith("margin")){filteredMargin2[key]=obj[key]}}return{filteredPadding:filteredPadding2,filteredMargin:filteredMargin2}};const{filteredPadding:filteredPadding,filteredMargin:filteredMargin}=filterItemSpacing(itemSpacing);const finalItemSpacing={...filteredMargin||{},...Object.entries(spacingMarginProps).reduce(((acc,[prop,value])=>{if(value){acc[prop]=value}return acc}),{})};const filteredProps={...props};filteredProps==null?true:delete filteredProps.margin;filteredProps==null?true:delete filteredProps.marginX;filteredProps==null?true:delete filteredProps.marginY;filteredProps==null?true:delete filteredProps.marginBottom;filteredProps==null?true:delete filteredProps.marginTop;filteredProps==null?true:delete filteredProps.marginRight;filteredProps==null?true:delete filteredProps.marginLeft;const Tag=link?"a":"div";const activeClass=active===true?"active":"";const highlightedBorderClass=active===true&&highlighted_border===false?"highlighted_border_none":"";const collapsibleTrailClass=collapsible&&collapsibleTrail?"collapsible_trail":"";const fontSizeMapping={small:"font_size_small",normal:"font_size_normal"};const fontWeightMapping={bold:"font_bold",bolder:"font_bolder",regular:"font_regular"};const fontSizeClass=fontSizeMapping[fontSize];const fontWeightClass=fontWeightMapping[fontWeight];const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const tagClasses=classnames(collapsible?"pb_nav_list_item_link_collapsible":"pb_nav_list_item_link");const classes=classnames(buildCss("pb_nav_list_kit_item",activeClass,highlightedBorderClass),collapsible?buildCss("pb_collapsible_nav_item",activeClass,highlightedBorderClass):"",fontSizeClass,fontWeightClass,tagClasses,collapsible?globalProps(filteredProps,{...filteredPadding}):globalProps(props,{...itemSpacing}),className);const handleIconClick=e2=>{if(onIconLeftClick){e2.stopPropagation();onIconLeftClick()}};const childrenWithProps=React__default.Children.map(children,(child=>{if(React__default.isValidElement(child)){const childProps={itemSpacing:itemSpacing};return React__default.cloneElement(child,childProps)}return child}));const collapsibleClasses=buildCss("collapsible_nav_wrapper",activeClass,highlightedBorderClass,collapsibleTrailClass);return jsx$1(Fragment,{children:collapsible?jsx$1(Fragment,{children:jsxs(Collapsible,{className:collapsibleClasses,collapsed:collapsed,icon:iconRight&&iconRight,iconSize:"xs",id:id,onClick:onClick,onIconClick:onIconRightClick,children:[jsx$1(Collapsible.Main,{className:globalProps({...finalItemSpacing}),dark:dark,children:jsxs(Tag,{...ariaProps,...dataProps,...htmlProps,className:classes,href:link,id:id,target:target,children:[imageUrl&&jsx$1("div",{className:"pb_nav_list_item_icon_section_collapsible",onClick:e2=>handleIconClick(e2),children:jsx$1(Image,{className:"pb_nav_img_wrapper",url:imageUrl})},imageUrl),iconLeft&&jsx$1("div",{className:"pb_nav_list_item_icon_section_collapsible",onClick:e2=>handleIconClick(e2),children:jsx$1(Icon,{className:"pb_nav_list_item_icon_left_collapsible",fixedWidth:true,icon:iconLeft})},iconLeft),jsx$1("span",{className:"pb_nav_list_item_text_collapsible",children:text})]})}),jsx$1(Collapsible.Content,{children:childrenWithProps})]})}):jsxs(Tag,{...ariaProps,...dataProps,...htmlProps,className:classes,href:link,id:id,onClick:onClick,target:target,children:[imageUrl&&jsx$1("div",{className:"pb_nav_list_item_icon_section",children:jsx$1(Image,{className:"pb_nav_img_wrapper",url:imageUrl})},imageUrl),iconLeft&&jsx$1("div",{className:"pb_nav_list_item_icon_section",children:jsx$1(Icon,{className:"pb_nav_list_item_icon_left",fixedWidth:true,icon:iconLeft})},iconLeft),jsx$1("span",{className:"pb_nav_list_item_text",children:text||children}),iconRight&&jsx$1("div",{className:"pb_nav_list_item_icon_section",children:jsx$1(Icon,{className:"pb_nav_list_item_icon_right",fixedWidth:true,icon:iconRight})},iconRight)]})})};const Passphrase=props=>{const{aria:aria={},className:className,confirmation:confirmation=false,data:data={},dark:dark=false,htmlOptions:htmlOptions={},id:id,inputProps:inputProps={},label:label=(confirmation?"Confirm Passphrase":"Passphrase"),onChange:onChange2=()=>void 0,showTipsBelow:showTipsBelow="always",tips:tips=[],uncontrolled:uncontrolled=false,value:value=""}=props;const[uncontrolledValue,setUncontrolledValue]=useState("");const[showPopover,setShowPopover]=useState(false);const[showPassphrase,setShowPassphrase]=useState(false);const handleChange=useCallback((e2=>uncontrolled?setUncontrolledValue(e2.target.value):onChange2(e2)),[uncontrolled,onChange2]);const displayValue=useMemo((()=>uncontrolled?uncontrolledValue:value),[value,uncontrolledValue,uncontrolled]);const toggleShowPopover=()=>setShowPopover(!showPopover);const handleShouldClosePopover=shouldClosePopover=>{setShowPopover(!shouldClosePopover)};const toggleShowPassphrase=e2=>{e2.preventDefault();setShowPassphrase(!showPassphrase)};const tipClass=classnames("passphrase-popover",showTipsBelow==="always"?null:`show-below-${showTipsBelow}`);const ariaProps=buildAriaProps(aria);const classes=classnames(buildCss("pb_passphrase"),globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const popoverReference=jsx$1(CircleIconButton,{className:tipClass,dark:dark,icon:"info-circle",onClick:toggleShowPopover,variant:"link"});return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs("label",{children:[jsxs(Flex,{align:"baseline",children:[jsx$1(Caption,{className:"passphrase-label",text:label}),tips.length>0&&!confirmation&&jsx$1(PbReactPopover,{className:"passphrase-tips",closeOnClick:"outside",placement:"right",reference:popoverReference,shouldClosePopover:handleShouldClosePopover,show:showPopover,children:jsxs(Flex,{align:"center",orientation:"column",children:[jsx$1(Caption,{marginBottom:"xs",text:"Tips for a good passphrase"}),jsx$1("div",{children:tips.map(((tip,i)=>jsxs(Caption,{marginBottom:"xs",size:"xs",children:[jsx$1(Icon,{icon:"shield-check",marginRight:"xs"}),tip]},i)))})]})})]}),jsxs("div",{className:"passphrase-text-input-wrapper",children:[jsx$1(TextInput$1,{className:"passphrase-text-input",dark:dark,marginBottom:"xs",onChange:handleChange,placeholder:"Enter a passphrase...",type:showPassphrase?"text":"password",value:displayValue,...inputProps}),jsxs("span",{className:"show-passphrase-icon",onClick:toggleShowPassphrase,children:[jsx$1(Body$1,{className:showPassphrase?"hide-icon":"",color:"light",dark:dark,children:jsx$1(Icon,{icon:"eye-slash"})}),jsx$1(Body$1,{className:showPassphrase?"":"hide-icon",color:"light",dark:dark,children:jsx$1(Icon,{icon:"eye"})})]})]})]})})};var intlTelInput$2={exports:{}};(function(module){(function(factory){if(module.exports)module.exports=factory();else window.intlTelInput=factory()})((function(undefined$1){return function(){var allCountries=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua & Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus","by","375"],["Belgium","be","32"],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia & Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros","km","269"],["Congo - Brazzaville","cg","242"],["Congo - Kinshasa","cd","243"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland","fi","358",0],["France","fr","33"],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30"],["Greenland","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong","hk","852"],["Hungary","hu","36"],["Iceland","is","354"],["India","in","91"],["Indonesia","id","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel","il","972"],["Italy","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan","jo","962"],["Kazakhstan","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco","ma","212",0],["Mozambique","mz","258"],["Myanmar (Burma)","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31"],["New Caledonia","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["North Macedonia","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway","no","47",0],["Oman","om","968"],["Pakistan","pk","92"],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63"],["Poland","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262",0],["Romania","ro","40"],["Russia","ru","7",0],["Rwanda","rw","250"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé & Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34"],["Sri Lanka","lk","94"],["St Barthélemy","bl","590",1],["St Helena","sh","290"],["St Kitts & Nevis","kn","1",18,["869"]],["St Lucia","lc","1",19,["758"]],["St Martin","mf","590",2],["St Pierre & Miquelon","pm","508"],["St Vincent & Grenadines","vc","1",20,["784"]],["Sudan","sd","249"],["Suriname","sr","597"],["Svalbard & Jan Mayen","sj","47",1,["79"]],["Sweden","se","46"],["Switzerland","ch","41"],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad & Tobago","tt","1",22,["868"]],["Tunisia","tn","216"],["Turkey","tr","90"],["Turkmenistan","tm","993"],["Turks & Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["US Virgin Islands","vi","1",24,["340"]],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681"],["Western Sahara","eh","212",1,["5288","5289"]],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]];for(var i=0;ithis.countryCodeMaxLen){this.countryCodeMaxLen=countryCode.length}if(!this.countryCodes.hasOwnProperty(countryCode)){this.countryCodes[countryCode]=[]}for(var i2=0;i2-1}))}else if(this.options.excludeCountries.length){var lowerCaseExcludeCountries=this.options.excludeCountries.map((function(country){return country.toLowerCase()}));this.countries=allCountries.filter((function(country){return lowerCaseExcludeCountries.indexOf(country.iso2)===-1}))}else{this.countries=allCountries}}},{key:"_translateCountriesByLocale",value:function _translateCountriesByLocale(){for(var i2=0;i2b2.name){return 1}return 0}},{key:"_processCountryCodes",value:function _processCountryCodes(){this.countryCodeMaxLen=0;this.dialCodes={};this.countryCodes={};for(var i2=0;i2")}content+="".concat(c3.name,"");content+="+".concat(c3.dialCode,"");listItem.insertAdjacentHTML("beforeend",content)}}},{key:"_setInitialState",value:function _setInitialState(){var attributeValue=this.telInput.getAttribute("value");var inputValue=this.telInput.value;var useAttribute=attributeValue&&attributeValue.charAt(0)==="+"&&(!inputValue||inputValue.charAt(0)!=="+");var val=useAttribute?attributeValue:inputValue;var dialCode=this._getDialCode(val);var isRegionlessNanp=this._isRegionlessNanp(val);var _this$options2=this.options,initialCountry=_this$options2.initialCountry,autoInsertDialCode=_this$options2.autoInsertDialCode;if(dialCode&&!isRegionlessNanp){this._updateFlagFromNumber(val)}else if(initialCountry!=="auto"){var isValidInitialCountry=initialCountry&&this._getCountryData(initialCountry,false,true);if(isValidInitialCountry){this._setFlag(initialCountry.toLowerCase())}else{if(dialCode&&isRegionlessNanp){this._setFlag("us")}else{this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2;if(!val){this._setFlag(this.defaultCountry)}}}if(!val&&autoInsertDialCode){this.telInput.value="+".concat(this.selectedCountryData.dialCode)}}if(val){this._updateValFromNumber(val)}}},{key:"_initListeners",value:function _initListeners(){this._initKeyListeners();if(this.options.autoInsertDialCode){this._initBlurListeners()}if(this.options.allowDropdown){this._initDropdownListeners()}if(this.hiddenInput){this._initHiddenInputListener()}}},{key:"_initHiddenInputListener",value:function _initHiddenInputListener(){var _this3=this;this._handleHiddenInputSubmit=function(){_this3.hiddenInput.value=_this3.getNumber()};if(this.telInput.form){this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}}},{key:"_getClosestLabel",value:function _getClosestLabel(){var el=this.telInput;while(el&&el.tagName!=="LABEL"){el=el.parentNode}return el}},{key:"_initDropdownListeners",value:function _initDropdownListeners(){var _this4=this;this._handleLabelClick=function(e2){if(_this4.dropdownContent.classList.contains("iti__hide")){_this4.telInput.focus()}else{e2.preventDefault()}};var label=this._getClosestLabel();if(label){label.addEventListener("click",this._handleLabelClick)}this._handleClickSelectedFlag=function(){if(_this4.dropdownContent.classList.contains("iti__hide")&&!_this4.telInput.disabled&&!_this4.telInput.readOnly){_this4._showDropdown()}};this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag);this._handleFlagsContainerKeydown=function(e2){var isDropdownHidden=_this4.dropdownContent.classList.contains("iti__hide");if(isDropdownHidden&&["ArrowUp","ArrowDown"," ","Enter"].includes(e2.key)){e2.preventDefault();e2.stopPropagation();_this4._showDropdown()}if(e2.key==="Tab"){_this4._closeDropdown()}};this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function _initRequests(){var _this5=this;if(this.options.utilsScript&&!window.intlTelInputUtils){if(window.intlTelInputGlobals.documentReady()){window.intlTelInputGlobals.loadUtils(this.options.utilsScript)}else{window.addEventListener("load",(function(){window.intlTelInputGlobals.loadUtils(_this5.options.utilsScript)}))}}else{this.resolveUtilsScriptPromise()}if(this.options.initialCountry==="auto"){this._loadAutoCountry()}else{this.resolveAutoCountryPromise()}}},{key:"_loadAutoCountry",value:function _loadAutoCountry(){if(window.intlTelInputGlobals.autoCountry){this.handleAutoCountry()}else if(!window.intlTelInputGlobals.startedLoadingAutoCountry){window.intlTelInputGlobals.startedLoadingAutoCountry=true;if(typeof this.options.geoIpLookup==="function"){this.options.geoIpLookup((function(countryCode){window.intlTelInputGlobals.autoCountry=countryCode.toLowerCase();setTimeout((function(){return forEachInstance("handleAutoCountry")}))}),(function(){return forEachInstance("rejectAutoCountryPromise")}))}}}},{key:"_initKeyListeners",value:function _initKeyListeners(){var _this6=this;this._handleKeyupEvent=function(){if(_this6._updateFlagFromNumber(_this6.telInput.value)){_this6._triggerCountryChange()}};this.telInput.addEventListener("keyup",this._handleKeyupEvent);this._handleClipboardEvent=function(){setTimeout(_this6._handleKeyupEvent)};this.telInput.addEventListener("cut",this._handleClipboardEvent);this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function _cap(number){var max2=this.telInput.getAttribute("maxlength");return max2&&number.length>max2?number.substr(0,max2):number}},{key:"_initBlurListeners",value:function _initBlurListeners(){var _this7=this;this._handleSubmitOrBlurEvent=function(){_this7._removeEmptyDialCode()};if(this.telInput.form){this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent)}this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function _removeEmptyDialCode(){if(this.telInput.value.charAt(0)==="+"){var numeric=this._getNumeric(this.telInput.value);if(!numeric||this.selectedCountryData.dialCode===numeric){this.telInput.value=""}}}},{key:"_getNumeric",value:function _getNumeric(s2){return s2.replace(/\D/g,"")}},{key:"_trigger",value:function _trigger(name2){var e2=document.createEvent("Event");e2.initEvent(name2,true,true);this.telInput.dispatchEvent(e2)}},{key:"_showDropdown",value:function _showDropdown(){if(this.options.fixDropdownWidth){this.dropdownContent.style.width="".concat(this.telInput.offsetWidth,"px")}this.dropdownContent.classList.remove("iti__hide");this.selectedFlag.setAttribute("aria-expanded","true");this._setDropdownPosition();if(this.options.countrySearch){this._highlightListItem(this.countryList.firstElementChild,false);this.searchInput.focus()}else if(this.activeItem){this._highlightListItem(this.activeItem,false);this._scrollTo(this.activeItem,true)}this._bindDropdownListeners();this.dropdownArrow.classList.add("iti__arrow--up");this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function _toggleClass(el,className,shouldHaveClass){if(shouldHaveClass&&!el.classList.contains(className)){el.classList.add(className)}else if(!shouldHaveClass&&el.classList.contains(className)){el.classList.remove(className)}}},{key:"_setDropdownPosition",value:function _setDropdownPosition(){var _this8=this;if(this.options.dropdownContainer){this.options.dropdownContainer.appendChild(this.dropdown)}if(!this.options.useFullscreenPopup){var pos=this.telInput.getBoundingClientRect();var windowTop=window.pageYOffset||document.documentElement.scrollTop;var inputTop=pos.top+windowTop;var dropdownHeight=this.dropdownContent.offsetHeight;var dropdownFitsBelow=inputTop+this.telInput.offsetHeight+dropdownHeightwindowTop;var positionDropdownAboveInput=!this.options.countrySearch&&!dropdownFitsBelow&&dropdownFitsAbove;this._toggleClass(this.dropdownContent,"iti__dropdown-content--dropup",positionDropdownAboveInput);if(this.options.dropdownContainer){var extraTop=positionDropdownAboveInput?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(inputTop+extraTop,"px");this.dropdown.style.left="".concat(pos.left+document.body.scrollLeft,"px");this._handleWindowScroll=function(){return _this8._closeDropdown()};window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function _getClosestListItem(target){var el=target;while(el&&el!==this.countryList&&!el.classList.contains("iti__country")){el=el.parentNode}return el===this.countryList?null:el}},{key:"_bindDropdownListeners",value:function _bindDropdownListeners(){var _this9=this;this._handleMouseoverCountryList=function(e2){var listItem=_this9._getClosestListItem(e2.target);if(listItem){_this9._highlightListItem(listItem,false)}};this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList);this._handleClickCountryList=function(e2){var listItem=_this9._getClosestListItem(e2.target);if(listItem){_this9._selectListItem(listItem)}};this.countryList.addEventListener("click",this._handleClickCountryList);var isOpening=true;this._handleClickOffToClose=function(){if(!isOpening){_this9._closeDropdown()}isOpening=false};document.documentElement.addEventListener("click",this._handleClickOffToClose);var query="";var queryTimer=null;this._handleKeydownOnDropdown=function(e2){if(["ArrowUp","ArrowDown","Enter","Escape"].includes(e2.key)){e2.preventDefault();e2.stopPropagation();if(e2.key==="ArrowUp"||e2.key==="ArrowDown"){_this9._handleUpDownKey(e2.key)}else if(e2.key==="Enter"){_this9._handleEnterKey()}else if(e2.key==="Escape"){_this9._closeDropdown()}}if(!_this9.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(e2.key)){e2.stopPropagation();if(queryTimer){clearTimeout(queryTimer)}query+=e2.key.toLowerCase();_this9._searchForCountry(query);queryTimer=setTimeout((function(){query=""}),1e3)}};document.addEventListener("keydown",this._handleKeydownOnDropdown);if(this.options.countrySearch){var doFilter=function doFilter2(){var inputQuery=_this9.searchInput.value.trim();if(inputQuery){_this9._filterCountries(inputQuery.toLowerCase())}else{_this9._filterCountries(null,true)}};var keyupTimer=null;this._handleSearchChange=function(){if(keyupTimer){clearTimeout(keyupTimer)}keyupTimer=setTimeout((function(){doFilter();keyupTimer=null}),100)};this.searchInput.addEventListener("input",this._handleSearchChange);this.searchInput.addEventListener("click",(function(e2){return e2.stopPropagation()}))}}},{key:"_filterCountries",value:function _filterCountries(query){var isReset=arguments.length>1&&arguments[1]!==undefined$1?arguments[1]:false;var isFirst=true;this.countryList.innerHTML="";for(var i2=0;i21){next2=key==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild}if(next2){var doFocus=!this.options.countrySearch;this._highlightListItem(next2,doFocus);if(this.options.countrySearch){this._scrollTo(next2,false)}}}},{key:"_handleEnterKey",value:function _handleEnterKey(){if(this.highlightedItem){this._selectListItem(this.highlightedItem)}}},{key:"_searchForCountry",value:function _searchForCountry(query){for(var i2=0;i2containerBottom){if(middle){newScrollTop+=middleOffset}var heightDifference=containerHeight-elementHeight;container.scrollTop=newScrollTop-heightDifference}}},{key:"_updateDialCode",value:function _updateDialCode(newDialCodeBare){var inputVal=this.telInput.value;var newDialCode="+".concat(newDialCodeBare);var newNumber;if(inputVal.charAt(0)==="+"){var prevDialCode=this._getDialCode(inputVal);if(prevDialCode){newNumber=inputVal.replace(prevDialCode,newDialCode)}else{newNumber=newDialCode}this.telInput.value=newNumber}else if(this.options.autoInsertDialCode){if(inputVal){newNumber=newDialCode+inputVal}else{newNumber=newDialCode}this.telInput.value=newNumber}}},{key:"_getDialCode",value:function _getDialCode(number,includeAreaCode){var dialCode="";if(number.charAt(0)==="+"){var numericChars="";for(var i2=0;i2a2.length?false:M(Ga,a2)}function Ja(a2){return M(Ba,a2)?N(a2,wa):N(a2,va)}function Ka(a2){var b2=Ja(a2.toString());a2.i="";a2.g(b2)}function N(a2,b2){for(var c2=new C2,d2,f2=a2.length,e2=0;e2b2?2:e2[e2.length-1]=b2.i.length)throw Error("Phone number too short after IDD");a:{a2=b2.toString();if(0!=a2.length&&"0"!=a2.charAt(0)){for(f2=a2.length,b2=1;3>=b2&&b2<=f2;++b2)if(c2=parseInt(a2.substring(0,b2),10),c2 in I){d2.g(a2.substring(b2));d2=c2;break a}}d2=0}if(0!=d2)return q(e2,1,d2),d2;throw Error("Invalid country calling code")}if(null!=c2&&(g2=v2(c2,10),h2=""+g2,l2=b2.toString(),0==l2.lastIndexOf(h2,0)&&(h2=new C2(l2.substring(h2.length)),l2=p2(c2,1),l2=new RegExp(v2(l2,2)),Qa(h2,c2,null),h2=h2.toString(),!M(l2,b2.toString())&&M(l2,h2)||3==W2(a2,b2.toString(),c2,-1))))return d2.g(h2),f2&&q(e2,6,10),q(e2,1,g2),g2;q(e2,1,0);return 0}function Qa(a2,b2,c2){var d2=a2.toString(),f2=d2.length,e2=p2(b2,15);if(0!=f2&&null!=e2&&0!=e2.length){var g2=new RegExp("^(?:"+e2+")");if(f2=g2.exec(d2)){e2=new RegExp(v2(p2(b2,1),2));var h2=M(e2,d2),l2=f2.length-1;b2=p2(b2,16);if(null==b2||0==b2.length||null==f2[l2]||0==f2[l2].length){if(!h2||M(e2,d2.substring(f2[0].length)))null!=c2&&0=b2.length)e2="";else{var g2=b2.indexOf(";",e2);e2=-1!==g2?b2.substring(e2,g2):b2.substring(e2)}var h2=e2;null==h2?g2=true:0===h2.length?g2=false:(g2=Ca.exec(h2),h2=Da.exec(h2),g2=null!==g2||null!==h2);if(!g2)throw Error("The string supplied did not seem to be a phone number");null!=e2?("+"===e2.charAt(0)&&f2.g(e2),e2=b2.indexOf("tel:"),f2.g(b2.substring(0<=e2?e2+4:0,b2.indexOf(";phone-context=")))):(e2=f2.g,g2=b2??"",h2=g2.search(ya),0<=h2?(g2=g2.substring(h2),g2=g2.replace(Aa,""),h2=g2.search(za),0<=h2&&(g2=g2.substring(0,h2))):g2="",e2.call(f2,g2));e2=f2.toString();g2=e2.indexOf(";isub=");0b2.i.length)throw Error("The string supplied is too short to be a phone number");null!=g2&&(c2=new C2,f2=new C2(b2.toString()),Qa(f2,g2,c2),a2=W2(a2,f2.toString(),g2,-1),2!=a2&&4!=a2&&5!=a2&&(b2=f2,d2&&0a2)throw Error("The string supplied is too short to be a phone number");if(17{try{const f2=J.g(),e2=Z(f2,a2,b2);var d2=X(f2,e2);return 0==d2||4==d2?Ma(f2,e2,"undefined"===typeof c2?0:c2):a2}catch(f2){return a2}}));k2("intlTelInputUtils.getExampleNumber",((a2,b2,c2)=>{try{const h2=J.g();a:{var d2=h2;if(O2(a2)){var f2=T2(S2(d2,a2),c2);try{if(null!=f2.g[6]){var e2=p2(f2,6);var g2=Ra(d2,e2,a2,false);break a}}catch(l2){}}g2=null}return Ma(h2,g2,b2?2:1)}catch(h2){return""}}));k2("intlTelInputUtils.getExtension",((a2,b2)=>{try{return p2(Z(J.g(),a2,b2),3)}catch(c2){return""}}));k2("intlTelInputUtils.getNumberType",((a2,b2)=>{try{const h2=J.g();var c2=Z(h2,a2,b2);a2=h2;var d2=Oa(a2,c2),f2=Q(a2,v2(c2,1),d2);if(null==f2)var e2=-1;else{var g2=P(c2);e2=U(g2,f2)}return e2}catch(h2){return-99}}));k2("intlTelInputUtils.getValidationError",((a2,b2)=>{try{const c2=J.g(),d2=Z(c2,a2,b2);return X(c2,d2)}catch(c2){return"Invalid country calling code"===c2.message?1:3>=a2.length||"Phone number too short after IDD"===c2.message||"The string supplied is too short to be a phone number"===c2.message?2:"The string supplied is too long to be a phone number"===c2.message?3:-99}}));k2("intlTelInputUtils.isValidNumber",((a2,b2)=>{try{const Y=J.g();var c2=Z(Y,a2,b2);a2=Y;var d2=Oa(a2,c2);var f2=v2(c2,1),e2=Q(a2,f2,d2),g2;if(!(g2=null==e2)){var h2;if(h2="001"!=d2){var l2=S2(a2,d2);if(null==l2)throw Error("Invalid region code: "+d2);var A2=v2(l2,10);h2=f2!=A2}g2=h2}if(g2)var G=false;else{var Sa=P(c2);G=-1!=U(Sa,e2)}return G}catch(Y){return false}}));k2("intlTelInputUtils.isPossibleNumber",((a2,b2)=>{try{const c2=J.g(),d2=Z(c2,a2,b2);return 0===X(c2,d2)}catch(c2){return false}}));k2("intlTelInputUtils.numberFormat",{E164:0,INTERNATIONAL:1,NATIONAL:2,RFC3966:3});k2("intlTelInputUtils.numberType",{FIXED_LINE:0,MOBILE:1,FIXED_LINE_OR_MOBILE:2,TOLL_FREE:3,PREMIUM_RATE:4,SHARED_COST:5,VOIP:6,PERSONAL_NUMBER:7,PAGER:8,UAN:9,VOICEMAIL:10,UNKNOWN:-1});k2("intlTelInputUtils.validationError",{IS_POSSIBLE:0,INVALID_COUNTRY_CODE:1,TOO_SHORT:2,TOO_LONG:3,IS_POSSIBLE_LOCAL_ONLY:4,INVALID_LENGTH:5})})();const isEmpty=obj=>Object.keys(obj).length<1;const formatToGlobalCountryName=countryName=>countryName.split("(")[0].trim();const formatAllCountries=()=>{const countryData=window.intlTelInputGlobals.getCountryData();for(let i=0;i/^[()+\-\ .\d]*$/g.test(value);const PhoneNumberInput=(props,ref)=>{const{aria:aria={},className:className,dark:dark=false,data:data={},disabled:disabled=false,htmlOptions:htmlOptions={},id:id="",initialCountry:initialCountry="",isValid:isValid=()=>{},label:label="",name:name2="",onChange:onChange2=()=>{},onValidate:onValidate=()=>null,onlyCountries:onlyCountries=[],required:required=false,preferredCountries:preferredCountries=[],value:value=""}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_phone_number_input"),globalProps(props),className);const inputRef=useRef();const[inputValue,setInputValue]=useState(value);const[itiInit,setItiInit]=useState();const[error,setError]=useState(props.error);const[dropDownIsOpen,setDropDownIsOpen]=useState(false);const[selectedData,setSelectedData]=useState();useEffect((()=>{if((error==null?void 0:error.length)>0){onValidate(false)}else{onValidate(true)}}),[error,onValidate]);useImperativeHandle(ref,(()=>({clearField(){setInputValue("");setError("")},inputNode(){return inputRef.current}})));const showFormattedError=(reason="")=>{const countryName=itiInit.getSelectedCountryData().name;const reasonText=reason.length>0?` (${reason})`:"";setError(`Invalid ${countryName} phone number${reasonText}`);return true};const validateTooLongNumber=itiInit2=>{if(!itiInit2)return;if(itiInit2.getValidationError()===3){return showFormattedError("too long")}else{setError("")}};const validateTooShortNumber=itiInit2=>{if(!itiInit2)return;if(itiInit2.getValidationError()===2){return showFormattedError("too short")}else{if(inputValue.length===1){return showFormattedError("too short")}else{setError("")}}};const validateOnlyNumbers=itiInit2=>{if(!itiInit2)return;if(inputValue&&!containOnlyNumbers(inputValue)){return showFormattedError("enter numbers only")}};const validateUnhandledError=itiInit2=>{if(!required||!itiInit2)return;if(itiInit2.getValidationError()===-99){if(inputValue.length===1){return showFormattedError("too short")}else if(inputValue.length===0){setError("Missing phone number");return true}else{return showFormattedError()}}};const validateMissingAreaCode=itiInit2=>{if(!required||!itiInit2)return;if(itiInit2.getValidationError()===4){showFormattedError("missing area code");return true}};const validateErrors=()=>{if(itiInit)isValid(itiInit.isValidNumber());if(validateOnlyNumbers(itiInit))return;if(validateTooLongNumber(itiInit))return;if(validateTooShortNumber(itiInit))return;if(validateUnhandledError(itiInit))return;if(validateMissingAreaCode(itiInit))return};const getCurrentSelectedData=(itiInit2,inputValue2)=>({...itiInit2.getSelectedCountryData(),number:inputValue2});const handleOnChange=evt=>{setInputValue(evt.target.value);const phoneNumberData=getCurrentSelectedData(itiInit,evt.target.value);setSelectedData(phoneNumberData);onChange2(phoneNumberData);isValid(itiInit.isValidNumber())};useEffect(formatAllCountries,[]);useEffect((()=>{const telInputInit=intlTelInput$1(inputRef.current,{separateDialCode:true,preferredCountries:preferredCountries,allowDropdown:!disabled,autoInsertDialCode:false,initialCountry:initialCountry,onlyCountries:onlyCountries});inputRef.current.addEventListener("countrychange",(evt=>{const phoneNumberData=getCurrentSelectedData(telInputInit,evt.target.value);setSelectedData(phoneNumberData);onChange2(phoneNumberData);validateErrors()}));inputRef.current.addEventListener("open:countrydropdown",(()=>setDropDownIsOpen(true)));inputRef.current.addEventListener("close:countrydropdown",(()=>setDropDownIsOpen(false)));setItiInit(telInputInit)}),[]);let textInputProps={className:dropDownIsOpen?"dropdown_open":"",dark:dark,"data-phone-number":JSON.stringify(selectedData),disabled:disabled,error:error,type:"tel",id:id,label:label,name:name2,onBlur:validateErrors,onChange:handleOnChange,value:inputValue};let wrapperProps={className:classes};if(!isEmpty(aria))textInputProps={...textInputProps,...ariaProps};if(!isEmpty(data))wrapperProps={...wrapperProps,...dataProps};if(required)textInputProps.required=true;return jsx$1("div",{...wrapperProps,...htmlProps,children:jsx$1(TextInput$1,{ref:inputNode=>{ref?ref.current=inputNode:null;inputRef.current=inputNode},...textInputProps})})};const PhoneNumberInput$1=forwardRef(PhoneNumberInput);const inlineFocus=()=>{const trixEditorElement=event.target;const trixEditorContainer=trixEditorElement.closest(".pb_rich_text_editor_kit");if(!trixEditorContainer.classList.contains("inline"))return;trixEditorContainer.classList.toggle("focused")};const useFocus=()=>{const allTrixEditors=document.querySelectorAll(".focus-editor-targets trix-editor");allTrixEditors.forEach((editorElement=>{const toolbarElement=editorElement.toolbarElement;if(editorElement==document.activeElement){editorElement.classList.add("focused-editor");toolbarElement.style.display="block"}else{if(!toolbarElement.contains(document.activeElement)){editorElement.classList.remove("focused-editor");toolbarElement.style.display="none"}}}))};if(window==null?void 0:window.customElements){const customElemDef=window.customElements.define;window.customElements.define=(name2,cl,conf)=>{if(!customElements.get(name2))customElemDef.call(window.customElements,name2,cl,conf)}}function t(t2){return t2.split("-")[1]}function e(t2){return"y"===t2?"height":"width"}function n$1(t2){return t2.split("-")[0]}function o$1(t2){return["top","bottom"].includes(n$1(t2))?"x":"y"}function i$2(i,r2,a2){let{reference:l2,floating:s2}=i;const c2=l2.x+l2.width/2-s2.width/2,f2=l2.y+l2.height/2-s2.height/2,m2=o$1(r2),u2=e(m2),g2=l2[u2]/2-s2[u2]/2,d2="x"===m2;let p2;switch(n$1(r2)){case"top":p2={x:c2,y:l2.y-s2.height};break;case"bottom":p2={x:c2,y:l2.y+l2.height};break;case"right":p2={x:l2.x+l2.width,y:f2};break;case"left":p2={x:l2.x-s2.width,y:f2};break;default:p2={x:l2.x,y:l2.y}}switch(t(r2)){case"start":p2[m2]-=g2*(a2&&d2?-1:1);break;case"end":p2[m2]+=g2*(a2&&d2?-1:1)}return p2}const r$1=async(t2,e2,n2)=>{const{placement:o2="bottom",strategy:r2="absolute",middleware:a2=[],platform:l2}=n2,s2=a2.filter(Boolean),c2=await(null==l2.isRTL?void 0:l2.isRTL(e2));let f2=await l2.getElementRects({reference:t2,floating:e2,strategy:r2}),{x:m2,y:u2}=i$2(f2,o2,c2),g2=o2,d2={},p2=0;for(let n3=0;n3({name:"arrow",options:n2,async fn(i){const{element:r2,padding:l2=0}=n2||{},{x:s2,y:c2,placement:f2,rects:u2,platform:g2,elements:d2}=i;if(null==r2)return{};const p2=a$1(l2),h2={x:s2,y:c2},y2=o$1(f2),x2=e(y2),w2=await g2.getDimensions(r2),v2="y"===y2,b2=v2?"top":"left",A2=v2?"bottom":"right",R2=v2?"clientHeight":"clientWidth",P=u2.reference[x2]+u2.reference[y2]-h2[y2]-u2.floating[x2],E2=h2[y2]-u2.reference[y2],T2=await(null==g2.getOffsetParent?void 0:g2.getOffsetParent(r2));let D2=T2?T2[R2]:0;D2&&await(null==g2.isElement?void 0:g2.isElement(T2))||(D2=d2.floating[R2]||u2.floating[x2]);const L2=P/2-E2/2,k2=p2[b2],O2=D2-w2[x2]-p2[A2],B=D2/2-w2[x2]/2+L2,C2=m$1(k2,B,O2),H2=null!=t(f2)&&B!=C2&&u2.reference[x2]/2-(Bt2.concat(e2,e2+"-start",e2+"-end")),[]);const p$1={left:"right",right:"left",bottom:"top",top:"bottom"};function h$1(t2){return t2.replace(/left|right|bottom|top/g,(t3=>p$1[t3]))}function y$1(n2,i,r2){void 0===r2&&(r2=false);const a2=t(n2),l2=o$1(n2),s2=e(l2);let c2="x"===l2?a2===(r2?"end":"start")?"right":"left":"start"===a2?"bottom":"top";return i.reference[s2]>i.floating[s2]&&(c2=h$1(c2)),{main:c2,cross:h$1(c2)}}const x$1={start:"end",end:"start"};function w$2(t2){return t2.replace(/start|end/g,(t3=>x$1[t3]))}const b$1=function(e2){return void 0===e2&&(e2={}),{name:"flip",options:e2,async fn(o2){var i;const{placement:r2,middlewareData:a2,rects:l2,initialPlacement:c2,platform:f2,elements:m2}=o2,{mainAxis:u2=true,crossAxis:g2=true,fallbackPlacements:d2,fallbackStrategy:p2="bestFit",fallbackAxisSideDirection:x2="none",flipAlignment:v2=true,...b2}=e2,A2=n$1(r2),R2=n$1(c2)===c2,P=await(null==f2.isRTL?void 0:f2.isRTL(m2.floating)),E2=d2||(R2||!v2?[h$1(c2)]:function(t2){const e3=h$1(t2);return[w$2(t2),e3,w$2(e3)]}(c2));d2||"none"===x2||E2.push(...function(e3,o3,i2,r3){const a3=t(e3);let l3=function(t2,e4,n2){const o4=["left","right"],i3=["right","left"],r4=["top","bottom"],a4=["bottom","top"];switch(t2){case"top":case"bottom":return n2?e4?i3:o4:e4?o4:i3;case"left":case"right":return e4?r4:a4;default:return[]}}(n$1(e3),"start"===i2,r3);return a3&&(l3=l3.map((t2=>t2+"-"+a3)),o3&&(l3=l3.concat(l3.map(w$2)))),l3}(c2,v2,x2,P));const T2=[c2,...E2],D2=await s$1(o2,b2),L2=[];let k2=(null==(i=a2.flip)?void 0:i.overflows)||[];if(u2&&L2.push(D2[A2]),g2){const{main:t2,cross:e3}=y$1(r2,l2,P);L2.push(D2[t2],D2[e3])}if(k2=[...k2,{placement:r2,overflows:L2}],!L2.every((t2=>t2<=0))){var O2,B;const t2=((null==(O2=a2.flip)?void 0:O2.index)||0)+1,e3=T2[t2];if(e3)return{data:{index:t2,overflows:k2},reset:{placement:e3}};let n2=null==(B=k2.filter((t3=>t3.overflows[0]<=0)).sort(((t3,e4)=>t3.overflows[1]-e4.overflows[1]))[0])?void 0:B.placement;if(!n2)switch(p2){case"bestFit":{var C2;const t3=null==(C2=k2.map((t4=>[t4.placement,t4.overflows.filter((t5=>t5>0)).reduce(((t5,e4)=>t5+e4),0)])).sort(((t4,e4)=>t4[1]-e4[1]))[0])?void 0:C2[0];t3&&(n2=t3);break}case"initialPlacement":n2=c2}if(r2!==n2)return{reset:{placement:n2}}}return{}}}};const D$1=function(e2){return{name:"offset",options:e2,async fn(i){const{x:r2,y:a2}=i,l2=await async function(e3,i2){const{placement:r3,platform:a3,elements:l3}=e3,s2=await(null==a3.isRTL?void 0:a3.isRTL(l3.floating)),c2=n$1(r3),f2=t(r3),m2="x"===o$1(r3),u2=["left","top"].includes(c2)?-1:1,g2=s2&&m2?-1:1,d2=i2;let{mainAxis:p2,crossAxis:h2,alignmentAxis:y2}={mainAxis:d2,crossAxis:0,alignmentAxis:null};return f2&&"number"==typeof y2&&(h2="end"===f2?-1*y2:y2),m2?{x:h2*g2,y:p2*u2}:{x:p2*u2,y:h2*g2}}(i,e2);return{x:r2+l2.x,y:a2+l2.y,data:l2}}}};function L$1(t2){return"x"===t2?"y":"x"}const k=function(t2){return void 0===t2&&(t2={}),{name:"shift",options:t2,async fn(e2){const{x:i,y:r2,placement:a2}=e2,{mainAxis:l2=true,crossAxis:c2=false,limiter:f2={fn:t3=>{let{x:e3,y:n2}=t3;return{x:e3,y:n2}}},...u2}=t2,g2={x:i,y:r2},d2=await s$1(e2,u2),p2=o$1(n$1(a2)),h2=L$1(p2);let y2=g2[p2],x2=g2[h2];if(l2){const t3="y"===p2?"bottom":"right";y2=m$1(y2+d2["y"===p2?"top":"left"],y2,y2-d2[t3])}if(c2){const t3="y"===h2?"bottom":"right";x2=m$1(x2+d2["y"===h2?"top":"left"],x2,x2-d2[t3])}const w2=f2.fn({...e2,[p2]:y2,[h2]:x2});return{...w2,data:{x:w2.x-i,y:w2.y-r2}}}}};function n(t2){var e2;return(null==(e2=t2.ownerDocument)?void 0:e2.defaultView)||window}function o(t2){return n(t2).getComputedStyle(t2)}function i$1(t2){return t2 instanceof n(t2).Node}function r(t2){return i$1(t2)?(t2.nodeName||"").toLowerCase():""}let l;function c(){if(l)return l;const t2=navigator.userAgentData;return t2&&Array.isArray(t2.brands)?(l=t2.brands.map((t3=>t3.brand+"/"+t3.version)).join(" "),l):navigator.userAgent}function s(t2){return t2 instanceof n(t2).HTMLElement}function f(t2){return t2 instanceof n(t2).Element}function u(t2){if("undefined"==typeof ShadowRoot)return false;return t2 instanceof n(t2).ShadowRoot||t2 instanceof ShadowRoot}function a(t2){const{overflow:e2,overflowX:n2,overflowY:i,display:r2}=o(t2);return/auto|scroll|overlay|hidden|clip/.test(e2+i+n2)&&!["inline","contents"].includes(r2)}function d(t2){return["table","td","th"].includes(r(t2))}function h(t2){const e2=/firefox/i.test(c()),n2=o(t2),i=n2.backdropFilter||n2.WebkitBackdropFilter;return"none"!==n2.transform||"none"!==n2.perspective||!!i&&"none"!==i||e2&&"filter"===n2.willChange||e2&&!!n2.filter&&"none"!==n2.filter||["transform","perspective"].some((t3=>n2.willChange.includes(t3)))||["paint","layout","strict","content"].some((t3=>{const e3=n2.contain;return null!=e3&&e3.includes(t3)}))}function p(){return/^((?!chrome|android).)*safari/i.test(c())}function g(t2){return["html","body","#document"].includes(r(t2))}const m=Math.min,y=Math.max,x=Math.round;function w$1(t2){const e2=o(t2);let n2=parseFloat(e2.width),i=parseFloat(e2.height);const r2=s(t2),l2=r2?t2.offsetWidth:n2,c2=r2?t2.offsetHeight:i,f2=x(n2)!==l2||x(i)!==c2;return f2&&(n2=l2,i=c2),{width:n2,height:i,fallback:f2}}function v(t2){return f(t2)?t2:t2.contextElement}const b={x:1,y:1};function L(t2){const e2=v(t2);if(!s(e2))return b;const n2=e2.getBoundingClientRect(),{width:o2,height:i,fallback:r2}=w$1(e2);let l2=(r2?x(n2.width):n2.width)/o2,c2=(r2?x(n2.height):n2.height)/i;return l2&&Number.isFinite(l2)||(l2=1),c2&&Number.isFinite(c2)||(c2=1),{x:l2,y:c2}}function E(e2,o2,i,r2){var l2,c2;void 0===o2&&(o2=false),void 0===i&&(i=false);const s2=e2.getBoundingClientRect(),u2=v(e2);let a2=b;o2&&(r2?f(r2)&&(a2=L(r2)):a2=L(e2));const d2=u2?n(u2):window,h2=p()&&i;let g2=(s2.left+(h2&&(null==(l2=d2.visualViewport)?void 0:l2.offsetLeft)||0))/a2.x,m2=(s2.top+(h2&&(null==(c2=d2.visualViewport)?void 0:c2.offsetTop)||0))/a2.y,y2=s2.width/a2.x,x2=s2.height/a2.y;if(u2){const t2=n(u2),e3=r2&&f(r2)?n(r2):r2;let o3=t2.frameElement;for(;o3&&r2&&e3!==t2;){const t3=L(o3),e4=o3.getBoundingClientRect(),i2=getComputedStyle(o3);e4.x+=(o3.clientLeft+parseFloat(i2.paddingLeft))*t3.x,e4.y+=(o3.clientTop+parseFloat(i2.paddingTop))*t3.y,g2*=t3.x,m2*=t3.y,y2*=t3.x,x2*=t3.y,g2+=e4.x,m2+=e4.y,o3=n(o3).frameElement}}return l$1({width:y2,height:x2,x:g2,y:m2})}function T(t2){return((i$1(t2)?t2.ownerDocument:t2.document)||window.document).documentElement}function R(t2){return f(t2)?{scrollLeft:t2.scrollLeft,scrollTop:t2.scrollTop}:{scrollLeft:t2.pageXOffset,scrollTop:t2.pageYOffset}}function C(t2){return E(T(t2)).left+R(t2).scrollLeft}function F(t2){if("html"===r(t2))return t2;const e2=t2.assignedSlot||t2.parentNode||u(t2)&&t2.host||T(t2);return u(e2)?e2.host:e2}function W(t2){const e2=F(t2);return g(e2)?e2.ownerDocument.body:s(e2)&&a(e2)?e2:W(e2)}function D(t2,e2){var o2;void 0===e2&&(e2=[]);const i=W(t2),r2=i===(null==(o2=t2.ownerDocument)?void 0:o2.body),l2=n(i);return r2?e2.concat(l2,l2.visualViewport||[],a(i)?i:[]):e2.concat(i,D(i))}function S(e2,i,r2){let l2;if("viewport"===i)l2=function(t2,e3){const o2=n(t2),i2=T(t2),r3=o2.visualViewport;let l3=i2.clientWidth,c3=i2.clientHeight,s2=0,f2=0;if(r3){l3=r3.width,c3=r3.height;const t3=p();(!t3||t3&&"fixed"===e3)&&(s2=r3.offsetLeft,f2=r3.offsetTop)}return{width:l3,height:c3,x:s2,y:f2}}(e2,r2);else if("document"===i)l2=function(t2){const e3=T(t2),n2=R(t2),i2=t2.ownerDocument.body,r3=y(e3.scrollWidth,e3.clientWidth,i2.scrollWidth,i2.clientWidth),l3=y(e3.scrollHeight,e3.clientHeight,i2.scrollHeight,i2.clientHeight);let c3=-n2.scrollLeft+C(t2);const s2=-n2.scrollTop;return"rtl"===o(i2).direction&&(c3+=y(e3.clientWidth,i2.clientWidth)-r3),{width:r3,height:l3,x:c3,y:s2}}(T(e2));else if(f(i))l2=function(t2,e3){const n2=E(t2,true,"fixed"===e3),o2=n2.top+t2.clientTop,i2=n2.left+t2.clientLeft,r3=s(t2)?L(t2):{x:1,y:1};return{width:t2.clientWidth*r3.x,height:t2.clientHeight*r3.y,x:i2*r3.x,y:o2*r3.y}}(i,r2);else{const t2={...i};if(p()){var c2,u2;const o2=n(e2);t2.x-=(null==(c2=o2.visualViewport)?void 0:c2.offsetLeft)||0,t2.y-=(null==(u2=o2.visualViewport)?void 0:u2.offsetTop)||0}l2=t2}return l$1(l2)}function A(t2,e2){return s(t2)&&"fixed"!==o(t2).position?e2?e2(t2):t2.offsetParent:null}function H(t2,e2){const i=n(t2);if(!s(t2))return i;let l2=A(t2,e2);for(;l2&&d(l2)&&"static"===o(l2).position;)l2=A(l2,e2);return l2&&("html"===r(l2)||"body"===r(l2)&&"static"===o(l2).position&&!h(l2))?i:l2||function(t3){let e3=F(t3);for(;s(e3)&&!g(e3);){if(h(e3))return e3;e3=F(e3)}return null}(t2)||i}function V(t2,e2,n2){const o2=s(e2),i=T(e2),l2=E(t2,true,"fixed"===n2,e2);let c2={scrollLeft:0,scrollTop:0};const f2={x:0,y:0};if(o2||!o2&&"fixed"!==n2)if(("body"!==r(e2)||a(i))&&(c2=R(e2)),s(e2)){const t3=E(e2,true);f2.x=t3.x+e2.clientLeft,f2.y=t3.y+e2.clientTop}else i&&(f2.x=C(i));return{x:l2.left+c2.scrollLeft-f2.x,y:l2.top+c2.scrollTop-f2.y,width:l2.width,height:l2.height}}const O={getClippingRect:function(t2){let{element:e2,boundary:n2,rootBoundary:i,strategy:l2}=t2;const c2="clippingAncestors"===n2?function(t3,e3){const n3=e3.get(t3);if(n3)return n3;let i2=D(t3).filter((t4=>f(t4)&&"body"!==r(t4))),l3=null;const c3="fixed"===o(t3).position;let s3=c3?F(t3):t3;for(;f(s3)&&!g(s3);){const t4=o(s3),e4=h(s3);"fixed"===t4.position?l3=null:(c3?e4||l3:e4||"static"!==t4.position||!l3||!["absolute","fixed"].includes(l3.position))?l3=t4:i2=i2.filter((t5=>t5!==s3)),s3=F(s3)}return e3.set(t3,i2),i2}(e2,this._c):[].concat(n2),s2=[...c2,i],u2=s2[0],a2=s2.reduce(((t3,n3)=>{const o2=S(e2,n3,l2);return t3.top=y(o2.top,t3.top),t3.right=m(o2.right,t3.right),t3.bottom=m(o2.bottom,t3.bottom),t3.left=y(o2.left,t3.left),t3}),S(e2,u2,l2));return{width:a2.right-a2.left,height:a2.bottom-a2.top,x:a2.left,y:a2.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t2){let{rect:e2,offsetParent:n2,strategy:o2}=t2;const i=s(n2),l2=T(n2);if(n2===l2)return e2;let c2={scrollLeft:0,scrollTop:0},f2={x:1,y:1};const u2={x:0,y:0};if((i||!i&&"fixed"!==o2)&&(("body"!==r(n2)||a(l2))&&(c2=R(n2)),s(n2))){const t3=E(n2);f2=L(n2),u2.x=t3.x+n2.clientLeft,u2.y=t3.y+n2.clientTop}return{width:e2.width*f2.x,height:e2.height*f2.y,x:e2.x*f2.x-c2.scrollLeft*f2.x+u2.x,y:e2.y*f2.y-c2.scrollTop*f2.y+u2.y}},isElement:f,getDimensions:function(t2){return w$1(t2)},getOffsetParent:H,getDocumentElement:T,getScale:L,async getElementRects(t2){let{reference:e2,floating:n2,strategy:o2}=t2;const i=this.getOffsetParent||H,r2=this.getDimensions;return{reference:V(e2,await i(n2),o2),floating:{x:0,y:0,...await r2(n2)}}},getClientRects:t2=>Array.from(t2.getClientRects()),isRTL:t2=>"rtl"===o(t2).direction};const z=(t2,n2,o2)=>{const i=new Map,r2={platform:O,...o2},l2={...r2.platform,_c:i};return r$1(t2,n2,{...r2,platform:l2})};const arrow=options2=>{const{element:element,padding:padding}=options2;function isRef(value){return Object.prototype.hasOwnProperty.call(value,"current")}return{name:"arrow",options:options2,fn(args){if(isRef(element)){if(element.current!=null){return u$1({element:element.current,padding:padding}).fn(args)}return{}}else if(element){return u$1({element:element,padding:padding}).fn(args)}return{}}}};var index$2=typeof document!=="undefined"?useLayoutEffect:useEffect;function deepEqual(a2,b2){if(a2===b2){return true}if(typeof a2!==typeof b2){return false}if(typeof a2==="function"&&a2.toString()===b2.toString()){return true}let length2,i,keys;if(a2&&b2&&typeof a2=="object"){if(Array.isArray(a2)){length2=a2.length;if(length2!=b2.length)return false;for(i=length2;i--!==0;){if(!deepEqual(a2[i],b2[i])){return false}}return true}keys=Object.keys(a2);length2=keys.length;if(length2!==Object.keys(b2).length){return false}for(i=length2;i--!==0;){if(!Object.prototype.hasOwnProperty.call(b2,keys[i])){return false}}for(i=length2;i--!==0;){const key=keys[i];if(key==="_owner"&&a2.$$typeof){continue}if(!deepEqual(a2[key],b2[key])){return false}}return true}return a2!==a2&&b2!==b2}function useLatestRef$1(value){const ref=React.useRef(value);index$2((()=>{ref.current=value}));return ref}function useFloating$1(options2){if(options2===void 0){options2={}}const{placement:placement="bottom",strategy:strategy="absolute",middleware:middleware2=[],platform:platform,whileElementsMounted:whileElementsMounted,open:open}=options2;const[data,setData]=React.useState({x:null,y:null,strategy:strategy,placement:placement,middlewareData:{},isPositioned:false});const[latestMiddleware,setLatestMiddleware]=React.useState(middleware2);if(!deepEqual(latestMiddleware,middleware2)){setLatestMiddleware(middleware2)}const referenceRef=React.useRef(null);const floatingRef=React.useRef(null);const dataRef=React.useRef(data);const whileElementsMountedRef=useLatestRef$1(whileElementsMounted);const platformRef=useLatestRef$1(platform);const[reference,_setReference]=React.useState(null);const[floating,_setFloating]=React.useState(null);const setReference=React.useCallback((node2=>{if(referenceRef.current!==node2){referenceRef.current=node2;_setReference(node2)}}),[]);const setFloating=React.useCallback((node2=>{if(floatingRef.current!==node2){floatingRef.current=node2;_setFloating(node2)}}),[]);const update=React.useCallback((()=>{if(!referenceRef.current||!floatingRef.current){return}const config={placement:placement,strategy:strategy,middleware:latestMiddleware};if(platformRef.current){config.platform=platformRef.current}z(referenceRef.current,floatingRef.current,config).then((data2=>{const fullData={...data2,isPositioned:true};if(isMountedRef.current&&!deepEqual(dataRef.current,fullData)){dataRef.current=fullData;ReactDOM.flushSync((()=>{setData(fullData)}))}}))}),[latestMiddleware,placement,strategy,platformRef]);index$2((()=>{if(open===false&&dataRef.current.isPositioned){dataRef.current.isPositioned=false;setData((data2=>({...data2,isPositioned:false})))}}),[open]);const isMountedRef=React.useRef(false);index$2((()=>{isMountedRef.current=true;return()=>{isMountedRef.current=false}}),[]);index$2((()=>{if(reference&&floating){if(whileElementsMountedRef.current){return whileElementsMountedRef.current(reference,floating,update)}else{update()}}}),[reference,floating,update,whileElementsMountedRef]);const refs=React.useMemo((()=>({reference:referenceRef,floating:floatingRef,setReference:setReference,setFloating:setFloating})),[setReference,setFloating]);const elements=React.useMemo((()=>({reference:reference,floating:floating})),[reference,floating]);return React.useMemo((()=>({...data,update:update,refs:refs,elements:elements,reference:setReference,floating:setFloating})),[data,update,refs,elements,setReference,setFloating])}var index$1=typeof document!=="undefined"?useLayoutEffect:useEffect;let serverHandoffComplete=false;let count=0;const genId=()=>"floating-ui-"+count++;function useFloatingId(){const[id,setId]=React.useState((()=>serverHandoffComplete?genId():void 0));index$1((()=>{if(id==null){setId(genId())}}),[]);React.useEffect((()=>{if(!serverHandoffComplete){serverHandoffComplete=true}}),[]);return id}const useReactId=React["useId".toString()];const useId=useReactId||useFloatingId;function createPubSub(){const map=new Map;return{emit(event2,data){var _map$get;(_map$get=map.get(event2))==null?void 0:_map$get.forEach((handler=>handler(data)))},on(event2,listener){map.set(event2,[...map.get(event2)||[],listener])},off(event2,listener){var _map$get2;map.set(event2,((_map$get2=map.get(event2))==null?void 0:_map$get2.filter((l2=>l2!==listener)))||[])}}}const FloatingNodeContext=React.createContext(null);const FloatingTreeContext=React.createContext(null);const useFloatingParentNodeId=()=>{var _React$useContext;return((_React$useContext=React.useContext(FloatingNodeContext))==null?void 0:_React$useContext.id)||null};const useFloatingTree=()=>React.useContext(FloatingTreeContext);function getDocument(node2){return(node2==null?void 0:node2.ownerDocument)||document}function getWindow$1(value){return getDocument(value).defaultView||window}function isElement$1(value){return value?value instanceof getWindow$1(value).Element:false}function isShadowRoot$1(node2){if(typeof ShadowRoot==="undefined"){return false}const OwnElement=getWindow$1(node2).ShadowRoot;return node2 instanceof OwnElement||node2 instanceof ShadowRoot}function isMouseLikePointerType(pointerType,strict){const values=["mouse","pen"];{values.push("",void 0)}return values.includes(pointerType)}function contains(parent,child){if(!parent||!child){return false}const rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child)){return true}if(rootNode&&isShadowRoot$1(rootNode)){let next2=child;while(next2){if(parent===next2){return true}next2=next2.parentNode||next2.host}}return false}function useLatestRef(value){const ref=useRef(value);index$1((()=>{ref.current=value}));return ref}const safePolygonIdentifier="data-floating-ui-safe-polygon";function getDelay(value,prop,pointerType){if(pointerType&&!isMouseLikePointerType(pointerType)){return 0}if(typeof value==="number"){return value}return value==null?void 0:value[prop]}const useHover=function(context,props){if(props===void 0){props={}}const{open:open,onOpenChange:onOpenChange,dataRef:dataRef,events:events,elements:{domReference:domReference,floating:floating},refs:refs}=context;const{enabled:enabled=true,delay:delay=0,handleClose:handleClose=null,mouseOnly:mouseOnly=false,restMs:restMs=0,move:move=true}=props;const tree=useFloatingTree();const parentId=useFloatingParentNodeId();const handleCloseRef=useLatestRef(handleClose);const delayRef=useLatestRef(delay);const pointerTypeRef=React.useRef();const timeoutRef=React.useRef();const handlerRef=React.useRef();const restTimeoutRef=React.useRef();const blockMouseMoveRef=React.useRef(true);const performedPointerEventsMutationRef=React.useRef(false);const unbindMouseMoveRef=React.useRef((()=>{}));const isHoverOpen=React.useCallback((()=>{var _dataRef$current$open;const type=(_dataRef$current$open=dataRef.current.openEvent)==null?void 0:_dataRef$current$open.type;return(type==null?void 0:type.includes("mouse"))&&type!=="mousedown"}),[dataRef]);React.useEffect((()=>{if(!enabled){return}function onDismiss(){clearTimeout(timeoutRef.current);clearTimeout(restTimeoutRef.current);blockMouseMoveRef.current=true}events.on("dismiss",onDismiss);return()=>{events.off("dismiss",onDismiss)}}),[enabled,events]);React.useEffect((()=>{if(!enabled||!handleCloseRef.current||!open){return}function onLeave(){if(isHoverOpen()){onOpenChange(false)}}const html=getDocument(floating).documentElement;html.addEventListener("mouseleave",onLeave);return()=>{html.removeEventListener("mouseleave",onLeave)}}),[floating,open,onOpenChange,enabled,handleCloseRef,dataRef,isHoverOpen]);const closeWithDelay=React.useCallback((function(runElseBranch){if(runElseBranch===void 0){runElseBranch=true}const closeDelay=getDelay(delayRef.current,"close",pointerTypeRef.current);if(closeDelay&&!handlerRef.current){clearTimeout(timeoutRef.current);timeoutRef.current=setTimeout((()=>onOpenChange(false)),closeDelay)}else if(runElseBranch){clearTimeout(timeoutRef.current);onOpenChange(false)}}),[delayRef,onOpenChange]);const cleanupMouseMoveHandler=React.useCallback((()=>{unbindMouseMoveRef.current();handlerRef.current=void 0}),[]);const clearPointerEvents=React.useCallback((()=>{if(performedPointerEventsMutationRef.current){const body=getDocument(refs.floating.current).body;body.style.pointerEvents="";body.removeAttribute(safePolygonIdentifier);performedPointerEventsMutationRef.current=false}}),[refs]);React.useEffect((()=>{if(!enabled){return}function isClickLikeOpenEvent(){return dataRef.current.openEvent?["click","mousedown"].includes(dataRef.current.openEvent.type):false}function onMouseEnter(event2){clearTimeout(timeoutRef.current);blockMouseMoveRef.current=false;if(mouseOnly&&!isMouseLikePointerType(pointerTypeRef.current)||restMs>0&&getDelay(delayRef.current,"open")===0){return}dataRef.current.openEvent=event2;const openDelay=getDelay(delayRef.current,"open",pointerTypeRef.current);if(openDelay){timeoutRef.current=setTimeout((()=>{onOpenChange(true)}),openDelay)}else{onOpenChange(true)}}function onMouseLeave(event2){if(isClickLikeOpenEvent()){return}unbindMouseMoveRef.current();const doc=getDocument(floating);clearTimeout(restTimeoutRef.current);if(handleCloseRef.current){if(!open){clearTimeout(timeoutRef.current)}handlerRef.current=handleCloseRef.current({...context,tree:tree,x:event2.clientX,y:event2.clientY,onClose(){clearPointerEvents();cleanupMouseMoveHandler();closeWithDelay()}});const handler=handlerRef.current;doc.addEventListener("mousemove",handler);unbindMouseMoveRef.current=()=>{doc.removeEventListener("mousemove",handler)};return}const shouldClose=pointerTypeRef.current==="touch"?!contains(floating,event2.relatedTarget):true;if(shouldClose){closeWithDelay()}}function onScrollMouseLeave(event2){if(isClickLikeOpenEvent()){return}handleCloseRef.current==null?void 0:handleCloseRef.current({...context,tree:tree,x:event2.clientX,y:event2.clientY,onClose(){clearPointerEvents();cleanupMouseMoveHandler();closeWithDelay()}})(event2)}if(isElement$1(domReference)){const ref=domReference;open&&ref.addEventListener("mouseleave",onScrollMouseLeave);floating==null?void 0:floating.addEventListener("mouseleave",onScrollMouseLeave);move&&ref.addEventListener("mousemove",onMouseEnter,{once:true});ref.addEventListener("mouseenter",onMouseEnter);ref.addEventListener("mouseleave",onMouseLeave);return()=>{open&&ref.removeEventListener("mouseleave",onScrollMouseLeave);floating==null?void 0:floating.removeEventListener("mouseleave",onScrollMouseLeave);move&&ref.removeEventListener("mousemove",onMouseEnter);ref.removeEventListener("mouseenter",onMouseEnter);ref.removeEventListener("mouseleave",onMouseLeave)}}}),[domReference,floating,enabled,context,mouseOnly,restMs,move,closeWithDelay,cleanupMouseMoveHandler,clearPointerEvents,onOpenChange,open,tree,delayRef,handleCloseRef,dataRef]);index$1((()=>{var _handleCloseRef$curre;if(!enabled){return}if(open&&(_handleCloseRef$curre=handleCloseRef.current)!=null&&_handleCloseRef$curre.__options.blockPointerEvents&&isHoverOpen()){const body=getDocument(floating).body;body.setAttribute(safePolygonIdentifier,"");body.style.pointerEvents="none";performedPointerEventsMutationRef.current=true;if(isElement$1(domReference)&&floating){var _tree$nodesRef$curren,_tree$nodesRef$curren2;const ref=domReference;const parentFloating=tree==null?void 0:(_tree$nodesRef$curren=tree.nodesRef.current.find((node2=>node2.id===parentId)))==null?void 0:(_tree$nodesRef$curren2=_tree$nodesRef$curren.context)==null?void 0:_tree$nodesRef$curren2.elements.floating;if(parentFloating){parentFloating.style.pointerEvents=""}ref.style.pointerEvents="auto";floating.style.pointerEvents="auto";return()=>{ref.style.pointerEvents="";floating.style.pointerEvents=""}}}}),[enabled,open,parentId,floating,domReference,tree,handleCloseRef,dataRef,isHoverOpen]);index$1((()=>{if(!open){pointerTypeRef.current=void 0;cleanupMouseMoveHandler();clearPointerEvents()}}),[open,cleanupMouseMoveHandler,clearPointerEvents]);React.useEffect((()=>()=>{cleanupMouseMoveHandler();clearTimeout(timeoutRef.current);clearTimeout(restTimeoutRef.current);clearPointerEvents()}),[enabled,cleanupMouseMoveHandler,clearPointerEvents]);return React.useMemo((()=>{if(!enabled){return{}}function setPointerRef(event2){pointerTypeRef.current=event2.pointerType}return{reference:{onPointerDown:setPointerRef,onPointerEnter:setPointerRef,onMouseMove(){if(open||restMs===0){return}clearTimeout(restTimeoutRef.current);restTimeoutRef.current=setTimeout((()=>{if(!blockMouseMoveRef.current){onOpenChange(true)}}),restMs)}},floating:{onMouseEnter(){clearTimeout(timeoutRef.current)},onMouseLeave(){events.emit("dismiss",{type:"mouseLeave",data:{returnFocus:false}});closeWithDelay(false)}}}}),[events,enabled,restMs,open,onOpenChange,closeWithDelay])};function getChildren(nodes,id){let allChildren=nodes.filter((node2=>{var _node$context;return node2.parentId===id&&((_node$context=node2.context)==null?void 0:_node$context.open)}));let currentChildren=allChildren;while(currentChildren.length){currentChildren=nodes.filter((node2=>{var _currentChildren;return(_currentChildren=currentChildren)==null?void 0:_currentChildren.some((n2=>{var _node$context2;return node2.parentId===n2.id&&((_node$context2=node2.context)==null?void 0:_node$context2.open)}))}));allChildren=allChildren.concat(currentChildren)}return allChildren}function getTarget(event2){if("composedPath"in event2){return event2.composedPath()[0]}return event2.target}const useInsertionEffect$1=React["useInsertionEffect".toString()];const useSafeInsertionEffect=useInsertionEffect$1||(fn=>fn());function useEvent(callback){const ref=React.useRef((()=>{}));useSafeInsertionEffect((()=>{ref.current=callback}));return React.useCallback((function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return ref.current==null?void 0:ref.current(...args)}),[])}function isPointInPolygon(point,polygon){const[x2,y2]=point;let isInside2=false;const length2=polygon.length;for(let i=0,j=length2-1;i=y2!==yj>=y2&&x2<=(xj-xi)*(y2-yi)/(yj-yi)+xi;if(intersect){isInside2=!isInside2}}return isInside2}function isInside(point,rect){return point[0]>=rect.x&&point[0]<=rect.x+rect.width&&point[1]>=rect.y&&point[1]<=rect.y+rect.height}function safePolygon(_temp){let{restMs:restMs=0,buffer:buffer=.5,blockPointerEvents:blockPointerEvents=false}=_temp===void 0?{}:_temp;let timeoutId2;let isInsideRect=false;let hasLanded=false;const fn=_ref3=>{let{x:x2,y:y2,placement:placement,elements:elements,onClose:onClose,nodeId:nodeId,tree:tree}=_ref3;return function onMouseMove(event2){function close(){clearTimeout(timeoutId2);onClose()}clearTimeout(timeoutId2);if(!elements.domReference||!elements.floating||placement==null||x2==null||y2==null){return}const{clientX:clientX,clientY:clientY}=event2;const clientPoint=[clientX,clientY];const target=getTarget(event2);const isLeave=event2.type==="mouseleave";const isOverFloatingEl=contains(elements.floating,target);const isOverReferenceEl=contains(elements.domReference,target);const refRect=elements.domReference.getBoundingClientRect();const rect=elements.floating.getBoundingClientRect();const side=placement.split("-")[0];const cursorLeaveFromRight=x2>rect.right-rect.width/2;const cursorLeaveFromBottom=y2>rect.bottom-rect.height/2;const isOverReferenceRect=isInside(clientPoint,refRect);if(isOverFloatingEl){hasLanded=true;if(!isLeave){return}}if(isOverReferenceEl){hasLanded=false}if(isOverReferenceEl&&!isLeave){hasLanded=true;return}if(isLeave&&isElement$1(event2.relatedTarget)&&contains(elements.floating,event2.relatedTarget)){return}if(tree&&getChildren(tree.nodesRef.current,nodeId).some((_ref22=>{let{context:context}=_ref22;return context==null?void 0:context.open}))){return}if(side==="top"&&y2>=refRect.bottom-1||side==="bottom"&&y2<=refRect.top+1||side==="left"&&x2>=refRect.right-1||side==="right"&&x2<=refRect.left+1){return close()}let rectPoly=[];switch(side){case"top":rectPoly=[[rect.left,refRect.top+1],[rect.left,rect.bottom-1],[rect.right,rect.bottom-1],[rect.right,refRect.top+1]];isInsideRect=clientX>=rect.left&&clientX<=rect.right&&clientY>=rect.top&&clientY<=refRect.top+1;break;case"bottom":rectPoly=[[rect.left,rect.top+1],[rect.left,refRect.bottom-1],[rect.right,refRect.bottom-1],[rect.right,rect.top+1]];isInsideRect=clientX>=rect.left&&clientX<=rect.right&&clientY>=refRect.bottom-1&&clientY<=rect.bottom;break;case"left":rectPoly=[[rect.right-1,rect.bottom],[rect.right-1,rect.top],[refRect.left+1,rect.top],[refRect.left+1,rect.bottom]];isInsideRect=clientX>=rect.left&&clientX<=refRect.left+1&&clientY>=rect.top&&clientY<=rect.bottom;break;case"right":rectPoly=[[refRect.right-1,rect.bottom],[refRect.right-1,rect.top],[rect.left+1,rect.top],[rect.left+1,rect.bottom]];isInsideRect=clientX>=refRect.right-1&&clientX<=rect.right&&clientY>=rect.top&&clientY<=rect.bottom;break}function getPolygon(_ref32){let[x22,y22]=_ref32;const isFloatingWider=rect.width>refRect.width;const isFloatingTaller=rect.height>refRect.height;switch(side){case"top":{const cursorPointOne=[isFloatingWider?x22+buffer/2:cursorLeaveFromRight?x22+buffer*4:x22-buffer*4,y22+buffer+1];const cursorPointTwo=[isFloatingWider?x22-buffer/2:cursorLeaveFromRight?x22+buffer*4:x22-buffer*4,y22+buffer+1];const commonPoints=[[rect.left,cursorLeaveFromRight?rect.bottom-buffer:isFloatingWider?rect.bottom-buffer:rect.top],[rect.right,cursorLeaveFromRight?isFloatingWider?rect.bottom-buffer:rect.top:rect.bottom-buffer]];return[cursorPointOne,cursorPointTwo,...commonPoints]}case"bottom":{const cursorPointOne=[isFloatingWider?x22+buffer/2:cursorLeaveFromRight?x22+buffer*4:x22-buffer*4,y22-buffer];const cursorPointTwo=[isFloatingWider?x22-buffer/2:cursorLeaveFromRight?x22+buffer*4:x22-buffer*4,y22-buffer];const commonPoints=[[rect.left,cursorLeaveFromRight?rect.top+buffer:isFloatingWider?rect.top+buffer:rect.bottom],[rect.right,cursorLeaveFromRight?isFloatingWider?rect.top+buffer:rect.bottom:rect.top+buffer]];return[cursorPointOne,cursorPointTwo,...commonPoints]}case"left":{const cursorPointOne=[x22+buffer+1,isFloatingTaller?y22+buffer/2:cursorLeaveFromBottom?y22+buffer*4:y22-buffer*4];const cursorPointTwo=[x22+buffer+1,isFloatingTaller?y22-buffer/2:cursorLeaveFromBottom?y22+buffer*4:y22-buffer*4];const commonPoints=[[cursorLeaveFromBottom?rect.right-buffer:isFloatingTaller?rect.right-buffer:rect.left,rect.top],[cursorLeaveFromBottom?isFloatingTaller?rect.right-buffer:rect.left:rect.right-buffer,rect.bottom]];return[...commonPoints,cursorPointOne,cursorPointTwo]}case"right":{const cursorPointOne=[x22-buffer,isFloatingTaller?y22+buffer/2:cursorLeaveFromBottom?y22+buffer*4:y22-buffer*4];const cursorPointTwo=[x22-buffer,isFloatingTaller?y22-buffer/2:cursorLeaveFromBottom?y22+buffer*4:y22-buffer*4];const commonPoints=[[cursorLeaveFromBottom?rect.left+buffer:isFloatingTaller?rect.left+buffer:rect.right,rect.top],[cursorLeaveFromBottom?isFloatingTaller?rect.left+buffer:rect.right:rect.left+buffer,rect.bottom]];return[cursorPointOne,cursorPointTwo,...commonPoints]}}}const poly=isInsideRect?rectPoly:getPolygon([x2,y2]);if(isInsideRect){return}else if(hasLanded&&!isOverReferenceRect){return close()}if(!isPointInPolygon([clientX,clientY],poly)){close()}else if(restMs&&!hasLanded){timeoutId2=setTimeout(close,restMs)}}};fn.__options={blockPointerEvents:blockPointerEvents};return fn}function useFloating(options2){if(options2===void 0){options2={}}const{open:open=false,onOpenChange:unstable_onOpenChange,nodeId:nodeId}=options2;const position2=useFloating$1(options2);const tree=useFloatingTree();const domReferenceRef=React.useRef(null);const dataRef=React.useRef({});const events=React.useState((()=>createPubSub()))[0];const floatingId=useId();const[domReference,setDomReference]=React.useState(null);const setPositionReference=React.useCallback((node2=>{const positionReference=isElement$1(node2)?{getBoundingClientRect:()=>node2.getBoundingClientRect(),contextElement:node2}:node2;position2.refs.setReference(positionReference)}),[position2.refs]);const setReference=React.useCallback((node2=>{if(isElement$1(node2)||node2===null){domReferenceRef.current=node2;setDomReference(node2)}if(isElement$1(position2.refs.reference.current)||position2.refs.reference.current===null||node2!==null&&!isElement$1(node2)){position2.refs.setReference(node2)}}),[position2.refs]);const refs=React.useMemo((()=>({...position2.refs,setReference:setReference,setPositionReference:setPositionReference,domReference:domReferenceRef})),[position2.refs,setReference,setPositionReference]);const elements=React.useMemo((()=>({...position2.elements,domReference:domReference})),[position2.elements,domReference]);const onOpenChange=useEvent(unstable_onOpenChange);const context=React.useMemo((()=>({...position2,refs:refs,elements:elements,dataRef:dataRef,nodeId:nodeId,floatingId:floatingId,events:events,open:open,onOpenChange:onOpenChange})),[position2,nodeId,floatingId,events,open,onOpenChange,refs,elements]);index$1((()=>{const node2=tree==null?void 0:tree.nodesRef.current.find((node22=>node22.id===nodeId));if(node2){node2.context=context}}));return React.useMemo((()=>({...position2,context:context,refs:refs,elements:elements,reference:setReference,positionReference:setPositionReference})),[position2,refs,elements,context,setReference,setPositionReference])}function mergeProps(userProps,propsList,elementKey){const map=new Map;return{...elementKey==="floating"&&{tabIndex:-1},...userProps,...propsList.map((value=>value?value[elementKey]:null)).concat(userProps).reduce(((acc,props)=>{if(!props){return acc}Object.entries(props).forEach((_ref3=>{let[key,value]=_ref3;if(key.indexOf("on")===0){if(!map.has(key)){map.set(key,[])}if(typeof value==="function"){var _map$get;(_map$get=map.get(key))==null?void 0:_map$get.push(value);acc[key]=function(){var _map$get2;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return(_map$get2=map.get(key))==null?void 0:_map$get2.map((fn=>fn(...args))).find((val=>val!==void 0))}}}else{acc[key]=value}}));return acc}),{})}}const useInteractions=function(propsList){if(propsList===void 0){propsList=[]}const deps=propsList;const getReferenceProps=React.useCallback((userProps=>mergeProps(userProps,propsList,"reference")),deps);const getFloatingProps=React.useCallback((userProps=>mergeProps(userProps,propsList,"floating")),deps);const getItemProps=React.useCallback((userProps=>mergeProps(userProps,propsList,"item")),propsList.map((key=>key==null?void 0:key.item)));return React.useMemo((()=>({getReferenceProps:getReferenceProps,getFloatingProps:getFloatingProps,getItemProps:getItemProps})),[getReferenceProps,getFloatingProps,getItemProps])};const Tooltip=forwardRef(((props,ref)=>{const{aria:aria={},className:className,children:children,data:data={},delay:delay=0,htmlOptions:htmlOptions={},icon:icon=null,interaction:interaction=false,placement:preferredPlacement="top",position:position2="absolute",text:text,showTooltip:showTooltip=true,zIndex:zIndex,...rest}=props;const dataProps=buildDataProps(data);const ariaProps=buildAriaProps(aria);const htmlProps=buildHtmlProps(htmlOptions);const css4=classnames(globalProps({...rest}),className);const[open,setOpen]=useState(false);const arrowRef=useRef(null);const{context:context,middlewareData:{arrow:{x:arrowX,y:arrowY}={}},placement:placement,refs:refs,strategy:strategy,x:x2,y:y2}=useFloating({strategy:position2,middleware:[arrow({element:arrowRef}),b$1({fallbackPlacements:["top","right","bottom","left"],fallbackStrategy:"initialPlacement",flipAlignment:false}),D$1(10),k()],open:open,onOpenChange(open2){if(!showTooltip){return}else{setOpen(open2)}},placement:preferredPlacement});const{getFloatingProps:getFloatingProps}=useInteractions([useHover(context,{delay:delay,handleClose:interaction?safePolygon({blockPointerEvents:false}):null})]);const staticSide={bottom:"top",left:"right",right:"left",top:"bottom"}[placement.split("-")[0]];return jsxs(Fragment,{children:[jsx$1("div",{className:`pb_tooltip_kit ${css4}`,ref:element=>{refs.setReference(element);if(ref){if(typeof ref==="function"){ref(element)}else if(typeof ref==="object"){ref.current=element}}},role:"tooltip_trigger",style:{display:"inline-block"},...ariaProps,...dataProps,...htmlProps,children:children}),open&&jsxs("div",{...getFloatingProps({className:`tooltip_tooltip ${placement} visible`,ref:refs.setFloating,role:"tooltip",style:{position:strategy,top:y2??0,left:x2??0,zIndex:zIndex??0}}),children:[jsxs(Flex,{align:"center",gap:"xs",children:[icon&&jsx$1("i",{className:`pb_icon_kit far fa-${icon} fa-fw`}),text]}),jsx$1("div",{className:"arrow_bg",ref:arrowRef,style:{position:"absolute",left:arrowX!=null?`${arrowX}px`:"",top:arrowY!=null?`${arrowY}px`:"",[staticSide]:"-5px"}})]})]})}));Tooltip.displayName="Tooltip";const EditorButton=({classname:classname,disable:disable,onclick:onclick,icon:icon,text:text})=>jsx$1(Tooltip,{delay:{open:2e3},interaction:true,placement:"top",text:text,children:jsx$1("button",{className:classname,disabled:disable,onClick:onclick,role:"button",type:"button",children:jsx$1(Flex,{align:"center",className:"toolbar_button_icon",justify:"center",children:jsx$1(Icon,{icon:icon,size:"lg"})})})});const ToolbarDropdown=({editor:editor})=>{const[showPopover,setShowPopover]=useState(false);const toolbarDropdownItems=[{node:"paragraph",icon:"paragraph",isActive:editor.isActive("paragraph"),text:"Paragraph",onclick:()=>editor.chain().focus().setParagraph().run()},{node:"heading-1",icon:"h1",isActive:editor.isActive("heading",{level:1}),text:"Heading 1",onclick:()=>editor.chain().focus().toggleHeading({level:1}).run()},{node:"heading-2",icon:"h2",isActive:editor.isActive("heading",{level:2}),text:"Heading 2",onclick:()=>editor.chain().focus().toggleHeading({level:2}).run()},{node:"heading-3",icon:"h3",isActive:editor.isActive("heading",{level:3}),text:"Heading 3",onclick:()=>editor.chain().focus().toggleHeading({level:3}).run()},{node:"bulletList",icon:"list",isActive:editor.isActive("bulletList"),text:"Bullet List",onclick:()=>editor.chain().focus().toggleBulletList().run()},{node:"orderedList",icon:"list-ol",isActive:editor.isActive("orderedList"),text:"Ordered List",onclick:()=>editor.chain().focus().toggleOrderedList().run()},{node:"blockquote",icon:"block-quote",isActive:editor.isActive("blockquote"),text:"Block Quote",onclick:()=>editor.chain().focus().toggleBlockquote().run()}];const handleTogglePopover=()=>{setShowPopover(!showPopover)};const handlePopoverClose=shouldClosePopover=>{setShowPopover(!shouldClosePopover)};let activeCount=0;const activeItems=[];for(const{text:text,isActive:isActive,icon:icon}of toolbarDropdownItems){if(isActive){activeCount++;activeItems.push(jsxs(Flex,{align:"center",gap:"xs",children:[jsx$1(Icon,{icon:icon,size:"lg"}),jsx$1("div",{children:text}),jsx$1(Flex,{className:showPopover?"fa-flip-vertical":"",display:"inline_flex",children:jsx$1(Icon,{fixedWidth:true,icon:"angle-down","margin-left":"xs"})})]},icon))}}const popoverReference=jsx$1(Button,{className:"editor-dropdown-button",onClick:handleTogglePopover,variant:"secondary",children:activeCount===2?activeItems[1]:activeCount===1?activeItems[0]||null:jsxs(Flex,{align:"center",gap:"xs",children:[jsx$1(Icon,{icon:"paragraph",size:"lg"}),jsx$1("div",{children:"Paragraph"}),jsx$1(Flex,{className:showPopover?"fa-flip-vertical":"",display:"inline_flex",children:jsx$1(Icon,{fixedWidth:true,icon:"angle-down","margin-left":"xs"})})]},"paragraph")});return jsx$1(PbReactPopover,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:popoverReference,shouldClosePopover:handlePopoverClose,show:showPopover,children:jsx$1(Nav,{paddingBottom:"xs",paddingTop:"xs",variant:"subtle",children:toolbarDropdownItems.map((({icon:icon,text:text,onclick:onclick,isActive:isActive},index2)=>jsx$1(NavItem,{className:`pb_tiptap_toolbar_dropdown_list_item ${isActive?"is-active":""}`,cursor:"pointer",iconLeft:icon,margin:"none",onClick:()=>{onclick();setShowPopover(false)},paddingBottom:"xxs",paddingTop:"xxs",text:text},`${text}_${index2}`)))})})};const ToolbarNodes=({editor:editor})=>{const setLink=useCallback((()=>{const previousUrl=editor.getAttributes("link").href;const url=window.prompt("URL",previousUrl);if(url===null){return}if(url===""){editor.chain().focus().extendMarkRange("link").unsetLink().run();return}editor.chain().focus().extendMarkRange("link").setLink({href:url}).run()}),[editor]);const toolbarNodesItems=[{onclick:()=>editor.chain().focus().toggleCodeBlock().run(),icon:"code",isActive:editor.isActive("codeBlock"),text:"Codeblock"},{onclick:setLink,icon:"link",isActive:editor.isActive("link"),text:"Link"}];return jsx$1(Fragment,{children:toolbarNodesItems.map((({onclick:onclick,icon:icon,text:text,isActive:isActive},index2)=>jsx$1(EditorButton,{classname:`toolbar_button ${isActive?"is-active":""}`,icon:icon,onclick:onclick,text:text},index2)))})};const ToolbarHistoryItems=({editor:editor})=>{const toolbarHistoryItems=[{classname:`toolbar_button`,icon:"undo",text:"Undo",onclick:()=>editor.chain().focus().undo().run(),disable:!editor.can().chain().focus().undo().run()},{classname:`toolbar_button`,icon:"redo",text:"Redo",onclick:()=>editor.chain().focus().redo().run(),disable:!editor.can().chain().focus().redo().run()}];return jsx$1(Fragment,{children:jsx$1(FlexItem,{displayFlex:true,children:toolbarHistoryItems.map((({onclick:onclick,classname:classname,disable:disable,icon:icon,text:text},index2)=>jsx$1(EditorButton,{classname:classname,disable:disable,icon:icon,onclick:onclick,text:text},index2)))})})};const MoreExtensionsDropdown=({extensions:extensions})=>{const[showPopover,setShowPopover]=useState(false);const handleTogglePopover=()=>{setShowPopover(!showPopover)};const handlePopoverClose=shouldClosePopover=>{setShowPopover(!shouldClosePopover)};const popoverReference=jsx$1("button",{className:"toolbar_button",onClick:handleTogglePopover,role:"button",type:"button",children:jsx$1(Flex,{align:"center",className:"toolbar_button_icon",justify:"center",children:jsx$1(Icon,{icon:"ellipsis",size:"lg"})})});return jsx$1(PbReactPopover,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:popoverReference,shouldClosePopover:handlePopoverClose,show:showPopover,children:jsx$1(Nav,{paddingBottom:extensions.length>1?"xs":"none",paddingTop:extensions.length>1?"xs":"none",variant:"subtle",children:extensions&&extensions.map((({icon:icon,text:text,onclick:onclick,isActive:isActive},index2)=>jsx$1(NavItem,{className:`pb_tiptap_toolbar_dropdown_list_item ${isActive?"is-active":""}`,cursor:"pointer",iconLeft:icon,margin:"none",onClick:()=>{onclick();setShowPopover(false)},paddingBottom:"xxs",paddingTop:"xxs",text:text},`${text}_${index2}`)))})})};const EditorToolbar=({editor:editor,extensions:extensions})=>{const toolbaritems=[{icon:"bold",text:"Bold",classname:`toolbar_button ${editor.isActive("bold")?"is-active":""}`,onclick:()=>editor.chain().focus().toggleBold().run()},{icon:"italic",text:"Italic",classname:`toolbar_button ${editor.isActive("italic")?"is-active":""}`,onclick:()=>editor.chain().focus().toggleItalic().run()},{icon:"strikethrough",text:"Strikethrough",classname:`toolbar_button ${editor.isActive("strike")?"is-active":""}`,onclick:()=>editor.chain().focus().toggleStrike().run()}];return jsx$1(Background,{backgroundColor:"white",className:"toolbar",children:jsxs(Flex,{flex:"0",justify:"between",paddingX:"sm",paddingY:"xxs",children:[jsxs(FlexItem,{className:"toolbar_block",displayFlex:true,children:[jsx$1(ToolbarDropdown,{editor:editor}),jsx$1(SectionSeparator,{orientation:"vertical"}),toolbaritems&&toolbaritems.map((({icon:icon,text:text,classname:classname,onclick:onclick},index2)=>jsx$1(EditorButton,{classname:classname,icon:icon,onclick:onclick,text:text},index2))),jsx$1(SectionSeparator,{orientation:"vertical"}),jsx$1(ToolbarNodes,{editor:editor}),extensions&&jsx$1(Fragment,{children:jsx$1(MoreExtensionsDropdown,{extensions:extensions})})]}),jsx$1(ToolbarHistoryItems,{editor:editor})]})})};Trix.config.textAttributes.inlineCode={tagName:"code",inheritable:true};const RichTextEditor=props=>{const{aria:aria={},advancedEditor:advancedEditor,advancedEditorToolbar:advancedEditorToolbar=true,toolbarBottom:toolbarBottom=false,children:children,className:className,data:data={},focus:focus=false,htmlOptions:htmlOptions={},inline:inline=false,extensions:extensions,name:name2,onChange:onChange2=noop$1,placeholder:placeholder,simple:simple=false,sticky:sticky=false,template:template="",value:value="",maxWidth:maxWidth="md"}=props;const ariaProps=buildAriaProps(aria),dataProps=buildDataProps(data),[editor,setEditor]=useState();const htmlProps=buildHtmlProps(htmlOptions);const handleOnEditorReady=editorInstance=>setEditor(editorInstance),element=editor==null?void 0:editor.element;if(editor){const toolbarElement=element.parentElement.querySelector("trix-toolbar"),blockCodeButton=toolbarElement.querySelector("[data-trix-attribute=code]");let inlineCodeButton=toolbarElement.querySelector("[data-trix-attribute=inlineCode]");if(!inlineCodeButton){inlineCodeButton=blockCodeButton.cloneNode(true);blockCodeButton.hidden=true;inlineCodeButton.dataset.trixAttribute="inlineCode";blockCodeButton.insertAdjacentElement("afterend",inlineCodeButton)}if(toolbarBottom)editor.element.after(toolbarElement);focus?(document.addEventListener("trix-focus",useFocus),document.addEventListener("trix-blur",useFocus),useFocus()):null;document.addEventListener("trix-focus",inlineFocus);document.addEventListener("trix-blur",inlineFocus)}useEffect((()=>{if(!editor||!template)return;editor.loadHTML("");editor.setSelectedRange([0,0]);editor.insertHTML(template)}),[editor,template]);useEffect((()=>{if(!element)return;element.addEventListener("click",(({target:target})=>{const trixEditorContainer=target.closest(".pb_rich_text_editor_kit");if(!trixEditorContainer)return;const anchorElement=target.closest("a");if(!anchorElement)return;if(anchorElement.hasAttribute("href"))window.open(anchorElement.href)}))}),[element]);const richTextEditorClass="pb_rich_text_editor_kit",simpleClass=simple?"simple":"",focusClass=focus?"focus-editor-targets":"",stickyClass=sticky?"sticky":"",inlineClass=inline?"inline":"",toolbarBottomClass=toolbarBottom?"toolbar-bottom":"";let css4=classnames(globalProps(props,{maxWidth:maxWidth}),className);css4=classnames(richTextEditorClass,simpleClass,focusClass,stickyClass,inlineClass,toolbarBottomClass,css4);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:css4,children:advancedEditor?jsxs("div",{className:classnames("pb_rich_text_editor_advanced_container",{["toolbar-active"]:advancedEditorToolbar}),children:[advancedEditorToolbar&&jsx$1(EditorToolbar,{editor:advancedEditor,extensions:extensions}),children]}):jsx$1(TrixEditor,{className:"",fileParamName:name2,mergeTags:[],onChange:onChange2,onEditorReady:handleOnEditorReady,placeholder:placeholder,value:value})})};var treemap$1={exports:{}};(function(module){(function(a2){module.exports?(a2["default"]=a2,module.exports=a2):a2("undefined"!==typeof Highcharts?Highcharts:void 0)})((function(a2){function u2(a3,e2,b2,m2){a3.hasOwnProperty(e2)||(a3[e2]=m2.apply(null,b2),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e2,module:a3[e2]}})))}a2=a2?a2._modules:{};u2(a2,"Series/ColorMapComposition.js",[a2["Core/Series/SeriesRegistry.js"],a2["Core/Utilities.js"]],(function(a3,e2){var b2=a3.seriesTypes.column.prototype,m2=e2.addEvent,l2=e2.defined,n2;(function(a4){function e3(c2){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:c2&&"hover"===c2.state?1:0})}var f2=[];a4.pointMembers={dataLabelOnNull:true,moveToTopOnHover:true,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value&&(void 0===this.value||!isNaN(this.value))}};a4.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(c2){var h2={};!l2(c2.color)||c2.state&&"normal"!==c2.state||(h2[this.colorProp||"fill"]=c2.color);return h2},pointAttribs:b2.pointAttribs};a4.compose=function(c2){var h2=c2.prototype.pointClass;-1===f2.indexOf(h2)&&(f2.push(h2),m2(h2,"afterSetState",e3));return c2}})(n2||(n2={}));return n2}));u2(a2,"Series/Treemap/TreemapAlgorithmGroup.js",[],(function(){return function(){function a3(a4,b2,m2,l2){this.height=a4;this.width=b2;this.plot=l2;this.startDirection=this.direction=m2;this.lH=this.nH=this.lW=this.nW=this.total=0;this.elArr=[];this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(a5,e2){return Math.max(a5/e2,e2/a5)}}}a3.prototype.addElement=function(a4){this.lP.total=this.elArr[this.elArr.length-1];this.total+=a4;0===this.direction?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH));this.elArr.push(a4)};a3.prototype.reset=function(){this.lW=this.nW=0;this.elArr=[];this.total=0};return a3}()}));u2(a2,"Series/DrawPointUtilities.js",[a2["Core/Utilities.js"]],(function(a3){return{draw:function(a4,b2){var e2=b2.animatableAttribs,l2=b2.onComplete,n2=b2.css,q=b2.renderer,k2=a4.series&&a4.series.chart.hasRendered?void 0:a4.series&&a4.series.options.animation,f2=a4.graphic;b2.attribs=b2.attribs||{};b2.attribs["class"]=a4.getClassName();if(a4.shouldDraw())f2||(a4.graphic=f2="text"===b2.shapeType?q.text():q[b2.shapeType](b2.shapeArgs||{}),f2.add(b2.group)),n2&&f2.css(n2),f2.attr(b2.attribs).animate(e2,b2.isNew?false:k2,l2);else if(f2){var c2=function(){a4.graphic=f2=f2&&f2.destroy();"function"===typeof l2&&l2()};Object.keys(e2).length?f2.animate(e2,void 0,(function(){return c2()})):c2()}}}}));u2(a2,"Series/Treemap/TreemapPoint.js",[a2["Series/DrawPointUtilities.js"],a2["Core/Series/SeriesRegistry.js"],a2["Core/Utilities.js"]],(function(a3,e2,b2){var m2=this&&this.__extends||function(){var a4=function(c2,b3){a4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a5,c3){a5.__proto__=c3}||function(a5,c3){for(var g2 in c3)c3.hasOwnProperty(g2)&&(a5[g2]=c3[g2])};return a4(c2,b3)};return function(c2,b3){function h2(){this.constructor=c2}a4(c2,b3);c2.prototype=null===b3?Object.create(b3):(h2.prototype=b3.prototype,new h2)}}(),l2=e2.series.prototype.pointClass,n2=e2.seriesTypes;e2=n2.pie.prototype.pointClass;var q=b2.extend,k2=b2.isNumber,f2=b2.pick;b2=function(c2){function h2(){var a4=null!==c2&&c2.apply(this,arguments)||this;a4.name=void 0;a4.node=void 0;a4.options=void 0;a4.series=void 0;a4.shapeType="rect";a4.value=void 0;return a4}m2(h2,c2);h2.prototype.draw=function(c3){a3.draw(this,c3)};h2.prototype.getClassName=function(){var a4=l2.prototype.getClassName.call(this),c3=this.series,h3=c3.options;this.node.level<=c3.nodeMap[c3.rootNode].level?a4+=" highcharts-above-level":this.node.isLeaf||f2(h3.interactByLeaf,!h3.allowTraversingTree)?this.node.isLeaf||(a4+=" highcharts-internal-node"):a4+=" highcharts-internal-node-interactive";return a4};h2.prototype.isValid=function(){return!(!this.id&&!k2(this.value))};h2.prototype.setState=function(a4){l2.prototype.setState.call(this,a4);this.graphic&&this.graphic.attr({zIndex:"hover"===a4?1:0})};h2.prototype.shouldDraw=function(){return k2(this.plotY)&&null!==this.y};return h2}(n2.scatter.prototype.pointClass);q(b2.prototype,{setVisible:e2.prototype.setVisible});return b2}));u2(a2,"Series/Treemap/TreemapUtilities.js",[a2["Core/Utilities.js"]],(function(a3){var e2=a3.objectEach,b2;(function(a4){function b3(a5,e3,k2){void 0===k2&&(k2=this);a5=e3.call(k2,a5);false!==a5&&b3(a5,e3,k2)}a4.AXIS_MAX=100;a4.isBoolean=function(a5){return"boolean"===typeof a5};a4.eachObject=function(a5,b4,k2){k2=k2||this;e2(a5,(function(e3,c2){b4.call(k2,e3,c2,a5)}))};a4.recursive=b3})(b2||(b2={}));return b2}));u2(a2,"Series/TreeUtilities.js",[a2["Core/Color/Color.js"],a2["Core/Utilities.js"]],(function(a3,e2){function b2(a4,h2){var c2=h2.before,e3=h2.idRoot,v2=h2.mapIdToNode[e3],g2=h2.points[a4.i],r2=g2&&g2.options||{},w2=[],x2=0;a4.levelDynamic=a4.level-(false!==h2.levelIsConstant?0:v2.level);a4.name=f2(g2&&g2.name,"");a4.visible=e3===a4.id||true===h2.visible;"function"===typeof c2&&(a4=c2(a4,h2));a4.children.forEach((function(g3,c3){var r3=m2({},h2);m2(r3,{index:c3,siblings:a4.children.length,visible:a4.visible});g3=b2(g3,r3);w2.push(g3);g3.visible&&(x2+=g3.val)}));c2=f2(r2.value,x2);a4.visible=0<=c2&&(0f3.lP.lR&&p2.algorithmCalcPoints(a5,false,f3,d2,e3);g3===h3&&p2.algorithmCalcPoints(a5,true,f3,d2,e3);g3+=1}));return d2};b3.prototype.alignDataLabel=function(a5,b4,c3){var d2=c3.style;d2&&!A2(d2.textOverflow)&&b4.text&&b4.getBBox().width>b4.text.textWidth&&b4.css({textOverflow:"ellipsis",width:d2.width+="px"});r2.prototype.alignDataLabel.apply(this,arguments);a5.dataLabel&&a5.dataLabel.attr({zIndex:(a5.node.zIndex||0)+1})};b3.prototype.calculateChildrenAreas=function(a5,b4){var d2=this,c3=d2.options,p2=d2.mapOptionsToLevel[a5.level+1],e3=y2(d2[p2&&p2.layoutAlgorithm]&&p2.layoutAlgorithm,c3.layoutAlgorithm),g3=c3.alternateStartingDirection,f3=[];a5=a5.children.filter((function(a6){return!a6.ignore}));p2&&p2.layoutStartingDirection&&(b4.direction="vertical"===p2.layoutStartingDirection?0:1);f3=d2[e3](b4,a5);a5.forEach((function(a6,c4){c4=f3[c4];a6.values=z2(c4,{val:a6.childrenTotal,direction:g3?1-b4.direction:b4.direction});a6.pointValues=z2(c4,{x:c4.x/d2.axisRatio,y:k2.AXIS_MAX-c4.y-c4.height,width:c4.width/d2.axisRatio});a6.children.length&&d2.calculateChildrenAreas(a6,a6.values)}))};b3.prototype.createList=function(a5){var d2=this.chart,b4=[];if(d2.breadcrumbs){var c3=0;b4.push({level:c3,levelOptions:d2.series[0]});d2=a5.target.nodeMap[a5.newRootId];for(var e3=[];d2.parent||""===d2.parent;)e3.push(d2),d2=a5.target.nodeMap[d2.parent];e3.reverse().forEach((function(a6){b4.push({level:++c3,levelOptions:a6})}));1>=b4.length&&(b4.length=0)}return b4};b3.prototype.drawDataLabels=function(){var a5=this,b4=a5.mapOptionsToLevel,c3,e3;a5.points.filter((function(a6){return a6.node.visible})).forEach((function(d2){e3=b4[d2.node.level];c3={style:{}};d2.node.isLeaf||(c3.enabled=false);e3&&e3.dataLabels&&(c3=z2(c3,e3.dataLabels),a5._hasPointLabels=true);d2.shapeArgs&&(c3.style.width=d2.shapeArgs.width,d2.dataLabel&&d2.dataLabel.css({width:d2.shapeArgs.width+"px"}));d2.dlOptions=z2(c3,d2.options.dataLabels)}));g2.prototype.drawDataLabels.call(this)};b3.prototype.drawPoints=function(a5){void 0===a5&&(a5=this.points);var d2=this,b4=d2.chart,c3=b4.renderer,e3=b4.styledMode,g3=d2.options,f3=e3?{}:g3.shadow,h3=g3.borderRadius,k3=b4.pointCount{point.name}: {point.value}
"},ignoreHiddenPoint:true,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:false,levelIsConstant:true,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:w2?0:.1,halo:false,opacity:.75,shadow:false}}});return b3}(x2);D2(f2.prototype,{buildKDTree:a3,colorAttribs:e2.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:true,drawLegendSymbol:m2.drawRectangle,getExtremesFromAll:true,getSymbol:a3,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:q,NodeClass:u3,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:k2.recursive}});e2.compose(f2);l2.registerSeriesType("treemap",f2);return f2}));u2(a2,"masters/modules/treemap.src.js",[a2["Core/Globals.js"],a2["Extensions/Breadcrumbs.js"]],(function(a3,e2){a3.Breadcrumbs=e2}))}))})(treemap$1);var treemapExports=treemap$1.exports;const treemap=getDefaultExportFromCjs(treemapExports);const TreemapChart=({aria:aria={},data:data={},chartData:chartData,colors:colors2,customOptions:customOptions={},dark:dark=false,drillable:drillable=false,grouped:grouped=false,height:height,htmlOptions:htmlOptions={},id:id,title:title="",tooltipHtml:tooltipHtml='{point.name}: {point.value}',type:type="treemap",...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};treemap(Highcharts$1);setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},credits:false,series:[{data:chartData}],plotOptions:{treemap:{tooltip:{pointFormat:tooltipHtml},allowTraversingTree:drillable,colorByPoint:!grouped,colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors}}};const[options2,setOptions]=useState({});useEffect((()=>{setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx$1(HighchartsReact,{containerProps:{className:classnames(globalProps(props),"pb_treemap_chart"),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})};function _typeof(o2){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o3){return typeof o3}:function(o3){return o3&&"function"==typeof Symbol&&o3.constructor===Symbol&&o3!==Symbol.prototype?"symbol":typeof o3},_typeof(o2)}function toPrimitive(t2,r2){if("object"!=_typeof(t2)||!t2)return t2;var e2=t2[Symbol.toPrimitive];if(void 0!==e2){var i=e2.call(t2,r2||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r2?String:Number)(t2)}function toPropertyKey(t2){var i=toPrimitive(t2,"string");return"symbol"==_typeof(i)?i:String(i)}function _defineProperty(obj,key,value){key=toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function ownKeys(e2,r2){var t2=Object.keys(e2);if(Object.getOwnPropertySymbols){var o2=Object.getOwnPropertySymbols(e2);r2&&(o2=o2.filter((function(r3){return Object.getOwnPropertyDescriptor(e2,r3).enumerable}))),t2.push.apply(t2,o2)}return t2}function _objectSpread2(e2){for(var r2=1;r2arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i=0)continue;target[key]=source[key]}return target}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key]}}return target}var _excluded$6=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function useStateManager(_ref3){var _ref$defaultInputValu=_ref3.defaultInputValue,defaultInputValue=_ref$defaultInputValu===void 0?"":_ref$defaultInputValu,_ref$defaultMenuIsOpe=_ref3.defaultMenuIsOpen,defaultMenuIsOpen=_ref$defaultMenuIsOpe===void 0?false:_ref$defaultMenuIsOpe,_ref$defaultValue=_ref3.defaultValue,defaultValue=_ref$defaultValue===void 0?null:_ref$defaultValue,propsInputValue=_ref3.inputValue,propsMenuIsOpen=_ref3.menuIsOpen,propsOnChange=_ref3.onChange,propsOnInputChange=_ref3.onInputChange,propsOnMenuClose=_ref3.onMenuClose,propsOnMenuOpen=_ref3.onMenuOpen,propsValue=_ref3.value,restSelectProps=_objectWithoutProperties(_ref3,_excluded$6);var _useState=useState(propsInputValue!==void 0?propsInputValue:defaultInputValue),_useState2=_slicedToArray(_useState,2),stateInputValue=_useState2[0],setStateInputValue=_useState2[1];var _useState3=useState(propsMenuIsOpen!==void 0?propsMenuIsOpen:defaultMenuIsOpen),_useState4=_slicedToArray(_useState3,2),stateMenuIsOpen=_useState4[0],setStateMenuIsOpen=_useState4[1];var _useState5=useState(propsValue!==void 0?propsValue:defaultValue),_useState6=_slicedToArray(_useState5,2),stateValue=_useState6[0],setStateValue=_useState6[1];var onChange2=useCallback((function(value2,actionMeta){if(typeof propsOnChange==="function"){propsOnChange(value2,actionMeta)}setStateValue(value2)}),[propsOnChange]);var onInputChange=useCallback((function(value2,actionMeta){var newValue;if(typeof propsOnInputChange==="function"){newValue=propsOnInputChange(value2,actionMeta)}setStateInputValue(newValue!==void 0?newValue:value2)}),[propsOnInputChange]);var onMenuOpen=useCallback((function(){if(typeof propsOnMenuOpen==="function"){propsOnMenuOpen()}setStateMenuIsOpen(true)}),[propsOnMenuOpen]);var onMenuClose=useCallback((function(){if(typeof propsOnMenuClose==="function"){propsOnMenuClose()}setStateMenuIsOpen(false)}),[propsOnMenuClose]);var inputValue=propsInputValue!==void 0?propsInputValue:stateInputValue;var menuIsOpen=propsMenuIsOpen!==void 0?propsMenuIsOpen:stateMenuIsOpen;var value=propsValue!==void 0?propsValue:stateValue;return _objectSpread2(_objectSpread2({},restSelectProps),{},{inputValue:inputValue,menuIsOpen:menuIsOpen,onChange:onChange2,onInputChange:onInputChange,onMenuClose:onMenuClose,onMenuOpen:onMenuOpen,value:value})}function _extends(){_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i0?charat(characters,--position):0;if(column--,character===10)column=1,line--;return character}function next(){character=position2||token(character)>3?"":" "}function escaping(index2,count2){while(--count2&&next())if(character<48||character>102||character>57&&character<65||character>70&&character<97)break;return slice(index2,caret()+(count2<6&&peek()==32&&next()==32))}function delimiter(type){while(next())switch(character){case type:return position;case 34:case 39:if(type!==34&&type!==39)delimiter(character);break;case 40:if(type===41)delimiter(type);break;case 92:next();break}return position}function commenter(type,index2){while(next())if(type+character===47+10)break;else if(type+character===42+42&&peek()===47)break;return"/*"+slice(index2,position-1)+"*"+from(type===47?type:next())}function identifier(index2){while(!token(peek()))next();return slice(index2,position)}function compile(value){return dealloc(parse("",null,null,null,[""],value=alloc(value),0,[0],value))}function parse(value,root,parent,rule,rules,rulesets,pseudo,points,declarations){var index2=0;var offset=0;var length2=pseudo;var atrule=0;var property=0;var previous=0;var variable=1;var scanning=1;var ampersand=1;var character2=0;var type="";var props=rules;var children=rulesets;var reference=rule;var characters2=type;while(scanning)switch(previous=character2,character2=next()){case 40:if(previous!=108&&charat(characters2,length2-1)==58){if(indexof(characters2+=replace(delimit(character2),"&","&\f"),"&\f")!=-1)ampersand=-1;break}case 34:case 39:case 91:characters2+=delimit(character2);break;case 9:case 10:case 13:case 32:characters2+=whitespace(previous);break;case 92:characters2+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),root,parent),declarations);break;default:characters2+="/"}break;case 123*variable:points[index2++]=strlen(characters2)*ampersand;case 125*variable:case 59:case 0:switch(character2){case 0:case 125:scanning=0;case 59+offset:if(ampersand==-1)characters2=replace(characters2,/\f/g,"");if(property>0&&strlen(characters2)-length2)append(property>32?declaration(characters2+";",rule,parent,length2-1):declaration(replace(characters2," ","")+";",rule,parent,length2-2),declarations);break;case 59:characters2+=";";default:append(reference=ruleset(characters2,root,parent,index2,offset,rules,points,type,props=[],children=[],length2),rulesets);if(character2===123)if(offset===0)parse(characters2,root,reference,reference,props,rulesets,length2,points,children);else switch(atrule===99&&charat(characters2,3)===110?100:atrule){case 100:case 108:case 109:case 115:parse(value,reference,reference,rule&&append(ruleset(value,reference,reference,0,0,rules,points,type,rules,props=[],length2),children),rules,children,length2,points,rule?props:children);break;default:parse(characters2,reference,reference,reference,[""],children,0,points,children)}}index2=offset=property=0,variable=ampersand=1,type=characters2="",length2=pseudo;break;case 58:length2=1+strlen(characters2),property=previous;default:if(variable<1){if(character2==123)--variable;else if(character2==125&&variable++==0&&prev()==125)continue}switch(characters2+=from(character2),character2*variable){case 38:ampersand=offset>0?1:(characters2+="\f",-1);break;case 44:points[index2++]=(strlen(characters2)-1)*ampersand,ampersand=1;break;case 64:if(peek()===45)characters2+=delimit(next());atrule=peek(),offset=length2=strlen(type=characters2+=identifier(caret())),character2++;break;case 45:if(previous===45&&strlen(characters2)==2)variable=0}}return rulesets}function ruleset(value,root,parent,index2,offset,rules,points,type,props,children,length2){var post=offset-1;var rule=offset===0?rules:[""];var size=sizeof(rule);for(var i=0,j=0,k2=0;i0?rule[x2]+" "+y2:replace(y2,/&\f/g,rule[x2])))props[k2++]=z2;return node(value,root,parent,offset===0?RULESET:type,props,children,length2)}function comment(value,root,parent){return node(value,root,parent,COMMENT,from(char()),substr(value,2,-2),0)}function declaration(value,root,parent,length2){return node(value,root,parent,DECLARATION,substr(value,0,length2),substr(value,length2+1,-1),length2)}function serialize(children,callback){var output="";var length2=sizeof(children);for(var i=0;i6)switch(charat(value,length2+1)){case 109:if(charat(value,length2+4)!==45)break;case 102:return replace(value,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(value,length2+3)==108?"$3":"$2-$3"))+value;case 115:return~indexof(value,"stretch")?prefix(replace(value,"stretch","fill-available"),length2)+value:value}break;case 4949:if(charat(value,length2+1)!==115)break;case 6444:switch(charat(value,strlen(value)-3-(~indexof(value,"!important")&&10))){case 107:return replace(value,":",":"+WEBKIT)+value;case 101:return replace(value,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(value,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+value}break;case 5936:switch(charat(value,length2+11)){case 114:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb")+value;case 108:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb-rl")+value;case 45:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"lr")+value}return WEBKIT+value+MS+value+value}return value}var prefixer=function prefixer2(element,index2,children,callback){if(element.length>-1){if(!element["return"])switch(element.type){case DECLARATION:element["return"]=prefix(element.value,element.length);break;case KEYFRAMES:return serialize([copy(element,{value:replace(element.value,"@","@"+WEBKIT)})],callback);case RULESET:if(element.length)return combine(element.props,(function(value){switch(match(value,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(element,{props:[replace(value,/:(read-\w+)/,":"+MOZ+"$1")]})],callback);case"::placeholder":return serialize([copy(element,{props:[replace(value,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,MS+"input-$1")]})],callback)}return""}))}}};var defaultStylisPlugins=[prefixer];var createCache=function createCache2(options2){var key=options2.key;if(key==="css"){var ssrStyles=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(ssrStyles,(function(node2){var dataEmotionAttribute=node2.getAttribute("data-emotion");if(dataEmotionAttribute.indexOf(" ")===-1){return}document.head.appendChild(node2);node2.setAttribute("data-s","")}))}var stylisPlugins=options2.stylisPlugins||defaultStylisPlugins;var inserted={};var container;var nodesToHydrate=[];{container=options2.container||document.head;Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+key+' "]'),(function(node2){var attrib=node2.getAttribute("data-emotion").split(" ");for(var i=1;i=4;++i,len-=4){k2=str.charCodeAt(i)&255|(str.charCodeAt(++i)&255)<<8|(str.charCodeAt(++i)&255)<<16|(str.charCodeAt(++i)&255)<<24;k2=(k2&65535)*1540483477+((k2>>>16)*59797<<16);k2^=k2>>>24;h2=(k2&65535)*1540483477+((k2>>>16)*59797<<16)^(h2&65535)*1540483477+((h2>>>16)*59797<<16)}switch(len){case 3:h2^=(str.charCodeAt(i+2)&255)<<16;case 2:h2^=(str.charCodeAt(i+1)&255)<<8;case 1:h2^=str.charCodeAt(i)&255;h2=(h2&65535)*1540483477+((h2>>>16)*59797<<16)}h2^=h2>>>13;h2=(h2&65535)*1540483477+((h2>>>16)*59797<<16);return((h2^h2>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var hyphenateRegex=/[A-Z]|^ms/g;var animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g;var isCustomProperty=function isCustomProperty2(property){return property.charCodeAt(1)===45};var isProcessableValue=function isProcessableValue2(value){return value!=null&&typeof value!=="boolean"};var processStyleName=memoize((function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase()}));var processStyleValue=function processStyleValue2(key,value){switch(key){case"animation":case"animationName":{if(typeof value==="string"){return value.replace(animationRegex,(function(match2,p1,p2){cursor={name:p1,styles:p2,next:cursor};return p1}))}}}if(unitlessKeys[key]!==1&&!isCustomProperty(key)&&typeof value==="number"&&value!==0){return value+"px"}return value};var noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(mergedProps,registered,interpolation){if(interpolation==null){return""}if(interpolation.__emotion_styles!==void 0){return interpolation}switch(typeof interpolation){case"boolean":{return""}case"object":{if(interpolation.anim===1){cursor={name:interpolation.name,styles:interpolation.styles,next:cursor};return interpolation.name}if(interpolation.styles!==void 0){var next2=interpolation.next;if(next2!==void 0){while(next2!==void 0){cursor={name:next2.name,styles:next2.styles,next:cursor};next2=next2.next}}var styles=interpolation.styles+";";return styles}return createStringFromObject(mergedProps,registered,interpolation)}case"function":{if(mergedProps!==void 0){var previousCursor=cursor;var result=interpolation(mergedProps);cursor=previousCursor;return handleInterpolation(mergedProps,registered,result)}break}}{return interpolation}}function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj)){for(var i=0;i({x:v2,y:v2});function rectToClientRect(rect){return{...rect,top:rect.y,left:rect.x,right:rect.x+rect.width,bottom:rect.y+rect.height}}function getNodeName(node2){if(isNode(node2)){return(node2.nodeName||"").toLowerCase()}return"#document"}function getWindow(node2){var _node$ownerDocument;return(node2==null||(_node$ownerDocument=node2.ownerDocument)==null?void 0:_node$ownerDocument.defaultView)||window}function getDocumentElement(node2){var _ref3;return(_ref3=(isNode(node2)?node2.ownerDocument:node2.document)||window.document)==null?void 0:_ref3.documentElement}function isNode(value){return value instanceof Node||value instanceof getWindow(value).Node}function isElement(value){return value instanceof Element||value instanceof getWindow(value).Element}function isHTMLElement(value){return value instanceof HTMLElement||value instanceof getWindow(value).HTMLElement}function isShadowRoot(value){if(typeof ShadowRoot==="undefined"){return false}return value instanceof ShadowRoot||value instanceof getWindow(value).ShadowRoot}function isOverflowElement(element){const{overflow:overflow,overflowX:overflowX,overflowY:overflowY,display:display}=getComputedStyle$1(element);return/auto|scroll|overlay|hidden|clip/.test(overflow+overflowY+overflowX)&&!["inline","contents"].includes(display)}function isWebKit(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(node2){return["html","body","#document"].includes(getNodeName(node2))}function getComputedStyle$1(element){return getWindow(element).getComputedStyle(element)}function getParentNode(node2){if(getNodeName(node2)==="html"){return node2}const result=node2.assignedSlot||node2.parentNode||isShadowRoot(node2)&&node2.host||getDocumentElement(node2);return isShadowRoot(result)?result.host:result}function getNearestOverflowAncestor(node2){const parentNode=getParentNode(node2);if(isLastTraversableNode(parentNode)){return node2.ownerDocument?node2.ownerDocument.body:node2.body}if(isHTMLElement(parentNode)&&isOverflowElement(parentNode)){return parentNode}return getNearestOverflowAncestor(parentNode)}function getOverflowAncestors(node2,list,traverseIframes){var _node$ownerDocument2;if(list===void 0){list=[]}if(traverseIframes===void 0){traverseIframes=true}const scrollableAncestor=getNearestOverflowAncestor(node2);const isBody=scrollableAncestor===((_node$ownerDocument2=node2.ownerDocument)==null?void 0:_node$ownerDocument2.body);const win=getWindow(scrollableAncestor);if(isBody){return list.concat(win,win.visualViewport||[],isOverflowElement(scrollableAncestor)?scrollableAncestor:[],win.frameElement&&traverseIframes?getOverflowAncestors(win.frameElement):[])}return list.concat(scrollableAncestor,getOverflowAncestors(scrollableAncestor,[],traverseIframes))}function getCssDimensions(element){const css4=getComputedStyle$1(element);let width=parseFloat(css4.width)||0;let height=parseFloat(css4.height)||0;const hasOffset=isHTMLElement(element);const offsetWidth=hasOffset?element.offsetWidth:width;const offsetHeight=hasOffset?element.offsetHeight:height;const shouldFallback=round(width)!==offsetWidth||round(height)!==offsetHeight;if(shouldFallback){width=offsetWidth;height=offsetHeight}return{width:width,height:height,$:shouldFallback}}function unwrapElement(element){return!isElement(element)?element.contextElement:element}function getScale(element){const domElement=unwrapElement(element);if(!isHTMLElement(domElement)){return createCoords(1)}const rect=domElement.getBoundingClientRect();const{width:width,height:height,$:$}=getCssDimensions(domElement);let x2=($?round(rect.width):rect.width)/width;let y2=($?round(rect.height):rect.height)/height;if(!x2||!Number.isFinite(x2)){x2=1}if(!y2||!Number.isFinite(y2)){y2=1}return{x:x2,y:y2}}const noOffsets=createCoords(0);function getVisualOffsets(element){const win=getWindow(element);if(!isWebKit()||!win.visualViewport){return noOffsets}return{x:win.visualViewport.offsetLeft,y:win.visualViewport.offsetTop}}function shouldAddVisualOffsets(element,isFixed,floatingOffsetParent){{return false}}function getBoundingClientRect(element,includeScale,isFixedStrategy,offsetParent){if(includeScale===void 0){includeScale=false}const clientRect=element.getBoundingClientRect();const domElement=unwrapElement(element);let scale=createCoords(1);if(includeScale){{scale=getScale(element)}}const visualOffsets=shouldAddVisualOffsets()?getVisualOffsets(domElement):createCoords(0);let x2=(clientRect.left+visualOffsets.x)/scale.x;let y2=(clientRect.top+visualOffsets.y)/scale.y;let width=clientRect.width/scale.x;let height=clientRect.height/scale.y;if(domElement){const win=getWindow(domElement);const offsetWin=offsetParent;let currentIFrame=win.frameElement;while(currentIFrame&&offsetParent&&offsetWin!==win){const iframeScale=getScale(currentIFrame);const iframeRect=currentIFrame.getBoundingClientRect();const css4=getComputedStyle$1(currentIFrame);const left=iframeRect.left+(currentIFrame.clientLeft+parseFloat(css4.paddingLeft))*iframeScale.x;const top=iframeRect.top+(currentIFrame.clientTop+parseFloat(css4.paddingTop))*iframeScale.y;x2*=iframeScale.x;y2*=iframeScale.y;width*=iframeScale.x;height*=iframeScale.y;x2+=left;y2+=top;currentIFrame=getWindow(currentIFrame).frameElement}}return rectToClientRect({width:width,height:height,x:x2,y:y2})}function observeMove(element,onMove){let io=null;let timeoutId;const root=getDocumentElement(element);function cleanup(){clearTimeout(timeoutId);io&&io.disconnect();io=null}function refresh(skip,threshold){if(skip===void 0){skip=false}if(threshold===void 0){threshold=1}cleanup();const{left:left,top:top,width:width,height:height}=element.getBoundingClientRect();if(!skip){onMove()}if(!width||!height){return}const insetTop=floor(top);const insetRight=floor(root.clientWidth-(left+width));const insetBottom=floor(root.clientHeight-(top+height));const insetLeft=floor(left);const rootMargin=-insetTop+"px "+-insetRight+"px "+-insetBottom+"px "+-insetLeft+"px";const options2={rootMargin:rootMargin,threshold:max(0,min(1,threshold))||1};let isFirstUpdate=true;function handleObserve(entries){const ratio=entries[0].intersectionRatio;if(ratio!==threshold){if(!isFirstUpdate){return refresh()}if(!ratio){timeoutId=setTimeout((()=>{refresh(false,1e-7)}),100)}else{refresh(false,ratio)}}isFirstUpdate=false}try{io=new IntersectionObserver(handleObserve,{...options2,root:root.ownerDocument})}catch(e2){io=new IntersectionObserver(handleObserve,options2)}io.observe(element)}refresh(true);return cleanup}function autoUpdate(reference,floating,update,options2){if(options2===void 0){options2={}}const{ancestorScroll:ancestorScroll=true,ancestorResize:ancestorResize=true,elementResize:elementResize=typeof ResizeObserver==="function",layoutShift:layoutShift=typeof IntersectionObserver==="function",animationFrame:animationFrame=false}=options2;const referenceEl=unwrapElement(reference);const ancestors=ancestorScroll||ancestorResize?[...referenceEl?getOverflowAncestors(referenceEl):[],...getOverflowAncestors(floating)]:[];ancestors.forEach((ancestor=>{ancestorScroll&&ancestor.addEventListener("scroll",update,{passive:true});ancestorResize&&ancestor.addEventListener("resize",update)}));const cleanupIo=referenceEl&&layoutShift?observeMove(referenceEl,update):null;let reobserveFrame=-1;let resizeObserver=null;if(elementResize){resizeObserver=new ResizeObserver((_ref3=>{let[firstEntry]=_ref3;if(firstEntry&&firstEntry.target===referenceEl&&resizeObserver){resizeObserver.unobserve(floating);cancelAnimationFrame(reobserveFrame);reobserveFrame=requestAnimationFrame((()=>{resizeObserver&&resizeObserver.observe(floating)}))}update()}));if(referenceEl&&!animationFrame){resizeObserver.observe(referenceEl)}resizeObserver.observe(floating)}let frameId;let prevRefRect=animationFrame?getBoundingClientRect(reference):null;if(animationFrame){frameLoop()}function frameLoop(){const nextRefRect=getBoundingClientRect(reference);if(prevRefRect&&(nextRefRect.x!==prevRefRect.x||nextRefRect.y!==prevRefRect.y||nextRefRect.width!==prevRefRect.width||nextRefRect.height!==prevRefRect.height)){update()}prevRefRect=nextRefRect;frameId=requestAnimationFrame(frameLoop)}update();return()=>{ancestors.forEach((ancestor=>{ancestorScroll&&ancestor.removeEventListener("scroll",update);ancestorResize&&ancestor.removeEventListener("resize",update)}));cleanupIo&&cleanupIo();resizeObserver&&resizeObserver.disconnect();resizeObserver=null;if(animationFrame){cancelAnimationFrame(frameId)}}}var index=useLayoutEffect;var _excluded$4=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"];var noop=function noop2(){};function applyPrefixToName(prefix2,name2){if(!name2){return prefix2}else if(name2[0]==="-"){return prefix2+name2}else{return prefix2+"__"+name2}}function classNames(prefix2,state){for(var _len=arguments.length,classNameList=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++){classNameList[_key-2]=arguments[_key]}var arr=[].concat(classNameList);if(state&&prefix2){for(var key in state){if(state.hasOwnProperty(key)&&state[key]){arr.push("".concat(applyPrefixToName(prefix2,key)))}}}return arr.filter((function(i){return i})).map((function(i){return String(i).trim()})).join(" ")}var cleanValue=function cleanValue2(value){if(isArray(value))return value.filter(Boolean);if(_typeof(value)==="object"&&value!==null)return[value];return[]};var cleanCommonProps=function cleanCommonProps2(props){props.className;props.clearValue;props.cx;props.getStyles;props.getClassNames;props.getValue;props.hasValue;props.isMulti;props.isRtl;props.options;props.selectOption;props.selectProps;props.setValue;props.theme;var innerProps=_objectWithoutProperties(props,_excluded$4);return _objectSpread2({},innerProps)};var getStyleProps=function getStyleProps2(props,name2,classNamesState){var cx=props.cx,getStyles=props.getStyles,getClassNames=props.getClassNames,className=props.className;return{css:getStyles(name2,props),className:cx(classNamesState!==null&&classNamesState!==void 0?classNamesState:{},getClassNames(name2,props),className)}};function handleInputChange(inputValue,actionMeta,onInputChange){if(onInputChange){var _newValue=onInputChange(inputValue,actionMeta);if(typeof _newValue==="string")return _newValue}return inputValue}function isDocumentElement(el){return[document.documentElement,document.body,window].indexOf(el)>-1}function normalizedHeight(el){if(isDocumentElement(el)){return window.innerHeight}return el.clientHeight}function getScrollTop(el){if(isDocumentElement(el)){return window.pageYOffset}return el.scrollTop}function scrollTo(el,top){if(isDocumentElement(el)){window.scrollTo(0,top);return}el.scrollTop=top}function getScrollParent(element){var style=getComputedStyle(element);var excludeStaticParent=style.position==="absolute";var overflowRx=/(auto|scroll)/;if(style.position==="fixed")return document.documentElement;for(var parent=element;parent=parent.parentElement;){style=getComputedStyle(parent);if(excludeStaticParent&&style.position==="static"){continue}if(overflowRx.test(style.overflow+style.overflowY+style.overflowX)){return parent}}return document.documentElement}function easeOutCubic(t2,b2,c2,d2){return c2*((t2=t2/d2-1)*t2*t2+1)+b2}function animatedScrollTo(element,to){var duration=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200;var callback=arguments.length>3&&arguments[3]!==void 0?arguments[3]:noop;var start=getScrollTop(element);var change=to-start;var increment=10;var currentTime=0;function animateScroll(){currentTime+=increment;var val=easeOutCubic(currentTime,start,change,duration);scrollTo(element,val);if(currentTimemenuRect.bottom){scrollTo(menuEl,Math.min(focusedEl.offsetTop+focusedEl.clientHeight-menuEl.offsetHeight+overScroll,menuEl.scrollHeight))}else if(focusedRect.top-overScroll1?_len2-1:0),_key2=1;_key2<_len2;_key2++){properties[_key2-1]=arguments[_key2]}var propsMap=Object.entries(propsObj).filter((function(_ref3){var _ref22=_slicedToArray(_ref3,1),key=_ref22[0];return!properties.includes(key)}));return propsMap.reduce((function(newProps,_ref3){var _ref4=_slicedToArray(_ref3,2),key=_ref4[0],val=_ref4[1];newProps[key]=val;return newProps}),{})};var _excluded$3=["children","innerProps"],_excluded2$1=["children","innerProps"];function getMenuPlacement(_ref3){var preferredMaxHeight=_ref3.maxHeight,menuEl=_ref3.menuEl,minHeight=_ref3.minHeight,preferredPlacement=_ref3.placement,shouldScroll=_ref3.shouldScroll,isFixedPosition=_ref3.isFixedPosition,controlHeight2=_ref3.controlHeight;var scrollParent=getScrollParent(menuEl);var defaultState={placement:"bottom",maxHeight:preferredMaxHeight};if(!menuEl||!menuEl.offsetParent)return defaultState;var _scrollParent$getBoun=scrollParent.getBoundingClientRect(),scrollHeight=_scrollParent$getBoun.height;var _menuEl$getBoundingCl=menuEl.getBoundingClientRect(),menuBottom=_menuEl$getBoundingCl.bottom,menuHeight=_menuEl$getBoundingCl.height,menuTop=_menuEl$getBoundingCl.top;var _menuEl$offsetParent$=menuEl.offsetParent.getBoundingClientRect(),containerTop=_menuEl$offsetParent$.top;var viewHeight=isFixedPosition?window.innerHeight:normalizedHeight(scrollParent);var scrollTop=getScrollTop(scrollParent);var marginBottom=parseInt(getComputedStyle(menuEl).marginBottom,10);var marginTop=parseInt(getComputedStyle(menuEl).marginTop,10);var viewSpaceAbove=containerTop-marginTop;var viewSpaceBelow=viewHeight-menuTop;var scrollSpaceAbove=viewSpaceAbove+scrollTop;var scrollSpaceBelow=scrollHeight-scrollTop-menuTop;var scrollDown=menuBottom-viewHeight+scrollTop+marginBottom;var scrollUp=scrollTop+menuTop-marginTop;var scrollDuration=160;switch(preferredPlacement){case"auto":case"bottom":if(viewSpaceBelow>=menuHeight){return{placement:"bottom",maxHeight:preferredMaxHeight}}if(scrollSpaceBelow>=menuHeight&&!isFixedPosition){if(shouldScroll){animatedScrollTo(scrollParent,scrollDown,scrollDuration)}return{placement:"bottom",maxHeight:preferredMaxHeight}}if(!isFixedPosition&&scrollSpaceBelow>=minHeight||isFixedPosition&&viewSpaceBelow>=minHeight){if(shouldScroll){animatedScrollTo(scrollParent,scrollDown,scrollDuration)}var constrainedHeight=isFixedPosition?viewSpaceBelow-marginBottom:scrollSpaceBelow-marginBottom;return{placement:"bottom",maxHeight:constrainedHeight}}if(preferredPlacement==="auto"||isFixedPosition){var _constrainedHeight=preferredMaxHeight;var spaceAbove=isFixedPosition?viewSpaceAbove:scrollSpaceAbove;if(spaceAbove>=minHeight){_constrainedHeight=Math.min(spaceAbove-marginBottom-controlHeight2,preferredMaxHeight)}return{placement:"top",maxHeight:_constrainedHeight}}if(preferredPlacement==="bottom"){if(shouldScroll){scrollTo(scrollParent,scrollDown)}return{placement:"bottom",maxHeight:preferredMaxHeight}}break;case"top":if(viewSpaceAbove>=menuHeight){return{placement:"top",maxHeight:preferredMaxHeight}}if(scrollSpaceAbove>=menuHeight&&!isFixedPosition){if(shouldScroll){animatedScrollTo(scrollParent,scrollUp,scrollDuration)}return{placement:"top",maxHeight:preferredMaxHeight}}if(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight){var _constrainedHeight2=preferredMaxHeight;if(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight){_constrainedHeight2=isFixedPosition?viewSpaceAbove-marginTop:scrollSpaceAbove-marginTop}if(shouldScroll){animatedScrollTo(scrollParent,scrollUp,scrollDuration)}return{placement:"top",maxHeight:_constrainedHeight2}}return{placement:"bottom",maxHeight:preferredMaxHeight};default:throw new Error('Invalid placement provided "'.concat(preferredPlacement,'".'))}return defaultState}function alignToControl(placement){var placementToCSSProp={bottom:"top",top:"bottom"};return placement?placementToCSSProp[placement]:"bottom"}var coercePlacement=function coercePlacement2(p2){return p2==="auto"?"bottom":p2};var menuCSS=function menuCSS2(_ref22,unstyled){var _objectSpread2$1;var placement=_ref22.placement,_ref2$theme=_ref22.theme,borderRadius2=_ref2$theme.borderRadius,spacing2=_ref2$theme.spacing,colors2=_ref2$theme.colors;return _objectSpread2((_objectSpread2$1={label:"menu"},_defineProperty(_objectSpread2$1,alignToControl(placement),"100%"),_defineProperty(_objectSpread2$1,"position","absolute"),_defineProperty(_objectSpread2$1,"width","100%"),_defineProperty(_objectSpread2$1,"zIndex",1),_objectSpread2$1),unstyled?{}:{backgroundColor:colors2.neutral0,borderRadius:borderRadius2,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:spacing2.menuGutter,marginTop:spacing2.menuGutter})};var PortalPlacementContext=createContext(null);var MenuPlacer=function MenuPlacer2(props){var children=props.children,minMenuHeight=props.minMenuHeight,maxMenuHeight=props.maxMenuHeight,menuPlacement=props.menuPlacement,menuPosition=props.menuPosition,menuShouldScrollIntoView=props.menuShouldScrollIntoView,theme=props.theme;var _ref3=useContext(PortalPlacementContext)||{},setPortalPlacement=_ref3.setPortalPlacement;var ref=useRef(null);var _useState=useState(maxMenuHeight),_useState2=_slicedToArray(_useState,2),maxHeight=_useState2[0],setMaxHeight=_useState2[1];var _useState3=useState(null),_useState4=_slicedToArray(_useState3,2),placement=_useState4[0],setPlacement=_useState4[1];var controlHeight2=theme.spacing.controlHeight;index((function(){var menuEl=ref.current;if(!menuEl)return;var isFixedPosition=menuPosition==="fixed";var shouldScroll=menuShouldScrollIntoView&&!isFixedPosition;var state=getMenuPlacement({maxHeight:maxMenuHeight,menuEl:menuEl,minHeight:minMenuHeight,placement:menuPlacement,shouldScroll:shouldScroll,isFixedPosition:isFixedPosition,controlHeight:controlHeight2});setMaxHeight(state.maxHeight);setPlacement(state.placement);setPortalPlacement===null||setPortalPlacement===void 0?void 0:setPortalPlacement(state.placement)}),[maxMenuHeight,menuPlacement,menuPosition,menuShouldScrollIntoView,minMenuHeight,setPortalPlacement,controlHeight2]);return children({ref:ref,placerProps:_objectSpread2(_objectSpread2({},props),{},{placement:placement||coercePlacement(menuPlacement),maxHeight:maxHeight})})};var Menu=function Menu2(props){var children=props.children,innerRef=props.innerRef,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"menu",{menu:true}),{ref:innerRef},innerProps),children)};var Menu$1=Menu;var menuListCSS=function menuListCSS2(_ref4,unstyled){var maxHeight=_ref4.maxHeight,baseUnit2=_ref4.theme.spacing.baseUnit;return _objectSpread2({maxHeight:maxHeight,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},unstyled?{}:{paddingBottom:baseUnit2,paddingTop:baseUnit2})};var MenuList$1=function MenuList2(props){var children=props.children,innerProps=props.innerProps,innerRef=props.innerRef,isMulti=props.isMulti;return jsx("div",_extends({},getStyleProps(props,"menuList",{"menu-list":true,"menu-list--is-multi":isMulti}),{ref:innerRef},innerProps),children)};var noticeCSS=function noticeCSS2(_ref5,unstyled){var _ref5$theme=_ref5.theme,baseUnit2=_ref5$theme.spacing.baseUnit,colors2=_ref5$theme.colors;return _objectSpread2({textAlign:"center"},unstyled?{}:{color:colors2.neutral40,padding:"".concat(baseUnit2*2,"px ").concat(baseUnit2*3,"px")})};var noOptionsMessageCSS=noticeCSS;var loadingMessageCSS=noticeCSS;var NoOptionsMessage=function NoOptionsMessage2(_ref6){var _ref6$children=_ref6.children,children=_ref6$children===void 0?"No options":_ref6$children,innerProps=_ref6.innerProps,restProps=_objectWithoutProperties(_ref6,_excluded$3);return jsx("div",_extends({},getStyleProps(_objectSpread2(_objectSpread2({},restProps),{},{children:children,innerProps:innerProps}),"noOptionsMessage",{"menu-notice":true,"menu-notice--no-options":true}),innerProps),children)};var LoadingMessage=function LoadingMessage2(_ref7){var _ref7$children=_ref7.children,children=_ref7$children===void 0?"Loading...":_ref7$children,innerProps=_ref7.innerProps,restProps=_objectWithoutProperties(_ref7,_excluded2$1);return jsx("div",_extends({},getStyleProps(_objectSpread2(_objectSpread2({},restProps),{},{children:children,innerProps:innerProps}),"loadingMessage",{"menu-notice":true,"menu-notice--loading":true}),innerProps),children)};var menuPortalCSS=function menuPortalCSS2(_ref8){var rect=_ref8.rect,offset=_ref8.offset,position2=_ref8.position;return{left:rect.left,position:position2,top:offset,width:rect.width,zIndex:1}};var MenuPortal=function MenuPortal2(props){var appendTo=props.appendTo,children=props.children,controlElement=props.controlElement,innerProps=props.innerProps,menuPlacement=props.menuPlacement,menuPosition=props.menuPosition;var menuPortalRef=useRef(null);var cleanupRef=useRef(null);var _useState5=useState(coercePlacement(menuPlacement)),_useState6=_slicedToArray(_useState5,2),placement=_useState6[0],setPortalPlacement=_useState6[1];var portalPlacementContext=useMemo((function(){return{setPortalPlacement:setPortalPlacement}}),[]);var _useState7=useState(null),_useState8=_slicedToArray(_useState7,2),computedPosition=_useState8[0],setComputedPosition=_useState8[1];var updateComputedPosition=useCallback((function(){if(!controlElement)return;var rect=getBoundingClientObj(controlElement);var scrollDistance=menuPosition==="fixed"?0:window.pageYOffset;var offset=rect[placement]+scrollDistance;if(offset!==(computedPosition===null||computedPosition===void 0?void 0:computedPosition.offset)||rect.left!==(computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.left)||rect.width!==(computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.width)){setComputedPosition({offset:offset,rect:rect})}}),[controlElement,menuPosition,placement,computedPosition===null||computedPosition===void 0?void 0:computedPosition.offset,computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.left,computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.width]);index((function(){updateComputedPosition()}),[updateComputedPosition]);var runAutoUpdate=useCallback((function(){if(typeof cleanupRef.current==="function"){cleanupRef.current();cleanupRef.current=null}if(controlElement&&menuPortalRef.current){cleanupRef.current=autoUpdate(controlElement,menuPortalRef.current,updateComputedPosition,{elementResize:"ResizeObserver"in window})}}),[controlElement,updateComputedPosition]);index((function(){runAutoUpdate()}),[runAutoUpdate]);var setMenuPortalElement=useCallback((function(menuPortalElement){menuPortalRef.current=menuPortalElement;runAutoUpdate()}),[runAutoUpdate]);if(!appendTo&&menuPosition!=="fixed"||!computedPosition)return null;var menuWrapper=jsx("div",_extends({ref:setMenuPortalElement},getStyleProps(_objectSpread2(_objectSpread2({},props),{},{offset:computedPosition.offset,position:menuPosition,rect:computedPosition.rect}),"menuPortal",{"menu-portal":true}),innerProps),children);return jsx(PortalPlacementContext.Provider,{value:portalPlacementContext},appendTo?createPortal(menuWrapper,appendTo):menuWrapper)};var containerCSS=function containerCSS2(_ref3){var isDisabled=_ref3.isDisabled,isRtl=_ref3.isRtl;return{label:"container",direction:isRtl?"rtl":void 0,pointerEvents:isDisabled?"none":void 0,position:"relative"}};var SelectContainer=function SelectContainer2(props){var children=props.children,innerProps=props.innerProps,isDisabled=props.isDisabled,isRtl=props.isRtl;return jsx("div",_extends({},getStyleProps(props,"container",{"--is-disabled":isDisabled,"--is-rtl":isRtl}),innerProps),children)};var valueContainerCSS=function valueContainerCSS2(_ref22,unstyled){var spacing2=_ref22.theme.spacing,isMulti=_ref22.isMulti,hasValue=_ref22.hasValue,controlShouldRenderValue=_ref22.selectProps.controlShouldRenderValue;return _objectSpread2({alignItems:"center",display:isMulti&&hasValue&&controlShouldRenderValue?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},unstyled?{}:{padding:"".concat(spacing2.baseUnit/2,"px ").concat(spacing2.baseUnit*2,"px")})};var ValueContainer$1=function ValueContainer2(props){var children=props.children,innerProps=props.innerProps,isMulti=props.isMulti,hasValue=props.hasValue;return jsx("div",_extends({},getStyleProps(props,"valueContainer",{"value-container":true,"value-container--is-multi":isMulti,"value-container--has-value":hasValue}),innerProps),children)};var indicatorsContainerCSS=function indicatorsContainerCSS2(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}};var IndicatorsContainer$1=function IndicatorsContainer2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"indicatorsContainer",{indicators:true}),innerProps),children)};var _templateObject;var _excluded$2$1=["size"],_excluded2=["innerProps","isRtl","size"];var _ref2$2={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"};var Svg=function Svg2(_ref3){var size=_ref3.size,props=_objectWithoutProperties(_ref3,_excluded$2$1);return jsx("svg",_extends({height:size,width:size,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_ref2$2},props))};var CrossIcon=function CrossIcon2(props){return jsx(Svg,_extends({size:20},props),jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))};var DownChevron=function DownChevron2(props){return jsx(Svg,_extends({size:20},props),jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))};var baseCSS=function baseCSS2(_ref3,unstyled){var isFocused=_ref3.isFocused,_ref3$theme=_ref3.theme,baseUnit2=_ref3$theme.spacing.baseUnit,colors2=_ref3$theme.colors;return _objectSpread2({label:"indicatorContainer",display:"flex",transition:"color 150ms"},unstyled?{}:{color:isFocused?colors2.neutral60:colors2.neutral20,padding:baseUnit2*2,":hover":{color:isFocused?colors2.neutral80:colors2.neutral40}})};var dropdownIndicatorCSS=baseCSS;var DropdownIndicator=function DropdownIndicator2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"dropdownIndicator",{indicator:true,"dropdown-indicator":true}),innerProps),children||jsx(DownChevron,null))};var clearIndicatorCSS=baseCSS;var ClearIndicator=function ClearIndicator2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"clearIndicator",{indicator:true,"clear-indicator":true}),innerProps),children||jsx(CrossIcon,null))};var indicatorSeparatorCSS=function indicatorSeparatorCSS2(_ref4,unstyled){var isDisabled=_ref4.isDisabled,_ref4$theme=_ref4.theme,baseUnit2=_ref4$theme.spacing.baseUnit,colors2=_ref4$theme.colors;return _objectSpread2({label:"indicatorSeparator",alignSelf:"stretch",width:1},unstyled?{}:{backgroundColor:isDisabled?colors2.neutral10:colors2.neutral20,marginBottom:baseUnit2*2,marginTop:baseUnit2*2})};var IndicatorSeparator=function IndicatorSeparator2(props){var innerProps=props.innerProps;return jsx("span",_extends({},innerProps,getStyleProps(props,"indicatorSeparator",{"indicator-separator":true})))};var loadingDotAnimations=keyframes(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"])));var loadingIndicatorCSS=function loadingIndicatorCSS2(_ref5,unstyled){var isFocused=_ref5.isFocused,size=_ref5.size,_ref5$theme=_ref5.theme,colors2=_ref5$theme.colors,baseUnit2=_ref5$theme.spacing.baseUnit;return _objectSpread2({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:size,lineHeight:1,marginRight:size,textAlign:"center",verticalAlign:"middle"},unstyled?{}:{color:isFocused?colors2.neutral60:colors2.neutral20,padding:baseUnit2*2})};var LoadingDot=function LoadingDot2(_ref6){var delay=_ref6.delay,offset=_ref6.offset;return jsx("span",{css:css({animation:"".concat(loadingDotAnimations," 1s ease-in-out ").concat(delay,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:offset?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})};var LoadingIndicator=function LoadingIndicator2(_ref7){var innerProps=_ref7.innerProps,isRtl=_ref7.isRtl,_ref7$size=_ref7.size,size=_ref7$size===void 0?4:_ref7$size,restProps=_objectWithoutProperties(_ref7,_excluded2);return jsx("div",_extends({},getStyleProps(_objectSpread2(_objectSpread2({},restProps),{},{innerProps:innerProps,isRtl:isRtl,size:size}),"loadingIndicator",{indicator:true,"loading-indicator":true}),innerProps),jsx(LoadingDot,{delay:0,offset:isRtl}),jsx(LoadingDot,{delay:160,offset:true}),jsx(LoadingDot,{delay:320,offset:!isRtl}))};var css$1=function css2(_ref3,unstyled){var isDisabled=_ref3.isDisabled,isFocused=_ref3.isFocused,_ref$theme=_ref3.theme,colors2=_ref$theme.colors,borderRadius2=_ref$theme.borderRadius,spacing2=_ref$theme.spacing;return _objectSpread2({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:spacing2.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},unstyled?{}:{backgroundColor:isDisabled?colors2.neutral5:colors2.neutral0,borderColor:isDisabled?colors2.neutral10:isFocused?colors2.primary:colors2.neutral20,borderRadius:borderRadius2,borderStyle:"solid",borderWidth:1,boxShadow:isFocused?"0 0 0 1px ".concat(colors2.primary):void 0,"&:hover":{borderColor:isFocused?colors2.primary:colors2.neutral30}})};var Control=function Control2(props){var children=props.children,isDisabled=props.isDisabled,isFocused=props.isFocused,innerRef=props.innerRef,innerProps=props.innerProps,menuIsOpen=props.menuIsOpen;return jsx("div",_extends({ref:innerRef},getStyleProps(props,"control",{control:true,"control--is-disabled":isDisabled,"control--is-focused":isFocused,"control--menu-is-open":menuIsOpen}),innerProps,{"aria-disabled":isDisabled||void 0}),children)};var Control$1=Control;var _excluded$1$1=["data"];var groupCSS=function groupCSS2(_ref3,unstyled){var spacing2=_ref3.theme.spacing;return unstyled?{}:{paddingBottom:spacing2.baseUnit*2,paddingTop:spacing2.baseUnit*2}};var Group=function Group2(props){var children=props.children,cx=props.cx,getStyles=props.getStyles,getClassNames=props.getClassNames,Heading=props.Heading,headingProps=props.headingProps,innerProps=props.innerProps,label=props.label,theme=props.theme,selectProps=props.selectProps;return jsx("div",_extends({},getStyleProps(props,"group",{group:true}),innerProps),jsx(Heading,_extends({},headingProps,{selectProps:selectProps,theme:theme,getStyles:getStyles,getClassNames:getClassNames,cx:cx}),label),jsx("div",null,children))};var groupHeadingCSS=function groupHeadingCSS2(_ref22,unstyled){var _ref2$theme=_ref22.theme,colors2=_ref2$theme.colors,spacing2=_ref2$theme.spacing;return _objectSpread2({label:"group",cursor:"default",display:"block"},unstyled?{}:{color:colors2.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:spacing2.baseUnit*3,paddingRight:spacing2.baseUnit*3,textTransform:"uppercase"})};var GroupHeading=function GroupHeading2(props){var _cleanCommonProps=cleanCommonProps(props);_cleanCommonProps.data;var innerProps=_objectWithoutProperties(_cleanCommonProps,_excluded$1$1);return jsx("div",_extends({},getStyleProps(props,"groupHeading",{"group-heading":true}),innerProps))};var Group$1=Group;var _excluded$5=["innerRef","isDisabled","isHidden","inputClassName"];var inputCSS=function inputCSS2(_ref3,unstyled){var isDisabled=_ref3.isDisabled,value=_ref3.value,_ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,colors2=_ref$theme.colors;return _objectSpread2(_objectSpread2({visibility:isDisabled?"hidden":"visible",transform:value?"translateZ(0)":""},containerStyle),unstyled?{}:{margin:spacing2.baseUnit/2,paddingBottom:spacing2.baseUnit/2,paddingTop:spacing2.baseUnit/2,color:colors2.neutral80})};var spacingStyle={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0};var containerStyle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_objectSpread2({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},spacingStyle)};var inputStyle=function inputStyle2(isHidden){return _objectSpread2({label:"input",color:"inherit",background:0,opacity:isHidden?0:1,width:"100%"},spacingStyle)};var Input=function Input2(props){var cx=props.cx,value=props.value;var _cleanCommonProps=cleanCommonProps(props),innerRef=_cleanCommonProps.innerRef,isDisabled=_cleanCommonProps.isDisabled,isHidden=_cleanCommonProps.isHidden,inputClassName=_cleanCommonProps.inputClassName,innerProps=_objectWithoutProperties(_cleanCommonProps,_excluded$5);return jsx("div",_extends({},getStyleProps(props,"input",{"input-container":true}),{"data-value":value||""}),jsx("input",_extends({className:cx({input:true},inputClassName),ref:innerRef,style:inputStyle(isHidden),disabled:isDisabled},innerProps)))};var Input$1=Input;var multiValueCSS=function multiValueCSS2(_ref3,unstyled){var _ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,borderRadius2=_ref$theme.borderRadius,colors2=_ref$theme.colors;return _objectSpread2({label:"multiValue",display:"flex",minWidth:0},unstyled?{}:{backgroundColor:colors2.neutral10,borderRadius:borderRadius2/2,margin:spacing2.baseUnit/2})};var multiValueLabelCSS=function multiValueLabelCSS2(_ref22,unstyled){var _ref2$theme=_ref22.theme,borderRadius2=_ref2$theme.borderRadius,colors2=_ref2$theme.colors,cropWithEllipsis=_ref22.cropWithEllipsis;return _objectSpread2({overflow:"hidden",textOverflow:cropWithEllipsis||cropWithEllipsis===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},unstyled?{}:{borderRadius:borderRadius2/2,color:colors2.neutral80,fontSize:"85%",padding:3,paddingLeft:6})};var multiValueRemoveCSS=function multiValueRemoveCSS2(_ref3,unstyled){var _ref3$theme=_ref3.theme,spacing2=_ref3$theme.spacing,borderRadius2=_ref3$theme.borderRadius,colors2=_ref3$theme.colors,isFocused=_ref3.isFocused;return _objectSpread2({alignItems:"center",display:"flex"},unstyled?{}:{borderRadius:borderRadius2/2,backgroundColor:isFocused?colors2.dangerLight:void 0,paddingLeft:spacing2.baseUnit,paddingRight:spacing2.baseUnit,":hover":{backgroundColor:colors2.dangerLight,color:colors2.danger}})};var MultiValueGeneric=function MultiValueGeneric2(_ref4){var children=_ref4.children,innerProps=_ref4.innerProps;return jsx("div",innerProps,children)};var MultiValueContainer=MultiValueGeneric;var MultiValueLabel=MultiValueGeneric;function MultiValueRemove(_ref5){var children=_ref5.children,innerProps=_ref5.innerProps;return jsx("div",_extends({role:"button"},innerProps),children||jsx(CrossIcon,{size:14}))}var MultiValue$1=function MultiValue2(props){var children=props.children,components2=props.components,data=props.data,innerProps=props.innerProps,isDisabled=props.isDisabled,removeProps3=props.removeProps,selectProps=props.selectProps;var Container=components2.Container,Label=components2.Label,Remove=components2.Remove;return jsx(Container,{data:data,innerProps:_objectSpread2(_objectSpread2({},getStyleProps(props,"multiValue",{"multi-value":true,"multi-value--is-disabled":isDisabled})),innerProps),selectProps:selectProps},jsx(Label,{data:data,innerProps:_objectSpread2({},getStyleProps(props,"multiValueLabel",{"multi-value__label":true})),selectProps:selectProps},children),jsx(Remove,{data:data,innerProps:_objectSpread2(_objectSpread2({},getStyleProps(props,"multiValueRemove",{"multi-value__remove":true})),{},{"aria-label":"Remove ".concat(children||"option")},removeProps3),selectProps:selectProps}))};var MultiValue$1$1=MultiValue$1;var optionCSS=function optionCSS2(_ref3,unstyled){var isDisabled=_ref3.isDisabled,isFocused=_ref3.isFocused,isSelected=_ref3.isSelected,_ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,colors2=_ref$theme.colors;return _objectSpread2({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},unstyled?{}:{backgroundColor:isSelected?colors2.primary:isFocused?colors2.primary25:"transparent",color:isDisabled?colors2.neutral20:isSelected?colors2.neutral0:"inherit",padding:"".concat(spacing2.baseUnit*2,"px ").concat(spacing2.baseUnit*3,"px"),":active":{backgroundColor:!isDisabled?isSelected?colors2.primary:colors2.primary50:void 0}})};var Option$1=function Option2(props){var children=props.children,isDisabled=props.isDisabled,isFocused=props.isFocused,isSelected=props.isSelected,innerRef=props.innerRef,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"option",{option:true,"option--is-disabled":isDisabled,"option--is-focused":isFocused,"option--is-selected":isSelected}),{ref:innerRef,"aria-disabled":isDisabled},innerProps),children)};var Option$1$1=Option$1;var placeholderCSS=function placeholderCSS2(_ref3,unstyled){var _ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,colors2=_ref$theme.colors;return _objectSpread2({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},unstyled?{}:{color:colors2.neutral50,marginLeft:spacing2.baseUnit/2,marginRight:spacing2.baseUnit/2})};var Placeholder$1=function Placeholder2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"placeholder",{placeholder:true}),innerProps),children)};var Placeholder$1$1=Placeholder$1;var css22=function css3(_ref3,unstyled){var isDisabled=_ref3.isDisabled,_ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,colors2=_ref$theme.colors;return _objectSpread2({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},unstyled?{}:{color:isDisabled?colors2.neutral40:colors2.neutral80,marginLeft:spacing2.baseUnit/2,marginRight:spacing2.baseUnit/2})};var SingleValue=function SingleValue2(props){var children=props.children,isDisabled=props.isDisabled,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"singleValue",{"single-value":true,"single-value--is-disabled":isDisabled}),innerProps),children)};var SingleValue$1=SingleValue;var components={ClearIndicator:ClearIndicator,Control:Control$1,DropdownIndicator:DropdownIndicator,DownChevron:DownChevron,CrossIcon:CrossIcon,Group:Group$1,GroupHeading:GroupHeading,IndicatorsContainer:IndicatorsContainer$1,IndicatorSeparator:IndicatorSeparator,Input:Input$1,LoadingIndicator:LoadingIndicator,Menu:Menu$1,MenuList:MenuList$1,MenuPortal:MenuPortal,LoadingMessage:LoadingMessage,NoOptionsMessage:NoOptionsMessage,MultiValue:MultiValue$1$1,MultiValueContainer:MultiValueContainer,MultiValueLabel:MultiValueLabel,MultiValueRemove:MultiValueRemove,Option:Option$1$1,Placeholder:Placeholder$1$1,SelectContainer:SelectContainer,SingleValue:SingleValue$1,ValueContainer:ValueContainer$1};var defaultComponents=function defaultComponents2(props){return _objectSpread2(_objectSpread2({},components),props.components)};var safeIsNaN=Number.isNaN||function ponyfill(value){return typeof value==="number"&&value!==value};function isEqual2(first,second){if(first===second){return true}if(safeIsNaN(first)&&safeIsNaN(second)){return true}return false}function areInputsEqual(newInputs,lastInputs){if(newInputs.length!==lastInputs.length){return false}for(var i=0;i1?"s":""," ").concat(labels.join(","),", selected.");case"select-option":return isDisabled?"option ".concat(label," is disabled. Select another option."):"option ".concat(label,", selected.");default:return""}},onFocus:function onFocus(props){var context=props.context,focused=props.focused,options2=props.options,_props$label2=props.label,label=_props$label2===void 0?"":_props$label2,selectValue=props.selectValue,isDisabled=props.isDisabled,isSelected=props.isSelected,isAppleDevice2=props.isAppleDevice;var getArrayIndex=function getArrayIndex2(arr,item){return arr&&arr.length?"".concat(arr.indexOf(item)+1," of ").concat(arr.length):""};if(context==="value"&&selectValue){return"value ".concat(label," focused, ").concat(getArrayIndex(selectValue,focused),".")}if(context==="menu"&&isAppleDevice2){var disabled=isDisabled?" disabled":"";var status="".concat(isSelected?" selected":"").concat(disabled);return"".concat(label).concat(status,", ").concat(getArrayIndex(options2,focused),".")}return""},onFilter:function onFilter(props){var inputValue=props.inputValue,resultsMessage=props.resultsMessage;return"".concat(resultsMessage).concat(inputValue?" for search term "+inputValue:"",".")}};var LiveRegion=function LiveRegion2(props){var ariaSelection=props.ariaSelection,focusedOption=props.focusedOption,focusedValue=props.focusedValue,focusableOptions=props.focusableOptions,isFocused=props.isFocused,selectValue=props.selectValue,selectProps=props.selectProps,id=props.id,isAppleDevice2=props.isAppleDevice;var ariaLiveMessages=selectProps.ariaLiveMessages,getOptionLabel4=selectProps.getOptionLabel,inputValue=selectProps.inputValue,isMulti=selectProps.isMulti,isOptionDisabled3=selectProps.isOptionDisabled,isSearchable=selectProps.isSearchable,menuIsOpen=selectProps.menuIsOpen,options2=selectProps.options,screenReaderStatus2=selectProps.screenReaderStatus,tabSelectsValue=selectProps.tabSelectsValue,isLoading=selectProps.isLoading;var ariaLabel=selectProps["aria-label"];var ariaLive=selectProps["aria-live"];var messages=useMemo((function(){return _objectSpread2(_objectSpread2({},defaultAriaLiveMessages),ariaLiveMessages||{})}),[ariaLiveMessages]);var ariaSelected=useMemo((function(){var message="";if(ariaSelection&&messages.onChange){var option=ariaSelection.option,selectedOptions=ariaSelection.options,removedValue=ariaSelection.removedValue,removedValues=ariaSelection.removedValues,value=ariaSelection.value;var asOption=function asOption2(val){return!Array.isArray(val)?val:null};var selected=removedValue||option||asOption(value);var label=selected?getOptionLabel4(selected):"";var multiSelected=selectedOptions||removedValues||void 0;var labels=multiSelected?multiSelected.map(getOptionLabel4):[];var onChangeProps=_objectSpread2({isDisabled:selected&&isOptionDisabled3(selected,selectValue),label:label,labels:labels},ariaSelection);message=messages.onChange(onChangeProps)}return message}),[ariaSelection,messages,isOptionDisabled3,selectValue,getOptionLabel4]);var ariaFocused=useMemo((function(){var focusMsg="";var focused=focusedOption||focusedValue;var isSelected=!!(focusedOption&&selectValue&&selectValue.includes(focusedOption));if(focused&&messages.onFocus){var onFocusProps={focused:focused,label:getOptionLabel4(focused),isDisabled:isOptionDisabled3(focused,selectValue),isSelected:isSelected,options:focusableOptions,context:focused===focusedOption?"menu":"value",selectValue:selectValue,isAppleDevice:isAppleDevice2};focusMsg=messages.onFocus(onFocusProps)}return focusMsg}),[focusedOption,focusedValue,getOptionLabel4,isOptionDisabled3,messages,focusableOptions,selectValue,isAppleDevice2]);var ariaResults=useMemo((function(){var resultsMsg="";if(menuIsOpen&&options2.length&&!isLoading&&messages.onFilter){var resultsMessage=screenReaderStatus2({count:focusableOptions.length});resultsMsg=messages.onFilter({inputValue:inputValue,resultsMessage:resultsMessage})}return resultsMsg}),[focusableOptions,inputValue,menuIsOpen,messages,options2,screenReaderStatus2,isLoading]);var isInitialFocus=(ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus";var ariaGuidance=useMemo((function(){var guidanceMsg="";if(messages.guidance){var context=focusedValue?"value":menuIsOpen?"menu":"input";guidanceMsg=messages.guidance({"aria-label":ariaLabel,context:context,isDisabled:focusedOption&&isOptionDisabled3(focusedOption,selectValue),isMulti:isMulti,isSearchable:isSearchable,tabSelectsValue:tabSelectsValue,isInitialFocus:isInitialFocus})}return guidanceMsg}),[ariaLabel,focusedOption,focusedValue,isMulti,isOptionDisabled3,isSearchable,menuIsOpen,messages,selectValue,tabSelectsValue,isInitialFocus]);var ScreenReaderText=jsx(Fragment$1,null,jsx("span",{id:"aria-selection"},ariaSelected),jsx("span",{id:"aria-focused"},ariaFocused),jsx("span",{id:"aria-results"},ariaResults),jsx("span",{id:"aria-guidance"},ariaGuidance));return jsx(Fragment$1,null,jsx(A11yText$1,{id:id},isInitialFocus&&ScreenReaderText),jsx(A11yText$1,{"aria-live":ariaLive,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},isFocused&&!isInitialFocus&&ScreenReaderText))};var LiveRegion$1=LiveRegion;var diacritics=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}];var anyDiacritic=new RegExp("["+diacritics.map((function(d2){return d2.letters})).join("")+"]","g");var diacriticToBase={};for(var i=0;i-1}};var _excluded$2=["innerRef"];function DummyInput(_ref3){var innerRef=_ref3.innerRef,props=_objectWithoutProperties(_ref3,_excluded$2);var filteredProps=removeProps(props,"onExited","in","enter","exit","appear");return jsx("input",_extends({ref:innerRef},filteredProps,{css:css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var cancelScroll=function cancelScroll2(event2){if(event2.cancelable)event2.preventDefault();event2.stopPropagation()};function useScrollCapture(_ref3){var isEnabled=_ref3.isEnabled,onBottomArrive=_ref3.onBottomArrive,onBottomLeave=_ref3.onBottomLeave,onTopArrive=_ref3.onTopArrive,onTopLeave=_ref3.onTopLeave;var isBottom=useRef(false);var isTop=useRef(false);var touchStart=useRef(0);var scrollTarget=useRef(null);var handleEventDelta=useCallback((function(event2,delta){if(scrollTarget.current===null)return;var _scrollTarget$current=scrollTarget.current,scrollTop=_scrollTarget$current.scrollTop,scrollHeight=_scrollTarget$current.scrollHeight,clientHeight=_scrollTarget$current.clientHeight;var target=scrollTarget.current;var isDeltaPositive=delta>0;var availableScroll=scrollHeight-clientHeight-scrollTop;var shouldCancelScroll=false;if(availableScroll>delta&&isBottom.current){if(onBottomLeave)onBottomLeave(event2);isBottom.current=false}if(isDeltaPositive&&isTop.current){if(onTopLeave)onTopLeave(event2);isTop.current=false}if(isDeltaPositive&&delta>availableScroll){if(onBottomArrive&&!isBottom.current){onBottomArrive(event2)}target.scrollTop=scrollHeight;shouldCancelScroll=true;isBottom.current=true}else if(!isDeltaPositive&&-delta>scrollTop){if(onTopArrive&&!isTop.current){onTopArrive(event2)}target.scrollTop=0;shouldCancelScroll=true;isTop.current=true}if(shouldCancelScroll){cancelScroll(event2)}}),[onBottomArrive,onBottomLeave,onTopArrive,onTopLeave]);var onWheel=useCallback((function(event2){handleEventDelta(event2,event2.deltaY)}),[handleEventDelta]);var onTouchStart=useCallback((function(event2){touchStart.current=event2.changedTouches[0].clientY}),[]);var onTouchMove=useCallback((function(event2){var deltaY=touchStart.current-event2.changedTouches[0].clientY;handleEventDelta(event2,deltaY)}),[handleEventDelta]);var startListening=useCallback((function(el){if(!el)return;var notPassive=supportsPassiveEvents?{passive:false}:false;el.addEventListener("wheel",onWheel,notPassive);el.addEventListener("touchstart",onTouchStart,notPassive);el.addEventListener("touchmove",onTouchMove,notPassive)}),[onTouchMove,onTouchStart,onWheel]);var stopListening=useCallback((function(el){if(!el)return;el.removeEventListener("wheel",onWheel,false);el.removeEventListener("touchstart",onTouchStart,false);el.removeEventListener("touchmove",onTouchMove,false)}),[onTouchMove,onTouchStart,onWheel]);useEffect((function(){if(!isEnabled)return;var element=scrollTarget.current;startListening(element);return function(){stopListening(element)}}),[isEnabled,startListening,stopListening]);return function(element){scrollTarget.current=element}}var STYLE_KEYS=["boxSizing","height","overflow","paddingRight","position"];var LOCK_STYLES={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function preventTouchMove(e2){e2.preventDefault()}function allowTouchMove(e2){e2.stopPropagation()}function preventInertiaScroll(){var top=this.scrollTop;var totalScroll=this.scrollHeight;var currentScroll=top+this.offsetHeight;if(top===0){this.scrollTop=1}else if(currentScroll===totalScroll){this.scrollTop=top-1}}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}var canUseDOM=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);var activeScrollLocks=0;var listenerOptions={capture:false,passive:false};function useScrollLock(_ref3){var isEnabled=_ref3.isEnabled,_ref$accountForScroll=_ref3.accountForScrollbars,accountForScrollbars=_ref$accountForScroll===void 0?true:_ref$accountForScroll;var originalStyles=useRef({});var scrollTarget=useRef(null);var addScrollLock=useCallback((function(touchScrollTarget){if(!canUseDOM)return;var target=document.body;var targetStyle=target&&target.style;if(accountForScrollbars){STYLE_KEYS.forEach((function(key){var val=targetStyle&&targetStyle[key];originalStyles.current[key]=val}))}if(accountForScrollbars&&activeScrollLocks<1){var currentPadding=parseInt(originalStyles.current.paddingRight,10)||0;var clientWidth=document.body?document.body.clientWidth:0;var adjustedPadding=window.innerWidth-clientWidth+currentPadding||0;Object.keys(LOCK_STYLES).forEach((function(key){var val=LOCK_STYLES[key];if(targetStyle){targetStyle[key]=val}}));if(targetStyle){targetStyle.paddingRight="".concat(adjustedPadding,"px")}}if(target&&isTouchDevice()){target.addEventListener("touchmove",preventTouchMove,listenerOptions);if(touchScrollTarget){touchScrollTarget.addEventListener("touchstart",preventInertiaScroll,listenerOptions);touchScrollTarget.addEventListener("touchmove",allowTouchMove,listenerOptions)}}activeScrollLocks+=1}),[accountForScrollbars]);var removeScrollLock=useCallback((function(touchScrollTarget){if(!canUseDOM)return;var target=document.body;var targetStyle=target&&target.style;activeScrollLocks=Math.max(activeScrollLocks-1,0);if(accountForScrollbars&&activeScrollLocks<1){STYLE_KEYS.forEach((function(key){var val=originalStyles.current[key];if(targetStyle){targetStyle[key]=val}}))}if(target&&isTouchDevice()){target.removeEventListener("touchmove",preventTouchMove,listenerOptions);if(touchScrollTarget){touchScrollTarget.removeEventListener("touchstart",preventInertiaScroll,listenerOptions);touchScrollTarget.removeEventListener("touchmove",allowTouchMove,listenerOptions)}}}),[accountForScrollbars]);useEffect((function(){if(!isEnabled)return;var element=scrollTarget.current;addScrollLock(element);return function(){removeScrollLock(element)}}),[isEnabled,addScrollLock,removeScrollLock]);return function(element){scrollTarget.current=element}}var blurSelectInput=function blurSelectInput2(event2){var element=event2.target;return element.ownerDocument.activeElement&&element.ownerDocument.activeElement.blur()};var _ref2$1={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ScrollManager(_ref3){var children=_ref3.children,lockEnabled=_ref3.lockEnabled,_ref$captureEnabled=_ref3.captureEnabled,captureEnabled=_ref$captureEnabled===void 0?true:_ref$captureEnabled,onBottomArrive=_ref3.onBottomArrive,onBottomLeave=_ref3.onBottomLeave,onTopArrive=_ref3.onTopArrive,onTopLeave=_ref3.onTopLeave;var setScrollCaptureTarget=useScrollCapture({isEnabled:captureEnabled,onBottomArrive:onBottomArrive,onBottomLeave:onBottomLeave,onTopArrive:onTopArrive,onTopLeave:onTopLeave});var setScrollLockTarget=useScrollLock({isEnabled:lockEnabled});var targetRef=function targetRef2(element){setScrollCaptureTarget(element);setScrollLockTarget(element)};return jsx(Fragment$1,null,lockEnabled&&jsx("div",{onClick:blurSelectInput,css:_ref2$1}),children(targetRef))}var _ref2={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"};var RequiredInput=function RequiredInput2(_ref3){var name2=_ref3.name,onFocus2=_ref3.onFocus;return jsx("input",{required:true,name:name2,tabIndex:-1,"aria-hidden":"true",onFocus:onFocus2,css:_ref2,value:"",onChange:function onChange2(){}})};var RequiredInput$1=RequiredInput;function testPlatform(re){var _window$navigator$use;return typeof window!=="undefined"&&window.navigator!=null?re.test(((_window$navigator$use=window.navigator["userAgentData"])===null||_window$navigator$use===void 0?void 0:_window$navigator$use.platform)||window.navigator.platform):false}function isIPhone(){return testPlatform(/^iPhone/i)}function isMac(){return testPlatform(/^Mac/i)}function isIPad(){return testPlatform(/^iPad/i)||isMac()&&navigator.maxTouchPoints>1}function isIOS(){return isIPhone()||isIPad()}function isAppleDevice(){return isMac()||isIOS()}var formatGroupLabel=function formatGroupLabel2(group){return group.label};var getOptionLabel$1=function getOptionLabel(option){return option.label};var getOptionValue$1=function getOptionValue(option){return option.value};var isOptionDisabled=function isOptionDisabled2(option){return!!option.isDisabled};var defaultStyles={clearIndicator:clearIndicatorCSS,container:containerCSS,control:css$1,dropdownIndicator:dropdownIndicatorCSS,group:groupCSS,groupHeading:groupHeadingCSS,indicatorsContainer:indicatorsContainerCSS,indicatorSeparator:indicatorSeparatorCSS,input:inputCSS,loadingIndicator:loadingIndicatorCSS,loadingMessage:loadingMessageCSS,menu:menuCSS,menuList:menuListCSS,menuPortal:menuPortalCSS,multiValue:multiValueCSS,multiValueLabel:multiValueLabelCSS,multiValueRemove:multiValueRemoveCSS,noOptionsMessage:noOptionsMessageCSS,option:optionCSS,placeholder:placeholderCSS,singleValue:css22,valueContainer:valueContainerCSS};var colors={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"};var borderRadius=4;var baseUnit=4;var controlHeight=38;var menuGutter=baseUnit*2;var spacing={baseUnit:baseUnit,controlHeight:controlHeight,menuGutter:menuGutter};var defaultTheme={borderRadius:borderRadius,colors:colors,spacing:spacing};var defaultProps={"aria-live":"polite",backspaceRemovesValue:true,blurInputOnSelect:isTouchCapable(),captureMenuScroll:!isTouchCapable(),classNames:{},closeMenuOnSelect:true,closeMenuOnScroll:false,components:{},controlShouldRenderValue:true,escapeClearsValue:false,filterOption:createFilter(),formatGroupLabel:formatGroupLabel,getOptionLabel:getOptionLabel$1,getOptionValue:getOptionValue$1,isDisabled:false,isLoading:false,isMulti:false,isRtl:false,isSearchable:true,isOptionDisabled:isOptionDisabled,loadingMessage:function loadingMessage(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:false,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:false,menuShouldScrollIntoView:!isMobileDevice(),noOptionsMessage:function noOptionsMessage(){return"No options"},openMenuOnFocus:false,openMenuOnClick:true,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function screenReaderStatus(_ref3){var count2=_ref3.count;return"".concat(count2," result").concat(count2!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:true,unstyled:false};function toCategorizedOption(props,option,selectValue,index2){var isDisabled=_isOptionDisabled(props,option,selectValue);var isSelected=_isOptionSelected(props,option,selectValue);var label=getOptionLabel2(props,option);var value=getOptionValue2(props,option);return{type:"option",data:option,isDisabled:isDisabled,isSelected:isSelected,label:label,value:value,index:index2}}function buildCategorizedOptions(props,selectValue){return props.options.map((function(groupOrOption,groupOrOptionIndex){if("options"in groupOrOption){var categorizedOptions=groupOrOption.options.map((function(option,optionIndex){return toCategorizedOption(props,option,selectValue,optionIndex)})).filter((function(categorizedOption2){return isFocusable(props,categorizedOption2)}));return categorizedOptions.length>0?{type:"group",data:groupOrOption,options:categorizedOptions,index:groupOrOptionIndex}:void 0}var categorizedOption=toCategorizedOption(props,groupOrOption,selectValue,groupOrOptionIndex);return isFocusable(props,categorizedOption)?categorizedOption:void 0})).filter(notNullish)}function buildFocusableOptionsFromCategorizedOptions(categorizedOptions){return categorizedOptions.reduce((function(optionsAccumulator,categorizedOption){if(categorizedOption.type==="group"){optionsAccumulator.push.apply(optionsAccumulator,_toConsumableArray(categorizedOption.options.map((function(option){return option.data}))))}else{optionsAccumulator.push(categorizedOption.data)}return optionsAccumulator}),[])}function buildFocusableOptionsWithIds(categorizedOptions,optionId){return categorizedOptions.reduce((function(optionsAccumulator,categorizedOption){if(categorizedOption.type==="group"){optionsAccumulator.push.apply(optionsAccumulator,_toConsumableArray(categorizedOption.options.map((function(option){return{data:option.data,id:"".concat(optionId,"-").concat(categorizedOption.index,"-").concat(option.index)}}))))}else{optionsAccumulator.push({data:categorizedOption.data,id:"".concat(optionId,"-").concat(categorizedOption.index)})}return optionsAccumulator}),[])}function buildFocusableOptions(props,selectValue){return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(props,selectValue))}function isFocusable(props,categorizedOption){var _props$inputValue=props.inputValue,inputValue=_props$inputValue===void 0?"":_props$inputValue;var data=categorizedOption.data,isSelected=categorizedOption.isSelected,label=categorizedOption.label,value=categorizedOption.value;return(!shouldHideSelectedOptions(props)||!isSelected)&&_filterOption(props,{label:label,value:value,data:data},inputValue)}function getNextFocusedValue(state,nextSelectValue){var focusedValue=state.focusedValue,lastSelectValue=state.selectValue;var lastFocusedIndex=lastSelectValue.indexOf(focusedValue);if(lastFocusedIndex>-1){var nextFocusedIndex=nextSelectValue.indexOf(focusedValue);if(nextFocusedIndex>-1){return focusedValue}else if(lastFocusedIndex-1?lastFocusedOption:options2[0]}var getFocusedOptionId=function getFocusedOptionId2(focusableOptionsWithIds,focusedOption){var _focusableOptionsWith;var focusedOptionId=(_focusableOptionsWith=focusableOptionsWithIds.find((function(option){return option.data===focusedOption})))===null||_focusableOptionsWith===void 0?void 0:_focusableOptionsWith.id;return focusedOptionId||null};var getOptionLabel2=function getOptionLabel3(props,data){return props.getOptionLabel(data)};var getOptionValue2=function getOptionValue3(props,data){return props.getOptionValue(data)};function _isOptionDisabled(props,option,selectValue){return typeof props.isOptionDisabled==="function"?props.isOptionDisabled(option,selectValue):false}function _isOptionSelected(props,option,selectValue){if(selectValue.indexOf(option)>-1)return true;if(typeof props.isOptionSelected==="function"){return props.isOptionSelected(option,selectValue)}var candidate=getOptionValue2(props,option);return selectValue.some((function(i){return getOptionValue2(props,i)===candidate}))}function _filterOption(props,option,inputValue){return props.filterOption?props.filterOption(option,inputValue):true}var shouldHideSelectedOptions=function shouldHideSelectedOptions2(props){var hideSelectedOptions=props.hideSelectedOptions,isMulti=props.isMulti;if(hideSelectedOptions===void 0)return isMulti;return hideSelectedOptions};var instanceId=1;var Select=function(_Component){_inherits(Select2,_Component);var _super=_createSuper(Select2);function Select2(_props){var _this;_classCallCheck(this,Select2);_this=_super.call(this,_props);_this.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:false,isFocused:false,selectValue:[],clearFocusValueOnUpdate:false,prevWasFocused:false,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""};_this.blockOptionHover=false;_this.isComposing=false;_this.commonProps=void 0;_this.initialTouchX=0;_this.initialTouchY=0;_this.openAfterFocus=false;_this.scrollToFocusedOptionOnUpdate=false;_this.userIsDragging=void 0;_this.isAppleDevice=isAppleDevice();_this.controlRef=null;_this.getControlRef=function(ref){_this.controlRef=ref};_this.focusedOptionRef=null;_this.getFocusedOptionRef=function(ref){_this.focusedOptionRef=ref};_this.menuListRef=null;_this.getMenuListRef=function(ref){_this.menuListRef=ref};_this.inputRef=null;_this.getInputRef=function(ref){_this.inputRef=ref};_this.focus=_this.focusInput;_this.blur=_this.blurInput;_this.onChange=function(newValue,actionMeta){var _this$props=_this.props,onChange2=_this$props.onChange,name2=_this$props.name;actionMeta.name=name2;_this.ariaOnChange(newValue,actionMeta);onChange2(newValue,actionMeta)};_this.setValue=function(newValue,action,option){var _this$props2=_this.props,closeMenuOnSelect=_this$props2.closeMenuOnSelect,isMulti=_this$props2.isMulti,inputValue=_this$props2.inputValue;_this.onInputChange("",{action:"set-value",prevInputValue:inputValue});if(closeMenuOnSelect){_this.setState({inputIsHiddenAfterUpdate:!isMulti});_this.onMenuClose()}_this.setState({clearFocusValueOnUpdate:true});_this.onChange(newValue,{action:action,option:option})};_this.selectOption=function(newValue){var _this$props3=_this.props,blurInputOnSelect=_this$props3.blurInputOnSelect,isMulti=_this$props3.isMulti,name2=_this$props3.name;var selectValue=_this.state.selectValue;var deselected=isMulti&&_this.isOptionSelected(newValue,selectValue);var isDisabled=_this.isOptionDisabled(newValue,selectValue);if(deselected){var candidate=_this.getOptionValue(newValue);_this.setValue(multiValueAsValue(selectValue.filter((function(i){return _this.getOptionValue(i)!==candidate}))),"deselect-option",newValue)}else if(!isDisabled){if(isMulti){_this.setValue(multiValueAsValue([].concat(_toConsumableArray(selectValue),[newValue])),"select-option",newValue)}else{_this.setValue(singleValueAsValue(newValue),"select-option")}}else{_this.ariaOnChange(singleValueAsValue(newValue),{action:"select-option",option:newValue,name:name2});return}if(blurInputOnSelect){_this.blurInput()}};_this.removeValue=function(removedValue){var isMulti=_this.props.isMulti;var selectValue=_this.state.selectValue;var candidate=_this.getOptionValue(removedValue);var newValueArray=selectValue.filter((function(i){return _this.getOptionValue(i)!==candidate}));var newValue=valueTernary(isMulti,newValueArray,newValueArray[0]||null);_this.onChange(newValue,{action:"remove-value",removedValue:removedValue});_this.focusInput()};_this.clearValue=function(){var selectValue=_this.state.selectValue;_this.onChange(valueTernary(_this.props.isMulti,[],null),{action:"clear",removedValues:selectValue})};_this.popValue=function(){var isMulti=_this.props.isMulti;var selectValue=_this.state.selectValue;var lastSelectedValue=selectValue[selectValue.length-1];var newValueArray=selectValue.slice(0,selectValue.length-1);var newValue=valueTernary(isMulti,newValueArray,newValueArray[0]||null);_this.onChange(newValue,{action:"pop-value",removedValue:lastSelectedValue})};_this.getFocusedOptionId=function(focusedOption){return getFocusedOptionId(_this.state.focusableOptionsWithIds,focusedOption)};_this.getFocusableOptionsWithIds=function(){return buildFocusableOptionsWithIds(buildCategorizedOptions(_this.props,_this.state.selectValue),_this.getElementId("option"))};_this.getValue=function(){return _this.state.selectValue};_this.cx=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return classNames.apply(void 0,[_this.props.classNamePrefix].concat(args))};_this.getOptionLabel=function(data){return getOptionLabel2(_this.props,data)};_this.getOptionValue=function(data){return getOptionValue2(_this.props,data)};_this.getStyles=function(key,props){var unstyled=_this.props.unstyled;var base=defaultStyles[key](props,unstyled);base.boxSizing="border-box";var custom=_this.props.styles[key];return custom?custom(base,props):base};_this.getClassNames=function(key,props){var _this$props$className,_this$props$className2;return(_this$props$className=(_this$props$className2=_this.props.classNames)[key])===null||_this$props$className===void 0?void 0:_this$props$className.call(_this$props$className2,props)};_this.getElementId=function(element){return"".concat(_this.state.instancePrefix,"-").concat(element)};_this.getComponents=function(){return defaultComponents(_this.props)};_this.buildCategorizedOptions=function(){return buildCategorizedOptions(_this.props,_this.state.selectValue)};_this.getCategorizedOptions=function(){return _this.props.menuIsOpen?_this.buildCategorizedOptions():[]};_this.buildFocusableOptions=function(){return buildFocusableOptionsFromCategorizedOptions(_this.buildCategorizedOptions())};_this.getFocusableOptions=function(){return _this.props.menuIsOpen?_this.buildFocusableOptions():[]};_this.ariaOnChange=function(value,actionMeta){_this.setState({ariaSelection:_objectSpread2({value:value},actionMeta)})};_this.onMenuMouseDown=function(event2){if(event2.button!==0){return}event2.stopPropagation();event2.preventDefault();_this.focusInput()};_this.onMenuMouseMove=function(event2){_this.blockOptionHover=false};_this.onControlMouseDown=function(event2){if(event2.defaultPrevented){return}var openMenuOnClick=_this.props.openMenuOnClick;if(!_this.state.isFocused){if(openMenuOnClick){_this.openAfterFocus=true}_this.focusInput()}else if(!_this.props.menuIsOpen){if(openMenuOnClick){_this.openMenu("first")}}else{if(event2.target.tagName!=="INPUT"&&event2.target.tagName!=="TEXTAREA"){_this.onMenuClose()}}if(event2.target.tagName!=="INPUT"&&event2.target.tagName!=="TEXTAREA"){event2.preventDefault()}};_this.onDropdownIndicatorMouseDown=function(event2){if(event2&&event2.type==="mousedown"&&event2.button!==0){return}if(_this.props.isDisabled)return;var _this$props4=_this.props,isMulti=_this$props4.isMulti,menuIsOpen=_this$props4.menuIsOpen;_this.focusInput();if(menuIsOpen){_this.setState({inputIsHiddenAfterUpdate:!isMulti});_this.onMenuClose()}else{_this.openMenu("first")}event2.preventDefault()};_this.onClearIndicatorMouseDown=function(event2){if(event2&&event2.type==="mousedown"&&event2.button!==0){return}_this.clearValue();event2.preventDefault();_this.openAfterFocus=false;if(event2.type==="touchend"){_this.focusInput()}else{setTimeout((function(){return _this.focusInput()}))}};_this.onScroll=function(event2){if(typeof _this.props.closeMenuOnScroll==="boolean"){if(event2.target instanceof HTMLElement&&isDocumentElement(event2.target)){_this.props.onMenuClose()}}else if(typeof _this.props.closeMenuOnScroll==="function"){if(_this.props.closeMenuOnScroll(event2)){_this.props.onMenuClose()}}};_this.onCompositionStart=function(){_this.isComposing=true};_this.onCompositionEnd=function(){_this.isComposing=false};_this.onTouchStart=function(_ref22){var touches=_ref22.touches;var touch=touches&&touches.item(0);if(!touch){return}_this.initialTouchX=touch.clientX;_this.initialTouchY=touch.clientY;_this.userIsDragging=false};_this.onTouchMove=function(_ref3){var touches=_ref3.touches;var touch=touches&&touches.item(0);if(!touch){return}var deltaX=Math.abs(touch.clientX-_this.initialTouchX);var deltaY=Math.abs(touch.clientY-_this.initialTouchY);var moveThreshold=5;_this.userIsDragging=deltaX>moveThreshold||deltaY>moveThreshold};_this.onTouchEnd=function(event2){if(_this.userIsDragging)return;if(_this.controlRef&&!_this.controlRef.contains(event2.target)&&_this.menuListRef&&!_this.menuListRef.contains(event2.target)){_this.blurInput()}_this.initialTouchX=0;_this.initialTouchY=0};_this.onControlTouchEnd=function(event2){if(_this.userIsDragging)return;_this.onControlMouseDown(event2)};_this.onClearIndicatorTouchEnd=function(event2){if(_this.userIsDragging)return;_this.onClearIndicatorMouseDown(event2)};_this.onDropdownIndicatorTouchEnd=function(event2){if(_this.userIsDragging)return;_this.onDropdownIndicatorMouseDown(event2)};_this.handleInputChange=function(event2){var prevInputValue=_this.props.inputValue;var inputValue=event2.currentTarget.value;_this.setState({inputIsHiddenAfterUpdate:false});_this.onInputChange(inputValue,{action:"input-change",prevInputValue:prevInputValue});if(!_this.props.menuIsOpen){_this.onMenuOpen()}};_this.onInputFocus=function(event2){if(_this.props.onFocus){_this.props.onFocus(event2)}_this.setState({inputIsHiddenAfterUpdate:false,isFocused:true});if(_this.openAfterFocus||_this.props.openMenuOnFocus){_this.openMenu("first")}_this.openAfterFocus=false};_this.onInputBlur=function(event2){var prevInputValue=_this.props.inputValue;if(_this.menuListRef&&_this.menuListRef.contains(document.activeElement)){_this.inputRef.focus();return}if(_this.props.onBlur){_this.props.onBlur(event2)}_this.onInputChange("",{action:"input-blur",prevInputValue:prevInputValue});_this.onMenuClose();_this.setState({focusedValue:null,isFocused:false})};_this.onOptionHover=function(focusedOption){if(_this.blockOptionHover||_this.state.focusedOption===focusedOption){return}var options2=_this.getFocusableOptions();var focusedOptionIndex=options2.indexOf(focusedOption);_this.setState({focusedOption:focusedOption,focusedOptionId:focusedOptionIndex>-1?_this.getFocusedOptionId(focusedOption):null})};_this.shouldHideSelectedOptions=function(){return shouldHideSelectedOptions(_this.props)};_this.onValueInputFocus=function(e2){e2.preventDefault();e2.stopPropagation();_this.focus()};_this.onKeyDown=function(event2){var _this$props5=_this.props,isMulti=_this$props5.isMulti,backspaceRemovesValue=_this$props5.backspaceRemovesValue,escapeClearsValue=_this$props5.escapeClearsValue,inputValue=_this$props5.inputValue,isClearable=_this$props5.isClearable,isDisabled=_this$props5.isDisabled,menuIsOpen=_this$props5.menuIsOpen,onKeyDown=_this$props5.onKeyDown,tabSelectsValue=_this$props5.tabSelectsValue,openMenuOnFocus=_this$props5.openMenuOnFocus;var _this$state=_this.state,focusedOption=_this$state.focusedOption,focusedValue=_this$state.focusedValue,selectValue=_this$state.selectValue;if(isDisabled)return;if(typeof onKeyDown==="function"){onKeyDown(event2);if(event2.defaultPrevented){return}}_this.blockOptionHover=true;switch(event2.key){case"ArrowLeft":if(!isMulti||inputValue)return;_this.focusValue("previous");break;case"ArrowRight":if(!isMulti||inputValue)return;_this.focusValue("next");break;case"Delete":case"Backspace":if(inputValue)return;if(focusedValue){_this.removeValue(focusedValue)}else{if(!backspaceRemovesValue)return;if(isMulti){_this.popValue()}else if(isClearable){_this.clearValue()}}break;case"Tab":if(_this.isComposing)return;if(event2.shiftKey||!menuIsOpen||!tabSelectsValue||!focusedOption||openMenuOnFocus&&_this.isOptionSelected(focusedOption,selectValue)){return}_this.selectOption(focusedOption);break;case"Enter":if(event2.keyCode===229){break}if(menuIsOpen){if(!focusedOption)return;if(_this.isComposing)return;_this.selectOption(focusedOption);break}return;case"Escape":if(menuIsOpen){_this.setState({inputIsHiddenAfterUpdate:false});_this.onInputChange("",{action:"menu-close",prevInputValue:inputValue});_this.onMenuClose()}else if(isClearable&&escapeClearsValue){_this.clearValue()}break;case" ":if(inputValue){return}if(!menuIsOpen){_this.openMenu("first");break}if(!focusedOption)return;_this.selectOption(focusedOption);break;case"ArrowUp":if(menuIsOpen){_this.focusOption("up")}else{_this.openMenu("last")}break;case"ArrowDown":if(menuIsOpen){_this.focusOption("down")}else{_this.openMenu("first")}break;case"PageUp":if(!menuIsOpen)return;_this.focusOption("pageup");break;case"PageDown":if(!menuIsOpen)return;_this.focusOption("pagedown");break;case"Home":if(!menuIsOpen)return;_this.focusOption("first");break;case"End":if(!menuIsOpen)return;_this.focusOption("last");break;default:return}event2.preventDefault()};_this.state.instancePrefix="react-select-"+(_this.props.instanceId||++instanceId);_this.state.selectValue=cleanValue(_props.value);if(_props.menuIsOpen&&_this.state.selectValue.length){var focusableOptionsWithIds=_this.getFocusableOptionsWithIds();var focusableOptions=_this.buildFocusableOptions();var optionIndex=focusableOptions.indexOf(_this.state.selectValue[0]);_this.state.focusableOptionsWithIds=focusableOptionsWithIds;_this.state.focusedOption=focusableOptions[optionIndex];_this.state.focusedOptionId=getFocusedOptionId(focusableOptionsWithIds,focusableOptions[optionIndex])}return _this}_createClass(Select2,[{key:"componentDidMount",value:function componentDidMount(){this.startListeningComposition();this.startListeningToTouch();if(this.props.closeMenuOnScroll&&document&&document.addEventListener){document.addEventListener("scroll",this.onScroll,true)}if(this.props.autoFocus){this.focusInput()}if(this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef){scrollIntoView(this.menuListRef,this.focusedOptionRef)}}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps){var _this$props6=this.props,isDisabled=_this$props6.isDisabled,menuIsOpen=_this$props6.menuIsOpen;var isFocused=this.state.isFocused;if(isFocused&&!isDisabled&&prevProps.isDisabled||isFocused&&menuIsOpen&&!prevProps.menuIsOpen){this.focusInput()}if(isFocused&&isDisabled&&!prevProps.isDisabled){this.setState({isFocused:false},this.onMenuClose)}else if(!isFocused&&!isDisabled&&prevProps.isDisabled&&this.inputRef===document.activeElement){this.setState({isFocused:true})}if(this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate){scrollIntoView(this.menuListRef,this.focusedOptionRef);this.scrollToFocusedOptionOnUpdate=false}}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.stopListeningComposition();this.stopListeningToTouch();document.removeEventListener("scroll",this.onScroll,true)}},{key:"onMenuOpen",value:function onMenuOpen(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function onMenuClose(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue});this.props.onMenuClose()}},{key:"onInputChange",value:function onInputChange(newValue,actionMeta){this.props.onInputChange(newValue,actionMeta)}},{key:"focusInput",value:function focusInput(){if(!this.inputRef)return;this.inputRef.focus()}},{key:"blurInput",value:function blurInput(){if(!this.inputRef)return;this.inputRef.blur()}},{key:"openMenu",value:function openMenu(focusOption){var _this2=this;var _this$state2=this.state,selectValue=_this$state2.selectValue,isFocused=_this$state2.isFocused;var focusableOptions=this.buildFocusableOptions();var openAtIndex=focusOption==="first"?0:focusableOptions.length-1;if(!this.props.isMulti){var selectedIndex=focusableOptions.indexOf(selectValue[0]);if(selectedIndex>-1){openAtIndex=selectedIndex}}this.scrollToFocusedOptionOnUpdate=!(isFocused&&this.menuListRef);this.setState({inputIsHiddenAfterUpdate:false,focusedValue:null,focusedOption:focusableOptions[openAtIndex],focusedOptionId:this.getFocusedOptionId(focusableOptions[openAtIndex])},(function(){return _this2.onMenuOpen()}))}},{key:"focusValue",value:function focusValue(direction){var _this$state3=this.state,selectValue=_this$state3.selectValue,focusedValue=_this$state3.focusedValue;if(!this.props.isMulti)return;this.setState({focusedOption:null});var focusedIndex=selectValue.indexOf(focusedValue);if(!focusedValue){focusedIndex=-1}var lastIndex=selectValue.length-1;var nextFocus=-1;if(!selectValue.length)return;switch(direction){case"previous":if(focusedIndex===0){nextFocus=0}else if(focusedIndex===-1){nextFocus=lastIndex}else{nextFocus=focusedIndex-1}break;case"next":if(focusedIndex>-1&&focusedIndex0&&arguments[0]!==void 0?arguments[0]:"first";var pageSize=this.props.pageSize;var focusedOption=this.state.focusedOption;var options2=this.getFocusableOptions();if(!options2.length)return;var nextFocus=0;var focusedIndex=options2.indexOf(focusedOption);if(!focusedOption){focusedIndex=-1}if(direction==="up"){nextFocus=focusedIndex>0?focusedIndex-1:options2.length-1}else if(direction==="down"){nextFocus=(focusedIndex+1)%options2.length}else if(direction==="pageup"){nextFocus=focusedIndex-pageSize;if(nextFocus<0)nextFocus=0}else if(direction==="pagedown"){nextFocus=focusedIndex+pageSize;if(nextFocus>options2.length-1)nextFocus=options2.length-1}else if(direction==="last"){nextFocus=options2.length-1}this.scrollToFocusedOptionOnUpdate=true;this.setState({focusedOption:options2[nextFocus],focusedValue:null,focusedOptionId:this.getFocusedOptionId(options2[nextFocus])})}},{key:"getTheme",value:function getTheme(){if(!this.props.theme){return defaultTheme}if(typeof this.props.theme==="function"){return this.props.theme(defaultTheme)}return _objectSpread2(_objectSpread2({},defaultTheme),this.props.theme)}},{key:"getCommonProps",value:function getCommonProps(){var clearValue=this.clearValue,cx=this.cx,getStyles=this.getStyles,getClassNames=this.getClassNames,getValue=this.getValue,selectOption=this.selectOption,setValue=this.setValue,props=this.props;var isMulti=props.isMulti,isRtl=props.isRtl,options2=props.options;var hasValue=this.hasValue();return{clearValue:clearValue,cx:cx,getStyles:getStyles,getClassNames:getClassNames,getValue:getValue,hasValue:hasValue,isMulti:isMulti,isRtl:isRtl,options:options2,selectOption:selectOption,selectProps:props,setValue:setValue,theme:this.getTheme()}}},{key:"hasValue",value:function hasValue(){var selectValue=this.state.selectValue;return selectValue.length>0}},{key:"hasOptions",value:function hasOptions(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function isClearable(){var _this$props7=this.props,isClearable2=_this$props7.isClearable,isMulti=_this$props7.isMulti;if(isClearable2===void 0)return isMulti;return isClearable2}},{key:"isOptionDisabled",value:function isOptionDisabled3(option,selectValue){return _isOptionDisabled(this.props,option,selectValue)}},{key:"isOptionSelected",value:function isOptionSelected(option,selectValue){return _isOptionSelected(this.props,option,selectValue)}},{key:"filterOption",value:function filterOption(option,inputValue){return _filterOption(this.props,option,inputValue)}},{key:"formatOptionLabel",value:function formatOptionLabel(data,context){if(typeof this.props.formatOptionLabel==="function"){var _inputValue=this.props.inputValue;var _selectValue=this.state.selectValue;return this.props.formatOptionLabel(data,{context:context,inputValue:_inputValue,selectValue:_selectValue})}else{return this.getOptionLabel(data)}}},{key:"formatGroupLabel",value:function formatGroupLabel3(data){return this.props.formatGroupLabel(data)}},{key:"startListeningComposition",value:function startListeningComposition(){if(document&&document.addEventListener){document.addEventListener("compositionstart",this.onCompositionStart,false);document.addEventListener("compositionend",this.onCompositionEnd,false)}}},{key:"stopListeningComposition",value:function stopListeningComposition(){if(document&&document.removeEventListener){document.removeEventListener("compositionstart",this.onCompositionStart);document.removeEventListener("compositionend",this.onCompositionEnd)}}},{key:"startListeningToTouch",value:function startListeningToTouch(){if(document&&document.addEventListener){document.addEventListener("touchstart",this.onTouchStart,false);document.addEventListener("touchmove",this.onTouchMove,false);document.addEventListener("touchend",this.onTouchEnd,false)}}},{key:"stopListeningToTouch",value:function stopListeningToTouch(){if(document&&document.removeEventListener){document.removeEventListener("touchstart",this.onTouchStart);document.removeEventListener("touchmove",this.onTouchMove);document.removeEventListener("touchend",this.onTouchEnd)}}},{key:"renderInput",value:function renderInput(){var _this$props8=this.props,isDisabled=_this$props8.isDisabled,isSearchable=_this$props8.isSearchable,inputId=_this$props8.inputId,inputValue=_this$props8.inputValue,tabIndex=_this$props8.tabIndex,form=_this$props8.form,menuIsOpen=_this$props8.menuIsOpen,required=_this$props8.required;var _this$getComponents=this.getComponents(),Input3=_this$getComponents.Input;var _this$state4=this.state,inputIsHidden=_this$state4.inputIsHidden,ariaSelection=_this$state4.ariaSelection;var commonProps=this.commonProps;var id=inputId||this.getElementId("input");var ariaAttributes=_objectSpread2(_objectSpread2(_objectSpread2({"aria-autocomplete":"list","aria-expanded":menuIsOpen,"aria-haspopup":true,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":required,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},menuIsOpen&&{"aria-controls":this.getElementId("listbox")}),!isSearchable&&{"aria-readonly":true}),this.hasValue()?(ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});if(!isSearchable){return React.createElement(DummyInput,_extends({id:id,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:noop,onFocus:this.onInputFocus,disabled:isDisabled,tabIndex:tabIndex,inputMode:"none",form:form,value:""},ariaAttributes))}return React.createElement(Input3,_extends({},commonProps,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:id,innerRef:this.getInputRef,isDisabled:isDisabled,isHidden:inputIsHidden,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:tabIndex,form:form,type:"text",value:inputValue},ariaAttributes))}},{key:"renderPlaceholderOrValue",value:function renderPlaceholderOrValue(){var _this3=this;var _this$getComponents2=this.getComponents(),MultiValue3=_this$getComponents2.MultiValue,MultiValueContainer2=_this$getComponents2.MultiValueContainer,MultiValueLabel2=_this$getComponents2.MultiValueLabel,MultiValueRemove2=_this$getComponents2.MultiValueRemove,SingleValue3=_this$getComponents2.SingleValue,Placeholder3=_this$getComponents2.Placeholder;var commonProps=this.commonProps;var _this$props9=this.props,controlShouldRenderValue=_this$props9.controlShouldRenderValue,isDisabled=_this$props9.isDisabled,isMulti=_this$props9.isMulti,inputValue=_this$props9.inputValue,placeholder=_this$props9.placeholder;var _this$state5=this.state,selectValue=_this$state5.selectValue,focusedValue=_this$state5.focusedValue,isFocused=_this$state5.isFocused;if(!this.hasValue()||!controlShouldRenderValue){return inputValue?null:React.createElement(Placeholder3,_extends({},commonProps,{key:"placeholder",isDisabled:isDisabled,isFocused:isFocused,innerProps:{id:this.getElementId("placeholder")}}),placeholder)}if(isMulti){return selectValue.map((function(opt,index2){var isOptionFocused=opt===focusedValue;var key="".concat(_this3.getOptionLabel(opt),"-").concat(_this3.getOptionValue(opt));return React.createElement(MultiValue3,_extends({},commonProps,{components:{Container:MultiValueContainer2,Label:MultiValueLabel2,Remove:MultiValueRemove2},isFocused:isOptionFocused,isDisabled:isDisabled,key:key,index:index2,removeProps:{onClick:function onClick(){return _this3.removeValue(opt)},onTouchEnd:function onTouchEnd(){return _this3.removeValue(opt)},onMouseDown:function onMouseDown(e2){e2.preventDefault()}},data:opt}),_this3.formatOptionLabel(opt,"value"))}))}if(inputValue){return null}var singleValue=selectValue[0];return React.createElement(SingleValue3,_extends({},commonProps,{data:singleValue,isDisabled:isDisabled}),this.formatOptionLabel(singleValue,"value"))}},{key:"renderClearIndicator",value:function renderClearIndicator(){var _this$getComponents3=this.getComponents(),ClearIndicator3=_this$getComponents3.ClearIndicator;var commonProps=this.commonProps;var _this$props10=this.props,isDisabled=_this$props10.isDisabled,isLoading=_this$props10.isLoading;var isFocused=this.state.isFocused;if(!this.isClearable()||!ClearIndicator3||isDisabled||!this.hasValue()||isLoading){return null}var innerProps={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return React.createElement(ClearIndicator3,_extends({},commonProps,{innerProps:innerProps,isFocused:isFocused}))}},{key:"renderLoadingIndicator",value:function renderLoadingIndicator(){var _this$getComponents4=this.getComponents(),LoadingIndicator3=_this$getComponents4.LoadingIndicator;var commonProps=this.commonProps;var _this$props11=this.props,isDisabled=_this$props11.isDisabled,isLoading=_this$props11.isLoading;var isFocused=this.state.isFocused;if(!LoadingIndicator3||!isLoading)return null;var innerProps={"aria-hidden":"true"};return React.createElement(LoadingIndicator3,_extends({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderIndicatorSeparator",value:function renderIndicatorSeparator(){var _this$getComponents5=this.getComponents(),DropdownIndicator3=_this$getComponents5.DropdownIndicator,IndicatorSeparator3=_this$getComponents5.IndicatorSeparator;if(!DropdownIndicator3||!IndicatorSeparator3)return null;var commonProps=this.commonProps;var isDisabled=this.props.isDisabled;var isFocused=this.state.isFocused;return React.createElement(IndicatorSeparator3,_extends({},commonProps,{isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderDropdownIndicator",value:function renderDropdownIndicator(){var _this$getComponents6=this.getComponents(),DropdownIndicator3=_this$getComponents6.DropdownIndicator;if(!DropdownIndicator3)return null;var commonProps=this.commonProps;var isDisabled=this.props.isDisabled;var isFocused=this.state.isFocused;var innerProps={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return React.createElement(DropdownIndicator3,_extends({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderMenu",value:function renderMenu(){var _this4=this;var _this$getComponents7=this.getComponents(),Group3=_this$getComponents7.Group,GroupHeading3=_this$getComponents7.GroupHeading,Menu3=_this$getComponents7.Menu,MenuList3=_this$getComponents7.MenuList,MenuPortal3=_this$getComponents7.MenuPortal,LoadingMessage3=_this$getComponents7.LoadingMessage,NoOptionsMessage3=_this$getComponents7.NoOptionsMessage,Option3=_this$getComponents7.Option;var commonProps=this.commonProps;var focusedOption=this.state.focusedOption;var _this$props12=this.props,captureMenuScroll=_this$props12.captureMenuScroll,inputValue=_this$props12.inputValue,isLoading=_this$props12.isLoading,loadingMessage2=_this$props12.loadingMessage,minMenuHeight=_this$props12.minMenuHeight,maxMenuHeight=_this$props12.maxMenuHeight,menuIsOpen=_this$props12.menuIsOpen,menuPlacement=_this$props12.menuPlacement,menuPosition=_this$props12.menuPosition,menuPortalTarget=_this$props12.menuPortalTarget,menuShouldBlockScroll=_this$props12.menuShouldBlockScroll,menuShouldScrollIntoView=_this$props12.menuShouldScrollIntoView,noOptionsMessage2=_this$props12.noOptionsMessage,onMenuScrollToTop=_this$props12.onMenuScrollToTop,onMenuScrollToBottom=_this$props12.onMenuScrollToBottom;if(!menuIsOpen)return null;var render=function render2(props,id){var type=props.type,data=props.data,isDisabled=props.isDisabled,isSelected=props.isSelected,label=props.label,value=props.value;var isFocused=focusedOption===data;var onHover=isDisabled?void 0:function(){return _this4.onOptionHover(data)};var onSelect=isDisabled?void 0:function(){return _this4.selectOption(data)};var optionId="".concat(_this4.getElementId("option"),"-").concat(id);var innerProps={id:optionId,onClick:onSelect,onMouseMove:onHover,onMouseOver:onHover,tabIndex:-1,role:"option","aria-selected":_this4.isAppleDevice?void 0:isSelected};return React.createElement(Option3,_extends({},commonProps,{innerProps:innerProps,data:data,isDisabled:isDisabled,isSelected:isSelected,key:optionId,label:label,type:type,value:value,isFocused:isFocused,innerRef:isFocused?_this4.getFocusedOptionRef:void 0}),_this4.formatOptionLabel(props.data,"menu"))};var menuUI;if(this.hasOptions()){menuUI=this.getCategorizedOptions().map((function(item){if(item.type==="group"){var _data=item.data,options2=item.options,groupIndex=item.index;var groupId="".concat(_this4.getElementId("group"),"-").concat(groupIndex);var headingId="".concat(groupId,"-heading");return React.createElement(Group3,_extends({},commonProps,{key:groupId,data:_data,options:options2,Heading:GroupHeading3,headingProps:{id:headingId,data:item.data},label:_this4.formatGroupLabel(item.data)}),item.options.map((function(option){return render(option,"".concat(groupIndex,"-").concat(option.index))})))}else if(item.type==="option"){return render(item,"".concat(item.index))}}))}else if(isLoading){var message=loadingMessage2({inputValue:inputValue});if(message===null)return null;menuUI=React.createElement(LoadingMessage3,commonProps,message)}else{var _message=noOptionsMessage2({inputValue:inputValue});if(_message===null)return null;menuUI=React.createElement(NoOptionsMessage3,commonProps,_message)}var menuPlacementProps={minMenuHeight:minMenuHeight,maxMenuHeight:maxMenuHeight,menuPlacement:menuPlacement,menuPosition:menuPosition,menuShouldScrollIntoView:menuShouldScrollIntoView};var menuElement=React.createElement(MenuPlacer,_extends({},commonProps,menuPlacementProps),(function(_ref4){var ref=_ref4.ref,_ref4$placerProps=_ref4.placerProps,placement=_ref4$placerProps.placement,maxHeight=_ref4$placerProps.maxHeight;return React.createElement(Menu3,_extends({},commonProps,menuPlacementProps,{innerRef:ref,innerProps:{onMouseDown:_this4.onMenuMouseDown,onMouseMove:_this4.onMenuMouseMove},isLoading:isLoading,placement:placement}),React.createElement(ScrollManager,{captureEnabled:captureMenuScroll,onTopArrive:onMenuScrollToTop,onBottomArrive:onMenuScrollToBottom,lockEnabled:menuShouldBlockScroll},(function(scrollTargetRef){return React.createElement(MenuList3,_extends({},commonProps,{innerRef:function innerRef(instance){_this4.getMenuListRef(instance);scrollTargetRef(instance)},innerProps:{role:"listbox","aria-multiselectable":commonProps.isMulti,id:_this4.getElementId("listbox")},isLoading:isLoading,maxHeight:maxHeight,focusedOption:focusedOption}),menuUI)})))}));return menuPortalTarget||menuPosition==="fixed"?React.createElement(MenuPortal3,_extends({},commonProps,{appendTo:menuPortalTarget,controlElement:this.controlRef,menuPlacement:menuPlacement,menuPosition:menuPosition}),menuElement):menuElement}},{key:"renderFormField",value:function renderFormField(){var _this5=this;var _this$props13=this.props,delimiter2=_this$props13.delimiter,isDisabled=_this$props13.isDisabled,isMulti=_this$props13.isMulti,name2=_this$props13.name,required=_this$props13.required;var selectValue=this.state.selectValue;if(required&&!this.hasValue()&&!isDisabled){return React.createElement(RequiredInput$1,{name:name2,onFocus:this.onValueInputFocus})}if(!name2||isDisabled)return;if(isMulti){if(delimiter2){var value=selectValue.map((function(opt){return _this5.getOptionValue(opt)})).join(delimiter2);return React.createElement("input",{name:name2,type:"hidden",value:value})}else{var input=selectValue.length>0?selectValue.map((function(opt,i){return React.createElement("input",{key:"i-".concat(i),name:name2,type:"hidden",value:_this5.getOptionValue(opt)})})):React.createElement("input",{name:name2,type:"hidden",value:""});return React.createElement("div",null,input)}}else{var _value=selectValue[0]?this.getOptionValue(selectValue[0]):"";return React.createElement("input",{name:name2,type:"hidden",value:_value})}}},{key:"renderLiveRegion",value:function renderLiveRegion(){var commonProps=this.commonProps;var _this$state6=this.state,ariaSelection=_this$state6.ariaSelection,focusedOption=_this$state6.focusedOption,focusedValue=_this$state6.focusedValue,isFocused=_this$state6.isFocused,selectValue=_this$state6.selectValue;var focusableOptions=this.getFocusableOptions();return React.createElement(LiveRegion$1,_extends({},commonProps,{id:this.getElementId("live-region"),ariaSelection:ariaSelection,focusedOption:focusedOption,focusedValue:focusedValue,isFocused:isFocused,selectValue:selectValue,focusableOptions:focusableOptions,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function render(){var _this$getComponents8=this.getComponents(),Control3=_this$getComponents8.Control,IndicatorsContainer3=_this$getComponents8.IndicatorsContainer,SelectContainer3=_this$getComponents8.SelectContainer,ValueContainer3=_this$getComponents8.ValueContainer;var _this$props14=this.props,className=_this$props14.className,id=_this$props14.id,isDisabled=_this$props14.isDisabled,menuIsOpen=_this$props14.menuIsOpen;var isFocused=this.state.isFocused;var commonProps=this.commonProps=this.getCommonProps();return React.createElement(SelectContainer3,_extends({},commonProps,{className:className,innerProps:{id:id,onKeyDown:this.onKeyDown},isDisabled:isDisabled,isFocused:isFocused}),this.renderLiveRegion(),React.createElement(Control3,_extends({},commonProps,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:isDisabled,isFocused:isFocused,menuIsOpen:menuIsOpen}),React.createElement(ValueContainer3,_extends({},commonProps,{isDisabled:isDisabled}),this.renderPlaceholderOrValue(),this.renderInput()),React.createElement(IndicatorsContainer3,_extends({},commonProps,{isDisabled:isDisabled}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(props,state){var prevProps=state.prevProps,clearFocusValueOnUpdate=state.clearFocusValueOnUpdate,inputIsHiddenAfterUpdate=state.inputIsHiddenAfterUpdate,ariaSelection=state.ariaSelection,isFocused=state.isFocused,prevWasFocused=state.prevWasFocused,instancePrefix=state.instancePrefix;var options2=props.options,value=props.value,menuIsOpen=props.menuIsOpen,inputValue=props.inputValue,isMulti=props.isMulti;var selectValue=cleanValue(value);var newMenuOptionsState={};if(prevProps&&(value!==prevProps.value||options2!==prevProps.options||menuIsOpen!==prevProps.menuIsOpen||inputValue!==prevProps.inputValue)){var focusableOptions=menuIsOpen?buildFocusableOptions(props,selectValue):[];var focusableOptionsWithIds=menuIsOpen?buildFocusableOptionsWithIds(buildCategorizedOptions(props,selectValue),"".concat(instancePrefix,"-option")):[];var focusedValue=clearFocusValueOnUpdate?getNextFocusedValue(state,selectValue):null;var focusedOption=getNextFocusedOption(state,focusableOptions);var focusedOptionId=getFocusedOptionId(focusableOptionsWithIds,focusedOption);newMenuOptionsState={selectValue:selectValue,focusedOption:focusedOption,focusedOptionId:focusedOptionId,focusableOptionsWithIds:focusableOptionsWithIds,focusedValue:focusedValue,clearFocusValueOnUpdate:false}}var newInputIsHiddenState=inputIsHiddenAfterUpdate!=null&&props!==prevProps?{inputIsHidden:inputIsHiddenAfterUpdate,inputIsHiddenAfterUpdate:void 0}:{};var newAriaSelection=ariaSelection;var hasKeptFocus=isFocused&&prevWasFocused;if(isFocused&&!hasKeptFocus){newAriaSelection={value:valueTernary(isMulti,selectValue,selectValue[0]||null),options:selectValue,action:"initial-input-focus"};hasKeptFocus=!prevWasFocused}if((ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus"){newAriaSelection=null}return _objectSpread2(_objectSpread2(_objectSpread2({},newMenuOptionsState),newInputIsHiddenState),{},{prevProps:props,ariaSelection:newAriaSelection,prevWasFocused:hasKeptFocus})}}]);return Select2}(Component);Select.defaultProps=defaultProps;var StateManagedSelect=forwardRef((function(props,ref){var baseSelectProps=useStateManager(props);return React.createElement(Select,_extends({ref:ref},baseSelectProps))}));var StateManagedSelect$1=StateManagedSelect;var _excluded$1=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function useAsync(_ref3){var _ref$defaultOptions=_ref3.defaultOptions,propsDefaultOptions=_ref$defaultOptions===void 0?false:_ref$defaultOptions,_ref$cacheOptions=_ref3.cacheOptions,cacheOptions=_ref$cacheOptions===void 0?false:_ref$cacheOptions,propsLoadOptions=_ref3.loadOptions;_ref3.options;var _ref$isLoading=_ref3.isLoading,propsIsLoading=_ref$isLoading===void 0?false:_ref$isLoading,propsOnInputChange=_ref3.onInputChange,_ref$filterOption=_ref3.filterOption,filterOption=_ref$filterOption===void 0?null:_ref$filterOption,restSelectProps=_objectWithoutProperties(_ref3,_excluded$1);var propsInputValue=restSelectProps.inputValue;var lastRequest=useRef(void 0);var mounted=useRef(false);var _useState=useState(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0),_useState2=_slicedToArray(_useState,2),defaultOptions=_useState2[0],setDefaultOptions=_useState2[1];var _useState3=useState(typeof propsInputValue!=="undefined"?propsInputValue:""),_useState4=_slicedToArray(_useState3,2),stateInputValue=_useState4[0],setStateInputValue=_useState4[1];var _useState5=useState(propsDefaultOptions===true),_useState6=_slicedToArray(_useState5,2),isLoading=_useState6[0],setIsLoading=_useState6[1];var _useState7=useState(void 0),_useState8=_slicedToArray(_useState7,2),loadedInputValue=_useState8[0],setLoadedInputValue=_useState8[1];var _useState9=useState([]),_useState10=_slicedToArray(_useState9,2),loadedOptions=_useState10[0],setLoadedOptions=_useState10[1];var _useState11=useState(false),_useState12=_slicedToArray(_useState11,2),passEmptyOptions=_useState12[0],setPassEmptyOptions=_useState12[1];var _useState13=useState({}),_useState14=_slicedToArray(_useState13,2),optionsCache=_useState14[0],setOptionsCache=_useState14[1];var _useState15=useState(void 0),_useState16=_slicedToArray(_useState15,2),prevDefaultOptions=_useState16[0],setPrevDefaultOptions=_useState16[1];var _useState17=useState(void 0),_useState18=_slicedToArray(_useState17,2),prevCacheOptions=_useState18[0],setPrevCacheOptions=_useState18[1];if(cacheOptions!==prevCacheOptions){setOptionsCache({});setPrevCacheOptions(cacheOptions)}if(propsDefaultOptions!==prevDefaultOptions){setDefaultOptions(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0);setPrevDefaultOptions(propsDefaultOptions)}useEffect((function(){mounted.current=true;return function(){mounted.current=false}}),[]);var loadOptions=useCallback((function(inputValue,callback){if(!propsLoadOptions)return callback();var loader=propsLoadOptions(inputValue,callback);if(loader&&typeof loader.then==="function"){loader.then(callback,(function(){return callback()}))}}),[propsLoadOptions]);useEffect((function(){if(propsDefaultOptions===true){loadOptions(stateInputValue,(function(options3){if(!mounted.current)return;setDefaultOptions(options3||[]);setIsLoading(!!lastRequest.current)}))}}),[]);var onInputChange=useCallback((function(newValue,actionMeta){var inputValue=handleInputChange(newValue,actionMeta,propsOnInputChange);if(!inputValue){lastRequest.current=void 0;setStateInputValue("");setLoadedInputValue("");setLoadedOptions([]);setIsLoading(false);setPassEmptyOptions(false);return}if(cacheOptions&&optionsCache[inputValue]){setStateInputValue(inputValue);setLoadedInputValue(inputValue);setLoadedOptions(optionsCache[inputValue]);setIsLoading(false);setPassEmptyOptions(false)}else{var request=lastRequest.current={};setStateInputValue(inputValue);setIsLoading(true);setPassEmptyOptions(!loadedInputValue);loadOptions(inputValue,(function(options3){if(!mounted)return;if(request!==lastRequest.current)return;lastRequest.current=void 0;setIsLoading(false);setLoadedInputValue(inputValue);setLoadedOptions(options3||[]);setPassEmptyOptions(false);setOptionsCache(options3?_objectSpread2(_objectSpread2({},optionsCache),{},_defineProperty({},inputValue,options3)):optionsCache)}))}}),[cacheOptions,loadOptions,loadedInputValue,optionsCache,propsOnInputChange]);var options2=passEmptyOptions?[]:stateInputValue&&loadedInputValue?loadedOptions:defaultOptions||[];return _objectSpread2(_objectSpread2({},restSelectProps),{},{options:options2,isLoading:isLoading||propsIsLoading,onInputChange:onInputChange,filterOption:filterOption})}var AsyncSelect=forwardRef((function(props,ref){var stateManagedProps=useAsync(props);var selectProps=useStateManager(stateManagedProps);return React.createElement(Select,_extends({ref:ref},selectProps))}));var AsyncSelect$1=AsyncSelect;var _excluded=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"];var compareOption=function compareOption2(){var inputValue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";var option=arguments.length>1?arguments[1]:void 0;var accessors=arguments.length>2?arguments[2]:void 0;var candidate=String(inputValue).toLowerCase();var optionValue=String(accessors.getOptionValue(option)).toLowerCase();var optionLabel=String(accessors.getOptionLabel(option)).toLowerCase();return optionValue===candidate||optionLabel===candidate};var builtins={formatCreateLabel:function formatCreateLabel(inputValue){return'Create "'.concat(inputValue,'"')},isValidNewOption:function isValidNewOption(inputValue,selectValue,selectOptions,accessors){return!(!inputValue||selectValue.some((function(option){return compareOption(inputValue,option,accessors)}))||selectOptions.some((function(option){return compareOption(inputValue,option,accessors)})))},getNewOptionData:function getNewOptionData(inputValue,optionLabel){return{label:optionLabel,value:inputValue,__isNew__:true}}};function useCreatable(_ref3){var _ref$allowCreateWhile=_ref3.allowCreateWhileLoading,allowCreateWhileLoading=_ref$allowCreateWhile===void 0?false:_ref$allowCreateWhile,_ref$createOptionPosi=_ref3.createOptionPosition,createOptionPosition=_ref$createOptionPosi===void 0?"last":_ref$createOptionPosi,_ref$formatCreateLabe=_ref3.formatCreateLabel,formatCreateLabel2=_ref$formatCreateLabe===void 0?builtins.formatCreateLabel:_ref$formatCreateLabe,_ref$isValidNewOption=_ref3.isValidNewOption,isValidNewOption2=_ref$isValidNewOption===void 0?builtins.isValidNewOption:_ref$isValidNewOption,_ref$getNewOptionData=_ref3.getNewOptionData,getNewOptionData2=_ref$getNewOptionData===void 0?builtins.getNewOptionData:_ref$getNewOptionData,onCreateOption=_ref3.onCreateOption,_ref$options=_ref3.options,propsOptions=_ref$options===void 0?[]:_ref$options,propsOnChange=_ref3.onChange,restSelectProps=_objectWithoutProperties(_ref3,_excluded);var _restSelectProps$getO=restSelectProps.getOptionValue,getOptionValue$1$1=_restSelectProps$getO===void 0?getOptionValue$1:_restSelectProps$getO,_restSelectProps$getO2=restSelectProps.getOptionLabel,getOptionLabel$1$1=_restSelectProps$getO2===void 0?getOptionLabel$1:_restSelectProps$getO2,inputValue=restSelectProps.inputValue,isLoading=restSelectProps.isLoading,isMulti=restSelectProps.isMulti,value=restSelectProps.value,name2=restSelectProps.name;var newOption=useMemo((function(){return isValidNewOption2(inputValue,cleanValue(value),propsOptions,{getOptionValue:getOptionValue$1$1,getOptionLabel:getOptionLabel$1$1})?getNewOptionData2(inputValue,formatCreateLabel2(inputValue)):void 0}),[formatCreateLabel2,getNewOptionData2,getOptionLabel$1$1,getOptionValue$1$1,inputValue,isValidNewOption2,propsOptions,value]);var options2=useMemo((function(){return(allowCreateWhileLoading||!isLoading)&&newOption?createOptionPosition==="first"?[newOption].concat(_toConsumableArray(propsOptions)):[].concat(_toConsumableArray(propsOptions),[newOption]):propsOptions}),[allowCreateWhileLoading,createOptionPosition,isLoading,newOption,propsOptions]);var onChange2=useCallback((function(newValue,actionMeta){if(actionMeta.action!=="select-option"){return propsOnChange(newValue,actionMeta)}var valueArray=Array.isArray(newValue)?newValue:[newValue];if(valueArray[valueArray.length-1]===newOption){if(onCreateOption)onCreateOption(inputValue);else{var newOptionData=getNewOptionData2(inputValue,inputValue);var newActionMeta={action:"create-option",name:name2,option:newOptionData};propsOnChange(valueTernary(isMulti,[].concat(_toConsumableArray(cleanValue(value)),[newOptionData]),newOptionData),newActionMeta)}return}propsOnChange(newValue,actionMeta)}),[getNewOptionData2,inputValue,isMulti,name2,newOption,onCreateOption,propsOnChange,value]);return _objectSpread2(_objectSpread2({},restSelectProps),{},{options:options2,onChange:onChange2})}var CreatableSelect=forwardRef((function(props,ref){var creatableProps=useStateManager(props);var selectProps=useCreatable(creatableProps);return React.createElement(Select,_extends({ref:ref},selectProps))}));var CreatableSelect$1=CreatableSelect;var AsyncCreatableSelect=forwardRef((function(props,ref){var stateManagerProps=useAsync(props);var creatableProps=useStateManager(stateManagerProps);var selectProps=useCreatable(creatableProps);return React.createElement(Select,_extends({ref:ref},selectProps))}));var AsyncCreatableSelect$1=AsyncCreatableSelect;const TypeaheadControl=props=>jsx$1("div",{className:"pb_typeahead_wrapper",children:jsx$1(TextInput$1,{dark:props.selectProps.dark,error:props.selectProps.error,label:props.selectProps.label,children:jsx$1(Flex,{children:jsx$1(components.Control,{className:"text_input",...props})})})});const ClearContainer=props=>{const{selectProps:selectProps,clearValue:clearValue}=props;useEffect((()=>{document.addEventListener(`pb-typeahead-kit-${selectProps.id}:clear`,clearValue)}),[true]);return jsx$1(components.ClearIndicator,{className:"clear_indicator",...props})};const IndicatorsContainer=props=>jsx$1(components.IndicatorsContainer,{className:"text_input_indicators",...props});const MenuList=props=>jsxs(components.MenuList,{...props,children:[props.children,props.footer]});const MultiValue=props=>{const{removeProps:removeProps3}=props;const{imageUrl:imageUrl,label:label}=props.data;const{multiKit:multiKit}=props.selectProps;return jsxs(components.MultiValueContainer,{className:"text_input_multivalue_container",...props,children:[multiKit==="badge"&&jsx$1(Badge,{closeProps:removeProps3,removeIcon:true,text:label,variant:"primary"}),multiKit!=="badge"&&imageUrl&&jsx$1(FormPill,{avatarUrl:imageUrl,closeProps:removeProps3,marginRight:"xs",name:label,size:multiKit==="smallPill"?"small":"",text:""}),multiKit!=="badge"&&!imageUrl&&jsx$1(FormPill,{closeProps:removeProps3,marginRight:"xs",name:"",size:multiKit==="smallPill"?"small":"",text:label})]})};const User=props=>{const{align:align="left",aria:aria={},avatar:avatar=false,avatarUrl:avatarUrl,className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,name:name2,orientation:orientation="horizontal",size:size="sm",subtitle:subtitle,territory:territory="",title:title=""}=props;const dataProps=buildDataProps(data);const ariaProps=buildAriaProps(aria);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_user_kit",align,orientation,size),globalProps(props),className);const avatarPresent=avatar||avatarUrl;return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[avatarPresent&&jsx$1(Avatar,{imageUrl:avatarUrl,name:name2,size:size,status:null}),jsxs("div",{className:"content_wrapper",children:[jsx$1(Title,{dark:dark,size:size=="lg"?3:4,text:name2}),jsx$1(Body$1,{color:"light",dark:dark,variant:null,children:territory===""?title:`${territory} • ${title}`}),typeof subtitle==="string"&&jsx$1(Body$1,{color:"light",dark:dark,text:subtitle,variant:null}),typeof subtitle!=="string"&&jsx$1(Fragment,{children:subtitle})]})]})};const Option=props=>{const{imageUrl:imageUrl}=props.data;const{valueComponent:valueComponent}=props.selectProps;return jsx$1(components.Option,{...props,children:jsxs(Fragment,{children:[!valueComponent&&imageUrl&&jsx$1(User,{align:"left",avatarUrl:imageUrl,dark:props.selectProps.dark,name:props.label,orientation:"horizontal"}),valueComponent&&valueComponent(props.data),!valueComponent&&!imageUrl&&props.label]})})};const Placeholder=props=>jsx$1(Fragment,{children:jsxs(Flex,{align:"center",className:"placeholder",children:[jsx$1(components.IndicatorsContainer,{...props}),props.selectProps.plusIcon&&jsx$1(Icon,{className:"typeahead-plus-icon",icon:"plus"})]})});const ValueContainer=props=>jsx$1(components.ValueContainer,{className:"text_input_value_container",...props});const kitComponents=Object.freeze(Object.defineProperty({__proto__:null,ClearIndicator:ClearContainer,Control:TypeaheadControl,IndicatorsContainer:IndicatorsContainer,MenuList:MenuList,MultiValue:MultiValue,Option:Option,Placeholder:Placeholder,ValueContainer:ValueContainer},Symbol.toStringTag,{value:"Module"}));const Typeahead=({async:async,className:className,components:components2={},createable:createable,error:error="",data:data={},getOptionLabel:getOptionLabel4,getOptionValue:getOptionValue4,htmlOptions:htmlOptions={},id:id,loadOptions:loadOptions=noop$1,...props})=>{const selectProps={cacheOptions:true,components:{Control:TypeaheadControl,ClearIndicator:ClearContainer,IndicatorsContainer:IndicatorsContainer,IndicatorSeparator:null,MenuList:MenuList,MultiValue:MultiValue,Option:Option,Placeholder:Placeholder,ValueContainer:ValueContainer,...components2},loadOptions:isString(loadOptions)?get(window,loadOptions):loadOptions,getOptionLabel:isString(getOptionLabel4)?get(window,getOptionLabel4):getOptionLabel4,getOptionValue:isString(getOptionValue4)?get(window,getOptionValue4):getOptionValue4,defaultOptions:true,id:id||uniqueId(),inline:false,isClearable:true,isSearchable:true,name:name,multiKit:"",onCreateOption:null,plusIcon:false,onMultiValueClick:_option=>void 0,...props};const Tag=createable?async?AsyncCreatableSelect$1:CreatableSelect$1:async?AsyncSelect$1:StateManagedSelect$1;const handleOnChange=(_data,{action:action,option:option,removedValue:removedValue})=>{if(action==="select-option"){if(selectProps.onMultiValueClick)selectProps.onMultiValueClick(option);const multiValueClearEvent=new CustomEvent(`pb-typeahead-kit-${selectProps.id}-result-option-select`,{detail:option?option:_data});document.dispatchEvent(multiValueClearEvent)}if(action==="remove-value"||action==="pop-value"){const multiValueRemoveEvent=new CustomEvent(`pb-typeahead-kit-${selectProps.id}-result-option-remove`,{detail:removedValue});document.dispatchEvent(multiValueRemoveEvent)}if(action==="clear"){const multiValueClearEvent=new CustomEvent(`pb-typeahead-kit-${selectProps.id}-result-clear`);document.dispatchEvent(multiValueClearEvent)}};const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_typeahead_kit react-select",globalProps(props),className);const inlineClass=selectProps.inline?"inline":null;return jsx$1("div",{...dataProps,...htmlProps,className:classnames(classes,inlineClass),children:jsx$1(Tag,{classNamePrefix:"typeahead-kit-select",error:error,onChange:handleOnChange,...selectProps})})};Object.keys(kitComponents).forEach((k2=>{Typeahead[k2]=kitComponents[k2]}));export{Nav as $,Avatar as A,BarGraph as B,CircleChart as C,Dialog as D,Badge as E,Flex as F,Gauge as G,joinPresent as H,Icon as I,titleize as J,IconCircle as K,Legend as L,MultiLevelSelect as M,Image as N,Checkbox as O,Passphrase as P,Radio$1 as Q,RichTextEditor as R,SectionSeparator as S,TreemapChart as T,ExecutionEnvironment as U,Background as V,Collapsible as W,DraggableProvider as X,User as Y,FormPill as Z,Highlight as _,DialogBody as a,NavItem as a0,OnlineStatus as a1,Tooltip as a2,components as a3,DialogFooter as b,DialogHeader as c,DistributionBar as d,LineGraph as e,Typeahead as f,PhoneNumberInput$1 as g,buildAriaProps as h,buildDataProps as i,buildHtmlProps as j,classnames as k,globalProps as l,buildCss as m,FlexItem as n,Body$1 as o,Caption as p,domSafeProps as q,Title as r,Draggable as s,TextInput$1 as t,PropTypes as u,Card as v,noop$1 as w,PbReactPopover as x,CircleIconButton as y,Button as z};